decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.32
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/lib/index.d.ts +78 -78
- package/lib/index.js +23 -23
- package/package.json +5 -2
- package/cardchain.cardchain/index.ts +0 -6
- package/cardchain.cardchain/module.ts +0 -1869
- package/cardchain.cardchain/registry.ts +0 -111
- package/cardchain.cardchain/rest.ts +0 -655
- package/cardchain.cardchain/types.ts +0 -63
- package/cardchain.featureflag/index.ts +0 -6
- package/cardchain.featureflag/module.ts +0 -165
- package/cardchain.featureflag/registry.ts +0 -11
- package/cardchain.featureflag/rest.ts +0 -256
- package/cardchain.featureflag/types.ts +0 -9
- package/client.ts +0 -164
- package/cosmos.auth.v1beta1/index.ts +0 -6
- package/cosmos.auth.v1beta1/module.ts +0 -136
- package/cosmos.auth.v1beta1/registry.ts +0 -9
- package/cosmos.auth.v1beta1/rest.ts +0 -403
- package/cosmos.auth.v1beta1/types.ts +0 -13
- package/cosmos.authz.v1beta1/index.ts +0 -6
- package/cosmos.authz.v1beta1/module.ts +0 -206
- package/cosmos.authz.v1beta1/registry.ts +0 -13
- package/cosmos.authz.v1beta1/rest.ts +0 -256
- package/cosmos.authz.v1beta1/types.ts +0 -17
- package/cosmos.bank.v1beta1/index.ts +0 -6
- package/cosmos.bank.v1beta1/module.ts +0 -247
- package/cosmos.bank.v1beta1/registry.ts +0 -15
- package/cosmos.bank.v1beta1/rest.ts +0 -466
- package/cosmos.bank.v1beta1/types.ts +0 -25
- package/cosmos.base.node.v1beta1/index.ts +0 -6
- package/cosmos.base.node.v1beta1/module.ts +0 -95
- package/cosmos.base.node.v1beta1/registry.ts +0 -7
- package/cosmos.base.node.v1beta1/rest.ts +0 -235
- package/cosmos.base.node.v1beta1/types.ts +0 -5
- package/cosmos.base.tendermint.v1beta1/index.ts +0 -6
- package/cosmos.base.tendermint.v1beta1/module.ts +0 -109
- package/cosmos.base.tendermint.v1beta1/registry.ts +0 -7
- package/cosmos.base.tendermint.v1beta1/rest.ts +0 -340
- package/cosmos.base.tendermint.v1beta1/types.ts +0 -19
- package/cosmos.circuit.v1/index.ts +0 -6
- package/cosmos.circuit.v1/module.ts +0 -198
- package/cosmos.circuit.v1/registry.ts +0 -13
- package/cosmos.circuit.v1/rest.ts +0 -256
- package/cosmos.circuit.v1/types.ts +0 -9
- package/cosmos.consensus.v1/index.ts +0 -6
- package/cosmos.consensus.v1/module.ts +0 -128
- package/cosmos.consensus.v1/registry.ts +0 -9
- package/cosmos.consensus.v1/rest.ts +0 -214
- package/cosmos.consensus.v1/types.ts +0 -5
- package/cosmos.crisis.v1beta1/index.ts +0 -6
- package/cosmos.crisis.v1beta1/module.ts +0 -161
- package/cosmos.crisis.v1beta1/registry.ts +0 -11
- package/cosmos.crisis.v1beta1/rest.ts +0 -193
- package/cosmos.crisis.v1beta1/types.ts +0 -5
- package/cosmos.distribution.v1beta1/index.ts +0 -6
- package/cosmos.distribution.v1beta1/module.ts +0 -364
- package/cosmos.distribution.v1beta1/registry.ts +0 -21
- package/cosmos.distribution.v1beta1/rest.ts +0 -403
- package/cosmos.distribution.v1beta1/types.ts +0 -43
- package/cosmos.evidence.v1beta1/index.ts +0 -6
- package/cosmos.evidence.v1beta1/module.ts +0 -130
- package/cosmos.evidence.v1beta1/registry.ts +0 -9
- package/cosmos.evidence.v1beta1/rest.ts +0 -235
- package/cosmos.evidence.v1beta1/types.ts +0 -7
- package/cosmos.feegrant.v1beta1/index.ts +0 -6
- package/cosmos.feegrant.v1beta1/module.ts +0 -202
- package/cosmos.feegrant.v1beta1/registry.ts +0 -13
- package/cosmos.feegrant.v1beta1/rest.ts +0 -256
- package/cosmos.feegrant.v1beta1/types.ts +0 -13
- package/cosmos.gov.v1/index.ts +0 -6
- package/cosmos.gov.v1/module.ts +0 -344
- package/cosmos.gov.v1/registry.ts +0 -21
- package/cosmos.gov.v1/rest.ts +0 -382
- package/cosmos.gov.v1/types.ts +0 -23
- package/cosmos.gov.v1beta1/index.ts +0 -6
- package/cosmos.gov.v1beta1/module.ts +0 -245
- package/cosmos.gov.v1beta1/registry.ts +0 -15
- package/cosmos.gov.v1beta1/rest.ts +0 -361
- package/cosmos.gov.v1beta1/types.ts +0 -23
- package/cosmos.group.v1/index.ts +0 -6
- package/cosmos.group.v1/module.ts +0 -599
- package/cosmos.group.v1/registry.ts +0 -35
- package/cosmos.group.v1/rest.ts +0 -487
- package/cosmos.group.v1/types.ts +0 -47
- package/cosmos.mint.v1beta1/index.ts +0 -6
- package/cosmos.mint.v1beta1/module.ts +0 -132
- package/cosmos.mint.v1beta1/registry.ts +0 -9
- package/cosmos.mint.v1beta1/rest.ts +0 -256
- package/cosmos.mint.v1beta1/types.ts +0 -9
- package/cosmos.nft.v1beta1/index.ts +0 -6
- package/cosmos.nft.v1beta1/module.ts +0 -140
- package/cosmos.nft.v1beta1/registry.ts +0 -9
- package/cosmos.nft.v1beta1/rest.ts +0 -340
- package/cosmos.nft.v1beta1/types.ts +0 -17
- package/cosmos.params.v1beta1/index.ts +0 -6
- package/cosmos.params.v1beta1/module.ts +0 -101
- package/cosmos.params.v1beta1/registry.ts +0 -7
- package/cosmos.params.v1beta1/rest.ts +0 -235
- package/cosmos.params.v1beta1/types.ts +0 -11
- package/cosmos.slashing.v1beta1/index.ts +0 -6
- package/cosmos.slashing.v1beta1/module.ts +0 -171
- package/cosmos.slashing.v1beta1/registry.ts +0 -11
- package/cosmos.slashing.v1beta1/rest.ts +0 -256
- package/cosmos.slashing.v1beta1/types.ts +0 -15
- package/cosmos.staking.v1beta1/index.ts +0 -6
- package/cosmos.staking.v1beta1/module.ts +0 -374
- package/cosmos.staking.v1beta1/registry.ts +0 -21
- package/cosmos.staking.v1beta1/rest.ts +0 -487
- package/cosmos.staking.v1beta1/types.ts +0 -53
- package/cosmos.tx.v1beta1/index.ts +0 -6
- package/cosmos.tx.v1beta1/module.ts +0 -121
- package/cosmos.tx.v1beta1/registry.ts +0 -7
- package/cosmos.tx.v1beta1/rest.ts +0 -382
- package/cosmos.tx.v1beta1/types.ts +0 -31
- package/cosmos.upgrade.v1beta1/index.ts +0 -6
- package/cosmos.upgrade.v1beta1/module.ts +0 -169
- package/cosmos.upgrade.v1beta1/registry.ts +0 -11
- package/cosmos.upgrade.v1beta1/rest.ts +0 -298
- package/cosmos.upgrade.v1beta1/types.ts +0 -13
- package/cosmos.vesting.v1beta1/index.ts +0 -6
- package/cosmos.vesting.v1beta1/module.ts +0 -206
- package/cosmos.vesting.v1beta1/registry.ts +0 -13
- package/cosmos.vesting.v1beta1/rest.ts +0 -193
- package/cosmos.vesting.v1beta1/types.ts +0 -17
- package/env.ts +0 -7
- package/helpers.ts +0 -32
- package/ibc.applications.fee.v1/index.ts +0 -6
- package/ibc.applications.fee.v1/module.ts +0 -247
- package/ibc.applications.fee.v1/registry.ts +0 -15
- package/ibc.applications.fee.v1/rest.ts +0 -403
- package/ibc.applications.fee.v1/types.ts +0 -25
- package/ibc.applications.interchain_accounts.controller.v1/index.ts +0 -6
- package/ibc.applications.interchain_accounts.controller.v1/module.ts +0 -196
- package/ibc.applications.interchain_accounts.controller.v1/registry.ts +0 -13
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -235
- package/ibc.applications.interchain_accounts.controller.v1/types.ts +0 -7
- package/ibc.applications.interchain_accounts.host.v1/index.ts +0 -6
- package/ibc.applications.interchain_accounts.host.v1/module.ts +0 -165
- package/ibc.applications.interchain_accounts.host.v1/registry.ts +0 -11
- package/ibc.applications.interchain_accounts.host.v1/rest.ts +0 -214
- package/ibc.applications.interchain_accounts.host.v1/types.ts +0 -9
- package/ibc.applications.transfer.v1/index.ts +0 -6
- package/ibc.applications.transfer.v1/module.ts +0 -169
- package/ibc.applications.transfer.v1/registry.ts +0 -11
- package/ibc.applications.transfer.v1/rest.ts +0 -319
- package/ibc.applications.transfer.v1/types.ts +0 -13
- package/ibc.core.channel.v1/index.ts +0 -6
- package/ibc.core.channel.v1/module.ts +0 -748
- package/ibc.core.channel.v1/registry.ts +0 -45
- package/ibc.core.channel.v1/rest.ts +0 -550
- package/ibc.core.channel.v1/types.ts +0 -31
- package/ibc.core.client.v1/index.ts +0 -6
- package/ibc.core.client.v1/module.ts +0 -344
- package/ibc.core.client.v1/registry.ts +0 -21
- package/ibc.core.client.v1/rest.ts +0 -403
- package/ibc.core.client.v1/types.ts +0 -23
- package/ibc.core.connection.v1/index.ts +0 -6
- package/ibc.core.connection.v1/module.ts +0 -274
- package/ibc.core.connection.v1/registry.ts +0 -17
- package/ibc.core.connection.v1/rest.ts +0 -319
- package/ibc.core.connection.v1/types.ts +0 -19
- package/index.ts +0 -81
- package/modules.ts +0 -5
- package/tsconfig.json +0 -13
- package/types/amino/amino.ts +0 -9
- package/types/capability/v1/capability.ts +0 -263
- package/types/capability/v1/genesis.ts +0 -220
- package/types/cardchain/cardchain/card.ts +0 -712
- package/types/cardchain/cardchain/card_content.ts +0 -116
- package/types/cardchain/cardchain/card_with_image.ts +0 -134
- package/types/cardchain/cardchain/council.ts +0 -502
- package/types/cardchain/cardchain/encounter.ts +0 -307
- package/types/cardchain/cardchain/encounter_with_image.ts +0 -119
- package/types/cardchain/cardchain/genesis.ts +0 -403
- package/types/cardchain/cardchain/image.ts +0 -122
- package/types/cardchain/cardchain/match.ts +0 -453
- package/types/cardchain/cardchain/module/module.ts +0 -99
- package/types/cardchain/cardchain/params.ts +0 -544
- package/types/cardchain/cardchain/query.ts +0 -3786
- package/types/cardchain/cardchain/running_average.ts +0 -116
- package/types/cardchain/cardchain/sell_offer.ts +0 -224
- package/types/cardchain/cardchain/server.ts +0 -144
- package/types/cardchain/cardchain/set.ts +0 -537
- package/types/cardchain/cardchain/set_with_artwork.ts +0 -142
- package/types/cardchain/cardchain/tx.ts +0 -8053
- package/types/cardchain/cardchain/user.ts +0 -955
- package/types/cardchain/cardchain/voting.ts +0 -328
- package/types/cardchain/cardchain/voting_results.ts +0 -227
- package/types/cardchain/cardchain/zealy.ts +0 -116
- package/types/cardchain/featureflag/flag.ts +0 -133
- package/types/cardchain/featureflag/genesis.ts +0 -226
- package/types/cardchain/featureflag/module/module.ts +0 -99
- package/types/cardchain/featureflag/params.ts +0 -78
- package/types/cardchain/featureflag/query.ts +0 -445
- package/types/cardchain/featureflag/tx.ts +0 -373
- package/types/cosmos/app/runtime/v1alpha1/module.ts +0 -389
- package/types/cosmos/app/v1alpha1/config.ts +0 -346
- package/types/cosmos/app/v1alpha1/module.ts +0 -348
- package/types/cosmos/app/v1alpha1/query.ts +0 -175
- package/types/cosmos/auth/module/v1/module.ts +0 -229
- package/types/cosmos/auth/v1beta1/auth.ts +0 -531
- package/types/cosmos/auth/v1beta1/genesis.ts +0 -125
- package/types/cosmos/auth/v1beta1/query.ts +0 -1564
- package/types/cosmos/auth/v1beta1/tx.ts +0 -213
- package/types/cosmos/authz/module/v1/module.ts +0 -78
- package/types/cosmos/authz/v1beta1/authz.ts +0 -411
- package/types/cosmos/authz/v1beta1/event.ts +0 -241
- package/types/cosmos/authz/v1beta1/genesis.ts +0 -101
- package/types/cosmos/authz/v1beta1/query.ts +0 -643
- package/types/cosmos/authz/v1beta1/tx.ts +0 -574
- package/types/cosmos/autocli/v1/options.ts +0 -1049
- package/types/cosmos/autocli/v1/query.ts +0 -291
- package/types/cosmos/bank/module/v1/module.ts +0 -150
- package/types/cosmos/bank/v1beta1/authz.ts +0 -129
- package/types/cosmos/bank/v1beta1/bank.ts +0 -775
- package/types/cosmos/bank/v1beta1/genesis.ts +0 -277
- package/types/cosmos/bank/v1beta1/query.ts +0 -2424
- package/types/cosmos/bank/v1beta1/tx.ts +0 -697
- package/types/cosmos/base/abci/v1beta1/abci.ts +0 -1469
- package/types/cosmos/base/node/v1beta1/query.ts +0 -485
- package/types/cosmos/base/query/v1beta1/pagination.ts +0 -336
- package/types/cosmos/base/reflection/v1beta1/reflection.ts +0 -328
- package/types/cosmos/base/reflection/v2alpha1/reflection.ts +0 -2092
- package/types/cosmos/base/tendermint/v1beta1/query.ts +0 -2025
- package/types/cosmos/base/tendermint/v1beta1/types.ts +0 -548
- package/types/cosmos/base/v1beta1/coin.ts +0 -209
- package/types/cosmos/circuit/module/v1/module.ts +0 -99
- package/types/cosmos/circuit/v1/query.ts +0 -476
- package/types/cosmos/circuit/v1/tx.ts +0 -576
- package/types/cosmos/circuit/v1/types.ts +0 -362
- package/types/cosmos/consensus/module/v1/module.ts +0 -99
- package/types/cosmos/consensus/v1/query.ts +0 -181
- package/types/cosmos/consensus/v1/tx.ts +0 -271
- package/types/cosmos/crisis/module/v1/module.ts +0 -119
- package/types/cosmos/crisis/v1beta1/genesis.ts +0 -105
- package/types/cosmos/crisis/v1beta1/tx.ts +0 -367
- package/types/cosmos/crypto/ed25519/keys.ts +0 -195
- package/types/cosmos/crypto/hd/v1/hd.ts +0 -178
- package/types/cosmos/crypto/keyring/v1/record.ts +0 -440
- package/types/cosmos/crypto/multisig/keys.ts +0 -124
- package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +0 -218
- package/types/cosmos/crypto/secp256k1/keys.ts +0 -192
- package/types/cosmos/crypto/secp256r1/keys.ts +0 -193
- package/types/cosmos/distribution/module/v1/module.ts +0 -118
- package/types/cosmos/distribution/v1beta1/distribution.ts +0 -1177
- package/types/cosmos/distribution/v1beta1/genesis.ts +0 -1028
- package/types/cosmos/distribution/v1beta1/query.ts +0 -1700
- package/types/cosmos/distribution/v1beta1/tx.ts +0 -1178
- package/types/cosmos/evidence/module/v1/module.ts +0 -78
- package/types/cosmos/evidence/v1beta1/evidence.ts +0 -194
- package/types/cosmos/evidence/v1beta1/genesis.ts +0 -98
- package/types/cosmos/evidence/v1beta1/query.ts +0 -414
- package/types/cosmos/evidence/v1beta1/tx.ts +0 -243
- package/types/cosmos/feegrant/module/v1/module.ts +0 -78
- package/types/cosmos/feegrant/v1beta1/feegrant.ts +0 -513
- package/types/cosmos/feegrant/v1beta1/genesis.ts +0 -101
- package/types/cosmos/feegrant/v1beta1/query.ts +0 -597
- package/types/cosmos/feegrant/v1beta1/tx.ts +0 -496
- package/types/cosmos/genutil/module/v1/module.ts +0 -78
- package/types/cosmos/genutil/v1beta1/genesis.ts +0 -122
- package/types/cosmos/gov/module/v1/module.ts +0 -133
- package/types/cosmos/gov/v1/genesis.ts +0 -313
- package/types/cosmos/gov/v1/gov.ts +0 -1712
- package/types/cosmos/gov/v1/query.ts +0 -1605
- package/types/cosmos/gov/v1/tx.ts +0 -1387
- package/types/cosmos/gov/v1beta1/genesis.ts +0 -241
- package/types/cosmos/gov/v1beta1/gov.ts +0 -1273
- package/types/cosmos/gov/v1beta1/query.ts +0 -1441
- package/types/cosmos/gov/v1beta1/tx.ts +0 -738
- package/types/cosmos/group/module/v1/module.ts +0 -141
- package/types/cosmos/group/v1/events.ts +0 -795
- package/types/cosmos/group/v1/genesis.ts +0 -265
- package/types/cosmos/group/v1/query.ts +0 -2441
- package/types/cosmos/group/v1/tx.ts +0 -2631
- package/types/cosmos/group/v1/types.ts +0 -1850
- package/types/cosmos/ics23/v1/proofs.ts +0 -1731
- package/types/cosmos/mint/module/v1/module.ts +0 -118
- package/types/cosmos/mint/v1beta1/genesis.ts +0 -126
- package/types/cosmos/mint/v1beta1/mint.ts +0 -293
- package/types/cosmos/mint/v1beta1/query.ts +0 -453
- package/types/cosmos/mint/v1beta1/tx.ts +0 -213
- package/types/cosmos/msg/textual/v1/textual.ts +0 -9
- package/types/cosmos/msg/v1/msg.ts +0 -9
- package/types/cosmos/nft/module/v1/module.ts +0 -78
- package/types/cosmos/nft/v1beta1/event.ts +0 -359
- package/types/cosmos/nft/v1beta1/genesis.ts +0 -204
- package/types/cosmos/nft/v1beta1/nft.ts +0 -348
- package/types/cosmos/nft/v1beta1/query.ts +0 -1173
- package/types/cosmos/nft/v1beta1/tx.ts +0 -228
- package/types/cosmos/orm/module/v1alpha1/module.ts +0 -82
- package/types/cosmos/orm/query/v1alpha1/query.ts +0 -933
- package/types/cosmos/orm/v1/orm.ts +0 -453
- package/types/cosmos/orm/v1alpha1/schema.ts +0 -321
- package/types/cosmos/params/module/v1/module.ts +0 -78
- package/types/cosmos/params/v1beta1/params.ts +0 -236
- package/types/cosmos/params/v1beta1/query.ts +0 -439
- package/types/cosmos/query/v1/query.ts +0 -9
- package/types/cosmos/reflection/v1/reflection.ts +0 -179
- package/types/cosmos/slashing/module/v1/module.ts +0 -99
- package/types/cosmos/slashing/v1beta1/genesis.ts +0 -424
- package/types/cosmos/slashing/v1beta1/query.ts +0 -487
- package/types/cosmos/slashing/v1beta1/slashing.ts +0 -422
- package/types/cosmos/slashing/v1beta1/tx.ts +0 -336
- package/types/cosmos/staking/module/v1/module.ts +0 -161
- package/types/cosmos/staking/v1beta1/authz.ts +0 -306
- package/types/cosmos/staking/v1beta1/genesis.ts +0 -377
- package/types/cosmos/staking/v1beta1/query.ts +0 -2540
- package/types/cosmos/staking/v1beta1/staking.ts +0 -2576
- package/types/cosmos/staking/v1beta1/tx.ts +0 -1433
- package/types/cosmos/store/internal/kv/v1beta1/kv.ts +0 -205
- package/types/cosmos/store/snapshots/v1/snapshot.ts +0 -746
- package/types/cosmos/store/streaming/abci/grpc.ts +0 -367
- package/types/cosmos/store/v1beta1/commit_info.ts +0 -370
- package/types/cosmos/store/v1beta1/listening.ts +0 -301
- package/types/cosmos/tx/config/v1/config.ts +0 -125
- package/types/cosmos/tx/signing/v1beta1/signing.ts +0 -630
- package/types/cosmos/tx/v1beta1/service.ts +0 -1889
- package/types/cosmos/tx/v1beta1/tx.ts +0 -1657
- package/types/cosmos/upgrade/module/v1/module.ts +0 -99
- package/types/cosmos/upgrade/v1beta1/query.ts +0 -819
- package/types/cosmos/upgrade/v1beta1/tx.ts +0 -340
- package/types/cosmos/upgrade/v1beta1/upgrade.ts +0 -525
- package/types/cosmos/vesting/module/v1/module.ts +0 -78
- package/types/cosmos/vesting/v1beta1/tx.ts +0 -640
- package/types/cosmos/vesting/v1beta1/vesting.ts +0 -624
- package/types/cosmos_proto/cosmos.ts +0 -307
- package/types/gogoproto/gogo.ts +0 -9
- package/types/google/api/annotations.ts +0 -9
- package/types/google/api/http.ts +0 -770
- package/types/google/protobuf/any.ts +0 -259
- package/types/google/protobuf/descriptor.ts +0 -6642
- package/types/google/protobuf/duration.ts +0 -200
- package/types/google/protobuf/timestamp.ts +0 -229
- package/types/ibc/applications/fee/v1/ack.ts +0 -166
- package/types/ibc/applications/fee/v1/fee.ts +0 -403
- package/types/ibc/applications/fee/v1/genesis.ts +0 -571
- package/types/ibc/applications/fee/v1/metadata.ts +0 -122
- package/types/ibc/applications/fee/v1/query.ts +0 -1757
- package/types/ibc/applications/fee/v1/tx.ts +0 -781
- package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +0 -104
- package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +0 -333
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +0 -619
- package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +0 -590
- package/types/ibc/applications/interchain_accounts/host/v1/host.ts +0 -242
- package/types/ibc/applications/interchain_accounts/host/v1/query.ts +0 -175
- package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +0 -416
- package/types/ibc/applications/interchain_accounts/v1/account.ts +0 -120
- package/types/ibc/applications/interchain_accounts/v1/metadata.ts +0 -199
- package/types/ibc/applications/interchain_accounts/v1/packet.ts +0 -264
- package/types/ibc/applications/transfer/v1/authz.ts +0 -254
- package/types/ibc/applications/transfer/v1/genesis.ts +0 -165
- package/types/ibc/applications/transfer/v1/query.ts +0 -934
- package/types/ibc/applications/transfer/v1/transfer.ts +0 -220
- package/types/ibc/applications/transfer/v1/tx.ts +0 -505
- package/types/ibc/applications/transfer/v2/packet.ts +0 -177
- package/types/ibc/core/channel/v1/channel.ts +0 -1358
- package/types/ibc/core/channel/v1/genesis.ts +0 -377
- package/types/ibc/core/channel/v1/query.ts +0 -3781
- package/types/ibc/core/channel/v1/tx.ts +0 -4424
- package/types/ibc/core/channel/v1/upgrade.ts +0 -348
- package/types/ibc/core/client/v1/client.ts +0 -753
- package/types/ibc/core/client/v1/genesis.ts +0 -423
- package/types/ibc/core/client/v1/query.ts +0 -1898
- package/types/ibc/core/client/v1/tx.ts +0 -1301
- package/types/ibc/core/commitment/v1/commitment.ts +0 -336
- package/types/ibc/core/connection/v1/connection.ts +0 -840
- package/types/ibc/core/connection/v1/genesis.ts +0 -172
- package/types/ibc/core/connection/v1/query.ts +0 -1243
- package/types/ibc/core/connection/v1/tx.ts +0 -1352
- package/types/ibc/core/types/v1/genesis.ts +0 -150
- package/types/ibc/lightclients/localhost/v2/localhost.ts +0 -102
- package/types/ibc/lightclients/solomachine/v2/solomachine.ts +0 -1765
- package/types/ibc/lightclients/solomachine/v3/solomachine.ts +0 -945
- package/types/ibc/lightclients/tendermint/v1/tendermint.ts +0 -853
- package/types/ibc/lightclients/wasm/v1/genesis.ts +0 -192
- package/types/ibc/lightclients/wasm/v1/query.ts +0 -377
- package/types/ibc/lightclients/wasm/v1/tx.ts +0 -550
- package/types/ibc/lightclients/wasm/v1/wasm.ts +0 -370
- package/types/tendermint/abci/types.ts +0 -6103
- package/types/tendermint/crypto/keys.ts +0 -142
- package/types/tendermint/crypto/proof.ts +0 -533
- package/types/tendermint/libs/bits/types.ts +0 -139
- package/types/tendermint/p2p/types.ts +0 -544
- package/types/tendermint/types/block.ts +0 -158
- package/types/tendermint/types/evidence.ts +0 -502
- package/types/tendermint/types/params.ts +0 -701
- package/types/tendermint/types/types.ts +0 -2133
- package/types/tendermint/types/validator.ts +0 -424
- package/types/tendermint/version/types.ts +0 -218
- package/types.d.ts +0 -21
|
@@ -1,1564 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.6.1
|
|
4
|
-
// protoc unknown
|
|
5
|
-
// source: cosmos/auth/v1beta1/query.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Any } from "../../../google/protobuf/any";
|
|
10
|
-
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
11
|
-
import { BaseAccount, Params } from "./auth";
|
|
12
|
-
|
|
13
|
-
export const protobufPackage = "cosmos.auth.v1beta1";
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* QueryAccountsRequest is the request type for the Query/Accounts RPC method.
|
|
17
|
-
*
|
|
18
|
-
* Since: cosmos-sdk 0.43
|
|
19
|
-
*/
|
|
20
|
-
export interface QueryAccountsRequest {
|
|
21
|
-
/** pagination defines an optional pagination for the request. */
|
|
22
|
-
pagination: PageRequest | undefined;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* QueryAccountsResponse is the response type for the Query/Accounts RPC method.
|
|
27
|
-
*
|
|
28
|
-
* Since: cosmos-sdk 0.43
|
|
29
|
-
*/
|
|
30
|
-
export interface QueryAccountsResponse {
|
|
31
|
-
/** accounts are the existing accounts */
|
|
32
|
-
accounts: Any[];
|
|
33
|
-
/** pagination defines the pagination in the response. */
|
|
34
|
-
pagination: PageResponse | undefined;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/** QueryAccountRequest is the request type for the Query/Account RPC method. */
|
|
38
|
-
export interface QueryAccountRequest {
|
|
39
|
-
/** address defines the address to query for. */
|
|
40
|
-
address: string;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/** QueryAccountResponse is the response type for the Query/Account RPC method. */
|
|
44
|
-
export interface QueryAccountResponse {
|
|
45
|
-
/** account defines the account of the corresponding address. */
|
|
46
|
-
account: Any | undefined;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
50
|
-
export interface QueryParamsRequest {
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
54
|
-
export interface QueryParamsResponse {
|
|
55
|
-
/** params defines the parameters of the module. */
|
|
56
|
-
params: Params | undefined;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method.
|
|
61
|
-
*
|
|
62
|
-
* Since: cosmos-sdk 0.46
|
|
63
|
-
*/
|
|
64
|
-
export interface QueryModuleAccountsRequest {
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method.
|
|
69
|
-
*
|
|
70
|
-
* Since: cosmos-sdk 0.46
|
|
71
|
-
*/
|
|
72
|
-
export interface QueryModuleAccountsResponse {
|
|
73
|
-
accounts: Any[];
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */
|
|
77
|
-
export interface QueryModuleAccountByNameRequest {
|
|
78
|
-
name: string;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */
|
|
82
|
-
export interface QueryModuleAccountByNameResponse {
|
|
83
|
-
account: Any | undefined;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Bech32PrefixRequest is the request type for Bech32Prefix rpc method.
|
|
88
|
-
*
|
|
89
|
-
* Since: cosmos-sdk 0.46
|
|
90
|
-
*/
|
|
91
|
-
export interface Bech32PrefixRequest {
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Bech32PrefixResponse is the response type for Bech32Prefix rpc method.
|
|
96
|
-
*
|
|
97
|
-
* Since: cosmos-sdk 0.46
|
|
98
|
-
*/
|
|
99
|
-
export interface Bech32PrefixResponse {
|
|
100
|
-
bech32Prefix: string;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* AddressBytesToStringRequest is the request type for AddressString rpc method.
|
|
105
|
-
*
|
|
106
|
-
* Since: cosmos-sdk 0.46
|
|
107
|
-
*/
|
|
108
|
-
export interface AddressBytesToStringRequest {
|
|
109
|
-
addressBytes: Uint8Array;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* AddressBytesToStringResponse is the response type for AddressString rpc method.
|
|
114
|
-
*
|
|
115
|
-
* Since: cosmos-sdk 0.46
|
|
116
|
-
*/
|
|
117
|
-
export interface AddressBytesToStringResponse {
|
|
118
|
-
addressString: string;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* AddressStringToBytesRequest is the request type for AccountBytes rpc method.
|
|
123
|
-
*
|
|
124
|
-
* Since: cosmos-sdk 0.46
|
|
125
|
-
*/
|
|
126
|
-
export interface AddressStringToBytesRequest {
|
|
127
|
-
addressString: string;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* AddressStringToBytesResponse is the response type for AddressBytes rpc method.
|
|
132
|
-
*
|
|
133
|
-
* Since: cosmos-sdk 0.46
|
|
134
|
-
*/
|
|
135
|
-
export interface AddressStringToBytesResponse {
|
|
136
|
-
addressBytes: Uint8Array;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
|
|
141
|
-
*
|
|
142
|
-
* Since: cosmos-sdk 0.46.2
|
|
143
|
-
*/
|
|
144
|
-
export interface QueryAccountAddressByIDRequest {
|
|
145
|
-
/**
|
|
146
|
-
* Deprecated, use account_id instead
|
|
147
|
-
*
|
|
148
|
-
* id is the account number of the address to be queried. This field
|
|
149
|
-
* should have been an uint64 (like all account numbers), and will be
|
|
150
|
-
* updated to uint64 in a future version of the auth query.
|
|
151
|
-
*
|
|
152
|
-
* @deprecated
|
|
153
|
-
*/
|
|
154
|
-
id: number;
|
|
155
|
-
/**
|
|
156
|
-
* account_id is the account number of the address to be queried.
|
|
157
|
-
*
|
|
158
|
-
* Since: cosmos-sdk 0.47
|
|
159
|
-
*/
|
|
160
|
-
accountId: number;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method
|
|
165
|
-
*
|
|
166
|
-
* Since: cosmos-sdk 0.46.2
|
|
167
|
-
*/
|
|
168
|
-
export interface QueryAccountAddressByIDResponse {
|
|
169
|
-
accountAddress: string;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* QueryAccountInfoRequest is the Query/AccountInfo request type.
|
|
174
|
-
*
|
|
175
|
-
* Since: cosmos-sdk 0.47
|
|
176
|
-
*/
|
|
177
|
-
export interface QueryAccountInfoRequest {
|
|
178
|
-
/** address is the account address string. */
|
|
179
|
-
address: string;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* QueryAccountInfoResponse is the Query/AccountInfo response type.
|
|
184
|
-
*
|
|
185
|
-
* Since: cosmos-sdk 0.47
|
|
186
|
-
*/
|
|
187
|
-
export interface QueryAccountInfoResponse {
|
|
188
|
-
/** info is the account info which is represented by BaseAccount. */
|
|
189
|
-
info: BaseAccount | undefined;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
function createBaseQueryAccountsRequest(): QueryAccountsRequest {
|
|
193
|
-
return { pagination: undefined };
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export const QueryAccountsRequest: MessageFns<QueryAccountsRequest> = {
|
|
197
|
-
encode(message: QueryAccountsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
198
|
-
if (message.pagination !== undefined) {
|
|
199
|
-
PageRequest.encode(message.pagination, writer.uint32(10).fork()).join();
|
|
200
|
-
}
|
|
201
|
-
return writer;
|
|
202
|
-
},
|
|
203
|
-
|
|
204
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsRequest {
|
|
205
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
206
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
207
|
-
const message = createBaseQueryAccountsRequest();
|
|
208
|
-
while (reader.pos < end) {
|
|
209
|
-
const tag = reader.uint32();
|
|
210
|
-
switch (tag >>> 3) {
|
|
211
|
-
case 1: {
|
|
212
|
-
if (tag !== 10) {
|
|
213
|
-
break;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
217
|
-
continue;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
221
|
-
break;
|
|
222
|
-
}
|
|
223
|
-
reader.skip(tag & 7);
|
|
224
|
-
}
|
|
225
|
-
return message;
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
fromJSON(object: any): QueryAccountsRequest {
|
|
229
|
-
return { pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined };
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
toJSON(message: QueryAccountsRequest): unknown {
|
|
233
|
-
const obj: any = {};
|
|
234
|
-
if (message.pagination !== undefined) {
|
|
235
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
236
|
-
}
|
|
237
|
-
return obj;
|
|
238
|
-
},
|
|
239
|
-
|
|
240
|
-
create<I extends Exact<DeepPartial<QueryAccountsRequest>, I>>(base?: I): QueryAccountsRequest {
|
|
241
|
-
return QueryAccountsRequest.fromPartial(base ?? ({} as any));
|
|
242
|
-
},
|
|
243
|
-
fromPartial<I extends Exact<DeepPartial<QueryAccountsRequest>, I>>(object: I): QueryAccountsRequest {
|
|
244
|
-
const message = createBaseQueryAccountsRequest();
|
|
245
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
246
|
-
? PageRequest.fromPartial(object.pagination)
|
|
247
|
-
: undefined;
|
|
248
|
-
return message;
|
|
249
|
-
},
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
function createBaseQueryAccountsResponse(): QueryAccountsResponse {
|
|
253
|
-
return { accounts: [], pagination: undefined };
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export const QueryAccountsResponse: MessageFns<QueryAccountsResponse> = {
|
|
257
|
-
encode(message: QueryAccountsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
258
|
-
for (const v of message.accounts) {
|
|
259
|
-
Any.encode(v!, writer.uint32(10).fork()).join();
|
|
260
|
-
}
|
|
261
|
-
if (message.pagination !== undefined) {
|
|
262
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
263
|
-
}
|
|
264
|
-
return writer;
|
|
265
|
-
},
|
|
266
|
-
|
|
267
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsResponse {
|
|
268
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
269
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
270
|
-
const message = createBaseQueryAccountsResponse();
|
|
271
|
-
while (reader.pos < end) {
|
|
272
|
-
const tag = reader.uint32();
|
|
273
|
-
switch (tag >>> 3) {
|
|
274
|
-
case 1: {
|
|
275
|
-
if (tag !== 10) {
|
|
276
|
-
break;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
message.accounts.push(Any.decode(reader, reader.uint32()));
|
|
280
|
-
continue;
|
|
281
|
-
}
|
|
282
|
-
case 2: {
|
|
283
|
-
if (tag !== 18) {
|
|
284
|
-
break;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
288
|
-
continue;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
292
|
-
break;
|
|
293
|
-
}
|
|
294
|
-
reader.skip(tag & 7);
|
|
295
|
-
}
|
|
296
|
-
return message;
|
|
297
|
-
},
|
|
298
|
-
|
|
299
|
-
fromJSON(object: any): QueryAccountsResponse {
|
|
300
|
-
return {
|
|
301
|
-
accounts: globalThis.Array.isArray(object?.accounts) ? object.accounts.map((e: any) => Any.fromJSON(e)) : [],
|
|
302
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
303
|
-
};
|
|
304
|
-
},
|
|
305
|
-
|
|
306
|
-
toJSON(message: QueryAccountsResponse): unknown {
|
|
307
|
-
const obj: any = {};
|
|
308
|
-
if (message.accounts?.length) {
|
|
309
|
-
obj.accounts = message.accounts.map((e) => Any.toJSON(e));
|
|
310
|
-
}
|
|
311
|
-
if (message.pagination !== undefined) {
|
|
312
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
313
|
-
}
|
|
314
|
-
return obj;
|
|
315
|
-
},
|
|
316
|
-
|
|
317
|
-
create<I extends Exact<DeepPartial<QueryAccountsResponse>, I>>(base?: I): QueryAccountsResponse {
|
|
318
|
-
return QueryAccountsResponse.fromPartial(base ?? ({} as any));
|
|
319
|
-
},
|
|
320
|
-
fromPartial<I extends Exact<DeepPartial<QueryAccountsResponse>, I>>(object: I): QueryAccountsResponse {
|
|
321
|
-
const message = createBaseQueryAccountsResponse();
|
|
322
|
-
message.accounts = object.accounts?.map((e) => Any.fromPartial(e)) || [];
|
|
323
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
324
|
-
? PageResponse.fromPartial(object.pagination)
|
|
325
|
-
: undefined;
|
|
326
|
-
return message;
|
|
327
|
-
},
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
function createBaseQueryAccountRequest(): QueryAccountRequest {
|
|
331
|
-
return { address: "" };
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
export const QueryAccountRequest: MessageFns<QueryAccountRequest> = {
|
|
335
|
-
encode(message: QueryAccountRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
336
|
-
if (message.address !== "") {
|
|
337
|
-
writer.uint32(10).string(message.address);
|
|
338
|
-
}
|
|
339
|
-
return writer;
|
|
340
|
-
},
|
|
341
|
-
|
|
342
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountRequest {
|
|
343
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
344
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
345
|
-
const message = createBaseQueryAccountRequest();
|
|
346
|
-
while (reader.pos < end) {
|
|
347
|
-
const tag = reader.uint32();
|
|
348
|
-
switch (tag >>> 3) {
|
|
349
|
-
case 1: {
|
|
350
|
-
if (tag !== 10) {
|
|
351
|
-
break;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
message.address = reader.string();
|
|
355
|
-
continue;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
359
|
-
break;
|
|
360
|
-
}
|
|
361
|
-
reader.skip(tag & 7);
|
|
362
|
-
}
|
|
363
|
-
return message;
|
|
364
|
-
},
|
|
365
|
-
|
|
366
|
-
fromJSON(object: any): QueryAccountRequest {
|
|
367
|
-
return { address: isSet(object.address) ? globalThis.String(object.address) : "" };
|
|
368
|
-
},
|
|
369
|
-
|
|
370
|
-
toJSON(message: QueryAccountRequest): unknown {
|
|
371
|
-
const obj: any = {};
|
|
372
|
-
if (message.address !== "") {
|
|
373
|
-
obj.address = message.address;
|
|
374
|
-
}
|
|
375
|
-
return obj;
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
create<I extends Exact<DeepPartial<QueryAccountRequest>, I>>(base?: I): QueryAccountRequest {
|
|
379
|
-
return QueryAccountRequest.fromPartial(base ?? ({} as any));
|
|
380
|
-
},
|
|
381
|
-
fromPartial<I extends Exact<DeepPartial<QueryAccountRequest>, I>>(object: I): QueryAccountRequest {
|
|
382
|
-
const message = createBaseQueryAccountRequest();
|
|
383
|
-
message.address = object.address ?? "";
|
|
384
|
-
return message;
|
|
385
|
-
},
|
|
386
|
-
};
|
|
387
|
-
|
|
388
|
-
function createBaseQueryAccountResponse(): QueryAccountResponse {
|
|
389
|
-
return { account: undefined };
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
export const QueryAccountResponse: MessageFns<QueryAccountResponse> = {
|
|
393
|
-
encode(message: QueryAccountResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
394
|
-
if (message.account !== undefined) {
|
|
395
|
-
Any.encode(message.account, writer.uint32(10).fork()).join();
|
|
396
|
-
}
|
|
397
|
-
return writer;
|
|
398
|
-
},
|
|
399
|
-
|
|
400
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountResponse {
|
|
401
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
402
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
403
|
-
const message = createBaseQueryAccountResponse();
|
|
404
|
-
while (reader.pos < end) {
|
|
405
|
-
const tag = reader.uint32();
|
|
406
|
-
switch (tag >>> 3) {
|
|
407
|
-
case 1: {
|
|
408
|
-
if (tag !== 10) {
|
|
409
|
-
break;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
message.account = Any.decode(reader, reader.uint32());
|
|
413
|
-
continue;
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
417
|
-
break;
|
|
418
|
-
}
|
|
419
|
-
reader.skip(tag & 7);
|
|
420
|
-
}
|
|
421
|
-
return message;
|
|
422
|
-
},
|
|
423
|
-
|
|
424
|
-
fromJSON(object: any): QueryAccountResponse {
|
|
425
|
-
return { account: isSet(object.account) ? Any.fromJSON(object.account) : undefined };
|
|
426
|
-
},
|
|
427
|
-
|
|
428
|
-
toJSON(message: QueryAccountResponse): unknown {
|
|
429
|
-
const obj: any = {};
|
|
430
|
-
if (message.account !== undefined) {
|
|
431
|
-
obj.account = Any.toJSON(message.account);
|
|
432
|
-
}
|
|
433
|
-
return obj;
|
|
434
|
-
},
|
|
435
|
-
|
|
436
|
-
create<I extends Exact<DeepPartial<QueryAccountResponse>, I>>(base?: I): QueryAccountResponse {
|
|
437
|
-
return QueryAccountResponse.fromPartial(base ?? ({} as any));
|
|
438
|
-
},
|
|
439
|
-
fromPartial<I extends Exact<DeepPartial<QueryAccountResponse>, I>>(object: I): QueryAccountResponse {
|
|
440
|
-
const message = createBaseQueryAccountResponse();
|
|
441
|
-
message.account = (object.account !== undefined && object.account !== null)
|
|
442
|
-
? Any.fromPartial(object.account)
|
|
443
|
-
: undefined;
|
|
444
|
-
return message;
|
|
445
|
-
},
|
|
446
|
-
};
|
|
447
|
-
|
|
448
|
-
function createBaseQueryParamsRequest(): QueryParamsRequest {
|
|
449
|
-
return {};
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
export const QueryParamsRequest: MessageFns<QueryParamsRequest> = {
|
|
453
|
-
encode(_: QueryParamsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
454
|
-
return writer;
|
|
455
|
-
},
|
|
456
|
-
|
|
457
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest {
|
|
458
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
459
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
460
|
-
const message = createBaseQueryParamsRequest();
|
|
461
|
-
while (reader.pos < end) {
|
|
462
|
-
const tag = reader.uint32();
|
|
463
|
-
switch (tag >>> 3) {
|
|
464
|
-
}
|
|
465
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
466
|
-
break;
|
|
467
|
-
}
|
|
468
|
-
reader.skip(tag & 7);
|
|
469
|
-
}
|
|
470
|
-
return message;
|
|
471
|
-
},
|
|
472
|
-
|
|
473
|
-
fromJSON(_: any): QueryParamsRequest {
|
|
474
|
-
return {};
|
|
475
|
-
},
|
|
476
|
-
|
|
477
|
-
toJSON(_: QueryParamsRequest): unknown {
|
|
478
|
-
const obj: any = {};
|
|
479
|
-
return obj;
|
|
480
|
-
},
|
|
481
|
-
|
|
482
|
-
create<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(base?: I): QueryParamsRequest {
|
|
483
|
-
return QueryParamsRequest.fromPartial(base ?? ({} as any));
|
|
484
|
-
},
|
|
485
|
-
fromPartial<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(_: I): QueryParamsRequest {
|
|
486
|
-
const message = createBaseQueryParamsRequest();
|
|
487
|
-
return message;
|
|
488
|
-
},
|
|
489
|
-
};
|
|
490
|
-
|
|
491
|
-
function createBaseQueryParamsResponse(): QueryParamsResponse {
|
|
492
|
-
return { params: undefined };
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
export const QueryParamsResponse: MessageFns<QueryParamsResponse> = {
|
|
496
|
-
encode(message: QueryParamsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
497
|
-
if (message.params !== undefined) {
|
|
498
|
-
Params.encode(message.params, writer.uint32(10).fork()).join();
|
|
499
|
-
}
|
|
500
|
-
return writer;
|
|
501
|
-
},
|
|
502
|
-
|
|
503
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse {
|
|
504
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
505
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
506
|
-
const message = createBaseQueryParamsResponse();
|
|
507
|
-
while (reader.pos < end) {
|
|
508
|
-
const tag = reader.uint32();
|
|
509
|
-
switch (tag >>> 3) {
|
|
510
|
-
case 1: {
|
|
511
|
-
if (tag !== 10) {
|
|
512
|
-
break;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
516
|
-
continue;
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
520
|
-
break;
|
|
521
|
-
}
|
|
522
|
-
reader.skip(tag & 7);
|
|
523
|
-
}
|
|
524
|
-
return message;
|
|
525
|
-
},
|
|
526
|
-
|
|
527
|
-
fromJSON(object: any): QueryParamsResponse {
|
|
528
|
-
return { params: isSet(object.params) ? Params.fromJSON(object.params) : undefined };
|
|
529
|
-
},
|
|
530
|
-
|
|
531
|
-
toJSON(message: QueryParamsResponse): unknown {
|
|
532
|
-
const obj: any = {};
|
|
533
|
-
if (message.params !== undefined) {
|
|
534
|
-
obj.params = Params.toJSON(message.params);
|
|
535
|
-
}
|
|
536
|
-
return obj;
|
|
537
|
-
},
|
|
538
|
-
|
|
539
|
-
create<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(base?: I): QueryParamsResponse {
|
|
540
|
-
return QueryParamsResponse.fromPartial(base ?? ({} as any));
|
|
541
|
-
},
|
|
542
|
-
fromPartial<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(object: I): QueryParamsResponse {
|
|
543
|
-
const message = createBaseQueryParamsResponse();
|
|
544
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
545
|
-
? Params.fromPartial(object.params)
|
|
546
|
-
: undefined;
|
|
547
|
-
return message;
|
|
548
|
-
},
|
|
549
|
-
};
|
|
550
|
-
|
|
551
|
-
function createBaseQueryModuleAccountsRequest(): QueryModuleAccountsRequest {
|
|
552
|
-
return {};
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
export const QueryModuleAccountsRequest: MessageFns<QueryModuleAccountsRequest> = {
|
|
556
|
-
encode(_: QueryModuleAccountsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
557
|
-
return writer;
|
|
558
|
-
},
|
|
559
|
-
|
|
560
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsRequest {
|
|
561
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
562
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
563
|
-
const message = createBaseQueryModuleAccountsRequest();
|
|
564
|
-
while (reader.pos < end) {
|
|
565
|
-
const tag = reader.uint32();
|
|
566
|
-
switch (tag >>> 3) {
|
|
567
|
-
}
|
|
568
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
569
|
-
break;
|
|
570
|
-
}
|
|
571
|
-
reader.skip(tag & 7);
|
|
572
|
-
}
|
|
573
|
-
return message;
|
|
574
|
-
},
|
|
575
|
-
|
|
576
|
-
fromJSON(_: any): QueryModuleAccountsRequest {
|
|
577
|
-
return {};
|
|
578
|
-
},
|
|
579
|
-
|
|
580
|
-
toJSON(_: QueryModuleAccountsRequest): unknown {
|
|
581
|
-
const obj: any = {};
|
|
582
|
-
return obj;
|
|
583
|
-
},
|
|
584
|
-
|
|
585
|
-
create<I extends Exact<DeepPartial<QueryModuleAccountsRequest>, I>>(base?: I): QueryModuleAccountsRequest {
|
|
586
|
-
return QueryModuleAccountsRequest.fromPartial(base ?? ({} as any));
|
|
587
|
-
},
|
|
588
|
-
fromPartial<I extends Exact<DeepPartial<QueryModuleAccountsRequest>, I>>(_: I): QueryModuleAccountsRequest {
|
|
589
|
-
const message = createBaseQueryModuleAccountsRequest();
|
|
590
|
-
return message;
|
|
591
|
-
},
|
|
592
|
-
};
|
|
593
|
-
|
|
594
|
-
function createBaseQueryModuleAccountsResponse(): QueryModuleAccountsResponse {
|
|
595
|
-
return { accounts: [] };
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
export const QueryModuleAccountsResponse: MessageFns<QueryModuleAccountsResponse> = {
|
|
599
|
-
encode(message: QueryModuleAccountsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
600
|
-
for (const v of message.accounts) {
|
|
601
|
-
Any.encode(v!, writer.uint32(10).fork()).join();
|
|
602
|
-
}
|
|
603
|
-
return writer;
|
|
604
|
-
},
|
|
605
|
-
|
|
606
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsResponse {
|
|
607
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
608
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
609
|
-
const message = createBaseQueryModuleAccountsResponse();
|
|
610
|
-
while (reader.pos < end) {
|
|
611
|
-
const tag = reader.uint32();
|
|
612
|
-
switch (tag >>> 3) {
|
|
613
|
-
case 1: {
|
|
614
|
-
if (tag !== 10) {
|
|
615
|
-
break;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
message.accounts.push(Any.decode(reader, reader.uint32()));
|
|
619
|
-
continue;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
623
|
-
break;
|
|
624
|
-
}
|
|
625
|
-
reader.skip(tag & 7);
|
|
626
|
-
}
|
|
627
|
-
return message;
|
|
628
|
-
},
|
|
629
|
-
|
|
630
|
-
fromJSON(object: any): QueryModuleAccountsResponse {
|
|
631
|
-
return {
|
|
632
|
-
accounts: globalThis.Array.isArray(object?.accounts) ? object.accounts.map((e: any) => Any.fromJSON(e)) : [],
|
|
633
|
-
};
|
|
634
|
-
},
|
|
635
|
-
|
|
636
|
-
toJSON(message: QueryModuleAccountsResponse): unknown {
|
|
637
|
-
const obj: any = {};
|
|
638
|
-
if (message.accounts?.length) {
|
|
639
|
-
obj.accounts = message.accounts.map((e) => Any.toJSON(e));
|
|
640
|
-
}
|
|
641
|
-
return obj;
|
|
642
|
-
},
|
|
643
|
-
|
|
644
|
-
create<I extends Exact<DeepPartial<QueryModuleAccountsResponse>, I>>(base?: I): QueryModuleAccountsResponse {
|
|
645
|
-
return QueryModuleAccountsResponse.fromPartial(base ?? ({} as any));
|
|
646
|
-
},
|
|
647
|
-
fromPartial<I extends Exact<DeepPartial<QueryModuleAccountsResponse>, I>>(object: I): QueryModuleAccountsResponse {
|
|
648
|
-
const message = createBaseQueryModuleAccountsResponse();
|
|
649
|
-
message.accounts = object.accounts?.map((e) => Any.fromPartial(e)) || [];
|
|
650
|
-
return message;
|
|
651
|
-
},
|
|
652
|
-
};
|
|
653
|
-
|
|
654
|
-
function createBaseQueryModuleAccountByNameRequest(): QueryModuleAccountByNameRequest {
|
|
655
|
-
return { name: "" };
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
export const QueryModuleAccountByNameRequest: MessageFns<QueryModuleAccountByNameRequest> = {
|
|
659
|
-
encode(message: QueryModuleAccountByNameRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
660
|
-
if (message.name !== "") {
|
|
661
|
-
writer.uint32(10).string(message.name);
|
|
662
|
-
}
|
|
663
|
-
return writer;
|
|
664
|
-
},
|
|
665
|
-
|
|
666
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameRequest {
|
|
667
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
668
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
669
|
-
const message = createBaseQueryModuleAccountByNameRequest();
|
|
670
|
-
while (reader.pos < end) {
|
|
671
|
-
const tag = reader.uint32();
|
|
672
|
-
switch (tag >>> 3) {
|
|
673
|
-
case 1: {
|
|
674
|
-
if (tag !== 10) {
|
|
675
|
-
break;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
message.name = reader.string();
|
|
679
|
-
continue;
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
683
|
-
break;
|
|
684
|
-
}
|
|
685
|
-
reader.skip(tag & 7);
|
|
686
|
-
}
|
|
687
|
-
return message;
|
|
688
|
-
},
|
|
689
|
-
|
|
690
|
-
fromJSON(object: any): QueryModuleAccountByNameRequest {
|
|
691
|
-
return { name: isSet(object.name) ? globalThis.String(object.name) : "" };
|
|
692
|
-
},
|
|
693
|
-
|
|
694
|
-
toJSON(message: QueryModuleAccountByNameRequest): unknown {
|
|
695
|
-
const obj: any = {};
|
|
696
|
-
if (message.name !== "") {
|
|
697
|
-
obj.name = message.name;
|
|
698
|
-
}
|
|
699
|
-
return obj;
|
|
700
|
-
},
|
|
701
|
-
|
|
702
|
-
create<I extends Exact<DeepPartial<QueryModuleAccountByNameRequest>, I>>(base?: I): QueryModuleAccountByNameRequest {
|
|
703
|
-
return QueryModuleAccountByNameRequest.fromPartial(base ?? ({} as any));
|
|
704
|
-
},
|
|
705
|
-
fromPartial<I extends Exact<DeepPartial<QueryModuleAccountByNameRequest>, I>>(
|
|
706
|
-
object: I,
|
|
707
|
-
): QueryModuleAccountByNameRequest {
|
|
708
|
-
const message = createBaseQueryModuleAccountByNameRequest();
|
|
709
|
-
message.name = object.name ?? "";
|
|
710
|
-
return message;
|
|
711
|
-
},
|
|
712
|
-
};
|
|
713
|
-
|
|
714
|
-
function createBaseQueryModuleAccountByNameResponse(): QueryModuleAccountByNameResponse {
|
|
715
|
-
return { account: undefined };
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
export const QueryModuleAccountByNameResponse: MessageFns<QueryModuleAccountByNameResponse> = {
|
|
719
|
-
encode(message: QueryModuleAccountByNameResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
720
|
-
if (message.account !== undefined) {
|
|
721
|
-
Any.encode(message.account, writer.uint32(10).fork()).join();
|
|
722
|
-
}
|
|
723
|
-
return writer;
|
|
724
|
-
},
|
|
725
|
-
|
|
726
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameResponse {
|
|
727
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
728
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
729
|
-
const message = createBaseQueryModuleAccountByNameResponse();
|
|
730
|
-
while (reader.pos < end) {
|
|
731
|
-
const tag = reader.uint32();
|
|
732
|
-
switch (tag >>> 3) {
|
|
733
|
-
case 1: {
|
|
734
|
-
if (tag !== 10) {
|
|
735
|
-
break;
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
message.account = Any.decode(reader, reader.uint32());
|
|
739
|
-
continue;
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
743
|
-
break;
|
|
744
|
-
}
|
|
745
|
-
reader.skip(tag & 7);
|
|
746
|
-
}
|
|
747
|
-
return message;
|
|
748
|
-
},
|
|
749
|
-
|
|
750
|
-
fromJSON(object: any): QueryModuleAccountByNameResponse {
|
|
751
|
-
return { account: isSet(object.account) ? Any.fromJSON(object.account) : undefined };
|
|
752
|
-
},
|
|
753
|
-
|
|
754
|
-
toJSON(message: QueryModuleAccountByNameResponse): unknown {
|
|
755
|
-
const obj: any = {};
|
|
756
|
-
if (message.account !== undefined) {
|
|
757
|
-
obj.account = Any.toJSON(message.account);
|
|
758
|
-
}
|
|
759
|
-
return obj;
|
|
760
|
-
},
|
|
761
|
-
|
|
762
|
-
create<I extends Exact<DeepPartial<QueryModuleAccountByNameResponse>, I>>(
|
|
763
|
-
base?: I,
|
|
764
|
-
): QueryModuleAccountByNameResponse {
|
|
765
|
-
return QueryModuleAccountByNameResponse.fromPartial(base ?? ({} as any));
|
|
766
|
-
},
|
|
767
|
-
fromPartial<I extends Exact<DeepPartial<QueryModuleAccountByNameResponse>, I>>(
|
|
768
|
-
object: I,
|
|
769
|
-
): QueryModuleAccountByNameResponse {
|
|
770
|
-
const message = createBaseQueryModuleAccountByNameResponse();
|
|
771
|
-
message.account = (object.account !== undefined && object.account !== null)
|
|
772
|
-
? Any.fromPartial(object.account)
|
|
773
|
-
: undefined;
|
|
774
|
-
return message;
|
|
775
|
-
},
|
|
776
|
-
};
|
|
777
|
-
|
|
778
|
-
function createBaseBech32PrefixRequest(): Bech32PrefixRequest {
|
|
779
|
-
return {};
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
export const Bech32PrefixRequest: MessageFns<Bech32PrefixRequest> = {
|
|
783
|
-
encode(_: Bech32PrefixRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
784
|
-
return writer;
|
|
785
|
-
},
|
|
786
|
-
|
|
787
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixRequest {
|
|
788
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
789
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
790
|
-
const message = createBaseBech32PrefixRequest();
|
|
791
|
-
while (reader.pos < end) {
|
|
792
|
-
const tag = reader.uint32();
|
|
793
|
-
switch (tag >>> 3) {
|
|
794
|
-
}
|
|
795
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
796
|
-
break;
|
|
797
|
-
}
|
|
798
|
-
reader.skip(tag & 7);
|
|
799
|
-
}
|
|
800
|
-
return message;
|
|
801
|
-
},
|
|
802
|
-
|
|
803
|
-
fromJSON(_: any): Bech32PrefixRequest {
|
|
804
|
-
return {};
|
|
805
|
-
},
|
|
806
|
-
|
|
807
|
-
toJSON(_: Bech32PrefixRequest): unknown {
|
|
808
|
-
const obj: any = {};
|
|
809
|
-
return obj;
|
|
810
|
-
},
|
|
811
|
-
|
|
812
|
-
create<I extends Exact<DeepPartial<Bech32PrefixRequest>, I>>(base?: I): Bech32PrefixRequest {
|
|
813
|
-
return Bech32PrefixRequest.fromPartial(base ?? ({} as any));
|
|
814
|
-
},
|
|
815
|
-
fromPartial<I extends Exact<DeepPartial<Bech32PrefixRequest>, I>>(_: I): Bech32PrefixRequest {
|
|
816
|
-
const message = createBaseBech32PrefixRequest();
|
|
817
|
-
return message;
|
|
818
|
-
},
|
|
819
|
-
};
|
|
820
|
-
|
|
821
|
-
function createBaseBech32PrefixResponse(): Bech32PrefixResponse {
|
|
822
|
-
return { bech32Prefix: "" };
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
export const Bech32PrefixResponse: MessageFns<Bech32PrefixResponse> = {
|
|
826
|
-
encode(message: Bech32PrefixResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
827
|
-
if (message.bech32Prefix !== "") {
|
|
828
|
-
writer.uint32(10).string(message.bech32Prefix);
|
|
829
|
-
}
|
|
830
|
-
return writer;
|
|
831
|
-
},
|
|
832
|
-
|
|
833
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixResponse {
|
|
834
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
835
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
836
|
-
const message = createBaseBech32PrefixResponse();
|
|
837
|
-
while (reader.pos < end) {
|
|
838
|
-
const tag = reader.uint32();
|
|
839
|
-
switch (tag >>> 3) {
|
|
840
|
-
case 1: {
|
|
841
|
-
if (tag !== 10) {
|
|
842
|
-
break;
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
message.bech32Prefix = reader.string();
|
|
846
|
-
continue;
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
850
|
-
break;
|
|
851
|
-
}
|
|
852
|
-
reader.skip(tag & 7);
|
|
853
|
-
}
|
|
854
|
-
return message;
|
|
855
|
-
},
|
|
856
|
-
|
|
857
|
-
fromJSON(object: any): Bech32PrefixResponse {
|
|
858
|
-
return { bech32Prefix: isSet(object.bech32Prefix) ? globalThis.String(object.bech32Prefix) : "" };
|
|
859
|
-
},
|
|
860
|
-
|
|
861
|
-
toJSON(message: Bech32PrefixResponse): unknown {
|
|
862
|
-
const obj: any = {};
|
|
863
|
-
if (message.bech32Prefix !== "") {
|
|
864
|
-
obj.bech32Prefix = message.bech32Prefix;
|
|
865
|
-
}
|
|
866
|
-
return obj;
|
|
867
|
-
},
|
|
868
|
-
|
|
869
|
-
create<I extends Exact<DeepPartial<Bech32PrefixResponse>, I>>(base?: I): Bech32PrefixResponse {
|
|
870
|
-
return Bech32PrefixResponse.fromPartial(base ?? ({} as any));
|
|
871
|
-
},
|
|
872
|
-
fromPartial<I extends Exact<DeepPartial<Bech32PrefixResponse>, I>>(object: I): Bech32PrefixResponse {
|
|
873
|
-
const message = createBaseBech32PrefixResponse();
|
|
874
|
-
message.bech32Prefix = object.bech32Prefix ?? "";
|
|
875
|
-
return message;
|
|
876
|
-
},
|
|
877
|
-
};
|
|
878
|
-
|
|
879
|
-
function createBaseAddressBytesToStringRequest(): AddressBytesToStringRequest {
|
|
880
|
-
return { addressBytes: new Uint8Array(0) };
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
export const AddressBytesToStringRequest: MessageFns<AddressBytesToStringRequest> = {
|
|
884
|
-
encode(message: AddressBytesToStringRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
885
|
-
if (message.addressBytes.length !== 0) {
|
|
886
|
-
writer.uint32(10).bytes(message.addressBytes);
|
|
887
|
-
}
|
|
888
|
-
return writer;
|
|
889
|
-
},
|
|
890
|
-
|
|
891
|
-
decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringRequest {
|
|
892
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
893
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
894
|
-
const message = createBaseAddressBytesToStringRequest();
|
|
895
|
-
while (reader.pos < end) {
|
|
896
|
-
const tag = reader.uint32();
|
|
897
|
-
switch (tag >>> 3) {
|
|
898
|
-
case 1: {
|
|
899
|
-
if (tag !== 10) {
|
|
900
|
-
break;
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
message.addressBytes = reader.bytes();
|
|
904
|
-
continue;
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
908
|
-
break;
|
|
909
|
-
}
|
|
910
|
-
reader.skip(tag & 7);
|
|
911
|
-
}
|
|
912
|
-
return message;
|
|
913
|
-
},
|
|
914
|
-
|
|
915
|
-
fromJSON(object: any): AddressBytesToStringRequest {
|
|
916
|
-
return { addressBytes: isSet(object.addressBytes) ? bytesFromBase64(object.addressBytes) : new Uint8Array(0) };
|
|
917
|
-
},
|
|
918
|
-
|
|
919
|
-
toJSON(message: AddressBytesToStringRequest): unknown {
|
|
920
|
-
const obj: any = {};
|
|
921
|
-
if (message.addressBytes.length !== 0) {
|
|
922
|
-
obj.addressBytes = base64FromBytes(message.addressBytes);
|
|
923
|
-
}
|
|
924
|
-
return obj;
|
|
925
|
-
},
|
|
926
|
-
|
|
927
|
-
create<I extends Exact<DeepPartial<AddressBytesToStringRequest>, I>>(base?: I): AddressBytesToStringRequest {
|
|
928
|
-
return AddressBytesToStringRequest.fromPartial(base ?? ({} as any));
|
|
929
|
-
},
|
|
930
|
-
fromPartial<I extends Exact<DeepPartial<AddressBytesToStringRequest>, I>>(object: I): AddressBytesToStringRequest {
|
|
931
|
-
const message = createBaseAddressBytesToStringRequest();
|
|
932
|
-
message.addressBytes = object.addressBytes ?? new Uint8Array(0);
|
|
933
|
-
return message;
|
|
934
|
-
},
|
|
935
|
-
};
|
|
936
|
-
|
|
937
|
-
function createBaseAddressBytesToStringResponse(): AddressBytesToStringResponse {
|
|
938
|
-
return { addressString: "" };
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
export const AddressBytesToStringResponse: MessageFns<AddressBytesToStringResponse> = {
|
|
942
|
-
encode(message: AddressBytesToStringResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
943
|
-
if (message.addressString !== "") {
|
|
944
|
-
writer.uint32(10).string(message.addressString);
|
|
945
|
-
}
|
|
946
|
-
return writer;
|
|
947
|
-
},
|
|
948
|
-
|
|
949
|
-
decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringResponse {
|
|
950
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
951
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
952
|
-
const message = createBaseAddressBytesToStringResponse();
|
|
953
|
-
while (reader.pos < end) {
|
|
954
|
-
const tag = reader.uint32();
|
|
955
|
-
switch (tag >>> 3) {
|
|
956
|
-
case 1: {
|
|
957
|
-
if (tag !== 10) {
|
|
958
|
-
break;
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
message.addressString = reader.string();
|
|
962
|
-
continue;
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
966
|
-
break;
|
|
967
|
-
}
|
|
968
|
-
reader.skip(tag & 7);
|
|
969
|
-
}
|
|
970
|
-
return message;
|
|
971
|
-
},
|
|
972
|
-
|
|
973
|
-
fromJSON(object: any): AddressBytesToStringResponse {
|
|
974
|
-
return { addressString: isSet(object.addressString) ? globalThis.String(object.addressString) : "" };
|
|
975
|
-
},
|
|
976
|
-
|
|
977
|
-
toJSON(message: AddressBytesToStringResponse): unknown {
|
|
978
|
-
const obj: any = {};
|
|
979
|
-
if (message.addressString !== "") {
|
|
980
|
-
obj.addressString = message.addressString;
|
|
981
|
-
}
|
|
982
|
-
return obj;
|
|
983
|
-
},
|
|
984
|
-
|
|
985
|
-
create<I extends Exact<DeepPartial<AddressBytesToStringResponse>, I>>(base?: I): AddressBytesToStringResponse {
|
|
986
|
-
return AddressBytesToStringResponse.fromPartial(base ?? ({} as any));
|
|
987
|
-
},
|
|
988
|
-
fromPartial<I extends Exact<DeepPartial<AddressBytesToStringResponse>, I>>(object: I): AddressBytesToStringResponse {
|
|
989
|
-
const message = createBaseAddressBytesToStringResponse();
|
|
990
|
-
message.addressString = object.addressString ?? "";
|
|
991
|
-
return message;
|
|
992
|
-
},
|
|
993
|
-
};
|
|
994
|
-
|
|
995
|
-
function createBaseAddressStringToBytesRequest(): AddressStringToBytesRequest {
|
|
996
|
-
return { addressString: "" };
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
export const AddressStringToBytesRequest: MessageFns<AddressStringToBytesRequest> = {
|
|
1000
|
-
encode(message: AddressStringToBytesRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1001
|
-
if (message.addressString !== "") {
|
|
1002
|
-
writer.uint32(10).string(message.addressString);
|
|
1003
|
-
}
|
|
1004
|
-
return writer;
|
|
1005
|
-
},
|
|
1006
|
-
|
|
1007
|
-
decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesRequest {
|
|
1008
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1009
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1010
|
-
const message = createBaseAddressStringToBytesRequest();
|
|
1011
|
-
while (reader.pos < end) {
|
|
1012
|
-
const tag = reader.uint32();
|
|
1013
|
-
switch (tag >>> 3) {
|
|
1014
|
-
case 1: {
|
|
1015
|
-
if (tag !== 10) {
|
|
1016
|
-
break;
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
message.addressString = reader.string();
|
|
1020
|
-
continue;
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1024
|
-
break;
|
|
1025
|
-
}
|
|
1026
|
-
reader.skip(tag & 7);
|
|
1027
|
-
}
|
|
1028
|
-
return message;
|
|
1029
|
-
},
|
|
1030
|
-
|
|
1031
|
-
fromJSON(object: any): AddressStringToBytesRequest {
|
|
1032
|
-
return { addressString: isSet(object.addressString) ? globalThis.String(object.addressString) : "" };
|
|
1033
|
-
},
|
|
1034
|
-
|
|
1035
|
-
toJSON(message: AddressStringToBytesRequest): unknown {
|
|
1036
|
-
const obj: any = {};
|
|
1037
|
-
if (message.addressString !== "") {
|
|
1038
|
-
obj.addressString = message.addressString;
|
|
1039
|
-
}
|
|
1040
|
-
return obj;
|
|
1041
|
-
},
|
|
1042
|
-
|
|
1043
|
-
create<I extends Exact<DeepPartial<AddressStringToBytesRequest>, I>>(base?: I): AddressStringToBytesRequest {
|
|
1044
|
-
return AddressStringToBytesRequest.fromPartial(base ?? ({} as any));
|
|
1045
|
-
},
|
|
1046
|
-
fromPartial<I extends Exact<DeepPartial<AddressStringToBytesRequest>, I>>(object: I): AddressStringToBytesRequest {
|
|
1047
|
-
const message = createBaseAddressStringToBytesRequest();
|
|
1048
|
-
message.addressString = object.addressString ?? "";
|
|
1049
|
-
return message;
|
|
1050
|
-
},
|
|
1051
|
-
};
|
|
1052
|
-
|
|
1053
|
-
function createBaseAddressStringToBytesResponse(): AddressStringToBytesResponse {
|
|
1054
|
-
return { addressBytes: new Uint8Array(0) };
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
export const AddressStringToBytesResponse: MessageFns<AddressStringToBytesResponse> = {
|
|
1058
|
-
encode(message: AddressStringToBytesResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1059
|
-
if (message.addressBytes.length !== 0) {
|
|
1060
|
-
writer.uint32(10).bytes(message.addressBytes);
|
|
1061
|
-
}
|
|
1062
|
-
return writer;
|
|
1063
|
-
},
|
|
1064
|
-
|
|
1065
|
-
decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesResponse {
|
|
1066
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1067
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1068
|
-
const message = createBaseAddressStringToBytesResponse();
|
|
1069
|
-
while (reader.pos < end) {
|
|
1070
|
-
const tag = reader.uint32();
|
|
1071
|
-
switch (tag >>> 3) {
|
|
1072
|
-
case 1: {
|
|
1073
|
-
if (tag !== 10) {
|
|
1074
|
-
break;
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
message.addressBytes = reader.bytes();
|
|
1078
|
-
continue;
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1082
|
-
break;
|
|
1083
|
-
}
|
|
1084
|
-
reader.skip(tag & 7);
|
|
1085
|
-
}
|
|
1086
|
-
return message;
|
|
1087
|
-
},
|
|
1088
|
-
|
|
1089
|
-
fromJSON(object: any): AddressStringToBytesResponse {
|
|
1090
|
-
return { addressBytes: isSet(object.addressBytes) ? bytesFromBase64(object.addressBytes) : new Uint8Array(0) };
|
|
1091
|
-
},
|
|
1092
|
-
|
|
1093
|
-
toJSON(message: AddressStringToBytesResponse): unknown {
|
|
1094
|
-
const obj: any = {};
|
|
1095
|
-
if (message.addressBytes.length !== 0) {
|
|
1096
|
-
obj.addressBytes = base64FromBytes(message.addressBytes);
|
|
1097
|
-
}
|
|
1098
|
-
return obj;
|
|
1099
|
-
},
|
|
1100
|
-
|
|
1101
|
-
create<I extends Exact<DeepPartial<AddressStringToBytesResponse>, I>>(base?: I): AddressStringToBytesResponse {
|
|
1102
|
-
return AddressStringToBytesResponse.fromPartial(base ?? ({} as any));
|
|
1103
|
-
},
|
|
1104
|
-
fromPartial<I extends Exact<DeepPartial<AddressStringToBytesResponse>, I>>(object: I): AddressStringToBytesResponse {
|
|
1105
|
-
const message = createBaseAddressStringToBytesResponse();
|
|
1106
|
-
message.addressBytes = object.addressBytes ?? new Uint8Array(0);
|
|
1107
|
-
return message;
|
|
1108
|
-
},
|
|
1109
|
-
};
|
|
1110
|
-
|
|
1111
|
-
function createBaseQueryAccountAddressByIDRequest(): QueryAccountAddressByIDRequest {
|
|
1112
|
-
return { id: 0, accountId: 0 };
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
export const QueryAccountAddressByIDRequest: MessageFns<QueryAccountAddressByIDRequest> = {
|
|
1116
|
-
encode(message: QueryAccountAddressByIDRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1117
|
-
if (message.id !== 0) {
|
|
1118
|
-
writer.uint32(8).int64(message.id);
|
|
1119
|
-
}
|
|
1120
|
-
if (message.accountId !== 0) {
|
|
1121
|
-
writer.uint32(16).uint64(message.accountId);
|
|
1122
|
-
}
|
|
1123
|
-
return writer;
|
|
1124
|
-
},
|
|
1125
|
-
|
|
1126
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDRequest {
|
|
1127
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1128
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1129
|
-
const message = createBaseQueryAccountAddressByIDRequest();
|
|
1130
|
-
while (reader.pos < end) {
|
|
1131
|
-
const tag = reader.uint32();
|
|
1132
|
-
switch (tag >>> 3) {
|
|
1133
|
-
case 1: {
|
|
1134
|
-
if (tag !== 8) {
|
|
1135
|
-
break;
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
message.id = longToNumber(reader.int64());
|
|
1139
|
-
continue;
|
|
1140
|
-
}
|
|
1141
|
-
case 2: {
|
|
1142
|
-
if (tag !== 16) {
|
|
1143
|
-
break;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
message.accountId = longToNumber(reader.uint64());
|
|
1147
|
-
continue;
|
|
1148
|
-
}
|
|
1149
|
-
}
|
|
1150
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1151
|
-
break;
|
|
1152
|
-
}
|
|
1153
|
-
reader.skip(tag & 7);
|
|
1154
|
-
}
|
|
1155
|
-
return message;
|
|
1156
|
-
},
|
|
1157
|
-
|
|
1158
|
-
fromJSON(object: any): QueryAccountAddressByIDRequest {
|
|
1159
|
-
return {
|
|
1160
|
-
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
1161
|
-
accountId: isSet(object.accountId) ? globalThis.Number(object.accountId) : 0,
|
|
1162
|
-
};
|
|
1163
|
-
},
|
|
1164
|
-
|
|
1165
|
-
toJSON(message: QueryAccountAddressByIDRequest): unknown {
|
|
1166
|
-
const obj: any = {};
|
|
1167
|
-
if (message.id !== 0) {
|
|
1168
|
-
obj.id = Math.round(message.id);
|
|
1169
|
-
}
|
|
1170
|
-
if (message.accountId !== 0) {
|
|
1171
|
-
obj.accountId = Math.round(message.accountId);
|
|
1172
|
-
}
|
|
1173
|
-
return obj;
|
|
1174
|
-
},
|
|
1175
|
-
|
|
1176
|
-
create<I extends Exact<DeepPartial<QueryAccountAddressByIDRequest>, I>>(base?: I): QueryAccountAddressByIDRequest {
|
|
1177
|
-
return QueryAccountAddressByIDRequest.fromPartial(base ?? ({} as any));
|
|
1178
|
-
},
|
|
1179
|
-
fromPartial<I extends Exact<DeepPartial<QueryAccountAddressByIDRequest>, I>>(
|
|
1180
|
-
object: I,
|
|
1181
|
-
): QueryAccountAddressByIDRequest {
|
|
1182
|
-
const message = createBaseQueryAccountAddressByIDRequest();
|
|
1183
|
-
message.id = object.id ?? 0;
|
|
1184
|
-
message.accountId = object.accountId ?? 0;
|
|
1185
|
-
return message;
|
|
1186
|
-
},
|
|
1187
|
-
};
|
|
1188
|
-
|
|
1189
|
-
function createBaseQueryAccountAddressByIDResponse(): QueryAccountAddressByIDResponse {
|
|
1190
|
-
return { accountAddress: "" };
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
export const QueryAccountAddressByIDResponse: MessageFns<QueryAccountAddressByIDResponse> = {
|
|
1194
|
-
encode(message: QueryAccountAddressByIDResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1195
|
-
if (message.accountAddress !== "") {
|
|
1196
|
-
writer.uint32(10).string(message.accountAddress);
|
|
1197
|
-
}
|
|
1198
|
-
return writer;
|
|
1199
|
-
},
|
|
1200
|
-
|
|
1201
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDResponse {
|
|
1202
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1203
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1204
|
-
const message = createBaseQueryAccountAddressByIDResponse();
|
|
1205
|
-
while (reader.pos < end) {
|
|
1206
|
-
const tag = reader.uint32();
|
|
1207
|
-
switch (tag >>> 3) {
|
|
1208
|
-
case 1: {
|
|
1209
|
-
if (tag !== 10) {
|
|
1210
|
-
break;
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
message.accountAddress = reader.string();
|
|
1214
|
-
continue;
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1218
|
-
break;
|
|
1219
|
-
}
|
|
1220
|
-
reader.skip(tag & 7);
|
|
1221
|
-
}
|
|
1222
|
-
return message;
|
|
1223
|
-
},
|
|
1224
|
-
|
|
1225
|
-
fromJSON(object: any): QueryAccountAddressByIDResponse {
|
|
1226
|
-
return { accountAddress: isSet(object.accountAddress) ? globalThis.String(object.accountAddress) : "" };
|
|
1227
|
-
},
|
|
1228
|
-
|
|
1229
|
-
toJSON(message: QueryAccountAddressByIDResponse): unknown {
|
|
1230
|
-
const obj: any = {};
|
|
1231
|
-
if (message.accountAddress !== "") {
|
|
1232
|
-
obj.accountAddress = message.accountAddress;
|
|
1233
|
-
}
|
|
1234
|
-
return obj;
|
|
1235
|
-
},
|
|
1236
|
-
|
|
1237
|
-
create<I extends Exact<DeepPartial<QueryAccountAddressByIDResponse>, I>>(base?: I): QueryAccountAddressByIDResponse {
|
|
1238
|
-
return QueryAccountAddressByIDResponse.fromPartial(base ?? ({} as any));
|
|
1239
|
-
},
|
|
1240
|
-
fromPartial<I extends Exact<DeepPartial<QueryAccountAddressByIDResponse>, I>>(
|
|
1241
|
-
object: I,
|
|
1242
|
-
): QueryAccountAddressByIDResponse {
|
|
1243
|
-
const message = createBaseQueryAccountAddressByIDResponse();
|
|
1244
|
-
message.accountAddress = object.accountAddress ?? "";
|
|
1245
|
-
return message;
|
|
1246
|
-
},
|
|
1247
|
-
};
|
|
1248
|
-
|
|
1249
|
-
function createBaseQueryAccountInfoRequest(): QueryAccountInfoRequest {
|
|
1250
|
-
return { address: "" };
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
-
export const QueryAccountInfoRequest: MessageFns<QueryAccountInfoRequest> = {
|
|
1254
|
-
encode(message: QueryAccountInfoRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1255
|
-
if (message.address !== "") {
|
|
1256
|
-
writer.uint32(10).string(message.address);
|
|
1257
|
-
}
|
|
1258
|
-
return writer;
|
|
1259
|
-
},
|
|
1260
|
-
|
|
1261
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountInfoRequest {
|
|
1262
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1263
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1264
|
-
const message = createBaseQueryAccountInfoRequest();
|
|
1265
|
-
while (reader.pos < end) {
|
|
1266
|
-
const tag = reader.uint32();
|
|
1267
|
-
switch (tag >>> 3) {
|
|
1268
|
-
case 1: {
|
|
1269
|
-
if (tag !== 10) {
|
|
1270
|
-
break;
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
message.address = reader.string();
|
|
1274
|
-
continue;
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1278
|
-
break;
|
|
1279
|
-
}
|
|
1280
|
-
reader.skip(tag & 7);
|
|
1281
|
-
}
|
|
1282
|
-
return message;
|
|
1283
|
-
},
|
|
1284
|
-
|
|
1285
|
-
fromJSON(object: any): QueryAccountInfoRequest {
|
|
1286
|
-
return { address: isSet(object.address) ? globalThis.String(object.address) : "" };
|
|
1287
|
-
},
|
|
1288
|
-
|
|
1289
|
-
toJSON(message: QueryAccountInfoRequest): unknown {
|
|
1290
|
-
const obj: any = {};
|
|
1291
|
-
if (message.address !== "") {
|
|
1292
|
-
obj.address = message.address;
|
|
1293
|
-
}
|
|
1294
|
-
return obj;
|
|
1295
|
-
},
|
|
1296
|
-
|
|
1297
|
-
create<I extends Exact<DeepPartial<QueryAccountInfoRequest>, I>>(base?: I): QueryAccountInfoRequest {
|
|
1298
|
-
return QueryAccountInfoRequest.fromPartial(base ?? ({} as any));
|
|
1299
|
-
},
|
|
1300
|
-
fromPartial<I extends Exact<DeepPartial<QueryAccountInfoRequest>, I>>(object: I): QueryAccountInfoRequest {
|
|
1301
|
-
const message = createBaseQueryAccountInfoRequest();
|
|
1302
|
-
message.address = object.address ?? "";
|
|
1303
|
-
return message;
|
|
1304
|
-
},
|
|
1305
|
-
};
|
|
1306
|
-
|
|
1307
|
-
function createBaseQueryAccountInfoResponse(): QueryAccountInfoResponse {
|
|
1308
|
-
return { info: undefined };
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
export const QueryAccountInfoResponse: MessageFns<QueryAccountInfoResponse> = {
|
|
1312
|
-
encode(message: QueryAccountInfoResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1313
|
-
if (message.info !== undefined) {
|
|
1314
|
-
BaseAccount.encode(message.info, writer.uint32(10).fork()).join();
|
|
1315
|
-
}
|
|
1316
|
-
return writer;
|
|
1317
|
-
},
|
|
1318
|
-
|
|
1319
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountInfoResponse {
|
|
1320
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1321
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1322
|
-
const message = createBaseQueryAccountInfoResponse();
|
|
1323
|
-
while (reader.pos < end) {
|
|
1324
|
-
const tag = reader.uint32();
|
|
1325
|
-
switch (tag >>> 3) {
|
|
1326
|
-
case 1: {
|
|
1327
|
-
if (tag !== 10) {
|
|
1328
|
-
break;
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
message.info = BaseAccount.decode(reader, reader.uint32());
|
|
1332
|
-
continue;
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1336
|
-
break;
|
|
1337
|
-
}
|
|
1338
|
-
reader.skip(tag & 7);
|
|
1339
|
-
}
|
|
1340
|
-
return message;
|
|
1341
|
-
},
|
|
1342
|
-
|
|
1343
|
-
fromJSON(object: any): QueryAccountInfoResponse {
|
|
1344
|
-
return { info: isSet(object.info) ? BaseAccount.fromJSON(object.info) : undefined };
|
|
1345
|
-
},
|
|
1346
|
-
|
|
1347
|
-
toJSON(message: QueryAccountInfoResponse): unknown {
|
|
1348
|
-
const obj: any = {};
|
|
1349
|
-
if (message.info !== undefined) {
|
|
1350
|
-
obj.info = BaseAccount.toJSON(message.info);
|
|
1351
|
-
}
|
|
1352
|
-
return obj;
|
|
1353
|
-
},
|
|
1354
|
-
|
|
1355
|
-
create<I extends Exact<DeepPartial<QueryAccountInfoResponse>, I>>(base?: I): QueryAccountInfoResponse {
|
|
1356
|
-
return QueryAccountInfoResponse.fromPartial(base ?? ({} as any));
|
|
1357
|
-
},
|
|
1358
|
-
fromPartial<I extends Exact<DeepPartial<QueryAccountInfoResponse>, I>>(object: I): QueryAccountInfoResponse {
|
|
1359
|
-
const message = createBaseQueryAccountInfoResponse();
|
|
1360
|
-
message.info = (object.info !== undefined && object.info !== null)
|
|
1361
|
-
? BaseAccount.fromPartial(object.info)
|
|
1362
|
-
: undefined;
|
|
1363
|
-
return message;
|
|
1364
|
-
},
|
|
1365
|
-
};
|
|
1366
|
-
|
|
1367
|
-
/** Query defines the gRPC querier service. */
|
|
1368
|
-
export interface Query {
|
|
1369
|
-
/**
|
|
1370
|
-
* Accounts returns all the existing accounts.
|
|
1371
|
-
*
|
|
1372
|
-
* When called from another module, this query might consume a high amount of
|
|
1373
|
-
* gas if the pagination field is incorrectly set.
|
|
1374
|
-
*
|
|
1375
|
-
* Since: cosmos-sdk 0.43
|
|
1376
|
-
*/
|
|
1377
|
-
Accounts(request: QueryAccountsRequest): Promise<QueryAccountsResponse>;
|
|
1378
|
-
/** Account returns account details based on address. */
|
|
1379
|
-
Account(request: QueryAccountRequest): Promise<QueryAccountResponse>;
|
|
1380
|
-
/**
|
|
1381
|
-
* AccountAddressByID returns account address based on account number.
|
|
1382
|
-
*
|
|
1383
|
-
* Since: cosmos-sdk 0.46.2
|
|
1384
|
-
*/
|
|
1385
|
-
AccountAddressByID(request: QueryAccountAddressByIDRequest): Promise<QueryAccountAddressByIDResponse>;
|
|
1386
|
-
/** Params queries all parameters. */
|
|
1387
|
-
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
1388
|
-
/**
|
|
1389
|
-
* ModuleAccounts returns all the existing module accounts.
|
|
1390
|
-
*
|
|
1391
|
-
* Since: cosmos-sdk 0.46
|
|
1392
|
-
*/
|
|
1393
|
-
ModuleAccounts(request: QueryModuleAccountsRequest): Promise<QueryModuleAccountsResponse>;
|
|
1394
|
-
/** ModuleAccountByName returns the module account info by module name */
|
|
1395
|
-
ModuleAccountByName(request: QueryModuleAccountByNameRequest): Promise<QueryModuleAccountByNameResponse>;
|
|
1396
|
-
/**
|
|
1397
|
-
* Bech32Prefix queries bech32Prefix
|
|
1398
|
-
*
|
|
1399
|
-
* Since: cosmos-sdk 0.46
|
|
1400
|
-
*/
|
|
1401
|
-
Bech32Prefix(request: Bech32PrefixRequest): Promise<Bech32PrefixResponse>;
|
|
1402
|
-
/**
|
|
1403
|
-
* AddressBytesToString converts Account Address bytes to string
|
|
1404
|
-
*
|
|
1405
|
-
* Since: cosmos-sdk 0.46
|
|
1406
|
-
*/
|
|
1407
|
-
AddressBytesToString(request: AddressBytesToStringRequest): Promise<AddressBytesToStringResponse>;
|
|
1408
|
-
/**
|
|
1409
|
-
* AddressStringToBytes converts Address string to bytes
|
|
1410
|
-
*
|
|
1411
|
-
* Since: cosmos-sdk 0.46
|
|
1412
|
-
*/
|
|
1413
|
-
AddressStringToBytes(request: AddressStringToBytesRequest): Promise<AddressStringToBytesResponse>;
|
|
1414
|
-
/**
|
|
1415
|
-
* AccountInfo queries account info which is common to all account types.
|
|
1416
|
-
*
|
|
1417
|
-
* Since: cosmos-sdk 0.47
|
|
1418
|
-
*/
|
|
1419
|
-
AccountInfo(request: QueryAccountInfoRequest): Promise<QueryAccountInfoResponse>;
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
export const QueryServiceName = "cosmos.auth.v1beta1.Query";
|
|
1423
|
-
export class QueryClientImpl implements Query {
|
|
1424
|
-
private readonly rpc: Rpc;
|
|
1425
|
-
private readonly service: string;
|
|
1426
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
1427
|
-
this.service = opts?.service || QueryServiceName;
|
|
1428
|
-
this.rpc = rpc;
|
|
1429
|
-
this.Accounts = this.Accounts.bind(this);
|
|
1430
|
-
this.Account = this.Account.bind(this);
|
|
1431
|
-
this.AccountAddressByID = this.AccountAddressByID.bind(this);
|
|
1432
|
-
this.Params = this.Params.bind(this);
|
|
1433
|
-
this.ModuleAccounts = this.ModuleAccounts.bind(this);
|
|
1434
|
-
this.ModuleAccountByName = this.ModuleAccountByName.bind(this);
|
|
1435
|
-
this.Bech32Prefix = this.Bech32Prefix.bind(this);
|
|
1436
|
-
this.AddressBytesToString = this.AddressBytesToString.bind(this);
|
|
1437
|
-
this.AddressStringToBytes = this.AddressStringToBytes.bind(this);
|
|
1438
|
-
this.AccountInfo = this.AccountInfo.bind(this);
|
|
1439
|
-
}
|
|
1440
|
-
Accounts(request: QueryAccountsRequest): Promise<QueryAccountsResponse> {
|
|
1441
|
-
const data = QueryAccountsRequest.encode(request).finish();
|
|
1442
|
-
const promise = this.rpc.request(this.service, "Accounts", data);
|
|
1443
|
-
return promise.then((data) => QueryAccountsResponse.decode(new BinaryReader(data)));
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
Account(request: QueryAccountRequest): Promise<QueryAccountResponse> {
|
|
1447
|
-
const data = QueryAccountRequest.encode(request).finish();
|
|
1448
|
-
const promise = this.rpc.request(this.service, "Account", data);
|
|
1449
|
-
return promise.then((data) => QueryAccountResponse.decode(new BinaryReader(data)));
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
AccountAddressByID(request: QueryAccountAddressByIDRequest): Promise<QueryAccountAddressByIDResponse> {
|
|
1453
|
-
const data = QueryAccountAddressByIDRequest.encode(request).finish();
|
|
1454
|
-
const promise = this.rpc.request(this.service, "AccountAddressByID", data);
|
|
1455
|
-
return promise.then((data) => QueryAccountAddressByIDResponse.decode(new BinaryReader(data)));
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
Params(request: QueryParamsRequest): Promise<QueryParamsResponse> {
|
|
1459
|
-
const data = QueryParamsRequest.encode(request).finish();
|
|
1460
|
-
const promise = this.rpc.request(this.service, "Params", data);
|
|
1461
|
-
return promise.then((data) => QueryParamsResponse.decode(new BinaryReader(data)));
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
ModuleAccounts(request: QueryModuleAccountsRequest): Promise<QueryModuleAccountsResponse> {
|
|
1465
|
-
const data = QueryModuleAccountsRequest.encode(request).finish();
|
|
1466
|
-
const promise = this.rpc.request(this.service, "ModuleAccounts", data);
|
|
1467
|
-
return promise.then((data) => QueryModuleAccountsResponse.decode(new BinaryReader(data)));
|
|
1468
|
-
}
|
|
1469
|
-
|
|
1470
|
-
ModuleAccountByName(request: QueryModuleAccountByNameRequest): Promise<QueryModuleAccountByNameResponse> {
|
|
1471
|
-
const data = QueryModuleAccountByNameRequest.encode(request).finish();
|
|
1472
|
-
const promise = this.rpc.request(this.service, "ModuleAccountByName", data);
|
|
1473
|
-
return promise.then((data) => QueryModuleAccountByNameResponse.decode(new BinaryReader(data)));
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
Bech32Prefix(request: Bech32PrefixRequest): Promise<Bech32PrefixResponse> {
|
|
1477
|
-
const data = Bech32PrefixRequest.encode(request).finish();
|
|
1478
|
-
const promise = this.rpc.request(this.service, "Bech32Prefix", data);
|
|
1479
|
-
return promise.then((data) => Bech32PrefixResponse.decode(new BinaryReader(data)));
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
|
-
AddressBytesToString(request: AddressBytesToStringRequest): Promise<AddressBytesToStringResponse> {
|
|
1483
|
-
const data = AddressBytesToStringRequest.encode(request).finish();
|
|
1484
|
-
const promise = this.rpc.request(this.service, "AddressBytesToString", data);
|
|
1485
|
-
return promise.then((data) => AddressBytesToStringResponse.decode(new BinaryReader(data)));
|
|
1486
|
-
}
|
|
1487
|
-
|
|
1488
|
-
AddressStringToBytes(request: AddressStringToBytesRequest): Promise<AddressStringToBytesResponse> {
|
|
1489
|
-
const data = AddressStringToBytesRequest.encode(request).finish();
|
|
1490
|
-
const promise = this.rpc.request(this.service, "AddressStringToBytes", data);
|
|
1491
|
-
return promise.then((data) => AddressStringToBytesResponse.decode(new BinaryReader(data)));
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
AccountInfo(request: QueryAccountInfoRequest): Promise<QueryAccountInfoResponse> {
|
|
1495
|
-
const data = QueryAccountInfoRequest.encode(request).finish();
|
|
1496
|
-
const promise = this.rpc.request(this.service, "AccountInfo", data);
|
|
1497
|
-
return promise.then((data) => QueryAccountInfoResponse.decode(new BinaryReader(data)));
|
|
1498
|
-
}
|
|
1499
|
-
}
|
|
1500
|
-
|
|
1501
|
-
interface Rpc {
|
|
1502
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
function bytesFromBase64(b64: string): Uint8Array {
|
|
1506
|
-
if ((globalThis as any).Buffer) {
|
|
1507
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
1508
|
-
} else {
|
|
1509
|
-
const bin = globalThis.atob(b64);
|
|
1510
|
-
const arr = new Uint8Array(bin.length);
|
|
1511
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
1512
|
-
arr[i] = bin.charCodeAt(i);
|
|
1513
|
-
}
|
|
1514
|
-
return arr;
|
|
1515
|
-
}
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
|
-
function base64FromBytes(arr: Uint8Array): string {
|
|
1519
|
-
if ((globalThis as any).Buffer) {
|
|
1520
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
1521
|
-
} else {
|
|
1522
|
-
const bin: string[] = [];
|
|
1523
|
-
arr.forEach((byte) => {
|
|
1524
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
1525
|
-
});
|
|
1526
|
-
return globalThis.btoa(bin.join(""));
|
|
1527
|
-
}
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1531
|
-
|
|
1532
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
1533
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
1534
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
1535
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
1536
|
-
: Partial<T>;
|
|
1537
|
-
|
|
1538
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1539
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
1540
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
1541
|
-
|
|
1542
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
1543
|
-
const num = globalThis.Number(int64.toString());
|
|
1544
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
1545
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1546
|
-
}
|
|
1547
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
1548
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
1549
|
-
}
|
|
1550
|
-
return num;
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
|
-
function isSet(value: any): boolean {
|
|
1554
|
-
return value !== null && value !== undefined;
|
|
1555
|
-
}
|
|
1556
|
-
|
|
1557
|
-
export interface MessageFns<T> {
|
|
1558
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1559
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1560
|
-
fromJSON(object: any): T;
|
|
1561
|
-
toJSON(message: T): unknown;
|
|
1562
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
1563
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
1564
|
-
}
|