Skip to main content

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, uint64 amount) 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
amountuint64The 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

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

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