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,550 +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/lightclients/wasm/v1/tx.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
|
|
10
|
-
export const protobufPackage = "ibc.lightclients.wasm.v1";
|
|
11
|
-
|
|
12
|
-
/** MsgStoreCode defines the request type for the StoreCode rpc. */
|
|
13
|
-
export interface MsgStoreCode {
|
|
14
|
-
/** signer address */
|
|
15
|
-
signer: string;
|
|
16
|
-
/** wasm byte code of light client contract. It can be raw or gzip compressed */
|
|
17
|
-
wasmByteCode: Uint8Array;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/** MsgStoreCodeResponse defines the response type for the StoreCode rpc */
|
|
21
|
-
export interface MsgStoreCodeResponse {
|
|
22
|
-
/** checksum is the sha256 hash of the stored code */
|
|
23
|
-
checksum: Uint8Array;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/** MsgRemoveChecksum defines the request type for the MsgRemoveChecksum rpc. */
|
|
27
|
-
export interface MsgRemoveChecksum {
|
|
28
|
-
/** signer address */
|
|
29
|
-
signer: string;
|
|
30
|
-
/** checksum is the sha256 hash to be removed from the store */
|
|
31
|
-
checksum: Uint8Array;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/** MsgStoreChecksumResponse defines the response type for the StoreCode rpc */
|
|
35
|
-
export interface MsgRemoveChecksumResponse {
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/** MsgMigrateContract defines the request type for the MigrateContract rpc. */
|
|
39
|
-
export interface MsgMigrateContract {
|
|
40
|
-
/** signer address */
|
|
41
|
-
signer: string;
|
|
42
|
-
/** the client id of the contract */
|
|
43
|
-
clientId: string;
|
|
44
|
-
/** checksum is the sha256 hash of the new wasm byte code for the contract */
|
|
45
|
-
checksum: Uint8Array;
|
|
46
|
-
/** the json encoded message to be passed to the contract on migration */
|
|
47
|
-
msg: Uint8Array;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/** MsgMigrateContractResponse defines the response type for the MigrateContract rpc */
|
|
51
|
-
export interface MsgMigrateContractResponse {
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function createBaseMsgStoreCode(): MsgStoreCode {
|
|
55
|
-
return { signer: "", wasmByteCode: new Uint8Array(0) };
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export const MsgStoreCode: MessageFns<MsgStoreCode> = {
|
|
59
|
-
encode(message: MsgStoreCode, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
60
|
-
if (message.signer !== "") {
|
|
61
|
-
writer.uint32(10).string(message.signer);
|
|
62
|
-
}
|
|
63
|
-
if (message.wasmByteCode.length !== 0) {
|
|
64
|
-
writer.uint32(18).bytes(message.wasmByteCode);
|
|
65
|
-
}
|
|
66
|
-
return writer;
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgStoreCode {
|
|
70
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
71
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
72
|
-
const message = createBaseMsgStoreCode();
|
|
73
|
-
while (reader.pos < end) {
|
|
74
|
-
const tag = reader.uint32();
|
|
75
|
-
switch (tag >>> 3) {
|
|
76
|
-
case 1: {
|
|
77
|
-
if (tag !== 10) {
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
message.signer = reader.string();
|
|
82
|
-
continue;
|
|
83
|
-
}
|
|
84
|
-
case 2: {
|
|
85
|
-
if (tag !== 18) {
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
message.wasmByteCode = reader.bytes();
|
|
90
|
-
continue;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
94
|
-
break;
|
|
95
|
-
}
|
|
96
|
-
reader.skip(tag & 7);
|
|
97
|
-
}
|
|
98
|
-
return message;
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
fromJSON(object: any): MsgStoreCode {
|
|
102
|
-
return {
|
|
103
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
104
|
-
wasmByteCode: isSet(object.wasmByteCode) ? bytesFromBase64(object.wasmByteCode) : new Uint8Array(0),
|
|
105
|
-
};
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
toJSON(message: MsgStoreCode): unknown {
|
|
109
|
-
const obj: any = {};
|
|
110
|
-
if (message.signer !== "") {
|
|
111
|
-
obj.signer = message.signer;
|
|
112
|
-
}
|
|
113
|
-
if (message.wasmByteCode.length !== 0) {
|
|
114
|
-
obj.wasmByteCode = base64FromBytes(message.wasmByteCode);
|
|
115
|
-
}
|
|
116
|
-
return obj;
|
|
117
|
-
},
|
|
118
|
-
|
|
119
|
-
create<I extends Exact<DeepPartial<MsgStoreCode>, I>>(base?: I): MsgStoreCode {
|
|
120
|
-
return MsgStoreCode.fromPartial(base ?? ({} as any));
|
|
121
|
-
},
|
|
122
|
-
fromPartial<I extends Exact<DeepPartial<MsgStoreCode>, I>>(object: I): MsgStoreCode {
|
|
123
|
-
const message = createBaseMsgStoreCode();
|
|
124
|
-
message.signer = object.signer ?? "";
|
|
125
|
-
message.wasmByteCode = object.wasmByteCode ?? new Uint8Array(0);
|
|
126
|
-
return message;
|
|
127
|
-
},
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
function createBaseMsgStoreCodeResponse(): MsgStoreCodeResponse {
|
|
131
|
-
return { checksum: new Uint8Array(0) };
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export const MsgStoreCodeResponse: MessageFns<MsgStoreCodeResponse> = {
|
|
135
|
-
encode(message: MsgStoreCodeResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
136
|
-
if (message.checksum.length !== 0) {
|
|
137
|
-
writer.uint32(10).bytes(message.checksum);
|
|
138
|
-
}
|
|
139
|
-
return writer;
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgStoreCodeResponse {
|
|
143
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
144
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
145
|
-
const message = createBaseMsgStoreCodeResponse();
|
|
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.checksum = reader.bytes();
|
|
155
|
-
continue;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
159
|
-
break;
|
|
160
|
-
}
|
|
161
|
-
reader.skip(tag & 7);
|
|
162
|
-
}
|
|
163
|
-
return message;
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
fromJSON(object: any): MsgStoreCodeResponse {
|
|
167
|
-
return { checksum: isSet(object.checksum) ? bytesFromBase64(object.checksum) : new Uint8Array(0) };
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
toJSON(message: MsgStoreCodeResponse): unknown {
|
|
171
|
-
const obj: any = {};
|
|
172
|
-
if (message.checksum.length !== 0) {
|
|
173
|
-
obj.checksum = base64FromBytes(message.checksum);
|
|
174
|
-
}
|
|
175
|
-
return obj;
|
|
176
|
-
},
|
|
177
|
-
|
|
178
|
-
create<I extends Exact<DeepPartial<MsgStoreCodeResponse>, I>>(base?: I): MsgStoreCodeResponse {
|
|
179
|
-
return MsgStoreCodeResponse.fromPartial(base ?? ({} as any));
|
|
180
|
-
},
|
|
181
|
-
fromPartial<I extends Exact<DeepPartial<MsgStoreCodeResponse>, I>>(object: I): MsgStoreCodeResponse {
|
|
182
|
-
const message = createBaseMsgStoreCodeResponse();
|
|
183
|
-
message.checksum = object.checksum ?? new Uint8Array(0);
|
|
184
|
-
return message;
|
|
185
|
-
},
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
function createBaseMsgRemoveChecksum(): MsgRemoveChecksum {
|
|
189
|
-
return { signer: "", checksum: new Uint8Array(0) };
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export const MsgRemoveChecksum: MessageFns<MsgRemoveChecksum> = {
|
|
193
|
-
encode(message: MsgRemoveChecksum, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
194
|
-
if (message.signer !== "") {
|
|
195
|
-
writer.uint32(10).string(message.signer);
|
|
196
|
-
}
|
|
197
|
-
if (message.checksum.length !== 0) {
|
|
198
|
-
writer.uint32(18).bytes(message.checksum);
|
|
199
|
-
}
|
|
200
|
-
return writer;
|
|
201
|
-
},
|
|
202
|
-
|
|
203
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveChecksum {
|
|
204
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
205
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
206
|
-
const message = createBaseMsgRemoveChecksum();
|
|
207
|
-
while (reader.pos < end) {
|
|
208
|
-
const tag = reader.uint32();
|
|
209
|
-
switch (tag >>> 3) {
|
|
210
|
-
case 1: {
|
|
211
|
-
if (tag !== 10) {
|
|
212
|
-
break;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
message.signer = reader.string();
|
|
216
|
-
continue;
|
|
217
|
-
}
|
|
218
|
-
case 2: {
|
|
219
|
-
if (tag !== 18) {
|
|
220
|
-
break;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
message.checksum = reader.bytes();
|
|
224
|
-
continue;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
228
|
-
break;
|
|
229
|
-
}
|
|
230
|
-
reader.skip(tag & 7);
|
|
231
|
-
}
|
|
232
|
-
return message;
|
|
233
|
-
},
|
|
234
|
-
|
|
235
|
-
fromJSON(object: any): MsgRemoveChecksum {
|
|
236
|
-
return {
|
|
237
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
238
|
-
checksum: isSet(object.checksum) ? bytesFromBase64(object.checksum) : new Uint8Array(0),
|
|
239
|
-
};
|
|
240
|
-
},
|
|
241
|
-
|
|
242
|
-
toJSON(message: MsgRemoveChecksum): unknown {
|
|
243
|
-
const obj: any = {};
|
|
244
|
-
if (message.signer !== "") {
|
|
245
|
-
obj.signer = message.signer;
|
|
246
|
-
}
|
|
247
|
-
if (message.checksum.length !== 0) {
|
|
248
|
-
obj.checksum = base64FromBytes(message.checksum);
|
|
249
|
-
}
|
|
250
|
-
return obj;
|
|
251
|
-
},
|
|
252
|
-
|
|
253
|
-
create<I extends Exact<DeepPartial<MsgRemoveChecksum>, I>>(base?: I): MsgRemoveChecksum {
|
|
254
|
-
return MsgRemoveChecksum.fromPartial(base ?? ({} as any));
|
|
255
|
-
},
|
|
256
|
-
fromPartial<I extends Exact<DeepPartial<MsgRemoveChecksum>, I>>(object: I): MsgRemoveChecksum {
|
|
257
|
-
const message = createBaseMsgRemoveChecksum();
|
|
258
|
-
message.signer = object.signer ?? "";
|
|
259
|
-
message.checksum = object.checksum ?? new Uint8Array(0);
|
|
260
|
-
return message;
|
|
261
|
-
},
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
function createBaseMsgRemoveChecksumResponse(): MsgRemoveChecksumResponse {
|
|
265
|
-
return {};
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export const MsgRemoveChecksumResponse: MessageFns<MsgRemoveChecksumResponse> = {
|
|
269
|
-
encode(_: MsgRemoveChecksumResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
270
|
-
return writer;
|
|
271
|
-
},
|
|
272
|
-
|
|
273
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveChecksumResponse {
|
|
274
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
275
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
276
|
-
const message = createBaseMsgRemoveChecksumResponse();
|
|
277
|
-
while (reader.pos < end) {
|
|
278
|
-
const tag = reader.uint32();
|
|
279
|
-
switch (tag >>> 3) {
|
|
280
|
-
}
|
|
281
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
282
|
-
break;
|
|
283
|
-
}
|
|
284
|
-
reader.skip(tag & 7);
|
|
285
|
-
}
|
|
286
|
-
return message;
|
|
287
|
-
},
|
|
288
|
-
|
|
289
|
-
fromJSON(_: any): MsgRemoveChecksumResponse {
|
|
290
|
-
return {};
|
|
291
|
-
},
|
|
292
|
-
|
|
293
|
-
toJSON(_: MsgRemoveChecksumResponse): unknown {
|
|
294
|
-
const obj: any = {};
|
|
295
|
-
return obj;
|
|
296
|
-
},
|
|
297
|
-
|
|
298
|
-
create<I extends Exact<DeepPartial<MsgRemoveChecksumResponse>, I>>(base?: I): MsgRemoveChecksumResponse {
|
|
299
|
-
return MsgRemoveChecksumResponse.fromPartial(base ?? ({} as any));
|
|
300
|
-
},
|
|
301
|
-
fromPartial<I extends Exact<DeepPartial<MsgRemoveChecksumResponse>, I>>(_: I): MsgRemoveChecksumResponse {
|
|
302
|
-
const message = createBaseMsgRemoveChecksumResponse();
|
|
303
|
-
return message;
|
|
304
|
-
},
|
|
305
|
-
};
|
|
306
|
-
|
|
307
|
-
function createBaseMsgMigrateContract(): MsgMigrateContract {
|
|
308
|
-
return { signer: "", clientId: "", checksum: new Uint8Array(0), msg: new Uint8Array(0) };
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
export const MsgMigrateContract: MessageFns<MsgMigrateContract> = {
|
|
312
|
-
encode(message: MsgMigrateContract, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
313
|
-
if (message.signer !== "") {
|
|
314
|
-
writer.uint32(10).string(message.signer);
|
|
315
|
-
}
|
|
316
|
-
if (message.clientId !== "") {
|
|
317
|
-
writer.uint32(18).string(message.clientId);
|
|
318
|
-
}
|
|
319
|
-
if (message.checksum.length !== 0) {
|
|
320
|
-
writer.uint32(26).bytes(message.checksum);
|
|
321
|
-
}
|
|
322
|
-
if (message.msg.length !== 0) {
|
|
323
|
-
writer.uint32(34).bytes(message.msg);
|
|
324
|
-
}
|
|
325
|
-
return writer;
|
|
326
|
-
},
|
|
327
|
-
|
|
328
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgMigrateContract {
|
|
329
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
330
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
331
|
-
const message = createBaseMsgMigrateContract();
|
|
332
|
-
while (reader.pos < end) {
|
|
333
|
-
const tag = reader.uint32();
|
|
334
|
-
switch (tag >>> 3) {
|
|
335
|
-
case 1: {
|
|
336
|
-
if (tag !== 10) {
|
|
337
|
-
break;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
message.signer = reader.string();
|
|
341
|
-
continue;
|
|
342
|
-
}
|
|
343
|
-
case 2: {
|
|
344
|
-
if (tag !== 18) {
|
|
345
|
-
break;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
message.clientId = reader.string();
|
|
349
|
-
continue;
|
|
350
|
-
}
|
|
351
|
-
case 3: {
|
|
352
|
-
if (tag !== 26) {
|
|
353
|
-
break;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
message.checksum = reader.bytes();
|
|
357
|
-
continue;
|
|
358
|
-
}
|
|
359
|
-
case 4: {
|
|
360
|
-
if (tag !== 34) {
|
|
361
|
-
break;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
message.msg = reader.bytes();
|
|
365
|
-
continue;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
369
|
-
break;
|
|
370
|
-
}
|
|
371
|
-
reader.skip(tag & 7);
|
|
372
|
-
}
|
|
373
|
-
return message;
|
|
374
|
-
},
|
|
375
|
-
|
|
376
|
-
fromJSON(object: any): MsgMigrateContract {
|
|
377
|
-
return {
|
|
378
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
379
|
-
clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
|
|
380
|
-
checksum: isSet(object.checksum) ? bytesFromBase64(object.checksum) : new Uint8Array(0),
|
|
381
|
-
msg: isSet(object.msg) ? bytesFromBase64(object.msg) : new Uint8Array(0),
|
|
382
|
-
};
|
|
383
|
-
},
|
|
384
|
-
|
|
385
|
-
toJSON(message: MsgMigrateContract): unknown {
|
|
386
|
-
const obj: any = {};
|
|
387
|
-
if (message.signer !== "") {
|
|
388
|
-
obj.signer = message.signer;
|
|
389
|
-
}
|
|
390
|
-
if (message.clientId !== "") {
|
|
391
|
-
obj.clientId = message.clientId;
|
|
392
|
-
}
|
|
393
|
-
if (message.checksum.length !== 0) {
|
|
394
|
-
obj.checksum = base64FromBytes(message.checksum);
|
|
395
|
-
}
|
|
396
|
-
if (message.msg.length !== 0) {
|
|
397
|
-
obj.msg = base64FromBytes(message.msg);
|
|
398
|
-
}
|
|
399
|
-
return obj;
|
|
400
|
-
},
|
|
401
|
-
|
|
402
|
-
create<I extends Exact<DeepPartial<MsgMigrateContract>, I>>(base?: I): MsgMigrateContract {
|
|
403
|
-
return MsgMigrateContract.fromPartial(base ?? ({} as any));
|
|
404
|
-
},
|
|
405
|
-
fromPartial<I extends Exact<DeepPartial<MsgMigrateContract>, I>>(object: I): MsgMigrateContract {
|
|
406
|
-
const message = createBaseMsgMigrateContract();
|
|
407
|
-
message.signer = object.signer ?? "";
|
|
408
|
-
message.clientId = object.clientId ?? "";
|
|
409
|
-
message.checksum = object.checksum ?? new Uint8Array(0);
|
|
410
|
-
message.msg = object.msg ?? new Uint8Array(0);
|
|
411
|
-
return message;
|
|
412
|
-
},
|
|
413
|
-
};
|
|
414
|
-
|
|
415
|
-
function createBaseMsgMigrateContractResponse(): MsgMigrateContractResponse {
|
|
416
|
-
return {};
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
export const MsgMigrateContractResponse: MessageFns<MsgMigrateContractResponse> = {
|
|
420
|
-
encode(_: MsgMigrateContractResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
421
|
-
return writer;
|
|
422
|
-
},
|
|
423
|
-
|
|
424
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgMigrateContractResponse {
|
|
425
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
426
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
427
|
-
const message = createBaseMsgMigrateContractResponse();
|
|
428
|
-
while (reader.pos < end) {
|
|
429
|
-
const tag = reader.uint32();
|
|
430
|
-
switch (tag >>> 3) {
|
|
431
|
-
}
|
|
432
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
433
|
-
break;
|
|
434
|
-
}
|
|
435
|
-
reader.skip(tag & 7);
|
|
436
|
-
}
|
|
437
|
-
return message;
|
|
438
|
-
},
|
|
439
|
-
|
|
440
|
-
fromJSON(_: any): MsgMigrateContractResponse {
|
|
441
|
-
return {};
|
|
442
|
-
},
|
|
443
|
-
|
|
444
|
-
toJSON(_: MsgMigrateContractResponse): unknown {
|
|
445
|
-
const obj: any = {};
|
|
446
|
-
return obj;
|
|
447
|
-
},
|
|
448
|
-
|
|
449
|
-
create<I extends Exact<DeepPartial<MsgMigrateContractResponse>, I>>(base?: I): MsgMigrateContractResponse {
|
|
450
|
-
return MsgMigrateContractResponse.fromPartial(base ?? ({} as any));
|
|
451
|
-
},
|
|
452
|
-
fromPartial<I extends Exact<DeepPartial<MsgMigrateContractResponse>, I>>(_: I): MsgMigrateContractResponse {
|
|
453
|
-
const message = createBaseMsgMigrateContractResponse();
|
|
454
|
-
return message;
|
|
455
|
-
},
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
/** Msg defines the ibc/08-wasm Msg service. */
|
|
459
|
-
export interface Msg {
|
|
460
|
-
/** StoreCode defines a rpc handler method for MsgStoreCode. */
|
|
461
|
-
StoreCode(request: MsgStoreCode): Promise<MsgStoreCodeResponse>;
|
|
462
|
-
/** RemoveChecksum defines a rpc handler method for MsgRemoveChecksum. */
|
|
463
|
-
RemoveChecksum(request: MsgRemoveChecksum): Promise<MsgRemoveChecksumResponse>;
|
|
464
|
-
/** MigrateContract defines a rpc handler method for MsgMigrateContract. */
|
|
465
|
-
MigrateContract(request: MsgMigrateContract): Promise<MsgMigrateContractResponse>;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
export const MsgServiceName = "ibc.lightclients.wasm.v1.Msg";
|
|
469
|
-
export class MsgClientImpl implements Msg {
|
|
470
|
-
private readonly rpc: Rpc;
|
|
471
|
-
private readonly service: string;
|
|
472
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
473
|
-
this.service = opts?.service || MsgServiceName;
|
|
474
|
-
this.rpc = rpc;
|
|
475
|
-
this.StoreCode = this.StoreCode.bind(this);
|
|
476
|
-
this.RemoveChecksum = this.RemoveChecksum.bind(this);
|
|
477
|
-
this.MigrateContract = this.MigrateContract.bind(this);
|
|
478
|
-
}
|
|
479
|
-
StoreCode(request: MsgStoreCode): Promise<MsgStoreCodeResponse> {
|
|
480
|
-
const data = MsgStoreCode.encode(request).finish();
|
|
481
|
-
const promise = this.rpc.request(this.service, "StoreCode", data);
|
|
482
|
-
return promise.then((data) => MsgStoreCodeResponse.decode(new BinaryReader(data)));
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
RemoveChecksum(request: MsgRemoveChecksum): Promise<MsgRemoveChecksumResponse> {
|
|
486
|
-
const data = MsgRemoveChecksum.encode(request).finish();
|
|
487
|
-
const promise = this.rpc.request(this.service, "RemoveChecksum", data);
|
|
488
|
-
return promise.then((data) => MsgRemoveChecksumResponse.decode(new BinaryReader(data)));
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
MigrateContract(request: MsgMigrateContract): Promise<MsgMigrateContractResponse> {
|
|
492
|
-
const data = MsgMigrateContract.encode(request).finish();
|
|
493
|
-
const promise = this.rpc.request(this.service, "MigrateContract", data);
|
|
494
|
-
return promise.then((data) => MsgMigrateContractResponse.decode(new BinaryReader(data)));
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
interface Rpc {
|
|
499
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
function bytesFromBase64(b64: string): Uint8Array {
|
|
503
|
-
if ((globalThis as any).Buffer) {
|
|
504
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
505
|
-
} else {
|
|
506
|
-
const bin = globalThis.atob(b64);
|
|
507
|
-
const arr = new Uint8Array(bin.length);
|
|
508
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
509
|
-
arr[i] = bin.charCodeAt(i);
|
|
510
|
-
}
|
|
511
|
-
return arr;
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
function base64FromBytes(arr: Uint8Array): string {
|
|
516
|
-
if ((globalThis as any).Buffer) {
|
|
517
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
518
|
-
} else {
|
|
519
|
-
const bin: string[] = [];
|
|
520
|
-
arr.forEach((byte) => {
|
|
521
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
522
|
-
});
|
|
523
|
-
return globalThis.btoa(bin.join(""));
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
528
|
-
|
|
529
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
530
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
531
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
532
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
533
|
-
: Partial<T>;
|
|
534
|
-
|
|
535
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
536
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
537
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
538
|
-
|
|
539
|
-
function isSet(value: any): boolean {
|
|
540
|
-
return value !== null && value !== undefined;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
export interface MessageFns<T> {
|
|
544
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
545
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
546
|
-
fromJSON(object: any): T;
|
|
547
|
-
toJSON(message: T): unknown;
|
|
548
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
549
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
550
|
-
}
|