@bze/bzejs 0.0.6 → 0.0.7
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/main/codegen/beezee/burner/burn_coins_proposal.js +0 -13
- package/main/codegen/beezee/burner/burned_coins.js +0 -13
- package/main/codegen/beezee/burner/events.js +0 -23
- package/main/codegen/beezee/burner/genesis.js +0 -21
- package/main/codegen/beezee/burner/params.js +0 -7
- package/main/codegen/beezee/burner/query.js +0 -48
- package/main/codegen/beezee/burner/tx.amino.js +28 -0
- package/main/codegen/beezee/burner/tx.js +0 -20
- package/main/codegen/beezee/burner/tx.registry.js +47 -0
- package/main/codegen/beezee/cointrunk/accepted_domain.js +0 -13
- package/main/codegen/beezee/cointrunk/accepted_domain_proposal.js +0 -17
- package/main/codegen/beezee/cointrunk/anon_articles_counter.js +1 -13
- package/main/codegen/beezee/cointrunk/article.js +1 -23
- package/main/codegen/beezee/cointrunk/events.js +1 -71
- package/main/codegen/beezee/cointrunk/genesis.js +1 -43
- package/main/codegen/beezee/cointrunk/params.js +0 -26
- package/main/codegen/beezee/cointrunk/publisher.js +1 -21
- package/main/codegen/beezee/cointrunk/publisher_proposal.js +0 -19
- package/main/codegen/beezee/cointrunk/query.js +0 -158
- package/main/codegen/beezee/cointrunk/tx.amino.js +59 -0
- package/main/codegen/beezee/cointrunk/tx.js +0 -51
- package/main/codegen/beezee/cointrunk/tx.registry.js +65 -0
- package/main/codegen/bze/bundle.js +16 -12
- package/main/codegen/bze/client.js +67 -0
- package/main/codegen/cosmos/app/v1alpha1/config.js +0 -31
- package/main/codegen/cosmos/app/v1alpha1/module.js +0 -53
- package/main/codegen/cosmos/app/v1alpha1/query.js +0 -18
- package/main/codegen/cosmos/auth/v1beta1/auth.js +1 -57
- package/main/codegen/cosmos/auth/v1beta1/genesis.js +0 -21
- package/main/codegen/cosmos/auth/v1beta1/query.js +0 -150
- package/main/codegen/cosmos/authz/v1beta1/authz.js +8 -63
- package/main/codegen/cosmos/authz/v1beta1/event.js +0 -29
- package/main/codegen/cosmos/authz/v1beta1/genesis.js +0 -18
- package/main/codegen/cosmos/authz/v1beta1/query.js +0 -101
- package/main/codegen/cosmos/authz/v1beta1/tx.amino.js +96 -0
- package/main/codegen/cosmos/authz/v1beta1/tx.js +0 -81
- package/main/codegen/cosmos/authz/v1beta1/tx.registry.js +83 -0
- package/main/codegen/cosmos/bank/v1beta1/authz.js +0 -18
- package/main/codegen/cosmos/bank/v1beta1/bank.js +0 -145
- package/main/codegen/cosmos/bank/v1beta1/genesis.js +0 -61
- package/main/codegen/cosmos/bank/v1beta1/query.js +0 -248
- package/main/codegen/cosmos/bank/v1beta1/tx.amino.js +101 -0
- package/main/codegen/cosmos/bank/v1beta1/tx.js +0 -65
- package/main/codegen/cosmos/bank/v1beta1/tx.registry.js +65 -0
- package/main/codegen/cosmos/base/abci/v1beta1/abci.js +1 -229
- package/main/codegen/cosmos/base/kv/v1beta1/kv.js +0 -31
- package/main/codegen/cosmos/base/query/v1beta1/pagination.js +1 -31
- package/main/codegen/cosmos/base/reflection/v1beta1/reflection.js +0 -54
- package/main/codegen/cosmos/base/reflection/v2alpha1/reflection.js +0 -337
- package/main/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +1 -135
- package/main/codegen/cosmos/base/store/v1beta1/commit_info.js +1 -45
- package/main/codegen/cosmos/base/store/v1beta1/listening.js +0 -17
- package/main/codegen/cosmos/base/tendermint/v1beta1/query.js +1 -206
- package/main/codegen/cosmos/base/v1beta1/coin.js +0 -45
- package/main/codegen/cosmos/bundle.js +101 -73
- package/main/codegen/cosmos/capability/v1beta1/capability.js +1 -41
- package/main/codegen/cosmos/capability/v1beta1/genesis.js +1 -33
- package/main/codegen/cosmos/client.js +86 -0
- package/main/codegen/cosmos/crisis/v1beta1/genesis.js +0 -11
- package/main/codegen/cosmos/crisis/v1beta1/tx.amino.js +32 -0
- package/main/codegen/cosmos/crisis/v1beta1/tx.js +0 -22
- package/main/codegen/cosmos/crisis/v1beta1/tx.registry.js +47 -0
- package/main/codegen/cosmos/crypto/ed25519/keys.js +0 -21
- package/main/codegen/cosmos/crypto/hd/v1/hd.js +0 -19
- package/main/codegen/cosmos/crypto/keyring/v1/record.js +0 -57
- package/main/codegen/cosmos/crypto/multisig/keys.js +0 -21
- package/main/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +0 -31
- package/main/codegen/cosmos/crypto/secp256k1/keys.js +0 -21
- package/main/codegen/cosmos/crypto/secp256r1/keys.js +0 -21
- package/main/codegen/cosmos/distribution/v1beta1/distribution.js +0 -216
- package/main/codegen/cosmos/distribution/v1beta1/genesis.js +0 -184
- package/main/codegen/cosmos/distribution/v1beta1/query.js +0 -234
- package/main/codegen/cosmos/distribution/v1beta1/tx.amino.js +91 -0
- package/main/codegen/cosmos/distribution/v1beta1/tx.js +0 -105
- package/main/codegen/cosmos/distribution/v1beta1/tx.registry.js +101 -0
- package/main/codegen/cosmos/evidence/v1beta1/evidence.js +5 -21
- package/main/codegen/cosmos/evidence/v1beta1/genesis.js +0 -18
- package/main/codegen/cosmos/evidence/v1beta1/query.js +0 -51
- package/main/codegen/cosmos/evidence/v1beta1/tx.amino.js +34 -0
- package/main/codegen/cosmos/evidence/v1beta1/tx.js +0 -23
- package/main/codegen/cosmos/evidence/v1beta1/tx.registry.js +47 -0
- package/main/codegen/cosmos/feegrant/v1beta1/feegrant.js +8 -96
- package/main/codegen/cosmos/feegrant/v1beta1/genesis.js +0 -18
- package/main/codegen/cosmos/feegrant/v1beta1/query.js +0 -87
- package/main/codegen/cosmos/feegrant/v1beta1/tx.amino.js +57 -0
- package/main/codegen/cosmos/feegrant/v1beta1/tx.js +0 -41
- package/main/codegen/cosmos/feegrant/v1beta1/tx.registry.js +65 -0
- package/main/codegen/cosmos/genutil/v1beta1/genesis.js +0 -19
- package/main/codegen/cosmos/gov/v1/genesis.js +1 -47
- package/main/codegen/cosmos/gov/v1/gov.js +15 -196
- package/main/codegen/cosmos/gov/v1/query.js +1 -209
- package/main/codegen/cosmos/gov/v1/tx.amino.js +180 -0
- package/main/codegen/cosmos/gov/v1/tx.js +0 -144
- package/main/codegen/cosmos/gov/v1/tx.registry.js +119 -0
- package/main/codegen/cosmos/gov/v1beta1/genesis.js +1 -47
- package/main/codegen/cosmos/gov/v1beta1/gov.js +15 -198
- package/main/codegen/cosmos/gov/v1beta1/query.js +1 -209
- package/main/codegen/cosmos/gov/v1beta1/tx.amino.js +139 -0
- package/main/codegen/cosmos/gov/v1beta1/tx.js +0 -111
- package/main/codegen/cosmos/gov/v1beta1/tx.registry.js +101 -0
- package/main/codegen/cosmos/group/v1/events.js +1 -96
- package/main/codegen/cosmos/group/v1/genesis.js +1 -65
- package/main/codegen/cosmos/group/v1/query.js +1 -359
- package/main/codegen/cosmos/group/v1/tx.amino.js +424 -0
- package/main/codegen/cosmos/group/v1/tx.js +1 -365
- package/main/codegen/cosmos/group/v1/tx.registry.js +281 -0
- package/main/codegen/cosmos/group/v1/types.js +27 -269
- package/main/codegen/cosmos/mint/v1beta1/genesis.js +0 -13
- package/main/codegen/cosmos/mint/v1beta1/mint.js +0 -32
- package/main/codegen/cosmos/mint/v1beta1/query.js +0 -52
- package/main/codegen/cosmos/nft/v1beta1/event.js +0 -45
- package/main/codegen/cosmos/nft/v1beta1/genesis.js +0 -49
- package/main/codegen/cosmos/nft/v1beta1/nft.js +0 -41
- package/main/codegen/cosmos/nft/v1beta1/query.js +0 -170
- package/main/codegen/cosmos/nft/v1beta1/tx.amino.js +36 -0
- package/main/codegen/cosmos/nft/v1beta1/tx.js +0 -24
- package/main/codegen/cosmos/nft/v1beta1/tx.registry.js +47 -0
- package/main/codegen/cosmos/orm/v1/orm.js +0 -59
- package/main/codegen/cosmos/orm/v1alpha1/schema.js +1 -45
- package/main/codegen/cosmos/params/v1beta1/params.js +0 -37
- package/main/codegen/cosmos/params/v1beta1/query.js +0 -68
- package/main/codegen/cosmos/slashing/v1beta1/genesis.js +0 -74
- package/main/codegen/cosmos/slashing/v1beta1/query.js +0 -68
- package/main/codegen/cosmos/slashing/v1beta1/slashing.js +5 -43
- package/main/codegen/cosmos/slashing/v1beta1/tx.amino.js +24 -0
- package/main/codegen/cosmos/slashing/v1beta1/tx.js +0 -18
- package/main/codegen/cosmos/slashing/v1beta1/tx.registry.js +47 -0
- package/main/codegen/cosmos/staking/v1beta1/authz.js +1 -48
- package/main/codegen/cosmos/staking/v1beta1/genesis.js +0 -76
- package/main/codegen/cosmos/staking/v1beta1/query.js +0 -368
- package/main/codegen/cosmos/staking/v1beta1/staking.js +17 -366
- package/main/codegen/cosmos/staking/v1beta1/tx.amino.js +213 -0
- package/main/codegen/cosmos/staking/v1beta1/tx.js +8 -129
- package/main/codegen/cosmos/staking/v1beta1/tx.registry.js +119 -0
- package/main/codegen/cosmos/tx/signing/v1beta1/signing.js +1 -95
- package/main/codegen/cosmos/tx/v1beta1/service.js +2 -173
- package/main/codegen/cosmos/tx/v1beta1/tx.js +0 -261
- package/main/codegen/cosmos/upgrade/v1beta1/query.js +0 -102
- package/main/codegen/cosmos/upgrade/v1beta1/tx.amino.js +62 -0
- package/main/codegen/cosmos/upgrade/v1beta1/tx.js +0 -37
- package/main/codegen/cosmos/upgrade/v1beta1/tx.registry.js +65 -0
- package/main/codegen/cosmos/upgrade/v1beta1/upgrade.js +5 -61
- package/main/codegen/cosmos/vesting/v1beta1/tx.amino.js +131 -0
- package/main/codegen/cosmos/vesting/v1beta1/tx.js +1 -94
- package/main/codegen/cosmos/vesting/v1beta1/tx.registry.js +83 -0
- package/main/codegen/cosmos/vesting/v1beta1/vesting.js +1 -117
- package/main/codegen/cosmos_proto/cosmos.js +1 -42
- package/main/codegen/google/api/http.js +0 -69
- package/main/codegen/google/protobuf/any.js +0 -13
- package/main/codegen/google/protobuf/descriptor.js +6 -815
- package/main/codegen/google/protobuf/duration.js +1 -13
- package/main/codegen/google/protobuf/empty.js +0 -7
- package/main/codegen/google/protobuf/timestamp.js +1 -13
- package/main/codegen/helpers.js +1 -1
- package/main/codegen/index.js +22 -11
- package/main/codegen/tendermint/abci/types.js +12 -785
- package/main/codegen/tendermint/crypto/keys.js +0 -13
- package/main/codegen/tendermint/crypto/proof.js +1 -83
- package/main/codegen/tendermint/libs/bits/types.js +1 -21
- package/main/codegen/tendermint/p2p/types.js +12 -100
- package/main/codegen/tendermint/types/block.js +0 -17
- package/main/codegen/tendermint/types/evidence.js +8 -81
- package/main/codegen/tendermint/types/params.js +0 -84
- package/main/codegen/tendermint/types/types.js +18 -266
- package/main/codegen/tendermint/types/validator.js +1 -51
- package/main/codegen/tendermint/version/types.js +1 -25
- package/module/codegen/beezee/burner/burn_coins_proposal.js +0 -13
- package/module/codegen/beezee/burner/burned_coins.js +0 -13
- package/module/codegen/beezee/burner/events.js +0 -23
- package/module/codegen/beezee/burner/genesis.js +0 -19
- package/module/codegen/beezee/burner/params.js +0 -9
- package/module/codegen/beezee/burner/query.js +0 -46
- package/module/codegen/beezee/burner/tx.amino.js +23 -0
- package/module/codegen/beezee/burner/tx.js +0 -20
- package/module/codegen/beezee/burner/tx.registry.js +33 -0
- package/module/codegen/beezee/cointrunk/accepted_domain.js +0 -13
- package/module/codegen/beezee/cointrunk/accepted_domain_proposal.js +0 -17
- package/module/codegen/beezee/cointrunk/anon_articles_counter.js +1 -13
- package/module/codegen/beezee/cointrunk/article.js +1 -23
- package/module/codegen/beezee/cointrunk/events.js +1 -71
- package/module/codegen/beezee/cointrunk/genesis.js +1 -31
- package/module/codegen/beezee/cointrunk/params.js +1 -27
- package/module/codegen/beezee/cointrunk/publisher.js +1 -21
- package/module/codegen/beezee/cointrunk/publisher_proposal.js +0 -19
- package/module/codegen/beezee/cointrunk/query.js +0 -144
- package/module/codegen/beezee/cointrunk/tx.amino.js +56 -0
- package/module/codegen/beezee/cointrunk/tx.js +1 -52
- package/module/codegen/beezee/cointrunk/tx.registry.js +51 -0
- package/module/codegen/bze/bundle.js +16 -12
- package/module/codegen/bze/client.js +38 -0
- package/module/codegen/cosmos/app/v1alpha1/config.js +0 -37
- package/module/codegen/cosmos/app/v1alpha1/module.js +0 -47
- package/module/codegen/cosmos/app/v1alpha1/query.js +0 -20
- package/module/codegen/cosmos/auth/v1beta1/auth.js +1 -53
- package/module/codegen/cosmos/auth/v1beta1/genesis.js +0 -19
- package/module/codegen/cosmos/auth/v1beta1/query.js +0 -148
- package/module/codegen/cosmos/authz/v1beta1/authz.js +9 -60
- package/module/codegen/cosmos/authz/v1beta1/event.js +0 -31
- package/module/codegen/cosmos/authz/v1beta1/genesis.js +0 -16
- package/module/codegen/cosmos/authz/v1beta1/query.js +0 -91
- package/module/codegen/cosmos/authz/v1beta1/tx.amino.js +91 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.js +0 -78
- package/module/codegen/cosmos/authz/v1beta1/tx.registry.js +69 -0
- package/module/codegen/cosmos/bank/v1beta1/authz.js +0 -21
- package/module/codegen/cosmos/bank/v1beta1/bank.js +0 -123
- package/module/codegen/cosmos/bank/v1beta1/genesis.js +0 -47
- package/module/codegen/cosmos/bank/v1beta1/query.js +0 -230
- package/module/codegen/cosmos/bank/v1beta1/tx.amino.js +78 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.js +0 -55
- package/module/codegen/cosmos/bank/v1beta1/tx.registry.js +51 -0
- package/module/codegen/cosmos/base/abci/v1beta1/abci.js +1 -193
- package/module/codegen/cosmos/base/kv/v1beta1/kv.js +0 -29
- package/module/codegen/cosmos/base/query/v1beta1/pagination.js +1 -31
- package/module/codegen/cosmos/base/reflection/v1beta1/reflection.js +0 -48
- package/module/codegen/cosmos/base/reflection/v2alpha1/reflection.js +0 -307
- package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +1 -127
- package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +1 -41
- package/module/codegen/cosmos/base/store/v1beta1/listening.js +0 -25
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +1 -194
- package/module/codegen/cosmos/base/v1beta1/coin.js +0 -52
- package/module/codegen/cosmos/bundle.js +101 -73
- package/module/codegen/cosmos/capability/v1beta1/capability.js +1 -37
- package/module/codegen/cosmos/capability/v1beta1/genesis.js +1 -29
- package/module/codegen/cosmos/client.js +57 -0
- package/module/codegen/cosmos/crisis/v1beta1/genesis.js +0 -13
- package/module/codegen/cosmos/crisis/v1beta1/tx.amino.js +27 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.js +0 -24
- package/module/codegen/cosmos/crisis/v1beta1/tx.registry.js +33 -0
- package/module/codegen/cosmos/crypto/ed25519/keys.js +0 -29
- package/module/codegen/cosmos/crypto/hd/v1/hd.js +0 -21
- package/module/codegen/cosmos/crypto/keyring/v1/record.js +0 -59
- package/module/codegen/cosmos/crypto/multisig/keys.js +0 -23
- package/module/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +0 -33
- package/module/codegen/cosmos/crypto/secp256k1/keys.js +0 -29
- package/module/codegen/cosmos/crypto/secp256r1/keys.js +0 -23
- package/module/codegen/cosmos/distribution/v1beta1/distribution.js +1 -185
- package/module/codegen/cosmos/distribution/v1beta1/genesis.js +1 -153
- package/module/codegen/cosmos/distribution/v1beta1/query.js +1 -211
- package/module/codegen/cosmos/distribution/v1beta1/tx.amino.js +88 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.js +0 -98
- package/module/codegen/cosmos/distribution/v1beta1/tx.registry.js +87 -0
- package/module/codegen/cosmos/evidence/v1beta1/evidence.js +5 -21
- package/module/codegen/cosmos/evidence/v1beta1/genesis.js +0 -16
- package/module/codegen/cosmos/evidence/v1beta1/query.js +0 -49
- package/module/codegen/cosmos/evidence/v1beta1/tx.amino.js +29 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.js +0 -28
- package/module/codegen/cosmos/evidence/v1beta1/tx.registry.js +33 -0
- package/module/codegen/cosmos/feegrant/v1beta1/feegrant.js +9 -81
- package/module/codegen/cosmos/feegrant/v1beta1/genesis.js +0 -16
- package/module/codegen/cosmos/feegrant/v1beta1/query.js +0 -81
- package/module/codegen/cosmos/feegrant/v1beta1/tx.amino.js +54 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.js +0 -46
- package/module/codegen/cosmos/feegrant/v1beta1/tx.registry.js +51 -0
- package/module/codegen/cosmos/genutil/v1beta1/genesis.js +0 -17
- package/module/codegen/cosmos/gov/v1/genesis.js +1 -35
- package/module/codegen/cosmos/gov/v1/gov.js +16 -177
- package/module/codegen/cosmos/gov/v1/query.js +2 -198
- package/module/codegen/cosmos/gov/v1/tx.amino.js +167 -0
- package/module/codegen/cosmos/gov/v1/tx.js +2 -130
- package/module/codegen/cosmos/gov/v1/tx.registry.js +105 -0
- package/module/codegen/cosmos/gov/v1beta1/genesis.js +1 -35
- package/module/codegen/cosmos/gov/v1beta1/gov.js +16 -183
- package/module/codegen/cosmos/gov/v1beta1/query.js +2 -198
- package/module/codegen/cosmos/gov/v1beta1/tx.amino.js +128 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.js +2 -101
- package/module/codegen/cosmos/gov/v1beta1/tx.registry.js +87 -0
- package/module/codegen/cosmos/group/v1/events.js +1 -96
- package/module/codegen/cosmos/group/v1/genesis.js +1 -45
- package/module/codegen/cosmos/group/v1/query.js +1 -327
- package/module/codegen/cosmos/group/v1/tx.amino.js +429 -0
- package/module/codegen/cosmos/group/v1/tx.js +3 -347
- package/module/codegen/cosmos/group/v1/tx.registry.js +267 -0
- package/module/codegen/cosmos/group/v1/types.js +28 -258
- package/module/codegen/cosmos/mint/v1beta1/genesis.js +0 -15
- package/module/codegen/cosmos/mint/v1beta1/mint.js +1 -33
- package/module/codegen/cosmos/mint/v1beta1/query.js +0 -54
- package/module/codegen/cosmos/nft/v1beta1/event.js +0 -47
- package/module/codegen/cosmos/nft/v1beta1/genesis.js +0 -39
- package/module/codegen/cosmos/nft/v1beta1/nft.js +0 -43
- package/module/codegen/cosmos/nft/v1beta1/query.js +1 -163
- package/module/codegen/cosmos/nft/v1beta1/tx.amino.js +31 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.js +0 -26
- package/module/codegen/cosmos/nft/v1beta1/tx.registry.js +33 -0
- package/module/codegen/cosmos/orm/v1/orm.js +0 -57
- package/module/codegen/cosmos/orm/v1alpha1/schema.js +1 -41
- package/module/codegen/cosmos/params/v1beta1/params.js +0 -35
- package/module/codegen/cosmos/params/v1beta1/query.js +0 -62
- package/module/codegen/cosmos/slashing/v1beta1/genesis.js +1 -63
- package/module/codegen/cosmos/slashing/v1beta1/query.js +0 -66
- package/module/codegen/cosmos/slashing/v1beta1/slashing.js +5 -43
- package/module/codegen/cosmos/slashing/v1beta1/tx.amino.js +19 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.js +0 -20
- package/module/codegen/cosmos/slashing/v1beta1/tx.registry.js +33 -0
- package/module/codegen/cosmos/staking/v1beta1/authz.js +1 -44
- package/module/codegen/cosmos/staking/v1beta1/genesis.js +1 -57
- package/module/codegen/cosmos/staking/v1beta1/query.js +1 -341
- package/module/codegen/cosmos/staking/v1beta1/staking.js +18 -339
- package/module/codegen/cosmos/staking/v1beta1/tx.amino.js +216 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.js +9 -130
- package/module/codegen/cosmos/staking/v1beta1/tx.registry.js +105 -0
- package/module/codegen/cosmos/tx/signing/v1beta1/signing.js +2 -88
- package/module/codegen/cosmos/tx/v1beta1/service.js +3 -158
- package/module/codegen/cosmos/tx/v1beta1/tx.js +1 -226
- package/module/codegen/cosmos/upgrade/v1beta1/query.js +1 -99
- package/module/codegen/cosmos/upgrade/v1beta1/tx.amino.js +59 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.js +0 -43
- package/module/codegen/cosmos/upgrade/v1beta1/tx.registry.js +51 -0
- package/module/codegen/cosmos/upgrade/v1beta1/upgrade.js +5 -61
- package/module/codegen/cosmos/vesting/v1beta1/tx.amino.js +114 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.js +1 -82
- package/module/codegen/cosmos/vesting/v1beta1/tx.registry.js +69 -0
- package/module/codegen/cosmos/vesting/v1beta1/vesting.js +1 -97
- package/module/codegen/cosmos_proto/cosmos.js +1 -38
- package/module/codegen/google/api/http.js +0 -67
- package/module/codegen/google/protobuf/any.js +0 -95
- package/module/codegen/google/protobuf/descriptor.js +7 -672
- package/module/codegen/google/protobuf/duration.js +1 -13
- package/module/codegen/google/protobuf/empty.js +0 -19
- package/module/codegen/google/protobuf/timestamp.js +1 -13
- package/module/codegen/helpers.js +1 -1
- package/module/codegen/index.js +4 -3
- package/module/codegen/tendermint/abci/types.js +13 -734
- package/module/codegen/tendermint/crypto/keys.js +0 -15
- package/module/codegen/tendermint/crypto/proof.js +1 -75
- package/module/codegen/tendermint/libs/bits/types.js +1 -17
- package/module/codegen/tendermint/p2p/types.js +12 -96
- package/module/codegen/tendermint/types/block.js +0 -17
- package/module/codegen/tendermint/types/evidence.js +9 -74
- package/module/codegen/tendermint/types/params.js +1 -81
- package/module/codegen/tendermint/types/types.js +19 -259
- package/module/codegen/tendermint/types/validator.js +1 -47
- package/module/codegen/tendermint/version/types.js +1 -25
- package/package.json +1 -1
- package/src/codegen/beezee/burner/burn_coins_proposal.ts +2 -16
- package/src/codegen/beezee/burner/burned_coins.ts +2 -16
- package/src/codegen/beezee/burner/events.ts +3 -29
- package/src/codegen/beezee/burner/genesis.ts +2 -22
- package/src/codegen/beezee/burner/params.ts +2 -10
- package/src/codegen/beezee/burner/query.ts +5 -59
- package/src/codegen/beezee/burner/tx.amino.ts +32 -0
- package/src/codegen/beezee/burner/tx.registry.ts +37 -0
- package/src/codegen/beezee/burner/tx.ts +3 -26
- package/src/codegen/beezee/cointrunk/accepted_domain.ts +2 -16
- package/src/codegen/beezee/cointrunk/accepted_domain_proposal.ts +2 -20
- package/src/codegen/beezee/cointrunk/anon_articles_counter.ts +2 -16
- package/src/codegen/beezee/cointrunk/article.ts +2 -26
- package/src/codegen/beezee/cointrunk/events.ts +7 -89
- package/src/codegen/beezee/cointrunk/genesis.ts +2 -38
- package/src/codegen/beezee/cointrunk/params.ts +3 -33
- package/src/codegen/beezee/cointrunk/publisher.ts +2 -24
- package/src/codegen/beezee/cointrunk/publisher_proposal.ts +2 -22
- package/src/codegen/beezee/cointrunk/query.ts +13 -187
- package/src/codegen/beezee/cointrunk/tx.amino.ts +75 -0
- package/src/codegen/beezee/cointrunk/tx.registry.ts +58 -0
- package/src/codegen/beezee/cointrunk/tx.ts +5 -64
- package/src/codegen/bze/bundle.ts +22 -14
- package/src/codegen/bze/client.ts +48 -0
- package/src/codegen/cosmos/app/v1alpha1/config.ts +3 -53
- package/src/codegen/cosmos/app/v1alpha1/module.ts +4 -124
- package/src/codegen/cosmos/app/v1alpha1/query.ts +3 -25
- package/src/codegen/cosmos/auth/v1beta1/auth.ts +4 -64
- package/src/codegen/cosmos/auth/v1beta1/genesis.ts +2 -25
- package/src/codegen/cosmos/auth/v1beta1/query.ts +15 -195
- package/src/codegen/cosmos/authz/v1beta1/authz.ts +16 -86
- package/src/codegen/cosmos/authz/v1beta1/event.ts +3 -45
- package/src/codegen/cosmos/authz/v1beta1/genesis.ts +2 -19
- package/src/codegen/cosmos/authz/v1beta1/query.ts +7 -130
- package/src/codegen/cosmos/authz/v1beta1/tx.amino.ts +128 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.registry.ts +79 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.ts +7 -101
- package/src/codegen/cosmos/bank/v1beta1/authz.ts +2 -19
- package/src/codegen/cosmos/bank/v1beta1/bank.ts +8 -200
- package/src/codegen/cosmos/bank/v1beta1/genesis.ts +3 -70
- package/src/codegen/cosmos/bank/v1beta1/query.ts +20 -339
- package/src/codegen/cosmos/bank/v1beta1/tx.amino.ts +110 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.registry.ts +58 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.ts +5 -70
- package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +11 -325
- package/src/codegen/cosmos/base/kv/v1beta1/kv.ts +3 -35
- package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +3 -76
- package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +5 -64
- package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +27 -476
- package/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts +10 -163
- package/src/codegen/cosmos/base/store/v1beta1/commit_info.ts +4 -52
- package/src/codegen/cosmos/base/store/v1beta1/listening.ts +2 -23
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +16 -259
- package/src/codegen/cosmos/base/v1beta1/coin.ts +5 -57
- package/src/codegen/cosmos/bundle.ts +159 -103
- package/src/codegen/cosmos/capability/v1beta1/capability.ts +4 -48
- package/src/codegen/cosmos/capability/v1beta1/genesis.ts +3 -46
- package/src/codegen/cosmos/client.ts +76 -0
- package/src/codegen/cosmos/crisis/v1beta1/genesis.ts +2 -18
- package/src/codegen/cosmos/crisis/v1beta1/tx.amino.ts +37 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.registry.ts +37 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.ts +3 -28
- package/src/codegen/cosmos/crypto/ed25519/keys.ts +3 -27
- package/src/codegen/cosmos/crypto/hd/v1/hd.ts +2 -34
- package/src/codegen/cosmos/crypto/keyring/v1/record.ts +6 -83
- package/src/codegen/cosmos/crypto/multisig/keys.ts +2 -22
- package/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts +3 -35
- package/src/codegen/cosmos/crypto/secp256k1/keys.ts +3 -27
- package/src/codegen/cosmos/crypto/secp256r1/keys.ts +3 -32
- package/src/codegen/cosmos/distribution/v1beta1/distribution.ts +13 -237
- package/src/codegen/cosmos/distribution/v1beta1/genesis.ts +9 -236
- package/src/codegen/cosmos/distribution/v1beta1/query.ts +19 -303
- package/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts +120 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.registry.ts +100 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.ts +9 -123
- package/src/codegen/cosmos/evidence/v1beta1/evidence.ts +8 -26
- package/src/codegen/cosmos/evidence/v1beta1/genesis.ts +2 -20
- package/src/codegen/cosmos/evidence/v1beta1/query.ts +5 -67
- package/src/codegen/cosmos/evidence/v1beta1/tx.amino.ts +41 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.registry.ts +37 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.ts +3 -30
- package/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +16 -137
- package/src/codegen/cosmos/feegrant/v1beta1/genesis.ts +2 -19
- package/src/codegen/cosmos/feegrant/v1beta1/query.ts +7 -115
- package/src/codegen/cosmos/feegrant/v1beta1/tx.amino.ts +74 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.registry.ts +58 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.ts +5 -61
- package/src/codegen/cosmos/genutil/v1beta1/genesis.ts +2 -21
- package/src/codegen/cosmos/gov/v1/genesis.ts +2 -55
- package/src/codegen/cosmos/gov/v1/gov.ts +34 -284
- package/src/codegen/cosmos/gov/v1/query.ts +19 -293
- package/src/codegen/cosmos/gov/v1/tx.amino.ts +226 -0
- package/src/codegen/cosmos/gov/v1/tx.registry.ts +121 -0
- package/src/codegen/cosmos/gov/v1/tx.ts +13 -173
- package/src/codegen/cosmos/gov/v1beta1/genesis.ts +2 -55
- package/src/codegen/cosmos/gov/v1beta1/gov.ts +36 -296
- package/src/codegen/cosmos/gov/v1beta1/query.ts +19 -293
- package/src/codegen/cosmos/gov/v1beta1/tx.amino.ts +174 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.registry.ts +100 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.ts +11 -132
- package/src/codegen/cosmos/group/v1/events.ts +12 -137
- package/src/codegen/cosmos/group/v1/genesis.ts +2 -80
- package/src/codegen/cosmos/group/v1/query.ts +27 -481
- package/src/codegen/cosmos/group/v1/tx.amino.ts +583 -0
- package/src/codegen/cosmos/group/v1/tx.registry.ts +310 -0
- package/src/codegen/cosmos/group/v1/tx.ts +34 -554
- package/src/codegen/cosmos/group/v1/types.ts +51 -472
- package/src/codegen/cosmos/mint/v1beta1/genesis.ts +2 -19
- package/src/codegen/cosmos/mint/v1beta1/mint.ts +3 -53
- package/src/codegen/cosmos/mint/v1beta1/query.ts +7 -73
- package/src/codegen/cosmos/nft/v1beta1/event.ts +4 -54
- package/src/codegen/cosmos/nft/v1beta1/genesis.ts +3 -52
- package/src/codegen/cosmos/nft/v1beta1/nft.ts +3 -69
- package/src/codegen/cosmos/nft/v1beta1/query.ts +15 -210
- package/src/codegen/cosmos/nft/v1beta1/tx.amino.ts +42 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.registry.ts +37 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.ts +3 -37
- package/src/codegen/cosmos/orm/v1/orm.ts +5 -140
- package/src/codegen/cosmos/orm/v1alpha1/schema.ts +5 -109
- package/src/codegen/cosmos/params/v1beta1/params.ts +3 -41
- package/src/codegen/cosmos/params/v1beta1/query.ts +6 -83
- package/src/codegen/cosmos/slashing/v1beta1/genesis.ts +5 -100
- package/src/codegen/cosmos/slashing/v1beta1/query.ts +7 -87
- package/src/codegen/cosmos/slashing/v1beta1/slashing.ts +9 -71
- package/src/codegen/cosmos/slashing/v1beta1/tx.amino.ts +27 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.registry.ts +37 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.ts +3 -24
- package/src/codegen/cosmos/staking/v1beta1/authz.ts +5 -73
- package/src/codegen/cosmos/staking/v1beta1/genesis.ts +3 -91
- package/src/codegen/cosmos/staking/v1beta1/query.ts +29 -499
- package/src/codegen/cosmos/staking/v1beta1/staking.ts +44 -507
- package/src/codegen/cosmos/staking/v1beta1/tx.amino.ts +294 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.registry.ts +121 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.ts +22 -172
- package/src/codegen/cosmos/tx/signing/v1beta1/signing.ts +8 -154
- package/src/codegen/cosmos/tx/v1beta1/service.ts +15 -252
- package/src/codegen/cosmos/tx/v1beta1/tx.ts +17 -462
- package/src/codegen/cosmos/upgrade/v1beta1/query.ts +11 -145
- package/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts +86 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.registry.ts +58 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.ts +5 -53
- package/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts +11 -109
- package/src/codegen/cosmos/vesting/v1beta1/tx.amino.ts +155 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.registry.ts +79 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.ts +7 -106
- package/src/codegen/cosmos/vesting/v1beta1/vesting.ts +7 -123
- package/src/codegen/cosmos_proto/cosmos.ts +5 -76
- package/src/codegen/google/api/http.ts +4 -140
- package/src/codegen/google/protobuf/any.ts +2 -47
- package/src/codegen/google/protobuf/descriptor.ts +72 -1418
- package/src/codegen/google/protobuf/duration.ts +2 -30
- package/src/codegen/google/protobuf/empty.ts +2 -10
- package/src/codegen/google/protobuf/timestamp.ts +2 -28
- package/src/codegen/helpers.ts +3 -1
- package/src/codegen/index.ts +4 -3
- package/src/codegen/tendermint/abci/types.ts +64 -970
- package/src/codegen/tendermint/crypto/keys.ts +2 -16
- package/src/codegen/tendermint/crypto/proof.ts +6 -97
- package/src/codegen/tendermint/libs/bits/types.ts +2 -22
- package/src/codegen/tendermint/p2p/types.ts +22 -118
- package/src/codegen/tendermint/types/block.ts +2 -20
- package/src/codegen/tendermint/types/evidence.ts +16 -94
- package/src/codegen/tendermint/types/params.ts +7 -137
- package/src/codegen/tendermint/types/types.ts +40 -338
- package/src/codegen/tendermint/types/validator.ts +4 -58
- package/src/codegen/tendermint/version/types.ts +3 -31
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import { Timestamp
|
|
1
|
+
import { Timestamp } from "../../google/protobuf/timestamp";
|
|
2
2
|
import { Header, HeaderSDKType } from "../types/types";
|
|
3
3
|
import { ProofOps, ProofOpsSDKType } from "../crypto/proof";
|
|
4
4
|
import { EvidenceParams, EvidenceParamsSDKType, ValidatorParams, ValidatorParamsSDKType, VersionParams, VersionParamsSDKType } from "../types/params";
|
|
5
5
|
import { PublicKey, PublicKeySDKType } from "../crypto/keys";
|
|
6
6
|
import * as _m0 from "protobufjs/minimal";
|
|
7
|
-
import {
|
|
7
|
+
import { DeepPartial, Long, toTimestamp, fromTimestamp } from "../../helpers";
|
|
8
8
|
export enum CheckTxType {
|
|
9
9
|
NEW = 0,
|
|
10
10
|
RECHECK = 1,
|
|
11
11
|
UNRECOGNIZED = -1,
|
|
12
12
|
}
|
|
13
|
-
export
|
|
14
|
-
NEW = 0,
|
|
15
|
-
RECHECK = 1,
|
|
16
|
-
UNRECOGNIZED = -1,
|
|
17
|
-
}
|
|
13
|
+
export const CheckTxTypeSDKType = CheckTxType;
|
|
18
14
|
export function checkTxTypeFromJSON(object: any): CheckTxType {
|
|
19
15
|
switch (object) {
|
|
20
16
|
case 0:
|
|
@@ -64,26 +60,7 @@ export enum ResponseOfferSnapshot_Result {
|
|
|
64
60
|
REJECT_SENDER = 5,
|
|
65
61
|
UNRECOGNIZED = -1,
|
|
66
62
|
}
|
|
67
|
-
export
|
|
68
|
-
/** UNKNOWN - Unknown result, abort all snapshot restoration */
|
|
69
|
-
UNKNOWN = 0,
|
|
70
|
-
|
|
71
|
-
/** ACCEPT - Snapshot accepted, apply chunks */
|
|
72
|
-
ACCEPT = 1,
|
|
73
|
-
|
|
74
|
-
/** ABORT - Abort all snapshot restoration */
|
|
75
|
-
ABORT = 2,
|
|
76
|
-
|
|
77
|
-
/** REJECT - Reject this specific snapshot, try others */
|
|
78
|
-
REJECT = 3,
|
|
79
|
-
|
|
80
|
-
/** REJECT_FORMAT - Reject all snapshots of this format, try others */
|
|
81
|
-
REJECT_FORMAT = 4,
|
|
82
|
-
|
|
83
|
-
/** REJECT_SENDER - Reject all snapshots from the sender(s), try others */
|
|
84
|
-
REJECT_SENDER = 5,
|
|
85
|
-
UNRECOGNIZED = -1,
|
|
86
|
-
}
|
|
63
|
+
export const ResponseOfferSnapshot_ResultSDKType = ResponseOfferSnapshot_Result;
|
|
87
64
|
export function responseOfferSnapshot_ResultFromJSON(object: any): ResponseOfferSnapshot_Result {
|
|
88
65
|
switch (object) {
|
|
89
66
|
case 0:
|
|
@@ -161,26 +138,7 @@ export enum ResponseApplySnapshotChunk_Result {
|
|
|
161
138
|
REJECT_SNAPSHOT = 5,
|
|
162
139
|
UNRECOGNIZED = -1,
|
|
163
140
|
}
|
|
164
|
-
export
|
|
165
|
-
/** UNKNOWN - Unknown result, abort all snapshot restoration */
|
|
166
|
-
UNKNOWN = 0,
|
|
167
|
-
|
|
168
|
-
/** ACCEPT - Chunk successfully accepted */
|
|
169
|
-
ACCEPT = 1,
|
|
170
|
-
|
|
171
|
-
/** ABORT - Abort all snapshot restoration */
|
|
172
|
-
ABORT = 2,
|
|
173
|
-
|
|
174
|
-
/** RETRY - Retry chunk (combine with refetch and reject) */
|
|
175
|
-
RETRY = 3,
|
|
176
|
-
|
|
177
|
-
/** RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */
|
|
178
|
-
RETRY_SNAPSHOT = 4,
|
|
179
|
-
|
|
180
|
-
/** REJECT_SNAPSHOT - Reject this snapshot, try others */
|
|
181
|
-
REJECT_SNAPSHOT = 5,
|
|
182
|
-
UNRECOGNIZED = -1,
|
|
183
|
-
}
|
|
141
|
+
export const ResponseApplySnapshotChunk_ResultSDKType = ResponseApplySnapshotChunk_Result;
|
|
184
142
|
export function responseApplySnapshotChunk_ResultFromJSON(object: any): ResponseApplySnapshotChunk_Result {
|
|
185
143
|
switch (object) {
|
|
186
144
|
case 0:
|
|
@@ -244,12 +202,7 @@ export enum EvidenceType {
|
|
|
244
202
|
LIGHT_CLIENT_ATTACK = 2,
|
|
245
203
|
UNRECOGNIZED = -1,
|
|
246
204
|
}
|
|
247
|
-
export
|
|
248
|
-
UNKNOWN = 0,
|
|
249
|
-
DUPLICATE_VOTE = 1,
|
|
250
|
-
LIGHT_CLIENT_ATTACK = 2,
|
|
251
|
-
UNRECOGNIZED = -1,
|
|
252
|
-
}
|
|
205
|
+
export const EvidenceTypeSDKType = EvidenceType;
|
|
253
206
|
export function evidenceTypeFromJSON(object: any): EvidenceType {
|
|
254
207
|
switch (object) {
|
|
255
208
|
case 0:
|
|
@@ -351,7 +304,7 @@ export interface RequestSetOptionSDKType {
|
|
|
351
304
|
value: string;
|
|
352
305
|
}
|
|
353
306
|
export interface RequestInitChain {
|
|
354
|
-
time?:
|
|
307
|
+
time?: Date;
|
|
355
308
|
chainId: string;
|
|
356
309
|
consensusParams?: ConsensusParams;
|
|
357
310
|
validators: ValidatorUpdate[];
|
|
@@ -359,7 +312,7 @@ export interface RequestInitChain {
|
|
|
359
312
|
initialHeight: Long;
|
|
360
313
|
}
|
|
361
314
|
export interface RequestInitChainSDKType {
|
|
362
|
-
time?:
|
|
315
|
+
time?: Date;
|
|
363
316
|
chain_id: string;
|
|
364
317
|
consensus_params?: ConsensusParamsSDKType;
|
|
365
318
|
validators: ValidatorUpdateSDKType[];
|
|
@@ -396,7 +349,7 @@ export interface RequestCheckTx {
|
|
|
396
349
|
}
|
|
397
350
|
export interface RequestCheckTxSDKType {
|
|
398
351
|
tx: Uint8Array;
|
|
399
|
-
type:
|
|
352
|
+
type: CheckTxType;
|
|
400
353
|
}
|
|
401
354
|
export interface RequestDeliverTx {
|
|
402
355
|
tx: Uint8Array;
|
|
@@ -430,10 +383,7 @@ export interface RequestOfferSnapshot {
|
|
|
430
383
|
/** offers a snapshot to the application */
|
|
431
384
|
|
|
432
385
|
export interface RequestOfferSnapshotSDKType {
|
|
433
|
-
/** snapshot offered by peers */
|
|
434
386
|
snapshot?: SnapshotSDKType;
|
|
435
|
-
/** light client-verified app hash for snapshot height */
|
|
436
|
-
|
|
437
387
|
app_hash: Uint8Array;
|
|
438
388
|
}
|
|
439
389
|
/** loads a snapshot chunk */
|
|
@@ -545,8 +495,6 @@ export interface ResponseSetOption {
|
|
|
545
495
|
|
|
546
496
|
export interface ResponseSetOptionSDKType {
|
|
547
497
|
code: number;
|
|
548
|
-
/** bytes data = 2; */
|
|
549
|
-
|
|
550
498
|
log: string;
|
|
551
499
|
info: string;
|
|
552
500
|
}
|
|
@@ -577,11 +525,7 @@ export interface ResponseQuery {
|
|
|
577
525
|
}
|
|
578
526
|
export interface ResponseQuerySDKType {
|
|
579
527
|
code: number;
|
|
580
|
-
/** bytes data = 2; // use "value" instead. */
|
|
581
|
-
|
|
582
528
|
log: string;
|
|
583
|
-
/** nondeterministic */
|
|
584
|
-
|
|
585
529
|
info: string;
|
|
586
530
|
index: Long;
|
|
587
531
|
key: Uint8Array;
|
|
@@ -613,11 +557,7 @@ export interface ResponseCheckTx {
|
|
|
613
557
|
export interface ResponseCheckTxSDKType {
|
|
614
558
|
code: number;
|
|
615
559
|
data: Uint8Array;
|
|
616
|
-
/** nondeterministic */
|
|
617
|
-
|
|
618
560
|
log: string;
|
|
619
|
-
/** nondeterministic */
|
|
620
|
-
|
|
621
561
|
info: string;
|
|
622
562
|
gas_wanted: Long;
|
|
623
563
|
gas_used: Long;
|
|
@@ -641,11 +581,7 @@ export interface ResponseDeliverTx {
|
|
|
641
581
|
export interface ResponseDeliverTxSDKType {
|
|
642
582
|
code: number;
|
|
643
583
|
data: Uint8Array;
|
|
644
|
-
/** nondeterministic */
|
|
645
|
-
|
|
646
584
|
log: string;
|
|
647
|
-
/** nondeterministic */
|
|
648
|
-
|
|
649
585
|
info: string;
|
|
650
586
|
gas_wanted: Long;
|
|
651
587
|
gas_used: Long;
|
|
@@ -668,7 +604,6 @@ export interface ResponseCommit {
|
|
|
668
604
|
retainHeight: Long;
|
|
669
605
|
}
|
|
670
606
|
export interface ResponseCommitSDKType {
|
|
671
|
-
/** reserve 1 */
|
|
672
607
|
data: Uint8Array;
|
|
673
608
|
retain_height: Long;
|
|
674
609
|
}
|
|
@@ -682,7 +617,7 @@ export interface ResponseOfferSnapshot {
|
|
|
682
617
|
result: ResponseOfferSnapshot_Result;
|
|
683
618
|
}
|
|
684
619
|
export interface ResponseOfferSnapshotSDKType {
|
|
685
|
-
result:
|
|
620
|
+
result: ResponseOfferSnapshot_Result;
|
|
686
621
|
}
|
|
687
622
|
export interface ResponseLoadSnapshotChunk {
|
|
688
623
|
chunk: Uint8Array;
|
|
@@ -700,12 +635,8 @@ export interface ResponseApplySnapshotChunk {
|
|
|
700
635
|
rejectSenders: string[];
|
|
701
636
|
}
|
|
702
637
|
export interface ResponseApplySnapshotChunkSDKType {
|
|
703
|
-
result:
|
|
704
|
-
/** Chunks to refetch and reapply */
|
|
705
|
-
|
|
638
|
+
result: ResponseApplySnapshotChunk_Result;
|
|
706
639
|
refetch_chunks: number[];
|
|
707
|
-
/** Chunk senders to reject and ban */
|
|
708
|
-
|
|
709
640
|
reject_senders: string[];
|
|
710
641
|
}
|
|
711
642
|
/**
|
|
@@ -742,10 +673,7 @@ export interface BlockParams {
|
|
|
742
673
|
/** BlockParams contains limits on the block size. */
|
|
743
674
|
|
|
744
675
|
export interface BlockParamsSDKType {
|
|
745
|
-
/** Note: must be greater than 0 */
|
|
746
676
|
max_bytes: Long;
|
|
747
|
-
/** Note: must be greater or equal to -1 */
|
|
748
|
-
|
|
749
677
|
max_gas: Long;
|
|
750
678
|
}
|
|
751
679
|
export interface LastCommitInfo {
|
|
@@ -790,8 +718,6 @@ export interface EventAttribute {
|
|
|
790
718
|
export interface EventAttributeSDKType {
|
|
791
719
|
key: Uint8Array;
|
|
792
720
|
value: Uint8Array;
|
|
793
|
-
/** nondeterministic */
|
|
794
|
-
|
|
795
721
|
index: boolean;
|
|
796
722
|
}
|
|
797
723
|
/**
|
|
@@ -833,13 +759,7 @@ export interface Validator {
|
|
|
833
759
|
/** Validator */
|
|
834
760
|
|
|
835
761
|
export interface ValidatorSDKType {
|
|
836
|
-
/**
|
|
837
|
-
* The first 20 bytes of SHA256(public key)
|
|
838
|
-
* PubKey pub_key = 2 [(gogoproto.nullable)=false];
|
|
839
|
-
*/
|
|
840
762
|
address: Uint8Array;
|
|
841
|
-
/** The voting power */
|
|
842
|
-
|
|
843
763
|
power: Long;
|
|
844
764
|
}
|
|
845
765
|
/** ValidatorUpdate */
|
|
@@ -876,7 +796,7 @@ export interface Evidence {
|
|
|
876
796
|
height: Long;
|
|
877
797
|
/** The corresponding time where the offense occurred */
|
|
878
798
|
|
|
879
|
-
time?:
|
|
799
|
+
time?: Date;
|
|
880
800
|
/**
|
|
881
801
|
* Total voting power of the validator set in case the ABCI application does
|
|
882
802
|
* not store historical validators.
|
|
@@ -886,22 +806,10 @@ export interface Evidence {
|
|
|
886
806
|
totalVotingPower: Long;
|
|
887
807
|
}
|
|
888
808
|
export interface EvidenceSDKType {
|
|
889
|
-
type:
|
|
890
|
-
/** The offending validator */
|
|
891
|
-
|
|
809
|
+
type: EvidenceType;
|
|
892
810
|
validator?: ValidatorSDKType;
|
|
893
|
-
/** The height when the offense occurred */
|
|
894
|
-
|
|
895
811
|
height: Long;
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
time?: TimestampSDKType;
|
|
899
|
-
/**
|
|
900
|
-
* Total voting power of the validator set in case the ABCI application does
|
|
901
|
-
* not store historical validators.
|
|
902
|
-
* https://github.com/tendermint/tendermint/issues/4581
|
|
903
|
-
*/
|
|
904
|
-
|
|
812
|
+
time?: Date;
|
|
905
813
|
total_voting_power: Long;
|
|
906
814
|
}
|
|
907
815
|
export interface Snapshot {
|
|
@@ -921,19 +829,10 @@ export interface Snapshot {
|
|
|
921
829
|
metadata: Uint8Array;
|
|
922
830
|
}
|
|
923
831
|
export interface SnapshotSDKType {
|
|
924
|
-
/** The height at which the snapshot was taken */
|
|
925
832
|
height: Long;
|
|
926
|
-
/** The application-specific snapshot format */
|
|
927
|
-
|
|
928
833
|
format: number;
|
|
929
|
-
/** Number of chunks in the snapshot */
|
|
930
|
-
|
|
931
834
|
chunks: number;
|
|
932
|
-
/** Arbitrary snapshot hash, equal only if identical */
|
|
933
|
-
|
|
934
835
|
hash: Uint8Array;
|
|
935
|
-
/** Arbitrary application metadata */
|
|
936
|
-
|
|
937
836
|
metadata: Uint8Array;
|
|
938
837
|
}
|
|
939
838
|
|
|
@@ -1100,47 +999,7 @@ export const Request = {
|
|
|
1100
999
|
return message;
|
|
1101
1000
|
},
|
|
1102
1001
|
|
|
1103
|
-
|
|
1104
|
-
return {
|
|
1105
|
-
echo: isSet(object.echo) ? RequestEcho.fromJSON(object.echo) : undefined,
|
|
1106
|
-
flush: isSet(object.flush) ? RequestFlush.fromJSON(object.flush) : undefined,
|
|
1107
|
-
info: isSet(object.info) ? RequestInfo.fromJSON(object.info) : undefined,
|
|
1108
|
-
setOption: isSet(object.setOption) ? RequestSetOption.fromJSON(object.setOption) : undefined,
|
|
1109
|
-
initChain: isSet(object.initChain) ? RequestInitChain.fromJSON(object.initChain) : undefined,
|
|
1110
|
-
query: isSet(object.query) ? RequestQuery.fromJSON(object.query) : undefined,
|
|
1111
|
-
beginBlock: isSet(object.beginBlock) ? RequestBeginBlock.fromJSON(object.beginBlock) : undefined,
|
|
1112
|
-
checkTx: isSet(object.checkTx) ? RequestCheckTx.fromJSON(object.checkTx) : undefined,
|
|
1113
|
-
deliverTx: isSet(object.deliverTx) ? RequestDeliverTx.fromJSON(object.deliverTx) : undefined,
|
|
1114
|
-
endBlock: isSet(object.endBlock) ? RequestEndBlock.fromJSON(object.endBlock) : undefined,
|
|
1115
|
-
commit: isSet(object.commit) ? RequestCommit.fromJSON(object.commit) : undefined,
|
|
1116
|
-
listSnapshots: isSet(object.listSnapshots) ? RequestListSnapshots.fromJSON(object.listSnapshots) : undefined,
|
|
1117
|
-
offerSnapshot: isSet(object.offerSnapshot) ? RequestOfferSnapshot.fromJSON(object.offerSnapshot) : undefined,
|
|
1118
|
-
loadSnapshotChunk: isSet(object.loadSnapshotChunk) ? RequestLoadSnapshotChunk.fromJSON(object.loadSnapshotChunk) : undefined,
|
|
1119
|
-
applySnapshotChunk: isSet(object.applySnapshotChunk) ? RequestApplySnapshotChunk.fromJSON(object.applySnapshotChunk) : undefined
|
|
1120
|
-
};
|
|
1121
|
-
},
|
|
1122
|
-
|
|
1123
|
-
toJSON(message: Request): unknown {
|
|
1124
|
-
const obj: any = {};
|
|
1125
|
-
message.echo !== undefined && (obj.echo = message.echo ? RequestEcho.toJSON(message.echo) : undefined);
|
|
1126
|
-
message.flush !== undefined && (obj.flush = message.flush ? RequestFlush.toJSON(message.flush) : undefined);
|
|
1127
|
-
message.info !== undefined && (obj.info = message.info ? RequestInfo.toJSON(message.info) : undefined);
|
|
1128
|
-
message.setOption !== undefined && (obj.setOption = message.setOption ? RequestSetOption.toJSON(message.setOption) : undefined);
|
|
1129
|
-
message.initChain !== undefined && (obj.initChain = message.initChain ? RequestInitChain.toJSON(message.initChain) : undefined);
|
|
1130
|
-
message.query !== undefined && (obj.query = message.query ? RequestQuery.toJSON(message.query) : undefined);
|
|
1131
|
-
message.beginBlock !== undefined && (obj.beginBlock = message.beginBlock ? RequestBeginBlock.toJSON(message.beginBlock) : undefined);
|
|
1132
|
-
message.checkTx !== undefined && (obj.checkTx = message.checkTx ? RequestCheckTx.toJSON(message.checkTx) : undefined);
|
|
1133
|
-
message.deliverTx !== undefined && (obj.deliverTx = message.deliverTx ? RequestDeliverTx.toJSON(message.deliverTx) : undefined);
|
|
1134
|
-
message.endBlock !== undefined && (obj.endBlock = message.endBlock ? RequestEndBlock.toJSON(message.endBlock) : undefined);
|
|
1135
|
-
message.commit !== undefined && (obj.commit = message.commit ? RequestCommit.toJSON(message.commit) : undefined);
|
|
1136
|
-
message.listSnapshots !== undefined && (obj.listSnapshots = message.listSnapshots ? RequestListSnapshots.toJSON(message.listSnapshots) : undefined);
|
|
1137
|
-
message.offerSnapshot !== undefined && (obj.offerSnapshot = message.offerSnapshot ? RequestOfferSnapshot.toJSON(message.offerSnapshot) : undefined);
|
|
1138
|
-
message.loadSnapshotChunk !== undefined && (obj.loadSnapshotChunk = message.loadSnapshotChunk ? RequestLoadSnapshotChunk.toJSON(message.loadSnapshotChunk) : undefined);
|
|
1139
|
-
message.applySnapshotChunk !== undefined && (obj.applySnapshotChunk = message.applySnapshotChunk ? RequestApplySnapshotChunk.toJSON(message.applySnapshotChunk) : undefined);
|
|
1140
|
-
return obj;
|
|
1141
|
-
},
|
|
1142
|
-
|
|
1143
|
-
fromPartial(object: Partial<Request>): Request {
|
|
1002
|
+
fromPartial(object: DeepPartial<Request>): Request {
|
|
1144
1003
|
const message = createBaseRequest();
|
|
1145
1004
|
message.echo = object.echo !== undefined && object.echo !== null ? RequestEcho.fromPartial(object.echo) : undefined;
|
|
1146
1005
|
message.flush = object.flush !== undefined && object.flush !== null ? RequestFlush.fromPartial(object.flush) : undefined;
|
|
@@ -1199,19 +1058,7 @@ export const RequestEcho = {
|
|
|
1199
1058
|
return message;
|
|
1200
1059
|
},
|
|
1201
1060
|
|
|
1202
|
-
|
|
1203
|
-
return {
|
|
1204
|
-
message: isSet(object.message) ? String(object.message) : ""
|
|
1205
|
-
};
|
|
1206
|
-
},
|
|
1207
|
-
|
|
1208
|
-
toJSON(message: RequestEcho): unknown {
|
|
1209
|
-
const obj: any = {};
|
|
1210
|
-
message.message !== undefined && (obj.message = message.message);
|
|
1211
|
-
return obj;
|
|
1212
|
-
},
|
|
1213
|
-
|
|
1214
|
-
fromPartial(object: Partial<RequestEcho>): RequestEcho {
|
|
1061
|
+
fromPartial(object: DeepPartial<RequestEcho>): RequestEcho {
|
|
1215
1062
|
const message = createBaseRequestEcho();
|
|
1216
1063
|
message.message = object.message ?? "";
|
|
1217
1064
|
return message;
|
|
@@ -1246,16 +1093,7 @@ export const RequestFlush = {
|
|
|
1246
1093
|
return message;
|
|
1247
1094
|
},
|
|
1248
1095
|
|
|
1249
|
-
|
|
1250
|
-
return {};
|
|
1251
|
-
},
|
|
1252
|
-
|
|
1253
|
-
toJSON(_: RequestFlush): unknown {
|
|
1254
|
-
const obj: any = {};
|
|
1255
|
-
return obj;
|
|
1256
|
-
},
|
|
1257
|
-
|
|
1258
|
-
fromPartial(_: Partial<RequestFlush>): RequestFlush {
|
|
1096
|
+
fromPartial(_: DeepPartial<RequestFlush>): RequestFlush {
|
|
1259
1097
|
const message = createBaseRequestFlush();
|
|
1260
1098
|
return message;
|
|
1261
1099
|
}
|
|
@@ -1317,23 +1155,7 @@ export const RequestInfo = {
|
|
|
1317
1155
|
return message;
|
|
1318
1156
|
},
|
|
1319
1157
|
|
|
1320
|
-
|
|
1321
|
-
return {
|
|
1322
|
-
version: isSet(object.version) ? String(object.version) : "",
|
|
1323
|
-
blockVersion: isSet(object.blockVersion) ? Long.fromValue(object.blockVersion) : Long.UZERO,
|
|
1324
|
-
p2pVersion: isSet(object.p2pVersion) ? Long.fromValue(object.p2pVersion) : Long.UZERO
|
|
1325
|
-
};
|
|
1326
|
-
},
|
|
1327
|
-
|
|
1328
|
-
toJSON(message: RequestInfo): unknown {
|
|
1329
|
-
const obj: any = {};
|
|
1330
|
-
message.version !== undefined && (obj.version = message.version);
|
|
1331
|
-
message.blockVersion !== undefined && (obj.blockVersion = (message.blockVersion || Long.UZERO).toString());
|
|
1332
|
-
message.p2pVersion !== undefined && (obj.p2pVersion = (message.p2pVersion || Long.UZERO).toString());
|
|
1333
|
-
return obj;
|
|
1334
|
-
},
|
|
1335
|
-
|
|
1336
|
-
fromPartial(object: Partial<RequestInfo>): RequestInfo {
|
|
1158
|
+
fromPartial(object: DeepPartial<RequestInfo>): RequestInfo {
|
|
1337
1159
|
const message = createBaseRequestInfo();
|
|
1338
1160
|
message.version = object.version ?? "";
|
|
1339
1161
|
message.blockVersion = object.blockVersion !== undefined && object.blockVersion !== null ? Long.fromValue(object.blockVersion) : Long.UZERO;
|
|
@@ -1389,21 +1211,7 @@ export const RequestSetOption = {
|
|
|
1389
1211
|
return message;
|
|
1390
1212
|
},
|
|
1391
1213
|
|
|
1392
|
-
|
|
1393
|
-
return {
|
|
1394
|
-
key: isSet(object.key) ? String(object.key) : "",
|
|
1395
|
-
value: isSet(object.value) ? String(object.value) : ""
|
|
1396
|
-
};
|
|
1397
|
-
},
|
|
1398
|
-
|
|
1399
|
-
toJSON(message: RequestSetOption): unknown {
|
|
1400
|
-
const obj: any = {};
|
|
1401
|
-
message.key !== undefined && (obj.key = message.key);
|
|
1402
|
-
message.value !== undefined && (obj.value = message.value);
|
|
1403
|
-
return obj;
|
|
1404
|
-
},
|
|
1405
|
-
|
|
1406
|
-
fromPartial(object: Partial<RequestSetOption>): RequestSetOption {
|
|
1214
|
+
fromPartial(object: DeepPartial<RequestSetOption>): RequestSetOption {
|
|
1407
1215
|
const message = createBaseRequestSetOption();
|
|
1408
1216
|
message.key = object.key ?? "";
|
|
1409
1217
|
message.value = object.value ?? "";
|
|
@@ -1426,7 +1234,7 @@ function createBaseRequestInitChain(): RequestInitChain {
|
|
|
1426
1234
|
export const RequestInitChain = {
|
|
1427
1235
|
encode(message: RequestInitChain, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1428
1236
|
if (message.time !== undefined) {
|
|
1429
|
-
Timestamp.encode(message.time, writer.uint32(10).fork()).ldelim();
|
|
1237
|
+
Timestamp.encode(toTimestamp(message.time), writer.uint32(10).fork()).ldelim();
|
|
1430
1238
|
}
|
|
1431
1239
|
|
|
1432
1240
|
if (message.chainId !== "") {
|
|
@@ -1462,7 +1270,7 @@ export const RequestInitChain = {
|
|
|
1462
1270
|
|
|
1463
1271
|
switch (tag >>> 3) {
|
|
1464
1272
|
case 1:
|
|
1465
|
-
message.time = Timestamp.decode(reader, reader.uint32());
|
|
1273
|
+
message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1466
1274
|
break;
|
|
1467
1275
|
|
|
1468
1276
|
case 2:
|
|
@@ -1494,37 +1302,9 @@ export const RequestInitChain = {
|
|
|
1494
1302
|
return message;
|
|
1495
1303
|
},
|
|
1496
1304
|
|
|
1497
|
-
|
|
1498
|
-
return {
|
|
1499
|
-
time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
|
|
1500
|
-
chainId: isSet(object.chainId) ? String(object.chainId) : "",
|
|
1501
|
-
consensusParams: isSet(object.consensusParams) ? ConsensusParams.fromJSON(object.consensusParams) : undefined,
|
|
1502
|
-
validators: Array.isArray(object?.validators) ? object.validators.map((e: any) => ValidatorUpdate.fromJSON(e)) : [],
|
|
1503
|
-
appStateBytes: isSet(object.appStateBytes) ? bytesFromBase64(object.appStateBytes) : new Uint8Array(),
|
|
1504
|
-
initialHeight: isSet(object.initialHeight) ? Long.fromValue(object.initialHeight) : Long.ZERO
|
|
1505
|
-
};
|
|
1506
|
-
},
|
|
1507
|
-
|
|
1508
|
-
toJSON(message: RequestInitChain): unknown {
|
|
1509
|
-
const obj: any = {};
|
|
1510
|
-
message.time !== undefined && (obj.time = fromTimestamp(message.time).toISOString());
|
|
1511
|
-
message.chainId !== undefined && (obj.chainId = message.chainId);
|
|
1512
|
-
message.consensusParams !== undefined && (obj.consensusParams = message.consensusParams ? ConsensusParams.toJSON(message.consensusParams) : undefined);
|
|
1513
|
-
|
|
1514
|
-
if (message.validators) {
|
|
1515
|
-
obj.validators = message.validators.map(e => e ? ValidatorUpdate.toJSON(e) : undefined);
|
|
1516
|
-
} else {
|
|
1517
|
-
obj.validators = [];
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
message.appStateBytes !== undefined && (obj.appStateBytes = base64FromBytes(message.appStateBytes !== undefined ? message.appStateBytes : new Uint8Array()));
|
|
1521
|
-
message.initialHeight !== undefined && (obj.initialHeight = (message.initialHeight || Long.ZERO).toString());
|
|
1522
|
-
return obj;
|
|
1523
|
-
},
|
|
1524
|
-
|
|
1525
|
-
fromPartial(object: Partial<RequestInitChain>): RequestInitChain {
|
|
1305
|
+
fromPartial(object: DeepPartial<RequestInitChain>): RequestInitChain {
|
|
1526
1306
|
const message = createBaseRequestInitChain();
|
|
1527
|
-
message.time = object.time
|
|
1307
|
+
message.time = object.time ?? undefined;
|
|
1528
1308
|
message.chainId = object.chainId ?? "";
|
|
1529
1309
|
message.consensusParams = object.consensusParams !== undefined && object.consensusParams !== null ? ConsensusParams.fromPartial(object.consensusParams) : undefined;
|
|
1530
1310
|
message.validators = object.validators?.map(e => ValidatorUpdate.fromPartial(e)) || [];
|
|
@@ -1599,25 +1379,7 @@ export const RequestQuery = {
|
|
|
1599
1379
|
return message;
|
|
1600
1380
|
},
|
|
1601
1381
|
|
|
1602
|
-
|
|
1603
|
-
return {
|
|
1604
|
-
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(),
|
|
1605
|
-
path: isSet(object.path) ? String(object.path) : "",
|
|
1606
|
-
height: isSet(object.height) ? Long.fromValue(object.height) : Long.ZERO,
|
|
1607
|
-
prove: isSet(object.prove) ? Boolean(object.prove) : false
|
|
1608
|
-
};
|
|
1609
|
-
},
|
|
1610
|
-
|
|
1611
|
-
toJSON(message: RequestQuery): unknown {
|
|
1612
|
-
const obj: any = {};
|
|
1613
|
-
message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
|
|
1614
|
-
message.path !== undefined && (obj.path = message.path);
|
|
1615
|
-
message.height !== undefined && (obj.height = (message.height || Long.ZERO).toString());
|
|
1616
|
-
message.prove !== undefined && (obj.prove = message.prove);
|
|
1617
|
-
return obj;
|
|
1618
|
-
},
|
|
1619
|
-
|
|
1620
|
-
fromPartial(object: Partial<RequestQuery>): RequestQuery {
|
|
1382
|
+
fromPartial(object: DeepPartial<RequestQuery>): RequestQuery {
|
|
1621
1383
|
const message = createBaseRequestQuery();
|
|
1622
1384
|
message.data = object.data ?? new Uint8Array();
|
|
1623
1385
|
message.path = object.path ?? "";
|
|
@@ -1692,31 +1454,7 @@ export const RequestBeginBlock = {
|
|
|
1692
1454
|
return message;
|
|
1693
1455
|
},
|
|
1694
1456
|
|
|
1695
|
-
|
|
1696
|
-
return {
|
|
1697
|
-
hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(),
|
|
1698
|
-
header: isSet(object.header) ? Header.fromJSON(object.header) : undefined,
|
|
1699
|
-
lastCommitInfo: isSet(object.lastCommitInfo) ? LastCommitInfo.fromJSON(object.lastCommitInfo) : undefined,
|
|
1700
|
-
byzantineValidators: Array.isArray(object?.byzantineValidators) ? object.byzantineValidators.map((e: any) => Evidence.fromJSON(e)) : []
|
|
1701
|
-
};
|
|
1702
|
-
},
|
|
1703
|
-
|
|
1704
|
-
toJSON(message: RequestBeginBlock): unknown {
|
|
1705
|
-
const obj: any = {};
|
|
1706
|
-
message.hash !== undefined && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array()));
|
|
1707
|
-
message.header !== undefined && (obj.header = message.header ? Header.toJSON(message.header) : undefined);
|
|
1708
|
-
message.lastCommitInfo !== undefined && (obj.lastCommitInfo = message.lastCommitInfo ? LastCommitInfo.toJSON(message.lastCommitInfo) : undefined);
|
|
1709
|
-
|
|
1710
|
-
if (message.byzantineValidators) {
|
|
1711
|
-
obj.byzantineValidators = message.byzantineValidators.map(e => e ? Evidence.toJSON(e) : undefined);
|
|
1712
|
-
} else {
|
|
1713
|
-
obj.byzantineValidators = [];
|
|
1714
|
-
}
|
|
1715
|
-
|
|
1716
|
-
return obj;
|
|
1717
|
-
},
|
|
1718
|
-
|
|
1719
|
-
fromPartial(object: Partial<RequestBeginBlock>): RequestBeginBlock {
|
|
1457
|
+
fromPartial(object: DeepPartial<RequestBeginBlock>): RequestBeginBlock {
|
|
1720
1458
|
const message = createBaseRequestBeginBlock();
|
|
1721
1459
|
message.hash = object.hash ?? new Uint8Array();
|
|
1722
1460
|
message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined;
|
|
@@ -1773,21 +1511,7 @@ export const RequestCheckTx = {
|
|
|
1773
1511
|
return message;
|
|
1774
1512
|
},
|
|
1775
1513
|
|
|
1776
|
-
|
|
1777
|
-
return {
|
|
1778
|
-
tx: isSet(object.tx) ? bytesFromBase64(object.tx) : new Uint8Array(),
|
|
1779
|
-
type: isSet(object.type) ? checkTxTypeFromJSON(object.type) : 0
|
|
1780
|
-
};
|
|
1781
|
-
},
|
|
1782
|
-
|
|
1783
|
-
toJSON(message: RequestCheckTx): unknown {
|
|
1784
|
-
const obj: any = {};
|
|
1785
|
-
message.tx !== undefined && (obj.tx = base64FromBytes(message.tx !== undefined ? message.tx : new Uint8Array()));
|
|
1786
|
-
message.type !== undefined && (obj.type = checkTxTypeToJSON(message.type));
|
|
1787
|
-
return obj;
|
|
1788
|
-
},
|
|
1789
|
-
|
|
1790
|
-
fromPartial(object: Partial<RequestCheckTx>): RequestCheckTx {
|
|
1514
|
+
fromPartial(object: DeepPartial<RequestCheckTx>): RequestCheckTx {
|
|
1791
1515
|
const message = createBaseRequestCheckTx();
|
|
1792
1516
|
message.tx = object.tx ?? new Uint8Array();
|
|
1793
1517
|
message.type = object.type ?? 0;
|
|
@@ -1833,19 +1557,7 @@ export const RequestDeliverTx = {
|
|
|
1833
1557
|
return message;
|
|
1834
1558
|
},
|
|
1835
1559
|
|
|
1836
|
-
|
|
1837
|
-
return {
|
|
1838
|
-
tx: isSet(object.tx) ? bytesFromBase64(object.tx) : new Uint8Array()
|
|
1839
|
-
};
|
|
1840
|
-
},
|
|
1841
|
-
|
|
1842
|
-
toJSON(message: RequestDeliverTx): unknown {
|
|
1843
|
-
const obj: any = {};
|
|
1844
|
-
message.tx !== undefined && (obj.tx = base64FromBytes(message.tx !== undefined ? message.tx : new Uint8Array()));
|
|
1845
|
-
return obj;
|
|
1846
|
-
},
|
|
1847
|
-
|
|
1848
|
-
fromPartial(object: Partial<RequestDeliverTx>): RequestDeliverTx {
|
|
1560
|
+
fromPartial(object: DeepPartial<RequestDeliverTx>): RequestDeliverTx {
|
|
1849
1561
|
const message = createBaseRequestDeliverTx();
|
|
1850
1562
|
message.tx = object.tx ?? new Uint8Array();
|
|
1851
1563
|
return message;
|
|
@@ -1890,19 +1602,7 @@ export const RequestEndBlock = {
|
|
|
1890
1602
|
return message;
|
|
1891
1603
|
},
|
|
1892
1604
|
|
|
1893
|
-
|
|
1894
|
-
return {
|
|
1895
|
-
height: isSet(object.height) ? Long.fromValue(object.height) : Long.ZERO
|
|
1896
|
-
};
|
|
1897
|
-
},
|
|
1898
|
-
|
|
1899
|
-
toJSON(message: RequestEndBlock): unknown {
|
|
1900
|
-
const obj: any = {};
|
|
1901
|
-
message.height !== undefined && (obj.height = (message.height || Long.ZERO).toString());
|
|
1902
|
-
return obj;
|
|
1903
|
-
},
|
|
1904
|
-
|
|
1905
|
-
fromPartial(object: Partial<RequestEndBlock>): RequestEndBlock {
|
|
1605
|
+
fromPartial(object: DeepPartial<RequestEndBlock>): RequestEndBlock {
|
|
1906
1606
|
const message = createBaseRequestEndBlock();
|
|
1907
1607
|
message.height = object.height !== undefined && object.height !== null ? Long.fromValue(object.height) : Long.ZERO;
|
|
1908
1608
|
return message;
|
|
@@ -1937,16 +1637,7 @@ export const RequestCommit = {
|
|
|
1937
1637
|
return message;
|
|
1938
1638
|
},
|
|
1939
1639
|
|
|
1940
|
-
|
|
1941
|
-
return {};
|
|
1942
|
-
},
|
|
1943
|
-
|
|
1944
|
-
toJSON(_: RequestCommit): unknown {
|
|
1945
|
-
const obj: any = {};
|
|
1946
|
-
return obj;
|
|
1947
|
-
},
|
|
1948
|
-
|
|
1949
|
-
fromPartial(_: Partial<RequestCommit>): RequestCommit {
|
|
1640
|
+
fromPartial(_: DeepPartial<RequestCommit>): RequestCommit {
|
|
1950
1641
|
const message = createBaseRequestCommit();
|
|
1951
1642
|
return message;
|
|
1952
1643
|
}
|
|
@@ -1980,16 +1671,7 @@ export const RequestListSnapshots = {
|
|
|
1980
1671
|
return message;
|
|
1981
1672
|
},
|
|
1982
1673
|
|
|
1983
|
-
|
|
1984
|
-
return {};
|
|
1985
|
-
},
|
|
1986
|
-
|
|
1987
|
-
toJSON(_: RequestListSnapshots): unknown {
|
|
1988
|
-
const obj: any = {};
|
|
1989
|
-
return obj;
|
|
1990
|
-
},
|
|
1991
|
-
|
|
1992
|
-
fromPartial(_: Partial<RequestListSnapshots>): RequestListSnapshots {
|
|
1674
|
+
fromPartial(_: DeepPartial<RequestListSnapshots>): RequestListSnapshots {
|
|
1993
1675
|
const message = createBaseRequestListSnapshots();
|
|
1994
1676
|
return message;
|
|
1995
1677
|
}
|
|
@@ -2042,21 +1724,7 @@ export const RequestOfferSnapshot = {
|
|
|
2042
1724
|
return message;
|
|
2043
1725
|
},
|
|
2044
1726
|
|
|
2045
|
-
|
|
2046
|
-
return {
|
|
2047
|
-
snapshot: isSet(object.snapshot) ? Snapshot.fromJSON(object.snapshot) : undefined,
|
|
2048
|
-
appHash: isSet(object.appHash) ? bytesFromBase64(object.appHash) : new Uint8Array()
|
|
2049
|
-
};
|
|
2050
|
-
},
|
|
2051
|
-
|
|
2052
|
-
toJSON(message: RequestOfferSnapshot): unknown {
|
|
2053
|
-
const obj: any = {};
|
|
2054
|
-
message.snapshot !== undefined && (obj.snapshot = message.snapshot ? Snapshot.toJSON(message.snapshot) : undefined);
|
|
2055
|
-
message.appHash !== undefined && (obj.appHash = base64FromBytes(message.appHash !== undefined ? message.appHash : new Uint8Array()));
|
|
2056
|
-
return obj;
|
|
2057
|
-
},
|
|
2058
|
-
|
|
2059
|
-
fromPartial(object: Partial<RequestOfferSnapshot>): RequestOfferSnapshot {
|
|
1727
|
+
fromPartial(object: DeepPartial<RequestOfferSnapshot>): RequestOfferSnapshot {
|
|
2060
1728
|
const message = createBaseRequestOfferSnapshot();
|
|
2061
1729
|
message.snapshot = object.snapshot !== undefined && object.snapshot !== null ? Snapshot.fromPartial(object.snapshot) : undefined;
|
|
2062
1730
|
message.appHash = object.appHash ?? new Uint8Array();
|
|
@@ -2120,23 +1788,7 @@ export const RequestLoadSnapshotChunk = {
|
|
|
2120
1788
|
return message;
|
|
2121
1789
|
},
|
|
2122
1790
|
|
|
2123
|
-
|
|
2124
|
-
return {
|
|
2125
|
-
height: isSet(object.height) ? Long.fromValue(object.height) : Long.UZERO,
|
|
2126
|
-
format: isSet(object.format) ? Number(object.format) : 0,
|
|
2127
|
-
chunk: isSet(object.chunk) ? Number(object.chunk) : 0
|
|
2128
|
-
};
|
|
2129
|
-
},
|
|
2130
|
-
|
|
2131
|
-
toJSON(message: RequestLoadSnapshotChunk): unknown {
|
|
2132
|
-
const obj: any = {};
|
|
2133
|
-
message.height !== undefined && (obj.height = (message.height || Long.UZERO).toString());
|
|
2134
|
-
message.format !== undefined && (obj.format = Math.round(message.format));
|
|
2135
|
-
message.chunk !== undefined && (obj.chunk = Math.round(message.chunk));
|
|
2136
|
-
return obj;
|
|
2137
|
-
},
|
|
2138
|
-
|
|
2139
|
-
fromPartial(object: Partial<RequestLoadSnapshotChunk>): RequestLoadSnapshotChunk {
|
|
1791
|
+
fromPartial(object: DeepPartial<RequestLoadSnapshotChunk>): RequestLoadSnapshotChunk {
|
|
2140
1792
|
const message = createBaseRequestLoadSnapshotChunk();
|
|
2141
1793
|
message.height = object.height !== undefined && object.height !== null ? Long.fromValue(object.height) : Long.UZERO;
|
|
2142
1794
|
message.format = object.format ?? 0;
|
|
@@ -2201,23 +1853,7 @@ export const RequestApplySnapshotChunk = {
|
|
|
2201
1853
|
return message;
|
|
2202
1854
|
},
|
|
2203
1855
|
|
|
2204
|
-
|
|
2205
|
-
return {
|
|
2206
|
-
index: isSet(object.index) ? Number(object.index) : 0,
|
|
2207
|
-
chunk: isSet(object.chunk) ? bytesFromBase64(object.chunk) : new Uint8Array(),
|
|
2208
|
-
sender: isSet(object.sender) ? String(object.sender) : ""
|
|
2209
|
-
};
|
|
2210
|
-
},
|
|
2211
|
-
|
|
2212
|
-
toJSON(message: RequestApplySnapshotChunk): unknown {
|
|
2213
|
-
const obj: any = {};
|
|
2214
|
-
message.index !== undefined && (obj.index = Math.round(message.index));
|
|
2215
|
-
message.chunk !== undefined && (obj.chunk = base64FromBytes(message.chunk !== undefined ? message.chunk : new Uint8Array()));
|
|
2216
|
-
message.sender !== undefined && (obj.sender = message.sender);
|
|
2217
|
-
return obj;
|
|
2218
|
-
},
|
|
2219
|
-
|
|
2220
|
-
fromPartial(object: Partial<RequestApplySnapshotChunk>): RequestApplySnapshotChunk {
|
|
1856
|
+
fromPartial(object: DeepPartial<RequestApplySnapshotChunk>): RequestApplySnapshotChunk {
|
|
2221
1857
|
const message = createBaseRequestApplySnapshotChunk();
|
|
2222
1858
|
message.index = object.index ?? 0;
|
|
2223
1859
|
message.chunk = object.chunk ?? new Uint8Array();
|
|
@@ -2399,49 +2035,7 @@ export const Response = {
|
|
|
2399
2035
|
return message;
|
|
2400
2036
|
},
|
|
2401
2037
|
|
|
2402
|
-
|
|
2403
|
-
return {
|
|
2404
|
-
exception: isSet(object.exception) ? ResponseException.fromJSON(object.exception) : undefined,
|
|
2405
|
-
echo: isSet(object.echo) ? ResponseEcho.fromJSON(object.echo) : undefined,
|
|
2406
|
-
flush: isSet(object.flush) ? ResponseFlush.fromJSON(object.flush) : undefined,
|
|
2407
|
-
info: isSet(object.info) ? ResponseInfo.fromJSON(object.info) : undefined,
|
|
2408
|
-
setOption: isSet(object.setOption) ? ResponseSetOption.fromJSON(object.setOption) : undefined,
|
|
2409
|
-
initChain: isSet(object.initChain) ? ResponseInitChain.fromJSON(object.initChain) : undefined,
|
|
2410
|
-
query: isSet(object.query) ? ResponseQuery.fromJSON(object.query) : undefined,
|
|
2411
|
-
beginBlock: isSet(object.beginBlock) ? ResponseBeginBlock.fromJSON(object.beginBlock) : undefined,
|
|
2412
|
-
checkTx: isSet(object.checkTx) ? ResponseCheckTx.fromJSON(object.checkTx) : undefined,
|
|
2413
|
-
deliverTx: isSet(object.deliverTx) ? ResponseDeliverTx.fromJSON(object.deliverTx) : undefined,
|
|
2414
|
-
endBlock: isSet(object.endBlock) ? ResponseEndBlock.fromJSON(object.endBlock) : undefined,
|
|
2415
|
-
commit: isSet(object.commit) ? ResponseCommit.fromJSON(object.commit) : undefined,
|
|
2416
|
-
listSnapshots: isSet(object.listSnapshots) ? ResponseListSnapshots.fromJSON(object.listSnapshots) : undefined,
|
|
2417
|
-
offerSnapshot: isSet(object.offerSnapshot) ? ResponseOfferSnapshot.fromJSON(object.offerSnapshot) : undefined,
|
|
2418
|
-
loadSnapshotChunk: isSet(object.loadSnapshotChunk) ? ResponseLoadSnapshotChunk.fromJSON(object.loadSnapshotChunk) : undefined,
|
|
2419
|
-
applySnapshotChunk: isSet(object.applySnapshotChunk) ? ResponseApplySnapshotChunk.fromJSON(object.applySnapshotChunk) : undefined
|
|
2420
|
-
};
|
|
2421
|
-
},
|
|
2422
|
-
|
|
2423
|
-
toJSON(message: Response): unknown {
|
|
2424
|
-
const obj: any = {};
|
|
2425
|
-
message.exception !== undefined && (obj.exception = message.exception ? ResponseException.toJSON(message.exception) : undefined);
|
|
2426
|
-
message.echo !== undefined && (obj.echo = message.echo ? ResponseEcho.toJSON(message.echo) : undefined);
|
|
2427
|
-
message.flush !== undefined && (obj.flush = message.flush ? ResponseFlush.toJSON(message.flush) : undefined);
|
|
2428
|
-
message.info !== undefined && (obj.info = message.info ? ResponseInfo.toJSON(message.info) : undefined);
|
|
2429
|
-
message.setOption !== undefined && (obj.setOption = message.setOption ? ResponseSetOption.toJSON(message.setOption) : undefined);
|
|
2430
|
-
message.initChain !== undefined && (obj.initChain = message.initChain ? ResponseInitChain.toJSON(message.initChain) : undefined);
|
|
2431
|
-
message.query !== undefined && (obj.query = message.query ? ResponseQuery.toJSON(message.query) : undefined);
|
|
2432
|
-
message.beginBlock !== undefined && (obj.beginBlock = message.beginBlock ? ResponseBeginBlock.toJSON(message.beginBlock) : undefined);
|
|
2433
|
-
message.checkTx !== undefined && (obj.checkTx = message.checkTx ? ResponseCheckTx.toJSON(message.checkTx) : undefined);
|
|
2434
|
-
message.deliverTx !== undefined && (obj.deliverTx = message.deliverTx ? ResponseDeliverTx.toJSON(message.deliverTx) : undefined);
|
|
2435
|
-
message.endBlock !== undefined && (obj.endBlock = message.endBlock ? ResponseEndBlock.toJSON(message.endBlock) : undefined);
|
|
2436
|
-
message.commit !== undefined && (obj.commit = message.commit ? ResponseCommit.toJSON(message.commit) : undefined);
|
|
2437
|
-
message.listSnapshots !== undefined && (obj.listSnapshots = message.listSnapshots ? ResponseListSnapshots.toJSON(message.listSnapshots) : undefined);
|
|
2438
|
-
message.offerSnapshot !== undefined && (obj.offerSnapshot = message.offerSnapshot ? ResponseOfferSnapshot.toJSON(message.offerSnapshot) : undefined);
|
|
2439
|
-
message.loadSnapshotChunk !== undefined && (obj.loadSnapshotChunk = message.loadSnapshotChunk ? ResponseLoadSnapshotChunk.toJSON(message.loadSnapshotChunk) : undefined);
|
|
2440
|
-
message.applySnapshotChunk !== undefined && (obj.applySnapshotChunk = message.applySnapshotChunk ? ResponseApplySnapshotChunk.toJSON(message.applySnapshotChunk) : undefined);
|
|
2441
|
-
return obj;
|
|
2442
|
-
},
|
|
2443
|
-
|
|
2444
|
-
fromPartial(object: Partial<Response>): Response {
|
|
2038
|
+
fromPartial(object: DeepPartial<Response>): Response {
|
|
2445
2039
|
const message = createBaseResponse();
|
|
2446
2040
|
message.exception = object.exception !== undefined && object.exception !== null ? ResponseException.fromPartial(object.exception) : undefined;
|
|
2447
2041
|
message.echo = object.echo !== undefined && object.echo !== null ? ResponseEcho.fromPartial(object.echo) : undefined;
|
|
@@ -2501,19 +2095,7 @@ export const ResponseException = {
|
|
|
2501
2095
|
return message;
|
|
2502
2096
|
},
|
|
2503
2097
|
|
|
2504
|
-
|
|
2505
|
-
return {
|
|
2506
|
-
error: isSet(object.error) ? String(object.error) : ""
|
|
2507
|
-
};
|
|
2508
|
-
},
|
|
2509
|
-
|
|
2510
|
-
toJSON(message: ResponseException): unknown {
|
|
2511
|
-
const obj: any = {};
|
|
2512
|
-
message.error !== undefined && (obj.error = message.error);
|
|
2513
|
-
return obj;
|
|
2514
|
-
},
|
|
2515
|
-
|
|
2516
|
-
fromPartial(object: Partial<ResponseException>): ResponseException {
|
|
2098
|
+
fromPartial(object: DeepPartial<ResponseException>): ResponseException {
|
|
2517
2099
|
const message = createBaseResponseException();
|
|
2518
2100
|
message.error = object.error ?? "";
|
|
2519
2101
|
return message;
|
|
@@ -2558,19 +2140,7 @@ export const ResponseEcho = {
|
|
|
2558
2140
|
return message;
|
|
2559
2141
|
},
|
|
2560
2142
|
|
|
2561
|
-
|
|
2562
|
-
return {
|
|
2563
|
-
message: isSet(object.message) ? String(object.message) : ""
|
|
2564
|
-
};
|
|
2565
|
-
},
|
|
2566
|
-
|
|
2567
|
-
toJSON(message: ResponseEcho): unknown {
|
|
2568
|
-
const obj: any = {};
|
|
2569
|
-
message.message !== undefined && (obj.message = message.message);
|
|
2570
|
-
return obj;
|
|
2571
|
-
},
|
|
2572
|
-
|
|
2573
|
-
fromPartial(object: Partial<ResponseEcho>): ResponseEcho {
|
|
2143
|
+
fromPartial(object: DeepPartial<ResponseEcho>): ResponseEcho {
|
|
2574
2144
|
const message = createBaseResponseEcho();
|
|
2575
2145
|
message.message = object.message ?? "";
|
|
2576
2146
|
return message;
|
|
@@ -2605,16 +2175,7 @@ export const ResponseFlush = {
|
|
|
2605
2175
|
return message;
|
|
2606
2176
|
},
|
|
2607
2177
|
|
|
2608
|
-
|
|
2609
|
-
return {};
|
|
2610
|
-
},
|
|
2611
|
-
|
|
2612
|
-
toJSON(_: ResponseFlush): unknown {
|
|
2613
|
-
const obj: any = {};
|
|
2614
|
-
return obj;
|
|
2615
|
-
},
|
|
2616
|
-
|
|
2617
|
-
fromPartial(_: Partial<ResponseFlush>): ResponseFlush {
|
|
2178
|
+
fromPartial(_: DeepPartial<ResponseFlush>): ResponseFlush {
|
|
2618
2179
|
const message = createBaseResponseFlush();
|
|
2619
2180
|
return message;
|
|
2620
2181
|
}
|
|
@@ -2694,27 +2255,7 @@ export const ResponseInfo = {
|
|
|
2694
2255
|
return message;
|
|
2695
2256
|
},
|
|
2696
2257
|
|
|
2697
|
-
|
|
2698
|
-
return {
|
|
2699
|
-
data: isSet(object.data) ? String(object.data) : "",
|
|
2700
|
-
version: isSet(object.version) ? String(object.version) : "",
|
|
2701
|
-
appVersion: isSet(object.appVersion) ? Long.fromValue(object.appVersion) : Long.UZERO,
|
|
2702
|
-
lastBlockHeight: isSet(object.lastBlockHeight) ? Long.fromValue(object.lastBlockHeight) : Long.ZERO,
|
|
2703
|
-
lastBlockAppHash: isSet(object.lastBlockAppHash) ? bytesFromBase64(object.lastBlockAppHash) : new Uint8Array()
|
|
2704
|
-
};
|
|
2705
|
-
},
|
|
2706
|
-
|
|
2707
|
-
toJSON(message: ResponseInfo): unknown {
|
|
2708
|
-
const obj: any = {};
|
|
2709
|
-
message.data !== undefined && (obj.data = message.data);
|
|
2710
|
-
message.version !== undefined && (obj.version = message.version);
|
|
2711
|
-
message.appVersion !== undefined && (obj.appVersion = (message.appVersion || Long.UZERO).toString());
|
|
2712
|
-
message.lastBlockHeight !== undefined && (obj.lastBlockHeight = (message.lastBlockHeight || Long.ZERO).toString());
|
|
2713
|
-
message.lastBlockAppHash !== undefined && (obj.lastBlockAppHash = base64FromBytes(message.lastBlockAppHash !== undefined ? message.lastBlockAppHash : new Uint8Array()));
|
|
2714
|
-
return obj;
|
|
2715
|
-
},
|
|
2716
|
-
|
|
2717
|
-
fromPartial(object: Partial<ResponseInfo>): ResponseInfo {
|
|
2258
|
+
fromPartial(object: DeepPartial<ResponseInfo>): ResponseInfo {
|
|
2718
2259
|
const message = createBaseResponseInfo();
|
|
2719
2260
|
message.data = object.data ?? "";
|
|
2720
2261
|
message.version = object.version ?? "";
|
|
@@ -2781,23 +2322,7 @@ export const ResponseSetOption = {
|
|
|
2781
2322
|
return message;
|
|
2782
2323
|
},
|
|
2783
2324
|
|
|
2784
|
-
|
|
2785
|
-
return {
|
|
2786
|
-
code: isSet(object.code) ? Number(object.code) : 0,
|
|
2787
|
-
log: isSet(object.log) ? String(object.log) : "",
|
|
2788
|
-
info: isSet(object.info) ? String(object.info) : ""
|
|
2789
|
-
};
|
|
2790
|
-
},
|
|
2791
|
-
|
|
2792
|
-
toJSON(message: ResponseSetOption): unknown {
|
|
2793
|
-
const obj: any = {};
|
|
2794
|
-
message.code !== undefined && (obj.code = Math.round(message.code));
|
|
2795
|
-
message.log !== undefined && (obj.log = message.log);
|
|
2796
|
-
message.info !== undefined && (obj.info = message.info);
|
|
2797
|
-
return obj;
|
|
2798
|
-
},
|
|
2799
|
-
|
|
2800
|
-
fromPartial(object: Partial<ResponseSetOption>): ResponseSetOption {
|
|
2325
|
+
fromPartial(object: DeepPartial<ResponseSetOption>): ResponseSetOption {
|
|
2801
2326
|
const message = createBaseResponseSetOption();
|
|
2802
2327
|
message.code = object.code ?? 0;
|
|
2803
2328
|
message.log = object.log ?? "";
|
|
@@ -2862,29 +2387,7 @@ export const ResponseInitChain = {
|
|
|
2862
2387
|
return message;
|
|
2863
2388
|
},
|
|
2864
2389
|
|
|
2865
|
-
|
|
2866
|
-
return {
|
|
2867
|
-
consensusParams: isSet(object.consensusParams) ? ConsensusParams.fromJSON(object.consensusParams) : undefined,
|
|
2868
|
-
validators: Array.isArray(object?.validators) ? object.validators.map((e: any) => ValidatorUpdate.fromJSON(e)) : [],
|
|
2869
|
-
appHash: isSet(object.appHash) ? bytesFromBase64(object.appHash) : new Uint8Array()
|
|
2870
|
-
};
|
|
2871
|
-
},
|
|
2872
|
-
|
|
2873
|
-
toJSON(message: ResponseInitChain): unknown {
|
|
2874
|
-
const obj: any = {};
|
|
2875
|
-
message.consensusParams !== undefined && (obj.consensusParams = message.consensusParams ? ConsensusParams.toJSON(message.consensusParams) : undefined);
|
|
2876
|
-
|
|
2877
|
-
if (message.validators) {
|
|
2878
|
-
obj.validators = message.validators.map(e => e ? ValidatorUpdate.toJSON(e) : undefined);
|
|
2879
|
-
} else {
|
|
2880
|
-
obj.validators = [];
|
|
2881
|
-
}
|
|
2882
|
-
|
|
2883
|
-
message.appHash !== undefined && (obj.appHash = base64FromBytes(message.appHash !== undefined ? message.appHash : new Uint8Array()));
|
|
2884
|
-
return obj;
|
|
2885
|
-
},
|
|
2886
|
-
|
|
2887
|
-
fromPartial(object: Partial<ResponseInitChain>): ResponseInitChain {
|
|
2390
|
+
fromPartial(object: DeepPartial<ResponseInitChain>): ResponseInitChain {
|
|
2888
2391
|
const message = createBaseResponseInitChain();
|
|
2889
2392
|
message.consensusParams = object.consensusParams !== undefined && object.consensusParams !== null ? ConsensusParams.fromPartial(object.consensusParams) : undefined;
|
|
2890
2393
|
message.validators = object.validators?.map(e => ValidatorUpdate.fromPartial(e)) || [];
|
|
@@ -3003,35 +2506,7 @@ export const ResponseQuery = {
|
|
|
3003
2506
|
return message;
|
|
3004
2507
|
},
|
|
3005
2508
|
|
|
3006
|
-
|
|
3007
|
-
return {
|
|
3008
|
-
code: isSet(object.code) ? Number(object.code) : 0,
|
|
3009
|
-
log: isSet(object.log) ? String(object.log) : "",
|
|
3010
|
-
info: isSet(object.info) ? String(object.info) : "",
|
|
3011
|
-
index: isSet(object.index) ? Long.fromValue(object.index) : Long.ZERO,
|
|
3012
|
-
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
|
|
3013
|
-
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(),
|
|
3014
|
-
proofOps: isSet(object.proofOps) ? ProofOps.fromJSON(object.proofOps) : undefined,
|
|
3015
|
-
height: isSet(object.height) ? Long.fromValue(object.height) : Long.ZERO,
|
|
3016
|
-
codespace: isSet(object.codespace) ? String(object.codespace) : ""
|
|
3017
|
-
};
|
|
3018
|
-
},
|
|
3019
|
-
|
|
3020
|
-
toJSON(message: ResponseQuery): unknown {
|
|
3021
|
-
const obj: any = {};
|
|
3022
|
-
message.code !== undefined && (obj.code = Math.round(message.code));
|
|
3023
|
-
message.log !== undefined && (obj.log = message.log);
|
|
3024
|
-
message.info !== undefined && (obj.info = message.info);
|
|
3025
|
-
message.index !== undefined && (obj.index = (message.index || Long.ZERO).toString());
|
|
3026
|
-
message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
|
|
3027
|
-
message.value !== undefined && (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
3028
|
-
message.proofOps !== undefined && (obj.proofOps = message.proofOps ? ProofOps.toJSON(message.proofOps) : undefined);
|
|
3029
|
-
message.height !== undefined && (obj.height = (message.height || Long.ZERO).toString());
|
|
3030
|
-
message.codespace !== undefined && (obj.codespace = message.codespace);
|
|
3031
|
-
return obj;
|
|
3032
|
-
},
|
|
3033
|
-
|
|
3034
|
-
fromPartial(object: Partial<ResponseQuery>): ResponseQuery {
|
|
2509
|
+
fromPartial(object: DeepPartial<ResponseQuery>): ResponseQuery {
|
|
3035
2510
|
const message = createBaseResponseQuery();
|
|
3036
2511
|
message.code = object.code ?? 0;
|
|
3037
2512
|
message.log = object.log ?? "";
|
|
@@ -3084,25 +2559,7 @@ export const ResponseBeginBlock = {
|
|
|
3084
2559
|
return message;
|
|
3085
2560
|
},
|
|
3086
2561
|
|
|
3087
|
-
|
|
3088
|
-
return {
|
|
3089
|
-
events: Array.isArray(object?.events) ? object.events.map((e: any) => Event.fromJSON(e)) : []
|
|
3090
|
-
};
|
|
3091
|
-
},
|
|
3092
|
-
|
|
3093
|
-
toJSON(message: ResponseBeginBlock): unknown {
|
|
3094
|
-
const obj: any = {};
|
|
3095
|
-
|
|
3096
|
-
if (message.events) {
|
|
3097
|
-
obj.events = message.events.map(e => e ? Event.toJSON(e) : undefined);
|
|
3098
|
-
} else {
|
|
3099
|
-
obj.events = [];
|
|
3100
|
-
}
|
|
3101
|
-
|
|
3102
|
-
return obj;
|
|
3103
|
-
},
|
|
3104
|
-
|
|
3105
|
-
fromPartial(object: Partial<ResponseBeginBlock>): ResponseBeginBlock {
|
|
2562
|
+
fromPartial(object: DeepPartial<ResponseBeginBlock>): ResponseBeginBlock {
|
|
3106
2563
|
const message = createBaseResponseBeginBlock();
|
|
3107
2564
|
message.events = object.events?.map(e => Event.fromPartial(e)) || [];
|
|
3108
2565
|
return message;
|
|
@@ -3210,39 +2667,7 @@ export const ResponseCheckTx = {
|
|
|
3210
2667
|
return message;
|
|
3211
2668
|
},
|
|
3212
2669
|
|
|
3213
|
-
|
|
3214
|
-
return {
|
|
3215
|
-
code: isSet(object.code) ? Number(object.code) : 0,
|
|
3216
|
-
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(),
|
|
3217
|
-
log: isSet(object.log) ? String(object.log) : "",
|
|
3218
|
-
info: isSet(object.info) ? String(object.info) : "",
|
|
3219
|
-
gasWanted: isSet(object.gas_wanted) ? Long.fromValue(object.gas_wanted) : Long.ZERO,
|
|
3220
|
-
gasUsed: isSet(object.gas_used) ? Long.fromValue(object.gas_used) : Long.ZERO,
|
|
3221
|
-
events: Array.isArray(object?.events) ? object.events.map((e: any) => Event.fromJSON(e)) : [],
|
|
3222
|
-
codespace: isSet(object.codespace) ? String(object.codespace) : ""
|
|
3223
|
-
};
|
|
3224
|
-
},
|
|
3225
|
-
|
|
3226
|
-
toJSON(message: ResponseCheckTx): unknown {
|
|
3227
|
-
const obj: any = {};
|
|
3228
|
-
message.code !== undefined && (obj.code = Math.round(message.code));
|
|
3229
|
-
message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
|
|
3230
|
-
message.log !== undefined && (obj.log = message.log);
|
|
3231
|
-
message.info !== undefined && (obj.info = message.info);
|
|
3232
|
-
message.gasWanted !== undefined && (obj.gas_wanted = (message.gasWanted || Long.ZERO).toString());
|
|
3233
|
-
message.gasUsed !== undefined && (obj.gas_used = (message.gasUsed || Long.ZERO).toString());
|
|
3234
|
-
|
|
3235
|
-
if (message.events) {
|
|
3236
|
-
obj.events = message.events.map(e => e ? Event.toJSON(e) : undefined);
|
|
3237
|
-
} else {
|
|
3238
|
-
obj.events = [];
|
|
3239
|
-
}
|
|
3240
|
-
|
|
3241
|
-
message.codespace !== undefined && (obj.codespace = message.codespace);
|
|
3242
|
-
return obj;
|
|
3243
|
-
},
|
|
3244
|
-
|
|
3245
|
-
fromPartial(object: Partial<ResponseCheckTx>): ResponseCheckTx {
|
|
2670
|
+
fromPartial(object: DeepPartial<ResponseCheckTx>): ResponseCheckTx {
|
|
3246
2671
|
const message = createBaseResponseCheckTx();
|
|
3247
2672
|
message.code = object.code ?? 0;
|
|
3248
2673
|
message.data = object.data ?? new Uint8Array();
|
|
@@ -3357,39 +2782,7 @@ export const ResponseDeliverTx = {
|
|
|
3357
2782
|
return message;
|
|
3358
2783
|
},
|
|
3359
2784
|
|
|
3360
|
-
|
|
3361
|
-
return {
|
|
3362
|
-
code: isSet(object.code) ? Number(object.code) : 0,
|
|
3363
|
-
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(),
|
|
3364
|
-
log: isSet(object.log) ? String(object.log) : "",
|
|
3365
|
-
info: isSet(object.info) ? String(object.info) : "",
|
|
3366
|
-
gasWanted: isSet(object.gas_wanted) ? Long.fromValue(object.gas_wanted) : Long.ZERO,
|
|
3367
|
-
gasUsed: isSet(object.gas_used) ? Long.fromValue(object.gas_used) : Long.ZERO,
|
|
3368
|
-
events: Array.isArray(object?.events) ? object.events.map((e: any) => Event.fromJSON(e)) : [],
|
|
3369
|
-
codespace: isSet(object.codespace) ? String(object.codespace) : ""
|
|
3370
|
-
};
|
|
3371
|
-
},
|
|
3372
|
-
|
|
3373
|
-
toJSON(message: ResponseDeliverTx): unknown {
|
|
3374
|
-
const obj: any = {};
|
|
3375
|
-
message.code !== undefined && (obj.code = Math.round(message.code));
|
|
3376
|
-
message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
|
|
3377
|
-
message.log !== undefined && (obj.log = message.log);
|
|
3378
|
-
message.info !== undefined && (obj.info = message.info);
|
|
3379
|
-
message.gasWanted !== undefined && (obj.gas_wanted = (message.gasWanted || Long.ZERO).toString());
|
|
3380
|
-
message.gasUsed !== undefined && (obj.gas_used = (message.gasUsed || Long.ZERO).toString());
|
|
3381
|
-
|
|
3382
|
-
if (message.events) {
|
|
3383
|
-
obj.events = message.events.map(e => e ? Event.toJSON(e) : undefined);
|
|
3384
|
-
} else {
|
|
3385
|
-
obj.events = [];
|
|
3386
|
-
}
|
|
3387
|
-
|
|
3388
|
-
message.codespace !== undefined && (obj.codespace = message.codespace);
|
|
3389
|
-
return obj;
|
|
3390
|
-
},
|
|
3391
|
-
|
|
3392
|
-
fromPartial(object: Partial<ResponseDeliverTx>): ResponseDeliverTx {
|
|
2785
|
+
fromPartial(object: DeepPartial<ResponseDeliverTx>): ResponseDeliverTx {
|
|
3393
2786
|
const message = createBaseResponseDeliverTx();
|
|
3394
2787
|
message.code = object.code ?? 0;
|
|
3395
2788
|
message.data = object.data ?? new Uint8Array();
|
|
@@ -3459,35 +2852,7 @@ export const ResponseEndBlock = {
|
|
|
3459
2852
|
return message;
|
|
3460
2853
|
},
|
|
3461
2854
|
|
|
3462
|
-
|
|
3463
|
-
return {
|
|
3464
|
-
validatorUpdates: Array.isArray(object?.validatorUpdates) ? object.validatorUpdates.map((e: any) => ValidatorUpdate.fromJSON(e)) : [],
|
|
3465
|
-
consensusParamUpdates: isSet(object.consensusParamUpdates) ? ConsensusParams.fromJSON(object.consensusParamUpdates) : undefined,
|
|
3466
|
-
events: Array.isArray(object?.events) ? object.events.map((e: any) => Event.fromJSON(e)) : []
|
|
3467
|
-
};
|
|
3468
|
-
},
|
|
3469
|
-
|
|
3470
|
-
toJSON(message: ResponseEndBlock): unknown {
|
|
3471
|
-
const obj: any = {};
|
|
3472
|
-
|
|
3473
|
-
if (message.validatorUpdates) {
|
|
3474
|
-
obj.validatorUpdates = message.validatorUpdates.map(e => e ? ValidatorUpdate.toJSON(e) : undefined);
|
|
3475
|
-
} else {
|
|
3476
|
-
obj.validatorUpdates = [];
|
|
3477
|
-
}
|
|
3478
|
-
|
|
3479
|
-
message.consensusParamUpdates !== undefined && (obj.consensusParamUpdates = message.consensusParamUpdates ? ConsensusParams.toJSON(message.consensusParamUpdates) : undefined);
|
|
3480
|
-
|
|
3481
|
-
if (message.events) {
|
|
3482
|
-
obj.events = message.events.map(e => e ? Event.toJSON(e) : undefined);
|
|
3483
|
-
} else {
|
|
3484
|
-
obj.events = [];
|
|
3485
|
-
}
|
|
3486
|
-
|
|
3487
|
-
return obj;
|
|
3488
|
-
},
|
|
3489
|
-
|
|
3490
|
-
fromPartial(object: Partial<ResponseEndBlock>): ResponseEndBlock {
|
|
2855
|
+
fromPartial(object: DeepPartial<ResponseEndBlock>): ResponseEndBlock {
|
|
3491
2856
|
const message = createBaseResponseEndBlock();
|
|
3492
2857
|
message.validatorUpdates = object.validatorUpdates?.map(e => ValidatorUpdate.fromPartial(e)) || [];
|
|
3493
2858
|
message.consensusParamUpdates = object.consensusParamUpdates !== undefined && object.consensusParamUpdates !== null ? ConsensusParams.fromPartial(object.consensusParamUpdates) : undefined;
|
|
@@ -3543,21 +2908,7 @@ export const ResponseCommit = {
|
|
|
3543
2908
|
return message;
|
|
3544
2909
|
},
|
|
3545
2910
|
|
|
3546
|
-
|
|
3547
|
-
return {
|
|
3548
|
-
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(),
|
|
3549
|
-
retainHeight: isSet(object.retainHeight) ? Long.fromValue(object.retainHeight) : Long.ZERO
|
|
3550
|
-
};
|
|
3551
|
-
},
|
|
3552
|
-
|
|
3553
|
-
toJSON(message: ResponseCommit): unknown {
|
|
3554
|
-
const obj: any = {};
|
|
3555
|
-
message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
|
|
3556
|
-
message.retainHeight !== undefined && (obj.retainHeight = (message.retainHeight || Long.ZERO).toString());
|
|
3557
|
-
return obj;
|
|
3558
|
-
},
|
|
3559
|
-
|
|
3560
|
-
fromPartial(object: Partial<ResponseCommit>): ResponseCommit {
|
|
2911
|
+
fromPartial(object: DeepPartial<ResponseCommit>): ResponseCommit {
|
|
3561
2912
|
const message = createBaseResponseCommit();
|
|
3562
2913
|
message.data = object.data ?? new Uint8Array();
|
|
3563
2914
|
message.retainHeight = object.retainHeight !== undefined && object.retainHeight !== null ? Long.fromValue(object.retainHeight) : Long.ZERO;
|
|
@@ -3603,25 +2954,7 @@ export const ResponseListSnapshots = {
|
|
|
3603
2954
|
return message;
|
|
3604
2955
|
},
|
|
3605
2956
|
|
|
3606
|
-
|
|
3607
|
-
return {
|
|
3608
|
-
snapshots: Array.isArray(object?.snapshots) ? object.snapshots.map((e: any) => Snapshot.fromJSON(e)) : []
|
|
3609
|
-
};
|
|
3610
|
-
},
|
|
3611
|
-
|
|
3612
|
-
toJSON(message: ResponseListSnapshots): unknown {
|
|
3613
|
-
const obj: any = {};
|
|
3614
|
-
|
|
3615
|
-
if (message.snapshots) {
|
|
3616
|
-
obj.snapshots = message.snapshots.map(e => e ? Snapshot.toJSON(e) : undefined);
|
|
3617
|
-
} else {
|
|
3618
|
-
obj.snapshots = [];
|
|
3619
|
-
}
|
|
3620
|
-
|
|
3621
|
-
return obj;
|
|
3622
|
-
},
|
|
3623
|
-
|
|
3624
|
-
fromPartial(object: Partial<ResponseListSnapshots>): ResponseListSnapshots {
|
|
2957
|
+
fromPartial(object: DeepPartial<ResponseListSnapshots>): ResponseListSnapshots {
|
|
3625
2958
|
const message = createBaseResponseListSnapshots();
|
|
3626
2959
|
message.snapshots = object.snapshots?.map(e => Snapshot.fromPartial(e)) || [];
|
|
3627
2960
|
return message;
|
|
@@ -3666,19 +2999,7 @@ export const ResponseOfferSnapshot = {
|
|
|
3666
2999
|
return message;
|
|
3667
3000
|
},
|
|
3668
3001
|
|
|
3669
|
-
|
|
3670
|
-
return {
|
|
3671
|
-
result: isSet(object.result) ? responseOfferSnapshot_ResultFromJSON(object.result) : 0
|
|
3672
|
-
};
|
|
3673
|
-
},
|
|
3674
|
-
|
|
3675
|
-
toJSON(message: ResponseOfferSnapshot): unknown {
|
|
3676
|
-
const obj: any = {};
|
|
3677
|
-
message.result !== undefined && (obj.result = responseOfferSnapshot_ResultToJSON(message.result));
|
|
3678
|
-
return obj;
|
|
3679
|
-
},
|
|
3680
|
-
|
|
3681
|
-
fromPartial(object: Partial<ResponseOfferSnapshot>): ResponseOfferSnapshot {
|
|
3002
|
+
fromPartial(object: DeepPartial<ResponseOfferSnapshot>): ResponseOfferSnapshot {
|
|
3682
3003
|
const message = createBaseResponseOfferSnapshot();
|
|
3683
3004
|
message.result = object.result ?? 0;
|
|
3684
3005
|
return message;
|
|
@@ -3723,19 +3044,7 @@ export const ResponseLoadSnapshotChunk = {
|
|
|
3723
3044
|
return message;
|
|
3724
3045
|
},
|
|
3725
3046
|
|
|
3726
|
-
|
|
3727
|
-
return {
|
|
3728
|
-
chunk: isSet(object.chunk) ? bytesFromBase64(object.chunk) : new Uint8Array()
|
|
3729
|
-
};
|
|
3730
|
-
},
|
|
3731
|
-
|
|
3732
|
-
toJSON(message: ResponseLoadSnapshotChunk): unknown {
|
|
3733
|
-
const obj: any = {};
|
|
3734
|
-
message.chunk !== undefined && (obj.chunk = base64FromBytes(message.chunk !== undefined ? message.chunk : new Uint8Array()));
|
|
3735
|
-
return obj;
|
|
3736
|
-
},
|
|
3737
|
-
|
|
3738
|
-
fromPartial(object: Partial<ResponseLoadSnapshotChunk>): ResponseLoadSnapshotChunk {
|
|
3047
|
+
fromPartial(object: DeepPartial<ResponseLoadSnapshotChunk>): ResponseLoadSnapshotChunk {
|
|
3739
3048
|
const message = createBaseResponseLoadSnapshotChunk();
|
|
3740
3049
|
message.chunk = object.chunk ?? new Uint8Array();
|
|
3741
3050
|
return message;
|
|
@@ -3811,34 +3120,7 @@ export const ResponseApplySnapshotChunk = {
|
|
|
3811
3120
|
return message;
|
|
3812
3121
|
},
|
|
3813
3122
|
|
|
3814
|
-
|
|
3815
|
-
return {
|
|
3816
|
-
result: isSet(object.result) ? responseApplySnapshotChunk_ResultFromJSON(object.result) : 0,
|
|
3817
|
-
refetchChunks: Array.isArray(object?.refetchChunks) ? object.refetchChunks.map((e: any) => Number(e)) : [],
|
|
3818
|
-
rejectSenders: Array.isArray(object?.rejectSenders) ? object.rejectSenders.map((e: any) => String(e)) : []
|
|
3819
|
-
};
|
|
3820
|
-
},
|
|
3821
|
-
|
|
3822
|
-
toJSON(message: ResponseApplySnapshotChunk): unknown {
|
|
3823
|
-
const obj: any = {};
|
|
3824
|
-
message.result !== undefined && (obj.result = responseApplySnapshotChunk_ResultToJSON(message.result));
|
|
3825
|
-
|
|
3826
|
-
if (message.refetchChunks) {
|
|
3827
|
-
obj.refetchChunks = message.refetchChunks.map(e => Math.round(e));
|
|
3828
|
-
} else {
|
|
3829
|
-
obj.refetchChunks = [];
|
|
3830
|
-
}
|
|
3831
|
-
|
|
3832
|
-
if (message.rejectSenders) {
|
|
3833
|
-
obj.rejectSenders = message.rejectSenders.map(e => e);
|
|
3834
|
-
} else {
|
|
3835
|
-
obj.rejectSenders = [];
|
|
3836
|
-
}
|
|
3837
|
-
|
|
3838
|
-
return obj;
|
|
3839
|
-
},
|
|
3840
|
-
|
|
3841
|
-
fromPartial(object: Partial<ResponseApplySnapshotChunk>): ResponseApplySnapshotChunk {
|
|
3123
|
+
fromPartial(object: DeepPartial<ResponseApplySnapshotChunk>): ResponseApplySnapshotChunk {
|
|
3842
3124
|
const message = createBaseResponseApplySnapshotChunk();
|
|
3843
3125
|
message.result = object.result ?? 0;
|
|
3844
3126
|
message.refetchChunks = object.refetchChunks?.map(e => e) || [];
|
|
@@ -3912,25 +3194,7 @@ export const ConsensusParams = {
|
|
|
3912
3194
|
return message;
|
|
3913
3195
|
},
|
|
3914
3196
|
|
|
3915
|
-
|
|
3916
|
-
return {
|
|
3917
|
-
block: isSet(object.block) ? BlockParams.fromJSON(object.block) : undefined,
|
|
3918
|
-
evidence: isSet(object.evidence) ? EvidenceParams.fromJSON(object.evidence) : undefined,
|
|
3919
|
-
validator: isSet(object.validator) ? ValidatorParams.fromJSON(object.validator) : undefined,
|
|
3920
|
-
version: isSet(object.version) ? VersionParams.fromJSON(object.version) : undefined
|
|
3921
|
-
};
|
|
3922
|
-
},
|
|
3923
|
-
|
|
3924
|
-
toJSON(message: ConsensusParams): unknown {
|
|
3925
|
-
const obj: any = {};
|
|
3926
|
-
message.block !== undefined && (obj.block = message.block ? BlockParams.toJSON(message.block) : undefined);
|
|
3927
|
-
message.evidence !== undefined && (obj.evidence = message.evidence ? EvidenceParams.toJSON(message.evidence) : undefined);
|
|
3928
|
-
message.validator !== undefined && (obj.validator = message.validator ? ValidatorParams.toJSON(message.validator) : undefined);
|
|
3929
|
-
message.version !== undefined && (obj.version = message.version ? VersionParams.toJSON(message.version) : undefined);
|
|
3930
|
-
return obj;
|
|
3931
|
-
},
|
|
3932
|
-
|
|
3933
|
-
fromPartial(object: Partial<ConsensusParams>): ConsensusParams {
|
|
3197
|
+
fromPartial(object: DeepPartial<ConsensusParams>): ConsensusParams {
|
|
3934
3198
|
const message = createBaseConsensusParams();
|
|
3935
3199
|
message.block = object.block !== undefined && object.block !== null ? BlockParams.fromPartial(object.block) : undefined;
|
|
3936
3200
|
message.evidence = object.evidence !== undefined && object.evidence !== null ? EvidenceParams.fromPartial(object.evidence) : undefined;
|
|
@@ -3987,21 +3251,7 @@ export const BlockParams = {
|
|
|
3987
3251
|
return message;
|
|
3988
3252
|
},
|
|
3989
3253
|
|
|
3990
|
-
|
|
3991
|
-
return {
|
|
3992
|
-
maxBytes: isSet(object.maxBytes) ? Long.fromValue(object.maxBytes) : Long.ZERO,
|
|
3993
|
-
maxGas: isSet(object.maxGas) ? Long.fromValue(object.maxGas) : Long.ZERO
|
|
3994
|
-
};
|
|
3995
|
-
},
|
|
3996
|
-
|
|
3997
|
-
toJSON(message: BlockParams): unknown {
|
|
3998
|
-
const obj: any = {};
|
|
3999
|
-
message.maxBytes !== undefined && (obj.maxBytes = (message.maxBytes || Long.ZERO).toString());
|
|
4000
|
-
message.maxGas !== undefined && (obj.maxGas = (message.maxGas || Long.ZERO).toString());
|
|
4001
|
-
return obj;
|
|
4002
|
-
},
|
|
4003
|
-
|
|
4004
|
-
fromPartial(object: Partial<BlockParams>): BlockParams {
|
|
3254
|
+
fromPartial(object: DeepPartial<BlockParams>): BlockParams {
|
|
4005
3255
|
const message = createBaseBlockParams();
|
|
4006
3256
|
message.maxBytes = object.maxBytes !== undefined && object.maxBytes !== null ? Long.fromValue(object.maxBytes) : Long.ZERO;
|
|
4007
3257
|
message.maxGas = object.maxGas !== undefined && object.maxGas !== null ? Long.fromValue(object.maxGas) : Long.ZERO;
|
|
@@ -4056,27 +3306,7 @@ export const LastCommitInfo = {
|
|
|
4056
3306
|
return message;
|
|
4057
3307
|
},
|
|
4058
3308
|
|
|
4059
|
-
|
|
4060
|
-
return {
|
|
4061
|
-
round: isSet(object.round) ? Number(object.round) : 0,
|
|
4062
|
-
votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => VoteInfo.fromJSON(e)) : []
|
|
4063
|
-
};
|
|
4064
|
-
},
|
|
4065
|
-
|
|
4066
|
-
toJSON(message: LastCommitInfo): unknown {
|
|
4067
|
-
const obj: any = {};
|
|
4068
|
-
message.round !== undefined && (obj.round = Math.round(message.round));
|
|
4069
|
-
|
|
4070
|
-
if (message.votes) {
|
|
4071
|
-
obj.votes = message.votes.map(e => e ? VoteInfo.toJSON(e) : undefined);
|
|
4072
|
-
} else {
|
|
4073
|
-
obj.votes = [];
|
|
4074
|
-
}
|
|
4075
|
-
|
|
4076
|
-
return obj;
|
|
4077
|
-
},
|
|
4078
|
-
|
|
4079
|
-
fromPartial(object: Partial<LastCommitInfo>): LastCommitInfo {
|
|
3309
|
+
fromPartial(object: DeepPartial<LastCommitInfo>): LastCommitInfo {
|
|
4080
3310
|
const message = createBaseLastCommitInfo();
|
|
4081
3311
|
message.round = object.round ?? 0;
|
|
4082
3312
|
message.votes = object.votes?.map(e => VoteInfo.fromPartial(e)) || [];
|
|
@@ -4131,27 +3361,7 @@ export const Event = {
|
|
|
4131
3361
|
return message;
|
|
4132
3362
|
},
|
|
4133
3363
|
|
|
4134
|
-
|
|
4135
|
-
return {
|
|
4136
|
-
type: isSet(object.type) ? String(object.type) : "",
|
|
4137
|
-
attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => EventAttribute.fromJSON(e)) : []
|
|
4138
|
-
};
|
|
4139
|
-
},
|
|
4140
|
-
|
|
4141
|
-
toJSON(message: Event): unknown {
|
|
4142
|
-
const obj: any = {};
|
|
4143
|
-
message.type !== undefined && (obj.type = message.type);
|
|
4144
|
-
|
|
4145
|
-
if (message.attributes) {
|
|
4146
|
-
obj.attributes = message.attributes.map(e => e ? EventAttribute.toJSON(e) : undefined);
|
|
4147
|
-
} else {
|
|
4148
|
-
obj.attributes = [];
|
|
4149
|
-
}
|
|
4150
|
-
|
|
4151
|
-
return obj;
|
|
4152
|
-
},
|
|
4153
|
-
|
|
4154
|
-
fromPartial(object: Partial<Event>): Event {
|
|
3364
|
+
fromPartial(object: DeepPartial<Event>): Event {
|
|
4155
3365
|
const message = createBaseEvent();
|
|
4156
3366
|
message.type = object.type ?? "";
|
|
4157
3367
|
message.attributes = object.attributes?.map(e => EventAttribute.fromPartial(e)) || [];
|
|
@@ -4215,23 +3425,7 @@ export const EventAttribute = {
|
|
|
4215
3425
|
return message;
|
|
4216
3426
|
},
|
|
4217
3427
|
|
|
4218
|
-
|
|
4219
|
-
return {
|
|
4220
|
-
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
|
|
4221
|
-
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(),
|
|
4222
|
-
index: isSet(object.index) ? Boolean(object.index) : false
|
|
4223
|
-
};
|
|
4224
|
-
},
|
|
4225
|
-
|
|
4226
|
-
toJSON(message: EventAttribute): unknown {
|
|
4227
|
-
const obj: any = {};
|
|
4228
|
-
message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
|
|
4229
|
-
message.value !== undefined && (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
4230
|
-
message.index !== undefined && (obj.index = message.index);
|
|
4231
|
-
return obj;
|
|
4232
|
-
},
|
|
4233
|
-
|
|
4234
|
-
fromPartial(object: Partial<EventAttribute>): EventAttribute {
|
|
3428
|
+
fromPartial(object: DeepPartial<EventAttribute>): EventAttribute {
|
|
4235
3429
|
const message = createBaseEventAttribute();
|
|
4236
3430
|
message.key = object.key ?? new Uint8Array();
|
|
4237
3431
|
message.value = object.value ?? new Uint8Array();
|
|
@@ -4305,25 +3499,7 @@ export const TxResult = {
|
|
|
4305
3499
|
return message;
|
|
4306
3500
|
},
|
|
4307
3501
|
|
|
4308
|
-
|
|
4309
|
-
return {
|
|
4310
|
-
height: isSet(object.height) ? Long.fromValue(object.height) : Long.ZERO,
|
|
4311
|
-
index: isSet(object.index) ? Number(object.index) : 0,
|
|
4312
|
-
tx: isSet(object.tx) ? bytesFromBase64(object.tx) : new Uint8Array(),
|
|
4313
|
-
result: isSet(object.result) ? ResponseDeliverTx.fromJSON(object.result) : undefined
|
|
4314
|
-
};
|
|
4315
|
-
},
|
|
4316
|
-
|
|
4317
|
-
toJSON(message: TxResult): unknown {
|
|
4318
|
-
const obj: any = {};
|
|
4319
|
-
message.height !== undefined && (obj.height = (message.height || Long.ZERO).toString());
|
|
4320
|
-
message.index !== undefined && (obj.index = Math.round(message.index));
|
|
4321
|
-
message.tx !== undefined && (obj.tx = base64FromBytes(message.tx !== undefined ? message.tx : new Uint8Array()));
|
|
4322
|
-
message.result !== undefined && (obj.result = message.result ? ResponseDeliverTx.toJSON(message.result) : undefined);
|
|
4323
|
-
return obj;
|
|
4324
|
-
},
|
|
4325
|
-
|
|
4326
|
-
fromPartial(object: Partial<TxResult>): TxResult {
|
|
3502
|
+
fromPartial(object: DeepPartial<TxResult>): TxResult {
|
|
4327
3503
|
const message = createBaseTxResult();
|
|
4328
3504
|
message.height = object.height !== undefined && object.height !== null ? Long.fromValue(object.height) : Long.ZERO;
|
|
4329
3505
|
message.index = object.index ?? 0;
|
|
@@ -4380,21 +3556,7 @@ export const Validator = {
|
|
|
4380
3556
|
return message;
|
|
4381
3557
|
},
|
|
4382
3558
|
|
|
4383
|
-
|
|
4384
|
-
return {
|
|
4385
|
-
address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array(),
|
|
4386
|
-
power: isSet(object.power) ? Long.fromValue(object.power) : Long.ZERO
|
|
4387
|
-
};
|
|
4388
|
-
},
|
|
4389
|
-
|
|
4390
|
-
toJSON(message: Validator): unknown {
|
|
4391
|
-
const obj: any = {};
|
|
4392
|
-
message.address !== undefined && (obj.address = base64FromBytes(message.address !== undefined ? message.address : new Uint8Array()));
|
|
4393
|
-
message.power !== undefined && (obj.power = (message.power || Long.ZERO).toString());
|
|
4394
|
-
return obj;
|
|
4395
|
-
},
|
|
4396
|
-
|
|
4397
|
-
fromPartial(object: Partial<Validator>): Validator {
|
|
3559
|
+
fromPartial(object: DeepPartial<Validator>): Validator {
|
|
4398
3560
|
const message = createBaseValidator();
|
|
4399
3561
|
message.address = object.address ?? new Uint8Array();
|
|
4400
3562
|
message.power = object.power !== undefined && object.power !== null ? Long.fromValue(object.power) : Long.ZERO;
|
|
@@ -4449,21 +3611,7 @@ export const ValidatorUpdate = {
|
|
|
4449
3611
|
return message;
|
|
4450
3612
|
},
|
|
4451
3613
|
|
|
4452
|
-
|
|
4453
|
-
return {
|
|
4454
|
-
pubKey: isSet(object.pubKey) ? PublicKey.fromJSON(object.pubKey) : undefined,
|
|
4455
|
-
power: isSet(object.power) ? Long.fromValue(object.power) : Long.ZERO
|
|
4456
|
-
};
|
|
4457
|
-
},
|
|
4458
|
-
|
|
4459
|
-
toJSON(message: ValidatorUpdate): unknown {
|
|
4460
|
-
const obj: any = {};
|
|
4461
|
-
message.pubKey !== undefined && (obj.pubKey = message.pubKey ? PublicKey.toJSON(message.pubKey) : undefined);
|
|
4462
|
-
message.power !== undefined && (obj.power = (message.power || Long.ZERO).toString());
|
|
4463
|
-
return obj;
|
|
4464
|
-
},
|
|
4465
|
-
|
|
4466
|
-
fromPartial(object: Partial<ValidatorUpdate>): ValidatorUpdate {
|
|
3614
|
+
fromPartial(object: DeepPartial<ValidatorUpdate>): ValidatorUpdate {
|
|
4467
3615
|
const message = createBaseValidatorUpdate();
|
|
4468
3616
|
message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? PublicKey.fromPartial(object.pubKey) : undefined;
|
|
4469
3617
|
message.power = object.power !== undefined && object.power !== null ? Long.fromValue(object.power) : Long.ZERO;
|
|
@@ -4518,21 +3666,7 @@ export const VoteInfo = {
|
|
|
4518
3666
|
return message;
|
|
4519
3667
|
},
|
|
4520
3668
|
|
|
4521
|
-
|
|
4522
|
-
return {
|
|
4523
|
-
validator: isSet(object.validator) ? Validator.fromJSON(object.validator) : undefined,
|
|
4524
|
-
signedLastBlock: isSet(object.signedLastBlock) ? Boolean(object.signedLastBlock) : false
|
|
4525
|
-
};
|
|
4526
|
-
},
|
|
4527
|
-
|
|
4528
|
-
toJSON(message: VoteInfo): unknown {
|
|
4529
|
-
const obj: any = {};
|
|
4530
|
-
message.validator !== undefined && (obj.validator = message.validator ? Validator.toJSON(message.validator) : undefined);
|
|
4531
|
-
message.signedLastBlock !== undefined && (obj.signedLastBlock = message.signedLastBlock);
|
|
4532
|
-
return obj;
|
|
4533
|
-
},
|
|
4534
|
-
|
|
4535
|
-
fromPartial(object: Partial<VoteInfo>): VoteInfo {
|
|
3669
|
+
fromPartial(object: DeepPartial<VoteInfo>): VoteInfo {
|
|
4536
3670
|
const message = createBaseVoteInfo();
|
|
4537
3671
|
message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined;
|
|
4538
3672
|
message.signedLastBlock = object.signedLastBlock ?? false;
|
|
@@ -4566,7 +3700,7 @@ export const Evidence = {
|
|
|
4566
3700
|
}
|
|
4567
3701
|
|
|
4568
3702
|
if (message.time !== undefined) {
|
|
4569
|
-
Timestamp.encode(message.time, writer.uint32(34).fork()).ldelim();
|
|
3703
|
+
Timestamp.encode(toTimestamp(message.time), writer.uint32(34).fork()).ldelim();
|
|
4570
3704
|
}
|
|
4571
3705
|
|
|
4572
3706
|
if (!message.totalVotingPower.isZero()) {
|
|
@@ -4598,7 +3732,7 @@ export const Evidence = {
|
|
|
4598
3732
|
break;
|
|
4599
3733
|
|
|
4600
3734
|
case 4:
|
|
4601
|
-
message.time = Timestamp.decode(reader, reader.uint32());
|
|
3735
|
+
message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
4602
3736
|
break;
|
|
4603
3737
|
|
|
4604
3738
|
case 5:
|
|
@@ -4614,32 +3748,12 @@ export const Evidence = {
|
|
|
4614
3748
|
return message;
|
|
4615
3749
|
},
|
|
4616
3750
|
|
|
4617
|
-
|
|
4618
|
-
return {
|
|
4619
|
-
type: isSet(object.type) ? evidenceTypeFromJSON(object.type) : 0,
|
|
4620
|
-
validator: isSet(object.validator) ? Validator.fromJSON(object.validator) : undefined,
|
|
4621
|
-
height: isSet(object.height) ? Long.fromValue(object.height) : Long.ZERO,
|
|
4622
|
-
time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
|
|
4623
|
-
totalVotingPower: isSet(object.totalVotingPower) ? Long.fromValue(object.totalVotingPower) : Long.ZERO
|
|
4624
|
-
};
|
|
4625
|
-
},
|
|
4626
|
-
|
|
4627
|
-
toJSON(message: Evidence): unknown {
|
|
4628
|
-
const obj: any = {};
|
|
4629
|
-
message.type !== undefined && (obj.type = evidenceTypeToJSON(message.type));
|
|
4630
|
-
message.validator !== undefined && (obj.validator = message.validator ? Validator.toJSON(message.validator) : undefined);
|
|
4631
|
-
message.height !== undefined && (obj.height = (message.height || Long.ZERO).toString());
|
|
4632
|
-
message.time !== undefined && (obj.time = fromTimestamp(message.time).toISOString());
|
|
4633
|
-
message.totalVotingPower !== undefined && (obj.totalVotingPower = (message.totalVotingPower || Long.ZERO).toString());
|
|
4634
|
-
return obj;
|
|
4635
|
-
},
|
|
4636
|
-
|
|
4637
|
-
fromPartial(object: Partial<Evidence>): Evidence {
|
|
3751
|
+
fromPartial(object: DeepPartial<Evidence>): Evidence {
|
|
4638
3752
|
const message = createBaseEvidence();
|
|
4639
3753
|
message.type = object.type ?? 0;
|
|
4640
3754
|
message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined;
|
|
4641
3755
|
message.height = object.height !== undefined && object.height !== null ? Long.fromValue(object.height) : Long.ZERO;
|
|
4642
|
-
message.time = object.time
|
|
3756
|
+
message.time = object.time ?? undefined;
|
|
4643
3757
|
message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? Long.fromValue(object.totalVotingPower) : Long.ZERO;
|
|
4644
3758
|
return message;
|
|
4645
3759
|
}
|
|
@@ -4719,27 +3833,7 @@ export const Snapshot = {
|
|
|
4719
3833
|
return message;
|
|
4720
3834
|
},
|
|
4721
3835
|
|
|
4722
|
-
|
|
4723
|
-
return {
|
|
4724
|
-
height: isSet(object.height) ? Long.fromValue(object.height) : Long.UZERO,
|
|
4725
|
-
format: isSet(object.format) ? Number(object.format) : 0,
|
|
4726
|
-
chunks: isSet(object.chunks) ? Number(object.chunks) : 0,
|
|
4727
|
-
hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(),
|
|
4728
|
-
metadata: isSet(object.metadata) ? bytesFromBase64(object.metadata) : new Uint8Array()
|
|
4729
|
-
};
|
|
4730
|
-
},
|
|
4731
|
-
|
|
4732
|
-
toJSON(message: Snapshot): unknown {
|
|
4733
|
-
const obj: any = {};
|
|
4734
|
-
message.height !== undefined && (obj.height = (message.height || Long.UZERO).toString());
|
|
4735
|
-
message.format !== undefined && (obj.format = Math.round(message.format));
|
|
4736
|
-
message.chunks !== undefined && (obj.chunks = Math.round(message.chunks));
|
|
4737
|
-
message.hash !== undefined && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array()));
|
|
4738
|
-
message.metadata !== undefined && (obj.metadata = base64FromBytes(message.metadata !== undefined ? message.metadata : new Uint8Array()));
|
|
4739
|
-
return obj;
|
|
4740
|
-
},
|
|
4741
|
-
|
|
4742
|
-
fromPartial(object: Partial<Snapshot>): Snapshot {
|
|
3836
|
+
fromPartial(object: DeepPartial<Snapshot>): Snapshot {
|
|
4743
3837
|
const message = createBaseSnapshot();
|
|
4744
3838
|
message.height = object.height !== undefined && object.height !== null ? Long.fromValue(object.height) : Long.UZERO;
|
|
4745
3839
|
message.format = object.format ?? 0;
|