@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,1070 @@
|
|
|
1
|
+
import { Any, AnyAmino } from "../../../../google/protobuf/any";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
3
|
+
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
5
|
+
/**
|
|
6
|
+
* ClientState defines a solo machine client that tracks the current consensus
|
|
7
|
+
* state and if the client is frozen.
|
|
8
|
+
*/
|
|
9
|
+
export interface ClientState {
|
|
10
|
+
/** latest sequence of the client state */
|
|
11
|
+
sequence: bigint;
|
|
12
|
+
/** frozen sequence of the solo machine */
|
|
13
|
+
isFrozen: boolean;
|
|
14
|
+
consensusState?: ConsensusState;
|
|
15
|
+
}
|
|
16
|
+
export interface ClientStateProtoMsg {
|
|
17
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.ClientState";
|
|
18
|
+
value: Uint8Array;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* ClientState defines a solo machine client that tracks the current consensus
|
|
22
|
+
* state and if the client is frozen.
|
|
23
|
+
*/
|
|
24
|
+
export interface ClientStateAmino {
|
|
25
|
+
/** latest sequence of the client state */
|
|
26
|
+
sequence: string;
|
|
27
|
+
/** frozen sequence of the solo machine */
|
|
28
|
+
is_frozen: boolean;
|
|
29
|
+
consensus_state?: ConsensusStateAmino;
|
|
30
|
+
}
|
|
31
|
+
export interface ClientStateAminoMsg {
|
|
32
|
+
type: "cosmos-sdk/ClientState";
|
|
33
|
+
value: ClientStateAmino;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* ConsensusState defines a solo machine consensus state. The sequence of a
|
|
37
|
+
* consensus state is contained in the "height" key used in storing the
|
|
38
|
+
* consensus state.
|
|
39
|
+
*/
|
|
40
|
+
export interface ConsensusState {
|
|
41
|
+
/** public key of the solo machine */
|
|
42
|
+
publicKey?: Any;
|
|
43
|
+
/**
|
|
44
|
+
* diversifier allows the same public key to be re-used across different solo
|
|
45
|
+
* machine clients (potentially on different chains) without being considered
|
|
46
|
+
* misbehaviour.
|
|
47
|
+
*/
|
|
48
|
+
diversifier: string;
|
|
49
|
+
timestamp: bigint;
|
|
50
|
+
}
|
|
51
|
+
export interface ConsensusStateProtoMsg {
|
|
52
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.ConsensusState";
|
|
53
|
+
value: Uint8Array;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* ConsensusState defines a solo machine consensus state. The sequence of a
|
|
57
|
+
* consensus state is contained in the "height" key used in storing the
|
|
58
|
+
* consensus state.
|
|
59
|
+
*/
|
|
60
|
+
export interface ConsensusStateAmino {
|
|
61
|
+
/** public key of the solo machine */
|
|
62
|
+
public_key?: AnyAmino;
|
|
63
|
+
/**
|
|
64
|
+
* diversifier allows the same public key to be re-used across different solo
|
|
65
|
+
* machine clients (potentially on different chains) without being considered
|
|
66
|
+
* misbehaviour.
|
|
67
|
+
*/
|
|
68
|
+
diversifier: string;
|
|
69
|
+
timestamp: string;
|
|
70
|
+
}
|
|
71
|
+
export interface ConsensusStateAminoMsg {
|
|
72
|
+
type: "cosmos-sdk/ConsensusState";
|
|
73
|
+
value: ConsensusStateAmino;
|
|
74
|
+
}
|
|
75
|
+
/** Header defines a solo machine consensus header */
|
|
76
|
+
export interface Header {
|
|
77
|
+
timestamp: bigint;
|
|
78
|
+
signature: Uint8Array;
|
|
79
|
+
newPublicKey?: Any;
|
|
80
|
+
newDiversifier: string;
|
|
81
|
+
}
|
|
82
|
+
export interface HeaderProtoMsg {
|
|
83
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.Header";
|
|
84
|
+
value: Uint8Array;
|
|
85
|
+
}
|
|
86
|
+
/** Header defines a solo machine consensus header */
|
|
87
|
+
export interface HeaderAmino {
|
|
88
|
+
timestamp: string;
|
|
89
|
+
signature: string;
|
|
90
|
+
new_public_key?: AnyAmino;
|
|
91
|
+
new_diversifier: string;
|
|
92
|
+
}
|
|
93
|
+
export interface HeaderAminoMsg {
|
|
94
|
+
type: "cosmos-sdk/Header";
|
|
95
|
+
value: HeaderAmino;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Misbehaviour defines misbehaviour for a solo machine which consists
|
|
99
|
+
* of a sequence and two signatures over different messages at that sequence.
|
|
100
|
+
*/
|
|
101
|
+
export interface Misbehaviour {
|
|
102
|
+
sequence: bigint;
|
|
103
|
+
signatureOne?: SignatureAndData;
|
|
104
|
+
signatureTwo?: SignatureAndData;
|
|
105
|
+
}
|
|
106
|
+
export interface MisbehaviourProtoMsg {
|
|
107
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.Misbehaviour";
|
|
108
|
+
value: Uint8Array;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Misbehaviour defines misbehaviour for a solo machine which consists
|
|
112
|
+
* of a sequence and two signatures over different messages at that sequence.
|
|
113
|
+
*/
|
|
114
|
+
export interface MisbehaviourAmino {
|
|
115
|
+
sequence: string;
|
|
116
|
+
signature_one?: SignatureAndDataAmino;
|
|
117
|
+
signature_two?: SignatureAndDataAmino;
|
|
118
|
+
}
|
|
119
|
+
export interface MisbehaviourAminoMsg {
|
|
120
|
+
type: "cosmos-sdk/Misbehaviour";
|
|
121
|
+
value: MisbehaviourAmino;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* SignatureAndData contains a signature and the data signed over to create that
|
|
125
|
+
* signature.
|
|
126
|
+
*/
|
|
127
|
+
export interface SignatureAndData {
|
|
128
|
+
signature: Uint8Array;
|
|
129
|
+
path: Uint8Array;
|
|
130
|
+
data: Uint8Array;
|
|
131
|
+
timestamp: bigint;
|
|
132
|
+
}
|
|
133
|
+
export interface SignatureAndDataProtoMsg {
|
|
134
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.SignatureAndData";
|
|
135
|
+
value: Uint8Array;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* SignatureAndData contains a signature and the data signed over to create that
|
|
139
|
+
* signature.
|
|
140
|
+
*/
|
|
141
|
+
export interface SignatureAndDataAmino {
|
|
142
|
+
signature: string;
|
|
143
|
+
path: string;
|
|
144
|
+
data: string;
|
|
145
|
+
timestamp: string;
|
|
146
|
+
}
|
|
147
|
+
export interface SignatureAndDataAminoMsg {
|
|
148
|
+
type: "cosmos-sdk/SignatureAndData";
|
|
149
|
+
value: SignatureAndDataAmino;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* TimestampedSignatureData contains the signature data and the timestamp of the
|
|
153
|
+
* signature.
|
|
154
|
+
*/
|
|
155
|
+
export interface TimestampedSignatureData {
|
|
156
|
+
signatureData: Uint8Array;
|
|
157
|
+
timestamp: bigint;
|
|
158
|
+
}
|
|
159
|
+
export interface TimestampedSignatureDataProtoMsg {
|
|
160
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.TimestampedSignatureData";
|
|
161
|
+
value: Uint8Array;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* TimestampedSignatureData contains the signature data and the timestamp of the
|
|
165
|
+
* signature.
|
|
166
|
+
*/
|
|
167
|
+
export interface TimestampedSignatureDataAmino {
|
|
168
|
+
signature_data: string;
|
|
169
|
+
timestamp: string;
|
|
170
|
+
}
|
|
171
|
+
export interface TimestampedSignatureDataAminoMsg {
|
|
172
|
+
type: "cosmos-sdk/TimestampedSignatureData";
|
|
173
|
+
value: TimestampedSignatureDataAmino;
|
|
174
|
+
}
|
|
175
|
+
/** SignBytes defines the signed bytes used for signature verification. */
|
|
176
|
+
export interface SignBytes {
|
|
177
|
+
/** the sequence number */
|
|
178
|
+
sequence: bigint;
|
|
179
|
+
/** the proof timestamp */
|
|
180
|
+
timestamp: bigint;
|
|
181
|
+
/** the public key diversifier */
|
|
182
|
+
diversifier: string;
|
|
183
|
+
/** the standardised path bytes */
|
|
184
|
+
path: Uint8Array;
|
|
185
|
+
/** the marshaled data bytes */
|
|
186
|
+
data: Uint8Array;
|
|
187
|
+
}
|
|
188
|
+
export interface SignBytesProtoMsg {
|
|
189
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.SignBytes";
|
|
190
|
+
value: Uint8Array;
|
|
191
|
+
}
|
|
192
|
+
/** SignBytes defines the signed bytes used for signature verification. */
|
|
193
|
+
export interface SignBytesAmino {
|
|
194
|
+
/** the sequence number */
|
|
195
|
+
sequence: string;
|
|
196
|
+
/** the proof timestamp */
|
|
197
|
+
timestamp: string;
|
|
198
|
+
/** the public key diversifier */
|
|
199
|
+
diversifier: string;
|
|
200
|
+
/** the standardised path bytes */
|
|
201
|
+
path: string;
|
|
202
|
+
/** the marshaled data bytes */
|
|
203
|
+
data: string;
|
|
204
|
+
}
|
|
205
|
+
export interface SignBytesAminoMsg {
|
|
206
|
+
type: "cosmos-sdk/SignBytes";
|
|
207
|
+
value: SignBytesAmino;
|
|
208
|
+
}
|
|
209
|
+
/** HeaderData returns the SignBytes data for update verification. */
|
|
210
|
+
export interface HeaderData {
|
|
211
|
+
/** header public key */
|
|
212
|
+
newPubKey?: Any;
|
|
213
|
+
/** header diversifier */
|
|
214
|
+
newDiversifier: string;
|
|
215
|
+
}
|
|
216
|
+
export interface HeaderDataProtoMsg {
|
|
217
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.HeaderData";
|
|
218
|
+
value: Uint8Array;
|
|
219
|
+
}
|
|
220
|
+
/** HeaderData returns the SignBytes data for update verification. */
|
|
221
|
+
export interface HeaderDataAmino {
|
|
222
|
+
/** header public key */
|
|
223
|
+
new_pub_key?: AnyAmino;
|
|
224
|
+
/** header diversifier */
|
|
225
|
+
new_diversifier: string;
|
|
226
|
+
}
|
|
227
|
+
export interface HeaderDataAminoMsg {
|
|
228
|
+
type: "cosmos-sdk/HeaderData";
|
|
229
|
+
value: HeaderDataAmino;
|
|
230
|
+
}
|
|
231
|
+
function createBaseClientState(): ClientState {
|
|
232
|
+
return {
|
|
233
|
+
sequence: BigInt(0),
|
|
234
|
+
isFrozen: false,
|
|
235
|
+
consensusState: undefined
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
export const ClientState = {
|
|
239
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.ClientState",
|
|
240
|
+
aminoType: "cosmos-sdk/ClientState",
|
|
241
|
+
is(o: any): o is ClientState {
|
|
242
|
+
return o && (o.$typeUrl === ClientState.typeUrl || typeof o.sequence === "bigint" && typeof o.isFrozen === "boolean");
|
|
243
|
+
},
|
|
244
|
+
isAmino(o: any): o is ClientStateAmino {
|
|
245
|
+
return o && (o.$typeUrl === ClientState.typeUrl || typeof o.sequence === "bigint" && typeof o.is_frozen === "boolean");
|
|
246
|
+
},
|
|
247
|
+
encode(message: ClientState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
248
|
+
if (message.sequence !== BigInt(0)) {
|
|
249
|
+
writer.uint32(8).uint64(message.sequence);
|
|
250
|
+
}
|
|
251
|
+
if (message.isFrozen === true) {
|
|
252
|
+
writer.uint32(16).bool(message.isFrozen);
|
|
253
|
+
}
|
|
254
|
+
if (message.consensusState !== undefined) {
|
|
255
|
+
ConsensusState.encode(message.consensusState, writer.uint32(26).fork()).ldelim();
|
|
256
|
+
}
|
|
257
|
+
return writer;
|
|
258
|
+
},
|
|
259
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ClientState {
|
|
260
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
261
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
262
|
+
const message = createBaseClientState();
|
|
263
|
+
while (reader.pos < end) {
|
|
264
|
+
const tag = reader.uint32();
|
|
265
|
+
switch (tag >>> 3) {
|
|
266
|
+
case 1:
|
|
267
|
+
message.sequence = reader.uint64();
|
|
268
|
+
break;
|
|
269
|
+
case 2:
|
|
270
|
+
message.isFrozen = reader.bool();
|
|
271
|
+
break;
|
|
272
|
+
case 3:
|
|
273
|
+
message.consensusState = ConsensusState.decode(reader, reader.uint32());
|
|
274
|
+
break;
|
|
275
|
+
default:
|
|
276
|
+
reader.skipType(tag & 7);
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
return message;
|
|
281
|
+
},
|
|
282
|
+
fromPartial(object: DeepPartial<ClientState>): ClientState {
|
|
283
|
+
const message = createBaseClientState();
|
|
284
|
+
message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0);
|
|
285
|
+
message.isFrozen = object.isFrozen ?? false;
|
|
286
|
+
message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? ConsensusState.fromPartial(object.consensusState) : undefined;
|
|
287
|
+
return message;
|
|
288
|
+
},
|
|
289
|
+
fromAmino(object: ClientStateAmino): ClientState {
|
|
290
|
+
const message = createBaseClientState();
|
|
291
|
+
if (object.sequence !== undefined && object.sequence !== null) {
|
|
292
|
+
message.sequence = BigInt(object.sequence);
|
|
293
|
+
}
|
|
294
|
+
if (object.is_frozen !== undefined && object.is_frozen !== null) {
|
|
295
|
+
message.isFrozen = object.is_frozen;
|
|
296
|
+
}
|
|
297
|
+
if (object.consensus_state !== undefined && object.consensus_state !== null) {
|
|
298
|
+
message.consensusState = ConsensusState.fromAmino(object.consensus_state);
|
|
299
|
+
}
|
|
300
|
+
return message;
|
|
301
|
+
},
|
|
302
|
+
toAmino(message: ClientState): ClientStateAmino {
|
|
303
|
+
const obj: any = {};
|
|
304
|
+
obj.sequence = message.sequence !== BigInt(0) ? message.sequence?.toString() : undefined;
|
|
305
|
+
obj.is_frozen = message.isFrozen === false ? undefined : message.isFrozen;
|
|
306
|
+
obj.consensus_state = message.consensusState ? ConsensusState.toAmino(message.consensusState) : undefined;
|
|
307
|
+
return obj;
|
|
308
|
+
},
|
|
309
|
+
fromAminoMsg(object: ClientStateAminoMsg): ClientState {
|
|
310
|
+
return ClientState.fromAmino(object.value);
|
|
311
|
+
},
|
|
312
|
+
toAminoMsg(message: ClientState): ClientStateAminoMsg {
|
|
313
|
+
return {
|
|
314
|
+
type: "cosmos-sdk/ClientState",
|
|
315
|
+
value: ClientState.toAmino(message)
|
|
316
|
+
};
|
|
317
|
+
},
|
|
318
|
+
fromProtoMsg(message: ClientStateProtoMsg): ClientState {
|
|
319
|
+
return ClientState.decode(message.value);
|
|
320
|
+
},
|
|
321
|
+
toProto(message: ClientState): Uint8Array {
|
|
322
|
+
return ClientState.encode(message).finish();
|
|
323
|
+
},
|
|
324
|
+
toProtoMsg(message: ClientState): ClientStateProtoMsg {
|
|
325
|
+
return {
|
|
326
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.ClientState",
|
|
327
|
+
value: ClientState.encode(message).finish()
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
GlobalDecoderRegistry.register(ClientState.typeUrl, ClientState);
|
|
332
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ClientState.aminoType, ClientState.typeUrl);
|
|
333
|
+
function createBaseConsensusState(): ConsensusState {
|
|
334
|
+
return {
|
|
335
|
+
publicKey: undefined,
|
|
336
|
+
diversifier: "",
|
|
337
|
+
timestamp: BigInt(0)
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
export const ConsensusState = {
|
|
341
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.ConsensusState",
|
|
342
|
+
aminoType: "cosmos-sdk/ConsensusState",
|
|
343
|
+
is(o: any): o is ConsensusState {
|
|
344
|
+
return o && (o.$typeUrl === ConsensusState.typeUrl || typeof o.diversifier === "string" && typeof o.timestamp === "bigint");
|
|
345
|
+
},
|
|
346
|
+
isAmino(o: any): o is ConsensusStateAmino {
|
|
347
|
+
return o && (o.$typeUrl === ConsensusState.typeUrl || typeof o.diversifier === "string" && typeof o.timestamp === "bigint");
|
|
348
|
+
},
|
|
349
|
+
encode(message: ConsensusState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
350
|
+
if (message.publicKey !== undefined) {
|
|
351
|
+
Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim();
|
|
352
|
+
}
|
|
353
|
+
if (message.diversifier !== "") {
|
|
354
|
+
writer.uint32(18).string(message.diversifier);
|
|
355
|
+
}
|
|
356
|
+
if (message.timestamp !== BigInt(0)) {
|
|
357
|
+
writer.uint32(24).uint64(message.timestamp);
|
|
358
|
+
}
|
|
359
|
+
return writer;
|
|
360
|
+
},
|
|
361
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ConsensusState {
|
|
362
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
363
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
364
|
+
const message = createBaseConsensusState();
|
|
365
|
+
while (reader.pos < end) {
|
|
366
|
+
const tag = reader.uint32();
|
|
367
|
+
switch (tag >>> 3) {
|
|
368
|
+
case 1:
|
|
369
|
+
message.publicKey = Any.decode(reader, reader.uint32());
|
|
370
|
+
break;
|
|
371
|
+
case 2:
|
|
372
|
+
message.diversifier = reader.string();
|
|
373
|
+
break;
|
|
374
|
+
case 3:
|
|
375
|
+
message.timestamp = reader.uint64();
|
|
376
|
+
break;
|
|
377
|
+
default:
|
|
378
|
+
reader.skipType(tag & 7);
|
|
379
|
+
break;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
return message;
|
|
383
|
+
},
|
|
384
|
+
fromPartial(object: DeepPartial<ConsensusState>): ConsensusState {
|
|
385
|
+
const message = createBaseConsensusState();
|
|
386
|
+
message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined;
|
|
387
|
+
message.diversifier = object.diversifier ?? "";
|
|
388
|
+
message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? BigInt(object.timestamp.toString()) : BigInt(0);
|
|
389
|
+
return message;
|
|
390
|
+
},
|
|
391
|
+
fromAmino(object: ConsensusStateAmino): ConsensusState {
|
|
392
|
+
const message = createBaseConsensusState();
|
|
393
|
+
if (object.public_key !== undefined && object.public_key !== null) {
|
|
394
|
+
message.publicKey = Any.fromAmino(object.public_key);
|
|
395
|
+
}
|
|
396
|
+
if (object.diversifier !== undefined && object.diversifier !== null) {
|
|
397
|
+
message.diversifier = object.diversifier;
|
|
398
|
+
}
|
|
399
|
+
if (object.timestamp !== undefined && object.timestamp !== null) {
|
|
400
|
+
message.timestamp = BigInt(object.timestamp);
|
|
401
|
+
}
|
|
402
|
+
return message;
|
|
403
|
+
},
|
|
404
|
+
toAmino(message: ConsensusState): ConsensusStateAmino {
|
|
405
|
+
const obj: any = {};
|
|
406
|
+
obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined;
|
|
407
|
+
obj.diversifier = message.diversifier === "" ? undefined : message.diversifier;
|
|
408
|
+
obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp?.toString() : undefined;
|
|
409
|
+
return obj;
|
|
410
|
+
},
|
|
411
|
+
fromAminoMsg(object: ConsensusStateAminoMsg): ConsensusState {
|
|
412
|
+
return ConsensusState.fromAmino(object.value);
|
|
413
|
+
},
|
|
414
|
+
toAminoMsg(message: ConsensusState): ConsensusStateAminoMsg {
|
|
415
|
+
return {
|
|
416
|
+
type: "cosmos-sdk/ConsensusState",
|
|
417
|
+
value: ConsensusState.toAmino(message)
|
|
418
|
+
};
|
|
419
|
+
},
|
|
420
|
+
fromProtoMsg(message: ConsensusStateProtoMsg): ConsensusState {
|
|
421
|
+
return ConsensusState.decode(message.value);
|
|
422
|
+
},
|
|
423
|
+
toProto(message: ConsensusState): Uint8Array {
|
|
424
|
+
return ConsensusState.encode(message).finish();
|
|
425
|
+
},
|
|
426
|
+
toProtoMsg(message: ConsensusState): ConsensusStateProtoMsg {
|
|
427
|
+
return {
|
|
428
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.ConsensusState",
|
|
429
|
+
value: ConsensusState.encode(message).finish()
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
GlobalDecoderRegistry.register(ConsensusState.typeUrl, ConsensusState);
|
|
434
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ConsensusState.aminoType, ConsensusState.typeUrl);
|
|
435
|
+
function createBaseHeader(): Header {
|
|
436
|
+
return {
|
|
437
|
+
timestamp: BigInt(0),
|
|
438
|
+
signature: new Uint8Array(),
|
|
439
|
+
newPublicKey: undefined,
|
|
440
|
+
newDiversifier: ""
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
export const Header = {
|
|
444
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.Header",
|
|
445
|
+
aminoType: "cosmos-sdk/Header",
|
|
446
|
+
is(o: any): o is Header {
|
|
447
|
+
return o && (o.$typeUrl === Header.typeUrl || typeof o.timestamp === "bigint" && (o.signature instanceof Uint8Array || typeof o.signature === "string") && typeof o.newDiversifier === "string");
|
|
448
|
+
},
|
|
449
|
+
isAmino(o: any): o is HeaderAmino {
|
|
450
|
+
return o && (o.$typeUrl === Header.typeUrl || typeof o.timestamp === "bigint" && (o.signature instanceof Uint8Array || typeof o.signature === "string") && typeof o.new_diversifier === "string");
|
|
451
|
+
},
|
|
452
|
+
encode(message: Header, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
453
|
+
if (message.timestamp !== BigInt(0)) {
|
|
454
|
+
writer.uint32(8).uint64(message.timestamp);
|
|
455
|
+
}
|
|
456
|
+
if (message.signature.length !== 0) {
|
|
457
|
+
writer.uint32(18).bytes(message.signature);
|
|
458
|
+
}
|
|
459
|
+
if (message.newPublicKey !== undefined) {
|
|
460
|
+
Any.encode(message.newPublicKey, writer.uint32(26).fork()).ldelim();
|
|
461
|
+
}
|
|
462
|
+
if (message.newDiversifier !== "") {
|
|
463
|
+
writer.uint32(34).string(message.newDiversifier);
|
|
464
|
+
}
|
|
465
|
+
return writer;
|
|
466
|
+
},
|
|
467
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Header {
|
|
468
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
469
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
470
|
+
const message = createBaseHeader();
|
|
471
|
+
while (reader.pos < end) {
|
|
472
|
+
const tag = reader.uint32();
|
|
473
|
+
switch (tag >>> 3) {
|
|
474
|
+
case 1:
|
|
475
|
+
message.timestamp = reader.uint64();
|
|
476
|
+
break;
|
|
477
|
+
case 2:
|
|
478
|
+
message.signature = reader.bytes();
|
|
479
|
+
break;
|
|
480
|
+
case 3:
|
|
481
|
+
message.newPublicKey = Any.decode(reader, reader.uint32());
|
|
482
|
+
break;
|
|
483
|
+
case 4:
|
|
484
|
+
message.newDiversifier = reader.string();
|
|
485
|
+
break;
|
|
486
|
+
default:
|
|
487
|
+
reader.skipType(tag & 7);
|
|
488
|
+
break;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
return message;
|
|
492
|
+
},
|
|
493
|
+
fromPartial(object: DeepPartial<Header>): Header {
|
|
494
|
+
const message = createBaseHeader();
|
|
495
|
+
message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? BigInt(object.timestamp.toString()) : BigInt(0);
|
|
496
|
+
message.signature = object.signature ?? new Uint8Array();
|
|
497
|
+
message.newPublicKey = object.newPublicKey !== undefined && object.newPublicKey !== null ? Any.fromPartial(object.newPublicKey) : undefined;
|
|
498
|
+
message.newDiversifier = object.newDiversifier ?? "";
|
|
499
|
+
return message;
|
|
500
|
+
},
|
|
501
|
+
fromAmino(object: HeaderAmino): Header {
|
|
502
|
+
const message = createBaseHeader();
|
|
503
|
+
if (object.timestamp !== undefined && object.timestamp !== null) {
|
|
504
|
+
message.timestamp = BigInt(object.timestamp);
|
|
505
|
+
}
|
|
506
|
+
if (object.signature !== undefined && object.signature !== null) {
|
|
507
|
+
message.signature = bytesFromBase64(object.signature);
|
|
508
|
+
}
|
|
509
|
+
if (object.new_public_key !== undefined && object.new_public_key !== null) {
|
|
510
|
+
message.newPublicKey = Any.fromAmino(object.new_public_key);
|
|
511
|
+
}
|
|
512
|
+
if (object.new_diversifier !== undefined && object.new_diversifier !== null) {
|
|
513
|
+
message.newDiversifier = object.new_diversifier;
|
|
514
|
+
}
|
|
515
|
+
return message;
|
|
516
|
+
},
|
|
517
|
+
toAmino(message: Header): HeaderAmino {
|
|
518
|
+
const obj: any = {};
|
|
519
|
+
obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp?.toString() : undefined;
|
|
520
|
+
obj.signature = message.signature ? base64FromBytes(message.signature) : undefined;
|
|
521
|
+
obj.new_public_key = message.newPublicKey ? Any.toAmino(message.newPublicKey) : undefined;
|
|
522
|
+
obj.new_diversifier = message.newDiversifier === "" ? undefined : message.newDiversifier;
|
|
523
|
+
return obj;
|
|
524
|
+
},
|
|
525
|
+
fromAminoMsg(object: HeaderAminoMsg): Header {
|
|
526
|
+
return Header.fromAmino(object.value);
|
|
527
|
+
},
|
|
528
|
+
toAminoMsg(message: Header): HeaderAminoMsg {
|
|
529
|
+
return {
|
|
530
|
+
type: "cosmos-sdk/Header",
|
|
531
|
+
value: Header.toAmino(message)
|
|
532
|
+
};
|
|
533
|
+
},
|
|
534
|
+
fromProtoMsg(message: HeaderProtoMsg): Header {
|
|
535
|
+
return Header.decode(message.value);
|
|
536
|
+
},
|
|
537
|
+
toProto(message: Header): Uint8Array {
|
|
538
|
+
return Header.encode(message).finish();
|
|
539
|
+
},
|
|
540
|
+
toProtoMsg(message: Header): HeaderProtoMsg {
|
|
541
|
+
return {
|
|
542
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.Header",
|
|
543
|
+
value: Header.encode(message).finish()
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
GlobalDecoderRegistry.register(Header.typeUrl, Header);
|
|
548
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Header.aminoType, Header.typeUrl);
|
|
549
|
+
function createBaseMisbehaviour(): Misbehaviour {
|
|
550
|
+
return {
|
|
551
|
+
sequence: BigInt(0),
|
|
552
|
+
signatureOne: undefined,
|
|
553
|
+
signatureTwo: undefined
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
export const Misbehaviour = {
|
|
557
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.Misbehaviour",
|
|
558
|
+
aminoType: "cosmos-sdk/Misbehaviour",
|
|
559
|
+
is(o: any): o is Misbehaviour {
|
|
560
|
+
return o && (o.$typeUrl === Misbehaviour.typeUrl || typeof o.sequence === "bigint");
|
|
561
|
+
},
|
|
562
|
+
isAmino(o: any): o is MisbehaviourAmino {
|
|
563
|
+
return o && (o.$typeUrl === Misbehaviour.typeUrl || typeof o.sequence === "bigint");
|
|
564
|
+
},
|
|
565
|
+
encode(message: Misbehaviour, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
566
|
+
if (message.sequence !== BigInt(0)) {
|
|
567
|
+
writer.uint32(8).uint64(message.sequence);
|
|
568
|
+
}
|
|
569
|
+
if (message.signatureOne !== undefined) {
|
|
570
|
+
SignatureAndData.encode(message.signatureOne, writer.uint32(18).fork()).ldelim();
|
|
571
|
+
}
|
|
572
|
+
if (message.signatureTwo !== undefined) {
|
|
573
|
+
SignatureAndData.encode(message.signatureTwo, writer.uint32(26).fork()).ldelim();
|
|
574
|
+
}
|
|
575
|
+
return writer;
|
|
576
|
+
},
|
|
577
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Misbehaviour {
|
|
578
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
579
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
580
|
+
const message = createBaseMisbehaviour();
|
|
581
|
+
while (reader.pos < end) {
|
|
582
|
+
const tag = reader.uint32();
|
|
583
|
+
switch (tag >>> 3) {
|
|
584
|
+
case 1:
|
|
585
|
+
message.sequence = reader.uint64();
|
|
586
|
+
break;
|
|
587
|
+
case 2:
|
|
588
|
+
message.signatureOne = SignatureAndData.decode(reader, reader.uint32());
|
|
589
|
+
break;
|
|
590
|
+
case 3:
|
|
591
|
+
message.signatureTwo = SignatureAndData.decode(reader, reader.uint32());
|
|
592
|
+
break;
|
|
593
|
+
default:
|
|
594
|
+
reader.skipType(tag & 7);
|
|
595
|
+
break;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
return message;
|
|
599
|
+
},
|
|
600
|
+
fromPartial(object: DeepPartial<Misbehaviour>): Misbehaviour {
|
|
601
|
+
const message = createBaseMisbehaviour();
|
|
602
|
+
message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0);
|
|
603
|
+
message.signatureOne = object.signatureOne !== undefined && object.signatureOne !== null ? SignatureAndData.fromPartial(object.signatureOne) : undefined;
|
|
604
|
+
message.signatureTwo = object.signatureTwo !== undefined && object.signatureTwo !== null ? SignatureAndData.fromPartial(object.signatureTwo) : undefined;
|
|
605
|
+
return message;
|
|
606
|
+
},
|
|
607
|
+
fromAmino(object: MisbehaviourAmino): Misbehaviour {
|
|
608
|
+
const message = createBaseMisbehaviour();
|
|
609
|
+
if (object.sequence !== undefined && object.sequence !== null) {
|
|
610
|
+
message.sequence = BigInt(object.sequence);
|
|
611
|
+
}
|
|
612
|
+
if (object.signature_one !== undefined && object.signature_one !== null) {
|
|
613
|
+
message.signatureOne = SignatureAndData.fromAmino(object.signature_one);
|
|
614
|
+
}
|
|
615
|
+
if (object.signature_two !== undefined && object.signature_two !== null) {
|
|
616
|
+
message.signatureTwo = SignatureAndData.fromAmino(object.signature_two);
|
|
617
|
+
}
|
|
618
|
+
return message;
|
|
619
|
+
},
|
|
620
|
+
toAmino(message: Misbehaviour): MisbehaviourAmino {
|
|
621
|
+
const obj: any = {};
|
|
622
|
+
obj.sequence = message.sequence !== BigInt(0) ? message.sequence?.toString() : undefined;
|
|
623
|
+
obj.signature_one = message.signatureOne ? SignatureAndData.toAmino(message.signatureOne) : undefined;
|
|
624
|
+
obj.signature_two = message.signatureTwo ? SignatureAndData.toAmino(message.signatureTwo) : undefined;
|
|
625
|
+
return obj;
|
|
626
|
+
},
|
|
627
|
+
fromAminoMsg(object: MisbehaviourAminoMsg): Misbehaviour {
|
|
628
|
+
return Misbehaviour.fromAmino(object.value);
|
|
629
|
+
},
|
|
630
|
+
toAminoMsg(message: Misbehaviour): MisbehaviourAminoMsg {
|
|
631
|
+
return {
|
|
632
|
+
type: "cosmos-sdk/Misbehaviour",
|
|
633
|
+
value: Misbehaviour.toAmino(message)
|
|
634
|
+
};
|
|
635
|
+
},
|
|
636
|
+
fromProtoMsg(message: MisbehaviourProtoMsg): Misbehaviour {
|
|
637
|
+
return Misbehaviour.decode(message.value);
|
|
638
|
+
},
|
|
639
|
+
toProto(message: Misbehaviour): Uint8Array {
|
|
640
|
+
return Misbehaviour.encode(message).finish();
|
|
641
|
+
},
|
|
642
|
+
toProtoMsg(message: Misbehaviour): MisbehaviourProtoMsg {
|
|
643
|
+
return {
|
|
644
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.Misbehaviour",
|
|
645
|
+
value: Misbehaviour.encode(message).finish()
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
};
|
|
649
|
+
GlobalDecoderRegistry.register(Misbehaviour.typeUrl, Misbehaviour);
|
|
650
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Misbehaviour.aminoType, Misbehaviour.typeUrl);
|
|
651
|
+
function createBaseSignatureAndData(): SignatureAndData {
|
|
652
|
+
return {
|
|
653
|
+
signature: new Uint8Array(),
|
|
654
|
+
path: new Uint8Array(),
|
|
655
|
+
data: new Uint8Array(),
|
|
656
|
+
timestamp: BigInt(0)
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
export const SignatureAndData = {
|
|
660
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.SignatureAndData",
|
|
661
|
+
aminoType: "cosmos-sdk/SignatureAndData",
|
|
662
|
+
is(o: any): o is SignatureAndData {
|
|
663
|
+
return o && (o.$typeUrl === SignatureAndData.typeUrl || (o.signature instanceof Uint8Array || typeof o.signature === "string") && (o.path instanceof Uint8Array || typeof o.path === "string") && (o.data instanceof Uint8Array || typeof o.data === "string") && typeof o.timestamp === "bigint");
|
|
664
|
+
},
|
|
665
|
+
isAmino(o: any): o is SignatureAndDataAmino {
|
|
666
|
+
return o && (o.$typeUrl === SignatureAndData.typeUrl || (o.signature instanceof Uint8Array || typeof o.signature === "string") && (o.path instanceof Uint8Array || typeof o.path === "string") && (o.data instanceof Uint8Array || typeof o.data === "string") && typeof o.timestamp === "bigint");
|
|
667
|
+
},
|
|
668
|
+
encode(message: SignatureAndData, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
669
|
+
if (message.signature.length !== 0) {
|
|
670
|
+
writer.uint32(10).bytes(message.signature);
|
|
671
|
+
}
|
|
672
|
+
if (message.path.length !== 0) {
|
|
673
|
+
writer.uint32(18).bytes(message.path);
|
|
674
|
+
}
|
|
675
|
+
if (message.data.length !== 0) {
|
|
676
|
+
writer.uint32(26).bytes(message.data);
|
|
677
|
+
}
|
|
678
|
+
if (message.timestamp !== BigInt(0)) {
|
|
679
|
+
writer.uint32(32).uint64(message.timestamp);
|
|
680
|
+
}
|
|
681
|
+
return writer;
|
|
682
|
+
},
|
|
683
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SignatureAndData {
|
|
684
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
685
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
686
|
+
const message = createBaseSignatureAndData();
|
|
687
|
+
while (reader.pos < end) {
|
|
688
|
+
const tag = reader.uint32();
|
|
689
|
+
switch (tag >>> 3) {
|
|
690
|
+
case 1:
|
|
691
|
+
message.signature = reader.bytes();
|
|
692
|
+
break;
|
|
693
|
+
case 2:
|
|
694
|
+
message.path = reader.bytes();
|
|
695
|
+
break;
|
|
696
|
+
case 3:
|
|
697
|
+
message.data = reader.bytes();
|
|
698
|
+
break;
|
|
699
|
+
case 4:
|
|
700
|
+
message.timestamp = reader.uint64();
|
|
701
|
+
break;
|
|
702
|
+
default:
|
|
703
|
+
reader.skipType(tag & 7);
|
|
704
|
+
break;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
return message;
|
|
708
|
+
},
|
|
709
|
+
fromPartial(object: DeepPartial<SignatureAndData>): SignatureAndData {
|
|
710
|
+
const message = createBaseSignatureAndData();
|
|
711
|
+
message.signature = object.signature ?? new Uint8Array();
|
|
712
|
+
message.path = object.path ?? new Uint8Array();
|
|
713
|
+
message.data = object.data ?? new Uint8Array();
|
|
714
|
+
message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? BigInt(object.timestamp.toString()) : BigInt(0);
|
|
715
|
+
return message;
|
|
716
|
+
},
|
|
717
|
+
fromAmino(object: SignatureAndDataAmino): SignatureAndData {
|
|
718
|
+
const message = createBaseSignatureAndData();
|
|
719
|
+
if (object.signature !== undefined && object.signature !== null) {
|
|
720
|
+
message.signature = bytesFromBase64(object.signature);
|
|
721
|
+
}
|
|
722
|
+
if (object.path !== undefined && object.path !== null) {
|
|
723
|
+
message.path = bytesFromBase64(object.path);
|
|
724
|
+
}
|
|
725
|
+
if (object.data !== undefined && object.data !== null) {
|
|
726
|
+
message.data = bytesFromBase64(object.data);
|
|
727
|
+
}
|
|
728
|
+
if (object.timestamp !== undefined && object.timestamp !== null) {
|
|
729
|
+
message.timestamp = BigInt(object.timestamp);
|
|
730
|
+
}
|
|
731
|
+
return message;
|
|
732
|
+
},
|
|
733
|
+
toAmino(message: SignatureAndData): SignatureAndDataAmino {
|
|
734
|
+
const obj: any = {};
|
|
735
|
+
obj.signature = message.signature ? base64FromBytes(message.signature) : undefined;
|
|
736
|
+
obj.path = message.path ? base64FromBytes(message.path) : undefined;
|
|
737
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
738
|
+
obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp?.toString() : undefined;
|
|
739
|
+
return obj;
|
|
740
|
+
},
|
|
741
|
+
fromAminoMsg(object: SignatureAndDataAminoMsg): SignatureAndData {
|
|
742
|
+
return SignatureAndData.fromAmino(object.value);
|
|
743
|
+
},
|
|
744
|
+
toAminoMsg(message: SignatureAndData): SignatureAndDataAminoMsg {
|
|
745
|
+
return {
|
|
746
|
+
type: "cosmos-sdk/SignatureAndData",
|
|
747
|
+
value: SignatureAndData.toAmino(message)
|
|
748
|
+
};
|
|
749
|
+
},
|
|
750
|
+
fromProtoMsg(message: SignatureAndDataProtoMsg): SignatureAndData {
|
|
751
|
+
return SignatureAndData.decode(message.value);
|
|
752
|
+
},
|
|
753
|
+
toProto(message: SignatureAndData): Uint8Array {
|
|
754
|
+
return SignatureAndData.encode(message).finish();
|
|
755
|
+
},
|
|
756
|
+
toProtoMsg(message: SignatureAndData): SignatureAndDataProtoMsg {
|
|
757
|
+
return {
|
|
758
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.SignatureAndData",
|
|
759
|
+
value: SignatureAndData.encode(message).finish()
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
};
|
|
763
|
+
GlobalDecoderRegistry.register(SignatureAndData.typeUrl, SignatureAndData);
|
|
764
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(SignatureAndData.aminoType, SignatureAndData.typeUrl);
|
|
765
|
+
function createBaseTimestampedSignatureData(): TimestampedSignatureData {
|
|
766
|
+
return {
|
|
767
|
+
signatureData: new Uint8Array(),
|
|
768
|
+
timestamp: BigInt(0)
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
export const TimestampedSignatureData = {
|
|
772
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.TimestampedSignatureData",
|
|
773
|
+
aminoType: "cosmos-sdk/TimestampedSignatureData",
|
|
774
|
+
is(o: any): o is TimestampedSignatureData {
|
|
775
|
+
return o && (o.$typeUrl === TimestampedSignatureData.typeUrl || (o.signatureData instanceof Uint8Array || typeof o.signatureData === "string") && typeof o.timestamp === "bigint");
|
|
776
|
+
},
|
|
777
|
+
isAmino(o: any): o is TimestampedSignatureDataAmino {
|
|
778
|
+
return o && (o.$typeUrl === TimestampedSignatureData.typeUrl || (o.signature_data instanceof Uint8Array || typeof o.signature_data === "string") && typeof o.timestamp === "bigint");
|
|
779
|
+
},
|
|
780
|
+
encode(message: TimestampedSignatureData, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
781
|
+
if (message.signatureData.length !== 0) {
|
|
782
|
+
writer.uint32(10).bytes(message.signatureData);
|
|
783
|
+
}
|
|
784
|
+
if (message.timestamp !== BigInt(0)) {
|
|
785
|
+
writer.uint32(16).uint64(message.timestamp);
|
|
786
|
+
}
|
|
787
|
+
return writer;
|
|
788
|
+
},
|
|
789
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TimestampedSignatureData {
|
|
790
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
791
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
792
|
+
const message = createBaseTimestampedSignatureData();
|
|
793
|
+
while (reader.pos < end) {
|
|
794
|
+
const tag = reader.uint32();
|
|
795
|
+
switch (tag >>> 3) {
|
|
796
|
+
case 1:
|
|
797
|
+
message.signatureData = reader.bytes();
|
|
798
|
+
break;
|
|
799
|
+
case 2:
|
|
800
|
+
message.timestamp = reader.uint64();
|
|
801
|
+
break;
|
|
802
|
+
default:
|
|
803
|
+
reader.skipType(tag & 7);
|
|
804
|
+
break;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
return message;
|
|
808
|
+
},
|
|
809
|
+
fromPartial(object: DeepPartial<TimestampedSignatureData>): TimestampedSignatureData {
|
|
810
|
+
const message = createBaseTimestampedSignatureData();
|
|
811
|
+
message.signatureData = object.signatureData ?? new Uint8Array();
|
|
812
|
+
message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? BigInt(object.timestamp.toString()) : BigInt(0);
|
|
813
|
+
return message;
|
|
814
|
+
},
|
|
815
|
+
fromAmino(object: TimestampedSignatureDataAmino): TimestampedSignatureData {
|
|
816
|
+
const message = createBaseTimestampedSignatureData();
|
|
817
|
+
if (object.signature_data !== undefined && object.signature_data !== null) {
|
|
818
|
+
message.signatureData = bytesFromBase64(object.signature_data);
|
|
819
|
+
}
|
|
820
|
+
if (object.timestamp !== undefined && object.timestamp !== null) {
|
|
821
|
+
message.timestamp = BigInt(object.timestamp);
|
|
822
|
+
}
|
|
823
|
+
return message;
|
|
824
|
+
},
|
|
825
|
+
toAmino(message: TimestampedSignatureData): TimestampedSignatureDataAmino {
|
|
826
|
+
const obj: any = {};
|
|
827
|
+
obj.signature_data = message.signatureData ? base64FromBytes(message.signatureData) : undefined;
|
|
828
|
+
obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp?.toString() : undefined;
|
|
829
|
+
return obj;
|
|
830
|
+
},
|
|
831
|
+
fromAminoMsg(object: TimestampedSignatureDataAminoMsg): TimestampedSignatureData {
|
|
832
|
+
return TimestampedSignatureData.fromAmino(object.value);
|
|
833
|
+
},
|
|
834
|
+
toAminoMsg(message: TimestampedSignatureData): TimestampedSignatureDataAminoMsg {
|
|
835
|
+
return {
|
|
836
|
+
type: "cosmos-sdk/TimestampedSignatureData",
|
|
837
|
+
value: TimestampedSignatureData.toAmino(message)
|
|
838
|
+
};
|
|
839
|
+
},
|
|
840
|
+
fromProtoMsg(message: TimestampedSignatureDataProtoMsg): TimestampedSignatureData {
|
|
841
|
+
return TimestampedSignatureData.decode(message.value);
|
|
842
|
+
},
|
|
843
|
+
toProto(message: TimestampedSignatureData): Uint8Array {
|
|
844
|
+
return TimestampedSignatureData.encode(message).finish();
|
|
845
|
+
},
|
|
846
|
+
toProtoMsg(message: TimestampedSignatureData): TimestampedSignatureDataProtoMsg {
|
|
847
|
+
return {
|
|
848
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.TimestampedSignatureData",
|
|
849
|
+
value: TimestampedSignatureData.encode(message).finish()
|
|
850
|
+
};
|
|
851
|
+
}
|
|
852
|
+
};
|
|
853
|
+
GlobalDecoderRegistry.register(TimestampedSignatureData.typeUrl, TimestampedSignatureData);
|
|
854
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(TimestampedSignatureData.aminoType, TimestampedSignatureData.typeUrl);
|
|
855
|
+
function createBaseSignBytes(): SignBytes {
|
|
856
|
+
return {
|
|
857
|
+
sequence: BigInt(0),
|
|
858
|
+
timestamp: BigInt(0),
|
|
859
|
+
diversifier: "",
|
|
860
|
+
path: new Uint8Array(),
|
|
861
|
+
data: new Uint8Array()
|
|
862
|
+
};
|
|
863
|
+
}
|
|
864
|
+
export const SignBytes = {
|
|
865
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.SignBytes",
|
|
866
|
+
aminoType: "cosmos-sdk/SignBytes",
|
|
867
|
+
is(o: any): o is SignBytes {
|
|
868
|
+
return o && (o.$typeUrl === SignBytes.typeUrl || typeof o.sequence === "bigint" && typeof o.timestamp === "bigint" && typeof o.diversifier === "string" && (o.path instanceof Uint8Array || typeof o.path === "string") && (o.data instanceof Uint8Array || typeof o.data === "string"));
|
|
869
|
+
},
|
|
870
|
+
isAmino(o: any): o is SignBytesAmino {
|
|
871
|
+
return o && (o.$typeUrl === SignBytes.typeUrl || typeof o.sequence === "bigint" && typeof o.timestamp === "bigint" && typeof o.diversifier === "string" && (o.path instanceof Uint8Array || typeof o.path === "string") && (o.data instanceof Uint8Array || typeof o.data === "string"));
|
|
872
|
+
},
|
|
873
|
+
encode(message: SignBytes, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
874
|
+
if (message.sequence !== BigInt(0)) {
|
|
875
|
+
writer.uint32(8).uint64(message.sequence);
|
|
876
|
+
}
|
|
877
|
+
if (message.timestamp !== BigInt(0)) {
|
|
878
|
+
writer.uint32(16).uint64(message.timestamp);
|
|
879
|
+
}
|
|
880
|
+
if (message.diversifier !== "") {
|
|
881
|
+
writer.uint32(26).string(message.diversifier);
|
|
882
|
+
}
|
|
883
|
+
if (message.path.length !== 0) {
|
|
884
|
+
writer.uint32(34).bytes(message.path);
|
|
885
|
+
}
|
|
886
|
+
if (message.data.length !== 0) {
|
|
887
|
+
writer.uint32(42).bytes(message.data);
|
|
888
|
+
}
|
|
889
|
+
return writer;
|
|
890
|
+
},
|
|
891
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SignBytes {
|
|
892
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
893
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
894
|
+
const message = createBaseSignBytes();
|
|
895
|
+
while (reader.pos < end) {
|
|
896
|
+
const tag = reader.uint32();
|
|
897
|
+
switch (tag >>> 3) {
|
|
898
|
+
case 1:
|
|
899
|
+
message.sequence = reader.uint64();
|
|
900
|
+
break;
|
|
901
|
+
case 2:
|
|
902
|
+
message.timestamp = reader.uint64();
|
|
903
|
+
break;
|
|
904
|
+
case 3:
|
|
905
|
+
message.diversifier = reader.string();
|
|
906
|
+
break;
|
|
907
|
+
case 4:
|
|
908
|
+
message.path = reader.bytes();
|
|
909
|
+
break;
|
|
910
|
+
case 5:
|
|
911
|
+
message.data = reader.bytes();
|
|
912
|
+
break;
|
|
913
|
+
default:
|
|
914
|
+
reader.skipType(tag & 7);
|
|
915
|
+
break;
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
return message;
|
|
919
|
+
},
|
|
920
|
+
fromPartial(object: DeepPartial<SignBytes>): SignBytes {
|
|
921
|
+
const message = createBaseSignBytes();
|
|
922
|
+
message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0);
|
|
923
|
+
message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? BigInt(object.timestamp.toString()) : BigInt(0);
|
|
924
|
+
message.diversifier = object.diversifier ?? "";
|
|
925
|
+
message.path = object.path ?? new Uint8Array();
|
|
926
|
+
message.data = object.data ?? new Uint8Array();
|
|
927
|
+
return message;
|
|
928
|
+
},
|
|
929
|
+
fromAmino(object: SignBytesAmino): SignBytes {
|
|
930
|
+
const message = createBaseSignBytes();
|
|
931
|
+
if (object.sequence !== undefined && object.sequence !== null) {
|
|
932
|
+
message.sequence = BigInt(object.sequence);
|
|
933
|
+
}
|
|
934
|
+
if (object.timestamp !== undefined && object.timestamp !== null) {
|
|
935
|
+
message.timestamp = BigInt(object.timestamp);
|
|
936
|
+
}
|
|
937
|
+
if (object.diversifier !== undefined && object.diversifier !== null) {
|
|
938
|
+
message.diversifier = object.diversifier;
|
|
939
|
+
}
|
|
940
|
+
if (object.path !== undefined && object.path !== null) {
|
|
941
|
+
message.path = bytesFromBase64(object.path);
|
|
942
|
+
}
|
|
943
|
+
if (object.data !== undefined && object.data !== null) {
|
|
944
|
+
message.data = bytesFromBase64(object.data);
|
|
945
|
+
}
|
|
946
|
+
return message;
|
|
947
|
+
},
|
|
948
|
+
toAmino(message: SignBytes): SignBytesAmino {
|
|
949
|
+
const obj: any = {};
|
|
950
|
+
obj.sequence = message.sequence !== BigInt(0) ? message.sequence?.toString() : undefined;
|
|
951
|
+
obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp?.toString() : undefined;
|
|
952
|
+
obj.diversifier = message.diversifier === "" ? undefined : message.diversifier;
|
|
953
|
+
obj.path = message.path ? base64FromBytes(message.path) : undefined;
|
|
954
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
955
|
+
return obj;
|
|
956
|
+
},
|
|
957
|
+
fromAminoMsg(object: SignBytesAminoMsg): SignBytes {
|
|
958
|
+
return SignBytes.fromAmino(object.value);
|
|
959
|
+
},
|
|
960
|
+
toAminoMsg(message: SignBytes): SignBytesAminoMsg {
|
|
961
|
+
return {
|
|
962
|
+
type: "cosmos-sdk/SignBytes",
|
|
963
|
+
value: SignBytes.toAmino(message)
|
|
964
|
+
};
|
|
965
|
+
},
|
|
966
|
+
fromProtoMsg(message: SignBytesProtoMsg): SignBytes {
|
|
967
|
+
return SignBytes.decode(message.value);
|
|
968
|
+
},
|
|
969
|
+
toProto(message: SignBytes): Uint8Array {
|
|
970
|
+
return SignBytes.encode(message).finish();
|
|
971
|
+
},
|
|
972
|
+
toProtoMsg(message: SignBytes): SignBytesProtoMsg {
|
|
973
|
+
return {
|
|
974
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.SignBytes",
|
|
975
|
+
value: SignBytes.encode(message).finish()
|
|
976
|
+
};
|
|
977
|
+
}
|
|
978
|
+
};
|
|
979
|
+
GlobalDecoderRegistry.register(SignBytes.typeUrl, SignBytes);
|
|
980
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(SignBytes.aminoType, SignBytes.typeUrl);
|
|
981
|
+
function createBaseHeaderData(): HeaderData {
|
|
982
|
+
return {
|
|
983
|
+
newPubKey: undefined,
|
|
984
|
+
newDiversifier: ""
|
|
985
|
+
};
|
|
986
|
+
}
|
|
987
|
+
export const HeaderData = {
|
|
988
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.HeaderData",
|
|
989
|
+
aminoType: "cosmos-sdk/HeaderData",
|
|
990
|
+
is(o: any): o is HeaderData {
|
|
991
|
+
return o && (o.$typeUrl === HeaderData.typeUrl || typeof o.newDiversifier === "string");
|
|
992
|
+
},
|
|
993
|
+
isAmino(o: any): o is HeaderDataAmino {
|
|
994
|
+
return o && (o.$typeUrl === HeaderData.typeUrl || typeof o.new_diversifier === "string");
|
|
995
|
+
},
|
|
996
|
+
encode(message: HeaderData, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
997
|
+
if (message.newPubKey !== undefined) {
|
|
998
|
+
Any.encode(message.newPubKey, writer.uint32(10).fork()).ldelim();
|
|
999
|
+
}
|
|
1000
|
+
if (message.newDiversifier !== "") {
|
|
1001
|
+
writer.uint32(18).string(message.newDiversifier);
|
|
1002
|
+
}
|
|
1003
|
+
return writer;
|
|
1004
|
+
},
|
|
1005
|
+
decode(input: BinaryReader | Uint8Array, length?: number): HeaderData {
|
|
1006
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1007
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1008
|
+
const message = createBaseHeaderData();
|
|
1009
|
+
while (reader.pos < end) {
|
|
1010
|
+
const tag = reader.uint32();
|
|
1011
|
+
switch (tag >>> 3) {
|
|
1012
|
+
case 1:
|
|
1013
|
+
message.newPubKey = Any.decode(reader, reader.uint32());
|
|
1014
|
+
break;
|
|
1015
|
+
case 2:
|
|
1016
|
+
message.newDiversifier = reader.string();
|
|
1017
|
+
break;
|
|
1018
|
+
default:
|
|
1019
|
+
reader.skipType(tag & 7);
|
|
1020
|
+
break;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
return message;
|
|
1024
|
+
},
|
|
1025
|
+
fromPartial(object: DeepPartial<HeaderData>): HeaderData {
|
|
1026
|
+
const message = createBaseHeaderData();
|
|
1027
|
+
message.newPubKey = object.newPubKey !== undefined && object.newPubKey !== null ? Any.fromPartial(object.newPubKey) : undefined;
|
|
1028
|
+
message.newDiversifier = object.newDiversifier ?? "";
|
|
1029
|
+
return message;
|
|
1030
|
+
},
|
|
1031
|
+
fromAmino(object: HeaderDataAmino): HeaderData {
|
|
1032
|
+
const message = createBaseHeaderData();
|
|
1033
|
+
if (object.new_pub_key !== undefined && object.new_pub_key !== null) {
|
|
1034
|
+
message.newPubKey = Any.fromAmino(object.new_pub_key);
|
|
1035
|
+
}
|
|
1036
|
+
if (object.new_diversifier !== undefined && object.new_diversifier !== null) {
|
|
1037
|
+
message.newDiversifier = object.new_diversifier;
|
|
1038
|
+
}
|
|
1039
|
+
return message;
|
|
1040
|
+
},
|
|
1041
|
+
toAmino(message: HeaderData): HeaderDataAmino {
|
|
1042
|
+
const obj: any = {};
|
|
1043
|
+
obj.new_pub_key = message.newPubKey ? Any.toAmino(message.newPubKey) : undefined;
|
|
1044
|
+
obj.new_diversifier = message.newDiversifier === "" ? undefined : message.newDiversifier;
|
|
1045
|
+
return obj;
|
|
1046
|
+
},
|
|
1047
|
+
fromAminoMsg(object: HeaderDataAminoMsg): HeaderData {
|
|
1048
|
+
return HeaderData.fromAmino(object.value);
|
|
1049
|
+
},
|
|
1050
|
+
toAminoMsg(message: HeaderData): HeaderDataAminoMsg {
|
|
1051
|
+
return {
|
|
1052
|
+
type: "cosmos-sdk/HeaderData",
|
|
1053
|
+
value: HeaderData.toAmino(message)
|
|
1054
|
+
};
|
|
1055
|
+
},
|
|
1056
|
+
fromProtoMsg(message: HeaderDataProtoMsg): HeaderData {
|
|
1057
|
+
return HeaderData.decode(message.value);
|
|
1058
|
+
},
|
|
1059
|
+
toProto(message: HeaderData): Uint8Array {
|
|
1060
|
+
return HeaderData.encode(message).finish();
|
|
1061
|
+
},
|
|
1062
|
+
toProtoMsg(message: HeaderData): HeaderDataProtoMsg {
|
|
1063
|
+
return {
|
|
1064
|
+
typeUrl: "/ibc.lightclients.solomachine.v3.HeaderData",
|
|
1065
|
+
value: HeaderData.encode(message).finish()
|
|
1066
|
+
};
|
|
1067
|
+
}
|
|
1068
|
+
};
|
|
1069
|
+
GlobalDecoderRegistry.register(HeaderData.typeUrl, HeaderData);
|
|
1070
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(HeaderData.aminoType, HeaderData.typeUrl);
|