Receivable

Git Source

Inherits: ReceivableStorage, Initializable, ERC721Upgradeable, ERC721EnumerableUpgradeable, ERC721BurnableUpgradeable, UUPSUpgradeable, IReceivable

Functions

_authorizeUpgrade

function _authorizeUpgrade(address newImplementation) internal override onlyGovernor;

initialize

Initializes the Receivable.

function initialize(address isleGlobal_) external override initializer;

Parameters

Name
Type
Description

isleGlobal_

address

The address of the isleGlobal.

createReceivable

Mint a new receivable.

The event faceAmount is converted to decimal with 6 decimals.

function createReceivable(RCV.Create calldata params_) external override returns (uint256 tokenId_);

Parameters

Name
Type
Description

params_

RCV.Create

The struct containing the information of the receivable to be created.

Returns

Name
Type
Description

tokenId_

uint256

The id of the newly created receivable.

getReceivableInfoById

Get the information of a receivable.

Parameters

Name
Type
Description

tokenId_

uint256

The id of the receivable.

Returns

Name
Type
Description

info_

RCV.Info

The struct containing the information of the receivable.

burnReceivable

Burn a receivable.

Parameters

Name
Type
Description

tokenId_

uint256

The id of the receivable.

governor

Get governor from IsleGlobals.

Returns

Name
Type
Description

governor_

address

The address of the governor.

_beforeTokenTransfer

not support batch transfer

Hook that is called before any token transfer.

supportsInterface

See {IERC165-supportsInterface}.

Last updated