@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
|
@@ -1,79 +1,98 @@
|
|
|
1
1
|
import { RpcResolver, buildQuery } from "../../../helper-func-types";
|
|
2
|
-
import { QueryContractInfoRequest, QueryContractInfoResponse, QueryContractHistoryRequest, QueryContractHistoryResponse, QueryContractsByCodeRequest, QueryContractsByCodeResponse, QueryAllContractStateRequest, QueryAllContractStateResponse, QueryRawContractStateRequest, QueryRawContractStateResponse, QuerySmartContractStateRequest, QuerySmartContractStateResponse, QueryCodeRequest, QueryCodeResponse, QueryCodesRequest, QueryCodesResponse, QueryPinnedCodesRequest, QueryPinnedCodesResponse, QueryParamsRequest, QueryParamsResponse, QueryContractsByCreatorRequest, QueryContractsByCreatorResponse } from "./query";
|
|
2
|
+
import { QueryContractInfoRequest, QueryContractInfoResponse, QueryContractHistoryRequest, QueryContractHistoryResponse, QueryContractsByCodeRequest, QueryContractsByCodeResponse, QueryAllContractStateRequest, QueryAllContractStateResponse, QueryRawContractStateRequest, QueryRawContractStateResponse, QuerySmartContractStateRequest, QuerySmartContractStateResponse, QueryCodeRequest, QueryCodeResponse, QueryCodesRequest, QueryCodesResponse, QueryPinnedCodesRequest, QueryPinnedCodesResponse, QueryParamsRequest, QueryParamsResponse, QueryContractsByCreatorRequest, QueryContractsByCreatorResponse, QueryBuildAddressRequest, QueryBuildAddressResponse } from "./query";
|
|
3
3
|
export const createGetContractInfo = (clientResolver?: RpcResolver) => buildQuery<QueryContractInfoRequest, QueryContractInfoResponse>({
|
|
4
4
|
encode: QueryContractInfoRequest.encode,
|
|
5
5
|
decode: QueryContractInfoResponse.decode,
|
|
6
6
|
service: "cosmwasm.wasm.v1.Query",
|
|
7
7
|
method: "ContractInfo",
|
|
8
|
-
clientResolver
|
|
8
|
+
clientResolver,
|
|
9
|
+
deps: [QueryContractInfoRequest, QueryContractInfoResponse]
|
|
9
10
|
});
|
|
10
11
|
export const createGetContractHistory = (clientResolver?: RpcResolver) => buildQuery<QueryContractHistoryRequest, QueryContractHistoryResponse>({
|
|
11
12
|
encode: QueryContractHistoryRequest.encode,
|
|
12
13
|
decode: QueryContractHistoryResponse.decode,
|
|
13
14
|
service: "cosmwasm.wasm.v1.Query",
|
|
14
15
|
method: "ContractHistory",
|
|
15
|
-
clientResolver
|
|
16
|
+
clientResolver,
|
|
17
|
+
deps: [QueryContractHistoryRequest, QueryContractHistoryResponse]
|
|
16
18
|
});
|
|
17
19
|
export const createGetContractsByCode = (clientResolver?: RpcResolver) => buildQuery<QueryContractsByCodeRequest, QueryContractsByCodeResponse>({
|
|
18
20
|
encode: QueryContractsByCodeRequest.encode,
|
|
19
21
|
decode: QueryContractsByCodeResponse.decode,
|
|
20
22
|
service: "cosmwasm.wasm.v1.Query",
|
|
21
23
|
method: "ContractsByCode",
|
|
22
|
-
clientResolver
|
|
24
|
+
clientResolver,
|
|
25
|
+
deps: [QueryContractsByCodeRequest, QueryContractsByCodeResponse]
|
|
23
26
|
});
|
|
24
27
|
export const createGetAllContractState = (clientResolver?: RpcResolver) => buildQuery<QueryAllContractStateRequest, QueryAllContractStateResponse>({
|
|
25
28
|
encode: QueryAllContractStateRequest.encode,
|
|
26
29
|
decode: QueryAllContractStateResponse.decode,
|
|
27
30
|
service: "cosmwasm.wasm.v1.Query",
|
|
28
31
|
method: "AllContractState",
|
|
29
|
-
clientResolver
|
|
32
|
+
clientResolver,
|
|
33
|
+
deps: [QueryAllContractStateRequest, QueryAllContractStateResponse]
|
|
30
34
|
});
|
|
31
35
|
export const createGetRawContractState = (clientResolver?: RpcResolver) => buildQuery<QueryRawContractStateRequest, QueryRawContractStateResponse>({
|
|
32
36
|
encode: QueryRawContractStateRequest.encode,
|
|
33
37
|
decode: QueryRawContractStateResponse.decode,
|
|
34
38
|
service: "cosmwasm.wasm.v1.Query",
|
|
35
39
|
method: "RawContractState",
|
|
36
|
-
clientResolver
|
|
40
|
+
clientResolver,
|
|
41
|
+
deps: [QueryRawContractStateRequest, QueryRawContractStateResponse]
|
|
37
42
|
});
|
|
38
43
|
export const createGetSmartContractState = (clientResolver?: RpcResolver) => buildQuery<QuerySmartContractStateRequest, QuerySmartContractStateResponse>({
|
|
39
44
|
encode: QuerySmartContractStateRequest.encode,
|
|
40
45
|
decode: QuerySmartContractStateResponse.decode,
|
|
41
46
|
service: "cosmwasm.wasm.v1.Query",
|
|
42
47
|
method: "SmartContractState",
|
|
43
|
-
clientResolver
|
|
48
|
+
clientResolver,
|
|
49
|
+
deps: [QuerySmartContractStateRequest, QuerySmartContractStateResponse]
|
|
44
50
|
});
|
|
45
51
|
export const createGetCode = (clientResolver?: RpcResolver) => buildQuery<QueryCodeRequest, QueryCodeResponse>({
|
|
46
52
|
encode: QueryCodeRequest.encode,
|
|
47
53
|
decode: QueryCodeResponse.decode,
|
|
48
54
|
service: "cosmwasm.wasm.v1.Query",
|
|
49
55
|
method: "Code",
|
|
50
|
-
clientResolver
|
|
56
|
+
clientResolver,
|
|
57
|
+
deps: [QueryCodeRequest, QueryCodeResponse]
|
|
51
58
|
});
|
|
52
59
|
export const createGetCodes = (clientResolver?: RpcResolver) => buildQuery<QueryCodesRequest, QueryCodesResponse>({
|
|
53
60
|
encode: QueryCodesRequest.encode,
|
|
54
61
|
decode: QueryCodesResponse.decode,
|
|
55
62
|
service: "cosmwasm.wasm.v1.Query",
|
|
56
63
|
method: "Codes",
|
|
57
|
-
clientResolver
|
|
64
|
+
clientResolver,
|
|
65
|
+
deps: [QueryCodesRequest, QueryCodesResponse]
|
|
58
66
|
});
|
|
59
67
|
export const createGetPinnedCodes = (clientResolver?: RpcResolver) => buildQuery<QueryPinnedCodesRequest, QueryPinnedCodesResponse>({
|
|
60
68
|
encode: QueryPinnedCodesRequest.encode,
|
|
61
69
|
decode: QueryPinnedCodesResponse.decode,
|
|
62
70
|
service: "cosmwasm.wasm.v1.Query",
|
|
63
71
|
method: "PinnedCodes",
|
|
64
|
-
clientResolver
|
|
72
|
+
clientResolver,
|
|
73
|
+
deps: [QueryPinnedCodesRequest, QueryPinnedCodesResponse]
|
|
65
74
|
});
|
|
66
75
|
export const createGetParams = (clientResolver?: RpcResolver) => buildQuery<QueryParamsRequest, QueryParamsResponse>({
|
|
67
76
|
encode: QueryParamsRequest.encode,
|
|
68
77
|
decode: QueryParamsResponse.decode,
|
|
69
78
|
service: "cosmwasm.wasm.v1.Query",
|
|
70
79
|
method: "Params",
|
|
71
|
-
clientResolver
|
|
80
|
+
clientResolver,
|
|
81
|
+
deps: [QueryParamsRequest, QueryParamsResponse]
|
|
72
82
|
});
|
|
73
83
|
export const createGetContractsByCreator = (clientResolver?: RpcResolver) => buildQuery<QueryContractsByCreatorRequest, QueryContractsByCreatorResponse>({
|
|
74
84
|
encode: QueryContractsByCreatorRequest.encode,
|
|
75
85
|
decode: QueryContractsByCreatorResponse.decode,
|
|
76
86
|
service: "cosmwasm.wasm.v1.Query",
|
|
77
87
|
method: "ContractsByCreator",
|
|
78
|
-
clientResolver
|
|
88
|
+
clientResolver,
|
|
89
|
+
deps: [QueryContractsByCreatorRequest, QueryContractsByCreatorResponse]
|
|
90
|
+
});
|
|
91
|
+
export const createGetBuildAddress = (clientResolver?: RpcResolver) => buildQuery<QueryBuildAddressRequest, QueryBuildAddressResponse>({
|
|
92
|
+
encode: QueryBuildAddressRequest.encode,
|
|
93
|
+
decode: QueryBuildAddressResponse.decode,
|
|
94
|
+
service: "cosmwasm.wasm.v1.Query",
|
|
95
|
+
method: "BuildAddress",
|
|
96
|
+
clientResolver,
|
|
97
|
+
deps: [QueryBuildAddressRequest, QueryBuildAddressResponse]
|
|
79
98
|
});
|
|
@@ -2,8 +2,7 @@ import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "
|
|
|
2
2
|
import { ContractInfo, ContractInfoAmino, ContractCodeHistoryEntry, ContractCodeHistoryEntryAmino, Model, ModelAmino, AccessConfig, AccessConfigAmino, Params, ParamsAmino } from "./types";
|
|
3
3
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
4
|
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
5
|
-
import {
|
|
6
|
-
import { toUtf8, fromUtf8 } from "@cosmjs/encoding";
|
|
5
|
+
import { toUtf8, fromUtf8 } from "@interchainjs/encoding";
|
|
7
6
|
/**
|
|
8
7
|
* QueryContractInfoRequest is the request type for the Query/ContractInfo RPC
|
|
9
8
|
* method
|
|
@@ -552,6 +551,72 @@ export interface QueryContractsByCreatorResponseAminoMsg {
|
|
|
552
551
|
type: "wasm/QueryContractsByCreatorResponse";
|
|
553
552
|
value: QueryContractsByCreatorResponseAmino;
|
|
554
553
|
}
|
|
554
|
+
/**
|
|
555
|
+
* QueryBuildAddressRequest is the request type for the Query/BuildAddress RPC
|
|
556
|
+
* method.
|
|
557
|
+
*/
|
|
558
|
+
export interface QueryBuildAddressRequest {
|
|
559
|
+
/** CodeHash is the hash of the code */
|
|
560
|
+
codeHash: string;
|
|
561
|
+
/** CreatorAddress is the address of the contract instantiator */
|
|
562
|
+
creatorAddress: string;
|
|
563
|
+
/** Salt is a hex encoded salt */
|
|
564
|
+
salt: string;
|
|
565
|
+
/**
|
|
566
|
+
* InitArgs are optional json encoded init args to be used in contract address
|
|
567
|
+
* building if provided
|
|
568
|
+
*/
|
|
569
|
+
initArgs: Uint8Array;
|
|
570
|
+
}
|
|
571
|
+
export interface QueryBuildAddressRequestProtoMsg {
|
|
572
|
+
typeUrl: "/cosmwasm.wasm.v1.QueryBuildAddressRequest";
|
|
573
|
+
value: Uint8Array;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* QueryBuildAddressRequest is the request type for the Query/BuildAddress RPC
|
|
577
|
+
* method.
|
|
578
|
+
*/
|
|
579
|
+
export interface QueryBuildAddressRequestAmino {
|
|
580
|
+
/** CodeHash is the hash of the code */
|
|
581
|
+
code_hash: string;
|
|
582
|
+
/** CreatorAddress is the address of the contract instantiator */
|
|
583
|
+
creator_address: string;
|
|
584
|
+
/** Salt is a hex encoded salt */
|
|
585
|
+
salt: string;
|
|
586
|
+
/**
|
|
587
|
+
* InitArgs are optional json encoded init args to be used in contract address
|
|
588
|
+
* building if provided
|
|
589
|
+
*/
|
|
590
|
+
init_args: string;
|
|
591
|
+
}
|
|
592
|
+
export interface QueryBuildAddressRequestAminoMsg {
|
|
593
|
+
type: "wasm/QueryBuildAddressRequest";
|
|
594
|
+
value: QueryBuildAddressRequestAmino;
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* QueryBuildAddressResponse is the response type for the Query/BuildAddress RPC
|
|
598
|
+
* method.
|
|
599
|
+
*/
|
|
600
|
+
export interface QueryBuildAddressResponse {
|
|
601
|
+
/** Address is the contract address */
|
|
602
|
+
address: string;
|
|
603
|
+
}
|
|
604
|
+
export interface QueryBuildAddressResponseProtoMsg {
|
|
605
|
+
typeUrl: "/cosmwasm.wasm.v1.QueryBuildAddressResponse";
|
|
606
|
+
value: Uint8Array;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* QueryBuildAddressResponse is the response type for the Query/BuildAddress RPC
|
|
610
|
+
* method.
|
|
611
|
+
*/
|
|
612
|
+
export interface QueryBuildAddressResponseAmino {
|
|
613
|
+
/** Address is the contract address */
|
|
614
|
+
address: string;
|
|
615
|
+
}
|
|
616
|
+
export interface QueryBuildAddressResponseAminoMsg {
|
|
617
|
+
type: "wasm/QueryBuildAddressResponse";
|
|
618
|
+
value: QueryBuildAddressResponseAmino;
|
|
619
|
+
}
|
|
555
620
|
function createBaseQueryContractInfoRequest(): QueryContractInfoRequest {
|
|
556
621
|
return {
|
|
557
622
|
address: ""
|
|
@@ -626,10 +691,9 @@ export const QueryContractInfoRequest = {
|
|
|
626
691
|
typeUrl: "/cosmwasm.wasm.v1.QueryContractInfoRequest",
|
|
627
692
|
value: QueryContractInfoRequest.encode(message).finish()
|
|
628
693
|
};
|
|
629
|
-
}
|
|
694
|
+
},
|
|
695
|
+
registerTypeUrl() {}
|
|
630
696
|
};
|
|
631
|
-
GlobalDecoderRegistry.register(QueryContractInfoRequest.typeUrl, QueryContractInfoRequest);
|
|
632
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryContractInfoRequest.aminoType, QueryContractInfoRequest.typeUrl);
|
|
633
697
|
function createBaseQueryContractInfoResponse(): QueryContractInfoResponse {
|
|
634
698
|
return {
|
|
635
699
|
address: "",
|
|
@@ -716,10 +780,11 @@ export const QueryContractInfoResponse = {
|
|
|
716
780
|
typeUrl: "/cosmwasm.wasm.v1.QueryContractInfoResponse",
|
|
717
781
|
value: QueryContractInfoResponse.encode(message).finish()
|
|
718
782
|
};
|
|
783
|
+
},
|
|
784
|
+
registerTypeUrl() {
|
|
785
|
+
ContractInfo.registerTypeUrl();
|
|
719
786
|
}
|
|
720
787
|
};
|
|
721
|
-
GlobalDecoderRegistry.register(QueryContractInfoResponse.typeUrl, QueryContractInfoResponse);
|
|
722
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryContractInfoResponse.aminoType, QueryContractInfoResponse.typeUrl);
|
|
723
788
|
function createBaseQueryContractHistoryRequest(): QueryContractHistoryRequest {
|
|
724
789
|
return {
|
|
725
790
|
address: "",
|
|
@@ -806,10 +871,11 @@ export const QueryContractHistoryRequest = {
|
|
|
806
871
|
typeUrl: "/cosmwasm.wasm.v1.QueryContractHistoryRequest",
|
|
807
872
|
value: QueryContractHistoryRequest.encode(message).finish()
|
|
808
873
|
};
|
|
874
|
+
},
|
|
875
|
+
registerTypeUrl() {
|
|
876
|
+
PageRequest.registerTypeUrl();
|
|
809
877
|
}
|
|
810
878
|
};
|
|
811
|
-
GlobalDecoderRegistry.register(QueryContractHistoryRequest.typeUrl, QueryContractHistoryRequest);
|
|
812
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryContractHistoryRequest.aminoType, QueryContractHistoryRequest.typeUrl);
|
|
813
879
|
function createBaseQueryContractHistoryResponse(): QueryContractHistoryResponse {
|
|
814
880
|
return {
|
|
815
881
|
entries: [],
|
|
@@ -898,10 +964,12 @@ export const QueryContractHistoryResponse = {
|
|
|
898
964
|
typeUrl: "/cosmwasm.wasm.v1.QueryContractHistoryResponse",
|
|
899
965
|
value: QueryContractHistoryResponse.encode(message).finish()
|
|
900
966
|
};
|
|
967
|
+
},
|
|
968
|
+
registerTypeUrl() {
|
|
969
|
+
ContractCodeHistoryEntry.registerTypeUrl();
|
|
970
|
+
PageResponse.registerTypeUrl();
|
|
901
971
|
}
|
|
902
972
|
};
|
|
903
|
-
GlobalDecoderRegistry.register(QueryContractHistoryResponse.typeUrl, QueryContractHistoryResponse);
|
|
904
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryContractHistoryResponse.aminoType, QueryContractHistoryResponse.typeUrl);
|
|
905
973
|
function createBaseQueryContractsByCodeRequest(): QueryContractsByCodeRequest {
|
|
906
974
|
return {
|
|
907
975
|
codeId: BigInt(0),
|
|
@@ -988,10 +1056,11 @@ export const QueryContractsByCodeRequest = {
|
|
|
988
1056
|
typeUrl: "/cosmwasm.wasm.v1.QueryContractsByCodeRequest",
|
|
989
1057
|
value: QueryContractsByCodeRequest.encode(message).finish()
|
|
990
1058
|
};
|
|
1059
|
+
},
|
|
1060
|
+
registerTypeUrl() {
|
|
1061
|
+
PageRequest.registerTypeUrl();
|
|
991
1062
|
}
|
|
992
1063
|
};
|
|
993
|
-
GlobalDecoderRegistry.register(QueryContractsByCodeRequest.typeUrl, QueryContractsByCodeRequest);
|
|
994
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryContractsByCodeRequest.aminoType, QueryContractsByCodeRequest.typeUrl);
|
|
995
1064
|
function createBaseQueryContractsByCodeResponse(): QueryContractsByCodeResponse {
|
|
996
1065
|
return {
|
|
997
1066
|
contracts: [],
|
|
@@ -1080,10 +1149,11 @@ export const QueryContractsByCodeResponse = {
|
|
|
1080
1149
|
typeUrl: "/cosmwasm.wasm.v1.QueryContractsByCodeResponse",
|
|
1081
1150
|
value: QueryContractsByCodeResponse.encode(message).finish()
|
|
1082
1151
|
};
|
|
1152
|
+
},
|
|
1153
|
+
registerTypeUrl() {
|
|
1154
|
+
PageResponse.registerTypeUrl();
|
|
1083
1155
|
}
|
|
1084
1156
|
};
|
|
1085
|
-
GlobalDecoderRegistry.register(QueryContractsByCodeResponse.typeUrl, QueryContractsByCodeResponse);
|
|
1086
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryContractsByCodeResponse.aminoType, QueryContractsByCodeResponse.typeUrl);
|
|
1087
1157
|
function createBaseQueryAllContractStateRequest(): QueryAllContractStateRequest {
|
|
1088
1158
|
return {
|
|
1089
1159
|
address: "",
|
|
@@ -1170,10 +1240,11 @@ export const QueryAllContractStateRequest = {
|
|
|
1170
1240
|
typeUrl: "/cosmwasm.wasm.v1.QueryAllContractStateRequest",
|
|
1171
1241
|
value: QueryAllContractStateRequest.encode(message).finish()
|
|
1172
1242
|
};
|
|
1243
|
+
},
|
|
1244
|
+
registerTypeUrl() {
|
|
1245
|
+
PageRequest.registerTypeUrl();
|
|
1173
1246
|
}
|
|
1174
1247
|
};
|
|
1175
|
-
GlobalDecoderRegistry.register(QueryAllContractStateRequest.typeUrl, QueryAllContractStateRequest);
|
|
1176
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAllContractStateRequest.aminoType, QueryAllContractStateRequest.typeUrl);
|
|
1177
1248
|
function createBaseQueryAllContractStateResponse(): QueryAllContractStateResponse {
|
|
1178
1249
|
return {
|
|
1179
1250
|
models: [],
|
|
@@ -1262,10 +1333,12 @@ export const QueryAllContractStateResponse = {
|
|
|
1262
1333
|
typeUrl: "/cosmwasm.wasm.v1.QueryAllContractStateResponse",
|
|
1263
1334
|
value: QueryAllContractStateResponse.encode(message).finish()
|
|
1264
1335
|
};
|
|
1336
|
+
},
|
|
1337
|
+
registerTypeUrl() {
|
|
1338
|
+
Model.registerTypeUrl();
|
|
1339
|
+
PageResponse.registerTypeUrl();
|
|
1265
1340
|
}
|
|
1266
1341
|
};
|
|
1267
|
-
GlobalDecoderRegistry.register(QueryAllContractStateResponse.typeUrl, QueryAllContractStateResponse);
|
|
1268
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAllContractStateResponse.aminoType, QueryAllContractStateResponse.typeUrl);
|
|
1269
1342
|
function createBaseQueryRawContractStateRequest(): QueryRawContractStateRequest {
|
|
1270
1343
|
return {
|
|
1271
1344
|
address: "",
|
|
@@ -1352,10 +1425,9 @@ export const QueryRawContractStateRequest = {
|
|
|
1352
1425
|
typeUrl: "/cosmwasm.wasm.v1.QueryRawContractStateRequest",
|
|
1353
1426
|
value: QueryRawContractStateRequest.encode(message).finish()
|
|
1354
1427
|
};
|
|
1355
|
-
}
|
|
1428
|
+
},
|
|
1429
|
+
registerTypeUrl() {}
|
|
1356
1430
|
};
|
|
1357
|
-
GlobalDecoderRegistry.register(QueryRawContractStateRequest.typeUrl, QueryRawContractStateRequest);
|
|
1358
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryRawContractStateRequest.aminoType, QueryRawContractStateRequest.typeUrl);
|
|
1359
1431
|
function createBaseQueryRawContractStateResponse(): QueryRawContractStateResponse {
|
|
1360
1432
|
return {
|
|
1361
1433
|
data: new Uint8Array()
|
|
@@ -1430,10 +1502,9 @@ export const QueryRawContractStateResponse = {
|
|
|
1430
1502
|
typeUrl: "/cosmwasm.wasm.v1.QueryRawContractStateResponse",
|
|
1431
1503
|
value: QueryRawContractStateResponse.encode(message).finish()
|
|
1432
1504
|
};
|
|
1433
|
-
}
|
|
1505
|
+
},
|
|
1506
|
+
registerTypeUrl() {}
|
|
1434
1507
|
};
|
|
1435
|
-
GlobalDecoderRegistry.register(QueryRawContractStateResponse.typeUrl, QueryRawContractStateResponse);
|
|
1436
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryRawContractStateResponse.aminoType, QueryRawContractStateResponse.typeUrl);
|
|
1437
1508
|
function createBaseQuerySmartContractStateRequest(): QuerySmartContractStateRequest {
|
|
1438
1509
|
return {
|
|
1439
1510
|
address: "",
|
|
@@ -1520,10 +1591,9 @@ export const QuerySmartContractStateRequest = {
|
|
|
1520
1591
|
typeUrl: "/cosmwasm.wasm.v1.QuerySmartContractStateRequest",
|
|
1521
1592
|
value: QuerySmartContractStateRequest.encode(message).finish()
|
|
1522
1593
|
};
|
|
1523
|
-
}
|
|
1594
|
+
},
|
|
1595
|
+
registerTypeUrl() {}
|
|
1524
1596
|
};
|
|
1525
|
-
GlobalDecoderRegistry.register(QuerySmartContractStateRequest.typeUrl, QuerySmartContractStateRequest);
|
|
1526
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QuerySmartContractStateRequest.aminoType, QuerySmartContractStateRequest.typeUrl);
|
|
1527
1597
|
function createBaseQuerySmartContractStateResponse(): QuerySmartContractStateResponse {
|
|
1528
1598
|
return {
|
|
1529
1599
|
data: new Uint8Array()
|
|
@@ -1598,10 +1668,9 @@ export const QuerySmartContractStateResponse = {
|
|
|
1598
1668
|
typeUrl: "/cosmwasm.wasm.v1.QuerySmartContractStateResponse",
|
|
1599
1669
|
value: QuerySmartContractStateResponse.encode(message).finish()
|
|
1600
1670
|
};
|
|
1601
|
-
}
|
|
1671
|
+
},
|
|
1672
|
+
registerTypeUrl() {}
|
|
1602
1673
|
};
|
|
1603
|
-
GlobalDecoderRegistry.register(QuerySmartContractStateResponse.typeUrl, QuerySmartContractStateResponse);
|
|
1604
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QuerySmartContractStateResponse.aminoType, QuerySmartContractStateResponse.typeUrl);
|
|
1605
1674
|
function createBaseQueryCodeRequest(): QueryCodeRequest {
|
|
1606
1675
|
return {
|
|
1607
1676
|
codeId: BigInt(0)
|
|
@@ -1676,10 +1745,9 @@ export const QueryCodeRequest = {
|
|
|
1676
1745
|
typeUrl: "/cosmwasm.wasm.v1.QueryCodeRequest",
|
|
1677
1746
|
value: QueryCodeRequest.encode(message).finish()
|
|
1678
1747
|
};
|
|
1679
|
-
}
|
|
1748
|
+
},
|
|
1749
|
+
registerTypeUrl() {}
|
|
1680
1750
|
};
|
|
1681
|
-
GlobalDecoderRegistry.register(QueryCodeRequest.typeUrl, QueryCodeRequest);
|
|
1682
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryCodeRequest.aminoType, QueryCodeRequest.typeUrl);
|
|
1683
1751
|
function createBaseCodeInfoResponse(): CodeInfoResponse {
|
|
1684
1752
|
return {
|
|
1685
1753
|
codeId: BigInt(0),
|
|
@@ -1790,10 +1858,11 @@ export const CodeInfoResponse = {
|
|
|
1790
1858
|
typeUrl: "/cosmwasm.wasm.v1.CodeInfoResponse",
|
|
1791
1859
|
value: CodeInfoResponse.encode(message).finish()
|
|
1792
1860
|
};
|
|
1861
|
+
},
|
|
1862
|
+
registerTypeUrl() {
|
|
1863
|
+
AccessConfig.registerTypeUrl();
|
|
1793
1864
|
}
|
|
1794
1865
|
};
|
|
1795
|
-
GlobalDecoderRegistry.register(CodeInfoResponse.typeUrl, CodeInfoResponse);
|
|
1796
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(CodeInfoResponse.aminoType, CodeInfoResponse.typeUrl);
|
|
1797
1866
|
function createBaseQueryCodeResponse(): QueryCodeResponse {
|
|
1798
1867
|
return {
|
|
1799
1868
|
codeInfo: undefined,
|
|
@@ -1880,10 +1949,11 @@ export const QueryCodeResponse = {
|
|
|
1880
1949
|
typeUrl: "/cosmwasm.wasm.v1.QueryCodeResponse",
|
|
1881
1950
|
value: QueryCodeResponse.encode(message).finish()
|
|
1882
1951
|
};
|
|
1952
|
+
},
|
|
1953
|
+
registerTypeUrl() {
|
|
1954
|
+
CodeInfoResponse.registerTypeUrl();
|
|
1883
1955
|
}
|
|
1884
1956
|
};
|
|
1885
|
-
GlobalDecoderRegistry.register(QueryCodeResponse.typeUrl, QueryCodeResponse);
|
|
1886
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryCodeResponse.aminoType, QueryCodeResponse.typeUrl);
|
|
1887
1957
|
function createBaseQueryCodesRequest(): QueryCodesRequest {
|
|
1888
1958
|
return {
|
|
1889
1959
|
pagination: undefined
|
|
@@ -1958,10 +2028,11 @@ export const QueryCodesRequest = {
|
|
|
1958
2028
|
typeUrl: "/cosmwasm.wasm.v1.QueryCodesRequest",
|
|
1959
2029
|
value: QueryCodesRequest.encode(message).finish()
|
|
1960
2030
|
};
|
|
2031
|
+
},
|
|
2032
|
+
registerTypeUrl() {
|
|
2033
|
+
PageRequest.registerTypeUrl();
|
|
1961
2034
|
}
|
|
1962
2035
|
};
|
|
1963
|
-
GlobalDecoderRegistry.register(QueryCodesRequest.typeUrl, QueryCodesRequest);
|
|
1964
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryCodesRequest.aminoType, QueryCodesRequest.typeUrl);
|
|
1965
2036
|
function createBaseQueryCodesResponse(): QueryCodesResponse {
|
|
1966
2037
|
return {
|
|
1967
2038
|
codeInfos: [],
|
|
@@ -2050,10 +2121,12 @@ export const QueryCodesResponse = {
|
|
|
2050
2121
|
typeUrl: "/cosmwasm.wasm.v1.QueryCodesResponse",
|
|
2051
2122
|
value: QueryCodesResponse.encode(message).finish()
|
|
2052
2123
|
};
|
|
2124
|
+
},
|
|
2125
|
+
registerTypeUrl() {
|
|
2126
|
+
CodeInfoResponse.registerTypeUrl();
|
|
2127
|
+
PageResponse.registerTypeUrl();
|
|
2053
2128
|
}
|
|
2054
2129
|
};
|
|
2055
|
-
GlobalDecoderRegistry.register(QueryCodesResponse.typeUrl, QueryCodesResponse);
|
|
2056
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryCodesResponse.aminoType, QueryCodesResponse.typeUrl);
|
|
2057
2130
|
function createBaseQueryPinnedCodesRequest(): QueryPinnedCodesRequest {
|
|
2058
2131
|
return {
|
|
2059
2132
|
pagination: undefined
|
|
@@ -2128,10 +2201,11 @@ export const QueryPinnedCodesRequest = {
|
|
|
2128
2201
|
typeUrl: "/cosmwasm.wasm.v1.QueryPinnedCodesRequest",
|
|
2129
2202
|
value: QueryPinnedCodesRequest.encode(message).finish()
|
|
2130
2203
|
};
|
|
2204
|
+
},
|
|
2205
|
+
registerTypeUrl() {
|
|
2206
|
+
PageRequest.registerTypeUrl();
|
|
2131
2207
|
}
|
|
2132
2208
|
};
|
|
2133
|
-
GlobalDecoderRegistry.register(QueryPinnedCodesRequest.typeUrl, QueryPinnedCodesRequest);
|
|
2134
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryPinnedCodesRequest.aminoType, QueryPinnedCodesRequest.typeUrl);
|
|
2135
2209
|
function createBaseQueryPinnedCodesResponse(): QueryPinnedCodesResponse {
|
|
2136
2210
|
return {
|
|
2137
2211
|
codeIds: [],
|
|
@@ -2229,10 +2303,11 @@ export const QueryPinnedCodesResponse = {
|
|
|
2229
2303
|
typeUrl: "/cosmwasm.wasm.v1.QueryPinnedCodesResponse",
|
|
2230
2304
|
value: QueryPinnedCodesResponse.encode(message).finish()
|
|
2231
2305
|
};
|
|
2306
|
+
},
|
|
2307
|
+
registerTypeUrl() {
|
|
2308
|
+
PageResponse.registerTypeUrl();
|
|
2232
2309
|
}
|
|
2233
2310
|
};
|
|
2234
|
-
GlobalDecoderRegistry.register(QueryPinnedCodesResponse.typeUrl, QueryPinnedCodesResponse);
|
|
2235
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryPinnedCodesResponse.aminoType, QueryPinnedCodesResponse.typeUrl);
|
|
2236
2311
|
function createBaseQueryParamsRequest(): QueryParamsRequest {
|
|
2237
2312
|
return {};
|
|
2238
2313
|
}
|
|
@@ -2294,10 +2369,9 @@ export const QueryParamsRequest = {
|
|
|
2294
2369
|
typeUrl: "/cosmwasm.wasm.v1.QueryParamsRequest",
|
|
2295
2370
|
value: QueryParamsRequest.encode(message).finish()
|
|
2296
2371
|
};
|
|
2297
|
-
}
|
|
2372
|
+
},
|
|
2373
|
+
registerTypeUrl() {}
|
|
2298
2374
|
};
|
|
2299
|
-
GlobalDecoderRegistry.register(QueryParamsRequest.typeUrl, QueryParamsRequest);
|
|
2300
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsRequest.aminoType, QueryParamsRequest.typeUrl);
|
|
2301
2375
|
function createBaseQueryParamsResponse(): QueryParamsResponse {
|
|
2302
2376
|
return {
|
|
2303
2377
|
params: Params.fromPartial({})
|
|
@@ -2372,10 +2446,11 @@ export const QueryParamsResponse = {
|
|
|
2372
2446
|
typeUrl: "/cosmwasm.wasm.v1.QueryParamsResponse",
|
|
2373
2447
|
value: QueryParamsResponse.encode(message).finish()
|
|
2374
2448
|
};
|
|
2449
|
+
},
|
|
2450
|
+
registerTypeUrl() {
|
|
2451
|
+
Params.registerTypeUrl();
|
|
2375
2452
|
}
|
|
2376
2453
|
};
|
|
2377
|
-
GlobalDecoderRegistry.register(QueryParamsResponse.typeUrl, QueryParamsResponse);
|
|
2378
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsResponse.aminoType, QueryParamsResponse.typeUrl);
|
|
2379
2454
|
function createBaseQueryContractsByCreatorRequest(): QueryContractsByCreatorRequest {
|
|
2380
2455
|
return {
|
|
2381
2456
|
creatorAddress: "",
|
|
@@ -2462,10 +2537,11 @@ export const QueryContractsByCreatorRequest = {
|
|
|
2462
2537
|
typeUrl: "/cosmwasm.wasm.v1.QueryContractsByCreatorRequest",
|
|
2463
2538
|
value: QueryContractsByCreatorRequest.encode(message).finish()
|
|
2464
2539
|
};
|
|
2540
|
+
},
|
|
2541
|
+
registerTypeUrl() {
|
|
2542
|
+
PageRequest.registerTypeUrl();
|
|
2465
2543
|
}
|
|
2466
2544
|
};
|
|
2467
|
-
GlobalDecoderRegistry.register(QueryContractsByCreatorRequest.typeUrl, QueryContractsByCreatorRequest);
|
|
2468
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryContractsByCreatorRequest.aminoType, QueryContractsByCreatorRequest.typeUrl);
|
|
2469
2545
|
function createBaseQueryContractsByCreatorResponse(): QueryContractsByCreatorResponse {
|
|
2470
2546
|
return {
|
|
2471
2547
|
contractAddresses: [],
|
|
@@ -2554,7 +2630,198 @@ export const QueryContractsByCreatorResponse = {
|
|
|
2554
2630
|
typeUrl: "/cosmwasm.wasm.v1.QueryContractsByCreatorResponse",
|
|
2555
2631
|
value: QueryContractsByCreatorResponse.encode(message).finish()
|
|
2556
2632
|
};
|
|
2633
|
+
},
|
|
2634
|
+
registerTypeUrl() {
|
|
2635
|
+
PageResponse.registerTypeUrl();
|
|
2557
2636
|
}
|
|
2558
2637
|
};
|
|
2559
|
-
|
|
2560
|
-
|
|
2638
|
+
function createBaseQueryBuildAddressRequest(): QueryBuildAddressRequest {
|
|
2639
|
+
return {
|
|
2640
|
+
codeHash: "",
|
|
2641
|
+
creatorAddress: "",
|
|
2642
|
+
salt: "",
|
|
2643
|
+
initArgs: new Uint8Array()
|
|
2644
|
+
};
|
|
2645
|
+
}
|
|
2646
|
+
export const QueryBuildAddressRequest = {
|
|
2647
|
+
typeUrl: "/cosmwasm.wasm.v1.QueryBuildAddressRequest",
|
|
2648
|
+
aminoType: "wasm/QueryBuildAddressRequest",
|
|
2649
|
+
is(o: any): o is QueryBuildAddressRequest {
|
|
2650
|
+
return o && (o.$typeUrl === QueryBuildAddressRequest.typeUrl || typeof o.codeHash === "string" && typeof o.creatorAddress === "string" && typeof o.salt === "string" && (o.initArgs instanceof Uint8Array || typeof o.initArgs === "string"));
|
|
2651
|
+
},
|
|
2652
|
+
isAmino(o: any): o is QueryBuildAddressRequestAmino {
|
|
2653
|
+
return o && (o.$typeUrl === QueryBuildAddressRequest.typeUrl || typeof o.code_hash === "string" && typeof o.creator_address === "string" && typeof o.salt === "string" && (o.init_args instanceof Uint8Array || typeof o.init_args === "string"));
|
|
2654
|
+
},
|
|
2655
|
+
encode(message: QueryBuildAddressRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2656
|
+
if (message.codeHash !== "") {
|
|
2657
|
+
writer.uint32(10).string(message.codeHash);
|
|
2658
|
+
}
|
|
2659
|
+
if (message.creatorAddress !== "") {
|
|
2660
|
+
writer.uint32(18).string(message.creatorAddress);
|
|
2661
|
+
}
|
|
2662
|
+
if (message.salt !== "") {
|
|
2663
|
+
writer.uint32(26).string(message.salt);
|
|
2664
|
+
}
|
|
2665
|
+
if (message.initArgs.length !== 0) {
|
|
2666
|
+
writer.uint32(34).bytes(message.initArgs);
|
|
2667
|
+
}
|
|
2668
|
+
return writer;
|
|
2669
|
+
},
|
|
2670
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryBuildAddressRequest {
|
|
2671
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2672
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2673
|
+
const message = createBaseQueryBuildAddressRequest();
|
|
2674
|
+
while (reader.pos < end) {
|
|
2675
|
+
const tag = reader.uint32();
|
|
2676
|
+
switch (tag >>> 3) {
|
|
2677
|
+
case 1:
|
|
2678
|
+
message.codeHash = reader.string();
|
|
2679
|
+
break;
|
|
2680
|
+
case 2:
|
|
2681
|
+
message.creatorAddress = reader.string();
|
|
2682
|
+
break;
|
|
2683
|
+
case 3:
|
|
2684
|
+
message.salt = reader.string();
|
|
2685
|
+
break;
|
|
2686
|
+
case 4:
|
|
2687
|
+
message.initArgs = reader.bytes();
|
|
2688
|
+
break;
|
|
2689
|
+
default:
|
|
2690
|
+
reader.skipType(tag & 7);
|
|
2691
|
+
break;
|
|
2692
|
+
}
|
|
2693
|
+
}
|
|
2694
|
+
return message;
|
|
2695
|
+
},
|
|
2696
|
+
fromPartial(object: DeepPartial<QueryBuildAddressRequest>): QueryBuildAddressRequest {
|
|
2697
|
+
const message = createBaseQueryBuildAddressRequest();
|
|
2698
|
+
message.codeHash = object.codeHash ?? "";
|
|
2699
|
+
message.creatorAddress = object.creatorAddress ?? "";
|
|
2700
|
+
message.salt = object.salt ?? "";
|
|
2701
|
+
message.initArgs = object.initArgs ?? new Uint8Array();
|
|
2702
|
+
return message;
|
|
2703
|
+
},
|
|
2704
|
+
fromAmino(object: QueryBuildAddressRequestAmino): QueryBuildAddressRequest {
|
|
2705
|
+
const message = createBaseQueryBuildAddressRequest();
|
|
2706
|
+
if (object.code_hash !== undefined && object.code_hash !== null) {
|
|
2707
|
+
message.codeHash = object.code_hash;
|
|
2708
|
+
}
|
|
2709
|
+
if (object.creator_address !== undefined && object.creator_address !== null) {
|
|
2710
|
+
message.creatorAddress = object.creator_address;
|
|
2711
|
+
}
|
|
2712
|
+
if (object.salt !== undefined && object.salt !== null) {
|
|
2713
|
+
message.salt = object.salt;
|
|
2714
|
+
}
|
|
2715
|
+
if (object.init_args !== undefined && object.init_args !== null) {
|
|
2716
|
+
message.initArgs = bytesFromBase64(object.init_args);
|
|
2717
|
+
}
|
|
2718
|
+
return message;
|
|
2719
|
+
},
|
|
2720
|
+
toAmino(message: QueryBuildAddressRequest): QueryBuildAddressRequestAmino {
|
|
2721
|
+
const obj: any = {};
|
|
2722
|
+
obj.code_hash = message.codeHash === "" ? undefined : message.codeHash;
|
|
2723
|
+
obj.creator_address = message.creatorAddress === "" ? undefined : message.creatorAddress;
|
|
2724
|
+
obj.salt = message.salt === "" ? undefined : message.salt;
|
|
2725
|
+
obj.init_args = message.initArgs ? base64FromBytes(message.initArgs) : undefined;
|
|
2726
|
+
return obj;
|
|
2727
|
+
},
|
|
2728
|
+
fromAminoMsg(object: QueryBuildAddressRequestAminoMsg): QueryBuildAddressRequest {
|
|
2729
|
+
return QueryBuildAddressRequest.fromAmino(object.value);
|
|
2730
|
+
},
|
|
2731
|
+
toAminoMsg(message: QueryBuildAddressRequest): QueryBuildAddressRequestAminoMsg {
|
|
2732
|
+
return {
|
|
2733
|
+
type: "wasm/QueryBuildAddressRequest",
|
|
2734
|
+
value: QueryBuildAddressRequest.toAmino(message)
|
|
2735
|
+
};
|
|
2736
|
+
},
|
|
2737
|
+
fromProtoMsg(message: QueryBuildAddressRequestProtoMsg): QueryBuildAddressRequest {
|
|
2738
|
+
return QueryBuildAddressRequest.decode(message.value);
|
|
2739
|
+
},
|
|
2740
|
+
toProto(message: QueryBuildAddressRequest): Uint8Array {
|
|
2741
|
+
return QueryBuildAddressRequest.encode(message).finish();
|
|
2742
|
+
},
|
|
2743
|
+
toProtoMsg(message: QueryBuildAddressRequest): QueryBuildAddressRequestProtoMsg {
|
|
2744
|
+
return {
|
|
2745
|
+
typeUrl: "/cosmwasm.wasm.v1.QueryBuildAddressRequest",
|
|
2746
|
+
value: QueryBuildAddressRequest.encode(message).finish()
|
|
2747
|
+
};
|
|
2748
|
+
},
|
|
2749
|
+
registerTypeUrl() {}
|
|
2750
|
+
};
|
|
2751
|
+
function createBaseQueryBuildAddressResponse(): QueryBuildAddressResponse {
|
|
2752
|
+
return {
|
|
2753
|
+
address: ""
|
|
2754
|
+
};
|
|
2755
|
+
}
|
|
2756
|
+
export const QueryBuildAddressResponse = {
|
|
2757
|
+
typeUrl: "/cosmwasm.wasm.v1.QueryBuildAddressResponse",
|
|
2758
|
+
aminoType: "wasm/QueryBuildAddressResponse",
|
|
2759
|
+
is(o: any): o is QueryBuildAddressResponse {
|
|
2760
|
+
return o && (o.$typeUrl === QueryBuildAddressResponse.typeUrl || typeof o.address === "string");
|
|
2761
|
+
},
|
|
2762
|
+
isAmino(o: any): o is QueryBuildAddressResponseAmino {
|
|
2763
|
+
return o && (o.$typeUrl === QueryBuildAddressResponse.typeUrl || typeof o.address === "string");
|
|
2764
|
+
},
|
|
2765
|
+
encode(message: QueryBuildAddressResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2766
|
+
if (message.address !== "") {
|
|
2767
|
+
writer.uint32(10).string(message.address);
|
|
2768
|
+
}
|
|
2769
|
+
return writer;
|
|
2770
|
+
},
|
|
2771
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryBuildAddressResponse {
|
|
2772
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2773
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2774
|
+
const message = createBaseQueryBuildAddressResponse();
|
|
2775
|
+
while (reader.pos < end) {
|
|
2776
|
+
const tag = reader.uint32();
|
|
2777
|
+
switch (tag >>> 3) {
|
|
2778
|
+
case 1:
|
|
2779
|
+
message.address = reader.string();
|
|
2780
|
+
break;
|
|
2781
|
+
default:
|
|
2782
|
+
reader.skipType(tag & 7);
|
|
2783
|
+
break;
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
return message;
|
|
2787
|
+
},
|
|
2788
|
+
fromPartial(object: DeepPartial<QueryBuildAddressResponse>): QueryBuildAddressResponse {
|
|
2789
|
+
const message = createBaseQueryBuildAddressResponse();
|
|
2790
|
+
message.address = object.address ?? "";
|
|
2791
|
+
return message;
|
|
2792
|
+
},
|
|
2793
|
+
fromAmino(object: QueryBuildAddressResponseAmino): QueryBuildAddressResponse {
|
|
2794
|
+
const message = createBaseQueryBuildAddressResponse();
|
|
2795
|
+
if (object.address !== undefined && object.address !== null) {
|
|
2796
|
+
message.address = object.address;
|
|
2797
|
+
}
|
|
2798
|
+
return message;
|
|
2799
|
+
},
|
|
2800
|
+
toAmino(message: QueryBuildAddressResponse): QueryBuildAddressResponseAmino {
|
|
2801
|
+
const obj: any = {};
|
|
2802
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
2803
|
+
return obj;
|
|
2804
|
+
},
|
|
2805
|
+
fromAminoMsg(object: QueryBuildAddressResponseAminoMsg): QueryBuildAddressResponse {
|
|
2806
|
+
return QueryBuildAddressResponse.fromAmino(object.value);
|
|
2807
|
+
},
|
|
2808
|
+
toAminoMsg(message: QueryBuildAddressResponse): QueryBuildAddressResponseAminoMsg {
|
|
2809
|
+
return {
|
|
2810
|
+
type: "wasm/QueryBuildAddressResponse",
|
|
2811
|
+
value: QueryBuildAddressResponse.toAmino(message)
|
|
2812
|
+
};
|
|
2813
|
+
},
|
|
2814
|
+
fromProtoMsg(message: QueryBuildAddressResponseProtoMsg): QueryBuildAddressResponse {
|
|
2815
|
+
return QueryBuildAddressResponse.decode(message.value);
|
|
2816
|
+
},
|
|
2817
|
+
toProto(message: QueryBuildAddressResponse): Uint8Array {
|
|
2818
|
+
return QueryBuildAddressResponse.encode(message).finish();
|
|
2819
|
+
},
|
|
2820
|
+
toProtoMsg(message: QueryBuildAddressResponse): QueryBuildAddressResponseProtoMsg {
|
|
2821
|
+
return {
|
|
2822
|
+
typeUrl: "/cosmwasm.wasm.v1.QueryBuildAddressResponse",
|
|
2823
|
+
value: QueryBuildAddressResponse.encode(message).finish()
|
|
2824
|
+
};
|
|
2825
|
+
},
|
|
2826
|
+
registerTypeUrl() {}
|
|
2827
|
+
};
|