@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,838 @@
|
|
|
1
|
+
import { Duration, DurationAmino } from "../../../../google/protobuf/duration";
|
|
2
|
+
import { Height, HeightAmino } from "../../../core/client/v1/client";
|
|
3
|
+
import { ProofSpec, ProofSpecAmino } from "../../../../cosmos/ics23/v1/proofs";
|
|
4
|
+
import { Timestamp } from "../../../../google/protobuf/timestamp";
|
|
5
|
+
import { MerkleRoot, MerkleRootAmino } from "../../../core/commitment/v1/commitment";
|
|
6
|
+
import { SignedHeader, SignedHeaderAmino } from "../../../../tendermint/types/types";
|
|
7
|
+
import { ValidatorSet, ValidatorSetAmino } from "../../../../tendermint/types/validator";
|
|
8
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
9
|
+
import { DeepPartial, toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../../../helpers";
|
|
10
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
11
|
+
/**
|
|
12
|
+
* ClientState from Tendermint tracks the current validator set, latest height,
|
|
13
|
+
* and a possible frozen height.
|
|
14
|
+
*/
|
|
15
|
+
export interface ClientState {
|
|
16
|
+
chainId: string;
|
|
17
|
+
trustLevel: Fraction;
|
|
18
|
+
/**
|
|
19
|
+
* duration of the period since the LastestTimestamp during which the
|
|
20
|
+
* submitted headers are valid for upgrade
|
|
21
|
+
*/
|
|
22
|
+
trustingPeriod: Duration;
|
|
23
|
+
/** duration of the staking unbonding period */
|
|
24
|
+
unbondingPeriod: Duration;
|
|
25
|
+
/** defines how much new (untrusted) header's Time can drift into the future. */
|
|
26
|
+
maxClockDrift: Duration;
|
|
27
|
+
/** Block height when the client was frozen due to a misbehaviour */
|
|
28
|
+
frozenHeight: Height;
|
|
29
|
+
/** Latest height the client was updated to */
|
|
30
|
+
latestHeight: Height;
|
|
31
|
+
/** Proof specifications used in verifying counterparty state */
|
|
32
|
+
proofSpecs: ProofSpec[];
|
|
33
|
+
/**
|
|
34
|
+
* Path at which next upgraded client will be committed.
|
|
35
|
+
* Each element corresponds to the key for a single CommitmentProof in the
|
|
36
|
+
* chained proof. NOTE: ClientState must stored under
|
|
37
|
+
* `{upgradePath}/{upgradeHeight}/clientState` ConsensusState must be stored
|
|
38
|
+
* under `{upgradepath}/{upgradeHeight}/consensusState` For SDK chains using
|
|
39
|
+
* the default upgrade module, upgrade_path should be []string{"upgrade",
|
|
40
|
+
* "upgradedIBCState"}`
|
|
41
|
+
*/
|
|
42
|
+
upgradePath: string[];
|
|
43
|
+
/** allow_update_after_expiry is deprecated */
|
|
44
|
+
/** @deprecated */
|
|
45
|
+
allowUpdateAfterExpiry: boolean;
|
|
46
|
+
/** allow_update_after_misbehaviour is deprecated */
|
|
47
|
+
/** @deprecated */
|
|
48
|
+
allowUpdateAfterMisbehaviour: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface ClientStateProtoMsg {
|
|
51
|
+
typeUrl: "/ibc.lightclients.tendermint.v1.ClientState";
|
|
52
|
+
value: Uint8Array;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* ClientState from Tendermint tracks the current validator set, latest height,
|
|
56
|
+
* and a possible frozen height.
|
|
57
|
+
*/
|
|
58
|
+
export interface ClientStateAmino {
|
|
59
|
+
chain_id: string;
|
|
60
|
+
trust_level: FractionAmino;
|
|
61
|
+
/**
|
|
62
|
+
* duration of the period since the LastestTimestamp during which the
|
|
63
|
+
* submitted headers are valid for upgrade
|
|
64
|
+
*/
|
|
65
|
+
trusting_period: DurationAmino;
|
|
66
|
+
/** duration of the staking unbonding period */
|
|
67
|
+
unbonding_period: DurationAmino;
|
|
68
|
+
/** defines how much new (untrusted) header's Time can drift into the future. */
|
|
69
|
+
max_clock_drift: DurationAmino;
|
|
70
|
+
/** Block height when the client was frozen due to a misbehaviour */
|
|
71
|
+
frozen_height: HeightAmino;
|
|
72
|
+
/** Latest height the client was updated to */
|
|
73
|
+
latest_height: HeightAmino;
|
|
74
|
+
/** Proof specifications used in verifying counterparty state */
|
|
75
|
+
proof_specs: ProofSpecAmino[];
|
|
76
|
+
/**
|
|
77
|
+
* Path at which next upgraded client will be committed.
|
|
78
|
+
* Each element corresponds to the key for a single CommitmentProof in the
|
|
79
|
+
* chained proof. NOTE: ClientState must stored under
|
|
80
|
+
* `{upgradePath}/{upgradeHeight}/clientState` ConsensusState must be stored
|
|
81
|
+
* under `{upgradepath}/{upgradeHeight}/consensusState` For SDK chains using
|
|
82
|
+
* the default upgrade module, upgrade_path should be []string{"upgrade",
|
|
83
|
+
* "upgradedIBCState"}`
|
|
84
|
+
*/
|
|
85
|
+
upgrade_path: string[];
|
|
86
|
+
/** allow_update_after_expiry is deprecated */
|
|
87
|
+
/** @deprecated */
|
|
88
|
+
allow_update_after_expiry: boolean;
|
|
89
|
+
/** allow_update_after_misbehaviour is deprecated */
|
|
90
|
+
/** @deprecated */
|
|
91
|
+
allow_update_after_misbehaviour: boolean;
|
|
92
|
+
}
|
|
93
|
+
export interface ClientStateAminoMsg {
|
|
94
|
+
type: "cosmos-sdk/ClientState";
|
|
95
|
+
value: ClientStateAmino;
|
|
96
|
+
}
|
|
97
|
+
/** ConsensusState defines the consensus state from Tendermint. */
|
|
98
|
+
export interface ConsensusState {
|
|
99
|
+
/**
|
|
100
|
+
* timestamp that corresponds to the block height in which the ConsensusState
|
|
101
|
+
* was stored.
|
|
102
|
+
*/
|
|
103
|
+
timestamp: Date;
|
|
104
|
+
/** commitment root (i.e app hash) */
|
|
105
|
+
root: MerkleRoot;
|
|
106
|
+
nextValidatorsHash: Uint8Array;
|
|
107
|
+
}
|
|
108
|
+
export interface ConsensusStateProtoMsg {
|
|
109
|
+
typeUrl: "/ibc.lightclients.tendermint.v1.ConsensusState";
|
|
110
|
+
value: Uint8Array;
|
|
111
|
+
}
|
|
112
|
+
/** ConsensusState defines the consensus state from Tendermint. */
|
|
113
|
+
export interface ConsensusStateAmino {
|
|
114
|
+
/**
|
|
115
|
+
* timestamp that corresponds to the block height in which the ConsensusState
|
|
116
|
+
* was stored.
|
|
117
|
+
*/
|
|
118
|
+
timestamp: string;
|
|
119
|
+
/** commitment root (i.e app hash) */
|
|
120
|
+
root: MerkleRootAmino;
|
|
121
|
+
next_validators_hash: string;
|
|
122
|
+
}
|
|
123
|
+
export interface ConsensusStateAminoMsg {
|
|
124
|
+
type: "cosmos-sdk/ConsensusState";
|
|
125
|
+
value: ConsensusStateAmino;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Misbehaviour is a wrapper over two conflicting Headers
|
|
129
|
+
* that implements Misbehaviour interface expected by ICS-02
|
|
130
|
+
*/
|
|
131
|
+
export interface Misbehaviour {
|
|
132
|
+
/** ClientID is deprecated */
|
|
133
|
+
/** @deprecated */
|
|
134
|
+
clientId: string;
|
|
135
|
+
header1?: Header;
|
|
136
|
+
header2?: Header;
|
|
137
|
+
}
|
|
138
|
+
export interface MisbehaviourProtoMsg {
|
|
139
|
+
typeUrl: "/ibc.lightclients.tendermint.v1.Misbehaviour";
|
|
140
|
+
value: Uint8Array;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Misbehaviour is a wrapper over two conflicting Headers
|
|
144
|
+
* that implements Misbehaviour interface expected by ICS-02
|
|
145
|
+
*/
|
|
146
|
+
export interface MisbehaviourAmino {
|
|
147
|
+
/** ClientID is deprecated */
|
|
148
|
+
/** @deprecated */
|
|
149
|
+
client_id: string;
|
|
150
|
+
header_1?: HeaderAmino;
|
|
151
|
+
header_2?: HeaderAmino;
|
|
152
|
+
}
|
|
153
|
+
export interface MisbehaviourAminoMsg {
|
|
154
|
+
type: "cosmos-sdk/Misbehaviour";
|
|
155
|
+
value: MisbehaviourAmino;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Header defines the Tendermint client consensus Header.
|
|
159
|
+
* It encapsulates all the information necessary to update from a trusted
|
|
160
|
+
* Tendermint ConsensusState. The inclusion of TrustedHeight and
|
|
161
|
+
* TrustedValidators allows this update to process correctly, so long as the
|
|
162
|
+
* ConsensusState for the TrustedHeight exists, this removes race conditions
|
|
163
|
+
* among relayers The SignedHeader and ValidatorSet are the new untrusted update
|
|
164
|
+
* fields for the client. The TrustedHeight is the height of a stored
|
|
165
|
+
* ConsensusState on the client that will be used to verify the new untrusted
|
|
166
|
+
* header. The Trusted ConsensusState must be within the unbonding period of
|
|
167
|
+
* current time in order to correctly verify, and the TrustedValidators must
|
|
168
|
+
* hash to TrustedConsensusState.NextValidatorsHash since that is the last
|
|
169
|
+
* trusted validator set at the TrustedHeight.
|
|
170
|
+
*/
|
|
171
|
+
export interface Header {
|
|
172
|
+
signedHeader?: SignedHeader;
|
|
173
|
+
validatorSet?: ValidatorSet;
|
|
174
|
+
trustedHeight: Height;
|
|
175
|
+
trustedValidators?: ValidatorSet;
|
|
176
|
+
}
|
|
177
|
+
export interface HeaderProtoMsg {
|
|
178
|
+
typeUrl: "/ibc.lightclients.tendermint.v1.Header";
|
|
179
|
+
value: Uint8Array;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Header defines the Tendermint client consensus Header.
|
|
183
|
+
* It encapsulates all the information necessary to update from a trusted
|
|
184
|
+
* Tendermint ConsensusState. The inclusion of TrustedHeight and
|
|
185
|
+
* TrustedValidators allows this update to process correctly, so long as the
|
|
186
|
+
* ConsensusState for the TrustedHeight exists, this removes race conditions
|
|
187
|
+
* among relayers The SignedHeader and ValidatorSet are the new untrusted update
|
|
188
|
+
* fields for the client. The TrustedHeight is the height of a stored
|
|
189
|
+
* ConsensusState on the client that will be used to verify the new untrusted
|
|
190
|
+
* header. The Trusted ConsensusState must be within the unbonding period of
|
|
191
|
+
* current time in order to correctly verify, and the TrustedValidators must
|
|
192
|
+
* hash to TrustedConsensusState.NextValidatorsHash since that is the last
|
|
193
|
+
* trusted validator set at the TrustedHeight.
|
|
194
|
+
*/
|
|
195
|
+
export interface HeaderAmino {
|
|
196
|
+
signed_header?: SignedHeaderAmino;
|
|
197
|
+
validator_set?: ValidatorSetAmino;
|
|
198
|
+
trusted_height: HeightAmino;
|
|
199
|
+
trusted_validators?: ValidatorSetAmino;
|
|
200
|
+
}
|
|
201
|
+
export interface HeaderAminoMsg {
|
|
202
|
+
type: "cosmos-sdk/Header";
|
|
203
|
+
value: HeaderAmino;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Fraction defines the protobuf message type for tmmath.Fraction that only
|
|
207
|
+
* supports positive values.
|
|
208
|
+
*/
|
|
209
|
+
export interface Fraction {
|
|
210
|
+
numerator: bigint;
|
|
211
|
+
denominator: bigint;
|
|
212
|
+
}
|
|
213
|
+
export interface FractionProtoMsg {
|
|
214
|
+
typeUrl: "/ibc.lightclients.tendermint.v1.Fraction";
|
|
215
|
+
value: Uint8Array;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Fraction defines the protobuf message type for tmmath.Fraction that only
|
|
219
|
+
* supports positive values.
|
|
220
|
+
*/
|
|
221
|
+
export interface FractionAmino {
|
|
222
|
+
numerator: string;
|
|
223
|
+
denominator: string;
|
|
224
|
+
}
|
|
225
|
+
export interface FractionAminoMsg {
|
|
226
|
+
type: "cosmos-sdk/Fraction";
|
|
227
|
+
value: FractionAmino;
|
|
228
|
+
}
|
|
229
|
+
function createBaseClientState(): ClientState {
|
|
230
|
+
return {
|
|
231
|
+
chainId: "",
|
|
232
|
+
trustLevel: Fraction.fromPartial({}),
|
|
233
|
+
trustingPeriod: Duration.fromPartial({}),
|
|
234
|
+
unbondingPeriod: Duration.fromPartial({}),
|
|
235
|
+
maxClockDrift: Duration.fromPartial({}),
|
|
236
|
+
frozenHeight: Height.fromPartial({}),
|
|
237
|
+
latestHeight: Height.fromPartial({}),
|
|
238
|
+
proofSpecs: [],
|
|
239
|
+
upgradePath: [],
|
|
240
|
+
allowUpdateAfterExpiry: false,
|
|
241
|
+
allowUpdateAfterMisbehaviour: false
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
export const ClientState = {
|
|
245
|
+
typeUrl: "/ibc.lightclients.tendermint.v1.ClientState",
|
|
246
|
+
aminoType: "cosmos-sdk/ClientState",
|
|
247
|
+
is(o: any): o is ClientState {
|
|
248
|
+
return o && (o.$typeUrl === ClientState.typeUrl || typeof o.chainId === "string" && Fraction.is(o.trustLevel) && Duration.is(o.trustingPeriod) && Duration.is(o.unbondingPeriod) && Duration.is(o.maxClockDrift) && Height.is(o.frozenHeight) && Height.is(o.latestHeight) && Array.isArray(o.proofSpecs) && (!o.proofSpecs.length || ProofSpec.is(o.proofSpecs[0])) && Array.isArray(o.upgradePath) && (!o.upgradePath.length || typeof o.upgradePath[0] === "string") && typeof o.allowUpdateAfterExpiry === "boolean" && typeof o.allowUpdateAfterMisbehaviour === "boolean");
|
|
249
|
+
},
|
|
250
|
+
isAmino(o: any): o is ClientStateAmino {
|
|
251
|
+
return o && (o.$typeUrl === ClientState.typeUrl || typeof o.chain_id === "string" && Fraction.isAmino(o.trust_level) && Duration.isAmino(o.trusting_period) && Duration.isAmino(o.unbonding_period) && Duration.isAmino(o.max_clock_drift) && Height.isAmino(o.frozen_height) && Height.isAmino(o.latest_height) && Array.isArray(o.proof_specs) && (!o.proof_specs.length || ProofSpec.isAmino(o.proof_specs[0])) && Array.isArray(o.upgrade_path) && (!o.upgrade_path.length || typeof o.upgrade_path[0] === "string") && typeof o.allow_update_after_expiry === "boolean" && typeof o.allow_update_after_misbehaviour === "boolean");
|
|
252
|
+
},
|
|
253
|
+
encode(message: ClientState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
254
|
+
if (message.chainId !== "") {
|
|
255
|
+
writer.uint32(10).string(message.chainId);
|
|
256
|
+
}
|
|
257
|
+
if (message.trustLevel !== undefined) {
|
|
258
|
+
Fraction.encode(message.trustLevel, writer.uint32(18).fork()).ldelim();
|
|
259
|
+
}
|
|
260
|
+
if (message.trustingPeriod !== undefined) {
|
|
261
|
+
Duration.encode(message.trustingPeriod, writer.uint32(26).fork()).ldelim();
|
|
262
|
+
}
|
|
263
|
+
if (message.unbondingPeriod !== undefined) {
|
|
264
|
+
Duration.encode(message.unbondingPeriod, writer.uint32(34).fork()).ldelim();
|
|
265
|
+
}
|
|
266
|
+
if (message.maxClockDrift !== undefined) {
|
|
267
|
+
Duration.encode(message.maxClockDrift, writer.uint32(42).fork()).ldelim();
|
|
268
|
+
}
|
|
269
|
+
if (message.frozenHeight !== undefined) {
|
|
270
|
+
Height.encode(message.frozenHeight, writer.uint32(50).fork()).ldelim();
|
|
271
|
+
}
|
|
272
|
+
if (message.latestHeight !== undefined) {
|
|
273
|
+
Height.encode(message.latestHeight, writer.uint32(58).fork()).ldelim();
|
|
274
|
+
}
|
|
275
|
+
for (const v of message.proofSpecs) {
|
|
276
|
+
ProofSpec.encode(v!, writer.uint32(66).fork()).ldelim();
|
|
277
|
+
}
|
|
278
|
+
for (const v of message.upgradePath) {
|
|
279
|
+
writer.uint32(74).string(v!);
|
|
280
|
+
}
|
|
281
|
+
if (message.allowUpdateAfterExpiry === true) {
|
|
282
|
+
writer.uint32(80).bool(message.allowUpdateAfterExpiry);
|
|
283
|
+
}
|
|
284
|
+
if (message.allowUpdateAfterMisbehaviour === true) {
|
|
285
|
+
writer.uint32(88).bool(message.allowUpdateAfterMisbehaviour);
|
|
286
|
+
}
|
|
287
|
+
return writer;
|
|
288
|
+
},
|
|
289
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ClientState {
|
|
290
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
291
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
292
|
+
const message = createBaseClientState();
|
|
293
|
+
while (reader.pos < end) {
|
|
294
|
+
const tag = reader.uint32();
|
|
295
|
+
switch (tag >>> 3) {
|
|
296
|
+
case 1:
|
|
297
|
+
message.chainId = reader.string();
|
|
298
|
+
break;
|
|
299
|
+
case 2:
|
|
300
|
+
message.trustLevel = Fraction.decode(reader, reader.uint32());
|
|
301
|
+
break;
|
|
302
|
+
case 3:
|
|
303
|
+
message.trustingPeriod = Duration.decode(reader, reader.uint32());
|
|
304
|
+
break;
|
|
305
|
+
case 4:
|
|
306
|
+
message.unbondingPeriod = Duration.decode(reader, reader.uint32());
|
|
307
|
+
break;
|
|
308
|
+
case 5:
|
|
309
|
+
message.maxClockDrift = Duration.decode(reader, reader.uint32());
|
|
310
|
+
break;
|
|
311
|
+
case 6:
|
|
312
|
+
message.frozenHeight = Height.decode(reader, reader.uint32());
|
|
313
|
+
break;
|
|
314
|
+
case 7:
|
|
315
|
+
message.latestHeight = Height.decode(reader, reader.uint32());
|
|
316
|
+
break;
|
|
317
|
+
case 8:
|
|
318
|
+
message.proofSpecs.push(ProofSpec.decode(reader, reader.uint32()));
|
|
319
|
+
break;
|
|
320
|
+
case 9:
|
|
321
|
+
message.upgradePath.push(reader.string());
|
|
322
|
+
break;
|
|
323
|
+
case 10:
|
|
324
|
+
message.allowUpdateAfterExpiry = reader.bool();
|
|
325
|
+
break;
|
|
326
|
+
case 11:
|
|
327
|
+
message.allowUpdateAfterMisbehaviour = reader.bool();
|
|
328
|
+
break;
|
|
329
|
+
default:
|
|
330
|
+
reader.skipType(tag & 7);
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
return message;
|
|
335
|
+
},
|
|
336
|
+
fromPartial(object: DeepPartial<ClientState>): ClientState {
|
|
337
|
+
const message = createBaseClientState();
|
|
338
|
+
message.chainId = object.chainId ?? "";
|
|
339
|
+
message.trustLevel = object.trustLevel !== undefined && object.trustLevel !== null ? Fraction.fromPartial(object.trustLevel) : undefined;
|
|
340
|
+
message.trustingPeriod = object.trustingPeriod !== undefined && object.trustingPeriod !== null ? Duration.fromPartial(object.trustingPeriod) : undefined;
|
|
341
|
+
message.unbondingPeriod = object.unbondingPeriod !== undefined && object.unbondingPeriod !== null ? Duration.fromPartial(object.unbondingPeriod) : undefined;
|
|
342
|
+
message.maxClockDrift = object.maxClockDrift !== undefined && object.maxClockDrift !== null ? Duration.fromPartial(object.maxClockDrift) : undefined;
|
|
343
|
+
message.frozenHeight = object.frozenHeight !== undefined && object.frozenHeight !== null ? Height.fromPartial(object.frozenHeight) : undefined;
|
|
344
|
+
message.latestHeight = object.latestHeight !== undefined && object.latestHeight !== null ? Height.fromPartial(object.latestHeight) : undefined;
|
|
345
|
+
message.proofSpecs = object.proofSpecs?.map(e => ProofSpec.fromPartial(e)) || [];
|
|
346
|
+
message.upgradePath = object.upgradePath?.map(e => e) || [];
|
|
347
|
+
message.allowUpdateAfterExpiry = object.allowUpdateAfterExpiry ?? false;
|
|
348
|
+
message.allowUpdateAfterMisbehaviour = object.allowUpdateAfterMisbehaviour ?? false;
|
|
349
|
+
return message;
|
|
350
|
+
},
|
|
351
|
+
fromAmino(object: ClientStateAmino): ClientState {
|
|
352
|
+
const message = createBaseClientState();
|
|
353
|
+
if (object.chain_id !== undefined && object.chain_id !== null) {
|
|
354
|
+
message.chainId = object.chain_id;
|
|
355
|
+
}
|
|
356
|
+
if (object.trust_level !== undefined && object.trust_level !== null) {
|
|
357
|
+
message.trustLevel = Fraction.fromAmino(object.trust_level);
|
|
358
|
+
}
|
|
359
|
+
if (object.trusting_period !== undefined && object.trusting_period !== null) {
|
|
360
|
+
message.trustingPeriod = Duration.fromAmino(object.trusting_period);
|
|
361
|
+
}
|
|
362
|
+
if (object.unbonding_period !== undefined && object.unbonding_period !== null) {
|
|
363
|
+
message.unbondingPeriod = Duration.fromAmino(object.unbonding_period);
|
|
364
|
+
}
|
|
365
|
+
if (object.max_clock_drift !== undefined && object.max_clock_drift !== null) {
|
|
366
|
+
message.maxClockDrift = Duration.fromAmino(object.max_clock_drift);
|
|
367
|
+
}
|
|
368
|
+
if (object.frozen_height !== undefined && object.frozen_height !== null) {
|
|
369
|
+
message.frozenHeight = Height.fromAmino(object.frozen_height);
|
|
370
|
+
}
|
|
371
|
+
if (object.latest_height !== undefined && object.latest_height !== null) {
|
|
372
|
+
message.latestHeight = Height.fromAmino(object.latest_height);
|
|
373
|
+
}
|
|
374
|
+
message.proofSpecs = object.proof_specs?.map(e => ProofSpec.fromAmino(e)) || [];
|
|
375
|
+
message.upgradePath = object.upgrade_path?.map(e => e) || [];
|
|
376
|
+
if (object.allow_update_after_expiry !== undefined && object.allow_update_after_expiry !== null) {
|
|
377
|
+
message.allowUpdateAfterExpiry = object.allow_update_after_expiry;
|
|
378
|
+
}
|
|
379
|
+
if (object.allow_update_after_misbehaviour !== undefined && object.allow_update_after_misbehaviour !== null) {
|
|
380
|
+
message.allowUpdateAfterMisbehaviour = object.allow_update_after_misbehaviour;
|
|
381
|
+
}
|
|
382
|
+
return message;
|
|
383
|
+
},
|
|
384
|
+
toAmino(message: ClientState): ClientStateAmino {
|
|
385
|
+
const obj: any = {};
|
|
386
|
+
obj.chain_id = message.chainId === "" ? undefined : message.chainId;
|
|
387
|
+
obj.trust_level = message.trustLevel ? Fraction.toAmino(message.trustLevel) : undefined;
|
|
388
|
+
obj.trusting_period = message.trustingPeriod ? Duration.toAmino(message.trustingPeriod) : undefined;
|
|
389
|
+
obj.unbonding_period = message.unbondingPeriod ? Duration.toAmino(message.unbondingPeriod) : undefined;
|
|
390
|
+
obj.max_clock_drift = message.maxClockDrift ? Duration.toAmino(message.maxClockDrift) : undefined;
|
|
391
|
+
obj.frozen_height = message.frozenHeight ? Height.toAmino(message.frozenHeight) : {};
|
|
392
|
+
obj.latest_height = message.latestHeight ? Height.toAmino(message.latestHeight) : {};
|
|
393
|
+
if (message.proofSpecs) {
|
|
394
|
+
obj.proof_specs = message.proofSpecs.map(e => e ? ProofSpec.toAmino(e) : undefined);
|
|
395
|
+
} else {
|
|
396
|
+
obj.proof_specs = message.proofSpecs;
|
|
397
|
+
}
|
|
398
|
+
if (message.upgradePath) {
|
|
399
|
+
obj.upgrade_path = message.upgradePath.map(e => e);
|
|
400
|
+
} else {
|
|
401
|
+
obj.upgrade_path = message.upgradePath;
|
|
402
|
+
}
|
|
403
|
+
obj.allow_update_after_expiry = message.allowUpdateAfterExpiry === false ? undefined : message.allowUpdateAfterExpiry;
|
|
404
|
+
obj.allow_update_after_misbehaviour = message.allowUpdateAfterMisbehaviour === false ? undefined : message.allowUpdateAfterMisbehaviour;
|
|
405
|
+
return obj;
|
|
406
|
+
},
|
|
407
|
+
fromAminoMsg(object: ClientStateAminoMsg): ClientState {
|
|
408
|
+
return ClientState.fromAmino(object.value);
|
|
409
|
+
},
|
|
410
|
+
toAminoMsg(message: ClientState): ClientStateAminoMsg {
|
|
411
|
+
return {
|
|
412
|
+
type: "cosmos-sdk/ClientState",
|
|
413
|
+
value: ClientState.toAmino(message)
|
|
414
|
+
};
|
|
415
|
+
},
|
|
416
|
+
fromProtoMsg(message: ClientStateProtoMsg): ClientState {
|
|
417
|
+
return ClientState.decode(message.value);
|
|
418
|
+
},
|
|
419
|
+
toProto(message: ClientState): Uint8Array {
|
|
420
|
+
return ClientState.encode(message).finish();
|
|
421
|
+
},
|
|
422
|
+
toProtoMsg(message: ClientState): ClientStateProtoMsg {
|
|
423
|
+
return {
|
|
424
|
+
typeUrl: "/ibc.lightclients.tendermint.v1.ClientState",
|
|
425
|
+
value: ClientState.encode(message).finish()
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
GlobalDecoderRegistry.register(ClientState.typeUrl, ClientState);
|
|
430
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ClientState.aminoType, ClientState.typeUrl);
|
|
431
|
+
function createBaseConsensusState(): ConsensusState {
|
|
432
|
+
return {
|
|
433
|
+
timestamp: new Date(),
|
|
434
|
+
root: MerkleRoot.fromPartial({}),
|
|
435
|
+
nextValidatorsHash: new Uint8Array()
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
export const ConsensusState = {
|
|
439
|
+
typeUrl: "/ibc.lightclients.tendermint.v1.ConsensusState",
|
|
440
|
+
aminoType: "cosmos-sdk/ConsensusState",
|
|
441
|
+
is(o: any): o is ConsensusState {
|
|
442
|
+
return o && (o.$typeUrl === ConsensusState.typeUrl || Timestamp.is(o.timestamp) && MerkleRoot.is(o.root) && (o.nextValidatorsHash instanceof Uint8Array || typeof o.nextValidatorsHash === "string"));
|
|
443
|
+
},
|
|
444
|
+
isAmino(o: any): o is ConsensusStateAmino {
|
|
445
|
+
return o && (o.$typeUrl === ConsensusState.typeUrl || Timestamp.isAmino(o.timestamp) && MerkleRoot.isAmino(o.root) && (o.next_validators_hash instanceof Uint8Array || typeof o.next_validators_hash === "string"));
|
|
446
|
+
},
|
|
447
|
+
encode(message: ConsensusState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
448
|
+
if (message.timestamp !== undefined) {
|
|
449
|
+
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).ldelim();
|
|
450
|
+
}
|
|
451
|
+
if (message.root !== undefined) {
|
|
452
|
+
MerkleRoot.encode(message.root, writer.uint32(18).fork()).ldelim();
|
|
453
|
+
}
|
|
454
|
+
if (message.nextValidatorsHash.length !== 0) {
|
|
455
|
+
writer.uint32(26).bytes(message.nextValidatorsHash);
|
|
456
|
+
}
|
|
457
|
+
return writer;
|
|
458
|
+
},
|
|
459
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ConsensusState {
|
|
460
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
461
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
462
|
+
const message = createBaseConsensusState();
|
|
463
|
+
while (reader.pos < end) {
|
|
464
|
+
const tag = reader.uint32();
|
|
465
|
+
switch (tag >>> 3) {
|
|
466
|
+
case 1:
|
|
467
|
+
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
468
|
+
break;
|
|
469
|
+
case 2:
|
|
470
|
+
message.root = MerkleRoot.decode(reader, reader.uint32());
|
|
471
|
+
break;
|
|
472
|
+
case 3:
|
|
473
|
+
message.nextValidatorsHash = reader.bytes();
|
|
474
|
+
break;
|
|
475
|
+
default:
|
|
476
|
+
reader.skipType(tag & 7);
|
|
477
|
+
break;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
return message;
|
|
481
|
+
},
|
|
482
|
+
fromPartial(object: DeepPartial<ConsensusState>): ConsensusState {
|
|
483
|
+
const message = createBaseConsensusState();
|
|
484
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
485
|
+
message.root = object.root !== undefined && object.root !== null ? MerkleRoot.fromPartial(object.root) : undefined;
|
|
486
|
+
message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array();
|
|
487
|
+
return message;
|
|
488
|
+
},
|
|
489
|
+
fromAmino(object: ConsensusStateAmino): ConsensusState {
|
|
490
|
+
const message = createBaseConsensusState();
|
|
491
|
+
if (object.timestamp !== undefined && object.timestamp !== null) {
|
|
492
|
+
message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp));
|
|
493
|
+
}
|
|
494
|
+
if (object.root !== undefined && object.root !== null) {
|
|
495
|
+
message.root = MerkleRoot.fromAmino(object.root);
|
|
496
|
+
}
|
|
497
|
+
if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) {
|
|
498
|
+
message.nextValidatorsHash = bytesFromBase64(object.next_validators_hash);
|
|
499
|
+
}
|
|
500
|
+
return message;
|
|
501
|
+
},
|
|
502
|
+
toAmino(message: ConsensusState): ConsensusStateAmino {
|
|
503
|
+
const obj: any = {};
|
|
504
|
+
obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined;
|
|
505
|
+
obj.root = message.root ? MerkleRoot.toAmino(message.root) : undefined;
|
|
506
|
+
obj.next_validators_hash = message.nextValidatorsHash ? base64FromBytes(message.nextValidatorsHash) : undefined;
|
|
507
|
+
return obj;
|
|
508
|
+
},
|
|
509
|
+
fromAminoMsg(object: ConsensusStateAminoMsg): ConsensusState {
|
|
510
|
+
return ConsensusState.fromAmino(object.value);
|
|
511
|
+
},
|
|
512
|
+
toAminoMsg(message: ConsensusState): ConsensusStateAminoMsg {
|
|
513
|
+
return {
|
|
514
|
+
type: "cosmos-sdk/ConsensusState",
|
|
515
|
+
value: ConsensusState.toAmino(message)
|
|
516
|
+
};
|
|
517
|
+
},
|
|
518
|
+
fromProtoMsg(message: ConsensusStateProtoMsg): ConsensusState {
|
|
519
|
+
return ConsensusState.decode(message.value);
|
|
520
|
+
},
|
|
521
|
+
toProto(message: ConsensusState): Uint8Array {
|
|
522
|
+
return ConsensusState.encode(message).finish();
|
|
523
|
+
},
|
|
524
|
+
toProtoMsg(message: ConsensusState): ConsensusStateProtoMsg {
|
|
525
|
+
return {
|
|
526
|
+
typeUrl: "/ibc.lightclients.tendermint.v1.ConsensusState",
|
|
527
|
+
value: ConsensusState.encode(message).finish()
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
GlobalDecoderRegistry.register(ConsensusState.typeUrl, ConsensusState);
|
|
532
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ConsensusState.aminoType, ConsensusState.typeUrl);
|
|
533
|
+
function createBaseMisbehaviour(): Misbehaviour {
|
|
534
|
+
return {
|
|
535
|
+
clientId: "",
|
|
536
|
+
header1: undefined,
|
|
537
|
+
header2: undefined
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
export const Misbehaviour = {
|
|
541
|
+
typeUrl: "/ibc.lightclients.tendermint.v1.Misbehaviour",
|
|
542
|
+
aminoType: "cosmos-sdk/Misbehaviour",
|
|
543
|
+
is(o: any): o is Misbehaviour {
|
|
544
|
+
return o && (o.$typeUrl === Misbehaviour.typeUrl || typeof o.clientId === "string");
|
|
545
|
+
},
|
|
546
|
+
isAmino(o: any): o is MisbehaviourAmino {
|
|
547
|
+
return o && (o.$typeUrl === Misbehaviour.typeUrl || typeof o.client_id === "string");
|
|
548
|
+
},
|
|
549
|
+
encode(message: Misbehaviour, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
550
|
+
if (message.clientId !== "") {
|
|
551
|
+
writer.uint32(10).string(message.clientId);
|
|
552
|
+
}
|
|
553
|
+
if (message.header1 !== undefined) {
|
|
554
|
+
Header.encode(message.header1, writer.uint32(18).fork()).ldelim();
|
|
555
|
+
}
|
|
556
|
+
if (message.header2 !== undefined) {
|
|
557
|
+
Header.encode(message.header2, writer.uint32(26).fork()).ldelim();
|
|
558
|
+
}
|
|
559
|
+
return writer;
|
|
560
|
+
},
|
|
561
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Misbehaviour {
|
|
562
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
563
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
564
|
+
const message = createBaseMisbehaviour();
|
|
565
|
+
while (reader.pos < end) {
|
|
566
|
+
const tag = reader.uint32();
|
|
567
|
+
switch (tag >>> 3) {
|
|
568
|
+
case 1:
|
|
569
|
+
message.clientId = reader.string();
|
|
570
|
+
break;
|
|
571
|
+
case 2:
|
|
572
|
+
message.header1 = Header.decode(reader, reader.uint32());
|
|
573
|
+
break;
|
|
574
|
+
case 3:
|
|
575
|
+
message.header2 = Header.decode(reader, reader.uint32());
|
|
576
|
+
break;
|
|
577
|
+
default:
|
|
578
|
+
reader.skipType(tag & 7);
|
|
579
|
+
break;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
return message;
|
|
583
|
+
},
|
|
584
|
+
fromPartial(object: DeepPartial<Misbehaviour>): Misbehaviour {
|
|
585
|
+
const message = createBaseMisbehaviour();
|
|
586
|
+
message.clientId = object.clientId ?? "";
|
|
587
|
+
message.header1 = object.header1 !== undefined && object.header1 !== null ? Header.fromPartial(object.header1) : undefined;
|
|
588
|
+
message.header2 = object.header2 !== undefined && object.header2 !== null ? Header.fromPartial(object.header2) : undefined;
|
|
589
|
+
return message;
|
|
590
|
+
},
|
|
591
|
+
fromAmino(object: MisbehaviourAmino): Misbehaviour {
|
|
592
|
+
const message = createBaseMisbehaviour();
|
|
593
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
594
|
+
message.clientId = object.client_id;
|
|
595
|
+
}
|
|
596
|
+
if (object.header_1 !== undefined && object.header_1 !== null) {
|
|
597
|
+
message.header1 = Header.fromAmino(object.header_1);
|
|
598
|
+
}
|
|
599
|
+
if (object.header_2 !== undefined && object.header_2 !== null) {
|
|
600
|
+
message.header2 = Header.fromAmino(object.header_2);
|
|
601
|
+
}
|
|
602
|
+
return message;
|
|
603
|
+
},
|
|
604
|
+
toAmino(message: Misbehaviour): MisbehaviourAmino {
|
|
605
|
+
const obj: any = {};
|
|
606
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
607
|
+
obj.header_1 = message.header1 ? Header.toAmino(message.header1) : undefined;
|
|
608
|
+
obj.header_2 = message.header2 ? Header.toAmino(message.header2) : undefined;
|
|
609
|
+
return obj;
|
|
610
|
+
},
|
|
611
|
+
fromAminoMsg(object: MisbehaviourAminoMsg): Misbehaviour {
|
|
612
|
+
return Misbehaviour.fromAmino(object.value);
|
|
613
|
+
},
|
|
614
|
+
toAminoMsg(message: Misbehaviour): MisbehaviourAminoMsg {
|
|
615
|
+
return {
|
|
616
|
+
type: "cosmos-sdk/Misbehaviour",
|
|
617
|
+
value: Misbehaviour.toAmino(message)
|
|
618
|
+
};
|
|
619
|
+
},
|
|
620
|
+
fromProtoMsg(message: MisbehaviourProtoMsg): Misbehaviour {
|
|
621
|
+
return Misbehaviour.decode(message.value);
|
|
622
|
+
},
|
|
623
|
+
toProto(message: Misbehaviour): Uint8Array {
|
|
624
|
+
return Misbehaviour.encode(message).finish();
|
|
625
|
+
},
|
|
626
|
+
toProtoMsg(message: Misbehaviour): MisbehaviourProtoMsg {
|
|
627
|
+
return {
|
|
628
|
+
typeUrl: "/ibc.lightclients.tendermint.v1.Misbehaviour",
|
|
629
|
+
value: Misbehaviour.encode(message).finish()
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
};
|
|
633
|
+
GlobalDecoderRegistry.register(Misbehaviour.typeUrl, Misbehaviour);
|
|
634
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Misbehaviour.aminoType, Misbehaviour.typeUrl);
|
|
635
|
+
function createBaseHeader(): Header {
|
|
636
|
+
return {
|
|
637
|
+
signedHeader: undefined,
|
|
638
|
+
validatorSet: undefined,
|
|
639
|
+
trustedHeight: Height.fromPartial({}),
|
|
640
|
+
trustedValidators: undefined
|
|
641
|
+
};
|
|
642
|
+
}
|
|
643
|
+
export const Header = {
|
|
644
|
+
typeUrl: "/ibc.lightclients.tendermint.v1.Header",
|
|
645
|
+
aminoType: "cosmos-sdk/Header",
|
|
646
|
+
is(o: any): o is Header {
|
|
647
|
+
return o && (o.$typeUrl === Header.typeUrl || Height.is(o.trustedHeight));
|
|
648
|
+
},
|
|
649
|
+
isAmino(o: any): o is HeaderAmino {
|
|
650
|
+
return o && (o.$typeUrl === Header.typeUrl || Height.isAmino(o.trusted_height));
|
|
651
|
+
},
|
|
652
|
+
encode(message: Header, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
653
|
+
if (message.signedHeader !== undefined) {
|
|
654
|
+
SignedHeader.encode(message.signedHeader, writer.uint32(10).fork()).ldelim();
|
|
655
|
+
}
|
|
656
|
+
if (message.validatorSet !== undefined) {
|
|
657
|
+
ValidatorSet.encode(message.validatorSet, writer.uint32(18).fork()).ldelim();
|
|
658
|
+
}
|
|
659
|
+
if (message.trustedHeight !== undefined) {
|
|
660
|
+
Height.encode(message.trustedHeight, writer.uint32(26).fork()).ldelim();
|
|
661
|
+
}
|
|
662
|
+
if (message.trustedValidators !== undefined) {
|
|
663
|
+
ValidatorSet.encode(message.trustedValidators, writer.uint32(34).fork()).ldelim();
|
|
664
|
+
}
|
|
665
|
+
return writer;
|
|
666
|
+
},
|
|
667
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Header {
|
|
668
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
669
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
670
|
+
const message = createBaseHeader();
|
|
671
|
+
while (reader.pos < end) {
|
|
672
|
+
const tag = reader.uint32();
|
|
673
|
+
switch (tag >>> 3) {
|
|
674
|
+
case 1:
|
|
675
|
+
message.signedHeader = SignedHeader.decode(reader, reader.uint32());
|
|
676
|
+
break;
|
|
677
|
+
case 2:
|
|
678
|
+
message.validatorSet = ValidatorSet.decode(reader, reader.uint32());
|
|
679
|
+
break;
|
|
680
|
+
case 3:
|
|
681
|
+
message.trustedHeight = Height.decode(reader, reader.uint32());
|
|
682
|
+
break;
|
|
683
|
+
case 4:
|
|
684
|
+
message.trustedValidators = ValidatorSet.decode(reader, reader.uint32());
|
|
685
|
+
break;
|
|
686
|
+
default:
|
|
687
|
+
reader.skipType(tag & 7);
|
|
688
|
+
break;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
return message;
|
|
692
|
+
},
|
|
693
|
+
fromPartial(object: DeepPartial<Header>): Header {
|
|
694
|
+
const message = createBaseHeader();
|
|
695
|
+
message.signedHeader = object.signedHeader !== undefined && object.signedHeader !== null ? SignedHeader.fromPartial(object.signedHeader) : undefined;
|
|
696
|
+
message.validatorSet = object.validatorSet !== undefined && object.validatorSet !== null ? ValidatorSet.fromPartial(object.validatorSet) : undefined;
|
|
697
|
+
message.trustedHeight = object.trustedHeight !== undefined && object.trustedHeight !== null ? Height.fromPartial(object.trustedHeight) : undefined;
|
|
698
|
+
message.trustedValidators = object.trustedValidators !== undefined && object.trustedValidators !== null ? ValidatorSet.fromPartial(object.trustedValidators) : undefined;
|
|
699
|
+
return message;
|
|
700
|
+
},
|
|
701
|
+
fromAmino(object: HeaderAmino): Header {
|
|
702
|
+
const message = createBaseHeader();
|
|
703
|
+
if (object.signed_header !== undefined && object.signed_header !== null) {
|
|
704
|
+
message.signedHeader = SignedHeader.fromAmino(object.signed_header);
|
|
705
|
+
}
|
|
706
|
+
if (object.validator_set !== undefined && object.validator_set !== null) {
|
|
707
|
+
message.validatorSet = ValidatorSet.fromAmino(object.validator_set);
|
|
708
|
+
}
|
|
709
|
+
if (object.trusted_height !== undefined && object.trusted_height !== null) {
|
|
710
|
+
message.trustedHeight = Height.fromAmino(object.trusted_height);
|
|
711
|
+
}
|
|
712
|
+
if (object.trusted_validators !== undefined && object.trusted_validators !== null) {
|
|
713
|
+
message.trustedValidators = ValidatorSet.fromAmino(object.trusted_validators);
|
|
714
|
+
}
|
|
715
|
+
return message;
|
|
716
|
+
},
|
|
717
|
+
toAmino(message: Header): HeaderAmino {
|
|
718
|
+
const obj: any = {};
|
|
719
|
+
obj.signed_header = message.signedHeader ? SignedHeader.toAmino(message.signedHeader) : undefined;
|
|
720
|
+
obj.validator_set = message.validatorSet ? ValidatorSet.toAmino(message.validatorSet) : undefined;
|
|
721
|
+
obj.trusted_height = message.trustedHeight ? Height.toAmino(message.trustedHeight) : {};
|
|
722
|
+
obj.trusted_validators = message.trustedValidators ? ValidatorSet.toAmino(message.trustedValidators) : undefined;
|
|
723
|
+
return obj;
|
|
724
|
+
},
|
|
725
|
+
fromAminoMsg(object: HeaderAminoMsg): Header {
|
|
726
|
+
return Header.fromAmino(object.value);
|
|
727
|
+
},
|
|
728
|
+
toAminoMsg(message: Header): HeaderAminoMsg {
|
|
729
|
+
return {
|
|
730
|
+
type: "cosmos-sdk/Header",
|
|
731
|
+
value: Header.toAmino(message)
|
|
732
|
+
};
|
|
733
|
+
},
|
|
734
|
+
fromProtoMsg(message: HeaderProtoMsg): Header {
|
|
735
|
+
return Header.decode(message.value);
|
|
736
|
+
},
|
|
737
|
+
toProto(message: Header): Uint8Array {
|
|
738
|
+
return Header.encode(message).finish();
|
|
739
|
+
},
|
|
740
|
+
toProtoMsg(message: Header): HeaderProtoMsg {
|
|
741
|
+
return {
|
|
742
|
+
typeUrl: "/ibc.lightclients.tendermint.v1.Header",
|
|
743
|
+
value: Header.encode(message).finish()
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
};
|
|
747
|
+
GlobalDecoderRegistry.register(Header.typeUrl, Header);
|
|
748
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Header.aminoType, Header.typeUrl);
|
|
749
|
+
function createBaseFraction(): Fraction {
|
|
750
|
+
return {
|
|
751
|
+
numerator: BigInt(0),
|
|
752
|
+
denominator: BigInt(0)
|
|
753
|
+
};
|
|
754
|
+
}
|
|
755
|
+
export const Fraction = {
|
|
756
|
+
typeUrl: "/ibc.lightclients.tendermint.v1.Fraction",
|
|
757
|
+
aminoType: "cosmos-sdk/Fraction",
|
|
758
|
+
is(o: any): o is Fraction {
|
|
759
|
+
return o && (o.$typeUrl === Fraction.typeUrl || typeof o.numerator === "bigint" && typeof o.denominator === "bigint");
|
|
760
|
+
},
|
|
761
|
+
isAmino(o: any): o is FractionAmino {
|
|
762
|
+
return o && (o.$typeUrl === Fraction.typeUrl || typeof o.numerator === "bigint" && typeof o.denominator === "bigint");
|
|
763
|
+
},
|
|
764
|
+
encode(message: Fraction, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
765
|
+
if (message.numerator !== BigInt(0)) {
|
|
766
|
+
writer.uint32(8).uint64(message.numerator);
|
|
767
|
+
}
|
|
768
|
+
if (message.denominator !== BigInt(0)) {
|
|
769
|
+
writer.uint32(16).uint64(message.denominator);
|
|
770
|
+
}
|
|
771
|
+
return writer;
|
|
772
|
+
},
|
|
773
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Fraction {
|
|
774
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
775
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
776
|
+
const message = createBaseFraction();
|
|
777
|
+
while (reader.pos < end) {
|
|
778
|
+
const tag = reader.uint32();
|
|
779
|
+
switch (tag >>> 3) {
|
|
780
|
+
case 1:
|
|
781
|
+
message.numerator = reader.uint64();
|
|
782
|
+
break;
|
|
783
|
+
case 2:
|
|
784
|
+
message.denominator = reader.uint64();
|
|
785
|
+
break;
|
|
786
|
+
default:
|
|
787
|
+
reader.skipType(tag & 7);
|
|
788
|
+
break;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
return message;
|
|
792
|
+
},
|
|
793
|
+
fromPartial(object: DeepPartial<Fraction>): Fraction {
|
|
794
|
+
const message = createBaseFraction();
|
|
795
|
+
message.numerator = object.numerator !== undefined && object.numerator !== null ? BigInt(object.numerator.toString()) : BigInt(0);
|
|
796
|
+
message.denominator = object.denominator !== undefined && object.denominator !== null ? BigInt(object.denominator.toString()) : BigInt(0);
|
|
797
|
+
return message;
|
|
798
|
+
},
|
|
799
|
+
fromAmino(object: FractionAmino): Fraction {
|
|
800
|
+
const message = createBaseFraction();
|
|
801
|
+
if (object.numerator !== undefined && object.numerator !== null) {
|
|
802
|
+
message.numerator = BigInt(object.numerator);
|
|
803
|
+
}
|
|
804
|
+
if (object.denominator !== undefined && object.denominator !== null) {
|
|
805
|
+
message.denominator = BigInt(object.denominator);
|
|
806
|
+
}
|
|
807
|
+
return message;
|
|
808
|
+
},
|
|
809
|
+
toAmino(message: Fraction): FractionAmino {
|
|
810
|
+
const obj: any = {};
|
|
811
|
+
obj.numerator = message.numerator !== BigInt(0) ? message.numerator?.toString() : undefined;
|
|
812
|
+
obj.denominator = message.denominator !== BigInt(0) ? message.denominator?.toString() : undefined;
|
|
813
|
+
return obj;
|
|
814
|
+
},
|
|
815
|
+
fromAminoMsg(object: FractionAminoMsg): Fraction {
|
|
816
|
+
return Fraction.fromAmino(object.value);
|
|
817
|
+
},
|
|
818
|
+
toAminoMsg(message: Fraction): FractionAminoMsg {
|
|
819
|
+
return {
|
|
820
|
+
type: "cosmos-sdk/Fraction",
|
|
821
|
+
value: Fraction.toAmino(message)
|
|
822
|
+
};
|
|
823
|
+
},
|
|
824
|
+
fromProtoMsg(message: FractionProtoMsg): Fraction {
|
|
825
|
+
return Fraction.decode(message.value);
|
|
826
|
+
},
|
|
827
|
+
toProto(message: Fraction): Uint8Array {
|
|
828
|
+
return Fraction.encode(message).finish();
|
|
829
|
+
},
|
|
830
|
+
toProtoMsg(message: Fraction): FractionProtoMsg {
|
|
831
|
+
return {
|
|
832
|
+
typeUrl: "/ibc.lightclients.tendermint.v1.Fraction",
|
|
833
|
+
value: Fraction.encode(message).finish()
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
};
|
|
837
|
+
GlobalDecoderRegistry.register(Fraction.typeUrl, Fraction);
|
|
838
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Fraction.aminoType, Fraction.typeUrl);
|