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,78 +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/feegrant/module/v1/module.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
|
|
10
|
-
export const protobufPackage = "cosmos.feegrant.module.v1";
|
|
11
|
-
|
|
12
|
-
/** Module is the config object of the feegrant module. */
|
|
13
|
-
export interface Module {
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function createBaseModule(): Module {
|
|
17
|
-
return {};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const Module: MessageFns<Module> = {
|
|
21
|
-
encode(_: Module, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
22
|
-
return writer;
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Module {
|
|
26
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
27
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
-
const message = createBaseModule();
|
|
29
|
-
while (reader.pos < end) {
|
|
30
|
-
const tag = reader.uint32();
|
|
31
|
-
switch (tag >>> 3) {
|
|
32
|
-
}
|
|
33
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
reader.skip(tag & 7);
|
|
37
|
-
}
|
|
38
|
-
return message;
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
fromJSON(_: any): Module {
|
|
42
|
-
return {};
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
toJSON(_: Module): unknown {
|
|
46
|
-
const obj: any = {};
|
|
47
|
-
return obj;
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
create<I extends Exact<DeepPartial<Module>, I>>(base?: I): Module {
|
|
51
|
-
return Module.fromPartial(base ?? ({} as any));
|
|
52
|
-
},
|
|
53
|
-
fromPartial<I extends Exact<DeepPartial<Module>, I>>(_: I): Module {
|
|
54
|
-
const message = createBaseModule();
|
|
55
|
-
return message;
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
60
|
-
|
|
61
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
62
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
63
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
64
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
65
|
-
: Partial<T>;
|
|
66
|
-
|
|
67
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
68
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
69
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
70
|
-
|
|
71
|
-
export interface MessageFns<T> {
|
|
72
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
73
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
74
|
-
fromJSON(object: any): T;
|
|
75
|
-
toJSON(message: T): unknown;
|
|
76
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
77
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
78
|
-
}
|
|
@@ -1,513 +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/feegrant/v1beta1/feegrant.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Any } from "../../../google/protobuf/any";
|
|
10
|
-
import { Duration } from "../../../google/protobuf/duration";
|
|
11
|
-
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
12
|
-
import { Coin } from "../../base/v1beta1/coin";
|
|
13
|
-
|
|
14
|
-
export const protobufPackage = "cosmos.feegrant.v1beta1";
|
|
15
|
-
|
|
16
|
-
/** Since: cosmos-sdk 0.43 */
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* BasicAllowance implements Allowance with a one-time grant of coins
|
|
20
|
-
* that optionally expires. The grantee can use up to SpendLimit to cover fees.
|
|
21
|
-
*/
|
|
22
|
-
export interface BasicAllowance {
|
|
23
|
-
/**
|
|
24
|
-
* spend_limit specifies the maximum amount of coins that can be spent
|
|
25
|
-
* by this allowance and will be updated as coins are spent. If it is
|
|
26
|
-
* empty, there is no spend limit and any amount of coins can be spent.
|
|
27
|
-
*/
|
|
28
|
-
spendLimit: Coin[];
|
|
29
|
-
/** expiration specifies an optional time when this allowance expires */
|
|
30
|
-
expiration: Date | undefined;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* PeriodicAllowance extends Allowance to allow for both a maximum cap,
|
|
35
|
-
* as well as a limit per time period.
|
|
36
|
-
*/
|
|
37
|
-
export interface PeriodicAllowance {
|
|
38
|
-
/** basic specifies a struct of `BasicAllowance` */
|
|
39
|
-
basic:
|
|
40
|
-
| BasicAllowance
|
|
41
|
-
| undefined;
|
|
42
|
-
/**
|
|
43
|
-
* period specifies the time duration in which period_spend_limit coins can
|
|
44
|
-
* be spent before that allowance is reset
|
|
45
|
-
*/
|
|
46
|
-
period:
|
|
47
|
-
| Duration
|
|
48
|
-
| undefined;
|
|
49
|
-
/**
|
|
50
|
-
* period_spend_limit specifies the maximum number of coins that can be spent
|
|
51
|
-
* in the period
|
|
52
|
-
*/
|
|
53
|
-
periodSpendLimit: Coin[];
|
|
54
|
-
/** period_can_spend is the number of coins left to be spent before the period_reset time */
|
|
55
|
-
periodCanSpend: Coin[];
|
|
56
|
-
/**
|
|
57
|
-
* period_reset is the time at which this period resets and a new one begins,
|
|
58
|
-
* it is calculated from the start time of the first transaction after the
|
|
59
|
-
* last period ended
|
|
60
|
-
*/
|
|
61
|
-
periodReset: Date | undefined;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/** AllowedMsgAllowance creates allowance only for specified message types. */
|
|
65
|
-
export interface AllowedMsgAllowance {
|
|
66
|
-
/** allowance can be any of basic and periodic fee allowance. */
|
|
67
|
-
allowance:
|
|
68
|
-
| Any
|
|
69
|
-
| undefined;
|
|
70
|
-
/** allowed_messages are the messages for which the grantee has the access. */
|
|
71
|
-
allowedMessages: string[];
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/** Grant is stored in the KVStore to record a grant with full context */
|
|
75
|
-
export interface Grant {
|
|
76
|
-
/** granter is the address of the user granting an allowance of their funds. */
|
|
77
|
-
granter: string;
|
|
78
|
-
/** grantee is the address of the user being granted an allowance of another user's funds. */
|
|
79
|
-
grantee: string;
|
|
80
|
-
/** allowance can be any of basic, periodic, allowed fee allowance. */
|
|
81
|
-
allowance: Any | undefined;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function createBaseBasicAllowance(): BasicAllowance {
|
|
85
|
-
return { spendLimit: [], expiration: undefined };
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export const BasicAllowance: MessageFns<BasicAllowance> = {
|
|
89
|
-
encode(message: BasicAllowance, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
90
|
-
for (const v of message.spendLimit) {
|
|
91
|
-
Coin.encode(v!, writer.uint32(10).fork()).join();
|
|
92
|
-
}
|
|
93
|
-
if (message.expiration !== undefined) {
|
|
94
|
-
Timestamp.encode(toTimestamp(message.expiration), writer.uint32(18).fork()).join();
|
|
95
|
-
}
|
|
96
|
-
return writer;
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
decode(input: BinaryReader | Uint8Array, length?: number): BasicAllowance {
|
|
100
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
101
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
102
|
-
const message = createBaseBasicAllowance();
|
|
103
|
-
while (reader.pos < end) {
|
|
104
|
-
const tag = reader.uint32();
|
|
105
|
-
switch (tag >>> 3) {
|
|
106
|
-
case 1: {
|
|
107
|
-
if (tag !== 10) {
|
|
108
|
-
break;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
message.spendLimit.push(Coin.decode(reader, reader.uint32()));
|
|
112
|
-
continue;
|
|
113
|
-
}
|
|
114
|
-
case 2: {
|
|
115
|
-
if (tag !== 18) {
|
|
116
|
-
break;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
120
|
-
continue;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
reader.skip(tag & 7);
|
|
127
|
-
}
|
|
128
|
-
return message;
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
fromJSON(object: any): BasicAllowance {
|
|
132
|
-
return {
|
|
133
|
-
spendLimit: globalThis.Array.isArray(object?.spendLimit)
|
|
134
|
-
? object.spendLimit.map((e: any) => Coin.fromJSON(e))
|
|
135
|
-
: [],
|
|
136
|
-
expiration: isSet(object.expiration) ? fromJsonTimestamp(object.expiration) : undefined,
|
|
137
|
-
};
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
toJSON(message: BasicAllowance): unknown {
|
|
141
|
-
const obj: any = {};
|
|
142
|
-
if (message.spendLimit?.length) {
|
|
143
|
-
obj.spendLimit = message.spendLimit.map((e) => Coin.toJSON(e));
|
|
144
|
-
}
|
|
145
|
-
if (message.expiration !== undefined) {
|
|
146
|
-
obj.expiration = message.expiration.toISOString();
|
|
147
|
-
}
|
|
148
|
-
return obj;
|
|
149
|
-
},
|
|
150
|
-
|
|
151
|
-
create<I extends Exact<DeepPartial<BasicAllowance>, I>>(base?: I): BasicAllowance {
|
|
152
|
-
return BasicAllowance.fromPartial(base ?? ({} as any));
|
|
153
|
-
},
|
|
154
|
-
fromPartial<I extends Exact<DeepPartial<BasicAllowance>, I>>(object: I): BasicAllowance {
|
|
155
|
-
const message = createBaseBasicAllowance();
|
|
156
|
-
message.spendLimit = object.spendLimit?.map((e) => Coin.fromPartial(e)) || [];
|
|
157
|
-
message.expiration = object.expiration ?? undefined;
|
|
158
|
-
return message;
|
|
159
|
-
},
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
function createBasePeriodicAllowance(): PeriodicAllowance {
|
|
163
|
-
return { basic: undefined, period: undefined, periodSpendLimit: [], periodCanSpend: [], periodReset: undefined };
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export const PeriodicAllowance: MessageFns<PeriodicAllowance> = {
|
|
167
|
-
encode(message: PeriodicAllowance, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
168
|
-
if (message.basic !== undefined) {
|
|
169
|
-
BasicAllowance.encode(message.basic, writer.uint32(10).fork()).join();
|
|
170
|
-
}
|
|
171
|
-
if (message.period !== undefined) {
|
|
172
|
-
Duration.encode(message.period, writer.uint32(18).fork()).join();
|
|
173
|
-
}
|
|
174
|
-
for (const v of message.periodSpendLimit) {
|
|
175
|
-
Coin.encode(v!, writer.uint32(26).fork()).join();
|
|
176
|
-
}
|
|
177
|
-
for (const v of message.periodCanSpend) {
|
|
178
|
-
Coin.encode(v!, writer.uint32(34).fork()).join();
|
|
179
|
-
}
|
|
180
|
-
if (message.periodReset !== undefined) {
|
|
181
|
-
Timestamp.encode(toTimestamp(message.periodReset), writer.uint32(42).fork()).join();
|
|
182
|
-
}
|
|
183
|
-
return writer;
|
|
184
|
-
},
|
|
185
|
-
|
|
186
|
-
decode(input: BinaryReader | Uint8Array, length?: number): PeriodicAllowance {
|
|
187
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
188
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
189
|
-
const message = createBasePeriodicAllowance();
|
|
190
|
-
while (reader.pos < end) {
|
|
191
|
-
const tag = reader.uint32();
|
|
192
|
-
switch (tag >>> 3) {
|
|
193
|
-
case 1: {
|
|
194
|
-
if (tag !== 10) {
|
|
195
|
-
break;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
message.basic = BasicAllowance.decode(reader, reader.uint32());
|
|
199
|
-
continue;
|
|
200
|
-
}
|
|
201
|
-
case 2: {
|
|
202
|
-
if (tag !== 18) {
|
|
203
|
-
break;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
message.period = Duration.decode(reader, reader.uint32());
|
|
207
|
-
continue;
|
|
208
|
-
}
|
|
209
|
-
case 3: {
|
|
210
|
-
if (tag !== 26) {
|
|
211
|
-
break;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
message.periodSpendLimit.push(Coin.decode(reader, reader.uint32()));
|
|
215
|
-
continue;
|
|
216
|
-
}
|
|
217
|
-
case 4: {
|
|
218
|
-
if (tag !== 34) {
|
|
219
|
-
break;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
message.periodCanSpend.push(Coin.decode(reader, reader.uint32()));
|
|
223
|
-
continue;
|
|
224
|
-
}
|
|
225
|
-
case 5: {
|
|
226
|
-
if (tag !== 42) {
|
|
227
|
-
break;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
message.periodReset = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
231
|
-
continue;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
235
|
-
break;
|
|
236
|
-
}
|
|
237
|
-
reader.skip(tag & 7);
|
|
238
|
-
}
|
|
239
|
-
return message;
|
|
240
|
-
},
|
|
241
|
-
|
|
242
|
-
fromJSON(object: any): PeriodicAllowance {
|
|
243
|
-
return {
|
|
244
|
-
basic: isSet(object.basic) ? BasicAllowance.fromJSON(object.basic) : undefined,
|
|
245
|
-
period: isSet(object.period) ? Duration.fromJSON(object.period) : undefined,
|
|
246
|
-
periodSpendLimit: globalThis.Array.isArray(object?.periodSpendLimit)
|
|
247
|
-
? object.periodSpendLimit.map((e: any) => Coin.fromJSON(e))
|
|
248
|
-
: [],
|
|
249
|
-
periodCanSpend: globalThis.Array.isArray(object?.periodCanSpend)
|
|
250
|
-
? object.periodCanSpend.map((e: any) => Coin.fromJSON(e))
|
|
251
|
-
: [],
|
|
252
|
-
periodReset: isSet(object.periodReset) ? fromJsonTimestamp(object.periodReset) : undefined,
|
|
253
|
-
};
|
|
254
|
-
},
|
|
255
|
-
|
|
256
|
-
toJSON(message: PeriodicAllowance): unknown {
|
|
257
|
-
const obj: any = {};
|
|
258
|
-
if (message.basic !== undefined) {
|
|
259
|
-
obj.basic = BasicAllowance.toJSON(message.basic);
|
|
260
|
-
}
|
|
261
|
-
if (message.period !== undefined) {
|
|
262
|
-
obj.period = Duration.toJSON(message.period);
|
|
263
|
-
}
|
|
264
|
-
if (message.periodSpendLimit?.length) {
|
|
265
|
-
obj.periodSpendLimit = message.periodSpendLimit.map((e) => Coin.toJSON(e));
|
|
266
|
-
}
|
|
267
|
-
if (message.periodCanSpend?.length) {
|
|
268
|
-
obj.periodCanSpend = message.periodCanSpend.map((e) => Coin.toJSON(e));
|
|
269
|
-
}
|
|
270
|
-
if (message.periodReset !== undefined) {
|
|
271
|
-
obj.periodReset = message.periodReset.toISOString();
|
|
272
|
-
}
|
|
273
|
-
return obj;
|
|
274
|
-
},
|
|
275
|
-
|
|
276
|
-
create<I extends Exact<DeepPartial<PeriodicAllowance>, I>>(base?: I): PeriodicAllowance {
|
|
277
|
-
return PeriodicAllowance.fromPartial(base ?? ({} as any));
|
|
278
|
-
},
|
|
279
|
-
fromPartial<I extends Exact<DeepPartial<PeriodicAllowance>, I>>(object: I): PeriodicAllowance {
|
|
280
|
-
const message = createBasePeriodicAllowance();
|
|
281
|
-
message.basic = (object.basic !== undefined && object.basic !== null)
|
|
282
|
-
? BasicAllowance.fromPartial(object.basic)
|
|
283
|
-
: undefined;
|
|
284
|
-
message.period = (object.period !== undefined && object.period !== null)
|
|
285
|
-
? Duration.fromPartial(object.period)
|
|
286
|
-
: undefined;
|
|
287
|
-
message.periodSpendLimit = object.periodSpendLimit?.map((e) => Coin.fromPartial(e)) || [];
|
|
288
|
-
message.periodCanSpend = object.periodCanSpend?.map((e) => Coin.fromPartial(e)) || [];
|
|
289
|
-
message.periodReset = object.periodReset ?? undefined;
|
|
290
|
-
return message;
|
|
291
|
-
},
|
|
292
|
-
};
|
|
293
|
-
|
|
294
|
-
function createBaseAllowedMsgAllowance(): AllowedMsgAllowance {
|
|
295
|
-
return { allowance: undefined, allowedMessages: [] };
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
export const AllowedMsgAllowance: MessageFns<AllowedMsgAllowance> = {
|
|
299
|
-
encode(message: AllowedMsgAllowance, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
300
|
-
if (message.allowance !== undefined) {
|
|
301
|
-
Any.encode(message.allowance, writer.uint32(10).fork()).join();
|
|
302
|
-
}
|
|
303
|
-
for (const v of message.allowedMessages) {
|
|
304
|
-
writer.uint32(18).string(v!);
|
|
305
|
-
}
|
|
306
|
-
return writer;
|
|
307
|
-
},
|
|
308
|
-
|
|
309
|
-
decode(input: BinaryReader | Uint8Array, length?: number): AllowedMsgAllowance {
|
|
310
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
311
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
312
|
-
const message = createBaseAllowedMsgAllowance();
|
|
313
|
-
while (reader.pos < end) {
|
|
314
|
-
const tag = reader.uint32();
|
|
315
|
-
switch (tag >>> 3) {
|
|
316
|
-
case 1: {
|
|
317
|
-
if (tag !== 10) {
|
|
318
|
-
break;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
message.allowance = Any.decode(reader, reader.uint32());
|
|
322
|
-
continue;
|
|
323
|
-
}
|
|
324
|
-
case 2: {
|
|
325
|
-
if (tag !== 18) {
|
|
326
|
-
break;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
message.allowedMessages.push(reader.string());
|
|
330
|
-
continue;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
334
|
-
break;
|
|
335
|
-
}
|
|
336
|
-
reader.skip(tag & 7);
|
|
337
|
-
}
|
|
338
|
-
return message;
|
|
339
|
-
},
|
|
340
|
-
|
|
341
|
-
fromJSON(object: any): AllowedMsgAllowance {
|
|
342
|
-
return {
|
|
343
|
-
allowance: isSet(object.allowance) ? Any.fromJSON(object.allowance) : undefined,
|
|
344
|
-
allowedMessages: globalThis.Array.isArray(object?.allowedMessages)
|
|
345
|
-
? object.allowedMessages.map((e: any) => globalThis.String(e))
|
|
346
|
-
: [],
|
|
347
|
-
};
|
|
348
|
-
},
|
|
349
|
-
|
|
350
|
-
toJSON(message: AllowedMsgAllowance): unknown {
|
|
351
|
-
const obj: any = {};
|
|
352
|
-
if (message.allowance !== undefined) {
|
|
353
|
-
obj.allowance = Any.toJSON(message.allowance);
|
|
354
|
-
}
|
|
355
|
-
if (message.allowedMessages?.length) {
|
|
356
|
-
obj.allowedMessages = message.allowedMessages;
|
|
357
|
-
}
|
|
358
|
-
return obj;
|
|
359
|
-
},
|
|
360
|
-
|
|
361
|
-
create<I extends Exact<DeepPartial<AllowedMsgAllowance>, I>>(base?: I): AllowedMsgAllowance {
|
|
362
|
-
return AllowedMsgAllowance.fromPartial(base ?? ({} as any));
|
|
363
|
-
},
|
|
364
|
-
fromPartial<I extends Exact<DeepPartial<AllowedMsgAllowance>, I>>(object: I): AllowedMsgAllowance {
|
|
365
|
-
const message = createBaseAllowedMsgAllowance();
|
|
366
|
-
message.allowance = (object.allowance !== undefined && object.allowance !== null)
|
|
367
|
-
? Any.fromPartial(object.allowance)
|
|
368
|
-
: undefined;
|
|
369
|
-
message.allowedMessages = object.allowedMessages?.map((e) => e) || [];
|
|
370
|
-
return message;
|
|
371
|
-
},
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
function createBaseGrant(): Grant {
|
|
375
|
-
return { granter: "", grantee: "", allowance: undefined };
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
export const Grant: MessageFns<Grant> = {
|
|
379
|
-
encode(message: Grant, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
380
|
-
if (message.granter !== "") {
|
|
381
|
-
writer.uint32(10).string(message.granter);
|
|
382
|
-
}
|
|
383
|
-
if (message.grantee !== "") {
|
|
384
|
-
writer.uint32(18).string(message.grantee);
|
|
385
|
-
}
|
|
386
|
-
if (message.allowance !== undefined) {
|
|
387
|
-
Any.encode(message.allowance, writer.uint32(26).fork()).join();
|
|
388
|
-
}
|
|
389
|
-
return writer;
|
|
390
|
-
},
|
|
391
|
-
|
|
392
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Grant {
|
|
393
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
394
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
395
|
-
const message = createBaseGrant();
|
|
396
|
-
while (reader.pos < end) {
|
|
397
|
-
const tag = reader.uint32();
|
|
398
|
-
switch (tag >>> 3) {
|
|
399
|
-
case 1: {
|
|
400
|
-
if (tag !== 10) {
|
|
401
|
-
break;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
message.granter = reader.string();
|
|
405
|
-
continue;
|
|
406
|
-
}
|
|
407
|
-
case 2: {
|
|
408
|
-
if (tag !== 18) {
|
|
409
|
-
break;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
message.grantee = reader.string();
|
|
413
|
-
continue;
|
|
414
|
-
}
|
|
415
|
-
case 3: {
|
|
416
|
-
if (tag !== 26) {
|
|
417
|
-
break;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
message.allowance = Any.decode(reader, reader.uint32());
|
|
421
|
-
continue;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
425
|
-
break;
|
|
426
|
-
}
|
|
427
|
-
reader.skip(tag & 7);
|
|
428
|
-
}
|
|
429
|
-
return message;
|
|
430
|
-
},
|
|
431
|
-
|
|
432
|
-
fromJSON(object: any): Grant {
|
|
433
|
-
return {
|
|
434
|
-
granter: isSet(object.granter) ? globalThis.String(object.granter) : "",
|
|
435
|
-
grantee: isSet(object.grantee) ? globalThis.String(object.grantee) : "",
|
|
436
|
-
allowance: isSet(object.allowance) ? Any.fromJSON(object.allowance) : undefined,
|
|
437
|
-
};
|
|
438
|
-
},
|
|
439
|
-
|
|
440
|
-
toJSON(message: Grant): unknown {
|
|
441
|
-
const obj: any = {};
|
|
442
|
-
if (message.granter !== "") {
|
|
443
|
-
obj.granter = message.granter;
|
|
444
|
-
}
|
|
445
|
-
if (message.grantee !== "") {
|
|
446
|
-
obj.grantee = message.grantee;
|
|
447
|
-
}
|
|
448
|
-
if (message.allowance !== undefined) {
|
|
449
|
-
obj.allowance = Any.toJSON(message.allowance);
|
|
450
|
-
}
|
|
451
|
-
return obj;
|
|
452
|
-
},
|
|
453
|
-
|
|
454
|
-
create<I extends Exact<DeepPartial<Grant>, I>>(base?: I): Grant {
|
|
455
|
-
return Grant.fromPartial(base ?? ({} as any));
|
|
456
|
-
},
|
|
457
|
-
fromPartial<I extends Exact<DeepPartial<Grant>, I>>(object: I): Grant {
|
|
458
|
-
const message = createBaseGrant();
|
|
459
|
-
message.granter = object.granter ?? "";
|
|
460
|
-
message.grantee = object.grantee ?? "";
|
|
461
|
-
message.allowance = (object.allowance !== undefined && object.allowance !== null)
|
|
462
|
-
? Any.fromPartial(object.allowance)
|
|
463
|
-
: undefined;
|
|
464
|
-
return message;
|
|
465
|
-
},
|
|
466
|
-
};
|
|
467
|
-
|
|
468
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
469
|
-
|
|
470
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
471
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
472
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
473
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
474
|
-
: Partial<T>;
|
|
475
|
-
|
|
476
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
477
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
478
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
479
|
-
|
|
480
|
-
function toTimestamp(date: Date): Timestamp {
|
|
481
|
-
const seconds = Math.trunc(date.getTime() / 1_000);
|
|
482
|
-
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
483
|
-
return { seconds, nanos };
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
function fromTimestamp(t: Timestamp): Date {
|
|
487
|
-
let millis = (t.seconds || 0) * 1_000;
|
|
488
|
-
millis += (t.nanos || 0) / 1_000_000;
|
|
489
|
-
return new globalThis.Date(millis);
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
function fromJsonTimestamp(o: any): Date {
|
|
493
|
-
if (o instanceof globalThis.Date) {
|
|
494
|
-
return o;
|
|
495
|
-
} else if (typeof o === "string") {
|
|
496
|
-
return new globalThis.Date(o);
|
|
497
|
-
} else {
|
|
498
|
-
return fromTimestamp(Timestamp.fromJSON(o));
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
function isSet(value: any): boolean {
|
|
503
|
-
return value !== null && value !== undefined;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
export interface MessageFns<T> {
|
|
507
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
508
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
509
|
-
fromJSON(object: any): T;
|
|
510
|
-
toJSON(message: T): unknown;
|
|
511
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
512
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
513
|
-
}
|
|
@@ -1,101 +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/feegrant/v1beta1/genesis.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Grant } from "./feegrant";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "cosmos.feegrant.v1beta1";
|
|
12
|
-
|
|
13
|
-
/** Since: cosmos-sdk 0.43 */
|
|
14
|
-
|
|
15
|
-
/** GenesisState contains a set of fee allowances, persisted from the store */
|
|
16
|
-
export interface GenesisState {
|
|
17
|
-
allowances: Grant[];
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function createBaseGenesisState(): GenesisState {
|
|
21
|
-
return { allowances: [] };
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const GenesisState: MessageFns<GenesisState> = {
|
|
25
|
-
encode(message: GenesisState, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
26
|
-
for (const v of message.allowances) {
|
|
27
|
-
Grant.encode(v!, writer.uint32(10).fork()).join();
|
|
28
|
-
}
|
|
29
|
-
return writer;
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
|
|
33
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
34
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35
|
-
const message = createBaseGenesisState();
|
|
36
|
-
while (reader.pos < end) {
|
|
37
|
-
const tag = reader.uint32();
|
|
38
|
-
switch (tag >>> 3) {
|
|
39
|
-
case 1: {
|
|
40
|
-
if (tag !== 10) {
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
message.allowances.push(Grant.decode(reader, reader.uint32()));
|
|
45
|
-
continue;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
reader.skip(tag & 7);
|
|
52
|
-
}
|
|
53
|
-
return message;
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
fromJSON(object: any): GenesisState {
|
|
57
|
-
return {
|
|
58
|
-
allowances: globalThis.Array.isArray(object?.allowances)
|
|
59
|
-
? object.allowances.map((e: any) => Grant.fromJSON(e))
|
|
60
|
-
: [],
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
toJSON(message: GenesisState): unknown {
|
|
65
|
-
const obj: any = {};
|
|
66
|
-
if (message.allowances?.length) {
|
|
67
|
-
obj.allowances = message.allowances.map((e) => Grant.toJSON(e));
|
|
68
|
-
}
|
|
69
|
-
return obj;
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
create<I extends Exact<DeepPartial<GenesisState>, I>>(base?: I): GenesisState {
|
|
73
|
-
return GenesisState.fromPartial(base ?? ({} as any));
|
|
74
|
-
},
|
|
75
|
-
fromPartial<I extends Exact<DeepPartial<GenesisState>, I>>(object: I): GenesisState {
|
|
76
|
-
const message = createBaseGenesisState();
|
|
77
|
-
message.allowances = object.allowances?.map((e) => Grant.fromPartial(e)) || [];
|
|
78
|
-
return message;
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
83
|
-
|
|
84
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
85
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
86
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
87
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
88
|
-
: Partial<T>;
|
|
89
|
-
|
|
90
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
91
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
92
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
93
|
-
|
|
94
|
-
export interface MessageFns<T> {
|
|
95
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
96
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
97
|
-
fromJSON(object: any): T;
|
|
98
|
-
toJSON(message: T): unknown;
|
|
99
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
100
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
101
|
-
}
|