decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +78 -78
- package/lib/index.js +23 -23
- package/package.json +5 -2
- package/cardchain.cardchain/index.ts +0 -6
- package/cardchain.cardchain/module.ts +0 -1869
- package/cardchain.cardchain/registry.ts +0 -111
- package/cardchain.cardchain/rest.ts +0 -655
- package/cardchain.cardchain/types.ts +0 -63
- package/cardchain.featureflag/index.ts +0 -6
- package/cardchain.featureflag/module.ts +0 -165
- package/cardchain.featureflag/registry.ts +0 -11
- package/cardchain.featureflag/rest.ts +0 -256
- package/cardchain.featureflag/types.ts +0 -9
- package/client.ts +0 -164
- package/cosmos.auth.v1beta1/index.ts +0 -6
- package/cosmos.auth.v1beta1/module.ts +0 -136
- package/cosmos.auth.v1beta1/registry.ts +0 -9
- package/cosmos.auth.v1beta1/rest.ts +0 -403
- package/cosmos.auth.v1beta1/types.ts +0 -13
- package/cosmos.authz.v1beta1/index.ts +0 -6
- package/cosmos.authz.v1beta1/module.ts +0 -206
- package/cosmos.authz.v1beta1/registry.ts +0 -13
- package/cosmos.authz.v1beta1/rest.ts +0 -256
- package/cosmos.authz.v1beta1/types.ts +0 -17
- package/cosmos.bank.v1beta1/index.ts +0 -6
- package/cosmos.bank.v1beta1/module.ts +0 -247
- package/cosmos.bank.v1beta1/registry.ts +0 -15
- package/cosmos.bank.v1beta1/rest.ts +0 -466
- package/cosmos.bank.v1beta1/types.ts +0 -25
- package/cosmos.base.node.v1beta1/index.ts +0 -6
- package/cosmos.base.node.v1beta1/module.ts +0 -95
- package/cosmos.base.node.v1beta1/registry.ts +0 -7
- package/cosmos.base.node.v1beta1/rest.ts +0 -235
- package/cosmos.base.node.v1beta1/types.ts +0 -5
- package/cosmos.base.tendermint.v1beta1/index.ts +0 -6
- package/cosmos.base.tendermint.v1beta1/module.ts +0 -109
- package/cosmos.base.tendermint.v1beta1/registry.ts +0 -7
- package/cosmos.base.tendermint.v1beta1/rest.ts +0 -340
- package/cosmos.base.tendermint.v1beta1/types.ts +0 -19
- package/cosmos.circuit.v1/index.ts +0 -6
- package/cosmos.circuit.v1/module.ts +0 -198
- package/cosmos.circuit.v1/registry.ts +0 -13
- package/cosmos.circuit.v1/rest.ts +0 -256
- package/cosmos.circuit.v1/types.ts +0 -9
- package/cosmos.consensus.v1/index.ts +0 -6
- package/cosmos.consensus.v1/module.ts +0 -128
- package/cosmos.consensus.v1/registry.ts +0 -9
- package/cosmos.consensus.v1/rest.ts +0 -214
- package/cosmos.consensus.v1/types.ts +0 -5
- package/cosmos.crisis.v1beta1/index.ts +0 -6
- package/cosmos.crisis.v1beta1/module.ts +0 -161
- package/cosmos.crisis.v1beta1/registry.ts +0 -11
- package/cosmos.crisis.v1beta1/rest.ts +0 -193
- package/cosmos.crisis.v1beta1/types.ts +0 -5
- package/cosmos.distribution.v1beta1/index.ts +0 -6
- package/cosmos.distribution.v1beta1/module.ts +0 -364
- package/cosmos.distribution.v1beta1/registry.ts +0 -21
- package/cosmos.distribution.v1beta1/rest.ts +0 -403
- package/cosmos.distribution.v1beta1/types.ts +0 -43
- package/cosmos.evidence.v1beta1/index.ts +0 -6
- package/cosmos.evidence.v1beta1/module.ts +0 -130
- package/cosmos.evidence.v1beta1/registry.ts +0 -9
- package/cosmos.evidence.v1beta1/rest.ts +0 -235
- package/cosmos.evidence.v1beta1/types.ts +0 -7
- package/cosmos.feegrant.v1beta1/index.ts +0 -6
- package/cosmos.feegrant.v1beta1/module.ts +0 -202
- package/cosmos.feegrant.v1beta1/registry.ts +0 -13
- package/cosmos.feegrant.v1beta1/rest.ts +0 -256
- package/cosmos.feegrant.v1beta1/types.ts +0 -13
- package/cosmos.gov.v1/index.ts +0 -6
- package/cosmos.gov.v1/module.ts +0 -344
- package/cosmos.gov.v1/registry.ts +0 -21
- package/cosmos.gov.v1/rest.ts +0 -382
- package/cosmos.gov.v1/types.ts +0 -23
- package/cosmos.gov.v1beta1/index.ts +0 -6
- package/cosmos.gov.v1beta1/module.ts +0 -245
- package/cosmos.gov.v1beta1/registry.ts +0 -15
- package/cosmos.gov.v1beta1/rest.ts +0 -361
- package/cosmos.gov.v1beta1/types.ts +0 -23
- package/cosmos.group.v1/index.ts +0 -6
- package/cosmos.group.v1/module.ts +0 -599
- package/cosmos.group.v1/registry.ts +0 -35
- package/cosmos.group.v1/rest.ts +0 -487
- package/cosmos.group.v1/types.ts +0 -47
- package/cosmos.mint.v1beta1/index.ts +0 -6
- package/cosmos.mint.v1beta1/module.ts +0 -132
- package/cosmos.mint.v1beta1/registry.ts +0 -9
- package/cosmos.mint.v1beta1/rest.ts +0 -256
- package/cosmos.mint.v1beta1/types.ts +0 -9
- package/cosmos.nft.v1beta1/index.ts +0 -6
- package/cosmos.nft.v1beta1/module.ts +0 -140
- package/cosmos.nft.v1beta1/registry.ts +0 -9
- package/cosmos.nft.v1beta1/rest.ts +0 -340
- package/cosmos.nft.v1beta1/types.ts +0 -17
- package/cosmos.params.v1beta1/index.ts +0 -6
- package/cosmos.params.v1beta1/module.ts +0 -101
- package/cosmos.params.v1beta1/registry.ts +0 -7
- package/cosmos.params.v1beta1/rest.ts +0 -235
- package/cosmos.params.v1beta1/types.ts +0 -11
- package/cosmos.slashing.v1beta1/index.ts +0 -6
- package/cosmos.slashing.v1beta1/module.ts +0 -171
- package/cosmos.slashing.v1beta1/registry.ts +0 -11
- package/cosmos.slashing.v1beta1/rest.ts +0 -256
- package/cosmos.slashing.v1beta1/types.ts +0 -15
- package/cosmos.staking.v1beta1/index.ts +0 -6
- package/cosmos.staking.v1beta1/module.ts +0 -374
- package/cosmos.staking.v1beta1/registry.ts +0 -21
- package/cosmos.staking.v1beta1/rest.ts +0 -487
- package/cosmos.staking.v1beta1/types.ts +0 -53
- package/cosmos.tx.v1beta1/index.ts +0 -6
- package/cosmos.tx.v1beta1/module.ts +0 -121
- package/cosmos.tx.v1beta1/registry.ts +0 -7
- package/cosmos.tx.v1beta1/rest.ts +0 -382
- package/cosmos.tx.v1beta1/types.ts +0 -31
- package/cosmos.upgrade.v1beta1/index.ts +0 -6
- package/cosmos.upgrade.v1beta1/module.ts +0 -169
- package/cosmos.upgrade.v1beta1/registry.ts +0 -11
- package/cosmos.upgrade.v1beta1/rest.ts +0 -298
- package/cosmos.upgrade.v1beta1/types.ts +0 -13
- package/cosmos.vesting.v1beta1/index.ts +0 -6
- package/cosmos.vesting.v1beta1/module.ts +0 -206
- package/cosmos.vesting.v1beta1/registry.ts +0 -13
- package/cosmos.vesting.v1beta1/rest.ts +0 -193
- package/cosmos.vesting.v1beta1/types.ts +0 -17
- package/env.ts +0 -7
- package/helpers.ts +0 -32
- package/ibc.applications.fee.v1/index.ts +0 -6
- package/ibc.applications.fee.v1/module.ts +0 -247
- package/ibc.applications.fee.v1/registry.ts +0 -15
- package/ibc.applications.fee.v1/rest.ts +0 -403
- package/ibc.applications.fee.v1/types.ts +0 -25
- package/ibc.applications.interchain_accounts.controller.v1/index.ts +0 -6
- package/ibc.applications.interchain_accounts.controller.v1/module.ts +0 -196
- package/ibc.applications.interchain_accounts.controller.v1/registry.ts +0 -13
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -235
- package/ibc.applications.interchain_accounts.controller.v1/types.ts +0 -7
- package/ibc.applications.interchain_accounts.host.v1/index.ts +0 -6
- package/ibc.applications.interchain_accounts.host.v1/module.ts +0 -165
- package/ibc.applications.interchain_accounts.host.v1/registry.ts +0 -11
- package/ibc.applications.interchain_accounts.host.v1/rest.ts +0 -214
- package/ibc.applications.interchain_accounts.host.v1/types.ts +0 -9
- package/ibc.applications.transfer.v1/index.ts +0 -6
- package/ibc.applications.transfer.v1/module.ts +0 -169
- package/ibc.applications.transfer.v1/registry.ts +0 -11
- package/ibc.applications.transfer.v1/rest.ts +0 -319
- package/ibc.applications.transfer.v1/types.ts +0 -13
- package/ibc.core.channel.v1/index.ts +0 -6
- package/ibc.core.channel.v1/module.ts +0 -748
- package/ibc.core.channel.v1/registry.ts +0 -45
- package/ibc.core.channel.v1/rest.ts +0 -550
- package/ibc.core.channel.v1/types.ts +0 -31
- package/ibc.core.client.v1/index.ts +0 -6
- package/ibc.core.client.v1/module.ts +0 -344
- package/ibc.core.client.v1/registry.ts +0 -21
- package/ibc.core.client.v1/rest.ts +0 -403
- package/ibc.core.client.v1/types.ts +0 -23
- package/ibc.core.connection.v1/index.ts +0 -6
- package/ibc.core.connection.v1/module.ts +0 -274
- package/ibc.core.connection.v1/registry.ts +0 -17
- package/ibc.core.connection.v1/rest.ts +0 -319
- package/ibc.core.connection.v1/types.ts +0 -19
- package/index.ts +0 -81
- package/modules.ts +0 -5
- package/tsconfig.json +0 -13
- package/types/amino/amino.ts +0 -9
- package/types/capability/v1/capability.ts +0 -263
- package/types/capability/v1/genesis.ts +0 -220
- package/types/cardchain/cardchain/card.ts +0 -712
- package/types/cardchain/cardchain/card_content.ts +0 -116
- package/types/cardchain/cardchain/card_with_image.ts +0 -134
- package/types/cardchain/cardchain/council.ts +0 -502
- package/types/cardchain/cardchain/encounter.ts +0 -307
- package/types/cardchain/cardchain/encounter_with_image.ts +0 -119
- package/types/cardchain/cardchain/genesis.ts +0 -403
- package/types/cardchain/cardchain/image.ts +0 -122
- package/types/cardchain/cardchain/match.ts +0 -453
- package/types/cardchain/cardchain/module/module.ts +0 -99
- package/types/cardchain/cardchain/params.ts +0 -544
- package/types/cardchain/cardchain/query.ts +0 -3786
- package/types/cardchain/cardchain/running_average.ts +0 -116
- package/types/cardchain/cardchain/sell_offer.ts +0 -224
- package/types/cardchain/cardchain/server.ts +0 -144
- package/types/cardchain/cardchain/set.ts +0 -537
- package/types/cardchain/cardchain/set_with_artwork.ts +0 -142
- package/types/cardchain/cardchain/tx.ts +0 -8053
- package/types/cardchain/cardchain/user.ts +0 -955
- package/types/cardchain/cardchain/voting.ts +0 -328
- package/types/cardchain/cardchain/voting_results.ts +0 -227
- package/types/cardchain/cardchain/zealy.ts +0 -116
- package/types/cardchain/featureflag/flag.ts +0 -133
- package/types/cardchain/featureflag/genesis.ts +0 -226
- package/types/cardchain/featureflag/module/module.ts +0 -99
- package/types/cardchain/featureflag/params.ts +0 -78
- package/types/cardchain/featureflag/query.ts +0 -445
- package/types/cardchain/featureflag/tx.ts +0 -373
- package/types/cosmos/app/runtime/v1alpha1/module.ts +0 -389
- package/types/cosmos/app/v1alpha1/config.ts +0 -346
- package/types/cosmos/app/v1alpha1/module.ts +0 -348
- package/types/cosmos/app/v1alpha1/query.ts +0 -175
- package/types/cosmos/auth/module/v1/module.ts +0 -229
- package/types/cosmos/auth/v1beta1/auth.ts +0 -531
- package/types/cosmos/auth/v1beta1/genesis.ts +0 -125
- package/types/cosmos/auth/v1beta1/query.ts +0 -1564
- package/types/cosmos/auth/v1beta1/tx.ts +0 -213
- package/types/cosmos/authz/module/v1/module.ts +0 -78
- package/types/cosmos/authz/v1beta1/authz.ts +0 -411
- package/types/cosmos/authz/v1beta1/event.ts +0 -241
- package/types/cosmos/authz/v1beta1/genesis.ts +0 -101
- package/types/cosmos/authz/v1beta1/query.ts +0 -643
- package/types/cosmos/authz/v1beta1/tx.ts +0 -574
- package/types/cosmos/autocli/v1/options.ts +0 -1049
- package/types/cosmos/autocli/v1/query.ts +0 -291
- package/types/cosmos/bank/module/v1/module.ts +0 -150
- package/types/cosmos/bank/v1beta1/authz.ts +0 -129
- package/types/cosmos/bank/v1beta1/bank.ts +0 -775
- package/types/cosmos/bank/v1beta1/genesis.ts +0 -277
- package/types/cosmos/bank/v1beta1/query.ts +0 -2424
- package/types/cosmos/bank/v1beta1/tx.ts +0 -697
- package/types/cosmos/base/abci/v1beta1/abci.ts +0 -1469
- package/types/cosmos/base/node/v1beta1/query.ts +0 -485
- package/types/cosmos/base/query/v1beta1/pagination.ts +0 -336
- package/types/cosmos/base/reflection/v1beta1/reflection.ts +0 -328
- package/types/cosmos/base/reflection/v2alpha1/reflection.ts +0 -2092
- package/types/cosmos/base/tendermint/v1beta1/query.ts +0 -2025
- package/types/cosmos/base/tendermint/v1beta1/types.ts +0 -548
- package/types/cosmos/base/v1beta1/coin.ts +0 -209
- package/types/cosmos/circuit/module/v1/module.ts +0 -99
- package/types/cosmos/circuit/v1/query.ts +0 -476
- package/types/cosmos/circuit/v1/tx.ts +0 -576
- package/types/cosmos/circuit/v1/types.ts +0 -362
- package/types/cosmos/consensus/module/v1/module.ts +0 -99
- package/types/cosmos/consensus/v1/query.ts +0 -181
- package/types/cosmos/consensus/v1/tx.ts +0 -271
- package/types/cosmos/crisis/module/v1/module.ts +0 -119
- package/types/cosmos/crisis/v1beta1/genesis.ts +0 -105
- package/types/cosmos/crisis/v1beta1/tx.ts +0 -367
- package/types/cosmos/crypto/ed25519/keys.ts +0 -195
- package/types/cosmos/crypto/hd/v1/hd.ts +0 -178
- package/types/cosmos/crypto/keyring/v1/record.ts +0 -440
- package/types/cosmos/crypto/multisig/keys.ts +0 -124
- package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +0 -218
- package/types/cosmos/crypto/secp256k1/keys.ts +0 -192
- package/types/cosmos/crypto/secp256r1/keys.ts +0 -193
- package/types/cosmos/distribution/module/v1/module.ts +0 -118
- package/types/cosmos/distribution/v1beta1/distribution.ts +0 -1177
- package/types/cosmos/distribution/v1beta1/genesis.ts +0 -1028
- package/types/cosmos/distribution/v1beta1/query.ts +0 -1700
- package/types/cosmos/distribution/v1beta1/tx.ts +0 -1178
- package/types/cosmos/evidence/module/v1/module.ts +0 -78
- package/types/cosmos/evidence/v1beta1/evidence.ts +0 -194
- package/types/cosmos/evidence/v1beta1/genesis.ts +0 -98
- package/types/cosmos/evidence/v1beta1/query.ts +0 -414
- package/types/cosmos/evidence/v1beta1/tx.ts +0 -243
- package/types/cosmos/feegrant/module/v1/module.ts +0 -78
- package/types/cosmos/feegrant/v1beta1/feegrant.ts +0 -513
- package/types/cosmos/feegrant/v1beta1/genesis.ts +0 -101
- package/types/cosmos/feegrant/v1beta1/query.ts +0 -597
- package/types/cosmos/feegrant/v1beta1/tx.ts +0 -496
- package/types/cosmos/genutil/module/v1/module.ts +0 -78
- package/types/cosmos/genutil/v1beta1/genesis.ts +0 -122
- package/types/cosmos/gov/module/v1/module.ts +0 -133
- package/types/cosmos/gov/v1/genesis.ts +0 -313
- package/types/cosmos/gov/v1/gov.ts +0 -1712
- package/types/cosmos/gov/v1/query.ts +0 -1605
- package/types/cosmos/gov/v1/tx.ts +0 -1387
- package/types/cosmos/gov/v1beta1/genesis.ts +0 -241
- package/types/cosmos/gov/v1beta1/gov.ts +0 -1273
- package/types/cosmos/gov/v1beta1/query.ts +0 -1441
- package/types/cosmos/gov/v1beta1/tx.ts +0 -738
- package/types/cosmos/group/module/v1/module.ts +0 -141
- package/types/cosmos/group/v1/events.ts +0 -795
- package/types/cosmos/group/v1/genesis.ts +0 -265
- package/types/cosmos/group/v1/query.ts +0 -2441
- package/types/cosmos/group/v1/tx.ts +0 -2631
- package/types/cosmos/group/v1/types.ts +0 -1850
- package/types/cosmos/ics23/v1/proofs.ts +0 -1731
- package/types/cosmos/mint/module/v1/module.ts +0 -118
- package/types/cosmos/mint/v1beta1/genesis.ts +0 -126
- package/types/cosmos/mint/v1beta1/mint.ts +0 -293
- package/types/cosmos/mint/v1beta1/query.ts +0 -453
- package/types/cosmos/mint/v1beta1/tx.ts +0 -213
- package/types/cosmos/msg/textual/v1/textual.ts +0 -9
- package/types/cosmos/msg/v1/msg.ts +0 -9
- package/types/cosmos/nft/module/v1/module.ts +0 -78
- package/types/cosmos/nft/v1beta1/event.ts +0 -359
- package/types/cosmos/nft/v1beta1/genesis.ts +0 -204
- package/types/cosmos/nft/v1beta1/nft.ts +0 -348
- package/types/cosmos/nft/v1beta1/query.ts +0 -1173
- package/types/cosmos/nft/v1beta1/tx.ts +0 -228
- package/types/cosmos/orm/module/v1alpha1/module.ts +0 -82
- package/types/cosmos/orm/query/v1alpha1/query.ts +0 -933
- package/types/cosmos/orm/v1/orm.ts +0 -453
- package/types/cosmos/orm/v1alpha1/schema.ts +0 -321
- package/types/cosmos/params/module/v1/module.ts +0 -78
- package/types/cosmos/params/v1beta1/params.ts +0 -236
- package/types/cosmos/params/v1beta1/query.ts +0 -439
- package/types/cosmos/query/v1/query.ts +0 -9
- package/types/cosmos/reflection/v1/reflection.ts +0 -179
- package/types/cosmos/slashing/module/v1/module.ts +0 -99
- package/types/cosmos/slashing/v1beta1/genesis.ts +0 -424
- package/types/cosmos/slashing/v1beta1/query.ts +0 -487
- package/types/cosmos/slashing/v1beta1/slashing.ts +0 -422
- package/types/cosmos/slashing/v1beta1/tx.ts +0 -336
- package/types/cosmos/staking/module/v1/module.ts +0 -161
- package/types/cosmos/staking/v1beta1/authz.ts +0 -306
- package/types/cosmos/staking/v1beta1/genesis.ts +0 -377
- package/types/cosmos/staking/v1beta1/query.ts +0 -2540
- package/types/cosmos/staking/v1beta1/staking.ts +0 -2576
- package/types/cosmos/staking/v1beta1/tx.ts +0 -1433
- package/types/cosmos/store/internal/kv/v1beta1/kv.ts +0 -205
- package/types/cosmos/store/snapshots/v1/snapshot.ts +0 -746
- package/types/cosmos/store/streaming/abci/grpc.ts +0 -367
- package/types/cosmos/store/v1beta1/commit_info.ts +0 -370
- package/types/cosmos/store/v1beta1/listening.ts +0 -301
- package/types/cosmos/tx/config/v1/config.ts +0 -125
- package/types/cosmos/tx/signing/v1beta1/signing.ts +0 -630
- package/types/cosmos/tx/v1beta1/service.ts +0 -1889
- package/types/cosmos/tx/v1beta1/tx.ts +0 -1657
- package/types/cosmos/upgrade/module/v1/module.ts +0 -99
- package/types/cosmos/upgrade/v1beta1/query.ts +0 -819
- package/types/cosmos/upgrade/v1beta1/tx.ts +0 -340
- package/types/cosmos/upgrade/v1beta1/upgrade.ts +0 -525
- package/types/cosmos/vesting/module/v1/module.ts +0 -78
- package/types/cosmos/vesting/v1beta1/tx.ts +0 -640
- package/types/cosmos/vesting/v1beta1/vesting.ts +0 -624
- package/types/cosmos_proto/cosmos.ts +0 -307
- package/types/gogoproto/gogo.ts +0 -9
- package/types/google/api/annotations.ts +0 -9
- package/types/google/api/http.ts +0 -770
- package/types/google/protobuf/any.ts +0 -259
- package/types/google/protobuf/descriptor.ts +0 -6642
- package/types/google/protobuf/duration.ts +0 -200
- package/types/google/protobuf/timestamp.ts +0 -229
- package/types/ibc/applications/fee/v1/ack.ts +0 -166
- package/types/ibc/applications/fee/v1/fee.ts +0 -403
- package/types/ibc/applications/fee/v1/genesis.ts +0 -571
- package/types/ibc/applications/fee/v1/metadata.ts +0 -122
- package/types/ibc/applications/fee/v1/query.ts +0 -1757
- package/types/ibc/applications/fee/v1/tx.ts +0 -781
- package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +0 -104
- package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +0 -333
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +0 -619
- package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +0 -590
- package/types/ibc/applications/interchain_accounts/host/v1/host.ts +0 -242
- package/types/ibc/applications/interchain_accounts/host/v1/query.ts +0 -175
- package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +0 -416
- package/types/ibc/applications/interchain_accounts/v1/account.ts +0 -120
- package/types/ibc/applications/interchain_accounts/v1/metadata.ts +0 -199
- package/types/ibc/applications/interchain_accounts/v1/packet.ts +0 -264
- package/types/ibc/applications/transfer/v1/authz.ts +0 -254
- package/types/ibc/applications/transfer/v1/genesis.ts +0 -165
- package/types/ibc/applications/transfer/v1/query.ts +0 -934
- package/types/ibc/applications/transfer/v1/transfer.ts +0 -220
- package/types/ibc/applications/transfer/v1/tx.ts +0 -505
- package/types/ibc/applications/transfer/v2/packet.ts +0 -177
- package/types/ibc/core/channel/v1/channel.ts +0 -1358
- package/types/ibc/core/channel/v1/genesis.ts +0 -377
- package/types/ibc/core/channel/v1/query.ts +0 -3781
- package/types/ibc/core/channel/v1/tx.ts +0 -4424
- package/types/ibc/core/channel/v1/upgrade.ts +0 -348
- package/types/ibc/core/client/v1/client.ts +0 -753
- package/types/ibc/core/client/v1/genesis.ts +0 -423
- package/types/ibc/core/client/v1/query.ts +0 -1898
- package/types/ibc/core/client/v1/tx.ts +0 -1301
- package/types/ibc/core/commitment/v1/commitment.ts +0 -336
- package/types/ibc/core/connection/v1/connection.ts +0 -840
- package/types/ibc/core/connection/v1/genesis.ts +0 -172
- package/types/ibc/core/connection/v1/query.ts +0 -1243
- package/types/ibc/core/connection/v1/tx.ts +0 -1352
- package/types/ibc/core/types/v1/genesis.ts +0 -150
- package/types/ibc/lightclients/localhost/v2/localhost.ts +0 -102
- package/types/ibc/lightclients/solomachine/v2/solomachine.ts +0 -1765
- package/types/ibc/lightclients/solomachine/v3/solomachine.ts +0 -945
- package/types/ibc/lightclients/tendermint/v1/tendermint.ts +0 -853
- package/types/ibc/lightclients/wasm/v1/genesis.ts +0 -192
- package/types/ibc/lightclients/wasm/v1/query.ts +0 -377
- package/types/ibc/lightclients/wasm/v1/tx.ts +0 -550
- package/types/ibc/lightclients/wasm/v1/wasm.ts +0 -370
- package/types/tendermint/abci/types.ts +0 -6103
- package/types/tendermint/crypto/keys.ts +0 -142
- package/types/tendermint/crypto/proof.ts +0 -533
- package/types/tendermint/libs/bits/types.ts +0 -139
- package/types/tendermint/p2p/types.ts +0 -544
- package/types/tendermint/types/block.ts +0 -158
- package/types/tendermint/types/evidence.ts +0 -502
- package/types/tendermint/types/params.ts +0 -701
- package/types/tendermint/types/types.ts +0 -2133
- package/types/tendermint/types/validator.ts +0 -424
- package/types/tendermint/version/types.ts +0 -218
- package/types.d.ts +0 -21
|
@@ -1,1387 +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/v1/tx.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Any } from "../../../google/protobuf/any";
|
|
10
|
-
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
11
|
-
import { Coin } from "../../base/v1beta1/coin";
|
|
12
|
-
import { Params, VoteOption, voteOptionFromJSON, voteOptionToJSON, WeightedVoteOption } from "./gov";
|
|
13
|
-
|
|
14
|
-
export const protobufPackage = "cosmos.gov.v1";
|
|
15
|
-
|
|
16
|
-
/** Since: cosmos-sdk 0.46 */
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
|
|
20
|
-
* proposal Content.
|
|
21
|
-
*/
|
|
22
|
-
export interface MsgSubmitProposal {
|
|
23
|
-
/** messages are the arbitrary messages to be executed if proposal passes. */
|
|
24
|
-
messages: Any[];
|
|
25
|
-
/** initial_deposit is the deposit value that must be paid at proposal submission. */
|
|
26
|
-
initialDeposit: Coin[];
|
|
27
|
-
/** proposer is the account address of the proposer. */
|
|
28
|
-
proposer: string;
|
|
29
|
-
/** metadata is any arbitrary metadata attached to the proposal. */
|
|
30
|
-
metadata: string;
|
|
31
|
-
/**
|
|
32
|
-
* title is the title of the proposal.
|
|
33
|
-
*
|
|
34
|
-
* Since: cosmos-sdk 0.47
|
|
35
|
-
*/
|
|
36
|
-
title: string;
|
|
37
|
-
/**
|
|
38
|
-
* summary is the summary of the proposal
|
|
39
|
-
*
|
|
40
|
-
* Since: cosmos-sdk 0.47
|
|
41
|
-
*/
|
|
42
|
-
summary: string;
|
|
43
|
-
/**
|
|
44
|
-
* expedited defines if the proposal is expedited or not
|
|
45
|
-
*
|
|
46
|
-
* Since: cosmos-sdk 0.50
|
|
47
|
-
*/
|
|
48
|
-
expedited: boolean;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
|
|
52
|
-
export interface MsgSubmitProposalResponse {
|
|
53
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
54
|
-
proposalId: number;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* MsgExecLegacyContent is used to wrap the legacy content field into a message.
|
|
59
|
-
* This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
|
|
60
|
-
*/
|
|
61
|
-
export interface MsgExecLegacyContent {
|
|
62
|
-
/** content is the proposal's content. */
|
|
63
|
-
content:
|
|
64
|
-
| Any
|
|
65
|
-
| undefined;
|
|
66
|
-
/** authority must be the gov module address. */
|
|
67
|
-
authority: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */
|
|
71
|
-
export interface MsgExecLegacyContentResponse {
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/** MsgVote defines a message to cast a vote. */
|
|
75
|
-
export interface MsgVote {
|
|
76
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
77
|
-
proposalId: number;
|
|
78
|
-
/** voter is the voter address for the proposal. */
|
|
79
|
-
voter: string;
|
|
80
|
-
/** option defines the vote option. */
|
|
81
|
-
option: VoteOption;
|
|
82
|
-
/** metadata is any arbitrary metadata attached to the Vote. */
|
|
83
|
-
metadata: string;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/** MsgVoteResponse defines the Msg/Vote response type. */
|
|
87
|
-
export interface MsgVoteResponse {
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/** MsgVoteWeighted defines a message to cast a vote. */
|
|
91
|
-
export interface MsgVoteWeighted {
|
|
92
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
93
|
-
proposalId: number;
|
|
94
|
-
/** voter is the voter address for the proposal. */
|
|
95
|
-
voter: string;
|
|
96
|
-
/** options defines the weighted vote options. */
|
|
97
|
-
options: WeightedVoteOption[];
|
|
98
|
-
/** metadata is any arbitrary metadata attached to the VoteWeighted. */
|
|
99
|
-
metadata: string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */
|
|
103
|
-
export interface MsgVoteWeightedResponse {
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/** MsgDeposit defines a message to submit a deposit to an existing proposal. */
|
|
107
|
-
export interface MsgDeposit {
|
|
108
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
109
|
-
proposalId: number;
|
|
110
|
-
/** depositor defines the deposit addresses from the proposals. */
|
|
111
|
-
depositor: string;
|
|
112
|
-
/** amount to be deposited by depositor. */
|
|
113
|
-
amount: Coin[];
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/** MsgDepositResponse defines the Msg/Deposit response type. */
|
|
117
|
-
export interface MsgDepositResponse {
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
122
|
-
*
|
|
123
|
-
* Since: cosmos-sdk 0.47
|
|
124
|
-
*/
|
|
125
|
-
export interface MsgUpdateParams {
|
|
126
|
-
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
127
|
-
authority: string;
|
|
128
|
-
/**
|
|
129
|
-
* params defines the x/gov parameters to update.
|
|
130
|
-
*
|
|
131
|
-
* NOTE: All parameters must be supplied.
|
|
132
|
-
*/
|
|
133
|
-
params: Params | undefined;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
138
|
-
* MsgUpdateParams message.
|
|
139
|
-
*
|
|
140
|
-
* Since: cosmos-sdk 0.47
|
|
141
|
-
*/
|
|
142
|
-
export interface MsgUpdateParamsResponse {
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* MsgCancelProposal is the Msg/CancelProposal request type.
|
|
147
|
-
*
|
|
148
|
-
* Since: cosmos-sdk 0.50
|
|
149
|
-
*/
|
|
150
|
-
export interface MsgCancelProposal {
|
|
151
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
152
|
-
proposalId: number;
|
|
153
|
-
/** proposer is the account address of the proposer. */
|
|
154
|
-
proposer: string;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* MsgCancelProposalResponse defines the response structure for executing a
|
|
159
|
-
* MsgCancelProposal message.
|
|
160
|
-
*
|
|
161
|
-
* Since: cosmos-sdk 0.50
|
|
162
|
-
*/
|
|
163
|
-
export interface MsgCancelProposalResponse {
|
|
164
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
165
|
-
proposalId: number;
|
|
166
|
-
/** canceled_time is the time when proposal is canceled. */
|
|
167
|
-
canceledTime:
|
|
168
|
-
| Date
|
|
169
|
-
| undefined;
|
|
170
|
-
/** canceled_height defines the block height at which the proposal is canceled. */
|
|
171
|
-
canceledHeight: number;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
function createBaseMsgSubmitProposal(): MsgSubmitProposal {
|
|
175
|
-
return { messages: [], initialDeposit: [], proposer: "", metadata: "", title: "", summary: "", expedited: false };
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export const MsgSubmitProposal: MessageFns<MsgSubmitProposal> = {
|
|
179
|
-
encode(message: MsgSubmitProposal, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
180
|
-
for (const v of message.messages) {
|
|
181
|
-
Any.encode(v!, writer.uint32(10).fork()).join();
|
|
182
|
-
}
|
|
183
|
-
for (const v of message.initialDeposit) {
|
|
184
|
-
Coin.encode(v!, writer.uint32(18).fork()).join();
|
|
185
|
-
}
|
|
186
|
-
if (message.proposer !== "") {
|
|
187
|
-
writer.uint32(26).string(message.proposer);
|
|
188
|
-
}
|
|
189
|
-
if (message.metadata !== "") {
|
|
190
|
-
writer.uint32(34).string(message.metadata);
|
|
191
|
-
}
|
|
192
|
-
if (message.title !== "") {
|
|
193
|
-
writer.uint32(42).string(message.title);
|
|
194
|
-
}
|
|
195
|
-
if (message.summary !== "") {
|
|
196
|
-
writer.uint32(50).string(message.summary);
|
|
197
|
-
}
|
|
198
|
-
if (message.expedited !== false) {
|
|
199
|
-
writer.uint32(56).bool(message.expedited);
|
|
200
|
-
}
|
|
201
|
-
return writer;
|
|
202
|
-
},
|
|
203
|
-
|
|
204
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal {
|
|
205
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
206
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
207
|
-
const message = createBaseMsgSubmitProposal();
|
|
208
|
-
while (reader.pos < end) {
|
|
209
|
-
const tag = reader.uint32();
|
|
210
|
-
switch (tag >>> 3) {
|
|
211
|
-
case 1: {
|
|
212
|
-
if (tag !== 10) {
|
|
213
|
-
break;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
message.messages.push(Any.decode(reader, reader.uint32()));
|
|
217
|
-
continue;
|
|
218
|
-
}
|
|
219
|
-
case 2: {
|
|
220
|
-
if (tag !== 18) {
|
|
221
|
-
break;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
message.initialDeposit.push(Coin.decode(reader, reader.uint32()));
|
|
225
|
-
continue;
|
|
226
|
-
}
|
|
227
|
-
case 3: {
|
|
228
|
-
if (tag !== 26) {
|
|
229
|
-
break;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
message.proposer = reader.string();
|
|
233
|
-
continue;
|
|
234
|
-
}
|
|
235
|
-
case 4: {
|
|
236
|
-
if (tag !== 34) {
|
|
237
|
-
break;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
message.metadata = reader.string();
|
|
241
|
-
continue;
|
|
242
|
-
}
|
|
243
|
-
case 5: {
|
|
244
|
-
if (tag !== 42) {
|
|
245
|
-
break;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
message.title = reader.string();
|
|
249
|
-
continue;
|
|
250
|
-
}
|
|
251
|
-
case 6: {
|
|
252
|
-
if (tag !== 50) {
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
message.summary = reader.string();
|
|
257
|
-
continue;
|
|
258
|
-
}
|
|
259
|
-
case 7: {
|
|
260
|
-
if (tag !== 56) {
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
message.expedited = reader.bool();
|
|
265
|
-
continue;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
269
|
-
break;
|
|
270
|
-
}
|
|
271
|
-
reader.skip(tag & 7);
|
|
272
|
-
}
|
|
273
|
-
return message;
|
|
274
|
-
},
|
|
275
|
-
|
|
276
|
-
fromJSON(object: any): MsgSubmitProposal {
|
|
277
|
-
return {
|
|
278
|
-
messages: globalThis.Array.isArray(object?.messages) ? object.messages.map((e: any) => Any.fromJSON(e)) : [],
|
|
279
|
-
initialDeposit: globalThis.Array.isArray(object?.initialDeposit)
|
|
280
|
-
? object.initialDeposit.map((e: any) => Coin.fromJSON(e))
|
|
281
|
-
: [],
|
|
282
|
-
proposer: isSet(object.proposer) ? globalThis.String(object.proposer) : "",
|
|
283
|
-
metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
|
|
284
|
-
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
285
|
-
summary: isSet(object.summary) ? globalThis.String(object.summary) : "",
|
|
286
|
-
expedited: isSet(object.expedited) ? globalThis.Boolean(object.expedited) : false,
|
|
287
|
-
};
|
|
288
|
-
},
|
|
289
|
-
|
|
290
|
-
toJSON(message: MsgSubmitProposal): unknown {
|
|
291
|
-
const obj: any = {};
|
|
292
|
-
if (message.messages?.length) {
|
|
293
|
-
obj.messages = message.messages.map((e) => Any.toJSON(e));
|
|
294
|
-
}
|
|
295
|
-
if (message.initialDeposit?.length) {
|
|
296
|
-
obj.initialDeposit = message.initialDeposit.map((e) => Coin.toJSON(e));
|
|
297
|
-
}
|
|
298
|
-
if (message.proposer !== "") {
|
|
299
|
-
obj.proposer = message.proposer;
|
|
300
|
-
}
|
|
301
|
-
if (message.metadata !== "") {
|
|
302
|
-
obj.metadata = message.metadata;
|
|
303
|
-
}
|
|
304
|
-
if (message.title !== "") {
|
|
305
|
-
obj.title = message.title;
|
|
306
|
-
}
|
|
307
|
-
if (message.summary !== "") {
|
|
308
|
-
obj.summary = message.summary;
|
|
309
|
-
}
|
|
310
|
-
if (message.expedited !== false) {
|
|
311
|
-
obj.expedited = message.expedited;
|
|
312
|
-
}
|
|
313
|
-
return obj;
|
|
314
|
-
},
|
|
315
|
-
|
|
316
|
-
create<I extends Exact<DeepPartial<MsgSubmitProposal>, I>>(base?: I): MsgSubmitProposal {
|
|
317
|
-
return MsgSubmitProposal.fromPartial(base ?? ({} as any));
|
|
318
|
-
},
|
|
319
|
-
fromPartial<I extends Exact<DeepPartial<MsgSubmitProposal>, I>>(object: I): MsgSubmitProposal {
|
|
320
|
-
const message = createBaseMsgSubmitProposal();
|
|
321
|
-
message.messages = object.messages?.map((e) => Any.fromPartial(e)) || [];
|
|
322
|
-
message.initialDeposit = object.initialDeposit?.map((e) => Coin.fromPartial(e)) || [];
|
|
323
|
-
message.proposer = object.proposer ?? "";
|
|
324
|
-
message.metadata = object.metadata ?? "";
|
|
325
|
-
message.title = object.title ?? "";
|
|
326
|
-
message.summary = object.summary ?? "";
|
|
327
|
-
message.expedited = object.expedited ?? false;
|
|
328
|
-
return message;
|
|
329
|
-
},
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
function createBaseMsgSubmitProposalResponse(): MsgSubmitProposalResponse {
|
|
333
|
-
return { proposalId: 0 };
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
export const MsgSubmitProposalResponse: MessageFns<MsgSubmitProposalResponse> = {
|
|
337
|
-
encode(message: MsgSubmitProposalResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
338
|
-
if (message.proposalId !== 0) {
|
|
339
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
340
|
-
}
|
|
341
|
-
return writer;
|
|
342
|
-
},
|
|
343
|
-
|
|
344
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse {
|
|
345
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
346
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
347
|
-
const message = createBaseMsgSubmitProposalResponse();
|
|
348
|
-
while (reader.pos < end) {
|
|
349
|
-
const tag = reader.uint32();
|
|
350
|
-
switch (tag >>> 3) {
|
|
351
|
-
case 1: {
|
|
352
|
-
if (tag !== 8) {
|
|
353
|
-
break;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
357
|
-
continue;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
361
|
-
break;
|
|
362
|
-
}
|
|
363
|
-
reader.skip(tag & 7);
|
|
364
|
-
}
|
|
365
|
-
return message;
|
|
366
|
-
},
|
|
367
|
-
|
|
368
|
-
fromJSON(object: any): MsgSubmitProposalResponse {
|
|
369
|
-
return { proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0 };
|
|
370
|
-
},
|
|
371
|
-
|
|
372
|
-
toJSON(message: MsgSubmitProposalResponse): unknown {
|
|
373
|
-
const obj: any = {};
|
|
374
|
-
if (message.proposalId !== 0) {
|
|
375
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
376
|
-
}
|
|
377
|
-
return obj;
|
|
378
|
-
},
|
|
379
|
-
|
|
380
|
-
create<I extends Exact<DeepPartial<MsgSubmitProposalResponse>, I>>(base?: I): MsgSubmitProposalResponse {
|
|
381
|
-
return MsgSubmitProposalResponse.fromPartial(base ?? ({} as any));
|
|
382
|
-
},
|
|
383
|
-
fromPartial<I extends Exact<DeepPartial<MsgSubmitProposalResponse>, I>>(object: I): MsgSubmitProposalResponse {
|
|
384
|
-
const message = createBaseMsgSubmitProposalResponse();
|
|
385
|
-
message.proposalId = object.proposalId ?? 0;
|
|
386
|
-
return message;
|
|
387
|
-
},
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
function createBaseMsgExecLegacyContent(): MsgExecLegacyContent {
|
|
391
|
-
return { content: undefined, authority: "" };
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
export const MsgExecLegacyContent: MessageFns<MsgExecLegacyContent> = {
|
|
395
|
-
encode(message: MsgExecLegacyContent, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
396
|
-
if (message.content !== undefined) {
|
|
397
|
-
Any.encode(message.content, writer.uint32(10).fork()).join();
|
|
398
|
-
}
|
|
399
|
-
if (message.authority !== "") {
|
|
400
|
-
writer.uint32(18).string(message.authority);
|
|
401
|
-
}
|
|
402
|
-
return writer;
|
|
403
|
-
},
|
|
404
|
-
|
|
405
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContent {
|
|
406
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
407
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
408
|
-
const message = createBaseMsgExecLegacyContent();
|
|
409
|
-
while (reader.pos < end) {
|
|
410
|
-
const tag = reader.uint32();
|
|
411
|
-
switch (tag >>> 3) {
|
|
412
|
-
case 1: {
|
|
413
|
-
if (tag !== 10) {
|
|
414
|
-
break;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
message.content = Any.decode(reader, reader.uint32());
|
|
418
|
-
continue;
|
|
419
|
-
}
|
|
420
|
-
case 2: {
|
|
421
|
-
if (tag !== 18) {
|
|
422
|
-
break;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
message.authority = reader.string();
|
|
426
|
-
continue;
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
430
|
-
break;
|
|
431
|
-
}
|
|
432
|
-
reader.skip(tag & 7);
|
|
433
|
-
}
|
|
434
|
-
return message;
|
|
435
|
-
},
|
|
436
|
-
|
|
437
|
-
fromJSON(object: any): MsgExecLegacyContent {
|
|
438
|
-
return {
|
|
439
|
-
content: isSet(object.content) ? Any.fromJSON(object.content) : undefined,
|
|
440
|
-
authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
|
|
441
|
-
};
|
|
442
|
-
},
|
|
443
|
-
|
|
444
|
-
toJSON(message: MsgExecLegacyContent): unknown {
|
|
445
|
-
const obj: any = {};
|
|
446
|
-
if (message.content !== undefined) {
|
|
447
|
-
obj.content = Any.toJSON(message.content);
|
|
448
|
-
}
|
|
449
|
-
if (message.authority !== "") {
|
|
450
|
-
obj.authority = message.authority;
|
|
451
|
-
}
|
|
452
|
-
return obj;
|
|
453
|
-
},
|
|
454
|
-
|
|
455
|
-
create<I extends Exact<DeepPartial<MsgExecLegacyContent>, I>>(base?: I): MsgExecLegacyContent {
|
|
456
|
-
return MsgExecLegacyContent.fromPartial(base ?? ({} as any));
|
|
457
|
-
},
|
|
458
|
-
fromPartial<I extends Exact<DeepPartial<MsgExecLegacyContent>, I>>(object: I): MsgExecLegacyContent {
|
|
459
|
-
const message = createBaseMsgExecLegacyContent();
|
|
460
|
-
message.content = (object.content !== undefined && object.content !== null)
|
|
461
|
-
? Any.fromPartial(object.content)
|
|
462
|
-
: undefined;
|
|
463
|
-
message.authority = object.authority ?? "";
|
|
464
|
-
return message;
|
|
465
|
-
},
|
|
466
|
-
};
|
|
467
|
-
|
|
468
|
-
function createBaseMsgExecLegacyContentResponse(): MsgExecLegacyContentResponse {
|
|
469
|
-
return {};
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
export const MsgExecLegacyContentResponse: MessageFns<MsgExecLegacyContentResponse> = {
|
|
473
|
-
encode(_: MsgExecLegacyContentResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
474
|
-
return writer;
|
|
475
|
-
},
|
|
476
|
-
|
|
477
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContentResponse {
|
|
478
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
479
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
480
|
-
const message = createBaseMsgExecLegacyContentResponse();
|
|
481
|
-
while (reader.pos < end) {
|
|
482
|
-
const tag = reader.uint32();
|
|
483
|
-
switch (tag >>> 3) {
|
|
484
|
-
}
|
|
485
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
486
|
-
break;
|
|
487
|
-
}
|
|
488
|
-
reader.skip(tag & 7);
|
|
489
|
-
}
|
|
490
|
-
return message;
|
|
491
|
-
},
|
|
492
|
-
|
|
493
|
-
fromJSON(_: any): MsgExecLegacyContentResponse {
|
|
494
|
-
return {};
|
|
495
|
-
},
|
|
496
|
-
|
|
497
|
-
toJSON(_: MsgExecLegacyContentResponse): unknown {
|
|
498
|
-
const obj: any = {};
|
|
499
|
-
return obj;
|
|
500
|
-
},
|
|
501
|
-
|
|
502
|
-
create<I extends Exact<DeepPartial<MsgExecLegacyContentResponse>, I>>(base?: I): MsgExecLegacyContentResponse {
|
|
503
|
-
return MsgExecLegacyContentResponse.fromPartial(base ?? ({} as any));
|
|
504
|
-
},
|
|
505
|
-
fromPartial<I extends Exact<DeepPartial<MsgExecLegacyContentResponse>, I>>(_: I): MsgExecLegacyContentResponse {
|
|
506
|
-
const message = createBaseMsgExecLegacyContentResponse();
|
|
507
|
-
return message;
|
|
508
|
-
},
|
|
509
|
-
};
|
|
510
|
-
|
|
511
|
-
function createBaseMsgVote(): MsgVote {
|
|
512
|
-
return { proposalId: 0, voter: "", option: 0, metadata: "" };
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
export const MsgVote: MessageFns<MsgVote> = {
|
|
516
|
-
encode(message: MsgVote, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
517
|
-
if (message.proposalId !== 0) {
|
|
518
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
519
|
-
}
|
|
520
|
-
if (message.voter !== "") {
|
|
521
|
-
writer.uint32(18).string(message.voter);
|
|
522
|
-
}
|
|
523
|
-
if (message.option !== 0) {
|
|
524
|
-
writer.uint32(24).int32(message.option);
|
|
525
|
-
}
|
|
526
|
-
if (message.metadata !== "") {
|
|
527
|
-
writer.uint32(34).string(message.metadata);
|
|
528
|
-
}
|
|
529
|
-
return writer;
|
|
530
|
-
},
|
|
531
|
-
|
|
532
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgVote {
|
|
533
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
534
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
535
|
-
const message = createBaseMsgVote();
|
|
536
|
-
while (reader.pos < end) {
|
|
537
|
-
const tag = reader.uint32();
|
|
538
|
-
switch (tag >>> 3) {
|
|
539
|
-
case 1: {
|
|
540
|
-
if (tag !== 8) {
|
|
541
|
-
break;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
545
|
-
continue;
|
|
546
|
-
}
|
|
547
|
-
case 2: {
|
|
548
|
-
if (tag !== 18) {
|
|
549
|
-
break;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
message.voter = reader.string();
|
|
553
|
-
continue;
|
|
554
|
-
}
|
|
555
|
-
case 3: {
|
|
556
|
-
if (tag !== 24) {
|
|
557
|
-
break;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
message.option = reader.int32() as any;
|
|
561
|
-
continue;
|
|
562
|
-
}
|
|
563
|
-
case 4: {
|
|
564
|
-
if (tag !== 34) {
|
|
565
|
-
break;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
message.metadata = reader.string();
|
|
569
|
-
continue;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
573
|
-
break;
|
|
574
|
-
}
|
|
575
|
-
reader.skip(tag & 7);
|
|
576
|
-
}
|
|
577
|
-
return message;
|
|
578
|
-
},
|
|
579
|
-
|
|
580
|
-
fromJSON(object: any): MsgVote {
|
|
581
|
-
return {
|
|
582
|
-
proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0,
|
|
583
|
-
voter: isSet(object.voter) ? globalThis.String(object.voter) : "",
|
|
584
|
-
option: isSet(object.option) ? voteOptionFromJSON(object.option) : 0,
|
|
585
|
-
metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
|
|
586
|
-
};
|
|
587
|
-
},
|
|
588
|
-
|
|
589
|
-
toJSON(message: MsgVote): unknown {
|
|
590
|
-
const obj: any = {};
|
|
591
|
-
if (message.proposalId !== 0) {
|
|
592
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
593
|
-
}
|
|
594
|
-
if (message.voter !== "") {
|
|
595
|
-
obj.voter = message.voter;
|
|
596
|
-
}
|
|
597
|
-
if (message.option !== 0) {
|
|
598
|
-
obj.option = voteOptionToJSON(message.option);
|
|
599
|
-
}
|
|
600
|
-
if (message.metadata !== "") {
|
|
601
|
-
obj.metadata = message.metadata;
|
|
602
|
-
}
|
|
603
|
-
return obj;
|
|
604
|
-
},
|
|
605
|
-
|
|
606
|
-
create<I extends Exact<DeepPartial<MsgVote>, I>>(base?: I): MsgVote {
|
|
607
|
-
return MsgVote.fromPartial(base ?? ({} as any));
|
|
608
|
-
},
|
|
609
|
-
fromPartial<I extends Exact<DeepPartial<MsgVote>, I>>(object: I): MsgVote {
|
|
610
|
-
const message = createBaseMsgVote();
|
|
611
|
-
message.proposalId = object.proposalId ?? 0;
|
|
612
|
-
message.voter = object.voter ?? "";
|
|
613
|
-
message.option = object.option ?? 0;
|
|
614
|
-
message.metadata = object.metadata ?? "";
|
|
615
|
-
return message;
|
|
616
|
-
},
|
|
617
|
-
};
|
|
618
|
-
|
|
619
|
-
function createBaseMsgVoteResponse(): MsgVoteResponse {
|
|
620
|
-
return {};
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
export const MsgVoteResponse: MessageFns<MsgVoteResponse> = {
|
|
624
|
-
encode(_: MsgVoteResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
625
|
-
return writer;
|
|
626
|
-
},
|
|
627
|
-
|
|
628
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse {
|
|
629
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
630
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
631
|
-
const message = createBaseMsgVoteResponse();
|
|
632
|
-
while (reader.pos < end) {
|
|
633
|
-
const tag = reader.uint32();
|
|
634
|
-
switch (tag >>> 3) {
|
|
635
|
-
}
|
|
636
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
637
|
-
break;
|
|
638
|
-
}
|
|
639
|
-
reader.skip(tag & 7);
|
|
640
|
-
}
|
|
641
|
-
return message;
|
|
642
|
-
},
|
|
643
|
-
|
|
644
|
-
fromJSON(_: any): MsgVoteResponse {
|
|
645
|
-
return {};
|
|
646
|
-
},
|
|
647
|
-
|
|
648
|
-
toJSON(_: MsgVoteResponse): unknown {
|
|
649
|
-
const obj: any = {};
|
|
650
|
-
return obj;
|
|
651
|
-
},
|
|
652
|
-
|
|
653
|
-
create<I extends Exact<DeepPartial<MsgVoteResponse>, I>>(base?: I): MsgVoteResponse {
|
|
654
|
-
return MsgVoteResponse.fromPartial(base ?? ({} as any));
|
|
655
|
-
},
|
|
656
|
-
fromPartial<I extends Exact<DeepPartial<MsgVoteResponse>, I>>(_: I): MsgVoteResponse {
|
|
657
|
-
const message = createBaseMsgVoteResponse();
|
|
658
|
-
return message;
|
|
659
|
-
},
|
|
660
|
-
};
|
|
661
|
-
|
|
662
|
-
function createBaseMsgVoteWeighted(): MsgVoteWeighted {
|
|
663
|
-
return { proposalId: 0, voter: "", options: [], metadata: "" };
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
export const MsgVoteWeighted: MessageFns<MsgVoteWeighted> = {
|
|
667
|
-
encode(message: MsgVoteWeighted, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
668
|
-
if (message.proposalId !== 0) {
|
|
669
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
670
|
-
}
|
|
671
|
-
if (message.voter !== "") {
|
|
672
|
-
writer.uint32(18).string(message.voter);
|
|
673
|
-
}
|
|
674
|
-
for (const v of message.options) {
|
|
675
|
-
WeightedVoteOption.encode(v!, writer.uint32(26).fork()).join();
|
|
676
|
-
}
|
|
677
|
-
if (message.metadata !== "") {
|
|
678
|
-
writer.uint32(34).string(message.metadata);
|
|
679
|
-
}
|
|
680
|
-
return writer;
|
|
681
|
-
},
|
|
682
|
-
|
|
683
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted {
|
|
684
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
685
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
686
|
-
const message = createBaseMsgVoteWeighted();
|
|
687
|
-
while (reader.pos < end) {
|
|
688
|
-
const tag = reader.uint32();
|
|
689
|
-
switch (tag >>> 3) {
|
|
690
|
-
case 1: {
|
|
691
|
-
if (tag !== 8) {
|
|
692
|
-
break;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
696
|
-
continue;
|
|
697
|
-
}
|
|
698
|
-
case 2: {
|
|
699
|
-
if (tag !== 18) {
|
|
700
|
-
break;
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
message.voter = reader.string();
|
|
704
|
-
continue;
|
|
705
|
-
}
|
|
706
|
-
case 3: {
|
|
707
|
-
if (tag !== 26) {
|
|
708
|
-
break;
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
message.options.push(WeightedVoteOption.decode(reader, reader.uint32()));
|
|
712
|
-
continue;
|
|
713
|
-
}
|
|
714
|
-
case 4: {
|
|
715
|
-
if (tag !== 34) {
|
|
716
|
-
break;
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
message.metadata = reader.string();
|
|
720
|
-
continue;
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
724
|
-
break;
|
|
725
|
-
}
|
|
726
|
-
reader.skip(tag & 7);
|
|
727
|
-
}
|
|
728
|
-
return message;
|
|
729
|
-
},
|
|
730
|
-
|
|
731
|
-
fromJSON(object: any): MsgVoteWeighted {
|
|
732
|
-
return {
|
|
733
|
-
proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0,
|
|
734
|
-
voter: isSet(object.voter) ? globalThis.String(object.voter) : "",
|
|
735
|
-
options: globalThis.Array.isArray(object?.options)
|
|
736
|
-
? object.options.map((e: any) => WeightedVoteOption.fromJSON(e))
|
|
737
|
-
: [],
|
|
738
|
-
metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
|
|
739
|
-
};
|
|
740
|
-
},
|
|
741
|
-
|
|
742
|
-
toJSON(message: MsgVoteWeighted): unknown {
|
|
743
|
-
const obj: any = {};
|
|
744
|
-
if (message.proposalId !== 0) {
|
|
745
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
746
|
-
}
|
|
747
|
-
if (message.voter !== "") {
|
|
748
|
-
obj.voter = message.voter;
|
|
749
|
-
}
|
|
750
|
-
if (message.options?.length) {
|
|
751
|
-
obj.options = message.options.map((e) => WeightedVoteOption.toJSON(e));
|
|
752
|
-
}
|
|
753
|
-
if (message.metadata !== "") {
|
|
754
|
-
obj.metadata = message.metadata;
|
|
755
|
-
}
|
|
756
|
-
return obj;
|
|
757
|
-
},
|
|
758
|
-
|
|
759
|
-
create<I extends Exact<DeepPartial<MsgVoteWeighted>, I>>(base?: I): MsgVoteWeighted {
|
|
760
|
-
return MsgVoteWeighted.fromPartial(base ?? ({} as any));
|
|
761
|
-
},
|
|
762
|
-
fromPartial<I extends Exact<DeepPartial<MsgVoteWeighted>, I>>(object: I): MsgVoteWeighted {
|
|
763
|
-
const message = createBaseMsgVoteWeighted();
|
|
764
|
-
message.proposalId = object.proposalId ?? 0;
|
|
765
|
-
message.voter = object.voter ?? "";
|
|
766
|
-
message.options = object.options?.map((e) => WeightedVoteOption.fromPartial(e)) || [];
|
|
767
|
-
message.metadata = object.metadata ?? "";
|
|
768
|
-
return message;
|
|
769
|
-
},
|
|
770
|
-
};
|
|
771
|
-
|
|
772
|
-
function createBaseMsgVoteWeightedResponse(): MsgVoteWeightedResponse {
|
|
773
|
-
return {};
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
export const MsgVoteWeightedResponse: MessageFns<MsgVoteWeightedResponse> = {
|
|
777
|
-
encode(_: MsgVoteWeightedResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
778
|
-
return writer;
|
|
779
|
-
},
|
|
780
|
-
|
|
781
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse {
|
|
782
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
783
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
784
|
-
const message = createBaseMsgVoteWeightedResponse();
|
|
785
|
-
while (reader.pos < end) {
|
|
786
|
-
const tag = reader.uint32();
|
|
787
|
-
switch (tag >>> 3) {
|
|
788
|
-
}
|
|
789
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
790
|
-
break;
|
|
791
|
-
}
|
|
792
|
-
reader.skip(tag & 7);
|
|
793
|
-
}
|
|
794
|
-
return message;
|
|
795
|
-
},
|
|
796
|
-
|
|
797
|
-
fromJSON(_: any): MsgVoteWeightedResponse {
|
|
798
|
-
return {};
|
|
799
|
-
},
|
|
800
|
-
|
|
801
|
-
toJSON(_: MsgVoteWeightedResponse): unknown {
|
|
802
|
-
const obj: any = {};
|
|
803
|
-
return obj;
|
|
804
|
-
},
|
|
805
|
-
|
|
806
|
-
create<I extends Exact<DeepPartial<MsgVoteWeightedResponse>, I>>(base?: I): MsgVoteWeightedResponse {
|
|
807
|
-
return MsgVoteWeightedResponse.fromPartial(base ?? ({} as any));
|
|
808
|
-
},
|
|
809
|
-
fromPartial<I extends Exact<DeepPartial<MsgVoteWeightedResponse>, I>>(_: I): MsgVoteWeightedResponse {
|
|
810
|
-
const message = createBaseMsgVoteWeightedResponse();
|
|
811
|
-
return message;
|
|
812
|
-
},
|
|
813
|
-
};
|
|
814
|
-
|
|
815
|
-
function createBaseMsgDeposit(): MsgDeposit {
|
|
816
|
-
return { proposalId: 0, depositor: "", amount: [] };
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
export const MsgDeposit: MessageFns<MsgDeposit> = {
|
|
820
|
-
encode(message: MsgDeposit, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
821
|
-
if (message.proposalId !== 0) {
|
|
822
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
823
|
-
}
|
|
824
|
-
if (message.depositor !== "") {
|
|
825
|
-
writer.uint32(18).string(message.depositor);
|
|
826
|
-
}
|
|
827
|
-
for (const v of message.amount) {
|
|
828
|
-
Coin.encode(v!, writer.uint32(26).fork()).join();
|
|
829
|
-
}
|
|
830
|
-
return writer;
|
|
831
|
-
},
|
|
832
|
-
|
|
833
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit {
|
|
834
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
835
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
836
|
-
const message = createBaseMsgDeposit();
|
|
837
|
-
while (reader.pos < end) {
|
|
838
|
-
const tag = reader.uint32();
|
|
839
|
-
switch (tag >>> 3) {
|
|
840
|
-
case 1: {
|
|
841
|
-
if (tag !== 8) {
|
|
842
|
-
break;
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
846
|
-
continue;
|
|
847
|
-
}
|
|
848
|
-
case 2: {
|
|
849
|
-
if (tag !== 18) {
|
|
850
|
-
break;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
message.depositor = reader.string();
|
|
854
|
-
continue;
|
|
855
|
-
}
|
|
856
|
-
case 3: {
|
|
857
|
-
if (tag !== 26) {
|
|
858
|
-
break;
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
862
|
-
continue;
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
866
|
-
break;
|
|
867
|
-
}
|
|
868
|
-
reader.skip(tag & 7);
|
|
869
|
-
}
|
|
870
|
-
return message;
|
|
871
|
-
},
|
|
872
|
-
|
|
873
|
-
fromJSON(object: any): MsgDeposit {
|
|
874
|
-
return {
|
|
875
|
-
proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0,
|
|
876
|
-
depositor: isSet(object.depositor) ? globalThis.String(object.depositor) : "",
|
|
877
|
-
amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [],
|
|
878
|
-
};
|
|
879
|
-
},
|
|
880
|
-
|
|
881
|
-
toJSON(message: MsgDeposit): unknown {
|
|
882
|
-
const obj: any = {};
|
|
883
|
-
if (message.proposalId !== 0) {
|
|
884
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
885
|
-
}
|
|
886
|
-
if (message.depositor !== "") {
|
|
887
|
-
obj.depositor = message.depositor;
|
|
888
|
-
}
|
|
889
|
-
if (message.amount?.length) {
|
|
890
|
-
obj.amount = message.amount.map((e) => Coin.toJSON(e));
|
|
891
|
-
}
|
|
892
|
-
return obj;
|
|
893
|
-
},
|
|
894
|
-
|
|
895
|
-
create<I extends Exact<DeepPartial<MsgDeposit>, I>>(base?: I): MsgDeposit {
|
|
896
|
-
return MsgDeposit.fromPartial(base ?? ({} as any));
|
|
897
|
-
},
|
|
898
|
-
fromPartial<I extends Exact<DeepPartial<MsgDeposit>, I>>(object: I): MsgDeposit {
|
|
899
|
-
const message = createBaseMsgDeposit();
|
|
900
|
-
message.proposalId = object.proposalId ?? 0;
|
|
901
|
-
message.depositor = object.depositor ?? "";
|
|
902
|
-
message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || [];
|
|
903
|
-
return message;
|
|
904
|
-
},
|
|
905
|
-
};
|
|
906
|
-
|
|
907
|
-
function createBaseMsgDepositResponse(): MsgDepositResponse {
|
|
908
|
-
return {};
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
export const MsgDepositResponse: MessageFns<MsgDepositResponse> = {
|
|
912
|
-
encode(_: MsgDepositResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
913
|
-
return writer;
|
|
914
|
-
},
|
|
915
|
-
|
|
916
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse {
|
|
917
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
918
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
919
|
-
const message = createBaseMsgDepositResponse();
|
|
920
|
-
while (reader.pos < end) {
|
|
921
|
-
const tag = reader.uint32();
|
|
922
|
-
switch (tag >>> 3) {
|
|
923
|
-
}
|
|
924
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
925
|
-
break;
|
|
926
|
-
}
|
|
927
|
-
reader.skip(tag & 7);
|
|
928
|
-
}
|
|
929
|
-
return message;
|
|
930
|
-
},
|
|
931
|
-
|
|
932
|
-
fromJSON(_: any): MsgDepositResponse {
|
|
933
|
-
return {};
|
|
934
|
-
},
|
|
935
|
-
|
|
936
|
-
toJSON(_: MsgDepositResponse): unknown {
|
|
937
|
-
const obj: any = {};
|
|
938
|
-
return obj;
|
|
939
|
-
},
|
|
940
|
-
|
|
941
|
-
create<I extends Exact<DeepPartial<MsgDepositResponse>, I>>(base?: I): MsgDepositResponse {
|
|
942
|
-
return MsgDepositResponse.fromPartial(base ?? ({} as any));
|
|
943
|
-
},
|
|
944
|
-
fromPartial<I extends Exact<DeepPartial<MsgDepositResponse>, I>>(_: I): MsgDepositResponse {
|
|
945
|
-
const message = createBaseMsgDepositResponse();
|
|
946
|
-
return message;
|
|
947
|
-
},
|
|
948
|
-
};
|
|
949
|
-
|
|
950
|
-
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
951
|
-
return { authority: "", params: undefined };
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
export const MsgUpdateParams: MessageFns<MsgUpdateParams> = {
|
|
955
|
-
encode(message: MsgUpdateParams, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
956
|
-
if (message.authority !== "") {
|
|
957
|
-
writer.uint32(10).string(message.authority);
|
|
958
|
-
}
|
|
959
|
-
if (message.params !== undefined) {
|
|
960
|
-
Params.encode(message.params, writer.uint32(18).fork()).join();
|
|
961
|
-
}
|
|
962
|
-
return writer;
|
|
963
|
-
},
|
|
964
|
-
|
|
965
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
|
|
966
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
967
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
968
|
-
const message = createBaseMsgUpdateParams();
|
|
969
|
-
while (reader.pos < end) {
|
|
970
|
-
const tag = reader.uint32();
|
|
971
|
-
switch (tag >>> 3) {
|
|
972
|
-
case 1: {
|
|
973
|
-
if (tag !== 10) {
|
|
974
|
-
break;
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
message.authority = reader.string();
|
|
978
|
-
continue;
|
|
979
|
-
}
|
|
980
|
-
case 2: {
|
|
981
|
-
if (tag !== 18) {
|
|
982
|
-
break;
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
986
|
-
continue;
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
990
|
-
break;
|
|
991
|
-
}
|
|
992
|
-
reader.skip(tag & 7);
|
|
993
|
-
}
|
|
994
|
-
return message;
|
|
995
|
-
},
|
|
996
|
-
|
|
997
|
-
fromJSON(object: any): MsgUpdateParams {
|
|
998
|
-
return {
|
|
999
|
-
authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
|
|
1000
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
1001
|
-
};
|
|
1002
|
-
},
|
|
1003
|
-
|
|
1004
|
-
toJSON(message: MsgUpdateParams): unknown {
|
|
1005
|
-
const obj: any = {};
|
|
1006
|
-
if (message.authority !== "") {
|
|
1007
|
-
obj.authority = message.authority;
|
|
1008
|
-
}
|
|
1009
|
-
if (message.params !== undefined) {
|
|
1010
|
-
obj.params = Params.toJSON(message.params);
|
|
1011
|
-
}
|
|
1012
|
-
return obj;
|
|
1013
|
-
},
|
|
1014
|
-
|
|
1015
|
-
create<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(base?: I): MsgUpdateParams {
|
|
1016
|
-
return MsgUpdateParams.fromPartial(base ?? ({} as any));
|
|
1017
|
-
},
|
|
1018
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(object: I): MsgUpdateParams {
|
|
1019
|
-
const message = createBaseMsgUpdateParams();
|
|
1020
|
-
message.authority = object.authority ?? "";
|
|
1021
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
1022
|
-
? Params.fromPartial(object.params)
|
|
1023
|
-
: undefined;
|
|
1024
|
-
return message;
|
|
1025
|
-
},
|
|
1026
|
-
};
|
|
1027
|
-
|
|
1028
|
-
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
1029
|
-
return {};
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
export const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse> = {
|
|
1033
|
-
encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1034
|
-
return writer;
|
|
1035
|
-
},
|
|
1036
|
-
|
|
1037
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
1038
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1039
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1040
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
1041
|
-
while (reader.pos < end) {
|
|
1042
|
-
const tag = reader.uint32();
|
|
1043
|
-
switch (tag >>> 3) {
|
|
1044
|
-
}
|
|
1045
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1046
|
-
break;
|
|
1047
|
-
}
|
|
1048
|
-
reader.skip(tag & 7);
|
|
1049
|
-
}
|
|
1050
|
-
return message;
|
|
1051
|
-
},
|
|
1052
|
-
|
|
1053
|
-
fromJSON(_: any): MsgUpdateParamsResponse {
|
|
1054
|
-
return {};
|
|
1055
|
-
},
|
|
1056
|
-
|
|
1057
|
-
toJSON(_: MsgUpdateParamsResponse): unknown {
|
|
1058
|
-
const obj: any = {};
|
|
1059
|
-
return obj;
|
|
1060
|
-
},
|
|
1061
|
-
|
|
1062
|
-
create<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(base?: I): MsgUpdateParamsResponse {
|
|
1063
|
-
return MsgUpdateParamsResponse.fromPartial(base ?? ({} as any));
|
|
1064
|
-
},
|
|
1065
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse {
|
|
1066
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
1067
|
-
return message;
|
|
1068
|
-
},
|
|
1069
|
-
};
|
|
1070
|
-
|
|
1071
|
-
function createBaseMsgCancelProposal(): MsgCancelProposal {
|
|
1072
|
-
return { proposalId: 0, proposer: "" };
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
export const MsgCancelProposal: MessageFns<MsgCancelProposal> = {
|
|
1076
|
-
encode(message: MsgCancelProposal, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1077
|
-
if (message.proposalId !== 0) {
|
|
1078
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
1079
|
-
}
|
|
1080
|
-
if (message.proposer !== "") {
|
|
1081
|
-
writer.uint32(18).string(message.proposer);
|
|
1082
|
-
}
|
|
1083
|
-
return writer;
|
|
1084
|
-
},
|
|
1085
|
-
|
|
1086
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelProposal {
|
|
1087
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1088
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1089
|
-
const message = createBaseMsgCancelProposal();
|
|
1090
|
-
while (reader.pos < end) {
|
|
1091
|
-
const tag = reader.uint32();
|
|
1092
|
-
switch (tag >>> 3) {
|
|
1093
|
-
case 1: {
|
|
1094
|
-
if (tag !== 8) {
|
|
1095
|
-
break;
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
1099
|
-
continue;
|
|
1100
|
-
}
|
|
1101
|
-
case 2: {
|
|
1102
|
-
if (tag !== 18) {
|
|
1103
|
-
break;
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
message.proposer = reader.string();
|
|
1107
|
-
continue;
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1111
|
-
break;
|
|
1112
|
-
}
|
|
1113
|
-
reader.skip(tag & 7);
|
|
1114
|
-
}
|
|
1115
|
-
return message;
|
|
1116
|
-
},
|
|
1117
|
-
|
|
1118
|
-
fromJSON(object: any): MsgCancelProposal {
|
|
1119
|
-
return {
|
|
1120
|
-
proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0,
|
|
1121
|
-
proposer: isSet(object.proposer) ? globalThis.String(object.proposer) : "",
|
|
1122
|
-
};
|
|
1123
|
-
},
|
|
1124
|
-
|
|
1125
|
-
toJSON(message: MsgCancelProposal): unknown {
|
|
1126
|
-
const obj: any = {};
|
|
1127
|
-
if (message.proposalId !== 0) {
|
|
1128
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
1129
|
-
}
|
|
1130
|
-
if (message.proposer !== "") {
|
|
1131
|
-
obj.proposer = message.proposer;
|
|
1132
|
-
}
|
|
1133
|
-
return obj;
|
|
1134
|
-
},
|
|
1135
|
-
|
|
1136
|
-
create<I extends Exact<DeepPartial<MsgCancelProposal>, I>>(base?: I): MsgCancelProposal {
|
|
1137
|
-
return MsgCancelProposal.fromPartial(base ?? ({} as any));
|
|
1138
|
-
},
|
|
1139
|
-
fromPartial<I extends Exact<DeepPartial<MsgCancelProposal>, I>>(object: I): MsgCancelProposal {
|
|
1140
|
-
const message = createBaseMsgCancelProposal();
|
|
1141
|
-
message.proposalId = object.proposalId ?? 0;
|
|
1142
|
-
message.proposer = object.proposer ?? "";
|
|
1143
|
-
return message;
|
|
1144
|
-
},
|
|
1145
|
-
};
|
|
1146
|
-
|
|
1147
|
-
function createBaseMsgCancelProposalResponse(): MsgCancelProposalResponse {
|
|
1148
|
-
return { proposalId: 0, canceledTime: undefined, canceledHeight: 0 };
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
export const MsgCancelProposalResponse: MessageFns<MsgCancelProposalResponse> = {
|
|
1152
|
-
encode(message: MsgCancelProposalResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1153
|
-
if (message.proposalId !== 0) {
|
|
1154
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
1155
|
-
}
|
|
1156
|
-
if (message.canceledTime !== undefined) {
|
|
1157
|
-
Timestamp.encode(toTimestamp(message.canceledTime), writer.uint32(18).fork()).join();
|
|
1158
|
-
}
|
|
1159
|
-
if (message.canceledHeight !== 0) {
|
|
1160
|
-
writer.uint32(24).uint64(message.canceledHeight);
|
|
1161
|
-
}
|
|
1162
|
-
return writer;
|
|
1163
|
-
},
|
|
1164
|
-
|
|
1165
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelProposalResponse {
|
|
1166
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1167
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1168
|
-
const message = createBaseMsgCancelProposalResponse();
|
|
1169
|
-
while (reader.pos < end) {
|
|
1170
|
-
const tag = reader.uint32();
|
|
1171
|
-
switch (tag >>> 3) {
|
|
1172
|
-
case 1: {
|
|
1173
|
-
if (tag !== 8) {
|
|
1174
|
-
break;
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
1178
|
-
continue;
|
|
1179
|
-
}
|
|
1180
|
-
case 2: {
|
|
1181
|
-
if (tag !== 18) {
|
|
1182
|
-
break;
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
message.canceledTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1186
|
-
continue;
|
|
1187
|
-
}
|
|
1188
|
-
case 3: {
|
|
1189
|
-
if (tag !== 24) {
|
|
1190
|
-
break;
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
message.canceledHeight = longToNumber(reader.uint64());
|
|
1194
|
-
continue;
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1198
|
-
break;
|
|
1199
|
-
}
|
|
1200
|
-
reader.skip(tag & 7);
|
|
1201
|
-
}
|
|
1202
|
-
return message;
|
|
1203
|
-
},
|
|
1204
|
-
|
|
1205
|
-
fromJSON(object: any): MsgCancelProposalResponse {
|
|
1206
|
-
return {
|
|
1207
|
-
proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0,
|
|
1208
|
-
canceledTime: isSet(object.canceledTime) ? fromJsonTimestamp(object.canceledTime) : undefined,
|
|
1209
|
-
canceledHeight: isSet(object.canceledHeight) ? globalThis.Number(object.canceledHeight) : 0,
|
|
1210
|
-
};
|
|
1211
|
-
},
|
|
1212
|
-
|
|
1213
|
-
toJSON(message: MsgCancelProposalResponse): unknown {
|
|
1214
|
-
const obj: any = {};
|
|
1215
|
-
if (message.proposalId !== 0) {
|
|
1216
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
1217
|
-
}
|
|
1218
|
-
if (message.canceledTime !== undefined) {
|
|
1219
|
-
obj.canceledTime = message.canceledTime.toISOString();
|
|
1220
|
-
}
|
|
1221
|
-
if (message.canceledHeight !== 0) {
|
|
1222
|
-
obj.canceledHeight = Math.round(message.canceledHeight);
|
|
1223
|
-
}
|
|
1224
|
-
return obj;
|
|
1225
|
-
},
|
|
1226
|
-
|
|
1227
|
-
create<I extends Exact<DeepPartial<MsgCancelProposalResponse>, I>>(base?: I): MsgCancelProposalResponse {
|
|
1228
|
-
return MsgCancelProposalResponse.fromPartial(base ?? ({} as any));
|
|
1229
|
-
},
|
|
1230
|
-
fromPartial<I extends Exact<DeepPartial<MsgCancelProposalResponse>, I>>(object: I): MsgCancelProposalResponse {
|
|
1231
|
-
const message = createBaseMsgCancelProposalResponse();
|
|
1232
|
-
message.proposalId = object.proposalId ?? 0;
|
|
1233
|
-
message.canceledTime = object.canceledTime ?? undefined;
|
|
1234
|
-
message.canceledHeight = object.canceledHeight ?? 0;
|
|
1235
|
-
return message;
|
|
1236
|
-
},
|
|
1237
|
-
};
|
|
1238
|
-
|
|
1239
|
-
/** Msg defines the gov Msg service. */
|
|
1240
|
-
export interface Msg {
|
|
1241
|
-
/** SubmitProposal defines a method to create new proposal given the messages. */
|
|
1242
|
-
SubmitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
|
|
1243
|
-
/**
|
|
1244
|
-
* ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal
|
|
1245
|
-
* to execute a legacy content-based proposal.
|
|
1246
|
-
*/
|
|
1247
|
-
ExecLegacyContent(request: MsgExecLegacyContent): Promise<MsgExecLegacyContentResponse>;
|
|
1248
|
-
/** Vote defines a method to add a vote on a specific proposal. */
|
|
1249
|
-
Vote(request: MsgVote): Promise<MsgVoteResponse>;
|
|
1250
|
-
/** VoteWeighted defines a method to add a weighted vote on a specific proposal. */
|
|
1251
|
-
VoteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
|
|
1252
|
-
/** Deposit defines a method to add deposit on a specific proposal. */
|
|
1253
|
-
Deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
|
|
1254
|
-
/**
|
|
1255
|
-
* UpdateParams defines a governance operation for updating the x/gov module
|
|
1256
|
-
* parameters. The authority is defined in the keeper.
|
|
1257
|
-
*
|
|
1258
|
-
* Since: cosmos-sdk 0.47
|
|
1259
|
-
*/
|
|
1260
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
1261
|
-
/**
|
|
1262
|
-
* CancelProposal defines a method to cancel governance proposal
|
|
1263
|
-
*
|
|
1264
|
-
* Since: cosmos-sdk 0.50
|
|
1265
|
-
*/
|
|
1266
|
-
CancelProposal(request: MsgCancelProposal): Promise<MsgCancelProposalResponse>;
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
export const MsgServiceName = "cosmos.gov.v1.Msg";
|
|
1270
|
-
export class MsgClientImpl implements Msg {
|
|
1271
|
-
private readonly rpc: Rpc;
|
|
1272
|
-
private readonly service: string;
|
|
1273
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
1274
|
-
this.service = opts?.service || MsgServiceName;
|
|
1275
|
-
this.rpc = rpc;
|
|
1276
|
-
this.SubmitProposal = this.SubmitProposal.bind(this);
|
|
1277
|
-
this.ExecLegacyContent = this.ExecLegacyContent.bind(this);
|
|
1278
|
-
this.Vote = this.Vote.bind(this);
|
|
1279
|
-
this.VoteWeighted = this.VoteWeighted.bind(this);
|
|
1280
|
-
this.Deposit = this.Deposit.bind(this);
|
|
1281
|
-
this.UpdateParams = this.UpdateParams.bind(this);
|
|
1282
|
-
this.CancelProposal = this.CancelProposal.bind(this);
|
|
1283
|
-
}
|
|
1284
|
-
SubmitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse> {
|
|
1285
|
-
const data = MsgSubmitProposal.encode(request).finish();
|
|
1286
|
-
const promise = this.rpc.request(this.service, "SubmitProposal", data);
|
|
1287
|
-
return promise.then((data) => MsgSubmitProposalResponse.decode(new BinaryReader(data)));
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
ExecLegacyContent(request: MsgExecLegacyContent): Promise<MsgExecLegacyContentResponse> {
|
|
1291
|
-
const data = MsgExecLegacyContent.encode(request).finish();
|
|
1292
|
-
const promise = this.rpc.request(this.service, "ExecLegacyContent", data);
|
|
1293
|
-
return promise.then((data) => MsgExecLegacyContentResponse.decode(new BinaryReader(data)));
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
|
-
Vote(request: MsgVote): Promise<MsgVoteResponse> {
|
|
1297
|
-
const data = MsgVote.encode(request).finish();
|
|
1298
|
-
const promise = this.rpc.request(this.service, "Vote", data);
|
|
1299
|
-
return promise.then((data) => MsgVoteResponse.decode(new BinaryReader(data)));
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
VoteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse> {
|
|
1303
|
-
const data = MsgVoteWeighted.encode(request).finish();
|
|
1304
|
-
const promise = this.rpc.request(this.service, "VoteWeighted", data);
|
|
1305
|
-
return promise.then((data) => MsgVoteWeightedResponse.decode(new BinaryReader(data)));
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
Deposit(request: MsgDeposit): Promise<MsgDepositResponse> {
|
|
1309
|
-
const data = MsgDeposit.encode(request).finish();
|
|
1310
|
-
const promise = this.rpc.request(this.service, "Deposit", data);
|
|
1311
|
-
return promise.then((data) => MsgDepositResponse.decode(new BinaryReader(data)));
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse> {
|
|
1315
|
-
const data = MsgUpdateParams.encode(request).finish();
|
|
1316
|
-
const promise = this.rpc.request(this.service, "UpdateParams", data);
|
|
1317
|
-
return promise.then((data) => MsgUpdateParamsResponse.decode(new BinaryReader(data)));
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1320
|
-
CancelProposal(request: MsgCancelProposal): Promise<MsgCancelProposalResponse> {
|
|
1321
|
-
const data = MsgCancelProposal.encode(request).finish();
|
|
1322
|
-
const promise = this.rpc.request(this.service, "CancelProposal", data);
|
|
1323
|
-
return promise.then((data) => MsgCancelProposalResponse.decode(new BinaryReader(data)));
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
interface Rpc {
|
|
1328
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1332
|
-
|
|
1333
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
1334
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
1335
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
1336
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
1337
|
-
: Partial<T>;
|
|
1338
|
-
|
|
1339
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1340
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
1341
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
1342
|
-
|
|
1343
|
-
function toTimestamp(date: Date): Timestamp {
|
|
1344
|
-
const seconds = Math.trunc(date.getTime() / 1_000);
|
|
1345
|
-
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
1346
|
-
return { seconds, nanos };
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
|
-
function fromTimestamp(t: Timestamp): Date {
|
|
1350
|
-
let millis = (t.seconds || 0) * 1_000;
|
|
1351
|
-
millis += (t.nanos || 0) / 1_000_000;
|
|
1352
|
-
return new globalThis.Date(millis);
|
|
1353
|
-
}
|
|
1354
|
-
|
|
1355
|
-
function fromJsonTimestamp(o: any): Date {
|
|
1356
|
-
if (o instanceof globalThis.Date) {
|
|
1357
|
-
return o;
|
|
1358
|
-
} else if (typeof o === "string") {
|
|
1359
|
-
return new globalThis.Date(o);
|
|
1360
|
-
} else {
|
|
1361
|
-
return fromTimestamp(Timestamp.fromJSON(o));
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
1366
|
-
const num = globalThis.Number(int64.toString());
|
|
1367
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
1368
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1369
|
-
}
|
|
1370
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
1371
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
1372
|
-
}
|
|
1373
|
-
return num;
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
function isSet(value: any): boolean {
|
|
1377
|
-
return value !== null && value !== undefined;
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
export interface MessageFns<T> {
|
|
1381
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1382
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1383
|
-
fromJSON(object: any): T;
|
|
1384
|
-
toJSON(message: T): unknown;
|
|
1385
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
1386
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
1387
|
-
}
|