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,795 +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/group/v1/events.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import {
|
|
10
|
-
ProposalExecutorResult,
|
|
11
|
-
proposalExecutorResultFromJSON,
|
|
12
|
-
proposalExecutorResultToJSON,
|
|
13
|
-
ProposalStatus,
|
|
14
|
-
proposalStatusFromJSON,
|
|
15
|
-
proposalStatusToJSON,
|
|
16
|
-
TallyResult,
|
|
17
|
-
} from "./types";
|
|
18
|
-
|
|
19
|
-
export const protobufPackage = "cosmos.group.v1";
|
|
20
|
-
|
|
21
|
-
/** Since: cosmos-sdk 0.46 */
|
|
22
|
-
|
|
23
|
-
/** EventCreateGroup is an event emitted when a group is created. */
|
|
24
|
-
export interface EventCreateGroup {
|
|
25
|
-
/** group_id is the unique ID of the group. */
|
|
26
|
-
groupId: number;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/** EventUpdateGroup is an event emitted when a group is updated. */
|
|
30
|
-
export interface EventUpdateGroup {
|
|
31
|
-
/** group_id is the unique ID of the group. */
|
|
32
|
-
groupId: number;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/** EventCreateGroupPolicy is an event emitted when a group policy is created. */
|
|
36
|
-
export interface EventCreateGroupPolicy {
|
|
37
|
-
/** address is the account address of the group policy. */
|
|
38
|
-
address: string;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */
|
|
42
|
-
export interface EventUpdateGroupPolicy {
|
|
43
|
-
/** address is the account address of the group policy. */
|
|
44
|
-
address: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/** EventSubmitProposal is an event emitted when a proposal is created. */
|
|
48
|
-
export interface EventSubmitProposal {
|
|
49
|
-
/** proposal_id is the unique ID of the proposal. */
|
|
50
|
-
proposalId: number;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */
|
|
54
|
-
export interface EventWithdrawProposal {
|
|
55
|
-
/** proposal_id is the unique ID of the proposal. */
|
|
56
|
-
proposalId: number;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/** EventVote is an event emitted when a voter votes on a proposal. */
|
|
60
|
-
export interface EventVote {
|
|
61
|
-
/** proposal_id is the unique ID of the proposal. */
|
|
62
|
-
proposalId: number;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/** EventExec is an event emitted when a proposal is executed. */
|
|
66
|
-
export interface EventExec {
|
|
67
|
-
/** proposal_id is the unique ID of the proposal. */
|
|
68
|
-
proposalId: number;
|
|
69
|
-
/** result is the proposal execution result. */
|
|
70
|
-
result: ProposalExecutorResult;
|
|
71
|
-
/** logs contains error logs in case the execution result is FAILURE. */
|
|
72
|
-
logs: string;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/** EventLeaveGroup is an event emitted when group member leaves the group. */
|
|
76
|
-
export interface EventLeaveGroup {
|
|
77
|
-
/** group_id is the unique ID of the group. */
|
|
78
|
-
groupId: number;
|
|
79
|
-
/** address is the account address of the group member. */
|
|
80
|
-
address: string;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/** EventProposalPruned is an event emitted when a proposal is pruned. */
|
|
84
|
-
export interface EventProposalPruned {
|
|
85
|
-
/** proposal_id is the unique ID of the proposal. */
|
|
86
|
-
proposalId: number;
|
|
87
|
-
/** status is the proposal status (UNSPECIFIED, SUBMITTED, ACCEPTED, REJECTED, ABORTED, WITHDRAWN). */
|
|
88
|
-
status: ProposalStatus;
|
|
89
|
-
/** tally_result is the proposal tally result (when applicable). */
|
|
90
|
-
tallyResult: TallyResult | undefined;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function createBaseEventCreateGroup(): EventCreateGroup {
|
|
94
|
-
return { groupId: 0 };
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export const EventCreateGroup: MessageFns<EventCreateGroup> = {
|
|
98
|
-
encode(message: EventCreateGroup, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
99
|
-
if (message.groupId !== 0) {
|
|
100
|
-
writer.uint32(8).uint64(message.groupId);
|
|
101
|
-
}
|
|
102
|
-
return writer;
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
decode(input: BinaryReader | Uint8Array, length?: number): EventCreateGroup {
|
|
106
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
107
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
108
|
-
const message = createBaseEventCreateGroup();
|
|
109
|
-
while (reader.pos < end) {
|
|
110
|
-
const tag = reader.uint32();
|
|
111
|
-
switch (tag >>> 3) {
|
|
112
|
-
case 1: {
|
|
113
|
-
if (tag !== 8) {
|
|
114
|
-
break;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
message.groupId = longToNumber(reader.uint64());
|
|
118
|
-
continue;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
reader.skip(tag & 7);
|
|
125
|
-
}
|
|
126
|
-
return message;
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
fromJSON(object: any): EventCreateGroup {
|
|
130
|
-
return { groupId: isSet(object.groupId) ? globalThis.Number(object.groupId) : 0 };
|
|
131
|
-
},
|
|
132
|
-
|
|
133
|
-
toJSON(message: EventCreateGroup): unknown {
|
|
134
|
-
const obj: any = {};
|
|
135
|
-
if (message.groupId !== 0) {
|
|
136
|
-
obj.groupId = Math.round(message.groupId);
|
|
137
|
-
}
|
|
138
|
-
return obj;
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
create<I extends Exact<DeepPartial<EventCreateGroup>, I>>(base?: I): EventCreateGroup {
|
|
142
|
-
return EventCreateGroup.fromPartial(base ?? ({} as any));
|
|
143
|
-
},
|
|
144
|
-
fromPartial<I extends Exact<DeepPartial<EventCreateGroup>, I>>(object: I): EventCreateGroup {
|
|
145
|
-
const message = createBaseEventCreateGroup();
|
|
146
|
-
message.groupId = object.groupId ?? 0;
|
|
147
|
-
return message;
|
|
148
|
-
},
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
function createBaseEventUpdateGroup(): EventUpdateGroup {
|
|
152
|
-
return { groupId: 0 };
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export const EventUpdateGroup: MessageFns<EventUpdateGroup> = {
|
|
156
|
-
encode(message: EventUpdateGroup, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
157
|
-
if (message.groupId !== 0) {
|
|
158
|
-
writer.uint32(8).uint64(message.groupId);
|
|
159
|
-
}
|
|
160
|
-
return writer;
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateGroup {
|
|
164
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
165
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
166
|
-
const message = createBaseEventUpdateGroup();
|
|
167
|
-
while (reader.pos < end) {
|
|
168
|
-
const tag = reader.uint32();
|
|
169
|
-
switch (tag >>> 3) {
|
|
170
|
-
case 1: {
|
|
171
|
-
if (tag !== 8) {
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
message.groupId = longToNumber(reader.uint64());
|
|
176
|
-
continue;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
180
|
-
break;
|
|
181
|
-
}
|
|
182
|
-
reader.skip(tag & 7);
|
|
183
|
-
}
|
|
184
|
-
return message;
|
|
185
|
-
},
|
|
186
|
-
|
|
187
|
-
fromJSON(object: any): EventUpdateGroup {
|
|
188
|
-
return { groupId: isSet(object.groupId) ? globalThis.Number(object.groupId) : 0 };
|
|
189
|
-
},
|
|
190
|
-
|
|
191
|
-
toJSON(message: EventUpdateGroup): unknown {
|
|
192
|
-
const obj: any = {};
|
|
193
|
-
if (message.groupId !== 0) {
|
|
194
|
-
obj.groupId = Math.round(message.groupId);
|
|
195
|
-
}
|
|
196
|
-
return obj;
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
create<I extends Exact<DeepPartial<EventUpdateGroup>, I>>(base?: I): EventUpdateGroup {
|
|
200
|
-
return EventUpdateGroup.fromPartial(base ?? ({} as any));
|
|
201
|
-
},
|
|
202
|
-
fromPartial<I extends Exact<DeepPartial<EventUpdateGroup>, I>>(object: I): EventUpdateGroup {
|
|
203
|
-
const message = createBaseEventUpdateGroup();
|
|
204
|
-
message.groupId = object.groupId ?? 0;
|
|
205
|
-
return message;
|
|
206
|
-
},
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
function createBaseEventCreateGroupPolicy(): EventCreateGroupPolicy {
|
|
210
|
-
return { address: "" };
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export const EventCreateGroupPolicy: MessageFns<EventCreateGroupPolicy> = {
|
|
214
|
-
encode(message: EventCreateGroupPolicy, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
215
|
-
if (message.address !== "") {
|
|
216
|
-
writer.uint32(10).string(message.address);
|
|
217
|
-
}
|
|
218
|
-
return writer;
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
decode(input: BinaryReader | Uint8Array, length?: number): EventCreateGroupPolicy {
|
|
222
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
223
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
224
|
-
const message = createBaseEventCreateGroupPolicy();
|
|
225
|
-
while (reader.pos < end) {
|
|
226
|
-
const tag = reader.uint32();
|
|
227
|
-
switch (tag >>> 3) {
|
|
228
|
-
case 1: {
|
|
229
|
-
if (tag !== 10) {
|
|
230
|
-
break;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
message.address = reader.string();
|
|
234
|
-
continue;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
238
|
-
break;
|
|
239
|
-
}
|
|
240
|
-
reader.skip(tag & 7);
|
|
241
|
-
}
|
|
242
|
-
return message;
|
|
243
|
-
},
|
|
244
|
-
|
|
245
|
-
fromJSON(object: any): EventCreateGroupPolicy {
|
|
246
|
-
return { address: isSet(object.address) ? globalThis.String(object.address) : "" };
|
|
247
|
-
},
|
|
248
|
-
|
|
249
|
-
toJSON(message: EventCreateGroupPolicy): unknown {
|
|
250
|
-
const obj: any = {};
|
|
251
|
-
if (message.address !== "") {
|
|
252
|
-
obj.address = message.address;
|
|
253
|
-
}
|
|
254
|
-
return obj;
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
create<I extends Exact<DeepPartial<EventCreateGroupPolicy>, I>>(base?: I): EventCreateGroupPolicy {
|
|
258
|
-
return EventCreateGroupPolicy.fromPartial(base ?? ({} as any));
|
|
259
|
-
},
|
|
260
|
-
fromPartial<I extends Exact<DeepPartial<EventCreateGroupPolicy>, I>>(object: I): EventCreateGroupPolicy {
|
|
261
|
-
const message = createBaseEventCreateGroupPolicy();
|
|
262
|
-
message.address = object.address ?? "";
|
|
263
|
-
return message;
|
|
264
|
-
},
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
function createBaseEventUpdateGroupPolicy(): EventUpdateGroupPolicy {
|
|
268
|
-
return { address: "" };
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
export const EventUpdateGroupPolicy: MessageFns<EventUpdateGroupPolicy> = {
|
|
272
|
-
encode(message: EventUpdateGroupPolicy, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
273
|
-
if (message.address !== "") {
|
|
274
|
-
writer.uint32(10).string(message.address);
|
|
275
|
-
}
|
|
276
|
-
return writer;
|
|
277
|
-
},
|
|
278
|
-
|
|
279
|
-
decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateGroupPolicy {
|
|
280
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
281
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
282
|
-
const message = createBaseEventUpdateGroupPolicy();
|
|
283
|
-
while (reader.pos < end) {
|
|
284
|
-
const tag = reader.uint32();
|
|
285
|
-
switch (tag >>> 3) {
|
|
286
|
-
case 1: {
|
|
287
|
-
if (tag !== 10) {
|
|
288
|
-
break;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
message.address = reader.string();
|
|
292
|
-
continue;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
296
|
-
break;
|
|
297
|
-
}
|
|
298
|
-
reader.skip(tag & 7);
|
|
299
|
-
}
|
|
300
|
-
return message;
|
|
301
|
-
},
|
|
302
|
-
|
|
303
|
-
fromJSON(object: any): EventUpdateGroupPolicy {
|
|
304
|
-
return { address: isSet(object.address) ? globalThis.String(object.address) : "" };
|
|
305
|
-
},
|
|
306
|
-
|
|
307
|
-
toJSON(message: EventUpdateGroupPolicy): unknown {
|
|
308
|
-
const obj: any = {};
|
|
309
|
-
if (message.address !== "") {
|
|
310
|
-
obj.address = message.address;
|
|
311
|
-
}
|
|
312
|
-
return obj;
|
|
313
|
-
},
|
|
314
|
-
|
|
315
|
-
create<I extends Exact<DeepPartial<EventUpdateGroupPolicy>, I>>(base?: I): EventUpdateGroupPolicy {
|
|
316
|
-
return EventUpdateGroupPolicy.fromPartial(base ?? ({} as any));
|
|
317
|
-
},
|
|
318
|
-
fromPartial<I extends Exact<DeepPartial<EventUpdateGroupPolicy>, I>>(object: I): EventUpdateGroupPolicy {
|
|
319
|
-
const message = createBaseEventUpdateGroupPolicy();
|
|
320
|
-
message.address = object.address ?? "";
|
|
321
|
-
return message;
|
|
322
|
-
},
|
|
323
|
-
};
|
|
324
|
-
|
|
325
|
-
function createBaseEventSubmitProposal(): EventSubmitProposal {
|
|
326
|
-
return { proposalId: 0 };
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
export const EventSubmitProposal: MessageFns<EventSubmitProposal> = {
|
|
330
|
-
encode(message: EventSubmitProposal, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
331
|
-
if (message.proposalId !== 0) {
|
|
332
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
333
|
-
}
|
|
334
|
-
return writer;
|
|
335
|
-
},
|
|
336
|
-
|
|
337
|
-
decode(input: BinaryReader | Uint8Array, length?: number): EventSubmitProposal {
|
|
338
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
339
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
340
|
-
const message = createBaseEventSubmitProposal();
|
|
341
|
-
while (reader.pos < end) {
|
|
342
|
-
const tag = reader.uint32();
|
|
343
|
-
switch (tag >>> 3) {
|
|
344
|
-
case 1: {
|
|
345
|
-
if (tag !== 8) {
|
|
346
|
-
break;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
350
|
-
continue;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
354
|
-
break;
|
|
355
|
-
}
|
|
356
|
-
reader.skip(tag & 7);
|
|
357
|
-
}
|
|
358
|
-
return message;
|
|
359
|
-
},
|
|
360
|
-
|
|
361
|
-
fromJSON(object: any): EventSubmitProposal {
|
|
362
|
-
return { proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0 };
|
|
363
|
-
},
|
|
364
|
-
|
|
365
|
-
toJSON(message: EventSubmitProposal): unknown {
|
|
366
|
-
const obj: any = {};
|
|
367
|
-
if (message.proposalId !== 0) {
|
|
368
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
369
|
-
}
|
|
370
|
-
return obj;
|
|
371
|
-
},
|
|
372
|
-
|
|
373
|
-
create<I extends Exact<DeepPartial<EventSubmitProposal>, I>>(base?: I): EventSubmitProposal {
|
|
374
|
-
return EventSubmitProposal.fromPartial(base ?? ({} as any));
|
|
375
|
-
},
|
|
376
|
-
fromPartial<I extends Exact<DeepPartial<EventSubmitProposal>, I>>(object: I): EventSubmitProposal {
|
|
377
|
-
const message = createBaseEventSubmitProposal();
|
|
378
|
-
message.proposalId = object.proposalId ?? 0;
|
|
379
|
-
return message;
|
|
380
|
-
},
|
|
381
|
-
};
|
|
382
|
-
|
|
383
|
-
function createBaseEventWithdrawProposal(): EventWithdrawProposal {
|
|
384
|
-
return { proposalId: 0 };
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
export const EventWithdrawProposal: MessageFns<EventWithdrawProposal> = {
|
|
388
|
-
encode(message: EventWithdrawProposal, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
389
|
-
if (message.proposalId !== 0) {
|
|
390
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
391
|
-
}
|
|
392
|
-
return writer;
|
|
393
|
-
},
|
|
394
|
-
|
|
395
|
-
decode(input: BinaryReader | Uint8Array, length?: number): EventWithdrawProposal {
|
|
396
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
397
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
398
|
-
const message = createBaseEventWithdrawProposal();
|
|
399
|
-
while (reader.pos < end) {
|
|
400
|
-
const tag = reader.uint32();
|
|
401
|
-
switch (tag >>> 3) {
|
|
402
|
-
case 1: {
|
|
403
|
-
if (tag !== 8) {
|
|
404
|
-
break;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
408
|
-
continue;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
412
|
-
break;
|
|
413
|
-
}
|
|
414
|
-
reader.skip(tag & 7);
|
|
415
|
-
}
|
|
416
|
-
return message;
|
|
417
|
-
},
|
|
418
|
-
|
|
419
|
-
fromJSON(object: any): EventWithdrawProposal {
|
|
420
|
-
return { proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0 };
|
|
421
|
-
},
|
|
422
|
-
|
|
423
|
-
toJSON(message: EventWithdrawProposal): unknown {
|
|
424
|
-
const obj: any = {};
|
|
425
|
-
if (message.proposalId !== 0) {
|
|
426
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
427
|
-
}
|
|
428
|
-
return obj;
|
|
429
|
-
},
|
|
430
|
-
|
|
431
|
-
create<I extends Exact<DeepPartial<EventWithdrawProposal>, I>>(base?: I): EventWithdrawProposal {
|
|
432
|
-
return EventWithdrawProposal.fromPartial(base ?? ({} as any));
|
|
433
|
-
},
|
|
434
|
-
fromPartial<I extends Exact<DeepPartial<EventWithdrawProposal>, I>>(object: I): EventWithdrawProposal {
|
|
435
|
-
const message = createBaseEventWithdrawProposal();
|
|
436
|
-
message.proposalId = object.proposalId ?? 0;
|
|
437
|
-
return message;
|
|
438
|
-
},
|
|
439
|
-
};
|
|
440
|
-
|
|
441
|
-
function createBaseEventVote(): EventVote {
|
|
442
|
-
return { proposalId: 0 };
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
export const EventVote: MessageFns<EventVote> = {
|
|
446
|
-
encode(message: EventVote, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
447
|
-
if (message.proposalId !== 0) {
|
|
448
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
449
|
-
}
|
|
450
|
-
return writer;
|
|
451
|
-
},
|
|
452
|
-
|
|
453
|
-
decode(input: BinaryReader | Uint8Array, length?: number): EventVote {
|
|
454
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
455
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
456
|
-
const message = createBaseEventVote();
|
|
457
|
-
while (reader.pos < end) {
|
|
458
|
-
const tag = reader.uint32();
|
|
459
|
-
switch (tag >>> 3) {
|
|
460
|
-
case 1: {
|
|
461
|
-
if (tag !== 8) {
|
|
462
|
-
break;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
466
|
-
continue;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
470
|
-
break;
|
|
471
|
-
}
|
|
472
|
-
reader.skip(tag & 7);
|
|
473
|
-
}
|
|
474
|
-
return message;
|
|
475
|
-
},
|
|
476
|
-
|
|
477
|
-
fromJSON(object: any): EventVote {
|
|
478
|
-
return { proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0 };
|
|
479
|
-
},
|
|
480
|
-
|
|
481
|
-
toJSON(message: EventVote): unknown {
|
|
482
|
-
const obj: any = {};
|
|
483
|
-
if (message.proposalId !== 0) {
|
|
484
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
485
|
-
}
|
|
486
|
-
return obj;
|
|
487
|
-
},
|
|
488
|
-
|
|
489
|
-
create<I extends Exact<DeepPartial<EventVote>, I>>(base?: I): EventVote {
|
|
490
|
-
return EventVote.fromPartial(base ?? ({} as any));
|
|
491
|
-
},
|
|
492
|
-
fromPartial<I extends Exact<DeepPartial<EventVote>, I>>(object: I): EventVote {
|
|
493
|
-
const message = createBaseEventVote();
|
|
494
|
-
message.proposalId = object.proposalId ?? 0;
|
|
495
|
-
return message;
|
|
496
|
-
},
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
function createBaseEventExec(): EventExec {
|
|
500
|
-
return { proposalId: 0, result: 0, logs: "" };
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
export const EventExec: MessageFns<EventExec> = {
|
|
504
|
-
encode(message: EventExec, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
505
|
-
if (message.proposalId !== 0) {
|
|
506
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
507
|
-
}
|
|
508
|
-
if (message.result !== 0) {
|
|
509
|
-
writer.uint32(16).int32(message.result);
|
|
510
|
-
}
|
|
511
|
-
if (message.logs !== "") {
|
|
512
|
-
writer.uint32(26).string(message.logs);
|
|
513
|
-
}
|
|
514
|
-
return writer;
|
|
515
|
-
},
|
|
516
|
-
|
|
517
|
-
decode(input: BinaryReader | Uint8Array, length?: number): EventExec {
|
|
518
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
519
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
520
|
-
const message = createBaseEventExec();
|
|
521
|
-
while (reader.pos < end) {
|
|
522
|
-
const tag = reader.uint32();
|
|
523
|
-
switch (tag >>> 3) {
|
|
524
|
-
case 1: {
|
|
525
|
-
if (tag !== 8) {
|
|
526
|
-
break;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
530
|
-
continue;
|
|
531
|
-
}
|
|
532
|
-
case 2: {
|
|
533
|
-
if (tag !== 16) {
|
|
534
|
-
break;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
message.result = reader.int32() as any;
|
|
538
|
-
continue;
|
|
539
|
-
}
|
|
540
|
-
case 3: {
|
|
541
|
-
if (tag !== 26) {
|
|
542
|
-
break;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
message.logs = reader.string();
|
|
546
|
-
continue;
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
550
|
-
break;
|
|
551
|
-
}
|
|
552
|
-
reader.skip(tag & 7);
|
|
553
|
-
}
|
|
554
|
-
return message;
|
|
555
|
-
},
|
|
556
|
-
|
|
557
|
-
fromJSON(object: any): EventExec {
|
|
558
|
-
return {
|
|
559
|
-
proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0,
|
|
560
|
-
result: isSet(object.result) ? proposalExecutorResultFromJSON(object.result) : 0,
|
|
561
|
-
logs: isSet(object.logs) ? globalThis.String(object.logs) : "",
|
|
562
|
-
};
|
|
563
|
-
},
|
|
564
|
-
|
|
565
|
-
toJSON(message: EventExec): unknown {
|
|
566
|
-
const obj: any = {};
|
|
567
|
-
if (message.proposalId !== 0) {
|
|
568
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
569
|
-
}
|
|
570
|
-
if (message.result !== 0) {
|
|
571
|
-
obj.result = proposalExecutorResultToJSON(message.result);
|
|
572
|
-
}
|
|
573
|
-
if (message.logs !== "") {
|
|
574
|
-
obj.logs = message.logs;
|
|
575
|
-
}
|
|
576
|
-
return obj;
|
|
577
|
-
},
|
|
578
|
-
|
|
579
|
-
create<I extends Exact<DeepPartial<EventExec>, I>>(base?: I): EventExec {
|
|
580
|
-
return EventExec.fromPartial(base ?? ({} as any));
|
|
581
|
-
},
|
|
582
|
-
fromPartial<I extends Exact<DeepPartial<EventExec>, I>>(object: I): EventExec {
|
|
583
|
-
const message = createBaseEventExec();
|
|
584
|
-
message.proposalId = object.proposalId ?? 0;
|
|
585
|
-
message.result = object.result ?? 0;
|
|
586
|
-
message.logs = object.logs ?? "";
|
|
587
|
-
return message;
|
|
588
|
-
},
|
|
589
|
-
};
|
|
590
|
-
|
|
591
|
-
function createBaseEventLeaveGroup(): EventLeaveGroup {
|
|
592
|
-
return { groupId: 0, address: "" };
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
export const EventLeaveGroup: MessageFns<EventLeaveGroup> = {
|
|
596
|
-
encode(message: EventLeaveGroup, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
597
|
-
if (message.groupId !== 0) {
|
|
598
|
-
writer.uint32(8).uint64(message.groupId);
|
|
599
|
-
}
|
|
600
|
-
if (message.address !== "") {
|
|
601
|
-
writer.uint32(18).string(message.address);
|
|
602
|
-
}
|
|
603
|
-
return writer;
|
|
604
|
-
},
|
|
605
|
-
|
|
606
|
-
decode(input: BinaryReader | Uint8Array, length?: number): EventLeaveGroup {
|
|
607
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
608
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
609
|
-
const message = createBaseEventLeaveGroup();
|
|
610
|
-
while (reader.pos < end) {
|
|
611
|
-
const tag = reader.uint32();
|
|
612
|
-
switch (tag >>> 3) {
|
|
613
|
-
case 1: {
|
|
614
|
-
if (tag !== 8) {
|
|
615
|
-
break;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
message.groupId = longToNumber(reader.uint64());
|
|
619
|
-
continue;
|
|
620
|
-
}
|
|
621
|
-
case 2: {
|
|
622
|
-
if (tag !== 18) {
|
|
623
|
-
break;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
message.address = reader.string();
|
|
627
|
-
continue;
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
631
|
-
break;
|
|
632
|
-
}
|
|
633
|
-
reader.skip(tag & 7);
|
|
634
|
-
}
|
|
635
|
-
return message;
|
|
636
|
-
},
|
|
637
|
-
|
|
638
|
-
fromJSON(object: any): EventLeaveGroup {
|
|
639
|
-
return {
|
|
640
|
-
groupId: isSet(object.groupId) ? globalThis.Number(object.groupId) : 0,
|
|
641
|
-
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
642
|
-
};
|
|
643
|
-
},
|
|
644
|
-
|
|
645
|
-
toJSON(message: EventLeaveGroup): unknown {
|
|
646
|
-
const obj: any = {};
|
|
647
|
-
if (message.groupId !== 0) {
|
|
648
|
-
obj.groupId = Math.round(message.groupId);
|
|
649
|
-
}
|
|
650
|
-
if (message.address !== "") {
|
|
651
|
-
obj.address = message.address;
|
|
652
|
-
}
|
|
653
|
-
return obj;
|
|
654
|
-
},
|
|
655
|
-
|
|
656
|
-
create<I extends Exact<DeepPartial<EventLeaveGroup>, I>>(base?: I): EventLeaveGroup {
|
|
657
|
-
return EventLeaveGroup.fromPartial(base ?? ({} as any));
|
|
658
|
-
},
|
|
659
|
-
fromPartial<I extends Exact<DeepPartial<EventLeaveGroup>, I>>(object: I): EventLeaveGroup {
|
|
660
|
-
const message = createBaseEventLeaveGroup();
|
|
661
|
-
message.groupId = object.groupId ?? 0;
|
|
662
|
-
message.address = object.address ?? "";
|
|
663
|
-
return message;
|
|
664
|
-
},
|
|
665
|
-
};
|
|
666
|
-
|
|
667
|
-
function createBaseEventProposalPruned(): EventProposalPruned {
|
|
668
|
-
return { proposalId: 0, status: 0, tallyResult: undefined };
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
export const EventProposalPruned: MessageFns<EventProposalPruned> = {
|
|
672
|
-
encode(message: EventProposalPruned, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
673
|
-
if (message.proposalId !== 0) {
|
|
674
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
675
|
-
}
|
|
676
|
-
if (message.status !== 0) {
|
|
677
|
-
writer.uint32(16).int32(message.status);
|
|
678
|
-
}
|
|
679
|
-
if (message.tallyResult !== undefined) {
|
|
680
|
-
TallyResult.encode(message.tallyResult, writer.uint32(26).fork()).join();
|
|
681
|
-
}
|
|
682
|
-
return writer;
|
|
683
|
-
},
|
|
684
|
-
|
|
685
|
-
decode(input: BinaryReader | Uint8Array, length?: number): EventProposalPruned {
|
|
686
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
687
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
688
|
-
const message = createBaseEventProposalPruned();
|
|
689
|
-
while (reader.pos < end) {
|
|
690
|
-
const tag = reader.uint32();
|
|
691
|
-
switch (tag >>> 3) {
|
|
692
|
-
case 1: {
|
|
693
|
-
if (tag !== 8) {
|
|
694
|
-
break;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
698
|
-
continue;
|
|
699
|
-
}
|
|
700
|
-
case 2: {
|
|
701
|
-
if (tag !== 16) {
|
|
702
|
-
break;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
message.status = reader.int32() as any;
|
|
706
|
-
continue;
|
|
707
|
-
}
|
|
708
|
-
case 3: {
|
|
709
|
-
if (tag !== 26) {
|
|
710
|
-
break;
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
message.tallyResult = TallyResult.decode(reader, reader.uint32());
|
|
714
|
-
continue;
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
718
|
-
break;
|
|
719
|
-
}
|
|
720
|
-
reader.skip(tag & 7);
|
|
721
|
-
}
|
|
722
|
-
return message;
|
|
723
|
-
},
|
|
724
|
-
|
|
725
|
-
fromJSON(object: any): EventProposalPruned {
|
|
726
|
-
return {
|
|
727
|
-
proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0,
|
|
728
|
-
status: isSet(object.status) ? proposalStatusFromJSON(object.status) : 0,
|
|
729
|
-
tallyResult: isSet(object.tallyResult) ? TallyResult.fromJSON(object.tallyResult) : undefined,
|
|
730
|
-
};
|
|
731
|
-
},
|
|
732
|
-
|
|
733
|
-
toJSON(message: EventProposalPruned): unknown {
|
|
734
|
-
const obj: any = {};
|
|
735
|
-
if (message.proposalId !== 0) {
|
|
736
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
737
|
-
}
|
|
738
|
-
if (message.status !== 0) {
|
|
739
|
-
obj.status = proposalStatusToJSON(message.status);
|
|
740
|
-
}
|
|
741
|
-
if (message.tallyResult !== undefined) {
|
|
742
|
-
obj.tallyResult = TallyResult.toJSON(message.tallyResult);
|
|
743
|
-
}
|
|
744
|
-
return obj;
|
|
745
|
-
},
|
|
746
|
-
|
|
747
|
-
create<I extends Exact<DeepPartial<EventProposalPruned>, I>>(base?: I): EventProposalPruned {
|
|
748
|
-
return EventProposalPruned.fromPartial(base ?? ({} as any));
|
|
749
|
-
},
|
|
750
|
-
fromPartial<I extends Exact<DeepPartial<EventProposalPruned>, I>>(object: I): EventProposalPruned {
|
|
751
|
-
const message = createBaseEventProposalPruned();
|
|
752
|
-
message.proposalId = object.proposalId ?? 0;
|
|
753
|
-
message.status = object.status ?? 0;
|
|
754
|
-
message.tallyResult = (object.tallyResult !== undefined && object.tallyResult !== null)
|
|
755
|
-
? TallyResult.fromPartial(object.tallyResult)
|
|
756
|
-
: undefined;
|
|
757
|
-
return message;
|
|
758
|
-
},
|
|
759
|
-
};
|
|
760
|
-
|
|
761
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
762
|
-
|
|
763
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
764
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
765
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
766
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
767
|
-
: Partial<T>;
|
|
768
|
-
|
|
769
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
770
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
771
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
772
|
-
|
|
773
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
774
|
-
const num = globalThis.Number(int64.toString());
|
|
775
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
776
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
777
|
-
}
|
|
778
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
779
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
780
|
-
}
|
|
781
|
-
return num;
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
function isSet(value: any): boolean {
|
|
785
|
-
return value !== null && value !== undefined;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
export interface MessageFns<T> {
|
|
789
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
790
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
791
|
-
fromJSON(object: any): T;
|
|
792
|
-
toJSON(message: T): unknown;
|
|
793
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
794
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
795
|
-
}
|