@bze/bzejs 3.2.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -1
- package/dist/bze/bundle.d.ts +5982 -3068
- package/dist/bze/bundle.js +144 -93
- package/dist/bze/burner/burned_coins.d.ts +60 -0
- package/dist/bze/burner/burned_coins.js +92 -1
- package/dist/bze/burner/genesis.d.ts +4 -1
- package/dist/bze/burner/genesis.js +20 -4
- package/dist/bze/burner/params.d.ts +22 -0
- package/dist/bze/burner/params.js +29 -4
- package/dist/bze/dao/events.d.ts +1208 -0
- package/dist/bze/dao/events.js +1840 -0
- package/dist/bze/dao/genesis.d.ts +307 -0
- package/dist/bze/dao/genesis.js +435 -0
- package/dist/bze/dao/module/module.d.ts +64 -0
- package/dist/{cosmos/orm/module/v1alpha1 → bze/dao/module}/module.js +27 -23
- package/dist/bze/dao/params.d.ts +210 -0
- package/dist/bze/dao/params.js +268 -0
- package/dist/bze/dao/query.d.ts +1607 -0
- package/dist/bze/dao/query.js +2368 -0
- package/dist/bze/dao/query.lcd.d.ts +20 -0
- package/dist/bze/dao/query.lcd.js +125 -0
- package/dist/bze/dao/query.rpc.func.d.ts +88 -0
- package/dist/bze/dao/query.rpc.func.js +165 -0
- package/dist/bze/dao/store.d.ts +946 -0
- package/dist/bze/dao/store.js +1546 -0
- package/dist/bze/dao/tx.d.ts +2014 -0
- package/dist/bze/dao/tx.js +2823 -0
- package/dist/bze/dao/tx.registry.d.ts +191 -0
- package/dist/bze/dao/tx.registry.js +283 -0
- package/dist/bze/dao/tx.rpc.func.d.ts +124 -0
- package/dist/bze/dao/tx.rpc.func.js +159 -0
- package/dist/bze/guardian/module/module.d.ts +64 -0
- package/dist/bze/guardian/module/module.js +84 -0
- package/dist/bze/guardian/v1/events.d.ts +632 -0
- package/dist/bze/guardian/v1/events.js +985 -0
- package/dist/bze/guardian/v1/genesis.d.ts +85 -0
- package/dist/bze/guardian/v1/genesis.js +118 -0
- package/dist/bze/guardian/v1/params.d.ts +68 -0
- package/dist/bze/guardian/v1/params.js +91 -0
- package/dist/bze/guardian/v1/query.d.ts +472 -0
- package/dist/bze/guardian/v1/query.js +598 -0
- package/dist/bze/guardian/v1/query.lcd.d.ts +12 -0
- package/dist/bze/guardian/v1/query.lcd.js +34 -0
- package/dist/bze/guardian/v1/query.rpc.func.d.ts +29 -0
- package/dist/bze/guardian/v1/query.rpc.func.js +58 -0
- package/dist/bze/guardian/v1/tx.d.ts +1487 -0
- package/dist/bze/guardian/v1/tx.js +1870 -0
- package/dist/bze/guardian/v1/tx.registry.d.ts +143 -0
- package/dist/bze/guardian/v1/tx.registry.js +211 -0
- package/dist/bze/guardian/v1/tx.rpc.func.d.ts +91 -0
- package/dist/bze/guardian/v1/tx.rpc.func.js +118 -0
- package/dist/bze/lcd.d.ts +4 -3
- package/dist/bze/lcd.js +8 -5
- package/dist/bze/rewards/events.d.ts +79 -0
- package/dist/bze/rewards/events.js +109 -5
- package/dist/bze/tokenfactory/denom_authority.d.ts +13 -0
- package/dist/bze/tokenfactory/denom_authority.js +16 -4
- package/dist/bze/tokenfactory/denom_config.d.ts +92 -0
- package/dist/bze/tokenfactory/denom_config.js +111 -0
- package/dist/bze/tokenfactory/events.d.ts +122 -0
- package/dist/bze/tokenfactory/events.js +207 -1
- package/dist/bze/tokenfactory/genesis.d.ts +10 -0
- package/dist/bze/tokenfactory/genesis.js +15 -1
- package/dist/bze/tokenfactory/query.d.ts +107 -0
- package/dist/bze/tokenfactory/query.js +163 -1
- package/dist/bze/tokenfactory/query.lcd.d.ts +2 -1
- package/dist/bze/tokenfactory/query.lcd.js +12 -0
- package/dist/bze/tokenfactory/query.rpc.func.d.ts +8 -1
- package/dist/bze/tokenfactory/query.rpc.func.js +14 -1
- package/dist/bze/tokenfactory/tx.d.ts +396 -0
- package/dist/bze/tokenfactory/tx.js +542 -1
- package/dist/bze/tokenfactory/tx.registry.d.ts +37 -1
- package/dist/bze/tokenfactory/tx.registry.js +55 -1
- package/dist/bze/tokenfactory/tx.rpc.func.d.ts +25 -1
- package/dist/bze/tokenfactory/tx.rpc.func.js +31 -1
- package/dist/bze/tradebin/events.d.ts +312 -174
- package/dist/bze/tradebin/events.js +509 -321
- package/dist/bze/tradebin/genesis.d.ts +1 -4
- package/dist/bze/tradebin/genesis.js +3 -19
- package/dist/bze/tradebin/query.d.ts +109 -0
- package/dist/bze/tradebin/query.js +170 -1
- package/dist/bze/tradebin/query.lcd.d.ts +2 -1
- package/dist/bze/tradebin/query.lcd.js +13 -0
- package/dist/bze/tradebin/query.rpc.func.d.ts +9 -1
- package/dist/bze/tradebin/query.rpc.func.js +15 -1
- package/dist/bze/tradebin/store.d.ts +78 -77
- package/dist/bze/tradebin/store.js +120 -179
- package/dist/bze/tradebin/tx.d.ts +204 -0
- package/dist/bze/tradebin/tx.js +286 -1
- package/dist/bze/tradebin/tx.registry.d.ts +13 -1
- package/dist/bze/tradebin/tx.registry.js +19 -1
- package/dist/bze/tradebin/tx.rpc.func.d.ts +8 -1
- package/dist/bze/tradebin/tx.rpc.func.js +10 -1
- package/dist/bze/tradebin/v2/params.d.ts +54 -12
- package/dist/bze/tradebin/v2/params.js +61 -36
- package/dist/bze/txfeecollector/events.d.ts +185 -0
- package/dist/bze/txfeecollector/events.js +222 -1
- package/dist/cosmos/app/runtime/v1alpha1/module.d.ts +28 -2
- package/dist/cosmos/app/runtime/v1alpha1/module.js +34 -4
- package/dist/cosmos/auth/module/v1/module.d.ts +13 -0
- package/dist/cosmos/auth/module/v1/module.js +16 -4
- package/dist/cosmos/auth/v1beta1/auth.d.ts +0 -8
- package/dist/cosmos/auth/v1beta1/auth.js +0 -2
- package/dist/cosmos/auth/v1beta1/query.d.ts +0 -116
- package/dist/cosmos/auth/v1beta1/query.js +0 -28
- package/dist/cosmos/auth/v1beta1/query.lcd.js +7 -21
- package/dist/cosmos/auth/v1beta1/query.rpc.func.d.ts +0 -14
- package/dist/cosmos/auth/v1beta1/query.rpc.func.js +0 -14
- package/dist/cosmos/auth/v1beta1/tx.d.ts +0 -16
- package/dist/cosmos/auth/v1beta1/tx.js +0 -4
- package/dist/cosmos/auth/v1beta1/tx.rpc.func.d.ts +0 -2
- package/dist/cosmos/auth/v1beta1/tx.rpc.func.js +0 -2
- package/dist/cosmos/authz/v1beta1/query.lcd.js +2 -6
- package/dist/cosmos/authz/v1beta1/query.rpc.func.d.ts +0 -4
- package/dist/cosmos/authz/v1beta1/query.rpc.func.js +0 -4
- package/dist/cosmos/bank/v1beta1/authz.d.ts +0 -12
- package/dist/cosmos/bank/v1beta1/authz.js +0 -2
- package/dist/cosmos/bank/v1beta1/bank.d.ts +0 -16
- package/dist/cosmos/bank/v1beta1/genesis.d.ts +0 -4
- package/dist/cosmos/bank/v1beta1/query.d.ts +0 -92
- package/dist/cosmos/bank/v1beta1/query.js +0 -20
- package/dist/cosmos/bank/v1beta1/query.lcd.d.ts +2 -2
- package/dist/cosmos/bank/v1beta1/query.lcd.js +29 -30
- package/dist/cosmos/bank/v1beta1/query.rpc.func.d.ts +9 -19
- package/dist/cosmos/bank/v1beta1/query.rpc.func.js +15 -25
- package/dist/cosmos/bank/v1beta1/tx.d.ts +0 -32
- package/dist/cosmos/bank/v1beta1/tx.js +0 -8
- package/dist/cosmos/bank/v1beta1/tx.rpc.func.d.ts +0 -4
- package/dist/cosmos/bank/v1beta1/tx.rpc.func.js +0 -4
- package/dist/cosmos/base/abci/v1beta1/abci.d.ts +0 -12
- package/dist/cosmos/base/query/v1beta1/pagination.d.ts +0 -4
- package/dist/cosmos/base/tendermint/v1beta1/query.d.ts +0 -18
- package/dist/cosmos/base/tendermint/v1beta1/query.lcd.js +1 -3
- package/dist/cosmos/base/tendermint/v1beta1/query.rpc.func.d.ts +0 -2
- package/dist/cosmos/base/tendermint/v1beta1/query.rpc.func.js +0 -2
- package/dist/cosmos/bundle.d.ts +8277 -10119
- package/dist/cosmos/bundle.js +366 -415
- package/dist/cosmos/consensus/v1/tx.d.ts +0 -6
- package/dist/cosmos/consensus/v1/tx.rpc.func.d.ts +0 -2
- package/dist/cosmos/consensus/v1/tx.rpc.func.js +0 -2
- package/dist/cosmos/distribution/v1beta1/query.lcd.js +3 -1
- package/dist/cosmos/distribution/v1beta1/query.rpc.func.d.ts +2 -0
- package/dist/cosmos/distribution/v1beta1/query.rpc.func.js +2 -0
- package/dist/cosmos/distribution/v1beta1/tx.d.ts +0 -60
- package/dist/cosmos/distribution/v1beta1/tx.js +0 -12
- package/dist/cosmos/distribution/v1beta1/tx.rpc.func.d.ts +3 -5
- package/dist/cosmos/distribution/v1beta1/tx.rpc.func.js +3 -5
- package/dist/cosmos/feegrant/v1beta1/query.d.ts +0 -16
- package/dist/cosmos/feegrant/v1beta1/query.js +0 -4
- package/dist/cosmos/feegrant/v1beta1/query.lcd.js +1 -3
- package/dist/cosmos/feegrant/v1beta1/query.rpc.func.d.ts +0 -2
- package/dist/cosmos/feegrant/v1beta1/query.rpc.func.js +0 -2
- package/dist/cosmos/feegrant/v1beta1/tx.d.ts +0 -16
- package/dist/cosmos/feegrant/v1beta1/tx.js +0 -4
- package/dist/cosmos/feegrant/v1beta1/tx.rpc.func.d.ts +0 -2
- package/dist/cosmos/feegrant/v1beta1/tx.rpc.func.js +0 -2
- package/dist/cosmos/gov/v1/genesis.d.ts +0 -8
- package/dist/cosmos/gov/v1/gov.d.ts +0 -48
- package/dist/cosmos/gov/v1/gov.js +0 -2
- package/dist/cosmos/gov/v1/query.d.ts +0 -4
- package/dist/cosmos/gov/v1/tx.d.ts +0 -44
- package/dist/cosmos/gov/v1/tx.js +0 -8
- package/dist/cosmos/gov/v1/tx.rpc.func.d.ts +0 -4
- package/dist/cosmos/gov/v1/tx.rpc.func.js +0 -4
- package/dist/cosmos/gov/v1beta1/gov.d.ts +0 -12
- package/dist/cosmos/gov/v1beta1/gov.js +0 -2
- package/dist/cosmos/gov/v1beta1/tx.d.ts +0 -16
- package/dist/cosmos/gov/v1beta1/tx.js +0 -4
- package/dist/cosmos/gov/v1beta1/tx.rpc.func.d.ts +0 -2
- package/dist/cosmos/gov/v1beta1/tx.rpc.func.js +0 -2
- package/dist/cosmos/lcd.d.ts +0 -3
- package/dist/cosmos/lcd.js +0 -5
- package/dist/cosmos/mint/v1beta1/tx.d.ts +0 -16
- package/dist/cosmos/mint/v1beta1/tx.js +0 -4
- package/dist/cosmos/mint/v1beta1/tx.rpc.func.d.ts +0 -2
- package/dist/cosmos/mint/v1beta1/tx.rpc.func.js +0 -2
- package/dist/cosmos/params/v1beta1/query.d.ts +0 -24
- package/dist/cosmos/params/v1beta1/query.js +0 -6
- package/dist/cosmos/params/v1beta1/query.lcd.js +1 -3
- package/dist/cosmos/params/v1beta1/query.rpc.func.d.ts +0 -2
- package/dist/cosmos/params/v1beta1/query.rpc.func.js +0 -2
- package/dist/cosmos/staking/v1beta1/authz.d.ts +1 -13
- package/dist/cosmos/staking/v1beta1/authz.js +1 -7
- package/dist/cosmos/staking/v1beta1/staking.d.ts +0 -4
- package/dist/cosmos/staking/v1beta1/tx.d.ts +0 -36
- package/dist/cosmos/staking/v1beta1/tx.js +0 -8
- package/dist/cosmos/staking/v1beta1/tx.rpc.func.d.ts +0 -3
- package/dist/cosmos/staking/v1beta1/tx.rpc.func.js +0 -3
- package/dist/cosmos/store/snapshots/v1/snapshot.d.ts +0 -40
- package/dist/cosmos/store/snapshots/v1/snapshot.js +0 -10
- package/dist/cosmos/store/v1beta1/listening.d.ts +0 -8
- package/dist/cosmos/store/v1beta1/listening.js +0 -2
- package/dist/cosmos/tx/v1beta1/service.d.ts +0 -88
- package/dist/cosmos/tx/v1beta1/service.js +0 -20
- package/dist/cosmos/tx/v1beta1/service.lcd.js +1 -3
- package/dist/cosmos/tx/v1beta1/service.rpc.func.d.ts +0 -10
- package/dist/cosmos/tx/v1beta1/service.rpc.func.js +0 -10
- package/dist/cosmos/tx/v1beta1/tx.d.ts +76 -46
- package/dist/cosmos/tx/v1beta1/tx.js +28 -9
- package/dist/cosmos/upgrade/v1beta1/query.d.ts +0 -38
- package/dist/cosmos/upgrade/v1beta1/query.js +0 -8
- package/dist/cosmos/upgrade/v1beta1/query.lcd.js +2 -6
- package/dist/cosmos/upgrade/v1beta1/query.rpc.func.d.ts +0 -4
- package/dist/cosmos/upgrade/v1beta1/query.rpc.func.js +0 -4
- package/dist/cosmos/upgrade/v1beta1/tx.d.ts +0 -32
- package/dist/cosmos/upgrade/v1beta1/tx.js +0 -8
- package/dist/cosmos/upgrade/v1beta1/tx.rpc.func.d.ts +0 -4
- package/dist/cosmos/upgrade/v1beta1/tx.rpc.func.js +0 -4
- package/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +0 -8
- package/dist/cosmos/upgrade/v1beta1/upgrade.js +0 -2
- package/dist/cosmos/vesting/v1beta1/tx.d.ts +0 -32
- package/dist/cosmos/vesting/v1beta1/tx.js +0 -8
- package/dist/cosmos/vesting/v1beta1/tx.rpc.func.d.ts +0 -4
- package/dist/cosmos/vesting/v1beta1/tx.rpc.func.js +0 -4
- package/dist/cosmos/vesting/v1beta1/vesting.d.ts +0 -8
- package/dist/cosmos/vesting/v1beta1/vesting.js +0 -2
- package/dist/cosmos_proto/bundle.d.ts +30 -30
- package/dist/cosmos_proto/bundle.js +2 -2
- package/dist/esm/bze/bundle.js +144 -93
- package/dist/esm/bze/burner/burned_coins.js +91 -0
- package/dist/esm/bze/burner/genesis.js +21 -5
- package/dist/esm/bze/burner/params.js +29 -4
- package/dist/esm/bze/dao/events.js +1837 -0
- package/dist/esm/bze/dao/genesis.js +432 -0
- package/dist/esm/{cosmos/orm/module/v1alpha1 → bze/dao/module}/module.js +27 -23
- package/dist/esm/bze/dao/params.js +265 -0
- package/dist/esm/bze/dao/query.js +2363 -0
- package/dist/esm/bze/dao/query.lcd.js +121 -0
- package/dist/esm/bze/dao/query.rpc.func.js +162 -0
- package/dist/esm/bze/dao/store.js +1533 -0
- package/dist/esm/bze/dao/tx.js +2820 -0
- package/dist/esm/bze/dao/tx.registry.js +280 -0
- package/dist/esm/bze/dao/tx.rpc.func.js +156 -0
- package/dist/esm/bze/guardian/module/module.js +81 -0
- package/dist/esm/bze/guardian/v1/events.js +982 -0
- package/dist/esm/bze/guardian/v1/genesis.js +115 -0
- package/dist/esm/bze/guardian/v1/params.js +88 -0
- package/dist/esm/bze/guardian/v1/query.js +595 -0
- package/dist/esm/bze/guardian/v1/query.lcd.js +30 -0
- package/dist/esm/bze/guardian/v1/query.rpc.func.js +55 -0
- package/dist/esm/bze/guardian/v1/tx.js +1867 -0
- package/dist/esm/bze/guardian/v1/tx.registry.js +208 -0
- package/dist/esm/bze/guardian/v1/tx.rpc.func.js +115 -0
- package/dist/esm/bze/lcd.js +8 -5
- package/dist/esm/bze/rewards/events.js +108 -4
- package/dist/esm/bze/tokenfactory/denom_authority.js +16 -4
- package/dist/esm/bze/tokenfactory/denom_config.js +108 -0
- package/dist/esm/bze/tokenfactory/events.js +206 -0
- package/dist/esm/bze/tokenfactory/genesis.js +15 -1
- package/dist/esm/bze/tokenfactory/query.js +162 -0
- package/dist/esm/bze/tokenfactory/query.lcd.js +12 -0
- package/dist/esm/bze/tokenfactory/query.rpc.func.js +14 -1
- package/dist/esm/bze/tokenfactory/tx.js +541 -0
- package/dist/esm/bze/tokenfactory/tx.registry.js +56 -2
- package/dist/esm/bze/tokenfactory/tx.rpc.func.js +31 -1
- package/dist/esm/bze/tradebin/events.js +508 -320
- package/dist/esm/bze/tradebin/genesis.js +4 -20
- package/dist/esm/bze/tradebin/query.js +169 -0
- package/dist/esm/bze/tradebin/query.lcd.js +13 -0
- package/dist/esm/bze/tradebin/query.rpc.func.js +15 -1
- package/dist/esm/bze/tradebin/store.js +119 -178
- package/dist/esm/bze/tradebin/tx.js +285 -0
- package/dist/esm/bze/tradebin/tx.registry.js +20 -2
- package/dist/esm/bze/tradebin/tx.rpc.func.js +10 -1
- package/dist/esm/bze/tradebin/v2/params.js +61 -36
- package/dist/esm/bze/txfeecollector/events.js +221 -0
- package/dist/esm/cosmos/app/runtime/v1alpha1/module.js +34 -4
- package/dist/esm/cosmos/auth/module/v1/module.js +16 -4
- package/dist/esm/cosmos/auth/v1beta1/auth.js +0 -2
- package/dist/esm/cosmos/auth/v1beta1/query.js +0 -28
- package/dist/esm/cosmos/auth/v1beta1/query.lcd.js +7 -21
- package/dist/esm/cosmos/auth/v1beta1/query.rpc.func.js +0 -14
- package/dist/esm/cosmos/auth/v1beta1/tx.js +0 -4
- package/dist/esm/cosmos/auth/v1beta1/tx.rpc.func.js +0 -2
- package/dist/esm/cosmos/authz/v1beta1/query.lcd.js +2 -6
- package/dist/esm/cosmos/authz/v1beta1/query.rpc.func.js +0 -4
- package/dist/esm/cosmos/bank/v1beta1/authz.js +0 -2
- package/dist/esm/cosmos/bank/v1beta1/query.js +0 -20
- package/dist/esm/cosmos/bank/v1beta1/query.lcd.js +29 -30
- package/dist/esm/cosmos/bank/v1beta1/query.rpc.func.js +15 -25
- package/dist/esm/cosmos/bank/v1beta1/tx.js +0 -8
- package/dist/esm/cosmos/bank/v1beta1/tx.rpc.func.js +0 -4
- package/dist/esm/cosmos/base/tendermint/v1beta1/query.lcd.js +1 -3
- package/dist/esm/cosmos/base/tendermint/v1beta1/query.rpc.func.js +0 -2
- package/dist/esm/cosmos/bundle.js +366 -415
- package/dist/esm/cosmos/consensus/v1/tx.rpc.func.js +0 -2
- package/dist/esm/cosmos/distribution/v1beta1/query.lcd.js +3 -1
- package/dist/esm/cosmos/distribution/v1beta1/query.rpc.func.js +2 -0
- package/dist/esm/cosmos/distribution/v1beta1/tx.js +0 -12
- package/dist/esm/cosmos/distribution/v1beta1/tx.rpc.func.js +3 -5
- package/dist/esm/cosmos/feegrant/v1beta1/query.js +0 -4
- package/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +1 -3
- package/dist/esm/cosmos/feegrant/v1beta1/query.rpc.func.js +0 -2
- package/dist/esm/cosmos/feegrant/v1beta1/tx.js +0 -4
- package/dist/esm/cosmos/feegrant/v1beta1/tx.rpc.func.js +0 -2
- package/dist/esm/cosmos/gov/v1/gov.js +0 -2
- package/dist/esm/cosmos/gov/v1/tx.js +0 -8
- package/dist/esm/cosmos/gov/v1/tx.rpc.func.js +0 -4
- package/dist/esm/cosmos/gov/v1beta1/gov.js +0 -2
- package/dist/esm/cosmos/gov/v1beta1/tx.js +0 -4
- package/dist/esm/cosmos/gov/v1beta1/tx.rpc.func.js +0 -2
- package/dist/esm/cosmos/lcd.js +0 -5
- package/dist/esm/cosmos/mint/v1beta1/tx.js +0 -4
- package/dist/esm/cosmos/mint/v1beta1/tx.rpc.func.js +0 -2
- package/dist/esm/cosmos/params/v1beta1/query.js +0 -6
- package/dist/esm/cosmos/params/v1beta1/query.lcd.js +1 -3
- package/dist/esm/cosmos/params/v1beta1/query.rpc.func.js +0 -2
- package/dist/esm/cosmos/staking/v1beta1/authz.js +1 -7
- package/dist/esm/cosmos/staking/v1beta1/tx.js +0 -8
- package/dist/esm/cosmos/staking/v1beta1/tx.rpc.func.js +0 -3
- package/dist/esm/cosmos/store/snapshots/v1/snapshot.js +0 -10
- package/dist/esm/cosmos/store/v1beta1/listening.js +0 -2
- package/dist/esm/cosmos/tx/v1beta1/service.js +0 -20
- package/dist/esm/cosmos/tx/v1beta1/service.lcd.js +1 -3
- package/dist/esm/cosmos/tx/v1beta1/service.rpc.func.js +0 -10
- package/dist/esm/cosmos/tx/v1beta1/tx.js +29 -10
- package/dist/esm/cosmos/upgrade/v1beta1/query.js +0 -8
- package/dist/esm/cosmos/upgrade/v1beta1/query.lcd.js +2 -6
- package/dist/esm/cosmos/upgrade/v1beta1/query.rpc.func.js +0 -4
- package/dist/esm/cosmos/upgrade/v1beta1/tx.js +0 -8
- package/dist/esm/cosmos/upgrade/v1beta1/tx.rpc.func.js +0 -4
- package/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +0 -2
- package/dist/esm/cosmos/vesting/v1beta1/tx.js +0 -8
- package/dist/esm/cosmos/vesting/v1beta1/tx.rpc.func.js +0 -4
- package/dist/esm/cosmos/vesting/v1beta1/vesting.js +0 -2
- package/dist/esm/cosmos_proto/bundle.js +2 -2
- package/dist/esm/gogoproto/bundle.js +2 -2
- package/dist/esm/google/bundle.js +8 -8
- package/dist/esm/ibc/applications/transfer/v1/tx.js +4 -16
- package/dist/esm/ibc/bundle.js +93 -121
- package/dist/esm/ibc/core/client/v1/tx.js +187 -0
- package/dist/esm/ibc/core/client/v1/tx.registry.js +20 -2
- package/dist/esm/ibc/core/client/v1/tx.rpc.func.js +10 -1
- package/dist/esm/ibc/lcd.js +0 -10
- package/dist/esm/ibc/lightclients/wasm/v1/wasm.js +93 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/ratelimit/bundle.js +35 -0
- package/dist/esm/ratelimit/lcd.js +106 -0
- package/dist/esm/ratelimit/module/v1/module.js +81 -0
- package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/genesis.js +49 -27
- package/dist/esm/ratelimit/v1/params.js +68 -0
- package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/query.js +105 -195
- package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/query.lcd.js +10 -10
- package/dist/esm/ratelimit/v1/query.rpc.func.js +83 -0
- package/dist/esm/{ibc/applications/rate_limiting/v1/rate_limiting.js → ratelimit/v1/ratelimit.js} +29 -73
- package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/tx.js +77 -109
- package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/tx.registry.js +13 -13
- package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/tx.rpc.func.js +9 -9
- package/dist/esm/tendermint/bundle.js +20 -20
- package/dist/gogoproto/bundle.js +2 -2
- package/dist/google/bundle.d.ts +550 -550
- package/dist/google/bundle.js +8 -8
- package/dist/ibc/applications/transfer/v1/tx.d.ts +0 -19
- package/dist/ibc/applications/transfer/v1/tx.js +4 -16
- package/dist/ibc/bundle.d.ts +506 -1065
- package/dist/ibc/bundle.js +93 -121
- package/dist/ibc/core/client/v1/tx.d.ts +155 -0
- package/dist/ibc/core/client/v1/tx.js +188 -1
- package/dist/ibc/core/client/v1/tx.registry.d.ts +13 -1
- package/dist/ibc/core/client/v1/tx.registry.js +19 -1
- package/dist/ibc/core/client/v1/tx.rpc.func.d.ts +8 -1
- package/dist/ibc/core/client/v1/tx.rpc.func.js +10 -1
- package/dist/ibc/lcd.d.ts +0 -6
- package/dist/ibc/lcd.js +0 -10
- package/dist/ibc/lightclients/wasm/v1/wasm.d.ts +75 -0
- package/dist/ibc/lightclients/wasm/v1/wasm.js +94 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/ratelimit/bundle.d.ts +625 -0
- package/dist/ratelimit/bundle.js +71 -0
- package/dist/ratelimit/lcd.d.ts +63 -0
- package/dist/ratelimit/lcd.js +143 -0
- package/dist/ratelimit/module/v1/module.d.ts +64 -0
- package/dist/ratelimit/module/v1/module.js +84 -0
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/genesis.d.ts +19 -14
- package/dist/ratelimit/v1/genesis.js +182 -0
- package/dist/ratelimit/v1/params.d.ts +55 -0
- package/dist/ratelimit/v1/params.js +71 -0
- package/dist/ratelimit/v1/query.d.ts +656 -0
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/query.js +142 -232
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/query.lcd.d.ts +3 -3
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/query.lcd.js +10 -10
- package/dist/ratelimit/v1/query.rpc.func.d.ts +45 -0
- package/dist/ratelimit/v1/query.rpc.func.js +86 -0
- package/dist/{ibc/applications/rate_limiting/v1/rate_limiting.d.ts → ratelimit/v1/ratelimit.d.ts} +62 -82
- package/dist/{ibc/applications/rate_limiting/v1/rate_limiting.js → ratelimit/v1/ratelimit.js} +29 -73
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/tx.d.ts +97 -121
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/tx.js +77 -109
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/tx.registry.d.ts +1 -1
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/tx.registry.js +13 -13
- package/dist/ratelimit/v1/tx.rpc.func.d.ts +29 -0
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/tx.rpc.func.js +9 -9
- package/dist/tendermint/bundle.d.ts +1120 -1120
- package/dist/tendermint/bundle.js +20 -20
- package/package.json +10 -5
- package/dist/cosmos/group/module/v1/module.d.ts +0 -80
- package/dist/cosmos/group/module/v1/module.js +0 -104
- package/dist/cosmos/group/v1/events.d.ts +0 -771
- package/dist/cosmos/group/v1/events.js +0 -1031
- package/dist/cosmos/group/v1/genesis.d.ts +0 -136
- package/dist/cosmos/group/v1/genesis.js +0 -201
- package/dist/cosmos/group/v1/query.d.ts +0 -2001
- package/dist/cosmos/group/v1/query.js +0 -2787
- package/dist/cosmos/group/v1/query.lcd.d.ts +0 -22
- package/dist/cosmos/group/v1/query.lcd.js +0 -158
- package/dist/cosmos/group/v1/query.rpc.func.d.ts +0 -105
- package/dist/cosmos/group/v1/query.rpc.func.js +0 -194
- package/dist/cosmos/group/v1/tx.d.ts +0 -2124
- package/dist/cosmos/group/v1/tx.js +0 -2821
- package/dist/cosmos/group/v1/tx.registry.d.ts +0 -179
- package/dist/cosmos/group/v1/tx.registry.js +0 -265
- package/dist/cosmos/group/v1/tx.rpc.func.d.ts +0 -99
- package/dist/cosmos/group/v1/tx.rpc.func.js +0 -132
- package/dist/cosmos/group/v1/types.d.ts +0 -1297
- package/dist/cosmos/group/v1/types.js +0 -1677
- package/dist/cosmos/orm/module/v1alpha1/module.d.ts +0 -65
- package/dist/cosmos/orm/query/v1alpha1/query.d.ts +0 -622
- package/dist/cosmos/orm/query/v1alpha1/query.js +0 -835
- package/dist/cosmos/orm/query/v1alpha1/query.rpc.func.d.ts +0 -15
- package/dist/cosmos/orm/query/v1alpha1/query.rpc.func.js +0 -32
- package/dist/esm/cosmos/group/module/v1/module.js +0 -101
- package/dist/esm/cosmos/group/v1/events.js +0 -1028
- package/dist/esm/cosmos/group/v1/genesis.js +0 -198
- package/dist/esm/cosmos/group/v1/query.js +0 -2784
- package/dist/esm/cosmos/group/v1/query.lcd.js +0 -154
- package/dist/esm/cosmos/group/v1/query.rpc.func.js +0 -191
- package/dist/esm/cosmos/group/v1/tx.js +0 -2816
- package/dist/esm/cosmos/group/v1/tx.registry.js +0 -262
- package/dist/esm/cosmos/group/v1/tx.rpc.func.js +0 -129
- package/dist/esm/cosmos/group/v1/types.js +0 -1668
- package/dist/esm/cosmos/orm/query/v1alpha1/query.js +0 -832
- package/dist/esm/cosmos/orm/query/v1alpha1/query.rpc.func.js +0 -29
- package/dist/esm/ibc/applications/packet_forward_middleware/v1/genesis.js +0 -409
- package/dist/esm/ibc/applications/rate_limiting/v1/query.rpc.func.js +0 -83
- package/dist/ibc/applications/packet_forward_middleware/v1/genesis.d.ts +0 -225
- package/dist/ibc/applications/packet_forward_middleware/v1/genesis.js +0 -412
- package/dist/ibc/applications/rate_limiting/v1/genesis.js +0 -160
- package/dist/ibc/applications/rate_limiting/v1/query.d.ts +0 -704
- package/dist/ibc/applications/rate_limiting/v1/query.rpc.func.d.ts +0 -45
- package/dist/ibc/applications/rate_limiting/v1/query.rpc.func.js +0 -86
- package/dist/ibc/applications/rate_limiting/v1/tx.rpc.func.d.ts +0 -29
|
@@ -1,2816 +0,0 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { MemberRequest, ThresholdDecisionPolicy, PercentageDecisionPolicy } from "./types";
|
|
3
|
-
import { Any } from "../../../google/protobuf/any";
|
|
4
|
-
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
6
|
-
import { isSet } from "../../../helpers";
|
|
7
|
-
/** Exec defines modes of execution of a proposal on creation or on new vote. */
|
|
8
|
-
export var Exec;
|
|
9
|
-
(function (Exec) {
|
|
10
|
-
/**
|
|
11
|
-
* EXEC_UNSPECIFIED - An empty value means that there should be a separate
|
|
12
|
-
* MsgExec request for the proposal to execute.
|
|
13
|
-
*/
|
|
14
|
-
Exec[Exec["EXEC_UNSPECIFIED"] = 0] = "EXEC_UNSPECIFIED";
|
|
15
|
-
/**
|
|
16
|
-
* EXEC_TRY - Try to execute the proposal immediately.
|
|
17
|
-
* If the proposal is not allowed per the DecisionPolicy,
|
|
18
|
-
* the proposal will still be open and could
|
|
19
|
-
* be executed at a later point.
|
|
20
|
-
*/
|
|
21
|
-
Exec[Exec["EXEC_TRY"] = 1] = "EXEC_TRY";
|
|
22
|
-
Exec[Exec["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
23
|
-
})(Exec || (Exec = {}));
|
|
24
|
-
export const ExecSDKType = Exec;
|
|
25
|
-
export const ExecAmino = Exec;
|
|
26
|
-
export function execFromJSON(object) {
|
|
27
|
-
switch (object) {
|
|
28
|
-
case 0:
|
|
29
|
-
case "EXEC_UNSPECIFIED":
|
|
30
|
-
return Exec.EXEC_UNSPECIFIED;
|
|
31
|
-
case 1:
|
|
32
|
-
case "EXEC_TRY":
|
|
33
|
-
return Exec.EXEC_TRY;
|
|
34
|
-
case -1:
|
|
35
|
-
case "UNRECOGNIZED":
|
|
36
|
-
default:
|
|
37
|
-
return Exec.UNRECOGNIZED;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
export function execToJSON(object) {
|
|
41
|
-
switch (object) {
|
|
42
|
-
case Exec.EXEC_UNSPECIFIED:
|
|
43
|
-
return "EXEC_UNSPECIFIED";
|
|
44
|
-
case Exec.EXEC_TRY:
|
|
45
|
-
return "EXEC_TRY";
|
|
46
|
-
case Exec.UNRECOGNIZED:
|
|
47
|
-
default:
|
|
48
|
-
return "UNRECOGNIZED";
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
function createBaseMsgCreateGroup() {
|
|
52
|
-
return {
|
|
53
|
-
admin: "",
|
|
54
|
-
members: [],
|
|
55
|
-
metadata: ""
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* MsgCreateGroup is the Msg/CreateGroup request type.
|
|
60
|
-
* @name MsgCreateGroup
|
|
61
|
-
* @package cosmos.group.v1
|
|
62
|
-
* @see proto type: cosmos.group.v1.MsgCreateGroup
|
|
63
|
-
*/
|
|
64
|
-
export const MsgCreateGroup = {
|
|
65
|
-
typeUrl: "/cosmos.group.v1.MsgCreateGroup",
|
|
66
|
-
aminoType: "cosmos-sdk/MsgCreateGroup",
|
|
67
|
-
is(o) {
|
|
68
|
-
return o && (o.$typeUrl === MsgCreateGroup.typeUrl || typeof o.admin === "string" && Array.isArray(o.members) && (!o.members.length || MemberRequest.is(o.members[0])) && typeof o.metadata === "string");
|
|
69
|
-
},
|
|
70
|
-
isSDK(o) {
|
|
71
|
-
return o && (o.$typeUrl === MsgCreateGroup.typeUrl || typeof o.admin === "string" && Array.isArray(o.members) && (!o.members.length || MemberRequest.isSDK(o.members[0])) && typeof o.metadata === "string");
|
|
72
|
-
},
|
|
73
|
-
isAmino(o) {
|
|
74
|
-
return o && (o.$typeUrl === MsgCreateGroup.typeUrl || typeof o.admin === "string" && Array.isArray(o.members) && (!o.members.length || MemberRequest.isAmino(o.members[0])) && typeof o.metadata === "string");
|
|
75
|
-
},
|
|
76
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
77
|
-
if (message.admin !== "") {
|
|
78
|
-
writer.uint32(10).string(message.admin);
|
|
79
|
-
}
|
|
80
|
-
for (const v of message.members) {
|
|
81
|
-
MemberRequest.encode(v, writer.uint32(18).fork()).ldelim();
|
|
82
|
-
}
|
|
83
|
-
if (message.metadata !== "") {
|
|
84
|
-
writer.uint32(26).string(message.metadata);
|
|
85
|
-
}
|
|
86
|
-
return writer;
|
|
87
|
-
},
|
|
88
|
-
decode(input, length) {
|
|
89
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
90
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
91
|
-
const message = createBaseMsgCreateGroup();
|
|
92
|
-
while (reader.pos < end) {
|
|
93
|
-
const tag = reader.uint32();
|
|
94
|
-
switch (tag >>> 3) {
|
|
95
|
-
case 1:
|
|
96
|
-
message.admin = reader.string();
|
|
97
|
-
break;
|
|
98
|
-
case 2:
|
|
99
|
-
message.members.push(MemberRequest.decode(reader, reader.uint32()));
|
|
100
|
-
break;
|
|
101
|
-
case 3:
|
|
102
|
-
message.metadata = reader.string();
|
|
103
|
-
break;
|
|
104
|
-
default:
|
|
105
|
-
reader.skipType(tag & 7);
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
return message;
|
|
110
|
-
},
|
|
111
|
-
fromPartial(object) {
|
|
112
|
-
const message = createBaseMsgCreateGroup();
|
|
113
|
-
message.admin = object.admin ?? "";
|
|
114
|
-
message.members = object.members?.map(e => MemberRequest.fromPartial(e)) || [];
|
|
115
|
-
message.metadata = object.metadata ?? "";
|
|
116
|
-
return message;
|
|
117
|
-
},
|
|
118
|
-
fromAmino(object) {
|
|
119
|
-
const message = createBaseMsgCreateGroup();
|
|
120
|
-
if (object.admin !== undefined && object.admin !== null) {
|
|
121
|
-
message.admin = object.admin;
|
|
122
|
-
}
|
|
123
|
-
message.members = object.members?.map(e => MemberRequest.fromAmino(e)) || [];
|
|
124
|
-
if (object.metadata !== undefined && object.metadata !== null) {
|
|
125
|
-
message.metadata = object.metadata;
|
|
126
|
-
}
|
|
127
|
-
return message;
|
|
128
|
-
},
|
|
129
|
-
toAmino(message) {
|
|
130
|
-
const obj = {};
|
|
131
|
-
obj.admin = message.admin === "" ? undefined : message.admin;
|
|
132
|
-
if (message.members) {
|
|
133
|
-
obj.members = message.members.map(e => e ? MemberRequest.toAmino(e) : undefined);
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
obj.members = message.members;
|
|
137
|
-
}
|
|
138
|
-
obj.metadata = message.metadata === "" ? undefined : message.metadata;
|
|
139
|
-
return obj;
|
|
140
|
-
},
|
|
141
|
-
fromAminoMsg(object) {
|
|
142
|
-
return MsgCreateGroup.fromAmino(object.value);
|
|
143
|
-
},
|
|
144
|
-
toAminoMsg(message) {
|
|
145
|
-
return {
|
|
146
|
-
type: "cosmos-sdk/MsgCreateGroup",
|
|
147
|
-
value: MsgCreateGroup.toAmino(message)
|
|
148
|
-
};
|
|
149
|
-
},
|
|
150
|
-
fromProtoMsg(message) {
|
|
151
|
-
return MsgCreateGroup.decode(message.value);
|
|
152
|
-
},
|
|
153
|
-
toProto(message) {
|
|
154
|
-
return MsgCreateGroup.encode(message).finish();
|
|
155
|
-
},
|
|
156
|
-
toProtoMsg(message) {
|
|
157
|
-
return {
|
|
158
|
-
typeUrl: "/cosmos.group.v1.MsgCreateGroup",
|
|
159
|
-
value: MsgCreateGroup.encode(message).finish()
|
|
160
|
-
};
|
|
161
|
-
},
|
|
162
|
-
registerTypeUrl() {
|
|
163
|
-
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MsgCreateGroup.typeUrl)) {
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
MemberRequest.registerTypeUrl();
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
function createBaseMsgCreateGroupResponse() {
|
|
170
|
-
return {
|
|
171
|
-
groupId: BigInt(0)
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* MsgCreateGroupResponse is the Msg/CreateGroup response type.
|
|
176
|
-
* @name MsgCreateGroupResponse
|
|
177
|
-
* @package cosmos.group.v1
|
|
178
|
-
* @see proto type: cosmos.group.v1.MsgCreateGroupResponse
|
|
179
|
-
*/
|
|
180
|
-
export const MsgCreateGroupResponse = {
|
|
181
|
-
typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse",
|
|
182
|
-
aminoType: "cosmos-sdk/MsgCreateGroupResponse",
|
|
183
|
-
is(o) {
|
|
184
|
-
return o && (o.$typeUrl === MsgCreateGroupResponse.typeUrl || typeof o.groupId === "bigint");
|
|
185
|
-
},
|
|
186
|
-
isSDK(o) {
|
|
187
|
-
return o && (o.$typeUrl === MsgCreateGroupResponse.typeUrl || typeof o.group_id === "bigint");
|
|
188
|
-
},
|
|
189
|
-
isAmino(o) {
|
|
190
|
-
return o && (o.$typeUrl === MsgCreateGroupResponse.typeUrl || typeof o.group_id === "bigint");
|
|
191
|
-
},
|
|
192
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
193
|
-
if (message.groupId !== BigInt(0)) {
|
|
194
|
-
writer.uint32(8).uint64(message.groupId);
|
|
195
|
-
}
|
|
196
|
-
return writer;
|
|
197
|
-
},
|
|
198
|
-
decode(input, length) {
|
|
199
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
200
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
201
|
-
const message = createBaseMsgCreateGroupResponse();
|
|
202
|
-
while (reader.pos < end) {
|
|
203
|
-
const tag = reader.uint32();
|
|
204
|
-
switch (tag >>> 3) {
|
|
205
|
-
case 1:
|
|
206
|
-
message.groupId = reader.uint64();
|
|
207
|
-
break;
|
|
208
|
-
default:
|
|
209
|
-
reader.skipType(tag & 7);
|
|
210
|
-
break;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
return message;
|
|
214
|
-
},
|
|
215
|
-
fromPartial(object) {
|
|
216
|
-
const message = createBaseMsgCreateGroupResponse();
|
|
217
|
-
message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
|
|
218
|
-
return message;
|
|
219
|
-
},
|
|
220
|
-
fromAmino(object) {
|
|
221
|
-
const message = createBaseMsgCreateGroupResponse();
|
|
222
|
-
if (object.group_id !== undefined && object.group_id !== null) {
|
|
223
|
-
message.groupId = BigInt(object.group_id);
|
|
224
|
-
}
|
|
225
|
-
return message;
|
|
226
|
-
},
|
|
227
|
-
toAmino(message) {
|
|
228
|
-
const obj = {};
|
|
229
|
-
obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
|
|
230
|
-
return obj;
|
|
231
|
-
},
|
|
232
|
-
fromAminoMsg(object) {
|
|
233
|
-
return MsgCreateGroupResponse.fromAmino(object.value);
|
|
234
|
-
},
|
|
235
|
-
toAminoMsg(message) {
|
|
236
|
-
return {
|
|
237
|
-
type: "cosmos-sdk/MsgCreateGroupResponse",
|
|
238
|
-
value: MsgCreateGroupResponse.toAmino(message)
|
|
239
|
-
};
|
|
240
|
-
},
|
|
241
|
-
fromProtoMsg(message) {
|
|
242
|
-
return MsgCreateGroupResponse.decode(message.value);
|
|
243
|
-
},
|
|
244
|
-
toProto(message) {
|
|
245
|
-
return MsgCreateGroupResponse.encode(message).finish();
|
|
246
|
-
},
|
|
247
|
-
toProtoMsg(message) {
|
|
248
|
-
return {
|
|
249
|
-
typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse",
|
|
250
|
-
value: MsgCreateGroupResponse.encode(message).finish()
|
|
251
|
-
};
|
|
252
|
-
},
|
|
253
|
-
registerTypeUrl() { }
|
|
254
|
-
};
|
|
255
|
-
function createBaseMsgUpdateGroupMembers() {
|
|
256
|
-
return {
|
|
257
|
-
admin: "",
|
|
258
|
-
groupId: BigInt(0),
|
|
259
|
-
memberUpdates: []
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type.
|
|
264
|
-
* @name MsgUpdateGroupMembers
|
|
265
|
-
* @package cosmos.group.v1
|
|
266
|
-
* @see proto type: cosmos.group.v1.MsgUpdateGroupMembers
|
|
267
|
-
*/
|
|
268
|
-
export const MsgUpdateGroupMembers = {
|
|
269
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers",
|
|
270
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupMembers",
|
|
271
|
-
is(o) {
|
|
272
|
-
return o && (o.$typeUrl === MsgUpdateGroupMembers.typeUrl || typeof o.admin === "string" && typeof o.groupId === "bigint" && Array.isArray(o.memberUpdates) && (!o.memberUpdates.length || MemberRequest.is(o.memberUpdates[0])));
|
|
273
|
-
},
|
|
274
|
-
isSDK(o) {
|
|
275
|
-
return o && (o.$typeUrl === MsgUpdateGroupMembers.typeUrl || typeof o.admin === "string" && typeof o.group_id === "bigint" && Array.isArray(o.member_updates) && (!o.member_updates.length || MemberRequest.isSDK(o.member_updates[0])));
|
|
276
|
-
},
|
|
277
|
-
isAmino(o) {
|
|
278
|
-
return o && (o.$typeUrl === MsgUpdateGroupMembers.typeUrl || typeof o.admin === "string" && typeof o.group_id === "bigint" && Array.isArray(o.member_updates) && (!o.member_updates.length || MemberRequest.isAmino(o.member_updates[0])));
|
|
279
|
-
},
|
|
280
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
281
|
-
if (message.admin !== "") {
|
|
282
|
-
writer.uint32(10).string(message.admin);
|
|
283
|
-
}
|
|
284
|
-
if (message.groupId !== BigInt(0)) {
|
|
285
|
-
writer.uint32(16).uint64(message.groupId);
|
|
286
|
-
}
|
|
287
|
-
for (const v of message.memberUpdates) {
|
|
288
|
-
MemberRequest.encode(v, writer.uint32(26).fork()).ldelim();
|
|
289
|
-
}
|
|
290
|
-
return writer;
|
|
291
|
-
},
|
|
292
|
-
decode(input, length) {
|
|
293
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
294
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
295
|
-
const message = createBaseMsgUpdateGroupMembers();
|
|
296
|
-
while (reader.pos < end) {
|
|
297
|
-
const tag = reader.uint32();
|
|
298
|
-
switch (tag >>> 3) {
|
|
299
|
-
case 1:
|
|
300
|
-
message.admin = reader.string();
|
|
301
|
-
break;
|
|
302
|
-
case 2:
|
|
303
|
-
message.groupId = reader.uint64();
|
|
304
|
-
break;
|
|
305
|
-
case 3:
|
|
306
|
-
message.memberUpdates.push(MemberRequest.decode(reader, reader.uint32()));
|
|
307
|
-
break;
|
|
308
|
-
default:
|
|
309
|
-
reader.skipType(tag & 7);
|
|
310
|
-
break;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
return message;
|
|
314
|
-
},
|
|
315
|
-
fromPartial(object) {
|
|
316
|
-
const message = createBaseMsgUpdateGroupMembers();
|
|
317
|
-
message.admin = object.admin ?? "";
|
|
318
|
-
message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
|
|
319
|
-
message.memberUpdates = object.memberUpdates?.map(e => MemberRequest.fromPartial(e)) || [];
|
|
320
|
-
return message;
|
|
321
|
-
},
|
|
322
|
-
fromAmino(object) {
|
|
323
|
-
const message = createBaseMsgUpdateGroupMembers();
|
|
324
|
-
if (object.admin !== undefined && object.admin !== null) {
|
|
325
|
-
message.admin = object.admin;
|
|
326
|
-
}
|
|
327
|
-
if (object.group_id !== undefined && object.group_id !== null) {
|
|
328
|
-
message.groupId = BigInt(object.group_id);
|
|
329
|
-
}
|
|
330
|
-
message.memberUpdates = object.member_updates?.map(e => MemberRequest.fromAmino(e)) || [];
|
|
331
|
-
return message;
|
|
332
|
-
},
|
|
333
|
-
toAmino(message) {
|
|
334
|
-
const obj = {};
|
|
335
|
-
obj.admin = message.admin === "" ? undefined : message.admin;
|
|
336
|
-
obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
|
|
337
|
-
if (message.memberUpdates) {
|
|
338
|
-
obj.member_updates = message.memberUpdates.map(e => e ? MemberRequest.toAmino(e) : undefined);
|
|
339
|
-
}
|
|
340
|
-
else {
|
|
341
|
-
obj.member_updates = message.memberUpdates;
|
|
342
|
-
}
|
|
343
|
-
return obj;
|
|
344
|
-
},
|
|
345
|
-
fromAminoMsg(object) {
|
|
346
|
-
return MsgUpdateGroupMembers.fromAmino(object.value);
|
|
347
|
-
},
|
|
348
|
-
toAminoMsg(message) {
|
|
349
|
-
return {
|
|
350
|
-
type: "cosmos-sdk/MsgUpdateGroupMembers",
|
|
351
|
-
value: MsgUpdateGroupMembers.toAmino(message)
|
|
352
|
-
};
|
|
353
|
-
},
|
|
354
|
-
fromProtoMsg(message) {
|
|
355
|
-
return MsgUpdateGroupMembers.decode(message.value);
|
|
356
|
-
},
|
|
357
|
-
toProto(message) {
|
|
358
|
-
return MsgUpdateGroupMembers.encode(message).finish();
|
|
359
|
-
},
|
|
360
|
-
toProtoMsg(message) {
|
|
361
|
-
return {
|
|
362
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers",
|
|
363
|
-
value: MsgUpdateGroupMembers.encode(message).finish()
|
|
364
|
-
};
|
|
365
|
-
},
|
|
366
|
-
registerTypeUrl() {
|
|
367
|
-
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MsgUpdateGroupMembers.typeUrl)) {
|
|
368
|
-
return;
|
|
369
|
-
}
|
|
370
|
-
MemberRequest.registerTypeUrl();
|
|
371
|
-
}
|
|
372
|
-
};
|
|
373
|
-
function createBaseMsgUpdateGroupMembersResponse() {
|
|
374
|
-
return {};
|
|
375
|
-
}
|
|
376
|
-
/**
|
|
377
|
-
* MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type.
|
|
378
|
-
* @name MsgUpdateGroupMembersResponse
|
|
379
|
-
* @package cosmos.group.v1
|
|
380
|
-
* @see proto type: cosmos.group.v1.MsgUpdateGroupMembersResponse
|
|
381
|
-
*/
|
|
382
|
-
export const MsgUpdateGroupMembersResponse = {
|
|
383
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse",
|
|
384
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupMembersResponse",
|
|
385
|
-
is(o) {
|
|
386
|
-
return o && o.$typeUrl === MsgUpdateGroupMembersResponse.typeUrl;
|
|
387
|
-
},
|
|
388
|
-
isSDK(o) {
|
|
389
|
-
return o && o.$typeUrl === MsgUpdateGroupMembersResponse.typeUrl;
|
|
390
|
-
},
|
|
391
|
-
isAmino(o) {
|
|
392
|
-
return o && o.$typeUrl === MsgUpdateGroupMembersResponse.typeUrl;
|
|
393
|
-
},
|
|
394
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
395
|
-
return writer;
|
|
396
|
-
},
|
|
397
|
-
decode(input, length) {
|
|
398
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
399
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
400
|
-
const message = createBaseMsgUpdateGroupMembersResponse();
|
|
401
|
-
while (reader.pos < end) {
|
|
402
|
-
const tag = reader.uint32();
|
|
403
|
-
switch (tag >>> 3) {
|
|
404
|
-
default:
|
|
405
|
-
reader.skipType(tag & 7);
|
|
406
|
-
break;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
return message;
|
|
410
|
-
},
|
|
411
|
-
fromPartial(_) {
|
|
412
|
-
const message = createBaseMsgUpdateGroupMembersResponse();
|
|
413
|
-
return message;
|
|
414
|
-
},
|
|
415
|
-
fromAmino(_) {
|
|
416
|
-
const message = createBaseMsgUpdateGroupMembersResponse();
|
|
417
|
-
return message;
|
|
418
|
-
},
|
|
419
|
-
toAmino(_) {
|
|
420
|
-
const obj = {};
|
|
421
|
-
return obj;
|
|
422
|
-
},
|
|
423
|
-
fromAminoMsg(object) {
|
|
424
|
-
return MsgUpdateGroupMembersResponse.fromAmino(object.value);
|
|
425
|
-
},
|
|
426
|
-
toAminoMsg(message) {
|
|
427
|
-
return {
|
|
428
|
-
type: "cosmos-sdk/MsgUpdateGroupMembersResponse",
|
|
429
|
-
value: MsgUpdateGroupMembersResponse.toAmino(message)
|
|
430
|
-
};
|
|
431
|
-
},
|
|
432
|
-
fromProtoMsg(message) {
|
|
433
|
-
return MsgUpdateGroupMembersResponse.decode(message.value);
|
|
434
|
-
},
|
|
435
|
-
toProto(message) {
|
|
436
|
-
return MsgUpdateGroupMembersResponse.encode(message).finish();
|
|
437
|
-
},
|
|
438
|
-
toProtoMsg(message) {
|
|
439
|
-
return {
|
|
440
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse",
|
|
441
|
-
value: MsgUpdateGroupMembersResponse.encode(message).finish()
|
|
442
|
-
};
|
|
443
|
-
},
|
|
444
|
-
registerTypeUrl() { }
|
|
445
|
-
};
|
|
446
|
-
function createBaseMsgUpdateGroupAdmin() {
|
|
447
|
-
return {
|
|
448
|
-
admin: "",
|
|
449
|
-
groupId: BigInt(0),
|
|
450
|
-
newAdmin: ""
|
|
451
|
-
};
|
|
452
|
-
}
|
|
453
|
-
/**
|
|
454
|
-
* MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type.
|
|
455
|
-
* @name MsgUpdateGroupAdmin
|
|
456
|
-
* @package cosmos.group.v1
|
|
457
|
-
* @see proto type: cosmos.group.v1.MsgUpdateGroupAdmin
|
|
458
|
-
*/
|
|
459
|
-
export const MsgUpdateGroupAdmin = {
|
|
460
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin",
|
|
461
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupAdmin",
|
|
462
|
-
is(o) {
|
|
463
|
-
return o && (o.$typeUrl === MsgUpdateGroupAdmin.typeUrl || typeof o.admin === "string" && typeof o.groupId === "bigint" && typeof o.newAdmin === "string");
|
|
464
|
-
},
|
|
465
|
-
isSDK(o) {
|
|
466
|
-
return o && (o.$typeUrl === MsgUpdateGroupAdmin.typeUrl || typeof o.admin === "string" && typeof o.group_id === "bigint" && typeof o.new_admin === "string");
|
|
467
|
-
},
|
|
468
|
-
isAmino(o) {
|
|
469
|
-
return o && (o.$typeUrl === MsgUpdateGroupAdmin.typeUrl || typeof o.admin === "string" && typeof o.group_id === "bigint" && typeof o.new_admin === "string");
|
|
470
|
-
},
|
|
471
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
472
|
-
if (message.admin !== "") {
|
|
473
|
-
writer.uint32(10).string(message.admin);
|
|
474
|
-
}
|
|
475
|
-
if (message.groupId !== BigInt(0)) {
|
|
476
|
-
writer.uint32(16).uint64(message.groupId);
|
|
477
|
-
}
|
|
478
|
-
if (message.newAdmin !== "") {
|
|
479
|
-
writer.uint32(26).string(message.newAdmin);
|
|
480
|
-
}
|
|
481
|
-
return writer;
|
|
482
|
-
},
|
|
483
|
-
decode(input, length) {
|
|
484
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
485
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
486
|
-
const message = createBaseMsgUpdateGroupAdmin();
|
|
487
|
-
while (reader.pos < end) {
|
|
488
|
-
const tag = reader.uint32();
|
|
489
|
-
switch (tag >>> 3) {
|
|
490
|
-
case 1:
|
|
491
|
-
message.admin = reader.string();
|
|
492
|
-
break;
|
|
493
|
-
case 2:
|
|
494
|
-
message.groupId = reader.uint64();
|
|
495
|
-
break;
|
|
496
|
-
case 3:
|
|
497
|
-
message.newAdmin = reader.string();
|
|
498
|
-
break;
|
|
499
|
-
default:
|
|
500
|
-
reader.skipType(tag & 7);
|
|
501
|
-
break;
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
return message;
|
|
505
|
-
},
|
|
506
|
-
fromPartial(object) {
|
|
507
|
-
const message = createBaseMsgUpdateGroupAdmin();
|
|
508
|
-
message.admin = object.admin ?? "";
|
|
509
|
-
message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
|
|
510
|
-
message.newAdmin = object.newAdmin ?? "";
|
|
511
|
-
return message;
|
|
512
|
-
},
|
|
513
|
-
fromAmino(object) {
|
|
514
|
-
const message = createBaseMsgUpdateGroupAdmin();
|
|
515
|
-
if (object.admin !== undefined && object.admin !== null) {
|
|
516
|
-
message.admin = object.admin;
|
|
517
|
-
}
|
|
518
|
-
if (object.group_id !== undefined && object.group_id !== null) {
|
|
519
|
-
message.groupId = BigInt(object.group_id);
|
|
520
|
-
}
|
|
521
|
-
if (object.new_admin !== undefined && object.new_admin !== null) {
|
|
522
|
-
message.newAdmin = object.new_admin;
|
|
523
|
-
}
|
|
524
|
-
return message;
|
|
525
|
-
},
|
|
526
|
-
toAmino(message) {
|
|
527
|
-
const obj = {};
|
|
528
|
-
obj.admin = message.admin === "" ? undefined : message.admin;
|
|
529
|
-
obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
|
|
530
|
-
obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin;
|
|
531
|
-
return obj;
|
|
532
|
-
},
|
|
533
|
-
fromAminoMsg(object) {
|
|
534
|
-
return MsgUpdateGroupAdmin.fromAmino(object.value);
|
|
535
|
-
},
|
|
536
|
-
toAminoMsg(message) {
|
|
537
|
-
return {
|
|
538
|
-
type: "cosmos-sdk/MsgUpdateGroupAdmin",
|
|
539
|
-
value: MsgUpdateGroupAdmin.toAmino(message)
|
|
540
|
-
};
|
|
541
|
-
},
|
|
542
|
-
fromProtoMsg(message) {
|
|
543
|
-
return MsgUpdateGroupAdmin.decode(message.value);
|
|
544
|
-
},
|
|
545
|
-
toProto(message) {
|
|
546
|
-
return MsgUpdateGroupAdmin.encode(message).finish();
|
|
547
|
-
},
|
|
548
|
-
toProtoMsg(message) {
|
|
549
|
-
return {
|
|
550
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin",
|
|
551
|
-
value: MsgUpdateGroupAdmin.encode(message).finish()
|
|
552
|
-
};
|
|
553
|
-
},
|
|
554
|
-
registerTypeUrl() { }
|
|
555
|
-
};
|
|
556
|
-
function createBaseMsgUpdateGroupAdminResponse() {
|
|
557
|
-
return {};
|
|
558
|
-
}
|
|
559
|
-
/**
|
|
560
|
-
* MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type.
|
|
561
|
-
* @name MsgUpdateGroupAdminResponse
|
|
562
|
-
* @package cosmos.group.v1
|
|
563
|
-
* @see proto type: cosmos.group.v1.MsgUpdateGroupAdminResponse
|
|
564
|
-
*/
|
|
565
|
-
export const MsgUpdateGroupAdminResponse = {
|
|
566
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse",
|
|
567
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupAdminResponse",
|
|
568
|
-
is(o) {
|
|
569
|
-
return o && o.$typeUrl === MsgUpdateGroupAdminResponse.typeUrl;
|
|
570
|
-
},
|
|
571
|
-
isSDK(o) {
|
|
572
|
-
return o && o.$typeUrl === MsgUpdateGroupAdminResponse.typeUrl;
|
|
573
|
-
},
|
|
574
|
-
isAmino(o) {
|
|
575
|
-
return o && o.$typeUrl === MsgUpdateGroupAdminResponse.typeUrl;
|
|
576
|
-
},
|
|
577
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
578
|
-
return writer;
|
|
579
|
-
},
|
|
580
|
-
decode(input, length) {
|
|
581
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
582
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
583
|
-
const message = createBaseMsgUpdateGroupAdminResponse();
|
|
584
|
-
while (reader.pos < end) {
|
|
585
|
-
const tag = reader.uint32();
|
|
586
|
-
switch (tag >>> 3) {
|
|
587
|
-
default:
|
|
588
|
-
reader.skipType(tag & 7);
|
|
589
|
-
break;
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
return message;
|
|
593
|
-
},
|
|
594
|
-
fromPartial(_) {
|
|
595
|
-
const message = createBaseMsgUpdateGroupAdminResponse();
|
|
596
|
-
return message;
|
|
597
|
-
},
|
|
598
|
-
fromAmino(_) {
|
|
599
|
-
const message = createBaseMsgUpdateGroupAdminResponse();
|
|
600
|
-
return message;
|
|
601
|
-
},
|
|
602
|
-
toAmino(_) {
|
|
603
|
-
const obj = {};
|
|
604
|
-
return obj;
|
|
605
|
-
},
|
|
606
|
-
fromAminoMsg(object) {
|
|
607
|
-
return MsgUpdateGroupAdminResponse.fromAmino(object.value);
|
|
608
|
-
},
|
|
609
|
-
toAminoMsg(message) {
|
|
610
|
-
return {
|
|
611
|
-
type: "cosmos-sdk/MsgUpdateGroupAdminResponse",
|
|
612
|
-
value: MsgUpdateGroupAdminResponse.toAmino(message)
|
|
613
|
-
};
|
|
614
|
-
},
|
|
615
|
-
fromProtoMsg(message) {
|
|
616
|
-
return MsgUpdateGroupAdminResponse.decode(message.value);
|
|
617
|
-
},
|
|
618
|
-
toProto(message) {
|
|
619
|
-
return MsgUpdateGroupAdminResponse.encode(message).finish();
|
|
620
|
-
},
|
|
621
|
-
toProtoMsg(message) {
|
|
622
|
-
return {
|
|
623
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse",
|
|
624
|
-
value: MsgUpdateGroupAdminResponse.encode(message).finish()
|
|
625
|
-
};
|
|
626
|
-
},
|
|
627
|
-
registerTypeUrl() { }
|
|
628
|
-
};
|
|
629
|
-
function createBaseMsgUpdateGroupMetadata() {
|
|
630
|
-
return {
|
|
631
|
-
admin: "",
|
|
632
|
-
groupId: BigInt(0),
|
|
633
|
-
metadata: ""
|
|
634
|
-
};
|
|
635
|
-
}
|
|
636
|
-
/**
|
|
637
|
-
* MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type.
|
|
638
|
-
* @name MsgUpdateGroupMetadata
|
|
639
|
-
* @package cosmos.group.v1
|
|
640
|
-
* @see proto type: cosmos.group.v1.MsgUpdateGroupMetadata
|
|
641
|
-
*/
|
|
642
|
-
export const MsgUpdateGroupMetadata = {
|
|
643
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata",
|
|
644
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupMetadata",
|
|
645
|
-
is(o) {
|
|
646
|
-
return o && (o.$typeUrl === MsgUpdateGroupMetadata.typeUrl || typeof o.admin === "string" && typeof o.groupId === "bigint" && typeof o.metadata === "string");
|
|
647
|
-
},
|
|
648
|
-
isSDK(o) {
|
|
649
|
-
return o && (o.$typeUrl === MsgUpdateGroupMetadata.typeUrl || typeof o.admin === "string" && typeof o.group_id === "bigint" && typeof o.metadata === "string");
|
|
650
|
-
},
|
|
651
|
-
isAmino(o) {
|
|
652
|
-
return o && (o.$typeUrl === MsgUpdateGroupMetadata.typeUrl || typeof o.admin === "string" && typeof o.group_id === "bigint" && typeof o.metadata === "string");
|
|
653
|
-
},
|
|
654
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
655
|
-
if (message.admin !== "") {
|
|
656
|
-
writer.uint32(10).string(message.admin);
|
|
657
|
-
}
|
|
658
|
-
if (message.groupId !== BigInt(0)) {
|
|
659
|
-
writer.uint32(16).uint64(message.groupId);
|
|
660
|
-
}
|
|
661
|
-
if (message.metadata !== "") {
|
|
662
|
-
writer.uint32(26).string(message.metadata);
|
|
663
|
-
}
|
|
664
|
-
return writer;
|
|
665
|
-
},
|
|
666
|
-
decode(input, length) {
|
|
667
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
668
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
669
|
-
const message = createBaseMsgUpdateGroupMetadata();
|
|
670
|
-
while (reader.pos < end) {
|
|
671
|
-
const tag = reader.uint32();
|
|
672
|
-
switch (tag >>> 3) {
|
|
673
|
-
case 1:
|
|
674
|
-
message.admin = reader.string();
|
|
675
|
-
break;
|
|
676
|
-
case 2:
|
|
677
|
-
message.groupId = reader.uint64();
|
|
678
|
-
break;
|
|
679
|
-
case 3:
|
|
680
|
-
message.metadata = reader.string();
|
|
681
|
-
break;
|
|
682
|
-
default:
|
|
683
|
-
reader.skipType(tag & 7);
|
|
684
|
-
break;
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
return message;
|
|
688
|
-
},
|
|
689
|
-
fromPartial(object) {
|
|
690
|
-
const message = createBaseMsgUpdateGroupMetadata();
|
|
691
|
-
message.admin = object.admin ?? "";
|
|
692
|
-
message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
|
|
693
|
-
message.metadata = object.metadata ?? "";
|
|
694
|
-
return message;
|
|
695
|
-
},
|
|
696
|
-
fromAmino(object) {
|
|
697
|
-
const message = createBaseMsgUpdateGroupMetadata();
|
|
698
|
-
if (object.admin !== undefined && object.admin !== null) {
|
|
699
|
-
message.admin = object.admin;
|
|
700
|
-
}
|
|
701
|
-
if (object.group_id !== undefined && object.group_id !== null) {
|
|
702
|
-
message.groupId = BigInt(object.group_id);
|
|
703
|
-
}
|
|
704
|
-
if (object.metadata !== undefined && object.metadata !== null) {
|
|
705
|
-
message.metadata = object.metadata;
|
|
706
|
-
}
|
|
707
|
-
return message;
|
|
708
|
-
},
|
|
709
|
-
toAmino(message) {
|
|
710
|
-
const obj = {};
|
|
711
|
-
obj.admin = message.admin === "" ? undefined : message.admin;
|
|
712
|
-
obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
|
|
713
|
-
obj.metadata = message.metadata === "" ? undefined : message.metadata;
|
|
714
|
-
return obj;
|
|
715
|
-
},
|
|
716
|
-
fromAminoMsg(object) {
|
|
717
|
-
return MsgUpdateGroupMetadata.fromAmino(object.value);
|
|
718
|
-
},
|
|
719
|
-
toAminoMsg(message) {
|
|
720
|
-
return {
|
|
721
|
-
type: "cosmos-sdk/MsgUpdateGroupMetadata",
|
|
722
|
-
value: MsgUpdateGroupMetadata.toAmino(message)
|
|
723
|
-
};
|
|
724
|
-
},
|
|
725
|
-
fromProtoMsg(message) {
|
|
726
|
-
return MsgUpdateGroupMetadata.decode(message.value);
|
|
727
|
-
},
|
|
728
|
-
toProto(message) {
|
|
729
|
-
return MsgUpdateGroupMetadata.encode(message).finish();
|
|
730
|
-
},
|
|
731
|
-
toProtoMsg(message) {
|
|
732
|
-
return {
|
|
733
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata",
|
|
734
|
-
value: MsgUpdateGroupMetadata.encode(message).finish()
|
|
735
|
-
};
|
|
736
|
-
},
|
|
737
|
-
registerTypeUrl() { }
|
|
738
|
-
};
|
|
739
|
-
function createBaseMsgUpdateGroupMetadataResponse() {
|
|
740
|
-
return {};
|
|
741
|
-
}
|
|
742
|
-
/**
|
|
743
|
-
* MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type.
|
|
744
|
-
* @name MsgUpdateGroupMetadataResponse
|
|
745
|
-
* @package cosmos.group.v1
|
|
746
|
-
* @see proto type: cosmos.group.v1.MsgUpdateGroupMetadataResponse
|
|
747
|
-
*/
|
|
748
|
-
export const MsgUpdateGroupMetadataResponse = {
|
|
749
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse",
|
|
750
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupMetadataResponse",
|
|
751
|
-
is(o) {
|
|
752
|
-
return o && o.$typeUrl === MsgUpdateGroupMetadataResponse.typeUrl;
|
|
753
|
-
},
|
|
754
|
-
isSDK(o) {
|
|
755
|
-
return o && o.$typeUrl === MsgUpdateGroupMetadataResponse.typeUrl;
|
|
756
|
-
},
|
|
757
|
-
isAmino(o) {
|
|
758
|
-
return o && o.$typeUrl === MsgUpdateGroupMetadataResponse.typeUrl;
|
|
759
|
-
},
|
|
760
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
761
|
-
return writer;
|
|
762
|
-
},
|
|
763
|
-
decode(input, length) {
|
|
764
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
765
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
766
|
-
const message = createBaseMsgUpdateGroupMetadataResponse();
|
|
767
|
-
while (reader.pos < end) {
|
|
768
|
-
const tag = reader.uint32();
|
|
769
|
-
switch (tag >>> 3) {
|
|
770
|
-
default:
|
|
771
|
-
reader.skipType(tag & 7);
|
|
772
|
-
break;
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
return message;
|
|
776
|
-
},
|
|
777
|
-
fromPartial(_) {
|
|
778
|
-
const message = createBaseMsgUpdateGroupMetadataResponse();
|
|
779
|
-
return message;
|
|
780
|
-
},
|
|
781
|
-
fromAmino(_) {
|
|
782
|
-
const message = createBaseMsgUpdateGroupMetadataResponse();
|
|
783
|
-
return message;
|
|
784
|
-
},
|
|
785
|
-
toAmino(_) {
|
|
786
|
-
const obj = {};
|
|
787
|
-
return obj;
|
|
788
|
-
},
|
|
789
|
-
fromAminoMsg(object) {
|
|
790
|
-
return MsgUpdateGroupMetadataResponse.fromAmino(object.value);
|
|
791
|
-
},
|
|
792
|
-
toAminoMsg(message) {
|
|
793
|
-
return {
|
|
794
|
-
type: "cosmos-sdk/MsgUpdateGroupMetadataResponse",
|
|
795
|
-
value: MsgUpdateGroupMetadataResponse.toAmino(message)
|
|
796
|
-
};
|
|
797
|
-
},
|
|
798
|
-
fromProtoMsg(message) {
|
|
799
|
-
return MsgUpdateGroupMetadataResponse.decode(message.value);
|
|
800
|
-
},
|
|
801
|
-
toProto(message) {
|
|
802
|
-
return MsgUpdateGroupMetadataResponse.encode(message).finish();
|
|
803
|
-
},
|
|
804
|
-
toProtoMsg(message) {
|
|
805
|
-
return {
|
|
806
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse",
|
|
807
|
-
value: MsgUpdateGroupMetadataResponse.encode(message).finish()
|
|
808
|
-
};
|
|
809
|
-
},
|
|
810
|
-
registerTypeUrl() { }
|
|
811
|
-
};
|
|
812
|
-
function createBaseMsgCreateGroupPolicy() {
|
|
813
|
-
return {
|
|
814
|
-
admin: "",
|
|
815
|
-
groupId: BigInt(0),
|
|
816
|
-
metadata: "",
|
|
817
|
-
decisionPolicy: undefined
|
|
818
|
-
};
|
|
819
|
-
}
|
|
820
|
-
/**
|
|
821
|
-
* MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type.
|
|
822
|
-
* @name MsgCreateGroupPolicy
|
|
823
|
-
* @package cosmos.group.v1
|
|
824
|
-
* @see proto type: cosmos.group.v1.MsgCreateGroupPolicy
|
|
825
|
-
*/
|
|
826
|
-
export const MsgCreateGroupPolicy = {
|
|
827
|
-
typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy",
|
|
828
|
-
aminoType: "cosmos-sdk/MsgCreateGroupPolicy",
|
|
829
|
-
is(o) {
|
|
830
|
-
return o && (o.$typeUrl === MsgCreateGroupPolicy.typeUrl || typeof o.admin === "string" && typeof o.groupId === "bigint" && typeof o.metadata === "string");
|
|
831
|
-
},
|
|
832
|
-
isSDK(o) {
|
|
833
|
-
return o && (o.$typeUrl === MsgCreateGroupPolicy.typeUrl || typeof o.admin === "string" && typeof o.group_id === "bigint" && typeof o.metadata === "string");
|
|
834
|
-
},
|
|
835
|
-
isAmino(o) {
|
|
836
|
-
return o && (o.$typeUrl === MsgCreateGroupPolicy.typeUrl || typeof o.admin === "string" && typeof o.group_id === "bigint" && typeof o.metadata === "string");
|
|
837
|
-
},
|
|
838
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
839
|
-
if (message.admin !== "") {
|
|
840
|
-
writer.uint32(10).string(message.admin);
|
|
841
|
-
}
|
|
842
|
-
if (message.groupId !== BigInt(0)) {
|
|
843
|
-
writer.uint32(16).uint64(message.groupId);
|
|
844
|
-
}
|
|
845
|
-
if (message.metadata !== "") {
|
|
846
|
-
writer.uint32(26).string(message.metadata);
|
|
847
|
-
}
|
|
848
|
-
if (message.decisionPolicy !== undefined) {
|
|
849
|
-
Any.encode(GlobalDecoderRegistry.wrapAny(message.decisionPolicy), writer.uint32(34).fork()).ldelim();
|
|
850
|
-
}
|
|
851
|
-
return writer;
|
|
852
|
-
},
|
|
853
|
-
decode(input, length) {
|
|
854
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
855
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
856
|
-
const message = createBaseMsgCreateGroupPolicy();
|
|
857
|
-
while (reader.pos < end) {
|
|
858
|
-
const tag = reader.uint32();
|
|
859
|
-
switch (tag >>> 3) {
|
|
860
|
-
case 1:
|
|
861
|
-
message.admin = reader.string();
|
|
862
|
-
break;
|
|
863
|
-
case 2:
|
|
864
|
-
message.groupId = reader.uint64();
|
|
865
|
-
break;
|
|
866
|
-
case 3:
|
|
867
|
-
message.metadata = reader.string();
|
|
868
|
-
break;
|
|
869
|
-
case 4:
|
|
870
|
-
message.decisionPolicy = GlobalDecoderRegistry.unwrapAny(reader);
|
|
871
|
-
break;
|
|
872
|
-
default:
|
|
873
|
-
reader.skipType(tag & 7);
|
|
874
|
-
break;
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
return message;
|
|
878
|
-
},
|
|
879
|
-
fromPartial(object) {
|
|
880
|
-
const message = createBaseMsgCreateGroupPolicy();
|
|
881
|
-
message.admin = object.admin ?? "";
|
|
882
|
-
message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
|
|
883
|
-
message.metadata = object.metadata ?? "";
|
|
884
|
-
message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? GlobalDecoderRegistry.fromPartial(object.decisionPolicy) : undefined;
|
|
885
|
-
return message;
|
|
886
|
-
},
|
|
887
|
-
fromAmino(object) {
|
|
888
|
-
const message = createBaseMsgCreateGroupPolicy();
|
|
889
|
-
if (object.admin !== undefined && object.admin !== null) {
|
|
890
|
-
message.admin = object.admin;
|
|
891
|
-
}
|
|
892
|
-
if (object.group_id !== undefined && object.group_id !== null) {
|
|
893
|
-
message.groupId = BigInt(object.group_id);
|
|
894
|
-
}
|
|
895
|
-
if (object.metadata !== undefined && object.metadata !== null) {
|
|
896
|
-
message.metadata = object.metadata;
|
|
897
|
-
}
|
|
898
|
-
if (object.decision_policy !== undefined && object.decision_policy !== null) {
|
|
899
|
-
message.decisionPolicy = GlobalDecoderRegistry.fromAminoMsg(object.decision_policy);
|
|
900
|
-
}
|
|
901
|
-
return message;
|
|
902
|
-
},
|
|
903
|
-
toAmino(message) {
|
|
904
|
-
const obj = {};
|
|
905
|
-
obj.admin = message.admin === "" ? undefined : message.admin;
|
|
906
|
-
obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
|
|
907
|
-
obj.metadata = message.metadata === "" ? undefined : message.metadata;
|
|
908
|
-
obj.decision_policy = message.decisionPolicy ? GlobalDecoderRegistry.toAminoMsg(message.decisionPolicy) : undefined;
|
|
909
|
-
return obj;
|
|
910
|
-
},
|
|
911
|
-
fromAminoMsg(object) {
|
|
912
|
-
return MsgCreateGroupPolicy.fromAmino(object.value);
|
|
913
|
-
},
|
|
914
|
-
toAminoMsg(message) {
|
|
915
|
-
return {
|
|
916
|
-
type: "cosmos-sdk/MsgCreateGroupPolicy",
|
|
917
|
-
value: MsgCreateGroupPolicy.toAmino(message)
|
|
918
|
-
};
|
|
919
|
-
},
|
|
920
|
-
fromProtoMsg(message) {
|
|
921
|
-
return MsgCreateGroupPolicy.decode(message.value);
|
|
922
|
-
},
|
|
923
|
-
toProto(message) {
|
|
924
|
-
return MsgCreateGroupPolicy.encode(message).finish();
|
|
925
|
-
},
|
|
926
|
-
toProtoMsg(message) {
|
|
927
|
-
return {
|
|
928
|
-
typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy",
|
|
929
|
-
value: MsgCreateGroupPolicy.encode(message).finish()
|
|
930
|
-
};
|
|
931
|
-
},
|
|
932
|
-
registerTypeUrl() {
|
|
933
|
-
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MsgCreateGroupPolicy.typeUrl)) {
|
|
934
|
-
return;
|
|
935
|
-
}
|
|
936
|
-
ThresholdDecisionPolicy.registerTypeUrl();
|
|
937
|
-
PercentageDecisionPolicy.registerTypeUrl();
|
|
938
|
-
}
|
|
939
|
-
};
|
|
940
|
-
function createBaseMsgCreateGroupPolicyResponse() {
|
|
941
|
-
return {
|
|
942
|
-
address: ""
|
|
943
|
-
};
|
|
944
|
-
}
|
|
945
|
-
/**
|
|
946
|
-
* MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type.
|
|
947
|
-
* @name MsgCreateGroupPolicyResponse
|
|
948
|
-
* @package cosmos.group.v1
|
|
949
|
-
* @see proto type: cosmos.group.v1.MsgCreateGroupPolicyResponse
|
|
950
|
-
*/
|
|
951
|
-
export const MsgCreateGroupPolicyResponse = {
|
|
952
|
-
typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse",
|
|
953
|
-
aminoType: "cosmos-sdk/MsgCreateGroupPolicyResponse",
|
|
954
|
-
is(o) {
|
|
955
|
-
return o && (o.$typeUrl === MsgCreateGroupPolicyResponse.typeUrl || typeof o.address === "string");
|
|
956
|
-
},
|
|
957
|
-
isSDK(o) {
|
|
958
|
-
return o && (o.$typeUrl === MsgCreateGroupPolicyResponse.typeUrl || typeof o.address === "string");
|
|
959
|
-
},
|
|
960
|
-
isAmino(o) {
|
|
961
|
-
return o && (o.$typeUrl === MsgCreateGroupPolicyResponse.typeUrl || typeof o.address === "string");
|
|
962
|
-
},
|
|
963
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
964
|
-
if (message.address !== "") {
|
|
965
|
-
writer.uint32(10).string(message.address);
|
|
966
|
-
}
|
|
967
|
-
return writer;
|
|
968
|
-
},
|
|
969
|
-
decode(input, length) {
|
|
970
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
971
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
972
|
-
const message = createBaseMsgCreateGroupPolicyResponse();
|
|
973
|
-
while (reader.pos < end) {
|
|
974
|
-
const tag = reader.uint32();
|
|
975
|
-
switch (tag >>> 3) {
|
|
976
|
-
case 1:
|
|
977
|
-
message.address = reader.string();
|
|
978
|
-
break;
|
|
979
|
-
default:
|
|
980
|
-
reader.skipType(tag & 7);
|
|
981
|
-
break;
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
return message;
|
|
985
|
-
},
|
|
986
|
-
fromPartial(object) {
|
|
987
|
-
const message = createBaseMsgCreateGroupPolicyResponse();
|
|
988
|
-
message.address = object.address ?? "";
|
|
989
|
-
return message;
|
|
990
|
-
},
|
|
991
|
-
fromAmino(object) {
|
|
992
|
-
const message = createBaseMsgCreateGroupPolicyResponse();
|
|
993
|
-
if (object.address !== undefined && object.address !== null) {
|
|
994
|
-
message.address = object.address;
|
|
995
|
-
}
|
|
996
|
-
return message;
|
|
997
|
-
},
|
|
998
|
-
toAmino(message) {
|
|
999
|
-
const obj = {};
|
|
1000
|
-
obj.address = message.address === "" ? undefined : message.address;
|
|
1001
|
-
return obj;
|
|
1002
|
-
},
|
|
1003
|
-
fromAminoMsg(object) {
|
|
1004
|
-
return MsgCreateGroupPolicyResponse.fromAmino(object.value);
|
|
1005
|
-
},
|
|
1006
|
-
toAminoMsg(message) {
|
|
1007
|
-
return {
|
|
1008
|
-
type: "cosmos-sdk/MsgCreateGroupPolicyResponse",
|
|
1009
|
-
value: MsgCreateGroupPolicyResponse.toAmino(message)
|
|
1010
|
-
};
|
|
1011
|
-
},
|
|
1012
|
-
fromProtoMsg(message) {
|
|
1013
|
-
return MsgCreateGroupPolicyResponse.decode(message.value);
|
|
1014
|
-
},
|
|
1015
|
-
toProto(message) {
|
|
1016
|
-
return MsgCreateGroupPolicyResponse.encode(message).finish();
|
|
1017
|
-
},
|
|
1018
|
-
toProtoMsg(message) {
|
|
1019
|
-
return {
|
|
1020
|
-
typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse",
|
|
1021
|
-
value: MsgCreateGroupPolicyResponse.encode(message).finish()
|
|
1022
|
-
};
|
|
1023
|
-
},
|
|
1024
|
-
registerTypeUrl() { }
|
|
1025
|
-
};
|
|
1026
|
-
function createBaseMsgUpdateGroupPolicyAdmin() {
|
|
1027
|
-
return {
|
|
1028
|
-
admin: "",
|
|
1029
|
-
groupPolicyAddress: "",
|
|
1030
|
-
newAdmin: ""
|
|
1031
|
-
};
|
|
1032
|
-
}
|
|
1033
|
-
/**
|
|
1034
|
-
* MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type.
|
|
1035
|
-
* @name MsgUpdateGroupPolicyAdmin
|
|
1036
|
-
* @package cosmos.group.v1
|
|
1037
|
-
* @see proto type: cosmos.group.v1.MsgUpdateGroupPolicyAdmin
|
|
1038
|
-
*/
|
|
1039
|
-
export const MsgUpdateGroupPolicyAdmin = {
|
|
1040
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",
|
|
1041
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupPolicyAdmin",
|
|
1042
|
-
is(o) {
|
|
1043
|
-
return o && (o.$typeUrl === MsgUpdateGroupPolicyAdmin.typeUrl || typeof o.admin === "string" && typeof o.groupPolicyAddress === "string" && typeof o.newAdmin === "string");
|
|
1044
|
-
},
|
|
1045
|
-
isSDK(o) {
|
|
1046
|
-
return o && (o.$typeUrl === MsgUpdateGroupPolicyAdmin.typeUrl || typeof o.admin === "string" && typeof o.group_policy_address === "string" && typeof o.new_admin === "string");
|
|
1047
|
-
},
|
|
1048
|
-
isAmino(o) {
|
|
1049
|
-
return o && (o.$typeUrl === MsgUpdateGroupPolicyAdmin.typeUrl || typeof o.admin === "string" && typeof o.group_policy_address === "string" && typeof o.new_admin === "string");
|
|
1050
|
-
},
|
|
1051
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1052
|
-
if (message.admin !== "") {
|
|
1053
|
-
writer.uint32(10).string(message.admin);
|
|
1054
|
-
}
|
|
1055
|
-
if (message.groupPolicyAddress !== "") {
|
|
1056
|
-
writer.uint32(18).string(message.groupPolicyAddress);
|
|
1057
|
-
}
|
|
1058
|
-
if (message.newAdmin !== "") {
|
|
1059
|
-
writer.uint32(26).string(message.newAdmin);
|
|
1060
|
-
}
|
|
1061
|
-
return writer;
|
|
1062
|
-
},
|
|
1063
|
-
decode(input, length) {
|
|
1064
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1065
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1066
|
-
const message = createBaseMsgUpdateGroupPolicyAdmin();
|
|
1067
|
-
while (reader.pos < end) {
|
|
1068
|
-
const tag = reader.uint32();
|
|
1069
|
-
switch (tag >>> 3) {
|
|
1070
|
-
case 1:
|
|
1071
|
-
message.admin = reader.string();
|
|
1072
|
-
break;
|
|
1073
|
-
case 2:
|
|
1074
|
-
message.groupPolicyAddress = reader.string();
|
|
1075
|
-
break;
|
|
1076
|
-
case 3:
|
|
1077
|
-
message.newAdmin = reader.string();
|
|
1078
|
-
break;
|
|
1079
|
-
default:
|
|
1080
|
-
reader.skipType(tag & 7);
|
|
1081
|
-
break;
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
return message;
|
|
1085
|
-
},
|
|
1086
|
-
fromPartial(object) {
|
|
1087
|
-
const message = createBaseMsgUpdateGroupPolicyAdmin();
|
|
1088
|
-
message.admin = object.admin ?? "";
|
|
1089
|
-
message.groupPolicyAddress = object.groupPolicyAddress ?? "";
|
|
1090
|
-
message.newAdmin = object.newAdmin ?? "";
|
|
1091
|
-
return message;
|
|
1092
|
-
},
|
|
1093
|
-
fromAmino(object) {
|
|
1094
|
-
const message = createBaseMsgUpdateGroupPolicyAdmin();
|
|
1095
|
-
if (object.admin !== undefined && object.admin !== null) {
|
|
1096
|
-
message.admin = object.admin;
|
|
1097
|
-
}
|
|
1098
|
-
if (object.group_policy_address !== undefined && object.group_policy_address !== null) {
|
|
1099
|
-
message.groupPolicyAddress = object.group_policy_address;
|
|
1100
|
-
}
|
|
1101
|
-
if (object.new_admin !== undefined && object.new_admin !== null) {
|
|
1102
|
-
message.newAdmin = object.new_admin;
|
|
1103
|
-
}
|
|
1104
|
-
return message;
|
|
1105
|
-
},
|
|
1106
|
-
toAmino(message) {
|
|
1107
|
-
const obj = {};
|
|
1108
|
-
obj.admin = message.admin === "" ? undefined : message.admin;
|
|
1109
|
-
obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress;
|
|
1110
|
-
obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin;
|
|
1111
|
-
return obj;
|
|
1112
|
-
},
|
|
1113
|
-
fromAminoMsg(object) {
|
|
1114
|
-
return MsgUpdateGroupPolicyAdmin.fromAmino(object.value);
|
|
1115
|
-
},
|
|
1116
|
-
toAminoMsg(message) {
|
|
1117
|
-
return {
|
|
1118
|
-
type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin",
|
|
1119
|
-
value: MsgUpdateGroupPolicyAdmin.toAmino(message)
|
|
1120
|
-
};
|
|
1121
|
-
},
|
|
1122
|
-
fromProtoMsg(message) {
|
|
1123
|
-
return MsgUpdateGroupPolicyAdmin.decode(message.value);
|
|
1124
|
-
},
|
|
1125
|
-
toProto(message) {
|
|
1126
|
-
return MsgUpdateGroupPolicyAdmin.encode(message).finish();
|
|
1127
|
-
},
|
|
1128
|
-
toProtoMsg(message) {
|
|
1129
|
-
return {
|
|
1130
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",
|
|
1131
|
-
value: MsgUpdateGroupPolicyAdmin.encode(message).finish()
|
|
1132
|
-
};
|
|
1133
|
-
},
|
|
1134
|
-
registerTypeUrl() { }
|
|
1135
|
-
};
|
|
1136
|
-
function createBaseMsgUpdateGroupPolicyAdminResponse() {
|
|
1137
|
-
return {};
|
|
1138
|
-
}
|
|
1139
|
-
/**
|
|
1140
|
-
* MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type.
|
|
1141
|
-
* @name MsgUpdateGroupPolicyAdminResponse
|
|
1142
|
-
* @package cosmos.group.v1
|
|
1143
|
-
* @see proto type: cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse
|
|
1144
|
-
*/
|
|
1145
|
-
export const MsgUpdateGroupPolicyAdminResponse = {
|
|
1146
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse",
|
|
1147
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse",
|
|
1148
|
-
is(o) {
|
|
1149
|
-
return o && o.$typeUrl === MsgUpdateGroupPolicyAdminResponse.typeUrl;
|
|
1150
|
-
},
|
|
1151
|
-
isSDK(o) {
|
|
1152
|
-
return o && o.$typeUrl === MsgUpdateGroupPolicyAdminResponse.typeUrl;
|
|
1153
|
-
},
|
|
1154
|
-
isAmino(o) {
|
|
1155
|
-
return o && o.$typeUrl === MsgUpdateGroupPolicyAdminResponse.typeUrl;
|
|
1156
|
-
},
|
|
1157
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
1158
|
-
return writer;
|
|
1159
|
-
},
|
|
1160
|
-
decode(input, length) {
|
|
1161
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1162
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1163
|
-
const message = createBaseMsgUpdateGroupPolicyAdminResponse();
|
|
1164
|
-
while (reader.pos < end) {
|
|
1165
|
-
const tag = reader.uint32();
|
|
1166
|
-
switch (tag >>> 3) {
|
|
1167
|
-
default:
|
|
1168
|
-
reader.skipType(tag & 7);
|
|
1169
|
-
break;
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
return message;
|
|
1173
|
-
},
|
|
1174
|
-
fromPartial(_) {
|
|
1175
|
-
const message = createBaseMsgUpdateGroupPolicyAdminResponse();
|
|
1176
|
-
return message;
|
|
1177
|
-
},
|
|
1178
|
-
fromAmino(_) {
|
|
1179
|
-
const message = createBaseMsgUpdateGroupPolicyAdminResponse();
|
|
1180
|
-
return message;
|
|
1181
|
-
},
|
|
1182
|
-
toAmino(_) {
|
|
1183
|
-
const obj = {};
|
|
1184
|
-
return obj;
|
|
1185
|
-
},
|
|
1186
|
-
fromAminoMsg(object) {
|
|
1187
|
-
return MsgUpdateGroupPolicyAdminResponse.fromAmino(object.value);
|
|
1188
|
-
},
|
|
1189
|
-
toAminoMsg(message) {
|
|
1190
|
-
return {
|
|
1191
|
-
type: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse",
|
|
1192
|
-
value: MsgUpdateGroupPolicyAdminResponse.toAmino(message)
|
|
1193
|
-
};
|
|
1194
|
-
},
|
|
1195
|
-
fromProtoMsg(message) {
|
|
1196
|
-
return MsgUpdateGroupPolicyAdminResponse.decode(message.value);
|
|
1197
|
-
},
|
|
1198
|
-
toProto(message) {
|
|
1199
|
-
return MsgUpdateGroupPolicyAdminResponse.encode(message).finish();
|
|
1200
|
-
},
|
|
1201
|
-
toProtoMsg(message) {
|
|
1202
|
-
return {
|
|
1203
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse",
|
|
1204
|
-
value: MsgUpdateGroupPolicyAdminResponse.encode(message).finish()
|
|
1205
|
-
};
|
|
1206
|
-
},
|
|
1207
|
-
registerTypeUrl() { }
|
|
1208
|
-
};
|
|
1209
|
-
function createBaseMsgCreateGroupWithPolicy() {
|
|
1210
|
-
return {
|
|
1211
|
-
admin: "",
|
|
1212
|
-
members: [],
|
|
1213
|
-
groupMetadata: "",
|
|
1214
|
-
groupPolicyMetadata: "",
|
|
1215
|
-
groupPolicyAsAdmin: false,
|
|
1216
|
-
decisionPolicy: undefined
|
|
1217
|
-
};
|
|
1218
|
-
}
|
|
1219
|
-
/**
|
|
1220
|
-
* MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type.
|
|
1221
|
-
* @name MsgCreateGroupWithPolicy
|
|
1222
|
-
* @package cosmos.group.v1
|
|
1223
|
-
* @see proto type: cosmos.group.v1.MsgCreateGroupWithPolicy
|
|
1224
|
-
*/
|
|
1225
|
-
export const MsgCreateGroupWithPolicy = {
|
|
1226
|
-
typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy",
|
|
1227
|
-
aminoType: "cosmos-sdk/MsgCreateGroupWithPolicy",
|
|
1228
|
-
is(o) {
|
|
1229
|
-
return o && (o.$typeUrl === MsgCreateGroupWithPolicy.typeUrl || typeof o.admin === "string" && Array.isArray(o.members) && (!o.members.length || MemberRequest.is(o.members[0])) && typeof o.groupMetadata === "string" && typeof o.groupPolicyMetadata === "string" && typeof o.groupPolicyAsAdmin === "boolean");
|
|
1230
|
-
},
|
|
1231
|
-
isSDK(o) {
|
|
1232
|
-
return o && (o.$typeUrl === MsgCreateGroupWithPolicy.typeUrl || typeof o.admin === "string" && Array.isArray(o.members) && (!o.members.length || MemberRequest.isSDK(o.members[0])) && typeof o.group_metadata === "string" && typeof o.group_policy_metadata === "string" && typeof o.group_policy_as_admin === "boolean");
|
|
1233
|
-
},
|
|
1234
|
-
isAmino(o) {
|
|
1235
|
-
return o && (o.$typeUrl === MsgCreateGroupWithPolicy.typeUrl || typeof o.admin === "string" && Array.isArray(o.members) && (!o.members.length || MemberRequest.isAmino(o.members[0])) && typeof o.group_metadata === "string" && typeof o.group_policy_metadata === "string" && typeof o.group_policy_as_admin === "boolean");
|
|
1236
|
-
},
|
|
1237
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1238
|
-
if (message.admin !== "") {
|
|
1239
|
-
writer.uint32(10).string(message.admin);
|
|
1240
|
-
}
|
|
1241
|
-
for (const v of message.members) {
|
|
1242
|
-
MemberRequest.encode(v, writer.uint32(18).fork()).ldelim();
|
|
1243
|
-
}
|
|
1244
|
-
if (message.groupMetadata !== "") {
|
|
1245
|
-
writer.uint32(26).string(message.groupMetadata);
|
|
1246
|
-
}
|
|
1247
|
-
if (message.groupPolicyMetadata !== "") {
|
|
1248
|
-
writer.uint32(34).string(message.groupPolicyMetadata);
|
|
1249
|
-
}
|
|
1250
|
-
if (message.groupPolicyAsAdmin === true) {
|
|
1251
|
-
writer.uint32(40).bool(message.groupPolicyAsAdmin);
|
|
1252
|
-
}
|
|
1253
|
-
if (message.decisionPolicy !== undefined) {
|
|
1254
|
-
Any.encode(GlobalDecoderRegistry.wrapAny(message.decisionPolicy), writer.uint32(50).fork()).ldelim();
|
|
1255
|
-
}
|
|
1256
|
-
return writer;
|
|
1257
|
-
},
|
|
1258
|
-
decode(input, length) {
|
|
1259
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1260
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1261
|
-
const message = createBaseMsgCreateGroupWithPolicy();
|
|
1262
|
-
while (reader.pos < end) {
|
|
1263
|
-
const tag = reader.uint32();
|
|
1264
|
-
switch (tag >>> 3) {
|
|
1265
|
-
case 1:
|
|
1266
|
-
message.admin = reader.string();
|
|
1267
|
-
break;
|
|
1268
|
-
case 2:
|
|
1269
|
-
message.members.push(MemberRequest.decode(reader, reader.uint32()));
|
|
1270
|
-
break;
|
|
1271
|
-
case 3:
|
|
1272
|
-
message.groupMetadata = reader.string();
|
|
1273
|
-
break;
|
|
1274
|
-
case 4:
|
|
1275
|
-
message.groupPolicyMetadata = reader.string();
|
|
1276
|
-
break;
|
|
1277
|
-
case 5:
|
|
1278
|
-
message.groupPolicyAsAdmin = reader.bool();
|
|
1279
|
-
break;
|
|
1280
|
-
case 6:
|
|
1281
|
-
message.decisionPolicy = GlobalDecoderRegistry.unwrapAny(reader);
|
|
1282
|
-
break;
|
|
1283
|
-
default:
|
|
1284
|
-
reader.skipType(tag & 7);
|
|
1285
|
-
break;
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1288
|
-
return message;
|
|
1289
|
-
},
|
|
1290
|
-
fromPartial(object) {
|
|
1291
|
-
const message = createBaseMsgCreateGroupWithPolicy();
|
|
1292
|
-
message.admin = object.admin ?? "";
|
|
1293
|
-
message.members = object.members?.map(e => MemberRequest.fromPartial(e)) || [];
|
|
1294
|
-
message.groupMetadata = object.groupMetadata ?? "";
|
|
1295
|
-
message.groupPolicyMetadata = object.groupPolicyMetadata ?? "";
|
|
1296
|
-
message.groupPolicyAsAdmin = object.groupPolicyAsAdmin ?? false;
|
|
1297
|
-
message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? GlobalDecoderRegistry.fromPartial(object.decisionPolicy) : undefined;
|
|
1298
|
-
return message;
|
|
1299
|
-
},
|
|
1300
|
-
fromAmino(object) {
|
|
1301
|
-
const message = createBaseMsgCreateGroupWithPolicy();
|
|
1302
|
-
if (object.admin !== undefined && object.admin !== null) {
|
|
1303
|
-
message.admin = object.admin;
|
|
1304
|
-
}
|
|
1305
|
-
message.members = object.members?.map(e => MemberRequest.fromAmino(e)) || [];
|
|
1306
|
-
if (object.group_metadata !== undefined && object.group_metadata !== null) {
|
|
1307
|
-
message.groupMetadata = object.group_metadata;
|
|
1308
|
-
}
|
|
1309
|
-
if (object.group_policy_metadata !== undefined && object.group_policy_metadata !== null) {
|
|
1310
|
-
message.groupPolicyMetadata = object.group_policy_metadata;
|
|
1311
|
-
}
|
|
1312
|
-
if (object.group_policy_as_admin !== undefined && object.group_policy_as_admin !== null) {
|
|
1313
|
-
message.groupPolicyAsAdmin = object.group_policy_as_admin;
|
|
1314
|
-
}
|
|
1315
|
-
if (object.decision_policy !== undefined && object.decision_policy !== null) {
|
|
1316
|
-
message.decisionPolicy = GlobalDecoderRegistry.fromAminoMsg(object.decision_policy);
|
|
1317
|
-
}
|
|
1318
|
-
return message;
|
|
1319
|
-
},
|
|
1320
|
-
toAmino(message) {
|
|
1321
|
-
const obj = {};
|
|
1322
|
-
obj.admin = message.admin === "" ? undefined : message.admin;
|
|
1323
|
-
if (message.members) {
|
|
1324
|
-
obj.members = message.members.map(e => e ? MemberRequest.toAmino(e) : undefined);
|
|
1325
|
-
}
|
|
1326
|
-
else {
|
|
1327
|
-
obj.members = message.members;
|
|
1328
|
-
}
|
|
1329
|
-
obj.group_metadata = message.groupMetadata === "" ? undefined : message.groupMetadata;
|
|
1330
|
-
obj.group_policy_metadata = message.groupPolicyMetadata === "" ? undefined : message.groupPolicyMetadata;
|
|
1331
|
-
obj.group_policy_as_admin = message.groupPolicyAsAdmin === false ? undefined : message.groupPolicyAsAdmin;
|
|
1332
|
-
obj.decision_policy = message.decisionPolicy ? GlobalDecoderRegistry.toAminoMsg(message.decisionPolicy) : undefined;
|
|
1333
|
-
return obj;
|
|
1334
|
-
},
|
|
1335
|
-
fromAminoMsg(object) {
|
|
1336
|
-
return MsgCreateGroupWithPolicy.fromAmino(object.value);
|
|
1337
|
-
},
|
|
1338
|
-
toAminoMsg(message) {
|
|
1339
|
-
return {
|
|
1340
|
-
type: "cosmos-sdk/MsgCreateGroupWithPolicy",
|
|
1341
|
-
value: MsgCreateGroupWithPolicy.toAmino(message)
|
|
1342
|
-
};
|
|
1343
|
-
},
|
|
1344
|
-
fromProtoMsg(message) {
|
|
1345
|
-
return MsgCreateGroupWithPolicy.decode(message.value);
|
|
1346
|
-
},
|
|
1347
|
-
toProto(message) {
|
|
1348
|
-
return MsgCreateGroupWithPolicy.encode(message).finish();
|
|
1349
|
-
},
|
|
1350
|
-
toProtoMsg(message) {
|
|
1351
|
-
return {
|
|
1352
|
-
typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy",
|
|
1353
|
-
value: MsgCreateGroupWithPolicy.encode(message).finish()
|
|
1354
|
-
};
|
|
1355
|
-
},
|
|
1356
|
-
registerTypeUrl() {
|
|
1357
|
-
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MsgCreateGroupWithPolicy.typeUrl)) {
|
|
1358
|
-
return;
|
|
1359
|
-
}
|
|
1360
|
-
ThresholdDecisionPolicy.registerTypeUrl();
|
|
1361
|
-
PercentageDecisionPolicy.registerTypeUrl();
|
|
1362
|
-
}
|
|
1363
|
-
};
|
|
1364
|
-
function createBaseMsgCreateGroupWithPolicyResponse() {
|
|
1365
|
-
return {
|
|
1366
|
-
groupId: BigInt(0),
|
|
1367
|
-
groupPolicyAddress: ""
|
|
1368
|
-
};
|
|
1369
|
-
}
|
|
1370
|
-
/**
|
|
1371
|
-
* MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type.
|
|
1372
|
-
* @name MsgCreateGroupWithPolicyResponse
|
|
1373
|
-
* @package cosmos.group.v1
|
|
1374
|
-
* @see proto type: cosmos.group.v1.MsgCreateGroupWithPolicyResponse
|
|
1375
|
-
*/
|
|
1376
|
-
export const MsgCreateGroupWithPolicyResponse = {
|
|
1377
|
-
typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse",
|
|
1378
|
-
aminoType: "cosmos-sdk/MsgCreateGroupWithPolicyResponse",
|
|
1379
|
-
is(o) {
|
|
1380
|
-
return o && (o.$typeUrl === MsgCreateGroupWithPolicyResponse.typeUrl || typeof o.groupId === "bigint" && typeof o.groupPolicyAddress === "string");
|
|
1381
|
-
},
|
|
1382
|
-
isSDK(o) {
|
|
1383
|
-
return o && (o.$typeUrl === MsgCreateGroupWithPolicyResponse.typeUrl || typeof o.group_id === "bigint" && typeof o.group_policy_address === "string");
|
|
1384
|
-
},
|
|
1385
|
-
isAmino(o) {
|
|
1386
|
-
return o && (o.$typeUrl === MsgCreateGroupWithPolicyResponse.typeUrl || typeof o.group_id === "bigint" && typeof o.group_policy_address === "string");
|
|
1387
|
-
},
|
|
1388
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1389
|
-
if (message.groupId !== BigInt(0)) {
|
|
1390
|
-
writer.uint32(8).uint64(message.groupId);
|
|
1391
|
-
}
|
|
1392
|
-
if (message.groupPolicyAddress !== "") {
|
|
1393
|
-
writer.uint32(18).string(message.groupPolicyAddress);
|
|
1394
|
-
}
|
|
1395
|
-
return writer;
|
|
1396
|
-
},
|
|
1397
|
-
decode(input, length) {
|
|
1398
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1399
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1400
|
-
const message = createBaseMsgCreateGroupWithPolicyResponse();
|
|
1401
|
-
while (reader.pos < end) {
|
|
1402
|
-
const tag = reader.uint32();
|
|
1403
|
-
switch (tag >>> 3) {
|
|
1404
|
-
case 1:
|
|
1405
|
-
message.groupId = reader.uint64();
|
|
1406
|
-
break;
|
|
1407
|
-
case 2:
|
|
1408
|
-
message.groupPolicyAddress = reader.string();
|
|
1409
|
-
break;
|
|
1410
|
-
default:
|
|
1411
|
-
reader.skipType(tag & 7);
|
|
1412
|
-
break;
|
|
1413
|
-
}
|
|
1414
|
-
}
|
|
1415
|
-
return message;
|
|
1416
|
-
},
|
|
1417
|
-
fromPartial(object) {
|
|
1418
|
-
const message = createBaseMsgCreateGroupWithPolicyResponse();
|
|
1419
|
-
message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
|
|
1420
|
-
message.groupPolicyAddress = object.groupPolicyAddress ?? "";
|
|
1421
|
-
return message;
|
|
1422
|
-
},
|
|
1423
|
-
fromAmino(object) {
|
|
1424
|
-
const message = createBaseMsgCreateGroupWithPolicyResponse();
|
|
1425
|
-
if (object.group_id !== undefined && object.group_id !== null) {
|
|
1426
|
-
message.groupId = BigInt(object.group_id);
|
|
1427
|
-
}
|
|
1428
|
-
if (object.group_policy_address !== undefined && object.group_policy_address !== null) {
|
|
1429
|
-
message.groupPolicyAddress = object.group_policy_address;
|
|
1430
|
-
}
|
|
1431
|
-
return message;
|
|
1432
|
-
},
|
|
1433
|
-
toAmino(message) {
|
|
1434
|
-
const obj = {};
|
|
1435
|
-
obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
|
|
1436
|
-
obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress;
|
|
1437
|
-
return obj;
|
|
1438
|
-
},
|
|
1439
|
-
fromAminoMsg(object) {
|
|
1440
|
-
return MsgCreateGroupWithPolicyResponse.fromAmino(object.value);
|
|
1441
|
-
},
|
|
1442
|
-
toAminoMsg(message) {
|
|
1443
|
-
return {
|
|
1444
|
-
type: "cosmos-sdk/MsgCreateGroupWithPolicyResponse",
|
|
1445
|
-
value: MsgCreateGroupWithPolicyResponse.toAmino(message)
|
|
1446
|
-
};
|
|
1447
|
-
},
|
|
1448
|
-
fromProtoMsg(message) {
|
|
1449
|
-
return MsgCreateGroupWithPolicyResponse.decode(message.value);
|
|
1450
|
-
},
|
|
1451
|
-
toProto(message) {
|
|
1452
|
-
return MsgCreateGroupWithPolicyResponse.encode(message).finish();
|
|
1453
|
-
},
|
|
1454
|
-
toProtoMsg(message) {
|
|
1455
|
-
return {
|
|
1456
|
-
typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse",
|
|
1457
|
-
value: MsgCreateGroupWithPolicyResponse.encode(message).finish()
|
|
1458
|
-
};
|
|
1459
|
-
},
|
|
1460
|
-
registerTypeUrl() { }
|
|
1461
|
-
};
|
|
1462
|
-
function createBaseMsgUpdateGroupPolicyDecisionPolicy() {
|
|
1463
|
-
return {
|
|
1464
|
-
admin: "",
|
|
1465
|
-
groupPolicyAddress: "",
|
|
1466
|
-
decisionPolicy: undefined
|
|
1467
|
-
};
|
|
1468
|
-
}
|
|
1469
|
-
/**
|
|
1470
|
-
* MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type.
|
|
1471
|
-
* @name MsgUpdateGroupPolicyDecisionPolicy
|
|
1472
|
-
* @package cosmos.group.v1
|
|
1473
|
-
* @see proto type: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy
|
|
1474
|
-
*/
|
|
1475
|
-
export const MsgUpdateGroupPolicyDecisionPolicy = {
|
|
1476
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",
|
|
1477
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupDecisionPolicy",
|
|
1478
|
-
is(o) {
|
|
1479
|
-
return o && (o.$typeUrl === MsgUpdateGroupPolicyDecisionPolicy.typeUrl || typeof o.admin === "string" && typeof o.groupPolicyAddress === "string");
|
|
1480
|
-
},
|
|
1481
|
-
isSDK(o) {
|
|
1482
|
-
return o && (o.$typeUrl === MsgUpdateGroupPolicyDecisionPolicy.typeUrl || typeof o.admin === "string" && typeof o.group_policy_address === "string");
|
|
1483
|
-
},
|
|
1484
|
-
isAmino(o) {
|
|
1485
|
-
return o && (o.$typeUrl === MsgUpdateGroupPolicyDecisionPolicy.typeUrl || typeof o.admin === "string" && typeof o.group_policy_address === "string");
|
|
1486
|
-
},
|
|
1487
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1488
|
-
if (message.admin !== "") {
|
|
1489
|
-
writer.uint32(10).string(message.admin);
|
|
1490
|
-
}
|
|
1491
|
-
if (message.groupPolicyAddress !== "") {
|
|
1492
|
-
writer.uint32(18).string(message.groupPolicyAddress);
|
|
1493
|
-
}
|
|
1494
|
-
if (message.decisionPolicy !== undefined) {
|
|
1495
|
-
Any.encode(GlobalDecoderRegistry.wrapAny(message.decisionPolicy), writer.uint32(26).fork()).ldelim();
|
|
1496
|
-
}
|
|
1497
|
-
return writer;
|
|
1498
|
-
},
|
|
1499
|
-
decode(input, length) {
|
|
1500
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1501
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1502
|
-
const message = createBaseMsgUpdateGroupPolicyDecisionPolicy();
|
|
1503
|
-
while (reader.pos < end) {
|
|
1504
|
-
const tag = reader.uint32();
|
|
1505
|
-
switch (tag >>> 3) {
|
|
1506
|
-
case 1:
|
|
1507
|
-
message.admin = reader.string();
|
|
1508
|
-
break;
|
|
1509
|
-
case 2:
|
|
1510
|
-
message.groupPolicyAddress = reader.string();
|
|
1511
|
-
break;
|
|
1512
|
-
case 3:
|
|
1513
|
-
message.decisionPolicy = GlobalDecoderRegistry.unwrapAny(reader);
|
|
1514
|
-
break;
|
|
1515
|
-
default:
|
|
1516
|
-
reader.skipType(tag & 7);
|
|
1517
|
-
break;
|
|
1518
|
-
}
|
|
1519
|
-
}
|
|
1520
|
-
return message;
|
|
1521
|
-
},
|
|
1522
|
-
fromPartial(object) {
|
|
1523
|
-
const message = createBaseMsgUpdateGroupPolicyDecisionPolicy();
|
|
1524
|
-
message.admin = object.admin ?? "";
|
|
1525
|
-
message.groupPolicyAddress = object.groupPolicyAddress ?? "";
|
|
1526
|
-
message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? GlobalDecoderRegistry.fromPartial(object.decisionPolicy) : undefined;
|
|
1527
|
-
return message;
|
|
1528
|
-
},
|
|
1529
|
-
fromAmino(object) {
|
|
1530
|
-
const message = createBaseMsgUpdateGroupPolicyDecisionPolicy();
|
|
1531
|
-
if (object.admin !== undefined && object.admin !== null) {
|
|
1532
|
-
message.admin = object.admin;
|
|
1533
|
-
}
|
|
1534
|
-
if (object.group_policy_address !== undefined && object.group_policy_address !== null) {
|
|
1535
|
-
message.groupPolicyAddress = object.group_policy_address;
|
|
1536
|
-
}
|
|
1537
|
-
if (object.decision_policy !== undefined && object.decision_policy !== null) {
|
|
1538
|
-
message.decisionPolicy = GlobalDecoderRegistry.fromAminoMsg(object.decision_policy);
|
|
1539
|
-
}
|
|
1540
|
-
return message;
|
|
1541
|
-
},
|
|
1542
|
-
toAmino(message) {
|
|
1543
|
-
const obj = {};
|
|
1544
|
-
obj.admin = message.admin === "" ? undefined : message.admin;
|
|
1545
|
-
obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress;
|
|
1546
|
-
obj.decision_policy = message.decisionPolicy ? GlobalDecoderRegistry.toAminoMsg(message.decisionPolicy) : undefined;
|
|
1547
|
-
return obj;
|
|
1548
|
-
},
|
|
1549
|
-
fromAminoMsg(object) {
|
|
1550
|
-
return MsgUpdateGroupPolicyDecisionPolicy.fromAmino(object.value);
|
|
1551
|
-
},
|
|
1552
|
-
toAminoMsg(message) {
|
|
1553
|
-
return {
|
|
1554
|
-
type: "cosmos-sdk/MsgUpdateGroupDecisionPolicy",
|
|
1555
|
-
value: MsgUpdateGroupPolicyDecisionPolicy.toAmino(message)
|
|
1556
|
-
};
|
|
1557
|
-
},
|
|
1558
|
-
fromProtoMsg(message) {
|
|
1559
|
-
return MsgUpdateGroupPolicyDecisionPolicy.decode(message.value);
|
|
1560
|
-
},
|
|
1561
|
-
toProto(message) {
|
|
1562
|
-
return MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish();
|
|
1563
|
-
},
|
|
1564
|
-
toProtoMsg(message) {
|
|
1565
|
-
return {
|
|
1566
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",
|
|
1567
|
-
value: MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish()
|
|
1568
|
-
};
|
|
1569
|
-
},
|
|
1570
|
-
registerTypeUrl() {
|
|
1571
|
-
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MsgUpdateGroupPolicyDecisionPolicy.typeUrl)) {
|
|
1572
|
-
return;
|
|
1573
|
-
}
|
|
1574
|
-
ThresholdDecisionPolicy.registerTypeUrl();
|
|
1575
|
-
PercentageDecisionPolicy.registerTypeUrl();
|
|
1576
|
-
}
|
|
1577
|
-
};
|
|
1578
|
-
function createBaseMsgUpdateGroupPolicyDecisionPolicyResponse() {
|
|
1579
|
-
return {};
|
|
1580
|
-
}
|
|
1581
|
-
/**
|
|
1582
|
-
* MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type.
|
|
1583
|
-
* @name MsgUpdateGroupPolicyDecisionPolicyResponse
|
|
1584
|
-
* @package cosmos.group.v1
|
|
1585
|
-
* @see proto type: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse
|
|
1586
|
-
*/
|
|
1587
|
-
export const MsgUpdateGroupPolicyDecisionPolicyResponse = {
|
|
1588
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse",
|
|
1589
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse",
|
|
1590
|
-
is(o) {
|
|
1591
|
-
return o && o.$typeUrl === MsgUpdateGroupPolicyDecisionPolicyResponse.typeUrl;
|
|
1592
|
-
},
|
|
1593
|
-
isSDK(o) {
|
|
1594
|
-
return o && o.$typeUrl === MsgUpdateGroupPolicyDecisionPolicyResponse.typeUrl;
|
|
1595
|
-
},
|
|
1596
|
-
isAmino(o) {
|
|
1597
|
-
return o && o.$typeUrl === MsgUpdateGroupPolicyDecisionPolicyResponse.typeUrl;
|
|
1598
|
-
},
|
|
1599
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
1600
|
-
return writer;
|
|
1601
|
-
},
|
|
1602
|
-
decode(input, length) {
|
|
1603
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1604
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1605
|
-
const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse();
|
|
1606
|
-
while (reader.pos < end) {
|
|
1607
|
-
const tag = reader.uint32();
|
|
1608
|
-
switch (tag >>> 3) {
|
|
1609
|
-
default:
|
|
1610
|
-
reader.skipType(tag & 7);
|
|
1611
|
-
break;
|
|
1612
|
-
}
|
|
1613
|
-
}
|
|
1614
|
-
return message;
|
|
1615
|
-
},
|
|
1616
|
-
fromPartial(_) {
|
|
1617
|
-
const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse();
|
|
1618
|
-
return message;
|
|
1619
|
-
},
|
|
1620
|
-
fromAmino(_) {
|
|
1621
|
-
const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse();
|
|
1622
|
-
return message;
|
|
1623
|
-
},
|
|
1624
|
-
toAmino(_) {
|
|
1625
|
-
const obj = {};
|
|
1626
|
-
return obj;
|
|
1627
|
-
},
|
|
1628
|
-
fromAminoMsg(object) {
|
|
1629
|
-
return MsgUpdateGroupPolicyDecisionPolicyResponse.fromAmino(object.value);
|
|
1630
|
-
},
|
|
1631
|
-
toAminoMsg(message) {
|
|
1632
|
-
return {
|
|
1633
|
-
type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse",
|
|
1634
|
-
value: MsgUpdateGroupPolicyDecisionPolicyResponse.toAmino(message)
|
|
1635
|
-
};
|
|
1636
|
-
},
|
|
1637
|
-
fromProtoMsg(message) {
|
|
1638
|
-
return MsgUpdateGroupPolicyDecisionPolicyResponse.decode(message.value);
|
|
1639
|
-
},
|
|
1640
|
-
toProto(message) {
|
|
1641
|
-
return MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish();
|
|
1642
|
-
},
|
|
1643
|
-
toProtoMsg(message) {
|
|
1644
|
-
return {
|
|
1645
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse",
|
|
1646
|
-
value: MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish()
|
|
1647
|
-
};
|
|
1648
|
-
},
|
|
1649
|
-
registerTypeUrl() { }
|
|
1650
|
-
};
|
|
1651
|
-
function createBaseMsgUpdateGroupPolicyMetadata() {
|
|
1652
|
-
return {
|
|
1653
|
-
admin: "",
|
|
1654
|
-
groupPolicyAddress: "",
|
|
1655
|
-
metadata: ""
|
|
1656
|
-
};
|
|
1657
|
-
}
|
|
1658
|
-
/**
|
|
1659
|
-
* MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type.
|
|
1660
|
-
* @name MsgUpdateGroupPolicyMetadata
|
|
1661
|
-
* @package cosmos.group.v1
|
|
1662
|
-
* @see proto type: cosmos.group.v1.MsgUpdateGroupPolicyMetadata
|
|
1663
|
-
*/
|
|
1664
|
-
export const MsgUpdateGroupPolicyMetadata = {
|
|
1665
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",
|
|
1666
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupPolicyMetadata",
|
|
1667
|
-
is(o) {
|
|
1668
|
-
return o && (o.$typeUrl === MsgUpdateGroupPolicyMetadata.typeUrl || typeof o.admin === "string" && typeof o.groupPolicyAddress === "string" && typeof o.metadata === "string");
|
|
1669
|
-
},
|
|
1670
|
-
isSDK(o) {
|
|
1671
|
-
return o && (o.$typeUrl === MsgUpdateGroupPolicyMetadata.typeUrl || typeof o.admin === "string" && typeof o.group_policy_address === "string" && typeof o.metadata === "string");
|
|
1672
|
-
},
|
|
1673
|
-
isAmino(o) {
|
|
1674
|
-
return o && (o.$typeUrl === MsgUpdateGroupPolicyMetadata.typeUrl || typeof o.admin === "string" && typeof o.group_policy_address === "string" && typeof o.metadata === "string");
|
|
1675
|
-
},
|
|
1676
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1677
|
-
if (message.admin !== "") {
|
|
1678
|
-
writer.uint32(10).string(message.admin);
|
|
1679
|
-
}
|
|
1680
|
-
if (message.groupPolicyAddress !== "") {
|
|
1681
|
-
writer.uint32(18).string(message.groupPolicyAddress);
|
|
1682
|
-
}
|
|
1683
|
-
if (message.metadata !== "") {
|
|
1684
|
-
writer.uint32(26).string(message.metadata);
|
|
1685
|
-
}
|
|
1686
|
-
return writer;
|
|
1687
|
-
},
|
|
1688
|
-
decode(input, length) {
|
|
1689
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1690
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1691
|
-
const message = createBaseMsgUpdateGroupPolicyMetadata();
|
|
1692
|
-
while (reader.pos < end) {
|
|
1693
|
-
const tag = reader.uint32();
|
|
1694
|
-
switch (tag >>> 3) {
|
|
1695
|
-
case 1:
|
|
1696
|
-
message.admin = reader.string();
|
|
1697
|
-
break;
|
|
1698
|
-
case 2:
|
|
1699
|
-
message.groupPolicyAddress = reader.string();
|
|
1700
|
-
break;
|
|
1701
|
-
case 3:
|
|
1702
|
-
message.metadata = reader.string();
|
|
1703
|
-
break;
|
|
1704
|
-
default:
|
|
1705
|
-
reader.skipType(tag & 7);
|
|
1706
|
-
break;
|
|
1707
|
-
}
|
|
1708
|
-
}
|
|
1709
|
-
return message;
|
|
1710
|
-
},
|
|
1711
|
-
fromPartial(object) {
|
|
1712
|
-
const message = createBaseMsgUpdateGroupPolicyMetadata();
|
|
1713
|
-
message.admin = object.admin ?? "";
|
|
1714
|
-
message.groupPolicyAddress = object.groupPolicyAddress ?? "";
|
|
1715
|
-
message.metadata = object.metadata ?? "";
|
|
1716
|
-
return message;
|
|
1717
|
-
},
|
|
1718
|
-
fromAmino(object) {
|
|
1719
|
-
const message = createBaseMsgUpdateGroupPolicyMetadata();
|
|
1720
|
-
if (object.admin !== undefined && object.admin !== null) {
|
|
1721
|
-
message.admin = object.admin;
|
|
1722
|
-
}
|
|
1723
|
-
if (object.group_policy_address !== undefined && object.group_policy_address !== null) {
|
|
1724
|
-
message.groupPolicyAddress = object.group_policy_address;
|
|
1725
|
-
}
|
|
1726
|
-
if (object.metadata !== undefined && object.metadata !== null) {
|
|
1727
|
-
message.metadata = object.metadata;
|
|
1728
|
-
}
|
|
1729
|
-
return message;
|
|
1730
|
-
},
|
|
1731
|
-
toAmino(message) {
|
|
1732
|
-
const obj = {};
|
|
1733
|
-
obj.admin = message.admin === "" ? undefined : message.admin;
|
|
1734
|
-
obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress;
|
|
1735
|
-
obj.metadata = message.metadata === "" ? undefined : message.metadata;
|
|
1736
|
-
return obj;
|
|
1737
|
-
},
|
|
1738
|
-
fromAminoMsg(object) {
|
|
1739
|
-
return MsgUpdateGroupPolicyMetadata.fromAmino(object.value);
|
|
1740
|
-
},
|
|
1741
|
-
toAminoMsg(message) {
|
|
1742
|
-
return {
|
|
1743
|
-
type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata",
|
|
1744
|
-
value: MsgUpdateGroupPolicyMetadata.toAmino(message)
|
|
1745
|
-
};
|
|
1746
|
-
},
|
|
1747
|
-
fromProtoMsg(message) {
|
|
1748
|
-
return MsgUpdateGroupPolicyMetadata.decode(message.value);
|
|
1749
|
-
},
|
|
1750
|
-
toProto(message) {
|
|
1751
|
-
return MsgUpdateGroupPolicyMetadata.encode(message).finish();
|
|
1752
|
-
},
|
|
1753
|
-
toProtoMsg(message) {
|
|
1754
|
-
return {
|
|
1755
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",
|
|
1756
|
-
value: MsgUpdateGroupPolicyMetadata.encode(message).finish()
|
|
1757
|
-
};
|
|
1758
|
-
},
|
|
1759
|
-
registerTypeUrl() { }
|
|
1760
|
-
};
|
|
1761
|
-
function createBaseMsgUpdateGroupPolicyMetadataResponse() {
|
|
1762
|
-
return {};
|
|
1763
|
-
}
|
|
1764
|
-
/**
|
|
1765
|
-
* MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type.
|
|
1766
|
-
* @name MsgUpdateGroupPolicyMetadataResponse
|
|
1767
|
-
* @package cosmos.group.v1
|
|
1768
|
-
* @see proto type: cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse
|
|
1769
|
-
*/
|
|
1770
|
-
export const MsgUpdateGroupPolicyMetadataResponse = {
|
|
1771
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse",
|
|
1772
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse",
|
|
1773
|
-
is(o) {
|
|
1774
|
-
return o && o.$typeUrl === MsgUpdateGroupPolicyMetadataResponse.typeUrl;
|
|
1775
|
-
},
|
|
1776
|
-
isSDK(o) {
|
|
1777
|
-
return o && o.$typeUrl === MsgUpdateGroupPolicyMetadataResponse.typeUrl;
|
|
1778
|
-
},
|
|
1779
|
-
isAmino(o) {
|
|
1780
|
-
return o && o.$typeUrl === MsgUpdateGroupPolicyMetadataResponse.typeUrl;
|
|
1781
|
-
},
|
|
1782
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
1783
|
-
return writer;
|
|
1784
|
-
},
|
|
1785
|
-
decode(input, length) {
|
|
1786
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1787
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1788
|
-
const message = createBaseMsgUpdateGroupPolicyMetadataResponse();
|
|
1789
|
-
while (reader.pos < end) {
|
|
1790
|
-
const tag = reader.uint32();
|
|
1791
|
-
switch (tag >>> 3) {
|
|
1792
|
-
default:
|
|
1793
|
-
reader.skipType(tag & 7);
|
|
1794
|
-
break;
|
|
1795
|
-
}
|
|
1796
|
-
}
|
|
1797
|
-
return message;
|
|
1798
|
-
},
|
|
1799
|
-
fromPartial(_) {
|
|
1800
|
-
const message = createBaseMsgUpdateGroupPolicyMetadataResponse();
|
|
1801
|
-
return message;
|
|
1802
|
-
},
|
|
1803
|
-
fromAmino(_) {
|
|
1804
|
-
const message = createBaseMsgUpdateGroupPolicyMetadataResponse();
|
|
1805
|
-
return message;
|
|
1806
|
-
},
|
|
1807
|
-
toAmino(_) {
|
|
1808
|
-
const obj = {};
|
|
1809
|
-
return obj;
|
|
1810
|
-
},
|
|
1811
|
-
fromAminoMsg(object) {
|
|
1812
|
-
return MsgUpdateGroupPolicyMetadataResponse.fromAmino(object.value);
|
|
1813
|
-
},
|
|
1814
|
-
toAminoMsg(message) {
|
|
1815
|
-
return {
|
|
1816
|
-
type: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse",
|
|
1817
|
-
value: MsgUpdateGroupPolicyMetadataResponse.toAmino(message)
|
|
1818
|
-
};
|
|
1819
|
-
},
|
|
1820
|
-
fromProtoMsg(message) {
|
|
1821
|
-
return MsgUpdateGroupPolicyMetadataResponse.decode(message.value);
|
|
1822
|
-
},
|
|
1823
|
-
toProto(message) {
|
|
1824
|
-
return MsgUpdateGroupPolicyMetadataResponse.encode(message).finish();
|
|
1825
|
-
},
|
|
1826
|
-
toProtoMsg(message) {
|
|
1827
|
-
return {
|
|
1828
|
-
typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse",
|
|
1829
|
-
value: MsgUpdateGroupPolicyMetadataResponse.encode(message).finish()
|
|
1830
|
-
};
|
|
1831
|
-
},
|
|
1832
|
-
registerTypeUrl() { }
|
|
1833
|
-
};
|
|
1834
|
-
function createBaseMsgSubmitProposal() {
|
|
1835
|
-
return {
|
|
1836
|
-
groupPolicyAddress: "",
|
|
1837
|
-
proposers: [],
|
|
1838
|
-
metadata: "",
|
|
1839
|
-
messages: [],
|
|
1840
|
-
exec: 0,
|
|
1841
|
-
title: "",
|
|
1842
|
-
summary: ""
|
|
1843
|
-
};
|
|
1844
|
-
}
|
|
1845
|
-
/**
|
|
1846
|
-
* MsgSubmitProposal is the Msg/SubmitProposal request type.
|
|
1847
|
-
* @name MsgSubmitProposal
|
|
1848
|
-
* @package cosmos.group.v1
|
|
1849
|
-
* @see proto type: cosmos.group.v1.MsgSubmitProposal
|
|
1850
|
-
*/
|
|
1851
|
-
export const MsgSubmitProposal = {
|
|
1852
|
-
typeUrl: "/cosmos.group.v1.MsgSubmitProposal",
|
|
1853
|
-
aminoType: "cosmos-sdk/group/MsgSubmitProposal",
|
|
1854
|
-
is(o) {
|
|
1855
|
-
return o && (o.$typeUrl === MsgSubmitProposal.typeUrl || typeof o.groupPolicyAddress === "string" && Array.isArray(o.proposers) && (!o.proposers.length || typeof o.proposers[0] === "string") && typeof o.metadata === "string" && Array.isArray(o.messages) && (!o.messages.length || Any.is(o.messages[0])) && isSet(o.exec) && typeof o.title === "string" && typeof o.summary === "string");
|
|
1856
|
-
},
|
|
1857
|
-
isSDK(o) {
|
|
1858
|
-
return o && (o.$typeUrl === MsgSubmitProposal.typeUrl || typeof o.group_policy_address === "string" && Array.isArray(o.proposers) && (!o.proposers.length || typeof o.proposers[0] === "string") && typeof o.metadata === "string" && Array.isArray(o.messages) && (!o.messages.length || Any.isSDK(o.messages[0])) && isSet(o.exec) && typeof o.title === "string" && typeof o.summary === "string");
|
|
1859
|
-
},
|
|
1860
|
-
isAmino(o) {
|
|
1861
|
-
return o && (o.$typeUrl === MsgSubmitProposal.typeUrl || typeof o.group_policy_address === "string" && Array.isArray(o.proposers) && (!o.proposers.length || typeof o.proposers[0] === "string") && typeof o.metadata === "string" && Array.isArray(o.messages) && (!o.messages.length || Any.isAmino(o.messages[0])) && isSet(o.exec) && typeof o.title === "string" && typeof o.summary === "string");
|
|
1862
|
-
},
|
|
1863
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1864
|
-
if (message.groupPolicyAddress !== "") {
|
|
1865
|
-
writer.uint32(10).string(message.groupPolicyAddress);
|
|
1866
|
-
}
|
|
1867
|
-
for (const v of message.proposers) {
|
|
1868
|
-
writer.uint32(18).string(v);
|
|
1869
|
-
}
|
|
1870
|
-
if (message.metadata !== "") {
|
|
1871
|
-
writer.uint32(26).string(message.metadata);
|
|
1872
|
-
}
|
|
1873
|
-
for (const v of message.messages) {
|
|
1874
|
-
Any.encode(v, writer.uint32(34).fork()).ldelim();
|
|
1875
|
-
}
|
|
1876
|
-
if (message.exec !== 0) {
|
|
1877
|
-
writer.uint32(40).int32(message.exec);
|
|
1878
|
-
}
|
|
1879
|
-
if (message.title !== "") {
|
|
1880
|
-
writer.uint32(50).string(message.title);
|
|
1881
|
-
}
|
|
1882
|
-
if (message.summary !== "") {
|
|
1883
|
-
writer.uint32(58).string(message.summary);
|
|
1884
|
-
}
|
|
1885
|
-
return writer;
|
|
1886
|
-
},
|
|
1887
|
-
decode(input, length) {
|
|
1888
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1889
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1890
|
-
const message = createBaseMsgSubmitProposal();
|
|
1891
|
-
while (reader.pos < end) {
|
|
1892
|
-
const tag = reader.uint32();
|
|
1893
|
-
switch (tag >>> 3) {
|
|
1894
|
-
case 1:
|
|
1895
|
-
message.groupPolicyAddress = reader.string();
|
|
1896
|
-
break;
|
|
1897
|
-
case 2:
|
|
1898
|
-
message.proposers.push(reader.string());
|
|
1899
|
-
break;
|
|
1900
|
-
case 3:
|
|
1901
|
-
message.metadata = reader.string();
|
|
1902
|
-
break;
|
|
1903
|
-
case 4:
|
|
1904
|
-
message.messages.push(Any.decode(reader, reader.uint32()));
|
|
1905
|
-
break;
|
|
1906
|
-
case 5:
|
|
1907
|
-
message.exec = reader.int32();
|
|
1908
|
-
break;
|
|
1909
|
-
case 6:
|
|
1910
|
-
message.title = reader.string();
|
|
1911
|
-
break;
|
|
1912
|
-
case 7:
|
|
1913
|
-
message.summary = reader.string();
|
|
1914
|
-
break;
|
|
1915
|
-
default:
|
|
1916
|
-
reader.skipType(tag & 7);
|
|
1917
|
-
break;
|
|
1918
|
-
}
|
|
1919
|
-
}
|
|
1920
|
-
return message;
|
|
1921
|
-
},
|
|
1922
|
-
fromPartial(object) {
|
|
1923
|
-
const message = createBaseMsgSubmitProposal();
|
|
1924
|
-
message.groupPolicyAddress = object.groupPolicyAddress ?? "";
|
|
1925
|
-
message.proposers = object.proposers?.map(e => e) || [];
|
|
1926
|
-
message.metadata = object.metadata ?? "";
|
|
1927
|
-
message.messages = object.messages?.map(e => Any.fromPartial(e)) || [];
|
|
1928
|
-
message.exec = object.exec ?? 0;
|
|
1929
|
-
message.title = object.title ?? "";
|
|
1930
|
-
message.summary = object.summary ?? "";
|
|
1931
|
-
return message;
|
|
1932
|
-
},
|
|
1933
|
-
fromAmino(object) {
|
|
1934
|
-
const message = createBaseMsgSubmitProposal();
|
|
1935
|
-
if (object.group_policy_address !== undefined && object.group_policy_address !== null) {
|
|
1936
|
-
message.groupPolicyAddress = object.group_policy_address;
|
|
1937
|
-
}
|
|
1938
|
-
message.proposers = object.proposers?.map(e => e) || [];
|
|
1939
|
-
if (object.metadata !== undefined && object.metadata !== null) {
|
|
1940
|
-
message.metadata = object.metadata;
|
|
1941
|
-
}
|
|
1942
|
-
message.messages = object.messages?.map(e => Any.fromAmino(e)) || [];
|
|
1943
|
-
if (object.exec !== undefined && object.exec !== null) {
|
|
1944
|
-
message.exec = object.exec;
|
|
1945
|
-
}
|
|
1946
|
-
if (object.title !== undefined && object.title !== null) {
|
|
1947
|
-
message.title = object.title;
|
|
1948
|
-
}
|
|
1949
|
-
if (object.summary !== undefined && object.summary !== null) {
|
|
1950
|
-
message.summary = object.summary;
|
|
1951
|
-
}
|
|
1952
|
-
return message;
|
|
1953
|
-
},
|
|
1954
|
-
toAmino(message) {
|
|
1955
|
-
const obj = {};
|
|
1956
|
-
obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress;
|
|
1957
|
-
if (message.proposers) {
|
|
1958
|
-
obj.proposers = message.proposers.map(e => e);
|
|
1959
|
-
}
|
|
1960
|
-
else {
|
|
1961
|
-
obj.proposers = message.proposers;
|
|
1962
|
-
}
|
|
1963
|
-
obj.metadata = message.metadata === "" ? undefined : message.metadata;
|
|
1964
|
-
if (message.messages) {
|
|
1965
|
-
obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined);
|
|
1966
|
-
}
|
|
1967
|
-
else {
|
|
1968
|
-
obj.messages = message.messages;
|
|
1969
|
-
}
|
|
1970
|
-
obj.exec = message.exec === 0 ? undefined : message.exec;
|
|
1971
|
-
obj.title = message.title === "" ? undefined : message.title;
|
|
1972
|
-
obj.summary = message.summary === "" ? undefined : message.summary;
|
|
1973
|
-
return obj;
|
|
1974
|
-
},
|
|
1975
|
-
fromAminoMsg(object) {
|
|
1976
|
-
return MsgSubmitProposal.fromAmino(object.value);
|
|
1977
|
-
},
|
|
1978
|
-
toAminoMsg(message) {
|
|
1979
|
-
return {
|
|
1980
|
-
type: "cosmos-sdk/group/MsgSubmitProposal",
|
|
1981
|
-
value: MsgSubmitProposal.toAmino(message)
|
|
1982
|
-
};
|
|
1983
|
-
},
|
|
1984
|
-
fromProtoMsg(message) {
|
|
1985
|
-
return MsgSubmitProposal.decode(message.value);
|
|
1986
|
-
},
|
|
1987
|
-
toProto(message) {
|
|
1988
|
-
return MsgSubmitProposal.encode(message).finish();
|
|
1989
|
-
},
|
|
1990
|
-
toProtoMsg(message) {
|
|
1991
|
-
return {
|
|
1992
|
-
typeUrl: "/cosmos.group.v1.MsgSubmitProposal",
|
|
1993
|
-
value: MsgSubmitProposal.encode(message).finish()
|
|
1994
|
-
};
|
|
1995
|
-
},
|
|
1996
|
-
registerTypeUrl() { }
|
|
1997
|
-
};
|
|
1998
|
-
function createBaseMsgSubmitProposalResponse() {
|
|
1999
|
-
return {
|
|
2000
|
-
proposalId: BigInt(0)
|
|
2001
|
-
};
|
|
2002
|
-
}
|
|
2003
|
-
/**
|
|
2004
|
-
* MsgSubmitProposalResponse is the Msg/SubmitProposal response type.
|
|
2005
|
-
* @name MsgSubmitProposalResponse
|
|
2006
|
-
* @package cosmos.group.v1
|
|
2007
|
-
* @see proto type: cosmos.group.v1.MsgSubmitProposalResponse
|
|
2008
|
-
*/
|
|
2009
|
-
export const MsgSubmitProposalResponse = {
|
|
2010
|
-
typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse",
|
|
2011
|
-
aminoType: "cosmos-sdk/MsgSubmitProposalResponse",
|
|
2012
|
-
is(o) {
|
|
2013
|
-
return o && (o.$typeUrl === MsgSubmitProposalResponse.typeUrl || typeof o.proposalId === "bigint");
|
|
2014
|
-
},
|
|
2015
|
-
isSDK(o) {
|
|
2016
|
-
return o && (o.$typeUrl === MsgSubmitProposalResponse.typeUrl || typeof o.proposal_id === "bigint");
|
|
2017
|
-
},
|
|
2018
|
-
isAmino(o) {
|
|
2019
|
-
return o && (o.$typeUrl === MsgSubmitProposalResponse.typeUrl || typeof o.proposal_id === "bigint");
|
|
2020
|
-
},
|
|
2021
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
2022
|
-
if (message.proposalId !== BigInt(0)) {
|
|
2023
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
2024
|
-
}
|
|
2025
|
-
return writer;
|
|
2026
|
-
},
|
|
2027
|
-
decode(input, length) {
|
|
2028
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2029
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2030
|
-
const message = createBaseMsgSubmitProposalResponse();
|
|
2031
|
-
while (reader.pos < end) {
|
|
2032
|
-
const tag = reader.uint32();
|
|
2033
|
-
switch (tag >>> 3) {
|
|
2034
|
-
case 1:
|
|
2035
|
-
message.proposalId = reader.uint64();
|
|
2036
|
-
break;
|
|
2037
|
-
default:
|
|
2038
|
-
reader.skipType(tag & 7);
|
|
2039
|
-
break;
|
|
2040
|
-
}
|
|
2041
|
-
}
|
|
2042
|
-
return message;
|
|
2043
|
-
},
|
|
2044
|
-
fromPartial(object) {
|
|
2045
|
-
const message = createBaseMsgSubmitProposalResponse();
|
|
2046
|
-
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
|
|
2047
|
-
return message;
|
|
2048
|
-
},
|
|
2049
|
-
fromAmino(object) {
|
|
2050
|
-
const message = createBaseMsgSubmitProposalResponse();
|
|
2051
|
-
if (object.proposal_id !== undefined && object.proposal_id !== null) {
|
|
2052
|
-
message.proposalId = BigInt(object.proposal_id);
|
|
2053
|
-
}
|
|
2054
|
-
return message;
|
|
2055
|
-
},
|
|
2056
|
-
toAmino(message) {
|
|
2057
|
-
const obj = {};
|
|
2058
|
-
obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
|
|
2059
|
-
return obj;
|
|
2060
|
-
},
|
|
2061
|
-
fromAminoMsg(object) {
|
|
2062
|
-
return MsgSubmitProposalResponse.fromAmino(object.value);
|
|
2063
|
-
},
|
|
2064
|
-
toAminoMsg(message) {
|
|
2065
|
-
return {
|
|
2066
|
-
type: "cosmos-sdk/MsgSubmitProposalResponse",
|
|
2067
|
-
value: MsgSubmitProposalResponse.toAmino(message)
|
|
2068
|
-
};
|
|
2069
|
-
},
|
|
2070
|
-
fromProtoMsg(message) {
|
|
2071
|
-
return MsgSubmitProposalResponse.decode(message.value);
|
|
2072
|
-
},
|
|
2073
|
-
toProto(message) {
|
|
2074
|
-
return MsgSubmitProposalResponse.encode(message).finish();
|
|
2075
|
-
},
|
|
2076
|
-
toProtoMsg(message) {
|
|
2077
|
-
return {
|
|
2078
|
-
typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse",
|
|
2079
|
-
value: MsgSubmitProposalResponse.encode(message).finish()
|
|
2080
|
-
};
|
|
2081
|
-
},
|
|
2082
|
-
registerTypeUrl() { }
|
|
2083
|
-
};
|
|
2084
|
-
function createBaseMsgWithdrawProposal() {
|
|
2085
|
-
return {
|
|
2086
|
-
proposalId: BigInt(0),
|
|
2087
|
-
address: ""
|
|
2088
|
-
};
|
|
2089
|
-
}
|
|
2090
|
-
/**
|
|
2091
|
-
* MsgWithdrawProposal is the Msg/WithdrawProposal request type.
|
|
2092
|
-
* @name MsgWithdrawProposal
|
|
2093
|
-
* @package cosmos.group.v1
|
|
2094
|
-
* @see proto type: cosmos.group.v1.MsgWithdrawProposal
|
|
2095
|
-
*/
|
|
2096
|
-
export const MsgWithdrawProposal = {
|
|
2097
|
-
typeUrl: "/cosmos.group.v1.MsgWithdrawProposal",
|
|
2098
|
-
aminoType: "cosmos-sdk/group/MsgWithdrawProposal",
|
|
2099
|
-
is(o) {
|
|
2100
|
-
return o && (o.$typeUrl === MsgWithdrawProposal.typeUrl || typeof o.proposalId === "bigint" && typeof o.address === "string");
|
|
2101
|
-
},
|
|
2102
|
-
isSDK(o) {
|
|
2103
|
-
return o && (o.$typeUrl === MsgWithdrawProposal.typeUrl || typeof o.proposal_id === "bigint" && typeof o.address === "string");
|
|
2104
|
-
},
|
|
2105
|
-
isAmino(o) {
|
|
2106
|
-
return o && (o.$typeUrl === MsgWithdrawProposal.typeUrl || typeof o.proposal_id === "bigint" && typeof o.address === "string");
|
|
2107
|
-
},
|
|
2108
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
2109
|
-
if (message.proposalId !== BigInt(0)) {
|
|
2110
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
2111
|
-
}
|
|
2112
|
-
if (message.address !== "") {
|
|
2113
|
-
writer.uint32(18).string(message.address);
|
|
2114
|
-
}
|
|
2115
|
-
return writer;
|
|
2116
|
-
},
|
|
2117
|
-
decode(input, length) {
|
|
2118
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2119
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2120
|
-
const message = createBaseMsgWithdrawProposal();
|
|
2121
|
-
while (reader.pos < end) {
|
|
2122
|
-
const tag = reader.uint32();
|
|
2123
|
-
switch (tag >>> 3) {
|
|
2124
|
-
case 1:
|
|
2125
|
-
message.proposalId = reader.uint64();
|
|
2126
|
-
break;
|
|
2127
|
-
case 2:
|
|
2128
|
-
message.address = reader.string();
|
|
2129
|
-
break;
|
|
2130
|
-
default:
|
|
2131
|
-
reader.skipType(tag & 7);
|
|
2132
|
-
break;
|
|
2133
|
-
}
|
|
2134
|
-
}
|
|
2135
|
-
return message;
|
|
2136
|
-
},
|
|
2137
|
-
fromPartial(object) {
|
|
2138
|
-
const message = createBaseMsgWithdrawProposal();
|
|
2139
|
-
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
|
|
2140
|
-
message.address = object.address ?? "";
|
|
2141
|
-
return message;
|
|
2142
|
-
},
|
|
2143
|
-
fromAmino(object) {
|
|
2144
|
-
const message = createBaseMsgWithdrawProposal();
|
|
2145
|
-
if (object.proposal_id !== undefined && object.proposal_id !== null) {
|
|
2146
|
-
message.proposalId = BigInt(object.proposal_id);
|
|
2147
|
-
}
|
|
2148
|
-
if (object.address !== undefined && object.address !== null) {
|
|
2149
|
-
message.address = object.address;
|
|
2150
|
-
}
|
|
2151
|
-
return message;
|
|
2152
|
-
},
|
|
2153
|
-
toAmino(message) {
|
|
2154
|
-
const obj = {};
|
|
2155
|
-
obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
|
|
2156
|
-
obj.address = message.address === "" ? undefined : message.address;
|
|
2157
|
-
return obj;
|
|
2158
|
-
},
|
|
2159
|
-
fromAminoMsg(object) {
|
|
2160
|
-
return MsgWithdrawProposal.fromAmino(object.value);
|
|
2161
|
-
},
|
|
2162
|
-
toAminoMsg(message) {
|
|
2163
|
-
return {
|
|
2164
|
-
type: "cosmos-sdk/group/MsgWithdrawProposal",
|
|
2165
|
-
value: MsgWithdrawProposal.toAmino(message)
|
|
2166
|
-
};
|
|
2167
|
-
},
|
|
2168
|
-
fromProtoMsg(message) {
|
|
2169
|
-
return MsgWithdrawProposal.decode(message.value);
|
|
2170
|
-
},
|
|
2171
|
-
toProto(message) {
|
|
2172
|
-
return MsgWithdrawProposal.encode(message).finish();
|
|
2173
|
-
},
|
|
2174
|
-
toProtoMsg(message) {
|
|
2175
|
-
return {
|
|
2176
|
-
typeUrl: "/cosmos.group.v1.MsgWithdrawProposal",
|
|
2177
|
-
value: MsgWithdrawProposal.encode(message).finish()
|
|
2178
|
-
};
|
|
2179
|
-
},
|
|
2180
|
-
registerTypeUrl() { }
|
|
2181
|
-
};
|
|
2182
|
-
function createBaseMsgWithdrawProposalResponse() {
|
|
2183
|
-
return {};
|
|
2184
|
-
}
|
|
2185
|
-
/**
|
|
2186
|
-
* MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type.
|
|
2187
|
-
* @name MsgWithdrawProposalResponse
|
|
2188
|
-
* @package cosmos.group.v1
|
|
2189
|
-
* @see proto type: cosmos.group.v1.MsgWithdrawProposalResponse
|
|
2190
|
-
*/
|
|
2191
|
-
export const MsgWithdrawProposalResponse = {
|
|
2192
|
-
typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse",
|
|
2193
|
-
aminoType: "cosmos-sdk/MsgWithdrawProposalResponse",
|
|
2194
|
-
is(o) {
|
|
2195
|
-
return o && o.$typeUrl === MsgWithdrawProposalResponse.typeUrl;
|
|
2196
|
-
},
|
|
2197
|
-
isSDK(o) {
|
|
2198
|
-
return o && o.$typeUrl === MsgWithdrawProposalResponse.typeUrl;
|
|
2199
|
-
},
|
|
2200
|
-
isAmino(o) {
|
|
2201
|
-
return o && o.$typeUrl === MsgWithdrawProposalResponse.typeUrl;
|
|
2202
|
-
},
|
|
2203
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
2204
|
-
return writer;
|
|
2205
|
-
},
|
|
2206
|
-
decode(input, length) {
|
|
2207
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2208
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2209
|
-
const message = createBaseMsgWithdrawProposalResponse();
|
|
2210
|
-
while (reader.pos < end) {
|
|
2211
|
-
const tag = reader.uint32();
|
|
2212
|
-
switch (tag >>> 3) {
|
|
2213
|
-
default:
|
|
2214
|
-
reader.skipType(tag & 7);
|
|
2215
|
-
break;
|
|
2216
|
-
}
|
|
2217
|
-
}
|
|
2218
|
-
return message;
|
|
2219
|
-
},
|
|
2220
|
-
fromPartial(_) {
|
|
2221
|
-
const message = createBaseMsgWithdrawProposalResponse();
|
|
2222
|
-
return message;
|
|
2223
|
-
},
|
|
2224
|
-
fromAmino(_) {
|
|
2225
|
-
const message = createBaseMsgWithdrawProposalResponse();
|
|
2226
|
-
return message;
|
|
2227
|
-
},
|
|
2228
|
-
toAmino(_) {
|
|
2229
|
-
const obj = {};
|
|
2230
|
-
return obj;
|
|
2231
|
-
},
|
|
2232
|
-
fromAminoMsg(object) {
|
|
2233
|
-
return MsgWithdrawProposalResponse.fromAmino(object.value);
|
|
2234
|
-
},
|
|
2235
|
-
toAminoMsg(message) {
|
|
2236
|
-
return {
|
|
2237
|
-
type: "cosmos-sdk/MsgWithdrawProposalResponse",
|
|
2238
|
-
value: MsgWithdrawProposalResponse.toAmino(message)
|
|
2239
|
-
};
|
|
2240
|
-
},
|
|
2241
|
-
fromProtoMsg(message) {
|
|
2242
|
-
return MsgWithdrawProposalResponse.decode(message.value);
|
|
2243
|
-
},
|
|
2244
|
-
toProto(message) {
|
|
2245
|
-
return MsgWithdrawProposalResponse.encode(message).finish();
|
|
2246
|
-
},
|
|
2247
|
-
toProtoMsg(message) {
|
|
2248
|
-
return {
|
|
2249
|
-
typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse",
|
|
2250
|
-
value: MsgWithdrawProposalResponse.encode(message).finish()
|
|
2251
|
-
};
|
|
2252
|
-
},
|
|
2253
|
-
registerTypeUrl() { }
|
|
2254
|
-
};
|
|
2255
|
-
function createBaseMsgVote() {
|
|
2256
|
-
return {
|
|
2257
|
-
proposalId: BigInt(0),
|
|
2258
|
-
voter: "",
|
|
2259
|
-
option: 0,
|
|
2260
|
-
metadata: "",
|
|
2261
|
-
exec: 0
|
|
2262
|
-
};
|
|
2263
|
-
}
|
|
2264
|
-
/**
|
|
2265
|
-
* MsgVote is the Msg/Vote request type.
|
|
2266
|
-
* @name MsgVote
|
|
2267
|
-
* @package cosmos.group.v1
|
|
2268
|
-
* @see proto type: cosmos.group.v1.MsgVote
|
|
2269
|
-
*/
|
|
2270
|
-
export const MsgVote = {
|
|
2271
|
-
typeUrl: "/cosmos.group.v1.MsgVote",
|
|
2272
|
-
aminoType: "cosmos-sdk/group/MsgVote",
|
|
2273
|
-
is(o) {
|
|
2274
|
-
return o && (o.$typeUrl === MsgVote.typeUrl || typeof o.proposalId === "bigint" && typeof o.voter === "string" && isSet(o.option) && typeof o.metadata === "string" && isSet(o.exec));
|
|
2275
|
-
},
|
|
2276
|
-
isSDK(o) {
|
|
2277
|
-
return o && (o.$typeUrl === MsgVote.typeUrl || typeof o.proposal_id === "bigint" && typeof o.voter === "string" && isSet(o.option) && typeof o.metadata === "string" && isSet(o.exec));
|
|
2278
|
-
},
|
|
2279
|
-
isAmino(o) {
|
|
2280
|
-
return o && (o.$typeUrl === MsgVote.typeUrl || typeof o.proposal_id === "bigint" && typeof o.voter === "string" && isSet(o.option) && typeof o.metadata === "string" && isSet(o.exec));
|
|
2281
|
-
},
|
|
2282
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
2283
|
-
if (message.proposalId !== BigInt(0)) {
|
|
2284
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
2285
|
-
}
|
|
2286
|
-
if (message.voter !== "") {
|
|
2287
|
-
writer.uint32(18).string(message.voter);
|
|
2288
|
-
}
|
|
2289
|
-
if (message.option !== 0) {
|
|
2290
|
-
writer.uint32(24).int32(message.option);
|
|
2291
|
-
}
|
|
2292
|
-
if (message.metadata !== "") {
|
|
2293
|
-
writer.uint32(34).string(message.metadata);
|
|
2294
|
-
}
|
|
2295
|
-
if (message.exec !== 0) {
|
|
2296
|
-
writer.uint32(40).int32(message.exec);
|
|
2297
|
-
}
|
|
2298
|
-
return writer;
|
|
2299
|
-
},
|
|
2300
|
-
decode(input, length) {
|
|
2301
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2302
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2303
|
-
const message = createBaseMsgVote();
|
|
2304
|
-
while (reader.pos < end) {
|
|
2305
|
-
const tag = reader.uint32();
|
|
2306
|
-
switch (tag >>> 3) {
|
|
2307
|
-
case 1:
|
|
2308
|
-
message.proposalId = reader.uint64();
|
|
2309
|
-
break;
|
|
2310
|
-
case 2:
|
|
2311
|
-
message.voter = reader.string();
|
|
2312
|
-
break;
|
|
2313
|
-
case 3:
|
|
2314
|
-
message.option = reader.int32();
|
|
2315
|
-
break;
|
|
2316
|
-
case 4:
|
|
2317
|
-
message.metadata = reader.string();
|
|
2318
|
-
break;
|
|
2319
|
-
case 5:
|
|
2320
|
-
message.exec = reader.int32();
|
|
2321
|
-
break;
|
|
2322
|
-
default:
|
|
2323
|
-
reader.skipType(tag & 7);
|
|
2324
|
-
break;
|
|
2325
|
-
}
|
|
2326
|
-
}
|
|
2327
|
-
return message;
|
|
2328
|
-
},
|
|
2329
|
-
fromPartial(object) {
|
|
2330
|
-
const message = createBaseMsgVote();
|
|
2331
|
-
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
|
|
2332
|
-
message.voter = object.voter ?? "";
|
|
2333
|
-
message.option = object.option ?? 0;
|
|
2334
|
-
message.metadata = object.metadata ?? "";
|
|
2335
|
-
message.exec = object.exec ?? 0;
|
|
2336
|
-
return message;
|
|
2337
|
-
},
|
|
2338
|
-
fromAmino(object) {
|
|
2339
|
-
const message = createBaseMsgVote();
|
|
2340
|
-
if (object.proposal_id !== undefined && object.proposal_id !== null) {
|
|
2341
|
-
message.proposalId = BigInt(object.proposal_id);
|
|
2342
|
-
}
|
|
2343
|
-
if (object.voter !== undefined && object.voter !== null) {
|
|
2344
|
-
message.voter = object.voter;
|
|
2345
|
-
}
|
|
2346
|
-
if (object.option !== undefined && object.option !== null) {
|
|
2347
|
-
message.option = object.option;
|
|
2348
|
-
}
|
|
2349
|
-
if (object.metadata !== undefined && object.metadata !== null) {
|
|
2350
|
-
message.metadata = object.metadata;
|
|
2351
|
-
}
|
|
2352
|
-
if (object.exec !== undefined && object.exec !== null) {
|
|
2353
|
-
message.exec = object.exec;
|
|
2354
|
-
}
|
|
2355
|
-
return message;
|
|
2356
|
-
},
|
|
2357
|
-
toAmino(message) {
|
|
2358
|
-
const obj = {};
|
|
2359
|
-
obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
|
|
2360
|
-
obj.voter = message.voter === "" ? undefined : message.voter;
|
|
2361
|
-
obj.option = message.option === 0 ? undefined : message.option;
|
|
2362
|
-
obj.metadata = message.metadata === "" ? undefined : message.metadata;
|
|
2363
|
-
obj.exec = message.exec === 0 ? undefined : message.exec;
|
|
2364
|
-
return obj;
|
|
2365
|
-
},
|
|
2366
|
-
fromAminoMsg(object) {
|
|
2367
|
-
return MsgVote.fromAmino(object.value);
|
|
2368
|
-
},
|
|
2369
|
-
toAminoMsg(message) {
|
|
2370
|
-
return {
|
|
2371
|
-
type: "cosmos-sdk/group/MsgVote",
|
|
2372
|
-
value: MsgVote.toAmino(message)
|
|
2373
|
-
};
|
|
2374
|
-
},
|
|
2375
|
-
fromProtoMsg(message) {
|
|
2376
|
-
return MsgVote.decode(message.value);
|
|
2377
|
-
},
|
|
2378
|
-
toProto(message) {
|
|
2379
|
-
return MsgVote.encode(message).finish();
|
|
2380
|
-
},
|
|
2381
|
-
toProtoMsg(message) {
|
|
2382
|
-
return {
|
|
2383
|
-
typeUrl: "/cosmos.group.v1.MsgVote",
|
|
2384
|
-
value: MsgVote.encode(message).finish()
|
|
2385
|
-
};
|
|
2386
|
-
},
|
|
2387
|
-
registerTypeUrl() { }
|
|
2388
|
-
};
|
|
2389
|
-
function createBaseMsgVoteResponse() {
|
|
2390
|
-
return {};
|
|
2391
|
-
}
|
|
2392
|
-
/**
|
|
2393
|
-
* MsgVoteResponse is the Msg/Vote response type.
|
|
2394
|
-
* @name MsgVoteResponse
|
|
2395
|
-
* @package cosmos.group.v1
|
|
2396
|
-
* @see proto type: cosmos.group.v1.MsgVoteResponse
|
|
2397
|
-
*/
|
|
2398
|
-
export const MsgVoteResponse = {
|
|
2399
|
-
typeUrl: "/cosmos.group.v1.MsgVoteResponse",
|
|
2400
|
-
aminoType: "cosmos-sdk/MsgVoteResponse",
|
|
2401
|
-
is(o) {
|
|
2402
|
-
return o && o.$typeUrl === MsgVoteResponse.typeUrl;
|
|
2403
|
-
},
|
|
2404
|
-
isSDK(o) {
|
|
2405
|
-
return o && o.$typeUrl === MsgVoteResponse.typeUrl;
|
|
2406
|
-
},
|
|
2407
|
-
isAmino(o) {
|
|
2408
|
-
return o && o.$typeUrl === MsgVoteResponse.typeUrl;
|
|
2409
|
-
},
|
|
2410
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
2411
|
-
return writer;
|
|
2412
|
-
},
|
|
2413
|
-
decode(input, length) {
|
|
2414
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2415
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2416
|
-
const message = createBaseMsgVoteResponse();
|
|
2417
|
-
while (reader.pos < end) {
|
|
2418
|
-
const tag = reader.uint32();
|
|
2419
|
-
switch (tag >>> 3) {
|
|
2420
|
-
default:
|
|
2421
|
-
reader.skipType(tag & 7);
|
|
2422
|
-
break;
|
|
2423
|
-
}
|
|
2424
|
-
}
|
|
2425
|
-
return message;
|
|
2426
|
-
},
|
|
2427
|
-
fromPartial(_) {
|
|
2428
|
-
const message = createBaseMsgVoteResponse();
|
|
2429
|
-
return message;
|
|
2430
|
-
},
|
|
2431
|
-
fromAmino(_) {
|
|
2432
|
-
const message = createBaseMsgVoteResponse();
|
|
2433
|
-
return message;
|
|
2434
|
-
},
|
|
2435
|
-
toAmino(_) {
|
|
2436
|
-
const obj = {};
|
|
2437
|
-
return obj;
|
|
2438
|
-
},
|
|
2439
|
-
fromAminoMsg(object) {
|
|
2440
|
-
return MsgVoteResponse.fromAmino(object.value);
|
|
2441
|
-
},
|
|
2442
|
-
toAminoMsg(message) {
|
|
2443
|
-
return {
|
|
2444
|
-
type: "cosmos-sdk/MsgVoteResponse",
|
|
2445
|
-
value: MsgVoteResponse.toAmino(message)
|
|
2446
|
-
};
|
|
2447
|
-
},
|
|
2448
|
-
fromProtoMsg(message) {
|
|
2449
|
-
return MsgVoteResponse.decode(message.value);
|
|
2450
|
-
},
|
|
2451
|
-
toProto(message) {
|
|
2452
|
-
return MsgVoteResponse.encode(message).finish();
|
|
2453
|
-
},
|
|
2454
|
-
toProtoMsg(message) {
|
|
2455
|
-
return {
|
|
2456
|
-
typeUrl: "/cosmos.group.v1.MsgVoteResponse",
|
|
2457
|
-
value: MsgVoteResponse.encode(message).finish()
|
|
2458
|
-
};
|
|
2459
|
-
},
|
|
2460
|
-
registerTypeUrl() { }
|
|
2461
|
-
};
|
|
2462
|
-
function createBaseMsgExec() {
|
|
2463
|
-
return {
|
|
2464
|
-
proposalId: BigInt(0),
|
|
2465
|
-
executor: ""
|
|
2466
|
-
};
|
|
2467
|
-
}
|
|
2468
|
-
/**
|
|
2469
|
-
* MsgExec is the Msg/Exec request type.
|
|
2470
|
-
* @name MsgExec
|
|
2471
|
-
* @package cosmos.group.v1
|
|
2472
|
-
* @see proto type: cosmos.group.v1.MsgExec
|
|
2473
|
-
*/
|
|
2474
|
-
export const MsgExec = {
|
|
2475
|
-
typeUrl: "/cosmos.group.v1.MsgExec",
|
|
2476
|
-
aminoType: "cosmos-sdk/group/MsgExec",
|
|
2477
|
-
is(o) {
|
|
2478
|
-
return o && (o.$typeUrl === MsgExec.typeUrl || typeof o.proposalId === "bigint" && typeof o.executor === "string");
|
|
2479
|
-
},
|
|
2480
|
-
isSDK(o) {
|
|
2481
|
-
return o && (o.$typeUrl === MsgExec.typeUrl || typeof o.proposal_id === "bigint" && typeof o.executor === "string");
|
|
2482
|
-
},
|
|
2483
|
-
isAmino(o) {
|
|
2484
|
-
return o && (o.$typeUrl === MsgExec.typeUrl || typeof o.proposal_id === "bigint" && typeof o.executor === "string");
|
|
2485
|
-
},
|
|
2486
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
2487
|
-
if (message.proposalId !== BigInt(0)) {
|
|
2488
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
2489
|
-
}
|
|
2490
|
-
if (message.executor !== "") {
|
|
2491
|
-
writer.uint32(18).string(message.executor);
|
|
2492
|
-
}
|
|
2493
|
-
return writer;
|
|
2494
|
-
},
|
|
2495
|
-
decode(input, length) {
|
|
2496
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2497
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2498
|
-
const message = createBaseMsgExec();
|
|
2499
|
-
while (reader.pos < end) {
|
|
2500
|
-
const tag = reader.uint32();
|
|
2501
|
-
switch (tag >>> 3) {
|
|
2502
|
-
case 1:
|
|
2503
|
-
message.proposalId = reader.uint64();
|
|
2504
|
-
break;
|
|
2505
|
-
case 2:
|
|
2506
|
-
message.executor = reader.string();
|
|
2507
|
-
break;
|
|
2508
|
-
default:
|
|
2509
|
-
reader.skipType(tag & 7);
|
|
2510
|
-
break;
|
|
2511
|
-
}
|
|
2512
|
-
}
|
|
2513
|
-
return message;
|
|
2514
|
-
},
|
|
2515
|
-
fromPartial(object) {
|
|
2516
|
-
const message = createBaseMsgExec();
|
|
2517
|
-
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
|
|
2518
|
-
message.executor = object.executor ?? "";
|
|
2519
|
-
return message;
|
|
2520
|
-
},
|
|
2521
|
-
fromAmino(object) {
|
|
2522
|
-
const message = createBaseMsgExec();
|
|
2523
|
-
if (object.proposal_id !== undefined && object.proposal_id !== null) {
|
|
2524
|
-
message.proposalId = BigInt(object.proposal_id);
|
|
2525
|
-
}
|
|
2526
|
-
if (object.executor !== undefined && object.executor !== null) {
|
|
2527
|
-
message.executor = object.executor;
|
|
2528
|
-
}
|
|
2529
|
-
return message;
|
|
2530
|
-
},
|
|
2531
|
-
toAmino(message) {
|
|
2532
|
-
const obj = {};
|
|
2533
|
-
obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
|
|
2534
|
-
obj.executor = message.executor === "" ? undefined : message.executor;
|
|
2535
|
-
return obj;
|
|
2536
|
-
},
|
|
2537
|
-
fromAminoMsg(object) {
|
|
2538
|
-
return MsgExec.fromAmino(object.value);
|
|
2539
|
-
},
|
|
2540
|
-
toAminoMsg(message) {
|
|
2541
|
-
return {
|
|
2542
|
-
type: "cosmos-sdk/group/MsgExec",
|
|
2543
|
-
value: MsgExec.toAmino(message)
|
|
2544
|
-
};
|
|
2545
|
-
},
|
|
2546
|
-
fromProtoMsg(message) {
|
|
2547
|
-
return MsgExec.decode(message.value);
|
|
2548
|
-
},
|
|
2549
|
-
toProto(message) {
|
|
2550
|
-
return MsgExec.encode(message).finish();
|
|
2551
|
-
},
|
|
2552
|
-
toProtoMsg(message) {
|
|
2553
|
-
return {
|
|
2554
|
-
typeUrl: "/cosmos.group.v1.MsgExec",
|
|
2555
|
-
value: MsgExec.encode(message).finish()
|
|
2556
|
-
};
|
|
2557
|
-
},
|
|
2558
|
-
registerTypeUrl() { }
|
|
2559
|
-
};
|
|
2560
|
-
function createBaseMsgExecResponse() {
|
|
2561
|
-
return {
|
|
2562
|
-
result: 0
|
|
2563
|
-
};
|
|
2564
|
-
}
|
|
2565
|
-
/**
|
|
2566
|
-
* MsgExecResponse is the Msg/Exec request type.
|
|
2567
|
-
* @name MsgExecResponse
|
|
2568
|
-
* @package cosmos.group.v1
|
|
2569
|
-
* @see proto type: cosmos.group.v1.MsgExecResponse
|
|
2570
|
-
*/
|
|
2571
|
-
export const MsgExecResponse = {
|
|
2572
|
-
typeUrl: "/cosmos.group.v1.MsgExecResponse",
|
|
2573
|
-
aminoType: "cosmos-sdk/MsgExecResponse",
|
|
2574
|
-
is(o) {
|
|
2575
|
-
return o && (o.$typeUrl === MsgExecResponse.typeUrl || isSet(o.result));
|
|
2576
|
-
},
|
|
2577
|
-
isSDK(o) {
|
|
2578
|
-
return o && (o.$typeUrl === MsgExecResponse.typeUrl || isSet(o.result));
|
|
2579
|
-
},
|
|
2580
|
-
isAmino(o) {
|
|
2581
|
-
return o && (o.$typeUrl === MsgExecResponse.typeUrl || isSet(o.result));
|
|
2582
|
-
},
|
|
2583
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
2584
|
-
if (message.result !== 0) {
|
|
2585
|
-
writer.uint32(16).int32(message.result);
|
|
2586
|
-
}
|
|
2587
|
-
return writer;
|
|
2588
|
-
},
|
|
2589
|
-
decode(input, length) {
|
|
2590
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2591
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2592
|
-
const message = createBaseMsgExecResponse();
|
|
2593
|
-
while (reader.pos < end) {
|
|
2594
|
-
const tag = reader.uint32();
|
|
2595
|
-
switch (tag >>> 3) {
|
|
2596
|
-
case 2:
|
|
2597
|
-
message.result = reader.int32();
|
|
2598
|
-
break;
|
|
2599
|
-
default:
|
|
2600
|
-
reader.skipType(tag & 7);
|
|
2601
|
-
break;
|
|
2602
|
-
}
|
|
2603
|
-
}
|
|
2604
|
-
return message;
|
|
2605
|
-
},
|
|
2606
|
-
fromPartial(object) {
|
|
2607
|
-
const message = createBaseMsgExecResponse();
|
|
2608
|
-
message.result = object.result ?? 0;
|
|
2609
|
-
return message;
|
|
2610
|
-
},
|
|
2611
|
-
fromAmino(object) {
|
|
2612
|
-
const message = createBaseMsgExecResponse();
|
|
2613
|
-
if (object.result !== undefined && object.result !== null) {
|
|
2614
|
-
message.result = object.result;
|
|
2615
|
-
}
|
|
2616
|
-
return message;
|
|
2617
|
-
},
|
|
2618
|
-
toAmino(message) {
|
|
2619
|
-
const obj = {};
|
|
2620
|
-
obj.result = message.result === 0 ? undefined : message.result;
|
|
2621
|
-
return obj;
|
|
2622
|
-
},
|
|
2623
|
-
fromAminoMsg(object) {
|
|
2624
|
-
return MsgExecResponse.fromAmino(object.value);
|
|
2625
|
-
},
|
|
2626
|
-
toAminoMsg(message) {
|
|
2627
|
-
return {
|
|
2628
|
-
type: "cosmos-sdk/MsgExecResponse",
|
|
2629
|
-
value: MsgExecResponse.toAmino(message)
|
|
2630
|
-
};
|
|
2631
|
-
},
|
|
2632
|
-
fromProtoMsg(message) {
|
|
2633
|
-
return MsgExecResponse.decode(message.value);
|
|
2634
|
-
},
|
|
2635
|
-
toProto(message) {
|
|
2636
|
-
return MsgExecResponse.encode(message).finish();
|
|
2637
|
-
},
|
|
2638
|
-
toProtoMsg(message) {
|
|
2639
|
-
return {
|
|
2640
|
-
typeUrl: "/cosmos.group.v1.MsgExecResponse",
|
|
2641
|
-
value: MsgExecResponse.encode(message).finish()
|
|
2642
|
-
};
|
|
2643
|
-
},
|
|
2644
|
-
registerTypeUrl() { }
|
|
2645
|
-
};
|
|
2646
|
-
function createBaseMsgLeaveGroup() {
|
|
2647
|
-
return {
|
|
2648
|
-
address: "",
|
|
2649
|
-
groupId: BigInt(0)
|
|
2650
|
-
};
|
|
2651
|
-
}
|
|
2652
|
-
/**
|
|
2653
|
-
* MsgLeaveGroup is the Msg/LeaveGroup request type.
|
|
2654
|
-
* @name MsgLeaveGroup
|
|
2655
|
-
* @package cosmos.group.v1
|
|
2656
|
-
* @see proto type: cosmos.group.v1.MsgLeaveGroup
|
|
2657
|
-
*/
|
|
2658
|
-
export const MsgLeaveGroup = {
|
|
2659
|
-
typeUrl: "/cosmos.group.v1.MsgLeaveGroup",
|
|
2660
|
-
aminoType: "cosmos-sdk/group/MsgLeaveGroup",
|
|
2661
|
-
is(o) {
|
|
2662
|
-
return o && (o.$typeUrl === MsgLeaveGroup.typeUrl || typeof o.address === "string" && typeof o.groupId === "bigint");
|
|
2663
|
-
},
|
|
2664
|
-
isSDK(o) {
|
|
2665
|
-
return o && (o.$typeUrl === MsgLeaveGroup.typeUrl || typeof o.address === "string" && typeof o.group_id === "bigint");
|
|
2666
|
-
},
|
|
2667
|
-
isAmino(o) {
|
|
2668
|
-
return o && (o.$typeUrl === MsgLeaveGroup.typeUrl || typeof o.address === "string" && typeof o.group_id === "bigint");
|
|
2669
|
-
},
|
|
2670
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
2671
|
-
if (message.address !== "") {
|
|
2672
|
-
writer.uint32(10).string(message.address);
|
|
2673
|
-
}
|
|
2674
|
-
if (message.groupId !== BigInt(0)) {
|
|
2675
|
-
writer.uint32(16).uint64(message.groupId);
|
|
2676
|
-
}
|
|
2677
|
-
return writer;
|
|
2678
|
-
},
|
|
2679
|
-
decode(input, length) {
|
|
2680
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2681
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2682
|
-
const message = createBaseMsgLeaveGroup();
|
|
2683
|
-
while (reader.pos < end) {
|
|
2684
|
-
const tag = reader.uint32();
|
|
2685
|
-
switch (tag >>> 3) {
|
|
2686
|
-
case 1:
|
|
2687
|
-
message.address = reader.string();
|
|
2688
|
-
break;
|
|
2689
|
-
case 2:
|
|
2690
|
-
message.groupId = reader.uint64();
|
|
2691
|
-
break;
|
|
2692
|
-
default:
|
|
2693
|
-
reader.skipType(tag & 7);
|
|
2694
|
-
break;
|
|
2695
|
-
}
|
|
2696
|
-
}
|
|
2697
|
-
return message;
|
|
2698
|
-
},
|
|
2699
|
-
fromPartial(object) {
|
|
2700
|
-
const message = createBaseMsgLeaveGroup();
|
|
2701
|
-
message.address = object.address ?? "";
|
|
2702
|
-
message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
|
|
2703
|
-
return message;
|
|
2704
|
-
},
|
|
2705
|
-
fromAmino(object) {
|
|
2706
|
-
const message = createBaseMsgLeaveGroup();
|
|
2707
|
-
if (object.address !== undefined && object.address !== null) {
|
|
2708
|
-
message.address = object.address;
|
|
2709
|
-
}
|
|
2710
|
-
if (object.group_id !== undefined && object.group_id !== null) {
|
|
2711
|
-
message.groupId = BigInt(object.group_id);
|
|
2712
|
-
}
|
|
2713
|
-
return message;
|
|
2714
|
-
},
|
|
2715
|
-
toAmino(message) {
|
|
2716
|
-
const obj = {};
|
|
2717
|
-
obj.address = message.address === "" ? undefined : message.address;
|
|
2718
|
-
obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
|
|
2719
|
-
return obj;
|
|
2720
|
-
},
|
|
2721
|
-
fromAminoMsg(object) {
|
|
2722
|
-
return MsgLeaveGroup.fromAmino(object.value);
|
|
2723
|
-
},
|
|
2724
|
-
toAminoMsg(message) {
|
|
2725
|
-
return {
|
|
2726
|
-
type: "cosmos-sdk/group/MsgLeaveGroup",
|
|
2727
|
-
value: MsgLeaveGroup.toAmino(message)
|
|
2728
|
-
};
|
|
2729
|
-
},
|
|
2730
|
-
fromProtoMsg(message) {
|
|
2731
|
-
return MsgLeaveGroup.decode(message.value);
|
|
2732
|
-
},
|
|
2733
|
-
toProto(message) {
|
|
2734
|
-
return MsgLeaveGroup.encode(message).finish();
|
|
2735
|
-
},
|
|
2736
|
-
toProtoMsg(message) {
|
|
2737
|
-
return {
|
|
2738
|
-
typeUrl: "/cosmos.group.v1.MsgLeaveGroup",
|
|
2739
|
-
value: MsgLeaveGroup.encode(message).finish()
|
|
2740
|
-
};
|
|
2741
|
-
},
|
|
2742
|
-
registerTypeUrl() { }
|
|
2743
|
-
};
|
|
2744
|
-
function createBaseMsgLeaveGroupResponse() {
|
|
2745
|
-
return {};
|
|
2746
|
-
}
|
|
2747
|
-
/**
|
|
2748
|
-
* MsgLeaveGroupResponse is the Msg/LeaveGroup response type.
|
|
2749
|
-
* @name MsgLeaveGroupResponse
|
|
2750
|
-
* @package cosmos.group.v1
|
|
2751
|
-
* @see proto type: cosmos.group.v1.MsgLeaveGroupResponse
|
|
2752
|
-
*/
|
|
2753
|
-
export const MsgLeaveGroupResponse = {
|
|
2754
|
-
typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse",
|
|
2755
|
-
aminoType: "cosmos-sdk/MsgLeaveGroupResponse",
|
|
2756
|
-
is(o) {
|
|
2757
|
-
return o && o.$typeUrl === MsgLeaveGroupResponse.typeUrl;
|
|
2758
|
-
},
|
|
2759
|
-
isSDK(o) {
|
|
2760
|
-
return o && o.$typeUrl === MsgLeaveGroupResponse.typeUrl;
|
|
2761
|
-
},
|
|
2762
|
-
isAmino(o) {
|
|
2763
|
-
return o && o.$typeUrl === MsgLeaveGroupResponse.typeUrl;
|
|
2764
|
-
},
|
|
2765
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
2766
|
-
return writer;
|
|
2767
|
-
},
|
|
2768
|
-
decode(input, length) {
|
|
2769
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2770
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2771
|
-
const message = createBaseMsgLeaveGroupResponse();
|
|
2772
|
-
while (reader.pos < end) {
|
|
2773
|
-
const tag = reader.uint32();
|
|
2774
|
-
switch (tag >>> 3) {
|
|
2775
|
-
default:
|
|
2776
|
-
reader.skipType(tag & 7);
|
|
2777
|
-
break;
|
|
2778
|
-
}
|
|
2779
|
-
}
|
|
2780
|
-
return message;
|
|
2781
|
-
},
|
|
2782
|
-
fromPartial(_) {
|
|
2783
|
-
const message = createBaseMsgLeaveGroupResponse();
|
|
2784
|
-
return message;
|
|
2785
|
-
},
|
|
2786
|
-
fromAmino(_) {
|
|
2787
|
-
const message = createBaseMsgLeaveGroupResponse();
|
|
2788
|
-
return message;
|
|
2789
|
-
},
|
|
2790
|
-
toAmino(_) {
|
|
2791
|
-
const obj = {};
|
|
2792
|
-
return obj;
|
|
2793
|
-
},
|
|
2794
|
-
fromAminoMsg(object) {
|
|
2795
|
-
return MsgLeaveGroupResponse.fromAmino(object.value);
|
|
2796
|
-
},
|
|
2797
|
-
toAminoMsg(message) {
|
|
2798
|
-
return {
|
|
2799
|
-
type: "cosmos-sdk/MsgLeaveGroupResponse",
|
|
2800
|
-
value: MsgLeaveGroupResponse.toAmino(message)
|
|
2801
|
-
};
|
|
2802
|
-
},
|
|
2803
|
-
fromProtoMsg(message) {
|
|
2804
|
-
return MsgLeaveGroupResponse.decode(message.value);
|
|
2805
|
-
},
|
|
2806
|
-
toProto(message) {
|
|
2807
|
-
return MsgLeaveGroupResponse.encode(message).finish();
|
|
2808
|
-
},
|
|
2809
|
-
toProtoMsg(message) {
|
|
2810
|
-
return {
|
|
2811
|
-
typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse",
|
|
2812
|
-
value: MsgLeaveGroupResponse.encode(message).finish()
|
|
2813
|
-
};
|
|
2814
|
-
},
|
|
2815
|
-
registerTypeUrl() { }
|
|
2816
|
-
};
|