@bze/bzejs 3.1.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 +6334 -2203
- package/dist/bze/bundle.js +148 -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 +610 -0
- package/dist/bze/rewards/events.js +979 -5
- package/dist/bze/rewards/genesis.d.ts +28 -1
- package/dist/bze/rewards/genesis.js +109 -4
- package/dist/bze/rewards/params.d.ts +27 -0
- package/dist/bze/rewards/params.js +88 -4
- package/dist/bze/rewards/query.d.ts +667 -1
- package/dist/bze/rewards/query.js +1086 -1
- package/dist/bze/rewards/query.lcd.d.ts +7 -1
- package/dist/bze/rewards/query.lcd.js +82 -0
- package/dist/bze/rewards/query.rpc.func.d.ts +48 -1
- package/dist/bze/rewards/query.rpc.func.js +84 -1
- package/dist/bze/rewards/store.d.ts +481 -0
- package/dist/bze/rewards/store.js +684 -1
- package/dist/bze/rewards/tx.d.ts +911 -0
- package/dist/bze/rewards/tx.js +1432 -1
- package/dist/bze/rewards/tx.registry.d.ts +97 -1
- package/dist/bze/rewards/tx.registry.js +145 -1
- package/dist/bze/rewards/tx.rpc.func.d.ts +49 -1
- package/dist/bze/rewards/tx.rpc.func.js +65 -1
- package/dist/bze/tokenfactory/denom_authority.d.ts +13 -0
- package/dist/bze/tokenfactory/denom_authority.js +16 -4
- package/dist/bze/tokenfactory/denom_branding.d.ts +206 -0
- package/dist/bze/tokenfactory/denom_branding.js +329 -0
- 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 +175 -0
- package/dist/bze/tokenfactory/events.js +285 -1
- package/dist/bze/tokenfactory/genesis.d.ts +14 -0
- package/dist/bze/tokenfactory/genesis.js +36 -5
- package/dist/bze/tokenfactory/query.d.ts +324 -0
- package/dist/bze/tokenfactory/query.js +508 -1
- package/dist/bze/tokenfactory/query.lcd.d.ts +4 -1
- package/dist/bze/tokenfactory/query.lcd.js +40 -0
- package/dist/bze/tokenfactory/query.rpc.func.d.ts +22 -1
- package/dist/bze/tokenfactory/query.rpc.func.js +40 -1
- package/dist/bze/tokenfactory/tx.d.ts +516 -0
- package/dist/bze/tokenfactory/tx.js +722 -1
- package/dist/bze/tokenfactory/tx.registry.d.ts +49 -1
- package/dist/bze/tokenfactory/tx.registry.js +73 -1
- package/dist/bze/tokenfactory/tx.rpc.func.d.ts +31 -1
- package/dist/bze/tokenfactory/tx.rpc.func.js +39 -1
- package/dist/bze/tradebin/events.d.ts +457 -121
- package/dist/bze/tradebin/events.js +693 -273
- package/dist/bze/tradebin/genesis.d.ts +10 -4
- package/dist/bze/tradebin/genesis.js +19 -20
- package/dist/bze/tradebin/query.d.ts +324 -0
- package/dist/bze/tradebin/query.js +507 -1
- package/dist/bze/tradebin/query.lcd.d.ts +4 -1
- package/dist/bze/tradebin/query.lcd.js +40 -0
- package/dist/bze/tradebin/query.rpc.func.d.ts +24 -1
- package/dist/bze/tradebin/query.rpc.func.js +42 -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 +477 -0
- package/dist/bze/tradebin/tx.js +638 -5
- package/dist/bze/tradebin/tx.registry.d.ts +37 -1
- package/dist/bze/tradebin/tx.registry.js +55 -1
- package/dist/bze/tradebin/tx.rpc.func.d.ts +22 -1
- package/dist/bze/tradebin/tx.rpc.func.js +28 -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 +297 -0
- package/dist/bze/txfeecollector/events.js +356 -0
- package/dist/bze/txfeecollector/params.d.ts +101 -0
- package/dist/bze/txfeecollector/params.js +115 -5
- 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 +8278 -10120
- 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 +148 -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 +978 -4
- package/dist/esm/bze/rewards/genesis.js +110 -5
- package/dist/esm/bze/rewards/params.js +88 -4
- package/dist/esm/bze/rewards/query.js +1086 -1
- package/dist/esm/bze/rewards/query.lcd.js +82 -0
- package/dist/esm/bze/rewards/query.rpc.func.js +84 -1
- package/dist/esm/bze/rewards/store.js +683 -0
- package/dist/esm/bze/rewards/tx.js +1431 -0
- package/dist/esm/bze/rewards/tx.registry.js +146 -2
- package/dist/esm/bze/rewards/tx.rpc.func.js +65 -1
- package/dist/esm/bze/tokenfactory/denom_authority.js +16 -4
- package/dist/esm/bze/tokenfactory/denom_branding.js +326 -0
- package/dist/esm/bze/tokenfactory/denom_config.js +108 -0
- package/dist/esm/bze/tokenfactory/events.js +284 -0
- package/dist/esm/bze/tokenfactory/genesis.js +36 -5
- package/dist/esm/bze/tokenfactory/query.js +507 -0
- package/dist/esm/bze/tokenfactory/query.lcd.js +40 -0
- package/dist/esm/bze/tokenfactory/query.rpc.func.js +40 -1
- package/dist/esm/bze/tokenfactory/tx.js +721 -0
- package/dist/esm/bze/tokenfactory/tx.registry.js +74 -2
- package/dist/esm/bze/tokenfactory/tx.rpc.func.js +39 -1
- package/dist/esm/bze/tradebin/events.js +692 -272
- package/dist/esm/bze/tradebin/genesis.js +20 -21
- package/dist/esm/bze/tradebin/query.js +506 -0
- package/dist/esm/bze/tradebin/query.lcd.js +40 -0
- package/dist/esm/bze/tradebin/query.rpc.func.js +42 -1
- package/dist/esm/bze/tradebin/store.js +119 -178
- package/dist/esm/bze/tradebin/tx.js +637 -4
- package/dist/esm/bze/tradebin/tx.registry.js +56 -2
- package/dist/esm/bze/tradebin/tx.rpc.func.js +28 -1
- package/dist/esm/bze/tradebin/v2/params.js +61 -36
- package/dist/esm/bze/txfeecollector/events.js +353 -0
- package/dist/esm/bze/txfeecollector/params.js +114 -4
- 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 +142 -170
- 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 +4056 -4615
- package/dist/ibc/bundle.js +142 -170
- 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
|
@@ -0,0 +1,2363 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination";
|
|
3
|
+
import { Dao, Proposal, Ballot, BallotShare } from "./store";
|
|
4
|
+
import { Params } from "./params";
|
|
5
|
+
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
6
|
+
import { GlobalDecoderRegistry } from "../../registry";
|
|
7
|
+
import { isSet } from "../../helpers";
|
|
8
|
+
/** ControllerEndReason says why the admin chain walk stopped. */
|
|
9
|
+
export var ControllerEndReason;
|
|
10
|
+
(function (ControllerEndReason) {
|
|
11
|
+
/** ACCOUNT - ACCOUNT: the admin is an account that is not a DAO; it is the controller. */
|
|
12
|
+
ControllerEndReason[ControllerEndReason["ACCOUNT"] = 0] = "ACCOUNT";
|
|
13
|
+
/** SELF_OWNED - SELF_OWNED: the DAO is its own admin; its voters control it. */
|
|
14
|
+
ControllerEndReason[ControllerEndReason["SELF_OWNED"] = 1] = "SELF_OWNED";
|
|
15
|
+
/** CYCLE - CYCLE: the admin is a DAO already on the path; the controller is that DAO. */
|
|
16
|
+
ControllerEndReason[ControllerEndReason["CYCLE"] = 2] = "CYCLE";
|
|
17
|
+
/** DEPTH_CAP - DEPTH_CAP: the path reached the maximum depth; the controller is its last DAO. */
|
|
18
|
+
ControllerEndReason[ControllerEndReason["DEPTH_CAP"] = 3] = "DEPTH_CAP";
|
|
19
|
+
ControllerEndReason[ControllerEndReason["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
20
|
+
})(ControllerEndReason || (ControllerEndReason = {}));
|
|
21
|
+
export const ControllerEndReasonSDKType = ControllerEndReason;
|
|
22
|
+
export const ControllerEndReasonAmino = ControllerEndReason;
|
|
23
|
+
export function controllerEndReasonFromJSON(object) {
|
|
24
|
+
switch (object) {
|
|
25
|
+
case 0:
|
|
26
|
+
case "ACCOUNT":
|
|
27
|
+
return ControllerEndReason.ACCOUNT;
|
|
28
|
+
case 1:
|
|
29
|
+
case "SELF_OWNED":
|
|
30
|
+
return ControllerEndReason.SELF_OWNED;
|
|
31
|
+
case 2:
|
|
32
|
+
case "CYCLE":
|
|
33
|
+
return ControllerEndReason.CYCLE;
|
|
34
|
+
case 3:
|
|
35
|
+
case "DEPTH_CAP":
|
|
36
|
+
return ControllerEndReason.DEPTH_CAP;
|
|
37
|
+
case -1:
|
|
38
|
+
case "UNRECOGNIZED":
|
|
39
|
+
default:
|
|
40
|
+
return ControllerEndReason.UNRECOGNIZED;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export function controllerEndReasonToJSON(object) {
|
|
44
|
+
switch (object) {
|
|
45
|
+
case ControllerEndReason.ACCOUNT:
|
|
46
|
+
return "ACCOUNT";
|
|
47
|
+
case ControllerEndReason.SELF_OWNED:
|
|
48
|
+
return "SELF_OWNED";
|
|
49
|
+
case ControllerEndReason.CYCLE:
|
|
50
|
+
return "CYCLE";
|
|
51
|
+
case ControllerEndReason.DEPTH_CAP:
|
|
52
|
+
return "DEPTH_CAP";
|
|
53
|
+
case ControllerEndReason.UNRECOGNIZED:
|
|
54
|
+
default:
|
|
55
|
+
return "UNRECOGNIZED";
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function createBaseQueryParamsRequest() {
|
|
59
|
+
return {};
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* QueryParamsRequest is request type for the Query/Params RPC method.
|
|
63
|
+
* @name QueryParamsRequest
|
|
64
|
+
* @package bze.dao
|
|
65
|
+
* @see proto type: bze.dao.QueryParamsRequest
|
|
66
|
+
*/
|
|
67
|
+
export const QueryParamsRequest = {
|
|
68
|
+
typeUrl: "/bze.dao.QueryParamsRequest",
|
|
69
|
+
is(o) {
|
|
70
|
+
return o && o.$typeUrl === QueryParamsRequest.typeUrl;
|
|
71
|
+
},
|
|
72
|
+
isSDK(o) {
|
|
73
|
+
return o && o.$typeUrl === QueryParamsRequest.typeUrl;
|
|
74
|
+
},
|
|
75
|
+
isAmino(o) {
|
|
76
|
+
return o && o.$typeUrl === QueryParamsRequest.typeUrl;
|
|
77
|
+
},
|
|
78
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
79
|
+
return writer;
|
|
80
|
+
},
|
|
81
|
+
decode(input, length) {
|
|
82
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
83
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
84
|
+
const message = createBaseQueryParamsRequest();
|
|
85
|
+
while (reader.pos < end) {
|
|
86
|
+
const tag = reader.uint32();
|
|
87
|
+
switch (tag >>> 3) {
|
|
88
|
+
default:
|
|
89
|
+
reader.skipType(tag & 7);
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return message;
|
|
94
|
+
},
|
|
95
|
+
fromPartial(_) {
|
|
96
|
+
const message = createBaseQueryParamsRequest();
|
|
97
|
+
return message;
|
|
98
|
+
},
|
|
99
|
+
fromAmino(_) {
|
|
100
|
+
const message = createBaseQueryParamsRequest();
|
|
101
|
+
return message;
|
|
102
|
+
},
|
|
103
|
+
toAmino(_) {
|
|
104
|
+
const obj = {};
|
|
105
|
+
return obj;
|
|
106
|
+
},
|
|
107
|
+
fromAminoMsg(object) {
|
|
108
|
+
return QueryParamsRequest.fromAmino(object.value);
|
|
109
|
+
},
|
|
110
|
+
fromProtoMsg(message) {
|
|
111
|
+
return QueryParamsRequest.decode(message.value);
|
|
112
|
+
},
|
|
113
|
+
toProto(message) {
|
|
114
|
+
return QueryParamsRequest.encode(message).finish();
|
|
115
|
+
},
|
|
116
|
+
toProtoMsg(message) {
|
|
117
|
+
return {
|
|
118
|
+
typeUrl: "/bze.dao.QueryParamsRequest",
|
|
119
|
+
value: QueryParamsRequest.encode(message).finish()
|
|
120
|
+
};
|
|
121
|
+
},
|
|
122
|
+
registerTypeUrl() { }
|
|
123
|
+
};
|
|
124
|
+
function createBaseQueryParamsResponse() {
|
|
125
|
+
return {
|
|
126
|
+
params: Params.fromPartial({})
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* QueryParamsResponse is response type for the Query/Params RPC method.
|
|
131
|
+
* @name QueryParamsResponse
|
|
132
|
+
* @package bze.dao
|
|
133
|
+
* @see proto type: bze.dao.QueryParamsResponse
|
|
134
|
+
*/
|
|
135
|
+
export const QueryParamsResponse = {
|
|
136
|
+
typeUrl: "/bze.dao.QueryParamsResponse",
|
|
137
|
+
is(o) {
|
|
138
|
+
return o && (o.$typeUrl === QueryParamsResponse.typeUrl || Params.is(o.params));
|
|
139
|
+
},
|
|
140
|
+
isSDK(o) {
|
|
141
|
+
return o && (o.$typeUrl === QueryParamsResponse.typeUrl || Params.isSDK(o.params));
|
|
142
|
+
},
|
|
143
|
+
isAmino(o) {
|
|
144
|
+
return o && (o.$typeUrl === QueryParamsResponse.typeUrl || Params.isAmino(o.params));
|
|
145
|
+
},
|
|
146
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
147
|
+
if (message.params !== undefined) {
|
|
148
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
149
|
+
}
|
|
150
|
+
return writer;
|
|
151
|
+
},
|
|
152
|
+
decode(input, length) {
|
|
153
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
154
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
155
|
+
const message = createBaseQueryParamsResponse();
|
|
156
|
+
while (reader.pos < end) {
|
|
157
|
+
const tag = reader.uint32();
|
|
158
|
+
switch (tag >>> 3) {
|
|
159
|
+
case 1:
|
|
160
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
161
|
+
break;
|
|
162
|
+
default:
|
|
163
|
+
reader.skipType(tag & 7);
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return message;
|
|
168
|
+
},
|
|
169
|
+
fromPartial(object) {
|
|
170
|
+
const message = createBaseQueryParamsResponse();
|
|
171
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
172
|
+
return message;
|
|
173
|
+
},
|
|
174
|
+
fromAmino(object) {
|
|
175
|
+
const message = createBaseQueryParamsResponse();
|
|
176
|
+
if (object.params !== undefined && object.params !== null) {
|
|
177
|
+
message.params = Params.fromAmino(object.params);
|
|
178
|
+
}
|
|
179
|
+
return message;
|
|
180
|
+
},
|
|
181
|
+
toAmino(message) {
|
|
182
|
+
const obj = {};
|
|
183
|
+
obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
|
|
184
|
+
return obj;
|
|
185
|
+
},
|
|
186
|
+
fromAminoMsg(object) {
|
|
187
|
+
return QueryParamsResponse.fromAmino(object.value);
|
|
188
|
+
},
|
|
189
|
+
fromProtoMsg(message) {
|
|
190
|
+
return QueryParamsResponse.decode(message.value);
|
|
191
|
+
},
|
|
192
|
+
toProto(message) {
|
|
193
|
+
return QueryParamsResponse.encode(message).finish();
|
|
194
|
+
},
|
|
195
|
+
toProtoMsg(message) {
|
|
196
|
+
return {
|
|
197
|
+
typeUrl: "/bze.dao.QueryParamsResponse",
|
|
198
|
+
value: QueryParamsResponse.encode(message).finish()
|
|
199
|
+
};
|
|
200
|
+
},
|
|
201
|
+
registerTypeUrl() {
|
|
202
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryParamsResponse.typeUrl)) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
Params.registerTypeUrl();
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
function createBaseQueryDaoRequest() {
|
|
209
|
+
return {
|
|
210
|
+
id: BigInt(0)
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* QueryDaoRequest is request type for the Query/Dao RPC method.
|
|
215
|
+
* @name QueryDaoRequest
|
|
216
|
+
* @package bze.dao
|
|
217
|
+
* @see proto type: bze.dao.QueryDaoRequest
|
|
218
|
+
*/
|
|
219
|
+
export const QueryDaoRequest = {
|
|
220
|
+
typeUrl: "/bze.dao.QueryDaoRequest",
|
|
221
|
+
is(o) {
|
|
222
|
+
return o && (o.$typeUrl === QueryDaoRequest.typeUrl || typeof o.id === "bigint");
|
|
223
|
+
},
|
|
224
|
+
isSDK(o) {
|
|
225
|
+
return o && (o.$typeUrl === QueryDaoRequest.typeUrl || typeof o.id === "bigint");
|
|
226
|
+
},
|
|
227
|
+
isAmino(o) {
|
|
228
|
+
return o && (o.$typeUrl === QueryDaoRequest.typeUrl || typeof o.id === "bigint");
|
|
229
|
+
},
|
|
230
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
231
|
+
if (message.id !== BigInt(0)) {
|
|
232
|
+
writer.uint32(8).uint64(message.id);
|
|
233
|
+
}
|
|
234
|
+
return writer;
|
|
235
|
+
},
|
|
236
|
+
decode(input, length) {
|
|
237
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
238
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
239
|
+
const message = createBaseQueryDaoRequest();
|
|
240
|
+
while (reader.pos < end) {
|
|
241
|
+
const tag = reader.uint32();
|
|
242
|
+
switch (tag >>> 3) {
|
|
243
|
+
case 1:
|
|
244
|
+
message.id = reader.uint64();
|
|
245
|
+
break;
|
|
246
|
+
default:
|
|
247
|
+
reader.skipType(tag & 7);
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return message;
|
|
252
|
+
},
|
|
253
|
+
fromPartial(object) {
|
|
254
|
+
const message = createBaseQueryDaoRequest();
|
|
255
|
+
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
256
|
+
return message;
|
|
257
|
+
},
|
|
258
|
+
fromAmino(object) {
|
|
259
|
+
const message = createBaseQueryDaoRequest();
|
|
260
|
+
if (object.id !== undefined && object.id !== null) {
|
|
261
|
+
message.id = BigInt(object.id);
|
|
262
|
+
}
|
|
263
|
+
return message;
|
|
264
|
+
},
|
|
265
|
+
toAmino(message) {
|
|
266
|
+
const obj = {};
|
|
267
|
+
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
268
|
+
return obj;
|
|
269
|
+
},
|
|
270
|
+
fromAminoMsg(object) {
|
|
271
|
+
return QueryDaoRequest.fromAmino(object.value);
|
|
272
|
+
},
|
|
273
|
+
fromProtoMsg(message) {
|
|
274
|
+
return QueryDaoRequest.decode(message.value);
|
|
275
|
+
},
|
|
276
|
+
toProto(message) {
|
|
277
|
+
return QueryDaoRequest.encode(message).finish();
|
|
278
|
+
},
|
|
279
|
+
toProtoMsg(message) {
|
|
280
|
+
return {
|
|
281
|
+
typeUrl: "/bze.dao.QueryDaoRequest",
|
|
282
|
+
value: QueryDaoRequest.encode(message).finish()
|
|
283
|
+
};
|
|
284
|
+
},
|
|
285
|
+
registerTypeUrl() { }
|
|
286
|
+
};
|
|
287
|
+
function createBaseQueryDaoResponse() {
|
|
288
|
+
return {
|
|
289
|
+
dao: Dao.fromPartial({})
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* QueryDaoResponse is response type for the Query/Dao RPC method.
|
|
294
|
+
* @name QueryDaoResponse
|
|
295
|
+
* @package bze.dao
|
|
296
|
+
* @see proto type: bze.dao.QueryDaoResponse
|
|
297
|
+
*/
|
|
298
|
+
export const QueryDaoResponse = {
|
|
299
|
+
typeUrl: "/bze.dao.QueryDaoResponse",
|
|
300
|
+
is(o) {
|
|
301
|
+
return o && (o.$typeUrl === QueryDaoResponse.typeUrl || Dao.is(o.dao));
|
|
302
|
+
},
|
|
303
|
+
isSDK(o) {
|
|
304
|
+
return o && (o.$typeUrl === QueryDaoResponse.typeUrl || Dao.isSDK(o.dao));
|
|
305
|
+
},
|
|
306
|
+
isAmino(o) {
|
|
307
|
+
return o && (o.$typeUrl === QueryDaoResponse.typeUrl || Dao.isAmino(o.dao));
|
|
308
|
+
},
|
|
309
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
310
|
+
if (message.dao !== undefined) {
|
|
311
|
+
Dao.encode(message.dao, writer.uint32(10).fork()).ldelim();
|
|
312
|
+
}
|
|
313
|
+
return writer;
|
|
314
|
+
},
|
|
315
|
+
decode(input, length) {
|
|
316
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
317
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
318
|
+
const message = createBaseQueryDaoResponse();
|
|
319
|
+
while (reader.pos < end) {
|
|
320
|
+
const tag = reader.uint32();
|
|
321
|
+
switch (tag >>> 3) {
|
|
322
|
+
case 1:
|
|
323
|
+
message.dao = Dao.decode(reader, reader.uint32());
|
|
324
|
+
break;
|
|
325
|
+
default:
|
|
326
|
+
reader.skipType(tag & 7);
|
|
327
|
+
break;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
return message;
|
|
331
|
+
},
|
|
332
|
+
fromPartial(object) {
|
|
333
|
+
const message = createBaseQueryDaoResponse();
|
|
334
|
+
message.dao = object.dao !== undefined && object.dao !== null ? Dao.fromPartial(object.dao) : undefined;
|
|
335
|
+
return message;
|
|
336
|
+
},
|
|
337
|
+
fromAmino(object) {
|
|
338
|
+
const message = createBaseQueryDaoResponse();
|
|
339
|
+
if (object.dao !== undefined && object.dao !== null) {
|
|
340
|
+
message.dao = Dao.fromAmino(object.dao);
|
|
341
|
+
}
|
|
342
|
+
return message;
|
|
343
|
+
},
|
|
344
|
+
toAmino(message) {
|
|
345
|
+
const obj = {};
|
|
346
|
+
obj.dao = message.dao ? Dao.toAmino(message.dao) : Dao.toAmino(Dao.fromPartial({}));
|
|
347
|
+
return obj;
|
|
348
|
+
},
|
|
349
|
+
fromAminoMsg(object) {
|
|
350
|
+
return QueryDaoResponse.fromAmino(object.value);
|
|
351
|
+
},
|
|
352
|
+
fromProtoMsg(message) {
|
|
353
|
+
return QueryDaoResponse.decode(message.value);
|
|
354
|
+
},
|
|
355
|
+
toProto(message) {
|
|
356
|
+
return QueryDaoResponse.encode(message).finish();
|
|
357
|
+
},
|
|
358
|
+
toProtoMsg(message) {
|
|
359
|
+
return {
|
|
360
|
+
typeUrl: "/bze.dao.QueryDaoResponse",
|
|
361
|
+
value: QueryDaoResponse.encode(message).finish()
|
|
362
|
+
};
|
|
363
|
+
},
|
|
364
|
+
registerTypeUrl() {
|
|
365
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryDaoResponse.typeUrl)) {
|
|
366
|
+
return;
|
|
367
|
+
}
|
|
368
|
+
Dao.registerTypeUrl();
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
function createBaseQueryDaoByAddressRequest() {
|
|
372
|
+
return {
|
|
373
|
+
address: ""
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* QueryDaoByAddressRequest is request type for the Query/DaoByAddress RPC method.
|
|
378
|
+
* @name QueryDaoByAddressRequest
|
|
379
|
+
* @package bze.dao
|
|
380
|
+
* @see proto type: bze.dao.QueryDaoByAddressRequest
|
|
381
|
+
*/
|
|
382
|
+
export const QueryDaoByAddressRequest = {
|
|
383
|
+
typeUrl: "/bze.dao.QueryDaoByAddressRequest",
|
|
384
|
+
is(o) {
|
|
385
|
+
return o && (o.$typeUrl === QueryDaoByAddressRequest.typeUrl || typeof o.address === "string");
|
|
386
|
+
},
|
|
387
|
+
isSDK(o) {
|
|
388
|
+
return o && (o.$typeUrl === QueryDaoByAddressRequest.typeUrl || typeof o.address === "string");
|
|
389
|
+
},
|
|
390
|
+
isAmino(o) {
|
|
391
|
+
return o && (o.$typeUrl === QueryDaoByAddressRequest.typeUrl || typeof o.address === "string");
|
|
392
|
+
},
|
|
393
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
394
|
+
if (message.address !== "") {
|
|
395
|
+
writer.uint32(10).string(message.address);
|
|
396
|
+
}
|
|
397
|
+
return writer;
|
|
398
|
+
},
|
|
399
|
+
decode(input, length) {
|
|
400
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
401
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
402
|
+
const message = createBaseQueryDaoByAddressRequest();
|
|
403
|
+
while (reader.pos < end) {
|
|
404
|
+
const tag = reader.uint32();
|
|
405
|
+
switch (tag >>> 3) {
|
|
406
|
+
case 1:
|
|
407
|
+
message.address = reader.string();
|
|
408
|
+
break;
|
|
409
|
+
default:
|
|
410
|
+
reader.skipType(tag & 7);
|
|
411
|
+
break;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
return message;
|
|
415
|
+
},
|
|
416
|
+
fromPartial(object) {
|
|
417
|
+
const message = createBaseQueryDaoByAddressRequest();
|
|
418
|
+
message.address = object.address ?? "";
|
|
419
|
+
return message;
|
|
420
|
+
},
|
|
421
|
+
fromAmino(object) {
|
|
422
|
+
const message = createBaseQueryDaoByAddressRequest();
|
|
423
|
+
if (object.address !== undefined && object.address !== null) {
|
|
424
|
+
message.address = object.address;
|
|
425
|
+
}
|
|
426
|
+
return message;
|
|
427
|
+
},
|
|
428
|
+
toAmino(message) {
|
|
429
|
+
const obj = {};
|
|
430
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
431
|
+
return obj;
|
|
432
|
+
},
|
|
433
|
+
fromAminoMsg(object) {
|
|
434
|
+
return QueryDaoByAddressRequest.fromAmino(object.value);
|
|
435
|
+
},
|
|
436
|
+
fromProtoMsg(message) {
|
|
437
|
+
return QueryDaoByAddressRequest.decode(message.value);
|
|
438
|
+
},
|
|
439
|
+
toProto(message) {
|
|
440
|
+
return QueryDaoByAddressRequest.encode(message).finish();
|
|
441
|
+
},
|
|
442
|
+
toProtoMsg(message) {
|
|
443
|
+
return {
|
|
444
|
+
typeUrl: "/bze.dao.QueryDaoByAddressRequest",
|
|
445
|
+
value: QueryDaoByAddressRequest.encode(message).finish()
|
|
446
|
+
};
|
|
447
|
+
},
|
|
448
|
+
registerTypeUrl() { }
|
|
449
|
+
};
|
|
450
|
+
function createBaseQueryDaoByAddressResponse() {
|
|
451
|
+
return {
|
|
452
|
+
dao: Dao.fromPartial({})
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* QueryDaoByAddressResponse is response type for the Query/DaoByAddress RPC method.
|
|
457
|
+
* @name QueryDaoByAddressResponse
|
|
458
|
+
* @package bze.dao
|
|
459
|
+
* @see proto type: bze.dao.QueryDaoByAddressResponse
|
|
460
|
+
*/
|
|
461
|
+
export const QueryDaoByAddressResponse = {
|
|
462
|
+
typeUrl: "/bze.dao.QueryDaoByAddressResponse",
|
|
463
|
+
is(o) {
|
|
464
|
+
return o && (o.$typeUrl === QueryDaoByAddressResponse.typeUrl || Dao.is(o.dao));
|
|
465
|
+
},
|
|
466
|
+
isSDK(o) {
|
|
467
|
+
return o && (o.$typeUrl === QueryDaoByAddressResponse.typeUrl || Dao.isSDK(o.dao));
|
|
468
|
+
},
|
|
469
|
+
isAmino(o) {
|
|
470
|
+
return o && (o.$typeUrl === QueryDaoByAddressResponse.typeUrl || Dao.isAmino(o.dao));
|
|
471
|
+
},
|
|
472
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
473
|
+
if (message.dao !== undefined) {
|
|
474
|
+
Dao.encode(message.dao, writer.uint32(10).fork()).ldelim();
|
|
475
|
+
}
|
|
476
|
+
return writer;
|
|
477
|
+
},
|
|
478
|
+
decode(input, length) {
|
|
479
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
480
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
481
|
+
const message = createBaseQueryDaoByAddressResponse();
|
|
482
|
+
while (reader.pos < end) {
|
|
483
|
+
const tag = reader.uint32();
|
|
484
|
+
switch (tag >>> 3) {
|
|
485
|
+
case 1:
|
|
486
|
+
message.dao = Dao.decode(reader, reader.uint32());
|
|
487
|
+
break;
|
|
488
|
+
default:
|
|
489
|
+
reader.skipType(tag & 7);
|
|
490
|
+
break;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
return message;
|
|
494
|
+
},
|
|
495
|
+
fromPartial(object) {
|
|
496
|
+
const message = createBaseQueryDaoByAddressResponse();
|
|
497
|
+
message.dao = object.dao !== undefined && object.dao !== null ? Dao.fromPartial(object.dao) : undefined;
|
|
498
|
+
return message;
|
|
499
|
+
},
|
|
500
|
+
fromAmino(object) {
|
|
501
|
+
const message = createBaseQueryDaoByAddressResponse();
|
|
502
|
+
if (object.dao !== undefined && object.dao !== null) {
|
|
503
|
+
message.dao = Dao.fromAmino(object.dao);
|
|
504
|
+
}
|
|
505
|
+
return message;
|
|
506
|
+
},
|
|
507
|
+
toAmino(message) {
|
|
508
|
+
const obj = {};
|
|
509
|
+
obj.dao = message.dao ? Dao.toAmino(message.dao) : Dao.toAmino(Dao.fromPartial({}));
|
|
510
|
+
return obj;
|
|
511
|
+
},
|
|
512
|
+
fromAminoMsg(object) {
|
|
513
|
+
return QueryDaoByAddressResponse.fromAmino(object.value);
|
|
514
|
+
},
|
|
515
|
+
fromProtoMsg(message) {
|
|
516
|
+
return QueryDaoByAddressResponse.decode(message.value);
|
|
517
|
+
},
|
|
518
|
+
toProto(message) {
|
|
519
|
+
return QueryDaoByAddressResponse.encode(message).finish();
|
|
520
|
+
},
|
|
521
|
+
toProtoMsg(message) {
|
|
522
|
+
return {
|
|
523
|
+
typeUrl: "/bze.dao.QueryDaoByAddressResponse",
|
|
524
|
+
value: QueryDaoByAddressResponse.encode(message).finish()
|
|
525
|
+
};
|
|
526
|
+
},
|
|
527
|
+
registerTypeUrl() {
|
|
528
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryDaoByAddressResponse.typeUrl)) {
|
|
529
|
+
return;
|
|
530
|
+
}
|
|
531
|
+
Dao.registerTypeUrl();
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
function createBaseQueryDaoControllerRequest() {
|
|
535
|
+
return {
|
|
536
|
+
daoId: BigInt(0)
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* QueryDaoControllerRequest is request type for the Query/DaoController RPC method.
|
|
541
|
+
* @name QueryDaoControllerRequest
|
|
542
|
+
* @package bze.dao
|
|
543
|
+
* @see proto type: bze.dao.QueryDaoControllerRequest
|
|
544
|
+
*/
|
|
545
|
+
export const QueryDaoControllerRequest = {
|
|
546
|
+
typeUrl: "/bze.dao.QueryDaoControllerRequest",
|
|
547
|
+
is(o) {
|
|
548
|
+
return o && (o.$typeUrl === QueryDaoControllerRequest.typeUrl || typeof o.daoId === "bigint");
|
|
549
|
+
},
|
|
550
|
+
isSDK(o) {
|
|
551
|
+
return o && (o.$typeUrl === QueryDaoControllerRequest.typeUrl || typeof o.dao_id === "bigint");
|
|
552
|
+
},
|
|
553
|
+
isAmino(o) {
|
|
554
|
+
return o && (o.$typeUrl === QueryDaoControllerRequest.typeUrl || typeof o.dao_id === "bigint");
|
|
555
|
+
},
|
|
556
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
557
|
+
if (message.daoId !== BigInt(0)) {
|
|
558
|
+
writer.uint32(8).uint64(message.daoId);
|
|
559
|
+
}
|
|
560
|
+
return writer;
|
|
561
|
+
},
|
|
562
|
+
decode(input, length) {
|
|
563
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
564
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
565
|
+
const message = createBaseQueryDaoControllerRequest();
|
|
566
|
+
while (reader.pos < end) {
|
|
567
|
+
const tag = reader.uint32();
|
|
568
|
+
switch (tag >>> 3) {
|
|
569
|
+
case 1:
|
|
570
|
+
message.daoId = reader.uint64();
|
|
571
|
+
break;
|
|
572
|
+
default:
|
|
573
|
+
reader.skipType(tag & 7);
|
|
574
|
+
break;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
return message;
|
|
578
|
+
},
|
|
579
|
+
fromPartial(object) {
|
|
580
|
+
const message = createBaseQueryDaoControllerRequest();
|
|
581
|
+
message.daoId = object.daoId !== undefined && object.daoId !== null ? BigInt(object.daoId.toString()) : BigInt(0);
|
|
582
|
+
return message;
|
|
583
|
+
},
|
|
584
|
+
fromAmino(object) {
|
|
585
|
+
const message = createBaseQueryDaoControllerRequest();
|
|
586
|
+
if (object.dao_id !== undefined && object.dao_id !== null) {
|
|
587
|
+
message.daoId = BigInt(object.dao_id);
|
|
588
|
+
}
|
|
589
|
+
return message;
|
|
590
|
+
},
|
|
591
|
+
toAmino(message) {
|
|
592
|
+
const obj = {};
|
|
593
|
+
obj.dao_id = message.daoId !== BigInt(0) ? message.daoId?.toString() : undefined;
|
|
594
|
+
return obj;
|
|
595
|
+
},
|
|
596
|
+
fromAminoMsg(object) {
|
|
597
|
+
return QueryDaoControllerRequest.fromAmino(object.value);
|
|
598
|
+
},
|
|
599
|
+
fromProtoMsg(message) {
|
|
600
|
+
return QueryDaoControllerRequest.decode(message.value);
|
|
601
|
+
},
|
|
602
|
+
toProto(message) {
|
|
603
|
+
return QueryDaoControllerRequest.encode(message).finish();
|
|
604
|
+
},
|
|
605
|
+
toProtoMsg(message) {
|
|
606
|
+
return {
|
|
607
|
+
typeUrl: "/bze.dao.QueryDaoControllerRequest",
|
|
608
|
+
value: QueryDaoControllerRequest.encode(message).finish()
|
|
609
|
+
};
|
|
610
|
+
},
|
|
611
|
+
registerTypeUrl() { }
|
|
612
|
+
};
|
|
613
|
+
function createBaseQueryDaoControllerResponse() {
|
|
614
|
+
return {
|
|
615
|
+
controller: "",
|
|
616
|
+
endReason: 0,
|
|
617
|
+
path: []
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* QueryDaoControllerResponse is response type for the Query/DaoController RPC method.
|
|
622
|
+
* @name QueryDaoControllerResponse
|
|
623
|
+
* @package bze.dao
|
|
624
|
+
* @see proto type: bze.dao.QueryDaoControllerResponse
|
|
625
|
+
*/
|
|
626
|
+
export const QueryDaoControllerResponse = {
|
|
627
|
+
typeUrl: "/bze.dao.QueryDaoControllerResponse",
|
|
628
|
+
is(o) {
|
|
629
|
+
return o && (o.$typeUrl === QueryDaoControllerResponse.typeUrl || typeof o.controller === "string" && isSet(o.endReason) && Array.isArray(o.path) && (!o.path.length || typeof o.path[0] === "string"));
|
|
630
|
+
},
|
|
631
|
+
isSDK(o) {
|
|
632
|
+
return o && (o.$typeUrl === QueryDaoControllerResponse.typeUrl || typeof o.controller === "string" && isSet(o.end_reason) && Array.isArray(o.path) && (!o.path.length || typeof o.path[0] === "string"));
|
|
633
|
+
},
|
|
634
|
+
isAmino(o) {
|
|
635
|
+
return o && (o.$typeUrl === QueryDaoControllerResponse.typeUrl || typeof o.controller === "string" && isSet(o.end_reason) && Array.isArray(o.path) && (!o.path.length || typeof o.path[0] === "string"));
|
|
636
|
+
},
|
|
637
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
638
|
+
if (message.controller !== "") {
|
|
639
|
+
writer.uint32(10).string(message.controller);
|
|
640
|
+
}
|
|
641
|
+
if (message.endReason !== 0) {
|
|
642
|
+
writer.uint32(16).int32(message.endReason);
|
|
643
|
+
}
|
|
644
|
+
for (const v of message.path) {
|
|
645
|
+
writer.uint32(26).string(v);
|
|
646
|
+
}
|
|
647
|
+
return writer;
|
|
648
|
+
},
|
|
649
|
+
decode(input, length) {
|
|
650
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
651
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
652
|
+
const message = createBaseQueryDaoControllerResponse();
|
|
653
|
+
while (reader.pos < end) {
|
|
654
|
+
const tag = reader.uint32();
|
|
655
|
+
switch (tag >>> 3) {
|
|
656
|
+
case 1:
|
|
657
|
+
message.controller = reader.string();
|
|
658
|
+
break;
|
|
659
|
+
case 2:
|
|
660
|
+
message.endReason = reader.int32();
|
|
661
|
+
break;
|
|
662
|
+
case 3:
|
|
663
|
+
message.path.push(reader.string());
|
|
664
|
+
break;
|
|
665
|
+
default:
|
|
666
|
+
reader.skipType(tag & 7);
|
|
667
|
+
break;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
return message;
|
|
671
|
+
},
|
|
672
|
+
fromPartial(object) {
|
|
673
|
+
const message = createBaseQueryDaoControllerResponse();
|
|
674
|
+
message.controller = object.controller ?? "";
|
|
675
|
+
message.endReason = object.endReason ?? 0;
|
|
676
|
+
message.path = object.path?.map(e => e) || [];
|
|
677
|
+
return message;
|
|
678
|
+
},
|
|
679
|
+
fromAmino(object) {
|
|
680
|
+
const message = createBaseQueryDaoControllerResponse();
|
|
681
|
+
if (object.controller !== undefined && object.controller !== null) {
|
|
682
|
+
message.controller = object.controller;
|
|
683
|
+
}
|
|
684
|
+
if (object.end_reason !== undefined && object.end_reason !== null) {
|
|
685
|
+
message.endReason = object.end_reason;
|
|
686
|
+
}
|
|
687
|
+
message.path = object.path?.map(e => e) || [];
|
|
688
|
+
return message;
|
|
689
|
+
},
|
|
690
|
+
toAmino(message) {
|
|
691
|
+
const obj = {};
|
|
692
|
+
obj.controller = message.controller === "" ? undefined : message.controller;
|
|
693
|
+
obj.end_reason = message.endReason ?? 0;
|
|
694
|
+
if (message.path) {
|
|
695
|
+
obj.path = message.path.map(e => e);
|
|
696
|
+
}
|
|
697
|
+
else {
|
|
698
|
+
obj.path = message.path;
|
|
699
|
+
}
|
|
700
|
+
return obj;
|
|
701
|
+
},
|
|
702
|
+
fromAminoMsg(object) {
|
|
703
|
+
return QueryDaoControllerResponse.fromAmino(object.value);
|
|
704
|
+
},
|
|
705
|
+
fromProtoMsg(message) {
|
|
706
|
+
return QueryDaoControllerResponse.decode(message.value);
|
|
707
|
+
},
|
|
708
|
+
toProto(message) {
|
|
709
|
+
return QueryDaoControllerResponse.encode(message).finish();
|
|
710
|
+
},
|
|
711
|
+
toProtoMsg(message) {
|
|
712
|
+
return {
|
|
713
|
+
typeUrl: "/bze.dao.QueryDaoControllerResponse",
|
|
714
|
+
value: QueryDaoControllerResponse.encode(message).finish()
|
|
715
|
+
};
|
|
716
|
+
},
|
|
717
|
+
registerTypeUrl() { }
|
|
718
|
+
};
|
|
719
|
+
function createBaseQueryProposalRequest() {
|
|
720
|
+
return {
|
|
721
|
+
id: BigInt(0)
|
|
722
|
+
};
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* QueryProposalRequest is request type for the Query/Proposal RPC method.
|
|
726
|
+
* @name QueryProposalRequest
|
|
727
|
+
* @package bze.dao
|
|
728
|
+
* @see proto type: bze.dao.QueryProposalRequest
|
|
729
|
+
*/
|
|
730
|
+
export const QueryProposalRequest = {
|
|
731
|
+
typeUrl: "/bze.dao.QueryProposalRequest",
|
|
732
|
+
is(o) {
|
|
733
|
+
return o && (o.$typeUrl === QueryProposalRequest.typeUrl || typeof o.id === "bigint");
|
|
734
|
+
},
|
|
735
|
+
isSDK(o) {
|
|
736
|
+
return o && (o.$typeUrl === QueryProposalRequest.typeUrl || typeof o.id === "bigint");
|
|
737
|
+
},
|
|
738
|
+
isAmino(o) {
|
|
739
|
+
return o && (o.$typeUrl === QueryProposalRequest.typeUrl || typeof o.id === "bigint");
|
|
740
|
+
},
|
|
741
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
742
|
+
if (message.id !== BigInt(0)) {
|
|
743
|
+
writer.uint32(8).uint64(message.id);
|
|
744
|
+
}
|
|
745
|
+
return writer;
|
|
746
|
+
},
|
|
747
|
+
decode(input, length) {
|
|
748
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
749
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
750
|
+
const message = createBaseQueryProposalRequest();
|
|
751
|
+
while (reader.pos < end) {
|
|
752
|
+
const tag = reader.uint32();
|
|
753
|
+
switch (tag >>> 3) {
|
|
754
|
+
case 1:
|
|
755
|
+
message.id = reader.uint64();
|
|
756
|
+
break;
|
|
757
|
+
default:
|
|
758
|
+
reader.skipType(tag & 7);
|
|
759
|
+
break;
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
return message;
|
|
763
|
+
},
|
|
764
|
+
fromPartial(object) {
|
|
765
|
+
const message = createBaseQueryProposalRequest();
|
|
766
|
+
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
767
|
+
return message;
|
|
768
|
+
},
|
|
769
|
+
fromAmino(object) {
|
|
770
|
+
const message = createBaseQueryProposalRequest();
|
|
771
|
+
if (object.id !== undefined && object.id !== null) {
|
|
772
|
+
message.id = BigInt(object.id);
|
|
773
|
+
}
|
|
774
|
+
return message;
|
|
775
|
+
},
|
|
776
|
+
toAmino(message) {
|
|
777
|
+
const obj = {};
|
|
778
|
+
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
779
|
+
return obj;
|
|
780
|
+
},
|
|
781
|
+
fromAminoMsg(object) {
|
|
782
|
+
return QueryProposalRequest.fromAmino(object.value);
|
|
783
|
+
},
|
|
784
|
+
fromProtoMsg(message) {
|
|
785
|
+
return QueryProposalRequest.decode(message.value);
|
|
786
|
+
},
|
|
787
|
+
toProto(message) {
|
|
788
|
+
return QueryProposalRequest.encode(message).finish();
|
|
789
|
+
},
|
|
790
|
+
toProtoMsg(message) {
|
|
791
|
+
return {
|
|
792
|
+
typeUrl: "/bze.dao.QueryProposalRequest",
|
|
793
|
+
value: QueryProposalRequest.encode(message).finish()
|
|
794
|
+
};
|
|
795
|
+
},
|
|
796
|
+
registerTypeUrl() { }
|
|
797
|
+
};
|
|
798
|
+
function createBaseQueryProposalResponse() {
|
|
799
|
+
return {
|
|
800
|
+
proposal: Proposal.fromPartial({}),
|
|
801
|
+
votingEnded: false,
|
|
802
|
+
retryDeadline: BigInt(0),
|
|
803
|
+
expediteSettleable: false
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* QueryProposalResponse is response type for the Query/Proposal RPC method.
|
|
808
|
+
* The flags are computed at the current block time.
|
|
809
|
+
* @name QueryProposalResponse
|
|
810
|
+
* @package bze.dao
|
|
811
|
+
* @see proto type: bze.dao.QueryProposalResponse
|
|
812
|
+
*/
|
|
813
|
+
export const QueryProposalResponse = {
|
|
814
|
+
typeUrl: "/bze.dao.QueryProposalResponse",
|
|
815
|
+
is(o) {
|
|
816
|
+
return o && (o.$typeUrl === QueryProposalResponse.typeUrl || Proposal.is(o.proposal) && typeof o.votingEnded === "boolean" && typeof o.retryDeadline === "bigint" && typeof o.expediteSettleable === "boolean");
|
|
817
|
+
},
|
|
818
|
+
isSDK(o) {
|
|
819
|
+
return o && (o.$typeUrl === QueryProposalResponse.typeUrl || Proposal.isSDK(o.proposal) && typeof o.voting_ended === "boolean" && typeof o.retry_deadline === "bigint" && typeof o.expedite_settleable === "boolean");
|
|
820
|
+
},
|
|
821
|
+
isAmino(o) {
|
|
822
|
+
return o && (o.$typeUrl === QueryProposalResponse.typeUrl || Proposal.isAmino(o.proposal) && typeof o.voting_ended === "boolean" && typeof o.retry_deadline === "bigint" && typeof o.expedite_settleable === "boolean");
|
|
823
|
+
},
|
|
824
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
825
|
+
if (message.proposal !== undefined) {
|
|
826
|
+
Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim();
|
|
827
|
+
}
|
|
828
|
+
if (message.votingEnded === true) {
|
|
829
|
+
writer.uint32(16).bool(message.votingEnded);
|
|
830
|
+
}
|
|
831
|
+
if (message.retryDeadline !== BigInt(0)) {
|
|
832
|
+
writer.uint32(24).int64(message.retryDeadline);
|
|
833
|
+
}
|
|
834
|
+
if (message.expediteSettleable === true) {
|
|
835
|
+
writer.uint32(32).bool(message.expediteSettleable);
|
|
836
|
+
}
|
|
837
|
+
return writer;
|
|
838
|
+
},
|
|
839
|
+
decode(input, length) {
|
|
840
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
841
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
842
|
+
const message = createBaseQueryProposalResponse();
|
|
843
|
+
while (reader.pos < end) {
|
|
844
|
+
const tag = reader.uint32();
|
|
845
|
+
switch (tag >>> 3) {
|
|
846
|
+
case 1:
|
|
847
|
+
message.proposal = Proposal.decode(reader, reader.uint32());
|
|
848
|
+
break;
|
|
849
|
+
case 2:
|
|
850
|
+
message.votingEnded = reader.bool();
|
|
851
|
+
break;
|
|
852
|
+
case 3:
|
|
853
|
+
message.retryDeadline = reader.int64();
|
|
854
|
+
break;
|
|
855
|
+
case 4:
|
|
856
|
+
message.expediteSettleable = reader.bool();
|
|
857
|
+
break;
|
|
858
|
+
default:
|
|
859
|
+
reader.skipType(tag & 7);
|
|
860
|
+
break;
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
return message;
|
|
864
|
+
},
|
|
865
|
+
fromPartial(object) {
|
|
866
|
+
const message = createBaseQueryProposalResponse();
|
|
867
|
+
message.proposal = object.proposal !== undefined && object.proposal !== null ? Proposal.fromPartial(object.proposal) : undefined;
|
|
868
|
+
message.votingEnded = object.votingEnded ?? false;
|
|
869
|
+
message.retryDeadline = object.retryDeadline !== undefined && object.retryDeadline !== null ? BigInt(object.retryDeadline.toString()) : BigInt(0);
|
|
870
|
+
message.expediteSettleable = object.expediteSettleable ?? false;
|
|
871
|
+
return message;
|
|
872
|
+
},
|
|
873
|
+
fromAmino(object) {
|
|
874
|
+
const message = createBaseQueryProposalResponse();
|
|
875
|
+
if (object.proposal !== undefined && object.proposal !== null) {
|
|
876
|
+
message.proposal = Proposal.fromAmino(object.proposal);
|
|
877
|
+
}
|
|
878
|
+
if (object.voting_ended !== undefined && object.voting_ended !== null) {
|
|
879
|
+
message.votingEnded = object.voting_ended;
|
|
880
|
+
}
|
|
881
|
+
if (object.retry_deadline !== undefined && object.retry_deadline !== null) {
|
|
882
|
+
message.retryDeadline = BigInt(object.retry_deadline);
|
|
883
|
+
}
|
|
884
|
+
if (object.expedite_settleable !== undefined && object.expedite_settleable !== null) {
|
|
885
|
+
message.expediteSettleable = object.expedite_settleable;
|
|
886
|
+
}
|
|
887
|
+
return message;
|
|
888
|
+
},
|
|
889
|
+
toAmino(message) {
|
|
890
|
+
const obj = {};
|
|
891
|
+
obj.proposal = message.proposal ? Proposal.toAmino(message.proposal) : Proposal.toAmino(Proposal.fromPartial({}));
|
|
892
|
+
obj.voting_ended = message.votingEnded ?? false;
|
|
893
|
+
obj.retry_deadline = message.retryDeadline ? message.retryDeadline?.toString() : "0";
|
|
894
|
+
obj.expedite_settleable = message.expediteSettleable ?? false;
|
|
895
|
+
return obj;
|
|
896
|
+
},
|
|
897
|
+
fromAminoMsg(object) {
|
|
898
|
+
return QueryProposalResponse.fromAmino(object.value);
|
|
899
|
+
},
|
|
900
|
+
fromProtoMsg(message) {
|
|
901
|
+
return QueryProposalResponse.decode(message.value);
|
|
902
|
+
},
|
|
903
|
+
toProto(message) {
|
|
904
|
+
return QueryProposalResponse.encode(message).finish();
|
|
905
|
+
},
|
|
906
|
+
toProtoMsg(message) {
|
|
907
|
+
return {
|
|
908
|
+
typeUrl: "/bze.dao.QueryProposalResponse",
|
|
909
|
+
value: QueryProposalResponse.encode(message).finish()
|
|
910
|
+
};
|
|
911
|
+
},
|
|
912
|
+
registerTypeUrl() {
|
|
913
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryProposalResponse.typeUrl)) {
|
|
914
|
+
return;
|
|
915
|
+
}
|
|
916
|
+
Proposal.registerTypeUrl();
|
|
917
|
+
}
|
|
918
|
+
};
|
|
919
|
+
function createBaseQueryBallotRequest() {
|
|
920
|
+
return {
|
|
921
|
+
proposalId: BigInt(0),
|
|
922
|
+
voter: ""
|
|
923
|
+
};
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* QueryBallotRequest is request type for the Query/Ballot RPC method.
|
|
927
|
+
* @name QueryBallotRequest
|
|
928
|
+
* @package bze.dao
|
|
929
|
+
* @see proto type: bze.dao.QueryBallotRequest
|
|
930
|
+
*/
|
|
931
|
+
export const QueryBallotRequest = {
|
|
932
|
+
typeUrl: "/bze.dao.QueryBallotRequest",
|
|
933
|
+
is(o) {
|
|
934
|
+
return o && (o.$typeUrl === QueryBallotRequest.typeUrl || typeof o.proposalId === "bigint" && typeof o.voter === "string");
|
|
935
|
+
},
|
|
936
|
+
isSDK(o) {
|
|
937
|
+
return o && (o.$typeUrl === QueryBallotRequest.typeUrl || typeof o.proposal_id === "bigint" && typeof o.voter === "string");
|
|
938
|
+
},
|
|
939
|
+
isAmino(o) {
|
|
940
|
+
return o && (o.$typeUrl === QueryBallotRequest.typeUrl || typeof o.proposal_id === "bigint" && typeof o.voter === "string");
|
|
941
|
+
},
|
|
942
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
943
|
+
if (message.proposalId !== BigInt(0)) {
|
|
944
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
945
|
+
}
|
|
946
|
+
if (message.voter !== "") {
|
|
947
|
+
writer.uint32(18).string(message.voter);
|
|
948
|
+
}
|
|
949
|
+
return writer;
|
|
950
|
+
},
|
|
951
|
+
decode(input, length) {
|
|
952
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
953
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
954
|
+
const message = createBaseQueryBallotRequest();
|
|
955
|
+
while (reader.pos < end) {
|
|
956
|
+
const tag = reader.uint32();
|
|
957
|
+
switch (tag >>> 3) {
|
|
958
|
+
case 1:
|
|
959
|
+
message.proposalId = reader.uint64();
|
|
960
|
+
break;
|
|
961
|
+
case 2:
|
|
962
|
+
message.voter = reader.string();
|
|
963
|
+
break;
|
|
964
|
+
default:
|
|
965
|
+
reader.skipType(tag & 7);
|
|
966
|
+
break;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
return message;
|
|
970
|
+
},
|
|
971
|
+
fromPartial(object) {
|
|
972
|
+
const message = createBaseQueryBallotRequest();
|
|
973
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
|
|
974
|
+
message.voter = object.voter ?? "";
|
|
975
|
+
return message;
|
|
976
|
+
},
|
|
977
|
+
fromAmino(object) {
|
|
978
|
+
const message = createBaseQueryBallotRequest();
|
|
979
|
+
if (object.proposal_id !== undefined && object.proposal_id !== null) {
|
|
980
|
+
message.proposalId = BigInt(object.proposal_id);
|
|
981
|
+
}
|
|
982
|
+
if (object.voter !== undefined && object.voter !== null) {
|
|
983
|
+
message.voter = object.voter;
|
|
984
|
+
}
|
|
985
|
+
return message;
|
|
986
|
+
},
|
|
987
|
+
toAmino(message) {
|
|
988
|
+
const obj = {};
|
|
989
|
+
obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
|
|
990
|
+
obj.voter = message.voter === "" ? undefined : message.voter;
|
|
991
|
+
return obj;
|
|
992
|
+
},
|
|
993
|
+
fromAminoMsg(object) {
|
|
994
|
+
return QueryBallotRequest.fromAmino(object.value);
|
|
995
|
+
},
|
|
996
|
+
fromProtoMsg(message) {
|
|
997
|
+
return QueryBallotRequest.decode(message.value);
|
|
998
|
+
},
|
|
999
|
+
toProto(message) {
|
|
1000
|
+
return QueryBallotRequest.encode(message).finish();
|
|
1001
|
+
},
|
|
1002
|
+
toProtoMsg(message) {
|
|
1003
|
+
return {
|
|
1004
|
+
typeUrl: "/bze.dao.QueryBallotRequest",
|
|
1005
|
+
value: QueryBallotRequest.encode(message).finish()
|
|
1006
|
+
};
|
|
1007
|
+
},
|
|
1008
|
+
registerTypeUrl() { }
|
|
1009
|
+
};
|
|
1010
|
+
function createBaseQueryBallotResponse() {
|
|
1011
|
+
return {
|
|
1012
|
+
ballot: Ballot.fromPartial({})
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
/**
|
|
1016
|
+
* QueryBallotResponse is response type for the Query/Ballot RPC method.
|
|
1017
|
+
* @name QueryBallotResponse
|
|
1018
|
+
* @package bze.dao
|
|
1019
|
+
* @see proto type: bze.dao.QueryBallotResponse
|
|
1020
|
+
*/
|
|
1021
|
+
export const QueryBallotResponse = {
|
|
1022
|
+
typeUrl: "/bze.dao.QueryBallotResponse",
|
|
1023
|
+
is(o) {
|
|
1024
|
+
return o && (o.$typeUrl === QueryBallotResponse.typeUrl || Ballot.is(o.ballot));
|
|
1025
|
+
},
|
|
1026
|
+
isSDK(o) {
|
|
1027
|
+
return o && (o.$typeUrl === QueryBallotResponse.typeUrl || Ballot.isSDK(o.ballot));
|
|
1028
|
+
},
|
|
1029
|
+
isAmino(o) {
|
|
1030
|
+
return o && (o.$typeUrl === QueryBallotResponse.typeUrl || Ballot.isAmino(o.ballot));
|
|
1031
|
+
},
|
|
1032
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1033
|
+
if (message.ballot !== undefined) {
|
|
1034
|
+
Ballot.encode(message.ballot, writer.uint32(10).fork()).ldelim();
|
|
1035
|
+
}
|
|
1036
|
+
return writer;
|
|
1037
|
+
},
|
|
1038
|
+
decode(input, length) {
|
|
1039
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1040
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1041
|
+
const message = createBaseQueryBallotResponse();
|
|
1042
|
+
while (reader.pos < end) {
|
|
1043
|
+
const tag = reader.uint32();
|
|
1044
|
+
switch (tag >>> 3) {
|
|
1045
|
+
case 1:
|
|
1046
|
+
message.ballot = Ballot.decode(reader, reader.uint32());
|
|
1047
|
+
break;
|
|
1048
|
+
default:
|
|
1049
|
+
reader.skipType(tag & 7);
|
|
1050
|
+
break;
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
return message;
|
|
1054
|
+
},
|
|
1055
|
+
fromPartial(object) {
|
|
1056
|
+
const message = createBaseQueryBallotResponse();
|
|
1057
|
+
message.ballot = object.ballot !== undefined && object.ballot !== null ? Ballot.fromPartial(object.ballot) : undefined;
|
|
1058
|
+
return message;
|
|
1059
|
+
},
|
|
1060
|
+
fromAmino(object) {
|
|
1061
|
+
const message = createBaseQueryBallotResponse();
|
|
1062
|
+
if (object.ballot !== undefined && object.ballot !== null) {
|
|
1063
|
+
message.ballot = Ballot.fromAmino(object.ballot);
|
|
1064
|
+
}
|
|
1065
|
+
return message;
|
|
1066
|
+
},
|
|
1067
|
+
toAmino(message) {
|
|
1068
|
+
const obj = {};
|
|
1069
|
+
obj.ballot = message.ballot ? Ballot.toAmino(message.ballot) : Ballot.toAmino(Ballot.fromPartial({}));
|
|
1070
|
+
return obj;
|
|
1071
|
+
},
|
|
1072
|
+
fromAminoMsg(object) {
|
|
1073
|
+
return QueryBallotResponse.fromAmino(object.value);
|
|
1074
|
+
},
|
|
1075
|
+
fromProtoMsg(message) {
|
|
1076
|
+
return QueryBallotResponse.decode(message.value);
|
|
1077
|
+
},
|
|
1078
|
+
toProto(message) {
|
|
1079
|
+
return QueryBallotResponse.encode(message).finish();
|
|
1080
|
+
},
|
|
1081
|
+
toProtoMsg(message) {
|
|
1082
|
+
return {
|
|
1083
|
+
typeUrl: "/bze.dao.QueryBallotResponse",
|
|
1084
|
+
value: QueryBallotResponse.encode(message).finish()
|
|
1085
|
+
};
|
|
1086
|
+
},
|
|
1087
|
+
registerTypeUrl() {
|
|
1088
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryBallotResponse.typeUrl)) {
|
|
1089
|
+
return;
|
|
1090
|
+
}
|
|
1091
|
+
Ballot.registerTypeUrl();
|
|
1092
|
+
}
|
|
1093
|
+
};
|
|
1094
|
+
function createBaseQueryVotingPowerRequest() {
|
|
1095
|
+
return {
|
|
1096
|
+
daoId: BigInt(0),
|
|
1097
|
+
address: ""
|
|
1098
|
+
};
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
* QueryVotingPowerRequest is request type for the Query/VotingPower RPC method.
|
|
1102
|
+
* @name QueryVotingPowerRequest
|
|
1103
|
+
* @package bze.dao
|
|
1104
|
+
* @see proto type: bze.dao.QueryVotingPowerRequest
|
|
1105
|
+
*/
|
|
1106
|
+
export const QueryVotingPowerRequest = {
|
|
1107
|
+
typeUrl: "/bze.dao.QueryVotingPowerRequest",
|
|
1108
|
+
is(o) {
|
|
1109
|
+
return o && (o.$typeUrl === QueryVotingPowerRequest.typeUrl || typeof o.daoId === "bigint" && typeof o.address === "string");
|
|
1110
|
+
},
|
|
1111
|
+
isSDK(o) {
|
|
1112
|
+
return o && (o.$typeUrl === QueryVotingPowerRequest.typeUrl || typeof o.dao_id === "bigint" && typeof o.address === "string");
|
|
1113
|
+
},
|
|
1114
|
+
isAmino(o) {
|
|
1115
|
+
return o && (o.$typeUrl === QueryVotingPowerRequest.typeUrl || typeof o.dao_id === "bigint" && typeof o.address === "string");
|
|
1116
|
+
},
|
|
1117
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1118
|
+
if (message.daoId !== BigInt(0)) {
|
|
1119
|
+
writer.uint32(8).uint64(message.daoId);
|
|
1120
|
+
}
|
|
1121
|
+
if (message.address !== "") {
|
|
1122
|
+
writer.uint32(18).string(message.address);
|
|
1123
|
+
}
|
|
1124
|
+
return writer;
|
|
1125
|
+
},
|
|
1126
|
+
decode(input, length) {
|
|
1127
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1128
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1129
|
+
const message = createBaseQueryVotingPowerRequest();
|
|
1130
|
+
while (reader.pos < end) {
|
|
1131
|
+
const tag = reader.uint32();
|
|
1132
|
+
switch (tag >>> 3) {
|
|
1133
|
+
case 1:
|
|
1134
|
+
message.daoId = reader.uint64();
|
|
1135
|
+
break;
|
|
1136
|
+
case 2:
|
|
1137
|
+
message.address = reader.string();
|
|
1138
|
+
break;
|
|
1139
|
+
default:
|
|
1140
|
+
reader.skipType(tag & 7);
|
|
1141
|
+
break;
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
return message;
|
|
1145
|
+
},
|
|
1146
|
+
fromPartial(object) {
|
|
1147
|
+
const message = createBaseQueryVotingPowerRequest();
|
|
1148
|
+
message.daoId = object.daoId !== undefined && object.daoId !== null ? BigInt(object.daoId.toString()) : BigInt(0);
|
|
1149
|
+
message.address = object.address ?? "";
|
|
1150
|
+
return message;
|
|
1151
|
+
},
|
|
1152
|
+
fromAmino(object) {
|
|
1153
|
+
const message = createBaseQueryVotingPowerRequest();
|
|
1154
|
+
if (object.dao_id !== undefined && object.dao_id !== null) {
|
|
1155
|
+
message.daoId = BigInt(object.dao_id);
|
|
1156
|
+
}
|
|
1157
|
+
if (object.address !== undefined && object.address !== null) {
|
|
1158
|
+
message.address = object.address;
|
|
1159
|
+
}
|
|
1160
|
+
return message;
|
|
1161
|
+
},
|
|
1162
|
+
toAmino(message) {
|
|
1163
|
+
const obj = {};
|
|
1164
|
+
obj.dao_id = message.daoId !== BigInt(0) ? message.daoId?.toString() : undefined;
|
|
1165
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
1166
|
+
return obj;
|
|
1167
|
+
},
|
|
1168
|
+
fromAminoMsg(object) {
|
|
1169
|
+
return QueryVotingPowerRequest.fromAmino(object.value);
|
|
1170
|
+
},
|
|
1171
|
+
fromProtoMsg(message) {
|
|
1172
|
+
return QueryVotingPowerRequest.decode(message.value);
|
|
1173
|
+
},
|
|
1174
|
+
toProto(message) {
|
|
1175
|
+
return QueryVotingPowerRequest.encode(message).finish();
|
|
1176
|
+
},
|
|
1177
|
+
toProtoMsg(message) {
|
|
1178
|
+
return {
|
|
1179
|
+
typeUrl: "/bze.dao.QueryVotingPowerRequest",
|
|
1180
|
+
value: QueryVotingPowerRequest.encode(message).finish()
|
|
1181
|
+
};
|
|
1182
|
+
},
|
|
1183
|
+
registerTypeUrl() { }
|
|
1184
|
+
};
|
|
1185
|
+
function createBaseProposalVotingPower() {
|
|
1186
|
+
return {
|
|
1187
|
+
proposalId: BigInt(0),
|
|
1188
|
+
eligibleWeight: "",
|
|
1189
|
+
shares: []
|
|
1190
|
+
};
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* ProposalVotingPower is the weight an address would vote with on one proposal.
|
|
1194
|
+
* @name ProposalVotingPower
|
|
1195
|
+
* @package bze.dao
|
|
1196
|
+
* @see proto type: bze.dao.ProposalVotingPower
|
|
1197
|
+
*/
|
|
1198
|
+
export const ProposalVotingPower = {
|
|
1199
|
+
typeUrl: "/bze.dao.ProposalVotingPower",
|
|
1200
|
+
is(o) {
|
|
1201
|
+
return o && (o.$typeUrl === ProposalVotingPower.typeUrl || typeof o.proposalId === "bigint" && typeof o.eligibleWeight === "string" && Array.isArray(o.shares) && (!o.shares.length || BallotShare.is(o.shares[0])));
|
|
1202
|
+
},
|
|
1203
|
+
isSDK(o) {
|
|
1204
|
+
return o && (o.$typeUrl === ProposalVotingPower.typeUrl || typeof o.proposal_id === "bigint" && typeof o.eligible_weight === "string" && Array.isArray(o.shares) && (!o.shares.length || BallotShare.isSDK(o.shares[0])));
|
|
1205
|
+
},
|
|
1206
|
+
isAmino(o) {
|
|
1207
|
+
return o && (o.$typeUrl === ProposalVotingPower.typeUrl || typeof o.proposal_id === "bigint" && typeof o.eligible_weight === "string" && Array.isArray(o.shares) && (!o.shares.length || BallotShare.isAmino(o.shares[0])));
|
|
1208
|
+
},
|
|
1209
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1210
|
+
if (message.proposalId !== BigInt(0)) {
|
|
1211
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
1212
|
+
}
|
|
1213
|
+
if (message.eligibleWeight !== "") {
|
|
1214
|
+
writer.uint32(18).string(message.eligibleWeight);
|
|
1215
|
+
}
|
|
1216
|
+
for (const v of message.shares) {
|
|
1217
|
+
BallotShare.encode(v, writer.uint32(26).fork()).ldelim();
|
|
1218
|
+
}
|
|
1219
|
+
return writer;
|
|
1220
|
+
},
|
|
1221
|
+
decode(input, length) {
|
|
1222
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1223
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1224
|
+
const message = createBaseProposalVotingPower();
|
|
1225
|
+
while (reader.pos < end) {
|
|
1226
|
+
const tag = reader.uint32();
|
|
1227
|
+
switch (tag >>> 3) {
|
|
1228
|
+
case 1:
|
|
1229
|
+
message.proposalId = reader.uint64();
|
|
1230
|
+
break;
|
|
1231
|
+
case 2:
|
|
1232
|
+
message.eligibleWeight = reader.string();
|
|
1233
|
+
break;
|
|
1234
|
+
case 3:
|
|
1235
|
+
message.shares.push(BallotShare.decode(reader, reader.uint32()));
|
|
1236
|
+
break;
|
|
1237
|
+
default:
|
|
1238
|
+
reader.skipType(tag & 7);
|
|
1239
|
+
break;
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
return message;
|
|
1243
|
+
},
|
|
1244
|
+
fromPartial(object) {
|
|
1245
|
+
const message = createBaseProposalVotingPower();
|
|
1246
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
|
|
1247
|
+
message.eligibleWeight = object.eligibleWeight ?? "";
|
|
1248
|
+
message.shares = object.shares?.map(e => BallotShare.fromPartial(e)) || [];
|
|
1249
|
+
return message;
|
|
1250
|
+
},
|
|
1251
|
+
fromAmino(object) {
|
|
1252
|
+
const message = createBaseProposalVotingPower();
|
|
1253
|
+
if (object.proposal_id !== undefined && object.proposal_id !== null) {
|
|
1254
|
+
message.proposalId = BigInt(object.proposal_id);
|
|
1255
|
+
}
|
|
1256
|
+
if (object.eligible_weight !== undefined && object.eligible_weight !== null) {
|
|
1257
|
+
message.eligibleWeight = object.eligible_weight;
|
|
1258
|
+
}
|
|
1259
|
+
message.shares = object.shares?.map(e => BallotShare.fromAmino(e)) || [];
|
|
1260
|
+
return message;
|
|
1261
|
+
},
|
|
1262
|
+
toAmino(message) {
|
|
1263
|
+
const obj = {};
|
|
1264
|
+
obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
|
|
1265
|
+
obj.eligible_weight = message.eligibleWeight === "" ? undefined : message.eligibleWeight;
|
|
1266
|
+
if (message.shares) {
|
|
1267
|
+
obj.shares = message.shares.map(e => e ? BallotShare.toAmino(e) : undefined);
|
|
1268
|
+
}
|
|
1269
|
+
else {
|
|
1270
|
+
obj.shares = message.shares;
|
|
1271
|
+
}
|
|
1272
|
+
return obj;
|
|
1273
|
+
},
|
|
1274
|
+
fromAminoMsg(object) {
|
|
1275
|
+
return ProposalVotingPower.fromAmino(object.value);
|
|
1276
|
+
},
|
|
1277
|
+
fromProtoMsg(message) {
|
|
1278
|
+
return ProposalVotingPower.decode(message.value);
|
|
1279
|
+
},
|
|
1280
|
+
toProto(message) {
|
|
1281
|
+
return ProposalVotingPower.encode(message).finish();
|
|
1282
|
+
},
|
|
1283
|
+
toProtoMsg(message) {
|
|
1284
|
+
return {
|
|
1285
|
+
typeUrl: "/bze.dao.ProposalVotingPower",
|
|
1286
|
+
value: ProposalVotingPower.encode(message).finish()
|
|
1287
|
+
};
|
|
1288
|
+
},
|
|
1289
|
+
registerTypeUrl() {
|
|
1290
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(ProposalVotingPower.typeUrl)) {
|
|
1291
|
+
return;
|
|
1292
|
+
}
|
|
1293
|
+
BallotShare.registerTypeUrl();
|
|
1294
|
+
}
|
|
1295
|
+
};
|
|
1296
|
+
function createBaseQueryVotingPowerResponse() {
|
|
1297
|
+
return {
|
|
1298
|
+
current: "",
|
|
1299
|
+
proposals: []
|
|
1300
|
+
};
|
|
1301
|
+
}
|
|
1302
|
+
/**
|
|
1303
|
+
* QueryVotingPowerResponse is response type for the Query/VotingPower RPC method.
|
|
1304
|
+
* @name QueryVotingPowerResponse
|
|
1305
|
+
* @package bze.dao
|
|
1306
|
+
* @see proto type: bze.dao.QueryVotingPowerResponse
|
|
1307
|
+
*/
|
|
1308
|
+
export const QueryVotingPowerResponse = {
|
|
1309
|
+
typeUrl: "/bze.dao.QueryVotingPowerResponse",
|
|
1310
|
+
is(o) {
|
|
1311
|
+
return o && (o.$typeUrl === QueryVotingPowerResponse.typeUrl || typeof o.current === "string" && Array.isArray(o.proposals) && (!o.proposals.length || ProposalVotingPower.is(o.proposals[0])));
|
|
1312
|
+
},
|
|
1313
|
+
isSDK(o) {
|
|
1314
|
+
return o && (o.$typeUrl === QueryVotingPowerResponse.typeUrl || typeof o.current === "string" && Array.isArray(o.proposals) && (!o.proposals.length || ProposalVotingPower.isSDK(o.proposals[0])));
|
|
1315
|
+
},
|
|
1316
|
+
isAmino(o) {
|
|
1317
|
+
return o && (o.$typeUrl === QueryVotingPowerResponse.typeUrl || typeof o.current === "string" && Array.isArray(o.proposals) && (!o.proposals.length || ProposalVotingPower.isAmino(o.proposals[0])));
|
|
1318
|
+
},
|
|
1319
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1320
|
+
if (message.current !== "") {
|
|
1321
|
+
writer.uint32(10).string(message.current);
|
|
1322
|
+
}
|
|
1323
|
+
for (const v of message.proposals) {
|
|
1324
|
+
ProposalVotingPower.encode(v, writer.uint32(18).fork()).ldelim();
|
|
1325
|
+
}
|
|
1326
|
+
return writer;
|
|
1327
|
+
},
|
|
1328
|
+
decode(input, length) {
|
|
1329
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1330
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1331
|
+
const message = createBaseQueryVotingPowerResponse();
|
|
1332
|
+
while (reader.pos < end) {
|
|
1333
|
+
const tag = reader.uint32();
|
|
1334
|
+
switch (tag >>> 3) {
|
|
1335
|
+
case 1:
|
|
1336
|
+
message.current = reader.string();
|
|
1337
|
+
break;
|
|
1338
|
+
case 2:
|
|
1339
|
+
message.proposals.push(ProposalVotingPower.decode(reader, reader.uint32()));
|
|
1340
|
+
break;
|
|
1341
|
+
default:
|
|
1342
|
+
reader.skipType(tag & 7);
|
|
1343
|
+
break;
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
return message;
|
|
1347
|
+
},
|
|
1348
|
+
fromPartial(object) {
|
|
1349
|
+
const message = createBaseQueryVotingPowerResponse();
|
|
1350
|
+
message.current = object.current ?? "";
|
|
1351
|
+
message.proposals = object.proposals?.map(e => ProposalVotingPower.fromPartial(e)) || [];
|
|
1352
|
+
return message;
|
|
1353
|
+
},
|
|
1354
|
+
fromAmino(object) {
|
|
1355
|
+
const message = createBaseQueryVotingPowerResponse();
|
|
1356
|
+
if (object.current !== undefined && object.current !== null) {
|
|
1357
|
+
message.current = object.current;
|
|
1358
|
+
}
|
|
1359
|
+
message.proposals = object.proposals?.map(e => ProposalVotingPower.fromAmino(e)) || [];
|
|
1360
|
+
return message;
|
|
1361
|
+
},
|
|
1362
|
+
toAmino(message) {
|
|
1363
|
+
const obj = {};
|
|
1364
|
+
obj.current = message.current === "" ? undefined : message.current;
|
|
1365
|
+
if (message.proposals) {
|
|
1366
|
+
obj.proposals = message.proposals.map(e => e ? ProposalVotingPower.toAmino(e) : undefined);
|
|
1367
|
+
}
|
|
1368
|
+
else {
|
|
1369
|
+
obj.proposals = message.proposals;
|
|
1370
|
+
}
|
|
1371
|
+
return obj;
|
|
1372
|
+
},
|
|
1373
|
+
fromAminoMsg(object) {
|
|
1374
|
+
return QueryVotingPowerResponse.fromAmino(object.value);
|
|
1375
|
+
},
|
|
1376
|
+
fromProtoMsg(message) {
|
|
1377
|
+
return QueryVotingPowerResponse.decode(message.value);
|
|
1378
|
+
},
|
|
1379
|
+
toProto(message) {
|
|
1380
|
+
return QueryVotingPowerResponse.encode(message).finish();
|
|
1381
|
+
},
|
|
1382
|
+
toProtoMsg(message) {
|
|
1383
|
+
return {
|
|
1384
|
+
typeUrl: "/bze.dao.QueryVotingPowerResponse",
|
|
1385
|
+
value: QueryVotingPowerResponse.encode(message).finish()
|
|
1386
|
+
};
|
|
1387
|
+
},
|
|
1388
|
+
registerTypeUrl() {
|
|
1389
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryVotingPowerResponse.typeUrl)) {
|
|
1390
|
+
return;
|
|
1391
|
+
}
|
|
1392
|
+
ProposalVotingPower.registerTypeUrl();
|
|
1393
|
+
}
|
|
1394
|
+
};
|
|
1395
|
+
function createBaseQueryJoinRecordRequest() {
|
|
1396
|
+
return {
|
|
1397
|
+
source: "",
|
|
1398
|
+
address: ""
|
|
1399
|
+
};
|
|
1400
|
+
}
|
|
1401
|
+
/**
|
|
1402
|
+
* QueryJoinRecordRequest is request type for the Query/JoinRecord RPC method.
|
|
1403
|
+
* @name QueryJoinRecordRequest
|
|
1404
|
+
* @package bze.dao
|
|
1405
|
+
* @see proto type: bze.dao.QueryJoinRecordRequest
|
|
1406
|
+
*/
|
|
1407
|
+
export const QueryJoinRecordRequest = {
|
|
1408
|
+
typeUrl: "/bze.dao.QueryJoinRecordRequest",
|
|
1409
|
+
is(o) {
|
|
1410
|
+
return o && (o.$typeUrl === QueryJoinRecordRequest.typeUrl || typeof o.source === "string" && typeof o.address === "string");
|
|
1411
|
+
},
|
|
1412
|
+
isSDK(o) {
|
|
1413
|
+
return o && (o.$typeUrl === QueryJoinRecordRequest.typeUrl || typeof o.source === "string" && typeof o.address === "string");
|
|
1414
|
+
},
|
|
1415
|
+
isAmino(o) {
|
|
1416
|
+
return o && (o.$typeUrl === QueryJoinRecordRequest.typeUrl || typeof o.source === "string" && typeof o.address === "string");
|
|
1417
|
+
},
|
|
1418
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1419
|
+
if (message.source !== "") {
|
|
1420
|
+
writer.uint32(10).string(message.source);
|
|
1421
|
+
}
|
|
1422
|
+
if (message.address !== "") {
|
|
1423
|
+
writer.uint32(18).string(message.address);
|
|
1424
|
+
}
|
|
1425
|
+
return writer;
|
|
1426
|
+
},
|
|
1427
|
+
decode(input, length) {
|
|
1428
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1429
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1430
|
+
const message = createBaseQueryJoinRecordRequest();
|
|
1431
|
+
while (reader.pos < end) {
|
|
1432
|
+
const tag = reader.uint32();
|
|
1433
|
+
switch (tag >>> 3) {
|
|
1434
|
+
case 1:
|
|
1435
|
+
message.source = reader.string();
|
|
1436
|
+
break;
|
|
1437
|
+
case 2:
|
|
1438
|
+
message.address = reader.string();
|
|
1439
|
+
break;
|
|
1440
|
+
default:
|
|
1441
|
+
reader.skipType(tag & 7);
|
|
1442
|
+
break;
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
return message;
|
|
1446
|
+
},
|
|
1447
|
+
fromPartial(object) {
|
|
1448
|
+
const message = createBaseQueryJoinRecordRequest();
|
|
1449
|
+
message.source = object.source ?? "";
|
|
1450
|
+
message.address = object.address ?? "";
|
|
1451
|
+
return message;
|
|
1452
|
+
},
|
|
1453
|
+
fromAmino(object) {
|
|
1454
|
+
const message = createBaseQueryJoinRecordRequest();
|
|
1455
|
+
if (object.source !== undefined && object.source !== null) {
|
|
1456
|
+
message.source = object.source;
|
|
1457
|
+
}
|
|
1458
|
+
if (object.address !== undefined && object.address !== null) {
|
|
1459
|
+
message.address = object.address;
|
|
1460
|
+
}
|
|
1461
|
+
return message;
|
|
1462
|
+
},
|
|
1463
|
+
toAmino(message) {
|
|
1464
|
+
const obj = {};
|
|
1465
|
+
obj.source = message.source === "" ? undefined : message.source;
|
|
1466
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
1467
|
+
return obj;
|
|
1468
|
+
},
|
|
1469
|
+
fromAminoMsg(object) {
|
|
1470
|
+
return QueryJoinRecordRequest.fromAmino(object.value);
|
|
1471
|
+
},
|
|
1472
|
+
fromProtoMsg(message) {
|
|
1473
|
+
return QueryJoinRecordRequest.decode(message.value);
|
|
1474
|
+
},
|
|
1475
|
+
toProto(message) {
|
|
1476
|
+
return QueryJoinRecordRequest.encode(message).finish();
|
|
1477
|
+
},
|
|
1478
|
+
toProtoMsg(message) {
|
|
1479
|
+
return {
|
|
1480
|
+
typeUrl: "/bze.dao.QueryJoinRecordRequest",
|
|
1481
|
+
value: QueryJoinRecordRequest.encode(message).finish()
|
|
1482
|
+
};
|
|
1483
|
+
},
|
|
1484
|
+
registerTypeUrl() { }
|
|
1485
|
+
};
|
|
1486
|
+
function createBaseQueryJoinRecordResponse() {
|
|
1487
|
+
return {
|
|
1488
|
+
height: BigInt(0)
|
|
1489
|
+
};
|
|
1490
|
+
}
|
|
1491
|
+
/**
|
|
1492
|
+
* QueryJoinRecordResponse is response type for the Query/JoinRecord RPC method.
|
|
1493
|
+
* @name QueryJoinRecordResponse
|
|
1494
|
+
* @package bze.dao
|
|
1495
|
+
* @see proto type: bze.dao.QueryJoinRecordResponse
|
|
1496
|
+
*/
|
|
1497
|
+
export const QueryJoinRecordResponse = {
|
|
1498
|
+
typeUrl: "/bze.dao.QueryJoinRecordResponse",
|
|
1499
|
+
is(o) {
|
|
1500
|
+
return o && (o.$typeUrl === QueryJoinRecordResponse.typeUrl || typeof o.height === "bigint");
|
|
1501
|
+
},
|
|
1502
|
+
isSDK(o) {
|
|
1503
|
+
return o && (o.$typeUrl === QueryJoinRecordResponse.typeUrl || typeof o.height === "bigint");
|
|
1504
|
+
},
|
|
1505
|
+
isAmino(o) {
|
|
1506
|
+
return o && (o.$typeUrl === QueryJoinRecordResponse.typeUrl || typeof o.height === "bigint");
|
|
1507
|
+
},
|
|
1508
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1509
|
+
if (message.height !== BigInt(0)) {
|
|
1510
|
+
writer.uint32(8).int64(message.height);
|
|
1511
|
+
}
|
|
1512
|
+
return writer;
|
|
1513
|
+
},
|
|
1514
|
+
decode(input, length) {
|
|
1515
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1516
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1517
|
+
const message = createBaseQueryJoinRecordResponse();
|
|
1518
|
+
while (reader.pos < end) {
|
|
1519
|
+
const tag = reader.uint32();
|
|
1520
|
+
switch (tag >>> 3) {
|
|
1521
|
+
case 1:
|
|
1522
|
+
message.height = reader.int64();
|
|
1523
|
+
break;
|
|
1524
|
+
default:
|
|
1525
|
+
reader.skipType(tag & 7);
|
|
1526
|
+
break;
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
return message;
|
|
1530
|
+
},
|
|
1531
|
+
fromPartial(object) {
|
|
1532
|
+
const message = createBaseQueryJoinRecordResponse();
|
|
1533
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
1534
|
+
return message;
|
|
1535
|
+
},
|
|
1536
|
+
fromAmino(object) {
|
|
1537
|
+
const message = createBaseQueryJoinRecordResponse();
|
|
1538
|
+
if (object.height !== undefined && object.height !== null) {
|
|
1539
|
+
message.height = BigInt(object.height);
|
|
1540
|
+
}
|
|
1541
|
+
return message;
|
|
1542
|
+
},
|
|
1543
|
+
toAmino(message) {
|
|
1544
|
+
const obj = {};
|
|
1545
|
+
obj.height = message.height ? message.height?.toString() : "0";
|
|
1546
|
+
return obj;
|
|
1547
|
+
},
|
|
1548
|
+
fromAminoMsg(object) {
|
|
1549
|
+
return QueryJoinRecordResponse.fromAmino(object.value);
|
|
1550
|
+
},
|
|
1551
|
+
fromProtoMsg(message) {
|
|
1552
|
+
return QueryJoinRecordResponse.decode(message.value);
|
|
1553
|
+
},
|
|
1554
|
+
toProto(message) {
|
|
1555
|
+
return QueryJoinRecordResponse.encode(message).finish();
|
|
1556
|
+
},
|
|
1557
|
+
toProtoMsg(message) {
|
|
1558
|
+
return {
|
|
1559
|
+
typeUrl: "/bze.dao.QueryJoinRecordResponse",
|
|
1560
|
+
value: QueryJoinRecordResponse.encode(message).finish()
|
|
1561
|
+
};
|
|
1562
|
+
},
|
|
1563
|
+
registerTypeUrl() { }
|
|
1564
|
+
};
|
|
1565
|
+
function createBaseQueryDaosRequest() {
|
|
1566
|
+
return {
|
|
1567
|
+
pagination: undefined
|
|
1568
|
+
};
|
|
1569
|
+
}
|
|
1570
|
+
/**
|
|
1571
|
+
* QueryDaosRequest is request type for the Query/Daos RPC method.
|
|
1572
|
+
* @name QueryDaosRequest
|
|
1573
|
+
* @package bze.dao
|
|
1574
|
+
* @see proto type: bze.dao.QueryDaosRequest
|
|
1575
|
+
*/
|
|
1576
|
+
export const QueryDaosRequest = {
|
|
1577
|
+
typeUrl: "/bze.dao.QueryDaosRequest",
|
|
1578
|
+
is(o) {
|
|
1579
|
+
return o && o.$typeUrl === QueryDaosRequest.typeUrl;
|
|
1580
|
+
},
|
|
1581
|
+
isSDK(o) {
|
|
1582
|
+
return o && o.$typeUrl === QueryDaosRequest.typeUrl;
|
|
1583
|
+
},
|
|
1584
|
+
isAmino(o) {
|
|
1585
|
+
return o && o.$typeUrl === QueryDaosRequest.typeUrl;
|
|
1586
|
+
},
|
|
1587
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1588
|
+
if (message.pagination !== undefined) {
|
|
1589
|
+
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
1590
|
+
}
|
|
1591
|
+
return writer;
|
|
1592
|
+
},
|
|
1593
|
+
decode(input, length) {
|
|
1594
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1595
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1596
|
+
const message = createBaseQueryDaosRequest();
|
|
1597
|
+
while (reader.pos < end) {
|
|
1598
|
+
const tag = reader.uint32();
|
|
1599
|
+
switch (tag >>> 3) {
|
|
1600
|
+
case 1:
|
|
1601
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1602
|
+
break;
|
|
1603
|
+
default:
|
|
1604
|
+
reader.skipType(tag & 7);
|
|
1605
|
+
break;
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
return message;
|
|
1609
|
+
},
|
|
1610
|
+
fromPartial(object) {
|
|
1611
|
+
const message = createBaseQueryDaosRequest();
|
|
1612
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
1613
|
+
return message;
|
|
1614
|
+
},
|
|
1615
|
+
fromAmino(object) {
|
|
1616
|
+
const message = createBaseQueryDaosRequest();
|
|
1617
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1618
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
1619
|
+
}
|
|
1620
|
+
return message;
|
|
1621
|
+
},
|
|
1622
|
+
toAmino(message) {
|
|
1623
|
+
const obj = {};
|
|
1624
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
1625
|
+
return obj;
|
|
1626
|
+
},
|
|
1627
|
+
fromAminoMsg(object) {
|
|
1628
|
+
return QueryDaosRequest.fromAmino(object.value);
|
|
1629
|
+
},
|
|
1630
|
+
fromProtoMsg(message) {
|
|
1631
|
+
return QueryDaosRequest.decode(message.value);
|
|
1632
|
+
},
|
|
1633
|
+
toProto(message) {
|
|
1634
|
+
return QueryDaosRequest.encode(message).finish();
|
|
1635
|
+
},
|
|
1636
|
+
toProtoMsg(message) {
|
|
1637
|
+
return {
|
|
1638
|
+
typeUrl: "/bze.dao.QueryDaosRequest",
|
|
1639
|
+
value: QueryDaosRequest.encode(message).finish()
|
|
1640
|
+
};
|
|
1641
|
+
},
|
|
1642
|
+
registerTypeUrl() {
|
|
1643
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryDaosRequest.typeUrl)) {
|
|
1644
|
+
return;
|
|
1645
|
+
}
|
|
1646
|
+
PageRequest.registerTypeUrl();
|
|
1647
|
+
}
|
|
1648
|
+
};
|
|
1649
|
+
function createBaseQueryDaosResponse() {
|
|
1650
|
+
return {
|
|
1651
|
+
daos: [],
|
|
1652
|
+
pagination: undefined
|
|
1653
|
+
};
|
|
1654
|
+
}
|
|
1655
|
+
/**
|
|
1656
|
+
* QueryDaosResponse is response type for the Query/Daos RPC method.
|
|
1657
|
+
* @name QueryDaosResponse
|
|
1658
|
+
* @package bze.dao
|
|
1659
|
+
* @see proto type: bze.dao.QueryDaosResponse
|
|
1660
|
+
*/
|
|
1661
|
+
export const QueryDaosResponse = {
|
|
1662
|
+
typeUrl: "/bze.dao.QueryDaosResponse",
|
|
1663
|
+
is(o) {
|
|
1664
|
+
return o && (o.$typeUrl === QueryDaosResponse.typeUrl || Array.isArray(o.daos) && (!o.daos.length || Dao.is(o.daos[0])));
|
|
1665
|
+
},
|
|
1666
|
+
isSDK(o) {
|
|
1667
|
+
return o && (o.$typeUrl === QueryDaosResponse.typeUrl || Array.isArray(o.daos) && (!o.daos.length || Dao.isSDK(o.daos[0])));
|
|
1668
|
+
},
|
|
1669
|
+
isAmino(o) {
|
|
1670
|
+
return o && (o.$typeUrl === QueryDaosResponse.typeUrl || Array.isArray(o.daos) && (!o.daos.length || Dao.isAmino(o.daos[0])));
|
|
1671
|
+
},
|
|
1672
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1673
|
+
for (const v of message.daos) {
|
|
1674
|
+
Dao.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1675
|
+
}
|
|
1676
|
+
if (message.pagination !== undefined) {
|
|
1677
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1678
|
+
}
|
|
1679
|
+
return writer;
|
|
1680
|
+
},
|
|
1681
|
+
decode(input, length) {
|
|
1682
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1683
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1684
|
+
const message = createBaseQueryDaosResponse();
|
|
1685
|
+
while (reader.pos < end) {
|
|
1686
|
+
const tag = reader.uint32();
|
|
1687
|
+
switch (tag >>> 3) {
|
|
1688
|
+
case 1:
|
|
1689
|
+
message.daos.push(Dao.decode(reader, reader.uint32()));
|
|
1690
|
+
break;
|
|
1691
|
+
case 2:
|
|
1692
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1693
|
+
break;
|
|
1694
|
+
default:
|
|
1695
|
+
reader.skipType(tag & 7);
|
|
1696
|
+
break;
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
return message;
|
|
1700
|
+
},
|
|
1701
|
+
fromPartial(object) {
|
|
1702
|
+
const message = createBaseQueryDaosResponse();
|
|
1703
|
+
message.daos = object.daos?.map(e => Dao.fromPartial(e)) || [];
|
|
1704
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
1705
|
+
return message;
|
|
1706
|
+
},
|
|
1707
|
+
fromAmino(object) {
|
|
1708
|
+
const message = createBaseQueryDaosResponse();
|
|
1709
|
+
message.daos = object.daos?.map(e => Dao.fromAmino(e)) || [];
|
|
1710
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1711
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
1712
|
+
}
|
|
1713
|
+
return message;
|
|
1714
|
+
},
|
|
1715
|
+
toAmino(message) {
|
|
1716
|
+
const obj = {};
|
|
1717
|
+
if (message.daos) {
|
|
1718
|
+
obj.daos = message.daos.map(e => e ? Dao.toAmino(e) : undefined);
|
|
1719
|
+
}
|
|
1720
|
+
else {
|
|
1721
|
+
obj.daos = message.daos;
|
|
1722
|
+
}
|
|
1723
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
1724
|
+
return obj;
|
|
1725
|
+
},
|
|
1726
|
+
fromAminoMsg(object) {
|
|
1727
|
+
return QueryDaosResponse.fromAmino(object.value);
|
|
1728
|
+
},
|
|
1729
|
+
fromProtoMsg(message) {
|
|
1730
|
+
return QueryDaosResponse.decode(message.value);
|
|
1731
|
+
},
|
|
1732
|
+
toProto(message) {
|
|
1733
|
+
return QueryDaosResponse.encode(message).finish();
|
|
1734
|
+
},
|
|
1735
|
+
toProtoMsg(message) {
|
|
1736
|
+
return {
|
|
1737
|
+
typeUrl: "/bze.dao.QueryDaosResponse",
|
|
1738
|
+
value: QueryDaosResponse.encode(message).finish()
|
|
1739
|
+
};
|
|
1740
|
+
},
|
|
1741
|
+
registerTypeUrl() {
|
|
1742
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryDaosResponse.typeUrl)) {
|
|
1743
|
+
return;
|
|
1744
|
+
}
|
|
1745
|
+
Dao.registerTypeUrl();
|
|
1746
|
+
PageResponse.registerTypeUrl();
|
|
1747
|
+
}
|
|
1748
|
+
};
|
|
1749
|
+
function createBaseQueryDaosByAdminRequest() {
|
|
1750
|
+
return {
|
|
1751
|
+
admin: "",
|
|
1752
|
+
pagination: undefined
|
|
1753
|
+
};
|
|
1754
|
+
}
|
|
1755
|
+
/**
|
|
1756
|
+
* QueryDaosByAdminRequest is request type for the Query/DaosByAdmin RPC method.
|
|
1757
|
+
* @name QueryDaosByAdminRequest
|
|
1758
|
+
* @package bze.dao
|
|
1759
|
+
* @see proto type: bze.dao.QueryDaosByAdminRequest
|
|
1760
|
+
*/
|
|
1761
|
+
export const QueryDaosByAdminRequest = {
|
|
1762
|
+
typeUrl: "/bze.dao.QueryDaosByAdminRequest",
|
|
1763
|
+
is(o) {
|
|
1764
|
+
return o && (o.$typeUrl === QueryDaosByAdminRequest.typeUrl || typeof o.admin === "string");
|
|
1765
|
+
},
|
|
1766
|
+
isSDK(o) {
|
|
1767
|
+
return o && (o.$typeUrl === QueryDaosByAdminRequest.typeUrl || typeof o.admin === "string");
|
|
1768
|
+
},
|
|
1769
|
+
isAmino(o) {
|
|
1770
|
+
return o && (o.$typeUrl === QueryDaosByAdminRequest.typeUrl || typeof o.admin === "string");
|
|
1771
|
+
},
|
|
1772
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1773
|
+
if (message.admin !== "") {
|
|
1774
|
+
writer.uint32(10).string(message.admin);
|
|
1775
|
+
}
|
|
1776
|
+
if (message.pagination !== undefined) {
|
|
1777
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1778
|
+
}
|
|
1779
|
+
return writer;
|
|
1780
|
+
},
|
|
1781
|
+
decode(input, length) {
|
|
1782
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1783
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1784
|
+
const message = createBaseQueryDaosByAdminRequest();
|
|
1785
|
+
while (reader.pos < end) {
|
|
1786
|
+
const tag = reader.uint32();
|
|
1787
|
+
switch (tag >>> 3) {
|
|
1788
|
+
case 1:
|
|
1789
|
+
message.admin = reader.string();
|
|
1790
|
+
break;
|
|
1791
|
+
case 2:
|
|
1792
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1793
|
+
break;
|
|
1794
|
+
default:
|
|
1795
|
+
reader.skipType(tag & 7);
|
|
1796
|
+
break;
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
return message;
|
|
1800
|
+
},
|
|
1801
|
+
fromPartial(object) {
|
|
1802
|
+
const message = createBaseQueryDaosByAdminRequest();
|
|
1803
|
+
message.admin = object.admin ?? "";
|
|
1804
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
1805
|
+
return message;
|
|
1806
|
+
},
|
|
1807
|
+
fromAmino(object) {
|
|
1808
|
+
const message = createBaseQueryDaosByAdminRequest();
|
|
1809
|
+
if (object.admin !== undefined && object.admin !== null) {
|
|
1810
|
+
message.admin = object.admin;
|
|
1811
|
+
}
|
|
1812
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1813
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
1814
|
+
}
|
|
1815
|
+
return message;
|
|
1816
|
+
},
|
|
1817
|
+
toAmino(message) {
|
|
1818
|
+
const obj = {};
|
|
1819
|
+
obj.admin = message.admin === "" ? undefined : message.admin;
|
|
1820
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
1821
|
+
return obj;
|
|
1822
|
+
},
|
|
1823
|
+
fromAminoMsg(object) {
|
|
1824
|
+
return QueryDaosByAdminRequest.fromAmino(object.value);
|
|
1825
|
+
},
|
|
1826
|
+
fromProtoMsg(message) {
|
|
1827
|
+
return QueryDaosByAdminRequest.decode(message.value);
|
|
1828
|
+
},
|
|
1829
|
+
toProto(message) {
|
|
1830
|
+
return QueryDaosByAdminRequest.encode(message).finish();
|
|
1831
|
+
},
|
|
1832
|
+
toProtoMsg(message) {
|
|
1833
|
+
return {
|
|
1834
|
+
typeUrl: "/bze.dao.QueryDaosByAdminRequest",
|
|
1835
|
+
value: QueryDaosByAdminRequest.encode(message).finish()
|
|
1836
|
+
};
|
|
1837
|
+
},
|
|
1838
|
+
registerTypeUrl() {
|
|
1839
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryDaosByAdminRequest.typeUrl)) {
|
|
1840
|
+
return;
|
|
1841
|
+
}
|
|
1842
|
+
PageRequest.registerTypeUrl();
|
|
1843
|
+
}
|
|
1844
|
+
};
|
|
1845
|
+
function createBaseQueryDaosByAdminResponse() {
|
|
1846
|
+
return {
|
|
1847
|
+
daos: [],
|
|
1848
|
+
pagination: undefined
|
|
1849
|
+
};
|
|
1850
|
+
}
|
|
1851
|
+
/**
|
|
1852
|
+
* QueryDaosByAdminResponse is response type for the Query/DaosByAdmin RPC method.
|
|
1853
|
+
* @name QueryDaosByAdminResponse
|
|
1854
|
+
* @package bze.dao
|
|
1855
|
+
* @see proto type: bze.dao.QueryDaosByAdminResponse
|
|
1856
|
+
*/
|
|
1857
|
+
export const QueryDaosByAdminResponse = {
|
|
1858
|
+
typeUrl: "/bze.dao.QueryDaosByAdminResponse",
|
|
1859
|
+
is(o) {
|
|
1860
|
+
return o && (o.$typeUrl === QueryDaosByAdminResponse.typeUrl || Array.isArray(o.daos) && (!o.daos.length || Dao.is(o.daos[0])));
|
|
1861
|
+
},
|
|
1862
|
+
isSDK(o) {
|
|
1863
|
+
return o && (o.$typeUrl === QueryDaosByAdminResponse.typeUrl || Array.isArray(o.daos) && (!o.daos.length || Dao.isSDK(o.daos[0])));
|
|
1864
|
+
},
|
|
1865
|
+
isAmino(o) {
|
|
1866
|
+
return o && (o.$typeUrl === QueryDaosByAdminResponse.typeUrl || Array.isArray(o.daos) && (!o.daos.length || Dao.isAmino(o.daos[0])));
|
|
1867
|
+
},
|
|
1868
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1869
|
+
for (const v of message.daos) {
|
|
1870
|
+
Dao.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1871
|
+
}
|
|
1872
|
+
if (message.pagination !== undefined) {
|
|
1873
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1874
|
+
}
|
|
1875
|
+
return writer;
|
|
1876
|
+
},
|
|
1877
|
+
decode(input, length) {
|
|
1878
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1879
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1880
|
+
const message = createBaseQueryDaosByAdminResponse();
|
|
1881
|
+
while (reader.pos < end) {
|
|
1882
|
+
const tag = reader.uint32();
|
|
1883
|
+
switch (tag >>> 3) {
|
|
1884
|
+
case 1:
|
|
1885
|
+
message.daos.push(Dao.decode(reader, reader.uint32()));
|
|
1886
|
+
break;
|
|
1887
|
+
case 2:
|
|
1888
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1889
|
+
break;
|
|
1890
|
+
default:
|
|
1891
|
+
reader.skipType(tag & 7);
|
|
1892
|
+
break;
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
return message;
|
|
1896
|
+
},
|
|
1897
|
+
fromPartial(object) {
|
|
1898
|
+
const message = createBaseQueryDaosByAdminResponse();
|
|
1899
|
+
message.daos = object.daos?.map(e => Dao.fromPartial(e)) || [];
|
|
1900
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
1901
|
+
return message;
|
|
1902
|
+
},
|
|
1903
|
+
fromAmino(object) {
|
|
1904
|
+
const message = createBaseQueryDaosByAdminResponse();
|
|
1905
|
+
message.daos = object.daos?.map(e => Dao.fromAmino(e)) || [];
|
|
1906
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1907
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
1908
|
+
}
|
|
1909
|
+
return message;
|
|
1910
|
+
},
|
|
1911
|
+
toAmino(message) {
|
|
1912
|
+
const obj = {};
|
|
1913
|
+
if (message.daos) {
|
|
1914
|
+
obj.daos = message.daos.map(e => e ? Dao.toAmino(e) : undefined);
|
|
1915
|
+
}
|
|
1916
|
+
else {
|
|
1917
|
+
obj.daos = message.daos;
|
|
1918
|
+
}
|
|
1919
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
1920
|
+
return obj;
|
|
1921
|
+
},
|
|
1922
|
+
fromAminoMsg(object) {
|
|
1923
|
+
return QueryDaosByAdminResponse.fromAmino(object.value);
|
|
1924
|
+
},
|
|
1925
|
+
fromProtoMsg(message) {
|
|
1926
|
+
return QueryDaosByAdminResponse.decode(message.value);
|
|
1927
|
+
},
|
|
1928
|
+
toProto(message) {
|
|
1929
|
+
return QueryDaosByAdminResponse.encode(message).finish();
|
|
1930
|
+
},
|
|
1931
|
+
toProtoMsg(message) {
|
|
1932
|
+
return {
|
|
1933
|
+
typeUrl: "/bze.dao.QueryDaosByAdminResponse",
|
|
1934
|
+
value: QueryDaosByAdminResponse.encode(message).finish()
|
|
1935
|
+
};
|
|
1936
|
+
},
|
|
1937
|
+
registerTypeUrl() {
|
|
1938
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryDaosByAdminResponse.typeUrl)) {
|
|
1939
|
+
return;
|
|
1940
|
+
}
|
|
1941
|
+
Dao.registerTypeUrl();
|
|
1942
|
+
PageResponse.registerTypeUrl();
|
|
1943
|
+
}
|
|
1944
|
+
};
|
|
1945
|
+
function createBaseQueryProposalsRequest() {
|
|
1946
|
+
return {
|
|
1947
|
+
daoId: BigInt(0),
|
|
1948
|
+
statuses: [],
|
|
1949
|
+
pagination: undefined
|
|
1950
|
+
};
|
|
1951
|
+
}
|
|
1952
|
+
/**
|
|
1953
|
+
* QueryProposalsRequest is request type for the Query/Proposals RPC method.
|
|
1954
|
+
* @name QueryProposalsRequest
|
|
1955
|
+
* @package bze.dao
|
|
1956
|
+
* @see proto type: bze.dao.QueryProposalsRequest
|
|
1957
|
+
*/
|
|
1958
|
+
export const QueryProposalsRequest = {
|
|
1959
|
+
typeUrl: "/bze.dao.QueryProposalsRequest",
|
|
1960
|
+
is(o) {
|
|
1961
|
+
return o && (o.$typeUrl === QueryProposalsRequest.typeUrl || typeof o.daoId === "bigint" && Array.isArray(o.statuses));
|
|
1962
|
+
},
|
|
1963
|
+
isSDK(o) {
|
|
1964
|
+
return o && (o.$typeUrl === QueryProposalsRequest.typeUrl || typeof o.dao_id === "bigint" && Array.isArray(o.statuses));
|
|
1965
|
+
},
|
|
1966
|
+
isAmino(o) {
|
|
1967
|
+
return o && (o.$typeUrl === QueryProposalsRequest.typeUrl || typeof o.dao_id === "bigint" && Array.isArray(o.statuses));
|
|
1968
|
+
},
|
|
1969
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1970
|
+
if (message.daoId !== BigInt(0)) {
|
|
1971
|
+
writer.uint32(8).uint64(message.daoId);
|
|
1972
|
+
}
|
|
1973
|
+
writer.uint32(18).fork();
|
|
1974
|
+
for (const v of message.statuses) {
|
|
1975
|
+
writer.int32(v);
|
|
1976
|
+
}
|
|
1977
|
+
writer.ldelim();
|
|
1978
|
+
if (message.pagination !== undefined) {
|
|
1979
|
+
PageRequest.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
|
1980
|
+
}
|
|
1981
|
+
return writer;
|
|
1982
|
+
},
|
|
1983
|
+
decode(input, length) {
|
|
1984
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1985
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1986
|
+
const message = createBaseQueryProposalsRequest();
|
|
1987
|
+
while (reader.pos < end) {
|
|
1988
|
+
const tag = reader.uint32();
|
|
1989
|
+
switch (tag >>> 3) {
|
|
1990
|
+
case 1:
|
|
1991
|
+
message.daoId = reader.uint64();
|
|
1992
|
+
break;
|
|
1993
|
+
case 2:
|
|
1994
|
+
if ((tag & 7) === 2) {
|
|
1995
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1996
|
+
while (reader.pos < end2) {
|
|
1997
|
+
message.statuses.push(reader.int32());
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
else {
|
|
2001
|
+
message.statuses.push(reader.int32());
|
|
2002
|
+
}
|
|
2003
|
+
break;
|
|
2004
|
+
case 3:
|
|
2005
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
2006
|
+
break;
|
|
2007
|
+
default:
|
|
2008
|
+
reader.skipType(tag & 7);
|
|
2009
|
+
break;
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
return message;
|
|
2013
|
+
},
|
|
2014
|
+
fromPartial(object) {
|
|
2015
|
+
const message = createBaseQueryProposalsRequest();
|
|
2016
|
+
message.daoId = object.daoId !== undefined && object.daoId !== null ? BigInt(object.daoId.toString()) : BigInt(0);
|
|
2017
|
+
message.statuses = object.statuses?.map(e => e) || [];
|
|
2018
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
2019
|
+
return message;
|
|
2020
|
+
},
|
|
2021
|
+
fromAmino(object) {
|
|
2022
|
+
const message = createBaseQueryProposalsRequest();
|
|
2023
|
+
if (object.dao_id !== undefined && object.dao_id !== null) {
|
|
2024
|
+
message.daoId = BigInt(object.dao_id);
|
|
2025
|
+
}
|
|
2026
|
+
message.statuses = object.statuses?.map(e => e) || [];
|
|
2027
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2028
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
2029
|
+
}
|
|
2030
|
+
return message;
|
|
2031
|
+
},
|
|
2032
|
+
toAmino(message) {
|
|
2033
|
+
const obj = {};
|
|
2034
|
+
obj.dao_id = message.daoId !== BigInt(0) ? message.daoId?.toString() : undefined;
|
|
2035
|
+
if (message.statuses) {
|
|
2036
|
+
obj.statuses = message.statuses.map(e => e);
|
|
2037
|
+
}
|
|
2038
|
+
else {
|
|
2039
|
+
obj.statuses = message.statuses;
|
|
2040
|
+
}
|
|
2041
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
2042
|
+
return obj;
|
|
2043
|
+
},
|
|
2044
|
+
fromAminoMsg(object) {
|
|
2045
|
+
return QueryProposalsRequest.fromAmino(object.value);
|
|
2046
|
+
},
|
|
2047
|
+
fromProtoMsg(message) {
|
|
2048
|
+
return QueryProposalsRequest.decode(message.value);
|
|
2049
|
+
},
|
|
2050
|
+
toProto(message) {
|
|
2051
|
+
return QueryProposalsRequest.encode(message).finish();
|
|
2052
|
+
},
|
|
2053
|
+
toProtoMsg(message) {
|
|
2054
|
+
return {
|
|
2055
|
+
typeUrl: "/bze.dao.QueryProposalsRequest",
|
|
2056
|
+
value: QueryProposalsRequest.encode(message).finish()
|
|
2057
|
+
};
|
|
2058
|
+
},
|
|
2059
|
+
registerTypeUrl() {
|
|
2060
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryProposalsRequest.typeUrl)) {
|
|
2061
|
+
return;
|
|
2062
|
+
}
|
|
2063
|
+
PageRequest.registerTypeUrl();
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2066
|
+
function createBaseQueryProposalsResponse() {
|
|
2067
|
+
return {
|
|
2068
|
+
proposals: [],
|
|
2069
|
+
pagination: undefined
|
|
2070
|
+
};
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* QueryProposalsResponse is response type for the Query/Proposals RPC method.
|
|
2074
|
+
* The statuses are the stored ones: a VOTING proposal past its voting end is
|
|
2075
|
+
* listed as VOTING until it is settled.
|
|
2076
|
+
* @name QueryProposalsResponse
|
|
2077
|
+
* @package bze.dao
|
|
2078
|
+
* @see proto type: bze.dao.QueryProposalsResponse
|
|
2079
|
+
*/
|
|
2080
|
+
export const QueryProposalsResponse = {
|
|
2081
|
+
typeUrl: "/bze.dao.QueryProposalsResponse",
|
|
2082
|
+
is(o) {
|
|
2083
|
+
return o && (o.$typeUrl === QueryProposalsResponse.typeUrl || Array.isArray(o.proposals) && (!o.proposals.length || Proposal.is(o.proposals[0])));
|
|
2084
|
+
},
|
|
2085
|
+
isSDK(o) {
|
|
2086
|
+
return o && (o.$typeUrl === QueryProposalsResponse.typeUrl || Array.isArray(o.proposals) && (!o.proposals.length || Proposal.isSDK(o.proposals[0])));
|
|
2087
|
+
},
|
|
2088
|
+
isAmino(o) {
|
|
2089
|
+
return o && (o.$typeUrl === QueryProposalsResponse.typeUrl || Array.isArray(o.proposals) && (!o.proposals.length || Proposal.isAmino(o.proposals[0])));
|
|
2090
|
+
},
|
|
2091
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2092
|
+
for (const v of message.proposals) {
|
|
2093
|
+
Proposal.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2094
|
+
}
|
|
2095
|
+
if (message.pagination !== undefined) {
|
|
2096
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2097
|
+
}
|
|
2098
|
+
return writer;
|
|
2099
|
+
},
|
|
2100
|
+
decode(input, length) {
|
|
2101
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2102
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2103
|
+
const message = createBaseQueryProposalsResponse();
|
|
2104
|
+
while (reader.pos < end) {
|
|
2105
|
+
const tag = reader.uint32();
|
|
2106
|
+
switch (tag >>> 3) {
|
|
2107
|
+
case 1:
|
|
2108
|
+
message.proposals.push(Proposal.decode(reader, reader.uint32()));
|
|
2109
|
+
break;
|
|
2110
|
+
case 2:
|
|
2111
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
2112
|
+
break;
|
|
2113
|
+
default:
|
|
2114
|
+
reader.skipType(tag & 7);
|
|
2115
|
+
break;
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
return message;
|
|
2119
|
+
},
|
|
2120
|
+
fromPartial(object) {
|
|
2121
|
+
const message = createBaseQueryProposalsResponse();
|
|
2122
|
+
message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || [];
|
|
2123
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
2124
|
+
return message;
|
|
2125
|
+
},
|
|
2126
|
+
fromAmino(object) {
|
|
2127
|
+
const message = createBaseQueryProposalsResponse();
|
|
2128
|
+
message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || [];
|
|
2129
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2130
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
2131
|
+
}
|
|
2132
|
+
return message;
|
|
2133
|
+
},
|
|
2134
|
+
toAmino(message) {
|
|
2135
|
+
const obj = {};
|
|
2136
|
+
if (message.proposals) {
|
|
2137
|
+
obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined);
|
|
2138
|
+
}
|
|
2139
|
+
else {
|
|
2140
|
+
obj.proposals = message.proposals;
|
|
2141
|
+
}
|
|
2142
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
2143
|
+
return obj;
|
|
2144
|
+
},
|
|
2145
|
+
fromAminoMsg(object) {
|
|
2146
|
+
return QueryProposalsResponse.fromAmino(object.value);
|
|
2147
|
+
},
|
|
2148
|
+
fromProtoMsg(message) {
|
|
2149
|
+
return QueryProposalsResponse.decode(message.value);
|
|
2150
|
+
},
|
|
2151
|
+
toProto(message) {
|
|
2152
|
+
return QueryProposalsResponse.encode(message).finish();
|
|
2153
|
+
},
|
|
2154
|
+
toProtoMsg(message) {
|
|
2155
|
+
return {
|
|
2156
|
+
typeUrl: "/bze.dao.QueryProposalsResponse",
|
|
2157
|
+
value: QueryProposalsResponse.encode(message).finish()
|
|
2158
|
+
};
|
|
2159
|
+
},
|
|
2160
|
+
registerTypeUrl() {
|
|
2161
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryProposalsResponse.typeUrl)) {
|
|
2162
|
+
return;
|
|
2163
|
+
}
|
|
2164
|
+
Proposal.registerTypeUrl();
|
|
2165
|
+
PageResponse.registerTypeUrl();
|
|
2166
|
+
}
|
|
2167
|
+
};
|
|
2168
|
+
function createBaseQueryBallotsRequest() {
|
|
2169
|
+
return {
|
|
2170
|
+
proposalId: BigInt(0),
|
|
2171
|
+
pagination: undefined
|
|
2172
|
+
};
|
|
2173
|
+
}
|
|
2174
|
+
/**
|
|
2175
|
+
* QueryBallotsRequest is request type for the Query/Ballots RPC method.
|
|
2176
|
+
* @name QueryBallotsRequest
|
|
2177
|
+
* @package bze.dao
|
|
2178
|
+
* @see proto type: bze.dao.QueryBallotsRequest
|
|
2179
|
+
*/
|
|
2180
|
+
export const QueryBallotsRequest = {
|
|
2181
|
+
typeUrl: "/bze.dao.QueryBallotsRequest",
|
|
2182
|
+
is(o) {
|
|
2183
|
+
return o && (o.$typeUrl === QueryBallotsRequest.typeUrl || typeof o.proposalId === "bigint");
|
|
2184
|
+
},
|
|
2185
|
+
isSDK(o) {
|
|
2186
|
+
return o && (o.$typeUrl === QueryBallotsRequest.typeUrl || typeof o.proposal_id === "bigint");
|
|
2187
|
+
},
|
|
2188
|
+
isAmino(o) {
|
|
2189
|
+
return o && (o.$typeUrl === QueryBallotsRequest.typeUrl || typeof o.proposal_id === "bigint");
|
|
2190
|
+
},
|
|
2191
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2192
|
+
if (message.proposalId !== BigInt(0)) {
|
|
2193
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
2194
|
+
}
|
|
2195
|
+
if (message.pagination !== undefined) {
|
|
2196
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2197
|
+
}
|
|
2198
|
+
return writer;
|
|
2199
|
+
},
|
|
2200
|
+
decode(input, length) {
|
|
2201
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2202
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2203
|
+
const message = createBaseQueryBallotsRequest();
|
|
2204
|
+
while (reader.pos < end) {
|
|
2205
|
+
const tag = reader.uint32();
|
|
2206
|
+
switch (tag >>> 3) {
|
|
2207
|
+
case 1:
|
|
2208
|
+
message.proposalId = reader.uint64();
|
|
2209
|
+
break;
|
|
2210
|
+
case 2:
|
|
2211
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
2212
|
+
break;
|
|
2213
|
+
default:
|
|
2214
|
+
reader.skipType(tag & 7);
|
|
2215
|
+
break;
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
return message;
|
|
2219
|
+
},
|
|
2220
|
+
fromPartial(object) {
|
|
2221
|
+
const message = createBaseQueryBallotsRequest();
|
|
2222
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
|
|
2223
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
2224
|
+
return message;
|
|
2225
|
+
},
|
|
2226
|
+
fromAmino(object) {
|
|
2227
|
+
const message = createBaseQueryBallotsRequest();
|
|
2228
|
+
if (object.proposal_id !== undefined && object.proposal_id !== null) {
|
|
2229
|
+
message.proposalId = BigInt(object.proposal_id);
|
|
2230
|
+
}
|
|
2231
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2232
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
2233
|
+
}
|
|
2234
|
+
return message;
|
|
2235
|
+
},
|
|
2236
|
+
toAmino(message) {
|
|
2237
|
+
const obj = {};
|
|
2238
|
+
obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
|
|
2239
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
2240
|
+
return obj;
|
|
2241
|
+
},
|
|
2242
|
+
fromAminoMsg(object) {
|
|
2243
|
+
return QueryBallotsRequest.fromAmino(object.value);
|
|
2244
|
+
},
|
|
2245
|
+
fromProtoMsg(message) {
|
|
2246
|
+
return QueryBallotsRequest.decode(message.value);
|
|
2247
|
+
},
|
|
2248
|
+
toProto(message) {
|
|
2249
|
+
return QueryBallotsRequest.encode(message).finish();
|
|
2250
|
+
},
|
|
2251
|
+
toProtoMsg(message) {
|
|
2252
|
+
return {
|
|
2253
|
+
typeUrl: "/bze.dao.QueryBallotsRequest",
|
|
2254
|
+
value: QueryBallotsRequest.encode(message).finish()
|
|
2255
|
+
};
|
|
2256
|
+
},
|
|
2257
|
+
registerTypeUrl() {
|
|
2258
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryBallotsRequest.typeUrl)) {
|
|
2259
|
+
return;
|
|
2260
|
+
}
|
|
2261
|
+
PageRequest.registerTypeUrl();
|
|
2262
|
+
}
|
|
2263
|
+
};
|
|
2264
|
+
function createBaseQueryBallotsResponse() {
|
|
2265
|
+
return {
|
|
2266
|
+
ballots: [],
|
|
2267
|
+
pagination: undefined
|
|
2268
|
+
};
|
|
2269
|
+
}
|
|
2270
|
+
/**
|
|
2271
|
+
* QueryBallotsResponse is response type for the Query/Ballots RPC method.
|
|
2272
|
+
* @name QueryBallotsResponse
|
|
2273
|
+
* @package bze.dao
|
|
2274
|
+
* @see proto type: bze.dao.QueryBallotsResponse
|
|
2275
|
+
*/
|
|
2276
|
+
export const QueryBallotsResponse = {
|
|
2277
|
+
typeUrl: "/bze.dao.QueryBallotsResponse",
|
|
2278
|
+
is(o) {
|
|
2279
|
+
return o && (o.$typeUrl === QueryBallotsResponse.typeUrl || Array.isArray(o.ballots) && (!o.ballots.length || Ballot.is(o.ballots[0])));
|
|
2280
|
+
},
|
|
2281
|
+
isSDK(o) {
|
|
2282
|
+
return o && (o.$typeUrl === QueryBallotsResponse.typeUrl || Array.isArray(o.ballots) && (!o.ballots.length || Ballot.isSDK(o.ballots[0])));
|
|
2283
|
+
},
|
|
2284
|
+
isAmino(o) {
|
|
2285
|
+
return o && (o.$typeUrl === QueryBallotsResponse.typeUrl || Array.isArray(o.ballots) && (!o.ballots.length || Ballot.isAmino(o.ballots[0])));
|
|
2286
|
+
},
|
|
2287
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2288
|
+
for (const v of message.ballots) {
|
|
2289
|
+
Ballot.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2290
|
+
}
|
|
2291
|
+
if (message.pagination !== undefined) {
|
|
2292
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2293
|
+
}
|
|
2294
|
+
return writer;
|
|
2295
|
+
},
|
|
2296
|
+
decode(input, length) {
|
|
2297
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2298
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2299
|
+
const message = createBaseQueryBallotsResponse();
|
|
2300
|
+
while (reader.pos < end) {
|
|
2301
|
+
const tag = reader.uint32();
|
|
2302
|
+
switch (tag >>> 3) {
|
|
2303
|
+
case 1:
|
|
2304
|
+
message.ballots.push(Ballot.decode(reader, reader.uint32()));
|
|
2305
|
+
break;
|
|
2306
|
+
case 2:
|
|
2307
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
2308
|
+
break;
|
|
2309
|
+
default:
|
|
2310
|
+
reader.skipType(tag & 7);
|
|
2311
|
+
break;
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
return message;
|
|
2315
|
+
},
|
|
2316
|
+
fromPartial(object) {
|
|
2317
|
+
const message = createBaseQueryBallotsResponse();
|
|
2318
|
+
message.ballots = object.ballots?.map(e => Ballot.fromPartial(e)) || [];
|
|
2319
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
2320
|
+
return message;
|
|
2321
|
+
},
|
|
2322
|
+
fromAmino(object) {
|
|
2323
|
+
const message = createBaseQueryBallotsResponse();
|
|
2324
|
+
message.ballots = object.ballots?.map(e => Ballot.fromAmino(e)) || [];
|
|
2325
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2326
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
2327
|
+
}
|
|
2328
|
+
return message;
|
|
2329
|
+
},
|
|
2330
|
+
toAmino(message) {
|
|
2331
|
+
const obj = {};
|
|
2332
|
+
if (message.ballots) {
|
|
2333
|
+
obj.ballots = message.ballots.map(e => e ? Ballot.toAmino(e) : undefined);
|
|
2334
|
+
}
|
|
2335
|
+
else {
|
|
2336
|
+
obj.ballots = message.ballots;
|
|
2337
|
+
}
|
|
2338
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
2339
|
+
return obj;
|
|
2340
|
+
},
|
|
2341
|
+
fromAminoMsg(object) {
|
|
2342
|
+
return QueryBallotsResponse.fromAmino(object.value);
|
|
2343
|
+
},
|
|
2344
|
+
fromProtoMsg(message) {
|
|
2345
|
+
return QueryBallotsResponse.decode(message.value);
|
|
2346
|
+
},
|
|
2347
|
+
toProto(message) {
|
|
2348
|
+
return QueryBallotsResponse.encode(message).finish();
|
|
2349
|
+
},
|
|
2350
|
+
toProtoMsg(message) {
|
|
2351
|
+
return {
|
|
2352
|
+
typeUrl: "/bze.dao.QueryBallotsResponse",
|
|
2353
|
+
value: QueryBallotsResponse.encode(message).finish()
|
|
2354
|
+
};
|
|
2355
|
+
},
|
|
2356
|
+
registerTypeUrl() {
|
|
2357
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryBallotsResponse.typeUrl)) {
|
|
2358
|
+
return;
|
|
2359
|
+
}
|
|
2360
|
+
Ballot.registerTypeUrl();
|
|
2361
|
+
PageResponse.registerTypeUrl();
|
|
2362
|
+
}
|
|
2363
|
+
};
|