example-js-sdk 0.0.1
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/README.md +89 -0
- package/lib/CarbonSDK.d.ts +145 -0
- package/lib/CarbonSDK.js +496 -0
- package/lib/clients/BatchQueryClient.d.ts +26 -0
- package/lib/clients/BatchQueryClient.js +88 -0
- package/lib/clients/BlockchainClient.d.ts +16 -0
- package/lib/clients/BlockchainClient.js +19 -0
- package/lib/clients/CarbonQueryClient.d.ts +108 -0
- package/lib/clients/CarbonQueryClient.js +109 -0
- package/lib/clients/ETHClient.d.ts +101 -0
- package/lib/clients/ETHClient.js +344 -0
- package/lib/clients/GasFee.d.ts +12 -0
- package/lib/clients/GasFee.js +30 -0
- package/lib/clients/GrpcQueryClient.d.ts +22 -0
- package/lib/clients/GrpcQueryClient.js +60 -0
- package/lib/clients/HydrogenClient.d.ts +28 -0
- package/lib/clients/HydrogenClient.js +225 -0
- package/lib/clients/InsightsQueryClient.d.ts +77 -0
- package/lib/clients/InsightsQueryClient.js +496 -0
- package/lib/clients/TokenClient.d.ts +93 -0
- package/lib/clients/TokenClient.js +715 -0
- package/lib/clients/index.d.ts +7 -0
- package/lib/clients/index.js +20 -0
- package/lib/codec/alliance/alliance/alliance.d.ts +72 -0
- package/lib/codec/alliance/alliance/alliance.js +369 -0
- package/lib/codec/alliance/alliance/delegations.d.ts +67 -0
- package/lib/codec/alliance/alliance/delegations.js +373 -0
- package/lib/codec/alliance/alliance/events.d.ts +76 -0
- package/lib/codec/alliance/alliance/events.js +451 -0
- package/lib/codec/alliance/alliance/export.d.ts +10 -0
- package/lib/codec/alliance/alliance/export.js +84 -0
- package/lib/codec/alliance/alliance/genesis.d.ts +80 -0
- package/lib/codec/alliance/alliance/genesis.js +503 -0
- package/lib/codec/alliance/alliance/gov.d.ts +84 -0
- package/lib/codec/alliance/alliance/gov.js +403 -0
- package/lib/codec/alliance/alliance/params.d.ts +37 -0
- package/lib/codec/alliance/alliance/params.js +204 -0
- package/lib/codec/alliance/alliance/query.d.ts +442 -0
- package/lib/codec/alliance/alliance/query.js +2036 -0
- package/lib/codec/alliance/alliance/redelegations.d.ts +60 -0
- package/lib/codec/alliance/alliance/redelegations.js +290 -0
- package/lib/codec/alliance/alliance/tx.d.ts +250 -0
- package/lib/codec/alliance/alliance/tx.js +1096 -0
- package/lib/codec/alliance/alliance/unbonding.d.ts +27 -0
- package/lib/codec/alliance/alliance/unbonding.js +128 -0
- package/lib/codec/amino/amino.d.ts +1 -0
- package/lib/codec/amino/amino.js +5 -0
- package/lib/codec/carbon-models.d.ts +23 -0
- package/lib/codec/carbon-models.js +59 -0
- package/lib/codec/cosmos/app/runtime/v1alpha1/module.d.ts +86 -0
- package/lib/codec/cosmos/app/runtime/v1alpha1/module.js +279 -0
- package/lib/codec/cosmos/app/v1alpha1/config.d.ts +86 -0
- package/lib/codec/cosmos/app/v1alpha1/config.js +237 -0
- package/lib/codec/cosmos/app/v1alpha1/module.d.ts +112 -0
- package/lib/codec/cosmos/app/v1alpha1/module.js +215 -0
- package/lib/codec/cosmos/app/v1alpha1/query.d.ts +49 -0
- package/lib/codec/cosmos/app/v1alpha1/query.js +118 -0
- package/lib/codec/cosmos/auth/module/v1/module.d.ts +43 -0
- package/lib/codec/cosmos/auth/module/v1/module.js +166 -0
- package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +80 -0
- package/lib/codec/cosmos/auth/v1beta1/auth.js +424 -0
- package/lib/codec/cosmos/auth/v1beta1/export.d.ts +3 -0
- package/lib/codec/cosmos/auth/v1beta1/export.js +32 -0
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +25 -0
- package/lib/codec/cosmos/auth/v1beta1/genesis.js +88 -0
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +402 -0
- package/lib/codec/cosmos/auth/v1beta1/query.js +1110 -0
- package/lib/codec/cosmos/auth/v1beta1/tx.d.ts +69 -0
- package/lib/codec/cosmos/auth/v1beta1/tx.js +132 -0
- package/lib/codec/cosmos/authz/module/v1/module.d.ts +19 -0
- package/lib/codec/cosmos/authz/module/v1/module.js +51 -0
- package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +78 -0
- package/lib/codec/cosmos/authz/v1beta1/authz.js +298 -0
- package/lib/codec/cosmos/authz/v1beta1/event.d.ts +43 -0
- package/lib/codec/cosmos/authz/v1beta1/event.js +165 -0
- package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +22 -0
- package/lib/codec/cosmos/authz/v1beta1/genesis.js +72 -0
- package/lib/codec/cosmos/authz/v1beta1/query.d.ts +131 -0
- package/lib/codec/cosmos/authz/v1beta1/query.js +473 -0
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +135 -0
- package/lib/codec/cosmos/authz/v1beta1/tx.js +426 -0
- package/lib/codec/cosmos/autocli/v1/options.d.ts +191 -0
- package/lib/codec/cosmos/autocli/v1/options.js +737 -0
- package/lib/codec/cosmos/autocli/v1/query.d.ts +66 -0
- package/lib/codec/cosmos/autocli/v1/query.js +203 -0
- package/lib/codec/cosmos/bank/module/v1/module.d.ts +34 -0
- package/lib/codec/cosmos/bank/module/v1/module.js +105 -0
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +33 -0
- package/lib/codec/cosmos/bank/v1beta1/authz.js +87 -0
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +167 -0
- package/lib/codec/cosmos/bank/v1beta1/bank.js +554 -0
- package/lib/codec/cosmos/bank/v1beta1/export.d.ts +5 -0
- package/lib/codec/cosmos/bank/v1beta1/export.js +52 -0
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +56 -0
- package/lib/codec/cosmos/bank/v1beta1/genesis.js +210 -0
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +587 -0
- package/lib/codec/cosmos/bank/v1beta1/query.js +1710 -0
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +184 -0
- package/lib/codec/cosmos/bank/v1beta1/tx.js +499 -0
- package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +269 -0
- package/lib/codec/cosmos/base/abci/v1beta1/abci.js +1109 -0
- package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +85 -0
- package/lib/codec/cosmos/base/node/v1beta1/query.js +374 -0
- package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts +87 -0
- package/lib/codec/cosmos/base/query/v1beta1/pagination.js +221 -0
- package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts +88 -0
- package/lib/codec/cosmos/base/reflection/v1beta1/reflection.js +233 -0
- package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts +443 -0
- package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.js +1537 -0
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +343 -0
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +1530 -0
- package/lib/codec/cosmos/base/tendermint/v1beta1/types.d.ts +69 -0
- package/lib/codec/cosmos/base/tendermint/v1beta1/types.js +417 -0
- package/lib/codec/cosmos/base/v1beta1/coin.d.ts +74 -0
- package/lib/codec/cosmos/base/v1beta1/coin.js +237 -0
- package/lib/codec/cosmos/circuit/module/v1/module.d.ts +21 -0
- package/lib/codec/cosmos/circuit/module/v1/module.js +65 -0
- package/lib/codec/cosmos/circuit/v1/query.d.ts +106 -0
- package/lib/codec/cosmos/circuit/v1/query.js +356 -0
- package/lib/codec/cosmos/circuit/v1/tx.d.ts +137 -0
- package/lib/codec/cosmos/circuit/v1/tx.js +398 -0
- package/lib/codec/cosmos/circuit/v1/types.d.ts +84 -0
- package/lib/codec/cosmos/circuit/v1/types.js +289 -0
- package/lib/codec/cosmos/consensus/module/v1/module.d.ts +21 -0
- package/lib/codec/cosmos/consensus/module/v1/module.js +65 -0
- package/lib/codec/cosmos/consensus/v1/query.d.ts +54 -0
- package/lib/codec/cosmos/consensus/v1/query.js +118 -0
- package/lib/codec/cosmos/consensus/v1/tx.d.ts +70 -0
- package/lib/codec/cosmos/consensus/v1/tx.js +176 -0
- package/lib/codec/cosmos/crisis/module/v1/module.d.ts +23 -0
- package/lib/codec/cosmos/crisis/module/v1/module.js +79 -0
- package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +25 -0
- package/lib/codec/cosmos/crisis/v1beta1/genesis.js +69 -0
- package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +96 -0
- package/lib/codec/cosmos/crisis/v1beta1/tx.js +250 -0
- package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +41 -0
- package/lib/codec/cosmos/crypto/ed25519/keys.js +155 -0
- package/lib/codec/cosmos/crypto/hd/v1/hd.d.ts +33 -0
- package/lib/codec/cosmos/crypto/hd/v1/hd.js +115 -0
- package/lib/codec/cosmos/crypto/keyring/v1/record.d.ts +83 -0
- package/lib/codec/cosmos/crypto/keyring/v1/record.js +314 -0
- package/lib/codec/cosmos/crypto/multisig/keys.d.ts +26 -0
- package/lib/codec/cosmos/crypto/multisig/keys.js +85 -0
- package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts +42 -0
- package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.js +175 -0
- package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts +38 -0
- package/lib/codec/cosmos/crypto/secp256k1/keys.js +155 -0
- package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts +38 -0
- package/lib/codec/cosmos/crypto/secp256r1/keys.js +155 -0
- package/lib/codec/cosmos/distribution/module/v1/module.d.ts +22 -0
- package/lib/codec/cosmos/distribution/module/v1/module.js +79 -0
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +237 -0
- package/lib/codec/cosmos/distribution/v1beta1/distribution.js +899 -0
- package/lib/codec/cosmos/distribution/v1beta1/export.d.ts +4 -0
- package/lib/codec/cosmos/distribution/v1beta1/export.js +63 -0
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +164 -0
- package/lib/codec/cosmos/distribution/v1beta1/genesis.js +761 -0
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +409 -0
- package/lib/codec/cosmos/distribution/v1beta1/query.js +1291 -0
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +304 -0
- package/lib/codec/cosmos/distribution/v1beta1/tx.js +820 -0
- package/lib/codec/cosmos/evidence/module/v1/module.d.ts +19 -0
- package/lib/codec/cosmos/evidence/module/v1/module.js +51 -0
- package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +30 -0
- package/lib/codec/cosmos/evidence/v1beta1/evidence.js +130 -0
- package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts +22 -0
- package/lib/codec/cosmos/evidence/v1beta1/genesis.js +68 -0
- package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +100 -0
- package/lib/codec/cosmos/evidence/v1beta1/query.js +312 -0
- package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +59 -0
- package/lib/codec/cosmos/evidence/v1beta1/tx.js +184 -0
- package/lib/codec/cosmos/feegrant/module/v1/module.d.ts +19 -0
- package/lib/codec/cosmos/feegrant/module/v1/module.js +51 -0
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +100 -0
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +373 -0
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +22 -0
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +70 -0
- package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +131 -0
- package/lib/codec/cosmos/feegrant/v1beta1/query.js +427 -0
- package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +131 -0
- package/lib/codec/cosmos/feegrant/v1beta1/tx.js +340 -0
- package/lib/codec/cosmos/genutil/module/v1/module.d.ts +19 -0
- package/lib/codec/cosmos/genutil/module/v1/module.js +51 -0
- package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts +21 -0
- package/lib/codec/cosmos/genutil/v1beta1/genesis.js +107 -0
- package/lib/codec/cosmos/gov/module/v1/module.d.ts +26 -0
- package/lib/codec/cosmos/gov/module/v1/module.js +81 -0
- package/lib/codec/cosmos/gov/v1/export.d.ts +3 -0
- package/lib/codec/cosmos/gov/v1/export.js +53 -0
- package/lib/codec/cosmos/gov/v1/genesis.d.ts +65 -0
- package/lib/codec/cosmos/gov/v1/genesis.js +203 -0
- package/lib/codec/cosmos/gov/v1/gov.d.ts +354 -0
- package/lib/codec/cosmos/gov/v1/gov.js +1221 -0
- package/lib/codec/cosmos/gov/v1/query.d.ts +333 -0
- package/lib/codec/cosmos/gov/v1/query.js +1169 -0
- package/lib/codec/cosmos/gov/v1/tx.d.ts +308 -0
- package/lib/codec/cosmos/gov/v1/tx.js +995 -0
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +34 -0
- package/lib/codec/cosmos/gov/v1beta1/genesis.js +175 -0
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +255 -0
- package/lib/codec/cosmos/gov/v1beta1/gov.js +971 -0
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +284 -0
- package/lib/codec/cosmos/gov/v1beta1/query.js +1064 -0
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +165 -0
- package/lib/codec/cosmos/gov/v1beta1/tx.js +533 -0
- package/lib/codec/cosmos/group/module/v1/module.d.ts +30 -0
- package/lib/codec/cosmos/group/module/v1/module.js +85 -0
- package/lib/codec/cosmos/group/v1/events.d.ts +165 -0
- package/lib/codec/cosmos/group/v1/events.js +647 -0
- package/lib/codec/cosmos/group/v1/genesis.d.ts +46 -0
- package/lib/codec/cosmos/group/v1/genesis.js +196 -0
- package/lib/codec/cosmos/group/v1/query.d.ts +484 -0
- package/lib/codec/cosmos/group/v1/query.js +1829 -0
- package/lib/codec/cosmos/group/v1/tx.d.ts +526 -0
- package/lib/codec/cosmos/group/v1/tx.js +1927 -0
- package/lib/codec/cosmos/group/v1/types.d.ts +393 -0
- package/lib/codec/cosmos/group/v1/types.js +1329 -0
- package/lib/codec/cosmos/ics23/v1/proofs.d.ts +342 -0
- package/lib/codec/cosmos/ics23/v1/proofs.js +1353 -0
- package/lib/codec/cosmos/mint/module/v1/module.d.ts +22 -0
- package/lib/codec/cosmos/mint/module/v1/module.js +79 -0
- package/lib/codec/cosmos/mint/v1beta1/export.d.ts +3 -0
- package/lib/codec/cosmos/mint/v1beta1/export.js +16 -0
- package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +24 -0
- package/lib/codec/cosmos/mint/v1beta1/genesis.js +84 -0
- package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +46 -0
- package/lib/codec/cosmos/mint/v1beta1/mint.js +198 -0
- package/lib/codec/cosmos/mint/v1beta1/query.d.ts +112 -0
- package/lib/codec/cosmos/mint/v1beta1/query.js +344 -0
- package/lib/codec/cosmos/mint/v1beta1/tx.d.ts +69 -0
- package/lib/codec/cosmos/mint/v1beta1/tx.js +132 -0
- package/lib/codec/cosmos/msg/textual/v1/textual.d.ts +1 -0
- package/lib/codec/cosmos/msg/textual/v1/textual.js +5 -0
- package/lib/codec/cosmos/msg/v1/msg.d.ts +1 -0
- package/lib/codec/cosmos/msg/v1/msg.js +5 -0
- package/lib/codec/cosmos/nft/module/v1/module.d.ts +19 -0
- package/lib/codec/cosmos/nft/module/v1/module.js +51 -0
- package/lib/codec/cosmos/nft/v1beta1/event.d.ts +61 -0
- package/lib/codec/cosmos/nft/v1beta1/event.js +251 -0
- package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +39 -0
- package/lib/codec/cosmos/nft/v1beta1/genesis.js +157 -0
- package/lib/codec/cosmos/nft/v1beta1/nft.d.ts +55 -0
- package/lib/codec/cosmos/nft/v1beta1/nft.js +238 -0
- package/lib/codec/cosmos/nft/v1beta1/query.d.ts +243 -0
- package/lib/codec/cosmos/nft/v1beta1/query.js +862 -0
- package/lib/codec/cosmos/nft/v1beta1/tx.d.ts +54 -0
- package/lib/codec/cosmos/nft/v1beta1/tx.js +153 -0
- package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +23 -0
- package/lib/codec/cosmos/orm/module/v1alpha1/module.js +51 -0
- package/lib/codec/cosmos/orm/query/v1alpha1/query.d.ts +183 -0
- package/lib/codec/cosmos/orm/query/v1alpha1/query.js +680 -0
- package/lib/codec/cosmos/orm/v1/orm.d.ts +130 -0
- package/lib/codec/cosmos/orm/v1/orm.js +283 -0
- package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +78 -0
- package/lib/codec/cosmos/orm/v1alpha1/schema.js +257 -0
- package/lib/codec/cosmos/params/module/v1/module.d.ts +19 -0
- package/lib/codec/cosmos/params/module/v1/module.js +51 -0
- package/lib/codec/cosmos/params/v1beta1/export.d.ts +2 -0
- package/lib/codec/cosmos/params/v1beta1/export.js +12 -0
- package/lib/codec/cosmos/params/v1beta1/params.d.ts +39 -0
- package/lib/codec/cosmos/params/v1beta1/params.js +170 -0
- package/lib/codec/cosmos/params/v1beta1/query.d.ts +114 -0
- package/lib/codec/cosmos/params/v1beta1/query.js +308 -0
- package/lib/codec/cosmos/query/v1/query.d.ts +1 -0
- package/lib/codec/cosmos/query/v1/query.js +5 -0
- package/lib/codec/cosmos/reflection/v1/reflection.d.ts +55 -0
- package/lib/codec/cosmos/reflection/v1/reflection.js +118 -0
- package/lib/codec/cosmos/slashing/module/v1/module.d.ts +21 -0
- package/lib/codec/cosmos/slashing/module/v1/module.js +65 -0
- package/lib/codec/cosmos/slashing/v1beta1/export.d.ts +4 -0
- package/lib/codec/cosmos/slashing/v1beta1/export.js +22 -0
- package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +80 -0
- package/lib/codec/cosmos/slashing/v1beta1/genesis.js +307 -0
- package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +119 -0
- package/lib/codec/cosmos/slashing/v1beta1/query.js +353 -0
- package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +61 -0
- package/lib/codec/cosmos/slashing/v1beta1/slashing.js +329 -0
- package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +99 -0
- package/lib/codec/cosmos/slashing/v1beta1/tx.js +223 -0
- package/lib/codec/cosmos/staking/module/v1/module.d.ts +31 -0
- package/lib/codec/cosmos/staking/module/v1/module.js +108 -0
- package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +70 -0
- package/lib/codec/cosmos/staking/v1beta1/authz.js +227 -0
- package/lib/codec/cosmos/staking/v1beta1/export.d.ts +5 -0
- package/lib/codec/cosmos/staking/v1beta1/export.js +84 -0
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +57 -0
- package/lib/codec/cosmos/staking/v1beta1/genesis.js +297 -0
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +556 -0
- package/lib/codec/cosmos/staking/v1beta1/query.js +1804 -0
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +448 -0
- package/lib/codec/cosmos/staking/v1beta1/staking.js +1924 -0
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +299 -0
- package/lib/codec/cosmos/staking/v1beta1/tx.js +1012 -0
- package/lib/codec/cosmos/store/internal/kv/v1beta1/kv.d.ts +33 -0
- package/lib/codec/cosmos/store/internal/kv/v1beta1/kv.js +174 -0
- package/lib/codec/cosmos/store/snapshots/v1/snapshot.d.ts +126 -0
- package/lib/codec/cosmos/store/snapshots/v1/snapshot.js +563 -0
- package/lib/codec/cosmos/store/streaming/abci/grpc.d.ts +79 -0
- package/lib/codec/cosmos/store/streaming/abci/grpc.js +261 -0
- package/lib/codec/cosmos/store/v1beta1/commit_info.d.ts +57 -0
- package/lib/codec/cosmos/store/v1beta1/commit_info.js +292 -0
- package/lib/codec/cosmos/store/v1beta1/listening.d.ts +50 -0
- package/lib/codec/cosmos/store/v1beta1/listening.js +236 -0
- package/lib/codec/cosmos/tx/config/v1/config.d.ts +29 -0
- package/lib/codec/cosmos/tx/config/v1/config.js +79 -0
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +152 -0
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +504 -0
- package/lib/codec/cosmos/tx/v1beta1/export.d.ts +2 -0
- package/lib/codec/cosmos/tx/v1beta1/export.js +43 -0
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +481 -0
- package/lib/codec/cosmos/tx/v1beta1/service.js +1357 -0
- package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +390 -0
- package/lib/codec/cosmos/tx/v1beta1/tx.js +1149 -0
- package/lib/codec/cosmos/upgrade/module/v1/module.d.ts +21 -0
- package/lib/codec/cosmos/upgrade/module/v1/module.js +65 -0
- package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +226 -0
- package/lib/codec/cosmos/upgrade/v1beta1/query.js +571 -0
- package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +104 -0
- package/lib/codec/cosmos/upgrade/v1beta1/tx.js +221 -0
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +118 -0
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.js +346 -0
- package/lib/codec/cosmos/vesting/module/v1/module.d.ts +19 -0
- package/lib/codec/cosmos/vesting/module/v1/module.js +51 -0
- package/lib/codec/cosmos/vesting/v1beta1/export.d.ts +2 -0
- package/lib/codec/cosmos/vesting/v1beta1/export.js +17 -0
- package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +147 -0
- package/lib/codec/cosmos/vesting/v1beta1/tx.js +434 -0
- package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +112 -0
- package/lib/codec/cosmos/vesting/v1beta1/vesting.js +481 -0
- package/lib/codec/cosmos-models.d.ts +10 -0
- package/lib/codec/cosmos-models.js +46 -0
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/export.d.ts +1 -0
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/export.js +6 -0
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +41 -0
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.js +155 -0
- package/lib/codec/ethermint/evm/v1/events.d.ts +76 -0
- package/lib/codec/ethermint/evm/v1/events.js +314 -0
- package/lib/codec/ethermint/evm/v1/evm.d.ts +247 -0
- package/lib/codec/ethermint/evm/v1/evm.js +1146 -0
- package/lib/codec/ethermint/evm/v1/export.d.ts +5 -0
- package/lib/codec/ethermint/evm/v1/export.js +53 -0
- package/lib/codec/ethermint/evm/v1/genesis.d.ts +45 -0
- package/lib/codec/ethermint/evm/v1/genesis.js +166 -0
- package/lib/codec/ethermint/evm/v1/query.d.ts +451 -0
- package/lib/codec/ethermint/evm/v1/query.js +1687 -0
- package/lib/codec/ethermint/evm/v1/tx.d.ts +230 -0
- package/lib/codec/ethermint/evm/v1/tx.js +954 -0
- package/lib/codec/ethermint/feemarket/v1/events.d.ts +36 -0
- package/lib/codec/ethermint/feemarket/v1/events.js +127 -0
- package/lib/codec/ethermint/feemarket/v1/export.d.ts +4 -0
- package/lib/codec/ethermint/feemarket/v1/export.js +18 -0
- package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +52 -0
- package/lib/codec/ethermint/feemarket/v1/feemarket.js +176 -0
- package/lib/codec/ethermint/feemarket/v1/genesis.d.ts +27 -0
- package/lib/codec/ethermint/feemarket/v1/genesis.js +84 -0
- package/lib/codec/ethermint/feemarket/v1/query.d.ts +109 -0
- package/lib/codec/ethermint/feemarket/v1/query.js +300 -0
- package/lib/codec/ethermint/feemarket/v1/tx.d.ts +60 -0
- package/lib/codec/ethermint/feemarket/v1/tx.js +132 -0
- package/lib/codec/ethermint/types/v1/account.d.ts +27 -0
- package/lib/codec/ethermint/types/v1/account.js +83 -0
- package/lib/codec/ethermint/types/v1/dynamic_fee.d.ts +21 -0
- package/lib/codec/ethermint/types/v1/dynamic_fee.js +65 -0
- package/lib/codec/ethermint/types/v1/export.d.ts +4 -0
- package/lib/codec/ethermint/types/v1/export.js +11 -0
- package/lib/codec/ethermint/types/v1/indexer.d.ts +42 -0
- package/lib/codec/ethermint/types/v1/indexer.js +154 -0
- package/lib/codec/ethermint/types/v1/web3.d.ts +37 -0
- package/lib/codec/ethermint/types/v1/web3.js +135 -0
- package/lib/codec/ethermint-models.d.ts +4 -0
- package/lib/codec/ethermint-models.js +40 -0
- package/lib/codec/google/protobuf/any.d.ts +138 -0
- package/lib/codec/google/protobuf/any.js +120 -0
- package/lib/codec/google/protobuf/descriptor.d.ts +1446 -0
- package/lib/codec/google/protobuf/descriptor.js +4811 -0
- package/lib/codec/google/protobuf/duration.d.ts +93 -0
- package/lib/codec/google/protobuf/duration.js +81 -0
- package/lib/codec/google/protobuf/empty.d.ts +27 -0
- package/lib/codec/google/protobuf/empty.js +51 -0
- package/lib/codec/google/protobuf/timestamp.d.ts +122 -0
- package/lib/codec/google/protobuf/timestamp.js +81 -0
- package/lib/codec/google/protobuf/wrappers.d.ts +161 -0
- package/lib/codec/google/protobuf/wrappers.js +490 -0
- package/lib/codec/ibc/applications/fee/v1/ack.d.ts +25 -0
- package/lib/codec/ibc/applications/fee/v1/ack.js +134 -0
- package/lib/codec/ibc/applications/fee/v1/fee.d.ts +72 -0
- package/lib/codec/ibc/applications/fee/v1/fee.js +311 -0
- package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +98 -0
- package/lib/codec/ibc/applications/fee/v1/genesis.js +433 -0
- package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +26 -0
- package/lib/codec/ibc/applications/fee/v1/metadata.js +79 -0
- package/lib/codec/ibc/applications/fee/v1/query.d.ts +341 -0
- package/lib/codec/ibc/applications/fee/v1/query.js +1293 -0
- package/lib/codec/ibc/applications/fee/v1/tx.d.ts +182 -0
- package/lib/codec/ibc/applications/fee/v1/tx.js +540 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +3 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +17 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +24 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.js +65 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +77 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.js +234 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +122 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +435 -0
- package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +85 -0
- package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.js +462 -0
- package/lib/codec/ibc/applications/interchain_accounts/host/export.d.ts +3 -0
- package/lib/codec/ibc/applications/interchain_accounts/host/export.js +11 -0
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.d.ts +26 -0
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.js +84 -0
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.d.ts +49 -0
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.js +118 -0
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/tx.d.ts +55 -0
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/tx.js +132 -0
- package/lib/codec/ibc/applications/interchain_accounts/v1/account.d.ts +22 -0
- package/lib/codec/ibc/applications/interchain_accounts/v1/account.js +83 -0
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.d.ts +3 -0
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.js +13 -0
- package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.d.ts +37 -0
- package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.js +127 -0
- package/lib/codec/ibc/applications/interchain_accounts/v1/packet.d.ts +48 -0
- package/lib/codec/ibc/applications/interchain_accounts/v1/packet.js +225 -0
- package/lib/codec/ibc/applications/transfer/v1/authz.d.ts +49 -0
- package/lib/codec/ibc/applications/transfer/v1/authz.js +188 -0
- package/lib/codec/ibc/applications/transfer/v1/export.d.ts +4 -0
- package/lib/codec/ibc/applications/transfer/v1/export.js +27 -0
- package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +29 -0
- package/lib/codec/ibc/applications/transfer/v1/genesis.js +117 -0
- package/lib/codec/ibc/applications/transfer/v1/query.d.ts +216 -0
- package/lib/codec/ibc/applications/transfer/v1/query.js +674 -0
- package/lib/codec/ibc/applications/transfer/v1/transfer.d.ts +55 -0
- package/lib/codec/ibc/applications/transfer/v1/transfer.js +141 -0
- package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +113 -0
- package/lib/codec/ibc/applications/transfer/v1/tx.js +339 -0
- package/lib/codec/ibc/applications/transfer/v2/export.d.ts +1 -0
- package/lib/codec/ibc/applications/transfer/v2/export.js +5 -0
- package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +33 -0
- package/lib/codec/ibc/applications/transfer/v2/packet.js +115 -0
- package/lib/codec/ibc/core/channel/v1/channel.d.ts +266 -0
- package/lib/codec/ibc/core/channel/v1/channel.js +1023 -0
- package/lib/codec/ibc/core/channel/v1/export.d.ts +5 -0
- package/lib/codec/ibc/core/channel/v1/export.js +103 -0
- package/lib/codec/ibc/core/channel/v1/genesis.d.ts +47 -0
- package/lib/codec/ibc/core/channel/v1/genesis.js +300 -0
- package/lib/codec/ibc/core/channel/v1/query.d.ts +724 -0
- package/lib/codec/ibc/core/channel/v1/query.js +2739 -0
- package/lib/codec/ibc/core/channel/v1/tx.d.ts +684 -0
- package/lib/codec/ibc/core/channel/v1/tx.js +3370 -0
- package/lib/codec/ibc/core/channel/v1/upgrade.d.ts +65 -0
- package/lib/codec/ibc/core/channel/v1/upgrade.js +242 -0
- package/lib/codec/ibc/core/client/v1/client.d.ts +168 -0
- package/lib/codec/ibc/core/client/v1/client.js +516 -0
- package/lib/codec/ibc/core/client/v1/export.d.ts +4 -0
- package/lib/codec/ibc/core/client/v1/export.js +48 -0
- package/lib/codec/ibc/core/client/v1/genesis.d.ts +70 -0
- package/lib/codec/ibc/core/client/v1/genesis.js +332 -0
- package/lib/codec/ibc/core/client/v1/query.d.ts +367 -0
- package/lib/codec/ibc/core/client/v1/query.js +1185 -0
- package/lib/codec/ibc/core/client/v1/tx.d.ts +281 -0
- package/lib/codec/ibc/core/client/v1/tx.js +946 -0
- package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +74 -0
- package/lib/codec/ibc/core/commitment/v1/commitment.js +262 -0
- package/lib/codec/ibc/core/commitment/v1/export.d.ts +1 -0
- package/lib/codec/ibc/core/commitment/v1/export.js +8 -0
- package/lib/codec/ibc/core/connection/v1/connection.d.ts +177 -0
- package/lib/codec/ibc/core/connection/v1/connection.js +621 -0
- package/lib/codec/ibc/core/connection/v1/export.d.ts +3 -0
- package/lib/codec/ibc/core/connection/v1/export.js +38 -0
- package/lib/codec/ibc/core/connection/v1/genesis.d.ts +25 -0
- package/lib/codec/ibc/core/connection/v1/genesis.js +126 -0
- package/lib/codec/ibc/core/connection/v1/query.d.ts +260 -0
- package/lib/codec/ibc/core/connection/v1/query.js +892 -0
- package/lib/codec/ibc/core/connection/v1/tx.d.ts +234 -0
- package/lib/codec/ibc/core/connection/v1/tx.js +975 -0
- package/lib/codec/ibc/core/types/v1/genesis.d.ts +28 -0
- package/lib/codec/ibc/core/types/v1/genesis.js +103 -0
- package/lib/codec/ibc/lightclients/localhost/v2/export.d.ts +1 -0
- package/lib/codec/ibc/lightclients/localhost/v2/export.js +5 -0
- package/lib/codec/ibc/lightclients/localhost/v2/localhost.d.ts +22 -0
- package/lib/codec/ibc/lightclients/localhost/v2/localhost.js +69 -0
- package/lib/codec/ibc/lightclients/solomachine/v2/export.d.ts +1 -0
- package/lib/codec/ibc/lightclients/solomachine/v2/export.js +23 -0
- package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.d.ts +314 -0
- package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.js +1359 -0
- package/lib/codec/ibc/lightclients/solomachine/v3/export.d.ts +1 -0
- package/lib/codec/ibc/lightclients/solomachine/v3/export.js +12 -0
- package/lib/codec/ibc/lightclients/solomachine/v3/solomachine.d.ts +154 -0
- package/lib/codec/ibc/lightclients/solomachine/v3/solomachine.js +719 -0
- package/lib/codec/ibc/lightclients/tendermint/v1/export.d.ts +1 -0
- package/lib/codec/ibc/lightclients/tendermint/v1/export.js +9 -0
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +152 -0
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.js +622 -0
- package/lib/codec/ibc/lightclients/wasm/v1/genesis.d.ts +34 -0
- package/lib/codec/ibc/lightclients/wasm/v1/genesis.js +161 -0
- package/lib/codec/ibc/lightclients/wasm/v1/query.d.ts +81 -0
- package/lib/codec/ibc/lightclients/wasm/v1/query.js +295 -0
- package/lib/codec/ibc/lightclients/wasm/v1/tx.d.ts +114 -0
- package/lib/codec/ibc/lightclients/wasm/v1/tx.js +419 -0
- package/lib/codec/ibc/lightclients/wasm/v1/wasm.d.ts +74 -0
- package/lib/codec/ibc/lightclients/wasm/v1/wasm.js +288 -0
- package/lib/codec/ibc-models.d.ts +13 -0
- package/lib/codec/ibc-models.js +49 -0
- package/lib/codec/index.d.ts +512 -0
- package/lib/codec/index.js +26760 -0
- package/lib/codec/mememax/orbix/adl/genesis.d.ts +19 -0
- package/lib/codec/mememax/orbix/adl/genesis.js +51 -0
- package/lib/codec/mememax/orbix/adl/query.d.ts +15 -0
- package/lib/codec/mememax/orbix/adl/query.js +12 -0
- package/lib/codec/mememax/orbix/adl/tx.d.ts +15 -0
- package/lib/codec/mememax/orbix/adl/tx.js +12 -0
- package/lib/codec/mememax/orbix/admin/export.d.ts +3 -0
- package/lib/codec/mememax/orbix/admin/export.js +22 -0
- package/lib/codec/mememax/orbix/admin/genesis.d.ts +24 -0
- package/lib/codec/mememax/orbix/admin/genesis.js +94 -0
- package/lib/codec/mememax/orbix/admin/params.d.ts +32 -0
- package/lib/codec/mememax/orbix/admin/params.js +114 -0
- package/lib/codec/mememax/orbix/admin/query.d.ts +97 -0
- package/lib/codec/mememax/orbix/admin/query.js +300 -0
- package/lib/codec/mememax/orbix/admin/tx.d.ts +134 -0
- package/lib/codec/mememax/orbix/admin/tx.js +419 -0
- package/lib/codec/mememax/orbix/bank/event.d.ts +70 -0
- package/lib/codec/mememax/orbix/bank/event.js +365 -0
- package/lib/codec/mememax/orbix/bank/export.d.ts +3 -0
- package/lib/codec/mememax/orbix/bank/export.js +21 -0
- package/lib/codec/mememax/orbix/bank/genesis.d.ts +20 -0
- package/lib/codec/mememax/orbix/bank/genesis.js +71 -0
- package/lib/codec/mememax/orbix/bank/query.d.ts +102 -0
- package/lib/codec/mememax/orbix/bank/query.js +492 -0
- package/lib/codec/mememax/orbix/bank/tx.d.ts +70 -0
- package/lib/codec/mememax/orbix/bank/tx.js +234 -0
- package/lib/codec/mememax/orbix/book/book.d.ts +61 -0
- package/lib/codec/mememax/orbix/book/book.js +350 -0
- package/lib/codec/mememax/orbix/book/event.d.ts +67 -0
- package/lib/codec/mememax/orbix/book/event.js +294 -0
- package/lib/codec/mememax/orbix/book/export.d.ts +4 -0
- package/lib/codec/mememax/orbix/book/export.js +26 -0
- package/lib/codec/mememax/orbix/book/genesis.d.ts +26 -0
- package/lib/codec/mememax/orbix/book/genesis.js +87 -0
- package/lib/codec/mememax/orbix/book/legacy.d.ts +23 -0
- package/lib/codec/mememax/orbix/book/legacy.js +125 -0
- package/lib/codec/mememax/orbix/book/query.d.ts +160 -0
- package/lib/codec/mememax/orbix/book/query.js +643 -0
- package/lib/codec/mememax/orbix/book/tx.d.ts +15 -0
- package/lib/codec/mememax/orbix/book/tx.js +12 -0
- package/lib/codec/mememax/orbix/bridge/bridge.d.ts +132 -0
- package/lib/codec/mememax/orbix/bridge/bridge.js +801 -0
- package/lib/codec/mememax/orbix/bridge/event.d.ts +316 -0
- package/lib/codec/mememax/orbix/bridge/event.js +1806 -0
- package/lib/codec/mememax/orbix/bridge/export.d.ts +6 -0
- package/lib/codec/mememax/orbix/bridge/export.js +122 -0
- package/lib/codec/mememax/orbix/bridge/genesis.d.ts +29 -0
- package/lib/codec/mememax/orbix/bridge/genesis.js +249 -0
- package/lib/codec/mememax/orbix/bridge/params.d.ts +71 -0
- package/lib/codec/mememax/orbix/bridge/params.js +376 -0
- package/lib/codec/mememax/orbix/bridge/pending_action.d.ts +102 -0
- package/lib/codec/mememax/orbix/bridge/pending_action.js +718 -0
- package/lib/codec/mememax/orbix/bridge/query.d.ts +365 -0
- package/lib/codec/mememax/orbix/bridge/query.js +1589 -0
- package/lib/codec/mememax/orbix/bridge/tx.d.ts +636 -0
- package/lib/codec/mememax/orbix/bridge/tx.js +3199 -0
- package/lib/codec/mememax/orbix/broker/amm.d.ts +49 -0
- package/lib/codec/mememax/orbix/broker/amm.js +278 -0
- package/lib/codec/mememax/orbix/broker/candlestick.d.ts +28 -0
- package/lib/codec/mememax/orbix/broker/candlestick.js +219 -0
- package/lib/codec/mememax/orbix/broker/event.d.ts +55 -0
- package/lib/codec/mememax/orbix/broker/event.js +474 -0
- package/lib/codec/mememax/orbix/broker/export.d.ts +7 -0
- package/lib/codec/mememax/orbix/broker/export.js +27 -0
- package/lib/codec/mememax/orbix/broker/genesis.d.ts +21 -0
- package/lib/codec/mememax/orbix/broker/genesis.js +70 -0
- package/lib/codec/mememax/orbix/broker/incoming_liquidations.d.ts +19 -0
- package/lib/codec/mememax/orbix/broker/incoming_liquidations.js +107 -0
- package/lib/codec/mememax/orbix/broker/pagination.d.ts +20 -0
- package/lib/codec/mememax/orbix/broker/pagination.js +79 -0
- package/lib/codec/mememax/orbix/broker/query.d.ts +116 -0
- package/lib/codec/mememax/orbix/broker/query.js +592 -0
- package/lib/codec/mememax/orbix/broker/tx.d.ts +59 -0
- package/lib/codec/mememax/orbix/broker/tx.js +198 -0
- package/lib/codec/mememax/orbix/coin/bridge.d.ts +25 -0
- package/lib/codec/mememax/orbix/coin/bridge.js +156 -0
- package/lib/codec/mememax/orbix/coin/event.d.ts +155 -0
- package/lib/codec/mememax/orbix/coin/event.js +787 -0
- package/lib/codec/mememax/orbix/coin/export.d.ts +9 -0
- package/lib/codec/mememax/orbix/coin/export.js +109 -0
- package/lib/codec/mememax/orbix/coin/genesis.d.ts +44 -0
- package/lib/codec/mememax/orbix/coin/genesis.js +239 -0
- package/lib/codec/mememax/orbix/coin/group.d.ts +56 -0
- package/lib/codec/mememax/orbix/coin/group.js +237 -0
- package/lib/codec/mememax/orbix/coin/params.d.ts +35 -0
- package/lib/codec/mememax/orbix/coin/params.js +148 -0
- package/lib/codec/mememax/orbix/coin/proposal.d.ts +22 -0
- package/lib/codec/mememax/orbix/coin/proposal.js +94 -0
- package/lib/codec/mememax/orbix/coin/query.d.ts +313 -0
- package/lib/codec/mememax/orbix/coin/query.js +1414 -0
- package/lib/codec/mememax/orbix/coin/token.d.ts +112 -0
- package/lib/codec/mememax/orbix/coin/token.js +714 -0
- package/lib/codec/mememax/orbix/coin/tx.d.ts +650 -0
- package/lib/codec/mememax/orbix/coin/tx.js +3318 -0
- package/lib/codec/mememax/orbix/evmbank/export.d.ts +2 -0
- package/lib/codec/mememax/orbix/evmbank/export.js +8 -0
- package/lib/codec/mememax/orbix/evmbank/genesis.d.ts +34 -0
- package/lib/codec/mememax/orbix/evmbank/genesis.js +173 -0
- package/lib/codec/mememax/orbix/evmbank/query.d.ts +45 -0
- package/lib/codec/mememax/orbix/evmbank/query.js +126 -0
- package/lib/codec/mememax/orbix/evmmerge/address.d.ts +20 -0
- package/lib/codec/mememax/orbix/evmmerge/address.js +79 -0
- package/lib/codec/mememax/orbix/evmmerge/event.d.ts +21 -0
- package/lib/codec/mememax/orbix/evmmerge/event.js +91 -0
- package/lib/codec/mememax/orbix/evmmerge/export.d.ts +6 -0
- package/lib/codec/mememax/orbix/evmmerge/export.js +20 -0
- package/lib/codec/mememax/orbix/evmmerge/genesis.d.ts +51 -0
- package/lib/codec/mememax/orbix/evmmerge/genesis.js +236 -0
- package/lib/codec/mememax/orbix/evmmerge/offchain.d.ts +26 -0
- package/lib/codec/mememax/orbix/evmmerge/offchain.js +121 -0
- package/lib/codec/mememax/orbix/evmmerge/query.d.ts +94 -0
- package/lib/codec/mememax/orbix/evmmerge/query.js +270 -0
- package/lib/codec/mememax/orbix/evmmerge/tx.d.ts +56 -0
- package/lib/codec/mememax/orbix/evmmerge/tx.js +142 -0
- package/lib/codec/mememax/orbix/fee/event.d.ts +21 -0
- package/lib/codec/mememax/orbix/fee/event.js +91 -0
- package/lib/codec/mememax/orbix/fee/export.d.ts +4 -0
- package/lib/codec/mememax/orbix/fee/export.js +27 -0
- package/lib/codec/mememax/orbix/fee/fee.d.ts +45 -0
- package/lib/codec/mememax/orbix/fee/fee.js +203 -0
- package/lib/codec/mememax/orbix/fee/genesis.d.ts +24 -0
- package/lib/codec/mememax/orbix/fee/genesis.js +89 -0
- package/lib/codec/mememax/orbix/fee/query.d.ts +125 -0
- package/lib/codec/mememax/orbix/fee/query.js +492 -0
- package/lib/codec/mememax/orbix/fee/tx.d.ts +119 -0
- package/lib/codec/mememax/orbix/fee/tx.js +454 -0
- package/lib/codec/mememax/orbix/insurance/event.d.ts +25 -0
- package/lib/codec/mememax/orbix/insurance/event.js +51 -0
- package/lib/codec/mememax/orbix/insurance/export.d.ts +5 -0
- package/lib/codec/mememax/orbix/insurance/export.js +26 -0
- package/lib/codec/mememax/orbix/insurance/fund.d.ts +51 -0
- package/lib/codec/mememax/orbix/insurance/fund.js +271 -0
- package/lib/codec/mememax/orbix/insurance/genesis.d.ts +27 -0
- package/lib/codec/mememax/orbix/insurance/genesis.js +90 -0
- package/lib/codec/mememax/orbix/insurance/params.d.ts +41 -0
- package/lib/codec/mememax/orbix/insurance/params.js +195 -0
- package/lib/codec/mememax/orbix/insurance/query.d.ts +121 -0
- package/lib/codec/mememax/orbix/insurance/query.js +453 -0
- package/lib/codec/mememax/orbix/insurance/tx.d.ts +76 -0
- package/lib/codec/mememax/orbix/insurance/tx.js +261 -0
- package/lib/codec/mememax/orbix/leverage/event.d.ts +22 -0
- package/lib/codec/mememax/orbix/leverage/event.js +103 -0
- package/lib/codec/mememax/orbix/leverage/export.d.ts +4 -0
- package/lib/codec/mememax/orbix/leverage/export.js +16 -0
- package/lib/codec/mememax/orbix/leverage/genesis.d.ts +25 -0
- package/lib/codec/mememax/orbix/leverage/genesis.js +72 -0
- package/lib/codec/mememax/orbix/leverage/leverage.d.ts +32 -0
- package/lib/codec/mememax/orbix/leverage/leverage.js +144 -0
- package/lib/codec/mememax/orbix/leverage/query.d.ts +77 -0
- package/lib/codec/mememax/orbix/leverage/query.js +257 -0
- package/lib/codec/mememax/orbix/leverage/tx.d.ts +48 -0
- package/lib/codec/mememax/orbix/leverage/tx.js +141 -0
- package/lib/codec/mememax/orbix/liquidation/event.d.ts +24 -0
- package/lib/codec/mememax/orbix/liquidation/event.js +159 -0
- package/lib/codec/mememax/orbix/liquidation/export.d.ts +5 -0
- package/lib/codec/mememax/orbix/liquidation/export.js +15 -0
- package/lib/codec/mememax/orbix/liquidation/genesis.d.ts +39 -0
- package/lib/codec/mememax/orbix/liquidation/genesis.js +153 -0
- package/lib/codec/mememax/orbix/liquidation/outstanding_position.d.ts +35 -0
- package/lib/codec/mememax/orbix/liquidation/outstanding_position.js +216 -0
- package/lib/codec/mememax/orbix/liquidation/query.d.ts +57 -0
- package/lib/codec/mememax/orbix/liquidation/query.js +256 -0
- package/lib/codec/mememax/orbix/liquidation/quote_changes.d.ts +23 -0
- package/lib/codec/mememax/orbix/liquidation/quote_changes.js +105 -0
- package/lib/codec/mememax/orbix/liquidation/tx.d.ts +15 -0
- package/lib/codec/mememax/orbix/liquidation/tx.js +12 -0
- package/lib/codec/mememax/orbix/market/event.d.ts +21 -0
- package/lib/codec/mememax/orbix/market/event.js +82 -0
- package/lib/codec/mememax/orbix/market/export.d.ts +7 -0
- package/lib/codec/mememax/orbix/market/export.js +71 -0
- package/lib/codec/mememax/orbix/market/fee.d.ts +134 -0
- package/lib/codec/mememax/orbix/market/fee.js +350 -0
- package/lib/codec/mememax/orbix/market/genesis.d.ts +33 -0
- package/lib/codec/mememax/orbix/market/genesis.js +164 -0
- package/lib/codec/mememax/orbix/market/market.d.ts +116 -0
- package/lib/codec/mememax/orbix/market/market.js +930 -0
- package/lib/codec/mememax/orbix/market/params.d.ts +81 -0
- package/lib/codec/mememax/orbix/market/params.js +754 -0
- package/lib/codec/mememax/orbix/market/proposal.d.ts +49 -0
- package/lib/codec/mememax/orbix/market/proposal.js +249 -0
- package/lib/codec/mememax/orbix/market/query.d.ts +267 -0
- package/lib/codec/mememax/orbix/market/query.js +1095 -0
- package/lib/codec/mememax/orbix/market/tx.d.ts +394 -0
- package/lib/codec/mememax/orbix/market/tx.js +1823 -0
- package/lib/codec/mememax/orbix/marketstats/export.d.ts +2 -0
- package/lib/codec/mememax/orbix/marketstats/export.js +8 -0
- package/lib/codec/mememax/orbix/marketstats/genesis.d.ts +19 -0
- package/lib/codec/mememax/orbix/marketstats/genesis.js +51 -0
- package/lib/codec/mememax/orbix/marketstats/marketstats.d.ts +32 -0
- package/lib/codec/mememax/orbix/marketstats/marketstats.js +263 -0
- package/lib/codec/mememax/orbix/marketstats/query.d.ts +45 -0
- package/lib/codec/mememax/orbix/marketstats/query.js +122 -0
- package/lib/codec/mememax/orbix/marketstats/tx.d.ts +15 -0
- package/lib/codec/mememax/orbix/marketstats/tx.js +12 -0
- package/lib/codec/mememax/orbix/misc/block.d.ts +22 -0
- package/lib/codec/mememax/orbix/misc/block.js +105 -0
- package/lib/codec/mememax/orbix/misc/export.d.ts +6 -0
- package/lib/codec/mememax/orbix/misc/export.js +29 -0
- package/lib/codec/mememax/orbix/misc/message.d.ts +25 -0
- package/lib/codec/mememax/orbix/misc/message.js +166 -0
- package/lib/codec/mememax/orbix/misc/message_type.d.ts +19 -0
- package/lib/codec/mememax/orbix/misc/message_type.js +65 -0
- package/lib/codec/mememax/orbix/misc/query.d.ts +209 -0
- package/lib/codec/mememax/orbix/misc/query.js +957 -0
- package/lib/codec/mememax/orbix/misc/trade.d.ts +29 -0
- package/lib/codec/mememax/orbix/misc/trade.js +228 -0
- package/lib/codec/mememax/orbix/misc/transaction.d.ts +47 -0
- package/lib/codec/mememax/orbix/misc/transaction.js +372 -0
- package/lib/codec/mememax/orbix/oracle/event.d.ts +39 -0
- package/lib/codec/mememax/orbix/oracle/event.js +229 -0
- package/lib/codec/mememax/orbix/oracle/export.d.ts +7 -0
- package/lib/codec/mememax/orbix/oracle/export.js +70 -0
- package/lib/codec/mememax/orbix/oracle/genesis.d.ts +31 -0
- package/lib/codec/mememax/orbix/oracle/genesis.js +172 -0
- package/lib/codec/mememax/orbix/oracle/historical.d.ts +47 -0
- package/lib/codec/mememax/orbix/oracle/historical.js +227 -0
- package/lib/codec/mememax/orbix/oracle/oracle.d.ts +42 -0
- package/lib/codec/mememax/orbix/oracle/oracle.js +284 -0
- package/lib/codec/mememax/orbix/oracle/params.d.ts +49 -0
- package/lib/codec/mememax/orbix/oracle/params.js +395 -0
- package/lib/codec/mememax/orbix/oracle/query.d.ts +363 -0
- package/lib/codec/mememax/orbix/oracle/query.js +1623 -0
- package/lib/codec/mememax/orbix/oracle/slashing.d.ts +35 -0
- package/lib/codec/mememax/orbix/oracle/slashing.js +189 -0
- package/lib/codec/mememax/orbix/oracle/tx.d.ts +333 -0
- package/lib/codec/mememax/orbix/oracle/tx.js +1627 -0
- package/lib/codec/mememax/orbix/order/event.d.ts +24 -0
- package/lib/codec/mememax/orbix/order/event.js +141 -0
- package/lib/codec/mememax/orbix/order/export.d.ts +6 -0
- package/lib/codec/mememax/orbix/order/export.js +46 -0
- package/lib/codec/mememax/orbix/order/genesis.d.ts +67 -0
- package/lib/codec/mememax/orbix/order/genesis.js +346 -0
- package/lib/codec/mememax/orbix/order/order.d.ts +98 -0
- package/lib/codec/mememax/orbix/order/order.js +812 -0
- package/lib/codec/mememax/orbix/order/params.d.ts +32 -0
- package/lib/codec/mememax/orbix/order/params.js +154 -0
- package/lib/codec/mememax/orbix/order/query.d.ts +188 -0
- package/lib/codec/mememax/orbix/order/query.js +748 -0
- package/lib/codec/mememax/orbix/order/tx.d.ts +228 -0
- package/lib/codec/mememax/orbix/order/tx.js +1010 -0
- package/lib/codec/mememax/orbix/perpspool/event.d.ts +182 -0
- package/lib/codec/mememax/orbix/perpspool/event.js +1158 -0
- package/lib/codec/mememax/orbix/perpspool/export.d.ts +9 -0
- package/lib/codec/mememax/orbix/perpspool/export.js +116 -0
- package/lib/codec/mememax/orbix/perpspool/genesis.d.ts +83 -0
- package/lib/codec/mememax/orbix/perpspool/genesis.js +506 -0
- package/lib/codec/mememax/orbix/perpspool/market.d.ts +139 -0
- package/lib/codec/mememax/orbix/perpspool/market.js +582 -0
- package/lib/codec/mememax/orbix/perpspool/params.d.ts +86 -0
- package/lib/codec/mememax/orbix/perpspool/params.js +765 -0
- package/lib/codec/mememax/orbix/perpspool/pool.d.ts +132 -0
- package/lib/codec/mememax/orbix/perpspool/pool.js +694 -0
- package/lib/codec/mememax/orbix/perpspool/query.d.ts +465 -0
- package/lib/codec/mememax/orbix/perpspool/query.js +2106 -0
- package/lib/codec/mememax/orbix/perpspool/quote.d.ts +52 -0
- package/lib/codec/mememax/orbix/perpspool/quote.js +238 -0
- package/lib/codec/mememax/orbix/perpspool/tx.d.ts +447 -0
- package/lib/codec/mememax/orbix/perpspool/tx.js +2030 -0
- package/lib/codec/mememax/orbix/perpspool/user_vault.d.ts +82 -0
- package/lib/codec/mememax/orbix/perpspool/user_vault.js +488 -0
- package/lib/codec/mememax/orbix/position/event.d.ts +38 -0
- package/lib/codec/mememax/orbix/position/event.js +221 -0
- package/lib/codec/mememax/orbix/position/export.d.ts +4 -0
- package/lib/codec/mememax/orbix/position/export.js +26 -0
- package/lib/codec/mememax/orbix/position/genesis.d.ts +25 -0
- package/lib/codec/mememax/orbix/position/genesis.js +72 -0
- package/lib/codec/mememax/orbix/position/position.d.ts +89 -0
- package/lib/codec/mememax/orbix/position/position.js +655 -0
- package/lib/codec/mememax/orbix/position/query.d.ts +148 -0
- package/lib/codec/mememax/orbix/position/query.js +625 -0
- package/lib/codec/mememax/orbix/position/tx.d.ts +47 -0
- package/lib/codec/mememax/orbix/position/tx.js +141 -0
- package/lib/codec/mememax/orbix/pricing/event.d.ts +91 -0
- package/lib/codec/mememax/orbix/pricing/event.js +430 -0
- package/lib/codec/mememax/orbix/pricing/export.d.ts +6 -0
- package/lib/codec/mememax/orbix/pricing/export.js +59 -0
- package/lib/codec/mememax/orbix/pricing/genesis.d.ts +28 -0
- package/lib/codec/mememax/orbix/pricing/genesis.js +105 -0
- package/lib/codec/mememax/orbix/pricing/legacy.d.ts +23 -0
- package/lib/codec/mememax/orbix/pricing/legacy.js +99 -0
- package/lib/codec/mememax/orbix/pricing/params.d.ts +41 -0
- package/lib/codec/mememax/orbix/pricing/params.js +293 -0
- package/lib/codec/mememax/orbix/pricing/pricing.d.ts +100 -0
- package/lib/codec/mememax/orbix/pricing/pricing.js +669 -0
- package/lib/codec/mememax/orbix/pricing/query.d.ts +252 -0
- package/lib/codec/mememax/orbix/pricing/query.js +1039 -0
- package/lib/codec/mememax/orbix/pricing/tx.d.ts +239 -0
- package/lib/codec/mememax/orbix/pricing/tx.js +916 -0
- package/lib/codec/mememax/orbix/sequence/export.d.ts +3 -0
- package/lib/codec/mememax/orbix/sequence/export.js +13 -0
- package/lib/codec/mememax/orbix/sequence/genesis.d.ts +32 -0
- package/lib/codec/mememax/orbix/sequence/genesis.js +136 -0
- package/lib/codec/mememax/orbix/sequence/query.d.ts +73 -0
- package/lib/codec/mememax/orbix/sequence/query.js +262 -0
- package/lib/codec/mememax/orbix/sequence/tx.d.ts +46 -0
- package/lib/codec/mememax/orbix/sequence/tx.js +155 -0
- package/lib/codec/mememax/orbix/subaccount/export.d.ts +5 -0
- package/lib/codec/mememax/orbix/subaccount/export.js +41 -0
- package/lib/codec/mememax/orbix/subaccount/genesis.d.ts +30 -0
- package/lib/codec/mememax/orbix/subaccount/genesis.js +128 -0
- package/lib/codec/mememax/orbix/subaccount/legacy.d.ts +20 -0
- package/lib/codec/mememax/orbix/subaccount/legacy.js +79 -0
- package/lib/codec/mememax/orbix/subaccount/params.d.ts +31 -0
- package/lib/codec/mememax/orbix/subaccount/params.js +134 -0
- package/lib/codec/mememax/orbix/subaccount/query.d.ts +275 -0
- package/lib/codec/mememax/orbix/subaccount/query.js +1197 -0
- package/lib/codec/mememax/orbix/subaccount/subaccount.d.ts +49 -0
- package/lib/codec/mememax/orbix/subaccount/subaccount.js +296 -0
- package/lib/codec/mememax/orbix/subaccount/tx.d.ts +145 -0
- package/lib/codec/mememax/orbix/subaccount/tx.js +519 -0
- package/lib/codec/oraclesvc/query.d.ts +23 -0
- package/lib/codec/oraclesvc/query.js +25 -0
- package/lib/codec/tendermint/abci/types.d.ts +867 -0
- package/lib/codec/tendermint/abci/types.js +4883 -0
- package/lib/codec/tendermint/crypto/keys.d.ts +21 -0
- package/lib/codec/tendermint/crypto/keys.js +121 -0
- package/lib/codec/tendermint/crypto/proof.d.ts +79 -0
- package/lib/codec/tendermint/crypto/proof.js +415 -0
- package/lib/codec/tendermint/libs/bits/types.d.ts +20 -0
- package/lib/codec/tendermint/libs/bits/types.js +93 -0
- package/lib/codec/tendermint/oracle/types.d.ts +96 -0
- package/lib/codec/tendermint/oracle/types.js +666 -0
- package/lib/codec/tendermint/p2p/types.d.ts +64 -0
- package/lib/codec/tendermint/p2p/types.js +416 -0
- package/lib/codec/tendermint/types/block.d.ts +24 -0
- package/lib/codec/tendermint/types/block.js +113 -0
- package/lib/codec/tendermint/types/evidence.d.ts +65 -0
- package/lib/codec/tendermint/types/evidence.js +402 -0
- package/lib/codec/tendermint/types/params.d.ts +148 -0
- package/lib/codec/tendermint/types/params.js +499 -0
- package/lib/codec/tendermint/types/types.d.ts +289 -0
- package/lib/codec/tendermint/types/types.js +1650 -0
- package/lib/codec/tendermint/types/validator.d.ts +62 -0
- package/lib/codec/tendermint/types/validator.js +353 -0
- package/lib/codec/tendermint/version/types.d.ts +42 -0
- package/lib/codec/tendermint/version/types.js +143 -0
- package/lib/constant/address.d.ts +3 -0
- package/lib/constant/address.js +5 -0
- package/lib/constant/eip6963Provider.d.ts +66 -0
- package/lib/constant/eip6963Provider.js +31 -0
- package/lib/constant/eip712.d.ts +46 -0
- package/lib/constant/eip712.js +106 -0
- package/lib/constant/generic.d.ts +24 -0
- package/lib/constant/generic.js +24 -0
- package/lib/constant/grant.d.ts +1 -0
- package/lib/constant/grant.js +4 -0
- package/lib/constant/ibc.d.ts +190 -0
- package/lib/constant/ibc.js +2145 -0
- package/lib/constant/index.d.ts +10 -0
- package/lib/constant/index.js +26 -0
- package/lib/constant/modules.d.ts +1 -0
- package/lib/constant/modules.js +2 -0
- package/lib/constant/network.d.ts +77 -0
- package/lib/constant/network.js +429 -0
- package/lib/constant/node.d.ts +5 -0
- package/lib/constant/node.js +80 -0
- package/lib/constant/token.d.ts +13 -0
- package/lib/constant/token.js +375 -0
- package/lib/constant/walletProvider.d.ts +10 -0
- package/lib/constant/walletProvider.js +15 -0
- package/lib/constant/web3Config.d.ts +23 -0
- package/lib/constant/web3Config.js +46 -0
- package/lib/eth/abis/axelarBridge.json +1150 -0
- package/lib/eth/abis/balanceReader.json +26 -0
- package/lib/eth/abis/bridgeEntrance.json +105 -0
- package/lib/eth/abis/erc20.json +222 -0
- package/lib/eth/abis/index.d.ts +9 -0
- package/lib/eth/abis/index.js +22 -0
- package/lib/eth/abis/keyStorage.json +44 -0
- package/lib/eth/abis/lockProxy.json +574 -0
- package/lib/eth/abis/nativeDepositer.json +167 -0
- package/lib/eth/abis/vault.json +119 -0
- package/lib/eth/index.d.ts +1 -0
- package/lib/eth/index.js +37 -0
- package/lib/hydrogen/feeQuote.d.ts +23 -0
- package/lib/hydrogen/feeQuote.js +2 -0
- package/lib/hydrogen/index.d.ts +3 -0
- package/lib/hydrogen/index.js +19 -0
- package/lib/hydrogen/relays.d.ts +34 -0
- package/lib/hydrogen/relays.js +2 -0
- package/lib/hydrogen/stats.d.ts +26 -0
- package/lib/hydrogen/stats.js +2 -0
- package/lib/hydrogen/transfer.d.ts +159 -0
- package/lib/hydrogen/transfer.js +10 -0
- package/lib/index.d.ts +12 -0
- package/lib/index.js +69 -0
- package/lib/insights/alliances.d.ts +39 -0
- package/lib/insights/alliances.js +2 -0
- package/lib/insights/balance.d.ts +74 -0
- package/lib/insights/balance.js +2 -0
- package/lib/insights/block.d.ts +25 -0
- package/lib/insights/block.js +2 -0
- package/lib/insights/chain.d.ts +40 -0
- package/lib/insights/chain.js +2 -0
- package/lib/insights/common.d.ts +101 -0
- package/lib/insights/common.js +83 -0
- package/lib/insights/competition.d.ts +196 -0
- package/lib/insights/competition.js +2 -0
- package/lib/insights/crosschain.d.ts +10 -0
- package/lib/insights/crosschain.js +2 -0
- package/lib/insights/delegation.d.ts +26 -0
- package/lib/insights/delegation.js +2 -0
- package/lib/insights/funding.d.ts +41 -0
- package/lib/insights/funding.js +2 -0
- package/lib/insights/index.d.ts +16 -0
- package/lib/insights/index.js +32 -0
- package/lib/insights/inflation.d.ts +6 -0
- package/lib/insights/inflation.js +2 -0
- package/lib/insights/market.d.ts +25 -0
- package/lib/insights/market.js +8 -0
- package/lib/insights/node.d.ts +32 -0
- package/lib/insights/node.js +2 -0
- package/lib/insights/oracles.d.ts +17 -0
- package/lib/insights/oracles.js +2 -0
- package/lib/insights/pool.d.ts +201 -0
- package/lib/insights/pool.js +2 -0
- package/lib/insights/position.d.ts +104 -0
- package/lib/insights/position.js +10 -0
- package/lib/insights/proposal.d.ts +21 -0
- package/lib/insights/proposal.js +2 -0
- package/lib/insights/transaction.d.ts +30 -0
- package/lib/insights/transaction.js +2 -0
- package/lib/insights/user.d.ts +148 -0
- package/lib/insights/user.js +2 -0
- package/lib/modules/admin.d.ts +298 -0
- package/lib/modules/admin.js +368 -0
- package/lib/modules/alliance.d.ts +43 -0
- package/lib/modules/alliance.js +79 -0
- package/lib/modules/bank.d.ts +14 -0
- package/lib/modules/bank.js +24 -0
- package/lib/modules/base.d.ts +12 -0
- package/lib/modules/base.js +18 -0
- package/lib/modules/bridge.d.ts +38 -0
- package/lib/modules/bridge.js +84 -0
- package/lib/modules/broker.d.ts +16 -0
- package/lib/modules/broker.js +37 -0
- package/lib/modules/coin.d.ts +54 -0
- package/lib/modules/coin.js +108 -0
- package/lib/modules/cosmwasm.d.ts +20 -0
- package/lib/modules/cosmwasm.js +69 -0
- package/lib/modules/evm.d.ts +45 -0
- package/lib/modules/evm.js +73 -0
- package/lib/modules/evmmerge.d.ts +12 -0
- package/lib/modules/evmmerge.js +24 -0
- package/lib/modules/fee.d.ts +5 -0
- package/lib/modules/fee.js +16 -0
- package/lib/modules/gov.d.ts +21 -0
- package/lib/modules/gov.js +55 -0
- package/lib/modules/grant.d.ts +29 -0
- package/lib/modules/grant.js +137 -0
- package/lib/modules/ibc.d.ts +46 -0
- package/lib/modules/ibc.js +244 -0
- package/lib/modules/index.d.ts +19 -0
- package/lib/modules/index.js +35 -0
- package/lib/modules/leverage.d.ts +14 -0
- package/lib/modules/leverage.js +41 -0
- package/lib/modules/market.d.ts +104 -0
- package/lib/modules/market.js +153 -0
- package/lib/modules/oracle.d.ts +5 -0
- package/lib/modules/oracle.js +10 -0
- package/lib/modules/order.d.ts +78 -0
- package/lib/modules/order.js +156 -0
- package/lib/modules/perpspool.d.ts +72 -0
- package/lib/modules/perpspool.js +178 -0
- package/lib/modules/position.d.ts +14 -0
- package/lib/modules/position.js +41 -0
- package/lib/modules/staking.d.ts +36 -0
- package/lib/modules/staking.js +81 -0
- package/lib/modules/subaccount.d.ts +24 -0
- package/lib/modules/subaccount.js +51 -0
- package/lib/provider/amino/AminoTypesMap.d.ts +3 -0
- package/lib/provider/amino/AminoTypesMap.js +27 -0
- package/lib/provider/amino/index.d.ts +1 -0
- package/lib/provider/amino/index.js +8 -0
- package/lib/provider/amino/types/admin.d.ts +4 -0
- package/lib/provider/amino/types/admin.js +132 -0
- package/lib/provider/amino/types/bank.d.ts +4 -0
- package/lib/provider/amino/types/bank.js +48 -0
- package/lib/provider/amino/types/bridge.d.ts +4 -0
- package/lib/provider/amino/types/bridge.js +59 -0
- package/lib/provider/amino/types/broker.d.ts +4 -0
- package/lib/provider/amino/types/broker.js +48 -0
- package/lib/provider/amino/types/coin.d.ts +4 -0
- package/lib/provider/amino/types/coin.js +66 -0
- package/lib/provider/amino/types/evm.d.ts +4 -0
- package/lib/provider/amino/types/evm.js +48 -0
- package/lib/provider/amino/types/evmmerge.d.ts +4 -0
- package/lib/provider/amino/types/evmmerge.js +48 -0
- package/lib/provider/amino/types/feemarket.d.ts +4 -0
- package/lib/provider/amino/types/feemarket.js +48 -0
- package/lib/provider/amino/types/gov.d.ts +4 -0
- package/lib/provider/amino/types/gov.js +358 -0
- package/lib/provider/amino/types/grant.d.ts +4 -0
- package/lib/provider/amino/types/grant.js +217 -0
- package/lib/provider/amino/types/group.d.ts +4 -0
- package/lib/provider/amino/types/group.js +64 -0
- package/lib/provider/amino/types/ibc.d.ts +4 -0
- package/lib/provider/amino/types/ibc.js +74 -0
- package/lib/provider/amino/types/index.d.ts +20 -0
- package/lib/provider/amino/types/index.js +46 -0
- package/lib/provider/amino/types/leverage.d.ts +4 -0
- package/lib/provider/amino/types/leverage.js +50 -0
- package/lib/provider/amino/types/market.d.ts +4 -0
- package/lib/provider/amino/types/market.js +104 -0
- package/lib/provider/amino/types/oracle.d.ts +4 -0
- package/lib/provider/amino/types/oracle.js +4 -0
- package/lib/provider/amino/types/order.d.ts +4 -0
- package/lib/provider/amino/types/order.js +105 -0
- package/lib/provider/amino/types/perpspool.d.ts +4 -0
- package/lib/provider/amino/types/perpspool.js +121 -0
- package/lib/provider/amino/types/position.d.ts +4 -0
- package/lib/provider/amino/types/position.js +48 -0
- package/lib/provider/amino/types/staking.d.ts +4 -0
- package/lib/provider/amino/types/staking.js +66 -0
- package/lib/provider/amino/types/subaccount.d.ts +4 -0
- package/lib/provider/amino/types/subaccount.js +60 -0
- package/lib/provider/amino/utils.d.ts +45 -0
- package/lib/provider/amino/utils.js +249 -0
- package/lib/provider/chainProvider/GetSigningCosmosClientOptions.d.ts +2 -0
- package/lib/provider/chainProvider/GetSigningCosmosClientOptions.js +18 -0
- package/lib/provider/chainProvider/index.d.ts +2 -0
- package/lib/provider/chainProvider/index.js +5 -0
- package/lib/provider/eip6963Provider/Eip6963Provider.d.ts +9 -0
- package/lib/provider/eip6963Provider/Eip6963Provider.js +27 -0
- package/lib/provider/eip6963Provider/index.d.ts +1 -0
- package/lib/provider/eip6963Provider/index.js +8 -0
- package/lib/provider/index.d.ts +10 -0
- package/lib/provider/index.js +22 -0
- package/lib/provider/keplr/KeplrAccount.d.ts +27 -0
- package/lib/provider/keplr/KeplrAccount.js +229 -0
- package/lib/provider/keplr/KeplrStore.d.ts +0 -0
- package/lib/provider/keplr/KeplrStore.js +1 -0
- package/lib/provider/keplr/index.d.ts +3 -0
- package/lib/provider/keplr/index.js +8 -0
- package/lib/provider/leap/LeapAccount.d.ts +28 -0
- package/lib/provider/leap/LeapAccount.js +203 -0
- package/lib/provider/leap/index.d.ts +3 -0
- package/lib/provider/leap/index.js +8 -0
- package/lib/provider/ledger/index.d.ts +1 -0
- package/lib/provider/ledger/index.js +8 -0
- package/lib/provider/ledger/ledger.d.ts +28 -0
- package/lib/provider/ledger/ledger.js +308 -0
- package/lib/provider/metamask/MetaMask.d.ts +83 -0
- package/lib/provider/metamask/MetaMask.js +665 -0
- package/lib/provider/metamask/error.d.ts +2 -0
- package/lib/provider/metamask/error.js +18 -0
- package/lib/provider/metamask/index.d.ts +1 -0
- package/lib/provider/metamask/index.js +5 -0
- package/lib/provider/metamask/legacy-accounts.d.ts +11 -0
- package/lib/provider/metamask/legacy-accounts.js +2254 -0
- package/lib/provider/rainbowKit/RainbowKitAccount.d.ts +41 -0
- package/lib/provider/rainbowKit/RainbowKitAccount.js +298 -0
- package/lib/provider/rainbowKit/index.d.ts +1 -0
- package/lib/provider/rainbowKit/index.js +8 -0
- package/lib/provider/sdk/SDKProvider.d.ts +13 -0
- package/lib/provider/sdk/SDKProvider.js +2 -0
- package/lib/provider/sdk/index.d.ts +1 -0
- package/lib/provider/sdk/index.js +2 -0
- package/lib/util/address.d.ts +72 -0
- package/lib/util/address.js +252 -0
- package/lib/util/alliance.d.ts +2 -0
- package/lib/util/alliance.js +27 -0
- package/lib/util/api.d.ts +122 -0
- package/lib/util/api.js +175 -0
- package/lib/util/auth.d.ts +31 -0
- package/lib/util/auth.js +46 -0
- package/lib/util/blockchain.d.ts +96 -0
- package/lib/util/blockchain.js +571 -0
- package/lib/util/bytes.d.ts +1 -0
- package/lib/util/bytes.js +9 -0
- package/lib/util/eip712.d.ts +10 -0
- package/lib/util/eip712.js +199 -0
- package/lib/util/ethermint.d.ts +9 -0
- package/lib/util/ethermint.js +131 -0
- package/lib/util/evm.d.ts +2 -0
- package/lib/util/evm.js +10 -0
- package/lib/util/external.d.ts +11 -0
- package/lib/util/external.js +7 -0
- package/lib/util/fetch.d.ts +1 -0
- package/lib/util/fetch.js +15 -0
- package/lib/util/generic.d.ts +40 -0
- package/lib/util/generic.js +163 -0
- package/lib/util/gov.d.ts +47 -0
- package/lib/util/gov.js +251 -0
- package/lib/util/grant.d.ts +21 -0
- package/lib/util/grant.js +59 -0
- package/lib/util/ibc.d.ts +19 -0
- package/lib/util/ibc.js +148 -0
- package/lib/util/index.d.ts +20 -0
- package/lib/util/index.js +56 -0
- package/lib/util/ledger.d.ts +3 -0
- package/lib/util/ledger.js +43 -0
- package/lib/util/legacyEIP712.d.ts +20 -0
- package/lib/util/legacyEIP712.js +100 -0
- package/lib/util/message.d.ts +2 -0
- package/lib/util/message.js +24 -0
- package/lib/util/network.d.ts +9 -0
- package/lib/util/network.js +39 -0
- package/lib/util/number.d.ts +9 -0
- package/lib/util/number.js +47 -0
- package/lib/util/order.d.ts +3 -0
- package/lib/util/order.js +13 -0
- package/lib/util/provider.d.ts +1 -0
- package/lib/util/provider.js +12 -0
- package/lib/util/token.d.ts +16 -0
- package/lib/util/token.js +23 -0
- package/lib/util/transferfees.d.ts +18 -0
- package/lib/util/transferfees.js +9 -0
- package/lib/util/tx.d.ts +559 -0
- package/lib/util/tx.js +168 -0
- package/lib/util/type.d.ts +22 -0
- package/lib/util/type.js +45 -0
- package/lib/wallet/CarbonSigner.d.ts +67 -0
- package/lib/wallet/CarbonSigner.js +131 -0
- package/lib/wallet/CarbonSigningClient.d.ts +41 -0
- package/lib/wallet/CarbonSigningClient.js +201 -0
- package/lib/wallet/CarbonWallet.d.ts +220 -0
- package/lib/wallet/CarbonWallet.js +790 -0
- package/lib/wallet/index.d.ts +2 -0
- package/lib/wallet/index.js +18 -0
- package/lib/websocket/channel.d.ts +3 -0
- package/lib/websocket/channel.js +209 -0
- package/lib/websocket/connector.d.ts +234 -0
- package/lib/websocket/connector.js +502 -0
- package/lib/websocket/index.d.ts +1 -0
- package/lib/websocket/index.js +17 -0
- package/lib/websocket/models.d.ts +332 -0
- package/lib/websocket/models.js +2 -0
- package/lib/websocket/types.d.ts +154 -0
- package/lib/websocket/types.js +44 -0
- package/package.json +90 -0
|
@@ -0,0 +1,1353 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CompressedNonExistenceProof = exports.CompressedExistenceProof = exports.CompressedBatchEntry = exports.CompressedBatchProof = exports.BatchEntry = exports.BatchProof = exports.InnerSpec = exports.ProofSpec = exports.InnerOp = exports.LeafOp = exports.CommitmentProof = exports.NonExistenceProof = exports.ExistenceProof = exports.LengthOp = exports.HashOp = exports.protobufPackage = void 0;
|
|
7
|
+
exports.hashOpFromJSON = hashOpFromJSON;
|
|
8
|
+
exports.hashOpToJSON = hashOpToJSON;
|
|
9
|
+
exports.lengthOpFromJSON = lengthOpFromJSON;
|
|
10
|
+
exports.lengthOpToJSON = lengthOpToJSON;
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
const long_1 = __importDefault(require("long"));
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "cosmos.ics23.v1";
|
|
15
|
+
var HashOp;
|
|
16
|
+
(function (HashOp) {
|
|
17
|
+
/** NO_HASH - NO_HASH is the default if no data passed. Note this is an illegal argument some places. */
|
|
18
|
+
HashOp[HashOp["NO_HASH"] = 0] = "NO_HASH";
|
|
19
|
+
HashOp[HashOp["SHA256"] = 1] = "SHA256";
|
|
20
|
+
HashOp[HashOp["SHA512"] = 2] = "SHA512";
|
|
21
|
+
HashOp[HashOp["KECCAK256"] = 3] = "KECCAK256";
|
|
22
|
+
HashOp[HashOp["RIPEMD160"] = 4] = "RIPEMD160";
|
|
23
|
+
/** BITCOIN - ripemd160(sha256(x)) */
|
|
24
|
+
HashOp[HashOp["BITCOIN"] = 5] = "BITCOIN";
|
|
25
|
+
HashOp[HashOp["SHA512_256"] = 6] = "SHA512_256";
|
|
26
|
+
HashOp[HashOp["BLAKE2B_512"] = 7] = "BLAKE2B_512";
|
|
27
|
+
HashOp[HashOp["BLAKE2S_256"] = 8] = "BLAKE2S_256";
|
|
28
|
+
HashOp[HashOp["BLAKE3"] = 9] = "BLAKE3";
|
|
29
|
+
HashOp[HashOp["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
30
|
+
})(HashOp || (exports.HashOp = HashOp = {}));
|
|
31
|
+
function hashOpFromJSON(object) {
|
|
32
|
+
switch (object) {
|
|
33
|
+
case 0:
|
|
34
|
+
case "NO_HASH":
|
|
35
|
+
return HashOp.NO_HASH;
|
|
36
|
+
case 1:
|
|
37
|
+
case "SHA256":
|
|
38
|
+
return HashOp.SHA256;
|
|
39
|
+
case 2:
|
|
40
|
+
case "SHA512":
|
|
41
|
+
return HashOp.SHA512;
|
|
42
|
+
case 3:
|
|
43
|
+
case "KECCAK256":
|
|
44
|
+
return HashOp.KECCAK256;
|
|
45
|
+
case 4:
|
|
46
|
+
case "RIPEMD160":
|
|
47
|
+
return HashOp.RIPEMD160;
|
|
48
|
+
case 5:
|
|
49
|
+
case "BITCOIN":
|
|
50
|
+
return HashOp.BITCOIN;
|
|
51
|
+
case 6:
|
|
52
|
+
case "SHA512_256":
|
|
53
|
+
return HashOp.SHA512_256;
|
|
54
|
+
case 7:
|
|
55
|
+
case "BLAKE2B_512":
|
|
56
|
+
return HashOp.BLAKE2B_512;
|
|
57
|
+
case 8:
|
|
58
|
+
case "BLAKE2S_256":
|
|
59
|
+
return HashOp.BLAKE2S_256;
|
|
60
|
+
case 9:
|
|
61
|
+
case "BLAKE3":
|
|
62
|
+
return HashOp.BLAKE3;
|
|
63
|
+
case -1:
|
|
64
|
+
case "UNRECOGNIZED":
|
|
65
|
+
default:
|
|
66
|
+
return HashOp.UNRECOGNIZED;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function hashOpToJSON(object) {
|
|
70
|
+
switch (object) {
|
|
71
|
+
case HashOp.NO_HASH:
|
|
72
|
+
return "NO_HASH";
|
|
73
|
+
case HashOp.SHA256:
|
|
74
|
+
return "SHA256";
|
|
75
|
+
case HashOp.SHA512:
|
|
76
|
+
return "SHA512";
|
|
77
|
+
case HashOp.KECCAK256:
|
|
78
|
+
return "KECCAK256";
|
|
79
|
+
case HashOp.RIPEMD160:
|
|
80
|
+
return "RIPEMD160";
|
|
81
|
+
case HashOp.BITCOIN:
|
|
82
|
+
return "BITCOIN";
|
|
83
|
+
case HashOp.SHA512_256:
|
|
84
|
+
return "SHA512_256";
|
|
85
|
+
case HashOp.BLAKE2B_512:
|
|
86
|
+
return "BLAKE2B_512";
|
|
87
|
+
case HashOp.BLAKE2S_256:
|
|
88
|
+
return "BLAKE2S_256";
|
|
89
|
+
case HashOp.BLAKE3:
|
|
90
|
+
return "BLAKE3";
|
|
91
|
+
case HashOp.UNRECOGNIZED:
|
|
92
|
+
default:
|
|
93
|
+
return "UNRECOGNIZED";
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* LengthOp defines how to process the key and value of the LeafOp
|
|
98
|
+
* to include length information. After encoding the length with the given
|
|
99
|
+
* algorithm, the length will be prepended to the key and value bytes.
|
|
100
|
+
* (Each one with it's own encoded length)
|
|
101
|
+
*/
|
|
102
|
+
var LengthOp;
|
|
103
|
+
(function (LengthOp) {
|
|
104
|
+
/** NO_PREFIX - NO_PREFIX don't include any length info */
|
|
105
|
+
LengthOp[LengthOp["NO_PREFIX"] = 0] = "NO_PREFIX";
|
|
106
|
+
/** VAR_PROTO - VAR_PROTO uses protobuf (and go-amino) varint encoding of the length */
|
|
107
|
+
LengthOp[LengthOp["VAR_PROTO"] = 1] = "VAR_PROTO";
|
|
108
|
+
/** VAR_RLP - VAR_RLP uses rlp int encoding of the length */
|
|
109
|
+
LengthOp[LengthOp["VAR_RLP"] = 2] = "VAR_RLP";
|
|
110
|
+
/** FIXED32_BIG - FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer */
|
|
111
|
+
LengthOp[LengthOp["FIXED32_BIG"] = 3] = "FIXED32_BIG";
|
|
112
|
+
/** FIXED32_LITTLE - FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer */
|
|
113
|
+
LengthOp[LengthOp["FIXED32_LITTLE"] = 4] = "FIXED32_LITTLE";
|
|
114
|
+
/** FIXED64_BIG - FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer */
|
|
115
|
+
LengthOp[LengthOp["FIXED64_BIG"] = 5] = "FIXED64_BIG";
|
|
116
|
+
/** FIXED64_LITTLE - FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer */
|
|
117
|
+
LengthOp[LengthOp["FIXED64_LITTLE"] = 6] = "FIXED64_LITTLE";
|
|
118
|
+
/** REQUIRE_32_BYTES - REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) */
|
|
119
|
+
LengthOp[LengthOp["REQUIRE_32_BYTES"] = 7] = "REQUIRE_32_BYTES";
|
|
120
|
+
/** REQUIRE_64_BYTES - REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) */
|
|
121
|
+
LengthOp[LengthOp["REQUIRE_64_BYTES"] = 8] = "REQUIRE_64_BYTES";
|
|
122
|
+
LengthOp[LengthOp["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
123
|
+
})(LengthOp || (exports.LengthOp = LengthOp = {}));
|
|
124
|
+
function lengthOpFromJSON(object) {
|
|
125
|
+
switch (object) {
|
|
126
|
+
case 0:
|
|
127
|
+
case "NO_PREFIX":
|
|
128
|
+
return LengthOp.NO_PREFIX;
|
|
129
|
+
case 1:
|
|
130
|
+
case "VAR_PROTO":
|
|
131
|
+
return LengthOp.VAR_PROTO;
|
|
132
|
+
case 2:
|
|
133
|
+
case "VAR_RLP":
|
|
134
|
+
return LengthOp.VAR_RLP;
|
|
135
|
+
case 3:
|
|
136
|
+
case "FIXED32_BIG":
|
|
137
|
+
return LengthOp.FIXED32_BIG;
|
|
138
|
+
case 4:
|
|
139
|
+
case "FIXED32_LITTLE":
|
|
140
|
+
return LengthOp.FIXED32_LITTLE;
|
|
141
|
+
case 5:
|
|
142
|
+
case "FIXED64_BIG":
|
|
143
|
+
return LengthOp.FIXED64_BIG;
|
|
144
|
+
case 6:
|
|
145
|
+
case "FIXED64_LITTLE":
|
|
146
|
+
return LengthOp.FIXED64_LITTLE;
|
|
147
|
+
case 7:
|
|
148
|
+
case "REQUIRE_32_BYTES":
|
|
149
|
+
return LengthOp.REQUIRE_32_BYTES;
|
|
150
|
+
case 8:
|
|
151
|
+
case "REQUIRE_64_BYTES":
|
|
152
|
+
return LengthOp.REQUIRE_64_BYTES;
|
|
153
|
+
case -1:
|
|
154
|
+
case "UNRECOGNIZED":
|
|
155
|
+
default:
|
|
156
|
+
return LengthOp.UNRECOGNIZED;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
function lengthOpToJSON(object) {
|
|
160
|
+
switch (object) {
|
|
161
|
+
case LengthOp.NO_PREFIX:
|
|
162
|
+
return "NO_PREFIX";
|
|
163
|
+
case LengthOp.VAR_PROTO:
|
|
164
|
+
return "VAR_PROTO";
|
|
165
|
+
case LengthOp.VAR_RLP:
|
|
166
|
+
return "VAR_RLP";
|
|
167
|
+
case LengthOp.FIXED32_BIG:
|
|
168
|
+
return "FIXED32_BIG";
|
|
169
|
+
case LengthOp.FIXED32_LITTLE:
|
|
170
|
+
return "FIXED32_LITTLE";
|
|
171
|
+
case LengthOp.FIXED64_BIG:
|
|
172
|
+
return "FIXED64_BIG";
|
|
173
|
+
case LengthOp.FIXED64_LITTLE:
|
|
174
|
+
return "FIXED64_LITTLE";
|
|
175
|
+
case LengthOp.REQUIRE_32_BYTES:
|
|
176
|
+
return "REQUIRE_32_BYTES";
|
|
177
|
+
case LengthOp.REQUIRE_64_BYTES:
|
|
178
|
+
return "REQUIRE_64_BYTES";
|
|
179
|
+
case LengthOp.UNRECOGNIZED:
|
|
180
|
+
default:
|
|
181
|
+
return "UNRECOGNIZED";
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
function createBaseExistenceProof() {
|
|
185
|
+
return { key: new Uint8Array(), value: new Uint8Array(), leaf: undefined, path: [] };
|
|
186
|
+
}
|
|
187
|
+
exports.ExistenceProof = {
|
|
188
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
189
|
+
if (message.key.length !== 0) {
|
|
190
|
+
writer.uint32(10).bytes(message.key);
|
|
191
|
+
}
|
|
192
|
+
if (message.value.length !== 0) {
|
|
193
|
+
writer.uint32(18).bytes(message.value);
|
|
194
|
+
}
|
|
195
|
+
if (message.leaf !== undefined) {
|
|
196
|
+
exports.LeafOp.encode(message.leaf, writer.uint32(26).fork()).ldelim();
|
|
197
|
+
}
|
|
198
|
+
for (const v of message.path) {
|
|
199
|
+
exports.InnerOp.encode(v, writer.uint32(34).fork()).ldelim();
|
|
200
|
+
}
|
|
201
|
+
return writer;
|
|
202
|
+
},
|
|
203
|
+
decode(input, length) {
|
|
204
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
205
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
206
|
+
const message = createBaseExistenceProof();
|
|
207
|
+
while (reader.pos < end) {
|
|
208
|
+
const tag = reader.uint32();
|
|
209
|
+
switch (tag >>> 3) {
|
|
210
|
+
case 1:
|
|
211
|
+
if (tag !== 10) {
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
message.key = reader.bytes();
|
|
215
|
+
continue;
|
|
216
|
+
case 2:
|
|
217
|
+
if (tag !== 18) {
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
message.value = reader.bytes();
|
|
221
|
+
continue;
|
|
222
|
+
case 3:
|
|
223
|
+
if (tag !== 26) {
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
message.leaf = exports.LeafOp.decode(reader, reader.uint32());
|
|
227
|
+
continue;
|
|
228
|
+
case 4:
|
|
229
|
+
if (tag !== 34) {
|
|
230
|
+
break;
|
|
231
|
+
}
|
|
232
|
+
message.path.push(exports.InnerOp.decode(reader, reader.uint32()));
|
|
233
|
+
continue;
|
|
234
|
+
}
|
|
235
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
reader.skipType(tag & 7);
|
|
239
|
+
}
|
|
240
|
+
return message;
|
|
241
|
+
},
|
|
242
|
+
fromJSON(object) {
|
|
243
|
+
return {
|
|
244
|
+
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
|
|
245
|
+
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(),
|
|
246
|
+
leaf: isSet(object.leaf) ? exports.LeafOp.fromJSON(object.leaf) : undefined,
|
|
247
|
+
path: Array.isArray(object?.path) ? object.path.map((e) => exports.InnerOp.fromJSON(e)) : [],
|
|
248
|
+
};
|
|
249
|
+
},
|
|
250
|
+
toJSON(message) {
|
|
251
|
+
const obj = {};
|
|
252
|
+
message.key !== undefined &&
|
|
253
|
+
(obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
|
|
254
|
+
message.value !== undefined &&
|
|
255
|
+
(obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
256
|
+
message.leaf !== undefined && (obj.leaf = message.leaf ? exports.LeafOp.toJSON(message.leaf) : undefined);
|
|
257
|
+
if (message.path) {
|
|
258
|
+
obj.path = message.path.map((e) => e ? exports.InnerOp.toJSON(e) : undefined);
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
obj.path = [];
|
|
262
|
+
}
|
|
263
|
+
return obj;
|
|
264
|
+
},
|
|
265
|
+
create(base) {
|
|
266
|
+
return exports.ExistenceProof.fromPartial(base ?? {});
|
|
267
|
+
},
|
|
268
|
+
fromPartial(object) {
|
|
269
|
+
const message = createBaseExistenceProof();
|
|
270
|
+
message.key = object.key ?? new Uint8Array();
|
|
271
|
+
message.value = object.value ?? new Uint8Array();
|
|
272
|
+
message.leaf = (object.leaf !== undefined && object.leaf !== null) ? exports.LeafOp.fromPartial(object.leaf) : undefined;
|
|
273
|
+
message.path = object.path?.map((e) => exports.InnerOp.fromPartial(e)) || [];
|
|
274
|
+
return message;
|
|
275
|
+
},
|
|
276
|
+
};
|
|
277
|
+
function createBaseNonExistenceProof() {
|
|
278
|
+
return { key: new Uint8Array(), left: undefined, right: undefined };
|
|
279
|
+
}
|
|
280
|
+
exports.NonExistenceProof = {
|
|
281
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
282
|
+
if (message.key.length !== 0) {
|
|
283
|
+
writer.uint32(10).bytes(message.key);
|
|
284
|
+
}
|
|
285
|
+
if (message.left !== undefined) {
|
|
286
|
+
exports.ExistenceProof.encode(message.left, writer.uint32(18).fork()).ldelim();
|
|
287
|
+
}
|
|
288
|
+
if (message.right !== undefined) {
|
|
289
|
+
exports.ExistenceProof.encode(message.right, writer.uint32(26).fork()).ldelim();
|
|
290
|
+
}
|
|
291
|
+
return writer;
|
|
292
|
+
},
|
|
293
|
+
decode(input, length) {
|
|
294
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
295
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
296
|
+
const message = createBaseNonExistenceProof();
|
|
297
|
+
while (reader.pos < end) {
|
|
298
|
+
const tag = reader.uint32();
|
|
299
|
+
switch (tag >>> 3) {
|
|
300
|
+
case 1:
|
|
301
|
+
if (tag !== 10) {
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
message.key = reader.bytes();
|
|
305
|
+
continue;
|
|
306
|
+
case 2:
|
|
307
|
+
if (tag !== 18) {
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
310
|
+
message.left = exports.ExistenceProof.decode(reader, reader.uint32());
|
|
311
|
+
continue;
|
|
312
|
+
case 3:
|
|
313
|
+
if (tag !== 26) {
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
message.right = exports.ExistenceProof.decode(reader, reader.uint32());
|
|
317
|
+
continue;
|
|
318
|
+
}
|
|
319
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
320
|
+
break;
|
|
321
|
+
}
|
|
322
|
+
reader.skipType(tag & 7);
|
|
323
|
+
}
|
|
324
|
+
return message;
|
|
325
|
+
},
|
|
326
|
+
fromJSON(object) {
|
|
327
|
+
return {
|
|
328
|
+
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
|
|
329
|
+
left: isSet(object.left) ? exports.ExistenceProof.fromJSON(object.left) : undefined,
|
|
330
|
+
right: isSet(object.right) ? exports.ExistenceProof.fromJSON(object.right) : undefined,
|
|
331
|
+
};
|
|
332
|
+
},
|
|
333
|
+
toJSON(message) {
|
|
334
|
+
const obj = {};
|
|
335
|
+
message.key !== undefined &&
|
|
336
|
+
(obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
|
|
337
|
+
message.left !== undefined && (obj.left = message.left ? exports.ExistenceProof.toJSON(message.left) : undefined);
|
|
338
|
+
message.right !== undefined && (obj.right = message.right ? exports.ExistenceProof.toJSON(message.right) : undefined);
|
|
339
|
+
return obj;
|
|
340
|
+
},
|
|
341
|
+
create(base) {
|
|
342
|
+
return exports.NonExistenceProof.fromPartial(base ?? {});
|
|
343
|
+
},
|
|
344
|
+
fromPartial(object) {
|
|
345
|
+
const message = createBaseNonExistenceProof();
|
|
346
|
+
message.key = object.key ?? new Uint8Array();
|
|
347
|
+
message.left = (object.left !== undefined && object.left !== null)
|
|
348
|
+
? exports.ExistenceProof.fromPartial(object.left)
|
|
349
|
+
: undefined;
|
|
350
|
+
message.right = (object.right !== undefined && object.right !== null)
|
|
351
|
+
? exports.ExistenceProof.fromPartial(object.right)
|
|
352
|
+
: undefined;
|
|
353
|
+
return message;
|
|
354
|
+
},
|
|
355
|
+
};
|
|
356
|
+
function createBaseCommitmentProof() {
|
|
357
|
+
return { exist: undefined, nonexist: undefined, batch: undefined, compressed: undefined };
|
|
358
|
+
}
|
|
359
|
+
exports.CommitmentProof = {
|
|
360
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
361
|
+
if (message.exist !== undefined) {
|
|
362
|
+
exports.ExistenceProof.encode(message.exist, writer.uint32(10).fork()).ldelim();
|
|
363
|
+
}
|
|
364
|
+
if (message.nonexist !== undefined) {
|
|
365
|
+
exports.NonExistenceProof.encode(message.nonexist, writer.uint32(18).fork()).ldelim();
|
|
366
|
+
}
|
|
367
|
+
if (message.batch !== undefined) {
|
|
368
|
+
exports.BatchProof.encode(message.batch, writer.uint32(26).fork()).ldelim();
|
|
369
|
+
}
|
|
370
|
+
if (message.compressed !== undefined) {
|
|
371
|
+
exports.CompressedBatchProof.encode(message.compressed, writer.uint32(34).fork()).ldelim();
|
|
372
|
+
}
|
|
373
|
+
return writer;
|
|
374
|
+
},
|
|
375
|
+
decode(input, length) {
|
|
376
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
377
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
378
|
+
const message = createBaseCommitmentProof();
|
|
379
|
+
while (reader.pos < end) {
|
|
380
|
+
const tag = reader.uint32();
|
|
381
|
+
switch (tag >>> 3) {
|
|
382
|
+
case 1:
|
|
383
|
+
if (tag !== 10) {
|
|
384
|
+
break;
|
|
385
|
+
}
|
|
386
|
+
message.exist = exports.ExistenceProof.decode(reader, reader.uint32());
|
|
387
|
+
continue;
|
|
388
|
+
case 2:
|
|
389
|
+
if (tag !== 18) {
|
|
390
|
+
break;
|
|
391
|
+
}
|
|
392
|
+
message.nonexist = exports.NonExistenceProof.decode(reader, reader.uint32());
|
|
393
|
+
continue;
|
|
394
|
+
case 3:
|
|
395
|
+
if (tag !== 26) {
|
|
396
|
+
break;
|
|
397
|
+
}
|
|
398
|
+
message.batch = exports.BatchProof.decode(reader, reader.uint32());
|
|
399
|
+
continue;
|
|
400
|
+
case 4:
|
|
401
|
+
if (tag !== 34) {
|
|
402
|
+
break;
|
|
403
|
+
}
|
|
404
|
+
message.compressed = exports.CompressedBatchProof.decode(reader, reader.uint32());
|
|
405
|
+
continue;
|
|
406
|
+
}
|
|
407
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
408
|
+
break;
|
|
409
|
+
}
|
|
410
|
+
reader.skipType(tag & 7);
|
|
411
|
+
}
|
|
412
|
+
return message;
|
|
413
|
+
},
|
|
414
|
+
fromJSON(object) {
|
|
415
|
+
return {
|
|
416
|
+
exist: isSet(object.exist) ? exports.ExistenceProof.fromJSON(object.exist) : undefined,
|
|
417
|
+
nonexist: isSet(object.nonexist) ? exports.NonExistenceProof.fromJSON(object.nonexist) : undefined,
|
|
418
|
+
batch: isSet(object.batch) ? exports.BatchProof.fromJSON(object.batch) : undefined,
|
|
419
|
+
compressed: isSet(object.compressed) ? exports.CompressedBatchProof.fromJSON(object.compressed) : undefined,
|
|
420
|
+
};
|
|
421
|
+
},
|
|
422
|
+
toJSON(message) {
|
|
423
|
+
const obj = {};
|
|
424
|
+
message.exist !== undefined && (obj.exist = message.exist ? exports.ExistenceProof.toJSON(message.exist) : undefined);
|
|
425
|
+
message.nonexist !== undefined &&
|
|
426
|
+
(obj.nonexist = message.nonexist ? exports.NonExistenceProof.toJSON(message.nonexist) : undefined);
|
|
427
|
+
message.batch !== undefined && (obj.batch = message.batch ? exports.BatchProof.toJSON(message.batch) : undefined);
|
|
428
|
+
message.compressed !== undefined &&
|
|
429
|
+
(obj.compressed = message.compressed ? exports.CompressedBatchProof.toJSON(message.compressed) : undefined);
|
|
430
|
+
return obj;
|
|
431
|
+
},
|
|
432
|
+
create(base) {
|
|
433
|
+
return exports.CommitmentProof.fromPartial(base ?? {});
|
|
434
|
+
},
|
|
435
|
+
fromPartial(object) {
|
|
436
|
+
const message = createBaseCommitmentProof();
|
|
437
|
+
message.exist = (object.exist !== undefined && object.exist !== null)
|
|
438
|
+
? exports.ExistenceProof.fromPartial(object.exist)
|
|
439
|
+
: undefined;
|
|
440
|
+
message.nonexist = (object.nonexist !== undefined && object.nonexist !== null)
|
|
441
|
+
? exports.NonExistenceProof.fromPartial(object.nonexist)
|
|
442
|
+
: undefined;
|
|
443
|
+
message.batch = (object.batch !== undefined && object.batch !== null)
|
|
444
|
+
? exports.BatchProof.fromPartial(object.batch)
|
|
445
|
+
: undefined;
|
|
446
|
+
message.compressed = (object.compressed !== undefined && object.compressed !== null)
|
|
447
|
+
? exports.CompressedBatchProof.fromPartial(object.compressed)
|
|
448
|
+
: undefined;
|
|
449
|
+
return message;
|
|
450
|
+
},
|
|
451
|
+
};
|
|
452
|
+
function createBaseLeafOp() {
|
|
453
|
+
return { hash: 0, prehashKey: 0, prehashValue: 0, length: 0, prefix: new Uint8Array() };
|
|
454
|
+
}
|
|
455
|
+
exports.LeafOp = {
|
|
456
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
457
|
+
if (message.hash !== 0) {
|
|
458
|
+
writer.uint32(8).int32(message.hash);
|
|
459
|
+
}
|
|
460
|
+
if (message.prehashKey !== 0) {
|
|
461
|
+
writer.uint32(16).int32(message.prehashKey);
|
|
462
|
+
}
|
|
463
|
+
if (message.prehashValue !== 0) {
|
|
464
|
+
writer.uint32(24).int32(message.prehashValue);
|
|
465
|
+
}
|
|
466
|
+
if (message.length !== 0) {
|
|
467
|
+
writer.uint32(32).int32(message.length);
|
|
468
|
+
}
|
|
469
|
+
if (message.prefix.length !== 0) {
|
|
470
|
+
writer.uint32(42).bytes(message.prefix);
|
|
471
|
+
}
|
|
472
|
+
return writer;
|
|
473
|
+
},
|
|
474
|
+
decode(input, length) {
|
|
475
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
476
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
477
|
+
const message = createBaseLeafOp();
|
|
478
|
+
while (reader.pos < end) {
|
|
479
|
+
const tag = reader.uint32();
|
|
480
|
+
switch (tag >>> 3) {
|
|
481
|
+
case 1:
|
|
482
|
+
if (tag !== 8) {
|
|
483
|
+
break;
|
|
484
|
+
}
|
|
485
|
+
message.hash = reader.int32();
|
|
486
|
+
continue;
|
|
487
|
+
case 2:
|
|
488
|
+
if (tag !== 16) {
|
|
489
|
+
break;
|
|
490
|
+
}
|
|
491
|
+
message.prehashKey = reader.int32();
|
|
492
|
+
continue;
|
|
493
|
+
case 3:
|
|
494
|
+
if (tag !== 24) {
|
|
495
|
+
break;
|
|
496
|
+
}
|
|
497
|
+
message.prehashValue = reader.int32();
|
|
498
|
+
continue;
|
|
499
|
+
case 4:
|
|
500
|
+
if (tag !== 32) {
|
|
501
|
+
break;
|
|
502
|
+
}
|
|
503
|
+
message.length = reader.int32();
|
|
504
|
+
continue;
|
|
505
|
+
case 5:
|
|
506
|
+
if (tag !== 42) {
|
|
507
|
+
break;
|
|
508
|
+
}
|
|
509
|
+
message.prefix = reader.bytes();
|
|
510
|
+
continue;
|
|
511
|
+
}
|
|
512
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
513
|
+
break;
|
|
514
|
+
}
|
|
515
|
+
reader.skipType(tag & 7);
|
|
516
|
+
}
|
|
517
|
+
return message;
|
|
518
|
+
},
|
|
519
|
+
fromJSON(object) {
|
|
520
|
+
return {
|
|
521
|
+
hash: isSet(object.hash) ? hashOpFromJSON(object.hash) : 0,
|
|
522
|
+
prehashKey: isSet(object.prehashKey) ? hashOpFromJSON(object.prehashKey) : 0,
|
|
523
|
+
prehashValue: isSet(object.prehashValue) ? hashOpFromJSON(object.prehashValue) : 0,
|
|
524
|
+
length: isSet(object.length) ? lengthOpFromJSON(object.length) : 0,
|
|
525
|
+
prefix: isSet(object.prefix) ? bytesFromBase64(object.prefix) : new Uint8Array(),
|
|
526
|
+
};
|
|
527
|
+
},
|
|
528
|
+
toJSON(message) {
|
|
529
|
+
const obj = {};
|
|
530
|
+
message.hash !== undefined && (obj.hash = hashOpToJSON(message.hash));
|
|
531
|
+
message.prehashKey !== undefined && (obj.prehashKey = hashOpToJSON(message.prehashKey));
|
|
532
|
+
message.prehashValue !== undefined && (obj.prehashValue = hashOpToJSON(message.prehashValue));
|
|
533
|
+
message.length !== undefined && (obj.length = lengthOpToJSON(message.length));
|
|
534
|
+
message.prefix !== undefined &&
|
|
535
|
+
(obj.prefix = base64FromBytes(message.prefix !== undefined ? message.prefix : new Uint8Array()));
|
|
536
|
+
return obj;
|
|
537
|
+
},
|
|
538
|
+
create(base) {
|
|
539
|
+
return exports.LeafOp.fromPartial(base ?? {});
|
|
540
|
+
},
|
|
541
|
+
fromPartial(object) {
|
|
542
|
+
const message = createBaseLeafOp();
|
|
543
|
+
message.hash = object.hash ?? 0;
|
|
544
|
+
message.prehashKey = object.prehashKey ?? 0;
|
|
545
|
+
message.prehashValue = object.prehashValue ?? 0;
|
|
546
|
+
message.length = object.length ?? 0;
|
|
547
|
+
message.prefix = object.prefix ?? new Uint8Array();
|
|
548
|
+
return message;
|
|
549
|
+
},
|
|
550
|
+
};
|
|
551
|
+
function createBaseInnerOp() {
|
|
552
|
+
return { hash: 0, prefix: new Uint8Array(), suffix: new Uint8Array() };
|
|
553
|
+
}
|
|
554
|
+
exports.InnerOp = {
|
|
555
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
556
|
+
if (message.hash !== 0) {
|
|
557
|
+
writer.uint32(8).int32(message.hash);
|
|
558
|
+
}
|
|
559
|
+
if (message.prefix.length !== 0) {
|
|
560
|
+
writer.uint32(18).bytes(message.prefix);
|
|
561
|
+
}
|
|
562
|
+
if (message.suffix.length !== 0) {
|
|
563
|
+
writer.uint32(26).bytes(message.suffix);
|
|
564
|
+
}
|
|
565
|
+
return writer;
|
|
566
|
+
},
|
|
567
|
+
decode(input, length) {
|
|
568
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
569
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
570
|
+
const message = createBaseInnerOp();
|
|
571
|
+
while (reader.pos < end) {
|
|
572
|
+
const tag = reader.uint32();
|
|
573
|
+
switch (tag >>> 3) {
|
|
574
|
+
case 1:
|
|
575
|
+
if (tag !== 8) {
|
|
576
|
+
break;
|
|
577
|
+
}
|
|
578
|
+
message.hash = reader.int32();
|
|
579
|
+
continue;
|
|
580
|
+
case 2:
|
|
581
|
+
if (tag !== 18) {
|
|
582
|
+
break;
|
|
583
|
+
}
|
|
584
|
+
message.prefix = reader.bytes();
|
|
585
|
+
continue;
|
|
586
|
+
case 3:
|
|
587
|
+
if (tag !== 26) {
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
message.suffix = reader.bytes();
|
|
591
|
+
continue;
|
|
592
|
+
}
|
|
593
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
594
|
+
break;
|
|
595
|
+
}
|
|
596
|
+
reader.skipType(tag & 7);
|
|
597
|
+
}
|
|
598
|
+
return message;
|
|
599
|
+
},
|
|
600
|
+
fromJSON(object) {
|
|
601
|
+
return {
|
|
602
|
+
hash: isSet(object.hash) ? hashOpFromJSON(object.hash) : 0,
|
|
603
|
+
prefix: isSet(object.prefix) ? bytesFromBase64(object.prefix) : new Uint8Array(),
|
|
604
|
+
suffix: isSet(object.suffix) ? bytesFromBase64(object.suffix) : new Uint8Array(),
|
|
605
|
+
};
|
|
606
|
+
},
|
|
607
|
+
toJSON(message) {
|
|
608
|
+
const obj = {};
|
|
609
|
+
message.hash !== undefined && (obj.hash = hashOpToJSON(message.hash));
|
|
610
|
+
message.prefix !== undefined &&
|
|
611
|
+
(obj.prefix = base64FromBytes(message.prefix !== undefined ? message.prefix : new Uint8Array()));
|
|
612
|
+
message.suffix !== undefined &&
|
|
613
|
+
(obj.suffix = base64FromBytes(message.suffix !== undefined ? message.suffix : new Uint8Array()));
|
|
614
|
+
return obj;
|
|
615
|
+
},
|
|
616
|
+
create(base) {
|
|
617
|
+
return exports.InnerOp.fromPartial(base ?? {});
|
|
618
|
+
},
|
|
619
|
+
fromPartial(object) {
|
|
620
|
+
const message = createBaseInnerOp();
|
|
621
|
+
message.hash = object.hash ?? 0;
|
|
622
|
+
message.prefix = object.prefix ?? new Uint8Array();
|
|
623
|
+
message.suffix = object.suffix ?? new Uint8Array();
|
|
624
|
+
return message;
|
|
625
|
+
},
|
|
626
|
+
};
|
|
627
|
+
function createBaseProofSpec() {
|
|
628
|
+
return { leafSpec: undefined, innerSpec: undefined, maxDepth: 0, minDepth: 0, prehashKeyBeforeComparison: false };
|
|
629
|
+
}
|
|
630
|
+
exports.ProofSpec = {
|
|
631
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
632
|
+
if (message.leafSpec !== undefined) {
|
|
633
|
+
exports.LeafOp.encode(message.leafSpec, writer.uint32(10).fork()).ldelim();
|
|
634
|
+
}
|
|
635
|
+
if (message.innerSpec !== undefined) {
|
|
636
|
+
exports.InnerSpec.encode(message.innerSpec, writer.uint32(18).fork()).ldelim();
|
|
637
|
+
}
|
|
638
|
+
if (message.maxDepth !== 0) {
|
|
639
|
+
writer.uint32(24).int32(message.maxDepth);
|
|
640
|
+
}
|
|
641
|
+
if (message.minDepth !== 0) {
|
|
642
|
+
writer.uint32(32).int32(message.minDepth);
|
|
643
|
+
}
|
|
644
|
+
if (message.prehashKeyBeforeComparison === true) {
|
|
645
|
+
writer.uint32(40).bool(message.prehashKeyBeforeComparison);
|
|
646
|
+
}
|
|
647
|
+
return writer;
|
|
648
|
+
},
|
|
649
|
+
decode(input, length) {
|
|
650
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
651
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
652
|
+
const message = createBaseProofSpec();
|
|
653
|
+
while (reader.pos < end) {
|
|
654
|
+
const tag = reader.uint32();
|
|
655
|
+
switch (tag >>> 3) {
|
|
656
|
+
case 1:
|
|
657
|
+
if (tag !== 10) {
|
|
658
|
+
break;
|
|
659
|
+
}
|
|
660
|
+
message.leafSpec = exports.LeafOp.decode(reader, reader.uint32());
|
|
661
|
+
continue;
|
|
662
|
+
case 2:
|
|
663
|
+
if (tag !== 18) {
|
|
664
|
+
break;
|
|
665
|
+
}
|
|
666
|
+
message.innerSpec = exports.InnerSpec.decode(reader, reader.uint32());
|
|
667
|
+
continue;
|
|
668
|
+
case 3:
|
|
669
|
+
if (tag !== 24) {
|
|
670
|
+
break;
|
|
671
|
+
}
|
|
672
|
+
message.maxDepth = reader.int32();
|
|
673
|
+
continue;
|
|
674
|
+
case 4:
|
|
675
|
+
if (tag !== 32) {
|
|
676
|
+
break;
|
|
677
|
+
}
|
|
678
|
+
message.minDepth = reader.int32();
|
|
679
|
+
continue;
|
|
680
|
+
case 5:
|
|
681
|
+
if (tag !== 40) {
|
|
682
|
+
break;
|
|
683
|
+
}
|
|
684
|
+
message.prehashKeyBeforeComparison = reader.bool();
|
|
685
|
+
continue;
|
|
686
|
+
}
|
|
687
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
688
|
+
break;
|
|
689
|
+
}
|
|
690
|
+
reader.skipType(tag & 7);
|
|
691
|
+
}
|
|
692
|
+
return message;
|
|
693
|
+
},
|
|
694
|
+
fromJSON(object) {
|
|
695
|
+
return {
|
|
696
|
+
leafSpec: isSet(object.leafSpec) ? exports.LeafOp.fromJSON(object.leafSpec) : undefined,
|
|
697
|
+
innerSpec: isSet(object.innerSpec) ? exports.InnerSpec.fromJSON(object.innerSpec) : undefined,
|
|
698
|
+
maxDepth: isSet(object.maxDepth) ? Number(object.maxDepth) : 0,
|
|
699
|
+
minDepth: isSet(object.minDepth) ? Number(object.minDepth) : 0,
|
|
700
|
+
prehashKeyBeforeComparison: isSet(object.prehashKeyBeforeComparison)
|
|
701
|
+
? Boolean(object.prehashKeyBeforeComparison)
|
|
702
|
+
: false,
|
|
703
|
+
};
|
|
704
|
+
},
|
|
705
|
+
toJSON(message) {
|
|
706
|
+
const obj = {};
|
|
707
|
+
message.leafSpec !== undefined && (obj.leafSpec = message.leafSpec ? exports.LeafOp.toJSON(message.leafSpec) : undefined);
|
|
708
|
+
message.innerSpec !== undefined &&
|
|
709
|
+
(obj.innerSpec = message.innerSpec ? exports.InnerSpec.toJSON(message.innerSpec) : undefined);
|
|
710
|
+
message.maxDepth !== undefined && (obj.maxDepth = Math.round(message.maxDepth));
|
|
711
|
+
message.minDepth !== undefined && (obj.minDepth = Math.round(message.minDepth));
|
|
712
|
+
message.prehashKeyBeforeComparison !== undefined &&
|
|
713
|
+
(obj.prehashKeyBeforeComparison = message.prehashKeyBeforeComparison);
|
|
714
|
+
return obj;
|
|
715
|
+
},
|
|
716
|
+
create(base) {
|
|
717
|
+
return exports.ProofSpec.fromPartial(base ?? {});
|
|
718
|
+
},
|
|
719
|
+
fromPartial(object) {
|
|
720
|
+
const message = createBaseProofSpec();
|
|
721
|
+
message.leafSpec = (object.leafSpec !== undefined && object.leafSpec !== null)
|
|
722
|
+
? exports.LeafOp.fromPartial(object.leafSpec)
|
|
723
|
+
: undefined;
|
|
724
|
+
message.innerSpec = (object.innerSpec !== undefined && object.innerSpec !== null)
|
|
725
|
+
? exports.InnerSpec.fromPartial(object.innerSpec)
|
|
726
|
+
: undefined;
|
|
727
|
+
message.maxDepth = object.maxDepth ?? 0;
|
|
728
|
+
message.minDepth = object.minDepth ?? 0;
|
|
729
|
+
message.prehashKeyBeforeComparison = object.prehashKeyBeforeComparison ?? false;
|
|
730
|
+
return message;
|
|
731
|
+
},
|
|
732
|
+
};
|
|
733
|
+
function createBaseInnerSpec() {
|
|
734
|
+
return {
|
|
735
|
+
childOrder: [],
|
|
736
|
+
childSize: 0,
|
|
737
|
+
minPrefixLength: 0,
|
|
738
|
+
maxPrefixLength: 0,
|
|
739
|
+
emptyChild: new Uint8Array(),
|
|
740
|
+
hash: 0,
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
exports.InnerSpec = {
|
|
744
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
745
|
+
writer.uint32(10).fork();
|
|
746
|
+
for (const v of message.childOrder) {
|
|
747
|
+
writer.int32(v);
|
|
748
|
+
}
|
|
749
|
+
writer.ldelim();
|
|
750
|
+
if (message.childSize !== 0) {
|
|
751
|
+
writer.uint32(16).int32(message.childSize);
|
|
752
|
+
}
|
|
753
|
+
if (message.minPrefixLength !== 0) {
|
|
754
|
+
writer.uint32(24).int32(message.minPrefixLength);
|
|
755
|
+
}
|
|
756
|
+
if (message.maxPrefixLength !== 0) {
|
|
757
|
+
writer.uint32(32).int32(message.maxPrefixLength);
|
|
758
|
+
}
|
|
759
|
+
if (message.emptyChild.length !== 0) {
|
|
760
|
+
writer.uint32(42).bytes(message.emptyChild);
|
|
761
|
+
}
|
|
762
|
+
if (message.hash !== 0) {
|
|
763
|
+
writer.uint32(48).int32(message.hash);
|
|
764
|
+
}
|
|
765
|
+
return writer;
|
|
766
|
+
},
|
|
767
|
+
decode(input, length) {
|
|
768
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
769
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
770
|
+
const message = createBaseInnerSpec();
|
|
771
|
+
while (reader.pos < end) {
|
|
772
|
+
const tag = reader.uint32();
|
|
773
|
+
switch (tag >>> 3) {
|
|
774
|
+
case 1:
|
|
775
|
+
if (tag === 8) {
|
|
776
|
+
message.childOrder.push(reader.int32());
|
|
777
|
+
continue;
|
|
778
|
+
}
|
|
779
|
+
if (tag === 10) {
|
|
780
|
+
const end2 = reader.uint32() + reader.pos;
|
|
781
|
+
while (reader.pos < end2) {
|
|
782
|
+
message.childOrder.push(reader.int32());
|
|
783
|
+
}
|
|
784
|
+
continue;
|
|
785
|
+
}
|
|
786
|
+
break;
|
|
787
|
+
case 2:
|
|
788
|
+
if (tag !== 16) {
|
|
789
|
+
break;
|
|
790
|
+
}
|
|
791
|
+
message.childSize = reader.int32();
|
|
792
|
+
continue;
|
|
793
|
+
case 3:
|
|
794
|
+
if (tag !== 24) {
|
|
795
|
+
break;
|
|
796
|
+
}
|
|
797
|
+
message.minPrefixLength = reader.int32();
|
|
798
|
+
continue;
|
|
799
|
+
case 4:
|
|
800
|
+
if (tag !== 32) {
|
|
801
|
+
break;
|
|
802
|
+
}
|
|
803
|
+
message.maxPrefixLength = reader.int32();
|
|
804
|
+
continue;
|
|
805
|
+
case 5:
|
|
806
|
+
if (tag !== 42) {
|
|
807
|
+
break;
|
|
808
|
+
}
|
|
809
|
+
message.emptyChild = reader.bytes();
|
|
810
|
+
continue;
|
|
811
|
+
case 6:
|
|
812
|
+
if (tag !== 48) {
|
|
813
|
+
break;
|
|
814
|
+
}
|
|
815
|
+
message.hash = reader.int32();
|
|
816
|
+
continue;
|
|
817
|
+
}
|
|
818
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
819
|
+
break;
|
|
820
|
+
}
|
|
821
|
+
reader.skipType(tag & 7);
|
|
822
|
+
}
|
|
823
|
+
return message;
|
|
824
|
+
},
|
|
825
|
+
fromJSON(object) {
|
|
826
|
+
return {
|
|
827
|
+
childOrder: Array.isArray(object?.childOrder) ? object.childOrder.map((e) => Number(e)) : [],
|
|
828
|
+
childSize: isSet(object.childSize) ? Number(object.childSize) : 0,
|
|
829
|
+
minPrefixLength: isSet(object.minPrefixLength) ? Number(object.minPrefixLength) : 0,
|
|
830
|
+
maxPrefixLength: isSet(object.maxPrefixLength) ? Number(object.maxPrefixLength) : 0,
|
|
831
|
+
emptyChild: isSet(object.emptyChild) ? bytesFromBase64(object.emptyChild) : new Uint8Array(),
|
|
832
|
+
hash: isSet(object.hash) ? hashOpFromJSON(object.hash) : 0,
|
|
833
|
+
};
|
|
834
|
+
},
|
|
835
|
+
toJSON(message) {
|
|
836
|
+
const obj = {};
|
|
837
|
+
if (message.childOrder) {
|
|
838
|
+
obj.childOrder = message.childOrder.map((e) => Math.round(e));
|
|
839
|
+
}
|
|
840
|
+
else {
|
|
841
|
+
obj.childOrder = [];
|
|
842
|
+
}
|
|
843
|
+
message.childSize !== undefined && (obj.childSize = Math.round(message.childSize));
|
|
844
|
+
message.minPrefixLength !== undefined && (obj.minPrefixLength = Math.round(message.minPrefixLength));
|
|
845
|
+
message.maxPrefixLength !== undefined && (obj.maxPrefixLength = Math.round(message.maxPrefixLength));
|
|
846
|
+
message.emptyChild !== undefined &&
|
|
847
|
+
(obj.emptyChild = base64FromBytes(message.emptyChild !== undefined ? message.emptyChild : new Uint8Array()));
|
|
848
|
+
message.hash !== undefined && (obj.hash = hashOpToJSON(message.hash));
|
|
849
|
+
return obj;
|
|
850
|
+
},
|
|
851
|
+
create(base) {
|
|
852
|
+
return exports.InnerSpec.fromPartial(base ?? {});
|
|
853
|
+
},
|
|
854
|
+
fromPartial(object) {
|
|
855
|
+
const message = createBaseInnerSpec();
|
|
856
|
+
message.childOrder = object.childOrder?.map((e) => e) || [];
|
|
857
|
+
message.childSize = object.childSize ?? 0;
|
|
858
|
+
message.minPrefixLength = object.minPrefixLength ?? 0;
|
|
859
|
+
message.maxPrefixLength = object.maxPrefixLength ?? 0;
|
|
860
|
+
message.emptyChild = object.emptyChild ?? new Uint8Array();
|
|
861
|
+
message.hash = object.hash ?? 0;
|
|
862
|
+
return message;
|
|
863
|
+
},
|
|
864
|
+
};
|
|
865
|
+
function createBaseBatchProof() {
|
|
866
|
+
return { entries: [] };
|
|
867
|
+
}
|
|
868
|
+
exports.BatchProof = {
|
|
869
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
870
|
+
for (const v of message.entries) {
|
|
871
|
+
exports.BatchEntry.encode(v, writer.uint32(10).fork()).ldelim();
|
|
872
|
+
}
|
|
873
|
+
return writer;
|
|
874
|
+
},
|
|
875
|
+
decode(input, length) {
|
|
876
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
877
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
878
|
+
const message = createBaseBatchProof();
|
|
879
|
+
while (reader.pos < end) {
|
|
880
|
+
const tag = reader.uint32();
|
|
881
|
+
switch (tag >>> 3) {
|
|
882
|
+
case 1:
|
|
883
|
+
if (tag !== 10) {
|
|
884
|
+
break;
|
|
885
|
+
}
|
|
886
|
+
message.entries.push(exports.BatchEntry.decode(reader, reader.uint32()));
|
|
887
|
+
continue;
|
|
888
|
+
}
|
|
889
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
890
|
+
break;
|
|
891
|
+
}
|
|
892
|
+
reader.skipType(tag & 7);
|
|
893
|
+
}
|
|
894
|
+
return message;
|
|
895
|
+
},
|
|
896
|
+
fromJSON(object) {
|
|
897
|
+
return { entries: Array.isArray(object?.entries) ? object.entries.map((e) => exports.BatchEntry.fromJSON(e)) : [] };
|
|
898
|
+
},
|
|
899
|
+
toJSON(message) {
|
|
900
|
+
const obj = {};
|
|
901
|
+
if (message.entries) {
|
|
902
|
+
obj.entries = message.entries.map((e) => e ? exports.BatchEntry.toJSON(e) : undefined);
|
|
903
|
+
}
|
|
904
|
+
else {
|
|
905
|
+
obj.entries = [];
|
|
906
|
+
}
|
|
907
|
+
return obj;
|
|
908
|
+
},
|
|
909
|
+
create(base) {
|
|
910
|
+
return exports.BatchProof.fromPartial(base ?? {});
|
|
911
|
+
},
|
|
912
|
+
fromPartial(object) {
|
|
913
|
+
const message = createBaseBatchProof();
|
|
914
|
+
message.entries = object.entries?.map((e) => exports.BatchEntry.fromPartial(e)) || [];
|
|
915
|
+
return message;
|
|
916
|
+
},
|
|
917
|
+
};
|
|
918
|
+
function createBaseBatchEntry() {
|
|
919
|
+
return { exist: undefined, nonexist: undefined };
|
|
920
|
+
}
|
|
921
|
+
exports.BatchEntry = {
|
|
922
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
923
|
+
if (message.exist !== undefined) {
|
|
924
|
+
exports.ExistenceProof.encode(message.exist, writer.uint32(10).fork()).ldelim();
|
|
925
|
+
}
|
|
926
|
+
if (message.nonexist !== undefined) {
|
|
927
|
+
exports.NonExistenceProof.encode(message.nonexist, writer.uint32(18).fork()).ldelim();
|
|
928
|
+
}
|
|
929
|
+
return writer;
|
|
930
|
+
},
|
|
931
|
+
decode(input, length) {
|
|
932
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
933
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
934
|
+
const message = createBaseBatchEntry();
|
|
935
|
+
while (reader.pos < end) {
|
|
936
|
+
const tag = reader.uint32();
|
|
937
|
+
switch (tag >>> 3) {
|
|
938
|
+
case 1:
|
|
939
|
+
if (tag !== 10) {
|
|
940
|
+
break;
|
|
941
|
+
}
|
|
942
|
+
message.exist = exports.ExistenceProof.decode(reader, reader.uint32());
|
|
943
|
+
continue;
|
|
944
|
+
case 2:
|
|
945
|
+
if (tag !== 18) {
|
|
946
|
+
break;
|
|
947
|
+
}
|
|
948
|
+
message.nonexist = exports.NonExistenceProof.decode(reader, reader.uint32());
|
|
949
|
+
continue;
|
|
950
|
+
}
|
|
951
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
952
|
+
break;
|
|
953
|
+
}
|
|
954
|
+
reader.skipType(tag & 7);
|
|
955
|
+
}
|
|
956
|
+
return message;
|
|
957
|
+
},
|
|
958
|
+
fromJSON(object) {
|
|
959
|
+
return {
|
|
960
|
+
exist: isSet(object.exist) ? exports.ExistenceProof.fromJSON(object.exist) : undefined,
|
|
961
|
+
nonexist: isSet(object.nonexist) ? exports.NonExistenceProof.fromJSON(object.nonexist) : undefined,
|
|
962
|
+
};
|
|
963
|
+
},
|
|
964
|
+
toJSON(message) {
|
|
965
|
+
const obj = {};
|
|
966
|
+
message.exist !== undefined && (obj.exist = message.exist ? exports.ExistenceProof.toJSON(message.exist) : undefined);
|
|
967
|
+
message.nonexist !== undefined &&
|
|
968
|
+
(obj.nonexist = message.nonexist ? exports.NonExistenceProof.toJSON(message.nonexist) : undefined);
|
|
969
|
+
return obj;
|
|
970
|
+
},
|
|
971
|
+
create(base) {
|
|
972
|
+
return exports.BatchEntry.fromPartial(base ?? {});
|
|
973
|
+
},
|
|
974
|
+
fromPartial(object) {
|
|
975
|
+
const message = createBaseBatchEntry();
|
|
976
|
+
message.exist = (object.exist !== undefined && object.exist !== null)
|
|
977
|
+
? exports.ExistenceProof.fromPartial(object.exist)
|
|
978
|
+
: undefined;
|
|
979
|
+
message.nonexist = (object.nonexist !== undefined && object.nonexist !== null)
|
|
980
|
+
? exports.NonExistenceProof.fromPartial(object.nonexist)
|
|
981
|
+
: undefined;
|
|
982
|
+
return message;
|
|
983
|
+
},
|
|
984
|
+
};
|
|
985
|
+
function createBaseCompressedBatchProof() {
|
|
986
|
+
return { entries: [], lookupInners: [] };
|
|
987
|
+
}
|
|
988
|
+
exports.CompressedBatchProof = {
|
|
989
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
990
|
+
for (const v of message.entries) {
|
|
991
|
+
exports.CompressedBatchEntry.encode(v, writer.uint32(10).fork()).ldelim();
|
|
992
|
+
}
|
|
993
|
+
for (const v of message.lookupInners) {
|
|
994
|
+
exports.InnerOp.encode(v, writer.uint32(18).fork()).ldelim();
|
|
995
|
+
}
|
|
996
|
+
return writer;
|
|
997
|
+
},
|
|
998
|
+
decode(input, length) {
|
|
999
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1000
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1001
|
+
const message = createBaseCompressedBatchProof();
|
|
1002
|
+
while (reader.pos < end) {
|
|
1003
|
+
const tag = reader.uint32();
|
|
1004
|
+
switch (tag >>> 3) {
|
|
1005
|
+
case 1:
|
|
1006
|
+
if (tag !== 10) {
|
|
1007
|
+
break;
|
|
1008
|
+
}
|
|
1009
|
+
message.entries.push(exports.CompressedBatchEntry.decode(reader, reader.uint32()));
|
|
1010
|
+
continue;
|
|
1011
|
+
case 2:
|
|
1012
|
+
if (tag !== 18) {
|
|
1013
|
+
break;
|
|
1014
|
+
}
|
|
1015
|
+
message.lookupInners.push(exports.InnerOp.decode(reader, reader.uint32()));
|
|
1016
|
+
continue;
|
|
1017
|
+
}
|
|
1018
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1019
|
+
break;
|
|
1020
|
+
}
|
|
1021
|
+
reader.skipType(tag & 7);
|
|
1022
|
+
}
|
|
1023
|
+
return message;
|
|
1024
|
+
},
|
|
1025
|
+
fromJSON(object) {
|
|
1026
|
+
return {
|
|
1027
|
+
entries: Array.isArray(object?.entries) ? object.entries.map((e) => exports.CompressedBatchEntry.fromJSON(e)) : [],
|
|
1028
|
+
lookupInners: Array.isArray(object?.lookupInners) ? object.lookupInners.map((e) => exports.InnerOp.fromJSON(e)) : [],
|
|
1029
|
+
};
|
|
1030
|
+
},
|
|
1031
|
+
toJSON(message) {
|
|
1032
|
+
const obj = {};
|
|
1033
|
+
if (message.entries) {
|
|
1034
|
+
obj.entries = message.entries.map((e) => e ? exports.CompressedBatchEntry.toJSON(e) : undefined);
|
|
1035
|
+
}
|
|
1036
|
+
else {
|
|
1037
|
+
obj.entries = [];
|
|
1038
|
+
}
|
|
1039
|
+
if (message.lookupInners) {
|
|
1040
|
+
obj.lookupInners = message.lookupInners.map((e) => e ? exports.InnerOp.toJSON(e) : undefined);
|
|
1041
|
+
}
|
|
1042
|
+
else {
|
|
1043
|
+
obj.lookupInners = [];
|
|
1044
|
+
}
|
|
1045
|
+
return obj;
|
|
1046
|
+
},
|
|
1047
|
+
create(base) {
|
|
1048
|
+
return exports.CompressedBatchProof.fromPartial(base ?? {});
|
|
1049
|
+
},
|
|
1050
|
+
fromPartial(object) {
|
|
1051
|
+
const message = createBaseCompressedBatchProof();
|
|
1052
|
+
message.entries = object.entries?.map((e) => exports.CompressedBatchEntry.fromPartial(e)) || [];
|
|
1053
|
+
message.lookupInners = object.lookupInners?.map((e) => exports.InnerOp.fromPartial(e)) || [];
|
|
1054
|
+
return message;
|
|
1055
|
+
},
|
|
1056
|
+
};
|
|
1057
|
+
function createBaseCompressedBatchEntry() {
|
|
1058
|
+
return { exist: undefined, nonexist: undefined };
|
|
1059
|
+
}
|
|
1060
|
+
exports.CompressedBatchEntry = {
|
|
1061
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1062
|
+
if (message.exist !== undefined) {
|
|
1063
|
+
exports.CompressedExistenceProof.encode(message.exist, writer.uint32(10).fork()).ldelim();
|
|
1064
|
+
}
|
|
1065
|
+
if (message.nonexist !== undefined) {
|
|
1066
|
+
exports.CompressedNonExistenceProof.encode(message.nonexist, writer.uint32(18).fork()).ldelim();
|
|
1067
|
+
}
|
|
1068
|
+
return writer;
|
|
1069
|
+
},
|
|
1070
|
+
decode(input, length) {
|
|
1071
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1072
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1073
|
+
const message = createBaseCompressedBatchEntry();
|
|
1074
|
+
while (reader.pos < end) {
|
|
1075
|
+
const tag = reader.uint32();
|
|
1076
|
+
switch (tag >>> 3) {
|
|
1077
|
+
case 1:
|
|
1078
|
+
if (tag !== 10) {
|
|
1079
|
+
break;
|
|
1080
|
+
}
|
|
1081
|
+
message.exist = exports.CompressedExistenceProof.decode(reader, reader.uint32());
|
|
1082
|
+
continue;
|
|
1083
|
+
case 2:
|
|
1084
|
+
if (tag !== 18) {
|
|
1085
|
+
break;
|
|
1086
|
+
}
|
|
1087
|
+
message.nonexist = exports.CompressedNonExistenceProof.decode(reader, reader.uint32());
|
|
1088
|
+
continue;
|
|
1089
|
+
}
|
|
1090
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1091
|
+
break;
|
|
1092
|
+
}
|
|
1093
|
+
reader.skipType(tag & 7);
|
|
1094
|
+
}
|
|
1095
|
+
return message;
|
|
1096
|
+
},
|
|
1097
|
+
fromJSON(object) {
|
|
1098
|
+
return {
|
|
1099
|
+
exist: isSet(object.exist) ? exports.CompressedExistenceProof.fromJSON(object.exist) : undefined,
|
|
1100
|
+
nonexist: isSet(object.nonexist) ? exports.CompressedNonExistenceProof.fromJSON(object.nonexist) : undefined,
|
|
1101
|
+
};
|
|
1102
|
+
},
|
|
1103
|
+
toJSON(message) {
|
|
1104
|
+
const obj = {};
|
|
1105
|
+
message.exist !== undefined &&
|
|
1106
|
+
(obj.exist = message.exist ? exports.CompressedExistenceProof.toJSON(message.exist) : undefined);
|
|
1107
|
+
message.nonexist !== undefined &&
|
|
1108
|
+
(obj.nonexist = message.nonexist ? exports.CompressedNonExistenceProof.toJSON(message.nonexist) : undefined);
|
|
1109
|
+
return obj;
|
|
1110
|
+
},
|
|
1111
|
+
create(base) {
|
|
1112
|
+
return exports.CompressedBatchEntry.fromPartial(base ?? {});
|
|
1113
|
+
},
|
|
1114
|
+
fromPartial(object) {
|
|
1115
|
+
const message = createBaseCompressedBatchEntry();
|
|
1116
|
+
message.exist = (object.exist !== undefined && object.exist !== null)
|
|
1117
|
+
? exports.CompressedExistenceProof.fromPartial(object.exist)
|
|
1118
|
+
: undefined;
|
|
1119
|
+
message.nonexist = (object.nonexist !== undefined && object.nonexist !== null)
|
|
1120
|
+
? exports.CompressedNonExistenceProof.fromPartial(object.nonexist)
|
|
1121
|
+
: undefined;
|
|
1122
|
+
return message;
|
|
1123
|
+
},
|
|
1124
|
+
};
|
|
1125
|
+
function createBaseCompressedExistenceProof() {
|
|
1126
|
+
return { key: new Uint8Array(), value: new Uint8Array(), leaf: undefined, path: [] };
|
|
1127
|
+
}
|
|
1128
|
+
exports.CompressedExistenceProof = {
|
|
1129
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1130
|
+
if (message.key.length !== 0) {
|
|
1131
|
+
writer.uint32(10).bytes(message.key);
|
|
1132
|
+
}
|
|
1133
|
+
if (message.value.length !== 0) {
|
|
1134
|
+
writer.uint32(18).bytes(message.value);
|
|
1135
|
+
}
|
|
1136
|
+
if (message.leaf !== undefined) {
|
|
1137
|
+
exports.LeafOp.encode(message.leaf, writer.uint32(26).fork()).ldelim();
|
|
1138
|
+
}
|
|
1139
|
+
writer.uint32(34).fork();
|
|
1140
|
+
for (const v of message.path) {
|
|
1141
|
+
writer.int32(v);
|
|
1142
|
+
}
|
|
1143
|
+
writer.ldelim();
|
|
1144
|
+
return writer;
|
|
1145
|
+
},
|
|
1146
|
+
decode(input, length) {
|
|
1147
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1148
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1149
|
+
const message = createBaseCompressedExistenceProof();
|
|
1150
|
+
while (reader.pos < end) {
|
|
1151
|
+
const tag = reader.uint32();
|
|
1152
|
+
switch (tag >>> 3) {
|
|
1153
|
+
case 1:
|
|
1154
|
+
if (tag !== 10) {
|
|
1155
|
+
break;
|
|
1156
|
+
}
|
|
1157
|
+
message.key = reader.bytes();
|
|
1158
|
+
continue;
|
|
1159
|
+
case 2:
|
|
1160
|
+
if (tag !== 18) {
|
|
1161
|
+
break;
|
|
1162
|
+
}
|
|
1163
|
+
message.value = reader.bytes();
|
|
1164
|
+
continue;
|
|
1165
|
+
case 3:
|
|
1166
|
+
if (tag !== 26) {
|
|
1167
|
+
break;
|
|
1168
|
+
}
|
|
1169
|
+
message.leaf = exports.LeafOp.decode(reader, reader.uint32());
|
|
1170
|
+
continue;
|
|
1171
|
+
case 4:
|
|
1172
|
+
if (tag === 32) {
|
|
1173
|
+
message.path.push(reader.int32());
|
|
1174
|
+
continue;
|
|
1175
|
+
}
|
|
1176
|
+
if (tag === 34) {
|
|
1177
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1178
|
+
while (reader.pos < end2) {
|
|
1179
|
+
message.path.push(reader.int32());
|
|
1180
|
+
}
|
|
1181
|
+
continue;
|
|
1182
|
+
}
|
|
1183
|
+
break;
|
|
1184
|
+
}
|
|
1185
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1186
|
+
break;
|
|
1187
|
+
}
|
|
1188
|
+
reader.skipType(tag & 7);
|
|
1189
|
+
}
|
|
1190
|
+
return message;
|
|
1191
|
+
},
|
|
1192
|
+
fromJSON(object) {
|
|
1193
|
+
return {
|
|
1194
|
+
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
|
|
1195
|
+
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(),
|
|
1196
|
+
leaf: isSet(object.leaf) ? exports.LeafOp.fromJSON(object.leaf) : undefined,
|
|
1197
|
+
path: Array.isArray(object?.path) ? object.path.map((e) => Number(e)) : [],
|
|
1198
|
+
};
|
|
1199
|
+
},
|
|
1200
|
+
toJSON(message) {
|
|
1201
|
+
const obj = {};
|
|
1202
|
+
message.key !== undefined &&
|
|
1203
|
+
(obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
|
|
1204
|
+
message.value !== undefined &&
|
|
1205
|
+
(obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
1206
|
+
message.leaf !== undefined && (obj.leaf = message.leaf ? exports.LeafOp.toJSON(message.leaf) : undefined);
|
|
1207
|
+
if (message.path) {
|
|
1208
|
+
obj.path = message.path.map((e) => Math.round(e));
|
|
1209
|
+
}
|
|
1210
|
+
else {
|
|
1211
|
+
obj.path = [];
|
|
1212
|
+
}
|
|
1213
|
+
return obj;
|
|
1214
|
+
},
|
|
1215
|
+
create(base) {
|
|
1216
|
+
return exports.CompressedExistenceProof.fromPartial(base ?? {});
|
|
1217
|
+
},
|
|
1218
|
+
fromPartial(object) {
|
|
1219
|
+
const message = createBaseCompressedExistenceProof();
|
|
1220
|
+
message.key = object.key ?? new Uint8Array();
|
|
1221
|
+
message.value = object.value ?? new Uint8Array();
|
|
1222
|
+
message.leaf = (object.leaf !== undefined && object.leaf !== null) ? exports.LeafOp.fromPartial(object.leaf) : undefined;
|
|
1223
|
+
message.path = object.path?.map((e) => e) || [];
|
|
1224
|
+
return message;
|
|
1225
|
+
},
|
|
1226
|
+
};
|
|
1227
|
+
function createBaseCompressedNonExistenceProof() {
|
|
1228
|
+
return { key: new Uint8Array(), left: undefined, right: undefined };
|
|
1229
|
+
}
|
|
1230
|
+
exports.CompressedNonExistenceProof = {
|
|
1231
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1232
|
+
if (message.key.length !== 0) {
|
|
1233
|
+
writer.uint32(10).bytes(message.key);
|
|
1234
|
+
}
|
|
1235
|
+
if (message.left !== undefined) {
|
|
1236
|
+
exports.CompressedExistenceProof.encode(message.left, writer.uint32(18).fork()).ldelim();
|
|
1237
|
+
}
|
|
1238
|
+
if (message.right !== undefined) {
|
|
1239
|
+
exports.CompressedExistenceProof.encode(message.right, writer.uint32(26).fork()).ldelim();
|
|
1240
|
+
}
|
|
1241
|
+
return writer;
|
|
1242
|
+
},
|
|
1243
|
+
decode(input, length) {
|
|
1244
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1245
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1246
|
+
const message = createBaseCompressedNonExistenceProof();
|
|
1247
|
+
while (reader.pos < end) {
|
|
1248
|
+
const tag = reader.uint32();
|
|
1249
|
+
switch (tag >>> 3) {
|
|
1250
|
+
case 1:
|
|
1251
|
+
if (tag !== 10) {
|
|
1252
|
+
break;
|
|
1253
|
+
}
|
|
1254
|
+
message.key = reader.bytes();
|
|
1255
|
+
continue;
|
|
1256
|
+
case 2:
|
|
1257
|
+
if (tag !== 18) {
|
|
1258
|
+
break;
|
|
1259
|
+
}
|
|
1260
|
+
message.left = exports.CompressedExistenceProof.decode(reader, reader.uint32());
|
|
1261
|
+
continue;
|
|
1262
|
+
case 3:
|
|
1263
|
+
if (tag !== 26) {
|
|
1264
|
+
break;
|
|
1265
|
+
}
|
|
1266
|
+
message.right = exports.CompressedExistenceProof.decode(reader, reader.uint32());
|
|
1267
|
+
continue;
|
|
1268
|
+
}
|
|
1269
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1270
|
+
break;
|
|
1271
|
+
}
|
|
1272
|
+
reader.skipType(tag & 7);
|
|
1273
|
+
}
|
|
1274
|
+
return message;
|
|
1275
|
+
},
|
|
1276
|
+
fromJSON(object) {
|
|
1277
|
+
return {
|
|
1278
|
+
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
|
|
1279
|
+
left: isSet(object.left) ? exports.CompressedExistenceProof.fromJSON(object.left) : undefined,
|
|
1280
|
+
right: isSet(object.right) ? exports.CompressedExistenceProof.fromJSON(object.right) : undefined,
|
|
1281
|
+
};
|
|
1282
|
+
},
|
|
1283
|
+
toJSON(message) {
|
|
1284
|
+
const obj = {};
|
|
1285
|
+
message.key !== undefined &&
|
|
1286
|
+
(obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
|
|
1287
|
+
message.left !== undefined && (obj.left = message.left ? exports.CompressedExistenceProof.toJSON(message.left) : undefined);
|
|
1288
|
+
message.right !== undefined &&
|
|
1289
|
+
(obj.right = message.right ? exports.CompressedExistenceProof.toJSON(message.right) : undefined);
|
|
1290
|
+
return obj;
|
|
1291
|
+
},
|
|
1292
|
+
create(base) {
|
|
1293
|
+
return exports.CompressedNonExistenceProof.fromPartial(base ?? {});
|
|
1294
|
+
},
|
|
1295
|
+
fromPartial(object) {
|
|
1296
|
+
const message = createBaseCompressedNonExistenceProof();
|
|
1297
|
+
message.key = object.key ?? new Uint8Array();
|
|
1298
|
+
message.left = (object.left !== undefined && object.left !== null)
|
|
1299
|
+
? exports.CompressedExistenceProof.fromPartial(object.left)
|
|
1300
|
+
: undefined;
|
|
1301
|
+
message.right = (object.right !== undefined && object.right !== null)
|
|
1302
|
+
? exports.CompressedExistenceProof.fromPartial(object.right)
|
|
1303
|
+
: undefined;
|
|
1304
|
+
return message;
|
|
1305
|
+
},
|
|
1306
|
+
};
|
|
1307
|
+
var tsProtoGlobalThis = (() => {
|
|
1308
|
+
if (typeof globalThis !== "undefined") {
|
|
1309
|
+
return globalThis;
|
|
1310
|
+
}
|
|
1311
|
+
if (typeof self !== "undefined") {
|
|
1312
|
+
return self;
|
|
1313
|
+
}
|
|
1314
|
+
if (typeof window !== "undefined") {
|
|
1315
|
+
return window;
|
|
1316
|
+
}
|
|
1317
|
+
if (typeof global !== "undefined") {
|
|
1318
|
+
return global;
|
|
1319
|
+
}
|
|
1320
|
+
throw "Unable to locate global object";
|
|
1321
|
+
})();
|
|
1322
|
+
function bytesFromBase64(b64) {
|
|
1323
|
+
if (tsProtoGlobalThis.Buffer) {
|
|
1324
|
+
return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64"));
|
|
1325
|
+
}
|
|
1326
|
+
else {
|
|
1327
|
+
const bin = tsProtoGlobalThis.atob(b64);
|
|
1328
|
+
const arr = new Uint8Array(bin.length);
|
|
1329
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
1330
|
+
arr[i] = bin.charCodeAt(i);
|
|
1331
|
+
}
|
|
1332
|
+
return arr;
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
function base64FromBytes(arr) {
|
|
1336
|
+
if (tsProtoGlobalThis.Buffer) {
|
|
1337
|
+
return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
|
|
1338
|
+
}
|
|
1339
|
+
else {
|
|
1340
|
+
const bin = [];
|
|
1341
|
+
arr.forEach((byte) => {
|
|
1342
|
+
bin.push(String.fromCharCode(byte));
|
|
1343
|
+
});
|
|
1344
|
+
return tsProtoGlobalThis.btoa(bin.join(""));
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
1348
|
+
minimal_1.default.util.Long = long_1.default;
|
|
1349
|
+
minimal_1.default.configure();
|
|
1350
|
+
}
|
|
1351
|
+
function isSet(value) {
|
|
1352
|
+
return value !== null && value !== undefined;
|
|
1353
|
+
}
|