@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,197 @@
|
|
|
1
|
+
import { Params, ParamsAmino } from "./feemarket";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { DeepPartial } from "../../../helpers";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
|
+
/** MsgUpdateParams defines a Msg for updating the x/feemarket module parameters. */
|
|
6
|
+
export interface MsgUpdateParams {
|
|
7
|
+
/** authority is the address of the governance account. */
|
|
8
|
+
authority: string;
|
|
9
|
+
/**
|
|
10
|
+
* params defines the x/feemarket parameters to update.
|
|
11
|
+
* NOTE: All parameters must be supplied.
|
|
12
|
+
*/
|
|
13
|
+
params: Params;
|
|
14
|
+
}
|
|
15
|
+
export interface MsgUpdateParamsProtoMsg {
|
|
16
|
+
typeUrl: "/ethermint.feemarket.v1.MsgUpdateParams";
|
|
17
|
+
value: Uint8Array;
|
|
18
|
+
}
|
|
19
|
+
/** MsgUpdateParams defines a Msg for updating the x/feemarket module parameters. */
|
|
20
|
+
export interface MsgUpdateParamsAmino {
|
|
21
|
+
/** authority is the address of the governance account. */
|
|
22
|
+
authority: string;
|
|
23
|
+
/**
|
|
24
|
+
* params defines the x/feemarket parameters to update.
|
|
25
|
+
* NOTE: All parameters must be supplied.
|
|
26
|
+
*/
|
|
27
|
+
params: ParamsAmino;
|
|
28
|
+
}
|
|
29
|
+
export interface MsgUpdateParamsAminoMsg {
|
|
30
|
+
type: "ethermint/x/feemarket/MsgUpdateParams";
|
|
31
|
+
value: MsgUpdateParamsAmino;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
35
|
+
* MsgUpdateParams message.
|
|
36
|
+
*/
|
|
37
|
+
export interface MsgUpdateParamsResponse {}
|
|
38
|
+
export interface MsgUpdateParamsResponseProtoMsg {
|
|
39
|
+
typeUrl: "/ethermint.feemarket.v1.MsgUpdateParamsResponse";
|
|
40
|
+
value: Uint8Array;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
44
|
+
* MsgUpdateParams message.
|
|
45
|
+
*/
|
|
46
|
+
export interface MsgUpdateParamsResponseAmino {}
|
|
47
|
+
export interface MsgUpdateParamsResponseAminoMsg {
|
|
48
|
+
type: "/ethermint.feemarket.v1.MsgUpdateParamsResponse";
|
|
49
|
+
value: MsgUpdateParamsResponseAmino;
|
|
50
|
+
}
|
|
51
|
+
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
52
|
+
return {
|
|
53
|
+
authority: "",
|
|
54
|
+
params: Params.fromPartial({})
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export const MsgUpdateParams = {
|
|
58
|
+
typeUrl: "/ethermint.feemarket.v1.MsgUpdateParams",
|
|
59
|
+
aminoType: "ethermint/x/feemarket/MsgUpdateParams",
|
|
60
|
+
is(o: any): o is MsgUpdateParams {
|
|
61
|
+
return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.is(o.params));
|
|
62
|
+
},
|
|
63
|
+
isAmino(o: any): o is MsgUpdateParamsAmino {
|
|
64
|
+
return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.isAmino(o.params));
|
|
65
|
+
},
|
|
66
|
+
encode(message: MsgUpdateParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
67
|
+
if (message.authority !== "") {
|
|
68
|
+
writer.uint32(10).string(message.authority);
|
|
69
|
+
}
|
|
70
|
+
if (message.params !== undefined) {
|
|
71
|
+
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
72
|
+
}
|
|
73
|
+
return writer;
|
|
74
|
+
},
|
|
75
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
|
|
76
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
77
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
+
const message = createBaseMsgUpdateParams();
|
|
79
|
+
while (reader.pos < end) {
|
|
80
|
+
const tag = reader.uint32();
|
|
81
|
+
switch (tag >>> 3) {
|
|
82
|
+
case 1:
|
|
83
|
+
message.authority = reader.string();
|
|
84
|
+
break;
|
|
85
|
+
case 2:
|
|
86
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
87
|
+
break;
|
|
88
|
+
default:
|
|
89
|
+
reader.skipType(tag & 7);
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return message;
|
|
94
|
+
},
|
|
95
|
+
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams {
|
|
96
|
+
const message = createBaseMsgUpdateParams();
|
|
97
|
+
message.authority = object.authority ?? "";
|
|
98
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams {
|
|
102
|
+
const message = createBaseMsgUpdateParams();
|
|
103
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
104
|
+
message.authority = object.authority;
|
|
105
|
+
}
|
|
106
|
+
if (object.params !== undefined && object.params !== null) {
|
|
107
|
+
message.params = Params.fromAmino(object.params);
|
|
108
|
+
}
|
|
109
|
+
return message;
|
|
110
|
+
},
|
|
111
|
+
toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino {
|
|
112
|
+
const obj: any = {};
|
|
113
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
114
|
+
obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
|
|
115
|
+
return obj;
|
|
116
|
+
},
|
|
117
|
+
fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams {
|
|
118
|
+
return MsgUpdateParams.fromAmino(object.value);
|
|
119
|
+
},
|
|
120
|
+
toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg {
|
|
121
|
+
return {
|
|
122
|
+
type: "ethermint/x/feemarket/MsgUpdateParams",
|
|
123
|
+
value: MsgUpdateParams.toAmino(message)
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams {
|
|
127
|
+
return MsgUpdateParams.decode(message.value);
|
|
128
|
+
},
|
|
129
|
+
toProto(message: MsgUpdateParams): Uint8Array {
|
|
130
|
+
return MsgUpdateParams.encode(message).finish();
|
|
131
|
+
},
|
|
132
|
+
toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg {
|
|
133
|
+
return {
|
|
134
|
+
typeUrl: "/ethermint.feemarket.v1.MsgUpdateParams",
|
|
135
|
+
value: MsgUpdateParams.encode(message).finish()
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
GlobalDecoderRegistry.register(MsgUpdateParams.typeUrl, MsgUpdateParams);
|
|
140
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParams.aminoType, MsgUpdateParams.typeUrl);
|
|
141
|
+
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
142
|
+
return {};
|
|
143
|
+
}
|
|
144
|
+
export const MsgUpdateParamsResponse = {
|
|
145
|
+
typeUrl: "/ethermint.feemarket.v1.MsgUpdateParamsResponse",
|
|
146
|
+
is(o: any): o is MsgUpdateParamsResponse {
|
|
147
|
+
return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
|
|
148
|
+
},
|
|
149
|
+
isAmino(o: any): o is MsgUpdateParamsResponseAmino {
|
|
150
|
+
return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
|
|
151
|
+
},
|
|
152
|
+
encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
153
|
+
return writer;
|
|
154
|
+
},
|
|
155
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
156
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
157
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
158
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
159
|
+
while (reader.pos < end) {
|
|
160
|
+
const tag = reader.uint32();
|
|
161
|
+
switch (tag >>> 3) {
|
|
162
|
+
default:
|
|
163
|
+
reader.skipType(tag & 7);
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return message;
|
|
168
|
+
},
|
|
169
|
+
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse {
|
|
170
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
171
|
+
return message;
|
|
172
|
+
},
|
|
173
|
+
fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse {
|
|
174
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
175
|
+
return message;
|
|
176
|
+
},
|
|
177
|
+
toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino {
|
|
178
|
+
const obj: any = {};
|
|
179
|
+
return obj;
|
|
180
|
+
},
|
|
181
|
+
fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse {
|
|
182
|
+
return MsgUpdateParamsResponse.fromAmino(object.value);
|
|
183
|
+
},
|
|
184
|
+
fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse {
|
|
185
|
+
return MsgUpdateParamsResponse.decode(message.value);
|
|
186
|
+
},
|
|
187
|
+
toProto(message: MsgUpdateParamsResponse): Uint8Array {
|
|
188
|
+
return MsgUpdateParamsResponse.encode(message).finish();
|
|
189
|
+
},
|
|
190
|
+
toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg {
|
|
191
|
+
return {
|
|
192
|
+
typeUrl: "/ethermint.feemarket.v1.MsgUpdateParamsResponse",
|
|
193
|
+
value: MsgUpdateParamsResponse.encode(message).finish()
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
GlobalDecoderRegistry.register(MsgUpdateParamsResponse.typeUrl, MsgUpdateParamsResponse);
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { BaseAccount, BaseAccountAmino } from "../../../cosmos/auth/v1beta1/auth";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { DeepPartial } from "../../../helpers";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
|
+
/**
|
|
6
|
+
* EthAccount implements the sdk.AccountI interface and embeds an
|
|
7
|
+
* authtypes.BaseAccount type. It is compatible with the auth AccountKeeper.
|
|
8
|
+
*/
|
|
9
|
+
export interface EthAccount {
|
|
10
|
+
/** base_account is an authtypes.BaseAccount */
|
|
11
|
+
baseAccount?: BaseAccount;
|
|
12
|
+
/** code_hash is the hash calculated from the code contents */
|
|
13
|
+
codeHash: string;
|
|
14
|
+
}
|
|
15
|
+
export interface EthAccountProtoMsg {
|
|
16
|
+
typeUrl: "/ethermint.types.v1.EthAccount";
|
|
17
|
+
value: Uint8Array;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* EthAccount implements the sdk.AccountI interface and embeds an
|
|
21
|
+
* authtypes.BaseAccount type. It is compatible with the auth AccountKeeper.
|
|
22
|
+
*/
|
|
23
|
+
export interface EthAccountAmino {
|
|
24
|
+
/** base_account is an authtypes.BaseAccount */
|
|
25
|
+
base_account?: BaseAccountAmino;
|
|
26
|
+
/** code_hash is the hash calculated from the code contents */
|
|
27
|
+
code_hash: string;
|
|
28
|
+
}
|
|
29
|
+
export interface EthAccountAminoMsg {
|
|
30
|
+
type: "/ethermint.types.v1.EthAccount";
|
|
31
|
+
value: EthAccountAmino;
|
|
32
|
+
}
|
|
33
|
+
function createBaseEthAccount(): EthAccount {
|
|
34
|
+
return {
|
|
35
|
+
baseAccount: undefined,
|
|
36
|
+
codeHash: ""
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export const EthAccount = {
|
|
40
|
+
typeUrl: "/ethermint.types.v1.EthAccount",
|
|
41
|
+
is(o: any): o is EthAccount {
|
|
42
|
+
return o && (o.$typeUrl === EthAccount.typeUrl || typeof o.codeHash === "string");
|
|
43
|
+
},
|
|
44
|
+
isAmino(o: any): o is EthAccountAmino {
|
|
45
|
+
return o && (o.$typeUrl === EthAccount.typeUrl || typeof o.code_hash === "string");
|
|
46
|
+
},
|
|
47
|
+
encode(message: EthAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
48
|
+
if (message.baseAccount !== undefined) {
|
|
49
|
+
BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim();
|
|
50
|
+
}
|
|
51
|
+
if (message.codeHash !== "") {
|
|
52
|
+
writer.uint32(18).string(message.codeHash);
|
|
53
|
+
}
|
|
54
|
+
return writer;
|
|
55
|
+
},
|
|
56
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EthAccount {
|
|
57
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
58
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
59
|
+
const message = createBaseEthAccount();
|
|
60
|
+
while (reader.pos < end) {
|
|
61
|
+
const tag = reader.uint32();
|
|
62
|
+
switch (tag >>> 3) {
|
|
63
|
+
case 1:
|
|
64
|
+
message.baseAccount = BaseAccount.decode(reader, reader.uint32());
|
|
65
|
+
break;
|
|
66
|
+
case 2:
|
|
67
|
+
message.codeHash = reader.string();
|
|
68
|
+
break;
|
|
69
|
+
default:
|
|
70
|
+
reader.skipType(tag & 7);
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return message;
|
|
75
|
+
},
|
|
76
|
+
fromPartial(object: DeepPartial<EthAccount>): EthAccount {
|
|
77
|
+
const message = createBaseEthAccount();
|
|
78
|
+
message.baseAccount = object.baseAccount !== undefined && object.baseAccount !== null ? BaseAccount.fromPartial(object.baseAccount) : undefined;
|
|
79
|
+
message.codeHash = object.codeHash ?? "";
|
|
80
|
+
return message;
|
|
81
|
+
},
|
|
82
|
+
fromAmino(object: EthAccountAmino): EthAccount {
|
|
83
|
+
const message = createBaseEthAccount();
|
|
84
|
+
if (object.base_account !== undefined && object.base_account !== null) {
|
|
85
|
+
message.baseAccount = BaseAccount.fromAmino(object.base_account);
|
|
86
|
+
}
|
|
87
|
+
if (object.code_hash !== undefined && object.code_hash !== null) {
|
|
88
|
+
message.codeHash = object.code_hash;
|
|
89
|
+
}
|
|
90
|
+
return message;
|
|
91
|
+
},
|
|
92
|
+
toAmino(message: EthAccount): EthAccountAmino {
|
|
93
|
+
const obj: any = {};
|
|
94
|
+
obj.base_account = message.baseAccount ? BaseAccount.toAmino(message.baseAccount) : undefined;
|
|
95
|
+
obj.code_hash = message.codeHash === "" ? undefined : message.codeHash;
|
|
96
|
+
return obj;
|
|
97
|
+
},
|
|
98
|
+
fromAminoMsg(object: EthAccountAminoMsg): EthAccount {
|
|
99
|
+
return EthAccount.fromAmino(object.value);
|
|
100
|
+
},
|
|
101
|
+
fromProtoMsg(message: EthAccountProtoMsg): EthAccount {
|
|
102
|
+
return EthAccount.decode(message.value);
|
|
103
|
+
},
|
|
104
|
+
toProto(message: EthAccount): Uint8Array {
|
|
105
|
+
return EthAccount.encode(message).finish();
|
|
106
|
+
},
|
|
107
|
+
toProtoMsg(message: EthAccount): EthAccountProtoMsg {
|
|
108
|
+
return {
|
|
109
|
+
typeUrl: "/ethermint.types.v1.EthAccount",
|
|
110
|
+
value: EthAccount.encode(message).finish()
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
GlobalDecoderRegistry.register(EthAccount.typeUrl, EthAccount);
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
4
|
+
/** ExtensionOptionDynamicFeeTx is an extension option that specifies the maxPrioPrice for cosmos tx */
|
|
5
|
+
export interface ExtensionOptionDynamicFeeTx {
|
|
6
|
+
/** max_priority_price is the same as `max_priority_fee_per_gas` in eip-1559 spec */
|
|
7
|
+
maxPriorityPrice: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ExtensionOptionDynamicFeeTxProtoMsg {
|
|
10
|
+
typeUrl: "/ethermint.types.v1.ExtensionOptionDynamicFeeTx";
|
|
11
|
+
value: Uint8Array;
|
|
12
|
+
}
|
|
13
|
+
/** ExtensionOptionDynamicFeeTx is an extension option that specifies the maxPrioPrice for cosmos tx */
|
|
14
|
+
export interface ExtensionOptionDynamicFeeTxAmino {
|
|
15
|
+
/** max_priority_price is the same as `max_priority_fee_per_gas` in eip-1559 spec */
|
|
16
|
+
max_priority_price: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ExtensionOptionDynamicFeeTxAminoMsg {
|
|
19
|
+
type: "/ethermint.types.v1.ExtensionOptionDynamicFeeTx";
|
|
20
|
+
value: ExtensionOptionDynamicFeeTxAmino;
|
|
21
|
+
}
|
|
22
|
+
function createBaseExtensionOptionDynamicFeeTx(): ExtensionOptionDynamicFeeTx {
|
|
23
|
+
return {
|
|
24
|
+
maxPriorityPrice: ""
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export const ExtensionOptionDynamicFeeTx = {
|
|
28
|
+
typeUrl: "/ethermint.types.v1.ExtensionOptionDynamicFeeTx",
|
|
29
|
+
is(o: any): o is ExtensionOptionDynamicFeeTx {
|
|
30
|
+
return o && (o.$typeUrl === ExtensionOptionDynamicFeeTx.typeUrl || typeof o.maxPriorityPrice === "string");
|
|
31
|
+
},
|
|
32
|
+
isAmino(o: any): o is ExtensionOptionDynamicFeeTxAmino {
|
|
33
|
+
return o && (o.$typeUrl === ExtensionOptionDynamicFeeTx.typeUrl || typeof o.max_priority_price === "string");
|
|
34
|
+
},
|
|
35
|
+
encode(message: ExtensionOptionDynamicFeeTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
36
|
+
if (message.maxPriorityPrice !== "") {
|
|
37
|
+
writer.uint32(10).string(message.maxPriorityPrice);
|
|
38
|
+
}
|
|
39
|
+
return writer;
|
|
40
|
+
},
|
|
41
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ExtensionOptionDynamicFeeTx {
|
|
42
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
43
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
44
|
+
const message = createBaseExtensionOptionDynamicFeeTx();
|
|
45
|
+
while (reader.pos < end) {
|
|
46
|
+
const tag = reader.uint32();
|
|
47
|
+
switch (tag >>> 3) {
|
|
48
|
+
case 1:
|
|
49
|
+
message.maxPriorityPrice = reader.string();
|
|
50
|
+
break;
|
|
51
|
+
default:
|
|
52
|
+
reader.skipType(tag & 7);
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return message;
|
|
57
|
+
},
|
|
58
|
+
fromPartial(object: DeepPartial<ExtensionOptionDynamicFeeTx>): ExtensionOptionDynamicFeeTx {
|
|
59
|
+
const message = createBaseExtensionOptionDynamicFeeTx();
|
|
60
|
+
message.maxPriorityPrice = object.maxPriorityPrice ?? "";
|
|
61
|
+
return message;
|
|
62
|
+
},
|
|
63
|
+
fromAmino(object: ExtensionOptionDynamicFeeTxAmino): ExtensionOptionDynamicFeeTx {
|
|
64
|
+
const message = createBaseExtensionOptionDynamicFeeTx();
|
|
65
|
+
if (object.max_priority_price !== undefined && object.max_priority_price !== null) {
|
|
66
|
+
message.maxPriorityPrice = object.max_priority_price;
|
|
67
|
+
}
|
|
68
|
+
return message;
|
|
69
|
+
},
|
|
70
|
+
toAmino(message: ExtensionOptionDynamicFeeTx): ExtensionOptionDynamicFeeTxAmino {
|
|
71
|
+
const obj: any = {};
|
|
72
|
+
obj.max_priority_price = message.maxPriorityPrice === "" ? undefined : message.maxPriorityPrice;
|
|
73
|
+
return obj;
|
|
74
|
+
},
|
|
75
|
+
fromAminoMsg(object: ExtensionOptionDynamicFeeTxAminoMsg): ExtensionOptionDynamicFeeTx {
|
|
76
|
+
return ExtensionOptionDynamicFeeTx.fromAmino(object.value);
|
|
77
|
+
},
|
|
78
|
+
fromProtoMsg(message: ExtensionOptionDynamicFeeTxProtoMsg): ExtensionOptionDynamicFeeTx {
|
|
79
|
+
return ExtensionOptionDynamicFeeTx.decode(message.value);
|
|
80
|
+
},
|
|
81
|
+
toProto(message: ExtensionOptionDynamicFeeTx): Uint8Array {
|
|
82
|
+
return ExtensionOptionDynamicFeeTx.encode(message).finish();
|
|
83
|
+
},
|
|
84
|
+
toProtoMsg(message: ExtensionOptionDynamicFeeTx): ExtensionOptionDynamicFeeTxProtoMsg {
|
|
85
|
+
return {
|
|
86
|
+
typeUrl: "/ethermint.types.v1.ExtensionOptionDynamicFeeTx",
|
|
87
|
+
value: ExtensionOptionDynamicFeeTx.encode(message).finish()
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
GlobalDecoderRegistry.register(ExtensionOptionDynamicFeeTx.typeUrl, ExtensionOptionDynamicFeeTx);
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
4
|
+
/** TxResult is the value stored in eth tx indexer */
|
|
5
|
+
export interface TxResult {
|
|
6
|
+
/** height of the blockchain */
|
|
7
|
+
height: bigint;
|
|
8
|
+
/** tx_index of the cosmos transaction */
|
|
9
|
+
txIndex: number;
|
|
10
|
+
/** msg_index in a batch transaction */
|
|
11
|
+
msgIndex: number;
|
|
12
|
+
/**
|
|
13
|
+
* eth_tx_index is the index in the list of valid eth tx in the block,
|
|
14
|
+
* aka. the transaction list returned by eth_getBlock api.
|
|
15
|
+
*/
|
|
16
|
+
ethTxIndex: number;
|
|
17
|
+
/** failed is true if the eth transaction did not go succeed */
|
|
18
|
+
failed: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* gas_used by the transaction. If it exceeds the block gas limit,
|
|
21
|
+
* it's set to gas limit, which is what's actually deducted by ante handler.
|
|
22
|
+
*/
|
|
23
|
+
gasUsed: bigint;
|
|
24
|
+
/**
|
|
25
|
+
* cumulative_gas_used specifies the cumulated amount of gas used for all
|
|
26
|
+
* processed messages within the current batch transaction.
|
|
27
|
+
*/
|
|
28
|
+
cumulativeGasUsed: bigint;
|
|
29
|
+
}
|
|
30
|
+
export interface TxResultProtoMsg {
|
|
31
|
+
typeUrl: "/ethermint.types.v1.TxResult";
|
|
32
|
+
value: Uint8Array;
|
|
33
|
+
}
|
|
34
|
+
/** TxResult is the value stored in eth tx indexer */
|
|
35
|
+
export interface TxResultAmino {
|
|
36
|
+
/** height of the blockchain */
|
|
37
|
+
height: string;
|
|
38
|
+
/** tx_index of the cosmos transaction */
|
|
39
|
+
tx_index: number;
|
|
40
|
+
/** msg_index in a batch transaction */
|
|
41
|
+
msg_index: number;
|
|
42
|
+
/**
|
|
43
|
+
* eth_tx_index is the index in the list of valid eth tx in the block,
|
|
44
|
+
* aka. the transaction list returned by eth_getBlock api.
|
|
45
|
+
*/
|
|
46
|
+
eth_tx_index: number;
|
|
47
|
+
/** failed is true if the eth transaction did not go succeed */
|
|
48
|
+
failed: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* gas_used by the transaction. If it exceeds the block gas limit,
|
|
51
|
+
* it's set to gas limit, which is what's actually deducted by ante handler.
|
|
52
|
+
*/
|
|
53
|
+
gas_used: string;
|
|
54
|
+
/**
|
|
55
|
+
* cumulative_gas_used specifies the cumulated amount of gas used for all
|
|
56
|
+
* processed messages within the current batch transaction.
|
|
57
|
+
*/
|
|
58
|
+
cumulative_gas_used: string;
|
|
59
|
+
}
|
|
60
|
+
export interface TxResultAminoMsg {
|
|
61
|
+
type: "/ethermint.types.v1.TxResult";
|
|
62
|
+
value: TxResultAmino;
|
|
63
|
+
}
|
|
64
|
+
function createBaseTxResult(): TxResult {
|
|
65
|
+
return {
|
|
66
|
+
height: BigInt(0),
|
|
67
|
+
txIndex: 0,
|
|
68
|
+
msgIndex: 0,
|
|
69
|
+
ethTxIndex: 0,
|
|
70
|
+
failed: false,
|
|
71
|
+
gasUsed: BigInt(0),
|
|
72
|
+
cumulativeGasUsed: BigInt(0)
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export const TxResult = {
|
|
76
|
+
typeUrl: "/ethermint.types.v1.TxResult",
|
|
77
|
+
is(o: any): o is TxResult {
|
|
78
|
+
return o && (o.$typeUrl === TxResult.typeUrl || typeof o.height === "bigint" && typeof o.txIndex === "number" && typeof o.msgIndex === "number" && typeof o.ethTxIndex === "number" && typeof o.failed === "boolean" && typeof o.gasUsed === "bigint" && typeof o.cumulativeGasUsed === "bigint");
|
|
79
|
+
},
|
|
80
|
+
isAmino(o: any): o is TxResultAmino {
|
|
81
|
+
return o && (o.$typeUrl === TxResult.typeUrl || typeof o.height === "bigint" && typeof o.tx_index === "number" && typeof o.msg_index === "number" && typeof o.eth_tx_index === "number" && typeof o.failed === "boolean" && typeof o.gas_used === "bigint" && typeof o.cumulative_gas_used === "bigint");
|
|
82
|
+
},
|
|
83
|
+
encode(message: TxResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
84
|
+
if (message.height !== BigInt(0)) {
|
|
85
|
+
writer.uint32(8).int64(message.height);
|
|
86
|
+
}
|
|
87
|
+
if (message.txIndex !== 0) {
|
|
88
|
+
writer.uint32(16).uint32(message.txIndex);
|
|
89
|
+
}
|
|
90
|
+
if (message.msgIndex !== 0) {
|
|
91
|
+
writer.uint32(24).uint32(message.msgIndex);
|
|
92
|
+
}
|
|
93
|
+
if (message.ethTxIndex !== 0) {
|
|
94
|
+
writer.uint32(32).int32(message.ethTxIndex);
|
|
95
|
+
}
|
|
96
|
+
if (message.failed === true) {
|
|
97
|
+
writer.uint32(40).bool(message.failed);
|
|
98
|
+
}
|
|
99
|
+
if (message.gasUsed !== BigInt(0)) {
|
|
100
|
+
writer.uint32(48).uint64(message.gasUsed);
|
|
101
|
+
}
|
|
102
|
+
if (message.cumulativeGasUsed !== BigInt(0)) {
|
|
103
|
+
writer.uint32(56).uint64(message.cumulativeGasUsed);
|
|
104
|
+
}
|
|
105
|
+
return writer;
|
|
106
|
+
},
|
|
107
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TxResult {
|
|
108
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
109
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
110
|
+
const message = createBaseTxResult();
|
|
111
|
+
while (reader.pos < end) {
|
|
112
|
+
const tag = reader.uint32();
|
|
113
|
+
switch (tag >>> 3) {
|
|
114
|
+
case 1:
|
|
115
|
+
message.height = reader.int64();
|
|
116
|
+
break;
|
|
117
|
+
case 2:
|
|
118
|
+
message.txIndex = reader.uint32();
|
|
119
|
+
break;
|
|
120
|
+
case 3:
|
|
121
|
+
message.msgIndex = reader.uint32();
|
|
122
|
+
break;
|
|
123
|
+
case 4:
|
|
124
|
+
message.ethTxIndex = reader.int32();
|
|
125
|
+
break;
|
|
126
|
+
case 5:
|
|
127
|
+
message.failed = reader.bool();
|
|
128
|
+
break;
|
|
129
|
+
case 6:
|
|
130
|
+
message.gasUsed = reader.uint64();
|
|
131
|
+
break;
|
|
132
|
+
case 7:
|
|
133
|
+
message.cumulativeGasUsed = reader.uint64();
|
|
134
|
+
break;
|
|
135
|
+
default:
|
|
136
|
+
reader.skipType(tag & 7);
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return message;
|
|
141
|
+
},
|
|
142
|
+
fromPartial(object: DeepPartial<TxResult>): TxResult {
|
|
143
|
+
const message = createBaseTxResult();
|
|
144
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
145
|
+
message.txIndex = object.txIndex ?? 0;
|
|
146
|
+
message.msgIndex = object.msgIndex ?? 0;
|
|
147
|
+
message.ethTxIndex = object.ethTxIndex ?? 0;
|
|
148
|
+
message.failed = object.failed ?? false;
|
|
149
|
+
message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0);
|
|
150
|
+
message.cumulativeGasUsed = object.cumulativeGasUsed !== undefined && object.cumulativeGasUsed !== null ? BigInt(object.cumulativeGasUsed.toString()) : BigInt(0);
|
|
151
|
+
return message;
|
|
152
|
+
},
|
|
153
|
+
fromAmino(object: TxResultAmino): TxResult {
|
|
154
|
+
const message = createBaseTxResult();
|
|
155
|
+
if (object.height !== undefined && object.height !== null) {
|
|
156
|
+
message.height = BigInt(object.height);
|
|
157
|
+
}
|
|
158
|
+
if (object.tx_index !== undefined && object.tx_index !== null) {
|
|
159
|
+
message.txIndex = object.tx_index;
|
|
160
|
+
}
|
|
161
|
+
if (object.msg_index !== undefined && object.msg_index !== null) {
|
|
162
|
+
message.msgIndex = object.msg_index;
|
|
163
|
+
}
|
|
164
|
+
if (object.eth_tx_index !== undefined && object.eth_tx_index !== null) {
|
|
165
|
+
message.ethTxIndex = object.eth_tx_index;
|
|
166
|
+
}
|
|
167
|
+
if (object.failed !== undefined && object.failed !== null) {
|
|
168
|
+
message.failed = object.failed;
|
|
169
|
+
}
|
|
170
|
+
if (object.gas_used !== undefined && object.gas_used !== null) {
|
|
171
|
+
message.gasUsed = BigInt(object.gas_used);
|
|
172
|
+
}
|
|
173
|
+
if (object.cumulative_gas_used !== undefined && object.cumulative_gas_used !== null) {
|
|
174
|
+
message.cumulativeGasUsed = BigInt(object.cumulative_gas_used);
|
|
175
|
+
}
|
|
176
|
+
return message;
|
|
177
|
+
},
|
|
178
|
+
toAmino(message: TxResult): TxResultAmino {
|
|
179
|
+
const obj: any = {};
|
|
180
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
181
|
+
obj.tx_index = message.txIndex === 0 ? undefined : message.txIndex;
|
|
182
|
+
obj.msg_index = message.msgIndex === 0 ? undefined : message.msgIndex;
|
|
183
|
+
obj.eth_tx_index = message.ethTxIndex === 0 ? undefined : message.ethTxIndex;
|
|
184
|
+
obj.failed = message.failed === false ? undefined : message.failed;
|
|
185
|
+
obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed?.toString() : undefined;
|
|
186
|
+
obj.cumulative_gas_used = message.cumulativeGasUsed !== BigInt(0) ? message.cumulativeGasUsed?.toString() : undefined;
|
|
187
|
+
return obj;
|
|
188
|
+
},
|
|
189
|
+
fromAminoMsg(object: TxResultAminoMsg): TxResult {
|
|
190
|
+
return TxResult.fromAmino(object.value);
|
|
191
|
+
},
|
|
192
|
+
fromProtoMsg(message: TxResultProtoMsg): TxResult {
|
|
193
|
+
return TxResult.decode(message.value);
|
|
194
|
+
},
|
|
195
|
+
toProto(message: TxResult): Uint8Array {
|
|
196
|
+
return TxResult.encode(message).finish();
|
|
197
|
+
},
|
|
198
|
+
toProtoMsg(message: TxResult): TxResultProtoMsg {
|
|
199
|
+
return {
|
|
200
|
+
typeUrl: "/ethermint.types.v1.TxResult",
|
|
201
|
+
value: TxResult.encode(message).finish()
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
GlobalDecoderRegistry.register(TxResult.typeUrl, TxResult);
|