@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,2294 @@
|
|
|
1
|
+
import { Tx, TxAmino } from "./tx";
|
|
2
|
+
import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "../../base/query/v1beta1/pagination";
|
|
3
|
+
import { TxResponse, TxResponseAmino, GasInfo, GasInfoAmino, Result, ResultAmino } from "../../base/abci/v1beta1/abci";
|
|
4
|
+
import { BlockID, BlockIDAmino } from "../../../tendermint/types/types";
|
|
5
|
+
import { Block, BlockAmino } from "../../../tendermint/types/block";
|
|
6
|
+
import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
8
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
9
|
+
/** OrderBy defines the sorting order */
|
|
10
|
+
export enum OrderBy {
|
|
11
|
+
/**
|
|
12
|
+
* ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults
|
|
13
|
+
* to ASC in this case.
|
|
14
|
+
*/
|
|
15
|
+
ORDER_BY_UNSPECIFIED = 0,
|
|
16
|
+
/** ORDER_BY_ASC - ORDER_BY_ASC defines ascending order */
|
|
17
|
+
ORDER_BY_ASC = 1,
|
|
18
|
+
/** ORDER_BY_DESC - ORDER_BY_DESC defines descending order */
|
|
19
|
+
ORDER_BY_DESC = 2,
|
|
20
|
+
UNRECOGNIZED = -1,
|
|
21
|
+
}
|
|
22
|
+
export const OrderByAmino = OrderBy;
|
|
23
|
+
export function orderByFromJSON(object: any): OrderBy {
|
|
24
|
+
switch (object) {
|
|
25
|
+
case 0:
|
|
26
|
+
case "ORDER_BY_UNSPECIFIED":
|
|
27
|
+
return OrderBy.ORDER_BY_UNSPECIFIED;
|
|
28
|
+
case 1:
|
|
29
|
+
case "ORDER_BY_ASC":
|
|
30
|
+
return OrderBy.ORDER_BY_ASC;
|
|
31
|
+
case 2:
|
|
32
|
+
case "ORDER_BY_DESC":
|
|
33
|
+
return OrderBy.ORDER_BY_DESC;
|
|
34
|
+
case -1:
|
|
35
|
+
case "UNRECOGNIZED":
|
|
36
|
+
default:
|
|
37
|
+
return OrderBy.UNRECOGNIZED;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export function orderByToJSON(object: OrderBy): string {
|
|
41
|
+
switch (object) {
|
|
42
|
+
case OrderBy.ORDER_BY_UNSPECIFIED:
|
|
43
|
+
return "ORDER_BY_UNSPECIFIED";
|
|
44
|
+
case OrderBy.ORDER_BY_ASC:
|
|
45
|
+
return "ORDER_BY_ASC";
|
|
46
|
+
case OrderBy.ORDER_BY_DESC:
|
|
47
|
+
return "ORDER_BY_DESC";
|
|
48
|
+
case OrderBy.UNRECOGNIZED:
|
|
49
|
+
default:
|
|
50
|
+
return "UNRECOGNIZED";
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC
|
|
55
|
+
* method.
|
|
56
|
+
*/
|
|
57
|
+
export enum BroadcastMode {
|
|
58
|
+
/** BROADCAST_MODE_UNSPECIFIED - zero-value for mode ordering */
|
|
59
|
+
BROADCAST_MODE_UNSPECIFIED = 0,
|
|
60
|
+
/**
|
|
61
|
+
* BROADCAST_MODE_BLOCK - DEPRECATED: use BROADCAST_MODE_SYNC instead,
|
|
62
|
+
* BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards.
|
|
63
|
+
*/
|
|
64
|
+
BROADCAST_MODE_BLOCK = 1,
|
|
65
|
+
/**
|
|
66
|
+
* BROADCAST_MODE_SYNC - BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits
|
|
67
|
+
* for a CheckTx execution response only.
|
|
68
|
+
*/
|
|
69
|
+
BROADCAST_MODE_SYNC = 2,
|
|
70
|
+
/**
|
|
71
|
+
* BROADCAST_MODE_ASYNC - BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client
|
|
72
|
+
* returns immediately.
|
|
73
|
+
*/
|
|
74
|
+
BROADCAST_MODE_ASYNC = 3,
|
|
75
|
+
UNRECOGNIZED = -1,
|
|
76
|
+
}
|
|
77
|
+
export const BroadcastModeAmino = BroadcastMode;
|
|
78
|
+
export function broadcastModeFromJSON(object: any): BroadcastMode {
|
|
79
|
+
switch (object) {
|
|
80
|
+
case 0:
|
|
81
|
+
case "BROADCAST_MODE_UNSPECIFIED":
|
|
82
|
+
return BroadcastMode.BROADCAST_MODE_UNSPECIFIED;
|
|
83
|
+
case 1:
|
|
84
|
+
case "BROADCAST_MODE_BLOCK":
|
|
85
|
+
return BroadcastMode.BROADCAST_MODE_BLOCK;
|
|
86
|
+
case 2:
|
|
87
|
+
case "BROADCAST_MODE_SYNC":
|
|
88
|
+
return BroadcastMode.BROADCAST_MODE_SYNC;
|
|
89
|
+
case 3:
|
|
90
|
+
case "BROADCAST_MODE_ASYNC":
|
|
91
|
+
return BroadcastMode.BROADCAST_MODE_ASYNC;
|
|
92
|
+
case -1:
|
|
93
|
+
case "UNRECOGNIZED":
|
|
94
|
+
default:
|
|
95
|
+
return BroadcastMode.UNRECOGNIZED;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export function broadcastModeToJSON(object: BroadcastMode): string {
|
|
99
|
+
switch (object) {
|
|
100
|
+
case BroadcastMode.BROADCAST_MODE_UNSPECIFIED:
|
|
101
|
+
return "BROADCAST_MODE_UNSPECIFIED";
|
|
102
|
+
case BroadcastMode.BROADCAST_MODE_BLOCK:
|
|
103
|
+
return "BROADCAST_MODE_BLOCK";
|
|
104
|
+
case BroadcastMode.BROADCAST_MODE_SYNC:
|
|
105
|
+
return "BROADCAST_MODE_SYNC";
|
|
106
|
+
case BroadcastMode.BROADCAST_MODE_ASYNC:
|
|
107
|
+
return "BROADCAST_MODE_ASYNC";
|
|
108
|
+
case BroadcastMode.UNRECOGNIZED:
|
|
109
|
+
default:
|
|
110
|
+
return "UNRECOGNIZED";
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* GetTxsEventRequest is the request type for the Service.TxsByEvents
|
|
115
|
+
* RPC method.
|
|
116
|
+
*/
|
|
117
|
+
export interface GetTxsEventRequest {
|
|
118
|
+
/**
|
|
119
|
+
* events is the list of transaction event type.
|
|
120
|
+
* Deprecated post v0.47.x: use query instead, which should contain a valid
|
|
121
|
+
* events query.
|
|
122
|
+
*/
|
|
123
|
+
/** @deprecated */
|
|
124
|
+
events: string[];
|
|
125
|
+
/**
|
|
126
|
+
* pagination defines a pagination for the request.
|
|
127
|
+
* Deprecated post v0.46.x: use page and limit instead.
|
|
128
|
+
*/
|
|
129
|
+
/** @deprecated */
|
|
130
|
+
pagination?: PageRequest;
|
|
131
|
+
orderBy: OrderBy;
|
|
132
|
+
/**
|
|
133
|
+
* page is the page number to query, starts at 1. If not provided, will
|
|
134
|
+
* default to first page.
|
|
135
|
+
*/
|
|
136
|
+
page: bigint;
|
|
137
|
+
/**
|
|
138
|
+
* limit is the total number of results to be returned in the result page.
|
|
139
|
+
* If left empty it will default to a value to be set by each app.
|
|
140
|
+
*/
|
|
141
|
+
limit: bigint;
|
|
142
|
+
/**
|
|
143
|
+
* query defines the transaction event query that is proxied to Tendermint's
|
|
144
|
+
* TxSearch RPC method. The query must be valid.
|
|
145
|
+
*
|
|
146
|
+
* Since cosmos-sdk 0.50
|
|
147
|
+
*/
|
|
148
|
+
query: string;
|
|
149
|
+
}
|
|
150
|
+
export interface GetTxsEventRequestProtoMsg {
|
|
151
|
+
typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest";
|
|
152
|
+
value: Uint8Array;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* GetTxsEventRequest is the request type for the Service.TxsByEvents
|
|
156
|
+
* RPC method.
|
|
157
|
+
*/
|
|
158
|
+
export interface GetTxsEventRequestAmino {
|
|
159
|
+
/**
|
|
160
|
+
* events is the list of transaction event type.
|
|
161
|
+
* Deprecated post v0.47.x: use query instead, which should contain a valid
|
|
162
|
+
* events query.
|
|
163
|
+
*/
|
|
164
|
+
/** @deprecated */
|
|
165
|
+
events: string[];
|
|
166
|
+
/**
|
|
167
|
+
* pagination defines a pagination for the request.
|
|
168
|
+
* Deprecated post v0.46.x: use page and limit instead.
|
|
169
|
+
*/
|
|
170
|
+
/** @deprecated */
|
|
171
|
+
pagination?: PageRequestAmino;
|
|
172
|
+
order_by: OrderBy;
|
|
173
|
+
/**
|
|
174
|
+
* page is the page number to query, starts at 1. If not provided, will
|
|
175
|
+
* default to first page.
|
|
176
|
+
*/
|
|
177
|
+
page: string;
|
|
178
|
+
/**
|
|
179
|
+
* limit is the total number of results to be returned in the result page.
|
|
180
|
+
* If left empty it will default to a value to be set by each app.
|
|
181
|
+
*/
|
|
182
|
+
limit: string;
|
|
183
|
+
/**
|
|
184
|
+
* query defines the transaction event query that is proxied to Tendermint's
|
|
185
|
+
* TxSearch RPC method. The query must be valid.
|
|
186
|
+
*
|
|
187
|
+
* Since cosmos-sdk 0.50
|
|
188
|
+
*/
|
|
189
|
+
query: string;
|
|
190
|
+
}
|
|
191
|
+
export interface GetTxsEventRequestAminoMsg {
|
|
192
|
+
type: "cosmos-sdk/GetTxsEventRequest";
|
|
193
|
+
value: GetTxsEventRequestAmino;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* GetTxsEventResponse is the response type for the Service.TxsByEvents
|
|
197
|
+
* RPC method.
|
|
198
|
+
*/
|
|
199
|
+
export interface GetTxsEventResponse {
|
|
200
|
+
/** txs is the list of queried transactions. */
|
|
201
|
+
txs: Tx[];
|
|
202
|
+
/** tx_responses is the list of queried TxResponses. */
|
|
203
|
+
txResponses: TxResponse[];
|
|
204
|
+
/**
|
|
205
|
+
* pagination defines a pagination for the response.
|
|
206
|
+
* Deprecated post v0.46.x: use total instead.
|
|
207
|
+
*/
|
|
208
|
+
/** @deprecated */
|
|
209
|
+
pagination?: PageResponse;
|
|
210
|
+
/** total is total number of results available */
|
|
211
|
+
total: bigint;
|
|
212
|
+
}
|
|
213
|
+
export interface GetTxsEventResponseProtoMsg {
|
|
214
|
+
typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse";
|
|
215
|
+
value: Uint8Array;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* GetTxsEventResponse is the response type for the Service.TxsByEvents
|
|
219
|
+
* RPC method.
|
|
220
|
+
*/
|
|
221
|
+
export interface GetTxsEventResponseAmino {
|
|
222
|
+
/** txs is the list of queried transactions. */
|
|
223
|
+
txs: TxAmino[];
|
|
224
|
+
/** tx_responses is the list of queried TxResponses. */
|
|
225
|
+
tx_responses: TxResponseAmino[];
|
|
226
|
+
/**
|
|
227
|
+
* pagination defines a pagination for the response.
|
|
228
|
+
* Deprecated post v0.46.x: use total instead.
|
|
229
|
+
*/
|
|
230
|
+
/** @deprecated */
|
|
231
|
+
pagination?: PageResponseAmino;
|
|
232
|
+
/** total is total number of results available */
|
|
233
|
+
total: string;
|
|
234
|
+
}
|
|
235
|
+
export interface GetTxsEventResponseAminoMsg {
|
|
236
|
+
type: "cosmos-sdk/GetTxsEventResponse";
|
|
237
|
+
value: GetTxsEventResponseAmino;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* BroadcastTxRequest is the request type for the Service.BroadcastTxRequest
|
|
241
|
+
* RPC method.
|
|
242
|
+
*/
|
|
243
|
+
export interface BroadcastTxRequest {
|
|
244
|
+
/** tx_bytes is the raw transaction. */
|
|
245
|
+
txBytes: Uint8Array;
|
|
246
|
+
mode: BroadcastMode;
|
|
247
|
+
}
|
|
248
|
+
export interface BroadcastTxRequestProtoMsg {
|
|
249
|
+
typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest";
|
|
250
|
+
value: Uint8Array;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* BroadcastTxRequest is the request type for the Service.BroadcastTxRequest
|
|
254
|
+
* RPC method.
|
|
255
|
+
*/
|
|
256
|
+
export interface BroadcastTxRequestAmino {
|
|
257
|
+
/** tx_bytes is the raw transaction. */
|
|
258
|
+
tx_bytes: string;
|
|
259
|
+
mode: BroadcastMode;
|
|
260
|
+
}
|
|
261
|
+
export interface BroadcastTxRequestAminoMsg {
|
|
262
|
+
type: "cosmos-sdk/BroadcastTxRequest";
|
|
263
|
+
value: BroadcastTxRequestAmino;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* BroadcastTxResponse is the response type for the
|
|
267
|
+
* Service.BroadcastTx method.
|
|
268
|
+
*/
|
|
269
|
+
export interface BroadcastTxResponse {
|
|
270
|
+
/** tx_response is the queried TxResponses. */
|
|
271
|
+
txResponse?: TxResponse;
|
|
272
|
+
}
|
|
273
|
+
export interface BroadcastTxResponseProtoMsg {
|
|
274
|
+
typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse";
|
|
275
|
+
value: Uint8Array;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* BroadcastTxResponse is the response type for the
|
|
279
|
+
* Service.BroadcastTx method.
|
|
280
|
+
*/
|
|
281
|
+
export interface BroadcastTxResponseAmino {
|
|
282
|
+
/** tx_response is the queried TxResponses. */
|
|
283
|
+
tx_response?: TxResponseAmino;
|
|
284
|
+
}
|
|
285
|
+
export interface BroadcastTxResponseAminoMsg {
|
|
286
|
+
type: "cosmos-sdk/BroadcastTxResponse";
|
|
287
|
+
value: BroadcastTxResponseAmino;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* SimulateRequest is the request type for the Service.Simulate
|
|
291
|
+
* RPC method.
|
|
292
|
+
*/
|
|
293
|
+
export interface SimulateRequest {
|
|
294
|
+
/**
|
|
295
|
+
* tx is the transaction to simulate.
|
|
296
|
+
* Deprecated. Send raw tx bytes instead.
|
|
297
|
+
*/
|
|
298
|
+
/** @deprecated */
|
|
299
|
+
tx?: Tx;
|
|
300
|
+
/**
|
|
301
|
+
* tx_bytes is the raw transaction.
|
|
302
|
+
*
|
|
303
|
+
* Since: cosmos-sdk 0.43
|
|
304
|
+
*/
|
|
305
|
+
txBytes: Uint8Array;
|
|
306
|
+
}
|
|
307
|
+
export interface SimulateRequestProtoMsg {
|
|
308
|
+
typeUrl: "/cosmos.tx.v1beta1.SimulateRequest";
|
|
309
|
+
value: Uint8Array;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* SimulateRequest is the request type for the Service.Simulate
|
|
313
|
+
* RPC method.
|
|
314
|
+
*/
|
|
315
|
+
export interface SimulateRequestAmino {
|
|
316
|
+
/**
|
|
317
|
+
* tx is the transaction to simulate.
|
|
318
|
+
* Deprecated. Send raw tx bytes instead.
|
|
319
|
+
*/
|
|
320
|
+
/** @deprecated */
|
|
321
|
+
tx?: TxAmino;
|
|
322
|
+
/**
|
|
323
|
+
* tx_bytes is the raw transaction.
|
|
324
|
+
*
|
|
325
|
+
* Since: cosmos-sdk 0.43
|
|
326
|
+
*/
|
|
327
|
+
tx_bytes: string;
|
|
328
|
+
}
|
|
329
|
+
export interface SimulateRequestAminoMsg {
|
|
330
|
+
type: "cosmos-sdk/SimulateRequest";
|
|
331
|
+
value: SimulateRequestAmino;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* SimulateResponse is the response type for the
|
|
335
|
+
* Service.SimulateRPC method.
|
|
336
|
+
*/
|
|
337
|
+
export interface SimulateResponse {
|
|
338
|
+
/** gas_info is the information about gas used in the simulation. */
|
|
339
|
+
gasInfo?: GasInfo;
|
|
340
|
+
/** result is the result of the simulation. */
|
|
341
|
+
result?: Result;
|
|
342
|
+
}
|
|
343
|
+
export interface SimulateResponseProtoMsg {
|
|
344
|
+
typeUrl: "/cosmos.tx.v1beta1.SimulateResponse";
|
|
345
|
+
value: Uint8Array;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* SimulateResponse is the response type for the
|
|
349
|
+
* Service.SimulateRPC method.
|
|
350
|
+
*/
|
|
351
|
+
export interface SimulateResponseAmino {
|
|
352
|
+
/** gas_info is the information about gas used in the simulation. */
|
|
353
|
+
gas_info?: GasInfoAmino;
|
|
354
|
+
/** result is the result of the simulation. */
|
|
355
|
+
result?: ResultAmino;
|
|
356
|
+
}
|
|
357
|
+
export interface SimulateResponseAminoMsg {
|
|
358
|
+
type: "cosmos-sdk/SimulateResponse";
|
|
359
|
+
value: SimulateResponseAmino;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* GetTxRequest is the request type for the Service.GetTx
|
|
363
|
+
* RPC method.
|
|
364
|
+
*/
|
|
365
|
+
export interface GetTxRequest {
|
|
366
|
+
/** hash is the tx hash to query, encoded as a hex string. */
|
|
367
|
+
hash: string;
|
|
368
|
+
}
|
|
369
|
+
export interface GetTxRequestProtoMsg {
|
|
370
|
+
typeUrl: "/cosmos.tx.v1beta1.GetTxRequest";
|
|
371
|
+
value: Uint8Array;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* GetTxRequest is the request type for the Service.GetTx
|
|
375
|
+
* RPC method.
|
|
376
|
+
*/
|
|
377
|
+
export interface GetTxRequestAmino {
|
|
378
|
+
/** hash is the tx hash to query, encoded as a hex string. */
|
|
379
|
+
hash: string;
|
|
380
|
+
}
|
|
381
|
+
export interface GetTxRequestAminoMsg {
|
|
382
|
+
type: "cosmos-sdk/GetTxRequest";
|
|
383
|
+
value: GetTxRequestAmino;
|
|
384
|
+
}
|
|
385
|
+
/** GetTxResponse is the response type for the Service.GetTx method. */
|
|
386
|
+
export interface GetTxResponse {
|
|
387
|
+
/** tx is the queried transaction. */
|
|
388
|
+
tx?: Tx;
|
|
389
|
+
/** tx_response is the queried TxResponses. */
|
|
390
|
+
txResponse?: TxResponse;
|
|
391
|
+
}
|
|
392
|
+
export interface GetTxResponseProtoMsg {
|
|
393
|
+
typeUrl: "/cosmos.tx.v1beta1.GetTxResponse";
|
|
394
|
+
value: Uint8Array;
|
|
395
|
+
}
|
|
396
|
+
/** GetTxResponse is the response type for the Service.GetTx method. */
|
|
397
|
+
export interface GetTxResponseAmino {
|
|
398
|
+
/** tx is the queried transaction. */
|
|
399
|
+
tx?: TxAmino;
|
|
400
|
+
/** tx_response is the queried TxResponses. */
|
|
401
|
+
tx_response?: TxResponseAmino;
|
|
402
|
+
}
|
|
403
|
+
export interface GetTxResponseAminoMsg {
|
|
404
|
+
type: "cosmos-sdk/GetTxResponse";
|
|
405
|
+
value: GetTxResponseAmino;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs
|
|
409
|
+
* RPC method.
|
|
410
|
+
*
|
|
411
|
+
* Since: cosmos-sdk 0.45.2
|
|
412
|
+
*/
|
|
413
|
+
export interface GetBlockWithTxsRequest {
|
|
414
|
+
/** height is the height of the block to query. */
|
|
415
|
+
height: bigint;
|
|
416
|
+
/** pagination defines a pagination for the request. */
|
|
417
|
+
pagination?: PageRequest;
|
|
418
|
+
}
|
|
419
|
+
export interface GetBlockWithTxsRequestProtoMsg {
|
|
420
|
+
typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest";
|
|
421
|
+
value: Uint8Array;
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs
|
|
425
|
+
* RPC method.
|
|
426
|
+
*
|
|
427
|
+
* Since: cosmos-sdk 0.45.2
|
|
428
|
+
*/
|
|
429
|
+
export interface GetBlockWithTxsRequestAmino {
|
|
430
|
+
/** height is the height of the block to query. */
|
|
431
|
+
height: string;
|
|
432
|
+
/** pagination defines a pagination for the request. */
|
|
433
|
+
pagination?: PageRequestAmino;
|
|
434
|
+
}
|
|
435
|
+
export interface GetBlockWithTxsRequestAminoMsg {
|
|
436
|
+
type: "cosmos-sdk/GetBlockWithTxsRequest";
|
|
437
|
+
value: GetBlockWithTxsRequestAmino;
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs
|
|
441
|
+
* method.
|
|
442
|
+
*
|
|
443
|
+
* Since: cosmos-sdk 0.45.2
|
|
444
|
+
*/
|
|
445
|
+
export interface GetBlockWithTxsResponse {
|
|
446
|
+
/** txs are the transactions in the block. */
|
|
447
|
+
txs: Tx[];
|
|
448
|
+
blockId?: BlockID;
|
|
449
|
+
block?: Block;
|
|
450
|
+
/** pagination defines a pagination for the response. */
|
|
451
|
+
pagination?: PageResponse;
|
|
452
|
+
}
|
|
453
|
+
export interface GetBlockWithTxsResponseProtoMsg {
|
|
454
|
+
typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse";
|
|
455
|
+
value: Uint8Array;
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs
|
|
459
|
+
* method.
|
|
460
|
+
*
|
|
461
|
+
* Since: cosmos-sdk 0.45.2
|
|
462
|
+
*/
|
|
463
|
+
export interface GetBlockWithTxsResponseAmino {
|
|
464
|
+
/** txs are the transactions in the block. */
|
|
465
|
+
txs: TxAmino[];
|
|
466
|
+
block_id?: BlockIDAmino;
|
|
467
|
+
block?: BlockAmino;
|
|
468
|
+
/** pagination defines a pagination for the response. */
|
|
469
|
+
pagination?: PageResponseAmino;
|
|
470
|
+
}
|
|
471
|
+
export interface GetBlockWithTxsResponseAminoMsg {
|
|
472
|
+
type: "cosmos-sdk/GetBlockWithTxsResponse";
|
|
473
|
+
value: GetBlockWithTxsResponseAmino;
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* TxDecodeRequest is the request type for the Service.TxDecode
|
|
477
|
+
* RPC method.
|
|
478
|
+
*
|
|
479
|
+
* Since: cosmos-sdk 0.47
|
|
480
|
+
*/
|
|
481
|
+
export interface TxDecodeRequest {
|
|
482
|
+
/** tx_bytes is the raw transaction. */
|
|
483
|
+
txBytes: Uint8Array;
|
|
484
|
+
}
|
|
485
|
+
export interface TxDecodeRequestProtoMsg {
|
|
486
|
+
typeUrl: "/cosmos.tx.v1beta1.TxDecodeRequest";
|
|
487
|
+
value: Uint8Array;
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* TxDecodeRequest is the request type for the Service.TxDecode
|
|
491
|
+
* RPC method.
|
|
492
|
+
*
|
|
493
|
+
* Since: cosmos-sdk 0.47
|
|
494
|
+
*/
|
|
495
|
+
export interface TxDecodeRequestAmino {
|
|
496
|
+
/** tx_bytes is the raw transaction. */
|
|
497
|
+
tx_bytes: string;
|
|
498
|
+
}
|
|
499
|
+
export interface TxDecodeRequestAminoMsg {
|
|
500
|
+
type: "cosmos-sdk/TxDecodeRequest";
|
|
501
|
+
value: TxDecodeRequestAmino;
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* TxDecodeResponse is the response type for the
|
|
505
|
+
* Service.TxDecode method.
|
|
506
|
+
*
|
|
507
|
+
* Since: cosmos-sdk 0.47
|
|
508
|
+
*/
|
|
509
|
+
export interface TxDecodeResponse {
|
|
510
|
+
/** tx is the decoded transaction. */
|
|
511
|
+
tx?: Tx;
|
|
512
|
+
}
|
|
513
|
+
export interface TxDecodeResponseProtoMsg {
|
|
514
|
+
typeUrl: "/cosmos.tx.v1beta1.TxDecodeResponse";
|
|
515
|
+
value: Uint8Array;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* TxDecodeResponse is the response type for the
|
|
519
|
+
* Service.TxDecode method.
|
|
520
|
+
*
|
|
521
|
+
* Since: cosmos-sdk 0.47
|
|
522
|
+
*/
|
|
523
|
+
export interface TxDecodeResponseAmino {
|
|
524
|
+
/** tx is the decoded transaction. */
|
|
525
|
+
tx?: TxAmino;
|
|
526
|
+
}
|
|
527
|
+
export interface TxDecodeResponseAminoMsg {
|
|
528
|
+
type: "cosmos-sdk/TxDecodeResponse";
|
|
529
|
+
value: TxDecodeResponseAmino;
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* TxEncodeRequest is the request type for the Service.TxEncode
|
|
533
|
+
* RPC method.
|
|
534
|
+
*
|
|
535
|
+
* Since: cosmos-sdk 0.47
|
|
536
|
+
*/
|
|
537
|
+
export interface TxEncodeRequest {
|
|
538
|
+
/** tx is the transaction to encode. */
|
|
539
|
+
tx?: Tx;
|
|
540
|
+
}
|
|
541
|
+
export interface TxEncodeRequestProtoMsg {
|
|
542
|
+
typeUrl: "/cosmos.tx.v1beta1.TxEncodeRequest";
|
|
543
|
+
value: Uint8Array;
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* TxEncodeRequest is the request type for the Service.TxEncode
|
|
547
|
+
* RPC method.
|
|
548
|
+
*
|
|
549
|
+
* Since: cosmos-sdk 0.47
|
|
550
|
+
*/
|
|
551
|
+
export interface TxEncodeRequestAmino {
|
|
552
|
+
/** tx is the transaction to encode. */
|
|
553
|
+
tx?: TxAmino;
|
|
554
|
+
}
|
|
555
|
+
export interface TxEncodeRequestAminoMsg {
|
|
556
|
+
type: "cosmos-sdk/TxEncodeRequest";
|
|
557
|
+
value: TxEncodeRequestAmino;
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* TxEncodeResponse is the response type for the
|
|
561
|
+
* Service.TxEncode method.
|
|
562
|
+
*
|
|
563
|
+
* Since: cosmos-sdk 0.47
|
|
564
|
+
*/
|
|
565
|
+
export interface TxEncodeResponse {
|
|
566
|
+
/** tx_bytes is the encoded transaction bytes. */
|
|
567
|
+
txBytes: Uint8Array;
|
|
568
|
+
}
|
|
569
|
+
export interface TxEncodeResponseProtoMsg {
|
|
570
|
+
typeUrl: "/cosmos.tx.v1beta1.TxEncodeResponse";
|
|
571
|
+
value: Uint8Array;
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* TxEncodeResponse is the response type for the
|
|
575
|
+
* Service.TxEncode method.
|
|
576
|
+
*
|
|
577
|
+
* Since: cosmos-sdk 0.47
|
|
578
|
+
*/
|
|
579
|
+
export interface TxEncodeResponseAmino {
|
|
580
|
+
/** tx_bytes is the encoded transaction bytes. */
|
|
581
|
+
tx_bytes: string;
|
|
582
|
+
}
|
|
583
|
+
export interface TxEncodeResponseAminoMsg {
|
|
584
|
+
type: "cosmos-sdk/TxEncodeResponse";
|
|
585
|
+
value: TxEncodeResponseAmino;
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino
|
|
589
|
+
* RPC method.
|
|
590
|
+
*
|
|
591
|
+
* Since: cosmos-sdk 0.47
|
|
592
|
+
*/
|
|
593
|
+
export interface TxEncodeAminoRequest {
|
|
594
|
+
aminoJson: string;
|
|
595
|
+
}
|
|
596
|
+
export interface TxEncodeAminoRequestProtoMsg {
|
|
597
|
+
typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoRequest";
|
|
598
|
+
value: Uint8Array;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino
|
|
602
|
+
* RPC method.
|
|
603
|
+
*
|
|
604
|
+
* Since: cosmos-sdk 0.47
|
|
605
|
+
*/
|
|
606
|
+
export interface TxEncodeAminoRequestAmino {
|
|
607
|
+
amino_json: string;
|
|
608
|
+
}
|
|
609
|
+
export interface TxEncodeAminoRequestAminoMsg {
|
|
610
|
+
type: "cosmos-sdk/TxEncodeAminoRequest";
|
|
611
|
+
value: TxEncodeAminoRequestAmino;
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino
|
|
615
|
+
* RPC method.
|
|
616
|
+
*
|
|
617
|
+
* Since: cosmos-sdk 0.47
|
|
618
|
+
*/
|
|
619
|
+
export interface TxEncodeAminoResponse {
|
|
620
|
+
aminoBinary: Uint8Array;
|
|
621
|
+
}
|
|
622
|
+
export interface TxEncodeAminoResponseProtoMsg {
|
|
623
|
+
typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoResponse";
|
|
624
|
+
value: Uint8Array;
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino
|
|
628
|
+
* RPC method.
|
|
629
|
+
*
|
|
630
|
+
* Since: cosmos-sdk 0.47
|
|
631
|
+
*/
|
|
632
|
+
export interface TxEncodeAminoResponseAmino {
|
|
633
|
+
amino_binary: string;
|
|
634
|
+
}
|
|
635
|
+
export interface TxEncodeAminoResponseAminoMsg {
|
|
636
|
+
type: "cosmos-sdk/TxEncodeAminoResponse";
|
|
637
|
+
value: TxEncodeAminoResponseAmino;
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino
|
|
641
|
+
* RPC method.
|
|
642
|
+
*
|
|
643
|
+
* Since: cosmos-sdk 0.47
|
|
644
|
+
*/
|
|
645
|
+
export interface TxDecodeAminoRequest {
|
|
646
|
+
aminoBinary: Uint8Array;
|
|
647
|
+
}
|
|
648
|
+
export interface TxDecodeAminoRequestProtoMsg {
|
|
649
|
+
typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoRequest";
|
|
650
|
+
value: Uint8Array;
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino
|
|
654
|
+
* RPC method.
|
|
655
|
+
*
|
|
656
|
+
* Since: cosmos-sdk 0.47
|
|
657
|
+
*/
|
|
658
|
+
export interface TxDecodeAminoRequestAmino {
|
|
659
|
+
amino_binary: string;
|
|
660
|
+
}
|
|
661
|
+
export interface TxDecodeAminoRequestAminoMsg {
|
|
662
|
+
type: "cosmos-sdk/TxDecodeAminoRequest";
|
|
663
|
+
value: TxDecodeAminoRequestAmino;
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino
|
|
667
|
+
* RPC method.
|
|
668
|
+
*
|
|
669
|
+
* Since: cosmos-sdk 0.47
|
|
670
|
+
*/
|
|
671
|
+
export interface TxDecodeAminoResponse {
|
|
672
|
+
aminoJson: string;
|
|
673
|
+
}
|
|
674
|
+
export interface TxDecodeAminoResponseProtoMsg {
|
|
675
|
+
typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoResponse";
|
|
676
|
+
value: Uint8Array;
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino
|
|
680
|
+
* RPC method.
|
|
681
|
+
*
|
|
682
|
+
* Since: cosmos-sdk 0.47
|
|
683
|
+
*/
|
|
684
|
+
export interface TxDecodeAminoResponseAmino {
|
|
685
|
+
amino_json: string;
|
|
686
|
+
}
|
|
687
|
+
export interface TxDecodeAminoResponseAminoMsg {
|
|
688
|
+
type: "cosmos-sdk/TxDecodeAminoResponse";
|
|
689
|
+
value: TxDecodeAminoResponseAmino;
|
|
690
|
+
}
|
|
691
|
+
function createBaseGetTxsEventRequest(): GetTxsEventRequest {
|
|
692
|
+
return {
|
|
693
|
+
events: [],
|
|
694
|
+
pagination: undefined,
|
|
695
|
+
orderBy: 0,
|
|
696
|
+
page: BigInt(0),
|
|
697
|
+
limit: BigInt(0),
|
|
698
|
+
query: ""
|
|
699
|
+
};
|
|
700
|
+
}
|
|
701
|
+
export const GetTxsEventRequest = {
|
|
702
|
+
typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest",
|
|
703
|
+
aminoType: "cosmos-sdk/GetTxsEventRequest",
|
|
704
|
+
is(o: any): o is GetTxsEventRequest {
|
|
705
|
+
return o && (o.$typeUrl === GetTxsEventRequest.typeUrl || Array.isArray(o.events) && (!o.events.length || typeof o.events[0] === "string") && isSet(o.orderBy) && typeof o.page === "bigint" && typeof o.limit === "bigint" && typeof o.query === "string");
|
|
706
|
+
},
|
|
707
|
+
isAmino(o: any): o is GetTxsEventRequestAmino {
|
|
708
|
+
return o && (o.$typeUrl === GetTxsEventRequest.typeUrl || Array.isArray(o.events) && (!o.events.length || typeof o.events[0] === "string") && isSet(o.order_by) && typeof o.page === "bigint" && typeof o.limit === "bigint" && typeof o.query === "string");
|
|
709
|
+
},
|
|
710
|
+
encode(message: GetTxsEventRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
711
|
+
for (const v of message.events) {
|
|
712
|
+
writer.uint32(10).string(v!);
|
|
713
|
+
}
|
|
714
|
+
if (message.pagination !== undefined) {
|
|
715
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
716
|
+
}
|
|
717
|
+
if (message.orderBy !== 0) {
|
|
718
|
+
writer.uint32(24).int32(message.orderBy);
|
|
719
|
+
}
|
|
720
|
+
if (message.page !== BigInt(0)) {
|
|
721
|
+
writer.uint32(32).uint64(message.page);
|
|
722
|
+
}
|
|
723
|
+
if (message.limit !== BigInt(0)) {
|
|
724
|
+
writer.uint32(40).uint64(message.limit);
|
|
725
|
+
}
|
|
726
|
+
if (message.query !== "") {
|
|
727
|
+
writer.uint32(50).string(message.query);
|
|
728
|
+
}
|
|
729
|
+
return writer;
|
|
730
|
+
},
|
|
731
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetTxsEventRequest {
|
|
732
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
733
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
734
|
+
const message = createBaseGetTxsEventRequest();
|
|
735
|
+
while (reader.pos < end) {
|
|
736
|
+
const tag = reader.uint32();
|
|
737
|
+
switch (tag >>> 3) {
|
|
738
|
+
case 1:
|
|
739
|
+
message.events.push(reader.string());
|
|
740
|
+
break;
|
|
741
|
+
case 2:
|
|
742
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
743
|
+
break;
|
|
744
|
+
case 3:
|
|
745
|
+
message.orderBy = reader.int32() as any;
|
|
746
|
+
break;
|
|
747
|
+
case 4:
|
|
748
|
+
message.page = reader.uint64();
|
|
749
|
+
break;
|
|
750
|
+
case 5:
|
|
751
|
+
message.limit = reader.uint64();
|
|
752
|
+
break;
|
|
753
|
+
case 6:
|
|
754
|
+
message.query = reader.string();
|
|
755
|
+
break;
|
|
756
|
+
default:
|
|
757
|
+
reader.skipType(tag & 7);
|
|
758
|
+
break;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
return message;
|
|
762
|
+
},
|
|
763
|
+
fromPartial(object: DeepPartial<GetTxsEventRequest>): GetTxsEventRequest {
|
|
764
|
+
const message = createBaseGetTxsEventRequest();
|
|
765
|
+
message.events = object.events?.map(e => e) || [];
|
|
766
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
767
|
+
message.orderBy = object.orderBy ?? 0;
|
|
768
|
+
message.page = object.page !== undefined && object.page !== null ? BigInt(object.page.toString()) : BigInt(0);
|
|
769
|
+
message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0);
|
|
770
|
+
message.query = object.query ?? "";
|
|
771
|
+
return message;
|
|
772
|
+
},
|
|
773
|
+
fromAmino(object: GetTxsEventRequestAmino): GetTxsEventRequest {
|
|
774
|
+
const message = createBaseGetTxsEventRequest();
|
|
775
|
+
message.events = object.events?.map(e => e) || [];
|
|
776
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
777
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
778
|
+
}
|
|
779
|
+
if (object.order_by !== undefined && object.order_by !== null) {
|
|
780
|
+
message.orderBy = object.order_by;
|
|
781
|
+
}
|
|
782
|
+
if (object.page !== undefined && object.page !== null) {
|
|
783
|
+
message.page = BigInt(object.page);
|
|
784
|
+
}
|
|
785
|
+
if (object.limit !== undefined && object.limit !== null) {
|
|
786
|
+
message.limit = BigInt(object.limit);
|
|
787
|
+
}
|
|
788
|
+
if (object.query !== undefined && object.query !== null) {
|
|
789
|
+
message.query = object.query;
|
|
790
|
+
}
|
|
791
|
+
return message;
|
|
792
|
+
},
|
|
793
|
+
toAmino(message: GetTxsEventRequest): GetTxsEventRequestAmino {
|
|
794
|
+
const obj: any = {};
|
|
795
|
+
if (message.events) {
|
|
796
|
+
obj.events = message.events.map(e => e);
|
|
797
|
+
} else {
|
|
798
|
+
obj.events = message.events;
|
|
799
|
+
}
|
|
800
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
801
|
+
obj.order_by = message.orderBy === 0 ? undefined : message.orderBy;
|
|
802
|
+
obj.page = message.page !== BigInt(0) ? message.page?.toString() : undefined;
|
|
803
|
+
obj.limit = message.limit !== BigInt(0) ? message.limit?.toString() : undefined;
|
|
804
|
+
obj.query = message.query === "" ? undefined : message.query;
|
|
805
|
+
return obj;
|
|
806
|
+
},
|
|
807
|
+
fromAminoMsg(object: GetTxsEventRequestAminoMsg): GetTxsEventRequest {
|
|
808
|
+
return GetTxsEventRequest.fromAmino(object.value);
|
|
809
|
+
},
|
|
810
|
+
toAminoMsg(message: GetTxsEventRequest): GetTxsEventRequestAminoMsg {
|
|
811
|
+
return {
|
|
812
|
+
type: "cosmos-sdk/GetTxsEventRequest",
|
|
813
|
+
value: GetTxsEventRequest.toAmino(message)
|
|
814
|
+
};
|
|
815
|
+
},
|
|
816
|
+
fromProtoMsg(message: GetTxsEventRequestProtoMsg): GetTxsEventRequest {
|
|
817
|
+
return GetTxsEventRequest.decode(message.value);
|
|
818
|
+
},
|
|
819
|
+
toProto(message: GetTxsEventRequest): Uint8Array {
|
|
820
|
+
return GetTxsEventRequest.encode(message).finish();
|
|
821
|
+
},
|
|
822
|
+
toProtoMsg(message: GetTxsEventRequest): GetTxsEventRequestProtoMsg {
|
|
823
|
+
return {
|
|
824
|
+
typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest",
|
|
825
|
+
value: GetTxsEventRequest.encode(message).finish()
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
GlobalDecoderRegistry.register(GetTxsEventRequest.typeUrl, GetTxsEventRequest);
|
|
830
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(GetTxsEventRequest.aminoType, GetTxsEventRequest.typeUrl);
|
|
831
|
+
function createBaseGetTxsEventResponse(): GetTxsEventResponse {
|
|
832
|
+
return {
|
|
833
|
+
txs: [],
|
|
834
|
+
txResponses: [],
|
|
835
|
+
pagination: undefined,
|
|
836
|
+
total: BigInt(0)
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
export const GetTxsEventResponse = {
|
|
840
|
+
typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse",
|
|
841
|
+
aminoType: "cosmos-sdk/GetTxsEventResponse",
|
|
842
|
+
is(o: any): o is GetTxsEventResponse {
|
|
843
|
+
return o && (o.$typeUrl === GetTxsEventResponse.typeUrl || Array.isArray(o.txs) && (!o.txs.length || Tx.is(o.txs[0])) && Array.isArray(o.txResponses) && (!o.txResponses.length || TxResponse.is(o.txResponses[0])) && typeof o.total === "bigint");
|
|
844
|
+
},
|
|
845
|
+
isAmino(o: any): o is GetTxsEventResponseAmino {
|
|
846
|
+
return o && (o.$typeUrl === GetTxsEventResponse.typeUrl || Array.isArray(o.txs) && (!o.txs.length || Tx.isAmino(o.txs[0])) && Array.isArray(o.tx_responses) && (!o.tx_responses.length || TxResponse.isAmino(o.tx_responses[0])) && typeof o.total === "bigint");
|
|
847
|
+
},
|
|
848
|
+
encode(message: GetTxsEventResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
849
|
+
for (const v of message.txs) {
|
|
850
|
+
Tx.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
851
|
+
}
|
|
852
|
+
for (const v of message.txResponses) {
|
|
853
|
+
TxResponse.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
854
|
+
}
|
|
855
|
+
if (message.pagination !== undefined) {
|
|
856
|
+
PageResponse.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
|
857
|
+
}
|
|
858
|
+
if (message.total !== BigInt(0)) {
|
|
859
|
+
writer.uint32(32).uint64(message.total);
|
|
860
|
+
}
|
|
861
|
+
return writer;
|
|
862
|
+
},
|
|
863
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetTxsEventResponse {
|
|
864
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
865
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
866
|
+
const message = createBaseGetTxsEventResponse();
|
|
867
|
+
while (reader.pos < end) {
|
|
868
|
+
const tag = reader.uint32();
|
|
869
|
+
switch (tag >>> 3) {
|
|
870
|
+
case 1:
|
|
871
|
+
message.txs.push(Tx.decode(reader, reader.uint32()));
|
|
872
|
+
break;
|
|
873
|
+
case 2:
|
|
874
|
+
message.txResponses.push(TxResponse.decode(reader, reader.uint32()));
|
|
875
|
+
break;
|
|
876
|
+
case 3:
|
|
877
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
878
|
+
break;
|
|
879
|
+
case 4:
|
|
880
|
+
message.total = reader.uint64();
|
|
881
|
+
break;
|
|
882
|
+
default:
|
|
883
|
+
reader.skipType(tag & 7);
|
|
884
|
+
break;
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
return message;
|
|
888
|
+
},
|
|
889
|
+
fromPartial(object: DeepPartial<GetTxsEventResponse>): GetTxsEventResponse {
|
|
890
|
+
const message = createBaseGetTxsEventResponse();
|
|
891
|
+
message.txs = object.txs?.map(e => Tx.fromPartial(e)) || [];
|
|
892
|
+
message.txResponses = object.txResponses?.map(e => TxResponse.fromPartial(e)) || [];
|
|
893
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
894
|
+
message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0);
|
|
895
|
+
return message;
|
|
896
|
+
},
|
|
897
|
+
fromAmino(object: GetTxsEventResponseAmino): GetTxsEventResponse {
|
|
898
|
+
const message = createBaseGetTxsEventResponse();
|
|
899
|
+
message.txs = object.txs?.map(e => Tx.fromAmino(e)) || [];
|
|
900
|
+
message.txResponses = object.tx_responses?.map(e => TxResponse.fromAmino(e)) || [];
|
|
901
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
902
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
903
|
+
}
|
|
904
|
+
if (object.total !== undefined && object.total !== null) {
|
|
905
|
+
message.total = BigInt(object.total);
|
|
906
|
+
}
|
|
907
|
+
return message;
|
|
908
|
+
},
|
|
909
|
+
toAmino(message: GetTxsEventResponse): GetTxsEventResponseAmino {
|
|
910
|
+
const obj: any = {};
|
|
911
|
+
if (message.txs) {
|
|
912
|
+
obj.txs = message.txs.map(e => e ? Tx.toAmino(e) : undefined);
|
|
913
|
+
} else {
|
|
914
|
+
obj.txs = message.txs;
|
|
915
|
+
}
|
|
916
|
+
if (message.txResponses) {
|
|
917
|
+
obj.tx_responses = message.txResponses.map(e => e ? TxResponse.toAmino(e) : undefined);
|
|
918
|
+
} else {
|
|
919
|
+
obj.tx_responses = message.txResponses;
|
|
920
|
+
}
|
|
921
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
922
|
+
obj.total = message.total !== BigInt(0) ? message.total?.toString() : undefined;
|
|
923
|
+
return obj;
|
|
924
|
+
},
|
|
925
|
+
fromAminoMsg(object: GetTxsEventResponseAminoMsg): GetTxsEventResponse {
|
|
926
|
+
return GetTxsEventResponse.fromAmino(object.value);
|
|
927
|
+
},
|
|
928
|
+
toAminoMsg(message: GetTxsEventResponse): GetTxsEventResponseAminoMsg {
|
|
929
|
+
return {
|
|
930
|
+
type: "cosmos-sdk/GetTxsEventResponse",
|
|
931
|
+
value: GetTxsEventResponse.toAmino(message)
|
|
932
|
+
};
|
|
933
|
+
},
|
|
934
|
+
fromProtoMsg(message: GetTxsEventResponseProtoMsg): GetTxsEventResponse {
|
|
935
|
+
return GetTxsEventResponse.decode(message.value);
|
|
936
|
+
},
|
|
937
|
+
toProto(message: GetTxsEventResponse): Uint8Array {
|
|
938
|
+
return GetTxsEventResponse.encode(message).finish();
|
|
939
|
+
},
|
|
940
|
+
toProtoMsg(message: GetTxsEventResponse): GetTxsEventResponseProtoMsg {
|
|
941
|
+
return {
|
|
942
|
+
typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse",
|
|
943
|
+
value: GetTxsEventResponse.encode(message).finish()
|
|
944
|
+
};
|
|
945
|
+
}
|
|
946
|
+
};
|
|
947
|
+
GlobalDecoderRegistry.register(GetTxsEventResponse.typeUrl, GetTxsEventResponse);
|
|
948
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(GetTxsEventResponse.aminoType, GetTxsEventResponse.typeUrl);
|
|
949
|
+
function createBaseBroadcastTxRequest(): BroadcastTxRequest {
|
|
950
|
+
return {
|
|
951
|
+
txBytes: new Uint8Array(),
|
|
952
|
+
mode: 0
|
|
953
|
+
};
|
|
954
|
+
}
|
|
955
|
+
export const BroadcastTxRequest = {
|
|
956
|
+
typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest",
|
|
957
|
+
aminoType: "cosmos-sdk/BroadcastTxRequest",
|
|
958
|
+
is(o: any): o is BroadcastTxRequest {
|
|
959
|
+
return o && (o.$typeUrl === BroadcastTxRequest.typeUrl || (o.txBytes instanceof Uint8Array || typeof o.txBytes === "string") && isSet(o.mode));
|
|
960
|
+
},
|
|
961
|
+
isAmino(o: any): o is BroadcastTxRequestAmino {
|
|
962
|
+
return o && (o.$typeUrl === BroadcastTxRequest.typeUrl || (o.tx_bytes instanceof Uint8Array || typeof o.tx_bytes === "string") && isSet(o.mode));
|
|
963
|
+
},
|
|
964
|
+
encode(message: BroadcastTxRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
965
|
+
if (message.txBytes.length !== 0) {
|
|
966
|
+
writer.uint32(10).bytes(message.txBytes);
|
|
967
|
+
}
|
|
968
|
+
if (message.mode !== 0) {
|
|
969
|
+
writer.uint32(16).int32(message.mode);
|
|
970
|
+
}
|
|
971
|
+
return writer;
|
|
972
|
+
},
|
|
973
|
+
decode(input: BinaryReader | Uint8Array, length?: number): BroadcastTxRequest {
|
|
974
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
975
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
976
|
+
const message = createBaseBroadcastTxRequest();
|
|
977
|
+
while (reader.pos < end) {
|
|
978
|
+
const tag = reader.uint32();
|
|
979
|
+
switch (tag >>> 3) {
|
|
980
|
+
case 1:
|
|
981
|
+
message.txBytes = reader.bytes();
|
|
982
|
+
break;
|
|
983
|
+
case 2:
|
|
984
|
+
message.mode = reader.int32() as any;
|
|
985
|
+
break;
|
|
986
|
+
default:
|
|
987
|
+
reader.skipType(tag & 7);
|
|
988
|
+
break;
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
return message;
|
|
992
|
+
},
|
|
993
|
+
fromPartial(object: DeepPartial<BroadcastTxRequest>): BroadcastTxRequest {
|
|
994
|
+
const message = createBaseBroadcastTxRequest();
|
|
995
|
+
message.txBytes = object.txBytes ?? new Uint8Array();
|
|
996
|
+
message.mode = object.mode ?? 0;
|
|
997
|
+
return message;
|
|
998
|
+
},
|
|
999
|
+
fromAmino(object: BroadcastTxRequestAmino): BroadcastTxRequest {
|
|
1000
|
+
const message = createBaseBroadcastTxRequest();
|
|
1001
|
+
if (object.tx_bytes !== undefined && object.tx_bytes !== null) {
|
|
1002
|
+
message.txBytes = bytesFromBase64(object.tx_bytes);
|
|
1003
|
+
}
|
|
1004
|
+
if (object.mode !== undefined && object.mode !== null) {
|
|
1005
|
+
message.mode = object.mode;
|
|
1006
|
+
}
|
|
1007
|
+
return message;
|
|
1008
|
+
},
|
|
1009
|
+
toAmino(message: BroadcastTxRequest): BroadcastTxRequestAmino {
|
|
1010
|
+
const obj: any = {};
|
|
1011
|
+
obj.tx_bytes = message.txBytes ? base64FromBytes(message.txBytes) : undefined;
|
|
1012
|
+
obj.mode = message.mode === 0 ? undefined : message.mode;
|
|
1013
|
+
return obj;
|
|
1014
|
+
},
|
|
1015
|
+
fromAminoMsg(object: BroadcastTxRequestAminoMsg): BroadcastTxRequest {
|
|
1016
|
+
return BroadcastTxRequest.fromAmino(object.value);
|
|
1017
|
+
},
|
|
1018
|
+
toAminoMsg(message: BroadcastTxRequest): BroadcastTxRequestAminoMsg {
|
|
1019
|
+
return {
|
|
1020
|
+
type: "cosmos-sdk/BroadcastTxRequest",
|
|
1021
|
+
value: BroadcastTxRequest.toAmino(message)
|
|
1022
|
+
};
|
|
1023
|
+
},
|
|
1024
|
+
fromProtoMsg(message: BroadcastTxRequestProtoMsg): BroadcastTxRequest {
|
|
1025
|
+
return BroadcastTxRequest.decode(message.value);
|
|
1026
|
+
},
|
|
1027
|
+
toProto(message: BroadcastTxRequest): Uint8Array {
|
|
1028
|
+
return BroadcastTxRequest.encode(message).finish();
|
|
1029
|
+
},
|
|
1030
|
+
toProtoMsg(message: BroadcastTxRequest): BroadcastTxRequestProtoMsg {
|
|
1031
|
+
return {
|
|
1032
|
+
typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest",
|
|
1033
|
+
value: BroadcastTxRequest.encode(message).finish()
|
|
1034
|
+
};
|
|
1035
|
+
}
|
|
1036
|
+
};
|
|
1037
|
+
GlobalDecoderRegistry.register(BroadcastTxRequest.typeUrl, BroadcastTxRequest);
|
|
1038
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(BroadcastTxRequest.aminoType, BroadcastTxRequest.typeUrl);
|
|
1039
|
+
function createBaseBroadcastTxResponse(): BroadcastTxResponse {
|
|
1040
|
+
return {
|
|
1041
|
+
txResponse: undefined
|
|
1042
|
+
};
|
|
1043
|
+
}
|
|
1044
|
+
export const BroadcastTxResponse = {
|
|
1045
|
+
typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse",
|
|
1046
|
+
aminoType: "cosmos-sdk/BroadcastTxResponse",
|
|
1047
|
+
is(o: any): o is BroadcastTxResponse {
|
|
1048
|
+
return o && o.$typeUrl === BroadcastTxResponse.typeUrl;
|
|
1049
|
+
},
|
|
1050
|
+
isAmino(o: any): o is BroadcastTxResponseAmino {
|
|
1051
|
+
return o && o.$typeUrl === BroadcastTxResponse.typeUrl;
|
|
1052
|
+
},
|
|
1053
|
+
encode(message: BroadcastTxResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1054
|
+
if (message.txResponse !== undefined) {
|
|
1055
|
+
TxResponse.encode(message.txResponse, writer.uint32(10).fork()).ldelim();
|
|
1056
|
+
}
|
|
1057
|
+
return writer;
|
|
1058
|
+
},
|
|
1059
|
+
decode(input: BinaryReader | Uint8Array, length?: number): BroadcastTxResponse {
|
|
1060
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1061
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1062
|
+
const message = createBaseBroadcastTxResponse();
|
|
1063
|
+
while (reader.pos < end) {
|
|
1064
|
+
const tag = reader.uint32();
|
|
1065
|
+
switch (tag >>> 3) {
|
|
1066
|
+
case 1:
|
|
1067
|
+
message.txResponse = TxResponse.decode(reader, reader.uint32());
|
|
1068
|
+
break;
|
|
1069
|
+
default:
|
|
1070
|
+
reader.skipType(tag & 7);
|
|
1071
|
+
break;
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
return message;
|
|
1075
|
+
},
|
|
1076
|
+
fromPartial(object: DeepPartial<BroadcastTxResponse>): BroadcastTxResponse {
|
|
1077
|
+
const message = createBaseBroadcastTxResponse();
|
|
1078
|
+
message.txResponse = object.txResponse !== undefined && object.txResponse !== null ? TxResponse.fromPartial(object.txResponse) : undefined;
|
|
1079
|
+
return message;
|
|
1080
|
+
},
|
|
1081
|
+
fromAmino(object: BroadcastTxResponseAmino): BroadcastTxResponse {
|
|
1082
|
+
const message = createBaseBroadcastTxResponse();
|
|
1083
|
+
if (object.tx_response !== undefined && object.tx_response !== null) {
|
|
1084
|
+
message.txResponse = TxResponse.fromAmino(object.tx_response);
|
|
1085
|
+
}
|
|
1086
|
+
return message;
|
|
1087
|
+
},
|
|
1088
|
+
toAmino(message: BroadcastTxResponse): BroadcastTxResponseAmino {
|
|
1089
|
+
const obj: any = {};
|
|
1090
|
+
obj.tx_response = message.txResponse ? TxResponse.toAmino(message.txResponse) : undefined;
|
|
1091
|
+
return obj;
|
|
1092
|
+
},
|
|
1093
|
+
fromAminoMsg(object: BroadcastTxResponseAminoMsg): BroadcastTxResponse {
|
|
1094
|
+
return BroadcastTxResponse.fromAmino(object.value);
|
|
1095
|
+
},
|
|
1096
|
+
toAminoMsg(message: BroadcastTxResponse): BroadcastTxResponseAminoMsg {
|
|
1097
|
+
return {
|
|
1098
|
+
type: "cosmos-sdk/BroadcastTxResponse",
|
|
1099
|
+
value: BroadcastTxResponse.toAmino(message)
|
|
1100
|
+
};
|
|
1101
|
+
},
|
|
1102
|
+
fromProtoMsg(message: BroadcastTxResponseProtoMsg): BroadcastTxResponse {
|
|
1103
|
+
return BroadcastTxResponse.decode(message.value);
|
|
1104
|
+
},
|
|
1105
|
+
toProto(message: BroadcastTxResponse): Uint8Array {
|
|
1106
|
+
return BroadcastTxResponse.encode(message).finish();
|
|
1107
|
+
},
|
|
1108
|
+
toProtoMsg(message: BroadcastTxResponse): BroadcastTxResponseProtoMsg {
|
|
1109
|
+
return {
|
|
1110
|
+
typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse",
|
|
1111
|
+
value: BroadcastTxResponse.encode(message).finish()
|
|
1112
|
+
};
|
|
1113
|
+
}
|
|
1114
|
+
};
|
|
1115
|
+
GlobalDecoderRegistry.register(BroadcastTxResponse.typeUrl, BroadcastTxResponse);
|
|
1116
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(BroadcastTxResponse.aminoType, BroadcastTxResponse.typeUrl);
|
|
1117
|
+
function createBaseSimulateRequest(): SimulateRequest {
|
|
1118
|
+
return {
|
|
1119
|
+
tx: undefined,
|
|
1120
|
+
txBytes: new Uint8Array()
|
|
1121
|
+
};
|
|
1122
|
+
}
|
|
1123
|
+
export const SimulateRequest = {
|
|
1124
|
+
typeUrl: "/cosmos.tx.v1beta1.SimulateRequest",
|
|
1125
|
+
aminoType: "cosmos-sdk/SimulateRequest",
|
|
1126
|
+
is(o: any): o is SimulateRequest {
|
|
1127
|
+
return o && (o.$typeUrl === SimulateRequest.typeUrl || o.txBytes instanceof Uint8Array || typeof o.txBytes === "string");
|
|
1128
|
+
},
|
|
1129
|
+
isAmino(o: any): o is SimulateRequestAmino {
|
|
1130
|
+
return o && (o.$typeUrl === SimulateRequest.typeUrl || o.tx_bytes instanceof Uint8Array || typeof o.tx_bytes === "string");
|
|
1131
|
+
},
|
|
1132
|
+
encode(message: SimulateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1133
|
+
if (message.tx !== undefined) {
|
|
1134
|
+
Tx.encode(message.tx, writer.uint32(10).fork()).ldelim();
|
|
1135
|
+
}
|
|
1136
|
+
if (message.txBytes.length !== 0) {
|
|
1137
|
+
writer.uint32(18).bytes(message.txBytes);
|
|
1138
|
+
}
|
|
1139
|
+
return writer;
|
|
1140
|
+
},
|
|
1141
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SimulateRequest {
|
|
1142
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1143
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1144
|
+
const message = createBaseSimulateRequest();
|
|
1145
|
+
while (reader.pos < end) {
|
|
1146
|
+
const tag = reader.uint32();
|
|
1147
|
+
switch (tag >>> 3) {
|
|
1148
|
+
case 1:
|
|
1149
|
+
message.tx = Tx.decode(reader, reader.uint32());
|
|
1150
|
+
break;
|
|
1151
|
+
case 2:
|
|
1152
|
+
message.txBytes = reader.bytes();
|
|
1153
|
+
break;
|
|
1154
|
+
default:
|
|
1155
|
+
reader.skipType(tag & 7);
|
|
1156
|
+
break;
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
return message;
|
|
1160
|
+
},
|
|
1161
|
+
fromPartial(object: DeepPartial<SimulateRequest>): SimulateRequest {
|
|
1162
|
+
const message = createBaseSimulateRequest();
|
|
1163
|
+
message.tx = object.tx !== undefined && object.tx !== null ? Tx.fromPartial(object.tx) : undefined;
|
|
1164
|
+
message.txBytes = object.txBytes ?? new Uint8Array();
|
|
1165
|
+
return message;
|
|
1166
|
+
},
|
|
1167
|
+
fromAmino(object: SimulateRequestAmino): SimulateRequest {
|
|
1168
|
+
const message = createBaseSimulateRequest();
|
|
1169
|
+
if (object.tx !== undefined && object.tx !== null) {
|
|
1170
|
+
message.tx = Tx.fromAmino(object.tx);
|
|
1171
|
+
}
|
|
1172
|
+
if (object.tx_bytes !== undefined && object.tx_bytes !== null) {
|
|
1173
|
+
message.txBytes = bytesFromBase64(object.tx_bytes);
|
|
1174
|
+
}
|
|
1175
|
+
return message;
|
|
1176
|
+
},
|
|
1177
|
+
toAmino(message: SimulateRequest): SimulateRequestAmino {
|
|
1178
|
+
const obj: any = {};
|
|
1179
|
+
obj.tx = message.tx ? Tx.toAmino(message.tx) : undefined;
|
|
1180
|
+
obj.tx_bytes = message.txBytes ? base64FromBytes(message.txBytes) : undefined;
|
|
1181
|
+
return obj;
|
|
1182
|
+
},
|
|
1183
|
+
fromAminoMsg(object: SimulateRequestAminoMsg): SimulateRequest {
|
|
1184
|
+
return SimulateRequest.fromAmino(object.value);
|
|
1185
|
+
},
|
|
1186
|
+
toAminoMsg(message: SimulateRequest): SimulateRequestAminoMsg {
|
|
1187
|
+
return {
|
|
1188
|
+
type: "cosmos-sdk/SimulateRequest",
|
|
1189
|
+
value: SimulateRequest.toAmino(message)
|
|
1190
|
+
};
|
|
1191
|
+
},
|
|
1192
|
+
fromProtoMsg(message: SimulateRequestProtoMsg): SimulateRequest {
|
|
1193
|
+
return SimulateRequest.decode(message.value);
|
|
1194
|
+
},
|
|
1195
|
+
toProto(message: SimulateRequest): Uint8Array {
|
|
1196
|
+
return SimulateRequest.encode(message).finish();
|
|
1197
|
+
},
|
|
1198
|
+
toProtoMsg(message: SimulateRequest): SimulateRequestProtoMsg {
|
|
1199
|
+
return {
|
|
1200
|
+
typeUrl: "/cosmos.tx.v1beta1.SimulateRequest",
|
|
1201
|
+
value: SimulateRequest.encode(message).finish()
|
|
1202
|
+
};
|
|
1203
|
+
}
|
|
1204
|
+
};
|
|
1205
|
+
GlobalDecoderRegistry.register(SimulateRequest.typeUrl, SimulateRequest);
|
|
1206
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(SimulateRequest.aminoType, SimulateRequest.typeUrl);
|
|
1207
|
+
function createBaseSimulateResponse(): SimulateResponse {
|
|
1208
|
+
return {
|
|
1209
|
+
gasInfo: undefined,
|
|
1210
|
+
result: undefined
|
|
1211
|
+
};
|
|
1212
|
+
}
|
|
1213
|
+
export const SimulateResponse = {
|
|
1214
|
+
typeUrl: "/cosmos.tx.v1beta1.SimulateResponse",
|
|
1215
|
+
aminoType: "cosmos-sdk/SimulateResponse",
|
|
1216
|
+
is(o: any): o is SimulateResponse {
|
|
1217
|
+
return o && o.$typeUrl === SimulateResponse.typeUrl;
|
|
1218
|
+
},
|
|
1219
|
+
isAmino(o: any): o is SimulateResponseAmino {
|
|
1220
|
+
return o && o.$typeUrl === SimulateResponse.typeUrl;
|
|
1221
|
+
},
|
|
1222
|
+
encode(message: SimulateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1223
|
+
if (message.gasInfo !== undefined) {
|
|
1224
|
+
GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim();
|
|
1225
|
+
}
|
|
1226
|
+
if (message.result !== undefined) {
|
|
1227
|
+
Result.encode(message.result, writer.uint32(18).fork()).ldelim();
|
|
1228
|
+
}
|
|
1229
|
+
return writer;
|
|
1230
|
+
},
|
|
1231
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SimulateResponse {
|
|
1232
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1233
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1234
|
+
const message = createBaseSimulateResponse();
|
|
1235
|
+
while (reader.pos < end) {
|
|
1236
|
+
const tag = reader.uint32();
|
|
1237
|
+
switch (tag >>> 3) {
|
|
1238
|
+
case 1:
|
|
1239
|
+
message.gasInfo = GasInfo.decode(reader, reader.uint32());
|
|
1240
|
+
break;
|
|
1241
|
+
case 2:
|
|
1242
|
+
message.result = Result.decode(reader, reader.uint32());
|
|
1243
|
+
break;
|
|
1244
|
+
default:
|
|
1245
|
+
reader.skipType(tag & 7);
|
|
1246
|
+
break;
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
return message;
|
|
1250
|
+
},
|
|
1251
|
+
fromPartial(object: DeepPartial<SimulateResponse>): SimulateResponse {
|
|
1252
|
+
const message = createBaseSimulateResponse();
|
|
1253
|
+
message.gasInfo = object.gasInfo !== undefined && object.gasInfo !== null ? GasInfo.fromPartial(object.gasInfo) : undefined;
|
|
1254
|
+
message.result = object.result !== undefined && object.result !== null ? Result.fromPartial(object.result) : undefined;
|
|
1255
|
+
return message;
|
|
1256
|
+
},
|
|
1257
|
+
fromAmino(object: SimulateResponseAmino): SimulateResponse {
|
|
1258
|
+
const message = createBaseSimulateResponse();
|
|
1259
|
+
if (object.gas_info !== undefined && object.gas_info !== null) {
|
|
1260
|
+
message.gasInfo = GasInfo.fromAmino(object.gas_info);
|
|
1261
|
+
}
|
|
1262
|
+
if (object.result !== undefined && object.result !== null) {
|
|
1263
|
+
message.result = Result.fromAmino(object.result);
|
|
1264
|
+
}
|
|
1265
|
+
return message;
|
|
1266
|
+
},
|
|
1267
|
+
toAmino(message: SimulateResponse): SimulateResponseAmino {
|
|
1268
|
+
const obj: any = {};
|
|
1269
|
+
obj.gas_info = message.gasInfo ? GasInfo.toAmino(message.gasInfo) : undefined;
|
|
1270
|
+
obj.result = message.result ? Result.toAmino(message.result) : undefined;
|
|
1271
|
+
return obj;
|
|
1272
|
+
},
|
|
1273
|
+
fromAminoMsg(object: SimulateResponseAminoMsg): SimulateResponse {
|
|
1274
|
+
return SimulateResponse.fromAmino(object.value);
|
|
1275
|
+
},
|
|
1276
|
+
toAminoMsg(message: SimulateResponse): SimulateResponseAminoMsg {
|
|
1277
|
+
return {
|
|
1278
|
+
type: "cosmos-sdk/SimulateResponse",
|
|
1279
|
+
value: SimulateResponse.toAmino(message)
|
|
1280
|
+
};
|
|
1281
|
+
},
|
|
1282
|
+
fromProtoMsg(message: SimulateResponseProtoMsg): SimulateResponse {
|
|
1283
|
+
return SimulateResponse.decode(message.value);
|
|
1284
|
+
},
|
|
1285
|
+
toProto(message: SimulateResponse): Uint8Array {
|
|
1286
|
+
return SimulateResponse.encode(message).finish();
|
|
1287
|
+
},
|
|
1288
|
+
toProtoMsg(message: SimulateResponse): SimulateResponseProtoMsg {
|
|
1289
|
+
return {
|
|
1290
|
+
typeUrl: "/cosmos.tx.v1beta1.SimulateResponse",
|
|
1291
|
+
value: SimulateResponse.encode(message).finish()
|
|
1292
|
+
};
|
|
1293
|
+
}
|
|
1294
|
+
};
|
|
1295
|
+
GlobalDecoderRegistry.register(SimulateResponse.typeUrl, SimulateResponse);
|
|
1296
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(SimulateResponse.aminoType, SimulateResponse.typeUrl);
|
|
1297
|
+
function createBaseGetTxRequest(): GetTxRequest {
|
|
1298
|
+
return {
|
|
1299
|
+
hash: ""
|
|
1300
|
+
};
|
|
1301
|
+
}
|
|
1302
|
+
export const GetTxRequest = {
|
|
1303
|
+
typeUrl: "/cosmos.tx.v1beta1.GetTxRequest",
|
|
1304
|
+
aminoType: "cosmos-sdk/GetTxRequest",
|
|
1305
|
+
is(o: any): o is GetTxRequest {
|
|
1306
|
+
return o && (o.$typeUrl === GetTxRequest.typeUrl || typeof o.hash === "string");
|
|
1307
|
+
},
|
|
1308
|
+
isAmino(o: any): o is GetTxRequestAmino {
|
|
1309
|
+
return o && (o.$typeUrl === GetTxRequest.typeUrl || typeof o.hash === "string");
|
|
1310
|
+
},
|
|
1311
|
+
encode(message: GetTxRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1312
|
+
if (message.hash !== "") {
|
|
1313
|
+
writer.uint32(10).string(message.hash);
|
|
1314
|
+
}
|
|
1315
|
+
return writer;
|
|
1316
|
+
},
|
|
1317
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetTxRequest {
|
|
1318
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1319
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1320
|
+
const message = createBaseGetTxRequest();
|
|
1321
|
+
while (reader.pos < end) {
|
|
1322
|
+
const tag = reader.uint32();
|
|
1323
|
+
switch (tag >>> 3) {
|
|
1324
|
+
case 1:
|
|
1325
|
+
message.hash = reader.string();
|
|
1326
|
+
break;
|
|
1327
|
+
default:
|
|
1328
|
+
reader.skipType(tag & 7);
|
|
1329
|
+
break;
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
return message;
|
|
1333
|
+
},
|
|
1334
|
+
fromPartial(object: DeepPartial<GetTxRequest>): GetTxRequest {
|
|
1335
|
+
const message = createBaseGetTxRequest();
|
|
1336
|
+
message.hash = object.hash ?? "";
|
|
1337
|
+
return message;
|
|
1338
|
+
},
|
|
1339
|
+
fromAmino(object: GetTxRequestAmino): GetTxRequest {
|
|
1340
|
+
const message = createBaseGetTxRequest();
|
|
1341
|
+
if (object.hash !== undefined && object.hash !== null) {
|
|
1342
|
+
message.hash = object.hash;
|
|
1343
|
+
}
|
|
1344
|
+
return message;
|
|
1345
|
+
},
|
|
1346
|
+
toAmino(message: GetTxRequest): GetTxRequestAmino {
|
|
1347
|
+
const obj: any = {};
|
|
1348
|
+
obj.hash = message.hash === "" ? undefined : message.hash;
|
|
1349
|
+
return obj;
|
|
1350
|
+
},
|
|
1351
|
+
fromAminoMsg(object: GetTxRequestAminoMsg): GetTxRequest {
|
|
1352
|
+
return GetTxRequest.fromAmino(object.value);
|
|
1353
|
+
},
|
|
1354
|
+
toAminoMsg(message: GetTxRequest): GetTxRequestAminoMsg {
|
|
1355
|
+
return {
|
|
1356
|
+
type: "cosmos-sdk/GetTxRequest",
|
|
1357
|
+
value: GetTxRequest.toAmino(message)
|
|
1358
|
+
};
|
|
1359
|
+
},
|
|
1360
|
+
fromProtoMsg(message: GetTxRequestProtoMsg): GetTxRequest {
|
|
1361
|
+
return GetTxRequest.decode(message.value);
|
|
1362
|
+
},
|
|
1363
|
+
toProto(message: GetTxRequest): Uint8Array {
|
|
1364
|
+
return GetTxRequest.encode(message).finish();
|
|
1365
|
+
},
|
|
1366
|
+
toProtoMsg(message: GetTxRequest): GetTxRequestProtoMsg {
|
|
1367
|
+
return {
|
|
1368
|
+
typeUrl: "/cosmos.tx.v1beta1.GetTxRequest",
|
|
1369
|
+
value: GetTxRequest.encode(message).finish()
|
|
1370
|
+
};
|
|
1371
|
+
}
|
|
1372
|
+
};
|
|
1373
|
+
GlobalDecoderRegistry.register(GetTxRequest.typeUrl, GetTxRequest);
|
|
1374
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(GetTxRequest.aminoType, GetTxRequest.typeUrl);
|
|
1375
|
+
function createBaseGetTxResponse(): GetTxResponse {
|
|
1376
|
+
return {
|
|
1377
|
+
tx: undefined,
|
|
1378
|
+
txResponse: undefined
|
|
1379
|
+
};
|
|
1380
|
+
}
|
|
1381
|
+
export const GetTxResponse = {
|
|
1382
|
+
typeUrl: "/cosmos.tx.v1beta1.GetTxResponse",
|
|
1383
|
+
aminoType: "cosmos-sdk/GetTxResponse",
|
|
1384
|
+
is(o: any): o is GetTxResponse {
|
|
1385
|
+
return o && o.$typeUrl === GetTxResponse.typeUrl;
|
|
1386
|
+
},
|
|
1387
|
+
isAmino(o: any): o is GetTxResponseAmino {
|
|
1388
|
+
return o && o.$typeUrl === GetTxResponse.typeUrl;
|
|
1389
|
+
},
|
|
1390
|
+
encode(message: GetTxResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1391
|
+
if (message.tx !== undefined) {
|
|
1392
|
+
Tx.encode(message.tx, writer.uint32(10).fork()).ldelim();
|
|
1393
|
+
}
|
|
1394
|
+
if (message.txResponse !== undefined) {
|
|
1395
|
+
TxResponse.encode(message.txResponse, writer.uint32(18).fork()).ldelim();
|
|
1396
|
+
}
|
|
1397
|
+
return writer;
|
|
1398
|
+
},
|
|
1399
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetTxResponse {
|
|
1400
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1401
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1402
|
+
const message = createBaseGetTxResponse();
|
|
1403
|
+
while (reader.pos < end) {
|
|
1404
|
+
const tag = reader.uint32();
|
|
1405
|
+
switch (tag >>> 3) {
|
|
1406
|
+
case 1:
|
|
1407
|
+
message.tx = Tx.decode(reader, reader.uint32());
|
|
1408
|
+
break;
|
|
1409
|
+
case 2:
|
|
1410
|
+
message.txResponse = TxResponse.decode(reader, reader.uint32());
|
|
1411
|
+
break;
|
|
1412
|
+
default:
|
|
1413
|
+
reader.skipType(tag & 7);
|
|
1414
|
+
break;
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
return message;
|
|
1418
|
+
},
|
|
1419
|
+
fromPartial(object: DeepPartial<GetTxResponse>): GetTxResponse {
|
|
1420
|
+
const message = createBaseGetTxResponse();
|
|
1421
|
+
message.tx = object.tx !== undefined && object.tx !== null ? Tx.fromPartial(object.tx) : undefined;
|
|
1422
|
+
message.txResponse = object.txResponse !== undefined && object.txResponse !== null ? TxResponse.fromPartial(object.txResponse) : undefined;
|
|
1423
|
+
return message;
|
|
1424
|
+
},
|
|
1425
|
+
fromAmino(object: GetTxResponseAmino): GetTxResponse {
|
|
1426
|
+
const message = createBaseGetTxResponse();
|
|
1427
|
+
if (object.tx !== undefined && object.tx !== null) {
|
|
1428
|
+
message.tx = Tx.fromAmino(object.tx);
|
|
1429
|
+
}
|
|
1430
|
+
if (object.tx_response !== undefined && object.tx_response !== null) {
|
|
1431
|
+
message.txResponse = TxResponse.fromAmino(object.tx_response);
|
|
1432
|
+
}
|
|
1433
|
+
return message;
|
|
1434
|
+
},
|
|
1435
|
+
toAmino(message: GetTxResponse): GetTxResponseAmino {
|
|
1436
|
+
const obj: any = {};
|
|
1437
|
+
obj.tx = message.tx ? Tx.toAmino(message.tx) : undefined;
|
|
1438
|
+
obj.tx_response = message.txResponse ? TxResponse.toAmino(message.txResponse) : undefined;
|
|
1439
|
+
return obj;
|
|
1440
|
+
},
|
|
1441
|
+
fromAminoMsg(object: GetTxResponseAminoMsg): GetTxResponse {
|
|
1442
|
+
return GetTxResponse.fromAmino(object.value);
|
|
1443
|
+
},
|
|
1444
|
+
toAminoMsg(message: GetTxResponse): GetTxResponseAminoMsg {
|
|
1445
|
+
return {
|
|
1446
|
+
type: "cosmos-sdk/GetTxResponse",
|
|
1447
|
+
value: GetTxResponse.toAmino(message)
|
|
1448
|
+
};
|
|
1449
|
+
},
|
|
1450
|
+
fromProtoMsg(message: GetTxResponseProtoMsg): GetTxResponse {
|
|
1451
|
+
return GetTxResponse.decode(message.value);
|
|
1452
|
+
},
|
|
1453
|
+
toProto(message: GetTxResponse): Uint8Array {
|
|
1454
|
+
return GetTxResponse.encode(message).finish();
|
|
1455
|
+
},
|
|
1456
|
+
toProtoMsg(message: GetTxResponse): GetTxResponseProtoMsg {
|
|
1457
|
+
return {
|
|
1458
|
+
typeUrl: "/cosmos.tx.v1beta1.GetTxResponse",
|
|
1459
|
+
value: GetTxResponse.encode(message).finish()
|
|
1460
|
+
};
|
|
1461
|
+
}
|
|
1462
|
+
};
|
|
1463
|
+
GlobalDecoderRegistry.register(GetTxResponse.typeUrl, GetTxResponse);
|
|
1464
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(GetTxResponse.aminoType, GetTxResponse.typeUrl);
|
|
1465
|
+
function createBaseGetBlockWithTxsRequest(): GetBlockWithTxsRequest {
|
|
1466
|
+
return {
|
|
1467
|
+
height: BigInt(0),
|
|
1468
|
+
pagination: undefined
|
|
1469
|
+
};
|
|
1470
|
+
}
|
|
1471
|
+
export const GetBlockWithTxsRequest = {
|
|
1472
|
+
typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest",
|
|
1473
|
+
aminoType: "cosmos-sdk/GetBlockWithTxsRequest",
|
|
1474
|
+
is(o: any): o is GetBlockWithTxsRequest {
|
|
1475
|
+
return o && (o.$typeUrl === GetBlockWithTxsRequest.typeUrl || typeof o.height === "bigint");
|
|
1476
|
+
},
|
|
1477
|
+
isAmino(o: any): o is GetBlockWithTxsRequestAmino {
|
|
1478
|
+
return o && (o.$typeUrl === GetBlockWithTxsRequest.typeUrl || typeof o.height === "bigint");
|
|
1479
|
+
},
|
|
1480
|
+
encode(message: GetBlockWithTxsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1481
|
+
if (message.height !== BigInt(0)) {
|
|
1482
|
+
writer.uint32(8).int64(message.height);
|
|
1483
|
+
}
|
|
1484
|
+
if (message.pagination !== undefined) {
|
|
1485
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1486
|
+
}
|
|
1487
|
+
return writer;
|
|
1488
|
+
},
|
|
1489
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetBlockWithTxsRequest {
|
|
1490
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1491
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1492
|
+
const message = createBaseGetBlockWithTxsRequest();
|
|
1493
|
+
while (reader.pos < end) {
|
|
1494
|
+
const tag = reader.uint32();
|
|
1495
|
+
switch (tag >>> 3) {
|
|
1496
|
+
case 1:
|
|
1497
|
+
message.height = reader.int64();
|
|
1498
|
+
break;
|
|
1499
|
+
case 2:
|
|
1500
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1501
|
+
break;
|
|
1502
|
+
default:
|
|
1503
|
+
reader.skipType(tag & 7);
|
|
1504
|
+
break;
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
return message;
|
|
1508
|
+
},
|
|
1509
|
+
fromPartial(object: DeepPartial<GetBlockWithTxsRequest>): GetBlockWithTxsRequest {
|
|
1510
|
+
const message = createBaseGetBlockWithTxsRequest();
|
|
1511
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
1512
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
1513
|
+
return message;
|
|
1514
|
+
},
|
|
1515
|
+
fromAmino(object: GetBlockWithTxsRequestAmino): GetBlockWithTxsRequest {
|
|
1516
|
+
const message = createBaseGetBlockWithTxsRequest();
|
|
1517
|
+
if (object.height !== undefined && object.height !== null) {
|
|
1518
|
+
message.height = BigInt(object.height);
|
|
1519
|
+
}
|
|
1520
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1521
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
1522
|
+
}
|
|
1523
|
+
return message;
|
|
1524
|
+
},
|
|
1525
|
+
toAmino(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestAmino {
|
|
1526
|
+
const obj: any = {};
|
|
1527
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
1528
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
1529
|
+
return obj;
|
|
1530
|
+
},
|
|
1531
|
+
fromAminoMsg(object: GetBlockWithTxsRequestAminoMsg): GetBlockWithTxsRequest {
|
|
1532
|
+
return GetBlockWithTxsRequest.fromAmino(object.value);
|
|
1533
|
+
},
|
|
1534
|
+
toAminoMsg(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestAminoMsg {
|
|
1535
|
+
return {
|
|
1536
|
+
type: "cosmos-sdk/GetBlockWithTxsRequest",
|
|
1537
|
+
value: GetBlockWithTxsRequest.toAmino(message)
|
|
1538
|
+
};
|
|
1539
|
+
},
|
|
1540
|
+
fromProtoMsg(message: GetBlockWithTxsRequestProtoMsg): GetBlockWithTxsRequest {
|
|
1541
|
+
return GetBlockWithTxsRequest.decode(message.value);
|
|
1542
|
+
},
|
|
1543
|
+
toProto(message: GetBlockWithTxsRequest): Uint8Array {
|
|
1544
|
+
return GetBlockWithTxsRequest.encode(message).finish();
|
|
1545
|
+
},
|
|
1546
|
+
toProtoMsg(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestProtoMsg {
|
|
1547
|
+
return {
|
|
1548
|
+
typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest",
|
|
1549
|
+
value: GetBlockWithTxsRequest.encode(message).finish()
|
|
1550
|
+
};
|
|
1551
|
+
}
|
|
1552
|
+
};
|
|
1553
|
+
GlobalDecoderRegistry.register(GetBlockWithTxsRequest.typeUrl, GetBlockWithTxsRequest);
|
|
1554
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(GetBlockWithTxsRequest.aminoType, GetBlockWithTxsRequest.typeUrl);
|
|
1555
|
+
function createBaseGetBlockWithTxsResponse(): GetBlockWithTxsResponse {
|
|
1556
|
+
return {
|
|
1557
|
+
txs: [],
|
|
1558
|
+
blockId: undefined,
|
|
1559
|
+
block: undefined,
|
|
1560
|
+
pagination: undefined
|
|
1561
|
+
};
|
|
1562
|
+
}
|
|
1563
|
+
export const GetBlockWithTxsResponse = {
|
|
1564
|
+
typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse",
|
|
1565
|
+
aminoType: "cosmos-sdk/GetBlockWithTxsResponse",
|
|
1566
|
+
is(o: any): o is GetBlockWithTxsResponse {
|
|
1567
|
+
return o && (o.$typeUrl === GetBlockWithTxsResponse.typeUrl || Array.isArray(o.txs) && (!o.txs.length || Tx.is(o.txs[0])));
|
|
1568
|
+
},
|
|
1569
|
+
isAmino(o: any): o is GetBlockWithTxsResponseAmino {
|
|
1570
|
+
return o && (o.$typeUrl === GetBlockWithTxsResponse.typeUrl || Array.isArray(o.txs) && (!o.txs.length || Tx.isAmino(o.txs[0])));
|
|
1571
|
+
},
|
|
1572
|
+
encode(message: GetBlockWithTxsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1573
|
+
for (const v of message.txs) {
|
|
1574
|
+
Tx.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1575
|
+
}
|
|
1576
|
+
if (message.blockId !== undefined) {
|
|
1577
|
+
BlockID.encode(message.blockId, writer.uint32(18).fork()).ldelim();
|
|
1578
|
+
}
|
|
1579
|
+
if (message.block !== undefined) {
|
|
1580
|
+
Block.encode(message.block, writer.uint32(26).fork()).ldelim();
|
|
1581
|
+
}
|
|
1582
|
+
if (message.pagination !== undefined) {
|
|
1583
|
+
PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim();
|
|
1584
|
+
}
|
|
1585
|
+
return writer;
|
|
1586
|
+
},
|
|
1587
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetBlockWithTxsResponse {
|
|
1588
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1589
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1590
|
+
const message = createBaseGetBlockWithTxsResponse();
|
|
1591
|
+
while (reader.pos < end) {
|
|
1592
|
+
const tag = reader.uint32();
|
|
1593
|
+
switch (tag >>> 3) {
|
|
1594
|
+
case 1:
|
|
1595
|
+
message.txs.push(Tx.decode(reader, reader.uint32()));
|
|
1596
|
+
break;
|
|
1597
|
+
case 2:
|
|
1598
|
+
message.blockId = BlockID.decode(reader, reader.uint32());
|
|
1599
|
+
break;
|
|
1600
|
+
case 3:
|
|
1601
|
+
message.block = Block.decode(reader, reader.uint32());
|
|
1602
|
+
break;
|
|
1603
|
+
case 4:
|
|
1604
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1605
|
+
break;
|
|
1606
|
+
default:
|
|
1607
|
+
reader.skipType(tag & 7);
|
|
1608
|
+
break;
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
return message;
|
|
1612
|
+
},
|
|
1613
|
+
fromPartial(object: DeepPartial<GetBlockWithTxsResponse>): GetBlockWithTxsResponse {
|
|
1614
|
+
const message = createBaseGetBlockWithTxsResponse();
|
|
1615
|
+
message.txs = object.txs?.map(e => Tx.fromPartial(e)) || [];
|
|
1616
|
+
message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined;
|
|
1617
|
+
message.block = object.block !== undefined && object.block !== null ? Block.fromPartial(object.block) : undefined;
|
|
1618
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
1619
|
+
return message;
|
|
1620
|
+
},
|
|
1621
|
+
fromAmino(object: GetBlockWithTxsResponseAmino): GetBlockWithTxsResponse {
|
|
1622
|
+
const message = createBaseGetBlockWithTxsResponse();
|
|
1623
|
+
message.txs = object.txs?.map(e => Tx.fromAmino(e)) || [];
|
|
1624
|
+
if (object.block_id !== undefined && object.block_id !== null) {
|
|
1625
|
+
message.blockId = BlockID.fromAmino(object.block_id);
|
|
1626
|
+
}
|
|
1627
|
+
if (object.block !== undefined && object.block !== null) {
|
|
1628
|
+
message.block = Block.fromAmino(object.block);
|
|
1629
|
+
}
|
|
1630
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1631
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
1632
|
+
}
|
|
1633
|
+
return message;
|
|
1634
|
+
},
|
|
1635
|
+
toAmino(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseAmino {
|
|
1636
|
+
const obj: any = {};
|
|
1637
|
+
if (message.txs) {
|
|
1638
|
+
obj.txs = message.txs.map(e => e ? Tx.toAmino(e) : undefined);
|
|
1639
|
+
} else {
|
|
1640
|
+
obj.txs = message.txs;
|
|
1641
|
+
}
|
|
1642
|
+
obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined;
|
|
1643
|
+
obj.block = message.block ? Block.toAmino(message.block) : undefined;
|
|
1644
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
1645
|
+
return obj;
|
|
1646
|
+
},
|
|
1647
|
+
fromAminoMsg(object: GetBlockWithTxsResponseAminoMsg): GetBlockWithTxsResponse {
|
|
1648
|
+
return GetBlockWithTxsResponse.fromAmino(object.value);
|
|
1649
|
+
},
|
|
1650
|
+
toAminoMsg(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseAminoMsg {
|
|
1651
|
+
return {
|
|
1652
|
+
type: "cosmos-sdk/GetBlockWithTxsResponse",
|
|
1653
|
+
value: GetBlockWithTxsResponse.toAmino(message)
|
|
1654
|
+
};
|
|
1655
|
+
},
|
|
1656
|
+
fromProtoMsg(message: GetBlockWithTxsResponseProtoMsg): GetBlockWithTxsResponse {
|
|
1657
|
+
return GetBlockWithTxsResponse.decode(message.value);
|
|
1658
|
+
},
|
|
1659
|
+
toProto(message: GetBlockWithTxsResponse): Uint8Array {
|
|
1660
|
+
return GetBlockWithTxsResponse.encode(message).finish();
|
|
1661
|
+
},
|
|
1662
|
+
toProtoMsg(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseProtoMsg {
|
|
1663
|
+
return {
|
|
1664
|
+
typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse",
|
|
1665
|
+
value: GetBlockWithTxsResponse.encode(message).finish()
|
|
1666
|
+
};
|
|
1667
|
+
}
|
|
1668
|
+
};
|
|
1669
|
+
GlobalDecoderRegistry.register(GetBlockWithTxsResponse.typeUrl, GetBlockWithTxsResponse);
|
|
1670
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(GetBlockWithTxsResponse.aminoType, GetBlockWithTxsResponse.typeUrl);
|
|
1671
|
+
function createBaseTxDecodeRequest(): TxDecodeRequest {
|
|
1672
|
+
return {
|
|
1673
|
+
txBytes: new Uint8Array()
|
|
1674
|
+
};
|
|
1675
|
+
}
|
|
1676
|
+
export const TxDecodeRequest = {
|
|
1677
|
+
typeUrl: "/cosmos.tx.v1beta1.TxDecodeRequest",
|
|
1678
|
+
aminoType: "cosmos-sdk/TxDecodeRequest",
|
|
1679
|
+
is(o: any): o is TxDecodeRequest {
|
|
1680
|
+
return o && (o.$typeUrl === TxDecodeRequest.typeUrl || o.txBytes instanceof Uint8Array || typeof o.txBytes === "string");
|
|
1681
|
+
},
|
|
1682
|
+
isAmino(o: any): o is TxDecodeRequestAmino {
|
|
1683
|
+
return o && (o.$typeUrl === TxDecodeRequest.typeUrl || o.tx_bytes instanceof Uint8Array || typeof o.tx_bytes === "string");
|
|
1684
|
+
},
|
|
1685
|
+
encode(message: TxDecodeRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1686
|
+
if (message.txBytes.length !== 0) {
|
|
1687
|
+
writer.uint32(10).bytes(message.txBytes);
|
|
1688
|
+
}
|
|
1689
|
+
return writer;
|
|
1690
|
+
},
|
|
1691
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TxDecodeRequest {
|
|
1692
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1693
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1694
|
+
const message = createBaseTxDecodeRequest();
|
|
1695
|
+
while (reader.pos < end) {
|
|
1696
|
+
const tag = reader.uint32();
|
|
1697
|
+
switch (tag >>> 3) {
|
|
1698
|
+
case 1:
|
|
1699
|
+
message.txBytes = reader.bytes();
|
|
1700
|
+
break;
|
|
1701
|
+
default:
|
|
1702
|
+
reader.skipType(tag & 7);
|
|
1703
|
+
break;
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
return message;
|
|
1707
|
+
},
|
|
1708
|
+
fromPartial(object: DeepPartial<TxDecodeRequest>): TxDecodeRequest {
|
|
1709
|
+
const message = createBaseTxDecodeRequest();
|
|
1710
|
+
message.txBytes = object.txBytes ?? new Uint8Array();
|
|
1711
|
+
return message;
|
|
1712
|
+
},
|
|
1713
|
+
fromAmino(object: TxDecodeRequestAmino): TxDecodeRequest {
|
|
1714
|
+
const message = createBaseTxDecodeRequest();
|
|
1715
|
+
if (object.tx_bytes !== undefined && object.tx_bytes !== null) {
|
|
1716
|
+
message.txBytes = bytesFromBase64(object.tx_bytes);
|
|
1717
|
+
}
|
|
1718
|
+
return message;
|
|
1719
|
+
},
|
|
1720
|
+
toAmino(message: TxDecodeRequest): TxDecodeRequestAmino {
|
|
1721
|
+
const obj: any = {};
|
|
1722
|
+
obj.tx_bytes = message.txBytes ? base64FromBytes(message.txBytes) : undefined;
|
|
1723
|
+
return obj;
|
|
1724
|
+
},
|
|
1725
|
+
fromAminoMsg(object: TxDecodeRequestAminoMsg): TxDecodeRequest {
|
|
1726
|
+
return TxDecodeRequest.fromAmino(object.value);
|
|
1727
|
+
},
|
|
1728
|
+
toAminoMsg(message: TxDecodeRequest): TxDecodeRequestAminoMsg {
|
|
1729
|
+
return {
|
|
1730
|
+
type: "cosmos-sdk/TxDecodeRequest",
|
|
1731
|
+
value: TxDecodeRequest.toAmino(message)
|
|
1732
|
+
};
|
|
1733
|
+
},
|
|
1734
|
+
fromProtoMsg(message: TxDecodeRequestProtoMsg): TxDecodeRequest {
|
|
1735
|
+
return TxDecodeRequest.decode(message.value);
|
|
1736
|
+
},
|
|
1737
|
+
toProto(message: TxDecodeRequest): Uint8Array {
|
|
1738
|
+
return TxDecodeRequest.encode(message).finish();
|
|
1739
|
+
},
|
|
1740
|
+
toProtoMsg(message: TxDecodeRequest): TxDecodeRequestProtoMsg {
|
|
1741
|
+
return {
|
|
1742
|
+
typeUrl: "/cosmos.tx.v1beta1.TxDecodeRequest",
|
|
1743
|
+
value: TxDecodeRequest.encode(message).finish()
|
|
1744
|
+
};
|
|
1745
|
+
}
|
|
1746
|
+
};
|
|
1747
|
+
GlobalDecoderRegistry.register(TxDecodeRequest.typeUrl, TxDecodeRequest);
|
|
1748
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(TxDecodeRequest.aminoType, TxDecodeRequest.typeUrl);
|
|
1749
|
+
function createBaseTxDecodeResponse(): TxDecodeResponse {
|
|
1750
|
+
return {
|
|
1751
|
+
tx: undefined
|
|
1752
|
+
};
|
|
1753
|
+
}
|
|
1754
|
+
export const TxDecodeResponse = {
|
|
1755
|
+
typeUrl: "/cosmos.tx.v1beta1.TxDecodeResponse",
|
|
1756
|
+
aminoType: "cosmos-sdk/TxDecodeResponse",
|
|
1757
|
+
is(o: any): o is TxDecodeResponse {
|
|
1758
|
+
return o && o.$typeUrl === TxDecodeResponse.typeUrl;
|
|
1759
|
+
},
|
|
1760
|
+
isAmino(o: any): o is TxDecodeResponseAmino {
|
|
1761
|
+
return o && o.$typeUrl === TxDecodeResponse.typeUrl;
|
|
1762
|
+
},
|
|
1763
|
+
encode(message: TxDecodeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1764
|
+
if (message.tx !== undefined) {
|
|
1765
|
+
Tx.encode(message.tx, writer.uint32(10).fork()).ldelim();
|
|
1766
|
+
}
|
|
1767
|
+
return writer;
|
|
1768
|
+
},
|
|
1769
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TxDecodeResponse {
|
|
1770
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1771
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1772
|
+
const message = createBaseTxDecodeResponse();
|
|
1773
|
+
while (reader.pos < end) {
|
|
1774
|
+
const tag = reader.uint32();
|
|
1775
|
+
switch (tag >>> 3) {
|
|
1776
|
+
case 1:
|
|
1777
|
+
message.tx = Tx.decode(reader, reader.uint32());
|
|
1778
|
+
break;
|
|
1779
|
+
default:
|
|
1780
|
+
reader.skipType(tag & 7);
|
|
1781
|
+
break;
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
return message;
|
|
1785
|
+
},
|
|
1786
|
+
fromPartial(object: DeepPartial<TxDecodeResponse>): TxDecodeResponse {
|
|
1787
|
+
const message = createBaseTxDecodeResponse();
|
|
1788
|
+
message.tx = object.tx !== undefined && object.tx !== null ? Tx.fromPartial(object.tx) : undefined;
|
|
1789
|
+
return message;
|
|
1790
|
+
},
|
|
1791
|
+
fromAmino(object: TxDecodeResponseAmino): TxDecodeResponse {
|
|
1792
|
+
const message = createBaseTxDecodeResponse();
|
|
1793
|
+
if (object.tx !== undefined && object.tx !== null) {
|
|
1794
|
+
message.tx = Tx.fromAmino(object.tx);
|
|
1795
|
+
}
|
|
1796
|
+
return message;
|
|
1797
|
+
},
|
|
1798
|
+
toAmino(message: TxDecodeResponse): TxDecodeResponseAmino {
|
|
1799
|
+
const obj: any = {};
|
|
1800
|
+
obj.tx = message.tx ? Tx.toAmino(message.tx) : undefined;
|
|
1801
|
+
return obj;
|
|
1802
|
+
},
|
|
1803
|
+
fromAminoMsg(object: TxDecodeResponseAminoMsg): TxDecodeResponse {
|
|
1804
|
+
return TxDecodeResponse.fromAmino(object.value);
|
|
1805
|
+
},
|
|
1806
|
+
toAminoMsg(message: TxDecodeResponse): TxDecodeResponseAminoMsg {
|
|
1807
|
+
return {
|
|
1808
|
+
type: "cosmos-sdk/TxDecodeResponse",
|
|
1809
|
+
value: TxDecodeResponse.toAmino(message)
|
|
1810
|
+
};
|
|
1811
|
+
},
|
|
1812
|
+
fromProtoMsg(message: TxDecodeResponseProtoMsg): TxDecodeResponse {
|
|
1813
|
+
return TxDecodeResponse.decode(message.value);
|
|
1814
|
+
},
|
|
1815
|
+
toProto(message: TxDecodeResponse): Uint8Array {
|
|
1816
|
+
return TxDecodeResponse.encode(message).finish();
|
|
1817
|
+
},
|
|
1818
|
+
toProtoMsg(message: TxDecodeResponse): TxDecodeResponseProtoMsg {
|
|
1819
|
+
return {
|
|
1820
|
+
typeUrl: "/cosmos.tx.v1beta1.TxDecodeResponse",
|
|
1821
|
+
value: TxDecodeResponse.encode(message).finish()
|
|
1822
|
+
};
|
|
1823
|
+
}
|
|
1824
|
+
};
|
|
1825
|
+
GlobalDecoderRegistry.register(TxDecodeResponse.typeUrl, TxDecodeResponse);
|
|
1826
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(TxDecodeResponse.aminoType, TxDecodeResponse.typeUrl);
|
|
1827
|
+
function createBaseTxEncodeRequest(): TxEncodeRequest {
|
|
1828
|
+
return {
|
|
1829
|
+
tx: undefined
|
|
1830
|
+
};
|
|
1831
|
+
}
|
|
1832
|
+
export const TxEncodeRequest = {
|
|
1833
|
+
typeUrl: "/cosmos.tx.v1beta1.TxEncodeRequest",
|
|
1834
|
+
aminoType: "cosmos-sdk/TxEncodeRequest",
|
|
1835
|
+
is(o: any): o is TxEncodeRequest {
|
|
1836
|
+
return o && o.$typeUrl === TxEncodeRequest.typeUrl;
|
|
1837
|
+
},
|
|
1838
|
+
isAmino(o: any): o is TxEncodeRequestAmino {
|
|
1839
|
+
return o && o.$typeUrl === TxEncodeRequest.typeUrl;
|
|
1840
|
+
},
|
|
1841
|
+
encode(message: TxEncodeRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1842
|
+
if (message.tx !== undefined) {
|
|
1843
|
+
Tx.encode(message.tx, writer.uint32(10).fork()).ldelim();
|
|
1844
|
+
}
|
|
1845
|
+
return writer;
|
|
1846
|
+
},
|
|
1847
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TxEncodeRequest {
|
|
1848
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1849
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1850
|
+
const message = createBaseTxEncodeRequest();
|
|
1851
|
+
while (reader.pos < end) {
|
|
1852
|
+
const tag = reader.uint32();
|
|
1853
|
+
switch (tag >>> 3) {
|
|
1854
|
+
case 1:
|
|
1855
|
+
message.tx = Tx.decode(reader, reader.uint32());
|
|
1856
|
+
break;
|
|
1857
|
+
default:
|
|
1858
|
+
reader.skipType(tag & 7);
|
|
1859
|
+
break;
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
return message;
|
|
1863
|
+
},
|
|
1864
|
+
fromPartial(object: DeepPartial<TxEncodeRequest>): TxEncodeRequest {
|
|
1865
|
+
const message = createBaseTxEncodeRequest();
|
|
1866
|
+
message.tx = object.tx !== undefined && object.tx !== null ? Tx.fromPartial(object.tx) : undefined;
|
|
1867
|
+
return message;
|
|
1868
|
+
},
|
|
1869
|
+
fromAmino(object: TxEncodeRequestAmino): TxEncodeRequest {
|
|
1870
|
+
const message = createBaseTxEncodeRequest();
|
|
1871
|
+
if (object.tx !== undefined && object.tx !== null) {
|
|
1872
|
+
message.tx = Tx.fromAmino(object.tx);
|
|
1873
|
+
}
|
|
1874
|
+
return message;
|
|
1875
|
+
},
|
|
1876
|
+
toAmino(message: TxEncodeRequest): TxEncodeRequestAmino {
|
|
1877
|
+
const obj: any = {};
|
|
1878
|
+
obj.tx = message.tx ? Tx.toAmino(message.tx) : undefined;
|
|
1879
|
+
return obj;
|
|
1880
|
+
},
|
|
1881
|
+
fromAminoMsg(object: TxEncodeRequestAminoMsg): TxEncodeRequest {
|
|
1882
|
+
return TxEncodeRequest.fromAmino(object.value);
|
|
1883
|
+
},
|
|
1884
|
+
toAminoMsg(message: TxEncodeRequest): TxEncodeRequestAminoMsg {
|
|
1885
|
+
return {
|
|
1886
|
+
type: "cosmos-sdk/TxEncodeRequest",
|
|
1887
|
+
value: TxEncodeRequest.toAmino(message)
|
|
1888
|
+
};
|
|
1889
|
+
},
|
|
1890
|
+
fromProtoMsg(message: TxEncodeRequestProtoMsg): TxEncodeRequest {
|
|
1891
|
+
return TxEncodeRequest.decode(message.value);
|
|
1892
|
+
},
|
|
1893
|
+
toProto(message: TxEncodeRequest): Uint8Array {
|
|
1894
|
+
return TxEncodeRequest.encode(message).finish();
|
|
1895
|
+
},
|
|
1896
|
+
toProtoMsg(message: TxEncodeRequest): TxEncodeRequestProtoMsg {
|
|
1897
|
+
return {
|
|
1898
|
+
typeUrl: "/cosmos.tx.v1beta1.TxEncodeRequest",
|
|
1899
|
+
value: TxEncodeRequest.encode(message).finish()
|
|
1900
|
+
};
|
|
1901
|
+
}
|
|
1902
|
+
};
|
|
1903
|
+
GlobalDecoderRegistry.register(TxEncodeRequest.typeUrl, TxEncodeRequest);
|
|
1904
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(TxEncodeRequest.aminoType, TxEncodeRequest.typeUrl);
|
|
1905
|
+
function createBaseTxEncodeResponse(): TxEncodeResponse {
|
|
1906
|
+
return {
|
|
1907
|
+
txBytes: new Uint8Array()
|
|
1908
|
+
};
|
|
1909
|
+
}
|
|
1910
|
+
export const TxEncodeResponse = {
|
|
1911
|
+
typeUrl: "/cosmos.tx.v1beta1.TxEncodeResponse",
|
|
1912
|
+
aminoType: "cosmos-sdk/TxEncodeResponse",
|
|
1913
|
+
is(o: any): o is TxEncodeResponse {
|
|
1914
|
+
return o && (o.$typeUrl === TxEncodeResponse.typeUrl || o.txBytes instanceof Uint8Array || typeof o.txBytes === "string");
|
|
1915
|
+
},
|
|
1916
|
+
isAmino(o: any): o is TxEncodeResponseAmino {
|
|
1917
|
+
return o && (o.$typeUrl === TxEncodeResponse.typeUrl || o.tx_bytes instanceof Uint8Array || typeof o.tx_bytes === "string");
|
|
1918
|
+
},
|
|
1919
|
+
encode(message: TxEncodeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1920
|
+
if (message.txBytes.length !== 0) {
|
|
1921
|
+
writer.uint32(10).bytes(message.txBytes);
|
|
1922
|
+
}
|
|
1923
|
+
return writer;
|
|
1924
|
+
},
|
|
1925
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TxEncodeResponse {
|
|
1926
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1927
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1928
|
+
const message = createBaseTxEncodeResponse();
|
|
1929
|
+
while (reader.pos < end) {
|
|
1930
|
+
const tag = reader.uint32();
|
|
1931
|
+
switch (tag >>> 3) {
|
|
1932
|
+
case 1:
|
|
1933
|
+
message.txBytes = reader.bytes();
|
|
1934
|
+
break;
|
|
1935
|
+
default:
|
|
1936
|
+
reader.skipType(tag & 7);
|
|
1937
|
+
break;
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
return message;
|
|
1941
|
+
},
|
|
1942
|
+
fromPartial(object: DeepPartial<TxEncodeResponse>): TxEncodeResponse {
|
|
1943
|
+
const message = createBaseTxEncodeResponse();
|
|
1944
|
+
message.txBytes = object.txBytes ?? new Uint8Array();
|
|
1945
|
+
return message;
|
|
1946
|
+
},
|
|
1947
|
+
fromAmino(object: TxEncodeResponseAmino): TxEncodeResponse {
|
|
1948
|
+
const message = createBaseTxEncodeResponse();
|
|
1949
|
+
if (object.tx_bytes !== undefined && object.tx_bytes !== null) {
|
|
1950
|
+
message.txBytes = bytesFromBase64(object.tx_bytes);
|
|
1951
|
+
}
|
|
1952
|
+
return message;
|
|
1953
|
+
},
|
|
1954
|
+
toAmino(message: TxEncodeResponse): TxEncodeResponseAmino {
|
|
1955
|
+
const obj: any = {};
|
|
1956
|
+
obj.tx_bytes = message.txBytes ? base64FromBytes(message.txBytes) : undefined;
|
|
1957
|
+
return obj;
|
|
1958
|
+
},
|
|
1959
|
+
fromAminoMsg(object: TxEncodeResponseAminoMsg): TxEncodeResponse {
|
|
1960
|
+
return TxEncodeResponse.fromAmino(object.value);
|
|
1961
|
+
},
|
|
1962
|
+
toAminoMsg(message: TxEncodeResponse): TxEncodeResponseAminoMsg {
|
|
1963
|
+
return {
|
|
1964
|
+
type: "cosmos-sdk/TxEncodeResponse",
|
|
1965
|
+
value: TxEncodeResponse.toAmino(message)
|
|
1966
|
+
};
|
|
1967
|
+
},
|
|
1968
|
+
fromProtoMsg(message: TxEncodeResponseProtoMsg): TxEncodeResponse {
|
|
1969
|
+
return TxEncodeResponse.decode(message.value);
|
|
1970
|
+
},
|
|
1971
|
+
toProto(message: TxEncodeResponse): Uint8Array {
|
|
1972
|
+
return TxEncodeResponse.encode(message).finish();
|
|
1973
|
+
},
|
|
1974
|
+
toProtoMsg(message: TxEncodeResponse): TxEncodeResponseProtoMsg {
|
|
1975
|
+
return {
|
|
1976
|
+
typeUrl: "/cosmos.tx.v1beta1.TxEncodeResponse",
|
|
1977
|
+
value: TxEncodeResponse.encode(message).finish()
|
|
1978
|
+
};
|
|
1979
|
+
}
|
|
1980
|
+
};
|
|
1981
|
+
GlobalDecoderRegistry.register(TxEncodeResponse.typeUrl, TxEncodeResponse);
|
|
1982
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(TxEncodeResponse.aminoType, TxEncodeResponse.typeUrl);
|
|
1983
|
+
function createBaseTxEncodeAminoRequest(): TxEncodeAminoRequest {
|
|
1984
|
+
return {
|
|
1985
|
+
aminoJson: ""
|
|
1986
|
+
};
|
|
1987
|
+
}
|
|
1988
|
+
export const TxEncodeAminoRequest = {
|
|
1989
|
+
typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoRequest",
|
|
1990
|
+
aminoType: "cosmos-sdk/TxEncodeAminoRequest",
|
|
1991
|
+
is(o: any): o is TxEncodeAminoRequest {
|
|
1992
|
+
return o && (o.$typeUrl === TxEncodeAminoRequest.typeUrl || typeof o.aminoJson === "string");
|
|
1993
|
+
},
|
|
1994
|
+
isAmino(o: any): o is TxEncodeAminoRequestAmino {
|
|
1995
|
+
return o && (o.$typeUrl === TxEncodeAminoRequest.typeUrl || typeof o.amino_json === "string");
|
|
1996
|
+
},
|
|
1997
|
+
encode(message: TxEncodeAminoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1998
|
+
if (message.aminoJson !== "") {
|
|
1999
|
+
writer.uint32(10).string(message.aminoJson);
|
|
2000
|
+
}
|
|
2001
|
+
return writer;
|
|
2002
|
+
},
|
|
2003
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TxEncodeAminoRequest {
|
|
2004
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2005
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2006
|
+
const message = createBaseTxEncodeAminoRequest();
|
|
2007
|
+
while (reader.pos < end) {
|
|
2008
|
+
const tag = reader.uint32();
|
|
2009
|
+
switch (tag >>> 3) {
|
|
2010
|
+
case 1:
|
|
2011
|
+
message.aminoJson = reader.string();
|
|
2012
|
+
break;
|
|
2013
|
+
default:
|
|
2014
|
+
reader.skipType(tag & 7);
|
|
2015
|
+
break;
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
return message;
|
|
2019
|
+
},
|
|
2020
|
+
fromPartial(object: DeepPartial<TxEncodeAminoRequest>): TxEncodeAminoRequest {
|
|
2021
|
+
const message = createBaseTxEncodeAminoRequest();
|
|
2022
|
+
message.aminoJson = object.aminoJson ?? "";
|
|
2023
|
+
return message;
|
|
2024
|
+
},
|
|
2025
|
+
fromAmino(object: TxEncodeAminoRequestAmino): TxEncodeAminoRequest {
|
|
2026
|
+
const message = createBaseTxEncodeAminoRequest();
|
|
2027
|
+
if (object.amino_json !== undefined && object.amino_json !== null) {
|
|
2028
|
+
message.aminoJson = object.amino_json;
|
|
2029
|
+
}
|
|
2030
|
+
return message;
|
|
2031
|
+
},
|
|
2032
|
+
toAmino(message: TxEncodeAminoRequest): TxEncodeAminoRequestAmino {
|
|
2033
|
+
const obj: any = {};
|
|
2034
|
+
obj.amino_json = message.aminoJson === "" ? undefined : message.aminoJson;
|
|
2035
|
+
return obj;
|
|
2036
|
+
},
|
|
2037
|
+
fromAminoMsg(object: TxEncodeAminoRequestAminoMsg): TxEncodeAminoRequest {
|
|
2038
|
+
return TxEncodeAminoRequest.fromAmino(object.value);
|
|
2039
|
+
},
|
|
2040
|
+
toAminoMsg(message: TxEncodeAminoRequest): TxEncodeAminoRequestAminoMsg {
|
|
2041
|
+
return {
|
|
2042
|
+
type: "cosmos-sdk/TxEncodeAminoRequest",
|
|
2043
|
+
value: TxEncodeAminoRequest.toAmino(message)
|
|
2044
|
+
};
|
|
2045
|
+
},
|
|
2046
|
+
fromProtoMsg(message: TxEncodeAminoRequestProtoMsg): TxEncodeAminoRequest {
|
|
2047
|
+
return TxEncodeAminoRequest.decode(message.value);
|
|
2048
|
+
},
|
|
2049
|
+
toProto(message: TxEncodeAminoRequest): Uint8Array {
|
|
2050
|
+
return TxEncodeAminoRequest.encode(message).finish();
|
|
2051
|
+
},
|
|
2052
|
+
toProtoMsg(message: TxEncodeAminoRequest): TxEncodeAminoRequestProtoMsg {
|
|
2053
|
+
return {
|
|
2054
|
+
typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoRequest",
|
|
2055
|
+
value: TxEncodeAminoRequest.encode(message).finish()
|
|
2056
|
+
};
|
|
2057
|
+
}
|
|
2058
|
+
};
|
|
2059
|
+
GlobalDecoderRegistry.register(TxEncodeAminoRequest.typeUrl, TxEncodeAminoRequest);
|
|
2060
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(TxEncodeAminoRequest.aminoType, TxEncodeAminoRequest.typeUrl);
|
|
2061
|
+
function createBaseTxEncodeAminoResponse(): TxEncodeAminoResponse {
|
|
2062
|
+
return {
|
|
2063
|
+
aminoBinary: new Uint8Array()
|
|
2064
|
+
};
|
|
2065
|
+
}
|
|
2066
|
+
export const TxEncodeAminoResponse = {
|
|
2067
|
+
typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoResponse",
|
|
2068
|
+
aminoType: "cosmos-sdk/TxEncodeAminoResponse",
|
|
2069
|
+
is(o: any): o is TxEncodeAminoResponse {
|
|
2070
|
+
return o && (o.$typeUrl === TxEncodeAminoResponse.typeUrl || o.aminoBinary instanceof Uint8Array || typeof o.aminoBinary === "string");
|
|
2071
|
+
},
|
|
2072
|
+
isAmino(o: any): o is TxEncodeAminoResponseAmino {
|
|
2073
|
+
return o && (o.$typeUrl === TxEncodeAminoResponse.typeUrl || o.amino_binary instanceof Uint8Array || typeof o.amino_binary === "string");
|
|
2074
|
+
},
|
|
2075
|
+
encode(message: TxEncodeAminoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2076
|
+
if (message.aminoBinary.length !== 0) {
|
|
2077
|
+
writer.uint32(10).bytes(message.aminoBinary);
|
|
2078
|
+
}
|
|
2079
|
+
return writer;
|
|
2080
|
+
},
|
|
2081
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TxEncodeAminoResponse {
|
|
2082
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2083
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2084
|
+
const message = createBaseTxEncodeAminoResponse();
|
|
2085
|
+
while (reader.pos < end) {
|
|
2086
|
+
const tag = reader.uint32();
|
|
2087
|
+
switch (tag >>> 3) {
|
|
2088
|
+
case 1:
|
|
2089
|
+
message.aminoBinary = reader.bytes();
|
|
2090
|
+
break;
|
|
2091
|
+
default:
|
|
2092
|
+
reader.skipType(tag & 7);
|
|
2093
|
+
break;
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
return message;
|
|
2097
|
+
},
|
|
2098
|
+
fromPartial(object: DeepPartial<TxEncodeAminoResponse>): TxEncodeAminoResponse {
|
|
2099
|
+
const message = createBaseTxEncodeAminoResponse();
|
|
2100
|
+
message.aminoBinary = object.aminoBinary ?? new Uint8Array();
|
|
2101
|
+
return message;
|
|
2102
|
+
},
|
|
2103
|
+
fromAmino(object: TxEncodeAminoResponseAmino): TxEncodeAminoResponse {
|
|
2104
|
+
const message = createBaseTxEncodeAminoResponse();
|
|
2105
|
+
if (object.amino_binary !== undefined && object.amino_binary !== null) {
|
|
2106
|
+
message.aminoBinary = bytesFromBase64(object.amino_binary);
|
|
2107
|
+
}
|
|
2108
|
+
return message;
|
|
2109
|
+
},
|
|
2110
|
+
toAmino(message: TxEncodeAminoResponse): TxEncodeAminoResponseAmino {
|
|
2111
|
+
const obj: any = {};
|
|
2112
|
+
obj.amino_binary = message.aminoBinary ? base64FromBytes(message.aminoBinary) : undefined;
|
|
2113
|
+
return obj;
|
|
2114
|
+
},
|
|
2115
|
+
fromAminoMsg(object: TxEncodeAminoResponseAminoMsg): TxEncodeAminoResponse {
|
|
2116
|
+
return TxEncodeAminoResponse.fromAmino(object.value);
|
|
2117
|
+
},
|
|
2118
|
+
toAminoMsg(message: TxEncodeAminoResponse): TxEncodeAminoResponseAminoMsg {
|
|
2119
|
+
return {
|
|
2120
|
+
type: "cosmos-sdk/TxEncodeAminoResponse",
|
|
2121
|
+
value: TxEncodeAminoResponse.toAmino(message)
|
|
2122
|
+
};
|
|
2123
|
+
},
|
|
2124
|
+
fromProtoMsg(message: TxEncodeAminoResponseProtoMsg): TxEncodeAminoResponse {
|
|
2125
|
+
return TxEncodeAminoResponse.decode(message.value);
|
|
2126
|
+
},
|
|
2127
|
+
toProto(message: TxEncodeAminoResponse): Uint8Array {
|
|
2128
|
+
return TxEncodeAminoResponse.encode(message).finish();
|
|
2129
|
+
},
|
|
2130
|
+
toProtoMsg(message: TxEncodeAminoResponse): TxEncodeAminoResponseProtoMsg {
|
|
2131
|
+
return {
|
|
2132
|
+
typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoResponse",
|
|
2133
|
+
value: TxEncodeAminoResponse.encode(message).finish()
|
|
2134
|
+
};
|
|
2135
|
+
}
|
|
2136
|
+
};
|
|
2137
|
+
GlobalDecoderRegistry.register(TxEncodeAminoResponse.typeUrl, TxEncodeAminoResponse);
|
|
2138
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(TxEncodeAminoResponse.aminoType, TxEncodeAminoResponse.typeUrl);
|
|
2139
|
+
function createBaseTxDecodeAminoRequest(): TxDecodeAminoRequest {
|
|
2140
|
+
return {
|
|
2141
|
+
aminoBinary: new Uint8Array()
|
|
2142
|
+
};
|
|
2143
|
+
}
|
|
2144
|
+
export const TxDecodeAminoRequest = {
|
|
2145
|
+
typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoRequest",
|
|
2146
|
+
aminoType: "cosmos-sdk/TxDecodeAminoRequest",
|
|
2147
|
+
is(o: any): o is TxDecodeAminoRequest {
|
|
2148
|
+
return o && (o.$typeUrl === TxDecodeAminoRequest.typeUrl || o.aminoBinary instanceof Uint8Array || typeof o.aminoBinary === "string");
|
|
2149
|
+
},
|
|
2150
|
+
isAmino(o: any): o is TxDecodeAminoRequestAmino {
|
|
2151
|
+
return o && (o.$typeUrl === TxDecodeAminoRequest.typeUrl || o.amino_binary instanceof Uint8Array || typeof o.amino_binary === "string");
|
|
2152
|
+
},
|
|
2153
|
+
encode(message: TxDecodeAminoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2154
|
+
if (message.aminoBinary.length !== 0) {
|
|
2155
|
+
writer.uint32(10).bytes(message.aminoBinary);
|
|
2156
|
+
}
|
|
2157
|
+
return writer;
|
|
2158
|
+
},
|
|
2159
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TxDecodeAminoRequest {
|
|
2160
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2161
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2162
|
+
const message = createBaseTxDecodeAminoRequest();
|
|
2163
|
+
while (reader.pos < end) {
|
|
2164
|
+
const tag = reader.uint32();
|
|
2165
|
+
switch (tag >>> 3) {
|
|
2166
|
+
case 1:
|
|
2167
|
+
message.aminoBinary = reader.bytes();
|
|
2168
|
+
break;
|
|
2169
|
+
default:
|
|
2170
|
+
reader.skipType(tag & 7);
|
|
2171
|
+
break;
|
|
2172
|
+
}
|
|
2173
|
+
}
|
|
2174
|
+
return message;
|
|
2175
|
+
},
|
|
2176
|
+
fromPartial(object: DeepPartial<TxDecodeAminoRequest>): TxDecodeAminoRequest {
|
|
2177
|
+
const message = createBaseTxDecodeAminoRequest();
|
|
2178
|
+
message.aminoBinary = object.aminoBinary ?? new Uint8Array();
|
|
2179
|
+
return message;
|
|
2180
|
+
},
|
|
2181
|
+
fromAmino(object: TxDecodeAminoRequestAmino): TxDecodeAminoRequest {
|
|
2182
|
+
const message = createBaseTxDecodeAminoRequest();
|
|
2183
|
+
if (object.amino_binary !== undefined && object.amino_binary !== null) {
|
|
2184
|
+
message.aminoBinary = bytesFromBase64(object.amino_binary);
|
|
2185
|
+
}
|
|
2186
|
+
return message;
|
|
2187
|
+
},
|
|
2188
|
+
toAmino(message: TxDecodeAminoRequest): TxDecodeAminoRequestAmino {
|
|
2189
|
+
const obj: any = {};
|
|
2190
|
+
obj.amino_binary = message.aminoBinary ? base64FromBytes(message.aminoBinary) : undefined;
|
|
2191
|
+
return obj;
|
|
2192
|
+
},
|
|
2193
|
+
fromAminoMsg(object: TxDecodeAminoRequestAminoMsg): TxDecodeAminoRequest {
|
|
2194
|
+
return TxDecodeAminoRequest.fromAmino(object.value);
|
|
2195
|
+
},
|
|
2196
|
+
toAminoMsg(message: TxDecodeAminoRequest): TxDecodeAminoRequestAminoMsg {
|
|
2197
|
+
return {
|
|
2198
|
+
type: "cosmos-sdk/TxDecodeAminoRequest",
|
|
2199
|
+
value: TxDecodeAminoRequest.toAmino(message)
|
|
2200
|
+
};
|
|
2201
|
+
},
|
|
2202
|
+
fromProtoMsg(message: TxDecodeAminoRequestProtoMsg): TxDecodeAminoRequest {
|
|
2203
|
+
return TxDecodeAminoRequest.decode(message.value);
|
|
2204
|
+
},
|
|
2205
|
+
toProto(message: TxDecodeAminoRequest): Uint8Array {
|
|
2206
|
+
return TxDecodeAminoRequest.encode(message).finish();
|
|
2207
|
+
},
|
|
2208
|
+
toProtoMsg(message: TxDecodeAminoRequest): TxDecodeAminoRequestProtoMsg {
|
|
2209
|
+
return {
|
|
2210
|
+
typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoRequest",
|
|
2211
|
+
value: TxDecodeAminoRequest.encode(message).finish()
|
|
2212
|
+
};
|
|
2213
|
+
}
|
|
2214
|
+
};
|
|
2215
|
+
GlobalDecoderRegistry.register(TxDecodeAminoRequest.typeUrl, TxDecodeAminoRequest);
|
|
2216
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(TxDecodeAminoRequest.aminoType, TxDecodeAminoRequest.typeUrl);
|
|
2217
|
+
function createBaseTxDecodeAminoResponse(): TxDecodeAminoResponse {
|
|
2218
|
+
return {
|
|
2219
|
+
aminoJson: ""
|
|
2220
|
+
};
|
|
2221
|
+
}
|
|
2222
|
+
export const TxDecodeAminoResponse = {
|
|
2223
|
+
typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoResponse",
|
|
2224
|
+
aminoType: "cosmos-sdk/TxDecodeAminoResponse",
|
|
2225
|
+
is(o: any): o is TxDecodeAminoResponse {
|
|
2226
|
+
return o && (o.$typeUrl === TxDecodeAminoResponse.typeUrl || typeof o.aminoJson === "string");
|
|
2227
|
+
},
|
|
2228
|
+
isAmino(o: any): o is TxDecodeAminoResponseAmino {
|
|
2229
|
+
return o && (o.$typeUrl === TxDecodeAminoResponse.typeUrl || typeof o.amino_json === "string");
|
|
2230
|
+
},
|
|
2231
|
+
encode(message: TxDecodeAminoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2232
|
+
if (message.aminoJson !== "") {
|
|
2233
|
+
writer.uint32(10).string(message.aminoJson);
|
|
2234
|
+
}
|
|
2235
|
+
return writer;
|
|
2236
|
+
},
|
|
2237
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TxDecodeAminoResponse {
|
|
2238
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2239
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2240
|
+
const message = createBaseTxDecodeAminoResponse();
|
|
2241
|
+
while (reader.pos < end) {
|
|
2242
|
+
const tag = reader.uint32();
|
|
2243
|
+
switch (tag >>> 3) {
|
|
2244
|
+
case 1:
|
|
2245
|
+
message.aminoJson = reader.string();
|
|
2246
|
+
break;
|
|
2247
|
+
default:
|
|
2248
|
+
reader.skipType(tag & 7);
|
|
2249
|
+
break;
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
return message;
|
|
2253
|
+
},
|
|
2254
|
+
fromPartial(object: DeepPartial<TxDecodeAminoResponse>): TxDecodeAminoResponse {
|
|
2255
|
+
const message = createBaseTxDecodeAminoResponse();
|
|
2256
|
+
message.aminoJson = object.aminoJson ?? "";
|
|
2257
|
+
return message;
|
|
2258
|
+
},
|
|
2259
|
+
fromAmino(object: TxDecodeAminoResponseAmino): TxDecodeAminoResponse {
|
|
2260
|
+
const message = createBaseTxDecodeAminoResponse();
|
|
2261
|
+
if (object.amino_json !== undefined && object.amino_json !== null) {
|
|
2262
|
+
message.aminoJson = object.amino_json;
|
|
2263
|
+
}
|
|
2264
|
+
return message;
|
|
2265
|
+
},
|
|
2266
|
+
toAmino(message: TxDecodeAminoResponse): TxDecodeAminoResponseAmino {
|
|
2267
|
+
const obj: any = {};
|
|
2268
|
+
obj.amino_json = message.aminoJson === "" ? undefined : message.aminoJson;
|
|
2269
|
+
return obj;
|
|
2270
|
+
},
|
|
2271
|
+
fromAminoMsg(object: TxDecodeAminoResponseAminoMsg): TxDecodeAminoResponse {
|
|
2272
|
+
return TxDecodeAminoResponse.fromAmino(object.value);
|
|
2273
|
+
},
|
|
2274
|
+
toAminoMsg(message: TxDecodeAminoResponse): TxDecodeAminoResponseAminoMsg {
|
|
2275
|
+
return {
|
|
2276
|
+
type: "cosmos-sdk/TxDecodeAminoResponse",
|
|
2277
|
+
value: TxDecodeAminoResponse.toAmino(message)
|
|
2278
|
+
};
|
|
2279
|
+
},
|
|
2280
|
+
fromProtoMsg(message: TxDecodeAminoResponseProtoMsg): TxDecodeAminoResponse {
|
|
2281
|
+
return TxDecodeAminoResponse.decode(message.value);
|
|
2282
|
+
},
|
|
2283
|
+
toProto(message: TxDecodeAminoResponse): Uint8Array {
|
|
2284
|
+
return TxDecodeAminoResponse.encode(message).finish();
|
|
2285
|
+
},
|
|
2286
|
+
toProtoMsg(message: TxDecodeAminoResponse): TxDecodeAminoResponseProtoMsg {
|
|
2287
|
+
return {
|
|
2288
|
+
typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoResponse",
|
|
2289
|
+
value: TxDecodeAminoResponse.encode(message).finish()
|
|
2290
|
+
};
|
|
2291
|
+
}
|
|
2292
|
+
};
|
|
2293
|
+
GlobalDecoderRegistry.register(TxDecodeAminoResponse.typeUrl, TxDecodeAminoResponse);
|
|
2294
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(TxDecodeAminoResponse.aminoType, TxDecodeAminoResponse.typeUrl);
|