@bze/bzejs 3.2.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -1
- package/dist/bze/bundle.d.ts +5982 -3068
- package/dist/bze/bundle.js +144 -93
- package/dist/bze/burner/burned_coins.d.ts +60 -0
- package/dist/bze/burner/burned_coins.js +92 -1
- package/dist/bze/burner/genesis.d.ts +4 -1
- package/dist/bze/burner/genesis.js +20 -4
- package/dist/bze/burner/params.d.ts +22 -0
- package/dist/bze/burner/params.js +29 -4
- package/dist/bze/dao/events.d.ts +1208 -0
- package/dist/bze/dao/events.js +1840 -0
- package/dist/bze/dao/genesis.d.ts +307 -0
- package/dist/bze/dao/genesis.js +435 -0
- package/dist/bze/dao/module/module.d.ts +64 -0
- package/dist/{cosmos/orm/module/v1alpha1 → bze/dao/module}/module.js +27 -23
- package/dist/bze/dao/params.d.ts +210 -0
- package/dist/bze/dao/params.js +268 -0
- package/dist/bze/dao/query.d.ts +1607 -0
- package/dist/bze/dao/query.js +2368 -0
- package/dist/bze/dao/query.lcd.d.ts +20 -0
- package/dist/bze/dao/query.lcd.js +125 -0
- package/dist/bze/dao/query.rpc.func.d.ts +88 -0
- package/dist/bze/dao/query.rpc.func.js +165 -0
- package/dist/bze/dao/store.d.ts +946 -0
- package/dist/bze/dao/store.js +1546 -0
- package/dist/bze/dao/tx.d.ts +2014 -0
- package/dist/bze/dao/tx.js +2823 -0
- package/dist/bze/dao/tx.registry.d.ts +191 -0
- package/dist/bze/dao/tx.registry.js +283 -0
- package/dist/bze/dao/tx.rpc.func.d.ts +124 -0
- package/dist/bze/dao/tx.rpc.func.js +159 -0
- package/dist/bze/guardian/module/module.d.ts +64 -0
- package/dist/bze/guardian/module/module.js +84 -0
- package/dist/bze/guardian/v1/events.d.ts +632 -0
- package/dist/bze/guardian/v1/events.js +985 -0
- package/dist/bze/guardian/v1/genesis.d.ts +85 -0
- package/dist/bze/guardian/v1/genesis.js +118 -0
- package/dist/bze/guardian/v1/params.d.ts +68 -0
- package/dist/bze/guardian/v1/params.js +91 -0
- package/dist/bze/guardian/v1/query.d.ts +472 -0
- package/dist/bze/guardian/v1/query.js +598 -0
- package/dist/bze/guardian/v1/query.lcd.d.ts +12 -0
- package/dist/bze/guardian/v1/query.lcd.js +34 -0
- package/dist/bze/guardian/v1/query.rpc.func.d.ts +29 -0
- package/dist/bze/guardian/v1/query.rpc.func.js +58 -0
- package/dist/bze/guardian/v1/tx.d.ts +1487 -0
- package/dist/bze/guardian/v1/tx.js +1870 -0
- package/dist/bze/guardian/v1/tx.registry.d.ts +143 -0
- package/dist/bze/guardian/v1/tx.registry.js +211 -0
- package/dist/bze/guardian/v1/tx.rpc.func.d.ts +91 -0
- package/dist/bze/guardian/v1/tx.rpc.func.js +118 -0
- package/dist/bze/lcd.d.ts +4 -3
- package/dist/bze/lcd.js +8 -5
- package/dist/bze/rewards/events.d.ts +79 -0
- package/dist/bze/rewards/events.js +109 -5
- package/dist/bze/tokenfactory/denom_authority.d.ts +13 -0
- package/dist/bze/tokenfactory/denom_authority.js +16 -4
- package/dist/bze/tokenfactory/denom_config.d.ts +92 -0
- package/dist/bze/tokenfactory/denom_config.js +111 -0
- package/dist/bze/tokenfactory/events.d.ts +122 -0
- package/dist/bze/tokenfactory/events.js +207 -1
- package/dist/bze/tokenfactory/genesis.d.ts +10 -0
- package/dist/bze/tokenfactory/genesis.js +15 -1
- package/dist/bze/tokenfactory/query.d.ts +107 -0
- package/dist/bze/tokenfactory/query.js +163 -1
- package/dist/bze/tokenfactory/query.lcd.d.ts +2 -1
- package/dist/bze/tokenfactory/query.lcd.js +12 -0
- package/dist/bze/tokenfactory/query.rpc.func.d.ts +8 -1
- package/dist/bze/tokenfactory/query.rpc.func.js +14 -1
- package/dist/bze/tokenfactory/tx.d.ts +396 -0
- package/dist/bze/tokenfactory/tx.js +542 -1
- package/dist/bze/tokenfactory/tx.registry.d.ts +37 -1
- package/dist/bze/tokenfactory/tx.registry.js +55 -1
- package/dist/bze/tokenfactory/tx.rpc.func.d.ts +25 -1
- package/dist/bze/tokenfactory/tx.rpc.func.js +31 -1
- package/dist/bze/tradebin/events.d.ts +312 -174
- package/dist/bze/tradebin/events.js +509 -321
- package/dist/bze/tradebin/genesis.d.ts +1 -4
- package/dist/bze/tradebin/genesis.js +3 -19
- package/dist/bze/tradebin/query.d.ts +109 -0
- package/dist/bze/tradebin/query.js +170 -1
- package/dist/bze/tradebin/query.lcd.d.ts +2 -1
- package/dist/bze/tradebin/query.lcd.js +13 -0
- package/dist/bze/tradebin/query.rpc.func.d.ts +9 -1
- package/dist/bze/tradebin/query.rpc.func.js +15 -1
- package/dist/bze/tradebin/store.d.ts +78 -77
- package/dist/bze/tradebin/store.js +120 -179
- package/dist/bze/tradebin/tx.d.ts +204 -0
- package/dist/bze/tradebin/tx.js +286 -1
- package/dist/bze/tradebin/tx.registry.d.ts +13 -1
- package/dist/bze/tradebin/tx.registry.js +19 -1
- package/dist/bze/tradebin/tx.rpc.func.d.ts +8 -1
- package/dist/bze/tradebin/tx.rpc.func.js +10 -1
- package/dist/bze/tradebin/v2/params.d.ts +54 -12
- package/dist/bze/tradebin/v2/params.js +61 -36
- package/dist/bze/txfeecollector/events.d.ts +185 -0
- package/dist/bze/txfeecollector/events.js +222 -1
- package/dist/cosmos/app/runtime/v1alpha1/module.d.ts +28 -2
- package/dist/cosmos/app/runtime/v1alpha1/module.js +34 -4
- package/dist/cosmos/auth/module/v1/module.d.ts +13 -0
- package/dist/cosmos/auth/module/v1/module.js +16 -4
- package/dist/cosmos/auth/v1beta1/auth.d.ts +0 -8
- package/dist/cosmos/auth/v1beta1/auth.js +0 -2
- package/dist/cosmos/auth/v1beta1/query.d.ts +0 -116
- package/dist/cosmos/auth/v1beta1/query.js +0 -28
- package/dist/cosmos/auth/v1beta1/query.lcd.js +7 -21
- package/dist/cosmos/auth/v1beta1/query.rpc.func.d.ts +0 -14
- package/dist/cosmos/auth/v1beta1/query.rpc.func.js +0 -14
- package/dist/cosmos/auth/v1beta1/tx.d.ts +0 -16
- package/dist/cosmos/auth/v1beta1/tx.js +0 -4
- package/dist/cosmos/auth/v1beta1/tx.rpc.func.d.ts +0 -2
- package/dist/cosmos/auth/v1beta1/tx.rpc.func.js +0 -2
- package/dist/cosmos/authz/v1beta1/query.lcd.js +2 -6
- package/dist/cosmos/authz/v1beta1/query.rpc.func.d.ts +0 -4
- package/dist/cosmos/authz/v1beta1/query.rpc.func.js +0 -4
- package/dist/cosmos/bank/v1beta1/authz.d.ts +0 -12
- package/dist/cosmos/bank/v1beta1/authz.js +0 -2
- package/dist/cosmos/bank/v1beta1/bank.d.ts +0 -16
- package/dist/cosmos/bank/v1beta1/genesis.d.ts +0 -4
- package/dist/cosmos/bank/v1beta1/query.d.ts +0 -92
- package/dist/cosmos/bank/v1beta1/query.js +0 -20
- package/dist/cosmos/bank/v1beta1/query.lcd.d.ts +2 -2
- package/dist/cosmos/bank/v1beta1/query.lcd.js +29 -30
- package/dist/cosmos/bank/v1beta1/query.rpc.func.d.ts +9 -19
- package/dist/cosmos/bank/v1beta1/query.rpc.func.js +15 -25
- package/dist/cosmos/bank/v1beta1/tx.d.ts +0 -32
- package/dist/cosmos/bank/v1beta1/tx.js +0 -8
- package/dist/cosmos/bank/v1beta1/tx.rpc.func.d.ts +0 -4
- package/dist/cosmos/bank/v1beta1/tx.rpc.func.js +0 -4
- package/dist/cosmos/base/abci/v1beta1/abci.d.ts +0 -12
- package/dist/cosmos/base/query/v1beta1/pagination.d.ts +0 -4
- package/dist/cosmos/base/tendermint/v1beta1/query.d.ts +0 -18
- package/dist/cosmos/base/tendermint/v1beta1/query.lcd.js +1 -3
- package/dist/cosmos/base/tendermint/v1beta1/query.rpc.func.d.ts +0 -2
- package/dist/cosmos/base/tendermint/v1beta1/query.rpc.func.js +0 -2
- package/dist/cosmos/bundle.d.ts +8277 -10119
- package/dist/cosmos/bundle.js +366 -415
- package/dist/cosmos/consensus/v1/tx.d.ts +0 -6
- package/dist/cosmos/consensus/v1/tx.rpc.func.d.ts +0 -2
- package/dist/cosmos/consensus/v1/tx.rpc.func.js +0 -2
- package/dist/cosmos/distribution/v1beta1/query.lcd.js +3 -1
- package/dist/cosmos/distribution/v1beta1/query.rpc.func.d.ts +2 -0
- package/dist/cosmos/distribution/v1beta1/query.rpc.func.js +2 -0
- package/dist/cosmos/distribution/v1beta1/tx.d.ts +0 -60
- package/dist/cosmos/distribution/v1beta1/tx.js +0 -12
- package/dist/cosmos/distribution/v1beta1/tx.rpc.func.d.ts +3 -5
- package/dist/cosmos/distribution/v1beta1/tx.rpc.func.js +3 -5
- package/dist/cosmos/feegrant/v1beta1/query.d.ts +0 -16
- package/dist/cosmos/feegrant/v1beta1/query.js +0 -4
- package/dist/cosmos/feegrant/v1beta1/query.lcd.js +1 -3
- package/dist/cosmos/feegrant/v1beta1/query.rpc.func.d.ts +0 -2
- package/dist/cosmos/feegrant/v1beta1/query.rpc.func.js +0 -2
- package/dist/cosmos/feegrant/v1beta1/tx.d.ts +0 -16
- package/dist/cosmos/feegrant/v1beta1/tx.js +0 -4
- package/dist/cosmos/feegrant/v1beta1/tx.rpc.func.d.ts +0 -2
- package/dist/cosmos/feegrant/v1beta1/tx.rpc.func.js +0 -2
- package/dist/cosmos/gov/v1/genesis.d.ts +0 -8
- package/dist/cosmos/gov/v1/gov.d.ts +0 -48
- package/dist/cosmos/gov/v1/gov.js +0 -2
- package/dist/cosmos/gov/v1/query.d.ts +0 -4
- package/dist/cosmos/gov/v1/tx.d.ts +0 -44
- package/dist/cosmos/gov/v1/tx.js +0 -8
- package/dist/cosmos/gov/v1/tx.rpc.func.d.ts +0 -4
- package/dist/cosmos/gov/v1/tx.rpc.func.js +0 -4
- package/dist/cosmos/gov/v1beta1/gov.d.ts +0 -12
- package/dist/cosmos/gov/v1beta1/gov.js +0 -2
- package/dist/cosmos/gov/v1beta1/tx.d.ts +0 -16
- package/dist/cosmos/gov/v1beta1/tx.js +0 -4
- package/dist/cosmos/gov/v1beta1/tx.rpc.func.d.ts +0 -2
- package/dist/cosmos/gov/v1beta1/tx.rpc.func.js +0 -2
- package/dist/cosmos/lcd.d.ts +0 -3
- package/dist/cosmos/lcd.js +0 -5
- package/dist/cosmos/mint/v1beta1/tx.d.ts +0 -16
- package/dist/cosmos/mint/v1beta1/tx.js +0 -4
- package/dist/cosmos/mint/v1beta1/tx.rpc.func.d.ts +0 -2
- package/dist/cosmos/mint/v1beta1/tx.rpc.func.js +0 -2
- package/dist/cosmos/params/v1beta1/query.d.ts +0 -24
- package/dist/cosmos/params/v1beta1/query.js +0 -6
- package/dist/cosmos/params/v1beta1/query.lcd.js +1 -3
- package/dist/cosmos/params/v1beta1/query.rpc.func.d.ts +0 -2
- package/dist/cosmos/params/v1beta1/query.rpc.func.js +0 -2
- package/dist/cosmos/staking/v1beta1/authz.d.ts +1 -13
- package/dist/cosmos/staking/v1beta1/authz.js +1 -7
- package/dist/cosmos/staking/v1beta1/staking.d.ts +0 -4
- package/dist/cosmos/staking/v1beta1/tx.d.ts +0 -36
- package/dist/cosmos/staking/v1beta1/tx.js +0 -8
- package/dist/cosmos/staking/v1beta1/tx.rpc.func.d.ts +0 -3
- package/dist/cosmos/staking/v1beta1/tx.rpc.func.js +0 -3
- package/dist/cosmos/store/snapshots/v1/snapshot.d.ts +0 -40
- package/dist/cosmos/store/snapshots/v1/snapshot.js +0 -10
- package/dist/cosmos/store/v1beta1/listening.d.ts +0 -8
- package/dist/cosmos/store/v1beta1/listening.js +0 -2
- package/dist/cosmos/tx/v1beta1/service.d.ts +0 -88
- package/dist/cosmos/tx/v1beta1/service.js +0 -20
- package/dist/cosmos/tx/v1beta1/service.lcd.js +1 -3
- package/dist/cosmos/tx/v1beta1/service.rpc.func.d.ts +0 -10
- package/dist/cosmos/tx/v1beta1/service.rpc.func.js +0 -10
- package/dist/cosmos/tx/v1beta1/tx.d.ts +76 -46
- package/dist/cosmos/tx/v1beta1/tx.js +28 -9
- package/dist/cosmos/upgrade/v1beta1/query.d.ts +0 -38
- package/dist/cosmos/upgrade/v1beta1/query.js +0 -8
- package/dist/cosmos/upgrade/v1beta1/query.lcd.js +2 -6
- package/dist/cosmos/upgrade/v1beta1/query.rpc.func.d.ts +0 -4
- package/dist/cosmos/upgrade/v1beta1/query.rpc.func.js +0 -4
- package/dist/cosmos/upgrade/v1beta1/tx.d.ts +0 -32
- package/dist/cosmos/upgrade/v1beta1/tx.js +0 -8
- package/dist/cosmos/upgrade/v1beta1/tx.rpc.func.d.ts +0 -4
- package/dist/cosmos/upgrade/v1beta1/tx.rpc.func.js +0 -4
- package/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +0 -8
- package/dist/cosmos/upgrade/v1beta1/upgrade.js +0 -2
- package/dist/cosmos/vesting/v1beta1/tx.d.ts +0 -32
- package/dist/cosmos/vesting/v1beta1/tx.js +0 -8
- package/dist/cosmos/vesting/v1beta1/tx.rpc.func.d.ts +0 -4
- package/dist/cosmos/vesting/v1beta1/tx.rpc.func.js +0 -4
- package/dist/cosmos/vesting/v1beta1/vesting.d.ts +0 -8
- package/dist/cosmos/vesting/v1beta1/vesting.js +0 -2
- package/dist/cosmos_proto/bundle.d.ts +30 -30
- package/dist/cosmos_proto/bundle.js +2 -2
- package/dist/esm/bze/bundle.js +144 -93
- package/dist/esm/bze/burner/burned_coins.js +91 -0
- package/dist/esm/bze/burner/genesis.js +21 -5
- package/dist/esm/bze/burner/params.js +29 -4
- package/dist/esm/bze/dao/events.js +1837 -0
- package/dist/esm/bze/dao/genesis.js +432 -0
- package/dist/esm/{cosmos/orm/module/v1alpha1 → bze/dao/module}/module.js +27 -23
- package/dist/esm/bze/dao/params.js +265 -0
- package/dist/esm/bze/dao/query.js +2363 -0
- package/dist/esm/bze/dao/query.lcd.js +121 -0
- package/dist/esm/bze/dao/query.rpc.func.js +162 -0
- package/dist/esm/bze/dao/store.js +1533 -0
- package/dist/esm/bze/dao/tx.js +2820 -0
- package/dist/esm/bze/dao/tx.registry.js +280 -0
- package/dist/esm/bze/dao/tx.rpc.func.js +156 -0
- package/dist/esm/bze/guardian/module/module.js +81 -0
- package/dist/esm/bze/guardian/v1/events.js +982 -0
- package/dist/esm/bze/guardian/v1/genesis.js +115 -0
- package/dist/esm/bze/guardian/v1/params.js +88 -0
- package/dist/esm/bze/guardian/v1/query.js +595 -0
- package/dist/esm/bze/guardian/v1/query.lcd.js +30 -0
- package/dist/esm/bze/guardian/v1/query.rpc.func.js +55 -0
- package/dist/esm/bze/guardian/v1/tx.js +1867 -0
- package/dist/esm/bze/guardian/v1/tx.registry.js +208 -0
- package/dist/esm/bze/guardian/v1/tx.rpc.func.js +115 -0
- package/dist/esm/bze/lcd.js +8 -5
- package/dist/esm/bze/rewards/events.js +108 -4
- package/dist/esm/bze/tokenfactory/denom_authority.js +16 -4
- package/dist/esm/bze/tokenfactory/denom_config.js +108 -0
- package/dist/esm/bze/tokenfactory/events.js +206 -0
- package/dist/esm/bze/tokenfactory/genesis.js +15 -1
- package/dist/esm/bze/tokenfactory/query.js +162 -0
- package/dist/esm/bze/tokenfactory/query.lcd.js +12 -0
- package/dist/esm/bze/tokenfactory/query.rpc.func.js +14 -1
- package/dist/esm/bze/tokenfactory/tx.js +541 -0
- package/dist/esm/bze/tokenfactory/tx.registry.js +56 -2
- package/dist/esm/bze/tokenfactory/tx.rpc.func.js +31 -1
- package/dist/esm/bze/tradebin/events.js +508 -320
- package/dist/esm/bze/tradebin/genesis.js +4 -20
- package/dist/esm/bze/tradebin/query.js +169 -0
- package/dist/esm/bze/tradebin/query.lcd.js +13 -0
- package/dist/esm/bze/tradebin/query.rpc.func.js +15 -1
- package/dist/esm/bze/tradebin/store.js +119 -178
- package/dist/esm/bze/tradebin/tx.js +285 -0
- package/dist/esm/bze/tradebin/tx.registry.js +20 -2
- package/dist/esm/bze/tradebin/tx.rpc.func.js +10 -1
- package/dist/esm/bze/tradebin/v2/params.js +61 -36
- package/dist/esm/bze/txfeecollector/events.js +221 -0
- package/dist/esm/cosmos/app/runtime/v1alpha1/module.js +34 -4
- package/dist/esm/cosmos/auth/module/v1/module.js +16 -4
- package/dist/esm/cosmos/auth/v1beta1/auth.js +0 -2
- package/dist/esm/cosmos/auth/v1beta1/query.js +0 -28
- package/dist/esm/cosmos/auth/v1beta1/query.lcd.js +7 -21
- package/dist/esm/cosmos/auth/v1beta1/query.rpc.func.js +0 -14
- package/dist/esm/cosmos/auth/v1beta1/tx.js +0 -4
- package/dist/esm/cosmos/auth/v1beta1/tx.rpc.func.js +0 -2
- package/dist/esm/cosmos/authz/v1beta1/query.lcd.js +2 -6
- package/dist/esm/cosmos/authz/v1beta1/query.rpc.func.js +0 -4
- package/dist/esm/cosmos/bank/v1beta1/authz.js +0 -2
- package/dist/esm/cosmos/bank/v1beta1/query.js +0 -20
- package/dist/esm/cosmos/bank/v1beta1/query.lcd.js +29 -30
- package/dist/esm/cosmos/bank/v1beta1/query.rpc.func.js +15 -25
- package/dist/esm/cosmos/bank/v1beta1/tx.js +0 -8
- package/dist/esm/cosmos/bank/v1beta1/tx.rpc.func.js +0 -4
- package/dist/esm/cosmos/base/tendermint/v1beta1/query.lcd.js +1 -3
- package/dist/esm/cosmos/base/tendermint/v1beta1/query.rpc.func.js +0 -2
- package/dist/esm/cosmos/bundle.js +366 -415
- package/dist/esm/cosmos/consensus/v1/tx.rpc.func.js +0 -2
- package/dist/esm/cosmos/distribution/v1beta1/query.lcd.js +3 -1
- package/dist/esm/cosmos/distribution/v1beta1/query.rpc.func.js +2 -0
- package/dist/esm/cosmos/distribution/v1beta1/tx.js +0 -12
- package/dist/esm/cosmos/distribution/v1beta1/tx.rpc.func.js +3 -5
- package/dist/esm/cosmos/feegrant/v1beta1/query.js +0 -4
- package/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +1 -3
- package/dist/esm/cosmos/feegrant/v1beta1/query.rpc.func.js +0 -2
- package/dist/esm/cosmos/feegrant/v1beta1/tx.js +0 -4
- package/dist/esm/cosmos/feegrant/v1beta1/tx.rpc.func.js +0 -2
- package/dist/esm/cosmos/gov/v1/gov.js +0 -2
- package/dist/esm/cosmos/gov/v1/tx.js +0 -8
- package/dist/esm/cosmos/gov/v1/tx.rpc.func.js +0 -4
- package/dist/esm/cosmos/gov/v1beta1/gov.js +0 -2
- package/dist/esm/cosmos/gov/v1beta1/tx.js +0 -4
- package/dist/esm/cosmos/gov/v1beta1/tx.rpc.func.js +0 -2
- package/dist/esm/cosmos/lcd.js +0 -5
- package/dist/esm/cosmos/mint/v1beta1/tx.js +0 -4
- package/dist/esm/cosmos/mint/v1beta1/tx.rpc.func.js +0 -2
- package/dist/esm/cosmos/params/v1beta1/query.js +0 -6
- package/dist/esm/cosmos/params/v1beta1/query.lcd.js +1 -3
- package/dist/esm/cosmos/params/v1beta1/query.rpc.func.js +0 -2
- package/dist/esm/cosmos/staking/v1beta1/authz.js +1 -7
- package/dist/esm/cosmos/staking/v1beta1/tx.js +0 -8
- package/dist/esm/cosmos/staking/v1beta1/tx.rpc.func.js +0 -3
- package/dist/esm/cosmos/store/snapshots/v1/snapshot.js +0 -10
- package/dist/esm/cosmos/store/v1beta1/listening.js +0 -2
- package/dist/esm/cosmos/tx/v1beta1/service.js +0 -20
- package/dist/esm/cosmos/tx/v1beta1/service.lcd.js +1 -3
- package/dist/esm/cosmos/tx/v1beta1/service.rpc.func.js +0 -10
- package/dist/esm/cosmos/tx/v1beta1/tx.js +29 -10
- package/dist/esm/cosmos/upgrade/v1beta1/query.js +0 -8
- package/dist/esm/cosmos/upgrade/v1beta1/query.lcd.js +2 -6
- package/dist/esm/cosmos/upgrade/v1beta1/query.rpc.func.js +0 -4
- package/dist/esm/cosmos/upgrade/v1beta1/tx.js +0 -8
- package/dist/esm/cosmos/upgrade/v1beta1/tx.rpc.func.js +0 -4
- package/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +0 -2
- package/dist/esm/cosmos/vesting/v1beta1/tx.js +0 -8
- package/dist/esm/cosmos/vesting/v1beta1/tx.rpc.func.js +0 -4
- package/dist/esm/cosmos/vesting/v1beta1/vesting.js +0 -2
- package/dist/esm/cosmos_proto/bundle.js +2 -2
- package/dist/esm/gogoproto/bundle.js +2 -2
- package/dist/esm/google/bundle.js +8 -8
- package/dist/esm/ibc/applications/transfer/v1/tx.js +4 -16
- package/dist/esm/ibc/bundle.js +93 -121
- package/dist/esm/ibc/core/client/v1/tx.js +187 -0
- package/dist/esm/ibc/core/client/v1/tx.registry.js +20 -2
- package/dist/esm/ibc/core/client/v1/tx.rpc.func.js +10 -1
- package/dist/esm/ibc/lcd.js +0 -10
- package/dist/esm/ibc/lightclients/wasm/v1/wasm.js +93 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/ratelimit/bundle.js +35 -0
- package/dist/esm/ratelimit/lcd.js +106 -0
- package/dist/esm/ratelimit/module/v1/module.js +81 -0
- package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/genesis.js +49 -27
- package/dist/esm/ratelimit/v1/params.js +68 -0
- package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/query.js +105 -195
- package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/query.lcd.js +10 -10
- package/dist/esm/ratelimit/v1/query.rpc.func.js +83 -0
- package/dist/esm/{ibc/applications/rate_limiting/v1/rate_limiting.js → ratelimit/v1/ratelimit.js} +29 -73
- package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/tx.js +77 -109
- package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/tx.registry.js +13 -13
- package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/tx.rpc.func.js +9 -9
- package/dist/esm/tendermint/bundle.js +20 -20
- package/dist/gogoproto/bundle.js +2 -2
- package/dist/google/bundle.d.ts +550 -550
- package/dist/google/bundle.js +8 -8
- package/dist/ibc/applications/transfer/v1/tx.d.ts +0 -19
- package/dist/ibc/applications/transfer/v1/tx.js +4 -16
- package/dist/ibc/bundle.d.ts +506 -1065
- package/dist/ibc/bundle.js +93 -121
- package/dist/ibc/core/client/v1/tx.d.ts +155 -0
- package/dist/ibc/core/client/v1/tx.js +188 -1
- package/dist/ibc/core/client/v1/tx.registry.d.ts +13 -1
- package/dist/ibc/core/client/v1/tx.registry.js +19 -1
- package/dist/ibc/core/client/v1/tx.rpc.func.d.ts +8 -1
- package/dist/ibc/core/client/v1/tx.rpc.func.js +10 -1
- package/dist/ibc/lcd.d.ts +0 -6
- package/dist/ibc/lcd.js +0 -10
- package/dist/ibc/lightclients/wasm/v1/wasm.d.ts +75 -0
- package/dist/ibc/lightclients/wasm/v1/wasm.js +94 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/ratelimit/bundle.d.ts +625 -0
- package/dist/ratelimit/bundle.js +71 -0
- package/dist/ratelimit/lcd.d.ts +63 -0
- package/dist/ratelimit/lcd.js +143 -0
- package/dist/ratelimit/module/v1/module.d.ts +64 -0
- package/dist/ratelimit/module/v1/module.js +84 -0
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/genesis.d.ts +19 -14
- package/dist/ratelimit/v1/genesis.js +182 -0
- package/dist/ratelimit/v1/params.d.ts +55 -0
- package/dist/ratelimit/v1/params.js +71 -0
- package/dist/ratelimit/v1/query.d.ts +656 -0
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/query.js +142 -232
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/query.lcd.d.ts +3 -3
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/query.lcd.js +10 -10
- package/dist/ratelimit/v1/query.rpc.func.d.ts +45 -0
- package/dist/ratelimit/v1/query.rpc.func.js +86 -0
- package/dist/{ibc/applications/rate_limiting/v1/rate_limiting.d.ts → ratelimit/v1/ratelimit.d.ts} +62 -82
- package/dist/{ibc/applications/rate_limiting/v1/rate_limiting.js → ratelimit/v1/ratelimit.js} +29 -73
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/tx.d.ts +97 -121
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/tx.js +77 -109
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/tx.registry.d.ts +1 -1
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/tx.registry.js +13 -13
- package/dist/ratelimit/v1/tx.rpc.func.d.ts +29 -0
- package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/tx.rpc.func.js +9 -9
- package/dist/tendermint/bundle.d.ts +1120 -1120
- package/dist/tendermint/bundle.js +20 -20
- package/package.json +10 -5
- package/dist/cosmos/group/module/v1/module.d.ts +0 -80
- package/dist/cosmos/group/module/v1/module.js +0 -104
- package/dist/cosmos/group/v1/events.d.ts +0 -771
- package/dist/cosmos/group/v1/events.js +0 -1031
- package/dist/cosmos/group/v1/genesis.d.ts +0 -136
- package/dist/cosmos/group/v1/genesis.js +0 -201
- package/dist/cosmos/group/v1/query.d.ts +0 -2001
- package/dist/cosmos/group/v1/query.js +0 -2787
- package/dist/cosmos/group/v1/query.lcd.d.ts +0 -22
- package/dist/cosmos/group/v1/query.lcd.js +0 -158
- package/dist/cosmos/group/v1/query.rpc.func.d.ts +0 -105
- package/dist/cosmos/group/v1/query.rpc.func.js +0 -194
- package/dist/cosmos/group/v1/tx.d.ts +0 -2124
- package/dist/cosmos/group/v1/tx.js +0 -2821
- package/dist/cosmos/group/v1/tx.registry.d.ts +0 -179
- package/dist/cosmos/group/v1/tx.registry.js +0 -265
- package/dist/cosmos/group/v1/tx.rpc.func.d.ts +0 -99
- package/dist/cosmos/group/v1/tx.rpc.func.js +0 -132
- package/dist/cosmos/group/v1/types.d.ts +0 -1297
- package/dist/cosmos/group/v1/types.js +0 -1677
- package/dist/cosmos/orm/module/v1alpha1/module.d.ts +0 -65
- package/dist/cosmos/orm/query/v1alpha1/query.d.ts +0 -622
- package/dist/cosmos/orm/query/v1alpha1/query.js +0 -835
- package/dist/cosmos/orm/query/v1alpha1/query.rpc.func.d.ts +0 -15
- package/dist/cosmos/orm/query/v1alpha1/query.rpc.func.js +0 -32
- package/dist/esm/cosmos/group/module/v1/module.js +0 -101
- package/dist/esm/cosmos/group/v1/events.js +0 -1028
- package/dist/esm/cosmos/group/v1/genesis.js +0 -198
- package/dist/esm/cosmos/group/v1/query.js +0 -2784
- package/dist/esm/cosmos/group/v1/query.lcd.js +0 -154
- package/dist/esm/cosmos/group/v1/query.rpc.func.js +0 -191
- package/dist/esm/cosmos/group/v1/tx.js +0 -2816
- package/dist/esm/cosmos/group/v1/tx.registry.js +0 -262
- package/dist/esm/cosmos/group/v1/tx.rpc.func.js +0 -129
- package/dist/esm/cosmos/group/v1/types.js +0 -1668
- package/dist/esm/cosmos/orm/query/v1alpha1/query.js +0 -832
- package/dist/esm/cosmos/orm/query/v1alpha1/query.rpc.func.js +0 -29
- package/dist/esm/ibc/applications/packet_forward_middleware/v1/genesis.js +0 -409
- package/dist/esm/ibc/applications/rate_limiting/v1/query.rpc.func.js +0 -83
- package/dist/ibc/applications/packet_forward_middleware/v1/genesis.d.ts +0 -225
- package/dist/ibc/applications/packet_forward_middleware/v1/genesis.js +0 -412
- package/dist/ibc/applications/rate_limiting/v1/genesis.js +0 -160
- package/dist/ibc/applications/rate_limiting/v1/query.d.ts +0 -704
- package/dist/ibc/applications/rate_limiting/v1/query.rpc.func.d.ts +0 -45
- package/dist/ibc/applications/rate_limiting/v1/query.rpc.func.js +0 -86
- package/dist/ibc/applications/rate_limiting/v1/tx.rpc.func.d.ts +0 -29
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LCDClient } from "@cosmology/lcd";
|
|
2
|
+
import { QueryParamsRequest, QueryParamsResponseSDKType, QueryDaoRequest, QueryDaoResponseSDKType, QueryDaoByAddressRequest, QueryDaoByAddressResponseSDKType, QueryDaoControllerRequest, QueryDaoControllerResponseSDKType, QueryProposalRequest, QueryProposalResponseSDKType, QueryBallotRequest, QueryBallotResponseSDKType, QueryVotingPowerRequest, QueryVotingPowerResponseSDKType, QueryJoinRecordRequest, QueryJoinRecordResponseSDKType, QueryDaosRequest, QueryDaosResponseSDKType, QueryDaosByAdminRequest, QueryDaosByAdminResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryBallotsRequest, QueryBallotsResponseSDKType } from "./query";
|
|
3
|
+
export declare class LCDQueryClient {
|
|
4
|
+
req: LCDClient;
|
|
5
|
+
constructor({ requestClient }: {
|
|
6
|
+
requestClient: LCDClient;
|
|
7
|
+
});
|
|
8
|
+
params(_params?: QueryParamsRequest): Promise<QueryParamsResponseSDKType>;
|
|
9
|
+
dao(params: QueryDaoRequest): Promise<QueryDaoResponseSDKType>;
|
|
10
|
+
daoByAddress(params: QueryDaoByAddressRequest): Promise<QueryDaoByAddressResponseSDKType>;
|
|
11
|
+
daoController(params: QueryDaoControllerRequest): Promise<QueryDaoControllerResponseSDKType>;
|
|
12
|
+
proposal(params: QueryProposalRequest): Promise<QueryProposalResponseSDKType>;
|
|
13
|
+
ballot(params: QueryBallotRequest): Promise<QueryBallotResponseSDKType>;
|
|
14
|
+
votingPower(params: QueryVotingPowerRequest): Promise<QueryVotingPowerResponseSDKType>;
|
|
15
|
+
joinRecord(params: QueryJoinRecordRequest): Promise<QueryJoinRecordResponseSDKType>;
|
|
16
|
+
daos(params?: QueryDaosRequest): Promise<QueryDaosResponseSDKType>;
|
|
17
|
+
daosByAdmin(params: QueryDaosByAdminRequest): Promise<QueryDaosByAdminResponseSDKType>;
|
|
18
|
+
proposals(params: QueryProposalsRequest): Promise<QueryProposalsResponseSDKType>;
|
|
19
|
+
ballots(params: QueryBallotsRequest): Promise<QueryBallotsResponseSDKType>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LCDQueryClient = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const helpers_1 = require("../../helpers");
|
|
6
|
+
class LCDQueryClient {
|
|
7
|
+
req;
|
|
8
|
+
constructor({ requestClient }) {
|
|
9
|
+
this.req = requestClient;
|
|
10
|
+
this.params = this.params.bind(this);
|
|
11
|
+
this.dao = this.dao.bind(this);
|
|
12
|
+
this.daoByAddress = this.daoByAddress.bind(this);
|
|
13
|
+
this.daoController = this.daoController.bind(this);
|
|
14
|
+
this.proposal = this.proposal.bind(this);
|
|
15
|
+
this.ballot = this.ballot.bind(this);
|
|
16
|
+
this.votingPower = this.votingPower.bind(this);
|
|
17
|
+
this.joinRecord = this.joinRecord.bind(this);
|
|
18
|
+
this.daos = this.daos.bind(this);
|
|
19
|
+
this.daosByAdmin = this.daosByAdmin.bind(this);
|
|
20
|
+
this.proposals = this.proposals.bind(this);
|
|
21
|
+
this.ballots = this.ballots.bind(this);
|
|
22
|
+
}
|
|
23
|
+
/* Params queries the parameters of the module. */
|
|
24
|
+
async params(_params = {}) {
|
|
25
|
+
const endpoint = `bze/dao/params`;
|
|
26
|
+
return await this.req.get(endpoint);
|
|
27
|
+
}
|
|
28
|
+
/* Dao returns a DAO by its id. */
|
|
29
|
+
async dao(params) {
|
|
30
|
+
const endpoint = `bze/dao/dao/${params.id}`;
|
|
31
|
+
return await this.req.get(endpoint);
|
|
32
|
+
}
|
|
33
|
+
/* DaoByAddress returns the DAO that owns the given account. */
|
|
34
|
+
async daoByAddress(params) {
|
|
35
|
+
const endpoint = `bze/dao/dao_by_address/${params.address}`;
|
|
36
|
+
return await this.req.get(endpoint);
|
|
37
|
+
}
|
|
38
|
+
/* DaoController follows a DAO's admin chain to who ultimately controls it. */
|
|
39
|
+
async daoController(params) {
|
|
40
|
+
const endpoint = `bze/dao/dao_controller/${params.daoId}`;
|
|
41
|
+
return await this.req.get(endpoint);
|
|
42
|
+
}
|
|
43
|
+
/* Proposal returns a proposal with its live status at the current block. */
|
|
44
|
+
async proposal(params) {
|
|
45
|
+
const endpoint = `bze/dao/proposal/${params.id}`;
|
|
46
|
+
return await this.req.get(endpoint);
|
|
47
|
+
}
|
|
48
|
+
/* Ballot returns a voter's ballot on a proposal. */
|
|
49
|
+
async ballot(params) {
|
|
50
|
+
const endpoint = `bze/dao/ballot/${params.proposalId}/${params.voter}`;
|
|
51
|
+
return await this.req.get(endpoint);
|
|
52
|
+
}
|
|
53
|
+
/* VotingPower returns an address's weight in a DAO now and on each of the
|
|
54
|
+
DAO's proposals in voting. */
|
|
55
|
+
async votingPower(params) {
|
|
56
|
+
const endpoint = `bze/dao/voting_power/${params.daoId}/${params.address}`;
|
|
57
|
+
return await this.req.get(endpoint);
|
|
58
|
+
}
|
|
59
|
+
/* JoinRecord returns the height an address joined a pinned source at. The
|
|
60
|
+
source is in the query string: it contains a slash. */
|
|
61
|
+
async joinRecord(params) {
|
|
62
|
+
const options = {
|
|
63
|
+
params: {}
|
|
64
|
+
};
|
|
65
|
+
if (typeof params?.source !== "undefined") {
|
|
66
|
+
options.params.source = params.source;
|
|
67
|
+
}
|
|
68
|
+
if (typeof params?.address !== "undefined") {
|
|
69
|
+
options.params.address = params.address;
|
|
70
|
+
}
|
|
71
|
+
const endpoint = `bze/dao/join_record`;
|
|
72
|
+
return await this.req.get(endpoint, options);
|
|
73
|
+
}
|
|
74
|
+
/* Daos lists every DAO, by id. */
|
|
75
|
+
async daos(params = {
|
|
76
|
+
pagination: undefined
|
|
77
|
+
}) {
|
|
78
|
+
const options = {
|
|
79
|
+
params: {}
|
|
80
|
+
};
|
|
81
|
+
if (typeof params?.pagination !== "undefined") {
|
|
82
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
83
|
+
}
|
|
84
|
+
const endpoint = `bze/dao/daos`;
|
|
85
|
+
return await this.req.get(endpoint, options);
|
|
86
|
+
}
|
|
87
|
+
/* DaosByAdmin lists the DAOs an address is the admin of, by id. */
|
|
88
|
+
async daosByAdmin(params) {
|
|
89
|
+
const options = {
|
|
90
|
+
params: {}
|
|
91
|
+
};
|
|
92
|
+
if (typeof params?.pagination !== "undefined") {
|
|
93
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
94
|
+
}
|
|
95
|
+
const endpoint = `bze/dao/daos_by_admin/${params.admin}`;
|
|
96
|
+
return await this.req.get(endpoint, options);
|
|
97
|
+
}
|
|
98
|
+
/* Proposals lists a DAO's proposals, by id, optionally only those with one
|
|
99
|
+
of the given statuses. Cleaned-up proposals are not listed. */
|
|
100
|
+
async proposals(params) {
|
|
101
|
+
const options = {
|
|
102
|
+
params: {}
|
|
103
|
+
};
|
|
104
|
+
if (typeof params?.statuses !== "undefined") {
|
|
105
|
+
options.params.statuses = params.statuses;
|
|
106
|
+
}
|
|
107
|
+
if (typeof params?.pagination !== "undefined") {
|
|
108
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
109
|
+
}
|
|
110
|
+
const endpoint = `bze/dao/proposals/${params.daoId}`;
|
|
111
|
+
return await this.req.get(endpoint, options);
|
|
112
|
+
}
|
|
113
|
+
/* Ballots lists the ballots of a proposal, by voter address bytes. */
|
|
114
|
+
async ballots(params) {
|
|
115
|
+
const options = {
|
|
116
|
+
params: {}
|
|
117
|
+
};
|
|
118
|
+
if (typeof params?.pagination !== "undefined") {
|
|
119
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
120
|
+
}
|
|
121
|
+
const endpoint = `bze/dao/ballots/${params.proposalId}`;
|
|
122
|
+
return await this.req.get(endpoint, options);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.LCDQueryClient = LCDQueryClient;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { QueryParamsRequest, QueryParamsResponse, QueryDaoRequest, QueryDaoResponse, QueryDaoByAddressRequest, QueryDaoByAddressResponse, QueryDaoControllerRequest, QueryDaoControllerResponse, QueryProposalRequest, QueryProposalResponse, QueryBallotRequest, QueryBallotResponse, QueryVotingPowerRequest, QueryVotingPowerResponse, QueryJoinRecordRequest, QueryJoinRecordResponse, QueryDaosRequest, QueryDaosResponse, QueryDaosByAdminRequest, QueryDaosByAdminResponse, QueryProposalsRequest, QueryProposalsResponse, QueryBallotsRequest, QueryBallotsResponse } from "./query";
|
|
2
|
+
/**
|
|
3
|
+
* Params queries the parameters of the module.
|
|
4
|
+
* @name getParams
|
|
5
|
+
* @package bze.dao
|
|
6
|
+
* @see proto service: bze.dao.Params
|
|
7
|
+
*/
|
|
8
|
+
export declare const getParams: (client: import("../../helper-func-types").EndpointOrRpc, request: QueryParamsRequest) => Promise<QueryParamsResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Dao returns a DAO by its id.
|
|
11
|
+
* @name getDao
|
|
12
|
+
* @package bze.dao
|
|
13
|
+
* @see proto service: bze.dao.Dao
|
|
14
|
+
*/
|
|
15
|
+
export declare const getDao: (client: import("../../helper-func-types").EndpointOrRpc, request: QueryDaoRequest) => Promise<QueryDaoResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* DaoByAddress returns the DAO that owns the given account.
|
|
18
|
+
* @name getDaoByAddress
|
|
19
|
+
* @package bze.dao
|
|
20
|
+
* @see proto service: bze.dao.DaoByAddress
|
|
21
|
+
*/
|
|
22
|
+
export declare const getDaoByAddress: (client: import("../../helper-func-types").EndpointOrRpc, request: QueryDaoByAddressRequest) => Promise<QueryDaoByAddressResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* DaoController follows a DAO's admin chain to who ultimately controls it.
|
|
25
|
+
* @name getDaoController
|
|
26
|
+
* @package bze.dao
|
|
27
|
+
* @see proto service: bze.dao.DaoController
|
|
28
|
+
*/
|
|
29
|
+
export declare const getDaoController: (client: import("../../helper-func-types").EndpointOrRpc, request: QueryDaoControllerRequest) => Promise<QueryDaoControllerResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Proposal returns a proposal with its live status at the current block.
|
|
32
|
+
* @name getProposal
|
|
33
|
+
* @package bze.dao
|
|
34
|
+
* @see proto service: bze.dao.Proposal
|
|
35
|
+
*/
|
|
36
|
+
export declare const getProposal: (client: import("../../helper-func-types").EndpointOrRpc, request: QueryProposalRequest) => Promise<QueryProposalResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Ballot returns a voter's ballot on a proposal.
|
|
39
|
+
* @name getBallot
|
|
40
|
+
* @package bze.dao
|
|
41
|
+
* @see proto service: bze.dao.Ballot
|
|
42
|
+
*/
|
|
43
|
+
export declare const getBallot: (client: import("../../helper-func-types").EndpointOrRpc, request: QueryBallotRequest) => Promise<QueryBallotResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* VotingPower returns an address's weight in a DAO now and on each of the
|
|
46
|
+
* DAO's proposals in voting.
|
|
47
|
+
* @name getVotingPower
|
|
48
|
+
* @package bze.dao
|
|
49
|
+
* @see proto service: bze.dao.VotingPower
|
|
50
|
+
*/
|
|
51
|
+
export declare const getVotingPower: (client: import("../../helper-func-types").EndpointOrRpc, request: QueryVotingPowerRequest) => Promise<QueryVotingPowerResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* JoinRecord returns the height an address joined a pinned source at. The
|
|
54
|
+
* source is in the query string: it contains a slash.
|
|
55
|
+
* @name getJoinRecord
|
|
56
|
+
* @package bze.dao
|
|
57
|
+
* @see proto service: bze.dao.JoinRecord
|
|
58
|
+
*/
|
|
59
|
+
export declare const getJoinRecord: (client: import("../../helper-func-types").EndpointOrRpc, request: QueryJoinRecordRequest) => Promise<QueryJoinRecordResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Daos lists every DAO, by id.
|
|
62
|
+
* @name getDaos
|
|
63
|
+
* @package bze.dao
|
|
64
|
+
* @see proto service: bze.dao.Daos
|
|
65
|
+
*/
|
|
66
|
+
export declare const getDaos: (client: import("../../helper-func-types").EndpointOrRpc, request: QueryDaosRequest) => Promise<QueryDaosResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* DaosByAdmin lists the DAOs an address is the admin of, by id.
|
|
69
|
+
* @name getDaosByAdmin
|
|
70
|
+
* @package bze.dao
|
|
71
|
+
* @see proto service: bze.dao.DaosByAdmin
|
|
72
|
+
*/
|
|
73
|
+
export declare const getDaosByAdmin: (client: import("../../helper-func-types").EndpointOrRpc, request: QueryDaosByAdminRequest) => Promise<QueryDaosByAdminResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* Proposals lists a DAO's proposals, by id, optionally only those with one
|
|
76
|
+
* of the given statuses. Cleaned-up proposals are not listed.
|
|
77
|
+
* @name getProposals
|
|
78
|
+
* @package bze.dao
|
|
79
|
+
* @see proto service: bze.dao.Proposals
|
|
80
|
+
*/
|
|
81
|
+
export declare const getProposals: (client: import("../../helper-func-types").EndpointOrRpc, request: QueryProposalsRequest) => Promise<QueryProposalsResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* Ballots lists the ballots of a proposal, by voter address bytes.
|
|
84
|
+
* @name getBallots
|
|
85
|
+
* @package bze.dao
|
|
86
|
+
* @see proto service: bze.dao.Ballots
|
|
87
|
+
*/
|
|
88
|
+
export declare const getBallots: (client: import("../../helper-func-types").EndpointOrRpc, request: QueryBallotsRequest) => Promise<QueryBallotsResponse>;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getBallots = exports.getProposals = exports.getDaosByAdmin = exports.getDaos = exports.getJoinRecord = exports.getVotingPower = exports.getBallot = exports.getProposal = exports.getDaoController = exports.getDaoByAddress = exports.getDao = exports.getParams = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const helper_func_types_1 = require("../../helper-func-types");
|
|
6
|
+
const query_1 = require("./query");
|
|
7
|
+
/**
|
|
8
|
+
* Params queries the parameters of the module.
|
|
9
|
+
* @name getParams
|
|
10
|
+
* @package bze.dao
|
|
11
|
+
* @see proto service: bze.dao.Params
|
|
12
|
+
*/
|
|
13
|
+
exports.getParams = (0, helper_func_types_1.buildQuery)({
|
|
14
|
+
encode: query_1.QueryParamsRequest.encode,
|
|
15
|
+
decode: query_1.QueryParamsResponse.decode,
|
|
16
|
+
service: "bze.dao.Query",
|
|
17
|
+
method: "Params",
|
|
18
|
+
deps: [query_1.QueryParamsRequest, query_1.QueryParamsResponse]
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Dao returns a DAO by its id.
|
|
22
|
+
* @name getDao
|
|
23
|
+
* @package bze.dao
|
|
24
|
+
* @see proto service: bze.dao.Dao
|
|
25
|
+
*/
|
|
26
|
+
exports.getDao = (0, helper_func_types_1.buildQuery)({
|
|
27
|
+
encode: query_1.QueryDaoRequest.encode,
|
|
28
|
+
decode: query_1.QueryDaoResponse.decode,
|
|
29
|
+
service: "bze.dao.Query",
|
|
30
|
+
method: "Dao",
|
|
31
|
+
deps: [query_1.QueryDaoRequest, query_1.QueryDaoResponse]
|
|
32
|
+
});
|
|
33
|
+
/**
|
|
34
|
+
* DaoByAddress returns the DAO that owns the given account.
|
|
35
|
+
* @name getDaoByAddress
|
|
36
|
+
* @package bze.dao
|
|
37
|
+
* @see proto service: bze.dao.DaoByAddress
|
|
38
|
+
*/
|
|
39
|
+
exports.getDaoByAddress = (0, helper_func_types_1.buildQuery)({
|
|
40
|
+
encode: query_1.QueryDaoByAddressRequest.encode,
|
|
41
|
+
decode: query_1.QueryDaoByAddressResponse.decode,
|
|
42
|
+
service: "bze.dao.Query",
|
|
43
|
+
method: "DaoByAddress",
|
|
44
|
+
deps: [query_1.QueryDaoByAddressRequest, query_1.QueryDaoByAddressResponse]
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* DaoController follows a DAO's admin chain to who ultimately controls it.
|
|
48
|
+
* @name getDaoController
|
|
49
|
+
* @package bze.dao
|
|
50
|
+
* @see proto service: bze.dao.DaoController
|
|
51
|
+
*/
|
|
52
|
+
exports.getDaoController = (0, helper_func_types_1.buildQuery)({
|
|
53
|
+
encode: query_1.QueryDaoControllerRequest.encode,
|
|
54
|
+
decode: query_1.QueryDaoControllerResponse.decode,
|
|
55
|
+
service: "bze.dao.Query",
|
|
56
|
+
method: "DaoController",
|
|
57
|
+
deps: [query_1.QueryDaoControllerRequest, query_1.QueryDaoControllerResponse]
|
|
58
|
+
});
|
|
59
|
+
/**
|
|
60
|
+
* Proposal returns a proposal with its live status at the current block.
|
|
61
|
+
* @name getProposal
|
|
62
|
+
* @package bze.dao
|
|
63
|
+
* @see proto service: bze.dao.Proposal
|
|
64
|
+
*/
|
|
65
|
+
exports.getProposal = (0, helper_func_types_1.buildQuery)({
|
|
66
|
+
encode: query_1.QueryProposalRequest.encode,
|
|
67
|
+
decode: query_1.QueryProposalResponse.decode,
|
|
68
|
+
service: "bze.dao.Query",
|
|
69
|
+
method: "Proposal",
|
|
70
|
+
deps: [query_1.QueryProposalRequest, query_1.QueryProposalResponse]
|
|
71
|
+
});
|
|
72
|
+
/**
|
|
73
|
+
* Ballot returns a voter's ballot on a proposal.
|
|
74
|
+
* @name getBallot
|
|
75
|
+
* @package bze.dao
|
|
76
|
+
* @see proto service: bze.dao.Ballot
|
|
77
|
+
*/
|
|
78
|
+
exports.getBallot = (0, helper_func_types_1.buildQuery)({
|
|
79
|
+
encode: query_1.QueryBallotRequest.encode,
|
|
80
|
+
decode: query_1.QueryBallotResponse.decode,
|
|
81
|
+
service: "bze.dao.Query",
|
|
82
|
+
method: "Ballot",
|
|
83
|
+
deps: [query_1.QueryBallotRequest, query_1.QueryBallotResponse]
|
|
84
|
+
});
|
|
85
|
+
/**
|
|
86
|
+
* VotingPower returns an address's weight in a DAO now and on each of the
|
|
87
|
+
* DAO's proposals in voting.
|
|
88
|
+
* @name getVotingPower
|
|
89
|
+
* @package bze.dao
|
|
90
|
+
* @see proto service: bze.dao.VotingPower
|
|
91
|
+
*/
|
|
92
|
+
exports.getVotingPower = (0, helper_func_types_1.buildQuery)({
|
|
93
|
+
encode: query_1.QueryVotingPowerRequest.encode,
|
|
94
|
+
decode: query_1.QueryVotingPowerResponse.decode,
|
|
95
|
+
service: "bze.dao.Query",
|
|
96
|
+
method: "VotingPower",
|
|
97
|
+
deps: [query_1.QueryVotingPowerRequest, query_1.QueryVotingPowerResponse]
|
|
98
|
+
});
|
|
99
|
+
/**
|
|
100
|
+
* JoinRecord returns the height an address joined a pinned source at. The
|
|
101
|
+
* source is in the query string: it contains a slash.
|
|
102
|
+
* @name getJoinRecord
|
|
103
|
+
* @package bze.dao
|
|
104
|
+
* @see proto service: bze.dao.JoinRecord
|
|
105
|
+
*/
|
|
106
|
+
exports.getJoinRecord = (0, helper_func_types_1.buildQuery)({
|
|
107
|
+
encode: query_1.QueryJoinRecordRequest.encode,
|
|
108
|
+
decode: query_1.QueryJoinRecordResponse.decode,
|
|
109
|
+
service: "bze.dao.Query",
|
|
110
|
+
method: "JoinRecord",
|
|
111
|
+
deps: [query_1.QueryJoinRecordRequest, query_1.QueryJoinRecordResponse]
|
|
112
|
+
});
|
|
113
|
+
/**
|
|
114
|
+
* Daos lists every DAO, by id.
|
|
115
|
+
* @name getDaos
|
|
116
|
+
* @package bze.dao
|
|
117
|
+
* @see proto service: bze.dao.Daos
|
|
118
|
+
*/
|
|
119
|
+
exports.getDaos = (0, helper_func_types_1.buildQuery)({
|
|
120
|
+
encode: query_1.QueryDaosRequest.encode,
|
|
121
|
+
decode: query_1.QueryDaosResponse.decode,
|
|
122
|
+
service: "bze.dao.Query",
|
|
123
|
+
method: "Daos",
|
|
124
|
+
deps: [query_1.QueryDaosRequest, query_1.QueryDaosResponse]
|
|
125
|
+
});
|
|
126
|
+
/**
|
|
127
|
+
* DaosByAdmin lists the DAOs an address is the admin of, by id.
|
|
128
|
+
* @name getDaosByAdmin
|
|
129
|
+
* @package bze.dao
|
|
130
|
+
* @see proto service: bze.dao.DaosByAdmin
|
|
131
|
+
*/
|
|
132
|
+
exports.getDaosByAdmin = (0, helper_func_types_1.buildQuery)({
|
|
133
|
+
encode: query_1.QueryDaosByAdminRequest.encode,
|
|
134
|
+
decode: query_1.QueryDaosByAdminResponse.decode,
|
|
135
|
+
service: "bze.dao.Query",
|
|
136
|
+
method: "DaosByAdmin",
|
|
137
|
+
deps: [query_1.QueryDaosByAdminRequest, query_1.QueryDaosByAdminResponse]
|
|
138
|
+
});
|
|
139
|
+
/**
|
|
140
|
+
* Proposals lists a DAO's proposals, by id, optionally only those with one
|
|
141
|
+
* of the given statuses. Cleaned-up proposals are not listed.
|
|
142
|
+
* @name getProposals
|
|
143
|
+
* @package bze.dao
|
|
144
|
+
* @see proto service: bze.dao.Proposals
|
|
145
|
+
*/
|
|
146
|
+
exports.getProposals = (0, helper_func_types_1.buildQuery)({
|
|
147
|
+
encode: query_1.QueryProposalsRequest.encode,
|
|
148
|
+
decode: query_1.QueryProposalsResponse.decode,
|
|
149
|
+
service: "bze.dao.Query",
|
|
150
|
+
method: "Proposals",
|
|
151
|
+
deps: [query_1.QueryProposalsRequest, query_1.QueryProposalsResponse]
|
|
152
|
+
});
|
|
153
|
+
/**
|
|
154
|
+
* Ballots lists the ballots of a proposal, by voter address bytes.
|
|
155
|
+
* @name getBallots
|
|
156
|
+
* @package bze.dao
|
|
157
|
+
* @see proto service: bze.dao.Ballots
|
|
158
|
+
*/
|
|
159
|
+
exports.getBallots = (0, helper_func_types_1.buildQuery)({
|
|
160
|
+
encode: query_1.QueryBallotsRequest.encode,
|
|
161
|
+
decode: query_1.QueryBallotsResponse.decode,
|
|
162
|
+
service: "bze.dao.Query",
|
|
163
|
+
method: "Ballots",
|
|
164
|
+
deps: [query_1.QueryBallotsRequest, query_1.QueryBallotsResponse]
|
|
165
|
+
});
|