@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,193 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
|
+
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
4
|
+
/**
|
|
5
|
+
* PubKey defines a type alias for an ecdsa.PublicKey that implements
|
|
6
|
+
* Tendermint's PubKey interface. It represents the 33-byte compressed public
|
|
7
|
+
* key format.
|
|
8
|
+
*/
|
|
9
|
+
export interface PubKey {
|
|
10
|
+
/** key is the public key in byte form */
|
|
11
|
+
key: Uint8Array;
|
|
12
|
+
}
|
|
13
|
+
export interface PubKeyProtoMsg {
|
|
14
|
+
typeUrl: "/ethermint.crypto.v1.ethsecp256k1.PubKey";
|
|
15
|
+
value: Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* PubKey defines a type alias for an ecdsa.PublicKey that implements
|
|
19
|
+
* Tendermint's PubKey interface. It represents the 33-byte compressed public
|
|
20
|
+
* key format.
|
|
21
|
+
*/
|
|
22
|
+
export interface PubKeyAmino {
|
|
23
|
+
/** key is the public key in byte form */
|
|
24
|
+
key: string;
|
|
25
|
+
}
|
|
26
|
+
export interface PubKeyAminoMsg {
|
|
27
|
+
type: "/ethermint.crypto.v1.ethsecp256k1.PubKey";
|
|
28
|
+
value: PubKeyAmino;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* PrivKey defines a type alias for an ecdsa.PrivateKey that implements
|
|
32
|
+
* Tendermint's PrivateKey interface.
|
|
33
|
+
*/
|
|
34
|
+
export interface PrivKey {
|
|
35
|
+
/** key is the private key in byte form */
|
|
36
|
+
key: Uint8Array;
|
|
37
|
+
}
|
|
38
|
+
export interface PrivKeyProtoMsg {
|
|
39
|
+
typeUrl: "/ethermint.crypto.v1.ethsecp256k1.PrivKey";
|
|
40
|
+
value: Uint8Array;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* PrivKey defines a type alias for an ecdsa.PrivateKey that implements
|
|
44
|
+
* Tendermint's PrivateKey interface.
|
|
45
|
+
*/
|
|
46
|
+
export interface PrivKeyAmino {
|
|
47
|
+
/** key is the private key in byte form */
|
|
48
|
+
key: string;
|
|
49
|
+
}
|
|
50
|
+
export interface PrivKeyAminoMsg {
|
|
51
|
+
type: "/ethermint.crypto.v1.ethsecp256k1.PrivKey";
|
|
52
|
+
value: PrivKeyAmino;
|
|
53
|
+
}
|
|
54
|
+
function createBasePubKey(): PubKey {
|
|
55
|
+
return {
|
|
56
|
+
key: new Uint8Array()
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export const PubKey = {
|
|
60
|
+
typeUrl: "/ethermint.crypto.v1.ethsecp256k1.PubKey",
|
|
61
|
+
is(o: any): o is PubKey {
|
|
62
|
+
return o && (o.$typeUrl === PubKey.typeUrl || o.key instanceof Uint8Array || typeof o.key === "string");
|
|
63
|
+
},
|
|
64
|
+
isAmino(o: any): o is PubKeyAmino {
|
|
65
|
+
return o && (o.$typeUrl === PubKey.typeUrl || o.key instanceof Uint8Array || typeof o.key === "string");
|
|
66
|
+
},
|
|
67
|
+
encode(message: PubKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
68
|
+
if (message.key.length !== 0) {
|
|
69
|
+
writer.uint32(10).bytes(message.key);
|
|
70
|
+
}
|
|
71
|
+
return writer;
|
|
72
|
+
},
|
|
73
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PubKey {
|
|
74
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
75
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
76
|
+
const message = createBasePubKey();
|
|
77
|
+
while (reader.pos < end) {
|
|
78
|
+
const tag = reader.uint32();
|
|
79
|
+
switch (tag >>> 3) {
|
|
80
|
+
case 1:
|
|
81
|
+
message.key = reader.bytes();
|
|
82
|
+
break;
|
|
83
|
+
default:
|
|
84
|
+
reader.skipType(tag & 7);
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return message;
|
|
89
|
+
},
|
|
90
|
+
fromPartial(object: DeepPartial<PubKey>): PubKey {
|
|
91
|
+
const message = createBasePubKey();
|
|
92
|
+
message.key = object.key ?? new Uint8Array();
|
|
93
|
+
return message;
|
|
94
|
+
},
|
|
95
|
+
fromAmino(object: PubKeyAmino): PubKey {
|
|
96
|
+
const message = createBasePubKey();
|
|
97
|
+
if (object.key !== undefined && object.key !== null) {
|
|
98
|
+
message.key = bytesFromBase64(object.key);
|
|
99
|
+
}
|
|
100
|
+
return message;
|
|
101
|
+
},
|
|
102
|
+
toAmino(message: PubKey): PubKeyAmino {
|
|
103
|
+
const obj: any = {};
|
|
104
|
+
obj.key = message.key ? base64FromBytes(message.key) : undefined;
|
|
105
|
+
return obj;
|
|
106
|
+
},
|
|
107
|
+
fromAminoMsg(object: PubKeyAminoMsg): PubKey {
|
|
108
|
+
return PubKey.fromAmino(object.value);
|
|
109
|
+
},
|
|
110
|
+
fromProtoMsg(message: PubKeyProtoMsg): PubKey {
|
|
111
|
+
return PubKey.decode(message.value);
|
|
112
|
+
},
|
|
113
|
+
toProto(message: PubKey): Uint8Array {
|
|
114
|
+
return PubKey.encode(message).finish();
|
|
115
|
+
},
|
|
116
|
+
toProtoMsg(message: PubKey): PubKeyProtoMsg {
|
|
117
|
+
return {
|
|
118
|
+
typeUrl: "/ethermint.crypto.v1.ethsecp256k1.PubKey",
|
|
119
|
+
value: PubKey.encode(message).finish()
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
GlobalDecoderRegistry.register(PubKey.typeUrl, PubKey);
|
|
124
|
+
function createBasePrivKey(): PrivKey {
|
|
125
|
+
return {
|
|
126
|
+
key: new Uint8Array()
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
export const PrivKey = {
|
|
130
|
+
typeUrl: "/ethermint.crypto.v1.ethsecp256k1.PrivKey",
|
|
131
|
+
is(o: any): o is PrivKey {
|
|
132
|
+
return o && (o.$typeUrl === PrivKey.typeUrl || o.key instanceof Uint8Array || typeof o.key === "string");
|
|
133
|
+
},
|
|
134
|
+
isAmino(o: any): o is PrivKeyAmino {
|
|
135
|
+
return o && (o.$typeUrl === PrivKey.typeUrl || o.key instanceof Uint8Array || typeof o.key === "string");
|
|
136
|
+
},
|
|
137
|
+
encode(message: PrivKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
138
|
+
if (message.key.length !== 0) {
|
|
139
|
+
writer.uint32(10).bytes(message.key);
|
|
140
|
+
}
|
|
141
|
+
return writer;
|
|
142
|
+
},
|
|
143
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PrivKey {
|
|
144
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
145
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
146
|
+
const message = createBasePrivKey();
|
|
147
|
+
while (reader.pos < end) {
|
|
148
|
+
const tag = reader.uint32();
|
|
149
|
+
switch (tag >>> 3) {
|
|
150
|
+
case 1:
|
|
151
|
+
message.key = reader.bytes();
|
|
152
|
+
break;
|
|
153
|
+
default:
|
|
154
|
+
reader.skipType(tag & 7);
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
return message;
|
|
159
|
+
},
|
|
160
|
+
fromPartial(object: DeepPartial<PrivKey>): PrivKey {
|
|
161
|
+
const message = createBasePrivKey();
|
|
162
|
+
message.key = object.key ?? new Uint8Array();
|
|
163
|
+
return message;
|
|
164
|
+
},
|
|
165
|
+
fromAmino(object: PrivKeyAmino): PrivKey {
|
|
166
|
+
const message = createBasePrivKey();
|
|
167
|
+
if (object.key !== undefined && object.key !== null) {
|
|
168
|
+
message.key = bytesFromBase64(object.key);
|
|
169
|
+
}
|
|
170
|
+
return message;
|
|
171
|
+
},
|
|
172
|
+
toAmino(message: PrivKey): PrivKeyAmino {
|
|
173
|
+
const obj: any = {};
|
|
174
|
+
obj.key = message.key ? base64FromBytes(message.key) : undefined;
|
|
175
|
+
return obj;
|
|
176
|
+
},
|
|
177
|
+
fromAminoMsg(object: PrivKeyAminoMsg): PrivKey {
|
|
178
|
+
return PrivKey.fromAmino(object.value);
|
|
179
|
+
},
|
|
180
|
+
fromProtoMsg(message: PrivKeyProtoMsg): PrivKey {
|
|
181
|
+
return PrivKey.decode(message.value);
|
|
182
|
+
},
|
|
183
|
+
toProto(message: PrivKey): Uint8Array {
|
|
184
|
+
return PrivKey.encode(message).finish();
|
|
185
|
+
},
|
|
186
|
+
toProtoMsg(message: PrivKey): PrivKeyProtoMsg {
|
|
187
|
+
return {
|
|
188
|
+
typeUrl: "/ethermint.crypto.v1.ethsecp256k1.PrivKey",
|
|
189
|
+
value: PrivKey.encode(message).finish()
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
GlobalDecoderRegistry.register(PrivKey.typeUrl, PrivKey);
|
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
4
|
+
/** EventEthereumTx defines the event for an Ethereum transaction */
|
|
5
|
+
export interface EventEthereumTx {
|
|
6
|
+
/** amount */
|
|
7
|
+
amount: string;
|
|
8
|
+
/** eth_hash is the Ethereum hash of the transaction */
|
|
9
|
+
ethHash: string;
|
|
10
|
+
/** index of the transaction in the block */
|
|
11
|
+
index: string;
|
|
12
|
+
/** gas_used is the amount of gas used by the transaction */
|
|
13
|
+
gasUsed: string;
|
|
14
|
+
/** hash is the Tendermint hash of the transaction */
|
|
15
|
+
hash: string;
|
|
16
|
+
/** recipient of the transaction */
|
|
17
|
+
recipient: string;
|
|
18
|
+
/** eth_tx_failed contains a VM error should it occur */
|
|
19
|
+
ethTxFailed: string;
|
|
20
|
+
}
|
|
21
|
+
export interface EventEthereumTxProtoMsg {
|
|
22
|
+
typeUrl: "/ethermint.evm.v1.EventEthereumTx";
|
|
23
|
+
value: Uint8Array;
|
|
24
|
+
}
|
|
25
|
+
/** EventEthereumTx defines the event for an Ethereum transaction */
|
|
26
|
+
export interface EventEthereumTxAmino {
|
|
27
|
+
/** amount */
|
|
28
|
+
amount: string;
|
|
29
|
+
/** eth_hash is the Ethereum hash of the transaction */
|
|
30
|
+
eth_hash: string;
|
|
31
|
+
/** index of the transaction in the block */
|
|
32
|
+
index: string;
|
|
33
|
+
/** gas_used is the amount of gas used by the transaction */
|
|
34
|
+
gas_used: string;
|
|
35
|
+
/** hash is the Tendermint hash of the transaction */
|
|
36
|
+
hash: string;
|
|
37
|
+
/** recipient of the transaction */
|
|
38
|
+
recipient: string;
|
|
39
|
+
/** eth_tx_failed contains a VM error should it occur */
|
|
40
|
+
eth_tx_failed: string;
|
|
41
|
+
}
|
|
42
|
+
export interface EventEthereumTxAminoMsg {
|
|
43
|
+
type: "/ethermint.evm.v1.EventEthereumTx";
|
|
44
|
+
value: EventEthereumTxAmino;
|
|
45
|
+
}
|
|
46
|
+
/** EventTxLog defines the event for an Ethereum transaction log */
|
|
47
|
+
export interface EventTxLog {
|
|
48
|
+
/** tx_logs is an array of transaction logs */
|
|
49
|
+
txLogs: string[];
|
|
50
|
+
}
|
|
51
|
+
export interface EventTxLogProtoMsg {
|
|
52
|
+
typeUrl: "/ethermint.evm.v1.EventTxLog";
|
|
53
|
+
value: Uint8Array;
|
|
54
|
+
}
|
|
55
|
+
/** EventTxLog defines the event for an Ethereum transaction log */
|
|
56
|
+
export interface EventTxLogAmino {
|
|
57
|
+
/** tx_logs is an array of transaction logs */
|
|
58
|
+
tx_logs: string[];
|
|
59
|
+
}
|
|
60
|
+
export interface EventTxLogAminoMsg {
|
|
61
|
+
type: "/ethermint.evm.v1.EventTxLog";
|
|
62
|
+
value: EventTxLogAmino;
|
|
63
|
+
}
|
|
64
|
+
/** EventMessage */
|
|
65
|
+
export interface EventMessage {
|
|
66
|
+
/** module which emits the event */
|
|
67
|
+
module: string;
|
|
68
|
+
/** sender of the message */
|
|
69
|
+
sender: string;
|
|
70
|
+
/** tx_type is the type of the message */
|
|
71
|
+
txType: string;
|
|
72
|
+
}
|
|
73
|
+
export interface EventMessageProtoMsg {
|
|
74
|
+
typeUrl: "/ethermint.evm.v1.EventMessage";
|
|
75
|
+
value: Uint8Array;
|
|
76
|
+
}
|
|
77
|
+
/** EventMessage */
|
|
78
|
+
export interface EventMessageAmino {
|
|
79
|
+
/** module which emits the event */
|
|
80
|
+
module: string;
|
|
81
|
+
/** sender of the message */
|
|
82
|
+
sender: string;
|
|
83
|
+
/** tx_type is the type of the message */
|
|
84
|
+
tx_type: string;
|
|
85
|
+
}
|
|
86
|
+
export interface EventMessageAminoMsg {
|
|
87
|
+
type: "/ethermint.evm.v1.EventMessage";
|
|
88
|
+
value: EventMessageAmino;
|
|
89
|
+
}
|
|
90
|
+
/** EventBlockBloom defines an Ethereum block bloom filter event */
|
|
91
|
+
export interface EventBlockBloom {
|
|
92
|
+
/** bloom is the bloom filter of the block */
|
|
93
|
+
bloom: string;
|
|
94
|
+
}
|
|
95
|
+
export interface EventBlockBloomProtoMsg {
|
|
96
|
+
typeUrl: "/ethermint.evm.v1.EventBlockBloom";
|
|
97
|
+
value: Uint8Array;
|
|
98
|
+
}
|
|
99
|
+
/** EventBlockBloom defines an Ethereum block bloom filter event */
|
|
100
|
+
export interface EventBlockBloomAmino {
|
|
101
|
+
/** bloom is the bloom filter of the block */
|
|
102
|
+
bloom: string;
|
|
103
|
+
}
|
|
104
|
+
export interface EventBlockBloomAminoMsg {
|
|
105
|
+
type: "/ethermint.evm.v1.EventBlockBloom";
|
|
106
|
+
value: EventBlockBloomAmino;
|
|
107
|
+
}
|
|
108
|
+
function createBaseEventEthereumTx(): EventEthereumTx {
|
|
109
|
+
return {
|
|
110
|
+
amount: "",
|
|
111
|
+
ethHash: "",
|
|
112
|
+
index: "",
|
|
113
|
+
gasUsed: "",
|
|
114
|
+
hash: "",
|
|
115
|
+
recipient: "",
|
|
116
|
+
ethTxFailed: ""
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
export const EventEthereumTx = {
|
|
120
|
+
typeUrl: "/ethermint.evm.v1.EventEthereumTx",
|
|
121
|
+
is(o: any): o is EventEthereumTx {
|
|
122
|
+
return o && (o.$typeUrl === EventEthereumTx.typeUrl || typeof o.amount === "string" && typeof o.ethHash === "string" && typeof o.index === "string" && typeof o.gasUsed === "string" && typeof o.hash === "string" && typeof o.recipient === "string" && typeof o.ethTxFailed === "string");
|
|
123
|
+
},
|
|
124
|
+
isAmino(o: any): o is EventEthereumTxAmino {
|
|
125
|
+
return o && (o.$typeUrl === EventEthereumTx.typeUrl || typeof o.amount === "string" && typeof o.eth_hash === "string" && typeof o.index === "string" && typeof o.gas_used === "string" && typeof o.hash === "string" && typeof o.recipient === "string" && typeof o.eth_tx_failed === "string");
|
|
126
|
+
},
|
|
127
|
+
encode(message: EventEthereumTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
128
|
+
if (message.amount !== "") {
|
|
129
|
+
writer.uint32(10).string(message.amount);
|
|
130
|
+
}
|
|
131
|
+
if (message.ethHash !== "") {
|
|
132
|
+
writer.uint32(18).string(message.ethHash);
|
|
133
|
+
}
|
|
134
|
+
if (message.index !== "") {
|
|
135
|
+
writer.uint32(26).string(message.index);
|
|
136
|
+
}
|
|
137
|
+
if (message.gasUsed !== "") {
|
|
138
|
+
writer.uint32(34).string(message.gasUsed);
|
|
139
|
+
}
|
|
140
|
+
if (message.hash !== "") {
|
|
141
|
+
writer.uint32(42).string(message.hash);
|
|
142
|
+
}
|
|
143
|
+
if (message.recipient !== "") {
|
|
144
|
+
writer.uint32(50).string(message.recipient);
|
|
145
|
+
}
|
|
146
|
+
if (message.ethTxFailed !== "") {
|
|
147
|
+
writer.uint32(58).string(message.ethTxFailed);
|
|
148
|
+
}
|
|
149
|
+
return writer;
|
|
150
|
+
},
|
|
151
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EventEthereumTx {
|
|
152
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
153
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
154
|
+
const message = createBaseEventEthereumTx();
|
|
155
|
+
while (reader.pos < end) {
|
|
156
|
+
const tag = reader.uint32();
|
|
157
|
+
switch (tag >>> 3) {
|
|
158
|
+
case 1:
|
|
159
|
+
message.amount = reader.string();
|
|
160
|
+
break;
|
|
161
|
+
case 2:
|
|
162
|
+
message.ethHash = reader.string();
|
|
163
|
+
break;
|
|
164
|
+
case 3:
|
|
165
|
+
message.index = reader.string();
|
|
166
|
+
break;
|
|
167
|
+
case 4:
|
|
168
|
+
message.gasUsed = reader.string();
|
|
169
|
+
break;
|
|
170
|
+
case 5:
|
|
171
|
+
message.hash = reader.string();
|
|
172
|
+
break;
|
|
173
|
+
case 6:
|
|
174
|
+
message.recipient = reader.string();
|
|
175
|
+
break;
|
|
176
|
+
case 7:
|
|
177
|
+
message.ethTxFailed = reader.string();
|
|
178
|
+
break;
|
|
179
|
+
default:
|
|
180
|
+
reader.skipType(tag & 7);
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return message;
|
|
185
|
+
},
|
|
186
|
+
fromPartial(object: DeepPartial<EventEthereumTx>): EventEthereumTx {
|
|
187
|
+
const message = createBaseEventEthereumTx();
|
|
188
|
+
message.amount = object.amount ?? "";
|
|
189
|
+
message.ethHash = object.ethHash ?? "";
|
|
190
|
+
message.index = object.index ?? "";
|
|
191
|
+
message.gasUsed = object.gasUsed ?? "";
|
|
192
|
+
message.hash = object.hash ?? "";
|
|
193
|
+
message.recipient = object.recipient ?? "";
|
|
194
|
+
message.ethTxFailed = object.ethTxFailed ?? "";
|
|
195
|
+
return message;
|
|
196
|
+
},
|
|
197
|
+
fromAmino(object: EventEthereumTxAmino): EventEthereumTx {
|
|
198
|
+
const message = createBaseEventEthereumTx();
|
|
199
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
200
|
+
message.amount = object.amount;
|
|
201
|
+
}
|
|
202
|
+
if (object.eth_hash !== undefined && object.eth_hash !== null) {
|
|
203
|
+
message.ethHash = object.eth_hash;
|
|
204
|
+
}
|
|
205
|
+
if (object.index !== undefined && object.index !== null) {
|
|
206
|
+
message.index = object.index;
|
|
207
|
+
}
|
|
208
|
+
if (object.gas_used !== undefined && object.gas_used !== null) {
|
|
209
|
+
message.gasUsed = object.gas_used;
|
|
210
|
+
}
|
|
211
|
+
if (object.hash !== undefined && object.hash !== null) {
|
|
212
|
+
message.hash = object.hash;
|
|
213
|
+
}
|
|
214
|
+
if (object.recipient !== undefined && object.recipient !== null) {
|
|
215
|
+
message.recipient = object.recipient;
|
|
216
|
+
}
|
|
217
|
+
if (object.eth_tx_failed !== undefined && object.eth_tx_failed !== null) {
|
|
218
|
+
message.ethTxFailed = object.eth_tx_failed;
|
|
219
|
+
}
|
|
220
|
+
return message;
|
|
221
|
+
},
|
|
222
|
+
toAmino(message: EventEthereumTx): EventEthereumTxAmino {
|
|
223
|
+
const obj: any = {};
|
|
224
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
225
|
+
obj.eth_hash = message.ethHash === "" ? undefined : message.ethHash;
|
|
226
|
+
obj.index = message.index === "" ? undefined : message.index;
|
|
227
|
+
obj.gas_used = message.gasUsed === "" ? undefined : message.gasUsed;
|
|
228
|
+
obj.hash = message.hash === "" ? undefined : message.hash;
|
|
229
|
+
obj.recipient = message.recipient === "" ? undefined : message.recipient;
|
|
230
|
+
obj.eth_tx_failed = message.ethTxFailed === "" ? undefined : message.ethTxFailed;
|
|
231
|
+
return obj;
|
|
232
|
+
},
|
|
233
|
+
fromAminoMsg(object: EventEthereumTxAminoMsg): EventEthereumTx {
|
|
234
|
+
return EventEthereumTx.fromAmino(object.value);
|
|
235
|
+
},
|
|
236
|
+
fromProtoMsg(message: EventEthereumTxProtoMsg): EventEthereumTx {
|
|
237
|
+
return EventEthereumTx.decode(message.value);
|
|
238
|
+
},
|
|
239
|
+
toProto(message: EventEthereumTx): Uint8Array {
|
|
240
|
+
return EventEthereumTx.encode(message).finish();
|
|
241
|
+
},
|
|
242
|
+
toProtoMsg(message: EventEthereumTx): EventEthereumTxProtoMsg {
|
|
243
|
+
return {
|
|
244
|
+
typeUrl: "/ethermint.evm.v1.EventEthereumTx",
|
|
245
|
+
value: EventEthereumTx.encode(message).finish()
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
GlobalDecoderRegistry.register(EventEthereumTx.typeUrl, EventEthereumTx);
|
|
250
|
+
function createBaseEventTxLog(): EventTxLog {
|
|
251
|
+
return {
|
|
252
|
+
txLogs: []
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
export const EventTxLog = {
|
|
256
|
+
typeUrl: "/ethermint.evm.v1.EventTxLog",
|
|
257
|
+
is(o: any): o is EventTxLog {
|
|
258
|
+
return o && (o.$typeUrl === EventTxLog.typeUrl || Array.isArray(o.txLogs) && (!o.txLogs.length || typeof o.txLogs[0] === "string"));
|
|
259
|
+
},
|
|
260
|
+
isAmino(o: any): o is EventTxLogAmino {
|
|
261
|
+
return o && (o.$typeUrl === EventTxLog.typeUrl || Array.isArray(o.tx_logs) && (!o.tx_logs.length || typeof o.tx_logs[0] === "string"));
|
|
262
|
+
},
|
|
263
|
+
encode(message: EventTxLog, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
264
|
+
for (const v of message.txLogs) {
|
|
265
|
+
writer.uint32(10).string(v!);
|
|
266
|
+
}
|
|
267
|
+
return writer;
|
|
268
|
+
},
|
|
269
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EventTxLog {
|
|
270
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
271
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
272
|
+
const message = createBaseEventTxLog();
|
|
273
|
+
while (reader.pos < end) {
|
|
274
|
+
const tag = reader.uint32();
|
|
275
|
+
switch (tag >>> 3) {
|
|
276
|
+
case 1:
|
|
277
|
+
message.txLogs.push(reader.string());
|
|
278
|
+
break;
|
|
279
|
+
default:
|
|
280
|
+
reader.skipType(tag & 7);
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
return message;
|
|
285
|
+
},
|
|
286
|
+
fromPartial(object: DeepPartial<EventTxLog>): EventTxLog {
|
|
287
|
+
const message = createBaseEventTxLog();
|
|
288
|
+
message.txLogs = object.txLogs?.map(e => e) || [];
|
|
289
|
+
return message;
|
|
290
|
+
},
|
|
291
|
+
fromAmino(object: EventTxLogAmino): EventTxLog {
|
|
292
|
+
const message = createBaseEventTxLog();
|
|
293
|
+
message.txLogs = object.tx_logs?.map(e => e) || [];
|
|
294
|
+
return message;
|
|
295
|
+
},
|
|
296
|
+
toAmino(message: EventTxLog): EventTxLogAmino {
|
|
297
|
+
const obj: any = {};
|
|
298
|
+
if (message.txLogs) {
|
|
299
|
+
obj.tx_logs = message.txLogs.map(e => e);
|
|
300
|
+
} else {
|
|
301
|
+
obj.tx_logs = message.txLogs;
|
|
302
|
+
}
|
|
303
|
+
return obj;
|
|
304
|
+
},
|
|
305
|
+
fromAminoMsg(object: EventTxLogAminoMsg): EventTxLog {
|
|
306
|
+
return EventTxLog.fromAmino(object.value);
|
|
307
|
+
},
|
|
308
|
+
fromProtoMsg(message: EventTxLogProtoMsg): EventTxLog {
|
|
309
|
+
return EventTxLog.decode(message.value);
|
|
310
|
+
},
|
|
311
|
+
toProto(message: EventTxLog): Uint8Array {
|
|
312
|
+
return EventTxLog.encode(message).finish();
|
|
313
|
+
},
|
|
314
|
+
toProtoMsg(message: EventTxLog): EventTxLogProtoMsg {
|
|
315
|
+
return {
|
|
316
|
+
typeUrl: "/ethermint.evm.v1.EventTxLog",
|
|
317
|
+
value: EventTxLog.encode(message).finish()
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
GlobalDecoderRegistry.register(EventTxLog.typeUrl, EventTxLog);
|
|
322
|
+
function createBaseEventMessage(): EventMessage {
|
|
323
|
+
return {
|
|
324
|
+
module: "",
|
|
325
|
+
sender: "",
|
|
326
|
+
txType: ""
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
export const EventMessage = {
|
|
330
|
+
typeUrl: "/ethermint.evm.v1.EventMessage",
|
|
331
|
+
is(o: any): o is EventMessage {
|
|
332
|
+
return o && (o.$typeUrl === EventMessage.typeUrl || typeof o.module === "string" && typeof o.sender === "string" && typeof o.txType === "string");
|
|
333
|
+
},
|
|
334
|
+
isAmino(o: any): o is EventMessageAmino {
|
|
335
|
+
return o && (o.$typeUrl === EventMessage.typeUrl || typeof o.module === "string" && typeof o.sender === "string" && typeof o.tx_type === "string");
|
|
336
|
+
},
|
|
337
|
+
encode(message: EventMessage, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
338
|
+
if (message.module !== "") {
|
|
339
|
+
writer.uint32(10).string(message.module);
|
|
340
|
+
}
|
|
341
|
+
if (message.sender !== "") {
|
|
342
|
+
writer.uint32(18).string(message.sender);
|
|
343
|
+
}
|
|
344
|
+
if (message.txType !== "") {
|
|
345
|
+
writer.uint32(26).string(message.txType);
|
|
346
|
+
}
|
|
347
|
+
return writer;
|
|
348
|
+
},
|
|
349
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EventMessage {
|
|
350
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
351
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
352
|
+
const message = createBaseEventMessage();
|
|
353
|
+
while (reader.pos < end) {
|
|
354
|
+
const tag = reader.uint32();
|
|
355
|
+
switch (tag >>> 3) {
|
|
356
|
+
case 1:
|
|
357
|
+
message.module = reader.string();
|
|
358
|
+
break;
|
|
359
|
+
case 2:
|
|
360
|
+
message.sender = reader.string();
|
|
361
|
+
break;
|
|
362
|
+
case 3:
|
|
363
|
+
message.txType = reader.string();
|
|
364
|
+
break;
|
|
365
|
+
default:
|
|
366
|
+
reader.skipType(tag & 7);
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
return message;
|
|
371
|
+
},
|
|
372
|
+
fromPartial(object: DeepPartial<EventMessage>): EventMessage {
|
|
373
|
+
const message = createBaseEventMessage();
|
|
374
|
+
message.module = object.module ?? "";
|
|
375
|
+
message.sender = object.sender ?? "";
|
|
376
|
+
message.txType = object.txType ?? "";
|
|
377
|
+
return message;
|
|
378
|
+
},
|
|
379
|
+
fromAmino(object: EventMessageAmino): EventMessage {
|
|
380
|
+
const message = createBaseEventMessage();
|
|
381
|
+
if (object.module !== undefined && object.module !== null) {
|
|
382
|
+
message.module = object.module;
|
|
383
|
+
}
|
|
384
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
385
|
+
message.sender = object.sender;
|
|
386
|
+
}
|
|
387
|
+
if (object.tx_type !== undefined && object.tx_type !== null) {
|
|
388
|
+
message.txType = object.tx_type;
|
|
389
|
+
}
|
|
390
|
+
return message;
|
|
391
|
+
},
|
|
392
|
+
toAmino(message: EventMessage): EventMessageAmino {
|
|
393
|
+
const obj: any = {};
|
|
394
|
+
obj.module = message.module === "" ? undefined : message.module;
|
|
395
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
396
|
+
obj.tx_type = message.txType === "" ? undefined : message.txType;
|
|
397
|
+
return obj;
|
|
398
|
+
},
|
|
399
|
+
fromAminoMsg(object: EventMessageAminoMsg): EventMessage {
|
|
400
|
+
return EventMessage.fromAmino(object.value);
|
|
401
|
+
},
|
|
402
|
+
fromProtoMsg(message: EventMessageProtoMsg): EventMessage {
|
|
403
|
+
return EventMessage.decode(message.value);
|
|
404
|
+
},
|
|
405
|
+
toProto(message: EventMessage): Uint8Array {
|
|
406
|
+
return EventMessage.encode(message).finish();
|
|
407
|
+
},
|
|
408
|
+
toProtoMsg(message: EventMessage): EventMessageProtoMsg {
|
|
409
|
+
return {
|
|
410
|
+
typeUrl: "/ethermint.evm.v1.EventMessage",
|
|
411
|
+
value: EventMessage.encode(message).finish()
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
GlobalDecoderRegistry.register(EventMessage.typeUrl, EventMessage);
|
|
416
|
+
function createBaseEventBlockBloom(): EventBlockBloom {
|
|
417
|
+
return {
|
|
418
|
+
bloom: ""
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
export const EventBlockBloom = {
|
|
422
|
+
typeUrl: "/ethermint.evm.v1.EventBlockBloom",
|
|
423
|
+
is(o: any): o is EventBlockBloom {
|
|
424
|
+
return o && (o.$typeUrl === EventBlockBloom.typeUrl || typeof o.bloom === "string");
|
|
425
|
+
},
|
|
426
|
+
isAmino(o: any): o is EventBlockBloomAmino {
|
|
427
|
+
return o && (o.$typeUrl === EventBlockBloom.typeUrl || typeof o.bloom === "string");
|
|
428
|
+
},
|
|
429
|
+
encode(message: EventBlockBloom, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
430
|
+
if (message.bloom !== "") {
|
|
431
|
+
writer.uint32(10).string(message.bloom);
|
|
432
|
+
}
|
|
433
|
+
return writer;
|
|
434
|
+
},
|
|
435
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EventBlockBloom {
|
|
436
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
437
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
438
|
+
const message = createBaseEventBlockBloom();
|
|
439
|
+
while (reader.pos < end) {
|
|
440
|
+
const tag = reader.uint32();
|
|
441
|
+
switch (tag >>> 3) {
|
|
442
|
+
case 1:
|
|
443
|
+
message.bloom = reader.string();
|
|
444
|
+
break;
|
|
445
|
+
default:
|
|
446
|
+
reader.skipType(tag & 7);
|
|
447
|
+
break;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
return message;
|
|
451
|
+
},
|
|
452
|
+
fromPartial(object: DeepPartial<EventBlockBloom>): EventBlockBloom {
|
|
453
|
+
const message = createBaseEventBlockBloom();
|
|
454
|
+
message.bloom = object.bloom ?? "";
|
|
455
|
+
return message;
|
|
456
|
+
},
|
|
457
|
+
fromAmino(object: EventBlockBloomAmino): EventBlockBloom {
|
|
458
|
+
const message = createBaseEventBlockBloom();
|
|
459
|
+
if (object.bloom !== undefined && object.bloom !== null) {
|
|
460
|
+
message.bloom = object.bloom;
|
|
461
|
+
}
|
|
462
|
+
return message;
|
|
463
|
+
},
|
|
464
|
+
toAmino(message: EventBlockBloom): EventBlockBloomAmino {
|
|
465
|
+
const obj: any = {};
|
|
466
|
+
obj.bloom = message.bloom === "" ? undefined : message.bloom;
|
|
467
|
+
return obj;
|
|
468
|
+
},
|
|
469
|
+
fromAminoMsg(object: EventBlockBloomAminoMsg): EventBlockBloom {
|
|
470
|
+
return EventBlockBloom.fromAmino(object.value);
|
|
471
|
+
},
|
|
472
|
+
fromProtoMsg(message: EventBlockBloomProtoMsg): EventBlockBloom {
|
|
473
|
+
return EventBlockBloom.decode(message.value);
|
|
474
|
+
},
|
|
475
|
+
toProto(message: EventBlockBloom): Uint8Array {
|
|
476
|
+
return EventBlockBloom.encode(message).finish();
|
|
477
|
+
},
|
|
478
|
+
toProtoMsg(message: EventBlockBloom): EventBlockBloomProtoMsg {
|
|
479
|
+
return {
|
|
480
|
+
typeUrl: "/ethermint.evm.v1.EventBlockBloom",
|
|
481
|
+
value: EventBlockBloom.encode(message).finish()
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
GlobalDecoderRegistry.register(EventBlockBloom.typeUrl, EventBlockBloom);
|