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
package/index.ts
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
// Generated by Ignite ignite.com/cli
|
|
2
|
-
import { Registry } from '@cosmjs/proto-signing'
|
|
3
|
-
import { IgniteClient } from "./client";
|
|
4
|
-
import { MissingWalletError } from "./helpers";
|
|
5
|
-
import { IgntModule as CardchainCardchain, msgTypes as CardchainCardchainMsgTypes } from './cardchain.cardchain'
|
|
6
|
-
import { IgntModule as CardchainFeatureflag, msgTypes as CardchainFeatureflagMsgTypes } from './cardchain.featureflag'
|
|
7
|
-
import { IgntModule as CosmosFeegrantV_1Beta_1, msgTypes as CosmosFeegrantV_1Beta_1MsgTypes } from './cosmos.feegrant.v1beta1'
|
|
8
|
-
import { IgntModule as IbcApplicationsFeeV_1, msgTypes as IbcApplicationsFeeV_1MsgTypes } from './ibc.applications.fee.v1'
|
|
9
|
-
import { IgntModule as IbcApplicationsInterchainAccountsControllerV_1, msgTypes as IbcApplicationsInterchainAccountsControllerV_1MsgTypes } from './ibc.applications.interchain_accounts.controller.v1'
|
|
10
|
-
import { IgntModule as IbcApplicationsInterchainAccountsHostV_1, msgTypes as IbcApplicationsInterchainAccountsHostV_1MsgTypes } from './ibc.applications.interchain_accounts.host.v1'
|
|
11
|
-
import { IgntModule as IbcApplicationsTransferV_1, msgTypes as IbcApplicationsTransferV_1MsgTypes } from './ibc.applications.transfer.v1'
|
|
12
|
-
import { IgntModule as IbcCoreChannelV_1, msgTypes as IbcCoreChannelV_1MsgTypes } from './ibc.core.channel.v1'
|
|
13
|
-
import { IgntModule as IbcCoreClientV_1, msgTypes as IbcCoreClientV_1MsgTypes } from './ibc.core.client.v1'
|
|
14
|
-
import { IgntModule as IbcCoreConnectionV_1, msgTypes as IbcCoreConnectionV_1MsgTypes } from './ibc.core.connection.v1'
|
|
15
|
-
import { IgntModule as CosmosNftV_1Beta_1, msgTypes as CosmosNftV_1Beta_1MsgTypes } from './cosmos.nft.v1beta1'
|
|
16
|
-
import { IgntModule as CosmosCircuitV_1, msgTypes as CosmosCircuitV_1MsgTypes } from './cosmos.circuit.v1'
|
|
17
|
-
import { IgntModule as CosmosEvidenceV_1Beta_1, msgTypes as CosmosEvidenceV_1Beta_1MsgTypes } from './cosmos.evidence.v1beta1'
|
|
18
|
-
import { IgntModule as CosmosUpgradeV_1Beta_1, msgTypes as CosmosUpgradeV_1Beta_1MsgTypes } from './cosmos.upgrade.v1beta1'
|
|
19
|
-
import { IgntModule as CosmosAuthV_1Beta_1, msgTypes as CosmosAuthV_1Beta_1MsgTypes } from './cosmos.auth.v1beta1'
|
|
20
|
-
import { IgntModule as CosmosAuthzV_1Beta_1, msgTypes as CosmosAuthzV_1Beta_1MsgTypes } from './cosmos.authz.v1beta1'
|
|
21
|
-
import { IgntModule as CosmosBankV_1Beta_1, msgTypes as CosmosBankV_1Beta_1MsgTypes } from './cosmos.bank.v1beta1'
|
|
22
|
-
import { IgntModule as CosmosBaseNodeV_1Beta_1, msgTypes as CosmosBaseNodeV_1Beta_1MsgTypes } from './cosmos.base.node.v1beta1'
|
|
23
|
-
import { IgntModule as CosmosBaseTendermintV_1Beta_1, msgTypes as CosmosBaseTendermintV_1Beta_1MsgTypes } from './cosmos.base.tendermint.v1beta1'
|
|
24
|
-
import { IgntModule as CosmosConsensusV_1, msgTypes as CosmosConsensusV_1MsgTypes } from './cosmos.consensus.v1'
|
|
25
|
-
import { IgntModule as CosmosCrisisV_1Beta_1, msgTypes as CosmosCrisisV_1Beta_1MsgTypes } from './cosmos.crisis.v1beta1'
|
|
26
|
-
import { IgntModule as CosmosDistributionV_1Beta_1, msgTypes as CosmosDistributionV_1Beta_1MsgTypes } from './cosmos.distribution.v1beta1'
|
|
27
|
-
import { IgntModule as CosmosGovV_1, msgTypes as CosmosGovV_1MsgTypes } from './cosmos.gov.v1'
|
|
28
|
-
import { IgntModule as CosmosGovV_1Beta_1, msgTypes as CosmosGovV_1Beta_1MsgTypes } from './cosmos.gov.v1beta1'
|
|
29
|
-
import { IgntModule as CosmosGroupV_1, msgTypes as CosmosGroupV_1MsgTypes } from './cosmos.group.v1'
|
|
30
|
-
import { IgntModule as CosmosMintV_1Beta_1, msgTypes as CosmosMintV_1Beta_1MsgTypes } from './cosmos.mint.v1beta1'
|
|
31
|
-
import { IgntModule as CosmosParamsV_1Beta_1, msgTypes as CosmosParamsV_1Beta_1MsgTypes } from './cosmos.params.v1beta1'
|
|
32
|
-
import { IgntModule as CosmosSlashingV_1Beta_1, msgTypes as CosmosSlashingV_1Beta_1MsgTypes } from './cosmos.slashing.v1beta1'
|
|
33
|
-
import { IgntModule as CosmosStakingV_1Beta_1, msgTypes as CosmosStakingV_1Beta_1MsgTypes } from './cosmos.staking.v1beta1'
|
|
34
|
-
import { IgntModule as CosmosTxV_1Beta_1, msgTypes as CosmosTxV_1Beta_1MsgTypes } from './cosmos.tx.v1beta1'
|
|
35
|
-
import { IgntModule as CosmosVestingV_1Beta_1, msgTypes as CosmosVestingV_1Beta_1MsgTypes } from './cosmos.vesting.v1beta1'
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const Client = IgniteClient.plugin([
|
|
39
|
-
CardchainCardchain, CardchainFeatureflag, CosmosFeegrantV_1Beta_1, IbcApplicationsFeeV_1, IbcApplicationsInterchainAccountsControllerV_1, IbcApplicationsInterchainAccountsHostV_1, IbcApplicationsTransferV_1, IbcCoreChannelV_1, IbcCoreClientV_1, IbcCoreConnectionV_1, CosmosNftV_1Beta_1, CosmosCircuitV_1, CosmosEvidenceV_1Beta_1, CosmosUpgradeV_1Beta_1, CosmosAuthV_1Beta_1, CosmosAuthzV_1Beta_1, CosmosBankV_1Beta_1, CosmosBaseNodeV_1Beta_1, CosmosBaseTendermintV_1Beta_1, CosmosConsensusV_1, CosmosCrisisV_1Beta_1, CosmosDistributionV_1Beta_1, CosmosGovV_1, CosmosGovV_1Beta_1, CosmosGroupV_1, CosmosMintV_1Beta_1, CosmosParamsV_1Beta_1, CosmosSlashingV_1Beta_1, CosmosStakingV_1Beta_1, CosmosTxV_1Beta_1, CosmosVestingV_1Beta_1
|
|
40
|
-
]);
|
|
41
|
-
|
|
42
|
-
const registry = new Registry([
|
|
43
|
-
...CardchainCardchainMsgTypes,
|
|
44
|
-
...CardchainFeatureflagMsgTypes,
|
|
45
|
-
...CosmosFeegrantV_1Beta_1MsgTypes,
|
|
46
|
-
...IbcApplicationsFeeV_1MsgTypes,
|
|
47
|
-
...IbcApplicationsInterchainAccountsControllerV_1MsgTypes,
|
|
48
|
-
...IbcApplicationsInterchainAccountsHostV_1MsgTypes,
|
|
49
|
-
...IbcApplicationsTransferV_1MsgTypes,
|
|
50
|
-
...IbcCoreChannelV_1MsgTypes,
|
|
51
|
-
...IbcCoreClientV_1MsgTypes,
|
|
52
|
-
...IbcCoreConnectionV_1MsgTypes,
|
|
53
|
-
...CosmosNftV_1Beta_1MsgTypes,
|
|
54
|
-
...CosmosCircuitV_1MsgTypes,
|
|
55
|
-
...CosmosEvidenceV_1Beta_1MsgTypes,
|
|
56
|
-
...CosmosUpgradeV_1Beta_1MsgTypes,
|
|
57
|
-
...CosmosAuthV_1Beta_1MsgTypes,
|
|
58
|
-
...CosmosAuthzV_1Beta_1MsgTypes,
|
|
59
|
-
...CosmosBankV_1Beta_1MsgTypes,
|
|
60
|
-
...CosmosBaseNodeV_1Beta_1MsgTypes,
|
|
61
|
-
...CosmosBaseTendermintV_1Beta_1MsgTypes,
|
|
62
|
-
...CosmosConsensusV_1MsgTypes,
|
|
63
|
-
...CosmosCrisisV_1Beta_1MsgTypes,
|
|
64
|
-
...CosmosDistributionV_1Beta_1MsgTypes,
|
|
65
|
-
...CosmosGovV_1MsgTypes,
|
|
66
|
-
...CosmosGovV_1Beta_1MsgTypes,
|
|
67
|
-
...CosmosGroupV_1MsgTypes,
|
|
68
|
-
...CosmosMintV_1Beta_1MsgTypes,
|
|
69
|
-
...CosmosParamsV_1Beta_1MsgTypes,
|
|
70
|
-
...CosmosSlashingV_1Beta_1MsgTypes,
|
|
71
|
-
...CosmosStakingV_1Beta_1MsgTypes,
|
|
72
|
-
...CosmosTxV_1Beta_1MsgTypes,
|
|
73
|
-
...CosmosVestingV_1Beta_1MsgTypes,
|
|
74
|
-
|
|
75
|
-
])
|
|
76
|
-
|
|
77
|
-
export {
|
|
78
|
-
Client,
|
|
79
|
-
registry,
|
|
80
|
-
MissingWalletError
|
|
81
|
-
}
|
package/modules.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IgniteClient } from "./client";
|
|
2
|
-
import { GeneratedType } from "@cosmjs/proto-signing";
|
|
3
|
-
|
|
4
|
-
export type IgntModuleInterface = { [key: string]: any }
|
|
5
|
-
export type IgntModule = (instance: IgniteClient) => { module: IgntModuleInterface, registry: [string, GeneratedType][] }
|
package/tsconfig.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"module": "ES2020",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"outDir": "./lib",
|
|
7
|
-
"declaration": true,
|
|
8
|
-
"allowSyntheticDefaultImports": true,
|
|
9
|
-
"esModuleInterop": false,
|
|
10
|
-
"strict": false,
|
|
11
|
-
"skipLibCheck": true
|
|
12
|
-
}
|
|
13
|
-
}
|
package/types/amino/amino.ts
DELETED
|
@@ -1,263 +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: capability/v1/capability.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
|
|
10
|
-
export const protobufPackage = "capability.v1";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Capability defines an implementation of an object capability. The index
|
|
14
|
-
* provided to a Capability must be globally unique.
|
|
15
|
-
*/
|
|
16
|
-
export interface Capability {
|
|
17
|
-
index: number;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Owner defines a single capability owner. An owner is defined by the name of
|
|
22
|
-
* capability and the module name.
|
|
23
|
-
*/
|
|
24
|
-
export interface Owner {
|
|
25
|
-
module: string;
|
|
26
|
-
name: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* CapabilityOwners defines a set of owners of a single Capability. The set of
|
|
31
|
-
* owners must be unique.
|
|
32
|
-
*/
|
|
33
|
-
export interface CapabilityOwners {
|
|
34
|
-
owners: Owner[];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function createBaseCapability(): Capability {
|
|
38
|
-
return { index: 0 };
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export const Capability: MessageFns<Capability> = {
|
|
42
|
-
encode(message: Capability, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
43
|
-
if (message.index !== 0) {
|
|
44
|
-
writer.uint32(8).uint64(message.index);
|
|
45
|
-
}
|
|
46
|
-
return writer;
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Capability {
|
|
50
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
51
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
52
|
-
const message = createBaseCapability();
|
|
53
|
-
while (reader.pos < end) {
|
|
54
|
-
const tag = reader.uint32();
|
|
55
|
-
switch (tag >>> 3) {
|
|
56
|
-
case 1: {
|
|
57
|
-
if (tag !== 8) {
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
message.index = longToNumber(reader.uint64());
|
|
62
|
-
continue;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
reader.skip(tag & 7);
|
|
69
|
-
}
|
|
70
|
-
return message;
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
fromJSON(object: any): Capability {
|
|
74
|
-
return { index: isSet(object.index) ? globalThis.Number(object.index) : 0 };
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
toJSON(message: Capability): unknown {
|
|
78
|
-
const obj: any = {};
|
|
79
|
-
if (message.index !== 0) {
|
|
80
|
-
obj.index = Math.round(message.index);
|
|
81
|
-
}
|
|
82
|
-
return obj;
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
create<I extends Exact<DeepPartial<Capability>, I>>(base?: I): Capability {
|
|
86
|
-
return Capability.fromPartial(base ?? ({} as any));
|
|
87
|
-
},
|
|
88
|
-
fromPartial<I extends Exact<DeepPartial<Capability>, I>>(object: I): Capability {
|
|
89
|
-
const message = createBaseCapability();
|
|
90
|
-
message.index = object.index ?? 0;
|
|
91
|
-
return message;
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
function createBaseOwner(): Owner {
|
|
96
|
-
return { module: "", name: "" };
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export const Owner: MessageFns<Owner> = {
|
|
100
|
-
encode(message: Owner, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
101
|
-
if (message.module !== "") {
|
|
102
|
-
writer.uint32(10).string(message.module);
|
|
103
|
-
}
|
|
104
|
-
if (message.name !== "") {
|
|
105
|
-
writer.uint32(18).string(message.name);
|
|
106
|
-
}
|
|
107
|
-
return writer;
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Owner {
|
|
111
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
112
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
113
|
-
const message = createBaseOwner();
|
|
114
|
-
while (reader.pos < end) {
|
|
115
|
-
const tag = reader.uint32();
|
|
116
|
-
switch (tag >>> 3) {
|
|
117
|
-
case 1: {
|
|
118
|
-
if (tag !== 10) {
|
|
119
|
-
break;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
message.module = reader.string();
|
|
123
|
-
continue;
|
|
124
|
-
}
|
|
125
|
-
case 2: {
|
|
126
|
-
if (tag !== 18) {
|
|
127
|
-
break;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
message.name = reader.string();
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
reader.skip(tag & 7);
|
|
138
|
-
}
|
|
139
|
-
return message;
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
fromJSON(object: any): Owner {
|
|
143
|
-
return {
|
|
144
|
-
module: isSet(object.module) ? globalThis.String(object.module) : "",
|
|
145
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
146
|
-
};
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
toJSON(message: Owner): unknown {
|
|
150
|
-
const obj: any = {};
|
|
151
|
-
if (message.module !== "") {
|
|
152
|
-
obj.module = message.module;
|
|
153
|
-
}
|
|
154
|
-
if (message.name !== "") {
|
|
155
|
-
obj.name = message.name;
|
|
156
|
-
}
|
|
157
|
-
return obj;
|
|
158
|
-
},
|
|
159
|
-
|
|
160
|
-
create<I extends Exact<DeepPartial<Owner>, I>>(base?: I): Owner {
|
|
161
|
-
return Owner.fromPartial(base ?? ({} as any));
|
|
162
|
-
},
|
|
163
|
-
fromPartial<I extends Exact<DeepPartial<Owner>, I>>(object: I): Owner {
|
|
164
|
-
const message = createBaseOwner();
|
|
165
|
-
message.module = object.module ?? "";
|
|
166
|
-
message.name = object.name ?? "";
|
|
167
|
-
return message;
|
|
168
|
-
},
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
function createBaseCapabilityOwners(): CapabilityOwners {
|
|
172
|
-
return { owners: [] };
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export const CapabilityOwners: MessageFns<CapabilityOwners> = {
|
|
176
|
-
encode(message: CapabilityOwners, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
177
|
-
for (const v of message.owners) {
|
|
178
|
-
Owner.encode(v!, writer.uint32(10).fork()).join();
|
|
179
|
-
}
|
|
180
|
-
return writer;
|
|
181
|
-
},
|
|
182
|
-
|
|
183
|
-
decode(input: BinaryReader | Uint8Array, length?: number): CapabilityOwners {
|
|
184
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
185
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
186
|
-
const message = createBaseCapabilityOwners();
|
|
187
|
-
while (reader.pos < end) {
|
|
188
|
-
const tag = reader.uint32();
|
|
189
|
-
switch (tag >>> 3) {
|
|
190
|
-
case 1: {
|
|
191
|
-
if (tag !== 10) {
|
|
192
|
-
break;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
message.owners.push(Owner.decode(reader, reader.uint32()));
|
|
196
|
-
continue;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
200
|
-
break;
|
|
201
|
-
}
|
|
202
|
-
reader.skip(tag & 7);
|
|
203
|
-
}
|
|
204
|
-
return message;
|
|
205
|
-
},
|
|
206
|
-
|
|
207
|
-
fromJSON(object: any): CapabilityOwners {
|
|
208
|
-
return { owners: globalThis.Array.isArray(object?.owners) ? object.owners.map((e: any) => Owner.fromJSON(e)) : [] };
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
toJSON(message: CapabilityOwners): unknown {
|
|
212
|
-
const obj: any = {};
|
|
213
|
-
if (message.owners?.length) {
|
|
214
|
-
obj.owners = message.owners.map((e) => Owner.toJSON(e));
|
|
215
|
-
}
|
|
216
|
-
return obj;
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
create<I extends Exact<DeepPartial<CapabilityOwners>, I>>(base?: I): CapabilityOwners {
|
|
220
|
-
return CapabilityOwners.fromPartial(base ?? ({} as any));
|
|
221
|
-
},
|
|
222
|
-
fromPartial<I extends Exact<DeepPartial<CapabilityOwners>, I>>(object: I): CapabilityOwners {
|
|
223
|
-
const message = createBaseCapabilityOwners();
|
|
224
|
-
message.owners = object.owners?.map((e) => Owner.fromPartial(e)) || [];
|
|
225
|
-
return message;
|
|
226
|
-
},
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
230
|
-
|
|
231
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
232
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
233
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
234
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
235
|
-
: Partial<T>;
|
|
236
|
-
|
|
237
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
238
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
239
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
240
|
-
|
|
241
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
242
|
-
const num = globalThis.Number(int64.toString());
|
|
243
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
244
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
245
|
-
}
|
|
246
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
247
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
248
|
-
}
|
|
249
|
-
return num;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
function isSet(value: any): boolean {
|
|
253
|
-
return value !== null && value !== undefined;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export interface MessageFns<T> {
|
|
257
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
258
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
259
|
-
fromJSON(object: any): T;
|
|
260
|
-
toJSON(message: T): unknown;
|
|
261
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
262
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
263
|
-
}
|
|
@@ -1,220 +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: capability/v1/genesis.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { CapabilityOwners } from "./capability";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "capability.v1";
|
|
12
|
-
|
|
13
|
-
/** GenesisOwners defines the capability owners with their corresponding index. */
|
|
14
|
-
export interface GenesisOwners {
|
|
15
|
-
/** index is the index of the capability owner. */
|
|
16
|
-
index: number;
|
|
17
|
-
/** index_owners are the owners at the given index. */
|
|
18
|
-
indexOwners: CapabilityOwners | undefined;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/** GenesisState defines the capability module's genesis state. */
|
|
22
|
-
export interface GenesisState {
|
|
23
|
-
/** index is the capability global index. */
|
|
24
|
-
index: number;
|
|
25
|
-
/**
|
|
26
|
-
* owners represents a map from index to owners of the capability index
|
|
27
|
-
* index key is string to allow amino marshalling.
|
|
28
|
-
*/
|
|
29
|
-
owners: GenesisOwners[];
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function createBaseGenesisOwners(): GenesisOwners {
|
|
33
|
-
return { index: 0, indexOwners: undefined };
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export const GenesisOwners: MessageFns<GenesisOwners> = {
|
|
37
|
-
encode(message: GenesisOwners, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
38
|
-
if (message.index !== 0) {
|
|
39
|
-
writer.uint32(8).uint64(message.index);
|
|
40
|
-
}
|
|
41
|
-
if (message.indexOwners !== undefined) {
|
|
42
|
-
CapabilityOwners.encode(message.indexOwners, writer.uint32(18).fork()).join();
|
|
43
|
-
}
|
|
44
|
-
return writer;
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GenesisOwners {
|
|
48
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
50
|
-
const message = createBaseGenesisOwners();
|
|
51
|
-
while (reader.pos < end) {
|
|
52
|
-
const tag = reader.uint32();
|
|
53
|
-
switch (tag >>> 3) {
|
|
54
|
-
case 1: {
|
|
55
|
-
if (tag !== 8) {
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
message.index = longToNumber(reader.uint64());
|
|
60
|
-
continue;
|
|
61
|
-
}
|
|
62
|
-
case 2: {
|
|
63
|
-
if (tag !== 18) {
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
message.indexOwners = CapabilityOwners.decode(reader, reader.uint32());
|
|
68
|
-
continue;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
74
|
-
reader.skip(tag & 7);
|
|
75
|
-
}
|
|
76
|
-
return message;
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
fromJSON(object: any): GenesisOwners {
|
|
80
|
-
return {
|
|
81
|
-
index: isSet(object.index) ? globalThis.Number(object.index) : 0,
|
|
82
|
-
indexOwners: isSet(object.indexOwners) ? CapabilityOwners.fromJSON(object.indexOwners) : undefined,
|
|
83
|
-
};
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
toJSON(message: GenesisOwners): unknown {
|
|
87
|
-
const obj: any = {};
|
|
88
|
-
if (message.index !== 0) {
|
|
89
|
-
obj.index = Math.round(message.index);
|
|
90
|
-
}
|
|
91
|
-
if (message.indexOwners !== undefined) {
|
|
92
|
-
obj.indexOwners = CapabilityOwners.toJSON(message.indexOwners);
|
|
93
|
-
}
|
|
94
|
-
return obj;
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
create<I extends Exact<DeepPartial<GenesisOwners>, I>>(base?: I): GenesisOwners {
|
|
98
|
-
return GenesisOwners.fromPartial(base ?? ({} as any));
|
|
99
|
-
},
|
|
100
|
-
fromPartial<I extends Exact<DeepPartial<GenesisOwners>, I>>(object: I): GenesisOwners {
|
|
101
|
-
const message = createBaseGenesisOwners();
|
|
102
|
-
message.index = object.index ?? 0;
|
|
103
|
-
message.indexOwners = (object.indexOwners !== undefined && object.indexOwners !== null)
|
|
104
|
-
? CapabilityOwners.fromPartial(object.indexOwners)
|
|
105
|
-
: undefined;
|
|
106
|
-
return message;
|
|
107
|
-
},
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
function createBaseGenesisState(): GenesisState {
|
|
111
|
-
return { index: 0, owners: [] };
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export const GenesisState: MessageFns<GenesisState> = {
|
|
115
|
-
encode(message: GenesisState, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
116
|
-
if (message.index !== 0) {
|
|
117
|
-
writer.uint32(8).uint64(message.index);
|
|
118
|
-
}
|
|
119
|
-
for (const v of message.owners) {
|
|
120
|
-
GenesisOwners.encode(v!, writer.uint32(18).fork()).join();
|
|
121
|
-
}
|
|
122
|
-
return writer;
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
|
|
126
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
127
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
128
|
-
const message = createBaseGenesisState();
|
|
129
|
-
while (reader.pos < end) {
|
|
130
|
-
const tag = reader.uint32();
|
|
131
|
-
switch (tag >>> 3) {
|
|
132
|
-
case 1: {
|
|
133
|
-
if (tag !== 8) {
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
message.index = longToNumber(reader.uint64());
|
|
138
|
-
continue;
|
|
139
|
-
}
|
|
140
|
-
case 2: {
|
|
141
|
-
if (tag !== 18) {
|
|
142
|
-
break;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
message.owners.push(GenesisOwners.decode(reader, reader.uint32()));
|
|
146
|
-
continue;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
150
|
-
break;
|
|
151
|
-
}
|
|
152
|
-
reader.skip(tag & 7);
|
|
153
|
-
}
|
|
154
|
-
return message;
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
fromJSON(object: any): GenesisState {
|
|
158
|
-
return {
|
|
159
|
-
index: isSet(object.index) ? globalThis.Number(object.index) : 0,
|
|
160
|
-
owners: globalThis.Array.isArray(object?.owners) ? object.owners.map((e: any) => GenesisOwners.fromJSON(e)) : [],
|
|
161
|
-
};
|
|
162
|
-
},
|
|
163
|
-
|
|
164
|
-
toJSON(message: GenesisState): unknown {
|
|
165
|
-
const obj: any = {};
|
|
166
|
-
if (message.index !== 0) {
|
|
167
|
-
obj.index = Math.round(message.index);
|
|
168
|
-
}
|
|
169
|
-
if (message.owners?.length) {
|
|
170
|
-
obj.owners = message.owners.map((e) => GenesisOwners.toJSON(e));
|
|
171
|
-
}
|
|
172
|
-
return obj;
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
create<I extends Exact<DeepPartial<GenesisState>, I>>(base?: I): GenesisState {
|
|
176
|
-
return GenesisState.fromPartial(base ?? ({} as any));
|
|
177
|
-
},
|
|
178
|
-
fromPartial<I extends Exact<DeepPartial<GenesisState>, I>>(object: I): GenesisState {
|
|
179
|
-
const message = createBaseGenesisState();
|
|
180
|
-
message.index = object.index ?? 0;
|
|
181
|
-
message.owners = object.owners?.map((e) => GenesisOwners.fromPartial(e)) || [];
|
|
182
|
-
return message;
|
|
183
|
-
},
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
187
|
-
|
|
188
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
189
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
190
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
191
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
192
|
-
: Partial<T>;
|
|
193
|
-
|
|
194
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
195
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
196
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
197
|
-
|
|
198
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
199
|
-
const num = globalThis.Number(int64.toString());
|
|
200
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
201
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
202
|
-
}
|
|
203
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
204
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
205
|
-
}
|
|
206
|
-
return num;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
function isSet(value: any): boolean {
|
|
210
|
-
return value !== null && value !== undefined;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export interface MessageFns<T> {
|
|
214
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
215
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
216
|
-
fromJSON(object: any): T;
|
|
217
|
-
toJSON(message: T): unknown;
|
|
218
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
219
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
220
|
-
}
|