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,362 +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/circuit/v1/types.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
|
|
10
|
-
export const protobufPackage = "cosmos.circuit.v1";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Permissions are the permissions that an account has to trip
|
|
14
|
-
* or reset the circuit breaker.
|
|
15
|
-
*/
|
|
16
|
-
export interface Permissions {
|
|
17
|
-
/** level is the level of permissions granted to this account. */
|
|
18
|
-
level: Permissions_Level;
|
|
19
|
-
/**
|
|
20
|
-
* limit_type_urls is used with LEVEL_SOME_MSGS to limit the lists of Msg type
|
|
21
|
-
* URLs that the account can trip. It is an error to use limit_type_urls with
|
|
22
|
-
* a level other than LEVEL_SOME_MSGS.
|
|
23
|
-
*/
|
|
24
|
-
limitTypeUrls: string[];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/** Level is the permission level. */
|
|
28
|
-
export enum Permissions_Level {
|
|
29
|
-
/**
|
|
30
|
-
* LEVEL_NONE_UNSPECIFIED - LEVEL_NONE_UNSPECIFIED indicates that the account will have no circuit
|
|
31
|
-
* breaker permissions.
|
|
32
|
-
*/
|
|
33
|
-
LEVEL_NONE_UNSPECIFIED = 0,
|
|
34
|
-
/**
|
|
35
|
-
* LEVEL_SOME_MSGS - LEVEL_SOME_MSGS indicates that the account will have permission to
|
|
36
|
-
* trip or reset the circuit breaker for some Msg type URLs. If this level
|
|
37
|
-
* is chosen, a non-empty list of Msg type URLs must be provided in
|
|
38
|
-
* limit_type_urls.
|
|
39
|
-
*/
|
|
40
|
-
LEVEL_SOME_MSGS = 1,
|
|
41
|
-
/**
|
|
42
|
-
* LEVEL_ALL_MSGS - LEVEL_ALL_MSGS indicates that the account can trip or reset the circuit
|
|
43
|
-
* breaker for Msg's of all type URLs.
|
|
44
|
-
*/
|
|
45
|
-
LEVEL_ALL_MSGS = 2,
|
|
46
|
-
/**
|
|
47
|
-
* LEVEL_SUPER_ADMIN - LEVEL_SUPER_ADMIN indicates that the account can take all circuit breaker
|
|
48
|
-
* actions and can grant permissions to other accounts.
|
|
49
|
-
*/
|
|
50
|
-
LEVEL_SUPER_ADMIN = 3,
|
|
51
|
-
UNRECOGNIZED = -1,
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function permissions_LevelFromJSON(object: any): Permissions_Level {
|
|
55
|
-
switch (object) {
|
|
56
|
-
case 0:
|
|
57
|
-
case "LEVEL_NONE_UNSPECIFIED":
|
|
58
|
-
return Permissions_Level.LEVEL_NONE_UNSPECIFIED;
|
|
59
|
-
case 1:
|
|
60
|
-
case "LEVEL_SOME_MSGS":
|
|
61
|
-
return Permissions_Level.LEVEL_SOME_MSGS;
|
|
62
|
-
case 2:
|
|
63
|
-
case "LEVEL_ALL_MSGS":
|
|
64
|
-
return Permissions_Level.LEVEL_ALL_MSGS;
|
|
65
|
-
case 3:
|
|
66
|
-
case "LEVEL_SUPER_ADMIN":
|
|
67
|
-
return Permissions_Level.LEVEL_SUPER_ADMIN;
|
|
68
|
-
case -1:
|
|
69
|
-
case "UNRECOGNIZED":
|
|
70
|
-
default:
|
|
71
|
-
return Permissions_Level.UNRECOGNIZED;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function permissions_LevelToJSON(object: Permissions_Level): string {
|
|
76
|
-
switch (object) {
|
|
77
|
-
case Permissions_Level.LEVEL_NONE_UNSPECIFIED:
|
|
78
|
-
return "LEVEL_NONE_UNSPECIFIED";
|
|
79
|
-
case Permissions_Level.LEVEL_SOME_MSGS:
|
|
80
|
-
return "LEVEL_SOME_MSGS";
|
|
81
|
-
case Permissions_Level.LEVEL_ALL_MSGS:
|
|
82
|
-
return "LEVEL_ALL_MSGS";
|
|
83
|
-
case Permissions_Level.LEVEL_SUPER_ADMIN:
|
|
84
|
-
return "LEVEL_SUPER_ADMIN";
|
|
85
|
-
case Permissions_Level.UNRECOGNIZED:
|
|
86
|
-
default:
|
|
87
|
-
return "UNRECOGNIZED";
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/** GenesisAccountPermissions is the account permissions for the circuit breaker in genesis */
|
|
92
|
-
export interface GenesisAccountPermissions {
|
|
93
|
-
address: string;
|
|
94
|
-
permissions: Permissions | undefined;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/** GenesisState is the state that must be provided at genesis. */
|
|
98
|
-
export interface GenesisState {
|
|
99
|
-
accountPermissions: GenesisAccountPermissions[];
|
|
100
|
-
disabledTypeUrls: string[];
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
function createBasePermissions(): Permissions {
|
|
104
|
-
return { level: 0, limitTypeUrls: [] };
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export const Permissions: MessageFns<Permissions> = {
|
|
108
|
-
encode(message: Permissions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
109
|
-
if (message.level !== 0) {
|
|
110
|
-
writer.uint32(8).int32(message.level);
|
|
111
|
-
}
|
|
112
|
-
for (const v of message.limitTypeUrls) {
|
|
113
|
-
writer.uint32(18).string(v!);
|
|
114
|
-
}
|
|
115
|
-
return writer;
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Permissions {
|
|
119
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
120
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
121
|
-
const message = createBasePermissions();
|
|
122
|
-
while (reader.pos < end) {
|
|
123
|
-
const tag = reader.uint32();
|
|
124
|
-
switch (tag >>> 3) {
|
|
125
|
-
case 1: {
|
|
126
|
-
if (tag !== 8) {
|
|
127
|
-
break;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
message.level = reader.int32() as any;
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
case 2: {
|
|
134
|
-
if (tag !== 18) {
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
message.limitTypeUrls.push(reader.string());
|
|
139
|
-
continue;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
143
|
-
break;
|
|
144
|
-
}
|
|
145
|
-
reader.skip(tag & 7);
|
|
146
|
-
}
|
|
147
|
-
return message;
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
fromJSON(object: any): Permissions {
|
|
151
|
-
return {
|
|
152
|
-
level: isSet(object.level) ? permissions_LevelFromJSON(object.level) : 0,
|
|
153
|
-
limitTypeUrls: globalThis.Array.isArray(object?.limitTypeUrls)
|
|
154
|
-
? object.limitTypeUrls.map((e: any) => globalThis.String(e))
|
|
155
|
-
: [],
|
|
156
|
-
};
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
toJSON(message: Permissions): unknown {
|
|
160
|
-
const obj: any = {};
|
|
161
|
-
if (message.level !== 0) {
|
|
162
|
-
obj.level = permissions_LevelToJSON(message.level);
|
|
163
|
-
}
|
|
164
|
-
if (message.limitTypeUrls?.length) {
|
|
165
|
-
obj.limitTypeUrls = message.limitTypeUrls;
|
|
166
|
-
}
|
|
167
|
-
return obj;
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
create<I extends Exact<DeepPartial<Permissions>, I>>(base?: I): Permissions {
|
|
171
|
-
return Permissions.fromPartial(base ?? ({} as any));
|
|
172
|
-
},
|
|
173
|
-
fromPartial<I extends Exact<DeepPartial<Permissions>, I>>(object: I): Permissions {
|
|
174
|
-
const message = createBasePermissions();
|
|
175
|
-
message.level = object.level ?? 0;
|
|
176
|
-
message.limitTypeUrls = object.limitTypeUrls?.map((e) => e) || [];
|
|
177
|
-
return message;
|
|
178
|
-
},
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
function createBaseGenesisAccountPermissions(): GenesisAccountPermissions {
|
|
182
|
-
return { address: "", permissions: undefined };
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export const GenesisAccountPermissions: MessageFns<GenesisAccountPermissions> = {
|
|
186
|
-
encode(message: GenesisAccountPermissions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
187
|
-
if (message.address !== "") {
|
|
188
|
-
writer.uint32(10).string(message.address);
|
|
189
|
-
}
|
|
190
|
-
if (message.permissions !== undefined) {
|
|
191
|
-
Permissions.encode(message.permissions, writer.uint32(18).fork()).join();
|
|
192
|
-
}
|
|
193
|
-
return writer;
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GenesisAccountPermissions {
|
|
197
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
198
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
199
|
-
const message = createBaseGenesisAccountPermissions();
|
|
200
|
-
while (reader.pos < end) {
|
|
201
|
-
const tag = reader.uint32();
|
|
202
|
-
switch (tag >>> 3) {
|
|
203
|
-
case 1: {
|
|
204
|
-
if (tag !== 10) {
|
|
205
|
-
break;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
message.address = reader.string();
|
|
209
|
-
continue;
|
|
210
|
-
}
|
|
211
|
-
case 2: {
|
|
212
|
-
if (tag !== 18) {
|
|
213
|
-
break;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
message.permissions = Permissions.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): GenesisAccountPermissions {
|
|
229
|
-
return {
|
|
230
|
-
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
231
|
-
permissions: isSet(object.permissions) ? Permissions.fromJSON(object.permissions) : undefined,
|
|
232
|
-
};
|
|
233
|
-
},
|
|
234
|
-
|
|
235
|
-
toJSON(message: GenesisAccountPermissions): unknown {
|
|
236
|
-
const obj: any = {};
|
|
237
|
-
if (message.address !== "") {
|
|
238
|
-
obj.address = message.address;
|
|
239
|
-
}
|
|
240
|
-
if (message.permissions !== undefined) {
|
|
241
|
-
obj.permissions = Permissions.toJSON(message.permissions);
|
|
242
|
-
}
|
|
243
|
-
return obj;
|
|
244
|
-
},
|
|
245
|
-
|
|
246
|
-
create<I extends Exact<DeepPartial<GenesisAccountPermissions>, I>>(base?: I): GenesisAccountPermissions {
|
|
247
|
-
return GenesisAccountPermissions.fromPartial(base ?? ({} as any));
|
|
248
|
-
},
|
|
249
|
-
fromPartial<I extends Exact<DeepPartial<GenesisAccountPermissions>, I>>(object: I): GenesisAccountPermissions {
|
|
250
|
-
const message = createBaseGenesisAccountPermissions();
|
|
251
|
-
message.address = object.address ?? "";
|
|
252
|
-
message.permissions = (object.permissions !== undefined && object.permissions !== null)
|
|
253
|
-
? Permissions.fromPartial(object.permissions)
|
|
254
|
-
: undefined;
|
|
255
|
-
return message;
|
|
256
|
-
},
|
|
257
|
-
};
|
|
258
|
-
|
|
259
|
-
function createBaseGenesisState(): GenesisState {
|
|
260
|
-
return { accountPermissions: [], disabledTypeUrls: [] };
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
export const GenesisState: MessageFns<GenesisState> = {
|
|
264
|
-
encode(message: GenesisState, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
265
|
-
for (const v of message.accountPermissions) {
|
|
266
|
-
GenesisAccountPermissions.encode(v!, writer.uint32(10).fork()).join();
|
|
267
|
-
}
|
|
268
|
-
for (const v of message.disabledTypeUrls) {
|
|
269
|
-
writer.uint32(18).string(v!);
|
|
270
|
-
}
|
|
271
|
-
return writer;
|
|
272
|
-
},
|
|
273
|
-
|
|
274
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
|
|
275
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
276
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
277
|
-
const message = createBaseGenesisState();
|
|
278
|
-
while (reader.pos < end) {
|
|
279
|
-
const tag = reader.uint32();
|
|
280
|
-
switch (tag >>> 3) {
|
|
281
|
-
case 1: {
|
|
282
|
-
if (tag !== 10) {
|
|
283
|
-
break;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
message.accountPermissions.push(GenesisAccountPermissions.decode(reader, reader.uint32()));
|
|
287
|
-
continue;
|
|
288
|
-
}
|
|
289
|
-
case 2: {
|
|
290
|
-
if (tag !== 18) {
|
|
291
|
-
break;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
message.disabledTypeUrls.push(reader.string());
|
|
295
|
-
continue;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
299
|
-
break;
|
|
300
|
-
}
|
|
301
|
-
reader.skip(tag & 7);
|
|
302
|
-
}
|
|
303
|
-
return message;
|
|
304
|
-
},
|
|
305
|
-
|
|
306
|
-
fromJSON(object: any): GenesisState {
|
|
307
|
-
return {
|
|
308
|
-
accountPermissions: globalThis.Array.isArray(object?.accountPermissions)
|
|
309
|
-
? object.accountPermissions.map((e: any) => GenesisAccountPermissions.fromJSON(e))
|
|
310
|
-
: [],
|
|
311
|
-
disabledTypeUrls: globalThis.Array.isArray(object?.disabledTypeUrls)
|
|
312
|
-
? object.disabledTypeUrls.map((e: any) => globalThis.String(e))
|
|
313
|
-
: [],
|
|
314
|
-
};
|
|
315
|
-
},
|
|
316
|
-
|
|
317
|
-
toJSON(message: GenesisState): unknown {
|
|
318
|
-
const obj: any = {};
|
|
319
|
-
if (message.accountPermissions?.length) {
|
|
320
|
-
obj.accountPermissions = message.accountPermissions.map((e) => GenesisAccountPermissions.toJSON(e));
|
|
321
|
-
}
|
|
322
|
-
if (message.disabledTypeUrls?.length) {
|
|
323
|
-
obj.disabledTypeUrls = message.disabledTypeUrls;
|
|
324
|
-
}
|
|
325
|
-
return obj;
|
|
326
|
-
},
|
|
327
|
-
|
|
328
|
-
create<I extends Exact<DeepPartial<GenesisState>, I>>(base?: I): GenesisState {
|
|
329
|
-
return GenesisState.fromPartial(base ?? ({} as any));
|
|
330
|
-
},
|
|
331
|
-
fromPartial<I extends Exact<DeepPartial<GenesisState>, I>>(object: I): GenesisState {
|
|
332
|
-
const message = createBaseGenesisState();
|
|
333
|
-
message.accountPermissions = object.accountPermissions?.map((e) => GenesisAccountPermissions.fromPartial(e)) || [];
|
|
334
|
-
message.disabledTypeUrls = object.disabledTypeUrls?.map((e) => e) || [];
|
|
335
|
-
return message;
|
|
336
|
-
},
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
340
|
-
|
|
341
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
342
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
343
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
344
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
345
|
-
: Partial<T>;
|
|
346
|
-
|
|
347
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
348
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
349
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
350
|
-
|
|
351
|
-
function isSet(value: any): boolean {
|
|
352
|
-
return value !== null && value !== undefined;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
export interface MessageFns<T> {
|
|
356
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
357
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
358
|
-
fromJSON(object: any): T;
|
|
359
|
-
toJSON(message: T): unknown;
|
|
360
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
361
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
362
|
-
}
|
|
@@ -1,99 +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/consensus/module/v1/module.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
|
|
10
|
-
export const protobufPackage = "cosmos.consensus.module.v1";
|
|
11
|
-
|
|
12
|
-
/** Module is the config object of the consensus module. */
|
|
13
|
-
export interface Module {
|
|
14
|
-
/** authority defines the custom module authority. If not set, defaults to the governance module. */
|
|
15
|
-
authority: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function createBaseModule(): Module {
|
|
19
|
-
return { authority: "" };
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const Module: MessageFns<Module> = {
|
|
23
|
-
encode(message: Module, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
24
|
-
if (message.authority !== "") {
|
|
25
|
-
writer.uint32(10).string(message.authority);
|
|
26
|
-
}
|
|
27
|
-
return writer;
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Module {
|
|
31
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
32
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
33
|
-
const message = createBaseModule();
|
|
34
|
-
while (reader.pos < end) {
|
|
35
|
-
const tag = reader.uint32();
|
|
36
|
-
switch (tag >>> 3) {
|
|
37
|
-
case 1: {
|
|
38
|
-
if (tag !== 10) {
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
message.authority = reader.string();
|
|
43
|
-
continue;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
reader.skip(tag & 7);
|
|
50
|
-
}
|
|
51
|
-
return message;
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
fromJSON(object: any): Module {
|
|
55
|
-
return { authority: isSet(object.authority) ? globalThis.String(object.authority) : "" };
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
toJSON(message: Module): unknown {
|
|
59
|
-
const obj: any = {};
|
|
60
|
-
if (message.authority !== "") {
|
|
61
|
-
obj.authority = message.authority;
|
|
62
|
-
}
|
|
63
|
-
return obj;
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
create<I extends Exact<DeepPartial<Module>, I>>(base?: I): Module {
|
|
67
|
-
return Module.fromPartial(base ?? ({} as any));
|
|
68
|
-
},
|
|
69
|
-
fromPartial<I extends Exact<DeepPartial<Module>, I>>(object: I): Module {
|
|
70
|
-
const message = createBaseModule();
|
|
71
|
-
message.authority = object.authority ?? "";
|
|
72
|
-
return message;
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
77
|
-
|
|
78
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
79
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
80
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
81
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
82
|
-
: Partial<T>;
|
|
83
|
-
|
|
84
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
85
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
86
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
87
|
-
|
|
88
|
-
function isSet(value: any): boolean {
|
|
89
|
-
return value !== null && value !== undefined;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export interface MessageFns<T> {
|
|
93
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
94
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
95
|
-
fromJSON(object: any): T;
|
|
96
|
-
toJSON(message: T): unknown;
|
|
97
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
98
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
99
|
-
}
|
|
@@ -1,181 +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/consensus/v1/query.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { ConsensusParams } from "../../../tendermint/types/params";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "cosmos.consensus.v1";
|
|
12
|
-
|
|
13
|
-
/** Since: cosmos-sdk 0.47 */
|
|
14
|
-
|
|
15
|
-
/** QueryParamsRequest defines the request type for querying x/consensus parameters. */
|
|
16
|
-
export interface QueryParamsRequest {
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/** QueryParamsResponse defines the response type for querying x/consensus parameters. */
|
|
20
|
-
export interface QueryParamsResponse {
|
|
21
|
-
/**
|
|
22
|
-
* params are the tendermint consensus params stored in the consensus module.
|
|
23
|
-
* Please note that `params.version` is not populated in this response, it is
|
|
24
|
-
* tracked separately in the x/upgrade module.
|
|
25
|
-
*/
|
|
26
|
-
params: ConsensusParams | undefined;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function createBaseQueryParamsRequest(): QueryParamsRequest {
|
|
30
|
-
return {};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export const QueryParamsRequest: MessageFns<QueryParamsRequest> = {
|
|
34
|
-
encode(_: QueryParamsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
35
|
-
return writer;
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest {
|
|
39
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
40
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
41
|
-
const message = createBaseQueryParamsRequest();
|
|
42
|
-
while (reader.pos < end) {
|
|
43
|
-
const tag = reader.uint32();
|
|
44
|
-
switch (tag >>> 3) {
|
|
45
|
-
}
|
|
46
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
reader.skip(tag & 7);
|
|
50
|
-
}
|
|
51
|
-
return message;
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
fromJSON(_: any): QueryParamsRequest {
|
|
55
|
-
return {};
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
toJSON(_: QueryParamsRequest): unknown {
|
|
59
|
-
const obj: any = {};
|
|
60
|
-
return obj;
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
create<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(base?: I): QueryParamsRequest {
|
|
64
|
-
return QueryParamsRequest.fromPartial(base ?? ({} as any));
|
|
65
|
-
},
|
|
66
|
-
fromPartial<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(_: I): QueryParamsRequest {
|
|
67
|
-
const message = createBaseQueryParamsRequest();
|
|
68
|
-
return message;
|
|
69
|
-
},
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
function createBaseQueryParamsResponse(): QueryParamsResponse {
|
|
73
|
-
return { params: undefined };
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export const QueryParamsResponse: MessageFns<QueryParamsResponse> = {
|
|
77
|
-
encode(message: QueryParamsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
78
|
-
if (message.params !== undefined) {
|
|
79
|
-
ConsensusParams.encode(message.params, writer.uint32(10).fork()).join();
|
|
80
|
-
}
|
|
81
|
-
return writer;
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse {
|
|
85
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
86
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
87
|
-
const message = createBaseQueryParamsResponse();
|
|
88
|
-
while (reader.pos < end) {
|
|
89
|
-
const tag = reader.uint32();
|
|
90
|
-
switch (tag >>> 3) {
|
|
91
|
-
case 1: {
|
|
92
|
-
if (tag !== 10) {
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
message.params = ConsensusParams.decode(reader, reader.uint32());
|
|
97
|
-
continue;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
101
|
-
break;
|
|
102
|
-
}
|
|
103
|
-
reader.skip(tag & 7);
|
|
104
|
-
}
|
|
105
|
-
return message;
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
fromJSON(object: any): QueryParamsResponse {
|
|
109
|
-
return { params: isSet(object.params) ? ConsensusParams.fromJSON(object.params) : undefined };
|
|
110
|
-
},
|
|
111
|
-
|
|
112
|
-
toJSON(message: QueryParamsResponse): unknown {
|
|
113
|
-
const obj: any = {};
|
|
114
|
-
if (message.params !== undefined) {
|
|
115
|
-
obj.params = ConsensusParams.toJSON(message.params);
|
|
116
|
-
}
|
|
117
|
-
return obj;
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
create<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(base?: I): QueryParamsResponse {
|
|
121
|
-
return QueryParamsResponse.fromPartial(base ?? ({} as any));
|
|
122
|
-
},
|
|
123
|
-
fromPartial<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(object: I): QueryParamsResponse {
|
|
124
|
-
const message = createBaseQueryParamsResponse();
|
|
125
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
126
|
-
? ConsensusParams.fromPartial(object.params)
|
|
127
|
-
: undefined;
|
|
128
|
-
return message;
|
|
129
|
-
},
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
/** Query defines the gRPC querier service. */
|
|
133
|
-
export interface Query {
|
|
134
|
-
/** Params queries the parameters of x/consensus module. */
|
|
135
|
-
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export const QueryServiceName = "cosmos.consensus.v1.Query";
|
|
139
|
-
export class QueryClientImpl implements Query {
|
|
140
|
-
private readonly rpc: Rpc;
|
|
141
|
-
private readonly service: string;
|
|
142
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
143
|
-
this.service = opts?.service || QueryServiceName;
|
|
144
|
-
this.rpc = rpc;
|
|
145
|
-
this.Params = this.Params.bind(this);
|
|
146
|
-
}
|
|
147
|
-
Params(request: QueryParamsRequest): Promise<QueryParamsResponse> {
|
|
148
|
-
const data = QueryParamsRequest.encode(request).finish();
|
|
149
|
-
const promise = this.rpc.request(this.service, "Params", data);
|
|
150
|
-
return promise.then((data) => QueryParamsResponse.decode(new BinaryReader(data)));
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
interface Rpc {
|
|
155
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
159
|
-
|
|
160
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
161
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
162
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
163
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
164
|
-
: Partial<T>;
|
|
165
|
-
|
|
166
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
167
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
168
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
169
|
-
|
|
170
|
-
function isSet(value: any): boolean {
|
|
171
|
-
return value !== null && value !== undefined;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export interface MessageFns<T> {
|
|
175
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
176
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
177
|
-
fromJSON(object: any): T;
|
|
178
|
-
toJSON(message: T): unknown;
|
|
179
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
180
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
181
|
-
}
|