Skip to content

EqInvestors


Calls


transfer

Transfer funds from pallets account

The dispatch origin for this call must be Root or Manager.

Parameters: - asset: The asset that will be transfered; - target: The account that should be transferred funds; - value: The amount of asset that will be transferred.

Attributes

Name Type
asset Asset
target T::AccountId
value T::Balance

Python

call = substrate.compose_call(
    'EqInvestors', 'transfer', {
    'asset': 'u64',
    'target': 'AccountId',
    'value': 'u128',
}
)

vested_transfer

Transfer funds from pallets account with vesting

The dispatch origin for this call must be Root or Manager.

Parameters: - target: The account that should be transferred funds. - schedule: The vesting schedule: - First balance is the total amount that should be held for vesting. - Second balance is how much should be unlocked per block. - The block number is when the vesting should start.

Attributes

Name Type
target T::AccountId
schedule (T::Balance, T::Balance, T::BlockNumber)

Python

call = substrate.compose_call(
    'EqInvestors', 'vested_transfer', {
    'schedule': (
        'u128',
        'u128',
        'u32',
    ),
    'target': 'AccountId',
}
)

Storage functions


PalletManager

Python

result = substrate.query(
    'EqInvestors', 'PalletManager', []
)

Return value

'AccountId'

Constants


PalletId

Pallet's AccountId for balance

Value

'0x65712f696e767374'

Python

constant = substrate.get_constant('EqInvestors', 'PalletId')

Errors


AmountLow

Amount being transferred is too low to create a vesting schedule


ExistingVestingSchedule

An existing vesting schedule already exists for this account that cannot be clobbered