@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,240 @@
|
|
|
1
|
+
import { Params, ParamsAmino, State, StateAmino } from "./evm";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { DeepPartial } from "../../../helpers";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
|
+
/** GenesisState defines the evm module's genesis state. */
|
|
6
|
+
export interface GenesisState {
|
|
7
|
+
/** accounts is an array containing the ethereum genesis accounts. */
|
|
8
|
+
accounts: GenesisAccount[];
|
|
9
|
+
/** params defines all the parameters of the module. */
|
|
10
|
+
params: Params;
|
|
11
|
+
}
|
|
12
|
+
export interface GenesisStateProtoMsg {
|
|
13
|
+
typeUrl: "/ethermint.evm.v1.GenesisState";
|
|
14
|
+
value: Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
/** GenesisState defines the evm module's genesis state. */
|
|
17
|
+
export interface GenesisStateAmino {
|
|
18
|
+
/** accounts is an array containing the ethereum genesis accounts. */
|
|
19
|
+
accounts: GenesisAccountAmino[];
|
|
20
|
+
/** params defines all the parameters of the module. */
|
|
21
|
+
params: ParamsAmino;
|
|
22
|
+
}
|
|
23
|
+
export interface GenesisStateAminoMsg {
|
|
24
|
+
type: "/ethermint.evm.v1.GenesisState";
|
|
25
|
+
value: GenesisStateAmino;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* GenesisAccount defines an account to be initialized in the genesis state.
|
|
29
|
+
* Its main difference between with Geth's GenesisAccount is that it uses a
|
|
30
|
+
* custom storage type and that it doesn't contain the private key field.
|
|
31
|
+
*/
|
|
32
|
+
export interface GenesisAccount {
|
|
33
|
+
/** address defines an ethereum hex formated address of an account */
|
|
34
|
+
address: string;
|
|
35
|
+
/** code defines the hex bytes of the account code. */
|
|
36
|
+
code: string;
|
|
37
|
+
/** storage defines the set of state key values for the account. */
|
|
38
|
+
storage: State[];
|
|
39
|
+
}
|
|
40
|
+
export interface GenesisAccountProtoMsg {
|
|
41
|
+
typeUrl: "/ethermint.evm.v1.GenesisAccount";
|
|
42
|
+
value: Uint8Array;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* GenesisAccount defines an account to be initialized in the genesis state.
|
|
46
|
+
* Its main difference between with Geth's GenesisAccount is that it uses a
|
|
47
|
+
* custom storage type and that it doesn't contain the private key field.
|
|
48
|
+
*/
|
|
49
|
+
export interface GenesisAccountAmino {
|
|
50
|
+
/** address defines an ethereum hex formated address of an account */
|
|
51
|
+
address: string;
|
|
52
|
+
/** code defines the hex bytes of the account code. */
|
|
53
|
+
code: string;
|
|
54
|
+
/** storage defines the set of state key values for the account. */
|
|
55
|
+
storage: StateAmino[];
|
|
56
|
+
}
|
|
57
|
+
export interface GenesisAccountAminoMsg {
|
|
58
|
+
type: "/ethermint.evm.v1.GenesisAccount";
|
|
59
|
+
value: GenesisAccountAmino;
|
|
60
|
+
}
|
|
61
|
+
function createBaseGenesisState(): GenesisState {
|
|
62
|
+
return {
|
|
63
|
+
accounts: [],
|
|
64
|
+
params: Params.fromPartial({})
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export const GenesisState = {
|
|
68
|
+
typeUrl: "/ethermint.evm.v1.GenesisState",
|
|
69
|
+
is(o: any): o is GenesisState {
|
|
70
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || Array.isArray(o.accounts) && (!o.accounts.length || GenesisAccount.is(o.accounts[0])) && Params.is(o.params));
|
|
71
|
+
},
|
|
72
|
+
isAmino(o: any): o is GenesisStateAmino {
|
|
73
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || Array.isArray(o.accounts) && (!o.accounts.length || GenesisAccount.isAmino(o.accounts[0])) && Params.isAmino(o.params));
|
|
74
|
+
},
|
|
75
|
+
encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
76
|
+
for (const v of message.accounts) {
|
|
77
|
+
GenesisAccount.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
78
|
+
}
|
|
79
|
+
if (message.params !== undefined) {
|
|
80
|
+
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
81
|
+
}
|
|
82
|
+
return writer;
|
|
83
|
+
},
|
|
84
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
|
|
85
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
86
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
87
|
+
const message = createBaseGenesisState();
|
|
88
|
+
while (reader.pos < end) {
|
|
89
|
+
const tag = reader.uint32();
|
|
90
|
+
switch (tag >>> 3) {
|
|
91
|
+
case 1:
|
|
92
|
+
message.accounts.push(GenesisAccount.decode(reader, reader.uint32()));
|
|
93
|
+
break;
|
|
94
|
+
case 2:
|
|
95
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
96
|
+
break;
|
|
97
|
+
default:
|
|
98
|
+
reader.skipType(tag & 7);
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return message;
|
|
103
|
+
},
|
|
104
|
+
fromPartial(object: DeepPartial<GenesisState>): GenesisState {
|
|
105
|
+
const message = createBaseGenesisState();
|
|
106
|
+
message.accounts = object.accounts?.map(e => GenesisAccount.fromPartial(e)) || [];
|
|
107
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
108
|
+
return message;
|
|
109
|
+
},
|
|
110
|
+
fromAmino(object: GenesisStateAmino): GenesisState {
|
|
111
|
+
const message = createBaseGenesisState();
|
|
112
|
+
message.accounts = object.accounts?.map(e => GenesisAccount.fromAmino(e)) || [];
|
|
113
|
+
if (object.params !== undefined && object.params !== null) {
|
|
114
|
+
message.params = Params.fromAmino(object.params);
|
|
115
|
+
}
|
|
116
|
+
return message;
|
|
117
|
+
},
|
|
118
|
+
toAmino(message: GenesisState): GenesisStateAmino {
|
|
119
|
+
const obj: any = {};
|
|
120
|
+
if (message.accounts) {
|
|
121
|
+
obj.accounts = message.accounts.map(e => e ? GenesisAccount.toAmino(e) : undefined);
|
|
122
|
+
} else {
|
|
123
|
+
obj.accounts = message.accounts;
|
|
124
|
+
}
|
|
125
|
+
obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
|
|
126
|
+
return obj;
|
|
127
|
+
},
|
|
128
|
+
fromAminoMsg(object: GenesisStateAminoMsg): GenesisState {
|
|
129
|
+
return GenesisState.fromAmino(object.value);
|
|
130
|
+
},
|
|
131
|
+
fromProtoMsg(message: GenesisStateProtoMsg): GenesisState {
|
|
132
|
+
return GenesisState.decode(message.value);
|
|
133
|
+
},
|
|
134
|
+
toProto(message: GenesisState): Uint8Array {
|
|
135
|
+
return GenesisState.encode(message).finish();
|
|
136
|
+
},
|
|
137
|
+
toProtoMsg(message: GenesisState): GenesisStateProtoMsg {
|
|
138
|
+
return {
|
|
139
|
+
typeUrl: "/ethermint.evm.v1.GenesisState",
|
|
140
|
+
value: GenesisState.encode(message).finish()
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
GlobalDecoderRegistry.register(GenesisState.typeUrl, GenesisState);
|
|
145
|
+
function createBaseGenesisAccount(): GenesisAccount {
|
|
146
|
+
return {
|
|
147
|
+
address: "",
|
|
148
|
+
code: "",
|
|
149
|
+
storage: []
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
export const GenesisAccount = {
|
|
153
|
+
typeUrl: "/ethermint.evm.v1.GenesisAccount",
|
|
154
|
+
is(o: any): o is GenesisAccount {
|
|
155
|
+
return o && (o.$typeUrl === GenesisAccount.typeUrl || typeof o.address === "string" && typeof o.code === "string" && Array.isArray(o.storage) && (!o.storage.length || State.is(o.storage[0])));
|
|
156
|
+
},
|
|
157
|
+
isAmino(o: any): o is GenesisAccountAmino {
|
|
158
|
+
return o && (o.$typeUrl === GenesisAccount.typeUrl || typeof o.address === "string" && typeof o.code === "string" && Array.isArray(o.storage) && (!o.storage.length || State.isAmino(o.storage[0])));
|
|
159
|
+
},
|
|
160
|
+
encode(message: GenesisAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
161
|
+
if (message.address !== "") {
|
|
162
|
+
writer.uint32(10).string(message.address);
|
|
163
|
+
}
|
|
164
|
+
if (message.code !== "") {
|
|
165
|
+
writer.uint32(18).string(message.code);
|
|
166
|
+
}
|
|
167
|
+
for (const v of message.storage) {
|
|
168
|
+
State.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
169
|
+
}
|
|
170
|
+
return writer;
|
|
171
|
+
},
|
|
172
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GenesisAccount {
|
|
173
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
174
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
175
|
+
const message = createBaseGenesisAccount();
|
|
176
|
+
while (reader.pos < end) {
|
|
177
|
+
const tag = reader.uint32();
|
|
178
|
+
switch (tag >>> 3) {
|
|
179
|
+
case 1:
|
|
180
|
+
message.address = reader.string();
|
|
181
|
+
break;
|
|
182
|
+
case 2:
|
|
183
|
+
message.code = reader.string();
|
|
184
|
+
break;
|
|
185
|
+
case 3:
|
|
186
|
+
message.storage.push(State.decode(reader, reader.uint32()));
|
|
187
|
+
break;
|
|
188
|
+
default:
|
|
189
|
+
reader.skipType(tag & 7);
|
|
190
|
+
break;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
return message;
|
|
194
|
+
},
|
|
195
|
+
fromPartial(object: DeepPartial<GenesisAccount>): GenesisAccount {
|
|
196
|
+
const message = createBaseGenesisAccount();
|
|
197
|
+
message.address = object.address ?? "";
|
|
198
|
+
message.code = object.code ?? "";
|
|
199
|
+
message.storage = object.storage?.map(e => State.fromPartial(e)) || [];
|
|
200
|
+
return message;
|
|
201
|
+
},
|
|
202
|
+
fromAmino(object: GenesisAccountAmino): GenesisAccount {
|
|
203
|
+
const message = createBaseGenesisAccount();
|
|
204
|
+
if (object.address !== undefined && object.address !== null) {
|
|
205
|
+
message.address = object.address;
|
|
206
|
+
}
|
|
207
|
+
if (object.code !== undefined && object.code !== null) {
|
|
208
|
+
message.code = object.code;
|
|
209
|
+
}
|
|
210
|
+
message.storage = object.storage?.map(e => State.fromAmino(e)) || [];
|
|
211
|
+
return message;
|
|
212
|
+
},
|
|
213
|
+
toAmino(message: GenesisAccount): GenesisAccountAmino {
|
|
214
|
+
const obj: any = {};
|
|
215
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
216
|
+
obj.code = message.code === "" ? undefined : message.code;
|
|
217
|
+
if (message.storage) {
|
|
218
|
+
obj.storage = message.storage.map(e => e ? State.toAmino(e) : undefined);
|
|
219
|
+
} else {
|
|
220
|
+
obj.storage = message.storage;
|
|
221
|
+
}
|
|
222
|
+
return obj;
|
|
223
|
+
},
|
|
224
|
+
fromAminoMsg(object: GenesisAccountAminoMsg): GenesisAccount {
|
|
225
|
+
return GenesisAccount.fromAmino(object.value);
|
|
226
|
+
},
|
|
227
|
+
fromProtoMsg(message: GenesisAccountProtoMsg): GenesisAccount {
|
|
228
|
+
return GenesisAccount.decode(message.value);
|
|
229
|
+
},
|
|
230
|
+
toProto(message: GenesisAccount): Uint8Array {
|
|
231
|
+
return GenesisAccount.encode(message).finish();
|
|
232
|
+
},
|
|
233
|
+
toProtoMsg(message: GenesisAccount): GenesisAccountProtoMsg {
|
|
234
|
+
return {
|
|
235
|
+
typeUrl: "/ethermint.evm.v1.GenesisAccount",
|
|
236
|
+
value: GenesisAccount.encode(message).finish()
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
GlobalDecoderRegistry.register(GenesisAccount.typeUrl, GenesisAccount);
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { MsgEthereumTxResponse } from "./tx";
|
|
2
|
+
import { RpcResolver, buildQuery } from "../../../helper-func-types";
|
|
3
|
+
import { buildUseQuery } from "../../../react-query";
|
|
4
|
+
import { QueryAccountRequest, QueryAccountResponse, QueryCosmosAccountRequest, QueryCosmosAccountResponse, QueryValidatorAccountRequest, QueryValidatorAccountResponse, QueryBalanceRequest, QueryBalanceResponse, QueryStorageRequest, QueryStorageResponse, QueryCodeRequest, QueryCodeResponse, QueryParamsRequest, QueryParamsResponse, EthCallRequest, EstimateGasResponse, QueryTraceTxRequest, QueryTraceTxResponse, QueryTraceBlockRequest, QueryTraceBlockResponse, QueryBaseFeeRequest, QueryBaseFeeResponse } from "./query";
|
|
5
|
+
export const createGetAccount = (clientResolver?: RpcResolver) => buildQuery<QueryAccountRequest, QueryAccountResponse>({
|
|
6
|
+
encode: QueryAccountRequest.encode,
|
|
7
|
+
decode: QueryAccountResponse.decode,
|
|
8
|
+
service: "ethermint.evm.v1.Query",
|
|
9
|
+
method: "Account",
|
|
10
|
+
clientResolver
|
|
11
|
+
});
|
|
12
|
+
export const useGetAccount = buildUseQuery<QueryAccountRequest, QueryAccountResponse>({
|
|
13
|
+
builderQueryFn: createGetAccount,
|
|
14
|
+
queryKeyPrefix: "AccountQuery"
|
|
15
|
+
});
|
|
16
|
+
export const createGetCosmosAccount = (clientResolver?: RpcResolver) => buildQuery<QueryCosmosAccountRequest, QueryCosmosAccountResponse>({
|
|
17
|
+
encode: QueryCosmosAccountRequest.encode,
|
|
18
|
+
decode: QueryCosmosAccountResponse.decode,
|
|
19
|
+
service: "ethermint.evm.v1.Query",
|
|
20
|
+
method: "CosmosAccount",
|
|
21
|
+
clientResolver
|
|
22
|
+
});
|
|
23
|
+
export const useGetCosmosAccount = buildUseQuery<QueryCosmosAccountRequest, QueryCosmosAccountResponse>({
|
|
24
|
+
builderQueryFn: createGetCosmosAccount,
|
|
25
|
+
queryKeyPrefix: "CosmosAccountQuery"
|
|
26
|
+
});
|
|
27
|
+
export const createGetValidatorAccount = (clientResolver?: RpcResolver) => buildQuery<QueryValidatorAccountRequest, QueryValidatorAccountResponse>({
|
|
28
|
+
encode: QueryValidatorAccountRequest.encode,
|
|
29
|
+
decode: QueryValidatorAccountResponse.decode,
|
|
30
|
+
service: "ethermint.evm.v1.Query",
|
|
31
|
+
method: "ValidatorAccount",
|
|
32
|
+
clientResolver
|
|
33
|
+
});
|
|
34
|
+
export const useGetValidatorAccount = buildUseQuery<QueryValidatorAccountRequest, QueryValidatorAccountResponse>({
|
|
35
|
+
builderQueryFn: createGetValidatorAccount,
|
|
36
|
+
queryKeyPrefix: "ValidatorAccountQuery"
|
|
37
|
+
});
|
|
38
|
+
export const createGetBalance = (clientResolver?: RpcResolver) => buildQuery<QueryBalanceRequest, QueryBalanceResponse>({
|
|
39
|
+
encode: QueryBalanceRequest.encode,
|
|
40
|
+
decode: QueryBalanceResponse.decode,
|
|
41
|
+
service: "ethermint.evm.v1.Query",
|
|
42
|
+
method: "Balance",
|
|
43
|
+
clientResolver
|
|
44
|
+
});
|
|
45
|
+
export const useGetBalance = buildUseQuery<QueryBalanceRequest, QueryBalanceResponse>({
|
|
46
|
+
builderQueryFn: createGetBalance,
|
|
47
|
+
queryKeyPrefix: "BalanceQuery"
|
|
48
|
+
});
|
|
49
|
+
export const createGetStorage = (clientResolver?: RpcResolver) => buildQuery<QueryStorageRequest, QueryStorageResponse>({
|
|
50
|
+
encode: QueryStorageRequest.encode,
|
|
51
|
+
decode: QueryStorageResponse.decode,
|
|
52
|
+
service: "ethermint.evm.v1.Query",
|
|
53
|
+
method: "Storage",
|
|
54
|
+
clientResolver
|
|
55
|
+
});
|
|
56
|
+
export const useGetStorage = buildUseQuery<QueryStorageRequest, QueryStorageResponse>({
|
|
57
|
+
builderQueryFn: createGetStorage,
|
|
58
|
+
queryKeyPrefix: "StorageQuery"
|
|
59
|
+
});
|
|
60
|
+
export const createGetCode = (clientResolver?: RpcResolver) => buildQuery<QueryCodeRequest, QueryCodeResponse>({
|
|
61
|
+
encode: QueryCodeRequest.encode,
|
|
62
|
+
decode: QueryCodeResponse.decode,
|
|
63
|
+
service: "ethermint.evm.v1.Query",
|
|
64
|
+
method: "Code",
|
|
65
|
+
clientResolver
|
|
66
|
+
});
|
|
67
|
+
export const useGetCode = buildUseQuery<QueryCodeRequest, QueryCodeResponse>({
|
|
68
|
+
builderQueryFn: createGetCode,
|
|
69
|
+
queryKeyPrefix: "CodeQuery"
|
|
70
|
+
});
|
|
71
|
+
export const createGetParams = (clientResolver?: RpcResolver) => buildQuery<QueryParamsRequest, QueryParamsResponse>({
|
|
72
|
+
encode: QueryParamsRequest.encode,
|
|
73
|
+
decode: QueryParamsResponse.decode,
|
|
74
|
+
service: "ethermint.evm.v1.Query",
|
|
75
|
+
method: "Params",
|
|
76
|
+
clientResolver
|
|
77
|
+
});
|
|
78
|
+
export const useGetParams = buildUseQuery<QueryParamsRequest, QueryParamsResponse>({
|
|
79
|
+
builderQueryFn: createGetParams,
|
|
80
|
+
queryKeyPrefix: "ParamsQuery"
|
|
81
|
+
});
|
|
82
|
+
export const createGetEthCall = (clientResolver?: RpcResolver) => buildQuery<EthCallRequest, MsgEthereumTxResponse>({
|
|
83
|
+
encode: EthCallRequest.encode,
|
|
84
|
+
decode: MsgEthereumTxResponse.decode,
|
|
85
|
+
service: "ethermint.evm.v1.Query",
|
|
86
|
+
method: "EthCall",
|
|
87
|
+
clientResolver
|
|
88
|
+
});
|
|
89
|
+
export const useGetEthCall = buildUseQuery<EthCallRequest, MsgEthereumTxResponse>({
|
|
90
|
+
builderQueryFn: createGetEthCall,
|
|
91
|
+
queryKeyPrefix: "EthCallQuery"
|
|
92
|
+
});
|
|
93
|
+
export const createGetEstimateGas = (clientResolver?: RpcResolver) => buildQuery<EthCallRequest, EstimateGasResponse>({
|
|
94
|
+
encode: EthCallRequest.encode,
|
|
95
|
+
decode: EstimateGasResponse.decode,
|
|
96
|
+
service: "ethermint.evm.v1.Query",
|
|
97
|
+
method: "EstimateGas",
|
|
98
|
+
clientResolver
|
|
99
|
+
});
|
|
100
|
+
export const useGetEstimateGas = buildUseQuery<EthCallRequest, EstimateGasResponse>({
|
|
101
|
+
builderQueryFn: createGetEstimateGas,
|
|
102
|
+
queryKeyPrefix: "EstimateGasQuery"
|
|
103
|
+
});
|
|
104
|
+
export const createGetTraceTx = (clientResolver?: RpcResolver) => buildQuery<QueryTraceTxRequest, QueryTraceTxResponse>({
|
|
105
|
+
encode: QueryTraceTxRequest.encode,
|
|
106
|
+
decode: QueryTraceTxResponse.decode,
|
|
107
|
+
service: "ethermint.evm.v1.Query",
|
|
108
|
+
method: "TraceTx",
|
|
109
|
+
clientResolver
|
|
110
|
+
});
|
|
111
|
+
export const useGetTraceTx = buildUseQuery<QueryTraceTxRequest, QueryTraceTxResponse>({
|
|
112
|
+
builderQueryFn: createGetTraceTx,
|
|
113
|
+
queryKeyPrefix: "TraceTxQuery"
|
|
114
|
+
});
|
|
115
|
+
export const createGetTraceBlock = (clientResolver?: RpcResolver) => buildQuery<QueryTraceBlockRequest, QueryTraceBlockResponse>({
|
|
116
|
+
encode: QueryTraceBlockRequest.encode,
|
|
117
|
+
decode: QueryTraceBlockResponse.decode,
|
|
118
|
+
service: "ethermint.evm.v1.Query",
|
|
119
|
+
method: "TraceBlock",
|
|
120
|
+
clientResolver
|
|
121
|
+
});
|
|
122
|
+
export const useGetTraceBlock = buildUseQuery<QueryTraceBlockRequest, QueryTraceBlockResponse>({
|
|
123
|
+
builderQueryFn: createGetTraceBlock,
|
|
124
|
+
queryKeyPrefix: "TraceBlockQuery"
|
|
125
|
+
});
|
|
126
|
+
export const createGetBaseFee = (clientResolver?: RpcResolver) => buildQuery<QueryBaseFeeRequest, QueryBaseFeeResponse>({
|
|
127
|
+
encode: QueryBaseFeeRequest.encode,
|
|
128
|
+
decode: QueryBaseFeeResponse.decode,
|
|
129
|
+
service: "ethermint.evm.v1.Query",
|
|
130
|
+
method: "BaseFee",
|
|
131
|
+
clientResolver
|
|
132
|
+
});
|
|
133
|
+
export const useGetBaseFee = buildUseQuery<QueryBaseFeeRequest, QueryBaseFeeResponse>({
|
|
134
|
+
builderQueryFn: createGetBaseFee,
|
|
135
|
+
queryKeyPrefix: "BaseFeeQuery"
|
|
136
|
+
});
|