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,213 +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/auth/v1beta1/tx.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Params } from "./auth";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "cosmos.auth.v1beta1";
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
15
|
-
*
|
|
16
|
-
* Since: cosmos-sdk 0.47
|
|
17
|
-
*/
|
|
18
|
-
export interface MsgUpdateParams {
|
|
19
|
-
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
20
|
-
authority: string;
|
|
21
|
-
/**
|
|
22
|
-
* params defines the x/auth parameters to update.
|
|
23
|
-
*
|
|
24
|
-
* NOTE: All parameters must be supplied.
|
|
25
|
-
*/
|
|
26
|
-
params: Params | undefined;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
31
|
-
* MsgUpdateParams message.
|
|
32
|
-
*
|
|
33
|
-
* Since: cosmos-sdk 0.47
|
|
34
|
-
*/
|
|
35
|
-
export interface MsgUpdateParamsResponse {
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
39
|
-
return { authority: "", params: undefined };
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export const MsgUpdateParams: MessageFns<MsgUpdateParams> = {
|
|
43
|
-
encode(message: MsgUpdateParams, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
44
|
-
if (message.authority !== "") {
|
|
45
|
-
writer.uint32(10).string(message.authority);
|
|
46
|
-
}
|
|
47
|
-
if (message.params !== undefined) {
|
|
48
|
-
Params.encode(message.params, writer.uint32(18).fork()).join();
|
|
49
|
-
}
|
|
50
|
-
return writer;
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
|
|
54
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
55
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
56
|
-
const message = createBaseMsgUpdateParams();
|
|
57
|
-
while (reader.pos < end) {
|
|
58
|
-
const tag = reader.uint32();
|
|
59
|
-
switch (tag >>> 3) {
|
|
60
|
-
case 1: {
|
|
61
|
-
if (tag !== 10) {
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
message.authority = reader.string();
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
case 2: {
|
|
69
|
-
if (tag !== 18) {
|
|
70
|
-
break;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
74
|
-
continue;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
reader.skip(tag & 7);
|
|
81
|
-
}
|
|
82
|
-
return message;
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
fromJSON(object: any): MsgUpdateParams {
|
|
86
|
-
return {
|
|
87
|
-
authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
|
|
88
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
89
|
-
};
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
toJSON(message: MsgUpdateParams): unknown {
|
|
93
|
-
const obj: any = {};
|
|
94
|
-
if (message.authority !== "") {
|
|
95
|
-
obj.authority = message.authority;
|
|
96
|
-
}
|
|
97
|
-
if (message.params !== undefined) {
|
|
98
|
-
obj.params = Params.toJSON(message.params);
|
|
99
|
-
}
|
|
100
|
-
return obj;
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
create<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(base?: I): MsgUpdateParams {
|
|
104
|
-
return MsgUpdateParams.fromPartial(base ?? ({} as any));
|
|
105
|
-
},
|
|
106
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(object: I): MsgUpdateParams {
|
|
107
|
-
const message = createBaseMsgUpdateParams();
|
|
108
|
-
message.authority = object.authority ?? "";
|
|
109
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
110
|
-
? Params.fromPartial(object.params)
|
|
111
|
-
: undefined;
|
|
112
|
-
return message;
|
|
113
|
-
},
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
117
|
-
return {};
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse> = {
|
|
121
|
-
encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
122
|
-
return writer;
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
126
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
127
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
128
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
129
|
-
while (reader.pos < end) {
|
|
130
|
-
const tag = reader.uint32();
|
|
131
|
-
switch (tag >>> 3) {
|
|
132
|
-
}
|
|
133
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
reader.skip(tag & 7);
|
|
137
|
-
}
|
|
138
|
-
return message;
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
fromJSON(_: any): MsgUpdateParamsResponse {
|
|
142
|
-
return {};
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
toJSON(_: MsgUpdateParamsResponse): unknown {
|
|
146
|
-
const obj: any = {};
|
|
147
|
-
return obj;
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
create<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(base?: I): MsgUpdateParamsResponse {
|
|
151
|
-
return MsgUpdateParamsResponse.fromPartial(base ?? ({} as any));
|
|
152
|
-
},
|
|
153
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse {
|
|
154
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
155
|
-
return message;
|
|
156
|
-
},
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
/** Msg defines the x/auth Msg service. */
|
|
160
|
-
export interface Msg {
|
|
161
|
-
/**
|
|
162
|
-
* UpdateParams defines a (governance) operation for updating the x/auth module
|
|
163
|
-
* parameters. The authority defaults to the x/gov module account.
|
|
164
|
-
*
|
|
165
|
-
* Since: cosmos-sdk 0.47
|
|
166
|
-
*/
|
|
167
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export const MsgServiceName = "cosmos.auth.v1beta1.Msg";
|
|
171
|
-
export class MsgClientImpl implements Msg {
|
|
172
|
-
private readonly rpc: Rpc;
|
|
173
|
-
private readonly service: string;
|
|
174
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
175
|
-
this.service = opts?.service || MsgServiceName;
|
|
176
|
-
this.rpc = rpc;
|
|
177
|
-
this.UpdateParams = this.UpdateParams.bind(this);
|
|
178
|
-
}
|
|
179
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse> {
|
|
180
|
-
const data = MsgUpdateParams.encode(request).finish();
|
|
181
|
-
const promise = this.rpc.request(this.service, "UpdateParams", data);
|
|
182
|
-
return promise.then((data) => MsgUpdateParamsResponse.decode(new BinaryReader(data)));
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
interface Rpc {
|
|
187
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
191
|
-
|
|
192
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
193
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
194
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
195
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
196
|
-
: Partial<T>;
|
|
197
|
-
|
|
198
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
199
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
200
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
201
|
-
|
|
202
|
-
function isSet(value: any): boolean {
|
|
203
|
-
return value !== null && value !== undefined;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export interface MessageFns<T> {
|
|
207
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
208
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
209
|
-
fromJSON(object: any): T;
|
|
210
|
-
toJSON(message: T): unknown;
|
|
211
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
212
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
213
|
-
}
|
|
@@ -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/authz/module/v1/module.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
|
|
10
|
-
export const protobufPackage = "cosmos.authz.module.v1";
|
|
11
|
-
|
|
12
|
-
/** Module is the config object of the authz 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,411 +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/authz.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Any } from "../../../google/protobuf/any";
|
|
10
|
-
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
11
|
-
|
|
12
|
-
export const protobufPackage = "cosmos.authz.v1beta1";
|
|
13
|
-
|
|
14
|
-
/** Since: cosmos-sdk 0.43 */
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* GenericAuthorization gives the grantee unrestricted permissions to execute
|
|
18
|
-
* the provided method on behalf of the granter's account.
|
|
19
|
-
*/
|
|
20
|
-
export interface GenericAuthorization {
|
|
21
|
-
/** Msg, identified by it's type URL, to grant unrestricted permissions to execute */
|
|
22
|
-
msg: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Grant gives permissions to execute
|
|
27
|
-
* the provide method with expiration time.
|
|
28
|
-
*/
|
|
29
|
-
export interface Grant {
|
|
30
|
-
authorization:
|
|
31
|
-
| Any
|
|
32
|
-
| undefined;
|
|
33
|
-
/**
|
|
34
|
-
* time when the grant will expire and will be pruned. If null, then the grant
|
|
35
|
-
* doesn't have a time expiration (other conditions in `authorization`
|
|
36
|
-
* may apply to invalidate the grant)
|
|
37
|
-
*/
|
|
38
|
-
expiration: Date | undefined;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* GrantAuthorization extends a grant with both the addresses of the grantee and granter.
|
|
43
|
-
* It is used in genesis.proto and query.proto
|
|
44
|
-
*/
|
|
45
|
-
export interface GrantAuthorization {
|
|
46
|
-
granter: string;
|
|
47
|
-
grantee: string;
|
|
48
|
-
authorization: Any | undefined;
|
|
49
|
-
expiration: Date | undefined;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */
|
|
53
|
-
export interface GrantQueueItem {
|
|
54
|
-
/** msg_type_urls contains the list of TypeURL of a sdk.Msg. */
|
|
55
|
-
msgTypeUrls: string[];
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function createBaseGenericAuthorization(): GenericAuthorization {
|
|
59
|
-
return { msg: "" };
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export const GenericAuthorization: MessageFns<GenericAuthorization> = {
|
|
63
|
-
encode(message: GenericAuthorization, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
64
|
-
if (message.msg !== "") {
|
|
65
|
-
writer.uint32(10).string(message.msg);
|
|
66
|
-
}
|
|
67
|
-
return writer;
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GenericAuthorization {
|
|
71
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
72
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
73
|
-
const message = createBaseGenericAuthorization();
|
|
74
|
-
while (reader.pos < end) {
|
|
75
|
-
const tag = reader.uint32();
|
|
76
|
-
switch (tag >>> 3) {
|
|
77
|
-
case 1: {
|
|
78
|
-
if (tag !== 10) {
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
message.msg = reader.string();
|
|
83
|
-
continue;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
reader.skip(tag & 7);
|
|
90
|
-
}
|
|
91
|
-
return message;
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
fromJSON(object: any): GenericAuthorization {
|
|
95
|
-
return { msg: isSet(object.msg) ? globalThis.String(object.msg) : "" };
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
toJSON(message: GenericAuthorization): unknown {
|
|
99
|
-
const obj: any = {};
|
|
100
|
-
if (message.msg !== "") {
|
|
101
|
-
obj.msg = message.msg;
|
|
102
|
-
}
|
|
103
|
-
return obj;
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
create<I extends Exact<DeepPartial<GenericAuthorization>, I>>(base?: I): GenericAuthorization {
|
|
107
|
-
return GenericAuthorization.fromPartial(base ?? ({} as any));
|
|
108
|
-
},
|
|
109
|
-
fromPartial<I extends Exact<DeepPartial<GenericAuthorization>, I>>(object: I): GenericAuthorization {
|
|
110
|
-
const message = createBaseGenericAuthorization();
|
|
111
|
-
message.msg = object.msg ?? "";
|
|
112
|
-
return message;
|
|
113
|
-
},
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
function createBaseGrant(): Grant {
|
|
117
|
-
return { authorization: undefined, expiration: undefined };
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export const Grant: MessageFns<Grant> = {
|
|
121
|
-
encode(message: Grant, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
122
|
-
if (message.authorization !== undefined) {
|
|
123
|
-
Any.encode(message.authorization, writer.uint32(10).fork()).join();
|
|
124
|
-
}
|
|
125
|
-
if (message.expiration !== undefined) {
|
|
126
|
-
Timestamp.encode(toTimestamp(message.expiration), writer.uint32(18).fork()).join();
|
|
127
|
-
}
|
|
128
|
-
return writer;
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Grant {
|
|
132
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
133
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
134
|
-
const message = createBaseGrant();
|
|
135
|
-
while (reader.pos < end) {
|
|
136
|
-
const tag = reader.uint32();
|
|
137
|
-
switch (tag >>> 3) {
|
|
138
|
-
case 1: {
|
|
139
|
-
if (tag !== 10) {
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
message.authorization = Any.decode(reader, reader.uint32());
|
|
144
|
-
continue;
|
|
145
|
-
}
|
|
146
|
-
case 2: {
|
|
147
|
-
if (tag !== 18) {
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
152
|
-
continue;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
|
-
reader.skip(tag & 7);
|
|
159
|
-
}
|
|
160
|
-
return message;
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
fromJSON(object: any): Grant {
|
|
164
|
-
return {
|
|
165
|
-
authorization: isSet(object.authorization) ? Any.fromJSON(object.authorization) : undefined,
|
|
166
|
-
expiration: isSet(object.expiration) ? fromJsonTimestamp(object.expiration) : undefined,
|
|
167
|
-
};
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
toJSON(message: Grant): unknown {
|
|
171
|
-
const obj: any = {};
|
|
172
|
-
if (message.authorization !== undefined) {
|
|
173
|
-
obj.authorization = Any.toJSON(message.authorization);
|
|
174
|
-
}
|
|
175
|
-
if (message.expiration !== undefined) {
|
|
176
|
-
obj.expiration = message.expiration.toISOString();
|
|
177
|
-
}
|
|
178
|
-
return obj;
|
|
179
|
-
},
|
|
180
|
-
|
|
181
|
-
create<I extends Exact<DeepPartial<Grant>, I>>(base?: I): Grant {
|
|
182
|
-
return Grant.fromPartial(base ?? ({} as any));
|
|
183
|
-
},
|
|
184
|
-
fromPartial<I extends Exact<DeepPartial<Grant>, I>>(object: I): Grant {
|
|
185
|
-
const message = createBaseGrant();
|
|
186
|
-
message.authorization = (object.authorization !== undefined && object.authorization !== null)
|
|
187
|
-
? Any.fromPartial(object.authorization)
|
|
188
|
-
: undefined;
|
|
189
|
-
message.expiration = object.expiration ?? undefined;
|
|
190
|
-
return message;
|
|
191
|
-
},
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
function createBaseGrantAuthorization(): GrantAuthorization {
|
|
195
|
-
return { granter: "", grantee: "", authorization: undefined, expiration: undefined };
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export const GrantAuthorization: MessageFns<GrantAuthorization> = {
|
|
199
|
-
encode(message: GrantAuthorization, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
200
|
-
if (message.granter !== "") {
|
|
201
|
-
writer.uint32(10).string(message.granter);
|
|
202
|
-
}
|
|
203
|
-
if (message.grantee !== "") {
|
|
204
|
-
writer.uint32(18).string(message.grantee);
|
|
205
|
-
}
|
|
206
|
-
if (message.authorization !== undefined) {
|
|
207
|
-
Any.encode(message.authorization, writer.uint32(26).fork()).join();
|
|
208
|
-
}
|
|
209
|
-
if (message.expiration !== undefined) {
|
|
210
|
-
Timestamp.encode(toTimestamp(message.expiration), writer.uint32(34).fork()).join();
|
|
211
|
-
}
|
|
212
|
-
return writer;
|
|
213
|
-
},
|
|
214
|
-
|
|
215
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GrantAuthorization {
|
|
216
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
217
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
218
|
-
const message = createBaseGrantAuthorization();
|
|
219
|
-
while (reader.pos < end) {
|
|
220
|
-
const tag = reader.uint32();
|
|
221
|
-
switch (tag >>> 3) {
|
|
222
|
-
case 1: {
|
|
223
|
-
if (tag !== 10) {
|
|
224
|
-
break;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
message.granter = reader.string();
|
|
228
|
-
continue;
|
|
229
|
-
}
|
|
230
|
-
case 2: {
|
|
231
|
-
if (tag !== 18) {
|
|
232
|
-
break;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
message.grantee = reader.string();
|
|
236
|
-
continue;
|
|
237
|
-
}
|
|
238
|
-
case 3: {
|
|
239
|
-
if (tag !== 26) {
|
|
240
|
-
break;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
message.authorization = Any.decode(reader, reader.uint32());
|
|
244
|
-
continue;
|
|
245
|
-
}
|
|
246
|
-
case 4: {
|
|
247
|
-
if (tag !== 34) {
|
|
248
|
-
break;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
252
|
-
continue;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
256
|
-
break;
|
|
257
|
-
}
|
|
258
|
-
reader.skip(tag & 7);
|
|
259
|
-
}
|
|
260
|
-
return message;
|
|
261
|
-
},
|
|
262
|
-
|
|
263
|
-
fromJSON(object: any): GrantAuthorization {
|
|
264
|
-
return {
|
|
265
|
-
granter: isSet(object.granter) ? globalThis.String(object.granter) : "",
|
|
266
|
-
grantee: isSet(object.grantee) ? globalThis.String(object.grantee) : "",
|
|
267
|
-
authorization: isSet(object.authorization) ? Any.fromJSON(object.authorization) : undefined,
|
|
268
|
-
expiration: isSet(object.expiration) ? fromJsonTimestamp(object.expiration) : undefined,
|
|
269
|
-
};
|
|
270
|
-
},
|
|
271
|
-
|
|
272
|
-
toJSON(message: GrantAuthorization): unknown {
|
|
273
|
-
const obj: any = {};
|
|
274
|
-
if (message.granter !== "") {
|
|
275
|
-
obj.granter = message.granter;
|
|
276
|
-
}
|
|
277
|
-
if (message.grantee !== "") {
|
|
278
|
-
obj.grantee = message.grantee;
|
|
279
|
-
}
|
|
280
|
-
if (message.authorization !== undefined) {
|
|
281
|
-
obj.authorization = Any.toJSON(message.authorization);
|
|
282
|
-
}
|
|
283
|
-
if (message.expiration !== undefined) {
|
|
284
|
-
obj.expiration = message.expiration.toISOString();
|
|
285
|
-
}
|
|
286
|
-
return obj;
|
|
287
|
-
},
|
|
288
|
-
|
|
289
|
-
create<I extends Exact<DeepPartial<GrantAuthorization>, I>>(base?: I): GrantAuthorization {
|
|
290
|
-
return GrantAuthorization.fromPartial(base ?? ({} as any));
|
|
291
|
-
},
|
|
292
|
-
fromPartial<I extends Exact<DeepPartial<GrantAuthorization>, I>>(object: I): GrantAuthorization {
|
|
293
|
-
const message = createBaseGrantAuthorization();
|
|
294
|
-
message.granter = object.granter ?? "";
|
|
295
|
-
message.grantee = object.grantee ?? "";
|
|
296
|
-
message.authorization = (object.authorization !== undefined && object.authorization !== null)
|
|
297
|
-
? Any.fromPartial(object.authorization)
|
|
298
|
-
: undefined;
|
|
299
|
-
message.expiration = object.expiration ?? undefined;
|
|
300
|
-
return message;
|
|
301
|
-
},
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
function createBaseGrantQueueItem(): GrantQueueItem {
|
|
305
|
-
return { msgTypeUrls: [] };
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
export const GrantQueueItem: MessageFns<GrantQueueItem> = {
|
|
309
|
-
encode(message: GrantQueueItem, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
310
|
-
for (const v of message.msgTypeUrls) {
|
|
311
|
-
writer.uint32(10).string(v!);
|
|
312
|
-
}
|
|
313
|
-
return writer;
|
|
314
|
-
},
|
|
315
|
-
|
|
316
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GrantQueueItem {
|
|
317
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
318
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
319
|
-
const message = createBaseGrantQueueItem();
|
|
320
|
-
while (reader.pos < end) {
|
|
321
|
-
const tag = reader.uint32();
|
|
322
|
-
switch (tag >>> 3) {
|
|
323
|
-
case 1: {
|
|
324
|
-
if (tag !== 10) {
|
|
325
|
-
break;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
message.msgTypeUrls.push(reader.string());
|
|
329
|
-
continue;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
333
|
-
break;
|
|
334
|
-
}
|
|
335
|
-
reader.skip(tag & 7);
|
|
336
|
-
}
|
|
337
|
-
return message;
|
|
338
|
-
},
|
|
339
|
-
|
|
340
|
-
fromJSON(object: any): GrantQueueItem {
|
|
341
|
-
return {
|
|
342
|
-
msgTypeUrls: globalThis.Array.isArray(object?.msgTypeUrls)
|
|
343
|
-
? object.msgTypeUrls.map((e: any) => globalThis.String(e))
|
|
344
|
-
: [],
|
|
345
|
-
};
|
|
346
|
-
},
|
|
347
|
-
|
|
348
|
-
toJSON(message: GrantQueueItem): unknown {
|
|
349
|
-
const obj: any = {};
|
|
350
|
-
if (message.msgTypeUrls?.length) {
|
|
351
|
-
obj.msgTypeUrls = message.msgTypeUrls;
|
|
352
|
-
}
|
|
353
|
-
return obj;
|
|
354
|
-
},
|
|
355
|
-
|
|
356
|
-
create<I extends Exact<DeepPartial<GrantQueueItem>, I>>(base?: I): GrantQueueItem {
|
|
357
|
-
return GrantQueueItem.fromPartial(base ?? ({} as any));
|
|
358
|
-
},
|
|
359
|
-
fromPartial<I extends Exact<DeepPartial<GrantQueueItem>, I>>(object: I): GrantQueueItem {
|
|
360
|
-
const message = createBaseGrantQueueItem();
|
|
361
|
-
message.msgTypeUrls = object.msgTypeUrls?.map((e) => e) || [];
|
|
362
|
-
return message;
|
|
363
|
-
},
|
|
364
|
-
};
|
|
365
|
-
|
|
366
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
367
|
-
|
|
368
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
369
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
370
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
371
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
372
|
-
: Partial<T>;
|
|
373
|
-
|
|
374
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
375
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
376
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
377
|
-
|
|
378
|
-
function toTimestamp(date: Date): Timestamp {
|
|
379
|
-
const seconds = Math.trunc(date.getTime() / 1_000);
|
|
380
|
-
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
381
|
-
return { seconds, nanos };
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
function fromTimestamp(t: Timestamp): Date {
|
|
385
|
-
let millis = (t.seconds || 0) * 1_000;
|
|
386
|
-
millis += (t.nanos || 0) / 1_000_000;
|
|
387
|
-
return new globalThis.Date(millis);
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
function fromJsonTimestamp(o: any): Date {
|
|
391
|
-
if (o instanceof globalThis.Date) {
|
|
392
|
-
return o;
|
|
393
|
-
} else if (typeof o === "string") {
|
|
394
|
-
return new globalThis.Date(o);
|
|
395
|
-
} else {
|
|
396
|
-
return fromTimestamp(Timestamp.fromJSON(o));
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
function isSet(value: any): boolean {
|
|
401
|
-
return value !== null && value !== undefined;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
export interface MessageFns<T> {
|
|
405
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
406
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
407
|
-
fromJSON(object: any): T;
|
|
408
|
-
toJSON(message: T): unknown;
|
|
409
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
410
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
411
|
-
}
|