Skip to main content
Version: v1.4

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

NameTypeDescription
senderaddressThe address of the sender account
receiveraddressThe address of the receiver account
allowancestruct ISCAssetsThe 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

NameTypeDescription
fromaddressThe address of the account from which tokens are allowed
toaddressThe address of the account to which tokens are allowed
numTokensuint256The 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

NameTypeDescription
fromaddressThe address of the account from which tokens are allowed
toaddressThe address of the account to which tokens are allowed
nativeTokenIDstruct NativeTokenIDThe ID of the native token
numTokensuint256The 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

NameTypeDescription
fromaddressThe address of the account from which funds are allowed
toaddressThe address of the account to which funds are allowed
allowancestruct ISCAssetsThe assets to be moved from the sender to the receiver

__iscPrivileged

contract ISCPrivileged __iscPrivileged