ISCPrivileged
ISCPrivileged
The ISCPrivileged interface represents a contract that has some extra methods not included in the standard ISC interface. These methods can only be called from privileged contracts.
moveBetweenAccounts
function moveBetweenAccounts(address sender, address receiver, struct ISCAssets allowance) external
This function allows privileged contracts to move assets between accounts.
Parameters
Name | Type | Description |
---|---|---|
sender | address | The address of the sender account |
receiver | address | The address of the receiver account |
allowance | struct ISCAssets | The assets to be moved from the sender to the receiver |
setAllowanceBaseTokens
function setAllowanceBaseTokens(address from, address to, uint64 amount) external
This function allows privileged contracts to set the allowance of base tokens from one account to another.
Parameters
Name | Type | Description |
---|---|---|
from | address | The address of the account from which tokens are allowed |
to | address | The address of the account to which tokens are allowed |
amount | uint64 | The number of base tokens to be allowed |
setAllowanceCoin
function setAllowanceCoin(address from, address to, string coinType, uint64 amount) external
This function allows privileged contracts to set the allowance of a given coin from one account to another.
Parameters
Name | Type | Description |
---|---|---|
from | address | The address of the account from which tokens are allowed |
to | address | The address of the account to which tokens are allowed |
coinType | string | The coin type |
amount | uint64 | The number of base tokens to be allowed |
moveAllowedFunds
function moveAllowedFunds(address from, address to, struct ISCAssets allowance) external
This function allows privileged contracts to move allowed funds from one account to another.
Parameters
Name | Type | Description |
---|---|---|
from | address | The address of the account from which funds are allowed |
to | address | The address of the account to which funds are allowed |
allowance | struct ISCAssets | The assets to be moved from the sender to the receiver |
__iscPrivileged
contract ISCPrivileged __iscPrivileged