Skip to content

BREAKING: Boundless is opening the allowlist for infrastructure companies to start proving, please fill out this form to apply for access. See the new proving docs for more info.

IHitPoints

Interface of a restricted transfer token using ERC20

Functions

grantMinterRole

Grants the MINTER role to an account

This role is used to allow minting new tokens

function grantMinterRole(address account) external;
Parameters
NameTypeDescription
accountaddressThe address that will receive the minter role

revokeMinterRole

Revokes the MINTER role from an account

function revokeMinterRole(address account) external;
Parameters
NameTypeDescription
accountaddressThe address that will lose the minter role

grantAuthorizedTransferRole

Grants the AUTHORIZED_TRANSFER role to an account

This role is used to allow transfers from/to an address

function grantAuthorizedTransferRole(address account) external;
Parameters
NameTypeDescription
accountaddressThe address that will receive the authorized transfer role

revokeAuthorizedTransferRole

Revokes the AUTHORIZED_TRANSFER role from an account

function revokeAuthorizedTransferRole(address account) external;
Parameters
NameTypeDescription
accountaddressThe address that will lose the authorized transfer role

mint

Creates new tokens and assigns them to an account

function mint(address account, uint256 value) external;
Parameters
NameTypeDescription
accountaddressThe address that will receive the minted tokens
valueuint256The value amount of tokens to mint

Errors

UnauthorizedTransfer

Thrown when trying to transfer tokens from/to an unauthorized address

error UnauthorizedTransfer();

BalanceExceedsLimit

Thrown when balance exceeds uint96 max

error BalanceExceedsLimit(address account, uint256 currentBalance, uint256 addedAmount);