@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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
3
3
|
import { GlobalDecoderRegistry } from "../../registry";
|
|
4
|
+
import { Decimal } from "@interchainjs/math";
|
|
4
5
|
function createBaseStakingReward() {
|
|
5
6
|
return {
|
|
6
7
|
rewardId: "",
|
|
@@ -1319,3 +1320,685 @@ export const TradingRewardExpirationQueue = {
|
|
|
1319
1320
|
},
|
|
1320
1321
|
registerTypeUrl() { }
|
|
1321
1322
|
};
|
|
1323
|
+
function createBaseDenomReward() {
|
|
1324
|
+
return {
|
|
1325
|
+
stakingDenom: "",
|
|
1326
|
+
lock: 0,
|
|
1327
|
+
minStake: BigInt(0),
|
|
1328
|
+
stakedAmount: ""
|
|
1329
|
+
};
|
|
1330
|
+
}
|
|
1331
|
+
/**
|
|
1332
|
+
* DenomReward is a generic per-denom staking pool. One DenomReward exists per
|
|
1333
|
+
* staking denom (unique chain-wide). lock and min_stake are snapshotted from the
|
|
1334
|
+
* module params at creation time and never change afterwards.
|
|
1335
|
+
* @name DenomReward
|
|
1336
|
+
* @package bze.rewards
|
|
1337
|
+
* @see proto type: bze.rewards.DenomReward
|
|
1338
|
+
*/
|
|
1339
|
+
export const DenomReward = {
|
|
1340
|
+
typeUrl: "/bze.rewards.DenomReward",
|
|
1341
|
+
is(o) {
|
|
1342
|
+
return o && (o.$typeUrl === DenomReward.typeUrl || typeof o.stakingDenom === "string" && typeof o.lock === "number" && typeof o.minStake === "bigint" && typeof o.stakedAmount === "string");
|
|
1343
|
+
},
|
|
1344
|
+
isSDK(o) {
|
|
1345
|
+
return o && (o.$typeUrl === DenomReward.typeUrl || typeof o.staking_denom === "string" && typeof o.lock === "number" && typeof o.min_stake === "bigint" && typeof o.staked_amount === "string");
|
|
1346
|
+
},
|
|
1347
|
+
isAmino(o) {
|
|
1348
|
+
return o && (o.$typeUrl === DenomReward.typeUrl || typeof o.staking_denom === "string" && typeof o.lock === "number" && typeof o.min_stake === "bigint" && typeof o.staked_amount === "string");
|
|
1349
|
+
},
|
|
1350
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1351
|
+
if (message.stakingDenom !== "") {
|
|
1352
|
+
writer.uint32(10).string(message.stakingDenom);
|
|
1353
|
+
}
|
|
1354
|
+
if (message.lock !== 0) {
|
|
1355
|
+
writer.uint32(16).uint32(message.lock);
|
|
1356
|
+
}
|
|
1357
|
+
if (message.minStake !== BigInt(0)) {
|
|
1358
|
+
writer.uint32(24).uint64(message.minStake);
|
|
1359
|
+
}
|
|
1360
|
+
if (message.stakedAmount !== "") {
|
|
1361
|
+
writer.uint32(34).string(message.stakedAmount);
|
|
1362
|
+
}
|
|
1363
|
+
return writer;
|
|
1364
|
+
},
|
|
1365
|
+
decode(input, length) {
|
|
1366
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1367
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1368
|
+
const message = createBaseDenomReward();
|
|
1369
|
+
while (reader.pos < end) {
|
|
1370
|
+
const tag = reader.uint32();
|
|
1371
|
+
switch (tag >>> 3) {
|
|
1372
|
+
case 1:
|
|
1373
|
+
message.stakingDenom = reader.string();
|
|
1374
|
+
break;
|
|
1375
|
+
case 2:
|
|
1376
|
+
message.lock = reader.uint32();
|
|
1377
|
+
break;
|
|
1378
|
+
case 3:
|
|
1379
|
+
message.minStake = reader.uint64();
|
|
1380
|
+
break;
|
|
1381
|
+
case 4:
|
|
1382
|
+
message.stakedAmount = reader.string();
|
|
1383
|
+
break;
|
|
1384
|
+
default:
|
|
1385
|
+
reader.skipType(tag & 7);
|
|
1386
|
+
break;
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
return message;
|
|
1390
|
+
},
|
|
1391
|
+
fromPartial(object) {
|
|
1392
|
+
const message = createBaseDenomReward();
|
|
1393
|
+
message.stakingDenom = object.stakingDenom ?? "";
|
|
1394
|
+
message.lock = object.lock ?? 0;
|
|
1395
|
+
message.minStake = object.minStake !== undefined && object.minStake !== null ? BigInt(object.minStake.toString()) : BigInt(0);
|
|
1396
|
+
message.stakedAmount = object.stakedAmount ?? "";
|
|
1397
|
+
return message;
|
|
1398
|
+
},
|
|
1399
|
+
fromAmino(object) {
|
|
1400
|
+
const message = createBaseDenomReward();
|
|
1401
|
+
if (object.staking_denom !== undefined && object.staking_denom !== null) {
|
|
1402
|
+
message.stakingDenom = object.staking_denom;
|
|
1403
|
+
}
|
|
1404
|
+
if (object.lock !== undefined && object.lock !== null) {
|
|
1405
|
+
message.lock = object.lock;
|
|
1406
|
+
}
|
|
1407
|
+
if (object.min_stake !== undefined && object.min_stake !== null) {
|
|
1408
|
+
message.minStake = BigInt(object.min_stake);
|
|
1409
|
+
}
|
|
1410
|
+
if (object.staked_amount !== undefined && object.staked_amount !== null) {
|
|
1411
|
+
message.stakedAmount = object.staked_amount;
|
|
1412
|
+
}
|
|
1413
|
+
return message;
|
|
1414
|
+
},
|
|
1415
|
+
toAmino(message) {
|
|
1416
|
+
const obj = {};
|
|
1417
|
+
obj.staking_denom = message.stakingDenom === "" ? undefined : message.stakingDenom;
|
|
1418
|
+
obj.lock = message.lock === 0 ? undefined : message.lock;
|
|
1419
|
+
obj.min_stake = message.minStake !== BigInt(0) ? message.minStake?.toString() : undefined;
|
|
1420
|
+
obj.staked_amount = message.stakedAmount === "" ? undefined : message.stakedAmount;
|
|
1421
|
+
return obj;
|
|
1422
|
+
},
|
|
1423
|
+
fromAminoMsg(object) {
|
|
1424
|
+
return DenomReward.fromAmino(object.value);
|
|
1425
|
+
},
|
|
1426
|
+
fromProtoMsg(message) {
|
|
1427
|
+
return DenomReward.decode(message.value);
|
|
1428
|
+
},
|
|
1429
|
+
toProto(message) {
|
|
1430
|
+
return DenomReward.encode(message).finish();
|
|
1431
|
+
},
|
|
1432
|
+
toProtoMsg(message) {
|
|
1433
|
+
return {
|
|
1434
|
+
typeUrl: "/bze.rewards.DenomReward",
|
|
1435
|
+
value: DenomReward.encode(message).finish()
|
|
1436
|
+
};
|
|
1437
|
+
},
|
|
1438
|
+
registerTypeUrl() { }
|
|
1439
|
+
};
|
|
1440
|
+
function createBaseDenomRewardPrize() {
|
|
1441
|
+
return {
|
|
1442
|
+
stakingDenom: "",
|
|
1443
|
+
prizeDenom: "",
|
|
1444
|
+
distributedStake: "",
|
|
1445
|
+
lastDistributionEpoch: BigInt(0)
|
|
1446
|
+
};
|
|
1447
|
+
}
|
|
1448
|
+
/**
|
|
1449
|
+
* DenomRewardPrize is the accumulator for a (staking_denom, prize_denom) pair.
|
|
1450
|
+
* @name DenomRewardPrize
|
|
1451
|
+
* @package bze.rewards
|
|
1452
|
+
* @see proto type: bze.rewards.DenomRewardPrize
|
|
1453
|
+
*/
|
|
1454
|
+
export const DenomRewardPrize = {
|
|
1455
|
+
typeUrl: "/bze.rewards.DenomRewardPrize",
|
|
1456
|
+
is(o) {
|
|
1457
|
+
return o && (o.$typeUrl === DenomRewardPrize.typeUrl || typeof o.stakingDenom === "string" && typeof o.prizeDenom === "string" && typeof o.distributedStake === "string" && typeof o.lastDistributionEpoch === "bigint");
|
|
1458
|
+
},
|
|
1459
|
+
isSDK(o) {
|
|
1460
|
+
return o && (o.$typeUrl === DenomRewardPrize.typeUrl || typeof o.staking_denom === "string" && typeof o.prize_denom === "string" && typeof o.distributed_stake === "string" && typeof o.last_distribution_epoch === "bigint");
|
|
1461
|
+
},
|
|
1462
|
+
isAmino(o) {
|
|
1463
|
+
return o && (o.$typeUrl === DenomRewardPrize.typeUrl || typeof o.staking_denom === "string" && typeof o.prize_denom === "string" && typeof o.distributed_stake === "string" && typeof o.last_distribution_epoch === "bigint");
|
|
1464
|
+
},
|
|
1465
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1466
|
+
if (message.stakingDenom !== "") {
|
|
1467
|
+
writer.uint32(10).string(message.stakingDenom);
|
|
1468
|
+
}
|
|
1469
|
+
if (message.prizeDenom !== "") {
|
|
1470
|
+
writer.uint32(18).string(message.prizeDenom);
|
|
1471
|
+
}
|
|
1472
|
+
if (message.distributedStake !== "") {
|
|
1473
|
+
writer.uint32(26).string(Decimal.fromUserInput(message.distributedStake, 18).atomics);
|
|
1474
|
+
}
|
|
1475
|
+
if (message.lastDistributionEpoch !== BigInt(0)) {
|
|
1476
|
+
writer.uint32(32).int64(message.lastDistributionEpoch);
|
|
1477
|
+
}
|
|
1478
|
+
return writer;
|
|
1479
|
+
},
|
|
1480
|
+
decode(input, length) {
|
|
1481
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1482
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1483
|
+
const message = createBaseDenomRewardPrize();
|
|
1484
|
+
while (reader.pos < end) {
|
|
1485
|
+
const tag = reader.uint32();
|
|
1486
|
+
switch (tag >>> 3) {
|
|
1487
|
+
case 1:
|
|
1488
|
+
message.stakingDenom = reader.string();
|
|
1489
|
+
break;
|
|
1490
|
+
case 2:
|
|
1491
|
+
message.prizeDenom = reader.string();
|
|
1492
|
+
break;
|
|
1493
|
+
case 3:
|
|
1494
|
+
message.distributedStake = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1495
|
+
break;
|
|
1496
|
+
case 4:
|
|
1497
|
+
message.lastDistributionEpoch = reader.int64();
|
|
1498
|
+
break;
|
|
1499
|
+
default:
|
|
1500
|
+
reader.skipType(tag & 7);
|
|
1501
|
+
break;
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
return message;
|
|
1505
|
+
},
|
|
1506
|
+
fromPartial(object) {
|
|
1507
|
+
const message = createBaseDenomRewardPrize();
|
|
1508
|
+
message.stakingDenom = object.stakingDenom ?? "";
|
|
1509
|
+
message.prizeDenom = object.prizeDenom ?? "";
|
|
1510
|
+
message.distributedStake = object.distributedStake ?? "";
|
|
1511
|
+
message.lastDistributionEpoch = object.lastDistributionEpoch !== undefined && object.lastDistributionEpoch !== null ? BigInt(object.lastDistributionEpoch.toString()) : BigInt(0);
|
|
1512
|
+
return message;
|
|
1513
|
+
},
|
|
1514
|
+
fromAmino(object) {
|
|
1515
|
+
const message = createBaseDenomRewardPrize();
|
|
1516
|
+
if (object.staking_denom !== undefined && object.staking_denom !== null) {
|
|
1517
|
+
message.stakingDenom = object.staking_denom;
|
|
1518
|
+
}
|
|
1519
|
+
if (object.prize_denom !== undefined && object.prize_denom !== null) {
|
|
1520
|
+
message.prizeDenom = object.prize_denom;
|
|
1521
|
+
}
|
|
1522
|
+
if (object.distributed_stake !== undefined && object.distributed_stake !== null) {
|
|
1523
|
+
message.distributedStake = object.distributed_stake;
|
|
1524
|
+
}
|
|
1525
|
+
if (object.last_distribution_epoch !== undefined && object.last_distribution_epoch !== null) {
|
|
1526
|
+
message.lastDistributionEpoch = BigInt(object.last_distribution_epoch);
|
|
1527
|
+
}
|
|
1528
|
+
return message;
|
|
1529
|
+
},
|
|
1530
|
+
toAmino(message) {
|
|
1531
|
+
const obj = {};
|
|
1532
|
+
obj.staking_denom = message.stakingDenom === "" ? undefined : message.stakingDenom;
|
|
1533
|
+
obj.prize_denom = message.prizeDenom === "" ? undefined : message.prizeDenom;
|
|
1534
|
+
obj.distributed_stake = message.distributedStake === "" ? undefined : Decimal.fromUserInput(message.distributedStake, 18).atomics;
|
|
1535
|
+
obj.last_distribution_epoch = message.lastDistributionEpoch !== BigInt(0) ? message.lastDistributionEpoch?.toString() : undefined;
|
|
1536
|
+
return obj;
|
|
1537
|
+
},
|
|
1538
|
+
fromAminoMsg(object) {
|
|
1539
|
+
return DenomRewardPrize.fromAmino(object.value);
|
|
1540
|
+
},
|
|
1541
|
+
fromProtoMsg(message) {
|
|
1542
|
+
return DenomRewardPrize.decode(message.value);
|
|
1543
|
+
},
|
|
1544
|
+
toProto(message) {
|
|
1545
|
+
return DenomRewardPrize.encode(message).finish();
|
|
1546
|
+
},
|
|
1547
|
+
toProtoMsg(message) {
|
|
1548
|
+
return {
|
|
1549
|
+
typeUrl: "/bze.rewards.DenomRewardPrize",
|
|
1550
|
+
value: DenomRewardPrize.encode(message).finish()
|
|
1551
|
+
};
|
|
1552
|
+
},
|
|
1553
|
+
registerTypeUrl() { }
|
|
1554
|
+
};
|
|
1555
|
+
function createBaseDenomRewardParticipant() {
|
|
1556
|
+
return {
|
|
1557
|
+
address: "",
|
|
1558
|
+
stakingDenom: "",
|
|
1559
|
+
amount: ""
|
|
1560
|
+
};
|
|
1561
|
+
}
|
|
1562
|
+
/**
|
|
1563
|
+
* DenomRewardParticipant is a staker's position in a DenomReward.
|
|
1564
|
+
* @name DenomRewardParticipant
|
|
1565
|
+
* @package bze.rewards
|
|
1566
|
+
* @see proto type: bze.rewards.DenomRewardParticipant
|
|
1567
|
+
*/
|
|
1568
|
+
export const DenomRewardParticipant = {
|
|
1569
|
+
typeUrl: "/bze.rewards.DenomRewardParticipant",
|
|
1570
|
+
is(o) {
|
|
1571
|
+
return o && (o.$typeUrl === DenomRewardParticipant.typeUrl || typeof o.address === "string" && typeof o.stakingDenom === "string" && typeof o.amount === "string");
|
|
1572
|
+
},
|
|
1573
|
+
isSDK(o) {
|
|
1574
|
+
return o && (o.$typeUrl === DenomRewardParticipant.typeUrl || typeof o.address === "string" && typeof o.staking_denom === "string" && typeof o.amount === "string");
|
|
1575
|
+
},
|
|
1576
|
+
isAmino(o) {
|
|
1577
|
+
return o && (o.$typeUrl === DenomRewardParticipant.typeUrl || typeof o.address === "string" && typeof o.staking_denom === "string" && typeof o.amount === "string");
|
|
1578
|
+
},
|
|
1579
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1580
|
+
if (message.address !== "") {
|
|
1581
|
+
writer.uint32(10).string(message.address);
|
|
1582
|
+
}
|
|
1583
|
+
if (message.stakingDenom !== "") {
|
|
1584
|
+
writer.uint32(18).string(message.stakingDenom);
|
|
1585
|
+
}
|
|
1586
|
+
if (message.amount !== "") {
|
|
1587
|
+
writer.uint32(26).string(message.amount);
|
|
1588
|
+
}
|
|
1589
|
+
return writer;
|
|
1590
|
+
},
|
|
1591
|
+
decode(input, length) {
|
|
1592
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1593
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1594
|
+
const message = createBaseDenomRewardParticipant();
|
|
1595
|
+
while (reader.pos < end) {
|
|
1596
|
+
const tag = reader.uint32();
|
|
1597
|
+
switch (tag >>> 3) {
|
|
1598
|
+
case 1:
|
|
1599
|
+
message.address = reader.string();
|
|
1600
|
+
break;
|
|
1601
|
+
case 2:
|
|
1602
|
+
message.stakingDenom = reader.string();
|
|
1603
|
+
break;
|
|
1604
|
+
case 3:
|
|
1605
|
+
message.amount = reader.string();
|
|
1606
|
+
break;
|
|
1607
|
+
default:
|
|
1608
|
+
reader.skipType(tag & 7);
|
|
1609
|
+
break;
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
return message;
|
|
1613
|
+
},
|
|
1614
|
+
fromPartial(object) {
|
|
1615
|
+
const message = createBaseDenomRewardParticipant();
|
|
1616
|
+
message.address = object.address ?? "";
|
|
1617
|
+
message.stakingDenom = object.stakingDenom ?? "";
|
|
1618
|
+
message.amount = object.amount ?? "";
|
|
1619
|
+
return message;
|
|
1620
|
+
},
|
|
1621
|
+
fromAmino(object) {
|
|
1622
|
+
const message = createBaseDenomRewardParticipant();
|
|
1623
|
+
if (object.address !== undefined && object.address !== null) {
|
|
1624
|
+
message.address = object.address;
|
|
1625
|
+
}
|
|
1626
|
+
if (object.staking_denom !== undefined && object.staking_denom !== null) {
|
|
1627
|
+
message.stakingDenom = object.staking_denom;
|
|
1628
|
+
}
|
|
1629
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
1630
|
+
message.amount = object.amount;
|
|
1631
|
+
}
|
|
1632
|
+
return message;
|
|
1633
|
+
},
|
|
1634
|
+
toAmino(message) {
|
|
1635
|
+
const obj = {};
|
|
1636
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
1637
|
+
obj.staking_denom = message.stakingDenom === "" ? undefined : message.stakingDenom;
|
|
1638
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
1639
|
+
return obj;
|
|
1640
|
+
},
|
|
1641
|
+
fromAminoMsg(object) {
|
|
1642
|
+
return DenomRewardParticipant.fromAmino(object.value);
|
|
1643
|
+
},
|
|
1644
|
+
fromProtoMsg(message) {
|
|
1645
|
+
return DenomRewardParticipant.decode(message.value);
|
|
1646
|
+
},
|
|
1647
|
+
toProto(message) {
|
|
1648
|
+
return DenomRewardParticipant.encode(message).finish();
|
|
1649
|
+
},
|
|
1650
|
+
toProtoMsg(message) {
|
|
1651
|
+
return {
|
|
1652
|
+
typeUrl: "/bze.rewards.DenomRewardParticipant",
|
|
1653
|
+
value: DenomRewardParticipant.encode(message).finish()
|
|
1654
|
+
};
|
|
1655
|
+
},
|
|
1656
|
+
registerTypeUrl() { }
|
|
1657
|
+
};
|
|
1658
|
+
function createBaseDenomRewardParticipantIndex() {
|
|
1659
|
+
return {
|
|
1660
|
+
address: "",
|
|
1661
|
+
stakingDenom: "",
|
|
1662
|
+
prizeDenom: "",
|
|
1663
|
+
index: ""
|
|
1664
|
+
};
|
|
1665
|
+
}
|
|
1666
|
+
/**
|
|
1667
|
+
* DenomRewardParticipantIndex records the accumulator value S seen at the
|
|
1668
|
+
* participant's last settlement for a given prize denom.
|
|
1669
|
+
* @name DenomRewardParticipantIndex
|
|
1670
|
+
* @package bze.rewards
|
|
1671
|
+
* @see proto type: bze.rewards.DenomRewardParticipantIndex
|
|
1672
|
+
*/
|
|
1673
|
+
export const DenomRewardParticipantIndex = {
|
|
1674
|
+
typeUrl: "/bze.rewards.DenomRewardParticipantIndex",
|
|
1675
|
+
is(o) {
|
|
1676
|
+
return o && (o.$typeUrl === DenomRewardParticipantIndex.typeUrl || typeof o.address === "string" && typeof o.stakingDenom === "string" && typeof o.prizeDenom === "string" && typeof o.index === "string");
|
|
1677
|
+
},
|
|
1678
|
+
isSDK(o) {
|
|
1679
|
+
return o && (o.$typeUrl === DenomRewardParticipantIndex.typeUrl || typeof o.address === "string" && typeof o.staking_denom === "string" && typeof o.prize_denom === "string" && typeof o.index === "string");
|
|
1680
|
+
},
|
|
1681
|
+
isAmino(o) {
|
|
1682
|
+
return o && (o.$typeUrl === DenomRewardParticipantIndex.typeUrl || typeof o.address === "string" && typeof o.staking_denom === "string" && typeof o.prize_denom === "string" && typeof o.index === "string");
|
|
1683
|
+
},
|
|
1684
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1685
|
+
if (message.address !== "") {
|
|
1686
|
+
writer.uint32(10).string(message.address);
|
|
1687
|
+
}
|
|
1688
|
+
if (message.stakingDenom !== "") {
|
|
1689
|
+
writer.uint32(18).string(message.stakingDenom);
|
|
1690
|
+
}
|
|
1691
|
+
if (message.prizeDenom !== "") {
|
|
1692
|
+
writer.uint32(26).string(message.prizeDenom);
|
|
1693
|
+
}
|
|
1694
|
+
if (message.index !== "") {
|
|
1695
|
+
writer.uint32(34).string(Decimal.fromUserInput(message.index, 18).atomics);
|
|
1696
|
+
}
|
|
1697
|
+
return writer;
|
|
1698
|
+
},
|
|
1699
|
+
decode(input, length) {
|
|
1700
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1701
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1702
|
+
const message = createBaseDenomRewardParticipantIndex();
|
|
1703
|
+
while (reader.pos < end) {
|
|
1704
|
+
const tag = reader.uint32();
|
|
1705
|
+
switch (tag >>> 3) {
|
|
1706
|
+
case 1:
|
|
1707
|
+
message.address = reader.string();
|
|
1708
|
+
break;
|
|
1709
|
+
case 2:
|
|
1710
|
+
message.stakingDenom = reader.string();
|
|
1711
|
+
break;
|
|
1712
|
+
case 3:
|
|
1713
|
+
message.prizeDenom = reader.string();
|
|
1714
|
+
break;
|
|
1715
|
+
case 4:
|
|
1716
|
+
message.index = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1717
|
+
break;
|
|
1718
|
+
default:
|
|
1719
|
+
reader.skipType(tag & 7);
|
|
1720
|
+
break;
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
return message;
|
|
1724
|
+
},
|
|
1725
|
+
fromPartial(object) {
|
|
1726
|
+
const message = createBaseDenomRewardParticipantIndex();
|
|
1727
|
+
message.address = object.address ?? "";
|
|
1728
|
+
message.stakingDenom = object.stakingDenom ?? "";
|
|
1729
|
+
message.prizeDenom = object.prizeDenom ?? "";
|
|
1730
|
+
message.index = object.index ?? "";
|
|
1731
|
+
return message;
|
|
1732
|
+
},
|
|
1733
|
+
fromAmino(object) {
|
|
1734
|
+
const message = createBaseDenomRewardParticipantIndex();
|
|
1735
|
+
if (object.address !== undefined && object.address !== null) {
|
|
1736
|
+
message.address = object.address;
|
|
1737
|
+
}
|
|
1738
|
+
if (object.staking_denom !== undefined && object.staking_denom !== null) {
|
|
1739
|
+
message.stakingDenom = object.staking_denom;
|
|
1740
|
+
}
|
|
1741
|
+
if (object.prize_denom !== undefined && object.prize_denom !== null) {
|
|
1742
|
+
message.prizeDenom = object.prize_denom;
|
|
1743
|
+
}
|
|
1744
|
+
if (object.index !== undefined && object.index !== null) {
|
|
1745
|
+
message.index = object.index;
|
|
1746
|
+
}
|
|
1747
|
+
return message;
|
|
1748
|
+
},
|
|
1749
|
+
toAmino(message) {
|
|
1750
|
+
const obj = {};
|
|
1751
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
1752
|
+
obj.staking_denom = message.stakingDenom === "" ? undefined : message.stakingDenom;
|
|
1753
|
+
obj.prize_denom = message.prizeDenom === "" ? undefined : message.prizeDenom;
|
|
1754
|
+
obj.index = message.index === "" ? undefined : Decimal.fromUserInput(message.index, 18).atomics;
|
|
1755
|
+
return obj;
|
|
1756
|
+
},
|
|
1757
|
+
fromAminoMsg(object) {
|
|
1758
|
+
return DenomRewardParticipantIndex.fromAmino(object.value);
|
|
1759
|
+
},
|
|
1760
|
+
fromProtoMsg(message) {
|
|
1761
|
+
return DenomRewardParticipantIndex.decode(message.value);
|
|
1762
|
+
},
|
|
1763
|
+
toProto(message) {
|
|
1764
|
+
return DenomRewardParticipantIndex.encode(message).finish();
|
|
1765
|
+
},
|
|
1766
|
+
toProtoMsg(message) {
|
|
1767
|
+
return {
|
|
1768
|
+
typeUrl: "/bze.rewards.DenomRewardParticipantIndex",
|
|
1769
|
+
value: DenomRewardParticipantIndex.encode(message).finish()
|
|
1770
|
+
};
|
|
1771
|
+
},
|
|
1772
|
+
registerTypeUrl() { }
|
|
1773
|
+
};
|
|
1774
|
+
function createBaseDenomRewardSchedule() {
|
|
1775
|
+
return {
|
|
1776
|
+
scheduleId: "",
|
|
1777
|
+
stakingDenom: "",
|
|
1778
|
+
prizeDenom: "",
|
|
1779
|
+
dailyAmount: "",
|
|
1780
|
+
duration: 0,
|
|
1781
|
+
payouts: 0
|
|
1782
|
+
};
|
|
1783
|
+
}
|
|
1784
|
+
/**
|
|
1785
|
+
* DenomRewardSchedule is an SR-style reward campaign attached to a DenomReward.
|
|
1786
|
+
* @name DenomRewardSchedule
|
|
1787
|
+
* @package bze.rewards
|
|
1788
|
+
* @see proto type: bze.rewards.DenomRewardSchedule
|
|
1789
|
+
*/
|
|
1790
|
+
export const DenomRewardSchedule = {
|
|
1791
|
+
typeUrl: "/bze.rewards.DenomRewardSchedule",
|
|
1792
|
+
is(o) {
|
|
1793
|
+
return o && (o.$typeUrl === DenomRewardSchedule.typeUrl || typeof o.scheduleId === "string" && typeof o.stakingDenom === "string" && typeof o.prizeDenom === "string" && typeof o.dailyAmount === "string" && typeof o.duration === "number" && typeof o.payouts === "number");
|
|
1794
|
+
},
|
|
1795
|
+
isSDK(o) {
|
|
1796
|
+
return o && (o.$typeUrl === DenomRewardSchedule.typeUrl || typeof o.schedule_id === "string" && typeof o.staking_denom === "string" && typeof o.prize_denom === "string" && typeof o.daily_amount === "string" && typeof o.duration === "number" && typeof o.payouts === "number");
|
|
1797
|
+
},
|
|
1798
|
+
isAmino(o) {
|
|
1799
|
+
return o && (o.$typeUrl === DenomRewardSchedule.typeUrl || typeof o.schedule_id === "string" && typeof o.staking_denom === "string" && typeof o.prize_denom === "string" && typeof o.daily_amount === "string" && typeof o.duration === "number" && typeof o.payouts === "number");
|
|
1800
|
+
},
|
|
1801
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1802
|
+
if (message.scheduleId !== "") {
|
|
1803
|
+
writer.uint32(10).string(message.scheduleId);
|
|
1804
|
+
}
|
|
1805
|
+
if (message.stakingDenom !== "") {
|
|
1806
|
+
writer.uint32(18).string(message.stakingDenom);
|
|
1807
|
+
}
|
|
1808
|
+
if (message.prizeDenom !== "") {
|
|
1809
|
+
writer.uint32(26).string(message.prizeDenom);
|
|
1810
|
+
}
|
|
1811
|
+
if (message.dailyAmount !== "") {
|
|
1812
|
+
writer.uint32(34).string(message.dailyAmount);
|
|
1813
|
+
}
|
|
1814
|
+
if (message.duration !== 0) {
|
|
1815
|
+
writer.uint32(40).uint32(message.duration);
|
|
1816
|
+
}
|
|
1817
|
+
if (message.payouts !== 0) {
|
|
1818
|
+
writer.uint32(48).uint32(message.payouts);
|
|
1819
|
+
}
|
|
1820
|
+
return writer;
|
|
1821
|
+
},
|
|
1822
|
+
decode(input, length) {
|
|
1823
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1824
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1825
|
+
const message = createBaseDenomRewardSchedule();
|
|
1826
|
+
while (reader.pos < end) {
|
|
1827
|
+
const tag = reader.uint32();
|
|
1828
|
+
switch (tag >>> 3) {
|
|
1829
|
+
case 1:
|
|
1830
|
+
message.scheduleId = reader.string();
|
|
1831
|
+
break;
|
|
1832
|
+
case 2:
|
|
1833
|
+
message.stakingDenom = reader.string();
|
|
1834
|
+
break;
|
|
1835
|
+
case 3:
|
|
1836
|
+
message.prizeDenom = reader.string();
|
|
1837
|
+
break;
|
|
1838
|
+
case 4:
|
|
1839
|
+
message.dailyAmount = reader.string();
|
|
1840
|
+
break;
|
|
1841
|
+
case 5:
|
|
1842
|
+
message.duration = reader.uint32();
|
|
1843
|
+
break;
|
|
1844
|
+
case 6:
|
|
1845
|
+
message.payouts = reader.uint32();
|
|
1846
|
+
break;
|
|
1847
|
+
default:
|
|
1848
|
+
reader.skipType(tag & 7);
|
|
1849
|
+
break;
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
return message;
|
|
1853
|
+
},
|
|
1854
|
+
fromPartial(object) {
|
|
1855
|
+
const message = createBaseDenomRewardSchedule();
|
|
1856
|
+
message.scheduleId = object.scheduleId ?? "";
|
|
1857
|
+
message.stakingDenom = object.stakingDenom ?? "";
|
|
1858
|
+
message.prizeDenom = object.prizeDenom ?? "";
|
|
1859
|
+
message.dailyAmount = object.dailyAmount ?? "";
|
|
1860
|
+
message.duration = object.duration ?? 0;
|
|
1861
|
+
message.payouts = object.payouts ?? 0;
|
|
1862
|
+
return message;
|
|
1863
|
+
},
|
|
1864
|
+
fromAmino(object) {
|
|
1865
|
+
const message = createBaseDenomRewardSchedule();
|
|
1866
|
+
if (object.schedule_id !== undefined && object.schedule_id !== null) {
|
|
1867
|
+
message.scheduleId = object.schedule_id;
|
|
1868
|
+
}
|
|
1869
|
+
if (object.staking_denom !== undefined && object.staking_denom !== null) {
|
|
1870
|
+
message.stakingDenom = object.staking_denom;
|
|
1871
|
+
}
|
|
1872
|
+
if (object.prize_denom !== undefined && object.prize_denom !== null) {
|
|
1873
|
+
message.prizeDenom = object.prize_denom;
|
|
1874
|
+
}
|
|
1875
|
+
if (object.daily_amount !== undefined && object.daily_amount !== null) {
|
|
1876
|
+
message.dailyAmount = object.daily_amount;
|
|
1877
|
+
}
|
|
1878
|
+
if (object.duration !== undefined && object.duration !== null) {
|
|
1879
|
+
message.duration = object.duration;
|
|
1880
|
+
}
|
|
1881
|
+
if (object.payouts !== undefined && object.payouts !== null) {
|
|
1882
|
+
message.payouts = object.payouts;
|
|
1883
|
+
}
|
|
1884
|
+
return message;
|
|
1885
|
+
},
|
|
1886
|
+
toAmino(message) {
|
|
1887
|
+
const obj = {};
|
|
1888
|
+
obj.schedule_id = message.scheduleId === "" ? undefined : message.scheduleId;
|
|
1889
|
+
obj.staking_denom = message.stakingDenom === "" ? undefined : message.stakingDenom;
|
|
1890
|
+
obj.prize_denom = message.prizeDenom === "" ? undefined : message.prizeDenom;
|
|
1891
|
+
obj.daily_amount = message.dailyAmount === "" ? undefined : message.dailyAmount;
|
|
1892
|
+
obj.duration = message.duration === 0 ? undefined : message.duration;
|
|
1893
|
+
obj.payouts = message.payouts === 0 ? undefined : message.payouts;
|
|
1894
|
+
return obj;
|
|
1895
|
+
},
|
|
1896
|
+
fromAminoMsg(object) {
|
|
1897
|
+
return DenomRewardSchedule.fromAmino(object.value);
|
|
1898
|
+
},
|
|
1899
|
+
fromProtoMsg(message) {
|
|
1900
|
+
return DenomRewardSchedule.decode(message.value);
|
|
1901
|
+
},
|
|
1902
|
+
toProto(message) {
|
|
1903
|
+
return DenomRewardSchedule.encode(message).finish();
|
|
1904
|
+
},
|
|
1905
|
+
toProtoMsg(message) {
|
|
1906
|
+
return {
|
|
1907
|
+
typeUrl: "/bze.rewards.DenomRewardSchedule",
|
|
1908
|
+
value: DenomRewardSchedule.encode(message).finish()
|
|
1909
|
+
};
|
|
1910
|
+
},
|
|
1911
|
+
registerTypeUrl() { }
|
|
1912
|
+
};
|
|
1913
|
+
function createBaseDenomRewardsDistributionQueue() {
|
|
1914
|
+
return {
|
|
1915
|
+
pending: false,
|
|
1916
|
+
cursor: ""
|
|
1917
|
+
};
|
|
1918
|
+
}
|
|
1919
|
+
/**
|
|
1920
|
+
* DenomRewardsDistributionQueue mirrors StakingRewardsDistributionQueue for the
|
|
1921
|
+
* daily distribution of denom reward schedules.
|
|
1922
|
+
* @name DenomRewardsDistributionQueue
|
|
1923
|
+
* @package bze.rewards
|
|
1924
|
+
* @see proto type: bze.rewards.DenomRewardsDistributionQueue
|
|
1925
|
+
*/
|
|
1926
|
+
export const DenomRewardsDistributionQueue = {
|
|
1927
|
+
typeUrl: "/bze.rewards.DenomRewardsDistributionQueue",
|
|
1928
|
+
is(o) {
|
|
1929
|
+
return o && (o.$typeUrl === DenomRewardsDistributionQueue.typeUrl || typeof o.pending === "boolean" && typeof o.cursor === "string");
|
|
1930
|
+
},
|
|
1931
|
+
isSDK(o) {
|
|
1932
|
+
return o && (o.$typeUrl === DenomRewardsDistributionQueue.typeUrl || typeof o.pending === "boolean" && typeof o.cursor === "string");
|
|
1933
|
+
},
|
|
1934
|
+
isAmino(o) {
|
|
1935
|
+
return o && (o.$typeUrl === DenomRewardsDistributionQueue.typeUrl || typeof o.pending === "boolean" && typeof o.cursor === "string");
|
|
1936
|
+
},
|
|
1937
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1938
|
+
if (message.pending === true) {
|
|
1939
|
+
writer.uint32(8).bool(message.pending);
|
|
1940
|
+
}
|
|
1941
|
+
if (message.cursor !== "") {
|
|
1942
|
+
writer.uint32(18).string(message.cursor);
|
|
1943
|
+
}
|
|
1944
|
+
return writer;
|
|
1945
|
+
},
|
|
1946
|
+
decode(input, length) {
|
|
1947
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1948
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1949
|
+
const message = createBaseDenomRewardsDistributionQueue();
|
|
1950
|
+
while (reader.pos < end) {
|
|
1951
|
+
const tag = reader.uint32();
|
|
1952
|
+
switch (tag >>> 3) {
|
|
1953
|
+
case 1:
|
|
1954
|
+
message.pending = reader.bool();
|
|
1955
|
+
break;
|
|
1956
|
+
case 2:
|
|
1957
|
+
message.cursor = reader.string();
|
|
1958
|
+
break;
|
|
1959
|
+
default:
|
|
1960
|
+
reader.skipType(tag & 7);
|
|
1961
|
+
break;
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
return message;
|
|
1965
|
+
},
|
|
1966
|
+
fromPartial(object) {
|
|
1967
|
+
const message = createBaseDenomRewardsDistributionQueue();
|
|
1968
|
+
message.pending = object.pending ?? false;
|
|
1969
|
+
message.cursor = object.cursor ?? "";
|
|
1970
|
+
return message;
|
|
1971
|
+
},
|
|
1972
|
+
fromAmino(object) {
|
|
1973
|
+
const message = createBaseDenomRewardsDistributionQueue();
|
|
1974
|
+
if (object.pending !== undefined && object.pending !== null) {
|
|
1975
|
+
message.pending = object.pending;
|
|
1976
|
+
}
|
|
1977
|
+
if (object.cursor !== undefined && object.cursor !== null) {
|
|
1978
|
+
message.cursor = object.cursor;
|
|
1979
|
+
}
|
|
1980
|
+
return message;
|
|
1981
|
+
},
|
|
1982
|
+
toAmino(message) {
|
|
1983
|
+
const obj = {};
|
|
1984
|
+
obj.pending = message.pending === false ? undefined : message.pending;
|
|
1985
|
+
obj.cursor = message.cursor === "" ? undefined : message.cursor;
|
|
1986
|
+
return obj;
|
|
1987
|
+
},
|
|
1988
|
+
fromAminoMsg(object) {
|
|
1989
|
+
return DenomRewardsDistributionQueue.fromAmino(object.value);
|
|
1990
|
+
},
|
|
1991
|
+
fromProtoMsg(message) {
|
|
1992
|
+
return DenomRewardsDistributionQueue.decode(message.value);
|
|
1993
|
+
},
|
|
1994
|
+
toProto(message) {
|
|
1995
|
+
return DenomRewardsDistributionQueue.encode(message).finish();
|
|
1996
|
+
},
|
|
1997
|
+
toProtoMsg(message) {
|
|
1998
|
+
return {
|
|
1999
|
+
typeUrl: "/bze.rewards.DenomRewardsDistributionQueue",
|
|
2000
|
+
value: DenomRewardsDistributionQueue.encode(message).finish()
|
|
2001
|
+
};
|
|
2002
|
+
},
|
|
2003
|
+
registerTypeUrl() { }
|
|
2004
|
+
};
|