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,748 +0,0 @@
|
|
|
1
|
-
// Generated by Ignite ignite.com/cli
|
|
2
|
-
|
|
3
|
-
import { SigningStargateClient, DeliverTxResponse, StdFee } from "@cosmjs/stargate";
|
|
4
|
-
import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing";
|
|
5
|
-
import { msgTypes } from './registry';
|
|
6
|
-
import { IgniteClient } from "../client"
|
|
7
|
-
import { MissingWalletError } from "../helpers"
|
|
8
|
-
import { Api } from "./rest";
|
|
9
|
-
import { MsgChannelOpenInit } from "../types/ibc/core/channel/v1/tx";
|
|
10
|
-
import { MsgChannelOpenTry } from "../types/ibc/core/channel/v1/tx";
|
|
11
|
-
import { MsgChannelOpenAck } from "../types/ibc/core/channel/v1/tx";
|
|
12
|
-
import { MsgChannelOpenConfirm } from "../types/ibc/core/channel/v1/tx";
|
|
13
|
-
import { MsgChannelCloseInit } from "../types/ibc/core/channel/v1/tx";
|
|
14
|
-
import { MsgChannelCloseConfirm } from "../types/ibc/core/channel/v1/tx";
|
|
15
|
-
import { MsgRecvPacket } from "../types/ibc/core/channel/v1/tx";
|
|
16
|
-
import { MsgTimeout } from "../types/ibc/core/channel/v1/tx";
|
|
17
|
-
import { MsgTimeoutOnClose } from "../types/ibc/core/channel/v1/tx";
|
|
18
|
-
import { MsgAcknowledgement } from "../types/ibc/core/channel/v1/tx";
|
|
19
|
-
import { MsgChannelUpgradeInit } from "../types/ibc/core/channel/v1/tx";
|
|
20
|
-
import { MsgChannelUpgradeTry } from "../types/ibc/core/channel/v1/tx";
|
|
21
|
-
import { MsgChannelUpgradeAck } from "../types/ibc/core/channel/v1/tx";
|
|
22
|
-
import { MsgChannelUpgradeConfirm } from "../types/ibc/core/channel/v1/tx";
|
|
23
|
-
import { MsgChannelUpgradeOpen } from "../types/ibc/core/channel/v1/tx";
|
|
24
|
-
import { MsgChannelUpgradeTimeout } from "../types/ibc/core/channel/v1/tx";
|
|
25
|
-
import { MsgChannelUpgradeCancel } from "../types/ibc/core/channel/v1/tx";
|
|
26
|
-
import { MsgUpdateParams } from "../types/ibc/core/channel/v1/tx";
|
|
27
|
-
import { MsgPruneAcknowledgements } from "../types/ibc/core/channel/v1/tx";
|
|
28
|
-
|
|
29
|
-
import { Channel as typeChannel} from "./types"
|
|
30
|
-
import { IdentifiedChannel as typeIdentifiedChannel} from "./types"
|
|
31
|
-
import { Counterparty as typeCounterparty} from "./types"
|
|
32
|
-
import { Packet as typePacket} from "./types"
|
|
33
|
-
import { PacketState as typePacketState} from "./types"
|
|
34
|
-
import { PacketId as typePacketId} from "./types"
|
|
35
|
-
import { Acknowledgement as typeAcknowledgement} from "./types"
|
|
36
|
-
import { Timeout as typeTimeout} from "./types"
|
|
37
|
-
import { Params as typeParams} from "./types"
|
|
38
|
-
import { PacketSequence as typePacketSequence} from "./types"
|
|
39
|
-
import { Upgrade as typeUpgrade} from "./types"
|
|
40
|
-
import { UpgradeFields as typeUpgradeFields} from "./types"
|
|
41
|
-
import { ErrorReceipt as typeErrorReceipt} from "./types"
|
|
42
|
-
|
|
43
|
-
export { MsgChannelOpenInit, MsgChannelOpenTry, MsgChannelOpenAck, MsgChannelOpenConfirm, MsgChannelCloseInit, MsgChannelCloseConfirm, MsgRecvPacket, MsgTimeout, MsgTimeoutOnClose, MsgAcknowledgement, MsgChannelUpgradeInit, MsgChannelUpgradeTry, MsgChannelUpgradeAck, MsgChannelUpgradeConfirm, MsgChannelUpgradeOpen, MsgChannelUpgradeTimeout, MsgChannelUpgradeCancel, MsgUpdateParams, MsgPruneAcknowledgements };
|
|
44
|
-
|
|
45
|
-
type sendMsgChannelOpenInitParams = {
|
|
46
|
-
value: MsgChannelOpenInit,
|
|
47
|
-
fee?: StdFee,
|
|
48
|
-
memo?: string
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
type sendMsgChannelOpenTryParams = {
|
|
52
|
-
value: MsgChannelOpenTry,
|
|
53
|
-
fee?: StdFee,
|
|
54
|
-
memo?: string
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
type sendMsgChannelOpenAckParams = {
|
|
58
|
-
value: MsgChannelOpenAck,
|
|
59
|
-
fee?: StdFee,
|
|
60
|
-
memo?: string
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
type sendMsgChannelOpenConfirmParams = {
|
|
64
|
-
value: MsgChannelOpenConfirm,
|
|
65
|
-
fee?: StdFee,
|
|
66
|
-
memo?: string
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
type sendMsgChannelCloseInitParams = {
|
|
70
|
-
value: MsgChannelCloseInit,
|
|
71
|
-
fee?: StdFee,
|
|
72
|
-
memo?: string
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
type sendMsgChannelCloseConfirmParams = {
|
|
76
|
-
value: MsgChannelCloseConfirm,
|
|
77
|
-
fee?: StdFee,
|
|
78
|
-
memo?: string
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
type sendMsgRecvPacketParams = {
|
|
82
|
-
value: MsgRecvPacket,
|
|
83
|
-
fee?: StdFee,
|
|
84
|
-
memo?: string
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
type sendMsgTimeoutParams = {
|
|
88
|
-
value: MsgTimeout,
|
|
89
|
-
fee?: StdFee,
|
|
90
|
-
memo?: string
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
type sendMsgTimeoutOnCloseParams = {
|
|
94
|
-
value: MsgTimeoutOnClose,
|
|
95
|
-
fee?: StdFee,
|
|
96
|
-
memo?: string
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
type sendMsgAcknowledgementParams = {
|
|
100
|
-
value: MsgAcknowledgement,
|
|
101
|
-
fee?: StdFee,
|
|
102
|
-
memo?: string
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
type sendMsgChannelUpgradeInitParams = {
|
|
106
|
-
value: MsgChannelUpgradeInit,
|
|
107
|
-
fee?: StdFee,
|
|
108
|
-
memo?: string
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
type sendMsgChannelUpgradeTryParams = {
|
|
112
|
-
value: MsgChannelUpgradeTry,
|
|
113
|
-
fee?: StdFee,
|
|
114
|
-
memo?: string
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
type sendMsgChannelUpgradeAckParams = {
|
|
118
|
-
value: MsgChannelUpgradeAck,
|
|
119
|
-
fee?: StdFee,
|
|
120
|
-
memo?: string
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
type sendMsgChannelUpgradeConfirmParams = {
|
|
124
|
-
value: MsgChannelUpgradeConfirm,
|
|
125
|
-
fee?: StdFee,
|
|
126
|
-
memo?: string
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
type sendMsgChannelUpgradeOpenParams = {
|
|
130
|
-
value: MsgChannelUpgradeOpen,
|
|
131
|
-
fee?: StdFee,
|
|
132
|
-
memo?: string
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
type sendMsgChannelUpgradeTimeoutParams = {
|
|
136
|
-
value: MsgChannelUpgradeTimeout,
|
|
137
|
-
fee?: StdFee,
|
|
138
|
-
memo?: string
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
type sendMsgChannelUpgradeCancelParams = {
|
|
142
|
-
value: MsgChannelUpgradeCancel,
|
|
143
|
-
fee?: StdFee,
|
|
144
|
-
memo?: string
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
type sendMsgUpdateParamsParams = {
|
|
148
|
-
value: MsgUpdateParams,
|
|
149
|
-
fee?: StdFee,
|
|
150
|
-
memo?: string
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
type sendMsgPruneAcknowledgementsParams = {
|
|
154
|
-
value: MsgPruneAcknowledgements,
|
|
155
|
-
fee?: StdFee,
|
|
156
|
-
memo?: string
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
type msgChannelOpenInitParams = {
|
|
161
|
-
value: MsgChannelOpenInit,
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
type msgChannelOpenTryParams = {
|
|
165
|
-
value: MsgChannelOpenTry,
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
type msgChannelOpenAckParams = {
|
|
169
|
-
value: MsgChannelOpenAck,
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
type msgChannelOpenConfirmParams = {
|
|
173
|
-
value: MsgChannelOpenConfirm,
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
type msgChannelCloseInitParams = {
|
|
177
|
-
value: MsgChannelCloseInit,
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
type msgChannelCloseConfirmParams = {
|
|
181
|
-
value: MsgChannelCloseConfirm,
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
type msgRecvPacketParams = {
|
|
185
|
-
value: MsgRecvPacket,
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
type msgTimeoutParams = {
|
|
189
|
-
value: MsgTimeout,
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
type msgTimeoutOnCloseParams = {
|
|
193
|
-
value: MsgTimeoutOnClose,
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
type msgAcknowledgementParams = {
|
|
197
|
-
value: MsgAcknowledgement,
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
type msgChannelUpgradeInitParams = {
|
|
201
|
-
value: MsgChannelUpgradeInit,
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
type msgChannelUpgradeTryParams = {
|
|
205
|
-
value: MsgChannelUpgradeTry,
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
type msgChannelUpgradeAckParams = {
|
|
209
|
-
value: MsgChannelUpgradeAck,
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
type msgChannelUpgradeConfirmParams = {
|
|
213
|
-
value: MsgChannelUpgradeConfirm,
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
type msgChannelUpgradeOpenParams = {
|
|
217
|
-
value: MsgChannelUpgradeOpen,
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
type msgChannelUpgradeTimeoutParams = {
|
|
221
|
-
value: MsgChannelUpgradeTimeout,
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
type msgChannelUpgradeCancelParams = {
|
|
225
|
-
value: MsgChannelUpgradeCancel,
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
type msgUpdateParamsParams = {
|
|
229
|
-
value: MsgUpdateParams,
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
type msgPruneAcknowledgementsParams = {
|
|
233
|
-
value: MsgPruneAcknowledgements,
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
export const registry = new Registry(msgTypes);
|
|
238
|
-
|
|
239
|
-
type Field = {
|
|
240
|
-
name: string;
|
|
241
|
-
type: unknown;
|
|
242
|
-
}
|
|
243
|
-
function getStructure(template) {
|
|
244
|
-
const structure: {fields: Field[]} = { fields: [] }
|
|
245
|
-
for (let [key, value] of Object.entries(template)) {
|
|
246
|
-
let field = { name: key, type: typeof value }
|
|
247
|
-
structure.fields.push(field)
|
|
248
|
-
}
|
|
249
|
-
return structure
|
|
250
|
-
}
|
|
251
|
-
const defaultFee = {
|
|
252
|
-
amount: [],
|
|
253
|
-
gas: "200000",
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
interface TxClientOptions {
|
|
257
|
-
addr: string
|
|
258
|
-
prefix: string
|
|
259
|
-
signer?: OfflineSigner
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
|
|
263
|
-
|
|
264
|
-
return {
|
|
265
|
-
|
|
266
|
-
async sendMsgChannelOpenInit({ value, fee, memo }: sendMsgChannelOpenInitParams): Promise<DeliverTxResponse> {
|
|
267
|
-
if (!signer) {
|
|
268
|
-
throw new Error('TxClient:sendMsgChannelOpenInit: Unable to sign Tx. Signer is not present.')
|
|
269
|
-
}
|
|
270
|
-
try {
|
|
271
|
-
const { address } = (await signer.getAccounts())[0];
|
|
272
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
273
|
-
let msg = this.msgChannelOpenInit({ value: MsgChannelOpenInit.fromPartial(value) })
|
|
274
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
275
|
-
} catch (e: any) {
|
|
276
|
-
throw new Error('TxClient:sendMsgChannelOpenInit: Could not broadcast Tx: '+ e.message)
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
|
|
280
|
-
async sendMsgChannelOpenTry({ value, fee, memo }: sendMsgChannelOpenTryParams): Promise<DeliverTxResponse> {
|
|
281
|
-
if (!signer) {
|
|
282
|
-
throw new Error('TxClient:sendMsgChannelOpenTry: Unable to sign Tx. Signer is not present.')
|
|
283
|
-
}
|
|
284
|
-
try {
|
|
285
|
-
const { address } = (await signer.getAccounts())[0];
|
|
286
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
287
|
-
let msg = this.msgChannelOpenTry({ value: MsgChannelOpenTry.fromPartial(value) })
|
|
288
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
289
|
-
} catch (e: any) {
|
|
290
|
-
throw new Error('TxClient:sendMsgChannelOpenTry: Could not broadcast Tx: '+ e.message)
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
|
-
|
|
294
|
-
async sendMsgChannelOpenAck({ value, fee, memo }: sendMsgChannelOpenAckParams): Promise<DeliverTxResponse> {
|
|
295
|
-
if (!signer) {
|
|
296
|
-
throw new Error('TxClient:sendMsgChannelOpenAck: Unable to sign Tx. Signer is not present.')
|
|
297
|
-
}
|
|
298
|
-
try {
|
|
299
|
-
const { address } = (await signer.getAccounts())[0];
|
|
300
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
301
|
-
let msg = this.msgChannelOpenAck({ value: MsgChannelOpenAck.fromPartial(value) })
|
|
302
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
303
|
-
} catch (e: any) {
|
|
304
|
-
throw new Error('TxClient:sendMsgChannelOpenAck: Could not broadcast Tx: '+ e.message)
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
|
-
|
|
308
|
-
async sendMsgChannelOpenConfirm({ value, fee, memo }: sendMsgChannelOpenConfirmParams): Promise<DeliverTxResponse> {
|
|
309
|
-
if (!signer) {
|
|
310
|
-
throw new Error('TxClient:sendMsgChannelOpenConfirm: Unable to sign Tx. Signer is not present.')
|
|
311
|
-
}
|
|
312
|
-
try {
|
|
313
|
-
const { address } = (await signer.getAccounts())[0];
|
|
314
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
315
|
-
let msg = this.msgChannelOpenConfirm({ value: MsgChannelOpenConfirm.fromPartial(value) })
|
|
316
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
317
|
-
} catch (e: any) {
|
|
318
|
-
throw new Error('TxClient:sendMsgChannelOpenConfirm: Could not broadcast Tx: '+ e.message)
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
|
-
|
|
322
|
-
async sendMsgChannelCloseInit({ value, fee, memo }: sendMsgChannelCloseInitParams): Promise<DeliverTxResponse> {
|
|
323
|
-
if (!signer) {
|
|
324
|
-
throw new Error('TxClient:sendMsgChannelCloseInit: Unable to sign Tx. Signer is not present.')
|
|
325
|
-
}
|
|
326
|
-
try {
|
|
327
|
-
const { address } = (await signer.getAccounts())[0];
|
|
328
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
329
|
-
let msg = this.msgChannelCloseInit({ value: MsgChannelCloseInit.fromPartial(value) })
|
|
330
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
331
|
-
} catch (e: any) {
|
|
332
|
-
throw new Error('TxClient:sendMsgChannelCloseInit: Could not broadcast Tx: '+ e.message)
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
|
|
336
|
-
async sendMsgChannelCloseConfirm({ value, fee, memo }: sendMsgChannelCloseConfirmParams): Promise<DeliverTxResponse> {
|
|
337
|
-
if (!signer) {
|
|
338
|
-
throw new Error('TxClient:sendMsgChannelCloseConfirm: Unable to sign Tx. Signer is not present.')
|
|
339
|
-
}
|
|
340
|
-
try {
|
|
341
|
-
const { address } = (await signer.getAccounts())[0];
|
|
342
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
343
|
-
let msg = this.msgChannelCloseConfirm({ value: MsgChannelCloseConfirm.fromPartial(value) })
|
|
344
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
345
|
-
} catch (e: any) {
|
|
346
|
-
throw new Error('TxClient:sendMsgChannelCloseConfirm: Could not broadcast Tx: '+ e.message)
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
|
|
350
|
-
async sendMsgRecvPacket({ value, fee, memo }: sendMsgRecvPacketParams): Promise<DeliverTxResponse> {
|
|
351
|
-
if (!signer) {
|
|
352
|
-
throw new Error('TxClient:sendMsgRecvPacket: Unable to sign Tx. Signer is not present.')
|
|
353
|
-
}
|
|
354
|
-
try {
|
|
355
|
-
const { address } = (await signer.getAccounts())[0];
|
|
356
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
357
|
-
let msg = this.msgRecvPacket({ value: MsgRecvPacket.fromPartial(value) })
|
|
358
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
359
|
-
} catch (e: any) {
|
|
360
|
-
throw new Error('TxClient:sendMsgRecvPacket: Could not broadcast Tx: '+ e.message)
|
|
361
|
-
}
|
|
362
|
-
},
|
|
363
|
-
|
|
364
|
-
async sendMsgTimeout({ value, fee, memo }: sendMsgTimeoutParams): Promise<DeliverTxResponse> {
|
|
365
|
-
if (!signer) {
|
|
366
|
-
throw new Error('TxClient:sendMsgTimeout: Unable to sign Tx. Signer is not present.')
|
|
367
|
-
}
|
|
368
|
-
try {
|
|
369
|
-
const { address } = (await signer.getAccounts())[0];
|
|
370
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
371
|
-
let msg = this.msgTimeout({ value: MsgTimeout.fromPartial(value) })
|
|
372
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
373
|
-
} catch (e: any) {
|
|
374
|
-
throw new Error('TxClient:sendMsgTimeout: Could not broadcast Tx: '+ e.message)
|
|
375
|
-
}
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
async sendMsgTimeoutOnClose({ value, fee, memo }: sendMsgTimeoutOnCloseParams): Promise<DeliverTxResponse> {
|
|
379
|
-
if (!signer) {
|
|
380
|
-
throw new Error('TxClient:sendMsgTimeoutOnClose: Unable to sign Tx. Signer is not present.')
|
|
381
|
-
}
|
|
382
|
-
try {
|
|
383
|
-
const { address } = (await signer.getAccounts())[0];
|
|
384
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
385
|
-
let msg = this.msgTimeoutOnClose({ value: MsgTimeoutOnClose.fromPartial(value) })
|
|
386
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
387
|
-
} catch (e: any) {
|
|
388
|
-
throw new Error('TxClient:sendMsgTimeoutOnClose: Could not broadcast Tx: '+ e.message)
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
|
|
392
|
-
async sendMsgAcknowledgement({ value, fee, memo }: sendMsgAcknowledgementParams): Promise<DeliverTxResponse> {
|
|
393
|
-
if (!signer) {
|
|
394
|
-
throw new Error('TxClient:sendMsgAcknowledgement: Unable to sign Tx. Signer is not present.')
|
|
395
|
-
}
|
|
396
|
-
try {
|
|
397
|
-
const { address } = (await signer.getAccounts())[0];
|
|
398
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
399
|
-
let msg = this.msgAcknowledgement({ value: MsgAcknowledgement.fromPartial(value) })
|
|
400
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
401
|
-
} catch (e: any) {
|
|
402
|
-
throw new Error('TxClient:sendMsgAcknowledgement: Could not broadcast Tx: '+ e.message)
|
|
403
|
-
}
|
|
404
|
-
},
|
|
405
|
-
|
|
406
|
-
async sendMsgChannelUpgradeInit({ value, fee, memo }: sendMsgChannelUpgradeInitParams): Promise<DeliverTxResponse> {
|
|
407
|
-
if (!signer) {
|
|
408
|
-
throw new Error('TxClient:sendMsgChannelUpgradeInit: Unable to sign Tx. Signer is not present.')
|
|
409
|
-
}
|
|
410
|
-
try {
|
|
411
|
-
const { address } = (await signer.getAccounts())[0];
|
|
412
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
413
|
-
let msg = this.msgChannelUpgradeInit({ value: MsgChannelUpgradeInit.fromPartial(value) })
|
|
414
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
415
|
-
} catch (e: any) {
|
|
416
|
-
throw new Error('TxClient:sendMsgChannelUpgradeInit: Could not broadcast Tx: '+ e.message)
|
|
417
|
-
}
|
|
418
|
-
},
|
|
419
|
-
|
|
420
|
-
async sendMsgChannelUpgradeTry({ value, fee, memo }: sendMsgChannelUpgradeTryParams): Promise<DeliverTxResponse> {
|
|
421
|
-
if (!signer) {
|
|
422
|
-
throw new Error('TxClient:sendMsgChannelUpgradeTry: Unable to sign Tx. Signer is not present.')
|
|
423
|
-
}
|
|
424
|
-
try {
|
|
425
|
-
const { address } = (await signer.getAccounts())[0];
|
|
426
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
427
|
-
let msg = this.msgChannelUpgradeTry({ value: MsgChannelUpgradeTry.fromPartial(value) })
|
|
428
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
429
|
-
} catch (e: any) {
|
|
430
|
-
throw new Error('TxClient:sendMsgChannelUpgradeTry: Could not broadcast Tx: '+ e.message)
|
|
431
|
-
}
|
|
432
|
-
},
|
|
433
|
-
|
|
434
|
-
async sendMsgChannelUpgradeAck({ value, fee, memo }: sendMsgChannelUpgradeAckParams): Promise<DeliverTxResponse> {
|
|
435
|
-
if (!signer) {
|
|
436
|
-
throw new Error('TxClient:sendMsgChannelUpgradeAck: Unable to sign Tx. Signer is not present.')
|
|
437
|
-
}
|
|
438
|
-
try {
|
|
439
|
-
const { address } = (await signer.getAccounts())[0];
|
|
440
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
441
|
-
let msg = this.msgChannelUpgradeAck({ value: MsgChannelUpgradeAck.fromPartial(value) })
|
|
442
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
443
|
-
} catch (e: any) {
|
|
444
|
-
throw new Error('TxClient:sendMsgChannelUpgradeAck: Could not broadcast Tx: '+ e.message)
|
|
445
|
-
}
|
|
446
|
-
},
|
|
447
|
-
|
|
448
|
-
async sendMsgChannelUpgradeConfirm({ value, fee, memo }: sendMsgChannelUpgradeConfirmParams): Promise<DeliverTxResponse> {
|
|
449
|
-
if (!signer) {
|
|
450
|
-
throw new Error('TxClient:sendMsgChannelUpgradeConfirm: Unable to sign Tx. Signer is not present.')
|
|
451
|
-
}
|
|
452
|
-
try {
|
|
453
|
-
const { address } = (await signer.getAccounts())[0];
|
|
454
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
455
|
-
let msg = this.msgChannelUpgradeConfirm({ value: MsgChannelUpgradeConfirm.fromPartial(value) })
|
|
456
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
457
|
-
} catch (e: any) {
|
|
458
|
-
throw new Error('TxClient:sendMsgChannelUpgradeConfirm: Could not broadcast Tx: '+ e.message)
|
|
459
|
-
}
|
|
460
|
-
},
|
|
461
|
-
|
|
462
|
-
async sendMsgChannelUpgradeOpen({ value, fee, memo }: sendMsgChannelUpgradeOpenParams): Promise<DeliverTxResponse> {
|
|
463
|
-
if (!signer) {
|
|
464
|
-
throw new Error('TxClient:sendMsgChannelUpgradeOpen: Unable to sign Tx. Signer is not present.')
|
|
465
|
-
}
|
|
466
|
-
try {
|
|
467
|
-
const { address } = (await signer.getAccounts())[0];
|
|
468
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
469
|
-
let msg = this.msgChannelUpgradeOpen({ value: MsgChannelUpgradeOpen.fromPartial(value) })
|
|
470
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
471
|
-
} catch (e: any) {
|
|
472
|
-
throw new Error('TxClient:sendMsgChannelUpgradeOpen: Could not broadcast Tx: '+ e.message)
|
|
473
|
-
}
|
|
474
|
-
},
|
|
475
|
-
|
|
476
|
-
async sendMsgChannelUpgradeTimeout({ value, fee, memo }: sendMsgChannelUpgradeTimeoutParams): Promise<DeliverTxResponse> {
|
|
477
|
-
if (!signer) {
|
|
478
|
-
throw new Error('TxClient:sendMsgChannelUpgradeTimeout: Unable to sign Tx. Signer is not present.')
|
|
479
|
-
}
|
|
480
|
-
try {
|
|
481
|
-
const { address } = (await signer.getAccounts())[0];
|
|
482
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
483
|
-
let msg = this.msgChannelUpgradeTimeout({ value: MsgChannelUpgradeTimeout.fromPartial(value) })
|
|
484
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
485
|
-
} catch (e: any) {
|
|
486
|
-
throw new Error('TxClient:sendMsgChannelUpgradeTimeout: Could not broadcast Tx: '+ e.message)
|
|
487
|
-
}
|
|
488
|
-
},
|
|
489
|
-
|
|
490
|
-
async sendMsgChannelUpgradeCancel({ value, fee, memo }: sendMsgChannelUpgradeCancelParams): Promise<DeliverTxResponse> {
|
|
491
|
-
if (!signer) {
|
|
492
|
-
throw new Error('TxClient:sendMsgChannelUpgradeCancel: Unable to sign Tx. Signer is not present.')
|
|
493
|
-
}
|
|
494
|
-
try {
|
|
495
|
-
const { address } = (await signer.getAccounts())[0];
|
|
496
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
497
|
-
let msg = this.msgChannelUpgradeCancel({ value: MsgChannelUpgradeCancel.fromPartial(value) })
|
|
498
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
499
|
-
} catch (e: any) {
|
|
500
|
-
throw new Error('TxClient:sendMsgChannelUpgradeCancel: Could not broadcast Tx: '+ e.message)
|
|
501
|
-
}
|
|
502
|
-
},
|
|
503
|
-
|
|
504
|
-
async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise<DeliverTxResponse> {
|
|
505
|
-
if (!signer) {
|
|
506
|
-
throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.')
|
|
507
|
-
}
|
|
508
|
-
try {
|
|
509
|
-
const { address } = (await signer.getAccounts())[0];
|
|
510
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
511
|
-
let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) })
|
|
512
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
513
|
-
} catch (e: any) {
|
|
514
|
-
throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message)
|
|
515
|
-
}
|
|
516
|
-
},
|
|
517
|
-
|
|
518
|
-
async sendMsgPruneAcknowledgements({ value, fee, memo }: sendMsgPruneAcknowledgementsParams): Promise<DeliverTxResponse> {
|
|
519
|
-
if (!signer) {
|
|
520
|
-
throw new Error('TxClient:sendMsgPruneAcknowledgements: Unable to sign Tx. Signer is not present.')
|
|
521
|
-
}
|
|
522
|
-
try {
|
|
523
|
-
const { address } = (await signer.getAccounts())[0];
|
|
524
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
|
|
525
|
-
let msg = this.msgPruneAcknowledgements({ value: MsgPruneAcknowledgements.fromPartial(value) })
|
|
526
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
527
|
-
} catch (e: any) {
|
|
528
|
-
throw new Error('TxClient:sendMsgPruneAcknowledgements: Could not broadcast Tx: '+ e.message)
|
|
529
|
-
}
|
|
530
|
-
},
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
msgChannelOpenInit({ value }: msgChannelOpenInitParams): EncodeObject {
|
|
534
|
-
try {
|
|
535
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInit", value: MsgChannelOpenInit.fromPartial( value ) }
|
|
536
|
-
} catch (e: any) {
|
|
537
|
-
throw new Error('TxClient:MsgChannelOpenInit: Could not create message: ' + e.message)
|
|
538
|
-
}
|
|
539
|
-
},
|
|
540
|
-
|
|
541
|
-
msgChannelOpenTry({ value }: msgChannelOpenTryParams): EncodeObject {
|
|
542
|
-
try {
|
|
543
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTry", value: MsgChannelOpenTry.fromPartial( value ) }
|
|
544
|
-
} catch (e: any) {
|
|
545
|
-
throw new Error('TxClient:MsgChannelOpenTry: Could not create message: ' + e.message)
|
|
546
|
-
}
|
|
547
|
-
},
|
|
548
|
-
|
|
549
|
-
msgChannelOpenAck({ value }: msgChannelOpenAckParams): EncodeObject {
|
|
550
|
-
try {
|
|
551
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAck", value: MsgChannelOpenAck.fromPartial( value ) }
|
|
552
|
-
} catch (e: any) {
|
|
553
|
-
throw new Error('TxClient:MsgChannelOpenAck: Could not create message: ' + e.message)
|
|
554
|
-
}
|
|
555
|
-
},
|
|
556
|
-
|
|
557
|
-
msgChannelOpenConfirm({ value }: msgChannelOpenConfirmParams): EncodeObject {
|
|
558
|
-
try {
|
|
559
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirm", value: MsgChannelOpenConfirm.fromPartial( value ) }
|
|
560
|
-
} catch (e: any) {
|
|
561
|
-
throw new Error('TxClient:MsgChannelOpenConfirm: Could not create message: ' + e.message)
|
|
562
|
-
}
|
|
563
|
-
},
|
|
564
|
-
|
|
565
|
-
msgChannelCloseInit({ value }: msgChannelCloseInitParams): EncodeObject {
|
|
566
|
-
try {
|
|
567
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInit", value: MsgChannelCloseInit.fromPartial( value ) }
|
|
568
|
-
} catch (e: any) {
|
|
569
|
-
throw new Error('TxClient:MsgChannelCloseInit: Could not create message: ' + e.message)
|
|
570
|
-
}
|
|
571
|
-
},
|
|
572
|
-
|
|
573
|
-
msgChannelCloseConfirm({ value }: msgChannelCloseConfirmParams): EncodeObject {
|
|
574
|
-
try {
|
|
575
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirm", value: MsgChannelCloseConfirm.fromPartial( value ) }
|
|
576
|
-
} catch (e: any) {
|
|
577
|
-
throw new Error('TxClient:MsgChannelCloseConfirm: Could not create message: ' + e.message)
|
|
578
|
-
}
|
|
579
|
-
},
|
|
580
|
-
|
|
581
|
-
msgRecvPacket({ value }: msgRecvPacketParams): EncodeObject {
|
|
582
|
-
try {
|
|
583
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgRecvPacket", value: MsgRecvPacket.fromPartial( value ) }
|
|
584
|
-
} catch (e: any) {
|
|
585
|
-
throw new Error('TxClient:MsgRecvPacket: Could not create message: ' + e.message)
|
|
586
|
-
}
|
|
587
|
-
},
|
|
588
|
-
|
|
589
|
-
msgTimeout({ value }: msgTimeoutParams): EncodeObject {
|
|
590
|
-
try {
|
|
591
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgTimeout", value: MsgTimeout.fromPartial( value ) }
|
|
592
|
-
} catch (e: any) {
|
|
593
|
-
throw new Error('TxClient:MsgTimeout: Could not create message: ' + e.message)
|
|
594
|
-
}
|
|
595
|
-
},
|
|
596
|
-
|
|
597
|
-
msgTimeoutOnClose({ value }: msgTimeoutOnCloseParams): EncodeObject {
|
|
598
|
-
try {
|
|
599
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnClose", value: MsgTimeoutOnClose.fromPartial( value ) }
|
|
600
|
-
} catch (e: any) {
|
|
601
|
-
throw new Error('TxClient:MsgTimeoutOnClose: Could not create message: ' + e.message)
|
|
602
|
-
}
|
|
603
|
-
},
|
|
604
|
-
|
|
605
|
-
msgAcknowledgement({ value }: msgAcknowledgementParams): EncodeObject {
|
|
606
|
-
try {
|
|
607
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgAcknowledgement", value: MsgAcknowledgement.fromPartial( value ) }
|
|
608
|
-
} catch (e: any) {
|
|
609
|
-
throw new Error('TxClient:MsgAcknowledgement: Could not create message: ' + e.message)
|
|
610
|
-
}
|
|
611
|
-
},
|
|
612
|
-
|
|
613
|
-
msgChannelUpgradeInit({ value }: msgChannelUpgradeInitParams): EncodeObject {
|
|
614
|
-
try {
|
|
615
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeInit", value: MsgChannelUpgradeInit.fromPartial( value ) }
|
|
616
|
-
} catch (e: any) {
|
|
617
|
-
throw new Error('TxClient:MsgChannelUpgradeInit: Could not create message: ' + e.message)
|
|
618
|
-
}
|
|
619
|
-
},
|
|
620
|
-
|
|
621
|
-
msgChannelUpgradeTry({ value }: msgChannelUpgradeTryParams): EncodeObject {
|
|
622
|
-
try {
|
|
623
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeTry", value: MsgChannelUpgradeTry.fromPartial( value ) }
|
|
624
|
-
} catch (e: any) {
|
|
625
|
-
throw new Error('TxClient:MsgChannelUpgradeTry: Could not create message: ' + e.message)
|
|
626
|
-
}
|
|
627
|
-
},
|
|
628
|
-
|
|
629
|
-
msgChannelUpgradeAck({ value }: msgChannelUpgradeAckParams): EncodeObject {
|
|
630
|
-
try {
|
|
631
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeAck", value: MsgChannelUpgradeAck.fromPartial( value ) }
|
|
632
|
-
} catch (e: any) {
|
|
633
|
-
throw new Error('TxClient:MsgChannelUpgradeAck: Could not create message: ' + e.message)
|
|
634
|
-
}
|
|
635
|
-
},
|
|
636
|
-
|
|
637
|
-
msgChannelUpgradeConfirm({ value }: msgChannelUpgradeConfirmParams): EncodeObject {
|
|
638
|
-
try {
|
|
639
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeConfirm", value: MsgChannelUpgradeConfirm.fromPartial( value ) }
|
|
640
|
-
} catch (e: any) {
|
|
641
|
-
throw new Error('TxClient:MsgChannelUpgradeConfirm: Could not create message: ' + e.message)
|
|
642
|
-
}
|
|
643
|
-
},
|
|
644
|
-
|
|
645
|
-
msgChannelUpgradeOpen({ value }: msgChannelUpgradeOpenParams): EncodeObject {
|
|
646
|
-
try {
|
|
647
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeOpen", value: MsgChannelUpgradeOpen.fromPartial( value ) }
|
|
648
|
-
} catch (e: any) {
|
|
649
|
-
throw new Error('TxClient:MsgChannelUpgradeOpen: Could not create message: ' + e.message)
|
|
650
|
-
}
|
|
651
|
-
},
|
|
652
|
-
|
|
653
|
-
msgChannelUpgradeTimeout({ value }: msgChannelUpgradeTimeoutParams): EncodeObject {
|
|
654
|
-
try {
|
|
655
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeTimeout", value: MsgChannelUpgradeTimeout.fromPartial( value ) }
|
|
656
|
-
} catch (e: any) {
|
|
657
|
-
throw new Error('TxClient:MsgChannelUpgradeTimeout: Could not create message: ' + e.message)
|
|
658
|
-
}
|
|
659
|
-
},
|
|
660
|
-
|
|
661
|
-
msgChannelUpgradeCancel({ value }: msgChannelUpgradeCancelParams): EncodeObject {
|
|
662
|
-
try {
|
|
663
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgChannelUpgradeCancel", value: MsgChannelUpgradeCancel.fromPartial( value ) }
|
|
664
|
-
} catch (e: any) {
|
|
665
|
-
throw new Error('TxClient:MsgChannelUpgradeCancel: Could not create message: ' + e.message)
|
|
666
|
-
}
|
|
667
|
-
},
|
|
668
|
-
|
|
669
|
-
msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject {
|
|
670
|
-
try {
|
|
671
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) }
|
|
672
|
-
} catch (e: any) {
|
|
673
|
-
throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message)
|
|
674
|
-
}
|
|
675
|
-
},
|
|
676
|
-
|
|
677
|
-
msgPruneAcknowledgements({ value }: msgPruneAcknowledgementsParams): EncodeObject {
|
|
678
|
-
try {
|
|
679
|
-
return { typeUrl: "/ibc.core.channel.v1.MsgPruneAcknowledgements", value: MsgPruneAcknowledgements.fromPartial( value ) }
|
|
680
|
-
} catch (e: any) {
|
|
681
|
-
throw new Error('TxClient:MsgPruneAcknowledgements: Could not create message: ' + e.message)
|
|
682
|
-
}
|
|
683
|
-
},
|
|
684
|
-
|
|
685
|
-
}
|
|
686
|
-
};
|
|
687
|
-
|
|
688
|
-
interface QueryClientOptions {
|
|
689
|
-
addr: string
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
export const queryClient = ({ addr: addr }: QueryClientOptions = { addr: "http://localhost:1317" }) => {
|
|
693
|
-
return new Api({ baseURL: addr });
|
|
694
|
-
};
|
|
695
|
-
|
|
696
|
-
class SDKModule {
|
|
697
|
-
public query: ReturnType<typeof queryClient>;
|
|
698
|
-
public tx: ReturnType<typeof txClient>;
|
|
699
|
-
public structure: Record<string,unknown>;
|
|
700
|
-
public registry: Array<[string, GeneratedType]> = [];
|
|
701
|
-
|
|
702
|
-
constructor(client: IgniteClient) {
|
|
703
|
-
|
|
704
|
-
this.query = queryClient({ addr: client.env.apiURL });
|
|
705
|
-
this.updateTX(client);
|
|
706
|
-
this.structure = {
|
|
707
|
-
Channel: getStructure(typeChannel.fromPartial({})),
|
|
708
|
-
IdentifiedChannel: getStructure(typeIdentifiedChannel.fromPartial({})),
|
|
709
|
-
Counterparty: getStructure(typeCounterparty.fromPartial({})),
|
|
710
|
-
Packet: getStructure(typePacket.fromPartial({})),
|
|
711
|
-
PacketState: getStructure(typePacketState.fromPartial({})),
|
|
712
|
-
PacketId: getStructure(typePacketId.fromPartial({})),
|
|
713
|
-
Acknowledgement: getStructure(typeAcknowledgement.fromPartial({})),
|
|
714
|
-
Timeout: getStructure(typeTimeout.fromPartial({})),
|
|
715
|
-
Params: getStructure(typeParams.fromPartial({})),
|
|
716
|
-
PacketSequence: getStructure(typePacketSequence.fromPartial({})),
|
|
717
|
-
Upgrade: getStructure(typeUpgrade.fromPartial({})),
|
|
718
|
-
UpgradeFields: getStructure(typeUpgradeFields.fromPartial({})),
|
|
719
|
-
ErrorReceipt: getStructure(typeErrorReceipt.fromPartial({})),
|
|
720
|
-
|
|
721
|
-
};
|
|
722
|
-
client.on('signer-changed',(signer) => {
|
|
723
|
-
this.updateTX(client);
|
|
724
|
-
})
|
|
725
|
-
}
|
|
726
|
-
updateTX(client: IgniteClient) {
|
|
727
|
-
const methods = txClient({
|
|
728
|
-
signer: client.signer,
|
|
729
|
-
addr: client.env.rpcURL,
|
|
730
|
-
prefix: client.env.prefix ?? "cosmos",
|
|
731
|
-
})
|
|
732
|
-
|
|
733
|
-
this.tx = methods;
|
|
734
|
-
for (let m in methods) {
|
|
735
|
-
this.tx[m] = methods[m].bind(this.tx);
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
};
|
|
739
|
-
|
|
740
|
-
const IgntModule = (test: IgniteClient) => {
|
|
741
|
-
return {
|
|
742
|
-
module: {
|
|
743
|
-
IbcCoreChannelV_1: new SDKModule(test)
|
|
744
|
-
},
|
|
745
|
-
registry: msgTypes
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
export default IgntModule;
|