Skip to main content

ITwinToken

View Source: contracts/interfaces/ITwinToken.sol

↗ Extends: IERC165

ITwinToken

Provides the minimum interface a Twin token must expose to be supported by the Boson Protocol

Functions

isApprovedForAll

Returns true if the operator is allowed to manage the assets of owner.

function isApprovedForAll(address _owner,
address _operator)
external
view
returns(bool _isApproved)

Arguments

NameTypeDescription
_owneraddressthe token owner address.
_operatoraddressthe operator address.

Returns

NameTypeDescription
_isApprovedboolthe approval was found.

allowance

Returns the remaining number of tokens that _operator will be
allowed to spend on behalf of _owner through {transferFrom}. This is
zero by default.
This value changes when {approve} or {transferFrom} are called.

function allowance(address _owner,
address _operator)
external
view
returns(uint256)

Arguments

NameTypeDescription
_owneraddressthe owner address
_operatoraddressthe operator address

Returns

uint256