decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +78 -78
- package/lib/index.js +25 -25
- package/package.json +12 -1
- package/cardchain.cardchain/index.ts +0 -6
- package/cardchain.cardchain/module.ts +0 -1869
- package/cardchain.cardchain/registry.ts +0 -111
- package/cardchain.cardchain/rest.ts +0 -655
- package/cardchain.cardchain/types.ts +0 -63
- package/cardchain.featureflag/index.ts +0 -6
- package/cardchain.featureflag/module.ts +0 -165
- package/cardchain.featureflag/registry.ts +0 -11
- package/cardchain.featureflag/rest.ts +0 -256
- package/cardchain.featureflag/types.ts +0 -9
- package/client.ts +0 -164
- package/cosmos.auth.v1beta1/index.ts +0 -6
- package/cosmos.auth.v1beta1/module.ts +0 -136
- package/cosmos.auth.v1beta1/registry.ts +0 -9
- package/cosmos.auth.v1beta1/rest.ts +0 -403
- package/cosmos.auth.v1beta1/types.ts +0 -13
- package/cosmos.authz.v1beta1/index.ts +0 -6
- package/cosmos.authz.v1beta1/module.ts +0 -206
- package/cosmos.authz.v1beta1/registry.ts +0 -13
- package/cosmos.authz.v1beta1/rest.ts +0 -256
- package/cosmos.authz.v1beta1/types.ts +0 -17
- package/cosmos.bank.v1beta1/index.ts +0 -6
- package/cosmos.bank.v1beta1/module.ts +0 -247
- package/cosmos.bank.v1beta1/registry.ts +0 -15
- package/cosmos.bank.v1beta1/rest.ts +0 -466
- package/cosmos.bank.v1beta1/types.ts +0 -25
- package/cosmos.base.node.v1beta1/index.ts +0 -6
- package/cosmos.base.node.v1beta1/module.ts +0 -95
- package/cosmos.base.node.v1beta1/registry.ts +0 -7
- package/cosmos.base.node.v1beta1/rest.ts +0 -235
- package/cosmos.base.node.v1beta1/types.ts +0 -5
- package/cosmos.base.tendermint.v1beta1/index.ts +0 -6
- package/cosmos.base.tendermint.v1beta1/module.ts +0 -109
- package/cosmos.base.tendermint.v1beta1/registry.ts +0 -7
- package/cosmos.base.tendermint.v1beta1/rest.ts +0 -340
- package/cosmos.base.tendermint.v1beta1/types.ts +0 -19
- package/cosmos.circuit.v1/index.ts +0 -6
- package/cosmos.circuit.v1/module.ts +0 -198
- package/cosmos.circuit.v1/registry.ts +0 -13
- package/cosmos.circuit.v1/rest.ts +0 -256
- package/cosmos.circuit.v1/types.ts +0 -9
- package/cosmos.consensus.v1/index.ts +0 -6
- package/cosmos.consensus.v1/module.ts +0 -128
- package/cosmos.consensus.v1/registry.ts +0 -9
- package/cosmos.consensus.v1/rest.ts +0 -214
- package/cosmos.consensus.v1/types.ts +0 -5
- package/cosmos.crisis.v1beta1/index.ts +0 -6
- package/cosmos.crisis.v1beta1/module.ts +0 -161
- package/cosmos.crisis.v1beta1/registry.ts +0 -11
- package/cosmos.crisis.v1beta1/rest.ts +0 -193
- package/cosmos.crisis.v1beta1/types.ts +0 -5
- package/cosmos.distribution.v1beta1/index.ts +0 -6
- package/cosmos.distribution.v1beta1/module.ts +0 -364
- package/cosmos.distribution.v1beta1/registry.ts +0 -21
- package/cosmos.distribution.v1beta1/rest.ts +0 -403
- package/cosmos.distribution.v1beta1/types.ts +0 -43
- package/cosmos.evidence.v1beta1/index.ts +0 -6
- package/cosmos.evidence.v1beta1/module.ts +0 -130
- package/cosmos.evidence.v1beta1/registry.ts +0 -9
- package/cosmos.evidence.v1beta1/rest.ts +0 -235
- package/cosmos.evidence.v1beta1/types.ts +0 -7
- package/cosmos.feegrant.v1beta1/index.ts +0 -6
- package/cosmos.feegrant.v1beta1/module.ts +0 -202
- package/cosmos.feegrant.v1beta1/registry.ts +0 -13
- package/cosmos.feegrant.v1beta1/rest.ts +0 -256
- package/cosmos.feegrant.v1beta1/types.ts +0 -13
- package/cosmos.gov.v1/index.ts +0 -6
- package/cosmos.gov.v1/module.ts +0 -344
- package/cosmos.gov.v1/registry.ts +0 -21
- package/cosmos.gov.v1/rest.ts +0 -382
- package/cosmos.gov.v1/types.ts +0 -23
- package/cosmos.gov.v1beta1/index.ts +0 -6
- package/cosmos.gov.v1beta1/module.ts +0 -245
- package/cosmos.gov.v1beta1/registry.ts +0 -15
- package/cosmos.gov.v1beta1/rest.ts +0 -361
- package/cosmos.gov.v1beta1/types.ts +0 -23
- package/cosmos.group.v1/index.ts +0 -6
- package/cosmos.group.v1/module.ts +0 -599
- package/cosmos.group.v1/registry.ts +0 -35
- package/cosmos.group.v1/rest.ts +0 -487
- package/cosmos.group.v1/types.ts +0 -47
- package/cosmos.mint.v1beta1/index.ts +0 -6
- package/cosmos.mint.v1beta1/module.ts +0 -132
- package/cosmos.mint.v1beta1/registry.ts +0 -9
- package/cosmos.mint.v1beta1/rest.ts +0 -256
- package/cosmos.mint.v1beta1/types.ts +0 -9
- package/cosmos.nft.v1beta1/index.ts +0 -6
- package/cosmos.nft.v1beta1/module.ts +0 -140
- package/cosmos.nft.v1beta1/registry.ts +0 -9
- package/cosmos.nft.v1beta1/rest.ts +0 -340
- package/cosmos.nft.v1beta1/types.ts +0 -17
- package/cosmos.params.v1beta1/index.ts +0 -6
- package/cosmos.params.v1beta1/module.ts +0 -101
- package/cosmos.params.v1beta1/registry.ts +0 -7
- package/cosmos.params.v1beta1/rest.ts +0 -235
- package/cosmos.params.v1beta1/types.ts +0 -11
- package/cosmos.slashing.v1beta1/index.ts +0 -6
- package/cosmos.slashing.v1beta1/module.ts +0 -171
- package/cosmos.slashing.v1beta1/registry.ts +0 -11
- package/cosmos.slashing.v1beta1/rest.ts +0 -256
- package/cosmos.slashing.v1beta1/types.ts +0 -15
- package/cosmos.staking.v1beta1/index.ts +0 -6
- package/cosmos.staking.v1beta1/module.ts +0 -374
- package/cosmos.staking.v1beta1/registry.ts +0 -21
- package/cosmos.staking.v1beta1/rest.ts +0 -487
- package/cosmos.staking.v1beta1/types.ts +0 -53
- package/cosmos.tx.v1beta1/index.ts +0 -6
- package/cosmos.tx.v1beta1/module.ts +0 -121
- package/cosmos.tx.v1beta1/registry.ts +0 -7
- package/cosmos.tx.v1beta1/rest.ts +0 -382
- package/cosmos.tx.v1beta1/types.ts +0 -31
- package/cosmos.upgrade.v1beta1/index.ts +0 -6
- package/cosmos.upgrade.v1beta1/module.ts +0 -169
- package/cosmos.upgrade.v1beta1/registry.ts +0 -11
- package/cosmos.upgrade.v1beta1/rest.ts +0 -298
- package/cosmos.upgrade.v1beta1/types.ts +0 -13
- package/cosmos.vesting.v1beta1/index.ts +0 -6
- package/cosmos.vesting.v1beta1/module.ts +0 -206
- package/cosmos.vesting.v1beta1/registry.ts +0 -13
- package/cosmos.vesting.v1beta1/rest.ts +0 -193
- package/cosmos.vesting.v1beta1/types.ts +0 -17
- package/env.ts +0 -7
- package/helpers.ts +0 -32
- package/ibc.applications.fee.v1/index.ts +0 -6
- package/ibc.applications.fee.v1/module.ts +0 -247
- package/ibc.applications.fee.v1/registry.ts +0 -15
- package/ibc.applications.fee.v1/rest.ts +0 -403
- package/ibc.applications.fee.v1/types.ts +0 -25
- package/ibc.applications.interchain_accounts.controller.v1/index.ts +0 -6
- package/ibc.applications.interchain_accounts.controller.v1/module.ts +0 -196
- package/ibc.applications.interchain_accounts.controller.v1/registry.ts +0 -13
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -235
- package/ibc.applications.interchain_accounts.controller.v1/types.ts +0 -7
- package/ibc.applications.interchain_accounts.host.v1/index.ts +0 -6
- package/ibc.applications.interchain_accounts.host.v1/module.ts +0 -165
- package/ibc.applications.interchain_accounts.host.v1/registry.ts +0 -11
- package/ibc.applications.interchain_accounts.host.v1/rest.ts +0 -214
- package/ibc.applications.interchain_accounts.host.v1/types.ts +0 -9
- package/ibc.applications.transfer.v1/index.ts +0 -6
- package/ibc.applications.transfer.v1/module.ts +0 -169
- package/ibc.applications.transfer.v1/registry.ts +0 -11
- package/ibc.applications.transfer.v1/rest.ts +0 -319
- package/ibc.applications.transfer.v1/types.ts +0 -13
- package/ibc.core.channel.v1/index.ts +0 -6
- package/ibc.core.channel.v1/module.ts +0 -748
- package/ibc.core.channel.v1/registry.ts +0 -45
- package/ibc.core.channel.v1/rest.ts +0 -550
- package/ibc.core.channel.v1/types.ts +0 -31
- package/ibc.core.client.v1/index.ts +0 -6
- package/ibc.core.client.v1/module.ts +0 -344
- package/ibc.core.client.v1/registry.ts +0 -21
- package/ibc.core.client.v1/rest.ts +0 -403
- package/ibc.core.client.v1/types.ts +0 -23
- package/ibc.core.connection.v1/index.ts +0 -6
- package/ibc.core.connection.v1/module.ts +0 -274
- package/ibc.core.connection.v1/registry.ts +0 -17
- package/ibc.core.connection.v1/rest.ts +0 -319
- package/ibc.core.connection.v1/types.ts +0 -19
- package/index.ts +0 -81
- package/modules.ts +0 -5
- package/tsconfig.json +0 -13
- package/types/amino/amino.ts +0 -9
- package/types/capability/v1/capability.ts +0 -263
- package/types/capability/v1/genesis.ts +0 -220
- package/types/cardchain/cardchain/card.ts +0 -712
- package/types/cardchain/cardchain/card_content.ts +0 -116
- package/types/cardchain/cardchain/card_with_image.ts +0 -134
- package/types/cardchain/cardchain/council.ts +0 -502
- package/types/cardchain/cardchain/encounter.ts +0 -307
- package/types/cardchain/cardchain/encounter_with_image.ts +0 -119
- package/types/cardchain/cardchain/genesis.ts +0 -403
- package/types/cardchain/cardchain/image.ts +0 -122
- package/types/cardchain/cardchain/match.ts +0 -453
- package/types/cardchain/cardchain/module/module.ts +0 -99
- package/types/cardchain/cardchain/params.ts +0 -544
- package/types/cardchain/cardchain/query.ts +0 -3786
- package/types/cardchain/cardchain/running_average.ts +0 -116
- package/types/cardchain/cardchain/sell_offer.ts +0 -224
- package/types/cardchain/cardchain/server.ts +0 -144
- package/types/cardchain/cardchain/set.ts +0 -537
- package/types/cardchain/cardchain/set_with_artwork.ts +0 -142
- package/types/cardchain/cardchain/tx.ts +0 -8053
- package/types/cardchain/cardchain/user.ts +0 -955
- package/types/cardchain/cardchain/voting.ts +0 -328
- package/types/cardchain/cardchain/voting_results.ts +0 -227
- package/types/cardchain/cardchain/zealy.ts +0 -116
- package/types/cardchain/featureflag/flag.ts +0 -133
- package/types/cardchain/featureflag/genesis.ts +0 -226
- package/types/cardchain/featureflag/module/module.ts +0 -99
- package/types/cardchain/featureflag/params.ts +0 -78
- package/types/cardchain/featureflag/query.ts +0 -445
- package/types/cardchain/featureflag/tx.ts +0 -373
- package/types/cosmos/app/runtime/v1alpha1/module.ts +0 -389
- package/types/cosmos/app/v1alpha1/config.ts +0 -346
- package/types/cosmos/app/v1alpha1/module.ts +0 -348
- package/types/cosmos/app/v1alpha1/query.ts +0 -175
- package/types/cosmos/auth/module/v1/module.ts +0 -229
- package/types/cosmos/auth/v1beta1/auth.ts +0 -531
- package/types/cosmos/auth/v1beta1/genesis.ts +0 -125
- package/types/cosmos/auth/v1beta1/query.ts +0 -1564
- package/types/cosmos/auth/v1beta1/tx.ts +0 -213
- package/types/cosmos/authz/module/v1/module.ts +0 -78
- package/types/cosmos/authz/v1beta1/authz.ts +0 -411
- package/types/cosmos/authz/v1beta1/event.ts +0 -241
- package/types/cosmos/authz/v1beta1/genesis.ts +0 -101
- package/types/cosmos/authz/v1beta1/query.ts +0 -643
- package/types/cosmos/authz/v1beta1/tx.ts +0 -574
- package/types/cosmos/autocli/v1/options.ts +0 -1049
- package/types/cosmos/autocli/v1/query.ts +0 -291
- package/types/cosmos/bank/module/v1/module.ts +0 -150
- package/types/cosmos/bank/v1beta1/authz.ts +0 -129
- package/types/cosmos/bank/v1beta1/bank.ts +0 -775
- package/types/cosmos/bank/v1beta1/genesis.ts +0 -277
- package/types/cosmos/bank/v1beta1/query.ts +0 -2424
- package/types/cosmos/bank/v1beta1/tx.ts +0 -697
- package/types/cosmos/base/abci/v1beta1/abci.ts +0 -1469
- package/types/cosmos/base/node/v1beta1/query.ts +0 -485
- package/types/cosmos/base/query/v1beta1/pagination.ts +0 -336
- package/types/cosmos/base/reflection/v1beta1/reflection.ts +0 -328
- package/types/cosmos/base/reflection/v2alpha1/reflection.ts +0 -2092
- package/types/cosmos/base/tendermint/v1beta1/query.ts +0 -2025
- package/types/cosmos/base/tendermint/v1beta1/types.ts +0 -548
- package/types/cosmos/base/v1beta1/coin.ts +0 -209
- package/types/cosmos/circuit/module/v1/module.ts +0 -99
- package/types/cosmos/circuit/v1/query.ts +0 -476
- package/types/cosmos/circuit/v1/tx.ts +0 -576
- package/types/cosmos/circuit/v1/types.ts +0 -362
- package/types/cosmos/consensus/module/v1/module.ts +0 -99
- package/types/cosmos/consensus/v1/query.ts +0 -181
- package/types/cosmos/consensus/v1/tx.ts +0 -271
- package/types/cosmos/crisis/module/v1/module.ts +0 -119
- package/types/cosmos/crisis/v1beta1/genesis.ts +0 -105
- package/types/cosmos/crisis/v1beta1/tx.ts +0 -367
- package/types/cosmos/crypto/ed25519/keys.ts +0 -195
- package/types/cosmos/crypto/hd/v1/hd.ts +0 -178
- package/types/cosmos/crypto/keyring/v1/record.ts +0 -440
- package/types/cosmos/crypto/multisig/keys.ts +0 -124
- package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +0 -218
- package/types/cosmos/crypto/secp256k1/keys.ts +0 -192
- package/types/cosmos/crypto/secp256r1/keys.ts +0 -193
- package/types/cosmos/distribution/module/v1/module.ts +0 -118
- package/types/cosmos/distribution/v1beta1/distribution.ts +0 -1177
- package/types/cosmos/distribution/v1beta1/genesis.ts +0 -1028
- package/types/cosmos/distribution/v1beta1/query.ts +0 -1700
- package/types/cosmos/distribution/v1beta1/tx.ts +0 -1178
- package/types/cosmos/evidence/module/v1/module.ts +0 -78
- package/types/cosmos/evidence/v1beta1/evidence.ts +0 -194
- package/types/cosmos/evidence/v1beta1/genesis.ts +0 -98
- package/types/cosmos/evidence/v1beta1/query.ts +0 -414
- package/types/cosmos/evidence/v1beta1/tx.ts +0 -243
- package/types/cosmos/feegrant/module/v1/module.ts +0 -78
- package/types/cosmos/feegrant/v1beta1/feegrant.ts +0 -513
- package/types/cosmos/feegrant/v1beta1/genesis.ts +0 -101
- package/types/cosmos/feegrant/v1beta1/query.ts +0 -597
- package/types/cosmos/feegrant/v1beta1/tx.ts +0 -496
- package/types/cosmos/genutil/module/v1/module.ts +0 -78
- package/types/cosmos/genutil/v1beta1/genesis.ts +0 -122
- package/types/cosmos/gov/module/v1/module.ts +0 -133
- package/types/cosmos/gov/v1/genesis.ts +0 -313
- package/types/cosmos/gov/v1/gov.ts +0 -1712
- package/types/cosmos/gov/v1/query.ts +0 -1605
- package/types/cosmos/gov/v1/tx.ts +0 -1387
- package/types/cosmos/gov/v1beta1/genesis.ts +0 -241
- package/types/cosmos/gov/v1beta1/gov.ts +0 -1273
- package/types/cosmos/gov/v1beta1/query.ts +0 -1441
- package/types/cosmos/gov/v1beta1/tx.ts +0 -738
- package/types/cosmos/group/module/v1/module.ts +0 -141
- package/types/cosmos/group/v1/events.ts +0 -795
- package/types/cosmos/group/v1/genesis.ts +0 -265
- package/types/cosmos/group/v1/query.ts +0 -2441
- package/types/cosmos/group/v1/tx.ts +0 -2631
- package/types/cosmos/group/v1/types.ts +0 -1850
- package/types/cosmos/ics23/v1/proofs.ts +0 -1731
- package/types/cosmos/mint/module/v1/module.ts +0 -118
- package/types/cosmos/mint/v1beta1/genesis.ts +0 -126
- package/types/cosmos/mint/v1beta1/mint.ts +0 -293
- package/types/cosmos/mint/v1beta1/query.ts +0 -453
- package/types/cosmos/mint/v1beta1/tx.ts +0 -213
- package/types/cosmos/msg/textual/v1/textual.ts +0 -9
- package/types/cosmos/msg/v1/msg.ts +0 -9
- package/types/cosmos/nft/module/v1/module.ts +0 -78
- package/types/cosmos/nft/v1beta1/event.ts +0 -359
- package/types/cosmos/nft/v1beta1/genesis.ts +0 -204
- package/types/cosmos/nft/v1beta1/nft.ts +0 -348
- package/types/cosmos/nft/v1beta1/query.ts +0 -1173
- package/types/cosmos/nft/v1beta1/tx.ts +0 -228
- package/types/cosmos/orm/module/v1alpha1/module.ts +0 -82
- package/types/cosmos/orm/query/v1alpha1/query.ts +0 -933
- package/types/cosmos/orm/v1/orm.ts +0 -453
- package/types/cosmos/orm/v1alpha1/schema.ts +0 -321
- package/types/cosmos/params/module/v1/module.ts +0 -78
- package/types/cosmos/params/v1beta1/params.ts +0 -236
- package/types/cosmos/params/v1beta1/query.ts +0 -439
- package/types/cosmos/query/v1/query.ts +0 -9
- package/types/cosmos/reflection/v1/reflection.ts +0 -179
- package/types/cosmos/slashing/module/v1/module.ts +0 -99
- package/types/cosmos/slashing/v1beta1/genesis.ts +0 -424
- package/types/cosmos/slashing/v1beta1/query.ts +0 -487
- package/types/cosmos/slashing/v1beta1/slashing.ts +0 -422
- package/types/cosmos/slashing/v1beta1/tx.ts +0 -336
- package/types/cosmos/staking/module/v1/module.ts +0 -161
- package/types/cosmos/staking/v1beta1/authz.ts +0 -306
- package/types/cosmos/staking/v1beta1/genesis.ts +0 -377
- package/types/cosmos/staking/v1beta1/query.ts +0 -2540
- package/types/cosmos/staking/v1beta1/staking.ts +0 -2576
- package/types/cosmos/staking/v1beta1/tx.ts +0 -1433
- package/types/cosmos/store/internal/kv/v1beta1/kv.ts +0 -205
- package/types/cosmos/store/snapshots/v1/snapshot.ts +0 -746
- package/types/cosmos/store/streaming/abci/grpc.ts +0 -367
- package/types/cosmos/store/v1beta1/commit_info.ts +0 -370
- package/types/cosmos/store/v1beta1/listening.ts +0 -301
- package/types/cosmos/tx/config/v1/config.ts +0 -125
- package/types/cosmos/tx/signing/v1beta1/signing.ts +0 -630
- package/types/cosmos/tx/v1beta1/service.ts +0 -1889
- package/types/cosmos/tx/v1beta1/tx.ts +0 -1657
- package/types/cosmos/upgrade/module/v1/module.ts +0 -99
- package/types/cosmos/upgrade/v1beta1/query.ts +0 -819
- package/types/cosmos/upgrade/v1beta1/tx.ts +0 -340
- package/types/cosmos/upgrade/v1beta1/upgrade.ts +0 -525
- package/types/cosmos/vesting/module/v1/module.ts +0 -78
- package/types/cosmos/vesting/v1beta1/tx.ts +0 -640
- package/types/cosmos/vesting/v1beta1/vesting.ts +0 -624
- package/types/cosmos_proto/cosmos.ts +0 -307
- package/types/gogoproto/gogo.ts +0 -9
- package/types/google/api/annotations.ts +0 -9
- package/types/google/api/http.ts +0 -770
- package/types/google/protobuf/any.ts +0 -259
- package/types/google/protobuf/descriptor.ts +0 -6642
- package/types/google/protobuf/duration.ts +0 -200
- package/types/google/protobuf/timestamp.ts +0 -229
- package/types/ibc/applications/fee/v1/ack.ts +0 -166
- package/types/ibc/applications/fee/v1/fee.ts +0 -403
- package/types/ibc/applications/fee/v1/genesis.ts +0 -571
- package/types/ibc/applications/fee/v1/metadata.ts +0 -122
- package/types/ibc/applications/fee/v1/query.ts +0 -1757
- package/types/ibc/applications/fee/v1/tx.ts +0 -781
- package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +0 -104
- package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +0 -333
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +0 -619
- package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +0 -590
- package/types/ibc/applications/interchain_accounts/host/v1/host.ts +0 -242
- package/types/ibc/applications/interchain_accounts/host/v1/query.ts +0 -175
- package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +0 -416
- package/types/ibc/applications/interchain_accounts/v1/account.ts +0 -120
- package/types/ibc/applications/interchain_accounts/v1/metadata.ts +0 -199
- package/types/ibc/applications/interchain_accounts/v1/packet.ts +0 -264
- package/types/ibc/applications/transfer/v1/authz.ts +0 -254
- package/types/ibc/applications/transfer/v1/genesis.ts +0 -165
- package/types/ibc/applications/transfer/v1/query.ts +0 -934
- package/types/ibc/applications/transfer/v1/transfer.ts +0 -220
- package/types/ibc/applications/transfer/v1/tx.ts +0 -505
- package/types/ibc/applications/transfer/v2/packet.ts +0 -177
- package/types/ibc/core/channel/v1/channel.ts +0 -1358
- package/types/ibc/core/channel/v1/genesis.ts +0 -377
- package/types/ibc/core/channel/v1/query.ts +0 -3781
- package/types/ibc/core/channel/v1/tx.ts +0 -4424
- package/types/ibc/core/channel/v1/upgrade.ts +0 -348
- package/types/ibc/core/client/v1/client.ts +0 -753
- package/types/ibc/core/client/v1/genesis.ts +0 -423
- package/types/ibc/core/client/v1/query.ts +0 -1898
- package/types/ibc/core/client/v1/tx.ts +0 -1301
- package/types/ibc/core/commitment/v1/commitment.ts +0 -336
- package/types/ibc/core/connection/v1/connection.ts +0 -840
- package/types/ibc/core/connection/v1/genesis.ts +0 -172
- package/types/ibc/core/connection/v1/query.ts +0 -1243
- package/types/ibc/core/connection/v1/tx.ts +0 -1352
- package/types/ibc/core/types/v1/genesis.ts +0 -150
- package/types/ibc/lightclients/localhost/v2/localhost.ts +0 -102
- package/types/ibc/lightclients/solomachine/v2/solomachine.ts +0 -1765
- package/types/ibc/lightclients/solomachine/v3/solomachine.ts +0 -945
- package/types/ibc/lightclients/tendermint/v1/tendermint.ts +0 -853
- package/types/ibc/lightclients/wasm/v1/genesis.ts +0 -192
- package/types/ibc/lightclients/wasm/v1/query.ts +0 -377
- package/types/ibc/lightclients/wasm/v1/tx.ts +0 -550
- package/types/ibc/lightclients/wasm/v1/wasm.ts +0 -370
- package/types/tendermint/abci/types.ts +0 -6103
- package/types/tendermint/crypto/keys.ts +0 -142
- package/types/tendermint/crypto/proof.ts +0 -533
- package/types/tendermint/libs/bits/types.ts +0 -139
- package/types/tendermint/p2p/types.ts +0 -544
- package/types/tendermint/types/block.ts +0 -158
- package/types/tendermint/types/evidence.ts +0 -502
- package/types/tendermint/types/params.ts +0 -701
- package/types/tendermint/types/types.ts +0 -2133
- package/types/tendermint/types/validator.ts +0 -424
- package/types/tendermint/version/types.ts +0 -218
- package/types.d.ts +0 -21
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.6.1
|
|
4
|
-
// protoc unknown
|
|
5
|
-
// source: cosmos/autocli/v1/query.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { ModuleOptions } from "./options";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "cosmos.autocli.v1";
|
|
12
|
-
|
|
13
|
-
/** AppOptionsRequest is the RemoteInfoService/AppOptions request type. */
|
|
14
|
-
export interface AppOptionsRequest {
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/** AppOptionsResponse is the RemoteInfoService/AppOptions response type. */
|
|
18
|
-
export interface AppOptionsResponse {
|
|
19
|
-
/** module_options is a map of module name to autocli module options. */
|
|
20
|
-
moduleOptions: { [key: string]: ModuleOptions };
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface AppOptionsResponse_ModuleOptionsEntry {
|
|
24
|
-
key: string;
|
|
25
|
-
value: ModuleOptions | undefined;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function createBaseAppOptionsRequest(): AppOptionsRequest {
|
|
29
|
-
return {};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export const AppOptionsRequest: MessageFns<AppOptionsRequest> = {
|
|
33
|
-
encode(_: AppOptionsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
34
|
-
return writer;
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
decode(input: BinaryReader | Uint8Array, length?: number): AppOptionsRequest {
|
|
38
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
39
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
40
|
-
const message = createBaseAppOptionsRequest();
|
|
41
|
-
while (reader.pos < end) {
|
|
42
|
-
const tag = reader.uint32();
|
|
43
|
-
switch (tag >>> 3) {
|
|
44
|
-
}
|
|
45
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
reader.skip(tag & 7);
|
|
49
|
-
}
|
|
50
|
-
return message;
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
fromJSON(_: any): AppOptionsRequest {
|
|
54
|
-
return {};
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
toJSON(_: AppOptionsRequest): unknown {
|
|
58
|
-
const obj: any = {};
|
|
59
|
-
return obj;
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
create<I extends Exact<DeepPartial<AppOptionsRequest>, I>>(base?: I): AppOptionsRequest {
|
|
63
|
-
return AppOptionsRequest.fromPartial(base ?? ({} as any));
|
|
64
|
-
},
|
|
65
|
-
fromPartial<I extends Exact<DeepPartial<AppOptionsRequest>, I>>(_: I): AppOptionsRequest {
|
|
66
|
-
const message = createBaseAppOptionsRequest();
|
|
67
|
-
return message;
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
function createBaseAppOptionsResponse(): AppOptionsResponse {
|
|
72
|
-
return { moduleOptions: {} };
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export const AppOptionsResponse: MessageFns<AppOptionsResponse> = {
|
|
76
|
-
encode(message: AppOptionsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
77
|
-
Object.entries(message.moduleOptions).forEach(([key, value]) => {
|
|
78
|
-
AppOptionsResponse_ModuleOptionsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
|
79
|
-
});
|
|
80
|
-
return writer;
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
decode(input: BinaryReader | Uint8Array, length?: number): AppOptionsResponse {
|
|
84
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
85
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
86
|
-
const message = createBaseAppOptionsResponse();
|
|
87
|
-
while (reader.pos < end) {
|
|
88
|
-
const tag = reader.uint32();
|
|
89
|
-
switch (tag >>> 3) {
|
|
90
|
-
case 1: {
|
|
91
|
-
if (tag !== 10) {
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
const entry1 = AppOptionsResponse_ModuleOptionsEntry.decode(reader, reader.uint32());
|
|
96
|
-
if (entry1.value !== undefined) {
|
|
97
|
-
message.moduleOptions[entry1.key] = entry1.value;
|
|
98
|
-
}
|
|
99
|
-
continue;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
reader.skip(tag & 7);
|
|
106
|
-
}
|
|
107
|
-
return message;
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
fromJSON(object: any): AppOptionsResponse {
|
|
111
|
-
return {
|
|
112
|
-
moduleOptions: isObject(object.moduleOptions)
|
|
113
|
-
? Object.entries(object.moduleOptions).reduce<{ [key: string]: ModuleOptions }>((acc, [key, value]) => {
|
|
114
|
-
acc[key] = ModuleOptions.fromJSON(value);
|
|
115
|
-
return acc;
|
|
116
|
-
}, {})
|
|
117
|
-
: {},
|
|
118
|
-
};
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
toJSON(message: AppOptionsResponse): unknown {
|
|
122
|
-
const obj: any = {};
|
|
123
|
-
if (message.moduleOptions) {
|
|
124
|
-
const entries = Object.entries(message.moduleOptions);
|
|
125
|
-
if (entries.length > 0) {
|
|
126
|
-
obj.moduleOptions = {};
|
|
127
|
-
entries.forEach(([k, v]) => {
|
|
128
|
-
obj.moduleOptions[k] = ModuleOptions.toJSON(v);
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
return obj;
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
create<I extends Exact<DeepPartial<AppOptionsResponse>, I>>(base?: I): AppOptionsResponse {
|
|
136
|
-
return AppOptionsResponse.fromPartial(base ?? ({} as any));
|
|
137
|
-
},
|
|
138
|
-
fromPartial<I extends Exact<DeepPartial<AppOptionsResponse>, I>>(object: I): AppOptionsResponse {
|
|
139
|
-
const message = createBaseAppOptionsResponse();
|
|
140
|
-
message.moduleOptions = Object.entries(object.moduleOptions ?? {}).reduce<{ [key: string]: ModuleOptions }>(
|
|
141
|
-
(acc, [key, value]) => {
|
|
142
|
-
if (value !== undefined) {
|
|
143
|
-
acc[key] = ModuleOptions.fromPartial(value);
|
|
144
|
-
}
|
|
145
|
-
return acc;
|
|
146
|
-
},
|
|
147
|
-
{},
|
|
148
|
-
);
|
|
149
|
-
return message;
|
|
150
|
-
},
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
function createBaseAppOptionsResponse_ModuleOptionsEntry(): AppOptionsResponse_ModuleOptionsEntry {
|
|
154
|
-
return { key: "", value: undefined };
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export const AppOptionsResponse_ModuleOptionsEntry: MessageFns<AppOptionsResponse_ModuleOptionsEntry> = {
|
|
158
|
-
encode(message: AppOptionsResponse_ModuleOptionsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
159
|
-
if (message.key !== "") {
|
|
160
|
-
writer.uint32(10).string(message.key);
|
|
161
|
-
}
|
|
162
|
-
if (message.value !== undefined) {
|
|
163
|
-
ModuleOptions.encode(message.value, writer.uint32(18).fork()).join();
|
|
164
|
-
}
|
|
165
|
-
return writer;
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
decode(input: BinaryReader | Uint8Array, length?: number): AppOptionsResponse_ModuleOptionsEntry {
|
|
169
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
170
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
171
|
-
const message = createBaseAppOptionsResponse_ModuleOptionsEntry();
|
|
172
|
-
while (reader.pos < end) {
|
|
173
|
-
const tag = reader.uint32();
|
|
174
|
-
switch (tag >>> 3) {
|
|
175
|
-
case 1: {
|
|
176
|
-
if (tag !== 10) {
|
|
177
|
-
break;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
message.key = reader.string();
|
|
181
|
-
continue;
|
|
182
|
-
}
|
|
183
|
-
case 2: {
|
|
184
|
-
if (tag !== 18) {
|
|
185
|
-
break;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
message.value = ModuleOptions.decode(reader, reader.uint32());
|
|
189
|
-
continue;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
193
|
-
break;
|
|
194
|
-
}
|
|
195
|
-
reader.skip(tag & 7);
|
|
196
|
-
}
|
|
197
|
-
return message;
|
|
198
|
-
},
|
|
199
|
-
|
|
200
|
-
fromJSON(object: any): AppOptionsResponse_ModuleOptionsEntry {
|
|
201
|
-
return {
|
|
202
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
203
|
-
value: isSet(object.value) ? ModuleOptions.fromJSON(object.value) : undefined,
|
|
204
|
-
};
|
|
205
|
-
},
|
|
206
|
-
|
|
207
|
-
toJSON(message: AppOptionsResponse_ModuleOptionsEntry): unknown {
|
|
208
|
-
const obj: any = {};
|
|
209
|
-
if (message.key !== "") {
|
|
210
|
-
obj.key = message.key;
|
|
211
|
-
}
|
|
212
|
-
if (message.value !== undefined) {
|
|
213
|
-
obj.value = ModuleOptions.toJSON(message.value);
|
|
214
|
-
}
|
|
215
|
-
return obj;
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
create<I extends Exact<DeepPartial<AppOptionsResponse_ModuleOptionsEntry>, I>>(
|
|
219
|
-
base?: I,
|
|
220
|
-
): AppOptionsResponse_ModuleOptionsEntry {
|
|
221
|
-
return AppOptionsResponse_ModuleOptionsEntry.fromPartial(base ?? ({} as any));
|
|
222
|
-
},
|
|
223
|
-
fromPartial<I extends Exact<DeepPartial<AppOptionsResponse_ModuleOptionsEntry>, I>>(
|
|
224
|
-
object: I,
|
|
225
|
-
): AppOptionsResponse_ModuleOptionsEntry {
|
|
226
|
-
const message = createBaseAppOptionsResponse_ModuleOptionsEntry();
|
|
227
|
-
message.key = object.key ?? "";
|
|
228
|
-
message.value = (object.value !== undefined && object.value !== null)
|
|
229
|
-
? ModuleOptions.fromPartial(object.value)
|
|
230
|
-
: undefined;
|
|
231
|
-
return message;
|
|
232
|
-
},
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* RemoteInfoService provides clients with the information they need
|
|
237
|
-
* to build dynamically CLI clients for remote chains.
|
|
238
|
-
*/
|
|
239
|
-
export interface Query {
|
|
240
|
-
/** AppOptions returns the autocli options for all of the modules in an app. */
|
|
241
|
-
AppOptions(request: AppOptionsRequest): Promise<AppOptionsResponse>;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
export const QueryServiceName = "cosmos.autocli.v1.Query";
|
|
245
|
-
export class QueryClientImpl implements Query {
|
|
246
|
-
private readonly rpc: Rpc;
|
|
247
|
-
private readonly service: string;
|
|
248
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
249
|
-
this.service = opts?.service || QueryServiceName;
|
|
250
|
-
this.rpc = rpc;
|
|
251
|
-
this.AppOptions = this.AppOptions.bind(this);
|
|
252
|
-
}
|
|
253
|
-
AppOptions(request: AppOptionsRequest): Promise<AppOptionsResponse> {
|
|
254
|
-
const data = AppOptionsRequest.encode(request).finish();
|
|
255
|
-
const promise = this.rpc.request(this.service, "AppOptions", data);
|
|
256
|
-
return promise.then((data) => AppOptionsResponse.decode(new BinaryReader(data)));
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
interface Rpc {
|
|
261
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
265
|
-
|
|
266
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
267
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
268
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
269
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
270
|
-
: Partial<T>;
|
|
271
|
-
|
|
272
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
273
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
274
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
275
|
-
|
|
276
|
-
function isObject(value: any): boolean {
|
|
277
|
-
return typeof value === "object" && value !== null;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
function isSet(value: any): boolean {
|
|
281
|
-
return value !== null && value !== undefined;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
export interface MessageFns<T> {
|
|
285
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
286
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
287
|
-
fromJSON(object: any): T;
|
|
288
|
-
toJSON(message: T): unknown;
|
|
289
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
290
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
291
|
-
}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.6.1
|
|
4
|
-
// protoc unknown
|
|
5
|
-
// source: cosmos/bank/module/v1/module.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
|
|
10
|
-
export const protobufPackage = "cosmos.bank.module.v1";
|
|
11
|
-
|
|
12
|
-
/** Module is the config object of the bank module. */
|
|
13
|
-
export interface Module {
|
|
14
|
-
/**
|
|
15
|
-
* blocked_module_accounts_override configures exceptional module accounts which should be blocked from receiving
|
|
16
|
-
* funds. If left empty it defaults to the list of account names supplied in the auth module configuration as
|
|
17
|
-
* module_account_permissions
|
|
18
|
-
*/
|
|
19
|
-
blockedModuleAccountsOverride: string[];
|
|
20
|
-
/** authority defines the custom module authority. If not set, defaults to the governance module. */
|
|
21
|
-
authority: string;
|
|
22
|
-
/**
|
|
23
|
-
* restrictions_order specifies the order of send restrictions and should be
|
|
24
|
-
* a list of module names which provide a send restriction instance. If no
|
|
25
|
-
* order is provided, then restrictions will be applied in alphabetical order
|
|
26
|
-
* of module names.
|
|
27
|
-
*/
|
|
28
|
-
restrictionsOrder: string[];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function createBaseModule(): Module {
|
|
32
|
-
return { blockedModuleAccountsOverride: [], authority: "", restrictionsOrder: [] };
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export const Module: MessageFns<Module> = {
|
|
36
|
-
encode(message: Module, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
37
|
-
for (const v of message.blockedModuleAccountsOverride) {
|
|
38
|
-
writer.uint32(10).string(v!);
|
|
39
|
-
}
|
|
40
|
-
if (message.authority !== "") {
|
|
41
|
-
writer.uint32(18).string(message.authority);
|
|
42
|
-
}
|
|
43
|
-
for (const v of message.restrictionsOrder) {
|
|
44
|
-
writer.uint32(26).string(v!);
|
|
45
|
-
}
|
|
46
|
-
return writer;
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Module {
|
|
50
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
51
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
52
|
-
const message = createBaseModule();
|
|
53
|
-
while (reader.pos < end) {
|
|
54
|
-
const tag = reader.uint32();
|
|
55
|
-
switch (tag >>> 3) {
|
|
56
|
-
case 1: {
|
|
57
|
-
if (tag !== 10) {
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
message.blockedModuleAccountsOverride.push(reader.string());
|
|
62
|
-
continue;
|
|
63
|
-
}
|
|
64
|
-
case 2: {
|
|
65
|
-
if (tag !== 18) {
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
message.authority = reader.string();
|
|
70
|
-
continue;
|
|
71
|
-
}
|
|
72
|
-
case 3: {
|
|
73
|
-
if (tag !== 26) {
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
message.restrictionsOrder.push(reader.string());
|
|
78
|
-
continue;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
reader.skip(tag & 7);
|
|
85
|
-
}
|
|
86
|
-
return message;
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
fromJSON(object: any): Module {
|
|
90
|
-
return {
|
|
91
|
-
blockedModuleAccountsOverride: globalThis.Array.isArray(object?.blockedModuleAccountsOverride)
|
|
92
|
-
? object.blockedModuleAccountsOverride.map((e: any) => globalThis.String(e))
|
|
93
|
-
: [],
|
|
94
|
-
authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
|
|
95
|
-
restrictionsOrder: globalThis.Array.isArray(object?.restrictionsOrder)
|
|
96
|
-
? object.restrictionsOrder.map((e: any) => globalThis.String(e))
|
|
97
|
-
: [],
|
|
98
|
-
};
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
toJSON(message: Module): unknown {
|
|
102
|
-
const obj: any = {};
|
|
103
|
-
if (message.blockedModuleAccountsOverride?.length) {
|
|
104
|
-
obj.blockedModuleAccountsOverride = message.blockedModuleAccountsOverride;
|
|
105
|
-
}
|
|
106
|
-
if (message.authority !== "") {
|
|
107
|
-
obj.authority = message.authority;
|
|
108
|
-
}
|
|
109
|
-
if (message.restrictionsOrder?.length) {
|
|
110
|
-
obj.restrictionsOrder = message.restrictionsOrder;
|
|
111
|
-
}
|
|
112
|
-
return obj;
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
create<I extends Exact<DeepPartial<Module>, I>>(base?: I): Module {
|
|
116
|
-
return Module.fromPartial(base ?? ({} as any));
|
|
117
|
-
},
|
|
118
|
-
fromPartial<I extends Exact<DeepPartial<Module>, I>>(object: I): Module {
|
|
119
|
-
const message = createBaseModule();
|
|
120
|
-
message.blockedModuleAccountsOverride = object.blockedModuleAccountsOverride?.map((e) => e) || [];
|
|
121
|
-
message.authority = object.authority ?? "";
|
|
122
|
-
message.restrictionsOrder = object.restrictionsOrder?.map((e) => e) || [];
|
|
123
|
-
return message;
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
128
|
-
|
|
129
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
130
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
131
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
132
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
133
|
-
: Partial<T>;
|
|
134
|
-
|
|
135
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
136
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
137
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
138
|
-
|
|
139
|
-
function isSet(value: any): boolean {
|
|
140
|
-
return value !== null && value !== undefined;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export interface MessageFns<T> {
|
|
144
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
145
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
146
|
-
fromJSON(object: any): T;
|
|
147
|
-
toJSON(message: T): unknown;
|
|
148
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
149
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
150
|
-
}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.6.1
|
|
4
|
-
// protoc unknown
|
|
5
|
-
// source: cosmos/bank/v1beta1/authz.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Coin } from "../../base/v1beta1/coin";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "cosmos.bank.v1beta1";
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* SendAuthorization allows the grantee to spend up to spend_limit coins from
|
|
15
|
-
* the granter's account.
|
|
16
|
-
*
|
|
17
|
-
* Since: cosmos-sdk 0.43
|
|
18
|
-
*/
|
|
19
|
-
export interface SendAuthorization {
|
|
20
|
-
spendLimit: Coin[];
|
|
21
|
-
/**
|
|
22
|
-
* allow_list specifies an optional list of addresses to whom the grantee can send tokens on behalf of the
|
|
23
|
-
* granter. If omitted, any recipient is allowed.
|
|
24
|
-
*
|
|
25
|
-
* Since: cosmos-sdk 0.47
|
|
26
|
-
*/
|
|
27
|
-
allowList: string[];
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function createBaseSendAuthorization(): SendAuthorization {
|
|
31
|
-
return { spendLimit: [], allowList: [] };
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export const SendAuthorization: MessageFns<SendAuthorization> = {
|
|
35
|
-
encode(message: SendAuthorization, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
36
|
-
for (const v of message.spendLimit) {
|
|
37
|
-
Coin.encode(v!, writer.uint32(10).fork()).join();
|
|
38
|
-
}
|
|
39
|
-
for (const v of message.allowList) {
|
|
40
|
-
writer.uint32(18).string(v!);
|
|
41
|
-
}
|
|
42
|
-
return writer;
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
decode(input: BinaryReader | Uint8Array, length?: number): SendAuthorization {
|
|
46
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
47
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
48
|
-
const message = createBaseSendAuthorization();
|
|
49
|
-
while (reader.pos < end) {
|
|
50
|
-
const tag = reader.uint32();
|
|
51
|
-
switch (tag >>> 3) {
|
|
52
|
-
case 1: {
|
|
53
|
-
if (tag !== 10) {
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
message.spendLimit.push(Coin.decode(reader, reader.uint32()));
|
|
58
|
-
continue;
|
|
59
|
-
}
|
|
60
|
-
case 2: {
|
|
61
|
-
if (tag !== 18) {
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
message.allowList.push(reader.string());
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
70
|
-
break;
|
|
71
|
-
}
|
|
72
|
-
reader.skip(tag & 7);
|
|
73
|
-
}
|
|
74
|
-
return message;
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
fromJSON(object: any): SendAuthorization {
|
|
78
|
-
return {
|
|
79
|
-
spendLimit: globalThis.Array.isArray(object?.spendLimit)
|
|
80
|
-
? object.spendLimit.map((e: any) => Coin.fromJSON(e))
|
|
81
|
-
: [],
|
|
82
|
-
allowList: globalThis.Array.isArray(object?.allowList)
|
|
83
|
-
? object.allowList.map((e: any) => globalThis.String(e))
|
|
84
|
-
: [],
|
|
85
|
-
};
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
toJSON(message: SendAuthorization): unknown {
|
|
89
|
-
const obj: any = {};
|
|
90
|
-
if (message.spendLimit?.length) {
|
|
91
|
-
obj.spendLimit = message.spendLimit.map((e) => Coin.toJSON(e));
|
|
92
|
-
}
|
|
93
|
-
if (message.allowList?.length) {
|
|
94
|
-
obj.allowList = message.allowList;
|
|
95
|
-
}
|
|
96
|
-
return obj;
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
create<I extends Exact<DeepPartial<SendAuthorization>, I>>(base?: I): SendAuthorization {
|
|
100
|
-
return SendAuthorization.fromPartial(base ?? ({} as any));
|
|
101
|
-
},
|
|
102
|
-
fromPartial<I extends Exact<DeepPartial<SendAuthorization>, I>>(object: I): SendAuthorization {
|
|
103
|
-
const message = createBaseSendAuthorization();
|
|
104
|
-
message.spendLimit = object.spendLimit?.map((e) => Coin.fromPartial(e)) || [];
|
|
105
|
-
message.allowList = object.allowList?.map((e) => e) || [];
|
|
106
|
-
return message;
|
|
107
|
-
},
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
111
|
-
|
|
112
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
113
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
114
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
115
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
116
|
-
: Partial<T>;
|
|
117
|
-
|
|
118
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
119
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
120
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
121
|
-
|
|
122
|
-
export interface MessageFns<T> {
|
|
123
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
124
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
125
|
-
fromJSON(object: any): T;
|
|
126
|
-
toJSON(message: T): unknown;
|
|
127
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
128
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
129
|
-
}
|