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,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.Validator = exports.ValAddresses = exports.UnbondingDelegationEntry = exports.UnbondingDelegation = exports.RedelegationResponse = exports.RedelegationEntryResponse = exports.RedelegationEntry = exports.Redelegation = exports.Pool = exports.Params = exports.HistoricalInfo = exports.Description = exports.DelegationResponse = exports.Delegation = exports.DVVTriplets = exports.DVVTriplet = exports.DVPairs = exports.DVPair = exports.CommissionRates = exports.Commission = exports.BondStatusSDKType = exports.BondStatus = void 0;
|
|
6
|
+
exports.Validator = exports.ValAddresses = exports.UnbondingDelegationEntry = exports.UnbondingDelegation = exports.RedelegationResponse = exports.RedelegationEntryResponse = exports.RedelegationEntry = exports.Redelegation = exports.Pool = exports.Params = exports.HistoricalInfo = exports.Description = exports.DelegationResponse = exports.Delegation = exports.DVVTriplets = exports.DVVTriplet = exports.DVPairs = exports.DVPair = exports.CommissionRates = exports.Commission = exports.BondStatusSDKType = exports.BondStatusAmino = exports.BondStatus = void 0;
|
|
8
7
|
exports.bondStatusFromJSON = bondStatusFromJSON;
|
|
9
8
|
exports.bondStatusToJSON = bondStatusToJSON;
|
|
10
9
|
var _types = require("../../../tendermint/types/types");
|
|
@@ -12,31 +11,27 @@ var _timestamp = require("../../../google/protobuf/timestamp");
|
|
|
12
11
|
var _any = require("../../../google/protobuf/any");
|
|
13
12
|
var _duration = require("../../../google/protobuf/duration");
|
|
14
13
|
var _coin = require("../../base/v1beta1/coin");
|
|
15
|
-
var
|
|
14
|
+
var _binary = require("../../../binary");
|
|
15
|
+
var _math = require("@cosmjs/math");
|
|
16
16
|
var _helpers = require("../../../helpers");
|
|
17
|
-
|
|
18
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
+
var _protoSigning = require("@cosmjs/proto-signing");
|
|
19
18
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
20
19
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
21
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
22
|
-
/** BondStatus is the status of a validator. */
|
|
23
|
-
|
|
24
|
-
(function (BondStatus) {
|
|
20
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
21
|
+
/** BondStatus is the status of a validator. */
|
|
22
|
+
var BondStatus = /*#__PURE__*/function (BondStatus) {
|
|
25
23
|
BondStatus[BondStatus["BOND_STATUS_UNSPECIFIED"] = 0] = "BOND_STATUS_UNSPECIFIED";
|
|
26
24
|
BondStatus[BondStatus["BOND_STATUS_UNBONDED"] = 1] = "BOND_STATUS_UNBONDED";
|
|
27
25
|
BondStatus[BondStatus["BOND_STATUS_UNBONDING"] = 2] = "BOND_STATUS_UNBONDING";
|
|
28
26
|
BondStatus[BondStatus["BOND_STATUS_BONDED"] = 3] = "BOND_STATUS_BONDED";
|
|
29
27
|
BondStatus[BondStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
return BondStatus;
|
|
29
|
+
}({});
|
|
30
|
+
exports.BondStatus = BondStatus;
|
|
31
|
+
var BondStatusSDKType = BondStatus;
|
|
32
32
|
exports.BondStatusSDKType = BondStatusSDKType;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
BondStatusSDKType[BondStatusSDKType["BOND_STATUS_UNBONDED"] = 1] = "BOND_STATUS_UNBONDED";
|
|
36
|
-
BondStatusSDKType[BondStatusSDKType["BOND_STATUS_UNBONDING"] = 2] = "BOND_STATUS_UNBONDING";
|
|
37
|
-
BondStatusSDKType[BondStatusSDKType["BOND_STATUS_BONDED"] = 3] = "BOND_STATUS_BONDED";
|
|
38
|
-
BondStatusSDKType[BondStatusSDKType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
39
|
-
})(BondStatusSDKType || (exports.BondStatusSDKType = BondStatusSDKType = {}));
|
|
33
|
+
var BondStatusAmino = BondStatus;
|
|
34
|
+
exports.BondStatusAmino = BondStatusAmino;
|
|
40
35
|
function bondStatusFromJSON(object) {
|
|
41
36
|
switch (object) {
|
|
42
37
|
case 0:
|
|
@@ -79,15 +74,279 @@ function bondStatusToJSON(object) {
|
|
|
79
74
|
* (`n` is set by the staking module's `historical_entries` parameter).
|
|
80
75
|
*/
|
|
81
76
|
|
|
77
|
+
/**
|
|
78
|
+
* HistoricalInfo contains header and validator information for a given block.
|
|
79
|
+
* It is stored as part of staking module's state, which persists the `n` most
|
|
80
|
+
* recent HistoricalInfo
|
|
81
|
+
* (`n` is set by the staking module's `historical_entries` parameter).
|
|
82
|
+
*/
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* HistoricalInfo contains header and validator information for a given block.
|
|
86
|
+
* It is stored as part of staking module's state, which persists the `n` most
|
|
87
|
+
* recent HistoricalInfo
|
|
88
|
+
* (`n` is set by the staking module's `historical_entries` parameter).
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* CommissionRates defines the initial commission rates to be used for creating
|
|
93
|
+
* a validator.
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* CommissionRates defines the initial commission rates to be used for creating
|
|
98
|
+
* a validator.
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* CommissionRates defines the initial commission rates to be used for creating
|
|
103
|
+
* a validator.
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
/** Commission defines commission parameters for a given validator. */
|
|
107
|
+
|
|
108
|
+
/** Commission defines commission parameters for a given validator. */
|
|
109
|
+
|
|
110
|
+
/** Commission defines commission parameters for a given validator. */
|
|
111
|
+
|
|
112
|
+
/** Description defines a validator description. */
|
|
113
|
+
|
|
114
|
+
/** Description defines a validator description. */
|
|
115
|
+
|
|
116
|
+
/** Description defines a validator description. */
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Validator defines a validator, together with the total amount of the
|
|
120
|
+
* Validator's bond shares and their exchange rate to coins. Slashing results in
|
|
121
|
+
* a decrease in the exchange rate, allowing correct calculation of future
|
|
122
|
+
* undelegations without iterating over delegators. When coins are delegated to
|
|
123
|
+
* this validator, the validator is credited with a delegation whose number of
|
|
124
|
+
* bond shares is based on the amount of coins delegated divided by the current
|
|
125
|
+
* exchange rate. Voting power can be calculated as total bonded shares
|
|
126
|
+
* multiplied by exchange rate.
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Validator defines a validator, together with the total amount of the
|
|
131
|
+
* Validator's bond shares and their exchange rate to coins. Slashing results in
|
|
132
|
+
* a decrease in the exchange rate, allowing correct calculation of future
|
|
133
|
+
* undelegations without iterating over delegators. When coins are delegated to
|
|
134
|
+
* this validator, the validator is credited with a delegation whose number of
|
|
135
|
+
* bond shares is based on the amount of coins delegated divided by the current
|
|
136
|
+
* exchange rate. Voting power can be calculated as total bonded shares
|
|
137
|
+
* multiplied by exchange rate.
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Validator defines a validator, together with the total amount of the
|
|
142
|
+
* Validator's bond shares and their exchange rate to coins. Slashing results in
|
|
143
|
+
* a decrease in the exchange rate, allowing correct calculation of future
|
|
144
|
+
* undelegations without iterating over delegators. When coins are delegated to
|
|
145
|
+
* this validator, the validator is credited with a delegation whose number of
|
|
146
|
+
* bond shares is based on the amount of coins delegated divided by the current
|
|
147
|
+
* exchange rate. Voting power can be calculated as total bonded shares
|
|
148
|
+
* multiplied by exchange rate.
|
|
149
|
+
*/
|
|
150
|
+
|
|
151
|
+
/** ValAddresses defines a repeated set of validator addresses. */
|
|
152
|
+
|
|
153
|
+
/** ValAddresses defines a repeated set of validator addresses. */
|
|
154
|
+
|
|
155
|
+
/** ValAddresses defines a repeated set of validator addresses. */
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* DVPair is struct that just has a delegator-validator pair with no other data.
|
|
159
|
+
* It is intended to be used as a marshalable pointer. For example, a DVPair can
|
|
160
|
+
* be used to construct the key to getting an UnbondingDelegation from state.
|
|
161
|
+
*/
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* DVPair is struct that just has a delegator-validator pair with no other data.
|
|
165
|
+
* It is intended to be used as a marshalable pointer. For example, a DVPair can
|
|
166
|
+
* be used to construct the key to getting an UnbondingDelegation from state.
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* DVPair is struct that just has a delegator-validator pair with no other data.
|
|
171
|
+
* It is intended to be used as a marshalable pointer. For example, a DVPair can
|
|
172
|
+
* be used to construct the key to getting an UnbondingDelegation from state.
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
/** DVPairs defines an array of DVPair objects. */
|
|
176
|
+
|
|
177
|
+
/** DVPairs defines an array of DVPair objects. */
|
|
178
|
+
|
|
179
|
+
/** DVPairs defines an array of DVPair objects. */
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* DVVTriplet is struct that just has a delegator-validator-validator triplet
|
|
183
|
+
* with no other data. It is intended to be used as a marshalable pointer. For
|
|
184
|
+
* example, a DVVTriplet can be used to construct the key to getting a
|
|
185
|
+
* Redelegation from state.
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* DVVTriplet is struct that just has a delegator-validator-validator triplet
|
|
190
|
+
* with no other data. It is intended to be used as a marshalable pointer. For
|
|
191
|
+
* example, a DVVTriplet can be used to construct the key to getting a
|
|
192
|
+
* Redelegation from state.
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* DVVTriplet is struct that just has a delegator-validator-validator triplet
|
|
197
|
+
* with no other data. It is intended to be used as a marshalable pointer. For
|
|
198
|
+
* example, a DVVTriplet can be used to construct the key to getting a
|
|
199
|
+
* Redelegation from state.
|
|
200
|
+
*/
|
|
201
|
+
|
|
202
|
+
/** DVVTriplets defines an array of DVVTriplet objects. */
|
|
203
|
+
|
|
204
|
+
/** DVVTriplets defines an array of DVVTriplet objects. */
|
|
205
|
+
|
|
206
|
+
/** DVVTriplets defines an array of DVVTriplet objects. */
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Delegation represents the bond with tokens held by an account. It is
|
|
210
|
+
* owned by one delegator, and is associated with the voting power of one
|
|
211
|
+
* validator.
|
|
212
|
+
*/
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Delegation represents the bond with tokens held by an account. It is
|
|
216
|
+
* owned by one delegator, and is associated with the voting power of one
|
|
217
|
+
* validator.
|
|
218
|
+
*/
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Delegation represents the bond with tokens held by an account. It is
|
|
222
|
+
* owned by one delegator, and is associated with the voting power of one
|
|
223
|
+
* validator.
|
|
224
|
+
*/
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* UnbondingDelegation stores all of a single delegator's unbonding bonds
|
|
228
|
+
* for a single validator in an time-ordered list.
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* UnbondingDelegation stores all of a single delegator's unbonding bonds
|
|
233
|
+
* for a single validator in an time-ordered list.
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* UnbondingDelegation stores all of a single delegator's unbonding bonds
|
|
238
|
+
* for a single validator in an time-ordered list.
|
|
239
|
+
*/
|
|
240
|
+
|
|
241
|
+
/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */
|
|
242
|
+
|
|
243
|
+
/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */
|
|
244
|
+
|
|
245
|
+
/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */
|
|
246
|
+
|
|
247
|
+
/** RedelegationEntry defines a redelegation object with relevant metadata. */
|
|
248
|
+
|
|
249
|
+
/** RedelegationEntry defines a redelegation object with relevant metadata. */
|
|
250
|
+
|
|
251
|
+
/** RedelegationEntry defines a redelegation object with relevant metadata. */
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Redelegation contains the list of a particular delegator's redelegating bonds
|
|
255
|
+
* from a particular source validator to a particular destination validator.
|
|
256
|
+
*/
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Redelegation contains the list of a particular delegator's redelegating bonds
|
|
260
|
+
* from a particular source validator to a particular destination validator.
|
|
261
|
+
*/
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Redelegation contains the list of a particular delegator's redelegating bonds
|
|
265
|
+
* from a particular source validator to a particular destination validator.
|
|
266
|
+
*/
|
|
267
|
+
|
|
268
|
+
/** Params defines the parameters for the staking module. */
|
|
269
|
+
|
|
270
|
+
/** Params defines the parameters for the staking module. */
|
|
271
|
+
|
|
272
|
+
/** Params defines the parameters for the staking module. */
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* DelegationResponse is equivalent to Delegation except that it contains a
|
|
276
|
+
* balance in addition to shares which is more suitable for client responses.
|
|
277
|
+
*/
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* DelegationResponse is equivalent to Delegation except that it contains a
|
|
281
|
+
* balance in addition to shares which is more suitable for client responses.
|
|
282
|
+
*/
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* DelegationResponse is equivalent to Delegation except that it contains a
|
|
286
|
+
* balance in addition to shares which is more suitable for client responses.
|
|
287
|
+
*/
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* RedelegationEntryResponse is equivalent to a RedelegationEntry except that it
|
|
291
|
+
* contains a balance in addition to shares which is more suitable for client
|
|
292
|
+
* responses.
|
|
293
|
+
*/
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* RedelegationEntryResponse is equivalent to a RedelegationEntry except that it
|
|
297
|
+
* contains a balance in addition to shares which is more suitable for client
|
|
298
|
+
* responses.
|
|
299
|
+
*/
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* RedelegationEntryResponse is equivalent to a RedelegationEntry except that it
|
|
303
|
+
* contains a balance in addition to shares which is more suitable for client
|
|
304
|
+
* responses.
|
|
305
|
+
*/
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* RedelegationResponse is equivalent to a Redelegation except that its entries
|
|
309
|
+
* contain a balance in addition to shares which is more suitable for client
|
|
310
|
+
* responses.
|
|
311
|
+
*/
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* RedelegationResponse is equivalent to a Redelegation except that its entries
|
|
315
|
+
* contain a balance in addition to shares which is more suitable for client
|
|
316
|
+
* responses.
|
|
317
|
+
*/
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* RedelegationResponse is equivalent to a Redelegation except that its entries
|
|
321
|
+
* contain a balance in addition to shares which is more suitable for client
|
|
322
|
+
* responses.
|
|
323
|
+
*/
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Pool is used for tracking bonded and not-bonded token supply of the bond
|
|
327
|
+
* denomination.
|
|
328
|
+
*/
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Pool is used for tracking bonded and not-bonded token supply of the bond
|
|
332
|
+
* denomination.
|
|
333
|
+
*/
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Pool is used for tracking bonded and not-bonded token supply of the bond
|
|
337
|
+
* denomination.
|
|
338
|
+
*/
|
|
339
|
+
|
|
82
340
|
function createBaseHistoricalInfo() {
|
|
83
341
|
return {
|
|
84
|
-
header:
|
|
342
|
+
header: _types.Header.fromPartial({}),
|
|
85
343
|
valset: []
|
|
86
344
|
};
|
|
87
345
|
}
|
|
88
346
|
var HistoricalInfo = {
|
|
347
|
+
typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo",
|
|
89
348
|
encode: function encode(message) {
|
|
90
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
349
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
91
350
|
if (message.header !== undefined) {
|
|
92
351
|
_types.Header.encode(message.header, writer.uint32(10).fork()).ldelim();
|
|
93
352
|
}
|
|
@@ -106,7 +365,7 @@ var HistoricalInfo = {
|
|
|
106
365
|
return writer;
|
|
107
366
|
},
|
|
108
367
|
decode: function decode(input, length) {
|
|
109
|
-
var reader = input instanceof
|
|
368
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
110
369
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
111
370
|
var message = createBaseHistoricalInfo();
|
|
112
371
|
while (reader.pos < end) {
|
|
@@ -133,6 +392,50 @@ var HistoricalInfo = {
|
|
|
133
392
|
return Validator.fromPartial(e);
|
|
134
393
|
})) || [];
|
|
135
394
|
return message;
|
|
395
|
+
},
|
|
396
|
+
fromAmino: function fromAmino(object) {
|
|
397
|
+
var _object$valset2;
|
|
398
|
+
var message = createBaseHistoricalInfo();
|
|
399
|
+
if (object.header !== undefined && object.header !== null) {
|
|
400
|
+
message.header = _types.Header.fromAmino(object.header);
|
|
401
|
+
}
|
|
402
|
+
message.valset = ((_object$valset2 = object.valset) === null || _object$valset2 === void 0 ? void 0 : _object$valset2.map(function (e) {
|
|
403
|
+
return Validator.fromAmino(e);
|
|
404
|
+
})) || [];
|
|
405
|
+
return message;
|
|
406
|
+
},
|
|
407
|
+
toAmino: function toAmino(message) {
|
|
408
|
+
var obj = {};
|
|
409
|
+
obj.header = message.header ? _types.Header.toAmino(message.header) : undefined;
|
|
410
|
+
if (message.valset) {
|
|
411
|
+
obj.valset = message.valset.map(function (e) {
|
|
412
|
+
return e ? Validator.toAmino(e) : undefined;
|
|
413
|
+
});
|
|
414
|
+
} else {
|
|
415
|
+
obj.valset = [];
|
|
416
|
+
}
|
|
417
|
+
return obj;
|
|
418
|
+
},
|
|
419
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
420
|
+
return HistoricalInfo.fromAmino(object.value);
|
|
421
|
+
},
|
|
422
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
423
|
+
return {
|
|
424
|
+
type: "cosmos-sdk/HistoricalInfo",
|
|
425
|
+
value: HistoricalInfo.toAmino(message)
|
|
426
|
+
};
|
|
427
|
+
},
|
|
428
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
429
|
+
return HistoricalInfo.decode(message.value);
|
|
430
|
+
},
|
|
431
|
+
toProto: function toProto(message) {
|
|
432
|
+
return HistoricalInfo.encode(message).finish();
|
|
433
|
+
},
|
|
434
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
435
|
+
return {
|
|
436
|
+
typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo",
|
|
437
|
+
value: HistoricalInfo.encode(message).finish()
|
|
438
|
+
};
|
|
136
439
|
}
|
|
137
440
|
};
|
|
138
441
|
exports.HistoricalInfo = HistoricalInfo;
|
|
@@ -144,34 +447,35 @@ function createBaseCommissionRates() {
|
|
|
144
447
|
};
|
|
145
448
|
}
|
|
146
449
|
var CommissionRates = {
|
|
450
|
+
typeUrl: "/cosmos.staking.v1beta1.CommissionRates",
|
|
147
451
|
encode: function encode(message) {
|
|
148
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
452
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
149
453
|
if (message.rate !== "") {
|
|
150
|
-
writer.uint32(10).string(message.rate);
|
|
454
|
+
writer.uint32(10).string(_math.Decimal.fromUserInput(message.rate, 18).atomics);
|
|
151
455
|
}
|
|
152
456
|
if (message.maxRate !== "") {
|
|
153
|
-
writer.uint32(18).string(message.maxRate);
|
|
457
|
+
writer.uint32(18).string(_math.Decimal.fromUserInput(message.maxRate, 18).atomics);
|
|
154
458
|
}
|
|
155
459
|
if (message.maxChangeRate !== "") {
|
|
156
|
-
writer.uint32(26).string(message.maxChangeRate);
|
|
460
|
+
writer.uint32(26).string(_math.Decimal.fromUserInput(message.maxChangeRate, 18).atomics);
|
|
157
461
|
}
|
|
158
462
|
return writer;
|
|
159
463
|
},
|
|
160
464
|
decode: function decode(input, length) {
|
|
161
|
-
var reader = input instanceof
|
|
465
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
162
466
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
163
467
|
var message = createBaseCommissionRates();
|
|
164
468
|
while (reader.pos < end) {
|
|
165
469
|
var tag = reader.uint32();
|
|
166
470
|
switch (tag >>> 3) {
|
|
167
471
|
case 1:
|
|
168
|
-
message.rate = reader.string();
|
|
472
|
+
message.rate = _math.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
169
473
|
break;
|
|
170
474
|
case 2:
|
|
171
|
-
message.maxRate = reader.string();
|
|
475
|
+
message.maxRate = _math.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
172
476
|
break;
|
|
173
477
|
case 3:
|
|
174
|
-
message.maxChangeRate = reader.string();
|
|
478
|
+
message.maxChangeRate = _math.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
175
479
|
break;
|
|
176
480
|
default:
|
|
177
481
|
reader.skipType(tag & 7);
|
|
@@ -187,18 +491,60 @@ var CommissionRates = {
|
|
|
187
491
|
message.maxRate = (_object$maxRate = object.maxRate) !== null && _object$maxRate !== void 0 ? _object$maxRate : "";
|
|
188
492
|
message.maxChangeRate = (_object$maxChangeRate = object.maxChangeRate) !== null && _object$maxChangeRate !== void 0 ? _object$maxChangeRate : "";
|
|
189
493
|
return message;
|
|
494
|
+
},
|
|
495
|
+
fromAmino: function fromAmino(object) {
|
|
496
|
+
var message = createBaseCommissionRates();
|
|
497
|
+
if (object.rate !== undefined && object.rate !== null) {
|
|
498
|
+
message.rate = object.rate;
|
|
499
|
+
}
|
|
500
|
+
if (object.max_rate !== undefined && object.max_rate !== null) {
|
|
501
|
+
message.maxRate = object.max_rate;
|
|
502
|
+
}
|
|
503
|
+
if (object.max_change_rate !== undefined && object.max_change_rate !== null) {
|
|
504
|
+
message.maxChangeRate = object.max_change_rate;
|
|
505
|
+
}
|
|
506
|
+
return message;
|
|
507
|
+
},
|
|
508
|
+
toAmino: function toAmino(message) {
|
|
509
|
+
var obj = {};
|
|
510
|
+
obj.rate = message.rate;
|
|
511
|
+
obj.max_rate = message.maxRate;
|
|
512
|
+
obj.max_change_rate = message.maxChangeRate;
|
|
513
|
+
return obj;
|
|
514
|
+
},
|
|
515
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
516
|
+
return CommissionRates.fromAmino(object.value);
|
|
517
|
+
},
|
|
518
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
519
|
+
return {
|
|
520
|
+
type: "cosmos-sdk/CommissionRates",
|
|
521
|
+
value: CommissionRates.toAmino(message)
|
|
522
|
+
};
|
|
523
|
+
},
|
|
524
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
525
|
+
return CommissionRates.decode(message.value);
|
|
526
|
+
},
|
|
527
|
+
toProto: function toProto(message) {
|
|
528
|
+
return CommissionRates.encode(message).finish();
|
|
529
|
+
},
|
|
530
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
531
|
+
return {
|
|
532
|
+
typeUrl: "/cosmos.staking.v1beta1.CommissionRates",
|
|
533
|
+
value: CommissionRates.encode(message).finish()
|
|
534
|
+
};
|
|
190
535
|
}
|
|
191
536
|
};
|
|
192
537
|
exports.CommissionRates = CommissionRates;
|
|
193
538
|
function createBaseCommission() {
|
|
194
539
|
return {
|
|
195
|
-
commissionRates:
|
|
196
|
-
updateTime:
|
|
540
|
+
commissionRates: CommissionRates.fromPartial({}),
|
|
541
|
+
updateTime: new Date()
|
|
197
542
|
};
|
|
198
543
|
}
|
|
199
544
|
var Commission = {
|
|
545
|
+
typeUrl: "/cosmos.staking.v1beta1.Commission",
|
|
200
546
|
encode: function encode(message) {
|
|
201
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
547
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
202
548
|
if (message.commissionRates !== undefined) {
|
|
203
549
|
CommissionRates.encode(message.commissionRates, writer.uint32(10).fork()).ldelim();
|
|
204
550
|
}
|
|
@@ -208,7 +554,7 @@ var Commission = {
|
|
|
208
554
|
return writer;
|
|
209
555
|
},
|
|
210
556
|
decode: function decode(input, length) {
|
|
211
|
-
var reader = input instanceof
|
|
557
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
212
558
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
213
559
|
var message = createBaseCommission();
|
|
214
560
|
while (reader.pos < end) {
|
|
@@ -233,6 +579,43 @@ var Commission = {
|
|
|
233
579
|
message.commissionRates = object.commissionRates !== undefined && object.commissionRates !== null ? CommissionRates.fromPartial(object.commissionRates) : undefined;
|
|
234
580
|
message.updateTime = (_object$updateTime = object.updateTime) !== null && _object$updateTime !== void 0 ? _object$updateTime : undefined;
|
|
235
581
|
return message;
|
|
582
|
+
},
|
|
583
|
+
fromAmino: function fromAmino(object) {
|
|
584
|
+
var message = createBaseCommission();
|
|
585
|
+
if (object.commission_rates !== undefined && object.commission_rates !== null) {
|
|
586
|
+
message.commissionRates = CommissionRates.fromAmino(object.commission_rates);
|
|
587
|
+
}
|
|
588
|
+
if (object.update_time !== undefined && object.update_time !== null) {
|
|
589
|
+
message.updateTime = (0, _helpers.fromTimestamp)(_timestamp.Timestamp.fromAmino(object.update_time));
|
|
590
|
+
}
|
|
591
|
+
return message;
|
|
592
|
+
},
|
|
593
|
+
toAmino: function toAmino(message) {
|
|
594
|
+
var obj = {};
|
|
595
|
+
obj.commission_rates = message.commissionRates ? CommissionRates.toAmino(message.commissionRates) : undefined;
|
|
596
|
+
obj.update_time = message.updateTime ? _timestamp.Timestamp.toAmino((0, _helpers.toTimestamp)(message.updateTime)) : undefined;
|
|
597
|
+
return obj;
|
|
598
|
+
},
|
|
599
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
600
|
+
return Commission.fromAmino(object.value);
|
|
601
|
+
},
|
|
602
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
603
|
+
return {
|
|
604
|
+
type: "cosmos-sdk/Commission",
|
|
605
|
+
value: Commission.toAmino(message)
|
|
606
|
+
};
|
|
607
|
+
},
|
|
608
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
609
|
+
return Commission.decode(message.value);
|
|
610
|
+
},
|
|
611
|
+
toProto: function toProto(message) {
|
|
612
|
+
return Commission.encode(message).finish();
|
|
613
|
+
},
|
|
614
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
615
|
+
return {
|
|
616
|
+
typeUrl: "/cosmos.staking.v1beta1.Commission",
|
|
617
|
+
value: Commission.encode(message).finish()
|
|
618
|
+
};
|
|
236
619
|
}
|
|
237
620
|
};
|
|
238
621
|
exports.Commission = Commission;
|
|
@@ -246,8 +629,9 @@ function createBaseDescription() {
|
|
|
246
629
|
};
|
|
247
630
|
}
|
|
248
631
|
var Description = {
|
|
632
|
+
typeUrl: "/cosmos.staking.v1beta1.Description",
|
|
249
633
|
encode: function encode(message) {
|
|
250
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
634
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
251
635
|
if (message.moniker !== "") {
|
|
252
636
|
writer.uint32(10).string(message.moniker);
|
|
253
637
|
}
|
|
@@ -266,7 +650,7 @@ var Description = {
|
|
|
266
650
|
return writer;
|
|
267
651
|
},
|
|
268
652
|
decode: function decode(input, length) {
|
|
269
|
-
var reader = input instanceof
|
|
653
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
270
654
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
271
655
|
var message = createBaseDescription();
|
|
272
656
|
while (reader.pos < end) {
|
|
@@ -303,6 +687,55 @@ var Description = {
|
|
|
303
687
|
message.securityContact = (_object$securityConta = object.securityContact) !== null && _object$securityConta !== void 0 ? _object$securityConta : "";
|
|
304
688
|
message.details = (_object$details = object.details) !== null && _object$details !== void 0 ? _object$details : "";
|
|
305
689
|
return message;
|
|
690
|
+
},
|
|
691
|
+
fromAmino: function fromAmino(object) {
|
|
692
|
+
var message = createBaseDescription();
|
|
693
|
+
if (object.moniker !== undefined && object.moniker !== null) {
|
|
694
|
+
message.moniker = object.moniker;
|
|
695
|
+
}
|
|
696
|
+
if (object.identity !== undefined && object.identity !== null) {
|
|
697
|
+
message.identity = object.identity;
|
|
698
|
+
}
|
|
699
|
+
if (object.website !== undefined && object.website !== null) {
|
|
700
|
+
message.website = object.website;
|
|
701
|
+
}
|
|
702
|
+
if (object.security_contact !== undefined && object.security_contact !== null) {
|
|
703
|
+
message.securityContact = object.security_contact;
|
|
704
|
+
}
|
|
705
|
+
if (object.details !== undefined && object.details !== null) {
|
|
706
|
+
message.details = object.details;
|
|
707
|
+
}
|
|
708
|
+
return message;
|
|
709
|
+
},
|
|
710
|
+
toAmino: function toAmino(message) {
|
|
711
|
+
var obj = {};
|
|
712
|
+
obj.moniker = message.moniker;
|
|
713
|
+
obj.identity = message.identity;
|
|
714
|
+
obj.website = message.website;
|
|
715
|
+
obj.security_contact = message.securityContact;
|
|
716
|
+
obj.details = message.details;
|
|
717
|
+
return obj;
|
|
718
|
+
},
|
|
719
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
720
|
+
return Description.fromAmino(object.value);
|
|
721
|
+
},
|
|
722
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
723
|
+
return {
|
|
724
|
+
type: "cosmos-sdk/Description",
|
|
725
|
+
value: Description.toAmino(message)
|
|
726
|
+
};
|
|
727
|
+
},
|
|
728
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
729
|
+
return Description.decode(message.value);
|
|
730
|
+
},
|
|
731
|
+
toProto: function toProto(message) {
|
|
732
|
+
return Description.encode(message).finish();
|
|
733
|
+
},
|
|
734
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
735
|
+
return {
|
|
736
|
+
typeUrl: "/cosmos.staking.v1beta1.Description",
|
|
737
|
+
value: Description.encode(message).finish()
|
|
738
|
+
};
|
|
306
739
|
}
|
|
307
740
|
};
|
|
308
741
|
exports.Description = Description;
|
|
@@ -314,16 +747,17 @@ function createBaseValidator() {
|
|
|
314
747
|
status: 0,
|
|
315
748
|
tokens: "",
|
|
316
749
|
delegatorShares: "",
|
|
317
|
-
description:
|
|
318
|
-
unbondingHeight:
|
|
319
|
-
unbondingTime:
|
|
320
|
-
commission:
|
|
750
|
+
description: Description.fromPartial({}),
|
|
751
|
+
unbondingHeight: BigInt(0),
|
|
752
|
+
unbondingTime: new Date(),
|
|
753
|
+
commission: Commission.fromPartial({}),
|
|
321
754
|
minSelfDelegation: ""
|
|
322
755
|
};
|
|
323
756
|
}
|
|
324
757
|
var Validator = {
|
|
758
|
+
typeUrl: "/cosmos.staking.v1beta1.Validator",
|
|
325
759
|
encode: function encode(message) {
|
|
326
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
760
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
327
761
|
if (message.operatorAddress !== "") {
|
|
328
762
|
writer.uint32(10).string(message.operatorAddress);
|
|
329
763
|
}
|
|
@@ -340,12 +774,12 @@ var Validator = {
|
|
|
340
774
|
writer.uint32(42).string(message.tokens);
|
|
341
775
|
}
|
|
342
776
|
if (message.delegatorShares !== "") {
|
|
343
|
-
writer.uint32(50).string(message.delegatorShares);
|
|
777
|
+
writer.uint32(50).string(_math.Decimal.fromUserInput(message.delegatorShares, 18).atomics);
|
|
344
778
|
}
|
|
345
779
|
if (message.description !== undefined) {
|
|
346
780
|
Description.encode(message.description, writer.uint32(58).fork()).ldelim();
|
|
347
781
|
}
|
|
348
|
-
if (
|
|
782
|
+
if (message.unbondingHeight !== BigInt(0)) {
|
|
349
783
|
writer.uint32(64).int64(message.unbondingHeight);
|
|
350
784
|
}
|
|
351
785
|
if (message.unbondingTime !== undefined) {
|
|
@@ -360,7 +794,7 @@ var Validator = {
|
|
|
360
794
|
return writer;
|
|
361
795
|
},
|
|
362
796
|
decode: function decode(input, length) {
|
|
363
|
-
var reader = input instanceof
|
|
797
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
364
798
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
365
799
|
var message = createBaseValidator();
|
|
366
800
|
while (reader.pos < end) {
|
|
@@ -382,7 +816,7 @@ var Validator = {
|
|
|
382
816
|
message.tokens = reader.string();
|
|
383
817
|
break;
|
|
384
818
|
case 6:
|
|
385
|
-
message.delegatorShares = reader.string();
|
|
819
|
+
message.delegatorShares = _math.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
386
820
|
break;
|
|
387
821
|
case 7:
|
|
388
822
|
message.description = Description.decode(reader, reader.uint32());
|
|
@@ -416,11 +850,84 @@ var Validator = {
|
|
|
416
850
|
message.tokens = (_object$tokens = object.tokens) !== null && _object$tokens !== void 0 ? _object$tokens : "";
|
|
417
851
|
message.delegatorShares = (_object$delegatorShar = object.delegatorShares) !== null && _object$delegatorShar !== void 0 ? _object$delegatorShar : "";
|
|
418
852
|
message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined;
|
|
419
|
-
message.unbondingHeight = object.unbondingHeight !== undefined && object.unbondingHeight !== null ?
|
|
853
|
+
message.unbondingHeight = object.unbondingHeight !== undefined && object.unbondingHeight !== null ? BigInt(object.unbondingHeight.toString()) : BigInt(0);
|
|
420
854
|
message.unbondingTime = (_object$unbondingTime = object.unbondingTime) !== null && _object$unbondingTime !== void 0 ? _object$unbondingTime : undefined;
|
|
421
855
|
message.commission = object.commission !== undefined && object.commission !== null ? Commission.fromPartial(object.commission) : undefined;
|
|
422
856
|
message.minSelfDelegation = (_object$minSelfDelega = object.minSelfDelegation) !== null && _object$minSelfDelega !== void 0 ? _object$minSelfDelega : "";
|
|
423
857
|
return message;
|
|
858
|
+
},
|
|
859
|
+
fromAmino: function fromAmino(object) {
|
|
860
|
+
var message = createBaseValidator();
|
|
861
|
+
if (object.operator_address !== undefined && object.operator_address !== null) {
|
|
862
|
+
message.operatorAddress = object.operator_address;
|
|
863
|
+
}
|
|
864
|
+
if (object.consensus_pubkey !== undefined && object.consensus_pubkey !== null) {
|
|
865
|
+
message.consensusPubkey = (0, _protoSigning.encodePubkey)(object.consensus_pubkey);
|
|
866
|
+
}
|
|
867
|
+
if (object.jailed !== undefined && object.jailed !== null) {
|
|
868
|
+
message.jailed = object.jailed;
|
|
869
|
+
}
|
|
870
|
+
if (object.status !== undefined && object.status !== null) {
|
|
871
|
+
message.status = bondStatusFromJSON(object.status);
|
|
872
|
+
}
|
|
873
|
+
if (object.tokens !== undefined && object.tokens !== null) {
|
|
874
|
+
message.tokens = object.tokens;
|
|
875
|
+
}
|
|
876
|
+
if (object.delegator_shares !== undefined && object.delegator_shares !== null) {
|
|
877
|
+
message.delegatorShares = object.delegator_shares;
|
|
878
|
+
}
|
|
879
|
+
if (object.description !== undefined && object.description !== null) {
|
|
880
|
+
message.description = Description.fromAmino(object.description);
|
|
881
|
+
}
|
|
882
|
+
if (object.unbonding_height !== undefined && object.unbonding_height !== null) {
|
|
883
|
+
message.unbondingHeight = BigInt(object.unbonding_height);
|
|
884
|
+
}
|
|
885
|
+
if (object.unbonding_time !== undefined && object.unbonding_time !== null) {
|
|
886
|
+
message.unbondingTime = (0, _helpers.fromTimestamp)(_timestamp.Timestamp.fromAmino(object.unbonding_time));
|
|
887
|
+
}
|
|
888
|
+
if (object.commission !== undefined && object.commission !== null) {
|
|
889
|
+
message.commission = Commission.fromAmino(object.commission);
|
|
890
|
+
}
|
|
891
|
+
if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) {
|
|
892
|
+
message.minSelfDelegation = object.min_self_delegation;
|
|
893
|
+
}
|
|
894
|
+
return message;
|
|
895
|
+
},
|
|
896
|
+
toAmino: function toAmino(message) {
|
|
897
|
+
var obj = {};
|
|
898
|
+
obj.operator_address = message.operatorAddress;
|
|
899
|
+
obj.consensus_pubkey = message.consensusPubkey ? (0, _protoSigning.decodePubkey)(message.consensusPubkey) : undefined;
|
|
900
|
+
obj.jailed = message.jailed;
|
|
901
|
+
obj.status = bondStatusToJSON(message.status);
|
|
902
|
+
obj.tokens = message.tokens;
|
|
903
|
+
obj.delegator_shares = message.delegatorShares;
|
|
904
|
+
obj.description = message.description ? Description.toAmino(message.description) : undefined;
|
|
905
|
+
obj.unbonding_height = message.unbondingHeight ? message.unbondingHeight.toString() : undefined;
|
|
906
|
+
obj.unbonding_time = message.unbondingTime ? _timestamp.Timestamp.toAmino((0, _helpers.toTimestamp)(message.unbondingTime)) : undefined;
|
|
907
|
+
obj.commission = message.commission ? Commission.toAmino(message.commission) : undefined;
|
|
908
|
+
obj.min_self_delegation = message.minSelfDelegation;
|
|
909
|
+
return obj;
|
|
910
|
+
},
|
|
911
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
912
|
+
return Validator.fromAmino(object.value);
|
|
913
|
+
},
|
|
914
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
915
|
+
return {
|
|
916
|
+
type: "cosmos-sdk/Validator",
|
|
917
|
+
value: Validator.toAmino(message)
|
|
918
|
+
};
|
|
919
|
+
},
|
|
920
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
921
|
+
return Validator.decode(message.value);
|
|
922
|
+
},
|
|
923
|
+
toProto: function toProto(message) {
|
|
924
|
+
return Validator.encode(message).finish();
|
|
925
|
+
},
|
|
926
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
927
|
+
return {
|
|
928
|
+
typeUrl: "/cosmos.staking.v1beta1.Validator",
|
|
929
|
+
value: Validator.encode(message).finish()
|
|
930
|
+
};
|
|
424
931
|
}
|
|
425
932
|
};
|
|
426
933
|
exports.Validator = Validator;
|
|
@@ -430,8 +937,9 @@ function createBaseValAddresses() {
|
|
|
430
937
|
};
|
|
431
938
|
}
|
|
432
939
|
var ValAddresses = {
|
|
940
|
+
typeUrl: "/cosmos.staking.v1beta1.ValAddresses",
|
|
433
941
|
encode: function encode(message) {
|
|
434
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
942
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
435
943
|
var _iterator2 = _createForOfIteratorHelper(message.addresses),
|
|
436
944
|
_step2;
|
|
437
945
|
try {
|
|
@@ -447,7 +955,7 @@ var ValAddresses = {
|
|
|
447
955
|
return writer;
|
|
448
956
|
},
|
|
449
957
|
decode: function decode(input, length) {
|
|
450
|
-
var reader = input instanceof
|
|
958
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
451
959
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
452
960
|
var message = createBaseValAddresses();
|
|
453
961
|
while (reader.pos < end) {
|
|
@@ -470,6 +978,46 @@ var ValAddresses = {
|
|
|
470
978
|
return e;
|
|
471
979
|
})) || [];
|
|
472
980
|
return message;
|
|
981
|
+
},
|
|
982
|
+
fromAmino: function fromAmino(object) {
|
|
983
|
+
var _object$addresses2;
|
|
984
|
+
var message = createBaseValAddresses();
|
|
985
|
+
message.addresses = ((_object$addresses2 = object.addresses) === null || _object$addresses2 === void 0 ? void 0 : _object$addresses2.map(function (e) {
|
|
986
|
+
return e;
|
|
987
|
+
})) || [];
|
|
988
|
+
return message;
|
|
989
|
+
},
|
|
990
|
+
toAmino: function toAmino(message) {
|
|
991
|
+
var obj = {};
|
|
992
|
+
if (message.addresses) {
|
|
993
|
+
obj.addresses = message.addresses.map(function (e) {
|
|
994
|
+
return e;
|
|
995
|
+
});
|
|
996
|
+
} else {
|
|
997
|
+
obj.addresses = [];
|
|
998
|
+
}
|
|
999
|
+
return obj;
|
|
1000
|
+
},
|
|
1001
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
1002
|
+
return ValAddresses.fromAmino(object.value);
|
|
1003
|
+
},
|
|
1004
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
1005
|
+
return {
|
|
1006
|
+
type: "cosmos-sdk/ValAddresses",
|
|
1007
|
+
value: ValAddresses.toAmino(message)
|
|
1008
|
+
};
|
|
1009
|
+
},
|
|
1010
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
1011
|
+
return ValAddresses.decode(message.value);
|
|
1012
|
+
},
|
|
1013
|
+
toProto: function toProto(message) {
|
|
1014
|
+
return ValAddresses.encode(message).finish();
|
|
1015
|
+
},
|
|
1016
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
1017
|
+
return {
|
|
1018
|
+
typeUrl: "/cosmos.staking.v1beta1.ValAddresses",
|
|
1019
|
+
value: ValAddresses.encode(message).finish()
|
|
1020
|
+
};
|
|
473
1021
|
}
|
|
474
1022
|
};
|
|
475
1023
|
exports.ValAddresses = ValAddresses;
|
|
@@ -480,8 +1028,9 @@ function createBaseDVPair() {
|
|
|
480
1028
|
};
|
|
481
1029
|
}
|
|
482
1030
|
var DVPair = {
|
|
1031
|
+
typeUrl: "/cosmos.staking.v1beta1.DVPair",
|
|
483
1032
|
encode: function encode(message) {
|
|
484
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
1033
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
485
1034
|
if (message.delegatorAddress !== "") {
|
|
486
1035
|
writer.uint32(10).string(message.delegatorAddress);
|
|
487
1036
|
}
|
|
@@ -491,7 +1040,7 @@ var DVPair = {
|
|
|
491
1040
|
return writer;
|
|
492
1041
|
},
|
|
493
1042
|
decode: function decode(input, length) {
|
|
494
|
-
var reader = input instanceof
|
|
1043
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
495
1044
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
496
1045
|
var message = createBaseDVPair();
|
|
497
1046
|
while (reader.pos < end) {
|
|
@@ -516,6 +1065,43 @@ var DVPair = {
|
|
|
516
1065
|
message.delegatorAddress = (_object$delegatorAddr = object.delegatorAddress) !== null && _object$delegatorAddr !== void 0 ? _object$delegatorAddr : "";
|
|
517
1066
|
message.validatorAddress = (_object$validatorAddr = object.validatorAddress) !== null && _object$validatorAddr !== void 0 ? _object$validatorAddr : "";
|
|
518
1067
|
return message;
|
|
1068
|
+
},
|
|
1069
|
+
fromAmino: function fromAmino(object) {
|
|
1070
|
+
var message = createBaseDVPair();
|
|
1071
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
1072
|
+
message.delegatorAddress = object.delegator_address;
|
|
1073
|
+
}
|
|
1074
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
1075
|
+
message.validatorAddress = object.validator_address;
|
|
1076
|
+
}
|
|
1077
|
+
return message;
|
|
1078
|
+
},
|
|
1079
|
+
toAmino: function toAmino(message) {
|
|
1080
|
+
var obj = {};
|
|
1081
|
+
obj.delegator_address = message.delegatorAddress;
|
|
1082
|
+
obj.validator_address = message.validatorAddress;
|
|
1083
|
+
return obj;
|
|
1084
|
+
},
|
|
1085
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
1086
|
+
return DVPair.fromAmino(object.value);
|
|
1087
|
+
},
|
|
1088
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
1089
|
+
return {
|
|
1090
|
+
type: "cosmos-sdk/DVPair",
|
|
1091
|
+
value: DVPair.toAmino(message)
|
|
1092
|
+
};
|
|
1093
|
+
},
|
|
1094
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
1095
|
+
return DVPair.decode(message.value);
|
|
1096
|
+
},
|
|
1097
|
+
toProto: function toProto(message) {
|
|
1098
|
+
return DVPair.encode(message).finish();
|
|
1099
|
+
},
|
|
1100
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
1101
|
+
return {
|
|
1102
|
+
typeUrl: "/cosmos.staking.v1beta1.DVPair",
|
|
1103
|
+
value: DVPair.encode(message).finish()
|
|
1104
|
+
};
|
|
519
1105
|
}
|
|
520
1106
|
};
|
|
521
1107
|
exports.DVPair = DVPair;
|
|
@@ -525,8 +1111,9 @@ function createBaseDVPairs() {
|
|
|
525
1111
|
};
|
|
526
1112
|
}
|
|
527
1113
|
var DVPairs = {
|
|
1114
|
+
typeUrl: "/cosmos.staking.v1beta1.DVPairs",
|
|
528
1115
|
encode: function encode(message) {
|
|
529
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
1116
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
530
1117
|
var _iterator3 = _createForOfIteratorHelper(message.pairs),
|
|
531
1118
|
_step3;
|
|
532
1119
|
try {
|
|
@@ -542,7 +1129,7 @@ var DVPairs = {
|
|
|
542
1129
|
return writer;
|
|
543
1130
|
},
|
|
544
1131
|
decode: function decode(input, length) {
|
|
545
|
-
var reader = input instanceof
|
|
1132
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
546
1133
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
547
1134
|
var message = createBaseDVPairs();
|
|
548
1135
|
while (reader.pos < end) {
|
|
@@ -565,6 +1152,46 @@ var DVPairs = {
|
|
|
565
1152
|
return DVPair.fromPartial(e);
|
|
566
1153
|
})) || [];
|
|
567
1154
|
return message;
|
|
1155
|
+
},
|
|
1156
|
+
fromAmino: function fromAmino(object) {
|
|
1157
|
+
var _object$pairs2;
|
|
1158
|
+
var message = createBaseDVPairs();
|
|
1159
|
+
message.pairs = ((_object$pairs2 = object.pairs) === null || _object$pairs2 === void 0 ? void 0 : _object$pairs2.map(function (e) {
|
|
1160
|
+
return DVPair.fromAmino(e);
|
|
1161
|
+
})) || [];
|
|
1162
|
+
return message;
|
|
1163
|
+
},
|
|
1164
|
+
toAmino: function toAmino(message) {
|
|
1165
|
+
var obj = {};
|
|
1166
|
+
if (message.pairs) {
|
|
1167
|
+
obj.pairs = message.pairs.map(function (e) {
|
|
1168
|
+
return e ? DVPair.toAmino(e) : undefined;
|
|
1169
|
+
});
|
|
1170
|
+
} else {
|
|
1171
|
+
obj.pairs = [];
|
|
1172
|
+
}
|
|
1173
|
+
return obj;
|
|
1174
|
+
},
|
|
1175
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
1176
|
+
return DVPairs.fromAmino(object.value);
|
|
1177
|
+
},
|
|
1178
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
1179
|
+
return {
|
|
1180
|
+
type: "cosmos-sdk/DVPairs",
|
|
1181
|
+
value: DVPairs.toAmino(message)
|
|
1182
|
+
};
|
|
1183
|
+
},
|
|
1184
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
1185
|
+
return DVPairs.decode(message.value);
|
|
1186
|
+
},
|
|
1187
|
+
toProto: function toProto(message) {
|
|
1188
|
+
return DVPairs.encode(message).finish();
|
|
1189
|
+
},
|
|
1190
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
1191
|
+
return {
|
|
1192
|
+
typeUrl: "/cosmos.staking.v1beta1.DVPairs",
|
|
1193
|
+
value: DVPairs.encode(message).finish()
|
|
1194
|
+
};
|
|
568
1195
|
}
|
|
569
1196
|
};
|
|
570
1197
|
exports.DVPairs = DVPairs;
|
|
@@ -576,8 +1203,9 @@ function createBaseDVVTriplet() {
|
|
|
576
1203
|
};
|
|
577
1204
|
}
|
|
578
1205
|
var DVVTriplet = {
|
|
1206
|
+
typeUrl: "/cosmos.staking.v1beta1.DVVTriplet",
|
|
579
1207
|
encode: function encode(message) {
|
|
580
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
1208
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
581
1209
|
if (message.delegatorAddress !== "") {
|
|
582
1210
|
writer.uint32(10).string(message.delegatorAddress);
|
|
583
1211
|
}
|
|
@@ -590,7 +1218,7 @@ var DVVTriplet = {
|
|
|
590
1218
|
return writer;
|
|
591
1219
|
},
|
|
592
1220
|
decode: function decode(input, length) {
|
|
593
|
-
var reader = input instanceof
|
|
1221
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
594
1222
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
595
1223
|
var message = createBaseDVVTriplet();
|
|
596
1224
|
while (reader.pos < end) {
|
|
@@ -619,6 +1247,47 @@ var DVVTriplet = {
|
|
|
619
1247
|
message.validatorSrcAddress = (_object$validatorSrcA = object.validatorSrcAddress) !== null && _object$validatorSrcA !== void 0 ? _object$validatorSrcA : "";
|
|
620
1248
|
message.validatorDstAddress = (_object$validatorDstA = object.validatorDstAddress) !== null && _object$validatorDstA !== void 0 ? _object$validatorDstA : "";
|
|
621
1249
|
return message;
|
|
1250
|
+
},
|
|
1251
|
+
fromAmino: function fromAmino(object) {
|
|
1252
|
+
var message = createBaseDVVTriplet();
|
|
1253
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
1254
|
+
message.delegatorAddress = object.delegator_address;
|
|
1255
|
+
}
|
|
1256
|
+
if (object.validator_src_address !== undefined && object.validator_src_address !== null) {
|
|
1257
|
+
message.validatorSrcAddress = object.validator_src_address;
|
|
1258
|
+
}
|
|
1259
|
+
if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) {
|
|
1260
|
+
message.validatorDstAddress = object.validator_dst_address;
|
|
1261
|
+
}
|
|
1262
|
+
return message;
|
|
1263
|
+
},
|
|
1264
|
+
toAmino: function toAmino(message) {
|
|
1265
|
+
var obj = {};
|
|
1266
|
+
obj.delegator_address = message.delegatorAddress;
|
|
1267
|
+
obj.validator_src_address = message.validatorSrcAddress;
|
|
1268
|
+
obj.validator_dst_address = message.validatorDstAddress;
|
|
1269
|
+
return obj;
|
|
1270
|
+
},
|
|
1271
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
1272
|
+
return DVVTriplet.fromAmino(object.value);
|
|
1273
|
+
},
|
|
1274
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
1275
|
+
return {
|
|
1276
|
+
type: "cosmos-sdk/DVVTriplet",
|
|
1277
|
+
value: DVVTriplet.toAmino(message)
|
|
1278
|
+
};
|
|
1279
|
+
},
|
|
1280
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
1281
|
+
return DVVTriplet.decode(message.value);
|
|
1282
|
+
},
|
|
1283
|
+
toProto: function toProto(message) {
|
|
1284
|
+
return DVVTriplet.encode(message).finish();
|
|
1285
|
+
},
|
|
1286
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
1287
|
+
return {
|
|
1288
|
+
typeUrl: "/cosmos.staking.v1beta1.DVVTriplet",
|
|
1289
|
+
value: DVVTriplet.encode(message).finish()
|
|
1290
|
+
};
|
|
622
1291
|
}
|
|
623
1292
|
};
|
|
624
1293
|
exports.DVVTriplet = DVVTriplet;
|
|
@@ -628,8 +1297,9 @@ function createBaseDVVTriplets() {
|
|
|
628
1297
|
};
|
|
629
1298
|
}
|
|
630
1299
|
var DVVTriplets = {
|
|
1300
|
+
typeUrl: "/cosmos.staking.v1beta1.DVVTriplets",
|
|
631
1301
|
encode: function encode(message) {
|
|
632
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
1302
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
633
1303
|
var _iterator4 = _createForOfIteratorHelper(message.triplets),
|
|
634
1304
|
_step4;
|
|
635
1305
|
try {
|
|
@@ -645,7 +1315,7 @@ var DVVTriplets = {
|
|
|
645
1315
|
return writer;
|
|
646
1316
|
},
|
|
647
1317
|
decode: function decode(input, length) {
|
|
648
|
-
var reader = input instanceof
|
|
1318
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
649
1319
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
650
1320
|
var message = createBaseDVVTriplets();
|
|
651
1321
|
while (reader.pos < end) {
|
|
@@ -668,6 +1338,46 @@ var DVVTriplets = {
|
|
|
668
1338
|
return DVVTriplet.fromPartial(e);
|
|
669
1339
|
})) || [];
|
|
670
1340
|
return message;
|
|
1341
|
+
},
|
|
1342
|
+
fromAmino: function fromAmino(object) {
|
|
1343
|
+
var _object$triplets2;
|
|
1344
|
+
var message = createBaseDVVTriplets();
|
|
1345
|
+
message.triplets = ((_object$triplets2 = object.triplets) === null || _object$triplets2 === void 0 ? void 0 : _object$triplets2.map(function (e) {
|
|
1346
|
+
return DVVTriplet.fromAmino(e);
|
|
1347
|
+
})) || [];
|
|
1348
|
+
return message;
|
|
1349
|
+
},
|
|
1350
|
+
toAmino: function toAmino(message) {
|
|
1351
|
+
var obj = {};
|
|
1352
|
+
if (message.triplets) {
|
|
1353
|
+
obj.triplets = message.triplets.map(function (e) {
|
|
1354
|
+
return e ? DVVTriplet.toAmino(e) : undefined;
|
|
1355
|
+
});
|
|
1356
|
+
} else {
|
|
1357
|
+
obj.triplets = [];
|
|
1358
|
+
}
|
|
1359
|
+
return obj;
|
|
1360
|
+
},
|
|
1361
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
1362
|
+
return DVVTriplets.fromAmino(object.value);
|
|
1363
|
+
},
|
|
1364
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
1365
|
+
return {
|
|
1366
|
+
type: "cosmos-sdk/DVVTriplets",
|
|
1367
|
+
value: DVVTriplets.toAmino(message)
|
|
1368
|
+
};
|
|
1369
|
+
},
|
|
1370
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
1371
|
+
return DVVTriplets.decode(message.value);
|
|
1372
|
+
},
|
|
1373
|
+
toProto: function toProto(message) {
|
|
1374
|
+
return DVVTriplets.encode(message).finish();
|
|
1375
|
+
},
|
|
1376
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
1377
|
+
return {
|
|
1378
|
+
typeUrl: "/cosmos.staking.v1beta1.DVVTriplets",
|
|
1379
|
+
value: DVVTriplets.encode(message).finish()
|
|
1380
|
+
};
|
|
671
1381
|
}
|
|
672
1382
|
};
|
|
673
1383
|
exports.DVVTriplets = DVVTriplets;
|
|
@@ -679,8 +1389,9 @@ function createBaseDelegation() {
|
|
|
679
1389
|
};
|
|
680
1390
|
}
|
|
681
1391
|
var Delegation = {
|
|
1392
|
+
typeUrl: "/cosmos.staking.v1beta1.Delegation",
|
|
682
1393
|
encode: function encode(message) {
|
|
683
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
1394
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
684
1395
|
if (message.delegatorAddress !== "") {
|
|
685
1396
|
writer.uint32(10).string(message.delegatorAddress);
|
|
686
1397
|
}
|
|
@@ -688,12 +1399,12 @@ var Delegation = {
|
|
|
688
1399
|
writer.uint32(18).string(message.validatorAddress);
|
|
689
1400
|
}
|
|
690
1401
|
if (message.shares !== "") {
|
|
691
|
-
writer.uint32(26).string(message.shares);
|
|
1402
|
+
writer.uint32(26).string(_math.Decimal.fromUserInput(message.shares, 18).atomics);
|
|
692
1403
|
}
|
|
693
1404
|
return writer;
|
|
694
1405
|
},
|
|
695
1406
|
decode: function decode(input, length) {
|
|
696
|
-
var reader = input instanceof
|
|
1407
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
697
1408
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
698
1409
|
var message = createBaseDelegation();
|
|
699
1410
|
while (reader.pos < end) {
|
|
@@ -706,7 +1417,7 @@ var Delegation = {
|
|
|
706
1417
|
message.validatorAddress = reader.string();
|
|
707
1418
|
break;
|
|
708
1419
|
case 3:
|
|
709
|
-
message.shares = reader.string();
|
|
1420
|
+
message.shares = _math.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
710
1421
|
break;
|
|
711
1422
|
default:
|
|
712
1423
|
reader.skipType(tag & 7);
|
|
@@ -722,6 +1433,47 @@ var Delegation = {
|
|
|
722
1433
|
message.validatorAddress = (_object$validatorAddr2 = object.validatorAddress) !== null && _object$validatorAddr2 !== void 0 ? _object$validatorAddr2 : "";
|
|
723
1434
|
message.shares = (_object$shares = object.shares) !== null && _object$shares !== void 0 ? _object$shares : "";
|
|
724
1435
|
return message;
|
|
1436
|
+
},
|
|
1437
|
+
fromAmino: function fromAmino(object) {
|
|
1438
|
+
var message = createBaseDelegation();
|
|
1439
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
1440
|
+
message.delegatorAddress = object.delegator_address;
|
|
1441
|
+
}
|
|
1442
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
1443
|
+
message.validatorAddress = object.validator_address;
|
|
1444
|
+
}
|
|
1445
|
+
if (object.shares !== undefined && object.shares !== null) {
|
|
1446
|
+
message.shares = object.shares;
|
|
1447
|
+
}
|
|
1448
|
+
return message;
|
|
1449
|
+
},
|
|
1450
|
+
toAmino: function toAmino(message) {
|
|
1451
|
+
var obj = {};
|
|
1452
|
+
obj.delegator_address = message.delegatorAddress;
|
|
1453
|
+
obj.validator_address = message.validatorAddress;
|
|
1454
|
+
obj.shares = message.shares;
|
|
1455
|
+
return obj;
|
|
1456
|
+
},
|
|
1457
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
1458
|
+
return Delegation.fromAmino(object.value);
|
|
1459
|
+
},
|
|
1460
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
1461
|
+
return {
|
|
1462
|
+
type: "cosmos-sdk/Delegation",
|
|
1463
|
+
value: Delegation.toAmino(message)
|
|
1464
|
+
};
|
|
1465
|
+
},
|
|
1466
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
1467
|
+
return Delegation.decode(message.value);
|
|
1468
|
+
},
|
|
1469
|
+
toProto: function toProto(message) {
|
|
1470
|
+
return Delegation.encode(message).finish();
|
|
1471
|
+
},
|
|
1472
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
1473
|
+
return {
|
|
1474
|
+
typeUrl: "/cosmos.staking.v1beta1.Delegation",
|
|
1475
|
+
value: Delegation.encode(message).finish()
|
|
1476
|
+
};
|
|
725
1477
|
}
|
|
726
1478
|
};
|
|
727
1479
|
exports.Delegation = Delegation;
|
|
@@ -733,8 +1485,9 @@ function createBaseUnbondingDelegation() {
|
|
|
733
1485
|
};
|
|
734
1486
|
}
|
|
735
1487
|
var UnbondingDelegation = {
|
|
1488
|
+
typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation",
|
|
736
1489
|
encode: function encode(message) {
|
|
737
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
1490
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
738
1491
|
if (message.delegatorAddress !== "") {
|
|
739
1492
|
writer.uint32(10).string(message.delegatorAddress);
|
|
740
1493
|
}
|
|
@@ -756,7 +1509,7 @@ var UnbondingDelegation = {
|
|
|
756
1509
|
return writer;
|
|
757
1510
|
},
|
|
758
1511
|
decode: function decode(input, length) {
|
|
759
|
-
var reader = input instanceof
|
|
1512
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
760
1513
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
761
1514
|
var message = createBaseUnbondingDelegation();
|
|
762
1515
|
while (reader.pos < end) {
|
|
@@ -787,21 +1540,70 @@ var UnbondingDelegation = {
|
|
|
787
1540
|
return UnbondingDelegationEntry.fromPartial(e);
|
|
788
1541
|
})) || [];
|
|
789
1542
|
return message;
|
|
1543
|
+
},
|
|
1544
|
+
fromAmino: function fromAmino(object) {
|
|
1545
|
+
var _object$entries2;
|
|
1546
|
+
var message = createBaseUnbondingDelegation();
|
|
1547
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
1548
|
+
message.delegatorAddress = object.delegator_address;
|
|
1549
|
+
}
|
|
1550
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
1551
|
+
message.validatorAddress = object.validator_address;
|
|
1552
|
+
}
|
|
1553
|
+
message.entries = ((_object$entries2 = object.entries) === null || _object$entries2 === void 0 ? void 0 : _object$entries2.map(function (e) {
|
|
1554
|
+
return UnbondingDelegationEntry.fromAmino(e);
|
|
1555
|
+
})) || [];
|
|
1556
|
+
return message;
|
|
1557
|
+
},
|
|
1558
|
+
toAmino: function toAmino(message) {
|
|
1559
|
+
var obj = {};
|
|
1560
|
+
obj.delegator_address = message.delegatorAddress;
|
|
1561
|
+
obj.validator_address = message.validatorAddress;
|
|
1562
|
+
if (message.entries) {
|
|
1563
|
+
obj.entries = message.entries.map(function (e) {
|
|
1564
|
+
return e ? UnbondingDelegationEntry.toAmino(e) : undefined;
|
|
1565
|
+
});
|
|
1566
|
+
} else {
|
|
1567
|
+
obj.entries = [];
|
|
1568
|
+
}
|
|
1569
|
+
return obj;
|
|
1570
|
+
},
|
|
1571
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
1572
|
+
return UnbondingDelegation.fromAmino(object.value);
|
|
1573
|
+
},
|
|
1574
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
1575
|
+
return {
|
|
1576
|
+
type: "cosmos-sdk/UnbondingDelegation",
|
|
1577
|
+
value: UnbondingDelegation.toAmino(message)
|
|
1578
|
+
};
|
|
1579
|
+
},
|
|
1580
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
1581
|
+
return UnbondingDelegation.decode(message.value);
|
|
1582
|
+
},
|
|
1583
|
+
toProto: function toProto(message) {
|
|
1584
|
+
return UnbondingDelegation.encode(message).finish();
|
|
1585
|
+
},
|
|
1586
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
1587
|
+
return {
|
|
1588
|
+
typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation",
|
|
1589
|
+
value: UnbondingDelegation.encode(message).finish()
|
|
1590
|
+
};
|
|
790
1591
|
}
|
|
791
1592
|
};
|
|
792
1593
|
exports.UnbondingDelegation = UnbondingDelegation;
|
|
793
1594
|
function createBaseUnbondingDelegationEntry() {
|
|
794
1595
|
return {
|
|
795
|
-
creationHeight:
|
|
796
|
-
completionTime:
|
|
1596
|
+
creationHeight: BigInt(0),
|
|
1597
|
+
completionTime: new Date(),
|
|
797
1598
|
initialBalance: "",
|
|
798
1599
|
balance: ""
|
|
799
1600
|
};
|
|
800
1601
|
}
|
|
801
1602
|
var UnbondingDelegationEntry = {
|
|
1603
|
+
typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry",
|
|
802
1604
|
encode: function encode(message) {
|
|
803
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
804
|
-
if (
|
|
1605
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
1606
|
+
if (message.creationHeight !== BigInt(0)) {
|
|
805
1607
|
writer.uint32(8).int64(message.creationHeight);
|
|
806
1608
|
}
|
|
807
1609
|
if (message.completionTime !== undefined) {
|
|
@@ -816,7 +1618,7 @@ var UnbondingDelegationEntry = {
|
|
|
816
1618
|
return writer;
|
|
817
1619
|
},
|
|
818
1620
|
decode: function decode(input, length) {
|
|
819
|
-
var reader = input instanceof
|
|
1621
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
820
1622
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
821
1623
|
var message = createBaseUnbondingDelegationEntry();
|
|
822
1624
|
while (reader.pos < end) {
|
|
@@ -844,26 +1646,72 @@ var UnbondingDelegationEntry = {
|
|
|
844
1646
|
fromPartial: function fromPartial(object) {
|
|
845
1647
|
var _object$completionTim, _object$initialBalanc, _object$balance;
|
|
846
1648
|
var message = createBaseUnbondingDelegationEntry();
|
|
847
|
-
message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ?
|
|
1649
|
+
message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0);
|
|
848
1650
|
message.completionTime = (_object$completionTim = object.completionTime) !== null && _object$completionTim !== void 0 ? _object$completionTim : undefined;
|
|
849
1651
|
message.initialBalance = (_object$initialBalanc = object.initialBalance) !== null && _object$initialBalanc !== void 0 ? _object$initialBalanc : "";
|
|
850
1652
|
message.balance = (_object$balance = object.balance) !== null && _object$balance !== void 0 ? _object$balance : "";
|
|
851
1653
|
return message;
|
|
1654
|
+
},
|
|
1655
|
+
fromAmino: function fromAmino(object) {
|
|
1656
|
+
var message = createBaseUnbondingDelegationEntry();
|
|
1657
|
+
if (object.creation_height !== undefined && object.creation_height !== null) {
|
|
1658
|
+
message.creationHeight = BigInt(object.creation_height);
|
|
1659
|
+
}
|
|
1660
|
+
if (object.completion_time !== undefined && object.completion_time !== null) {
|
|
1661
|
+
message.completionTime = (0, _helpers.fromTimestamp)(_timestamp.Timestamp.fromAmino(object.completion_time));
|
|
1662
|
+
}
|
|
1663
|
+
if (object.initial_balance !== undefined && object.initial_balance !== null) {
|
|
1664
|
+
message.initialBalance = object.initial_balance;
|
|
1665
|
+
}
|
|
1666
|
+
if (object.balance !== undefined && object.balance !== null) {
|
|
1667
|
+
message.balance = object.balance;
|
|
1668
|
+
}
|
|
1669
|
+
return message;
|
|
1670
|
+
},
|
|
1671
|
+
toAmino: function toAmino(message) {
|
|
1672
|
+
var obj = {};
|
|
1673
|
+
obj.creation_height = message.creationHeight ? message.creationHeight.toString() : undefined;
|
|
1674
|
+
obj.completion_time = message.completionTime ? _timestamp.Timestamp.toAmino((0, _helpers.toTimestamp)(message.completionTime)) : undefined;
|
|
1675
|
+
obj.initial_balance = message.initialBalance;
|
|
1676
|
+
obj.balance = message.balance;
|
|
1677
|
+
return obj;
|
|
1678
|
+
},
|
|
1679
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
1680
|
+
return UnbondingDelegationEntry.fromAmino(object.value);
|
|
1681
|
+
},
|
|
1682
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
1683
|
+
return {
|
|
1684
|
+
type: "cosmos-sdk/UnbondingDelegationEntry",
|
|
1685
|
+
value: UnbondingDelegationEntry.toAmino(message)
|
|
1686
|
+
};
|
|
1687
|
+
},
|
|
1688
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
1689
|
+
return UnbondingDelegationEntry.decode(message.value);
|
|
1690
|
+
},
|
|
1691
|
+
toProto: function toProto(message) {
|
|
1692
|
+
return UnbondingDelegationEntry.encode(message).finish();
|
|
1693
|
+
},
|
|
1694
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
1695
|
+
return {
|
|
1696
|
+
typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry",
|
|
1697
|
+
value: UnbondingDelegationEntry.encode(message).finish()
|
|
1698
|
+
};
|
|
852
1699
|
}
|
|
853
1700
|
};
|
|
854
1701
|
exports.UnbondingDelegationEntry = UnbondingDelegationEntry;
|
|
855
1702
|
function createBaseRedelegationEntry() {
|
|
856
1703
|
return {
|
|
857
|
-
creationHeight:
|
|
858
|
-
completionTime:
|
|
1704
|
+
creationHeight: BigInt(0),
|
|
1705
|
+
completionTime: new Date(),
|
|
859
1706
|
initialBalance: "",
|
|
860
1707
|
sharesDst: ""
|
|
861
1708
|
};
|
|
862
1709
|
}
|
|
863
1710
|
var RedelegationEntry = {
|
|
1711
|
+
typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry",
|
|
864
1712
|
encode: function encode(message) {
|
|
865
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
866
|
-
if (
|
|
1713
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
1714
|
+
if (message.creationHeight !== BigInt(0)) {
|
|
867
1715
|
writer.uint32(8).int64(message.creationHeight);
|
|
868
1716
|
}
|
|
869
1717
|
if (message.completionTime !== undefined) {
|
|
@@ -873,12 +1721,12 @@ var RedelegationEntry = {
|
|
|
873
1721
|
writer.uint32(26).string(message.initialBalance);
|
|
874
1722
|
}
|
|
875
1723
|
if (message.sharesDst !== "") {
|
|
876
|
-
writer.uint32(34).string(message.sharesDst);
|
|
1724
|
+
writer.uint32(34).string(_math.Decimal.fromUserInput(message.sharesDst, 18).atomics);
|
|
877
1725
|
}
|
|
878
1726
|
return writer;
|
|
879
1727
|
},
|
|
880
1728
|
decode: function decode(input, length) {
|
|
881
|
-
var reader = input instanceof
|
|
1729
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
882
1730
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
883
1731
|
var message = createBaseRedelegationEntry();
|
|
884
1732
|
while (reader.pos < end) {
|
|
@@ -894,7 +1742,7 @@ var RedelegationEntry = {
|
|
|
894
1742
|
message.initialBalance = reader.string();
|
|
895
1743
|
break;
|
|
896
1744
|
case 4:
|
|
897
|
-
message.sharesDst = reader.string();
|
|
1745
|
+
message.sharesDst = _math.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
898
1746
|
break;
|
|
899
1747
|
default:
|
|
900
1748
|
reader.skipType(tag & 7);
|
|
@@ -906,11 +1754,56 @@ var RedelegationEntry = {
|
|
|
906
1754
|
fromPartial: function fromPartial(object) {
|
|
907
1755
|
var _object$completionTim2, _object$initialBalanc2, _object$sharesDst;
|
|
908
1756
|
var message = createBaseRedelegationEntry();
|
|
909
|
-
message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ?
|
|
1757
|
+
message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0);
|
|
910
1758
|
message.completionTime = (_object$completionTim2 = object.completionTime) !== null && _object$completionTim2 !== void 0 ? _object$completionTim2 : undefined;
|
|
911
1759
|
message.initialBalance = (_object$initialBalanc2 = object.initialBalance) !== null && _object$initialBalanc2 !== void 0 ? _object$initialBalanc2 : "";
|
|
912
1760
|
message.sharesDst = (_object$sharesDst = object.sharesDst) !== null && _object$sharesDst !== void 0 ? _object$sharesDst : "";
|
|
913
1761
|
return message;
|
|
1762
|
+
},
|
|
1763
|
+
fromAmino: function fromAmino(object) {
|
|
1764
|
+
var message = createBaseRedelegationEntry();
|
|
1765
|
+
if (object.creation_height !== undefined && object.creation_height !== null) {
|
|
1766
|
+
message.creationHeight = BigInt(object.creation_height);
|
|
1767
|
+
}
|
|
1768
|
+
if (object.completion_time !== undefined && object.completion_time !== null) {
|
|
1769
|
+
message.completionTime = (0, _helpers.fromTimestamp)(_timestamp.Timestamp.fromAmino(object.completion_time));
|
|
1770
|
+
}
|
|
1771
|
+
if (object.initial_balance !== undefined && object.initial_balance !== null) {
|
|
1772
|
+
message.initialBalance = object.initial_balance;
|
|
1773
|
+
}
|
|
1774
|
+
if (object.shares_dst !== undefined && object.shares_dst !== null) {
|
|
1775
|
+
message.sharesDst = object.shares_dst;
|
|
1776
|
+
}
|
|
1777
|
+
return message;
|
|
1778
|
+
},
|
|
1779
|
+
toAmino: function toAmino(message) {
|
|
1780
|
+
var obj = {};
|
|
1781
|
+
obj.creation_height = message.creationHeight ? message.creationHeight.toString() : undefined;
|
|
1782
|
+
obj.completion_time = message.completionTime ? _timestamp.Timestamp.toAmino((0, _helpers.toTimestamp)(message.completionTime)) : undefined;
|
|
1783
|
+
obj.initial_balance = message.initialBalance;
|
|
1784
|
+
obj.shares_dst = message.sharesDst;
|
|
1785
|
+
return obj;
|
|
1786
|
+
},
|
|
1787
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
1788
|
+
return RedelegationEntry.fromAmino(object.value);
|
|
1789
|
+
},
|
|
1790
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
1791
|
+
return {
|
|
1792
|
+
type: "cosmos-sdk/RedelegationEntry",
|
|
1793
|
+
value: RedelegationEntry.toAmino(message)
|
|
1794
|
+
};
|
|
1795
|
+
},
|
|
1796
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
1797
|
+
return RedelegationEntry.decode(message.value);
|
|
1798
|
+
},
|
|
1799
|
+
toProto: function toProto(message) {
|
|
1800
|
+
return RedelegationEntry.encode(message).finish();
|
|
1801
|
+
},
|
|
1802
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
1803
|
+
return {
|
|
1804
|
+
typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry",
|
|
1805
|
+
value: RedelegationEntry.encode(message).finish()
|
|
1806
|
+
};
|
|
914
1807
|
}
|
|
915
1808
|
};
|
|
916
1809
|
exports.RedelegationEntry = RedelegationEntry;
|
|
@@ -923,8 +1816,9 @@ function createBaseRedelegation() {
|
|
|
923
1816
|
};
|
|
924
1817
|
}
|
|
925
1818
|
var Redelegation = {
|
|
1819
|
+
typeUrl: "/cosmos.staking.v1beta1.Redelegation",
|
|
926
1820
|
encode: function encode(message) {
|
|
927
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
1821
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
928
1822
|
if (message.delegatorAddress !== "") {
|
|
929
1823
|
writer.uint32(10).string(message.delegatorAddress);
|
|
930
1824
|
}
|
|
@@ -949,7 +1843,7 @@ var Redelegation = {
|
|
|
949
1843
|
return writer;
|
|
950
1844
|
},
|
|
951
1845
|
decode: function decode(input, length) {
|
|
952
|
-
var reader = input instanceof
|
|
1846
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
953
1847
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
954
1848
|
var message = createBaseRedelegation();
|
|
955
1849
|
while (reader.pos < end) {
|
|
@@ -975,21 +1869,73 @@ var Redelegation = {
|
|
|
975
1869
|
return message;
|
|
976
1870
|
},
|
|
977
1871
|
fromPartial: function fromPartial(object) {
|
|
978
|
-
var _object$delegatorAddr5, _object$validatorSrcA2, _object$validatorDstA2, _object$
|
|
1872
|
+
var _object$delegatorAddr5, _object$validatorSrcA2, _object$validatorDstA2, _object$entries3;
|
|
979
1873
|
var message = createBaseRedelegation();
|
|
980
1874
|
message.delegatorAddress = (_object$delegatorAddr5 = object.delegatorAddress) !== null && _object$delegatorAddr5 !== void 0 ? _object$delegatorAddr5 : "";
|
|
981
1875
|
message.validatorSrcAddress = (_object$validatorSrcA2 = object.validatorSrcAddress) !== null && _object$validatorSrcA2 !== void 0 ? _object$validatorSrcA2 : "";
|
|
982
1876
|
message.validatorDstAddress = (_object$validatorDstA2 = object.validatorDstAddress) !== null && _object$validatorDstA2 !== void 0 ? _object$validatorDstA2 : "";
|
|
983
|
-
message.entries = ((_object$
|
|
1877
|
+
message.entries = ((_object$entries3 = object.entries) === null || _object$entries3 === void 0 ? void 0 : _object$entries3.map(function (e) {
|
|
984
1878
|
return RedelegationEntry.fromPartial(e);
|
|
985
1879
|
})) || [];
|
|
986
1880
|
return message;
|
|
1881
|
+
},
|
|
1882
|
+
fromAmino: function fromAmino(object) {
|
|
1883
|
+
var _object$entries4;
|
|
1884
|
+
var message = createBaseRedelegation();
|
|
1885
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
1886
|
+
message.delegatorAddress = object.delegator_address;
|
|
1887
|
+
}
|
|
1888
|
+
if (object.validator_src_address !== undefined && object.validator_src_address !== null) {
|
|
1889
|
+
message.validatorSrcAddress = object.validator_src_address;
|
|
1890
|
+
}
|
|
1891
|
+
if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) {
|
|
1892
|
+
message.validatorDstAddress = object.validator_dst_address;
|
|
1893
|
+
}
|
|
1894
|
+
message.entries = ((_object$entries4 = object.entries) === null || _object$entries4 === void 0 ? void 0 : _object$entries4.map(function (e) {
|
|
1895
|
+
return RedelegationEntry.fromAmino(e);
|
|
1896
|
+
})) || [];
|
|
1897
|
+
return message;
|
|
1898
|
+
},
|
|
1899
|
+
toAmino: function toAmino(message) {
|
|
1900
|
+
var obj = {};
|
|
1901
|
+
obj.delegator_address = message.delegatorAddress;
|
|
1902
|
+
obj.validator_src_address = message.validatorSrcAddress;
|
|
1903
|
+
obj.validator_dst_address = message.validatorDstAddress;
|
|
1904
|
+
if (message.entries) {
|
|
1905
|
+
obj.entries = message.entries.map(function (e) {
|
|
1906
|
+
return e ? RedelegationEntry.toAmino(e) : undefined;
|
|
1907
|
+
});
|
|
1908
|
+
} else {
|
|
1909
|
+
obj.entries = [];
|
|
1910
|
+
}
|
|
1911
|
+
return obj;
|
|
1912
|
+
},
|
|
1913
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
1914
|
+
return Redelegation.fromAmino(object.value);
|
|
1915
|
+
},
|
|
1916
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
1917
|
+
return {
|
|
1918
|
+
type: "cosmos-sdk/Redelegation",
|
|
1919
|
+
value: Redelegation.toAmino(message)
|
|
1920
|
+
};
|
|
1921
|
+
},
|
|
1922
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
1923
|
+
return Redelegation.decode(message.value);
|
|
1924
|
+
},
|
|
1925
|
+
toProto: function toProto(message) {
|
|
1926
|
+
return Redelegation.encode(message).finish();
|
|
1927
|
+
},
|
|
1928
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
1929
|
+
return {
|
|
1930
|
+
typeUrl: "/cosmos.staking.v1beta1.Redelegation",
|
|
1931
|
+
value: Redelegation.encode(message).finish()
|
|
1932
|
+
};
|
|
987
1933
|
}
|
|
988
1934
|
};
|
|
989
1935
|
exports.Redelegation = Redelegation;
|
|
990
1936
|
function createBaseParams() {
|
|
991
1937
|
return {
|
|
992
|
-
unbondingTime:
|
|
1938
|
+
unbondingTime: _duration.Duration.fromPartial({}),
|
|
993
1939
|
maxValidators: 0,
|
|
994
1940
|
maxEntries: 0,
|
|
995
1941
|
historicalEntries: 0,
|
|
@@ -998,8 +1944,9 @@ function createBaseParams() {
|
|
|
998
1944
|
};
|
|
999
1945
|
}
|
|
1000
1946
|
var Params = {
|
|
1947
|
+
typeUrl: "/cosmos.staking.v1beta1.Params",
|
|
1001
1948
|
encode: function encode(message) {
|
|
1002
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
1949
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
1003
1950
|
if (message.unbondingTime !== undefined) {
|
|
1004
1951
|
_duration.Duration.encode(message.unbondingTime, writer.uint32(10).fork()).ldelim();
|
|
1005
1952
|
}
|
|
@@ -1016,12 +1963,12 @@ var Params = {
|
|
|
1016
1963
|
writer.uint32(42).string(message.bondDenom);
|
|
1017
1964
|
}
|
|
1018
1965
|
if (message.minCommissionRate !== "") {
|
|
1019
|
-
writer.uint32(50).string(message.minCommissionRate);
|
|
1966
|
+
writer.uint32(50).string(_math.Decimal.fromUserInput(message.minCommissionRate, 18).atomics);
|
|
1020
1967
|
}
|
|
1021
1968
|
return writer;
|
|
1022
1969
|
},
|
|
1023
1970
|
decode: function decode(input, length) {
|
|
1024
|
-
var reader = input instanceof
|
|
1971
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
1025
1972
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
1026
1973
|
var message = createBaseParams();
|
|
1027
1974
|
while (reader.pos < end) {
|
|
@@ -1043,7 +1990,7 @@ var Params = {
|
|
|
1043
1990
|
message.bondDenom = reader.string();
|
|
1044
1991
|
break;
|
|
1045
1992
|
case 6:
|
|
1046
|
-
message.minCommissionRate = reader.string();
|
|
1993
|
+
message.minCommissionRate = _math.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1047
1994
|
break;
|
|
1048
1995
|
default:
|
|
1049
1996
|
reader.skipType(tag & 7);
|
|
@@ -1062,18 +2009,72 @@ var Params = {
|
|
|
1062
2009
|
message.bondDenom = (_object$bondDenom = object.bondDenom) !== null && _object$bondDenom !== void 0 ? _object$bondDenom : "";
|
|
1063
2010
|
message.minCommissionRate = (_object$minCommission = object.minCommissionRate) !== null && _object$minCommission !== void 0 ? _object$minCommission : "";
|
|
1064
2011
|
return message;
|
|
2012
|
+
},
|
|
2013
|
+
fromAmino: function fromAmino(object) {
|
|
2014
|
+
var message = createBaseParams();
|
|
2015
|
+
if (object.unbonding_time !== undefined && object.unbonding_time !== null) {
|
|
2016
|
+
message.unbondingTime = _duration.Duration.fromAmino(object.unbonding_time);
|
|
2017
|
+
}
|
|
2018
|
+
if (object.max_validators !== undefined && object.max_validators !== null) {
|
|
2019
|
+
message.maxValidators = object.max_validators;
|
|
2020
|
+
}
|
|
2021
|
+
if (object.max_entries !== undefined && object.max_entries !== null) {
|
|
2022
|
+
message.maxEntries = object.max_entries;
|
|
2023
|
+
}
|
|
2024
|
+
if (object.historical_entries !== undefined && object.historical_entries !== null) {
|
|
2025
|
+
message.historicalEntries = object.historical_entries;
|
|
2026
|
+
}
|
|
2027
|
+
if (object.bond_denom !== undefined && object.bond_denom !== null) {
|
|
2028
|
+
message.bondDenom = object.bond_denom;
|
|
2029
|
+
}
|
|
2030
|
+
if (object.min_commission_rate !== undefined && object.min_commission_rate !== null) {
|
|
2031
|
+
message.minCommissionRate = object.min_commission_rate;
|
|
2032
|
+
}
|
|
2033
|
+
return message;
|
|
2034
|
+
},
|
|
2035
|
+
toAmino: function toAmino(message) {
|
|
2036
|
+
var obj = {};
|
|
2037
|
+
obj.unbonding_time = message.unbondingTime ? _duration.Duration.toAmino(message.unbondingTime) : undefined;
|
|
2038
|
+
obj.max_validators = message.maxValidators;
|
|
2039
|
+
obj.max_entries = message.maxEntries;
|
|
2040
|
+
obj.historical_entries = message.historicalEntries;
|
|
2041
|
+
obj.bond_denom = message.bondDenom;
|
|
2042
|
+
obj.min_commission_rate = message.minCommissionRate;
|
|
2043
|
+
return obj;
|
|
2044
|
+
},
|
|
2045
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
2046
|
+
return Params.fromAmino(object.value);
|
|
2047
|
+
},
|
|
2048
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
2049
|
+
return {
|
|
2050
|
+
type: "cosmos-sdk/Params",
|
|
2051
|
+
value: Params.toAmino(message)
|
|
2052
|
+
};
|
|
2053
|
+
},
|
|
2054
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
2055
|
+
return Params.decode(message.value);
|
|
2056
|
+
},
|
|
2057
|
+
toProto: function toProto(message) {
|
|
2058
|
+
return Params.encode(message).finish();
|
|
2059
|
+
},
|
|
2060
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
2061
|
+
return {
|
|
2062
|
+
typeUrl: "/cosmos.staking.v1beta1.Params",
|
|
2063
|
+
value: Params.encode(message).finish()
|
|
2064
|
+
};
|
|
1065
2065
|
}
|
|
1066
2066
|
};
|
|
1067
2067
|
exports.Params = Params;
|
|
1068
2068
|
function createBaseDelegationResponse() {
|
|
1069
2069
|
return {
|
|
1070
|
-
delegation:
|
|
1071
|
-
balance:
|
|
2070
|
+
delegation: Delegation.fromPartial({}),
|
|
2071
|
+
balance: _coin.Coin.fromPartial({})
|
|
1072
2072
|
};
|
|
1073
2073
|
}
|
|
1074
2074
|
var DelegationResponse = {
|
|
2075
|
+
typeUrl: "/cosmos.staking.v1beta1.DelegationResponse",
|
|
1075
2076
|
encode: function encode(message) {
|
|
1076
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
2077
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
1077
2078
|
if (message.delegation !== undefined) {
|
|
1078
2079
|
Delegation.encode(message.delegation, writer.uint32(10).fork()).ldelim();
|
|
1079
2080
|
}
|
|
@@ -1083,7 +2084,7 @@ var DelegationResponse = {
|
|
|
1083
2084
|
return writer;
|
|
1084
2085
|
},
|
|
1085
2086
|
decode: function decode(input, length) {
|
|
1086
|
-
var reader = input instanceof
|
|
2087
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
1087
2088
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
1088
2089
|
var message = createBaseDelegationResponse();
|
|
1089
2090
|
while (reader.pos < end) {
|
|
@@ -1107,18 +2108,56 @@ var DelegationResponse = {
|
|
|
1107
2108
|
message.delegation = object.delegation !== undefined && object.delegation !== null ? Delegation.fromPartial(object.delegation) : undefined;
|
|
1108
2109
|
message.balance = object.balance !== undefined && object.balance !== null ? _coin.Coin.fromPartial(object.balance) : undefined;
|
|
1109
2110
|
return message;
|
|
2111
|
+
},
|
|
2112
|
+
fromAmino: function fromAmino(object) {
|
|
2113
|
+
var message = createBaseDelegationResponse();
|
|
2114
|
+
if (object.delegation !== undefined && object.delegation !== null) {
|
|
2115
|
+
message.delegation = Delegation.fromAmino(object.delegation);
|
|
2116
|
+
}
|
|
2117
|
+
if (object.balance !== undefined && object.balance !== null) {
|
|
2118
|
+
message.balance = _coin.Coin.fromAmino(object.balance);
|
|
2119
|
+
}
|
|
2120
|
+
return message;
|
|
2121
|
+
},
|
|
2122
|
+
toAmino: function toAmino(message) {
|
|
2123
|
+
var obj = {};
|
|
2124
|
+
obj.delegation = message.delegation ? Delegation.toAmino(message.delegation) : undefined;
|
|
2125
|
+
obj.balance = message.balance ? _coin.Coin.toAmino(message.balance) : undefined;
|
|
2126
|
+
return obj;
|
|
2127
|
+
},
|
|
2128
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
2129
|
+
return DelegationResponse.fromAmino(object.value);
|
|
2130
|
+
},
|
|
2131
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
2132
|
+
return {
|
|
2133
|
+
type: "cosmos-sdk/DelegationResponse",
|
|
2134
|
+
value: DelegationResponse.toAmino(message)
|
|
2135
|
+
};
|
|
2136
|
+
},
|
|
2137
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
2138
|
+
return DelegationResponse.decode(message.value);
|
|
2139
|
+
},
|
|
2140
|
+
toProto: function toProto(message) {
|
|
2141
|
+
return DelegationResponse.encode(message).finish();
|
|
2142
|
+
},
|
|
2143
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
2144
|
+
return {
|
|
2145
|
+
typeUrl: "/cosmos.staking.v1beta1.DelegationResponse",
|
|
2146
|
+
value: DelegationResponse.encode(message).finish()
|
|
2147
|
+
};
|
|
1110
2148
|
}
|
|
1111
2149
|
};
|
|
1112
2150
|
exports.DelegationResponse = DelegationResponse;
|
|
1113
2151
|
function createBaseRedelegationEntryResponse() {
|
|
1114
2152
|
return {
|
|
1115
|
-
redelegationEntry:
|
|
2153
|
+
redelegationEntry: RedelegationEntry.fromPartial({}),
|
|
1116
2154
|
balance: ""
|
|
1117
2155
|
};
|
|
1118
2156
|
}
|
|
1119
2157
|
var RedelegationEntryResponse = {
|
|
2158
|
+
typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse",
|
|
1120
2159
|
encode: function encode(message) {
|
|
1121
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
2160
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
1122
2161
|
if (message.redelegationEntry !== undefined) {
|
|
1123
2162
|
RedelegationEntry.encode(message.redelegationEntry, writer.uint32(10).fork()).ldelim();
|
|
1124
2163
|
}
|
|
@@ -1128,7 +2167,7 @@ var RedelegationEntryResponse = {
|
|
|
1128
2167
|
return writer;
|
|
1129
2168
|
},
|
|
1130
2169
|
decode: function decode(input, length) {
|
|
1131
|
-
var reader = input instanceof
|
|
2170
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
1132
2171
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
1133
2172
|
var message = createBaseRedelegationEntryResponse();
|
|
1134
2173
|
while (reader.pos < end) {
|
|
@@ -1153,18 +2192,56 @@ var RedelegationEntryResponse = {
|
|
|
1153
2192
|
message.redelegationEntry = object.redelegationEntry !== undefined && object.redelegationEntry !== null ? RedelegationEntry.fromPartial(object.redelegationEntry) : undefined;
|
|
1154
2193
|
message.balance = (_object$balance2 = object.balance) !== null && _object$balance2 !== void 0 ? _object$balance2 : "";
|
|
1155
2194
|
return message;
|
|
2195
|
+
},
|
|
2196
|
+
fromAmino: function fromAmino(object) {
|
|
2197
|
+
var message = createBaseRedelegationEntryResponse();
|
|
2198
|
+
if (object.redelegation_entry !== undefined && object.redelegation_entry !== null) {
|
|
2199
|
+
message.redelegationEntry = RedelegationEntry.fromAmino(object.redelegation_entry);
|
|
2200
|
+
}
|
|
2201
|
+
if (object.balance !== undefined && object.balance !== null) {
|
|
2202
|
+
message.balance = object.balance;
|
|
2203
|
+
}
|
|
2204
|
+
return message;
|
|
2205
|
+
},
|
|
2206
|
+
toAmino: function toAmino(message) {
|
|
2207
|
+
var obj = {};
|
|
2208
|
+
obj.redelegation_entry = message.redelegationEntry ? RedelegationEntry.toAmino(message.redelegationEntry) : undefined;
|
|
2209
|
+
obj.balance = message.balance;
|
|
2210
|
+
return obj;
|
|
2211
|
+
},
|
|
2212
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
2213
|
+
return RedelegationEntryResponse.fromAmino(object.value);
|
|
2214
|
+
},
|
|
2215
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
2216
|
+
return {
|
|
2217
|
+
type: "cosmos-sdk/RedelegationEntryResponse",
|
|
2218
|
+
value: RedelegationEntryResponse.toAmino(message)
|
|
2219
|
+
};
|
|
2220
|
+
},
|
|
2221
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
2222
|
+
return RedelegationEntryResponse.decode(message.value);
|
|
2223
|
+
},
|
|
2224
|
+
toProto: function toProto(message) {
|
|
2225
|
+
return RedelegationEntryResponse.encode(message).finish();
|
|
2226
|
+
},
|
|
2227
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
2228
|
+
return {
|
|
2229
|
+
typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse",
|
|
2230
|
+
value: RedelegationEntryResponse.encode(message).finish()
|
|
2231
|
+
};
|
|
1156
2232
|
}
|
|
1157
2233
|
};
|
|
1158
2234
|
exports.RedelegationEntryResponse = RedelegationEntryResponse;
|
|
1159
2235
|
function createBaseRedelegationResponse() {
|
|
1160
2236
|
return {
|
|
1161
|
-
redelegation:
|
|
2237
|
+
redelegation: Redelegation.fromPartial({}),
|
|
1162
2238
|
entries: []
|
|
1163
2239
|
};
|
|
1164
2240
|
}
|
|
1165
2241
|
var RedelegationResponse = {
|
|
2242
|
+
typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse",
|
|
1166
2243
|
encode: function encode(message) {
|
|
1167
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
2244
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
1168
2245
|
if (message.redelegation !== undefined) {
|
|
1169
2246
|
Redelegation.encode(message.redelegation, writer.uint32(10).fork()).ldelim();
|
|
1170
2247
|
}
|
|
@@ -1183,7 +2260,7 @@ var RedelegationResponse = {
|
|
|
1183
2260
|
return writer;
|
|
1184
2261
|
},
|
|
1185
2262
|
decode: function decode(input, length) {
|
|
1186
|
-
var reader = input instanceof
|
|
2263
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
1187
2264
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
1188
2265
|
var message = createBaseRedelegationResponse();
|
|
1189
2266
|
while (reader.pos < end) {
|
|
@@ -1203,13 +2280,57 @@ var RedelegationResponse = {
|
|
|
1203
2280
|
return message;
|
|
1204
2281
|
},
|
|
1205
2282
|
fromPartial: function fromPartial(object) {
|
|
1206
|
-
var _object$
|
|
2283
|
+
var _object$entries5;
|
|
1207
2284
|
var message = createBaseRedelegationResponse();
|
|
1208
2285
|
message.redelegation = object.redelegation !== undefined && object.redelegation !== null ? Redelegation.fromPartial(object.redelegation) : undefined;
|
|
1209
|
-
message.entries = ((_object$
|
|
2286
|
+
message.entries = ((_object$entries5 = object.entries) === null || _object$entries5 === void 0 ? void 0 : _object$entries5.map(function (e) {
|
|
1210
2287
|
return RedelegationEntryResponse.fromPartial(e);
|
|
1211
2288
|
})) || [];
|
|
1212
2289
|
return message;
|
|
2290
|
+
},
|
|
2291
|
+
fromAmino: function fromAmino(object) {
|
|
2292
|
+
var _object$entries6;
|
|
2293
|
+
var message = createBaseRedelegationResponse();
|
|
2294
|
+
if (object.redelegation !== undefined && object.redelegation !== null) {
|
|
2295
|
+
message.redelegation = Redelegation.fromAmino(object.redelegation);
|
|
2296
|
+
}
|
|
2297
|
+
message.entries = ((_object$entries6 = object.entries) === null || _object$entries6 === void 0 ? void 0 : _object$entries6.map(function (e) {
|
|
2298
|
+
return RedelegationEntryResponse.fromAmino(e);
|
|
2299
|
+
})) || [];
|
|
2300
|
+
return message;
|
|
2301
|
+
},
|
|
2302
|
+
toAmino: function toAmino(message) {
|
|
2303
|
+
var obj = {};
|
|
2304
|
+
obj.redelegation = message.redelegation ? Redelegation.toAmino(message.redelegation) : undefined;
|
|
2305
|
+
if (message.entries) {
|
|
2306
|
+
obj.entries = message.entries.map(function (e) {
|
|
2307
|
+
return e ? RedelegationEntryResponse.toAmino(e) : undefined;
|
|
2308
|
+
});
|
|
2309
|
+
} else {
|
|
2310
|
+
obj.entries = [];
|
|
2311
|
+
}
|
|
2312
|
+
return obj;
|
|
2313
|
+
},
|
|
2314
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
2315
|
+
return RedelegationResponse.fromAmino(object.value);
|
|
2316
|
+
},
|
|
2317
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
2318
|
+
return {
|
|
2319
|
+
type: "cosmos-sdk/RedelegationResponse",
|
|
2320
|
+
value: RedelegationResponse.toAmino(message)
|
|
2321
|
+
};
|
|
2322
|
+
},
|
|
2323
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
2324
|
+
return RedelegationResponse.decode(message.value);
|
|
2325
|
+
},
|
|
2326
|
+
toProto: function toProto(message) {
|
|
2327
|
+
return RedelegationResponse.encode(message).finish();
|
|
2328
|
+
},
|
|
2329
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
2330
|
+
return {
|
|
2331
|
+
typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse",
|
|
2332
|
+
value: RedelegationResponse.encode(message).finish()
|
|
2333
|
+
};
|
|
1213
2334
|
}
|
|
1214
2335
|
};
|
|
1215
2336
|
exports.RedelegationResponse = RedelegationResponse;
|
|
@@ -1220,8 +2341,9 @@ function createBasePool() {
|
|
|
1220
2341
|
};
|
|
1221
2342
|
}
|
|
1222
2343
|
var Pool = {
|
|
2344
|
+
typeUrl: "/cosmos.staking.v1beta1.Pool",
|
|
1223
2345
|
encode: function encode(message) {
|
|
1224
|
-
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
2346
|
+
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
|
|
1225
2347
|
if (message.notBondedTokens !== "") {
|
|
1226
2348
|
writer.uint32(10).string(message.notBondedTokens);
|
|
1227
2349
|
}
|
|
@@ -1231,7 +2353,7 @@ var Pool = {
|
|
|
1231
2353
|
return writer;
|
|
1232
2354
|
},
|
|
1233
2355
|
decode: function decode(input, length) {
|
|
1234
|
-
var reader = input instanceof
|
|
2356
|
+
var reader = input instanceof _binary.BinaryReader ? input : new _binary.BinaryReader(input);
|
|
1235
2357
|
var end = length === undefined ? reader.len : reader.pos + length;
|
|
1236
2358
|
var message = createBasePool();
|
|
1237
2359
|
while (reader.pos < end) {
|
|
@@ -1256,6 +2378,43 @@ var Pool = {
|
|
|
1256
2378
|
message.notBondedTokens = (_object$notBondedToke = object.notBondedTokens) !== null && _object$notBondedToke !== void 0 ? _object$notBondedToke : "";
|
|
1257
2379
|
message.bondedTokens = (_object$bondedTokens = object.bondedTokens) !== null && _object$bondedTokens !== void 0 ? _object$bondedTokens : "";
|
|
1258
2380
|
return message;
|
|
2381
|
+
},
|
|
2382
|
+
fromAmino: function fromAmino(object) {
|
|
2383
|
+
var message = createBasePool();
|
|
2384
|
+
if (object.not_bonded_tokens !== undefined && object.not_bonded_tokens !== null) {
|
|
2385
|
+
message.notBondedTokens = object.not_bonded_tokens;
|
|
2386
|
+
}
|
|
2387
|
+
if (object.bonded_tokens !== undefined && object.bonded_tokens !== null) {
|
|
2388
|
+
message.bondedTokens = object.bonded_tokens;
|
|
2389
|
+
}
|
|
2390
|
+
return message;
|
|
2391
|
+
},
|
|
2392
|
+
toAmino: function toAmino(message) {
|
|
2393
|
+
var obj = {};
|
|
2394
|
+
obj.not_bonded_tokens = message.notBondedTokens;
|
|
2395
|
+
obj.bonded_tokens = message.bondedTokens;
|
|
2396
|
+
return obj;
|
|
2397
|
+
},
|
|
2398
|
+
fromAminoMsg: function fromAminoMsg(object) {
|
|
2399
|
+
return Pool.fromAmino(object.value);
|
|
2400
|
+
},
|
|
2401
|
+
toAminoMsg: function toAminoMsg(message) {
|
|
2402
|
+
return {
|
|
2403
|
+
type: "cosmos-sdk/Pool",
|
|
2404
|
+
value: Pool.toAmino(message)
|
|
2405
|
+
};
|
|
2406
|
+
},
|
|
2407
|
+
fromProtoMsg: function fromProtoMsg(message) {
|
|
2408
|
+
return Pool.decode(message.value);
|
|
2409
|
+
},
|
|
2410
|
+
toProto: function toProto(message) {
|
|
2411
|
+
return Pool.encode(message).finish();
|
|
2412
|
+
},
|
|
2413
|
+
toProtoMsg: function toProtoMsg(message) {
|
|
2414
|
+
return {
|
|
2415
|
+
typeUrl: "/cosmos.staking.v1beta1.Pool",
|
|
2416
|
+
value: Pool.encode(message).finish()
|
|
2417
|
+
};
|
|
1259
2418
|
}
|
|
1260
2419
|
};
|
|
1261
2420
|
exports.Pool = Pool;
|