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,1178 +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/distribution/v1beta1/tx.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Coin } from "../../base/v1beta1/coin";
|
|
10
|
-
import { Params } from "./distribution";
|
|
11
|
-
|
|
12
|
-
export const protobufPackage = "cosmos.distribution.v1beta1";
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* MsgSetWithdrawAddress sets the withdraw address for
|
|
16
|
-
* a delegator (or validator self-delegation).
|
|
17
|
-
*/
|
|
18
|
-
export interface MsgSetWithdrawAddress {
|
|
19
|
-
delegatorAddress: string;
|
|
20
|
-
withdrawAddress: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response
|
|
25
|
-
* type.
|
|
26
|
-
*/
|
|
27
|
-
export interface MsgSetWithdrawAddressResponse {
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator
|
|
32
|
-
* from a single validator.
|
|
33
|
-
*/
|
|
34
|
-
export interface MsgWithdrawDelegatorReward {
|
|
35
|
-
delegatorAddress: string;
|
|
36
|
-
validatorAddress: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward
|
|
41
|
-
* response type.
|
|
42
|
-
*/
|
|
43
|
-
export interface MsgWithdrawDelegatorRewardResponse {
|
|
44
|
-
/** Since: cosmos-sdk 0.46 */
|
|
45
|
-
amount: Coin[];
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* MsgWithdrawValidatorCommission withdraws the full commission to the validator
|
|
50
|
-
* address.
|
|
51
|
-
*/
|
|
52
|
-
export interface MsgWithdrawValidatorCommission {
|
|
53
|
-
validatorAddress: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* MsgWithdrawValidatorCommissionResponse defines the
|
|
58
|
-
* Msg/WithdrawValidatorCommission response type.
|
|
59
|
-
*/
|
|
60
|
-
export interface MsgWithdrawValidatorCommissionResponse {
|
|
61
|
-
/** Since: cosmos-sdk 0.46 */
|
|
62
|
-
amount: Coin[];
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* MsgFundCommunityPool allows an account to directly
|
|
67
|
-
* fund the community pool.
|
|
68
|
-
*/
|
|
69
|
-
export interface MsgFundCommunityPool {
|
|
70
|
-
amount: Coin[];
|
|
71
|
-
depositor: string;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */
|
|
75
|
-
export interface MsgFundCommunityPoolResponse {
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
80
|
-
*
|
|
81
|
-
* Since: cosmos-sdk 0.47
|
|
82
|
-
*/
|
|
83
|
-
export interface MsgUpdateParams {
|
|
84
|
-
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
85
|
-
authority: string;
|
|
86
|
-
/**
|
|
87
|
-
* params defines the x/distribution parameters to update.
|
|
88
|
-
*
|
|
89
|
-
* NOTE: All parameters must be supplied.
|
|
90
|
-
*/
|
|
91
|
-
params: Params | undefined;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
96
|
-
* MsgUpdateParams message.
|
|
97
|
-
*
|
|
98
|
-
* Since: cosmos-sdk 0.47
|
|
99
|
-
*/
|
|
100
|
-
export interface MsgUpdateParamsResponse {
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* MsgCommunityPoolSpend defines a message for sending tokens from the community
|
|
105
|
-
* pool to another account. This message is typically executed via a governance
|
|
106
|
-
* proposal with the governance module being the executing authority.
|
|
107
|
-
*
|
|
108
|
-
* Since: cosmos-sdk 0.47
|
|
109
|
-
*/
|
|
110
|
-
export interface MsgCommunityPoolSpend {
|
|
111
|
-
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
112
|
-
authority: string;
|
|
113
|
-
recipient: string;
|
|
114
|
-
amount: Coin[];
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* MsgCommunityPoolSpendResponse defines the response to executing a
|
|
119
|
-
* MsgCommunityPoolSpend message.
|
|
120
|
-
*
|
|
121
|
-
* Since: cosmos-sdk 0.47
|
|
122
|
-
*/
|
|
123
|
-
export interface MsgCommunityPoolSpendResponse {
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* DepositValidatorRewardsPool defines the request structure to provide
|
|
128
|
-
* additional rewards to delegators from a specific validator.
|
|
129
|
-
*
|
|
130
|
-
* Since: cosmos-sdk 0.50
|
|
131
|
-
*/
|
|
132
|
-
export interface MsgDepositValidatorRewardsPool {
|
|
133
|
-
depositor: string;
|
|
134
|
-
validatorAddress: string;
|
|
135
|
-
amount: Coin[];
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* MsgDepositValidatorRewardsPoolResponse defines the response to executing a
|
|
140
|
-
* MsgDepositValidatorRewardsPool message.
|
|
141
|
-
*
|
|
142
|
-
* Since: cosmos-sdk 0.50
|
|
143
|
-
*/
|
|
144
|
-
export interface MsgDepositValidatorRewardsPoolResponse {
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
function createBaseMsgSetWithdrawAddress(): MsgSetWithdrawAddress {
|
|
148
|
-
return { delegatorAddress: "", withdrawAddress: "" };
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export const MsgSetWithdrawAddress: MessageFns<MsgSetWithdrawAddress> = {
|
|
152
|
-
encode(message: MsgSetWithdrawAddress, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
153
|
-
if (message.delegatorAddress !== "") {
|
|
154
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
155
|
-
}
|
|
156
|
-
if (message.withdrawAddress !== "") {
|
|
157
|
-
writer.uint32(18).string(message.withdrawAddress);
|
|
158
|
-
}
|
|
159
|
-
return writer;
|
|
160
|
-
},
|
|
161
|
-
|
|
162
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddress {
|
|
163
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
164
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
165
|
-
const message = createBaseMsgSetWithdrawAddress();
|
|
166
|
-
while (reader.pos < end) {
|
|
167
|
-
const tag = reader.uint32();
|
|
168
|
-
switch (tag >>> 3) {
|
|
169
|
-
case 1: {
|
|
170
|
-
if (tag !== 10) {
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
message.delegatorAddress = reader.string();
|
|
175
|
-
continue;
|
|
176
|
-
}
|
|
177
|
-
case 2: {
|
|
178
|
-
if (tag !== 18) {
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
message.withdrawAddress = reader.string();
|
|
183
|
-
continue;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
reader.skip(tag & 7);
|
|
190
|
-
}
|
|
191
|
-
return message;
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
fromJSON(object: any): MsgSetWithdrawAddress {
|
|
195
|
-
return {
|
|
196
|
-
delegatorAddress: isSet(object.delegatorAddress) ? globalThis.String(object.delegatorAddress) : "",
|
|
197
|
-
withdrawAddress: isSet(object.withdrawAddress) ? globalThis.String(object.withdrawAddress) : "",
|
|
198
|
-
};
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
toJSON(message: MsgSetWithdrawAddress): unknown {
|
|
202
|
-
const obj: any = {};
|
|
203
|
-
if (message.delegatorAddress !== "") {
|
|
204
|
-
obj.delegatorAddress = message.delegatorAddress;
|
|
205
|
-
}
|
|
206
|
-
if (message.withdrawAddress !== "") {
|
|
207
|
-
obj.withdrawAddress = message.withdrawAddress;
|
|
208
|
-
}
|
|
209
|
-
return obj;
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
create<I extends Exact<DeepPartial<MsgSetWithdrawAddress>, I>>(base?: I): MsgSetWithdrawAddress {
|
|
213
|
-
return MsgSetWithdrawAddress.fromPartial(base ?? ({} as any));
|
|
214
|
-
},
|
|
215
|
-
fromPartial<I extends Exact<DeepPartial<MsgSetWithdrawAddress>, I>>(object: I): MsgSetWithdrawAddress {
|
|
216
|
-
const message = createBaseMsgSetWithdrawAddress();
|
|
217
|
-
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
218
|
-
message.withdrawAddress = object.withdrawAddress ?? "";
|
|
219
|
-
return message;
|
|
220
|
-
},
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
function createBaseMsgSetWithdrawAddressResponse(): MsgSetWithdrawAddressResponse {
|
|
224
|
-
return {};
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export const MsgSetWithdrawAddressResponse: MessageFns<MsgSetWithdrawAddressResponse> = {
|
|
228
|
-
encode(_: MsgSetWithdrawAddressResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
229
|
-
return writer;
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddressResponse {
|
|
233
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
234
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
235
|
-
const message = createBaseMsgSetWithdrawAddressResponse();
|
|
236
|
-
while (reader.pos < end) {
|
|
237
|
-
const tag = reader.uint32();
|
|
238
|
-
switch (tag >>> 3) {
|
|
239
|
-
}
|
|
240
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
241
|
-
break;
|
|
242
|
-
}
|
|
243
|
-
reader.skip(tag & 7);
|
|
244
|
-
}
|
|
245
|
-
return message;
|
|
246
|
-
},
|
|
247
|
-
|
|
248
|
-
fromJSON(_: any): MsgSetWithdrawAddressResponse {
|
|
249
|
-
return {};
|
|
250
|
-
},
|
|
251
|
-
|
|
252
|
-
toJSON(_: MsgSetWithdrawAddressResponse): unknown {
|
|
253
|
-
const obj: any = {};
|
|
254
|
-
return obj;
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
create<I extends Exact<DeepPartial<MsgSetWithdrawAddressResponse>, I>>(base?: I): MsgSetWithdrawAddressResponse {
|
|
258
|
-
return MsgSetWithdrawAddressResponse.fromPartial(base ?? ({} as any));
|
|
259
|
-
},
|
|
260
|
-
fromPartial<I extends Exact<DeepPartial<MsgSetWithdrawAddressResponse>, I>>(_: I): MsgSetWithdrawAddressResponse {
|
|
261
|
-
const message = createBaseMsgSetWithdrawAddressResponse();
|
|
262
|
-
return message;
|
|
263
|
-
},
|
|
264
|
-
};
|
|
265
|
-
|
|
266
|
-
function createBaseMsgWithdrawDelegatorReward(): MsgWithdrawDelegatorReward {
|
|
267
|
-
return { delegatorAddress: "", validatorAddress: "" };
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
export const MsgWithdrawDelegatorReward: MessageFns<MsgWithdrawDelegatorReward> = {
|
|
271
|
-
encode(message: MsgWithdrawDelegatorReward, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
272
|
-
if (message.delegatorAddress !== "") {
|
|
273
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
274
|
-
}
|
|
275
|
-
if (message.validatorAddress !== "") {
|
|
276
|
-
writer.uint32(18).string(message.validatorAddress);
|
|
277
|
-
}
|
|
278
|
-
return writer;
|
|
279
|
-
},
|
|
280
|
-
|
|
281
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorReward {
|
|
282
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
283
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
284
|
-
const message = createBaseMsgWithdrawDelegatorReward();
|
|
285
|
-
while (reader.pos < end) {
|
|
286
|
-
const tag = reader.uint32();
|
|
287
|
-
switch (tag >>> 3) {
|
|
288
|
-
case 1: {
|
|
289
|
-
if (tag !== 10) {
|
|
290
|
-
break;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
message.delegatorAddress = reader.string();
|
|
294
|
-
continue;
|
|
295
|
-
}
|
|
296
|
-
case 2: {
|
|
297
|
-
if (tag !== 18) {
|
|
298
|
-
break;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
message.validatorAddress = reader.string();
|
|
302
|
-
continue;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
306
|
-
break;
|
|
307
|
-
}
|
|
308
|
-
reader.skip(tag & 7);
|
|
309
|
-
}
|
|
310
|
-
return message;
|
|
311
|
-
},
|
|
312
|
-
|
|
313
|
-
fromJSON(object: any): MsgWithdrawDelegatorReward {
|
|
314
|
-
return {
|
|
315
|
-
delegatorAddress: isSet(object.delegatorAddress) ? globalThis.String(object.delegatorAddress) : "",
|
|
316
|
-
validatorAddress: isSet(object.validatorAddress) ? globalThis.String(object.validatorAddress) : "",
|
|
317
|
-
};
|
|
318
|
-
},
|
|
319
|
-
|
|
320
|
-
toJSON(message: MsgWithdrawDelegatorReward): unknown {
|
|
321
|
-
const obj: any = {};
|
|
322
|
-
if (message.delegatorAddress !== "") {
|
|
323
|
-
obj.delegatorAddress = message.delegatorAddress;
|
|
324
|
-
}
|
|
325
|
-
if (message.validatorAddress !== "") {
|
|
326
|
-
obj.validatorAddress = message.validatorAddress;
|
|
327
|
-
}
|
|
328
|
-
return obj;
|
|
329
|
-
},
|
|
330
|
-
|
|
331
|
-
create<I extends Exact<DeepPartial<MsgWithdrawDelegatorReward>, I>>(base?: I): MsgWithdrawDelegatorReward {
|
|
332
|
-
return MsgWithdrawDelegatorReward.fromPartial(base ?? ({} as any));
|
|
333
|
-
},
|
|
334
|
-
fromPartial<I extends Exact<DeepPartial<MsgWithdrawDelegatorReward>, I>>(object: I): MsgWithdrawDelegatorReward {
|
|
335
|
-
const message = createBaseMsgWithdrawDelegatorReward();
|
|
336
|
-
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
337
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
338
|
-
return message;
|
|
339
|
-
},
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
function createBaseMsgWithdrawDelegatorRewardResponse(): MsgWithdrawDelegatorRewardResponse {
|
|
343
|
-
return { amount: [] };
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
export const MsgWithdrawDelegatorRewardResponse: MessageFns<MsgWithdrawDelegatorRewardResponse> = {
|
|
347
|
-
encode(message: MsgWithdrawDelegatorRewardResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
348
|
-
for (const v of message.amount) {
|
|
349
|
-
Coin.encode(v!, writer.uint32(10).fork()).join();
|
|
350
|
-
}
|
|
351
|
-
return writer;
|
|
352
|
-
},
|
|
353
|
-
|
|
354
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorRewardResponse {
|
|
355
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
356
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
357
|
-
const message = createBaseMsgWithdrawDelegatorRewardResponse();
|
|
358
|
-
while (reader.pos < end) {
|
|
359
|
-
const tag = reader.uint32();
|
|
360
|
-
switch (tag >>> 3) {
|
|
361
|
-
case 1: {
|
|
362
|
-
if (tag !== 10) {
|
|
363
|
-
break;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
367
|
-
continue;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
371
|
-
break;
|
|
372
|
-
}
|
|
373
|
-
reader.skip(tag & 7);
|
|
374
|
-
}
|
|
375
|
-
return message;
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
fromJSON(object: any): MsgWithdrawDelegatorRewardResponse {
|
|
379
|
-
return { amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [] };
|
|
380
|
-
},
|
|
381
|
-
|
|
382
|
-
toJSON(message: MsgWithdrawDelegatorRewardResponse): unknown {
|
|
383
|
-
const obj: any = {};
|
|
384
|
-
if (message.amount?.length) {
|
|
385
|
-
obj.amount = message.amount.map((e) => Coin.toJSON(e));
|
|
386
|
-
}
|
|
387
|
-
return obj;
|
|
388
|
-
},
|
|
389
|
-
|
|
390
|
-
create<I extends Exact<DeepPartial<MsgWithdrawDelegatorRewardResponse>, I>>(
|
|
391
|
-
base?: I,
|
|
392
|
-
): MsgWithdrawDelegatorRewardResponse {
|
|
393
|
-
return MsgWithdrawDelegatorRewardResponse.fromPartial(base ?? ({} as any));
|
|
394
|
-
},
|
|
395
|
-
fromPartial<I extends Exact<DeepPartial<MsgWithdrawDelegatorRewardResponse>, I>>(
|
|
396
|
-
object: I,
|
|
397
|
-
): MsgWithdrawDelegatorRewardResponse {
|
|
398
|
-
const message = createBaseMsgWithdrawDelegatorRewardResponse();
|
|
399
|
-
message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || [];
|
|
400
|
-
return message;
|
|
401
|
-
},
|
|
402
|
-
};
|
|
403
|
-
|
|
404
|
-
function createBaseMsgWithdrawValidatorCommission(): MsgWithdrawValidatorCommission {
|
|
405
|
-
return { validatorAddress: "" };
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
export const MsgWithdrawValidatorCommission: MessageFns<MsgWithdrawValidatorCommission> = {
|
|
409
|
-
encode(message: MsgWithdrawValidatorCommission, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
410
|
-
if (message.validatorAddress !== "") {
|
|
411
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
412
|
-
}
|
|
413
|
-
return writer;
|
|
414
|
-
},
|
|
415
|
-
|
|
416
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommission {
|
|
417
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
418
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
419
|
-
const message = createBaseMsgWithdrawValidatorCommission();
|
|
420
|
-
while (reader.pos < end) {
|
|
421
|
-
const tag = reader.uint32();
|
|
422
|
-
switch (tag >>> 3) {
|
|
423
|
-
case 1: {
|
|
424
|
-
if (tag !== 10) {
|
|
425
|
-
break;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
message.validatorAddress = reader.string();
|
|
429
|
-
continue;
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
433
|
-
break;
|
|
434
|
-
}
|
|
435
|
-
reader.skip(tag & 7);
|
|
436
|
-
}
|
|
437
|
-
return message;
|
|
438
|
-
},
|
|
439
|
-
|
|
440
|
-
fromJSON(object: any): MsgWithdrawValidatorCommission {
|
|
441
|
-
return { validatorAddress: isSet(object.validatorAddress) ? globalThis.String(object.validatorAddress) : "" };
|
|
442
|
-
},
|
|
443
|
-
|
|
444
|
-
toJSON(message: MsgWithdrawValidatorCommission): unknown {
|
|
445
|
-
const obj: any = {};
|
|
446
|
-
if (message.validatorAddress !== "") {
|
|
447
|
-
obj.validatorAddress = message.validatorAddress;
|
|
448
|
-
}
|
|
449
|
-
return obj;
|
|
450
|
-
},
|
|
451
|
-
|
|
452
|
-
create<I extends Exact<DeepPartial<MsgWithdrawValidatorCommission>, I>>(base?: I): MsgWithdrawValidatorCommission {
|
|
453
|
-
return MsgWithdrawValidatorCommission.fromPartial(base ?? ({} as any));
|
|
454
|
-
},
|
|
455
|
-
fromPartial<I extends Exact<DeepPartial<MsgWithdrawValidatorCommission>, I>>(
|
|
456
|
-
object: I,
|
|
457
|
-
): MsgWithdrawValidatorCommission {
|
|
458
|
-
const message = createBaseMsgWithdrawValidatorCommission();
|
|
459
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
460
|
-
return message;
|
|
461
|
-
},
|
|
462
|
-
};
|
|
463
|
-
|
|
464
|
-
function createBaseMsgWithdrawValidatorCommissionResponse(): MsgWithdrawValidatorCommissionResponse {
|
|
465
|
-
return { amount: [] };
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
export const MsgWithdrawValidatorCommissionResponse: MessageFns<MsgWithdrawValidatorCommissionResponse> = {
|
|
469
|
-
encode(message: MsgWithdrawValidatorCommissionResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
470
|
-
for (const v of message.amount) {
|
|
471
|
-
Coin.encode(v!, writer.uint32(10).fork()).join();
|
|
472
|
-
}
|
|
473
|
-
return writer;
|
|
474
|
-
},
|
|
475
|
-
|
|
476
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommissionResponse {
|
|
477
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
478
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
479
|
-
const message = createBaseMsgWithdrawValidatorCommissionResponse();
|
|
480
|
-
while (reader.pos < end) {
|
|
481
|
-
const tag = reader.uint32();
|
|
482
|
-
switch (tag >>> 3) {
|
|
483
|
-
case 1: {
|
|
484
|
-
if (tag !== 10) {
|
|
485
|
-
break;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
489
|
-
continue;
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
493
|
-
break;
|
|
494
|
-
}
|
|
495
|
-
reader.skip(tag & 7);
|
|
496
|
-
}
|
|
497
|
-
return message;
|
|
498
|
-
},
|
|
499
|
-
|
|
500
|
-
fromJSON(object: any): MsgWithdrawValidatorCommissionResponse {
|
|
501
|
-
return { amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [] };
|
|
502
|
-
},
|
|
503
|
-
|
|
504
|
-
toJSON(message: MsgWithdrawValidatorCommissionResponse): unknown {
|
|
505
|
-
const obj: any = {};
|
|
506
|
-
if (message.amount?.length) {
|
|
507
|
-
obj.amount = message.amount.map((e) => Coin.toJSON(e));
|
|
508
|
-
}
|
|
509
|
-
return obj;
|
|
510
|
-
},
|
|
511
|
-
|
|
512
|
-
create<I extends Exact<DeepPartial<MsgWithdrawValidatorCommissionResponse>, I>>(
|
|
513
|
-
base?: I,
|
|
514
|
-
): MsgWithdrawValidatorCommissionResponse {
|
|
515
|
-
return MsgWithdrawValidatorCommissionResponse.fromPartial(base ?? ({} as any));
|
|
516
|
-
},
|
|
517
|
-
fromPartial<I extends Exact<DeepPartial<MsgWithdrawValidatorCommissionResponse>, I>>(
|
|
518
|
-
object: I,
|
|
519
|
-
): MsgWithdrawValidatorCommissionResponse {
|
|
520
|
-
const message = createBaseMsgWithdrawValidatorCommissionResponse();
|
|
521
|
-
message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || [];
|
|
522
|
-
return message;
|
|
523
|
-
},
|
|
524
|
-
};
|
|
525
|
-
|
|
526
|
-
function createBaseMsgFundCommunityPool(): MsgFundCommunityPool {
|
|
527
|
-
return { amount: [], depositor: "" };
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
export const MsgFundCommunityPool: MessageFns<MsgFundCommunityPool> = {
|
|
531
|
-
encode(message: MsgFundCommunityPool, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
532
|
-
for (const v of message.amount) {
|
|
533
|
-
Coin.encode(v!, writer.uint32(10).fork()).join();
|
|
534
|
-
}
|
|
535
|
-
if (message.depositor !== "") {
|
|
536
|
-
writer.uint32(18).string(message.depositor);
|
|
537
|
-
}
|
|
538
|
-
return writer;
|
|
539
|
-
},
|
|
540
|
-
|
|
541
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPool {
|
|
542
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
543
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
544
|
-
const message = createBaseMsgFundCommunityPool();
|
|
545
|
-
while (reader.pos < end) {
|
|
546
|
-
const tag = reader.uint32();
|
|
547
|
-
switch (tag >>> 3) {
|
|
548
|
-
case 1: {
|
|
549
|
-
if (tag !== 10) {
|
|
550
|
-
break;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
554
|
-
continue;
|
|
555
|
-
}
|
|
556
|
-
case 2: {
|
|
557
|
-
if (tag !== 18) {
|
|
558
|
-
break;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
message.depositor = reader.string();
|
|
562
|
-
continue;
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
566
|
-
break;
|
|
567
|
-
}
|
|
568
|
-
reader.skip(tag & 7);
|
|
569
|
-
}
|
|
570
|
-
return message;
|
|
571
|
-
},
|
|
572
|
-
|
|
573
|
-
fromJSON(object: any): MsgFundCommunityPool {
|
|
574
|
-
return {
|
|
575
|
-
amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [],
|
|
576
|
-
depositor: isSet(object.depositor) ? globalThis.String(object.depositor) : "",
|
|
577
|
-
};
|
|
578
|
-
},
|
|
579
|
-
|
|
580
|
-
toJSON(message: MsgFundCommunityPool): unknown {
|
|
581
|
-
const obj: any = {};
|
|
582
|
-
if (message.amount?.length) {
|
|
583
|
-
obj.amount = message.amount.map((e) => Coin.toJSON(e));
|
|
584
|
-
}
|
|
585
|
-
if (message.depositor !== "") {
|
|
586
|
-
obj.depositor = message.depositor;
|
|
587
|
-
}
|
|
588
|
-
return obj;
|
|
589
|
-
},
|
|
590
|
-
|
|
591
|
-
create<I extends Exact<DeepPartial<MsgFundCommunityPool>, I>>(base?: I): MsgFundCommunityPool {
|
|
592
|
-
return MsgFundCommunityPool.fromPartial(base ?? ({} as any));
|
|
593
|
-
},
|
|
594
|
-
fromPartial<I extends Exact<DeepPartial<MsgFundCommunityPool>, I>>(object: I): MsgFundCommunityPool {
|
|
595
|
-
const message = createBaseMsgFundCommunityPool();
|
|
596
|
-
message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || [];
|
|
597
|
-
message.depositor = object.depositor ?? "";
|
|
598
|
-
return message;
|
|
599
|
-
},
|
|
600
|
-
};
|
|
601
|
-
|
|
602
|
-
function createBaseMsgFundCommunityPoolResponse(): MsgFundCommunityPoolResponse {
|
|
603
|
-
return {};
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
export const MsgFundCommunityPoolResponse: MessageFns<MsgFundCommunityPoolResponse> = {
|
|
607
|
-
encode(_: MsgFundCommunityPoolResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
608
|
-
return writer;
|
|
609
|
-
},
|
|
610
|
-
|
|
611
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPoolResponse {
|
|
612
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
613
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
614
|
-
const message = createBaseMsgFundCommunityPoolResponse();
|
|
615
|
-
while (reader.pos < end) {
|
|
616
|
-
const tag = reader.uint32();
|
|
617
|
-
switch (tag >>> 3) {
|
|
618
|
-
}
|
|
619
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
620
|
-
break;
|
|
621
|
-
}
|
|
622
|
-
reader.skip(tag & 7);
|
|
623
|
-
}
|
|
624
|
-
return message;
|
|
625
|
-
},
|
|
626
|
-
|
|
627
|
-
fromJSON(_: any): MsgFundCommunityPoolResponse {
|
|
628
|
-
return {};
|
|
629
|
-
},
|
|
630
|
-
|
|
631
|
-
toJSON(_: MsgFundCommunityPoolResponse): unknown {
|
|
632
|
-
const obj: any = {};
|
|
633
|
-
return obj;
|
|
634
|
-
},
|
|
635
|
-
|
|
636
|
-
create<I extends Exact<DeepPartial<MsgFundCommunityPoolResponse>, I>>(base?: I): MsgFundCommunityPoolResponse {
|
|
637
|
-
return MsgFundCommunityPoolResponse.fromPartial(base ?? ({} as any));
|
|
638
|
-
},
|
|
639
|
-
fromPartial<I extends Exact<DeepPartial<MsgFundCommunityPoolResponse>, I>>(_: I): MsgFundCommunityPoolResponse {
|
|
640
|
-
const message = createBaseMsgFundCommunityPoolResponse();
|
|
641
|
-
return message;
|
|
642
|
-
},
|
|
643
|
-
};
|
|
644
|
-
|
|
645
|
-
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
646
|
-
return { authority: "", params: undefined };
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
export const MsgUpdateParams: MessageFns<MsgUpdateParams> = {
|
|
650
|
-
encode(message: MsgUpdateParams, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
651
|
-
if (message.authority !== "") {
|
|
652
|
-
writer.uint32(10).string(message.authority);
|
|
653
|
-
}
|
|
654
|
-
if (message.params !== undefined) {
|
|
655
|
-
Params.encode(message.params, writer.uint32(18).fork()).join();
|
|
656
|
-
}
|
|
657
|
-
return writer;
|
|
658
|
-
},
|
|
659
|
-
|
|
660
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
|
|
661
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
662
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
663
|
-
const message = createBaseMsgUpdateParams();
|
|
664
|
-
while (reader.pos < end) {
|
|
665
|
-
const tag = reader.uint32();
|
|
666
|
-
switch (tag >>> 3) {
|
|
667
|
-
case 1: {
|
|
668
|
-
if (tag !== 10) {
|
|
669
|
-
break;
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
message.authority = reader.string();
|
|
673
|
-
continue;
|
|
674
|
-
}
|
|
675
|
-
case 2: {
|
|
676
|
-
if (tag !== 18) {
|
|
677
|
-
break;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
681
|
-
continue;
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
685
|
-
break;
|
|
686
|
-
}
|
|
687
|
-
reader.skip(tag & 7);
|
|
688
|
-
}
|
|
689
|
-
return message;
|
|
690
|
-
},
|
|
691
|
-
|
|
692
|
-
fromJSON(object: any): MsgUpdateParams {
|
|
693
|
-
return {
|
|
694
|
-
authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
|
|
695
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
696
|
-
};
|
|
697
|
-
},
|
|
698
|
-
|
|
699
|
-
toJSON(message: MsgUpdateParams): unknown {
|
|
700
|
-
const obj: any = {};
|
|
701
|
-
if (message.authority !== "") {
|
|
702
|
-
obj.authority = message.authority;
|
|
703
|
-
}
|
|
704
|
-
if (message.params !== undefined) {
|
|
705
|
-
obj.params = Params.toJSON(message.params);
|
|
706
|
-
}
|
|
707
|
-
return obj;
|
|
708
|
-
},
|
|
709
|
-
|
|
710
|
-
create<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(base?: I): MsgUpdateParams {
|
|
711
|
-
return MsgUpdateParams.fromPartial(base ?? ({} as any));
|
|
712
|
-
},
|
|
713
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(object: I): MsgUpdateParams {
|
|
714
|
-
const message = createBaseMsgUpdateParams();
|
|
715
|
-
message.authority = object.authority ?? "";
|
|
716
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
717
|
-
? Params.fromPartial(object.params)
|
|
718
|
-
: undefined;
|
|
719
|
-
return message;
|
|
720
|
-
},
|
|
721
|
-
};
|
|
722
|
-
|
|
723
|
-
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
724
|
-
return {};
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
export const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse> = {
|
|
728
|
-
encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
729
|
-
return writer;
|
|
730
|
-
},
|
|
731
|
-
|
|
732
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
733
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
734
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
735
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
736
|
-
while (reader.pos < end) {
|
|
737
|
-
const tag = reader.uint32();
|
|
738
|
-
switch (tag >>> 3) {
|
|
739
|
-
}
|
|
740
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
741
|
-
break;
|
|
742
|
-
}
|
|
743
|
-
reader.skip(tag & 7);
|
|
744
|
-
}
|
|
745
|
-
return message;
|
|
746
|
-
},
|
|
747
|
-
|
|
748
|
-
fromJSON(_: any): MsgUpdateParamsResponse {
|
|
749
|
-
return {};
|
|
750
|
-
},
|
|
751
|
-
|
|
752
|
-
toJSON(_: MsgUpdateParamsResponse): unknown {
|
|
753
|
-
const obj: any = {};
|
|
754
|
-
return obj;
|
|
755
|
-
},
|
|
756
|
-
|
|
757
|
-
create<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(base?: I): MsgUpdateParamsResponse {
|
|
758
|
-
return MsgUpdateParamsResponse.fromPartial(base ?? ({} as any));
|
|
759
|
-
},
|
|
760
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse {
|
|
761
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
762
|
-
return message;
|
|
763
|
-
},
|
|
764
|
-
};
|
|
765
|
-
|
|
766
|
-
function createBaseMsgCommunityPoolSpend(): MsgCommunityPoolSpend {
|
|
767
|
-
return { authority: "", recipient: "", amount: [] };
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
export const MsgCommunityPoolSpend: MessageFns<MsgCommunityPoolSpend> = {
|
|
771
|
-
encode(message: MsgCommunityPoolSpend, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
772
|
-
if (message.authority !== "") {
|
|
773
|
-
writer.uint32(10).string(message.authority);
|
|
774
|
-
}
|
|
775
|
-
if (message.recipient !== "") {
|
|
776
|
-
writer.uint32(18).string(message.recipient);
|
|
777
|
-
}
|
|
778
|
-
for (const v of message.amount) {
|
|
779
|
-
Coin.encode(v!, writer.uint32(26).fork()).join();
|
|
780
|
-
}
|
|
781
|
-
return writer;
|
|
782
|
-
},
|
|
783
|
-
|
|
784
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgCommunityPoolSpend {
|
|
785
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
786
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
787
|
-
const message = createBaseMsgCommunityPoolSpend();
|
|
788
|
-
while (reader.pos < end) {
|
|
789
|
-
const tag = reader.uint32();
|
|
790
|
-
switch (tag >>> 3) {
|
|
791
|
-
case 1: {
|
|
792
|
-
if (tag !== 10) {
|
|
793
|
-
break;
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
message.authority = reader.string();
|
|
797
|
-
continue;
|
|
798
|
-
}
|
|
799
|
-
case 2: {
|
|
800
|
-
if (tag !== 18) {
|
|
801
|
-
break;
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
message.recipient = reader.string();
|
|
805
|
-
continue;
|
|
806
|
-
}
|
|
807
|
-
case 3: {
|
|
808
|
-
if (tag !== 26) {
|
|
809
|
-
break;
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
813
|
-
continue;
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
817
|
-
break;
|
|
818
|
-
}
|
|
819
|
-
reader.skip(tag & 7);
|
|
820
|
-
}
|
|
821
|
-
return message;
|
|
822
|
-
},
|
|
823
|
-
|
|
824
|
-
fromJSON(object: any): MsgCommunityPoolSpend {
|
|
825
|
-
return {
|
|
826
|
-
authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
|
|
827
|
-
recipient: isSet(object.recipient) ? globalThis.String(object.recipient) : "",
|
|
828
|
-
amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [],
|
|
829
|
-
};
|
|
830
|
-
},
|
|
831
|
-
|
|
832
|
-
toJSON(message: MsgCommunityPoolSpend): unknown {
|
|
833
|
-
const obj: any = {};
|
|
834
|
-
if (message.authority !== "") {
|
|
835
|
-
obj.authority = message.authority;
|
|
836
|
-
}
|
|
837
|
-
if (message.recipient !== "") {
|
|
838
|
-
obj.recipient = message.recipient;
|
|
839
|
-
}
|
|
840
|
-
if (message.amount?.length) {
|
|
841
|
-
obj.amount = message.amount.map((e) => Coin.toJSON(e));
|
|
842
|
-
}
|
|
843
|
-
return obj;
|
|
844
|
-
},
|
|
845
|
-
|
|
846
|
-
create<I extends Exact<DeepPartial<MsgCommunityPoolSpend>, I>>(base?: I): MsgCommunityPoolSpend {
|
|
847
|
-
return MsgCommunityPoolSpend.fromPartial(base ?? ({} as any));
|
|
848
|
-
},
|
|
849
|
-
fromPartial<I extends Exact<DeepPartial<MsgCommunityPoolSpend>, I>>(object: I): MsgCommunityPoolSpend {
|
|
850
|
-
const message = createBaseMsgCommunityPoolSpend();
|
|
851
|
-
message.authority = object.authority ?? "";
|
|
852
|
-
message.recipient = object.recipient ?? "";
|
|
853
|
-
message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || [];
|
|
854
|
-
return message;
|
|
855
|
-
},
|
|
856
|
-
};
|
|
857
|
-
|
|
858
|
-
function createBaseMsgCommunityPoolSpendResponse(): MsgCommunityPoolSpendResponse {
|
|
859
|
-
return {};
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
export const MsgCommunityPoolSpendResponse: MessageFns<MsgCommunityPoolSpendResponse> = {
|
|
863
|
-
encode(_: MsgCommunityPoolSpendResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
864
|
-
return writer;
|
|
865
|
-
},
|
|
866
|
-
|
|
867
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgCommunityPoolSpendResponse {
|
|
868
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
869
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
870
|
-
const message = createBaseMsgCommunityPoolSpendResponse();
|
|
871
|
-
while (reader.pos < end) {
|
|
872
|
-
const tag = reader.uint32();
|
|
873
|
-
switch (tag >>> 3) {
|
|
874
|
-
}
|
|
875
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
876
|
-
break;
|
|
877
|
-
}
|
|
878
|
-
reader.skip(tag & 7);
|
|
879
|
-
}
|
|
880
|
-
return message;
|
|
881
|
-
},
|
|
882
|
-
|
|
883
|
-
fromJSON(_: any): MsgCommunityPoolSpendResponse {
|
|
884
|
-
return {};
|
|
885
|
-
},
|
|
886
|
-
|
|
887
|
-
toJSON(_: MsgCommunityPoolSpendResponse): unknown {
|
|
888
|
-
const obj: any = {};
|
|
889
|
-
return obj;
|
|
890
|
-
},
|
|
891
|
-
|
|
892
|
-
create<I extends Exact<DeepPartial<MsgCommunityPoolSpendResponse>, I>>(base?: I): MsgCommunityPoolSpendResponse {
|
|
893
|
-
return MsgCommunityPoolSpendResponse.fromPartial(base ?? ({} as any));
|
|
894
|
-
},
|
|
895
|
-
fromPartial<I extends Exact<DeepPartial<MsgCommunityPoolSpendResponse>, I>>(_: I): MsgCommunityPoolSpendResponse {
|
|
896
|
-
const message = createBaseMsgCommunityPoolSpendResponse();
|
|
897
|
-
return message;
|
|
898
|
-
},
|
|
899
|
-
};
|
|
900
|
-
|
|
901
|
-
function createBaseMsgDepositValidatorRewardsPool(): MsgDepositValidatorRewardsPool {
|
|
902
|
-
return { depositor: "", validatorAddress: "", amount: [] };
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
export const MsgDepositValidatorRewardsPool: MessageFns<MsgDepositValidatorRewardsPool> = {
|
|
906
|
-
encode(message: MsgDepositValidatorRewardsPool, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
907
|
-
if (message.depositor !== "") {
|
|
908
|
-
writer.uint32(10).string(message.depositor);
|
|
909
|
-
}
|
|
910
|
-
if (message.validatorAddress !== "") {
|
|
911
|
-
writer.uint32(18).string(message.validatorAddress);
|
|
912
|
-
}
|
|
913
|
-
for (const v of message.amount) {
|
|
914
|
-
Coin.encode(v!, writer.uint32(26).fork()).join();
|
|
915
|
-
}
|
|
916
|
-
return writer;
|
|
917
|
-
},
|
|
918
|
-
|
|
919
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositValidatorRewardsPool {
|
|
920
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
921
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
922
|
-
const message = createBaseMsgDepositValidatorRewardsPool();
|
|
923
|
-
while (reader.pos < end) {
|
|
924
|
-
const tag = reader.uint32();
|
|
925
|
-
switch (tag >>> 3) {
|
|
926
|
-
case 1: {
|
|
927
|
-
if (tag !== 10) {
|
|
928
|
-
break;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
message.depositor = reader.string();
|
|
932
|
-
continue;
|
|
933
|
-
}
|
|
934
|
-
case 2: {
|
|
935
|
-
if (tag !== 18) {
|
|
936
|
-
break;
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
message.validatorAddress = reader.string();
|
|
940
|
-
continue;
|
|
941
|
-
}
|
|
942
|
-
case 3: {
|
|
943
|
-
if (tag !== 26) {
|
|
944
|
-
break;
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
948
|
-
continue;
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
952
|
-
break;
|
|
953
|
-
}
|
|
954
|
-
reader.skip(tag & 7);
|
|
955
|
-
}
|
|
956
|
-
return message;
|
|
957
|
-
},
|
|
958
|
-
|
|
959
|
-
fromJSON(object: any): MsgDepositValidatorRewardsPool {
|
|
960
|
-
return {
|
|
961
|
-
depositor: isSet(object.depositor) ? globalThis.String(object.depositor) : "",
|
|
962
|
-
validatorAddress: isSet(object.validatorAddress) ? globalThis.String(object.validatorAddress) : "",
|
|
963
|
-
amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [],
|
|
964
|
-
};
|
|
965
|
-
},
|
|
966
|
-
|
|
967
|
-
toJSON(message: MsgDepositValidatorRewardsPool): unknown {
|
|
968
|
-
const obj: any = {};
|
|
969
|
-
if (message.depositor !== "") {
|
|
970
|
-
obj.depositor = message.depositor;
|
|
971
|
-
}
|
|
972
|
-
if (message.validatorAddress !== "") {
|
|
973
|
-
obj.validatorAddress = message.validatorAddress;
|
|
974
|
-
}
|
|
975
|
-
if (message.amount?.length) {
|
|
976
|
-
obj.amount = message.amount.map((e) => Coin.toJSON(e));
|
|
977
|
-
}
|
|
978
|
-
return obj;
|
|
979
|
-
},
|
|
980
|
-
|
|
981
|
-
create<I extends Exact<DeepPartial<MsgDepositValidatorRewardsPool>, I>>(base?: I): MsgDepositValidatorRewardsPool {
|
|
982
|
-
return MsgDepositValidatorRewardsPool.fromPartial(base ?? ({} as any));
|
|
983
|
-
},
|
|
984
|
-
fromPartial<I extends Exact<DeepPartial<MsgDepositValidatorRewardsPool>, I>>(
|
|
985
|
-
object: I,
|
|
986
|
-
): MsgDepositValidatorRewardsPool {
|
|
987
|
-
const message = createBaseMsgDepositValidatorRewardsPool();
|
|
988
|
-
message.depositor = object.depositor ?? "";
|
|
989
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
990
|
-
message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || [];
|
|
991
|
-
return message;
|
|
992
|
-
},
|
|
993
|
-
};
|
|
994
|
-
|
|
995
|
-
function createBaseMsgDepositValidatorRewardsPoolResponse(): MsgDepositValidatorRewardsPoolResponse {
|
|
996
|
-
return {};
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
export const MsgDepositValidatorRewardsPoolResponse: MessageFns<MsgDepositValidatorRewardsPoolResponse> = {
|
|
1000
|
-
encode(_: MsgDepositValidatorRewardsPoolResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1001
|
-
return writer;
|
|
1002
|
-
},
|
|
1003
|
-
|
|
1004
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositValidatorRewardsPoolResponse {
|
|
1005
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1006
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1007
|
-
const message = createBaseMsgDepositValidatorRewardsPoolResponse();
|
|
1008
|
-
while (reader.pos < end) {
|
|
1009
|
-
const tag = reader.uint32();
|
|
1010
|
-
switch (tag >>> 3) {
|
|
1011
|
-
}
|
|
1012
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1013
|
-
break;
|
|
1014
|
-
}
|
|
1015
|
-
reader.skip(tag & 7);
|
|
1016
|
-
}
|
|
1017
|
-
return message;
|
|
1018
|
-
},
|
|
1019
|
-
|
|
1020
|
-
fromJSON(_: any): MsgDepositValidatorRewardsPoolResponse {
|
|
1021
|
-
return {};
|
|
1022
|
-
},
|
|
1023
|
-
|
|
1024
|
-
toJSON(_: MsgDepositValidatorRewardsPoolResponse): unknown {
|
|
1025
|
-
const obj: any = {};
|
|
1026
|
-
return obj;
|
|
1027
|
-
},
|
|
1028
|
-
|
|
1029
|
-
create<I extends Exact<DeepPartial<MsgDepositValidatorRewardsPoolResponse>, I>>(
|
|
1030
|
-
base?: I,
|
|
1031
|
-
): MsgDepositValidatorRewardsPoolResponse {
|
|
1032
|
-
return MsgDepositValidatorRewardsPoolResponse.fromPartial(base ?? ({} as any));
|
|
1033
|
-
},
|
|
1034
|
-
fromPartial<I extends Exact<DeepPartial<MsgDepositValidatorRewardsPoolResponse>, I>>(
|
|
1035
|
-
_: I,
|
|
1036
|
-
): MsgDepositValidatorRewardsPoolResponse {
|
|
1037
|
-
const message = createBaseMsgDepositValidatorRewardsPoolResponse();
|
|
1038
|
-
return message;
|
|
1039
|
-
},
|
|
1040
|
-
};
|
|
1041
|
-
|
|
1042
|
-
/** Msg defines the distribution Msg service. */
|
|
1043
|
-
export interface Msg {
|
|
1044
|
-
/**
|
|
1045
|
-
* SetWithdrawAddress defines a method to change the withdraw address
|
|
1046
|
-
* for a delegator (or validator self-delegation).
|
|
1047
|
-
*/
|
|
1048
|
-
SetWithdrawAddress(request: MsgSetWithdrawAddress): Promise<MsgSetWithdrawAddressResponse>;
|
|
1049
|
-
/**
|
|
1050
|
-
* WithdrawDelegatorReward defines a method to withdraw rewards of delegator
|
|
1051
|
-
* from a single validator.
|
|
1052
|
-
*/
|
|
1053
|
-
WithdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise<MsgWithdrawDelegatorRewardResponse>;
|
|
1054
|
-
/**
|
|
1055
|
-
* WithdrawValidatorCommission defines a method to withdraw the
|
|
1056
|
-
* full commission to the validator address.
|
|
1057
|
-
*/
|
|
1058
|
-
WithdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise<MsgWithdrawValidatorCommissionResponse>;
|
|
1059
|
-
/**
|
|
1060
|
-
* FundCommunityPool defines a method to allow an account to directly
|
|
1061
|
-
* fund the community pool.
|
|
1062
|
-
*/
|
|
1063
|
-
FundCommunityPool(request: MsgFundCommunityPool): Promise<MsgFundCommunityPoolResponse>;
|
|
1064
|
-
/**
|
|
1065
|
-
* UpdateParams defines a governance operation for updating the x/distribution
|
|
1066
|
-
* module parameters. The authority is defined in the keeper.
|
|
1067
|
-
*
|
|
1068
|
-
* Since: cosmos-sdk 0.47
|
|
1069
|
-
*/
|
|
1070
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
1071
|
-
/**
|
|
1072
|
-
* CommunityPoolSpend defines a governance operation for sending tokens from
|
|
1073
|
-
* the community pool in the x/distribution module to another account, which
|
|
1074
|
-
* could be the governance module itself. The authority is defined in the
|
|
1075
|
-
* keeper.
|
|
1076
|
-
*
|
|
1077
|
-
* Since: cosmos-sdk 0.47
|
|
1078
|
-
*/
|
|
1079
|
-
CommunityPoolSpend(request: MsgCommunityPoolSpend): Promise<MsgCommunityPoolSpendResponse>;
|
|
1080
|
-
/**
|
|
1081
|
-
* DepositValidatorRewardsPool defines a method to provide additional rewards
|
|
1082
|
-
* to delegators to a specific validator.
|
|
1083
|
-
*
|
|
1084
|
-
* Since: cosmos-sdk 0.50
|
|
1085
|
-
*/
|
|
1086
|
-
DepositValidatorRewardsPool(request: MsgDepositValidatorRewardsPool): Promise<MsgDepositValidatorRewardsPoolResponse>;
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
export const MsgServiceName = "cosmos.distribution.v1beta1.Msg";
|
|
1090
|
-
export class MsgClientImpl implements Msg {
|
|
1091
|
-
private readonly rpc: Rpc;
|
|
1092
|
-
private readonly service: string;
|
|
1093
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
1094
|
-
this.service = opts?.service || MsgServiceName;
|
|
1095
|
-
this.rpc = rpc;
|
|
1096
|
-
this.SetWithdrawAddress = this.SetWithdrawAddress.bind(this);
|
|
1097
|
-
this.WithdrawDelegatorReward = this.WithdrawDelegatorReward.bind(this);
|
|
1098
|
-
this.WithdrawValidatorCommission = this.WithdrawValidatorCommission.bind(this);
|
|
1099
|
-
this.FundCommunityPool = this.FundCommunityPool.bind(this);
|
|
1100
|
-
this.UpdateParams = this.UpdateParams.bind(this);
|
|
1101
|
-
this.CommunityPoolSpend = this.CommunityPoolSpend.bind(this);
|
|
1102
|
-
this.DepositValidatorRewardsPool = this.DepositValidatorRewardsPool.bind(this);
|
|
1103
|
-
}
|
|
1104
|
-
SetWithdrawAddress(request: MsgSetWithdrawAddress): Promise<MsgSetWithdrawAddressResponse> {
|
|
1105
|
-
const data = MsgSetWithdrawAddress.encode(request).finish();
|
|
1106
|
-
const promise = this.rpc.request(this.service, "SetWithdrawAddress", data);
|
|
1107
|
-
return promise.then((data) => MsgSetWithdrawAddressResponse.decode(new BinaryReader(data)));
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
WithdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise<MsgWithdrawDelegatorRewardResponse> {
|
|
1111
|
-
const data = MsgWithdrawDelegatorReward.encode(request).finish();
|
|
1112
|
-
const promise = this.rpc.request(this.service, "WithdrawDelegatorReward", data);
|
|
1113
|
-
return promise.then((data) => MsgWithdrawDelegatorRewardResponse.decode(new BinaryReader(data)));
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
WithdrawValidatorCommission(
|
|
1117
|
-
request: MsgWithdrawValidatorCommission,
|
|
1118
|
-
): Promise<MsgWithdrawValidatorCommissionResponse> {
|
|
1119
|
-
const data = MsgWithdrawValidatorCommission.encode(request).finish();
|
|
1120
|
-
const promise = this.rpc.request(this.service, "WithdrawValidatorCommission", data);
|
|
1121
|
-
return promise.then((data) => MsgWithdrawValidatorCommissionResponse.decode(new BinaryReader(data)));
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
FundCommunityPool(request: MsgFundCommunityPool): Promise<MsgFundCommunityPoolResponse> {
|
|
1125
|
-
const data = MsgFundCommunityPool.encode(request).finish();
|
|
1126
|
-
const promise = this.rpc.request(this.service, "FundCommunityPool", data);
|
|
1127
|
-
return promise.then((data) => MsgFundCommunityPoolResponse.decode(new BinaryReader(data)));
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse> {
|
|
1131
|
-
const data = MsgUpdateParams.encode(request).finish();
|
|
1132
|
-
const promise = this.rpc.request(this.service, "UpdateParams", data);
|
|
1133
|
-
return promise.then((data) => MsgUpdateParamsResponse.decode(new BinaryReader(data)));
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
CommunityPoolSpend(request: MsgCommunityPoolSpend): Promise<MsgCommunityPoolSpendResponse> {
|
|
1137
|
-
const data = MsgCommunityPoolSpend.encode(request).finish();
|
|
1138
|
-
const promise = this.rpc.request(this.service, "CommunityPoolSpend", data);
|
|
1139
|
-
return promise.then((data) => MsgCommunityPoolSpendResponse.decode(new BinaryReader(data)));
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
DepositValidatorRewardsPool(
|
|
1143
|
-
request: MsgDepositValidatorRewardsPool,
|
|
1144
|
-
): Promise<MsgDepositValidatorRewardsPoolResponse> {
|
|
1145
|
-
const data = MsgDepositValidatorRewardsPool.encode(request).finish();
|
|
1146
|
-
const promise = this.rpc.request(this.service, "DepositValidatorRewardsPool", data);
|
|
1147
|
-
return promise.then((data) => MsgDepositValidatorRewardsPoolResponse.decode(new BinaryReader(data)));
|
|
1148
|
-
}
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
interface Rpc {
|
|
1152
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1156
|
-
|
|
1157
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
1158
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
1159
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
1160
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
1161
|
-
: Partial<T>;
|
|
1162
|
-
|
|
1163
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1164
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
1165
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
1166
|
-
|
|
1167
|
-
function isSet(value: any): boolean {
|
|
1168
|
-
return value !== null && value !== undefined;
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
export interface MessageFns<T> {
|
|
1172
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1173
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1174
|
-
fromJSON(object: any): T;
|
|
1175
|
-
toJSON(message: T): unknown;
|
|
1176
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
1177
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
1178
|
-
}
|