ERC-20
Overview
Max Total Supply
59,433,735.848570683847537603 sSYNR
Holders
857
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
161,277.084720324516696624 sSYNRValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SyntheticSyndicateERC20
Compiler Version
v0.8.1+commit.df193b15
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.1; import "../utils/ERC20.sol"; import "../utils/AccessControl.sol"; contract SyntheticSyndicateERC20 is ERC20("Synthetic Syndicate Token", "sSYNR"), AccessControl { /** * @dev Smart contract unique identifier, a random number * @dev Should be regenerated each time smart contact source code is changed * and changes smart contract itself is to be redeployed * @dev Generated using https://www.random.org/bytes/ */ uint256 public constant TOKEN_UID = 0xac3051b8d4f50966afb632468a4f61483ae6a953b74e387a01ef94316d6b7d62; uint32 public constant ROLE_TOKEN_DESTROYER = 0x0002_0000; uint32 public constant ROLE_WHITE_LISTED_RECEIVER = 0x0004_0000; constructor(address _superAdmin) AccessControl(_superAdmin) {} /** * @notice Must be called by ROLE_TOKEN_CREATOR addresses. * * @param recipient address to receive the tokens. * @param amount number of tokens to be minted. */ function mint(address recipient, uint256 amount) external { require(isSenderInRole(ROLE_TOKEN_CREATOR), "sSYNR: insufficient privileges (ROLE_TOKEN_CREATOR required)"); _mint(recipient, amount); } /** * @param amount number of tokens to be burned. */ function burn(uint256 amount) external { _burn(msg.sender, amount); } /** * @notice Must be called by ROLE_TOKEN_DESTROYER addresses (SynrSwapper) * Can burn only tokens owned by ROLE_WHITE_LISTED_RECEIVER address * @param recipient address to burn the tokens. * @param amount number of tokens to be burned */ function burn(address recipient, uint256 amount) external { require(isSenderInRole(ROLE_TOKEN_DESTROYER), "sSYNR: insufficient privileges (ROLE_TOKEN_DESTROYER required)"); require(isOperatorInRole(recipient, ROLE_WHITE_LISTED_RECEIVER), "sSYNR: Non Allowed Receiver"); _burn(recipient, amount); } function _transfer( address sender, address recipient, uint256 amount ) internal virtual override { require(isOperatorInRole(recipient, ROLE_WHITE_LISTED_RECEIVER), "sSYNR: Non Allowed Receiver"); super._transfer(sender, recipient, amount); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.1; import "../interfaces/IERC20.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ // Copied from Open Zeppelin contract ERC20 is IERC20 { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @notice Token creator is responsible for creating (minting) * tokens to an arbitrary address * @dev Role ROLE_TOKEN_CREATOR allows minting tokens * (calling `mint` function) */ uint32 public constant ROLE_TOKEN_CREATOR = 0x0001_0000; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(msg.sender, recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(msg.sender, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, msg.sender, _allowances[sender][msg.sender] - amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender] - subtractedValue); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender] - amount; _balances[recipient] = _balances[recipient] + amount; emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply + amount; _balances[account] = _balances[account] + amount; emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account] - amount; _totalSupply = _totalSupply - amount; emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity 0.8.1; // import "hardhat/console.sol"; /** * @title Access Control List * * @notice Access control smart contract provides an API to check * if specific operation is permitted globally and/or * if particular user has a permission to execute it. * * @notice It deals with two main entities: features and roles. * * @notice Features are designed to be used to enable/disable specific * functions (public functions) of the smart contract for everyone. * @notice User roles are designed to restrict access to specific * functions (restricted functions) of the smart contract to some users. * * @notice Terms "role", "permissions" and "set of permissions" have equal meaning * in the documentation text and may be used interchangeably. * @notice Terms "permission", "single permission" implies only one permission bit set. * * @dev This smart contract is designed to be inherited by other * smart contracts which require access control management capabilities. * * @author Basil Gorin */ contract AccessControl { /** * @notice Access manager is responsible for assigning the roles to users, * enabling/disabling global features of the smart contract * @notice Access manager can add, remove and update user roles, * remove and update global features * * @dev Role ROLE_ACCESS_MANAGER allows modifying user roles and global features * @dev Role ROLE_ACCESS_MANAGER has single bit at position 255 enabled */ uint256 public constant ROLE_ACCESS_MANAGER = 0x8000000000000000000000000000000000000000000000000000000000000000; /** * @dev Bitmask representing all the possible permissions (super admin role) * @dev Has all the bits are enabled (2^256 - 1 value) */ // solhint-disable-next-line uint256 private constant FULL_PRIVILEGES_MASK = type(uint256).max; // before 0.8.0: uint256(-1) overflows to 0xFFFF... /** * @notice Privileged addresses with defined roles/permissions * @notice In the context of ERC20/ERC721 tokens these can be permissions to * allow minting or burning tokens, transferring on behalf and so on * * @dev Maps user address to the permissions bitmask (role), where each bit * represents a permission * @dev Bitmask 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF * represents all possible permissions * @dev Zero address mapping represents global features of the smart contract */ mapping(address => uint256) public userRoles; /** * @dev Fired in updateRole() and updateFeatures() * * @param _by operator which called the function * @param _to address which was granted/revoked permissions * @param _requested permissions requested * @param _actual permissions effectively set */ event RoleUpdated(address indexed _by, address indexed _to, uint256 _requested, uint256 _actual); /** * @notice Creates an access control instance, * setting contract creator to have full privileges */ constructor(address _superAdmin) { userRoles[_superAdmin] = FULL_PRIVILEGES_MASK; userRoles[msg.sender] = FULL_PRIVILEGES_MASK; } /** * @notice Retrieves globally set of features enabled * * @dev Auxiliary getter function to maintain compatibility with previous * versions of the Access Control List smart contract, where * features was a separate uint256 public field * * @return 256-bit bitmask of the features enabled */ function features() public view returns (uint256) { // according to new design features are stored in zero address // mapping of `userRoles` structure return userRoles[address(0)]; } /** * @notice Updates set of the globally enabled features (`features`), * taking into account sender's permissions * * @dev Requires transaction sender to have `ROLE_ACCESS_MANAGER` permission * @dev Function is left for backward compatibility with older versions * * @param _mask bitmask representing a set of features to enable/disable */ function updateFeatures(uint256 _mask) public { // delegate call to `updateRole` updateRole(address(0), _mask); } /** * @notice Updates set of permissions (role) for a given user, * taking into account sender's permissions. * * @dev Setting role to zero is equivalent to removing an all permissions * @dev Setting role to `FULL_PRIVILEGES_MASK` is equivalent to * copying senders' permissions (role) to the user * @dev Requires transaction sender to have `ROLE_ACCESS_MANAGER` permission * * @param operator address of a user to alter permissions for or zero * to alter global features of the smart contract * @param role bitmask representing a set of permissions to * enable/disable for a user specified */ function updateRole(address operator, uint256 role) public { // caller must have a permission to update user roles require(isSenderInRole(ROLE_ACCESS_MANAGER), "insufficient privileges (ROLE_ACCESS_MANAGER required)"); // evaluate the role and reassign it userRoles[operator] = evaluateBy(msg.sender, userRoles[operator], role); // fire an event emit RoleUpdated(msg.sender, operator, role, userRoles[operator]); } /** * @notice Determines the permission bitmask an operator can set on the * target permission set * @notice Used to calculate the permission bitmask to be set when requested * in `updateRole` and `updateFeatures` functions * * @dev Calculated based on: * 1) operator's own permission set read from userRoles[operator] * 2) target permission set - what is already set on the target * 3) desired permission set - what do we want set target to * * @dev Corner cases: * 1) Operator is super admin and its permission set is `FULL_PRIVILEGES_MASK`: * `desired` bitset is returned regardless of the `target` permission set value * (what operator sets is what they get) * 2) Operator with no permissions (zero bitset): * `target` bitset is returned regardless of the `desired` value * (operator has no authority and cannot modify anything) * * @dev Example: * Consider an operator with the permissions bitmask 00001111 * is about to modify the target permission set 01010101 * Operator wants to set that permission set to 00110011 * Based on their role, an operator has the permissions * to update only lowest 4 bits on the target, meaning that * high 4 bits of the target set in this example is left * unchanged and low 4 bits get changed as desired: 01010011 * * @param operator address of the contract operator which is about to set the permissions * @param target input set of permissions to operator is going to modify * @param desired desired set of permissions operator would like to set * @return resulting set of permissions given operator will set */ function evaluateBy( address operator, uint256 target, uint256 desired ) public view returns (uint256) { // read operator's permissions uint256 p = userRoles[operator]; // taking into account operator's permissions, // 1) enable the permissions desired on the `target` target |= p & desired; // 2) disable the permissions desired on the `target` target &= FULL_PRIVILEGES_MASK ^ (p & (FULL_PRIVILEGES_MASK ^ desired)); // return calculated result return target; } /** * @notice Checks if requested set of features is enabled globally on the contract * * @param required set of features to check against * @return true if all the features requested are enabled, false otherwise */ function isFeatureEnabled(uint256 required) public view returns (bool) { // delegate call to `__hasRole`, passing `features` property return __hasRole(features(), required); } /** * @notice Checks if transaction sender `msg.sender` has all the permissions required * * @param required set of permissions (role) to check against * @return true if all the permissions requested are enabled, false otherwise */ function isSenderInRole(uint256 required) public view returns (bool) { // delegate call to `isOperatorInRole`, passing transaction sender return isOperatorInRole(msg.sender, required); } /** * @notice Checks if operator has all the permissions (role) required * * @param operator address of the user to check role for * @param required set of permissions (role) to check * @return true if all the permissions requested are enabled, false otherwise */ function isOperatorInRole(address operator, uint256 required) public view returns (bool) { // delegate call to `__hasRole`, passing operator's permissions (role) return __hasRole(userRoles[operator], required); } /** * @dev Checks if role `actual` contains all the permissions required `required` * * @param actual existent role * @param required required role * @return true if actual has required role (all permissions), false otherwise */ function __hasRole(uint256 actual, uint256 required) internal pure returns (bool) { // check the bitmask for the role required and return the result return actual & required == required; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.1; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_superAdmin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_by","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_requested","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_actual","type":"uint256"}],"name":"RoleUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ROLE_ACCESS_MANAGER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_TOKEN_CREATOR","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_TOKEN_DESTROYER","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_WHITE_LISTED_RECEIVER","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_UID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"target","type":"uint256"},{"internalType":"uint256","name":"desired","type":"uint256"}],"name":"evaluateBy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"features","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"required","type":"uint256"}],"name":"isFeatureEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"required","type":"uint256"}],"name":"isOperatorInRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"required","type":"uint256"}],"name":"isSenderInRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mask","type":"uint256"}],"name":"updateFeatures","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"role","type":"uint256"}],"name":"updateRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRoles","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200125a3803806200125a83398101604081905262000034916200018f565b604080518082018252601981527f53796e7468657469632053796e64696361746520546f6b656e0000000000000060208083019182528351808501909452600584526439a9aca72960d91b908401528151849391620000979160039190620000e9565b508051620000ad906004906020840190620000e9565b50506005805460ff19166012179055506001600160a01b03166000908152600660205260408082206000199081905533835291205550620001fc565b828054620000f790620001bf565b90600052602060002090601f0160209004810192826200011b576000855562000166565b82601f106200013657805160ff191683800117855562000166565b8280016001018555821562000166579182015b828111156200016657825182559160200191906001019062000149565b506200017492915062000178565b5090565b5b8082111562000174576000815560010162000179565b600060208284031215620001a1578081fd5b81516001600160a01b0381168114620001b8578182fd5b9392505050565b600281046001821680620001d457607f821691505b60208210811415620001f657634e487b7160e01b600052602260045260246000fd5b50919050565b61104e806200020c6000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80638a114e13116100f9578063ae682e2e11610097578063dd62ed3e11610071578063dd62ed3e1461034c578063e62cac761461035f578063f822d5aa14610367578063fcc2c0781461037a576101a9565b8063ae682e2e1461031e578063c688d69314610326578063d5bb7f6714610339576101a9565b80639dc29fac116100d35780639dc29fac146102d2578063a457c2d7146102e5578063a9059cbb146102f8578063ae5b102e1461030b576101a9565b80638a114e13146102ba5780638d4e57e6146102c257806395d89b41146102ca576101a9565b8063313ce5671161016657806342966c681161014057806342966c681461026e57806370a0823114610281578063725f36261461029457806374d5e100146102a7576101a9565b8063313ce56714610231578063395093511461024657806340c10f1914610259576101a9565b806306fdde03146101ae578063095ea7b3146101cc57806317a22f8e146101ec57806318160ddd1461020157806323b872dd146102165780632b52141614610229575b600080fd5b6101b661038d565b6040516101c39190610c42565b60405180910390f35b6101df6101da366004610bc4565b61041f565b6040516101c39190610c37565b6101f4610435565b6040516101c39190610f79565b61020961043c565b6040516101c39190610f62565b6101df610224366004610b89565b610442565b610209610494565b6102396104c2565b6040516101c39190610f8a565b6101df610254366004610bc4565b6104cb565b61026c610267366004610bc4565b610502565b005b61026c61027c366004610c1f565b610541565b61020961028f366004610b3d565b61054e565b6101df6102a2366004610c1f565b61056d565b6102096102b5366004610b3d565b610586565b610209610598565b6101f46105bc565b6101b66105c3565b61026c6102e0366004610bc4565b6105d2565b6101df6102f3366004610bc4565b61062d565b6101df610306366004610bc4565b610664565b61026c610319366004610bc4565b610671565b61020961071b565b6101df610334366004610bc4565b610723565b61026c610347366004610c1f565b61074d565b61020961035a366004610b57565b610758565b6101f4610783565b610209610375366004610bed565b61078a565b6101df610388366004610c1f565b6107b5565b60606003805461039c90610fc7565b80601f01602080910402602001604051908101604052809291908181526020018280546103c890610fc7565b80156104155780601f106103ea57610100808354040283529160200191610415565b820191906000526020600020905b8154815290600101906020018083116103f857829003601f168201915b5050505050905090565b600061042c3384846107c1565b50600192915050565b6204000081565b60025490565b600061044f848484610875565b6001600160a01b03841660009081526001602090815260408083203380855292529091205461048a918691610485908690610fb0565b6107c1565b5060019392505050565b6000805260066020527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f85490565b60055460ff1690565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161042c918590610485908690610f98565b61050e620100006107b5565b6105335760405162461bcd60e51b815260040161052a90610e34565b60405180910390fd5b61053d82826108ae565b5050565b61054b3382610964565b50565b6001600160a01b0381166000908152602081905260409020545b919050565b600061058061057a610494565b83610a22565b92915050565b60066020526000908152604090205481565b7fac3051b8d4f50966afb632468a4f61483ae6a953b74e387a01ef94316d6b7d6281565b6201000081565b60606004805461039c90610fc7565b6105de620200006107b5565b6105fa5760405162461bcd60e51b815260040161052a90610d1a565b6106078262040000610723565b6106235760405162461bcd60e51b815260040161052a90610d77565b61053d8282610964565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161042c918590610485908690610fb0565b600061042c338484610875565b61067e600160ff1b6107b5565b61069a5760405162461bcd60e51b815260040161052a90610e91565b6001600160a01b0382166000908152600660205260409020546106bf9033908361078a565b6001600160a01b0383166000818152600660205260409081902083905551909133917f5a10526456f5116c0b7b80582c217d666243fd51b6a2d92c8011e601c2462e5f9161070f91869190610f6b565b60405180910390a35050565b600160ff1b81565b6001600160a01b0382166000908152600660205260408120546107469083610a22565b9392505050565b61054b600082610671565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6202000081565b6001600160a01b03929092166000908152600660205260409020546000198084188216189216171690565b60006105803383610723565b6001600160a01b0383166107e75760405162461bcd60e51b815260040161052a90610ee7565b6001600160a01b03821661080d5760405162461bcd60e51b815260040161052a90610cd8565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610868908590610f62565b60405180910390a3505050565b6108828262040000610723565b61089e5760405162461bcd60e51b815260040161052a90610d77565b6108a9838383610a29565b505050565b6001600160a01b0382166108d45760405162461bcd60e51b815260040161052a90610f2b565b6108e0600083836108a9565b806002546108ee9190610f98565b6002556001600160a01b038216600090815260208190526040902054610915908290610f98565b6001600160a01b0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061070f908590610f62565b6001600160a01b03821661098a5760405162461bcd60e51b815260040161052a90610dae565b610996826000836108a9565b6001600160a01b0382166000908152602081905260409020546109ba908290610fb0565b6001600160a01b0383166000908152602081905260409020556002546109e1908290610fb0565b6002556040516000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061070f908590610f62565b9081161490565b6001600160a01b038316610a4f5760405162461bcd60e51b815260040161052a90610def565b6001600160a01b038216610a755760405162461bcd60e51b815260040161052a90610c95565b610a808383836108a9565b6001600160a01b038316600090815260208190526040902054610aa4908290610fb0565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610ad4908290610f98565b6001600160a01b0380841660008181526020819052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610868908590610f62565b80356001600160a01b038116811461056857600080fd5b600060208284031215610b4e578081fd5b61074682610b26565b60008060408385031215610b69578081fd5b610b7283610b26565b9150610b8060208401610b26565b90509250929050565b600080600060608486031215610b9d578081fd5b610ba684610b26565b9250610bb460208501610b26565b9150604084013590509250925092565b60008060408385031215610bd6578182fd5b610bdf83610b26565b946020939093013593505050565b600080600060608486031215610c01578283fd5b610c0a84610b26565b95602085013595506040909401359392505050565b600060208284031215610c30578081fd5b5035919050565b901515815260200190565b6000602080835283518082850152825b81811015610c6e57858101830151858201604001528201610c52565b81811115610c7f5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252603e908201527f7353594e523a20696e73756666696369656e742070726976696c65676573202860408201527f524f4c455f544f4b454e5f44455354524f594552207265717569726564290000606082015260800190565b6020808252601b908201527f7353594e523a204e6f6e20416c6c6f7765642052656365697665720000000000604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252603c908201527f7353594e523a20696e73756666696369656e742070726976696c65676573202860408201527f524f4c455f544f4b454e5f43524541544f522072657175697265642900000000606082015260800190565b60208082526036908201527f696e73756666696369656e742070726976696c656765732028524f4c455f4143604082015275434553535f4d414e414745522072657175697265642960501b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b918252602082015260400190565b63ffffffff91909116815260200190565b60ff91909116815260200190565b60008219821115610fab57610fab611002565b500190565b600082821015610fc257610fc2611002565b500390565b600281046001821680610fdb57607f821691505b60208210811415610ffc57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea26469706673582212207029adc2c429aadb8fa4c63148cc4007a29144d15d521716460619845c2c5c9064736f6c634300080100330000000000000000000000008e75aee46961019a66a88670ec18f022b8ef815e
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80638a114e13116100f9578063ae682e2e11610097578063dd62ed3e11610071578063dd62ed3e1461034c578063e62cac761461035f578063f822d5aa14610367578063fcc2c0781461037a576101a9565b8063ae682e2e1461031e578063c688d69314610326578063d5bb7f6714610339576101a9565b80639dc29fac116100d35780639dc29fac146102d2578063a457c2d7146102e5578063a9059cbb146102f8578063ae5b102e1461030b576101a9565b80638a114e13146102ba5780638d4e57e6146102c257806395d89b41146102ca576101a9565b8063313ce5671161016657806342966c681161014057806342966c681461026e57806370a0823114610281578063725f36261461029457806374d5e100146102a7576101a9565b8063313ce56714610231578063395093511461024657806340c10f1914610259576101a9565b806306fdde03146101ae578063095ea7b3146101cc57806317a22f8e146101ec57806318160ddd1461020157806323b872dd146102165780632b52141614610229575b600080fd5b6101b661038d565b6040516101c39190610c42565b60405180910390f35b6101df6101da366004610bc4565b61041f565b6040516101c39190610c37565b6101f4610435565b6040516101c39190610f79565b61020961043c565b6040516101c39190610f62565b6101df610224366004610b89565b610442565b610209610494565b6102396104c2565b6040516101c39190610f8a565b6101df610254366004610bc4565b6104cb565b61026c610267366004610bc4565b610502565b005b61026c61027c366004610c1f565b610541565b61020961028f366004610b3d565b61054e565b6101df6102a2366004610c1f565b61056d565b6102096102b5366004610b3d565b610586565b610209610598565b6101f46105bc565b6101b66105c3565b61026c6102e0366004610bc4565b6105d2565b6101df6102f3366004610bc4565b61062d565b6101df610306366004610bc4565b610664565b61026c610319366004610bc4565b610671565b61020961071b565b6101df610334366004610bc4565b610723565b61026c610347366004610c1f565b61074d565b61020961035a366004610b57565b610758565b6101f4610783565b610209610375366004610bed565b61078a565b6101df610388366004610c1f565b6107b5565b60606003805461039c90610fc7565b80601f01602080910402602001604051908101604052809291908181526020018280546103c890610fc7565b80156104155780601f106103ea57610100808354040283529160200191610415565b820191906000526020600020905b8154815290600101906020018083116103f857829003601f168201915b5050505050905090565b600061042c3384846107c1565b50600192915050565b6204000081565b60025490565b600061044f848484610875565b6001600160a01b03841660009081526001602090815260408083203380855292529091205461048a918691610485908690610fb0565b6107c1565b5060019392505050565b6000805260066020527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f85490565b60055460ff1690565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161042c918590610485908690610f98565b61050e620100006107b5565b6105335760405162461bcd60e51b815260040161052a90610e34565b60405180910390fd5b61053d82826108ae565b5050565b61054b3382610964565b50565b6001600160a01b0381166000908152602081905260409020545b919050565b600061058061057a610494565b83610a22565b92915050565b60066020526000908152604090205481565b7fac3051b8d4f50966afb632468a4f61483ae6a953b74e387a01ef94316d6b7d6281565b6201000081565b60606004805461039c90610fc7565b6105de620200006107b5565b6105fa5760405162461bcd60e51b815260040161052a90610d1a565b6106078262040000610723565b6106235760405162461bcd60e51b815260040161052a90610d77565b61053d8282610964565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161042c918590610485908690610fb0565b600061042c338484610875565b61067e600160ff1b6107b5565b61069a5760405162461bcd60e51b815260040161052a90610e91565b6001600160a01b0382166000908152600660205260409020546106bf9033908361078a565b6001600160a01b0383166000818152600660205260409081902083905551909133917f5a10526456f5116c0b7b80582c217d666243fd51b6a2d92c8011e601c2462e5f9161070f91869190610f6b565b60405180910390a35050565b600160ff1b81565b6001600160a01b0382166000908152600660205260408120546107469083610a22565b9392505050565b61054b600082610671565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6202000081565b6001600160a01b03929092166000908152600660205260409020546000198084188216189216171690565b60006105803383610723565b6001600160a01b0383166107e75760405162461bcd60e51b815260040161052a90610ee7565b6001600160a01b03821661080d5760405162461bcd60e51b815260040161052a90610cd8565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610868908590610f62565b60405180910390a3505050565b6108828262040000610723565b61089e5760405162461bcd60e51b815260040161052a90610d77565b6108a9838383610a29565b505050565b6001600160a01b0382166108d45760405162461bcd60e51b815260040161052a90610f2b565b6108e0600083836108a9565b806002546108ee9190610f98565b6002556001600160a01b038216600090815260208190526040902054610915908290610f98565b6001600160a01b0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061070f908590610f62565b6001600160a01b03821661098a5760405162461bcd60e51b815260040161052a90610dae565b610996826000836108a9565b6001600160a01b0382166000908152602081905260409020546109ba908290610fb0565b6001600160a01b0383166000908152602081905260409020556002546109e1908290610fb0565b6002556040516000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061070f908590610f62565b9081161490565b6001600160a01b038316610a4f5760405162461bcd60e51b815260040161052a90610def565b6001600160a01b038216610a755760405162461bcd60e51b815260040161052a90610c95565b610a808383836108a9565b6001600160a01b038316600090815260208190526040902054610aa4908290610fb0565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610ad4908290610f98565b6001600160a01b0380841660008181526020819052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610868908590610f62565b80356001600160a01b038116811461056857600080fd5b600060208284031215610b4e578081fd5b61074682610b26565b60008060408385031215610b69578081fd5b610b7283610b26565b9150610b8060208401610b26565b90509250929050565b600080600060608486031215610b9d578081fd5b610ba684610b26565b9250610bb460208501610b26565b9150604084013590509250925092565b60008060408385031215610bd6578182fd5b610bdf83610b26565b946020939093013593505050565b600080600060608486031215610c01578283fd5b610c0a84610b26565b95602085013595506040909401359392505050565b600060208284031215610c30578081fd5b5035919050565b901515815260200190565b6000602080835283518082850152825b81811015610c6e57858101830151858201604001528201610c52565b81811115610c7f5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252603e908201527f7353594e523a20696e73756666696369656e742070726976696c65676573202860408201527f524f4c455f544f4b454e5f44455354524f594552207265717569726564290000606082015260800190565b6020808252601b908201527f7353594e523a204e6f6e20416c6c6f7765642052656365697665720000000000604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252603c908201527f7353594e523a20696e73756666696369656e742070726976696c65676573202860408201527f524f4c455f544f4b454e5f43524541544f522072657175697265642900000000606082015260800190565b60208082526036908201527f696e73756666696369656e742070726976696c656765732028524f4c455f4143604082015275434553535f4d414e414745522072657175697265642960501b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b918252602082015260400190565b63ffffffff91909116815260200190565b60ff91909116815260200190565b60008219821115610fab57610fab611002565b500190565b600082821015610fc257610fc2611002565b500390565b600281046001821680610fdb57607f821691505b60208210811415610ffc57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea26469706673582212207029adc2c429aadb8fa4c63148cc4007a29144d15d521716460619845c2c5c9064736f6c63430008010033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008e75aee46961019a66a88670ec18f022b8ef815e
-----Decoded View---------------
Arg [0] : _superAdmin (address): 0x8e75AEe46961019A66A88670ec18f022B8ef815E
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008e75aee46961019a66a88670ec18f022b8ef815e
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.