decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +78 -78
- package/lib/index.js +23 -23
- package/package.json +5 -2
- package/cardchain.cardchain/index.ts +0 -6
- package/cardchain.cardchain/module.ts +0 -1869
- package/cardchain.cardchain/registry.ts +0 -111
- package/cardchain.cardchain/rest.ts +0 -655
- package/cardchain.cardchain/types.ts +0 -63
- package/cardchain.featureflag/index.ts +0 -6
- package/cardchain.featureflag/module.ts +0 -165
- package/cardchain.featureflag/registry.ts +0 -11
- package/cardchain.featureflag/rest.ts +0 -256
- package/cardchain.featureflag/types.ts +0 -9
- package/client.ts +0 -164
- package/cosmos.auth.v1beta1/index.ts +0 -6
- package/cosmos.auth.v1beta1/module.ts +0 -136
- package/cosmos.auth.v1beta1/registry.ts +0 -9
- package/cosmos.auth.v1beta1/rest.ts +0 -403
- package/cosmos.auth.v1beta1/types.ts +0 -13
- package/cosmos.authz.v1beta1/index.ts +0 -6
- package/cosmos.authz.v1beta1/module.ts +0 -206
- package/cosmos.authz.v1beta1/registry.ts +0 -13
- package/cosmos.authz.v1beta1/rest.ts +0 -256
- package/cosmos.authz.v1beta1/types.ts +0 -17
- package/cosmos.bank.v1beta1/index.ts +0 -6
- package/cosmos.bank.v1beta1/module.ts +0 -247
- package/cosmos.bank.v1beta1/registry.ts +0 -15
- package/cosmos.bank.v1beta1/rest.ts +0 -466
- package/cosmos.bank.v1beta1/types.ts +0 -25
- package/cosmos.base.node.v1beta1/index.ts +0 -6
- package/cosmos.base.node.v1beta1/module.ts +0 -95
- package/cosmos.base.node.v1beta1/registry.ts +0 -7
- package/cosmos.base.node.v1beta1/rest.ts +0 -235
- package/cosmos.base.node.v1beta1/types.ts +0 -5
- package/cosmos.base.tendermint.v1beta1/index.ts +0 -6
- package/cosmos.base.tendermint.v1beta1/module.ts +0 -109
- package/cosmos.base.tendermint.v1beta1/registry.ts +0 -7
- package/cosmos.base.tendermint.v1beta1/rest.ts +0 -340
- package/cosmos.base.tendermint.v1beta1/types.ts +0 -19
- package/cosmos.circuit.v1/index.ts +0 -6
- package/cosmos.circuit.v1/module.ts +0 -198
- package/cosmos.circuit.v1/registry.ts +0 -13
- package/cosmos.circuit.v1/rest.ts +0 -256
- package/cosmos.circuit.v1/types.ts +0 -9
- package/cosmos.consensus.v1/index.ts +0 -6
- package/cosmos.consensus.v1/module.ts +0 -128
- package/cosmos.consensus.v1/registry.ts +0 -9
- package/cosmos.consensus.v1/rest.ts +0 -214
- package/cosmos.consensus.v1/types.ts +0 -5
- package/cosmos.crisis.v1beta1/index.ts +0 -6
- package/cosmos.crisis.v1beta1/module.ts +0 -161
- package/cosmos.crisis.v1beta1/registry.ts +0 -11
- package/cosmos.crisis.v1beta1/rest.ts +0 -193
- package/cosmos.crisis.v1beta1/types.ts +0 -5
- package/cosmos.distribution.v1beta1/index.ts +0 -6
- package/cosmos.distribution.v1beta1/module.ts +0 -364
- package/cosmos.distribution.v1beta1/registry.ts +0 -21
- package/cosmos.distribution.v1beta1/rest.ts +0 -403
- package/cosmos.distribution.v1beta1/types.ts +0 -43
- package/cosmos.evidence.v1beta1/index.ts +0 -6
- package/cosmos.evidence.v1beta1/module.ts +0 -130
- package/cosmos.evidence.v1beta1/registry.ts +0 -9
- package/cosmos.evidence.v1beta1/rest.ts +0 -235
- package/cosmos.evidence.v1beta1/types.ts +0 -7
- package/cosmos.feegrant.v1beta1/index.ts +0 -6
- package/cosmos.feegrant.v1beta1/module.ts +0 -202
- package/cosmos.feegrant.v1beta1/registry.ts +0 -13
- package/cosmos.feegrant.v1beta1/rest.ts +0 -256
- package/cosmos.feegrant.v1beta1/types.ts +0 -13
- package/cosmos.gov.v1/index.ts +0 -6
- package/cosmos.gov.v1/module.ts +0 -344
- package/cosmos.gov.v1/registry.ts +0 -21
- package/cosmos.gov.v1/rest.ts +0 -382
- package/cosmos.gov.v1/types.ts +0 -23
- package/cosmos.gov.v1beta1/index.ts +0 -6
- package/cosmos.gov.v1beta1/module.ts +0 -245
- package/cosmos.gov.v1beta1/registry.ts +0 -15
- package/cosmos.gov.v1beta1/rest.ts +0 -361
- package/cosmos.gov.v1beta1/types.ts +0 -23
- package/cosmos.group.v1/index.ts +0 -6
- package/cosmos.group.v1/module.ts +0 -599
- package/cosmos.group.v1/registry.ts +0 -35
- package/cosmos.group.v1/rest.ts +0 -487
- package/cosmos.group.v1/types.ts +0 -47
- package/cosmos.mint.v1beta1/index.ts +0 -6
- package/cosmos.mint.v1beta1/module.ts +0 -132
- package/cosmos.mint.v1beta1/registry.ts +0 -9
- package/cosmos.mint.v1beta1/rest.ts +0 -256
- package/cosmos.mint.v1beta1/types.ts +0 -9
- package/cosmos.nft.v1beta1/index.ts +0 -6
- package/cosmos.nft.v1beta1/module.ts +0 -140
- package/cosmos.nft.v1beta1/registry.ts +0 -9
- package/cosmos.nft.v1beta1/rest.ts +0 -340
- package/cosmos.nft.v1beta1/types.ts +0 -17
- package/cosmos.params.v1beta1/index.ts +0 -6
- package/cosmos.params.v1beta1/module.ts +0 -101
- package/cosmos.params.v1beta1/registry.ts +0 -7
- package/cosmos.params.v1beta1/rest.ts +0 -235
- package/cosmos.params.v1beta1/types.ts +0 -11
- package/cosmos.slashing.v1beta1/index.ts +0 -6
- package/cosmos.slashing.v1beta1/module.ts +0 -171
- package/cosmos.slashing.v1beta1/registry.ts +0 -11
- package/cosmos.slashing.v1beta1/rest.ts +0 -256
- package/cosmos.slashing.v1beta1/types.ts +0 -15
- package/cosmos.staking.v1beta1/index.ts +0 -6
- package/cosmos.staking.v1beta1/module.ts +0 -374
- package/cosmos.staking.v1beta1/registry.ts +0 -21
- package/cosmos.staking.v1beta1/rest.ts +0 -487
- package/cosmos.staking.v1beta1/types.ts +0 -53
- package/cosmos.tx.v1beta1/index.ts +0 -6
- package/cosmos.tx.v1beta1/module.ts +0 -121
- package/cosmos.tx.v1beta1/registry.ts +0 -7
- package/cosmos.tx.v1beta1/rest.ts +0 -382
- package/cosmos.tx.v1beta1/types.ts +0 -31
- package/cosmos.upgrade.v1beta1/index.ts +0 -6
- package/cosmos.upgrade.v1beta1/module.ts +0 -169
- package/cosmos.upgrade.v1beta1/registry.ts +0 -11
- package/cosmos.upgrade.v1beta1/rest.ts +0 -298
- package/cosmos.upgrade.v1beta1/types.ts +0 -13
- package/cosmos.vesting.v1beta1/index.ts +0 -6
- package/cosmos.vesting.v1beta1/module.ts +0 -206
- package/cosmos.vesting.v1beta1/registry.ts +0 -13
- package/cosmos.vesting.v1beta1/rest.ts +0 -193
- package/cosmos.vesting.v1beta1/types.ts +0 -17
- package/env.ts +0 -7
- package/helpers.ts +0 -32
- package/ibc.applications.fee.v1/index.ts +0 -6
- package/ibc.applications.fee.v1/module.ts +0 -247
- package/ibc.applications.fee.v1/registry.ts +0 -15
- package/ibc.applications.fee.v1/rest.ts +0 -403
- package/ibc.applications.fee.v1/types.ts +0 -25
- package/ibc.applications.interchain_accounts.controller.v1/index.ts +0 -6
- package/ibc.applications.interchain_accounts.controller.v1/module.ts +0 -196
- package/ibc.applications.interchain_accounts.controller.v1/registry.ts +0 -13
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -235
- package/ibc.applications.interchain_accounts.controller.v1/types.ts +0 -7
- package/ibc.applications.interchain_accounts.host.v1/index.ts +0 -6
- package/ibc.applications.interchain_accounts.host.v1/module.ts +0 -165
- package/ibc.applications.interchain_accounts.host.v1/registry.ts +0 -11
- package/ibc.applications.interchain_accounts.host.v1/rest.ts +0 -214
- package/ibc.applications.interchain_accounts.host.v1/types.ts +0 -9
- package/ibc.applications.transfer.v1/index.ts +0 -6
- package/ibc.applications.transfer.v1/module.ts +0 -169
- package/ibc.applications.transfer.v1/registry.ts +0 -11
- package/ibc.applications.transfer.v1/rest.ts +0 -319
- package/ibc.applications.transfer.v1/types.ts +0 -13
- package/ibc.core.channel.v1/index.ts +0 -6
- package/ibc.core.channel.v1/module.ts +0 -748
- package/ibc.core.channel.v1/registry.ts +0 -45
- package/ibc.core.channel.v1/rest.ts +0 -550
- package/ibc.core.channel.v1/types.ts +0 -31
- package/ibc.core.client.v1/index.ts +0 -6
- package/ibc.core.client.v1/module.ts +0 -344
- package/ibc.core.client.v1/registry.ts +0 -21
- package/ibc.core.client.v1/rest.ts +0 -403
- package/ibc.core.client.v1/types.ts +0 -23
- package/ibc.core.connection.v1/index.ts +0 -6
- package/ibc.core.connection.v1/module.ts +0 -274
- package/ibc.core.connection.v1/registry.ts +0 -17
- package/ibc.core.connection.v1/rest.ts +0 -319
- package/ibc.core.connection.v1/types.ts +0 -19
- package/index.ts +0 -81
- package/modules.ts +0 -5
- package/tsconfig.json +0 -13
- package/types/amino/amino.ts +0 -9
- package/types/capability/v1/capability.ts +0 -263
- package/types/capability/v1/genesis.ts +0 -220
- package/types/cardchain/cardchain/card.ts +0 -712
- package/types/cardchain/cardchain/card_content.ts +0 -116
- package/types/cardchain/cardchain/card_with_image.ts +0 -134
- package/types/cardchain/cardchain/council.ts +0 -502
- package/types/cardchain/cardchain/encounter.ts +0 -307
- package/types/cardchain/cardchain/encounter_with_image.ts +0 -119
- package/types/cardchain/cardchain/genesis.ts +0 -403
- package/types/cardchain/cardchain/image.ts +0 -122
- package/types/cardchain/cardchain/match.ts +0 -453
- package/types/cardchain/cardchain/module/module.ts +0 -99
- package/types/cardchain/cardchain/params.ts +0 -544
- package/types/cardchain/cardchain/query.ts +0 -3786
- package/types/cardchain/cardchain/running_average.ts +0 -116
- package/types/cardchain/cardchain/sell_offer.ts +0 -224
- package/types/cardchain/cardchain/server.ts +0 -144
- package/types/cardchain/cardchain/set.ts +0 -537
- package/types/cardchain/cardchain/set_with_artwork.ts +0 -142
- package/types/cardchain/cardchain/tx.ts +0 -8053
- package/types/cardchain/cardchain/user.ts +0 -955
- package/types/cardchain/cardchain/voting.ts +0 -328
- package/types/cardchain/cardchain/voting_results.ts +0 -227
- package/types/cardchain/cardchain/zealy.ts +0 -116
- package/types/cardchain/featureflag/flag.ts +0 -133
- package/types/cardchain/featureflag/genesis.ts +0 -226
- package/types/cardchain/featureflag/module/module.ts +0 -99
- package/types/cardchain/featureflag/params.ts +0 -78
- package/types/cardchain/featureflag/query.ts +0 -445
- package/types/cardchain/featureflag/tx.ts +0 -373
- package/types/cosmos/app/runtime/v1alpha1/module.ts +0 -389
- package/types/cosmos/app/v1alpha1/config.ts +0 -346
- package/types/cosmos/app/v1alpha1/module.ts +0 -348
- package/types/cosmos/app/v1alpha1/query.ts +0 -175
- package/types/cosmos/auth/module/v1/module.ts +0 -229
- package/types/cosmos/auth/v1beta1/auth.ts +0 -531
- package/types/cosmos/auth/v1beta1/genesis.ts +0 -125
- package/types/cosmos/auth/v1beta1/query.ts +0 -1564
- package/types/cosmos/auth/v1beta1/tx.ts +0 -213
- package/types/cosmos/authz/module/v1/module.ts +0 -78
- package/types/cosmos/authz/v1beta1/authz.ts +0 -411
- package/types/cosmos/authz/v1beta1/event.ts +0 -241
- package/types/cosmos/authz/v1beta1/genesis.ts +0 -101
- package/types/cosmos/authz/v1beta1/query.ts +0 -643
- package/types/cosmos/authz/v1beta1/tx.ts +0 -574
- package/types/cosmos/autocli/v1/options.ts +0 -1049
- package/types/cosmos/autocli/v1/query.ts +0 -291
- package/types/cosmos/bank/module/v1/module.ts +0 -150
- package/types/cosmos/bank/v1beta1/authz.ts +0 -129
- package/types/cosmos/bank/v1beta1/bank.ts +0 -775
- package/types/cosmos/bank/v1beta1/genesis.ts +0 -277
- package/types/cosmos/bank/v1beta1/query.ts +0 -2424
- package/types/cosmos/bank/v1beta1/tx.ts +0 -697
- package/types/cosmos/base/abci/v1beta1/abci.ts +0 -1469
- package/types/cosmos/base/node/v1beta1/query.ts +0 -485
- package/types/cosmos/base/query/v1beta1/pagination.ts +0 -336
- package/types/cosmos/base/reflection/v1beta1/reflection.ts +0 -328
- package/types/cosmos/base/reflection/v2alpha1/reflection.ts +0 -2092
- package/types/cosmos/base/tendermint/v1beta1/query.ts +0 -2025
- package/types/cosmos/base/tendermint/v1beta1/types.ts +0 -548
- package/types/cosmos/base/v1beta1/coin.ts +0 -209
- package/types/cosmos/circuit/module/v1/module.ts +0 -99
- package/types/cosmos/circuit/v1/query.ts +0 -476
- package/types/cosmos/circuit/v1/tx.ts +0 -576
- package/types/cosmos/circuit/v1/types.ts +0 -362
- package/types/cosmos/consensus/module/v1/module.ts +0 -99
- package/types/cosmos/consensus/v1/query.ts +0 -181
- package/types/cosmos/consensus/v1/tx.ts +0 -271
- package/types/cosmos/crisis/module/v1/module.ts +0 -119
- package/types/cosmos/crisis/v1beta1/genesis.ts +0 -105
- package/types/cosmos/crisis/v1beta1/tx.ts +0 -367
- package/types/cosmos/crypto/ed25519/keys.ts +0 -195
- package/types/cosmos/crypto/hd/v1/hd.ts +0 -178
- package/types/cosmos/crypto/keyring/v1/record.ts +0 -440
- package/types/cosmos/crypto/multisig/keys.ts +0 -124
- package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +0 -218
- package/types/cosmos/crypto/secp256k1/keys.ts +0 -192
- package/types/cosmos/crypto/secp256r1/keys.ts +0 -193
- package/types/cosmos/distribution/module/v1/module.ts +0 -118
- package/types/cosmos/distribution/v1beta1/distribution.ts +0 -1177
- package/types/cosmos/distribution/v1beta1/genesis.ts +0 -1028
- package/types/cosmos/distribution/v1beta1/query.ts +0 -1700
- package/types/cosmos/distribution/v1beta1/tx.ts +0 -1178
- package/types/cosmos/evidence/module/v1/module.ts +0 -78
- package/types/cosmos/evidence/v1beta1/evidence.ts +0 -194
- package/types/cosmos/evidence/v1beta1/genesis.ts +0 -98
- package/types/cosmos/evidence/v1beta1/query.ts +0 -414
- package/types/cosmos/evidence/v1beta1/tx.ts +0 -243
- package/types/cosmos/feegrant/module/v1/module.ts +0 -78
- package/types/cosmos/feegrant/v1beta1/feegrant.ts +0 -513
- package/types/cosmos/feegrant/v1beta1/genesis.ts +0 -101
- package/types/cosmos/feegrant/v1beta1/query.ts +0 -597
- package/types/cosmos/feegrant/v1beta1/tx.ts +0 -496
- package/types/cosmos/genutil/module/v1/module.ts +0 -78
- package/types/cosmos/genutil/v1beta1/genesis.ts +0 -122
- package/types/cosmos/gov/module/v1/module.ts +0 -133
- package/types/cosmos/gov/v1/genesis.ts +0 -313
- package/types/cosmos/gov/v1/gov.ts +0 -1712
- package/types/cosmos/gov/v1/query.ts +0 -1605
- package/types/cosmos/gov/v1/tx.ts +0 -1387
- package/types/cosmos/gov/v1beta1/genesis.ts +0 -241
- package/types/cosmos/gov/v1beta1/gov.ts +0 -1273
- package/types/cosmos/gov/v1beta1/query.ts +0 -1441
- package/types/cosmos/gov/v1beta1/tx.ts +0 -738
- package/types/cosmos/group/module/v1/module.ts +0 -141
- package/types/cosmos/group/v1/events.ts +0 -795
- package/types/cosmos/group/v1/genesis.ts +0 -265
- package/types/cosmos/group/v1/query.ts +0 -2441
- package/types/cosmos/group/v1/tx.ts +0 -2631
- package/types/cosmos/group/v1/types.ts +0 -1850
- package/types/cosmos/ics23/v1/proofs.ts +0 -1731
- package/types/cosmos/mint/module/v1/module.ts +0 -118
- package/types/cosmos/mint/v1beta1/genesis.ts +0 -126
- package/types/cosmos/mint/v1beta1/mint.ts +0 -293
- package/types/cosmos/mint/v1beta1/query.ts +0 -453
- package/types/cosmos/mint/v1beta1/tx.ts +0 -213
- package/types/cosmos/msg/textual/v1/textual.ts +0 -9
- package/types/cosmos/msg/v1/msg.ts +0 -9
- package/types/cosmos/nft/module/v1/module.ts +0 -78
- package/types/cosmos/nft/v1beta1/event.ts +0 -359
- package/types/cosmos/nft/v1beta1/genesis.ts +0 -204
- package/types/cosmos/nft/v1beta1/nft.ts +0 -348
- package/types/cosmos/nft/v1beta1/query.ts +0 -1173
- package/types/cosmos/nft/v1beta1/tx.ts +0 -228
- package/types/cosmos/orm/module/v1alpha1/module.ts +0 -82
- package/types/cosmos/orm/query/v1alpha1/query.ts +0 -933
- package/types/cosmos/orm/v1/orm.ts +0 -453
- package/types/cosmos/orm/v1alpha1/schema.ts +0 -321
- package/types/cosmos/params/module/v1/module.ts +0 -78
- package/types/cosmos/params/v1beta1/params.ts +0 -236
- package/types/cosmos/params/v1beta1/query.ts +0 -439
- package/types/cosmos/query/v1/query.ts +0 -9
- package/types/cosmos/reflection/v1/reflection.ts +0 -179
- package/types/cosmos/slashing/module/v1/module.ts +0 -99
- package/types/cosmos/slashing/v1beta1/genesis.ts +0 -424
- package/types/cosmos/slashing/v1beta1/query.ts +0 -487
- package/types/cosmos/slashing/v1beta1/slashing.ts +0 -422
- package/types/cosmos/slashing/v1beta1/tx.ts +0 -336
- package/types/cosmos/staking/module/v1/module.ts +0 -161
- package/types/cosmos/staking/v1beta1/authz.ts +0 -306
- package/types/cosmos/staking/v1beta1/genesis.ts +0 -377
- package/types/cosmos/staking/v1beta1/query.ts +0 -2540
- package/types/cosmos/staking/v1beta1/staking.ts +0 -2576
- package/types/cosmos/staking/v1beta1/tx.ts +0 -1433
- package/types/cosmos/store/internal/kv/v1beta1/kv.ts +0 -205
- package/types/cosmos/store/snapshots/v1/snapshot.ts +0 -746
- package/types/cosmos/store/streaming/abci/grpc.ts +0 -367
- package/types/cosmos/store/v1beta1/commit_info.ts +0 -370
- package/types/cosmos/store/v1beta1/listening.ts +0 -301
- package/types/cosmos/tx/config/v1/config.ts +0 -125
- package/types/cosmos/tx/signing/v1beta1/signing.ts +0 -630
- package/types/cosmos/tx/v1beta1/service.ts +0 -1889
- package/types/cosmos/tx/v1beta1/tx.ts +0 -1657
- package/types/cosmos/upgrade/module/v1/module.ts +0 -99
- package/types/cosmos/upgrade/v1beta1/query.ts +0 -819
- package/types/cosmos/upgrade/v1beta1/tx.ts +0 -340
- package/types/cosmos/upgrade/v1beta1/upgrade.ts +0 -525
- package/types/cosmos/vesting/module/v1/module.ts +0 -78
- package/types/cosmos/vesting/v1beta1/tx.ts +0 -640
- package/types/cosmos/vesting/v1beta1/vesting.ts +0 -624
- package/types/cosmos_proto/cosmos.ts +0 -307
- package/types/gogoproto/gogo.ts +0 -9
- package/types/google/api/annotations.ts +0 -9
- package/types/google/api/http.ts +0 -770
- package/types/google/protobuf/any.ts +0 -259
- package/types/google/protobuf/descriptor.ts +0 -6642
- package/types/google/protobuf/duration.ts +0 -200
- package/types/google/protobuf/timestamp.ts +0 -229
- package/types/ibc/applications/fee/v1/ack.ts +0 -166
- package/types/ibc/applications/fee/v1/fee.ts +0 -403
- package/types/ibc/applications/fee/v1/genesis.ts +0 -571
- package/types/ibc/applications/fee/v1/metadata.ts +0 -122
- package/types/ibc/applications/fee/v1/query.ts +0 -1757
- package/types/ibc/applications/fee/v1/tx.ts +0 -781
- package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +0 -104
- package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +0 -333
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +0 -619
- package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +0 -590
- package/types/ibc/applications/interchain_accounts/host/v1/host.ts +0 -242
- package/types/ibc/applications/interchain_accounts/host/v1/query.ts +0 -175
- package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +0 -416
- package/types/ibc/applications/interchain_accounts/v1/account.ts +0 -120
- package/types/ibc/applications/interchain_accounts/v1/metadata.ts +0 -199
- package/types/ibc/applications/interchain_accounts/v1/packet.ts +0 -264
- package/types/ibc/applications/transfer/v1/authz.ts +0 -254
- package/types/ibc/applications/transfer/v1/genesis.ts +0 -165
- package/types/ibc/applications/transfer/v1/query.ts +0 -934
- package/types/ibc/applications/transfer/v1/transfer.ts +0 -220
- package/types/ibc/applications/transfer/v1/tx.ts +0 -505
- package/types/ibc/applications/transfer/v2/packet.ts +0 -177
- package/types/ibc/core/channel/v1/channel.ts +0 -1358
- package/types/ibc/core/channel/v1/genesis.ts +0 -377
- package/types/ibc/core/channel/v1/query.ts +0 -3781
- package/types/ibc/core/channel/v1/tx.ts +0 -4424
- package/types/ibc/core/channel/v1/upgrade.ts +0 -348
- package/types/ibc/core/client/v1/client.ts +0 -753
- package/types/ibc/core/client/v1/genesis.ts +0 -423
- package/types/ibc/core/client/v1/query.ts +0 -1898
- package/types/ibc/core/client/v1/tx.ts +0 -1301
- package/types/ibc/core/commitment/v1/commitment.ts +0 -336
- package/types/ibc/core/connection/v1/connection.ts +0 -840
- package/types/ibc/core/connection/v1/genesis.ts +0 -172
- package/types/ibc/core/connection/v1/query.ts +0 -1243
- package/types/ibc/core/connection/v1/tx.ts +0 -1352
- package/types/ibc/core/types/v1/genesis.ts +0 -150
- package/types/ibc/lightclients/localhost/v2/localhost.ts +0 -102
- package/types/ibc/lightclients/solomachine/v2/solomachine.ts +0 -1765
- package/types/ibc/lightclients/solomachine/v3/solomachine.ts +0 -945
- package/types/ibc/lightclients/tendermint/v1/tendermint.ts +0 -853
- package/types/ibc/lightclients/wasm/v1/genesis.ts +0 -192
- package/types/ibc/lightclients/wasm/v1/query.ts +0 -377
- package/types/ibc/lightclients/wasm/v1/tx.ts +0 -550
- package/types/ibc/lightclients/wasm/v1/wasm.ts +0 -370
- package/types/tendermint/abci/types.ts +0 -6103
- package/types/tendermint/crypto/keys.ts +0 -142
- package/types/tendermint/crypto/proof.ts +0 -533
- package/types/tendermint/libs/bits/types.ts +0 -139
- package/types/tendermint/p2p/types.ts +0 -544
- package/types/tendermint/types/block.ts +0 -158
- package/types/tendermint/types/evidence.ts +0 -502
- package/types/tendermint/types/params.ts +0 -701
- package/types/tendermint/types/types.ts +0 -2133
- package/types/tendermint/types/validator.ts +0 -424
- package/types/tendermint/version/types.ts +0 -218
- package/types.d.ts +0 -21
|
@@ -1,525 +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/upgrade/v1beta1/upgrade.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Any } from "../../../google/protobuf/any";
|
|
10
|
-
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
11
|
-
|
|
12
|
-
export const protobufPackage = "cosmos.upgrade.v1beta1";
|
|
13
|
-
|
|
14
|
-
/** Plan specifies information about a planned upgrade and when it should occur. */
|
|
15
|
-
export interface Plan {
|
|
16
|
-
/**
|
|
17
|
-
* Sets the name for the upgrade. This name will be used by the upgraded
|
|
18
|
-
* version of the software to apply any special "on-upgrade" commands during
|
|
19
|
-
* the first BeginBlock method after the upgrade is applied. It is also used
|
|
20
|
-
* to detect whether a software version can handle a given upgrade. If no
|
|
21
|
-
* upgrade handler with this name has been set in the software, it will be
|
|
22
|
-
* assumed that the software is out-of-date when the upgrade Time or Height is
|
|
23
|
-
* reached and the software will exit.
|
|
24
|
-
*/
|
|
25
|
-
name: string;
|
|
26
|
-
/**
|
|
27
|
-
* Deprecated: Time based upgrades have been deprecated. Time based upgrade logic
|
|
28
|
-
* has been removed from the SDK.
|
|
29
|
-
* If this field is not empty, an error will be thrown.
|
|
30
|
-
*
|
|
31
|
-
* @deprecated
|
|
32
|
-
*/
|
|
33
|
-
time:
|
|
34
|
-
| Date
|
|
35
|
-
| undefined;
|
|
36
|
-
/** The height at which the upgrade must be performed. */
|
|
37
|
-
height: number;
|
|
38
|
-
/**
|
|
39
|
-
* Any application specific upgrade info to be included on-chain
|
|
40
|
-
* such as a git commit that validators could automatically upgrade to
|
|
41
|
-
*/
|
|
42
|
-
info: string;
|
|
43
|
-
/**
|
|
44
|
-
* Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been
|
|
45
|
-
* moved to the IBC module in the sub module 02-client.
|
|
46
|
-
* If this field is not empty, an error will be thrown.
|
|
47
|
-
*
|
|
48
|
-
* @deprecated
|
|
49
|
-
*/
|
|
50
|
-
upgradedClientState: Any | undefined;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* SoftwareUpgradeProposal is a gov Content type for initiating a software
|
|
55
|
-
* upgrade.
|
|
56
|
-
* Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
|
|
57
|
-
* proposals, see MsgSoftwareUpgrade.
|
|
58
|
-
*
|
|
59
|
-
* @deprecated
|
|
60
|
-
*/
|
|
61
|
-
export interface SoftwareUpgradeProposal {
|
|
62
|
-
/** title of the proposal */
|
|
63
|
-
title: string;
|
|
64
|
-
/** description of the proposal */
|
|
65
|
-
description: string;
|
|
66
|
-
/** plan of the proposal */
|
|
67
|
-
plan: Plan | undefined;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software
|
|
72
|
-
* upgrade.
|
|
73
|
-
* Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
|
|
74
|
-
* proposals, see MsgCancelUpgrade.
|
|
75
|
-
*
|
|
76
|
-
* @deprecated
|
|
77
|
-
*/
|
|
78
|
-
export interface CancelSoftwareUpgradeProposal {
|
|
79
|
-
/** title of the proposal */
|
|
80
|
-
title: string;
|
|
81
|
-
/** description of the proposal */
|
|
82
|
-
description: string;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* ModuleVersion specifies a module and its consensus version.
|
|
87
|
-
*
|
|
88
|
-
* Since: cosmos-sdk 0.43
|
|
89
|
-
*/
|
|
90
|
-
export interface ModuleVersion {
|
|
91
|
-
/** name of the app module */
|
|
92
|
-
name: string;
|
|
93
|
-
/** consensus version of the app module */
|
|
94
|
-
version: number;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function createBasePlan(): Plan {
|
|
98
|
-
return { name: "", time: undefined, height: 0, info: "", upgradedClientState: undefined };
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export const Plan: MessageFns<Plan> = {
|
|
102
|
-
encode(message: Plan, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
103
|
-
if (message.name !== "") {
|
|
104
|
-
writer.uint32(10).string(message.name);
|
|
105
|
-
}
|
|
106
|
-
if (message.time !== undefined) {
|
|
107
|
-
Timestamp.encode(toTimestamp(message.time), writer.uint32(18).fork()).join();
|
|
108
|
-
}
|
|
109
|
-
if (message.height !== 0) {
|
|
110
|
-
writer.uint32(24).int64(message.height);
|
|
111
|
-
}
|
|
112
|
-
if (message.info !== "") {
|
|
113
|
-
writer.uint32(34).string(message.info);
|
|
114
|
-
}
|
|
115
|
-
if (message.upgradedClientState !== undefined) {
|
|
116
|
-
Any.encode(message.upgradedClientState, writer.uint32(42).fork()).join();
|
|
117
|
-
}
|
|
118
|
-
return writer;
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Plan {
|
|
122
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
123
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
124
|
-
const message = createBasePlan();
|
|
125
|
-
while (reader.pos < end) {
|
|
126
|
-
const tag = reader.uint32();
|
|
127
|
-
switch (tag >>> 3) {
|
|
128
|
-
case 1: {
|
|
129
|
-
if (tag !== 10) {
|
|
130
|
-
break;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
message.name = reader.string();
|
|
134
|
-
continue;
|
|
135
|
-
}
|
|
136
|
-
case 2: {
|
|
137
|
-
if (tag !== 18) {
|
|
138
|
-
break;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
142
|
-
continue;
|
|
143
|
-
}
|
|
144
|
-
case 3: {
|
|
145
|
-
if (tag !== 24) {
|
|
146
|
-
break;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
message.height = longToNumber(reader.int64());
|
|
150
|
-
continue;
|
|
151
|
-
}
|
|
152
|
-
case 4: {
|
|
153
|
-
if (tag !== 34) {
|
|
154
|
-
break;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
message.info = reader.string();
|
|
158
|
-
continue;
|
|
159
|
-
}
|
|
160
|
-
case 5: {
|
|
161
|
-
if (tag !== 42) {
|
|
162
|
-
break;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
message.upgradedClientState = Any.decode(reader, reader.uint32());
|
|
166
|
-
continue;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
170
|
-
break;
|
|
171
|
-
}
|
|
172
|
-
reader.skip(tag & 7);
|
|
173
|
-
}
|
|
174
|
-
return message;
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
fromJSON(object: any): Plan {
|
|
178
|
-
return {
|
|
179
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
180
|
-
time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
|
|
181
|
-
height: isSet(object.height) ? globalThis.Number(object.height) : 0,
|
|
182
|
-
info: isSet(object.info) ? globalThis.String(object.info) : "",
|
|
183
|
-
upgradedClientState: isSet(object.upgradedClientState) ? Any.fromJSON(object.upgradedClientState) : undefined,
|
|
184
|
-
};
|
|
185
|
-
},
|
|
186
|
-
|
|
187
|
-
toJSON(message: Plan): unknown {
|
|
188
|
-
const obj: any = {};
|
|
189
|
-
if (message.name !== "") {
|
|
190
|
-
obj.name = message.name;
|
|
191
|
-
}
|
|
192
|
-
if (message.time !== undefined) {
|
|
193
|
-
obj.time = message.time.toISOString();
|
|
194
|
-
}
|
|
195
|
-
if (message.height !== 0) {
|
|
196
|
-
obj.height = Math.round(message.height);
|
|
197
|
-
}
|
|
198
|
-
if (message.info !== "") {
|
|
199
|
-
obj.info = message.info;
|
|
200
|
-
}
|
|
201
|
-
if (message.upgradedClientState !== undefined) {
|
|
202
|
-
obj.upgradedClientState = Any.toJSON(message.upgradedClientState);
|
|
203
|
-
}
|
|
204
|
-
return obj;
|
|
205
|
-
},
|
|
206
|
-
|
|
207
|
-
create<I extends Exact<DeepPartial<Plan>, I>>(base?: I): Plan {
|
|
208
|
-
return Plan.fromPartial(base ?? ({} as any));
|
|
209
|
-
},
|
|
210
|
-
fromPartial<I extends Exact<DeepPartial<Plan>, I>>(object: I): Plan {
|
|
211
|
-
const message = createBasePlan();
|
|
212
|
-
message.name = object.name ?? "";
|
|
213
|
-
message.time = object.time ?? undefined;
|
|
214
|
-
message.height = object.height ?? 0;
|
|
215
|
-
message.info = object.info ?? "";
|
|
216
|
-
message.upgradedClientState = (object.upgradedClientState !== undefined && object.upgradedClientState !== null)
|
|
217
|
-
? Any.fromPartial(object.upgradedClientState)
|
|
218
|
-
: undefined;
|
|
219
|
-
return message;
|
|
220
|
-
},
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
function createBaseSoftwareUpgradeProposal(): SoftwareUpgradeProposal {
|
|
224
|
-
return { title: "", description: "", plan: undefined };
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export const SoftwareUpgradeProposal: MessageFns<SoftwareUpgradeProposal> = {
|
|
228
|
-
encode(message: SoftwareUpgradeProposal, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
229
|
-
if (message.title !== "") {
|
|
230
|
-
writer.uint32(10).string(message.title);
|
|
231
|
-
}
|
|
232
|
-
if (message.description !== "") {
|
|
233
|
-
writer.uint32(18).string(message.description);
|
|
234
|
-
}
|
|
235
|
-
if (message.plan !== undefined) {
|
|
236
|
-
Plan.encode(message.plan, writer.uint32(26).fork()).join();
|
|
237
|
-
}
|
|
238
|
-
return writer;
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
decode(input: BinaryReader | Uint8Array, length?: number): SoftwareUpgradeProposal {
|
|
242
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
243
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
244
|
-
const message = createBaseSoftwareUpgradeProposal();
|
|
245
|
-
while (reader.pos < end) {
|
|
246
|
-
const tag = reader.uint32();
|
|
247
|
-
switch (tag >>> 3) {
|
|
248
|
-
case 1: {
|
|
249
|
-
if (tag !== 10) {
|
|
250
|
-
break;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
message.title = reader.string();
|
|
254
|
-
continue;
|
|
255
|
-
}
|
|
256
|
-
case 2: {
|
|
257
|
-
if (tag !== 18) {
|
|
258
|
-
break;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
message.description = reader.string();
|
|
262
|
-
continue;
|
|
263
|
-
}
|
|
264
|
-
case 3: {
|
|
265
|
-
if (tag !== 26) {
|
|
266
|
-
break;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
message.plan = Plan.decode(reader, reader.uint32());
|
|
270
|
-
continue;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
274
|
-
break;
|
|
275
|
-
}
|
|
276
|
-
reader.skip(tag & 7);
|
|
277
|
-
}
|
|
278
|
-
return message;
|
|
279
|
-
},
|
|
280
|
-
|
|
281
|
-
fromJSON(object: any): SoftwareUpgradeProposal {
|
|
282
|
-
return {
|
|
283
|
-
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
284
|
-
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
285
|
-
plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined,
|
|
286
|
-
};
|
|
287
|
-
},
|
|
288
|
-
|
|
289
|
-
toJSON(message: SoftwareUpgradeProposal): unknown {
|
|
290
|
-
const obj: any = {};
|
|
291
|
-
if (message.title !== "") {
|
|
292
|
-
obj.title = message.title;
|
|
293
|
-
}
|
|
294
|
-
if (message.description !== "") {
|
|
295
|
-
obj.description = message.description;
|
|
296
|
-
}
|
|
297
|
-
if (message.plan !== undefined) {
|
|
298
|
-
obj.plan = Plan.toJSON(message.plan);
|
|
299
|
-
}
|
|
300
|
-
return obj;
|
|
301
|
-
},
|
|
302
|
-
|
|
303
|
-
create<I extends Exact<DeepPartial<SoftwareUpgradeProposal>, I>>(base?: I): SoftwareUpgradeProposal {
|
|
304
|
-
return SoftwareUpgradeProposal.fromPartial(base ?? ({} as any));
|
|
305
|
-
},
|
|
306
|
-
fromPartial<I extends Exact<DeepPartial<SoftwareUpgradeProposal>, I>>(object: I): SoftwareUpgradeProposal {
|
|
307
|
-
const message = createBaseSoftwareUpgradeProposal();
|
|
308
|
-
message.title = object.title ?? "";
|
|
309
|
-
message.description = object.description ?? "";
|
|
310
|
-
message.plan = (object.plan !== undefined && object.plan !== null) ? Plan.fromPartial(object.plan) : undefined;
|
|
311
|
-
return message;
|
|
312
|
-
},
|
|
313
|
-
};
|
|
314
|
-
|
|
315
|
-
function createBaseCancelSoftwareUpgradeProposal(): CancelSoftwareUpgradeProposal {
|
|
316
|
-
return { title: "", description: "" };
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
export const CancelSoftwareUpgradeProposal: MessageFns<CancelSoftwareUpgradeProposal> = {
|
|
320
|
-
encode(message: CancelSoftwareUpgradeProposal, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
321
|
-
if (message.title !== "") {
|
|
322
|
-
writer.uint32(10).string(message.title);
|
|
323
|
-
}
|
|
324
|
-
if (message.description !== "") {
|
|
325
|
-
writer.uint32(18).string(message.description);
|
|
326
|
-
}
|
|
327
|
-
return writer;
|
|
328
|
-
},
|
|
329
|
-
|
|
330
|
-
decode(input: BinaryReader | Uint8Array, length?: number): CancelSoftwareUpgradeProposal {
|
|
331
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
332
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
333
|
-
const message = createBaseCancelSoftwareUpgradeProposal();
|
|
334
|
-
while (reader.pos < end) {
|
|
335
|
-
const tag = reader.uint32();
|
|
336
|
-
switch (tag >>> 3) {
|
|
337
|
-
case 1: {
|
|
338
|
-
if (tag !== 10) {
|
|
339
|
-
break;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
message.title = reader.string();
|
|
343
|
-
continue;
|
|
344
|
-
}
|
|
345
|
-
case 2: {
|
|
346
|
-
if (tag !== 18) {
|
|
347
|
-
break;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
message.description = reader.string();
|
|
351
|
-
continue;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
355
|
-
break;
|
|
356
|
-
}
|
|
357
|
-
reader.skip(tag & 7);
|
|
358
|
-
}
|
|
359
|
-
return message;
|
|
360
|
-
},
|
|
361
|
-
|
|
362
|
-
fromJSON(object: any): CancelSoftwareUpgradeProposal {
|
|
363
|
-
return {
|
|
364
|
-
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
365
|
-
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
366
|
-
};
|
|
367
|
-
},
|
|
368
|
-
|
|
369
|
-
toJSON(message: CancelSoftwareUpgradeProposal): unknown {
|
|
370
|
-
const obj: any = {};
|
|
371
|
-
if (message.title !== "") {
|
|
372
|
-
obj.title = message.title;
|
|
373
|
-
}
|
|
374
|
-
if (message.description !== "") {
|
|
375
|
-
obj.description = message.description;
|
|
376
|
-
}
|
|
377
|
-
return obj;
|
|
378
|
-
},
|
|
379
|
-
|
|
380
|
-
create<I extends Exact<DeepPartial<CancelSoftwareUpgradeProposal>, I>>(base?: I): CancelSoftwareUpgradeProposal {
|
|
381
|
-
return CancelSoftwareUpgradeProposal.fromPartial(base ?? ({} as any));
|
|
382
|
-
},
|
|
383
|
-
fromPartial<I extends Exact<DeepPartial<CancelSoftwareUpgradeProposal>, I>>(
|
|
384
|
-
object: I,
|
|
385
|
-
): CancelSoftwareUpgradeProposal {
|
|
386
|
-
const message = createBaseCancelSoftwareUpgradeProposal();
|
|
387
|
-
message.title = object.title ?? "";
|
|
388
|
-
message.description = object.description ?? "";
|
|
389
|
-
return message;
|
|
390
|
-
},
|
|
391
|
-
};
|
|
392
|
-
|
|
393
|
-
function createBaseModuleVersion(): ModuleVersion {
|
|
394
|
-
return { name: "", version: 0 };
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
export const ModuleVersion: MessageFns<ModuleVersion> = {
|
|
398
|
-
encode(message: ModuleVersion, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
399
|
-
if (message.name !== "") {
|
|
400
|
-
writer.uint32(10).string(message.name);
|
|
401
|
-
}
|
|
402
|
-
if (message.version !== 0) {
|
|
403
|
-
writer.uint32(16).uint64(message.version);
|
|
404
|
-
}
|
|
405
|
-
return writer;
|
|
406
|
-
},
|
|
407
|
-
|
|
408
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ModuleVersion {
|
|
409
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
410
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
411
|
-
const message = createBaseModuleVersion();
|
|
412
|
-
while (reader.pos < end) {
|
|
413
|
-
const tag = reader.uint32();
|
|
414
|
-
switch (tag >>> 3) {
|
|
415
|
-
case 1: {
|
|
416
|
-
if (tag !== 10) {
|
|
417
|
-
break;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
message.name = reader.string();
|
|
421
|
-
continue;
|
|
422
|
-
}
|
|
423
|
-
case 2: {
|
|
424
|
-
if (tag !== 16) {
|
|
425
|
-
break;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
message.version = longToNumber(reader.uint64());
|
|
429
|
-
continue;
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
433
|
-
break;
|
|
434
|
-
}
|
|
435
|
-
reader.skip(tag & 7);
|
|
436
|
-
}
|
|
437
|
-
return message;
|
|
438
|
-
},
|
|
439
|
-
|
|
440
|
-
fromJSON(object: any): ModuleVersion {
|
|
441
|
-
return {
|
|
442
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
443
|
-
version: isSet(object.version) ? globalThis.Number(object.version) : 0,
|
|
444
|
-
};
|
|
445
|
-
},
|
|
446
|
-
|
|
447
|
-
toJSON(message: ModuleVersion): unknown {
|
|
448
|
-
const obj: any = {};
|
|
449
|
-
if (message.name !== "") {
|
|
450
|
-
obj.name = message.name;
|
|
451
|
-
}
|
|
452
|
-
if (message.version !== 0) {
|
|
453
|
-
obj.version = Math.round(message.version);
|
|
454
|
-
}
|
|
455
|
-
return obj;
|
|
456
|
-
},
|
|
457
|
-
|
|
458
|
-
create<I extends Exact<DeepPartial<ModuleVersion>, I>>(base?: I): ModuleVersion {
|
|
459
|
-
return ModuleVersion.fromPartial(base ?? ({} as any));
|
|
460
|
-
},
|
|
461
|
-
fromPartial<I extends Exact<DeepPartial<ModuleVersion>, I>>(object: I): ModuleVersion {
|
|
462
|
-
const message = createBaseModuleVersion();
|
|
463
|
-
message.name = object.name ?? "";
|
|
464
|
-
message.version = object.version ?? 0;
|
|
465
|
-
return message;
|
|
466
|
-
},
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
470
|
-
|
|
471
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
472
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
473
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
474
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
475
|
-
: Partial<T>;
|
|
476
|
-
|
|
477
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
478
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
479
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
480
|
-
|
|
481
|
-
function toTimestamp(date: Date): Timestamp {
|
|
482
|
-
const seconds = Math.trunc(date.getTime() / 1_000);
|
|
483
|
-
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
484
|
-
return { seconds, nanos };
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
function fromTimestamp(t: Timestamp): Date {
|
|
488
|
-
let millis = (t.seconds || 0) * 1_000;
|
|
489
|
-
millis += (t.nanos || 0) / 1_000_000;
|
|
490
|
-
return new globalThis.Date(millis);
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
function fromJsonTimestamp(o: any): Date {
|
|
494
|
-
if (o instanceof globalThis.Date) {
|
|
495
|
-
return o;
|
|
496
|
-
} else if (typeof o === "string") {
|
|
497
|
-
return new globalThis.Date(o);
|
|
498
|
-
} else {
|
|
499
|
-
return fromTimestamp(Timestamp.fromJSON(o));
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
504
|
-
const num = globalThis.Number(int64.toString());
|
|
505
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
506
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
507
|
-
}
|
|
508
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
509
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
510
|
-
}
|
|
511
|
-
return num;
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
function isSet(value: any): boolean {
|
|
515
|
-
return value !== null && value !== undefined;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
export interface MessageFns<T> {
|
|
519
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
520
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
521
|
-
fromJSON(object: any): T;
|
|
522
|
-
toJSON(message: T): unknown;
|
|
523
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
524
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
525
|
-
}
|
|
@@ -1,78 +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/vesting/module/v1/module.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
|
|
10
|
-
export const protobufPackage = "cosmos.vesting.module.v1";
|
|
11
|
-
|
|
12
|
-
/** Module is the config object of the vesting module. */
|
|
13
|
-
export interface Module {
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function createBaseModule(): Module {
|
|
17
|
-
return {};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const Module: MessageFns<Module> = {
|
|
21
|
-
encode(_: Module, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
22
|
-
return writer;
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Module {
|
|
26
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
27
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
-
const message = createBaseModule();
|
|
29
|
-
while (reader.pos < end) {
|
|
30
|
-
const tag = reader.uint32();
|
|
31
|
-
switch (tag >>> 3) {
|
|
32
|
-
}
|
|
33
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
reader.skip(tag & 7);
|
|
37
|
-
}
|
|
38
|
-
return message;
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
fromJSON(_: any): Module {
|
|
42
|
-
return {};
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
toJSON(_: Module): unknown {
|
|
46
|
-
const obj: any = {};
|
|
47
|
-
return obj;
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
create<I extends Exact<DeepPartial<Module>, I>>(base?: I): Module {
|
|
51
|
-
return Module.fromPartial(base ?? ({} as any));
|
|
52
|
-
},
|
|
53
|
-
fromPartial<I extends Exact<DeepPartial<Module>, I>>(_: I): Module {
|
|
54
|
-
const message = createBaseModule();
|
|
55
|
-
return message;
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
60
|
-
|
|
61
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
62
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
63
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
64
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
65
|
-
: Partial<T>;
|
|
66
|
-
|
|
67
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
68
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
69
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
70
|
-
|
|
71
|
-
export interface MessageFns<T> {
|
|
72
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
73
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
74
|
-
fromJSON(object: any): T;
|
|
75
|
-
toJSON(message: T): unknown;
|
|
76
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
77
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
78
|
-
}
|