decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.33
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 +25 -25
- package/package.json +12 -1
- 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,819 +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/upgrade/v1beta1/query.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { ModuleVersion, Plan } from "./upgrade";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "cosmos.upgrade.v1beta1";
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC
|
|
15
|
-
* method.
|
|
16
|
-
*/
|
|
17
|
-
export interface QueryCurrentPlanRequest {
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC
|
|
22
|
-
* method.
|
|
23
|
-
*/
|
|
24
|
-
export interface QueryCurrentPlanResponse {
|
|
25
|
-
/** plan is the current upgrade plan. */
|
|
26
|
-
plan: Plan | undefined;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC
|
|
31
|
-
* method.
|
|
32
|
-
*/
|
|
33
|
-
export interface QueryAppliedPlanRequest {
|
|
34
|
-
/** name is the name of the applied plan to query for. */
|
|
35
|
-
name: string;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC
|
|
40
|
-
* method.
|
|
41
|
-
*/
|
|
42
|
-
export interface QueryAppliedPlanResponse {
|
|
43
|
-
/** height is the block height at which the plan was applied. */
|
|
44
|
-
height: number;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState
|
|
49
|
-
* RPC method.
|
|
50
|
-
*
|
|
51
|
-
* @deprecated
|
|
52
|
-
*/
|
|
53
|
-
export interface QueryUpgradedConsensusStateRequest {
|
|
54
|
-
/**
|
|
55
|
-
* last height of the current chain must be sent in request
|
|
56
|
-
* as this is the height under which next consensus state is stored
|
|
57
|
-
*/
|
|
58
|
-
lastHeight: number;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState
|
|
63
|
-
* RPC method.
|
|
64
|
-
*
|
|
65
|
-
* @deprecated
|
|
66
|
-
*/
|
|
67
|
-
export interface QueryUpgradedConsensusStateResponse {
|
|
68
|
-
/** Since: cosmos-sdk 0.43 */
|
|
69
|
-
upgradedConsensusState: Uint8Array;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* QueryModuleVersionsRequest is the request type for the Query/ModuleVersions
|
|
74
|
-
* RPC method.
|
|
75
|
-
*
|
|
76
|
-
* Since: cosmos-sdk 0.43
|
|
77
|
-
*/
|
|
78
|
-
export interface QueryModuleVersionsRequest {
|
|
79
|
-
/**
|
|
80
|
-
* module_name is a field to query a specific module
|
|
81
|
-
* consensus version from state. Leaving this empty will
|
|
82
|
-
* fetch the full list of module versions from state
|
|
83
|
-
*/
|
|
84
|
-
moduleName: string;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* QueryModuleVersionsResponse is the response type for the Query/ModuleVersions
|
|
89
|
-
* RPC method.
|
|
90
|
-
*
|
|
91
|
-
* Since: cosmos-sdk 0.43
|
|
92
|
-
*/
|
|
93
|
-
export interface QueryModuleVersionsResponse {
|
|
94
|
-
/** module_versions is a list of module names with their consensus versions. */
|
|
95
|
-
moduleVersions: ModuleVersion[];
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* QueryAuthorityRequest is the request type for Query/Authority
|
|
100
|
-
*
|
|
101
|
-
* Since: cosmos-sdk 0.46
|
|
102
|
-
*/
|
|
103
|
-
export interface QueryAuthorityRequest {
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* QueryAuthorityResponse is the response type for Query/Authority
|
|
108
|
-
*
|
|
109
|
-
* Since: cosmos-sdk 0.46
|
|
110
|
-
*/
|
|
111
|
-
export interface QueryAuthorityResponse {
|
|
112
|
-
address: string;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function createBaseQueryCurrentPlanRequest(): QueryCurrentPlanRequest {
|
|
116
|
-
return {};
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export const QueryCurrentPlanRequest: MessageFns<QueryCurrentPlanRequest> = {
|
|
120
|
-
encode(_: QueryCurrentPlanRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
121
|
-
return writer;
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanRequest {
|
|
125
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
126
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
127
|
-
const message = createBaseQueryCurrentPlanRequest();
|
|
128
|
-
while (reader.pos < end) {
|
|
129
|
-
const tag = reader.uint32();
|
|
130
|
-
switch (tag >>> 3) {
|
|
131
|
-
}
|
|
132
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
reader.skip(tag & 7);
|
|
136
|
-
}
|
|
137
|
-
return message;
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
fromJSON(_: any): QueryCurrentPlanRequest {
|
|
141
|
-
return {};
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
toJSON(_: QueryCurrentPlanRequest): unknown {
|
|
145
|
-
const obj: any = {};
|
|
146
|
-
return obj;
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
create<I extends Exact<DeepPartial<QueryCurrentPlanRequest>, I>>(base?: I): QueryCurrentPlanRequest {
|
|
150
|
-
return QueryCurrentPlanRequest.fromPartial(base ?? ({} as any));
|
|
151
|
-
},
|
|
152
|
-
fromPartial<I extends Exact<DeepPartial<QueryCurrentPlanRequest>, I>>(_: I): QueryCurrentPlanRequest {
|
|
153
|
-
const message = createBaseQueryCurrentPlanRequest();
|
|
154
|
-
return message;
|
|
155
|
-
},
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
function createBaseQueryCurrentPlanResponse(): QueryCurrentPlanResponse {
|
|
159
|
-
return { plan: undefined };
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export const QueryCurrentPlanResponse: MessageFns<QueryCurrentPlanResponse> = {
|
|
163
|
-
encode(message: QueryCurrentPlanResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
164
|
-
if (message.plan !== undefined) {
|
|
165
|
-
Plan.encode(message.plan, writer.uint32(10).fork()).join();
|
|
166
|
-
}
|
|
167
|
-
return writer;
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanResponse {
|
|
171
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
172
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
173
|
-
const message = createBaseQueryCurrentPlanResponse();
|
|
174
|
-
while (reader.pos < end) {
|
|
175
|
-
const tag = reader.uint32();
|
|
176
|
-
switch (tag >>> 3) {
|
|
177
|
-
case 1: {
|
|
178
|
-
if (tag !== 10) {
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
message.plan = Plan.decode(reader, reader.uint32());
|
|
183
|
-
continue;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
reader.skip(tag & 7);
|
|
190
|
-
}
|
|
191
|
-
return message;
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
fromJSON(object: any): QueryCurrentPlanResponse {
|
|
195
|
-
return { plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined };
|
|
196
|
-
},
|
|
197
|
-
|
|
198
|
-
toJSON(message: QueryCurrentPlanResponse): unknown {
|
|
199
|
-
const obj: any = {};
|
|
200
|
-
if (message.plan !== undefined) {
|
|
201
|
-
obj.plan = Plan.toJSON(message.plan);
|
|
202
|
-
}
|
|
203
|
-
return obj;
|
|
204
|
-
},
|
|
205
|
-
|
|
206
|
-
create<I extends Exact<DeepPartial<QueryCurrentPlanResponse>, I>>(base?: I): QueryCurrentPlanResponse {
|
|
207
|
-
return QueryCurrentPlanResponse.fromPartial(base ?? ({} as any));
|
|
208
|
-
},
|
|
209
|
-
fromPartial<I extends Exact<DeepPartial<QueryCurrentPlanResponse>, I>>(object: I): QueryCurrentPlanResponse {
|
|
210
|
-
const message = createBaseQueryCurrentPlanResponse();
|
|
211
|
-
message.plan = (object.plan !== undefined && object.plan !== null) ? Plan.fromPartial(object.plan) : undefined;
|
|
212
|
-
return message;
|
|
213
|
-
},
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
function createBaseQueryAppliedPlanRequest(): QueryAppliedPlanRequest {
|
|
217
|
-
return { name: "" };
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export const QueryAppliedPlanRequest: MessageFns<QueryAppliedPlanRequest> = {
|
|
221
|
-
encode(message: QueryAppliedPlanRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
222
|
-
if (message.name !== "") {
|
|
223
|
-
writer.uint32(10).string(message.name);
|
|
224
|
-
}
|
|
225
|
-
return writer;
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanRequest {
|
|
229
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
230
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
231
|
-
const message = createBaseQueryAppliedPlanRequest();
|
|
232
|
-
while (reader.pos < end) {
|
|
233
|
-
const tag = reader.uint32();
|
|
234
|
-
switch (tag >>> 3) {
|
|
235
|
-
case 1: {
|
|
236
|
-
if (tag !== 10) {
|
|
237
|
-
break;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
message.name = reader.string();
|
|
241
|
-
continue;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
245
|
-
break;
|
|
246
|
-
}
|
|
247
|
-
reader.skip(tag & 7);
|
|
248
|
-
}
|
|
249
|
-
return message;
|
|
250
|
-
},
|
|
251
|
-
|
|
252
|
-
fromJSON(object: any): QueryAppliedPlanRequest {
|
|
253
|
-
return { name: isSet(object.name) ? globalThis.String(object.name) : "" };
|
|
254
|
-
},
|
|
255
|
-
|
|
256
|
-
toJSON(message: QueryAppliedPlanRequest): unknown {
|
|
257
|
-
const obj: any = {};
|
|
258
|
-
if (message.name !== "") {
|
|
259
|
-
obj.name = message.name;
|
|
260
|
-
}
|
|
261
|
-
return obj;
|
|
262
|
-
},
|
|
263
|
-
|
|
264
|
-
create<I extends Exact<DeepPartial<QueryAppliedPlanRequest>, I>>(base?: I): QueryAppliedPlanRequest {
|
|
265
|
-
return QueryAppliedPlanRequest.fromPartial(base ?? ({} as any));
|
|
266
|
-
},
|
|
267
|
-
fromPartial<I extends Exact<DeepPartial<QueryAppliedPlanRequest>, I>>(object: I): QueryAppliedPlanRequest {
|
|
268
|
-
const message = createBaseQueryAppliedPlanRequest();
|
|
269
|
-
message.name = object.name ?? "";
|
|
270
|
-
return message;
|
|
271
|
-
},
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
function createBaseQueryAppliedPlanResponse(): QueryAppliedPlanResponse {
|
|
275
|
-
return { height: 0 };
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
export const QueryAppliedPlanResponse: MessageFns<QueryAppliedPlanResponse> = {
|
|
279
|
-
encode(message: QueryAppliedPlanResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
280
|
-
if (message.height !== 0) {
|
|
281
|
-
writer.uint32(8).int64(message.height);
|
|
282
|
-
}
|
|
283
|
-
return writer;
|
|
284
|
-
},
|
|
285
|
-
|
|
286
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanResponse {
|
|
287
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
288
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
289
|
-
const message = createBaseQueryAppliedPlanResponse();
|
|
290
|
-
while (reader.pos < end) {
|
|
291
|
-
const tag = reader.uint32();
|
|
292
|
-
switch (tag >>> 3) {
|
|
293
|
-
case 1: {
|
|
294
|
-
if (tag !== 8) {
|
|
295
|
-
break;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
message.height = longToNumber(reader.int64());
|
|
299
|
-
continue;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
303
|
-
break;
|
|
304
|
-
}
|
|
305
|
-
reader.skip(tag & 7);
|
|
306
|
-
}
|
|
307
|
-
return message;
|
|
308
|
-
},
|
|
309
|
-
|
|
310
|
-
fromJSON(object: any): QueryAppliedPlanResponse {
|
|
311
|
-
return { height: isSet(object.height) ? globalThis.Number(object.height) : 0 };
|
|
312
|
-
},
|
|
313
|
-
|
|
314
|
-
toJSON(message: QueryAppliedPlanResponse): unknown {
|
|
315
|
-
const obj: any = {};
|
|
316
|
-
if (message.height !== 0) {
|
|
317
|
-
obj.height = Math.round(message.height);
|
|
318
|
-
}
|
|
319
|
-
return obj;
|
|
320
|
-
},
|
|
321
|
-
|
|
322
|
-
create<I extends Exact<DeepPartial<QueryAppliedPlanResponse>, I>>(base?: I): QueryAppliedPlanResponse {
|
|
323
|
-
return QueryAppliedPlanResponse.fromPartial(base ?? ({} as any));
|
|
324
|
-
},
|
|
325
|
-
fromPartial<I extends Exact<DeepPartial<QueryAppliedPlanResponse>, I>>(object: I): QueryAppliedPlanResponse {
|
|
326
|
-
const message = createBaseQueryAppliedPlanResponse();
|
|
327
|
-
message.height = object.height ?? 0;
|
|
328
|
-
return message;
|
|
329
|
-
},
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
function createBaseQueryUpgradedConsensusStateRequest(): QueryUpgradedConsensusStateRequest {
|
|
333
|
-
return { lastHeight: 0 };
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
export const QueryUpgradedConsensusStateRequest: MessageFns<QueryUpgradedConsensusStateRequest> = {
|
|
337
|
-
encode(message: QueryUpgradedConsensusStateRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
338
|
-
if (message.lastHeight !== 0) {
|
|
339
|
-
writer.uint32(8).int64(message.lastHeight);
|
|
340
|
-
}
|
|
341
|
-
return writer;
|
|
342
|
-
},
|
|
343
|
-
|
|
344
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest {
|
|
345
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
346
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
347
|
-
const message = createBaseQueryUpgradedConsensusStateRequest();
|
|
348
|
-
while (reader.pos < end) {
|
|
349
|
-
const tag = reader.uint32();
|
|
350
|
-
switch (tag >>> 3) {
|
|
351
|
-
case 1: {
|
|
352
|
-
if (tag !== 8) {
|
|
353
|
-
break;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
message.lastHeight = longToNumber(reader.int64());
|
|
357
|
-
continue;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
361
|
-
break;
|
|
362
|
-
}
|
|
363
|
-
reader.skip(tag & 7);
|
|
364
|
-
}
|
|
365
|
-
return message;
|
|
366
|
-
},
|
|
367
|
-
|
|
368
|
-
fromJSON(object: any): QueryUpgradedConsensusStateRequest {
|
|
369
|
-
return { lastHeight: isSet(object.lastHeight) ? globalThis.Number(object.lastHeight) : 0 };
|
|
370
|
-
},
|
|
371
|
-
|
|
372
|
-
toJSON(message: QueryUpgradedConsensusStateRequest): unknown {
|
|
373
|
-
const obj: any = {};
|
|
374
|
-
if (message.lastHeight !== 0) {
|
|
375
|
-
obj.lastHeight = Math.round(message.lastHeight);
|
|
376
|
-
}
|
|
377
|
-
return obj;
|
|
378
|
-
},
|
|
379
|
-
|
|
380
|
-
create<I extends Exact<DeepPartial<QueryUpgradedConsensusStateRequest>, I>>(
|
|
381
|
-
base?: I,
|
|
382
|
-
): QueryUpgradedConsensusStateRequest {
|
|
383
|
-
return QueryUpgradedConsensusStateRequest.fromPartial(base ?? ({} as any));
|
|
384
|
-
},
|
|
385
|
-
fromPartial<I extends Exact<DeepPartial<QueryUpgradedConsensusStateRequest>, I>>(
|
|
386
|
-
object: I,
|
|
387
|
-
): QueryUpgradedConsensusStateRequest {
|
|
388
|
-
const message = createBaseQueryUpgradedConsensusStateRequest();
|
|
389
|
-
message.lastHeight = object.lastHeight ?? 0;
|
|
390
|
-
return message;
|
|
391
|
-
},
|
|
392
|
-
};
|
|
393
|
-
|
|
394
|
-
function createBaseQueryUpgradedConsensusStateResponse(): QueryUpgradedConsensusStateResponse {
|
|
395
|
-
return { upgradedConsensusState: new Uint8Array(0) };
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
export const QueryUpgradedConsensusStateResponse: MessageFns<QueryUpgradedConsensusStateResponse> = {
|
|
399
|
-
encode(message: QueryUpgradedConsensusStateResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
400
|
-
if (message.upgradedConsensusState.length !== 0) {
|
|
401
|
-
writer.uint32(18).bytes(message.upgradedConsensusState);
|
|
402
|
-
}
|
|
403
|
-
return writer;
|
|
404
|
-
},
|
|
405
|
-
|
|
406
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse {
|
|
407
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
408
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
409
|
-
const message = createBaseQueryUpgradedConsensusStateResponse();
|
|
410
|
-
while (reader.pos < end) {
|
|
411
|
-
const tag = reader.uint32();
|
|
412
|
-
switch (tag >>> 3) {
|
|
413
|
-
case 2: {
|
|
414
|
-
if (tag !== 18) {
|
|
415
|
-
break;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
message.upgradedConsensusState = reader.bytes();
|
|
419
|
-
continue;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
423
|
-
break;
|
|
424
|
-
}
|
|
425
|
-
reader.skip(tag & 7);
|
|
426
|
-
}
|
|
427
|
-
return message;
|
|
428
|
-
},
|
|
429
|
-
|
|
430
|
-
fromJSON(object: any): QueryUpgradedConsensusStateResponse {
|
|
431
|
-
return {
|
|
432
|
-
upgradedConsensusState: isSet(object.upgradedConsensusState)
|
|
433
|
-
? bytesFromBase64(object.upgradedConsensusState)
|
|
434
|
-
: new Uint8Array(0),
|
|
435
|
-
};
|
|
436
|
-
},
|
|
437
|
-
|
|
438
|
-
toJSON(message: QueryUpgradedConsensusStateResponse): unknown {
|
|
439
|
-
const obj: any = {};
|
|
440
|
-
if (message.upgradedConsensusState.length !== 0) {
|
|
441
|
-
obj.upgradedConsensusState = base64FromBytes(message.upgradedConsensusState);
|
|
442
|
-
}
|
|
443
|
-
return obj;
|
|
444
|
-
},
|
|
445
|
-
|
|
446
|
-
create<I extends Exact<DeepPartial<QueryUpgradedConsensusStateResponse>, I>>(
|
|
447
|
-
base?: I,
|
|
448
|
-
): QueryUpgradedConsensusStateResponse {
|
|
449
|
-
return QueryUpgradedConsensusStateResponse.fromPartial(base ?? ({} as any));
|
|
450
|
-
},
|
|
451
|
-
fromPartial<I extends Exact<DeepPartial<QueryUpgradedConsensusStateResponse>, I>>(
|
|
452
|
-
object: I,
|
|
453
|
-
): QueryUpgradedConsensusStateResponse {
|
|
454
|
-
const message = createBaseQueryUpgradedConsensusStateResponse();
|
|
455
|
-
message.upgradedConsensusState = object.upgradedConsensusState ?? new Uint8Array(0);
|
|
456
|
-
return message;
|
|
457
|
-
},
|
|
458
|
-
};
|
|
459
|
-
|
|
460
|
-
function createBaseQueryModuleVersionsRequest(): QueryModuleVersionsRequest {
|
|
461
|
-
return { moduleName: "" };
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
export const QueryModuleVersionsRequest: MessageFns<QueryModuleVersionsRequest> = {
|
|
465
|
-
encode(message: QueryModuleVersionsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
466
|
-
if (message.moduleName !== "") {
|
|
467
|
-
writer.uint32(10).string(message.moduleName);
|
|
468
|
-
}
|
|
469
|
-
return writer;
|
|
470
|
-
},
|
|
471
|
-
|
|
472
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsRequest {
|
|
473
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
474
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
475
|
-
const message = createBaseQueryModuleVersionsRequest();
|
|
476
|
-
while (reader.pos < end) {
|
|
477
|
-
const tag = reader.uint32();
|
|
478
|
-
switch (tag >>> 3) {
|
|
479
|
-
case 1: {
|
|
480
|
-
if (tag !== 10) {
|
|
481
|
-
break;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
message.moduleName = reader.string();
|
|
485
|
-
continue;
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
489
|
-
break;
|
|
490
|
-
}
|
|
491
|
-
reader.skip(tag & 7);
|
|
492
|
-
}
|
|
493
|
-
return message;
|
|
494
|
-
},
|
|
495
|
-
|
|
496
|
-
fromJSON(object: any): QueryModuleVersionsRequest {
|
|
497
|
-
return { moduleName: isSet(object.moduleName) ? globalThis.String(object.moduleName) : "" };
|
|
498
|
-
},
|
|
499
|
-
|
|
500
|
-
toJSON(message: QueryModuleVersionsRequest): unknown {
|
|
501
|
-
const obj: any = {};
|
|
502
|
-
if (message.moduleName !== "") {
|
|
503
|
-
obj.moduleName = message.moduleName;
|
|
504
|
-
}
|
|
505
|
-
return obj;
|
|
506
|
-
},
|
|
507
|
-
|
|
508
|
-
create<I extends Exact<DeepPartial<QueryModuleVersionsRequest>, I>>(base?: I): QueryModuleVersionsRequest {
|
|
509
|
-
return QueryModuleVersionsRequest.fromPartial(base ?? ({} as any));
|
|
510
|
-
},
|
|
511
|
-
fromPartial<I extends Exact<DeepPartial<QueryModuleVersionsRequest>, I>>(object: I): QueryModuleVersionsRequest {
|
|
512
|
-
const message = createBaseQueryModuleVersionsRequest();
|
|
513
|
-
message.moduleName = object.moduleName ?? "";
|
|
514
|
-
return message;
|
|
515
|
-
},
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
function createBaseQueryModuleVersionsResponse(): QueryModuleVersionsResponse {
|
|
519
|
-
return { moduleVersions: [] };
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
export const QueryModuleVersionsResponse: MessageFns<QueryModuleVersionsResponse> = {
|
|
523
|
-
encode(message: QueryModuleVersionsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
524
|
-
for (const v of message.moduleVersions) {
|
|
525
|
-
ModuleVersion.encode(v!, writer.uint32(10).fork()).join();
|
|
526
|
-
}
|
|
527
|
-
return writer;
|
|
528
|
-
},
|
|
529
|
-
|
|
530
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsResponse {
|
|
531
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
532
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
533
|
-
const message = createBaseQueryModuleVersionsResponse();
|
|
534
|
-
while (reader.pos < end) {
|
|
535
|
-
const tag = reader.uint32();
|
|
536
|
-
switch (tag >>> 3) {
|
|
537
|
-
case 1: {
|
|
538
|
-
if (tag !== 10) {
|
|
539
|
-
break;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
message.moduleVersions.push(ModuleVersion.decode(reader, reader.uint32()));
|
|
543
|
-
continue;
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
547
|
-
break;
|
|
548
|
-
}
|
|
549
|
-
reader.skip(tag & 7);
|
|
550
|
-
}
|
|
551
|
-
return message;
|
|
552
|
-
},
|
|
553
|
-
|
|
554
|
-
fromJSON(object: any): QueryModuleVersionsResponse {
|
|
555
|
-
return {
|
|
556
|
-
moduleVersions: globalThis.Array.isArray(object?.moduleVersions)
|
|
557
|
-
? object.moduleVersions.map((e: any) => ModuleVersion.fromJSON(e))
|
|
558
|
-
: [],
|
|
559
|
-
};
|
|
560
|
-
},
|
|
561
|
-
|
|
562
|
-
toJSON(message: QueryModuleVersionsResponse): unknown {
|
|
563
|
-
const obj: any = {};
|
|
564
|
-
if (message.moduleVersions?.length) {
|
|
565
|
-
obj.moduleVersions = message.moduleVersions.map((e) => ModuleVersion.toJSON(e));
|
|
566
|
-
}
|
|
567
|
-
return obj;
|
|
568
|
-
},
|
|
569
|
-
|
|
570
|
-
create<I extends Exact<DeepPartial<QueryModuleVersionsResponse>, I>>(base?: I): QueryModuleVersionsResponse {
|
|
571
|
-
return QueryModuleVersionsResponse.fromPartial(base ?? ({} as any));
|
|
572
|
-
},
|
|
573
|
-
fromPartial<I extends Exact<DeepPartial<QueryModuleVersionsResponse>, I>>(object: I): QueryModuleVersionsResponse {
|
|
574
|
-
const message = createBaseQueryModuleVersionsResponse();
|
|
575
|
-
message.moduleVersions = object.moduleVersions?.map((e) => ModuleVersion.fromPartial(e)) || [];
|
|
576
|
-
return message;
|
|
577
|
-
},
|
|
578
|
-
};
|
|
579
|
-
|
|
580
|
-
function createBaseQueryAuthorityRequest(): QueryAuthorityRequest {
|
|
581
|
-
return {};
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
export const QueryAuthorityRequest: MessageFns<QueryAuthorityRequest> = {
|
|
585
|
-
encode(_: QueryAuthorityRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
586
|
-
return writer;
|
|
587
|
-
},
|
|
588
|
-
|
|
589
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryAuthorityRequest {
|
|
590
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
591
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
592
|
-
const message = createBaseQueryAuthorityRequest();
|
|
593
|
-
while (reader.pos < end) {
|
|
594
|
-
const tag = reader.uint32();
|
|
595
|
-
switch (tag >>> 3) {
|
|
596
|
-
}
|
|
597
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
598
|
-
break;
|
|
599
|
-
}
|
|
600
|
-
reader.skip(tag & 7);
|
|
601
|
-
}
|
|
602
|
-
return message;
|
|
603
|
-
},
|
|
604
|
-
|
|
605
|
-
fromJSON(_: any): QueryAuthorityRequest {
|
|
606
|
-
return {};
|
|
607
|
-
},
|
|
608
|
-
|
|
609
|
-
toJSON(_: QueryAuthorityRequest): unknown {
|
|
610
|
-
const obj: any = {};
|
|
611
|
-
return obj;
|
|
612
|
-
},
|
|
613
|
-
|
|
614
|
-
create<I extends Exact<DeepPartial<QueryAuthorityRequest>, I>>(base?: I): QueryAuthorityRequest {
|
|
615
|
-
return QueryAuthorityRequest.fromPartial(base ?? ({} as any));
|
|
616
|
-
},
|
|
617
|
-
fromPartial<I extends Exact<DeepPartial<QueryAuthorityRequest>, I>>(_: I): QueryAuthorityRequest {
|
|
618
|
-
const message = createBaseQueryAuthorityRequest();
|
|
619
|
-
return message;
|
|
620
|
-
},
|
|
621
|
-
};
|
|
622
|
-
|
|
623
|
-
function createBaseQueryAuthorityResponse(): QueryAuthorityResponse {
|
|
624
|
-
return { address: "" };
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
export const QueryAuthorityResponse: MessageFns<QueryAuthorityResponse> = {
|
|
628
|
-
encode(message: QueryAuthorityResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
629
|
-
if (message.address !== "") {
|
|
630
|
-
writer.uint32(10).string(message.address);
|
|
631
|
-
}
|
|
632
|
-
return writer;
|
|
633
|
-
},
|
|
634
|
-
|
|
635
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryAuthorityResponse {
|
|
636
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
637
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
638
|
-
const message = createBaseQueryAuthorityResponse();
|
|
639
|
-
while (reader.pos < end) {
|
|
640
|
-
const tag = reader.uint32();
|
|
641
|
-
switch (tag >>> 3) {
|
|
642
|
-
case 1: {
|
|
643
|
-
if (tag !== 10) {
|
|
644
|
-
break;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
message.address = reader.string();
|
|
648
|
-
continue;
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
652
|
-
break;
|
|
653
|
-
}
|
|
654
|
-
reader.skip(tag & 7);
|
|
655
|
-
}
|
|
656
|
-
return message;
|
|
657
|
-
},
|
|
658
|
-
|
|
659
|
-
fromJSON(object: any): QueryAuthorityResponse {
|
|
660
|
-
return { address: isSet(object.address) ? globalThis.String(object.address) : "" };
|
|
661
|
-
},
|
|
662
|
-
|
|
663
|
-
toJSON(message: QueryAuthorityResponse): unknown {
|
|
664
|
-
const obj: any = {};
|
|
665
|
-
if (message.address !== "") {
|
|
666
|
-
obj.address = message.address;
|
|
667
|
-
}
|
|
668
|
-
return obj;
|
|
669
|
-
},
|
|
670
|
-
|
|
671
|
-
create<I extends Exact<DeepPartial<QueryAuthorityResponse>, I>>(base?: I): QueryAuthorityResponse {
|
|
672
|
-
return QueryAuthorityResponse.fromPartial(base ?? ({} as any));
|
|
673
|
-
},
|
|
674
|
-
fromPartial<I extends Exact<DeepPartial<QueryAuthorityResponse>, I>>(object: I): QueryAuthorityResponse {
|
|
675
|
-
const message = createBaseQueryAuthorityResponse();
|
|
676
|
-
message.address = object.address ?? "";
|
|
677
|
-
return message;
|
|
678
|
-
},
|
|
679
|
-
};
|
|
680
|
-
|
|
681
|
-
/** Query defines the gRPC upgrade querier service. */
|
|
682
|
-
export interface Query {
|
|
683
|
-
/** CurrentPlan queries the current upgrade plan. */
|
|
684
|
-
CurrentPlan(request: QueryCurrentPlanRequest): Promise<QueryCurrentPlanResponse>;
|
|
685
|
-
/** AppliedPlan queries a previously applied upgrade plan by its name. */
|
|
686
|
-
AppliedPlan(request: QueryAppliedPlanRequest): Promise<QueryAppliedPlanResponse>;
|
|
687
|
-
/**
|
|
688
|
-
* UpgradedConsensusState queries the consensus state that will serve
|
|
689
|
-
* as a trusted kernel for the next version of this chain. It will only be
|
|
690
|
-
* stored at the last height of this chain.
|
|
691
|
-
* UpgradedConsensusState RPC not supported with legacy querier
|
|
692
|
-
* This rpc is deprecated now that IBC has its own replacement
|
|
693
|
-
* (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54)
|
|
694
|
-
*
|
|
695
|
-
* @deprecated
|
|
696
|
-
*/
|
|
697
|
-
UpgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise<QueryUpgradedConsensusStateResponse>;
|
|
698
|
-
/**
|
|
699
|
-
* ModuleVersions queries the list of module versions from state.
|
|
700
|
-
*
|
|
701
|
-
* Since: cosmos-sdk 0.43
|
|
702
|
-
*/
|
|
703
|
-
ModuleVersions(request: QueryModuleVersionsRequest): Promise<QueryModuleVersionsResponse>;
|
|
704
|
-
/**
|
|
705
|
-
* Returns the account with authority to conduct upgrades
|
|
706
|
-
*
|
|
707
|
-
* Since: cosmos-sdk 0.46
|
|
708
|
-
*/
|
|
709
|
-
Authority(request: QueryAuthorityRequest): Promise<QueryAuthorityResponse>;
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
export const QueryServiceName = "cosmos.upgrade.v1beta1.Query";
|
|
713
|
-
export class QueryClientImpl implements Query {
|
|
714
|
-
private readonly rpc: Rpc;
|
|
715
|
-
private readonly service: string;
|
|
716
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
717
|
-
this.service = opts?.service || QueryServiceName;
|
|
718
|
-
this.rpc = rpc;
|
|
719
|
-
this.CurrentPlan = this.CurrentPlan.bind(this);
|
|
720
|
-
this.AppliedPlan = this.AppliedPlan.bind(this);
|
|
721
|
-
this.UpgradedConsensusState = this.UpgradedConsensusState.bind(this);
|
|
722
|
-
this.ModuleVersions = this.ModuleVersions.bind(this);
|
|
723
|
-
this.Authority = this.Authority.bind(this);
|
|
724
|
-
}
|
|
725
|
-
CurrentPlan(request: QueryCurrentPlanRequest): Promise<QueryCurrentPlanResponse> {
|
|
726
|
-
const data = QueryCurrentPlanRequest.encode(request).finish();
|
|
727
|
-
const promise = this.rpc.request(this.service, "CurrentPlan", data);
|
|
728
|
-
return promise.then((data) => QueryCurrentPlanResponse.decode(new BinaryReader(data)));
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
AppliedPlan(request: QueryAppliedPlanRequest): Promise<QueryAppliedPlanResponse> {
|
|
732
|
-
const data = QueryAppliedPlanRequest.encode(request).finish();
|
|
733
|
-
const promise = this.rpc.request(this.service, "AppliedPlan", data);
|
|
734
|
-
return promise.then((data) => QueryAppliedPlanResponse.decode(new BinaryReader(data)));
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
UpgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise<QueryUpgradedConsensusStateResponse> {
|
|
738
|
-
const data = QueryUpgradedConsensusStateRequest.encode(request).finish();
|
|
739
|
-
const promise = this.rpc.request(this.service, "UpgradedConsensusState", data);
|
|
740
|
-
return promise.then((data) => QueryUpgradedConsensusStateResponse.decode(new BinaryReader(data)));
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
ModuleVersions(request: QueryModuleVersionsRequest): Promise<QueryModuleVersionsResponse> {
|
|
744
|
-
const data = QueryModuleVersionsRequest.encode(request).finish();
|
|
745
|
-
const promise = this.rpc.request(this.service, "ModuleVersions", data);
|
|
746
|
-
return promise.then((data) => QueryModuleVersionsResponse.decode(new BinaryReader(data)));
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
Authority(request: QueryAuthorityRequest): Promise<QueryAuthorityResponse> {
|
|
750
|
-
const data = QueryAuthorityRequest.encode(request).finish();
|
|
751
|
-
const promise = this.rpc.request(this.service, "Authority", data);
|
|
752
|
-
return promise.then((data) => QueryAuthorityResponse.decode(new BinaryReader(data)));
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
interface Rpc {
|
|
757
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
function bytesFromBase64(b64: string): Uint8Array {
|
|
761
|
-
if ((globalThis as any).Buffer) {
|
|
762
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
763
|
-
} else {
|
|
764
|
-
const bin = globalThis.atob(b64);
|
|
765
|
-
const arr = new Uint8Array(bin.length);
|
|
766
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
767
|
-
arr[i] = bin.charCodeAt(i);
|
|
768
|
-
}
|
|
769
|
-
return arr;
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
function base64FromBytes(arr: Uint8Array): string {
|
|
774
|
-
if ((globalThis as any).Buffer) {
|
|
775
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
776
|
-
} else {
|
|
777
|
-
const bin: string[] = [];
|
|
778
|
-
arr.forEach((byte) => {
|
|
779
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
780
|
-
});
|
|
781
|
-
return globalThis.btoa(bin.join(""));
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
786
|
-
|
|
787
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
788
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
789
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
790
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
791
|
-
: Partial<T>;
|
|
792
|
-
|
|
793
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
794
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
795
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
796
|
-
|
|
797
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
798
|
-
const num = globalThis.Number(int64.toString());
|
|
799
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
800
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
801
|
-
}
|
|
802
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
803
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
804
|
-
}
|
|
805
|
-
return num;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
function isSet(value: any): boolean {
|
|
809
|
-
return value !== null && value !== undefined;
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
export interface MessageFns<T> {
|
|
813
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
814
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
815
|
-
fromJSON(object: any): T;
|
|
816
|
-
toJSON(message: T): unknown;
|
|
817
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
818
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
819
|
-
}
|