@iconlake/client 0.0.2 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.ts +13 -12
- package/cosmos.auth.v1beta1/index.ts +0 -0
- package/cosmos.auth.v1beta1/module.ts +2 -0
- package/cosmos.auth.v1beta1/registry.ts +0 -0
- package/cosmos.auth.v1beta1/rest.ts +113 -3
- package/cosmos.auth.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +157 -4
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +172 -0
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.auth.v1beta1/types.ts +2 -0
- package/cosmos.authz.v1beta1/index.ts +0 -0
- package/cosmos.authz.v1beta1/module.ts +24 -24
- package/cosmos.authz.v1beta1/registry.ts +2 -2
- package/cosmos.authz.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
- package/cosmos.authz.v1beta1/types.ts +0 -0
- package/cosmos.bank.v1beta1/index.ts +0 -0
- package/cosmos.bank.v1beta1/module.ts +0 -0
- package/cosmos.bank.v1beta1/registry.ts +0 -0
- package/cosmos.bank.v1beta1/rest.ts +99 -6
- package/cosmos.bank.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +24 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +9 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +25 -4
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +356 -5
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +305 -1
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.bank.v1beta1/types.ts +0 -0
- package/cosmos.base.node.v1beta1/index.ts +0 -0
- package/cosmos.base.node.v1beta1/module.ts +0 -0
- package/cosmos.base.node.v1beta1/registry.ts +0 -0
- package/cosmos.base.node.v1beta1/types.ts +0 -0
- package/cosmos.base.tendermint.v1beta1/index.ts +0 -0
- package/cosmos.base.tendermint.v1beta1/module.ts +0 -0
- package/cosmos.base.tendermint.v1beta1/registry.ts +0 -0
- package/cosmos.base.tendermint.v1beta1/rest.ts +21 -30
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +16 -46
- package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.ts +1 -1
- package/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.ts +1 -1
- package/cosmos.base.tendermint.v1beta1/types.ts +0 -0
- package/cosmos.consensus.v1/index.ts +6 -0
- package/cosmos.consensus.v1/module.ts +129 -0
- package/cosmos.consensus.v1/registry.ts +9 -0
- package/cosmos.consensus.v1/rest.ts +268 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +147 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +196 -0
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.consensus.v1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/annotations.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/http.ts +589 -0
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.consensus.v1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.consensus.v1/types/tendermint/types/params.ts +498 -0
- package/cosmos.consensus.v1/types.ts +5 -0
- package/cosmos.crisis.v1beta1/index.ts +0 -0
- package/cosmos.crisis.v1beta1/module.ts +34 -1
- package/cosmos.crisis.v1beta1/registry.ts +2 -0
- package/cosmos.crisis.v1beta1/rest.ts +19 -0
- package/cosmos.crisis.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +140 -1
- package/cosmos.crisis.v1beta1/types.ts +0 -0
- package/cosmos.distribution.v1beta1/index.ts +0 -0
- package/cosmos.distribution.v1beta1/module.ts +79 -13
- package/cosmos.distribution.v1beta1/registry.ts +6 -2
- package/cosmos.distribution.v1beta1/rest.ts +66 -7
- package/cosmos.distribution.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +19 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +158 -1
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +300 -3
- package/cosmos.distribution.v1beta1/types.ts +0 -0
- package/cosmos.evidence.v1beta1/index.ts +0 -0
- package/cosmos.evidence.v1beta1/module.ts +0 -0
- package/cosmos.evidence.v1beta1/registry.ts +0 -0
- package/cosmos.evidence.v1beta1/rest.ts +4 -3
- package/cosmos.evidence.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +7 -1
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +25 -3
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +2 -0
- package/cosmos.evidence.v1beta1/types.ts +0 -0
- package/cosmos.feegrant.v1beta1/index.ts +0 -0
- package/cosmos.feegrant.v1beta1/module.ts +24 -24
- package/cosmos.feegrant.v1beta1/registry.ts +2 -2
- package/cosmos.feegrant.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.feegrant.v1beta1/types.ts +0 -0
- package/cosmos.gov.v1/index.ts +0 -0
- package/cosmos.gov.v1/module.ts +67 -32
- package/cosmos.gov.v1/registry.ts +4 -2
- package/cosmos.gov.v1/rest.ts +155 -41
- package/cosmos.gov.v1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
- package/cosmos.gov.v1/types.ts +2 -0
- package/cosmos.gov.v1beta1/index.ts +0 -0
- package/cosmos.gov.v1beta1/module.ts +29 -29
- package/cosmos.gov.v1beta1/registry.ts +2 -2
- package/cosmos.gov.v1beta1/rest.ts +65 -96
- package/cosmos.gov.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +45 -10
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +4 -2
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +16 -1
- package/cosmos.gov.v1beta1/types.ts +0 -0
- package/cosmos.group.v1/index.ts +0 -0
- package/cosmos.group.v1/module.ts +160 -158
- package/cosmos.group.v1/registry.ts +14 -14
- package/cosmos.group.v1/rest.ts +68 -9
- package/cosmos.group.v1/types/amino/amino.ts +2 -0
- package/cosmos.group.v1/types/cosmos/group/v1/events.ts +89 -1
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +155 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
- package/cosmos.group.v1/types.ts +2 -0
- package/cosmos.mint.v1beta1/index.ts +0 -0
- package/cosmos.mint.v1beta1/module.ts +0 -0
- package/cosmos.mint.v1beta1/registry.ts +0 -0
- package/cosmos.mint.v1beta1/rest.ts +9 -1
- package/cosmos.mint.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +172 -0
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.mint.v1beta1/types.ts +0 -0
- package/cosmos.nft.v1beta1/index.ts +0 -0
- package/cosmos.nft.v1beta1/module.ts +0 -0
- package/cosmos.nft.v1beta1/registry.ts +0 -0
- package/cosmos.nft.v1beta1/rest.ts +18 -22
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +10 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +1 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +20 -0
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.nft.v1beta1/types.ts +0 -0
- package/cosmos.params.v1beta1/index.ts +0 -0
- package/cosmos.params.v1beta1/module.ts +0 -0
- package/cosmos.params.v1beta1/registry.ts +0 -0
- package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.params.v1beta1/types.ts +0 -0
- package/cosmos.slashing.v1beta1/index.ts +0 -0
- package/cosmos.slashing.v1beta1/module.ts +0 -0
- package/cosmos.slashing.v1beta1/registry.ts +0 -0
- package/cosmos.slashing.v1beta1/rest.ts +8 -0
- package/cosmos.slashing.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +139 -0
- package/cosmos.slashing.v1beta1/types.ts +0 -0
- package/cosmos.staking.v1beta1/index.ts +0 -0
- package/cosmos.staking.v1beta1/module.ts +66 -64
- package/cosmos.staking.v1beta1/registry.ts +6 -6
- package/cosmos.staking.v1beta1/rest.ts +51 -10
- package/cosmos.staking.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +36 -5
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +206 -3
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +138 -1
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +4525 -0
- package/cosmos.staking.v1beta1/types/tendermint/crypto/keys.ts +1 -1
- package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +498 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/types.ts +1 -1
- package/cosmos.staking.v1beta1/types.ts +2 -0
- package/cosmos.tx.v1beta1/index.ts +0 -0
- package/cosmos.tx.v1beta1/module.ts +0 -0
- package/cosmos.tx.v1beta1/registry.ts +0 -0
- package/cosmos.tx.v1beta1/rest.ts +180 -19
- package/cosmos.tx.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +524 -2
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +704 -333
- package/cosmos.tx.v1beta1/types/tendermint/crypto/keys.ts +1 -1
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +9 -25
- package/cosmos.tx.v1beta1/types/tendermint/types/types.ts +1 -1
- package/cosmos.tx.v1beta1/types.ts +0 -0
- package/cosmos.upgrade.v1beta1/index.ts +0 -0
- package/cosmos.upgrade.v1beta1/module.ts +0 -0
- package/cosmos.upgrade.v1beta1/registry.ts +0 -0
- package/cosmos.upgrade.v1beta1/rest.ts +0 -1
- package/cosmos.upgrade.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/cosmos.upgrade.v1beta1/types.ts +0 -0
- package/cosmos.vesting.v1beta1/index.ts +0 -0
- package/cosmos.vesting.v1beta1/module.ts +24 -24
- package/cosmos.vesting.v1beta1/registry.ts +2 -2
- package/cosmos.vesting.v1beta1/rest.ts +4 -1
- package/cosmos.vesting.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.ts +2 -0
- package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.ts +6 -1
- package/cosmos.vesting.v1beta1/types.ts +0 -0
- package/dist/client.js +135 -0
- package/dist/cosmos.auth.v1beta1/index.js +5 -0
- package/dist/cosmos.auth.v1beta1/module.js +64 -0
- package/dist/cosmos.auth.v1beta1/registry.js +2 -0
- package/dist/cosmos.auth.v1beta1/rest.js +228 -0
- package/dist/cosmos.auth.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +344 -0
- package/dist/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.js +67 -0
- package/dist/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +969 -0
- package/dist/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +105 -0
- package/dist/cosmos.auth.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/dist/cosmos.auth.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.auth.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.auth.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.auth.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.auth.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.auth.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.auth.v1beta1/types.js +5 -0
- package/dist/cosmos.authz.v1beta1/index.js +5 -0
- package/dist/cosmos.authz.v1beta1/module.js +140 -0
- package/dist/cosmos.authz.v1beta1/registry.js +9 -0
- package/dist/cosmos.authz.v1beta1/rest.js +131 -0
- package/dist/cosmos.authz.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/authz.js +244 -0
- package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/event.js +128 -0
- package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/genesis.js +54 -0
- package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/query.js +394 -0
- package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.js +362 -0
- package/dist/cosmos.authz.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.authz.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.authz.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.authz.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.authz.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.authz.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.authz.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.authz.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.authz.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.authz.v1beta1/types.js +7 -0
- package/dist/cosmos.bank.v1beta1/index.js +5 -0
- package/dist/cosmos.bank.v1beta1/module.js +125 -0
- package/dist/cosmos.bank.v1beta1/registry.js +7 -0
- package/dist/cosmos.bank.v1beta1/rest.js +253 -0
- package/dist/cosmos.bank.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +66 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.js +455 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +170 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +1243 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +424 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.bank.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.bank.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.bank.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.bank.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.bank.v1beta1/types.js +11 -0
- package/dist/cosmos.base.node.v1beta1/index.js +5 -0
- package/dist/cosmos.base.node.v1beta1/module.js +55 -0
- package/dist/cosmos.base.node.v1beta1/registry.js +2 -0
- package/dist/cosmos.base.node.v1beta1/rest.js +100 -0
- package/dist/cosmos.base.node.v1beta1/types/cosmos/base/node/v1beta1/query.js +91 -0
- package/dist/cosmos.base.node.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.base.node.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.base.node.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.base.node.v1beta1/types.js +1 -0
- package/dist/cosmos.base.tendermint.v1beta1/index.js +5 -0
- package/dist/cosmos.base.tendermint.v1beta1/module.js +70 -0
- package/dist/cosmos.base.tendermint.v1beta1/registry.js +2 -0
- package/dist/cosmos.base.tendermint.v1beta1/rest.js +209 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.js +1281 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/types.js +350 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.js +100 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/proof.js +356 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/p2p/types.js +352 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/types/block.js +86 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/types/evidence.js +343 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.js +1207 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/types/validator.js +254 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/version/types.js +133 -0
- package/dist/cosmos.base.tendermint.v1beta1/types.js +8 -0
- package/dist/cosmos.consensus.v1/index.js +5 -0
- package/dist/cosmos.consensus.v1/module.js +81 -0
- package/dist/cosmos.consensus.v1/registry.js +5 -0
- package/dist/cosmos.consensus.v1/rest.js +100 -0
- package/dist/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +94 -0
- package/dist/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +129 -0
- package/dist/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.consensus.v1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.consensus.v1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.consensus.v1/types/google/api/http.js +260 -0
- package/dist/cosmos.consensus.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.consensus.v1/types/google/protobuf/duration.js +84 -0
- package/dist/cosmos.consensus.v1/types/tendermint/types/params.js +369 -0
- package/dist/cosmos.consensus.v1/types.js +1 -0
- package/dist/cosmos.crisis.v1beta1/index.js +5 -0
- package/dist/cosmos.crisis.v1beta1/module.js +104 -0
- package/dist/cosmos.crisis.v1beta1/registry.js +7 -0
- package/dist/cosmos.crisis.v1beta1/rest.js +83 -0
- package/dist/cosmos.crisis.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.crisis.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/genesis.js +51 -0
- package/dist/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +206 -0
- package/dist/cosmos.crisis.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.crisis.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.crisis.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.crisis.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.crisis.v1beta1/types.js +1 -0
- package/dist/cosmos.distribution.v1beta1/index.js +5 -0
- package/dist/cosmos.distribution.v1beta1/module.js +235 -0
- package/dist/cosmos.distribution.v1beta1/registry.js +15 -0
- package/dist/cosmos.distribution.v1beta1/rest.js +228 -0
- package/dist/cosmos.distribution.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.distribution.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.distribution.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.js +737 -0
- package/dist/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.js +656 -0
- package/dist/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +1046 -0
- package/dist/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +595 -0
- package/dist/cosmos.distribution.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.distribution.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.distribution.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.distribution.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.distribution.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.distribution.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.distribution.v1beta1/types.js +20 -0
- package/dist/cosmos.evidence.v1beta1/index.js +5 -0
- package/dist/cosmos.evidence.v1beta1/module.js +84 -0
- package/dist/cosmos.evidence.v1beta1/registry.js +5 -0
- package/dist/cosmos.evidence.v1beta1/rest.js +116 -0
- package/dist/cosmos.evidence.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.evidence.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.js +124 -0
- package/dist/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/genesis.js +50 -0
- package/dist/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +265 -0
- package/dist/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.js +154 -0
- package/dist/cosmos.evidence.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.evidence.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.evidence.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.evidence.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.evidence.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.evidence.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.evidence.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.evidence.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.evidence.v1beta1/types.js +2 -0
- package/dist/cosmos.feegrant.v1beta1/index.js +5 -0
- package/dist/cosmos.feegrant.v1beta1/module.js +113 -0
- package/dist/cosmos.feegrant.v1beta1/registry.js +7 -0
- package/dist/cosmos.feegrant.v1beta1/rest.js +130 -0
- package/dist/cosmos.feegrant.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/feegrant.js +307 -0
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/genesis.js +52 -0
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/query.js +357 -0
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/tx.js +205 -0
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.feegrant.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.feegrant.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.feegrant.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.feegrant.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.feegrant.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.feegrant.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.feegrant.v1beta1/types/google/protobuf/duration.js +84 -0
- package/dist/cosmos.feegrant.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.feegrant.v1beta1/types.js +5 -0
- package/dist/cosmos.gov.v1/index.js +5 -0
- package/dist/cosmos.gov.v1/module.js +192 -0
- package/dist/cosmos.gov.v1/registry.js +13 -0
- package/dist/cosmos.gov.v1/rest.js +242 -0
- package/dist/cosmos.gov.v1/types/amino/amino.js +2 -0
- package/dist/cosmos.gov.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.gov.v1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +174 -0
- package/dist/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +945 -0
- package/dist/cosmos.gov.v1/types/cosmos/gov/v1/query.js +928 -0
- package/dist/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +701 -0
- package/dist/cosmos.gov.v1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.gov.v1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.gov.v1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.gov.v1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.gov.v1/types/google/api/http.js +260 -0
- package/dist/cosmos.gov.v1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.gov.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.gov.v1/types/google/protobuf/duration.js +84 -0
- package/dist/cosmos.gov.v1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.gov.v1/types.js +10 -0
- package/dist/cosmos.gov.v1beta1/index.js +5 -0
- package/dist/cosmos.gov.v1beta1/module.js +169 -0
- package/dist/cosmos.gov.v1beta1/registry.js +11 -0
- package/dist/cosmos.gov.v1beta1/rest.js +242 -0
- package/dist/cosmos.gov.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.gov.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.gov.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.js +162 -0
- package/dist/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.js +832 -0
- package/dist/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.js +917 -0
- package/dist/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.js +467 -0
- package/dist/cosmos.gov.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.gov.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.gov.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.gov.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.gov.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.gov.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.gov.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.gov.v1beta1/types/google/protobuf/duration.js +84 -0
- package/dist/cosmos.gov.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.gov.v1beta1/types.js +10 -0
- package/dist/cosmos.group.v1/index.js +5 -0
- package/dist/cosmos.group.v1/module.js +423 -0
- package/dist/cosmos.group.v1/registry.js +31 -0
- package/dist/cosmos.group.v1/rest.js +366 -0
- package/dist/cosmos.group.v1/types/amino/amino.js +2 -0
- package/dist/cosmos.group.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.group.v1/types/cosmos/group/v1/events.js +497 -0
- package/dist/cosmos.group.v1/types/cosmos/group/v1/genesis.js +177 -0
- package/dist/cosmos.group.v1/types/cosmos/group/v1/query.js +1578 -0
- package/dist/cosmos.group.v1/types/cosmos/group/v1/tx.js +1639 -0
- package/dist/cosmos.group.v1/types/cosmos/group/v1/types.js +1125 -0
- package/dist/cosmos.group.v1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.group.v1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.group.v1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.group.v1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.group.v1/types/google/api/http.js +260 -0
- package/dist/cosmos.group.v1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.group.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.group.v1/types/google/protobuf/duration.js +84 -0
- package/dist/cosmos.group.v1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.group.v1/types.js +22 -0
- package/dist/cosmos.mint.v1beta1/index.js +5 -0
- package/dist/cosmos.mint.v1beta1/module.js +60 -0
- package/dist/cosmos.mint.v1beta1/registry.js +2 -0
- package/dist/cosmos.mint.v1beta1/rest.js +128 -0
- package/dist/cosmos.mint.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.js +63 -0
- package/dist/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.js +179 -0
- package/dist/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/query.js +298 -0
- package/dist/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +105 -0
- package/dist/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.mint.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.mint.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.mint.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.mint.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.mint.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.mint.v1beta1/types.js +3 -0
- package/dist/cosmos.nft.v1beta1/index.js +5 -0
- package/dist/cosmos.nft.v1beta1/module.js +68 -0
- package/dist/cosmos.nft.v1beta1/registry.js +2 -0
- package/dist/cosmos.nft.v1beta1/rest.js +187 -0
- package/dist/cosmos.nft.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.nft.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.js +198 -0
- package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.js +126 -0
- package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/nft.js +183 -0
- package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.js +752 -0
- package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/tx.js +120 -0
- package/dist/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.nft.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.nft.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.nft.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.nft.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.nft.v1beta1/types.js +7 -0
- package/dist/cosmos.params.v1beta1/index.js +5 -0
- package/dist/cosmos.params.v1beta1/module.js +62 -0
- package/dist/cosmos.params.v1beta1/registry.js +2 -0
- package/dist/cosmos.params.v1beta1/rest.js +116 -0
- package/dist/cosmos.params.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.params.v1beta1/types/cosmos/params/v1beta1/params.js +133 -0
- package/dist/cosmos.params.v1beta1/types/cosmos/params/v1beta1/query.js +257 -0
- package/dist/cosmos.params.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.params.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.params.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.params.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.params.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.params.v1beta1/types.js +4 -0
- package/dist/cosmos.slashing.v1beta1/index.js +5 -0
- package/dist/cosmos.slashing.v1beta1/module.js +92 -0
- package/dist/cosmos.slashing.v1beta1/registry.js +5 -0
- package/dist/cosmos.slashing.v1beta1/rest.js +129 -0
- package/dist/cosmos.slashing.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.slashing.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.slashing.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.js +279 -0
- package/dist/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/query.js +300 -0
- package/dist/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/slashing.js +275 -0
- package/dist/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +185 -0
- package/dist/cosmos.slashing.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.slashing.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.slashing.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.slashing.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.slashing.v1beta1/types/google/protobuf/duration.js +84 -0
- package/dist/cosmos.slashing.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.slashing.v1beta1/types.js +6 -0
- package/dist/cosmos.staking.v1beta1/index.js +5 -0
- package/dist/cosmos.staking.v1beta1/module.js +245 -0
- package/dist/cosmos.staking.v1beta1/registry.js +15 -0
- package/dist/cosmos.staking.v1beta1/rest.js +308 -0
- package/dist/cosmos.staking.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/authz.js +184 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.js +259 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.js +1568 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +1614 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +861 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.staking.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.staking.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.staking.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.staking.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.staking.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.staking.v1beta1/types/google/protobuf/duration.js +84 -0
- package/dist/cosmos.staking.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.staking.v1beta1/types/tendermint/abci/types.js +3812 -0
- package/dist/cosmos.staking.v1beta1/types/tendermint/crypto/keys.js +100 -0
- package/dist/cosmos.staking.v1beta1/types/tendermint/crypto/proof.js +356 -0
- package/dist/cosmos.staking.v1beta1/types/tendermint/types/params.js +369 -0
- package/dist/cosmos.staking.v1beta1/types/tendermint/types/types.js +1207 -0
- package/dist/cosmos.staking.v1beta1/types/tendermint/types/validator.js +254 -0
- package/dist/cosmos.staking.v1beta1/types/tendermint/version/types.js +133 -0
- package/dist/cosmos.staking.v1beta1/types.js +25 -0
- package/dist/cosmos.tx.v1beta1/index.js +5 -0
- package/dist/cosmos.tx.v1beta1/module.js +82 -0
- package/dist/cosmos.tx.v1beta1/registry.js +2 -0
- package/dist/cosmos.tx.v1beta1/rest.js +320 -0
- package/dist/cosmos.tx.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.tx.v1beta1/types/cosmos/base/abci/v1beta1/abci.js +803 -0
- package/dist/cosmos.tx.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.tx.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.tx.v1beta1/types/cosmos/crypto/multisig/v1beta1/multisig.js +147 -0
- package/dist/cosmos.tx.v1beta1/types/cosmos/tx/signing/v1beta1/signing.js +449 -0
- package/dist/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +1160 -0
- package/dist/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/tx.js +959 -0
- package/dist/cosmos.tx.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.tx.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.tx.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.tx.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.tx.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.tx.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.tx.v1beta1/types/google/protobuf/duration.js +84 -0
- package/dist/cosmos.tx.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/abci/types.js +3812 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/crypto/keys.js +100 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/crypto/proof.js +356 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/types/block.js +86 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/types/evidence.js +343 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/types/params.js +369 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/types/types.js +1207 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/types/validator.js +254 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/version/types.js +133 -0
- package/dist/cosmos.tx.v1beta1/types.js +14 -0
- package/dist/cosmos.upgrade.v1beta1/index.js +5 -0
- package/dist/cosmos.upgrade.v1beta1/module.js +113 -0
- package/dist/cosmos.upgrade.v1beta1/registry.js +7 -0
- package/dist/cosmos.upgrade.v1beta1/rest.js +162 -0
- package/dist/cosmos.upgrade.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.upgrade.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/query.js +501 -0
- package/dist/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.js +183 -0
- package/dist/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
- package/dist/cosmos.upgrade.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.upgrade.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.upgrade.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.upgrade.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.upgrade.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.upgrade.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.upgrade.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.upgrade.v1beta1/types.js +5 -0
- package/dist/cosmos.vesting.v1beta1/index.js +5 -0
- package/dist/cosmos.vesting.v1beta1/module.js +140 -0
- package/dist/cosmos.vesting.v1beta1/registry.js +9 -0
- package/dist/cosmos.vesting.v1beta1/rest.js +83 -0
- package/dist/cosmos.vesting.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +344 -0
- package/dist/cosmos.vesting.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.vesting.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.js +383 -0
- package/dist/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.js +422 -0
- package/dist/cosmos.vesting.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.vesting.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.vesting.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.vesting.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.vesting.v1beta1/types.js +7 -0
- package/dist/env.js +1 -0
- package/dist/helpers.js +11 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/index.js +5 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/module.js +58 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/registry.js +2 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/rest.js +123 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/gogoproto/gogo.js +2 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/google/api/annotations.js +2 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/google/api/http.js +260 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/any.js +99 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/controller.js +47 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/query.js +193 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +277 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/v1/packet.js +192 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types.js +2 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/index.js +5 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/module.js +58 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/registry.js +2 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/rest.js +100 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/types/gogoproto/gogo.js +2 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/types/google/api/annotations.js +2 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/types/google/api/http.js +260 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/host.js +63 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/query.js +94 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/types.js +2 -0
- package/dist/ibc.applications.transfer.v1/index.js +5 -0
- package/dist/ibc.applications.transfer.v1/module.js +64 -0
- package/dist/ibc.applications.transfer.v1/registry.js +2 -0
- package/dist/ibc.applications.transfer.v1/rest.js +171 -0
- package/dist/ibc.applications.transfer.v1/types/amino/amino.js +2 -0
- package/dist/ibc.applications.transfer.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/ibc.applications.transfer.v1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
- package/dist/ibc.applications.transfer.v1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/ibc.applications.transfer.v1/types/gogoproto/gogo.js +2 -0
- package/dist/ibc.applications.transfer.v1/types/google/api/annotations.js +2 -0
- package/dist/ibc.applications.transfer.v1/types/google/api/http.js +260 -0
- package/dist/ibc.applications.transfer.v1/types/google/protobuf/any.js +99 -0
- package/dist/ibc.applications.transfer.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/ibc.applications.transfer.v1/types/google/protobuf/timestamp.js +84 -0
- package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +135 -0
- package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +90 -0
- package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +574 -0
- package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/transfer.js +110 -0
- package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/tx.js +204 -0
- package/dist/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.js +448 -0
- package/dist/ibc.applications.transfer.v1/types.js +5 -0
- package/dist/ibc.core.channel.v1/index.js +5 -0
- package/dist/ibc.core.channel.v1/module.js +72 -0
- package/dist/ibc.core.channel.v1/registry.js +2 -0
- package/dist/ibc.core.channel.v1/rest.js +323 -0
- package/dist/ibc.core.channel.v1/types/amino/amino.js +2 -0
- package/dist/ibc.core.channel.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
- package/dist/ibc.core.channel.v1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/ibc.core.channel.v1/types/gogoproto/gogo.js +2 -0
- package/dist/ibc.core.channel.v1/types/google/api/annotations.js +2 -0
- package/dist/ibc.core.channel.v1/types/google/api/http.js +260 -0
- package/dist/ibc.core.channel.v1/types/google/protobuf/any.js +99 -0
- package/dist/ibc.core.channel.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/ibc.core.channel.v1/types/google/protobuf/timestamp.js +84 -0
- package/dist/ibc.core.channel.v1/types/ibc/core/channel/v1/channel.js +714 -0
- package/dist/ibc.core.channel.v1/types/ibc/core/channel/v1/genesis.js +254 -0
- package/dist/ibc.core.channel.v1/types/ibc/core/channel/v1/query.js +1866 -0
- package/dist/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +1436 -0
- package/dist/ibc.core.channel.v1/types/ibc/core/client/v1/client.js +448 -0
- package/dist/ibc.core.channel.v1/types.js +9 -0
- package/dist/ibc.core.client.v1/index.js +5 -0
- package/dist/ibc.core.client.v1/module.js +74 -0
- package/dist/ibc.core.client.v1/registry.js +2 -0
- package/dist/ibc.core.client.v1/rest.js +218 -0
- package/dist/ibc.core.client.v1/types/amino/amino.js +2 -0
- package/dist/ibc.core.client.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
- package/dist/ibc.core.client.v1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/ibc.core.client.v1/types/gogoproto/gogo.js +2 -0
- package/dist/ibc.core.client.v1/types/google/api/annotations.js +2 -0
- package/dist/ibc.core.client.v1/types/google/api/http.js +260 -0
- package/dist/ibc.core.client.v1/types/google/protobuf/any.js +99 -0
- package/dist/ibc.core.client.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/ibc.core.client.v1/types/google/protobuf/timestamp.js +84 -0
- package/dist/ibc.core.client.v1/types/ibc/core/client/v1/client.js +448 -0
- package/dist/ibc.core.client.v1/types/ibc/core/client/v1/genesis.js +287 -0
- package/dist/ibc.core.client.v1/types/ibc/core/client/v1/query.js +1026 -0
- package/dist/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +510 -0
- package/dist/ibc.core.client.v1/types.js +10 -0
- package/dist/ibc.core.connection.v1/index.js +5 -0
- package/dist/ibc.core.connection.v1/module.js +70 -0
- package/dist/ibc.core.connection.v1/registry.js +2 -0
- package/dist/ibc.core.connection.v1/rest.js +191 -0
- package/dist/ibc.core.connection.v1/types/amino/amino.js +2 -0
- package/dist/ibc.core.connection.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/ibc.core.connection.v1/types/cosmos/ics23/v1/proofs.js +1126 -0
- package/dist/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
- package/dist/ibc.core.connection.v1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/ibc.core.connection.v1/types/gogoproto/gogo.js +2 -0
- package/dist/ibc.core.connection.v1/types/google/api/annotations.js +2 -0
- package/dist/ibc.core.connection.v1/types/google/api/http.js +260 -0
- package/dist/ibc.core.connection.v1/types/google/protobuf/any.js +99 -0
- package/dist/ibc.core.connection.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/ibc.core.connection.v1/types/google/protobuf/timestamp.js +84 -0
- package/dist/ibc.core.connection.v1/types/ibc/core/client/v1/client.js +448 -0
- package/dist/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +223 -0
- package/dist/ibc.core.connection.v1/types/ibc/core/connection/v1/connection.js +537 -0
- package/dist/ibc.core.connection.v1/types/ibc/core/connection/v1/genesis.js +120 -0
- package/dist/ibc.core.connection.v1/types/ibc/core/connection/v1/query.js +766 -0
- package/dist/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +731 -0
- package/dist/ibc.core.connection.v1/types.js +8 -0
- package/dist/iconlake.drop/index.js +5 -0
- package/dist/iconlake.drop/module.js +86 -0
- package/dist/iconlake.drop/registry.js +5 -0
- package/dist/iconlake.drop/rest.js +128 -0
- package/dist/iconlake.drop/types/amino/amino.js +2 -0
- package/dist/iconlake.drop/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/iconlake.drop/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/iconlake.drop/types/cosmos_proto/cosmos.js +171 -0
- package/dist/iconlake.drop/types/gogoproto/gogo.js +2 -0
- package/dist/iconlake.drop/types/google/api/annotations.js +2 -0
- package/dist/iconlake.drop/types/google/api/http.js +260 -0
- package/dist/iconlake.drop/types/google/protobuf/descriptor.js +2830 -0
- package/dist/iconlake.drop/types/iconlake/drop/genesis.js +67 -0
- package/dist/iconlake.drop/types/iconlake/drop/info.js +84 -0
- package/dist/iconlake.drop/types/iconlake/drop/params.js +36 -0
- package/dist/iconlake.drop/types/iconlake/drop/query.js +294 -0
- package/dist/iconlake.drop/types/iconlake/drop/tx.js +152 -0
- package/dist/iconlake.drop/types.js +3 -0
- package/dist/iconlake.icon/index.js +5 -0
- package/dist/iconlake.icon/module.js +88 -0
- package/dist/iconlake.icon/registry.js +5 -0
- package/dist/iconlake.icon/rest.js +115 -0
- package/dist/iconlake.icon/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/iconlake.icon/types/gogoproto/gogo.js +2 -0
- package/dist/iconlake.icon/types/google/api/annotations.js +2 -0
- package/dist/iconlake.icon/types/google/api/http.js +260 -0
- package/dist/iconlake.icon/types/google/protobuf/descriptor.js +2830 -0
- package/dist/iconlake.icon/types/iconlake/icon/class_data.js +58 -0
- package/dist/iconlake.icon/types/iconlake/icon/genesis.js +50 -0
- package/dist/iconlake.icon/types/iconlake/icon/icon_data.js +76 -0
- package/dist/iconlake.icon/types/iconlake/icon/params.js +36 -0
- package/dist/iconlake.icon/types/iconlake/icon/query.js +204 -0
- package/dist/iconlake.icon/types/iconlake/icon/tx.js +174 -0
- package/dist/iconlake.icon/types.js +4 -0
- package/dist/iconlake.iconlake/index.js +5 -0
- package/dist/iconlake.iconlake/module.js +86 -0
- package/dist/iconlake.iconlake/registry.js +5 -0
- package/dist/iconlake.iconlake/rest.js +128 -0
- package/dist/iconlake.iconlake/types/amino/amino.js +2 -0
- package/dist/iconlake.iconlake/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/iconlake.iconlake/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/iconlake.iconlake/types/cosmos_proto/cosmos.js +171 -0
- package/dist/iconlake.iconlake/types/gogoproto/gogo.js +2 -0
- package/dist/iconlake.iconlake/types/google/api/annotations.js +2 -0
- package/dist/iconlake.iconlake/types/google/api/http.js +260 -0
- package/dist/iconlake.iconlake/types/google/protobuf/descriptor.js +2830 -0
- package/dist/iconlake.iconlake/types/iconlake/iconlake/account.js +84 -0
- package/dist/iconlake.iconlake/types/iconlake/iconlake/genesis.js +67 -0
- package/dist/iconlake.iconlake/types/iconlake/iconlake/params.js +36 -0
- package/dist/iconlake.iconlake/types/iconlake/iconlake/query.js +296 -0
- package/dist/iconlake.iconlake/types/iconlake/iconlake/tx.js +113 -0
- package/dist/iconlake.iconlake/types.js +3 -0
- package/dist/index.js +68 -0
- package/dist/modules.js +1 -0
- package/env.ts +0 -0
- package/helpers.ts +0 -0
- package/ibc.applications.interchain_accounts.controller.v1/index.ts +0 -0
- package/ibc.applications.interchain_accounts.controller.v1/module.ts +0 -0
- package/ibc.applications.interchain_accounts.controller.v1/registry.ts +0 -0
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +1 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +16 -4
- package/ibc.applications.interchain_accounts.controller.v1/types.ts +0 -0
- package/ibc.applications.interchain_accounts.host.v1/index.ts +0 -0
- package/ibc.applications.interchain_accounts.host.v1/module.ts +0 -0
- package/ibc.applications.interchain_accounts.host.v1/registry.ts +0 -0
- package/ibc.applications.interchain_accounts.host.v1/types.ts +0 -0
- package/ibc.applications.transfer.v1/index.ts +0 -0
- package/ibc.applications.transfer.v1/module.ts +5 -34
- package/ibc.applications.transfer.v1/registry.ts +0 -2
- package/ibc.applications.transfer.v1/rest.ts +30 -1
- package/ibc.applications.transfer.v1/types/amino/amino.ts +2 -0
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +178 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +23 -2
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +120 -0
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.applications.transfer.v1/types.ts +4 -0
- package/ibc.core.channel.v1/index.ts +0 -0
- package/ibc.core.channel.v1/module.ts +0 -0
- package/ibc.core.channel.v1/registry.ts +0 -0
- package/ibc.core.channel.v1/rest.ts +1 -0
- package/ibc.core.channel.v1/types/amino/amino.ts +2 -0
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +14 -2
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.channel.v1/types.ts +0 -0
- package/ibc.core.client.v1/index.ts +0 -0
- package/ibc.core.client.v1/module.ts +0 -0
- package/ibc.core.client.v1/registry.ts +0 -0
- package/ibc.core.client.v1/rest.ts +5 -1
- package/ibc.core.client.v1/types/amino/amino.ts +2 -0
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +28 -14
- package/ibc.core.client.v1/types.ts +0 -0
- package/ibc.core.connection.v1/index.ts +0 -0
- package/ibc.core.connection.v1/module.ts +0 -0
- package/ibc.core.connection.v1/registry.ts +0 -0
- package/ibc.core.connection.v1/types/amino/amino.ts +2 -0
- package/ibc.core.connection.v1/types/{proofs.ts → cosmos/ics23/v1/proofs.ts} +1 -1
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +34 -0
- package/ibc.core.connection.v1/types.ts +0 -0
- package/iconlake.drop/index.ts +6 -0
- package/iconlake.drop/module.ts +133 -0
- package/iconlake.drop/registry.ts +9 -0
- package/iconlake.drop/rest.ts +339 -0
- package/iconlake.drop/types/amino/amino.ts +2 -0
- package/iconlake.drop/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/iconlake.drop/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/iconlake.drop/types/cosmos_proto/cosmos.ts +247 -0
- package/iconlake.drop/types/gogoproto/gogo.ts +2 -0
- package/iconlake.drop/types/google/api/annotations.ts +2 -0
- package/iconlake.drop/types/google/api/http.ts +589 -0
- package/iconlake.drop/types/google/protobuf/descriptor.ts +3753 -0
- package/iconlake.drop/types/iconlake/drop/genesis.ts +91 -0
- package/iconlake.drop/types/iconlake/drop/info.ts +114 -0
- package/iconlake.drop/types/iconlake/drop/params.ts +58 -0
- package/iconlake.drop/types/iconlake/drop/query.ts +386 -0
- package/iconlake.drop/types/iconlake/drop/tx.ts +204 -0
- package/iconlake.drop/types.ts +9 -0
- package/iconlake.icon/index.ts +0 -0
- package/iconlake.icon/module.ts +2 -2
- package/iconlake.icon/registry.ts +0 -0
- package/iconlake.icon/rest.ts +6 -5
- package/iconlake.icon/types/iconlake/icon/class_data.ts +82 -0
- package/iconlake.icon/types/iconlake/icon/icon_data.ts +102 -0
- package/iconlake.icon/types/iconlake/icon/tx.ts +1 -146
- package/iconlake.icon/types.ts +3 -3
- package/iconlake.iconlake/index.ts +0 -0
- package/iconlake.iconlake/module.ts +0 -0
- package/iconlake.iconlake/registry.ts +0 -0
- package/iconlake.iconlake/rest.ts +2 -14
- package/iconlake.iconlake/types/amino/amino.ts +2 -0
- package/iconlake.iconlake/types/iconlake/iconlake/account.ts +10 -36
- package/iconlake.iconlake/types/iconlake/iconlake/tx.ts +8 -64
- package/iconlake.iconlake/types.ts +0 -0
- package/index.ts +5 -3
- package/modules.ts +0 -0
- package/package.json +15 -8
- package/tsconfig.json +11 -11
- package/types.d.ts +0 -0
|
@@ -0,0 +1,1126 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export const protobufPackage = "cosmos.ics23.v1";
|
|
4
|
+
export var HashOp;
|
|
5
|
+
(function (HashOp) {
|
|
6
|
+
/** NO_HASH - NO_HASH is the default if no data passed. Note this is an illegal argument some places. */
|
|
7
|
+
HashOp[HashOp["NO_HASH"] = 0] = "NO_HASH";
|
|
8
|
+
HashOp[HashOp["SHA256"] = 1] = "SHA256";
|
|
9
|
+
HashOp[HashOp["SHA512"] = 2] = "SHA512";
|
|
10
|
+
HashOp[HashOp["KECCAK"] = 3] = "KECCAK";
|
|
11
|
+
HashOp[HashOp["RIPEMD160"] = 4] = "RIPEMD160";
|
|
12
|
+
/** BITCOIN - ripemd160(sha256(x)) */
|
|
13
|
+
HashOp[HashOp["BITCOIN"] = 5] = "BITCOIN";
|
|
14
|
+
HashOp[HashOp["SHA512_256"] = 6] = "SHA512_256";
|
|
15
|
+
HashOp[HashOp["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
16
|
+
})(HashOp || (HashOp = {}));
|
|
17
|
+
export function hashOpFromJSON(object) {
|
|
18
|
+
switch (object) {
|
|
19
|
+
case 0:
|
|
20
|
+
case "NO_HASH":
|
|
21
|
+
return HashOp.NO_HASH;
|
|
22
|
+
case 1:
|
|
23
|
+
case "SHA256":
|
|
24
|
+
return HashOp.SHA256;
|
|
25
|
+
case 2:
|
|
26
|
+
case "SHA512":
|
|
27
|
+
return HashOp.SHA512;
|
|
28
|
+
case 3:
|
|
29
|
+
case "KECCAK":
|
|
30
|
+
return HashOp.KECCAK;
|
|
31
|
+
case 4:
|
|
32
|
+
case "RIPEMD160":
|
|
33
|
+
return HashOp.RIPEMD160;
|
|
34
|
+
case 5:
|
|
35
|
+
case "BITCOIN":
|
|
36
|
+
return HashOp.BITCOIN;
|
|
37
|
+
case 6:
|
|
38
|
+
case "SHA512_256":
|
|
39
|
+
return HashOp.SHA512_256;
|
|
40
|
+
case -1:
|
|
41
|
+
case "UNRECOGNIZED":
|
|
42
|
+
default:
|
|
43
|
+
return HashOp.UNRECOGNIZED;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export function hashOpToJSON(object) {
|
|
47
|
+
switch (object) {
|
|
48
|
+
case HashOp.NO_HASH:
|
|
49
|
+
return "NO_HASH";
|
|
50
|
+
case HashOp.SHA256:
|
|
51
|
+
return "SHA256";
|
|
52
|
+
case HashOp.SHA512:
|
|
53
|
+
return "SHA512";
|
|
54
|
+
case HashOp.KECCAK:
|
|
55
|
+
return "KECCAK";
|
|
56
|
+
case HashOp.RIPEMD160:
|
|
57
|
+
return "RIPEMD160";
|
|
58
|
+
case HashOp.BITCOIN:
|
|
59
|
+
return "BITCOIN";
|
|
60
|
+
case HashOp.SHA512_256:
|
|
61
|
+
return "SHA512_256";
|
|
62
|
+
case HashOp.UNRECOGNIZED:
|
|
63
|
+
default:
|
|
64
|
+
return "UNRECOGNIZED";
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* LengthOp defines how to process the key and value of the LeafOp
|
|
69
|
+
* to include length information. After encoding the length with the given
|
|
70
|
+
* algorithm, the length will be prepended to the key and value bytes.
|
|
71
|
+
* (Each one with it's own encoded length)
|
|
72
|
+
*/
|
|
73
|
+
export var LengthOp;
|
|
74
|
+
(function (LengthOp) {
|
|
75
|
+
/** NO_PREFIX - NO_PREFIX don't include any length info */
|
|
76
|
+
LengthOp[LengthOp["NO_PREFIX"] = 0] = "NO_PREFIX";
|
|
77
|
+
/** VAR_PROTO - VAR_PROTO uses protobuf (and go-amino) varint encoding of the length */
|
|
78
|
+
LengthOp[LengthOp["VAR_PROTO"] = 1] = "VAR_PROTO";
|
|
79
|
+
/** VAR_RLP - VAR_RLP uses rlp int encoding of the length */
|
|
80
|
+
LengthOp[LengthOp["VAR_RLP"] = 2] = "VAR_RLP";
|
|
81
|
+
/** FIXED32_BIG - FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer */
|
|
82
|
+
LengthOp[LengthOp["FIXED32_BIG"] = 3] = "FIXED32_BIG";
|
|
83
|
+
/** FIXED32_LITTLE - FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer */
|
|
84
|
+
LengthOp[LengthOp["FIXED32_LITTLE"] = 4] = "FIXED32_LITTLE";
|
|
85
|
+
/** FIXED64_BIG - FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer */
|
|
86
|
+
LengthOp[LengthOp["FIXED64_BIG"] = 5] = "FIXED64_BIG";
|
|
87
|
+
/** FIXED64_LITTLE - FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer */
|
|
88
|
+
LengthOp[LengthOp["FIXED64_LITTLE"] = 6] = "FIXED64_LITTLE";
|
|
89
|
+
/** REQUIRE_32_BYTES - REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) */
|
|
90
|
+
LengthOp[LengthOp["REQUIRE_32_BYTES"] = 7] = "REQUIRE_32_BYTES";
|
|
91
|
+
/** REQUIRE_64_BYTES - REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) */
|
|
92
|
+
LengthOp[LengthOp["REQUIRE_64_BYTES"] = 8] = "REQUIRE_64_BYTES";
|
|
93
|
+
LengthOp[LengthOp["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
94
|
+
})(LengthOp || (LengthOp = {}));
|
|
95
|
+
export function lengthOpFromJSON(object) {
|
|
96
|
+
switch (object) {
|
|
97
|
+
case 0:
|
|
98
|
+
case "NO_PREFIX":
|
|
99
|
+
return LengthOp.NO_PREFIX;
|
|
100
|
+
case 1:
|
|
101
|
+
case "VAR_PROTO":
|
|
102
|
+
return LengthOp.VAR_PROTO;
|
|
103
|
+
case 2:
|
|
104
|
+
case "VAR_RLP":
|
|
105
|
+
return LengthOp.VAR_RLP;
|
|
106
|
+
case 3:
|
|
107
|
+
case "FIXED32_BIG":
|
|
108
|
+
return LengthOp.FIXED32_BIG;
|
|
109
|
+
case 4:
|
|
110
|
+
case "FIXED32_LITTLE":
|
|
111
|
+
return LengthOp.FIXED32_LITTLE;
|
|
112
|
+
case 5:
|
|
113
|
+
case "FIXED64_BIG":
|
|
114
|
+
return LengthOp.FIXED64_BIG;
|
|
115
|
+
case 6:
|
|
116
|
+
case "FIXED64_LITTLE":
|
|
117
|
+
return LengthOp.FIXED64_LITTLE;
|
|
118
|
+
case 7:
|
|
119
|
+
case "REQUIRE_32_BYTES":
|
|
120
|
+
return LengthOp.REQUIRE_32_BYTES;
|
|
121
|
+
case 8:
|
|
122
|
+
case "REQUIRE_64_BYTES":
|
|
123
|
+
return LengthOp.REQUIRE_64_BYTES;
|
|
124
|
+
case -1:
|
|
125
|
+
case "UNRECOGNIZED":
|
|
126
|
+
default:
|
|
127
|
+
return LengthOp.UNRECOGNIZED;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
export function lengthOpToJSON(object) {
|
|
131
|
+
switch (object) {
|
|
132
|
+
case LengthOp.NO_PREFIX:
|
|
133
|
+
return "NO_PREFIX";
|
|
134
|
+
case LengthOp.VAR_PROTO:
|
|
135
|
+
return "VAR_PROTO";
|
|
136
|
+
case LengthOp.VAR_RLP:
|
|
137
|
+
return "VAR_RLP";
|
|
138
|
+
case LengthOp.FIXED32_BIG:
|
|
139
|
+
return "FIXED32_BIG";
|
|
140
|
+
case LengthOp.FIXED32_LITTLE:
|
|
141
|
+
return "FIXED32_LITTLE";
|
|
142
|
+
case LengthOp.FIXED64_BIG:
|
|
143
|
+
return "FIXED64_BIG";
|
|
144
|
+
case LengthOp.FIXED64_LITTLE:
|
|
145
|
+
return "FIXED64_LITTLE";
|
|
146
|
+
case LengthOp.REQUIRE_32_BYTES:
|
|
147
|
+
return "REQUIRE_32_BYTES";
|
|
148
|
+
case LengthOp.REQUIRE_64_BYTES:
|
|
149
|
+
return "REQUIRE_64_BYTES";
|
|
150
|
+
case LengthOp.UNRECOGNIZED:
|
|
151
|
+
default:
|
|
152
|
+
return "UNRECOGNIZED";
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function createBaseExistenceProof() {
|
|
156
|
+
return { key: new Uint8Array(), value: new Uint8Array(), leaf: undefined, path: [] };
|
|
157
|
+
}
|
|
158
|
+
export const ExistenceProof = {
|
|
159
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
160
|
+
if (message.key.length !== 0) {
|
|
161
|
+
writer.uint32(10).bytes(message.key);
|
|
162
|
+
}
|
|
163
|
+
if (message.value.length !== 0) {
|
|
164
|
+
writer.uint32(18).bytes(message.value);
|
|
165
|
+
}
|
|
166
|
+
if (message.leaf !== undefined) {
|
|
167
|
+
LeafOp.encode(message.leaf, writer.uint32(26).fork()).ldelim();
|
|
168
|
+
}
|
|
169
|
+
for (const v of message.path) {
|
|
170
|
+
InnerOp.encode(v, writer.uint32(34).fork()).ldelim();
|
|
171
|
+
}
|
|
172
|
+
return writer;
|
|
173
|
+
},
|
|
174
|
+
decode(input, length) {
|
|
175
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
176
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
177
|
+
const message = createBaseExistenceProof();
|
|
178
|
+
while (reader.pos < end) {
|
|
179
|
+
const tag = reader.uint32();
|
|
180
|
+
switch (tag >>> 3) {
|
|
181
|
+
case 1:
|
|
182
|
+
message.key = reader.bytes();
|
|
183
|
+
break;
|
|
184
|
+
case 2:
|
|
185
|
+
message.value = reader.bytes();
|
|
186
|
+
break;
|
|
187
|
+
case 3:
|
|
188
|
+
message.leaf = LeafOp.decode(reader, reader.uint32());
|
|
189
|
+
break;
|
|
190
|
+
case 4:
|
|
191
|
+
message.path.push(InnerOp.decode(reader, reader.uint32()));
|
|
192
|
+
break;
|
|
193
|
+
default:
|
|
194
|
+
reader.skipType(tag & 7);
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return message;
|
|
199
|
+
},
|
|
200
|
+
fromJSON(object) {
|
|
201
|
+
return {
|
|
202
|
+
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
|
|
203
|
+
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(),
|
|
204
|
+
leaf: isSet(object.leaf) ? LeafOp.fromJSON(object.leaf) : undefined,
|
|
205
|
+
path: Array.isArray(object?.path) ? object.path.map((e) => InnerOp.fromJSON(e)) : [],
|
|
206
|
+
};
|
|
207
|
+
},
|
|
208
|
+
toJSON(message) {
|
|
209
|
+
const obj = {};
|
|
210
|
+
message.key !== undefined
|
|
211
|
+
&& (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
|
|
212
|
+
message.value !== undefined
|
|
213
|
+
&& (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
214
|
+
message.leaf !== undefined && (obj.leaf = message.leaf ? LeafOp.toJSON(message.leaf) : undefined);
|
|
215
|
+
if (message.path) {
|
|
216
|
+
obj.path = message.path.map((e) => e ? InnerOp.toJSON(e) : undefined);
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
obj.path = [];
|
|
220
|
+
}
|
|
221
|
+
return obj;
|
|
222
|
+
},
|
|
223
|
+
fromPartial(object) {
|
|
224
|
+
const message = createBaseExistenceProof();
|
|
225
|
+
message.key = object.key ?? new Uint8Array();
|
|
226
|
+
message.value = object.value ?? new Uint8Array();
|
|
227
|
+
message.leaf = (object.leaf !== undefined && object.leaf !== null) ? LeafOp.fromPartial(object.leaf) : undefined;
|
|
228
|
+
message.path = object.path?.map((e) => InnerOp.fromPartial(e)) || [];
|
|
229
|
+
return message;
|
|
230
|
+
},
|
|
231
|
+
};
|
|
232
|
+
function createBaseNonExistenceProof() {
|
|
233
|
+
return { key: new Uint8Array(), left: undefined, right: undefined };
|
|
234
|
+
}
|
|
235
|
+
export const NonExistenceProof = {
|
|
236
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
237
|
+
if (message.key.length !== 0) {
|
|
238
|
+
writer.uint32(10).bytes(message.key);
|
|
239
|
+
}
|
|
240
|
+
if (message.left !== undefined) {
|
|
241
|
+
ExistenceProof.encode(message.left, writer.uint32(18).fork()).ldelim();
|
|
242
|
+
}
|
|
243
|
+
if (message.right !== undefined) {
|
|
244
|
+
ExistenceProof.encode(message.right, writer.uint32(26).fork()).ldelim();
|
|
245
|
+
}
|
|
246
|
+
return writer;
|
|
247
|
+
},
|
|
248
|
+
decode(input, length) {
|
|
249
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
250
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
251
|
+
const message = createBaseNonExistenceProof();
|
|
252
|
+
while (reader.pos < end) {
|
|
253
|
+
const tag = reader.uint32();
|
|
254
|
+
switch (tag >>> 3) {
|
|
255
|
+
case 1:
|
|
256
|
+
message.key = reader.bytes();
|
|
257
|
+
break;
|
|
258
|
+
case 2:
|
|
259
|
+
message.left = ExistenceProof.decode(reader, reader.uint32());
|
|
260
|
+
break;
|
|
261
|
+
case 3:
|
|
262
|
+
message.right = ExistenceProof.decode(reader, reader.uint32());
|
|
263
|
+
break;
|
|
264
|
+
default:
|
|
265
|
+
reader.skipType(tag & 7);
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
return message;
|
|
270
|
+
},
|
|
271
|
+
fromJSON(object) {
|
|
272
|
+
return {
|
|
273
|
+
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
|
|
274
|
+
left: isSet(object.left) ? ExistenceProof.fromJSON(object.left) : undefined,
|
|
275
|
+
right: isSet(object.right) ? ExistenceProof.fromJSON(object.right) : undefined,
|
|
276
|
+
};
|
|
277
|
+
},
|
|
278
|
+
toJSON(message) {
|
|
279
|
+
const obj = {};
|
|
280
|
+
message.key !== undefined
|
|
281
|
+
&& (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
|
|
282
|
+
message.left !== undefined && (obj.left = message.left ? ExistenceProof.toJSON(message.left) : undefined);
|
|
283
|
+
message.right !== undefined && (obj.right = message.right ? ExistenceProof.toJSON(message.right) : undefined);
|
|
284
|
+
return obj;
|
|
285
|
+
},
|
|
286
|
+
fromPartial(object) {
|
|
287
|
+
const message = createBaseNonExistenceProof();
|
|
288
|
+
message.key = object.key ?? new Uint8Array();
|
|
289
|
+
message.left = (object.left !== undefined && object.left !== null)
|
|
290
|
+
? ExistenceProof.fromPartial(object.left)
|
|
291
|
+
: undefined;
|
|
292
|
+
message.right = (object.right !== undefined && object.right !== null)
|
|
293
|
+
? ExistenceProof.fromPartial(object.right)
|
|
294
|
+
: undefined;
|
|
295
|
+
return message;
|
|
296
|
+
},
|
|
297
|
+
};
|
|
298
|
+
function createBaseCommitmentProof() {
|
|
299
|
+
return { exist: undefined, nonexist: undefined, batch: undefined, compressed: undefined };
|
|
300
|
+
}
|
|
301
|
+
export const CommitmentProof = {
|
|
302
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
303
|
+
if (message.exist !== undefined) {
|
|
304
|
+
ExistenceProof.encode(message.exist, writer.uint32(10).fork()).ldelim();
|
|
305
|
+
}
|
|
306
|
+
if (message.nonexist !== undefined) {
|
|
307
|
+
NonExistenceProof.encode(message.nonexist, writer.uint32(18).fork()).ldelim();
|
|
308
|
+
}
|
|
309
|
+
if (message.batch !== undefined) {
|
|
310
|
+
BatchProof.encode(message.batch, writer.uint32(26).fork()).ldelim();
|
|
311
|
+
}
|
|
312
|
+
if (message.compressed !== undefined) {
|
|
313
|
+
CompressedBatchProof.encode(message.compressed, writer.uint32(34).fork()).ldelim();
|
|
314
|
+
}
|
|
315
|
+
return writer;
|
|
316
|
+
},
|
|
317
|
+
decode(input, length) {
|
|
318
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
319
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
320
|
+
const message = createBaseCommitmentProof();
|
|
321
|
+
while (reader.pos < end) {
|
|
322
|
+
const tag = reader.uint32();
|
|
323
|
+
switch (tag >>> 3) {
|
|
324
|
+
case 1:
|
|
325
|
+
message.exist = ExistenceProof.decode(reader, reader.uint32());
|
|
326
|
+
break;
|
|
327
|
+
case 2:
|
|
328
|
+
message.nonexist = NonExistenceProof.decode(reader, reader.uint32());
|
|
329
|
+
break;
|
|
330
|
+
case 3:
|
|
331
|
+
message.batch = BatchProof.decode(reader, reader.uint32());
|
|
332
|
+
break;
|
|
333
|
+
case 4:
|
|
334
|
+
message.compressed = CompressedBatchProof.decode(reader, reader.uint32());
|
|
335
|
+
break;
|
|
336
|
+
default:
|
|
337
|
+
reader.skipType(tag & 7);
|
|
338
|
+
break;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
return message;
|
|
342
|
+
},
|
|
343
|
+
fromJSON(object) {
|
|
344
|
+
return {
|
|
345
|
+
exist: isSet(object.exist) ? ExistenceProof.fromJSON(object.exist) : undefined,
|
|
346
|
+
nonexist: isSet(object.nonexist) ? NonExistenceProof.fromJSON(object.nonexist) : undefined,
|
|
347
|
+
batch: isSet(object.batch) ? BatchProof.fromJSON(object.batch) : undefined,
|
|
348
|
+
compressed: isSet(object.compressed) ? CompressedBatchProof.fromJSON(object.compressed) : undefined,
|
|
349
|
+
};
|
|
350
|
+
},
|
|
351
|
+
toJSON(message) {
|
|
352
|
+
const obj = {};
|
|
353
|
+
message.exist !== undefined && (obj.exist = message.exist ? ExistenceProof.toJSON(message.exist) : undefined);
|
|
354
|
+
message.nonexist !== undefined
|
|
355
|
+
&& (obj.nonexist = message.nonexist ? NonExistenceProof.toJSON(message.nonexist) : undefined);
|
|
356
|
+
message.batch !== undefined && (obj.batch = message.batch ? BatchProof.toJSON(message.batch) : undefined);
|
|
357
|
+
message.compressed !== undefined
|
|
358
|
+
&& (obj.compressed = message.compressed ? CompressedBatchProof.toJSON(message.compressed) : undefined);
|
|
359
|
+
return obj;
|
|
360
|
+
},
|
|
361
|
+
fromPartial(object) {
|
|
362
|
+
const message = createBaseCommitmentProof();
|
|
363
|
+
message.exist = (object.exist !== undefined && object.exist !== null)
|
|
364
|
+
? ExistenceProof.fromPartial(object.exist)
|
|
365
|
+
: undefined;
|
|
366
|
+
message.nonexist = (object.nonexist !== undefined && object.nonexist !== null)
|
|
367
|
+
? NonExistenceProof.fromPartial(object.nonexist)
|
|
368
|
+
: undefined;
|
|
369
|
+
message.batch = (object.batch !== undefined && object.batch !== null)
|
|
370
|
+
? BatchProof.fromPartial(object.batch)
|
|
371
|
+
: undefined;
|
|
372
|
+
message.compressed = (object.compressed !== undefined && object.compressed !== null)
|
|
373
|
+
? CompressedBatchProof.fromPartial(object.compressed)
|
|
374
|
+
: undefined;
|
|
375
|
+
return message;
|
|
376
|
+
},
|
|
377
|
+
};
|
|
378
|
+
function createBaseLeafOp() {
|
|
379
|
+
return { hash: 0, prehashKey: 0, prehashValue: 0, length: 0, prefix: new Uint8Array() };
|
|
380
|
+
}
|
|
381
|
+
export const LeafOp = {
|
|
382
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
383
|
+
if (message.hash !== 0) {
|
|
384
|
+
writer.uint32(8).int32(message.hash);
|
|
385
|
+
}
|
|
386
|
+
if (message.prehashKey !== 0) {
|
|
387
|
+
writer.uint32(16).int32(message.prehashKey);
|
|
388
|
+
}
|
|
389
|
+
if (message.prehashValue !== 0) {
|
|
390
|
+
writer.uint32(24).int32(message.prehashValue);
|
|
391
|
+
}
|
|
392
|
+
if (message.length !== 0) {
|
|
393
|
+
writer.uint32(32).int32(message.length);
|
|
394
|
+
}
|
|
395
|
+
if (message.prefix.length !== 0) {
|
|
396
|
+
writer.uint32(42).bytes(message.prefix);
|
|
397
|
+
}
|
|
398
|
+
return writer;
|
|
399
|
+
},
|
|
400
|
+
decode(input, length) {
|
|
401
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
402
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
403
|
+
const message = createBaseLeafOp();
|
|
404
|
+
while (reader.pos < end) {
|
|
405
|
+
const tag = reader.uint32();
|
|
406
|
+
switch (tag >>> 3) {
|
|
407
|
+
case 1:
|
|
408
|
+
message.hash = reader.int32();
|
|
409
|
+
break;
|
|
410
|
+
case 2:
|
|
411
|
+
message.prehashKey = reader.int32();
|
|
412
|
+
break;
|
|
413
|
+
case 3:
|
|
414
|
+
message.prehashValue = reader.int32();
|
|
415
|
+
break;
|
|
416
|
+
case 4:
|
|
417
|
+
message.length = reader.int32();
|
|
418
|
+
break;
|
|
419
|
+
case 5:
|
|
420
|
+
message.prefix = reader.bytes();
|
|
421
|
+
break;
|
|
422
|
+
default:
|
|
423
|
+
reader.skipType(tag & 7);
|
|
424
|
+
break;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
return message;
|
|
428
|
+
},
|
|
429
|
+
fromJSON(object) {
|
|
430
|
+
return {
|
|
431
|
+
hash: isSet(object.hash) ? hashOpFromJSON(object.hash) : 0,
|
|
432
|
+
prehashKey: isSet(object.prehashKey) ? hashOpFromJSON(object.prehashKey) : 0,
|
|
433
|
+
prehashValue: isSet(object.prehashValue) ? hashOpFromJSON(object.prehashValue) : 0,
|
|
434
|
+
length: isSet(object.length) ? lengthOpFromJSON(object.length) : 0,
|
|
435
|
+
prefix: isSet(object.prefix) ? bytesFromBase64(object.prefix) : new Uint8Array(),
|
|
436
|
+
};
|
|
437
|
+
},
|
|
438
|
+
toJSON(message) {
|
|
439
|
+
const obj = {};
|
|
440
|
+
message.hash !== undefined && (obj.hash = hashOpToJSON(message.hash));
|
|
441
|
+
message.prehashKey !== undefined && (obj.prehashKey = hashOpToJSON(message.prehashKey));
|
|
442
|
+
message.prehashValue !== undefined && (obj.prehashValue = hashOpToJSON(message.prehashValue));
|
|
443
|
+
message.length !== undefined && (obj.length = lengthOpToJSON(message.length));
|
|
444
|
+
message.prefix !== undefined
|
|
445
|
+
&& (obj.prefix = base64FromBytes(message.prefix !== undefined ? message.prefix : new Uint8Array()));
|
|
446
|
+
return obj;
|
|
447
|
+
},
|
|
448
|
+
fromPartial(object) {
|
|
449
|
+
const message = createBaseLeafOp();
|
|
450
|
+
message.hash = object.hash ?? 0;
|
|
451
|
+
message.prehashKey = object.prehashKey ?? 0;
|
|
452
|
+
message.prehashValue = object.prehashValue ?? 0;
|
|
453
|
+
message.length = object.length ?? 0;
|
|
454
|
+
message.prefix = object.prefix ?? new Uint8Array();
|
|
455
|
+
return message;
|
|
456
|
+
},
|
|
457
|
+
};
|
|
458
|
+
function createBaseInnerOp() {
|
|
459
|
+
return { hash: 0, prefix: new Uint8Array(), suffix: new Uint8Array() };
|
|
460
|
+
}
|
|
461
|
+
export const InnerOp = {
|
|
462
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
463
|
+
if (message.hash !== 0) {
|
|
464
|
+
writer.uint32(8).int32(message.hash);
|
|
465
|
+
}
|
|
466
|
+
if (message.prefix.length !== 0) {
|
|
467
|
+
writer.uint32(18).bytes(message.prefix);
|
|
468
|
+
}
|
|
469
|
+
if (message.suffix.length !== 0) {
|
|
470
|
+
writer.uint32(26).bytes(message.suffix);
|
|
471
|
+
}
|
|
472
|
+
return writer;
|
|
473
|
+
},
|
|
474
|
+
decode(input, length) {
|
|
475
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
476
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
477
|
+
const message = createBaseInnerOp();
|
|
478
|
+
while (reader.pos < end) {
|
|
479
|
+
const tag = reader.uint32();
|
|
480
|
+
switch (tag >>> 3) {
|
|
481
|
+
case 1:
|
|
482
|
+
message.hash = reader.int32();
|
|
483
|
+
break;
|
|
484
|
+
case 2:
|
|
485
|
+
message.prefix = reader.bytes();
|
|
486
|
+
break;
|
|
487
|
+
case 3:
|
|
488
|
+
message.suffix = reader.bytes();
|
|
489
|
+
break;
|
|
490
|
+
default:
|
|
491
|
+
reader.skipType(tag & 7);
|
|
492
|
+
break;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
return message;
|
|
496
|
+
},
|
|
497
|
+
fromJSON(object) {
|
|
498
|
+
return {
|
|
499
|
+
hash: isSet(object.hash) ? hashOpFromJSON(object.hash) : 0,
|
|
500
|
+
prefix: isSet(object.prefix) ? bytesFromBase64(object.prefix) : new Uint8Array(),
|
|
501
|
+
suffix: isSet(object.suffix) ? bytesFromBase64(object.suffix) : new Uint8Array(),
|
|
502
|
+
};
|
|
503
|
+
},
|
|
504
|
+
toJSON(message) {
|
|
505
|
+
const obj = {};
|
|
506
|
+
message.hash !== undefined && (obj.hash = hashOpToJSON(message.hash));
|
|
507
|
+
message.prefix !== undefined
|
|
508
|
+
&& (obj.prefix = base64FromBytes(message.prefix !== undefined ? message.prefix : new Uint8Array()));
|
|
509
|
+
message.suffix !== undefined
|
|
510
|
+
&& (obj.suffix = base64FromBytes(message.suffix !== undefined ? message.suffix : new Uint8Array()));
|
|
511
|
+
return obj;
|
|
512
|
+
},
|
|
513
|
+
fromPartial(object) {
|
|
514
|
+
const message = createBaseInnerOp();
|
|
515
|
+
message.hash = object.hash ?? 0;
|
|
516
|
+
message.prefix = object.prefix ?? new Uint8Array();
|
|
517
|
+
message.suffix = object.suffix ?? new Uint8Array();
|
|
518
|
+
return message;
|
|
519
|
+
},
|
|
520
|
+
};
|
|
521
|
+
function createBaseProofSpec() {
|
|
522
|
+
return { leafSpec: undefined, innerSpec: undefined, maxDepth: 0, minDepth: 0 };
|
|
523
|
+
}
|
|
524
|
+
export const ProofSpec = {
|
|
525
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
526
|
+
if (message.leafSpec !== undefined) {
|
|
527
|
+
LeafOp.encode(message.leafSpec, writer.uint32(10).fork()).ldelim();
|
|
528
|
+
}
|
|
529
|
+
if (message.innerSpec !== undefined) {
|
|
530
|
+
InnerSpec.encode(message.innerSpec, writer.uint32(18).fork()).ldelim();
|
|
531
|
+
}
|
|
532
|
+
if (message.maxDepth !== 0) {
|
|
533
|
+
writer.uint32(24).int32(message.maxDepth);
|
|
534
|
+
}
|
|
535
|
+
if (message.minDepth !== 0) {
|
|
536
|
+
writer.uint32(32).int32(message.minDepth);
|
|
537
|
+
}
|
|
538
|
+
return writer;
|
|
539
|
+
},
|
|
540
|
+
decode(input, length) {
|
|
541
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
542
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
543
|
+
const message = createBaseProofSpec();
|
|
544
|
+
while (reader.pos < end) {
|
|
545
|
+
const tag = reader.uint32();
|
|
546
|
+
switch (tag >>> 3) {
|
|
547
|
+
case 1:
|
|
548
|
+
message.leafSpec = LeafOp.decode(reader, reader.uint32());
|
|
549
|
+
break;
|
|
550
|
+
case 2:
|
|
551
|
+
message.innerSpec = InnerSpec.decode(reader, reader.uint32());
|
|
552
|
+
break;
|
|
553
|
+
case 3:
|
|
554
|
+
message.maxDepth = reader.int32();
|
|
555
|
+
break;
|
|
556
|
+
case 4:
|
|
557
|
+
message.minDepth = reader.int32();
|
|
558
|
+
break;
|
|
559
|
+
default:
|
|
560
|
+
reader.skipType(tag & 7);
|
|
561
|
+
break;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
return message;
|
|
565
|
+
},
|
|
566
|
+
fromJSON(object) {
|
|
567
|
+
return {
|
|
568
|
+
leafSpec: isSet(object.leafSpec) ? LeafOp.fromJSON(object.leafSpec) : undefined,
|
|
569
|
+
innerSpec: isSet(object.innerSpec) ? InnerSpec.fromJSON(object.innerSpec) : undefined,
|
|
570
|
+
maxDepth: isSet(object.maxDepth) ? Number(object.maxDepth) : 0,
|
|
571
|
+
minDepth: isSet(object.minDepth) ? Number(object.minDepth) : 0,
|
|
572
|
+
};
|
|
573
|
+
},
|
|
574
|
+
toJSON(message) {
|
|
575
|
+
const obj = {};
|
|
576
|
+
message.leafSpec !== undefined && (obj.leafSpec = message.leafSpec ? LeafOp.toJSON(message.leafSpec) : undefined);
|
|
577
|
+
message.innerSpec !== undefined
|
|
578
|
+
&& (obj.innerSpec = message.innerSpec ? InnerSpec.toJSON(message.innerSpec) : undefined);
|
|
579
|
+
message.maxDepth !== undefined && (obj.maxDepth = Math.round(message.maxDepth));
|
|
580
|
+
message.minDepth !== undefined && (obj.minDepth = Math.round(message.minDepth));
|
|
581
|
+
return obj;
|
|
582
|
+
},
|
|
583
|
+
fromPartial(object) {
|
|
584
|
+
const message = createBaseProofSpec();
|
|
585
|
+
message.leafSpec = (object.leafSpec !== undefined && object.leafSpec !== null)
|
|
586
|
+
? LeafOp.fromPartial(object.leafSpec)
|
|
587
|
+
: undefined;
|
|
588
|
+
message.innerSpec = (object.innerSpec !== undefined && object.innerSpec !== null)
|
|
589
|
+
? InnerSpec.fromPartial(object.innerSpec)
|
|
590
|
+
: undefined;
|
|
591
|
+
message.maxDepth = object.maxDepth ?? 0;
|
|
592
|
+
message.minDepth = object.minDepth ?? 0;
|
|
593
|
+
return message;
|
|
594
|
+
},
|
|
595
|
+
};
|
|
596
|
+
function createBaseInnerSpec() {
|
|
597
|
+
return {
|
|
598
|
+
childOrder: [],
|
|
599
|
+
childSize: 0,
|
|
600
|
+
minPrefixLength: 0,
|
|
601
|
+
maxPrefixLength: 0,
|
|
602
|
+
emptyChild: new Uint8Array(),
|
|
603
|
+
hash: 0,
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
export const InnerSpec = {
|
|
607
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
608
|
+
writer.uint32(10).fork();
|
|
609
|
+
for (const v of message.childOrder) {
|
|
610
|
+
writer.int32(v);
|
|
611
|
+
}
|
|
612
|
+
writer.ldelim();
|
|
613
|
+
if (message.childSize !== 0) {
|
|
614
|
+
writer.uint32(16).int32(message.childSize);
|
|
615
|
+
}
|
|
616
|
+
if (message.minPrefixLength !== 0) {
|
|
617
|
+
writer.uint32(24).int32(message.minPrefixLength);
|
|
618
|
+
}
|
|
619
|
+
if (message.maxPrefixLength !== 0) {
|
|
620
|
+
writer.uint32(32).int32(message.maxPrefixLength);
|
|
621
|
+
}
|
|
622
|
+
if (message.emptyChild.length !== 0) {
|
|
623
|
+
writer.uint32(42).bytes(message.emptyChild);
|
|
624
|
+
}
|
|
625
|
+
if (message.hash !== 0) {
|
|
626
|
+
writer.uint32(48).int32(message.hash);
|
|
627
|
+
}
|
|
628
|
+
return writer;
|
|
629
|
+
},
|
|
630
|
+
decode(input, length) {
|
|
631
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
632
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
633
|
+
const message = createBaseInnerSpec();
|
|
634
|
+
while (reader.pos < end) {
|
|
635
|
+
const tag = reader.uint32();
|
|
636
|
+
switch (tag >>> 3) {
|
|
637
|
+
case 1:
|
|
638
|
+
if ((tag & 7) === 2) {
|
|
639
|
+
const end2 = reader.uint32() + reader.pos;
|
|
640
|
+
while (reader.pos < end2) {
|
|
641
|
+
message.childOrder.push(reader.int32());
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
else {
|
|
645
|
+
message.childOrder.push(reader.int32());
|
|
646
|
+
}
|
|
647
|
+
break;
|
|
648
|
+
case 2:
|
|
649
|
+
message.childSize = reader.int32();
|
|
650
|
+
break;
|
|
651
|
+
case 3:
|
|
652
|
+
message.minPrefixLength = reader.int32();
|
|
653
|
+
break;
|
|
654
|
+
case 4:
|
|
655
|
+
message.maxPrefixLength = reader.int32();
|
|
656
|
+
break;
|
|
657
|
+
case 5:
|
|
658
|
+
message.emptyChild = reader.bytes();
|
|
659
|
+
break;
|
|
660
|
+
case 6:
|
|
661
|
+
message.hash = reader.int32();
|
|
662
|
+
break;
|
|
663
|
+
default:
|
|
664
|
+
reader.skipType(tag & 7);
|
|
665
|
+
break;
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
return message;
|
|
669
|
+
},
|
|
670
|
+
fromJSON(object) {
|
|
671
|
+
return {
|
|
672
|
+
childOrder: Array.isArray(object?.childOrder) ? object.childOrder.map((e) => Number(e)) : [],
|
|
673
|
+
childSize: isSet(object.childSize) ? Number(object.childSize) : 0,
|
|
674
|
+
minPrefixLength: isSet(object.minPrefixLength) ? Number(object.minPrefixLength) : 0,
|
|
675
|
+
maxPrefixLength: isSet(object.maxPrefixLength) ? Number(object.maxPrefixLength) : 0,
|
|
676
|
+
emptyChild: isSet(object.emptyChild) ? bytesFromBase64(object.emptyChild) : new Uint8Array(),
|
|
677
|
+
hash: isSet(object.hash) ? hashOpFromJSON(object.hash) : 0,
|
|
678
|
+
};
|
|
679
|
+
},
|
|
680
|
+
toJSON(message) {
|
|
681
|
+
const obj = {};
|
|
682
|
+
if (message.childOrder) {
|
|
683
|
+
obj.childOrder = message.childOrder.map((e) => Math.round(e));
|
|
684
|
+
}
|
|
685
|
+
else {
|
|
686
|
+
obj.childOrder = [];
|
|
687
|
+
}
|
|
688
|
+
message.childSize !== undefined && (obj.childSize = Math.round(message.childSize));
|
|
689
|
+
message.minPrefixLength !== undefined && (obj.minPrefixLength = Math.round(message.minPrefixLength));
|
|
690
|
+
message.maxPrefixLength !== undefined && (obj.maxPrefixLength = Math.round(message.maxPrefixLength));
|
|
691
|
+
message.emptyChild !== undefined
|
|
692
|
+
&& (obj.emptyChild = base64FromBytes(message.emptyChild !== undefined ? message.emptyChild : new Uint8Array()));
|
|
693
|
+
message.hash !== undefined && (obj.hash = hashOpToJSON(message.hash));
|
|
694
|
+
return obj;
|
|
695
|
+
},
|
|
696
|
+
fromPartial(object) {
|
|
697
|
+
const message = createBaseInnerSpec();
|
|
698
|
+
message.childOrder = object.childOrder?.map((e) => e) || [];
|
|
699
|
+
message.childSize = object.childSize ?? 0;
|
|
700
|
+
message.minPrefixLength = object.minPrefixLength ?? 0;
|
|
701
|
+
message.maxPrefixLength = object.maxPrefixLength ?? 0;
|
|
702
|
+
message.emptyChild = object.emptyChild ?? new Uint8Array();
|
|
703
|
+
message.hash = object.hash ?? 0;
|
|
704
|
+
return message;
|
|
705
|
+
},
|
|
706
|
+
};
|
|
707
|
+
function createBaseBatchProof() {
|
|
708
|
+
return { entries: [] };
|
|
709
|
+
}
|
|
710
|
+
export const BatchProof = {
|
|
711
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
712
|
+
for (const v of message.entries) {
|
|
713
|
+
BatchEntry.encode(v, writer.uint32(10).fork()).ldelim();
|
|
714
|
+
}
|
|
715
|
+
return writer;
|
|
716
|
+
},
|
|
717
|
+
decode(input, length) {
|
|
718
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
719
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
720
|
+
const message = createBaseBatchProof();
|
|
721
|
+
while (reader.pos < end) {
|
|
722
|
+
const tag = reader.uint32();
|
|
723
|
+
switch (tag >>> 3) {
|
|
724
|
+
case 1:
|
|
725
|
+
message.entries.push(BatchEntry.decode(reader, reader.uint32()));
|
|
726
|
+
break;
|
|
727
|
+
default:
|
|
728
|
+
reader.skipType(tag & 7);
|
|
729
|
+
break;
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
return message;
|
|
733
|
+
},
|
|
734
|
+
fromJSON(object) {
|
|
735
|
+
return { entries: Array.isArray(object?.entries) ? object.entries.map((e) => BatchEntry.fromJSON(e)) : [] };
|
|
736
|
+
},
|
|
737
|
+
toJSON(message) {
|
|
738
|
+
const obj = {};
|
|
739
|
+
if (message.entries) {
|
|
740
|
+
obj.entries = message.entries.map((e) => e ? BatchEntry.toJSON(e) : undefined);
|
|
741
|
+
}
|
|
742
|
+
else {
|
|
743
|
+
obj.entries = [];
|
|
744
|
+
}
|
|
745
|
+
return obj;
|
|
746
|
+
},
|
|
747
|
+
fromPartial(object) {
|
|
748
|
+
const message = createBaseBatchProof();
|
|
749
|
+
message.entries = object.entries?.map((e) => BatchEntry.fromPartial(e)) || [];
|
|
750
|
+
return message;
|
|
751
|
+
},
|
|
752
|
+
};
|
|
753
|
+
function createBaseBatchEntry() {
|
|
754
|
+
return { exist: undefined, nonexist: undefined };
|
|
755
|
+
}
|
|
756
|
+
export const BatchEntry = {
|
|
757
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
758
|
+
if (message.exist !== undefined) {
|
|
759
|
+
ExistenceProof.encode(message.exist, writer.uint32(10).fork()).ldelim();
|
|
760
|
+
}
|
|
761
|
+
if (message.nonexist !== undefined) {
|
|
762
|
+
NonExistenceProof.encode(message.nonexist, writer.uint32(18).fork()).ldelim();
|
|
763
|
+
}
|
|
764
|
+
return writer;
|
|
765
|
+
},
|
|
766
|
+
decode(input, length) {
|
|
767
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
768
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
769
|
+
const message = createBaseBatchEntry();
|
|
770
|
+
while (reader.pos < end) {
|
|
771
|
+
const tag = reader.uint32();
|
|
772
|
+
switch (tag >>> 3) {
|
|
773
|
+
case 1:
|
|
774
|
+
message.exist = ExistenceProof.decode(reader, reader.uint32());
|
|
775
|
+
break;
|
|
776
|
+
case 2:
|
|
777
|
+
message.nonexist = NonExistenceProof.decode(reader, reader.uint32());
|
|
778
|
+
break;
|
|
779
|
+
default:
|
|
780
|
+
reader.skipType(tag & 7);
|
|
781
|
+
break;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
return message;
|
|
785
|
+
},
|
|
786
|
+
fromJSON(object) {
|
|
787
|
+
return {
|
|
788
|
+
exist: isSet(object.exist) ? ExistenceProof.fromJSON(object.exist) : undefined,
|
|
789
|
+
nonexist: isSet(object.nonexist) ? NonExistenceProof.fromJSON(object.nonexist) : undefined,
|
|
790
|
+
};
|
|
791
|
+
},
|
|
792
|
+
toJSON(message) {
|
|
793
|
+
const obj = {};
|
|
794
|
+
message.exist !== undefined && (obj.exist = message.exist ? ExistenceProof.toJSON(message.exist) : undefined);
|
|
795
|
+
message.nonexist !== undefined
|
|
796
|
+
&& (obj.nonexist = message.nonexist ? NonExistenceProof.toJSON(message.nonexist) : undefined);
|
|
797
|
+
return obj;
|
|
798
|
+
},
|
|
799
|
+
fromPartial(object) {
|
|
800
|
+
const message = createBaseBatchEntry();
|
|
801
|
+
message.exist = (object.exist !== undefined && object.exist !== null)
|
|
802
|
+
? ExistenceProof.fromPartial(object.exist)
|
|
803
|
+
: undefined;
|
|
804
|
+
message.nonexist = (object.nonexist !== undefined && object.nonexist !== null)
|
|
805
|
+
? NonExistenceProof.fromPartial(object.nonexist)
|
|
806
|
+
: undefined;
|
|
807
|
+
return message;
|
|
808
|
+
},
|
|
809
|
+
};
|
|
810
|
+
function createBaseCompressedBatchProof() {
|
|
811
|
+
return { entries: [], lookupInners: [] };
|
|
812
|
+
}
|
|
813
|
+
export const CompressedBatchProof = {
|
|
814
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
815
|
+
for (const v of message.entries) {
|
|
816
|
+
CompressedBatchEntry.encode(v, writer.uint32(10).fork()).ldelim();
|
|
817
|
+
}
|
|
818
|
+
for (const v of message.lookupInners) {
|
|
819
|
+
InnerOp.encode(v, writer.uint32(18).fork()).ldelim();
|
|
820
|
+
}
|
|
821
|
+
return writer;
|
|
822
|
+
},
|
|
823
|
+
decode(input, length) {
|
|
824
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
825
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
826
|
+
const message = createBaseCompressedBatchProof();
|
|
827
|
+
while (reader.pos < end) {
|
|
828
|
+
const tag = reader.uint32();
|
|
829
|
+
switch (tag >>> 3) {
|
|
830
|
+
case 1:
|
|
831
|
+
message.entries.push(CompressedBatchEntry.decode(reader, reader.uint32()));
|
|
832
|
+
break;
|
|
833
|
+
case 2:
|
|
834
|
+
message.lookupInners.push(InnerOp.decode(reader, reader.uint32()));
|
|
835
|
+
break;
|
|
836
|
+
default:
|
|
837
|
+
reader.skipType(tag & 7);
|
|
838
|
+
break;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
return message;
|
|
842
|
+
},
|
|
843
|
+
fromJSON(object) {
|
|
844
|
+
return {
|
|
845
|
+
entries: Array.isArray(object?.entries) ? object.entries.map((e) => CompressedBatchEntry.fromJSON(e)) : [],
|
|
846
|
+
lookupInners: Array.isArray(object?.lookupInners) ? object.lookupInners.map((e) => InnerOp.fromJSON(e)) : [],
|
|
847
|
+
};
|
|
848
|
+
},
|
|
849
|
+
toJSON(message) {
|
|
850
|
+
const obj = {};
|
|
851
|
+
if (message.entries) {
|
|
852
|
+
obj.entries = message.entries.map((e) => e ? CompressedBatchEntry.toJSON(e) : undefined);
|
|
853
|
+
}
|
|
854
|
+
else {
|
|
855
|
+
obj.entries = [];
|
|
856
|
+
}
|
|
857
|
+
if (message.lookupInners) {
|
|
858
|
+
obj.lookupInners = message.lookupInners.map((e) => e ? InnerOp.toJSON(e) : undefined);
|
|
859
|
+
}
|
|
860
|
+
else {
|
|
861
|
+
obj.lookupInners = [];
|
|
862
|
+
}
|
|
863
|
+
return obj;
|
|
864
|
+
},
|
|
865
|
+
fromPartial(object) {
|
|
866
|
+
const message = createBaseCompressedBatchProof();
|
|
867
|
+
message.entries = object.entries?.map((e) => CompressedBatchEntry.fromPartial(e)) || [];
|
|
868
|
+
message.lookupInners = object.lookupInners?.map((e) => InnerOp.fromPartial(e)) || [];
|
|
869
|
+
return message;
|
|
870
|
+
},
|
|
871
|
+
};
|
|
872
|
+
function createBaseCompressedBatchEntry() {
|
|
873
|
+
return { exist: undefined, nonexist: undefined };
|
|
874
|
+
}
|
|
875
|
+
export const CompressedBatchEntry = {
|
|
876
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
877
|
+
if (message.exist !== undefined) {
|
|
878
|
+
CompressedExistenceProof.encode(message.exist, writer.uint32(10).fork()).ldelim();
|
|
879
|
+
}
|
|
880
|
+
if (message.nonexist !== undefined) {
|
|
881
|
+
CompressedNonExistenceProof.encode(message.nonexist, writer.uint32(18).fork()).ldelim();
|
|
882
|
+
}
|
|
883
|
+
return writer;
|
|
884
|
+
},
|
|
885
|
+
decode(input, length) {
|
|
886
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
887
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
888
|
+
const message = createBaseCompressedBatchEntry();
|
|
889
|
+
while (reader.pos < end) {
|
|
890
|
+
const tag = reader.uint32();
|
|
891
|
+
switch (tag >>> 3) {
|
|
892
|
+
case 1:
|
|
893
|
+
message.exist = CompressedExistenceProof.decode(reader, reader.uint32());
|
|
894
|
+
break;
|
|
895
|
+
case 2:
|
|
896
|
+
message.nonexist = CompressedNonExistenceProof.decode(reader, reader.uint32());
|
|
897
|
+
break;
|
|
898
|
+
default:
|
|
899
|
+
reader.skipType(tag & 7);
|
|
900
|
+
break;
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
return message;
|
|
904
|
+
},
|
|
905
|
+
fromJSON(object) {
|
|
906
|
+
return {
|
|
907
|
+
exist: isSet(object.exist) ? CompressedExistenceProof.fromJSON(object.exist) : undefined,
|
|
908
|
+
nonexist: isSet(object.nonexist) ? CompressedNonExistenceProof.fromJSON(object.nonexist) : undefined,
|
|
909
|
+
};
|
|
910
|
+
},
|
|
911
|
+
toJSON(message) {
|
|
912
|
+
const obj = {};
|
|
913
|
+
message.exist !== undefined
|
|
914
|
+
&& (obj.exist = message.exist ? CompressedExistenceProof.toJSON(message.exist) : undefined);
|
|
915
|
+
message.nonexist !== undefined
|
|
916
|
+
&& (obj.nonexist = message.nonexist ? CompressedNonExistenceProof.toJSON(message.nonexist) : undefined);
|
|
917
|
+
return obj;
|
|
918
|
+
},
|
|
919
|
+
fromPartial(object) {
|
|
920
|
+
const message = createBaseCompressedBatchEntry();
|
|
921
|
+
message.exist = (object.exist !== undefined && object.exist !== null)
|
|
922
|
+
? CompressedExistenceProof.fromPartial(object.exist)
|
|
923
|
+
: undefined;
|
|
924
|
+
message.nonexist = (object.nonexist !== undefined && object.nonexist !== null)
|
|
925
|
+
? CompressedNonExistenceProof.fromPartial(object.nonexist)
|
|
926
|
+
: undefined;
|
|
927
|
+
return message;
|
|
928
|
+
},
|
|
929
|
+
};
|
|
930
|
+
function createBaseCompressedExistenceProof() {
|
|
931
|
+
return { key: new Uint8Array(), value: new Uint8Array(), leaf: undefined, path: [] };
|
|
932
|
+
}
|
|
933
|
+
export const CompressedExistenceProof = {
|
|
934
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
935
|
+
if (message.key.length !== 0) {
|
|
936
|
+
writer.uint32(10).bytes(message.key);
|
|
937
|
+
}
|
|
938
|
+
if (message.value.length !== 0) {
|
|
939
|
+
writer.uint32(18).bytes(message.value);
|
|
940
|
+
}
|
|
941
|
+
if (message.leaf !== undefined) {
|
|
942
|
+
LeafOp.encode(message.leaf, writer.uint32(26).fork()).ldelim();
|
|
943
|
+
}
|
|
944
|
+
writer.uint32(34).fork();
|
|
945
|
+
for (const v of message.path) {
|
|
946
|
+
writer.int32(v);
|
|
947
|
+
}
|
|
948
|
+
writer.ldelim();
|
|
949
|
+
return writer;
|
|
950
|
+
},
|
|
951
|
+
decode(input, length) {
|
|
952
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
953
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
954
|
+
const message = createBaseCompressedExistenceProof();
|
|
955
|
+
while (reader.pos < end) {
|
|
956
|
+
const tag = reader.uint32();
|
|
957
|
+
switch (tag >>> 3) {
|
|
958
|
+
case 1:
|
|
959
|
+
message.key = reader.bytes();
|
|
960
|
+
break;
|
|
961
|
+
case 2:
|
|
962
|
+
message.value = reader.bytes();
|
|
963
|
+
break;
|
|
964
|
+
case 3:
|
|
965
|
+
message.leaf = LeafOp.decode(reader, reader.uint32());
|
|
966
|
+
break;
|
|
967
|
+
case 4:
|
|
968
|
+
if ((tag & 7) === 2) {
|
|
969
|
+
const end2 = reader.uint32() + reader.pos;
|
|
970
|
+
while (reader.pos < end2) {
|
|
971
|
+
message.path.push(reader.int32());
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
else {
|
|
975
|
+
message.path.push(reader.int32());
|
|
976
|
+
}
|
|
977
|
+
break;
|
|
978
|
+
default:
|
|
979
|
+
reader.skipType(tag & 7);
|
|
980
|
+
break;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
return message;
|
|
984
|
+
},
|
|
985
|
+
fromJSON(object) {
|
|
986
|
+
return {
|
|
987
|
+
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
|
|
988
|
+
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(),
|
|
989
|
+
leaf: isSet(object.leaf) ? LeafOp.fromJSON(object.leaf) : undefined,
|
|
990
|
+
path: Array.isArray(object?.path) ? object.path.map((e) => Number(e)) : [],
|
|
991
|
+
};
|
|
992
|
+
},
|
|
993
|
+
toJSON(message) {
|
|
994
|
+
const obj = {};
|
|
995
|
+
message.key !== undefined
|
|
996
|
+
&& (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
|
|
997
|
+
message.value !== undefined
|
|
998
|
+
&& (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
999
|
+
message.leaf !== undefined && (obj.leaf = message.leaf ? LeafOp.toJSON(message.leaf) : undefined);
|
|
1000
|
+
if (message.path) {
|
|
1001
|
+
obj.path = message.path.map((e) => Math.round(e));
|
|
1002
|
+
}
|
|
1003
|
+
else {
|
|
1004
|
+
obj.path = [];
|
|
1005
|
+
}
|
|
1006
|
+
return obj;
|
|
1007
|
+
},
|
|
1008
|
+
fromPartial(object) {
|
|
1009
|
+
const message = createBaseCompressedExistenceProof();
|
|
1010
|
+
message.key = object.key ?? new Uint8Array();
|
|
1011
|
+
message.value = object.value ?? new Uint8Array();
|
|
1012
|
+
message.leaf = (object.leaf !== undefined && object.leaf !== null) ? LeafOp.fromPartial(object.leaf) : undefined;
|
|
1013
|
+
message.path = object.path?.map((e) => e) || [];
|
|
1014
|
+
return message;
|
|
1015
|
+
},
|
|
1016
|
+
};
|
|
1017
|
+
function createBaseCompressedNonExistenceProof() {
|
|
1018
|
+
return { key: new Uint8Array(), left: undefined, right: undefined };
|
|
1019
|
+
}
|
|
1020
|
+
export const CompressedNonExistenceProof = {
|
|
1021
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1022
|
+
if (message.key.length !== 0) {
|
|
1023
|
+
writer.uint32(10).bytes(message.key);
|
|
1024
|
+
}
|
|
1025
|
+
if (message.left !== undefined) {
|
|
1026
|
+
CompressedExistenceProof.encode(message.left, writer.uint32(18).fork()).ldelim();
|
|
1027
|
+
}
|
|
1028
|
+
if (message.right !== undefined) {
|
|
1029
|
+
CompressedExistenceProof.encode(message.right, writer.uint32(26).fork()).ldelim();
|
|
1030
|
+
}
|
|
1031
|
+
return writer;
|
|
1032
|
+
},
|
|
1033
|
+
decode(input, length) {
|
|
1034
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1035
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1036
|
+
const message = createBaseCompressedNonExistenceProof();
|
|
1037
|
+
while (reader.pos < end) {
|
|
1038
|
+
const tag = reader.uint32();
|
|
1039
|
+
switch (tag >>> 3) {
|
|
1040
|
+
case 1:
|
|
1041
|
+
message.key = reader.bytes();
|
|
1042
|
+
break;
|
|
1043
|
+
case 2:
|
|
1044
|
+
message.left = CompressedExistenceProof.decode(reader, reader.uint32());
|
|
1045
|
+
break;
|
|
1046
|
+
case 3:
|
|
1047
|
+
message.right = CompressedExistenceProof.decode(reader, reader.uint32());
|
|
1048
|
+
break;
|
|
1049
|
+
default:
|
|
1050
|
+
reader.skipType(tag & 7);
|
|
1051
|
+
break;
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
return message;
|
|
1055
|
+
},
|
|
1056
|
+
fromJSON(object) {
|
|
1057
|
+
return {
|
|
1058
|
+
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
|
|
1059
|
+
left: isSet(object.left) ? CompressedExistenceProof.fromJSON(object.left) : undefined,
|
|
1060
|
+
right: isSet(object.right) ? CompressedExistenceProof.fromJSON(object.right) : undefined,
|
|
1061
|
+
};
|
|
1062
|
+
},
|
|
1063
|
+
toJSON(message) {
|
|
1064
|
+
const obj = {};
|
|
1065
|
+
message.key !== undefined
|
|
1066
|
+
&& (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
|
|
1067
|
+
message.left !== undefined && (obj.left = message.left ? CompressedExistenceProof.toJSON(message.left) : undefined);
|
|
1068
|
+
message.right !== undefined
|
|
1069
|
+
&& (obj.right = message.right ? CompressedExistenceProof.toJSON(message.right) : undefined);
|
|
1070
|
+
return obj;
|
|
1071
|
+
},
|
|
1072
|
+
fromPartial(object) {
|
|
1073
|
+
const message = createBaseCompressedNonExistenceProof();
|
|
1074
|
+
message.key = object.key ?? new Uint8Array();
|
|
1075
|
+
message.left = (object.left !== undefined && object.left !== null)
|
|
1076
|
+
? CompressedExistenceProof.fromPartial(object.left)
|
|
1077
|
+
: undefined;
|
|
1078
|
+
message.right = (object.right !== undefined && object.right !== null)
|
|
1079
|
+
? CompressedExistenceProof.fromPartial(object.right)
|
|
1080
|
+
: undefined;
|
|
1081
|
+
return message;
|
|
1082
|
+
},
|
|
1083
|
+
};
|
|
1084
|
+
var globalThis = (() => {
|
|
1085
|
+
if (typeof globalThis !== "undefined") {
|
|
1086
|
+
return globalThis;
|
|
1087
|
+
}
|
|
1088
|
+
if (typeof self !== "undefined") {
|
|
1089
|
+
return self;
|
|
1090
|
+
}
|
|
1091
|
+
if (typeof window !== "undefined") {
|
|
1092
|
+
return window;
|
|
1093
|
+
}
|
|
1094
|
+
if (typeof global !== "undefined") {
|
|
1095
|
+
return global;
|
|
1096
|
+
}
|
|
1097
|
+
throw "Unable to locate global object";
|
|
1098
|
+
})();
|
|
1099
|
+
function bytesFromBase64(b64) {
|
|
1100
|
+
if (globalThis.Buffer) {
|
|
1101
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
1102
|
+
}
|
|
1103
|
+
else {
|
|
1104
|
+
const bin = globalThis.atob(b64);
|
|
1105
|
+
const arr = new Uint8Array(bin.length);
|
|
1106
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
1107
|
+
arr[i] = bin.charCodeAt(i);
|
|
1108
|
+
}
|
|
1109
|
+
return arr;
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
function base64FromBytes(arr) {
|
|
1113
|
+
if (globalThis.Buffer) {
|
|
1114
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
1115
|
+
}
|
|
1116
|
+
else {
|
|
1117
|
+
const bin = [];
|
|
1118
|
+
arr.forEach((byte) => {
|
|
1119
|
+
bin.push(String.fromCharCode(byte));
|
|
1120
|
+
});
|
|
1121
|
+
return globalThis.btoa(bin.join(""));
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
function isSet(value) {
|
|
1125
|
+
return value !== null && value !== undefined;
|
|
1126
|
+
}
|