juno-network 0.15.1 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -3
- 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 +254 -127
- 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 +271 -144
- 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 +271 -144
- 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 +319 -192
- 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 +338 -155
- 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 +271 -144
- 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 +268 -141
- 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 +47 -0
- 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 +47 -0
- 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 +47 -0
- 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 +47 -0
- 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 +67 -0
- 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 +47 -0
- 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 +47 -0
- 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 +6 -7
- 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 +0 -17
- 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 +0 -34
- 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 +0 -24
- 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 +0 -27
- 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 +0 -27
- 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 +47 -0
- 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 +0 -47
- 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 +0 -14
- 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 +0 -14
- 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 +47 -0
- 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 +0 -36
- 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 +0 -4
- 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 +47 -0
- 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 +180 -172
- package/src/codegen/ibc/applications/transfer/v1/genesis.ts +67 -26
- package/src/codegen/ibc/applications/transfer/v1/query.lcd.ts +0 -10
- 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 +0 -37
- 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 +0 -24
- 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 +0 -14
- 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 +47 -0
- 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 +6 -3
- 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 +0 -18
- 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 +67 -0
- 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 +7 -9
- 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 +47 -0
- 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 +0 -8
- 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 +47 -0
- 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 +0 -4
- 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
@@ -0,0 +1,1964 @@
|
|
1
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
2
|
+
import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration";
|
3
|
+
import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any";
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
5
|
+
import { toTimestamp, fromTimestamp } from "../../../helpers";
|
6
|
+
/** VoteOption enumerates the valid vote options for a given proposal. */
|
7
|
+
export enum VoteOption {
|
8
|
+
/** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
|
9
|
+
VOTE_OPTION_UNSPECIFIED = 0,
|
10
|
+
/** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
|
11
|
+
VOTE_OPTION_YES = 1,
|
12
|
+
/** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
|
13
|
+
VOTE_OPTION_ABSTAIN = 2,
|
14
|
+
/** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
|
15
|
+
VOTE_OPTION_NO = 3,
|
16
|
+
/** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
|
17
|
+
VOTE_OPTION_NO_WITH_VETO = 4,
|
18
|
+
UNRECOGNIZED = -1,
|
19
|
+
}
|
20
|
+
export const VoteOptionSDKType = VoteOption;
|
21
|
+
export const VoteOptionAmino = VoteOption;
|
22
|
+
export function voteOptionFromJSON(object: any): VoteOption {
|
23
|
+
switch (object) {
|
24
|
+
case 0:
|
25
|
+
case "VOTE_OPTION_UNSPECIFIED":
|
26
|
+
return VoteOption.VOTE_OPTION_UNSPECIFIED;
|
27
|
+
case 1:
|
28
|
+
case "VOTE_OPTION_YES":
|
29
|
+
return VoteOption.VOTE_OPTION_YES;
|
30
|
+
case 2:
|
31
|
+
case "VOTE_OPTION_ABSTAIN":
|
32
|
+
return VoteOption.VOTE_OPTION_ABSTAIN;
|
33
|
+
case 3:
|
34
|
+
case "VOTE_OPTION_NO":
|
35
|
+
return VoteOption.VOTE_OPTION_NO;
|
36
|
+
case 4:
|
37
|
+
case "VOTE_OPTION_NO_WITH_VETO":
|
38
|
+
return VoteOption.VOTE_OPTION_NO_WITH_VETO;
|
39
|
+
case -1:
|
40
|
+
case "UNRECOGNIZED":
|
41
|
+
default:
|
42
|
+
return VoteOption.UNRECOGNIZED;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
export function voteOptionToJSON(object: VoteOption): string {
|
46
|
+
switch (object) {
|
47
|
+
case VoteOption.VOTE_OPTION_UNSPECIFIED:
|
48
|
+
return "VOTE_OPTION_UNSPECIFIED";
|
49
|
+
case VoteOption.VOTE_OPTION_YES:
|
50
|
+
return "VOTE_OPTION_YES";
|
51
|
+
case VoteOption.VOTE_OPTION_ABSTAIN:
|
52
|
+
return "VOTE_OPTION_ABSTAIN";
|
53
|
+
case VoteOption.VOTE_OPTION_NO:
|
54
|
+
return "VOTE_OPTION_NO";
|
55
|
+
case VoteOption.VOTE_OPTION_NO_WITH_VETO:
|
56
|
+
return "VOTE_OPTION_NO_WITH_VETO";
|
57
|
+
case VoteOption.UNRECOGNIZED:
|
58
|
+
default:
|
59
|
+
return "UNRECOGNIZED";
|
60
|
+
}
|
61
|
+
}
|
62
|
+
/** ProposalStatus defines proposal statuses. */
|
63
|
+
export enum ProposalStatus {
|
64
|
+
/** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */
|
65
|
+
PROPOSAL_STATUS_UNSPECIFIED = 0,
|
66
|
+
/** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when persisted. */
|
67
|
+
PROPOSAL_STATUS_SUBMITTED = 1,
|
68
|
+
/** PROPOSAL_STATUS_CLOSED - Final status of a proposal when the final tally was executed. */
|
69
|
+
PROPOSAL_STATUS_CLOSED = 2,
|
70
|
+
/** PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group was modified before the final tally. */
|
71
|
+
PROPOSAL_STATUS_ABORTED = 3,
|
72
|
+
/**
|
73
|
+
* PROPOSAL_STATUS_WITHDRAWN - A proposal can be deleted before the voting start time by the owner. When this happens the final status
|
74
|
+
* is Withdrawn.
|
75
|
+
*/
|
76
|
+
PROPOSAL_STATUS_WITHDRAWN = 4,
|
77
|
+
UNRECOGNIZED = -1,
|
78
|
+
}
|
79
|
+
export const ProposalStatusSDKType = ProposalStatus;
|
80
|
+
export const ProposalStatusAmino = ProposalStatus;
|
81
|
+
export function proposalStatusFromJSON(object: any): ProposalStatus {
|
82
|
+
switch (object) {
|
83
|
+
case 0:
|
84
|
+
case "PROPOSAL_STATUS_UNSPECIFIED":
|
85
|
+
return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED;
|
86
|
+
case 1:
|
87
|
+
case "PROPOSAL_STATUS_SUBMITTED":
|
88
|
+
return ProposalStatus.PROPOSAL_STATUS_SUBMITTED;
|
89
|
+
case 2:
|
90
|
+
case "PROPOSAL_STATUS_CLOSED":
|
91
|
+
return ProposalStatus.PROPOSAL_STATUS_CLOSED;
|
92
|
+
case 3:
|
93
|
+
case "PROPOSAL_STATUS_ABORTED":
|
94
|
+
return ProposalStatus.PROPOSAL_STATUS_ABORTED;
|
95
|
+
case 4:
|
96
|
+
case "PROPOSAL_STATUS_WITHDRAWN":
|
97
|
+
return ProposalStatus.PROPOSAL_STATUS_WITHDRAWN;
|
98
|
+
case -1:
|
99
|
+
case "UNRECOGNIZED":
|
100
|
+
default:
|
101
|
+
return ProposalStatus.UNRECOGNIZED;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
export function proposalStatusToJSON(object: ProposalStatus): string {
|
105
|
+
switch (object) {
|
106
|
+
case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED:
|
107
|
+
return "PROPOSAL_STATUS_UNSPECIFIED";
|
108
|
+
case ProposalStatus.PROPOSAL_STATUS_SUBMITTED:
|
109
|
+
return "PROPOSAL_STATUS_SUBMITTED";
|
110
|
+
case ProposalStatus.PROPOSAL_STATUS_CLOSED:
|
111
|
+
return "PROPOSAL_STATUS_CLOSED";
|
112
|
+
case ProposalStatus.PROPOSAL_STATUS_ABORTED:
|
113
|
+
return "PROPOSAL_STATUS_ABORTED";
|
114
|
+
case ProposalStatus.PROPOSAL_STATUS_WITHDRAWN:
|
115
|
+
return "PROPOSAL_STATUS_WITHDRAWN";
|
116
|
+
case ProposalStatus.UNRECOGNIZED:
|
117
|
+
default:
|
118
|
+
return "UNRECOGNIZED";
|
119
|
+
}
|
120
|
+
}
|
121
|
+
/** ProposalResult defines types of proposal results. */
|
122
|
+
export enum ProposalResult {
|
123
|
+
/** PROPOSAL_RESULT_UNSPECIFIED - An empty value is invalid and not allowed */
|
124
|
+
PROPOSAL_RESULT_UNSPECIFIED = 0,
|
125
|
+
/** PROPOSAL_RESULT_UNFINALIZED - Until a final tally has happened the status is unfinalized */
|
126
|
+
PROPOSAL_RESULT_UNFINALIZED = 1,
|
127
|
+
/** PROPOSAL_RESULT_ACCEPTED - Final result of the tally */
|
128
|
+
PROPOSAL_RESULT_ACCEPTED = 2,
|
129
|
+
/** PROPOSAL_RESULT_REJECTED - Final result of the tally */
|
130
|
+
PROPOSAL_RESULT_REJECTED = 3,
|
131
|
+
UNRECOGNIZED = -1,
|
132
|
+
}
|
133
|
+
export const ProposalResultSDKType = ProposalResult;
|
134
|
+
export const ProposalResultAmino = ProposalResult;
|
135
|
+
export function proposalResultFromJSON(object: any): ProposalResult {
|
136
|
+
switch (object) {
|
137
|
+
case 0:
|
138
|
+
case "PROPOSAL_RESULT_UNSPECIFIED":
|
139
|
+
return ProposalResult.PROPOSAL_RESULT_UNSPECIFIED;
|
140
|
+
case 1:
|
141
|
+
case "PROPOSAL_RESULT_UNFINALIZED":
|
142
|
+
return ProposalResult.PROPOSAL_RESULT_UNFINALIZED;
|
143
|
+
case 2:
|
144
|
+
case "PROPOSAL_RESULT_ACCEPTED":
|
145
|
+
return ProposalResult.PROPOSAL_RESULT_ACCEPTED;
|
146
|
+
case 3:
|
147
|
+
case "PROPOSAL_RESULT_REJECTED":
|
148
|
+
return ProposalResult.PROPOSAL_RESULT_REJECTED;
|
149
|
+
case -1:
|
150
|
+
case "UNRECOGNIZED":
|
151
|
+
default:
|
152
|
+
return ProposalResult.UNRECOGNIZED;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
export function proposalResultToJSON(object: ProposalResult): string {
|
156
|
+
switch (object) {
|
157
|
+
case ProposalResult.PROPOSAL_RESULT_UNSPECIFIED:
|
158
|
+
return "PROPOSAL_RESULT_UNSPECIFIED";
|
159
|
+
case ProposalResult.PROPOSAL_RESULT_UNFINALIZED:
|
160
|
+
return "PROPOSAL_RESULT_UNFINALIZED";
|
161
|
+
case ProposalResult.PROPOSAL_RESULT_ACCEPTED:
|
162
|
+
return "PROPOSAL_RESULT_ACCEPTED";
|
163
|
+
case ProposalResult.PROPOSAL_RESULT_REJECTED:
|
164
|
+
return "PROPOSAL_RESULT_REJECTED";
|
165
|
+
case ProposalResult.UNRECOGNIZED:
|
166
|
+
default:
|
167
|
+
return "UNRECOGNIZED";
|
168
|
+
}
|
169
|
+
}
|
170
|
+
/** ProposalExecutorResult defines types of proposal executor results. */
|
171
|
+
export enum ProposalExecutorResult {
|
172
|
+
/** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */
|
173
|
+
PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = 0,
|
174
|
+
/** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */
|
175
|
+
PROPOSAL_EXECUTOR_RESULT_NOT_RUN = 1,
|
176
|
+
/** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */
|
177
|
+
PROPOSAL_EXECUTOR_RESULT_SUCCESS = 2,
|
178
|
+
/** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */
|
179
|
+
PROPOSAL_EXECUTOR_RESULT_FAILURE = 3,
|
180
|
+
UNRECOGNIZED = -1,
|
181
|
+
}
|
182
|
+
export const ProposalExecutorResultSDKType = ProposalExecutorResult;
|
183
|
+
export const ProposalExecutorResultAmino = ProposalExecutorResult;
|
184
|
+
export function proposalExecutorResultFromJSON(object: any): ProposalExecutorResult {
|
185
|
+
switch (object) {
|
186
|
+
case 0:
|
187
|
+
case "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED":
|
188
|
+
return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED;
|
189
|
+
case 1:
|
190
|
+
case "PROPOSAL_EXECUTOR_RESULT_NOT_RUN":
|
191
|
+
return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN;
|
192
|
+
case 2:
|
193
|
+
case "PROPOSAL_EXECUTOR_RESULT_SUCCESS":
|
194
|
+
return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS;
|
195
|
+
case 3:
|
196
|
+
case "PROPOSAL_EXECUTOR_RESULT_FAILURE":
|
197
|
+
return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE;
|
198
|
+
case -1:
|
199
|
+
case "UNRECOGNIZED":
|
200
|
+
default:
|
201
|
+
return ProposalExecutorResult.UNRECOGNIZED;
|
202
|
+
}
|
203
|
+
}
|
204
|
+
export function proposalExecutorResultToJSON(object: ProposalExecutorResult): string {
|
205
|
+
switch (object) {
|
206
|
+
case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED:
|
207
|
+
return "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED";
|
208
|
+
case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN:
|
209
|
+
return "PROPOSAL_EXECUTOR_RESULT_NOT_RUN";
|
210
|
+
case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS:
|
211
|
+
return "PROPOSAL_EXECUTOR_RESULT_SUCCESS";
|
212
|
+
case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE:
|
213
|
+
return "PROPOSAL_EXECUTOR_RESULT_FAILURE";
|
214
|
+
case ProposalExecutorResult.UNRECOGNIZED:
|
215
|
+
default:
|
216
|
+
return "UNRECOGNIZED";
|
217
|
+
}
|
218
|
+
}
|
219
|
+
/**
|
220
|
+
* Member represents a group member with an account address,
|
221
|
+
* non-zero weight and metadata.
|
222
|
+
*/
|
223
|
+
export interface Member {
|
224
|
+
/** address is the member's account address. */
|
225
|
+
address: string;
|
226
|
+
/** weight is the member's voting weight that should be greater than 0. */
|
227
|
+
weight: string;
|
228
|
+
/** metadata is any arbitrary metadata to attached to the member. */
|
229
|
+
metadata: string;
|
230
|
+
/** added_at is a timestamp specifying when a member was added. */
|
231
|
+
addedAt: Date;
|
232
|
+
}
|
233
|
+
export interface MemberProtoMsg {
|
234
|
+
typeUrl: "/cosmos.group.v1.Member";
|
235
|
+
value: Uint8Array;
|
236
|
+
}
|
237
|
+
/**
|
238
|
+
* Member represents a group member with an account address,
|
239
|
+
* non-zero weight and metadata.
|
240
|
+
*/
|
241
|
+
export interface MemberAmino {
|
242
|
+
/** address is the member's account address. */
|
243
|
+
address?: string;
|
244
|
+
/** weight is the member's voting weight that should be greater than 0. */
|
245
|
+
weight?: string;
|
246
|
+
/** metadata is any arbitrary metadata to attached to the member. */
|
247
|
+
metadata?: string;
|
248
|
+
/** added_at is a timestamp specifying when a member was added. */
|
249
|
+
added_at?: string;
|
250
|
+
}
|
251
|
+
export interface MemberAminoMsg {
|
252
|
+
type: "cosmos-sdk/Member";
|
253
|
+
value: MemberAmino;
|
254
|
+
}
|
255
|
+
/**
|
256
|
+
* Member represents a group member with an account address,
|
257
|
+
* non-zero weight and metadata.
|
258
|
+
*/
|
259
|
+
export interface MemberSDKType {
|
260
|
+
address: string;
|
261
|
+
weight: string;
|
262
|
+
metadata: string;
|
263
|
+
added_at: Date;
|
264
|
+
}
|
265
|
+
/** Members defines a repeated slice of Member objects. */
|
266
|
+
export interface Members {
|
267
|
+
/** members is the list of members. */
|
268
|
+
members: Member[];
|
269
|
+
}
|
270
|
+
export interface MembersProtoMsg {
|
271
|
+
typeUrl: "/cosmos.group.v1.Members";
|
272
|
+
value: Uint8Array;
|
273
|
+
}
|
274
|
+
/** Members defines a repeated slice of Member objects. */
|
275
|
+
export interface MembersAmino {
|
276
|
+
/** members is the list of members. */
|
277
|
+
members?: MemberAmino[];
|
278
|
+
}
|
279
|
+
export interface MembersAminoMsg {
|
280
|
+
type: "cosmos-sdk/Members";
|
281
|
+
value: MembersAmino;
|
282
|
+
}
|
283
|
+
/** Members defines a repeated slice of Member objects. */
|
284
|
+
export interface MembersSDKType {
|
285
|
+
members: MemberSDKType[];
|
286
|
+
}
|
287
|
+
/** ThresholdDecisionPolicy implements the DecisionPolicy interface */
|
288
|
+
export interface ThresholdDecisionPolicy {
|
289
|
+
/** threshold is the minimum weighted sum of yes votes that must be met or exceeded for a proposal to succeed. */
|
290
|
+
threshold: string;
|
291
|
+
/** windows defines the different windows for voting and execution. */
|
292
|
+
windows?: DecisionPolicyWindows;
|
293
|
+
}
|
294
|
+
export interface ThresholdDecisionPolicyProtoMsg {
|
295
|
+
typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy";
|
296
|
+
value: Uint8Array;
|
297
|
+
}
|
298
|
+
/** ThresholdDecisionPolicy implements the DecisionPolicy interface */
|
299
|
+
export interface ThresholdDecisionPolicyAmino {
|
300
|
+
/** threshold is the minimum weighted sum of yes votes that must be met or exceeded for a proposal to succeed. */
|
301
|
+
threshold?: string;
|
302
|
+
/** windows defines the different windows for voting and execution. */
|
303
|
+
windows?: DecisionPolicyWindowsAmino;
|
304
|
+
}
|
305
|
+
export interface ThresholdDecisionPolicyAminoMsg {
|
306
|
+
type: "cosmos-sdk/ThresholdDecisionPolicy";
|
307
|
+
value: ThresholdDecisionPolicyAmino;
|
308
|
+
}
|
309
|
+
/** ThresholdDecisionPolicy implements the DecisionPolicy interface */
|
310
|
+
export interface ThresholdDecisionPolicySDKType {
|
311
|
+
threshold: string;
|
312
|
+
windows?: DecisionPolicyWindowsSDKType;
|
313
|
+
}
|
314
|
+
/** PercentageDecisionPolicy implements the DecisionPolicy interface */
|
315
|
+
export interface PercentageDecisionPolicy {
|
316
|
+
/** percentage is the minimum percentage the weighted sum of yes votes must meet for a proposal to succeed. */
|
317
|
+
percentage: string;
|
318
|
+
/** windows defines the different windows for voting and execution. */
|
319
|
+
windows?: DecisionPolicyWindows;
|
320
|
+
}
|
321
|
+
export interface PercentageDecisionPolicyProtoMsg {
|
322
|
+
typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy";
|
323
|
+
value: Uint8Array;
|
324
|
+
}
|
325
|
+
/** PercentageDecisionPolicy implements the DecisionPolicy interface */
|
326
|
+
export interface PercentageDecisionPolicyAmino {
|
327
|
+
/** percentage is the minimum percentage the weighted sum of yes votes must meet for a proposal to succeed. */
|
328
|
+
percentage?: string;
|
329
|
+
/** windows defines the different windows for voting and execution. */
|
330
|
+
windows?: DecisionPolicyWindowsAmino;
|
331
|
+
}
|
332
|
+
export interface PercentageDecisionPolicyAminoMsg {
|
333
|
+
type: "cosmos-sdk/PercentageDecisionPolicy";
|
334
|
+
value: PercentageDecisionPolicyAmino;
|
335
|
+
}
|
336
|
+
/** PercentageDecisionPolicy implements the DecisionPolicy interface */
|
337
|
+
export interface PercentageDecisionPolicySDKType {
|
338
|
+
percentage: string;
|
339
|
+
windows?: DecisionPolicyWindowsSDKType;
|
340
|
+
}
|
341
|
+
/** DecisionPolicyWindows defines the different windows for voting and execution. */
|
342
|
+
export interface DecisionPolicyWindows {
|
343
|
+
/**
|
344
|
+
* voting_period is the duration from submission of a proposal to the end of voting period
|
345
|
+
* Within this times votes can be submitted with MsgVote.
|
346
|
+
*/
|
347
|
+
votingPeriod: Duration;
|
348
|
+
/**
|
349
|
+
* min_execution_period is the minimum duration after the proposal submission
|
350
|
+
* where members can start sending MsgExec. This means that the window for
|
351
|
+
* sending a MsgExec transaction is:
|
352
|
+
* `[ submission + min_execution_period ; submission + voting_period + max_execution_period]`
|
353
|
+
* where max_execution_period is a app-specific config, defined in the keeper.
|
354
|
+
* If not set, min_execution_period will default to 0.
|
355
|
+
*
|
356
|
+
* Please make sure to set a `min_execution_period` that is smaller than
|
357
|
+
* `voting_period + max_execution_period`, or else the above execution window
|
358
|
+
* is empty, meaning that all proposals created with this decision policy
|
359
|
+
* won't be able to be executed.
|
360
|
+
*/
|
361
|
+
minExecutionPeriod: Duration;
|
362
|
+
}
|
363
|
+
export interface DecisionPolicyWindowsProtoMsg {
|
364
|
+
typeUrl: "/cosmos.group.v1.DecisionPolicyWindows";
|
365
|
+
value: Uint8Array;
|
366
|
+
}
|
367
|
+
/** DecisionPolicyWindows defines the different windows for voting and execution. */
|
368
|
+
export interface DecisionPolicyWindowsAmino {
|
369
|
+
/**
|
370
|
+
* voting_period is the duration from submission of a proposal to the end of voting period
|
371
|
+
* Within this times votes can be submitted with MsgVote.
|
372
|
+
*/
|
373
|
+
voting_period?: DurationAmino;
|
374
|
+
/**
|
375
|
+
* min_execution_period is the minimum duration after the proposal submission
|
376
|
+
* where members can start sending MsgExec. This means that the window for
|
377
|
+
* sending a MsgExec transaction is:
|
378
|
+
* `[ submission + min_execution_period ; submission + voting_period + max_execution_period]`
|
379
|
+
* where max_execution_period is a app-specific config, defined in the keeper.
|
380
|
+
* If not set, min_execution_period will default to 0.
|
381
|
+
*
|
382
|
+
* Please make sure to set a `min_execution_period` that is smaller than
|
383
|
+
* `voting_period + max_execution_period`, or else the above execution window
|
384
|
+
* is empty, meaning that all proposals created with this decision policy
|
385
|
+
* won't be able to be executed.
|
386
|
+
*/
|
387
|
+
min_execution_period?: DurationAmino;
|
388
|
+
}
|
389
|
+
export interface DecisionPolicyWindowsAminoMsg {
|
390
|
+
type: "cosmos-sdk/DecisionPolicyWindows";
|
391
|
+
value: DecisionPolicyWindowsAmino;
|
392
|
+
}
|
393
|
+
/** DecisionPolicyWindows defines the different windows for voting and execution. */
|
394
|
+
export interface DecisionPolicyWindowsSDKType {
|
395
|
+
voting_period: DurationSDKType;
|
396
|
+
min_execution_period: DurationSDKType;
|
397
|
+
}
|
398
|
+
/** GroupInfo represents the high-level on-chain information for a group. */
|
399
|
+
export interface GroupInfo {
|
400
|
+
/** id is the unique ID of the group. */
|
401
|
+
id: bigint;
|
402
|
+
/** admin is the account address of the group's admin. */
|
403
|
+
admin: string;
|
404
|
+
/** metadata is any arbitrary metadata to attached to the group. */
|
405
|
+
metadata: string;
|
406
|
+
/**
|
407
|
+
* version is used to track changes to a group's membership structure that
|
408
|
+
* would break existing proposals. Whenever any members weight is changed,
|
409
|
+
* or any member is added or removed this version is incremented and will
|
410
|
+
* cause proposals based on older versions of this group to fail
|
411
|
+
*/
|
412
|
+
version: bigint;
|
413
|
+
/** total_weight is the sum of the group members' weights. */
|
414
|
+
totalWeight: string;
|
415
|
+
/** created_at is a timestamp specifying when a group was created. */
|
416
|
+
createdAt: Date;
|
417
|
+
}
|
418
|
+
export interface GroupInfoProtoMsg {
|
419
|
+
typeUrl: "/cosmos.group.v1.GroupInfo";
|
420
|
+
value: Uint8Array;
|
421
|
+
}
|
422
|
+
/** GroupInfo represents the high-level on-chain information for a group. */
|
423
|
+
export interface GroupInfoAmino {
|
424
|
+
/** id is the unique ID of the group. */
|
425
|
+
id?: string;
|
426
|
+
/** admin is the account address of the group's admin. */
|
427
|
+
admin?: string;
|
428
|
+
/** metadata is any arbitrary metadata to attached to the group. */
|
429
|
+
metadata?: string;
|
430
|
+
/**
|
431
|
+
* version is used to track changes to a group's membership structure that
|
432
|
+
* would break existing proposals. Whenever any members weight is changed,
|
433
|
+
* or any member is added or removed this version is incremented and will
|
434
|
+
* cause proposals based on older versions of this group to fail
|
435
|
+
*/
|
436
|
+
version?: string;
|
437
|
+
/** total_weight is the sum of the group members' weights. */
|
438
|
+
total_weight?: string;
|
439
|
+
/** created_at is a timestamp specifying when a group was created. */
|
440
|
+
created_at?: string;
|
441
|
+
}
|
442
|
+
export interface GroupInfoAminoMsg {
|
443
|
+
type: "cosmos-sdk/GroupInfo";
|
444
|
+
value: GroupInfoAmino;
|
445
|
+
}
|
446
|
+
/** GroupInfo represents the high-level on-chain information for a group. */
|
447
|
+
export interface GroupInfoSDKType {
|
448
|
+
id: bigint;
|
449
|
+
admin: string;
|
450
|
+
metadata: string;
|
451
|
+
version: bigint;
|
452
|
+
total_weight: string;
|
453
|
+
created_at: Date;
|
454
|
+
}
|
455
|
+
/** GroupMember represents the relationship between a group and a member. */
|
456
|
+
export interface GroupMember {
|
457
|
+
/** group_id is the unique ID of the group. */
|
458
|
+
groupId: bigint;
|
459
|
+
/** member is the member data. */
|
460
|
+
member?: Member;
|
461
|
+
}
|
462
|
+
export interface GroupMemberProtoMsg {
|
463
|
+
typeUrl: "/cosmos.group.v1.GroupMember";
|
464
|
+
value: Uint8Array;
|
465
|
+
}
|
466
|
+
/** GroupMember represents the relationship between a group and a member. */
|
467
|
+
export interface GroupMemberAmino {
|
468
|
+
/** group_id is the unique ID of the group. */
|
469
|
+
group_id?: string;
|
470
|
+
/** member is the member data. */
|
471
|
+
member?: MemberAmino;
|
472
|
+
}
|
473
|
+
export interface GroupMemberAminoMsg {
|
474
|
+
type: "cosmos-sdk/GroupMember";
|
475
|
+
value: GroupMemberAmino;
|
476
|
+
}
|
477
|
+
/** GroupMember represents the relationship between a group and a member. */
|
478
|
+
export interface GroupMemberSDKType {
|
479
|
+
group_id: bigint;
|
480
|
+
member?: MemberSDKType;
|
481
|
+
}
|
482
|
+
/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */
|
483
|
+
export interface GroupPolicyInfo {
|
484
|
+
/** address is the account address of group policy. */
|
485
|
+
address: string;
|
486
|
+
/** group_id is the unique ID of the group. */
|
487
|
+
groupId: bigint;
|
488
|
+
/** admin is the account address of the group admin. */
|
489
|
+
admin: string;
|
490
|
+
/** metadata is any arbitrary metadata to attached to the group policy. */
|
491
|
+
metadata: string;
|
492
|
+
/**
|
493
|
+
* version is used to track changes to a group's GroupPolicyInfo structure that
|
494
|
+
* would create a different result on a running proposal.
|
495
|
+
*/
|
496
|
+
version: bigint;
|
497
|
+
/** decision_policy specifies the group policy's decision policy. */
|
498
|
+
decisionPolicy?: Any;
|
499
|
+
/** created_at is a timestamp specifying when a group policy was created. */
|
500
|
+
createdAt: Date;
|
501
|
+
}
|
502
|
+
export interface GroupPolicyInfoProtoMsg {
|
503
|
+
typeUrl: "/cosmos.group.v1.GroupPolicyInfo";
|
504
|
+
value: Uint8Array;
|
505
|
+
}
|
506
|
+
/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */
|
507
|
+
export interface GroupPolicyInfoAmino {
|
508
|
+
/** address is the account address of group policy. */
|
509
|
+
address?: string;
|
510
|
+
/** group_id is the unique ID of the group. */
|
511
|
+
group_id?: string;
|
512
|
+
/** admin is the account address of the group admin. */
|
513
|
+
admin?: string;
|
514
|
+
/** metadata is any arbitrary metadata to attached to the group policy. */
|
515
|
+
metadata?: string;
|
516
|
+
/**
|
517
|
+
* version is used to track changes to a group's GroupPolicyInfo structure that
|
518
|
+
* would create a different result on a running proposal.
|
519
|
+
*/
|
520
|
+
version?: string;
|
521
|
+
/** decision_policy specifies the group policy's decision policy. */
|
522
|
+
decision_policy?: AnyAmino;
|
523
|
+
/** created_at is a timestamp specifying when a group policy was created. */
|
524
|
+
created_at?: string;
|
525
|
+
}
|
526
|
+
export interface GroupPolicyInfoAminoMsg {
|
527
|
+
type: "cosmos-sdk/GroupPolicyInfo";
|
528
|
+
value: GroupPolicyInfoAmino;
|
529
|
+
}
|
530
|
+
/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */
|
531
|
+
export interface GroupPolicyInfoSDKType {
|
532
|
+
address: string;
|
533
|
+
group_id: bigint;
|
534
|
+
admin: string;
|
535
|
+
metadata: string;
|
536
|
+
version: bigint;
|
537
|
+
decision_policy?: AnySDKType;
|
538
|
+
created_at: Date;
|
539
|
+
}
|
540
|
+
/**
|
541
|
+
* Proposal defines a group proposal. Any member of a group can submit a proposal
|
542
|
+
* for a group policy to decide upon.
|
543
|
+
* A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal
|
544
|
+
* passes as well as some optional metadata associated with the proposal.
|
545
|
+
*/
|
546
|
+
export interface Proposal {
|
547
|
+
/** id is the unique id of the proposal. */
|
548
|
+
id: bigint;
|
549
|
+
/** address is the account address of group policy. */
|
550
|
+
address: string;
|
551
|
+
/** metadata is any arbitrary metadata to attached to the proposal. */
|
552
|
+
metadata: string;
|
553
|
+
/** proposers are the account addresses of the proposers. */
|
554
|
+
proposers: string[];
|
555
|
+
/** submit_time is a timestamp specifying when a proposal was submitted. */
|
556
|
+
submitTime: Date;
|
557
|
+
/**
|
558
|
+
* group_version tracks the version of the group that this proposal corresponds to.
|
559
|
+
* When group membership is changed, existing proposals from previous group versions will become invalid.
|
560
|
+
*/
|
561
|
+
groupVersion: bigint;
|
562
|
+
/**
|
563
|
+
* group_policy_version tracks the version of the group policy that this proposal corresponds to.
|
564
|
+
* When a decision policy is changed, existing proposals from previous policy versions will become invalid.
|
565
|
+
*/
|
566
|
+
groupPolicyVersion: bigint;
|
567
|
+
/** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */
|
568
|
+
status: ProposalStatus;
|
569
|
+
/**
|
570
|
+
* result is the final result based on the votes and election rule. Initial value is unfinalized.
|
571
|
+
* The result is persisted so that clients can always rely on this state and not have to replicate the logic.
|
572
|
+
*/
|
573
|
+
result: ProposalResult;
|
574
|
+
/**
|
575
|
+
* final_tally_result contains the sums of all weighted votes for this
|
576
|
+
* proposal for each vote option, after tallying. When querying a proposal
|
577
|
+
* via gRPC, this field is not populated until the proposal's voting period
|
578
|
+
* has ended.
|
579
|
+
*/
|
580
|
+
finalTallyResult: TallyResult;
|
581
|
+
/**
|
582
|
+
* voting_period_end is the timestamp before which voting must be done.
|
583
|
+
* Unless a successfull MsgExec is called before (to execute a proposal whose
|
584
|
+
* tally is successful before the voting period ends), tallying will be done
|
585
|
+
* at this point, and the `final_tally_result`, as well
|
586
|
+
* as `status` and `result` fields will be accordingly updated.
|
587
|
+
*/
|
588
|
+
votingPeriodEnd: Date;
|
589
|
+
/** executor_result is the final result based on the votes and election rule. Initial value is NotRun. */
|
590
|
+
executorResult: ProposalExecutorResult;
|
591
|
+
/** messages is a list of Msgs that will be executed if the proposal passes. */
|
592
|
+
messages: Any[];
|
593
|
+
}
|
594
|
+
export interface ProposalProtoMsg {
|
595
|
+
typeUrl: "/cosmos.group.v1.Proposal";
|
596
|
+
value: Uint8Array;
|
597
|
+
}
|
598
|
+
/**
|
599
|
+
* Proposal defines a group proposal. Any member of a group can submit a proposal
|
600
|
+
* for a group policy to decide upon.
|
601
|
+
* A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal
|
602
|
+
* passes as well as some optional metadata associated with the proposal.
|
603
|
+
*/
|
604
|
+
export interface ProposalAmino {
|
605
|
+
/** id is the unique id of the proposal. */
|
606
|
+
id?: string;
|
607
|
+
/** address is the account address of group policy. */
|
608
|
+
address?: string;
|
609
|
+
/** metadata is any arbitrary metadata to attached to the proposal. */
|
610
|
+
metadata?: string;
|
611
|
+
/** proposers are the account addresses of the proposers. */
|
612
|
+
proposers?: string[];
|
613
|
+
/** submit_time is a timestamp specifying when a proposal was submitted. */
|
614
|
+
submit_time?: string;
|
615
|
+
/**
|
616
|
+
* group_version tracks the version of the group that this proposal corresponds to.
|
617
|
+
* When group membership is changed, existing proposals from previous group versions will become invalid.
|
618
|
+
*/
|
619
|
+
group_version?: string;
|
620
|
+
/**
|
621
|
+
* group_policy_version tracks the version of the group policy that this proposal corresponds to.
|
622
|
+
* When a decision policy is changed, existing proposals from previous policy versions will become invalid.
|
623
|
+
*/
|
624
|
+
group_policy_version?: string;
|
625
|
+
/** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */
|
626
|
+
status?: ProposalStatus;
|
627
|
+
/**
|
628
|
+
* result is the final result based on the votes and election rule. Initial value is unfinalized.
|
629
|
+
* The result is persisted so that clients can always rely on this state and not have to replicate the logic.
|
630
|
+
*/
|
631
|
+
result?: ProposalResult;
|
632
|
+
/**
|
633
|
+
* final_tally_result contains the sums of all weighted votes for this
|
634
|
+
* proposal for each vote option, after tallying. When querying a proposal
|
635
|
+
* via gRPC, this field is not populated until the proposal's voting period
|
636
|
+
* has ended.
|
637
|
+
*/
|
638
|
+
final_tally_result?: TallyResultAmino;
|
639
|
+
/**
|
640
|
+
* voting_period_end is the timestamp before which voting must be done.
|
641
|
+
* Unless a successfull MsgExec is called before (to execute a proposal whose
|
642
|
+
* tally is successful before the voting period ends), tallying will be done
|
643
|
+
* at this point, and the `final_tally_result`, as well
|
644
|
+
* as `status` and `result` fields will be accordingly updated.
|
645
|
+
*/
|
646
|
+
voting_period_end?: string;
|
647
|
+
/** executor_result is the final result based on the votes and election rule. Initial value is NotRun. */
|
648
|
+
executor_result?: ProposalExecutorResult;
|
649
|
+
/** messages is a list of Msgs that will be executed if the proposal passes. */
|
650
|
+
messages?: AnyAmino[];
|
651
|
+
}
|
652
|
+
export interface ProposalAminoMsg {
|
653
|
+
type: "cosmos-sdk/Proposal";
|
654
|
+
value: ProposalAmino;
|
655
|
+
}
|
656
|
+
/**
|
657
|
+
* Proposal defines a group proposal. Any member of a group can submit a proposal
|
658
|
+
* for a group policy to decide upon.
|
659
|
+
* A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal
|
660
|
+
* passes as well as some optional metadata associated with the proposal.
|
661
|
+
*/
|
662
|
+
export interface ProposalSDKType {
|
663
|
+
id: bigint;
|
664
|
+
address: string;
|
665
|
+
metadata: string;
|
666
|
+
proposers: string[];
|
667
|
+
submit_time: Date;
|
668
|
+
group_version: bigint;
|
669
|
+
group_policy_version: bigint;
|
670
|
+
status: ProposalStatus;
|
671
|
+
result: ProposalResult;
|
672
|
+
final_tally_result: TallyResultSDKType;
|
673
|
+
voting_period_end: Date;
|
674
|
+
executor_result: ProposalExecutorResult;
|
675
|
+
messages: AnySDKType[];
|
676
|
+
}
|
677
|
+
/** TallyResult represents the sum of weighted votes for each vote option. */
|
678
|
+
export interface TallyResult {
|
679
|
+
/** yes_count is the weighted sum of yes votes. */
|
680
|
+
yesCount: string;
|
681
|
+
/** abstain_count is the weighted sum of abstainers. */
|
682
|
+
abstainCount: string;
|
683
|
+
/** no is the weighted sum of no votes. */
|
684
|
+
noCount: string;
|
685
|
+
/** no_with_veto_count is the weighted sum of veto. */
|
686
|
+
noWithVetoCount: string;
|
687
|
+
}
|
688
|
+
export interface TallyResultProtoMsg {
|
689
|
+
typeUrl: "/cosmos.group.v1.TallyResult";
|
690
|
+
value: Uint8Array;
|
691
|
+
}
|
692
|
+
/** TallyResult represents the sum of weighted votes for each vote option. */
|
693
|
+
export interface TallyResultAmino {
|
694
|
+
/** yes_count is the weighted sum of yes votes. */
|
695
|
+
yes_count?: string;
|
696
|
+
/** abstain_count is the weighted sum of abstainers. */
|
697
|
+
abstain_count?: string;
|
698
|
+
/** no is the weighted sum of no votes. */
|
699
|
+
no_count?: string;
|
700
|
+
/** no_with_veto_count is the weighted sum of veto. */
|
701
|
+
no_with_veto_count?: string;
|
702
|
+
}
|
703
|
+
export interface TallyResultAminoMsg {
|
704
|
+
type: "cosmos-sdk/TallyResult";
|
705
|
+
value: TallyResultAmino;
|
706
|
+
}
|
707
|
+
/** TallyResult represents the sum of weighted votes for each vote option. */
|
708
|
+
export interface TallyResultSDKType {
|
709
|
+
yes_count: string;
|
710
|
+
abstain_count: string;
|
711
|
+
no_count: string;
|
712
|
+
no_with_veto_count: string;
|
713
|
+
}
|
714
|
+
/** Vote represents a vote for a proposal. */
|
715
|
+
export interface Vote {
|
716
|
+
/** proposal is the unique ID of the proposal. */
|
717
|
+
proposalId: bigint;
|
718
|
+
/** voter is the account address of the voter. */
|
719
|
+
voter: string;
|
720
|
+
/** option is the voter's choice on the proposal. */
|
721
|
+
option: VoteOption;
|
722
|
+
/** metadata is any arbitrary metadata to attached to the vote. */
|
723
|
+
metadata: string;
|
724
|
+
/** submit_time is the timestamp when the vote was submitted. */
|
725
|
+
submitTime: Date;
|
726
|
+
}
|
727
|
+
export interface VoteProtoMsg {
|
728
|
+
typeUrl: "/cosmos.group.v1.Vote";
|
729
|
+
value: Uint8Array;
|
730
|
+
}
|
731
|
+
/** Vote represents a vote for a proposal. */
|
732
|
+
export interface VoteAmino {
|
733
|
+
/** proposal is the unique ID of the proposal. */
|
734
|
+
proposal_id?: string;
|
735
|
+
/** voter is the account address of the voter. */
|
736
|
+
voter?: string;
|
737
|
+
/** option is the voter's choice on the proposal. */
|
738
|
+
option?: VoteOption;
|
739
|
+
/** metadata is any arbitrary metadata to attached to the vote. */
|
740
|
+
metadata?: string;
|
741
|
+
/** submit_time is the timestamp when the vote was submitted. */
|
742
|
+
submit_time?: string;
|
743
|
+
}
|
744
|
+
export interface VoteAminoMsg {
|
745
|
+
type: "cosmos-sdk/Vote";
|
746
|
+
value: VoteAmino;
|
747
|
+
}
|
748
|
+
/** Vote represents a vote for a proposal. */
|
749
|
+
export interface VoteSDKType {
|
750
|
+
proposal_id: bigint;
|
751
|
+
voter: string;
|
752
|
+
option: VoteOption;
|
753
|
+
metadata: string;
|
754
|
+
submit_time: Date;
|
755
|
+
}
|
756
|
+
function createBaseMember(): Member {
|
757
|
+
return {
|
758
|
+
address: "",
|
759
|
+
weight: "",
|
760
|
+
metadata: "",
|
761
|
+
addedAt: new Date()
|
762
|
+
};
|
763
|
+
}
|
764
|
+
export const Member = {
|
765
|
+
typeUrl: "/cosmos.group.v1.Member",
|
766
|
+
encode(message: Member, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
767
|
+
if (message.address !== "") {
|
768
|
+
writer.uint32(10).string(message.address);
|
769
|
+
}
|
770
|
+
if (message.weight !== "") {
|
771
|
+
writer.uint32(18).string(message.weight);
|
772
|
+
}
|
773
|
+
if (message.metadata !== "") {
|
774
|
+
writer.uint32(26).string(message.metadata);
|
775
|
+
}
|
776
|
+
if (message.addedAt !== undefined) {
|
777
|
+
Timestamp.encode(toTimestamp(message.addedAt), writer.uint32(34).fork()).ldelim();
|
778
|
+
}
|
779
|
+
return writer;
|
780
|
+
},
|
781
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Member {
|
782
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
783
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
784
|
+
const message = createBaseMember();
|
785
|
+
while (reader.pos < end) {
|
786
|
+
const tag = reader.uint32();
|
787
|
+
switch (tag >>> 3) {
|
788
|
+
case 1:
|
789
|
+
message.address = reader.string();
|
790
|
+
break;
|
791
|
+
case 2:
|
792
|
+
message.weight = reader.string();
|
793
|
+
break;
|
794
|
+
case 3:
|
795
|
+
message.metadata = reader.string();
|
796
|
+
break;
|
797
|
+
case 4:
|
798
|
+
message.addedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
799
|
+
break;
|
800
|
+
default:
|
801
|
+
reader.skipType(tag & 7);
|
802
|
+
break;
|
803
|
+
}
|
804
|
+
}
|
805
|
+
return message;
|
806
|
+
},
|
807
|
+
fromPartial(object: Partial<Member>): Member {
|
808
|
+
const message = createBaseMember();
|
809
|
+
message.address = object.address ?? "";
|
810
|
+
message.weight = object.weight ?? "";
|
811
|
+
message.metadata = object.metadata ?? "";
|
812
|
+
message.addedAt = object.addedAt ?? undefined;
|
813
|
+
return message;
|
814
|
+
},
|
815
|
+
fromAmino(object: MemberAmino): Member {
|
816
|
+
const message = createBaseMember();
|
817
|
+
if (object.address !== undefined && object.address !== null) {
|
818
|
+
message.address = object.address;
|
819
|
+
}
|
820
|
+
if (object.weight !== undefined && object.weight !== null) {
|
821
|
+
message.weight = object.weight;
|
822
|
+
}
|
823
|
+
if (object.metadata !== undefined && object.metadata !== null) {
|
824
|
+
message.metadata = object.metadata;
|
825
|
+
}
|
826
|
+
if (object.added_at !== undefined && object.added_at !== null) {
|
827
|
+
message.addedAt = fromTimestamp(Timestamp.fromAmino(object.added_at));
|
828
|
+
}
|
829
|
+
return message;
|
830
|
+
},
|
831
|
+
toAmino(message: Member): MemberAmino {
|
832
|
+
const obj: any = {};
|
833
|
+
obj.address = message.address;
|
834
|
+
obj.weight = message.weight;
|
835
|
+
obj.metadata = message.metadata;
|
836
|
+
obj.added_at = message.addedAt ? Timestamp.toAmino(toTimestamp(message.addedAt)) : undefined;
|
837
|
+
return obj;
|
838
|
+
},
|
839
|
+
fromAminoMsg(object: MemberAminoMsg): Member {
|
840
|
+
return Member.fromAmino(object.value);
|
841
|
+
},
|
842
|
+
toAminoMsg(message: Member): MemberAminoMsg {
|
843
|
+
return {
|
844
|
+
type: "cosmos-sdk/Member",
|
845
|
+
value: Member.toAmino(message)
|
846
|
+
};
|
847
|
+
},
|
848
|
+
fromProtoMsg(message: MemberProtoMsg): Member {
|
849
|
+
return Member.decode(message.value);
|
850
|
+
},
|
851
|
+
toProto(message: Member): Uint8Array {
|
852
|
+
return Member.encode(message).finish();
|
853
|
+
},
|
854
|
+
toProtoMsg(message: Member): MemberProtoMsg {
|
855
|
+
return {
|
856
|
+
typeUrl: "/cosmos.group.v1.Member",
|
857
|
+
value: Member.encode(message).finish()
|
858
|
+
};
|
859
|
+
}
|
860
|
+
};
|
861
|
+
function createBaseMembers(): Members {
|
862
|
+
return {
|
863
|
+
members: []
|
864
|
+
};
|
865
|
+
}
|
866
|
+
export const Members = {
|
867
|
+
typeUrl: "/cosmos.group.v1.Members",
|
868
|
+
encode(message: Members, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
869
|
+
for (const v of message.members) {
|
870
|
+
Member.encode(v!, writer.uint32(10).fork()).ldelim();
|
871
|
+
}
|
872
|
+
return writer;
|
873
|
+
},
|
874
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Members {
|
875
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
876
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
877
|
+
const message = createBaseMembers();
|
878
|
+
while (reader.pos < end) {
|
879
|
+
const tag = reader.uint32();
|
880
|
+
switch (tag >>> 3) {
|
881
|
+
case 1:
|
882
|
+
message.members.push(Member.decode(reader, reader.uint32()));
|
883
|
+
break;
|
884
|
+
default:
|
885
|
+
reader.skipType(tag & 7);
|
886
|
+
break;
|
887
|
+
}
|
888
|
+
}
|
889
|
+
return message;
|
890
|
+
},
|
891
|
+
fromPartial(object: Partial<Members>): Members {
|
892
|
+
const message = createBaseMembers();
|
893
|
+
message.members = object.members?.map(e => Member.fromPartial(e)) || [];
|
894
|
+
return message;
|
895
|
+
},
|
896
|
+
fromAmino(object: MembersAmino): Members {
|
897
|
+
const message = createBaseMembers();
|
898
|
+
message.members = object.members?.map(e => Member.fromAmino(e)) || [];
|
899
|
+
return message;
|
900
|
+
},
|
901
|
+
toAmino(message: Members): MembersAmino {
|
902
|
+
const obj: any = {};
|
903
|
+
if (message.members) {
|
904
|
+
obj.members = message.members.map(e => e ? Member.toAmino(e) : undefined);
|
905
|
+
} else {
|
906
|
+
obj.members = [];
|
907
|
+
}
|
908
|
+
return obj;
|
909
|
+
},
|
910
|
+
fromAminoMsg(object: MembersAminoMsg): Members {
|
911
|
+
return Members.fromAmino(object.value);
|
912
|
+
},
|
913
|
+
toAminoMsg(message: Members): MembersAminoMsg {
|
914
|
+
return {
|
915
|
+
type: "cosmos-sdk/Members",
|
916
|
+
value: Members.toAmino(message)
|
917
|
+
};
|
918
|
+
},
|
919
|
+
fromProtoMsg(message: MembersProtoMsg): Members {
|
920
|
+
return Members.decode(message.value);
|
921
|
+
},
|
922
|
+
toProto(message: Members): Uint8Array {
|
923
|
+
return Members.encode(message).finish();
|
924
|
+
},
|
925
|
+
toProtoMsg(message: Members): MembersProtoMsg {
|
926
|
+
return {
|
927
|
+
typeUrl: "/cosmos.group.v1.Members",
|
928
|
+
value: Members.encode(message).finish()
|
929
|
+
};
|
930
|
+
}
|
931
|
+
};
|
932
|
+
function createBaseThresholdDecisionPolicy(): ThresholdDecisionPolicy {
|
933
|
+
return {
|
934
|
+
threshold: "",
|
935
|
+
windows: undefined
|
936
|
+
};
|
937
|
+
}
|
938
|
+
export const ThresholdDecisionPolicy = {
|
939
|
+
typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy",
|
940
|
+
encode(message: ThresholdDecisionPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
941
|
+
if (message.threshold !== "") {
|
942
|
+
writer.uint32(10).string(message.threshold);
|
943
|
+
}
|
944
|
+
if (message.windows !== undefined) {
|
945
|
+
DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim();
|
946
|
+
}
|
947
|
+
return writer;
|
948
|
+
},
|
949
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ThresholdDecisionPolicy {
|
950
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
951
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
952
|
+
const message = createBaseThresholdDecisionPolicy();
|
953
|
+
while (reader.pos < end) {
|
954
|
+
const tag = reader.uint32();
|
955
|
+
switch (tag >>> 3) {
|
956
|
+
case 1:
|
957
|
+
message.threshold = reader.string();
|
958
|
+
break;
|
959
|
+
case 2:
|
960
|
+
message.windows = DecisionPolicyWindows.decode(reader, reader.uint32());
|
961
|
+
break;
|
962
|
+
default:
|
963
|
+
reader.skipType(tag & 7);
|
964
|
+
break;
|
965
|
+
}
|
966
|
+
}
|
967
|
+
return message;
|
968
|
+
},
|
969
|
+
fromPartial(object: Partial<ThresholdDecisionPolicy>): ThresholdDecisionPolicy {
|
970
|
+
const message = createBaseThresholdDecisionPolicy();
|
971
|
+
message.threshold = object.threshold ?? "";
|
972
|
+
message.windows = object.windows !== undefined && object.windows !== null ? DecisionPolicyWindows.fromPartial(object.windows) : undefined;
|
973
|
+
return message;
|
974
|
+
},
|
975
|
+
fromAmino(object: ThresholdDecisionPolicyAmino): ThresholdDecisionPolicy {
|
976
|
+
const message = createBaseThresholdDecisionPolicy();
|
977
|
+
if (object.threshold !== undefined && object.threshold !== null) {
|
978
|
+
message.threshold = object.threshold;
|
979
|
+
}
|
980
|
+
if (object.windows !== undefined && object.windows !== null) {
|
981
|
+
message.windows = DecisionPolicyWindows.fromAmino(object.windows);
|
982
|
+
}
|
983
|
+
return message;
|
984
|
+
},
|
985
|
+
toAmino(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyAmino {
|
986
|
+
const obj: any = {};
|
987
|
+
obj.threshold = message.threshold;
|
988
|
+
obj.windows = message.windows ? DecisionPolicyWindows.toAmino(message.windows) : undefined;
|
989
|
+
return obj;
|
990
|
+
},
|
991
|
+
fromAminoMsg(object: ThresholdDecisionPolicyAminoMsg): ThresholdDecisionPolicy {
|
992
|
+
return ThresholdDecisionPolicy.fromAmino(object.value);
|
993
|
+
},
|
994
|
+
toAminoMsg(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyAminoMsg {
|
995
|
+
return {
|
996
|
+
type: "cosmos-sdk/ThresholdDecisionPolicy",
|
997
|
+
value: ThresholdDecisionPolicy.toAmino(message)
|
998
|
+
};
|
999
|
+
},
|
1000
|
+
fromProtoMsg(message: ThresholdDecisionPolicyProtoMsg): ThresholdDecisionPolicy {
|
1001
|
+
return ThresholdDecisionPolicy.decode(message.value);
|
1002
|
+
},
|
1003
|
+
toProto(message: ThresholdDecisionPolicy): Uint8Array {
|
1004
|
+
return ThresholdDecisionPolicy.encode(message).finish();
|
1005
|
+
},
|
1006
|
+
toProtoMsg(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyProtoMsg {
|
1007
|
+
return {
|
1008
|
+
typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy",
|
1009
|
+
value: ThresholdDecisionPolicy.encode(message).finish()
|
1010
|
+
};
|
1011
|
+
}
|
1012
|
+
};
|
1013
|
+
function createBasePercentageDecisionPolicy(): PercentageDecisionPolicy {
|
1014
|
+
return {
|
1015
|
+
percentage: "",
|
1016
|
+
windows: undefined
|
1017
|
+
};
|
1018
|
+
}
|
1019
|
+
export const PercentageDecisionPolicy = {
|
1020
|
+
typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy",
|
1021
|
+
encode(message: PercentageDecisionPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
1022
|
+
if (message.percentage !== "") {
|
1023
|
+
writer.uint32(10).string(message.percentage);
|
1024
|
+
}
|
1025
|
+
if (message.windows !== undefined) {
|
1026
|
+
DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim();
|
1027
|
+
}
|
1028
|
+
return writer;
|
1029
|
+
},
|
1030
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PercentageDecisionPolicy {
|
1031
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
1032
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1033
|
+
const message = createBasePercentageDecisionPolicy();
|
1034
|
+
while (reader.pos < end) {
|
1035
|
+
const tag = reader.uint32();
|
1036
|
+
switch (tag >>> 3) {
|
1037
|
+
case 1:
|
1038
|
+
message.percentage = reader.string();
|
1039
|
+
break;
|
1040
|
+
case 2:
|
1041
|
+
message.windows = DecisionPolicyWindows.decode(reader, reader.uint32());
|
1042
|
+
break;
|
1043
|
+
default:
|
1044
|
+
reader.skipType(tag & 7);
|
1045
|
+
break;
|
1046
|
+
}
|
1047
|
+
}
|
1048
|
+
return message;
|
1049
|
+
},
|
1050
|
+
fromPartial(object: Partial<PercentageDecisionPolicy>): PercentageDecisionPolicy {
|
1051
|
+
const message = createBasePercentageDecisionPolicy();
|
1052
|
+
message.percentage = object.percentage ?? "";
|
1053
|
+
message.windows = object.windows !== undefined && object.windows !== null ? DecisionPolicyWindows.fromPartial(object.windows) : undefined;
|
1054
|
+
return message;
|
1055
|
+
},
|
1056
|
+
fromAmino(object: PercentageDecisionPolicyAmino): PercentageDecisionPolicy {
|
1057
|
+
const message = createBasePercentageDecisionPolicy();
|
1058
|
+
if (object.percentage !== undefined && object.percentage !== null) {
|
1059
|
+
message.percentage = object.percentage;
|
1060
|
+
}
|
1061
|
+
if (object.windows !== undefined && object.windows !== null) {
|
1062
|
+
message.windows = DecisionPolicyWindows.fromAmino(object.windows);
|
1063
|
+
}
|
1064
|
+
return message;
|
1065
|
+
},
|
1066
|
+
toAmino(message: PercentageDecisionPolicy): PercentageDecisionPolicyAmino {
|
1067
|
+
const obj: any = {};
|
1068
|
+
obj.percentage = message.percentage;
|
1069
|
+
obj.windows = message.windows ? DecisionPolicyWindows.toAmino(message.windows) : undefined;
|
1070
|
+
return obj;
|
1071
|
+
},
|
1072
|
+
fromAminoMsg(object: PercentageDecisionPolicyAminoMsg): PercentageDecisionPolicy {
|
1073
|
+
return PercentageDecisionPolicy.fromAmino(object.value);
|
1074
|
+
},
|
1075
|
+
toAminoMsg(message: PercentageDecisionPolicy): PercentageDecisionPolicyAminoMsg {
|
1076
|
+
return {
|
1077
|
+
type: "cosmos-sdk/PercentageDecisionPolicy",
|
1078
|
+
value: PercentageDecisionPolicy.toAmino(message)
|
1079
|
+
};
|
1080
|
+
},
|
1081
|
+
fromProtoMsg(message: PercentageDecisionPolicyProtoMsg): PercentageDecisionPolicy {
|
1082
|
+
return PercentageDecisionPolicy.decode(message.value);
|
1083
|
+
},
|
1084
|
+
toProto(message: PercentageDecisionPolicy): Uint8Array {
|
1085
|
+
return PercentageDecisionPolicy.encode(message).finish();
|
1086
|
+
},
|
1087
|
+
toProtoMsg(message: PercentageDecisionPolicy): PercentageDecisionPolicyProtoMsg {
|
1088
|
+
return {
|
1089
|
+
typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy",
|
1090
|
+
value: PercentageDecisionPolicy.encode(message).finish()
|
1091
|
+
};
|
1092
|
+
}
|
1093
|
+
};
|
1094
|
+
function createBaseDecisionPolicyWindows(): DecisionPolicyWindows {
|
1095
|
+
return {
|
1096
|
+
votingPeriod: Duration.fromPartial({}),
|
1097
|
+
minExecutionPeriod: Duration.fromPartial({})
|
1098
|
+
};
|
1099
|
+
}
|
1100
|
+
export const DecisionPolicyWindows = {
|
1101
|
+
typeUrl: "/cosmos.group.v1.DecisionPolicyWindows",
|
1102
|
+
encode(message: DecisionPolicyWindows, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
1103
|
+
if (message.votingPeriod !== undefined) {
|
1104
|
+
Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim();
|
1105
|
+
}
|
1106
|
+
if (message.minExecutionPeriod !== undefined) {
|
1107
|
+
Duration.encode(message.minExecutionPeriod, writer.uint32(18).fork()).ldelim();
|
1108
|
+
}
|
1109
|
+
return writer;
|
1110
|
+
},
|
1111
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DecisionPolicyWindows {
|
1112
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
1113
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1114
|
+
const message = createBaseDecisionPolicyWindows();
|
1115
|
+
while (reader.pos < end) {
|
1116
|
+
const tag = reader.uint32();
|
1117
|
+
switch (tag >>> 3) {
|
1118
|
+
case 1:
|
1119
|
+
message.votingPeriod = Duration.decode(reader, reader.uint32());
|
1120
|
+
break;
|
1121
|
+
case 2:
|
1122
|
+
message.minExecutionPeriod = Duration.decode(reader, reader.uint32());
|
1123
|
+
break;
|
1124
|
+
default:
|
1125
|
+
reader.skipType(tag & 7);
|
1126
|
+
break;
|
1127
|
+
}
|
1128
|
+
}
|
1129
|
+
return message;
|
1130
|
+
},
|
1131
|
+
fromPartial(object: Partial<DecisionPolicyWindows>): DecisionPolicyWindows {
|
1132
|
+
const message = createBaseDecisionPolicyWindows();
|
1133
|
+
message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined;
|
1134
|
+
message.minExecutionPeriod = object.minExecutionPeriod !== undefined && object.minExecutionPeriod !== null ? Duration.fromPartial(object.minExecutionPeriod) : undefined;
|
1135
|
+
return message;
|
1136
|
+
},
|
1137
|
+
fromAmino(object: DecisionPolicyWindowsAmino): DecisionPolicyWindows {
|
1138
|
+
const message = createBaseDecisionPolicyWindows();
|
1139
|
+
if (object.voting_period !== undefined && object.voting_period !== null) {
|
1140
|
+
message.votingPeriod = Duration.fromAmino(object.voting_period);
|
1141
|
+
}
|
1142
|
+
if (object.min_execution_period !== undefined && object.min_execution_period !== null) {
|
1143
|
+
message.minExecutionPeriod = Duration.fromAmino(object.min_execution_period);
|
1144
|
+
}
|
1145
|
+
return message;
|
1146
|
+
},
|
1147
|
+
toAmino(message: DecisionPolicyWindows): DecisionPolicyWindowsAmino {
|
1148
|
+
const obj: any = {};
|
1149
|
+
obj.voting_period = message.votingPeriod ? Duration.toAmino(message.votingPeriod) : undefined;
|
1150
|
+
obj.min_execution_period = message.minExecutionPeriod ? Duration.toAmino(message.minExecutionPeriod) : undefined;
|
1151
|
+
return obj;
|
1152
|
+
},
|
1153
|
+
fromAminoMsg(object: DecisionPolicyWindowsAminoMsg): DecisionPolicyWindows {
|
1154
|
+
return DecisionPolicyWindows.fromAmino(object.value);
|
1155
|
+
},
|
1156
|
+
toAminoMsg(message: DecisionPolicyWindows): DecisionPolicyWindowsAminoMsg {
|
1157
|
+
return {
|
1158
|
+
type: "cosmos-sdk/DecisionPolicyWindows",
|
1159
|
+
value: DecisionPolicyWindows.toAmino(message)
|
1160
|
+
};
|
1161
|
+
},
|
1162
|
+
fromProtoMsg(message: DecisionPolicyWindowsProtoMsg): DecisionPolicyWindows {
|
1163
|
+
return DecisionPolicyWindows.decode(message.value);
|
1164
|
+
},
|
1165
|
+
toProto(message: DecisionPolicyWindows): Uint8Array {
|
1166
|
+
return DecisionPolicyWindows.encode(message).finish();
|
1167
|
+
},
|
1168
|
+
toProtoMsg(message: DecisionPolicyWindows): DecisionPolicyWindowsProtoMsg {
|
1169
|
+
return {
|
1170
|
+
typeUrl: "/cosmos.group.v1.DecisionPolicyWindows",
|
1171
|
+
value: DecisionPolicyWindows.encode(message).finish()
|
1172
|
+
};
|
1173
|
+
}
|
1174
|
+
};
|
1175
|
+
function createBaseGroupInfo(): GroupInfo {
|
1176
|
+
return {
|
1177
|
+
id: BigInt(0),
|
1178
|
+
admin: "",
|
1179
|
+
metadata: "",
|
1180
|
+
version: BigInt(0),
|
1181
|
+
totalWeight: "",
|
1182
|
+
createdAt: new Date()
|
1183
|
+
};
|
1184
|
+
}
|
1185
|
+
export const GroupInfo = {
|
1186
|
+
typeUrl: "/cosmos.group.v1.GroupInfo",
|
1187
|
+
encode(message: GroupInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
1188
|
+
if (message.id !== BigInt(0)) {
|
1189
|
+
writer.uint32(8).uint64(message.id);
|
1190
|
+
}
|
1191
|
+
if (message.admin !== "") {
|
1192
|
+
writer.uint32(18).string(message.admin);
|
1193
|
+
}
|
1194
|
+
if (message.metadata !== "") {
|
1195
|
+
writer.uint32(26).string(message.metadata);
|
1196
|
+
}
|
1197
|
+
if (message.version !== BigInt(0)) {
|
1198
|
+
writer.uint32(32).uint64(message.version);
|
1199
|
+
}
|
1200
|
+
if (message.totalWeight !== "") {
|
1201
|
+
writer.uint32(42).string(message.totalWeight);
|
1202
|
+
}
|
1203
|
+
if (message.createdAt !== undefined) {
|
1204
|
+
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(50).fork()).ldelim();
|
1205
|
+
}
|
1206
|
+
return writer;
|
1207
|
+
},
|
1208
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GroupInfo {
|
1209
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
1210
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1211
|
+
const message = createBaseGroupInfo();
|
1212
|
+
while (reader.pos < end) {
|
1213
|
+
const tag = reader.uint32();
|
1214
|
+
switch (tag >>> 3) {
|
1215
|
+
case 1:
|
1216
|
+
message.id = reader.uint64();
|
1217
|
+
break;
|
1218
|
+
case 2:
|
1219
|
+
message.admin = reader.string();
|
1220
|
+
break;
|
1221
|
+
case 3:
|
1222
|
+
message.metadata = reader.string();
|
1223
|
+
break;
|
1224
|
+
case 4:
|
1225
|
+
message.version = reader.uint64();
|
1226
|
+
break;
|
1227
|
+
case 5:
|
1228
|
+
message.totalWeight = reader.string();
|
1229
|
+
break;
|
1230
|
+
case 6:
|
1231
|
+
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
1232
|
+
break;
|
1233
|
+
default:
|
1234
|
+
reader.skipType(tag & 7);
|
1235
|
+
break;
|
1236
|
+
}
|
1237
|
+
}
|
1238
|
+
return message;
|
1239
|
+
},
|
1240
|
+
fromPartial(object: Partial<GroupInfo>): GroupInfo {
|
1241
|
+
const message = createBaseGroupInfo();
|
1242
|
+
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
1243
|
+
message.admin = object.admin ?? "";
|
1244
|
+
message.metadata = object.metadata ?? "";
|
1245
|
+
message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0);
|
1246
|
+
message.totalWeight = object.totalWeight ?? "";
|
1247
|
+
message.createdAt = object.createdAt ?? undefined;
|
1248
|
+
return message;
|
1249
|
+
},
|
1250
|
+
fromAmino(object: GroupInfoAmino): GroupInfo {
|
1251
|
+
const message = createBaseGroupInfo();
|
1252
|
+
if (object.id !== undefined && object.id !== null) {
|
1253
|
+
message.id = BigInt(object.id);
|
1254
|
+
}
|
1255
|
+
if (object.admin !== undefined && object.admin !== null) {
|
1256
|
+
message.admin = object.admin;
|
1257
|
+
}
|
1258
|
+
if (object.metadata !== undefined && object.metadata !== null) {
|
1259
|
+
message.metadata = object.metadata;
|
1260
|
+
}
|
1261
|
+
if (object.version !== undefined && object.version !== null) {
|
1262
|
+
message.version = BigInt(object.version);
|
1263
|
+
}
|
1264
|
+
if (object.total_weight !== undefined && object.total_weight !== null) {
|
1265
|
+
message.totalWeight = object.total_weight;
|
1266
|
+
}
|
1267
|
+
if (object.created_at !== undefined && object.created_at !== null) {
|
1268
|
+
message.createdAt = fromTimestamp(Timestamp.fromAmino(object.created_at));
|
1269
|
+
}
|
1270
|
+
return message;
|
1271
|
+
},
|
1272
|
+
toAmino(message: GroupInfo): GroupInfoAmino {
|
1273
|
+
const obj: any = {};
|
1274
|
+
obj.id = message.id ? message.id.toString() : undefined;
|
1275
|
+
obj.admin = message.admin;
|
1276
|
+
obj.metadata = message.metadata;
|
1277
|
+
obj.version = message.version ? message.version.toString() : undefined;
|
1278
|
+
obj.total_weight = message.totalWeight;
|
1279
|
+
obj.created_at = message.createdAt ? Timestamp.toAmino(toTimestamp(message.createdAt)) : undefined;
|
1280
|
+
return obj;
|
1281
|
+
},
|
1282
|
+
fromAminoMsg(object: GroupInfoAminoMsg): GroupInfo {
|
1283
|
+
return GroupInfo.fromAmino(object.value);
|
1284
|
+
},
|
1285
|
+
toAminoMsg(message: GroupInfo): GroupInfoAminoMsg {
|
1286
|
+
return {
|
1287
|
+
type: "cosmos-sdk/GroupInfo",
|
1288
|
+
value: GroupInfo.toAmino(message)
|
1289
|
+
};
|
1290
|
+
},
|
1291
|
+
fromProtoMsg(message: GroupInfoProtoMsg): GroupInfo {
|
1292
|
+
return GroupInfo.decode(message.value);
|
1293
|
+
},
|
1294
|
+
toProto(message: GroupInfo): Uint8Array {
|
1295
|
+
return GroupInfo.encode(message).finish();
|
1296
|
+
},
|
1297
|
+
toProtoMsg(message: GroupInfo): GroupInfoProtoMsg {
|
1298
|
+
return {
|
1299
|
+
typeUrl: "/cosmos.group.v1.GroupInfo",
|
1300
|
+
value: GroupInfo.encode(message).finish()
|
1301
|
+
};
|
1302
|
+
}
|
1303
|
+
};
|
1304
|
+
function createBaseGroupMember(): GroupMember {
|
1305
|
+
return {
|
1306
|
+
groupId: BigInt(0),
|
1307
|
+
member: undefined
|
1308
|
+
};
|
1309
|
+
}
|
1310
|
+
export const GroupMember = {
|
1311
|
+
typeUrl: "/cosmos.group.v1.GroupMember",
|
1312
|
+
encode(message: GroupMember, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
1313
|
+
if (message.groupId !== BigInt(0)) {
|
1314
|
+
writer.uint32(8).uint64(message.groupId);
|
1315
|
+
}
|
1316
|
+
if (message.member !== undefined) {
|
1317
|
+
Member.encode(message.member, writer.uint32(18).fork()).ldelim();
|
1318
|
+
}
|
1319
|
+
return writer;
|
1320
|
+
},
|
1321
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GroupMember {
|
1322
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
1323
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1324
|
+
const message = createBaseGroupMember();
|
1325
|
+
while (reader.pos < end) {
|
1326
|
+
const tag = reader.uint32();
|
1327
|
+
switch (tag >>> 3) {
|
1328
|
+
case 1:
|
1329
|
+
message.groupId = reader.uint64();
|
1330
|
+
break;
|
1331
|
+
case 2:
|
1332
|
+
message.member = Member.decode(reader, reader.uint32());
|
1333
|
+
break;
|
1334
|
+
default:
|
1335
|
+
reader.skipType(tag & 7);
|
1336
|
+
break;
|
1337
|
+
}
|
1338
|
+
}
|
1339
|
+
return message;
|
1340
|
+
},
|
1341
|
+
fromPartial(object: Partial<GroupMember>): GroupMember {
|
1342
|
+
const message = createBaseGroupMember();
|
1343
|
+
message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
|
1344
|
+
message.member = object.member !== undefined && object.member !== null ? Member.fromPartial(object.member) : undefined;
|
1345
|
+
return message;
|
1346
|
+
},
|
1347
|
+
fromAmino(object: GroupMemberAmino): GroupMember {
|
1348
|
+
const message = createBaseGroupMember();
|
1349
|
+
if (object.group_id !== undefined && object.group_id !== null) {
|
1350
|
+
message.groupId = BigInt(object.group_id);
|
1351
|
+
}
|
1352
|
+
if (object.member !== undefined && object.member !== null) {
|
1353
|
+
message.member = Member.fromAmino(object.member);
|
1354
|
+
}
|
1355
|
+
return message;
|
1356
|
+
},
|
1357
|
+
toAmino(message: GroupMember): GroupMemberAmino {
|
1358
|
+
const obj: any = {};
|
1359
|
+
obj.group_id = message.groupId ? message.groupId.toString() : undefined;
|
1360
|
+
obj.member = message.member ? Member.toAmino(message.member) : undefined;
|
1361
|
+
return obj;
|
1362
|
+
},
|
1363
|
+
fromAminoMsg(object: GroupMemberAminoMsg): GroupMember {
|
1364
|
+
return GroupMember.fromAmino(object.value);
|
1365
|
+
},
|
1366
|
+
toAminoMsg(message: GroupMember): GroupMemberAminoMsg {
|
1367
|
+
return {
|
1368
|
+
type: "cosmos-sdk/GroupMember",
|
1369
|
+
value: GroupMember.toAmino(message)
|
1370
|
+
};
|
1371
|
+
},
|
1372
|
+
fromProtoMsg(message: GroupMemberProtoMsg): GroupMember {
|
1373
|
+
return GroupMember.decode(message.value);
|
1374
|
+
},
|
1375
|
+
toProto(message: GroupMember): Uint8Array {
|
1376
|
+
return GroupMember.encode(message).finish();
|
1377
|
+
},
|
1378
|
+
toProtoMsg(message: GroupMember): GroupMemberProtoMsg {
|
1379
|
+
return {
|
1380
|
+
typeUrl: "/cosmos.group.v1.GroupMember",
|
1381
|
+
value: GroupMember.encode(message).finish()
|
1382
|
+
};
|
1383
|
+
}
|
1384
|
+
};
|
1385
|
+
function createBaseGroupPolicyInfo(): GroupPolicyInfo {
|
1386
|
+
return {
|
1387
|
+
address: "",
|
1388
|
+
groupId: BigInt(0),
|
1389
|
+
admin: "",
|
1390
|
+
metadata: "",
|
1391
|
+
version: BigInt(0),
|
1392
|
+
decisionPolicy: undefined,
|
1393
|
+
createdAt: new Date()
|
1394
|
+
};
|
1395
|
+
}
|
1396
|
+
export const GroupPolicyInfo = {
|
1397
|
+
typeUrl: "/cosmos.group.v1.GroupPolicyInfo",
|
1398
|
+
encode(message: GroupPolicyInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
1399
|
+
if (message.address !== "") {
|
1400
|
+
writer.uint32(10).string(message.address);
|
1401
|
+
}
|
1402
|
+
if (message.groupId !== BigInt(0)) {
|
1403
|
+
writer.uint32(16).uint64(message.groupId);
|
1404
|
+
}
|
1405
|
+
if (message.admin !== "") {
|
1406
|
+
writer.uint32(26).string(message.admin);
|
1407
|
+
}
|
1408
|
+
if (message.metadata !== "") {
|
1409
|
+
writer.uint32(34).string(message.metadata);
|
1410
|
+
}
|
1411
|
+
if (message.version !== BigInt(0)) {
|
1412
|
+
writer.uint32(40).uint64(message.version);
|
1413
|
+
}
|
1414
|
+
if (message.decisionPolicy !== undefined) {
|
1415
|
+
Any.encode(message.decisionPolicy, writer.uint32(50).fork()).ldelim();
|
1416
|
+
}
|
1417
|
+
if (message.createdAt !== undefined) {
|
1418
|
+
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(58).fork()).ldelim();
|
1419
|
+
}
|
1420
|
+
return writer;
|
1421
|
+
},
|
1422
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GroupPolicyInfo {
|
1423
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
1424
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1425
|
+
const message = createBaseGroupPolicyInfo();
|
1426
|
+
while (reader.pos < end) {
|
1427
|
+
const tag = reader.uint32();
|
1428
|
+
switch (tag >>> 3) {
|
1429
|
+
case 1:
|
1430
|
+
message.address = reader.string();
|
1431
|
+
break;
|
1432
|
+
case 2:
|
1433
|
+
message.groupId = reader.uint64();
|
1434
|
+
break;
|
1435
|
+
case 3:
|
1436
|
+
message.admin = reader.string();
|
1437
|
+
break;
|
1438
|
+
case 4:
|
1439
|
+
message.metadata = reader.string();
|
1440
|
+
break;
|
1441
|
+
case 5:
|
1442
|
+
message.version = reader.uint64();
|
1443
|
+
break;
|
1444
|
+
case 6:
|
1445
|
+
message.decisionPolicy = Any.decode(reader, reader.uint32());
|
1446
|
+
break;
|
1447
|
+
case 7:
|
1448
|
+
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
1449
|
+
break;
|
1450
|
+
default:
|
1451
|
+
reader.skipType(tag & 7);
|
1452
|
+
break;
|
1453
|
+
}
|
1454
|
+
}
|
1455
|
+
return message;
|
1456
|
+
},
|
1457
|
+
fromPartial(object: Partial<GroupPolicyInfo>): GroupPolicyInfo {
|
1458
|
+
const message = createBaseGroupPolicyInfo();
|
1459
|
+
message.address = object.address ?? "";
|
1460
|
+
message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
|
1461
|
+
message.admin = object.admin ?? "";
|
1462
|
+
message.metadata = object.metadata ?? "";
|
1463
|
+
message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0);
|
1464
|
+
message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined;
|
1465
|
+
message.createdAt = object.createdAt ?? undefined;
|
1466
|
+
return message;
|
1467
|
+
},
|
1468
|
+
fromAmino(object: GroupPolicyInfoAmino): GroupPolicyInfo {
|
1469
|
+
const message = createBaseGroupPolicyInfo();
|
1470
|
+
if (object.address !== undefined && object.address !== null) {
|
1471
|
+
message.address = object.address;
|
1472
|
+
}
|
1473
|
+
if (object.group_id !== undefined && object.group_id !== null) {
|
1474
|
+
message.groupId = BigInt(object.group_id);
|
1475
|
+
}
|
1476
|
+
if (object.admin !== undefined && object.admin !== null) {
|
1477
|
+
message.admin = object.admin;
|
1478
|
+
}
|
1479
|
+
if (object.metadata !== undefined && object.metadata !== null) {
|
1480
|
+
message.metadata = object.metadata;
|
1481
|
+
}
|
1482
|
+
if (object.version !== undefined && object.version !== null) {
|
1483
|
+
message.version = BigInt(object.version);
|
1484
|
+
}
|
1485
|
+
if (object.decision_policy !== undefined && object.decision_policy !== null) {
|
1486
|
+
message.decisionPolicy = Any.fromAmino(object.decision_policy);
|
1487
|
+
}
|
1488
|
+
if (object.created_at !== undefined && object.created_at !== null) {
|
1489
|
+
message.createdAt = fromTimestamp(Timestamp.fromAmino(object.created_at));
|
1490
|
+
}
|
1491
|
+
return message;
|
1492
|
+
},
|
1493
|
+
toAmino(message: GroupPolicyInfo): GroupPolicyInfoAmino {
|
1494
|
+
const obj: any = {};
|
1495
|
+
obj.address = message.address;
|
1496
|
+
obj.group_id = message.groupId ? message.groupId.toString() : undefined;
|
1497
|
+
obj.admin = message.admin;
|
1498
|
+
obj.metadata = message.metadata;
|
1499
|
+
obj.version = message.version ? message.version.toString() : undefined;
|
1500
|
+
obj.decision_policy = message.decisionPolicy ? Any.toAmino(message.decisionPolicy) : undefined;
|
1501
|
+
obj.created_at = message.createdAt ? Timestamp.toAmino(toTimestamp(message.createdAt)) : undefined;
|
1502
|
+
return obj;
|
1503
|
+
},
|
1504
|
+
fromAminoMsg(object: GroupPolicyInfoAminoMsg): GroupPolicyInfo {
|
1505
|
+
return GroupPolicyInfo.fromAmino(object.value);
|
1506
|
+
},
|
1507
|
+
toAminoMsg(message: GroupPolicyInfo): GroupPolicyInfoAminoMsg {
|
1508
|
+
return {
|
1509
|
+
type: "cosmos-sdk/GroupPolicyInfo",
|
1510
|
+
value: GroupPolicyInfo.toAmino(message)
|
1511
|
+
};
|
1512
|
+
},
|
1513
|
+
fromProtoMsg(message: GroupPolicyInfoProtoMsg): GroupPolicyInfo {
|
1514
|
+
return GroupPolicyInfo.decode(message.value);
|
1515
|
+
},
|
1516
|
+
toProto(message: GroupPolicyInfo): Uint8Array {
|
1517
|
+
return GroupPolicyInfo.encode(message).finish();
|
1518
|
+
},
|
1519
|
+
toProtoMsg(message: GroupPolicyInfo): GroupPolicyInfoProtoMsg {
|
1520
|
+
return {
|
1521
|
+
typeUrl: "/cosmos.group.v1.GroupPolicyInfo",
|
1522
|
+
value: GroupPolicyInfo.encode(message).finish()
|
1523
|
+
};
|
1524
|
+
}
|
1525
|
+
};
|
1526
|
+
function createBaseProposal(): Proposal {
|
1527
|
+
return {
|
1528
|
+
id: BigInt(0),
|
1529
|
+
address: "",
|
1530
|
+
metadata: "",
|
1531
|
+
proposers: [],
|
1532
|
+
submitTime: new Date(),
|
1533
|
+
groupVersion: BigInt(0),
|
1534
|
+
groupPolicyVersion: BigInt(0),
|
1535
|
+
status: 0,
|
1536
|
+
result: 0,
|
1537
|
+
finalTallyResult: TallyResult.fromPartial({}),
|
1538
|
+
votingPeriodEnd: new Date(),
|
1539
|
+
executorResult: 0,
|
1540
|
+
messages: []
|
1541
|
+
};
|
1542
|
+
}
|
1543
|
+
export const Proposal = {
|
1544
|
+
typeUrl: "/cosmos.group.v1.Proposal",
|
1545
|
+
encode(message: Proposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
1546
|
+
if (message.id !== BigInt(0)) {
|
1547
|
+
writer.uint32(8).uint64(message.id);
|
1548
|
+
}
|
1549
|
+
if (message.address !== "") {
|
1550
|
+
writer.uint32(18).string(message.address);
|
1551
|
+
}
|
1552
|
+
if (message.metadata !== "") {
|
1553
|
+
writer.uint32(26).string(message.metadata);
|
1554
|
+
}
|
1555
|
+
for (const v of message.proposers) {
|
1556
|
+
writer.uint32(34).string(v!);
|
1557
|
+
}
|
1558
|
+
if (message.submitTime !== undefined) {
|
1559
|
+
Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim();
|
1560
|
+
}
|
1561
|
+
if (message.groupVersion !== BigInt(0)) {
|
1562
|
+
writer.uint32(48).uint64(message.groupVersion);
|
1563
|
+
}
|
1564
|
+
if (message.groupPolicyVersion !== BigInt(0)) {
|
1565
|
+
writer.uint32(56).uint64(message.groupPolicyVersion);
|
1566
|
+
}
|
1567
|
+
if (message.status !== 0) {
|
1568
|
+
writer.uint32(64).int32(message.status);
|
1569
|
+
}
|
1570
|
+
if (message.result !== 0) {
|
1571
|
+
writer.uint32(72).int32(message.result);
|
1572
|
+
}
|
1573
|
+
if (message.finalTallyResult !== undefined) {
|
1574
|
+
TallyResult.encode(message.finalTallyResult, writer.uint32(82).fork()).ldelim();
|
1575
|
+
}
|
1576
|
+
if (message.votingPeriodEnd !== undefined) {
|
1577
|
+
Timestamp.encode(toTimestamp(message.votingPeriodEnd), writer.uint32(90).fork()).ldelim();
|
1578
|
+
}
|
1579
|
+
if (message.executorResult !== 0) {
|
1580
|
+
writer.uint32(96).int32(message.executorResult);
|
1581
|
+
}
|
1582
|
+
for (const v of message.messages) {
|
1583
|
+
Any.encode(v!, writer.uint32(106).fork()).ldelim();
|
1584
|
+
}
|
1585
|
+
return writer;
|
1586
|
+
},
|
1587
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Proposal {
|
1588
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
1589
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1590
|
+
const message = createBaseProposal();
|
1591
|
+
while (reader.pos < end) {
|
1592
|
+
const tag = reader.uint32();
|
1593
|
+
switch (tag >>> 3) {
|
1594
|
+
case 1:
|
1595
|
+
message.id = reader.uint64();
|
1596
|
+
break;
|
1597
|
+
case 2:
|
1598
|
+
message.address = reader.string();
|
1599
|
+
break;
|
1600
|
+
case 3:
|
1601
|
+
message.metadata = reader.string();
|
1602
|
+
break;
|
1603
|
+
case 4:
|
1604
|
+
message.proposers.push(reader.string());
|
1605
|
+
break;
|
1606
|
+
case 5:
|
1607
|
+
message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
1608
|
+
break;
|
1609
|
+
case 6:
|
1610
|
+
message.groupVersion = reader.uint64();
|
1611
|
+
break;
|
1612
|
+
case 7:
|
1613
|
+
message.groupPolicyVersion = reader.uint64();
|
1614
|
+
break;
|
1615
|
+
case 8:
|
1616
|
+
message.status = (reader.int32() as any);
|
1617
|
+
break;
|
1618
|
+
case 9:
|
1619
|
+
message.result = (reader.int32() as any);
|
1620
|
+
break;
|
1621
|
+
case 10:
|
1622
|
+
message.finalTallyResult = TallyResult.decode(reader, reader.uint32());
|
1623
|
+
break;
|
1624
|
+
case 11:
|
1625
|
+
message.votingPeriodEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
1626
|
+
break;
|
1627
|
+
case 12:
|
1628
|
+
message.executorResult = (reader.int32() as any);
|
1629
|
+
break;
|
1630
|
+
case 13:
|
1631
|
+
message.messages.push(Any.decode(reader, reader.uint32()));
|
1632
|
+
break;
|
1633
|
+
default:
|
1634
|
+
reader.skipType(tag & 7);
|
1635
|
+
break;
|
1636
|
+
}
|
1637
|
+
}
|
1638
|
+
return message;
|
1639
|
+
},
|
1640
|
+
fromPartial(object: Partial<Proposal>): Proposal {
|
1641
|
+
const message = createBaseProposal();
|
1642
|
+
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
1643
|
+
message.address = object.address ?? "";
|
1644
|
+
message.metadata = object.metadata ?? "";
|
1645
|
+
message.proposers = object.proposers?.map(e => e) || [];
|
1646
|
+
message.submitTime = object.submitTime ?? undefined;
|
1647
|
+
message.groupVersion = object.groupVersion !== undefined && object.groupVersion !== null ? BigInt(object.groupVersion.toString()) : BigInt(0);
|
1648
|
+
message.groupPolicyVersion = object.groupPolicyVersion !== undefined && object.groupPolicyVersion !== null ? BigInt(object.groupPolicyVersion.toString()) : BigInt(0);
|
1649
|
+
message.status = object.status ?? 0;
|
1650
|
+
message.result = object.result ?? 0;
|
1651
|
+
message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined;
|
1652
|
+
message.votingPeriodEnd = object.votingPeriodEnd ?? undefined;
|
1653
|
+
message.executorResult = object.executorResult ?? 0;
|
1654
|
+
message.messages = object.messages?.map(e => Any.fromPartial(e)) || [];
|
1655
|
+
return message;
|
1656
|
+
},
|
1657
|
+
fromAmino(object: ProposalAmino): Proposal {
|
1658
|
+
const message = createBaseProposal();
|
1659
|
+
if (object.id !== undefined && object.id !== null) {
|
1660
|
+
message.id = BigInt(object.id);
|
1661
|
+
}
|
1662
|
+
if (object.address !== undefined && object.address !== null) {
|
1663
|
+
message.address = object.address;
|
1664
|
+
}
|
1665
|
+
if (object.metadata !== undefined && object.metadata !== null) {
|
1666
|
+
message.metadata = object.metadata;
|
1667
|
+
}
|
1668
|
+
message.proposers = object.proposers?.map(e => e) || [];
|
1669
|
+
if (object.submit_time !== undefined && object.submit_time !== null) {
|
1670
|
+
message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time));
|
1671
|
+
}
|
1672
|
+
if (object.group_version !== undefined && object.group_version !== null) {
|
1673
|
+
message.groupVersion = BigInt(object.group_version);
|
1674
|
+
}
|
1675
|
+
if (object.group_policy_version !== undefined && object.group_policy_version !== null) {
|
1676
|
+
message.groupPolicyVersion = BigInt(object.group_policy_version);
|
1677
|
+
}
|
1678
|
+
if (object.status !== undefined && object.status !== null) {
|
1679
|
+
message.status = proposalStatusFromJSON(object.status);
|
1680
|
+
}
|
1681
|
+
if (object.result !== undefined && object.result !== null) {
|
1682
|
+
message.result = proposalResultFromJSON(object.result);
|
1683
|
+
}
|
1684
|
+
if (object.final_tally_result !== undefined && object.final_tally_result !== null) {
|
1685
|
+
message.finalTallyResult = TallyResult.fromAmino(object.final_tally_result);
|
1686
|
+
}
|
1687
|
+
if (object.voting_period_end !== undefined && object.voting_period_end !== null) {
|
1688
|
+
message.votingPeriodEnd = fromTimestamp(Timestamp.fromAmino(object.voting_period_end));
|
1689
|
+
}
|
1690
|
+
if (object.executor_result !== undefined && object.executor_result !== null) {
|
1691
|
+
message.executorResult = proposalExecutorResultFromJSON(object.executor_result);
|
1692
|
+
}
|
1693
|
+
message.messages = object.messages?.map(e => Any.fromAmino(e)) || [];
|
1694
|
+
return message;
|
1695
|
+
},
|
1696
|
+
toAmino(message: Proposal): ProposalAmino {
|
1697
|
+
const obj: any = {};
|
1698
|
+
obj.id = message.id ? message.id.toString() : undefined;
|
1699
|
+
obj.address = message.address;
|
1700
|
+
obj.metadata = message.metadata;
|
1701
|
+
if (message.proposers) {
|
1702
|
+
obj.proposers = message.proposers.map(e => e);
|
1703
|
+
} else {
|
1704
|
+
obj.proposers = [];
|
1705
|
+
}
|
1706
|
+
obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : undefined;
|
1707
|
+
obj.group_version = message.groupVersion ? message.groupVersion.toString() : undefined;
|
1708
|
+
obj.group_policy_version = message.groupPolicyVersion ? message.groupPolicyVersion.toString() : undefined;
|
1709
|
+
obj.status = proposalStatusToJSON(message.status);
|
1710
|
+
obj.result = proposalResultToJSON(message.result);
|
1711
|
+
obj.final_tally_result = message.finalTallyResult ? TallyResult.toAmino(message.finalTallyResult) : undefined;
|
1712
|
+
obj.voting_period_end = message.votingPeriodEnd ? Timestamp.toAmino(toTimestamp(message.votingPeriodEnd)) : undefined;
|
1713
|
+
obj.executor_result = proposalExecutorResultToJSON(message.executorResult);
|
1714
|
+
if (message.messages) {
|
1715
|
+
obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined);
|
1716
|
+
} else {
|
1717
|
+
obj.messages = [];
|
1718
|
+
}
|
1719
|
+
return obj;
|
1720
|
+
},
|
1721
|
+
fromAminoMsg(object: ProposalAminoMsg): Proposal {
|
1722
|
+
return Proposal.fromAmino(object.value);
|
1723
|
+
},
|
1724
|
+
toAminoMsg(message: Proposal): ProposalAminoMsg {
|
1725
|
+
return {
|
1726
|
+
type: "cosmos-sdk/Proposal",
|
1727
|
+
value: Proposal.toAmino(message)
|
1728
|
+
};
|
1729
|
+
},
|
1730
|
+
fromProtoMsg(message: ProposalProtoMsg): Proposal {
|
1731
|
+
return Proposal.decode(message.value);
|
1732
|
+
},
|
1733
|
+
toProto(message: Proposal): Uint8Array {
|
1734
|
+
return Proposal.encode(message).finish();
|
1735
|
+
},
|
1736
|
+
toProtoMsg(message: Proposal): ProposalProtoMsg {
|
1737
|
+
return {
|
1738
|
+
typeUrl: "/cosmos.group.v1.Proposal",
|
1739
|
+
value: Proposal.encode(message).finish()
|
1740
|
+
};
|
1741
|
+
}
|
1742
|
+
};
|
1743
|
+
function createBaseTallyResult(): TallyResult {
|
1744
|
+
return {
|
1745
|
+
yesCount: "",
|
1746
|
+
abstainCount: "",
|
1747
|
+
noCount: "",
|
1748
|
+
noWithVetoCount: ""
|
1749
|
+
};
|
1750
|
+
}
|
1751
|
+
export const TallyResult = {
|
1752
|
+
typeUrl: "/cosmos.group.v1.TallyResult",
|
1753
|
+
encode(message: TallyResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
1754
|
+
if (message.yesCount !== "") {
|
1755
|
+
writer.uint32(10).string(message.yesCount);
|
1756
|
+
}
|
1757
|
+
if (message.abstainCount !== "") {
|
1758
|
+
writer.uint32(18).string(message.abstainCount);
|
1759
|
+
}
|
1760
|
+
if (message.noCount !== "") {
|
1761
|
+
writer.uint32(26).string(message.noCount);
|
1762
|
+
}
|
1763
|
+
if (message.noWithVetoCount !== "") {
|
1764
|
+
writer.uint32(34).string(message.noWithVetoCount);
|
1765
|
+
}
|
1766
|
+
return writer;
|
1767
|
+
},
|
1768
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TallyResult {
|
1769
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
1770
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1771
|
+
const message = createBaseTallyResult();
|
1772
|
+
while (reader.pos < end) {
|
1773
|
+
const tag = reader.uint32();
|
1774
|
+
switch (tag >>> 3) {
|
1775
|
+
case 1:
|
1776
|
+
message.yesCount = reader.string();
|
1777
|
+
break;
|
1778
|
+
case 2:
|
1779
|
+
message.abstainCount = reader.string();
|
1780
|
+
break;
|
1781
|
+
case 3:
|
1782
|
+
message.noCount = reader.string();
|
1783
|
+
break;
|
1784
|
+
case 4:
|
1785
|
+
message.noWithVetoCount = reader.string();
|
1786
|
+
break;
|
1787
|
+
default:
|
1788
|
+
reader.skipType(tag & 7);
|
1789
|
+
break;
|
1790
|
+
}
|
1791
|
+
}
|
1792
|
+
return message;
|
1793
|
+
},
|
1794
|
+
fromPartial(object: Partial<TallyResult>): TallyResult {
|
1795
|
+
const message = createBaseTallyResult();
|
1796
|
+
message.yesCount = object.yesCount ?? "";
|
1797
|
+
message.abstainCount = object.abstainCount ?? "";
|
1798
|
+
message.noCount = object.noCount ?? "";
|
1799
|
+
message.noWithVetoCount = object.noWithVetoCount ?? "";
|
1800
|
+
return message;
|
1801
|
+
},
|
1802
|
+
fromAmino(object: TallyResultAmino): TallyResult {
|
1803
|
+
const message = createBaseTallyResult();
|
1804
|
+
if (object.yes_count !== undefined && object.yes_count !== null) {
|
1805
|
+
message.yesCount = object.yes_count;
|
1806
|
+
}
|
1807
|
+
if (object.abstain_count !== undefined && object.abstain_count !== null) {
|
1808
|
+
message.abstainCount = object.abstain_count;
|
1809
|
+
}
|
1810
|
+
if (object.no_count !== undefined && object.no_count !== null) {
|
1811
|
+
message.noCount = object.no_count;
|
1812
|
+
}
|
1813
|
+
if (object.no_with_veto_count !== undefined && object.no_with_veto_count !== null) {
|
1814
|
+
message.noWithVetoCount = object.no_with_veto_count;
|
1815
|
+
}
|
1816
|
+
return message;
|
1817
|
+
},
|
1818
|
+
toAmino(message: TallyResult): TallyResultAmino {
|
1819
|
+
const obj: any = {};
|
1820
|
+
obj.yes_count = message.yesCount;
|
1821
|
+
obj.abstain_count = message.abstainCount;
|
1822
|
+
obj.no_count = message.noCount;
|
1823
|
+
obj.no_with_veto_count = message.noWithVetoCount;
|
1824
|
+
return obj;
|
1825
|
+
},
|
1826
|
+
fromAminoMsg(object: TallyResultAminoMsg): TallyResult {
|
1827
|
+
return TallyResult.fromAmino(object.value);
|
1828
|
+
},
|
1829
|
+
toAminoMsg(message: TallyResult): TallyResultAminoMsg {
|
1830
|
+
return {
|
1831
|
+
type: "cosmos-sdk/TallyResult",
|
1832
|
+
value: TallyResult.toAmino(message)
|
1833
|
+
};
|
1834
|
+
},
|
1835
|
+
fromProtoMsg(message: TallyResultProtoMsg): TallyResult {
|
1836
|
+
return TallyResult.decode(message.value);
|
1837
|
+
},
|
1838
|
+
toProto(message: TallyResult): Uint8Array {
|
1839
|
+
return TallyResult.encode(message).finish();
|
1840
|
+
},
|
1841
|
+
toProtoMsg(message: TallyResult): TallyResultProtoMsg {
|
1842
|
+
return {
|
1843
|
+
typeUrl: "/cosmos.group.v1.TallyResult",
|
1844
|
+
value: TallyResult.encode(message).finish()
|
1845
|
+
};
|
1846
|
+
}
|
1847
|
+
};
|
1848
|
+
function createBaseVote(): Vote {
|
1849
|
+
return {
|
1850
|
+
proposalId: BigInt(0),
|
1851
|
+
voter: "",
|
1852
|
+
option: 0,
|
1853
|
+
metadata: "",
|
1854
|
+
submitTime: new Date()
|
1855
|
+
};
|
1856
|
+
}
|
1857
|
+
export const Vote = {
|
1858
|
+
typeUrl: "/cosmos.group.v1.Vote",
|
1859
|
+
encode(message: Vote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
1860
|
+
if (message.proposalId !== BigInt(0)) {
|
1861
|
+
writer.uint32(8).uint64(message.proposalId);
|
1862
|
+
}
|
1863
|
+
if (message.voter !== "") {
|
1864
|
+
writer.uint32(18).string(message.voter);
|
1865
|
+
}
|
1866
|
+
if (message.option !== 0) {
|
1867
|
+
writer.uint32(24).int32(message.option);
|
1868
|
+
}
|
1869
|
+
if (message.metadata !== "") {
|
1870
|
+
writer.uint32(34).string(message.metadata);
|
1871
|
+
}
|
1872
|
+
if (message.submitTime !== undefined) {
|
1873
|
+
Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim();
|
1874
|
+
}
|
1875
|
+
return writer;
|
1876
|
+
},
|
1877
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Vote {
|
1878
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
1879
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1880
|
+
const message = createBaseVote();
|
1881
|
+
while (reader.pos < end) {
|
1882
|
+
const tag = reader.uint32();
|
1883
|
+
switch (tag >>> 3) {
|
1884
|
+
case 1:
|
1885
|
+
message.proposalId = reader.uint64();
|
1886
|
+
break;
|
1887
|
+
case 2:
|
1888
|
+
message.voter = reader.string();
|
1889
|
+
break;
|
1890
|
+
case 3:
|
1891
|
+
message.option = (reader.int32() as any);
|
1892
|
+
break;
|
1893
|
+
case 4:
|
1894
|
+
message.metadata = reader.string();
|
1895
|
+
break;
|
1896
|
+
case 5:
|
1897
|
+
message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
1898
|
+
break;
|
1899
|
+
default:
|
1900
|
+
reader.skipType(tag & 7);
|
1901
|
+
break;
|
1902
|
+
}
|
1903
|
+
}
|
1904
|
+
return message;
|
1905
|
+
},
|
1906
|
+
fromPartial(object: Partial<Vote>): Vote {
|
1907
|
+
const message = createBaseVote();
|
1908
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
|
1909
|
+
message.voter = object.voter ?? "";
|
1910
|
+
message.option = object.option ?? 0;
|
1911
|
+
message.metadata = object.metadata ?? "";
|
1912
|
+
message.submitTime = object.submitTime ?? undefined;
|
1913
|
+
return message;
|
1914
|
+
},
|
1915
|
+
fromAmino(object: VoteAmino): Vote {
|
1916
|
+
const message = createBaseVote();
|
1917
|
+
if (object.proposal_id !== undefined && object.proposal_id !== null) {
|
1918
|
+
message.proposalId = BigInt(object.proposal_id);
|
1919
|
+
}
|
1920
|
+
if (object.voter !== undefined && object.voter !== null) {
|
1921
|
+
message.voter = object.voter;
|
1922
|
+
}
|
1923
|
+
if (object.option !== undefined && object.option !== null) {
|
1924
|
+
message.option = voteOptionFromJSON(object.option);
|
1925
|
+
}
|
1926
|
+
if (object.metadata !== undefined && object.metadata !== null) {
|
1927
|
+
message.metadata = object.metadata;
|
1928
|
+
}
|
1929
|
+
if (object.submit_time !== undefined && object.submit_time !== null) {
|
1930
|
+
message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time));
|
1931
|
+
}
|
1932
|
+
return message;
|
1933
|
+
},
|
1934
|
+
toAmino(message: Vote): VoteAmino {
|
1935
|
+
const obj: any = {};
|
1936
|
+
obj.proposal_id = message.proposalId ? message.proposalId.toString() : undefined;
|
1937
|
+
obj.voter = message.voter;
|
1938
|
+
obj.option = voteOptionToJSON(message.option);
|
1939
|
+
obj.metadata = message.metadata;
|
1940
|
+
obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : undefined;
|
1941
|
+
return obj;
|
1942
|
+
},
|
1943
|
+
fromAminoMsg(object: VoteAminoMsg): Vote {
|
1944
|
+
return Vote.fromAmino(object.value);
|
1945
|
+
},
|
1946
|
+
toAminoMsg(message: Vote): VoteAminoMsg {
|
1947
|
+
return {
|
1948
|
+
type: "cosmos-sdk/Vote",
|
1949
|
+
value: Vote.toAmino(message)
|
1950
|
+
};
|
1951
|
+
},
|
1952
|
+
fromProtoMsg(message: VoteProtoMsg): Vote {
|
1953
|
+
return Vote.decode(message.value);
|
1954
|
+
},
|
1955
|
+
toProto(message: Vote): Uint8Array {
|
1956
|
+
return Vote.encode(message).finish();
|
1957
|
+
},
|
1958
|
+
toProtoMsg(message: Vote): VoteProtoMsg {
|
1959
|
+
return {
|
1960
|
+
typeUrl: "/cosmos.group.v1.Vote",
|
1961
|
+
value: Vote.encode(message).finish()
|
1962
|
+
};
|
1963
|
+
}
|
1964
|
+
};
|