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,2025 +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/base/tendermint/v1beta1/query.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Any } from "../../../../google/protobuf/any";
|
|
10
|
-
import { DefaultNodeInfo } from "../../../../tendermint/p2p/types";
|
|
11
|
-
import { Block } from "../../../../tendermint/types/block";
|
|
12
|
-
import { BlockID } from "../../../../tendermint/types/types";
|
|
13
|
-
import { PageRequest, PageResponse } from "../../query/v1beta1/pagination";
|
|
14
|
-
import { Block as Block1 } from "./types";
|
|
15
|
-
|
|
16
|
-
export const protobufPackage = "cosmos.base.tendermint.v1beta1";
|
|
17
|
-
|
|
18
|
-
/** GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */
|
|
19
|
-
export interface GetValidatorSetByHeightRequest {
|
|
20
|
-
height: number;
|
|
21
|
-
/** pagination defines an pagination for the request. */
|
|
22
|
-
pagination: PageRequest | undefined;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/** GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */
|
|
26
|
-
export interface GetValidatorSetByHeightResponse {
|
|
27
|
-
blockHeight: number;
|
|
28
|
-
validators: Validator[];
|
|
29
|
-
/** pagination defines an pagination for the response. */
|
|
30
|
-
pagination: PageResponse | undefined;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/** GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */
|
|
34
|
-
export interface GetLatestValidatorSetRequest {
|
|
35
|
-
/** pagination defines an pagination for the request. */
|
|
36
|
-
pagination: PageRequest | undefined;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/** GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */
|
|
40
|
-
export interface GetLatestValidatorSetResponse {
|
|
41
|
-
blockHeight: number;
|
|
42
|
-
validators: Validator[];
|
|
43
|
-
/** pagination defines an pagination for the response. */
|
|
44
|
-
pagination: PageResponse | undefined;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/** Validator is the type for the validator-set. */
|
|
48
|
-
export interface Validator {
|
|
49
|
-
address: string;
|
|
50
|
-
pubKey: Any | undefined;
|
|
51
|
-
votingPower: number;
|
|
52
|
-
proposerPriority: number;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/** GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. */
|
|
56
|
-
export interface GetBlockByHeightRequest {
|
|
57
|
-
height: number;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/** GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. */
|
|
61
|
-
export interface GetBlockByHeightResponse {
|
|
62
|
-
blockId:
|
|
63
|
-
| BlockID
|
|
64
|
-
| undefined;
|
|
65
|
-
/** Deprecated: please use `sdk_block` instead */
|
|
66
|
-
block:
|
|
67
|
-
| Block
|
|
68
|
-
| undefined;
|
|
69
|
-
/** Since: cosmos-sdk 0.47 */
|
|
70
|
-
sdkBlock: Block1 | undefined;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/** GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. */
|
|
74
|
-
export interface GetLatestBlockRequest {
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/** GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. */
|
|
78
|
-
export interface GetLatestBlockResponse {
|
|
79
|
-
blockId:
|
|
80
|
-
| BlockID
|
|
81
|
-
| undefined;
|
|
82
|
-
/** Deprecated: please use `sdk_block` instead */
|
|
83
|
-
block:
|
|
84
|
-
| Block
|
|
85
|
-
| undefined;
|
|
86
|
-
/** Since: cosmos-sdk 0.47 */
|
|
87
|
-
sdkBlock: Block1 | undefined;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */
|
|
91
|
-
export interface GetSyncingRequest {
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */
|
|
95
|
-
export interface GetSyncingResponse {
|
|
96
|
-
syncing: boolean;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */
|
|
100
|
-
export interface GetNodeInfoRequest {
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/** GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. */
|
|
104
|
-
export interface GetNodeInfoResponse {
|
|
105
|
-
defaultNodeInfo: DefaultNodeInfo | undefined;
|
|
106
|
-
applicationVersion: VersionInfo | undefined;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/** VersionInfo is the type for the GetNodeInfoResponse message. */
|
|
110
|
-
export interface VersionInfo {
|
|
111
|
-
name: string;
|
|
112
|
-
appName: string;
|
|
113
|
-
version: string;
|
|
114
|
-
gitCommit: string;
|
|
115
|
-
buildTags: string;
|
|
116
|
-
goVersion: string;
|
|
117
|
-
buildDeps: Module[];
|
|
118
|
-
/** Since: cosmos-sdk 0.43 */
|
|
119
|
-
cosmosSdkVersion: string;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/** Module is the type for VersionInfo */
|
|
123
|
-
export interface Module {
|
|
124
|
-
/** module path */
|
|
125
|
-
path: string;
|
|
126
|
-
/** module version */
|
|
127
|
-
version: string;
|
|
128
|
-
/** checksum */
|
|
129
|
-
sum: string;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/** ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query. */
|
|
133
|
-
export interface ABCIQueryRequest {
|
|
134
|
-
data: Uint8Array;
|
|
135
|
-
path: string;
|
|
136
|
-
height: number;
|
|
137
|
-
prove: boolean;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query.
|
|
142
|
-
*
|
|
143
|
-
* Note: This type is a duplicate of the ResponseQuery proto type defined in
|
|
144
|
-
* Tendermint.
|
|
145
|
-
*/
|
|
146
|
-
export interface ABCIQueryResponse {
|
|
147
|
-
code: number;
|
|
148
|
-
/** nondeterministic */
|
|
149
|
-
log: string;
|
|
150
|
-
/** nondeterministic */
|
|
151
|
-
info: string;
|
|
152
|
-
index: number;
|
|
153
|
-
key: Uint8Array;
|
|
154
|
-
value: Uint8Array;
|
|
155
|
-
proofOps: ProofOps | undefined;
|
|
156
|
-
height: number;
|
|
157
|
-
codespace: string;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* ProofOp defines an operation used for calculating Merkle root. The data could
|
|
162
|
-
* be arbitrary format, providing necessary data for example neighbouring node
|
|
163
|
-
* hash.
|
|
164
|
-
*
|
|
165
|
-
* Note: This type is a duplicate of the ProofOp proto type defined in Tendermint.
|
|
166
|
-
*/
|
|
167
|
-
export interface ProofOp {
|
|
168
|
-
type: string;
|
|
169
|
-
key: Uint8Array;
|
|
170
|
-
data: Uint8Array;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* ProofOps is Merkle proof defined by the list of ProofOps.
|
|
175
|
-
*
|
|
176
|
-
* Note: This type is a duplicate of the ProofOps proto type defined in Tendermint.
|
|
177
|
-
*/
|
|
178
|
-
export interface ProofOps {
|
|
179
|
-
ops: ProofOp[];
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
function createBaseGetValidatorSetByHeightRequest(): GetValidatorSetByHeightRequest {
|
|
183
|
-
return { height: 0, pagination: undefined };
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export const GetValidatorSetByHeightRequest: MessageFns<GetValidatorSetByHeightRequest> = {
|
|
187
|
-
encode(message: GetValidatorSetByHeightRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
188
|
-
if (message.height !== 0) {
|
|
189
|
-
writer.uint32(8).int64(message.height);
|
|
190
|
-
}
|
|
191
|
-
if (message.pagination !== undefined) {
|
|
192
|
-
PageRequest.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
193
|
-
}
|
|
194
|
-
return writer;
|
|
195
|
-
},
|
|
196
|
-
|
|
197
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GetValidatorSetByHeightRequest {
|
|
198
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
199
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
200
|
-
const message = createBaseGetValidatorSetByHeightRequest();
|
|
201
|
-
while (reader.pos < end) {
|
|
202
|
-
const tag = reader.uint32();
|
|
203
|
-
switch (tag >>> 3) {
|
|
204
|
-
case 1: {
|
|
205
|
-
if (tag !== 8) {
|
|
206
|
-
break;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
message.height = longToNumber(reader.int64());
|
|
210
|
-
continue;
|
|
211
|
-
}
|
|
212
|
-
case 2: {
|
|
213
|
-
if (tag !== 18) {
|
|
214
|
-
break;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
218
|
-
continue;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
222
|
-
break;
|
|
223
|
-
}
|
|
224
|
-
reader.skip(tag & 7);
|
|
225
|
-
}
|
|
226
|
-
return message;
|
|
227
|
-
},
|
|
228
|
-
|
|
229
|
-
fromJSON(object: any): GetValidatorSetByHeightRequest {
|
|
230
|
-
return {
|
|
231
|
-
height: isSet(object.height) ? globalThis.Number(object.height) : 0,
|
|
232
|
-
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
233
|
-
};
|
|
234
|
-
},
|
|
235
|
-
|
|
236
|
-
toJSON(message: GetValidatorSetByHeightRequest): unknown {
|
|
237
|
-
const obj: any = {};
|
|
238
|
-
if (message.height !== 0) {
|
|
239
|
-
obj.height = Math.round(message.height);
|
|
240
|
-
}
|
|
241
|
-
if (message.pagination !== undefined) {
|
|
242
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
243
|
-
}
|
|
244
|
-
return obj;
|
|
245
|
-
},
|
|
246
|
-
|
|
247
|
-
create<I extends Exact<DeepPartial<GetValidatorSetByHeightRequest>, I>>(base?: I): GetValidatorSetByHeightRequest {
|
|
248
|
-
return GetValidatorSetByHeightRequest.fromPartial(base ?? ({} as any));
|
|
249
|
-
},
|
|
250
|
-
fromPartial<I extends Exact<DeepPartial<GetValidatorSetByHeightRequest>, I>>(
|
|
251
|
-
object: I,
|
|
252
|
-
): GetValidatorSetByHeightRequest {
|
|
253
|
-
const message = createBaseGetValidatorSetByHeightRequest();
|
|
254
|
-
message.height = object.height ?? 0;
|
|
255
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
256
|
-
? PageRequest.fromPartial(object.pagination)
|
|
257
|
-
: undefined;
|
|
258
|
-
return message;
|
|
259
|
-
},
|
|
260
|
-
};
|
|
261
|
-
|
|
262
|
-
function createBaseGetValidatorSetByHeightResponse(): GetValidatorSetByHeightResponse {
|
|
263
|
-
return { blockHeight: 0, validators: [], pagination: undefined };
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export const GetValidatorSetByHeightResponse: MessageFns<GetValidatorSetByHeightResponse> = {
|
|
267
|
-
encode(message: GetValidatorSetByHeightResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
268
|
-
if (message.blockHeight !== 0) {
|
|
269
|
-
writer.uint32(8).int64(message.blockHeight);
|
|
270
|
-
}
|
|
271
|
-
for (const v of message.validators) {
|
|
272
|
-
Validator.encode(v!, writer.uint32(18).fork()).join();
|
|
273
|
-
}
|
|
274
|
-
if (message.pagination !== undefined) {
|
|
275
|
-
PageResponse.encode(message.pagination, writer.uint32(26).fork()).join();
|
|
276
|
-
}
|
|
277
|
-
return writer;
|
|
278
|
-
},
|
|
279
|
-
|
|
280
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GetValidatorSetByHeightResponse {
|
|
281
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
282
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
283
|
-
const message = createBaseGetValidatorSetByHeightResponse();
|
|
284
|
-
while (reader.pos < end) {
|
|
285
|
-
const tag = reader.uint32();
|
|
286
|
-
switch (tag >>> 3) {
|
|
287
|
-
case 1: {
|
|
288
|
-
if (tag !== 8) {
|
|
289
|
-
break;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
message.blockHeight = longToNumber(reader.int64());
|
|
293
|
-
continue;
|
|
294
|
-
}
|
|
295
|
-
case 2: {
|
|
296
|
-
if (tag !== 18) {
|
|
297
|
-
break;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
message.validators.push(Validator.decode(reader, reader.uint32()));
|
|
301
|
-
continue;
|
|
302
|
-
}
|
|
303
|
-
case 3: {
|
|
304
|
-
if (tag !== 26) {
|
|
305
|
-
break;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
309
|
-
continue;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
313
|
-
break;
|
|
314
|
-
}
|
|
315
|
-
reader.skip(tag & 7);
|
|
316
|
-
}
|
|
317
|
-
return message;
|
|
318
|
-
},
|
|
319
|
-
|
|
320
|
-
fromJSON(object: any): GetValidatorSetByHeightResponse {
|
|
321
|
-
return {
|
|
322
|
-
blockHeight: isSet(object.blockHeight) ? globalThis.Number(object.blockHeight) : 0,
|
|
323
|
-
validators: globalThis.Array.isArray(object?.validators)
|
|
324
|
-
? object.validators.map((e: any) => Validator.fromJSON(e))
|
|
325
|
-
: [],
|
|
326
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
327
|
-
};
|
|
328
|
-
},
|
|
329
|
-
|
|
330
|
-
toJSON(message: GetValidatorSetByHeightResponse): unknown {
|
|
331
|
-
const obj: any = {};
|
|
332
|
-
if (message.blockHeight !== 0) {
|
|
333
|
-
obj.blockHeight = Math.round(message.blockHeight);
|
|
334
|
-
}
|
|
335
|
-
if (message.validators?.length) {
|
|
336
|
-
obj.validators = message.validators.map((e) => Validator.toJSON(e));
|
|
337
|
-
}
|
|
338
|
-
if (message.pagination !== undefined) {
|
|
339
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
340
|
-
}
|
|
341
|
-
return obj;
|
|
342
|
-
},
|
|
343
|
-
|
|
344
|
-
create<I extends Exact<DeepPartial<GetValidatorSetByHeightResponse>, I>>(base?: I): GetValidatorSetByHeightResponse {
|
|
345
|
-
return GetValidatorSetByHeightResponse.fromPartial(base ?? ({} as any));
|
|
346
|
-
},
|
|
347
|
-
fromPartial<I extends Exact<DeepPartial<GetValidatorSetByHeightResponse>, I>>(
|
|
348
|
-
object: I,
|
|
349
|
-
): GetValidatorSetByHeightResponse {
|
|
350
|
-
const message = createBaseGetValidatorSetByHeightResponse();
|
|
351
|
-
message.blockHeight = object.blockHeight ?? 0;
|
|
352
|
-
message.validators = object.validators?.map((e) => Validator.fromPartial(e)) || [];
|
|
353
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
354
|
-
? PageResponse.fromPartial(object.pagination)
|
|
355
|
-
: undefined;
|
|
356
|
-
return message;
|
|
357
|
-
},
|
|
358
|
-
};
|
|
359
|
-
|
|
360
|
-
function createBaseGetLatestValidatorSetRequest(): GetLatestValidatorSetRequest {
|
|
361
|
-
return { pagination: undefined };
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
export const GetLatestValidatorSetRequest: MessageFns<GetLatestValidatorSetRequest> = {
|
|
365
|
-
encode(message: GetLatestValidatorSetRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
366
|
-
if (message.pagination !== undefined) {
|
|
367
|
-
PageRequest.encode(message.pagination, writer.uint32(10).fork()).join();
|
|
368
|
-
}
|
|
369
|
-
return writer;
|
|
370
|
-
},
|
|
371
|
-
|
|
372
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GetLatestValidatorSetRequest {
|
|
373
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
374
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
375
|
-
const message = createBaseGetLatestValidatorSetRequest();
|
|
376
|
-
while (reader.pos < end) {
|
|
377
|
-
const tag = reader.uint32();
|
|
378
|
-
switch (tag >>> 3) {
|
|
379
|
-
case 1: {
|
|
380
|
-
if (tag !== 10) {
|
|
381
|
-
break;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
385
|
-
continue;
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
389
|
-
break;
|
|
390
|
-
}
|
|
391
|
-
reader.skip(tag & 7);
|
|
392
|
-
}
|
|
393
|
-
return message;
|
|
394
|
-
},
|
|
395
|
-
|
|
396
|
-
fromJSON(object: any): GetLatestValidatorSetRequest {
|
|
397
|
-
return { pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined };
|
|
398
|
-
},
|
|
399
|
-
|
|
400
|
-
toJSON(message: GetLatestValidatorSetRequest): unknown {
|
|
401
|
-
const obj: any = {};
|
|
402
|
-
if (message.pagination !== undefined) {
|
|
403
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
404
|
-
}
|
|
405
|
-
return obj;
|
|
406
|
-
},
|
|
407
|
-
|
|
408
|
-
create<I extends Exact<DeepPartial<GetLatestValidatorSetRequest>, I>>(base?: I): GetLatestValidatorSetRequest {
|
|
409
|
-
return GetLatestValidatorSetRequest.fromPartial(base ?? ({} as any));
|
|
410
|
-
},
|
|
411
|
-
fromPartial<I extends Exact<DeepPartial<GetLatestValidatorSetRequest>, I>>(object: I): GetLatestValidatorSetRequest {
|
|
412
|
-
const message = createBaseGetLatestValidatorSetRequest();
|
|
413
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
414
|
-
? PageRequest.fromPartial(object.pagination)
|
|
415
|
-
: undefined;
|
|
416
|
-
return message;
|
|
417
|
-
},
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
function createBaseGetLatestValidatorSetResponse(): GetLatestValidatorSetResponse {
|
|
421
|
-
return { blockHeight: 0, validators: [], pagination: undefined };
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
export const GetLatestValidatorSetResponse: MessageFns<GetLatestValidatorSetResponse> = {
|
|
425
|
-
encode(message: GetLatestValidatorSetResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
426
|
-
if (message.blockHeight !== 0) {
|
|
427
|
-
writer.uint32(8).int64(message.blockHeight);
|
|
428
|
-
}
|
|
429
|
-
for (const v of message.validators) {
|
|
430
|
-
Validator.encode(v!, writer.uint32(18).fork()).join();
|
|
431
|
-
}
|
|
432
|
-
if (message.pagination !== undefined) {
|
|
433
|
-
PageResponse.encode(message.pagination, writer.uint32(26).fork()).join();
|
|
434
|
-
}
|
|
435
|
-
return writer;
|
|
436
|
-
},
|
|
437
|
-
|
|
438
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GetLatestValidatorSetResponse {
|
|
439
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
440
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
441
|
-
const message = createBaseGetLatestValidatorSetResponse();
|
|
442
|
-
while (reader.pos < end) {
|
|
443
|
-
const tag = reader.uint32();
|
|
444
|
-
switch (tag >>> 3) {
|
|
445
|
-
case 1: {
|
|
446
|
-
if (tag !== 8) {
|
|
447
|
-
break;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
message.blockHeight = longToNumber(reader.int64());
|
|
451
|
-
continue;
|
|
452
|
-
}
|
|
453
|
-
case 2: {
|
|
454
|
-
if (tag !== 18) {
|
|
455
|
-
break;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
message.validators.push(Validator.decode(reader, reader.uint32()));
|
|
459
|
-
continue;
|
|
460
|
-
}
|
|
461
|
-
case 3: {
|
|
462
|
-
if (tag !== 26) {
|
|
463
|
-
break;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
467
|
-
continue;
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
471
|
-
break;
|
|
472
|
-
}
|
|
473
|
-
reader.skip(tag & 7);
|
|
474
|
-
}
|
|
475
|
-
return message;
|
|
476
|
-
},
|
|
477
|
-
|
|
478
|
-
fromJSON(object: any): GetLatestValidatorSetResponse {
|
|
479
|
-
return {
|
|
480
|
-
blockHeight: isSet(object.blockHeight) ? globalThis.Number(object.blockHeight) : 0,
|
|
481
|
-
validators: globalThis.Array.isArray(object?.validators)
|
|
482
|
-
? object.validators.map((e: any) => Validator.fromJSON(e))
|
|
483
|
-
: [],
|
|
484
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
485
|
-
};
|
|
486
|
-
},
|
|
487
|
-
|
|
488
|
-
toJSON(message: GetLatestValidatorSetResponse): unknown {
|
|
489
|
-
const obj: any = {};
|
|
490
|
-
if (message.blockHeight !== 0) {
|
|
491
|
-
obj.blockHeight = Math.round(message.blockHeight);
|
|
492
|
-
}
|
|
493
|
-
if (message.validators?.length) {
|
|
494
|
-
obj.validators = message.validators.map((e) => Validator.toJSON(e));
|
|
495
|
-
}
|
|
496
|
-
if (message.pagination !== undefined) {
|
|
497
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
498
|
-
}
|
|
499
|
-
return obj;
|
|
500
|
-
},
|
|
501
|
-
|
|
502
|
-
create<I extends Exact<DeepPartial<GetLatestValidatorSetResponse>, I>>(base?: I): GetLatestValidatorSetResponse {
|
|
503
|
-
return GetLatestValidatorSetResponse.fromPartial(base ?? ({} as any));
|
|
504
|
-
},
|
|
505
|
-
fromPartial<I extends Exact<DeepPartial<GetLatestValidatorSetResponse>, I>>(
|
|
506
|
-
object: I,
|
|
507
|
-
): GetLatestValidatorSetResponse {
|
|
508
|
-
const message = createBaseGetLatestValidatorSetResponse();
|
|
509
|
-
message.blockHeight = object.blockHeight ?? 0;
|
|
510
|
-
message.validators = object.validators?.map((e) => Validator.fromPartial(e)) || [];
|
|
511
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
512
|
-
? PageResponse.fromPartial(object.pagination)
|
|
513
|
-
: undefined;
|
|
514
|
-
return message;
|
|
515
|
-
},
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
function createBaseValidator(): Validator {
|
|
519
|
-
return { address: "", pubKey: undefined, votingPower: 0, proposerPriority: 0 };
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
export const Validator: MessageFns<Validator> = {
|
|
523
|
-
encode(message: Validator, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
524
|
-
if (message.address !== "") {
|
|
525
|
-
writer.uint32(10).string(message.address);
|
|
526
|
-
}
|
|
527
|
-
if (message.pubKey !== undefined) {
|
|
528
|
-
Any.encode(message.pubKey, writer.uint32(18).fork()).join();
|
|
529
|
-
}
|
|
530
|
-
if (message.votingPower !== 0) {
|
|
531
|
-
writer.uint32(24).int64(message.votingPower);
|
|
532
|
-
}
|
|
533
|
-
if (message.proposerPriority !== 0) {
|
|
534
|
-
writer.uint32(32).int64(message.proposerPriority);
|
|
535
|
-
}
|
|
536
|
-
return writer;
|
|
537
|
-
},
|
|
538
|
-
|
|
539
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Validator {
|
|
540
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
541
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
542
|
-
const message = createBaseValidator();
|
|
543
|
-
while (reader.pos < end) {
|
|
544
|
-
const tag = reader.uint32();
|
|
545
|
-
switch (tag >>> 3) {
|
|
546
|
-
case 1: {
|
|
547
|
-
if (tag !== 10) {
|
|
548
|
-
break;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
message.address = reader.string();
|
|
552
|
-
continue;
|
|
553
|
-
}
|
|
554
|
-
case 2: {
|
|
555
|
-
if (tag !== 18) {
|
|
556
|
-
break;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
message.pubKey = Any.decode(reader, reader.uint32());
|
|
560
|
-
continue;
|
|
561
|
-
}
|
|
562
|
-
case 3: {
|
|
563
|
-
if (tag !== 24) {
|
|
564
|
-
break;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
message.votingPower = longToNumber(reader.int64());
|
|
568
|
-
continue;
|
|
569
|
-
}
|
|
570
|
-
case 4: {
|
|
571
|
-
if (tag !== 32) {
|
|
572
|
-
break;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
message.proposerPriority = longToNumber(reader.int64());
|
|
576
|
-
continue;
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
580
|
-
break;
|
|
581
|
-
}
|
|
582
|
-
reader.skip(tag & 7);
|
|
583
|
-
}
|
|
584
|
-
return message;
|
|
585
|
-
},
|
|
586
|
-
|
|
587
|
-
fromJSON(object: any): Validator {
|
|
588
|
-
return {
|
|
589
|
-
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
590
|
-
pubKey: isSet(object.pubKey) ? Any.fromJSON(object.pubKey) : undefined,
|
|
591
|
-
votingPower: isSet(object.votingPower) ? globalThis.Number(object.votingPower) : 0,
|
|
592
|
-
proposerPriority: isSet(object.proposerPriority) ? globalThis.Number(object.proposerPriority) : 0,
|
|
593
|
-
};
|
|
594
|
-
},
|
|
595
|
-
|
|
596
|
-
toJSON(message: Validator): unknown {
|
|
597
|
-
const obj: any = {};
|
|
598
|
-
if (message.address !== "") {
|
|
599
|
-
obj.address = message.address;
|
|
600
|
-
}
|
|
601
|
-
if (message.pubKey !== undefined) {
|
|
602
|
-
obj.pubKey = Any.toJSON(message.pubKey);
|
|
603
|
-
}
|
|
604
|
-
if (message.votingPower !== 0) {
|
|
605
|
-
obj.votingPower = Math.round(message.votingPower);
|
|
606
|
-
}
|
|
607
|
-
if (message.proposerPriority !== 0) {
|
|
608
|
-
obj.proposerPriority = Math.round(message.proposerPriority);
|
|
609
|
-
}
|
|
610
|
-
return obj;
|
|
611
|
-
},
|
|
612
|
-
|
|
613
|
-
create<I extends Exact<DeepPartial<Validator>, I>>(base?: I): Validator {
|
|
614
|
-
return Validator.fromPartial(base ?? ({} as any));
|
|
615
|
-
},
|
|
616
|
-
fromPartial<I extends Exact<DeepPartial<Validator>, I>>(object: I): Validator {
|
|
617
|
-
const message = createBaseValidator();
|
|
618
|
-
message.address = object.address ?? "";
|
|
619
|
-
message.pubKey = (object.pubKey !== undefined && object.pubKey !== null)
|
|
620
|
-
? Any.fromPartial(object.pubKey)
|
|
621
|
-
: undefined;
|
|
622
|
-
message.votingPower = object.votingPower ?? 0;
|
|
623
|
-
message.proposerPriority = object.proposerPriority ?? 0;
|
|
624
|
-
return message;
|
|
625
|
-
},
|
|
626
|
-
};
|
|
627
|
-
|
|
628
|
-
function createBaseGetBlockByHeightRequest(): GetBlockByHeightRequest {
|
|
629
|
-
return { height: 0 };
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
export const GetBlockByHeightRequest: MessageFns<GetBlockByHeightRequest> = {
|
|
633
|
-
encode(message: GetBlockByHeightRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
634
|
-
if (message.height !== 0) {
|
|
635
|
-
writer.uint32(8).int64(message.height);
|
|
636
|
-
}
|
|
637
|
-
return writer;
|
|
638
|
-
},
|
|
639
|
-
|
|
640
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GetBlockByHeightRequest {
|
|
641
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
642
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
643
|
-
const message = createBaseGetBlockByHeightRequest();
|
|
644
|
-
while (reader.pos < end) {
|
|
645
|
-
const tag = reader.uint32();
|
|
646
|
-
switch (tag >>> 3) {
|
|
647
|
-
case 1: {
|
|
648
|
-
if (tag !== 8) {
|
|
649
|
-
break;
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
message.height = longToNumber(reader.int64());
|
|
653
|
-
continue;
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
657
|
-
break;
|
|
658
|
-
}
|
|
659
|
-
reader.skip(tag & 7);
|
|
660
|
-
}
|
|
661
|
-
return message;
|
|
662
|
-
},
|
|
663
|
-
|
|
664
|
-
fromJSON(object: any): GetBlockByHeightRequest {
|
|
665
|
-
return { height: isSet(object.height) ? globalThis.Number(object.height) : 0 };
|
|
666
|
-
},
|
|
667
|
-
|
|
668
|
-
toJSON(message: GetBlockByHeightRequest): unknown {
|
|
669
|
-
const obj: any = {};
|
|
670
|
-
if (message.height !== 0) {
|
|
671
|
-
obj.height = Math.round(message.height);
|
|
672
|
-
}
|
|
673
|
-
return obj;
|
|
674
|
-
},
|
|
675
|
-
|
|
676
|
-
create<I extends Exact<DeepPartial<GetBlockByHeightRequest>, I>>(base?: I): GetBlockByHeightRequest {
|
|
677
|
-
return GetBlockByHeightRequest.fromPartial(base ?? ({} as any));
|
|
678
|
-
},
|
|
679
|
-
fromPartial<I extends Exact<DeepPartial<GetBlockByHeightRequest>, I>>(object: I): GetBlockByHeightRequest {
|
|
680
|
-
const message = createBaseGetBlockByHeightRequest();
|
|
681
|
-
message.height = object.height ?? 0;
|
|
682
|
-
return message;
|
|
683
|
-
},
|
|
684
|
-
};
|
|
685
|
-
|
|
686
|
-
function createBaseGetBlockByHeightResponse(): GetBlockByHeightResponse {
|
|
687
|
-
return { blockId: undefined, block: undefined, sdkBlock: undefined };
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
export const GetBlockByHeightResponse: MessageFns<GetBlockByHeightResponse> = {
|
|
691
|
-
encode(message: GetBlockByHeightResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
692
|
-
if (message.blockId !== undefined) {
|
|
693
|
-
BlockID.encode(message.blockId, writer.uint32(10).fork()).join();
|
|
694
|
-
}
|
|
695
|
-
if (message.block !== undefined) {
|
|
696
|
-
Block.encode(message.block, writer.uint32(18).fork()).join();
|
|
697
|
-
}
|
|
698
|
-
if (message.sdkBlock !== undefined) {
|
|
699
|
-
Block1.encode(message.sdkBlock, writer.uint32(26).fork()).join();
|
|
700
|
-
}
|
|
701
|
-
return writer;
|
|
702
|
-
},
|
|
703
|
-
|
|
704
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GetBlockByHeightResponse {
|
|
705
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
706
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
707
|
-
const message = createBaseGetBlockByHeightResponse();
|
|
708
|
-
while (reader.pos < end) {
|
|
709
|
-
const tag = reader.uint32();
|
|
710
|
-
switch (tag >>> 3) {
|
|
711
|
-
case 1: {
|
|
712
|
-
if (tag !== 10) {
|
|
713
|
-
break;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
message.blockId = BlockID.decode(reader, reader.uint32());
|
|
717
|
-
continue;
|
|
718
|
-
}
|
|
719
|
-
case 2: {
|
|
720
|
-
if (tag !== 18) {
|
|
721
|
-
break;
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
message.block = Block.decode(reader, reader.uint32());
|
|
725
|
-
continue;
|
|
726
|
-
}
|
|
727
|
-
case 3: {
|
|
728
|
-
if (tag !== 26) {
|
|
729
|
-
break;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
message.sdkBlock = Block1.decode(reader, reader.uint32());
|
|
733
|
-
continue;
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
737
|
-
break;
|
|
738
|
-
}
|
|
739
|
-
reader.skip(tag & 7);
|
|
740
|
-
}
|
|
741
|
-
return message;
|
|
742
|
-
},
|
|
743
|
-
|
|
744
|
-
fromJSON(object: any): GetBlockByHeightResponse {
|
|
745
|
-
return {
|
|
746
|
-
blockId: isSet(object.blockId) ? BlockID.fromJSON(object.blockId) : undefined,
|
|
747
|
-
block: isSet(object.block) ? Block.fromJSON(object.block) : undefined,
|
|
748
|
-
sdkBlock: isSet(object.sdkBlock) ? Block1.fromJSON(object.sdkBlock) : undefined,
|
|
749
|
-
};
|
|
750
|
-
},
|
|
751
|
-
|
|
752
|
-
toJSON(message: GetBlockByHeightResponse): unknown {
|
|
753
|
-
const obj: any = {};
|
|
754
|
-
if (message.blockId !== undefined) {
|
|
755
|
-
obj.blockId = BlockID.toJSON(message.blockId);
|
|
756
|
-
}
|
|
757
|
-
if (message.block !== undefined) {
|
|
758
|
-
obj.block = Block.toJSON(message.block);
|
|
759
|
-
}
|
|
760
|
-
if (message.sdkBlock !== undefined) {
|
|
761
|
-
obj.sdkBlock = Block1.toJSON(message.sdkBlock);
|
|
762
|
-
}
|
|
763
|
-
return obj;
|
|
764
|
-
},
|
|
765
|
-
|
|
766
|
-
create<I extends Exact<DeepPartial<GetBlockByHeightResponse>, I>>(base?: I): GetBlockByHeightResponse {
|
|
767
|
-
return GetBlockByHeightResponse.fromPartial(base ?? ({} as any));
|
|
768
|
-
},
|
|
769
|
-
fromPartial<I extends Exact<DeepPartial<GetBlockByHeightResponse>, I>>(object: I): GetBlockByHeightResponse {
|
|
770
|
-
const message = createBaseGetBlockByHeightResponse();
|
|
771
|
-
message.blockId = (object.blockId !== undefined && object.blockId !== null)
|
|
772
|
-
? BlockID.fromPartial(object.blockId)
|
|
773
|
-
: undefined;
|
|
774
|
-
message.block = (object.block !== undefined && object.block !== null) ? Block.fromPartial(object.block) : undefined;
|
|
775
|
-
message.sdkBlock = (object.sdkBlock !== undefined && object.sdkBlock !== null)
|
|
776
|
-
? Block1.fromPartial(object.sdkBlock)
|
|
777
|
-
: undefined;
|
|
778
|
-
return message;
|
|
779
|
-
},
|
|
780
|
-
};
|
|
781
|
-
|
|
782
|
-
function createBaseGetLatestBlockRequest(): GetLatestBlockRequest {
|
|
783
|
-
return {};
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
export const GetLatestBlockRequest: MessageFns<GetLatestBlockRequest> = {
|
|
787
|
-
encode(_: GetLatestBlockRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
788
|
-
return writer;
|
|
789
|
-
},
|
|
790
|
-
|
|
791
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GetLatestBlockRequest {
|
|
792
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
793
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
794
|
-
const message = createBaseGetLatestBlockRequest();
|
|
795
|
-
while (reader.pos < end) {
|
|
796
|
-
const tag = reader.uint32();
|
|
797
|
-
switch (tag >>> 3) {
|
|
798
|
-
}
|
|
799
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
800
|
-
break;
|
|
801
|
-
}
|
|
802
|
-
reader.skip(tag & 7);
|
|
803
|
-
}
|
|
804
|
-
return message;
|
|
805
|
-
},
|
|
806
|
-
|
|
807
|
-
fromJSON(_: any): GetLatestBlockRequest {
|
|
808
|
-
return {};
|
|
809
|
-
},
|
|
810
|
-
|
|
811
|
-
toJSON(_: GetLatestBlockRequest): unknown {
|
|
812
|
-
const obj: any = {};
|
|
813
|
-
return obj;
|
|
814
|
-
},
|
|
815
|
-
|
|
816
|
-
create<I extends Exact<DeepPartial<GetLatestBlockRequest>, I>>(base?: I): GetLatestBlockRequest {
|
|
817
|
-
return GetLatestBlockRequest.fromPartial(base ?? ({} as any));
|
|
818
|
-
},
|
|
819
|
-
fromPartial<I extends Exact<DeepPartial<GetLatestBlockRequest>, I>>(_: I): GetLatestBlockRequest {
|
|
820
|
-
const message = createBaseGetLatestBlockRequest();
|
|
821
|
-
return message;
|
|
822
|
-
},
|
|
823
|
-
};
|
|
824
|
-
|
|
825
|
-
function createBaseGetLatestBlockResponse(): GetLatestBlockResponse {
|
|
826
|
-
return { blockId: undefined, block: undefined, sdkBlock: undefined };
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
export const GetLatestBlockResponse: MessageFns<GetLatestBlockResponse> = {
|
|
830
|
-
encode(message: GetLatestBlockResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
831
|
-
if (message.blockId !== undefined) {
|
|
832
|
-
BlockID.encode(message.blockId, writer.uint32(10).fork()).join();
|
|
833
|
-
}
|
|
834
|
-
if (message.block !== undefined) {
|
|
835
|
-
Block.encode(message.block, writer.uint32(18).fork()).join();
|
|
836
|
-
}
|
|
837
|
-
if (message.sdkBlock !== undefined) {
|
|
838
|
-
Block1.encode(message.sdkBlock, writer.uint32(26).fork()).join();
|
|
839
|
-
}
|
|
840
|
-
return writer;
|
|
841
|
-
},
|
|
842
|
-
|
|
843
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GetLatestBlockResponse {
|
|
844
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
845
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
846
|
-
const message = createBaseGetLatestBlockResponse();
|
|
847
|
-
while (reader.pos < end) {
|
|
848
|
-
const tag = reader.uint32();
|
|
849
|
-
switch (tag >>> 3) {
|
|
850
|
-
case 1: {
|
|
851
|
-
if (tag !== 10) {
|
|
852
|
-
break;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
message.blockId = BlockID.decode(reader, reader.uint32());
|
|
856
|
-
continue;
|
|
857
|
-
}
|
|
858
|
-
case 2: {
|
|
859
|
-
if (tag !== 18) {
|
|
860
|
-
break;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
message.block = Block.decode(reader, reader.uint32());
|
|
864
|
-
continue;
|
|
865
|
-
}
|
|
866
|
-
case 3: {
|
|
867
|
-
if (tag !== 26) {
|
|
868
|
-
break;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
message.sdkBlock = Block1.decode(reader, reader.uint32());
|
|
872
|
-
continue;
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
876
|
-
break;
|
|
877
|
-
}
|
|
878
|
-
reader.skip(tag & 7);
|
|
879
|
-
}
|
|
880
|
-
return message;
|
|
881
|
-
},
|
|
882
|
-
|
|
883
|
-
fromJSON(object: any): GetLatestBlockResponse {
|
|
884
|
-
return {
|
|
885
|
-
blockId: isSet(object.blockId) ? BlockID.fromJSON(object.blockId) : undefined,
|
|
886
|
-
block: isSet(object.block) ? Block.fromJSON(object.block) : undefined,
|
|
887
|
-
sdkBlock: isSet(object.sdkBlock) ? Block1.fromJSON(object.sdkBlock) : undefined,
|
|
888
|
-
};
|
|
889
|
-
},
|
|
890
|
-
|
|
891
|
-
toJSON(message: GetLatestBlockResponse): unknown {
|
|
892
|
-
const obj: any = {};
|
|
893
|
-
if (message.blockId !== undefined) {
|
|
894
|
-
obj.blockId = BlockID.toJSON(message.blockId);
|
|
895
|
-
}
|
|
896
|
-
if (message.block !== undefined) {
|
|
897
|
-
obj.block = Block.toJSON(message.block);
|
|
898
|
-
}
|
|
899
|
-
if (message.sdkBlock !== undefined) {
|
|
900
|
-
obj.sdkBlock = Block1.toJSON(message.sdkBlock);
|
|
901
|
-
}
|
|
902
|
-
return obj;
|
|
903
|
-
},
|
|
904
|
-
|
|
905
|
-
create<I extends Exact<DeepPartial<GetLatestBlockResponse>, I>>(base?: I): GetLatestBlockResponse {
|
|
906
|
-
return GetLatestBlockResponse.fromPartial(base ?? ({} as any));
|
|
907
|
-
},
|
|
908
|
-
fromPartial<I extends Exact<DeepPartial<GetLatestBlockResponse>, I>>(object: I): GetLatestBlockResponse {
|
|
909
|
-
const message = createBaseGetLatestBlockResponse();
|
|
910
|
-
message.blockId = (object.blockId !== undefined && object.blockId !== null)
|
|
911
|
-
? BlockID.fromPartial(object.blockId)
|
|
912
|
-
: undefined;
|
|
913
|
-
message.block = (object.block !== undefined && object.block !== null) ? Block.fromPartial(object.block) : undefined;
|
|
914
|
-
message.sdkBlock = (object.sdkBlock !== undefined && object.sdkBlock !== null)
|
|
915
|
-
? Block1.fromPartial(object.sdkBlock)
|
|
916
|
-
: undefined;
|
|
917
|
-
return message;
|
|
918
|
-
},
|
|
919
|
-
};
|
|
920
|
-
|
|
921
|
-
function createBaseGetSyncingRequest(): GetSyncingRequest {
|
|
922
|
-
return {};
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
export const GetSyncingRequest: MessageFns<GetSyncingRequest> = {
|
|
926
|
-
encode(_: GetSyncingRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
927
|
-
return writer;
|
|
928
|
-
},
|
|
929
|
-
|
|
930
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GetSyncingRequest {
|
|
931
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
932
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
933
|
-
const message = createBaseGetSyncingRequest();
|
|
934
|
-
while (reader.pos < end) {
|
|
935
|
-
const tag = reader.uint32();
|
|
936
|
-
switch (tag >>> 3) {
|
|
937
|
-
}
|
|
938
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
939
|
-
break;
|
|
940
|
-
}
|
|
941
|
-
reader.skip(tag & 7);
|
|
942
|
-
}
|
|
943
|
-
return message;
|
|
944
|
-
},
|
|
945
|
-
|
|
946
|
-
fromJSON(_: any): GetSyncingRequest {
|
|
947
|
-
return {};
|
|
948
|
-
},
|
|
949
|
-
|
|
950
|
-
toJSON(_: GetSyncingRequest): unknown {
|
|
951
|
-
const obj: any = {};
|
|
952
|
-
return obj;
|
|
953
|
-
},
|
|
954
|
-
|
|
955
|
-
create<I extends Exact<DeepPartial<GetSyncingRequest>, I>>(base?: I): GetSyncingRequest {
|
|
956
|
-
return GetSyncingRequest.fromPartial(base ?? ({} as any));
|
|
957
|
-
},
|
|
958
|
-
fromPartial<I extends Exact<DeepPartial<GetSyncingRequest>, I>>(_: I): GetSyncingRequest {
|
|
959
|
-
const message = createBaseGetSyncingRequest();
|
|
960
|
-
return message;
|
|
961
|
-
},
|
|
962
|
-
};
|
|
963
|
-
|
|
964
|
-
function createBaseGetSyncingResponse(): GetSyncingResponse {
|
|
965
|
-
return { syncing: false };
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
export const GetSyncingResponse: MessageFns<GetSyncingResponse> = {
|
|
969
|
-
encode(message: GetSyncingResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
970
|
-
if (message.syncing !== false) {
|
|
971
|
-
writer.uint32(8).bool(message.syncing);
|
|
972
|
-
}
|
|
973
|
-
return writer;
|
|
974
|
-
},
|
|
975
|
-
|
|
976
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GetSyncingResponse {
|
|
977
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
978
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
979
|
-
const message = createBaseGetSyncingResponse();
|
|
980
|
-
while (reader.pos < end) {
|
|
981
|
-
const tag = reader.uint32();
|
|
982
|
-
switch (tag >>> 3) {
|
|
983
|
-
case 1: {
|
|
984
|
-
if (tag !== 8) {
|
|
985
|
-
break;
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
message.syncing = reader.bool();
|
|
989
|
-
continue;
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
993
|
-
break;
|
|
994
|
-
}
|
|
995
|
-
reader.skip(tag & 7);
|
|
996
|
-
}
|
|
997
|
-
return message;
|
|
998
|
-
},
|
|
999
|
-
|
|
1000
|
-
fromJSON(object: any): GetSyncingResponse {
|
|
1001
|
-
return { syncing: isSet(object.syncing) ? globalThis.Boolean(object.syncing) : false };
|
|
1002
|
-
},
|
|
1003
|
-
|
|
1004
|
-
toJSON(message: GetSyncingResponse): unknown {
|
|
1005
|
-
const obj: any = {};
|
|
1006
|
-
if (message.syncing !== false) {
|
|
1007
|
-
obj.syncing = message.syncing;
|
|
1008
|
-
}
|
|
1009
|
-
return obj;
|
|
1010
|
-
},
|
|
1011
|
-
|
|
1012
|
-
create<I extends Exact<DeepPartial<GetSyncingResponse>, I>>(base?: I): GetSyncingResponse {
|
|
1013
|
-
return GetSyncingResponse.fromPartial(base ?? ({} as any));
|
|
1014
|
-
},
|
|
1015
|
-
fromPartial<I extends Exact<DeepPartial<GetSyncingResponse>, I>>(object: I): GetSyncingResponse {
|
|
1016
|
-
const message = createBaseGetSyncingResponse();
|
|
1017
|
-
message.syncing = object.syncing ?? false;
|
|
1018
|
-
return message;
|
|
1019
|
-
},
|
|
1020
|
-
};
|
|
1021
|
-
|
|
1022
|
-
function createBaseGetNodeInfoRequest(): GetNodeInfoRequest {
|
|
1023
|
-
return {};
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
export const GetNodeInfoRequest: MessageFns<GetNodeInfoRequest> = {
|
|
1027
|
-
encode(_: GetNodeInfoRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1028
|
-
return writer;
|
|
1029
|
-
},
|
|
1030
|
-
|
|
1031
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GetNodeInfoRequest {
|
|
1032
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1033
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1034
|
-
const message = createBaseGetNodeInfoRequest();
|
|
1035
|
-
while (reader.pos < end) {
|
|
1036
|
-
const tag = reader.uint32();
|
|
1037
|
-
switch (tag >>> 3) {
|
|
1038
|
-
}
|
|
1039
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1040
|
-
break;
|
|
1041
|
-
}
|
|
1042
|
-
reader.skip(tag & 7);
|
|
1043
|
-
}
|
|
1044
|
-
return message;
|
|
1045
|
-
},
|
|
1046
|
-
|
|
1047
|
-
fromJSON(_: any): GetNodeInfoRequest {
|
|
1048
|
-
return {};
|
|
1049
|
-
},
|
|
1050
|
-
|
|
1051
|
-
toJSON(_: GetNodeInfoRequest): unknown {
|
|
1052
|
-
const obj: any = {};
|
|
1053
|
-
return obj;
|
|
1054
|
-
},
|
|
1055
|
-
|
|
1056
|
-
create<I extends Exact<DeepPartial<GetNodeInfoRequest>, I>>(base?: I): GetNodeInfoRequest {
|
|
1057
|
-
return GetNodeInfoRequest.fromPartial(base ?? ({} as any));
|
|
1058
|
-
},
|
|
1059
|
-
fromPartial<I extends Exact<DeepPartial<GetNodeInfoRequest>, I>>(_: I): GetNodeInfoRequest {
|
|
1060
|
-
const message = createBaseGetNodeInfoRequest();
|
|
1061
|
-
return message;
|
|
1062
|
-
},
|
|
1063
|
-
};
|
|
1064
|
-
|
|
1065
|
-
function createBaseGetNodeInfoResponse(): GetNodeInfoResponse {
|
|
1066
|
-
return { defaultNodeInfo: undefined, applicationVersion: undefined };
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
export const GetNodeInfoResponse: MessageFns<GetNodeInfoResponse> = {
|
|
1070
|
-
encode(message: GetNodeInfoResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1071
|
-
if (message.defaultNodeInfo !== undefined) {
|
|
1072
|
-
DefaultNodeInfo.encode(message.defaultNodeInfo, writer.uint32(10).fork()).join();
|
|
1073
|
-
}
|
|
1074
|
-
if (message.applicationVersion !== undefined) {
|
|
1075
|
-
VersionInfo.encode(message.applicationVersion, writer.uint32(18).fork()).join();
|
|
1076
|
-
}
|
|
1077
|
-
return writer;
|
|
1078
|
-
},
|
|
1079
|
-
|
|
1080
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GetNodeInfoResponse {
|
|
1081
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1082
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1083
|
-
const message = createBaseGetNodeInfoResponse();
|
|
1084
|
-
while (reader.pos < end) {
|
|
1085
|
-
const tag = reader.uint32();
|
|
1086
|
-
switch (tag >>> 3) {
|
|
1087
|
-
case 1: {
|
|
1088
|
-
if (tag !== 10) {
|
|
1089
|
-
break;
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
message.defaultNodeInfo = DefaultNodeInfo.decode(reader, reader.uint32());
|
|
1093
|
-
continue;
|
|
1094
|
-
}
|
|
1095
|
-
case 2: {
|
|
1096
|
-
if (tag !== 18) {
|
|
1097
|
-
break;
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
message.applicationVersion = VersionInfo.decode(reader, reader.uint32());
|
|
1101
|
-
continue;
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1105
|
-
break;
|
|
1106
|
-
}
|
|
1107
|
-
reader.skip(tag & 7);
|
|
1108
|
-
}
|
|
1109
|
-
return message;
|
|
1110
|
-
},
|
|
1111
|
-
|
|
1112
|
-
fromJSON(object: any): GetNodeInfoResponse {
|
|
1113
|
-
return {
|
|
1114
|
-
defaultNodeInfo: isSet(object.defaultNodeInfo) ? DefaultNodeInfo.fromJSON(object.defaultNodeInfo) : undefined,
|
|
1115
|
-
applicationVersion: isSet(object.applicationVersion)
|
|
1116
|
-
? VersionInfo.fromJSON(object.applicationVersion)
|
|
1117
|
-
: undefined,
|
|
1118
|
-
};
|
|
1119
|
-
},
|
|
1120
|
-
|
|
1121
|
-
toJSON(message: GetNodeInfoResponse): unknown {
|
|
1122
|
-
const obj: any = {};
|
|
1123
|
-
if (message.defaultNodeInfo !== undefined) {
|
|
1124
|
-
obj.defaultNodeInfo = DefaultNodeInfo.toJSON(message.defaultNodeInfo);
|
|
1125
|
-
}
|
|
1126
|
-
if (message.applicationVersion !== undefined) {
|
|
1127
|
-
obj.applicationVersion = VersionInfo.toJSON(message.applicationVersion);
|
|
1128
|
-
}
|
|
1129
|
-
return obj;
|
|
1130
|
-
},
|
|
1131
|
-
|
|
1132
|
-
create<I extends Exact<DeepPartial<GetNodeInfoResponse>, I>>(base?: I): GetNodeInfoResponse {
|
|
1133
|
-
return GetNodeInfoResponse.fromPartial(base ?? ({} as any));
|
|
1134
|
-
},
|
|
1135
|
-
fromPartial<I extends Exact<DeepPartial<GetNodeInfoResponse>, I>>(object: I): GetNodeInfoResponse {
|
|
1136
|
-
const message = createBaseGetNodeInfoResponse();
|
|
1137
|
-
message.defaultNodeInfo = (object.defaultNodeInfo !== undefined && object.defaultNodeInfo !== null)
|
|
1138
|
-
? DefaultNodeInfo.fromPartial(object.defaultNodeInfo)
|
|
1139
|
-
: undefined;
|
|
1140
|
-
message.applicationVersion = (object.applicationVersion !== undefined && object.applicationVersion !== null)
|
|
1141
|
-
? VersionInfo.fromPartial(object.applicationVersion)
|
|
1142
|
-
: undefined;
|
|
1143
|
-
return message;
|
|
1144
|
-
},
|
|
1145
|
-
};
|
|
1146
|
-
|
|
1147
|
-
function createBaseVersionInfo(): VersionInfo {
|
|
1148
|
-
return {
|
|
1149
|
-
name: "",
|
|
1150
|
-
appName: "",
|
|
1151
|
-
version: "",
|
|
1152
|
-
gitCommit: "",
|
|
1153
|
-
buildTags: "",
|
|
1154
|
-
goVersion: "",
|
|
1155
|
-
buildDeps: [],
|
|
1156
|
-
cosmosSdkVersion: "",
|
|
1157
|
-
};
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
export const VersionInfo: MessageFns<VersionInfo> = {
|
|
1161
|
-
encode(message: VersionInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1162
|
-
if (message.name !== "") {
|
|
1163
|
-
writer.uint32(10).string(message.name);
|
|
1164
|
-
}
|
|
1165
|
-
if (message.appName !== "") {
|
|
1166
|
-
writer.uint32(18).string(message.appName);
|
|
1167
|
-
}
|
|
1168
|
-
if (message.version !== "") {
|
|
1169
|
-
writer.uint32(26).string(message.version);
|
|
1170
|
-
}
|
|
1171
|
-
if (message.gitCommit !== "") {
|
|
1172
|
-
writer.uint32(34).string(message.gitCommit);
|
|
1173
|
-
}
|
|
1174
|
-
if (message.buildTags !== "") {
|
|
1175
|
-
writer.uint32(42).string(message.buildTags);
|
|
1176
|
-
}
|
|
1177
|
-
if (message.goVersion !== "") {
|
|
1178
|
-
writer.uint32(50).string(message.goVersion);
|
|
1179
|
-
}
|
|
1180
|
-
for (const v of message.buildDeps) {
|
|
1181
|
-
Module.encode(v!, writer.uint32(58).fork()).join();
|
|
1182
|
-
}
|
|
1183
|
-
if (message.cosmosSdkVersion !== "") {
|
|
1184
|
-
writer.uint32(66).string(message.cosmosSdkVersion);
|
|
1185
|
-
}
|
|
1186
|
-
return writer;
|
|
1187
|
-
},
|
|
1188
|
-
|
|
1189
|
-
decode(input: BinaryReader | Uint8Array, length?: number): VersionInfo {
|
|
1190
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1191
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1192
|
-
const message = createBaseVersionInfo();
|
|
1193
|
-
while (reader.pos < end) {
|
|
1194
|
-
const tag = reader.uint32();
|
|
1195
|
-
switch (tag >>> 3) {
|
|
1196
|
-
case 1: {
|
|
1197
|
-
if (tag !== 10) {
|
|
1198
|
-
break;
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
message.name = reader.string();
|
|
1202
|
-
continue;
|
|
1203
|
-
}
|
|
1204
|
-
case 2: {
|
|
1205
|
-
if (tag !== 18) {
|
|
1206
|
-
break;
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
message.appName = reader.string();
|
|
1210
|
-
continue;
|
|
1211
|
-
}
|
|
1212
|
-
case 3: {
|
|
1213
|
-
if (tag !== 26) {
|
|
1214
|
-
break;
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
message.version = reader.string();
|
|
1218
|
-
continue;
|
|
1219
|
-
}
|
|
1220
|
-
case 4: {
|
|
1221
|
-
if (tag !== 34) {
|
|
1222
|
-
break;
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
message.gitCommit = reader.string();
|
|
1226
|
-
continue;
|
|
1227
|
-
}
|
|
1228
|
-
case 5: {
|
|
1229
|
-
if (tag !== 42) {
|
|
1230
|
-
break;
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
message.buildTags = reader.string();
|
|
1234
|
-
continue;
|
|
1235
|
-
}
|
|
1236
|
-
case 6: {
|
|
1237
|
-
if (tag !== 50) {
|
|
1238
|
-
break;
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
message.goVersion = reader.string();
|
|
1242
|
-
continue;
|
|
1243
|
-
}
|
|
1244
|
-
case 7: {
|
|
1245
|
-
if (tag !== 58) {
|
|
1246
|
-
break;
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
message.buildDeps.push(Module.decode(reader, reader.uint32()));
|
|
1250
|
-
continue;
|
|
1251
|
-
}
|
|
1252
|
-
case 8: {
|
|
1253
|
-
if (tag !== 66) {
|
|
1254
|
-
break;
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
message.cosmosSdkVersion = reader.string();
|
|
1258
|
-
continue;
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1262
|
-
break;
|
|
1263
|
-
}
|
|
1264
|
-
reader.skip(tag & 7);
|
|
1265
|
-
}
|
|
1266
|
-
return message;
|
|
1267
|
-
},
|
|
1268
|
-
|
|
1269
|
-
fromJSON(object: any): VersionInfo {
|
|
1270
|
-
return {
|
|
1271
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1272
|
-
appName: isSet(object.appName) ? globalThis.String(object.appName) : "",
|
|
1273
|
-
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
1274
|
-
gitCommit: isSet(object.gitCommit) ? globalThis.String(object.gitCommit) : "",
|
|
1275
|
-
buildTags: isSet(object.buildTags) ? globalThis.String(object.buildTags) : "",
|
|
1276
|
-
goVersion: isSet(object.goVersion) ? globalThis.String(object.goVersion) : "",
|
|
1277
|
-
buildDeps: globalThis.Array.isArray(object?.buildDeps)
|
|
1278
|
-
? object.buildDeps.map((e: any) => Module.fromJSON(e))
|
|
1279
|
-
: [],
|
|
1280
|
-
cosmosSdkVersion: isSet(object.cosmosSdkVersion) ? globalThis.String(object.cosmosSdkVersion) : "",
|
|
1281
|
-
};
|
|
1282
|
-
},
|
|
1283
|
-
|
|
1284
|
-
toJSON(message: VersionInfo): unknown {
|
|
1285
|
-
const obj: any = {};
|
|
1286
|
-
if (message.name !== "") {
|
|
1287
|
-
obj.name = message.name;
|
|
1288
|
-
}
|
|
1289
|
-
if (message.appName !== "") {
|
|
1290
|
-
obj.appName = message.appName;
|
|
1291
|
-
}
|
|
1292
|
-
if (message.version !== "") {
|
|
1293
|
-
obj.version = message.version;
|
|
1294
|
-
}
|
|
1295
|
-
if (message.gitCommit !== "") {
|
|
1296
|
-
obj.gitCommit = message.gitCommit;
|
|
1297
|
-
}
|
|
1298
|
-
if (message.buildTags !== "") {
|
|
1299
|
-
obj.buildTags = message.buildTags;
|
|
1300
|
-
}
|
|
1301
|
-
if (message.goVersion !== "") {
|
|
1302
|
-
obj.goVersion = message.goVersion;
|
|
1303
|
-
}
|
|
1304
|
-
if (message.buildDeps?.length) {
|
|
1305
|
-
obj.buildDeps = message.buildDeps.map((e) => Module.toJSON(e));
|
|
1306
|
-
}
|
|
1307
|
-
if (message.cosmosSdkVersion !== "") {
|
|
1308
|
-
obj.cosmosSdkVersion = message.cosmosSdkVersion;
|
|
1309
|
-
}
|
|
1310
|
-
return obj;
|
|
1311
|
-
},
|
|
1312
|
-
|
|
1313
|
-
create<I extends Exact<DeepPartial<VersionInfo>, I>>(base?: I): VersionInfo {
|
|
1314
|
-
return VersionInfo.fromPartial(base ?? ({} as any));
|
|
1315
|
-
},
|
|
1316
|
-
fromPartial<I extends Exact<DeepPartial<VersionInfo>, I>>(object: I): VersionInfo {
|
|
1317
|
-
const message = createBaseVersionInfo();
|
|
1318
|
-
message.name = object.name ?? "";
|
|
1319
|
-
message.appName = object.appName ?? "";
|
|
1320
|
-
message.version = object.version ?? "";
|
|
1321
|
-
message.gitCommit = object.gitCommit ?? "";
|
|
1322
|
-
message.buildTags = object.buildTags ?? "";
|
|
1323
|
-
message.goVersion = object.goVersion ?? "";
|
|
1324
|
-
message.buildDeps = object.buildDeps?.map((e) => Module.fromPartial(e)) || [];
|
|
1325
|
-
message.cosmosSdkVersion = object.cosmosSdkVersion ?? "";
|
|
1326
|
-
return message;
|
|
1327
|
-
},
|
|
1328
|
-
};
|
|
1329
|
-
|
|
1330
|
-
function createBaseModule(): Module {
|
|
1331
|
-
return { path: "", version: "", sum: "" };
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
export const Module: MessageFns<Module> = {
|
|
1335
|
-
encode(message: Module, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1336
|
-
if (message.path !== "") {
|
|
1337
|
-
writer.uint32(10).string(message.path);
|
|
1338
|
-
}
|
|
1339
|
-
if (message.version !== "") {
|
|
1340
|
-
writer.uint32(18).string(message.version);
|
|
1341
|
-
}
|
|
1342
|
-
if (message.sum !== "") {
|
|
1343
|
-
writer.uint32(26).string(message.sum);
|
|
1344
|
-
}
|
|
1345
|
-
return writer;
|
|
1346
|
-
},
|
|
1347
|
-
|
|
1348
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Module {
|
|
1349
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1350
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1351
|
-
const message = createBaseModule();
|
|
1352
|
-
while (reader.pos < end) {
|
|
1353
|
-
const tag = reader.uint32();
|
|
1354
|
-
switch (tag >>> 3) {
|
|
1355
|
-
case 1: {
|
|
1356
|
-
if (tag !== 10) {
|
|
1357
|
-
break;
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
message.path = reader.string();
|
|
1361
|
-
continue;
|
|
1362
|
-
}
|
|
1363
|
-
case 2: {
|
|
1364
|
-
if (tag !== 18) {
|
|
1365
|
-
break;
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
message.version = reader.string();
|
|
1369
|
-
continue;
|
|
1370
|
-
}
|
|
1371
|
-
case 3: {
|
|
1372
|
-
if (tag !== 26) {
|
|
1373
|
-
break;
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
message.sum = reader.string();
|
|
1377
|
-
continue;
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1381
|
-
break;
|
|
1382
|
-
}
|
|
1383
|
-
reader.skip(tag & 7);
|
|
1384
|
-
}
|
|
1385
|
-
return message;
|
|
1386
|
-
},
|
|
1387
|
-
|
|
1388
|
-
fromJSON(object: any): Module {
|
|
1389
|
-
return {
|
|
1390
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
1391
|
-
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
1392
|
-
sum: isSet(object.sum) ? globalThis.String(object.sum) : "",
|
|
1393
|
-
};
|
|
1394
|
-
},
|
|
1395
|
-
|
|
1396
|
-
toJSON(message: Module): unknown {
|
|
1397
|
-
const obj: any = {};
|
|
1398
|
-
if (message.path !== "") {
|
|
1399
|
-
obj.path = message.path;
|
|
1400
|
-
}
|
|
1401
|
-
if (message.version !== "") {
|
|
1402
|
-
obj.version = message.version;
|
|
1403
|
-
}
|
|
1404
|
-
if (message.sum !== "") {
|
|
1405
|
-
obj.sum = message.sum;
|
|
1406
|
-
}
|
|
1407
|
-
return obj;
|
|
1408
|
-
},
|
|
1409
|
-
|
|
1410
|
-
create<I extends Exact<DeepPartial<Module>, I>>(base?: I): Module {
|
|
1411
|
-
return Module.fromPartial(base ?? ({} as any));
|
|
1412
|
-
},
|
|
1413
|
-
fromPartial<I extends Exact<DeepPartial<Module>, I>>(object: I): Module {
|
|
1414
|
-
const message = createBaseModule();
|
|
1415
|
-
message.path = object.path ?? "";
|
|
1416
|
-
message.version = object.version ?? "";
|
|
1417
|
-
message.sum = object.sum ?? "";
|
|
1418
|
-
return message;
|
|
1419
|
-
},
|
|
1420
|
-
};
|
|
1421
|
-
|
|
1422
|
-
function createBaseABCIQueryRequest(): ABCIQueryRequest {
|
|
1423
|
-
return { data: new Uint8Array(0), path: "", height: 0, prove: false };
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
-
export const ABCIQueryRequest: MessageFns<ABCIQueryRequest> = {
|
|
1427
|
-
encode(message: ABCIQueryRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1428
|
-
if (message.data.length !== 0) {
|
|
1429
|
-
writer.uint32(10).bytes(message.data);
|
|
1430
|
-
}
|
|
1431
|
-
if (message.path !== "") {
|
|
1432
|
-
writer.uint32(18).string(message.path);
|
|
1433
|
-
}
|
|
1434
|
-
if (message.height !== 0) {
|
|
1435
|
-
writer.uint32(24).int64(message.height);
|
|
1436
|
-
}
|
|
1437
|
-
if (message.prove !== false) {
|
|
1438
|
-
writer.uint32(32).bool(message.prove);
|
|
1439
|
-
}
|
|
1440
|
-
return writer;
|
|
1441
|
-
},
|
|
1442
|
-
|
|
1443
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ABCIQueryRequest {
|
|
1444
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1445
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1446
|
-
const message = createBaseABCIQueryRequest();
|
|
1447
|
-
while (reader.pos < end) {
|
|
1448
|
-
const tag = reader.uint32();
|
|
1449
|
-
switch (tag >>> 3) {
|
|
1450
|
-
case 1: {
|
|
1451
|
-
if (tag !== 10) {
|
|
1452
|
-
break;
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
|
-
message.data = reader.bytes();
|
|
1456
|
-
continue;
|
|
1457
|
-
}
|
|
1458
|
-
case 2: {
|
|
1459
|
-
if (tag !== 18) {
|
|
1460
|
-
break;
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
message.path = reader.string();
|
|
1464
|
-
continue;
|
|
1465
|
-
}
|
|
1466
|
-
case 3: {
|
|
1467
|
-
if (tag !== 24) {
|
|
1468
|
-
break;
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
message.height = longToNumber(reader.int64());
|
|
1472
|
-
continue;
|
|
1473
|
-
}
|
|
1474
|
-
case 4: {
|
|
1475
|
-
if (tag !== 32) {
|
|
1476
|
-
break;
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
message.prove = reader.bool();
|
|
1480
|
-
continue;
|
|
1481
|
-
}
|
|
1482
|
-
}
|
|
1483
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1484
|
-
break;
|
|
1485
|
-
}
|
|
1486
|
-
reader.skip(tag & 7);
|
|
1487
|
-
}
|
|
1488
|
-
return message;
|
|
1489
|
-
},
|
|
1490
|
-
|
|
1491
|
-
fromJSON(object: any): ABCIQueryRequest {
|
|
1492
|
-
return {
|
|
1493
|
-
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
|
|
1494
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
1495
|
-
height: isSet(object.height) ? globalThis.Number(object.height) : 0,
|
|
1496
|
-
prove: isSet(object.prove) ? globalThis.Boolean(object.prove) : false,
|
|
1497
|
-
};
|
|
1498
|
-
},
|
|
1499
|
-
|
|
1500
|
-
toJSON(message: ABCIQueryRequest): unknown {
|
|
1501
|
-
const obj: any = {};
|
|
1502
|
-
if (message.data.length !== 0) {
|
|
1503
|
-
obj.data = base64FromBytes(message.data);
|
|
1504
|
-
}
|
|
1505
|
-
if (message.path !== "") {
|
|
1506
|
-
obj.path = message.path;
|
|
1507
|
-
}
|
|
1508
|
-
if (message.height !== 0) {
|
|
1509
|
-
obj.height = Math.round(message.height);
|
|
1510
|
-
}
|
|
1511
|
-
if (message.prove !== false) {
|
|
1512
|
-
obj.prove = message.prove;
|
|
1513
|
-
}
|
|
1514
|
-
return obj;
|
|
1515
|
-
},
|
|
1516
|
-
|
|
1517
|
-
create<I extends Exact<DeepPartial<ABCIQueryRequest>, I>>(base?: I): ABCIQueryRequest {
|
|
1518
|
-
return ABCIQueryRequest.fromPartial(base ?? ({} as any));
|
|
1519
|
-
},
|
|
1520
|
-
fromPartial<I extends Exact<DeepPartial<ABCIQueryRequest>, I>>(object: I): ABCIQueryRequest {
|
|
1521
|
-
const message = createBaseABCIQueryRequest();
|
|
1522
|
-
message.data = object.data ?? new Uint8Array(0);
|
|
1523
|
-
message.path = object.path ?? "";
|
|
1524
|
-
message.height = object.height ?? 0;
|
|
1525
|
-
message.prove = object.prove ?? false;
|
|
1526
|
-
return message;
|
|
1527
|
-
},
|
|
1528
|
-
};
|
|
1529
|
-
|
|
1530
|
-
function createBaseABCIQueryResponse(): ABCIQueryResponse {
|
|
1531
|
-
return {
|
|
1532
|
-
code: 0,
|
|
1533
|
-
log: "",
|
|
1534
|
-
info: "",
|
|
1535
|
-
index: 0,
|
|
1536
|
-
key: new Uint8Array(0),
|
|
1537
|
-
value: new Uint8Array(0),
|
|
1538
|
-
proofOps: undefined,
|
|
1539
|
-
height: 0,
|
|
1540
|
-
codespace: "",
|
|
1541
|
-
};
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
|
-
export const ABCIQueryResponse: MessageFns<ABCIQueryResponse> = {
|
|
1545
|
-
encode(message: ABCIQueryResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1546
|
-
if (message.code !== 0) {
|
|
1547
|
-
writer.uint32(8).uint32(message.code);
|
|
1548
|
-
}
|
|
1549
|
-
if (message.log !== "") {
|
|
1550
|
-
writer.uint32(26).string(message.log);
|
|
1551
|
-
}
|
|
1552
|
-
if (message.info !== "") {
|
|
1553
|
-
writer.uint32(34).string(message.info);
|
|
1554
|
-
}
|
|
1555
|
-
if (message.index !== 0) {
|
|
1556
|
-
writer.uint32(40).int64(message.index);
|
|
1557
|
-
}
|
|
1558
|
-
if (message.key.length !== 0) {
|
|
1559
|
-
writer.uint32(50).bytes(message.key);
|
|
1560
|
-
}
|
|
1561
|
-
if (message.value.length !== 0) {
|
|
1562
|
-
writer.uint32(58).bytes(message.value);
|
|
1563
|
-
}
|
|
1564
|
-
if (message.proofOps !== undefined) {
|
|
1565
|
-
ProofOps.encode(message.proofOps, writer.uint32(66).fork()).join();
|
|
1566
|
-
}
|
|
1567
|
-
if (message.height !== 0) {
|
|
1568
|
-
writer.uint32(72).int64(message.height);
|
|
1569
|
-
}
|
|
1570
|
-
if (message.codespace !== "") {
|
|
1571
|
-
writer.uint32(82).string(message.codespace);
|
|
1572
|
-
}
|
|
1573
|
-
return writer;
|
|
1574
|
-
},
|
|
1575
|
-
|
|
1576
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ABCIQueryResponse {
|
|
1577
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1578
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1579
|
-
const message = createBaseABCIQueryResponse();
|
|
1580
|
-
while (reader.pos < end) {
|
|
1581
|
-
const tag = reader.uint32();
|
|
1582
|
-
switch (tag >>> 3) {
|
|
1583
|
-
case 1: {
|
|
1584
|
-
if (tag !== 8) {
|
|
1585
|
-
break;
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
message.code = reader.uint32();
|
|
1589
|
-
continue;
|
|
1590
|
-
}
|
|
1591
|
-
case 3: {
|
|
1592
|
-
if (tag !== 26) {
|
|
1593
|
-
break;
|
|
1594
|
-
}
|
|
1595
|
-
|
|
1596
|
-
message.log = reader.string();
|
|
1597
|
-
continue;
|
|
1598
|
-
}
|
|
1599
|
-
case 4: {
|
|
1600
|
-
if (tag !== 34) {
|
|
1601
|
-
break;
|
|
1602
|
-
}
|
|
1603
|
-
|
|
1604
|
-
message.info = reader.string();
|
|
1605
|
-
continue;
|
|
1606
|
-
}
|
|
1607
|
-
case 5: {
|
|
1608
|
-
if (tag !== 40) {
|
|
1609
|
-
break;
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
message.index = longToNumber(reader.int64());
|
|
1613
|
-
continue;
|
|
1614
|
-
}
|
|
1615
|
-
case 6: {
|
|
1616
|
-
if (tag !== 50) {
|
|
1617
|
-
break;
|
|
1618
|
-
}
|
|
1619
|
-
|
|
1620
|
-
message.key = reader.bytes();
|
|
1621
|
-
continue;
|
|
1622
|
-
}
|
|
1623
|
-
case 7: {
|
|
1624
|
-
if (tag !== 58) {
|
|
1625
|
-
break;
|
|
1626
|
-
}
|
|
1627
|
-
|
|
1628
|
-
message.value = reader.bytes();
|
|
1629
|
-
continue;
|
|
1630
|
-
}
|
|
1631
|
-
case 8: {
|
|
1632
|
-
if (tag !== 66) {
|
|
1633
|
-
break;
|
|
1634
|
-
}
|
|
1635
|
-
|
|
1636
|
-
message.proofOps = ProofOps.decode(reader, reader.uint32());
|
|
1637
|
-
continue;
|
|
1638
|
-
}
|
|
1639
|
-
case 9: {
|
|
1640
|
-
if (tag !== 72) {
|
|
1641
|
-
break;
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
|
-
message.height = longToNumber(reader.int64());
|
|
1645
|
-
continue;
|
|
1646
|
-
}
|
|
1647
|
-
case 10: {
|
|
1648
|
-
if (tag !== 82) {
|
|
1649
|
-
break;
|
|
1650
|
-
}
|
|
1651
|
-
|
|
1652
|
-
message.codespace = reader.string();
|
|
1653
|
-
continue;
|
|
1654
|
-
}
|
|
1655
|
-
}
|
|
1656
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1657
|
-
break;
|
|
1658
|
-
}
|
|
1659
|
-
reader.skip(tag & 7);
|
|
1660
|
-
}
|
|
1661
|
-
return message;
|
|
1662
|
-
},
|
|
1663
|
-
|
|
1664
|
-
fromJSON(object: any): ABCIQueryResponse {
|
|
1665
|
-
return {
|
|
1666
|
-
code: isSet(object.code) ? globalThis.Number(object.code) : 0,
|
|
1667
|
-
log: isSet(object.log) ? globalThis.String(object.log) : "",
|
|
1668
|
-
info: isSet(object.info) ? globalThis.String(object.info) : "",
|
|
1669
|
-
index: isSet(object.index) ? globalThis.Number(object.index) : 0,
|
|
1670
|
-
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(0),
|
|
1671
|
-
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
|
|
1672
|
-
proofOps: isSet(object.proofOps) ? ProofOps.fromJSON(object.proofOps) : undefined,
|
|
1673
|
-
height: isSet(object.height) ? globalThis.Number(object.height) : 0,
|
|
1674
|
-
codespace: isSet(object.codespace) ? globalThis.String(object.codespace) : "",
|
|
1675
|
-
};
|
|
1676
|
-
},
|
|
1677
|
-
|
|
1678
|
-
toJSON(message: ABCIQueryResponse): unknown {
|
|
1679
|
-
const obj: any = {};
|
|
1680
|
-
if (message.code !== 0) {
|
|
1681
|
-
obj.code = Math.round(message.code);
|
|
1682
|
-
}
|
|
1683
|
-
if (message.log !== "") {
|
|
1684
|
-
obj.log = message.log;
|
|
1685
|
-
}
|
|
1686
|
-
if (message.info !== "") {
|
|
1687
|
-
obj.info = message.info;
|
|
1688
|
-
}
|
|
1689
|
-
if (message.index !== 0) {
|
|
1690
|
-
obj.index = Math.round(message.index);
|
|
1691
|
-
}
|
|
1692
|
-
if (message.key.length !== 0) {
|
|
1693
|
-
obj.key = base64FromBytes(message.key);
|
|
1694
|
-
}
|
|
1695
|
-
if (message.value.length !== 0) {
|
|
1696
|
-
obj.value = base64FromBytes(message.value);
|
|
1697
|
-
}
|
|
1698
|
-
if (message.proofOps !== undefined) {
|
|
1699
|
-
obj.proofOps = ProofOps.toJSON(message.proofOps);
|
|
1700
|
-
}
|
|
1701
|
-
if (message.height !== 0) {
|
|
1702
|
-
obj.height = Math.round(message.height);
|
|
1703
|
-
}
|
|
1704
|
-
if (message.codespace !== "") {
|
|
1705
|
-
obj.codespace = message.codespace;
|
|
1706
|
-
}
|
|
1707
|
-
return obj;
|
|
1708
|
-
},
|
|
1709
|
-
|
|
1710
|
-
create<I extends Exact<DeepPartial<ABCIQueryResponse>, I>>(base?: I): ABCIQueryResponse {
|
|
1711
|
-
return ABCIQueryResponse.fromPartial(base ?? ({} as any));
|
|
1712
|
-
},
|
|
1713
|
-
fromPartial<I extends Exact<DeepPartial<ABCIQueryResponse>, I>>(object: I): ABCIQueryResponse {
|
|
1714
|
-
const message = createBaseABCIQueryResponse();
|
|
1715
|
-
message.code = object.code ?? 0;
|
|
1716
|
-
message.log = object.log ?? "";
|
|
1717
|
-
message.info = object.info ?? "";
|
|
1718
|
-
message.index = object.index ?? 0;
|
|
1719
|
-
message.key = object.key ?? new Uint8Array(0);
|
|
1720
|
-
message.value = object.value ?? new Uint8Array(0);
|
|
1721
|
-
message.proofOps = (object.proofOps !== undefined && object.proofOps !== null)
|
|
1722
|
-
? ProofOps.fromPartial(object.proofOps)
|
|
1723
|
-
: undefined;
|
|
1724
|
-
message.height = object.height ?? 0;
|
|
1725
|
-
message.codespace = object.codespace ?? "";
|
|
1726
|
-
return message;
|
|
1727
|
-
},
|
|
1728
|
-
};
|
|
1729
|
-
|
|
1730
|
-
function createBaseProofOp(): ProofOp {
|
|
1731
|
-
return { type: "", key: new Uint8Array(0), data: new Uint8Array(0) };
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
export const ProofOp: MessageFns<ProofOp> = {
|
|
1735
|
-
encode(message: ProofOp, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1736
|
-
if (message.type !== "") {
|
|
1737
|
-
writer.uint32(10).string(message.type);
|
|
1738
|
-
}
|
|
1739
|
-
if (message.key.length !== 0) {
|
|
1740
|
-
writer.uint32(18).bytes(message.key);
|
|
1741
|
-
}
|
|
1742
|
-
if (message.data.length !== 0) {
|
|
1743
|
-
writer.uint32(26).bytes(message.data);
|
|
1744
|
-
}
|
|
1745
|
-
return writer;
|
|
1746
|
-
},
|
|
1747
|
-
|
|
1748
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ProofOp {
|
|
1749
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1750
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1751
|
-
const message = createBaseProofOp();
|
|
1752
|
-
while (reader.pos < end) {
|
|
1753
|
-
const tag = reader.uint32();
|
|
1754
|
-
switch (tag >>> 3) {
|
|
1755
|
-
case 1: {
|
|
1756
|
-
if (tag !== 10) {
|
|
1757
|
-
break;
|
|
1758
|
-
}
|
|
1759
|
-
|
|
1760
|
-
message.type = reader.string();
|
|
1761
|
-
continue;
|
|
1762
|
-
}
|
|
1763
|
-
case 2: {
|
|
1764
|
-
if (tag !== 18) {
|
|
1765
|
-
break;
|
|
1766
|
-
}
|
|
1767
|
-
|
|
1768
|
-
message.key = reader.bytes();
|
|
1769
|
-
continue;
|
|
1770
|
-
}
|
|
1771
|
-
case 3: {
|
|
1772
|
-
if (tag !== 26) {
|
|
1773
|
-
break;
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
|
-
message.data = reader.bytes();
|
|
1777
|
-
continue;
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1781
|
-
break;
|
|
1782
|
-
}
|
|
1783
|
-
reader.skip(tag & 7);
|
|
1784
|
-
}
|
|
1785
|
-
return message;
|
|
1786
|
-
},
|
|
1787
|
-
|
|
1788
|
-
fromJSON(object: any): ProofOp {
|
|
1789
|
-
return {
|
|
1790
|
-
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
1791
|
-
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(0),
|
|
1792
|
-
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
|
|
1793
|
-
};
|
|
1794
|
-
},
|
|
1795
|
-
|
|
1796
|
-
toJSON(message: ProofOp): unknown {
|
|
1797
|
-
const obj: any = {};
|
|
1798
|
-
if (message.type !== "") {
|
|
1799
|
-
obj.type = message.type;
|
|
1800
|
-
}
|
|
1801
|
-
if (message.key.length !== 0) {
|
|
1802
|
-
obj.key = base64FromBytes(message.key);
|
|
1803
|
-
}
|
|
1804
|
-
if (message.data.length !== 0) {
|
|
1805
|
-
obj.data = base64FromBytes(message.data);
|
|
1806
|
-
}
|
|
1807
|
-
return obj;
|
|
1808
|
-
},
|
|
1809
|
-
|
|
1810
|
-
create<I extends Exact<DeepPartial<ProofOp>, I>>(base?: I): ProofOp {
|
|
1811
|
-
return ProofOp.fromPartial(base ?? ({} as any));
|
|
1812
|
-
},
|
|
1813
|
-
fromPartial<I extends Exact<DeepPartial<ProofOp>, I>>(object: I): ProofOp {
|
|
1814
|
-
const message = createBaseProofOp();
|
|
1815
|
-
message.type = object.type ?? "";
|
|
1816
|
-
message.key = object.key ?? new Uint8Array(0);
|
|
1817
|
-
message.data = object.data ?? new Uint8Array(0);
|
|
1818
|
-
return message;
|
|
1819
|
-
},
|
|
1820
|
-
};
|
|
1821
|
-
|
|
1822
|
-
function createBaseProofOps(): ProofOps {
|
|
1823
|
-
return { ops: [] };
|
|
1824
|
-
}
|
|
1825
|
-
|
|
1826
|
-
export const ProofOps: MessageFns<ProofOps> = {
|
|
1827
|
-
encode(message: ProofOps, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1828
|
-
for (const v of message.ops) {
|
|
1829
|
-
ProofOp.encode(v!, writer.uint32(10).fork()).join();
|
|
1830
|
-
}
|
|
1831
|
-
return writer;
|
|
1832
|
-
},
|
|
1833
|
-
|
|
1834
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ProofOps {
|
|
1835
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1836
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1837
|
-
const message = createBaseProofOps();
|
|
1838
|
-
while (reader.pos < end) {
|
|
1839
|
-
const tag = reader.uint32();
|
|
1840
|
-
switch (tag >>> 3) {
|
|
1841
|
-
case 1: {
|
|
1842
|
-
if (tag !== 10) {
|
|
1843
|
-
break;
|
|
1844
|
-
}
|
|
1845
|
-
|
|
1846
|
-
message.ops.push(ProofOp.decode(reader, reader.uint32()));
|
|
1847
|
-
continue;
|
|
1848
|
-
}
|
|
1849
|
-
}
|
|
1850
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1851
|
-
break;
|
|
1852
|
-
}
|
|
1853
|
-
reader.skip(tag & 7);
|
|
1854
|
-
}
|
|
1855
|
-
return message;
|
|
1856
|
-
},
|
|
1857
|
-
|
|
1858
|
-
fromJSON(object: any): ProofOps {
|
|
1859
|
-
return { ops: globalThis.Array.isArray(object?.ops) ? object.ops.map((e: any) => ProofOp.fromJSON(e)) : [] };
|
|
1860
|
-
},
|
|
1861
|
-
|
|
1862
|
-
toJSON(message: ProofOps): unknown {
|
|
1863
|
-
const obj: any = {};
|
|
1864
|
-
if (message.ops?.length) {
|
|
1865
|
-
obj.ops = message.ops.map((e) => ProofOp.toJSON(e));
|
|
1866
|
-
}
|
|
1867
|
-
return obj;
|
|
1868
|
-
},
|
|
1869
|
-
|
|
1870
|
-
create<I extends Exact<DeepPartial<ProofOps>, I>>(base?: I): ProofOps {
|
|
1871
|
-
return ProofOps.fromPartial(base ?? ({} as any));
|
|
1872
|
-
},
|
|
1873
|
-
fromPartial<I extends Exact<DeepPartial<ProofOps>, I>>(object: I): ProofOps {
|
|
1874
|
-
const message = createBaseProofOps();
|
|
1875
|
-
message.ops = object.ops?.map((e) => ProofOp.fromPartial(e)) || [];
|
|
1876
|
-
return message;
|
|
1877
|
-
},
|
|
1878
|
-
};
|
|
1879
|
-
|
|
1880
|
-
/** Service defines the gRPC querier service for tendermint queries. */
|
|
1881
|
-
export interface Service {
|
|
1882
|
-
/** GetNodeInfo queries the current node info. */
|
|
1883
|
-
GetNodeInfo(request: GetNodeInfoRequest): Promise<GetNodeInfoResponse>;
|
|
1884
|
-
/** GetSyncing queries node syncing. */
|
|
1885
|
-
GetSyncing(request: GetSyncingRequest): Promise<GetSyncingResponse>;
|
|
1886
|
-
/** GetLatestBlock returns the latest block. */
|
|
1887
|
-
GetLatestBlock(request: GetLatestBlockRequest): Promise<GetLatestBlockResponse>;
|
|
1888
|
-
/** GetBlockByHeight queries block for given height. */
|
|
1889
|
-
GetBlockByHeight(request: GetBlockByHeightRequest): Promise<GetBlockByHeightResponse>;
|
|
1890
|
-
/** GetLatestValidatorSet queries latest validator-set. */
|
|
1891
|
-
GetLatestValidatorSet(request: GetLatestValidatorSetRequest): Promise<GetLatestValidatorSetResponse>;
|
|
1892
|
-
/** GetValidatorSetByHeight queries validator-set at a given height. */
|
|
1893
|
-
GetValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise<GetValidatorSetByHeightResponse>;
|
|
1894
|
-
/**
|
|
1895
|
-
* ABCIQuery defines a query handler that supports ABCI queries directly to the
|
|
1896
|
-
* application, bypassing Tendermint completely. The ABCI query must contain
|
|
1897
|
-
* a valid and supported path, including app, custom, p2p, and store.
|
|
1898
|
-
*
|
|
1899
|
-
* Since: cosmos-sdk 0.46
|
|
1900
|
-
*/
|
|
1901
|
-
ABCIQuery(request: ABCIQueryRequest): Promise<ABCIQueryResponse>;
|
|
1902
|
-
}
|
|
1903
|
-
|
|
1904
|
-
export const ServiceServiceName = "cosmos.base.tendermint.v1beta1.Service";
|
|
1905
|
-
export class ServiceClientImpl implements Service {
|
|
1906
|
-
private readonly rpc: Rpc;
|
|
1907
|
-
private readonly service: string;
|
|
1908
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
1909
|
-
this.service = opts?.service || ServiceServiceName;
|
|
1910
|
-
this.rpc = rpc;
|
|
1911
|
-
this.GetNodeInfo = this.GetNodeInfo.bind(this);
|
|
1912
|
-
this.GetSyncing = this.GetSyncing.bind(this);
|
|
1913
|
-
this.GetLatestBlock = this.GetLatestBlock.bind(this);
|
|
1914
|
-
this.GetBlockByHeight = this.GetBlockByHeight.bind(this);
|
|
1915
|
-
this.GetLatestValidatorSet = this.GetLatestValidatorSet.bind(this);
|
|
1916
|
-
this.GetValidatorSetByHeight = this.GetValidatorSetByHeight.bind(this);
|
|
1917
|
-
this.ABCIQuery = this.ABCIQuery.bind(this);
|
|
1918
|
-
}
|
|
1919
|
-
GetNodeInfo(request: GetNodeInfoRequest): Promise<GetNodeInfoResponse> {
|
|
1920
|
-
const data = GetNodeInfoRequest.encode(request).finish();
|
|
1921
|
-
const promise = this.rpc.request(this.service, "GetNodeInfo", data);
|
|
1922
|
-
return promise.then((data) => GetNodeInfoResponse.decode(new BinaryReader(data)));
|
|
1923
|
-
}
|
|
1924
|
-
|
|
1925
|
-
GetSyncing(request: GetSyncingRequest): Promise<GetSyncingResponse> {
|
|
1926
|
-
const data = GetSyncingRequest.encode(request).finish();
|
|
1927
|
-
const promise = this.rpc.request(this.service, "GetSyncing", data);
|
|
1928
|
-
return promise.then((data) => GetSyncingResponse.decode(new BinaryReader(data)));
|
|
1929
|
-
}
|
|
1930
|
-
|
|
1931
|
-
GetLatestBlock(request: GetLatestBlockRequest): Promise<GetLatestBlockResponse> {
|
|
1932
|
-
const data = GetLatestBlockRequest.encode(request).finish();
|
|
1933
|
-
const promise = this.rpc.request(this.service, "GetLatestBlock", data);
|
|
1934
|
-
return promise.then((data) => GetLatestBlockResponse.decode(new BinaryReader(data)));
|
|
1935
|
-
}
|
|
1936
|
-
|
|
1937
|
-
GetBlockByHeight(request: GetBlockByHeightRequest): Promise<GetBlockByHeightResponse> {
|
|
1938
|
-
const data = GetBlockByHeightRequest.encode(request).finish();
|
|
1939
|
-
const promise = this.rpc.request(this.service, "GetBlockByHeight", data);
|
|
1940
|
-
return promise.then((data) => GetBlockByHeightResponse.decode(new BinaryReader(data)));
|
|
1941
|
-
}
|
|
1942
|
-
|
|
1943
|
-
GetLatestValidatorSet(request: GetLatestValidatorSetRequest): Promise<GetLatestValidatorSetResponse> {
|
|
1944
|
-
const data = GetLatestValidatorSetRequest.encode(request).finish();
|
|
1945
|
-
const promise = this.rpc.request(this.service, "GetLatestValidatorSet", data);
|
|
1946
|
-
return promise.then((data) => GetLatestValidatorSetResponse.decode(new BinaryReader(data)));
|
|
1947
|
-
}
|
|
1948
|
-
|
|
1949
|
-
GetValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise<GetValidatorSetByHeightResponse> {
|
|
1950
|
-
const data = GetValidatorSetByHeightRequest.encode(request).finish();
|
|
1951
|
-
const promise = this.rpc.request(this.service, "GetValidatorSetByHeight", data);
|
|
1952
|
-
return promise.then((data) => GetValidatorSetByHeightResponse.decode(new BinaryReader(data)));
|
|
1953
|
-
}
|
|
1954
|
-
|
|
1955
|
-
ABCIQuery(request: ABCIQueryRequest): Promise<ABCIQueryResponse> {
|
|
1956
|
-
const data = ABCIQueryRequest.encode(request).finish();
|
|
1957
|
-
const promise = this.rpc.request(this.service, "ABCIQuery", data);
|
|
1958
|
-
return promise.then((data) => ABCIQueryResponse.decode(new BinaryReader(data)));
|
|
1959
|
-
}
|
|
1960
|
-
}
|
|
1961
|
-
|
|
1962
|
-
interface Rpc {
|
|
1963
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
1964
|
-
}
|
|
1965
|
-
|
|
1966
|
-
function bytesFromBase64(b64: string): Uint8Array {
|
|
1967
|
-
if ((globalThis as any).Buffer) {
|
|
1968
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
1969
|
-
} else {
|
|
1970
|
-
const bin = globalThis.atob(b64);
|
|
1971
|
-
const arr = new Uint8Array(bin.length);
|
|
1972
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
1973
|
-
arr[i] = bin.charCodeAt(i);
|
|
1974
|
-
}
|
|
1975
|
-
return arr;
|
|
1976
|
-
}
|
|
1977
|
-
}
|
|
1978
|
-
|
|
1979
|
-
function base64FromBytes(arr: Uint8Array): string {
|
|
1980
|
-
if ((globalThis as any).Buffer) {
|
|
1981
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
1982
|
-
} else {
|
|
1983
|
-
const bin: string[] = [];
|
|
1984
|
-
arr.forEach((byte) => {
|
|
1985
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
1986
|
-
});
|
|
1987
|
-
return globalThis.btoa(bin.join(""));
|
|
1988
|
-
}
|
|
1989
|
-
}
|
|
1990
|
-
|
|
1991
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1992
|
-
|
|
1993
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
1994
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
1995
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
1996
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
1997
|
-
: Partial<T>;
|
|
1998
|
-
|
|
1999
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
2000
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
2001
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
2002
|
-
|
|
2003
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
2004
|
-
const num = globalThis.Number(int64.toString());
|
|
2005
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
2006
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
2007
|
-
}
|
|
2008
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
2009
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
2010
|
-
}
|
|
2011
|
-
return num;
|
|
2012
|
-
}
|
|
2013
|
-
|
|
2014
|
-
function isSet(value: any): boolean {
|
|
2015
|
-
return value !== null && value !== undefined;
|
|
2016
|
-
}
|
|
2017
|
-
|
|
2018
|
-
export interface MessageFns<T> {
|
|
2019
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
2020
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
2021
|
-
fromJSON(object: any): T;
|
|
2022
|
-
toJSON(message: T): unknown;
|
|
2023
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
2024
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
2025
|
-
}
|