@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,1698 @@
|
|
|
1
|
+
import { Any, AnyAmino } from "../../../../google/protobuf/any";
|
|
2
|
+
import { Event, EventAmino } from "../../../../tendermint/abci/types";
|
|
3
|
+
import { Block, BlockAmino } from "../../../../tendermint/types/block";
|
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
5
|
+
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers";
|
|
6
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
7
|
+
/**
|
|
8
|
+
* TxResponse defines a structure containing relevant tx data and metadata. The
|
|
9
|
+
* tags are stringified and the log is JSON decoded.
|
|
10
|
+
*/
|
|
11
|
+
export interface TxResponse {
|
|
12
|
+
/** The block height */
|
|
13
|
+
height: bigint;
|
|
14
|
+
/** The transaction hash. */
|
|
15
|
+
txhash: string;
|
|
16
|
+
/** Namespace for the Code */
|
|
17
|
+
codespace: string;
|
|
18
|
+
/** Response code. */
|
|
19
|
+
code: number;
|
|
20
|
+
/** Result bytes, if any. */
|
|
21
|
+
data: string;
|
|
22
|
+
/**
|
|
23
|
+
* The output of the application's logger (raw string). May be
|
|
24
|
+
* non-deterministic.
|
|
25
|
+
*/
|
|
26
|
+
rawLog: string;
|
|
27
|
+
/** The output of the application's logger (typed). May be non-deterministic. */
|
|
28
|
+
logs: ABCIMessageLog[];
|
|
29
|
+
/** Additional information. May be non-deterministic. */
|
|
30
|
+
info: string;
|
|
31
|
+
/** Amount of gas requested for transaction. */
|
|
32
|
+
gasWanted: bigint;
|
|
33
|
+
/** Amount of gas consumed by transaction. */
|
|
34
|
+
gasUsed: bigint;
|
|
35
|
+
/** The request transaction bytes. */
|
|
36
|
+
tx?: Any;
|
|
37
|
+
/**
|
|
38
|
+
* Time of the previous block. For heights > 1, it's the weighted median of
|
|
39
|
+
* the timestamps of the valid votes in the block.LastCommit. For height == 1,
|
|
40
|
+
* it's genesis time.
|
|
41
|
+
*/
|
|
42
|
+
timestamp: string;
|
|
43
|
+
/**
|
|
44
|
+
* Events defines all the events emitted by processing a transaction. Note,
|
|
45
|
+
* these events include those emitted by processing all the messages and those
|
|
46
|
+
* emitted from the ante. Whereas Logs contains the events, with
|
|
47
|
+
* additional metadata, emitted only by processing the messages.
|
|
48
|
+
*
|
|
49
|
+
* Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
|
|
50
|
+
*/
|
|
51
|
+
events: Event[];
|
|
52
|
+
}
|
|
53
|
+
export interface TxResponseProtoMsg {
|
|
54
|
+
typeUrl: "/cosmos.base.abci.v1beta1.TxResponse";
|
|
55
|
+
value: Uint8Array;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* TxResponse defines a structure containing relevant tx data and metadata. The
|
|
59
|
+
* tags are stringified and the log is JSON decoded.
|
|
60
|
+
*/
|
|
61
|
+
export interface TxResponseAmino {
|
|
62
|
+
/** The block height */
|
|
63
|
+
height: string;
|
|
64
|
+
/** The transaction hash. */
|
|
65
|
+
txhash: string;
|
|
66
|
+
/** Namespace for the Code */
|
|
67
|
+
codespace: string;
|
|
68
|
+
/** Response code. */
|
|
69
|
+
code: number;
|
|
70
|
+
/** Result bytes, if any. */
|
|
71
|
+
data: string;
|
|
72
|
+
/**
|
|
73
|
+
* The output of the application's logger (raw string). May be
|
|
74
|
+
* non-deterministic.
|
|
75
|
+
*/
|
|
76
|
+
raw_log: string;
|
|
77
|
+
/** The output of the application's logger (typed). May be non-deterministic. */
|
|
78
|
+
logs: ABCIMessageLogAmino[];
|
|
79
|
+
/** Additional information. May be non-deterministic. */
|
|
80
|
+
info: string;
|
|
81
|
+
/** Amount of gas requested for transaction. */
|
|
82
|
+
gas_wanted: string;
|
|
83
|
+
/** Amount of gas consumed by transaction. */
|
|
84
|
+
gas_used: string;
|
|
85
|
+
/** The request transaction bytes. */
|
|
86
|
+
tx?: AnyAmino;
|
|
87
|
+
/**
|
|
88
|
+
* Time of the previous block. For heights > 1, it's the weighted median of
|
|
89
|
+
* the timestamps of the valid votes in the block.LastCommit. For height == 1,
|
|
90
|
+
* it's genesis time.
|
|
91
|
+
*/
|
|
92
|
+
timestamp: string;
|
|
93
|
+
/**
|
|
94
|
+
* Events defines all the events emitted by processing a transaction. Note,
|
|
95
|
+
* these events include those emitted by processing all the messages and those
|
|
96
|
+
* emitted from the ante. Whereas Logs contains the events, with
|
|
97
|
+
* additional metadata, emitted only by processing the messages.
|
|
98
|
+
*
|
|
99
|
+
* Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
|
|
100
|
+
*/
|
|
101
|
+
events: EventAmino[];
|
|
102
|
+
}
|
|
103
|
+
export interface TxResponseAminoMsg {
|
|
104
|
+
type: "cosmos-sdk/TxResponse";
|
|
105
|
+
value: TxResponseAmino;
|
|
106
|
+
}
|
|
107
|
+
/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */
|
|
108
|
+
export interface ABCIMessageLog {
|
|
109
|
+
msgIndex: number;
|
|
110
|
+
log: string;
|
|
111
|
+
/**
|
|
112
|
+
* Events contains a slice of Event objects that were emitted during some
|
|
113
|
+
* execution.
|
|
114
|
+
*/
|
|
115
|
+
events: StringEvent[];
|
|
116
|
+
}
|
|
117
|
+
export interface ABCIMessageLogProtoMsg {
|
|
118
|
+
typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog";
|
|
119
|
+
value: Uint8Array;
|
|
120
|
+
}
|
|
121
|
+
/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */
|
|
122
|
+
export interface ABCIMessageLogAmino {
|
|
123
|
+
msg_index: number;
|
|
124
|
+
log: string;
|
|
125
|
+
/**
|
|
126
|
+
* Events contains a slice of Event objects that were emitted during some
|
|
127
|
+
* execution.
|
|
128
|
+
*/
|
|
129
|
+
events: StringEventAmino[];
|
|
130
|
+
}
|
|
131
|
+
export interface ABCIMessageLogAminoMsg {
|
|
132
|
+
type: "cosmos-sdk/ABCIMessageLog";
|
|
133
|
+
value: ABCIMessageLogAmino;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* StringEvent defines en Event object wrapper where all the attributes
|
|
137
|
+
* contain key/value pairs that are strings instead of raw bytes.
|
|
138
|
+
*/
|
|
139
|
+
export interface StringEvent {
|
|
140
|
+
type: string;
|
|
141
|
+
attributes: Attribute[];
|
|
142
|
+
}
|
|
143
|
+
export interface StringEventProtoMsg {
|
|
144
|
+
typeUrl: "/cosmos.base.abci.v1beta1.StringEvent";
|
|
145
|
+
value: Uint8Array;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* StringEvent defines en Event object wrapper where all the attributes
|
|
149
|
+
* contain key/value pairs that are strings instead of raw bytes.
|
|
150
|
+
*/
|
|
151
|
+
export interface StringEventAmino {
|
|
152
|
+
type: string;
|
|
153
|
+
attributes: AttributeAmino[];
|
|
154
|
+
}
|
|
155
|
+
export interface StringEventAminoMsg {
|
|
156
|
+
type: "cosmos-sdk/StringEvent";
|
|
157
|
+
value: StringEventAmino;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Attribute defines an attribute wrapper where the key and value are
|
|
161
|
+
* strings instead of raw bytes.
|
|
162
|
+
*/
|
|
163
|
+
export interface Attribute {
|
|
164
|
+
key: string;
|
|
165
|
+
value: string;
|
|
166
|
+
}
|
|
167
|
+
export interface AttributeProtoMsg {
|
|
168
|
+
typeUrl: "/cosmos.base.abci.v1beta1.Attribute";
|
|
169
|
+
value: Uint8Array;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Attribute defines an attribute wrapper where the key and value are
|
|
173
|
+
* strings instead of raw bytes.
|
|
174
|
+
*/
|
|
175
|
+
export interface AttributeAmino {
|
|
176
|
+
key: string;
|
|
177
|
+
value: string;
|
|
178
|
+
}
|
|
179
|
+
export interface AttributeAminoMsg {
|
|
180
|
+
type: "cosmos-sdk/Attribute";
|
|
181
|
+
value: AttributeAmino;
|
|
182
|
+
}
|
|
183
|
+
/** GasInfo defines tx execution gas context. */
|
|
184
|
+
export interface GasInfo {
|
|
185
|
+
/** GasWanted is the maximum units of work we allow this tx to perform. */
|
|
186
|
+
gasWanted: bigint;
|
|
187
|
+
/** GasUsed is the amount of gas actually consumed. */
|
|
188
|
+
gasUsed: bigint;
|
|
189
|
+
}
|
|
190
|
+
export interface GasInfoProtoMsg {
|
|
191
|
+
typeUrl: "/cosmos.base.abci.v1beta1.GasInfo";
|
|
192
|
+
value: Uint8Array;
|
|
193
|
+
}
|
|
194
|
+
/** GasInfo defines tx execution gas context. */
|
|
195
|
+
export interface GasInfoAmino {
|
|
196
|
+
/** GasWanted is the maximum units of work we allow this tx to perform. */
|
|
197
|
+
gas_wanted: string;
|
|
198
|
+
/** GasUsed is the amount of gas actually consumed. */
|
|
199
|
+
gas_used: string;
|
|
200
|
+
}
|
|
201
|
+
export interface GasInfoAminoMsg {
|
|
202
|
+
type: "cosmos-sdk/GasInfo";
|
|
203
|
+
value: GasInfoAmino;
|
|
204
|
+
}
|
|
205
|
+
/** Result is the union of ResponseFormat and ResponseCheckTx. */
|
|
206
|
+
export interface Result {
|
|
207
|
+
/**
|
|
208
|
+
* Data is any data returned from message or handler execution. It MUST be
|
|
209
|
+
* length prefixed in order to separate data from multiple message executions.
|
|
210
|
+
* Deprecated. This field is still populated, but prefer msg_response instead
|
|
211
|
+
* because it also contains the Msg response typeURL.
|
|
212
|
+
*/
|
|
213
|
+
/** @deprecated */
|
|
214
|
+
data: Uint8Array;
|
|
215
|
+
/** Log contains the log information from message or handler execution. */
|
|
216
|
+
log: string;
|
|
217
|
+
/**
|
|
218
|
+
* Events contains a slice of Event objects that were emitted during message
|
|
219
|
+
* or handler execution.
|
|
220
|
+
*/
|
|
221
|
+
events: Event[];
|
|
222
|
+
/**
|
|
223
|
+
* msg_responses contains the Msg handler responses type packed in Anys.
|
|
224
|
+
*
|
|
225
|
+
* Since: cosmos-sdk 0.46
|
|
226
|
+
*/
|
|
227
|
+
msgResponses: Any[];
|
|
228
|
+
}
|
|
229
|
+
export interface ResultProtoMsg {
|
|
230
|
+
typeUrl: "/cosmos.base.abci.v1beta1.Result";
|
|
231
|
+
value: Uint8Array;
|
|
232
|
+
}
|
|
233
|
+
/** Result is the union of ResponseFormat and ResponseCheckTx. */
|
|
234
|
+
export interface ResultAmino {
|
|
235
|
+
/**
|
|
236
|
+
* Data is any data returned from message or handler execution. It MUST be
|
|
237
|
+
* length prefixed in order to separate data from multiple message executions.
|
|
238
|
+
* Deprecated. This field is still populated, but prefer msg_response instead
|
|
239
|
+
* because it also contains the Msg response typeURL.
|
|
240
|
+
*/
|
|
241
|
+
/** @deprecated */
|
|
242
|
+
data: string;
|
|
243
|
+
/** Log contains the log information from message or handler execution. */
|
|
244
|
+
log: string;
|
|
245
|
+
/**
|
|
246
|
+
* Events contains a slice of Event objects that were emitted during message
|
|
247
|
+
* or handler execution.
|
|
248
|
+
*/
|
|
249
|
+
events: EventAmino[];
|
|
250
|
+
/**
|
|
251
|
+
* msg_responses contains the Msg handler responses type packed in Anys.
|
|
252
|
+
*
|
|
253
|
+
* Since: cosmos-sdk 0.46
|
|
254
|
+
*/
|
|
255
|
+
msg_responses: AnyAmino[];
|
|
256
|
+
}
|
|
257
|
+
export interface ResultAminoMsg {
|
|
258
|
+
type: "cosmos-sdk/Result";
|
|
259
|
+
value: ResultAmino;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* SimulationResponse defines the response generated when a transaction is
|
|
263
|
+
* successfully simulated.
|
|
264
|
+
*/
|
|
265
|
+
export interface SimulationResponse {
|
|
266
|
+
gasInfo: GasInfo;
|
|
267
|
+
result?: Result;
|
|
268
|
+
}
|
|
269
|
+
export interface SimulationResponseProtoMsg {
|
|
270
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse";
|
|
271
|
+
value: Uint8Array;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* SimulationResponse defines the response generated when a transaction is
|
|
275
|
+
* successfully simulated.
|
|
276
|
+
*/
|
|
277
|
+
export interface SimulationResponseAmino {
|
|
278
|
+
gas_info: GasInfoAmino;
|
|
279
|
+
result?: ResultAmino;
|
|
280
|
+
}
|
|
281
|
+
export interface SimulationResponseAminoMsg {
|
|
282
|
+
type: "cosmos-sdk/SimulationResponse";
|
|
283
|
+
value: SimulationResponseAmino;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* MsgData defines the data returned in a Result object during message
|
|
287
|
+
* execution.
|
|
288
|
+
*/
|
|
289
|
+
/** @deprecated */
|
|
290
|
+
export interface MsgData {
|
|
291
|
+
msgType: string;
|
|
292
|
+
data: Uint8Array;
|
|
293
|
+
}
|
|
294
|
+
export interface MsgDataProtoMsg {
|
|
295
|
+
typeUrl: "/cosmos.base.abci.v1beta1.MsgData";
|
|
296
|
+
value: Uint8Array;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* MsgData defines the data returned in a Result object during message
|
|
300
|
+
* execution.
|
|
301
|
+
*/
|
|
302
|
+
/** @deprecated */
|
|
303
|
+
export interface MsgDataAmino {
|
|
304
|
+
msg_type: string;
|
|
305
|
+
data: string;
|
|
306
|
+
}
|
|
307
|
+
export interface MsgDataAminoMsg {
|
|
308
|
+
type: "cosmos-sdk/MsgData";
|
|
309
|
+
value: MsgDataAmino;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* TxMsgData defines a list of MsgData. A transaction will have a MsgData object
|
|
313
|
+
* for each message.
|
|
314
|
+
*/
|
|
315
|
+
export interface TxMsgData {
|
|
316
|
+
/** data field is deprecated and not populated. */
|
|
317
|
+
/** @deprecated */
|
|
318
|
+
data: MsgData[];
|
|
319
|
+
/**
|
|
320
|
+
* msg_responses contains the Msg handler responses packed into Anys.
|
|
321
|
+
*
|
|
322
|
+
* Since: cosmos-sdk 0.46
|
|
323
|
+
*/
|
|
324
|
+
msgResponses: Any[];
|
|
325
|
+
}
|
|
326
|
+
export interface TxMsgDataProtoMsg {
|
|
327
|
+
typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData";
|
|
328
|
+
value: Uint8Array;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* TxMsgData defines a list of MsgData. A transaction will have a MsgData object
|
|
332
|
+
* for each message.
|
|
333
|
+
*/
|
|
334
|
+
export interface TxMsgDataAmino {
|
|
335
|
+
/** data field is deprecated and not populated. */
|
|
336
|
+
/** @deprecated */
|
|
337
|
+
data: MsgDataAmino[];
|
|
338
|
+
/**
|
|
339
|
+
* msg_responses contains the Msg handler responses packed into Anys.
|
|
340
|
+
*
|
|
341
|
+
* Since: cosmos-sdk 0.46
|
|
342
|
+
*/
|
|
343
|
+
msg_responses: AnyAmino[];
|
|
344
|
+
}
|
|
345
|
+
export interface TxMsgDataAminoMsg {
|
|
346
|
+
type: "cosmos-sdk/TxMsgData";
|
|
347
|
+
value: TxMsgDataAmino;
|
|
348
|
+
}
|
|
349
|
+
/** SearchTxsResult defines a structure for querying txs pageable */
|
|
350
|
+
export interface SearchTxsResult {
|
|
351
|
+
/** Count of all txs */
|
|
352
|
+
totalCount: bigint;
|
|
353
|
+
/** Count of txs in current page */
|
|
354
|
+
count: bigint;
|
|
355
|
+
/** Index of current page, start from 1 */
|
|
356
|
+
pageNumber: bigint;
|
|
357
|
+
/** Count of total pages */
|
|
358
|
+
pageTotal: bigint;
|
|
359
|
+
/** Max count txs per page */
|
|
360
|
+
limit: bigint;
|
|
361
|
+
/** List of txs in current page */
|
|
362
|
+
txs: TxResponse[];
|
|
363
|
+
}
|
|
364
|
+
export interface SearchTxsResultProtoMsg {
|
|
365
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult";
|
|
366
|
+
value: Uint8Array;
|
|
367
|
+
}
|
|
368
|
+
/** SearchTxsResult defines a structure for querying txs pageable */
|
|
369
|
+
export interface SearchTxsResultAmino {
|
|
370
|
+
/** Count of all txs */
|
|
371
|
+
total_count: string;
|
|
372
|
+
/** Count of txs in current page */
|
|
373
|
+
count: string;
|
|
374
|
+
/** Index of current page, start from 1 */
|
|
375
|
+
page_number: string;
|
|
376
|
+
/** Count of total pages */
|
|
377
|
+
page_total: string;
|
|
378
|
+
/** Max count txs per page */
|
|
379
|
+
limit: string;
|
|
380
|
+
/** List of txs in current page */
|
|
381
|
+
txs: TxResponseAmino[];
|
|
382
|
+
}
|
|
383
|
+
export interface SearchTxsResultAminoMsg {
|
|
384
|
+
type: "cosmos-sdk/SearchTxsResult";
|
|
385
|
+
value: SearchTxsResultAmino;
|
|
386
|
+
}
|
|
387
|
+
/** SearchBlocksResult defines a structure for querying blocks pageable */
|
|
388
|
+
export interface SearchBlocksResult {
|
|
389
|
+
/** Count of all blocks */
|
|
390
|
+
totalCount: bigint;
|
|
391
|
+
/** Count of blocks in current page */
|
|
392
|
+
count: bigint;
|
|
393
|
+
/** Index of current page, start from 1 */
|
|
394
|
+
pageNumber: bigint;
|
|
395
|
+
/** Count of total pages */
|
|
396
|
+
pageTotal: bigint;
|
|
397
|
+
/** Max count blocks per page */
|
|
398
|
+
limit: bigint;
|
|
399
|
+
/** List of blocks in current page */
|
|
400
|
+
blocks: Block[];
|
|
401
|
+
}
|
|
402
|
+
export interface SearchBlocksResultProtoMsg {
|
|
403
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SearchBlocksResult";
|
|
404
|
+
value: Uint8Array;
|
|
405
|
+
}
|
|
406
|
+
/** SearchBlocksResult defines a structure for querying blocks pageable */
|
|
407
|
+
export interface SearchBlocksResultAmino {
|
|
408
|
+
/** Count of all blocks */
|
|
409
|
+
total_count: string;
|
|
410
|
+
/** Count of blocks in current page */
|
|
411
|
+
count: string;
|
|
412
|
+
/** Index of current page, start from 1 */
|
|
413
|
+
page_number: string;
|
|
414
|
+
/** Count of total pages */
|
|
415
|
+
page_total: string;
|
|
416
|
+
/** Max count blocks per page */
|
|
417
|
+
limit: string;
|
|
418
|
+
/** List of blocks in current page */
|
|
419
|
+
blocks: BlockAmino[];
|
|
420
|
+
}
|
|
421
|
+
export interface SearchBlocksResultAminoMsg {
|
|
422
|
+
type: "cosmos-sdk/SearchBlocksResult";
|
|
423
|
+
value: SearchBlocksResultAmino;
|
|
424
|
+
}
|
|
425
|
+
function createBaseTxResponse(): TxResponse {
|
|
426
|
+
return {
|
|
427
|
+
height: BigInt(0),
|
|
428
|
+
txhash: "",
|
|
429
|
+
codespace: "",
|
|
430
|
+
code: 0,
|
|
431
|
+
data: "",
|
|
432
|
+
rawLog: "",
|
|
433
|
+
logs: [],
|
|
434
|
+
info: "",
|
|
435
|
+
gasWanted: BigInt(0),
|
|
436
|
+
gasUsed: BigInt(0),
|
|
437
|
+
tx: undefined,
|
|
438
|
+
timestamp: "",
|
|
439
|
+
events: []
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
export const TxResponse = {
|
|
443
|
+
typeUrl: "/cosmos.base.abci.v1beta1.TxResponse",
|
|
444
|
+
aminoType: "cosmos-sdk/TxResponse",
|
|
445
|
+
is(o: any): o is TxResponse {
|
|
446
|
+
return o && (o.$typeUrl === TxResponse.typeUrl || typeof o.height === "bigint" && typeof o.txhash === "string" && typeof o.codespace === "string" && typeof o.code === "number" && typeof o.data === "string" && typeof o.rawLog === "string" && Array.isArray(o.logs) && (!o.logs.length || ABCIMessageLog.is(o.logs[0])) && typeof o.info === "string" && typeof o.gasWanted === "bigint" && typeof o.gasUsed === "bigint" && typeof o.timestamp === "string" && Array.isArray(o.events) && (!o.events.length || Event.is(o.events[0])));
|
|
447
|
+
},
|
|
448
|
+
isAmino(o: any): o is TxResponseAmino {
|
|
449
|
+
return o && (o.$typeUrl === TxResponse.typeUrl || typeof o.height === "bigint" && typeof o.txhash === "string" && typeof o.codespace === "string" && typeof o.code === "number" && typeof o.data === "string" && typeof o.raw_log === "string" && Array.isArray(o.logs) && (!o.logs.length || ABCIMessageLog.isAmino(o.logs[0])) && typeof o.info === "string" && typeof o.gas_wanted === "bigint" && typeof o.gas_used === "bigint" && typeof o.timestamp === "string" && Array.isArray(o.events) && (!o.events.length || Event.isAmino(o.events[0])));
|
|
450
|
+
},
|
|
451
|
+
encode(message: TxResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
452
|
+
if (message.height !== BigInt(0)) {
|
|
453
|
+
writer.uint32(8).int64(message.height);
|
|
454
|
+
}
|
|
455
|
+
if (message.txhash !== "") {
|
|
456
|
+
writer.uint32(18).string(message.txhash);
|
|
457
|
+
}
|
|
458
|
+
if (message.codespace !== "") {
|
|
459
|
+
writer.uint32(26).string(message.codespace);
|
|
460
|
+
}
|
|
461
|
+
if (message.code !== 0) {
|
|
462
|
+
writer.uint32(32).uint32(message.code);
|
|
463
|
+
}
|
|
464
|
+
if (message.data !== "") {
|
|
465
|
+
writer.uint32(42).string(message.data);
|
|
466
|
+
}
|
|
467
|
+
if (message.rawLog !== "") {
|
|
468
|
+
writer.uint32(50).string(message.rawLog);
|
|
469
|
+
}
|
|
470
|
+
for (const v of message.logs) {
|
|
471
|
+
ABCIMessageLog.encode(v!, writer.uint32(58).fork()).ldelim();
|
|
472
|
+
}
|
|
473
|
+
if (message.info !== "") {
|
|
474
|
+
writer.uint32(66).string(message.info);
|
|
475
|
+
}
|
|
476
|
+
if (message.gasWanted !== BigInt(0)) {
|
|
477
|
+
writer.uint32(72).int64(message.gasWanted);
|
|
478
|
+
}
|
|
479
|
+
if (message.gasUsed !== BigInt(0)) {
|
|
480
|
+
writer.uint32(80).int64(message.gasUsed);
|
|
481
|
+
}
|
|
482
|
+
if (message.tx !== undefined) {
|
|
483
|
+
Any.encode(message.tx, writer.uint32(90).fork()).ldelim();
|
|
484
|
+
}
|
|
485
|
+
if (message.timestamp !== "") {
|
|
486
|
+
writer.uint32(98).string(message.timestamp);
|
|
487
|
+
}
|
|
488
|
+
for (const v of message.events) {
|
|
489
|
+
Event.encode(v!, writer.uint32(106).fork()).ldelim();
|
|
490
|
+
}
|
|
491
|
+
return writer;
|
|
492
|
+
},
|
|
493
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TxResponse {
|
|
494
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
495
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
496
|
+
const message = createBaseTxResponse();
|
|
497
|
+
while (reader.pos < end) {
|
|
498
|
+
const tag = reader.uint32();
|
|
499
|
+
switch (tag >>> 3) {
|
|
500
|
+
case 1:
|
|
501
|
+
message.height = reader.int64();
|
|
502
|
+
break;
|
|
503
|
+
case 2:
|
|
504
|
+
message.txhash = reader.string();
|
|
505
|
+
break;
|
|
506
|
+
case 3:
|
|
507
|
+
message.codespace = reader.string();
|
|
508
|
+
break;
|
|
509
|
+
case 4:
|
|
510
|
+
message.code = reader.uint32();
|
|
511
|
+
break;
|
|
512
|
+
case 5:
|
|
513
|
+
message.data = reader.string();
|
|
514
|
+
break;
|
|
515
|
+
case 6:
|
|
516
|
+
message.rawLog = reader.string();
|
|
517
|
+
break;
|
|
518
|
+
case 7:
|
|
519
|
+
message.logs.push(ABCIMessageLog.decode(reader, reader.uint32()));
|
|
520
|
+
break;
|
|
521
|
+
case 8:
|
|
522
|
+
message.info = reader.string();
|
|
523
|
+
break;
|
|
524
|
+
case 9:
|
|
525
|
+
message.gasWanted = reader.int64();
|
|
526
|
+
break;
|
|
527
|
+
case 10:
|
|
528
|
+
message.gasUsed = reader.int64();
|
|
529
|
+
break;
|
|
530
|
+
case 11:
|
|
531
|
+
message.tx = Any.decode(reader, reader.uint32());
|
|
532
|
+
break;
|
|
533
|
+
case 12:
|
|
534
|
+
message.timestamp = reader.string();
|
|
535
|
+
break;
|
|
536
|
+
case 13:
|
|
537
|
+
message.events.push(Event.decode(reader, reader.uint32()));
|
|
538
|
+
break;
|
|
539
|
+
default:
|
|
540
|
+
reader.skipType(tag & 7);
|
|
541
|
+
break;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
return message;
|
|
545
|
+
},
|
|
546
|
+
fromPartial(object: DeepPartial<TxResponse>): TxResponse {
|
|
547
|
+
const message = createBaseTxResponse();
|
|
548
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
549
|
+
message.txhash = object.txhash ?? "";
|
|
550
|
+
message.codespace = object.codespace ?? "";
|
|
551
|
+
message.code = object.code ?? 0;
|
|
552
|
+
message.data = object.data ?? "";
|
|
553
|
+
message.rawLog = object.rawLog ?? "";
|
|
554
|
+
message.logs = object.logs?.map(e => ABCIMessageLog.fromPartial(e)) || [];
|
|
555
|
+
message.info = object.info ?? "";
|
|
556
|
+
message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0);
|
|
557
|
+
message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0);
|
|
558
|
+
message.tx = object.tx !== undefined && object.tx !== null ? Any.fromPartial(object.tx) : undefined;
|
|
559
|
+
message.timestamp = object.timestamp ?? "";
|
|
560
|
+
message.events = object.events?.map(e => Event.fromPartial(e)) || [];
|
|
561
|
+
return message;
|
|
562
|
+
},
|
|
563
|
+
fromAmino(object: TxResponseAmino): TxResponse {
|
|
564
|
+
const message = createBaseTxResponse();
|
|
565
|
+
if (object.height !== undefined && object.height !== null) {
|
|
566
|
+
message.height = BigInt(object.height);
|
|
567
|
+
}
|
|
568
|
+
if (object.txhash !== undefined && object.txhash !== null) {
|
|
569
|
+
message.txhash = object.txhash;
|
|
570
|
+
}
|
|
571
|
+
if (object.codespace !== undefined && object.codespace !== null) {
|
|
572
|
+
message.codespace = object.codespace;
|
|
573
|
+
}
|
|
574
|
+
if (object.code !== undefined && object.code !== null) {
|
|
575
|
+
message.code = object.code;
|
|
576
|
+
}
|
|
577
|
+
if (object.data !== undefined && object.data !== null) {
|
|
578
|
+
message.data = object.data;
|
|
579
|
+
}
|
|
580
|
+
if (object.raw_log !== undefined && object.raw_log !== null) {
|
|
581
|
+
message.rawLog = object.raw_log;
|
|
582
|
+
}
|
|
583
|
+
message.logs = object.logs?.map(e => ABCIMessageLog.fromAmino(e)) || [];
|
|
584
|
+
if (object.info !== undefined && object.info !== null) {
|
|
585
|
+
message.info = object.info;
|
|
586
|
+
}
|
|
587
|
+
if (object.gas_wanted !== undefined && object.gas_wanted !== null) {
|
|
588
|
+
message.gasWanted = BigInt(object.gas_wanted);
|
|
589
|
+
}
|
|
590
|
+
if (object.gas_used !== undefined && object.gas_used !== null) {
|
|
591
|
+
message.gasUsed = BigInt(object.gas_used);
|
|
592
|
+
}
|
|
593
|
+
if (object.tx !== undefined && object.tx !== null) {
|
|
594
|
+
message.tx = Any.fromAmino(object.tx);
|
|
595
|
+
}
|
|
596
|
+
if (object.timestamp !== undefined && object.timestamp !== null) {
|
|
597
|
+
message.timestamp = object.timestamp;
|
|
598
|
+
}
|
|
599
|
+
message.events = object.events?.map(e => Event.fromAmino(e)) || [];
|
|
600
|
+
return message;
|
|
601
|
+
},
|
|
602
|
+
toAmino(message: TxResponse): TxResponseAmino {
|
|
603
|
+
const obj: any = {};
|
|
604
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
605
|
+
obj.txhash = message.txhash === "" ? undefined : message.txhash;
|
|
606
|
+
obj.codespace = message.codespace === "" ? undefined : message.codespace;
|
|
607
|
+
obj.code = message.code === 0 ? undefined : message.code;
|
|
608
|
+
obj.data = message.data === "" ? undefined : message.data;
|
|
609
|
+
obj.raw_log = message.rawLog === "" ? undefined : message.rawLog;
|
|
610
|
+
if (message.logs) {
|
|
611
|
+
obj.logs = message.logs.map(e => e ? ABCIMessageLog.toAmino(e) : undefined);
|
|
612
|
+
} else {
|
|
613
|
+
obj.logs = message.logs;
|
|
614
|
+
}
|
|
615
|
+
obj.info = message.info === "" ? undefined : message.info;
|
|
616
|
+
obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted?.toString() : undefined;
|
|
617
|
+
obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed?.toString() : undefined;
|
|
618
|
+
obj.tx = message.tx ? Any.toAmino(message.tx) : undefined;
|
|
619
|
+
obj.timestamp = message.timestamp === "" ? undefined : message.timestamp;
|
|
620
|
+
if (message.events) {
|
|
621
|
+
obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined);
|
|
622
|
+
} else {
|
|
623
|
+
obj.events = message.events;
|
|
624
|
+
}
|
|
625
|
+
return obj;
|
|
626
|
+
},
|
|
627
|
+
fromAminoMsg(object: TxResponseAminoMsg): TxResponse {
|
|
628
|
+
return TxResponse.fromAmino(object.value);
|
|
629
|
+
},
|
|
630
|
+
toAminoMsg(message: TxResponse): TxResponseAminoMsg {
|
|
631
|
+
return {
|
|
632
|
+
type: "cosmos-sdk/TxResponse",
|
|
633
|
+
value: TxResponse.toAmino(message)
|
|
634
|
+
};
|
|
635
|
+
},
|
|
636
|
+
fromProtoMsg(message: TxResponseProtoMsg): TxResponse {
|
|
637
|
+
return TxResponse.decode(message.value);
|
|
638
|
+
},
|
|
639
|
+
toProto(message: TxResponse): Uint8Array {
|
|
640
|
+
return TxResponse.encode(message).finish();
|
|
641
|
+
},
|
|
642
|
+
toProtoMsg(message: TxResponse): TxResponseProtoMsg {
|
|
643
|
+
return {
|
|
644
|
+
typeUrl: "/cosmos.base.abci.v1beta1.TxResponse",
|
|
645
|
+
value: TxResponse.encode(message).finish()
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
};
|
|
649
|
+
GlobalDecoderRegistry.register(TxResponse.typeUrl, TxResponse);
|
|
650
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(TxResponse.aminoType, TxResponse.typeUrl);
|
|
651
|
+
function createBaseABCIMessageLog(): ABCIMessageLog {
|
|
652
|
+
return {
|
|
653
|
+
msgIndex: 0,
|
|
654
|
+
log: "",
|
|
655
|
+
events: []
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
export const ABCIMessageLog = {
|
|
659
|
+
typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog",
|
|
660
|
+
aminoType: "cosmos-sdk/ABCIMessageLog",
|
|
661
|
+
is(o: any): o is ABCIMessageLog {
|
|
662
|
+
return o && (o.$typeUrl === ABCIMessageLog.typeUrl || typeof o.msgIndex === "number" && typeof o.log === "string" && Array.isArray(o.events) && (!o.events.length || StringEvent.is(o.events[0])));
|
|
663
|
+
},
|
|
664
|
+
isAmino(o: any): o is ABCIMessageLogAmino {
|
|
665
|
+
return o && (o.$typeUrl === ABCIMessageLog.typeUrl || typeof o.msg_index === "number" && typeof o.log === "string" && Array.isArray(o.events) && (!o.events.length || StringEvent.isAmino(o.events[0])));
|
|
666
|
+
},
|
|
667
|
+
encode(message: ABCIMessageLog, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
668
|
+
if (message.msgIndex !== 0) {
|
|
669
|
+
writer.uint32(8).uint32(message.msgIndex);
|
|
670
|
+
}
|
|
671
|
+
if (message.log !== "") {
|
|
672
|
+
writer.uint32(18).string(message.log);
|
|
673
|
+
}
|
|
674
|
+
for (const v of message.events) {
|
|
675
|
+
StringEvent.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
676
|
+
}
|
|
677
|
+
return writer;
|
|
678
|
+
},
|
|
679
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ABCIMessageLog {
|
|
680
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
681
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
682
|
+
const message = createBaseABCIMessageLog();
|
|
683
|
+
while (reader.pos < end) {
|
|
684
|
+
const tag = reader.uint32();
|
|
685
|
+
switch (tag >>> 3) {
|
|
686
|
+
case 1:
|
|
687
|
+
message.msgIndex = reader.uint32();
|
|
688
|
+
break;
|
|
689
|
+
case 2:
|
|
690
|
+
message.log = reader.string();
|
|
691
|
+
break;
|
|
692
|
+
case 3:
|
|
693
|
+
message.events.push(StringEvent.decode(reader, reader.uint32()));
|
|
694
|
+
break;
|
|
695
|
+
default:
|
|
696
|
+
reader.skipType(tag & 7);
|
|
697
|
+
break;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
return message;
|
|
701
|
+
},
|
|
702
|
+
fromPartial(object: DeepPartial<ABCIMessageLog>): ABCIMessageLog {
|
|
703
|
+
const message = createBaseABCIMessageLog();
|
|
704
|
+
message.msgIndex = object.msgIndex ?? 0;
|
|
705
|
+
message.log = object.log ?? "";
|
|
706
|
+
message.events = object.events?.map(e => StringEvent.fromPartial(e)) || [];
|
|
707
|
+
return message;
|
|
708
|
+
},
|
|
709
|
+
fromAmino(object: ABCIMessageLogAmino): ABCIMessageLog {
|
|
710
|
+
const message = createBaseABCIMessageLog();
|
|
711
|
+
if (object.msg_index !== undefined && object.msg_index !== null) {
|
|
712
|
+
message.msgIndex = object.msg_index;
|
|
713
|
+
}
|
|
714
|
+
if (object.log !== undefined && object.log !== null) {
|
|
715
|
+
message.log = object.log;
|
|
716
|
+
}
|
|
717
|
+
message.events = object.events?.map(e => StringEvent.fromAmino(e)) || [];
|
|
718
|
+
return message;
|
|
719
|
+
},
|
|
720
|
+
toAmino(message: ABCIMessageLog): ABCIMessageLogAmino {
|
|
721
|
+
const obj: any = {};
|
|
722
|
+
obj.msg_index = message.msgIndex ?? 0;
|
|
723
|
+
obj.log = message.log === "" ? undefined : message.log;
|
|
724
|
+
if (message.events) {
|
|
725
|
+
obj.events = message.events.map(e => e ? StringEvent.toAmino(e) : undefined);
|
|
726
|
+
} else {
|
|
727
|
+
obj.events = message.events;
|
|
728
|
+
}
|
|
729
|
+
return obj;
|
|
730
|
+
},
|
|
731
|
+
fromAminoMsg(object: ABCIMessageLogAminoMsg): ABCIMessageLog {
|
|
732
|
+
return ABCIMessageLog.fromAmino(object.value);
|
|
733
|
+
},
|
|
734
|
+
toAminoMsg(message: ABCIMessageLog): ABCIMessageLogAminoMsg {
|
|
735
|
+
return {
|
|
736
|
+
type: "cosmos-sdk/ABCIMessageLog",
|
|
737
|
+
value: ABCIMessageLog.toAmino(message)
|
|
738
|
+
};
|
|
739
|
+
},
|
|
740
|
+
fromProtoMsg(message: ABCIMessageLogProtoMsg): ABCIMessageLog {
|
|
741
|
+
return ABCIMessageLog.decode(message.value);
|
|
742
|
+
},
|
|
743
|
+
toProto(message: ABCIMessageLog): Uint8Array {
|
|
744
|
+
return ABCIMessageLog.encode(message).finish();
|
|
745
|
+
},
|
|
746
|
+
toProtoMsg(message: ABCIMessageLog): ABCIMessageLogProtoMsg {
|
|
747
|
+
return {
|
|
748
|
+
typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog",
|
|
749
|
+
value: ABCIMessageLog.encode(message).finish()
|
|
750
|
+
};
|
|
751
|
+
}
|
|
752
|
+
};
|
|
753
|
+
GlobalDecoderRegistry.register(ABCIMessageLog.typeUrl, ABCIMessageLog);
|
|
754
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ABCIMessageLog.aminoType, ABCIMessageLog.typeUrl);
|
|
755
|
+
function createBaseStringEvent(): StringEvent {
|
|
756
|
+
return {
|
|
757
|
+
type: "",
|
|
758
|
+
attributes: []
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
export const StringEvent = {
|
|
762
|
+
typeUrl: "/cosmos.base.abci.v1beta1.StringEvent",
|
|
763
|
+
aminoType: "cosmos-sdk/StringEvent",
|
|
764
|
+
is(o: any): o is StringEvent {
|
|
765
|
+
return o && (o.$typeUrl === StringEvent.typeUrl || typeof o.type === "string" && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.is(o.attributes[0])));
|
|
766
|
+
},
|
|
767
|
+
isAmino(o: any): o is StringEventAmino {
|
|
768
|
+
return o && (o.$typeUrl === StringEvent.typeUrl || typeof o.type === "string" && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.isAmino(o.attributes[0])));
|
|
769
|
+
},
|
|
770
|
+
encode(message: StringEvent, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
771
|
+
if (message.type !== "") {
|
|
772
|
+
writer.uint32(10).string(message.type);
|
|
773
|
+
}
|
|
774
|
+
for (const v of message.attributes) {
|
|
775
|
+
Attribute.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
776
|
+
}
|
|
777
|
+
return writer;
|
|
778
|
+
},
|
|
779
|
+
decode(input: BinaryReader | Uint8Array, length?: number): StringEvent {
|
|
780
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
781
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
782
|
+
const message = createBaseStringEvent();
|
|
783
|
+
while (reader.pos < end) {
|
|
784
|
+
const tag = reader.uint32();
|
|
785
|
+
switch (tag >>> 3) {
|
|
786
|
+
case 1:
|
|
787
|
+
message.type = reader.string();
|
|
788
|
+
break;
|
|
789
|
+
case 2:
|
|
790
|
+
message.attributes.push(Attribute.decode(reader, reader.uint32()));
|
|
791
|
+
break;
|
|
792
|
+
default:
|
|
793
|
+
reader.skipType(tag & 7);
|
|
794
|
+
break;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
return message;
|
|
798
|
+
},
|
|
799
|
+
fromPartial(object: DeepPartial<StringEvent>): StringEvent {
|
|
800
|
+
const message = createBaseStringEvent();
|
|
801
|
+
message.type = object.type ?? "";
|
|
802
|
+
message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
|
|
803
|
+
return message;
|
|
804
|
+
},
|
|
805
|
+
fromAmino(object: StringEventAmino): StringEvent {
|
|
806
|
+
const message = createBaseStringEvent();
|
|
807
|
+
if (object.type !== undefined && object.type !== null) {
|
|
808
|
+
message.type = object.type;
|
|
809
|
+
}
|
|
810
|
+
message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || [];
|
|
811
|
+
return message;
|
|
812
|
+
},
|
|
813
|
+
toAmino(message: StringEvent): StringEventAmino {
|
|
814
|
+
const obj: any = {};
|
|
815
|
+
obj.type = message.type === "" ? undefined : message.type;
|
|
816
|
+
if (message.attributes) {
|
|
817
|
+
obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined);
|
|
818
|
+
} else {
|
|
819
|
+
obj.attributes = message.attributes;
|
|
820
|
+
}
|
|
821
|
+
return obj;
|
|
822
|
+
},
|
|
823
|
+
fromAminoMsg(object: StringEventAminoMsg): StringEvent {
|
|
824
|
+
return StringEvent.fromAmino(object.value);
|
|
825
|
+
},
|
|
826
|
+
toAminoMsg(message: StringEvent): StringEventAminoMsg {
|
|
827
|
+
return {
|
|
828
|
+
type: "cosmos-sdk/StringEvent",
|
|
829
|
+
value: StringEvent.toAmino(message)
|
|
830
|
+
};
|
|
831
|
+
},
|
|
832
|
+
fromProtoMsg(message: StringEventProtoMsg): StringEvent {
|
|
833
|
+
return StringEvent.decode(message.value);
|
|
834
|
+
},
|
|
835
|
+
toProto(message: StringEvent): Uint8Array {
|
|
836
|
+
return StringEvent.encode(message).finish();
|
|
837
|
+
},
|
|
838
|
+
toProtoMsg(message: StringEvent): StringEventProtoMsg {
|
|
839
|
+
return {
|
|
840
|
+
typeUrl: "/cosmos.base.abci.v1beta1.StringEvent",
|
|
841
|
+
value: StringEvent.encode(message).finish()
|
|
842
|
+
};
|
|
843
|
+
}
|
|
844
|
+
};
|
|
845
|
+
GlobalDecoderRegistry.register(StringEvent.typeUrl, StringEvent);
|
|
846
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(StringEvent.aminoType, StringEvent.typeUrl);
|
|
847
|
+
function createBaseAttribute(): Attribute {
|
|
848
|
+
return {
|
|
849
|
+
key: "",
|
|
850
|
+
value: ""
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
export const Attribute = {
|
|
854
|
+
typeUrl: "/cosmos.base.abci.v1beta1.Attribute",
|
|
855
|
+
aminoType: "cosmos-sdk/Attribute",
|
|
856
|
+
is(o: any): o is Attribute {
|
|
857
|
+
return o && (o.$typeUrl === Attribute.typeUrl || typeof o.key === "string" && typeof o.value === "string");
|
|
858
|
+
},
|
|
859
|
+
isAmino(o: any): o is AttributeAmino {
|
|
860
|
+
return o && (o.$typeUrl === Attribute.typeUrl || typeof o.key === "string" && typeof o.value === "string");
|
|
861
|
+
},
|
|
862
|
+
encode(message: Attribute, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
863
|
+
if (message.key !== "") {
|
|
864
|
+
writer.uint32(10).string(message.key);
|
|
865
|
+
}
|
|
866
|
+
if (message.value !== "") {
|
|
867
|
+
writer.uint32(18).string(message.value);
|
|
868
|
+
}
|
|
869
|
+
return writer;
|
|
870
|
+
},
|
|
871
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Attribute {
|
|
872
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
873
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
874
|
+
const message = createBaseAttribute();
|
|
875
|
+
while (reader.pos < end) {
|
|
876
|
+
const tag = reader.uint32();
|
|
877
|
+
switch (tag >>> 3) {
|
|
878
|
+
case 1:
|
|
879
|
+
message.key = reader.string();
|
|
880
|
+
break;
|
|
881
|
+
case 2:
|
|
882
|
+
message.value = reader.string();
|
|
883
|
+
break;
|
|
884
|
+
default:
|
|
885
|
+
reader.skipType(tag & 7);
|
|
886
|
+
break;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
return message;
|
|
890
|
+
},
|
|
891
|
+
fromPartial(object: DeepPartial<Attribute>): Attribute {
|
|
892
|
+
const message = createBaseAttribute();
|
|
893
|
+
message.key = object.key ?? "";
|
|
894
|
+
message.value = object.value ?? "";
|
|
895
|
+
return message;
|
|
896
|
+
},
|
|
897
|
+
fromAmino(object: AttributeAmino): Attribute {
|
|
898
|
+
const message = createBaseAttribute();
|
|
899
|
+
if (object.key !== undefined && object.key !== null) {
|
|
900
|
+
message.key = object.key;
|
|
901
|
+
}
|
|
902
|
+
if (object.value !== undefined && object.value !== null) {
|
|
903
|
+
message.value = object.value;
|
|
904
|
+
}
|
|
905
|
+
return message;
|
|
906
|
+
},
|
|
907
|
+
toAmino(message: Attribute): AttributeAmino {
|
|
908
|
+
const obj: any = {};
|
|
909
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
910
|
+
obj.value = message.value === "" ? undefined : message.value;
|
|
911
|
+
return obj;
|
|
912
|
+
},
|
|
913
|
+
fromAminoMsg(object: AttributeAminoMsg): Attribute {
|
|
914
|
+
return Attribute.fromAmino(object.value);
|
|
915
|
+
},
|
|
916
|
+
toAminoMsg(message: Attribute): AttributeAminoMsg {
|
|
917
|
+
return {
|
|
918
|
+
type: "cosmos-sdk/Attribute",
|
|
919
|
+
value: Attribute.toAmino(message)
|
|
920
|
+
};
|
|
921
|
+
},
|
|
922
|
+
fromProtoMsg(message: AttributeProtoMsg): Attribute {
|
|
923
|
+
return Attribute.decode(message.value);
|
|
924
|
+
},
|
|
925
|
+
toProto(message: Attribute): Uint8Array {
|
|
926
|
+
return Attribute.encode(message).finish();
|
|
927
|
+
},
|
|
928
|
+
toProtoMsg(message: Attribute): AttributeProtoMsg {
|
|
929
|
+
return {
|
|
930
|
+
typeUrl: "/cosmos.base.abci.v1beta1.Attribute",
|
|
931
|
+
value: Attribute.encode(message).finish()
|
|
932
|
+
};
|
|
933
|
+
}
|
|
934
|
+
};
|
|
935
|
+
GlobalDecoderRegistry.register(Attribute.typeUrl, Attribute);
|
|
936
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Attribute.aminoType, Attribute.typeUrl);
|
|
937
|
+
function createBaseGasInfo(): GasInfo {
|
|
938
|
+
return {
|
|
939
|
+
gasWanted: BigInt(0),
|
|
940
|
+
gasUsed: BigInt(0)
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
export const GasInfo = {
|
|
944
|
+
typeUrl: "/cosmos.base.abci.v1beta1.GasInfo",
|
|
945
|
+
aminoType: "cosmos-sdk/GasInfo",
|
|
946
|
+
is(o: any): o is GasInfo {
|
|
947
|
+
return o && (o.$typeUrl === GasInfo.typeUrl || typeof o.gasWanted === "bigint" && typeof o.gasUsed === "bigint");
|
|
948
|
+
},
|
|
949
|
+
isAmino(o: any): o is GasInfoAmino {
|
|
950
|
+
return o && (o.$typeUrl === GasInfo.typeUrl || typeof o.gas_wanted === "bigint" && typeof o.gas_used === "bigint");
|
|
951
|
+
},
|
|
952
|
+
encode(message: GasInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
953
|
+
if (message.gasWanted !== BigInt(0)) {
|
|
954
|
+
writer.uint32(8).uint64(message.gasWanted);
|
|
955
|
+
}
|
|
956
|
+
if (message.gasUsed !== BigInt(0)) {
|
|
957
|
+
writer.uint32(16).uint64(message.gasUsed);
|
|
958
|
+
}
|
|
959
|
+
return writer;
|
|
960
|
+
},
|
|
961
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GasInfo {
|
|
962
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
963
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
964
|
+
const message = createBaseGasInfo();
|
|
965
|
+
while (reader.pos < end) {
|
|
966
|
+
const tag = reader.uint32();
|
|
967
|
+
switch (tag >>> 3) {
|
|
968
|
+
case 1:
|
|
969
|
+
message.gasWanted = reader.uint64();
|
|
970
|
+
break;
|
|
971
|
+
case 2:
|
|
972
|
+
message.gasUsed = reader.uint64();
|
|
973
|
+
break;
|
|
974
|
+
default:
|
|
975
|
+
reader.skipType(tag & 7);
|
|
976
|
+
break;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
return message;
|
|
980
|
+
},
|
|
981
|
+
fromPartial(object: DeepPartial<GasInfo>): GasInfo {
|
|
982
|
+
const message = createBaseGasInfo();
|
|
983
|
+
message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0);
|
|
984
|
+
message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0);
|
|
985
|
+
return message;
|
|
986
|
+
},
|
|
987
|
+
fromAmino(object: GasInfoAmino): GasInfo {
|
|
988
|
+
const message = createBaseGasInfo();
|
|
989
|
+
if (object.gas_wanted !== undefined && object.gas_wanted !== null) {
|
|
990
|
+
message.gasWanted = BigInt(object.gas_wanted);
|
|
991
|
+
}
|
|
992
|
+
if (object.gas_used !== undefined && object.gas_used !== null) {
|
|
993
|
+
message.gasUsed = BigInt(object.gas_used);
|
|
994
|
+
}
|
|
995
|
+
return message;
|
|
996
|
+
},
|
|
997
|
+
toAmino(message: GasInfo): GasInfoAmino {
|
|
998
|
+
const obj: any = {};
|
|
999
|
+
obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted?.toString() : undefined;
|
|
1000
|
+
obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed?.toString() : undefined;
|
|
1001
|
+
return obj;
|
|
1002
|
+
},
|
|
1003
|
+
fromAminoMsg(object: GasInfoAminoMsg): GasInfo {
|
|
1004
|
+
return GasInfo.fromAmino(object.value);
|
|
1005
|
+
},
|
|
1006
|
+
toAminoMsg(message: GasInfo): GasInfoAminoMsg {
|
|
1007
|
+
return {
|
|
1008
|
+
type: "cosmos-sdk/GasInfo",
|
|
1009
|
+
value: GasInfo.toAmino(message)
|
|
1010
|
+
};
|
|
1011
|
+
},
|
|
1012
|
+
fromProtoMsg(message: GasInfoProtoMsg): GasInfo {
|
|
1013
|
+
return GasInfo.decode(message.value);
|
|
1014
|
+
},
|
|
1015
|
+
toProto(message: GasInfo): Uint8Array {
|
|
1016
|
+
return GasInfo.encode(message).finish();
|
|
1017
|
+
},
|
|
1018
|
+
toProtoMsg(message: GasInfo): GasInfoProtoMsg {
|
|
1019
|
+
return {
|
|
1020
|
+
typeUrl: "/cosmos.base.abci.v1beta1.GasInfo",
|
|
1021
|
+
value: GasInfo.encode(message).finish()
|
|
1022
|
+
};
|
|
1023
|
+
}
|
|
1024
|
+
};
|
|
1025
|
+
GlobalDecoderRegistry.register(GasInfo.typeUrl, GasInfo);
|
|
1026
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(GasInfo.aminoType, GasInfo.typeUrl);
|
|
1027
|
+
function createBaseResult(): Result {
|
|
1028
|
+
return {
|
|
1029
|
+
data: new Uint8Array(),
|
|
1030
|
+
log: "",
|
|
1031
|
+
events: [],
|
|
1032
|
+
msgResponses: []
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
export const Result = {
|
|
1036
|
+
typeUrl: "/cosmos.base.abci.v1beta1.Result",
|
|
1037
|
+
aminoType: "cosmos-sdk/Result",
|
|
1038
|
+
is(o: any): o is Result {
|
|
1039
|
+
return o && (o.$typeUrl === Result.typeUrl || (o.data instanceof Uint8Array || typeof o.data === "string") && typeof o.log === "string" && Array.isArray(o.events) && (!o.events.length || Event.is(o.events[0])) && Array.isArray(o.msgResponses) && (!o.msgResponses.length || Any.is(o.msgResponses[0])));
|
|
1040
|
+
},
|
|
1041
|
+
isAmino(o: any): o is ResultAmino {
|
|
1042
|
+
return o && (o.$typeUrl === Result.typeUrl || (o.data instanceof Uint8Array || typeof o.data === "string") && typeof o.log === "string" && Array.isArray(o.events) && (!o.events.length || Event.isAmino(o.events[0])) && Array.isArray(o.msg_responses) && (!o.msg_responses.length || Any.isAmino(o.msg_responses[0])));
|
|
1043
|
+
},
|
|
1044
|
+
encode(message: Result, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1045
|
+
if (message.data.length !== 0) {
|
|
1046
|
+
writer.uint32(10).bytes(message.data);
|
|
1047
|
+
}
|
|
1048
|
+
if (message.log !== "") {
|
|
1049
|
+
writer.uint32(18).string(message.log);
|
|
1050
|
+
}
|
|
1051
|
+
for (const v of message.events) {
|
|
1052
|
+
Event.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
1053
|
+
}
|
|
1054
|
+
for (const v of message.msgResponses) {
|
|
1055
|
+
Any.encode(v!, writer.uint32(34).fork()).ldelim();
|
|
1056
|
+
}
|
|
1057
|
+
return writer;
|
|
1058
|
+
},
|
|
1059
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Result {
|
|
1060
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1061
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1062
|
+
const message = createBaseResult();
|
|
1063
|
+
while (reader.pos < end) {
|
|
1064
|
+
const tag = reader.uint32();
|
|
1065
|
+
switch (tag >>> 3) {
|
|
1066
|
+
case 1:
|
|
1067
|
+
message.data = reader.bytes();
|
|
1068
|
+
break;
|
|
1069
|
+
case 2:
|
|
1070
|
+
message.log = reader.string();
|
|
1071
|
+
break;
|
|
1072
|
+
case 3:
|
|
1073
|
+
message.events.push(Event.decode(reader, reader.uint32()));
|
|
1074
|
+
break;
|
|
1075
|
+
case 4:
|
|
1076
|
+
message.msgResponses.push(Any.decode(reader, reader.uint32()));
|
|
1077
|
+
break;
|
|
1078
|
+
default:
|
|
1079
|
+
reader.skipType(tag & 7);
|
|
1080
|
+
break;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
return message;
|
|
1084
|
+
},
|
|
1085
|
+
fromPartial(object: DeepPartial<Result>): Result {
|
|
1086
|
+
const message = createBaseResult();
|
|
1087
|
+
message.data = object.data ?? new Uint8Array();
|
|
1088
|
+
message.log = object.log ?? "";
|
|
1089
|
+
message.events = object.events?.map(e => Event.fromPartial(e)) || [];
|
|
1090
|
+
message.msgResponses = object.msgResponses?.map(e => Any.fromPartial(e)) || [];
|
|
1091
|
+
return message;
|
|
1092
|
+
},
|
|
1093
|
+
fromAmino(object: ResultAmino): Result {
|
|
1094
|
+
const message = createBaseResult();
|
|
1095
|
+
if (object.data !== undefined && object.data !== null) {
|
|
1096
|
+
message.data = bytesFromBase64(object.data);
|
|
1097
|
+
}
|
|
1098
|
+
if (object.log !== undefined && object.log !== null) {
|
|
1099
|
+
message.log = object.log;
|
|
1100
|
+
}
|
|
1101
|
+
message.events = object.events?.map(e => Event.fromAmino(e)) || [];
|
|
1102
|
+
message.msgResponses = object.msg_responses?.map(e => Any.fromAmino(e)) || [];
|
|
1103
|
+
return message;
|
|
1104
|
+
},
|
|
1105
|
+
toAmino(message: Result): ResultAmino {
|
|
1106
|
+
const obj: any = {};
|
|
1107
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
1108
|
+
obj.log = message.log === "" ? undefined : message.log;
|
|
1109
|
+
if (message.events) {
|
|
1110
|
+
obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined);
|
|
1111
|
+
} else {
|
|
1112
|
+
obj.events = message.events;
|
|
1113
|
+
}
|
|
1114
|
+
if (message.msgResponses) {
|
|
1115
|
+
obj.msg_responses = message.msgResponses.map(e => e ? Any.toAmino(e) : undefined);
|
|
1116
|
+
} else {
|
|
1117
|
+
obj.msg_responses = message.msgResponses;
|
|
1118
|
+
}
|
|
1119
|
+
return obj;
|
|
1120
|
+
},
|
|
1121
|
+
fromAminoMsg(object: ResultAminoMsg): Result {
|
|
1122
|
+
return Result.fromAmino(object.value);
|
|
1123
|
+
},
|
|
1124
|
+
toAminoMsg(message: Result): ResultAminoMsg {
|
|
1125
|
+
return {
|
|
1126
|
+
type: "cosmos-sdk/Result",
|
|
1127
|
+
value: Result.toAmino(message)
|
|
1128
|
+
};
|
|
1129
|
+
},
|
|
1130
|
+
fromProtoMsg(message: ResultProtoMsg): Result {
|
|
1131
|
+
return Result.decode(message.value);
|
|
1132
|
+
},
|
|
1133
|
+
toProto(message: Result): Uint8Array {
|
|
1134
|
+
return Result.encode(message).finish();
|
|
1135
|
+
},
|
|
1136
|
+
toProtoMsg(message: Result): ResultProtoMsg {
|
|
1137
|
+
return {
|
|
1138
|
+
typeUrl: "/cosmos.base.abci.v1beta1.Result",
|
|
1139
|
+
value: Result.encode(message).finish()
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
};
|
|
1143
|
+
GlobalDecoderRegistry.register(Result.typeUrl, Result);
|
|
1144
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Result.aminoType, Result.typeUrl);
|
|
1145
|
+
function createBaseSimulationResponse(): SimulationResponse {
|
|
1146
|
+
return {
|
|
1147
|
+
gasInfo: GasInfo.fromPartial({}),
|
|
1148
|
+
result: undefined
|
|
1149
|
+
};
|
|
1150
|
+
}
|
|
1151
|
+
export const SimulationResponse = {
|
|
1152
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse",
|
|
1153
|
+
aminoType: "cosmos-sdk/SimulationResponse",
|
|
1154
|
+
is(o: any): o is SimulationResponse {
|
|
1155
|
+
return o && (o.$typeUrl === SimulationResponse.typeUrl || GasInfo.is(o.gasInfo));
|
|
1156
|
+
},
|
|
1157
|
+
isAmino(o: any): o is SimulationResponseAmino {
|
|
1158
|
+
return o && (o.$typeUrl === SimulationResponse.typeUrl || GasInfo.isAmino(o.gas_info));
|
|
1159
|
+
},
|
|
1160
|
+
encode(message: SimulationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1161
|
+
if (message.gasInfo !== undefined) {
|
|
1162
|
+
GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim();
|
|
1163
|
+
}
|
|
1164
|
+
if (message.result !== undefined) {
|
|
1165
|
+
Result.encode(message.result, writer.uint32(18).fork()).ldelim();
|
|
1166
|
+
}
|
|
1167
|
+
return writer;
|
|
1168
|
+
},
|
|
1169
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SimulationResponse {
|
|
1170
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1171
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1172
|
+
const message = createBaseSimulationResponse();
|
|
1173
|
+
while (reader.pos < end) {
|
|
1174
|
+
const tag = reader.uint32();
|
|
1175
|
+
switch (tag >>> 3) {
|
|
1176
|
+
case 1:
|
|
1177
|
+
message.gasInfo = GasInfo.decode(reader, reader.uint32());
|
|
1178
|
+
break;
|
|
1179
|
+
case 2:
|
|
1180
|
+
message.result = Result.decode(reader, reader.uint32());
|
|
1181
|
+
break;
|
|
1182
|
+
default:
|
|
1183
|
+
reader.skipType(tag & 7);
|
|
1184
|
+
break;
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
return message;
|
|
1188
|
+
},
|
|
1189
|
+
fromPartial(object: DeepPartial<SimulationResponse>): SimulationResponse {
|
|
1190
|
+
const message = createBaseSimulationResponse();
|
|
1191
|
+
message.gasInfo = object.gasInfo !== undefined && object.gasInfo !== null ? GasInfo.fromPartial(object.gasInfo) : undefined;
|
|
1192
|
+
message.result = object.result !== undefined && object.result !== null ? Result.fromPartial(object.result) : undefined;
|
|
1193
|
+
return message;
|
|
1194
|
+
},
|
|
1195
|
+
fromAmino(object: SimulationResponseAmino): SimulationResponse {
|
|
1196
|
+
const message = createBaseSimulationResponse();
|
|
1197
|
+
if (object.gas_info !== undefined && object.gas_info !== null) {
|
|
1198
|
+
message.gasInfo = GasInfo.fromAmino(object.gas_info);
|
|
1199
|
+
}
|
|
1200
|
+
if (object.result !== undefined && object.result !== null) {
|
|
1201
|
+
message.result = Result.fromAmino(object.result);
|
|
1202
|
+
}
|
|
1203
|
+
return message;
|
|
1204
|
+
},
|
|
1205
|
+
toAmino(message: SimulationResponse): SimulationResponseAmino {
|
|
1206
|
+
const obj: any = {};
|
|
1207
|
+
obj.gas_info = message.gasInfo ? GasInfo.toAmino(message.gasInfo) : undefined;
|
|
1208
|
+
obj.result = message.result ? Result.toAmino(message.result) : undefined;
|
|
1209
|
+
return obj;
|
|
1210
|
+
},
|
|
1211
|
+
fromAminoMsg(object: SimulationResponseAminoMsg): SimulationResponse {
|
|
1212
|
+
return SimulationResponse.fromAmino(object.value);
|
|
1213
|
+
},
|
|
1214
|
+
toAminoMsg(message: SimulationResponse): SimulationResponseAminoMsg {
|
|
1215
|
+
return {
|
|
1216
|
+
type: "cosmos-sdk/SimulationResponse",
|
|
1217
|
+
value: SimulationResponse.toAmino(message)
|
|
1218
|
+
};
|
|
1219
|
+
},
|
|
1220
|
+
fromProtoMsg(message: SimulationResponseProtoMsg): SimulationResponse {
|
|
1221
|
+
return SimulationResponse.decode(message.value);
|
|
1222
|
+
},
|
|
1223
|
+
toProto(message: SimulationResponse): Uint8Array {
|
|
1224
|
+
return SimulationResponse.encode(message).finish();
|
|
1225
|
+
},
|
|
1226
|
+
toProtoMsg(message: SimulationResponse): SimulationResponseProtoMsg {
|
|
1227
|
+
return {
|
|
1228
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse",
|
|
1229
|
+
value: SimulationResponse.encode(message).finish()
|
|
1230
|
+
};
|
|
1231
|
+
}
|
|
1232
|
+
};
|
|
1233
|
+
GlobalDecoderRegistry.register(SimulationResponse.typeUrl, SimulationResponse);
|
|
1234
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(SimulationResponse.aminoType, SimulationResponse.typeUrl);
|
|
1235
|
+
function createBaseMsgData(): MsgData {
|
|
1236
|
+
return {
|
|
1237
|
+
msgType: "",
|
|
1238
|
+
data: new Uint8Array()
|
|
1239
|
+
};
|
|
1240
|
+
}
|
|
1241
|
+
export const MsgData = {
|
|
1242
|
+
typeUrl: "/cosmos.base.abci.v1beta1.MsgData",
|
|
1243
|
+
aminoType: "cosmos-sdk/MsgData",
|
|
1244
|
+
is(o: any): o is MsgData {
|
|
1245
|
+
return o && (o.$typeUrl === MsgData.typeUrl || typeof o.msgType === "string" && (o.data instanceof Uint8Array || typeof o.data === "string"));
|
|
1246
|
+
},
|
|
1247
|
+
isAmino(o: any): o is MsgDataAmino {
|
|
1248
|
+
return o && (o.$typeUrl === MsgData.typeUrl || typeof o.msg_type === "string" && (o.data instanceof Uint8Array || typeof o.data === "string"));
|
|
1249
|
+
},
|
|
1250
|
+
encode(message: MsgData, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1251
|
+
if (message.msgType !== "") {
|
|
1252
|
+
writer.uint32(10).string(message.msgType);
|
|
1253
|
+
}
|
|
1254
|
+
if (message.data.length !== 0) {
|
|
1255
|
+
writer.uint32(18).bytes(message.data);
|
|
1256
|
+
}
|
|
1257
|
+
return writer;
|
|
1258
|
+
},
|
|
1259
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgData {
|
|
1260
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1261
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1262
|
+
const message = createBaseMsgData();
|
|
1263
|
+
while (reader.pos < end) {
|
|
1264
|
+
const tag = reader.uint32();
|
|
1265
|
+
switch (tag >>> 3) {
|
|
1266
|
+
case 1:
|
|
1267
|
+
message.msgType = reader.string();
|
|
1268
|
+
break;
|
|
1269
|
+
case 2:
|
|
1270
|
+
message.data = reader.bytes();
|
|
1271
|
+
break;
|
|
1272
|
+
default:
|
|
1273
|
+
reader.skipType(tag & 7);
|
|
1274
|
+
break;
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
return message;
|
|
1278
|
+
},
|
|
1279
|
+
fromPartial(object: DeepPartial<MsgData>): MsgData {
|
|
1280
|
+
const message = createBaseMsgData();
|
|
1281
|
+
message.msgType = object.msgType ?? "";
|
|
1282
|
+
message.data = object.data ?? new Uint8Array();
|
|
1283
|
+
return message;
|
|
1284
|
+
},
|
|
1285
|
+
fromAmino(object: MsgDataAmino): MsgData {
|
|
1286
|
+
const message = createBaseMsgData();
|
|
1287
|
+
if (object.msg_type !== undefined && object.msg_type !== null) {
|
|
1288
|
+
message.msgType = object.msg_type;
|
|
1289
|
+
}
|
|
1290
|
+
if (object.data !== undefined && object.data !== null) {
|
|
1291
|
+
message.data = bytesFromBase64(object.data);
|
|
1292
|
+
}
|
|
1293
|
+
return message;
|
|
1294
|
+
},
|
|
1295
|
+
toAmino(message: MsgData): MsgDataAmino {
|
|
1296
|
+
const obj: any = {};
|
|
1297
|
+
obj.msg_type = message.msgType === "" ? undefined : message.msgType;
|
|
1298
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
1299
|
+
return obj;
|
|
1300
|
+
},
|
|
1301
|
+
fromAminoMsg(object: MsgDataAminoMsg): MsgData {
|
|
1302
|
+
return MsgData.fromAmino(object.value);
|
|
1303
|
+
},
|
|
1304
|
+
toAminoMsg(message: MsgData): MsgDataAminoMsg {
|
|
1305
|
+
return {
|
|
1306
|
+
type: "cosmos-sdk/MsgData",
|
|
1307
|
+
value: MsgData.toAmino(message)
|
|
1308
|
+
};
|
|
1309
|
+
},
|
|
1310
|
+
fromProtoMsg(message: MsgDataProtoMsg): MsgData {
|
|
1311
|
+
return MsgData.decode(message.value);
|
|
1312
|
+
},
|
|
1313
|
+
toProto(message: MsgData): Uint8Array {
|
|
1314
|
+
return MsgData.encode(message).finish();
|
|
1315
|
+
},
|
|
1316
|
+
toProtoMsg(message: MsgData): MsgDataProtoMsg {
|
|
1317
|
+
return {
|
|
1318
|
+
typeUrl: "/cosmos.base.abci.v1beta1.MsgData",
|
|
1319
|
+
value: MsgData.encode(message).finish()
|
|
1320
|
+
};
|
|
1321
|
+
}
|
|
1322
|
+
};
|
|
1323
|
+
GlobalDecoderRegistry.register(MsgData.typeUrl, MsgData);
|
|
1324
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgData.aminoType, MsgData.typeUrl);
|
|
1325
|
+
function createBaseTxMsgData(): TxMsgData {
|
|
1326
|
+
return {
|
|
1327
|
+
data: [],
|
|
1328
|
+
msgResponses: []
|
|
1329
|
+
};
|
|
1330
|
+
}
|
|
1331
|
+
export const TxMsgData = {
|
|
1332
|
+
typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData",
|
|
1333
|
+
aminoType: "cosmos-sdk/TxMsgData",
|
|
1334
|
+
is(o: any): o is TxMsgData {
|
|
1335
|
+
return o && (o.$typeUrl === TxMsgData.typeUrl || Array.isArray(o.data) && (!o.data.length || MsgData.is(o.data[0])) && Array.isArray(o.msgResponses) && (!o.msgResponses.length || Any.is(o.msgResponses[0])));
|
|
1336
|
+
},
|
|
1337
|
+
isAmino(o: any): o is TxMsgDataAmino {
|
|
1338
|
+
return o && (o.$typeUrl === TxMsgData.typeUrl || Array.isArray(o.data) && (!o.data.length || MsgData.isAmino(o.data[0])) && Array.isArray(o.msg_responses) && (!o.msg_responses.length || Any.isAmino(o.msg_responses[0])));
|
|
1339
|
+
},
|
|
1340
|
+
encode(message: TxMsgData, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1341
|
+
for (const v of message.data) {
|
|
1342
|
+
MsgData.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1343
|
+
}
|
|
1344
|
+
for (const v of message.msgResponses) {
|
|
1345
|
+
Any.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
1346
|
+
}
|
|
1347
|
+
return writer;
|
|
1348
|
+
},
|
|
1349
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TxMsgData {
|
|
1350
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1351
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1352
|
+
const message = createBaseTxMsgData();
|
|
1353
|
+
while (reader.pos < end) {
|
|
1354
|
+
const tag = reader.uint32();
|
|
1355
|
+
switch (tag >>> 3) {
|
|
1356
|
+
case 1:
|
|
1357
|
+
message.data.push(MsgData.decode(reader, reader.uint32()));
|
|
1358
|
+
break;
|
|
1359
|
+
case 2:
|
|
1360
|
+
message.msgResponses.push(Any.decode(reader, reader.uint32()));
|
|
1361
|
+
break;
|
|
1362
|
+
default:
|
|
1363
|
+
reader.skipType(tag & 7);
|
|
1364
|
+
break;
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
return message;
|
|
1368
|
+
},
|
|
1369
|
+
fromPartial(object: DeepPartial<TxMsgData>): TxMsgData {
|
|
1370
|
+
const message = createBaseTxMsgData();
|
|
1371
|
+
message.data = object.data?.map(e => MsgData.fromPartial(e)) || [];
|
|
1372
|
+
message.msgResponses = object.msgResponses?.map(e => Any.fromPartial(e)) || [];
|
|
1373
|
+
return message;
|
|
1374
|
+
},
|
|
1375
|
+
fromAmino(object: TxMsgDataAmino): TxMsgData {
|
|
1376
|
+
const message = createBaseTxMsgData();
|
|
1377
|
+
message.data = object.data?.map(e => MsgData.fromAmino(e)) || [];
|
|
1378
|
+
message.msgResponses = object.msg_responses?.map(e => Any.fromAmino(e)) || [];
|
|
1379
|
+
return message;
|
|
1380
|
+
},
|
|
1381
|
+
toAmino(message: TxMsgData): TxMsgDataAmino {
|
|
1382
|
+
const obj: any = {};
|
|
1383
|
+
if (message.data) {
|
|
1384
|
+
obj.data = message.data.map(e => e ? MsgData.toAmino(e) : undefined);
|
|
1385
|
+
} else {
|
|
1386
|
+
obj.data = message.data;
|
|
1387
|
+
}
|
|
1388
|
+
if (message.msgResponses) {
|
|
1389
|
+
obj.msg_responses = message.msgResponses.map(e => e ? Any.toAmino(e) : undefined);
|
|
1390
|
+
} else {
|
|
1391
|
+
obj.msg_responses = message.msgResponses;
|
|
1392
|
+
}
|
|
1393
|
+
return obj;
|
|
1394
|
+
},
|
|
1395
|
+
fromAminoMsg(object: TxMsgDataAminoMsg): TxMsgData {
|
|
1396
|
+
return TxMsgData.fromAmino(object.value);
|
|
1397
|
+
},
|
|
1398
|
+
toAminoMsg(message: TxMsgData): TxMsgDataAminoMsg {
|
|
1399
|
+
return {
|
|
1400
|
+
type: "cosmos-sdk/TxMsgData",
|
|
1401
|
+
value: TxMsgData.toAmino(message)
|
|
1402
|
+
};
|
|
1403
|
+
},
|
|
1404
|
+
fromProtoMsg(message: TxMsgDataProtoMsg): TxMsgData {
|
|
1405
|
+
return TxMsgData.decode(message.value);
|
|
1406
|
+
},
|
|
1407
|
+
toProto(message: TxMsgData): Uint8Array {
|
|
1408
|
+
return TxMsgData.encode(message).finish();
|
|
1409
|
+
},
|
|
1410
|
+
toProtoMsg(message: TxMsgData): TxMsgDataProtoMsg {
|
|
1411
|
+
return {
|
|
1412
|
+
typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData",
|
|
1413
|
+
value: TxMsgData.encode(message).finish()
|
|
1414
|
+
};
|
|
1415
|
+
}
|
|
1416
|
+
};
|
|
1417
|
+
GlobalDecoderRegistry.register(TxMsgData.typeUrl, TxMsgData);
|
|
1418
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(TxMsgData.aminoType, TxMsgData.typeUrl);
|
|
1419
|
+
function createBaseSearchTxsResult(): SearchTxsResult {
|
|
1420
|
+
return {
|
|
1421
|
+
totalCount: BigInt(0),
|
|
1422
|
+
count: BigInt(0),
|
|
1423
|
+
pageNumber: BigInt(0),
|
|
1424
|
+
pageTotal: BigInt(0),
|
|
1425
|
+
limit: BigInt(0),
|
|
1426
|
+
txs: []
|
|
1427
|
+
};
|
|
1428
|
+
}
|
|
1429
|
+
export const SearchTxsResult = {
|
|
1430
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult",
|
|
1431
|
+
aminoType: "cosmos-sdk/SearchTxsResult",
|
|
1432
|
+
is(o: any): o is SearchTxsResult {
|
|
1433
|
+
return o && (o.$typeUrl === SearchTxsResult.typeUrl || typeof o.totalCount === "bigint" && typeof o.count === "bigint" && typeof o.pageNumber === "bigint" && typeof o.pageTotal === "bigint" && typeof o.limit === "bigint" && Array.isArray(o.txs) && (!o.txs.length || TxResponse.is(o.txs[0])));
|
|
1434
|
+
},
|
|
1435
|
+
isAmino(o: any): o is SearchTxsResultAmino {
|
|
1436
|
+
return o && (o.$typeUrl === SearchTxsResult.typeUrl || typeof o.total_count === "bigint" && typeof o.count === "bigint" && typeof o.page_number === "bigint" && typeof o.page_total === "bigint" && typeof o.limit === "bigint" && Array.isArray(o.txs) && (!o.txs.length || TxResponse.isAmino(o.txs[0])));
|
|
1437
|
+
},
|
|
1438
|
+
encode(message: SearchTxsResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1439
|
+
if (message.totalCount !== BigInt(0)) {
|
|
1440
|
+
writer.uint32(8).uint64(message.totalCount);
|
|
1441
|
+
}
|
|
1442
|
+
if (message.count !== BigInt(0)) {
|
|
1443
|
+
writer.uint32(16).uint64(message.count);
|
|
1444
|
+
}
|
|
1445
|
+
if (message.pageNumber !== BigInt(0)) {
|
|
1446
|
+
writer.uint32(24).uint64(message.pageNumber);
|
|
1447
|
+
}
|
|
1448
|
+
if (message.pageTotal !== BigInt(0)) {
|
|
1449
|
+
writer.uint32(32).uint64(message.pageTotal);
|
|
1450
|
+
}
|
|
1451
|
+
if (message.limit !== BigInt(0)) {
|
|
1452
|
+
writer.uint32(40).uint64(message.limit);
|
|
1453
|
+
}
|
|
1454
|
+
for (const v of message.txs) {
|
|
1455
|
+
TxResponse.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
1456
|
+
}
|
|
1457
|
+
return writer;
|
|
1458
|
+
},
|
|
1459
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SearchTxsResult {
|
|
1460
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1461
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1462
|
+
const message = createBaseSearchTxsResult();
|
|
1463
|
+
while (reader.pos < end) {
|
|
1464
|
+
const tag = reader.uint32();
|
|
1465
|
+
switch (tag >>> 3) {
|
|
1466
|
+
case 1:
|
|
1467
|
+
message.totalCount = reader.uint64();
|
|
1468
|
+
break;
|
|
1469
|
+
case 2:
|
|
1470
|
+
message.count = reader.uint64();
|
|
1471
|
+
break;
|
|
1472
|
+
case 3:
|
|
1473
|
+
message.pageNumber = reader.uint64();
|
|
1474
|
+
break;
|
|
1475
|
+
case 4:
|
|
1476
|
+
message.pageTotal = reader.uint64();
|
|
1477
|
+
break;
|
|
1478
|
+
case 5:
|
|
1479
|
+
message.limit = reader.uint64();
|
|
1480
|
+
break;
|
|
1481
|
+
case 6:
|
|
1482
|
+
message.txs.push(TxResponse.decode(reader, reader.uint32()));
|
|
1483
|
+
break;
|
|
1484
|
+
default:
|
|
1485
|
+
reader.skipType(tag & 7);
|
|
1486
|
+
break;
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
return message;
|
|
1490
|
+
},
|
|
1491
|
+
fromPartial(object: DeepPartial<SearchTxsResult>): SearchTxsResult {
|
|
1492
|
+
const message = createBaseSearchTxsResult();
|
|
1493
|
+
message.totalCount = object.totalCount !== undefined && object.totalCount !== null ? BigInt(object.totalCount.toString()) : BigInt(0);
|
|
1494
|
+
message.count = object.count !== undefined && object.count !== null ? BigInt(object.count.toString()) : BigInt(0);
|
|
1495
|
+
message.pageNumber = object.pageNumber !== undefined && object.pageNumber !== null ? BigInt(object.pageNumber.toString()) : BigInt(0);
|
|
1496
|
+
message.pageTotal = object.pageTotal !== undefined && object.pageTotal !== null ? BigInt(object.pageTotal.toString()) : BigInt(0);
|
|
1497
|
+
message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0);
|
|
1498
|
+
message.txs = object.txs?.map(e => TxResponse.fromPartial(e)) || [];
|
|
1499
|
+
return message;
|
|
1500
|
+
},
|
|
1501
|
+
fromAmino(object: SearchTxsResultAmino): SearchTxsResult {
|
|
1502
|
+
const message = createBaseSearchTxsResult();
|
|
1503
|
+
if (object.total_count !== undefined && object.total_count !== null) {
|
|
1504
|
+
message.totalCount = BigInt(object.total_count);
|
|
1505
|
+
}
|
|
1506
|
+
if (object.count !== undefined && object.count !== null) {
|
|
1507
|
+
message.count = BigInt(object.count);
|
|
1508
|
+
}
|
|
1509
|
+
if (object.page_number !== undefined && object.page_number !== null) {
|
|
1510
|
+
message.pageNumber = BigInt(object.page_number);
|
|
1511
|
+
}
|
|
1512
|
+
if (object.page_total !== undefined && object.page_total !== null) {
|
|
1513
|
+
message.pageTotal = BigInt(object.page_total);
|
|
1514
|
+
}
|
|
1515
|
+
if (object.limit !== undefined && object.limit !== null) {
|
|
1516
|
+
message.limit = BigInt(object.limit);
|
|
1517
|
+
}
|
|
1518
|
+
message.txs = object.txs?.map(e => TxResponse.fromAmino(e)) || [];
|
|
1519
|
+
return message;
|
|
1520
|
+
},
|
|
1521
|
+
toAmino(message: SearchTxsResult): SearchTxsResultAmino {
|
|
1522
|
+
const obj: any = {};
|
|
1523
|
+
obj.total_count = message.totalCount !== BigInt(0) ? message.totalCount?.toString() : undefined;
|
|
1524
|
+
obj.count = message.count !== BigInt(0) ? message.count?.toString() : undefined;
|
|
1525
|
+
obj.page_number = message.pageNumber !== BigInt(0) ? message.pageNumber?.toString() : undefined;
|
|
1526
|
+
obj.page_total = message.pageTotal !== BigInt(0) ? message.pageTotal?.toString() : undefined;
|
|
1527
|
+
obj.limit = message.limit !== BigInt(0) ? message.limit?.toString() : undefined;
|
|
1528
|
+
if (message.txs) {
|
|
1529
|
+
obj.txs = message.txs.map(e => e ? TxResponse.toAmino(e) : undefined);
|
|
1530
|
+
} else {
|
|
1531
|
+
obj.txs = message.txs;
|
|
1532
|
+
}
|
|
1533
|
+
return obj;
|
|
1534
|
+
},
|
|
1535
|
+
fromAminoMsg(object: SearchTxsResultAminoMsg): SearchTxsResult {
|
|
1536
|
+
return SearchTxsResult.fromAmino(object.value);
|
|
1537
|
+
},
|
|
1538
|
+
toAminoMsg(message: SearchTxsResult): SearchTxsResultAminoMsg {
|
|
1539
|
+
return {
|
|
1540
|
+
type: "cosmos-sdk/SearchTxsResult",
|
|
1541
|
+
value: SearchTxsResult.toAmino(message)
|
|
1542
|
+
};
|
|
1543
|
+
},
|
|
1544
|
+
fromProtoMsg(message: SearchTxsResultProtoMsg): SearchTxsResult {
|
|
1545
|
+
return SearchTxsResult.decode(message.value);
|
|
1546
|
+
},
|
|
1547
|
+
toProto(message: SearchTxsResult): Uint8Array {
|
|
1548
|
+
return SearchTxsResult.encode(message).finish();
|
|
1549
|
+
},
|
|
1550
|
+
toProtoMsg(message: SearchTxsResult): SearchTxsResultProtoMsg {
|
|
1551
|
+
return {
|
|
1552
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult",
|
|
1553
|
+
value: SearchTxsResult.encode(message).finish()
|
|
1554
|
+
};
|
|
1555
|
+
}
|
|
1556
|
+
};
|
|
1557
|
+
GlobalDecoderRegistry.register(SearchTxsResult.typeUrl, SearchTxsResult);
|
|
1558
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(SearchTxsResult.aminoType, SearchTxsResult.typeUrl);
|
|
1559
|
+
function createBaseSearchBlocksResult(): SearchBlocksResult {
|
|
1560
|
+
return {
|
|
1561
|
+
totalCount: BigInt(0),
|
|
1562
|
+
count: BigInt(0),
|
|
1563
|
+
pageNumber: BigInt(0),
|
|
1564
|
+
pageTotal: BigInt(0),
|
|
1565
|
+
limit: BigInt(0),
|
|
1566
|
+
blocks: []
|
|
1567
|
+
};
|
|
1568
|
+
}
|
|
1569
|
+
export const SearchBlocksResult = {
|
|
1570
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SearchBlocksResult",
|
|
1571
|
+
aminoType: "cosmos-sdk/SearchBlocksResult",
|
|
1572
|
+
is(o: any): o is SearchBlocksResult {
|
|
1573
|
+
return o && (o.$typeUrl === SearchBlocksResult.typeUrl || typeof o.totalCount === "bigint" && typeof o.count === "bigint" && typeof o.pageNumber === "bigint" && typeof o.pageTotal === "bigint" && typeof o.limit === "bigint" && Array.isArray(o.blocks) && (!o.blocks.length || Block.is(o.blocks[0])));
|
|
1574
|
+
},
|
|
1575
|
+
isAmino(o: any): o is SearchBlocksResultAmino {
|
|
1576
|
+
return o && (o.$typeUrl === SearchBlocksResult.typeUrl || typeof o.total_count === "bigint" && typeof o.count === "bigint" && typeof o.page_number === "bigint" && typeof o.page_total === "bigint" && typeof o.limit === "bigint" && Array.isArray(o.blocks) && (!o.blocks.length || Block.isAmino(o.blocks[0])));
|
|
1577
|
+
},
|
|
1578
|
+
encode(message: SearchBlocksResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1579
|
+
if (message.totalCount !== BigInt(0)) {
|
|
1580
|
+
writer.uint32(8).int64(message.totalCount);
|
|
1581
|
+
}
|
|
1582
|
+
if (message.count !== BigInt(0)) {
|
|
1583
|
+
writer.uint32(16).int64(message.count);
|
|
1584
|
+
}
|
|
1585
|
+
if (message.pageNumber !== BigInt(0)) {
|
|
1586
|
+
writer.uint32(24).int64(message.pageNumber);
|
|
1587
|
+
}
|
|
1588
|
+
if (message.pageTotal !== BigInt(0)) {
|
|
1589
|
+
writer.uint32(32).int64(message.pageTotal);
|
|
1590
|
+
}
|
|
1591
|
+
if (message.limit !== BigInt(0)) {
|
|
1592
|
+
writer.uint32(40).int64(message.limit);
|
|
1593
|
+
}
|
|
1594
|
+
for (const v of message.blocks) {
|
|
1595
|
+
Block.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
1596
|
+
}
|
|
1597
|
+
return writer;
|
|
1598
|
+
},
|
|
1599
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SearchBlocksResult {
|
|
1600
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1601
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1602
|
+
const message = createBaseSearchBlocksResult();
|
|
1603
|
+
while (reader.pos < end) {
|
|
1604
|
+
const tag = reader.uint32();
|
|
1605
|
+
switch (tag >>> 3) {
|
|
1606
|
+
case 1:
|
|
1607
|
+
message.totalCount = reader.int64();
|
|
1608
|
+
break;
|
|
1609
|
+
case 2:
|
|
1610
|
+
message.count = reader.int64();
|
|
1611
|
+
break;
|
|
1612
|
+
case 3:
|
|
1613
|
+
message.pageNumber = reader.int64();
|
|
1614
|
+
break;
|
|
1615
|
+
case 4:
|
|
1616
|
+
message.pageTotal = reader.int64();
|
|
1617
|
+
break;
|
|
1618
|
+
case 5:
|
|
1619
|
+
message.limit = reader.int64();
|
|
1620
|
+
break;
|
|
1621
|
+
case 6:
|
|
1622
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
1623
|
+
break;
|
|
1624
|
+
default:
|
|
1625
|
+
reader.skipType(tag & 7);
|
|
1626
|
+
break;
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
return message;
|
|
1630
|
+
},
|
|
1631
|
+
fromPartial(object: DeepPartial<SearchBlocksResult>): SearchBlocksResult {
|
|
1632
|
+
const message = createBaseSearchBlocksResult();
|
|
1633
|
+
message.totalCount = object.totalCount !== undefined && object.totalCount !== null ? BigInt(object.totalCount.toString()) : BigInt(0);
|
|
1634
|
+
message.count = object.count !== undefined && object.count !== null ? BigInt(object.count.toString()) : BigInt(0);
|
|
1635
|
+
message.pageNumber = object.pageNumber !== undefined && object.pageNumber !== null ? BigInt(object.pageNumber.toString()) : BigInt(0);
|
|
1636
|
+
message.pageTotal = object.pageTotal !== undefined && object.pageTotal !== null ? BigInt(object.pageTotal.toString()) : BigInt(0);
|
|
1637
|
+
message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0);
|
|
1638
|
+
message.blocks = object.blocks?.map(e => Block.fromPartial(e)) || [];
|
|
1639
|
+
return message;
|
|
1640
|
+
},
|
|
1641
|
+
fromAmino(object: SearchBlocksResultAmino): SearchBlocksResult {
|
|
1642
|
+
const message = createBaseSearchBlocksResult();
|
|
1643
|
+
if (object.total_count !== undefined && object.total_count !== null) {
|
|
1644
|
+
message.totalCount = BigInt(object.total_count);
|
|
1645
|
+
}
|
|
1646
|
+
if (object.count !== undefined && object.count !== null) {
|
|
1647
|
+
message.count = BigInt(object.count);
|
|
1648
|
+
}
|
|
1649
|
+
if (object.page_number !== undefined && object.page_number !== null) {
|
|
1650
|
+
message.pageNumber = BigInt(object.page_number);
|
|
1651
|
+
}
|
|
1652
|
+
if (object.page_total !== undefined && object.page_total !== null) {
|
|
1653
|
+
message.pageTotal = BigInt(object.page_total);
|
|
1654
|
+
}
|
|
1655
|
+
if (object.limit !== undefined && object.limit !== null) {
|
|
1656
|
+
message.limit = BigInt(object.limit);
|
|
1657
|
+
}
|
|
1658
|
+
message.blocks = object.blocks?.map(e => Block.fromAmino(e)) || [];
|
|
1659
|
+
return message;
|
|
1660
|
+
},
|
|
1661
|
+
toAmino(message: SearchBlocksResult): SearchBlocksResultAmino {
|
|
1662
|
+
const obj: any = {};
|
|
1663
|
+
obj.total_count = message.totalCount !== BigInt(0) ? message.totalCount?.toString() : undefined;
|
|
1664
|
+
obj.count = message.count !== BigInt(0) ? message.count?.toString() : undefined;
|
|
1665
|
+
obj.page_number = message.pageNumber !== BigInt(0) ? message.pageNumber?.toString() : undefined;
|
|
1666
|
+
obj.page_total = message.pageTotal !== BigInt(0) ? message.pageTotal?.toString() : undefined;
|
|
1667
|
+
obj.limit = message.limit !== BigInt(0) ? message.limit?.toString() : undefined;
|
|
1668
|
+
if (message.blocks) {
|
|
1669
|
+
obj.blocks = message.blocks.map(e => e ? Block.toAmino(e) : undefined);
|
|
1670
|
+
} else {
|
|
1671
|
+
obj.blocks = message.blocks;
|
|
1672
|
+
}
|
|
1673
|
+
return obj;
|
|
1674
|
+
},
|
|
1675
|
+
fromAminoMsg(object: SearchBlocksResultAminoMsg): SearchBlocksResult {
|
|
1676
|
+
return SearchBlocksResult.fromAmino(object.value);
|
|
1677
|
+
},
|
|
1678
|
+
toAminoMsg(message: SearchBlocksResult): SearchBlocksResultAminoMsg {
|
|
1679
|
+
return {
|
|
1680
|
+
type: "cosmos-sdk/SearchBlocksResult",
|
|
1681
|
+
value: SearchBlocksResult.toAmino(message)
|
|
1682
|
+
};
|
|
1683
|
+
},
|
|
1684
|
+
fromProtoMsg(message: SearchBlocksResultProtoMsg): SearchBlocksResult {
|
|
1685
|
+
return SearchBlocksResult.decode(message.value);
|
|
1686
|
+
},
|
|
1687
|
+
toProto(message: SearchBlocksResult): Uint8Array {
|
|
1688
|
+
return SearchBlocksResult.encode(message).finish();
|
|
1689
|
+
},
|
|
1690
|
+
toProtoMsg(message: SearchBlocksResult): SearchBlocksResultProtoMsg {
|
|
1691
|
+
return {
|
|
1692
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SearchBlocksResult",
|
|
1693
|
+
value: SearchBlocksResult.encode(message).finish()
|
|
1694
|
+
};
|
|
1695
|
+
}
|
|
1696
|
+
};
|
|
1697
|
+
GlobalDecoderRegistry.register(SearchBlocksResult.typeUrl, SearchBlocksResult);
|
|
1698
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(SearchBlocksResult.aminoType, SearchBlocksResult.typeUrl);
|