EqTreasury¶
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(
'EqTreasury', '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(
'EqTreasury', 'vested_transfer', {
'schedule': (
'u128',
'u128',
'u32',
),
'target': 'AccountId',
}
)
Storage functions¶
PalletManager¶
Python¶
result = substrate.query(
'EqTreasury', 'PalletManager', []
)
Return value¶
'AccountId'
Constants¶
PalletId¶
Pallet's AccountId for balance
Value¶
'0x65712f7472737279'
Python¶
constant = substrate.get_constant('EqTreasury', '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