@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
|
@@ -3,8 +3,8 @@ import { Any, AnyProtoMsg, AnyAmino } from "../../../google/protobuf/any";
|
|
|
3
3
|
import { Params, ParamsAmino, BaseAccount, BaseAccountProtoMsg, BaseAccountAmino, ModuleAccount, ModuleAccountProtoMsg } from "./auth";
|
|
4
4
|
import { EthAccount, EthAccountProtoMsg } from "../../../ethermint/types/v1/account";
|
|
5
5
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
6
|
-
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
7
6
|
import { GlobalDecoderRegistry } from "../../../registry";
|
|
7
|
+
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
8
8
|
/**
|
|
9
9
|
* QueryAccountsRequest is the request type for the Query/Accounts RPC method.
|
|
10
10
|
*
|
|
@@ -557,10 +557,11 @@ export const QueryAccountsRequest = {
|
|
|
557
557
|
typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest",
|
|
558
558
|
value: QueryAccountsRequest.encode(message).finish()
|
|
559
559
|
};
|
|
560
|
+
},
|
|
561
|
+
registerTypeUrl() {
|
|
562
|
+
PageRequest.registerTypeUrl();
|
|
560
563
|
}
|
|
561
564
|
};
|
|
562
|
-
GlobalDecoderRegistry.register(QueryAccountsRequest.typeUrl, QueryAccountsRequest);
|
|
563
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountsRequest.aminoType, QueryAccountsRequest.typeUrl);
|
|
564
565
|
function createBaseQueryAccountsResponse(): QueryAccountsResponse {
|
|
565
566
|
return {
|
|
566
567
|
accounts: [],
|
|
@@ -649,10 +650,13 @@ export const QueryAccountsResponse = {
|
|
|
649
650
|
typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse",
|
|
650
651
|
value: QueryAccountsResponse.encode(message).finish()
|
|
651
652
|
};
|
|
653
|
+
},
|
|
654
|
+
registerTypeUrl() {
|
|
655
|
+
BaseAccount.registerTypeUrl();
|
|
656
|
+
EthAccount.registerTypeUrl();
|
|
657
|
+
PageResponse.registerTypeUrl();
|
|
652
658
|
}
|
|
653
659
|
};
|
|
654
|
-
GlobalDecoderRegistry.register(QueryAccountsResponse.typeUrl, QueryAccountsResponse);
|
|
655
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountsResponse.aminoType, QueryAccountsResponse.typeUrl);
|
|
656
660
|
function createBaseQueryAccountRequest(): QueryAccountRequest {
|
|
657
661
|
return {
|
|
658
662
|
address: ""
|
|
@@ -727,10 +731,9 @@ export const QueryAccountRequest = {
|
|
|
727
731
|
typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest",
|
|
728
732
|
value: QueryAccountRequest.encode(message).finish()
|
|
729
733
|
};
|
|
730
|
-
}
|
|
734
|
+
},
|
|
735
|
+
registerTypeUrl() {}
|
|
731
736
|
};
|
|
732
|
-
GlobalDecoderRegistry.register(QueryAccountRequest.typeUrl, QueryAccountRequest);
|
|
733
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountRequest.aminoType, QueryAccountRequest.typeUrl);
|
|
734
737
|
function createBaseQueryAccountResponse(): QueryAccountResponse {
|
|
735
738
|
return {
|
|
736
739
|
account: undefined
|
|
@@ -805,10 +808,12 @@ export const QueryAccountResponse = {
|
|
|
805
808
|
typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse",
|
|
806
809
|
value: QueryAccountResponse.encode(message).finish()
|
|
807
810
|
};
|
|
811
|
+
},
|
|
812
|
+
registerTypeUrl() {
|
|
813
|
+
BaseAccount.registerTypeUrl();
|
|
814
|
+
EthAccount.registerTypeUrl();
|
|
808
815
|
}
|
|
809
816
|
};
|
|
810
|
-
GlobalDecoderRegistry.register(QueryAccountResponse.typeUrl, QueryAccountResponse);
|
|
811
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountResponse.aminoType, QueryAccountResponse.typeUrl);
|
|
812
817
|
function createBaseQueryParamsRequest(): QueryParamsRequest {
|
|
813
818
|
return {};
|
|
814
819
|
}
|
|
@@ -870,10 +875,9 @@ export const QueryParamsRequest = {
|
|
|
870
875
|
typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest",
|
|
871
876
|
value: QueryParamsRequest.encode(message).finish()
|
|
872
877
|
};
|
|
873
|
-
}
|
|
878
|
+
},
|
|
879
|
+
registerTypeUrl() {}
|
|
874
880
|
};
|
|
875
|
-
GlobalDecoderRegistry.register(QueryParamsRequest.typeUrl, QueryParamsRequest);
|
|
876
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsRequest.aminoType, QueryParamsRequest.typeUrl);
|
|
877
881
|
function createBaseQueryParamsResponse(): QueryParamsResponse {
|
|
878
882
|
return {
|
|
879
883
|
params: Params.fromPartial({})
|
|
@@ -948,10 +952,11 @@ export const QueryParamsResponse = {
|
|
|
948
952
|
typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse",
|
|
949
953
|
value: QueryParamsResponse.encode(message).finish()
|
|
950
954
|
};
|
|
955
|
+
},
|
|
956
|
+
registerTypeUrl() {
|
|
957
|
+
Params.registerTypeUrl();
|
|
951
958
|
}
|
|
952
959
|
};
|
|
953
|
-
GlobalDecoderRegistry.register(QueryParamsResponse.typeUrl, QueryParamsResponse);
|
|
954
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsResponse.aminoType, QueryParamsResponse.typeUrl);
|
|
955
960
|
function createBaseQueryModuleAccountsRequest(): QueryModuleAccountsRequest {
|
|
956
961
|
return {};
|
|
957
962
|
}
|
|
@@ -1013,10 +1018,9 @@ export const QueryModuleAccountsRequest = {
|
|
|
1013
1018
|
typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest",
|
|
1014
1019
|
value: QueryModuleAccountsRequest.encode(message).finish()
|
|
1015
1020
|
};
|
|
1016
|
-
}
|
|
1021
|
+
},
|
|
1022
|
+
registerTypeUrl() {}
|
|
1017
1023
|
};
|
|
1018
|
-
GlobalDecoderRegistry.register(QueryModuleAccountsRequest.typeUrl, QueryModuleAccountsRequest);
|
|
1019
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryModuleAccountsRequest.aminoType, QueryModuleAccountsRequest.typeUrl);
|
|
1020
1024
|
function createBaseQueryModuleAccountsResponse(): QueryModuleAccountsResponse {
|
|
1021
1025
|
return {
|
|
1022
1026
|
accounts: []
|
|
@@ -1093,10 +1097,11 @@ export const QueryModuleAccountsResponse = {
|
|
|
1093
1097
|
typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse",
|
|
1094
1098
|
value: QueryModuleAccountsResponse.encode(message).finish()
|
|
1095
1099
|
};
|
|
1100
|
+
},
|
|
1101
|
+
registerTypeUrl() {
|
|
1102
|
+
ModuleAccount.registerTypeUrl();
|
|
1096
1103
|
}
|
|
1097
1104
|
};
|
|
1098
|
-
GlobalDecoderRegistry.register(QueryModuleAccountsResponse.typeUrl, QueryModuleAccountsResponse);
|
|
1099
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryModuleAccountsResponse.aminoType, QueryModuleAccountsResponse.typeUrl);
|
|
1100
1105
|
function createBaseQueryModuleAccountByNameRequest(): QueryModuleAccountByNameRequest {
|
|
1101
1106
|
return {
|
|
1102
1107
|
name: ""
|
|
@@ -1171,10 +1176,9 @@ export const QueryModuleAccountByNameRequest = {
|
|
|
1171
1176
|
typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest",
|
|
1172
1177
|
value: QueryModuleAccountByNameRequest.encode(message).finish()
|
|
1173
1178
|
};
|
|
1174
|
-
}
|
|
1179
|
+
},
|
|
1180
|
+
registerTypeUrl() {}
|
|
1175
1181
|
};
|
|
1176
|
-
GlobalDecoderRegistry.register(QueryModuleAccountByNameRequest.typeUrl, QueryModuleAccountByNameRequest);
|
|
1177
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryModuleAccountByNameRequest.aminoType, QueryModuleAccountByNameRequest.typeUrl);
|
|
1178
1182
|
function createBaseQueryModuleAccountByNameResponse(): QueryModuleAccountByNameResponse {
|
|
1179
1183
|
return {
|
|
1180
1184
|
account: undefined
|
|
@@ -1249,10 +1253,11 @@ export const QueryModuleAccountByNameResponse = {
|
|
|
1249
1253
|
typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse",
|
|
1250
1254
|
value: QueryModuleAccountByNameResponse.encode(message).finish()
|
|
1251
1255
|
};
|
|
1256
|
+
},
|
|
1257
|
+
registerTypeUrl() {
|
|
1258
|
+
ModuleAccount.registerTypeUrl();
|
|
1252
1259
|
}
|
|
1253
1260
|
};
|
|
1254
|
-
GlobalDecoderRegistry.register(QueryModuleAccountByNameResponse.typeUrl, QueryModuleAccountByNameResponse);
|
|
1255
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryModuleAccountByNameResponse.aminoType, QueryModuleAccountByNameResponse.typeUrl);
|
|
1256
1261
|
function createBaseBech32PrefixRequest(): Bech32PrefixRequest {
|
|
1257
1262
|
return {};
|
|
1258
1263
|
}
|
|
@@ -1314,10 +1319,9 @@ export const Bech32PrefixRequest = {
|
|
|
1314
1319
|
typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest",
|
|
1315
1320
|
value: Bech32PrefixRequest.encode(message).finish()
|
|
1316
1321
|
};
|
|
1317
|
-
}
|
|
1322
|
+
},
|
|
1323
|
+
registerTypeUrl() {}
|
|
1318
1324
|
};
|
|
1319
|
-
GlobalDecoderRegistry.register(Bech32PrefixRequest.typeUrl, Bech32PrefixRequest);
|
|
1320
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Bech32PrefixRequest.aminoType, Bech32PrefixRequest.typeUrl);
|
|
1321
1325
|
function createBaseBech32PrefixResponse(): Bech32PrefixResponse {
|
|
1322
1326
|
return {
|
|
1323
1327
|
bech32Prefix: ""
|
|
@@ -1392,10 +1396,9 @@ export const Bech32PrefixResponse = {
|
|
|
1392
1396
|
typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse",
|
|
1393
1397
|
value: Bech32PrefixResponse.encode(message).finish()
|
|
1394
1398
|
};
|
|
1395
|
-
}
|
|
1399
|
+
},
|
|
1400
|
+
registerTypeUrl() {}
|
|
1396
1401
|
};
|
|
1397
|
-
GlobalDecoderRegistry.register(Bech32PrefixResponse.typeUrl, Bech32PrefixResponse);
|
|
1398
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Bech32PrefixResponse.aminoType, Bech32PrefixResponse.typeUrl);
|
|
1399
1402
|
function createBaseAddressBytesToStringRequest(): AddressBytesToStringRequest {
|
|
1400
1403
|
return {
|
|
1401
1404
|
addressBytes: new Uint8Array()
|
|
@@ -1470,10 +1473,9 @@ export const AddressBytesToStringRequest = {
|
|
|
1470
1473
|
typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest",
|
|
1471
1474
|
value: AddressBytesToStringRequest.encode(message).finish()
|
|
1472
1475
|
};
|
|
1473
|
-
}
|
|
1476
|
+
},
|
|
1477
|
+
registerTypeUrl() {}
|
|
1474
1478
|
};
|
|
1475
|
-
GlobalDecoderRegistry.register(AddressBytesToStringRequest.typeUrl, AddressBytesToStringRequest);
|
|
1476
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(AddressBytesToStringRequest.aminoType, AddressBytesToStringRequest.typeUrl);
|
|
1477
1479
|
function createBaseAddressBytesToStringResponse(): AddressBytesToStringResponse {
|
|
1478
1480
|
return {
|
|
1479
1481
|
addressString: ""
|
|
@@ -1548,10 +1550,9 @@ export const AddressBytesToStringResponse = {
|
|
|
1548
1550
|
typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse",
|
|
1549
1551
|
value: AddressBytesToStringResponse.encode(message).finish()
|
|
1550
1552
|
};
|
|
1551
|
-
}
|
|
1553
|
+
},
|
|
1554
|
+
registerTypeUrl() {}
|
|
1552
1555
|
};
|
|
1553
|
-
GlobalDecoderRegistry.register(AddressBytesToStringResponse.typeUrl, AddressBytesToStringResponse);
|
|
1554
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(AddressBytesToStringResponse.aminoType, AddressBytesToStringResponse.typeUrl);
|
|
1555
1556
|
function createBaseAddressStringToBytesRequest(): AddressStringToBytesRequest {
|
|
1556
1557
|
return {
|
|
1557
1558
|
addressString: ""
|
|
@@ -1626,10 +1627,9 @@ export const AddressStringToBytesRequest = {
|
|
|
1626
1627
|
typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest",
|
|
1627
1628
|
value: AddressStringToBytesRequest.encode(message).finish()
|
|
1628
1629
|
};
|
|
1629
|
-
}
|
|
1630
|
+
},
|
|
1631
|
+
registerTypeUrl() {}
|
|
1630
1632
|
};
|
|
1631
|
-
GlobalDecoderRegistry.register(AddressStringToBytesRequest.typeUrl, AddressStringToBytesRequest);
|
|
1632
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(AddressStringToBytesRequest.aminoType, AddressStringToBytesRequest.typeUrl);
|
|
1633
1633
|
function createBaseAddressStringToBytesResponse(): AddressStringToBytesResponse {
|
|
1634
1634
|
return {
|
|
1635
1635
|
addressBytes: new Uint8Array()
|
|
@@ -1704,10 +1704,9 @@ export const AddressStringToBytesResponse = {
|
|
|
1704
1704
|
typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse",
|
|
1705
1705
|
value: AddressStringToBytesResponse.encode(message).finish()
|
|
1706
1706
|
};
|
|
1707
|
-
}
|
|
1707
|
+
},
|
|
1708
|
+
registerTypeUrl() {}
|
|
1708
1709
|
};
|
|
1709
|
-
GlobalDecoderRegistry.register(AddressStringToBytesResponse.typeUrl, AddressStringToBytesResponse);
|
|
1710
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(AddressStringToBytesResponse.aminoType, AddressStringToBytesResponse.typeUrl);
|
|
1711
1710
|
function createBaseQueryAccountAddressByIDRequest(): QueryAccountAddressByIDRequest {
|
|
1712
1711
|
return {
|
|
1713
1712
|
id: BigInt(0),
|
|
@@ -1794,10 +1793,9 @@ export const QueryAccountAddressByIDRequest = {
|
|
|
1794
1793
|
typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest",
|
|
1795
1794
|
value: QueryAccountAddressByIDRequest.encode(message).finish()
|
|
1796
1795
|
};
|
|
1797
|
-
}
|
|
1796
|
+
},
|
|
1797
|
+
registerTypeUrl() {}
|
|
1798
1798
|
};
|
|
1799
|
-
GlobalDecoderRegistry.register(QueryAccountAddressByIDRequest.typeUrl, QueryAccountAddressByIDRequest);
|
|
1800
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountAddressByIDRequest.aminoType, QueryAccountAddressByIDRequest.typeUrl);
|
|
1801
1799
|
function createBaseQueryAccountAddressByIDResponse(): QueryAccountAddressByIDResponse {
|
|
1802
1800
|
return {
|
|
1803
1801
|
accountAddress: ""
|
|
@@ -1872,10 +1870,9 @@ export const QueryAccountAddressByIDResponse = {
|
|
|
1872
1870
|
typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse",
|
|
1873
1871
|
value: QueryAccountAddressByIDResponse.encode(message).finish()
|
|
1874
1872
|
};
|
|
1875
|
-
}
|
|
1873
|
+
},
|
|
1874
|
+
registerTypeUrl() {}
|
|
1876
1875
|
};
|
|
1877
|
-
GlobalDecoderRegistry.register(QueryAccountAddressByIDResponse.typeUrl, QueryAccountAddressByIDResponse);
|
|
1878
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountAddressByIDResponse.aminoType, QueryAccountAddressByIDResponse.typeUrl);
|
|
1879
1876
|
function createBaseQueryAccountInfoRequest(): QueryAccountInfoRequest {
|
|
1880
1877
|
return {
|
|
1881
1878
|
address: ""
|
|
@@ -1950,10 +1947,9 @@ export const QueryAccountInfoRequest = {
|
|
|
1950
1947
|
typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoRequest",
|
|
1951
1948
|
value: QueryAccountInfoRequest.encode(message).finish()
|
|
1952
1949
|
};
|
|
1953
|
-
}
|
|
1950
|
+
},
|
|
1951
|
+
registerTypeUrl() {}
|
|
1954
1952
|
};
|
|
1955
|
-
GlobalDecoderRegistry.register(QueryAccountInfoRequest.typeUrl, QueryAccountInfoRequest);
|
|
1956
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountInfoRequest.aminoType, QueryAccountInfoRequest.typeUrl);
|
|
1957
1953
|
function createBaseQueryAccountInfoResponse(): QueryAccountInfoResponse {
|
|
1958
1954
|
return {
|
|
1959
1955
|
info: undefined
|
|
@@ -2028,7 +2024,8 @@ export const QueryAccountInfoResponse = {
|
|
|
2028
2024
|
typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoResponse",
|
|
2029
2025
|
value: QueryAccountInfoResponse.encode(message).finish()
|
|
2030
2026
|
};
|
|
2027
|
+
},
|
|
2028
|
+
registerTypeUrl() {
|
|
2029
|
+
BaseAccount.registerTypeUrl();
|
|
2031
2030
|
}
|
|
2032
|
-
};
|
|
2033
|
-
GlobalDecoderRegistry.register(QueryAccountInfoResponse.typeUrl, QueryAccountInfoResponse);
|
|
2034
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountInfoResponse.aminoType, QueryAccountInfoResponse.typeUrl);
|
|
2031
|
+
};
|
|
@@ -1,3 +1,29 @@
|
|
|
1
1
|
import { TelescopeGeneratedType } from "../../../types";
|
|
2
2
|
import { MsgUpdateParams } from "./tx";
|
|
3
|
-
export const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]> = [["/cosmos.auth.v1beta1.MsgUpdateParams", MsgUpdateParams]];
|
|
3
|
+
export const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]> = [["/cosmos.auth.v1beta1.MsgUpdateParams", MsgUpdateParams]];
|
|
4
|
+
export const MessageComposer = {
|
|
5
|
+
encoded: {
|
|
6
|
+
updateParams(value: MsgUpdateParams) {
|
|
7
|
+
return {
|
|
8
|
+
typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams",
|
|
9
|
+
value: MsgUpdateParams.encode(value).finish()
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
withTypeUrl: {
|
|
14
|
+
updateParams(value: MsgUpdateParams) {
|
|
15
|
+
return {
|
|
16
|
+
typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams",
|
|
17
|
+
value
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
fromPartial: {
|
|
22
|
+
updateParams(value: MsgUpdateParams) {
|
|
23
|
+
return {
|
|
24
|
+
typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams",
|
|
25
|
+
value: MsgUpdateParams.fromPartial(value)
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
@@ -5,5 +5,6 @@ export const createUpdateParams = (clientResolver?: SigningClientResolver) => bu
|
|
|
5
5
|
clientResolver,
|
|
6
6
|
typeUrl: MsgUpdateParams.typeUrl,
|
|
7
7
|
encoders: toEncoders(MsgUpdateParams),
|
|
8
|
-
converters: toConverters(MsgUpdateParams)
|
|
8
|
+
converters: toConverters(MsgUpdateParams),
|
|
9
|
+
deps: [MsgUpdateParams]
|
|
9
10
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Params, ParamsAmino } from "./auth";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
3
|
import { DeepPartial } from "../../../helpers";
|
|
4
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
4
|
/**
|
|
6
5
|
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
7
6
|
*
|
|
@@ -148,10 +147,11 @@ export const MsgUpdateParams = {
|
|
|
148
147
|
typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams",
|
|
149
148
|
value: MsgUpdateParams.encode(message).finish()
|
|
150
149
|
};
|
|
150
|
+
},
|
|
151
|
+
registerTypeUrl() {
|
|
152
|
+
Params.registerTypeUrl();
|
|
151
153
|
}
|
|
152
154
|
};
|
|
153
|
-
GlobalDecoderRegistry.register(MsgUpdateParams.typeUrl, MsgUpdateParams);
|
|
154
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParams.aminoType, MsgUpdateParams.typeUrl);
|
|
155
155
|
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
156
156
|
return {};
|
|
157
157
|
}
|
|
@@ -213,7 +213,6 @@ export const MsgUpdateParamsResponse = {
|
|
|
213
213
|
typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParamsResponse",
|
|
214
214
|
value: MsgUpdateParamsResponse.encode(message).finish()
|
|
215
215
|
};
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParamsResponse.aminoType, MsgUpdateParamsResponse.typeUrl);
|
|
216
|
+
},
|
|
217
|
+
registerTypeUrl() {}
|
|
218
|
+
};
|
|
@@ -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 authz module. */
|
|
5
4
|
export interface Module {}
|
|
6
5
|
export interface ModuleProtoMsg {
|
|
@@ -74,7 +73,6 @@ export const Module = {
|
|
|
74
73
|
typeUrl: "/cosmos.authz.module.v1.Module",
|
|
75
74
|
value: Module.encode(message).finish()
|
|
76
75
|
};
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Module.aminoType, Module.typeUrl);
|
|
76
|
+
},
|
|
77
|
+
registerTypeUrl() {}
|
|
78
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Any, AnyProtoMsg, AnyAmino } from "../../../google/protobuf/any";
|
|
2
2
|
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
3
|
-
import { TransferAuthorization, TransferAuthorizationProtoMsg } from "../../../ibc/applications/transfer/v1/authz";
|
|
4
|
-
import { StoreCodeAuthorization, StoreCodeAuthorizationProtoMsg, ContractExecutionAuthorization, ContractExecutionAuthorizationProtoMsg, ContractMigrationAuthorization, ContractMigrationAuthorizationProtoMsg } from "../../../cosmwasm/wasm/v1/authz";
|
|
5
|
-
import { StakeAuthorization, StakeAuthorizationProtoMsg } from "../../staking/v1beta1/authz";
|
|
6
3
|
import { SendAuthorization, SendAuthorizationProtoMsg } from "../../bank/v1beta1/authz";
|
|
4
|
+
import { StakeAuthorization, StakeAuthorizationProtoMsg } from "../../staking/v1beta1/authz";
|
|
5
|
+
import { StoreCodeAuthorization, StoreCodeAuthorizationProtoMsg, ContractExecutionAuthorization, ContractExecutionAuthorizationProtoMsg, ContractMigrationAuthorization, ContractMigrationAuthorizationProtoMsg } from "../../../cosmwasm/wasm/v1/authz";
|
|
6
|
+
import { TransferAuthorization, TransferAuthorizationProtoMsg } from "../../../ibc/applications/transfer/v1/authz";
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
8
8
|
import { DeepPartial, toTimestamp, fromTimestamp } from "../../../helpers";
|
|
9
9
|
import { GlobalDecoderRegistry } from "../../../registry";
|
|
@@ -36,7 +36,7 @@ export interface GenericAuthorizationAminoMsg {
|
|
|
36
36
|
* the provide method with expiration time.
|
|
37
37
|
*/
|
|
38
38
|
export interface Grant {
|
|
39
|
-
authorization?: GenericAuthorization |
|
|
39
|
+
authorization?: GenericAuthorization | SendAuthorization | StakeAuthorization | StoreCodeAuthorization | ContractExecutionAuthorization | ContractMigrationAuthorization | TransferAuthorization | Any | undefined;
|
|
40
40
|
/**
|
|
41
41
|
* time when the grant will expire and will be pruned. If null, then the grant
|
|
42
42
|
* doesn't have a time expiration (other conditions in `authorization`
|
|
@@ -49,7 +49,7 @@ export interface GrantProtoMsg {
|
|
|
49
49
|
value: Uint8Array;
|
|
50
50
|
}
|
|
51
51
|
export type GrantEncoded = Omit<Grant, "authorization"> & {
|
|
52
|
-
authorization?: GenericAuthorizationProtoMsg |
|
|
52
|
+
authorization?: GenericAuthorizationProtoMsg | SendAuthorizationProtoMsg | StakeAuthorizationProtoMsg | StoreCodeAuthorizationProtoMsg | ContractExecutionAuthorizationProtoMsg | ContractMigrationAuthorizationProtoMsg | TransferAuthorizationProtoMsg | AnyProtoMsg | undefined;
|
|
53
53
|
};
|
|
54
54
|
/**
|
|
55
55
|
* Grant gives permissions to execute
|
|
@@ -75,7 +75,7 @@ export interface GrantAminoMsg {
|
|
|
75
75
|
export interface GrantAuthorization {
|
|
76
76
|
granter: string;
|
|
77
77
|
grantee: string;
|
|
78
|
-
authorization?: GenericAuthorization |
|
|
78
|
+
authorization?: GenericAuthorization | SendAuthorization | StakeAuthorization | StoreCodeAuthorization | ContractExecutionAuthorization | ContractMigrationAuthorization | TransferAuthorization | Any | undefined;
|
|
79
79
|
expiration?: Date;
|
|
80
80
|
}
|
|
81
81
|
export interface GrantAuthorizationProtoMsg {
|
|
@@ -83,7 +83,7 @@ export interface GrantAuthorizationProtoMsg {
|
|
|
83
83
|
value: Uint8Array;
|
|
84
84
|
}
|
|
85
85
|
export type GrantAuthorizationEncoded = Omit<GrantAuthorization, "authorization"> & {
|
|
86
|
-
authorization?: GenericAuthorizationProtoMsg |
|
|
86
|
+
authorization?: GenericAuthorizationProtoMsg | SendAuthorizationProtoMsg | StakeAuthorizationProtoMsg | StoreCodeAuthorizationProtoMsg | ContractExecutionAuthorizationProtoMsg | ContractMigrationAuthorizationProtoMsg | TransferAuthorizationProtoMsg | AnyProtoMsg | undefined;
|
|
87
87
|
};
|
|
88
88
|
/**
|
|
89
89
|
* GrantAuthorization extends a grant with both the addresses of the grantee and granter.
|
|
@@ -191,10 +191,12 @@ export const GenericAuthorization = {
|
|
|
191
191
|
typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization",
|
|
192
192
|
value: GenericAuthorization.encode(message).finish()
|
|
193
193
|
};
|
|
194
|
+
},
|
|
195
|
+
registerTypeUrl() {
|
|
196
|
+
GlobalDecoderRegistry.register(GenericAuthorization.typeUrl, GenericAuthorization);
|
|
197
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(GenericAuthorization.aminoType, GenericAuthorization.typeUrl);
|
|
194
198
|
}
|
|
195
199
|
};
|
|
196
|
-
GlobalDecoderRegistry.register(GenericAuthorization.typeUrl, GenericAuthorization);
|
|
197
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(GenericAuthorization.aminoType, GenericAuthorization.typeUrl);
|
|
198
200
|
function createBaseGrant(): Grant {
|
|
199
201
|
return {
|
|
200
202
|
authorization: undefined,
|
|
@@ -281,10 +283,17 @@ export const Grant = {
|
|
|
281
283
|
typeUrl: "/cosmos.authz.v1beta1.Grant",
|
|
282
284
|
value: Grant.encode(message).finish()
|
|
283
285
|
};
|
|
286
|
+
},
|
|
287
|
+
registerTypeUrl() {
|
|
288
|
+
GenericAuthorization.registerTypeUrl();
|
|
289
|
+
SendAuthorization.registerTypeUrl();
|
|
290
|
+
StakeAuthorization.registerTypeUrl();
|
|
291
|
+
StoreCodeAuthorization.registerTypeUrl();
|
|
292
|
+
ContractExecutionAuthorization.registerTypeUrl();
|
|
293
|
+
ContractMigrationAuthorization.registerTypeUrl();
|
|
294
|
+
TransferAuthorization.registerTypeUrl();
|
|
284
295
|
}
|
|
285
296
|
};
|
|
286
|
-
GlobalDecoderRegistry.register(Grant.typeUrl, Grant);
|
|
287
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Grant.aminoType, Grant.typeUrl);
|
|
288
297
|
function createBaseGrantAuthorization(): GrantAuthorization {
|
|
289
298
|
return {
|
|
290
299
|
granter: "",
|
|
@@ -395,10 +404,17 @@ export const GrantAuthorization = {
|
|
|
395
404
|
typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization",
|
|
396
405
|
value: GrantAuthorization.encode(message).finish()
|
|
397
406
|
};
|
|
407
|
+
},
|
|
408
|
+
registerTypeUrl() {
|
|
409
|
+
GenericAuthorization.registerTypeUrl();
|
|
410
|
+
SendAuthorization.registerTypeUrl();
|
|
411
|
+
StakeAuthorization.registerTypeUrl();
|
|
412
|
+
StoreCodeAuthorization.registerTypeUrl();
|
|
413
|
+
ContractExecutionAuthorization.registerTypeUrl();
|
|
414
|
+
ContractMigrationAuthorization.registerTypeUrl();
|
|
415
|
+
TransferAuthorization.registerTypeUrl();
|
|
398
416
|
}
|
|
399
417
|
};
|
|
400
|
-
GlobalDecoderRegistry.register(GrantAuthorization.typeUrl, GrantAuthorization);
|
|
401
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(GrantAuthorization.aminoType, GrantAuthorization.typeUrl);
|
|
402
418
|
function createBaseGrantQueueItem(): GrantQueueItem {
|
|
403
419
|
return {
|
|
404
420
|
msgTypeUrls: []
|
|
@@ -475,7 +491,6 @@ export const GrantQueueItem = {
|
|
|
475
491
|
typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem",
|
|
476
492
|
value: GrantQueueItem.encode(message).finish()
|
|
477
493
|
};
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(GrantQueueItem.aminoType, GrantQueueItem.typeUrl);
|
|
494
|
+
},
|
|
495
|
+
registerTypeUrl() {}
|
|
496
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
2
|
import { DeepPartial } from "../../../helpers";
|
|
3
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
4
3
|
/** EventGrant is emitted on Msg/Grant */
|
|
5
4
|
export interface EventGrant {
|
|
6
5
|
/** Msg type URL for which an autorization is granted */
|
|
@@ -151,10 +150,9 @@ export const EventGrant = {
|
|
|
151
150
|
typeUrl: "/cosmos.authz.v1beta1.EventGrant",
|
|
152
151
|
value: EventGrant.encode(message).finish()
|
|
153
152
|
};
|
|
154
|
-
}
|
|
153
|
+
},
|
|
154
|
+
registerTypeUrl() {}
|
|
155
155
|
};
|
|
156
|
-
GlobalDecoderRegistry.register(EventGrant.typeUrl, EventGrant);
|
|
157
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(EventGrant.aminoType, EventGrant.typeUrl);
|
|
158
156
|
function createBaseEventRevoke(): EventRevoke {
|
|
159
157
|
return {
|
|
160
158
|
msgTypeUrl: "",
|
|
@@ -253,7 +251,6 @@ export const EventRevoke = {
|
|
|
253
251
|
typeUrl: "/cosmos.authz.v1beta1.EventRevoke",
|
|
254
252
|
value: EventRevoke.encode(message).finish()
|
|
255
253
|
};
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(EventRevoke.aminoType, EventRevoke.typeUrl);
|
|
254
|
+
},
|
|
255
|
+
registerTypeUrl() {}
|
|
256
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { GrantAuthorization, GrantAuthorizationAmino } from "./authz";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
3
|
import { DeepPartial } from "../../../helpers";
|
|
4
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
4
|
/** GenesisState defines the authz module's genesis state. */
|
|
6
5
|
export interface GenesisState {
|
|
7
6
|
authorization: GrantAuthorization[];
|
|
@@ -94,7 +93,8 @@ export const GenesisState = {
|
|
|
94
93
|
typeUrl: "/cosmos.authz.v1beta1.GenesisState",
|
|
95
94
|
value: GenesisState.encode(message).finish()
|
|
96
95
|
};
|
|
96
|
+
},
|
|
97
|
+
registerTypeUrl() {
|
|
98
|
+
GrantAuthorization.registerTypeUrl();
|
|
97
99
|
}
|
|
98
|
-
};
|
|
99
|
-
GlobalDecoderRegistry.register(GenesisState.typeUrl, GenesisState);
|
|
100
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(GenesisState.aminoType, GenesisState.typeUrl);
|
|
100
|
+
};
|
|
@@ -5,19 +5,22 @@ export const createGetGrants = (clientResolver?: RpcResolver) => buildQuery<Quer
|
|
|
5
5
|
decode: QueryGrantsResponse.decode,
|
|
6
6
|
service: "cosmos.authz.v1beta1.Query",
|
|
7
7
|
method: "Grants",
|
|
8
|
-
clientResolver
|
|
8
|
+
clientResolver,
|
|
9
|
+
deps: [QueryGrantsRequest, QueryGrantsResponse]
|
|
9
10
|
});
|
|
10
11
|
export const createGetGranterGrants = (clientResolver?: RpcResolver) => buildQuery<QueryGranterGrantsRequest, QueryGranterGrantsResponse>({
|
|
11
12
|
encode: QueryGranterGrantsRequest.encode,
|
|
12
13
|
decode: QueryGranterGrantsResponse.decode,
|
|
13
14
|
service: "cosmos.authz.v1beta1.Query",
|
|
14
15
|
method: "GranterGrants",
|
|
15
|
-
clientResolver
|
|
16
|
+
clientResolver,
|
|
17
|
+
deps: [QueryGranterGrantsRequest, QueryGranterGrantsResponse]
|
|
16
18
|
});
|
|
17
19
|
export const createGetGranteeGrants = (clientResolver?: RpcResolver) => buildQuery<QueryGranteeGrantsRequest, QueryGranteeGrantsResponse>({
|
|
18
20
|
encode: QueryGranteeGrantsRequest.encode,
|
|
19
21
|
decode: QueryGranteeGrantsResponse.decode,
|
|
20
22
|
service: "cosmos.authz.v1beta1.Query",
|
|
21
23
|
method: "GranteeGrants",
|
|
22
|
-
clientResolver
|
|
24
|
+
clientResolver,
|
|
25
|
+
deps: [QueryGranteeGrantsRequest, QueryGranteeGrantsResponse]
|
|
23
26
|
});
|
|
@@ -2,7 +2,6 @@ import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "
|
|
|
2
2
|
import { Grant, GrantAmino, GrantAuthorization, GrantAuthorizationAmino } from "./authz";
|
|
3
3
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
4
|
import { DeepPartial } from "../../../helpers";
|
|
5
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
6
5
|
/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */
|
|
7
6
|
export interface QueryGrantsRequest {
|
|
8
7
|
granter: string;
|
|
@@ -245,10 +244,11 @@ export const QueryGrantsRequest = {
|
|
|
245
244
|
typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest",
|
|
246
245
|
value: QueryGrantsRequest.encode(message).finish()
|
|
247
246
|
};
|
|
247
|
+
},
|
|
248
|
+
registerTypeUrl() {
|
|
249
|
+
PageRequest.registerTypeUrl();
|
|
248
250
|
}
|
|
249
251
|
};
|
|
250
|
-
GlobalDecoderRegistry.register(QueryGrantsRequest.typeUrl, QueryGrantsRequest);
|
|
251
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryGrantsRequest.aminoType, QueryGrantsRequest.typeUrl);
|
|
252
252
|
function createBaseQueryGrantsResponse(): QueryGrantsResponse {
|
|
253
253
|
return {
|
|
254
254
|
grants: [],
|
|
@@ -337,10 +337,12 @@ export const QueryGrantsResponse = {
|
|
|
337
337
|
typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse",
|
|
338
338
|
value: QueryGrantsResponse.encode(message).finish()
|
|
339
339
|
};
|
|
340
|
+
},
|
|
341
|
+
registerTypeUrl() {
|
|
342
|
+
Grant.registerTypeUrl();
|
|
343
|
+
PageResponse.registerTypeUrl();
|
|
340
344
|
}
|
|
341
345
|
};
|
|
342
|
-
GlobalDecoderRegistry.register(QueryGrantsResponse.typeUrl, QueryGrantsResponse);
|
|
343
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryGrantsResponse.aminoType, QueryGrantsResponse.typeUrl);
|
|
344
346
|
function createBaseQueryGranterGrantsRequest(): QueryGranterGrantsRequest {
|
|
345
347
|
return {
|
|
346
348
|
granter: "",
|
|
@@ -427,10 +429,11 @@ export const QueryGranterGrantsRequest = {
|
|
|
427
429
|
typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest",
|
|
428
430
|
value: QueryGranterGrantsRequest.encode(message).finish()
|
|
429
431
|
};
|
|
432
|
+
},
|
|
433
|
+
registerTypeUrl() {
|
|
434
|
+
PageRequest.registerTypeUrl();
|
|
430
435
|
}
|
|
431
436
|
};
|
|
432
|
-
GlobalDecoderRegistry.register(QueryGranterGrantsRequest.typeUrl, QueryGranterGrantsRequest);
|
|
433
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryGranterGrantsRequest.aminoType, QueryGranterGrantsRequest.typeUrl);
|
|
434
437
|
function createBaseQueryGranterGrantsResponse(): QueryGranterGrantsResponse {
|
|
435
438
|
return {
|
|
436
439
|
grants: [],
|
|
@@ -519,10 +522,12 @@ export const QueryGranterGrantsResponse = {
|
|
|
519
522
|
typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse",
|
|
520
523
|
value: QueryGranterGrantsResponse.encode(message).finish()
|
|
521
524
|
};
|
|
525
|
+
},
|
|
526
|
+
registerTypeUrl() {
|
|
527
|
+
GrantAuthorization.registerTypeUrl();
|
|
528
|
+
PageResponse.registerTypeUrl();
|
|
522
529
|
}
|
|
523
530
|
};
|
|
524
|
-
GlobalDecoderRegistry.register(QueryGranterGrantsResponse.typeUrl, QueryGranterGrantsResponse);
|
|
525
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryGranterGrantsResponse.aminoType, QueryGranterGrantsResponse.typeUrl);
|
|
526
531
|
function createBaseQueryGranteeGrantsRequest(): QueryGranteeGrantsRequest {
|
|
527
532
|
return {
|
|
528
533
|
grantee: "",
|
|
@@ -609,10 +614,11 @@ export const QueryGranteeGrantsRequest = {
|
|
|
609
614
|
typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest",
|
|
610
615
|
value: QueryGranteeGrantsRequest.encode(message).finish()
|
|
611
616
|
};
|
|
617
|
+
},
|
|
618
|
+
registerTypeUrl() {
|
|
619
|
+
PageRequest.registerTypeUrl();
|
|
612
620
|
}
|
|
613
621
|
};
|
|
614
|
-
GlobalDecoderRegistry.register(QueryGranteeGrantsRequest.typeUrl, QueryGranteeGrantsRequest);
|
|
615
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryGranteeGrantsRequest.aminoType, QueryGranteeGrantsRequest.typeUrl);
|
|
616
622
|
function createBaseQueryGranteeGrantsResponse(): QueryGranteeGrantsResponse {
|
|
617
623
|
return {
|
|
618
624
|
grants: [],
|
|
@@ -701,7 +707,9 @@ export const QueryGranteeGrantsResponse = {
|
|
|
701
707
|
typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse",
|
|
702
708
|
value: QueryGranteeGrantsResponse.encode(message).finish()
|
|
703
709
|
};
|
|
710
|
+
},
|
|
711
|
+
registerTypeUrl() {
|
|
712
|
+
GrantAuthorization.registerTypeUrl();
|
|
713
|
+
PageResponse.registerTypeUrl();
|
|
704
714
|
}
|
|
705
|
-
};
|
|
706
|
-
GlobalDecoderRegistry.register(QueryGranteeGrantsResponse.typeUrl, QueryGranteeGrantsResponse);
|
|
707
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryGranteeGrantsResponse.aminoType, QueryGranteeGrantsResponse.typeUrl);
|
|
715
|
+
};
|