@xpla/xpla-react 1.7.0-beta.0 → 1.7.0-beta.10
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/amino/amino.d.ts +1 -0
- package/amino/amino.js +2 -0
- package/binary.d.ts +130 -0
- package/binary.js +370 -0
- package/cosmos/app/runtime/v1alpha1/module.d.ts +174 -0
- package/cosmos/app/runtime/v1alpha1/module.js +293 -0
- package/cosmos/app/runtime/v2/module.d.ts +228 -0
- package/cosmos/app/runtime/v2/module.js +422 -0
- package/cosmos/app/v1alpha1/config.d.ts +181 -0
- package/cosmos/app/v1alpha1/config.js +297 -0
- package/cosmos/app/v1alpha1/module.d.ts +234 -0
- package/cosmos/app/v1alpha1/module.js +281 -0
- package/cosmos/app/v1alpha1/query.d.ts +67 -0
- package/cosmos/app/v1alpha1/query.js +149 -0
- package/cosmos/app/v1alpha1/query.rpc.func.d.ts +4 -0
- package/cosmos/app/v1alpha1/query.rpc.func.js +18 -0
- package/cosmos/auth/module/v1/module.d.ts +88 -0
- package/cosmos/auth/module/v1/module.js +203 -0
- package/cosmos/auth/v1beta1/accounts.d.ts +104 -0
- package/cosmos/auth/v1beta1/accounts.js +162 -0
- package/cosmos/auth/v1beta1/auth.d.ts +177 -0
- package/cosmos/auth/v1beta1/auth.js +445 -0
- package/cosmos/auth/v1beta1/genesis.d.ts +42 -0
- package/cosmos/auth/v1beta1/genesis.js +100 -0
- package/cosmos/auth/v1beta1/query.d.ts +810 -0
- package/cosmos/auth/v1beta1/query.js +1561 -0
- package/cosmos/auth/v1beta1/query.rpc.func.d.ts +22 -0
- package/cosmos/auth/v1beta1/query.rpc.func.js +126 -0
- package/cosmos/auth/v1beta1/tx.d.ts +97 -0
- package/cosmos/auth/v1beta1/tx.js +161 -0
- package/cosmos/auth/v1beta1/tx.registry.d.ts +23 -0
- package/cosmos/auth/v1beta1/tx.registry.js +31 -0
- package/cosmos/auth/v1beta1/tx.rpc.func.d.ts +4 -0
- package/cosmos/auth/v1beta1/tx.rpc.func.js +17 -0
- package/cosmos/authz/module/v1/module.d.ts +32 -0
- package/cosmos/authz/module/v1/module.js +70 -0
- package/cosmos/authz/v1beta1/authz.d.ts +181 -0
- package/cosmos/authz/v1beta1/authz.js +371 -0
- package/cosmos/authz/v1beta1/event.d.ts +86 -0
- package/cosmos/authz/v1beta1/event.js +209 -0
- package/cosmos/authz/v1beta1/genesis.d.ts +35 -0
- package/cosmos/authz/v1beta1/genesis.js +87 -0
- package/cosmos/authz/v1beta1/query.d.ts +232 -0
- package/cosmos/authz/v1beta1/query.js +580 -0
- package/cosmos/authz/v1beta1/query.rpc.func.d.ts +8 -0
- package/cosmos/authz/v1beta1/query.rpc.func.js +42 -0
- package/cosmos/authz/v1beta1/tx.d.ts +240 -0
- package/cosmos/authz/v1beta1/tx.js +516 -0
- package/cosmos/authz/v1beta1/tx.registry.d.ts +47 -0
- package/cosmos/authz/v1beta1/tx.registry.js +67 -0
- package/cosmos/authz/v1beta1/tx.rpc.func.d.ts +8 -0
- package/cosmos/authz/v1beta1/tx.rpc.func.js +37 -0
- package/cosmos/autocli/v1/options.d.ts +412 -0
- package/cosmos/autocli/v1/options.js +834 -0
- package/cosmos/autocli/v1/query.d.ts +97 -0
- package/cosmos/autocli/v1/query.js +237 -0
- package/cosmos/autocli/v1/query.rpc.func.d.ts +4 -0
- package/cosmos/autocli/v1/query.rpc.func.js +18 -0
- package/cosmos/bank/module/v1/module.d.ts +62 -0
- package/cosmos/bank/module/v1/module.js +113 -0
- package/cosmos/bank/v1beta1/authz.d.ts +59 -0
- package/cosmos/bank/v1beta1/authz.js +102 -0
- package/cosmos/bank/v1beta1/bank.d.ts +371 -0
- package/cosmos/bank/v1beta1/bank.js +726 -0
- package/cosmos/bank/v1beta1/genesis.d.ts +112 -0
- package/cosmos/bank/v1beta1/genesis.js +238 -0
- package/cosmos/bank/v1beta1/query.d.ts +1159 -0
- package/cosmos/bank/v1beta1/query.js +2317 -0
- package/cosmos/bank/v1beta1/query.rpc.func.d.ts +28 -0
- package/cosmos/bank/v1beta1/query.rpc.func.js +162 -0
- package/cosmos/bank/v1beta1/tx.d.ts +342 -0
- package/cosmos/bank/v1beta1/tx.js +666 -0
- package/cosmos/bank/v1beta1/tx.registry.d.ts +59 -0
- package/cosmos/bank/v1beta1/tx.registry.js +85 -0
- package/cosmos/bank/v1beta1/tx.rpc.func.d.ts +10 -0
- package/cosmos/bank/v1beta1/tx.rpc.func.js +47 -0
- package/cosmos/base/abci/v1beta1/abci.d.ts +599 -0
- package/cosmos/base/abci/v1beta1/abci.js +1293 -0
- package/cosmos/base/grpc/v2/service.d.ts +163 -0
- package/cosmos/base/grpc/v2/service.js +398 -0
- package/cosmos/base/grpc/v2/service.rpc.func.d.ts +6 -0
- package/cosmos/base/grpc/v2/service.rpc.func.js +30 -0
- package/cosmos/base/node/v1beta1/query.d.ts +150 -0
- package/cosmos/base/node/v1beta1/query.js +377 -0
- package/cosmos/base/node/v1beta1/query.rpc.func.d.ts +6 -0
- package/cosmos/base/node/v1beta1/query.rpc.func.js +30 -0
- package/cosmos/base/query/v1beta1/pagination.d.ts +176 -0
- package/cosmos/base/query/v1beta1/pagination.js +222 -0
- package/cosmos/base/reflection/v1beta1/reflection.d.ts +144 -0
- package/cosmos/base/reflection/v1beta1/reflection.js +310 -0
- package/cosmos/base/reflection/v1beta1/reflection.rpc.func.d.ts +6 -0
- package/cosmos/base/reflection/v1beta1/reflection.rpc.func.js +30 -0
- package/cosmos/base/reflection/v2alpha1/reflection.d.ts +1008 -0
- package/cosmos/base/reflection/v2alpha1/reflection.js +2159 -0
- package/cosmos/base/reflection/v2alpha1/reflection.rpc.func.d.ts +14 -0
- package/cosmos/base/reflection/v2alpha1/reflection.rpc.func.js +78 -0
- package/cosmos/base/tendermint/v1beta1/query.d.ts +740 -0
- package/cosmos/base/tendermint/v1beta1/query.js +1887 -0
- package/cosmos/base/tendermint/v1beta1/query.rpc.func.d.ts +16 -0
- package/cosmos/base/tendermint/v1beta1/query.rpc.func.js +90 -0
- package/cosmos/base/tendermint/v1beta1/types.d.ts +137 -0
- package/cosmos/base/tendermint/v1beta1/types.js +358 -0
- package/cosmos/base/v1beta1/coin.d.ts +166 -0
- package/cosmos/base/v1beta1/coin.js +341 -0
- package/cosmos/circuit/module/v1/module.d.ts +36 -0
- package/cosmos/circuit/module/v1/module.js +83 -0
- package/cosmos/circuit/v1/query.d.ts +200 -0
- package/cosmos/circuit/v1/query.js +480 -0
- package/cosmos/circuit/v1/query.rpc.func.d.ts +8 -0
- package/cosmos/circuit/v1/query.rpc.func.js +42 -0
- package/cosmos/circuit/v1/tx.d.ts +251 -0
- package/cosmos/circuit/v1/tx.js +528 -0
- package/cosmos/circuit/v1/tx.registry.d.ts +47 -0
- package/cosmos/circuit/v1/tx.registry.js +67 -0
- package/cosmos/circuit/v1/tx.rpc.func.d.ts +8 -0
- package/cosmos/circuit/v1/tx.rpc.func.js +37 -0
- package/cosmos/circuit/v1/types.d.ts +151 -0
- package/cosmos/circuit/v1/types.js +350 -0
- package/cosmos/consensus/module/v1/module.d.ts +36 -0
- package/cosmos/consensus/module/v1/module.js +83 -0
- package/cosmos/consensus/v1/query.d.ts +75 -0
- package/cosmos/consensus/v1/query.js +149 -0
- package/cosmos/consensus/v1/query.rpc.func.d.ts +4 -0
- package/cosmos/consensus/v1/query.rpc.func.js +18 -0
- package/cosmos/consensus/v1/tx.d.ts +97 -0
- package/cosmos/consensus/v1/tx.js +197 -0
- package/cosmos/consensus/v1/tx.registry.d.ts +23 -0
- package/cosmos/consensus/v1/tx.registry.js +31 -0
- package/cosmos/consensus/v1/tx.rpc.func.d.ts +4 -0
- package/cosmos/consensus/v1/tx.rpc.func.js +17 -0
- package/cosmos/crisis/module/v1/module.d.ts +40 -0
- package/cosmos/crisis/module/v1/module.js +95 -0
- package/cosmos/crisis/v1beta1/genesis.d.ts +43 -0
- package/cosmos/crisis/v1beta1/genesis.js +84 -0
- package/cosmos/crisis/v1beta1/tx.d.ts +161 -0
- package/cosmos/crisis/v1beta1/tx.js +328 -0
- package/cosmos/crisis/v1beta1/tx.registry.d.ts +35 -0
- package/cosmos/crisis/v1beta1/tx.registry.js +49 -0
- package/cosmos/crisis/v1beta1/tx.rpc.func.d.ts +6 -0
- package/cosmos/crisis/v1beta1/tx.rpc.func.js +27 -0
- package/cosmos/crypto/ed25519/keys.d.ts +84 -0
- package/cosmos/crypto/ed25519/keys.js +162 -0
- package/cosmos/crypto/hd/v1/hd.d.ts +58 -0
- package/cosmos/crypto/hd/v1/hd.js +131 -0
- package/cosmos/crypto/keyring/v1/record.d.ts +188 -0
- package/cosmos/crypto/keyring/v1/record.js +431 -0
- package/cosmos/crypto/multisig/keys.d.ts +45 -0
- package/cosmos/crypto/multisig/keys.js +99 -0
- package/cosmos/crypto/multisig/v1beta1/multisig.d.ts +86 -0
- package/cosmos/crypto/multisig/v1beta1/multisig.js +177 -0
- package/cosmos/crypto/secp256k1/keys.d.ts +78 -0
- package/cosmos/crypto/secp256k1/keys.js +162 -0
- package/cosmos/crypto/secp256r1/keys.d.ts +76 -0
- package/cosmos/crypto/secp256r1/keys.js +162 -0
- package/cosmos/distribution/module/v1/module.d.ts +38 -0
- package/cosmos/distribution/module/v1/module.js +95 -0
- package/cosmos/distribution/v1beta1/distribution.d.ts +541 -0
- package/cosmos/distribution/v1beta1/distribution.js +1158 -0
- package/cosmos/distribution/v1beta1/genesis.d.ts +376 -0
- package/cosmos/distribution/v1beta1/genesis.js +895 -0
- package/cosmos/distribution/v1beta1/query.d.ts +803 -0
- package/cosmos/distribution/v1beta1/query.js +1662 -0
- package/cosmos/distribution/v1beta1/query.rpc.func.d.ts +22 -0
- package/cosmos/distribution/v1beta1/query.rpc.func.js +126 -0
- package/cosmos/distribution/v1beta1/tx.d.ts +578 -0
- package/cosmos/distribution/v1beta1/tx.js +1145 -0
- package/cosmos/distribution/v1beta1/tx.registry.d.ts +95 -0
- package/cosmos/distribution/v1beta1/tx.registry.js +139 -0
- package/cosmos/distribution/v1beta1/tx.rpc.func.d.ts +16 -0
- package/cosmos/distribution/v1beta1/tx.rpc.func.js +77 -0
- package/cosmos/evidence/module/v1/module.d.ts +32 -0
- package/cosmos/evidence/module/v1/module.js +70 -0
- package/cosmos/evidence/v1beta1/evidence.d.ts +54 -0
- package/cosmos/evidence/v1beta1/evidence.js +121 -0
- package/cosmos/evidence/v1beta1/genesis.d.ts +37 -0
- package/cosmos/evidence/v1beta1/genesis.js +87 -0
- package/cosmos/evidence/v1beta1/query.d.ts +176 -0
- package/cosmos/evidence/v1beta1/query.js +347 -0
- package/cosmos/evidence/v1beta1/query.rpc.func.d.ts +6 -0
- package/cosmos/evidence/v1beta1/query.rpc.func.js +30 -0
- package/cosmos/evidence/v1beta1/tx.d.ts +84 -0
- package/cosmos/evidence/v1beta1/tx.js +175 -0
- package/cosmos/evidence/v1beta1/tx.registry.d.ts +23 -0
- package/cosmos/evidence/v1beta1/tx.registry.js +31 -0
- package/cosmos/evidence/v1beta1/tx.rpc.func.d.ts +4 -0
- package/cosmos/evidence/v1beta1/tx.rpc.func.js +17 -0
- package/cosmos/feegrant/module/v1/module.d.ts +32 -0
- package/cosmos/feegrant/module/v1/module.js +70 -0
- package/cosmos/feegrant/v1beta1/feegrant.d.ts +219 -0
- package/cosmos/feegrant/v1beta1/feegrant.js +430 -0
- package/cosmos/feegrant/v1beta1/genesis.d.ts +35 -0
- package/cosmos/feegrant/v1beta1/genesis.js +87 -0
- package/cosmos/feegrant/v1beta1/query.d.ts +240 -0
- package/cosmos/feegrant/v1beta1/query.js +541 -0
- package/cosmos/feegrant/v1beta1/query.rpc.func.d.ts +8 -0
- package/cosmos/feegrant/v1beta1/query.rpc.func.js +42 -0
- package/cosmos/feegrant/v1beta1/tx.d.ts +233 -0
- package/cosmos/feegrant/v1beta1/tx.js +471 -0
- package/cosmos/feegrant/v1beta1/tx.registry.d.ts +47 -0
- package/cosmos/feegrant/v1beta1/tx.registry.js +67 -0
- package/cosmos/feegrant/v1beta1/tx.rpc.func.d.ts +8 -0
- package/cosmos/feegrant/v1beta1/tx.rpc.func.js +37 -0
- package/cosmos/genutil/module/v1/module.d.ts +32 -0
- package/cosmos/genutil/module/v1/module.js +70 -0
- package/cosmos/genutil/v1beta1/genesis.d.ts +36 -0
- package/cosmos/genutil/v1beta1/genesis.js +87 -0
- package/cosmos/gov/module/v1/module.d.ts +46 -0
- package/cosmos/gov/module/v1/module.js +95 -0
- package/cosmos/gov/v1/genesis.d.ts +115 -0
- package/cosmos/gov/v1/genesis.js +189 -0
- package/cosmos/gov/v1/gov.d.ts +696 -0
- package/cosmos/gov/v1/gov.js +1363 -0
- package/cosmos/gov/v1/query.d.ts +706 -0
- package/cosmos/gov/v1/query.js +1564 -0
- package/cosmos/gov/v1/query.rpc.func.d.ts +20 -0
- package/cosmos/gov/v1/query.rpc.func.js +114 -0
- package/cosmos/gov/v1/tx.d.ts +626 -0
- package/cosmos/gov/v1/tx.js +1277 -0
- package/cosmos/gov/v1/tx.registry.d.ts +95 -0
- package/cosmos/gov/v1/tx.registry.js +139 -0
- package/cosmos/gov/v1/tx.rpc.func.d.ts +16 -0
- package/cosmos/gov/v1/tx.rpc.func.js +77 -0
- package/cosmos/gov/v1beta1/genesis.d.ts +61 -0
- package/cosmos/gov/v1beta1/genesis.js +165 -0
- package/cosmos/gov/v1beta1/gov.d.ts +524 -0
- package/cosmos/gov/v1beta1/gov.js +1114 -0
- package/cosmos/gov/v1beta1/query.d.ts +606 -0
- package/cosmos/gov/v1beta1/query.js +1409 -0
- package/cosmos/gov/v1beta1/query.rpc.func.d.ts +18 -0
- package/cosmos/gov/v1beta1/query.rpc.func.js +102 -0
- package/cosmos/gov/v1beta1/tx.d.ts +327 -0
- package/cosmos/gov/v1beta1/tx.js +699 -0
- package/cosmos/gov/v1beta1/tx.registry.d.ts +59 -0
- package/cosmos/gov/v1beta1/tx.registry.js +85 -0
- package/cosmos/gov/v1beta1/tx.rpc.func.d.ts +10 -0
- package/cosmos/gov/v1beta1/tx.rpc.func.js +47 -0
- package/cosmos/group/module/v1/module.d.ts +53 -0
- package/cosmos/group/module/v1/module.js +96 -0
- package/cosmos/group/v1/events.d.ts +363 -0
- package/cosmos/group/v1/events.js +847 -0
- package/cosmos/group/v1/genesis.d.ts +83 -0
- package/cosmos/group/v1/genesis.js +183 -0
- package/cosmos/group/v1/query.d.ts +1044 -0
- package/cosmos/group/v1/query.js +2434 -0
- package/cosmos/group/v1/query.rpc.func.d.ts +30 -0
- package/cosmos/group/v1/query.rpc.func.js +174 -0
- package/cosmos/group/v1/tx.d.ts +1140 -0
- package/cosmos/group/v1/tx.js +2567 -0
- package/cosmos/group/v1/tx.registry.d.ts +179 -0
- package/cosmos/group/v1/tx.registry.js +265 -0
- package/cosmos/group/v1/tx.rpc.func.d.ts +30 -0
- package/cosmos/group/v1/tx.rpc.func.js +147 -0
- package/cosmos/group/v1/types.d.ts +799 -0
- package/cosmos/group/v1/types.js +1542 -0
- package/cosmos/ics23/v1/proofs.d.ts +730 -0
- package/cosmos/ics23/v1/proofs.js +1605 -0
- package/cosmos/mint/module/v1/module.d.ts +38 -0
- package/cosmos/mint/module/v1/module.js +95 -0
- package/cosmos/mint/v1beta1/genesis.d.ts +41 -0
- package/cosmos/mint/v1beta1/genesis.js +96 -0
- package/cosmos/mint/v1beta1/mint.d.ts +94 -0
- package/cosmos/mint/v1beta1/mint.js +233 -0
- package/cosmos/mint/v1beta1/query.d.ts +213 -0
- package/cosmos/mint/v1beta1/query.js +436 -0
- package/cosmos/mint/v1beta1/query.rpc.func.d.ts +8 -0
- package/cosmos/mint/v1beta1/query.rpc.func.js +42 -0
- package/cosmos/mint/v1beta1/tx.d.ts +97 -0
- package/cosmos/mint/v1beta1/tx.js +161 -0
- package/cosmos/mint/v1beta1/tx.registry.d.ts +23 -0
- package/cosmos/mint/v1beta1/tx.registry.js +31 -0
- package/cosmos/mint/v1beta1/tx.rpc.func.d.ts +4 -0
- package/cosmos/mint/v1beta1/tx.rpc.func.js +17 -0
- package/cosmos/msg/textual/v1/textual.d.ts +1 -0
- package/cosmos/msg/textual/v1/textual.js +2 -0
- package/cosmos/msg/v1/msg.d.ts +1 -0
- package/cosmos/msg/v1/msg.js +2 -0
- package/cosmos/nft/module/v1/module.d.ts +32 -0
- package/cosmos/nft/module/v1/module.js +70 -0
- package/cosmos/nft/v1beta1/event.d.ts +132 -0
- package/cosmos/nft/v1beta1/event.js +323 -0
- package/cosmos/nft/v1beta1/genesis.d.ts +79 -0
- package/cosmos/nft/v1beta1/genesis.js +195 -0
- package/cosmos/nft/v1beta1/nft.d.ts +111 -0
- package/cosmos/nft/v1beta1/nft.js +282 -0
- package/cosmos/nft/v1beta1/query.d.ts +508 -0
- package/cosmos/nft/v1beta1/query.js +1189 -0
- package/cosmos/nft/v1beta1/query.rpc.func.d.ts +16 -0
- package/cosmos/nft/v1beta1/query.rpc.func.js +90 -0
- package/cosmos/nft/v1beta1/tx.d.ts +78 -0
- package/cosmos/nft/v1beta1/tx.js +184 -0
- package/cosmos/nft/v1beta1/tx.registry.d.ts +23 -0
- package/cosmos/nft/v1beta1/tx.registry.js +31 -0
- package/cosmos/nft/v1beta1/tx.rpc.func.d.ts +4 -0
- package/cosmos/nft/v1beta1/tx.rpc.func.js +17 -0
- package/cosmos/orm/module/v1alpha1/module.d.ts +40 -0
- package/cosmos/orm/module/v1alpha1/module.js +70 -0
- package/cosmos/orm/query/v1alpha1/query.d.ts +367 -0
- package/cosmos/orm/query/v1alpha1/query.js +751 -0
- package/cosmos/orm/query/v1alpha1/query.rpc.func.d.ts +6 -0
- package/cosmos/orm/query/v1alpha1/query.rpc.func.js +30 -0
- package/cosmos/orm/v1/orm.d.ts +278 -0
- package/cosmos/orm/v1/orm.js +380 -0
- package/cosmos/orm/v1alpha1/schema.d.ts +134 -0
- package/cosmos/orm/v1alpha1/schema.js +258 -0
- package/cosmos/params/module/v1/module.d.ts +32 -0
- package/cosmos/params/module/v1/module.js +70 -0
- package/cosmos/params/v1beta1/params.d.ts +80 -0
- package/cosmos/params/v1beta1/params.js +212 -0
- package/cosmos/params/v1beta1/query.d.ts +201 -0
- package/cosmos/params/v1beta1/query.js +413 -0
- package/cosmos/params/v1beta1/query.rpc.func.d.ts +6 -0
- package/cosmos/params/v1beta1/query.rpc.func.js +30 -0
- package/cosmos/query/v1/query.d.ts +1 -0
- package/cosmos/query/v1/query.js +2 -0
- package/cosmos/reflection/v1/reflection.d.ts +67 -0
- package/cosmos/reflection/v1/reflection.js +152 -0
- package/cosmos/reflection/v1/reflection.rpc.func.d.ts +4 -0
- package/cosmos/reflection/v1/reflection.rpc.func.js +18 -0
- package/cosmos/slashing/module/v1/module.d.ts +36 -0
- package/cosmos/slashing/module/v1/module.js +83 -0
- package/cosmos/slashing/v1beta1/genesis.d.ts +177 -0
- package/cosmos/slashing/v1beta1/genesis.js +387 -0
- package/cosmos/slashing/v1beta1/query.d.ts +226 -0
- package/cosmos/slashing/v1beta1/query.js +477 -0
- package/cosmos/slashing/v1beta1/query.rpc.func.d.ts +8 -0
- package/cosmos/slashing/v1beta1/query.rpc.func.js +42 -0
- package/cosmos/slashing/v1beta1/slashing.d.ts +123 -0
- package/cosmos/slashing/v1beta1/slashing.js +272 -0
- package/cosmos/slashing/v1beta1/tx.d.ts +159 -0
- package/cosmos/slashing/v1beta1/tx.js +304 -0
- package/cosmos/slashing/v1beta1/tx.registry.d.ts +35 -0
- package/cosmos/slashing/v1beta1/tx.registry.js +49 -0
- package/cosmos/slashing/v1beta1/tx.rpc.func.d.ts +6 -0
- package/cosmos/slashing/v1beta1/tx.rpc.func.js +27 -0
- package/cosmos/staking/module/v1/module.d.ts +56 -0
- package/cosmos/staking/module/v1/module.js +122 -0
- package/cosmos/staking/v1beta1/authz.d.ts +122 -0
- package/cosmos/staking/v1beta1/authz.js +264 -0
- package/cosmos/staking/v1beta1/genesis.d.ts +115 -0
- package/cosmos/staking/v1beta1/genesis.js +274 -0
- package/cosmos/staking/v1beta1/query.d.ts +1124 -0
- package/cosmos/staking/v1beta1/query.js +2414 -0
- package/cosmos/staking/v1beta1/query.rpc.func.d.ts +30 -0
- package/cosmos/staking/v1beta1/query.rpc.func.js +174 -0
- package/cosmos/staking/v1beta1/staking.d.ts +1024 -0
- package/cosmos/staking/v1beta1/staking.js +2371 -0
- package/cosmos/staking/v1beta1/tx.d.ts +590 -0
- package/cosmos/staking/v1beta1/tx.js +1290 -0
- package/cosmos/staking/v1beta1/tx.registry.d.ts +95 -0
- package/cosmos/staking/v1beta1/tx.registry.js +139 -0
- package/cosmos/staking/v1beta1/tx.rpc.func.d.ts +16 -0
- package/cosmos/staking/v1beta1/tx.rpc.func.js +77 -0
- package/cosmos/store/internal/kv/v1beta1/kv.d.ts +68 -0
- package/cosmos/store/internal/kv/v1beta1/kv.js +177 -0
- package/cosmos/store/snapshots/v1/snapshot.d.ts +294 -0
- package/cosmos/store/snapshots/v1/snapshot.js +687 -0
- package/cosmos/store/snapshots/v2/snapshot.d.ts +254 -0
- package/cosmos/store/snapshots/v2/snapshot.js +687 -0
- package/cosmos/store/streaming/abci/grpc.d.ts +136 -0
- package/cosmos/store/streaming/abci/grpc.js +332 -0
- package/cosmos/store/v1beta1/commit_info.d.ts +124 -0
- package/cosmos/store/v1beta1/commit_info.js +292 -0
- package/cosmos/store/v1beta1/listening.d.ts +101 -0
- package/cosmos/store/v1beta1/listening.js +223 -0
- package/cosmos/streaming/v1/grpc.d.ts +302 -0
- package/cosmos/streaming/v1/grpc.js +826 -0
- package/cosmos/tx/config/v1/config.d.ts +52 -0
- package/cosmos/tx/config/v1/config.js +95 -0
- package/cosmos/tx/signing/v1beta1/signing.d.ts +270 -0
- package/cosmos/tx/signing/v1beta1/signing.js +570 -0
- package/cosmos/tx/v1beta1/service.d.ts +916 -0
- package/cosmos/tx/v1beta1/service.js +1729 -0
- package/cosmos/tx/v1beta1/service.rpc.func.d.ts +20 -0
- package/cosmos/tx/v1beta1/service.rpc.func.js +114 -0
- package/cosmos/tx/v1beta1/tx.d.ts +856 -0
- package/cosmos/tx/v1beta1/tx.js +1398 -0
- package/cosmos/upgrade/module/v1/module.d.ts +36 -0
- package/cosmos/upgrade/module/v1/module.js +83 -0
- package/cosmos/upgrade/v1beta1/query.d.ts +423 -0
- package/cosmos/upgrade/v1beta1/query.js +764 -0
- package/cosmos/upgrade/v1beta1/query.rpc.func.d.ts +12 -0
- package/cosmos/upgrade/v1beta1/query.rpc.func.js +66 -0
- package/cosmos/upgrade/v1beta1/tx.d.ts +167 -0
- package/cosmos/upgrade/v1beta1/tx.js +304 -0
- package/cosmos/upgrade/v1beta1/tx.registry.d.ts +35 -0
- package/cosmos/upgrade/v1beta1/tx.registry.js +49 -0
- package/cosmos/upgrade/v1beta1/tx.rpc.func.d.ts +6 -0
- package/cosmos/upgrade/v1beta1/tx.rpc.func.js +27 -0
- package/cosmos/upgrade/v1beta1/upgrade.d.ts +245 -0
- package/cosmos/upgrade/v1beta1/upgrade.js +416 -0
- package/cosmos/validate/module/v1/module.d.ts +32 -0
- package/cosmos/validate/module/v1/module.js +70 -0
- package/cosmos/vesting/module/v1/module.d.ts +32 -0
- package/cosmos/vesting/module/v1/module.js +70 -0
- package/cosmos/vesting/v1beta1/tx.d.ts +256 -0
- package/cosmos/vesting/v1beta1/tx.js +553 -0
- package/cosmos/vesting/v1beta1/tx.registry.d.ts +47 -0
- package/cosmos/vesting/v1beta1/tx.registry.js +67 -0
- package/cosmos/vesting/v1beta1/tx.rpc.func.d.ts +8 -0
- package/cosmos/vesting/v1beta1/tx.rpc.func.js +37 -0
- package/cosmos/vesting/v1beta1/vesting.d.ts +256 -0
- package/cosmos/vesting/v1beta1/vesting.js +586 -0
- package/cosmos_proto/cosmos.d.ts +153 -0
- package/cosmos_proto/cosmos.js +234 -0
- package/cosmwasm/wasm/v1/authz.d.ts +500 -0
- package/cosmwasm/wasm/v1/authz.js +924 -0
- package/cosmwasm/wasm/v1/genesis.d.ts +153 -0
- package/cosmwasm/wasm/v1/genesis.js +454 -0
- package/cosmwasm/wasm/v1/ibc.d.ts +132 -0
- package/cosmwasm/wasm/v1/ibc.js +276 -0
- package/cosmwasm/wasm/v1/proposal_legacy.d.ts +872 -0
- package/cosmwasm/wasm/v1/proposal_legacy.js +1784 -0
- package/cosmwasm/wasm/v1/query.d.ts +922 -0
- package/cosmwasm/wasm/v1/query.js +2022 -0
- package/cosmwasm/wasm/v1/query.rpc.func.d.ts +24 -0
- package/cosmwasm/wasm/v1/query.rpc.func.js +138 -0
- package/cosmwasm/wasm/v1/tx.d.ts +1534 -0
- package/cosmwasm/wasm/v1/tx.js +3236 -0
- package/cosmwasm/wasm/v1/tx.registry.d.ts +215 -0
- package/cosmwasm/wasm/v1/tx.registry.js +319 -0
- package/cosmwasm/wasm/v1/tx.rpc.func.d.ts +36 -0
- package/cosmwasm/wasm/v1/tx.rpc.func.js +177 -0
- package/cosmwasm/wasm/v1/types.d.ts +374 -0
- package/cosmwasm/wasm/v1/types.js +917 -0
- package/dist/package.json +48 -0
- package/esm/amino/amino.js +1 -0
- package/esm/binary.js +365 -0
- package/esm/cosmos/app/runtime/v1alpha1/module.js +290 -0
- package/esm/cosmos/app/runtime/v2/module.js +419 -0
- package/esm/cosmos/app/v1alpha1/config.js +294 -0
- package/esm/cosmos/app/v1alpha1/module.js +278 -0
- package/esm/cosmos/app/v1alpha1/query.js +146 -0
- package/esm/cosmos/app/v1alpha1/query.rpc.func.js +14 -0
- package/esm/cosmos/auth/module/v1/module.js +200 -0
- package/esm/cosmos/auth/v1beta1/accounts.js +159 -0
- package/esm/cosmos/auth/v1beta1/auth.js +442 -0
- package/esm/cosmos/auth/v1beta1/genesis.js +97 -0
- package/esm/cosmos/auth/v1beta1/query.js +1558 -0
- package/esm/cosmos/auth/v1beta1/query.rpc.func.js +113 -0
- package/esm/cosmos/auth/v1beta1/tx.js +158 -0
- package/esm/cosmos/auth/v1beta1/tx.registry.js +28 -0
- package/esm/cosmos/auth/v1beta1/tx.rpc.func.js +13 -0
- package/esm/cosmos/authz/module/v1/module.js +67 -0
- package/esm/cosmos/authz/v1beta1/authz.js +368 -0
- package/esm/cosmos/authz/v1beta1/event.js +206 -0
- package/esm/cosmos/authz/v1beta1/genesis.js +84 -0
- package/esm/cosmos/authz/v1beta1/query.js +577 -0
- package/esm/cosmos/authz/v1beta1/query.rpc.func.js +36 -0
- package/esm/cosmos/authz/v1beta1/tx.js +513 -0
- package/esm/cosmos/authz/v1beta1/tx.registry.js +64 -0
- package/esm/cosmos/authz/v1beta1/tx.rpc.func.js +31 -0
- package/esm/cosmos/autocli/v1/options.js +831 -0
- package/esm/cosmos/autocli/v1/query.js +234 -0
- package/esm/cosmos/autocli/v1/query.rpc.func.js +14 -0
- package/esm/cosmos/bank/module/v1/module.js +110 -0
- package/esm/cosmos/bank/v1beta1/authz.js +99 -0
- package/esm/cosmos/bank/v1beta1/bank.js +723 -0
- package/esm/cosmos/bank/v1beta1/genesis.js +235 -0
- package/esm/cosmos/bank/v1beta1/query.js +2314 -0
- package/esm/cosmos/bank/v1beta1/query.rpc.func.js +146 -0
- package/esm/cosmos/bank/v1beta1/tx.js +663 -0
- package/esm/cosmos/bank/v1beta1/tx.registry.js +82 -0
- package/esm/cosmos/bank/v1beta1/tx.rpc.func.js +40 -0
- package/esm/cosmos/base/abci/v1beta1/abci.js +1290 -0
- package/esm/cosmos/base/grpc/v2/service.js +395 -0
- package/esm/cosmos/base/grpc/v2/service.rpc.func.js +25 -0
- package/esm/cosmos/base/node/v1beta1/query.js +374 -0
- package/esm/cosmos/base/node/v1beta1/query.rpc.func.js +25 -0
- package/esm/cosmos/base/query/v1beta1/pagination.js +219 -0
- package/esm/cosmos/base/reflection/v1beta1/reflection.js +307 -0
- package/esm/cosmos/base/reflection/v1beta1/reflection.rpc.func.js +25 -0
- package/esm/cosmos/base/reflection/v2alpha1/reflection.js +2156 -0
- package/esm/cosmos/base/reflection/v2alpha1/reflection.rpc.func.js +69 -0
- package/esm/cosmos/base/tendermint/v1beta1/query.js +1884 -0
- package/esm/cosmos/base/tendermint/v1beta1/query.rpc.func.js +80 -0
- package/esm/cosmos/base/tendermint/v1beta1/types.js +355 -0
- package/esm/cosmos/base/v1beta1/coin.js +338 -0
- package/esm/cosmos/circuit/module/v1/module.js +80 -0
- package/esm/cosmos/circuit/v1/query.js +477 -0
- package/esm/cosmos/circuit/v1/query.rpc.func.js +36 -0
- package/esm/cosmos/circuit/v1/tx.js +525 -0
- package/esm/cosmos/circuit/v1/tx.registry.js +64 -0
- package/esm/cosmos/circuit/v1/tx.rpc.func.js +31 -0
- package/esm/cosmos/circuit/v1/types.js +345 -0
- package/esm/cosmos/consensus/module/v1/module.js +80 -0
- package/esm/cosmos/consensus/v1/query.js +146 -0
- package/esm/cosmos/consensus/v1/query.rpc.func.js +14 -0
- package/esm/cosmos/consensus/v1/tx.js +194 -0
- package/esm/cosmos/consensus/v1/tx.registry.js +28 -0
- package/esm/cosmos/consensus/v1/tx.rpc.func.js +13 -0
- package/esm/cosmos/crisis/module/v1/module.js +92 -0
- package/esm/cosmos/crisis/v1beta1/genesis.js +81 -0
- package/esm/cosmos/crisis/v1beta1/tx.js +325 -0
- package/esm/cosmos/crisis/v1beta1/tx.registry.js +46 -0
- package/esm/cosmos/crisis/v1beta1/tx.rpc.func.js +22 -0
- package/esm/cosmos/crypto/ed25519/keys.js +159 -0
- package/esm/cosmos/crypto/hd/v1/hd.js +128 -0
- package/esm/cosmos/crypto/keyring/v1/record.js +428 -0
- package/esm/cosmos/crypto/multisig/keys.js +96 -0
- package/esm/cosmos/crypto/multisig/v1beta1/multisig.js +174 -0
- package/esm/cosmos/crypto/secp256k1/keys.js +159 -0
- package/esm/cosmos/crypto/secp256r1/keys.js +159 -0
- package/esm/cosmos/distribution/module/v1/module.js +92 -0
- package/esm/cosmos/distribution/v1beta1/distribution.js +1155 -0
- package/esm/cosmos/distribution/v1beta1/genesis.js +892 -0
- package/esm/cosmos/distribution/v1beta1/query.js +1659 -0
- package/esm/cosmos/distribution/v1beta1/query.rpc.func.js +113 -0
- package/esm/cosmos/distribution/v1beta1/tx.js +1142 -0
- package/esm/cosmos/distribution/v1beta1/tx.registry.js +136 -0
- package/esm/cosmos/distribution/v1beta1/tx.rpc.func.js +67 -0
- package/esm/cosmos/evidence/module/v1/module.js +67 -0
- package/esm/cosmos/evidence/v1beta1/evidence.js +118 -0
- package/esm/cosmos/evidence/v1beta1/genesis.js +84 -0
- package/esm/cosmos/evidence/v1beta1/query.js +344 -0
- package/esm/cosmos/evidence/v1beta1/query.rpc.func.js +25 -0
- package/esm/cosmos/evidence/v1beta1/tx.js +172 -0
- package/esm/cosmos/evidence/v1beta1/tx.registry.js +28 -0
- package/esm/cosmos/evidence/v1beta1/tx.rpc.func.js +13 -0
- package/esm/cosmos/feegrant/module/v1/module.js +67 -0
- package/esm/cosmos/feegrant/v1beta1/feegrant.js +427 -0
- package/esm/cosmos/feegrant/v1beta1/genesis.js +84 -0
- package/esm/cosmos/feegrant/v1beta1/query.js +538 -0
- package/esm/cosmos/feegrant/v1beta1/query.rpc.func.js +36 -0
- package/esm/cosmos/feegrant/v1beta1/tx.js +468 -0
- package/esm/cosmos/feegrant/v1beta1/tx.registry.js +64 -0
- package/esm/cosmos/feegrant/v1beta1/tx.rpc.func.js +31 -0
- package/esm/cosmos/genutil/module/v1/module.js +67 -0
- package/esm/cosmos/genutil/v1beta1/genesis.js +84 -0
- package/esm/cosmos/gov/module/v1/module.js +92 -0
- package/esm/cosmos/gov/v1/genesis.js +186 -0
- package/esm/cosmos/gov/v1/gov.js +1356 -0
- package/esm/cosmos/gov/v1/query.js +1561 -0
- package/esm/cosmos/gov/v1/query.rpc.func.js +102 -0
- package/esm/cosmos/gov/v1/tx.js +1274 -0
- package/esm/cosmos/gov/v1/tx.registry.js +136 -0
- package/esm/cosmos/gov/v1/tx.rpc.func.js +67 -0
- package/esm/cosmos/gov/v1beta1/genesis.js +162 -0
- package/esm/cosmos/gov/v1beta1/gov.js +1107 -0
- package/esm/cosmos/gov/v1beta1/query.js +1406 -0
- package/esm/cosmos/gov/v1beta1/query.rpc.func.js +91 -0
- package/esm/cosmos/gov/v1beta1/tx.js +696 -0
- package/esm/cosmos/gov/v1beta1/tx.registry.js +82 -0
- package/esm/cosmos/gov/v1beta1/tx.rpc.func.js +40 -0
- package/esm/cosmos/group/module/v1/module.js +93 -0
- package/esm/cosmos/group/v1/events.js +844 -0
- package/esm/cosmos/group/v1/genesis.js +180 -0
- package/esm/cosmos/group/v1/query.js +2431 -0
- package/esm/cosmos/group/v1/query.rpc.func.js +157 -0
- package/esm/cosmos/group/v1/tx.js +2562 -0
- package/esm/cosmos/group/v1/tx.registry.js +262 -0
- package/esm/cosmos/group/v1/tx.rpc.func.js +130 -0
- package/esm/cosmos/group/v1/types.js +1533 -0
- package/esm/cosmos/ics23/v1/proofs.js +1598 -0
- package/esm/cosmos/mint/module/v1/module.js +92 -0
- package/esm/cosmos/mint/v1beta1/genesis.js +93 -0
- package/esm/cosmos/mint/v1beta1/mint.js +230 -0
- package/esm/cosmos/mint/v1beta1/query.js +433 -0
- package/esm/cosmos/mint/v1beta1/query.rpc.func.js +36 -0
- package/esm/cosmos/mint/v1beta1/tx.js +158 -0
- package/esm/cosmos/mint/v1beta1/tx.registry.js +28 -0
- package/esm/cosmos/mint/v1beta1/tx.rpc.func.js +13 -0
- package/esm/cosmos/msg/textual/v1/textual.js +1 -0
- package/esm/cosmos/msg/v1/msg.js +1 -0
- package/esm/cosmos/nft/module/v1/module.js +67 -0
- package/esm/cosmos/nft/v1beta1/event.js +320 -0
- package/esm/cosmos/nft/v1beta1/genesis.js +192 -0
- package/esm/cosmos/nft/v1beta1/nft.js +279 -0
- package/esm/cosmos/nft/v1beta1/query.js +1186 -0
- package/esm/cosmos/nft/v1beta1/query.rpc.func.js +80 -0
- package/esm/cosmos/nft/v1beta1/tx.js +181 -0
- package/esm/cosmos/nft/v1beta1/tx.registry.js +28 -0
- package/esm/cosmos/nft/v1beta1/tx.rpc.func.js +13 -0
- package/esm/cosmos/orm/module/v1alpha1/module.js +67 -0
- package/esm/cosmos/orm/query/v1alpha1/query.js +748 -0
- package/esm/cosmos/orm/query/v1alpha1/query.rpc.func.js +25 -0
- package/esm/cosmos/orm/v1/orm.js +377 -0
- package/esm/cosmos/orm/v1alpha1/schema.js +253 -0
- package/esm/cosmos/params/module/v1/module.js +67 -0
- package/esm/cosmos/params/v1beta1/params.js +209 -0
- package/esm/cosmos/params/v1beta1/query.js +410 -0
- package/esm/cosmos/params/v1beta1/query.rpc.func.js +25 -0
- package/esm/cosmos/query/v1/query.js +1 -0
- package/esm/cosmos/reflection/v1/reflection.js +149 -0
- package/esm/cosmos/reflection/v1/reflection.rpc.func.js +14 -0
- package/esm/cosmos/slashing/module/v1/module.js +80 -0
- package/esm/cosmos/slashing/v1beta1/genesis.js +384 -0
- package/esm/cosmos/slashing/v1beta1/query.js +474 -0
- package/esm/cosmos/slashing/v1beta1/query.rpc.func.js +36 -0
- package/esm/cosmos/slashing/v1beta1/slashing.js +269 -0
- package/esm/cosmos/slashing/v1beta1/tx.js +301 -0
- package/esm/cosmos/slashing/v1beta1/tx.registry.js +46 -0
- package/esm/cosmos/slashing/v1beta1/tx.rpc.func.js +22 -0
- package/esm/cosmos/staking/module/v1/module.js +119 -0
- package/esm/cosmos/staking/v1beta1/authz.js +259 -0
- package/esm/cosmos/staking/v1beta1/genesis.js +271 -0
- package/esm/cosmos/staking/v1beta1/query.js +2411 -0
- package/esm/cosmos/staking/v1beta1/query.rpc.func.js +157 -0
- package/esm/cosmos/staking/v1beta1/staking.js +2364 -0
- package/esm/cosmos/staking/v1beta1/tx.js +1287 -0
- package/esm/cosmos/staking/v1beta1/tx.registry.js +136 -0
- package/esm/cosmos/staking/v1beta1/tx.rpc.func.js +67 -0
- package/esm/cosmos/store/internal/kv/v1beta1/kv.js +174 -0
- package/esm/cosmos/store/snapshots/v1/snapshot.js +684 -0
- package/esm/cosmos/store/snapshots/v2/snapshot.js +684 -0
- package/esm/cosmos/store/streaming/abci/grpc.js +329 -0
- package/esm/cosmos/store/v1beta1/commit_info.js +289 -0
- package/esm/cosmos/store/v1beta1/listening.js +220 -0
- package/esm/cosmos/streaming/v1/grpc.js +823 -0
- package/esm/cosmos/tx/config/v1/config.js +92 -0
- package/esm/cosmos/tx/signing/v1beta1/signing.js +565 -0
- package/esm/cosmos/tx/v1beta1/service.js +1722 -0
- package/esm/cosmos/tx/v1beta1/service.rpc.func.js +102 -0
- package/esm/cosmos/tx/v1beta1/tx.js +1395 -0
- package/esm/cosmos/upgrade/module/v1/module.js +80 -0
- package/esm/cosmos/upgrade/v1beta1/query.js +761 -0
- package/esm/cosmos/upgrade/v1beta1/query.rpc.func.js +58 -0
- package/esm/cosmos/upgrade/v1beta1/tx.js +301 -0
- package/esm/cosmos/upgrade/v1beta1/tx.registry.js +46 -0
- package/esm/cosmos/upgrade/v1beta1/tx.rpc.func.js +22 -0
- package/esm/cosmos/upgrade/v1beta1/upgrade.js +413 -0
- package/esm/cosmos/validate/module/v1/module.js +67 -0
- package/esm/cosmos/vesting/module/v1/module.js +67 -0
- package/esm/cosmos/vesting/v1beta1/tx.js +550 -0
- package/esm/cosmos/vesting/v1beta1/tx.registry.js +64 -0
- package/esm/cosmos/vesting/v1beta1/tx.rpc.func.js +31 -0
- package/esm/cosmos/vesting/v1beta1/vesting.js +583 -0
- package/esm/cosmos_proto/cosmos.js +229 -0
- package/esm/cosmwasm/wasm/v1/authz.js +921 -0
- package/esm/cosmwasm/wasm/v1/genesis.js +451 -0
- package/esm/cosmwasm/wasm/v1/ibc.js +273 -0
- package/esm/cosmwasm/wasm/v1/proposal_legacy.js +1781 -0
- package/esm/cosmwasm/wasm/v1/query.js +2019 -0
- package/esm/cosmwasm/wasm/v1/query.rpc.func.js +124 -0
- package/esm/cosmwasm/wasm/v1/tx.js +3233 -0
- package/esm/cosmwasm/wasm/v1/tx.registry.js +316 -0
- package/esm/cosmwasm/wasm/v1/tx.rpc.func.js +157 -0
- package/esm/cosmwasm/wasm/v1/types.js +910 -0
- package/esm/ethermint/crypto/v1/ethsecp256k1/keys.js +143 -0
- package/esm/ethermint/evm/v1/events.js +381 -0
- package/esm/ethermint/evm/v1/evm.js +1181 -0
- package/esm/ethermint/evm/v1/genesis.js +185 -0
- package/esm/ethermint/evm/v1/query.js +1970 -0
- package/esm/ethermint/evm/v1/query.rpc.func.js +136 -0
- package/esm/ethermint/evm/v1/tx.js +1008 -0
- package/esm/ethermint/evm/v1/tx.registry.js +46 -0
- package/esm/ethermint/evm/v1/tx.rpc.func.js +22 -0
- package/esm/ethermint/feemarket/v1/events.js +154 -0
- package/esm/ethermint/feemarket/v1/feemarket.js +152 -0
- package/esm/ethermint/feemarket/v1/genesis.js +85 -0
- package/esm/ethermint/feemarket/v1/query.js +384 -0
- package/esm/ethermint/feemarket/v1/query.rpc.func.js +36 -0
- package/esm/ethermint/feemarket/v1/tx.js +150 -0
- package/esm/ethermint/feemarket/v1/tx.registry.js +28 -0
- package/esm/ethermint/feemarket/v1/tx.rpc.func.js +13 -0
- package/esm/ethermint/types/v1/account.js +85 -0
- package/esm/ethermint/types/v1/dynamic_fee.js +72 -0
- package/esm/ethermint/types/v1/indexer.js +144 -0
- package/esm/ethermint/types/v1/web3.js +97 -0
- package/esm/extern.js +30 -0
- package/esm/gogoproto/gogo.js +1 -0
- package/esm/google/api/annotations.js +1 -0
- package/esm/google/api/http.js +350 -0
- package/esm/google/protobuf/any.js +78 -0
- package/esm/google/protobuf/descriptor.js +5062 -0
- package/esm/google/protobuf/duration.js +78 -0
- package/esm/google/protobuf/timestamp.js +75 -0
- package/esm/helper-func-types.js +50 -0
- package/esm/helpers.js +128 -0
- package/esm/ibc/applications/fee/v1/ack.js +105 -0
- package/esm/ibc/applications/fee/v1/fee.js +394 -0
- package/esm/ibc/applications/fee/v1/genesis.js +529 -0
- package/esm/ibc/applications/fee/v1/metadata.js +92 -0
- package/esm/ibc/applications/fee/v1/query.js +1729 -0
- package/esm/ibc/applications/fee/v1/query.rpc.func.js +113 -0
- package/esm/ibc/applications/fee/v1/tx.js +711 -0
- package/esm/ibc/applications/fee/v1/tx.registry.js +82 -0
- package/esm/ibc/applications/fee/v1/tx.rpc.func.js +40 -0
- package/esm/ibc/applications/interchain_accounts/controller/v1/controller.js +80 -0
- package/esm/ibc/applications/interchain_accounts/controller/v1/query.js +314 -0
- package/esm/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.js +25 -0
- package/esm/ibc/applications/interchain_accounts/controller/v1/tx.js +556 -0
- package/esm/ibc/applications/interchain_accounts/controller/v1/tx.registry.js +64 -0
- package/esm/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.js +31 -0
- package/esm/ibc/applications/interchain_accounts/genesis/v1/genesis.js +553 -0
- package/esm/ibc/applications/interchain_accounts/host/v1/host.js +186 -0
- package/esm/ibc/applications/interchain_accounts/host/v1/query.js +146 -0
- package/esm/ibc/applications/interchain_accounts/host/v1/query.rpc.func.js +14 -0
- package/esm/ibc/applications/interchain_accounts/host/v1/tx.js +345 -0
- package/esm/ibc/applications/interchain_accounts/host/v1/tx.registry.js +46 -0
- package/esm/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.js +22 -0
- package/esm/ibc/applications/interchain_accounts/v1/account.js +93 -0
- package/esm/ibc/applications/interchain_accounts/v1/metadata.js +140 -0
- package/esm/ibc/applications/interchain_accounts/v1/packet.js +225 -0
- package/esm/ibc/applications/transfer/v1/authz.js +219 -0
- package/esm/ibc/applications/transfer/v1/genesis.js +124 -0
- package/esm/ibc/applications/transfer/v1/query.js +955 -0
- package/esm/ibc/applications/transfer/v1/query.rpc.func.js +69 -0
- package/esm/ibc/applications/transfer/v1/transfer.js +182 -0
- package/esm/ibc/applications/transfer/v1/tx.js +399 -0
- package/esm/ibc/applications/transfer/v1/tx.registry.js +46 -0
- package/esm/ibc/applications/transfer/v1/tx.rpc.func.js +22 -0
- package/esm/ibc/applications/transfer/v2/packet.js +128 -0
- package/esm/ibc/core/channel/v1/channel.js +1160 -0
- package/esm/ibc/core/channel/v1/genesis.js +300 -0
- package/esm/ibc/core/channel/v1/query.js +3396 -0
- package/esm/ibc/core/channel/v1/query.rpc.func.js +190 -0
- package/esm/ibc/core/channel/v1/tx.js +4022 -0
- package/esm/ibc/core/channel/v1/tx.registry.js +352 -0
- package/esm/ibc/core/channel/v1/tx.rpc.func.js +175 -0
- package/esm/ibc/core/channel/v1/upgrade.js +301 -0
- package/esm/ibc/core/client/v1/client.js +672 -0
- package/esm/ibc/core/client/v1/genesis.js +334 -0
- package/esm/ibc/core/client/v1/query.js +1753 -0
- package/esm/ibc/core/client/v1/query.rpc.func.js +113 -0
- package/esm/ibc/core/client/v1/tx.js +1199 -0
- package/esm/ibc/core/client/v1/tx.registry.js +136 -0
- package/esm/ibc/core/client/v1/tx.rpc.func.js +67 -0
- package/esm/ibc/core/commitment/v1/commitment.js +322 -0
- package/esm/ibc/core/connection/v1/connection.js +776 -0
- package/esm/ibc/core/connection/v1/genesis.js +123 -0
- package/esm/ibc/core/connection/v1/query.js +1092 -0
- package/esm/ibc/core/connection/v1/query.rpc.func.js +69 -0
- package/esm/ibc/core/connection/v1/tx.js +1084 -0
- package/esm/ibc/core/connection/v1/tx.registry.js +100 -0
- package/esm/ibc/core/connection/v1/tx.rpc.func.js +49 -0
- package/esm/ibc/core/types/v1/genesis.js +107 -0
- package/esm/ibc/lightclients/localhost/v2/localhost.js +81 -0
- package/esm/ibc/lightclients/solomachine/v2/solomachine.js +1684 -0
- package/esm/ibc/lightclients/solomachine/v3/solomachine.js +844 -0
- package/esm/ibc/lightclients/tendermint/v1/tendermint.js +622 -0
- package/esm/ibc/lightclients/wasm/v1/genesis.js +162 -0
- package/esm/ibc/lightclients/wasm/v1/query.js +331 -0
- package/esm/ibc/lightclients/wasm/v1/query.rpc.func.js +25 -0
- package/esm/ibc/lightclients/wasm/v1/tx.js +505 -0
- package/esm/ibc/lightclients/wasm/v1/tx.registry.js +64 -0
- package/esm/ibc/lightclients/wasm/v1/tx.rpc.func.js +31 -0
- package/esm/ibc/lightclients/wasm/v1/wasm.js +343 -0
- package/esm/react-query.js +83 -0
- package/esm/registry.js +154 -0
- package/esm/tendermint/abci/types.js +5217 -0
- package/esm/tendermint/crypto/keys.js +85 -0
- package/esm/tendermint/crypto/proof.js +455 -0
- package/esm/tendermint/p2p/types.js +427 -0
- package/esm/tendermint/types/block.js +110 -0
- package/esm/tendermint/types/evidence.js +400 -0
- package/esm/tendermint/types/params.js +592 -0
- package/esm/tendermint/types/types.js +1749 -0
- package/esm/tendermint/types/validator.js +337 -0
- package/esm/tendermint/version/types.js +166 -0
- package/esm/types.js +6 -0
- package/esm/utf8.js +136 -0
- package/esm/varint.js +407 -0
- package/esm/xpla/reward/v1beta1/genesis.js +73 -0
- package/esm/xpla/reward/v1beta1/query.js +261 -0
- package/esm/xpla/reward/v1beta1/query.rpc.func.js +25 -0
- package/esm/xpla/reward/v1beta1/reward.js +128 -0
- package/esm/xpla/reward/v1beta1/tx.js +301 -0
- package/esm/xpla/reward/v1beta1/tx.registry.js +46 -0
- package/esm/xpla/reward/v1beta1/tx.rpc.func.js +22 -0
- package/esm/xpla/volunteer/v1beta1/genesis.js +76 -0
- package/esm/xpla/volunteer/v1beta1/proposal.js +534 -0
- package/esm/xpla/volunteer/v1beta1/query.js +132 -0
- package/esm/xpla/volunteer/v1beta1/query.rpc.func.js +14 -0
- package/esm/xpla/volunteer/v1beta1/tx.js +348 -0
- package/esm/xpla/volunteer/v1beta1/tx.registry.js +46 -0
- package/esm/xpla/volunteer/v1beta1/tx.rpc.func.js +22 -0
- package/esm/xpla/volunteer/v1beta1/volunteervalidator.js +84 -0
- package/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +80 -0
- package/ethermint/crypto/v1/ethsecp256k1/keys.js +146 -0
- package/ethermint/evm/v1/events.d.ts +162 -0
- package/ethermint/evm/v1/events.js +384 -0
- package/ethermint/evm/v1/evm.d.ts +530 -0
- package/ethermint/evm/v1/evm.js +1184 -0
- package/ethermint/evm/v1/genesis.d.ts +87 -0
- package/ethermint/evm/v1/genesis.js +188 -0
- package/ethermint/evm/v1/query.d.ts +913 -0
- package/ethermint/evm/v1/query.js +1973 -0
- package/ethermint/evm/v1/query.rpc.func.d.ts +27 -0
- package/ethermint/evm/v1/query.rpc.func.js +151 -0
- package/ethermint/evm/v1/tx.d.ts +452 -0
- package/ethermint/evm/v1/tx.js +1011 -0
- package/ethermint/evm/v1/tx.registry.d.ts +35 -0
- package/ethermint/evm/v1/tx.registry.js +49 -0
- package/ethermint/evm/v1/tx.rpc.func.d.ts +6 -0
- package/ethermint/evm/v1/tx.rpc.func.js +27 -0
- package/ethermint/feemarket/v1/events.d.ts +70 -0
- package/ethermint/feemarket/v1/events.js +157 -0
- package/ethermint/feemarket/v1/feemarket.d.ts +78 -0
- package/ethermint/feemarket/v1/feemarket.js +155 -0
- package/ethermint/feemarket/v1/genesis.d.ts +45 -0
- package/ethermint/feemarket/v1/genesis.js +88 -0
- package/ethermint/feemarket/v1/query.d.ts +195 -0
- package/ethermint/feemarket/v1/query.js +387 -0
- package/ethermint/feemarket/v1/query.rpc.func.d.ts +8 -0
- package/ethermint/feemarket/v1/query.rpc.func.js +42 -0
- package/ethermint/feemarket/v1/tx.d.ts +81 -0
- package/ethermint/feemarket/v1/tx.js +153 -0
- package/ethermint/feemarket/v1/tx.registry.d.ts +23 -0
- package/ethermint/feemarket/v1/tx.registry.js +31 -0
- package/ethermint/feemarket/v1/tx.rpc.func.d.ts +4 -0
- package/ethermint/feemarket/v1/tx.rpc.func.js +17 -0
- package/ethermint/types/v1/account.d.ts +45 -0
- package/ethermint/types/v1/account.js +88 -0
- package/ethermint/types/v1/dynamic_fee.d.ts +34 -0
- package/ethermint/types/v1/dynamic_fee.js +75 -0
- package/ethermint/types/v1/indexer.d.ts +76 -0
- package/ethermint/types/v1/indexer.js +147 -0
- package/ethermint/types/v1/web3.d.ts +66 -0
- package/ethermint/types/v1/web3.js +100 -0
- package/extern.d.ts +10 -0
- package/extern.js +36 -0
- package/gogoproto/gogo.d.ts +1 -0
- package/gogoproto/gogo.js +2 -0
- package/google/api/annotations.d.ts +1 -0
- package/google/api/annotations.js +2 -0
- package/google/api/http.d.ts +764 -0
- package/google/api/http.js +353 -0
- package/google/protobuf/any.d.ts +268 -0
- package/google/protobuf/any.js +81 -0
- package/google/protobuf/descriptor.d.ts +2919 -0
- package/google/protobuf/descriptor.js +5100 -0
- package/google/protobuf/duration.d.ts +162 -0
- package/google/protobuf/duration.js +81 -0
- package/google/protobuf/timestamp.d.ts +222 -0
- package/google/protobuf/timestamp.js +78 -0
- package/helper-func-types.d.ts +117 -0
- package/helper-func-types.js +55 -0
- package/helpers.d.ts +82 -0
- package/helpers.js +143 -0
- package/ibc/applications/fee/v1/ack.d.ts +44 -0
- package/ibc/applications/fee/v1/ack.js +108 -0
- package/ibc/applications/fee/v1/fee.d.ts +160 -0
- package/ibc/applications/fee/v1/fee.js +397 -0
- package/ibc/applications/fee/v1/genesis.d.ts +220 -0
- package/ibc/applications/fee/v1/genesis.js +532 -0
- package/ibc/applications/fee/v1/metadata.d.ts +46 -0
- package/ibc/applications/fee/v1/metadata.js +95 -0
- package/ibc/applications/fee/v1/query.d.ts +737 -0
- package/ibc/applications/fee/v1/query.js +1732 -0
- package/ibc/applications/fee/v1/query.rpc.func.d.ts +22 -0
- package/ibc/applications/fee/v1/query.rpc.func.js +126 -0
- package/ibc/applications/fee/v1/tx.d.ts +318 -0
- package/ibc/applications/fee/v1/tx.js +714 -0
- package/ibc/applications/fee/v1/tx.registry.d.ts +59 -0
- package/ibc/applications/fee/v1/tx.registry.js +85 -0
- package/ibc/applications/fee/v1/tx.rpc.func.d.ts +10 -0
- package/ibc/applications/fee/v1/tx.rpc.func.js +47 -0
- package/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +42 -0
- package/ibc/applications/interchain_accounts/controller/v1/controller.js +83 -0
- package/ibc/applications/interchain_accounts/controller/v1/query.d.ts +133 -0
- package/ibc/applications/interchain_accounts/controller/v1/query.js +317 -0
- package/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.d.ts +6 -0
- package/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.js +30 -0
- package/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +231 -0
- package/ibc/applications/interchain_accounts/controller/v1/tx.js +559 -0
- package/ibc/applications/interchain_accounts/controller/v1/tx.registry.d.ts +47 -0
- package/ibc/applications/interchain_accounts/controller/v1/tx.registry.js +67 -0
- package/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.d.ts +8 -0
- package/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.js +37 -0
- package/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +196 -0
- package/ibc/applications/interchain_accounts/genesis/v1/genesis.js +556 -0
- package/ibc/applications/interchain_accounts/host/v1/host.d.ts +102 -0
- package/ibc/applications/interchain_accounts/host/v1/host.js +189 -0
- package/ibc/applications/interchain_accounts/host/v1/query.d.ts +67 -0
- package/ibc/applications/interchain_accounts/host/v1/query.js +149 -0
- package/ibc/applications/interchain_accounts/host/v1/query.rpc.func.d.ts +4 -0
- package/ibc/applications/interchain_accounts/host/v1/query.rpc.func.js +18 -0
- package/ibc/applications/interchain_accounts/host/v1/tx.d.ts +155 -0
- package/ibc/applications/interchain_accounts/host/v1/tx.js +348 -0
- package/ibc/applications/interchain_accounts/host/v1/tx.registry.d.ts +35 -0
- package/ibc/applications/interchain_accounts/host/v1/tx.registry.js +49 -0
- package/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.d.ts +6 -0
- package/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.js +27 -0
- package/ibc/applications/interchain_accounts/v1/account.d.ts +37 -0
- package/ibc/applications/interchain_accounts/v1/account.js +96 -0
- package/ibc/applications/interchain_accounts/v1/metadata.d.ts +68 -0
- package/ibc/applications/interchain_accounts/v1/metadata.js +143 -0
- package/ibc/applications/interchain_accounts/v1/packet.d.ts +85 -0
- package/ibc/applications/interchain_accounts/v1/packet.js +230 -0
- package/ibc/applications/transfer/v1/authz.d.ts +99 -0
- package/ibc/applications/transfer/v1/authz.js +222 -0
- package/ibc/applications/transfer/v1/genesis.d.ts +50 -0
- package/ibc/applications/transfer/v1/genesis.js +127 -0
- package/ibc/applications/transfer/v1/query.d.ts +449 -0
- package/ibc/applications/transfer/v1/query.js +958 -0
- package/ibc/applications/transfer/v1/query.rpc.func.d.ts +14 -0
- package/ibc/applications/transfer/v1/query.rpc.func.js +78 -0
- package/ibc/applications/transfer/v1/transfer.d.ts +112 -0
- package/ibc/applications/transfer/v1/transfer.js +185 -0
- package/ibc/applications/transfer/v1/tx.d.ts +202 -0
- package/ibc/applications/transfer/v1/tx.js +402 -0
- package/ibc/applications/transfer/v1/tx.registry.d.ts +35 -0
- package/ibc/applications/transfer/v1/tx.registry.js +49 -0
- package/ibc/applications/transfer/v1/tx.rpc.func.d.ts +6 -0
- package/ibc/applications/transfer/v1/tx.rpc.func.js +27 -0
- package/ibc/applications/transfer/v2/packet.d.ts +60 -0
- package/ibc/applications/transfer/v2/packet.js +131 -0
- package/ibc/core/channel/v1/channel.d.ts +547 -0
- package/ibc/core/channel/v1/channel.js +1167 -0
- package/ibc/core/channel/v1/genesis.d.ts +95 -0
- package/ibc/core/channel/v1/genesis.js +303 -0
- package/ibc/core/channel/v1/query.d.ts +1525 -0
- package/ibc/core/channel/v1/query.js +3399 -0
- package/ibc/core/channel/v1/query.rpc.func.d.ts +36 -0
- package/ibc/core/channel/v1/query.rpc.func.js +210 -0
- package/ibc/core/channel/v1/tx.d.ts +1490 -0
- package/ibc/core/channel/v1/tx.js +4027 -0
- package/ibc/core/channel/v1/tx.registry.d.ts +239 -0
- package/ibc/core/channel/v1/tx.registry.js +355 -0
- package/ibc/core/channel/v1/tx.rpc.func.d.ts +40 -0
- package/ibc/core/channel/v1/tx.rpc.func.js +197 -0
- package/ibc/core/channel/v1/upgrade.d.ts +139 -0
- package/ibc/core/channel/v1/upgrade.js +304 -0
- package/ibc/core/client/v1/client.d.ts +372 -0
- package/ibc/core/client/v1/client.js +675 -0
- package/ibc/core/client/v1/genesis.d.ts +147 -0
- package/ibc/core/client/v1/genesis.js +337 -0
- package/ibc/core/client/v1/query.d.ts +862 -0
- package/ibc/core/client/v1/query.js +1756 -0
- package/ibc/core/client/v1/query.rpc.func.d.ts +22 -0
- package/ibc/core/client/v1/query.rpc.func.js +126 -0
- package/ibc/core/client/v1/tx.d.ts +587 -0
- package/ibc/core/client/v1/tx.js +1202 -0
- package/ibc/core/client/v1/tx.registry.d.ts +95 -0
- package/ibc/core/client/v1/tx.registry.js +139 -0
- package/ibc/core/client/v1/tx.rpc.func.d.ts +16 -0
- package/ibc/core/client/v1/tx.rpc.func.js +77 -0
- package/ibc/core/commitment/v1/commitment.d.ts +165 -0
- package/ibc/core/commitment/v1/commitment.js +325 -0
- package/ibc/core/connection/v1/connection.d.ts +376 -0
- package/ibc/core/connection/v1/connection.js +781 -0
- package/ibc/core/connection/v1/genesis.d.ts +43 -0
- package/ibc/core/connection/v1/genesis.js +126 -0
- package/ibc/core/connection/v1/query.d.ts +518 -0
- package/ibc/core/connection/v1/query.js +1095 -0
- package/ibc/core/connection/v1/query.rpc.func.d.ts +14 -0
- package/ibc/core/connection/v1/query.rpc.func.js +78 -0
- package/ibc/core/connection/v1/tx.d.ts +457 -0
- package/ibc/core/connection/v1/tx.js +1087 -0
- package/ibc/core/connection/v1/tx.registry.d.ts +71 -0
- package/ibc/core/connection/v1/tx.registry.js +103 -0
- package/ibc/core/connection/v1/tx.rpc.func.d.ts +12 -0
- package/ibc/core/connection/v1/tx.rpc.func.js +57 -0
- package/ibc/core/types/v1/genesis.d.ts +50 -0
- package/ibc/core/types/v1/genesis.js +110 -0
- package/ibc/lightclients/localhost/v2/localhost.d.ts +37 -0
- package/ibc/lightclients/localhost/v2/localhost.js +84 -0
- package/ibc/lightclients/solomachine/v2/solomachine.d.ts +711 -0
- package/ibc/lightclients/solomachine/v2/solomachine.js +1689 -0
- package/ibc/lightclients/solomachine/v3/solomachine.d.ts +357 -0
- package/ibc/lightclients/solomachine/v3/solomachine.js +847 -0
- package/ibc/lightclients/tendermint/v1/tendermint.d.ts +306 -0
- package/ibc/lightclients/tendermint/v1/tendermint.js +625 -0
- package/ibc/lightclients/wasm/v1/genesis.d.ts +70 -0
- package/ibc/lightclients/wasm/v1/genesis.js +165 -0
- package/ibc/lightclients/wasm/v1/query.d.ts +141 -0
- package/ibc/lightclients/wasm/v1/query.js +334 -0
- package/ibc/lightclients/wasm/v1/query.rpc.func.d.ts +6 -0
- package/ibc/lightclients/wasm/v1/query.rpc.func.js +30 -0
- package/ibc/lightclients/wasm/v1/tx.d.ts +218 -0
- package/ibc/lightclients/wasm/v1/tx.js +508 -0
- package/ibc/lightclients/wasm/v1/tx.registry.d.ts +47 -0
- package/ibc/lightclients/wasm/v1/tx.registry.js +67 -0
- package/ibc/lightclients/wasm/v1/tx.rpc.func.d.ts +8 -0
- package/ibc/lightclients/wasm/v1/tx.rpc.func.js +37 -0
- package/ibc/lightclients/wasm/v1/wasm.d.ts +163 -0
- package/ibc/lightclients/wasm/v1/wasm.js +346 -0
- package/package.json +3 -2
- package/react-query.d.ts +48 -0
- package/react-query.js +91 -0
- package/registry.d.ts +33 -0
- package/registry.js +158 -0
- package/tendermint/abci/types.d.ts +1843 -0
- package/tendermint/abci/types.js +5233 -0
- package/tendermint/crypto/keys.d.ts +34 -0
- package/tendermint/crypto/keys.js +88 -0
- package/tendermint/crypto/proof.d.ts +174 -0
- package/tendermint/crypto/proof.js +458 -0
- package/tendermint/p2p/types.d.ts +138 -0
- package/tendermint/p2p/types.js +430 -0
- package/tendermint/types/block.d.ts +38 -0
- package/tendermint/types/block.js +113 -0
- package/tendermint/types/evidence.d.ts +138 -0
- package/tendermint/types/evidence.js +403 -0
- package/tendermint/types/params.d.ts +323 -0
- package/tendermint/types/params.js +595 -0
- package/tendermint/types/types.d.ts +640 -0
- package/tendermint/types/types.js +1754 -0
- package/tendermint/types/validator.d.ts +113 -0
- package/tendermint/types/validator.js +342 -0
- package/tendermint/version/types.d.ts +82 -0
- package/tendermint/version/types.js +169 -0
- package/types.d.ts +124 -0
- package/types.js +7 -0
- package/utf8.d.ts +27 -0
- package/utf8.js +140 -0
- package/varint.d.ts +105 -0
- package/varint.js +425 -0
- package/xpla/reward/v1beta1/genesis.d.ts +35 -0
- package/xpla/reward/v1beta1/genesis.js +76 -0
- package/xpla/reward/v1beta1/query.d.ts +136 -0
- package/xpla/reward/v1beta1/query.js +264 -0
- package/xpla/reward/v1beta1/query.rpc.func.d.ts +6 -0
- package/xpla/reward/v1beta1/query.rpc.func.js +30 -0
- package/xpla/reward/v1beta1/reward.d.ts +42 -0
- package/xpla/reward/v1beta1/reward.js +131 -0
- package/xpla/reward/v1beta1/tx.d.ts +158 -0
- package/xpla/reward/v1beta1/tx.js +304 -0
- package/xpla/reward/v1beta1/tx.registry.d.ts +35 -0
- package/xpla/reward/v1beta1/tx.registry.js +49 -0
- package/xpla/reward/v1beta1/tx.rpc.func.d.ts +6 -0
- package/xpla/reward/v1beta1/tx.rpc.func.js +27 -0
- package/xpla/volunteer/v1beta1/genesis.d.ts +33 -0
- package/xpla/volunteer/v1beta1/genesis.js +79 -0
- package/xpla/volunteer/v1beta1/proposal.d.ts +183 -0
- package/xpla/volunteer/v1beta1/proposal.js +537 -0
- package/xpla/volunteer/v1beta1/query.d.ts +60 -0
- package/xpla/volunteer/v1beta1/query.js +135 -0
- package/xpla/volunteer/v1beta1/query.rpc.func.d.ts +4 -0
- package/xpla/volunteer/v1beta1/query.rpc.func.js +18 -0
- package/xpla/volunteer/v1beta1/tx.d.ts +168 -0
- package/xpla/volunteer/v1beta1/tx.js +351 -0
- package/xpla/volunteer/v1beta1/tx.registry.d.ts +35 -0
- package/xpla/volunteer/v1beta1/tx.registry.js +49 -0
- package/xpla/volunteer/v1beta1/tx.rpc.func.d.ts +6 -0
- package/xpla/volunteer/v1beta1/tx.rpc.func.js +27 -0
- package/xpla/volunteer/v1beta1/volunteervalidator.d.ts +38 -0
- package/xpla/volunteer/v1beta1/volunteervalidator.js +87 -0
- package/CHANGELOG.md +0 -8
- package/src/amino/amino.ts +0 -1
- package/src/binary.ts +0 -534
- package/src/cosmos/app/runtime/v1alpha1/module.ts +0 -423
- package/src/cosmos/app/runtime/v2/module.ts +0 -589
- package/src/cosmos/app/v1alpha1/config.ts +0 -422
- package/src/cosmos/app/v1alpha1/module.ts +0 -461
- package/src/cosmos/app/v1alpha1/query.rpc.func.ts +0 -14
- package/src/cosmos/app/v1alpha1/query.ts +0 -177
- package/src/cosmos/auth/module/v1/module.ts +0 -253
- package/src/cosmos/auth/v1beta1/accounts.ts +0 -226
- package/src/cosmos/auth/v1beta1/auth.ts +0 -550
- package/src/cosmos/auth/v1beta1/genesis.ts +0 -119
- package/src/cosmos/auth/v1beta1/query.rpc.func.ts +0 -113
- package/src/cosmos/auth/v1beta1/query.ts +0 -2034
- package/src/cosmos/auth/v1beta1/tx.registry.ts +0 -29
- package/src/cosmos/auth/v1beta1/tx.rpc.func.ts +0 -13
- package/src/cosmos/auth/v1beta1/tx.ts +0 -219
- package/src/cosmos/authz/module/v1/module.ts +0 -80
- package/src/cosmos/authz/v1beta1/authz.ts +0 -481
- package/src/cosmos/authz/v1beta1/event.ts +0 -259
- package/src/cosmos/authz/v1beta1/genesis.ts +0 -100
- package/src/cosmos/authz/v1beta1/query.rpc.func.ts +0 -36
- package/src/cosmos/authz/v1beta1/query.ts +0 -707
- package/src/cosmos/authz/v1beta1/tx.registry.ts +0 -65
- package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +0 -31
- package/src/cosmos/authz/v1beta1/tx.ts +0 -647
- package/src/cosmos/autocli/v1/options.ts +0 -1145
- package/src/cosmos/autocli/v1/query.rpc.func.ts +0 -14
- package/src/cosmos/autocli/v1/query.ts +0 -288
- package/src/cosmos/bank/module/v1/module.ts +0 -153
- package/src/cosmos/bank/v1beta1/authz.ts +0 -138
- package/src/cosmos/bank/v1beta1/bank.ts +0 -974
- package/src/cosmos/bank/v1beta1/genesis.ts +0 -307
- package/src/cosmos/bank/v1beta1/query.rpc.func.ts +0 -146
- package/src/cosmos/bank/v1beta1/query.ts +0 -3027
- package/src/cosmos/bank/v1beta1/tx.registry.ts +0 -83
- package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +0 -40
- package/src/cosmos/bank/v1beta1/tx.ts +0 -861
- package/src/cosmos/base/abci/v1beta1/abci.ts +0 -1698
- package/src/cosmos/base/grpc/v2/service.rpc.func.ts +0 -25
- package/src/cosmos/base/grpc/v2/service.ts +0 -473
- package/src/cosmos/base/node/v1beta1/query.rpc.func.ts +0 -25
- package/src/cosmos/base/node/v1beta1/query.ts +0 -454
- package/src/cosmos/base/query/v1beta1/pagination.ts +0 -361
- package/src/cosmos/base/reflection/v1beta1/reflection.rpc.func.ts +0 -25
- package/src/cosmos/base/reflection/v1beta1/reflection.ts +0 -382
- package/src/cosmos/base/reflection/v2alpha1/reflection.rpc.func.ts +0 -69
- package/src/cosmos/base/reflection/v2alpha1/reflection.ts +0 -2727
- package/src/cosmos/base/tendermint/v1beta1/query.rpc.func.ts +0 -80
- package/src/cosmos/base/tendermint/v1beta1/query.ts +0 -2302
- package/src/cosmos/base/tendermint/v1beta1/types.ts +0 -455
- package/src/cosmos/base/v1beta1/coin.ts +0 -439
- package/src/cosmos/circuit/module/v1/module.ts +0 -99
- package/src/cosmos/circuit/v1/query.rpc.func.ts +0 -36
- package/src/cosmos/circuit/v1/query.ts +0 -574
- package/src/cosmos/circuit/v1/tx.registry.ts +0 -65
- package/src/cosmos/circuit/v1/tx.rpc.func.ts +0 -31
- package/src/cosmos/circuit/v1/tx.ts +0 -676
- package/src/cosmos/circuit/v1/types.ts +0 -413
- package/src/cosmos/consensus/module/v1/module.ts +0 -99
- package/src/cosmos/consensus/v1/query.rpc.func.ts +0 -14
- package/src/cosmos/consensus/v1/query.ts +0 -185
- package/src/cosmos/consensus/v1/tx.registry.ts +0 -29
- package/src/cosmos/consensus/v1/tx.rpc.func.ts +0 -13
- package/src/cosmos/consensus/v1/tx.ts +0 -255
- package/src/cosmos/crisis/module/v1/module.ts +0 -115
- package/src/cosmos/crisis/v1beta1/genesis.ts +0 -106
- package/src/cosmos/crisis/v1beta1/tx.registry.ts +0 -47
- package/src/cosmos/crisis/v1beta1/tx.rpc.func.ts +0 -22
- package/src/cosmos/crisis/v1beta1/tx.ts +0 -416
- package/src/cosmos/crypto/ed25519/keys.ts +0 -209
- package/src/cosmos/crypto/hd/v1/hd.ts +0 -169
- package/src/cosmos/crypto/keyring/v1/record.ts +0 -529
- package/src/cosmos/crypto/multisig/keys.ts +0 -122
- package/src/cosmos/crypto/multisig/v1beta1/multisig.ts +0 -225
- package/src/cosmos/crypto/secp256k1/keys.ts +0 -203
- package/src/cosmos/crypto/secp256r1/keys.ts +0 -201
- package/src/cosmos/distribution/module/v1/module.ts +0 -113
- package/src/cosmos/distribution/v1beta1/distribution.ts +0 -1494
- package/src/cosmos/distribution/v1beta1/genesis.ts +0 -1129
- package/src/cosmos/distribution/v1beta1/query.rpc.func.ts +0 -113
- package/src/cosmos/distribution/v1beta1/query.ts +0 -2126
- package/src/cosmos/distribution/v1beta1/tx.registry.ts +0 -137
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +0 -67
- package/src/cosmos/distribution/v1beta1/tx.ts +0 -1478
- package/src/cosmos/evidence/module/v1/module.ts +0 -80
- package/src/cosmos/evidence/v1beta1/evidence.ts +0 -154
- package/src/cosmos/evidence/v1beta1/genesis.ts +0 -102
- package/src/cosmos/evidence/v1beta1/query.rpc.func.ts +0 -25
- package/src/cosmos/evidence/v1beta1/query.ts +0 -451
- package/src/cosmos/evidence/v1beta1/tx.registry.ts +0 -29
- package/src/cosmos/evidence/v1beta1/tx.rpc.func.ts +0 -13
- package/src/cosmos/evidence/v1beta1/tx.ts +0 -221
- package/src/cosmos/feegrant/module/v1/module.ts +0 -80
- package/src/cosmos/feegrant/v1beta1/feegrant.ts +0 -573
- package/src/cosmos/feegrant/v1beta1/genesis.ts +0 -100
- package/src/cosmos/feegrant/v1beta1/query.rpc.func.ts +0 -36
- package/src/cosmos/feegrant/v1beta1/query.ts +0 -677
- package/src/cosmos/feegrant/v1beta1/tx.registry.ts +0 -65
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +0 -31
- package/src/cosmos/feegrant/v1beta1/tx.ts +0 -597
- package/src/cosmos/genutil/module/v1/module.ts +0 -80
- package/src/cosmos/genutil/v1beta1/genesis.ts +0 -101
- package/src/cosmos/gov/module/v1/module.ts +0 -121
- package/src/cosmos/gov/v1/genesis.ts +0 -280
- package/src/cosmos/gov/v1/gov.ts +0 -1843
- package/src/cosmos/gov/v1/query.rpc.func.ts +0 -102
- package/src/cosmos/gov/v1/query.ts +0 -1970
- package/src/cosmos/gov/v1/tx.registry.ts +0 -137
- package/src/cosmos/gov/v1/tx.rpc.func.ts +0 -67
- package/src/cosmos/gov/v1/tx.ts +0 -1657
- package/src/cosmos/gov/v1beta1/genesis.ts +0 -202
- package/src/cosmos/gov/v1beta1/gov.ts +0 -1425
- package/src/cosmos/gov/v1beta1/query.rpc.func.ts +0 -91
- package/src/cosmos/gov/v1beta1/query.ts +0 -1749
- package/src/cosmos/gov/v1beta1/tx.registry.ts +0 -83
- package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +0 -40
- package/src/cosmos/gov/v1beta1/tx.ts +0 -881
- package/src/cosmos/group/module/v1/module.ts +0 -128
- package/src/cosmos/group/v1/events.ts +0 -1044
- package/src/cosmos/group/v1/genesis.ts +0 -240
- package/src/cosmos/group/v1/query.rpc.func.ts +0 -157
- package/src/cosmos/group/v1/query.ts +0 -3015
- package/src/cosmos/group/v1/tx.registry.ts +0 -263
- package/src/cosmos/group/v1/tx.rpc.func.ts +0 -130
- package/src/cosmos/group/v1/tx.ts +0 -3207
- package/src/cosmos/group/v1/types.ts +0 -2081
- package/src/cosmos/ics23/v1/proofs.ts +0 -2060
- package/src/cosmos/mint/module/v1/module.ts +0 -113
- package/src/cosmos/mint/v1beta1/genesis.ts +0 -116
- package/src/cosmos/mint/v1beta1/mint.ts +0 -291
- package/src/cosmos/mint/v1beta1/query.rpc.func.ts +0 -36
- package/src/cosmos/mint/v1beta1/query.ts +0 -541
- package/src/cosmos/mint/v1beta1/tx.registry.ts +0 -29
- package/src/cosmos/mint/v1beta1/tx.rpc.func.ts +0 -13
- package/src/cosmos/mint/v1beta1/tx.ts +0 -219
- package/src/cosmos/msg/textual/v1/textual.ts +0 -1
- package/src/cosmos/msg/v1/msg.ts +0 -1
- package/src/cosmos/nft/module/v1/module.ts +0 -80
- package/src/cosmos/nft/v1beta1/event.ts +0 -403
- package/src/cosmos/nft/v1beta1/genesis.ts +0 -234
- package/src/cosmos/nft/v1beta1/nft.ts +0 -356
- package/src/cosmos/nft/v1beta1/query.rpc.func.ts +0 -80
- package/src/cosmos/nft/v1beta1/query.ts +0 -1465
- package/src/cosmos/nft/v1beta1/tx.registry.ts +0 -29
- package/src/cosmos/nft/v1beta1/tx.rpc.func.ts +0 -13
- package/src/cosmos/nft/v1beta1/tx.ts +0 -224
- package/src/cosmos/orm/module/v1alpha1/module.ts +0 -88
- package/src/cosmos/orm/query/v1alpha1/query.rpc.func.ts +0 -25
- package/src/cosmos/orm/query/v1alpha1/query.ts +0 -993
- package/src/cosmos/orm/v1/orm.ts +0 -589
- package/src/cosmos/orm/v1alpha1/schema.ts +0 -325
- package/src/cosmos/params/module/v1/module.ts +0 -80
- package/src/cosmos/params/v1beta1/params.ts +0 -255
- package/src/cosmos/params/v1beta1/query.rpc.func.ts +0 -25
- package/src/cosmos/params/v1beta1/query.ts +0 -525
- package/src/cosmos/query/v1/query.ts +0 -1
- package/src/cosmos/reflection/v1/reflection.rpc.func.ts +0 -14
- package/src/cosmos/reflection/v1/reflection.ts +0 -179
- package/src/cosmos/slashing/module/v1/module.ts +0 -99
- package/src/cosmos/slashing/v1beta1/genesis.ts +0 -492
- package/src/cosmos/slashing/v1beta1/query.rpc.func.ts +0 -36
- package/src/cosmos/slashing/v1beta1/query.ts +0 -598
- package/src/cosmos/slashing/v1beta1/slashing.ts +0 -357
- package/src/cosmos/slashing/v1beta1/tx.registry.ts +0 -47
- package/src/cosmos/slashing/v1beta1/tx.rpc.func.ts +0 -22
- package/src/cosmos/slashing/v1beta1/tx.ts +0 -390
- package/src/cosmos/staking/module/v1/module.ts +0 -157
- package/src/cosmos/staking/v1beta1/authz.ts +0 -323
- package/src/cosmos/staking/v1beta1/genesis.ts +0 -346
- package/src/cosmos/staking/v1beta1/query.rpc.func.ts +0 -157
- package/src/cosmos/staking/v1beta1/query.ts +0 -3073
- package/src/cosmos/staking/v1beta1/staking.ts +0 -3005
- package/src/cosmos/staking/v1beta1/tx.registry.ts +0 -137
- package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +0 -67
- package/src/cosmos/staking/v1beta1/tx.ts +0 -1638
- package/src/cosmos/store/internal/kv/v1beta1/kv.ts +0 -207
- package/src/cosmos/store/snapshots/v1/snapshot.ts +0 -863
- package/src/cosmos/store/snapshots/v2/snapshot.ts +0 -823
- package/src/cosmos/store/streaming/abci/grpc.ts +0 -393
- package/src/cosmos/store/v1beta1/commit_info.ts +0 -362
- package/src/cosmos/store/v1beta1/listening.ts +0 -286
- package/src/cosmos/streaming/v1/grpc.ts +0 -985
- package/src/cosmos/tx/config/v1/config.ts +0 -127
- package/src/cosmos/tx/signing/v1beta1/signing.ts +0 -688
- package/src/cosmos/tx/v1beta1/service.rpc.func.ts +0 -102
- package/src/cosmos/tx/v1beta1/service.ts +0 -2294
- package/src/cosmos/tx/v1beta1/tx.ts +0 -2029
- package/src/cosmos/upgrade/module/v1/module.ts +0 -99
- package/src/cosmos/upgrade/v1beta1/query.rpc.func.ts +0 -58
- package/src/cosmos/upgrade/v1beta1/query.ts +0 -1016
- package/src/cosmos/upgrade/v1beta1/tx.registry.ts +0 -47
- package/src/cosmos/upgrade/v1beta1/tx.rpc.func.ts +0 -22
- package/src/cosmos/upgrade/v1beta1/tx.ts +0 -398
- package/src/cosmos/upgrade/v1beta1/upgrade.ts +0 -591
- package/src/cosmos/validate/module/v1/module.ts +0 -80
- package/src/cosmos/vesting/module/v1/module.ts +0 -80
- package/src/cosmos/vesting/v1beta1/tx.registry.ts +0 -65
- package/src/cosmos/vesting/v1beta1/tx.rpc.func.ts +0 -31
- package/src/cosmos/vesting/v1beta1/tx.ts +0 -698
- package/src/cosmos/vesting/v1beta1/vesting.ts +0 -735
- package/src/cosmos_proto/cosmos.ts +0 -341
- package/src/cosmwasm/wasm/v1/authz.ts +0 -1231
- package/src/cosmwasm/wasm/v1/genesis.ts +0 -532
- package/src/cosmwasm/wasm/v1/ibc.ts +0 -355
- package/src/cosmwasm/wasm/v1/proposal_legacy.ts +0 -2432
- package/src/cosmwasm/wasm/v1/query.rpc.func.ts +0 -124
- package/src/cosmwasm/wasm/v1/query.ts +0 -2560
- package/src/cosmwasm/wasm/v1/tx.registry.ts +0 -317
- package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +0 -157
- package/src/cosmwasm/wasm/v1/tx.ts +0 -4191
- package/src/cosmwasm/wasm/v1/types.ts +0 -1120
- package/src/ethermint/crypto/v1/ethsecp256k1/keys.ts +0 -193
- package/src/ethermint/evm/v1/events.ts +0 -485
- package/src/ethermint/evm/v1/evm.ts +0 -1590
- package/src/ethermint/evm/v1/genesis.ts +0 -240
- package/src/ethermint/evm/v1/query.rpc.func.ts +0 -136
- package/src/ethermint/evm/v1/query.ts +0 -2535
- package/src/ethermint/evm/v1/tx.registry.ts +0 -47
- package/src/ethermint/evm/v1/tx.rpc.func.ts +0 -22
- package/src/ethermint/evm/v1/tx.ts +0 -1333
- package/src/ethermint/feemarket/v1/events.ts +0 -195
- package/src/ethermint/feemarket/v1/feemarket.ts +0 -213
- package/src/ethermint/feemarket/v1/genesis.ts +0 -114
- package/src/ethermint/feemarket/v1/query.rpc.func.ts +0 -36
- package/src/ethermint/feemarket/v1/query.ts +0 -487
- package/src/ethermint/feemarket/v1/tx.registry.ts +0 -29
- package/src/ethermint/feemarket/v1/tx.rpc.func.ts +0 -13
- package/src/ethermint/feemarket/v1/tx.ts +0 -197
- package/src/ethermint/types/v1/account.ts +0 -114
- package/src/ethermint/types/v1/dynamic_fee.ts +0 -91
- package/src/ethermint/types/v1/indexer.ts +0 -205
- package/src/ethermint/types/v1/web3.ts +0 -147
- package/src/extern.ts +0 -38
- package/src/gogoproto/gogo.ts +0 -1
- package/src/google/api/annotations.ts +0 -1
- package/src/google/api/http.ts +0 -1069
- package/src/google/protobuf/any.ts +0 -331
- package/src/google/protobuf/descriptor.ts +0 -7177
- package/src/google/protobuf/duration.ts +0 -225
- package/src/google/protobuf/timestamp.ts +0 -281
- package/src/helper-func-types.ts +0 -191
- package/src/helpers.ts +0 -259
- package/src/ibc/applications/fee/v1/ack.ts +0 -131
- package/src/ibc/applications/fee/v1/fee.ts +0 -481
- package/src/ibc/applications/fee/v1/genesis.ts +0 -661
- package/src/ibc/applications/fee/v1/metadata.ts +0 -121
- package/src/ibc/applications/fee/v1/query.rpc.func.ts +0 -113
- package/src/ibc/applications/fee/v1/query.ts +0 -2134
- package/src/ibc/applications/fee/v1/tx.registry.ts +0 -83
- package/src/ibc/applications/fee/v1/tx.rpc.func.ts +0 -40
- package/src/ibc/applications/fee/v1/tx.ts +0 -889
- package/src/ibc/applications/interchain_accounts/controller/v1/controller.ts +0 -105
- package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.ts +0 -25
- package/src/ibc/applications/interchain_accounts/controller/v1/query.ts +0 -379
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +0 -65
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.ts +0 -31
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.ts +0 -685
- package/src/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +0 -661
- package/src/ibc/applications/interchain_accounts/host/v1/host.ts +0 -253
- package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.func.ts +0 -14
- package/src/ibc/applications/interchain_accounts/host/v1/query.ts +0 -177
- package/src/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +0 -47
- package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.ts +0 -22
- package/src/ibc/applications/interchain_accounts/host/v1/tx.ts +0 -429
- package/src/ibc/applications/interchain_accounts/v1/account.ts +0 -112
- package/src/ibc/applications/interchain_accounts/v1/metadata.ts +0 -191
- package/src/ibc/applications/interchain_accounts/v1/packet.ts +0 -259
- package/src/ibc/applications/transfer/v1/authz.ts +0 -280
- package/src/ibc/applications/transfer/v1/genesis.ts +0 -153
- package/src/ibc/applications/transfer/v1/query.rpc.func.ts +0 -69
- package/src/ibc/applications/transfer/v1/query.ts +0 -1205
- package/src/ibc/applications/transfer/v1/transfer.ts +0 -261
- package/src/ibc/applications/transfer/v1/tx.registry.ts +0 -47
- package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +0 -22
- package/src/ibc/applications/transfer/v1/tx.ts +0 -532
- package/src/ibc/applications/transfer/v2/packet.ts +0 -171
- package/src/ibc/core/channel/v1/channel.ts +0 -1510
- package/src/ibc/core/channel/v1/genesis.ts +0 -354
- package/src/ibc/core/channel/v1/query.rpc.func.ts +0 -190
- package/src/ibc/core/channel/v1/query.ts +0 -4354
- package/src/ibc/core/channel/v1/tx.registry.ts +0 -353
- package/src/ibc/core/channel/v1/tx.rpc.func.ts +0 -175
- package/src/ibc/core/channel/v1/tx.ts +0 -4866
- package/src/ibc/core/channel/v1/upgrade.ts +0 -388
- package/src/ibc/core/client/v1/client.ts +0 -927
- package/src/ibc/core/client/v1/genesis.ts +0 -426
- package/src/ibc/core/client/v1/query.rpc.func.ts +0 -113
- package/src/ibc/core/client/v1/query.ts +0 -2280
- package/src/ibc/core/client/v1/tx.registry.ts +0 -137
- package/src/ibc/core/client/v1/tx.rpc.func.ts +0 -67
- package/src/ibc/core/client/v1/tx.ts +0 -1543
- package/src/ibc/core/commitment/v1/commitment.ts +0 -418
- package/src/ibc/core/connection/v1/connection.ts +0 -1010
- package/src/ibc/core/connection/v1/genesis.ts +0 -146
- package/src/ibc/core/connection/v1/query.rpc.func.ts +0 -69
- package/src/ibc/core/connection/v1/query.ts +0 -1408
- package/src/ibc/core/connection/v1/tx.registry.ts +0 -101
- package/src/ibc/core/connection/v1/tx.rpc.func.ts +0 -49
- package/src/ibc/core/connection/v1/tx.ts +0 -1365
- package/src/ibc/core/types/v1/genesis.ts +0 -137
- package/src/ibc/lightclients/localhost/v2/localhost.ts +0 -100
- package/src/ibc/lightclients/solomachine/v2/solomachine.ts +0 -2103
- package/src/ibc/lightclients/solomachine/v3/solomachine.ts +0 -1070
- package/src/ibc/lightclients/tendermint/v1/tendermint.ts +0 -838
- package/src/ibc/lightclients/wasm/v1/genesis.ts +0 -197
- package/src/ibc/lightclients/wasm/v1/query.rpc.func.ts +0 -25
- package/src/ibc/lightclients/wasm/v1/query.ts +0 -404
- package/src/ibc/lightclients/wasm/v1/tx.registry.ts +0 -65
- package/src/ibc/lightclients/wasm/v1/tx.rpc.func.ts +0 -31
- package/src/ibc/lightclients/wasm/v1/tx.ts +0 -621
- package/src/ibc/lightclients/wasm/v1/wasm.ts +0 -438
- package/src/react-query.ts +0 -185
- package/src/registry.ts +0 -218
- package/src/tendermint/abci/types.ts +0 -6283
- package/src/tendermint/crypto/keys.ts +0 -103
- package/src/tendermint/crypto/proof.ts +0 -555
- package/src/tendermint/p2p/types.ts +0 -507
- package/src/tendermint/types/block.ts +0 -131
- package/src/tendermint/types/evidence.ts +0 -476
- package/src/tendermint/types/params.ts +0 -814
- package/src/tendermint/types/types.ts +0 -2157
- package/src/tendermint/types/validator.ts +0 -389
- package/src/tendermint/version/types.ts +0 -219
- package/src/types.ts +0 -155
- package/src/utf8.ts +0 -148
- package/src/varint.ts +0 -488
- package/src/xpla/reward/v1beta1/genesis.ts +0 -92
- package/src/xpla/reward/v1beta1/query.rpc.func.ts +0 -25
- package/src/xpla/reward/v1beta1/query.ts +0 -333
- package/src/xpla/reward/v1beta1/reward.ts +0 -153
- package/src/xpla/reward/v1beta1/tx.registry.ts +0 -47
- package/src/xpla/reward/v1beta1/tx.rpc.func.ts +0 -22
- package/src/xpla/reward/v1beta1/tx.ts +0 -391
- package/src/xpla/volunteer/v1beta1/genesis.ts +0 -92
- package/src/xpla/volunteer/v1beta1/proposal.ts +0 -649
- package/src/xpla/volunteer/v1beta1/query.rpc.func.ts +0 -14
- package/src/xpla/volunteer/v1beta1/query.ts +0 -160
- package/src/xpla/volunteer/v1beta1/tx.registry.ts +0 -47
- package/src/xpla/volunteer/v1beta1/tx.rpc.func.ts +0 -22
- package/src/xpla/volunteer/v1beta1/tx.ts +0 -448
- package/src/xpla/volunteer/v1beta1/volunteervalidator.ts +0 -107
- package/tsconfig.esm.json +0 -10
- package/tsconfig.json +0 -10
|
@@ -1,2060 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
-
import { DeepPartial, bytesFromBase64, base64FromBytes, isSet } from "../../../helpers";
|
|
3
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
4
|
-
export enum HashOp {
|
|
5
|
-
/** NO_HASH - NO_HASH is the default if no data passed. Note this is an illegal argument some places. */
|
|
6
|
-
NO_HASH = 0,
|
|
7
|
-
SHA256 = 1,
|
|
8
|
-
SHA512 = 2,
|
|
9
|
-
KECCAK256 = 3,
|
|
10
|
-
RIPEMD160 = 4,
|
|
11
|
-
/** BITCOIN - ripemd160(sha256(x)) */
|
|
12
|
-
BITCOIN = 5,
|
|
13
|
-
SHA512_256 = 6,
|
|
14
|
-
BLAKE2B_512 = 7,
|
|
15
|
-
BLAKE2S_256 = 8,
|
|
16
|
-
BLAKE3 = 9,
|
|
17
|
-
UNRECOGNIZED = -1,
|
|
18
|
-
}
|
|
19
|
-
export const HashOpAmino = HashOp;
|
|
20
|
-
export function hashOpFromJSON(object: any): HashOp {
|
|
21
|
-
switch (object) {
|
|
22
|
-
case 0:
|
|
23
|
-
case "NO_HASH":
|
|
24
|
-
return HashOp.NO_HASH;
|
|
25
|
-
case 1:
|
|
26
|
-
case "SHA256":
|
|
27
|
-
return HashOp.SHA256;
|
|
28
|
-
case 2:
|
|
29
|
-
case "SHA512":
|
|
30
|
-
return HashOp.SHA512;
|
|
31
|
-
case 3:
|
|
32
|
-
case "KECCAK256":
|
|
33
|
-
return HashOp.KECCAK256;
|
|
34
|
-
case 4:
|
|
35
|
-
case "RIPEMD160":
|
|
36
|
-
return HashOp.RIPEMD160;
|
|
37
|
-
case 5:
|
|
38
|
-
case "BITCOIN":
|
|
39
|
-
return HashOp.BITCOIN;
|
|
40
|
-
case 6:
|
|
41
|
-
case "SHA512_256":
|
|
42
|
-
return HashOp.SHA512_256;
|
|
43
|
-
case 7:
|
|
44
|
-
case "BLAKE2B_512":
|
|
45
|
-
return HashOp.BLAKE2B_512;
|
|
46
|
-
case 8:
|
|
47
|
-
case "BLAKE2S_256":
|
|
48
|
-
return HashOp.BLAKE2S_256;
|
|
49
|
-
case 9:
|
|
50
|
-
case "BLAKE3":
|
|
51
|
-
return HashOp.BLAKE3;
|
|
52
|
-
case -1:
|
|
53
|
-
case "UNRECOGNIZED":
|
|
54
|
-
default:
|
|
55
|
-
return HashOp.UNRECOGNIZED;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
export function hashOpToJSON(object: HashOp): string {
|
|
59
|
-
switch (object) {
|
|
60
|
-
case HashOp.NO_HASH:
|
|
61
|
-
return "NO_HASH";
|
|
62
|
-
case HashOp.SHA256:
|
|
63
|
-
return "SHA256";
|
|
64
|
-
case HashOp.SHA512:
|
|
65
|
-
return "SHA512";
|
|
66
|
-
case HashOp.KECCAK256:
|
|
67
|
-
return "KECCAK256";
|
|
68
|
-
case HashOp.RIPEMD160:
|
|
69
|
-
return "RIPEMD160";
|
|
70
|
-
case HashOp.BITCOIN:
|
|
71
|
-
return "BITCOIN";
|
|
72
|
-
case HashOp.SHA512_256:
|
|
73
|
-
return "SHA512_256";
|
|
74
|
-
case HashOp.BLAKE2B_512:
|
|
75
|
-
return "BLAKE2B_512";
|
|
76
|
-
case HashOp.BLAKE2S_256:
|
|
77
|
-
return "BLAKE2S_256";
|
|
78
|
-
case HashOp.BLAKE3:
|
|
79
|
-
return "BLAKE3";
|
|
80
|
-
case HashOp.UNRECOGNIZED:
|
|
81
|
-
default:
|
|
82
|
-
return "UNRECOGNIZED";
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* LengthOp defines how to process the key and value of the LeafOp
|
|
87
|
-
* to include length information. After encoding the length with the given
|
|
88
|
-
* algorithm, the length will be prepended to the key and value bytes.
|
|
89
|
-
* (Each one with it's own encoded length)
|
|
90
|
-
*/
|
|
91
|
-
export enum LengthOp {
|
|
92
|
-
/** NO_PREFIX - NO_PREFIX don't include any length info */
|
|
93
|
-
NO_PREFIX = 0,
|
|
94
|
-
/** VAR_PROTO - VAR_PROTO uses protobuf (and go-amino) varint encoding of the length */
|
|
95
|
-
VAR_PROTO = 1,
|
|
96
|
-
/** VAR_RLP - VAR_RLP uses rlp int encoding of the length */
|
|
97
|
-
VAR_RLP = 2,
|
|
98
|
-
/** FIXED32_BIG - FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer */
|
|
99
|
-
FIXED32_BIG = 3,
|
|
100
|
-
/** FIXED32_LITTLE - FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer */
|
|
101
|
-
FIXED32_LITTLE = 4,
|
|
102
|
-
/** FIXED64_BIG - FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer */
|
|
103
|
-
FIXED64_BIG = 5,
|
|
104
|
-
/** FIXED64_LITTLE - FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer */
|
|
105
|
-
FIXED64_LITTLE = 6,
|
|
106
|
-
/** REQUIRE_32_BYTES - REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) */
|
|
107
|
-
REQUIRE_32_BYTES = 7,
|
|
108
|
-
/** REQUIRE_64_BYTES - REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) */
|
|
109
|
-
REQUIRE_64_BYTES = 8,
|
|
110
|
-
UNRECOGNIZED = -1,
|
|
111
|
-
}
|
|
112
|
-
export const LengthOpAmino = LengthOp;
|
|
113
|
-
export function lengthOpFromJSON(object: any): LengthOp {
|
|
114
|
-
switch (object) {
|
|
115
|
-
case 0:
|
|
116
|
-
case "NO_PREFIX":
|
|
117
|
-
return LengthOp.NO_PREFIX;
|
|
118
|
-
case 1:
|
|
119
|
-
case "VAR_PROTO":
|
|
120
|
-
return LengthOp.VAR_PROTO;
|
|
121
|
-
case 2:
|
|
122
|
-
case "VAR_RLP":
|
|
123
|
-
return LengthOp.VAR_RLP;
|
|
124
|
-
case 3:
|
|
125
|
-
case "FIXED32_BIG":
|
|
126
|
-
return LengthOp.FIXED32_BIG;
|
|
127
|
-
case 4:
|
|
128
|
-
case "FIXED32_LITTLE":
|
|
129
|
-
return LengthOp.FIXED32_LITTLE;
|
|
130
|
-
case 5:
|
|
131
|
-
case "FIXED64_BIG":
|
|
132
|
-
return LengthOp.FIXED64_BIG;
|
|
133
|
-
case 6:
|
|
134
|
-
case "FIXED64_LITTLE":
|
|
135
|
-
return LengthOp.FIXED64_LITTLE;
|
|
136
|
-
case 7:
|
|
137
|
-
case "REQUIRE_32_BYTES":
|
|
138
|
-
return LengthOp.REQUIRE_32_BYTES;
|
|
139
|
-
case 8:
|
|
140
|
-
case "REQUIRE_64_BYTES":
|
|
141
|
-
return LengthOp.REQUIRE_64_BYTES;
|
|
142
|
-
case -1:
|
|
143
|
-
case "UNRECOGNIZED":
|
|
144
|
-
default:
|
|
145
|
-
return LengthOp.UNRECOGNIZED;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
export function lengthOpToJSON(object: LengthOp): string {
|
|
149
|
-
switch (object) {
|
|
150
|
-
case LengthOp.NO_PREFIX:
|
|
151
|
-
return "NO_PREFIX";
|
|
152
|
-
case LengthOp.VAR_PROTO:
|
|
153
|
-
return "VAR_PROTO";
|
|
154
|
-
case LengthOp.VAR_RLP:
|
|
155
|
-
return "VAR_RLP";
|
|
156
|
-
case LengthOp.FIXED32_BIG:
|
|
157
|
-
return "FIXED32_BIG";
|
|
158
|
-
case LengthOp.FIXED32_LITTLE:
|
|
159
|
-
return "FIXED32_LITTLE";
|
|
160
|
-
case LengthOp.FIXED64_BIG:
|
|
161
|
-
return "FIXED64_BIG";
|
|
162
|
-
case LengthOp.FIXED64_LITTLE:
|
|
163
|
-
return "FIXED64_LITTLE";
|
|
164
|
-
case LengthOp.REQUIRE_32_BYTES:
|
|
165
|
-
return "REQUIRE_32_BYTES";
|
|
166
|
-
case LengthOp.REQUIRE_64_BYTES:
|
|
167
|
-
return "REQUIRE_64_BYTES";
|
|
168
|
-
case LengthOp.UNRECOGNIZED:
|
|
169
|
-
default:
|
|
170
|
-
return "UNRECOGNIZED";
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* ExistenceProof takes a key and a value and a set of steps to perform on it.
|
|
175
|
-
* The result of peforming all these steps will provide a "root hash", which can
|
|
176
|
-
* be compared to the value in a header.
|
|
177
|
-
*
|
|
178
|
-
* Since it is computationally infeasible to produce a hash collission for any of the used
|
|
179
|
-
* cryptographic hash functions, if someone can provide a series of operations to transform
|
|
180
|
-
* a given key and value into a root hash that matches some trusted root, these key and values
|
|
181
|
-
* must be in the referenced merkle tree.
|
|
182
|
-
*
|
|
183
|
-
* The only possible issue is maliablity in LeafOp, such as providing extra prefix data,
|
|
184
|
-
* which should be controlled by a spec. Eg. with lengthOp as NONE,
|
|
185
|
-
* prefix = FOO, key = BAR, value = CHOICE
|
|
186
|
-
* and
|
|
187
|
-
* prefix = F, key = OOBAR, value = CHOICE
|
|
188
|
-
* would produce the same value.
|
|
189
|
-
*
|
|
190
|
-
* With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field
|
|
191
|
-
* in the ProofSpec is valuable to prevent this mutability. And why all trees should
|
|
192
|
-
* length-prefix the data before hashing it.
|
|
193
|
-
*/
|
|
194
|
-
export interface ExistenceProof {
|
|
195
|
-
key: Uint8Array;
|
|
196
|
-
value: Uint8Array;
|
|
197
|
-
leaf?: LeafOp;
|
|
198
|
-
path: InnerOp[];
|
|
199
|
-
}
|
|
200
|
-
export interface ExistenceProofProtoMsg {
|
|
201
|
-
typeUrl: "/cosmos.ics23.v1.ExistenceProof";
|
|
202
|
-
value: Uint8Array;
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* ExistenceProof takes a key and a value and a set of steps to perform on it.
|
|
206
|
-
* The result of peforming all these steps will provide a "root hash", which can
|
|
207
|
-
* be compared to the value in a header.
|
|
208
|
-
*
|
|
209
|
-
* Since it is computationally infeasible to produce a hash collission for any of the used
|
|
210
|
-
* cryptographic hash functions, if someone can provide a series of operations to transform
|
|
211
|
-
* a given key and value into a root hash that matches some trusted root, these key and values
|
|
212
|
-
* must be in the referenced merkle tree.
|
|
213
|
-
*
|
|
214
|
-
* The only possible issue is maliablity in LeafOp, such as providing extra prefix data,
|
|
215
|
-
* which should be controlled by a spec. Eg. with lengthOp as NONE,
|
|
216
|
-
* prefix = FOO, key = BAR, value = CHOICE
|
|
217
|
-
* and
|
|
218
|
-
* prefix = F, key = OOBAR, value = CHOICE
|
|
219
|
-
* would produce the same value.
|
|
220
|
-
*
|
|
221
|
-
* With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field
|
|
222
|
-
* in the ProofSpec is valuable to prevent this mutability. And why all trees should
|
|
223
|
-
* length-prefix the data before hashing it.
|
|
224
|
-
*/
|
|
225
|
-
export interface ExistenceProofAmino {
|
|
226
|
-
key: string;
|
|
227
|
-
value: string;
|
|
228
|
-
leaf?: LeafOpAmino;
|
|
229
|
-
path: InnerOpAmino[];
|
|
230
|
-
}
|
|
231
|
-
export interface ExistenceProofAminoMsg {
|
|
232
|
-
type: "cosmos-sdk/ExistenceProof";
|
|
233
|
-
value: ExistenceProofAmino;
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* NonExistenceProof takes a proof of two neighbors, one left of the desired key,
|
|
237
|
-
* one right of the desired key. If both proofs are valid AND they are neighbors,
|
|
238
|
-
* then there is no valid proof for the given key.
|
|
239
|
-
*/
|
|
240
|
-
export interface NonExistenceProof {
|
|
241
|
-
/** TODO: remove this as unnecessary??? we prove a range */
|
|
242
|
-
key: Uint8Array;
|
|
243
|
-
left?: ExistenceProof;
|
|
244
|
-
right?: ExistenceProof;
|
|
245
|
-
}
|
|
246
|
-
export interface NonExistenceProofProtoMsg {
|
|
247
|
-
typeUrl: "/cosmos.ics23.v1.NonExistenceProof";
|
|
248
|
-
value: Uint8Array;
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* NonExistenceProof takes a proof of two neighbors, one left of the desired key,
|
|
252
|
-
* one right of the desired key. If both proofs are valid AND they are neighbors,
|
|
253
|
-
* then there is no valid proof for the given key.
|
|
254
|
-
*/
|
|
255
|
-
export interface NonExistenceProofAmino {
|
|
256
|
-
/** TODO: remove this as unnecessary??? we prove a range */
|
|
257
|
-
key: string;
|
|
258
|
-
left?: ExistenceProofAmino;
|
|
259
|
-
right?: ExistenceProofAmino;
|
|
260
|
-
}
|
|
261
|
-
export interface NonExistenceProofAminoMsg {
|
|
262
|
-
type: "cosmos-sdk/NonExistenceProof";
|
|
263
|
-
value: NonExistenceProofAmino;
|
|
264
|
-
}
|
|
265
|
-
/** CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages */
|
|
266
|
-
export interface CommitmentProof {
|
|
267
|
-
exist?: ExistenceProof;
|
|
268
|
-
nonexist?: NonExistenceProof;
|
|
269
|
-
batch?: BatchProof;
|
|
270
|
-
compressed?: CompressedBatchProof;
|
|
271
|
-
}
|
|
272
|
-
export interface CommitmentProofProtoMsg {
|
|
273
|
-
typeUrl: "/cosmos.ics23.v1.CommitmentProof";
|
|
274
|
-
value: Uint8Array;
|
|
275
|
-
}
|
|
276
|
-
/** CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages */
|
|
277
|
-
export interface CommitmentProofAmino {
|
|
278
|
-
exist?: ExistenceProofAmino;
|
|
279
|
-
nonexist?: NonExistenceProofAmino;
|
|
280
|
-
batch?: BatchProofAmino;
|
|
281
|
-
compressed?: CompressedBatchProofAmino;
|
|
282
|
-
}
|
|
283
|
-
export interface CommitmentProofAminoMsg {
|
|
284
|
-
type: "cosmos-sdk/CommitmentProof";
|
|
285
|
-
value: CommitmentProofAmino;
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* LeafOp represents the raw key-value data we wish to prove, and
|
|
289
|
-
* must be flexible to represent the internal transformation from
|
|
290
|
-
* the original key-value pairs into the basis hash, for many existing
|
|
291
|
-
* merkle trees.
|
|
292
|
-
*
|
|
293
|
-
* key and value are passed in. So that the signature of this operation is:
|
|
294
|
-
* leafOp(key, value) -> output
|
|
295
|
-
*
|
|
296
|
-
* To process this, first prehash the keys and values if needed (ANY means no hash in this case):
|
|
297
|
-
* hkey = prehashKey(key)
|
|
298
|
-
* hvalue = prehashValue(value)
|
|
299
|
-
*
|
|
300
|
-
* Then combine the bytes, and hash it
|
|
301
|
-
* output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue)
|
|
302
|
-
*/
|
|
303
|
-
export interface LeafOp {
|
|
304
|
-
hash: HashOp;
|
|
305
|
-
prehashKey: HashOp;
|
|
306
|
-
prehashValue: HashOp;
|
|
307
|
-
length: LengthOp;
|
|
308
|
-
/**
|
|
309
|
-
* prefix is a fixed bytes that may optionally be included at the beginning to differentiate
|
|
310
|
-
* a leaf node from an inner node.
|
|
311
|
-
*/
|
|
312
|
-
prefix: Uint8Array;
|
|
313
|
-
}
|
|
314
|
-
export interface LeafOpProtoMsg {
|
|
315
|
-
typeUrl: "/cosmos.ics23.v1.LeafOp";
|
|
316
|
-
value: Uint8Array;
|
|
317
|
-
}
|
|
318
|
-
/**
|
|
319
|
-
* LeafOp represents the raw key-value data we wish to prove, and
|
|
320
|
-
* must be flexible to represent the internal transformation from
|
|
321
|
-
* the original key-value pairs into the basis hash, for many existing
|
|
322
|
-
* merkle trees.
|
|
323
|
-
*
|
|
324
|
-
* key and value are passed in. So that the signature of this operation is:
|
|
325
|
-
* leafOp(key, value) -> output
|
|
326
|
-
*
|
|
327
|
-
* To process this, first prehash the keys and values if needed (ANY means no hash in this case):
|
|
328
|
-
* hkey = prehashKey(key)
|
|
329
|
-
* hvalue = prehashValue(value)
|
|
330
|
-
*
|
|
331
|
-
* Then combine the bytes, and hash it
|
|
332
|
-
* output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue)
|
|
333
|
-
*/
|
|
334
|
-
export interface LeafOpAmino {
|
|
335
|
-
hash: HashOp;
|
|
336
|
-
prehash_key: HashOp;
|
|
337
|
-
prehash_value: HashOp;
|
|
338
|
-
length: LengthOp;
|
|
339
|
-
/**
|
|
340
|
-
* prefix is a fixed bytes that may optionally be included at the beginning to differentiate
|
|
341
|
-
* a leaf node from an inner node.
|
|
342
|
-
*/
|
|
343
|
-
prefix: string;
|
|
344
|
-
}
|
|
345
|
-
export interface LeafOpAminoMsg {
|
|
346
|
-
type: "cosmos-sdk/LeafOp";
|
|
347
|
-
value: LeafOpAmino;
|
|
348
|
-
}
|
|
349
|
-
/**
|
|
350
|
-
* InnerOp represents a merkle-proof step that is not a leaf.
|
|
351
|
-
* It represents concatenating two children and hashing them to provide the next result.
|
|
352
|
-
*
|
|
353
|
-
* The result of the previous step is passed in, so the signature of this op is:
|
|
354
|
-
* innerOp(child) -> output
|
|
355
|
-
*
|
|
356
|
-
* The result of applying InnerOp should be:
|
|
357
|
-
* output = op.hash(op.prefix || child || op.suffix)
|
|
358
|
-
*
|
|
359
|
-
* where the || operator is concatenation of binary data,
|
|
360
|
-
* and child is the result of hashing all the tree below this step.
|
|
361
|
-
*
|
|
362
|
-
* Any special data, like prepending child with the length, or prepending the entire operation with
|
|
363
|
-
* some value to differentiate from leaf nodes, should be included in prefix and suffix.
|
|
364
|
-
* If either of prefix or suffix is empty, we just treat it as an empty string
|
|
365
|
-
*/
|
|
366
|
-
export interface InnerOp {
|
|
367
|
-
hash: HashOp;
|
|
368
|
-
prefix: Uint8Array;
|
|
369
|
-
suffix: Uint8Array;
|
|
370
|
-
}
|
|
371
|
-
export interface InnerOpProtoMsg {
|
|
372
|
-
typeUrl: "/cosmos.ics23.v1.InnerOp";
|
|
373
|
-
value: Uint8Array;
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
* InnerOp represents a merkle-proof step that is not a leaf.
|
|
377
|
-
* It represents concatenating two children and hashing them to provide the next result.
|
|
378
|
-
*
|
|
379
|
-
* The result of the previous step is passed in, so the signature of this op is:
|
|
380
|
-
* innerOp(child) -> output
|
|
381
|
-
*
|
|
382
|
-
* The result of applying InnerOp should be:
|
|
383
|
-
* output = op.hash(op.prefix || child || op.suffix)
|
|
384
|
-
*
|
|
385
|
-
* where the || operator is concatenation of binary data,
|
|
386
|
-
* and child is the result of hashing all the tree below this step.
|
|
387
|
-
*
|
|
388
|
-
* Any special data, like prepending child with the length, or prepending the entire operation with
|
|
389
|
-
* some value to differentiate from leaf nodes, should be included in prefix and suffix.
|
|
390
|
-
* If either of prefix or suffix is empty, we just treat it as an empty string
|
|
391
|
-
*/
|
|
392
|
-
export interface InnerOpAmino {
|
|
393
|
-
hash: HashOp;
|
|
394
|
-
prefix: string;
|
|
395
|
-
suffix: string;
|
|
396
|
-
}
|
|
397
|
-
export interface InnerOpAminoMsg {
|
|
398
|
-
type: "cosmos-sdk/InnerOp";
|
|
399
|
-
value: InnerOpAmino;
|
|
400
|
-
}
|
|
401
|
-
/**
|
|
402
|
-
* ProofSpec defines what the expected parameters are for a given proof type.
|
|
403
|
-
* This can be stored in the client and used to validate any incoming proofs.
|
|
404
|
-
*
|
|
405
|
-
* verify(ProofSpec, Proof) -> Proof | Error
|
|
406
|
-
*
|
|
407
|
-
* As demonstrated in tests, if we don't fix the algorithm used to calculate the
|
|
408
|
-
* LeafHash for a given tree, there are many possible key-value pairs that can
|
|
409
|
-
* generate a given hash (by interpretting the preimage differently).
|
|
410
|
-
* We need this for proper security, requires client knows a priori what
|
|
411
|
-
* tree format server uses. But not in code, rather a configuration object.
|
|
412
|
-
*/
|
|
413
|
-
export interface ProofSpec {
|
|
414
|
-
/**
|
|
415
|
-
* any field in the ExistenceProof must be the same as in this spec.
|
|
416
|
-
* except Prefix, which is just the first bytes of prefix (spec can be longer)
|
|
417
|
-
*/
|
|
418
|
-
leafSpec?: LeafOp;
|
|
419
|
-
innerSpec?: InnerSpec;
|
|
420
|
-
/**
|
|
421
|
-
* max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries)
|
|
422
|
-
* the max_depth is interpreted as 128 if set to 0
|
|
423
|
-
*/
|
|
424
|
-
maxDepth: number;
|
|
425
|
-
/** min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries) */
|
|
426
|
-
minDepth: number;
|
|
427
|
-
/**
|
|
428
|
-
* prehash_key_before_comparison is a flag that indicates whether to use the
|
|
429
|
-
* prehash_key specified by LeafOp to compare lexical ordering of keys for
|
|
430
|
-
* non-existence proofs.
|
|
431
|
-
*/
|
|
432
|
-
prehashKeyBeforeComparison: boolean;
|
|
433
|
-
}
|
|
434
|
-
export interface ProofSpecProtoMsg {
|
|
435
|
-
typeUrl: "/cosmos.ics23.v1.ProofSpec";
|
|
436
|
-
value: Uint8Array;
|
|
437
|
-
}
|
|
438
|
-
/**
|
|
439
|
-
* ProofSpec defines what the expected parameters are for a given proof type.
|
|
440
|
-
* This can be stored in the client and used to validate any incoming proofs.
|
|
441
|
-
*
|
|
442
|
-
* verify(ProofSpec, Proof) -> Proof | Error
|
|
443
|
-
*
|
|
444
|
-
* As demonstrated in tests, if we don't fix the algorithm used to calculate the
|
|
445
|
-
* LeafHash for a given tree, there are many possible key-value pairs that can
|
|
446
|
-
* generate a given hash (by interpretting the preimage differently).
|
|
447
|
-
* We need this for proper security, requires client knows a priori what
|
|
448
|
-
* tree format server uses. But not in code, rather a configuration object.
|
|
449
|
-
*/
|
|
450
|
-
export interface ProofSpecAmino {
|
|
451
|
-
/**
|
|
452
|
-
* any field in the ExistenceProof must be the same as in this spec.
|
|
453
|
-
* except Prefix, which is just the first bytes of prefix (spec can be longer)
|
|
454
|
-
*/
|
|
455
|
-
leaf_spec?: LeafOpAmino;
|
|
456
|
-
inner_spec?: InnerSpecAmino;
|
|
457
|
-
/**
|
|
458
|
-
* max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries)
|
|
459
|
-
* the max_depth is interpreted as 128 if set to 0
|
|
460
|
-
*/
|
|
461
|
-
max_depth: number;
|
|
462
|
-
/** min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries) */
|
|
463
|
-
min_depth: number;
|
|
464
|
-
/**
|
|
465
|
-
* prehash_key_before_comparison is a flag that indicates whether to use the
|
|
466
|
-
* prehash_key specified by LeafOp to compare lexical ordering of keys for
|
|
467
|
-
* non-existence proofs.
|
|
468
|
-
*/
|
|
469
|
-
prehash_key_before_comparison: boolean;
|
|
470
|
-
}
|
|
471
|
-
export interface ProofSpecAminoMsg {
|
|
472
|
-
type: "cosmos-sdk/ProofSpec";
|
|
473
|
-
value: ProofSpecAmino;
|
|
474
|
-
}
|
|
475
|
-
/**
|
|
476
|
-
* InnerSpec contains all store-specific structure info to determine if two proofs from a
|
|
477
|
-
* given store are neighbors.
|
|
478
|
-
*
|
|
479
|
-
* This enables:
|
|
480
|
-
*
|
|
481
|
-
* isLeftMost(spec: InnerSpec, op: InnerOp)
|
|
482
|
-
* isRightMost(spec: InnerSpec, op: InnerOp)
|
|
483
|
-
* isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp)
|
|
484
|
-
*/
|
|
485
|
-
export interface InnerSpec {
|
|
486
|
-
/**
|
|
487
|
-
* Child order is the ordering of the children node, must count from 0
|
|
488
|
-
* iavl tree is [0, 1] (left then right)
|
|
489
|
-
* merk is [0, 2, 1] (left, right, here)
|
|
490
|
-
*/
|
|
491
|
-
childOrder: number[];
|
|
492
|
-
childSize: number;
|
|
493
|
-
minPrefixLength: number;
|
|
494
|
-
/** the max prefix length must be less than the minimum prefix length + child size */
|
|
495
|
-
maxPrefixLength: number;
|
|
496
|
-
/** empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0) */
|
|
497
|
-
emptyChild: Uint8Array;
|
|
498
|
-
/** hash is the algorithm that must be used for each InnerOp */
|
|
499
|
-
hash: HashOp;
|
|
500
|
-
}
|
|
501
|
-
export interface InnerSpecProtoMsg {
|
|
502
|
-
typeUrl: "/cosmos.ics23.v1.InnerSpec";
|
|
503
|
-
value: Uint8Array;
|
|
504
|
-
}
|
|
505
|
-
/**
|
|
506
|
-
* InnerSpec contains all store-specific structure info to determine if two proofs from a
|
|
507
|
-
* given store are neighbors.
|
|
508
|
-
*
|
|
509
|
-
* This enables:
|
|
510
|
-
*
|
|
511
|
-
* isLeftMost(spec: InnerSpec, op: InnerOp)
|
|
512
|
-
* isRightMost(spec: InnerSpec, op: InnerOp)
|
|
513
|
-
* isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp)
|
|
514
|
-
*/
|
|
515
|
-
export interface InnerSpecAmino {
|
|
516
|
-
/**
|
|
517
|
-
* Child order is the ordering of the children node, must count from 0
|
|
518
|
-
* iavl tree is [0, 1] (left then right)
|
|
519
|
-
* merk is [0, 2, 1] (left, right, here)
|
|
520
|
-
*/
|
|
521
|
-
child_order: number[];
|
|
522
|
-
child_size: number;
|
|
523
|
-
min_prefix_length: number;
|
|
524
|
-
/** the max prefix length must be less than the minimum prefix length + child size */
|
|
525
|
-
max_prefix_length: number;
|
|
526
|
-
/** empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0) */
|
|
527
|
-
empty_child: string;
|
|
528
|
-
/** hash is the algorithm that must be used for each InnerOp */
|
|
529
|
-
hash: HashOp;
|
|
530
|
-
}
|
|
531
|
-
export interface InnerSpecAminoMsg {
|
|
532
|
-
type: "cosmos-sdk/InnerSpec";
|
|
533
|
-
value: InnerSpecAmino;
|
|
534
|
-
}
|
|
535
|
-
/** BatchProof is a group of multiple proof types than can be compressed */
|
|
536
|
-
export interface BatchProof {
|
|
537
|
-
entries: BatchEntry[];
|
|
538
|
-
}
|
|
539
|
-
export interface BatchProofProtoMsg {
|
|
540
|
-
typeUrl: "/cosmos.ics23.v1.BatchProof";
|
|
541
|
-
value: Uint8Array;
|
|
542
|
-
}
|
|
543
|
-
/** BatchProof is a group of multiple proof types than can be compressed */
|
|
544
|
-
export interface BatchProofAmino {
|
|
545
|
-
entries: BatchEntryAmino[];
|
|
546
|
-
}
|
|
547
|
-
export interface BatchProofAminoMsg {
|
|
548
|
-
type: "cosmos-sdk/BatchProof";
|
|
549
|
-
value: BatchProofAmino;
|
|
550
|
-
}
|
|
551
|
-
/** Use BatchEntry not CommitmentProof, to avoid recursion */
|
|
552
|
-
export interface BatchEntry {
|
|
553
|
-
exist?: ExistenceProof;
|
|
554
|
-
nonexist?: NonExistenceProof;
|
|
555
|
-
}
|
|
556
|
-
export interface BatchEntryProtoMsg {
|
|
557
|
-
typeUrl: "/cosmos.ics23.v1.BatchEntry";
|
|
558
|
-
value: Uint8Array;
|
|
559
|
-
}
|
|
560
|
-
/** Use BatchEntry not CommitmentProof, to avoid recursion */
|
|
561
|
-
export interface BatchEntryAmino {
|
|
562
|
-
exist?: ExistenceProofAmino;
|
|
563
|
-
nonexist?: NonExistenceProofAmino;
|
|
564
|
-
}
|
|
565
|
-
export interface BatchEntryAminoMsg {
|
|
566
|
-
type: "cosmos-sdk/BatchEntry";
|
|
567
|
-
value: BatchEntryAmino;
|
|
568
|
-
}
|
|
569
|
-
export interface CompressedBatchProof {
|
|
570
|
-
entries: CompressedBatchEntry[];
|
|
571
|
-
lookupInners: InnerOp[];
|
|
572
|
-
}
|
|
573
|
-
export interface CompressedBatchProofProtoMsg {
|
|
574
|
-
typeUrl: "/cosmos.ics23.v1.CompressedBatchProof";
|
|
575
|
-
value: Uint8Array;
|
|
576
|
-
}
|
|
577
|
-
export interface CompressedBatchProofAmino {
|
|
578
|
-
entries: CompressedBatchEntryAmino[];
|
|
579
|
-
lookup_inners: InnerOpAmino[];
|
|
580
|
-
}
|
|
581
|
-
export interface CompressedBatchProofAminoMsg {
|
|
582
|
-
type: "cosmos-sdk/CompressedBatchProof";
|
|
583
|
-
value: CompressedBatchProofAmino;
|
|
584
|
-
}
|
|
585
|
-
/** Use BatchEntry not CommitmentProof, to avoid recursion */
|
|
586
|
-
export interface CompressedBatchEntry {
|
|
587
|
-
exist?: CompressedExistenceProof;
|
|
588
|
-
nonexist?: CompressedNonExistenceProof;
|
|
589
|
-
}
|
|
590
|
-
export interface CompressedBatchEntryProtoMsg {
|
|
591
|
-
typeUrl: "/cosmos.ics23.v1.CompressedBatchEntry";
|
|
592
|
-
value: Uint8Array;
|
|
593
|
-
}
|
|
594
|
-
/** Use BatchEntry not CommitmentProof, to avoid recursion */
|
|
595
|
-
export interface CompressedBatchEntryAmino {
|
|
596
|
-
exist?: CompressedExistenceProofAmino;
|
|
597
|
-
nonexist?: CompressedNonExistenceProofAmino;
|
|
598
|
-
}
|
|
599
|
-
export interface CompressedBatchEntryAminoMsg {
|
|
600
|
-
type: "cosmos-sdk/CompressedBatchEntry";
|
|
601
|
-
value: CompressedBatchEntryAmino;
|
|
602
|
-
}
|
|
603
|
-
export interface CompressedExistenceProof {
|
|
604
|
-
key: Uint8Array;
|
|
605
|
-
value: Uint8Array;
|
|
606
|
-
leaf?: LeafOp;
|
|
607
|
-
/** these are indexes into the lookup_inners table in CompressedBatchProof */
|
|
608
|
-
path: number[];
|
|
609
|
-
}
|
|
610
|
-
export interface CompressedExistenceProofProtoMsg {
|
|
611
|
-
typeUrl: "/cosmos.ics23.v1.CompressedExistenceProof";
|
|
612
|
-
value: Uint8Array;
|
|
613
|
-
}
|
|
614
|
-
export interface CompressedExistenceProofAmino {
|
|
615
|
-
key: string;
|
|
616
|
-
value: string;
|
|
617
|
-
leaf?: LeafOpAmino;
|
|
618
|
-
/** these are indexes into the lookup_inners table in CompressedBatchProof */
|
|
619
|
-
path: number[];
|
|
620
|
-
}
|
|
621
|
-
export interface CompressedExistenceProofAminoMsg {
|
|
622
|
-
type: "cosmos-sdk/CompressedExistenceProof";
|
|
623
|
-
value: CompressedExistenceProofAmino;
|
|
624
|
-
}
|
|
625
|
-
export interface CompressedNonExistenceProof {
|
|
626
|
-
/** TODO: remove this as unnecessary??? we prove a range */
|
|
627
|
-
key: Uint8Array;
|
|
628
|
-
left?: CompressedExistenceProof;
|
|
629
|
-
right?: CompressedExistenceProof;
|
|
630
|
-
}
|
|
631
|
-
export interface CompressedNonExistenceProofProtoMsg {
|
|
632
|
-
typeUrl: "/cosmos.ics23.v1.CompressedNonExistenceProof";
|
|
633
|
-
value: Uint8Array;
|
|
634
|
-
}
|
|
635
|
-
export interface CompressedNonExistenceProofAmino {
|
|
636
|
-
/** TODO: remove this as unnecessary??? we prove a range */
|
|
637
|
-
key: string;
|
|
638
|
-
left?: CompressedExistenceProofAmino;
|
|
639
|
-
right?: CompressedExistenceProofAmino;
|
|
640
|
-
}
|
|
641
|
-
export interface CompressedNonExistenceProofAminoMsg {
|
|
642
|
-
type: "cosmos-sdk/CompressedNonExistenceProof";
|
|
643
|
-
value: CompressedNonExistenceProofAmino;
|
|
644
|
-
}
|
|
645
|
-
function createBaseExistenceProof(): ExistenceProof {
|
|
646
|
-
return {
|
|
647
|
-
key: new Uint8Array(),
|
|
648
|
-
value: new Uint8Array(),
|
|
649
|
-
leaf: undefined,
|
|
650
|
-
path: []
|
|
651
|
-
};
|
|
652
|
-
}
|
|
653
|
-
export const ExistenceProof = {
|
|
654
|
-
typeUrl: "/cosmos.ics23.v1.ExistenceProof",
|
|
655
|
-
aminoType: "cosmos-sdk/ExistenceProof",
|
|
656
|
-
is(o: any): o is ExistenceProof {
|
|
657
|
-
return o && (o.$typeUrl === ExistenceProof.typeUrl || (o.key instanceof Uint8Array || typeof o.key === "string") && (o.value instanceof Uint8Array || typeof o.value === "string") && Array.isArray(o.path) && (!o.path.length || InnerOp.is(o.path[0])));
|
|
658
|
-
},
|
|
659
|
-
isAmino(o: any): o is ExistenceProofAmino {
|
|
660
|
-
return o && (o.$typeUrl === ExistenceProof.typeUrl || (o.key instanceof Uint8Array || typeof o.key === "string") && (o.value instanceof Uint8Array || typeof o.value === "string") && Array.isArray(o.path) && (!o.path.length || InnerOp.isAmino(o.path[0])));
|
|
661
|
-
},
|
|
662
|
-
encode(message: ExistenceProof, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
663
|
-
if (message.key.length !== 0) {
|
|
664
|
-
writer.uint32(10).bytes(message.key);
|
|
665
|
-
}
|
|
666
|
-
if (message.value.length !== 0) {
|
|
667
|
-
writer.uint32(18).bytes(message.value);
|
|
668
|
-
}
|
|
669
|
-
if (message.leaf !== undefined) {
|
|
670
|
-
LeafOp.encode(message.leaf, writer.uint32(26).fork()).ldelim();
|
|
671
|
-
}
|
|
672
|
-
for (const v of message.path) {
|
|
673
|
-
InnerOp.encode(v!, writer.uint32(34).fork()).ldelim();
|
|
674
|
-
}
|
|
675
|
-
return writer;
|
|
676
|
-
},
|
|
677
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ExistenceProof {
|
|
678
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
679
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
680
|
-
const message = createBaseExistenceProof();
|
|
681
|
-
while (reader.pos < end) {
|
|
682
|
-
const tag = reader.uint32();
|
|
683
|
-
switch (tag >>> 3) {
|
|
684
|
-
case 1:
|
|
685
|
-
message.key = reader.bytes();
|
|
686
|
-
break;
|
|
687
|
-
case 2:
|
|
688
|
-
message.value = reader.bytes();
|
|
689
|
-
break;
|
|
690
|
-
case 3:
|
|
691
|
-
message.leaf = LeafOp.decode(reader, reader.uint32());
|
|
692
|
-
break;
|
|
693
|
-
case 4:
|
|
694
|
-
message.path.push(InnerOp.decode(reader, reader.uint32()));
|
|
695
|
-
break;
|
|
696
|
-
default:
|
|
697
|
-
reader.skipType(tag & 7);
|
|
698
|
-
break;
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
return message;
|
|
702
|
-
},
|
|
703
|
-
fromPartial(object: DeepPartial<ExistenceProof>): ExistenceProof {
|
|
704
|
-
const message = createBaseExistenceProof();
|
|
705
|
-
message.key = object.key ?? new Uint8Array();
|
|
706
|
-
message.value = object.value ?? new Uint8Array();
|
|
707
|
-
message.leaf = object.leaf !== undefined && object.leaf !== null ? LeafOp.fromPartial(object.leaf) : undefined;
|
|
708
|
-
message.path = object.path?.map(e => InnerOp.fromPartial(e)) || [];
|
|
709
|
-
return message;
|
|
710
|
-
},
|
|
711
|
-
fromAmino(object: ExistenceProofAmino): ExistenceProof {
|
|
712
|
-
const message = createBaseExistenceProof();
|
|
713
|
-
if (object.key !== undefined && object.key !== null) {
|
|
714
|
-
message.key = bytesFromBase64(object.key);
|
|
715
|
-
}
|
|
716
|
-
if (object.value !== undefined && object.value !== null) {
|
|
717
|
-
message.value = bytesFromBase64(object.value);
|
|
718
|
-
}
|
|
719
|
-
if (object.leaf !== undefined && object.leaf !== null) {
|
|
720
|
-
message.leaf = LeafOp.fromAmino(object.leaf);
|
|
721
|
-
}
|
|
722
|
-
message.path = object.path?.map(e => InnerOp.fromAmino(e)) || [];
|
|
723
|
-
return message;
|
|
724
|
-
},
|
|
725
|
-
toAmino(message: ExistenceProof): ExistenceProofAmino {
|
|
726
|
-
const obj: any = {};
|
|
727
|
-
obj.key = message.key ? base64FromBytes(message.key) : undefined;
|
|
728
|
-
obj.value = message.value ? base64FromBytes(message.value) : undefined;
|
|
729
|
-
obj.leaf = message.leaf ? LeafOp.toAmino(message.leaf) : undefined;
|
|
730
|
-
if (message.path) {
|
|
731
|
-
obj.path = message.path.map(e => e ? InnerOp.toAmino(e) : undefined);
|
|
732
|
-
} else {
|
|
733
|
-
obj.path = message.path;
|
|
734
|
-
}
|
|
735
|
-
return obj;
|
|
736
|
-
},
|
|
737
|
-
fromAminoMsg(object: ExistenceProofAminoMsg): ExistenceProof {
|
|
738
|
-
return ExistenceProof.fromAmino(object.value);
|
|
739
|
-
},
|
|
740
|
-
toAminoMsg(message: ExistenceProof): ExistenceProofAminoMsg {
|
|
741
|
-
return {
|
|
742
|
-
type: "cosmos-sdk/ExistenceProof",
|
|
743
|
-
value: ExistenceProof.toAmino(message)
|
|
744
|
-
};
|
|
745
|
-
},
|
|
746
|
-
fromProtoMsg(message: ExistenceProofProtoMsg): ExistenceProof {
|
|
747
|
-
return ExistenceProof.decode(message.value);
|
|
748
|
-
},
|
|
749
|
-
toProto(message: ExistenceProof): Uint8Array {
|
|
750
|
-
return ExistenceProof.encode(message).finish();
|
|
751
|
-
},
|
|
752
|
-
toProtoMsg(message: ExistenceProof): ExistenceProofProtoMsg {
|
|
753
|
-
return {
|
|
754
|
-
typeUrl: "/cosmos.ics23.v1.ExistenceProof",
|
|
755
|
-
value: ExistenceProof.encode(message).finish()
|
|
756
|
-
};
|
|
757
|
-
}
|
|
758
|
-
};
|
|
759
|
-
GlobalDecoderRegistry.register(ExistenceProof.typeUrl, ExistenceProof);
|
|
760
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(ExistenceProof.aminoType, ExistenceProof.typeUrl);
|
|
761
|
-
function createBaseNonExistenceProof(): NonExistenceProof {
|
|
762
|
-
return {
|
|
763
|
-
key: new Uint8Array(),
|
|
764
|
-
left: undefined,
|
|
765
|
-
right: undefined
|
|
766
|
-
};
|
|
767
|
-
}
|
|
768
|
-
export const NonExistenceProof = {
|
|
769
|
-
typeUrl: "/cosmos.ics23.v1.NonExistenceProof",
|
|
770
|
-
aminoType: "cosmos-sdk/NonExistenceProof",
|
|
771
|
-
is(o: any): o is NonExistenceProof {
|
|
772
|
-
return o && (o.$typeUrl === NonExistenceProof.typeUrl || o.key instanceof Uint8Array || typeof o.key === "string");
|
|
773
|
-
},
|
|
774
|
-
isAmino(o: any): o is NonExistenceProofAmino {
|
|
775
|
-
return o && (o.$typeUrl === NonExistenceProof.typeUrl || o.key instanceof Uint8Array || typeof o.key === "string");
|
|
776
|
-
},
|
|
777
|
-
encode(message: NonExistenceProof, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
778
|
-
if (message.key.length !== 0) {
|
|
779
|
-
writer.uint32(10).bytes(message.key);
|
|
780
|
-
}
|
|
781
|
-
if (message.left !== undefined) {
|
|
782
|
-
ExistenceProof.encode(message.left, writer.uint32(18).fork()).ldelim();
|
|
783
|
-
}
|
|
784
|
-
if (message.right !== undefined) {
|
|
785
|
-
ExistenceProof.encode(message.right, writer.uint32(26).fork()).ldelim();
|
|
786
|
-
}
|
|
787
|
-
return writer;
|
|
788
|
-
},
|
|
789
|
-
decode(input: BinaryReader | Uint8Array, length?: number): NonExistenceProof {
|
|
790
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
791
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
792
|
-
const message = createBaseNonExistenceProof();
|
|
793
|
-
while (reader.pos < end) {
|
|
794
|
-
const tag = reader.uint32();
|
|
795
|
-
switch (tag >>> 3) {
|
|
796
|
-
case 1:
|
|
797
|
-
message.key = reader.bytes();
|
|
798
|
-
break;
|
|
799
|
-
case 2:
|
|
800
|
-
message.left = ExistenceProof.decode(reader, reader.uint32());
|
|
801
|
-
break;
|
|
802
|
-
case 3:
|
|
803
|
-
message.right = ExistenceProof.decode(reader, reader.uint32());
|
|
804
|
-
break;
|
|
805
|
-
default:
|
|
806
|
-
reader.skipType(tag & 7);
|
|
807
|
-
break;
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
return message;
|
|
811
|
-
},
|
|
812
|
-
fromPartial(object: DeepPartial<NonExistenceProof>): NonExistenceProof {
|
|
813
|
-
const message = createBaseNonExistenceProof();
|
|
814
|
-
message.key = object.key ?? new Uint8Array();
|
|
815
|
-
message.left = object.left !== undefined && object.left !== null ? ExistenceProof.fromPartial(object.left) : undefined;
|
|
816
|
-
message.right = object.right !== undefined && object.right !== null ? ExistenceProof.fromPartial(object.right) : undefined;
|
|
817
|
-
return message;
|
|
818
|
-
},
|
|
819
|
-
fromAmino(object: NonExistenceProofAmino): NonExistenceProof {
|
|
820
|
-
const message = createBaseNonExistenceProof();
|
|
821
|
-
if (object.key !== undefined && object.key !== null) {
|
|
822
|
-
message.key = bytesFromBase64(object.key);
|
|
823
|
-
}
|
|
824
|
-
if (object.left !== undefined && object.left !== null) {
|
|
825
|
-
message.left = ExistenceProof.fromAmino(object.left);
|
|
826
|
-
}
|
|
827
|
-
if (object.right !== undefined && object.right !== null) {
|
|
828
|
-
message.right = ExistenceProof.fromAmino(object.right);
|
|
829
|
-
}
|
|
830
|
-
return message;
|
|
831
|
-
},
|
|
832
|
-
toAmino(message: NonExistenceProof): NonExistenceProofAmino {
|
|
833
|
-
const obj: any = {};
|
|
834
|
-
obj.key = message.key ? base64FromBytes(message.key) : undefined;
|
|
835
|
-
obj.left = message.left ? ExistenceProof.toAmino(message.left) : undefined;
|
|
836
|
-
obj.right = message.right ? ExistenceProof.toAmino(message.right) : undefined;
|
|
837
|
-
return obj;
|
|
838
|
-
},
|
|
839
|
-
fromAminoMsg(object: NonExistenceProofAminoMsg): NonExistenceProof {
|
|
840
|
-
return NonExistenceProof.fromAmino(object.value);
|
|
841
|
-
},
|
|
842
|
-
toAminoMsg(message: NonExistenceProof): NonExistenceProofAminoMsg {
|
|
843
|
-
return {
|
|
844
|
-
type: "cosmos-sdk/NonExistenceProof",
|
|
845
|
-
value: NonExistenceProof.toAmino(message)
|
|
846
|
-
};
|
|
847
|
-
},
|
|
848
|
-
fromProtoMsg(message: NonExistenceProofProtoMsg): NonExistenceProof {
|
|
849
|
-
return NonExistenceProof.decode(message.value);
|
|
850
|
-
},
|
|
851
|
-
toProto(message: NonExistenceProof): Uint8Array {
|
|
852
|
-
return NonExistenceProof.encode(message).finish();
|
|
853
|
-
},
|
|
854
|
-
toProtoMsg(message: NonExistenceProof): NonExistenceProofProtoMsg {
|
|
855
|
-
return {
|
|
856
|
-
typeUrl: "/cosmos.ics23.v1.NonExistenceProof",
|
|
857
|
-
value: NonExistenceProof.encode(message).finish()
|
|
858
|
-
};
|
|
859
|
-
}
|
|
860
|
-
};
|
|
861
|
-
GlobalDecoderRegistry.register(NonExistenceProof.typeUrl, NonExistenceProof);
|
|
862
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(NonExistenceProof.aminoType, NonExistenceProof.typeUrl);
|
|
863
|
-
function createBaseCommitmentProof(): CommitmentProof {
|
|
864
|
-
return {
|
|
865
|
-
exist: undefined,
|
|
866
|
-
nonexist: undefined,
|
|
867
|
-
batch: undefined,
|
|
868
|
-
compressed: undefined
|
|
869
|
-
};
|
|
870
|
-
}
|
|
871
|
-
export const CommitmentProof = {
|
|
872
|
-
typeUrl: "/cosmos.ics23.v1.CommitmentProof",
|
|
873
|
-
aminoType: "cosmos-sdk/CommitmentProof",
|
|
874
|
-
is(o: any): o is CommitmentProof {
|
|
875
|
-
return o && o.$typeUrl === CommitmentProof.typeUrl;
|
|
876
|
-
},
|
|
877
|
-
isAmino(o: any): o is CommitmentProofAmino {
|
|
878
|
-
return o && o.$typeUrl === CommitmentProof.typeUrl;
|
|
879
|
-
},
|
|
880
|
-
encode(message: CommitmentProof, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
881
|
-
if (message.exist !== undefined) {
|
|
882
|
-
ExistenceProof.encode(message.exist, writer.uint32(10).fork()).ldelim();
|
|
883
|
-
}
|
|
884
|
-
if (message.nonexist !== undefined) {
|
|
885
|
-
NonExistenceProof.encode(message.nonexist, writer.uint32(18).fork()).ldelim();
|
|
886
|
-
}
|
|
887
|
-
if (message.batch !== undefined) {
|
|
888
|
-
BatchProof.encode(message.batch, writer.uint32(26).fork()).ldelim();
|
|
889
|
-
}
|
|
890
|
-
if (message.compressed !== undefined) {
|
|
891
|
-
CompressedBatchProof.encode(message.compressed, writer.uint32(34).fork()).ldelim();
|
|
892
|
-
}
|
|
893
|
-
return writer;
|
|
894
|
-
},
|
|
895
|
-
decode(input: BinaryReader | Uint8Array, length?: number): CommitmentProof {
|
|
896
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
897
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
898
|
-
const message = createBaseCommitmentProof();
|
|
899
|
-
while (reader.pos < end) {
|
|
900
|
-
const tag = reader.uint32();
|
|
901
|
-
switch (tag >>> 3) {
|
|
902
|
-
case 1:
|
|
903
|
-
message.exist = ExistenceProof.decode(reader, reader.uint32());
|
|
904
|
-
break;
|
|
905
|
-
case 2:
|
|
906
|
-
message.nonexist = NonExistenceProof.decode(reader, reader.uint32());
|
|
907
|
-
break;
|
|
908
|
-
case 3:
|
|
909
|
-
message.batch = BatchProof.decode(reader, reader.uint32());
|
|
910
|
-
break;
|
|
911
|
-
case 4:
|
|
912
|
-
message.compressed = CompressedBatchProof.decode(reader, reader.uint32());
|
|
913
|
-
break;
|
|
914
|
-
default:
|
|
915
|
-
reader.skipType(tag & 7);
|
|
916
|
-
break;
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
return message;
|
|
920
|
-
},
|
|
921
|
-
fromPartial(object: DeepPartial<CommitmentProof>): CommitmentProof {
|
|
922
|
-
const message = createBaseCommitmentProof();
|
|
923
|
-
message.exist = object.exist !== undefined && object.exist !== null ? ExistenceProof.fromPartial(object.exist) : undefined;
|
|
924
|
-
message.nonexist = object.nonexist !== undefined && object.nonexist !== null ? NonExistenceProof.fromPartial(object.nonexist) : undefined;
|
|
925
|
-
message.batch = object.batch !== undefined && object.batch !== null ? BatchProof.fromPartial(object.batch) : undefined;
|
|
926
|
-
message.compressed = object.compressed !== undefined && object.compressed !== null ? CompressedBatchProof.fromPartial(object.compressed) : undefined;
|
|
927
|
-
return message;
|
|
928
|
-
},
|
|
929
|
-
fromAmino(object: CommitmentProofAmino): CommitmentProof {
|
|
930
|
-
const message = createBaseCommitmentProof();
|
|
931
|
-
if (object.exist !== undefined && object.exist !== null) {
|
|
932
|
-
message.exist = ExistenceProof.fromAmino(object.exist);
|
|
933
|
-
}
|
|
934
|
-
if (object.nonexist !== undefined && object.nonexist !== null) {
|
|
935
|
-
message.nonexist = NonExistenceProof.fromAmino(object.nonexist);
|
|
936
|
-
}
|
|
937
|
-
if (object.batch !== undefined && object.batch !== null) {
|
|
938
|
-
message.batch = BatchProof.fromAmino(object.batch);
|
|
939
|
-
}
|
|
940
|
-
if (object.compressed !== undefined && object.compressed !== null) {
|
|
941
|
-
message.compressed = CompressedBatchProof.fromAmino(object.compressed);
|
|
942
|
-
}
|
|
943
|
-
return message;
|
|
944
|
-
},
|
|
945
|
-
toAmino(message: CommitmentProof): CommitmentProofAmino {
|
|
946
|
-
const obj: any = {};
|
|
947
|
-
obj.exist = message.exist ? ExistenceProof.toAmino(message.exist) : undefined;
|
|
948
|
-
obj.nonexist = message.nonexist ? NonExistenceProof.toAmino(message.nonexist) : undefined;
|
|
949
|
-
obj.batch = message.batch ? BatchProof.toAmino(message.batch) : undefined;
|
|
950
|
-
obj.compressed = message.compressed ? CompressedBatchProof.toAmino(message.compressed) : undefined;
|
|
951
|
-
return obj;
|
|
952
|
-
},
|
|
953
|
-
fromAminoMsg(object: CommitmentProofAminoMsg): CommitmentProof {
|
|
954
|
-
return CommitmentProof.fromAmino(object.value);
|
|
955
|
-
},
|
|
956
|
-
toAminoMsg(message: CommitmentProof): CommitmentProofAminoMsg {
|
|
957
|
-
return {
|
|
958
|
-
type: "cosmos-sdk/CommitmentProof",
|
|
959
|
-
value: CommitmentProof.toAmino(message)
|
|
960
|
-
};
|
|
961
|
-
},
|
|
962
|
-
fromProtoMsg(message: CommitmentProofProtoMsg): CommitmentProof {
|
|
963
|
-
return CommitmentProof.decode(message.value);
|
|
964
|
-
},
|
|
965
|
-
toProto(message: CommitmentProof): Uint8Array {
|
|
966
|
-
return CommitmentProof.encode(message).finish();
|
|
967
|
-
},
|
|
968
|
-
toProtoMsg(message: CommitmentProof): CommitmentProofProtoMsg {
|
|
969
|
-
return {
|
|
970
|
-
typeUrl: "/cosmos.ics23.v1.CommitmentProof",
|
|
971
|
-
value: CommitmentProof.encode(message).finish()
|
|
972
|
-
};
|
|
973
|
-
}
|
|
974
|
-
};
|
|
975
|
-
GlobalDecoderRegistry.register(CommitmentProof.typeUrl, CommitmentProof);
|
|
976
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(CommitmentProof.aminoType, CommitmentProof.typeUrl);
|
|
977
|
-
function createBaseLeafOp(): LeafOp {
|
|
978
|
-
return {
|
|
979
|
-
hash: 0,
|
|
980
|
-
prehashKey: 0,
|
|
981
|
-
prehashValue: 0,
|
|
982
|
-
length: 0,
|
|
983
|
-
prefix: new Uint8Array()
|
|
984
|
-
};
|
|
985
|
-
}
|
|
986
|
-
export const LeafOp = {
|
|
987
|
-
typeUrl: "/cosmos.ics23.v1.LeafOp",
|
|
988
|
-
aminoType: "cosmos-sdk/LeafOp",
|
|
989
|
-
is(o: any): o is LeafOp {
|
|
990
|
-
return o && (o.$typeUrl === LeafOp.typeUrl || isSet(o.hash) && isSet(o.prehashKey) && isSet(o.prehashValue) && isSet(o.length) && (o.prefix instanceof Uint8Array || typeof o.prefix === "string"));
|
|
991
|
-
},
|
|
992
|
-
isAmino(o: any): o is LeafOpAmino {
|
|
993
|
-
return o && (o.$typeUrl === LeafOp.typeUrl || isSet(o.hash) && isSet(o.prehash_key) && isSet(o.prehash_value) && isSet(o.length) && (o.prefix instanceof Uint8Array || typeof o.prefix === "string"));
|
|
994
|
-
},
|
|
995
|
-
encode(message: LeafOp, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
996
|
-
if (message.hash !== 0) {
|
|
997
|
-
writer.uint32(8).int32(message.hash);
|
|
998
|
-
}
|
|
999
|
-
if (message.prehashKey !== 0) {
|
|
1000
|
-
writer.uint32(16).int32(message.prehashKey);
|
|
1001
|
-
}
|
|
1002
|
-
if (message.prehashValue !== 0) {
|
|
1003
|
-
writer.uint32(24).int32(message.prehashValue);
|
|
1004
|
-
}
|
|
1005
|
-
if (message.length !== 0) {
|
|
1006
|
-
writer.uint32(32).int32(message.length);
|
|
1007
|
-
}
|
|
1008
|
-
if (message.prefix.length !== 0) {
|
|
1009
|
-
writer.uint32(42).bytes(message.prefix);
|
|
1010
|
-
}
|
|
1011
|
-
return writer;
|
|
1012
|
-
},
|
|
1013
|
-
decode(input: BinaryReader | Uint8Array, length?: number): LeafOp {
|
|
1014
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1015
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1016
|
-
const message = createBaseLeafOp();
|
|
1017
|
-
while (reader.pos < end) {
|
|
1018
|
-
const tag = reader.uint32();
|
|
1019
|
-
switch (tag >>> 3) {
|
|
1020
|
-
case 1:
|
|
1021
|
-
message.hash = reader.int32() as any;
|
|
1022
|
-
break;
|
|
1023
|
-
case 2:
|
|
1024
|
-
message.prehashKey = reader.int32() as any;
|
|
1025
|
-
break;
|
|
1026
|
-
case 3:
|
|
1027
|
-
message.prehashValue = reader.int32() as any;
|
|
1028
|
-
break;
|
|
1029
|
-
case 4:
|
|
1030
|
-
message.length = reader.int32() as any;
|
|
1031
|
-
break;
|
|
1032
|
-
case 5:
|
|
1033
|
-
message.prefix = reader.bytes();
|
|
1034
|
-
break;
|
|
1035
|
-
default:
|
|
1036
|
-
reader.skipType(tag & 7);
|
|
1037
|
-
break;
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
return message;
|
|
1041
|
-
},
|
|
1042
|
-
fromPartial(object: DeepPartial<LeafOp>): LeafOp {
|
|
1043
|
-
const message = createBaseLeafOp();
|
|
1044
|
-
message.hash = object.hash ?? 0;
|
|
1045
|
-
message.prehashKey = object.prehashKey ?? 0;
|
|
1046
|
-
message.prehashValue = object.prehashValue ?? 0;
|
|
1047
|
-
message.length = object.length ?? 0;
|
|
1048
|
-
message.prefix = object.prefix ?? new Uint8Array();
|
|
1049
|
-
return message;
|
|
1050
|
-
},
|
|
1051
|
-
fromAmino(object: LeafOpAmino): LeafOp {
|
|
1052
|
-
const message = createBaseLeafOp();
|
|
1053
|
-
if (object.hash !== undefined && object.hash !== null) {
|
|
1054
|
-
message.hash = object.hash;
|
|
1055
|
-
}
|
|
1056
|
-
if (object.prehash_key !== undefined && object.prehash_key !== null) {
|
|
1057
|
-
message.prehashKey = object.prehash_key;
|
|
1058
|
-
}
|
|
1059
|
-
if (object.prehash_value !== undefined && object.prehash_value !== null) {
|
|
1060
|
-
message.prehashValue = object.prehash_value;
|
|
1061
|
-
}
|
|
1062
|
-
if (object.length !== undefined && object.length !== null) {
|
|
1063
|
-
message.length = object.length;
|
|
1064
|
-
}
|
|
1065
|
-
if (object.prefix !== undefined && object.prefix !== null) {
|
|
1066
|
-
message.prefix = bytesFromBase64(object.prefix);
|
|
1067
|
-
}
|
|
1068
|
-
return message;
|
|
1069
|
-
},
|
|
1070
|
-
toAmino(message: LeafOp): LeafOpAmino {
|
|
1071
|
-
const obj: any = {};
|
|
1072
|
-
obj.hash = message.hash === 0 ? undefined : message.hash;
|
|
1073
|
-
obj.prehash_key = message.prehashKey === 0 ? undefined : message.prehashKey;
|
|
1074
|
-
obj.prehash_value = message.prehashValue === 0 ? undefined : message.prehashValue;
|
|
1075
|
-
obj.length = message.length === 0 ? undefined : message.length;
|
|
1076
|
-
obj.prefix = message.prefix ? base64FromBytes(message.prefix) : undefined;
|
|
1077
|
-
return obj;
|
|
1078
|
-
},
|
|
1079
|
-
fromAminoMsg(object: LeafOpAminoMsg): LeafOp {
|
|
1080
|
-
return LeafOp.fromAmino(object.value);
|
|
1081
|
-
},
|
|
1082
|
-
toAminoMsg(message: LeafOp): LeafOpAminoMsg {
|
|
1083
|
-
return {
|
|
1084
|
-
type: "cosmos-sdk/LeafOp",
|
|
1085
|
-
value: LeafOp.toAmino(message)
|
|
1086
|
-
};
|
|
1087
|
-
},
|
|
1088
|
-
fromProtoMsg(message: LeafOpProtoMsg): LeafOp {
|
|
1089
|
-
return LeafOp.decode(message.value);
|
|
1090
|
-
},
|
|
1091
|
-
toProto(message: LeafOp): Uint8Array {
|
|
1092
|
-
return LeafOp.encode(message).finish();
|
|
1093
|
-
},
|
|
1094
|
-
toProtoMsg(message: LeafOp): LeafOpProtoMsg {
|
|
1095
|
-
return {
|
|
1096
|
-
typeUrl: "/cosmos.ics23.v1.LeafOp",
|
|
1097
|
-
value: LeafOp.encode(message).finish()
|
|
1098
|
-
};
|
|
1099
|
-
}
|
|
1100
|
-
};
|
|
1101
|
-
GlobalDecoderRegistry.register(LeafOp.typeUrl, LeafOp);
|
|
1102
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(LeafOp.aminoType, LeafOp.typeUrl);
|
|
1103
|
-
function createBaseInnerOp(): InnerOp {
|
|
1104
|
-
return {
|
|
1105
|
-
hash: 0,
|
|
1106
|
-
prefix: new Uint8Array(),
|
|
1107
|
-
suffix: new Uint8Array()
|
|
1108
|
-
};
|
|
1109
|
-
}
|
|
1110
|
-
export const InnerOp = {
|
|
1111
|
-
typeUrl: "/cosmos.ics23.v1.InnerOp",
|
|
1112
|
-
aminoType: "cosmos-sdk/InnerOp",
|
|
1113
|
-
is(o: any): o is InnerOp {
|
|
1114
|
-
return o && (o.$typeUrl === InnerOp.typeUrl || isSet(o.hash) && (o.prefix instanceof Uint8Array || typeof o.prefix === "string") && (o.suffix instanceof Uint8Array || typeof o.suffix === "string"));
|
|
1115
|
-
},
|
|
1116
|
-
isAmino(o: any): o is InnerOpAmino {
|
|
1117
|
-
return o && (o.$typeUrl === InnerOp.typeUrl || isSet(o.hash) && (o.prefix instanceof Uint8Array || typeof o.prefix === "string") && (o.suffix instanceof Uint8Array || typeof o.suffix === "string"));
|
|
1118
|
-
},
|
|
1119
|
-
encode(message: InnerOp, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1120
|
-
if (message.hash !== 0) {
|
|
1121
|
-
writer.uint32(8).int32(message.hash);
|
|
1122
|
-
}
|
|
1123
|
-
if (message.prefix.length !== 0) {
|
|
1124
|
-
writer.uint32(18).bytes(message.prefix);
|
|
1125
|
-
}
|
|
1126
|
-
if (message.suffix.length !== 0) {
|
|
1127
|
-
writer.uint32(26).bytes(message.suffix);
|
|
1128
|
-
}
|
|
1129
|
-
return writer;
|
|
1130
|
-
},
|
|
1131
|
-
decode(input: BinaryReader | Uint8Array, length?: number): InnerOp {
|
|
1132
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1133
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1134
|
-
const message = createBaseInnerOp();
|
|
1135
|
-
while (reader.pos < end) {
|
|
1136
|
-
const tag = reader.uint32();
|
|
1137
|
-
switch (tag >>> 3) {
|
|
1138
|
-
case 1:
|
|
1139
|
-
message.hash = reader.int32() as any;
|
|
1140
|
-
break;
|
|
1141
|
-
case 2:
|
|
1142
|
-
message.prefix = reader.bytes();
|
|
1143
|
-
break;
|
|
1144
|
-
case 3:
|
|
1145
|
-
message.suffix = reader.bytes();
|
|
1146
|
-
break;
|
|
1147
|
-
default:
|
|
1148
|
-
reader.skipType(tag & 7);
|
|
1149
|
-
break;
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
return message;
|
|
1153
|
-
},
|
|
1154
|
-
fromPartial(object: DeepPartial<InnerOp>): InnerOp {
|
|
1155
|
-
const message = createBaseInnerOp();
|
|
1156
|
-
message.hash = object.hash ?? 0;
|
|
1157
|
-
message.prefix = object.prefix ?? new Uint8Array();
|
|
1158
|
-
message.suffix = object.suffix ?? new Uint8Array();
|
|
1159
|
-
return message;
|
|
1160
|
-
},
|
|
1161
|
-
fromAmino(object: InnerOpAmino): InnerOp {
|
|
1162
|
-
const message = createBaseInnerOp();
|
|
1163
|
-
if (object.hash !== undefined && object.hash !== null) {
|
|
1164
|
-
message.hash = object.hash;
|
|
1165
|
-
}
|
|
1166
|
-
if (object.prefix !== undefined && object.prefix !== null) {
|
|
1167
|
-
message.prefix = bytesFromBase64(object.prefix);
|
|
1168
|
-
}
|
|
1169
|
-
if (object.suffix !== undefined && object.suffix !== null) {
|
|
1170
|
-
message.suffix = bytesFromBase64(object.suffix);
|
|
1171
|
-
}
|
|
1172
|
-
return message;
|
|
1173
|
-
},
|
|
1174
|
-
toAmino(message: InnerOp): InnerOpAmino {
|
|
1175
|
-
const obj: any = {};
|
|
1176
|
-
obj.hash = message.hash === 0 ? undefined : message.hash;
|
|
1177
|
-
obj.prefix = message.prefix ? base64FromBytes(message.prefix) : undefined;
|
|
1178
|
-
obj.suffix = message.suffix ? base64FromBytes(message.suffix) : undefined;
|
|
1179
|
-
return obj;
|
|
1180
|
-
},
|
|
1181
|
-
fromAminoMsg(object: InnerOpAminoMsg): InnerOp {
|
|
1182
|
-
return InnerOp.fromAmino(object.value);
|
|
1183
|
-
},
|
|
1184
|
-
toAminoMsg(message: InnerOp): InnerOpAminoMsg {
|
|
1185
|
-
return {
|
|
1186
|
-
type: "cosmos-sdk/InnerOp",
|
|
1187
|
-
value: InnerOp.toAmino(message)
|
|
1188
|
-
};
|
|
1189
|
-
},
|
|
1190
|
-
fromProtoMsg(message: InnerOpProtoMsg): InnerOp {
|
|
1191
|
-
return InnerOp.decode(message.value);
|
|
1192
|
-
},
|
|
1193
|
-
toProto(message: InnerOp): Uint8Array {
|
|
1194
|
-
return InnerOp.encode(message).finish();
|
|
1195
|
-
},
|
|
1196
|
-
toProtoMsg(message: InnerOp): InnerOpProtoMsg {
|
|
1197
|
-
return {
|
|
1198
|
-
typeUrl: "/cosmos.ics23.v1.InnerOp",
|
|
1199
|
-
value: InnerOp.encode(message).finish()
|
|
1200
|
-
};
|
|
1201
|
-
}
|
|
1202
|
-
};
|
|
1203
|
-
GlobalDecoderRegistry.register(InnerOp.typeUrl, InnerOp);
|
|
1204
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(InnerOp.aminoType, InnerOp.typeUrl);
|
|
1205
|
-
function createBaseProofSpec(): ProofSpec {
|
|
1206
|
-
return {
|
|
1207
|
-
leafSpec: undefined,
|
|
1208
|
-
innerSpec: undefined,
|
|
1209
|
-
maxDepth: 0,
|
|
1210
|
-
minDepth: 0,
|
|
1211
|
-
prehashKeyBeforeComparison: false
|
|
1212
|
-
};
|
|
1213
|
-
}
|
|
1214
|
-
export const ProofSpec = {
|
|
1215
|
-
typeUrl: "/cosmos.ics23.v1.ProofSpec",
|
|
1216
|
-
aminoType: "cosmos-sdk/ProofSpec",
|
|
1217
|
-
is(o: any): o is ProofSpec {
|
|
1218
|
-
return o && (o.$typeUrl === ProofSpec.typeUrl || typeof o.maxDepth === "number" && typeof o.minDepth === "number" && typeof o.prehashKeyBeforeComparison === "boolean");
|
|
1219
|
-
},
|
|
1220
|
-
isAmino(o: any): o is ProofSpecAmino {
|
|
1221
|
-
return o && (o.$typeUrl === ProofSpec.typeUrl || typeof o.max_depth === "number" && typeof o.min_depth === "number" && typeof o.prehash_key_before_comparison === "boolean");
|
|
1222
|
-
},
|
|
1223
|
-
encode(message: ProofSpec, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1224
|
-
if (message.leafSpec !== undefined) {
|
|
1225
|
-
LeafOp.encode(message.leafSpec, writer.uint32(10).fork()).ldelim();
|
|
1226
|
-
}
|
|
1227
|
-
if (message.innerSpec !== undefined) {
|
|
1228
|
-
InnerSpec.encode(message.innerSpec, writer.uint32(18).fork()).ldelim();
|
|
1229
|
-
}
|
|
1230
|
-
if (message.maxDepth !== 0) {
|
|
1231
|
-
writer.uint32(24).int32(message.maxDepth);
|
|
1232
|
-
}
|
|
1233
|
-
if (message.minDepth !== 0) {
|
|
1234
|
-
writer.uint32(32).int32(message.minDepth);
|
|
1235
|
-
}
|
|
1236
|
-
if (message.prehashKeyBeforeComparison === true) {
|
|
1237
|
-
writer.uint32(40).bool(message.prehashKeyBeforeComparison);
|
|
1238
|
-
}
|
|
1239
|
-
return writer;
|
|
1240
|
-
},
|
|
1241
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ProofSpec {
|
|
1242
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1243
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1244
|
-
const message = createBaseProofSpec();
|
|
1245
|
-
while (reader.pos < end) {
|
|
1246
|
-
const tag = reader.uint32();
|
|
1247
|
-
switch (tag >>> 3) {
|
|
1248
|
-
case 1:
|
|
1249
|
-
message.leafSpec = LeafOp.decode(reader, reader.uint32());
|
|
1250
|
-
break;
|
|
1251
|
-
case 2:
|
|
1252
|
-
message.innerSpec = InnerSpec.decode(reader, reader.uint32());
|
|
1253
|
-
break;
|
|
1254
|
-
case 3:
|
|
1255
|
-
message.maxDepth = reader.int32();
|
|
1256
|
-
break;
|
|
1257
|
-
case 4:
|
|
1258
|
-
message.minDepth = reader.int32();
|
|
1259
|
-
break;
|
|
1260
|
-
case 5:
|
|
1261
|
-
message.prehashKeyBeforeComparison = reader.bool();
|
|
1262
|
-
break;
|
|
1263
|
-
default:
|
|
1264
|
-
reader.skipType(tag & 7);
|
|
1265
|
-
break;
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
return message;
|
|
1269
|
-
},
|
|
1270
|
-
fromPartial(object: DeepPartial<ProofSpec>): ProofSpec {
|
|
1271
|
-
const message = createBaseProofSpec();
|
|
1272
|
-
message.leafSpec = object.leafSpec !== undefined && object.leafSpec !== null ? LeafOp.fromPartial(object.leafSpec) : undefined;
|
|
1273
|
-
message.innerSpec = object.innerSpec !== undefined && object.innerSpec !== null ? InnerSpec.fromPartial(object.innerSpec) : undefined;
|
|
1274
|
-
message.maxDepth = object.maxDepth ?? 0;
|
|
1275
|
-
message.minDepth = object.minDepth ?? 0;
|
|
1276
|
-
message.prehashKeyBeforeComparison = object.prehashKeyBeforeComparison ?? false;
|
|
1277
|
-
return message;
|
|
1278
|
-
},
|
|
1279
|
-
fromAmino(object: ProofSpecAmino): ProofSpec {
|
|
1280
|
-
const message = createBaseProofSpec();
|
|
1281
|
-
if (object.leaf_spec !== undefined && object.leaf_spec !== null) {
|
|
1282
|
-
message.leafSpec = LeafOp.fromAmino(object.leaf_spec);
|
|
1283
|
-
}
|
|
1284
|
-
if (object.inner_spec !== undefined && object.inner_spec !== null) {
|
|
1285
|
-
message.innerSpec = InnerSpec.fromAmino(object.inner_spec);
|
|
1286
|
-
}
|
|
1287
|
-
if (object.max_depth !== undefined && object.max_depth !== null) {
|
|
1288
|
-
message.maxDepth = object.max_depth;
|
|
1289
|
-
}
|
|
1290
|
-
if (object.min_depth !== undefined && object.min_depth !== null) {
|
|
1291
|
-
message.minDepth = object.min_depth;
|
|
1292
|
-
}
|
|
1293
|
-
if (object.prehash_key_before_comparison !== undefined && object.prehash_key_before_comparison !== null) {
|
|
1294
|
-
message.prehashKeyBeforeComparison = object.prehash_key_before_comparison;
|
|
1295
|
-
}
|
|
1296
|
-
return message;
|
|
1297
|
-
},
|
|
1298
|
-
toAmino(message: ProofSpec): ProofSpecAmino {
|
|
1299
|
-
const obj: any = {};
|
|
1300
|
-
obj.leaf_spec = message.leafSpec ? LeafOp.toAmino(message.leafSpec) : undefined;
|
|
1301
|
-
obj.inner_spec = message.innerSpec ? InnerSpec.toAmino(message.innerSpec) : undefined;
|
|
1302
|
-
obj.max_depth = message.maxDepth === 0 ? undefined : message.maxDepth;
|
|
1303
|
-
obj.min_depth = message.minDepth === 0 ? undefined : message.minDepth;
|
|
1304
|
-
obj.prehash_key_before_comparison = message.prehashKeyBeforeComparison === false ? undefined : message.prehashKeyBeforeComparison;
|
|
1305
|
-
return obj;
|
|
1306
|
-
},
|
|
1307
|
-
fromAminoMsg(object: ProofSpecAminoMsg): ProofSpec {
|
|
1308
|
-
return ProofSpec.fromAmino(object.value);
|
|
1309
|
-
},
|
|
1310
|
-
toAminoMsg(message: ProofSpec): ProofSpecAminoMsg {
|
|
1311
|
-
return {
|
|
1312
|
-
type: "cosmos-sdk/ProofSpec",
|
|
1313
|
-
value: ProofSpec.toAmino(message)
|
|
1314
|
-
};
|
|
1315
|
-
},
|
|
1316
|
-
fromProtoMsg(message: ProofSpecProtoMsg): ProofSpec {
|
|
1317
|
-
return ProofSpec.decode(message.value);
|
|
1318
|
-
},
|
|
1319
|
-
toProto(message: ProofSpec): Uint8Array {
|
|
1320
|
-
return ProofSpec.encode(message).finish();
|
|
1321
|
-
},
|
|
1322
|
-
toProtoMsg(message: ProofSpec): ProofSpecProtoMsg {
|
|
1323
|
-
return {
|
|
1324
|
-
typeUrl: "/cosmos.ics23.v1.ProofSpec",
|
|
1325
|
-
value: ProofSpec.encode(message).finish()
|
|
1326
|
-
};
|
|
1327
|
-
}
|
|
1328
|
-
};
|
|
1329
|
-
GlobalDecoderRegistry.register(ProofSpec.typeUrl, ProofSpec);
|
|
1330
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(ProofSpec.aminoType, ProofSpec.typeUrl);
|
|
1331
|
-
function createBaseInnerSpec(): InnerSpec {
|
|
1332
|
-
return {
|
|
1333
|
-
childOrder: [],
|
|
1334
|
-
childSize: 0,
|
|
1335
|
-
minPrefixLength: 0,
|
|
1336
|
-
maxPrefixLength: 0,
|
|
1337
|
-
emptyChild: new Uint8Array(),
|
|
1338
|
-
hash: 0
|
|
1339
|
-
};
|
|
1340
|
-
}
|
|
1341
|
-
export const InnerSpec = {
|
|
1342
|
-
typeUrl: "/cosmos.ics23.v1.InnerSpec",
|
|
1343
|
-
aminoType: "cosmos-sdk/InnerSpec",
|
|
1344
|
-
is(o: any): o is InnerSpec {
|
|
1345
|
-
return o && (o.$typeUrl === InnerSpec.typeUrl || Array.isArray(o.childOrder) && (!o.childOrder.length || typeof o.childOrder[0] === "number") && typeof o.childSize === "number" && typeof o.minPrefixLength === "number" && typeof o.maxPrefixLength === "number" && (o.emptyChild instanceof Uint8Array || typeof o.emptyChild === "string") && isSet(o.hash));
|
|
1346
|
-
},
|
|
1347
|
-
isAmino(o: any): o is InnerSpecAmino {
|
|
1348
|
-
return o && (o.$typeUrl === InnerSpec.typeUrl || Array.isArray(o.child_order) && (!o.child_order.length || typeof o.child_order[0] === "number") && typeof o.child_size === "number" && typeof o.min_prefix_length === "number" && typeof o.max_prefix_length === "number" && (o.empty_child instanceof Uint8Array || typeof o.empty_child === "string") && isSet(o.hash));
|
|
1349
|
-
},
|
|
1350
|
-
encode(message: InnerSpec, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1351
|
-
writer.uint32(10).fork();
|
|
1352
|
-
for (const v of message.childOrder) {
|
|
1353
|
-
writer.int32(v);
|
|
1354
|
-
}
|
|
1355
|
-
writer.ldelim();
|
|
1356
|
-
if (message.childSize !== 0) {
|
|
1357
|
-
writer.uint32(16).int32(message.childSize);
|
|
1358
|
-
}
|
|
1359
|
-
if (message.minPrefixLength !== 0) {
|
|
1360
|
-
writer.uint32(24).int32(message.minPrefixLength);
|
|
1361
|
-
}
|
|
1362
|
-
if (message.maxPrefixLength !== 0) {
|
|
1363
|
-
writer.uint32(32).int32(message.maxPrefixLength);
|
|
1364
|
-
}
|
|
1365
|
-
if (message.emptyChild.length !== 0) {
|
|
1366
|
-
writer.uint32(42).bytes(message.emptyChild);
|
|
1367
|
-
}
|
|
1368
|
-
if (message.hash !== 0) {
|
|
1369
|
-
writer.uint32(48).int32(message.hash);
|
|
1370
|
-
}
|
|
1371
|
-
return writer;
|
|
1372
|
-
},
|
|
1373
|
-
decode(input: BinaryReader | Uint8Array, length?: number): InnerSpec {
|
|
1374
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1375
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1376
|
-
const message = createBaseInnerSpec();
|
|
1377
|
-
while (reader.pos < end) {
|
|
1378
|
-
const tag = reader.uint32();
|
|
1379
|
-
switch (tag >>> 3) {
|
|
1380
|
-
case 1:
|
|
1381
|
-
if ((tag & 7) === 2) {
|
|
1382
|
-
const end2 = reader.uint32() + reader.pos;
|
|
1383
|
-
while (reader.pos < end2) {
|
|
1384
|
-
message.childOrder.push(reader.int32());
|
|
1385
|
-
}
|
|
1386
|
-
} else {
|
|
1387
|
-
message.childOrder.push(reader.int32());
|
|
1388
|
-
}
|
|
1389
|
-
break;
|
|
1390
|
-
case 2:
|
|
1391
|
-
message.childSize = reader.int32();
|
|
1392
|
-
break;
|
|
1393
|
-
case 3:
|
|
1394
|
-
message.minPrefixLength = reader.int32();
|
|
1395
|
-
break;
|
|
1396
|
-
case 4:
|
|
1397
|
-
message.maxPrefixLength = reader.int32();
|
|
1398
|
-
break;
|
|
1399
|
-
case 5:
|
|
1400
|
-
message.emptyChild = reader.bytes();
|
|
1401
|
-
break;
|
|
1402
|
-
case 6:
|
|
1403
|
-
message.hash = reader.int32() as any;
|
|
1404
|
-
break;
|
|
1405
|
-
default:
|
|
1406
|
-
reader.skipType(tag & 7);
|
|
1407
|
-
break;
|
|
1408
|
-
}
|
|
1409
|
-
}
|
|
1410
|
-
return message;
|
|
1411
|
-
},
|
|
1412
|
-
fromPartial(object: DeepPartial<InnerSpec>): InnerSpec {
|
|
1413
|
-
const message = createBaseInnerSpec();
|
|
1414
|
-
message.childOrder = object.childOrder?.map(e => e) || [];
|
|
1415
|
-
message.childSize = object.childSize ?? 0;
|
|
1416
|
-
message.minPrefixLength = object.minPrefixLength ?? 0;
|
|
1417
|
-
message.maxPrefixLength = object.maxPrefixLength ?? 0;
|
|
1418
|
-
message.emptyChild = object.emptyChild ?? new Uint8Array();
|
|
1419
|
-
message.hash = object.hash ?? 0;
|
|
1420
|
-
return message;
|
|
1421
|
-
},
|
|
1422
|
-
fromAmino(object: InnerSpecAmino): InnerSpec {
|
|
1423
|
-
const message = createBaseInnerSpec();
|
|
1424
|
-
message.childOrder = object.child_order?.map(e => e) || [];
|
|
1425
|
-
if (object.child_size !== undefined && object.child_size !== null) {
|
|
1426
|
-
message.childSize = object.child_size;
|
|
1427
|
-
}
|
|
1428
|
-
if (object.min_prefix_length !== undefined && object.min_prefix_length !== null) {
|
|
1429
|
-
message.minPrefixLength = object.min_prefix_length;
|
|
1430
|
-
}
|
|
1431
|
-
if (object.max_prefix_length !== undefined && object.max_prefix_length !== null) {
|
|
1432
|
-
message.maxPrefixLength = object.max_prefix_length;
|
|
1433
|
-
}
|
|
1434
|
-
if (object.empty_child !== undefined && object.empty_child !== null) {
|
|
1435
|
-
message.emptyChild = bytesFromBase64(object.empty_child);
|
|
1436
|
-
}
|
|
1437
|
-
if (object.hash !== undefined && object.hash !== null) {
|
|
1438
|
-
message.hash = object.hash;
|
|
1439
|
-
}
|
|
1440
|
-
return message;
|
|
1441
|
-
},
|
|
1442
|
-
toAmino(message: InnerSpec): InnerSpecAmino {
|
|
1443
|
-
const obj: any = {};
|
|
1444
|
-
if (message.childOrder) {
|
|
1445
|
-
obj.child_order = message.childOrder.map(e => e);
|
|
1446
|
-
} else {
|
|
1447
|
-
obj.child_order = message.childOrder;
|
|
1448
|
-
}
|
|
1449
|
-
obj.child_size = message.childSize === 0 ? undefined : message.childSize;
|
|
1450
|
-
obj.min_prefix_length = message.minPrefixLength === 0 ? undefined : message.minPrefixLength;
|
|
1451
|
-
obj.max_prefix_length = message.maxPrefixLength === 0 ? undefined : message.maxPrefixLength;
|
|
1452
|
-
obj.empty_child = message.emptyChild ? base64FromBytes(message.emptyChild) : undefined;
|
|
1453
|
-
obj.hash = message.hash === 0 ? undefined : message.hash;
|
|
1454
|
-
return obj;
|
|
1455
|
-
},
|
|
1456
|
-
fromAminoMsg(object: InnerSpecAminoMsg): InnerSpec {
|
|
1457
|
-
return InnerSpec.fromAmino(object.value);
|
|
1458
|
-
},
|
|
1459
|
-
toAminoMsg(message: InnerSpec): InnerSpecAminoMsg {
|
|
1460
|
-
return {
|
|
1461
|
-
type: "cosmos-sdk/InnerSpec",
|
|
1462
|
-
value: InnerSpec.toAmino(message)
|
|
1463
|
-
};
|
|
1464
|
-
},
|
|
1465
|
-
fromProtoMsg(message: InnerSpecProtoMsg): InnerSpec {
|
|
1466
|
-
return InnerSpec.decode(message.value);
|
|
1467
|
-
},
|
|
1468
|
-
toProto(message: InnerSpec): Uint8Array {
|
|
1469
|
-
return InnerSpec.encode(message).finish();
|
|
1470
|
-
},
|
|
1471
|
-
toProtoMsg(message: InnerSpec): InnerSpecProtoMsg {
|
|
1472
|
-
return {
|
|
1473
|
-
typeUrl: "/cosmos.ics23.v1.InnerSpec",
|
|
1474
|
-
value: InnerSpec.encode(message).finish()
|
|
1475
|
-
};
|
|
1476
|
-
}
|
|
1477
|
-
};
|
|
1478
|
-
GlobalDecoderRegistry.register(InnerSpec.typeUrl, InnerSpec);
|
|
1479
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(InnerSpec.aminoType, InnerSpec.typeUrl);
|
|
1480
|
-
function createBaseBatchProof(): BatchProof {
|
|
1481
|
-
return {
|
|
1482
|
-
entries: []
|
|
1483
|
-
};
|
|
1484
|
-
}
|
|
1485
|
-
export const BatchProof = {
|
|
1486
|
-
typeUrl: "/cosmos.ics23.v1.BatchProof",
|
|
1487
|
-
aminoType: "cosmos-sdk/BatchProof",
|
|
1488
|
-
is(o: any): o is BatchProof {
|
|
1489
|
-
return o && (o.$typeUrl === BatchProof.typeUrl || Array.isArray(o.entries) && (!o.entries.length || BatchEntry.is(o.entries[0])));
|
|
1490
|
-
},
|
|
1491
|
-
isAmino(o: any): o is BatchProofAmino {
|
|
1492
|
-
return o && (o.$typeUrl === BatchProof.typeUrl || Array.isArray(o.entries) && (!o.entries.length || BatchEntry.isAmino(o.entries[0])));
|
|
1493
|
-
},
|
|
1494
|
-
encode(message: BatchProof, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1495
|
-
for (const v of message.entries) {
|
|
1496
|
-
BatchEntry.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1497
|
-
}
|
|
1498
|
-
return writer;
|
|
1499
|
-
},
|
|
1500
|
-
decode(input: BinaryReader | Uint8Array, length?: number): BatchProof {
|
|
1501
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1502
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1503
|
-
const message = createBaseBatchProof();
|
|
1504
|
-
while (reader.pos < end) {
|
|
1505
|
-
const tag = reader.uint32();
|
|
1506
|
-
switch (tag >>> 3) {
|
|
1507
|
-
case 1:
|
|
1508
|
-
message.entries.push(BatchEntry.decode(reader, reader.uint32()));
|
|
1509
|
-
break;
|
|
1510
|
-
default:
|
|
1511
|
-
reader.skipType(tag & 7);
|
|
1512
|
-
break;
|
|
1513
|
-
}
|
|
1514
|
-
}
|
|
1515
|
-
return message;
|
|
1516
|
-
},
|
|
1517
|
-
fromPartial(object: DeepPartial<BatchProof>): BatchProof {
|
|
1518
|
-
const message = createBaseBatchProof();
|
|
1519
|
-
message.entries = object.entries?.map(e => BatchEntry.fromPartial(e)) || [];
|
|
1520
|
-
return message;
|
|
1521
|
-
},
|
|
1522
|
-
fromAmino(object: BatchProofAmino): BatchProof {
|
|
1523
|
-
const message = createBaseBatchProof();
|
|
1524
|
-
message.entries = object.entries?.map(e => BatchEntry.fromAmino(e)) || [];
|
|
1525
|
-
return message;
|
|
1526
|
-
},
|
|
1527
|
-
toAmino(message: BatchProof): BatchProofAmino {
|
|
1528
|
-
const obj: any = {};
|
|
1529
|
-
if (message.entries) {
|
|
1530
|
-
obj.entries = message.entries.map(e => e ? BatchEntry.toAmino(e) : undefined);
|
|
1531
|
-
} else {
|
|
1532
|
-
obj.entries = message.entries;
|
|
1533
|
-
}
|
|
1534
|
-
return obj;
|
|
1535
|
-
},
|
|
1536
|
-
fromAminoMsg(object: BatchProofAminoMsg): BatchProof {
|
|
1537
|
-
return BatchProof.fromAmino(object.value);
|
|
1538
|
-
},
|
|
1539
|
-
toAminoMsg(message: BatchProof): BatchProofAminoMsg {
|
|
1540
|
-
return {
|
|
1541
|
-
type: "cosmos-sdk/BatchProof",
|
|
1542
|
-
value: BatchProof.toAmino(message)
|
|
1543
|
-
};
|
|
1544
|
-
},
|
|
1545
|
-
fromProtoMsg(message: BatchProofProtoMsg): BatchProof {
|
|
1546
|
-
return BatchProof.decode(message.value);
|
|
1547
|
-
},
|
|
1548
|
-
toProto(message: BatchProof): Uint8Array {
|
|
1549
|
-
return BatchProof.encode(message).finish();
|
|
1550
|
-
},
|
|
1551
|
-
toProtoMsg(message: BatchProof): BatchProofProtoMsg {
|
|
1552
|
-
return {
|
|
1553
|
-
typeUrl: "/cosmos.ics23.v1.BatchProof",
|
|
1554
|
-
value: BatchProof.encode(message).finish()
|
|
1555
|
-
};
|
|
1556
|
-
}
|
|
1557
|
-
};
|
|
1558
|
-
GlobalDecoderRegistry.register(BatchProof.typeUrl, BatchProof);
|
|
1559
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(BatchProof.aminoType, BatchProof.typeUrl);
|
|
1560
|
-
function createBaseBatchEntry(): BatchEntry {
|
|
1561
|
-
return {
|
|
1562
|
-
exist: undefined,
|
|
1563
|
-
nonexist: undefined
|
|
1564
|
-
};
|
|
1565
|
-
}
|
|
1566
|
-
export const BatchEntry = {
|
|
1567
|
-
typeUrl: "/cosmos.ics23.v1.BatchEntry",
|
|
1568
|
-
aminoType: "cosmos-sdk/BatchEntry",
|
|
1569
|
-
is(o: any): o is BatchEntry {
|
|
1570
|
-
return o && o.$typeUrl === BatchEntry.typeUrl;
|
|
1571
|
-
},
|
|
1572
|
-
isAmino(o: any): o is BatchEntryAmino {
|
|
1573
|
-
return o && o.$typeUrl === BatchEntry.typeUrl;
|
|
1574
|
-
},
|
|
1575
|
-
encode(message: BatchEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1576
|
-
if (message.exist !== undefined) {
|
|
1577
|
-
ExistenceProof.encode(message.exist, writer.uint32(10).fork()).ldelim();
|
|
1578
|
-
}
|
|
1579
|
-
if (message.nonexist !== undefined) {
|
|
1580
|
-
NonExistenceProof.encode(message.nonexist, writer.uint32(18).fork()).ldelim();
|
|
1581
|
-
}
|
|
1582
|
-
return writer;
|
|
1583
|
-
},
|
|
1584
|
-
decode(input: BinaryReader | Uint8Array, length?: number): BatchEntry {
|
|
1585
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1586
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1587
|
-
const message = createBaseBatchEntry();
|
|
1588
|
-
while (reader.pos < end) {
|
|
1589
|
-
const tag = reader.uint32();
|
|
1590
|
-
switch (tag >>> 3) {
|
|
1591
|
-
case 1:
|
|
1592
|
-
message.exist = ExistenceProof.decode(reader, reader.uint32());
|
|
1593
|
-
break;
|
|
1594
|
-
case 2:
|
|
1595
|
-
message.nonexist = NonExistenceProof.decode(reader, reader.uint32());
|
|
1596
|
-
break;
|
|
1597
|
-
default:
|
|
1598
|
-
reader.skipType(tag & 7);
|
|
1599
|
-
break;
|
|
1600
|
-
}
|
|
1601
|
-
}
|
|
1602
|
-
return message;
|
|
1603
|
-
},
|
|
1604
|
-
fromPartial(object: DeepPartial<BatchEntry>): BatchEntry {
|
|
1605
|
-
const message = createBaseBatchEntry();
|
|
1606
|
-
message.exist = object.exist !== undefined && object.exist !== null ? ExistenceProof.fromPartial(object.exist) : undefined;
|
|
1607
|
-
message.nonexist = object.nonexist !== undefined && object.nonexist !== null ? NonExistenceProof.fromPartial(object.nonexist) : undefined;
|
|
1608
|
-
return message;
|
|
1609
|
-
},
|
|
1610
|
-
fromAmino(object: BatchEntryAmino): BatchEntry {
|
|
1611
|
-
const message = createBaseBatchEntry();
|
|
1612
|
-
if (object.exist !== undefined && object.exist !== null) {
|
|
1613
|
-
message.exist = ExistenceProof.fromAmino(object.exist);
|
|
1614
|
-
}
|
|
1615
|
-
if (object.nonexist !== undefined && object.nonexist !== null) {
|
|
1616
|
-
message.nonexist = NonExistenceProof.fromAmino(object.nonexist);
|
|
1617
|
-
}
|
|
1618
|
-
return message;
|
|
1619
|
-
},
|
|
1620
|
-
toAmino(message: BatchEntry): BatchEntryAmino {
|
|
1621
|
-
const obj: any = {};
|
|
1622
|
-
obj.exist = message.exist ? ExistenceProof.toAmino(message.exist) : undefined;
|
|
1623
|
-
obj.nonexist = message.nonexist ? NonExistenceProof.toAmino(message.nonexist) : undefined;
|
|
1624
|
-
return obj;
|
|
1625
|
-
},
|
|
1626
|
-
fromAminoMsg(object: BatchEntryAminoMsg): BatchEntry {
|
|
1627
|
-
return BatchEntry.fromAmino(object.value);
|
|
1628
|
-
},
|
|
1629
|
-
toAminoMsg(message: BatchEntry): BatchEntryAminoMsg {
|
|
1630
|
-
return {
|
|
1631
|
-
type: "cosmos-sdk/BatchEntry",
|
|
1632
|
-
value: BatchEntry.toAmino(message)
|
|
1633
|
-
};
|
|
1634
|
-
},
|
|
1635
|
-
fromProtoMsg(message: BatchEntryProtoMsg): BatchEntry {
|
|
1636
|
-
return BatchEntry.decode(message.value);
|
|
1637
|
-
},
|
|
1638
|
-
toProto(message: BatchEntry): Uint8Array {
|
|
1639
|
-
return BatchEntry.encode(message).finish();
|
|
1640
|
-
},
|
|
1641
|
-
toProtoMsg(message: BatchEntry): BatchEntryProtoMsg {
|
|
1642
|
-
return {
|
|
1643
|
-
typeUrl: "/cosmos.ics23.v1.BatchEntry",
|
|
1644
|
-
value: BatchEntry.encode(message).finish()
|
|
1645
|
-
};
|
|
1646
|
-
}
|
|
1647
|
-
};
|
|
1648
|
-
GlobalDecoderRegistry.register(BatchEntry.typeUrl, BatchEntry);
|
|
1649
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(BatchEntry.aminoType, BatchEntry.typeUrl);
|
|
1650
|
-
function createBaseCompressedBatchProof(): CompressedBatchProof {
|
|
1651
|
-
return {
|
|
1652
|
-
entries: [],
|
|
1653
|
-
lookupInners: []
|
|
1654
|
-
};
|
|
1655
|
-
}
|
|
1656
|
-
export const CompressedBatchProof = {
|
|
1657
|
-
typeUrl: "/cosmos.ics23.v1.CompressedBatchProof",
|
|
1658
|
-
aminoType: "cosmos-sdk/CompressedBatchProof",
|
|
1659
|
-
is(o: any): o is CompressedBatchProof {
|
|
1660
|
-
return o && (o.$typeUrl === CompressedBatchProof.typeUrl || Array.isArray(o.entries) && (!o.entries.length || CompressedBatchEntry.is(o.entries[0])) && Array.isArray(o.lookupInners) && (!o.lookupInners.length || InnerOp.is(o.lookupInners[0])));
|
|
1661
|
-
},
|
|
1662
|
-
isAmino(o: any): o is CompressedBatchProofAmino {
|
|
1663
|
-
return o && (o.$typeUrl === CompressedBatchProof.typeUrl || Array.isArray(o.entries) && (!o.entries.length || CompressedBatchEntry.isAmino(o.entries[0])) && Array.isArray(o.lookup_inners) && (!o.lookup_inners.length || InnerOp.isAmino(o.lookup_inners[0])));
|
|
1664
|
-
},
|
|
1665
|
-
encode(message: CompressedBatchProof, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1666
|
-
for (const v of message.entries) {
|
|
1667
|
-
CompressedBatchEntry.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1668
|
-
}
|
|
1669
|
-
for (const v of message.lookupInners) {
|
|
1670
|
-
InnerOp.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
1671
|
-
}
|
|
1672
|
-
return writer;
|
|
1673
|
-
},
|
|
1674
|
-
decode(input: BinaryReader | Uint8Array, length?: number): CompressedBatchProof {
|
|
1675
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1676
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1677
|
-
const message = createBaseCompressedBatchProof();
|
|
1678
|
-
while (reader.pos < end) {
|
|
1679
|
-
const tag = reader.uint32();
|
|
1680
|
-
switch (tag >>> 3) {
|
|
1681
|
-
case 1:
|
|
1682
|
-
message.entries.push(CompressedBatchEntry.decode(reader, reader.uint32()));
|
|
1683
|
-
break;
|
|
1684
|
-
case 2:
|
|
1685
|
-
message.lookupInners.push(InnerOp.decode(reader, reader.uint32()));
|
|
1686
|
-
break;
|
|
1687
|
-
default:
|
|
1688
|
-
reader.skipType(tag & 7);
|
|
1689
|
-
break;
|
|
1690
|
-
}
|
|
1691
|
-
}
|
|
1692
|
-
return message;
|
|
1693
|
-
},
|
|
1694
|
-
fromPartial(object: DeepPartial<CompressedBatchProof>): CompressedBatchProof {
|
|
1695
|
-
const message = createBaseCompressedBatchProof();
|
|
1696
|
-
message.entries = object.entries?.map(e => CompressedBatchEntry.fromPartial(e)) || [];
|
|
1697
|
-
message.lookupInners = object.lookupInners?.map(e => InnerOp.fromPartial(e)) || [];
|
|
1698
|
-
return message;
|
|
1699
|
-
},
|
|
1700
|
-
fromAmino(object: CompressedBatchProofAmino): CompressedBatchProof {
|
|
1701
|
-
const message = createBaseCompressedBatchProof();
|
|
1702
|
-
message.entries = object.entries?.map(e => CompressedBatchEntry.fromAmino(e)) || [];
|
|
1703
|
-
message.lookupInners = object.lookup_inners?.map(e => InnerOp.fromAmino(e)) || [];
|
|
1704
|
-
return message;
|
|
1705
|
-
},
|
|
1706
|
-
toAmino(message: CompressedBatchProof): CompressedBatchProofAmino {
|
|
1707
|
-
const obj: any = {};
|
|
1708
|
-
if (message.entries) {
|
|
1709
|
-
obj.entries = message.entries.map(e => e ? CompressedBatchEntry.toAmino(e) : undefined);
|
|
1710
|
-
} else {
|
|
1711
|
-
obj.entries = message.entries;
|
|
1712
|
-
}
|
|
1713
|
-
if (message.lookupInners) {
|
|
1714
|
-
obj.lookup_inners = message.lookupInners.map(e => e ? InnerOp.toAmino(e) : undefined);
|
|
1715
|
-
} else {
|
|
1716
|
-
obj.lookup_inners = message.lookupInners;
|
|
1717
|
-
}
|
|
1718
|
-
return obj;
|
|
1719
|
-
},
|
|
1720
|
-
fromAminoMsg(object: CompressedBatchProofAminoMsg): CompressedBatchProof {
|
|
1721
|
-
return CompressedBatchProof.fromAmino(object.value);
|
|
1722
|
-
},
|
|
1723
|
-
toAminoMsg(message: CompressedBatchProof): CompressedBatchProofAminoMsg {
|
|
1724
|
-
return {
|
|
1725
|
-
type: "cosmos-sdk/CompressedBatchProof",
|
|
1726
|
-
value: CompressedBatchProof.toAmino(message)
|
|
1727
|
-
};
|
|
1728
|
-
},
|
|
1729
|
-
fromProtoMsg(message: CompressedBatchProofProtoMsg): CompressedBatchProof {
|
|
1730
|
-
return CompressedBatchProof.decode(message.value);
|
|
1731
|
-
},
|
|
1732
|
-
toProto(message: CompressedBatchProof): Uint8Array {
|
|
1733
|
-
return CompressedBatchProof.encode(message).finish();
|
|
1734
|
-
},
|
|
1735
|
-
toProtoMsg(message: CompressedBatchProof): CompressedBatchProofProtoMsg {
|
|
1736
|
-
return {
|
|
1737
|
-
typeUrl: "/cosmos.ics23.v1.CompressedBatchProof",
|
|
1738
|
-
value: CompressedBatchProof.encode(message).finish()
|
|
1739
|
-
};
|
|
1740
|
-
}
|
|
1741
|
-
};
|
|
1742
|
-
GlobalDecoderRegistry.register(CompressedBatchProof.typeUrl, CompressedBatchProof);
|
|
1743
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(CompressedBatchProof.aminoType, CompressedBatchProof.typeUrl);
|
|
1744
|
-
function createBaseCompressedBatchEntry(): CompressedBatchEntry {
|
|
1745
|
-
return {
|
|
1746
|
-
exist: undefined,
|
|
1747
|
-
nonexist: undefined
|
|
1748
|
-
};
|
|
1749
|
-
}
|
|
1750
|
-
export const CompressedBatchEntry = {
|
|
1751
|
-
typeUrl: "/cosmos.ics23.v1.CompressedBatchEntry",
|
|
1752
|
-
aminoType: "cosmos-sdk/CompressedBatchEntry",
|
|
1753
|
-
is(o: any): o is CompressedBatchEntry {
|
|
1754
|
-
return o && o.$typeUrl === CompressedBatchEntry.typeUrl;
|
|
1755
|
-
},
|
|
1756
|
-
isAmino(o: any): o is CompressedBatchEntryAmino {
|
|
1757
|
-
return o && o.$typeUrl === CompressedBatchEntry.typeUrl;
|
|
1758
|
-
},
|
|
1759
|
-
encode(message: CompressedBatchEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1760
|
-
if (message.exist !== undefined) {
|
|
1761
|
-
CompressedExistenceProof.encode(message.exist, writer.uint32(10).fork()).ldelim();
|
|
1762
|
-
}
|
|
1763
|
-
if (message.nonexist !== undefined) {
|
|
1764
|
-
CompressedNonExistenceProof.encode(message.nonexist, writer.uint32(18).fork()).ldelim();
|
|
1765
|
-
}
|
|
1766
|
-
return writer;
|
|
1767
|
-
},
|
|
1768
|
-
decode(input: BinaryReader | Uint8Array, length?: number): CompressedBatchEntry {
|
|
1769
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1770
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1771
|
-
const message = createBaseCompressedBatchEntry();
|
|
1772
|
-
while (reader.pos < end) {
|
|
1773
|
-
const tag = reader.uint32();
|
|
1774
|
-
switch (tag >>> 3) {
|
|
1775
|
-
case 1:
|
|
1776
|
-
message.exist = CompressedExistenceProof.decode(reader, reader.uint32());
|
|
1777
|
-
break;
|
|
1778
|
-
case 2:
|
|
1779
|
-
message.nonexist = CompressedNonExistenceProof.decode(reader, reader.uint32());
|
|
1780
|
-
break;
|
|
1781
|
-
default:
|
|
1782
|
-
reader.skipType(tag & 7);
|
|
1783
|
-
break;
|
|
1784
|
-
}
|
|
1785
|
-
}
|
|
1786
|
-
return message;
|
|
1787
|
-
},
|
|
1788
|
-
fromPartial(object: DeepPartial<CompressedBatchEntry>): CompressedBatchEntry {
|
|
1789
|
-
const message = createBaseCompressedBatchEntry();
|
|
1790
|
-
message.exist = object.exist !== undefined && object.exist !== null ? CompressedExistenceProof.fromPartial(object.exist) : undefined;
|
|
1791
|
-
message.nonexist = object.nonexist !== undefined && object.nonexist !== null ? CompressedNonExistenceProof.fromPartial(object.nonexist) : undefined;
|
|
1792
|
-
return message;
|
|
1793
|
-
},
|
|
1794
|
-
fromAmino(object: CompressedBatchEntryAmino): CompressedBatchEntry {
|
|
1795
|
-
const message = createBaseCompressedBatchEntry();
|
|
1796
|
-
if (object.exist !== undefined && object.exist !== null) {
|
|
1797
|
-
message.exist = CompressedExistenceProof.fromAmino(object.exist);
|
|
1798
|
-
}
|
|
1799
|
-
if (object.nonexist !== undefined && object.nonexist !== null) {
|
|
1800
|
-
message.nonexist = CompressedNonExistenceProof.fromAmino(object.nonexist);
|
|
1801
|
-
}
|
|
1802
|
-
return message;
|
|
1803
|
-
},
|
|
1804
|
-
toAmino(message: CompressedBatchEntry): CompressedBatchEntryAmino {
|
|
1805
|
-
const obj: any = {};
|
|
1806
|
-
obj.exist = message.exist ? CompressedExistenceProof.toAmino(message.exist) : undefined;
|
|
1807
|
-
obj.nonexist = message.nonexist ? CompressedNonExistenceProof.toAmino(message.nonexist) : undefined;
|
|
1808
|
-
return obj;
|
|
1809
|
-
},
|
|
1810
|
-
fromAminoMsg(object: CompressedBatchEntryAminoMsg): CompressedBatchEntry {
|
|
1811
|
-
return CompressedBatchEntry.fromAmino(object.value);
|
|
1812
|
-
},
|
|
1813
|
-
toAminoMsg(message: CompressedBatchEntry): CompressedBatchEntryAminoMsg {
|
|
1814
|
-
return {
|
|
1815
|
-
type: "cosmos-sdk/CompressedBatchEntry",
|
|
1816
|
-
value: CompressedBatchEntry.toAmino(message)
|
|
1817
|
-
};
|
|
1818
|
-
},
|
|
1819
|
-
fromProtoMsg(message: CompressedBatchEntryProtoMsg): CompressedBatchEntry {
|
|
1820
|
-
return CompressedBatchEntry.decode(message.value);
|
|
1821
|
-
},
|
|
1822
|
-
toProto(message: CompressedBatchEntry): Uint8Array {
|
|
1823
|
-
return CompressedBatchEntry.encode(message).finish();
|
|
1824
|
-
},
|
|
1825
|
-
toProtoMsg(message: CompressedBatchEntry): CompressedBatchEntryProtoMsg {
|
|
1826
|
-
return {
|
|
1827
|
-
typeUrl: "/cosmos.ics23.v1.CompressedBatchEntry",
|
|
1828
|
-
value: CompressedBatchEntry.encode(message).finish()
|
|
1829
|
-
};
|
|
1830
|
-
}
|
|
1831
|
-
};
|
|
1832
|
-
GlobalDecoderRegistry.register(CompressedBatchEntry.typeUrl, CompressedBatchEntry);
|
|
1833
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(CompressedBatchEntry.aminoType, CompressedBatchEntry.typeUrl);
|
|
1834
|
-
function createBaseCompressedExistenceProof(): CompressedExistenceProof {
|
|
1835
|
-
return {
|
|
1836
|
-
key: new Uint8Array(),
|
|
1837
|
-
value: new Uint8Array(),
|
|
1838
|
-
leaf: undefined,
|
|
1839
|
-
path: []
|
|
1840
|
-
};
|
|
1841
|
-
}
|
|
1842
|
-
export const CompressedExistenceProof = {
|
|
1843
|
-
typeUrl: "/cosmos.ics23.v1.CompressedExistenceProof",
|
|
1844
|
-
aminoType: "cosmos-sdk/CompressedExistenceProof",
|
|
1845
|
-
is(o: any): o is CompressedExistenceProof {
|
|
1846
|
-
return o && (o.$typeUrl === CompressedExistenceProof.typeUrl || (o.key instanceof Uint8Array || typeof o.key === "string") && (o.value instanceof Uint8Array || typeof o.value === "string") && Array.isArray(o.path) && (!o.path.length || typeof o.path[0] === "number"));
|
|
1847
|
-
},
|
|
1848
|
-
isAmino(o: any): o is CompressedExistenceProofAmino {
|
|
1849
|
-
return o && (o.$typeUrl === CompressedExistenceProof.typeUrl || (o.key instanceof Uint8Array || typeof o.key === "string") && (o.value instanceof Uint8Array || typeof o.value === "string") && Array.isArray(o.path) && (!o.path.length || typeof o.path[0] === "number"));
|
|
1850
|
-
},
|
|
1851
|
-
encode(message: CompressedExistenceProof, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1852
|
-
if (message.key.length !== 0) {
|
|
1853
|
-
writer.uint32(10).bytes(message.key);
|
|
1854
|
-
}
|
|
1855
|
-
if (message.value.length !== 0) {
|
|
1856
|
-
writer.uint32(18).bytes(message.value);
|
|
1857
|
-
}
|
|
1858
|
-
if (message.leaf !== undefined) {
|
|
1859
|
-
LeafOp.encode(message.leaf, writer.uint32(26).fork()).ldelim();
|
|
1860
|
-
}
|
|
1861
|
-
writer.uint32(34).fork();
|
|
1862
|
-
for (const v of message.path) {
|
|
1863
|
-
writer.int32(v);
|
|
1864
|
-
}
|
|
1865
|
-
writer.ldelim();
|
|
1866
|
-
return writer;
|
|
1867
|
-
},
|
|
1868
|
-
decode(input: BinaryReader | Uint8Array, length?: number): CompressedExistenceProof {
|
|
1869
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1870
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1871
|
-
const message = createBaseCompressedExistenceProof();
|
|
1872
|
-
while (reader.pos < end) {
|
|
1873
|
-
const tag = reader.uint32();
|
|
1874
|
-
switch (tag >>> 3) {
|
|
1875
|
-
case 1:
|
|
1876
|
-
message.key = reader.bytes();
|
|
1877
|
-
break;
|
|
1878
|
-
case 2:
|
|
1879
|
-
message.value = reader.bytes();
|
|
1880
|
-
break;
|
|
1881
|
-
case 3:
|
|
1882
|
-
message.leaf = LeafOp.decode(reader, reader.uint32());
|
|
1883
|
-
break;
|
|
1884
|
-
case 4:
|
|
1885
|
-
if ((tag & 7) === 2) {
|
|
1886
|
-
const end2 = reader.uint32() + reader.pos;
|
|
1887
|
-
while (reader.pos < end2) {
|
|
1888
|
-
message.path.push(reader.int32());
|
|
1889
|
-
}
|
|
1890
|
-
} else {
|
|
1891
|
-
message.path.push(reader.int32());
|
|
1892
|
-
}
|
|
1893
|
-
break;
|
|
1894
|
-
default:
|
|
1895
|
-
reader.skipType(tag & 7);
|
|
1896
|
-
break;
|
|
1897
|
-
}
|
|
1898
|
-
}
|
|
1899
|
-
return message;
|
|
1900
|
-
},
|
|
1901
|
-
fromPartial(object: DeepPartial<CompressedExistenceProof>): CompressedExistenceProof {
|
|
1902
|
-
const message = createBaseCompressedExistenceProof();
|
|
1903
|
-
message.key = object.key ?? new Uint8Array();
|
|
1904
|
-
message.value = object.value ?? new Uint8Array();
|
|
1905
|
-
message.leaf = object.leaf !== undefined && object.leaf !== null ? LeafOp.fromPartial(object.leaf) : undefined;
|
|
1906
|
-
message.path = object.path?.map(e => e) || [];
|
|
1907
|
-
return message;
|
|
1908
|
-
},
|
|
1909
|
-
fromAmino(object: CompressedExistenceProofAmino): CompressedExistenceProof {
|
|
1910
|
-
const message = createBaseCompressedExistenceProof();
|
|
1911
|
-
if (object.key !== undefined && object.key !== null) {
|
|
1912
|
-
message.key = bytesFromBase64(object.key);
|
|
1913
|
-
}
|
|
1914
|
-
if (object.value !== undefined && object.value !== null) {
|
|
1915
|
-
message.value = bytesFromBase64(object.value);
|
|
1916
|
-
}
|
|
1917
|
-
if (object.leaf !== undefined && object.leaf !== null) {
|
|
1918
|
-
message.leaf = LeafOp.fromAmino(object.leaf);
|
|
1919
|
-
}
|
|
1920
|
-
message.path = object.path?.map(e => e) || [];
|
|
1921
|
-
return message;
|
|
1922
|
-
},
|
|
1923
|
-
toAmino(message: CompressedExistenceProof): CompressedExistenceProofAmino {
|
|
1924
|
-
const obj: any = {};
|
|
1925
|
-
obj.key = message.key ? base64FromBytes(message.key) : undefined;
|
|
1926
|
-
obj.value = message.value ? base64FromBytes(message.value) : undefined;
|
|
1927
|
-
obj.leaf = message.leaf ? LeafOp.toAmino(message.leaf) : undefined;
|
|
1928
|
-
if (message.path) {
|
|
1929
|
-
obj.path = message.path.map(e => e);
|
|
1930
|
-
} else {
|
|
1931
|
-
obj.path = message.path;
|
|
1932
|
-
}
|
|
1933
|
-
return obj;
|
|
1934
|
-
},
|
|
1935
|
-
fromAminoMsg(object: CompressedExistenceProofAminoMsg): CompressedExistenceProof {
|
|
1936
|
-
return CompressedExistenceProof.fromAmino(object.value);
|
|
1937
|
-
},
|
|
1938
|
-
toAminoMsg(message: CompressedExistenceProof): CompressedExistenceProofAminoMsg {
|
|
1939
|
-
return {
|
|
1940
|
-
type: "cosmos-sdk/CompressedExistenceProof",
|
|
1941
|
-
value: CompressedExistenceProof.toAmino(message)
|
|
1942
|
-
};
|
|
1943
|
-
},
|
|
1944
|
-
fromProtoMsg(message: CompressedExistenceProofProtoMsg): CompressedExistenceProof {
|
|
1945
|
-
return CompressedExistenceProof.decode(message.value);
|
|
1946
|
-
},
|
|
1947
|
-
toProto(message: CompressedExistenceProof): Uint8Array {
|
|
1948
|
-
return CompressedExistenceProof.encode(message).finish();
|
|
1949
|
-
},
|
|
1950
|
-
toProtoMsg(message: CompressedExistenceProof): CompressedExistenceProofProtoMsg {
|
|
1951
|
-
return {
|
|
1952
|
-
typeUrl: "/cosmos.ics23.v1.CompressedExistenceProof",
|
|
1953
|
-
value: CompressedExistenceProof.encode(message).finish()
|
|
1954
|
-
};
|
|
1955
|
-
}
|
|
1956
|
-
};
|
|
1957
|
-
GlobalDecoderRegistry.register(CompressedExistenceProof.typeUrl, CompressedExistenceProof);
|
|
1958
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(CompressedExistenceProof.aminoType, CompressedExistenceProof.typeUrl);
|
|
1959
|
-
function createBaseCompressedNonExistenceProof(): CompressedNonExistenceProof {
|
|
1960
|
-
return {
|
|
1961
|
-
key: new Uint8Array(),
|
|
1962
|
-
left: undefined,
|
|
1963
|
-
right: undefined
|
|
1964
|
-
};
|
|
1965
|
-
}
|
|
1966
|
-
export const CompressedNonExistenceProof = {
|
|
1967
|
-
typeUrl: "/cosmos.ics23.v1.CompressedNonExistenceProof",
|
|
1968
|
-
aminoType: "cosmos-sdk/CompressedNonExistenceProof",
|
|
1969
|
-
is(o: any): o is CompressedNonExistenceProof {
|
|
1970
|
-
return o && (o.$typeUrl === CompressedNonExistenceProof.typeUrl || o.key instanceof Uint8Array || typeof o.key === "string");
|
|
1971
|
-
},
|
|
1972
|
-
isAmino(o: any): o is CompressedNonExistenceProofAmino {
|
|
1973
|
-
return o && (o.$typeUrl === CompressedNonExistenceProof.typeUrl || o.key instanceof Uint8Array || typeof o.key === "string");
|
|
1974
|
-
},
|
|
1975
|
-
encode(message: CompressedNonExistenceProof, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1976
|
-
if (message.key.length !== 0) {
|
|
1977
|
-
writer.uint32(10).bytes(message.key);
|
|
1978
|
-
}
|
|
1979
|
-
if (message.left !== undefined) {
|
|
1980
|
-
CompressedExistenceProof.encode(message.left, writer.uint32(18).fork()).ldelim();
|
|
1981
|
-
}
|
|
1982
|
-
if (message.right !== undefined) {
|
|
1983
|
-
CompressedExistenceProof.encode(message.right, writer.uint32(26).fork()).ldelim();
|
|
1984
|
-
}
|
|
1985
|
-
return writer;
|
|
1986
|
-
},
|
|
1987
|
-
decode(input: BinaryReader | Uint8Array, length?: number): CompressedNonExistenceProof {
|
|
1988
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1989
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1990
|
-
const message = createBaseCompressedNonExistenceProof();
|
|
1991
|
-
while (reader.pos < end) {
|
|
1992
|
-
const tag = reader.uint32();
|
|
1993
|
-
switch (tag >>> 3) {
|
|
1994
|
-
case 1:
|
|
1995
|
-
message.key = reader.bytes();
|
|
1996
|
-
break;
|
|
1997
|
-
case 2:
|
|
1998
|
-
message.left = CompressedExistenceProof.decode(reader, reader.uint32());
|
|
1999
|
-
break;
|
|
2000
|
-
case 3:
|
|
2001
|
-
message.right = CompressedExistenceProof.decode(reader, reader.uint32());
|
|
2002
|
-
break;
|
|
2003
|
-
default:
|
|
2004
|
-
reader.skipType(tag & 7);
|
|
2005
|
-
break;
|
|
2006
|
-
}
|
|
2007
|
-
}
|
|
2008
|
-
return message;
|
|
2009
|
-
},
|
|
2010
|
-
fromPartial(object: DeepPartial<CompressedNonExistenceProof>): CompressedNonExistenceProof {
|
|
2011
|
-
const message = createBaseCompressedNonExistenceProof();
|
|
2012
|
-
message.key = object.key ?? new Uint8Array();
|
|
2013
|
-
message.left = object.left !== undefined && object.left !== null ? CompressedExistenceProof.fromPartial(object.left) : undefined;
|
|
2014
|
-
message.right = object.right !== undefined && object.right !== null ? CompressedExistenceProof.fromPartial(object.right) : undefined;
|
|
2015
|
-
return message;
|
|
2016
|
-
},
|
|
2017
|
-
fromAmino(object: CompressedNonExistenceProofAmino): CompressedNonExistenceProof {
|
|
2018
|
-
const message = createBaseCompressedNonExistenceProof();
|
|
2019
|
-
if (object.key !== undefined && object.key !== null) {
|
|
2020
|
-
message.key = bytesFromBase64(object.key);
|
|
2021
|
-
}
|
|
2022
|
-
if (object.left !== undefined && object.left !== null) {
|
|
2023
|
-
message.left = CompressedExistenceProof.fromAmino(object.left);
|
|
2024
|
-
}
|
|
2025
|
-
if (object.right !== undefined && object.right !== null) {
|
|
2026
|
-
message.right = CompressedExistenceProof.fromAmino(object.right);
|
|
2027
|
-
}
|
|
2028
|
-
return message;
|
|
2029
|
-
},
|
|
2030
|
-
toAmino(message: CompressedNonExistenceProof): CompressedNonExistenceProofAmino {
|
|
2031
|
-
const obj: any = {};
|
|
2032
|
-
obj.key = message.key ? base64FromBytes(message.key) : undefined;
|
|
2033
|
-
obj.left = message.left ? CompressedExistenceProof.toAmino(message.left) : undefined;
|
|
2034
|
-
obj.right = message.right ? CompressedExistenceProof.toAmino(message.right) : undefined;
|
|
2035
|
-
return obj;
|
|
2036
|
-
},
|
|
2037
|
-
fromAminoMsg(object: CompressedNonExistenceProofAminoMsg): CompressedNonExistenceProof {
|
|
2038
|
-
return CompressedNonExistenceProof.fromAmino(object.value);
|
|
2039
|
-
},
|
|
2040
|
-
toAminoMsg(message: CompressedNonExistenceProof): CompressedNonExistenceProofAminoMsg {
|
|
2041
|
-
return {
|
|
2042
|
-
type: "cosmos-sdk/CompressedNonExistenceProof",
|
|
2043
|
-
value: CompressedNonExistenceProof.toAmino(message)
|
|
2044
|
-
};
|
|
2045
|
-
},
|
|
2046
|
-
fromProtoMsg(message: CompressedNonExistenceProofProtoMsg): CompressedNonExistenceProof {
|
|
2047
|
-
return CompressedNonExistenceProof.decode(message.value);
|
|
2048
|
-
},
|
|
2049
|
-
toProto(message: CompressedNonExistenceProof): Uint8Array {
|
|
2050
|
-
return CompressedNonExistenceProof.encode(message).finish();
|
|
2051
|
-
},
|
|
2052
|
-
toProtoMsg(message: CompressedNonExistenceProof): CompressedNonExistenceProofProtoMsg {
|
|
2053
|
-
return {
|
|
2054
|
-
typeUrl: "/cosmos.ics23.v1.CompressedNonExistenceProof",
|
|
2055
|
-
value: CompressedNonExistenceProof.encode(message).finish()
|
|
2056
|
-
};
|
|
2057
|
-
}
|
|
2058
|
-
};
|
|
2059
|
-
GlobalDecoderRegistry.register(CompressedNonExistenceProof.typeUrl, CompressedNonExistenceProof);
|
|
2060
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(CompressedNonExistenceProof.aminoType, CompressedNonExistenceProof.typeUrl);
|