@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,103 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
2
|
+
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../registry";
|
|
4
|
+
/** PublicKey defines the keys available for use with Validators */
|
|
5
|
+
export interface PublicKey {
|
|
6
|
+
ed25519?: Uint8Array;
|
|
7
|
+
secp256k1?: Uint8Array;
|
|
8
|
+
}
|
|
9
|
+
export interface PublicKeyProtoMsg {
|
|
10
|
+
typeUrl: "/tendermint.crypto.PublicKey";
|
|
11
|
+
value: Uint8Array;
|
|
12
|
+
}
|
|
13
|
+
/** PublicKey defines the keys available for use with Validators */
|
|
14
|
+
export interface PublicKeyAmino {
|
|
15
|
+
ed25519?: string;
|
|
16
|
+
secp256k1?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface PublicKeyAminoMsg {
|
|
19
|
+
type: "/tendermint.crypto.PublicKey";
|
|
20
|
+
value: PublicKeyAmino;
|
|
21
|
+
}
|
|
22
|
+
function createBasePublicKey(): PublicKey {
|
|
23
|
+
return {
|
|
24
|
+
ed25519: undefined,
|
|
25
|
+
secp256k1: undefined
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export const PublicKey = {
|
|
29
|
+
typeUrl: "/tendermint.crypto.PublicKey",
|
|
30
|
+
is(o: any): o is PublicKey {
|
|
31
|
+
return o && o.$typeUrl === PublicKey.typeUrl;
|
|
32
|
+
},
|
|
33
|
+
isAmino(o: any): o is PublicKeyAmino {
|
|
34
|
+
return o && o.$typeUrl === PublicKey.typeUrl;
|
|
35
|
+
},
|
|
36
|
+
encode(message: PublicKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
37
|
+
if (message.ed25519 !== undefined) {
|
|
38
|
+
writer.uint32(10).bytes(message.ed25519);
|
|
39
|
+
}
|
|
40
|
+
if (message.secp256k1 !== undefined) {
|
|
41
|
+
writer.uint32(18).bytes(message.secp256k1);
|
|
42
|
+
}
|
|
43
|
+
return writer;
|
|
44
|
+
},
|
|
45
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PublicKey {
|
|
46
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
47
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
48
|
+
const message = createBasePublicKey();
|
|
49
|
+
while (reader.pos < end) {
|
|
50
|
+
const tag = reader.uint32();
|
|
51
|
+
switch (tag >>> 3) {
|
|
52
|
+
case 1:
|
|
53
|
+
message.ed25519 = reader.bytes();
|
|
54
|
+
break;
|
|
55
|
+
case 2:
|
|
56
|
+
message.secp256k1 = reader.bytes();
|
|
57
|
+
break;
|
|
58
|
+
default:
|
|
59
|
+
reader.skipType(tag & 7);
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
fromPartial(object: DeepPartial<PublicKey>): PublicKey {
|
|
66
|
+
const message = createBasePublicKey();
|
|
67
|
+
message.ed25519 = object.ed25519 ?? undefined;
|
|
68
|
+
message.secp256k1 = object.secp256k1 ?? undefined;
|
|
69
|
+
return message;
|
|
70
|
+
},
|
|
71
|
+
fromAmino(object: PublicKeyAmino): PublicKey {
|
|
72
|
+
const message = createBasePublicKey();
|
|
73
|
+
if (object.ed25519 !== undefined && object.ed25519 !== null) {
|
|
74
|
+
message.ed25519 = bytesFromBase64(object.ed25519);
|
|
75
|
+
}
|
|
76
|
+
if (object.secp256k1 !== undefined && object.secp256k1 !== null) {
|
|
77
|
+
message.secp256k1 = bytesFromBase64(object.secp256k1);
|
|
78
|
+
}
|
|
79
|
+
return message;
|
|
80
|
+
},
|
|
81
|
+
toAmino(message: PublicKey): PublicKeyAmino {
|
|
82
|
+
const obj: any = {};
|
|
83
|
+
obj.ed25519 = message.ed25519 ? base64FromBytes(message.ed25519) : undefined;
|
|
84
|
+
obj.secp256k1 = message.secp256k1 ? base64FromBytes(message.secp256k1) : undefined;
|
|
85
|
+
return obj;
|
|
86
|
+
},
|
|
87
|
+
fromAminoMsg(object: PublicKeyAminoMsg): PublicKey {
|
|
88
|
+
return PublicKey.fromAmino(object.value);
|
|
89
|
+
},
|
|
90
|
+
fromProtoMsg(message: PublicKeyProtoMsg): PublicKey {
|
|
91
|
+
return PublicKey.decode(message.value);
|
|
92
|
+
},
|
|
93
|
+
toProto(message: PublicKey): Uint8Array {
|
|
94
|
+
return PublicKey.encode(message).finish();
|
|
95
|
+
},
|
|
96
|
+
toProtoMsg(message: PublicKey): PublicKeyProtoMsg {
|
|
97
|
+
return {
|
|
98
|
+
typeUrl: "/tendermint.crypto.PublicKey",
|
|
99
|
+
value: PublicKey.encode(message).finish()
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
GlobalDecoderRegistry.register(PublicKey.typeUrl, PublicKey);
|
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
2
|
+
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../registry";
|
|
4
|
+
export interface Proof {
|
|
5
|
+
total: bigint;
|
|
6
|
+
index: bigint;
|
|
7
|
+
leafHash: Uint8Array;
|
|
8
|
+
aunts: Uint8Array[];
|
|
9
|
+
}
|
|
10
|
+
export interface ProofProtoMsg {
|
|
11
|
+
typeUrl: "/tendermint.crypto.Proof";
|
|
12
|
+
value: Uint8Array;
|
|
13
|
+
}
|
|
14
|
+
export interface ProofAmino {
|
|
15
|
+
total: string;
|
|
16
|
+
index: string;
|
|
17
|
+
leaf_hash: string;
|
|
18
|
+
aunts: string[];
|
|
19
|
+
}
|
|
20
|
+
export interface ProofAminoMsg {
|
|
21
|
+
type: "/tendermint.crypto.Proof";
|
|
22
|
+
value: ProofAmino;
|
|
23
|
+
}
|
|
24
|
+
export interface ValueOp {
|
|
25
|
+
/** Encoded in ProofOp.Key. */
|
|
26
|
+
key: Uint8Array;
|
|
27
|
+
/** To encode in ProofOp.Data */
|
|
28
|
+
proof?: Proof;
|
|
29
|
+
}
|
|
30
|
+
export interface ValueOpProtoMsg {
|
|
31
|
+
typeUrl: "/tendermint.crypto.ValueOp";
|
|
32
|
+
value: Uint8Array;
|
|
33
|
+
}
|
|
34
|
+
export interface ValueOpAmino {
|
|
35
|
+
/** Encoded in ProofOp.Key. */
|
|
36
|
+
key: string;
|
|
37
|
+
/** To encode in ProofOp.Data */
|
|
38
|
+
proof?: ProofAmino;
|
|
39
|
+
}
|
|
40
|
+
export interface ValueOpAminoMsg {
|
|
41
|
+
type: "/tendermint.crypto.ValueOp";
|
|
42
|
+
value: ValueOpAmino;
|
|
43
|
+
}
|
|
44
|
+
export interface DominoOp {
|
|
45
|
+
key: string;
|
|
46
|
+
input: string;
|
|
47
|
+
output: string;
|
|
48
|
+
}
|
|
49
|
+
export interface DominoOpProtoMsg {
|
|
50
|
+
typeUrl: "/tendermint.crypto.DominoOp";
|
|
51
|
+
value: Uint8Array;
|
|
52
|
+
}
|
|
53
|
+
export interface DominoOpAmino {
|
|
54
|
+
key: string;
|
|
55
|
+
input: string;
|
|
56
|
+
output: string;
|
|
57
|
+
}
|
|
58
|
+
export interface DominoOpAminoMsg {
|
|
59
|
+
type: "/tendermint.crypto.DominoOp";
|
|
60
|
+
value: DominoOpAmino;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* ProofOp defines an operation used for calculating Merkle root
|
|
64
|
+
* The data could be arbitrary format, providing nessecary data
|
|
65
|
+
* for example neighbouring node hash
|
|
66
|
+
*/
|
|
67
|
+
export interface ProofOp {
|
|
68
|
+
type: string;
|
|
69
|
+
key: Uint8Array;
|
|
70
|
+
data: Uint8Array;
|
|
71
|
+
}
|
|
72
|
+
export interface ProofOpProtoMsg {
|
|
73
|
+
typeUrl: "/tendermint.crypto.ProofOp";
|
|
74
|
+
value: Uint8Array;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* ProofOp defines an operation used for calculating Merkle root
|
|
78
|
+
* The data could be arbitrary format, providing nessecary data
|
|
79
|
+
* for example neighbouring node hash
|
|
80
|
+
*/
|
|
81
|
+
export interface ProofOpAmino {
|
|
82
|
+
type: string;
|
|
83
|
+
key: string;
|
|
84
|
+
data: string;
|
|
85
|
+
}
|
|
86
|
+
export interface ProofOpAminoMsg {
|
|
87
|
+
type: "/tendermint.crypto.ProofOp";
|
|
88
|
+
value: ProofOpAmino;
|
|
89
|
+
}
|
|
90
|
+
/** ProofOps is Merkle proof defined by the list of ProofOps */
|
|
91
|
+
export interface ProofOps {
|
|
92
|
+
ops: ProofOp[];
|
|
93
|
+
}
|
|
94
|
+
export interface ProofOpsProtoMsg {
|
|
95
|
+
typeUrl: "/tendermint.crypto.ProofOps";
|
|
96
|
+
value: Uint8Array;
|
|
97
|
+
}
|
|
98
|
+
/** ProofOps is Merkle proof defined by the list of ProofOps */
|
|
99
|
+
export interface ProofOpsAmino {
|
|
100
|
+
ops: ProofOpAmino[];
|
|
101
|
+
}
|
|
102
|
+
export interface ProofOpsAminoMsg {
|
|
103
|
+
type: "/tendermint.crypto.ProofOps";
|
|
104
|
+
value: ProofOpsAmino;
|
|
105
|
+
}
|
|
106
|
+
function createBaseProof(): Proof {
|
|
107
|
+
return {
|
|
108
|
+
total: BigInt(0),
|
|
109
|
+
index: BigInt(0),
|
|
110
|
+
leafHash: new Uint8Array(),
|
|
111
|
+
aunts: []
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
export const Proof = {
|
|
115
|
+
typeUrl: "/tendermint.crypto.Proof",
|
|
116
|
+
is(o: any): o is Proof {
|
|
117
|
+
return o && (o.$typeUrl === Proof.typeUrl || typeof o.total === "bigint" && typeof o.index === "bigint" && (o.leafHash instanceof Uint8Array || typeof o.leafHash === "string") && Array.isArray(o.aunts) && (!o.aunts.length || o.aunts[0] instanceof Uint8Array || typeof o.aunts[0] === "string"));
|
|
118
|
+
},
|
|
119
|
+
isAmino(o: any): o is ProofAmino {
|
|
120
|
+
return o && (o.$typeUrl === Proof.typeUrl || typeof o.total === "bigint" && typeof o.index === "bigint" && (o.leaf_hash instanceof Uint8Array || typeof o.leaf_hash === "string") && Array.isArray(o.aunts) && (!o.aunts.length || o.aunts[0] instanceof Uint8Array || typeof o.aunts[0] === "string"));
|
|
121
|
+
},
|
|
122
|
+
encode(message: Proof, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
123
|
+
if (message.total !== BigInt(0)) {
|
|
124
|
+
writer.uint32(8).int64(message.total);
|
|
125
|
+
}
|
|
126
|
+
if (message.index !== BigInt(0)) {
|
|
127
|
+
writer.uint32(16).int64(message.index);
|
|
128
|
+
}
|
|
129
|
+
if (message.leafHash.length !== 0) {
|
|
130
|
+
writer.uint32(26).bytes(message.leafHash);
|
|
131
|
+
}
|
|
132
|
+
for (const v of message.aunts) {
|
|
133
|
+
writer.uint32(34).bytes(v!);
|
|
134
|
+
}
|
|
135
|
+
return writer;
|
|
136
|
+
},
|
|
137
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Proof {
|
|
138
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
139
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
140
|
+
const message = createBaseProof();
|
|
141
|
+
while (reader.pos < end) {
|
|
142
|
+
const tag = reader.uint32();
|
|
143
|
+
switch (tag >>> 3) {
|
|
144
|
+
case 1:
|
|
145
|
+
message.total = reader.int64();
|
|
146
|
+
break;
|
|
147
|
+
case 2:
|
|
148
|
+
message.index = reader.int64();
|
|
149
|
+
break;
|
|
150
|
+
case 3:
|
|
151
|
+
message.leafHash = reader.bytes();
|
|
152
|
+
break;
|
|
153
|
+
case 4:
|
|
154
|
+
message.aunts.push(reader.bytes());
|
|
155
|
+
break;
|
|
156
|
+
default:
|
|
157
|
+
reader.skipType(tag & 7);
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return message;
|
|
162
|
+
},
|
|
163
|
+
fromPartial(object: DeepPartial<Proof>): Proof {
|
|
164
|
+
const message = createBaseProof();
|
|
165
|
+
message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0);
|
|
166
|
+
message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0);
|
|
167
|
+
message.leafHash = object.leafHash ?? new Uint8Array();
|
|
168
|
+
message.aunts = object.aunts?.map(e => e) || [];
|
|
169
|
+
return message;
|
|
170
|
+
},
|
|
171
|
+
fromAmino(object: ProofAmino): Proof {
|
|
172
|
+
const message = createBaseProof();
|
|
173
|
+
if (object.total !== undefined && object.total !== null) {
|
|
174
|
+
message.total = BigInt(object.total);
|
|
175
|
+
}
|
|
176
|
+
if (object.index !== undefined && object.index !== null) {
|
|
177
|
+
message.index = BigInt(object.index);
|
|
178
|
+
}
|
|
179
|
+
if (object.leaf_hash !== undefined && object.leaf_hash !== null) {
|
|
180
|
+
message.leafHash = bytesFromBase64(object.leaf_hash);
|
|
181
|
+
}
|
|
182
|
+
message.aunts = object.aunts?.map(e => bytesFromBase64(e)) || [];
|
|
183
|
+
return message;
|
|
184
|
+
},
|
|
185
|
+
toAmino(message: Proof): ProofAmino {
|
|
186
|
+
const obj: any = {};
|
|
187
|
+
obj.total = message.total !== BigInt(0) ? message.total?.toString() : undefined;
|
|
188
|
+
obj.index = message.index !== BigInt(0) ? message.index?.toString() : undefined;
|
|
189
|
+
obj.leaf_hash = message.leafHash ? base64FromBytes(message.leafHash) : undefined;
|
|
190
|
+
if (message.aunts) {
|
|
191
|
+
obj.aunts = message.aunts.map(e => base64FromBytes(e));
|
|
192
|
+
} else {
|
|
193
|
+
obj.aunts = message.aunts;
|
|
194
|
+
}
|
|
195
|
+
return obj;
|
|
196
|
+
},
|
|
197
|
+
fromAminoMsg(object: ProofAminoMsg): Proof {
|
|
198
|
+
return Proof.fromAmino(object.value);
|
|
199
|
+
},
|
|
200
|
+
fromProtoMsg(message: ProofProtoMsg): Proof {
|
|
201
|
+
return Proof.decode(message.value);
|
|
202
|
+
},
|
|
203
|
+
toProto(message: Proof): Uint8Array {
|
|
204
|
+
return Proof.encode(message).finish();
|
|
205
|
+
},
|
|
206
|
+
toProtoMsg(message: Proof): ProofProtoMsg {
|
|
207
|
+
return {
|
|
208
|
+
typeUrl: "/tendermint.crypto.Proof",
|
|
209
|
+
value: Proof.encode(message).finish()
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
GlobalDecoderRegistry.register(Proof.typeUrl, Proof);
|
|
214
|
+
function createBaseValueOp(): ValueOp {
|
|
215
|
+
return {
|
|
216
|
+
key: new Uint8Array(),
|
|
217
|
+
proof: undefined
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
export const ValueOp = {
|
|
221
|
+
typeUrl: "/tendermint.crypto.ValueOp",
|
|
222
|
+
is(o: any): o is ValueOp {
|
|
223
|
+
return o && (o.$typeUrl === ValueOp.typeUrl || o.key instanceof Uint8Array || typeof o.key === "string");
|
|
224
|
+
},
|
|
225
|
+
isAmino(o: any): o is ValueOpAmino {
|
|
226
|
+
return o && (o.$typeUrl === ValueOp.typeUrl || o.key instanceof Uint8Array || typeof o.key === "string");
|
|
227
|
+
},
|
|
228
|
+
encode(message: ValueOp, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
229
|
+
if (message.key.length !== 0) {
|
|
230
|
+
writer.uint32(10).bytes(message.key);
|
|
231
|
+
}
|
|
232
|
+
if (message.proof !== undefined) {
|
|
233
|
+
Proof.encode(message.proof, writer.uint32(18).fork()).ldelim();
|
|
234
|
+
}
|
|
235
|
+
return writer;
|
|
236
|
+
},
|
|
237
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValueOp {
|
|
238
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
239
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
240
|
+
const message = createBaseValueOp();
|
|
241
|
+
while (reader.pos < end) {
|
|
242
|
+
const tag = reader.uint32();
|
|
243
|
+
switch (tag >>> 3) {
|
|
244
|
+
case 1:
|
|
245
|
+
message.key = reader.bytes();
|
|
246
|
+
break;
|
|
247
|
+
case 2:
|
|
248
|
+
message.proof = Proof.decode(reader, reader.uint32());
|
|
249
|
+
break;
|
|
250
|
+
default:
|
|
251
|
+
reader.skipType(tag & 7);
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return message;
|
|
256
|
+
},
|
|
257
|
+
fromPartial(object: DeepPartial<ValueOp>): ValueOp {
|
|
258
|
+
const message = createBaseValueOp();
|
|
259
|
+
message.key = object.key ?? new Uint8Array();
|
|
260
|
+
message.proof = object.proof !== undefined && object.proof !== null ? Proof.fromPartial(object.proof) : undefined;
|
|
261
|
+
return message;
|
|
262
|
+
},
|
|
263
|
+
fromAmino(object: ValueOpAmino): ValueOp {
|
|
264
|
+
const message = createBaseValueOp();
|
|
265
|
+
if (object.key !== undefined && object.key !== null) {
|
|
266
|
+
message.key = bytesFromBase64(object.key);
|
|
267
|
+
}
|
|
268
|
+
if (object.proof !== undefined && object.proof !== null) {
|
|
269
|
+
message.proof = Proof.fromAmino(object.proof);
|
|
270
|
+
}
|
|
271
|
+
return message;
|
|
272
|
+
},
|
|
273
|
+
toAmino(message: ValueOp): ValueOpAmino {
|
|
274
|
+
const obj: any = {};
|
|
275
|
+
obj.key = message.key ? base64FromBytes(message.key) : undefined;
|
|
276
|
+
obj.proof = message.proof ? Proof.toAmino(message.proof) : undefined;
|
|
277
|
+
return obj;
|
|
278
|
+
},
|
|
279
|
+
fromAminoMsg(object: ValueOpAminoMsg): ValueOp {
|
|
280
|
+
return ValueOp.fromAmino(object.value);
|
|
281
|
+
},
|
|
282
|
+
fromProtoMsg(message: ValueOpProtoMsg): ValueOp {
|
|
283
|
+
return ValueOp.decode(message.value);
|
|
284
|
+
},
|
|
285
|
+
toProto(message: ValueOp): Uint8Array {
|
|
286
|
+
return ValueOp.encode(message).finish();
|
|
287
|
+
},
|
|
288
|
+
toProtoMsg(message: ValueOp): ValueOpProtoMsg {
|
|
289
|
+
return {
|
|
290
|
+
typeUrl: "/tendermint.crypto.ValueOp",
|
|
291
|
+
value: ValueOp.encode(message).finish()
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
GlobalDecoderRegistry.register(ValueOp.typeUrl, ValueOp);
|
|
296
|
+
function createBaseDominoOp(): DominoOp {
|
|
297
|
+
return {
|
|
298
|
+
key: "",
|
|
299
|
+
input: "",
|
|
300
|
+
output: ""
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
export const DominoOp = {
|
|
304
|
+
typeUrl: "/tendermint.crypto.DominoOp",
|
|
305
|
+
is(o: any): o is DominoOp {
|
|
306
|
+
return o && (o.$typeUrl === DominoOp.typeUrl || typeof o.key === "string" && typeof o.input === "string" && typeof o.output === "string");
|
|
307
|
+
},
|
|
308
|
+
isAmino(o: any): o is DominoOpAmino {
|
|
309
|
+
return o && (o.$typeUrl === DominoOp.typeUrl || typeof o.key === "string" && typeof o.input === "string" && typeof o.output === "string");
|
|
310
|
+
},
|
|
311
|
+
encode(message: DominoOp, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
312
|
+
if (message.key !== "") {
|
|
313
|
+
writer.uint32(10).string(message.key);
|
|
314
|
+
}
|
|
315
|
+
if (message.input !== "") {
|
|
316
|
+
writer.uint32(18).string(message.input);
|
|
317
|
+
}
|
|
318
|
+
if (message.output !== "") {
|
|
319
|
+
writer.uint32(26).string(message.output);
|
|
320
|
+
}
|
|
321
|
+
return writer;
|
|
322
|
+
},
|
|
323
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DominoOp {
|
|
324
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
325
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
326
|
+
const message = createBaseDominoOp();
|
|
327
|
+
while (reader.pos < end) {
|
|
328
|
+
const tag = reader.uint32();
|
|
329
|
+
switch (tag >>> 3) {
|
|
330
|
+
case 1:
|
|
331
|
+
message.key = reader.string();
|
|
332
|
+
break;
|
|
333
|
+
case 2:
|
|
334
|
+
message.input = reader.string();
|
|
335
|
+
break;
|
|
336
|
+
case 3:
|
|
337
|
+
message.output = reader.string();
|
|
338
|
+
break;
|
|
339
|
+
default:
|
|
340
|
+
reader.skipType(tag & 7);
|
|
341
|
+
break;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
return message;
|
|
345
|
+
},
|
|
346
|
+
fromPartial(object: DeepPartial<DominoOp>): DominoOp {
|
|
347
|
+
const message = createBaseDominoOp();
|
|
348
|
+
message.key = object.key ?? "";
|
|
349
|
+
message.input = object.input ?? "";
|
|
350
|
+
message.output = object.output ?? "";
|
|
351
|
+
return message;
|
|
352
|
+
},
|
|
353
|
+
fromAmino(object: DominoOpAmino): DominoOp {
|
|
354
|
+
const message = createBaseDominoOp();
|
|
355
|
+
if (object.key !== undefined && object.key !== null) {
|
|
356
|
+
message.key = object.key;
|
|
357
|
+
}
|
|
358
|
+
if (object.input !== undefined && object.input !== null) {
|
|
359
|
+
message.input = object.input;
|
|
360
|
+
}
|
|
361
|
+
if (object.output !== undefined && object.output !== null) {
|
|
362
|
+
message.output = object.output;
|
|
363
|
+
}
|
|
364
|
+
return message;
|
|
365
|
+
},
|
|
366
|
+
toAmino(message: DominoOp): DominoOpAmino {
|
|
367
|
+
const obj: any = {};
|
|
368
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
369
|
+
obj.input = message.input === "" ? undefined : message.input;
|
|
370
|
+
obj.output = message.output === "" ? undefined : message.output;
|
|
371
|
+
return obj;
|
|
372
|
+
},
|
|
373
|
+
fromAminoMsg(object: DominoOpAminoMsg): DominoOp {
|
|
374
|
+
return DominoOp.fromAmino(object.value);
|
|
375
|
+
},
|
|
376
|
+
fromProtoMsg(message: DominoOpProtoMsg): DominoOp {
|
|
377
|
+
return DominoOp.decode(message.value);
|
|
378
|
+
},
|
|
379
|
+
toProto(message: DominoOp): Uint8Array {
|
|
380
|
+
return DominoOp.encode(message).finish();
|
|
381
|
+
},
|
|
382
|
+
toProtoMsg(message: DominoOp): DominoOpProtoMsg {
|
|
383
|
+
return {
|
|
384
|
+
typeUrl: "/tendermint.crypto.DominoOp",
|
|
385
|
+
value: DominoOp.encode(message).finish()
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
GlobalDecoderRegistry.register(DominoOp.typeUrl, DominoOp);
|
|
390
|
+
function createBaseProofOp(): ProofOp {
|
|
391
|
+
return {
|
|
392
|
+
type: "",
|
|
393
|
+
key: new Uint8Array(),
|
|
394
|
+
data: new Uint8Array()
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
export const ProofOp = {
|
|
398
|
+
typeUrl: "/tendermint.crypto.ProofOp",
|
|
399
|
+
is(o: any): o is ProofOp {
|
|
400
|
+
return o && (o.$typeUrl === ProofOp.typeUrl || typeof o.type === "string" && (o.key instanceof Uint8Array || typeof o.key === "string") && (o.data instanceof Uint8Array || typeof o.data === "string"));
|
|
401
|
+
},
|
|
402
|
+
isAmino(o: any): o is ProofOpAmino {
|
|
403
|
+
return o && (o.$typeUrl === ProofOp.typeUrl || typeof o.type === "string" && (o.key instanceof Uint8Array || typeof o.key === "string") && (o.data instanceof Uint8Array || typeof o.data === "string"));
|
|
404
|
+
},
|
|
405
|
+
encode(message: ProofOp, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
406
|
+
if (message.type !== "") {
|
|
407
|
+
writer.uint32(10).string(message.type);
|
|
408
|
+
}
|
|
409
|
+
if (message.key.length !== 0) {
|
|
410
|
+
writer.uint32(18).bytes(message.key);
|
|
411
|
+
}
|
|
412
|
+
if (message.data.length !== 0) {
|
|
413
|
+
writer.uint32(26).bytes(message.data);
|
|
414
|
+
}
|
|
415
|
+
return writer;
|
|
416
|
+
},
|
|
417
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ProofOp {
|
|
418
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
419
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
420
|
+
const message = createBaseProofOp();
|
|
421
|
+
while (reader.pos < end) {
|
|
422
|
+
const tag = reader.uint32();
|
|
423
|
+
switch (tag >>> 3) {
|
|
424
|
+
case 1:
|
|
425
|
+
message.type = reader.string();
|
|
426
|
+
break;
|
|
427
|
+
case 2:
|
|
428
|
+
message.key = reader.bytes();
|
|
429
|
+
break;
|
|
430
|
+
case 3:
|
|
431
|
+
message.data = reader.bytes();
|
|
432
|
+
break;
|
|
433
|
+
default:
|
|
434
|
+
reader.skipType(tag & 7);
|
|
435
|
+
break;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
return message;
|
|
439
|
+
},
|
|
440
|
+
fromPartial(object: DeepPartial<ProofOp>): ProofOp {
|
|
441
|
+
const message = createBaseProofOp();
|
|
442
|
+
message.type = object.type ?? "";
|
|
443
|
+
message.key = object.key ?? new Uint8Array();
|
|
444
|
+
message.data = object.data ?? new Uint8Array();
|
|
445
|
+
return message;
|
|
446
|
+
},
|
|
447
|
+
fromAmino(object: ProofOpAmino): ProofOp {
|
|
448
|
+
const message = createBaseProofOp();
|
|
449
|
+
if (object.type !== undefined && object.type !== null) {
|
|
450
|
+
message.type = object.type;
|
|
451
|
+
}
|
|
452
|
+
if (object.key !== undefined && object.key !== null) {
|
|
453
|
+
message.key = bytesFromBase64(object.key);
|
|
454
|
+
}
|
|
455
|
+
if (object.data !== undefined && object.data !== null) {
|
|
456
|
+
message.data = bytesFromBase64(object.data);
|
|
457
|
+
}
|
|
458
|
+
return message;
|
|
459
|
+
},
|
|
460
|
+
toAmino(message: ProofOp): ProofOpAmino {
|
|
461
|
+
const obj: any = {};
|
|
462
|
+
obj.type = message.type === "" ? undefined : message.type;
|
|
463
|
+
obj.key = message.key ? base64FromBytes(message.key) : undefined;
|
|
464
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
465
|
+
return obj;
|
|
466
|
+
},
|
|
467
|
+
fromAminoMsg(object: ProofOpAminoMsg): ProofOp {
|
|
468
|
+
return ProofOp.fromAmino(object.value);
|
|
469
|
+
},
|
|
470
|
+
fromProtoMsg(message: ProofOpProtoMsg): ProofOp {
|
|
471
|
+
return ProofOp.decode(message.value);
|
|
472
|
+
},
|
|
473
|
+
toProto(message: ProofOp): Uint8Array {
|
|
474
|
+
return ProofOp.encode(message).finish();
|
|
475
|
+
},
|
|
476
|
+
toProtoMsg(message: ProofOp): ProofOpProtoMsg {
|
|
477
|
+
return {
|
|
478
|
+
typeUrl: "/tendermint.crypto.ProofOp",
|
|
479
|
+
value: ProofOp.encode(message).finish()
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
GlobalDecoderRegistry.register(ProofOp.typeUrl, ProofOp);
|
|
484
|
+
function createBaseProofOps(): ProofOps {
|
|
485
|
+
return {
|
|
486
|
+
ops: []
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
export const ProofOps = {
|
|
490
|
+
typeUrl: "/tendermint.crypto.ProofOps",
|
|
491
|
+
is(o: any): o is ProofOps {
|
|
492
|
+
return o && (o.$typeUrl === ProofOps.typeUrl || Array.isArray(o.ops) && (!o.ops.length || ProofOp.is(o.ops[0])));
|
|
493
|
+
},
|
|
494
|
+
isAmino(o: any): o is ProofOpsAmino {
|
|
495
|
+
return o && (o.$typeUrl === ProofOps.typeUrl || Array.isArray(o.ops) && (!o.ops.length || ProofOp.isAmino(o.ops[0])));
|
|
496
|
+
},
|
|
497
|
+
encode(message: ProofOps, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
498
|
+
for (const v of message.ops) {
|
|
499
|
+
ProofOp.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
500
|
+
}
|
|
501
|
+
return writer;
|
|
502
|
+
},
|
|
503
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ProofOps {
|
|
504
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
505
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
506
|
+
const message = createBaseProofOps();
|
|
507
|
+
while (reader.pos < end) {
|
|
508
|
+
const tag = reader.uint32();
|
|
509
|
+
switch (tag >>> 3) {
|
|
510
|
+
case 1:
|
|
511
|
+
message.ops.push(ProofOp.decode(reader, reader.uint32()));
|
|
512
|
+
break;
|
|
513
|
+
default:
|
|
514
|
+
reader.skipType(tag & 7);
|
|
515
|
+
break;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
return message;
|
|
519
|
+
},
|
|
520
|
+
fromPartial(object: DeepPartial<ProofOps>): ProofOps {
|
|
521
|
+
const message = createBaseProofOps();
|
|
522
|
+
message.ops = object.ops?.map(e => ProofOp.fromPartial(e)) || [];
|
|
523
|
+
return message;
|
|
524
|
+
},
|
|
525
|
+
fromAmino(object: ProofOpsAmino): ProofOps {
|
|
526
|
+
const message = createBaseProofOps();
|
|
527
|
+
message.ops = object.ops?.map(e => ProofOp.fromAmino(e)) || [];
|
|
528
|
+
return message;
|
|
529
|
+
},
|
|
530
|
+
toAmino(message: ProofOps): ProofOpsAmino {
|
|
531
|
+
const obj: any = {};
|
|
532
|
+
if (message.ops) {
|
|
533
|
+
obj.ops = message.ops.map(e => e ? ProofOp.toAmino(e) : undefined);
|
|
534
|
+
} else {
|
|
535
|
+
obj.ops = message.ops;
|
|
536
|
+
}
|
|
537
|
+
return obj;
|
|
538
|
+
},
|
|
539
|
+
fromAminoMsg(object: ProofOpsAminoMsg): ProofOps {
|
|
540
|
+
return ProofOps.fromAmino(object.value);
|
|
541
|
+
},
|
|
542
|
+
fromProtoMsg(message: ProofOpsProtoMsg): ProofOps {
|
|
543
|
+
return ProofOps.decode(message.value);
|
|
544
|
+
},
|
|
545
|
+
toProto(message: ProofOps): Uint8Array {
|
|
546
|
+
return ProofOps.encode(message).finish();
|
|
547
|
+
},
|
|
548
|
+
toProtoMsg(message: ProofOps): ProofOpsProtoMsg {
|
|
549
|
+
return {
|
|
550
|
+
typeUrl: "/tendermint.crypto.ProofOps",
|
|
551
|
+
value: ProofOps.encode(message).finish()
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
GlobalDecoderRegistry.register(ProofOps.typeUrl, ProofOps);
|