VortexDistribution
Calls
createVtxDist
List a vortex distribution
Namespace
Type
disableVtxDist
Disable a distribution
id
- The distribution id
Namespace
Type
payUnsigned
Unsigned distribution of vortex, called by offchain worker
id
- The distribution id current_block
- Current block number
Namespace
Type
redeemTokensFromVault
Redeem tokens from vault
id
- The distribution id vortex_token_amount
- Amount of vortex to redeem
Namespace
Type
registerRewards
Register distribution rewards
id
- The distribution id rewards
- Rewards list
Namespace
Type
setAdmin
Namespace
Type
setAssetPrices
Set asset prices
asset_prices
- List of asset prices id
- The distribution id
Namespace
Type
setVtxDistEras
Set distribution eras
id
- The distribution id start_era
- Start era end_era
- End era
Namespace
Type
startVtxDist
Start distributing vortex
id
- The distribution id
Namespace
Type
triggerVtxDistribution
Trigger distribution
id
- The distribution id
Namespace
Type
Storage
adminAccount
Namespace
Type
assetPrices
Stores asset prices for each vortex distribution
Namespace
Type
nextUnsignedAt
Stores next unsigned tx block number
Namespace
Type
nextVortexId
Namespace
Type
stakeRewardsPoints
Stores stake and roles reward points for each vortex distribution
Namespace
Type
totalVortex
Stores total vortex amount for each distribution
Namespace
Type
vtxDistEras
Stores start and end eras of each vortex distribution
Namespace
Type
vtxDistOrderbook
Stores order books for each vortex distribution
Namespace
Type
vtxDistPayoutPivot
Stores payout pivot block for each vortex distribution
Namespace
Type
vtxDistStatuses
Stores status of each vortex distribution
Namespace
Type
Events
AdminAccountChanged
Admin Account changed
Namespace
Type
RewardRegistered
Rewards registered
Namespace
Type
SetAssetPrices
Set asset prices
Namespace
Type
SetVtxDistEras
Set distribution eras
Namespace
Type
TriggerVtxDistribution
Trigger distribution calculation
Namespace
Type
VtxDistCreated
Distribution created
Namespace
Type
VtxDistDisabled
Distribution disabled
Namespace
Type
VtxDistDone
Distribution done
Namespace
Type
VtxDistPaidOut
Distribution paid out
Namespace
Type
VtxDistStarted
Distribution started
Namespace
Type
Errors
AssetsShouldNotIncludeVtxAsset
Assets should not include vortex asset
Namespace
CannotRedeem
Vortex distribution is not ready to be redeemed
Namespace
CannotTrigger
Vortex distribution is not ready to be triggered
Namespace
InvalidAmount
Invalid amount
Namespace
InvalidEndBlock
Invalid end block
Namespace
NotAValidator
Not a validator
Namespace
NotTriggered
Vortex distribution not triggered
Namespace
NoVtxAssetMinted
No Vtx asset minted
Namespace
PivotStringTooLong
Pivot string too long
Namespace
RequireAdmin
Require to be previous admin
Namespace
VortexPeriodNotSet
Vortex period not set
Namespace
VtxDistAlreadyEnabled
Vortex distribution already enabled
Namespace
VtxDistDisabled
Vortex distribution disabled
Namespace
VtxDistIdInUse
ID already in use
Namespace
VtxDistIdNotAvailable
No available Dist id
Namespace
Constants
historyDepth
History depth
Namespace
Type
nativeAssetId
The native token asset Id (managed by pallet-balances)
Namespace
Type
payoutBatchSize
Payout batch size
Namespace
Type
rootPotId
Vortex root pot id
Namespace
Type
txFeePotId
Vortex fee pot id
Namespace
Type
unsignedInterval
Unsigned transaction interval
Namespace
Type
vtxAssetId
Vortex token asset Id
Namespace
Type
vtxDistPotId
Vortex distribution pot id
Namespace
Type
Last updated