Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
TokenAuthority
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at SonicScan.org on 2025-02-19 */ // SPDX-License-Identifier: GPL-3.0 pragma solidity =0.8.20 ^0.8.20; // lib/openzeppelin-contracts/contracts/access/IAccessControl.sol // OpenZeppelin Contracts (last updated v5.1.0) (access/IAccessControl.sol) /** * @dev External interface of AccessControl declared to support ERC-165 detection. */ interface IAccessControl { /** * @dev The `account` is missing a role. */ error AccessControlUnauthorizedAccount(address account, bytes32 neededRole); /** * @dev The caller of a function is not the expected one. * * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}. */ error AccessControlBadConfirmation(); /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call. This account bears the admin role (for the granted role). * Expected in cases where the role was granted using the internal {AccessControl-_grantRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `callerConfirmation`. */ function renounceRole(bytes32 role, address callerConfirmation) external; } // lib/openzeppelin-contracts/contracts/utils/Context.sol // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol) /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // src/interfaces/IMintableBurnable.sol interface IMintableBurnable { function whiteListMint(uint256 _amount, address _account) external; function whiteListBurn(uint256 _amount, address _account) external; } // src/interfaces/IToken.sol interface IToken { function isBlackListed(address _account) external returns (bool); } // lib/openzeppelin-contracts/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol) /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // lib/openzeppelin-contracts/contracts/access/AccessControl.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol) /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ```solidity * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ```solidity * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address account => bool) hasRole; bytes32 adminRole; } mapping(bytes32 role => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with an {AccessControlUnauthorizedAccount} error including the required role. */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual returns (bool) { return _roles[role].hasRole[account]; } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()` * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier. */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account` * is missing `role`. */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert AccessControlUnauthorizedAccount(account, role); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `callerConfirmation`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address callerConfirmation) public virtual { if (callerConfirmation != _msgSender()) { revert AccessControlBadConfirmation(); } _revokeRole(role, callerConfirmation); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual returns (bool) { if (!hasRole(role, account)) { _roles[role].hasRole[account] = true; emit RoleGranted(role, account, _msgSender()); return true; } else { return false; } } /** * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual returns (bool) { if (hasRole(role, account)) { _roles[role].hasRole[account] = false; emit RoleRevoked(role, account, _msgSender()); return true; } else { return false; } } } // src/TokenAuthority.sol contract TokenAuthority is AccessControl, IMintableBurnable { error InvalidParams(); bytes32 public constant MINTER_ROLE = keccak256("TOKEN_MINTER_ROLE"); address public immutable tokenAddress; constructor(address _tokenAddress, address admin, address miner) { if (_tokenAddress == address(0x0) || admin == address(0x0)) { revert InvalidParams(); } tokenAddress = _tokenAddress; _grantRole(DEFAULT_ADMIN_ROLE, admin); if (miner != address(0)) { _grantRole(MINTER_ROLE, miner); } } function whiteListMint(uint256 _amount, address _account) external onlyRole(MINTER_ROLE) { _mint(_account, _amount); } function whiteListBurn(uint256 _amount, address _account) external onlyRole(MINTER_ROLE) { if (IToken(tokenAddress).isBlackListed(_account)) { revert("addr blocklisted"); } _burn(_account, _amount); } function permitBurn(uint256 _amount, address _account) external onlyRole(DEFAULT_ADMIN_ROLE) { _burn(_account, _amount); } function _mint(address receipt, uint256 amount) private { IMintableBurnable(tokenAddress).whiteListMint(amount, receipt); } function _burn(address receipt, uint256 amount) private { IMintableBurnable(tokenAddress).whiteListBurn(amount, receipt); } function setMinter(address minter) external { grantRole(MINTER_ROLE, minter); } function removeMinter(address minter) external { revokeRole(MINTER_ROLE, minter); } function setAdmin(address admin) external { grantRole(DEFAULT_ADMIN_ROLE, admin); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"miner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"InvalidParams","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_account","type":"address"}],"name":"permitBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"removeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_account","type":"address"}],"name":"whiteListBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_account","type":"address"}],"name":"whiteListMint","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405234801561000f575f80fd5b506040516109c23803806109c283398101604081905261002e91610188565b6001600160a01b038316158061004b57506001600160a01b038216155b1561006957604051635435b28960e11b815260040160405180910390fd5b6001600160a01b0383166080526100805f836100c4565b506001600160a01b038116156100bc576100ba7fb3bb6029312d1001076133d40b75b7eca92ba54e4963b3ce24e1486a3d5a038b826100c4565b505b5050506101c8565b5f828152602081815260408083206001600160a01b038516845290915281205460ff16610164575f838152602081815260408083206001600160a01b03861684529091529020805460ff1916600117905561011c3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610167565b505f5b92915050565b80516001600160a01b0381168114610183575f80fd5b919050565b5f805f6060848603121561019a575f80fd5b6101a38461016d565b92506101b16020850161016d565b91506101bf6040850161016d565b90509250925092565b6080516107cd6101f55f395f81816101d801528181610379015281816105c7015261064901526107cd5ff3fe608060405234801561000f575f80fd5b50600436106100f0575f3560e01c80638e433bc711610093578063d539139311610063578063d539139314610219578063d547741f1461022d578063f274d53214610240578063fca3b5aa14610253575f80fd5b80638e433bc7146101ad57806391d14854146101c05780639d76ea58146101d3578063a217fddf14610212575f80fd5b80633092afd5116100ce5780633092afd51461016157806336568abe146101745780636455feac14610187578063704b6c021461019a575f80fd5b806301ffc9a7146100f4578063248a9ca31461011c5780632f2ff15d1461014c575b5f80fd5b6101076101023660046106b5565b610266565b60405190151581526020015b60405180910390f35b61013e61012a3660046106e3565b5f9081526020819052604090206001015490565b604051908152602001610113565b61015f61015a366004610715565b61029c565b005b61015f61016f36600461073f565b6102c6565b61015f610182366004610715565b6102e0565b61015f610195366004610715565b610318565b61015f6101a836600461073f565b610339565b61015f6101bb366004610715565b610343565b6101076101ce366004610715565b610432565b6101fa7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610113565b61013e5f81565b61013e5f8051602061077883398151915281565b61015f61023b366004610715565b61045a565b61015f61024e366004610715565b61047e565b61015f61026136600461073f565b610488565b5f6001600160e01b03198216637965db0b60e01b148061029657506301ffc9a760e01b6001600160e01b03198316145b92915050565b5f828152602081905260409020600101546102b68161049f565b6102c083836104a9565b50505050565b6102dd5f805160206107788339815191528261045a565b50565b6001600160a01b03811633146103095760405163334bd91960e11b815260040160405180910390fd5b6103138282610538565b505050565b5f8051602061077883398151915261032f8161049f565b61031382846105a1565b6102dd5f8261029c565b5f8051602061077883398151915261035a8161049f565b604051630723eb0360e51b81526001600160a01b0383811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063e47d6060906024016020604051808303815f875af11580156103bf573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103e39190610758565b156104285760405162461bcd60e51b815260206004820152601060248201526f1859191c88189b1bd8dadb1a5cdd195960821b60448201526064015b60405180910390fd5b6103138284610623565b5f918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b5f828152602081905260409020600101546104748161049f565b6102c08383610538565b5f6104288161049f565b6102dd5f805160206107788339815191528261029c565b6102dd8133610678565b5f6104b48383610432565b610531575f838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556104e93390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610296565b505f610296565b5f6105438383610432565b15610531575f838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610296565b6040516319157fab60e21b8152600481018290526001600160a01b0383811660248301527f00000000000000000000000000000000000000000000000000000000000000001690636455feac906044015b5f604051808303815f87803b158015610609575f80fd5b505af115801561061b573d5f803e3d5ffd5b505050505050565b604051638e433bc760e01b8152600481018290526001600160a01b0383811660248301527f00000000000000000000000000000000000000000000000000000000000000001690638e433bc7906044016105f2565b6106828282610432565b6106b15760405163e2517d3f60e01b81526001600160a01b03821660048201526024810183905260440161041f565b5050565b5f602082840312156106c5575f80fd5b81356001600160e01b0319811681146106dc575f80fd5b9392505050565b5f602082840312156106f3575f80fd5b5035919050565b80356001600160a01b0381168114610710575f80fd5b919050565b5f8060408385031215610726575f80fd5b82359150610736602084016106fa565b90509250929050565b5f6020828403121561074f575f80fd5b6106dc826106fa565b5f60208284031215610768575f80fd5b815180151581146106dc575f80fdfeb3bb6029312d1001076133d40b75b7eca92ba54e4963b3ce24e1486a3d5a038ba26469706673582212200d1e16c8bb0789cd0165a0a1aae9536b89d2e2386c7b4a776d46ee523c887d8a64736f6c634300081400330000000000000000000000006a9a65b84843f5fd4ac9a0471c4fc11afffbce4a000000000000000000000000c6d6db7a95dd8aafcd1c1008b8b00bb1fdc2c8f2000000000000000000000000aa0d222436152050501e91dc07a45b1112f8b60f
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106100f0575f3560e01c80638e433bc711610093578063d539139311610063578063d539139314610219578063d547741f1461022d578063f274d53214610240578063fca3b5aa14610253575f80fd5b80638e433bc7146101ad57806391d14854146101c05780639d76ea58146101d3578063a217fddf14610212575f80fd5b80633092afd5116100ce5780633092afd51461016157806336568abe146101745780636455feac14610187578063704b6c021461019a575f80fd5b806301ffc9a7146100f4578063248a9ca31461011c5780632f2ff15d1461014c575b5f80fd5b6101076101023660046106b5565b610266565b60405190151581526020015b60405180910390f35b61013e61012a3660046106e3565b5f9081526020819052604090206001015490565b604051908152602001610113565b61015f61015a366004610715565b61029c565b005b61015f61016f36600461073f565b6102c6565b61015f610182366004610715565b6102e0565b61015f610195366004610715565b610318565b61015f6101a836600461073f565b610339565b61015f6101bb366004610715565b610343565b6101076101ce366004610715565b610432565b6101fa7f0000000000000000000000006a9a65b84843f5fd4ac9a0471c4fc11afffbce4a81565b6040516001600160a01b039091168152602001610113565b61013e5f81565b61013e5f8051602061077883398151915281565b61015f61023b366004610715565b61045a565b61015f61024e366004610715565b61047e565b61015f61026136600461073f565b610488565b5f6001600160e01b03198216637965db0b60e01b148061029657506301ffc9a760e01b6001600160e01b03198316145b92915050565b5f828152602081905260409020600101546102b68161049f565b6102c083836104a9565b50505050565b6102dd5f805160206107788339815191528261045a565b50565b6001600160a01b03811633146103095760405163334bd91960e11b815260040160405180910390fd5b6103138282610538565b505050565b5f8051602061077883398151915261032f8161049f565b61031382846105a1565b6102dd5f8261029c565b5f8051602061077883398151915261035a8161049f565b604051630723eb0360e51b81526001600160a01b0383811660048301527f0000000000000000000000006a9a65b84843f5fd4ac9a0471c4fc11afffbce4a169063e47d6060906024016020604051808303815f875af11580156103bf573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103e39190610758565b156104285760405162461bcd60e51b815260206004820152601060248201526f1859191c88189b1bd8dadb1a5cdd195960821b60448201526064015b60405180910390fd5b6103138284610623565b5f918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b5f828152602081905260409020600101546104748161049f565b6102c08383610538565b5f6104288161049f565b6102dd5f805160206107788339815191528261029c565b6102dd8133610678565b5f6104b48383610432565b610531575f838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556104e93390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610296565b505f610296565b5f6105438383610432565b15610531575f838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610296565b6040516319157fab60e21b8152600481018290526001600160a01b0383811660248301527f0000000000000000000000006a9a65b84843f5fd4ac9a0471c4fc11afffbce4a1690636455feac906044015b5f604051808303815f87803b158015610609575f80fd5b505af115801561061b573d5f803e3d5ffd5b505050505050565b604051638e433bc760e01b8152600481018290526001600160a01b0383811660248301527f0000000000000000000000006a9a65b84843f5fd4ac9a0471c4fc11afffbce4a1690638e433bc7906044016105f2565b6106828282610432565b6106b15760405163e2517d3f60e01b81526001600160a01b03821660048201526024810183905260440161041f565b5050565b5f602082840312156106c5575f80fd5b81356001600160e01b0319811681146106dc575f80fd5b9392505050565b5f602082840312156106f3575f80fd5b5035919050565b80356001600160a01b0381168114610710575f80fd5b919050565b5f8060408385031215610726575f80fd5b82359150610736602084016106fa565b90509250929050565b5f6020828403121561074f575f80fd5b6106dc826106fa565b5f60208284031215610768575f80fd5b815180151581146106dc575f80fdfeb3bb6029312d1001076133d40b75b7eca92ba54e4963b3ce24e1486a3d5a038ba26469706673582212200d1e16c8bb0789cd0165a0a1aae9536b89d2e2386c7b4a776d46ee523c887d8a64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006a9a65b84843f5fd4ac9a0471c4fc11afffbce4a000000000000000000000000c6d6db7a95dd8aafcd1c1008b8b00bb1fdc2c8f2000000000000000000000000aa0d222436152050501e91dc07a45b1112f8b60f
-----Decoded View---------------
Arg [0] : _tokenAddress (address): 0x6A9A65B84843F5fD4aC9a0471C4fc11AFfFBce4a
Arg [1] : admin (address): 0xc6d6db7a95DD8AafcD1C1008B8B00BB1fDC2C8f2
Arg [2] : miner (address): 0xaa0D222436152050501E91DC07A45b1112f8b60f
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000006a9a65b84843f5fd4ac9a0471c4fc11afffbce4a
Arg [1] : 000000000000000000000000c6d6db7a95dd8aafcd1c1008b8b00bb1fdc2c8f2
Arg [2] : 000000000000000000000000aa0d222436152050501e91dc07a45b1112f8b60f
Deployed Bytecode Sourcemap
13828:1732:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9173:204;;;;;;:::i;:::-;;:::i;:::-;;;470:14:1;;463:22;445:41;;433:2;418:18;9173:204:0;;;;;;;;10453:122;;;;;;:::i;:::-;10518:7;10545:12;;;;;;;;;;:22;;;;10453:122;;;;828:25:1;;;816:2;801:18;10453:122:0;682:177:1;10885:138:0;;;;;;:::i;:::-;;:::i;:::-;;15355:97;;;;;;:::i;:::-;;:::i;12022:251::-;;;;;;:::i;:::-;;:::i;14425:132::-;;;;;;:::i;:::-;;:::i;15460:97::-;;;;;;:::i;:::-;;:::i;14565:247::-;;;;;;:::i;:::-;;:::i;9469:138::-;;;;;;:::i;:::-;;:::i;14000:37::-;;;;;;;;-1:-1:-1;;;;;1915:32:1;;;1897:51;;1885:2;1870:18;14000:37:0;1751:203:1;8781:49:0;;8826:4;8781:49;;13925:68;;-1:-1:-1;;;;;;;;;;;13925:68:0;;11316:140;;;;;;:::i;:::-;;:::i;14820:136::-;;;;;;:::i;:::-;;:::i;15254:93::-;;;;;;:::i;:::-;;:::i;9173:204::-;9258:4;-1:-1:-1;;;;;;9282:47:0;;-1:-1:-1;;;9282:47:0;;:87;;-1:-1:-1;;;;;;;;;;6638:40:0;;;9333:36;9275:94;9173:204;-1:-1:-1;;9173:204:0:o;10885:138::-;10518:7;10545:12;;;;;;;;;;:22;;;9065:16;9076:4;9065:10;:16::i;:::-;10990:25:::1;11001:4;11007:7;10990:10;:25::i;:::-;;10885:138:::0;;;:::o;15355:97::-;15413:31;-1:-1:-1;;;;;;;;;;;15437:6:0;15413:10;:31::i;:::-;15355:97;:::o;12022:251::-;-1:-1:-1;;;;;12116:34:0;;4276:10;12116:34;12112:104;;12174:30;;-1:-1:-1;;;12174:30:0;;;;;;;;;;;12112:104;12228:37;12240:4;12246:18;12228:11;:37::i;:::-;;12022:251;;:::o;14425:132::-;-1:-1:-1;;;;;;;;;;;9065:16:0;9076:4;9065:10;:16::i;:::-;14525:24:::1;14531:8;14541:7;14525:5;:24::i;15460:97::-:0;15513:36;8826:4;15543:5;15513:9;:36::i;14565:247::-;-1:-1:-1;;;;;;;;;;;9065:16:0;9076:4;9065:10;:16::i;:::-;14669:44:::1;::::0;-1:-1:-1;;;14669:44:0;;-1:-1:-1;;;;;1915:32:1;;;14669:44:0::1;::::0;::::1;1897:51:1::0;14676:12:0::1;14669:34;::::0;::::1;::::0;1870:18:1;;14669:44:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;14665:103;;;14730:26;::::0;-1:-1:-1;;;14730:26:0;;2443:2:1;14730:26:0::1;::::0;::::1;2425:21:1::0;2482:2;2462:18;;;2455:30;-1:-1:-1;;;2501:18:1;;;2494:46;2557:18;;14730:26:0::1;;;;;;;;14665:103;14780:24;14786:8;14796:7;14780:5;:24::i;9469:138::-:0;9546:4;9570:12;;;;;;;;;;;-1:-1:-1;;;;;9570:29:0;;;;;;;;;;;;;;;9469:138::o;11316:140::-;10518:7;10545:12;;;;;;;;;;:22;;;9065:16;9076:4;9065:10;:16::i;:::-;11422:26:::1;11434:4;11440:7;11422:11;:26::i;14820:136::-:0;8826:4;9065:16;8826:4;9065:10;:16::i;15254:93::-;15309:30;-1:-1:-1;;;;;;;;;;;15332:6:0;15309:9;:30::i;9822:105::-;9889:30;9900:4;4276:10;9889;:30::i;12899:324::-;12976:4;12998:22;13006:4;13012:7;12998;:22::i;:::-;12993:223;;13037:6;:12;;;;;;;;;;;-1:-1:-1;;;;;13037:29:0;;;;;;;;;:36;;-1:-1:-1;;13037:36:0;13069:4;13037:36;;;13120:12;4276:10;;4196:98;13120:12;-1:-1:-1;;;;;13093:40:0;13111:7;-1:-1:-1;;;;;13093:40:0;13105:4;13093:40;;;;;;;;;;-1:-1:-1;13155:4:0;13148:11;;12993:223;-1:-1:-1;13199:5:0;13192:12;;13467:325;13545:4;13566:22;13574:4;13580:7;13566;:22::i;:::-;13562:223;;;13637:5;13605:12;;;;;;;;;;;-1:-1:-1;;;;;13605:29:0;;;;;;;;;;:37;;-1:-1:-1;;13605:37:0;;;13662:40;4276:10;;13605:12;;13662:40;;13637:5;13662:40;-1:-1:-1;13724:4:0;13717:11;;14964:137;15031:62;;-1:-1:-1;;;15031:62:0;;;;;2760:25:1;;;-1:-1:-1;;;;;2821:32:1;;;2801:18;;;2794:60;15049:12:0;15031:45;;;;2733:18:1;;15031:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14964:137;;:::o;15109:::-;15176:62;;-1:-1:-1;;;15176:62:0;;;;;2760:25:1;;;-1:-1:-1;;;;;2821:32:1;;;2801:18;;;2794:60;15194:12:0;15176:45;;;;2733:18:1;;15176:62:0;2586:274:1;10063:201:0;10152:22;10160:4;10166:7;10152;:22::i;:::-;10147:110;;10198:47;;-1:-1:-1;;;10198:47:0;;-1:-1:-1;;;;;3057:32:1;;10198:47:0;;;3039:51:1;3106:18;;;3099:34;;;3012:18;;10198:47:0;2865:274:1;10147:110:0;10063:201;;:::o;14:286:1:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:1;;209:43;;199:71;;266:1;263;256:12;199:71;289:5;14:286;-1:-1:-1;;;14:286:1:o;497:180::-;556:6;609:2;597:9;588:7;584:23;580:32;577:52;;;625:1;622;615:12;577:52;-1:-1:-1;648:23:1;;497:180;-1:-1:-1;497:180:1:o;864:173::-;932:20;;-1:-1:-1;;;;;981:31:1;;971:42;;961:70;;1027:1;1024;1017:12;961:70;864:173;;;:::o;1042:254::-;1110:6;1118;1171:2;1159:9;1150:7;1146:23;1142:32;1139:52;;;1187:1;1184;1177:12;1139:52;1223:9;1210:23;1200:33;;1252:38;1286:2;1275:9;1271:18;1252:38;:::i;:::-;1242:48;;1042:254;;;;;:::o;1301:186::-;1360:6;1413:2;1401:9;1392:7;1388:23;1384:32;1381:52;;;1429:1;1426;1419:12;1381:52;1452:29;1471:9;1452:29;:::i;1959:277::-;2026:6;2079:2;2067:9;2058:7;2054:23;2050:32;2047:52;;;2095:1;2092;2085:12;2047:52;2127:9;2121:16;2180:5;2173:13;2166:21;2159:5;2156:32;2146:60;;2202:1;2199;2192:12
Swarm Source
ipfs://0d1e16c8bb0789cd0165a0a1aae9536b89d2e2386c7b4a776d46ee523c887d8a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.