ERC-1462: BaseSecurityToken
An extension to ERC-20 standard token that provides compliance with securities regulations and legal enforceability.
interface BaseSecurityToken /* is ERC-20 */ {
// Checking functions
function checkTransferAllowed (address from, address to, uint256 value) public view returns (byte);
function checkTransferFromAllowed (address from, address to, uint256 value) public view returns (byte);
function checkMintAllowed (address to, uint256 value) public view returns (byte);
function checkBurnAllowed (address from, uint256 value) public view returns (byte);
// Documentation functions
function attachDocument(bytes32 _name, string _uri, bytes32 _contentHash) external;
function lookupDocument(bytes32 _name) external view returns (string, bytes32);
}
Join the discussion!
Please refer to IBaseSecurityToken.sol and TokenPrototype.sol.
$ make lint
solhint "contracts/**/*.sol"
solium -d contracts/
No issues found.