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,630 +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/tx/signing/v1beta1/signing.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Any } from "../../../../google/protobuf/any";
|
|
10
|
-
import { CompactBitArray } from "../../../crypto/multisig/v1beta1/multisig";
|
|
11
|
-
|
|
12
|
-
export const protobufPackage = "cosmos.tx.signing.v1beta1";
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* SignMode represents a signing mode with its own security guarantees.
|
|
16
|
-
*
|
|
17
|
-
* This enum should be considered a registry of all known sign modes
|
|
18
|
-
* in the Cosmos ecosystem. Apps are not expected to support all known
|
|
19
|
-
* sign modes. Apps that would like to support custom sign modes are
|
|
20
|
-
* encouraged to open a small PR against this file to add a new case
|
|
21
|
-
* to this SignMode enum describing their sign mode so that different
|
|
22
|
-
* apps have a consistent version of this enum.
|
|
23
|
-
*/
|
|
24
|
-
export enum SignMode {
|
|
25
|
-
/**
|
|
26
|
-
* SIGN_MODE_UNSPECIFIED - SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be
|
|
27
|
-
* rejected.
|
|
28
|
-
*/
|
|
29
|
-
SIGN_MODE_UNSPECIFIED = 0,
|
|
30
|
-
/**
|
|
31
|
-
* SIGN_MODE_DIRECT - SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is
|
|
32
|
-
* verified with raw bytes from Tx.
|
|
33
|
-
*/
|
|
34
|
-
SIGN_MODE_DIRECT = 1,
|
|
35
|
-
/**
|
|
36
|
-
* SIGN_MODE_TEXTUAL - SIGN_MODE_TEXTUAL is a future signing mode that will verify some
|
|
37
|
-
* human-readable textual representation on top of the binary representation
|
|
38
|
-
* from SIGN_MODE_DIRECT.
|
|
39
|
-
*
|
|
40
|
-
* Since: cosmos-sdk 0.50
|
|
41
|
-
*/
|
|
42
|
-
SIGN_MODE_TEXTUAL = 2,
|
|
43
|
-
/**
|
|
44
|
-
* SIGN_MODE_DIRECT_AUX - SIGN_MODE_DIRECT_AUX specifies a signing mode which uses
|
|
45
|
-
* SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not
|
|
46
|
-
* require signers signing over other signers' `signer_info`.
|
|
47
|
-
*
|
|
48
|
-
* Since: cosmos-sdk 0.46
|
|
49
|
-
*/
|
|
50
|
-
SIGN_MODE_DIRECT_AUX = 3,
|
|
51
|
-
/**
|
|
52
|
-
* SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses
|
|
53
|
-
* Amino JSON and will be removed in the future.
|
|
54
|
-
*/
|
|
55
|
-
SIGN_MODE_LEGACY_AMINO_JSON = 127,
|
|
56
|
-
/**
|
|
57
|
-
* SIGN_MODE_EIP_191 - SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos
|
|
58
|
-
* SDK. Ref: https://eips.ethereum.org/EIPS/eip-191
|
|
59
|
-
*
|
|
60
|
-
* Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant,
|
|
61
|
-
* but is not implemented on the SDK by default. To enable EIP-191, you need
|
|
62
|
-
* to pass a custom `TxConfig` that has an implementation of
|
|
63
|
-
* `SignModeHandler` for EIP-191. The SDK may decide to fully support
|
|
64
|
-
* EIP-191 in the future.
|
|
65
|
-
*
|
|
66
|
-
* Since: cosmos-sdk 0.45.2
|
|
67
|
-
*/
|
|
68
|
-
SIGN_MODE_EIP_191 = 191,
|
|
69
|
-
UNRECOGNIZED = -1,
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function signModeFromJSON(object: any): SignMode {
|
|
73
|
-
switch (object) {
|
|
74
|
-
case 0:
|
|
75
|
-
case "SIGN_MODE_UNSPECIFIED":
|
|
76
|
-
return SignMode.SIGN_MODE_UNSPECIFIED;
|
|
77
|
-
case 1:
|
|
78
|
-
case "SIGN_MODE_DIRECT":
|
|
79
|
-
return SignMode.SIGN_MODE_DIRECT;
|
|
80
|
-
case 2:
|
|
81
|
-
case "SIGN_MODE_TEXTUAL":
|
|
82
|
-
return SignMode.SIGN_MODE_TEXTUAL;
|
|
83
|
-
case 3:
|
|
84
|
-
case "SIGN_MODE_DIRECT_AUX":
|
|
85
|
-
return SignMode.SIGN_MODE_DIRECT_AUX;
|
|
86
|
-
case 127:
|
|
87
|
-
case "SIGN_MODE_LEGACY_AMINO_JSON":
|
|
88
|
-
return SignMode.SIGN_MODE_LEGACY_AMINO_JSON;
|
|
89
|
-
case 191:
|
|
90
|
-
case "SIGN_MODE_EIP_191":
|
|
91
|
-
return SignMode.SIGN_MODE_EIP_191;
|
|
92
|
-
case -1:
|
|
93
|
-
case "UNRECOGNIZED":
|
|
94
|
-
default:
|
|
95
|
-
return SignMode.UNRECOGNIZED;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export function signModeToJSON(object: SignMode): string {
|
|
100
|
-
switch (object) {
|
|
101
|
-
case SignMode.SIGN_MODE_UNSPECIFIED:
|
|
102
|
-
return "SIGN_MODE_UNSPECIFIED";
|
|
103
|
-
case SignMode.SIGN_MODE_DIRECT:
|
|
104
|
-
return "SIGN_MODE_DIRECT";
|
|
105
|
-
case SignMode.SIGN_MODE_TEXTUAL:
|
|
106
|
-
return "SIGN_MODE_TEXTUAL";
|
|
107
|
-
case SignMode.SIGN_MODE_DIRECT_AUX:
|
|
108
|
-
return "SIGN_MODE_DIRECT_AUX";
|
|
109
|
-
case SignMode.SIGN_MODE_LEGACY_AMINO_JSON:
|
|
110
|
-
return "SIGN_MODE_LEGACY_AMINO_JSON";
|
|
111
|
-
case SignMode.SIGN_MODE_EIP_191:
|
|
112
|
-
return "SIGN_MODE_EIP_191";
|
|
113
|
-
case SignMode.UNRECOGNIZED:
|
|
114
|
-
default:
|
|
115
|
-
return "UNRECOGNIZED";
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/** SignatureDescriptors wraps multiple SignatureDescriptor's. */
|
|
120
|
-
export interface SignatureDescriptors {
|
|
121
|
-
/** signatures are the signature descriptors */
|
|
122
|
-
signatures: SignatureDescriptor[];
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* SignatureDescriptor is a convenience type which represents the full data for
|
|
127
|
-
* a signature including the public key of the signer, signing modes and the
|
|
128
|
-
* signature itself. It is primarily used for coordinating signatures between
|
|
129
|
-
* clients.
|
|
130
|
-
*/
|
|
131
|
-
export interface SignatureDescriptor {
|
|
132
|
-
/** public_key is the public key of the signer */
|
|
133
|
-
publicKey: Any | undefined;
|
|
134
|
-
data:
|
|
135
|
-
| SignatureDescriptor_Data
|
|
136
|
-
| undefined;
|
|
137
|
-
/**
|
|
138
|
-
* sequence is the sequence of the account, which describes the
|
|
139
|
-
* number of committed transactions signed by a given address. It is used to prevent
|
|
140
|
-
* replay attacks.
|
|
141
|
-
*/
|
|
142
|
-
sequence: number;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/** Data represents signature data */
|
|
146
|
-
export interface SignatureDescriptor_Data {
|
|
147
|
-
/** single represents a single signer */
|
|
148
|
-
single?:
|
|
149
|
-
| SignatureDescriptor_Data_Single
|
|
150
|
-
| undefined;
|
|
151
|
-
/** multi represents a multisig signer */
|
|
152
|
-
multi?: SignatureDescriptor_Data_Multi | undefined;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/** Single is the signature data for a single signer */
|
|
156
|
-
export interface SignatureDescriptor_Data_Single {
|
|
157
|
-
/** mode is the signing mode of the single signer */
|
|
158
|
-
mode: SignMode;
|
|
159
|
-
/** signature is the raw signature bytes */
|
|
160
|
-
signature: Uint8Array;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/** Multi is the signature data for a multisig public key */
|
|
164
|
-
export interface SignatureDescriptor_Data_Multi {
|
|
165
|
-
/** bitarray specifies which keys within the multisig are signing */
|
|
166
|
-
bitarray:
|
|
167
|
-
| CompactBitArray
|
|
168
|
-
| undefined;
|
|
169
|
-
/** signatures is the signatures of the multi-signature */
|
|
170
|
-
signatures: SignatureDescriptor_Data[];
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
function createBaseSignatureDescriptors(): SignatureDescriptors {
|
|
174
|
-
return { signatures: [] };
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export const SignatureDescriptors: MessageFns<SignatureDescriptors> = {
|
|
178
|
-
encode(message: SignatureDescriptors, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
179
|
-
for (const v of message.signatures) {
|
|
180
|
-
SignatureDescriptor.encode(v!, writer.uint32(10).fork()).join();
|
|
181
|
-
}
|
|
182
|
-
return writer;
|
|
183
|
-
},
|
|
184
|
-
|
|
185
|
-
decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptors {
|
|
186
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
187
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
188
|
-
const message = createBaseSignatureDescriptors();
|
|
189
|
-
while (reader.pos < end) {
|
|
190
|
-
const tag = reader.uint32();
|
|
191
|
-
switch (tag >>> 3) {
|
|
192
|
-
case 1: {
|
|
193
|
-
if (tag !== 10) {
|
|
194
|
-
break;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
message.signatures.push(SignatureDescriptor.decode(reader, reader.uint32()));
|
|
198
|
-
continue;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
202
|
-
break;
|
|
203
|
-
}
|
|
204
|
-
reader.skip(tag & 7);
|
|
205
|
-
}
|
|
206
|
-
return message;
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
fromJSON(object: any): SignatureDescriptors {
|
|
210
|
-
return {
|
|
211
|
-
signatures: globalThis.Array.isArray(object?.signatures)
|
|
212
|
-
? object.signatures.map((e: any) => SignatureDescriptor.fromJSON(e))
|
|
213
|
-
: [],
|
|
214
|
-
};
|
|
215
|
-
},
|
|
216
|
-
|
|
217
|
-
toJSON(message: SignatureDescriptors): unknown {
|
|
218
|
-
const obj: any = {};
|
|
219
|
-
if (message.signatures?.length) {
|
|
220
|
-
obj.signatures = message.signatures.map((e) => SignatureDescriptor.toJSON(e));
|
|
221
|
-
}
|
|
222
|
-
return obj;
|
|
223
|
-
},
|
|
224
|
-
|
|
225
|
-
create<I extends Exact<DeepPartial<SignatureDescriptors>, I>>(base?: I): SignatureDescriptors {
|
|
226
|
-
return SignatureDescriptors.fromPartial(base ?? ({} as any));
|
|
227
|
-
},
|
|
228
|
-
fromPartial<I extends Exact<DeepPartial<SignatureDescriptors>, I>>(object: I): SignatureDescriptors {
|
|
229
|
-
const message = createBaseSignatureDescriptors();
|
|
230
|
-
message.signatures = object.signatures?.map((e) => SignatureDescriptor.fromPartial(e)) || [];
|
|
231
|
-
return message;
|
|
232
|
-
},
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
function createBaseSignatureDescriptor(): SignatureDescriptor {
|
|
236
|
-
return { publicKey: undefined, data: undefined, sequence: 0 };
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
export const SignatureDescriptor: MessageFns<SignatureDescriptor> = {
|
|
240
|
-
encode(message: SignatureDescriptor, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
241
|
-
if (message.publicKey !== undefined) {
|
|
242
|
-
Any.encode(message.publicKey, writer.uint32(10).fork()).join();
|
|
243
|
-
}
|
|
244
|
-
if (message.data !== undefined) {
|
|
245
|
-
SignatureDescriptor_Data.encode(message.data, writer.uint32(18).fork()).join();
|
|
246
|
-
}
|
|
247
|
-
if (message.sequence !== 0) {
|
|
248
|
-
writer.uint32(24).uint64(message.sequence);
|
|
249
|
-
}
|
|
250
|
-
return writer;
|
|
251
|
-
},
|
|
252
|
-
|
|
253
|
-
decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor {
|
|
254
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
255
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
256
|
-
const message = createBaseSignatureDescriptor();
|
|
257
|
-
while (reader.pos < end) {
|
|
258
|
-
const tag = reader.uint32();
|
|
259
|
-
switch (tag >>> 3) {
|
|
260
|
-
case 1: {
|
|
261
|
-
if (tag !== 10) {
|
|
262
|
-
break;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
message.publicKey = Any.decode(reader, reader.uint32());
|
|
266
|
-
continue;
|
|
267
|
-
}
|
|
268
|
-
case 2: {
|
|
269
|
-
if (tag !== 18) {
|
|
270
|
-
break;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
message.data = SignatureDescriptor_Data.decode(reader, reader.uint32());
|
|
274
|
-
continue;
|
|
275
|
-
}
|
|
276
|
-
case 3: {
|
|
277
|
-
if (tag !== 24) {
|
|
278
|
-
break;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
message.sequence = longToNumber(reader.uint64());
|
|
282
|
-
continue;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
286
|
-
break;
|
|
287
|
-
}
|
|
288
|
-
reader.skip(tag & 7);
|
|
289
|
-
}
|
|
290
|
-
return message;
|
|
291
|
-
},
|
|
292
|
-
|
|
293
|
-
fromJSON(object: any): SignatureDescriptor {
|
|
294
|
-
return {
|
|
295
|
-
publicKey: isSet(object.publicKey) ? Any.fromJSON(object.publicKey) : undefined,
|
|
296
|
-
data: isSet(object.data) ? SignatureDescriptor_Data.fromJSON(object.data) : undefined,
|
|
297
|
-
sequence: isSet(object.sequence) ? globalThis.Number(object.sequence) : 0,
|
|
298
|
-
};
|
|
299
|
-
},
|
|
300
|
-
|
|
301
|
-
toJSON(message: SignatureDescriptor): unknown {
|
|
302
|
-
const obj: any = {};
|
|
303
|
-
if (message.publicKey !== undefined) {
|
|
304
|
-
obj.publicKey = Any.toJSON(message.publicKey);
|
|
305
|
-
}
|
|
306
|
-
if (message.data !== undefined) {
|
|
307
|
-
obj.data = SignatureDescriptor_Data.toJSON(message.data);
|
|
308
|
-
}
|
|
309
|
-
if (message.sequence !== 0) {
|
|
310
|
-
obj.sequence = Math.round(message.sequence);
|
|
311
|
-
}
|
|
312
|
-
return obj;
|
|
313
|
-
},
|
|
314
|
-
|
|
315
|
-
create<I extends Exact<DeepPartial<SignatureDescriptor>, I>>(base?: I): SignatureDescriptor {
|
|
316
|
-
return SignatureDescriptor.fromPartial(base ?? ({} as any));
|
|
317
|
-
},
|
|
318
|
-
fromPartial<I extends Exact<DeepPartial<SignatureDescriptor>, I>>(object: I): SignatureDescriptor {
|
|
319
|
-
const message = createBaseSignatureDescriptor();
|
|
320
|
-
message.publicKey = (object.publicKey !== undefined && object.publicKey !== null)
|
|
321
|
-
? Any.fromPartial(object.publicKey)
|
|
322
|
-
: undefined;
|
|
323
|
-
message.data = (object.data !== undefined && object.data !== null)
|
|
324
|
-
? SignatureDescriptor_Data.fromPartial(object.data)
|
|
325
|
-
: undefined;
|
|
326
|
-
message.sequence = object.sequence ?? 0;
|
|
327
|
-
return message;
|
|
328
|
-
},
|
|
329
|
-
};
|
|
330
|
-
|
|
331
|
-
function createBaseSignatureDescriptor_Data(): SignatureDescriptor_Data {
|
|
332
|
-
return { single: undefined, multi: undefined };
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
export const SignatureDescriptor_Data: MessageFns<SignatureDescriptor_Data> = {
|
|
336
|
-
encode(message: SignatureDescriptor_Data, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
337
|
-
if (message.single !== undefined) {
|
|
338
|
-
SignatureDescriptor_Data_Single.encode(message.single, writer.uint32(10).fork()).join();
|
|
339
|
-
}
|
|
340
|
-
if (message.multi !== undefined) {
|
|
341
|
-
SignatureDescriptor_Data_Multi.encode(message.multi, writer.uint32(18).fork()).join();
|
|
342
|
-
}
|
|
343
|
-
return writer;
|
|
344
|
-
},
|
|
345
|
-
|
|
346
|
-
decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data {
|
|
347
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
348
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
349
|
-
const message = createBaseSignatureDescriptor_Data();
|
|
350
|
-
while (reader.pos < end) {
|
|
351
|
-
const tag = reader.uint32();
|
|
352
|
-
switch (tag >>> 3) {
|
|
353
|
-
case 1: {
|
|
354
|
-
if (tag !== 10) {
|
|
355
|
-
break;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
message.single = SignatureDescriptor_Data_Single.decode(reader, reader.uint32());
|
|
359
|
-
continue;
|
|
360
|
-
}
|
|
361
|
-
case 2: {
|
|
362
|
-
if (tag !== 18) {
|
|
363
|
-
break;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
message.multi = SignatureDescriptor_Data_Multi.decode(reader, reader.uint32());
|
|
367
|
-
continue;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
371
|
-
break;
|
|
372
|
-
}
|
|
373
|
-
reader.skip(tag & 7);
|
|
374
|
-
}
|
|
375
|
-
return message;
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
fromJSON(object: any): SignatureDescriptor_Data {
|
|
379
|
-
return {
|
|
380
|
-
single: isSet(object.single) ? SignatureDescriptor_Data_Single.fromJSON(object.single) : undefined,
|
|
381
|
-
multi: isSet(object.multi) ? SignatureDescriptor_Data_Multi.fromJSON(object.multi) : undefined,
|
|
382
|
-
};
|
|
383
|
-
},
|
|
384
|
-
|
|
385
|
-
toJSON(message: SignatureDescriptor_Data): unknown {
|
|
386
|
-
const obj: any = {};
|
|
387
|
-
if (message.single !== undefined) {
|
|
388
|
-
obj.single = SignatureDescriptor_Data_Single.toJSON(message.single);
|
|
389
|
-
}
|
|
390
|
-
if (message.multi !== undefined) {
|
|
391
|
-
obj.multi = SignatureDescriptor_Data_Multi.toJSON(message.multi);
|
|
392
|
-
}
|
|
393
|
-
return obj;
|
|
394
|
-
},
|
|
395
|
-
|
|
396
|
-
create<I extends Exact<DeepPartial<SignatureDescriptor_Data>, I>>(base?: I): SignatureDescriptor_Data {
|
|
397
|
-
return SignatureDescriptor_Data.fromPartial(base ?? ({} as any));
|
|
398
|
-
},
|
|
399
|
-
fromPartial<I extends Exact<DeepPartial<SignatureDescriptor_Data>, I>>(object: I): SignatureDescriptor_Data {
|
|
400
|
-
const message = createBaseSignatureDescriptor_Data();
|
|
401
|
-
message.single = (object.single !== undefined && object.single !== null)
|
|
402
|
-
? SignatureDescriptor_Data_Single.fromPartial(object.single)
|
|
403
|
-
: undefined;
|
|
404
|
-
message.multi = (object.multi !== undefined && object.multi !== null)
|
|
405
|
-
? SignatureDescriptor_Data_Multi.fromPartial(object.multi)
|
|
406
|
-
: undefined;
|
|
407
|
-
return message;
|
|
408
|
-
},
|
|
409
|
-
};
|
|
410
|
-
|
|
411
|
-
function createBaseSignatureDescriptor_Data_Single(): SignatureDescriptor_Data_Single {
|
|
412
|
-
return { mode: 0, signature: new Uint8Array(0) };
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
export const SignatureDescriptor_Data_Single: MessageFns<SignatureDescriptor_Data_Single> = {
|
|
416
|
-
encode(message: SignatureDescriptor_Data_Single, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
417
|
-
if (message.mode !== 0) {
|
|
418
|
-
writer.uint32(8).int32(message.mode);
|
|
419
|
-
}
|
|
420
|
-
if (message.signature.length !== 0) {
|
|
421
|
-
writer.uint32(18).bytes(message.signature);
|
|
422
|
-
}
|
|
423
|
-
return writer;
|
|
424
|
-
},
|
|
425
|
-
|
|
426
|
-
decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data_Single {
|
|
427
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
428
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
429
|
-
const message = createBaseSignatureDescriptor_Data_Single();
|
|
430
|
-
while (reader.pos < end) {
|
|
431
|
-
const tag = reader.uint32();
|
|
432
|
-
switch (tag >>> 3) {
|
|
433
|
-
case 1: {
|
|
434
|
-
if (tag !== 8) {
|
|
435
|
-
break;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
message.mode = reader.int32() as any;
|
|
439
|
-
continue;
|
|
440
|
-
}
|
|
441
|
-
case 2: {
|
|
442
|
-
if (tag !== 18) {
|
|
443
|
-
break;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
message.signature = reader.bytes();
|
|
447
|
-
continue;
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
451
|
-
break;
|
|
452
|
-
}
|
|
453
|
-
reader.skip(tag & 7);
|
|
454
|
-
}
|
|
455
|
-
return message;
|
|
456
|
-
},
|
|
457
|
-
|
|
458
|
-
fromJSON(object: any): SignatureDescriptor_Data_Single {
|
|
459
|
-
return {
|
|
460
|
-
mode: isSet(object.mode) ? signModeFromJSON(object.mode) : 0,
|
|
461
|
-
signature: isSet(object.signature) ? bytesFromBase64(object.signature) : new Uint8Array(0),
|
|
462
|
-
};
|
|
463
|
-
},
|
|
464
|
-
|
|
465
|
-
toJSON(message: SignatureDescriptor_Data_Single): unknown {
|
|
466
|
-
const obj: any = {};
|
|
467
|
-
if (message.mode !== 0) {
|
|
468
|
-
obj.mode = signModeToJSON(message.mode);
|
|
469
|
-
}
|
|
470
|
-
if (message.signature.length !== 0) {
|
|
471
|
-
obj.signature = base64FromBytes(message.signature);
|
|
472
|
-
}
|
|
473
|
-
return obj;
|
|
474
|
-
},
|
|
475
|
-
|
|
476
|
-
create<I extends Exact<DeepPartial<SignatureDescriptor_Data_Single>, I>>(base?: I): SignatureDescriptor_Data_Single {
|
|
477
|
-
return SignatureDescriptor_Data_Single.fromPartial(base ?? ({} as any));
|
|
478
|
-
},
|
|
479
|
-
fromPartial<I extends Exact<DeepPartial<SignatureDescriptor_Data_Single>, I>>(
|
|
480
|
-
object: I,
|
|
481
|
-
): SignatureDescriptor_Data_Single {
|
|
482
|
-
const message = createBaseSignatureDescriptor_Data_Single();
|
|
483
|
-
message.mode = object.mode ?? 0;
|
|
484
|
-
message.signature = object.signature ?? new Uint8Array(0);
|
|
485
|
-
return message;
|
|
486
|
-
},
|
|
487
|
-
};
|
|
488
|
-
|
|
489
|
-
function createBaseSignatureDescriptor_Data_Multi(): SignatureDescriptor_Data_Multi {
|
|
490
|
-
return { bitarray: undefined, signatures: [] };
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
export const SignatureDescriptor_Data_Multi: MessageFns<SignatureDescriptor_Data_Multi> = {
|
|
494
|
-
encode(message: SignatureDescriptor_Data_Multi, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
495
|
-
if (message.bitarray !== undefined) {
|
|
496
|
-
CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).join();
|
|
497
|
-
}
|
|
498
|
-
for (const v of message.signatures) {
|
|
499
|
-
SignatureDescriptor_Data.encode(v!, writer.uint32(18).fork()).join();
|
|
500
|
-
}
|
|
501
|
-
return writer;
|
|
502
|
-
},
|
|
503
|
-
|
|
504
|
-
decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data_Multi {
|
|
505
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
506
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
507
|
-
const message = createBaseSignatureDescriptor_Data_Multi();
|
|
508
|
-
while (reader.pos < end) {
|
|
509
|
-
const tag = reader.uint32();
|
|
510
|
-
switch (tag >>> 3) {
|
|
511
|
-
case 1: {
|
|
512
|
-
if (tag !== 10) {
|
|
513
|
-
break;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
message.bitarray = CompactBitArray.decode(reader, reader.uint32());
|
|
517
|
-
continue;
|
|
518
|
-
}
|
|
519
|
-
case 2: {
|
|
520
|
-
if (tag !== 18) {
|
|
521
|
-
break;
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
message.signatures.push(SignatureDescriptor_Data.decode(reader, reader.uint32()));
|
|
525
|
-
continue;
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
529
|
-
break;
|
|
530
|
-
}
|
|
531
|
-
reader.skip(tag & 7);
|
|
532
|
-
}
|
|
533
|
-
return message;
|
|
534
|
-
},
|
|
535
|
-
|
|
536
|
-
fromJSON(object: any): SignatureDescriptor_Data_Multi {
|
|
537
|
-
return {
|
|
538
|
-
bitarray: isSet(object.bitarray) ? CompactBitArray.fromJSON(object.bitarray) : undefined,
|
|
539
|
-
signatures: globalThis.Array.isArray(object?.signatures)
|
|
540
|
-
? object.signatures.map((e: any) => SignatureDescriptor_Data.fromJSON(e))
|
|
541
|
-
: [],
|
|
542
|
-
};
|
|
543
|
-
},
|
|
544
|
-
|
|
545
|
-
toJSON(message: SignatureDescriptor_Data_Multi): unknown {
|
|
546
|
-
const obj: any = {};
|
|
547
|
-
if (message.bitarray !== undefined) {
|
|
548
|
-
obj.bitarray = CompactBitArray.toJSON(message.bitarray);
|
|
549
|
-
}
|
|
550
|
-
if (message.signatures?.length) {
|
|
551
|
-
obj.signatures = message.signatures.map((e) => SignatureDescriptor_Data.toJSON(e));
|
|
552
|
-
}
|
|
553
|
-
return obj;
|
|
554
|
-
},
|
|
555
|
-
|
|
556
|
-
create<I extends Exact<DeepPartial<SignatureDescriptor_Data_Multi>, I>>(base?: I): SignatureDescriptor_Data_Multi {
|
|
557
|
-
return SignatureDescriptor_Data_Multi.fromPartial(base ?? ({} as any));
|
|
558
|
-
},
|
|
559
|
-
fromPartial<I extends Exact<DeepPartial<SignatureDescriptor_Data_Multi>, I>>(
|
|
560
|
-
object: I,
|
|
561
|
-
): SignatureDescriptor_Data_Multi {
|
|
562
|
-
const message = createBaseSignatureDescriptor_Data_Multi();
|
|
563
|
-
message.bitarray = (object.bitarray !== undefined && object.bitarray !== null)
|
|
564
|
-
? CompactBitArray.fromPartial(object.bitarray)
|
|
565
|
-
: undefined;
|
|
566
|
-
message.signatures = object.signatures?.map((e) => SignatureDescriptor_Data.fromPartial(e)) || [];
|
|
567
|
-
return message;
|
|
568
|
-
},
|
|
569
|
-
};
|
|
570
|
-
|
|
571
|
-
function bytesFromBase64(b64: string): Uint8Array {
|
|
572
|
-
if ((globalThis as any).Buffer) {
|
|
573
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
574
|
-
} else {
|
|
575
|
-
const bin = globalThis.atob(b64);
|
|
576
|
-
const arr = new Uint8Array(bin.length);
|
|
577
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
578
|
-
arr[i] = bin.charCodeAt(i);
|
|
579
|
-
}
|
|
580
|
-
return arr;
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
function base64FromBytes(arr: Uint8Array): string {
|
|
585
|
-
if ((globalThis as any).Buffer) {
|
|
586
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
587
|
-
} else {
|
|
588
|
-
const bin: string[] = [];
|
|
589
|
-
arr.forEach((byte) => {
|
|
590
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
591
|
-
});
|
|
592
|
-
return globalThis.btoa(bin.join(""));
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
597
|
-
|
|
598
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
599
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
600
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
601
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
602
|
-
: Partial<T>;
|
|
603
|
-
|
|
604
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
605
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
606
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
607
|
-
|
|
608
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
609
|
-
const num = globalThis.Number(int64.toString());
|
|
610
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
611
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
612
|
-
}
|
|
613
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
614
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
615
|
-
}
|
|
616
|
-
return num;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
function isSet(value: any): boolean {
|
|
620
|
-
return value !== null && value !== undefined;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
export interface MessageFns<T> {
|
|
624
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
625
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
626
|
-
fromJSON(object: any): T;
|
|
627
|
-
toJSON(message: T): unknown;
|
|
628
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
629
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
630
|
-
}
|