@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,389 @@
|
|
|
1
|
+
import { PublicKey, PublicKeyAmino } from "../crypto/keys";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
3
|
+
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../helpers";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../registry";
|
|
5
|
+
/** BlockIdFlag indicates which BlockID the signature is for */
|
|
6
|
+
export enum BlockIDFlag {
|
|
7
|
+
/** BLOCK_ID_FLAG_UNKNOWN - indicates an error condition */
|
|
8
|
+
BLOCK_ID_FLAG_UNKNOWN = 0,
|
|
9
|
+
/** BLOCK_ID_FLAG_ABSENT - the vote was not received */
|
|
10
|
+
BLOCK_ID_FLAG_ABSENT = 1,
|
|
11
|
+
BLOCK_ID_FLAG_COMMIT = 2,
|
|
12
|
+
/** BLOCK_ID_FLAG_NIL - voted for nil */
|
|
13
|
+
BLOCK_ID_FLAG_NIL = 3,
|
|
14
|
+
UNRECOGNIZED = -1,
|
|
15
|
+
}
|
|
16
|
+
export const BlockIDFlagAmino = BlockIDFlag;
|
|
17
|
+
export function blockIDFlagFromJSON(object: any): BlockIDFlag {
|
|
18
|
+
switch (object) {
|
|
19
|
+
case 0:
|
|
20
|
+
case "BLOCK_ID_FLAG_UNKNOWN":
|
|
21
|
+
return BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN;
|
|
22
|
+
case 1:
|
|
23
|
+
case "BLOCK_ID_FLAG_ABSENT":
|
|
24
|
+
return BlockIDFlag.BLOCK_ID_FLAG_ABSENT;
|
|
25
|
+
case 2:
|
|
26
|
+
case "BLOCK_ID_FLAG_COMMIT":
|
|
27
|
+
return BlockIDFlag.BLOCK_ID_FLAG_COMMIT;
|
|
28
|
+
case 3:
|
|
29
|
+
case "BLOCK_ID_FLAG_NIL":
|
|
30
|
+
return BlockIDFlag.BLOCK_ID_FLAG_NIL;
|
|
31
|
+
case -1:
|
|
32
|
+
case "UNRECOGNIZED":
|
|
33
|
+
default:
|
|
34
|
+
return BlockIDFlag.UNRECOGNIZED;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export function blockIDFlagToJSON(object: BlockIDFlag): string {
|
|
38
|
+
switch (object) {
|
|
39
|
+
case BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN:
|
|
40
|
+
return "BLOCK_ID_FLAG_UNKNOWN";
|
|
41
|
+
case BlockIDFlag.BLOCK_ID_FLAG_ABSENT:
|
|
42
|
+
return "BLOCK_ID_FLAG_ABSENT";
|
|
43
|
+
case BlockIDFlag.BLOCK_ID_FLAG_COMMIT:
|
|
44
|
+
return "BLOCK_ID_FLAG_COMMIT";
|
|
45
|
+
case BlockIDFlag.BLOCK_ID_FLAG_NIL:
|
|
46
|
+
return "BLOCK_ID_FLAG_NIL";
|
|
47
|
+
case BlockIDFlag.UNRECOGNIZED:
|
|
48
|
+
default:
|
|
49
|
+
return "UNRECOGNIZED";
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export interface ValidatorSet {
|
|
53
|
+
validators: Validator[];
|
|
54
|
+
proposer?: Validator;
|
|
55
|
+
totalVotingPower: bigint;
|
|
56
|
+
}
|
|
57
|
+
export interface ValidatorSetProtoMsg {
|
|
58
|
+
typeUrl: "/tendermint.types.ValidatorSet";
|
|
59
|
+
value: Uint8Array;
|
|
60
|
+
}
|
|
61
|
+
export interface ValidatorSetAmino {
|
|
62
|
+
validators: ValidatorAmino[];
|
|
63
|
+
proposer?: ValidatorAmino;
|
|
64
|
+
total_voting_power: string;
|
|
65
|
+
}
|
|
66
|
+
export interface ValidatorSetAminoMsg {
|
|
67
|
+
type: "/tendermint.types.ValidatorSet";
|
|
68
|
+
value: ValidatorSetAmino;
|
|
69
|
+
}
|
|
70
|
+
export interface Validator {
|
|
71
|
+
address: Uint8Array;
|
|
72
|
+
pubKey: PublicKey;
|
|
73
|
+
votingPower: bigint;
|
|
74
|
+
proposerPriority: bigint;
|
|
75
|
+
}
|
|
76
|
+
export interface ValidatorProtoMsg {
|
|
77
|
+
typeUrl: "/tendermint.types.Validator";
|
|
78
|
+
value: Uint8Array;
|
|
79
|
+
}
|
|
80
|
+
export interface ValidatorAmino {
|
|
81
|
+
address: string;
|
|
82
|
+
pub_key: PublicKeyAmino;
|
|
83
|
+
voting_power: string;
|
|
84
|
+
proposer_priority: string;
|
|
85
|
+
}
|
|
86
|
+
export interface ValidatorAminoMsg {
|
|
87
|
+
type: "/tendermint.types.Validator";
|
|
88
|
+
value: ValidatorAmino;
|
|
89
|
+
}
|
|
90
|
+
export interface SimpleValidator {
|
|
91
|
+
pubKey?: PublicKey;
|
|
92
|
+
votingPower: bigint;
|
|
93
|
+
}
|
|
94
|
+
export interface SimpleValidatorProtoMsg {
|
|
95
|
+
typeUrl: "/tendermint.types.SimpleValidator";
|
|
96
|
+
value: Uint8Array;
|
|
97
|
+
}
|
|
98
|
+
export interface SimpleValidatorAmino {
|
|
99
|
+
pub_key?: PublicKeyAmino;
|
|
100
|
+
voting_power: string;
|
|
101
|
+
}
|
|
102
|
+
export interface SimpleValidatorAminoMsg {
|
|
103
|
+
type: "/tendermint.types.SimpleValidator";
|
|
104
|
+
value: SimpleValidatorAmino;
|
|
105
|
+
}
|
|
106
|
+
function createBaseValidatorSet(): ValidatorSet {
|
|
107
|
+
return {
|
|
108
|
+
validators: [],
|
|
109
|
+
proposer: undefined,
|
|
110
|
+
totalVotingPower: BigInt(0)
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
export const ValidatorSet = {
|
|
114
|
+
typeUrl: "/tendermint.types.ValidatorSet",
|
|
115
|
+
is(o: any): o is ValidatorSet {
|
|
116
|
+
return o && (o.$typeUrl === ValidatorSet.typeUrl || Array.isArray(o.validators) && (!o.validators.length || Validator.is(o.validators[0])) && typeof o.totalVotingPower === "bigint");
|
|
117
|
+
},
|
|
118
|
+
isAmino(o: any): o is ValidatorSetAmino {
|
|
119
|
+
return o && (o.$typeUrl === ValidatorSet.typeUrl || Array.isArray(o.validators) && (!o.validators.length || Validator.isAmino(o.validators[0])) && typeof o.total_voting_power === "bigint");
|
|
120
|
+
},
|
|
121
|
+
encode(message: ValidatorSet, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
122
|
+
for (const v of message.validators) {
|
|
123
|
+
Validator.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
124
|
+
}
|
|
125
|
+
if (message.proposer !== undefined) {
|
|
126
|
+
Validator.encode(message.proposer, writer.uint32(18).fork()).ldelim();
|
|
127
|
+
}
|
|
128
|
+
if (message.totalVotingPower !== BigInt(0)) {
|
|
129
|
+
writer.uint32(24).int64(message.totalVotingPower);
|
|
130
|
+
}
|
|
131
|
+
return writer;
|
|
132
|
+
},
|
|
133
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSet {
|
|
134
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
135
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
136
|
+
const message = createBaseValidatorSet();
|
|
137
|
+
while (reader.pos < end) {
|
|
138
|
+
const tag = reader.uint32();
|
|
139
|
+
switch (tag >>> 3) {
|
|
140
|
+
case 1:
|
|
141
|
+
message.validators.push(Validator.decode(reader, reader.uint32()));
|
|
142
|
+
break;
|
|
143
|
+
case 2:
|
|
144
|
+
message.proposer = Validator.decode(reader, reader.uint32());
|
|
145
|
+
break;
|
|
146
|
+
case 3:
|
|
147
|
+
message.totalVotingPower = reader.int64();
|
|
148
|
+
break;
|
|
149
|
+
default:
|
|
150
|
+
reader.skipType(tag & 7);
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return message;
|
|
155
|
+
},
|
|
156
|
+
fromPartial(object: DeepPartial<ValidatorSet>): ValidatorSet {
|
|
157
|
+
const message = createBaseValidatorSet();
|
|
158
|
+
message.validators = object.validators?.map(e => Validator.fromPartial(e)) || [];
|
|
159
|
+
message.proposer = object.proposer !== undefined && object.proposer !== null ? Validator.fromPartial(object.proposer) : undefined;
|
|
160
|
+
message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0);
|
|
161
|
+
return message;
|
|
162
|
+
},
|
|
163
|
+
fromAmino(object: ValidatorSetAmino): ValidatorSet {
|
|
164
|
+
const message = createBaseValidatorSet();
|
|
165
|
+
message.validators = object.validators?.map(e => Validator.fromAmino(e)) || [];
|
|
166
|
+
if (object.proposer !== undefined && object.proposer !== null) {
|
|
167
|
+
message.proposer = Validator.fromAmino(object.proposer);
|
|
168
|
+
}
|
|
169
|
+
if (object.total_voting_power !== undefined && object.total_voting_power !== null) {
|
|
170
|
+
message.totalVotingPower = BigInt(object.total_voting_power);
|
|
171
|
+
}
|
|
172
|
+
return message;
|
|
173
|
+
},
|
|
174
|
+
toAmino(message: ValidatorSet): ValidatorSetAmino {
|
|
175
|
+
const obj: any = {};
|
|
176
|
+
if (message.validators) {
|
|
177
|
+
obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined);
|
|
178
|
+
} else {
|
|
179
|
+
obj.validators = message.validators;
|
|
180
|
+
}
|
|
181
|
+
obj.proposer = message.proposer ? Validator.toAmino(message.proposer) : undefined;
|
|
182
|
+
obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower?.toString() : undefined;
|
|
183
|
+
return obj;
|
|
184
|
+
},
|
|
185
|
+
fromAminoMsg(object: ValidatorSetAminoMsg): ValidatorSet {
|
|
186
|
+
return ValidatorSet.fromAmino(object.value);
|
|
187
|
+
},
|
|
188
|
+
fromProtoMsg(message: ValidatorSetProtoMsg): ValidatorSet {
|
|
189
|
+
return ValidatorSet.decode(message.value);
|
|
190
|
+
},
|
|
191
|
+
toProto(message: ValidatorSet): Uint8Array {
|
|
192
|
+
return ValidatorSet.encode(message).finish();
|
|
193
|
+
},
|
|
194
|
+
toProtoMsg(message: ValidatorSet): ValidatorSetProtoMsg {
|
|
195
|
+
return {
|
|
196
|
+
typeUrl: "/tendermint.types.ValidatorSet",
|
|
197
|
+
value: ValidatorSet.encode(message).finish()
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
GlobalDecoderRegistry.register(ValidatorSet.typeUrl, ValidatorSet);
|
|
202
|
+
function createBaseValidator(): Validator {
|
|
203
|
+
return {
|
|
204
|
+
address: new Uint8Array(),
|
|
205
|
+
pubKey: PublicKey.fromPartial({}),
|
|
206
|
+
votingPower: BigInt(0),
|
|
207
|
+
proposerPriority: BigInt(0)
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
export const Validator = {
|
|
211
|
+
typeUrl: "/tendermint.types.Validator",
|
|
212
|
+
is(o: any): o is Validator {
|
|
213
|
+
return o && (o.$typeUrl === Validator.typeUrl || (o.address instanceof Uint8Array || typeof o.address === "string") && PublicKey.is(o.pubKey) && typeof o.votingPower === "bigint" && typeof o.proposerPriority === "bigint");
|
|
214
|
+
},
|
|
215
|
+
isAmino(o: any): o is ValidatorAmino {
|
|
216
|
+
return o && (o.$typeUrl === Validator.typeUrl || (o.address instanceof Uint8Array || typeof o.address === "string") && PublicKey.isAmino(o.pub_key) && typeof o.voting_power === "bigint" && typeof o.proposer_priority === "bigint");
|
|
217
|
+
},
|
|
218
|
+
encode(message: Validator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
219
|
+
if (message.address.length !== 0) {
|
|
220
|
+
writer.uint32(10).bytes(message.address);
|
|
221
|
+
}
|
|
222
|
+
if (message.pubKey !== undefined) {
|
|
223
|
+
PublicKey.encode(message.pubKey, writer.uint32(18).fork()).ldelim();
|
|
224
|
+
}
|
|
225
|
+
if (message.votingPower !== BigInt(0)) {
|
|
226
|
+
writer.uint32(24).int64(message.votingPower);
|
|
227
|
+
}
|
|
228
|
+
if (message.proposerPriority !== BigInt(0)) {
|
|
229
|
+
writer.uint32(32).int64(message.proposerPriority);
|
|
230
|
+
}
|
|
231
|
+
return writer;
|
|
232
|
+
},
|
|
233
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Validator {
|
|
234
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
235
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
236
|
+
const message = createBaseValidator();
|
|
237
|
+
while (reader.pos < end) {
|
|
238
|
+
const tag = reader.uint32();
|
|
239
|
+
switch (tag >>> 3) {
|
|
240
|
+
case 1:
|
|
241
|
+
message.address = reader.bytes();
|
|
242
|
+
break;
|
|
243
|
+
case 2:
|
|
244
|
+
message.pubKey = PublicKey.decode(reader, reader.uint32());
|
|
245
|
+
break;
|
|
246
|
+
case 3:
|
|
247
|
+
message.votingPower = reader.int64();
|
|
248
|
+
break;
|
|
249
|
+
case 4:
|
|
250
|
+
message.proposerPriority = reader.int64();
|
|
251
|
+
break;
|
|
252
|
+
default:
|
|
253
|
+
reader.skipType(tag & 7);
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return message;
|
|
258
|
+
},
|
|
259
|
+
fromPartial(object: DeepPartial<Validator>): Validator {
|
|
260
|
+
const message = createBaseValidator();
|
|
261
|
+
message.address = object.address ?? new Uint8Array();
|
|
262
|
+
message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? PublicKey.fromPartial(object.pubKey) : undefined;
|
|
263
|
+
message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? BigInt(object.votingPower.toString()) : BigInt(0);
|
|
264
|
+
message.proposerPriority = object.proposerPriority !== undefined && object.proposerPriority !== null ? BigInt(object.proposerPriority.toString()) : BigInt(0);
|
|
265
|
+
return message;
|
|
266
|
+
},
|
|
267
|
+
fromAmino(object: ValidatorAmino): Validator {
|
|
268
|
+
const message = createBaseValidator();
|
|
269
|
+
if (object.address !== undefined && object.address !== null) {
|
|
270
|
+
message.address = bytesFromBase64(object.address);
|
|
271
|
+
}
|
|
272
|
+
if (object.pub_key !== undefined && object.pub_key !== null) {
|
|
273
|
+
message.pubKey = PublicKey.fromAmino(object.pub_key);
|
|
274
|
+
}
|
|
275
|
+
if (object.voting_power !== undefined && object.voting_power !== null) {
|
|
276
|
+
message.votingPower = BigInt(object.voting_power);
|
|
277
|
+
}
|
|
278
|
+
if (object.proposer_priority !== undefined && object.proposer_priority !== null) {
|
|
279
|
+
message.proposerPriority = BigInt(object.proposer_priority);
|
|
280
|
+
}
|
|
281
|
+
return message;
|
|
282
|
+
},
|
|
283
|
+
toAmino(message: Validator): ValidatorAmino {
|
|
284
|
+
const obj: any = {};
|
|
285
|
+
obj.address = message.address ? base64FromBytes(message.address) : undefined;
|
|
286
|
+
obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined;
|
|
287
|
+
obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower?.toString() : undefined;
|
|
288
|
+
obj.proposer_priority = message.proposerPriority !== BigInt(0) ? message.proposerPriority?.toString() : undefined;
|
|
289
|
+
return obj;
|
|
290
|
+
},
|
|
291
|
+
fromAminoMsg(object: ValidatorAminoMsg): Validator {
|
|
292
|
+
return Validator.fromAmino(object.value);
|
|
293
|
+
},
|
|
294
|
+
fromProtoMsg(message: ValidatorProtoMsg): Validator {
|
|
295
|
+
return Validator.decode(message.value);
|
|
296
|
+
},
|
|
297
|
+
toProto(message: Validator): Uint8Array {
|
|
298
|
+
return Validator.encode(message).finish();
|
|
299
|
+
},
|
|
300
|
+
toProtoMsg(message: Validator): ValidatorProtoMsg {
|
|
301
|
+
return {
|
|
302
|
+
typeUrl: "/tendermint.types.Validator",
|
|
303
|
+
value: Validator.encode(message).finish()
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
GlobalDecoderRegistry.register(Validator.typeUrl, Validator);
|
|
308
|
+
function createBaseSimpleValidator(): SimpleValidator {
|
|
309
|
+
return {
|
|
310
|
+
pubKey: undefined,
|
|
311
|
+
votingPower: BigInt(0)
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
export const SimpleValidator = {
|
|
315
|
+
typeUrl: "/tendermint.types.SimpleValidator",
|
|
316
|
+
is(o: any): o is SimpleValidator {
|
|
317
|
+
return o && (o.$typeUrl === SimpleValidator.typeUrl || typeof o.votingPower === "bigint");
|
|
318
|
+
},
|
|
319
|
+
isAmino(o: any): o is SimpleValidatorAmino {
|
|
320
|
+
return o && (o.$typeUrl === SimpleValidator.typeUrl || typeof o.voting_power === "bigint");
|
|
321
|
+
},
|
|
322
|
+
encode(message: SimpleValidator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
323
|
+
if (message.pubKey !== undefined) {
|
|
324
|
+
PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim();
|
|
325
|
+
}
|
|
326
|
+
if (message.votingPower !== BigInt(0)) {
|
|
327
|
+
writer.uint32(16).int64(message.votingPower);
|
|
328
|
+
}
|
|
329
|
+
return writer;
|
|
330
|
+
},
|
|
331
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SimpleValidator {
|
|
332
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
333
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
334
|
+
const message = createBaseSimpleValidator();
|
|
335
|
+
while (reader.pos < end) {
|
|
336
|
+
const tag = reader.uint32();
|
|
337
|
+
switch (tag >>> 3) {
|
|
338
|
+
case 1:
|
|
339
|
+
message.pubKey = PublicKey.decode(reader, reader.uint32());
|
|
340
|
+
break;
|
|
341
|
+
case 2:
|
|
342
|
+
message.votingPower = reader.int64();
|
|
343
|
+
break;
|
|
344
|
+
default:
|
|
345
|
+
reader.skipType(tag & 7);
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
return message;
|
|
350
|
+
},
|
|
351
|
+
fromPartial(object: DeepPartial<SimpleValidator>): SimpleValidator {
|
|
352
|
+
const message = createBaseSimpleValidator();
|
|
353
|
+
message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? PublicKey.fromPartial(object.pubKey) : undefined;
|
|
354
|
+
message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? BigInt(object.votingPower.toString()) : BigInt(0);
|
|
355
|
+
return message;
|
|
356
|
+
},
|
|
357
|
+
fromAmino(object: SimpleValidatorAmino): SimpleValidator {
|
|
358
|
+
const message = createBaseSimpleValidator();
|
|
359
|
+
if (object.pub_key !== undefined && object.pub_key !== null) {
|
|
360
|
+
message.pubKey = PublicKey.fromAmino(object.pub_key);
|
|
361
|
+
}
|
|
362
|
+
if (object.voting_power !== undefined && object.voting_power !== null) {
|
|
363
|
+
message.votingPower = BigInt(object.voting_power);
|
|
364
|
+
}
|
|
365
|
+
return message;
|
|
366
|
+
},
|
|
367
|
+
toAmino(message: SimpleValidator): SimpleValidatorAmino {
|
|
368
|
+
const obj: any = {};
|
|
369
|
+
obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined;
|
|
370
|
+
obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower?.toString() : undefined;
|
|
371
|
+
return obj;
|
|
372
|
+
},
|
|
373
|
+
fromAminoMsg(object: SimpleValidatorAminoMsg): SimpleValidator {
|
|
374
|
+
return SimpleValidator.fromAmino(object.value);
|
|
375
|
+
},
|
|
376
|
+
fromProtoMsg(message: SimpleValidatorProtoMsg): SimpleValidator {
|
|
377
|
+
return SimpleValidator.decode(message.value);
|
|
378
|
+
},
|
|
379
|
+
toProto(message: SimpleValidator): Uint8Array {
|
|
380
|
+
return SimpleValidator.encode(message).finish();
|
|
381
|
+
},
|
|
382
|
+
toProtoMsg(message: SimpleValidator): SimpleValidatorProtoMsg {
|
|
383
|
+
return {
|
|
384
|
+
typeUrl: "/tendermint.types.SimpleValidator",
|
|
385
|
+
value: SimpleValidator.encode(message).finish()
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
GlobalDecoderRegistry.register(SimpleValidator.typeUrl, SimpleValidator);
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
2
|
+
import { DeepPartial } from "../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../registry";
|
|
4
|
+
/**
|
|
5
|
+
* App includes the protocol and software version for the application.
|
|
6
|
+
* This information is included in ResponseInfo. The App.Protocol can be
|
|
7
|
+
* updated in ResponseEndBlock.
|
|
8
|
+
*/
|
|
9
|
+
export interface App {
|
|
10
|
+
protocol: bigint;
|
|
11
|
+
software: string;
|
|
12
|
+
}
|
|
13
|
+
export interface AppProtoMsg {
|
|
14
|
+
typeUrl: "/tendermint.version.App";
|
|
15
|
+
value: Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* App includes the protocol and software version for the application.
|
|
19
|
+
* This information is included in ResponseInfo. The App.Protocol can be
|
|
20
|
+
* updated in ResponseEndBlock.
|
|
21
|
+
*/
|
|
22
|
+
export interface AppAmino {
|
|
23
|
+
protocol: string;
|
|
24
|
+
software: string;
|
|
25
|
+
}
|
|
26
|
+
export interface AppAminoMsg {
|
|
27
|
+
type: "/tendermint.version.App";
|
|
28
|
+
value: AppAmino;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Consensus captures the consensus rules for processing a block in the blockchain,
|
|
32
|
+
* including all blockchain data structures and the rules of the application's
|
|
33
|
+
* state transition machine.
|
|
34
|
+
*/
|
|
35
|
+
export interface Consensus {
|
|
36
|
+
block: bigint;
|
|
37
|
+
app: bigint;
|
|
38
|
+
}
|
|
39
|
+
export interface ConsensusProtoMsg {
|
|
40
|
+
typeUrl: "/tendermint.version.Consensus";
|
|
41
|
+
value: Uint8Array;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Consensus captures the consensus rules for processing a block in the blockchain,
|
|
45
|
+
* including all blockchain data structures and the rules of the application's
|
|
46
|
+
* state transition machine.
|
|
47
|
+
*/
|
|
48
|
+
export interface ConsensusAmino {
|
|
49
|
+
block: string;
|
|
50
|
+
app: string;
|
|
51
|
+
}
|
|
52
|
+
export interface ConsensusAminoMsg {
|
|
53
|
+
type: "/tendermint.version.Consensus";
|
|
54
|
+
value: ConsensusAmino;
|
|
55
|
+
}
|
|
56
|
+
function createBaseApp(): App {
|
|
57
|
+
return {
|
|
58
|
+
protocol: BigInt(0),
|
|
59
|
+
software: ""
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export const App = {
|
|
63
|
+
typeUrl: "/tendermint.version.App",
|
|
64
|
+
is(o: any): o is App {
|
|
65
|
+
return o && (o.$typeUrl === App.typeUrl || typeof o.protocol === "bigint" && typeof o.software === "string");
|
|
66
|
+
},
|
|
67
|
+
isAmino(o: any): o is AppAmino {
|
|
68
|
+
return o && (o.$typeUrl === App.typeUrl || typeof o.protocol === "bigint" && typeof o.software === "string");
|
|
69
|
+
},
|
|
70
|
+
encode(message: App, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
71
|
+
if (message.protocol !== BigInt(0)) {
|
|
72
|
+
writer.uint32(8).uint64(message.protocol);
|
|
73
|
+
}
|
|
74
|
+
if (message.software !== "") {
|
|
75
|
+
writer.uint32(18).string(message.software);
|
|
76
|
+
}
|
|
77
|
+
return writer;
|
|
78
|
+
},
|
|
79
|
+
decode(input: BinaryReader | Uint8Array, length?: number): App {
|
|
80
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
81
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
82
|
+
const message = createBaseApp();
|
|
83
|
+
while (reader.pos < end) {
|
|
84
|
+
const tag = reader.uint32();
|
|
85
|
+
switch (tag >>> 3) {
|
|
86
|
+
case 1:
|
|
87
|
+
message.protocol = reader.uint64();
|
|
88
|
+
break;
|
|
89
|
+
case 2:
|
|
90
|
+
message.software = reader.string();
|
|
91
|
+
break;
|
|
92
|
+
default:
|
|
93
|
+
reader.skipType(tag & 7);
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return message;
|
|
98
|
+
},
|
|
99
|
+
fromPartial(object: DeepPartial<App>): App {
|
|
100
|
+
const message = createBaseApp();
|
|
101
|
+
message.protocol = object.protocol !== undefined && object.protocol !== null ? BigInt(object.protocol.toString()) : BigInt(0);
|
|
102
|
+
message.software = object.software ?? "";
|
|
103
|
+
return message;
|
|
104
|
+
},
|
|
105
|
+
fromAmino(object: AppAmino): App {
|
|
106
|
+
const message = createBaseApp();
|
|
107
|
+
if (object.protocol !== undefined && object.protocol !== null) {
|
|
108
|
+
message.protocol = BigInt(object.protocol);
|
|
109
|
+
}
|
|
110
|
+
if (object.software !== undefined && object.software !== null) {
|
|
111
|
+
message.software = object.software;
|
|
112
|
+
}
|
|
113
|
+
return message;
|
|
114
|
+
},
|
|
115
|
+
toAmino(message: App): AppAmino {
|
|
116
|
+
const obj: any = {};
|
|
117
|
+
obj.protocol = message.protocol !== BigInt(0) ? message.protocol?.toString() : undefined;
|
|
118
|
+
obj.software = message.software === "" ? undefined : message.software;
|
|
119
|
+
return obj;
|
|
120
|
+
},
|
|
121
|
+
fromAminoMsg(object: AppAminoMsg): App {
|
|
122
|
+
return App.fromAmino(object.value);
|
|
123
|
+
},
|
|
124
|
+
fromProtoMsg(message: AppProtoMsg): App {
|
|
125
|
+
return App.decode(message.value);
|
|
126
|
+
},
|
|
127
|
+
toProto(message: App): Uint8Array {
|
|
128
|
+
return App.encode(message).finish();
|
|
129
|
+
},
|
|
130
|
+
toProtoMsg(message: App): AppProtoMsg {
|
|
131
|
+
return {
|
|
132
|
+
typeUrl: "/tendermint.version.App",
|
|
133
|
+
value: App.encode(message).finish()
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
GlobalDecoderRegistry.register(App.typeUrl, App);
|
|
138
|
+
function createBaseConsensus(): Consensus {
|
|
139
|
+
return {
|
|
140
|
+
block: BigInt(0),
|
|
141
|
+
app: BigInt(0)
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
export const Consensus = {
|
|
145
|
+
typeUrl: "/tendermint.version.Consensus",
|
|
146
|
+
is(o: any): o is Consensus {
|
|
147
|
+
return o && (o.$typeUrl === Consensus.typeUrl || typeof o.block === "bigint" && typeof o.app === "bigint");
|
|
148
|
+
},
|
|
149
|
+
isAmino(o: any): o is ConsensusAmino {
|
|
150
|
+
return o && (o.$typeUrl === Consensus.typeUrl || typeof o.block === "bigint" && typeof o.app === "bigint");
|
|
151
|
+
},
|
|
152
|
+
encode(message: Consensus, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
153
|
+
if (message.block !== BigInt(0)) {
|
|
154
|
+
writer.uint32(8).uint64(message.block);
|
|
155
|
+
}
|
|
156
|
+
if (message.app !== BigInt(0)) {
|
|
157
|
+
writer.uint32(16).uint64(message.app);
|
|
158
|
+
}
|
|
159
|
+
return writer;
|
|
160
|
+
},
|
|
161
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Consensus {
|
|
162
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
163
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
164
|
+
const message = createBaseConsensus();
|
|
165
|
+
while (reader.pos < end) {
|
|
166
|
+
const tag = reader.uint32();
|
|
167
|
+
switch (tag >>> 3) {
|
|
168
|
+
case 1:
|
|
169
|
+
message.block = reader.uint64();
|
|
170
|
+
break;
|
|
171
|
+
case 2:
|
|
172
|
+
message.app = reader.uint64();
|
|
173
|
+
break;
|
|
174
|
+
default:
|
|
175
|
+
reader.skipType(tag & 7);
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return message;
|
|
180
|
+
},
|
|
181
|
+
fromPartial(object: DeepPartial<Consensus>): Consensus {
|
|
182
|
+
const message = createBaseConsensus();
|
|
183
|
+
message.block = object.block !== undefined && object.block !== null ? BigInt(object.block.toString()) : BigInt(0);
|
|
184
|
+
message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0);
|
|
185
|
+
return message;
|
|
186
|
+
},
|
|
187
|
+
fromAmino(object: ConsensusAmino): Consensus {
|
|
188
|
+
const message = createBaseConsensus();
|
|
189
|
+
if (object.block !== undefined && object.block !== null) {
|
|
190
|
+
message.block = BigInt(object.block);
|
|
191
|
+
}
|
|
192
|
+
if (object.app !== undefined && object.app !== null) {
|
|
193
|
+
message.app = BigInt(object.app);
|
|
194
|
+
}
|
|
195
|
+
return message;
|
|
196
|
+
},
|
|
197
|
+
toAmino(message: Consensus): ConsensusAmino {
|
|
198
|
+
const obj: any = {};
|
|
199
|
+
obj.block = message.block !== BigInt(0) ? message.block?.toString() : undefined;
|
|
200
|
+
obj.app = message.app !== BigInt(0) ? message.app?.toString() : undefined;
|
|
201
|
+
return obj;
|
|
202
|
+
},
|
|
203
|
+
fromAminoMsg(object: ConsensusAminoMsg): Consensus {
|
|
204
|
+
return Consensus.fromAmino(object.value);
|
|
205
|
+
},
|
|
206
|
+
fromProtoMsg(message: ConsensusProtoMsg): Consensus {
|
|
207
|
+
return Consensus.decode(message.value);
|
|
208
|
+
},
|
|
209
|
+
toProto(message: Consensus): Uint8Array {
|
|
210
|
+
return Consensus.encode(message).finish();
|
|
211
|
+
},
|
|
212
|
+
toProtoMsg(message: Consensus): ConsensusProtoMsg {
|
|
213
|
+
return {
|
|
214
|
+
typeUrl: "/tendermint.version.Consensus",
|
|
215
|
+
value: Consensus.encode(message).finish()
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
GlobalDecoderRegistry.register(Consensus.typeUrl, Consensus);
|