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,1433 +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/staking/v1beta1/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 { CommissionRates, Description, Params } from "./staking";
|
|
13
|
-
|
|
14
|
-
export const protobufPackage = "cosmos.staking.v1beta1";
|
|
15
|
-
|
|
16
|
-
/** MsgCreateValidator defines a SDK message for creating a new validator. */
|
|
17
|
-
export interface MsgCreateValidator {
|
|
18
|
-
description: Description | undefined;
|
|
19
|
-
commission: CommissionRates | undefined;
|
|
20
|
-
minSelfDelegation: string;
|
|
21
|
-
/**
|
|
22
|
-
* Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated.
|
|
23
|
-
* The validator address bytes and delegator address bytes refer to the same account while creating validator (defer
|
|
24
|
-
* only in bech32 notation).
|
|
25
|
-
*
|
|
26
|
-
* @deprecated
|
|
27
|
-
*/
|
|
28
|
-
delegatorAddress: string;
|
|
29
|
-
validatorAddress: string;
|
|
30
|
-
pubkey: Any | undefined;
|
|
31
|
-
value: Coin | undefined;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */
|
|
35
|
-
export interface MsgCreateValidatorResponse {
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/** MsgEditValidator defines a SDK message for editing an existing validator. */
|
|
39
|
-
export interface MsgEditValidator {
|
|
40
|
-
description: Description | undefined;
|
|
41
|
-
validatorAddress: string;
|
|
42
|
-
/**
|
|
43
|
-
* We pass a reference to the new commission rate and min self delegation as
|
|
44
|
-
* it's not mandatory to update. If not updated, the deserialized rate will be
|
|
45
|
-
* zero with no way to distinguish if an update was intended.
|
|
46
|
-
* REF: #2373
|
|
47
|
-
*/
|
|
48
|
-
commissionRate: string;
|
|
49
|
-
minSelfDelegation: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */
|
|
53
|
-
export interface MsgEditValidatorResponse {
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* MsgDelegate defines a SDK message for performing a delegation of coins
|
|
58
|
-
* from a delegator to a validator.
|
|
59
|
-
*/
|
|
60
|
-
export interface MsgDelegate {
|
|
61
|
-
delegatorAddress: string;
|
|
62
|
-
validatorAddress: string;
|
|
63
|
-
amount: Coin | undefined;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/** MsgDelegateResponse defines the Msg/Delegate response type. */
|
|
67
|
-
export interface MsgDelegateResponse {
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* MsgBeginRedelegate defines a SDK message for performing a redelegation
|
|
72
|
-
* of coins from a delegator and source validator to a destination validator.
|
|
73
|
-
*/
|
|
74
|
-
export interface MsgBeginRedelegate {
|
|
75
|
-
delegatorAddress: string;
|
|
76
|
-
validatorSrcAddress: string;
|
|
77
|
-
validatorDstAddress: string;
|
|
78
|
-
amount: Coin | undefined;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */
|
|
82
|
-
export interface MsgBeginRedelegateResponse {
|
|
83
|
-
completionTime: Date | undefined;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* MsgUndelegate defines a SDK message for performing an undelegation from a
|
|
88
|
-
* delegate and a validator.
|
|
89
|
-
*/
|
|
90
|
-
export interface MsgUndelegate {
|
|
91
|
-
delegatorAddress: string;
|
|
92
|
-
validatorAddress: string;
|
|
93
|
-
amount: Coin | undefined;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/** MsgUndelegateResponse defines the Msg/Undelegate response type. */
|
|
97
|
-
export interface MsgUndelegateResponse {
|
|
98
|
-
completionTime:
|
|
99
|
-
| Date
|
|
100
|
-
| undefined;
|
|
101
|
-
/**
|
|
102
|
-
* amount returns the amount of undelegated coins
|
|
103
|
-
*
|
|
104
|
-
* Since: cosmos-sdk 0.50
|
|
105
|
-
*/
|
|
106
|
-
amount: Coin | undefined;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator
|
|
111
|
-
*
|
|
112
|
-
* Since: cosmos-sdk 0.46
|
|
113
|
-
*/
|
|
114
|
-
export interface MsgCancelUnbondingDelegation {
|
|
115
|
-
delegatorAddress: string;
|
|
116
|
-
validatorAddress: string;
|
|
117
|
-
/** amount is always less than or equal to unbonding delegation entry balance */
|
|
118
|
-
amount:
|
|
119
|
-
| Coin
|
|
120
|
-
| undefined;
|
|
121
|
-
/** creation_height is the height which the unbonding took place. */
|
|
122
|
-
creationHeight: number;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* MsgCancelUnbondingDelegationResponse
|
|
127
|
-
*
|
|
128
|
-
* Since: cosmos-sdk 0.46
|
|
129
|
-
*/
|
|
130
|
-
export interface MsgCancelUnbondingDelegationResponse {
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
135
|
-
*
|
|
136
|
-
* Since: cosmos-sdk 0.47
|
|
137
|
-
*/
|
|
138
|
-
export interface MsgUpdateParams {
|
|
139
|
-
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
140
|
-
authority: string;
|
|
141
|
-
/**
|
|
142
|
-
* params defines the x/staking parameters to update.
|
|
143
|
-
*
|
|
144
|
-
* NOTE: All parameters must be supplied.
|
|
145
|
-
*/
|
|
146
|
-
params: Params | undefined;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
151
|
-
* MsgUpdateParams message.
|
|
152
|
-
*
|
|
153
|
-
* Since: cosmos-sdk 0.47
|
|
154
|
-
*/
|
|
155
|
-
export interface MsgUpdateParamsResponse {
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
function createBaseMsgCreateValidator(): MsgCreateValidator {
|
|
159
|
-
return {
|
|
160
|
-
description: undefined,
|
|
161
|
-
commission: undefined,
|
|
162
|
-
minSelfDelegation: "",
|
|
163
|
-
delegatorAddress: "",
|
|
164
|
-
validatorAddress: "",
|
|
165
|
-
pubkey: undefined,
|
|
166
|
-
value: undefined,
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export const MsgCreateValidator: MessageFns<MsgCreateValidator> = {
|
|
171
|
-
encode(message: MsgCreateValidator, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
172
|
-
if (message.description !== undefined) {
|
|
173
|
-
Description.encode(message.description, writer.uint32(10).fork()).join();
|
|
174
|
-
}
|
|
175
|
-
if (message.commission !== undefined) {
|
|
176
|
-
CommissionRates.encode(message.commission, writer.uint32(18).fork()).join();
|
|
177
|
-
}
|
|
178
|
-
if (message.minSelfDelegation !== "") {
|
|
179
|
-
writer.uint32(26).string(message.minSelfDelegation);
|
|
180
|
-
}
|
|
181
|
-
if (message.delegatorAddress !== "") {
|
|
182
|
-
writer.uint32(34).string(message.delegatorAddress);
|
|
183
|
-
}
|
|
184
|
-
if (message.validatorAddress !== "") {
|
|
185
|
-
writer.uint32(42).string(message.validatorAddress);
|
|
186
|
-
}
|
|
187
|
-
if (message.pubkey !== undefined) {
|
|
188
|
-
Any.encode(message.pubkey, writer.uint32(50).fork()).join();
|
|
189
|
-
}
|
|
190
|
-
if (message.value !== undefined) {
|
|
191
|
-
Coin.encode(message.value, writer.uint32(58).fork()).join();
|
|
192
|
-
}
|
|
193
|
-
return writer;
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidator {
|
|
197
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
198
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
199
|
-
const message = createBaseMsgCreateValidator();
|
|
200
|
-
while (reader.pos < end) {
|
|
201
|
-
const tag = reader.uint32();
|
|
202
|
-
switch (tag >>> 3) {
|
|
203
|
-
case 1: {
|
|
204
|
-
if (tag !== 10) {
|
|
205
|
-
break;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
message.description = Description.decode(reader, reader.uint32());
|
|
209
|
-
continue;
|
|
210
|
-
}
|
|
211
|
-
case 2: {
|
|
212
|
-
if (tag !== 18) {
|
|
213
|
-
break;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
message.commission = CommissionRates.decode(reader, reader.uint32());
|
|
217
|
-
continue;
|
|
218
|
-
}
|
|
219
|
-
case 3: {
|
|
220
|
-
if (tag !== 26) {
|
|
221
|
-
break;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
message.minSelfDelegation = reader.string();
|
|
225
|
-
continue;
|
|
226
|
-
}
|
|
227
|
-
case 4: {
|
|
228
|
-
if (tag !== 34) {
|
|
229
|
-
break;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
message.delegatorAddress = reader.string();
|
|
233
|
-
continue;
|
|
234
|
-
}
|
|
235
|
-
case 5: {
|
|
236
|
-
if (tag !== 42) {
|
|
237
|
-
break;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
message.validatorAddress = reader.string();
|
|
241
|
-
continue;
|
|
242
|
-
}
|
|
243
|
-
case 6: {
|
|
244
|
-
if (tag !== 50) {
|
|
245
|
-
break;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
message.pubkey = Any.decode(reader, reader.uint32());
|
|
249
|
-
continue;
|
|
250
|
-
}
|
|
251
|
-
case 7: {
|
|
252
|
-
if (tag !== 58) {
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
message.value = Coin.decode(reader, reader.uint32());
|
|
257
|
-
continue;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
reader.skip(tag & 7);
|
|
264
|
-
}
|
|
265
|
-
return message;
|
|
266
|
-
},
|
|
267
|
-
|
|
268
|
-
fromJSON(object: any): MsgCreateValidator {
|
|
269
|
-
return {
|
|
270
|
-
description: isSet(object.description) ? Description.fromJSON(object.description) : undefined,
|
|
271
|
-
commission: isSet(object.commission) ? CommissionRates.fromJSON(object.commission) : undefined,
|
|
272
|
-
minSelfDelegation: isSet(object.minSelfDelegation) ? globalThis.String(object.minSelfDelegation) : "",
|
|
273
|
-
delegatorAddress: isSet(object.delegatorAddress) ? globalThis.String(object.delegatorAddress) : "",
|
|
274
|
-
validatorAddress: isSet(object.validatorAddress) ? globalThis.String(object.validatorAddress) : "",
|
|
275
|
-
pubkey: isSet(object.pubkey) ? Any.fromJSON(object.pubkey) : undefined,
|
|
276
|
-
value: isSet(object.value) ? Coin.fromJSON(object.value) : undefined,
|
|
277
|
-
};
|
|
278
|
-
},
|
|
279
|
-
|
|
280
|
-
toJSON(message: MsgCreateValidator): unknown {
|
|
281
|
-
const obj: any = {};
|
|
282
|
-
if (message.description !== undefined) {
|
|
283
|
-
obj.description = Description.toJSON(message.description);
|
|
284
|
-
}
|
|
285
|
-
if (message.commission !== undefined) {
|
|
286
|
-
obj.commission = CommissionRates.toJSON(message.commission);
|
|
287
|
-
}
|
|
288
|
-
if (message.minSelfDelegation !== "") {
|
|
289
|
-
obj.minSelfDelegation = message.minSelfDelegation;
|
|
290
|
-
}
|
|
291
|
-
if (message.delegatorAddress !== "") {
|
|
292
|
-
obj.delegatorAddress = message.delegatorAddress;
|
|
293
|
-
}
|
|
294
|
-
if (message.validatorAddress !== "") {
|
|
295
|
-
obj.validatorAddress = message.validatorAddress;
|
|
296
|
-
}
|
|
297
|
-
if (message.pubkey !== undefined) {
|
|
298
|
-
obj.pubkey = Any.toJSON(message.pubkey);
|
|
299
|
-
}
|
|
300
|
-
if (message.value !== undefined) {
|
|
301
|
-
obj.value = Coin.toJSON(message.value);
|
|
302
|
-
}
|
|
303
|
-
return obj;
|
|
304
|
-
},
|
|
305
|
-
|
|
306
|
-
create<I extends Exact<DeepPartial<MsgCreateValidator>, I>>(base?: I): MsgCreateValidator {
|
|
307
|
-
return MsgCreateValidator.fromPartial(base ?? ({} as any));
|
|
308
|
-
},
|
|
309
|
-
fromPartial<I extends Exact<DeepPartial<MsgCreateValidator>, I>>(object: I): MsgCreateValidator {
|
|
310
|
-
const message = createBaseMsgCreateValidator();
|
|
311
|
-
message.description = (object.description !== undefined && object.description !== null)
|
|
312
|
-
? Description.fromPartial(object.description)
|
|
313
|
-
: undefined;
|
|
314
|
-
message.commission = (object.commission !== undefined && object.commission !== null)
|
|
315
|
-
? CommissionRates.fromPartial(object.commission)
|
|
316
|
-
: undefined;
|
|
317
|
-
message.minSelfDelegation = object.minSelfDelegation ?? "";
|
|
318
|
-
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
319
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
320
|
-
message.pubkey = (object.pubkey !== undefined && object.pubkey !== null)
|
|
321
|
-
? Any.fromPartial(object.pubkey)
|
|
322
|
-
: undefined;
|
|
323
|
-
message.value = (object.value !== undefined && object.value !== null) ? Coin.fromPartial(object.value) : undefined;
|
|
324
|
-
return message;
|
|
325
|
-
},
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
function createBaseMsgCreateValidatorResponse(): MsgCreateValidatorResponse {
|
|
329
|
-
return {};
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
export const MsgCreateValidatorResponse: MessageFns<MsgCreateValidatorResponse> = {
|
|
333
|
-
encode(_: MsgCreateValidatorResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
334
|
-
return writer;
|
|
335
|
-
},
|
|
336
|
-
|
|
337
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidatorResponse {
|
|
338
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
339
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
340
|
-
const message = createBaseMsgCreateValidatorResponse();
|
|
341
|
-
while (reader.pos < end) {
|
|
342
|
-
const tag = reader.uint32();
|
|
343
|
-
switch (tag >>> 3) {
|
|
344
|
-
}
|
|
345
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
346
|
-
break;
|
|
347
|
-
}
|
|
348
|
-
reader.skip(tag & 7);
|
|
349
|
-
}
|
|
350
|
-
return message;
|
|
351
|
-
},
|
|
352
|
-
|
|
353
|
-
fromJSON(_: any): MsgCreateValidatorResponse {
|
|
354
|
-
return {};
|
|
355
|
-
},
|
|
356
|
-
|
|
357
|
-
toJSON(_: MsgCreateValidatorResponse): unknown {
|
|
358
|
-
const obj: any = {};
|
|
359
|
-
return obj;
|
|
360
|
-
},
|
|
361
|
-
|
|
362
|
-
create<I extends Exact<DeepPartial<MsgCreateValidatorResponse>, I>>(base?: I): MsgCreateValidatorResponse {
|
|
363
|
-
return MsgCreateValidatorResponse.fromPartial(base ?? ({} as any));
|
|
364
|
-
},
|
|
365
|
-
fromPartial<I extends Exact<DeepPartial<MsgCreateValidatorResponse>, I>>(_: I): MsgCreateValidatorResponse {
|
|
366
|
-
const message = createBaseMsgCreateValidatorResponse();
|
|
367
|
-
return message;
|
|
368
|
-
},
|
|
369
|
-
};
|
|
370
|
-
|
|
371
|
-
function createBaseMsgEditValidator(): MsgEditValidator {
|
|
372
|
-
return { description: undefined, validatorAddress: "", commissionRate: "", minSelfDelegation: "" };
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
export const MsgEditValidator: MessageFns<MsgEditValidator> = {
|
|
376
|
-
encode(message: MsgEditValidator, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
377
|
-
if (message.description !== undefined) {
|
|
378
|
-
Description.encode(message.description, writer.uint32(10).fork()).join();
|
|
379
|
-
}
|
|
380
|
-
if (message.validatorAddress !== "") {
|
|
381
|
-
writer.uint32(18).string(message.validatorAddress);
|
|
382
|
-
}
|
|
383
|
-
if (message.commissionRate !== "") {
|
|
384
|
-
writer.uint32(26).string(message.commissionRate);
|
|
385
|
-
}
|
|
386
|
-
if (message.minSelfDelegation !== "") {
|
|
387
|
-
writer.uint32(34).string(message.minSelfDelegation);
|
|
388
|
-
}
|
|
389
|
-
return writer;
|
|
390
|
-
},
|
|
391
|
-
|
|
392
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidator {
|
|
393
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
394
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
395
|
-
const message = createBaseMsgEditValidator();
|
|
396
|
-
while (reader.pos < end) {
|
|
397
|
-
const tag = reader.uint32();
|
|
398
|
-
switch (tag >>> 3) {
|
|
399
|
-
case 1: {
|
|
400
|
-
if (tag !== 10) {
|
|
401
|
-
break;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
message.description = Description.decode(reader, reader.uint32());
|
|
405
|
-
continue;
|
|
406
|
-
}
|
|
407
|
-
case 2: {
|
|
408
|
-
if (tag !== 18) {
|
|
409
|
-
break;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
message.validatorAddress = reader.string();
|
|
413
|
-
continue;
|
|
414
|
-
}
|
|
415
|
-
case 3: {
|
|
416
|
-
if (tag !== 26) {
|
|
417
|
-
break;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
message.commissionRate = reader.string();
|
|
421
|
-
continue;
|
|
422
|
-
}
|
|
423
|
-
case 4: {
|
|
424
|
-
if (tag !== 34) {
|
|
425
|
-
break;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
message.minSelfDelegation = 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): MsgEditValidator {
|
|
441
|
-
return {
|
|
442
|
-
description: isSet(object.description) ? Description.fromJSON(object.description) : undefined,
|
|
443
|
-
validatorAddress: isSet(object.validatorAddress) ? globalThis.String(object.validatorAddress) : "",
|
|
444
|
-
commissionRate: isSet(object.commissionRate) ? globalThis.String(object.commissionRate) : "",
|
|
445
|
-
minSelfDelegation: isSet(object.minSelfDelegation) ? globalThis.String(object.minSelfDelegation) : "",
|
|
446
|
-
};
|
|
447
|
-
},
|
|
448
|
-
|
|
449
|
-
toJSON(message: MsgEditValidator): unknown {
|
|
450
|
-
const obj: any = {};
|
|
451
|
-
if (message.description !== undefined) {
|
|
452
|
-
obj.description = Description.toJSON(message.description);
|
|
453
|
-
}
|
|
454
|
-
if (message.validatorAddress !== "") {
|
|
455
|
-
obj.validatorAddress = message.validatorAddress;
|
|
456
|
-
}
|
|
457
|
-
if (message.commissionRate !== "") {
|
|
458
|
-
obj.commissionRate = message.commissionRate;
|
|
459
|
-
}
|
|
460
|
-
if (message.minSelfDelegation !== "") {
|
|
461
|
-
obj.minSelfDelegation = message.minSelfDelegation;
|
|
462
|
-
}
|
|
463
|
-
return obj;
|
|
464
|
-
},
|
|
465
|
-
|
|
466
|
-
create<I extends Exact<DeepPartial<MsgEditValidator>, I>>(base?: I): MsgEditValidator {
|
|
467
|
-
return MsgEditValidator.fromPartial(base ?? ({} as any));
|
|
468
|
-
},
|
|
469
|
-
fromPartial<I extends Exact<DeepPartial<MsgEditValidator>, I>>(object: I): MsgEditValidator {
|
|
470
|
-
const message = createBaseMsgEditValidator();
|
|
471
|
-
message.description = (object.description !== undefined && object.description !== null)
|
|
472
|
-
? Description.fromPartial(object.description)
|
|
473
|
-
: undefined;
|
|
474
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
475
|
-
message.commissionRate = object.commissionRate ?? "";
|
|
476
|
-
message.minSelfDelegation = object.minSelfDelegation ?? "";
|
|
477
|
-
return message;
|
|
478
|
-
},
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
function createBaseMsgEditValidatorResponse(): MsgEditValidatorResponse {
|
|
482
|
-
return {};
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
export const MsgEditValidatorResponse: MessageFns<MsgEditValidatorResponse> = {
|
|
486
|
-
encode(_: MsgEditValidatorResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
487
|
-
return writer;
|
|
488
|
-
},
|
|
489
|
-
|
|
490
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidatorResponse {
|
|
491
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
492
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
493
|
-
const message = createBaseMsgEditValidatorResponse();
|
|
494
|
-
while (reader.pos < end) {
|
|
495
|
-
const tag = reader.uint32();
|
|
496
|
-
switch (tag >>> 3) {
|
|
497
|
-
}
|
|
498
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
499
|
-
break;
|
|
500
|
-
}
|
|
501
|
-
reader.skip(tag & 7);
|
|
502
|
-
}
|
|
503
|
-
return message;
|
|
504
|
-
},
|
|
505
|
-
|
|
506
|
-
fromJSON(_: any): MsgEditValidatorResponse {
|
|
507
|
-
return {};
|
|
508
|
-
},
|
|
509
|
-
|
|
510
|
-
toJSON(_: MsgEditValidatorResponse): unknown {
|
|
511
|
-
const obj: any = {};
|
|
512
|
-
return obj;
|
|
513
|
-
},
|
|
514
|
-
|
|
515
|
-
create<I extends Exact<DeepPartial<MsgEditValidatorResponse>, I>>(base?: I): MsgEditValidatorResponse {
|
|
516
|
-
return MsgEditValidatorResponse.fromPartial(base ?? ({} as any));
|
|
517
|
-
},
|
|
518
|
-
fromPartial<I extends Exact<DeepPartial<MsgEditValidatorResponse>, I>>(_: I): MsgEditValidatorResponse {
|
|
519
|
-
const message = createBaseMsgEditValidatorResponse();
|
|
520
|
-
return message;
|
|
521
|
-
},
|
|
522
|
-
};
|
|
523
|
-
|
|
524
|
-
function createBaseMsgDelegate(): MsgDelegate {
|
|
525
|
-
return { delegatorAddress: "", validatorAddress: "", amount: undefined };
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
export const MsgDelegate: MessageFns<MsgDelegate> = {
|
|
529
|
-
encode(message: MsgDelegate, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
530
|
-
if (message.delegatorAddress !== "") {
|
|
531
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
532
|
-
}
|
|
533
|
-
if (message.validatorAddress !== "") {
|
|
534
|
-
writer.uint32(18).string(message.validatorAddress);
|
|
535
|
-
}
|
|
536
|
-
if (message.amount !== undefined) {
|
|
537
|
-
Coin.encode(message.amount, writer.uint32(26).fork()).join();
|
|
538
|
-
}
|
|
539
|
-
return writer;
|
|
540
|
-
},
|
|
541
|
-
|
|
542
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegate {
|
|
543
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
544
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
545
|
-
const message = createBaseMsgDelegate();
|
|
546
|
-
while (reader.pos < end) {
|
|
547
|
-
const tag = reader.uint32();
|
|
548
|
-
switch (tag >>> 3) {
|
|
549
|
-
case 1: {
|
|
550
|
-
if (tag !== 10) {
|
|
551
|
-
break;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
message.delegatorAddress = reader.string();
|
|
555
|
-
continue;
|
|
556
|
-
}
|
|
557
|
-
case 2: {
|
|
558
|
-
if (tag !== 18) {
|
|
559
|
-
break;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
message.validatorAddress = reader.string();
|
|
563
|
-
continue;
|
|
564
|
-
}
|
|
565
|
-
case 3: {
|
|
566
|
-
if (tag !== 26) {
|
|
567
|
-
break;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
message.amount = Coin.decode(reader, reader.uint32());
|
|
571
|
-
continue;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
575
|
-
break;
|
|
576
|
-
}
|
|
577
|
-
reader.skip(tag & 7);
|
|
578
|
-
}
|
|
579
|
-
return message;
|
|
580
|
-
},
|
|
581
|
-
|
|
582
|
-
fromJSON(object: any): MsgDelegate {
|
|
583
|
-
return {
|
|
584
|
-
delegatorAddress: isSet(object.delegatorAddress) ? globalThis.String(object.delegatorAddress) : "",
|
|
585
|
-
validatorAddress: isSet(object.validatorAddress) ? globalThis.String(object.validatorAddress) : "",
|
|
586
|
-
amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : undefined,
|
|
587
|
-
};
|
|
588
|
-
},
|
|
589
|
-
|
|
590
|
-
toJSON(message: MsgDelegate): unknown {
|
|
591
|
-
const obj: any = {};
|
|
592
|
-
if (message.delegatorAddress !== "") {
|
|
593
|
-
obj.delegatorAddress = message.delegatorAddress;
|
|
594
|
-
}
|
|
595
|
-
if (message.validatorAddress !== "") {
|
|
596
|
-
obj.validatorAddress = message.validatorAddress;
|
|
597
|
-
}
|
|
598
|
-
if (message.amount !== undefined) {
|
|
599
|
-
obj.amount = Coin.toJSON(message.amount);
|
|
600
|
-
}
|
|
601
|
-
return obj;
|
|
602
|
-
},
|
|
603
|
-
|
|
604
|
-
create<I extends Exact<DeepPartial<MsgDelegate>, I>>(base?: I): MsgDelegate {
|
|
605
|
-
return MsgDelegate.fromPartial(base ?? ({} as any));
|
|
606
|
-
},
|
|
607
|
-
fromPartial<I extends Exact<DeepPartial<MsgDelegate>, I>>(object: I): MsgDelegate {
|
|
608
|
-
const message = createBaseMsgDelegate();
|
|
609
|
-
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
610
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
611
|
-
message.amount = (object.amount !== undefined && object.amount !== null)
|
|
612
|
-
? Coin.fromPartial(object.amount)
|
|
613
|
-
: undefined;
|
|
614
|
-
return message;
|
|
615
|
-
},
|
|
616
|
-
};
|
|
617
|
-
|
|
618
|
-
function createBaseMsgDelegateResponse(): MsgDelegateResponse {
|
|
619
|
-
return {};
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
export const MsgDelegateResponse: MessageFns<MsgDelegateResponse> = {
|
|
623
|
-
encode(_: MsgDelegateResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
624
|
-
return writer;
|
|
625
|
-
},
|
|
626
|
-
|
|
627
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegateResponse {
|
|
628
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
629
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
630
|
-
const message = createBaseMsgDelegateResponse();
|
|
631
|
-
while (reader.pos < end) {
|
|
632
|
-
const tag = reader.uint32();
|
|
633
|
-
switch (tag >>> 3) {
|
|
634
|
-
}
|
|
635
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
636
|
-
break;
|
|
637
|
-
}
|
|
638
|
-
reader.skip(tag & 7);
|
|
639
|
-
}
|
|
640
|
-
return message;
|
|
641
|
-
},
|
|
642
|
-
|
|
643
|
-
fromJSON(_: any): MsgDelegateResponse {
|
|
644
|
-
return {};
|
|
645
|
-
},
|
|
646
|
-
|
|
647
|
-
toJSON(_: MsgDelegateResponse): unknown {
|
|
648
|
-
const obj: any = {};
|
|
649
|
-
return obj;
|
|
650
|
-
},
|
|
651
|
-
|
|
652
|
-
create<I extends Exact<DeepPartial<MsgDelegateResponse>, I>>(base?: I): MsgDelegateResponse {
|
|
653
|
-
return MsgDelegateResponse.fromPartial(base ?? ({} as any));
|
|
654
|
-
},
|
|
655
|
-
fromPartial<I extends Exact<DeepPartial<MsgDelegateResponse>, I>>(_: I): MsgDelegateResponse {
|
|
656
|
-
const message = createBaseMsgDelegateResponse();
|
|
657
|
-
return message;
|
|
658
|
-
},
|
|
659
|
-
};
|
|
660
|
-
|
|
661
|
-
function createBaseMsgBeginRedelegate(): MsgBeginRedelegate {
|
|
662
|
-
return { delegatorAddress: "", validatorSrcAddress: "", validatorDstAddress: "", amount: undefined };
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
export const MsgBeginRedelegate: MessageFns<MsgBeginRedelegate> = {
|
|
666
|
-
encode(message: MsgBeginRedelegate, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
667
|
-
if (message.delegatorAddress !== "") {
|
|
668
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
669
|
-
}
|
|
670
|
-
if (message.validatorSrcAddress !== "") {
|
|
671
|
-
writer.uint32(18).string(message.validatorSrcAddress);
|
|
672
|
-
}
|
|
673
|
-
if (message.validatorDstAddress !== "") {
|
|
674
|
-
writer.uint32(26).string(message.validatorDstAddress);
|
|
675
|
-
}
|
|
676
|
-
if (message.amount !== undefined) {
|
|
677
|
-
Coin.encode(message.amount, writer.uint32(34).fork()).join();
|
|
678
|
-
}
|
|
679
|
-
return writer;
|
|
680
|
-
},
|
|
681
|
-
|
|
682
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegate {
|
|
683
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
684
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
685
|
-
const message = createBaseMsgBeginRedelegate();
|
|
686
|
-
while (reader.pos < end) {
|
|
687
|
-
const tag = reader.uint32();
|
|
688
|
-
switch (tag >>> 3) {
|
|
689
|
-
case 1: {
|
|
690
|
-
if (tag !== 10) {
|
|
691
|
-
break;
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
message.delegatorAddress = reader.string();
|
|
695
|
-
continue;
|
|
696
|
-
}
|
|
697
|
-
case 2: {
|
|
698
|
-
if (tag !== 18) {
|
|
699
|
-
break;
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
message.validatorSrcAddress = reader.string();
|
|
703
|
-
continue;
|
|
704
|
-
}
|
|
705
|
-
case 3: {
|
|
706
|
-
if (tag !== 26) {
|
|
707
|
-
break;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
message.validatorDstAddress = reader.string();
|
|
711
|
-
continue;
|
|
712
|
-
}
|
|
713
|
-
case 4: {
|
|
714
|
-
if (tag !== 34) {
|
|
715
|
-
break;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
message.amount = Coin.decode(reader, reader.uint32());
|
|
719
|
-
continue;
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
723
|
-
break;
|
|
724
|
-
}
|
|
725
|
-
reader.skip(tag & 7);
|
|
726
|
-
}
|
|
727
|
-
return message;
|
|
728
|
-
},
|
|
729
|
-
|
|
730
|
-
fromJSON(object: any): MsgBeginRedelegate {
|
|
731
|
-
return {
|
|
732
|
-
delegatorAddress: isSet(object.delegatorAddress) ? globalThis.String(object.delegatorAddress) : "",
|
|
733
|
-
validatorSrcAddress: isSet(object.validatorSrcAddress) ? globalThis.String(object.validatorSrcAddress) : "",
|
|
734
|
-
validatorDstAddress: isSet(object.validatorDstAddress) ? globalThis.String(object.validatorDstAddress) : "",
|
|
735
|
-
amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : undefined,
|
|
736
|
-
};
|
|
737
|
-
},
|
|
738
|
-
|
|
739
|
-
toJSON(message: MsgBeginRedelegate): unknown {
|
|
740
|
-
const obj: any = {};
|
|
741
|
-
if (message.delegatorAddress !== "") {
|
|
742
|
-
obj.delegatorAddress = message.delegatorAddress;
|
|
743
|
-
}
|
|
744
|
-
if (message.validatorSrcAddress !== "") {
|
|
745
|
-
obj.validatorSrcAddress = message.validatorSrcAddress;
|
|
746
|
-
}
|
|
747
|
-
if (message.validatorDstAddress !== "") {
|
|
748
|
-
obj.validatorDstAddress = message.validatorDstAddress;
|
|
749
|
-
}
|
|
750
|
-
if (message.amount !== undefined) {
|
|
751
|
-
obj.amount = Coin.toJSON(message.amount);
|
|
752
|
-
}
|
|
753
|
-
return obj;
|
|
754
|
-
},
|
|
755
|
-
|
|
756
|
-
create<I extends Exact<DeepPartial<MsgBeginRedelegate>, I>>(base?: I): MsgBeginRedelegate {
|
|
757
|
-
return MsgBeginRedelegate.fromPartial(base ?? ({} as any));
|
|
758
|
-
},
|
|
759
|
-
fromPartial<I extends Exact<DeepPartial<MsgBeginRedelegate>, I>>(object: I): MsgBeginRedelegate {
|
|
760
|
-
const message = createBaseMsgBeginRedelegate();
|
|
761
|
-
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
762
|
-
message.validatorSrcAddress = object.validatorSrcAddress ?? "";
|
|
763
|
-
message.validatorDstAddress = object.validatorDstAddress ?? "";
|
|
764
|
-
message.amount = (object.amount !== undefined && object.amount !== null)
|
|
765
|
-
? Coin.fromPartial(object.amount)
|
|
766
|
-
: undefined;
|
|
767
|
-
return message;
|
|
768
|
-
},
|
|
769
|
-
};
|
|
770
|
-
|
|
771
|
-
function createBaseMsgBeginRedelegateResponse(): MsgBeginRedelegateResponse {
|
|
772
|
-
return { completionTime: undefined };
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
export const MsgBeginRedelegateResponse: MessageFns<MsgBeginRedelegateResponse> = {
|
|
776
|
-
encode(message: MsgBeginRedelegateResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
777
|
-
if (message.completionTime !== undefined) {
|
|
778
|
-
Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(10).fork()).join();
|
|
779
|
-
}
|
|
780
|
-
return writer;
|
|
781
|
-
},
|
|
782
|
-
|
|
783
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegateResponse {
|
|
784
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
785
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
786
|
-
const message = createBaseMsgBeginRedelegateResponse();
|
|
787
|
-
while (reader.pos < end) {
|
|
788
|
-
const tag = reader.uint32();
|
|
789
|
-
switch (tag >>> 3) {
|
|
790
|
-
case 1: {
|
|
791
|
-
if (tag !== 10) {
|
|
792
|
-
break;
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
796
|
-
continue;
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
800
|
-
break;
|
|
801
|
-
}
|
|
802
|
-
reader.skip(tag & 7);
|
|
803
|
-
}
|
|
804
|
-
return message;
|
|
805
|
-
},
|
|
806
|
-
|
|
807
|
-
fromJSON(object: any): MsgBeginRedelegateResponse {
|
|
808
|
-
return { completionTime: isSet(object.completionTime) ? fromJsonTimestamp(object.completionTime) : undefined };
|
|
809
|
-
},
|
|
810
|
-
|
|
811
|
-
toJSON(message: MsgBeginRedelegateResponse): unknown {
|
|
812
|
-
const obj: any = {};
|
|
813
|
-
if (message.completionTime !== undefined) {
|
|
814
|
-
obj.completionTime = message.completionTime.toISOString();
|
|
815
|
-
}
|
|
816
|
-
return obj;
|
|
817
|
-
},
|
|
818
|
-
|
|
819
|
-
create<I extends Exact<DeepPartial<MsgBeginRedelegateResponse>, I>>(base?: I): MsgBeginRedelegateResponse {
|
|
820
|
-
return MsgBeginRedelegateResponse.fromPartial(base ?? ({} as any));
|
|
821
|
-
},
|
|
822
|
-
fromPartial<I extends Exact<DeepPartial<MsgBeginRedelegateResponse>, I>>(object: I): MsgBeginRedelegateResponse {
|
|
823
|
-
const message = createBaseMsgBeginRedelegateResponse();
|
|
824
|
-
message.completionTime = object.completionTime ?? undefined;
|
|
825
|
-
return message;
|
|
826
|
-
},
|
|
827
|
-
};
|
|
828
|
-
|
|
829
|
-
function createBaseMsgUndelegate(): MsgUndelegate {
|
|
830
|
-
return { delegatorAddress: "", validatorAddress: "", amount: undefined };
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
export const MsgUndelegate: MessageFns<MsgUndelegate> = {
|
|
834
|
-
encode(message: MsgUndelegate, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
835
|
-
if (message.delegatorAddress !== "") {
|
|
836
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
837
|
-
}
|
|
838
|
-
if (message.validatorAddress !== "") {
|
|
839
|
-
writer.uint32(18).string(message.validatorAddress);
|
|
840
|
-
}
|
|
841
|
-
if (message.amount !== undefined) {
|
|
842
|
-
Coin.encode(message.amount, writer.uint32(26).fork()).join();
|
|
843
|
-
}
|
|
844
|
-
return writer;
|
|
845
|
-
},
|
|
846
|
-
|
|
847
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegate {
|
|
848
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
849
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
850
|
-
const message = createBaseMsgUndelegate();
|
|
851
|
-
while (reader.pos < end) {
|
|
852
|
-
const tag = reader.uint32();
|
|
853
|
-
switch (tag >>> 3) {
|
|
854
|
-
case 1: {
|
|
855
|
-
if (tag !== 10) {
|
|
856
|
-
break;
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
message.delegatorAddress = reader.string();
|
|
860
|
-
continue;
|
|
861
|
-
}
|
|
862
|
-
case 2: {
|
|
863
|
-
if (tag !== 18) {
|
|
864
|
-
break;
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
message.validatorAddress = reader.string();
|
|
868
|
-
continue;
|
|
869
|
-
}
|
|
870
|
-
case 3: {
|
|
871
|
-
if (tag !== 26) {
|
|
872
|
-
break;
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
message.amount = Coin.decode(reader, reader.uint32());
|
|
876
|
-
continue;
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
880
|
-
break;
|
|
881
|
-
}
|
|
882
|
-
reader.skip(tag & 7);
|
|
883
|
-
}
|
|
884
|
-
return message;
|
|
885
|
-
},
|
|
886
|
-
|
|
887
|
-
fromJSON(object: any): MsgUndelegate {
|
|
888
|
-
return {
|
|
889
|
-
delegatorAddress: isSet(object.delegatorAddress) ? globalThis.String(object.delegatorAddress) : "",
|
|
890
|
-
validatorAddress: isSet(object.validatorAddress) ? globalThis.String(object.validatorAddress) : "",
|
|
891
|
-
amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : undefined,
|
|
892
|
-
};
|
|
893
|
-
},
|
|
894
|
-
|
|
895
|
-
toJSON(message: MsgUndelegate): unknown {
|
|
896
|
-
const obj: any = {};
|
|
897
|
-
if (message.delegatorAddress !== "") {
|
|
898
|
-
obj.delegatorAddress = message.delegatorAddress;
|
|
899
|
-
}
|
|
900
|
-
if (message.validatorAddress !== "") {
|
|
901
|
-
obj.validatorAddress = message.validatorAddress;
|
|
902
|
-
}
|
|
903
|
-
if (message.amount !== undefined) {
|
|
904
|
-
obj.amount = Coin.toJSON(message.amount);
|
|
905
|
-
}
|
|
906
|
-
return obj;
|
|
907
|
-
},
|
|
908
|
-
|
|
909
|
-
create<I extends Exact<DeepPartial<MsgUndelegate>, I>>(base?: I): MsgUndelegate {
|
|
910
|
-
return MsgUndelegate.fromPartial(base ?? ({} as any));
|
|
911
|
-
},
|
|
912
|
-
fromPartial<I extends Exact<DeepPartial<MsgUndelegate>, I>>(object: I): MsgUndelegate {
|
|
913
|
-
const message = createBaseMsgUndelegate();
|
|
914
|
-
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
915
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
916
|
-
message.amount = (object.amount !== undefined && object.amount !== null)
|
|
917
|
-
? Coin.fromPartial(object.amount)
|
|
918
|
-
: undefined;
|
|
919
|
-
return message;
|
|
920
|
-
},
|
|
921
|
-
};
|
|
922
|
-
|
|
923
|
-
function createBaseMsgUndelegateResponse(): MsgUndelegateResponse {
|
|
924
|
-
return { completionTime: undefined, amount: undefined };
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
export const MsgUndelegateResponse: MessageFns<MsgUndelegateResponse> = {
|
|
928
|
-
encode(message: MsgUndelegateResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
929
|
-
if (message.completionTime !== undefined) {
|
|
930
|
-
Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(10).fork()).join();
|
|
931
|
-
}
|
|
932
|
-
if (message.amount !== undefined) {
|
|
933
|
-
Coin.encode(message.amount, writer.uint32(18).fork()).join();
|
|
934
|
-
}
|
|
935
|
-
return writer;
|
|
936
|
-
},
|
|
937
|
-
|
|
938
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegateResponse {
|
|
939
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
940
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
941
|
-
const message = createBaseMsgUndelegateResponse();
|
|
942
|
-
while (reader.pos < end) {
|
|
943
|
-
const tag = reader.uint32();
|
|
944
|
-
switch (tag >>> 3) {
|
|
945
|
-
case 1: {
|
|
946
|
-
if (tag !== 10) {
|
|
947
|
-
break;
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
951
|
-
continue;
|
|
952
|
-
}
|
|
953
|
-
case 2: {
|
|
954
|
-
if (tag !== 18) {
|
|
955
|
-
break;
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
message.amount = Coin.decode(reader, reader.uint32());
|
|
959
|
-
continue;
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
963
|
-
break;
|
|
964
|
-
}
|
|
965
|
-
reader.skip(tag & 7);
|
|
966
|
-
}
|
|
967
|
-
return message;
|
|
968
|
-
},
|
|
969
|
-
|
|
970
|
-
fromJSON(object: any): MsgUndelegateResponse {
|
|
971
|
-
return {
|
|
972
|
-
completionTime: isSet(object.completionTime) ? fromJsonTimestamp(object.completionTime) : undefined,
|
|
973
|
-
amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : undefined,
|
|
974
|
-
};
|
|
975
|
-
},
|
|
976
|
-
|
|
977
|
-
toJSON(message: MsgUndelegateResponse): unknown {
|
|
978
|
-
const obj: any = {};
|
|
979
|
-
if (message.completionTime !== undefined) {
|
|
980
|
-
obj.completionTime = message.completionTime.toISOString();
|
|
981
|
-
}
|
|
982
|
-
if (message.amount !== undefined) {
|
|
983
|
-
obj.amount = Coin.toJSON(message.amount);
|
|
984
|
-
}
|
|
985
|
-
return obj;
|
|
986
|
-
},
|
|
987
|
-
|
|
988
|
-
create<I extends Exact<DeepPartial<MsgUndelegateResponse>, I>>(base?: I): MsgUndelegateResponse {
|
|
989
|
-
return MsgUndelegateResponse.fromPartial(base ?? ({} as any));
|
|
990
|
-
},
|
|
991
|
-
fromPartial<I extends Exact<DeepPartial<MsgUndelegateResponse>, I>>(object: I): MsgUndelegateResponse {
|
|
992
|
-
const message = createBaseMsgUndelegateResponse();
|
|
993
|
-
message.completionTime = object.completionTime ?? undefined;
|
|
994
|
-
message.amount = (object.amount !== undefined && object.amount !== null)
|
|
995
|
-
? Coin.fromPartial(object.amount)
|
|
996
|
-
: undefined;
|
|
997
|
-
return message;
|
|
998
|
-
},
|
|
999
|
-
};
|
|
1000
|
-
|
|
1001
|
-
function createBaseMsgCancelUnbondingDelegation(): MsgCancelUnbondingDelegation {
|
|
1002
|
-
return { delegatorAddress: "", validatorAddress: "", amount: undefined, creationHeight: 0 };
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
export const MsgCancelUnbondingDelegation: MessageFns<MsgCancelUnbondingDelegation> = {
|
|
1006
|
-
encode(message: MsgCancelUnbondingDelegation, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1007
|
-
if (message.delegatorAddress !== "") {
|
|
1008
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
1009
|
-
}
|
|
1010
|
-
if (message.validatorAddress !== "") {
|
|
1011
|
-
writer.uint32(18).string(message.validatorAddress);
|
|
1012
|
-
}
|
|
1013
|
-
if (message.amount !== undefined) {
|
|
1014
|
-
Coin.encode(message.amount, writer.uint32(26).fork()).join();
|
|
1015
|
-
}
|
|
1016
|
-
if (message.creationHeight !== 0) {
|
|
1017
|
-
writer.uint32(32).int64(message.creationHeight);
|
|
1018
|
-
}
|
|
1019
|
-
return writer;
|
|
1020
|
-
},
|
|
1021
|
-
|
|
1022
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegation {
|
|
1023
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1024
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1025
|
-
const message = createBaseMsgCancelUnbondingDelegation();
|
|
1026
|
-
while (reader.pos < end) {
|
|
1027
|
-
const tag = reader.uint32();
|
|
1028
|
-
switch (tag >>> 3) {
|
|
1029
|
-
case 1: {
|
|
1030
|
-
if (tag !== 10) {
|
|
1031
|
-
break;
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
message.delegatorAddress = reader.string();
|
|
1035
|
-
continue;
|
|
1036
|
-
}
|
|
1037
|
-
case 2: {
|
|
1038
|
-
if (tag !== 18) {
|
|
1039
|
-
break;
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
message.validatorAddress = reader.string();
|
|
1043
|
-
continue;
|
|
1044
|
-
}
|
|
1045
|
-
case 3: {
|
|
1046
|
-
if (tag !== 26) {
|
|
1047
|
-
break;
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
message.amount = Coin.decode(reader, reader.uint32());
|
|
1051
|
-
continue;
|
|
1052
|
-
}
|
|
1053
|
-
case 4: {
|
|
1054
|
-
if (tag !== 32) {
|
|
1055
|
-
break;
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
message.creationHeight = longToNumber(reader.int64());
|
|
1059
|
-
continue;
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1063
|
-
break;
|
|
1064
|
-
}
|
|
1065
|
-
reader.skip(tag & 7);
|
|
1066
|
-
}
|
|
1067
|
-
return message;
|
|
1068
|
-
},
|
|
1069
|
-
|
|
1070
|
-
fromJSON(object: any): MsgCancelUnbondingDelegation {
|
|
1071
|
-
return {
|
|
1072
|
-
delegatorAddress: isSet(object.delegatorAddress) ? globalThis.String(object.delegatorAddress) : "",
|
|
1073
|
-
validatorAddress: isSet(object.validatorAddress) ? globalThis.String(object.validatorAddress) : "",
|
|
1074
|
-
amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : undefined,
|
|
1075
|
-
creationHeight: isSet(object.creationHeight) ? globalThis.Number(object.creationHeight) : 0,
|
|
1076
|
-
};
|
|
1077
|
-
},
|
|
1078
|
-
|
|
1079
|
-
toJSON(message: MsgCancelUnbondingDelegation): unknown {
|
|
1080
|
-
const obj: any = {};
|
|
1081
|
-
if (message.delegatorAddress !== "") {
|
|
1082
|
-
obj.delegatorAddress = message.delegatorAddress;
|
|
1083
|
-
}
|
|
1084
|
-
if (message.validatorAddress !== "") {
|
|
1085
|
-
obj.validatorAddress = message.validatorAddress;
|
|
1086
|
-
}
|
|
1087
|
-
if (message.amount !== undefined) {
|
|
1088
|
-
obj.amount = Coin.toJSON(message.amount);
|
|
1089
|
-
}
|
|
1090
|
-
if (message.creationHeight !== 0) {
|
|
1091
|
-
obj.creationHeight = Math.round(message.creationHeight);
|
|
1092
|
-
}
|
|
1093
|
-
return obj;
|
|
1094
|
-
},
|
|
1095
|
-
|
|
1096
|
-
create<I extends Exact<DeepPartial<MsgCancelUnbondingDelegation>, I>>(base?: I): MsgCancelUnbondingDelegation {
|
|
1097
|
-
return MsgCancelUnbondingDelegation.fromPartial(base ?? ({} as any));
|
|
1098
|
-
},
|
|
1099
|
-
fromPartial<I extends Exact<DeepPartial<MsgCancelUnbondingDelegation>, I>>(object: I): MsgCancelUnbondingDelegation {
|
|
1100
|
-
const message = createBaseMsgCancelUnbondingDelegation();
|
|
1101
|
-
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
1102
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
1103
|
-
message.amount = (object.amount !== undefined && object.amount !== null)
|
|
1104
|
-
? Coin.fromPartial(object.amount)
|
|
1105
|
-
: undefined;
|
|
1106
|
-
message.creationHeight = object.creationHeight ?? 0;
|
|
1107
|
-
return message;
|
|
1108
|
-
},
|
|
1109
|
-
};
|
|
1110
|
-
|
|
1111
|
-
function createBaseMsgCancelUnbondingDelegationResponse(): MsgCancelUnbondingDelegationResponse {
|
|
1112
|
-
return {};
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
export const MsgCancelUnbondingDelegationResponse: MessageFns<MsgCancelUnbondingDelegationResponse> = {
|
|
1116
|
-
encode(_: MsgCancelUnbondingDelegationResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1117
|
-
return writer;
|
|
1118
|
-
},
|
|
1119
|
-
|
|
1120
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegationResponse {
|
|
1121
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1122
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1123
|
-
const message = createBaseMsgCancelUnbondingDelegationResponse();
|
|
1124
|
-
while (reader.pos < end) {
|
|
1125
|
-
const tag = reader.uint32();
|
|
1126
|
-
switch (tag >>> 3) {
|
|
1127
|
-
}
|
|
1128
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1129
|
-
break;
|
|
1130
|
-
}
|
|
1131
|
-
reader.skip(tag & 7);
|
|
1132
|
-
}
|
|
1133
|
-
return message;
|
|
1134
|
-
},
|
|
1135
|
-
|
|
1136
|
-
fromJSON(_: any): MsgCancelUnbondingDelegationResponse {
|
|
1137
|
-
return {};
|
|
1138
|
-
},
|
|
1139
|
-
|
|
1140
|
-
toJSON(_: MsgCancelUnbondingDelegationResponse): unknown {
|
|
1141
|
-
const obj: any = {};
|
|
1142
|
-
return obj;
|
|
1143
|
-
},
|
|
1144
|
-
|
|
1145
|
-
create<I extends Exact<DeepPartial<MsgCancelUnbondingDelegationResponse>, I>>(
|
|
1146
|
-
base?: I,
|
|
1147
|
-
): MsgCancelUnbondingDelegationResponse {
|
|
1148
|
-
return MsgCancelUnbondingDelegationResponse.fromPartial(base ?? ({} as any));
|
|
1149
|
-
},
|
|
1150
|
-
fromPartial<I extends Exact<DeepPartial<MsgCancelUnbondingDelegationResponse>, I>>(
|
|
1151
|
-
_: I,
|
|
1152
|
-
): MsgCancelUnbondingDelegationResponse {
|
|
1153
|
-
const message = createBaseMsgCancelUnbondingDelegationResponse();
|
|
1154
|
-
return message;
|
|
1155
|
-
},
|
|
1156
|
-
};
|
|
1157
|
-
|
|
1158
|
-
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
1159
|
-
return { authority: "", params: undefined };
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
export const MsgUpdateParams: MessageFns<MsgUpdateParams> = {
|
|
1163
|
-
encode(message: MsgUpdateParams, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1164
|
-
if (message.authority !== "") {
|
|
1165
|
-
writer.uint32(10).string(message.authority);
|
|
1166
|
-
}
|
|
1167
|
-
if (message.params !== undefined) {
|
|
1168
|
-
Params.encode(message.params, writer.uint32(18).fork()).join();
|
|
1169
|
-
}
|
|
1170
|
-
return writer;
|
|
1171
|
-
},
|
|
1172
|
-
|
|
1173
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
|
|
1174
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1175
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1176
|
-
const message = createBaseMsgUpdateParams();
|
|
1177
|
-
while (reader.pos < end) {
|
|
1178
|
-
const tag = reader.uint32();
|
|
1179
|
-
switch (tag >>> 3) {
|
|
1180
|
-
case 1: {
|
|
1181
|
-
if (tag !== 10) {
|
|
1182
|
-
break;
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
message.authority = reader.string();
|
|
1186
|
-
continue;
|
|
1187
|
-
}
|
|
1188
|
-
case 2: {
|
|
1189
|
-
if (tag !== 18) {
|
|
1190
|
-
break;
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
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): MsgUpdateParams {
|
|
1206
|
-
return {
|
|
1207
|
-
authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
|
|
1208
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
1209
|
-
};
|
|
1210
|
-
},
|
|
1211
|
-
|
|
1212
|
-
toJSON(message: MsgUpdateParams): unknown {
|
|
1213
|
-
const obj: any = {};
|
|
1214
|
-
if (message.authority !== "") {
|
|
1215
|
-
obj.authority = message.authority;
|
|
1216
|
-
}
|
|
1217
|
-
if (message.params !== undefined) {
|
|
1218
|
-
obj.params = Params.toJSON(message.params);
|
|
1219
|
-
}
|
|
1220
|
-
return obj;
|
|
1221
|
-
},
|
|
1222
|
-
|
|
1223
|
-
create<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(base?: I): MsgUpdateParams {
|
|
1224
|
-
return MsgUpdateParams.fromPartial(base ?? ({} as any));
|
|
1225
|
-
},
|
|
1226
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(object: I): MsgUpdateParams {
|
|
1227
|
-
const message = createBaseMsgUpdateParams();
|
|
1228
|
-
message.authority = object.authority ?? "";
|
|
1229
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
1230
|
-
? Params.fromPartial(object.params)
|
|
1231
|
-
: undefined;
|
|
1232
|
-
return message;
|
|
1233
|
-
},
|
|
1234
|
-
};
|
|
1235
|
-
|
|
1236
|
-
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
1237
|
-
return {};
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
|
-
export const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse> = {
|
|
1241
|
-
encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1242
|
-
return writer;
|
|
1243
|
-
},
|
|
1244
|
-
|
|
1245
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
1246
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1247
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1248
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
1249
|
-
while (reader.pos < end) {
|
|
1250
|
-
const tag = reader.uint32();
|
|
1251
|
-
switch (tag >>> 3) {
|
|
1252
|
-
}
|
|
1253
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1254
|
-
break;
|
|
1255
|
-
}
|
|
1256
|
-
reader.skip(tag & 7);
|
|
1257
|
-
}
|
|
1258
|
-
return message;
|
|
1259
|
-
},
|
|
1260
|
-
|
|
1261
|
-
fromJSON(_: any): MsgUpdateParamsResponse {
|
|
1262
|
-
return {};
|
|
1263
|
-
},
|
|
1264
|
-
|
|
1265
|
-
toJSON(_: MsgUpdateParamsResponse): unknown {
|
|
1266
|
-
const obj: any = {};
|
|
1267
|
-
return obj;
|
|
1268
|
-
},
|
|
1269
|
-
|
|
1270
|
-
create<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(base?: I): MsgUpdateParamsResponse {
|
|
1271
|
-
return MsgUpdateParamsResponse.fromPartial(base ?? ({} as any));
|
|
1272
|
-
},
|
|
1273
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse {
|
|
1274
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
1275
|
-
return message;
|
|
1276
|
-
},
|
|
1277
|
-
};
|
|
1278
|
-
|
|
1279
|
-
/** Msg defines the staking Msg service. */
|
|
1280
|
-
export interface Msg {
|
|
1281
|
-
/** CreateValidator defines a method for creating a new validator. */
|
|
1282
|
-
CreateValidator(request: MsgCreateValidator): Promise<MsgCreateValidatorResponse>;
|
|
1283
|
-
/** EditValidator defines a method for editing an existing validator. */
|
|
1284
|
-
EditValidator(request: MsgEditValidator): Promise<MsgEditValidatorResponse>;
|
|
1285
|
-
/**
|
|
1286
|
-
* Delegate defines a method for performing a delegation of coins
|
|
1287
|
-
* from a delegator to a validator.
|
|
1288
|
-
*/
|
|
1289
|
-
Delegate(request: MsgDelegate): Promise<MsgDelegateResponse>;
|
|
1290
|
-
/**
|
|
1291
|
-
* BeginRedelegate defines a method for performing a redelegation
|
|
1292
|
-
* of coins from a delegator and source validator to a destination validator.
|
|
1293
|
-
*/
|
|
1294
|
-
BeginRedelegate(request: MsgBeginRedelegate): Promise<MsgBeginRedelegateResponse>;
|
|
1295
|
-
/**
|
|
1296
|
-
* Undelegate defines a method for performing an undelegation from a
|
|
1297
|
-
* delegate and a validator.
|
|
1298
|
-
*/
|
|
1299
|
-
Undelegate(request: MsgUndelegate): Promise<MsgUndelegateResponse>;
|
|
1300
|
-
/**
|
|
1301
|
-
* CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation
|
|
1302
|
-
* and delegate back to previous validator.
|
|
1303
|
-
*
|
|
1304
|
-
* Since: cosmos-sdk 0.46
|
|
1305
|
-
*/
|
|
1306
|
-
CancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise<MsgCancelUnbondingDelegationResponse>;
|
|
1307
|
-
/**
|
|
1308
|
-
* UpdateParams defines an operation for updating the x/staking module
|
|
1309
|
-
* parameters.
|
|
1310
|
-
* Since: cosmos-sdk 0.47
|
|
1311
|
-
*/
|
|
1312
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
export const MsgServiceName = "cosmos.staking.v1beta1.Msg";
|
|
1316
|
-
export class MsgClientImpl implements Msg {
|
|
1317
|
-
private readonly rpc: Rpc;
|
|
1318
|
-
private readonly service: string;
|
|
1319
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
1320
|
-
this.service = opts?.service || MsgServiceName;
|
|
1321
|
-
this.rpc = rpc;
|
|
1322
|
-
this.CreateValidator = this.CreateValidator.bind(this);
|
|
1323
|
-
this.EditValidator = this.EditValidator.bind(this);
|
|
1324
|
-
this.Delegate = this.Delegate.bind(this);
|
|
1325
|
-
this.BeginRedelegate = this.BeginRedelegate.bind(this);
|
|
1326
|
-
this.Undelegate = this.Undelegate.bind(this);
|
|
1327
|
-
this.CancelUnbondingDelegation = this.CancelUnbondingDelegation.bind(this);
|
|
1328
|
-
this.UpdateParams = this.UpdateParams.bind(this);
|
|
1329
|
-
}
|
|
1330
|
-
CreateValidator(request: MsgCreateValidator): Promise<MsgCreateValidatorResponse> {
|
|
1331
|
-
const data = MsgCreateValidator.encode(request).finish();
|
|
1332
|
-
const promise = this.rpc.request(this.service, "CreateValidator", data);
|
|
1333
|
-
return promise.then((data) => MsgCreateValidatorResponse.decode(new BinaryReader(data)));
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
EditValidator(request: MsgEditValidator): Promise<MsgEditValidatorResponse> {
|
|
1337
|
-
const data = MsgEditValidator.encode(request).finish();
|
|
1338
|
-
const promise = this.rpc.request(this.service, "EditValidator", data);
|
|
1339
|
-
return promise.then((data) => MsgEditValidatorResponse.decode(new BinaryReader(data)));
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
|
-
Delegate(request: MsgDelegate): Promise<MsgDelegateResponse> {
|
|
1343
|
-
const data = MsgDelegate.encode(request).finish();
|
|
1344
|
-
const promise = this.rpc.request(this.service, "Delegate", data);
|
|
1345
|
-
return promise.then((data) => MsgDelegateResponse.decode(new BinaryReader(data)));
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
BeginRedelegate(request: MsgBeginRedelegate): Promise<MsgBeginRedelegateResponse> {
|
|
1349
|
-
const data = MsgBeginRedelegate.encode(request).finish();
|
|
1350
|
-
const promise = this.rpc.request(this.service, "BeginRedelegate", data);
|
|
1351
|
-
return promise.then((data) => MsgBeginRedelegateResponse.decode(new BinaryReader(data)));
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
Undelegate(request: MsgUndelegate): Promise<MsgUndelegateResponse> {
|
|
1355
|
-
const data = MsgUndelegate.encode(request).finish();
|
|
1356
|
-
const promise = this.rpc.request(this.service, "Undelegate", data);
|
|
1357
|
-
return promise.then((data) => MsgUndelegateResponse.decode(new BinaryReader(data)));
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
CancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise<MsgCancelUnbondingDelegationResponse> {
|
|
1361
|
-
const data = MsgCancelUnbondingDelegation.encode(request).finish();
|
|
1362
|
-
const promise = this.rpc.request(this.service, "CancelUnbondingDelegation", data);
|
|
1363
|
-
return promise.then((data) => MsgCancelUnbondingDelegationResponse.decode(new BinaryReader(data)));
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse> {
|
|
1367
|
-
const data = MsgUpdateParams.encode(request).finish();
|
|
1368
|
-
const promise = this.rpc.request(this.service, "UpdateParams", data);
|
|
1369
|
-
return promise.then((data) => MsgUpdateParamsResponse.decode(new BinaryReader(data)));
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
interface Rpc {
|
|
1374
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1378
|
-
|
|
1379
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
1380
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
1381
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
1382
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
1383
|
-
: Partial<T>;
|
|
1384
|
-
|
|
1385
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1386
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
1387
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
1388
|
-
|
|
1389
|
-
function toTimestamp(date: Date): Timestamp {
|
|
1390
|
-
const seconds = Math.trunc(date.getTime() / 1_000);
|
|
1391
|
-
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
1392
|
-
return { seconds, nanos };
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
function fromTimestamp(t: Timestamp): Date {
|
|
1396
|
-
let millis = (t.seconds || 0) * 1_000;
|
|
1397
|
-
millis += (t.nanos || 0) / 1_000_000;
|
|
1398
|
-
return new globalThis.Date(millis);
|
|
1399
|
-
}
|
|
1400
|
-
|
|
1401
|
-
function fromJsonTimestamp(o: any): Date {
|
|
1402
|
-
if (o instanceof globalThis.Date) {
|
|
1403
|
-
return o;
|
|
1404
|
-
} else if (typeof o === "string") {
|
|
1405
|
-
return new globalThis.Date(o);
|
|
1406
|
-
} else {
|
|
1407
|
-
return fromTimestamp(Timestamp.fromJSON(o));
|
|
1408
|
-
}
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
1412
|
-
const num = globalThis.Number(int64.toString());
|
|
1413
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
1414
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1415
|
-
}
|
|
1416
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
1417
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
1418
|
-
}
|
|
1419
|
-
return num;
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
function isSet(value: any): boolean {
|
|
1423
|
-
return value !== null && value !== undefined;
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
-
export interface MessageFns<T> {
|
|
1427
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1428
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1429
|
-
fromJSON(object: any): T;
|
|
1430
|
-
toJSON(message: T): unknown;
|
|
1431
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
1432
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
1433
|
-
}
|