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, uint256 numTokens) 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 |
numTokens | uint256 | The number of base tokens to be allowed |
setAllowanceNativeTokens
function setAllowanceNativeTokens(address from, address to, struct NativeTokenID nativeTokenID, uint256 numTokens) external
This function allows privileged contracts to set the allowance of native 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 |
nativeTokenID | struct NativeTokenID | The ID of the native token |
numTokens | uint256 | The number of native 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