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,738 +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/gov/v1beta1/tx.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Any } from "../../../google/protobuf/any";
|
|
10
|
-
import { Coin } from "../../base/v1beta1/coin";
|
|
11
|
-
import { VoteOption, voteOptionFromJSON, voteOptionToJSON, WeightedVoteOption } from "./gov";
|
|
12
|
-
|
|
13
|
-
export const protobufPackage = "cosmos.gov.v1beta1";
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
|
|
17
|
-
* proposal Content.
|
|
18
|
-
*/
|
|
19
|
-
export interface MsgSubmitProposal {
|
|
20
|
-
/** content is the proposal's content. */
|
|
21
|
-
content:
|
|
22
|
-
| Any
|
|
23
|
-
| undefined;
|
|
24
|
-
/** initial_deposit is the deposit value that must be paid at proposal submission. */
|
|
25
|
-
initialDeposit: Coin[];
|
|
26
|
-
/** proposer is the account address of the proposer. */
|
|
27
|
-
proposer: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
|
|
31
|
-
export interface MsgSubmitProposalResponse {
|
|
32
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
33
|
-
proposalId: number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/** MsgVote defines a message to cast a vote. */
|
|
37
|
-
export interface MsgVote {
|
|
38
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
39
|
-
proposalId: number;
|
|
40
|
-
/** voter is the voter address for the proposal. */
|
|
41
|
-
voter: string;
|
|
42
|
-
/** option defines the vote option. */
|
|
43
|
-
option: VoteOption;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/** MsgVoteResponse defines the Msg/Vote response type. */
|
|
47
|
-
export interface MsgVoteResponse {
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* MsgVoteWeighted defines a message to cast a vote.
|
|
52
|
-
*
|
|
53
|
-
* Since: cosmos-sdk 0.43
|
|
54
|
-
*/
|
|
55
|
-
export interface MsgVoteWeighted {
|
|
56
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
57
|
-
proposalId: number;
|
|
58
|
-
/** voter is the voter address for the proposal. */
|
|
59
|
-
voter: string;
|
|
60
|
-
/** options defines the weighted vote options. */
|
|
61
|
-
options: WeightedVoteOption[];
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
|
|
66
|
-
*
|
|
67
|
-
* Since: cosmos-sdk 0.43
|
|
68
|
-
*/
|
|
69
|
-
export interface MsgVoteWeightedResponse {
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/** MsgDeposit defines a message to submit a deposit to an existing proposal. */
|
|
73
|
-
export interface MsgDeposit {
|
|
74
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
75
|
-
proposalId: number;
|
|
76
|
-
/** depositor defines the deposit addresses from the proposals. */
|
|
77
|
-
depositor: string;
|
|
78
|
-
/** amount to be deposited by depositor. */
|
|
79
|
-
amount: Coin[];
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/** MsgDepositResponse defines the Msg/Deposit response type. */
|
|
83
|
-
export interface MsgDepositResponse {
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function createBaseMsgSubmitProposal(): MsgSubmitProposal {
|
|
87
|
-
return { content: undefined, initialDeposit: [], proposer: "" };
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export const MsgSubmitProposal: MessageFns<MsgSubmitProposal> = {
|
|
91
|
-
encode(message: MsgSubmitProposal, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
92
|
-
if (message.content !== undefined) {
|
|
93
|
-
Any.encode(message.content, writer.uint32(10).fork()).join();
|
|
94
|
-
}
|
|
95
|
-
for (const v of message.initialDeposit) {
|
|
96
|
-
Coin.encode(v!, writer.uint32(18).fork()).join();
|
|
97
|
-
}
|
|
98
|
-
if (message.proposer !== "") {
|
|
99
|
-
writer.uint32(26).string(message.proposer);
|
|
100
|
-
}
|
|
101
|
-
return writer;
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal {
|
|
105
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
106
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
107
|
-
const message = createBaseMsgSubmitProposal();
|
|
108
|
-
while (reader.pos < end) {
|
|
109
|
-
const tag = reader.uint32();
|
|
110
|
-
switch (tag >>> 3) {
|
|
111
|
-
case 1: {
|
|
112
|
-
if (tag !== 10) {
|
|
113
|
-
break;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
message.content = Any.decode(reader, reader.uint32());
|
|
117
|
-
continue;
|
|
118
|
-
}
|
|
119
|
-
case 2: {
|
|
120
|
-
if (tag !== 18) {
|
|
121
|
-
break;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
message.initialDeposit.push(Coin.decode(reader, reader.uint32()));
|
|
125
|
-
continue;
|
|
126
|
-
}
|
|
127
|
-
case 3: {
|
|
128
|
-
if (tag !== 26) {
|
|
129
|
-
break;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
message.proposer = reader.string();
|
|
133
|
-
continue;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
137
|
-
break;
|
|
138
|
-
}
|
|
139
|
-
reader.skip(tag & 7);
|
|
140
|
-
}
|
|
141
|
-
return message;
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
fromJSON(object: any): MsgSubmitProposal {
|
|
145
|
-
return {
|
|
146
|
-
content: isSet(object.content) ? Any.fromJSON(object.content) : undefined,
|
|
147
|
-
initialDeposit: globalThis.Array.isArray(object?.initialDeposit)
|
|
148
|
-
? object.initialDeposit.map((e: any) => Coin.fromJSON(e))
|
|
149
|
-
: [],
|
|
150
|
-
proposer: isSet(object.proposer) ? globalThis.String(object.proposer) : "",
|
|
151
|
-
};
|
|
152
|
-
},
|
|
153
|
-
|
|
154
|
-
toJSON(message: MsgSubmitProposal): unknown {
|
|
155
|
-
const obj: any = {};
|
|
156
|
-
if (message.content !== undefined) {
|
|
157
|
-
obj.content = Any.toJSON(message.content);
|
|
158
|
-
}
|
|
159
|
-
if (message.initialDeposit?.length) {
|
|
160
|
-
obj.initialDeposit = message.initialDeposit.map((e) => Coin.toJSON(e));
|
|
161
|
-
}
|
|
162
|
-
if (message.proposer !== "") {
|
|
163
|
-
obj.proposer = message.proposer;
|
|
164
|
-
}
|
|
165
|
-
return obj;
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
create<I extends Exact<DeepPartial<MsgSubmitProposal>, I>>(base?: I): MsgSubmitProposal {
|
|
169
|
-
return MsgSubmitProposal.fromPartial(base ?? ({} as any));
|
|
170
|
-
},
|
|
171
|
-
fromPartial<I extends Exact<DeepPartial<MsgSubmitProposal>, I>>(object: I): MsgSubmitProposal {
|
|
172
|
-
const message = createBaseMsgSubmitProposal();
|
|
173
|
-
message.content = (object.content !== undefined && object.content !== null)
|
|
174
|
-
? Any.fromPartial(object.content)
|
|
175
|
-
: undefined;
|
|
176
|
-
message.initialDeposit = object.initialDeposit?.map((e) => Coin.fromPartial(e)) || [];
|
|
177
|
-
message.proposer = object.proposer ?? "";
|
|
178
|
-
return message;
|
|
179
|
-
},
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
function createBaseMsgSubmitProposalResponse(): MsgSubmitProposalResponse {
|
|
183
|
-
return { proposalId: 0 };
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export const MsgSubmitProposalResponse: MessageFns<MsgSubmitProposalResponse> = {
|
|
187
|
-
encode(message: MsgSubmitProposalResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
188
|
-
if (message.proposalId !== 0) {
|
|
189
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
190
|
-
}
|
|
191
|
-
return writer;
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse {
|
|
195
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
196
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
197
|
-
const message = createBaseMsgSubmitProposalResponse();
|
|
198
|
-
while (reader.pos < end) {
|
|
199
|
-
const tag = reader.uint32();
|
|
200
|
-
switch (tag >>> 3) {
|
|
201
|
-
case 1: {
|
|
202
|
-
if (tag !== 8) {
|
|
203
|
-
break;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
207
|
-
continue;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
211
|
-
break;
|
|
212
|
-
}
|
|
213
|
-
reader.skip(tag & 7);
|
|
214
|
-
}
|
|
215
|
-
return message;
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
fromJSON(object: any): MsgSubmitProposalResponse {
|
|
219
|
-
return { proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0 };
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
toJSON(message: MsgSubmitProposalResponse): unknown {
|
|
223
|
-
const obj: any = {};
|
|
224
|
-
if (message.proposalId !== 0) {
|
|
225
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
226
|
-
}
|
|
227
|
-
return obj;
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
create<I extends Exact<DeepPartial<MsgSubmitProposalResponse>, I>>(base?: I): MsgSubmitProposalResponse {
|
|
231
|
-
return MsgSubmitProposalResponse.fromPartial(base ?? ({} as any));
|
|
232
|
-
},
|
|
233
|
-
fromPartial<I extends Exact<DeepPartial<MsgSubmitProposalResponse>, I>>(object: I): MsgSubmitProposalResponse {
|
|
234
|
-
const message = createBaseMsgSubmitProposalResponse();
|
|
235
|
-
message.proposalId = object.proposalId ?? 0;
|
|
236
|
-
return message;
|
|
237
|
-
},
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
function createBaseMsgVote(): MsgVote {
|
|
241
|
-
return { proposalId: 0, voter: "", option: 0 };
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
export const MsgVote: MessageFns<MsgVote> = {
|
|
245
|
-
encode(message: MsgVote, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
246
|
-
if (message.proposalId !== 0) {
|
|
247
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
248
|
-
}
|
|
249
|
-
if (message.voter !== "") {
|
|
250
|
-
writer.uint32(18).string(message.voter);
|
|
251
|
-
}
|
|
252
|
-
if (message.option !== 0) {
|
|
253
|
-
writer.uint32(24).int32(message.option);
|
|
254
|
-
}
|
|
255
|
-
return writer;
|
|
256
|
-
},
|
|
257
|
-
|
|
258
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgVote {
|
|
259
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
260
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
261
|
-
const message = createBaseMsgVote();
|
|
262
|
-
while (reader.pos < end) {
|
|
263
|
-
const tag = reader.uint32();
|
|
264
|
-
switch (tag >>> 3) {
|
|
265
|
-
case 1: {
|
|
266
|
-
if (tag !== 8) {
|
|
267
|
-
break;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
271
|
-
continue;
|
|
272
|
-
}
|
|
273
|
-
case 2: {
|
|
274
|
-
if (tag !== 18) {
|
|
275
|
-
break;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
message.voter = reader.string();
|
|
279
|
-
continue;
|
|
280
|
-
}
|
|
281
|
-
case 3: {
|
|
282
|
-
if (tag !== 24) {
|
|
283
|
-
break;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
message.option = reader.int32() as any;
|
|
287
|
-
continue;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
291
|
-
break;
|
|
292
|
-
}
|
|
293
|
-
reader.skip(tag & 7);
|
|
294
|
-
}
|
|
295
|
-
return message;
|
|
296
|
-
},
|
|
297
|
-
|
|
298
|
-
fromJSON(object: any): MsgVote {
|
|
299
|
-
return {
|
|
300
|
-
proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0,
|
|
301
|
-
voter: isSet(object.voter) ? globalThis.String(object.voter) : "",
|
|
302
|
-
option: isSet(object.option) ? voteOptionFromJSON(object.option) : 0,
|
|
303
|
-
};
|
|
304
|
-
},
|
|
305
|
-
|
|
306
|
-
toJSON(message: MsgVote): unknown {
|
|
307
|
-
const obj: any = {};
|
|
308
|
-
if (message.proposalId !== 0) {
|
|
309
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
310
|
-
}
|
|
311
|
-
if (message.voter !== "") {
|
|
312
|
-
obj.voter = message.voter;
|
|
313
|
-
}
|
|
314
|
-
if (message.option !== 0) {
|
|
315
|
-
obj.option = voteOptionToJSON(message.option);
|
|
316
|
-
}
|
|
317
|
-
return obj;
|
|
318
|
-
},
|
|
319
|
-
|
|
320
|
-
create<I extends Exact<DeepPartial<MsgVote>, I>>(base?: I): MsgVote {
|
|
321
|
-
return MsgVote.fromPartial(base ?? ({} as any));
|
|
322
|
-
},
|
|
323
|
-
fromPartial<I extends Exact<DeepPartial<MsgVote>, I>>(object: I): MsgVote {
|
|
324
|
-
const message = createBaseMsgVote();
|
|
325
|
-
message.proposalId = object.proposalId ?? 0;
|
|
326
|
-
message.voter = object.voter ?? "";
|
|
327
|
-
message.option = object.option ?? 0;
|
|
328
|
-
return message;
|
|
329
|
-
},
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
function createBaseMsgVoteResponse(): MsgVoteResponse {
|
|
333
|
-
return {};
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
export const MsgVoteResponse: MessageFns<MsgVoteResponse> = {
|
|
337
|
-
encode(_: MsgVoteResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
338
|
-
return writer;
|
|
339
|
-
},
|
|
340
|
-
|
|
341
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse {
|
|
342
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
343
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
344
|
-
const message = createBaseMsgVoteResponse();
|
|
345
|
-
while (reader.pos < end) {
|
|
346
|
-
const tag = reader.uint32();
|
|
347
|
-
switch (tag >>> 3) {
|
|
348
|
-
}
|
|
349
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
350
|
-
break;
|
|
351
|
-
}
|
|
352
|
-
reader.skip(tag & 7);
|
|
353
|
-
}
|
|
354
|
-
return message;
|
|
355
|
-
},
|
|
356
|
-
|
|
357
|
-
fromJSON(_: any): MsgVoteResponse {
|
|
358
|
-
return {};
|
|
359
|
-
},
|
|
360
|
-
|
|
361
|
-
toJSON(_: MsgVoteResponse): unknown {
|
|
362
|
-
const obj: any = {};
|
|
363
|
-
return obj;
|
|
364
|
-
},
|
|
365
|
-
|
|
366
|
-
create<I extends Exact<DeepPartial<MsgVoteResponse>, I>>(base?: I): MsgVoteResponse {
|
|
367
|
-
return MsgVoteResponse.fromPartial(base ?? ({} as any));
|
|
368
|
-
},
|
|
369
|
-
fromPartial<I extends Exact<DeepPartial<MsgVoteResponse>, I>>(_: I): MsgVoteResponse {
|
|
370
|
-
const message = createBaseMsgVoteResponse();
|
|
371
|
-
return message;
|
|
372
|
-
},
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
function createBaseMsgVoteWeighted(): MsgVoteWeighted {
|
|
376
|
-
return { proposalId: 0, voter: "", options: [] };
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
export const MsgVoteWeighted: MessageFns<MsgVoteWeighted> = {
|
|
380
|
-
encode(message: MsgVoteWeighted, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
381
|
-
if (message.proposalId !== 0) {
|
|
382
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
383
|
-
}
|
|
384
|
-
if (message.voter !== "") {
|
|
385
|
-
writer.uint32(18).string(message.voter);
|
|
386
|
-
}
|
|
387
|
-
for (const v of message.options) {
|
|
388
|
-
WeightedVoteOption.encode(v!, writer.uint32(26).fork()).join();
|
|
389
|
-
}
|
|
390
|
-
return writer;
|
|
391
|
-
},
|
|
392
|
-
|
|
393
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted {
|
|
394
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
395
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
396
|
-
const message = createBaseMsgVoteWeighted();
|
|
397
|
-
while (reader.pos < end) {
|
|
398
|
-
const tag = reader.uint32();
|
|
399
|
-
switch (tag >>> 3) {
|
|
400
|
-
case 1: {
|
|
401
|
-
if (tag !== 8) {
|
|
402
|
-
break;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
406
|
-
continue;
|
|
407
|
-
}
|
|
408
|
-
case 2: {
|
|
409
|
-
if (tag !== 18) {
|
|
410
|
-
break;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
message.voter = reader.string();
|
|
414
|
-
continue;
|
|
415
|
-
}
|
|
416
|
-
case 3: {
|
|
417
|
-
if (tag !== 26) {
|
|
418
|
-
break;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
message.options.push(WeightedVoteOption.decode(reader, reader.uint32()));
|
|
422
|
-
continue;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
426
|
-
break;
|
|
427
|
-
}
|
|
428
|
-
reader.skip(tag & 7);
|
|
429
|
-
}
|
|
430
|
-
return message;
|
|
431
|
-
},
|
|
432
|
-
|
|
433
|
-
fromJSON(object: any): MsgVoteWeighted {
|
|
434
|
-
return {
|
|
435
|
-
proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0,
|
|
436
|
-
voter: isSet(object.voter) ? globalThis.String(object.voter) : "",
|
|
437
|
-
options: globalThis.Array.isArray(object?.options)
|
|
438
|
-
? object.options.map((e: any) => WeightedVoteOption.fromJSON(e))
|
|
439
|
-
: [],
|
|
440
|
-
};
|
|
441
|
-
},
|
|
442
|
-
|
|
443
|
-
toJSON(message: MsgVoteWeighted): unknown {
|
|
444
|
-
const obj: any = {};
|
|
445
|
-
if (message.proposalId !== 0) {
|
|
446
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
447
|
-
}
|
|
448
|
-
if (message.voter !== "") {
|
|
449
|
-
obj.voter = message.voter;
|
|
450
|
-
}
|
|
451
|
-
if (message.options?.length) {
|
|
452
|
-
obj.options = message.options.map((e) => WeightedVoteOption.toJSON(e));
|
|
453
|
-
}
|
|
454
|
-
return obj;
|
|
455
|
-
},
|
|
456
|
-
|
|
457
|
-
create<I extends Exact<DeepPartial<MsgVoteWeighted>, I>>(base?: I): MsgVoteWeighted {
|
|
458
|
-
return MsgVoteWeighted.fromPartial(base ?? ({} as any));
|
|
459
|
-
},
|
|
460
|
-
fromPartial<I extends Exact<DeepPartial<MsgVoteWeighted>, I>>(object: I): MsgVoteWeighted {
|
|
461
|
-
const message = createBaseMsgVoteWeighted();
|
|
462
|
-
message.proposalId = object.proposalId ?? 0;
|
|
463
|
-
message.voter = object.voter ?? "";
|
|
464
|
-
message.options = object.options?.map((e) => WeightedVoteOption.fromPartial(e)) || [];
|
|
465
|
-
return message;
|
|
466
|
-
},
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
function createBaseMsgVoteWeightedResponse(): MsgVoteWeightedResponse {
|
|
470
|
-
return {};
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
export const MsgVoteWeightedResponse: MessageFns<MsgVoteWeightedResponse> = {
|
|
474
|
-
encode(_: MsgVoteWeightedResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
475
|
-
return writer;
|
|
476
|
-
},
|
|
477
|
-
|
|
478
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse {
|
|
479
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
480
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
481
|
-
const message = createBaseMsgVoteWeightedResponse();
|
|
482
|
-
while (reader.pos < end) {
|
|
483
|
-
const tag = reader.uint32();
|
|
484
|
-
switch (tag >>> 3) {
|
|
485
|
-
}
|
|
486
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
487
|
-
break;
|
|
488
|
-
}
|
|
489
|
-
reader.skip(tag & 7);
|
|
490
|
-
}
|
|
491
|
-
return message;
|
|
492
|
-
},
|
|
493
|
-
|
|
494
|
-
fromJSON(_: any): MsgVoteWeightedResponse {
|
|
495
|
-
return {};
|
|
496
|
-
},
|
|
497
|
-
|
|
498
|
-
toJSON(_: MsgVoteWeightedResponse): unknown {
|
|
499
|
-
const obj: any = {};
|
|
500
|
-
return obj;
|
|
501
|
-
},
|
|
502
|
-
|
|
503
|
-
create<I extends Exact<DeepPartial<MsgVoteWeightedResponse>, I>>(base?: I): MsgVoteWeightedResponse {
|
|
504
|
-
return MsgVoteWeightedResponse.fromPartial(base ?? ({} as any));
|
|
505
|
-
},
|
|
506
|
-
fromPartial<I extends Exact<DeepPartial<MsgVoteWeightedResponse>, I>>(_: I): MsgVoteWeightedResponse {
|
|
507
|
-
const message = createBaseMsgVoteWeightedResponse();
|
|
508
|
-
return message;
|
|
509
|
-
},
|
|
510
|
-
};
|
|
511
|
-
|
|
512
|
-
function createBaseMsgDeposit(): MsgDeposit {
|
|
513
|
-
return { proposalId: 0, depositor: "", amount: [] };
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
export const MsgDeposit: MessageFns<MsgDeposit> = {
|
|
517
|
-
encode(message: MsgDeposit, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
518
|
-
if (message.proposalId !== 0) {
|
|
519
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
520
|
-
}
|
|
521
|
-
if (message.depositor !== "") {
|
|
522
|
-
writer.uint32(18).string(message.depositor);
|
|
523
|
-
}
|
|
524
|
-
for (const v of message.amount) {
|
|
525
|
-
Coin.encode(v!, writer.uint32(26).fork()).join();
|
|
526
|
-
}
|
|
527
|
-
return writer;
|
|
528
|
-
},
|
|
529
|
-
|
|
530
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit {
|
|
531
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
532
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
533
|
-
const message = createBaseMsgDeposit();
|
|
534
|
-
while (reader.pos < end) {
|
|
535
|
-
const tag = reader.uint32();
|
|
536
|
-
switch (tag >>> 3) {
|
|
537
|
-
case 1: {
|
|
538
|
-
if (tag !== 8) {
|
|
539
|
-
break;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
543
|
-
continue;
|
|
544
|
-
}
|
|
545
|
-
case 2: {
|
|
546
|
-
if (tag !== 18) {
|
|
547
|
-
break;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
message.depositor = reader.string();
|
|
551
|
-
continue;
|
|
552
|
-
}
|
|
553
|
-
case 3: {
|
|
554
|
-
if (tag !== 26) {
|
|
555
|
-
break;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
559
|
-
continue;
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
563
|
-
break;
|
|
564
|
-
}
|
|
565
|
-
reader.skip(tag & 7);
|
|
566
|
-
}
|
|
567
|
-
return message;
|
|
568
|
-
},
|
|
569
|
-
|
|
570
|
-
fromJSON(object: any): MsgDeposit {
|
|
571
|
-
return {
|
|
572
|
-
proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0,
|
|
573
|
-
depositor: isSet(object.depositor) ? globalThis.String(object.depositor) : "",
|
|
574
|
-
amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [],
|
|
575
|
-
};
|
|
576
|
-
},
|
|
577
|
-
|
|
578
|
-
toJSON(message: MsgDeposit): unknown {
|
|
579
|
-
const obj: any = {};
|
|
580
|
-
if (message.proposalId !== 0) {
|
|
581
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
582
|
-
}
|
|
583
|
-
if (message.depositor !== "") {
|
|
584
|
-
obj.depositor = message.depositor;
|
|
585
|
-
}
|
|
586
|
-
if (message.amount?.length) {
|
|
587
|
-
obj.amount = message.amount.map((e) => Coin.toJSON(e));
|
|
588
|
-
}
|
|
589
|
-
return obj;
|
|
590
|
-
},
|
|
591
|
-
|
|
592
|
-
create<I extends Exact<DeepPartial<MsgDeposit>, I>>(base?: I): MsgDeposit {
|
|
593
|
-
return MsgDeposit.fromPartial(base ?? ({} as any));
|
|
594
|
-
},
|
|
595
|
-
fromPartial<I extends Exact<DeepPartial<MsgDeposit>, I>>(object: I): MsgDeposit {
|
|
596
|
-
const message = createBaseMsgDeposit();
|
|
597
|
-
message.proposalId = object.proposalId ?? 0;
|
|
598
|
-
message.depositor = object.depositor ?? "";
|
|
599
|
-
message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || [];
|
|
600
|
-
return message;
|
|
601
|
-
},
|
|
602
|
-
};
|
|
603
|
-
|
|
604
|
-
function createBaseMsgDepositResponse(): MsgDepositResponse {
|
|
605
|
-
return {};
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
export const MsgDepositResponse: MessageFns<MsgDepositResponse> = {
|
|
609
|
-
encode(_: MsgDepositResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
610
|
-
return writer;
|
|
611
|
-
},
|
|
612
|
-
|
|
613
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse {
|
|
614
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
615
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
616
|
-
const message = createBaseMsgDepositResponse();
|
|
617
|
-
while (reader.pos < end) {
|
|
618
|
-
const tag = reader.uint32();
|
|
619
|
-
switch (tag >>> 3) {
|
|
620
|
-
}
|
|
621
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
622
|
-
break;
|
|
623
|
-
}
|
|
624
|
-
reader.skip(tag & 7);
|
|
625
|
-
}
|
|
626
|
-
return message;
|
|
627
|
-
},
|
|
628
|
-
|
|
629
|
-
fromJSON(_: any): MsgDepositResponse {
|
|
630
|
-
return {};
|
|
631
|
-
},
|
|
632
|
-
|
|
633
|
-
toJSON(_: MsgDepositResponse): unknown {
|
|
634
|
-
const obj: any = {};
|
|
635
|
-
return obj;
|
|
636
|
-
},
|
|
637
|
-
|
|
638
|
-
create<I extends Exact<DeepPartial<MsgDepositResponse>, I>>(base?: I): MsgDepositResponse {
|
|
639
|
-
return MsgDepositResponse.fromPartial(base ?? ({} as any));
|
|
640
|
-
},
|
|
641
|
-
fromPartial<I extends Exact<DeepPartial<MsgDepositResponse>, I>>(_: I): MsgDepositResponse {
|
|
642
|
-
const message = createBaseMsgDepositResponse();
|
|
643
|
-
return message;
|
|
644
|
-
},
|
|
645
|
-
};
|
|
646
|
-
|
|
647
|
-
/** Msg defines the gov Msg service. */
|
|
648
|
-
export interface Msg {
|
|
649
|
-
/** SubmitProposal defines a method to create new proposal given a content. */
|
|
650
|
-
SubmitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
|
|
651
|
-
/** Vote defines a method to add a vote on a specific proposal. */
|
|
652
|
-
Vote(request: MsgVote): Promise<MsgVoteResponse>;
|
|
653
|
-
/**
|
|
654
|
-
* VoteWeighted defines a method to add a weighted vote on a specific proposal.
|
|
655
|
-
*
|
|
656
|
-
* Since: cosmos-sdk 0.43
|
|
657
|
-
*/
|
|
658
|
-
VoteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
|
|
659
|
-
/** Deposit defines a method to add deposit on a specific proposal. */
|
|
660
|
-
Deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
export const MsgServiceName = "cosmos.gov.v1beta1.Msg";
|
|
664
|
-
export class MsgClientImpl implements Msg {
|
|
665
|
-
private readonly rpc: Rpc;
|
|
666
|
-
private readonly service: string;
|
|
667
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
668
|
-
this.service = opts?.service || MsgServiceName;
|
|
669
|
-
this.rpc = rpc;
|
|
670
|
-
this.SubmitProposal = this.SubmitProposal.bind(this);
|
|
671
|
-
this.Vote = this.Vote.bind(this);
|
|
672
|
-
this.VoteWeighted = this.VoteWeighted.bind(this);
|
|
673
|
-
this.Deposit = this.Deposit.bind(this);
|
|
674
|
-
}
|
|
675
|
-
SubmitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse> {
|
|
676
|
-
const data = MsgSubmitProposal.encode(request).finish();
|
|
677
|
-
const promise = this.rpc.request(this.service, "SubmitProposal", data);
|
|
678
|
-
return promise.then((data) => MsgSubmitProposalResponse.decode(new BinaryReader(data)));
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
Vote(request: MsgVote): Promise<MsgVoteResponse> {
|
|
682
|
-
const data = MsgVote.encode(request).finish();
|
|
683
|
-
const promise = this.rpc.request(this.service, "Vote", data);
|
|
684
|
-
return promise.then((data) => MsgVoteResponse.decode(new BinaryReader(data)));
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
VoteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse> {
|
|
688
|
-
const data = MsgVoteWeighted.encode(request).finish();
|
|
689
|
-
const promise = this.rpc.request(this.service, "VoteWeighted", data);
|
|
690
|
-
return promise.then((data) => MsgVoteWeightedResponse.decode(new BinaryReader(data)));
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
Deposit(request: MsgDeposit): Promise<MsgDepositResponse> {
|
|
694
|
-
const data = MsgDeposit.encode(request).finish();
|
|
695
|
-
const promise = this.rpc.request(this.service, "Deposit", data);
|
|
696
|
-
return promise.then((data) => MsgDepositResponse.decode(new BinaryReader(data)));
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
interface Rpc {
|
|
701
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
705
|
-
|
|
706
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
707
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
708
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
709
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
710
|
-
: Partial<T>;
|
|
711
|
-
|
|
712
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
713
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
714
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
715
|
-
|
|
716
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
717
|
-
const num = globalThis.Number(int64.toString());
|
|
718
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
719
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
720
|
-
}
|
|
721
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
722
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
723
|
-
}
|
|
724
|
-
return num;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
function isSet(value: any): boolean {
|
|
728
|
-
return value !== null && value !== undefined;
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
export interface MessageFns<T> {
|
|
732
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
733
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
734
|
-
fromJSON(object: any): T;
|
|
735
|
-
toJSON(message: T): unknown;
|
|
736
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
737
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
738
|
-
}
|