Hardhat Guide
Contract Functions
Understanding the core functionality of the confidential token
Constructor
The constructor sets up the initial token configuration:
Minting Tokens
There are two minting functions for different use cases:
The _mint
function accepts encrypted amounts for enhanced privacy.
Transfer Functions
Two versions of transfer are available:
Approval System
The approval system allows delegated spending:
TransferFrom Functions
For spending approved tokens:
View Functions
Functions to check balances and allowances:
Owner Functions
Special functions for the contract owner:
Next Steps
See how all these functions come together in the complete contract
Was this page helpful?