@xpla/xplajs 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 +11 -0
- package/README.md +32 -0
- package/package.json +32 -0
- package/src/amino/amino.d.ts +1 -0
- package/src/amino/amino.js +2 -0
- package/src/amino/amino.ts +1 -0
- package/src/binary.d.ts +130 -0
- package/src/binary.js +370 -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.Query.ts +30 -0
- package/src/cosmos/app/v1alpha1/query.rpc.func.ts +9 -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.d.ts +177 -0
- package/src/cosmos/auth/v1beta1/auth.js +445 -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.d.ts +810 -0
- package/src/cosmos/auth/v1beta1/query.js +1561 -0
- package/src/cosmos/auth/v1beta1/query.lcd.ts +94 -0
- package/src/cosmos/auth/v1beta1/query.rpc.Query.ts +179 -0
- package/src/cosmos/auth/v1beta1/query.rpc.func.d.ts +12 -0
- package/src/cosmos/auth/v1beta1/query.rpc.func.js +85 -0
- package/src/cosmos/auth/v1beta1/query.rpc.func.ts +72 -0
- package/src/cosmos/auth/v1beta1/query.ts +2034 -0
- package/src/cosmos/auth/v1beta1/tx.amino.ts +8 -0
- package/src/cosmos/auth/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/auth/v1beta1/tx.rpc.func.ts +9 -0
- package/src/cosmos/auth/v1beta1/tx.rpc.msg.ts +31 -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.d.ts +177 -0
- package/src/cosmos/authz/v1beta1/authz.js +371 -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.lcd.ts +59 -0
- package/src/cosmos/authz/v1beta1/query.rpc.Query.ts +64 -0
- package/src/cosmos/authz/v1beta1/query.rpc.func.ts +23 -0
- package/src/cosmos/authz/v1beta1/query.ts +707 -0
- package/src/cosmos/authz/v1beta1/tx.amino.ts +18 -0
- package/src/cosmos/authz/v1beta1/tx.d.ts +240 -0
- package/src/cosmos/authz/v1beta1/tx.js +516 -0
- package/src/cosmos/authz/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.func.d.ts +5 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.func.js +27 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +21 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.msg.ts +57 -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.Query.ts +31 -0
- package/src/cosmos/autocli/v1/query.rpc.func.ts +9 -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.d.ts +371 -0
- package/src/cosmos/bank/v1beta1/bank.js +726 -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.d.ts +1159 -0
- package/src/cosmos/bank/v1beta1/query.js +2317 -0
- package/src/cosmos/bank/v1beta1/query.lcd.ts +194 -0
- package/src/cosmos/bank/v1beta1/query.rpc.Query.ts +258 -0
- package/src/cosmos/bank/v1beta1/query.rpc.func.d.ts +15 -0
- package/src/cosmos/bank/v1beta1/query.rpc.func.js +109 -0
- package/src/cosmos/bank/v1beta1/query.rpc.func.ts +93 -0
- package/src/cosmos/bank/v1beta1/query.ts +3027 -0
- package/src/cosmos/bank/v1beta1/tx.amino.ts +23 -0
- package/src/cosmos/bank/v1beta1/tx.d.ts +342 -0
- package/src/cosmos/bank/v1beta1/tx.js +666 -0
- package/src/cosmos/bank/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.func.d.ts +6 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.func.js +34 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +27 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.msg.ts +67 -0
- package/src/cosmos/bank/v1beta1/tx.ts +861 -0
- package/src/cosmos/base/abci/v1beta1/abci.d.ts +599 -0
- package/src/cosmos/base/abci/v1beta1/abci.js +1293 -0
- package/src/cosmos/base/abci/v1beta1/abci.ts +1698 -0
- package/src/cosmos/base/grpc/v2/service.rpc.Service.ts +41 -0
- package/src/cosmos/base/grpc/v2/service.rpc.func.ts +16 -0
- package/src/cosmos/base/grpc/v2/service.ts +473 -0
- package/src/cosmos/base/node/v1beta1/query.lcd.ts +22 -0
- package/src/cosmos/base/node/v1beta1/query.rpc.Service.ts +41 -0
- package/src/cosmos/base/node/v1beta1/query.rpc.func.ts +16 -0
- package/src/cosmos/base/node/v1beta1/query.ts +454 -0
- package/src/cosmos/base/query/v1beta1/pagination.d.ts +176 -0
- package/src/cosmos/base/query/v1beta1/pagination.js +222 -0
- package/src/cosmos/base/query/v1beta1/pagination.ts +361 -0
- package/src/cosmos/base/reflection/v1beta1/reflection.rpc.func.ts +16 -0
- package/src/cosmos/base/reflection/v1beta1/reflection.ts +382 -0
- package/src/cosmos/base/reflection/v2alpha1/reflection.rpc.func.ts +44 -0
- package/src/cosmos/base/reflection/v2alpha1/reflection.ts +2727 -0
- package/src/cosmos/base/tendermint/v1beta1/query.lcd.ts +81 -0
- package/src/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +108 -0
- package/src/cosmos/base/tendermint/v1beta1/query.rpc.func.ts +51 -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.d.ts +166 -0
- package/src/cosmos/base/v1beta1/coin.js +341 -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.lcd.ts +36 -0
- package/src/cosmos/circuit/v1/query.rpc.Query.ts +54 -0
- package/src/cosmos/circuit/v1/query.rpc.func.ts +23 -0
- package/src/cosmos/circuit/v1/query.ts +574 -0
- package/src/cosmos/circuit/v1/tx.amino.ts +18 -0
- package/src/cosmos/circuit/v1/tx.registry.ts +3 -0
- package/src/cosmos/circuit/v1/tx.rpc.func.ts +21 -0
- package/src/cosmos/circuit/v1/tx.rpc.msg.ts +47 -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.lcd.ts +17 -0
- package/src/cosmos/consensus/v1/query.rpc.Query.ts +30 -0
- package/src/cosmos/consensus/v1/query.rpc.func.ts +9 -0
- package/src/cosmos/consensus/v1/query.ts +185 -0
- package/src/cosmos/consensus/v1/tx.amino.ts +8 -0
- package/src/cosmos/consensus/v1/tx.registry.ts +3 -0
- package/src/cosmos/consensus/v1/tx.rpc.func.ts +9 -0
- package/src/cosmos/consensus/v1/tx.rpc.msg.ts +31 -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.amino.ts +13 -0
- package/src/cosmos/crisis/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/crisis/v1beta1/tx.rpc.func.ts +15 -0
- package/src/cosmos/crisis/v1beta1/tx.rpc.msg.ts +39 -0
- package/src/cosmos/crisis/v1beta1/tx.ts +416 -0
- package/src/cosmos/crypto/ed25519/keys.d.ts +84 -0
- package/src/cosmos/crypto/ed25519/keys.js +162 -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.d.ts +86 -0
- package/src/cosmos/crypto/multisig/v1beta1/multisig.js +177 -0
- package/src/cosmos/crypto/multisig/v1beta1/multisig.ts +225 -0
- package/src/cosmos/crypto/secp256k1/keys.d.ts +78 -0
- package/src/cosmos/crypto/secp256k1/keys.js +162 -0
- package/src/cosmos/crypto/secp256k1/keys.ts +203 -0
- package/src/cosmos/crypto/secp256r1/keys.d.ts +76 -0
- package/src/cosmos/crypto/secp256r1/keys.js +162 -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.d.ts +541 -0
- package/src/cosmos/distribution/v1beta1/distribution.js +1158 -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.lcd.ts +76 -0
- package/src/cosmos/distribution/v1beta1/query.rpc.Query.ts +133 -0
- package/src/cosmos/distribution/v1beta1/query.rpc.func.ts +72 -0
- package/src/cosmos/distribution/v1beta1/query.ts +2126 -0
- package/src/cosmos/distribution/v1beta1/tx.amino.ts +38 -0
- package/src/cosmos/distribution/v1beta1/tx.d.ts +578 -0
- package/src/cosmos/distribution/v1beta1/tx.js +1145 -0
- package/src/cosmos/distribution/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.d.ts +9 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.js +55 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +45 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.msg.ts +115 -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.lcd.ts +37 -0
- package/src/cosmos/evidence/v1beta1/query.rpc.Query.ts +43 -0
- package/src/cosmos/evidence/v1beta1/query.rpc.func.ts +16 -0
- package/src/cosmos/evidence/v1beta1/query.ts +451 -0
- package/src/cosmos/evidence/v1beta1/tx.amino.ts +8 -0
- package/src/cosmos/evidence/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/evidence/v1beta1/tx.rpc.func.ts +9 -0
- package/src/cosmos/evidence/v1beta1/tx.rpc.msg.ts +27 -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.lcd.ts +42 -0
- package/src/cosmos/feegrant/v1beta1/query.rpc.Query.ts +58 -0
- package/src/cosmos/feegrant/v1beta1/query.rpc.func.ts +23 -0
- package/src/cosmos/feegrant/v1beta1/query.ts +677 -0
- package/src/cosmos/feegrant/v1beta1/tx.amino.ts +18 -0
- package/src/cosmos/feegrant/v1beta1/tx.d.ts +232 -0
- package/src/cosmos/feegrant/v1beta1/tx.js +471 -0
- package/src/cosmos/feegrant/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.d.ts +5 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.js +27 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +21 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +53 -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.d.ts +696 -0
- package/src/cosmos/gov/v1/gov.js +1363 -0
- package/src/cosmos/gov/v1/gov.ts +1843 -0
- package/src/cosmos/gov/v1/query.lcd.ts +85 -0
- package/src/cosmos/gov/v1/query.rpc.Query.ts +118 -0
- package/src/cosmos/gov/v1/query.rpc.func.ts +65 -0
- package/src/cosmos/gov/v1/query.ts +1970 -0
- package/src/cosmos/gov/v1/tx.amino.ts +38 -0
- package/src/cosmos/gov/v1/tx.d.ts +624 -0
- package/src/cosmos/gov/v1/tx.js +1277 -0
- package/src/cosmos/gov/v1/tx.registry.ts +3 -0
- package/src/cosmos/gov/v1/tx.rpc.func.d.ts +9 -0
- package/src/cosmos/gov/v1/tx.rpc.func.js +55 -0
- package/src/cosmos/gov/v1/tx.rpc.func.ts +45 -0
- package/src/cosmos/gov/v1/tx.rpc.msg.ts +89 -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.d.ts +522 -0
- package/src/cosmos/gov/v1beta1/gov.js +1114 -0
- package/src/cosmos/gov/v1beta1/gov.ts +1425 -0
- package/src/cosmos/gov/v1beta1/query.d.ts +606 -0
- package/src/cosmos/gov/v1beta1/query.js +1409 -0
- package/src/cosmos/gov/v1beta1/query.lcd.ts +80 -0
- package/src/cosmos/gov/v1beta1/query.rpc.Query.ts +107 -0
- package/src/cosmos/gov/v1beta1/query.rpc.func.d.ts +10 -0
- package/src/cosmos/gov/v1beta1/query.rpc.func.js +69 -0
- package/src/cosmos/gov/v1beta1/query.rpc.func.ts +58 -0
- package/src/cosmos/gov/v1beta1/query.ts +1749 -0
- package/src/cosmos/gov/v1beta1/tx.amino.ts +23 -0
- package/src/cosmos/gov/v1beta1/tx.d.ts +325 -0
- package/src/cosmos/gov/v1beta1/tx.js +699 -0
- package/src/cosmos/gov/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.func.d.ts +6 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.func.js +34 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +27 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.msg.ts +53 -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.lcd.ts +145 -0
- package/src/cosmos/group/v1/query.rpc.Query.ts +191 -0
- package/src/cosmos/group/v1/query.rpc.func.ts +100 -0
- package/src/cosmos/group/v1/query.ts +3015 -0
- package/src/cosmos/group/v1/tx.amino.ts +73 -0
- package/src/cosmos/group/v1/tx.d.ts +1140 -0
- package/src/cosmos/group/v1/tx.js +2567 -0
- package/src/cosmos/group/v1/tx.registry.ts +3 -0
- package/src/cosmos/group/v1/tx.rpc.func.d.ts +16 -0
- package/src/cosmos/group/v1/tx.rpc.func.js +104 -0
- package/src/cosmos/group/v1/tx.rpc.func.ts +87 -0
- package/src/cosmos/group/v1/tx.rpc.msg.ts +127 -0
- package/src/cosmos/group/v1/tx.ts +3207 -0
- package/src/cosmos/group/v1/types.d.ts +799 -0
- package/src/cosmos/group/v1/types.js +1542 -0
- package/src/cosmos/group/v1/types.ts +2081 -0
- package/src/cosmos/ics23/v1/proofs.d.ts +730 -0
- package/src/cosmos/ics23/v1/proofs.js +1605 -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.lcd.ts +27 -0
- package/src/cosmos/mint/v1beta1/query.rpc.Query.ts +52 -0
- package/src/cosmos/mint/v1beta1/query.rpc.func.ts +23 -0
- package/src/cosmos/mint/v1beta1/query.ts +541 -0
- package/src/cosmos/mint/v1beta1/tx.amino.ts +8 -0
- package/src/cosmos/mint/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/mint/v1beta1/tx.rpc.func.ts +9 -0
- package/src/cosmos/mint/v1beta1/tx.rpc.msg.ts +31 -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.d.ts +1 -0
- package/src/cosmos/msg/v1/msg.js +2 -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.lcd.ts +69 -0
- package/src/cosmos/nft/v1beta1/query.rpc.Query.ts +102 -0
- package/src/cosmos/nft/v1beta1/query.rpc.func.ts +51 -0
- package/src/cosmos/nft/v1beta1/query.ts +1465 -0
- package/src/cosmos/nft/v1beta1/tx.amino.ts +8 -0
- package/src/cosmos/nft/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/nft/v1beta1/tx.rpc.func.ts +9 -0
- package/src/cosmos/nft/v1beta1/tx.rpc.msg.ts +23 -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.Query.ts +41 -0
- package/src/cosmos/orm/query/v1alpha1/query.rpc.func.ts +16 -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.lcd.ts +34 -0
- package/src/cosmos/params/v1beta1/query.rpc.Query.ts +51 -0
- package/src/cosmos/params/v1beta1/query.rpc.func.ts +16 -0
- package/src/cosmos/params/v1beta1/query.ts +525 -0
- package/src/cosmos/query/v1/query.d.ts +1 -0
- package/src/cosmos/query/v1/query.js +2 -0
- package/src/cosmos/query/v1/query.ts +1 -0
- package/src/cosmos/reflection/v1/reflection.rpc.func.ts +9 -0
- package/src/cosmos/reflection/v1/reflection.ts +179 -0
- package/src/cosmos/rpc.query.ts +29 -0
- package/src/cosmos/rpc.tx.ts +34 -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.lcd.ts +36 -0
- package/src/cosmos/slashing/v1beta1/query.rpc.Query.ts +54 -0
- package/src/cosmos/slashing/v1beta1/query.rpc.func.ts +23 -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.amino.ts +13 -0
- package/src/cosmos/slashing/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/slashing/v1beta1/tx.rpc.func.ts +15 -0
- package/src/cosmos/slashing/v1beta1/tx.rpc.msg.ts +45 -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.d.ts +1124 -0
- package/src/cosmos/staking/v1beta1/query.js +2414 -0
- package/src/cosmos/staking/v1beta1/query.lcd.ts +159 -0
- package/src/cosmos/staking/v1beta1/query.rpc.Query.ts +241 -0
- package/src/cosmos/staking/v1beta1/query.rpc.func.d.ts +16 -0
- package/src/cosmos/staking/v1beta1/query.rpc.func.js +117 -0
- package/src/cosmos/staking/v1beta1/query.rpc.func.ts +100 -0
- package/src/cosmos/staking/v1beta1/query.ts +3073 -0
- package/src/cosmos/staking/v1beta1/staking.d.ts +1024 -0
- package/src/cosmos/staking/v1beta1/staking.js +2371 -0
- package/src/cosmos/staking/v1beta1/staking.ts +3005 -0
- package/src/cosmos/staking/v1beta1/tx.amino.ts +38 -0
- package/src/cosmos/staking/v1beta1/tx.d.ts +590 -0
- package/src/cosmos/staking/v1beta1/tx.js +1290 -0
- package/src/cosmos/staking/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.func.d.ts +9 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.func.js +55 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +45 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.msg.ts +97 -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.d.ts +270 -0
- package/src/cosmos/tx/signing/v1beta1/signing.js +570 -0
- package/src/cosmos/tx/signing/v1beta1/signing.ts +688 -0
- package/src/cosmos/tx/v1beta1/service.d.ts +916 -0
- package/src/cosmos/tx/v1beta1/service.js +1729 -0
- package/src/cosmos/tx/v1beta1/service.lcd.ts +57 -0
- package/src/cosmos/tx/v1beta1/service.rpc.Service.ts +148 -0
- package/src/cosmos/tx/v1beta1/service.rpc.func.d.ts +11 -0
- package/src/cosmos/tx/v1beta1/service.rpc.func.js +77 -0
- package/src/cosmos/tx/v1beta1/service.rpc.func.ts +65 -0
- package/src/cosmos/tx/v1beta1/service.ts +2294 -0
- package/src/cosmos/tx/v1beta1/tx.d.ts +856 -0
- package/src/cosmos/tx/v1beta1/tx.js +1398 -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.lcd.ts +52 -0
- package/src/cosmos/upgrade/v1beta1/query.rpc.Query.ts +98 -0
- package/src/cosmos/upgrade/v1beta1/query.rpc.func.ts +37 -0
- package/src/cosmos/upgrade/v1beta1/query.ts +1016 -0
- package/src/cosmos/upgrade/v1beta1/tx.amino.ts +13 -0
- package/src/cosmos/upgrade/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/upgrade/v1beta1/tx.rpc.func.ts +15 -0
- package/src/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +45 -0
- package/src/cosmos/upgrade/v1beta1/tx.ts +398 -0
- package/src/cosmos/upgrade/v1beta1/upgrade.d.ts +245 -0
- package/src/cosmos/upgrade/v1beta1/upgrade.js +416 -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.amino.ts +18 -0
- package/src/cosmos/vesting/v1beta1/tx.d.ts +256 -0
- package/src/cosmos/vesting/v1beta1/tx.js +553 -0
- package/src/cosmos/vesting/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.func.d.ts +5 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.func.js +27 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.func.ts +21 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.msg.ts +59 -0
- package/src/cosmos/vesting/v1beta1/tx.ts +698 -0
- package/src/cosmos/vesting/v1beta1/vesting.d.ts +256 -0
- package/src/cosmos/vesting/v1beta1/vesting.js +586 -0
- package/src/cosmos/vesting/v1beta1/vesting.ts +735 -0
- package/src/cosmos_proto/cosmos.d.ts +153 -0
- package/src/cosmos_proto/cosmos.js +234 -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.lcd.ts +108 -0
- package/src/cosmwasm/wasm/v1/query.rpc.Query.ts +144 -0
- package/src/cosmwasm/wasm/v1/query.rpc.func.ts +79 -0
- package/src/cosmwasm/wasm/v1/query.ts +2560 -0
- package/src/cosmwasm/wasm/v1/tx.amino.ts +88 -0
- package/src/cosmwasm/wasm/v1/tx.registry.ts +3 -0
- package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +105 -0
- package/src/cosmwasm/wasm/v1/tx.rpc.msg.ts +225 -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.d.ts +80 -0
- package/src/ethermint/crypto/v1/ethsecp256k1/keys.js +146 -0
- package/src/ethermint/crypto/v1/ethsecp256k1/keys.ts +193 -0
- package/src/ethermint/evm/v1/events.d.ts +162 -0
- package/src/ethermint/evm/v1/events.js +384 -0
- package/src/ethermint/evm/v1/events.ts +485 -0
- package/src/ethermint/evm/v1/evm.d.ts +530 -0
- package/src/ethermint/evm/v1/evm.js +1184 -0
- package/src/ethermint/evm/v1/evm.ts +1590 -0
- package/src/ethermint/evm/v1/genesis.d.ts +87 -0
- package/src/ethermint/evm/v1/genesis.js +188 -0
- package/src/ethermint/evm/v1/genesis.ts +240 -0
- package/src/ethermint/evm/v1/query.d.ts +913 -0
- package/src/ethermint/evm/v1/query.js +1973 -0
- package/src/ethermint/evm/v1/query.lcd.ts +157 -0
- package/src/ethermint/evm/v1/query.rpc.Query.ts +164 -0
- package/src/ethermint/evm/v1/query.rpc.func.d.ts +15 -0
- package/src/ethermint/evm/v1/query.rpc.func.js +102 -0
- package/src/ethermint/evm/v1/query.rpc.func.ts +87 -0
- package/src/ethermint/evm/v1/query.ts +2535 -0
- package/src/ethermint/evm/v1/tx.amino.ts +13 -0
- package/src/ethermint/evm/v1/tx.d.ts +452 -0
- package/src/ethermint/evm/v1/tx.js +1011 -0
- package/src/ethermint/evm/v1/tx.registry.ts +3 -0
- package/src/ethermint/evm/v1/tx.rpc.func.d.ts +4 -0
- package/src/ethermint/evm/v1/tx.rpc.func.js +20 -0
- package/src/ethermint/evm/v1/tx.rpc.func.ts +15 -0
- package/src/ethermint/evm/v1/tx.rpc.msg.ts +35 -0
- package/src/ethermint/evm/v1/tx.ts +1333 -0
- package/src/ethermint/feemarket/v1/events.d.ts +70 -0
- package/src/ethermint/feemarket/v1/events.js +157 -0
- package/src/ethermint/feemarket/v1/events.ts +195 -0
- package/src/ethermint/feemarket/v1/feemarket.d.ts +78 -0
- package/src/ethermint/feemarket/v1/feemarket.js +155 -0
- package/src/ethermint/feemarket/v1/feemarket.ts +213 -0
- package/src/ethermint/feemarket/v1/genesis.d.ts +45 -0
- package/src/ethermint/feemarket/v1/genesis.js +88 -0
- package/src/ethermint/feemarket/v1/genesis.ts +114 -0
- package/src/ethermint/feemarket/v1/query.d.ts +195 -0
- package/src/ethermint/feemarket/v1/query.js +387 -0
- package/src/ethermint/feemarket/v1/query.lcd.ts +27 -0
- package/src/ethermint/feemarket/v1/query.rpc.Query.ts +52 -0
- package/src/ethermint/feemarket/v1/query.rpc.func.d.ts +5 -0
- package/src/ethermint/feemarket/v1/query.rpc.func.js +29 -0
- package/src/ethermint/feemarket/v1/query.rpc.func.ts +23 -0
- package/src/ethermint/feemarket/v1/query.ts +487 -0
- package/src/ethermint/feemarket/v1/tx.amino.ts +8 -0
- package/src/ethermint/feemarket/v1/tx.d.ts +81 -0
- package/src/ethermint/feemarket/v1/tx.js +153 -0
- package/src/ethermint/feemarket/v1/tx.registry.ts +3 -0
- package/src/ethermint/feemarket/v1/tx.rpc.func.d.ts +3 -0
- package/src/ethermint/feemarket/v1/tx.rpc.func.js +13 -0
- package/src/ethermint/feemarket/v1/tx.rpc.func.ts +9 -0
- package/src/ethermint/feemarket/v1/tx.rpc.msg.ts +27 -0
- package/src/ethermint/feemarket/v1/tx.ts +197 -0
- package/src/ethermint/types/v1/account.d.ts +45 -0
- package/src/ethermint/types/v1/account.js +88 -0
- package/src/ethermint/types/v1/account.ts +114 -0
- package/src/ethermint/types/v1/dynamic_fee.d.ts +34 -0
- package/src/ethermint/types/v1/dynamic_fee.js +75 -0
- package/src/ethermint/types/v1/dynamic_fee.ts +91 -0
- package/src/ethermint/types/v1/indexer.d.ts +76 -0
- package/src/ethermint/types/v1/indexer.js +147 -0
- package/src/ethermint/types/v1/indexer.ts +205 -0
- package/src/ethermint/types/v1/web3.d.ts +66 -0
- package/src/ethermint/types/v1/web3.js +100 -0
- package/src/ethermint/types/v1/web3.ts +147 -0
- package/src/extern.d.ts +10 -0
- package/src/extern.js +36 -0
- package/src/extern.ts +38 -0
- package/src/gogoproto/gogo.d.ts +1 -0
- package/src/gogoproto/gogo.js +2 -0
- package/src/gogoproto/gogo.ts +1 -0
- package/src/google/api/annotations.d.ts +1 -0
- package/src/google/api/annotations.js +2 -0
- package/src/google/api/annotations.ts +1 -0
- package/src/google/api/http.d.ts +764 -0
- package/src/google/api/http.js +353 -0
- package/src/google/api/http.ts +1069 -0
- package/src/google/protobuf/any.d.ts +268 -0
- package/src/google/protobuf/any.js +81 -0
- package/src/google/protobuf/any.ts +331 -0
- package/src/google/protobuf/descriptor.d.ts +2919 -0
- package/src/google/protobuf/descriptor.js +5100 -0
- package/src/google/protobuf/descriptor.ts +7177 -0
- package/src/google/protobuf/duration.d.ts +162 -0
- package/src/google/protobuf/duration.js +81 -0
- package/src/google/protobuf/duration.ts +225 -0
- package/src/google/protobuf/timestamp.d.ts +222 -0
- package/src/google/protobuf/timestamp.js +78 -0
- package/src/google/protobuf/timestamp.ts +281 -0
- package/src/helper-func-types.d.ts +117 -0
- package/src/helper-func-types.js +55 -0
- package/src/helper-func-types.ts +191 -0
- package/src/helpers.d.ts +82 -0
- package/src/helpers.js +143 -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.lcd.ts +117 -0
- package/src/ibc/applications/fee/v1/query.rpc.Query.ts +129 -0
- package/src/ibc/applications/fee/v1/query.rpc.func.ts +72 -0
- package/src/ibc/applications/fee/v1/query.ts +2134 -0
- package/src/ibc/applications/fee/v1/tx.amino.ts +23 -0
- package/src/ibc/applications/fee/v1/tx.registry.ts +3 -0
- package/src/ibc/applications/fee/v1/tx.rpc.func.ts +27 -0
- package/src/ibc/applications/fee/v1/tx.rpc.msg.ts +83 -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.lcd.ts +22 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.Query.ts +41 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.ts +16 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts +18 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +3 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.ts +21 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.msg.ts +39 -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.lcd.ts +17 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts +30 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.func.ts +9 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.ts +177 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.amino.ts +13 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +3 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.ts +15 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.msg.ts +31 -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.lcd.ts +69 -0
- package/src/ibc/applications/transfer/v1/query.rpc.Query.ts +87 -0
- package/src/ibc/applications/transfer/v1/query.rpc.func.ts +44 -0
- package/src/ibc/applications/transfer/v1/query.ts +1205 -0
- package/src/ibc/applications/transfer/v1/transfer.d.ts +112 -0
- package/src/ibc/applications/transfer/v1/transfer.js +185 -0
- package/src/ibc/applications/transfer/v1/transfer.ts +261 -0
- package/src/ibc/applications/transfer/v1/tx.amino.ts +13 -0
- package/src/ibc/applications/transfer/v1/tx.d.ts +202 -0
- package/src/ibc/applications/transfer/v1/tx.js +402 -0
- package/src/ibc/applications/transfer/v1/tx.registry.ts +3 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.func.d.ts +4 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.func.js +20 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +15 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.msg.ts +31 -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.d.ts +547 -0
- package/src/ibc/core/channel/v1/channel.js +1167 -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.lcd.ts +135 -0
- package/src/ibc/core/channel/v1/query.rpc.Query.ts +240 -0
- package/src/ibc/core/channel/v1/query.rpc.func.ts +121 -0
- package/src/ibc/core/channel/v1/query.ts +4354 -0
- package/src/ibc/core/channel/v1/tx.amino.ts +98 -0
- package/src/ibc/core/channel/v1/tx.d.ts +1490 -0
- package/src/ibc/core/channel/v1/tx.js +4027 -0
- package/src/ibc/core/channel/v1/tx.registry.ts +3 -0
- package/src/ibc/core/channel/v1/tx.rpc.func.d.ts +21 -0
- package/src/ibc/core/channel/v1/tx.rpc.func.js +139 -0
- package/src/ibc/core/channel/v1/tx.rpc.func.ts +117 -0
- package/src/ibc/core/channel/v1/tx.rpc.msg.ts +171 -0
- package/src/ibc/core/channel/v1/tx.ts +4866 -0
- package/src/ibc/core/channel/v1/upgrade.d.ts +139 -0
- package/src/ibc/core/channel/v1/upgrade.js +304 -0
- package/src/ibc/core/channel/v1/upgrade.ts +388 -0
- package/src/ibc/core/client/v1/client.d.ts +372 -0
- package/src/ibc/core/client/v1/client.js +675 -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.lcd.ts +86 -0
- package/src/ibc/core/client/v1/query.rpc.Query.ts +139 -0
- package/src/ibc/core/client/v1/query.rpc.func.ts +72 -0
- package/src/ibc/core/client/v1/query.ts +2280 -0
- package/src/ibc/core/client/v1/tx.amino.ts +38 -0
- package/src/ibc/core/client/v1/tx.d.ts +587 -0
- package/src/ibc/core/client/v1/tx.js +1202 -0
- package/src/ibc/core/client/v1/tx.registry.ts +3 -0
- package/src/ibc/core/client/v1/tx.rpc.func.d.ts +9 -0
- package/src/ibc/core/client/v1/tx.rpc.func.js +55 -0
- package/src/ibc/core/client/v1/tx.rpc.func.ts +45 -0
- package/src/ibc/core/client/v1/tx.rpc.msg.ts +71 -0
- package/src/ibc/core/client/v1/tx.ts +1543 -0
- package/src/ibc/core/commitment/v1/commitment.d.ts +165 -0
- package/src/ibc/core/commitment/v1/commitment.js +325 -0
- package/src/ibc/core/commitment/v1/commitment.ts +418 -0
- package/src/ibc/core/connection/v1/connection.d.ts +376 -0
- package/src/ibc/core/connection/v1/connection.js +781 -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.lcd.ts +54 -0
- package/src/ibc/core/connection/v1/query.rpc.Query.ts +99 -0
- package/src/ibc/core/connection/v1/query.rpc.func.ts +44 -0
- package/src/ibc/core/connection/v1/query.ts +1408 -0
- package/src/ibc/core/connection/v1/tx.amino.ts +28 -0
- package/src/ibc/core/connection/v1/tx.d.ts +457 -0
- package/src/ibc/core/connection/v1/tx.js +1087 -0
- package/src/ibc/core/connection/v1/tx.registry.ts +3 -0
- package/src/ibc/core/connection/v1/tx.rpc.func.d.ts +7 -0
- package/src/ibc/core/connection/v1/tx.rpc.func.js +41 -0
- package/src/ibc/core/connection/v1/tx.rpc.func.ts +33 -0
- package/src/ibc/core/connection/v1/tx.rpc.msg.ts +63 -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.lcd.ts +31 -0
- package/src/ibc/lightclients/wasm/v1/query.rpc.Query.ts +43 -0
- package/src/ibc/lightclients/wasm/v1/query.rpc.func.ts +16 -0
- package/src/ibc/lightclients/wasm/v1/query.ts +404 -0
- package/src/ibc/lightclients/wasm/v1/tx.amino.ts +18 -0
- package/src/ibc/lightclients/wasm/v1/tx.registry.ts +3 -0
- package/src/ibc/lightclients/wasm/v1/tx.rpc.func.ts +21 -0
- package/src/ibc/lightclients/wasm/v1/tx.rpc.msg.ts +39 -0
- package/src/ibc/lightclients/wasm/v1/tx.ts +621 -0
- package/src/ibc/lightclients/wasm/v1/wasm.ts +438 -0
- package/src/registry.d.ts +33 -0
- package/src/registry.js +158 -0
- package/src/registry.ts +218 -0
- package/src/tendermint/abci/types.d.ts +1843 -0
- package/src/tendermint/abci/types.js +5233 -0
- package/src/tendermint/abci/types.ts +6283 -0
- package/src/tendermint/crypto/keys.d.ts +34 -0
- package/src/tendermint/crypto/keys.js +88 -0
- package/src/tendermint/crypto/keys.ts +103 -0
- package/src/tendermint/crypto/proof.d.ts +174 -0
- package/src/tendermint/crypto/proof.js +458 -0
- package/src/tendermint/crypto/proof.ts +555 -0
- package/src/tendermint/p2p/types.ts +507 -0
- package/src/tendermint/types/block.d.ts +38 -0
- package/src/tendermint/types/block.js +113 -0
- package/src/tendermint/types/block.ts +131 -0
- package/src/tendermint/types/evidence.d.ts +138 -0
- package/src/tendermint/types/evidence.js +403 -0
- package/src/tendermint/types/evidence.ts +476 -0
- package/src/tendermint/types/params.d.ts +323 -0
- package/src/tendermint/types/params.js +595 -0
- package/src/tendermint/types/params.ts +814 -0
- package/src/tendermint/types/types.d.ts +640 -0
- package/src/tendermint/types/types.js +1754 -0
- package/src/tendermint/types/types.ts +2157 -0
- package/src/tendermint/types/validator.d.ts +113 -0
- package/src/tendermint/types/validator.js +342 -0
- package/src/tendermint/types/validator.ts +389 -0
- package/src/tendermint/version/types.d.ts +82 -0
- package/src/tendermint/version/types.js +169 -0
- package/src/tendermint/version/types.ts +219 -0
- package/src/types.d.ts +124 -0
- package/src/types.js +7 -0
- package/src/types.ts +155 -0
- package/src/utf8.d.ts +27 -0
- package/src/utf8.js +140 -0
- package/src/utf8.ts +148 -0
- package/src/varint.d.ts +105 -0
- package/src/varint.js +425 -0
- package/src/varint.ts +488 -0
- package/src/xpla/lcd.ts +180 -0
- package/src/xpla/reward/v1beta1/genesis.d.ts +35 -0
- package/src/xpla/reward/v1beta1/genesis.js +76 -0
- package/src/xpla/reward/v1beta1/genesis.ts +92 -0
- package/src/xpla/reward/v1beta1/query.d.ts +136 -0
- package/src/xpla/reward/v1beta1/query.js +264 -0
- package/src/xpla/reward/v1beta1/query.lcd.ts +22 -0
- package/src/xpla/reward/v1beta1/query.rpc.Query.ts +41 -0
- package/src/xpla/reward/v1beta1/query.rpc.func.d.ts +4 -0
- package/src/xpla/reward/v1beta1/query.rpc.func.js +21 -0
- package/src/xpla/reward/v1beta1/query.rpc.func.ts +16 -0
- package/src/xpla/reward/v1beta1/query.ts +333 -0
- package/src/xpla/reward/v1beta1/reward.d.ts +42 -0
- package/src/xpla/reward/v1beta1/reward.js +131 -0
- package/src/xpla/reward/v1beta1/reward.ts +153 -0
- package/src/xpla/reward/v1beta1/tx.amino.ts +13 -0
- package/src/xpla/reward/v1beta1/tx.d.ts +158 -0
- package/src/xpla/reward/v1beta1/tx.js +304 -0
- package/src/xpla/reward/v1beta1/tx.registry.ts +3 -0
- package/src/xpla/reward/v1beta1/tx.rpc.func.d.ts +4 -0
- package/src/xpla/reward/v1beta1/tx.rpc.func.js +20 -0
- package/src/xpla/reward/v1beta1/tx.rpc.func.ts +15 -0
- package/src/xpla/reward/v1beta1/tx.rpc.msg.ts +41 -0
- package/src/xpla/reward/v1beta1/tx.ts +391 -0
- package/src/xpla/rpc.query.ts +129 -0
- package/src/xpla/rpc.tx.ts +6 -0
- package/src/xpla/volunteer/v1beta1/genesis.d.ts +33 -0
- package/src/xpla/volunteer/v1beta1/genesis.js +79 -0
- package/src/xpla/volunteer/v1beta1/genesis.ts +92 -0
- package/src/xpla/volunteer/v1beta1/proposal.d.ts +183 -0
- package/src/xpla/volunteer/v1beta1/proposal.js +537 -0
- package/src/xpla/volunteer/v1beta1/proposal.ts +649 -0
- package/src/xpla/volunteer/v1beta1/query.d.ts +60 -0
- package/src/xpla/volunteer/v1beta1/query.js +135 -0
- package/src/xpla/volunteer/v1beta1/query.lcd.ts +17 -0
- package/src/xpla/volunteer/v1beta1/query.rpc.Query.ts +30 -0
- package/src/xpla/volunteer/v1beta1/query.rpc.func.d.ts +3 -0
- package/src/xpla/volunteer/v1beta1/query.rpc.func.js +13 -0
- package/src/xpla/volunteer/v1beta1/query.rpc.func.ts +9 -0
- package/src/xpla/volunteer/v1beta1/query.ts +160 -0
- package/src/xpla/volunteer/v1beta1/tx.amino.ts +13 -0
- package/src/xpla/volunteer/v1beta1/tx.d.ts +168 -0
- package/src/xpla/volunteer/v1beta1/tx.js +351 -0
- package/src/xpla/volunteer/v1beta1/tx.registry.ts +3 -0
- package/src/xpla/volunteer/v1beta1/tx.rpc.func.d.ts +4 -0
- package/src/xpla/volunteer/v1beta1/tx.rpc.func.js +20 -0
- package/src/xpla/volunteer/v1beta1/tx.rpc.func.ts +15 -0
- package/src/xpla/volunteer/v1beta1/tx.rpc.msg.ts +35 -0
- package/src/xpla/volunteer/v1beta1/tx.ts +448 -0
- package/src/xpla/volunteer/v1beta1/volunteervalidator.d.ts +38 -0
- package/src/xpla/volunteer/v1beta1/volunteervalidator.js +87 -0
- package/src/xpla/volunteer/v1beta1/volunteervalidator.ts +107 -0
- package/tsconfig.esm.json +10 -0
- package/tsconfig.json +10 -0
|
@@ -0,0 +1,1293 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchBlocksResult = exports.SearchTxsResult = exports.TxMsgData = exports.MsgData = exports.SimulationResponse = exports.Result = exports.GasInfo = exports.Attribute = exports.StringEvent = exports.ABCIMessageLog = exports.TxResponse = void 0;
|
|
4
|
+
const any_1 = require("../../../../google/protobuf/any");
|
|
5
|
+
const types_1 = require("../../../../tendermint/abci/types");
|
|
6
|
+
const block_1 = require("../../../../tendermint/types/block");
|
|
7
|
+
const binary_1 = require("../../../../binary");
|
|
8
|
+
const helpers_1 = require("../../../../helpers");
|
|
9
|
+
const registry_1 = require("../../../../registry");
|
|
10
|
+
function createBaseTxResponse() {
|
|
11
|
+
return {
|
|
12
|
+
height: BigInt(0),
|
|
13
|
+
txhash: "",
|
|
14
|
+
codespace: "",
|
|
15
|
+
code: 0,
|
|
16
|
+
data: "",
|
|
17
|
+
rawLog: "",
|
|
18
|
+
logs: [],
|
|
19
|
+
info: "",
|
|
20
|
+
gasWanted: BigInt(0),
|
|
21
|
+
gasUsed: BigInt(0),
|
|
22
|
+
tx: undefined,
|
|
23
|
+
timestamp: "",
|
|
24
|
+
events: []
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.TxResponse = {
|
|
28
|
+
typeUrl: "/cosmos.base.abci.v1beta1.TxResponse",
|
|
29
|
+
aminoType: "cosmos-sdk/TxResponse",
|
|
30
|
+
is(o) {
|
|
31
|
+
return o && (o.$typeUrl === exports.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 || exports.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 || types_1.Event.is(o.events[0])));
|
|
32
|
+
},
|
|
33
|
+
isAmino(o) {
|
|
34
|
+
return o && (o.$typeUrl === exports.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 || exports.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 || types_1.Event.isAmino(o.events[0])));
|
|
35
|
+
},
|
|
36
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
37
|
+
if (message.height !== BigInt(0)) {
|
|
38
|
+
writer.uint32(8).int64(message.height);
|
|
39
|
+
}
|
|
40
|
+
if (message.txhash !== "") {
|
|
41
|
+
writer.uint32(18).string(message.txhash);
|
|
42
|
+
}
|
|
43
|
+
if (message.codespace !== "") {
|
|
44
|
+
writer.uint32(26).string(message.codespace);
|
|
45
|
+
}
|
|
46
|
+
if (message.code !== 0) {
|
|
47
|
+
writer.uint32(32).uint32(message.code);
|
|
48
|
+
}
|
|
49
|
+
if (message.data !== "") {
|
|
50
|
+
writer.uint32(42).string(message.data);
|
|
51
|
+
}
|
|
52
|
+
if (message.rawLog !== "") {
|
|
53
|
+
writer.uint32(50).string(message.rawLog);
|
|
54
|
+
}
|
|
55
|
+
for (const v of message.logs) {
|
|
56
|
+
exports.ABCIMessageLog.encode(v, writer.uint32(58).fork()).ldelim();
|
|
57
|
+
}
|
|
58
|
+
if (message.info !== "") {
|
|
59
|
+
writer.uint32(66).string(message.info);
|
|
60
|
+
}
|
|
61
|
+
if (message.gasWanted !== BigInt(0)) {
|
|
62
|
+
writer.uint32(72).int64(message.gasWanted);
|
|
63
|
+
}
|
|
64
|
+
if (message.gasUsed !== BigInt(0)) {
|
|
65
|
+
writer.uint32(80).int64(message.gasUsed);
|
|
66
|
+
}
|
|
67
|
+
if (message.tx !== undefined) {
|
|
68
|
+
any_1.Any.encode(message.tx, writer.uint32(90).fork()).ldelim();
|
|
69
|
+
}
|
|
70
|
+
if (message.timestamp !== "") {
|
|
71
|
+
writer.uint32(98).string(message.timestamp);
|
|
72
|
+
}
|
|
73
|
+
for (const v of message.events) {
|
|
74
|
+
types_1.Event.encode(v, writer.uint32(106).fork()).ldelim();
|
|
75
|
+
}
|
|
76
|
+
return writer;
|
|
77
|
+
},
|
|
78
|
+
decode(input, length) {
|
|
79
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
80
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
81
|
+
const message = createBaseTxResponse();
|
|
82
|
+
while (reader.pos < end) {
|
|
83
|
+
const tag = reader.uint32();
|
|
84
|
+
switch (tag >>> 3) {
|
|
85
|
+
case 1:
|
|
86
|
+
message.height = reader.int64();
|
|
87
|
+
break;
|
|
88
|
+
case 2:
|
|
89
|
+
message.txhash = reader.string();
|
|
90
|
+
break;
|
|
91
|
+
case 3:
|
|
92
|
+
message.codespace = reader.string();
|
|
93
|
+
break;
|
|
94
|
+
case 4:
|
|
95
|
+
message.code = reader.uint32();
|
|
96
|
+
break;
|
|
97
|
+
case 5:
|
|
98
|
+
message.data = reader.string();
|
|
99
|
+
break;
|
|
100
|
+
case 6:
|
|
101
|
+
message.rawLog = reader.string();
|
|
102
|
+
break;
|
|
103
|
+
case 7:
|
|
104
|
+
message.logs.push(exports.ABCIMessageLog.decode(reader, reader.uint32()));
|
|
105
|
+
break;
|
|
106
|
+
case 8:
|
|
107
|
+
message.info = reader.string();
|
|
108
|
+
break;
|
|
109
|
+
case 9:
|
|
110
|
+
message.gasWanted = reader.int64();
|
|
111
|
+
break;
|
|
112
|
+
case 10:
|
|
113
|
+
message.gasUsed = reader.int64();
|
|
114
|
+
break;
|
|
115
|
+
case 11:
|
|
116
|
+
message.tx = any_1.Any.decode(reader, reader.uint32());
|
|
117
|
+
break;
|
|
118
|
+
case 12:
|
|
119
|
+
message.timestamp = reader.string();
|
|
120
|
+
break;
|
|
121
|
+
case 13:
|
|
122
|
+
message.events.push(types_1.Event.decode(reader, reader.uint32()));
|
|
123
|
+
break;
|
|
124
|
+
default:
|
|
125
|
+
reader.skipType(tag & 7);
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
fromPartial(object) {
|
|
132
|
+
const message = createBaseTxResponse();
|
|
133
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
134
|
+
message.txhash = object.txhash ?? "";
|
|
135
|
+
message.codespace = object.codespace ?? "";
|
|
136
|
+
message.code = object.code ?? 0;
|
|
137
|
+
message.data = object.data ?? "";
|
|
138
|
+
message.rawLog = object.rawLog ?? "";
|
|
139
|
+
message.logs = object.logs?.map(e => exports.ABCIMessageLog.fromPartial(e)) || [];
|
|
140
|
+
message.info = object.info ?? "";
|
|
141
|
+
message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0);
|
|
142
|
+
message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0);
|
|
143
|
+
message.tx = object.tx !== undefined && object.tx !== null ? any_1.Any.fromPartial(object.tx) : undefined;
|
|
144
|
+
message.timestamp = object.timestamp ?? "";
|
|
145
|
+
message.events = object.events?.map(e => types_1.Event.fromPartial(e)) || [];
|
|
146
|
+
return message;
|
|
147
|
+
},
|
|
148
|
+
fromAmino(object) {
|
|
149
|
+
const message = createBaseTxResponse();
|
|
150
|
+
if (object.height !== undefined && object.height !== null) {
|
|
151
|
+
message.height = BigInt(object.height);
|
|
152
|
+
}
|
|
153
|
+
if (object.txhash !== undefined && object.txhash !== null) {
|
|
154
|
+
message.txhash = object.txhash;
|
|
155
|
+
}
|
|
156
|
+
if (object.codespace !== undefined && object.codespace !== null) {
|
|
157
|
+
message.codespace = object.codespace;
|
|
158
|
+
}
|
|
159
|
+
if (object.code !== undefined && object.code !== null) {
|
|
160
|
+
message.code = object.code;
|
|
161
|
+
}
|
|
162
|
+
if (object.data !== undefined && object.data !== null) {
|
|
163
|
+
message.data = object.data;
|
|
164
|
+
}
|
|
165
|
+
if (object.raw_log !== undefined && object.raw_log !== null) {
|
|
166
|
+
message.rawLog = object.raw_log;
|
|
167
|
+
}
|
|
168
|
+
message.logs = object.logs?.map(e => exports.ABCIMessageLog.fromAmino(e)) || [];
|
|
169
|
+
if (object.info !== undefined && object.info !== null) {
|
|
170
|
+
message.info = object.info;
|
|
171
|
+
}
|
|
172
|
+
if (object.gas_wanted !== undefined && object.gas_wanted !== null) {
|
|
173
|
+
message.gasWanted = BigInt(object.gas_wanted);
|
|
174
|
+
}
|
|
175
|
+
if (object.gas_used !== undefined && object.gas_used !== null) {
|
|
176
|
+
message.gasUsed = BigInt(object.gas_used);
|
|
177
|
+
}
|
|
178
|
+
if (object.tx !== undefined && object.tx !== null) {
|
|
179
|
+
message.tx = any_1.Any.fromAmino(object.tx);
|
|
180
|
+
}
|
|
181
|
+
if (object.timestamp !== undefined && object.timestamp !== null) {
|
|
182
|
+
message.timestamp = object.timestamp;
|
|
183
|
+
}
|
|
184
|
+
message.events = object.events?.map(e => types_1.Event.fromAmino(e)) || [];
|
|
185
|
+
return message;
|
|
186
|
+
},
|
|
187
|
+
toAmino(message) {
|
|
188
|
+
const obj = {};
|
|
189
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
190
|
+
obj.txhash = message.txhash === "" ? undefined : message.txhash;
|
|
191
|
+
obj.codespace = message.codespace === "" ? undefined : message.codespace;
|
|
192
|
+
obj.code = message.code === 0 ? undefined : message.code;
|
|
193
|
+
obj.data = message.data === "" ? undefined : message.data;
|
|
194
|
+
obj.raw_log = message.rawLog === "" ? undefined : message.rawLog;
|
|
195
|
+
if (message.logs) {
|
|
196
|
+
obj.logs = message.logs.map(e => e ? exports.ABCIMessageLog.toAmino(e) : undefined);
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
obj.logs = message.logs;
|
|
200
|
+
}
|
|
201
|
+
obj.info = message.info === "" ? undefined : message.info;
|
|
202
|
+
obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted?.toString() : undefined;
|
|
203
|
+
obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed?.toString() : undefined;
|
|
204
|
+
obj.tx = message.tx ? any_1.Any.toAmino(message.tx) : undefined;
|
|
205
|
+
obj.timestamp = message.timestamp === "" ? undefined : message.timestamp;
|
|
206
|
+
if (message.events) {
|
|
207
|
+
obj.events = message.events.map(e => e ? types_1.Event.toAmino(e) : undefined);
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
obj.events = message.events;
|
|
211
|
+
}
|
|
212
|
+
return obj;
|
|
213
|
+
},
|
|
214
|
+
fromAminoMsg(object) {
|
|
215
|
+
return exports.TxResponse.fromAmino(object.value);
|
|
216
|
+
},
|
|
217
|
+
toAminoMsg(message) {
|
|
218
|
+
return {
|
|
219
|
+
type: "cosmos-sdk/TxResponse",
|
|
220
|
+
value: exports.TxResponse.toAmino(message)
|
|
221
|
+
};
|
|
222
|
+
},
|
|
223
|
+
fromProtoMsg(message) {
|
|
224
|
+
return exports.TxResponse.decode(message.value);
|
|
225
|
+
},
|
|
226
|
+
toProto(message) {
|
|
227
|
+
return exports.TxResponse.encode(message).finish();
|
|
228
|
+
},
|
|
229
|
+
toProtoMsg(message) {
|
|
230
|
+
return {
|
|
231
|
+
typeUrl: "/cosmos.base.abci.v1beta1.TxResponse",
|
|
232
|
+
value: exports.TxResponse.encode(message).finish()
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
registry_1.GlobalDecoderRegistry.register(exports.TxResponse.typeUrl, exports.TxResponse);
|
|
237
|
+
registry_1.GlobalDecoderRegistry.registerAminoProtoMapping(exports.TxResponse.aminoType, exports.TxResponse.typeUrl);
|
|
238
|
+
function createBaseABCIMessageLog() {
|
|
239
|
+
return {
|
|
240
|
+
msgIndex: 0,
|
|
241
|
+
log: "",
|
|
242
|
+
events: []
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
exports.ABCIMessageLog = {
|
|
246
|
+
typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog",
|
|
247
|
+
aminoType: "cosmos-sdk/ABCIMessageLog",
|
|
248
|
+
is(o) {
|
|
249
|
+
return o && (o.$typeUrl === exports.ABCIMessageLog.typeUrl || typeof o.msgIndex === "number" && typeof o.log === "string" && Array.isArray(o.events) && (!o.events.length || exports.StringEvent.is(o.events[0])));
|
|
250
|
+
},
|
|
251
|
+
isAmino(o) {
|
|
252
|
+
return o && (o.$typeUrl === exports.ABCIMessageLog.typeUrl || typeof o.msg_index === "number" && typeof o.log === "string" && Array.isArray(o.events) && (!o.events.length || exports.StringEvent.isAmino(o.events[0])));
|
|
253
|
+
},
|
|
254
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
255
|
+
if (message.msgIndex !== 0) {
|
|
256
|
+
writer.uint32(8).uint32(message.msgIndex);
|
|
257
|
+
}
|
|
258
|
+
if (message.log !== "") {
|
|
259
|
+
writer.uint32(18).string(message.log);
|
|
260
|
+
}
|
|
261
|
+
for (const v of message.events) {
|
|
262
|
+
exports.StringEvent.encode(v, writer.uint32(26).fork()).ldelim();
|
|
263
|
+
}
|
|
264
|
+
return writer;
|
|
265
|
+
},
|
|
266
|
+
decode(input, length) {
|
|
267
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
268
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
269
|
+
const message = createBaseABCIMessageLog();
|
|
270
|
+
while (reader.pos < end) {
|
|
271
|
+
const tag = reader.uint32();
|
|
272
|
+
switch (tag >>> 3) {
|
|
273
|
+
case 1:
|
|
274
|
+
message.msgIndex = reader.uint32();
|
|
275
|
+
break;
|
|
276
|
+
case 2:
|
|
277
|
+
message.log = reader.string();
|
|
278
|
+
break;
|
|
279
|
+
case 3:
|
|
280
|
+
message.events.push(exports.StringEvent.decode(reader, reader.uint32()));
|
|
281
|
+
break;
|
|
282
|
+
default:
|
|
283
|
+
reader.skipType(tag & 7);
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return message;
|
|
288
|
+
},
|
|
289
|
+
fromPartial(object) {
|
|
290
|
+
const message = createBaseABCIMessageLog();
|
|
291
|
+
message.msgIndex = object.msgIndex ?? 0;
|
|
292
|
+
message.log = object.log ?? "";
|
|
293
|
+
message.events = object.events?.map(e => exports.StringEvent.fromPartial(e)) || [];
|
|
294
|
+
return message;
|
|
295
|
+
},
|
|
296
|
+
fromAmino(object) {
|
|
297
|
+
const message = createBaseABCIMessageLog();
|
|
298
|
+
if (object.msg_index !== undefined && object.msg_index !== null) {
|
|
299
|
+
message.msgIndex = object.msg_index;
|
|
300
|
+
}
|
|
301
|
+
if (object.log !== undefined && object.log !== null) {
|
|
302
|
+
message.log = object.log;
|
|
303
|
+
}
|
|
304
|
+
message.events = object.events?.map(e => exports.StringEvent.fromAmino(e)) || [];
|
|
305
|
+
return message;
|
|
306
|
+
},
|
|
307
|
+
toAmino(message) {
|
|
308
|
+
const obj = {};
|
|
309
|
+
obj.msg_index = message.msgIndex ?? 0;
|
|
310
|
+
obj.log = message.log === "" ? undefined : message.log;
|
|
311
|
+
if (message.events) {
|
|
312
|
+
obj.events = message.events.map(e => e ? exports.StringEvent.toAmino(e) : undefined);
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
obj.events = message.events;
|
|
316
|
+
}
|
|
317
|
+
return obj;
|
|
318
|
+
},
|
|
319
|
+
fromAminoMsg(object) {
|
|
320
|
+
return exports.ABCIMessageLog.fromAmino(object.value);
|
|
321
|
+
},
|
|
322
|
+
toAminoMsg(message) {
|
|
323
|
+
return {
|
|
324
|
+
type: "cosmos-sdk/ABCIMessageLog",
|
|
325
|
+
value: exports.ABCIMessageLog.toAmino(message)
|
|
326
|
+
};
|
|
327
|
+
},
|
|
328
|
+
fromProtoMsg(message) {
|
|
329
|
+
return exports.ABCIMessageLog.decode(message.value);
|
|
330
|
+
},
|
|
331
|
+
toProto(message) {
|
|
332
|
+
return exports.ABCIMessageLog.encode(message).finish();
|
|
333
|
+
},
|
|
334
|
+
toProtoMsg(message) {
|
|
335
|
+
return {
|
|
336
|
+
typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog",
|
|
337
|
+
value: exports.ABCIMessageLog.encode(message).finish()
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
registry_1.GlobalDecoderRegistry.register(exports.ABCIMessageLog.typeUrl, exports.ABCIMessageLog);
|
|
342
|
+
registry_1.GlobalDecoderRegistry.registerAminoProtoMapping(exports.ABCIMessageLog.aminoType, exports.ABCIMessageLog.typeUrl);
|
|
343
|
+
function createBaseStringEvent() {
|
|
344
|
+
return {
|
|
345
|
+
type: "",
|
|
346
|
+
attributes: []
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
exports.StringEvent = {
|
|
350
|
+
typeUrl: "/cosmos.base.abci.v1beta1.StringEvent",
|
|
351
|
+
aminoType: "cosmos-sdk/StringEvent",
|
|
352
|
+
is(o) {
|
|
353
|
+
return o && (o.$typeUrl === exports.StringEvent.typeUrl || typeof o.type === "string" && Array.isArray(o.attributes) && (!o.attributes.length || exports.Attribute.is(o.attributes[0])));
|
|
354
|
+
},
|
|
355
|
+
isAmino(o) {
|
|
356
|
+
return o && (o.$typeUrl === exports.StringEvent.typeUrl || typeof o.type === "string" && Array.isArray(o.attributes) && (!o.attributes.length || exports.Attribute.isAmino(o.attributes[0])));
|
|
357
|
+
},
|
|
358
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
359
|
+
if (message.type !== "") {
|
|
360
|
+
writer.uint32(10).string(message.type);
|
|
361
|
+
}
|
|
362
|
+
for (const v of message.attributes) {
|
|
363
|
+
exports.Attribute.encode(v, writer.uint32(18).fork()).ldelim();
|
|
364
|
+
}
|
|
365
|
+
return writer;
|
|
366
|
+
},
|
|
367
|
+
decode(input, length) {
|
|
368
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
369
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
370
|
+
const message = createBaseStringEvent();
|
|
371
|
+
while (reader.pos < end) {
|
|
372
|
+
const tag = reader.uint32();
|
|
373
|
+
switch (tag >>> 3) {
|
|
374
|
+
case 1:
|
|
375
|
+
message.type = reader.string();
|
|
376
|
+
break;
|
|
377
|
+
case 2:
|
|
378
|
+
message.attributes.push(exports.Attribute.decode(reader, reader.uint32()));
|
|
379
|
+
break;
|
|
380
|
+
default:
|
|
381
|
+
reader.skipType(tag & 7);
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
return message;
|
|
386
|
+
},
|
|
387
|
+
fromPartial(object) {
|
|
388
|
+
const message = createBaseStringEvent();
|
|
389
|
+
message.type = object.type ?? "";
|
|
390
|
+
message.attributes = object.attributes?.map(e => exports.Attribute.fromPartial(e)) || [];
|
|
391
|
+
return message;
|
|
392
|
+
},
|
|
393
|
+
fromAmino(object) {
|
|
394
|
+
const message = createBaseStringEvent();
|
|
395
|
+
if (object.type !== undefined && object.type !== null) {
|
|
396
|
+
message.type = object.type;
|
|
397
|
+
}
|
|
398
|
+
message.attributes = object.attributes?.map(e => exports.Attribute.fromAmino(e)) || [];
|
|
399
|
+
return message;
|
|
400
|
+
},
|
|
401
|
+
toAmino(message) {
|
|
402
|
+
const obj = {};
|
|
403
|
+
obj.type = message.type === "" ? undefined : message.type;
|
|
404
|
+
if (message.attributes) {
|
|
405
|
+
obj.attributes = message.attributes.map(e => e ? exports.Attribute.toAmino(e) : undefined);
|
|
406
|
+
}
|
|
407
|
+
else {
|
|
408
|
+
obj.attributes = message.attributes;
|
|
409
|
+
}
|
|
410
|
+
return obj;
|
|
411
|
+
},
|
|
412
|
+
fromAminoMsg(object) {
|
|
413
|
+
return exports.StringEvent.fromAmino(object.value);
|
|
414
|
+
},
|
|
415
|
+
toAminoMsg(message) {
|
|
416
|
+
return {
|
|
417
|
+
type: "cosmos-sdk/StringEvent",
|
|
418
|
+
value: exports.StringEvent.toAmino(message)
|
|
419
|
+
};
|
|
420
|
+
},
|
|
421
|
+
fromProtoMsg(message) {
|
|
422
|
+
return exports.StringEvent.decode(message.value);
|
|
423
|
+
},
|
|
424
|
+
toProto(message) {
|
|
425
|
+
return exports.StringEvent.encode(message).finish();
|
|
426
|
+
},
|
|
427
|
+
toProtoMsg(message) {
|
|
428
|
+
return {
|
|
429
|
+
typeUrl: "/cosmos.base.abci.v1beta1.StringEvent",
|
|
430
|
+
value: exports.StringEvent.encode(message).finish()
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
registry_1.GlobalDecoderRegistry.register(exports.StringEvent.typeUrl, exports.StringEvent);
|
|
435
|
+
registry_1.GlobalDecoderRegistry.registerAminoProtoMapping(exports.StringEvent.aminoType, exports.StringEvent.typeUrl);
|
|
436
|
+
function createBaseAttribute() {
|
|
437
|
+
return {
|
|
438
|
+
key: "",
|
|
439
|
+
value: ""
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
exports.Attribute = {
|
|
443
|
+
typeUrl: "/cosmos.base.abci.v1beta1.Attribute",
|
|
444
|
+
aminoType: "cosmos-sdk/Attribute",
|
|
445
|
+
is(o) {
|
|
446
|
+
return o && (o.$typeUrl === exports.Attribute.typeUrl || typeof o.key === "string" && typeof o.value === "string");
|
|
447
|
+
},
|
|
448
|
+
isAmino(o) {
|
|
449
|
+
return o && (o.$typeUrl === exports.Attribute.typeUrl || typeof o.key === "string" && typeof o.value === "string");
|
|
450
|
+
},
|
|
451
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
452
|
+
if (message.key !== "") {
|
|
453
|
+
writer.uint32(10).string(message.key);
|
|
454
|
+
}
|
|
455
|
+
if (message.value !== "") {
|
|
456
|
+
writer.uint32(18).string(message.value);
|
|
457
|
+
}
|
|
458
|
+
return writer;
|
|
459
|
+
},
|
|
460
|
+
decode(input, length) {
|
|
461
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
462
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
463
|
+
const message = createBaseAttribute();
|
|
464
|
+
while (reader.pos < end) {
|
|
465
|
+
const tag = reader.uint32();
|
|
466
|
+
switch (tag >>> 3) {
|
|
467
|
+
case 1:
|
|
468
|
+
message.key = reader.string();
|
|
469
|
+
break;
|
|
470
|
+
case 2:
|
|
471
|
+
message.value = reader.string();
|
|
472
|
+
break;
|
|
473
|
+
default:
|
|
474
|
+
reader.skipType(tag & 7);
|
|
475
|
+
break;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
return message;
|
|
479
|
+
},
|
|
480
|
+
fromPartial(object) {
|
|
481
|
+
const message = createBaseAttribute();
|
|
482
|
+
message.key = object.key ?? "";
|
|
483
|
+
message.value = object.value ?? "";
|
|
484
|
+
return message;
|
|
485
|
+
},
|
|
486
|
+
fromAmino(object) {
|
|
487
|
+
const message = createBaseAttribute();
|
|
488
|
+
if (object.key !== undefined && object.key !== null) {
|
|
489
|
+
message.key = object.key;
|
|
490
|
+
}
|
|
491
|
+
if (object.value !== undefined && object.value !== null) {
|
|
492
|
+
message.value = object.value;
|
|
493
|
+
}
|
|
494
|
+
return message;
|
|
495
|
+
},
|
|
496
|
+
toAmino(message) {
|
|
497
|
+
const obj = {};
|
|
498
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
499
|
+
obj.value = message.value === "" ? undefined : message.value;
|
|
500
|
+
return obj;
|
|
501
|
+
},
|
|
502
|
+
fromAminoMsg(object) {
|
|
503
|
+
return exports.Attribute.fromAmino(object.value);
|
|
504
|
+
},
|
|
505
|
+
toAminoMsg(message) {
|
|
506
|
+
return {
|
|
507
|
+
type: "cosmos-sdk/Attribute",
|
|
508
|
+
value: exports.Attribute.toAmino(message)
|
|
509
|
+
};
|
|
510
|
+
},
|
|
511
|
+
fromProtoMsg(message) {
|
|
512
|
+
return exports.Attribute.decode(message.value);
|
|
513
|
+
},
|
|
514
|
+
toProto(message) {
|
|
515
|
+
return exports.Attribute.encode(message).finish();
|
|
516
|
+
},
|
|
517
|
+
toProtoMsg(message) {
|
|
518
|
+
return {
|
|
519
|
+
typeUrl: "/cosmos.base.abci.v1beta1.Attribute",
|
|
520
|
+
value: exports.Attribute.encode(message).finish()
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
};
|
|
524
|
+
registry_1.GlobalDecoderRegistry.register(exports.Attribute.typeUrl, exports.Attribute);
|
|
525
|
+
registry_1.GlobalDecoderRegistry.registerAminoProtoMapping(exports.Attribute.aminoType, exports.Attribute.typeUrl);
|
|
526
|
+
function createBaseGasInfo() {
|
|
527
|
+
return {
|
|
528
|
+
gasWanted: BigInt(0),
|
|
529
|
+
gasUsed: BigInt(0)
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
exports.GasInfo = {
|
|
533
|
+
typeUrl: "/cosmos.base.abci.v1beta1.GasInfo",
|
|
534
|
+
aminoType: "cosmos-sdk/GasInfo",
|
|
535
|
+
is(o) {
|
|
536
|
+
return o && (o.$typeUrl === exports.GasInfo.typeUrl || typeof o.gasWanted === "bigint" && typeof o.gasUsed === "bigint");
|
|
537
|
+
},
|
|
538
|
+
isAmino(o) {
|
|
539
|
+
return o && (o.$typeUrl === exports.GasInfo.typeUrl || typeof o.gas_wanted === "bigint" && typeof o.gas_used === "bigint");
|
|
540
|
+
},
|
|
541
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
542
|
+
if (message.gasWanted !== BigInt(0)) {
|
|
543
|
+
writer.uint32(8).uint64(message.gasWanted);
|
|
544
|
+
}
|
|
545
|
+
if (message.gasUsed !== BigInt(0)) {
|
|
546
|
+
writer.uint32(16).uint64(message.gasUsed);
|
|
547
|
+
}
|
|
548
|
+
return writer;
|
|
549
|
+
},
|
|
550
|
+
decode(input, length) {
|
|
551
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
552
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
553
|
+
const message = createBaseGasInfo();
|
|
554
|
+
while (reader.pos < end) {
|
|
555
|
+
const tag = reader.uint32();
|
|
556
|
+
switch (tag >>> 3) {
|
|
557
|
+
case 1:
|
|
558
|
+
message.gasWanted = reader.uint64();
|
|
559
|
+
break;
|
|
560
|
+
case 2:
|
|
561
|
+
message.gasUsed = reader.uint64();
|
|
562
|
+
break;
|
|
563
|
+
default:
|
|
564
|
+
reader.skipType(tag & 7);
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
return message;
|
|
569
|
+
},
|
|
570
|
+
fromPartial(object) {
|
|
571
|
+
const message = createBaseGasInfo();
|
|
572
|
+
message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0);
|
|
573
|
+
message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0);
|
|
574
|
+
return message;
|
|
575
|
+
},
|
|
576
|
+
fromAmino(object) {
|
|
577
|
+
const message = createBaseGasInfo();
|
|
578
|
+
if (object.gas_wanted !== undefined && object.gas_wanted !== null) {
|
|
579
|
+
message.gasWanted = BigInt(object.gas_wanted);
|
|
580
|
+
}
|
|
581
|
+
if (object.gas_used !== undefined && object.gas_used !== null) {
|
|
582
|
+
message.gasUsed = BigInt(object.gas_used);
|
|
583
|
+
}
|
|
584
|
+
return message;
|
|
585
|
+
},
|
|
586
|
+
toAmino(message) {
|
|
587
|
+
const obj = {};
|
|
588
|
+
obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted?.toString() : undefined;
|
|
589
|
+
obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed?.toString() : undefined;
|
|
590
|
+
return obj;
|
|
591
|
+
},
|
|
592
|
+
fromAminoMsg(object) {
|
|
593
|
+
return exports.GasInfo.fromAmino(object.value);
|
|
594
|
+
},
|
|
595
|
+
toAminoMsg(message) {
|
|
596
|
+
return {
|
|
597
|
+
type: "cosmos-sdk/GasInfo",
|
|
598
|
+
value: exports.GasInfo.toAmino(message)
|
|
599
|
+
};
|
|
600
|
+
},
|
|
601
|
+
fromProtoMsg(message) {
|
|
602
|
+
return exports.GasInfo.decode(message.value);
|
|
603
|
+
},
|
|
604
|
+
toProto(message) {
|
|
605
|
+
return exports.GasInfo.encode(message).finish();
|
|
606
|
+
},
|
|
607
|
+
toProtoMsg(message) {
|
|
608
|
+
return {
|
|
609
|
+
typeUrl: "/cosmos.base.abci.v1beta1.GasInfo",
|
|
610
|
+
value: exports.GasInfo.encode(message).finish()
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
registry_1.GlobalDecoderRegistry.register(exports.GasInfo.typeUrl, exports.GasInfo);
|
|
615
|
+
registry_1.GlobalDecoderRegistry.registerAminoProtoMapping(exports.GasInfo.aminoType, exports.GasInfo.typeUrl);
|
|
616
|
+
function createBaseResult() {
|
|
617
|
+
return {
|
|
618
|
+
data: new Uint8Array(),
|
|
619
|
+
log: "",
|
|
620
|
+
events: [],
|
|
621
|
+
msgResponses: []
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
exports.Result = {
|
|
625
|
+
typeUrl: "/cosmos.base.abci.v1beta1.Result",
|
|
626
|
+
aminoType: "cosmos-sdk/Result",
|
|
627
|
+
is(o) {
|
|
628
|
+
return o && (o.$typeUrl === exports.Result.typeUrl || (o.data instanceof Uint8Array || typeof o.data === "string") && typeof o.log === "string" && Array.isArray(o.events) && (!o.events.length || types_1.Event.is(o.events[0])) && Array.isArray(o.msgResponses) && (!o.msgResponses.length || any_1.Any.is(o.msgResponses[0])));
|
|
629
|
+
},
|
|
630
|
+
isAmino(o) {
|
|
631
|
+
return o && (o.$typeUrl === exports.Result.typeUrl || (o.data instanceof Uint8Array || typeof o.data === "string") && typeof o.log === "string" && Array.isArray(o.events) && (!o.events.length || types_1.Event.isAmino(o.events[0])) && Array.isArray(o.msg_responses) && (!o.msg_responses.length || any_1.Any.isAmino(o.msg_responses[0])));
|
|
632
|
+
},
|
|
633
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
634
|
+
if (message.data.length !== 0) {
|
|
635
|
+
writer.uint32(10).bytes(message.data);
|
|
636
|
+
}
|
|
637
|
+
if (message.log !== "") {
|
|
638
|
+
writer.uint32(18).string(message.log);
|
|
639
|
+
}
|
|
640
|
+
for (const v of message.events) {
|
|
641
|
+
types_1.Event.encode(v, writer.uint32(26).fork()).ldelim();
|
|
642
|
+
}
|
|
643
|
+
for (const v of message.msgResponses) {
|
|
644
|
+
any_1.Any.encode(v, writer.uint32(34).fork()).ldelim();
|
|
645
|
+
}
|
|
646
|
+
return writer;
|
|
647
|
+
},
|
|
648
|
+
decode(input, length) {
|
|
649
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
650
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
651
|
+
const message = createBaseResult();
|
|
652
|
+
while (reader.pos < end) {
|
|
653
|
+
const tag = reader.uint32();
|
|
654
|
+
switch (tag >>> 3) {
|
|
655
|
+
case 1:
|
|
656
|
+
message.data = reader.bytes();
|
|
657
|
+
break;
|
|
658
|
+
case 2:
|
|
659
|
+
message.log = reader.string();
|
|
660
|
+
break;
|
|
661
|
+
case 3:
|
|
662
|
+
message.events.push(types_1.Event.decode(reader, reader.uint32()));
|
|
663
|
+
break;
|
|
664
|
+
case 4:
|
|
665
|
+
message.msgResponses.push(any_1.Any.decode(reader, reader.uint32()));
|
|
666
|
+
break;
|
|
667
|
+
default:
|
|
668
|
+
reader.skipType(tag & 7);
|
|
669
|
+
break;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
return message;
|
|
673
|
+
},
|
|
674
|
+
fromPartial(object) {
|
|
675
|
+
const message = createBaseResult();
|
|
676
|
+
message.data = object.data ?? new Uint8Array();
|
|
677
|
+
message.log = object.log ?? "";
|
|
678
|
+
message.events = object.events?.map(e => types_1.Event.fromPartial(e)) || [];
|
|
679
|
+
message.msgResponses = object.msgResponses?.map(e => any_1.Any.fromPartial(e)) || [];
|
|
680
|
+
return message;
|
|
681
|
+
},
|
|
682
|
+
fromAmino(object) {
|
|
683
|
+
const message = createBaseResult();
|
|
684
|
+
if (object.data !== undefined && object.data !== null) {
|
|
685
|
+
message.data = (0, helpers_1.bytesFromBase64)(object.data);
|
|
686
|
+
}
|
|
687
|
+
if (object.log !== undefined && object.log !== null) {
|
|
688
|
+
message.log = object.log;
|
|
689
|
+
}
|
|
690
|
+
message.events = object.events?.map(e => types_1.Event.fromAmino(e)) || [];
|
|
691
|
+
message.msgResponses = object.msg_responses?.map(e => any_1.Any.fromAmino(e)) || [];
|
|
692
|
+
return message;
|
|
693
|
+
},
|
|
694
|
+
toAmino(message) {
|
|
695
|
+
const obj = {};
|
|
696
|
+
obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined;
|
|
697
|
+
obj.log = message.log === "" ? undefined : message.log;
|
|
698
|
+
if (message.events) {
|
|
699
|
+
obj.events = message.events.map(e => e ? types_1.Event.toAmino(e) : undefined);
|
|
700
|
+
}
|
|
701
|
+
else {
|
|
702
|
+
obj.events = message.events;
|
|
703
|
+
}
|
|
704
|
+
if (message.msgResponses) {
|
|
705
|
+
obj.msg_responses = message.msgResponses.map(e => e ? any_1.Any.toAmino(e) : undefined);
|
|
706
|
+
}
|
|
707
|
+
else {
|
|
708
|
+
obj.msg_responses = message.msgResponses;
|
|
709
|
+
}
|
|
710
|
+
return obj;
|
|
711
|
+
},
|
|
712
|
+
fromAminoMsg(object) {
|
|
713
|
+
return exports.Result.fromAmino(object.value);
|
|
714
|
+
},
|
|
715
|
+
toAminoMsg(message) {
|
|
716
|
+
return {
|
|
717
|
+
type: "cosmos-sdk/Result",
|
|
718
|
+
value: exports.Result.toAmino(message)
|
|
719
|
+
};
|
|
720
|
+
},
|
|
721
|
+
fromProtoMsg(message) {
|
|
722
|
+
return exports.Result.decode(message.value);
|
|
723
|
+
},
|
|
724
|
+
toProto(message) {
|
|
725
|
+
return exports.Result.encode(message).finish();
|
|
726
|
+
},
|
|
727
|
+
toProtoMsg(message) {
|
|
728
|
+
return {
|
|
729
|
+
typeUrl: "/cosmos.base.abci.v1beta1.Result",
|
|
730
|
+
value: exports.Result.encode(message).finish()
|
|
731
|
+
};
|
|
732
|
+
}
|
|
733
|
+
};
|
|
734
|
+
registry_1.GlobalDecoderRegistry.register(exports.Result.typeUrl, exports.Result);
|
|
735
|
+
registry_1.GlobalDecoderRegistry.registerAminoProtoMapping(exports.Result.aminoType, exports.Result.typeUrl);
|
|
736
|
+
function createBaseSimulationResponse() {
|
|
737
|
+
return {
|
|
738
|
+
gasInfo: exports.GasInfo.fromPartial({}),
|
|
739
|
+
result: undefined
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
exports.SimulationResponse = {
|
|
743
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse",
|
|
744
|
+
aminoType: "cosmos-sdk/SimulationResponse",
|
|
745
|
+
is(o) {
|
|
746
|
+
return o && (o.$typeUrl === exports.SimulationResponse.typeUrl || exports.GasInfo.is(o.gasInfo));
|
|
747
|
+
},
|
|
748
|
+
isAmino(o) {
|
|
749
|
+
return o && (o.$typeUrl === exports.SimulationResponse.typeUrl || exports.GasInfo.isAmino(o.gas_info));
|
|
750
|
+
},
|
|
751
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
752
|
+
if (message.gasInfo !== undefined) {
|
|
753
|
+
exports.GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim();
|
|
754
|
+
}
|
|
755
|
+
if (message.result !== undefined) {
|
|
756
|
+
exports.Result.encode(message.result, writer.uint32(18).fork()).ldelim();
|
|
757
|
+
}
|
|
758
|
+
return writer;
|
|
759
|
+
},
|
|
760
|
+
decode(input, length) {
|
|
761
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
762
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
763
|
+
const message = createBaseSimulationResponse();
|
|
764
|
+
while (reader.pos < end) {
|
|
765
|
+
const tag = reader.uint32();
|
|
766
|
+
switch (tag >>> 3) {
|
|
767
|
+
case 1:
|
|
768
|
+
message.gasInfo = exports.GasInfo.decode(reader, reader.uint32());
|
|
769
|
+
break;
|
|
770
|
+
case 2:
|
|
771
|
+
message.result = exports.Result.decode(reader, reader.uint32());
|
|
772
|
+
break;
|
|
773
|
+
default:
|
|
774
|
+
reader.skipType(tag & 7);
|
|
775
|
+
break;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
return message;
|
|
779
|
+
},
|
|
780
|
+
fromPartial(object) {
|
|
781
|
+
const message = createBaseSimulationResponse();
|
|
782
|
+
message.gasInfo = object.gasInfo !== undefined && object.gasInfo !== null ? exports.GasInfo.fromPartial(object.gasInfo) : undefined;
|
|
783
|
+
message.result = object.result !== undefined && object.result !== null ? exports.Result.fromPartial(object.result) : undefined;
|
|
784
|
+
return message;
|
|
785
|
+
},
|
|
786
|
+
fromAmino(object) {
|
|
787
|
+
const message = createBaseSimulationResponse();
|
|
788
|
+
if (object.gas_info !== undefined && object.gas_info !== null) {
|
|
789
|
+
message.gasInfo = exports.GasInfo.fromAmino(object.gas_info);
|
|
790
|
+
}
|
|
791
|
+
if (object.result !== undefined && object.result !== null) {
|
|
792
|
+
message.result = exports.Result.fromAmino(object.result);
|
|
793
|
+
}
|
|
794
|
+
return message;
|
|
795
|
+
},
|
|
796
|
+
toAmino(message) {
|
|
797
|
+
const obj = {};
|
|
798
|
+
obj.gas_info = message.gasInfo ? exports.GasInfo.toAmino(message.gasInfo) : undefined;
|
|
799
|
+
obj.result = message.result ? exports.Result.toAmino(message.result) : undefined;
|
|
800
|
+
return obj;
|
|
801
|
+
},
|
|
802
|
+
fromAminoMsg(object) {
|
|
803
|
+
return exports.SimulationResponse.fromAmino(object.value);
|
|
804
|
+
},
|
|
805
|
+
toAminoMsg(message) {
|
|
806
|
+
return {
|
|
807
|
+
type: "cosmos-sdk/SimulationResponse",
|
|
808
|
+
value: exports.SimulationResponse.toAmino(message)
|
|
809
|
+
};
|
|
810
|
+
},
|
|
811
|
+
fromProtoMsg(message) {
|
|
812
|
+
return exports.SimulationResponse.decode(message.value);
|
|
813
|
+
},
|
|
814
|
+
toProto(message) {
|
|
815
|
+
return exports.SimulationResponse.encode(message).finish();
|
|
816
|
+
},
|
|
817
|
+
toProtoMsg(message) {
|
|
818
|
+
return {
|
|
819
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse",
|
|
820
|
+
value: exports.SimulationResponse.encode(message).finish()
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
};
|
|
824
|
+
registry_1.GlobalDecoderRegistry.register(exports.SimulationResponse.typeUrl, exports.SimulationResponse);
|
|
825
|
+
registry_1.GlobalDecoderRegistry.registerAminoProtoMapping(exports.SimulationResponse.aminoType, exports.SimulationResponse.typeUrl);
|
|
826
|
+
function createBaseMsgData() {
|
|
827
|
+
return {
|
|
828
|
+
msgType: "",
|
|
829
|
+
data: new Uint8Array()
|
|
830
|
+
};
|
|
831
|
+
}
|
|
832
|
+
exports.MsgData = {
|
|
833
|
+
typeUrl: "/cosmos.base.abci.v1beta1.MsgData",
|
|
834
|
+
aminoType: "cosmos-sdk/MsgData",
|
|
835
|
+
is(o) {
|
|
836
|
+
return o && (o.$typeUrl === exports.MsgData.typeUrl || typeof o.msgType === "string" && (o.data instanceof Uint8Array || typeof o.data === "string"));
|
|
837
|
+
},
|
|
838
|
+
isAmino(o) {
|
|
839
|
+
return o && (o.$typeUrl === exports.MsgData.typeUrl || typeof o.msg_type === "string" && (o.data instanceof Uint8Array || typeof o.data === "string"));
|
|
840
|
+
},
|
|
841
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
842
|
+
if (message.msgType !== "") {
|
|
843
|
+
writer.uint32(10).string(message.msgType);
|
|
844
|
+
}
|
|
845
|
+
if (message.data.length !== 0) {
|
|
846
|
+
writer.uint32(18).bytes(message.data);
|
|
847
|
+
}
|
|
848
|
+
return writer;
|
|
849
|
+
},
|
|
850
|
+
decode(input, length) {
|
|
851
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
852
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
853
|
+
const message = createBaseMsgData();
|
|
854
|
+
while (reader.pos < end) {
|
|
855
|
+
const tag = reader.uint32();
|
|
856
|
+
switch (tag >>> 3) {
|
|
857
|
+
case 1:
|
|
858
|
+
message.msgType = reader.string();
|
|
859
|
+
break;
|
|
860
|
+
case 2:
|
|
861
|
+
message.data = reader.bytes();
|
|
862
|
+
break;
|
|
863
|
+
default:
|
|
864
|
+
reader.skipType(tag & 7);
|
|
865
|
+
break;
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
return message;
|
|
869
|
+
},
|
|
870
|
+
fromPartial(object) {
|
|
871
|
+
const message = createBaseMsgData();
|
|
872
|
+
message.msgType = object.msgType ?? "";
|
|
873
|
+
message.data = object.data ?? new Uint8Array();
|
|
874
|
+
return message;
|
|
875
|
+
},
|
|
876
|
+
fromAmino(object) {
|
|
877
|
+
const message = createBaseMsgData();
|
|
878
|
+
if (object.msg_type !== undefined && object.msg_type !== null) {
|
|
879
|
+
message.msgType = object.msg_type;
|
|
880
|
+
}
|
|
881
|
+
if (object.data !== undefined && object.data !== null) {
|
|
882
|
+
message.data = (0, helpers_1.bytesFromBase64)(object.data);
|
|
883
|
+
}
|
|
884
|
+
return message;
|
|
885
|
+
},
|
|
886
|
+
toAmino(message) {
|
|
887
|
+
const obj = {};
|
|
888
|
+
obj.msg_type = message.msgType === "" ? undefined : message.msgType;
|
|
889
|
+
obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined;
|
|
890
|
+
return obj;
|
|
891
|
+
},
|
|
892
|
+
fromAminoMsg(object) {
|
|
893
|
+
return exports.MsgData.fromAmino(object.value);
|
|
894
|
+
},
|
|
895
|
+
toAminoMsg(message) {
|
|
896
|
+
return {
|
|
897
|
+
type: "cosmos-sdk/MsgData",
|
|
898
|
+
value: exports.MsgData.toAmino(message)
|
|
899
|
+
};
|
|
900
|
+
},
|
|
901
|
+
fromProtoMsg(message) {
|
|
902
|
+
return exports.MsgData.decode(message.value);
|
|
903
|
+
},
|
|
904
|
+
toProto(message) {
|
|
905
|
+
return exports.MsgData.encode(message).finish();
|
|
906
|
+
},
|
|
907
|
+
toProtoMsg(message) {
|
|
908
|
+
return {
|
|
909
|
+
typeUrl: "/cosmos.base.abci.v1beta1.MsgData",
|
|
910
|
+
value: exports.MsgData.encode(message).finish()
|
|
911
|
+
};
|
|
912
|
+
}
|
|
913
|
+
};
|
|
914
|
+
registry_1.GlobalDecoderRegistry.register(exports.MsgData.typeUrl, exports.MsgData);
|
|
915
|
+
registry_1.GlobalDecoderRegistry.registerAminoProtoMapping(exports.MsgData.aminoType, exports.MsgData.typeUrl);
|
|
916
|
+
function createBaseTxMsgData() {
|
|
917
|
+
return {
|
|
918
|
+
data: [],
|
|
919
|
+
msgResponses: []
|
|
920
|
+
};
|
|
921
|
+
}
|
|
922
|
+
exports.TxMsgData = {
|
|
923
|
+
typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData",
|
|
924
|
+
aminoType: "cosmos-sdk/TxMsgData",
|
|
925
|
+
is(o) {
|
|
926
|
+
return o && (o.$typeUrl === exports.TxMsgData.typeUrl || Array.isArray(o.data) && (!o.data.length || exports.MsgData.is(o.data[0])) && Array.isArray(o.msgResponses) && (!o.msgResponses.length || any_1.Any.is(o.msgResponses[0])));
|
|
927
|
+
},
|
|
928
|
+
isAmino(o) {
|
|
929
|
+
return o && (o.$typeUrl === exports.TxMsgData.typeUrl || Array.isArray(o.data) && (!o.data.length || exports.MsgData.isAmino(o.data[0])) && Array.isArray(o.msg_responses) && (!o.msg_responses.length || any_1.Any.isAmino(o.msg_responses[0])));
|
|
930
|
+
},
|
|
931
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
932
|
+
for (const v of message.data) {
|
|
933
|
+
exports.MsgData.encode(v, writer.uint32(10).fork()).ldelim();
|
|
934
|
+
}
|
|
935
|
+
for (const v of message.msgResponses) {
|
|
936
|
+
any_1.Any.encode(v, writer.uint32(18).fork()).ldelim();
|
|
937
|
+
}
|
|
938
|
+
return writer;
|
|
939
|
+
},
|
|
940
|
+
decode(input, length) {
|
|
941
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
942
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
943
|
+
const message = createBaseTxMsgData();
|
|
944
|
+
while (reader.pos < end) {
|
|
945
|
+
const tag = reader.uint32();
|
|
946
|
+
switch (tag >>> 3) {
|
|
947
|
+
case 1:
|
|
948
|
+
message.data.push(exports.MsgData.decode(reader, reader.uint32()));
|
|
949
|
+
break;
|
|
950
|
+
case 2:
|
|
951
|
+
message.msgResponses.push(any_1.Any.decode(reader, reader.uint32()));
|
|
952
|
+
break;
|
|
953
|
+
default:
|
|
954
|
+
reader.skipType(tag & 7);
|
|
955
|
+
break;
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
return message;
|
|
959
|
+
},
|
|
960
|
+
fromPartial(object) {
|
|
961
|
+
const message = createBaseTxMsgData();
|
|
962
|
+
message.data = object.data?.map(e => exports.MsgData.fromPartial(e)) || [];
|
|
963
|
+
message.msgResponses = object.msgResponses?.map(e => any_1.Any.fromPartial(e)) || [];
|
|
964
|
+
return message;
|
|
965
|
+
},
|
|
966
|
+
fromAmino(object) {
|
|
967
|
+
const message = createBaseTxMsgData();
|
|
968
|
+
message.data = object.data?.map(e => exports.MsgData.fromAmino(e)) || [];
|
|
969
|
+
message.msgResponses = object.msg_responses?.map(e => any_1.Any.fromAmino(e)) || [];
|
|
970
|
+
return message;
|
|
971
|
+
},
|
|
972
|
+
toAmino(message) {
|
|
973
|
+
const obj = {};
|
|
974
|
+
if (message.data) {
|
|
975
|
+
obj.data = message.data.map(e => e ? exports.MsgData.toAmino(e) : undefined);
|
|
976
|
+
}
|
|
977
|
+
else {
|
|
978
|
+
obj.data = message.data;
|
|
979
|
+
}
|
|
980
|
+
if (message.msgResponses) {
|
|
981
|
+
obj.msg_responses = message.msgResponses.map(e => e ? any_1.Any.toAmino(e) : undefined);
|
|
982
|
+
}
|
|
983
|
+
else {
|
|
984
|
+
obj.msg_responses = message.msgResponses;
|
|
985
|
+
}
|
|
986
|
+
return obj;
|
|
987
|
+
},
|
|
988
|
+
fromAminoMsg(object) {
|
|
989
|
+
return exports.TxMsgData.fromAmino(object.value);
|
|
990
|
+
},
|
|
991
|
+
toAminoMsg(message) {
|
|
992
|
+
return {
|
|
993
|
+
type: "cosmos-sdk/TxMsgData",
|
|
994
|
+
value: exports.TxMsgData.toAmino(message)
|
|
995
|
+
};
|
|
996
|
+
},
|
|
997
|
+
fromProtoMsg(message) {
|
|
998
|
+
return exports.TxMsgData.decode(message.value);
|
|
999
|
+
},
|
|
1000
|
+
toProto(message) {
|
|
1001
|
+
return exports.TxMsgData.encode(message).finish();
|
|
1002
|
+
},
|
|
1003
|
+
toProtoMsg(message) {
|
|
1004
|
+
return {
|
|
1005
|
+
typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData",
|
|
1006
|
+
value: exports.TxMsgData.encode(message).finish()
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
};
|
|
1010
|
+
registry_1.GlobalDecoderRegistry.register(exports.TxMsgData.typeUrl, exports.TxMsgData);
|
|
1011
|
+
registry_1.GlobalDecoderRegistry.registerAminoProtoMapping(exports.TxMsgData.aminoType, exports.TxMsgData.typeUrl);
|
|
1012
|
+
function createBaseSearchTxsResult() {
|
|
1013
|
+
return {
|
|
1014
|
+
totalCount: BigInt(0),
|
|
1015
|
+
count: BigInt(0),
|
|
1016
|
+
pageNumber: BigInt(0),
|
|
1017
|
+
pageTotal: BigInt(0),
|
|
1018
|
+
limit: BigInt(0),
|
|
1019
|
+
txs: []
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
exports.SearchTxsResult = {
|
|
1023
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult",
|
|
1024
|
+
aminoType: "cosmos-sdk/SearchTxsResult",
|
|
1025
|
+
is(o) {
|
|
1026
|
+
return o && (o.$typeUrl === exports.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 || exports.TxResponse.is(o.txs[0])));
|
|
1027
|
+
},
|
|
1028
|
+
isAmino(o) {
|
|
1029
|
+
return o && (o.$typeUrl === exports.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 || exports.TxResponse.isAmino(o.txs[0])));
|
|
1030
|
+
},
|
|
1031
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1032
|
+
if (message.totalCount !== BigInt(0)) {
|
|
1033
|
+
writer.uint32(8).uint64(message.totalCount);
|
|
1034
|
+
}
|
|
1035
|
+
if (message.count !== BigInt(0)) {
|
|
1036
|
+
writer.uint32(16).uint64(message.count);
|
|
1037
|
+
}
|
|
1038
|
+
if (message.pageNumber !== BigInt(0)) {
|
|
1039
|
+
writer.uint32(24).uint64(message.pageNumber);
|
|
1040
|
+
}
|
|
1041
|
+
if (message.pageTotal !== BigInt(0)) {
|
|
1042
|
+
writer.uint32(32).uint64(message.pageTotal);
|
|
1043
|
+
}
|
|
1044
|
+
if (message.limit !== BigInt(0)) {
|
|
1045
|
+
writer.uint32(40).uint64(message.limit);
|
|
1046
|
+
}
|
|
1047
|
+
for (const v of message.txs) {
|
|
1048
|
+
exports.TxResponse.encode(v, writer.uint32(50).fork()).ldelim();
|
|
1049
|
+
}
|
|
1050
|
+
return writer;
|
|
1051
|
+
},
|
|
1052
|
+
decode(input, length) {
|
|
1053
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1054
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1055
|
+
const message = createBaseSearchTxsResult();
|
|
1056
|
+
while (reader.pos < end) {
|
|
1057
|
+
const tag = reader.uint32();
|
|
1058
|
+
switch (tag >>> 3) {
|
|
1059
|
+
case 1:
|
|
1060
|
+
message.totalCount = reader.uint64();
|
|
1061
|
+
break;
|
|
1062
|
+
case 2:
|
|
1063
|
+
message.count = reader.uint64();
|
|
1064
|
+
break;
|
|
1065
|
+
case 3:
|
|
1066
|
+
message.pageNumber = reader.uint64();
|
|
1067
|
+
break;
|
|
1068
|
+
case 4:
|
|
1069
|
+
message.pageTotal = reader.uint64();
|
|
1070
|
+
break;
|
|
1071
|
+
case 5:
|
|
1072
|
+
message.limit = reader.uint64();
|
|
1073
|
+
break;
|
|
1074
|
+
case 6:
|
|
1075
|
+
message.txs.push(exports.TxResponse.decode(reader, reader.uint32()));
|
|
1076
|
+
break;
|
|
1077
|
+
default:
|
|
1078
|
+
reader.skipType(tag & 7);
|
|
1079
|
+
break;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
return message;
|
|
1083
|
+
},
|
|
1084
|
+
fromPartial(object) {
|
|
1085
|
+
const message = createBaseSearchTxsResult();
|
|
1086
|
+
message.totalCount = object.totalCount !== undefined && object.totalCount !== null ? BigInt(object.totalCount.toString()) : BigInt(0);
|
|
1087
|
+
message.count = object.count !== undefined && object.count !== null ? BigInt(object.count.toString()) : BigInt(0);
|
|
1088
|
+
message.pageNumber = object.pageNumber !== undefined && object.pageNumber !== null ? BigInt(object.pageNumber.toString()) : BigInt(0);
|
|
1089
|
+
message.pageTotal = object.pageTotal !== undefined && object.pageTotal !== null ? BigInt(object.pageTotal.toString()) : BigInt(0);
|
|
1090
|
+
message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0);
|
|
1091
|
+
message.txs = object.txs?.map(e => exports.TxResponse.fromPartial(e)) || [];
|
|
1092
|
+
return message;
|
|
1093
|
+
},
|
|
1094
|
+
fromAmino(object) {
|
|
1095
|
+
const message = createBaseSearchTxsResult();
|
|
1096
|
+
if (object.total_count !== undefined && object.total_count !== null) {
|
|
1097
|
+
message.totalCount = BigInt(object.total_count);
|
|
1098
|
+
}
|
|
1099
|
+
if (object.count !== undefined && object.count !== null) {
|
|
1100
|
+
message.count = BigInt(object.count);
|
|
1101
|
+
}
|
|
1102
|
+
if (object.page_number !== undefined && object.page_number !== null) {
|
|
1103
|
+
message.pageNumber = BigInt(object.page_number);
|
|
1104
|
+
}
|
|
1105
|
+
if (object.page_total !== undefined && object.page_total !== null) {
|
|
1106
|
+
message.pageTotal = BigInt(object.page_total);
|
|
1107
|
+
}
|
|
1108
|
+
if (object.limit !== undefined && object.limit !== null) {
|
|
1109
|
+
message.limit = BigInt(object.limit);
|
|
1110
|
+
}
|
|
1111
|
+
message.txs = object.txs?.map(e => exports.TxResponse.fromAmino(e)) || [];
|
|
1112
|
+
return message;
|
|
1113
|
+
},
|
|
1114
|
+
toAmino(message) {
|
|
1115
|
+
const obj = {};
|
|
1116
|
+
obj.total_count = message.totalCount !== BigInt(0) ? message.totalCount?.toString() : undefined;
|
|
1117
|
+
obj.count = message.count !== BigInt(0) ? message.count?.toString() : undefined;
|
|
1118
|
+
obj.page_number = message.pageNumber !== BigInt(0) ? message.pageNumber?.toString() : undefined;
|
|
1119
|
+
obj.page_total = message.pageTotal !== BigInt(0) ? message.pageTotal?.toString() : undefined;
|
|
1120
|
+
obj.limit = message.limit !== BigInt(0) ? message.limit?.toString() : undefined;
|
|
1121
|
+
if (message.txs) {
|
|
1122
|
+
obj.txs = message.txs.map(e => e ? exports.TxResponse.toAmino(e) : undefined);
|
|
1123
|
+
}
|
|
1124
|
+
else {
|
|
1125
|
+
obj.txs = message.txs;
|
|
1126
|
+
}
|
|
1127
|
+
return obj;
|
|
1128
|
+
},
|
|
1129
|
+
fromAminoMsg(object) {
|
|
1130
|
+
return exports.SearchTxsResult.fromAmino(object.value);
|
|
1131
|
+
},
|
|
1132
|
+
toAminoMsg(message) {
|
|
1133
|
+
return {
|
|
1134
|
+
type: "cosmos-sdk/SearchTxsResult",
|
|
1135
|
+
value: exports.SearchTxsResult.toAmino(message)
|
|
1136
|
+
};
|
|
1137
|
+
},
|
|
1138
|
+
fromProtoMsg(message) {
|
|
1139
|
+
return exports.SearchTxsResult.decode(message.value);
|
|
1140
|
+
},
|
|
1141
|
+
toProto(message) {
|
|
1142
|
+
return exports.SearchTxsResult.encode(message).finish();
|
|
1143
|
+
},
|
|
1144
|
+
toProtoMsg(message) {
|
|
1145
|
+
return {
|
|
1146
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult",
|
|
1147
|
+
value: exports.SearchTxsResult.encode(message).finish()
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
};
|
|
1151
|
+
registry_1.GlobalDecoderRegistry.register(exports.SearchTxsResult.typeUrl, exports.SearchTxsResult);
|
|
1152
|
+
registry_1.GlobalDecoderRegistry.registerAminoProtoMapping(exports.SearchTxsResult.aminoType, exports.SearchTxsResult.typeUrl);
|
|
1153
|
+
function createBaseSearchBlocksResult() {
|
|
1154
|
+
return {
|
|
1155
|
+
totalCount: BigInt(0),
|
|
1156
|
+
count: BigInt(0),
|
|
1157
|
+
pageNumber: BigInt(0),
|
|
1158
|
+
pageTotal: BigInt(0),
|
|
1159
|
+
limit: BigInt(0),
|
|
1160
|
+
blocks: []
|
|
1161
|
+
};
|
|
1162
|
+
}
|
|
1163
|
+
exports.SearchBlocksResult = {
|
|
1164
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SearchBlocksResult",
|
|
1165
|
+
aminoType: "cosmos-sdk/SearchBlocksResult",
|
|
1166
|
+
is(o) {
|
|
1167
|
+
return o && (o.$typeUrl === exports.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_1.Block.is(o.blocks[0])));
|
|
1168
|
+
},
|
|
1169
|
+
isAmino(o) {
|
|
1170
|
+
return o && (o.$typeUrl === exports.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_1.Block.isAmino(o.blocks[0])));
|
|
1171
|
+
},
|
|
1172
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1173
|
+
if (message.totalCount !== BigInt(0)) {
|
|
1174
|
+
writer.uint32(8).int64(message.totalCount);
|
|
1175
|
+
}
|
|
1176
|
+
if (message.count !== BigInt(0)) {
|
|
1177
|
+
writer.uint32(16).int64(message.count);
|
|
1178
|
+
}
|
|
1179
|
+
if (message.pageNumber !== BigInt(0)) {
|
|
1180
|
+
writer.uint32(24).int64(message.pageNumber);
|
|
1181
|
+
}
|
|
1182
|
+
if (message.pageTotal !== BigInt(0)) {
|
|
1183
|
+
writer.uint32(32).int64(message.pageTotal);
|
|
1184
|
+
}
|
|
1185
|
+
if (message.limit !== BigInt(0)) {
|
|
1186
|
+
writer.uint32(40).int64(message.limit);
|
|
1187
|
+
}
|
|
1188
|
+
for (const v of message.blocks) {
|
|
1189
|
+
block_1.Block.encode(v, writer.uint32(50).fork()).ldelim();
|
|
1190
|
+
}
|
|
1191
|
+
return writer;
|
|
1192
|
+
},
|
|
1193
|
+
decode(input, length) {
|
|
1194
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1195
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1196
|
+
const message = createBaseSearchBlocksResult();
|
|
1197
|
+
while (reader.pos < end) {
|
|
1198
|
+
const tag = reader.uint32();
|
|
1199
|
+
switch (tag >>> 3) {
|
|
1200
|
+
case 1:
|
|
1201
|
+
message.totalCount = reader.int64();
|
|
1202
|
+
break;
|
|
1203
|
+
case 2:
|
|
1204
|
+
message.count = reader.int64();
|
|
1205
|
+
break;
|
|
1206
|
+
case 3:
|
|
1207
|
+
message.pageNumber = reader.int64();
|
|
1208
|
+
break;
|
|
1209
|
+
case 4:
|
|
1210
|
+
message.pageTotal = reader.int64();
|
|
1211
|
+
break;
|
|
1212
|
+
case 5:
|
|
1213
|
+
message.limit = reader.int64();
|
|
1214
|
+
break;
|
|
1215
|
+
case 6:
|
|
1216
|
+
message.blocks.push(block_1.Block.decode(reader, reader.uint32()));
|
|
1217
|
+
break;
|
|
1218
|
+
default:
|
|
1219
|
+
reader.skipType(tag & 7);
|
|
1220
|
+
break;
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
return message;
|
|
1224
|
+
},
|
|
1225
|
+
fromPartial(object) {
|
|
1226
|
+
const message = createBaseSearchBlocksResult();
|
|
1227
|
+
message.totalCount = object.totalCount !== undefined && object.totalCount !== null ? BigInt(object.totalCount.toString()) : BigInt(0);
|
|
1228
|
+
message.count = object.count !== undefined && object.count !== null ? BigInt(object.count.toString()) : BigInt(0);
|
|
1229
|
+
message.pageNumber = object.pageNumber !== undefined && object.pageNumber !== null ? BigInt(object.pageNumber.toString()) : BigInt(0);
|
|
1230
|
+
message.pageTotal = object.pageTotal !== undefined && object.pageTotal !== null ? BigInt(object.pageTotal.toString()) : BigInt(0);
|
|
1231
|
+
message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0);
|
|
1232
|
+
message.blocks = object.blocks?.map(e => block_1.Block.fromPartial(e)) || [];
|
|
1233
|
+
return message;
|
|
1234
|
+
},
|
|
1235
|
+
fromAmino(object) {
|
|
1236
|
+
const message = createBaseSearchBlocksResult();
|
|
1237
|
+
if (object.total_count !== undefined && object.total_count !== null) {
|
|
1238
|
+
message.totalCount = BigInt(object.total_count);
|
|
1239
|
+
}
|
|
1240
|
+
if (object.count !== undefined && object.count !== null) {
|
|
1241
|
+
message.count = BigInt(object.count);
|
|
1242
|
+
}
|
|
1243
|
+
if (object.page_number !== undefined && object.page_number !== null) {
|
|
1244
|
+
message.pageNumber = BigInt(object.page_number);
|
|
1245
|
+
}
|
|
1246
|
+
if (object.page_total !== undefined && object.page_total !== null) {
|
|
1247
|
+
message.pageTotal = BigInt(object.page_total);
|
|
1248
|
+
}
|
|
1249
|
+
if (object.limit !== undefined && object.limit !== null) {
|
|
1250
|
+
message.limit = BigInt(object.limit);
|
|
1251
|
+
}
|
|
1252
|
+
message.blocks = object.blocks?.map(e => block_1.Block.fromAmino(e)) || [];
|
|
1253
|
+
return message;
|
|
1254
|
+
},
|
|
1255
|
+
toAmino(message) {
|
|
1256
|
+
const obj = {};
|
|
1257
|
+
obj.total_count = message.totalCount !== BigInt(0) ? message.totalCount?.toString() : undefined;
|
|
1258
|
+
obj.count = message.count !== BigInt(0) ? message.count?.toString() : undefined;
|
|
1259
|
+
obj.page_number = message.pageNumber !== BigInt(0) ? message.pageNumber?.toString() : undefined;
|
|
1260
|
+
obj.page_total = message.pageTotal !== BigInt(0) ? message.pageTotal?.toString() : undefined;
|
|
1261
|
+
obj.limit = message.limit !== BigInt(0) ? message.limit?.toString() : undefined;
|
|
1262
|
+
if (message.blocks) {
|
|
1263
|
+
obj.blocks = message.blocks.map(e => e ? block_1.Block.toAmino(e) : undefined);
|
|
1264
|
+
}
|
|
1265
|
+
else {
|
|
1266
|
+
obj.blocks = message.blocks;
|
|
1267
|
+
}
|
|
1268
|
+
return obj;
|
|
1269
|
+
},
|
|
1270
|
+
fromAminoMsg(object) {
|
|
1271
|
+
return exports.SearchBlocksResult.fromAmino(object.value);
|
|
1272
|
+
},
|
|
1273
|
+
toAminoMsg(message) {
|
|
1274
|
+
return {
|
|
1275
|
+
type: "cosmos-sdk/SearchBlocksResult",
|
|
1276
|
+
value: exports.SearchBlocksResult.toAmino(message)
|
|
1277
|
+
};
|
|
1278
|
+
},
|
|
1279
|
+
fromProtoMsg(message) {
|
|
1280
|
+
return exports.SearchBlocksResult.decode(message.value);
|
|
1281
|
+
},
|
|
1282
|
+
toProto(message) {
|
|
1283
|
+
return exports.SearchBlocksResult.encode(message).finish();
|
|
1284
|
+
},
|
|
1285
|
+
toProtoMsg(message) {
|
|
1286
|
+
return {
|
|
1287
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SearchBlocksResult",
|
|
1288
|
+
value: exports.SearchBlocksResult.encode(message).finish()
|
|
1289
|
+
};
|
|
1290
|
+
}
|
|
1291
|
+
};
|
|
1292
|
+
registry_1.GlobalDecoderRegistry.register(exports.SearchBlocksResult.typeUrl, exports.SearchBlocksResult);
|
|
1293
|
+
registry_1.GlobalDecoderRegistry.registerAminoProtoMapping(exports.SearchBlocksResult.aminoType, exports.SearchBlocksResult.typeUrl);
|