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