decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +78 -78
- package/lib/index.js +23 -23
- package/package.json +5 -2
- package/cardchain.cardchain/index.ts +0 -6
- package/cardchain.cardchain/module.ts +0 -1869
- package/cardchain.cardchain/registry.ts +0 -111
- package/cardchain.cardchain/rest.ts +0 -655
- package/cardchain.cardchain/types.ts +0 -63
- package/cardchain.featureflag/index.ts +0 -6
- package/cardchain.featureflag/module.ts +0 -165
- package/cardchain.featureflag/registry.ts +0 -11
- package/cardchain.featureflag/rest.ts +0 -256
- package/cardchain.featureflag/types.ts +0 -9
- package/client.ts +0 -164
- package/cosmos.auth.v1beta1/index.ts +0 -6
- package/cosmos.auth.v1beta1/module.ts +0 -136
- package/cosmos.auth.v1beta1/registry.ts +0 -9
- package/cosmos.auth.v1beta1/rest.ts +0 -403
- package/cosmos.auth.v1beta1/types.ts +0 -13
- package/cosmos.authz.v1beta1/index.ts +0 -6
- package/cosmos.authz.v1beta1/module.ts +0 -206
- package/cosmos.authz.v1beta1/registry.ts +0 -13
- package/cosmos.authz.v1beta1/rest.ts +0 -256
- package/cosmos.authz.v1beta1/types.ts +0 -17
- package/cosmos.bank.v1beta1/index.ts +0 -6
- package/cosmos.bank.v1beta1/module.ts +0 -247
- package/cosmos.bank.v1beta1/registry.ts +0 -15
- package/cosmos.bank.v1beta1/rest.ts +0 -466
- package/cosmos.bank.v1beta1/types.ts +0 -25
- package/cosmos.base.node.v1beta1/index.ts +0 -6
- package/cosmos.base.node.v1beta1/module.ts +0 -95
- package/cosmos.base.node.v1beta1/registry.ts +0 -7
- package/cosmos.base.node.v1beta1/rest.ts +0 -235
- package/cosmos.base.node.v1beta1/types.ts +0 -5
- package/cosmos.base.tendermint.v1beta1/index.ts +0 -6
- package/cosmos.base.tendermint.v1beta1/module.ts +0 -109
- package/cosmos.base.tendermint.v1beta1/registry.ts +0 -7
- package/cosmos.base.tendermint.v1beta1/rest.ts +0 -340
- package/cosmos.base.tendermint.v1beta1/types.ts +0 -19
- package/cosmos.circuit.v1/index.ts +0 -6
- package/cosmos.circuit.v1/module.ts +0 -198
- package/cosmos.circuit.v1/registry.ts +0 -13
- package/cosmos.circuit.v1/rest.ts +0 -256
- package/cosmos.circuit.v1/types.ts +0 -9
- package/cosmos.consensus.v1/index.ts +0 -6
- package/cosmos.consensus.v1/module.ts +0 -128
- package/cosmos.consensus.v1/registry.ts +0 -9
- package/cosmos.consensus.v1/rest.ts +0 -214
- package/cosmos.consensus.v1/types.ts +0 -5
- package/cosmos.crisis.v1beta1/index.ts +0 -6
- package/cosmos.crisis.v1beta1/module.ts +0 -161
- package/cosmos.crisis.v1beta1/registry.ts +0 -11
- package/cosmos.crisis.v1beta1/rest.ts +0 -193
- package/cosmos.crisis.v1beta1/types.ts +0 -5
- package/cosmos.distribution.v1beta1/index.ts +0 -6
- package/cosmos.distribution.v1beta1/module.ts +0 -364
- package/cosmos.distribution.v1beta1/registry.ts +0 -21
- package/cosmos.distribution.v1beta1/rest.ts +0 -403
- package/cosmos.distribution.v1beta1/types.ts +0 -43
- package/cosmos.evidence.v1beta1/index.ts +0 -6
- package/cosmos.evidence.v1beta1/module.ts +0 -130
- package/cosmos.evidence.v1beta1/registry.ts +0 -9
- package/cosmos.evidence.v1beta1/rest.ts +0 -235
- package/cosmos.evidence.v1beta1/types.ts +0 -7
- package/cosmos.feegrant.v1beta1/index.ts +0 -6
- package/cosmos.feegrant.v1beta1/module.ts +0 -202
- package/cosmos.feegrant.v1beta1/registry.ts +0 -13
- package/cosmos.feegrant.v1beta1/rest.ts +0 -256
- package/cosmos.feegrant.v1beta1/types.ts +0 -13
- package/cosmos.gov.v1/index.ts +0 -6
- package/cosmos.gov.v1/module.ts +0 -344
- package/cosmos.gov.v1/registry.ts +0 -21
- package/cosmos.gov.v1/rest.ts +0 -382
- package/cosmos.gov.v1/types.ts +0 -23
- package/cosmos.gov.v1beta1/index.ts +0 -6
- package/cosmos.gov.v1beta1/module.ts +0 -245
- package/cosmos.gov.v1beta1/registry.ts +0 -15
- package/cosmos.gov.v1beta1/rest.ts +0 -361
- package/cosmos.gov.v1beta1/types.ts +0 -23
- package/cosmos.group.v1/index.ts +0 -6
- package/cosmos.group.v1/module.ts +0 -599
- package/cosmos.group.v1/registry.ts +0 -35
- package/cosmos.group.v1/rest.ts +0 -487
- package/cosmos.group.v1/types.ts +0 -47
- package/cosmos.mint.v1beta1/index.ts +0 -6
- package/cosmos.mint.v1beta1/module.ts +0 -132
- package/cosmos.mint.v1beta1/registry.ts +0 -9
- package/cosmos.mint.v1beta1/rest.ts +0 -256
- package/cosmos.mint.v1beta1/types.ts +0 -9
- package/cosmos.nft.v1beta1/index.ts +0 -6
- package/cosmos.nft.v1beta1/module.ts +0 -140
- package/cosmos.nft.v1beta1/registry.ts +0 -9
- package/cosmos.nft.v1beta1/rest.ts +0 -340
- package/cosmos.nft.v1beta1/types.ts +0 -17
- package/cosmos.params.v1beta1/index.ts +0 -6
- package/cosmos.params.v1beta1/module.ts +0 -101
- package/cosmos.params.v1beta1/registry.ts +0 -7
- package/cosmos.params.v1beta1/rest.ts +0 -235
- package/cosmos.params.v1beta1/types.ts +0 -11
- package/cosmos.slashing.v1beta1/index.ts +0 -6
- package/cosmos.slashing.v1beta1/module.ts +0 -171
- package/cosmos.slashing.v1beta1/registry.ts +0 -11
- package/cosmos.slashing.v1beta1/rest.ts +0 -256
- package/cosmos.slashing.v1beta1/types.ts +0 -15
- package/cosmos.staking.v1beta1/index.ts +0 -6
- package/cosmos.staking.v1beta1/module.ts +0 -374
- package/cosmos.staking.v1beta1/registry.ts +0 -21
- package/cosmos.staking.v1beta1/rest.ts +0 -487
- package/cosmos.staking.v1beta1/types.ts +0 -53
- package/cosmos.tx.v1beta1/index.ts +0 -6
- package/cosmos.tx.v1beta1/module.ts +0 -121
- package/cosmos.tx.v1beta1/registry.ts +0 -7
- package/cosmos.tx.v1beta1/rest.ts +0 -382
- package/cosmos.tx.v1beta1/types.ts +0 -31
- package/cosmos.upgrade.v1beta1/index.ts +0 -6
- package/cosmos.upgrade.v1beta1/module.ts +0 -169
- package/cosmos.upgrade.v1beta1/registry.ts +0 -11
- package/cosmos.upgrade.v1beta1/rest.ts +0 -298
- package/cosmos.upgrade.v1beta1/types.ts +0 -13
- package/cosmos.vesting.v1beta1/index.ts +0 -6
- package/cosmos.vesting.v1beta1/module.ts +0 -206
- package/cosmos.vesting.v1beta1/registry.ts +0 -13
- package/cosmos.vesting.v1beta1/rest.ts +0 -193
- package/cosmos.vesting.v1beta1/types.ts +0 -17
- package/env.ts +0 -7
- package/helpers.ts +0 -32
- package/ibc.applications.fee.v1/index.ts +0 -6
- package/ibc.applications.fee.v1/module.ts +0 -247
- package/ibc.applications.fee.v1/registry.ts +0 -15
- package/ibc.applications.fee.v1/rest.ts +0 -403
- package/ibc.applications.fee.v1/types.ts +0 -25
- package/ibc.applications.interchain_accounts.controller.v1/index.ts +0 -6
- package/ibc.applications.interchain_accounts.controller.v1/module.ts +0 -196
- package/ibc.applications.interchain_accounts.controller.v1/registry.ts +0 -13
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -235
- package/ibc.applications.interchain_accounts.controller.v1/types.ts +0 -7
- package/ibc.applications.interchain_accounts.host.v1/index.ts +0 -6
- package/ibc.applications.interchain_accounts.host.v1/module.ts +0 -165
- package/ibc.applications.interchain_accounts.host.v1/registry.ts +0 -11
- package/ibc.applications.interchain_accounts.host.v1/rest.ts +0 -214
- package/ibc.applications.interchain_accounts.host.v1/types.ts +0 -9
- package/ibc.applications.transfer.v1/index.ts +0 -6
- package/ibc.applications.transfer.v1/module.ts +0 -169
- package/ibc.applications.transfer.v1/registry.ts +0 -11
- package/ibc.applications.transfer.v1/rest.ts +0 -319
- package/ibc.applications.transfer.v1/types.ts +0 -13
- package/ibc.core.channel.v1/index.ts +0 -6
- package/ibc.core.channel.v1/module.ts +0 -748
- package/ibc.core.channel.v1/registry.ts +0 -45
- package/ibc.core.channel.v1/rest.ts +0 -550
- package/ibc.core.channel.v1/types.ts +0 -31
- package/ibc.core.client.v1/index.ts +0 -6
- package/ibc.core.client.v1/module.ts +0 -344
- package/ibc.core.client.v1/registry.ts +0 -21
- package/ibc.core.client.v1/rest.ts +0 -403
- package/ibc.core.client.v1/types.ts +0 -23
- package/ibc.core.connection.v1/index.ts +0 -6
- package/ibc.core.connection.v1/module.ts +0 -274
- package/ibc.core.connection.v1/registry.ts +0 -17
- package/ibc.core.connection.v1/rest.ts +0 -319
- package/ibc.core.connection.v1/types.ts +0 -19
- package/index.ts +0 -81
- package/modules.ts +0 -5
- package/tsconfig.json +0 -13
- package/types/amino/amino.ts +0 -9
- package/types/capability/v1/capability.ts +0 -263
- package/types/capability/v1/genesis.ts +0 -220
- package/types/cardchain/cardchain/card.ts +0 -712
- package/types/cardchain/cardchain/card_content.ts +0 -116
- package/types/cardchain/cardchain/card_with_image.ts +0 -134
- package/types/cardchain/cardchain/council.ts +0 -502
- package/types/cardchain/cardchain/encounter.ts +0 -307
- package/types/cardchain/cardchain/encounter_with_image.ts +0 -119
- package/types/cardchain/cardchain/genesis.ts +0 -403
- package/types/cardchain/cardchain/image.ts +0 -122
- package/types/cardchain/cardchain/match.ts +0 -453
- package/types/cardchain/cardchain/module/module.ts +0 -99
- package/types/cardchain/cardchain/params.ts +0 -544
- package/types/cardchain/cardchain/query.ts +0 -3786
- package/types/cardchain/cardchain/running_average.ts +0 -116
- package/types/cardchain/cardchain/sell_offer.ts +0 -224
- package/types/cardchain/cardchain/server.ts +0 -144
- package/types/cardchain/cardchain/set.ts +0 -537
- package/types/cardchain/cardchain/set_with_artwork.ts +0 -142
- package/types/cardchain/cardchain/tx.ts +0 -8053
- package/types/cardchain/cardchain/user.ts +0 -955
- package/types/cardchain/cardchain/voting.ts +0 -328
- package/types/cardchain/cardchain/voting_results.ts +0 -227
- package/types/cardchain/cardchain/zealy.ts +0 -116
- package/types/cardchain/featureflag/flag.ts +0 -133
- package/types/cardchain/featureflag/genesis.ts +0 -226
- package/types/cardchain/featureflag/module/module.ts +0 -99
- package/types/cardchain/featureflag/params.ts +0 -78
- package/types/cardchain/featureflag/query.ts +0 -445
- package/types/cardchain/featureflag/tx.ts +0 -373
- package/types/cosmos/app/runtime/v1alpha1/module.ts +0 -389
- package/types/cosmos/app/v1alpha1/config.ts +0 -346
- package/types/cosmos/app/v1alpha1/module.ts +0 -348
- package/types/cosmos/app/v1alpha1/query.ts +0 -175
- package/types/cosmos/auth/module/v1/module.ts +0 -229
- package/types/cosmos/auth/v1beta1/auth.ts +0 -531
- package/types/cosmos/auth/v1beta1/genesis.ts +0 -125
- package/types/cosmos/auth/v1beta1/query.ts +0 -1564
- package/types/cosmos/auth/v1beta1/tx.ts +0 -213
- package/types/cosmos/authz/module/v1/module.ts +0 -78
- package/types/cosmos/authz/v1beta1/authz.ts +0 -411
- package/types/cosmos/authz/v1beta1/event.ts +0 -241
- package/types/cosmos/authz/v1beta1/genesis.ts +0 -101
- package/types/cosmos/authz/v1beta1/query.ts +0 -643
- package/types/cosmos/authz/v1beta1/tx.ts +0 -574
- package/types/cosmos/autocli/v1/options.ts +0 -1049
- package/types/cosmos/autocli/v1/query.ts +0 -291
- package/types/cosmos/bank/module/v1/module.ts +0 -150
- package/types/cosmos/bank/v1beta1/authz.ts +0 -129
- package/types/cosmos/bank/v1beta1/bank.ts +0 -775
- package/types/cosmos/bank/v1beta1/genesis.ts +0 -277
- package/types/cosmos/bank/v1beta1/query.ts +0 -2424
- package/types/cosmos/bank/v1beta1/tx.ts +0 -697
- package/types/cosmos/base/abci/v1beta1/abci.ts +0 -1469
- package/types/cosmos/base/node/v1beta1/query.ts +0 -485
- package/types/cosmos/base/query/v1beta1/pagination.ts +0 -336
- package/types/cosmos/base/reflection/v1beta1/reflection.ts +0 -328
- package/types/cosmos/base/reflection/v2alpha1/reflection.ts +0 -2092
- package/types/cosmos/base/tendermint/v1beta1/query.ts +0 -2025
- package/types/cosmos/base/tendermint/v1beta1/types.ts +0 -548
- package/types/cosmos/base/v1beta1/coin.ts +0 -209
- package/types/cosmos/circuit/module/v1/module.ts +0 -99
- package/types/cosmos/circuit/v1/query.ts +0 -476
- package/types/cosmos/circuit/v1/tx.ts +0 -576
- package/types/cosmos/circuit/v1/types.ts +0 -362
- package/types/cosmos/consensus/module/v1/module.ts +0 -99
- package/types/cosmos/consensus/v1/query.ts +0 -181
- package/types/cosmos/consensus/v1/tx.ts +0 -271
- package/types/cosmos/crisis/module/v1/module.ts +0 -119
- package/types/cosmos/crisis/v1beta1/genesis.ts +0 -105
- package/types/cosmos/crisis/v1beta1/tx.ts +0 -367
- package/types/cosmos/crypto/ed25519/keys.ts +0 -195
- package/types/cosmos/crypto/hd/v1/hd.ts +0 -178
- package/types/cosmos/crypto/keyring/v1/record.ts +0 -440
- package/types/cosmos/crypto/multisig/keys.ts +0 -124
- package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +0 -218
- package/types/cosmos/crypto/secp256k1/keys.ts +0 -192
- package/types/cosmos/crypto/secp256r1/keys.ts +0 -193
- package/types/cosmos/distribution/module/v1/module.ts +0 -118
- package/types/cosmos/distribution/v1beta1/distribution.ts +0 -1177
- package/types/cosmos/distribution/v1beta1/genesis.ts +0 -1028
- package/types/cosmos/distribution/v1beta1/query.ts +0 -1700
- package/types/cosmos/distribution/v1beta1/tx.ts +0 -1178
- package/types/cosmos/evidence/module/v1/module.ts +0 -78
- package/types/cosmos/evidence/v1beta1/evidence.ts +0 -194
- package/types/cosmos/evidence/v1beta1/genesis.ts +0 -98
- package/types/cosmos/evidence/v1beta1/query.ts +0 -414
- package/types/cosmos/evidence/v1beta1/tx.ts +0 -243
- package/types/cosmos/feegrant/module/v1/module.ts +0 -78
- package/types/cosmos/feegrant/v1beta1/feegrant.ts +0 -513
- package/types/cosmos/feegrant/v1beta1/genesis.ts +0 -101
- package/types/cosmos/feegrant/v1beta1/query.ts +0 -597
- package/types/cosmos/feegrant/v1beta1/tx.ts +0 -496
- package/types/cosmos/genutil/module/v1/module.ts +0 -78
- package/types/cosmos/genutil/v1beta1/genesis.ts +0 -122
- package/types/cosmos/gov/module/v1/module.ts +0 -133
- package/types/cosmos/gov/v1/genesis.ts +0 -313
- package/types/cosmos/gov/v1/gov.ts +0 -1712
- package/types/cosmos/gov/v1/query.ts +0 -1605
- package/types/cosmos/gov/v1/tx.ts +0 -1387
- package/types/cosmos/gov/v1beta1/genesis.ts +0 -241
- package/types/cosmos/gov/v1beta1/gov.ts +0 -1273
- package/types/cosmos/gov/v1beta1/query.ts +0 -1441
- package/types/cosmos/gov/v1beta1/tx.ts +0 -738
- package/types/cosmos/group/module/v1/module.ts +0 -141
- package/types/cosmos/group/v1/events.ts +0 -795
- package/types/cosmos/group/v1/genesis.ts +0 -265
- package/types/cosmos/group/v1/query.ts +0 -2441
- package/types/cosmos/group/v1/tx.ts +0 -2631
- package/types/cosmos/group/v1/types.ts +0 -1850
- package/types/cosmos/ics23/v1/proofs.ts +0 -1731
- package/types/cosmos/mint/module/v1/module.ts +0 -118
- package/types/cosmos/mint/v1beta1/genesis.ts +0 -126
- package/types/cosmos/mint/v1beta1/mint.ts +0 -293
- package/types/cosmos/mint/v1beta1/query.ts +0 -453
- package/types/cosmos/mint/v1beta1/tx.ts +0 -213
- package/types/cosmos/msg/textual/v1/textual.ts +0 -9
- package/types/cosmos/msg/v1/msg.ts +0 -9
- package/types/cosmos/nft/module/v1/module.ts +0 -78
- package/types/cosmos/nft/v1beta1/event.ts +0 -359
- package/types/cosmos/nft/v1beta1/genesis.ts +0 -204
- package/types/cosmos/nft/v1beta1/nft.ts +0 -348
- package/types/cosmos/nft/v1beta1/query.ts +0 -1173
- package/types/cosmos/nft/v1beta1/tx.ts +0 -228
- package/types/cosmos/orm/module/v1alpha1/module.ts +0 -82
- package/types/cosmos/orm/query/v1alpha1/query.ts +0 -933
- package/types/cosmos/orm/v1/orm.ts +0 -453
- package/types/cosmos/orm/v1alpha1/schema.ts +0 -321
- package/types/cosmos/params/module/v1/module.ts +0 -78
- package/types/cosmos/params/v1beta1/params.ts +0 -236
- package/types/cosmos/params/v1beta1/query.ts +0 -439
- package/types/cosmos/query/v1/query.ts +0 -9
- package/types/cosmos/reflection/v1/reflection.ts +0 -179
- package/types/cosmos/slashing/module/v1/module.ts +0 -99
- package/types/cosmos/slashing/v1beta1/genesis.ts +0 -424
- package/types/cosmos/slashing/v1beta1/query.ts +0 -487
- package/types/cosmos/slashing/v1beta1/slashing.ts +0 -422
- package/types/cosmos/slashing/v1beta1/tx.ts +0 -336
- package/types/cosmos/staking/module/v1/module.ts +0 -161
- package/types/cosmos/staking/v1beta1/authz.ts +0 -306
- package/types/cosmos/staking/v1beta1/genesis.ts +0 -377
- package/types/cosmos/staking/v1beta1/query.ts +0 -2540
- package/types/cosmos/staking/v1beta1/staking.ts +0 -2576
- package/types/cosmos/staking/v1beta1/tx.ts +0 -1433
- package/types/cosmos/store/internal/kv/v1beta1/kv.ts +0 -205
- package/types/cosmos/store/snapshots/v1/snapshot.ts +0 -746
- package/types/cosmos/store/streaming/abci/grpc.ts +0 -367
- package/types/cosmos/store/v1beta1/commit_info.ts +0 -370
- package/types/cosmos/store/v1beta1/listening.ts +0 -301
- package/types/cosmos/tx/config/v1/config.ts +0 -125
- package/types/cosmos/tx/signing/v1beta1/signing.ts +0 -630
- package/types/cosmos/tx/v1beta1/service.ts +0 -1889
- package/types/cosmos/tx/v1beta1/tx.ts +0 -1657
- package/types/cosmos/upgrade/module/v1/module.ts +0 -99
- package/types/cosmos/upgrade/v1beta1/query.ts +0 -819
- package/types/cosmos/upgrade/v1beta1/tx.ts +0 -340
- package/types/cosmos/upgrade/v1beta1/upgrade.ts +0 -525
- package/types/cosmos/vesting/module/v1/module.ts +0 -78
- package/types/cosmos/vesting/v1beta1/tx.ts +0 -640
- package/types/cosmos/vesting/v1beta1/vesting.ts +0 -624
- package/types/cosmos_proto/cosmos.ts +0 -307
- package/types/gogoproto/gogo.ts +0 -9
- package/types/google/api/annotations.ts +0 -9
- package/types/google/api/http.ts +0 -770
- package/types/google/protobuf/any.ts +0 -259
- package/types/google/protobuf/descriptor.ts +0 -6642
- package/types/google/protobuf/duration.ts +0 -200
- package/types/google/protobuf/timestamp.ts +0 -229
- package/types/ibc/applications/fee/v1/ack.ts +0 -166
- package/types/ibc/applications/fee/v1/fee.ts +0 -403
- package/types/ibc/applications/fee/v1/genesis.ts +0 -571
- package/types/ibc/applications/fee/v1/metadata.ts +0 -122
- package/types/ibc/applications/fee/v1/query.ts +0 -1757
- package/types/ibc/applications/fee/v1/tx.ts +0 -781
- package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +0 -104
- package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +0 -333
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +0 -619
- package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +0 -590
- package/types/ibc/applications/interchain_accounts/host/v1/host.ts +0 -242
- package/types/ibc/applications/interchain_accounts/host/v1/query.ts +0 -175
- package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +0 -416
- package/types/ibc/applications/interchain_accounts/v1/account.ts +0 -120
- package/types/ibc/applications/interchain_accounts/v1/metadata.ts +0 -199
- package/types/ibc/applications/interchain_accounts/v1/packet.ts +0 -264
- package/types/ibc/applications/transfer/v1/authz.ts +0 -254
- package/types/ibc/applications/transfer/v1/genesis.ts +0 -165
- package/types/ibc/applications/transfer/v1/query.ts +0 -934
- package/types/ibc/applications/transfer/v1/transfer.ts +0 -220
- package/types/ibc/applications/transfer/v1/tx.ts +0 -505
- package/types/ibc/applications/transfer/v2/packet.ts +0 -177
- package/types/ibc/core/channel/v1/channel.ts +0 -1358
- package/types/ibc/core/channel/v1/genesis.ts +0 -377
- package/types/ibc/core/channel/v1/query.ts +0 -3781
- package/types/ibc/core/channel/v1/tx.ts +0 -4424
- package/types/ibc/core/channel/v1/upgrade.ts +0 -348
- package/types/ibc/core/client/v1/client.ts +0 -753
- package/types/ibc/core/client/v1/genesis.ts +0 -423
- package/types/ibc/core/client/v1/query.ts +0 -1898
- package/types/ibc/core/client/v1/tx.ts +0 -1301
- package/types/ibc/core/commitment/v1/commitment.ts +0 -336
- package/types/ibc/core/connection/v1/connection.ts +0 -840
- package/types/ibc/core/connection/v1/genesis.ts +0 -172
- package/types/ibc/core/connection/v1/query.ts +0 -1243
- package/types/ibc/core/connection/v1/tx.ts +0 -1352
- package/types/ibc/core/types/v1/genesis.ts +0 -150
- package/types/ibc/lightclients/localhost/v2/localhost.ts +0 -102
- package/types/ibc/lightclients/solomachine/v2/solomachine.ts +0 -1765
- package/types/ibc/lightclients/solomachine/v3/solomachine.ts +0 -945
- package/types/ibc/lightclients/tendermint/v1/tendermint.ts +0 -853
- package/types/ibc/lightclients/wasm/v1/genesis.ts +0 -192
- package/types/ibc/lightclients/wasm/v1/query.ts +0 -377
- package/types/ibc/lightclients/wasm/v1/tx.ts +0 -550
- package/types/ibc/lightclients/wasm/v1/wasm.ts +0 -370
- package/types/tendermint/abci/types.ts +0 -6103
- package/types/tendermint/crypto/keys.ts +0 -142
- package/types/tendermint/crypto/proof.ts +0 -533
- package/types/tendermint/libs/bits/types.ts +0 -139
- package/types/tendermint/p2p/types.ts +0 -544
- package/types/tendermint/types/block.ts +0 -158
- package/types/tendermint/types/evidence.ts +0 -502
- package/types/tendermint/types/params.ts +0 -701
- package/types/tendermint/types/types.ts +0 -2133
- package/types/tendermint/types/validator.ts +0 -424
- package/types/tendermint/version/types.ts +0 -218
- package/types.d.ts +0 -21
|
@@ -1,753 +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: ibc/core/client/v1/client.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Plan } from "../../../../cosmos/upgrade/v1beta1/upgrade";
|
|
10
|
-
import { Any } from "../../../../google/protobuf/any";
|
|
11
|
-
|
|
12
|
-
export const protobufPackage = "ibc.core.client.v1";
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* IdentifiedClientState defines a client state with an additional client
|
|
16
|
-
* identifier field.
|
|
17
|
-
*/
|
|
18
|
-
export interface IdentifiedClientState {
|
|
19
|
-
/** client identifier */
|
|
20
|
-
clientId: string;
|
|
21
|
-
/** client state */
|
|
22
|
-
clientState: Any | undefined;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* ConsensusStateWithHeight defines a consensus state with an additional height
|
|
27
|
-
* field.
|
|
28
|
-
*/
|
|
29
|
-
export interface ConsensusStateWithHeight {
|
|
30
|
-
/** consensus state height */
|
|
31
|
-
height:
|
|
32
|
-
| Height
|
|
33
|
-
| undefined;
|
|
34
|
-
/** consensus state */
|
|
35
|
-
consensusState: Any | undefined;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* ClientConsensusStates defines all the stored consensus states for a given
|
|
40
|
-
* client.
|
|
41
|
-
*/
|
|
42
|
-
export interface ClientConsensusStates {
|
|
43
|
-
/** client identifier */
|
|
44
|
-
clientId: string;
|
|
45
|
-
/** consensus states and their heights associated with the client */
|
|
46
|
-
consensusStates: ConsensusStateWithHeight[];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Height is a monotonically increasing data type
|
|
51
|
-
* that can be compared against another Height for the purposes of updating and
|
|
52
|
-
* freezing clients
|
|
53
|
-
*
|
|
54
|
-
* Normally the RevisionHeight is incremented at each height while keeping
|
|
55
|
-
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
56
|
-
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
57
|
-
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
58
|
-
* height continues to be monitonically increasing even as the RevisionHeight
|
|
59
|
-
* gets reset
|
|
60
|
-
*/
|
|
61
|
-
export interface Height {
|
|
62
|
-
/** the revision that the client is currently on */
|
|
63
|
-
revisionNumber: number;
|
|
64
|
-
/** the height within the given revision */
|
|
65
|
-
revisionHeight: number;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/** Params defines the set of IBC light client parameters. */
|
|
69
|
-
export interface Params {
|
|
70
|
-
/**
|
|
71
|
-
* allowed_clients defines the list of allowed client state types which can be created
|
|
72
|
-
* and interacted with. If a client type is removed from the allowed clients list, usage
|
|
73
|
-
* of this client will be disabled until it is added again to the list.
|
|
74
|
-
*/
|
|
75
|
-
allowedClients: string[];
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* ClientUpdateProposal is a legacy governance proposal. If it passes, the substitute
|
|
80
|
-
* client's latest consensus state is copied over to the subject client. The proposal
|
|
81
|
-
* handler may fail if the subject and the substitute do not match in client and
|
|
82
|
-
* chain parameters (with exception to latest height, frozen height, and chain-id).
|
|
83
|
-
*
|
|
84
|
-
* Deprecated: Please use MsgRecoverClient in favour of this message type.
|
|
85
|
-
*
|
|
86
|
-
* @deprecated
|
|
87
|
-
*/
|
|
88
|
-
export interface ClientUpdateProposal {
|
|
89
|
-
/** the title of the update proposal */
|
|
90
|
-
title: string;
|
|
91
|
-
/** the description of the proposal */
|
|
92
|
-
description: string;
|
|
93
|
-
/** the client identifier for the client to be updated if the proposal passes */
|
|
94
|
-
subjectClientId: string;
|
|
95
|
-
/**
|
|
96
|
-
* the substitute client identifier for the client standing in for the subject
|
|
97
|
-
* client
|
|
98
|
-
*/
|
|
99
|
-
substituteClientId: string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* UpgradeProposal is a gov Content type for initiating an IBC breaking
|
|
104
|
-
* upgrade.
|
|
105
|
-
*
|
|
106
|
-
* Deprecated: Please use MsgIBCSoftwareUpgrade in favour of this message type.
|
|
107
|
-
*
|
|
108
|
-
* @deprecated
|
|
109
|
-
*/
|
|
110
|
-
export interface UpgradeProposal {
|
|
111
|
-
title: string;
|
|
112
|
-
description: string;
|
|
113
|
-
plan:
|
|
114
|
-
| Plan
|
|
115
|
-
| undefined;
|
|
116
|
-
/**
|
|
117
|
-
* An UpgradedClientState must be provided to perform an IBC breaking upgrade.
|
|
118
|
-
* This will make the chain commit to the correct upgraded (self) client state
|
|
119
|
-
* before the upgrade occurs, so that connecting chains can verify that the
|
|
120
|
-
* new upgraded client is valid by verifying a proof on the previous version
|
|
121
|
-
* of the chain. This will allow IBC connections to persist smoothly across
|
|
122
|
-
* planned chain upgrades
|
|
123
|
-
*/
|
|
124
|
-
upgradedClientState: Any | undefined;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
function createBaseIdentifiedClientState(): IdentifiedClientState {
|
|
128
|
-
return { clientId: "", clientState: undefined };
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export const IdentifiedClientState: MessageFns<IdentifiedClientState> = {
|
|
132
|
-
encode(message: IdentifiedClientState, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
133
|
-
if (message.clientId !== "") {
|
|
134
|
-
writer.uint32(10).string(message.clientId);
|
|
135
|
-
}
|
|
136
|
-
if (message.clientState !== undefined) {
|
|
137
|
-
Any.encode(message.clientState, writer.uint32(18).fork()).join();
|
|
138
|
-
}
|
|
139
|
-
return writer;
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedClientState {
|
|
143
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
144
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
145
|
-
const message = createBaseIdentifiedClientState();
|
|
146
|
-
while (reader.pos < end) {
|
|
147
|
-
const tag = reader.uint32();
|
|
148
|
-
switch (tag >>> 3) {
|
|
149
|
-
case 1: {
|
|
150
|
-
if (tag !== 10) {
|
|
151
|
-
break;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
message.clientId = reader.string();
|
|
155
|
-
continue;
|
|
156
|
-
}
|
|
157
|
-
case 2: {
|
|
158
|
-
if (tag !== 18) {
|
|
159
|
-
break;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
message.clientState = Any.decode(reader, reader.uint32());
|
|
163
|
-
continue;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
167
|
-
break;
|
|
168
|
-
}
|
|
169
|
-
reader.skip(tag & 7);
|
|
170
|
-
}
|
|
171
|
-
return message;
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
fromJSON(object: any): IdentifiedClientState {
|
|
175
|
-
return {
|
|
176
|
-
clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
|
|
177
|
-
clientState: isSet(object.clientState) ? Any.fromJSON(object.clientState) : undefined,
|
|
178
|
-
};
|
|
179
|
-
},
|
|
180
|
-
|
|
181
|
-
toJSON(message: IdentifiedClientState): unknown {
|
|
182
|
-
const obj: any = {};
|
|
183
|
-
if (message.clientId !== "") {
|
|
184
|
-
obj.clientId = message.clientId;
|
|
185
|
-
}
|
|
186
|
-
if (message.clientState !== undefined) {
|
|
187
|
-
obj.clientState = Any.toJSON(message.clientState);
|
|
188
|
-
}
|
|
189
|
-
return obj;
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
create<I extends Exact<DeepPartial<IdentifiedClientState>, I>>(base?: I): IdentifiedClientState {
|
|
193
|
-
return IdentifiedClientState.fromPartial(base ?? ({} as any));
|
|
194
|
-
},
|
|
195
|
-
fromPartial<I extends Exact<DeepPartial<IdentifiedClientState>, I>>(object: I): IdentifiedClientState {
|
|
196
|
-
const message = createBaseIdentifiedClientState();
|
|
197
|
-
message.clientId = object.clientId ?? "";
|
|
198
|
-
message.clientState = (object.clientState !== undefined && object.clientState !== null)
|
|
199
|
-
? Any.fromPartial(object.clientState)
|
|
200
|
-
: undefined;
|
|
201
|
-
return message;
|
|
202
|
-
},
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
function createBaseConsensusStateWithHeight(): ConsensusStateWithHeight {
|
|
206
|
-
return { height: undefined, consensusState: undefined };
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export const ConsensusStateWithHeight: MessageFns<ConsensusStateWithHeight> = {
|
|
210
|
-
encode(message: ConsensusStateWithHeight, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
211
|
-
if (message.height !== undefined) {
|
|
212
|
-
Height.encode(message.height, writer.uint32(10).fork()).join();
|
|
213
|
-
}
|
|
214
|
-
if (message.consensusState !== undefined) {
|
|
215
|
-
Any.encode(message.consensusState, writer.uint32(18).fork()).join();
|
|
216
|
-
}
|
|
217
|
-
return writer;
|
|
218
|
-
},
|
|
219
|
-
|
|
220
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ConsensusStateWithHeight {
|
|
221
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
222
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
223
|
-
const message = createBaseConsensusStateWithHeight();
|
|
224
|
-
while (reader.pos < end) {
|
|
225
|
-
const tag = reader.uint32();
|
|
226
|
-
switch (tag >>> 3) {
|
|
227
|
-
case 1: {
|
|
228
|
-
if (tag !== 10) {
|
|
229
|
-
break;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
message.height = Height.decode(reader, reader.uint32());
|
|
233
|
-
continue;
|
|
234
|
-
}
|
|
235
|
-
case 2: {
|
|
236
|
-
if (tag !== 18) {
|
|
237
|
-
break;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
message.consensusState = Any.decode(reader, reader.uint32());
|
|
241
|
-
continue;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
245
|
-
break;
|
|
246
|
-
}
|
|
247
|
-
reader.skip(tag & 7);
|
|
248
|
-
}
|
|
249
|
-
return message;
|
|
250
|
-
},
|
|
251
|
-
|
|
252
|
-
fromJSON(object: any): ConsensusStateWithHeight {
|
|
253
|
-
return {
|
|
254
|
-
height: isSet(object.height) ? Height.fromJSON(object.height) : undefined,
|
|
255
|
-
consensusState: isSet(object.consensusState) ? Any.fromJSON(object.consensusState) : undefined,
|
|
256
|
-
};
|
|
257
|
-
},
|
|
258
|
-
|
|
259
|
-
toJSON(message: ConsensusStateWithHeight): unknown {
|
|
260
|
-
const obj: any = {};
|
|
261
|
-
if (message.height !== undefined) {
|
|
262
|
-
obj.height = Height.toJSON(message.height);
|
|
263
|
-
}
|
|
264
|
-
if (message.consensusState !== undefined) {
|
|
265
|
-
obj.consensusState = Any.toJSON(message.consensusState);
|
|
266
|
-
}
|
|
267
|
-
return obj;
|
|
268
|
-
},
|
|
269
|
-
|
|
270
|
-
create<I extends Exact<DeepPartial<ConsensusStateWithHeight>, I>>(base?: I): ConsensusStateWithHeight {
|
|
271
|
-
return ConsensusStateWithHeight.fromPartial(base ?? ({} as any));
|
|
272
|
-
},
|
|
273
|
-
fromPartial<I extends Exact<DeepPartial<ConsensusStateWithHeight>, I>>(object: I): ConsensusStateWithHeight {
|
|
274
|
-
const message = createBaseConsensusStateWithHeight();
|
|
275
|
-
message.height = (object.height !== undefined && object.height !== null)
|
|
276
|
-
? Height.fromPartial(object.height)
|
|
277
|
-
: undefined;
|
|
278
|
-
message.consensusState = (object.consensusState !== undefined && object.consensusState !== null)
|
|
279
|
-
? Any.fromPartial(object.consensusState)
|
|
280
|
-
: undefined;
|
|
281
|
-
return message;
|
|
282
|
-
},
|
|
283
|
-
};
|
|
284
|
-
|
|
285
|
-
function createBaseClientConsensusStates(): ClientConsensusStates {
|
|
286
|
-
return { clientId: "", consensusStates: [] };
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
export const ClientConsensusStates: MessageFns<ClientConsensusStates> = {
|
|
290
|
-
encode(message: ClientConsensusStates, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
291
|
-
if (message.clientId !== "") {
|
|
292
|
-
writer.uint32(10).string(message.clientId);
|
|
293
|
-
}
|
|
294
|
-
for (const v of message.consensusStates) {
|
|
295
|
-
ConsensusStateWithHeight.encode(v!, writer.uint32(18).fork()).join();
|
|
296
|
-
}
|
|
297
|
-
return writer;
|
|
298
|
-
},
|
|
299
|
-
|
|
300
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ClientConsensusStates {
|
|
301
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
302
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
303
|
-
const message = createBaseClientConsensusStates();
|
|
304
|
-
while (reader.pos < end) {
|
|
305
|
-
const tag = reader.uint32();
|
|
306
|
-
switch (tag >>> 3) {
|
|
307
|
-
case 1: {
|
|
308
|
-
if (tag !== 10) {
|
|
309
|
-
break;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
message.clientId = reader.string();
|
|
313
|
-
continue;
|
|
314
|
-
}
|
|
315
|
-
case 2: {
|
|
316
|
-
if (tag !== 18) {
|
|
317
|
-
break;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
message.consensusStates.push(ConsensusStateWithHeight.decode(reader, reader.uint32()));
|
|
321
|
-
continue;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
325
|
-
break;
|
|
326
|
-
}
|
|
327
|
-
reader.skip(tag & 7);
|
|
328
|
-
}
|
|
329
|
-
return message;
|
|
330
|
-
},
|
|
331
|
-
|
|
332
|
-
fromJSON(object: any): ClientConsensusStates {
|
|
333
|
-
return {
|
|
334
|
-
clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
|
|
335
|
-
consensusStates: globalThis.Array.isArray(object?.consensusStates)
|
|
336
|
-
? object.consensusStates.map((e: any) => ConsensusStateWithHeight.fromJSON(e))
|
|
337
|
-
: [],
|
|
338
|
-
};
|
|
339
|
-
},
|
|
340
|
-
|
|
341
|
-
toJSON(message: ClientConsensusStates): unknown {
|
|
342
|
-
const obj: any = {};
|
|
343
|
-
if (message.clientId !== "") {
|
|
344
|
-
obj.clientId = message.clientId;
|
|
345
|
-
}
|
|
346
|
-
if (message.consensusStates?.length) {
|
|
347
|
-
obj.consensusStates = message.consensusStates.map((e) => ConsensusStateWithHeight.toJSON(e));
|
|
348
|
-
}
|
|
349
|
-
return obj;
|
|
350
|
-
},
|
|
351
|
-
|
|
352
|
-
create<I extends Exact<DeepPartial<ClientConsensusStates>, I>>(base?: I): ClientConsensusStates {
|
|
353
|
-
return ClientConsensusStates.fromPartial(base ?? ({} as any));
|
|
354
|
-
},
|
|
355
|
-
fromPartial<I extends Exact<DeepPartial<ClientConsensusStates>, I>>(object: I): ClientConsensusStates {
|
|
356
|
-
const message = createBaseClientConsensusStates();
|
|
357
|
-
message.clientId = object.clientId ?? "";
|
|
358
|
-
message.consensusStates = object.consensusStates?.map((e) => ConsensusStateWithHeight.fromPartial(e)) || [];
|
|
359
|
-
return message;
|
|
360
|
-
},
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
function createBaseHeight(): Height {
|
|
364
|
-
return { revisionNumber: 0, revisionHeight: 0 };
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
export const Height: MessageFns<Height> = {
|
|
368
|
-
encode(message: Height, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
369
|
-
if (message.revisionNumber !== 0) {
|
|
370
|
-
writer.uint32(8).uint64(message.revisionNumber);
|
|
371
|
-
}
|
|
372
|
-
if (message.revisionHeight !== 0) {
|
|
373
|
-
writer.uint32(16).uint64(message.revisionHeight);
|
|
374
|
-
}
|
|
375
|
-
return writer;
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Height {
|
|
379
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
380
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
381
|
-
const message = createBaseHeight();
|
|
382
|
-
while (reader.pos < end) {
|
|
383
|
-
const tag = reader.uint32();
|
|
384
|
-
switch (tag >>> 3) {
|
|
385
|
-
case 1: {
|
|
386
|
-
if (tag !== 8) {
|
|
387
|
-
break;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
message.revisionNumber = longToNumber(reader.uint64());
|
|
391
|
-
continue;
|
|
392
|
-
}
|
|
393
|
-
case 2: {
|
|
394
|
-
if (tag !== 16) {
|
|
395
|
-
break;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
message.revisionHeight = longToNumber(reader.uint64());
|
|
399
|
-
continue;
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
403
|
-
break;
|
|
404
|
-
}
|
|
405
|
-
reader.skip(tag & 7);
|
|
406
|
-
}
|
|
407
|
-
return message;
|
|
408
|
-
},
|
|
409
|
-
|
|
410
|
-
fromJSON(object: any): Height {
|
|
411
|
-
return {
|
|
412
|
-
revisionNumber: isSet(object.revisionNumber) ? globalThis.Number(object.revisionNumber) : 0,
|
|
413
|
-
revisionHeight: isSet(object.revisionHeight) ? globalThis.Number(object.revisionHeight) : 0,
|
|
414
|
-
};
|
|
415
|
-
},
|
|
416
|
-
|
|
417
|
-
toJSON(message: Height): unknown {
|
|
418
|
-
const obj: any = {};
|
|
419
|
-
if (message.revisionNumber !== 0) {
|
|
420
|
-
obj.revisionNumber = Math.round(message.revisionNumber);
|
|
421
|
-
}
|
|
422
|
-
if (message.revisionHeight !== 0) {
|
|
423
|
-
obj.revisionHeight = Math.round(message.revisionHeight);
|
|
424
|
-
}
|
|
425
|
-
return obj;
|
|
426
|
-
},
|
|
427
|
-
|
|
428
|
-
create<I extends Exact<DeepPartial<Height>, I>>(base?: I): Height {
|
|
429
|
-
return Height.fromPartial(base ?? ({} as any));
|
|
430
|
-
},
|
|
431
|
-
fromPartial<I extends Exact<DeepPartial<Height>, I>>(object: I): Height {
|
|
432
|
-
const message = createBaseHeight();
|
|
433
|
-
message.revisionNumber = object.revisionNumber ?? 0;
|
|
434
|
-
message.revisionHeight = object.revisionHeight ?? 0;
|
|
435
|
-
return message;
|
|
436
|
-
},
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
function createBaseParams(): Params {
|
|
440
|
-
return { allowedClients: [] };
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
export const Params: MessageFns<Params> = {
|
|
444
|
-
encode(message: Params, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
445
|
-
for (const v of message.allowedClients) {
|
|
446
|
-
writer.uint32(10).string(v!);
|
|
447
|
-
}
|
|
448
|
-
return writer;
|
|
449
|
-
},
|
|
450
|
-
|
|
451
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Params {
|
|
452
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
453
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
454
|
-
const message = createBaseParams();
|
|
455
|
-
while (reader.pos < end) {
|
|
456
|
-
const tag = reader.uint32();
|
|
457
|
-
switch (tag >>> 3) {
|
|
458
|
-
case 1: {
|
|
459
|
-
if (tag !== 10) {
|
|
460
|
-
break;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
message.allowedClients.push(reader.string());
|
|
464
|
-
continue;
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
468
|
-
break;
|
|
469
|
-
}
|
|
470
|
-
reader.skip(tag & 7);
|
|
471
|
-
}
|
|
472
|
-
return message;
|
|
473
|
-
},
|
|
474
|
-
|
|
475
|
-
fromJSON(object: any): Params {
|
|
476
|
-
return {
|
|
477
|
-
allowedClients: globalThis.Array.isArray(object?.allowedClients)
|
|
478
|
-
? object.allowedClients.map((e: any) => globalThis.String(e))
|
|
479
|
-
: [],
|
|
480
|
-
};
|
|
481
|
-
},
|
|
482
|
-
|
|
483
|
-
toJSON(message: Params): unknown {
|
|
484
|
-
const obj: any = {};
|
|
485
|
-
if (message.allowedClients?.length) {
|
|
486
|
-
obj.allowedClients = message.allowedClients;
|
|
487
|
-
}
|
|
488
|
-
return obj;
|
|
489
|
-
},
|
|
490
|
-
|
|
491
|
-
create<I extends Exact<DeepPartial<Params>, I>>(base?: I): Params {
|
|
492
|
-
return Params.fromPartial(base ?? ({} as any));
|
|
493
|
-
},
|
|
494
|
-
fromPartial<I extends Exact<DeepPartial<Params>, I>>(object: I): Params {
|
|
495
|
-
const message = createBaseParams();
|
|
496
|
-
message.allowedClients = object.allowedClients?.map((e) => e) || [];
|
|
497
|
-
return message;
|
|
498
|
-
},
|
|
499
|
-
};
|
|
500
|
-
|
|
501
|
-
function createBaseClientUpdateProposal(): ClientUpdateProposal {
|
|
502
|
-
return { title: "", description: "", subjectClientId: "", substituteClientId: "" };
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
export const ClientUpdateProposal: MessageFns<ClientUpdateProposal> = {
|
|
506
|
-
encode(message: ClientUpdateProposal, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
507
|
-
if (message.title !== "") {
|
|
508
|
-
writer.uint32(10).string(message.title);
|
|
509
|
-
}
|
|
510
|
-
if (message.description !== "") {
|
|
511
|
-
writer.uint32(18).string(message.description);
|
|
512
|
-
}
|
|
513
|
-
if (message.subjectClientId !== "") {
|
|
514
|
-
writer.uint32(26).string(message.subjectClientId);
|
|
515
|
-
}
|
|
516
|
-
if (message.substituteClientId !== "") {
|
|
517
|
-
writer.uint32(34).string(message.substituteClientId);
|
|
518
|
-
}
|
|
519
|
-
return writer;
|
|
520
|
-
},
|
|
521
|
-
|
|
522
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ClientUpdateProposal {
|
|
523
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
524
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
525
|
-
const message = createBaseClientUpdateProposal();
|
|
526
|
-
while (reader.pos < end) {
|
|
527
|
-
const tag = reader.uint32();
|
|
528
|
-
switch (tag >>> 3) {
|
|
529
|
-
case 1: {
|
|
530
|
-
if (tag !== 10) {
|
|
531
|
-
break;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
message.title = reader.string();
|
|
535
|
-
continue;
|
|
536
|
-
}
|
|
537
|
-
case 2: {
|
|
538
|
-
if (tag !== 18) {
|
|
539
|
-
break;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
message.description = reader.string();
|
|
543
|
-
continue;
|
|
544
|
-
}
|
|
545
|
-
case 3: {
|
|
546
|
-
if (tag !== 26) {
|
|
547
|
-
break;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
message.subjectClientId = reader.string();
|
|
551
|
-
continue;
|
|
552
|
-
}
|
|
553
|
-
case 4: {
|
|
554
|
-
if (tag !== 34) {
|
|
555
|
-
break;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
message.substituteClientId = reader.string();
|
|
559
|
-
continue;
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
563
|
-
break;
|
|
564
|
-
}
|
|
565
|
-
reader.skip(tag & 7);
|
|
566
|
-
}
|
|
567
|
-
return message;
|
|
568
|
-
},
|
|
569
|
-
|
|
570
|
-
fromJSON(object: any): ClientUpdateProposal {
|
|
571
|
-
return {
|
|
572
|
-
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
573
|
-
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
574
|
-
subjectClientId: isSet(object.subjectClientId) ? globalThis.String(object.subjectClientId) : "",
|
|
575
|
-
substituteClientId: isSet(object.substituteClientId) ? globalThis.String(object.substituteClientId) : "",
|
|
576
|
-
};
|
|
577
|
-
},
|
|
578
|
-
|
|
579
|
-
toJSON(message: ClientUpdateProposal): unknown {
|
|
580
|
-
const obj: any = {};
|
|
581
|
-
if (message.title !== "") {
|
|
582
|
-
obj.title = message.title;
|
|
583
|
-
}
|
|
584
|
-
if (message.description !== "") {
|
|
585
|
-
obj.description = message.description;
|
|
586
|
-
}
|
|
587
|
-
if (message.subjectClientId !== "") {
|
|
588
|
-
obj.subjectClientId = message.subjectClientId;
|
|
589
|
-
}
|
|
590
|
-
if (message.substituteClientId !== "") {
|
|
591
|
-
obj.substituteClientId = message.substituteClientId;
|
|
592
|
-
}
|
|
593
|
-
return obj;
|
|
594
|
-
},
|
|
595
|
-
|
|
596
|
-
create<I extends Exact<DeepPartial<ClientUpdateProposal>, I>>(base?: I): ClientUpdateProposal {
|
|
597
|
-
return ClientUpdateProposal.fromPartial(base ?? ({} as any));
|
|
598
|
-
},
|
|
599
|
-
fromPartial<I extends Exact<DeepPartial<ClientUpdateProposal>, I>>(object: I): ClientUpdateProposal {
|
|
600
|
-
const message = createBaseClientUpdateProposal();
|
|
601
|
-
message.title = object.title ?? "";
|
|
602
|
-
message.description = object.description ?? "";
|
|
603
|
-
message.subjectClientId = object.subjectClientId ?? "";
|
|
604
|
-
message.substituteClientId = object.substituteClientId ?? "";
|
|
605
|
-
return message;
|
|
606
|
-
},
|
|
607
|
-
};
|
|
608
|
-
|
|
609
|
-
function createBaseUpgradeProposal(): UpgradeProposal {
|
|
610
|
-
return { title: "", description: "", plan: undefined, upgradedClientState: undefined };
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
export const UpgradeProposal: MessageFns<UpgradeProposal> = {
|
|
614
|
-
encode(message: UpgradeProposal, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
615
|
-
if (message.title !== "") {
|
|
616
|
-
writer.uint32(10).string(message.title);
|
|
617
|
-
}
|
|
618
|
-
if (message.description !== "") {
|
|
619
|
-
writer.uint32(18).string(message.description);
|
|
620
|
-
}
|
|
621
|
-
if (message.plan !== undefined) {
|
|
622
|
-
Plan.encode(message.plan, writer.uint32(26).fork()).join();
|
|
623
|
-
}
|
|
624
|
-
if (message.upgradedClientState !== undefined) {
|
|
625
|
-
Any.encode(message.upgradedClientState, writer.uint32(34).fork()).join();
|
|
626
|
-
}
|
|
627
|
-
return writer;
|
|
628
|
-
},
|
|
629
|
-
|
|
630
|
-
decode(input: BinaryReader | Uint8Array, length?: number): UpgradeProposal {
|
|
631
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
632
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
633
|
-
const message = createBaseUpgradeProposal();
|
|
634
|
-
while (reader.pos < end) {
|
|
635
|
-
const tag = reader.uint32();
|
|
636
|
-
switch (tag >>> 3) {
|
|
637
|
-
case 1: {
|
|
638
|
-
if (tag !== 10) {
|
|
639
|
-
break;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
message.title = reader.string();
|
|
643
|
-
continue;
|
|
644
|
-
}
|
|
645
|
-
case 2: {
|
|
646
|
-
if (tag !== 18) {
|
|
647
|
-
break;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
message.description = reader.string();
|
|
651
|
-
continue;
|
|
652
|
-
}
|
|
653
|
-
case 3: {
|
|
654
|
-
if (tag !== 26) {
|
|
655
|
-
break;
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
message.plan = Plan.decode(reader, reader.uint32());
|
|
659
|
-
continue;
|
|
660
|
-
}
|
|
661
|
-
case 4: {
|
|
662
|
-
if (tag !== 34) {
|
|
663
|
-
break;
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
message.upgradedClientState = Any.decode(reader, reader.uint32());
|
|
667
|
-
continue;
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
671
|
-
break;
|
|
672
|
-
}
|
|
673
|
-
reader.skip(tag & 7);
|
|
674
|
-
}
|
|
675
|
-
return message;
|
|
676
|
-
},
|
|
677
|
-
|
|
678
|
-
fromJSON(object: any): UpgradeProposal {
|
|
679
|
-
return {
|
|
680
|
-
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
681
|
-
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
682
|
-
plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined,
|
|
683
|
-
upgradedClientState: isSet(object.upgradedClientState) ? Any.fromJSON(object.upgradedClientState) : undefined,
|
|
684
|
-
};
|
|
685
|
-
},
|
|
686
|
-
|
|
687
|
-
toJSON(message: UpgradeProposal): unknown {
|
|
688
|
-
const obj: any = {};
|
|
689
|
-
if (message.title !== "") {
|
|
690
|
-
obj.title = message.title;
|
|
691
|
-
}
|
|
692
|
-
if (message.description !== "") {
|
|
693
|
-
obj.description = message.description;
|
|
694
|
-
}
|
|
695
|
-
if (message.plan !== undefined) {
|
|
696
|
-
obj.plan = Plan.toJSON(message.plan);
|
|
697
|
-
}
|
|
698
|
-
if (message.upgradedClientState !== undefined) {
|
|
699
|
-
obj.upgradedClientState = Any.toJSON(message.upgradedClientState);
|
|
700
|
-
}
|
|
701
|
-
return obj;
|
|
702
|
-
},
|
|
703
|
-
|
|
704
|
-
create<I extends Exact<DeepPartial<UpgradeProposal>, I>>(base?: I): UpgradeProposal {
|
|
705
|
-
return UpgradeProposal.fromPartial(base ?? ({} as any));
|
|
706
|
-
},
|
|
707
|
-
fromPartial<I extends Exact<DeepPartial<UpgradeProposal>, I>>(object: I): UpgradeProposal {
|
|
708
|
-
const message = createBaseUpgradeProposal();
|
|
709
|
-
message.title = object.title ?? "";
|
|
710
|
-
message.description = object.description ?? "";
|
|
711
|
-
message.plan = (object.plan !== undefined && object.plan !== null) ? Plan.fromPartial(object.plan) : undefined;
|
|
712
|
-
message.upgradedClientState = (object.upgradedClientState !== undefined && object.upgradedClientState !== null)
|
|
713
|
-
? Any.fromPartial(object.upgradedClientState)
|
|
714
|
-
: undefined;
|
|
715
|
-
return message;
|
|
716
|
-
},
|
|
717
|
-
};
|
|
718
|
-
|
|
719
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
720
|
-
|
|
721
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
722
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
723
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
724
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
725
|
-
: Partial<T>;
|
|
726
|
-
|
|
727
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
728
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
729
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
730
|
-
|
|
731
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
732
|
-
const num = globalThis.Number(int64.toString());
|
|
733
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
734
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
735
|
-
}
|
|
736
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
737
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
738
|
-
}
|
|
739
|
-
return num;
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
function isSet(value: any): boolean {
|
|
743
|
-
return value !== null && value !== undefined;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
export interface MessageFns<T> {
|
|
747
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
748
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
749
|
-
fromJSON(object: any): T;
|
|
750
|
-
toJSON(message: T): unknown;
|
|
751
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
752
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
753
|
-
}
|