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