IReceivable

Git Source

Inherits: IReceivableEvent

Functions

initialize

function initialize(address initialAdmin_) external;

Parameters

NameTypeDescription

initialAdmin_

address

The address of the admin

createReceivable

Only the buyer can call this function

The event faceAmount is converted to decimal with 6 decimals

Mint a new receivable

function createReceivable(Receivable.Create memory create_) external returns (uint256 tokenId_);

Parameters

NameTypeDescription

create_

Receivable.Create

The struct containing the information of the receivable to be created

Returns

NameTypeDescription

tokenId_

uint256

The id of the newly created receivable

getReceivableInfoById

Get the information of a receivable

function getReceivableInfoById(uint256 tokenId_) external view returns (Receivable.Info memory info_);

Parameters

NameTypeDescription

tokenId_

uint256

The id of the receivable

Returns

NameTypeDescription

info_

Receivable.Info

The struct containing the information of the receivable

burnReceivable

function burnReceivable(uint256 tokenId_) external;

Last updated