Receivable
Inherits: ReceivableStorage, Initializable, ERC721Upgradeable, ERC721EnumerableUpgradeable, ERC721BurnableUpgradeable, UUPSUpgradeable, Governable, IReceivable
Functions
_authorizeUpgrade
initialize
Initializes the Receivable.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the governor. |
createReceivable
Mint a new receivable.
The event faceAmount is converted to decimal with 6 decimals.
Parameters
Name | Type | Description |
---|---|---|
|
| The struct containing the information of the receivable to be created. |
Returns
Name | Type | Description |
---|---|---|
|
| The id of the newly created receivable. |
getReceivableInfoById
Get the information of a receivable.
Parameters
Name | Type | Description |
---|---|---|
|
| The id of the receivable. |
Returns
Name | Type | Description |
---|---|---|
|
| The struct containing the information of the receivable. |
burnReceivable
Burn a receivable.
Parameters
Name | Type | Description |
---|---|---|
|
| The id of the receivable. |
_beforeTokenTransfer
not support batch transfer
Hook that is called before any token transfer.
supportsInterface
See {IERC165-supportsInterface}.
Last updated