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,60 +1,40 @@
|
|
|
1
|
-
import { Header, HeaderSDKType } from "../../../tendermint/types/types";
|
|
1
|
+
import { Header, HeaderAmino, HeaderSDKType } from "../../../tendermint/types/types";
|
|
2
2
|
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
3
|
-
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
|
4
|
-
import { Duration, DurationSDKType } from "../../../google/protobuf/duration";
|
|
5
|
-
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
3
|
+
import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any";
|
|
4
|
+
import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration";
|
|
5
|
+
import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin";
|
|
6
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
7
|
+
import { Decimal } from "@cosmjs/math";
|
|
8
|
+
import { toTimestamp, fromTimestamp } from "../../../helpers";
|
|
9
|
+
import { encodePubkey, decodePubkey } from "@cosmjs/proto-signing";
|
|
8
10
|
/** BondStatus is the status of a validator. */
|
|
9
|
-
|
|
10
11
|
export enum BondStatus {
|
|
11
12
|
/** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */
|
|
12
13
|
BOND_STATUS_UNSPECIFIED = 0,
|
|
13
|
-
|
|
14
14
|
/** BOND_STATUS_UNBONDED - UNBONDED defines a validator that is not bonded. */
|
|
15
15
|
BOND_STATUS_UNBONDED = 1,
|
|
16
|
-
|
|
17
16
|
/** BOND_STATUS_UNBONDING - UNBONDING defines a validator that is unbonding. */
|
|
18
17
|
BOND_STATUS_UNBONDING = 2,
|
|
19
|
-
|
|
20
|
-
/** BOND_STATUS_BONDED - BONDED defines a validator that is bonded. */
|
|
21
|
-
BOND_STATUS_BONDED = 3,
|
|
22
|
-
UNRECOGNIZED = -1,
|
|
23
|
-
}
|
|
24
|
-
/** BondStatus is the status of a validator. */
|
|
25
|
-
|
|
26
|
-
export enum BondStatusSDKType {
|
|
27
|
-
/** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */
|
|
28
|
-
BOND_STATUS_UNSPECIFIED = 0,
|
|
29
|
-
|
|
30
|
-
/** BOND_STATUS_UNBONDED - UNBONDED defines a validator that is not bonded. */
|
|
31
|
-
BOND_STATUS_UNBONDED = 1,
|
|
32
|
-
|
|
33
|
-
/** BOND_STATUS_UNBONDING - UNBONDING defines a validator that is unbonding. */
|
|
34
|
-
BOND_STATUS_UNBONDING = 2,
|
|
35
|
-
|
|
36
18
|
/** BOND_STATUS_BONDED - BONDED defines a validator that is bonded. */
|
|
37
19
|
BOND_STATUS_BONDED = 3,
|
|
38
20
|
UNRECOGNIZED = -1,
|
|
39
21
|
}
|
|
22
|
+
export const BondStatusSDKType = BondStatus;
|
|
23
|
+
export const BondStatusAmino = BondStatus;
|
|
40
24
|
export function bondStatusFromJSON(object: any): BondStatus {
|
|
41
25
|
switch (object) {
|
|
42
26
|
case 0:
|
|
43
27
|
case "BOND_STATUS_UNSPECIFIED":
|
|
44
28
|
return BondStatus.BOND_STATUS_UNSPECIFIED;
|
|
45
|
-
|
|
46
29
|
case 1:
|
|
47
30
|
case "BOND_STATUS_UNBONDED":
|
|
48
31
|
return BondStatus.BOND_STATUS_UNBONDED;
|
|
49
|
-
|
|
50
32
|
case 2:
|
|
51
33
|
case "BOND_STATUS_UNBONDING":
|
|
52
34
|
return BondStatus.BOND_STATUS_UNBONDING;
|
|
53
|
-
|
|
54
35
|
case 3:
|
|
55
36
|
case "BOND_STATUS_BONDED":
|
|
56
37
|
return BondStatus.BOND_STATUS_BONDED;
|
|
57
|
-
|
|
58
38
|
case -1:
|
|
59
39
|
case "UNRECOGNIZED":
|
|
60
40
|
default:
|
|
@@ -65,16 +45,12 @@ export function bondStatusToJSON(object: BondStatus): string {
|
|
|
65
45
|
switch (object) {
|
|
66
46
|
case BondStatus.BOND_STATUS_UNSPECIFIED:
|
|
67
47
|
return "BOND_STATUS_UNSPECIFIED";
|
|
68
|
-
|
|
69
48
|
case BondStatus.BOND_STATUS_UNBONDED:
|
|
70
49
|
return "BOND_STATUS_UNBONDED";
|
|
71
|
-
|
|
72
50
|
case BondStatus.BOND_STATUS_UNBONDING:
|
|
73
51
|
return "BOND_STATUS_UNBONDING";
|
|
74
|
-
|
|
75
52
|
case BondStatus.BOND_STATUS_BONDED:
|
|
76
53
|
return "BOND_STATUS_BONDED";
|
|
77
|
-
|
|
78
54
|
case BondStatus.UNRECOGNIZED:
|
|
79
55
|
default:
|
|
80
56
|
return "UNRECOGNIZED";
|
|
@@ -86,104 +62,146 @@ export function bondStatusToJSON(object: BondStatus): string {
|
|
|
86
62
|
* recent HistoricalInfo
|
|
87
63
|
* (`n` is set by the staking module's `historical_entries` parameter).
|
|
88
64
|
*/
|
|
89
|
-
|
|
90
65
|
export interface HistoricalInfo {
|
|
91
|
-
header
|
|
66
|
+
header: Header;
|
|
92
67
|
valset: Validator[];
|
|
93
68
|
}
|
|
69
|
+
export interface HistoricalInfoProtoMsg {
|
|
70
|
+
typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo";
|
|
71
|
+
value: Uint8Array;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* HistoricalInfo contains header and validator information for a given block.
|
|
75
|
+
* It is stored as part of staking module's state, which persists the `n` most
|
|
76
|
+
* recent HistoricalInfo
|
|
77
|
+
* (`n` is set by the staking module's `historical_entries` parameter).
|
|
78
|
+
*/
|
|
79
|
+
export interface HistoricalInfoAmino {
|
|
80
|
+
header?: HeaderAmino;
|
|
81
|
+
valset?: ValidatorAmino[];
|
|
82
|
+
}
|
|
83
|
+
export interface HistoricalInfoAminoMsg {
|
|
84
|
+
type: "cosmos-sdk/HistoricalInfo";
|
|
85
|
+
value: HistoricalInfoAmino;
|
|
86
|
+
}
|
|
94
87
|
/**
|
|
95
88
|
* HistoricalInfo contains header and validator information for a given block.
|
|
96
89
|
* It is stored as part of staking module's state, which persists the `n` most
|
|
97
90
|
* recent HistoricalInfo
|
|
98
91
|
* (`n` is set by the staking module's `historical_entries` parameter).
|
|
99
92
|
*/
|
|
100
|
-
|
|
101
93
|
export interface HistoricalInfoSDKType {
|
|
102
|
-
header
|
|
94
|
+
header: HeaderSDKType;
|
|
103
95
|
valset: ValidatorSDKType[];
|
|
104
96
|
}
|
|
105
97
|
/**
|
|
106
98
|
* CommissionRates defines the initial commission rates to be used for creating
|
|
107
99
|
* a validator.
|
|
108
100
|
*/
|
|
109
|
-
|
|
110
101
|
export interface CommissionRates {
|
|
111
102
|
/** rate is the commission rate charged to delegators, as a fraction. */
|
|
112
103
|
rate: string;
|
|
113
104
|
/** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */
|
|
114
|
-
|
|
115
105
|
maxRate: string;
|
|
116
106
|
/** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */
|
|
117
|
-
|
|
118
107
|
maxChangeRate: string;
|
|
119
108
|
}
|
|
109
|
+
export interface CommissionRatesProtoMsg {
|
|
110
|
+
typeUrl: "/cosmos.staking.v1beta1.CommissionRates";
|
|
111
|
+
value: Uint8Array;
|
|
112
|
+
}
|
|
120
113
|
/**
|
|
121
114
|
* CommissionRates defines the initial commission rates to be used for creating
|
|
122
115
|
* a validator.
|
|
123
116
|
*/
|
|
124
|
-
|
|
125
|
-
export interface CommissionRatesSDKType {
|
|
117
|
+
export interface CommissionRatesAmino {
|
|
126
118
|
/** rate is the commission rate charged to delegators, as a fraction. */
|
|
127
|
-
rate
|
|
119
|
+
rate?: string;
|
|
128
120
|
/** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */
|
|
129
|
-
|
|
130
|
-
max_rate: string;
|
|
121
|
+
max_rate?: string;
|
|
131
122
|
/** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */
|
|
132
|
-
|
|
123
|
+
max_change_rate?: string;
|
|
124
|
+
}
|
|
125
|
+
export interface CommissionRatesAminoMsg {
|
|
126
|
+
type: "cosmos-sdk/CommissionRates";
|
|
127
|
+
value: CommissionRatesAmino;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* CommissionRates defines the initial commission rates to be used for creating
|
|
131
|
+
* a validator.
|
|
132
|
+
*/
|
|
133
|
+
export interface CommissionRatesSDKType {
|
|
134
|
+
rate: string;
|
|
135
|
+
max_rate: string;
|
|
133
136
|
max_change_rate: string;
|
|
134
137
|
}
|
|
135
138
|
/** Commission defines commission parameters for a given validator. */
|
|
136
|
-
|
|
137
139
|
export interface Commission {
|
|
138
140
|
/** commission_rates defines the initial commission rates to be used for creating a validator. */
|
|
139
|
-
commissionRates
|
|
141
|
+
commissionRates: CommissionRates;
|
|
140
142
|
/** update_time is the last time the commission rate was changed. */
|
|
141
|
-
|
|
142
|
-
|
|
143
|
+
updateTime: Date;
|
|
144
|
+
}
|
|
145
|
+
export interface CommissionProtoMsg {
|
|
146
|
+
typeUrl: "/cosmos.staking.v1beta1.Commission";
|
|
147
|
+
value: Uint8Array;
|
|
143
148
|
}
|
|
144
149
|
/** Commission defines commission parameters for a given validator. */
|
|
145
|
-
|
|
146
|
-
export interface CommissionSDKType {
|
|
150
|
+
export interface CommissionAmino {
|
|
147
151
|
/** commission_rates defines the initial commission rates to be used for creating a validator. */
|
|
148
|
-
commission_rates?:
|
|
152
|
+
commission_rates?: CommissionRatesAmino;
|
|
149
153
|
/** update_time is the last time the commission rate was changed. */
|
|
150
|
-
|
|
151
|
-
|
|
154
|
+
update_time?: string;
|
|
155
|
+
}
|
|
156
|
+
export interface CommissionAminoMsg {
|
|
157
|
+
type: "cosmos-sdk/Commission";
|
|
158
|
+
value: CommissionAmino;
|
|
159
|
+
}
|
|
160
|
+
/** Commission defines commission parameters for a given validator. */
|
|
161
|
+
export interface CommissionSDKType {
|
|
162
|
+
commission_rates: CommissionRatesSDKType;
|
|
163
|
+
update_time: Date;
|
|
152
164
|
}
|
|
153
165
|
/** Description defines a validator description. */
|
|
154
|
-
|
|
155
166
|
export interface Description {
|
|
156
167
|
/** moniker defines a human-readable name for the validator. */
|
|
157
168
|
moniker: string;
|
|
158
169
|
/** identity defines an optional identity signature (ex. UPort or Keybase). */
|
|
159
|
-
|
|
160
170
|
identity: string;
|
|
161
171
|
/** website defines an optional website link. */
|
|
162
|
-
|
|
163
172
|
website: string;
|
|
164
173
|
/** security_contact defines an optional email for security contact. */
|
|
165
|
-
|
|
166
174
|
securityContact: string;
|
|
167
175
|
/** details define other optional details. */
|
|
168
|
-
|
|
169
176
|
details: string;
|
|
170
177
|
}
|
|
178
|
+
export interface DescriptionProtoMsg {
|
|
179
|
+
typeUrl: "/cosmos.staking.v1beta1.Description";
|
|
180
|
+
value: Uint8Array;
|
|
181
|
+
}
|
|
171
182
|
/** Description defines a validator description. */
|
|
172
|
-
|
|
173
|
-
export interface DescriptionSDKType {
|
|
183
|
+
export interface DescriptionAmino {
|
|
174
184
|
/** moniker defines a human-readable name for the validator. */
|
|
175
|
-
moniker
|
|
185
|
+
moniker?: string;
|
|
176
186
|
/** identity defines an optional identity signature (ex. UPort or Keybase). */
|
|
177
|
-
|
|
178
|
-
identity: string;
|
|
187
|
+
identity?: string;
|
|
179
188
|
/** website defines an optional website link. */
|
|
180
|
-
|
|
181
|
-
website: string;
|
|
189
|
+
website?: string;
|
|
182
190
|
/** security_contact defines an optional email for security contact. */
|
|
183
|
-
|
|
184
|
-
security_contact: string;
|
|
191
|
+
security_contact?: string;
|
|
185
192
|
/** details define other optional details. */
|
|
186
|
-
|
|
193
|
+
details?: string;
|
|
194
|
+
}
|
|
195
|
+
export interface DescriptionAminoMsg {
|
|
196
|
+
type: "cosmos-sdk/Description";
|
|
197
|
+
value: DescriptionAmino;
|
|
198
|
+
}
|
|
199
|
+
/** Description defines a validator description. */
|
|
200
|
+
export interface DescriptionSDKType {
|
|
201
|
+
moniker: string;
|
|
202
|
+
identity: string;
|
|
203
|
+
website: string;
|
|
204
|
+
security_contact: string;
|
|
187
205
|
details: string;
|
|
188
206
|
}
|
|
189
207
|
/**
|
|
@@ -196,41 +214,34 @@ export interface DescriptionSDKType {
|
|
|
196
214
|
* exchange rate. Voting power can be calculated as total bonded shares
|
|
197
215
|
* multiplied by exchange rate.
|
|
198
216
|
*/
|
|
199
|
-
|
|
200
217
|
export interface Validator {
|
|
201
218
|
/** operator_address defines the address of the validator's operator; bech encoded in JSON. */
|
|
202
219
|
operatorAddress: string;
|
|
203
220
|
/** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */
|
|
204
|
-
|
|
205
221
|
consensusPubkey?: Any;
|
|
206
222
|
/** jailed defined whether the validator has been jailed from bonded status or not. */
|
|
207
|
-
|
|
208
223
|
jailed: boolean;
|
|
209
224
|
/** status is the validator status (bonded/unbonding/unbonded). */
|
|
210
|
-
|
|
211
225
|
status: BondStatus;
|
|
212
226
|
/** tokens define the delegated tokens (incl. self-delegation). */
|
|
213
|
-
|
|
214
227
|
tokens: string;
|
|
215
228
|
/** delegator_shares defines total shares issued to a validator's delegators. */
|
|
216
|
-
|
|
217
229
|
delegatorShares: string;
|
|
218
230
|
/** description defines the description terms for the validator. */
|
|
219
|
-
|
|
220
|
-
description?: Description;
|
|
231
|
+
description: Description;
|
|
221
232
|
/** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */
|
|
222
|
-
|
|
223
|
-
unbondingHeight: Long;
|
|
233
|
+
unbondingHeight: bigint;
|
|
224
234
|
/** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */
|
|
225
|
-
|
|
226
|
-
unbondingTime?: Date;
|
|
235
|
+
unbondingTime: Date;
|
|
227
236
|
/** commission defines the commission parameters. */
|
|
228
|
-
|
|
229
|
-
commission?: Commission;
|
|
237
|
+
commission: Commission;
|
|
230
238
|
/** min_self_delegation is the validator's self declared minimum self delegation. */
|
|
231
|
-
|
|
232
239
|
minSelfDelegation: string;
|
|
233
240
|
}
|
|
241
|
+
export interface ValidatorProtoMsg {
|
|
242
|
+
typeUrl: "/cosmos.staking.v1beta1.Validator";
|
|
243
|
+
value: Uint8Array;
|
|
244
|
+
}
|
|
234
245
|
/**
|
|
235
246
|
* Validator defines a validator, together with the total amount of the
|
|
236
247
|
* Validator's bond shares and their exchange rate to coins. Slashing results in
|
|
@@ -241,48 +252,74 @@ export interface Validator {
|
|
|
241
252
|
* exchange rate. Voting power can be calculated as total bonded shares
|
|
242
253
|
* multiplied by exchange rate.
|
|
243
254
|
*/
|
|
244
|
-
|
|
245
|
-
export interface ValidatorSDKType {
|
|
255
|
+
export interface ValidatorAmino {
|
|
246
256
|
/** operator_address defines the address of the validator's operator; bech encoded in JSON. */
|
|
247
|
-
operator_address
|
|
257
|
+
operator_address?: string;
|
|
248
258
|
/** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */
|
|
249
|
-
|
|
250
|
-
consensus_pubkey?: AnySDKType;
|
|
259
|
+
consensus_pubkey?: AnyAmino;
|
|
251
260
|
/** jailed defined whether the validator has been jailed from bonded status or not. */
|
|
252
|
-
|
|
253
|
-
jailed: boolean;
|
|
261
|
+
jailed?: boolean;
|
|
254
262
|
/** status is the validator status (bonded/unbonding/unbonded). */
|
|
255
|
-
|
|
256
|
-
status: BondStatusSDKType;
|
|
263
|
+
status?: BondStatus;
|
|
257
264
|
/** tokens define the delegated tokens (incl. self-delegation). */
|
|
258
|
-
|
|
259
|
-
tokens: string;
|
|
265
|
+
tokens?: string;
|
|
260
266
|
/** delegator_shares defines total shares issued to a validator's delegators. */
|
|
261
|
-
|
|
262
|
-
delegator_shares: string;
|
|
267
|
+
delegator_shares?: string;
|
|
263
268
|
/** description defines the description terms for the validator. */
|
|
264
|
-
|
|
265
|
-
description?: DescriptionSDKType;
|
|
269
|
+
description?: DescriptionAmino;
|
|
266
270
|
/** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */
|
|
267
|
-
|
|
268
|
-
unbonding_height: Long;
|
|
271
|
+
unbonding_height?: string;
|
|
269
272
|
/** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */
|
|
270
|
-
|
|
271
|
-
unbonding_time?: Date;
|
|
273
|
+
unbonding_time?: string;
|
|
272
274
|
/** commission defines the commission parameters. */
|
|
273
|
-
|
|
274
|
-
commission?: CommissionSDKType;
|
|
275
|
+
commission?: CommissionAmino;
|
|
275
276
|
/** min_self_delegation is the validator's self declared minimum self delegation. */
|
|
276
|
-
|
|
277
|
+
min_self_delegation?: string;
|
|
278
|
+
}
|
|
279
|
+
export interface ValidatorAminoMsg {
|
|
280
|
+
type: "cosmos-sdk/Validator";
|
|
281
|
+
value: ValidatorAmino;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Validator defines a validator, together with the total amount of the
|
|
285
|
+
* Validator's bond shares and their exchange rate to coins. Slashing results in
|
|
286
|
+
* a decrease in the exchange rate, allowing correct calculation of future
|
|
287
|
+
* undelegations without iterating over delegators. When coins are delegated to
|
|
288
|
+
* this validator, the validator is credited with a delegation whose number of
|
|
289
|
+
* bond shares is based on the amount of coins delegated divided by the current
|
|
290
|
+
* exchange rate. Voting power can be calculated as total bonded shares
|
|
291
|
+
* multiplied by exchange rate.
|
|
292
|
+
*/
|
|
293
|
+
export interface ValidatorSDKType {
|
|
294
|
+
operator_address: string;
|
|
295
|
+
consensus_pubkey?: AnySDKType;
|
|
296
|
+
jailed: boolean;
|
|
297
|
+
status: BondStatus;
|
|
298
|
+
tokens: string;
|
|
299
|
+
delegator_shares: string;
|
|
300
|
+
description: DescriptionSDKType;
|
|
301
|
+
unbonding_height: bigint;
|
|
302
|
+
unbonding_time: Date;
|
|
303
|
+
commission: CommissionSDKType;
|
|
277
304
|
min_self_delegation: string;
|
|
278
305
|
}
|
|
279
306
|
/** ValAddresses defines a repeated set of validator addresses. */
|
|
280
|
-
|
|
281
307
|
export interface ValAddresses {
|
|
282
308
|
addresses: string[];
|
|
283
309
|
}
|
|
310
|
+
export interface ValAddressesProtoMsg {
|
|
311
|
+
typeUrl: "/cosmos.staking.v1beta1.ValAddresses";
|
|
312
|
+
value: Uint8Array;
|
|
313
|
+
}
|
|
314
|
+
/** ValAddresses defines a repeated set of validator addresses. */
|
|
315
|
+
export interface ValAddressesAmino {
|
|
316
|
+
addresses?: string[];
|
|
317
|
+
}
|
|
318
|
+
export interface ValAddressesAminoMsg {
|
|
319
|
+
type: "cosmos-sdk/ValAddresses";
|
|
320
|
+
value: ValAddressesAmino;
|
|
321
|
+
}
|
|
284
322
|
/** ValAddresses defines a repeated set of validator addresses. */
|
|
285
|
-
|
|
286
323
|
export interface ValAddressesSDKType {
|
|
287
324
|
addresses: string[];
|
|
288
325
|
}
|
|
@@ -291,28 +328,53 @@ export interface ValAddressesSDKType {
|
|
|
291
328
|
* It is intended to be used as a marshalable pointer. For example, a DVPair can
|
|
292
329
|
* be used to construct the key to getting an UnbondingDelegation from state.
|
|
293
330
|
*/
|
|
294
|
-
|
|
295
331
|
export interface DVPair {
|
|
296
332
|
delegatorAddress: string;
|
|
297
333
|
validatorAddress: string;
|
|
298
334
|
}
|
|
335
|
+
export interface DVPairProtoMsg {
|
|
336
|
+
typeUrl: "/cosmos.staking.v1beta1.DVPair";
|
|
337
|
+
value: Uint8Array;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* DVPair is struct that just has a delegator-validator pair with no other data.
|
|
341
|
+
* It is intended to be used as a marshalable pointer. For example, a DVPair can
|
|
342
|
+
* be used to construct the key to getting an UnbondingDelegation from state.
|
|
343
|
+
*/
|
|
344
|
+
export interface DVPairAmino {
|
|
345
|
+
delegator_address?: string;
|
|
346
|
+
validator_address?: string;
|
|
347
|
+
}
|
|
348
|
+
export interface DVPairAminoMsg {
|
|
349
|
+
type: "cosmos-sdk/DVPair";
|
|
350
|
+
value: DVPairAmino;
|
|
351
|
+
}
|
|
299
352
|
/**
|
|
300
353
|
* DVPair is struct that just has a delegator-validator pair with no other data.
|
|
301
354
|
* It is intended to be used as a marshalable pointer. For example, a DVPair can
|
|
302
355
|
* be used to construct the key to getting an UnbondingDelegation from state.
|
|
303
356
|
*/
|
|
304
|
-
|
|
305
357
|
export interface DVPairSDKType {
|
|
306
358
|
delegator_address: string;
|
|
307
359
|
validator_address: string;
|
|
308
360
|
}
|
|
309
361
|
/** DVPairs defines an array of DVPair objects. */
|
|
310
|
-
|
|
311
362
|
export interface DVPairs {
|
|
312
363
|
pairs: DVPair[];
|
|
313
364
|
}
|
|
365
|
+
export interface DVPairsProtoMsg {
|
|
366
|
+
typeUrl: "/cosmos.staking.v1beta1.DVPairs";
|
|
367
|
+
value: Uint8Array;
|
|
368
|
+
}
|
|
369
|
+
/** DVPairs defines an array of DVPair objects. */
|
|
370
|
+
export interface DVPairsAmino {
|
|
371
|
+
pairs?: DVPairAmino[];
|
|
372
|
+
}
|
|
373
|
+
export interface DVPairsAminoMsg {
|
|
374
|
+
type: "cosmos-sdk/DVPairs";
|
|
375
|
+
value: DVPairsAmino;
|
|
376
|
+
}
|
|
314
377
|
/** DVPairs defines an array of DVPair objects. */
|
|
315
|
-
|
|
316
378
|
export interface DVPairsSDKType {
|
|
317
379
|
pairs: DVPairSDKType[];
|
|
318
380
|
}
|
|
@@ -322,31 +384,58 @@ export interface DVPairsSDKType {
|
|
|
322
384
|
* example, a DVVTriplet can be used to construct the key to getting a
|
|
323
385
|
* Redelegation from state.
|
|
324
386
|
*/
|
|
325
|
-
|
|
326
387
|
export interface DVVTriplet {
|
|
327
388
|
delegatorAddress: string;
|
|
328
389
|
validatorSrcAddress: string;
|
|
329
390
|
validatorDstAddress: string;
|
|
330
391
|
}
|
|
392
|
+
export interface DVVTripletProtoMsg {
|
|
393
|
+
typeUrl: "/cosmos.staking.v1beta1.DVVTriplet";
|
|
394
|
+
value: Uint8Array;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* DVVTriplet is struct that just has a delegator-validator-validator triplet
|
|
398
|
+
* with no other data. It is intended to be used as a marshalable pointer. For
|
|
399
|
+
* example, a DVVTriplet can be used to construct the key to getting a
|
|
400
|
+
* Redelegation from state.
|
|
401
|
+
*/
|
|
402
|
+
export interface DVVTripletAmino {
|
|
403
|
+
delegator_address?: string;
|
|
404
|
+
validator_src_address?: string;
|
|
405
|
+
validator_dst_address?: string;
|
|
406
|
+
}
|
|
407
|
+
export interface DVVTripletAminoMsg {
|
|
408
|
+
type: "cosmos-sdk/DVVTriplet";
|
|
409
|
+
value: DVVTripletAmino;
|
|
410
|
+
}
|
|
331
411
|
/**
|
|
332
412
|
* DVVTriplet is struct that just has a delegator-validator-validator triplet
|
|
333
413
|
* with no other data. It is intended to be used as a marshalable pointer. For
|
|
334
414
|
* example, a DVVTriplet can be used to construct the key to getting a
|
|
335
415
|
* Redelegation from state.
|
|
336
416
|
*/
|
|
337
|
-
|
|
338
417
|
export interface DVVTripletSDKType {
|
|
339
418
|
delegator_address: string;
|
|
340
419
|
validator_src_address: string;
|
|
341
420
|
validator_dst_address: string;
|
|
342
421
|
}
|
|
343
422
|
/** DVVTriplets defines an array of DVVTriplet objects. */
|
|
344
|
-
|
|
345
423
|
export interface DVVTriplets {
|
|
346
424
|
triplets: DVVTriplet[];
|
|
347
425
|
}
|
|
426
|
+
export interface DVVTripletsProtoMsg {
|
|
427
|
+
typeUrl: "/cosmos.staking.v1beta1.DVVTriplets";
|
|
428
|
+
value: Uint8Array;
|
|
429
|
+
}
|
|
430
|
+
/** DVVTriplets defines an array of DVVTriplet objects. */
|
|
431
|
+
export interface DVVTripletsAmino {
|
|
432
|
+
triplets?: DVVTripletAmino[];
|
|
433
|
+
}
|
|
434
|
+
export interface DVVTripletsAminoMsg {
|
|
435
|
+
type: "cosmos-sdk/DVVTriplets";
|
|
436
|
+
value: DVVTripletsAmino;
|
|
437
|
+
}
|
|
348
438
|
/** DVVTriplets defines an array of DVVTriplet objects. */
|
|
349
|
-
|
|
350
439
|
export interface DVVTripletsSDKType {
|
|
351
440
|
triplets: DVVTripletSDKType[];
|
|
352
441
|
}
|
|
@@ -355,237 +444,318 @@ export interface DVVTripletsSDKType {
|
|
|
355
444
|
* owned by one delegator, and is associated with the voting power of one
|
|
356
445
|
* validator.
|
|
357
446
|
*/
|
|
358
|
-
|
|
359
447
|
export interface Delegation {
|
|
360
448
|
/** delegator_address is the bech32-encoded address of the delegator. */
|
|
361
449
|
delegatorAddress: string;
|
|
362
450
|
/** validator_address is the bech32-encoded address of the validator. */
|
|
363
|
-
|
|
364
451
|
validatorAddress: string;
|
|
365
452
|
/** shares define the delegation shares received. */
|
|
366
|
-
|
|
367
453
|
shares: string;
|
|
368
454
|
}
|
|
455
|
+
export interface DelegationProtoMsg {
|
|
456
|
+
typeUrl: "/cosmos.staking.v1beta1.Delegation";
|
|
457
|
+
value: Uint8Array;
|
|
458
|
+
}
|
|
369
459
|
/**
|
|
370
460
|
* Delegation represents the bond with tokens held by an account. It is
|
|
371
461
|
* owned by one delegator, and is associated with the voting power of one
|
|
372
462
|
* validator.
|
|
373
463
|
*/
|
|
374
|
-
|
|
375
|
-
export interface DelegationSDKType {
|
|
464
|
+
export interface DelegationAmino {
|
|
376
465
|
/** delegator_address is the bech32-encoded address of the delegator. */
|
|
377
|
-
delegator_address
|
|
466
|
+
delegator_address?: string;
|
|
378
467
|
/** validator_address is the bech32-encoded address of the validator. */
|
|
379
|
-
|
|
380
|
-
validator_address: string;
|
|
468
|
+
validator_address?: string;
|
|
381
469
|
/** shares define the delegation shares received. */
|
|
382
|
-
|
|
470
|
+
shares?: string;
|
|
471
|
+
}
|
|
472
|
+
export interface DelegationAminoMsg {
|
|
473
|
+
type: "cosmos-sdk/Delegation";
|
|
474
|
+
value: DelegationAmino;
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* Delegation represents the bond with tokens held by an account. It is
|
|
478
|
+
* owned by one delegator, and is associated with the voting power of one
|
|
479
|
+
* validator.
|
|
480
|
+
*/
|
|
481
|
+
export interface DelegationSDKType {
|
|
482
|
+
delegator_address: string;
|
|
483
|
+
validator_address: string;
|
|
383
484
|
shares: string;
|
|
384
485
|
}
|
|
385
486
|
/**
|
|
386
487
|
* UnbondingDelegation stores all of a single delegator's unbonding bonds
|
|
387
488
|
* for a single validator in an time-ordered list.
|
|
388
489
|
*/
|
|
389
|
-
|
|
390
490
|
export interface UnbondingDelegation {
|
|
391
491
|
/** delegator_address is the bech32-encoded address of the delegator. */
|
|
392
492
|
delegatorAddress: string;
|
|
393
493
|
/** validator_address is the bech32-encoded address of the validator. */
|
|
394
|
-
|
|
395
494
|
validatorAddress: string;
|
|
396
495
|
/** entries are the unbonding delegation entries. */
|
|
397
|
-
|
|
398
496
|
entries: UnbondingDelegationEntry[];
|
|
399
497
|
}
|
|
498
|
+
export interface UnbondingDelegationProtoMsg {
|
|
499
|
+
typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation";
|
|
500
|
+
value: Uint8Array;
|
|
501
|
+
}
|
|
400
502
|
/**
|
|
401
503
|
* UnbondingDelegation stores all of a single delegator's unbonding bonds
|
|
402
504
|
* for a single validator in an time-ordered list.
|
|
403
505
|
*/
|
|
404
|
-
|
|
405
|
-
export interface UnbondingDelegationSDKType {
|
|
506
|
+
export interface UnbondingDelegationAmino {
|
|
406
507
|
/** delegator_address is the bech32-encoded address of the delegator. */
|
|
407
|
-
delegator_address
|
|
508
|
+
delegator_address?: string;
|
|
408
509
|
/** validator_address is the bech32-encoded address of the validator. */
|
|
409
|
-
|
|
410
|
-
validator_address: string;
|
|
510
|
+
validator_address?: string;
|
|
411
511
|
/** entries are the unbonding delegation entries. */
|
|
412
|
-
|
|
512
|
+
entries?: UnbondingDelegationEntryAmino[];
|
|
513
|
+
}
|
|
514
|
+
export interface UnbondingDelegationAminoMsg {
|
|
515
|
+
type: "cosmos-sdk/UnbondingDelegation";
|
|
516
|
+
value: UnbondingDelegationAmino;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* UnbondingDelegation stores all of a single delegator's unbonding bonds
|
|
520
|
+
* for a single validator in an time-ordered list.
|
|
521
|
+
*/
|
|
522
|
+
export interface UnbondingDelegationSDKType {
|
|
523
|
+
delegator_address: string;
|
|
524
|
+
validator_address: string;
|
|
413
525
|
entries: UnbondingDelegationEntrySDKType[];
|
|
414
526
|
}
|
|
415
527
|
/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */
|
|
416
|
-
|
|
417
528
|
export interface UnbondingDelegationEntry {
|
|
418
529
|
/** creation_height is the height which the unbonding took place. */
|
|
419
|
-
creationHeight:
|
|
530
|
+
creationHeight: bigint;
|
|
420
531
|
/** completion_time is the unix time for unbonding completion. */
|
|
421
|
-
|
|
422
|
-
completionTime?: Date;
|
|
532
|
+
completionTime: Date;
|
|
423
533
|
/** initial_balance defines the tokens initially scheduled to receive at completion. */
|
|
424
|
-
|
|
425
534
|
initialBalance: string;
|
|
426
535
|
/** balance defines the tokens to receive at completion. */
|
|
427
|
-
|
|
428
536
|
balance: string;
|
|
429
537
|
}
|
|
538
|
+
export interface UnbondingDelegationEntryProtoMsg {
|
|
539
|
+
typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry";
|
|
540
|
+
value: Uint8Array;
|
|
541
|
+
}
|
|
430
542
|
/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */
|
|
431
|
-
|
|
432
|
-
export interface UnbondingDelegationEntrySDKType {
|
|
543
|
+
export interface UnbondingDelegationEntryAmino {
|
|
433
544
|
/** creation_height is the height which the unbonding took place. */
|
|
434
|
-
creation_height
|
|
545
|
+
creation_height?: string;
|
|
435
546
|
/** completion_time is the unix time for unbonding completion. */
|
|
436
|
-
|
|
437
|
-
completion_time?: Date;
|
|
547
|
+
completion_time?: string;
|
|
438
548
|
/** initial_balance defines the tokens initially scheduled to receive at completion. */
|
|
439
|
-
|
|
440
|
-
initial_balance: string;
|
|
549
|
+
initial_balance?: string;
|
|
441
550
|
/** balance defines the tokens to receive at completion. */
|
|
442
|
-
|
|
551
|
+
balance?: string;
|
|
552
|
+
}
|
|
553
|
+
export interface UnbondingDelegationEntryAminoMsg {
|
|
554
|
+
type: "cosmos-sdk/UnbondingDelegationEntry";
|
|
555
|
+
value: UnbondingDelegationEntryAmino;
|
|
556
|
+
}
|
|
557
|
+
/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */
|
|
558
|
+
export interface UnbondingDelegationEntrySDKType {
|
|
559
|
+
creation_height: bigint;
|
|
560
|
+
completion_time: Date;
|
|
561
|
+
initial_balance: string;
|
|
443
562
|
balance: string;
|
|
444
563
|
}
|
|
445
564
|
/** RedelegationEntry defines a redelegation object with relevant metadata. */
|
|
446
|
-
|
|
447
565
|
export interface RedelegationEntry {
|
|
448
566
|
/** creation_height defines the height which the redelegation took place. */
|
|
449
|
-
creationHeight:
|
|
567
|
+
creationHeight: bigint;
|
|
450
568
|
/** completion_time defines the unix time for redelegation completion. */
|
|
451
|
-
|
|
452
|
-
completionTime?: Date;
|
|
569
|
+
completionTime: Date;
|
|
453
570
|
/** initial_balance defines the initial balance when redelegation started. */
|
|
454
|
-
|
|
455
571
|
initialBalance: string;
|
|
456
572
|
/** shares_dst is the amount of destination-validator shares created by redelegation. */
|
|
457
|
-
|
|
458
573
|
sharesDst: string;
|
|
459
574
|
}
|
|
575
|
+
export interface RedelegationEntryProtoMsg {
|
|
576
|
+
typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry";
|
|
577
|
+
value: Uint8Array;
|
|
578
|
+
}
|
|
460
579
|
/** RedelegationEntry defines a redelegation object with relevant metadata. */
|
|
461
|
-
|
|
462
|
-
export interface RedelegationEntrySDKType {
|
|
580
|
+
export interface RedelegationEntryAmino {
|
|
463
581
|
/** creation_height defines the height which the redelegation took place. */
|
|
464
|
-
creation_height
|
|
582
|
+
creation_height?: string;
|
|
465
583
|
/** completion_time defines the unix time for redelegation completion. */
|
|
466
|
-
|
|
467
|
-
completion_time?: Date;
|
|
584
|
+
completion_time?: string;
|
|
468
585
|
/** initial_balance defines the initial balance when redelegation started. */
|
|
469
|
-
|
|
470
|
-
initial_balance: string;
|
|
586
|
+
initial_balance?: string;
|
|
471
587
|
/** shares_dst is the amount of destination-validator shares created by redelegation. */
|
|
472
|
-
|
|
588
|
+
shares_dst?: string;
|
|
589
|
+
}
|
|
590
|
+
export interface RedelegationEntryAminoMsg {
|
|
591
|
+
type: "cosmos-sdk/RedelegationEntry";
|
|
592
|
+
value: RedelegationEntryAmino;
|
|
593
|
+
}
|
|
594
|
+
/** RedelegationEntry defines a redelegation object with relevant metadata. */
|
|
595
|
+
export interface RedelegationEntrySDKType {
|
|
596
|
+
creation_height: bigint;
|
|
597
|
+
completion_time: Date;
|
|
598
|
+
initial_balance: string;
|
|
473
599
|
shares_dst: string;
|
|
474
600
|
}
|
|
475
601
|
/**
|
|
476
602
|
* Redelegation contains the list of a particular delegator's redelegating bonds
|
|
477
603
|
* from a particular source validator to a particular destination validator.
|
|
478
604
|
*/
|
|
479
|
-
|
|
480
605
|
export interface Redelegation {
|
|
481
606
|
/** delegator_address is the bech32-encoded address of the delegator. */
|
|
482
607
|
delegatorAddress: string;
|
|
483
608
|
/** validator_src_address is the validator redelegation source operator address. */
|
|
484
|
-
|
|
485
609
|
validatorSrcAddress: string;
|
|
486
610
|
/** validator_dst_address is the validator redelegation destination operator address. */
|
|
487
|
-
|
|
488
611
|
validatorDstAddress: string;
|
|
489
612
|
/** entries are the redelegation entries. */
|
|
490
|
-
|
|
491
613
|
entries: RedelegationEntry[];
|
|
492
614
|
}
|
|
615
|
+
export interface RedelegationProtoMsg {
|
|
616
|
+
typeUrl: "/cosmos.staking.v1beta1.Redelegation";
|
|
617
|
+
value: Uint8Array;
|
|
618
|
+
}
|
|
493
619
|
/**
|
|
494
620
|
* Redelegation contains the list of a particular delegator's redelegating bonds
|
|
495
621
|
* from a particular source validator to a particular destination validator.
|
|
496
622
|
*/
|
|
497
|
-
|
|
498
|
-
export interface RedelegationSDKType {
|
|
623
|
+
export interface RedelegationAmino {
|
|
499
624
|
/** delegator_address is the bech32-encoded address of the delegator. */
|
|
500
|
-
delegator_address
|
|
625
|
+
delegator_address?: string;
|
|
501
626
|
/** validator_src_address is the validator redelegation source operator address. */
|
|
502
|
-
|
|
503
|
-
validator_src_address: string;
|
|
627
|
+
validator_src_address?: string;
|
|
504
628
|
/** validator_dst_address is the validator redelegation destination operator address. */
|
|
505
|
-
|
|
506
|
-
validator_dst_address: string;
|
|
629
|
+
validator_dst_address?: string;
|
|
507
630
|
/** entries are the redelegation entries. */
|
|
508
|
-
|
|
631
|
+
entries?: RedelegationEntryAmino[];
|
|
632
|
+
}
|
|
633
|
+
export interface RedelegationAminoMsg {
|
|
634
|
+
type: "cosmos-sdk/Redelegation";
|
|
635
|
+
value: RedelegationAmino;
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* Redelegation contains the list of a particular delegator's redelegating bonds
|
|
639
|
+
* from a particular source validator to a particular destination validator.
|
|
640
|
+
*/
|
|
641
|
+
export interface RedelegationSDKType {
|
|
642
|
+
delegator_address: string;
|
|
643
|
+
validator_src_address: string;
|
|
644
|
+
validator_dst_address: string;
|
|
509
645
|
entries: RedelegationEntrySDKType[];
|
|
510
646
|
}
|
|
511
647
|
/** Params defines the parameters for the staking module. */
|
|
512
|
-
|
|
513
648
|
export interface Params {
|
|
514
649
|
/** unbonding_time is the time duration of unbonding. */
|
|
515
|
-
unbondingTime
|
|
650
|
+
unbondingTime: Duration;
|
|
516
651
|
/** max_validators is the maximum number of validators. */
|
|
517
|
-
|
|
518
652
|
maxValidators: number;
|
|
519
653
|
/** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */
|
|
520
|
-
|
|
521
654
|
maxEntries: number;
|
|
522
655
|
/** historical_entries is the number of historical entries to persist. */
|
|
523
|
-
|
|
524
656
|
historicalEntries: number;
|
|
525
657
|
/** bond_denom defines the bondable coin denomination. */
|
|
526
|
-
|
|
527
658
|
bondDenom: string;
|
|
528
659
|
/** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */
|
|
529
|
-
|
|
530
660
|
minCommissionRate: string;
|
|
531
661
|
}
|
|
662
|
+
export interface ParamsProtoMsg {
|
|
663
|
+
typeUrl: "/cosmos.staking.v1beta1.Params";
|
|
664
|
+
value: Uint8Array;
|
|
665
|
+
}
|
|
532
666
|
/** Params defines the parameters for the staking module. */
|
|
533
|
-
|
|
534
|
-
export interface ParamsSDKType {
|
|
667
|
+
export interface ParamsAmino {
|
|
535
668
|
/** unbonding_time is the time duration of unbonding. */
|
|
536
|
-
unbonding_time?:
|
|
669
|
+
unbonding_time?: DurationAmino;
|
|
537
670
|
/** max_validators is the maximum number of validators. */
|
|
538
|
-
|
|
539
|
-
max_validators: number;
|
|
671
|
+
max_validators?: number;
|
|
540
672
|
/** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */
|
|
541
|
-
|
|
542
|
-
max_entries: number;
|
|
673
|
+
max_entries?: number;
|
|
543
674
|
/** historical_entries is the number of historical entries to persist. */
|
|
544
|
-
|
|
545
|
-
historical_entries: number;
|
|
675
|
+
historical_entries?: number;
|
|
546
676
|
/** bond_denom defines the bondable coin denomination. */
|
|
547
|
-
|
|
548
|
-
bond_denom: string;
|
|
677
|
+
bond_denom?: string;
|
|
549
678
|
/** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */
|
|
550
|
-
|
|
679
|
+
min_commission_rate?: string;
|
|
680
|
+
}
|
|
681
|
+
export interface ParamsAminoMsg {
|
|
682
|
+
type: "cosmos-sdk/Params";
|
|
683
|
+
value: ParamsAmino;
|
|
684
|
+
}
|
|
685
|
+
/** Params defines the parameters for the staking module. */
|
|
686
|
+
export interface ParamsSDKType {
|
|
687
|
+
unbonding_time: DurationSDKType;
|
|
688
|
+
max_validators: number;
|
|
689
|
+
max_entries: number;
|
|
690
|
+
historical_entries: number;
|
|
691
|
+
bond_denom: string;
|
|
551
692
|
min_commission_rate: string;
|
|
552
693
|
}
|
|
553
694
|
/**
|
|
554
695
|
* DelegationResponse is equivalent to Delegation except that it contains a
|
|
555
696
|
* balance in addition to shares which is more suitable for client responses.
|
|
556
697
|
*/
|
|
557
|
-
|
|
558
698
|
export interface DelegationResponse {
|
|
559
|
-
delegation
|
|
560
|
-
balance
|
|
699
|
+
delegation: Delegation;
|
|
700
|
+
balance: Coin;
|
|
701
|
+
}
|
|
702
|
+
export interface DelegationResponseProtoMsg {
|
|
703
|
+
typeUrl: "/cosmos.staking.v1beta1.DelegationResponse";
|
|
704
|
+
value: Uint8Array;
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* DelegationResponse is equivalent to Delegation except that it contains a
|
|
708
|
+
* balance in addition to shares which is more suitable for client responses.
|
|
709
|
+
*/
|
|
710
|
+
export interface DelegationResponseAmino {
|
|
711
|
+
delegation?: DelegationAmino;
|
|
712
|
+
balance?: CoinAmino;
|
|
713
|
+
}
|
|
714
|
+
export interface DelegationResponseAminoMsg {
|
|
715
|
+
type: "cosmos-sdk/DelegationResponse";
|
|
716
|
+
value: DelegationResponseAmino;
|
|
561
717
|
}
|
|
562
718
|
/**
|
|
563
719
|
* DelegationResponse is equivalent to Delegation except that it contains a
|
|
564
720
|
* balance in addition to shares which is more suitable for client responses.
|
|
565
721
|
*/
|
|
566
|
-
|
|
567
722
|
export interface DelegationResponseSDKType {
|
|
568
|
-
delegation
|
|
569
|
-
balance
|
|
723
|
+
delegation: DelegationSDKType;
|
|
724
|
+
balance: CoinSDKType;
|
|
570
725
|
}
|
|
571
726
|
/**
|
|
572
727
|
* RedelegationEntryResponse is equivalent to a RedelegationEntry except that it
|
|
573
728
|
* contains a balance in addition to shares which is more suitable for client
|
|
574
729
|
* responses.
|
|
575
730
|
*/
|
|
576
|
-
|
|
577
731
|
export interface RedelegationEntryResponse {
|
|
578
|
-
redelegationEntry
|
|
732
|
+
redelegationEntry: RedelegationEntry;
|
|
579
733
|
balance: string;
|
|
580
734
|
}
|
|
735
|
+
export interface RedelegationEntryResponseProtoMsg {
|
|
736
|
+
typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse";
|
|
737
|
+
value: Uint8Array;
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* RedelegationEntryResponse is equivalent to a RedelegationEntry except that it
|
|
741
|
+
* contains a balance in addition to shares which is more suitable for client
|
|
742
|
+
* responses.
|
|
743
|
+
*/
|
|
744
|
+
export interface RedelegationEntryResponseAmino {
|
|
745
|
+
redelegation_entry?: RedelegationEntryAmino;
|
|
746
|
+
balance?: string;
|
|
747
|
+
}
|
|
748
|
+
export interface RedelegationEntryResponseAminoMsg {
|
|
749
|
+
type: "cosmos-sdk/RedelegationEntryResponse";
|
|
750
|
+
value: RedelegationEntryResponseAmino;
|
|
751
|
+
}
|
|
581
752
|
/**
|
|
582
753
|
* RedelegationEntryResponse is equivalent to a RedelegationEntry except that it
|
|
583
754
|
* contains a balance in addition to shares which is more suitable for client
|
|
584
755
|
* responses.
|
|
585
756
|
*/
|
|
586
|
-
|
|
587
757
|
export interface RedelegationEntryResponseSDKType {
|
|
588
|
-
redelegation_entry
|
|
758
|
+
redelegation_entry: RedelegationEntrySDKType;
|
|
589
759
|
balance: string;
|
|
590
760
|
}
|
|
591
761
|
/**
|
|
@@ -593,95 +763,151 @@ export interface RedelegationEntryResponseSDKType {
|
|
|
593
763
|
* contain a balance in addition to shares which is more suitable for client
|
|
594
764
|
* responses.
|
|
595
765
|
*/
|
|
596
|
-
|
|
597
766
|
export interface RedelegationResponse {
|
|
598
|
-
redelegation
|
|
767
|
+
redelegation: Redelegation;
|
|
599
768
|
entries: RedelegationEntryResponse[];
|
|
600
769
|
}
|
|
770
|
+
export interface RedelegationResponseProtoMsg {
|
|
771
|
+
typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse";
|
|
772
|
+
value: Uint8Array;
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* RedelegationResponse is equivalent to a Redelegation except that its entries
|
|
776
|
+
* contain a balance in addition to shares which is more suitable for client
|
|
777
|
+
* responses.
|
|
778
|
+
*/
|
|
779
|
+
export interface RedelegationResponseAmino {
|
|
780
|
+
redelegation?: RedelegationAmino;
|
|
781
|
+
entries?: RedelegationEntryResponseAmino[];
|
|
782
|
+
}
|
|
783
|
+
export interface RedelegationResponseAminoMsg {
|
|
784
|
+
type: "cosmos-sdk/RedelegationResponse";
|
|
785
|
+
value: RedelegationResponseAmino;
|
|
786
|
+
}
|
|
601
787
|
/**
|
|
602
788
|
* RedelegationResponse is equivalent to a Redelegation except that its entries
|
|
603
789
|
* contain a balance in addition to shares which is more suitable for client
|
|
604
790
|
* responses.
|
|
605
791
|
*/
|
|
606
|
-
|
|
607
792
|
export interface RedelegationResponseSDKType {
|
|
608
|
-
redelegation
|
|
793
|
+
redelegation: RedelegationSDKType;
|
|
609
794
|
entries: RedelegationEntryResponseSDKType[];
|
|
610
795
|
}
|
|
611
796
|
/**
|
|
612
797
|
* Pool is used for tracking bonded and not-bonded token supply of the bond
|
|
613
798
|
* denomination.
|
|
614
799
|
*/
|
|
615
|
-
|
|
616
800
|
export interface Pool {
|
|
617
801
|
notBondedTokens: string;
|
|
618
802
|
bondedTokens: string;
|
|
619
803
|
}
|
|
804
|
+
export interface PoolProtoMsg {
|
|
805
|
+
typeUrl: "/cosmos.staking.v1beta1.Pool";
|
|
806
|
+
value: Uint8Array;
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* Pool is used for tracking bonded and not-bonded token supply of the bond
|
|
810
|
+
* denomination.
|
|
811
|
+
*/
|
|
812
|
+
export interface PoolAmino {
|
|
813
|
+
not_bonded_tokens?: string;
|
|
814
|
+
bonded_tokens?: string;
|
|
815
|
+
}
|
|
816
|
+
export interface PoolAminoMsg {
|
|
817
|
+
type: "cosmos-sdk/Pool";
|
|
818
|
+
value: PoolAmino;
|
|
819
|
+
}
|
|
620
820
|
/**
|
|
621
821
|
* Pool is used for tracking bonded and not-bonded token supply of the bond
|
|
622
822
|
* denomination.
|
|
623
823
|
*/
|
|
624
|
-
|
|
625
824
|
export interface PoolSDKType {
|
|
626
825
|
not_bonded_tokens: string;
|
|
627
826
|
bonded_tokens: string;
|
|
628
827
|
}
|
|
629
|
-
|
|
630
828
|
function createBaseHistoricalInfo(): HistoricalInfo {
|
|
631
829
|
return {
|
|
632
|
-
header:
|
|
830
|
+
header: Header.fromPartial({}),
|
|
633
831
|
valset: []
|
|
634
832
|
};
|
|
635
833
|
}
|
|
636
|
-
|
|
637
834
|
export const HistoricalInfo = {
|
|
638
|
-
|
|
835
|
+
typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo",
|
|
836
|
+
encode(message: HistoricalInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
639
837
|
if (message.header !== undefined) {
|
|
640
838
|
Header.encode(message.header, writer.uint32(10).fork()).ldelim();
|
|
641
839
|
}
|
|
642
|
-
|
|
643
840
|
for (const v of message.valset) {
|
|
644
841
|
Validator.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
645
842
|
}
|
|
646
|
-
|
|
647
843
|
return writer;
|
|
648
844
|
},
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
845
|
+
decode(input: BinaryReader | Uint8Array, length?: number): HistoricalInfo {
|
|
846
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
652
847
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
653
848
|
const message = createBaseHistoricalInfo();
|
|
654
|
-
|
|
655
849
|
while (reader.pos < end) {
|
|
656
850
|
const tag = reader.uint32();
|
|
657
|
-
|
|
658
851
|
switch (tag >>> 3) {
|
|
659
852
|
case 1:
|
|
660
853
|
message.header = Header.decode(reader, reader.uint32());
|
|
661
854
|
break;
|
|
662
|
-
|
|
663
855
|
case 2:
|
|
664
856
|
message.valset.push(Validator.decode(reader, reader.uint32()));
|
|
665
857
|
break;
|
|
666
|
-
|
|
667
858
|
default:
|
|
668
859
|
reader.skipType(tag & 7);
|
|
669
860
|
break;
|
|
670
861
|
}
|
|
671
862
|
}
|
|
672
|
-
|
|
673
863
|
return message;
|
|
674
864
|
},
|
|
675
|
-
|
|
676
|
-
fromPartial(object: DeepPartial<HistoricalInfo>): HistoricalInfo {
|
|
865
|
+
fromPartial(object: Partial<HistoricalInfo>): HistoricalInfo {
|
|
677
866
|
const message = createBaseHistoricalInfo();
|
|
678
867
|
message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined;
|
|
679
868
|
message.valset = object.valset?.map(e => Validator.fromPartial(e)) || [];
|
|
680
869
|
return message;
|
|
870
|
+
},
|
|
871
|
+
fromAmino(object: HistoricalInfoAmino): HistoricalInfo {
|
|
872
|
+
const message = createBaseHistoricalInfo();
|
|
873
|
+
if (object.header !== undefined && object.header !== null) {
|
|
874
|
+
message.header = Header.fromAmino(object.header);
|
|
875
|
+
}
|
|
876
|
+
message.valset = object.valset?.map(e => Validator.fromAmino(e)) || [];
|
|
877
|
+
return message;
|
|
878
|
+
},
|
|
879
|
+
toAmino(message: HistoricalInfo): HistoricalInfoAmino {
|
|
880
|
+
const obj: any = {};
|
|
881
|
+
obj.header = message.header ? Header.toAmino(message.header) : undefined;
|
|
882
|
+
if (message.valset) {
|
|
883
|
+
obj.valset = message.valset.map(e => e ? Validator.toAmino(e) : undefined);
|
|
884
|
+
} else {
|
|
885
|
+
obj.valset = [];
|
|
886
|
+
}
|
|
887
|
+
return obj;
|
|
888
|
+
},
|
|
889
|
+
fromAminoMsg(object: HistoricalInfoAminoMsg): HistoricalInfo {
|
|
890
|
+
return HistoricalInfo.fromAmino(object.value);
|
|
891
|
+
},
|
|
892
|
+
toAminoMsg(message: HistoricalInfo): HistoricalInfoAminoMsg {
|
|
893
|
+
return {
|
|
894
|
+
type: "cosmos-sdk/HistoricalInfo",
|
|
895
|
+
value: HistoricalInfo.toAmino(message)
|
|
896
|
+
};
|
|
897
|
+
},
|
|
898
|
+
fromProtoMsg(message: HistoricalInfoProtoMsg): HistoricalInfo {
|
|
899
|
+
return HistoricalInfo.decode(message.value);
|
|
900
|
+
},
|
|
901
|
+
toProto(message: HistoricalInfo): Uint8Array {
|
|
902
|
+
return HistoricalInfo.encode(message).finish();
|
|
903
|
+
},
|
|
904
|
+
toProtoMsg(message: HistoricalInfo): HistoricalInfoProtoMsg {
|
|
905
|
+
return {
|
|
906
|
+
typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo",
|
|
907
|
+
value: HistoricalInfo.encode(message).finish()
|
|
908
|
+
};
|
|
681
909
|
}
|
|
682
|
-
|
|
683
910
|
};
|
|
684
|
-
|
|
685
911
|
function createBaseCommissionRates(): CommissionRates {
|
|
686
912
|
return {
|
|
687
913
|
rate: "",
|
|
@@ -689,119 +915,173 @@ function createBaseCommissionRates(): CommissionRates {
|
|
|
689
915
|
maxChangeRate: ""
|
|
690
916
|
};
|
|
691
917
|
}
|
|
692
|
-
|
|
693
918
|
export const CommissionRates = {
|
|
694
|
-
|
|
919
|
+
typeUrl: "/cosmos.staking.v1beta1.CommissionRates",
|
|
920
|
+
encode(message: CommissionRates, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
695
921
|
if (message.rate !== "") {
|
|
696
|
-
writer.uint32(10).string(message.rate);
|
|
922
|
+
writer.uint32(10).string(Decimal.fromUserInput(message.rate, 18).atomics);
|
|
697
923
|
}
|
|
698
|
-
|
|
699
924
|
if (message.maxRate !== "") {
|
|
700
|
-
writer.uint32(18).string(message.maxRate);
|
|
925
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.maxRate, 18).atomics);
|
|
701
926
|
}
|
|
702
|
-
|
|
703
927
|
if (message.maxChangeRate !== "") {
|
|
704
|
-
writer.uint32(26).string(message.maxChangeRate);
|
|
928
|
+
writer.uint32(26).string(Decimal.fromUserInput(message.maxChangeRate, 18).atomics);
|
|
705
929
|
}
|
|
706
|
-
|
|
707
930
|
return writer;
|
|
708
931
|
},
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
932
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CommissionRates {
|
|
933
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
712
934
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
713
935
|
const message = createBaseCommissionRates();
|
|
714
|
-
|
|
715
936
|
while (reader.pos < end) {
|
|
716
937
|
const tag = reader.uint32();
|
|
717
|
-
|
|
718
938
|
switch (tag >>> 3) {
|
|
719
939
|
case 1:
|
|
720
|
-
message.rate = reader.string();
|
|
940
|
+
message.rate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
721
941
|
break;
|
|
722
|
-
|
|
723
942
|
case 2:
|
|
724
|
-
message.maxRate = reader.string();
|
|
943
|
+
message.maxRate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
725
944
|
break;
|
|
726
|
-
|
|
727
945
|
case 3:
|
|
728
|
-
message.maxChangeRate = reader.string();
|
|
946
|
+
message.maxChangeRate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
729
947
|
break;
|
|
730
|
-
|
|
731
948
|
default:
|
|
732
949
|
reader.skipType(tag & 7);
|
|
733
950
|
break;
|
|
734
951
|
}
|
|
735
952
|
}
|
|
736
|
-
|
|
737
953
|
return message;
|
|
738
954
|
},
|
|
739
|
-
|
|
740
|
-
fromPartial(object: DeepPartial<CommissionRates>): CommissionRates {
|
|
955
|
+
fromPartial(object: Partial<CommissionRates>): CommissionRates {
|
|
741
956
|
const message = createBaseCommissionRates();
|
|
742
957
|
message.rate = object.rate ?? "";
|
|
743
958
|
message.maxRate = object.maxRate ?? "";
|
|
744
959
|
message.maxChangeRate = object.maxChangeRate ?? "";
|
|
745
960
|
return message;
|
|
961
|
+
},
|
|
962
|
+
fromAmino(object: CommissionRatesAmino): CommissionRates {
|
|
963
|
+
const message = createBaseCommissionRates();
|
|
964
|
+
if (object.rate !== undefined && object.rate !== null) {
|
|
965
|
+
message.rate = object.rate;
|
|
966
|
+
}
|
|
967
|
+
if (object.max_rate !== undefined && object.max_rate !== null) {
|
|
968
|
+
message.maxRate = object.max_rate;
|
|
969
|
+
}
|
|
970
|
+
if (object.max_change_rate !== undefined && object.max_change_rate !== null) {
|
|
971
|
+
message.maxChangeRate = object.max_change_rate;
|
|
972
|
+
}
|
|
973
|
+
return message;
|
|
974
|
+
},
|
|
975
|
+
toAmino(message: CommissionRates): CommissionRatesAmino {
|
|
976
|
+
const obj: any = {};
|
|
977
|
+
obj.rate = message.rate;
|
|
978
|
+
obj.max_rate = message.maxRate;
|
|
979
|
+
obj.max_change_rate = message.maxChangeRate;
|
|
980
|
+
return obj;
|
|
981
|
+
},
|
|
982
|
+
fromAminoMsg(object: CommissionRatesAminoMsg): CommissionRates {
|
|
983
|
+
return CommissionRates.fromAmino(object.value);
|
|
984
|
+
},
|
|
985
|
+
toAminoMsg(message: CommissionRates): CommissionRatesAminoMsg {
|
|
986
|
+
return {
|
|
987
|
+
type: "cosmos-sdk/CommissionRates",
|
|
988
|
+
value: CommissionRates.toAmino(message)
|
|
989
|
+
};
|
|
990
|
+
},
|
|
991
|
+
fromProtoMsg(message: CommissionRatesProtoMsg): CommissionRates {
|
|
992
|
+
return CommissionRates.decode(message.value);
|
|
993
|
+
},
|
|
994
|
+
toProto(message: CommissionRates): Uint8Array {
|
|
995
|
+
return CommissionRates.encode(message).finish();
|
|
996
|
+
},
|
|
997
|
+
toProtoMsg(message: CommissionRates): CommissionRatesProtoMsg {
|
|
998
|
+
return {
|
|
999
|
+
typeUrl: "/cosmos.staking.v1beta1.CommissionRates",
|
|
1000
|
+
value: CommissionRates.encode(message).finish()
|
|
1001
|
+
};
|
|
746
1002
|
}
|
|
747
|
-
|
|
748
1003
|
};
|
|
749
|
-
|
|
750
1004
|
function createBaseCommission(): Commission {
|
|
751
1005
|
return {
|
|
752
|
-
commissionRates:
|
|
753
|
-
updateTime:
|
|
1006
|
+
commissionRates: CommissionRates.fromPartial({}),
|
|
1007
|
+
updateTime: new Date()
|
|
754
1008
|
};
|
|
755
1009
|
}
|
|
756
|
-
|
|
757
1010
|
export const Commission = {
|
|
758
|
-
|
|
1011
|
+
typeUrl: "/cosmos.staking.v1beta1.Commission",
|
|
1012
|
+
encode(message: Commission, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
759
1013
|
if (message.commissionRates !== undefined) {
|
|
760
1014
|
CommissionRates.encode(message.commissionRates, writer.uint32(10).fork()).ldelim();
|
|
761
1015
|
}
|
|
762
|
-
|
|
763
1016
|
if (message.updateTime !== undefined) {
|
|
764
1017
|
Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(18).fork()).ldelim();
|
|
765
1018
|
}
|
|
766
|
-
|
|
767
1019
|
return writer;
|
|
768
1020
|
},
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1021
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Commission {
|
|
1022
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
772
1023
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
773
1024
|
const message = createBaseCommission();
|
|
774
|
-
|
|
775
1025
|
while (reader.pos < end) {
|
|
776
1026
|
const tag = reader.uint32();
|
|
777
|
-
|
|
778
1027
|
switch (tag >>> 3) {
|
|
779
1028
|
case 1:
|
|
780
1029
|
message.commissionRates = CommissionRates.decode(reader, reader.uint32());
|
|
781
1030
|
break;
|
|
782
|
-
|
|
783
1031
|
case 2:
|
|
784
1032
|
message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
785
1033
|
break;
|
|
786
|
-
|
|
787
1034
|
default:
|
|
788
1035
|
reader.skipType(tag & 7);
|
|
789
1036
|
break;
|
|
790
1037
|
}
|
|
791
1038
|
}
|
|
792
|
-
|
|
793
1039
|
return message;
|
|
794
1040
|
},
|
|
795
|
-
|
|
796
|
-
fromPartial(object: DeepPartial<Commission>): Commission {
|
|
1041
|
+
fromPartial(object: Partial<Commission>): Commission {
|
|
797
1042
|
const message = createBaseCommission();
|
|
798
1043
|
message.commissionRates = object.commissionRates !== undefined && object.commissionRates !== null ? CommissionRates.fromPartial(object.commissionRates) : undefined;
|
|
799
1044
|
message.updateTime = object.updateTime ?? undefined;
|
|
800
1045
|
return message;
|
|
1046
|
+
},
|
|
1047
|
+
fromAmino(object: CommissionAmino): Commission {
|
|
1048
|
+
const message = createBaseCommission();
|
|
1049
|
+
if (object.commission_rates !== undefined && object.commission_rates !== null) {
|
|
1050
|
+
message.commissionRates = CommissionRates.fromAmino(object.commission_rates);
|
|
1051
|
+
}
|
|
1052
|
+
if (object.update_time !== undefined && object.update_time !== null) {
|
|
1053
|
+
message.updateTime = fromTimestamp(Timestamp.fromAmino(object.update_time));
|
|
1054
|
+
}
|
|
1055
|
+
return message;
|
|
1056
|
+
},
|
|
1057
|
+
toAmino(message: Commission): CommissionAmino {
|
|
1058
|
+
const obj: any = {};
|
|
1059
|
+
obj.commission_rates = message.commissionRates ? CommissionRates.toAmino(message.commissionRates) : undefined;
|
|
1060
|
+
obj.update_time = message.updateTime ? Timestamp.toAmino(toTimestamp(message.updateTime)) : undefined;
|
|
1061
|
+
return obj;
|
|
1062
|
+
},
|
|
1063
|
+
fromAminoMsg(object: CommissionAminoMsg): Commission {
|
|
1064
|
+
return Commission.fromAmino(object.value);
|
|
1065
|
+
},
|
|
1066
|
+
toAminoMsg(message: Commission): CommissionAminoMsg {
|
|
1067
|
+
return {
|
|
1068
|
+
type: "cosmos-sdk/Commission",
|
|
1069
|
+
value: Commission.toAmino(message)
|
|
1070
|
+
};
|
|
1071
|
+
},
|
|
1072
|
+
fromProtoMsg(message: CommissionProtoMsg): Commission {
|
|
1073
|
+
return Commission.decode(message.value);
|
|
1074
|
+
},
|
|
1075
|
+
toProto(message: Commission): Uint8Array {
|
|
1076
|
+
return Commission.encode(message).finish();
|
|
1077
|
+
},
|
|
1078
|
+
toProtoMsg(message: Commission): CommissionProtoMsg {
|
|
1079
|
+
return {
|
|
1080
|
+
typeUrl: "/cosmos.staking.v1beta1.Commission",
|
|
1081
|
+
value: Commission.encode(message).finish()
|
|
1082
|
+
};
|
|
801
1083
|
}
|
|
802
|
-
|
|
803
1084
|
};
|
|
804
|
-
|
|
805
1085
|
function createBaseDescription(): Description {
|
|
806
1086
|
return {
|
|
807
1087
|
moniker: "",
|
|
@@ -811,71 +1091,56 @@ function createBaseDescription(): Description {
|
|
|
811
1091
|
details: ""
|
|
812
1092
|
};
|
|
813
1093
|
}
|
|
814
|
-
|
|
815
1094
|
export const Description = {
|
|
816
|
-
|
|
1095
|
+
typeUrl: "/cosmos.staking.v1beta1.Description",
|
|
1096
|
+
encode(message: Description, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
817
1097
|
if (message.moniker !== "") {
|
|
818
1098
|
writer.uint32(10).string(message.moniker);
|
|
819
1099
|
}
|
|
820
|
-
|
|
821
1100
|
if (message.identity !== "") {
|
|
822
1101
|
writer.uint32(18).string(message.identity);
|
|
823
1102
|
}
|
|
824
|
-
|
|
825
1103
|
if (message.website !== "") {
|
|
826
1104
|
writer.uint32(26).string(message.website);
|
|
827
1105
|
}
|
|
828
|
-
|
|
829
1106
|
if (message.securityContact !== "") {
|
|
830
1107
|
writer.uint32(34).string(message.securityContact);
|
|
831
1108
|
}
|
|
832
|
-
|
|
833
1109
|
if (message.details !== "") {
|
|
834
1110
|
writer.uint32(42).string(message.details);
|
|
835
1111
|
}
|
|
836
|
-
|
|
837
1112
|
return writer;
|
|
838
1113
|
},
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1114
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Description {
|
|
1115
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
842
1116
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
843
1117
|
const message = createBaseDescription();
|
|
844
|
-
|
|
845
1118
|
while (reader.pos < end) {
|
|
846
1119
|
const tag = reader.uint32();
|
|
847
|
-
|
|
848
1120
|
switch (tag >>> 3) {
|
|
849
1121
|
case 1:
|
|
850
1122
|
message.moniker = reader.string();
|
|
851
1123
|
break;
|
|
852
|
-
|
|
853
1124
|
case 2:
|
|
854
1125
|
message.identity = reader.string();
|
|
855
1126
|
break;
|
|
856
|
-
|
|
857
1127
|
case 3:
|
|
858
1128
|
message.website = reader.string();
|
|
859
1129
|
break;
|
|
860
|
-
|
|
861
1130
|
case 4:
|
|
862
1131
|
message.securityContact = reader.string();
|
|
863
1132
|
break;
|
|
864
|
-
|
|
865
1133
|
case 5:
|
|
866
1134
|
message.details = reader.string();
|
|
867
1135
|
break;
|
|
868
|
-
|
|
869
1136
|
default:
|
|
870
1137
|
reader.skipType(tag & 7);
|
|
871
1138
|
break;
|
|
872
1139
|
}
|
|
873
1140
|
}
|
|
874
|
-
|
|
875
1141
|
return message;
|
|
876
1142
|
},
|
|
877
|
-
|
|
878
|
-
fromPartial(object: DeepPartial<Description>): Description {
|
|
1143
|
+
fromPartial(object: Partial<Description>): Description {
|
|
879
1144
|
const message = createBaseDescription();
|
|
880
1145
|
message.moniker = object.moniker ?? "";
|
|
881
1146
|
message.identity = object.identity ?? "";
|
|
@@ -883,10 +1148,57 @@ export const Description = {
|
|
|
883
1148
|
message.securityContact = object.securityContact ?? "";
|
|
884
1149
|
message.details = object.details ?? "";
|
|
885
1150
|
return message;
|
|
1151
|
+
},
|
|
1152
|
+
fromAmino(object: DescriptionAmino): Description {
|
|
1153
|
+
const message = createBaseDescription();
|
|
1154
|
+
if (object.moniker !== undefined && object.moniker !== null) {
|
|
1155
|
+
message.moniker = object.moniker;
|
|
1156
|
+
}
|
|
1157
|
+
if (object.identity !== undefined && object.identity !== null) {
|
|
1158
|
+
message.identity = object.identity;
|
|
1159
|
+
}
|
|
1160
|
+
if (object.website !== undefined && object.website !== null) {
|
|
1161
|
+
message.website = object.website;
|
|
1162
|
+
}
|
|
1163
|
+
if (object.security_contact !== undefined && object.security_contact !== null) {
|
|
1164
|
+
message.securityContact = object.security_contact;
|
|
1165
|
+
}
|
|
1166
|
+
if (object.details !== undefined && object.details !== null) {
|
|
1167
|
+
message.details = object.details;
|
|
1168
|
+
}
|
|
1169
|
+
return message;
|
|
1170
|
+
},
|
|
1171
|
+
toAmino(message: Description): DescriptionAmino {
|
|
1172
|
+
const obj: any = {};
|
|
1173
|
+
obj.moniker = message.moniker;
|
|
1174
|
+
obj.identity = message.identity;
|
|
1175
|
+
obj.website = message.website;
|
|
1176
|
+
obj.security_contact = message.securityContact;
|
|
1177
|
+
obj.details = message.details;
|
|
1178
|
+
return obj;
|
|
1179
|
+
},
|
|
1180
|
+
fromAminoMsg(object: DescriptionAminoMsg): Description {
|
|
1181
|
+
return Description.fromAmino(object.value);
|
|
1182
|
+
},
|
|
1183
|
+
toAminoMsg(message: Description): DescriptionAminoMsg {
|
|
1184
|
+
return {
|
|
1185
|
+
type: "cosmos-sdk/Description",
|
|
1186
|
+
value: Description.toAmino(message)
|
|
1187
|
+
};
|
|
1188
|
+
},
|
|
1189
|
+
fromProtoMsg(message: DescriptionProtoMsg): Description {
|
|
1190
|
+
return Description.decode(message.value);
|
|
1191
|
+
},
|
|
1192
|
+
toProto(message: Description): Uint8Array {
|
|
1193
|
+
return Description.encode(message).finish();
|
|
1194
|
+
},
|
|
1195
|
+
toProtoMsg(message: Description): DescriptionProtoMsg {
|
|
1196
|
+
return {
|
|
1197
|
+
typeUrl: "/cosmos.staking.v1beta1.Description",
|
|
1198
|
+
value: Description.encode(message).finish()
|
|
1199
|
+
};
|
|
886
1200
|
}
|
|
887
|
-
|
|
888
1201
|
};
|
|
889
|
-
|
|
890
1202
|
function createBaseValidator(): Validator {
|
|
891
1203
|
return {
|
|
892
1204
|
operatorAddress: "",
|
|
@@ -895,126 +1207,99 @@ function createBaseValidator(): Validator {
|
|
|
895
1207
|
status: 0,
|
|
896
1208
|
tokens: "",
|
|
897
1209
|
delegatorShares: "",
|
|
898
|
-
description:
|
|
899
|
-
unbondingHeight:
|
|
900
|
-
unbondingTime:
|
|
901
|
-
commission:
|
|
1210
|
+
description: Description.fromPartial({}),
|
|
1211
|
+
unbondingHeight: BigInt(0),
|
|
1212
|
+
unbondingTime: new Date(),
|
|
1213
|
+
commission: Commission.fromPartial({}),
|
|
902
1214
|
minSelfDelegation: ""
|
|
903
1215
|
};
|
|
904
1216
|
}
|
|
905
|
-
|
|
906
1217
|
export const Validator = {
|
|
907
|
-
|
|
1218
|
+
typeUrl: "/cosmos.staking.v1beta1.Validator",
|
|
1219
|
+
encode(message: Validator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
908
1220
|
if (message.operatorAddress !== "") {
|
|
909
1221
|
writer.uint32(10).string(message.operatorAddress);
|
|
910
1222
|
}
|
|
911
|
-
|
|
912
1223
|
if (message.consensusPubkey !== undefined) {
|
|
913
1224
|
Any.encode(message.consensusPubkey, writer.uint32(18).fork()).ldelim();
|
|
914
1225
|
}
|
|
915
|
-
|
|
916
1226
|
if (message.jailed === true) {
|
|
917
1227
|
writer.uint32(24).bool(message.jailed);
|
|
918
1228
|
}
|
|
919
|
-
|
|
920
1229
|
if (message.status !== 0) {
|
|
921
1230
|
writer.uint32(32).int32(message.status);
|
|
922
1231
|
}
|
|
923
|
-
|
|
924
1232
|
if (message.tokens !== "") {
|
|
925
1233
|
writer.uint32(42).string(message.tokens);
|
|
926
1234
|
}
|
|
927
|
-
|
|
928
1235
|
if (message.delegatorShares !== "") {
|
|
929
|
-
writer.uint32(50).string(message.delegatorShares);
|
|
1236
|
+
writer.uint32(50).string(Decimal.fromUserInput(message.delegatorShares, 18).atomics);
|
|
930
1237
|
}
|
|
931
|
-
|
|
932
1238
|
if (message.description !== undefined) {
|
|
933
1239
|
Description.encode(message.description, writer.uint32(58).fork()).ldelim();
|
|
934
1240
|
}
|
|
935
|
-
|
|
936
|
-
if (!message.unbondingHeight.isZero()) {
|
|
1241
|
+
if (message.unbondingHeight !== BigInt(0)) {
|
|
937
1242
|
writer.uint32(64).int64(message.unbondingHeight);
|
|
938
1243
|
}
|
|
939
|
-
|
|
940
1244
|
if (message.unbondingTime !== undefined) {
|
|
941
1245
|
Timestamp.encode(toTimestamp(message.unbondingTime), writer.uint32(74).fork()).ldelim();
|
|
942
1246
|
}
|
|
943
|
-
|
|
944
1247
|
if (message.commission !== undefined) {
|
|
945
1248
|
Commission.encode(message.commission, writer.uint32(82).fork()).ldelim();
|
|
946
1249
|
}
|
|
947
|
-
|
|
948
1250
|
if (message.minSelfDelegation !== "") {
|
|
949
1251
|
writer.uint32(90).string(message.minSelfDelegation);
|
|
950
1252
|
}
|
|
951
|
-
|
|
952
1253
|
return writer;
|
|
953
1254
|
},
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1255
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Validator {
|
|
1256
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
957
1257
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
958
1258
|
const message = createBaseValidator();
|
|
959
|
-
|
|
960
1259
|
while (reader.pos < end) {
|
|
961
1260
|
const tag = reader.uint32();
|
|
962
|
-
|
|
963
1261
|
switch (tag >>> 3) {
|
|
964
1262
|
case 1:
|
|
965
1263
|
message.operatorAddress = reader.string();
|
|
966
1264
|
break;
|
|
967
|
-
|
|
968
1265
|
case 2:
|
|
969
1266
|
message.consensusPubkey = Any.decode(reader, reader.uint32());
|
|
970
1267
|
break;
|
|
971
|
-
|
|
972
1268
|
case 3:
|
|
973
1269
|
message.jailed = reader.bool();
|
|
974
1270
|
break;
|
|
975
|
-
|
|
976
1271
|
case 4:
|
|
977
1272
|
message.status = (reader.int32() as any);
|
|
978
1273
|
break;
|
|
979
|
-
|
|
980
1274
|
case 5:
|
|
981
1275
|
message.tokens = reader.string();
|
|
982
1276
|
break;
|
|
983
|
-
|
|
984
1277
|
case 6:
|
|
985
|
-
message.delegatorShares = reader.string();
|
|
1278
|
+
message.delegatorShares = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
986
1279
|
break;
|
|
987
|
-
|
|
988
1280
|
case 7:
|
|
989
1281
|
message.description = Description.decode(reader, reader.uint32());
|
|
990
1282
|
break;
|
|
991
|
-
|
|
992
1283
|
case 8:
|
|
993
|
-
message.unbondingHeight =
|
|
1284
|
+
message.unbondingHeight = reader.int64();
|
|
994
1285
|
break;
|
|
995
|
-
|
|
996
1286
|
case 9:
|
|
997
1287
|
message.unbondingTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
998
1288
|
break;
|
|
999
|
-
|
|
1000
1289
|
case 10:
|
|
1001
1290
|
message.commission = Commission.decode(reader, reader.uint32());
|
|
1002
1291
|
break;
|
|
1003
|
-
|
|
1004
1292
|
case 11:
|
|
1005
1293
|
message.minSelfDelegation = reader.string();
|
|
1006
1294
|
break;
|
|
1007
|
-
|
|
1008
1295
|
default:
|
|
1009
1296
|
reader.skipType(tag & 7);
|
|
1010
1297
|
break;
|
|
1011
1298
|
}
|
|
1012
1299
|
}
|
|
1013
|
-
|
|
1014
1300
|
return message;
|
|
1015
1301
|
},
|
|
1016
|
-
|
|
1017
|
-
fromPartial(object: DeepPartial<Validator>): Validator {
|
|
1302
|
+
fromPartial(object: Partial<Validator>): Validator {
|
|
1018
1303
|
const message = createBaseValidator();
|
|
1019
1304
|
message.operatorAddress = object.operatorAddress ?? "";
|
|
1020
1305
|
message.consensusPubkey = object.consensusPubkey !== undefined && object.consensusPubkey !== null ? Any.fromPartial(object.consensusPubkey) : undefined;
|
|
@@ -1023,160 +1308,309 @@ export const Validator = {
|
|
|
1023
1308
|
message.tokens = object.tokens ?? "";
|
|
1024
1309
|
message.delegatorShares = object.delegatorShares ?? "";
|
|
1025
1310
|
message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined;
|
|
1026
|
-
message.unbondingHeight = object.unbondingHeight !== undefined && object.unbondingHeight !== null ?
|
|
1311
|
+
message.unbondingHeight = object.unbondingHeight !== undefined && object.unbondingHeight !== null ? BigInt(object.unbondingHeight.toString()) : BigInt(0);
|
|
1027
1312
|
message.unbondingTime = object.unbondingTime ?? undefined;
|
|
1028
1313
|
message.commission = object.commission !== undefined && object.commission !== null ? Commission.fromPartial(object.commission) : undefined;
|
|
1029
1314
|
message.minSelfDelegation = object.minSelfDelegation ?? "";
|
|
1030
1315
|
return message;
|
|
1316
|
+
},
|
|
1317
|
+
fromAmino(object: ValidatorAmino): Validator {
|
|
1318
|
+
const message = createBaseValidator();
|
|
1319
|
+
if (object.operator_address !== undefined && object.operator_address !== null) {
|
|
1320
|
+
message.operatorAddress = object.operator_address;
|
|
1321
|
+
}
|
|
1322
|
+
if (object.consensus_pubkey !== undefined && object.consensus_pubkey !== null) {
|
|
1323
|
+
message.consensusPubkey = encodePubkey(object.consensus_pubkey);
|
|
1324
|
+
}
|
|
1325
|
+
if (object.jailed !== undefined && object.jailed !== null) {
|
|
1326
|
+
message.jailed = object.jailed;
|
|
1327
|
+
}
|
|
1328
|
+
if (object.status !== undefined && object.status !== null) {
|
|
1329
|
+
message.status = bondStatusFromJSON(object.status);
|
|
1330
|
+
}
|
|
1331
|
+
if (object.tokens !== undefined && object.tokens !== null) {
|
|
1332
|
+
message.tokens = object.tokens;
|
|
1333
|
+
}
|
|
1334
|
+
if (object.delegator_shares !== undefined && object.delegator_shares !== null) {
|
|
1335
|
+
message.delegatorShares = object.delegator_shares;
|
|
1336
|
+
}
|
|
1337
|
+
if (object.description !== undefined && object.description !== null) {
|
|
1338
|
+
message.description = Description.fromAmino(object.description);
|
|
1339
|
+
}
|
|
1340
|
+
if (object.unbonding_height !== undefined && object.unbonding_height !== null) {
|
|
1341
|
+
message.unbondingHeight = BigInt(object.unbonding_height);
|
|
1342
|
+
}
|
|
1343
|
+
if (object.unbonding_time !== undefined && object.unbonding_time !== null) {
|
|
1344
|
+
message.unbondingTime = fromTimestamp(Timestamp.fromAmino(object.unbonding_time));
|
|
1345
|
+
}
|
|
1346
|
+
if (object.commission !== undefined && object.commission !== null) {
|
|
1347
|
+
message.commission = Commission.fromAmino(object.commission);
|
|
1348
|
+
}
|
|
1349
|
+
if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) {
|
|
1350
|
+
message.minSelfDelegation = object.min_self_delegation;
|
|
1351
|
+
}
|
|
1352
|
+
return message;
|
|
1353
|
+
},
|
|
1354
|
+
toAmino(message: Validator): ValidatorAmino {
|
|
1355
|
+
const obj: any = {};
|
|
1356
|
+
obj.operator_address = message.operatorAddress;
|
|
1357
|
+
obj.consensus_pubkey = message.consensusPubkey ? decodePubkey(message.consensusPubkey) : undefined;
|
|
1358
|
+
obj.jailed = message.jailed;
|
|
1359
|
+
obj.status = bondStatusToJSON(message.status);
|
|
1360
|
+
obj.tokens = message.tokens;
|
|
1361
|
+
obj.delegator_shares = message.delegatorShares;
|
|
1362
|
+
obj.description = message.description ? Description.toAmino(message.description) : undefined;
|
|
1363
|
+
obj.unbonding_height = message.unbondingHeight ? message.unbondingHeight.toString() : undefined;
|
|
1364
|
+
obj.unbonding_time = message.unbondingTime ? Timestamp.toAmino(toTimestamp(message.unbondingTime)) : undefined;
|
|
1365
|
+
obj.commission = message.commission ? Commission.toAmino(message.commission) : undefined;
|
|
1366
|
+
obj.min_self_delegation = message.minSelfDelegation;
|
|
1367
|
+
return obj;
|
|
1368
|
+
},
|
|
1369
|
+
fromAminoMsg(object: ValidatorAminoMsg): Validator {
|
|
1370
|
+
return Validator.fromAmino(object.value);
|
|
1371
|
+
},
|
|
1372
|
+
toAminoMsg(message: Validator): ValidatorAminoMsg {
|
|
1373
|
+
return {
|
|
1374
|
+
type: "cosmos-sdk/Validator",
|
|
1375
|
+
value: Validator.toAmino(message)
|
|
1376
|
+
};
|
|
1377
|
+
},
|
|
1378
|
+
fromProtoMsg(message: ValidatorProtoMsg): Validator {
|
|
1379
|
+
return Validator.decode(message.value);
|
|
1380
|
+
},
|
|
1381
|
+
toProto(message: Validator): Uint8Array {
|
|
1382
|
+
return Validator.encode(message).finish();
|
|
1383
|
+
},
|
|
1384
|
+
toProtoMsg(message: Validator): ValidatorProtoMsg {
|
|
1385
|
+
return {
|
|
1386
|
+
typeUrl: "/cosmos.staking.v1beta1.Validator",
|
|
1387
|
+
value: Validator.encode(message).finish()
|
|
1388
|
+
};
|
|
1031
1389
|
}
|
|
1032
|
-
|
|
1033
1390
|
};
|
|
1034
|
-
|
|
1035
1391
|
function createBaseValAddresses(): ValAddresses {
|
|
1036
1392
|
return {
|
|
1037
1393
|
addresses: []
|
|
1038
1394
|
};
|
|
1039
1395
|
}
|
|
1040
|
-
|
|
1041
1396
|
export const ValAddresses = {
|
|
1042
|
-
|
|
1397
|
+
typeUrl: "/cosmos.staking.v1beta1.ValAddresses",
|
|
1398
|
+
encode(message: ValAddresses, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1043
1399
|
for (const v of message.addresses) {
|
|
1044
1400
|
writer.uint32(10).string(v!);
|
|
1045
1401
|
}
|
|
1046
|
-
|
|
1047
1402
|
return writer;
|
|
1048
1403
|
},
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1404
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValAddresses {
|
|
1405
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1052
1406
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1053
1407
|
const message = createBaseValAddresses();
|
|
1054
|
-
|
|
1055
1408
|
while (reader.pos < end) {
|
|
1056
1409
|
const tag = reader.uint32();
|
|
1057
|
-
|
|
1058
1410
|
switch (tag >>> 3) {
|
|
1059
1411
|
case 1:
|
|
1060
1412
|
message.addresses.push(reader.string());
|
|
1061
1413
|
break;
|
|
1062
|
-
|
|
1063
1414
|
default:
|
|
1064
1415
|
reader.skipType(tag & 7);
|
|
1065
1416
|
break;
|
|
1066
1417
|
}
|
|
1067
1418
|
}
|
|
1068
|
-
|
|
1069
1419
|
return message;
|
|
1070
1420
|
},
|
|
1071
|
-
|
|
1072
|
-
|
|
1421
|
+
fromPartial(object: Partial<ValAddresses>): ValAddresses {
|
|
1422
|
+
const message = createBaseValAddresses();
|
|
1423
|
+
message.addresses = object.addresses?.map(e => e) || [];
|
|
1424
|
+
return message;
|
|
1425
|
+
},
|
|
1426
|
+
fromAmino(object: ValAddressesAmino): ValAddresses {
|
|
1073
1427
|
const message = createBaseValAddresses();
|
|
1074
1428
|
message.addresses = object.addresses?.map(e => e) || [];
|
|
1075
1429
|
return message;
|
|
1430
|
+
},
|
|
1431
|
+
toAmino(message: ValAddresses): ValAddressesAmino {
|
|
1432
|
+
const obj: any = {};
|
|
1433
|
+
if (message.addresses) {
|
|
1434
|
+
obj.addresses = message.addresses.map(e => e);
|
|
1435
|
+
} else {
|
|
1436
|
+
obj.addresses = [];
|
|
1437
|
+
}
|
|
1438
|
+
return obj;
|
|
1439
|
+
},
|
|
1440
|
+
fromAminoMsg(object: ValAddressesAminoMsg): ValAddresses {
|
|
1441
|
+
return ValAddresses.fromAmino(object.value);
|
|
1442
|
+
},
|
|
1443
|
+
toAminoMsg(message: ValAddresses): ValAddressesAminoMsg {
|
|
1444
|
+
return {
|
|
1445
|
+
type: "cosmos-sdk/ValAddresses",
|
|
1446
|
+
value: ValAddresses.toAmino(message)
|
|
1447
|
+
};
|
|
1448
|
+
},
|
|
1449
|
+
fromProtoMsg(message: ValAddressesProtoMsg): ValAddresses {
|
|
1450
|
+
return ValAddresses.decode(message.value);
|
|
1451
|
+
},
|
|
1452
|
+
toProto(message: ValAddresses): Uint8Array {
|
|
1453
|
+
return ValAddresses.encode(message).finish();
|
|
1454
|
+
},
|
|
1455
|
+
toProtoMsg(message: ValAddresses): ValAddressesProtoMsg {
|
|
1456
|
+
return {
|
|
1457
|
+
typeUrl: "/cosmos.staking.v1beta1.ValAddresses",
|
|
1458
|
+
value: ValAddresses.encode(message).finish()
|
|
1459
|
+
};
|
|
1076
1460
|
}
|
|
1077
|
-
|
|
1078
1461
|
};
|
|
1079
|
-
|
|
1080
1462
|
function createBaseDVPair(): DVPair {
|
|
1081
1463
|
return {
|
|
1082
1464
|
delegatorAddress: "",
|
|
1083
1465
|
validatorAddress: ""
|
|
1084
1466
|
};
|
|
1085
1467
|
}
|
|
1086
|
-
|
|
1087
1468
|
export const DVPair = {
|
|
1088
|
-
|
|
1469
|
+
typeUrl: "/cosmos.staking.v1beta1.DVPair",
|
|
1470
|
+
encode(message: DVPair, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1089
1471
|
if (message.delegatorAddress !== "") {
|
|
1090
1472
|
writer.uint32(10).string(message.delegatorAddress);
|
|
1091
1473
|
}
|
|
1092
|
-
|
|
1093
1474
|
if (message.validatorAddress !== "") {
|
|
1094
1475
|
writer.uint32(18).string(message.validatorAddress);
|
|
1095
1476
|
}
|
|
1096
|
-
|
|
1097
1477
|
return writer;
|
|
1098
1478
|
},
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1479
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DVPair {
|
|
1480
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1102
1481
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1103
1482
|
const message = createBaseDVPair();
|
|
1104
|
-
|
|
1105
1483
|
while (reader.pos < end) {
|
|
1106
1484
|
const tag = reader.uint32();
|
|
1107
|
-
|
|
1108
1485
|
switch (tag >>> 3) {
|
|
1109
1486
|
case 1:
|
|
1110
1487
|
message.delegatorAddress = reader.string();
|
|
1111
1488
|
break;
|
|
1112
|
-
|
|
1113
1489
|
case 2:
|
|
1114
1490
|
message.validatorAddress = reader.string();
|
|
1115
1491
|
break;
|
|
1116
|
-
|
|
1117
1492
|
default:
|
|
1118
1493
|
reader.skipType(tag & 7);
|
|
1119
1494
|
break;
|
|
1120
1495
|
}
|
|
1121
1496
|
}
|
|
1122
|
-
|
|
1123
1497
|
return message;
|
|
1124
1498
|
},
|
|
1125
|
-
|
|
1126
|
-
fromPartial(object: DeepPartial<DVPair>): DVPair {
|
|
1499
|
+
fromPartial(object: Partial<DVPair>): DVPair {
|
|
1127
1500
|
const message = createBaseDVPair();
|
|
1128
1501
|
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
1129
1502
|
message.validatorAddress = object.validatorAddress ?? "";
|
|
1130
1503
|
return message;
|
|
1504
|
+
},
|
|
1505
|
+
fromAmino(object: DVPairAmino): DVPair {
|
|
1506
|
+
const message = createBaseDVPair();
|
|
1507
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
1508
|
+
message.delegatorAddress = object.delegator_address;
|
|
1509
|
+
}
|
|
1510
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
1511
|
+
message.validatorAddress = object.validator_address;
|
|
1512
|
+
}
|
|
1513
|
+
return message;
|
|
1514
|
+
},
|
|
1515
|
+
toAmino(message: DVPair): DVPairAmino {
|
|
1516
|
+
const obj: any = {};
|
|
1517
|
+
obj.delegator_address = message.delegatorAddress;
|
|
1518
|
+
obj.validator_address = message.validatorAddress;
|
|
1519
|
+
return obj;
|
|
1520
|
+
},
|
|
1521
|
+
fromAminoMsg(object: DVPairAminoMsg): DVPair {
|
|
1522
|
+
return DVPair.fromAmino(object.value);
|
|
1523
|
+
},
|
|
1524
|
+
toAminoMsg(message: DVPair): DVPairAminoMsg {
|
|
1525
|
+
return {
|
|
1526
|
+
type: "cosmos-sdk/DVPair",
|
|
1527
|
+
value: DVPair.toAmino(message)
|
|
1528
|
+
};
|
|
1529
|
+
},
|
|
1530
|
+
fromProtoMsg(message: DVPairProtoMsg): DVPair {
|
|
1531
|
+
return DVPair.decode(message.value);
|
|
1532
|
+
},
|
|
1533
|
+
toProto(message: DVPair): Uint8Array {
|
|
1534
|
+
return DVPair.encode(message).finish();
|
|
1535
|
+
},
|
|
1536
|
+
toProtoMsg(message: DVPair): DVPairProtoMsg {
|
|
1537
|
+
return {
|
|
1538
|
+
typeUrl: "/cosmos.staking.v1beta1.DVPair",
|
|
1539
|
+
value: DVPair.encode(message).finish()
|
|
1540
|
+
};
|
|
1131
1541
|
}
|
|
1132
|
-
|
|
1133
1542
|
};
|
|
1134
|
-
|
|
1135
1543
|
function createBaseDVPairs(): DVPairs {
|
|
1136
1544
|
return {
|
|
1137
1545
|
pairs: []
|
|
1138
1546
|
};
|
|
1139
1547
|
}
|
|
1140
|
-
|
|
1141
1548
|
export const DVPairs = {
|
|
1142
|
-
|
|
1549
|
+
typeUrl: "/cosmos.staking.v1beta1.DVPairs",
|
|
1550
|
+
encode(message: DVPairs, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1143
1551
|
for (const v of message.pairs) {
|
|
1144
1552
|
DVPair.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1145
1553
|
}
|
|
1146
|
-
|
|
1147
1554
|
return writer;
|
|
1148
1555
|
},
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1556
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DVPairs {
|
|
1557
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1152
1558
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1153
1559
|
const message = createBaseDVPairs();
|
|
1154
|
-
|
|
1155
1560
|
while (reader.pos < end) {
|
|
1156
1561
|
const tag = reader.uint32();
|
|
1157
|
-
|
|
1158
1562
|
switch (tag >>> 3) {
|
|
1159
1563
|
case 1:
|
|
1160
1564
|
message.pairs.push(DVPair.decode(reader, reader.uint32()));
|
|
1161
1565
|
break;
|
|
1162
|
-
|
|
1163
1566
|
default:
|
|
1164
1567
|
reader.skipType(tag & 7);
|
|
1165
1568
|
break;
|
|
1166
1569
|
}
|
|
1167
1570
|
}
|
|
1168
|
-
|
|
1169
1571
|
return message;
|
|
1170
1572
|
},
|
|
1171
|
-
|
|
1172
|
-
fromPartial(object: DeepPartial<DVPairs>): DVPairs {
|
|
1573
|
+
fromPartial(object: Partial<DVPairs>): DVPairs {
|
|
1173
1574
|
const message = createBaseDVPairs();
|
|
1174
1575
|
message.pairs = object.pairs?.map(e => DVPair.fromPartial(e)) || [];
|
|
1175
1576
|
return message;
|
|
1577
|
+
},
|
|
1578
|
+
fromAmino(object: DVPairsAmino): DVPairs {
|
|
1579
|
+
const message = createBaseDVPairs();
|
|
1580
|
+
message.pairs = object.pairs?.map(e => DVPair.fromAmino(e)) || [];
|
|
1581
|
+
return message;
|
|
1582
|
+
},
|
|
1583
|
+
toAmino(message: DVPairs): DVPairsAmino {
|
|
1584
|
+
const obj: any = {};
|
|
1585
|
+
if (message.pairs) {
|
|
1586
|
+
obj.pairs = message.pairs.map(e => e ? DVPair.toAmino(e) : undefined);
|
|
1587
|
+
} else {
|
|
1588
|
+
obj.pairs = [];
|
|
1589
|
+
}
|
|
1590
|
+
return obj;
|
|
1591
|
+
},
|
|
1592
|
+
fromAminoMsg(object: DVPairsAminoMsg): DVPairs {
|
|
1593
|
+
return DVPairs.fromAmino(object.value);
|
|
1594
|
+
},
|
|
1595
|
+
toAminoMsg(message: DVPairs): DVPairsAminoMsg {
|
|
1596
|
+
return {
|
|
1597
|
+
type: "cosmos-sdk/DVPairs",
|
|
1598
|
+
value: DVPairs.toAmino(message)
|
|
1599
|
+
};
|
|
1600
|
+
},
|
|
1601
|
+
fromProtoMsg(message: DVPairsProtoMsg): DVPairs {
|
|
1602
|
+
return DVPairs.decode(message.value);
|
|
1603
|
+
},
|
|
1604
|
+
toProto(message: DVPairs): Uint8Array {
|
|
1605
|
+
return DVPairs.encode(message).finish();
|
|
1606
|
+
},
|
|
1607
|
+
toProtoMsg(message: DVPairs): DVPairsProtoMsg {
|
|
1608
|
+
return {
|
|
1609
|
+
typeUrl: "/cosmos.staking.v1beta1.DVPairs",
|
|
1610
|
+
value: DVPairs.encode(message).finish()
|
|
1611
|
+
};
|
|
1176
1612
|
}
|
|
1177
|
-
|
|
1178
1613
|
};
|
|
1179
|
-
|
|
1180
1614
|
function createBaseDVVTriplet(): DVVTriplet {
|
|
1181
1615
|
return {
|
|
1182
1616
|
delegatorAddress: "",
|
|
@@ -1184,109 +1618,163 @@ function createBaseDVVTriplet(): DVVTriplet {
|
|
|
1184
1618
|
validatorDstAddress: ""
|
|
1185
1619
|
};
|
|
1186
1620
|
}
|
|
1187
|
-
|
|
1188
1621
|
export const DVVTriplet = {
|
|
1189
|
-
|
|
1622
|
+
typeUrl: "/cosmos.staking.v1beta1.DVVTriplet",
|
|
1623
|
+
encode(message: DVVTriplet, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1190
1624
|
if (message.delegatorAddress !== "") {
|
|
1191
1625
|
writer.uint32(10).string(message.delegatorAddress);
|
|
1192
1626
|
}
|
|
1193
|
-
|
|
1194
1627
|
if (message.validatorSrcAddress !== "") {
|
|
1195
1628
|
writer.uint32(18).string(message.validatorSrcAddress);
|
|
1196
1629
|
}
|
|
1197
|
-
|
|
1198
1630
|
if (message.validatorDstAddress !== "") {
|
|
1199
1631
|
writer.uint32(26).string(message.validatorDstAddress);
|
|
1200
1632
|
}
|
|
1201
|
-
|
|
1202
1633
|
return writer;
|
|
1203
1634
|
},
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1635
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DVVTriplet {
|
|
1636
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1207
1637
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1208
1638
|
const message = createBaseDVVTriplet();
|
|
1209
|
-
|
|
1210
1639
|
while (reader.pos < end) {
|
|
1211
1640
|
const tag = reader.uint32();
|
|
1212
|
-
|
|
1213
1641
|
switch (tag >>> 3) {
|
|
1214
1642
|
case 1:
|
|
1215
1643
|
message.delegatorAddress = reader.string();
|
|
1216
1644
|
break;
|
|
1217
|
-
|
|
1218
1645
|
case 2:
|
|
1219
1646
|
message.validatorSrcAddress = reader.string();
|
|
1220
1647
|
break;
|
|
1221
|
-
|
|
1222
1648
|
case 3:
|
|
1223
1649
|
message.validatorDstAddress = reader.string();
|
|
1224
1650
|
break;
|
|
1225
|
-
|
|
1226
1651
|
default:
|
|
1227
1652
|
reader.skipType(tag & 7);
|
|
1228
1653
|
break;
|
|
1229
1654
|
}
|
|
1230
1655
|
}
|
|
1231
|
-
|
|
1232
1656
|
return message;
|
|
1233
1657
|
},
|
|
1234
|
-
|
|
1235
|
-
fromPartial(object: DeepPartial<DVVTriplet>): DVVTriplet {
|
|
1658
|
+
fromPartial(object: Partial<DVVTriplet>): DVVTriplet {
|
|
1236
1659
|
const message = createBaseDVVTriplet();
|
|
1237
1660
|
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
1238
1661
|
message.validatorSrcAddress = object.validatorSrcAddress ?? "";
|
|
1239
1662
|
message.validatorDstAddress = object.validatorDstAddress ?? "";
|
|
1240
1663
|
return message;
|
|
1664
|
+
},
|
|
1665
|
+
fromAmino(object: DVVTripletAmino): DVVTriplet {
|
|
1666
|
+
const message = createBaseDVVTriplet();
|
|
1667
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
1668
|
+
message.delegatorAddress = object.delegator_address;
|
|
1669
|
+
}
|
|
1670
|
+
if (object.validator_src_address !== undefined && object.validator_src_address !== null) {
|
|
1671
|
+
message.validatorSrcAddress = object.validator_src_address;
|
|
1672
|
+
}
|
|
1673
|
+
if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) {
|
|
1674
|
+
message.validatorDstAddress = object.validator_dst_address;
|
|
1675
|
+
}
|
|
1676
|
+
return message;
|
|
1677
|
+
},
|
|
1678
|
+
toAmino(message: DVVTriplet): DVVTripletAmino {
|
|
1679
|
+
const obj: any = {};
|
|
1680
|
+
obj.delegator_address = message.delegatorAddress;
|
|
1681
|
+
obj.validator_src_address = message.validatorSrcAddress;
|
|
1682
|
+
obj.validator_dst_address = message.validatorDstAddress;
|
|
1683
|
+
return obj;
|
|
1684
|
+
},
|
|
1685
|
+
fromAminoMsg(object: DVVTripletAminoMsg): DVVTriplet {
|
|
1686
|
+
return DVVTriplet.fromAmino(object.value);
|
|
1687
|
+
},
|
|
1688
|
+
toAminoMsg(message: DVVTriplet): DVVTripletAminoMsg {
|
|
1689
|
+
return {
|
|
1690
|
+
type: "cosmos-sdk/DVVTriplet",
|
|
1691
|
+
value: DVVTriplet.toAmino(message)
|
|
1692
|
+
};
|
|
1693
|
+
},
|
|
1694
|
+
fromProtoMsg(message: DVVTripletProtoMsg): DVVTriplet {
|
|
1695
|
+
return DVVTriplet.decode(message.value);
|
|
1696
|
+
},
|
|
1697
|
+
toProto(message: DVVTriplet): Uint8Array {
|
|
1698
|
+
return DVVTriplet.encode(message).finish();
|
|
1699
|
+
},
|
|
1700
|
+
toProtoMsg(message: DVVTriplet): DVVTripletProtoMsg {
|
|
1701
|
+
return {
|
|
1702
|
+
typeUrl: "/cosmos.staking.v1beta1.DVVTriplet",
|
|
1703
|
+
value: DVVTriplet.encode(message).finish()
|
|
1704
|
+
};
|
|
1241
1705
|
}
|
|
1242
|
-
|
|
1243
1706
|
};
|
|
1244
|
-
|
|
1245
1707
|
function createBaseDVVTriplets(): DVVTriplets {
|
|
1246
1708
|
return {
|
|
1247
1709
|
triplets: []
|
|
1248
1710
|
};
|
|
1249
1711
|
}
|
|
1250
|
-
|
|
1251
1712
|
export const DVVTriplets = {
|
|
1252
|
-
|
|
1713
|
+
typeUrl: "/cosmos.staking.v1beta1.DVVTriplets",
|
|
1714
|
+
encode(message: DVVTriplets, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1253
1715
|
for (const v of message.triplets) {
|
|
1254
1716
|
DVVTriplet.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1255
1717
|
}
|
|
1256
|
-
|
|
1257
1718
|
return writer;
|
|
1258
1719
|
},
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1720
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DVVTriplets {
|
|
1721
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1262
1722
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1263
1723
|
const message = createBaseDVVTriplets();
|
|
1264
|
-
|
|
1265
1724
|
while (reader.pos < end) {
|
|
1266
1725
|
const tag = reader.uint32();
|
|
1267
|
-
|
|
1268
1726
|
switch (tag >>> 3) {
|
|
1269
1727
|
case 1:
|
|
1270
1728
|
message.triplets.push(DVVTriplet.decode(reader, reader.uint32()));
|
|
1271
1729
|
break;
|
|
1272
|
-
|
|
1273
1730
|
default:
|
|
1274
1731
|
reader.skipType(tag & 7);
|
|
1275
1732
|
break;
|
|
1276
1733
|
}
|
|
1277
1734
|
}
|
|
1278
|
-
|
|
1279
1735
|
return message;
|
|
1280
1736
|
},
|
|
1281
|
-
|
|
1282
|
-
fromPartial(object: DeepPartial<DVVTriplets>): DVVTriplets {
|
|
1737
|
+
fromPartial(object: Partial<DVVTriplets>): DVVTriplets {
|
|
1283
1738
|
const message = createBaseDVVTriplets();
|
|
1284
1739
|
message.triplets = object.triplets?.map(e => DVVTriplet.fromPartial(e)) || [];
|
|
1285
1740
|
return message;
|
|
1741
|
+
},
|
|
1742
|
+
fromAmino(object: DVVTripletsAmino): DVVTriplets {
|
|
1743
|
+
const message = createBaseDVVTriplets();
|
|
1744
|
+
message.triplets = object.triplets?.map(e => DVVTriplet.fromAmino(e)) || [];
|
|
1745
|
+
return message;
|
|
1746
|
+
},
|
|
1747
|
+
toAmino(message: DVVTriplets): DVVTripletsAmino {
|
|
1748
|
+
const obj: any = {};
|
|
1749
|
+
if (message.triplets) {
|
|
1750
|
+
obj.triplets = message.triplets.map(e => e ? DVVTriplet.toAmino(e) : undefined);
|
|
1751
|
+
} else {
|
|
1752
|
+
obj.triplets = [];
|
|
1753
|
+
}
|
|
1754
|
+
return obj;
|
|
1755
|
+
},
|
|
1756
|
+
fromAminoMsg(object: DVVTripletsAminoMsg): DVVTriplets {
|
|
1757
|
+
return DVVTriplets.fromAmino(object.value);
|
|
1758
|
+
},
|
|
1759
|
+
toAminoMsg(message: DVVTriplets): DVVTripletsAminoMsg {
|
|
1760
|
+
return {
|
|
1761
|
+
type: "cosmos-sdk/DVVTriplets",
|
|
1762
|
+
value: DVVTriplets.toAmino(message)
|
|
1763
|
+
};
|
|
1764
|
+
},
|
|
1765
|
+
fromProtoMsg(message: DVVTripletsProtoMsg): DVVTriplets {
|
|
1766
|
+
return DVVTriplets.decode(message.value);
|
|
1767
|
+
},
|
|
1768
|
+
toProto(message: DVVTriplets): Uint8Array {
|
|
1769
|
+
return DVVTriplets.encode(message).finish();
|
|
1770
|
+
},
|
|
1771
|
+
toProtoMsg(message: DVVTriplets): DVVTripletsProtoMsg {
|
|
1772
|
+
return {
|
|
1773
|
+
typeUrl: "/cosmos.staking.v1beta1.DVVTriplets",
|
|
1774
|
+
value: DVVTriplets.encode(message).finish()
|
|
1775
|
+
};
|
|
1286
1776
|
}
|
|
1287
|
-
|
|
1288
1777
|
};
|
|
1289
|
-
|
|
1290
1778
|
function createBaseDelegation(): Delegation {
|
|
1291
1779
|
return {
|
|
1292
1780
|
delegatorAddress: "",
|
|
@@ -1294,64 +1782,92 @@ function createBaseDelegation(): Delegation {
|
|
|
1294
1782
|
shares: ""
|
|
1295
1783
|
};
|
|
1296
1784
|
}
|
|
1297
|
-
|
|
1298
1785
|
export const Delegation = {
|
|
1299
|
-
|
|
1786
|
+
typeUrl: "/cosmos.staking.v1beta1.Delegation",
|
|
1787
|
+
encode(message: Delegation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1300
1788
|
if (message.delegatorAddress !== "") {
|
|
1301
1789
|
writer.uint32(10).string(message.delegatorAddress);
|
|
1302
1790
|
}
|
|
1303
|
-
|
|
1304
1791
|
if (message.validatorAddress !== "") {
|
|
1305
1792
|
writer.uint32(18).string(message.validatorAddress);
|
|
1306
1793
|
}
|
|
1307
|
-
|
|
1308
1794
|
if (message.shares !== "") {
|
|
1309
|
-
writer.uint32(26).string(message.shares);
|
|
1795
|
+
writer.uint32(26).string(Decimal.fromUserInput(message.shares, 18).atomics);
|
|
1310
1796
|
}
|
|
1311
|
-
|
|
1312
1797
|
return writer;
|
|
1313
1798
|
},
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1799
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Delegation {
|
|
1800
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1317
1801
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1318
1802
|
const message = createBaseDelegation();
|
|
1319
|
-
|
|
1320
1803
|
while (reader.pos < end) {
|
|
1321
1804
|
const tag = reader.uint32();
|
|
1322
|
-
|
|
1323
1805
|
switch (tag >>> 3) {
|
|
1324
1806
|
case 1:
|
|
1325
1807
|
message.delegatorAddress = reader.string();
|
|
1326
1808
|
break;
|
|
1327
|
-
|
|
1328
1809
|
case 2:
|
|
1329
1810
|
message.validatorAddress = reader.string();
|
|
1330
1811
|
break;
|
|
1331
|
-
|
|
1332
1812
|
case 3:
|
|
1333
|
-
message.shares = reader.string();
|
|
1813
|
+
message.shares = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1334
1814
|
break;
|
|
1335
|
-
|
|
1336
1815
|
default:
|
|
1337
1816
|
reader.skipType(tag & 7);
|
|
1338
1817
|
break;
|
|
1339
1818
|
}
|
|
1340
1819
|
}
|
|
1341
|
-
|
|
1342
1820
|
return message;
|
|
1343
1821
|
},
|
|
1344
|
-
|
|
1345
|
-
fromPartial(object: DeepPartial<Delegation>): Delegation {
|
|
1822
|
+
fromPartial(object: Partial<Delegation>): Delegation {
|
|
1346
1823
|
const message = createBaseDelegation();
|
|
1347
1824
|
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
1348
1825
|
message.validatorAddress = object.validatorAddress ?? "";
|
|
1349
1826
|
message.shares = object.shares ?? "";
|
|
1350
1827
|
return message;
|
|
1828
|
+
},
|
|
1829
|
+
fromAmino(object: DelegationAmino): Delegation {
|
|
1830
|
+
const message = createBaseDelegation();
|
|
1831
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
1832
|
+
message.delegatorAddress = object.delegator_address;
|
|
1833
|
+
}
|
|
1834
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
1835
|
+
message.validatorAddress = object.validator_address;
|
|
1836
|
+
}
|
|
1837
|
+
if (object.shares !== undefined && object.shares !== null) {
|
|
1838
|
+
message.shares = object.shares;
|
|
1839
|
+
}
|
|
1840
|
+
return message;
|
|
1841
|
+
},
|
|
1842
|
+
toAmino(message: Delegation): DelegationAmino {
|
|
1843
|
+
const obj: any = {};
|
|
1844
|
+
obj.delegator_address = message.delegatorAddress;
|
|
1845
|
+
obj.validator_address = message.validatorAddress;
|
|
1846
|
+
obj.shares = message.shares;
|
|
1847
|
+
return obj;
|
|
1848
|
+
},
|
|
1849
|
+
fromAminoMsg(object: DelegationAminoMsg): Delegation {
|
|
1850
|
+
return Delegation.fromAmino(object.value);
|
|
1851
|
+
},
|
|
1852
|
+
toAminoMsg(message: Delegation): DelegationAminoMsg {
|
|
1853
|
+
return {
|
|
1854
|
+
type: "cosmos-sdk/Delegation",
|
|
1855
|
+
value: Delegation.toAmino(message)
|
|
1856
|
+
};
|
|
1857
|
+
},
|
|
1858
|
+
fromProtoMsg(message: DelegationProtoMsg): Delegation {
|
|
1859
|
+
return Delegation.decode(message.value);
|
|
1860
|
+
},
|
|
1861
|
+
toProto(message: Delegation): Uint8Array {
|
|
1862
|
+
return Delegation.encode(message).finish();
|
|
1863
|
+
},
|
|
1864
|
+
toProtoMsg(message: Delegation): DelegationProtoMsg {
|
|
1865
|
+
return {
|
|
1866
|
+
typeUrl: "/cosmos.staking.v1beta1.Delegation",
|
|
1867
|
+
value: Delegation.encode(message).finish()
|
|
1868
|
+
};
|
|
1351
1869
|
}
|
|
1352
|
-
|
|
1353
1870
|
};
|
|
1354
|
-
|
|
1355
1871
|
function createBaseUnbondingDelegation(): UnbondingDelegation {
|
|
1356
1872
|
return {
|
|
1357
1873
|
delegatorAddress: "",
|
|
@@ -1359,214 +1875,304 @@ function createBaseUnbondingDelegation(): UnbondingDelegation {
|
|
|
1359
1875
|
entries: []
|
|
1360
1876
|
};
|
|
1361
1877
|
}
|
|
1362
|
-
|
|
1363
1878
|
export const UnbondingDelegation = {
|
|
1364
|
-
|
|
1879
|
+
typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation",
|
|
1880
|
+
encode(message: UnbondingDelegation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1365
1881
|
if (message.delegatorAddress !== "") {
|
|
1366
1882
|
writer.uint32(10).string(message.delegatorAddress);
|
|
1367
1883
|
}
|
|
1368
|
-
|
|
1369
1884
|
if (message.validatorAddress !== "") {
|
|
1370
1885
|
writer.uint32(18).string(message.validatorAddress);
|
|
1371
1886
|
}
|
|
1372
|
-
|
|
1373
1887
|
for (const v of message.entries) {
|
|
1374
1888
|
UnbondingDelegationEntry.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
1375
1889
|
}
|
|
1376
|
-
|
|
1377
1890
|
return writer;
|
|
1378
1891
|
},
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1892
|
+
decode(input: BinaryReader | Uint8Array, length?: number): UnbondingDelegation {
|
|
1893
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1382
1894
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1383
1895
|
const message = createBaseUnbondingDelegation();
|
|
1384
|
-
|
|
1385
1896
|
while (reader.pos < end) {
|
|
1386
1897
|
const tag = reader.uint32();
|
|
1387
|
-
|
|
1388
1898
|
switch (tag >>> 3) {
|
|
1389
1899
|
case 1:
|
|
1390
1900
|
message.delegatorAddress = reader.string();
|
|
1391
1901
|
break;
|
|
1392
|
-
|
|
1393
1902
|
case 2:
|
|
1394
1903
|
message.validatorAddress = reader.string();
|
|
1395
1904
|
break;
|
|
1396
|
-
|
|
1397
1905
|
case 3:
|
|
1398
1906
|
message.entries.push(UnbondingDelegationEntry.decode(reader, reader.uint32()));
|
|
1399
1907
|
break;
|
|
1400
|
-
|
|
1401
1908
|
default:
|
|
1402
1909
|
reader.skipType(tag & 7);
|
|
1403
1910
|
break;
|
|
1404
1911
|
}
|
|
1405
1912
|
}
|
|
1406
|
-
|
|
1407
1913
|
return message;
|
|
1408
1914
|
},
|
|
1409
|
-
|
|
1410
|
-
fromPartial(object: DeepPartial<UnbondingDelegation>): UnbondingDelegation {
|
|
1915
|
+
fromPartial(object: Partial<UnbondingDelegation>): UnbondingDelegation {
|
|
1411
1916
|
const message = createBaseUnbondingDelegation();
|
|
1412
1917
|
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
1413
1918
|
message.validatorAddress = object.validatorAddress ?? "";
|
|
1414
1919
|
message.entries = object.entries?.map(e => UnbondingDelegationEntry.fromPartial(e)) || [];
|
|
1415
1920
|
return message;
|
|
1921
|
+
},
|
|
1922
|
+
fromAmino(object: UnbondingDelegationAmino): UnbondingDelegation {
|
|
1923
|
+
const message = createBaseUnbondingDelegation();
|
|
1924
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
1925
|
+
message.delegatorAddress = object.delegator_address;
|
|
1926
|
+
}
|
|
1927
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
1928
|
+
message.validatorAddress = object.validator_address;
|
|
1929
|
+
}
|
|
1930
|
+
message.entries = object.entries?.map(e => UnbondingDelegationEntry.fromAmino(e)) || [];
|
|
1931
|
+
return message;
|
|
1932
|
+
},
|
|
1933
|
+
toAmino(message: UnbondingDelegation): UnbondingDelegationAmino {
|
|
1934
|
+
const obj: any = {};
|
|
1935
|
+
obj.delegator_address = message.delegatorAddress;
|
|
1936
|
+
obj.validator_address = message.validatorAddress;
|
|
1937
|
+
if (message.entries) {
|
|
1938
|
+
obj.entries = message.entries.map(e => e ? UnbondingDelegationEntry.toAmino(e) : undefined);
|
|
1939
|
+
} else {
|
|
1940
|
+
obj.entries = [];
|
|
1941
|
+
}
|
|
1942
|
+
return obj;
|
|
1943
|
+
},
|
|
1944
|
+
fromAminoMsg(object: UnbondingDelegationAminoMsg): UnbondingDelegation {
|
|
1945
|
+
return UnbondingDelegation.fromAmino(object.value);
|
|
1946
|
+
},
|
|
1947
|
+
toAminoMsg(message: UnbondingDelegation): UnbondingDelegationAminoMsg {
|
|
1948
|
+
return {
|
|
1949
|
+
type: "cosmos-sdk/UnbondingDelegation",
|
|
1950
|
+
value: UnbondingDelegation.toAmino(message)
|
|
1951
|
+
};
|
|
1952
|
+
},
|
|
1953
|
+
fromProtoMsg(message: UnbondingDelegationProtoMsg): UnbondingDelegation {
|
|
1954
|
+
return UnbondingDelegation.decode(message.value);
|
|
1955
|
+
},
|
|
1956
|
+
toProto(message: UnbondingDelegation): Uint8Array {
|
|
1957
|
+
return UnbondingDelegation.encode(message).finish();
|
|
1958
|
+
},
|
|
1959
|
+
toProtoMsg(message: UnbondingDelegation): UnbondingDelegationProtoMsg {
|
|
1960
|
+
return {
|
|
1961
|
+
typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation",
|
|
1962
|
+
value: UnbondingDelegation.encode(message).finish()
|
|
1963
|
+
};
|
|
1416
1964
|
}
|
|
1417
|
-
|
|
1418
1965
|
};
|
|
1419
|
-
|
|
1420
1966
|
function createBaseUnbondingDelegationEntry(): UnbondingDelegationEntry {
|
|
1421
1967
|
return {
|
|
1422
|
-
creationHeight:
|
|
1423
|
-
completionTime:
|
|
1968
|
+
creationHeight: BigInt(0),
|
|
1969
|
+
completionTime: new Date(),
|
|
1424
1970
|
initialBalance: "",
|
|
1425
1971
|
balance: ""
|
|
1426
1972
|
};
|
|
1427
1973
|
}
|
|
1428
|
-
|
|
1429
1974
|
export const UnbondingDelegationEntry = {
|
|
1430
|
-
|
|
1431
|
-
|
|
1975
|
+
typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry",
|
|
1976
|
+
encode(message: UnbondingDelegationEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1977
|
+
if (message.creationHeight !== BigInt(0)) {
|
|
1432
1978
|
writer.uint32(8).int64(message.creationHeight);
|
|
1433
1979
|
}
|
|
1434
|
-
|
|
1435
1980
|
if (message.completionTime !== undefined) {
|
|
1436
1981
|
Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(18).fork()).ldelim();
|
|
1437
1982
|
}
|
|
1438
|
-
|
|
1439
1983
|
if (message.initialBalance !== "") {
|
|
1440
1984
|
writer.uint32(26).string(message.initialBalance);
|
|
1441
1985
|
}
|
|
1442
|
-
|
|
1443
1986
|
if (message.balance !== "") {
|
|
1444
1987
|
writer.uint32(34).string(message.balance);
|
|
1445
1988
|
}
|
|
1446
|
-
|
|
1447
1989
|
return writer;
|
|
1448
1990
|
},
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1991
|
+
decode(input: BinaryReader | Uint8Array, length?: number): UnbondingDelegationEntry {
|
|
1992
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1452
1993
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1453
1994
|
const message = createBaseUnbondingDelegationEntry();
|
|
1454
|
-
|
|
1455
1995
|
while (reader.pos < end) {
|
|
1456
1996
|
const tag = reader.uint32();
|
|
1457
|
-
|
|
1458
1997
|
switch (tag >>> 3) {
|
|
1459
1998
|
case 1:
|
|
1460
|
-
message.creationHeight =
|
|
1999
|
+
message.creationHeight = reader.int64();
|
|
1461
2000
|
break;
|
|
1462
|
-
|
|
1463
2001
|
case 2:
|
|
1464
2002
|
message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1465
2003
|
break;
|
|
1466
|
-
|
|
1467
2004
|
case 3:
|
|
1468
2005
|
message.initialBalance = reader.string();
|
|
1469
2006
|
break;
|
|
1470
|
-
|
|
1471
2007
|
case 4:
|
|
1472
2008
|
message.balance = reader.string();
|
|
1473
2009
|
break;
|
|
1474
|
-
|
|
1475
2010
|
default:
|
|
1476
2011
|
reader.skipType(tag & 7);
|
|
1477
2012
|
break;
|
|
1478
2013
|
}
|
|
1479
2014
|
}
|
|
1480
|
-
|
|
1481
2015
|
return message;
|
|
1482
2016
|
},
|
|
1483
|
-
|
|
1484
|
-
fromPartial(object: DeepPartial<UnbondingDelegationEntry>): UnbondingDelegationEntry {
|
|
2017
|
+
fromPartial(object: Partial<UnbondingDelegationEntry>): UnbondingDelegationEntry {
|
|
1485
2018
|
const message = createBaseUnbondingDelegationEntry();
|
|
1486
|
-
message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ?
|
|
2019
|
+
message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0);
|
|
1487
2020
|
message.completionTime = object.completionTime ?? undefined;
|
|
1488
2021
|
message.initialBalance = object.initialBalance ?? "";
|
|
1489
2022
|
message.balance = object.balance ?? "";
|
|
1490
2023
|
return message;
|
|
2024
|
+
},
|
|
2025
|
+
fromAmino(object: UnbondingDelegationEntryAmino): UnbondingDelegationEntry {
|
|
2026
|
+
const message = createBaseUnbondingDelegationEntry();
|
|
2027
|
+
if (object.creation_height !== undefined && object.creation_height !== null) {
|
|
2028
|
+
message.creationHeight = BigInt(object.creation_height);
|
|
2029
|
+
}
|
|
2030
|
+
if (object.completion_time !== undefined && object.completion_time !== null) {
|
|
2031
|
+
message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time));
|
|
2032
|
+
}
|
|
2033
|
+
if (object.initial_balance !== undefined && object.initial_balance !== null) {
|
|
2034
|
+
message.initialBalance = object.initial_balance;
|
|
2035
|
+
}
|
|
2036
|
+
if (object.balance !== undefined && object.balance !== null) {
|
|
2037
|
+
message.balance = object.balance;
|
|
2038
|
+
}
|
|
2039
|
+
return message;
|
|
2040
|
+
},
|
|
2041
|
+
toAmino(message: UnbondingDelegationEntry): UnbondingDelegationEntryAmino {
|
|
2042
|
+
const obj: any = {};
|
|
2043
|
+
obj.creation_height = message.creationHeight ? message.creationHeight.toString() : undefined;
|
|
2044
|
+
obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : undefined;
|
|
2045
|
+
obj.initial_balance = message.initialBalance;
|
|
2046
|
+
obj.balance = message.balance;
|
|
2047
|
+
return obj;
|
|
2048
|
+
},
|
|
2049
|
+
fromAminoMsg(object: UnbondingDelegationEntryAminoMsg): UnbondingDelegationEntry {
|
|
2050
|
+
return UnbondingDelegationEntry.fromAmino(object.value);
|
|
2051
|
+
},
|
|
2052
|
+
toAminoMsg(message: UnbondingDelegationEntry): UnbondingDelegationEntryAminoMsg {
|
|
2053
|
+
return {
|
|
2054
|
+
type: "cosmos-sdk/UnbondingDelegationEntry",
|
|
2055
|
+
value: UnbondingDelegationEntry.toAmino(message)
|
|
2056
|
+
};
|
|
2057
|
+
},
|
|
2058
|
+
fromProtoMsg(message: UnbondingDelegationEntryProtoMsg): UnbondingDelegationEntry {
|
|
2059
|
+
return UnbondingDelegationEntry.decode(message.value);
|
|
2060
|
+
},
|
|
2061
|
+
toProto(message: UnbondingDelegationEntry): Uint8Array {
|
|
2062
|
+
return UnbondingDelegationEntry.encode(message).finish();
|
|
2063
|
+
},
|
|
2064
|
+
toProtoMsg(message: UnbondingDelegationEntry): UnbondingDelegationEntryProtoMsg {
|
|
2065
|
+
return {
|
|
2066
|
+
typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry",
|
|
2067
|
+
value: UnbondingDelegationEntry.encode(message).finish()
|
|
2068
|
+
};
|
|
1491
2069
|
}
|
|
1492
|
-
|
|
1493
2070
|
};
|
|
1494
|
-
|
|
1495
2071
|
function createBaseRedelegationEntry(): RedelegationEntry {
|
|
1496
2072
|
return {
|
|
1497
|
-
creationHeight:
|
|
1498
|
-
completionTime:
|
|
2073
|
+
creationHeight: BigInt(0),
|
|
2074
|
+
completionTime: new Date(),
|
|
1499
2075
|
initialBalance: "",
|
|
1500
2076
|
sharesDst: ""
|
|
1501
2077
|
};
|
|
1502
2078
|
}
|
|
1503
|
-
|
|
1504
2079
|
export const RedelegationEntry = {
|
|
1505
|
-
|
|
1506
|
-
|
|
2080
|
+
typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry",
|
|
2081
|
+
encode(message: RedelegationEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2082
|
+
if (message.creationHeight !== BigInt(0)) {
|
|
1507
2083
|
writer.uint32(8).int64(message.creationHeight);
|
|
1508
2084
|
}
|
|
1509
|
-
|
|
1510
2085
|
if (message.completionTime !== undefined) {
|
|
1511
2086
|
Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(18).fork()).ldelim();
|
|
1512
2087
|
}
|
|
1513
|
-
|
|
1514
2088
|
if (message.initialBalance !== "") {
|
|
1515
2089
|
writer.uint32(26).string(message.initialBalance);
|
|
1516
2090
|
}
|
|
1517
|
-
|
|
1518
2091
|
if (message.sharesDst !== "") {
|
|
1519
|
-
writer.uint32(34).string(message.sharesDst);
|
|
2092
|
+
writer.uint32(34).string(Decimal.fromUserInput(message.sharesDst, 18).atomics);
|
|
1520
2093
|
}
|
|
1521
|
-
|
|
1522
2094
|
return writer;
|
|
1523
2095
|
},
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2096
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RedelegationEntry {
|
|
2097
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1527
2098
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1528
2099
|
const message = createBaseRedelegationEntry();
|
|
1529
|
-
|
|
1530
2100
|
while (reader.pos < end) {
|
|
1531
2101
|
const tag = reader.uint32();
|
|
1532
|
-
|
|
1533
2102
|
switch (tag >>> 3) {
|
|
1534
2103
|
case 1:
|
|
1535
|
-
message.creationHeight =
|
|
2104
|
+
message.creationHeight = reader.int64();
|
|
1536
2105
|
break;
|
|
1537
|
-
|
|
1538
2106
|
case 2:
|
|
1539
2107
|
message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1540
2108
|
break;
|
|
1541
|
-
|
|
1542
2109
|
case 3:
|
|
1543
2110
|
message.initialBalance = reader.string();
|
|
1544
2111
|
break;
|
|
1545
|
-
|
|
1546
2112
|
case 4:
|
|
1547
|
-
message.sharesDst = reader.string();
|
|
2113
|
+
message.sharesDst = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1548
2114
|
break;
|
|
1549
|
-
|
|
1550
2115
|
default:
|
|
1551
2116
|
reader.skipType(tag & 7);
|
|
1552
2117
|
break;
|
|
1553
2118
|
}
|
|
1554
2119
|
}
|
|
1555
|
-
|
|
1556
2120
|
return message;
|
|
1557
2121
|
},
|
|
1558
|
-
|
|
1559
|
-
fromPartial(object: DeepPartial<RedelegationEntry>): RedelegationEntry {
|
|
2122
|
+
fromPartial(object: Partial<RedelegationEntry>): RedelegationEntry {
|
|
1560
2123
|
const message = createBaseRedelegationEntry();
|
|
1561
|
-
message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ?
|
|
2124
|
+
message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0);
|
|
1562
2125
|
message.completionTime = object.completionTime ?? undefined;
|
|
1563
2126
|
message.initialBalance = object.initialBalance ?? "";
|
|
1564
2127
|
message.sharesDst = object.sharesDst ?? "";
|
|
1565
2128
|
return message;
|
|
2129
|
+
},
|
|
2130
|
+
fromAmino(object: RedelegationEntryAmino): RedelegationEntry {
|
|
2131
|
+
const message = createBaseRedelegationEntry();
|
|
2132
|
+
if (object.creation_height !== undefined && object.creation_height !== null) {
|
|
2133
|
+
message.creationHeight = BigInt(object.creation_height);
|
|
2134
|
+
}
|
|
2135
|
+
if (object.completion_time !== undefined && object.completion_time !== null) {
|
|
2136
|
+
message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time));
|
|
2137
|
+
}
|
|
2138
|
+
if (object.initial_balance !== undefined && object.initial_balance !== null) {
|
|
2139
|
+
message.initialBalance = object.initial_balance;
|
|
2140
|
+
}
|
|
2141
|
+
if (object.shares_dst !== undefined && object.shares_dst !== null) {
|
|
2142
|
+
message.sharesDst = object.shares_dst;
|
|
2143
|
+
}
|
|
2144
|
+
return message;
|
|
2145
|
+
},
|
|
2146
|
+
toAmino(message: RedelegationEntry): RedelegationEntryAmino {
|
|
2147
|
+
const obj: any = {};
|
|
2148
|
+
obj.creation_height = message.creationHeight ? message.creationHeight.toString() : undefined;
|
|
2149
|
+
obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : undefined;
|
|
2150
|
+
obj.initial_balance = message.initialBalance;
|
|
2151
|
+
obj.shares_dst = message.sharesDst;
|
|
2152
|
+
return obj;
|
|
2153
|
+
},
|
|
2154
|
+
fromAminoMsg(object: RedelegationEntryAminoMsg): RedelegationEntry {
|
|
2155
|
+
return RedelegationEntry.fromAmino(object.value);
|
|
2156
|
+
},
|
|
2157
|
+
toAminoMsg(message: RedelegationEntry): RedelegationEntryAminoMsg {
|
|
2158
|
+
return {
|
|
2159
|
+
type: "cosmos-sdk/RedelegationEntry",
|
|
2160
|
+
value: RedelegationEntry.toAmino(message)
|
|
2161
|
+
};
|
|
2162
|
+
},
|
|
2163
|
+
fromProtoMsg(message: RedelegationEntryProtoMsg): RedelegationEntry {
|
|
2164
|
+
return RedelegationEntry.decode(message.value);
|
|
2165
|
+
},
|
|
2166
|
+
toProto(message: RedelegationEntry): Uint8Array {
|
|
2167
|
+
return RedelegationEntry.encode(message).finish();
|
|
2168
|
+
},
|
|
2169
|
+
toProtoMsg(message: RedelegationEntry): RedelegationEntryProtoMsg {
|
|
2170
|
+
return {
|
|
2171
|
+
typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry",
|
|
2172
|
+
value: RedelegationEntry.encode(message).finish()
|
|
2173
|
+
};
|
|
1566
2174
|
}
|
|
1567
|
-
|
|
1568
2175
|
};
|
|
1569
|
-
|
|
1570
2176
|
function createBaseRedelegation(): Redelegation {
|
|
1571
2177
|
return {
|
|
1572
2178
|
delegatorAddress: "",
|
|
@@ -1575,76 +2181,108 @@ function createBaseRedelegation(): Redelegation {
|
|
|
1575
2181
|
entries: []
|
|
1576
2182
|
};
|
|
1577
2183
|
}
|
|
1578
|
-
|
|
1579
2184
|
export const Redelegation = {
|
|
1580
|
-
|
|
2185
|
+
typeUrl: "/cosmos.staking.v1beta1.Redelegation",
|
|
2186
|
+
encode(message: Redelegation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1581
2187
|
if (message.delegatorAddress !== "") {
|
|
1582
2188
|
writer.uint32(10).string(message.delegatorAddress);
|
|
1583
2189
|
}
|
|
1584
|
-
|
|
1585
2190
|
if (message.validatorSrcAddress !== "") {
|
|
1586
2191
|
writer.uint32(18).string(message.validatorSrcAddress);
|
|
1587
2192
|
}
|
|
1588
|
-
|
|
1589
2193
|
if (message.validatorDstAddress !== "") {
|
|
1590
2194
|
writer.uint32(26).string(message.validatorDstAddress);
|
|
1591
2195
|
}
|
|
1592
|
-
|
|
1593
2196
|
for (const v of message.entries) {
|
|
1594
2197
|
RedelegationEntry.encode(v!, writer.uint32(34).fork()).ldelim();
|
|
1595
2198
|
}
|
|
1596
|
-
|
|
1597
2199
|
return writer;
|
|
1598
2200
|
},
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2201
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Redelegation {
|
|
2202
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1602
2203
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1603
2204
|
const message = createBaseRedelegation();
|
|
1604
|
-
|
|
1605
2205
|
while (reader.pos < end) {
|
|
1606
2206
|
const tag = reader.uint32();
|
|
1607
|
-
|
|
1608
2207
|
switch (tag >>> 3) {
|
|
1609
2208
|
case 1:
|
|
1610
2209
|
message.delegatorAddress = reader.string();
|
|
1611
2210
|
break;
|
|
1612
|
-
|
|
1613
2211
|
case 2:
|
|
1614
2212
|
message.validatorSrcAddress = reader.string();
|
|
1615
2213
|
break;
|
|
1616
|
-
|
|
1617
2214
|
case 3:
|
|
1618
2215
|
message.validatorDstAddress = reader.string();
|
|
1619
2216
|
break;
|
|
1620
|
-
|
|
1621
2217
|
case 4:
|
|
1622
2218
|
message.entries.push(RedelegationEntry.decode(reader, reader.uint32()));
|
|
1623
2219
|
break;
|
|
1624
|
-
|
|
1625
2220
|
default:
|
|
1626
2221
|
reader.skipType(tag & 7);
|
|
1627
2222
|
break;
|
|
1628
2223
|
}
|
|
1629
2224
|
}
|
|
1630
|
-
|
|
1631
2225
|
return message;
|
|
1632
2226
|
},
|
|
1633
|
-
|
|
1634
|
-
fromPartial(object: DeepPartial<Redelegation>): Redelegation {
|
|
2227
|
+
fromPartial(object: Partial<Redelegation>): Redelegation {
|
|
1635
2228
|
const message = createBaseRedelegation();
|
|
1636
2229
|
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
1637
2230
|
message.validatorSrcAddress = object.validatorSrcAddress ?? "";
|
|
1638
2231
|
message.validatorDstAddress = object.validatorDstAddress ?? "";
|
|
1639
2232
|
message.entries = object.entries?.map(e => RedelegationEntry.fromPartial(e)) || [];
|
|
1640
2233
|
return message;
|
|
2234
|
+
},
|
|
2235
|
+
fromAmino(object: RedelegationAmino): Redelegation {
|
|
2236
|
+
const message = createBaseRedelegation();
|
|
2237
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
2238
|
+
message.delegatorAddress = object.delegator_address;
|
|
2239
|
+
}
|
|
2240
|
+
if (object.validator_src_address !== undefined && object.validator_src_address !== null) {
|
|
2241
|
+
message.validatorSrcAddress = object.validator_src_address;
|
|
2242
|
+
}
|
|
2243
|
+
if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) {
|
|
2244
|
+
message.validatorDstAddress = object.validator_dst_address;
|
|
2245
|
+
}
|
|
2246
|
+
message.entries = object.entries?.map(e => RedelegationEntry.fromAmino(e)) || [];
|
|
2247
|
+
return message;
|
|
2248
|
+
},
|
|
2249
|
+
toAmino(message: Redelegation): RedelegationAmino {
|
|
2250
|
+
const obj: any = {};
|
|
2251
|
+
obj.delegator_address = message.delegatorAddress;
|
|
2252
|
+
obj.validator_src_address = message.validatorSrcAddress;
|
|
2253
|
+
obj.validator_dst_address = message.validatorDstAddress;
|
|
2254
|
+
if (message.entries) {
|
|
2255
|
+
obj.entries = message.entries.map(e => e ? RedelegationEntry.toAmino(e) : undefined);
|
|
2256
|
+
} else {
|
|
2257
|
+
obj.entries = [];
|
|
2258
|
+
}
|
|
2259
|
+
return obj;
|
|
2260
|
+
},
|
|
2261
|
+
fromAminoMsg(object: RedelegationAminoMsg): Redelegation {
|
|
2262
|
+
return Redelegation.fromAmino(object.value);
|
|
2263
|
+
},
|
|
2264
|
+
toAminoMsg(message: Redelegation): RedelegationAminoMsg {
|
|
2265
|
+
return {
|
|
2266
|
+
type: "cosmos-sdk/Redelegation",
|
|
2267
|
+
value: Redelegation.toAmino(message)
|
|
2268
|
+
};
|
|
2269
|
+
},
|
|
2270
|
+
fromProtoMsg(message: RedelegationProtoMsg): Redelegation {
|
|
2271
|
+
return Redelegation.decode(message.value);
|
|
2272
|
+
},
|
|
2273
|
+
toProto(message: Redelegation): Uint8Array {
|
|
2274
|
+
return Redelegation.encode(message).finish();
|
|
2275
|
+
},
|
|
2276
|
+
toProtoMsg(message: Redelegation): RedelegationProtoMsg {
|
|
2277
|
+
return {
|
|
2278
|
+
typeUrl: "/cosmos.staking.v1beta1.Redelegation",
|
|
2279
|
+
value: Redelegation.encode(message).finish()
|
|
2280
|
+
};
|
|
1641
2281
|
}
|
|
1642
|
-
|
|
1643
2282
|
};
|
|
1644
|
-
|
|
1645
2283
|
function createBaseParams(): Params {
|
|
1646
2284
|
return {
|
|
1647
|
-
unbondingTime:
|
|
2285
|
+
unbondingTime: Duration.fromPartial({}),
|
|
1648
2286
|
maxValidators: 0,
|
|
1649
2287
|
maxEntries: 0,
|
|
1650
2288
|
historicalEntries: 0,
|
|
@@ -1652,79 +2290,62 @@ function createBaseParams(): Params {
|
|
|
1652
2290
|
minCommissionRate: ""
|
|
1653
2291
|
};
|
|
1654
2292
|
}
|
|
1655
|
-
|
|
1656
2293
|
export const Params = {
|
|
1657
|
-
|
|
2294
|
+
typeUrl: "/cosmos.staking.v1beta1.Params",
|
|
2295
|
+
encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1658
2296
|
if (message.unbondingTime !== undefined) {
|
|
1659
2297
|
Duration.encode(message.unbondingTime, writer.uint32(10).fork()).ldelim();
|
|
1660
2298
|
}
|
|
1661
|
-
|
|
1662
2299
|
if (message.maxValidators !== 0) {
|
|
1663
2300
|
writer.uint32(16).uint32(message.maxValidators);
|
|
1664
2301
|
}
|
|
1665
|
-
|
|
1666
2302
|
if (message.maxEntries !== 0) {
|
|
1667
2303
|
writer.uint32(24).uint32(message.maxEntries);
|
|
1668
2304
|
}
|
|
1669
|
-
|
|
1670
2305
|
if (message.historicalEntries !== 0) {
|
|
1671
2306
|
writer.uint32(32).uint32(message.historicalEntries);
|
|
1672
2307
|
}
|
|
1673
|
-
|
|
1674
2308
|
if (message.bondDenom !== "") {
|
|
1675
2309
|
writer.uint32(42).string(message.bondDenom);
|
|
1676
2310
|
}
|
|
1677
|
-
|
|
1678
2311
|
if (message.minCommissionRate !== "") {
|
|
1679
|
-
writer.uint32(50).string(message.minCommissionRate);
|
|
2312
|
+
writer.uint32(50).string(Decimal.fromUserInput(message.minCommissionRate, 18).atomics);
|
|
1680
2313
|
}
|
|
1681
|
-
|
|
1682
2314
|
return writer;
|
|
1683
2315
|
},
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2316
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Params {
|
|
2317
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1687
2318
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1688
2319
|
const message = createBaseParams();
|
|
1689
|
-
|
|
1690
2320
|
while (reader.pos < end) {
|
|
1691
2321
|
const tag = reader.uint32();
|
|
1692
|
-
|
|
1693
2322
|
switch (tag >>> 3) {
|
|
1694
2323
|
case 1:
|
|
1695
2324
|
message.unbondingTime = Duration.decode(reader, reader.uint32());
|
|
1696
2325
|
break;
|
|
1697
|
-
|
|
1698
2326
|
case 2:
|
|
1699
2327
|
message.maxValidators = reader.uint32();
|
|
1700
2328
|
break;
|
|
1701
|
-
|
|
1702
2329
|
case 3:
|
|
1703
2330
|
message.maxEntries = reader.uint32();
|
|
1704
2331
|
break;
|
|
1705
|
-
|
|
1706
2332
|
case 4:
|
|
1707
2333
|
message.historicalEntries = reader.uint32();
|
|
1708
2334
|
break;
|
|
1709
|
-
|
|
1710
2335
|
case 5:
|
|
1711
2336
|
message.bondDenom = reader.string();
|
|
1712
2337
|
break;
|
|
1713
|
-
|
|
1714
2338
|
case 6:
|
|
1715
|
-
message.minCommissionRate = reader.string();
|
|
2339
|
+
message.minCommissionRate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1716
2340
|
break;
|
|
1717
|
-
|
|
1718
2341
|
default:
|
|
1719
2342
|
reader.skipType(tag & 7);
|
|
1720
2343
|
break;
|
|
1721
2344
|
}
|
|
1722
2345
|
}
|
|
1723
|
-
|
|
1724
2346
|
return message;
|
|
1725
2347
|
},
|
|
1726
|
-
|
|
1727
|
-
fromPartial(object: DeepPartial<Params>): Params {
|
|
2348
|
+
fromPartial(object: Partial<Params>): Params {
|
|
1728
2349
|
const message = createBaseParams();
|
|
1729
2350
|
message.unbondingTime = object.unbondingTime !== undefined && object.unbondingTime !== null ? Duration.fromPartial(object.unbondingTime) : undefined;
|
|
1730
2351
|
message.maxValidators = object.maxValidators ?? 0;
|
|
@@ -1733,226 +2354,384 @@ export const Params = {
|
|
|
1733
2354
|
message.bondDenom = object.bondDenom ?? "";
|
|
1734
2355
|
message.minCommissionRate = object.minCommissionRate ?? "";
|
|
1735
2356
|
return message;
|
|
2357
|
+
},
|
|
2358
|
+
fromAmino(object: ParamsAmino): Params {
|
|
2359
|
+
const message = createBaseParams();
|
|
2360
|
+
if (object.unbonding_time !== undefined && object.unbonding_time !== null) {
|
|
2361
|
+
message.unbondingTime = Duration.fromAmino(object.unbonding_time);
|
|
2362
|
+
}
|
|
2363
|
+
if (object.max_validators !== undefined && object.max_validators !== null) {
|
|
2364
|
+
message.maxValidators = object.max_validators;
|
|
2365
|
+
}
|
|
2366
|
+
if (object.max_entries !== undefined && object.max_entries !== null) {
|
|
2367
|
+
message.maxEntries = object.max_entries;
|
|
2368
|
+
}
|
|
2369
|
+
if (object.historical_entries !== undefined && object.historical_entries !== null) {
|
|
2370
|
+
message.historicalEntries = object.historical_entries;
|
|
2371
|
+
}
|
|
2372
|
+
if (object.bond_denom !== undefined && object.bond_denom !== null) {
|
|
2373
|
+
message.bondDenom = object.bond_denom;
|
|
2374
|
+
}
|
|
2375
|
+
if (object.min_commission_rate !== undefined && object.min_commission_rate !== null) {
|
|
2376
|
+
message.minCommissionRate = object.min_commission_rate;
|
|
2377
|
+
}
|
|
2378
|
+
return message;
|
|
2379
|
+
},
|
|
2380
|
+
toAmino(message: Params): ParamsAmino {
|
|
2381
|
+
const obj: any = {};
|
|
2382
|
+
obj.unbonding_time = message.unbondingTime ? Duration.toAmino(message.unbondingTime) : undefined;
|
|
2383
|
+
obj.max_validators = message.maxValidators;
|
|
2384
|
+
obj.max_entries = message.maxEntries;
|
|
2385
|
+
obj.historical_entries = message.historicalEntries;
|
|
2386
|
+
obj.bond_denom = message.bondDenom;
|
|
2387
|
+
obj.min_commission_rate = message.minCommissionRate;
|
|
2388
|
+
return obj;
|
|
2389
|
+
},
|
|
2390
|
+
fromAminoMsg(object: ParamsAminoMsg): Params {
|
|
2391
|
+
return Params.fromAmino(object.value);
|
|
2392
|
+
},
|
|
2393
|
+
toAminoMsg(message: Params): ParamsAminoMsg {
|
|
2394
|
+
return {
|
|
2395
|
+
type: "cosmos-sdk/Params",
|
|
2396
|
+
value: Params.toAmino(message)
|
|
2397
|
+
};
|
|
2398
|
+
},
|
|
2399
|
+
fromProtoMsg(message: ParamsProtoMsg): Params {
|
|
2400
|
+
return Params.decode(message.value);
|
|
2401
|
+
},
|
|
2402
|
+
toProto(message: Params): Uint8Array {
|
|
2403
|
+
return Params.encode(message).finish();
|
|
2404
|
+
},
|
|
2405
|
+
toProtoMsg(message: Params): ParamsProtoMsg {
|
|
2406
|
+
return {
|
|
2407
|
+
typeUrl: "/cosmos.staking.v1beta1.Params",
|
|
2408
|
+
value: Params.encode(message).finish()
|
|
2409
|
+
};
|
|
1736
2410
|
}
|
|
1737
|
-
|
|
1738
2411
|
};
|
|
1739
|
-
|
|
1740
2412
|
function createBaseDelegationResponse(): DelegationResponse {
|
|
1741
2413
|
return {
|
|
1742
|
-
delegation:
|
|
1743
|
-
balance:
|
|
2414
|
+
delegation: Delegation.fromPartial({}),
|
|
2415
|
+
balance: Coin.fromPartial({})
|
|
1744
2416
|
};
|
|
1745
2417
|
}
|
|
1746
|
-
|
|
1747
2418
|
export const DelegationResponse = {
|
|
1748
|
-
|
|
2419
|
+
typeUrl: "/cosmos.staking.v1beta1.DelegationResponse",
|
|
2420
|
+
encode(message: DelegationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1749
2421
|
if (message.delegation !== undefined) {
|
|
1750
2422
|
Delegation.encode(message.delegation, writer.uint32(10).fork()).ldelim();
|
|
1751
2423
|
}
|
|
1752
|
-
|
|
1753
2424
|
if (message.balance !== undefined) {
|
|
1754
2425
|
Coin.encode(message.balance, writer.uint32(18).fork()).ldelim();
|
|
1755
2426
|
}
|
|
1756
|
-
|
|
1757
2427
|
return writer;
|
|
1758
2428
|
},
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2429
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DelegationResponse {
|
|
2430
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1762
2431
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1763
2432
|
const message = createBaseDelegationResponse();
|
|
1764
|
-
|
|
1765
2433
|
while (reader.pos < end) {
|
|
1766
2434
|
const tag = reader.uint32();
|
|
1767
|
-
|
|
1768
2435
|
switch (tag >>> 3) {
|
|
1769
2436
|
case 1:
|
|
1770
2437
|
message.delegation = Delegation.decode(reader, reader.uint32());
|
|
1771
2438
|
break;
|
|
1772
|
-
|
|
1773
2439
|
case 2:
|
|
1774
2440
|
message.balance = Coin.decode(reader, reader.uint32());
|
|
1775
2441
|
break;
|
|
1776
|
-
|
|
1777
2442
|
default:
|
|
1778
2443
|
reader.skipType(tag & 7);
|
|
1779
2444
|
break;
|
|
1780
2445
|
}
|
|
1781
2446
|
}
|
|
1782
|
-
|
|
1783
2447
|
return message;
|
|
1784
2448
|
},
|
|
1785
|
-
|
|
1786
|
-
fromPartial(object: DeepPartial<DelegationResponse>): DelegationResponse {
|
|
2449
|
+
fromPartial(object: Partial<DelegationResponse>): DelegationResponse {
|
|
1787
2450
|
const message = createBaseDelegationResponse();
|
|
1788
2451
|
message.delegation = object.delegation !== undefined && object.delegation !== null ? Delegation.fromPartial(object.delegation) : undefined;
|
|
1789
2452
|
message.balance = object.balance !== undefined && object.balance !== null ? Coin.fromPartial(object.balance) : undefined;
|
|
1790
2453
|
return message;
|
|
2454
|
+
},
|
|
2455
|
+
fromAmino(object: DelegationResponseAmino): DelegationResponse {
|
|
2456
|
+
const message = createBaseDelegationResponse();
|
|
2457
|
+
if (object.delegation !== undefined && object.delegation !== null) {
|
|
2458
|
+
message.delegation = Delegation.fromAmino(object.delegation);
|
|
2459
|
+
}
|
|
2460
|
+
if (object.balance !== undefined && object.balance !== null) {
|
|
2461
|
+
message.balance = Coin.fromAmino(object.balance);
|
|
2462
|
+
}
|
|
2463
|
+
return message;
|
|
2464
|
+
},
|
|
2465
|
+
toAmino(message: DelegationResponse): DelegationResponseAmino {
|
|
2466
|
+
const obj: any = {};
|
|
2467
|
+
obj.delegation = message.delegation ? Delegation.toAmino(message.delegation) : undefined;
|
|
2468
|
+
obj.balance = message.balance ? Coin.toAmino(message.balance) : undefined;
|
|
2469
|
+
return obj;
|
|
2470
|
+
},
|
|
2471
|
+
fromAminoMsg(object: DelegationResponseAminoMsg): DelegationResponse {
|
|
2472
|
+
return DelegationResponse.fromAmino(object.value);
|
|
2473
|
+
},
|
|
2474
|
+
toAminoMsg(message: DelegationResponse): DelegationResponseAminoMsg {
|
|
2475
|
+
return {
|
|
2476
|
+
type: "cosmos-sdk/DelegationResponse",
|
|
2477
|
+
value: DelegationResponse.toAmino(message)
|
|
2478
|
+
};
|
|
2479
|
+
},
|
|
2480
|
+
fromProtoMsg(message: DelegationResponseProtoMsg): DelegationResponse {
|
|
2481
|
+
return DelegationResponse.decode(message.value);
|
|
2482
|
+
},
|
|
2483
|
+
toProto(message: DelegationResponse): Uint8Array {
|
|
2484
|
+
return DelegationResponse.encode(message).finish();
|
|
2485
|
+
},
|
|
2486
|
+
toProtoMsg(message: DelegationResponse): DelegationResponseProtoMsg {
|
|
2487
|
+
return {
|
|
2488
|
+
typeUrl: "/cosmos.staking.v1beta1.DelegationResponse",
|
|
2489
|
+
value: DelegationResponse.encode(message).finish()
|
|
2490
|
+
};
|
|
1791
2491
|
}
|
|
1792
|
-
|
|
1793
2492
|
};
|
|
1794
|
-
|
|
1795
2493
|
function createBaseRedelegationEntryResponse(): RedelegationEntryResponse {
|
|
1796
2494
|
return {
|
|
1797
|
-
redelegationEntry:
|
|
2495
|
+
redelegationEntry: RedelegationEntry.fromPartial({}),
|
|
1798
2496
|
balance: ""
|
|
1799
2497
|
};
|
|
1800
2498
|
}
|
|
1801
|
-
|
|
1802
2499
|
export const RedelegationEntryResponse = {
|
|
1803
|
-
|
|
2500
|
+
typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse",
|
|
2501
|
+
encode(message: RedelegationEntryResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1804
2502
|
if (message.redelegationEntry !== undefined) {
|
|
1805
2503
|
RedelegationEntry.encode(message.redelegationEntry, writer.uint32(10).fork()).ldelim();
|
|
1806
2504
|
}
|
|
1807
|
-
|
|
1808
2505
|
if (message.balance !== "") {
|
|
1809
2506
|
writer.uint32(34).string(message.balance);
|
|
1810
2507
|
}
|
|
1811
|
-
|
|
1812
2508
|
return writer;
|
|
1813
2509
|
},
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2510
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RedelegationEntryResponse {
|
|
2511
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1817
2512
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1818
2513
|
const message = createBaseRedelegationEntryResponse();
|
|
1819
|
-
|
|
1820
2514
|
while (reader.pos < end) {
|
|
1821
2515
|
const tag = reader.uint32();
|
|
1822
|
-
|
|
1823
2516
|
switch (tag >>> 3) {
|
|
1824
2517
|
case 1:
|
|
1825
2518
|
message.redelegationEntry = RedelegationEntry.decode(reader, reader.uint32());
|
|
1826
2519
|
break;
|
|
1827
|
-
|
|
1828
2520
|
case 4:
|
|
1829
2521
|
message.balance = reader.string();
|
|
1830
2522
|
break;
|
|
1831
|
-
|
|
1832
2523
|
default:
|
|
1833
2524
|
reader.skipType(tag & 7);
|
|
1834
2525
|
break;
|
|
1835
2526
|
}
|
|
1836
2527
|
}
|
|
1837
|
-
|
|
1838
2528
|
return message;
|
|
1839
2529
|
},
|
|
1840
|
-
|
|
1841
|
-
fromPartial(object: DeepPartial<RedelegationEntryResponse>): RedelegationEntryResponse {
|
|
2530
|
+
fromPartial(object: Partial<RedelegationEntryResponse>): RedelegationEntryResponse {
|
|
1842
2531
|
const message = createBaseRedelegationEntryResponse();
|
|
1843
2532
|
message.redelegationEntry = object.redelegationEntry !== undefined && object.redelegationEntry !== null ? RedelegationEntry.fromPartial(object.redelegationEntry) : undefined;
|
|
1844
2533
|
message.balance = object.balance ?? "";
|
|
1845
2534
|
return message;
|
|
2535
|
+
},
|
|
2536
|
+
fromAmino(object: RedelegationEntryResponseAmino): RedelegationEntryResponse {
|
|
2537
|
+
const message = createBaseRedelegationEntryResponse();
|
|
2538
|
+
if (object.redelegation_entry !== undefined && object.redelegation_entry !== null) {
|
|
2539
|
+
message.redelegationEntry = RedelegationEntry.fromAmino(object.redelegation_entry);
|
|
2540
|
+
}
|
|
2541
|
+
if (object.balance !== undefined && object.balance !== null) {
|
|
2542
|
+
message.balance = object.balance;
|
|
2543
|
+
}
|
|
2544
|
+
return message;
|
|
2545
|
+
},
|
|
2546
|
+
toAmino(message: RedelegationEntryResponse): RedelegationEntryResponseAmino {
|
|
2547
|
+
const obj: any = {};
|
|
2548
|
+
obj.redelegation_entry = message.redelegationEntry ? RedelegationEntry.toAmino(message.redelegationEntry) : undefined;
|
|
2549
|
+
obj.balance = message.balance;
|
|
2550
|
+
return obj;
|
|
2551
|
+
},
|
|
2552
|
+
fromAminoMsg(object: RedelegationEntryResponseAminoMsg): RedelegationEntryResponse {
|
|
2553
|
+
return RedelegationEntryResponse.fromAmino(object.value);
|
|
2554
|
+
},
|
|
2555
|
+
toAminoMsg(message: RedelegationEntryResponse): RedelegationEntryResponseAminoMsg {
|
|
2556
|
+
return {
|
|
2557
|
+
type: "cosmos-sdk/RedelegationEntryResponse",
|
|
2558
|
+
value: RedelegationEntryResponse.toAmino(message)
|
|
2559
|
+
};
|
|
2560
|
+
},
|
|
2561
|
+
fromProtoMsg(message: RedelegationEntryResponseProtoMsg): RedelegationEntryResponse {
|
|
2562
|
+
return RedelegationEntryResponse.decode(message.value);
|
|
2563
|
+
},
|
|
2564
|
+
toProto(message: RedelegationEntryResponse): Uint8Array {
|
|
2565
|
+
return RedelegationEntryResponse.encode(message).finish();
|
|
2566
|
+
},
|
|
2567
|
+
toProtoMsg(message: RedelegationEntryResponse): RedelegationEntryResponseProtoMsg {
|
|
2568
|
+
return {
|
|
2569
|
+
typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse",
|
|
2570
|
+
value: RedelegationEntryResponse.encode(message).finish()
|
|
2571
|
+
};
|
|
1846
2572
|
}
|
|
1847
|
-
|
|
1848
2573
|
};
|
|
1849
|
-
|
|
1850
2574
|
function createBaseRedelegationResponse(): RedelegationResponse {
|
|
1851
2575
|
return {
|
|
1852
|
-
redelegation:
|
|
2576
|
+
redelegation: Redelegation.fromPartial({}),
|
|
1853
2577
|
entries: []
|
|
1854
2578
|
};
|
|
1855
2579
|
}
|
|
1856
|
-
|
|
1857
2580
|
export const RedelegationResponse = {
|
|
1858
|
-
|
|
2581
|
+
typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse",
|
|
2582
|
+
encode(message: RedelegationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1859
2583
|
if (message.redelegation !== undefined) {
|
|
1860
2584
|
Redelegation.encode(message.redelegation, writer.uint32(10).fork()).ldelim();
|
|
1861
2585
|
}
|
|
1862
|
-
|
|
1863
2586
|
for (const v of message.entries) {
|
|
1864
2587
|
RedelegationEntryResponse.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
1865
2588
|
}
|
|
1866
|
-
|
|
1867
2589
|
return writer;
|
|
1868
2590
|
},
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2591
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RedelegationResponse {
|
|
2592
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1872
2593
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1873
2594
|
const message = createBaseRedelegationResponse();
|
|
1874
|
-
|
|
1875
2595
|
while (reader.pos < end) {
|
|
1876
2596
|
const tag = reader.uint32();
|
|
1877
|
-
|
|
1878
2597
|
switch (tag >>> 3) {
|
|
1879
2598
|
case 1:
|
|
1880
2599
|
message.redelegation = Redelegation.decode(reader, reader.uint32());
|
|
1881
2600
|
break;
|
|
1882
|
-
|
|
1883
2601
|
case 2:
|
|
1884
2602
|
message.entries.push(RedelegationEntryResponse.decode(reader, reader.uint32()));
|
|
1885
2603
|
break;
|
|
1886
|
-
|
|
1887
2604
|
default:
|
|
1888
2605
|
reader.skipType(tag & 7);
|
|
1889
2606
|
break;
|
|
1890
2607
|
}
|
|
1891
2608
|
}
|
|
1892
|
-
|
|
1893
2609
|
return message;
|
|
1894
2610
|
},
|
|
1895
|
-
|
|
1896
|
-
fromPartial(object: DeepPartial<RedelegationResponse>): RedelegationResponse {
|
|
2611
|
+
fromPartial(object: Partial<RedelegationResponse>): RedelegationResponse {
|
|
1897
2612
|
const message = createBaseRedelegationResponse();
|
|
1898
2613
|
message.redelegation = object.redelegation !== undefined && object.redelegation !== null ? Redelegation.fromPartial(object.redelegation) : undefined;
|
|
1899
2614
|
message.entries = object.entries?.map(e => RedelegationEntryResponse.fromPartial(e)) || [];
|
|
1900
2615
|
return message;
|
|
2616
|
+
},
|
|
2617
|
+
fromAmino(object: RedelegationResponseAmino): RedelegationResponse {
|
|
2618
|
+
const message = createBaseRedelegationResponse();
|
|
2619
|
+
if (object.redelegation !== undefined && object.redelegation !== null) {
|
|
2620
|
+
message.redelegation = Redelegation.fromAmino(object.redelegation);
|
|
2621
|
+
}
|
|
2622
|
+
message.entries = object.entries?.map(e => RedelegationEntryResponse.fromAmino(e)) || [];
|
|
2623
|
+
return message;
|
|
2624
|
+
},
|
|
2625
|
+
toAmino(message: RedelegationResponse): RedelegationResponseAmino {
|
|
2626
|
+
const obj: any = {};
|
|
2627
|
+
obj.redelegation = message.redelegation ? Redelegation.toAmino(message.redelegation) : undefined;
|
|
2628
|
+
if (message.entries) {
|
|
2629
|
+
obj.entries = message.entries.map(e => e ? RedelegationEntryResponse.toAmino(e) : undefined);
|
|
2630
|
+
} else {
|
|
2631
|
+
obj.entries = [];
|
|
2632
|
+
}
|
|
2633
|
+
return obj;
|
|
2634
|
+
},
|
|
2635
|
+
fromAminoMsg(object: RedelegationResponseAminoMsg): RedelegationResponse {
|
|
2636
|
+
return RedelegationResponse.fromAmino(object.value);
|
|
2637
|
+
},
|
|
2638
|
+
toAminoMsg(message: RedelegationResponse): RedelegationResponseAminoMsg {
|
|
2639
|
+
return {
|
|
2640
|
+
type: "cosmos-sdk/RedelegationResponse",
|
|
2641
|
+
value: RedelegationResponse.toAmino(message)
|
|
2642
|
+
};
|
|
2643
|
+
},
|
|
2644
|
+
fromProtoMsg(message: RedelegationResponseProtoMsg): RedelegationResponse {
|
|
2645
|
+
return RedelegationResponse.decode(message.value);
|
|
2646
|
+
},
|
|
2647
|
+
toProto(message: RedelegationResponse): Uint8Array {
|
|
2648
|
+
return RedelegationResponse.encode(message).finish();
|
|
2649
|
+
},
|
|
2650
|
+
toProtoMsg(message: RedelegationResponse): RedelegationResponseProtoMsg {
|
|
2651
|
+
return {
|
|
2652
|
+
typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse",
|
|
2653
|
+
value: RedelegationResponse.encode(message).finish()
|
|
2654
|
+
};
|
|
1901
2655
|
}
|
|
1902
|
-
|
|
1903
2656
|
};
|
|
1904
|
-
|
|
1905
2657
|
function createBasePool(): Pool {
|
|
1906
2658
|
return {
|
|
1907
2659
|
notBondedTokens: "",
|
|
1908
2660
|
bondedTokens: ""
|
|
1909
2661
|
};
|
|
1910
2662
|
}
|
|
1911
|
-
|
|
1912
2663
|
export const Pool = {
|
|
1913
|
-
|
|
2664
|
+
typeUrl: "/cosmos.staking.v1beta1.Pool",
|
|
2665
|
+
encode(message: Pool, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1914
2666
|
if (message.notBondedTokens !== "") {
|
|
1915
2667
|
writer.uint32(10).string(message.notBondedTokens);
|
|
1916
2668
|
}
|
|
1917
|
-
|
|
1918
2669
|
if (message.bondedTokens !== "") {
|
|
1919
2670
|
writer.uint32(18).string(message.bondedTokens);
|
|
1920
2671
|
}
|
|
1921
|
-
|
|
1922
2672
|
return writer;
|
|
1923
2673
|
},
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2674
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Pool {
|
|
2675
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1927
2676
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1928
2677
|
const message = createBasePool();
|
|
1929
|
-
|
|
1930
2678
|
while (reader.pos < end) {
|
|
1931
2679
|
const tag = reader.uint32();
|
|
1932
|
-
|
|
1933
2680
|
switch (tag >>> 3) {
|
|
1934
2681
|
case 1:
|
|
1935
2682
|
message.notBondedTokens = reader.string();
|
|
1936
2683
|
break;
|
|
1937
|
-
|
|
1938
2684
|
case 2:
|
|
1939
2685
|
message.bondedTokens = reader.string();
|
|
1940
2686
|
break;
|
|
1941
|
-
|
|
1942
2687
|
default:
|
|
1943
2688
|
reader.skipType(tag & 7);
|
|
1944
2689
|
break;
|
|
1945
2690
|
}
|
|
1946
2691
|
}
|
|
1947
|
-
|
|
1948
2692
|
return message;
|
|
1949
2693
|
},
|
|
1950
|
-
|
|
1951
|
-
fromPartial(object: DeepPartial<Pool>): Pool {
|
|
2694
|
+
fromPartial(object: Partial<Pool>): Pool {
|
|
1952
2695
|
const message = createBasePool();
|
|
1953
2696
|
message.notBondedTokens = object.notBondedTokens ?? "";
|
|
1954
2697
|
message.bondedTokens = object.bondedTokens ?? "";
|
|
1955
2698
|
return message;
|
|
2699
|
+
},
|
|
2700
|
+
fromAmino(object: PoolAmino): Pool {
|
|
2701
|
+
const message = createBasePool();
|
|
2702
|
+
if (object.not_bonded_tokens !== undefined && object.not_bonded_tokens !== null) {
|
|
2703
|
+
message.notBondedTokens = object.not_bonded_tokens;
|
|
2704
|
+
}
|
|
2705
|
+
if (object.bonded_tokens !== undefined && object.bonded_tokens !== null) {
|
|
2706
|
+
message.bondedTokens = object.bonded_tokens;
|
|
2707
|
+
}
|
|
2708
|
+
return message;
|
|
2709
|
+
},
|
|
2710
|
+
toAmino(message: Pool): PoolAmino {
|
|
2711
|
+
const obj: any = {};
|
|
2712
|
+
obj.not_bonded_tokens = message.notBondedTokens;
|
|
2713
|
+
obj.bonded_tokens = message.bondedTokens;
|
|
2714
|
+
return obj;
|
|
2715
|
+
},
|
|
2716
|
+
fromAminoMsg(object: PoolAminoMsg): Pool {
|
|
2717
|
+
return Pool.fromAmino(object.value);
|
|
2718
|
+
},
|
|
2719
|
+
toAminoMsg(message: Pool): PoolAminoMsg {
|
|
2720
|
+
return {
|
|
2721
|
+
type: "cosmos-sdk/Pool",
|
|
2722
|
+
value: Pool.toAmino(message)
|
|
2723
|
+
};
|
|
2724
|
+
},
|
|
2725
|
+
fromProtoMsg(message: PoolProtoMsg): Pool {
|
|
2726
|
+
return Pool.decode(message.value);
|
|
2727
|
+
},
|
|
2728
|
+
toProto(message: Pool): Uint8Array {
|
|
2729
|
+
return Pool.encode(message).finish();
|
|
2730
|
+
},
|
|
2731
|
+
toProtoMsg(message: Pool): PoolProtoMsg {
|
|
2732
|
+
return {
|
|
2733
|
+
typeUrl: "/cosmos.staking.v1beta1.Pool",
|
|
2734
|
+
value: Pool.encode(message).finish()
|
|
2735
|
+
};
|
|
1956
2736
|
}
|
|
1957
|
-
|
|
1958
2737
|
};
|