Skip to main content

Constructor

The constructor sets up the initial token configuration:

Minting Tokens

There are two minting functions for different use cases, plus a helper for enforcing fees:
The encryptedMint function accepts encrypted amounts for enhanced privacy and requires the caller to pay the Inco fee.

Transfer Functions

Two versions of transfer are available, with a fee required for the encrypted entrypoint:

Approval System

The approval system allows delegated spending:

TransferFrom Functions

For spending approved tokens, the encrypted entrypoint also requires a fee:

View Functions

Functions to check balances and allowances:

Next Steps

See how all these functions come together in the complete contract