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,306 +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/authz.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Coin } from "../../base/v1beta1/coin";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "cosmos.staking.v1beta1";
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* AuthorizationType defines the type of staking module authorization type
|
|
15
|
-
*
|
|
16
|
-
* Since: cosmos-sdk 0.43
|
|
17
|
-
*/
|
|
18
|
-
export enum AuthorizationType {
|
|
19
|
-
/** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */
|
|
20
|
-
AUTHORIZATION_TYPE_UNSPECIFIED = 0,
|
|
21
|
-
/** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */
|
|
22
|
-
AUTHORIZATION_TYPE_DELEGATE = 1,
|
|
23
|
-
/** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */
|
|
24
|
-
AUTHORIZATION_TYPE_UNDELEGATE = 2,
|
|
25
|
-
/** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */
|
|
26
|
-
AUTHORIZATION_TYPE_REDELEGATE = 3,
|
|
27
|
-
/** AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION - AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION defines an authorization type for Msg/MsgCancelUnbondingDelegation */
|
|
28
|
-
AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION = 4,
|
|
29
|
-
UNRECOGNIZED = -1,
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export function authorizationTypeFromJSON(object: any): AuthorizationType {
|
|
33
|
-
switch (object) {
|
|
34
|
-
case 0:
|
|
35
|
-
case "AUTHORIZATION_TYPE_UNSPECIFIED":
|
|
36
|
-
return AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED;
|
|
37
|
-
case 1:
|
|
38
|
-
case "AUTHORIZATION_TYPE_DELEGATE":
|
|
39
|
-
return AuthorizationType.AUTHORIZATION_TYPE_DELEGATE;
|
|
40
|
-
case 2:
|
|
41
|
-
case "AUTHORIZATION_TYPE_UNDELEGATE":
|
|
42
|
-
return AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE;
|
|
43
|
-
case 3:
|
|
44
|
-
case "AUTHORIZATION_TYPE_REDELEGATE":
|
|
45
|
-
return AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE;
|
|
46
|
-
case 4:
|
|
47
|
-
case "AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION":
|
|
48
|
-
return AuthorizationType.AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION;
|
|
49
|
-
case -1:
|
|
50
|
-
case "UNRECOGNIZED":
|
|
51
|
-
default:
|
|
52
|
-
return AuthorizationType.UNRECOGNIZED;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function authorizationTypeToJSON(object: AuthorizationType): string {
|
|
57
|
-
switch (object) {
|
|
58
|
-
case AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED:
|
|
59
|
-
return "AUTHORIZATION_TYPE_UNSPECIFIED";
|
|
60
|
-
case AuthorizationType.AUTHORIZATION_TYPE_DELEGATE:
|
|
61
|
-
return "AUTHORIZATION_TYPE_DELEGATE";
|
|
62
|
-
case AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE:
|
|
63
|
-
return "AUTHORIZATION_TYPE_UNDELEGATE";
|
|
64
|
-
case AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE:
|
|
65
|
-
return "AUTHORIZATION_TYPE_REDELEGATE";
|
|
66
|
-
case AuthorizationType.AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION:
|
|
67
|
-
return "AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION";
|
|
68
|
-
case AuthorizationType.UNRECOGNIZED:
|
|
69
|
-
default:
|
|
70
|
-
return "UNRECOGNIZED";
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* StakeAuthorization defines authorization for delegate/undelegate/redelegate.
|
|
76
|
-
*
|
|
77
|
-
* Since: cosmos-sdk 0.43
|
|
78
|
-
*/
|
|
79
|
-
export interface StakeAuthorization {
|
|
80
|
-
/**
|
|
81
|
-
* max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is
|
|
82
|
-
* empty, there is no spend limit and any amount of coins can be delegated.
|
|
83
|
-
*/
|
|
84
|
-
maxTokens:
|
|
85
|
-
| Coin
|
|
86
|
-
| undefined;
|
|
87
|
-
/**
|
|
88
|
-
* allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's
|
|
89
|
-
* account.
|
|
90
|
-
*/
|
|
91
|
-
allowList?:
|
|
92
|
-
| StakeAuthorization_Validators
|
|
93
|
-
| undefined;
|
|
94
|
-
/** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */
|
|
95
|
-
denyList?:
|
|
96
|
-
| StakeAuthorization_Validators
|
|
97
|
-
| undefined;
|
|
98
|
-
/** authorization_type defines one of AuthorizationType. */
|
|
99
|
-
authorizationType: AuthorizationType;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/** Validators defines list of validator addresses. */
|
|
103
|
-
export interface StakeAuthorization_Validators {
|
|
104
|
-
address: string[];
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
function createBaseStakeAuthorization(): StakeAuthorization {
|
|
108
|
-
return { maxTokens: undefined, allowList: undefined, denyList: undefined, authorizationType: 0 };
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export const StakeAuthorization: MessageFns<StakeAuthorization> = {
|
|
112
|
-
encode(message: StakeAuthorization, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
113
|
-
if (message.maxTokens !== undefined) {
|
|
114
|
-
Coin.encode(message.maxTokens, writer.uint32(10).fork()).join();
|
|
115
|
-
}
|
|
116
|
-
if (message.allowList !== undefined) {
|
|
117
|
-
StakeAuthorization_Validators.encode(message.allowList, writer.uint32(18).fork()).join();
|
|
118
|
-
}
|
|
119
|
-
if (message.denyList !== undefined) {
|
|
120
|
-
StakeAuthorization_Validators.encode(message.denyList, writer.uint32(26).fork()).join();
|
|
121
|
-
}
|
|
122
|
-
if (message.authorizationType !== 0) {
|
|
123
|
-
writer.uint32(32).int32(message.authorizationType);
|
|
124
|
-
}
|
|
125
|
-
return writer;
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
decode(input: BinaryReader | Uint8Array, length?: number): StakeAuthorization {
|
|
129
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
130
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
131
|
-
const message = createBaseStakeAuthorization();
|
|
132
|
-
while (reader.pos < end) {
|
|
133
|
-
const tag = reader.uint32();
|
|
134
|
-
switch (tag >>> 3) {
|
|
135
|
-
case 1: {
|
|
136
|
-
if (tag !== 10) {
|
|
137
|
-
break;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
message.maxTokens = Coin.decode(reader, reader.uint32());
|
|
141
|
-
continue;
|
|
142
|
-
}
|
|
143
|
-
case 2: {
|
|
144
|
-
if (tag !== 18) {
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
message.allowList = StakeAuthorization_Validators.decode(reader, reader.uint32());
|
|
149
|
-
continue;
|
|
150
|
-
}
|
|
151
|
-
case 3: {
|
|
152
|
-
if (tag !== 26) {
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
message.denyList = StakeAuthorization_Validators.decode(reader, reader.uint32());
|
|
157
|
-
continue;
|
|
158
|
-
}
|
|
159
|
-
case 4: {
|
|
160
|
-
if (tag !== 32) {
|
|
161
|
-
break;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
message.authorizationType = reader.int32() as any;
|
|
165
|
-
continue;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
169
|
-
break;
|
|
170
|
-
}
|
|
171
|
-
reader.skip(tag & 7);
|
|
172
|
-
}
|
|
173
|
-
return message;
|
|
174
|
-
},
|
|
175
|
-
|
|
176
|
-
fromJSON(object: any): StakeAuthorization {
|
|
177
|
-
return {
|
|
178
|
-
maxTokens: isSet(object.maxTokens) ? Coin.fromJSON(object.maxTokens) : undefined,
|
|
179
|
-
allowList: isSet(object.allowList) ? StakeAuthorization_Validators.fromJSON(object.allowList) : undefined,
|
|
180
|
-
denyList: isSet(object.denyList) ? StakeAuthorization_Validators.fromJSON(object.denyList) : undefined,
|
|
181
|
-
authorizationType: isSet(object.authorizationType) ? authorizationTypeFromJSON(object.authorizationType) : 0,
|
|
182
|
-
};
|
|
183
|
-
},
|
|
184
|
-
|
|
185
|
-
toJSON(message: StakeAuthorization): unknown {
|
|
186
|
-
const obj: any = {};
|
|
187
|
-
if (message.maxTokens !== undefined) {
|
|
188
|
-
obj.maxTokens = Coin.toJSON(message.maxTokens);
|
|
189
|
-
}
|
|
190
|
-
if (message.allowList !== undefined) {
|
|
191
|
-
obj.allowList = StakeAuthorization_Validators.toJSON(message.allowList);
|
|
192
|
-
}
|
|
193
|
-
if (message.denyList !== undefined) {
|
|
194
|
-
obj.denyList = StakeAuthorization_Validators.toJSON(message.denyList);
|
|
195
|
-
}
|
|
196
|
-
if (message.authorizationType !== 0) {
|
|
197
|
-
obj.authorizationType = authorizationTypeToJSON(message.authorizationType);
|
|
198
|
-
}
|
|
199
|
-
return obj;
|
|
200
|
-
},
|
|
201
|
-
|
|
202
|
-
create<I extends Exact<DeepPartial<StakeAuthorization>, I>>(base?: I): StakeAuthorization {
|
|
203
|
-
return StakeAuthorization.fromPartial(base ?? ({} as any));
|
|
204
|
-
},
|
|
205
|
-
fromPartial<I extends Exact<DeepPartial<StakeAuthorization>, I>>(object: I): StakeAuthorization {
|
|
206
|
-
const message = createBaseStakeAuthorization();
|
|
207
|
-
message.maxTokens = (object.maxTokens !== undefined && object.maxTokens !== null)
|
|
208
|
-
? Coin.fromPartial(object.maxTokens)
|
|
209
|
-
: undefined;
|
|
210
|
-
message.allowList = (object.allowList !== undefined && object.allowList !== null)
|
|
211
|
-
? StakeAuthorization_Validators.fromPartial(object.allowList)
|
|
212
|
-
: undefined;
|
|
213
|
-
message.denyList = (object.denyList !== undefined && object.denyList !== null)
|
|
214
|
-
? StakeAuthorization_Validators.fromPartial(object.denyList)
|
|
215
|
-
: undefined;
|
|
216
|
-
message.authorizationType = object.authorizationType ?? 0;
|
|
217
|
-
return message;
|
|
218
|
-
},
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
function createBaseStakeAuthorization_Validators(): StakeAuthorization_Validators {
|
|
222
|
-
return { address: [] };
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export const StakeAuthorization_Validators: MessageFns<StakeAuthorization_Validators> = {
|
|
226
|
-
encode(message: StakeAuthorization_Validators, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
227
|
-
for (const v of message.address) {
|
|
228
|
-
writer.uint32(10).string(v!);
|
|
229
|
-
}
|
|
230
|
-
return writer;
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
decode(input: BinaryReader | Uint8Array, length?: number): StakeAuthorization_Validators {
|
|
234
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
235
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
236
|
-
const message = createBaseStakeAuthorization_Validators();
|
|
237
|
-
while (reader.pos < end) {
|
|
238
|
-
const tag = reader.uint32();
|
|
239
|
-
switch (tag >>> 3) {
|
|
240
|
-
case 1: {
|
|
241
|
-
if (tag !== 10) {
|
|
242
|
-
break;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
message.address.push(reader.string());
|
|
246
|
-
continue;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
250
|
-
break;
|
|
251
|
-
}
|
|
252
|
-
reader.skip(tag & 7);
|
|
253
|
-
}
|
|
254
|
-
return message;
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
fromJSON(object: any): StakeAuthorization_Validators {
|
|
258
|
-
return {
|
|
259
|
-
address: globalThis.Array.isArray(object?.address) ? object.address.map((e: any) => globalThis.String(e)) : [],
|
|
260
|
-
};
|
|
261
|
-
},
|
|
262
|
-
|
|
263
|
-
toJSON(message: StakeAuthorization_Validators): unknown {
|
|
264
|
-
const obj: any = {};
|
|
265
|
-
if (message.address?.length) {
|
|
266
|
-
obj.address = message.address;
|
|
267
|
-
}
|
|
268
|
-
return obj;
|
|
269
|
-
},
|
|
270
|
-
|
|
271
|
-
create<I extends Exact<DeepPartial<StakeAuthorization_Validators>, I>>(base?: I): StakeAuthorization_Validators {
|
|
272
|
-
return StakeAuthorization_Validators.fromPartial(base ?? ({} as any));
|
|
273
|
-
},
|
|
274
|
-
fromPartial<I extends Exact<DeepPartial<StakeAuthorization_Validators>, I>>(
|
|
275
|
-
object: I,
|
|
276
|
-
): StakeAuthorization_Validators {
|
|
277
|
-
const message = createBaseStakeAuthorization_Validators();
|
|
278
|
-
message.address = object.address?.map((e) => e) || [];
|
|
279
|
-
return message;
|
|
280
|
-
},
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
284
|
-
|
|
285
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
286
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
287
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
288
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
289
|
-
: Partial<T>;
|
|
290
|
-
|
|
291
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
292
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
293
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
294
|
-
|
|
295
|
-
function isSet(value: any): boolean {
|
|
296
|
-
return value !== null && value !== undefined;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
export interface MessageFns<T> {
|
|
300
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
301
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
302
|
-
fromJSON(object: any): T;
|
|
303
|
-
toJSON(message: T): unknown;
|
|
304
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
305
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
306
|
-
}
|
|
@@ -1,377 +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/genesis.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Delegation, Params, Redelegation, UnbondingDelegation, Validator } from "./staking";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "cosmos.staking.v1beta1";
|
|
12
|
-
|
|
13
|
-
/** GenesisState defines the staking module's genesis state. */
|
|
14
|
-
export interface GenesisState {
|
|
15
|
-
/** params defines all the parameters of related to deposit. */
|
|
16
|
-
params:
|
|
17
|
-
| Params
|
|
18
|
-
| undefined;
|
|
19
|
-
/**
|
|
20
|
-
* last_total_power tracks the total amounts of bonded tokens recorded during
|
|
21
|
-
* the previous end block.
|
|
22
|
-
*/
|
|
23
|
-
lastTotalPower: Uint8Array;
|
|
24
|
-
/**
|
|
25
|
-
* last_validator_powers is a special index that provides a historical list
|
|
26
|
-
* of the last-block's bonded validators.
|
|
27
|
-
*/
|
|
28
|
-
lastValidatorPowers: LastValidatorPower[];
|
|
29
|
-
/** validators defines the validator set at genesis. */
|
|
30
|
-
validators: Validator[];
|
|
31
|
-
/** delegations defines the delegations active at genesis. */
|
|
32
|
-
delegations: Delegation[];
|
|
33
|
-
/** unbonding_delegations defines the unbonding delegations active at genesis. */
|
|
34
|
-
unbondingDelegations: UnbondingDelegation[];
|
|
35
|
-
/** redelegations defines the redelegations active at genesis. */
|
|
36
|
-
redelegations: Redelegation[];
|
|
37
|
-
/** exported defines a bool to identify whether the chain dealing with exported or initialized genesis. */
|
|
38
|
-
exported: boolean;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/** LastValidatorPower required for validator set update logic. */
|
|
42
|
-
export interface LastValidatorPower {
|
|
43
|
-
/** address is the address of the validator. */
|
|
44
|
-
address: string;
|
|
45
|
-
/** power defines the power of the validator. */
|
|
46
|
-
power: number;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function createBaseGenesisState(): GenesisState {
|
|
50
|
-
return {
|
|
51
|
-
params: undefined,
|
|
52
|
-
lastTotalPower: new Uint8Array(0),
|
|
53
|
-
lastValidatorPowers: [],
|
|
54
|
-
validators: [],
|
|
55
|
-
delegations: [],
|
|
56
|
-
unbondingDelegations: [],
|
|
57
|
-
redelegations: [],
|
|
58
|
-
exported: false,
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export const GenesisState: MessageFns<GenesisState> = {
|
|
63
|
-
encode(message: GenesisState, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
64
|
-
if (message.params !== undefined) {
|
|
65
|
-
Params.encode(message.params, writer.uint32(10).fork()).join();
|
|
66
|
-
}
|
|
67
|
-
if (message.lastTotalPower.length !== 0) {
|
|
68
|
-
writer.uint32(18).bytes(message.lastTotalPower);
|
|
69
|
-
}
|
|
70
|
-
for (const v of message.lastValidatorPowers) {
|
|
71
|
-
LastValidatorPower.encode(v!, writer.uint32(26).fork()).join();
|
|
72
|
-
}
|
|
73
|
-
for (const v of message.validators) {
|
|
74
|
-
Validator.encode(v!, writer.uint32(34).fork()).join();
|
|
75
|
-
}
|
|
76
|
-
for (const v of message.delegations) {
|
|
77
|
-
Delegation.encode(v!, writer.uint32(42).fork()).join();
|
|
78
|
-
}
|
|
79
|
-
for (const v of message.unbondingDelegations) {
|
|
80
|
-
UnbondingDelegation.encode(v!, writer.uint32(50).fork()).join();
|
|
81
|
-
}
|
|
82
|
-
for (const v of message.redelegations) {
|
|
83
|
-
Redelegation.encode(v!, writer.uint32(58).fork()).join();
|
|
84
|
-
}
|
|
85
|
-
if (message.exported !== false) {
|
|
86
|
-
writer.uint32(64).bool(message.exported);
|
|
87
|
-
}
|
|
88
|
-
return writer;
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
|
|
92
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
93
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
94
|
-
const message = createBaseGenesisState();
|
|
95
|
-
while (reader.pos < end) {
|
|
96
|
-
const tag = reader.uint32();
|
|
97
|
-
switch (tag >>> 3) {
|
|
98
|
-
case 1: {
|
|
99
|
-
if (tag !== 10) {
|
|
100
|
-
break;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
104
|
-
continue;
|
|
105
|
-
}
|
|
106
|
-
case 2: {
|
|
107
|
-
if (tag !== 18) {
|
|
108
|
-
break;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
message.lastTotalPower = reader.bytes();
|
|
112
|
-
continue;
|
|
113
|
-
}
|
|
114
|
-
case 3: {
|
|
115
|
-
if (tag !== 26) {
|
|
116
|
-
break;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
message.lastValidatorPowers.push(LastValidatorPower.decode(reader, reader.uint32()));
|
|
120
|
-
continue;
|
|
121
|
-
}
|
|
122
|
-
case 4: {
|
|
123
|
-
if (tag !== 34) {
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
message.validators.push(Validator.decode(reader, reader.uint32()));
|
|
128
|
-
continue;
|
|
129
|
-
}
|
|
130
|
-
case 5: {
|
|
131
|
-
if (tag !== 42) {
|
|
132
|
-
break;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
message.delegations.push(Delegation.decode(reader, reader.uint32()));
|
|
136
|
-
continue;
|
|
137
|
-
}
|
|
138
|
-
case 6: {
|
|
139
|
-
if (tag !== 50) {
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
message.unbondingDelegations.push(UnbondingDelegation.decode(reader, reader.uint32()));
|
|
144
|
-
continue;
|
|
145
|
-
}
|
|
146
|
-
case 7: {
|
|
147
|
-
if (tag !== 58) {
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
message.redelegations.push(Redelegation.decode(reader, reader.uint32()));
|
|
152
|
-
continue;
|
|
153
|
-
}
|
|
154
|
-
case 8: {
|
|
155
|
-
if (tag !== 64) {
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
message.exported = reader.bool();
|
|
160
|
-
continue;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
164
|
-
break;
|
|
165
|
-
}
|
|
166
|
-
reader.skip(tag & 7);
|
|
167
|
-
}
|
|
168
|
-
return message;
|
|
169
|
-
},
|
|
170
|
-
|
|
171
|
-
fromJSON(object: any): GenesisState {
|
|
172
|
-
return {
|
|
173
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
174
|
-
lastTotalPower: isSet(object.lastTotalPower) ? bytesFromBase64(object.lastTotalPower) : new Uint8Array(0),
|
|
175
|
-
lastValidatorPowers: globalThis.Array.isArray(object?.lastValidatorPowers)
|
|
176
|
-
? object.lastValidatorPowers.map((e: any) => LastValidatorPower.fromJSON(e))
|
|
177
|
-
: [],
|
|
178
|
-
validators: globalThis.Array.isArray(object?.validators)
|
|
179
|
-
? object.validators.map((e: any) => Validator.fromJSON(e))
|
|
180
|
-
: [],
|
|
181
|
-
delegations: globalThis.Array.isArray(object?.delegations)
|
|
182
|
-
? object.delegations.map((e: any) => Delegation.fromJSON(e))
|
|
183
|
-
: [],
|
|
184
|
-
unbondingDelegations: globalThis.Array.isArray(object?.unbondingDelegations)
|
|
185
|
-
? object.unbondingDelegations.map((e: any) => UnbondingDelegation.fromJSON(e))
|
|
186
|
-
: [],
|
|
187
|
-
redelegations: globalThis.Array.isArray(object?.redelegations)
|
|
188
|
-
? object.redelegations.map((e: any) => Redelegation.fromJSON(e))
|
|
189
|
-
: [],
|
|
190
|
-
exported: isSet(object.exported) ? globalThis.Boolean(object.exported) : false,
|
|
191
|
-
};
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
toJSON(message: GenesisState): unknown {
|
|
195
|
-
const obj: any = {};
|
|
196
|
-
if (message.params !== undefined) {
|
|
197
|
-
obj.params = Params.toJSON(message.params);
|
|
198
|
-
}
|
|
199
|
-
if (message.lastTotalPower.length !== 0) {
|
|
200
|
-
obj.lastTotalPower = base64FromBytes(message.lastTotalPower);
|
|
201
|
-
}
|
|
202
|
-
if (message.lastValidatorPowers?.length) {
|
|
203
|
-
obj.lastValidatorPowers = message.lastValidatorPowers.map((e) => LastValidatorPower.toJSON(e));
|
|
204
|
-
}
|
|
205
|
-
if (message.validators?.length) {
|
|
206
|
-
obj.validators = message.validators.map((e) => Validator.toJSON(e));
|
|
207
|
-
}
|
|
208
|
-
if (message.delegations?.length) {
|
|
209
|
-
obj.delegations = message.delegations.map((e) => Delegation.toJSON(e));
|
|
210
|
-
}
|
|
211
|
-
if (message.unbondingDelegations?.length) {
|
|
212
|
-
obj.unbondingDelegations = message.unbondingDelegations.map((e) => UnbondingDelegation.toJSON(e));
|
|
213
|
-
}
|
|
214
|
-
if (message.redelegations?.length) {
|
|
215
|
-
obj.redelegations = message.redelegations.map((e) => Redelegation.toJSON(e));
|
|
216
|
-
}
|
|
217
|
-
if (message.exported !== false) {
|
|
218
|
-
obj.exported = message.exported;
|
|
219
|
-
}
|
|
220
|
-
return obj;
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
create<I extends Exact<DeepPartial<GenesisState>, I>>(base?: I): GenesisState {
|
|
224
|
-
return GenesisState.fromPartial(base ?? ({} as any));
|
|
225
|
-
},
|
|
226
|
-
fromPartial<I extends Exact<DeepPartial<GenesisState>, I>>(object: I): GenesisState {
|
|
227
|
-
const message = createBaseGenesisState();
|
|
228
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
229
|
-
? Params.fromPartial(object.params)
|
|
230
|
-
: undefined;
|
|
231
|
-
message.lastTotalPower = object.lastTotalPower ?? new Uint8Array(0);
|
|
232
|
-
message.lastValidatorPowers = object.lastValidatorPowers?.map((e) => LastValidatorPower.fromPartial(e)) || [];
|
|
233
|
-
message.validators = object.validators?.map((e) => Validator.fromPartial(e)) || [];
|
|
234
|
-
message.delegations = object.delegations?.map((e) => Delegation.fromPartial(e)) || [];
|
|
235
|
-
message.unbondingDelegations = object.unbondingDelegations?.map((e) => UnbondingDelegation.fromPartial(e)) || [];
|
|
236
|
-
message.redelegations = object.redelegations?.map((e) => Redelegation.fromPartial(e)) || [];
|
|
237
|
-
message.exported = object.exported ?? false;
|
|
238
|
-
return message;
|
|
239
|
-
},
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
function createBaseLastValidatorPower(): LastValidatorPower {
|
|
243
|
-
return { address: "", power: 0 };
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
export const LastValidatorPower: MessageFns<LastValidatorPower> = {
|
|
247
|
-
encode(message: LastValidatorPower, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
248
|
-
if (message.address !== "") {
|
|
249
|
-
writer.uint32(10).string(message.address);
|
|
250
|
-
}
|
|
251
|
-
if (message.power !== 0) {
|
|
252
|
-
writer.uint32(16).int64(message.power);
|
|
253
|
-
}
|
|
254
|
-
return writer;
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
decode(input: BinaryReader | Uint8Array, length?: number): LastValidatorPower {
|
|
258
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
259
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
260
|
-
const message = createBaseLastValidatorPower();
|
|
261
|
-
while (reader.pos < end) {
|
|
262
|
-
const tag = reader.uint32();
|
|
263
|
-
switch (tag >>> 3) {
|
|
264
|
-
case 1: {
|
|
265
|
-
if (tag !== 10) {
|
|
266
|
-
break;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
message.address = reader.string();
|
|
270
|
-
continue;
|
|
271
|
-
}
|
|
272
|
-
case 2: {
|
|
273
|
-
if (tag !== 16) {
|
|
274
|
-
break;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
message.power = longToNumber(reader.int64());
|
|
278
|
-
continue;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
282
|
-
break;
|
|
283
|
-
}
|
|
284
|
-
reader.skip(tag & 7);
|
|
285
|
-
}
|
|
286
|
-
return message;
|
|
287
|
-
},
|
|
288
|
-
|
|
289
|
-
fromJSON(object: any): LastValidatorPower {
|
|
290
|
-
return {
|
|
291
|
-
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
292
|
-
power: isSet(object.power) ? globalThis.Number(object.power) : 0,
|
|
293
|
-
};
|
|
294
|
-
},
|
|
295
|
-
|
|
296
|
-
toJSON(message: LastValidatorPower): unknown {
|
|
297
|
-
const obj: any = {};
|
|
298
|
-
if (message.address !== "") {
|
|
299
|
-
obj.address = message.address;
|
|
300
|
-
}
|
|
301
|
-
if (message.power !== 0) {
|
|
302
|
-
obj.power = Math.round(message.power);
|
|
303
|
-
}
|
|
304
|
-
return obj;
|
|
305
|
-
},
|
|
306
|
-
|
|
307
|
-
create<I extends Exact<DeepPartial<LastValidatorPower>, I>>(base?: I): LastValidatorPower {
|
|
308
|
-
return LastValidatorPower.fromPartial(base ?? ({} as any));
|
|
309
|
-
},
|
|
310
|
-
fromPartial<I extends Exact<DeepPartial<LastValidatorPower>, I>>(object: I): LastValidatorPower {
|
|
311
|
-
const message = createBaseLastValidatorPower();
|
|
312
|
-
message.address = object.address ?? "";
|
|
313
|
-
message.power = object.power ?? 0;
|
|
314
|
-
return message;
|
|
315
|
-
},
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
function bytesFromBase64(b64: string): Uint8Array {
|
|
319
|
-
if ((globalThis as any).Buffer) {
|
|
320
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
321
|
-
} else {
|
|
322
|
-
const bin = globalThis.atob(b64);
|
|
323
|
-
const arr = new Uint8Array(bin.length);
|
|
324
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
325
|
-
arr[i] = bin.charCodeAt(i);
|
|
326
|
-
}
|
|
327
|
-
return arr;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
function base64FromBytes(arr: Uint8Array): string {
|
|
332
|
-
if ((globalThis as any).Buffer) {
|
|
333
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
334
|
-
} else {
|
|
335
|
-
const bin: string[] = [];
|
|
336
|
-
arr.forEach((byte) => {
|
|
337
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
338
|
-
});
|
|
339
|
-
return globalThis.btoa(bin.join(""));
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
344
|
-
|
|
345
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
346
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
347
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
348
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
349
|
-
: Partial<T>;
|
|
350
|
-
|
|
351
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
352
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
353
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
354
|
-
|
|
355
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
356
|
-
const num = globalThis.Number(int64.toString());
|
|
357
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
358
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
359
|
-
}
|
|
360
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
361
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
362
|
-
}
|
|
363
|
-
return num;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
function isSet(value: any): boolean {
|
|
367
|
-
return value !== null && value !== undefined;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
export interface MessageFns<T> {
|
|
371
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
372
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
373
|
-
fromJSON(object: any): T;
|
|
374
|
-
toJSON(message: T): unknown;
|
|
375
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
376
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
377
|
-
}
|