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,367 +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/crisis/v1beta1/tx.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Coin } from "../../base/v1beta1/coin";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "cosmos.crisis.v1beta1";
|
|
12
|
-
|
|
13
|
-
/** MsgVerifyInvariant represents a message to verify a particular invariance. */
|
|
14
|
-
export interface MsgVerifyInvariant {
|
|
15
|
-
/** sender is the account address of private key to send coins to fee collector account. */
|
|
16
|
-
sender: string;
|
|
17
|
-
/** name of the invariant module. */
|
|
18
|
-
invariantModuleName: string;
|
|
19
|
-
/** invariant_route is the msg's invariant route. */
|
|
20
|
-
invariantRoute: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */
|
|
24
|
-
export interface MsgVerifyInvariantResponse {
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
29
|
-
*
|
|
30
|
-
* Since: cosmos-sdk 0.47
|
|
31
|
-
*/
|
|
32
|
-
export interface MsgUpdateParams {
|
|
33
|
-
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
34
|
-
authority: string;
|
|
35
|
-
/** constant_fee defines the x/crisis parameter. */
|
|
36
|
-
constantFee: Coin | undefined;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
41
|
-
* MsgUpdateParams message.
|
|
42
|
-
*
|
|
43
|
-
* Since: cosmos-sdk 0.47
|
|
44
|
-
*/
|
|
45
|
-
export interface MsgUpdateParamsResponse {
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function createBaseMsgVerifyInvariant(): MsgVerifyInvariant {
|
|
49
|
-
return { sender: "", invariantModuleName: "", invariantRoute: "" };
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export const MsgVerifyInvariant: MessageFns<MsgVerifyInvariant> = {
|
|
53
|
-
encode(message: MsgVerifyInvariant, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
54
|
-
if (message.sender !== "") {
|
|
55
|
-
writer.uint32(10).string(message.sender);
|
|
56
|
-
}
|
|
57
|
-
if (message.invariantModuleName !== "") {
|
|
58
|
-
writer.uint32(18).string(message.invariantModuleName);
|
|
59
|
-
}
|
|
60
|
-
if (message.invariantRoute !== "") {
|
|
61
|
-
writer.uint32(26).string(message.invariantRoute);
|
|
62
|
-
}
|
|
63
|
-
return writer;
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgVerifyInvariant {
|
|
67
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
68
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
69
|
-
const message = createBaseMsgVerifyInvariant();
|
|
70
|
-
while (reader.pos < end) {
|
|
71
|
-
const tag = reader.uint32();
|
|
72
|
-
switch (tag >>> 3) {
|
|
73
|
-
case 1: {
|
|
74
|
-
if (tag !== 10) {
|
|
75
|
-
break;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
message.sender = reader.string();
|
|
79
|
-
continue;
|
|
80
|
-
}
|
|
81
|
-
case 2: {
|
|
82
|
-
if (tag !== 18) {
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
message.invariantModuleName = reader.string();
|
|
87
|
-
continue;
|
|
88
|
-
}
|
|
89
|
-
case 3: {
|
|
90
|
-
if (tag !== 26) {
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
message.invariantRoute = reader.string();
|
|
95
|
-
continue;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
99
|
-
break;
|
|
100
|
-
}
|
|
101
|
-
reader.skip(tag & 7);
|
|
102
|
-
}
|
|
103
|
-
return message;
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
fromJSON(object: any): MsgVerifyInvariant {
|
|
107
|
-
return {
|
|
108
|
-
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
109
|
-
invariantModuleName: isSet(object.invariantModuleName) ? globalThis.String(object.invariantModuleName) : "",
|
|
110
|
-
invariantRoute: isSet(object.invariantRoute) ? globalThis.String(object.invariantRoute) : "",
|
|
111
|
-
};
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
toJSON(message: MsgVerifyInvariant): unknown {
|
|
115
|
-
const obj: any = {};
|
|
116
|
-
if (message.sender !== "") {
|
|
117
|
-
obj.sender = message.sender;
|
|
118
|
-
}
|
|
119
|
-
if (message.invariantModuleName !== "") {
|
|
120
|
-
obj.invariantModuleName = message.invariantModuleName;
|
|
121
|
-
}
|
|
122
|
-
if (message.invariantRoute !== "") {
|
|
123
|
-
obj.invariantRoute = message.invariantRoute;
|
|
124
|
-
}
|
|
125
|
-
return obj;
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
create<I extends Exact<DeepPartial<MsgVerifyInvariant>, I>>(base?: I): MsgVerifyInvariant {
|
|
129
|
-
return MsgVerifyInvariant.fromPartial(base ?? ({} as any));
|
|
130
|
-
},
|
|
131
|
-
fromPartial<I extends Exact<DeepPartial<MsgVerifyInvariant>, I>>(object: I): MsgVerifyInvariant {
|
|
132
|
-
const message = createBaseMsgVerifyInvariant();
|
|
133
|
-
message.sender = object.sender ?? "";
|
|
134
|
-
message.invariantModuleName = object.invariantModuleName ?? "";
|
|
135
|
-
message.invariantRoute = object.invariantRoute ?? "";
|
|
136
|
-
return message;
|
|
137
|
-
},
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
function createBaseMsgVerifyInvariantResponse(): MsgVerifyInvariantResponse {
|
|
141
|
-
return {};
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export const MsgVerifyInvariantResponse: MessageFns<MsgVerifyInvariantResponse> = {
|
|
145
|
-
encode(_: MsgVerifyInvariantResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
146
|
-
return writer;
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgVerifyInvariantResponse {
|
|
150
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
151
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
152
|
-
const message = createBaseMsgVerifyInvariantResponse();
|
|
153
|
-
while (reader.pos < end) {
|
|
154
|
-
const tag = reader.uint32();
|
|
155
|
-
switch (tag >>> 3) {
|
|
156
|
-
}
|
|
157
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
reader.skip(tag & 7);
|
|
161
|
-
}
|
|
162
|
-
return message;
|
|
163
|
-
},
|
|
164
|
-
|
|
165
|
-
fromJSON(_: any): MsgVerifyInvariantResponse {
|
|
166
|
-
return {};
|
|
167
|
-
},
|
|
168
|
-
|
|
169
|
-
toJSON(_: MsgVerifyInvariantResponse): unknown {
|
|
170
|
-
const obj: any = {};
|
|
171
|
-
return obj;
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
create<I extends Exact<DeepPartial<MsgVerifyInvariantResponse>, I>>(base?: I): MsgVerifyInvariantResponse {
|
|
175
|
-
return MsgVerifyInvariantResponse.fromPartial(base ?? ({} as any));
|
|
176
|
-
},
|
|
177
|
-
fromPartial<I extends Exact<DeepPartial<MsgVerifyInvariantResponse>, I>>(_: I): MsgVerifyInvariantResponse {
|
|
178
|
-
const message = createBaseMsgVerifyInvariantResponse();
|
|
179
|
-
return message;
|
|
180
|
-
},
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
184
|
-
return { authority: "", constantFee: undefined };
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export const MsgUpdateParams: MessageFns<MsgUpdateParams> = {
|
|
188
|
-
encode(message: MsgUpdateParams, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
189
|
-
if (message.authority !== "") {
|
|
190
|
-
writer.uint32(10).string(message.authority);
|
|
191
|
-
}
|
|
192
|
-
if (message.constantFee !== undefined) {
|
|
193
|
-
Coin.encode(message.constantFee, writer.uint32(18).fork()).join();
|
|
194
|
-
}
|
|
195
|
-
return writer;
|
|
196
|
-
},
|
|
197
|
-
|
|
198
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
|
|
199
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
200
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
201
|
-
const message = createBaseMsgUpdateParams();
|
|
202
|
-
while (reader.pos < end) {
|
|
203
|
-
const tag = reader.uint32();
|
|
204
|
-
switch (tag >>> 3) {
|
|
205
|
-
case 1: {
|
|
206
|
-
if (tag !== 10) {
|
|
207
|
-
break;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
message.authority = reader.string();
|
|
211
|
-
continue;
|
|
212
|
-
}
|
|
213
|
-
case 2: {
|
|
214
|
-
if (tag !== 18) {
|
|
215
|
-
break;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
message.constantFee = Coin.decode(reader, reader.uint32());
|
|
219
|
-
continue;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
223
|
-
break;
|
|
224
|
-
}
|
|
225
|
-
reader.skip(tag & 7);
|
|
226
|
-
}
|
|
227
|
-
return message;
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
fromJSON(object: any): MsgUpdateParams {
|
|
231
|
-
return {
|
|
232
|
-
authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
|
|
233
|
-
constantFee: isSet(object.constantFee) ? Coin.fromJSON(object.constantFee) : undefined,
|
|
234
|
-
};
|
|
235
|
-
},
|
|
236
|
-
|
|
237
|
-
toJSON(message: MsgUpdateParams): unknown {
|
|
238
|
-
const obj: any = {};
|
|
239
|
-
if (message.authority !== "") {
|
|
240
|
-
obj.authority = message.authority;
|
|
241
|
-
}
|
|
242
|
-
if (message.constantFee !== undefined) {
|
|
243
|
-
obj.constantFee = Coin.toJSON(message.constantFee);
|
|
244
|
-
}
|
|
245
|
-
return obj;
|
|
246
|
-
},
|
|
247
|
-
|
|
248
|
-
create<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(base?: I): MsgUpdateParams {
|
|
249
|
-
return MsgUpdateParams.fromPartial(base ?? ({} as any));
|
|
250
|
-
},
|
|
251
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(object: I): MsgUpdateParams {
|
|
252
|
-
const message = createBaseMsgUpdateParams();
|
|
253
|
-
message.authority = object.authority ?? "";
|
|
254
|
-
message.constantFee = (object.constantFee !== undefined && object.constantFee !== null)
|
|
255
|
-
? Coin.fromPartial(object.constantFee)
|
|
256
|
-
: undefined;
|
|
257
|
-
return message;
|
|
258
|
-
},
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
262
|
-
return {};
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse> = {
|
|
266
|
-
encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
267
|
-
return writer;
|
|
268
|
-
},
|
|
269
|
-
|
|
270
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
271
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
272
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
273
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
274
|
-
while (reader.pos < end) {
|
|
275
|
-
const tag = reader.uint32();
|
|
276
|
-
switch (tag >>> 3) {
|
|
277
|
-
}
|
|
278
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
279
|
-
break;
|
|
280
|
-
}
|
|
281
|
-
reader.skip(tag & 7);
|
|
282
|
-
}
|
|
283
|
-
return message;
|
|
284
|
-
},
|
|
285
|
-
|
|
286
|
-
fromJSON(_: any): MsgUpdateParamsResponse {
|
|
287
|
-
return {};
|
|
288
|
-
},
|
|
289
|
-
|
|
290
|
-
toJSON(_: MsgUpdateParamsResponse): unknown {
|
|
291
|
-
const obj: any = {};
|
|
292
|
-
return obj;
|
|
293
|
-
},
|
|
294
|
-
|
|
295
|
-
create<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(base?: I): MsgUpdateParamsResponse {
|
|
296
|
-
return MsgUpdateParamsResponse.fromPartial(base ?? ({} as any));
|
|
297
|
-
},
|
|
298
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse {
|
|
299
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
300
|
-
return message;
|
|
301
|
-
},
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
/** Msg defines the bank Msg service. */
|
|
305
|
-
export interface Msg {
|
|
306
|
-
/** VerifyInvariant defines a method to verify a particular invariant. */
|
|
307
|
-
VerifyInvariant(request: MsgVerifyInvariant): Promise<MsgVerifyInvariantResponse>;
|
|
308
|
-
/**
|
|
309
|
-
* UpdateParams defines a governance operation for updating the x/crisis module
|
|
310
|
-
* parameters. The authority is defined in the keeper.
|
|
311
|
-
*
|
|
312
|
-
* Since: cosmos-sdk 0.47
|
|
313
|
-
*/
|
|
314
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
export const MsgServiceName = "cosmos.crisis.v1beta1.Msg";
|
|
318
|
-
export class MsgClientImpl implements Msg {
|
|
319
|
-
private readonly rpc: Rpc;
|
|
320
|
-
private readonly service: string;
|
|
321
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
322
|
-
this.service = opts?.service || MsgServiceName;
|
|
323
|
-
this.rpc = rpc;
|
|
324
|
-
this.VerifyInvariant = this.VerifyInvariant.bind(this);
|
|
325
|
-
this.UpdateParams = this.UpdateParams.bind(this);
|
|
326
|
-
}
|
|
327
|
-
VerifyInvariant(request: MsgVerifyInvariant): Promise<MsgVerifyInvariantResponse> {
|
|
328
|
-
const data = MsgVerifyInvariant.encode(request).finish();
|
|
329
|
-
const promise = this.rpc.request(this.service, "VerifyInvariant", data);
|
|
330
|
-
return promise.then((data) => MsgVerifyInvariantResponse.decode(new BinaryReader(data)));
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse> {
|
|
334
|
-
const data = MsgUpdateParams.encode(request).finish();
|
|
335
|
-
const promise = this.rpc.request(this.service, "UpdateParams", data);
|
|
336
|
-
return promise.then((data) => MsgUpdateParamsResponse.decode(new BinaryReader(data)));
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
interface Rpc {
|
|
341
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
345
|
-
|
|
346
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
347
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
348
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
349
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
350
|
-
: Partial<T>;
|
|
351
|
-
|
|
352
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
353
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
354
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
355
|
-
|
|
356
|
-
function isSet(value: any): boolean {
|
|
357
|
-
return value !== null && value !== undefined;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
export interface MessageFns<T> {
|
|
361
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
362
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
363
|
-
fromJSON(object: any): T;
|
|
364
|
-
toJSON(message: T): unknown;
|
|
365
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
366
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
367
|
-
}
|
|
@@ -1,195 +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/crypto/ed25519/keys.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
|
|
10
|
-
export const protobufPackage = "cosmos.crypto.ed25519";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* PubKey is an ed25519 public key for handling Tendermint keys in SDK.
|
|
14
|
-
* It's needed for Any serialization and SDK compatibility.
|
|
15
|
-
* It must not be used in a non Tendermint key context because it doesn't implement
|
|
16
|
-
* ADR-28. Nevertheless, you will like to use ed25519 in app user level
|
|
17
|
-
* then you must create a new proto message and follow ADR-28 for Address construction.
|
|
18
|
-
*/
|
|
19
|
-
export interface PubKey {
|
|
20
|
-
key: Uint8Array;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* PrivKey defines a ed25519 private key.
|
|
25
|
-
* NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context.
|
|
26
|
-
*/
|
|
27
|
-
export interface PrivKey {
|
|
28
|
-
key: Uint8Array;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function createBasePubKey(): PubKey {
|
|
32
|
-
return { key: new Uint8Array(0) };
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export const PubKey: MessageFns<PubKey> = {
|
|
36
|
-
encode(message: PubKey, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
37
|
-
if (message.key.length !== 0) {
|
|
38
|
-
writer.uint32(10).bytes(message.key);
|
|
39
|
-
}
|
|
40
|
-
return writer;
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
decode(input: BinaryReader | Uint8Array, length?: number): PubKey {
|
|
44
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
45
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
46
|
-
const message = createBasePubKey();
|
|
47
|
-
while (reader.pos < end) {
|
|
48
|
-
const tag = reader.uint32();
|
|
49
|
-
switch (tag >>> 3) {
|
|
50
|
-
case 1: {
|
|
51
|
-
if (tag !== 10) {
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
message.key = reader.bytes();
|
|
56
|
-
continue;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
reader.skip(tag & 7);
|
|
63
|
-
}
|
|
64
|
-
return message;
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
fromJSON(object: any): PubKey {
|
|
68
|
-
return { key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(0) };
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
toJSON(message: PubKey): unknown {
|
|
72
|
-
const obj: any = {};
|
|
73
|
-
if (message.key.length !== 0) {
|
|
74
|
-
obj.key = base64FromBytes(message.key);
|
|
75
|
-
}
|
|
76
|
-
return obj;
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
create<I extends Exact<DeepPartial<PubKey>, I>>(base?: I): PubKey {
|
|
80
|
-
return PubKey.fromPartial(base ?? ({} as any));
|
|
81
|
-
},
|
|
82
|
-
fromPartial<I extends Exact<DeepPartial<PubKey>, I>>(object: I): PubKey {
|
|
83
|
-
const message = createBasePubKey();
|
|
84
|
-
message.key = object.key ?? new Uint8Array(0);
|
|
85
|
-
return message;
|
|
86
|
-
},
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
function createBasePrivKey(): PrivKey {
|
|
90
|
-
return { key: new Uint8Array(0) };
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export const PrivKey: MessageFns<PrivKey> = {
|
|
94
|
-
encode(message: PrivKey, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
95
|
-
if (message.key.length !== 0) {
|
|
96
|
-
writer.uint32(10).bytes(message.key);
|
|
97
|
-
}
|
|
98
|
-
return writer;
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
decode(input: BinaryReader | Uint8Array, length?: number): PrivKey {
|
|
102
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
103
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
104
|
-
const message = createBasePrivKey();
|
|
105
|
-
while (reader.pos < end) {
|
|
106
|
-
const tag = reader.uint32();
|
|
107
|
-
switch (tag >>> 3) {
|
|
108
|
-
case 1: {
|
|
109
|
-
if (tag !== 10) {
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
message.key = reader.bytes();
|
|
114
|
-
continue;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
reader.skip(tag & 7);
|
|
121
|
-
}
|
|
122
|
-
return message;
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
fromJSON(object: any): PrivKey {
|
|
126
|
-
return { key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(0) };
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
toJSON(message: PrivKey): unknown {
|
|
130
|
-
const obj: any = {};
|
|
131
|
-
if (message.key.length !== 0) {
|
|
132
|
-
obj.key = base64FromBytes(message.key);
|
|
133
|
-
}
|
|
134
|
-
return obj;
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
create<I extends Exact<DeepPartial<PrivKey>, I>>(base?: I): PrivKey {
|
|
138
|
-
return PrivKey.fromPartial(base ?? ({} as any));
|
|
139
|
-
},
|
|
140
|
-
fromPartial<I extends Exact<DeepPartial<PrivKey>, I>>(object: I): PrivKey {
|
|
141
|
-
const message = createBasePrivKey();
|
|
142
|
-
message.key = object.key ?? new Uint8Array(0);
|
|
143
|
-
return message;
|
|
144
|
-
},
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
function bytesFromBase64(b64: string): Uint8Array {
|
|
148
|
-
if ((globalThis as any).Buffer) {
|
|
149
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
150
|
-
} else {
|
|
151
|
-
const bin = globalThis.atob(b64);
|
|
152
|
-
const arr = new Uint8Array(bin.length);
|
|
153
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
154
|
-
arr[i] = bin.charCodeAt(i);
|
|
155
|
-
}
|
|
156
|
-
return arr;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
function base64FromBytes(arr: Uint8Array): string {
|
|
161
|
-
if ((globalThis as any).Buffer) {
|
|
162
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
163
|
-
} else {
|
|
164
|
-
const bin: string[] = [];
|
|
165
|
-
arr.forEach((byte) => {
|
|
166
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
167
|
-
});
|
|
168
|
-
return globalThis.btoa(bin.join(""));
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
173
|
-
|
|
174
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
175
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
176
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
177
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
178
|
-
: Partial<T>;
|
|
179
|
-
|
|
180
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
181
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
182
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
183
|
-
|
|
184
|
-
function isSet(value: any): boolean {
|
|
185
|
-
return value !== null && value !== undefined;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export interface MessageFns<T> {
|
|
189
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
190
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
191
|
-
fromJSON(object: any): T;
|
|
192
|
-
toJSON(message: T): unknown;
|
|
193
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
194
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
195
|
-
}
|