@xpla/xpla-react 1.7.0-beta.0
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/CHANGELOG.md +8 -0
- package/package.json +47 -0
- package/src/amino/amino.ts +1 -0
- package/src/binary.ts +534 -0
- package/src/cosmos/app/runtime/v1alpha1/module.ts +423 -0
- package/src/cosmos/app/runtime/v2/module.ts +589 -0
- package/src/cosmos/app/v1alpha1/config.ts +422 -0
- package/src/cosmos/app/v1alpha1/module.ts +461 -0
- package/src/cosmos/app/v1alpha1/query.rpc.func.ts +14 -0
- package/src/cosmos/app/v1alpha1/query.ts +177 -0
- package/src/cosmos/auth/module/v1/module.ts +253 -0
- package/src/cosmos/auth/v1beta1/accounts.ts +226 -0
- package/src/cosmos/auth/v1beta1/auth.ts +550 -0
- package/src/cosmos/auth/v1beta1/genesis.ts +119 -0
- package/src/cosmos/auth/v1beta1/query.rpc.func.ts +113 -0
- package/src/cosmos/auth/v1beta1/query.ts +2034 -0
- package/src/cosmos/auth/v1beta1/tx.registry.ts +29 -0
- package/src/cosmos/auth/v1beta1/tx.rpc.func.ts +13 -0
- package/src/cosmos/auth/v1beta1/tx.ts +219 -0
- package/src/cosmos/authz/module/v1/module.ts +80 -0
- package/src/cosmos/authz/v1beta1/authz.ts +481 -0
- package/src/cosmos/authz/v1beta1/event.ts +259 -0
- package/src/cosmos/authz/v1beta1/genesis.ts +100 -0
- package/src/cosmos/authz/v1beta1/query.rpc.func.ts +36 -0
- package/src/cosmos/authz/v1beta1/query.ts +707 -0
- package/src/cosmos/authz/v1beta1/tx.registry.ts +65 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +31 -0
- package/src/cosmos/authz/v1beta1/tx.ts +647 -0
- package/src/cosmos/autocli/v1/options.ts +1145 -0
- package/src/cosmos/autocli/v1/query.rpc.func.ts +14 -0
- package/src/cosmos/autocli/v1/query.ts +288 -0
- package/src/cosmos/bank/module/v1/module.ts +153 -0
- package/src/cosmos/bank/v1beta1/authz.ts +138 -0
- package/src/cosmos/bank/v1beta1/bank.ts +974 -0
- package/src/cosmos/bank/v1beta1/genesis.ts +307 -0
- package/src/cosmos/bank/v1beta1/query.rpc.func.ts +146 -0
- package/src/cosmos/bank/v1beta1/query.ts +3027 -0
- package/src/cosmos/bank/v1beta1/tx.registry.ts +83 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +40 -0
- package/src/cosmos/bank/v1beta1/tx.ts +861 -0
- package/src/cosmos/base/abci/v1beta1/abci.ts +1698 -0
- package/src/cosmos/base/grpc/v2/service.rpc.func.ts +25 -0
- package/src/cosmos/base/grpc/v2/service.ts +473 -0
- package/src/cosmos/base/node/v1beta1/query.rpc.func.ts +25 -0
- package/src/cosmos/base/node/v1beta1/query.ts +454 -0
- package/src/cosmos/base/query/v1beta1/pagination.ts +361 -0
- package/src/cosmos/base/reflection/v1beta1/reflection.rpc.func.ts +25 -0
- package/src/cosmos/base/reflection/v1beta1/reflection.ts +382 -0
- package/src/cosmos/base/reflection/v2alpha1/reflection.rpc.func.ts +69 -0
- package/src/cosmos/base/reflection/v2alpha1/reflection.ts +2727 -0
- package/src/cosmos/base/tendermint/v1beta1/query.rpc.func.ts +80 -0
- package/src/cosmos/base/tendermint/v1beta1/query.ts +2302 -0
- package/src/cosmos/base/tendermint/v1beta1/types.ts +455 -0
- package/src/cosmos/base/v1beta1/coin.ts +439 -0
- package/src/cosmos/circuit/module/v1/module.ts +99 -0
- package/src/cosmos/circuit/v1/query.rpc.func.ts +36 -0
- package/src/cosmos/circuit/v1/query.ts +574 -0
- package/src/cosmos/circuit/v1/tx.registry.ts +65 -0
- package/src/cosmos/circuit/v1/tx.rpc.func.ts +31 -0
- package/src/cosmos/circuit/v1/tx.ts +676 -0
- package/src/cosmos/circuit/v1/types.ts +413 -0
- package/src/cosmos/consensus/module/v1/module.ts +99 -0
- package/src/cosmos/consensus/v1/query.rpc.func.ts +14 -0
- package/src/cosmos/consensus/v1/query.ts +185 -0
- package/src/cosmos/consensus/v1/tx.registry.ts +29 -0
- package/src/cosmos/consensus/v1/tx.rpc.func.ts +13 -0
- package/src/cosmos/consensus/v1/tx.ts +255 -0
- package/src/cosmos/crisis/module/v1/module.ts +115 -0
- package/src/cosmos/crisis/v1beta1/genesis.ts +106 -0
- package/src/cosmos/crisis/v1beta1/tx.registry.ts +47 -0
- package/src/cosmos/crisis/v1beta1/tx.rpc.func.ts +22 -0
- package/src/cosmos/crisis/v1beta1/tx.ts +416 -0
- package/src/cosmos/crypto/ed25519/keys.ts +209 -0
- package/src/cosmos/crypto/hd/v1/hd.ts +169 -0
- package/src/cosmos/crypto/keyring/v1/record.ts +529 -0
- package/src/cosmos/crypto/multisig/keys.ts +122 -0
- package/src/cosmos/crypto/multisig/v1beta1/multisig.ts +225 -0
- package/src/cosmos/crypto/secp256k1/keys.ts +203 -0
- package/src/cosmos/crypto/secp256r1/keys.ts +201 -0
- package/src/cosmos/distribution/module/v1/module.ts +113 -0
- package/src/cosmos/distribution/v1beta1/distribution.ts +1494 -0
- package/src/cosmos/distribution/v1beta1/genesis.ts +1129 -0
- package/src/cosmos/distribution/v1beta1/query.rpc.func.ts +113 -0
- package/src/cosmos/distribution/v1beta1/query.ts +2126 -0
- package/src/cosmos/distribution/v1beta1/tx.registry.ts +137 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +67 -0
- package/src/cosmos/distribution/v1beta1/tx.ts +1478 -0
- package/src/cosmos/evidence/module/v1/module.ts +80 -0
- package/src/cosmos/evidence/v1beta1/evidence.ts +154 -0
- package/src/cosmos/evidence/v1beta1/genesis.ts +102 -0
- package/src/cosmos/evidence/v1beta1/query.rpc.func.ts +25 -0
- package/src/cosmos/evidence/v1beta1/query.ts +451 -0
- package/src/cosmos/evidence/v1beta1/tx.registry.ts +29 -0
- package/src/cosmos/evidence/v1beta1/tx.rpc.func.ts +13 -0
- package/src/cosmos/evidence/v1beta1/tx.ts +221 -0
- package/src/cosmos/feegrant/module/v1/module.ts +80 -0
- package/src/cosmos/feegrant/v1beta1/feegrant.ts +573 -0
- package/src/cosmos/feegrant/v1beta1/genesis.ts +100 -0
- package/src/cosmos/feegrant/v1beta1/query.rpc.func.ts +36 -0
- package/src/cosmos/feegrant/v1beta1/query.ts +677 -0
- package/src/cosmos/feegrant/v1beta1/tx.registry.ts +65 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +31 -0
- package/src/cosmos/feegrant/v1beta1/tx.ts +597 -0
- package/src/cosmos/genutil/module/v1/module.ts +80 -0
- package/src/cosmos/genutil/v1beta1/genesis.ts +101 -0
- package/src/cosmos/gov/module/v1/module.ts +121 -0
- package/src/cosmos/gov/v1/genesis.ts +280 -0
- package/src/cosmos/gov/v1/gov.ts +1843 -0
- package/src/cosmos/gov/v1/query.rpc.func.ts +102 -0
- package/src/cosmos/gov/v1/query.ts +1970 -0
- package/src/cosmos/gov/v1/tx.registry.ts +137 -0
- package/src/cosmos/gov/v1/tx.rpc.func.ts +67 -0
- package/src/cosmos/gov/v1/tx.ts +1657 -0
- package/src/cosmos/gov/v1beta1/genesis.ts +202 -0
- package/src/cosmos/gov/v1beta1/gov.ts +1425 -0
- package/src/cosmos/gov/v1beta1/query.rpc.func.ts +91 -0
- package/src/cosmos/gov/v1beta1/query.ts +1749 -0
- package/src/cosmos/gov/v1beta1/tx.registry.ts +83 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +40 -0
- package/src/cosmos/gov/v1beta1/tx.ts +881 -0
- package/src/cosmos/group/module/v1/module.ts +128 -0
- package/src/cosmos/group/v1/events.ts +1044 -0
- package/src/cosmos/group/v1/genesis.ts +240 -0
- package/src/cosmos/group/v1/query.rpc.func.ts +157 -0
- package/src/cosmos/group/v1/query.ts +3015 -0
- package/src/cosmos/group/v1/tx.registry.ts +263 -0
- package/src/cosmos/group/v1/tx.rpc.func.ts +130 -0
- package/src/cosmos/group/v1/tx.ts +3207 -0
- package/src/cosmos/group/v1/types.ts +2081 -0
- package/src/cosmos/ics23/v1/proofs.ts +2060 -0
- package/src/cosmos/mint/module/v1/module.ts +113 -0
- package/src/cosmos/mint/v1beta1/genesis.ts +116 -0
- package/src/cosmos/mint/v1beta1/mint.ts +291 -0
- package/src/cosmos/mint/v1beta1/query.rpc.func.ts +36 -0
- package/src/cosmos/mint/v1beta1/query.ts +541 -0
- package/src/cosmos/mint/v1beta1/tx.registry.ts +29 -0
- package/src/cosmos/mint/v1beta1/tx.rpc.func.ts +13 -0
- package/src/cosmos/mint/v1beta1/tx.ts +219 -0
- package/src/cosmos/msg/textual/v1/textual.ts +1 -0
- package/src/cosmos/msg/v1/msg.ts +1 -0
- package/src/cosmos/nft/module/v1/module.ts +80 -0
- package/src/cosmos/nft/v1beta1/event.ts +403 -0
- package/src/cosmos/nft/v1beta1/genesis.ts +234 -0
- package/src/cosmos/nft/v1beta1/nft.ts +356 -0
- package/src/cosmos/nft/v1beta1/query.rpc.func.ts +80 -0
- package/src/cosmos/nft/v1beta1/query.ts +1465 -0
- package/src/cosmos/nft/v1beta1/tx.registry.ts +29 -0
- package/src/cosmos/nft/v1beta1/tx.rpc.func.ts +13 -0
- package/src/cosmos/nft/v1beta1/tx.ts +224 -0
- package/src/cosmos/orm/module/v1alpha1/module.ts +88 -0
- package/src/cosmos/orm/query/v1alpha1/query.rpc.func.ts +25 -0
- package/src/cosmos/orm/query/v1alpha1/query.ts +993 -0
- package/src/cosmos/orm/v1/orm.ts +589 -0
- package/src/cosmos/orm/v1alpha1/schema.ts +325 -0
- package/src/cosmos/params/module/v1/module.ts +80 -0
- package/src/cosmos/params/v1beta1/params.ts +255 -0
- package/src/cosmos/params/v1beta1/query.rpc.func.ts +25 -0
- package/src/cosmos/params/v1beta1/query.ts +525 -0
- package/src/cosmos/query/v1/query.ts +1 -0
- package/src/cosmos/reflection/v1/reflection.rpc.func.ts +14 -0
- package/src/cosmos/reflection/v1/reflection.ts +179 -0
- package/src/cosmos/slashing/module/v1/module.ts +99 -0
- package/src/cosmos/slashing/v1beta1/genesis.ts +492 -0
- package/src/cosmos/slashing/v1beta1/query.rpc.func.ts +36 -0
- package/src/cosmos/slashing/v1beta1/query.ts +598 -0
- package/src/cosmos/slashing/v1beta1/slashing.ts +357 -0
- package/src/cosmos/slashing/v1beta1/tx.registry.ts +47 -0
- package/src/cosmos/slashing/v1beta1/tx.rpc.func.ts +22 -0
- package/src/cosmos/slashing/v1beta1/tx.ts +390 -0
- package/src/cosmos/staking/module/v1/module.ts +157 -0
- package/src/cosmos/staking/v1beta1/authz.ts +323 -0
- package/src/cosmos/staking/v1beta1/genesis.ts +346 -0
- package/src/cosmos/staking/v1beta1/query.rpc.func.ts +157 -0
- package/src/cosmos/staking/v1beta1/query.ts +3073 -0
- package/src/cosmos/staking/v1beta1/staking.ts +3005 -0
- package/src/cosmos/staking/v1beta1/tx.registry.ts +137 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +67 -0
- package/src/cosmos/staking/v1beta1/tx.ts +1638 -0
- package/src/cosmos/store/internal/kv/v1beta1/kv.ts +207 -0
- package/src/cosmos/store/snapshots/v1/snapshot.ts +863 -0
- package/src/cosmos/store/snapshots/v2/snapshot.ts +823 -0
- package/src/cosmos/store/streaming/abci/grpc.ts +393 -0
- package/src/cosmos/store/v1beta1/commit_info.ts +362 -0
- package/src/cosmos/store/v1beta1/listening.ts +286 -0
- package/src/cosmos/streaming/v1/grpc.ts +985 -0
- package/src/cosmos/tx/config/v1/config.ts +127 -0
- package/src/cosmos/tx/signing/v1beta1/signing.ts +688 -0
- package/src/cosmos/tx/v1beta1/service.rpc.func.ts +102 -0
- package/src/cosmos/tx/v1beta1/service.ts +2294 -0
- package/src/cosmos/tx/v1beta1/tx.ts +2029 -0
- package/src/cosmos/upgrade/module/v1/module.ts +99 -0
- package/src/cosmos/upgrade/v1beta1/query.rpc.func.ts +58 -0
- package/src/cosmos/upgrade/v1beta1/query.ts +1016 -0
- package/src/cosmos/upgrade/v1beta1/tx.registry.ts +47 -0
- package/src/cosmos/upgrade/v1beta1/tx.rpc.func.ts +22 -0
- package/src/cosmos/upgrade/v1beta1/tx.ts +398 -0
- package/src/cosmos/upgrade/v1beta1/upgrade.ts +591 -0
- package/src/cosmos/validate/module/v1/module.ts +80 -0
- package/src/cosmos/vesting/module/v1/module.ts +80 -0
- package/src/cosmos/vesting/v1beta1/tx.registry.ts +65 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.func.ts +31 -0
- package/src/cosmos/vesting/v1beta1/tx.ts +698 -0
- package/src/cosmos/vesting/v1beta1/vesting.ts +735 -0
- package/src/cosmos_proto/cosmos.ts +341 -0
- package/src/cosmwasm/wasm/v1/authz.ts +1231 -0
- package/src/cosmwasm/wasm/v1/genesis.ts +532 -0
- package/src/cosmwasm/wasm/v1/ibc.ts +355 -0
- package/src/cosmwasm/wasm/v1/proposal_legacy.ts +2432 -0
- package/src/cosmwasm/wasm/v1/query.rpc.func.ts +124 -0
- package/src/cosmwasm/wasm/v1/query.ts +2560 -0
- package/src/cosmwasm/wasm/v1/tx.registry.ts +317 -0
- package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +157 -0
- package/src/cosmwasm/wasm/v1/tx.ts +4191 -0
- package/src/cosmwasm/wasm/v1/types.ts +1120 -0
- package/src/ethermint/crypto/v1/ethsecp256k1/keys.ts +193 -0
- package/src/ethermint/evm/v1/events.ts +485 -0
- package/src/ethermint/evm/v1/evm.ts +1590 -0
- package/src/ethermint/evm/v1/genesis.ts +240 -0
- package/src/ethermint/evm/v1/query.rpc.func.ts +136 -0
- package/src/ethermint/evm/v1/query.ts +2535 -0
- package/src/ethermint/evm/v1/tx.registry.ts +47 -0
- package/src/ethermint/evm/v1/tx.rpc.func.ts +22 -0
- package/src/ethermint/evm/v1/tx.ts +1333 -0
- package/src/ethermint/feemarket/v1/events.ts +195 -0
- package/src/ethermint/feemarket/v1/feemarket.ts +213 -0
- package/src/ethermint/feemarket/v1/genesis.ts +114 -0
- package/src/ethermint/feemarket/v1/query.rpc.func.ts +36 -0
- package/src/ethermint/feemarket/v1/query.ts +487 -0
- package/src/ethermint/feemarket/v1/tx.registry.ts +29 -0
- package/src/ethermint/feemarket/v1/tx.rpc.func.ts +13 -0
- package/src/ethermint/feemarket/v1/tx.ts +197 -0
- package/src/ethermint/types/v1/account.ts +114 -0
- package/src/ethermint/types/v1/dynamic_fee.ts +91 -0
- package/src/ethermint/types/v1/indexer.ts +205 -0
- package/src/ethermint/types/v1/web3.ts +147 -0
- package/src/extern.ts +38 -0
- package/src/gogoproto/gogo.ts +1 -0
- package/src/google/api/annotations.ts +1 -0
- package/src/google/api/http.ts +1069 -0
- package/src/google/protobuf/any.ts +331 -0
- package/src/google/protobuf/descriptor.ts +7177 -0
- package/src/google/protobuf/duration.ts +225 -0
- package/src/google/protobuf/timestamp.ts +281 -0
- package/src/helper-func-types.ts +191 -0
- package/src/helpers.ts +259 -0
- package/src/ibc/applications/fee/v1/ack.ts +131 -0
- package/src/ibc/applications/fee/v1/fee.ts +481 -0
- package/src/ibc/applications/fee/v1/genesis.ts +661 -0
- package/src/ibc/applications/fee/v1/metadata.ts +121 -0
- package/src/ibc/applications/fee/v1/query.rpc.func.ts +113 -0
- package/src/ibc/applications/fee/v1/query.ts +2134 -0
- package/src/ibc/applications/fee/v1/tx.registry.ts +83 -0
- package/src/ibc/applications/fee/v1/tx.rpc.func.ts +40 -0
- package/src/ibc/applications/fee/v1/tx.ts +889 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/controller.ts +105 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.ts +25 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +65 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.ts +31 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.ts +685 -0
- package/src/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +661 -0
- package/src/ibc/applications/interchain_accounts/host/v1/host.ts +253 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.func.ts +14 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.ts +177 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +47 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.ts +22 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.ts +429 -0
- package/src/ibc/applications/interchain_accounts/v1/account.ts +112 -0
- package/src/ibc/applications/interchain_accounts/v1/metadata.ts +191 -0
- package/src/ibc/applications/interchain_accounts/v1/packet.ts +259 -0
- package/src/ibc/applications/transfer/v1/authz.ts +280 -0
- package/src/ibc/applications/transfer/v1/genesis.ts +153 -0
- package/src/ibc/applications/transfer/v1/query.rpc.func.ts +69 -0
- package/src/ibc/applications/transfer/v1/query.ts +1205 -0
- package/src/ibc/applications/transfer/v1/transfer.ts +261 -0
- package/src/ibc/applications/transfer/v1/tx.registry.ts +47 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +22 -0
- package/src/ibc/applications/transfer/v1/tx.ts +532 -0
- package/src/ibc/applications/transfer/v2/packet.ts +171 -0
- package/src/ibc/core/channel/v1/channel.ts +1510 -0
- package/src/ibc/core/channel/v1/genesis.ts +354 -0
- package/src/ibc/core/channel/v1/query.rpc.func.ts +190 -0
- package/src/ibc/core/channel/v1/query.ts +4354 -0
- package/src/ibc/core/channel/v1/tx.registry.ts +353 -0
- package/src/ibc/core/channel/v1/tx.rpc.func.ts +175 -0
- package/src/ibc/core/channel/v1/tx.ts +4866 -0
- package/src/ibc/core/channel/v1/upgrade.ts +388 -0
- package/src/ibc/core/client/v1/client.ts +927 -0
- package/src/ibc/core/client/v1/genesis.ts +426 -0
- package/src/ibc/core/client/v1/query.rpc.func.ts +113 -0
- package/src/ibc/core/client/v1/query.ts +2280 -0
- package/src/ibc/core/client/v1/tx.registry.ts +137 -0
- package/src/ibc/core/client/v1/tx.rpc.func.ts +67 -0
- package/src/ibc/core/client/v1/tx.ts +1543 -0
- package/src/ibc/core/commitment/v1/commitment.ts +418 -0
- package/src/ibc/core/connection/v1/connection.ts +1010 -0
- package/src/ibc/core/connection/v1/genesis.ts +146 -0
- package/src/ibc/core/connection/v1/query.rpc.func.ts +69 -0
- package/src/ibc/core/connection/v1/query.ts +1408 -0
- package/src/ibc/core/connection/v1/tx.registry.ts +101 -0
- package/src/ibc/core/connection/v1/tx.rpc.func.ts +49 -0
- package/src/ibc/core/connection/v1/tx.ts +1365 -0
- package/src/ibc/core/types/v1/genesis.ts +137 -0
- package/src/ibc/lightclients/localhost/v2/localhost.ts +100 -0
- package/src/ibc/lightclients/solomachine/v2/solomachine.ts +2103 -0
- package/src/ibc/lightclients/solomachine/v3/solomachine.ts +1070 -0
- package/src/ibc/lightclients/tendermint/v1/tendermint.ts +838 -0
- package/src/ibc/lightclients/wasm/v1/genesis.ts +197 -0
- package/src/ibc/lightclients/wasm/v1/query.rpc.func.ts +25 -0
- package/src/ibc/lightclients/wasm/v1/query.ts +404 -0
- package/src/ibc/lightclients/wasm/v1/tx.registry.ts +65 -0
- package/src/ibc/lightclients/wasm/v1/tx.rpc.func.ts +31 -0
- package/src/ibc/lightclients/wasm/v1/tx.ts +621 -0
- package/src/ibc/lightclients/wasm/v1/wasm.ts +438 -0
- package/src/react-query.ts +185 -0
- package/src/registry.ts +218 -0
- package/src/tendermint/abci/types.ts +6283 -0
- package/src/tendermint/crypto/keys.ts +103 -0
- package/src/tendermint/crypto/proof.ts +555 -0
- package/src/tendermint/p2p/types.ts +507 -0
- package/src/tendermint/types/block.ts +131 -0
- package/src/tendermint/types/evidence.ts +476 -0
- package/src/tendermint/types/params.ts +814 -0
- package/src/tendermint/types/types.ts +2157 -0
- package/src/tendermint/types/validator.ts +389 -0
- package/src/tendermint/version/types.ts +219 -0
- package/src/types.ts +155 -0
- package/src/utf8.ts +148 -0
- package/src/varint.ts +488 -0
- package/src/xpla/reward/v1beta1/genesis.ts +92 -0
- package/src/xpla/reward/v1beta1/query.rpc.func.ts +25 -0
- package/src/xpla/reward/v1beta1/query.ts +333 -0
- package/src/xpla/reward/v1beta1/reward.ts +153 -0
- package/src/xpla/reward/v1beta1/tx.registry.ts +47 -0
- package/src/xpla/reward/v1beta1/tx.rpc.func.ts +22 -0
- package/src/xpla/reward/v1beta1/tx.ts +391 -0
- package/src/xpla/volunteer/v1beta1/genesis.ts +92 -0
- package/src/xpla/volunteer/v1beta1/proposal.ts +649 -0
- package/src/xpla/volunteer/v1beta1/query.rpc.func.ts +14 -0
- package/src/xpla/volunteer/v1beta1/query.ts +160 -0
- package/src/xpla/volunteer/v1beta1/tx.registry.ts +47 -0
- package/src/xpla/volunteer/v1beta1/tx.rpc.func.ts +22 -0
- package/src/xpla/volunteer/v1beta1/tx.ts +448 -0
- package/src/xpla/volunteer/v1beta1/volunteervalidator.ts +107 -0
- package/tsconfig.esm.json +10 -0
- package/tsconfig.json +10 -0
|
@@ -0,0 +1,814 @@
|
|
|
1
|
+
import { Duration, DurationAmino } from "../../google/protobuf/duration";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
3
|
+
import { DeepPartial } from "../../helpers";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../registry";
|
|
5
|
+
/**
|
|
6
|
+
* ConsensusParams contains consensus critical parameters that determine the
|
|
7
|
+
* validity of blocks.
|
|
8
|
+
*/
|
|
9
|
+
export interface ConsensusParams {
|
|
10
|
+
block?: BlockParams;
|
|
11
|
+
evidence?: EvidenceParams;
|
|
12
|
+
validator?: ValidatorParams;
|
|
13
|
+
version?: VersionParams;
|
|
14
|
+
abci?: ABCIParams;
|
|
15
|
+
}
|
|
16
|
+
export interface ConsensusParamsProtoMsg {
|
|
17
|
+
typeUrl: "/tendermint.types.ConsensusParams";
|
|
18
|
+
value: Uint8Array;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* ConsensusParams contains consensus critical parameters that determine the
|
|
22
|
+
* validity of blocks.
|
|
23
|
+
*/
|
|
24
|
+
export interface ConsensusParamsAmino {
|
|
25
|
+
block?: BlockParamsAmino;
|
|
26
|
+
evidence?: EvidenceParamsAmino;
|
|
27
|
+
validator?: ValidatorParamsAmino;
|
|
28
|
+
version?: VersionParamsAmino;
|
|
29
|
+
abci?: ABCIParamsAmino;
|
|
30
|
+
}
|
|
31
|
+
export interface ConsensusParamsAminoMsg {
|
|
32
|
+
type: "/tendermint.types.ConsensusParams";
|
|
33
|
+
value: ConsensusParamsAmino;
|
|
34
|
+
}
|
|
35
|
+
/** BlockParams contains limits on the block size. */
|
|
36
|
+
export interface BlockParams {
|
|
37
|
+
/**
|
|
38
|
+
* Max block size, in bytes.
|
|
39
|
+
* Note: must be greater than 0
|
|
40
|
+
*/
|
|
41
|
+
maxBytes: bigint;
|
|
42
|
+
/**
|
|
43
|
+
* Max gas per block.
|
|
44
|
+
* Note: must be greater or equal to -1
|
|
45
|
+
*/
|
|
46
|
+
maxGas: bigint;
|
|
47
|
+
}
|
|
48
|
+
export interface BlockParamsProtoMsg {
|
|
49
|
+
typeUrl: "/tendermint.types.BlockParams";
|
|
50
|
+
value: Uint8Array;
|
|
51
|
+
}
|
|
52
|
+
/** BlockParams contains limits on the block size. */
|
|
53
|
+
export interface BlockParamsAmino {
|
|
54
|
+
/**
|
|
55
|
+
* Max block size, in bytes.
|
|
56
|
+
* Note: must be greater than 0
|
|
57
|
+
*/
|
|
58
|
+
max_bytes: string;
|
|
59
|
+
/**
|
|
60
|
+
* Max gas per block.
|
|
61
|
+
* Note: must be greater or equal to -1
|
|
62
|
+
*/
|
|
63
|
+
max_gas: string;
|
|
64
|
+
}
|
|
65
|
+
export interface BlockParamsAminoMsg {
|
|
66
|
+
type: "/tendermint.types.BlockParams";
|
|
67
|
+
value: BlockParamsAmino;
|
|
68
|
+
}
|
|
69
|
+
/** EvidenceParams determine how we handle evidence of malfeasance. */
|
|
70
|
+
export interface EvidenceParams {
|
|
71
|
+
/**
|
|
72
|
+
* Max age of evidence, in blocks.
|
|
73
|
+
*
|
|
74
|
+
* The basic formula for calculating this is: MaxAgeDuration / {average block
|
|
75
|
+
* time}.
|
|
76
|
+
*/
|
|
77
|
+
maxAgeNumBlocks: bigint;
|
|
78
|
+
/**
|
|
79
|
+
* Max age of evidence, in time.
|
|
80
|
+
*
|
|
81
|
+
* It should correspond with an app's "unbonding period" or other similar
|
|
82
|
+
* mechanism for handling [Nothing-At-Stake
|
|
83
|
+
* attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
|
|
84
|
+
*/
|
|
85
|
+
maxAgeDuration: Duration;
|
|
86
|
+
/**
|
|
87
|
+
* This sets the maximum size of total evidence in bytes that can be committed in a single block.
|
|
88
|
+
* and should fall comfortably under the max block bytes.
|
|
89
|
+
* Default is 1048576 or 1MB
|
|
90
|
+
*/
|
|
91
|
+
maxBytes: bigint;
|
|
92
|
+
}
|
|
93
|
+
export interface EvidenceParamsProtoMsg {
|
|
94
|
+
typeUrl: "/tendermint.types.EvidenceParams";
|
|
95
|
+
value: Uint8Array;
|
|
96
|
+
}
|
|
97
|
+
/** EvidenceParams determine how we handle evidence of malfeasance. */
|
|
98
|
+
export interface EvidenceParamsAmino {
|
|
99
|
+
/**
|
|
100
|
+
* Max age of evidence, in blocks.
|
|
101
|
+
*
|
|
102
|
+
* The basic formula for calculating this is: MaxAgeDuration / {average block
|
|
103
|
+
* time}.
|
|
104
|
+
*/
|
|
105
|
+
max_age_num_blocks: string;
|
|
106
|
+
/**
|
|
107
|
+
* Max age of evidence, in time.
|
|
108
|
+
*
|
|
109
|
+
* It should correspond with an app's "unbonding period" or other similar
|
|
110
|
+
* mechanism for handling [Nothing-At-Stake
|
|
111
|
+
* attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
|
|
112
|
+
*/
|
|
113
|
+
max_age_duration: DurationAmino;
|
|
114
|
+
/**
|
|
115
|
+
* This sets the maximum size of total evidence in bytes that can be committed in a single block.
|
|
116
|
+
* and should fall comfortably under the max block bytes.
|
|
117
|
+
* Default is 1048576 or 1MB
|
|
118
|
+
*/
|
|
119
|
+
max_bytes: string;
|
|
120
|
+
}
|
|
121
|
+
export interface EvidenceParamsAminoMsg {
|
|
122
|
+
type: "/tendermint.types.EvidenceParams";
|
|
123
|
+
value: EvidenceParamsAmino;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* ValidatorParams restrict the public key types validators can use.
|
|
127
|
+
* NOTE: uses ABCI pubkey naming, not Amino names.
|
|
128
|
+
*/
|
|
129
|
+
export interface ValidatorParams {
|
|
130
|
+
pubKeyTypes: string[];
|
|
131
|
+
}
|
|
132
|
+
export interface ValidatorParamsProtoMsg {
|
|
133
|
+
typeUrl: "/tendermint.types.ValidatorParams";
|
|
134
|
+
value: Uint8Array;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* ValidatorParams restrict the public key types validators can use.
|
|
138
|
+
* NOTE: uses ABCI pubkey naming, not Amino names.
|
|
139
|
+
*/
|
|
140
|
+
export interface ValidatorParamsAmino {
|
|
141
|
+
pub_key_types: string[];
|
|
142
|
+
}
|
|
143
|
+
export interface ValidatorParamsAminoMsg {
|
|
144
|
+
type: "/tendermint.types.ValidatorParams";
|
|
145
|
+
value: ValidatorParamsAmino;
|
|
146
|
+
}
|
|
147
|
+
/** VersionParams contains the ABCI application version. */
|
|
148
|
+
export interface VersionParams {
|
|
149
|
+
app: bigint;
|
|
150
|
+
}
|
|
151
|
+
export interface VersionParamsProtoMsg {
|
|
152
|
+
typeUrl: "/tendermint.types.VersionParams";
|
|
153
|
+
value: Uint8Array;
|
|
154
|
+
}
|
|
155
|
+
/** VersionParams contains the ABCI application version. */
|
|
156
|
+
export interface VersionParamsAmino {
|
|
157
|
+
app: string;
|
|
158
|
+
}
|
|
159
|
+
export interface VersionParamsAminoMsg {
|
|
160
|
+
type: "/tendermint.types.VersionParams";
|
|
161
|
+
value: VersionParamsAmino;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* HashedParams is a subset of ConsensusParams.
|
|
165
|
+
*
|
|
166
|
+
* It is hashed into the Header.ConsensusHash.
|
|
167
|
+
*/
|
|
168
|
+
export interface HashedParams {
|
|
169
|
+
blockMaxBytes: bigint;
|
|
170
|
+
blockMaxGas: bigint;
|
|
171
|
+
}
|
|
172
|
+
export interface HashedParamsProtoMsg {
|
|
173
|
+
typeUrl: "/tendermint.types.HashedParams";
|
|
174
|
+
value: Uint8Array;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* HashedParams is a subset of ConsensusParams.
|
|
178
|
+
*
|
|
179
|
+
* It is hashed into the Header.ConsensusHash.
|
|
180
|
+
*/
|
|
181
|
+
export interface HashedParamsAmino {
|
|
182
|
+
block_max_bytes: string;
|
|
183
|
+
block_max_gas: string;
|
|
184
|
+
}
|
|
185
|
+
export interface HashedParamsAminoMsg {
|
|
186
|
+
type: "/tendermint.types.HashedParams";
|
|
187
|
+
value: HashedParamsAmino;
|
|
188
|
+
}
|
|
189
|
+
/** ABCIParams configure functionality specific to the Application Blockchain Interface. */
|
|
190
|
+
export interface ABCIParams {
|
|
191
|
+
/**
|
|
192
|
+
* vote_extensions_enable_height configures the first height during which
|
|
193
|
+
* vote extensions will be enabled. During this specified height, and for all
|
|
194
|
+
* subsequent heights, precommit messages that do not contain valid extension data
|
|
195
|
+
* will be considered invalid. Prior to this height, vote extensions will not
|
|
196
|
+
* be used or accepted by validators on the network.
|
|
197
|
+
*
|
|
198
|
+
* Once enabled, vote extensions will be created by the application in ExtendVote,
|
|
199
|
+
* passed to the application for validation in VerifyVoteExtension and given
|
|
200
|
+
* to the application to use when proposing a block during PrepareProposal.
|
|
201
|
+
*/
|
|
202
|
+
voteExtensionsEnableHeight: bigint;
|
|
203
|
+
}
|
|
204
|
+
export interface ABCIParamsProtoMsg {
|
|
205
|
+
typeUrl: "/tendermint.types.ABCIParams";
|
|
206
|
+
value: Uint8Array;
|
|
207
|
+
}
|
|
208
|
+
/** ABCIParams configure functionality specific to the Application Blockchain Interface. */
|
|
209
|
+
export interface ABCIParamsAmino {
|
|
210
|
+
/**
|
|
211
|
+
* vote_extensions_enable_height configures the first height during which
|
|
212
|
+
* vote extensions will be enabled. During this specified height, and for all
|
|
213
|
+
* subsequent heights, precommit messages that do not contain valid extension data
|
|
214
|
+
* will be considered invalid. Prior to this height, vote extensions will not
|
|
215
|
+
* be used or accepted by validators on the network.
|
|
216
|
+
*
|
|
217
|
+
* Once enabled, vote extensions will be created by the application in ExtendVote,
|
|
218
|
+
* passed to the application for validation in VerifyVoteExtension and given
|
|
219
|
+
* to the application to use when proposing a block during PrepareProposal.
|
|
220
|
+
*/
|
|
221
|
+
vote_extensions_enable_height: string;
|
|
222
|
+
}
|
|
223
|
+
export interface ABCIParamsAminoMsg {
|
|
224
|
+
type: "/tendermint.types.ABCIParams";
|
|
225
|
+
value: ABCIParamsAmino;
|
|
226
|
+
}
|
|
227
|
+
function createBaseConsensusParams(): ConsensusParams {
|
|
228
|
+
return {
|
|
229
|
+
block: undefined,
|
|
230
|
+
evidence: undefined,
|
|
231
|
+
validator: undefined,
|
|
232
|
+
version: undefined,
|
|
233
|
+
abci: undefined
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
export const ConsensusParams = {
|
|
237
|
+
typeUrl: "/tendermint.types.ConsensusParams",
|
|
238
|
+
is(o: any): o is ConsensusParams {
|
|
239
|
+
return o && o.$typeUrl === ConsensusParams.typeUrl;
|
|
240
|
+
},
|
|
241
|
+
isAmino(o: any): o is ConsensusParamsAmino {
|
|
242
|
+
return o && o.$typeUrl === ConsensusParams.typeUrl;
|
|
243
|
+
},
|
|
244
|
+
encode(message: ConsensusParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
245
|
+
if (message.block !== undefined) {
|
|
246
|
+
BlockParams.encode(message.block, writer.uint32(10).fork()).ldelim();
|
|
247
|
+
}
|
|
248
|
+
if (message.evidence !== undefined) {
|
|
249
|
+
EvidenceParams.encode(message.evidence, writer.uint32(18).fork()).ldelim();
|
|
250
|
+
}
|
|
251
|
+
if (message.validator !== undefined) {
|
|
252
|
+
ValidatorParams.encode(message.validator, writer.uint32(26).fork()).ldelim();
|
|
253
|
+
}
|
|
254
|
+
if (message.version !== undefined) {
|
|
255
|
+
VersionParams.encode(message.version, writer.uint32(34).fork()).ldelim();
|
|
256
|
+
}
|
|
257
|
+
if (message.abci !== undefined) {
|
|
258
|
+
ABCIParams.encode(message.abci, writer.uint32(42).fork()).ldelim();
|
|
259
|
+
}
|
|
260
|
+
return writer;
|
|
261
|
+
},
|
|
262
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ConsensusParams {
|
|
263
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
264
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
265
|
+
const message = createBaseConsensusParams();
|
|
266
|
+
while (reader.pos < end) {
|
|
267
|
+
const tag = reader.uint32();
|
|
268
|
+
switch (tag >>> 3) {
|
|
269
|
+
case 1:
|
|
270
|
+
message.block = BlockParams.decode(reader, reader.uint32());
|
|
271
|
+
break;
|
|
272
|
+
case 2:
|
|
273
|
+
message.evidence = EvidenceParams.decode(reader, reader.uint32());
|
|
274
|
+
break;
|
|
275
|
+
case 3:
|
|
276
|
+
message.validator = ValidatorParams.decode(reader, reader.uint32());
|
|
277
|
+
break;
|
|
278
|
+
case 4:
|
|
279
|
+
message.version = VersionParams.decode(reader, reader.uint32());
|
|
280
|
+
break;
|
|
281
|
+
case 5:
|
|
282
|
+
message.abci = ABCIParams.decode(reader, reader.uint32());
|
|
283
|
+
break;
|
|
284
|
+
default:
|
|
285
|
+
reader.skipType(tag & 7);
|
|
286
|
+
break;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
return message;
|
|
290
|
+
},
|
|
291
|
+
fromPartial(object: DeepPartial<ConsensusParams>): ConsensusParams {
|
|
292
|
+
const message = createBaseConsensusParams();
|
|
293
|
+
message.block = object.block !== undefined && object.block !== null ? BlockParams.fromPartial(object.block) : undefined;
|
|
294
|
+
message.evidence = object.evidence !== undefined && object.evidence !== null ? EvidenceParams.fromPartial(object.evidence) : undefined;
|
|
295
|
+
message.validator = object.validator !== undefined && object.validator !== null ? ValidatorParams.fromPartial(object.validator) : undefined;
|
|
296
|
+
message.version = object.version !== undefined && object.version !== null ? VersionParams.fromPartial(object.version) : undefined;
|
|
297
|
+
message.abci = object.abci !== undefined && object.abci !== null ? ABCIParams.fromPartial(object.abci) : undefined;
|
|
298
|
+
return message;
|
|
299
|
+
},
|
|
300
|
+
fromAmino(object: ConsensusParamsAmino): ConsensusParams {
|
|
301
|
+
const message = createBaseConsensusParams();
|
|
302
|
+
if (object.block !== undefined && object.block !== null) {
|
|
303
|
+
message.block = BlockParams.fromAmino(object.block);
|
|
304
|
+
}
|
|
305
|
+
if (object.evidence !== undefined && object.evidence !== null) {
|
|
306
|
+
message.evidence = EvidenceParams.fromAmino(object.evidence);
|
|
307
|
+
}
|
|
308
|
+
if (object.validator !== undefined && object.validator !== null) {
|
|
309
|
+
message.validator = ValidatorParams.fromAmino(object.validator);
|
|
310
|
+
}
|
|
311
|
+
if (object.version !== undefined && object.version !== null) {
|
|
312
|
+
message.version = VersionParams.fromAmino(object.version);
|
|
313
|
+
}
|
|
314
|
+
if (object.abci !== undefined && object.abci !== null) {
|
|
315
|
+
message.abci = ABCIParams.fromAmino(object.abci);
|
|
316
|
+
}
|
|
317
|
+
return message;
|
|
318
|
+
},
|
|
319
|
+
toAmino(message: ConsensusParams): ConsensusParamsAmino {
|
|
320
|
+
const obj: any = {};
|
|
321
|
+
obj.block = message.block ? BlockParams.toAmino(message.block) : undefined;
|
|
322
|
+
obj.evidence = message.evidence ? EvidenceParams.toAmino(message.evidence) : undefined;
|
|
323
|
+
obj.validator = message.validator ? ValidatorParams.toAmino(message.validator) : undefined;
|
|
324
|
+
obj.version = message.version ? VersionParams.toAmino(message.version) : undefined;
|
|
325
|
+
obj.abci = message.abci ? ABCIParams.toAmino(message.abci) : undefined;
|
|
326
|
+
return obj;
|
|
327
|
+
},
|
|
328
|
+
fromAminoMsg(object: ConsensusParamsAminoMsg): ConsensusParams {
|
|
329
|
+
return ConsensusParams.fromAmino(object.value);
|
|
330
|
+
},
|
|
331
|
+
fromProtoMsg(message: ConsensusParamsProtoMsg): ConsensusParams {
|
|
332
|
+
return ConsensusParams.decode(message.value);
|
|
333
|
+
},
|
|
334
|
+
toProto(message: ConsensusParams): Uint8Array {
|
|
335
|
+
return ConsensusParams.encode(message).finish();
|
|
336
|
+
},
|
|
337
|
+
toProtoMsg(message: ConsensusParams): ConsensusParamsProtoMsg {
|
|
338
|
+
return {
|
|
339
|
+
typeUrl: "/tendermint.types.ConsensusParams",
|
|
340
|
+
value: ConsensusParams.encode(message).finish()
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
GlobalDecoderRegistry.register(ConsensusParams.typeUrl, ConsensusParams);
|
|
345
|
+
function createBaseBlockParams(): BlockParams {
|
|
346
|
+
return {
|
|
347
|
+
maxBytes: BigInt(0),
|
|
348
|
+
maxGas: BigInt(0)
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
export const BlockParams = {
|
|
352
|
+
typeUrl: "/tendermint.types.BlockParams",
|
|
353
|
+
is(o: any): o is BlockParams {
|
|
354
|
+
return o && (o.$typeUrl === BlockParams.typeUrl || typeof o.maxBytes === "bigint" && typeof o.maxGas === "bigint");
|
|
355
|
+
},
|
|
356
|
+
isAmino(o: any): o is BlockParamsAmino {
|
|
357
|
+
return o && (o.$typeUrl === BlockParams.typeUrl || typeof o.max_bytes === "bigint" && typeof o.max_gas === "bigint");
|
|
358
|
+
},
|
|
359
|
+
encode(message: BlockParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
360
|
+
if (message.maxBytes !== BigInt(0)) {
|
|
361
|
+
writer.uint32(8).int64(message.maxBytes);
|
|
362
|
+
}
|
|
363
|
+
if (message.maxGas !== BigInt(0)) {
|
|
364
|
+
writer.uint32(16).int64(message.maxGas);
|
|
365
|
+
}
|
|
366
|
+
return writer;
|
|
367
|
+
},
|
|
368
|
+
decode(input: BinaryReader | Uint8Array, length?: number): BlockParams {
|
|
369
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
370
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
371
|
+
const message = createBaseBlockParams();
|
|
372
|
+
while (reader.pos < end) {
|
|
373
|
+
const tag = reader.uint32();
|
|
374
|
+
switch (tag >>> 3) {
|
|
375
|
+
case 1:
|
|
376
|
+
message.maxBytes = reader.int64();
|
|
377
|
+
break;
|
|
378
|
+
case 2:
|
|
379
|
+
message.maxGas = reader.int64();
|
|
380
|
+
break;
|
|
381
|
+
default:
|
|
382
|
+
reader.skipType(tag & 7);
|
|
383
|
+
break;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
return message;
|
|
387
|
+
},
|
|
388
|
+
fromPartial(object: DeepPartial<BlockParams>): BlockParams {
|
|
389
|
+
const message = createBaseBlockParams();
|
|
390
|
+
message.maxBytes = object.maxBytes !== undefined && object.maxBytes !== null ? BigInt(object.maxBytes.toString()) : BigInt(0);
|
|
391
|
+
message.maxGas = object.maxGas !== undefined && object.maxGas !== null ? BigInt(object.maxGas.toString()) : BigInt(0);
|
|
392
|
+
return message;
|
|
393
|
+
},
|
|
394
|
+
fromAmino(object: BlockParamsAmino): BlockParams {
|
|
395
|
+
const message = createBaseBlockParams();
|
|
396
|
+
if (object.max_bytes !== undefined && object.max_bytes !== null) {
|
|
397
|
+
message.maxBytes = BigInt(object.max_bytes);
|
|
398
|
+
}
|
|
399
|
+
if (object.max_gas !== undefined && object.max_gas !== null) {
|
|
400
|
+
message.maxGas = BigInt(object.max_gas);
|
|
401
|
+
}
|
|
402
|
+
return message;
|
|
403
|
+
},
|
|
404
|
+
toAmino(message: BlockParams): BlockParamsAmino {
|
|
405
|
+
const obj: any = {};
|
|
406
|
+
obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes?.toString() : undefined;
|
|
407
|
+
obj.max_gas = message.maxGas !== BigInt(0) ? message.maxGas?.toString() : undefined;
|
|
408
|
+
return obj;
|
|
409
|
+
},
|
|
410
|
+
fromAminoMsg(object: BlockParamsAminoMsg): BlockParams {
|
|
411
|
+
return BlockParams.fromAmino(object.value);
|
|
412
|
+
},
|
|
413
|
+
fromProtoMsg(message: BlockParamsProtoMsg): BlockParams {
|
|
414
|
+
return BlockParams.decode(message.value);
|
|
415
|
+
},
|
|
416
|
+
toProto(message: BlockParams): Uint8Array {
|
|
417
|
+
return BlockParams.encode(message).finish();
|
|
418
|
+
},
|
|
419
|
+
toProtoMsg(message: BlockParams): BlockParamsProtoMsg {
|
|
420
|
+
return {
|
|
421
|
+
typeUrl: "/tendermint.types.BlockParams",
|
|
422
|
+
value: BlockParams.encode(message).finish()
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
GlobalDecoderRegistry.register(BlockParams.typeUrl, BlockParams);
|
|
427
|
+
function createBaseEvidenceParams(): EvidenceParams {
|
|
428
|
+
return {
|
|
429
|
+
maxAgeNumBlocks: BigInt(0),
|
|
430
|
+
maxAgeDuration: Duration.fromPartial({}),
|
|
431
|
+
maxBytes: BigInt(0)
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
export const EvidenceParams = {
|
|
435
|
+
typeUrl: "/tendermint.types.EvidenceParams",
|
|
436
|
+
is(o: any): o is EvidenceParams {
|
|
437
|
+
return o && (o.$typeUrl === EvidenceParams.typeUrl || typeof o.maxAgeNumBlocks === "bigint" && Duration.is(o.maxAgeDuration) && typeof o.maxBytes === "bigint");
|
|
438
|
+
},
|
|
439
|
+
isAmino(o: any): o is EvidenceParamsAmino {
|
|
440
|
+
return o && (o.$typeUrl === EvidenceParams.typeUrl || typeof o.max_age_num_blocks === "bigint" && Duration.isAmino(o.max_age_duration) && typeof o.max_bytes === "bigint");
|
|
441
|
+
},
|
|
442
|
+
encode(message: EvidenceParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
443
|
+
if (message.maxAgeNumBlocks !== BigInt(0)) {
|
|
444
|
+
writer.uint32(8).int64(message.maxAgeNumBlocks);
|
|
445
|
+
}
|
|
446
|
+
if (message.maxAgeDuration !== undefined) {
|
|
447
|
+
Duration.encode(message.maxAgeDuration, writer.uint32(18).fork()).ldelim();
|
|
448
|
+
}
|
|
449
|
+
if (message.maxBytes !== BigInt(0)) {
|
|
450
|
+
writer.uint32(24).int64(message.maxBytes);
|
|
451
|
+
}
|
|
452
|
+
return writer;
|
|
453
|
+
},
|
|
454
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EvidenceParams {
|
|
455
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
456
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
457
|
+
const message = createBaseEvidenceParams();
|
|
458
|
+
while (reader.pos < end) {
|
|
459
|
+
const tag = reader.uint32();
|
|
460
|
+
switch (tag >>> 3) {
|
|
461
|
+
case 1:
|
|
462
|
+
message.maxAgeNumBlocks = reader.int64();
|
|
463
|
+
break;
|
|
464
|
+
case 2:
|
|
465
|
+
message.maxAgeDuration = Duration.decode(reader, reader.uint32());
|
|
466
|
+
break;
|
|
467
|
+
case 3:
|
|
468
|
+
message.maxBytes = reader.int64();
|
|
469
|
+
break;
|
|
470
|
+
default:
|
|
471
|
+
reader.skipType(tag & 7);
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
return message;
|
|
476
|
+
},
|
|
477
|
+
fromPartial(object: DeepPartial<EvidenceParams>): EvidenceParams {
|
|
478
|
+
const message = createBaseEvidenceParams();
|
|
479
|
+
message.maxAgeNumBlocks = object.maxAgeNumBlocks !== undefined && object.maxAgeNumBlocks !== null ? BigInt(object.maxAgeNumBlocks.toString()) : BigInt(0);
|
|
480
|
+
message.maxAgeDuration = object.maxAgeDuration !== undefined && object.maxAgeDuration !== null ? Duration.fromPartial(object.maxAgeDuration) : undefined;
|
|
481
|
+
message.maxBytes = object.maxBytes !== undefined && object.maxBytes !== null ? BigInt(object.maxBytes.toString()) : BigInt(0);
|
|
482
|
+
return message;
|
|
483
|
+
},
|
|
484
|
+
fromAmino(object: EvidenceParamsAmino): EvidenceParams {
|
|
485
|
+
const message = createBaseEvidenceParams();
|
|
486
|
+
if (object.max_age_num_blocks !== undefined && object.max_age_num_blocks !== null) {
|
|
487
|
+
message.maxAgeNumBlocks = BigInt(object.max_age_num_blocks);
|
|
488
|
+
}
|
|
489
|
+
if (object.max_age_duration !== undefined && object.max_age_duration !== null) {
|
|
490
|
+
message.maxAgeDuration = Duration.fromAmino(object.max_age_duration);
|
|
491
|
+
}
|
|
492
|
+
if (object.max_bytes !== undefined && object.max_bytes !== null) {
|
|
493
|
+
message.maxBytes = BigInt(object.max_bytes);
|
|
494
|
+
}
|
|
495
|
+
return message;
|
|
496
|
+
},
|
|
497
|
+
toAmino(message: EvidenceParams): EvidenceParamsAmino {
|
|
498
|
+
const obj: any = {};
|
|
499
|
+
obj.max_age_num_blocks = message.maxAgeNumBlocks !== BigInt(0) ? message.maxAgeNumBlocks?.toString() : undefined;
|
|
500
|
+
obj.max_age_duration = message.maxAgeDuration ? Duration.toAmino(message.maxAgeDuration) : undefined;
|
|
501
|
+
obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes?.toString() : undefined;
|
|
502
|
+
return obj;
|
|
503
|
+
},
|
|
504
|
+
fromAminoMsg(object: EvidenceParamsAminoMsg): EvidenceParams {
|
|
505
|
+
return EvidenceParams.fromAmino(object.value);
|
|
506
|
+
},
|
|
507
|
+
fromProtoMsg(message: EvidenceParamsProtoMsg): EvidenceParams {
|
|
508
|
+
return EvidenceParams.decode(message.value);
|
|
509
|
+
},
|
|
510
|
+
toProto(message: EvidenceParams): Uint8Array {
|
|
511
|
+
return EvidenceParams.encode(message).finish();
|
|
512
|
+
},
|
|
513
|
+
toProtoMsg(message: EvidenceParams): EvidenceParamsProtoMsg {
|
|
514
|
+
return {
|
|
515
|
+
typeUrl: "/tendermint.types.EvidenceParams",
|
|
516
|
+
value: EvidenceParams.encode(message).finish()
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
GlobalDecoderRegistry.register(EvidenceParams.typeUrl, EvidenceParams);
|
|
521
|
+
function createBaseValidatorParams(): ValidatorParams {
|
|
522
|
+
return {
|
|
523
|
+
pubKeyTypes: []
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
export const ValidatorParams = {
|
|
527
|
+
typeUrl: "/tendermint.types.ValidatorParams",
|
|
528
|
+
is(o: any): o is ValidatorParams {
|
|
529
|
+
return o && (o.$typeUrl === ValidatorParams.typeUrl || Array.isArray(o.pubKeyTypes) && (!o.pubKeyTypes.length || typeof o.pubKeyTypes[0] === "string"));
|
|
530
|
+
},
|
|
531
|
+
isAmino(o: any): o is ValidatorParamsAmino {
|
|
532
|
+
return o && (o.$typeUrl === ValidatorParams.typeUrl || Array.isArray(o.pub_key_types) && (!o.pub_key_types.length || typeof o.pub_key_types[0] === "string"));
|
|
533
|
+
},
|
|
534
|
+
encode(message: ValidatorParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
535
|
+
for (const v of message.pubKeyTypes) {
|
|
536
|
+
writer.uint32(10).string(v!);
|
|
537
|
+
}
|
|
538
|
+
return writer;
|
|
539
|
+
},
|
|
540
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorParams {
|
|
541
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
542
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
543
|
+
const message = createBaseValidatorParams();
|
|
544
|
+
while (reader.pos < end) {
|
|
545
|
+
const tag = reader.uint32();
|
|
546
|
+
switch (tag >>> 3) {
|
|
547
|
+
case 1:
|
|
548
|
+
message.pubKeyTypes.push(reader.string());
|
|
549
|
+
break;
|
|
550
|
+
default:
|
|
551
|
+
reader.skipType(tag & 7);
|
|
552
|
+
break;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
return message;
|
|
556
|
+
},
|
|
557
|
+
fromPartial(object: DeepPartial<ValidatorParams>): ValidatorParams {
|
|
558
|
+
const message = createBaseValidatorParams();
|
|
559
|
+
message.pubKeyTypes = object.pubKeyTypes?.map(e => e) || [];
|
|
560
|
+
return message;
|
|
561
|
+
},
|
|
562
|
+
fromAmino(object: ValidatorParamsAmino): ValidatorParams {
|
|
563
|
+
const message = createBaseValidatorParams();
|
|
564
|
+
message.pubKeyTypes = object.pub_key_types?.map(e => e) || [];
|
|
565
|
+
return message;
|
|
566
|
+
},
|
|
567
|
+
toAmino(message: ValidatorParams): ValidatorParamsAmino {
|
|
568
|
+
const obj: any = {};
|
|
569
|
+
if (message.pubKeyTypes) {
|
|
570
|
+
obj.pub_key_types = message.pubKeyTypes.map(e => e);
|
|
571
|
+
} else {
|
|
572
|
+
obj.pub_key_types = message.pubKeyTypes;
|
|
573
|
+
}
|
|
574
|
+
return obj;
|
|
575
|
+
},
|
|
576
|
+
fromAminoMsg(object: ValidatorParamsAminoMsg): ValidatorParams {
|
|
577
|
+
return ValidatorParams.fromAmino(object.value);
|
|
578
|
+
},
|
|
579
|
+
fromProtoMsg(message: ValidatorParamsProtoMsg): ValidatorParams {
|
|
580
|
+
return ValidatorParams.decode(message.value);
|
|
581
|
+
},
|
|
582
|
+
toProto(message: ValidatorParams): Uint8Array {
|
|
583
|
+
return ValidatorParams.encode(message).finish();
|
|
584
|
+
},
|
|
585
|
+
toProtoMsg(message: ValidatorParams): ValidatorParamsProtoMsg {
|
|
586
|
+
return {
|
|
587
|
+
typeUrl: "/tendermint.types.ValidatorParams",
|
|
588
|
+
value: ValidatorParams.encode(message).finish()
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
};
|
|
592
|
+
GlobalDecoderRegistry.register(ValidatorParams.typeUrl, ValidatorParams);
|
|
593
|
+
function createBaseVersionParams(): VersionParams {
|
|
594
|
+
return {
|
|
595
|
+
app: BigInt(0)
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
export const VersionParams = {
|
|
599
|
+
typeUrl: "/tendermint.types.VersionParams",
|
|
600
|
+
is(o: any): o is VersionParams {
|
|
601
|
+
return o && (o.$typeUrl === VersionParams.typeUrl || typeof o.app === "bigint");
|
|
602
|
+
},
|
|
603
|
+
isAmino(o: any): o is VersionParamsAmino {
|
|
604
|
+
return o && (o.$typeUrl === VersionParams.typeUrl || typeof o.app === "bigint");
|
|
605
|
+
},
|
|
606
|
+
encode(message: VersionParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
607
|
+
if (message.app !== BigInt(0)) {
|
|
608
|
+
writer.uint32(8).uint64(message.app);
|
|
609
|
+
}
|
|
610
|
+
return writer;
|
|
611
|
+
},
|
|
612
|
+
decode(input: BinaryReader | Uint8Array, length?: number): VersionParams {
|
|
613
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
614
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
615
|
+
const message = createBaseVersionParams();
|
|
616
|
+
while (reader.pos < end) {
|
|
617
|
+
const tag = reader.uint32();
|
|
618
|
+
switch (tag >>> 3) {
|
|
619
|
+
case 1:
|
|
620
|
+
message.app = reader.uint64();
|
|
621
|
+
break;
|
|
622
|
+
default:
|
|
623
|
+
reader.skipType(tag & 7);
|
|
624
|
+
break;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
return message;
|
|
628
|
+
},
|
|
629
|
+
fromPartial(object: DeepPartial<VersionParams>): VersionParams {
|
|
630
|
+
const message = createBaseVersionParams();
|
|
631
|
+
message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0);
|
|
632
|
+
return message;
|
|
633
|
+
},
|
|
634
|
+
fromAmino(object: VersionParamsAmino): VersionParams {
|
|
635
|
+
const message = createBaseVersionParams();
|
|
636
|
+
if (object.app !== undefined && object.app !== null) {
|
|
637
|
+
message.app = BigInt(object.app);
|
|
638
|
+
}
|
|
639
|
+
return message;
|
|
640
|
+
},
|
|
641
|
+
toAmino(message: VersionParams): VersionParamsAmino {
|
|
642
|
+
const obj: any = {};
|
|
643
|
+
obj.app = message.app !== BigInt(0) ? message.app?.toString() : undefined;
|
|
644
|
+
return obj;
|
|
645
|
+
},
|
|
646
|
+
fromAminoMsg(object: VersionParamsAminoMsg): VersionParams {
|
|
647
|
+
return VersionParams.fromAmino(object.value);
|
|
648
|
+
},
|
|
649
|
+
fromProtoMsg(message: VersionParamsProtoMsg): VersionParams {
|
|
650
|
+
return VersionParams.decode(message.value);
|
|
651
|
+
},
|
|
652
|
+
toProto(message: VersionParams): Uint8Array {
|
|
653
|
+
return VersionParams.encode(message).finish();
|
|
654
|
+
},
|
|
655
|
+
toProtoMsg(message: VersionParams): VersionParamsProtoMsg {
|
|
656
|
+
return {
|
|
657
|
+
typeUrl: "/tendermint.types.VersionParams",
|
|
658
|
+
value: VersionParams.encode(message).finish()
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
GlobalDecoderRegistry.register(VersionParams.typeUrl, VersionParams);
|
|
663
|
+
function createBaseHashedParams(): HashedParams {
|
|
664
|
+
return {
|
|
665
|
+
blockMaxBytes: BigInt(0),
|
|
666
|
+
blockMaxGas: BigInt(0)
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
export const HashedParams = {
|
|
670
|
+
typeUrl: "/tendermint.types.HashedParams",
|
|
671
|
+
is(o: any): o is HashedParams {
|
|
672
|
+
return o && (o.$typeUrl === HashedParams.typeUrl || typeof o.blockMaxBytes === "bigint" && typeof o.blockMaxGas === "bigint");
|
|
673
|
+
},
|
|
674
|
+
isAmino(o: any): o is HashedParamsAmino {
|
|
675
|
+
return o && (o.$typeUrl === HashedParams.typeUrl || typeof o.block_max_bytes === "bigint" && typeof o.block_max_gas === "bigint");
|
|
676
|
+
},
|
|
677
|
+
encode(message: HashedParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
678
|
+
if (message.blockMaxBytes !== BigInt(0)) {
|
|
679
|
+
writer.uint32(8).int64(message.blockMaxBytes);
|
|
680
|
+
}
|
|
681
|
+
if (message.blockMaxGas !== BigInt(0)) {
|
|
682
|
+
writer.uint32(16).int64(message.blockMaxGas);
|
|
683
|
+
}
|
|
684
|
+
return writer;
|
|
685
|
+
},
|
|
686
|
+
decode(input: BinaryReader | Uint8Array, length?: number): HashedParams {
|
|
687
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
688
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
689
|
+
const message = createBaseHashedParams();
|
|
690
|
+
while (reader.pos < end) {
|
|
691
|
+
const tag = reader.uint32();
|
|
692
|
+
switch (tag >>> 3) {
|
|
693
|
+
case 1:
|
|
694
|
+
message.blockMaxBytes = reader.int64();
|
|
695
|
+
break;
|
|
696
|
+
case 2:
|
|
697
|
+
message.blockMaxGas = reader.int64();
|
|
698
|
+
break;
|
|
699
|
+
default:
|
|
700
|
+
reader.skipType(tag & 7);
|
|
701
|
+
break;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
return message;
|
|
705
|
+
},
|
|
706
|
+
fromPartial(object: DeepPartial<HashedParams>): HashedParams {
|
|
707
|
+
const message = createBaseHashedParams();
|
|
708
|
+
message.blockMaxBytes = object.blockMaxBytes !== undefined && object.blockMaxBytes !== null ? BigInt(object.blockMaxBytes.toString()) : BigInt(0);
|
|
709
|
+
message.blockMaxGas = object.blockMaxGas !== undefined && object.blockMaxGas !== null ? BigInt(object.blockMaxGas.toString()) : BigInt(0);
|
|
710
|
+
return message;
|
|
711
|
+
},
|
|
712
|
+
fromAmino(object: HashedParamsAmino): HashedParams {
|
|
713
|
+
const message = createBaseHashedParams();
|
|
714
|
+
if (object.block_max_bytes !== undefined && object.block_max_bytes !== null) {
|
|
715
|
+
message.blockMaxBytes = BigInt(object.block_max_bytes);
|
|
716
|
+
}
|
|
717
|
+
if (object.block_max_gas !== undefined && object.block_max_gas !== null) {
|
|
718
|
+
message.blockMaxGas = BigInt(object.block_max_gas);
|
|
719
|
+
}
|
|
720
|
+
return message;
|
|
721
|
+
},
|
|
722
|
+
toAmino(message: HashedParams): HashedParamsAmino {
|
|
723
|
+
const obj: any = {};
|
|
724
|
+
obj.block_max_bytes = message.blockMaxBytes !== BigInt(0) ? message.blockMaxBytes?.toString() : undefined;
|
|
725
|
+
obj.block_max_gas = message.blockMaxGas !== BigInt(0) ? message.blockMaxGas?.toString() : undefined;
|
|
726
|
+
return obj;
|
|
727
|
+
},
|
|
728
|
+
fromAminoMsg(object: HashedParamsAminoMsg): HashedParams {
|
|
729
|
+
return HashedParams.fromAmino(object.value);
|
|
730
|
+
},
|
|
731
|
+
fromProtoMsg(message: HashedParamsProtoMsg): HashedParams {
|
|
732
|
+
return HashedParams.decode(message.value);
|
|
733
|
+
},
|
|
734
|
+
toProto(message: HashedParams): Uint8Array {
|
|
735
|
+
return HashedParams.encode(message).finish();
|
|
736
|
+
},
|
|
737
|
+
toProtoMsg(message: HashedParams): HashedParamsProtoMsg {
|
|
738
|
+
return {
|
|
739
|
+
typeUrl: "/tendermint.types.HashedParams",
|
|
740
|
+
value: HashedParams.encode(message).finish()
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
};
|
|
744
|
+
GlobalDecoderRegistry.register(HashedParams.typeUrl, HashedParams);
|
|
745
|
+
function createBaseABCIParams(): ABCIParams {
|
|
746
|
+
return {
|
|
747
|
+
voteExtensionsEnableHeight: BigInt(0)
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
export const ABCIParams = {
|
|
751
|
+
typeUrl: "/tendermint.types.ABCIParams",
|
|
752
|
+
is(o: any): o is ABCIParams {
|
|
753
|
+
return o && (o.$typeUrl === ABCIParams.typeUrl || typeof o.voteExtensionsEnableHeight === "bigint");
|
|
754
|
+
},
|
|
755
|
+
isAmino(o: any): o is ABCIParamsAmino {
|
|
756
|
+
return o && (o.$typeUrl === ABCIParams.typeUrl || typeof o.vote_extensions_enable_height === "bigint");
|
|
757
|
+
},
|
|
758
|
+
encode(message: ABCIParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
759
|
+
if (message.voteExtensionsEnableHeight !== BigInt(0)) {
|
|
760
|
+
writer.uint32(8).int64(message.voteExtensionsEnableHeight);
|
|
761
|
+
}
|
|
762
|
+
return writer;
|
|
763
|
+
},
|
|
764
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ABCIParams {
|
|
765
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
766
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
767
|
+
const message = createBaseABCIParams();
|
|
768
|
+
while (reader.pos < end) {
|
|
769
|
+
const tag = reader.uint32();
|
|
770
|
+
switch (tag >>> 3) {
|
|
771
|
+
case 1:
|
|
772
|
+
message.voteExtensionsEnableHeight = reader.int64();
|
|
773
|
+
break;
|
|
774
|
+
default:
|
|
775
|
+
reader.skipType(tag & 7);
|
|
776
|
+
break;
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
return message;
|
|
780
|
+
},
|
|
781
|
+
fromPartial(object: DeepPartial<ABCIParams>): ABCIParams {
|
|
782
|
+
const message = createBaseABCIParams();
|
|
783
|
+
message.voteExtensionsEnableHeight = object.voteExtensionsEnableHeight !== undefined && object.voteExtensionsEnableHeight !== null ? BigInt(object.voteExtensionsEnableHeight.toString()) : BigInt(0);
|
|
784
|
+
return message;
|
|
785
|
+
},
|
|
786
|
+
fromAmino(object: ABCIParamsAmino): ABCIParams {
|
|
787
|
+
const message = createBaseABCIParams();
|
|
788
|
+
if (object.vote_extensions_enable_height !== undefined && object.vote_extensions_enable_height !== null) {
|
|
789
|
+
message.voteExtensionsEnableHeight = BigInt(object.vote_extensions_enable_height);
|
|
790
|
+
}
|
|
791
|
+
return message;
|
|
792
|
+
},
|
|
793
|
+
toAmino(message: ABCIParams): ABCIParamsAmino {
|
|
794
|
+
const obj: any = {};
|
|
795
|
+
obj.vote_extensions_enable_height = message.voteExtensionsEnableHeight !== BigInt(0) ? message.voteExtensionsEnableHeight?.toString() : undefined;
|
|
796
|
+
return obj;
|
|
797
|
+
},
|
|
798
|
+
fromAminoMsg(object: ABCIParamsAminoMsg): ABCIParams {
|
|
799
|
+
return ABCIParams.fromAmino(object.value);
|
|
800
|
+
},
|
|
801
|
+
fromProtoMsg(message: ABCIParamsProtoMsg): ABCIParams {
|
|
802
|
+
return ABCIParams.decode(message.value);
|
|
803
|
+
},
|
|
804
|
+
toProto(message: ABCIParams): Uint8Array {
|
|
805
|
+
return ABCIParams.encode(message).finish();
|
|
806
|
+
},
|
|
807
|
+
toProtoMsg(message: ABCIParams): ABCIParamsProtoMsg {
|
|
808
|
+
return {
|
|
809
|
+
typeUrl: "/tendermint.types.ABCIParams",
|
|
810
|
+
value: ABCIParams.encode(message).finish()
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
};
|
|
814
|
+
GlobalDecoderRegistry.register(ABCIParams.typeUrl, ABCIParams);
|