@xpla/xplajs 1.7.0-beta.1 → 1.7.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +3 -3
- package/package.json +14 -12
- package/src/binary.ts +1 -1
- package/src/cosmos/app/runtime/v1alpha1/module.ts +6 -7
- package/src/cosmos/app/runtime/v2/module.ts +9 -10
- package/src/cosmos/app/v1alpha1/config.ts +10 -9
- package/src/cosmos/app/v1alpha1/module.ts +9 -10
- package/src/cosmos/app/v1alpha1/query.rpc.func.ts +2 -1
- package/src/cosmos/app/v1alpha1/query.ts +6 -7
- package/src/cosmos/auth/module/v1/module.ts +6 -7
- package/src/cosmos/auth/v1beta1/accounts.ts +6 -7
- package/src/cosmos/auth/v1beta1/auth.ts +15 -12
- package/src/cosmos/auth/v1beta1/genesis.ts +3 -5
- package/src/cosmos/auth/v1beta1/query.rpc.func.ts +20 -10
- package/src/cosmos/auth/v1beta1/query.ts +52 -55
- package/src/cosmos/auth/v1beta1/tx.registry.ts +27 -1
- package/src/cosmos/auth/v1beta1/tx.rpc.func.ts +2 -1
- package/src/cosmos/auth/v1beta1/tx.ts +6 -7
- package/src/cosmos/authz/module/v1/module.ts +3 -5
- package/src/cosmos/authz/v1beta1/authz.ts +32 -17
- package/src/cosmos/authz/v1beta1/event.ts +5 -8
- package/src/cosmos/authz/v1beta1/genesis.ts +4 -4
- package/src/cosmos/authz/v1beta1/query.rpc.func.ts +6 -3
- package/src/cosmos/authz/v1beta1/query.ts +22 -14
- package/src/cosmos/authz/v1beta1/tx.registry.ts +63 -1
- package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +6 -3
- package/src/cosmos/authz/v1beta1/tx.ts +15 -19
- package/src/cosmos/autocli/v1/options.ts +22 -14
- package/src/cosmos/autocli/v1/query.rpc.func.ts +2 -1
- package/src/cosmos/autocli/v1/query.ts +9 -7
- package/src/cosmos/bank/module/v1/module.ts +3 -5
- package/src/cosmos/bank/v1beta1/authz.ts +6 -3
- package/src/cosmos/bank/v1beta1/bank.ts +22 -17
- package/src/cosmos/bank/v1beta1/genesis.ts +11 -6
- package/src/cosmos/bank/v1beta1/query.rpc.func.ts +26 -13
- package/src/cosmos/bank/v1beta1/query.ts +83 -62
- package/src/cosmos/bank/v1beta1/tx.registry.ts +81 -1
- package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +8 -4
- package/src/cosmos/bank/v1beta1/tx.ts +22 -22
- package/src/cosmos/base/abci/v1beta1/abci.ts +30 -29
- package/src/cosmos/base/grpc/v2/service.rpc.func.ts +4 -2
- package/src/cosmos/base/grpc/v2/service.ts +12 -16
- package/src/cosmos/base/node/v1beta1/query.rpc.func.ts +4 -2
- package/src/cosmos/base/node/v1beta1/query.ts +9 -14
- package/src/cosmos/base/query/v1beta1/pagination.ts +5 -8
- package/src/cosmos/base/reflection/v1beta1/reflection.rpc.func.ts +4 -2
- package/src/cosmos/base/reflection/v1beta1/reflection.ts +9 -14
- package/src/cosmos/base/reflection/v2alpha1/reflection.rpc.func.ts +12 -6
- package/src/cosmos/base/reflection/v2alpha1/reflection.ts +72 -67
- package/src/cosmos/base/tendermint/v1beta1/query.rpc.func.ts +14 -7
- package/src/cosmos/base/tendermint/v1beta1/query.ts +56 -49
- package/src/cosmos/base/tendermint/v1beta1/types.ts +11 -6
- package/src/cosmos/base/v1beta1/coin.ts +16 -20
- package/src/cosmos/consensus/module/v1/module.ts +3 -5
- package/src/cosmos/consensus/v1/query.rpc.func.ts +2 -1
- package/src/cosmos/consensus/v1/query.ts +6 -7
- package/src/cosmos/consensus/v1/tx.registry.ts +27 -1
- package/src/cosmos/consensus/v1/tx.rpc.func.ts +2 -1
- package/src/cosmos/consensus/v1/tx.ts +9 -7
- package/src/cosmos/crypto/multisig/v1beta1/multisig.ts +5 -8
- package/src/cosmos/distribution/module/v1/module.ts +3 -5
- package/src/cosmos/distribution/v1beta1/distribution.ts +53 -43
- package/src/cosmos/distribution/v1beta1/genesis.ts +32 -19
- package/src/cosmos/distribution/v1beta1/query.rpc.func.ts +20 -10
- package/src/cosmos/distribution/v1beta1/query.ts +52 -53
- package/src/cosmos/distribution/v1beta1/tx.registry.ts +135 -1
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +14 -7
- package/src/cosmos/distribution/v1beta1/tx.ts +35 -38
- package/src/cosmos/evidence/module/v1/module.ts +3 -5
- package/src/cosmos/evidence/v1beta1/evidence.ts +3 -5
- package/src/cosmos/evidence/v1beta1/genesis.ts +3 -5
- package/src/cosmos/evidence/v1beta1/query.rpc.func.ts +4 -2
- package/src/cosmos/evidence/v1beta1/query.ts +11 -12
- package/src/cosmos/evidence/v1beta1/tx.registry.ts +27 -1
- package/src/cosmos/evidence/v1beta1/tx.rpc.func.ts +2 -1
- package/src/cosmos/evidence/v1beta1/tx.ts +6 -8
- package/src/cosmos/feegrant/module/v1/module.ts +3 -5
- package/src/cosmos/feegrant/v1beta1/feegrant.ts +24 -9
- package/src/cosmos/feegrant/v1beta1/genesis.ts +4 -4
- package/src/cosmos/feegrant/v1beta1/query.rpc.func.ts +6 -3
- package/src/cosmos/feegrant/v1beta1/query.ts +20 -15
- package/src/cosmos/feegrant/v1beta1/tx.registry.ts +63 -1
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +6 -3
- package/src/cosmos/feegrant/v1beta1/tx.ts +17 -19
- package/src/cosmos/gov/module/v1/module.ts +3 -5
- package/src/cosmos/gov/v1/genesis.ts +10 -4
- package/src/cosmos/gov/v1/gov.ts +25 -24
- package/src/cosmos/gov/v1/query.rpc.func.ts +18 -9
- package/src/cosmos/gov/v1/query.ts +54 -45
- package/src/cosmos/gov/v1/tx.registry.ts +135 -1
- package/src/cosmos/gov/v1/tx.rpc.func.ts +14 -7
- package/src/cosmos/gov/v1/tx.ts +60 -45
- package/src/cosmos/gov/v1beta1/genesis.ts +9 -4
- package/src/cosmos/gov/v1beta1/gov.ts +56 -32
- package/src/cosmos/gov/v1beta1/query.rpc.func.ts +16 -8
- package/src/cosmos/gov/v1beta1/query.ts +49 -39
- package/src/cosmos/gov/v1beta1/tx.registry.ts +81 -1
- package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +8 -4
- package/src/cosmos/gov/v1beta1/tx.ts +47 -29
- package/src/cosmos/ics23/v1/proofs.ts +45 -31
- package/src/cosmos/mint/module/v1/module.ts +3 -5
- package/src/cosmos/mint/v1beta1/genesis.ts +5 -4
- package/src/cosmos/mint/v1beta1/mint.ts +24 -26
- package/src/cosmos/mint/v1beta1/query.rpc.func.ts +6 -3
- package/src/cosmos/mint/v1beta1/query.ts +14 -19
- package/src/cosmos/mint/v1beta1/tx.registry.ts +27 -1
- package/src/cosmos/mint/v1beta1/tx.rpc.func.ts +2 -1
- package/src/cosmos/mint/v1beta1/tx.ts +6 -7
- package/src/cosmos/params/module/v1/module.ts +3 -5
- package/src/cosmos/params/v1beta1/params.ts +8 -6
- package/src/cosmos/params/v1beta1/query.rpc.func.ts +4 -2
- package/src/cosmos/params/v1beta1/query.ts +13 -15
- package/src/cosmos/slashing/module/v1/module.ts +3 -5
- package/src/cosmos/slashing/v1beta1/genesis.ts +14 -11
- package/src/cosmos/slashing/v1beta1/query.rpc.func.ts +6 -3
- package/src/cosmos/slashing/v1beta1/query.ts +18 -16
- package/src/cosmos/slashing/v1beta1/slashing.ts +5 -8
- package/src/cosmos/slashing/v1beta1/tx.registry.ts +45 -1
- package/src/cosmos/slashing/v1beta1/tx.rpc.func.ts +4 -2
- package/src/cosmos/slashing/v1beta1/tx.ts +10 -13
- package/src/cosmos/staking/module/v1/module.ts +3 -5
- package/src/cosmos/staking/v1beta1/authz.ts +9 -6
- package/src/cosmos/staking/v1beta1/genesis.ts +11 -7
- package/src/cosmos/staking/v1beta1/query.rpc.func.ts +28 -14
- package/src/cosmos/staking/v1beta1/query.ts +85 -65
- package/src/cosmos/staking/v1beta1/staking.ts +82 -76
- package/src/cosmos/staking/v1beta1/tx.registry.ts +135 -1
- package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +14 -7
- package/src/cosmos/staking/v1beta1/tx.ts +43 -40
- package/src/cosmos/tx/config/v1/config.ts +3 -5
- package/src/cosmos/tx/signing/v1beta1/signing.ts +17 -13
- package/src/cosmos/tx/v1beta1/service.rpc.func.ts +18 -9
- package/src/cosmos/tx/v1beta1/service.ts +54 -46
- package/src/cosmos/tx/v1beta1/tx.ts +41 -32
- package/src/cosmos/upgrade/module/v1/module.ts +3 -5
- package/src/cosmos/upgrade/v1beta1/query.rpc.func.ts +10 -5
- package/src/cosmos/upgrade/v1beta1/query.ts +23 -30
- package/src/cosmos/upgrade/v1beta1/tx.registry.ts +45 -1
- package/src/cosmos/upgrade/v1beta1/tx.rpc.func.ts +4 -2
- package/src/cosmos/upgrade/v1beta1/tx.ts +10 -13
- package/src/cosmos/upgrade/v1beta1/upgrade.ts +14 -11
- package/src/cosmos_proto/cosmos.ts +5 -6
- package/src/cosmwasm/wasm/v1/authz.ts +51 -24
- package/src/cosmwasm/wasm/v1/genesis.ts +17 -11
- package/src/cosmwasm/wasm/v1/ibc.ts +83 -11
- package/src/cosmwasm/wasm/v1/proposal_legacy.ts +61 -29
- package/src/cosmwasm/wasm/v1/query.lcd.ts +21 -1
- package/src/cosmwasm/wasm/v1/query.rpc.Query.ts +12 -1
- package/src/cosmwasm/wasm/v1/query.rpc.func.ts +31 -12
- package/src/cosmwasm/wasm/v1/query.ts +322 -55
- package/src/cosmwasm/wasm/v1/tx.registry.ts +315 -1
- package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +34 -17
- package/src/cosmwasm/wasm/v1/tx.ts +81 -99
- package/src/cosmwasm/wasm/v1/types.ts +21 -23
- package/src/ethermint/crypto/v1/ethsecp256k1/keys.ts +5 -6
- package/src/ethermint/evm/v1/events.ts +9 -10
- package/src/ethermint/evm/v1/evm.ts +21 -15
- package/src/ethermint/evm/v1/genesis.ts +8 -4
- package/src/ethermint/evm/v1/query.rpc.func.ts +24 -12
- package/src/ethermint/evm/v1/query.ts +57 -45
- package/src/ethermint/evm/v1/tx.registry.ts +45 -1
- package/src/ethermint/evm/v1/tx.rpc.func.ts +4 -2
- package/src/ethermint/evm/v1/tx.ts +25 -15
- package/src/ethermint/feemarket/v1/events.ts +5 -6
- package/src/ethermint/feemarket/v1/feemarket.ts +10 -11
- package/src/ethermint/feemarket/v1/genesis.ts +4 -3
- package/src/ethermint/feemarket/v1/query.rpc.func.ts +6 -3
- package/src/ethermint/feemarket/v1/query.ts +14 -13
- package/src/ethermint/feemarket/v1/tx.registry.ts +27 -1
- package/src/ethermint/feemarket/v1/tx.rpc.func.ts +2 -1
- package/src/ethermint/feemarket/v1/tx.ts +6 -6
- package/src/ethermint/types/v1/account.ts +6 -3
- package/src/ethermint/types/v1/dynamic_fee.ts +3 -4
- package/src/ethermint/types/v1/indexer.ts +3 -4
- package/src/ethermint/types/v1/web3.ts +3 -4
- package/src/extern.ts +2 -2
- package/src/google/api/http.ts +10 -6
- package/src/google/protobuf/any.ts +2 -1
- package/src/google/protobuf/descriptor.ts +118 -44
- package/src/google/protobuf/duration.ts +3 -4
- package/src/google/protobuf/timestamp.ts +3 -4
- package/src/helper-func-types.ts +26 -10
- package/src/helpers.ts +1 -2
- package/src/ibc/applications/fee/v1/ack.ts +3 -5
- package/src/ibc/applications/fee/v1/fee.ts +14 -10
- package/src/ibc/applications/fee/v1/genesis.ts +17 -15
- package/src/ibc/applications/fee/v1/metadata.ts +3 -5
- package/src/ibc/applications/fee/v1/query.rpc.func.ts +20 -10
- package/src/ibc/applications/fee/v1/query.ts +58 -48
- package/src/ibc/applications/fee/v1/tx.registry.ts +81 -1
- package/src/ibc/applications/fee/v1/tx.rpc.func.ts +8 -4
- package/src/ibc/applications/fee/v1/tx.ts +20 -24
- package/src/ibc/applications/interchain_accounts/controller/v1/controller.ts +3 -5
- package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.ts +4 -2
- package/src/ibc/applications/interchain_accounts/controller/v1/query.ts +10 -13
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +63 -1
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.ts +6 -3
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.ts +15 -18
- package/src/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +19 -14
- package/src/ibc/applications/interchain_accounts/host/v1/host.ts +5 -8
- package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.func.ts +2 -1
- package/src/ibc/applications/interchain_accounts/host/v1/query.ts +6 -7
- package/src/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +45 -1
- package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.ts +4 -2
- package/src/ibc/applications/interchain_accounts/host/v1/tx.ts +11 -12
- package/src/ibc/applications/interchain_accounts/v1/account.ts +7 -4
- package/src/ibc/applications/interchain_accounts/v1/metadata.ts +3 -5
- package/src/ibc/applications/interchain_accounts/v1/packet.ts +5 -8
- package/src/ibc/applications/transfer/v1/authz.ts +9 -5
- package/src/ibc/applications/transfer/v1/genesis.ts +6 -4
- package/src/ibc/applications/transfer/v1/query.rpc.func.ts +12 -6
- package/src/ibc/applications/transfer/v1/query.ts +31 -33
- package/src/ibc/applications/transfer/v1/transfer.ts +5 -8
- package/src/ibc/applications/transfer/v1/tx.registry.ts +45 -1
- package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +4 -2
- package/src/ibc/applications/transfer/v1/tx.ts +12 -12
- package/src/ibc/applications/transfer/v2/packet.ts +3 -5
- package/src/ibc/core/channel/v1/channel.ts +24 -24
- package/src/ibc/core/channel/v1/genesis.ts +9 -7
- package/src/ibc/core/channel/v1/query.rpc.func.ts +34 -17
- package/src/ibc/core/channel/v1/query.ts +102 -83
- package/src/ibc/core/channel/v1/tx.registry.ts +351 -1
- package/src/ibc/core/channel/v1/tx.rpc.func.ts +38 -19
- package/src/ibc/core/channel/v1/tx.ts +106 -97
- package/src/ibc/core/channel/v1/upgrade.ts +9 -10
- package/src/ibc/core/client/v1/client.ts +21 -20
- package/src/ibc/core/client/v1/genesis.ts +12 -9
- package/src/ibc/core/client/v1/query.rpc.func.ts +20 -10
- package/src/ibc/core/client/v1/query.ts +55 -52
- package/src/ibc/core/client/v1/tx.registry.ts +135 -1
- package/src/ibc/core/client/v1/tx.rpc.func.ts +14 -7
- package/src/ibc/core/client/v1/tx.ts +30 -43
- package/src/ibc/core/commitment/v1/commitment.ts +10 -13
- package/src/ibc/core/connection/v1/connection.ts +20 -20
- package/src/ibc/core/connection/v1/genesis.ts +6 -4
- package/src/ibc/core/connection/v1/query.rpc.func.ts +12 -6
- package/src/ibc/core/connection/v1/query.ts +36 -31
- package/src/ibc/core/connection/v1/tx.registry.ts +99 -1
- package/src/ibc/core/connection/v1/tx.rpc.func.ts +10 -5
- package/src/ibc/core/connection/v1/tx.ts +29 -27
- package/src/ibc/core/types/v1/genesis.ts +6 -4
- package/src/ibc/lightclients/localhost/v2/localhost.ts +4 -4
- package/src/ibc/lightclients/solomachine/v2/solomachine.ts +37 -46
- package/src/ibc/lightclients/solomachine/v3/solomachine.ts +19 -24
- package/src/ibc/lightclients/tendermint/v1/tendermint.ts +19 -13
- package/src/ibc/lightclients/wasm/v1/genesis.ts +6 -7
- package/src/ibc/lightclients/wasm/v1/query.rpc.func.ts +4 -2
- package/src/ibc/lightclients/wasm/v1/query.ts +11 -12
- package/src/ibc/lightclients/wasm/v1/tx.registry.ts +63 -1
- package/src/ibc/lightclients/wasm/v1/tx.rpc.func.ts +6 -3
- package/src/ibc/lightclients/wasm/v1/tx.ts +13 -20
- package/src/ibc/lightclients/wasm/v1/wasm.ts +10 -13
- package/src/registry.ts +1 -1
- package/src/tendermint/abci/types.ts +157 -74
- package/src/tendermint/crypto/keys.ts +3 -4
- package/src/tendermint/crypto/proof.ts +13 -10
- package/src/tendermint/p2p/types.ts +11 -9
- package/src/tendermint/types/block.ts +7 -3
- package/src/tendermint/types/evidence.ts +15 -6
- package/src/tendermint/types/params.ts +20 -15
- package/src/tendermint/types/types.ts +48 -21
- package/src/tendermint/types/validator.ts +10 -5
- package/src/tendermint/version/types.ts +5 -6
- package/src/test.ts +11 -0
- package/src/types.ts +3 -6
- package/src/utf8.ts +1 -1
- package/src/varint.ts +1 -1
- package/src/xpla/lcd.ts +102 -102
- package/src/xpla/reward/v1beta1/genesis.ts +4 -3
- package/src/xpla/reward/v1beta1/query.rpc.func.ts +4 -2
- package/src/xpla/reward/v1beta1/query.ts +11 -8
- package/src/xpla/reward/v1beta1/reward.ts +13 -14
- package/src/xpla/reward/v1beta1/tx.registry.ts +45 -1
- package/src/xpla/reward/v1beta1/tx.rpc.func.ts +4 -2
- package/src/xpla/reward/v1beta1/tx.ts +11 -10
- package/src/xpla/rpc.query.ts +89 -89
- package/src/xpla/volunteer/v1beta1/genesis.ts +4 -3
- package/src/xpla/volunteer/v1beta1/proposal.ts +13 -13
- package/src/xpla/volunteer/v1beta1/query.rpc.func.ts +2 -1
- package/src/xpla/volunteer/v1beta1/query.ts +5 -6
- package/src/xpla/volunteer/v1beta1/tx.registry.ts +45 -1
- package/src/xpla/volunteer/v1beta1/tx.rpc.func.ts +4 -2
- package/src/xpla/volunteer/v1beta1/tx.ts +12 -12
- package/src/xpla/volunteer/v1beta1/volunteervalidator.ts +3 -4
|
@@ -2,7 +2,6 @@ import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "
|
|
|
2
2
|
import { Grant, GrantAmino } from "./feegrant";
|
|
3
3
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
4
|
import { DeepPartial } from "../../../helpers";
|
|
5
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
6
5
|
/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */
|
|
7
6
|
export interface QueryAllowanceRequest {
|
|
8
7
|
/** granter is the address of the user granting an allowance of their funds. */
|
|
@@ -229,10 +228,9 @@ export const QueryAllowanceRequest = {
|
|
|
229
228
|
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest",
|
|
230
229
|
value: QueryAllowanceRequest.encode(message).finish()
|
|
231
230
|
};
|
|
232
|
-
}
|
|
231
|
+
},
|
|
232
|
+
registerTypeUrl() {}
|
|
233
233
|
};
|
|
234
|
-
GlobalDecoderRegistry.register(QueryAllowanceRequest.typeUrl, QueryAllowanceRequest);
|
|
235
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAllowanceRequest.aminoType, QueryAllowanceRequest.typeUrl);
|
|
236
234
|
function createBaseQueryAllowanceResponse(): QueryAllowanceResponse {
|
|
237
235
|
return {
|
|
238
236
|
allowance: undefined
|
|
@@ -307,10 +305,11 @@ export const QueryAllowanceResponse = {
|
|
|
307
305
|
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse",
|
|
308
306
|
value: QueryAllowanceResponse.encode(message).finish()
|
|
309
307
|
};
|
|
308
|
+
},
|
|
309
|
+
registerTypeUrl() {
|
|
310
|
+
Grant.registerTypeUrl();
|
|
310
311
|
}
|
|
311
312
|
};
|
|
312
|
-
GlobalDecoderRegistry.register(QueryAllowanceResponse.typeUrl, QueryAllowanceResponse);
|
|
313
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAllowanceResponse.aminoType, QueryAllowanceResponse.typeUrl);
|
|
314
313
|
function createBaseQueryAllowancesRequest(): QueryAllowancesRequest {
|
|
315
314
|
return {
|
|
316
315
|
grantee: "",
|
|
@@ -397,10 +396,11 @@ export const QueryAllowancesRequest = {
|
|
|
397
396
|
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest",
|
|
398
397
|
value: QueryAllowancesRequest.encode(message).finish()
|
|
399
398
|
};
|
|
399
|
+
},
|
|
400
|
+
registerTypeUrl() {
|
|
401
|
+
PageRequest.registerTypeUrl();
|
|
400
402
|
}
|
|
401
403
|
};
|
|
402
|
-
GlobalDecoderRegistry.register(QueryAllowancesRequest.typeUrl, QueryAllowancesRequest);
|
|
403
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAllowancesRequest.aminoType, QueryAllowancesRequest.typeUrl);
|
|
404
404
|
function createBaseQueryAllowancesResponse(): QueryAllowancesResponse {
|
|
405
405
|
return {
|
|
406
406
|
allowances: [],
|
|
@@ -489,10 +489,12 @@ export const QueryAllowancesResponse = {
|
|
|
489
489
|
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse",
|
|
490
490
|
value: QueryAllowancesResponse.encode(message).finish()
|
|
491
491
|
};
|
|
492
|
+
},
|
|
493
|
+
registerTypeUrl() {
|
|
494
|
+
Grant.registerTypeUrl();
|
|
495
|
+
PageResponse.registerTypeUrl();
|
|
492
496
|
}
|
|
493
497
|
};
|
|
494
|
-
GlobalDecoderRegistry.register(QueryAllowancesResponse.typeUrl, QueryAllowancesResponse);
|
|
495
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAllowancesResponse.aminoType, QueryAllowancesResponse.typeUrl);
|
|
496
498
|
function createBaseQueryAllowancesByGranterRequest(): QueryAllowancesByGranterRequest {
|
|
497
499
|
return {
|
|
498
500
|
granter: "",
|
|
@@ -579,10 +581,11 @@ export const QueryAllowancesByGranterRequest = {
|
|
|
579
581
|
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest",
|
|
580
582
|
value: QueryAllowancesByGranterRequest.encode(message).finish()
|
|
581
583
|
};
|
|
584
|
+
},
|
|
585
|
+
registerTypeUrl() {
|
|
586
|
+
PageRequest.registerTypeUrl();
|
|
582
587
|
}
|
|
583
588
|
};
|
|
584
|
-
GlobalDecoderRegistry.register(QueryAllowancesByGranterRequest.typeUrl, QueryAllowancesByGranterRequest);
|
|
585
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAllowancesByGranterRequest.aminoType, QueryAllowancesByGranterRequest.typeUrl);
|
|
586
589
|
function createBaseQueryAllowancesByGranterResponse(): QueryAllowancesByGranterResponse {
|
|
587
590
|
return {
|
|
588
591
|
allowances: [],
|
|
@@ -671,7 +674,9 @@ export const QueryAllowancesByGranterResponse = {
|
|
|
671
674
|
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse",
|
|
672
675
|
value: QueryAllowancesByGranterResponse.encode(message).finish()
|
|
673
676
|
};
|
|
677
|
+
},
|
|
678
|
+
registerTypeUrl() {
|
|
679
|
+
Grant.registerTypeUrl();
|
|
680
|
+
PageResponse.registerTypeUrl();
|
|
674
681
|
}
|
|
675
|
-
};
|
|
676
|
-
GlobalDecoderRegistry.register(QueryAllowancesByGranterResponse.typeUrl, QueryAllowancesByGranterResponse);
|
|
677
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAllowancesByGranterResponse.aminoType, QueryAllowancesByGranterResponse.typeUrl);
|
|
682
|
+
};
|
|
@@ -1,3 +1,65 @@
|
|
|
1
1
|
import { TelescopeGeneratedType } from "../../../types";
|
|
2
2
|
import { MsgGrantAllowance, MsgRevokeAllowance, MsgPruneAllowances } from "./tx";
|
|
3
|
-
export const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]> = [["/cosmos.feegrant.v1beta1.MsgGrantAllowance", MsgGrantAllowance], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", MsgRevokeAllowance], ["/cosmos.feegrant.v1beta1.MsgPruneAllowances", MsgPruneAllowances]];
|
|
3
|
+
export const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]> = [["/cosmos.feegrant.v1beta1.MsgGrantAllowance", MsgGrantAllowance], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", MsgRevokeAllowance], ["/cosmos.feegrant.v1beta1.MsgPruneAllowances", MsgPruneAllowances]];
|
|
4
|
+
export const MessageComposer = {
|
|
5
|
+
encoded: {
|
|
6
|
+
grantAllowance(value: MsgGrantAllowance) {
|
|
7
|
+
return {
|
|
8
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance",
|
|
9
|
+
value: MsgGrantAllowance.encode(value).finish()
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
revokeAllowance(value: MsgRevokeAllowance) {
|
|
13
|
+
return {
|
|
14
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance",
|
|
15
|
+
value: MsgRevokeAllowance.encode(value).finish()
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
pruneAllowances(value: MsgPruneAllowances) {
|
|
19
|
+
return {
|
|
20
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowances",
|
|
21
|
+
value: MsgPruneAllowances.encode(value).finish()
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
withTypeUrl: {
|
|
26
|
+
grantAllowance(value: MsgGrantAllowance) {
|
|
27
|
+
return {
|
|
28
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance",
|
|
29
|
+
value
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
revokeAllowance(value: MsgRevokeAllowance) {
|
|
33
|
+
return {
|
|
34
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance",
|
|
35
|
+
value
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
pruneAllowances(value: MsgPruneAllowances) {
|
|
39
|
+
return {
|
|
40
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowances",
|
|
41
|
+
value
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
fromPartial: {
|
|
46
|
+
grantAllowance(value: MsgGrantAllowance) {
|
|
47
|
+
return {
|
|
48
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance",
|
|
49
|
+
value: MsgGrantAllowance.fromPartial(value)
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
revokeAllowance(value: MsgRevokeAllowance) {
|
|
53
|
+
return {
|
|
54
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance",
|
|
55
|
+
value: MsgRevokeAllowance.fromPartial(value)
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
pruneAllowances(value: MsgPruneAllowances) {
|
|
59
|
+
return {
|
|
60
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowances",
|
|
61
|
+
value: MsgPruneAllowances.fromPartial(value)
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
@@ -5,17 +5,20 @@ export const createGrantAllowance = (clientResolver?: SigningClientResolver) =>
|
|
|
5
5
|
clientResolver,
|
|
6
6
|
typeUrl: MsgGrantAllowance.typeUrl,
|
|
7
7
|
encoders: toEncoders(MsgGrantAllowance),
|
|
8
|
-
converters: toConverters(MsgGrantAllowance)
|
|
8
|
+
converters: toConverters(MsgGrantAllowance),
|
|
9
|
+
deps: [MsgGrantAllowance]
|
|
9
10
|
});
|
|
10
11
|
export const createRevokeAllowance = (clientResolver?: SigningClientResolver) => buildTx<MsgRevokeAllowance>({
|
|
11
12
|
clientResolver,
|
|
12
13
|
typeUrl: MsgRevokeAllowance.typeUrl,
|
|
13
14
|
encoders: toEncoders(MsgRevokeAllowance),
|
|
14
|
-
converters: toConverters(MsgRevokeAllowance)
|
|
15
|
+
converters: toConverters(MsgRevokeAllowance),
|
|
16
|
+
deps: [MsgRevokeAllowance]
|
|
15
17
|
});
|
|
16
18
|
export const createPruneAllowances = (clientResolver?: SigningClientResolver) => buildTx<MsgPruneAllowances>({
|
|
17
19
|
clientResolver,
|
|
18
20
|
typeUrl: MsgPruneAllowances.typeUrl,
|
|
19
21
|
encoders: toEncoders(MsgPruneAllowances),
|
|
20
|
-
converters: toConverters(MsgPruneAllowances)
|
|
22
|
+
converters: toConverters(MsgPruneAllowances),
|
|
23
|
+
deps: [MsgPruneAllowances]
|
|
21
24
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Any, AnyProtoMsg, AnyAmino } from "../../../google/protobuf/any";
|
|
2
2
|
import { BasicAllowance, BasicAllowanceProtoMsg, PeriodicAllowance, PeriodicAllowanceProtoMsg, AllowedMsgAllowance, AllowedMsgAllowanceProtoMsg } from "./feegrant";
|
|
3
3
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
-
import { DeepPartial } from "../../../helpers";
|
|
5
4
|
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
|
+
import { DeepPartial } from "../../../helpers";
|
|
6
6
|
/**
|
|
7
7
|
* MsgGrantAllowance adds permission for Grantee to spend up to Allowance
|
|
8
8
|
* of fees from the account of Granter.
|
|
@@ -228,10 +228,13 @@ export const MsgGrantAllowance = {
|
|
|
228
228
|
typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance",
|
|
229
229
|
value: MsgGrantAllowance.encode(message).finish()
|
|
230
230
|
};
|
|
231
|
+
},
|
|
232
|
+
registerTypeUrl() {
|
|
233
|
+
BasicAllowance.registerTypeUrl();
|
|
234
|
+
PeriodicAllowance.registerTypeUrl();
|
|
235
|
+
AllowedMsgAllowance.registerTypeUrl();
|
|
231
236
|
}
|
|
232
237
|
};
|
|
233
|
-
GlobalDecoderRegistry.register(MsgGrantAllowance.typeUrl, MsgGrantAllowance);
|
|
234
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MsgGrantAllowance.aminoType, MsgGrantAllowance.typeUrl);
|
|
235
238
|
function createBaseMsgGrantAllowanceResponse(): MsgGrantAllowanceResponse {
|
|
236
239
|
return {};
|
|
237
240
|
}
|
|
@@ -293,10 +296,9 @@ export const MsgGrantAllowanceResponse = {
|
|
|
293
296
|
typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse",
|
|
294
297
|
value: MsgGrantAllowanceResponse.encode(message).finish()
|
|
295
298
|
};
|
|
296
|
-
}
|
|
299
|
+
},
|
|
300
|
+
registerTypeUrl() {}
|
|
297
301
|
};
|
|
298
|
-
GlobalDecoderRegistry.register(MsgGrantAllowanceResponse.typeUrl, MsgGrantAllowanceResponse);
|
|
299
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MsgGrantAllowanceResponse.aminoType, MsgGrantAllowanceResponse.typeUrl);
|
|
300
302
|
function createBaseMsgRevokeAllowance(): MsgRevokeAllowance {
|
|
301
303
|
return {
|
|
302
304
|
granter: "",
|
|
@@ -383,10 +385,9 @@ export const MsgRevokeAllowance = {
|
|
|
383
385
|
typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance",
|
|
384
386
|
value: MsgRevokeAllowance.encode(message).finish()
|
|
385
387
|
};
|
|
386
|
-
}
|
|
388
|
+
},
|
|
389
|
+
registerTypeUrl() {}
|
|
387
390
|
};
|
|
388
|
-
GlobalDecoderRegistry.register(MsgRevokeAllowance.typeUrl, MsgRevokeAllowance);
|
|
389
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MsgRevokeAllowance.aminoType, MsgRevokeAllowance.typeUrl);
|
|
390
391
|
function createBaseMsgRevokeAllowanceResponse(): MsgRevokeAllowanceResponse {
|
|
391
392
|
return {};
|
|
392
393
|
}
|
|
@@ -448,10 +449,9 @@ export const MsgRevokeAllowanceResponse = {
|
|
|
448
449
|
typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse",
|
|
449
450
|
value: MsgRevokeAllowanceResponse.encode(message).finish()
|
|
450
451
|
};
|
|
451
|
-
}
|
|
452
|
+
},
|
|
453
|
+
registerTypeUrl() {}
|
|
452
454
|
};
|
|
453
|
-
GlobalDecoderRegistry.register(MsgRevokeAllowanceResponse.typeUrl, MsgRevokeAllowanceResponse);
|
|
454
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MsgRevokeAllowanceResponse.aminoType, MsgRevokeAllowanceResponse.typeUrl);
|
|
455
455
|
function createBaseMsgPruneAllowances(): MsgPruneAllowances {
|
|
456
456
|
return {
|
|
457
457
|
pruner: ""
|
|
@@ -526,10 +526,9 @@ export const MsgPruneAllowances = {
|
|
|
526
526
|
typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowances",
|
|
527
527
|
value: MsgPruneAllowances.encode(message).finish()
|
|
528
528
|
};
|
|
529
|
-
}
|
|
529
|
+
},
|
|
530
|
+
registerTypeUrl() {}
|
|
530
531
|
};
|
|
531
|
-
GlobalDecoderRegistry.register(MsgPruneAllowances.typeUrl, MsgPruneAllowances);
|
|
532
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MsgPruneAllowances.aminoType, MsgPruneAllowances.typeUrl);
|
|
533
532
|
function createBaseMsgPruneAllowancesResponse(): MsgPruneAllowancesResponse {
|
|
534
533
|
return {};
|
|
535
534
|
}
|
|
@@ -591,7 +590,6 @@ export const MsgPruneAllowancesResponse = {
|
|
|
591
590
|
typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse",
|
|
592
591
|
value: MsgPruneAllowancesResponse.encode(message).finish()
|
|
593
592
|
};
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MsgPruneAllowancesResponse.aminoType, MsgPruneAllowancesResponse.typeUrl);
|
|
593
|
+
},
|
|
594
|
+
registerTypeUrl() {}
|
|
595
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
2
|
import { DeepPartial } from "../../../../helpers";
|
|
3
|
-
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
4
3
|
/** Module is the config object of the gov module. */
|
|
5
4
|
export interface Module {
|
|
6
5
|
/**
|
|
@@ -115,7 +114,6 @@ export const Module = {
|
|
|
115
114
|
typeUrl: "/cosmos.gov.module.v1.Module",
|
|
116
115
|
value: Module.encode(message).finish()
|
|
117
116
|
};
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Module.aminoType, Module.typeUrl);
|
|
117
|
+
},
|
|
118
|
+
registerTypeUrl() {}
|
|
119
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Deposit, DepositAmino, Vote, VoteAmino, Proposal, ProposalAmino, DepositParams, DepositParamsAmino, VotingParams, VotingParamsAmino, TallyParams, TallyParamsAmino, Params, ParamsAmino } from "./gov";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
3
|
import { DeepPartial } from "../../../helpers";
|
|
4
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
4
|
/** GenesisState defines the gov module's genesis state. */
|
|
6
5
|
export interface GenesisState {
|
|
7
6
|
/** starting_proposal_id is the ID of the starting proposal. */
|
|
@@ -274,7 +273,14 @@ export const GenesisState = {
|
|
|
274
273
|
typeUrl: "/cosmos.gov.v1.GenesisState",
|
|
275
274
|
value: GenesisState.encode(message).finish()
|
|
276
275
|
};
|
|
276
|
+
},
|
|
277
|
+
registerTypeUrl() {
|
|
278
|
+
Deposit.registerTypeUrl();
|
|
279
|
+
Vote.registerTypeUrl();
|
|
280
|
+
Proposal.registerTypeUrl();
|
|
281
|
+
DepositParams.registerTypeUrl();
|
|
282
|
+
VotingParams.registerTypeUrl();
|
|
283
|
+
TallyParams.registerTypeUrl();
|
|
284
|
+
Params.registerTypeUrl();
|
|
277
285
|
}
|
|
278
|
-
};
|
|
279
|
-
GlobalDecoderRegistry.register(GenesisState.typeUrl, GenesisState);
|
|
280
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(GenesisState.aminoType, GenesisState.typeUrl);
|
|
286
|
+
};
|
package/src/cosmos/gov/v1/gov.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
|
4
4
|
import { Duration, DurationAmino } from "../../../google/protobuf/duration";
|
|
5
5
|
import { isSet, DeepPartial, toTimestamp, fromTimestamp } from "../../../helpers";
|
|
6
6
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
7
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
8
7
|
/** VoteOption enumerates the valid vote options for a given governance proposal. */
|
|
9
8
|
export enum VoteOption {
|
|
10
9
|
/** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
|
|
@@ -719,10 +718,9 @@ export const WeightedVoteOption = {
|
|
|
719
718
|
typeUrl: "/cosmos.gov.v1.WeightedVoteOption",
|
|
720
719
|
value: WeightedVoteOption.encode(message).finish()
|
|
721
720
|
};
|
|
722
|
-
}
|
|
721
|
+
},
|
|
722
|
+
registerTypeUrl() {}
|
|
723
723
|
};
|
|
724
|
-
GlobalDecoderRegistry.register(WeightedVoteOption.typeUrl, WeightedVoteOption);
|
|
725
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(WeightedVoteOption.aminoType, WeightedVoteOption.typeUrl);
|
|
726
724
|
function createBaseDeposit(): Deposit {
|
|
727
725
|
return {
|
|
728
726
|
proposalId: BigInt(0),
|
|
@@ -823,10 +821,11 @@ export const Deposit = {
|
|
|
823
821
|
typeUrl: "/cosmos.gov.v1.Deposit",
|
|
824
822
|
value: Deposit.encode(message).finish()
|
|
825
823
|
};
|
|
824
|
+
},
|
|
825
|
+
registerTypeUrl() {
|
|
826
|
+
Coin.registerTypeUrl();
|
|
826
827
|
}
|
|
827
828
|
};
|
|
828
|
-
GlobalDecoderRegistry.register(Deposit.typeUrl, Deposit);
|
|
829
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Deposit.aminoType, Deposit.typeUrl);
|
|
830
829
|
function createBaseProposal(): Proposal {
|
|
831
830
|
return {
|
|
832
831
|
id: BigInt(0),
|
|
@@ -1073,10 +1072,12 @@ export const Proposal = {
|
|
|
1073
1072
|
typeUrl: "/cosmos.gov.v1.Proposal",
|
|
1074
1073
|
value: Proposal.encode(message).finish()
|
|
1075
1074
|
};
|
|
1075
|
+
},
|
|
1076
|
+
registerTypeUrl() {
|
|
1077
|
+
TallyResult.registerTypeUrl();
|
|
1078
|
+
Coin.registerTypeUrl();
|
|
1076
1079
|
}
|
|
1077
1080
|
};
|
|
1078
|
-
GlobalDecoderRegistry.register(Proposal.typeUrl, Proposal);
|
|
1079
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Proposal.aminoType, Proposal.typeUrl);
|
|
1080
1081
|
function createBaseTallyResult(): TallyResult {
|
|
1081
1082
|
return {
|
|
1082
1083
|
yesCount: "",
|
|
@@ -1187,10 +1188,9 @@ export const TallyResult = {
|
|
|
1187
1188
|
typeUrl: "/cosmos.gov.v1.TallyResult",
|
|
1188
1189
|
value: TallyResult.encode(message).finish()
|
|
1189
1190
|
};
|
|
1190
|
-
}
|
|
1191
|
+
},
|
|
1192
|
+
registerTypeUrl() {}
|
|
1191
1193
|
};
|
|
1192
|
-
GlobalDecoderRegistry.register(TallyResult.typeUrl, TallyResult);
|
|
1193
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(TallyResult.aminoType, TallyResult.typeUrl);
|
|
1194
1194
|
function createBaseVote(): Vote {
|
|
1195
1195
|
return {
|
|
1196
1196
|
proposalId: BigInt(0),
|
|
@@ -1303,10 +1303,11 @@ export const Vote = {
|
|
|
1303
1303
|
typeUrl: "/cosmos.gov.v1.Vote",
|
|
1304
1304
|
value: Vote.encode(message).finish()
|
|
1305
1305
|
};
|
|
1306
|
+
},
|
|
1307
|
+
registerTypeUrl() {
|
|
1308
|
+
WeightedVoteOption.registerTypeUrl();
|
|
1306
1309
|
}
|
|
1307
1310
|
};
|
|
1308
|
-
GlobalDecoderRegistry.register(Vote.typeUrl, Vote);
|
|
1309
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Vote.aminoType, Vote.typeUrl);
|
|
1310
1311
|
function createBaseDepositParams(): DepositParams {
|
|
1311
1312
|
return {
|
|
1312
1313
|
minDeposit: [],
|
|
@@ -1395,10 +1396,11 @@ export const DepositParams = {
|
|
|
1395
1396
|
typeUrl: "/cosmos.gov.v1.DepositParams",
|
|
1396
1397
|
value: DepositParams.encode(message).finish()
|
|
1397
1398
|
};
|
|
1399
|
+
},
|
|
1400
|
+
registerTypeUrl() {
|
|
1401
|
+
Coin.registerTypeUrl();
|
|
1398
1402
|
}
|
|
1399
1403
|
};
|
|
1400
|
-
GlobalDecoderRegistry.register(DepositParams.typeUrl, DepositParams);
|
|
1401
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(DepositParams.aminoType, DepositParams.typeUrl);
|
|
1402
1404
|
function createBaseVotingParams(): VotingParams {
|
|
1403
1405
|
return {
|
|
1404
1406
|
votingPeriod: undefined
|
|
@@ -1473,10 +1475,9 @@ export const VotingParams = {
|
|
|
1473
1475
|
typeUrl: "/cosmos.gov.v1.VotingParams",
|
|
1474
1476
|
value: VotingParams.encode(message).finish()
|
|
1475
1477
|
};
|
|
1476
|
-
}
|
|
1478
|
+
},
|
|
1479
|
+
registerTypeUrl() {}
|
|
1477
1480
|
};
|
|
1478
|
-
GlobalDecoderRegistry.register(VotingParams.typeUrl, VotingParams);
|
|
1479
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(VotingParams.aminoType, VotingParams.typeUrl);
|
|
1480
1481
|
function createBaseTallyParams(): TallyParams {
|
|
1481
1482
|
return {
|
|
1482
1483
|
quorum: "",
|
|
@@ -1575,10 +1576,9 @@ export const TallyParams = {
|
|
|
1575
1576
|
typeUrl: "/cosmos.gov.v1.TallyParams",
|
|
1576
1577
|
value: TallyParams.encode(message).finish()
|
|
1577
1578
|
};
|
|
1578
|
-
}
|
|
1579
|
+
},
|
|
1580
|
+
registerTypeUrl() {}
|
|
1579
1581
|
};
|
|
1580
|
-
GlobalDecoderRegistry.register(TallyParams.typeUrl, TallyParams);
|
|
1581
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(TallyParams.aminoType, TallyParams.typeUrl);
|
|
1582
1582
|
function createBaseParams(): Params {
|
|
1583
1583
|
return {
|
|
1584
1584
|
minDeposit: [],
|
|
@@ -1837,7 +1837,8 @@ export const Params = {
|
|
|
1837
1837
|
typeUrl: "/cosmos.gov.v1.Params",
|
|
1838
1838
|
value: Params.encode(message).finish()
|
|
1839
1839
|
};
|
|
1840
|
+
},
|
|
1841
|
+
registerTypeUrl() {
|
|
1842
|
+
Coin.registerTypeUrl();
|
|
1840
1843
|
}
|
|
1841
|
-
};
|
|
1842
|
-
GlobalDecoderRegistry.register(Params.typeUrl, Params);
|
|
1843
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Params.aminoType, Params.typeUrl);
|
|
1844
|
+
};
|
|
@@ -5,61 +5,70 @@ export const createGetConstitution = (clientResolver?: RpcResolver) => buildQuer
|
|
|
5
5
|
decode: QueryConstitutionResponse.decode,
|
|
6
6
|
service: "cosmos.gov.v1.Query",
|
|
7
7
|
method: "Constitution",
|
|
8
|
-
clientResolver
|
|
8
|
+
clientResolver,
|
|
9
|
+
deps: [QueryConstitutionRequest, QueryConstitutionResponse]
|
|
9
10
|
});
|
|
10
11
|
export const createGetProposal = (clientResolver?: RpcResolver) => buildQuery<QueryProposalRequest, QueryProposalResponse>({
|
|
11
12
|
encode: QueryProposalRequest.encode,
|
|
12
13
|
decode: QueryProposalResponse.decode,
|
|
13
14
|
service: "cosmos.gov.v1.Query",
|
|
14
15
|
method: "Proposal",
|
|
15
|
-
clientResolver
|
|
16
|
+
clientResolver,
|
|
17
|
+
deps: [QueryProposalRequest, QueryProposalResponse]
|
|
16
18
|
});
|
|
17
19
|
export const createGetProposals = (clientResolver?: RpcResolver) => buildQuery<QueryProposalsRequest, QueryProposalsResponse>({
|
|
18
20
|
encode: QueryProposalsRequest.encode,
|
|
19
21
|
decode: QueryProposalsResponse.decode,
|
|
20
22
|
service: "cosmos.gov.v1.Query",
|
|
21
23
|
method: "Proposals",
|
|
22
|
-
clientResolver
|
|
24
|
+
clientResolver,
|
|
25
|
+
deps: [QueryProposalsRequest, QueryProposalsResponse]
|
|
23
26
|
});
|
|
24
27
|
export const createGetVote = (clientResolver?: RpcResolver) => buildQuery<QueryVoteRequest, QueryVoteResponse>({
|
|
25
28
|
encode: QueryVoteRequest.encode,
|
|
26
29
|
decode: QueryVoteResponse.decode,
|
|
27
30
|
service: "cosmos.gov.v1.Query",
|
|
28
31
|
method: "Vote",
|
|
29
|
-
clientResolver
|
|
32
|
+
clientResolver,
|
|
33
|
+
deps: [QueryVoteRequest, QueryVoteResponse]
|
|
30
34
|
});
|
|
31
35
|
export const createGetVotes = (clientResolver?: RpcResolver) => buildQuery<QueryVotesRequest, QueryVotesResponse>({
|
|
32
36
|
encode: QueryVotesRequest.encode,
|
|
33
37
|
decode: QueryVotesResponse.decode,
|
|
34
38
|
service: "cosmos.gov.v1.Query",
|
|
35
39
|
method: "Votes",
|
|
36
|
-
clientResolver
|
|
40
|
+
clientResolver,
|
|
41
|
+
deps: [QueryVotesRequest, QueryVotesResponse]
|
|
37
42
|
});
|
|
38
43
|
export const createGetParams = (clientResolver?: RpcResolver) => buildQuery<QueryParamsRequest, QueryParamsResponse>({
|
|
39
44
|
encode: QueryParamsRequest.encode,
|
|
40
45
|
decode: QueryParamsResponse.decode,
|
|
41
46
|
service: "cosmos.gov.v1.Query",
|
|
42
47
|
method: "Params",
|
|
43
|
-
clientResolver
|
|
48
|
+
clientResolver,
|
|
49
|
+
deps: [QueryParamsRequest, QueryParamsResponse]
|
|
44
50
|
});
|
|
45
51
|
export const createGetDeposit = (clientResolver?: RpcResolver) => buildQuery<QueryDepositRequest, QueryDepositResponse>({
|
|
46
52
|
encode: QueryDepositRequest.encode,
|
|
47
53
|
decode: QueryDepositResponse.decode,
|
|
48
54
|
service: "cosmos.gov.v1.Query",
|
|
49
55
|
method: "Deposit",
|
|
50
|
-
clientResolver
|
|
56
|
+
clientResolver,
|
|
57
|
+
deps: [QueryDepositRequest, QueryDepositResponse]
|
|
51
58
|
});
|
|
52
59
|
export const createGetDeposits = (clientResolver?: RpcResolver) => buildQuery<QueryDepositsRequest, QueryDepositsResponse>({
|
|
53
60
|
encode: QueryDepositsRequest.encode,
|
|
54
61
|
decode: QueryDepositsResponse.decode,
|
|
55
62
|
service: "cosmos.gov.v1.Query",
|
|
56
63
|
method: "Deposits",
|
|
57
|
-
clientResolver
|
|
64
|
+
clientResolver,
|
|
65
|
+
deps: [QueryDepositsRequest, QueryDepositsResponse]
|
|
58
66
|
});
|
|
59
67
|
export const createGetTallyResult = (clientResolver?: RpcResolver) => buildQuery<QueryTallyResultRequest, QueryTallyResultResponse>({
|
|
60
68
|
encode: QueryTallyResultRequest.encode,
|
|
61
69
|
decode: QueryTallyResultResponse.decode,
|
|
62
70
|
service: "cosmos.gov.v1.Query",
|
|
63
71
|
method: "TallyResult",
|
|
64
|
-
clientResolver
|
|
72
|
+
clientResolver,
|
|
73
|
+
deps: [QueryTallyResultRequest, QueryTallyResultResponse]
|
|
65
74
|
});
|