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,1049 +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/autocli/v1/options.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
|
|
10
|
-
export const protobufPackage = "cosmos.autocli.v1";
|
|
11
|
-
|
|
12
|
-
/** ModuleOptions describes the CLI options for a Cosmos SDK module. */
|
|
13
|
-
export interface ModuleOptions {
|
|
14
|
-
/** tx describes the tx commands for the module. */
|
|
15
|
-
tx:
|
|
16
|
-
| ServiceCommandDescriptor
|
|
17
|
-
| undefined;
|
|
18
|
-
/** query describes the queries commands for the module. */
|
|
19
|
-
query: ServiceCommandDescriptor | undefined;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/** ServiceCommandDescriptor describes a CLI command based on a protobuf service. */
|
|
23
|
-
export interface ServiceCommandDescriptor {
|
|
24
|
-
/**
|
|
25
|
-
* service is the fully qualified name of the protobuf service to build
|
|
26
|
-
* the command from. It can be left empty if sub_commands are used instead
|
|
27
|
-
* which may be the case if a module provides multiple tx and/or query services.
|
|
28
|
-
*/
|
|
29
|
-
service: string;
|
|
30
|
-
/**
|
|
31
|
-
* rpc_command_options are options for commands generated from rpc methods.
|
|
32
|
-
* If no options are specified for a given rpc method on the service, a
|
|
33
|
-
* command will be generated for that method with the default options.
|
|
34
|
-
*/
|
|
35
|
-
rpcCommandOptions: RpcCommandOptions[];
|
|
36
|
-
/**
|
|
37
|
-
* sub_commands is a map of optional sub-commands for this command based on
|
|
38
|
-
* different protobuf services. The map key is used as the name of the
|
|
39
|
-
* sub-command.
|
|
40
|
-
*/
|
|
41
|
-
subCommands: { [key: string]: ServiceCommandDescriptor };
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface ServiceCommandDescriptor_SubCommandsEntry {
|
|
45
|
-
key: string;
|
|
46
|
-
value: ServiceCommandDescriptor | undefined;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* RpcCommandOptions specifies options for commands generated from protobuf
|
|
51
|
-
* rpc methods.
|
|
52
|
-
*/
|
|
53
|
-
export interface RpcCommandOptions {
|
|
54
|
-
/**
|
|
55
|
-
* rpc_method is short name of the protobuf rpc method that this command is
|
|
56
|
-
* generated from.
|
|
57
|
-
*/
|
|
58
|
-
rpcMethod: string;
|
|
59
|
-
/**
|
|
60
|
-
* use is the one-line usage method. It also allows specifying an alternate
|
|
61
|
-
* name for the command as the first word of the usage text.
|
|
62
|
-
*
|
|
63
|
-
* By default the name of an rpc command is the kebab-case short name of the
|
|
64
|
-
* rpc method.
|
|
65
|
-
*/
|
|
66
|
-
use: string;
|
|
67
|
-
/** long is the long message shown in the 'help <this-command>' output. */
|
|
68
|
-
long: string;
|
|
69
|
-
/** short is the short description shown in the 'help' output. */
|
|
70
|
-
short: string;
|
|
71
|
-
/** example is examples of how to use the command. */
|
|
72
|
-
example: string;
|
|
73
|
-
/** alias is an array of aliases that can be used instead of the first word in Use. */
|
|
74
|
-
alias: string[];
|
|
75
|
-
/**
|
|
76
|
-
* suggest_for is an array of command names for which this command will be suggested -
|
|
77
|
-
* similar to aliases but only suggests.
|
|
78
|
-
*/
|
|
79
|
-
suggestFor: string[];
|
|
80
|
-
/** deprecated defines, if this command is deprecated and should print this string when used. */
|
|
81
|
-
deprecated: string;
|
|
82
|
-
/**
|
|
83
|
-
* version defines the version for this command. If this value is non-empty and the command does not
|
|
84
|
-
* define a "version" flag, a "version" boolean flag will be added to the command and, if specified,
|
|
85
|
-
* will print content of the "Version" variable. A shorthand "v" flag will also be added if the
|
|
86
|
-
* command does not define one.
|
|
87
|
-
*/
|
|
88
|
-
version: string;
|
|
89
|
-
/**
|
|
90
|
-
* flag_options are options for flags generated from rpc request fields.
|
|
91
|
-
* By default all request fields are configured as flags. They can
|
|
92
|
-
* also be configured as positional args instead using positional_args.
|
|
93
|
-
*/
|
|
94
|
-
flagOptions: { [key: string]: FlagOptions };
|
|
95
|
-
/** positional_args specifies positional arguments for the command. */
|
|
96
|
-
positionalArgs: PositionalArgDescriptor[];
|
|
97
|
-
/** skip specifies whether to skip this rpc method when generating commands. */
|
|
98
|
-
skip: boolean;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export interface RpcCommandOptions_FlagOptionsEntry {
|
|
102
|
-
key: string;
|
|
103
|
-
value: FlagOptions | undefined;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* FlagOptions are options for flags generated from rpc request fields.
|
|
108
|
-
* By default, all request fields are configured as flags based on the
|
|
109
|
-
* kebab-case name of the field. Fields can be turned into positional arguments
|
|
110
|
-
* instead by using RpcCommandOptions.positional_args.
|
|
111
|
-
*/
|
|
112
|
-
export interface FlagOptions {
|
|
113
|
-
/** name is an alternate name to use for the field flag. */
|
|
114
|
-
name: string;
|
|
115
|
-
/** shorthand is a one-letter abbreviated flag. */
|
|
116
|
-
shorthand: string;
|
|
117
|
-
/** usage is the help message. */
|
|
118
|
-
usage: string;
|
|
119
|
-
/** default_value is the default value as text. */
|
|
120
|
-
defaultValue: string;
|
|
121
|
-
/** deprecated is the usage text to show if this flag is deprecated. */
|
|
122
|
-
deprecated: string;
|
|
123
|
-
/** shorthand_deprecated is the usage text to show if the shorthand of this flag is deprecated. */
|
|
124
|
-
shorthandDeprecated: string;
|
|
125
|
-
/** hidden hides the flag from help/usage text */
|
|
126
|
-
hidden: boolean;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/** PositionalArgDescriptor describes a positional argument. */
|
|
130
|
-
export interface PositionalArgDescriptor {
|
|
131
|
-
/**
|
|
132
|
-
* proto_field specifies the proto field to use as the positional arg. Any
|
|
133
|
-
* fields used as positional args will not have a flag generated.
|
|
134
|
-
*/
|
|
135
|
-
protoField: string;
|
|
136
|
-
/**
|
|
137
|
-
* varargs makes a positional parameter a varargs parameter. This can only be
|
|
138
|
-
* applied to last positional parameter and the proto_field must a repeated
|
|
139
|
-
* field.
|
|
140
|
-
*/
|
|
141
|
-
varargs: boolean;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
function createBaseModuleOptions(): ModuleOptions {
|
|
145
|
-
return { tx: undefined, query: undefined };
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export const ModuleOptions: MessageFns<ModuleOptions> = {
|
|
149
|
-
encode(message: ModuleOptions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
150
|
-
if (message.tx !== undefined) {
|
|
151
|
-
ServiceCommandDescriptor.encode(message.tx, writer.uint32(10).fork()).join();
|
|
152
|
-
}
|
|
153
|
-
if (message.query !== undefined) {
|
|
154
|
-
ServiceCommandDescriptor.encode(message.query, writer.uint32(18).fork()).join();
|
|
155
|
-
}
|
|
156
|
-
return writer;
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ModuleOptions {
|
|
160
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
161
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
162
|
-
const message = createBaseModuleOptions();
|
|
163
|
-
while (reader.pos < end) {
|
|
164
|
-
const tag = reader.uint32();
|
|
165
|
-
switch (tag >>> 3) {
|
|
166
|
-
case 1: {
|
|
167
|
-
if (tag !== 10) {
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
message.tx = ServiceCommandDescriptor.decode(reader, reader.uint32());
|
|
172
|
-
continue;
|
|
173
|
-
}
|
|
174
|
-
case 2: {
|
|
175
|
-
if (tag !== 18) {
|
|
176
|
-
break;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
message.query = ServiceCommandDescriptor.decode(reader, reader.uint32());
|
|
180
|
-
continue;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
184
|
-
break;
|
|
185
|
-
}
|
|
186
|
-
reader.skip(tag & 7);
|
|
187
|
-
}
|
|
188
|
-
return message;
|
|
189
|
-
},
|
|
190
|
-
|
|
191
|
-
fromJSON(object: any): ModuleOptions {
|
|
192
|
-
return {
|
|
193
|
-
tx: isSet(object.tx) ? ServiceCommandDescriptor.fromJSON(object.tx) : undefined,
|
|
194
|
-
query: isSet(object.query) ? ServiceCommandDescriptor.fromJSON(object.query) : undefined,
|
|
195
|
-
};
|
|
196
|
-
},
|
|
197
|
-
|
|
198
|
-
toJSON(message: ModuleOptions): unknown {
|
|
199
|
-
const obj: any = {};
|
|
200
|
-
if (message.tx !== undefined) {
|
|
201
|
-
obj.tx = ServiceCommandDescriptor.toJSON(message.tx);
|
|
202
|
-
}
|
|
203
|
-
if (message.query !== undefined) {
|
|
204
|
-
obj.query = ServiceCommandDescriptor.toJSON(message.query);
|
|
205
|
-
}
|
|
206
|
-
return obj;
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
create<I extends Exact<DeepPartial<ModuleOptions>, I>>(base?: I): ModuleOptions {
|
|
210
|
-
return ModuleOptions.fromPartial(base ?? ({} as any));
|
|
211
|
-
},
|
|
212
|
-
fromPartial<I extends Exact<DeepPartial<ModuleOptions>, I>>(object: I): ModuleOptions {
|
|
213
|
-
const message = createBaseModuleOptions();
|
|
214
|
-
message.tx = (object.tx !== undefined && object.tx !== null)
|
|
215
|
-
? ServiceCommandDescriptor.fromPartial(object.tx)
|
|
216
|
-
: undefined;
|
|
217
|
-
message.query = (object.query !== undefined && object.query !== null)
|
|
218
|
-
? ServiceCommandDescriptor.fromPartial(object.query)
|
|
219
|
-
: undefined;
|
|
220
|
-
return message;
|
|
221
|
-
},
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
function createBaseServiceCommandDescriptor(): ServiceCommandDescriptor {
|
|
225
|
-
return { service: "", rpcCommandOptions: [], subCommands: {} };
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export const ServiceCommandDescriptor: MessageFns<ServiceCommandDescriptor> = {
|
|
229
|
-
encode(message: ServiceCommandDescriptor, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
230
|
-
if (message.service !== "") {
|
|
231
|
-
writer.uint32(10).string(message.service);
|
|
232
|
-
}
|
|
233
|
-
for (const v of message.rpcCommandOptions) {
|
|
234
|
-
RpcCommandOptions.encode(v!, writer.uint32(18).fork()).join();
|
|
235
|
-
}
|
|
236
|
-
Object.entries(message.subCommands).forEach(([key, value]) => {
|
|
237
|
-
ServiceCommandDescriptor_SubCommandsEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).join();
|
|
238
|
-
});
|
|
239
|
-
return writer;
|
|
240
|
-
},
|
|
241
|
-
|
|
242
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ServiceCommandDescriptor {
|
|
243
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
244
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
245
|
-
const message = createBaseServiceCommandDescriptor();
|
|
246
|
-
while (reader.pos < end) {
|
|
247
|
-
const tag = reader.uint32();
|
|
248
|
-
switch (tag >>> 3) {
|
|
249
|
-
case 1: {
|
|
250
|
-
if (tag !== 10) {
|
|
251
|
-
break;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
message.service = reader.string();
|
|
255
|
-
continue;
|
|
256
|
-
}
|
|
257
|
-
case 2: {
|
|
258
|
-
if (tag !== 18) {
|
|
259
|
-
break;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
message.rpcCommandOptions.push(RpcCommandOptions.decode(reader, reader.uint32()));
|
|
263
|
-
continue;
|
|
264
|
-
}
|
|
265
|
-
case 3: {
|
|
266
|
-
if (tag !== 26) {
|
|
267
|
-
break;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
const entry3 = ServiceCommandDescriptor_SubCommandsEntry.decode(reader, reader.uint32());
|
|
271
|
-
if (entry3.value !== undefined) {
|
|
272
|
-
message.subCommands[entry3.key] = entry3.value;
|
|
273
|
-
}
|
|
274
|
-
continue;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
278
|
-
break;
|
|
279
|
-
}
|
|
280
|
-
reader.skip(tag & 7);
|
|
281
|
-
}
|
|
282
|
-
return message;
|
|
283
|
-
},
|
|
284
|
-
|
|
285
|
-
fromJSON(object: any): ServiceCommandDescriptor {
|
|
286
|
-
return {
|
|
287
|
-
service: isSet(object.service) ? globalThis.String(object.service) : "",
|
|
288
|
-
rpcCommandOptions: globalThis.Array.isArray(object?.rpcCommandOptions)
|
|
289
|
-
? object.rpcCommandOptions.map((e: any) => RpcCommandOptions.fromJSON(e))
|
|
290
|
-
: [],
|
|
291
|
-
subCommands: isObject(object.subCommands)
|
|
292
|
-
? Object.entries(object.subCommands).reduce<{ [key: string]: ServiceCommandDescriptor }>(
|
|
293
|
-
(acc, [key, value]) => {
|
|
294
|
-
acc[key] = ServiceCommandDescriptor.fromJSON(value);
|
|
295
|
-
return acc;
|
|
296
|
-
},
|
|
297
|
-
{},
|
|
298
|
-
)
|
|
299
|
-
: {},
|
|
300
|
-
};
|
|
301
|
-
},
|
|
302
|
-
|
|
303
|
-
toJSON(message: ServiceCommandDescriptor): unknown {
|
|
304
|
-
const obj: any = {};
|
|
305
|
-
if (message.service !== "") {
|
|
306
|
-
obj.service = message.service;
|
|
307
|
-
}
|
|
308
|
-
if (message.rpcCommandOptions?.length) {
|
|
309
|
-
obj.rpcCommandOptions = message.rpcCommandOptions.map((e) => RpcCommandOptions.toJSON(e));
|
|
310
|
-
}
|
|
311
|
-
if (message.subCommands) {
|
|
312
|
-
const entries = Object.entries(message.subCommands);
|
|
313
|
-
if (entries.length > 0) {
|
|
314
|
-
obj.subCommands = {};
|
|
315
|
-
entries.forEach(([k, v]) => {
|
|
316
|
-
obj.subCommands[k] = ServiceCommandDescriptor.toJSON(v);
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
return obj;
|
|
321
|
-
},
|
|
322
|
-
|
|
323
|
-
create<I extends Exact<DeepPartial<ServiceCommandDescriptor>, I>>(base?: I): ServiceCommandDescriptor {
|
|
324
|
-
return ServiceCommandDescriptor.fromPartial(base ?? ({} as any));
|
|
325
|
-
},
|
|
326
|
-
fromPartial<I extends Exact<DeepPartial<ServiceCommandDescriptor>, I>>(object: I): ServiceCommandDescriptor {
|
|
327
|
-
const message = createBaseServiceCommandDescriptor();
|
|
328
|
-
message.service = object.service ?? "";
|
|
329
|
-
message.rpcCommandOptions = object.rpcCommandOptions?.map((e) => RpcCommandOptions.fromPartial(e)) || [];
|
|
330
|
-
message.subCommands = Object.entries(object.subCommands ?? {}).reduce<{ [key: string]: ServiceCommandDescriptor }>(
|
|
331
|
-
(acc, [key, value]) => {
|
|
332
|
-
if (value !== undefined) {
|
|
333
|
-
acc[key] = ServiceCommandDescriptor.fromPartial(value);
|
|
334
|
-
}
|
|
335
|
-
return acc;
|
|
336
|
-
},
|
|
337
|
-
{},
|
|
338
|
-
);
|
|
339
|
-
return message;
|
|
340
|
-
},
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
function createBaseServiceCommandDescriptor_SubCommandsEntry(): ServiceCommandDescriptor_SubCommandsEntry {
|
|
344
|
-
return { key: "", value: undefined };
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
export const ServiceCommandDescriptor_SubCommandsEntry: MessageFns<ServiceCommandDescriptor_SubCommandsEntry> = {
|
|
348
|
-
encode(message: ServiceCommandDescriptor_SubCommandsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
349
|
-
if (message.key !== "") {
|
|
350
|
-
writer.uint32(10).string(message.key);
|
|
351
|
-
}
|
|
352
|
-
if (message.value !== undefined) {
|
|
353
|
-
ServiceCommandDescriptor.encode(message.value, writer.uint32(18).fork()).join();
|
|
354
|
-
}
|
|
355
|
-
return writer;
|
|
356
|
-
},
|
|
357
|
-
|
|
358
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ServiceCommandDescriptor_SubCommandsEntry {
|
|
359
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
360
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
361
|
-
const message = createBaseServiceCommandDescriptor_SubCommandsEntry();
|
|
362
|
-
while (reader.pos < end) {
|
|
363
|
-
const tag = reader.uint32();
|
|
364
|
-
switch (tag >>> 3) {
|
|
365
|
-
case 1: {
|
|
366
|
-
if (tag !== 10) {
|
|
367
|
-
break;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
message.key = reader.string();
|
|
371
|
-
continue;
|
|
372
|
-
}
|
|
373
|
-
case 2: {
|
|
374
|
-
if (tag !== 18) {
|
|
375
|
-
break;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
message.value = ServiceCommandDescriptor.decode(reader, reader.uint32());
|
|
379
|
-
continue;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
383
|
-
break;
|
|
384
|
-
}
|
|
385
|
-
reader.skip(tag & 7);
|
|
386
|
-
}
|
|
387
|
-
return message;
|
|
388
|
-
},
|
|
389
|
-
|
|
390
|
-
fromJSON(object: any): ServiceCommandDescriptor_SubCommandsEntry {
|
|
391
|
-
return {
|
|
392
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
393
|
-
value: isSet(object.value) ? ServiceCommandDescriptor.fromJSON(object.value) : undefined,
|
|
394
|
-
};
|
|
395
|
-
},
|
|
396
|
-
|
|
397
|
-
toJSON(message: ServiceCommandDescriptor_SubCommandsEntry): unknown {
|
|
398
|
-
const obj: any = {};
|
|
399
|
-
if (message.key !== "") {
|
|
400
|
-
obj.key = message.key;
|
|
401
|
-
}
|
|
402
|
-
if (message.value !== undefined) {
|
|
403
|
-
obj.value = ServiceCommandDescriptor.toJSON(message.value);
|
|
404
|
-
}
|
|
405
|
-
return obj;
|
|
406
|
-
},
|
|
407
|
-
|
|
408
|
-
create<I extends Exact<DeepPartial<ServiceCommandDescriptor_SubCommandsEntry>, I>>(
|
|
409
|
-
base?: I,
|
|
410
|
-
): ServiceCommandDescriptor_SubCommandsEntry {
|
|
411
|
-
return ServiceCommandDescriptor_SubCommandsEntry.fromPartial(base ?? ({} as any));
|
|
412
|
-
},
|
|
413
|
-
fromPartial<I extends Exact<DeepPartial<ServiceCommandDescriptor_SubCommandsEntry>, I>>(
|
|
414
|
-
object: I,
|
|
415
|
-
): ServiceCommandDescriptor_SubCommandsEntry {
|
|
416
|
-
const message = createBaseServiceCommandDescriptor_SubCommandsEntry();
|
|
417
|
-
message.key = object.key ?? "";
|
|
418
|
-
message.value = (object.value !== undefined && object.value !== null)
|
|
419
|
-
? ServiceCommandDescriptor.fromPartial(object.value)
|
|
420
|
-
: undefined;
|
|
421
|
-
return message;
|
|
422
|
-
},
|
|
423
|
-
};
|
|
424
|
-
|
|
425
|
-
function createBaseRpcCommandOptions(): RpcCommandOptions {
|
|
426
|
-
return {
|
|
427
|
-
rpcMethod: "",
|
|
428
|
-
use: "",
|
|
429
|
-
long: "",
|
|
430
|
-
short: "",
|
|
431
|
-
example: "",
|
|
432
|
-
alias: [],
|
|
433
|
-
suggestFor: [],
|
|
434
|
-
deprecated: "",
|
|
435
|
-
version: "",
|
|
436
|
-
flagOptions: {},
|
|
437
|
-
positionalArgs: [],
|
|
438
|
-
skip: false,
|
|
439
|
-
};
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
export const RpcCommandOptions: MessageFns<RpcCommandOptions> = {
|
|
443
|
-
encode(message: RpcCommandOptions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
444
|
-
if (message.rpcMethod !== "") {
|
|
445
|
-
writer.uint32(10).string(message.rpcMethod);
|
|
446
|
-
}
|
|
447
|
-
if (message.use !== "") {
|
|
448
|
-
writer.uint32(18).string(message.use);
|
|
449
|
-
}
|
|
450
|
-
if (message.long !== "") {
|
|
451
|
-
writer.uint32(26).string(message.long);
|
|
452
|
-
}
|
|
453
|
-
if (message.short !== "") {
|
|
454
|
-
writer.uint32(34).string(message.short);
|
|
455
|
-
}
|
|
456
|
-
if (message.example !== "") {
|
|
457
|
-
writer.uint32(42).string(message.example);
|
|
458
|
-
}
|
|
459
|
-
for (const v of message.alias) {
|
|
460
|
-
writer.uint32(50).string(v!);
|
|
461
|
-
}
|
|
462
|
-
for (const v of message.suggestFor) {
|
|
463
|
-
writer.uint32(58).string(v!);
|
|
464
|
-
}
|
|
465
|
-
if (message.deprecated !== "") {
|
|
466
|
-
writer.uint32(66).string(message.deprecated);
|
|
467
|
-
}
|
|
468
|
-
if (message.version !== "") {
|
|
469
|
-
writer.uint32(74).string(message.version);
|
|
470
|
-
}
|
|
471
|
-
Object.entries(message.flagOptions).forEach(([key, value]) => {
|
|
472
|
-
RpcCommandOptions_FlagOptionsEntry.encode({ key: key as any, value }, writer.uint32(82).fork()).join();
|
|
473
|
-
});
|
|
474
|
-
for (const v of message.positionalArgs) {
|
|
475
|
-
PositionalArgDescriptor.encode(v!, writer.uint32(90).fork()).join();
|
|
476
|
-
}
|
|
477
|
-
if (message.skip !== false) {
|
|
478
|
-
writer.uint32(96).bool(message.skip);
|
|
479
|
-
}
|
|
480
|
-
return writer;
|
|
481
|
-
},
|
|
482
|
-
|
|
483
|
-
decode(input: BinaryReader | Uint8Array, length?: number): RpcCommandOptions {
|
|
484
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
485
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
486
|
-
const message = createBaseRpcCommandOptions();
|
|
487
|
-
while (reader.pos < end) {
|
|
488
|
-
const tag = reader.uint32();
|
|
489
|
-
switch (tag >>> 3) {
|
|
490
|
-
case 1: {
|
|
491
|
-
if (tag !== 10) {
|
|
492
|
-
break;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
message.rpcMethod = reader.string();
|
|
496
|
-
continue;
|
|
497
|
-
}
|
|
498
|
-
case 2: {
|
|
499
|
-
if (tag !== 18) {
|
|
500
|
-
break;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
message.use = reader.string();
|
|
504
|
-
continue;
|
|
505
|
-
}
|
|
506
|
-
case 3: {
|
|
507
|
-
if (tag !== 26) {
|
|
508
|
-
break;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
message.long = reader.string();
|
|
512
|
-
continue;
|
|
513
|
-
}
|
|
514
|
-
case 4: {
|
|
515
|
-
if (tag !== 34) {
|
|
516
|
-
break;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
message.short = reader.string();
|
|
520
|
-
continue;
|
|
521
|
-
}
|
|
522
|
-
case 5: {
|
|
523
|
-
if (tag !== 42) {
|
|
524
|
-
break;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
message.example = reader.string();
|
|
528
|
-
continue;
|
|
529
|
-
}
|
|
530
|
-
case 6: {
|
|
531
|
-
if (tag !== 50) {
|
|
532
|
-
break;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
message.alias.push(reader.string());
|
|
536
|
-
continue;
|
|
537
|
-
}
|
|
538
|
-
case 7: {
|
|
539
|
-
if (tag !== 58) {
|
|
540
|
-
break;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
message.suggestFor.push(reader.string());
|
|
544
|
-
continue;
|
|
545
|
-
}
|
|
546
|
-
case 8: {
|
|
547
|
-
if (tag !== 66) {
|
|
548
|
-
break;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
message.deprecated = reader.string();
|
|
552
|
-
continue;
|
|
553
|
-
}
|
|
554
|
-
case 9: {
|
|
555
|
-
if (tag !== 74) {
|
|
556
|
-
break;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
message.version = reader.string();
|
|
560
|
-
continue;
|
|
561
|
-
}
|
|
562
|
-
case 10: {
|
|
563
|
-
if (tag !== 82) {
|
|
564
|
-
break;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
const entry10 = RpcCommandOptions_FlagOptionsEntry.decode(reader, reader.uint32());
|
|
568
|
-
if (entry10.value !== undefined) {
|
|
569
|
-
message.flagOptions[entry10.key] = entry10.value;
|
|
570
|
-
}
|
|
571
|
-
continue;
|
|
572
|
-
}
|
|
573
|
-
case 11: {
|
|
574
|
-
if (tag !== 90) {
|
|
575
|
-
break;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
message.positionalArgs.push(PositionalArgDescriptor.decode(reader, reader.uint32()));
|
|
579
|
-
continue;
|
|
580
|
-
}
|
|
581
|
-
case 12: {
|
|
582
|
-
if (tag !== 96) {
|
|
583
|
-
break;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
message.skip = reader.bool();
|
|
587
|
-
continue;
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
591
|
-
break;
|
|
592
|
-
}
|
|
593
|
-
reader.skip(tag & 7);
|
|
594
|
-
}
|
|
595
|
-
return message;
|
|
596
|
-
},
|
|
597
|
-
|
|
598
|
-
fromJSON(object: any): RpcCommandOptions {
|
|
599
|
-
return {
|
|
600
|
-
rpcMethod: isSet(object.rpcMethod) ? globalThis.String(object.rpcMethod) : "",
|
|
601
|
-
use: isSet(object.use) ? globalThis.String(object.use) : "",
|
|
602
|
-
long: isSet(object.long) ? globalThis.String(object.long) : "",
|
|
603
|
-
short: isSet(object.short) ? globalThis.String(object.short) : "",
|
|
604
|
-
example: isSet(object.example) ? globalThis.String(object.example) : "",
|
|
605
|
-
alias: globalThis.Array.isArray(object?.alias) ? object.alias.map((e: any) => globalThis.String(e)) : [],
|
|
606
|
-
suggestFor: globalThis.Array.isArray(object?.suggestFor)
|
|
607
|
-
? object.suggestFor.map((e: any) => globalThis.String(e))
|
|
608
|
-
: [],
|
|
609
|
-
deprecated: isSet(object.deprecated) ? globalThis.String(object.deprecated) : "",
|
|
610
|
-
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
611
|
-
flagOptions: isObject(object.flagOptions)
|
|
612
|
-
? Object.entries(object.flagOptions).reduce<{ [key: string]: FlagOptions }>((acc, [key, value]) => {
|
|
613
|
-
acc[key] = FlagOptions.fromJSON(value);
|
|
614
|
-
return acc;
|
|
615
|
-
}, {})
|
|
616
|
-
: {},
|
|
617
|
-
positionalArgs: globalThis.Array.isArray(object?.positionalArgs)
|
|
618
|
-
? object.positionalArgs.map((e: any) => PositionalArgDescriptor.fromJSON(e))
|
|
619
|
-
: [],
|
|
620
|
-
skip: isSet(object.skip) ? globalThis.Boolean(object.skip) : false,
|
|
621
|
-
};
|
|
622
|
-
},
|
|
623
|
-
|
|
624
|
-
toJSON(message: RpcCommandOptions): unknown {
|
|
625
|
-
const obj: any = {};
|
|
626
|
-
if (message.rpcMethod !== "") {
|
|
627
|
-
obj.rpcMethod = message.rpcMethod;
|
|
628
|
-
}
|
|
629
|
-
if (message.use !== "") {
|
|
630
|
-
obj.use = message.use;
|
|
631
|
-
}
|
|
632
|
-
if (message.long !== "") {
|
|
633
|
-
obj.long = message.long;
|
|
634
|
-
}
|
|
635
|
-
if (message.short !== "") {
|
|
636
|
-
obj.short = message.short;
|
|
637
|
-
}
|
|
638
|
-
if (message.example !== "") {
|
|
639
|
-
obj.example = message.example;
|
|
640
|
-
}
|
|
641
|
-
if (message.alias?.length) {
|
|
642
|
-
obj.alias = message.alias;
|
|
643
|
-
}
|
|
644
|
-
if (message.suggestFor?.length) {
|
|
645
|
-
obj.suggestFor = message.suggestFor;
|
|
646
|
-
}
|
|
647
|
-
if (message.deprecated !== "") {
|
|
648
|
-
obj.deprecated = message.deprecated;
|
|
649
|
-
}
|
|
650
|
-
if (message.version !== "") {
|
|
651
|
-
obj.version = message.version;
|
|
652
|
-
}
|
|
653
|
-
if (message.flagOptions) {
|
|
654
|
-
const entries = Object.entries(message.flagOptions);
|
|
655
|
-
if (entries.length > 0) {
|
|
656
|
-
obj.flagOptions = {};
|
|
657
|
-
entries.forEach(([k, v]) => {
|
|
658
|
-
obj.flagOptions[k] = FlagOptions.toJSON(v);
|
|
659
|
-
});
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
if (message.positionalArgs?.length) {
|
|
663
|
-
obj.positionalArgs = message.positionalArgs.map((e) => PositionalArgDescriptor.toJSON(e));
|
|
664
|
-
}
|
|
665
|
-
if (message.skip !== false) {
|
|
666
|
-
obj.skip = message.skip;
|
|
667
|
-
}
|
|
668
|
-
return obj;
|
|
669
|
-
},
|
|
670
|
-
|
|
671
|
-
create<I extends Exact<DeepPartial<RpcCommandOptions>, I>>(base?: I): RpcCommandOptions {
|
|
672
|
-
return RpcCommandOptions.fromPartial(base ?? ({} as any));
|
|
673
|
-
},
|
|
674
|
-
fromPartial<I extends Exact<DeepPartial<RpcCommandOptions>, I>>(object: I): RpcCommandOptions {
|
|
675
|
-
const message = createBaseRpcCommandOptions();
|
|
676
|
-
message.rpcMethod = object.rpcMethod ?? "";
|
|
677
|
-
message.use = object.use ?? "";
|
|
678
|
-
message.long = object.long ?? "";
|
|
679
|
-
message.short = object.short ?? "";
|
|
680
|
-
message.example = object.example ?? "";
|
|
681
|
-
message.alias = object.alias?.map((e) => e) || [];
|
|
682
|
-
message.suggestFor = object.suggestFor?.map((e) => e) || [];
|
|
683
|
-
message.deprecated = object.deprecated ?? "";
|
|
684
|
-
message.version = object.version ?? "";
|
|
685
|
-
message.flagOptions = Object.entries(object.flagOptions ?? {}).reduce<{ [key: string]: FlagOptions }>(
|
|
686
|
-
(acc, [key, value]) => {
|
|
687
|
-
if (value !== undefined) {
|
|
688
|
-
acc[key] = FlagOptions.fromPartial(value);
|
|
689
|
-
}
|
|
690
|
-
return acc;
|
|
691
|
-
},
|
|
692
|
-
{},
|
|
693
|
-
);
|
|
694
|
-
message.positionalArgs = object.positionalArgs?.map((e) => PositionalArgDescriptor.fromPartial(e)) || [];
|
|
695
|
-
message.skip = object.skip ?? false;
|
|
696
|
-
return message;
|
|
697
|
-
},
|
|
698
|
-
};
|
|
699
|
-
|
|
700
|
-
function createBaseRpcCommandOptions_FlagOptionsEntry(): RpcCommandOptions_FlagOptionsEntry {
|
|
701
|
-
return { key: "", value: undefined };
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
export const RpcCommandOptions_FlagOptionsEntry: MessageFns<RpcCommandOptions_FlagOptionsEntry> = {
|
|
705
|
-
encode(message: RpcCommandOptions_FlagOptionsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
706
|
-
if (message.key !== "") {
|
|
707
|
-
writer.uint32(10).string(message.key);
|
|
708
|
-
}
|
|
709
|
-
if (message.value !== undefined) {
|
|
710
|
-
FlagOptions.encode(message.value, writer.uint32(18).fork()).join();
|
|
711
|
-
}
|
|
712
|
-
return writer;
|
|
713
|
-
},
|
|
714
|
-
|
|
715
|
-
decode(input: BinaryReader | Uint8Array, length?: number): RpcCommandOptions_FlagOptionsEntry {
|
|
716
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
717
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
718
|
-
const message = createBaseRpcCommandOptions_FlagOptionsEntry();
|
|
719
|
-
while (reader.pos < end) {
|
|
720
|
-
const tag = reader.uint32();
|
|
721
|
-
switch (tag >>> 3) {
|
|
722
|
-
case 1: {
|
|
723
|
-
if (tag !== 10) {
|
|
724
|
-
break;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
message.key = reader.string();
|
|
728
|
-
continue;
|
|
729
|
-
}
|
|
730
|
-
case 2: {
|
|
731
|
-
if (tag !== 18) {
|
|
732
|
-
break;
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
message.value = FlagOptions.decode(reader, reader.uint32());
|
|
736
|
-
continue;
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
740
|
-
break;
|
|
741
|
-
}
|
|
742
|
-
reader.skip(tag & 7);
|
|
743
|
-
}
|
|
744
|
-
return message;
|
|
745
|
-
},
|
|
746
|
-
|
|
747
|
-
fromJSON(object: any): RpcCommandOptions_FlagOptionsEntry {
|
|
748
|
-
return {
|
|
749
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
750
|
-
value: isSet(object.value) ? FlagOptions.fromJSON(object.value) : undefined,
|
|
751
|
-
};
|
|
752
|
-
},
|
|
753
|
-
|
|
754
|
-
toJSON(message: RpcCommandOptions_FlagOptionsEntry): unknown {
|
|
755
|
-
const obj: any = {};
|
|
756
|
-
if (message.key !== "") {
|
|
757
|
-
obj.key = message.key;
|
|
758
|
-
}
|
|
759
|
-
if (message.value !== undefined) {
|
|
760
|
-
obj.value = FlagOptions.toJSON(message.value);
|
|
761
|
-
}
|
|
762
|
-
return obj;
|
|
763
|
-
},
|
|
764
|
-
|
|
765
|
-
create<I extends Exact<DeepPartial<RpcCommandOptions_FlagOptionsEntry>, I>>(
|
|
766
|
-
base?: I,
|
|
767
|
-
): RpcCommandOptions_FlagOptionsEntry {
|
|
768
|
-
return RpcCommandOptions_FlagOptionsEntry.fromPartial(base ?? ({} as any));
|
|
769
|
-
},
|
|
770
|
-
fromPartial<I extends Exact<DeepPartial<RpcCommandOptions_FlagOptionsEntry>, I>>(
|
|
771
|
-
object: I,
|
|
772
|
-
): RpcCommandOptions_FlagOptionsEntry {
|
|
773
|
-
const message = createBaseRpcCommandOptions_FlagOptionsEntry();
|
|
774
|
-
message.key = object.key ?? "";
|
|
775
|
-
message.value = (object.value !== undefined && object.value !== null)
|
|
776
|
-
? FlagOptions.fromPartial(object.value)
|
|
777
|
-
: undefined;
|
|
778
|
-
return message;
|
|
779
|
-
},
|
|
780
|
-
};
|
|
781
|
-
|
|
782
|
-
function createBaseFlagOptions(): FlagOptions {
|
|
783
|
-
return {
|
|
784
|
-
name: "",
|
|
785
|
-
shorthand: "",
|
|
786
|
-
usage: "",
|
|
787
|
-
defaultValue: "",
|
|
788
|
-
deprecated: "",
|
|
789
|
-
shorthandDeprecated: "",
|
|
790
|
-
hidden: false,
|
|
791
|
-
};
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
export const FlagOptions: MessageFns<FlagOptions> = {
|
|
795
|
-
encode(message: FlagOptions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
796
|
-
if (message.name !== "") {
|
|
797
|
-
writer.uint32(10).string(message.name);
|
|
798
|
-
}
|
|
799
|
-
if (message.shorthand !== "") {
|
|
800
|
-
writer.uint32(18).string(message.shorthand);
|
|
801
|
-
}
|
|
802
|
-
if (message.usage !== "") {
|
|
803
|
-
writer.uint32(26).string(message.usage);
|
|
804
|
-
}
|
|
805
|
-
if (message.defaultValue !== "") {
|
|
806
|
-
writer.uint32(34).string(message.defaultValue);
|
|
807
|
-
}
|
|
808
|
-
if (message.deprecated !== "") {
|
|
809
|
-
writer.uint32(50).string(message.deprecated);
|
|
810
|
-
}
|
|
811
|
-
if (message.shorthandDeprecated !== "") {
|
|
812
|
-
writer.uint32(58).string(message.shorthandDeprecated);
|
|
813
|
-
}
|
|
814
|
-
if (message.hidden !== false) {
|
|
815
|
-
writer.uint32(64).bool(message.hidden);
|
|
816
|
-
}
|
|
817
|
-
return writer;
|
|
818
|
-
},
|
|
819
|
-
|
|
820
|
-
decode(input: BinaryReader | Uint8Array, length?: number): FlagOptions {
|
|
821
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
822
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
823
|
-
const message = createBaseFlagOptions();
|
|
824
|
-
while (reader.pos < end) {
|
|
825
|
-
const tag = reader.uint32();
|
|
826
|
-
switch (tag >>> 3) {
|
|
827
|
-
case 1: {
|
|
828
|
-
if (tag !== 10) {
|
|
829
|
-
break;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
message.name = reader.string();
|
|
833
|
-
continue;
|
|
834
|
-
}
|
|
835
|
-
case 2: {
|
|
836
|
-
if (tag !== 18) {
|
|
837
|
-
break;
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
message.shorthand = reader.string();
|
|
841
|
-
continue;
|
|
842
|
-
}
|
|
843
|
-
case 3: {
|
|
844
|
-
if (tag !== 26) {
|
|
845
|
-
break;
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
message.usage = reader.string();
|
|
849
|
-
continue;
|
|
850
|
-
}
|
|
851
|
-
case 4: {
|
|
852
|
-
if (tag !== 34) {
|
|
853
|
-
break;
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
message.defaultValue = reader.string();
|
|
857
|
-
continue;
|
|
858
|
-
}
|
|
859
|
-
case 6: {
|
|
860
|
-
if (tag !== 50) {
|
|
861
|
-
break;
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
message.deprecated = reader.string();
|
|
865
|
-
continue;
|
|
866
|
-
}
|
|
867
|
-
case 7: {
|
|
868
|
-
if (tag !== 58) {
|
|
869
|
-
break;
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
message.shorthandDeprecated = reader.string();
|
|
873
|
-
continue;
|
|
874
|
-
}
|
|
875
|
-
case 8: {
|
|
876
|
-
if (tag !== 64) {
|
|
877
|
-
break;
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
message.hidden = reader.bool();
|
|
881
|
-
continue;
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
885
|
-
break;
|
|
886
|
-
}
|
|
887
|
-
reader.skip(tag & 7);
|
|
888
|
-
}
|
|
889
|
-
return message;
|
|
890
|
-
},
|
|
891
|
-
|
|
892
|
-
fromJSON(object: any): FlagOptions {
|
|
893
|
-
return {
|
|
894
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
895
|
-
shorthand: isSet(object.shorthand) ? globalThis.String(object.shorthand) : "",
|
|
896
|
-
usage: isSet(object.usage) ? globalThis.String(object.usage) : "",
|
|
897
|
-
defaultValue: isSet(object.defaultValue) ? globalThis.String(object.defaultValue) : "",
|
|
898
|
-
deprecated: isSet(object.deprecated) ? globalThis.String(object.deprecated) : "",
|
|
899
|
-
shorthandDeprecated: isSet(object.shorthandDeprecated) ? globalThis.String(object.shorthandDeprecated) : "",
|
|
900
|
-
hidden: isSet(object.hidden) ? globalThis.Boolean(object.hidden) : false,
|
|
901
|
-
};
|
|
902
|
-
},
|
|
903
|
-
|
|
904
|
-
toJSON(message: FlagOptions): unknown {
|
|
905
|
-
const obj: any = {};
|
|
906
|
-
if (message.name !== "") {
|
|
907
|
-
obj.name = message.name;
|
|
908
|
-
}
|
|
909
|
-
if (message.shorthand !== "") {
|
|
910
|
-
obj.shorthand = message.shorthand;
|
|
911
|
-
}
|
|
912
|
-
if (message.usage !== "") {
|
|
913
|
-
obj.usage = message.usage;
|
|
914
|
-
}
|
|
915
|
-
if (message.defaultValue !== "") {
|
|
916
|
-
obj.defaultValue = message.defaultValue;
|
|
917
|
-
}
|
|
918
|
-
if (message.deprecated !== "") {
|
|
919
|
-
obj.deprecated = message.deprecated;
|
|
920
|
-
}
|
|
921
|
-
if (message.shorthandDeprecated !== "") {
|
|
922
|
-
obj.shorthandDeprecated = message.shorthandDeprecated;
|
|
923
|
-
}
|
|
924
|
-
if (message.hidden !== false) {
|
|
925
|
-
obj.hidden = message.hidden;
|
|
926
|
-
}
|
|
927
|
-
return obj;
|
|
928
|
-
},
|
|
929
|
-
|
|
930
|
-
create<I extends Exact<DeepPartial<FlagOptions>, I>>(base?: I): FlagOptions {
|
|
931
|
-
return FlagOptions.fromPartial(base ?? ({} as any));
|
|
932
|
-
},
|
|
933
|
-
fromPartial<I extends Exact<DeepPartial<FlagOptions>, I>>(object: I): FlagOptions {
|
|
934
|
-
const message = createBaseFlagOptions();
|
|
935
|
-
message.name = object.name ?? "";
|
|
936
|
-
message.shorthand = object.shorthand ?? "";
|
|
937
|
-
message.usage = object.usage ?? "";
|
|
938
|
-
message.defaultValue = object.defaultValue ?? "";
|
|
939
|
-
message.deprecated = object.deprecated ?? "";
|
|
940
|
-
message.shorthandDeprecated = object.shorthandDeprecated ?? "";
|
|
941
|
-
message.hidden = object.hidden ?? false;
|
|
942
|
-
return message;
|
|
943
|
-
},
|
|
944
|
-
};
|
|
945
|
-
|
|
946
|
-
function createBasePositionalArgDescriptor(): PositionalArgDescriptor {
|
|
947
|
-
return { protoField: "", varargs: false };
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
export const PositionalArgDescriptor: MessageFns<PositionalArgDescriptor> = {
|
|
951
|
-
encode(message: PositionalArgDescriptor, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
952
|
-
if (message.protoField !== "") {
|
|
953
|
-
writer.uint32(10).string(message.protoField);
|
|
954
|
-
}
|
|
955
|
-
if (message.varargs !== false) {
|
|
956
|
-
writer.uint32(16).bool(message.varargs);
|
|
957
|
-
}
|
|
958
|
-
return writer;
|
|
959
|
-
},
|
|
960
|
-
|
|
961
|
-
decode(input: BinaryReader | Uint8Array, length?: number): PositionalArgDescriptor {
|
|
962
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
963
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
964
|
-
const message = createBasePositionalArgDescriptor();
|
|
965
|
-
while (reader.pos < end) {
|
|
966
|
-
const tag = reader.uint32();
|
|
967
|
-
switch (tag >>> 3) {
|
|
968
|
-
case 1: {
|
|
969
|
-
if (tag !== 10) {
|
|
970
|
-
break;
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
message.protoField = reader.string();
|
|
974
|
-
continue;
|
|
975
|
-
}
|
|
976
|
-
case 2: {
|
|
977
|
-
if (tag !== 16) {
|
|
978
|
-
break;
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
message.varargs = reader.bool();
|
|
982
|
-
continue;
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
986
|
-
break;
|
|
987
|
-
}
|
|
988
|
-
reader.skip(tag & 7);
|
|
989
|
-
}
|
|
990
|
-
return message;
|
|
991
|
-
},
|
|
992
|
-
|
|
993
|
-
fromJSON(object: any): PositionalArgDescriptor {
|
|
994
|
-
return {
|
|
995
|
-
protoField: isSet(object.protoField) ? globalThis.String(object.protoField) : "",
|
|
996
|
-
varargs: isSet(object.varargs) ? globalThis.Boolean(object.varargs) : false,
|
|
997
|
-
};
|
|
998
|
-
},
|
|
999
|
-
|
|
1000
|
-
toJSON(message: PositionalArgDescriptor): unknown {
|
|
1001
|
-
const obj: any = {};
|
|
1002
|
-
if (message.protoField !== "") {
|
|
1003
|
-
obj.protoField = message.protoField;
|
|
1004
|
-
}
|
|
1005
|
-
if (message.varargs !== false) {
|
|
1006
|
-
obj.varargs = message.varargs;
|
|
1007
|
-
}
|
|
1008
|
-
return obj;
|
|
1009
|
-
},
|
|
1010
|
-
|
|
1011
|
-
create<I extends Exact<DeepPartial<PositionalArgDescriptor>, I>>(base?: I): PositionalArgDescriptor {
|
|
1012
|
-
return PositionalArgDescriptor.fromPartial(base ?? ({} as any));
|
|
1013
|
-
},
|
|
1014
|
-
fromPartial<I extends Exact<DeepPartial<PositionalArgDescriptor>, I>>(object: I): PositionalArgDescriptor {
|
|
1015
|
-
const message = createBasePositionalArgDescriptor();
|
|
1016
|
-
message.protoField = object.protoField ?? "";
|
|
1017
|
-
message.varargs = object.varargs ?? false;
|
|
1018
|
-
return message;
|
|
1019
|
-
},
|
|
1020
|
-
};
|
|
1021
|
-
|
|
1022
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1023
|
-
|
|
1024
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
1025
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
1026
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
1027
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
1028
|
-
: Partial<T>;
|
|
1029
|
-
|
|
1030
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1031
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
1032
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
1033
|
-
|
|
1034
|
-
function isObject(value: any): boolean {
|
|
1035
|
-
return typeof value === "object" && value !== null;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
function isSet(value: any): boolean {
|
|
1039
|
-
return value !== null && value !== undefined;
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
export interface MessageFns<T> {
|
|
1043
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1044
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1045
|
-
fromJSON(object: any): T;
|
|
1046
|
-
toJSON(message: T): unknown;
|
|
1047
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
1048
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
1049
|
-
}
|