Skip to main content

Calls

setAdmin

Set a new admin account that can perform privileged operations. The dispatch origin for this call must be Root. Parameters:
  • new: The new admin account.
Namespace
Type

createVtxDist

Create a new Vortex distribution. The dispatch origin for this call must be Root or Admin. Namespace
Type

disableVtxDist

Disable a Vortex distribution. The dispatch origin for this call must be Root or Admin. Parameters:
  • id: The ID of the distribution to disable.
Namespace
Type

setConsiderCurrentBalance

Set whether to consider current balances for reward calculations. The dispatch origin for this call must be Root or Admin. Parameters:
  • value: Boolean indicating whether to consider current balances.
Namespace
Type

setDisableRedeem

Enable or disable token redemption functionality. The dispatch origin for this call must be Root or Admin. Parameters:
  • value: Boolean indicating whether to disable redemption.
Namespace
Type

setEnableManualRewardInput

Enable or disable manual reward input. The dispatch origin for this call must be Root or Admin. Parameters:
  • value: Boolean indicating whether to enable manual reward input.
Namespace
Type

setFeePotAssetBalances

Set fee pot asset balances. The dispatch origin for this call must be Root or Admin. Parameters:
  • id: The distribution ID.
  • assets_balances: List of asset balances.
Namespace
Type

setVtxVaultAssetBalances

Set Vortex vault asset balances. The dispatch origin for this call must be Root or Admin. Parameters:
  • id: The distribution ID.
  • assets_balances: List of asset balances.
Namespace
Type

setVtxTotalSupply

Set Vortex total supply. The dispatch origin for this call must be Root or Admin. Parameters:
  • id: The distribution ID.
  • supply: Total supply amount.
Namespace
Type

setAssetPrices

Set asset prices. The dispatch origin for this call must be Root or Admin. Parameters:
  • id: The distribution ID.
  • asset_prices: List of asset prices.
Namespace
Type

registerRewardPoints

Register reward points. The dispatch origin for this call must be Root or Admin. Parameters:
  • id: The distribution ID.
  • reward_points: List of reward points.
Namespace
Type

registerWorkPoints

Register work points. The dispatch origin for this call must be Root or Admin. Parameters:
  • id: The distribution ID.
  • work_points: List of work points.
Namespace
Type

triggerVtxDistribution

Trigger a Vortex distribution. The dispatch origin for this call must be Root or Admin. Parameters:
  • id: The distribution ID.
Namespace
Type

startVtxDist

Start a Vortex distribution. The dispatch origin for this call must be Root or Admin. Parameters:
  • id: The distribution ID.
Namespace
Type

payUnsigned

Process unsigned payouts. The dispatch origin for this call must be None. Parameters:
  • id: The distribution ID.
  • current_block: Current block number.
Namespace
Type

setVtxVaultRedeemAssetList

Set redeemable assets list. The dispatch origin for this call must be Root or Admin. Parameters:
  • assets_list: List of redeemable assets.
Namespace
Type

registerRewards

Register rewards manually. The dispatch origin for this call must be Root or Admin. Parameters:
  • id: The distribution ID.
  • rewards: List of rewards.
Namespace
Type

redeemTokensFromVault

Redeem tokens from the Vortex vault. The dispatch origin for this call must be Signed. Parameters:
  • vortex_token_amount: Amount of Vortex tokens to redeem.
Namespace
Type

Storage

adminAccount

The admin account that can perform privileged operations. Namespace
Type

nextVortexId

The next available Vortex distribution ID. Namespace
Type

considerCurrentBalance

Flag indicating whether to consider current balances for reward calculations. Namespace
Type

disableRedeem

Flag to disable token redemption functionality. Namespace
Type

enableManualRewardInput

Flag to enable manual reward input. Namespace
Type

vtxVaultRedeemAssetList

List of assets available for redemption. Namespace
Type

totalRewardPoints

Total reward points for each distribution cycle. Namespace
Type

totalWorkPoints

Total work points for each distribution cycle. Namespace
Type

vtxDistStatuses

Status of each Vortex distribution. Namespace
Type

vtxTotalSupply

Total supply of Vortex tokens for each distribution. Namespace
Type

vtxPrice

Vortex token price for each distribution. Namespace
Type

vtxDistOrderbook

Order book for each Vortex distribution. Namespace
Type

rewardPoints

Reward points for each account in each distribution. Namespace
Type

workPoints

Work points for each account in each distribution. Namespace
Type

feePotAssetsList

Fee pot asset list for each distribution. Namespace
Type

vtxVaultAssetsList

Vortex vault asset list for each distribution. Namespace
Type

assetPrices

Asset prices for each distribution. Namespace
Type

totalNetworkReward

Total network reward for each distribution. Namespace
Type

totalBootstrapReward

Total bootstrap reward for each distribution. Namespace
Type

totalVortex

Total Vortex amount for each distribution. Namespace
Type

nextUnsignedAt

Next unsigned transaction block number. Namespace
Type

vtxDistPayoutPivot

Payout pivot block for each distribution. Namespace
Type

vtxRewardCalculationPivot

Reward calculation pivot block for each distribution. Namespace
Type

Constants

VTX_DIST_UNSIGNED_PRIORITY

Priority for unsigned transactions. Type

PRECISION_MULTIPLIER

Precision multiplier for integer math (10^6). Type

PRICE_MULTIPLIER

Asset price multiplier (10^6). Type

Errors

RequireAdmin

When admin privileges are required.

VtxDistIdNotAvailable

When no distribution ID is available.

VtxDistAlreadyEnabled

When distribution is already enabled.

VtxDistDisabled

When distribution is disabled.

NoVtxAssetMinted

When no Vortex assets are minted.

InvalidAmount

When an invalid amount is provided.

VtxDistIdInUse

When distribution ID is already in use.

NotAValidator

When caller is not a validator.

VortexPeriodNotSet

When Vortex period is not set.

PivotStringTooLong

When pivot string is too long.

AssetsShouldNotIncludeVtxAsset

When assets include Vortex asset.

CannotTrigger

When distribution cannot be triggered.

CannotRedeem

When distribution cannot be redeemed.

NotTriggered

When distribution is not triggered.

ExceededMaxRewards

When rewards exceed maximum limit.

VortexPriceIsZero

When Vortex price is zero.

RootPriceIsZero

When root price is zero.

VtxRedeemDisabled

When Vortex redemption is disabled.

ManualRewardInputDisabled

When manual reward input is disabled.

VtxRewardPayoutFailed

When reward payout fails.

RewardPointsNotRegistered

When reward points are not registered.