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,933 +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/orm/query/v1alpha1/query.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Any } from "../../../../google/protobuf/any";
|
|
10
|
-
import { Duration } from "../../../../google/protobuf/duration";
|
|
11
|
-
import { Timestamp } from "../../../../google/protobuf/timestamp";
|
|
12
|
-
import { PageRequest, PageResponse } from "../../../base/query/v1beta1/pagination";
|
|
13
|
-
|
|
14
|
-
export const protobufPackage = "cosmos.orm.query.v1alpha1";
|
|
15
|
-
|
|
16
|
-
/** GetRequest is the Query/Get request type. */
|
|
17
|
-
export interface GetRequest {
|
|
18
|
-
/** message_name is the fully-qualified message name of the ORM table being queried. */
|
|
19
|
-
messageName: string;
|
|
20
|
-
/**
|
|
21
|
-
* index is the index fields expression used in orm definitions. If it
|
|
22
|
-
* is empty, the table's primary key is assumed. If it is non-empty, it must
|
|
23
|
-
* refer to an unique index.
|
|
24
|
-
*/
|
|
25
|
-
index: string;
|
|
26
|
-
/**
|
|
27
|
-
* values are the values of the fields corresponding to the requested index.
|
|
28
|
-
* There must be as many values provided as there are fields in the index and
|
|
29
|
-
* these values must correspond to the index field types.
|
|
30
|
-
*/
|
|
31
|
-
values: IndexValue[];
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/** GetResponse is the Query/Get response type. */
|
|
35
|
-
export interface GetResponse {
|
|
36
|
-
/**
|
|
37
|
-
* result is the result of the get query. If no value is found, the gRPC
|
|
38
|
-
* status code NOT_FOUND will be returned.
|
|
39
|
-
*/
|
|
40
|
-
result: Any | undefined;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/** ListRequest is the Query/List request type. */
|
|
44
|
-
export interface ListRequest {
|
|
45
|
-
/** message_name is the fully-qualified message name of the ORM table being queried. */
|
|
46
|
-
messageName: string;
|
|
47
|
-
/**
|
|
48
|
-
* index is the index fields expression used in orm definitions. If it
|
|
49
|
-
* is empty, the table's primary key is assumed.
|
|
50
|
-
*/
|
|
51
|
-
index: string;
|
|
52
|
-
/** prefix defines a prefix query. */
|
|
53
|
-
prefix?:
|
|
54
|
-
| ListRequest_Prefix
|
|
55
|
-
| undefined;
|
|
56
|
-
/** range defines a range query. */
|
|
57
|
-
range?:
|
|
58
|
-
| ListRequest_Range
|
|
59
|
-
| undefined;
|
|
60
|
-
/** pagination is the pagination request. */
|
|
61
|
-
pagination: PageRequest | undefined;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/** Prefix specifies the arguments to a prefix query. */
|
|
65
|
-
export interface ListRequest_Prefix {
|
|
66
|
-
/**
|
|
67
|
-
* values specifies the index values for the prefix query.
|
|
68
|
-
* It is valid to special a partial prefix with fewer values than
|
|
69
|
-
* the number of fields in the index.
|
|
70
|
-
*/
|
|
71
|
-
values: IndexValue[];
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/** Range specifies the arguments to a range query. */
|
|
75
|
-
export interface ListRequest_Range {
|
|
76
|
-
/**
|
|
77
|
-
* start specifies the starting index values for the range query.
|
|
78
|
-
* It is valid to provide fewer values than the number of fields in the
|
|
79
|
-
* index.
|
|
80
|
-
*/
|
|
81
|
-
start: IndexValue[];
|
|
82
|
-
/**
|
|
83
|
-
* end specifies the inclusive ending index values for the range query.
|
|
84
|
-
* It is valid to provide fewer values than the number of fields in the
|
|
85
|
-
* index.
|
|
86
|
-
*/
|
|
87
|
-
end: IndexValue[];
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/** ListResponse is the Query/List response type. */
|
|
91
|
-
export interface ListResponse {
|
|
92
|
-
/** results are the results of the query. */
|
|
93
|
-
results: Any[];
|
|
94
|
-
/** pagination is the pagination response. */
|
|
95
|
-
pagination: PageResponse | undefined;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/** IndexValue represents the value of a field in an ORM index expression. */
|
|
99
|
-
export interface IndexValue {
|
|
100
|
-
/**
|
|
101
|
-
* uint specifies a value for an uint32, fixed32, uint64, or fixed64
|
|
102
|
-
* index field.
|
|
103
|
-
*/
|
|
104
|
-
uint?:
|
|
105
|
-
| number
|
|
106
|
-
| undefined;
|
|
107
|
-
/**
|
|
108
|
-
* int64 specifies a value for an int32, sfixed32, int64, or sfixed64
|
|
109
|
-
* index field.
|
|
110
|
-
*/
|
|
111
|
-
int?:
|
|
112
|
-
| number
|
|
113
|
-
| undefined;
|
|
114
|
-
/** str specifies a value for a string index field. */
|
|
115
|
-
str?:
|
|
116
|
-
| string
|
|
117
|
-
| undefined;
|
|
118
|
-
/** bytes specifies a value for a bytes index field. */
|
|
119
|
-
bytes?:
|
|
120
|
-
| Uint8Array
|
|
121
|
-
| undefined;
|
|
122
|
-
/** enum specifies a value for an enum index field. */
|
|
123
|
-
enum?:
|
|
124
|
-
| string
|
|
125
|
-
| undefined;
|
|
126
|
-
/** bool specifies a value for a bool index field. */
|
|
127
|
-
bool?:
|
|
128
|
-
| boolean
|
|
129
|
-
| undefined;
|
|
130
|
-
/** timestamp specifies a value for a timestamp index field. */
|
|
131
|
-
timestamp?:
|
|
132
|
-
| Date
|
|
133
|
-
| undefined;
|
|
134
|
-
/** duration specifies a value for a duration index field. */
|
|
135
|
-
duration?: Duration | undefined;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
function createBaseGetRequest(): GetRequest {
|
|
139
|
-
return { messageName: "", index: "", values: [] };
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export const GetRequest: MessageFns<GetRequest> = {
|
|
143
|
-
encode(message: GetRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
144
|
-
if (message.messageName !== "") {
|
|
145
|
-
writer.uint32(10).string(message.messageName);
|
|
146
|
-
}
|
|
147
|
-
if (message.index !== "") {
|
|
148
|
-
writer.uint32(18).string(message.index);
|
|
149
|
-
}
|
|
150
|
-
for (const v of message.values) {
|
|
151
|
-
IndexValue.encode(v!, writer.uint32(26).fork()).join();
|
|
152
|
-
}
|
|
153
|
-
return writer;
|
|
154
|
-
},
|
|
155
|
-
|
|
156
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GetRequest {
|
|
157
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
158
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
159
|
-
const message = createBaseGetRequest();
|
|
160
|
-
while (reader.pos < end) {
|
|
161
|
-
const tag = reader.uint32();
|
|
162
|
-
switch (tag >>> 3) {
|
|
163
|
-
case 1: {
|
|
164
|
-
if (tag !== 10) {
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
message.messageName = reader.string();
|
|
169
|
-
continue;
|
|
170
|
-
}
|
|
171
|
-
case 2: {
|
|
172
|
-
if (tag !== 18) {
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
message.index = reader.string();
|
|
177
|
-
continue;
|
|
178
|
-
}
|
|
179
|
-
case 3: {
|
|
180
|
-
if (tag !== 26) {
|
|
181
|
-
break;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
message.values.push(IndexValue.decode(reader, reader.uint32()));
|
|
185
|
-
continue;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
191
|
-
reader.skip(tag & 7);
|
|
192
|
-
}
|
|
193
|
-
return message;
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
fromJSON(object: any): GetRequest {
|
|
197
|
-
return {
|
|
198
|
-
messageName: isSet(object.messageName) ? globalThis.String(object.messageName) : "",
|
|
199
|
-
index: isSet(object.index) ? globalThis.String(object.index) : "",
|
|
200
|
-
values: globalThis.Array.isArray(object?.values) ? object.values.map((e: any) => IndexValue.fromJSON(e)) : [],
|
|
201
|
-
};
|
|
202
|
-
},
|
|
203
|
-
|
|
204
|
-
toJSON(message: GetRequest): unknown {
|
|
205
|
-
const obj: any = {};
|
|
206
|
-
if (message.messageName !== "") {
|
|
207
|
-
obj.messageName = message.messageName;
|
|
208
|
-
}
|
|
209
|
-
if (message.index !== "") {
|
|
210
|
-
obj.index = message.index;
|
|
211
|
-
}
|
|
212
|
-
if (message.values?.length) {
|
|
213
|
-
obj.values = message.values.map((e) => IndexValue.toJSON(e));
|
|
214
|
-
}
|
|
215
|
-
return obj;
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
create<I extends Exact<DeepPartial<GetRequest>, I>>(base?: I): GetRequest {
|
|
219
|
-
return GetRequest.fromPartial(base ?? ({} as any));
|
|
220
|
-
},
|
|
221
|
-
fromPartial<I extends Exact<DeepPartial<GetRequest>, I>>(object: I): GetRequest {
|
|
222
|
-
const message = createBaseGetRequest();
|
|
223
|
-
message.messageName = object.messageName ?? "";
|
|
224
|
-
message.index = object.index ?? "";
|
|
225
|
-
message.values = object.values?.map((e) => IndexValue.fromPartial(e)) || [];
|
|
226
|
-
return message;
|
|
227
|
-
},
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
function createBaseGetResponse(): GetResponse {
|
|
231
|
-
return { result: undefined };
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
export const GetResponse: MessageFns<GetResponse> = {
|
|
235
|
-
encode(message: GetResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
236
|
-
if (message.result !== undefined) {
|
|
237
|
-
Any.encode(message.result, writer.uint32(10).fork()).join();
|
|
238
|
-
}
|
|
239
|
-
return writer;
|
|
240
|
-
},
|
|
241
|
-
|
|
242
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GetResponse {
|
|
243
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
244
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
245
|
-
const message = createBaseGetResponse();
|
|
246
|
-
while (reader.pos < end) {
|
|
247
|
-
const tag = reader.uint32();
|
|
248
|
-
switch (tag >>> 3) {
|
|
249
|
-
case 1: {
|
|
250
|
-
if (tag !== 10) {
|
|
251
|
-
break;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
message.result = Any.decode(reader, reader.uint32());
|
|
255
|
-
continue;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
259
|
-
break;
|
|
260
|
-
}
|
|
261
|
-
reader.skip(tag & 7);
|
|
262
|
-
}
|
|
263
|
-
return message;
|
|
264
|
-
},
|
|
265
|
-
|
|
266
|
-
fromJSON(object: any): GetResponse {
|
|
267
|
-
return { result: isSet(object.result) ? Any.fromJSON(object.result) : undefined };
|
|
268
|
-
},
|
|
269
|
-
|
|
270
|
-
toJSON(message: GetResponse): unknown {
|
|
271
|
-
const obj: any = {};
|
|
272
|
-
if (message.result !== undefined) {
|
|
273
|
-
obj.result = Any.toJSON(message.result);
|
|
274
|
-
}
|
|
275
|
-
return obj;
|
|
276
|
-
},
|
|
277
|
-
|
|
278
|
-
create<I extends Exact<DeepPartial<GetResponse>, I>>(base?: I): GetResponse {
|
|
279
|
-
return GetResponse.fromPartial(base ?? ({} as any));
|
|
280
|
-
},
|
|
281
|
-
fromPartial<I extends Exact<DeepPartial<GetResponse>, I>>(object: I): GetResponse {
|
|
282
|
-
const message = createBaseGetResponse();
|
|
283
|
-
message.result = (object.result !== undefined && object.result !== null)
|
|
284
|
-
? Any.fromPartial(object.result)
|
|
285
|
-
: undefined;
|
|
286
|
-
return message;
|
|
287
|
-
},
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
function createBaseListRequest(): ListRequest {
|
|
291
|
-
return { messageName: "", index: "", prefix: undefined, range: undefined, pagination: undefined };
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
export const ListRequest: MessageFns<ListRequest> = {
|
|
295
|
-
encode(message: ListRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
296
|
-
if (message.messageName !== "") {
|
|
297
|
-
writer.uint32(10).string(message.messageName);
|
|
298
|
-
}
|
|
299
|
-
if (message.index !== "") {
|
|
300
|
-
writer.uint32(18).string(message.index);
|
|
301
|
-
}
|
|
302
|
-
if (message.prefix !== undefined) {
|
|
303
|
-
ListRequest_Prefix.encode(message.prefix, writer.uint32(26).fork()).join();
|
|
304
|
-
}
|
|
305
|
-
if (message.range !== undefined) {
|
|
306
|
-
ListRequest_Range.encode(message.range, writer.uint32(34).fork()).join();
|
|
307
|
-
}
|
|
308
|
-
if (message.pagination !== undefined) {
|
|
309
|
-
PageRequest.encode(message.pagination, writer.uint32(42).fork()).join();
|
|
310
|
-
}
|
|
311
|
-
return writer;
|
|
312
|
-
},
|
|
313
|
-
|
|
314
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ListRequest {
|
|
315
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
316
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
317
|
-
const message = createBaseListRequest();
|
|
318
|
-
while (reader.pos < end) {
|
|
319
|
-
const tag = reader.uint32();
|
|
320
|
-
switch (tag >>> 3) {
|
|
321
|
-
case 1: {
|
|
322
|
-
if (tag !== 10) {
|
|
323
|
-
break;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
message.messageName = reader.string();
|
|
327
|
-
continue;
|
|
328
|
-
}
|
|
329
|
-
case 2: {
|
|
330
|
-
if (tag !== 18) {
|
|
331
|
-
break;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
message.index = reader.string();
|
|
335
|
-
continue;
|
|
336
|
-
}
|
|
337
|
-
case 3: {
|
|
338
|
-
if (tag !== 26) {
|
|
339
|
-
break;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
message.prefix = ListRequest_Prefix.decode(reader, reader.uint32());
|
|
343
|
-
continue;
|
|
344
|
-
}
|
|
345
|
-
case 4: {
|
|
346
|
-
if (tag !== 34) {
|
|
347
|
-
break;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
message.range = ListRequest_Range.decode(reader, reader.uint32());
|
|
351
|
-
continue;
|
|
352
|
-
}
|
|
353
|
-
case 5: {
|
|
354
|
-
if (tag !== 42) {
|
|
355
|
-
break;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
359
|
-
continue;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
363
|
-
break;
|
|
364
|
-
}
|
|
365
|
-
reader.skip(tag & 7);
|
|
366
|
-
}
|
|
367
|
-
return message;
|
|
368
|
-
},
|
|
369
|
-
|
|
370
|
-
fromJSON(object: any): ListRequest {
|
|
371
|
-
return {
|
|
372
|
-
messageName: isSet(object.messageName) ? globalThis.String(object.messageName) : "",
|
|
373
|
-
index: isSet(object.index) ? globalThis.String(object.index) : "",
|
|
374
|
-
prefix: isSet(object.prefix) ? ListRequest_Prefix.fromJSON(object.prefix) : undefined,
|
|
375
|
-
range: isSet(object.range) ? ListRequest_Range.fromJSON(object.range) : undefined,
|
|
376
|
-
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
377
|
-
};
|
|
378
|
-
},
|
|
379
|
-
|
|
380
|
-
toJSON(message: ListRequest): unknown {
|
|
381
|
-
const obj: any = {};
|
|
382
|
-
if (message.messageName !== "") {
|
|
383
|
-
obj.messageName = message.messageName;
|
|
384
|
-
}
|
|
385
|
-
if (message.index !== "") {
|
|
386
|
-
obj.index = message.index;
|
|
387
|
-
}
|
|
388
|
-
if (message.prefix !== undefined) {
|
|
389
|
-
obj.prefix = ListRequest_Prefix.toJSON(message.prefix);
|
|
390
|
-
}
|
|
391
|
-
if (message.range !== undefined) {
|
|
392
|
-
obj.range = ListRequest_Range.toJSON(message.range);
|
|
393
|
-
}
|
|
394
|
-
if (message.pagination !== undefined) {
|
|
395
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
396
|
-
}
|
|
397
|
-
return obj;
|
|
398
|
-
},
|
|
399
|
-
|
|
400
|
-
create<I extends Exact<DeepPartial<ListRequest>, I>>(base?: I): ListRequest {
|
|
401
|
-
return ListRequest.fromPartial(base ?? ({} as any));
|
|
402
|
-
},
|
|
403
|
-
fromPartial<I extends Exact<DeepPartial<ListRequest>, I>>(object: I): ListRequest {
|
|
404
|
-
const message = createBaseListRequest();
|
|
405
|
-
message.messageName = object.messageName ?? "";
|
|
406
|
-
message.index = object.index ?? "";
|
|
407
|
-
message.prefix = (object.prefix !== undefined && object.prefix !== null)
|
|
408
|
-
? ListRequest_Prefix.fromPartial(object.prefix)
|
|
409
|
-
: undefined;
|
|
410
|
-
message.range = (object.range !== undefined && object.range !== null)
|
|
411
|
-
? ListRequest_Range.fromPartial(object.range)
|
|
412
|
-
: undefined;
|
|
413
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
414
|
-
? PageRequest.fromPartial(object.pagination)
|
|
415
|
-
: undefined;
|
|
416
|
-
return message;
|
|
417
|
-
},
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
function createBaseListRequest_Prefix(): ListRequest_Prefix {
|
|
421
|
-
return { values: [] };
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
export const ListRequest_Prefix: MessageFns<ListRequest_Prefix> = {
|
|
425
|
-
encode(message: ListRequest_Prefix, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
426
|
-
for (const v of message.values) {
|
|
427
|
-
IndexValue.encode(v!, writer.uint32(10).fork()).join();
|
|
428
|
-
}
|
|
429
|
-
return writer;
|
|
430
|
-
},
|
|
431
|
-
|
|
432
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ListRequest_Prefix {
|
|
433
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
434
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
435
|
-
const message = createBaseListRequest_Prefix();
|
|
436
|
-
while (reader.pos < end) {
|
|
437
|
-
const tag = reader.uint32();
|
|
438
|
-
switch (tag >>> 3) {
|
|
439
|
-
case 1: {
|
|
440
|
-
if (tag !== 10) {
|
|
441
|
-
break;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
message.values.push(IndexValue.decode(reader, reader.uint32()));
|
|
445
|
-
continue;
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
449
|
-
break;
|
|
450
|
-
}
|
|
451
|
-
reader.skip(tag & 7);
|
|
452
|
-
}
|
|
453
|
-
return message;
|
|
454
|
-
},
|
|
455
|
-
|
|
456
|
-
fromJSON(object: any): ListRequest_Prefix {
|
|
457
|
-
return {
|
|
458
|
-
values: globalThis.Array.isArray(object?.values) ? object.values.map((e: any) => IndexValue.fromJSON(e)) : [],
|
|
459
|
-
};
|
|
460
|
-
},
|
|
461
|
-
|
|
462
|
-
toJSON(message: ListRequest_Prefix): unknown {
|
|
463
|
-
const obj: any = {};
|
|
464
|
-
if (message.values?.length) {
|
|
465
|
-
obj.values = message.values.map((e) => IndexValue.toJSON(e));
|
|
466
|
-
}
|
|
467
|
-
return obj;
|
|
468
|
-
},
|
|
469
|
-
|
|
470
|
-
create<I extends Exact<DeepPartial<ListRequest_Prefix>, I>>(base?: I): ListRequest_Prefix {
|
|
471
|
-
return ListRequest_Prefix.fromPartial(base ?? ({} as any));
|
|
472
|
-
},
|
|
473
|
-
fromPartial<I extends Exact<DeepPartial<ListRequest_Prefix>, I>>(object: I): ListRequest_Prefix {
|
|
474
|
-
const message = createBaseListRequest_Prefix();
|
|
475
|
-
message.values = object.values?.map((e) => IndexValue.fromPartial(e)) || [];
|
|
476
|
-
return message;
|
|
477
|
-
},
|
|
478
|
-
};
|
|
479
|
-
|
|
480
|
-
function createBaseListRequest_Range(): ListRequest_Range {
|
|
481
|
-
return { start: [], end: [] };
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
export const ListRequest_Range: MessageFns<ListRequest_Range> = {
|
|
485
|
-
encode(message: ListRequest_Range, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
486
|
-
for (const v of message.start) {
|
|
487
|
-
IndexValue.encode(v!, writer.uint32(10).fork()).join();
|
|
488
|
-
}
|
|
489
|
-
for (const v of message.end) {
|
|
490
|
-
IndexValue.encode(v!, writer.uint32(18).fork()).join();
|
|
491
|
-
}
|
|
492
|
-
return writer;
|
|
493
|
-
},
|
|
494
|
-
|
|
495
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ListRequest_Range {
|
|
496
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
497
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
498
|
-
const message = createBaseListRequest_Range();
|
|
499
|
-
while (reader.pos < end) {
|
|
500
|
-
const tag = reader.uint32();
|
|
501
|
-
switch (tag >>> 3) {
|
|
502
|
-
case 1: {
|
|
503
|
-
if (tag !== 10) {
|
|
504
|
-
break;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
message.start.push(IndexValue.decode(reader, reader.uint32()));
|
|
508
|
-
continue;
|
|
509
|
-
}
|
|
510
|
-
case 2: {
|
|
511
|
-
if (tag !== 18) {
|
|
512
|
-
break;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
message.end.push(IndexValue.decode(reader, reader.uint32()));
|
|
516
|
-
continue;
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
520
|
-
break;
|
|
521
|
-
}
|
|
522
|
-
reader.skip(tag & 7);
|
|
523
|
-
}
|
|
524
|
-
return message;
|
|
525
|
-
},
|
|
526
|
-
|
|
527
|
-
fromJSON(object: any): ListRequest_Range {
|
|
528
|
-
return {
|
|
529
|
-
start: globalThis.Array.isArray(object?.start) ? object.start.map((e: any) => IndexValue.fromJSON(e)) : [],
|
|
530
|
-
end: globalThis.Array.isArray(object?.end) ? object.end.map((e: any) => IndexValue.fromJSON(e)) : [],
|
|
531
|
-
};
|
|
532
|
-
},
|
|
533
|
-
|
|
534
|
-
toJSON(message: ListRequest_Range): unknown {
|
|
535
|
-
const obj: any = {};
|
|
536
|
-
if (message.start?.length) {
|
|
537
|
-
obj.start = message.start.map((e) => IndexValue.toJSON(e));
|
|
538
|
-
}
|
|
539
|
-
if (message.end?.length) {
|
|
540
|
-
obj.end = message.end.map((e) => IndexValue.toJSON(e));
|
|
541
|
-
}
|
|
542
|
-
return obj;
|
|
543
|
-
},
|
|
544
|
-
|
|
545
|
-
create<I extends Exact<DeepPartial<ListRequest_Range>, I>>(base?: I): ListRequest_Range {
|
|
546
|
-
return ListRequest_Range.fromPartial(base ?? ({} as any));
|
|
547
|
-
},
|
|
548
|
-
fromPartial<I extends Exact<DeepPartial<ListRequest_Range>, I>>(object: I): ListRequest_Range {
|
|
549
|
-
const message = createBaseListRequest_Range();
|
|
550
|
-
message.start = object.start?.map((e) => IndexValue.fromPartial(e)) || [];
|
|
551
|
-
message.end = object.end?.map((e) => IndexValue.fromPartial(e)) || [];
|
|
552
|
-
return message;
|
|
553
|
-
},
|
|
554
|
-
};
|
|
555
|
-
|
|
556
|
-
function createBaseListResponse(): ListResponse {
|
|
557
|
-
return { results: [], pagination: undefined };
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
export const ListResponse: MessageFns<ListResponse> = {
|
|
561
|
-
encode(message: ListResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
562
|
-
for (const v of message.results) {
|
|
563
|
-
Any.encode(v!, writer.uint32(10).fork()).join();
|
|
564
|
-
}
|
|
565
|
-
if (message.pagination !== undefined) {
|
|
566
|
-
PageResponse.encode(message.pagination, writer.uint32(42).fork()).join();
|
|
567
|
-
}
|
|
568
|
-
return writer;
|
|
569
|
-
},
|
|
570
|
-
|
|
571
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ListResponse {
|
|
572
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
573
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
574
|
-
const message = createBaseListResponse();
|
|
575
|
-
while (reader.pos < end) {
|
|
576
|
-
const tag = reader.uint32();
|
|
577
|
-
switch (tag >>> 3) {
|
|
578
|
-
case 1: {
|
|
579
|
-
if (tag !== 10) {
|
|
580
|
-
break;
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
message.results.push(Any.decode(reader, reader.uint32()));
|
|
584
|
-
continue;
|
|
585
|
-
}
|
|
586
|
-
case 5: {
|
|
587
|
-
if (tag !== 42) {
|
|
588
|
-
break;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
592
|
-
continue;
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
596
|
-
break;
|
|
597
|
-
}
|
|
598
|
-
reader.skip(tag & 7);
|
|
599
|
-
}
|
|
600
|
-
return message;
|
|
601
|
-
},
|
|
602
|
-
|
|
603
|
-
fromJSON(object: any): ListResponse {
|
|
604
|
-
return {
|
|
605
|
-
results: globalThis.Array.isArray(object?.results) ? object.results.map((e: any) => Any.fromJSON(e)) : [],
|
|
606
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
607
|
-
};
|
|
608
|
-
},
|
|
609
|
-
|
|
610
|
-
toJSON(message: ListResponse): unknown {
|
|
611
|
-
const obj: any = {};
|
|
612
|
-
if (message.results?.length) {
|
|
613
|
-
obj.results = message.results.map((e) => Any.toJSON(e));
|
|
614
|
-
}
|
|
615
|
-
if (message.pagination !== undefined) {
|
|
616
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
617
|
-
}
|
|
618
|
-
return obj;
|
|
619
|
-
},
|
|
620
|
-
|
|
621
|
-
create<I extends Exact<DeepPartial<ListResponse>, I>>(base?: I): ListResponse {
|
|
622
|
-
return ListResponse.fromPartial(base ?? ({} as any));
|
|
623
|
-
},
|
|
624
|
-
fromPartial<I extends Exact<DeepPartial<ListResponse>, I>>(object: I): ListResponse {
|
|
625
|
-
const message = createBaseListResponse();
|
|
626
|
-
message.results = object.results?.map((e) => Any.fromPartial(e)) || [];
|
|
627
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
628
|
-
? PageResponse.fromPartial(object.pagination)
|
|
629
|
-
: undefined;
|
|
630
|
-
return message;
|
|
631
|
-
},
|
|
632
|
-
};
|
|
633
|
-
|
|
634
|
-
function createBaseIndexValue(): IndexValue {
|
|
635
|
-
return {
|
|
636
|
-
uint: undefined,
|
|
637
|
-
int: undefined,
|
|
638
|
-
str: undefined,
|
|
639
|
-
bytes: undefined,
|
|
640
|
-
enum: undefined,
|
|
641
|
-
bool: undefined,
|
|
642
|
-
timestamp: undefined,
|
|
643
|
-
duration: undefined,
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
export const IndexValue: MessageFns<IndexValue> = {
|
|
648
|
-
encode(message: IndexValue, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
649
|
-
if (message.uint !== undefined) {
|
|
650
|
-
writer.uint32(8).uint64(message.uint);
|
|
651
|
-
}
|
|
652
|
-
if (message.int !== undefined) {
|
|
653
|
-
writer.uint32(16).int64(message.int);
|
|
654
|
-
}
|
|
655
|
-
if (message.str !== undefined) {
|
|
656
|
-
writer.uint32(26).string(message.str);
|
|
657
|
-
}
|
|
658
|
-
if (message.bytes !== undefined) {
|
|
659
|
-
writer.uint32(34).bytes(message.bytes);
|
|
660
|
-
}
|
|
661
|
-
if (message.enum !== undefined) {
|
|
662
|
-
writer.uint32(42).string(message.enum);
|
|
663
|
-
}
|
|
664
|
-
if (message.bool !== undefined) {
|
|
665
|
-
writer.uint32(48).bool(message.bool);
|
|
666
|
-
}
|
|
667
|
-
if (message.timestamp !== undefined) {
|
|
668
|
-
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(58).fork()).join();
|
|
669
|
-
}
|
|
670
|
-
if (message.duration !== undefined) {
|
|
671
|
-
Duration.encode(message.duration, writer.uint32(66).fork()).join();
|
|
672
|
-
}
|
|
673
|
-
return writer;
|
|
674
|
-
},
|
|
675
|
-
|
|
676
|
-
decode(input: BinaryReader | Uint8Array, length?: number): IndexValue {
|
|
677
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
678
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
679
|
-
const message = createBaseIndexValue();
|
|
680
|
-
while (reader.pos < end) {
|
|
681
|
-
const tag = reader.uint32();
|
|
682
|
-
switch (tag >>> 3) {
|
|
683
|
-
case 1: {
|
|
684
|
-
if (tag !== 8) {
|
|
685
|
-
break;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
message.uint = longToNumber(reader.uint64());
|
|
689
|
-
continue;
|
|
690
|
-
}
|
|
691
|
-
case 2: {
|
|
692
|
-
if (tag !== 16) {
|
|
693
|
-
break;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
message.int = longToNumber(reader.int64());
|
|
697
|
-
continue;
|
|
698
|
-
}
|
|
699
|
-
case 3: {
|
|
700
|
-
if (tag !== 26) {
|
|
701
|
-
break;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
message.str = reader.string();
|
|
705
|
-
continue;
|
|
706
|
-
}
|
|
707
|
-
case 4: {
|
|
708
|
-
if (tag !== 34) {
|
|
709
|
-
break;
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
message.bytes = reader.bytes();
|
|
713
|
-
continue;
|
|
714
|
-
}
|
|
715
|
-
case 5: {
|
|
716
|
-
if (tag !== 42) {
|
|
717
|
-
break;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
message.enum = reader.string();
|
|
721
|
-
continue;
|
|
722
|
-
}
|
|
723
|
-
case 6: {
|
|
724
|
-
if (tag !== 48) {
|
|
725
|
-
break;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
message.bool = reader.bool();
|
|
729
|
-
continue;
|
|
730
|
-
}
|
|
731
|
-
case 7: {
|
|
732
|
-
if (tag !== 58) {
|
|
733
|
-
break;
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
737
|
-
continue;
|
|
738
|
-
}
|
|
739
|
-
case 8: {
|
|
740
|
-
if (tag !== 66) {
|
|
741
|
-
break;
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
message.duration = Duration.decode(reader, reader.uint32());
|
|
745
|
-
continue;
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
749
|
-
break;
|
|
750
|
-
}
|
|
751
|
-
reader.skip(tag & 7);
|
|
752
|
-
}
|
|
753
|
-
return message;
|
|
754
|
-
},
|
|
755
|
-
|
|
756
|
-
fromJSON(object: any): IndexValue {
|
|
757
|
-
return {
|
|
758
|
-
uint: isSet(object.uint) ? globalThis.Number(object.uint) : undefined,
|
|
759
|
-
int: isSet(object.int) ? globalThis.Number(object.int) : undefined,
|
|
760
|
-
str: isSet(object.str) ? globalThis.String(object.str) : undefined,
|
|
761
|
-
bytes: isSet(object.bytes) ? bytesFromBase64(object.bytes) : undefined,
|
|
762
|
-
enum: isSet(object.enum) ? globalThis.String(object.enum) : undefined,
|
|
763
|
-
bool: isSet(object.bool) ? globalThis.Boolean(object.bool) : undefined,
|
|
764
|
-
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
765
|
-
duration: isSet(object.duration) ? Duration.fromJSON(object.duration) : undefined,
|
|
766
|
-
};
|
|
767
|
-
},
|
|
768
|
-
|
|
769
|
-
toJSON(message: IndexValue): unknown {
|
|
770
|
-
const obj: any = {};
|
|
771
|
-
if (message.uint !== undefined) {
|
|
772
|
-
obj.uint = Math.round(message.uint);
|
|
773
|
-
}
|
|
774
|
-
if (message.int !== undefined) {
|
|
775
|
-
obj.int = Math.round(message.int);
|
|
776
|
-
}
|
|
777
|
-
if (message.str !== undefined) {
|
|
778
|
-
obj.str = message.str;
|
|
779
|
-
}
|
|
780
|
-
if (message.bytes !== undefined) {
|
|
781
|
-
obj.bytes = base64FromBytes(message.bytes);
|
|
782
|
-
}
|
|
783
|
-
if (message.enum !== undefined) {
|
|
784
|
-
obj.enum = message.enum;
|
|
785
|
-
}
|
|
786
|
-
if (message.bool !== undefined) {
|
|
787
|
-
obj.bool = message.bool;
|
|
788
|
-
}
|
|
789
|
-
if (message.timestamp !== undefined) {
|
|
790
|
-
obj.timestamp = message.timestamp.toISOString();
|
|
791
|
-
}
|
|
792
|
-
if (message.duration !== undefined) {
|
|
793
|
-
obj.duration = Duration.toJSON(message.duration);
|
|
794
|
-
}
|
|
795
|
-
return obj;
|
|
796
|
-
},
|
|
797
|
-
|
|
798
|
-
create<I extends Exact<DeepPartial<IndexValue>, I>>(base?: I): IndexValue {
|
|
799
|
-
return IndexValue.fromPartial(base ?? ({} as any));
|
|
800
|
-
},
|
|
801
|
-
fromPartial<I extends Exact<DeepPartial<IndexValue>, I>>(object: I): IndexValue {
|
|
802
|
-
const message = createBaseIndexValue();
|
|
803
|
-
message.uint = object.uint ?? undefined;
|
|
804
|
-
message.int = object.int ?? undefined;
|
|
805
|
-
message.str = object.str ?? undefined;
|
|
806
|
-
message.bytes = object.bytes ?? undefined;
|
|
807
|
-
message.enum = object.enum ?? undefined;
|
|
808
|
-
message.bool = object.bool ?? undefined;
|
|
809
|
-
message.timestamp = object.timestamp ?? undefined;
|
|
810
|
-
message.duration = (object.duration !== undefined && object.duration !== null)
|
|
811
|
-
? Duration.fromPartial(object.duration)
|
|
812
|
-
: undefined;
|
|
813
|
-
return message;
|
|
814
|
-
},
|
|
815
|
-
};
|
|
816
|
-
|
|
817
|
-
/** Query is a generic gRPC service for querying ORM data. */
|
|
818
|
-
export interface Query {
|
|
819
|
-
/** Get queries an ORM table against an unique index. */
|
|
820
|
-
Get(request: GetRequest): Promise<GetResponse>;
|
|
821
|
-
/** List queries an ORM table against an index. */
|
|
822
|
-
List(request: ListRequest): Promise<ListResponse>;
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
export const QueryServiceName = "cosmos.orm.query.v1alpha1.Query";
|
|
826
|
-
export class QueryClientImpl implements Query {
|
|
827
|
-
private readonly rpc: Rpc;
|
|
828
|
-
private readonly service: string;
|
|
829
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
830
|
-
this.service = opts?.service || QueryServiceName;
|
|
831
|
-
this.rpc = rpc;
|
|
832
|
-
this.Get = this.Get.bind(this);
|
|
833
|
-
this.List = this.List.bind(this);
|
|
834
|
-
}
|
|
835
|
-
Get(request: GetRequest): Promise<GetResponse> {
|
|
836
|
-
const data = GetRequest.encode(request).finish();
|
|
837
|
-
const promise = this.rpc.request(this.service, "Get", data);
|
|
838
|
-
return promise.then((data) => GetResponse.decode(new BinaryReader(data)));
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
List(request: ListRequest): Promise<ListResponse> {
|
|
842
|
-
const data = ListRequest.encode(request).finish();
|
|
843
|
-
const promise = this.rpc.request(this.service, "List", data);
|
|
844
|
-
return promise.then((data) => ListResponse.decode(new BinaryReader(data)));
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
interface Rpc {
|
|
849
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
function bytesFromBase64(b64: string): Uint8Array {
|
|
853
|
-
if ((globalThis as any).Buffer) {
|
|
854
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
855
|
-
} else {
|
|
856
|
-
const bin = globalThis.atob(b64);
|
|
857
|
-
const arr = new Uint8Array(bin.length);
|
|
858
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
859
|
-
arr[i] = bin.charCodeAt(i);
|
|
860
|
-
}
|
|
861
|
-
return arr;
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
function base64FromBytes(arr: Uint8Array): string {
|
|
866
|
-
if ((globalThis as any).Buffer) {
|
|
867
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
868
|
-
} else {
|
|
869
|
-
const bin: string[] = [];
|
|
870
|
-
arr.forEach((byte) => {
|
|
871
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
872
|
-
});
|
|
873
|
-
return globalThis.btoa(bin.join(""));
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
878
|
-
|
|
879
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
880
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
881
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
882
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
883
|
-
: Partial<T>;
|
|
884
|
-
|
|
885
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
886
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
887
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
888
|
-
|
|
889
|
-
function toTimestamp(date: Date): Timestamp {
|
|
890
|
-
const seconds = Math.trunc(date.getTime() / 1_000);
|
|
891
|
-
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
892
|
-
return { seconds, nanos };
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
function fromTimestamp(t: Timestamp): Date {
|
|
896
|
-
let millis = (t.seconds || 0) * 1_000;
|
|
897
|
-
millis += (t.nanos || 0) / 1_000_000;
|
|
898
|
-
return new globalThis.Date(millis);
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
function fromJsonTimestamp(o: any): Date {
|
|
902
|
-
if (o instanceof globalThis.Date) {
|
|
903
|
-
return o;
|
|
904
|
-
} else if (typeof o === "string") {
|
|
905
|
-
return new globalThis.Date(o);
|
|
906
|
-
} else {
|
|
907
|
-
return fromTimestamp(Timestamp.fromJSON(o));
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
912
|
-
const num = globalThis.Number(int64.toString());
|
|
913
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
914
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
915
|
-
}
|
|
916
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
917
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
918
|
-
}
|
|
919
|
-
return num;
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
function isSet(value: any): boolean {
|
|
923
|
-
return value !== null && value !== undefined;
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
export interface MessageFns<T> {
|
|
927
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
928
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
929
|
-
fromJSON(object: any): T;
|
|
930
|
-
toJSON(message: T): unknown;
|
|
931
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
932
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
933
|
-
}
|