ERC-20
Overview
Max Total Supply
1,000,000,000 YTP
Holders
754
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
TestToken
Compiler Version
v0.8.27+commit.40a35a09
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.27; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract TestToken is ERC20, ERC20Burnable, AccessControl, ReentrancyGuard { using SafeMath for uint256; bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE"); bytes32 public constant TAX_MANAGER_ROLE = keccak256("TAX_MANAGER_ROLE"); bytes32 public constant TREASURY_MANAGER_ROLE = keccak256("TREASURY_MANAGER_ROLE"); string private tokenName; string private tokenSymbol; address public treasuryHandler; address public taxHandler; uint256 public defaultTaxRate; uint256 public constant MAX_TAX_RATE = 100 * 1e18; // 100% maximum tax rate uint256 public constant MIN_TAXABLE_AMOUNT = 100; // Minimum amount for tax calculation event TreasuryHandlerChanged(address indexed oldAddress, address indexed newAddress); event TaxHandlerChanged(address indexed oldAddress, address indexed newAddress); event DefaultTaxRateChanged(uint256 oldRate, uint256 newRate); event TokenNameChanged(string oldName, string newName); event TokenSymbolChanged(string oldSymbol, string newSymbol); event TaxCollected(address indexed from, address indexed to, uint256 indexed amount); event TokensBurned(address indexed burner, uint256 amount); constructor(string memory _name, string memory _symbol, uint256 _initialSupply) ERC20(_name, _symbol) { tokenName = _name; tokenSymbol = _symbol; defaultTaxRate = 0; _grantRole(DEFAULT_ADMIN_ROLE, _msgSender()); _grantRole(ADMIN_ROLE, _msgSender()); _grantRole(MINTER_ROLE, _msgSender()); _grantRole(BURNER_ROLE, _msgSender()); _grantRole(TAX_MANAGER_ROLE, _msgSender()); _grantRole(TREASURY_MANAGER_ROLE, _msgSender()); _mint(_msgSender(), _initialSupply); emit TokenNameChanged("", _name); emit TokenSymbolChanged("", _symbol); } function name() public view virtual override returns (string memory) { return tokenName; } function symbol() public view virtual override returns (string memory) { return tokenSymbol; } function changeTokenName(string memory newName) external onlyRole(ADMIN_ROLE) { require(bytes(newName).length > 0, "Name cannot be empty"); string memory oldName = tokenName; tokenName = newName; emit TokenNameChanged(oldName, newName); } function changeTokenSymbol(string memory newSymbol) external onlyRole(ADMIN_ROLE) { require(bytes(newSymbol).length > 0, "Symbol cannot be empty"); string memory oldSymbol = tokenSymbol; tokenSymbol = newSymbol; emit TokenSymbolChanged(oldSymbol, newSymbol); } function setTreasuryHandler(address _treasuryHandler) external onlyRole(TREASURY_MANAGER_ROLE) { require(_treasuryHandler != address(0), "Invalid treasury handler address"); address oldTreasuryHandler = treasuryHandler; treasuryHandler = _treasuryHandler; emit TreasuryHandlerChanged(oldTreasuryHandler, _treasuryHandler); } function setTaxHandler(address _taxHandler) external onlyRole(TAX_MANAGER_ROLE) { require(_taxHandler != address(0), "Invalid tax handler address"); address oldTaxHandler = taxHandler; taxHandler = _taxHandler; emit TaxHandlerChanged(oldTaxHandler, _taxHandler); } function setDefaultTaxRate(uint256 _defaultTaxRate) external onlyRole(TAX_MANAGER_ROLE) { require(_defaultTaxRate <= MAX_TAX_RATE, "Tax rate exceeds maximum allowed"); uint256 oldDefaultTaxRate = defaultTaxRate; defaultTaxRate = _defaultTaxRate; emit DefaultTaxRateChanged(oldDefaultTaxRate, _defaultTaxRate); } function mint(address to, uint256 amount) external onlyRole(MINTER_ROLE) { _mint(to, amount); } function burn(uint256 amount) public virtual override onlyRole(BURNER_ROLE) { _burn(_msgSender(), amount); emit TokensBurned(_msgSender(), amount); } function burnFrom(address account, uint256 amount) public virtual override onlyRole(BURNER_ROLE) { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); emit TokensBurned(account, amount); } function calculateTax(address from, address to, uint256 amount) internal returns (uint256) { if (amount < MIN_TAXABLE_AMOUNT) return 0; uint256 taxAmount; if (taxHandler != address(0)) { try ITaxHandler(taxHandler).getTax(from, to, amount) returns (uint256 _taxAmount) { taxAmount = _taxAmount; if (taxAmount > amount) { taxAmount = amount.sub(1); } } catch { taxAmount = amount.mul(defaultTaxRate).div(1e18); } } else { taxAmount = amount.mul(defaultTaxRate).div(1e18); } return taxAmount; } function transferWithTax(address sender, address recipient, uint256 amount) internal nonReentrant { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "ERC20: transfer amount must be greater than zero"); uint256 taxAmount = calculateTax(sender, recipient, amount); uint256 amountAfterTax = amount.sub(taxAmount); _transfer(sender, recipient, amountAfterTax); if (taxAmount > 0 && treasuryHandler != address(0)) { _transfer(sender, treasuryHandler, taxAmount); emit TaxCollected(sender, recipient, taxAmount); } } function transfer(address recipient, uint256 amount) public virtual override returns (bool) { transferWithTax(_msgSender(), recipient, amount); return true; } function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { transferWithTax(sender, recipient, amount); uint256 currentAllowance = allowance(sender, _msgSender()); require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } } interface ITaxHandler { function getTax(address from, address to, uint256 amount) external returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.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 => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ 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 override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @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 override 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 override 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 override 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 `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @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 Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @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. * * _Available since v3.1._ */ 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, an admin role * bearer except when using {AccessControl-_setupRole}. */ 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 `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead 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}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 default value returned by this function, unless * it's overridden. * * 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 override returns (uint8) { return 18; } /** * @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: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, 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}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, 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}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, 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) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, 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) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This 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: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, 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: * * - `account` 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 += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(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); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(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 Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @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 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; /** * @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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 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); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * 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[EIP 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
{ "evmVersion": "paris", "optimizer": { "enabled": false, "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":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_initialSupply","type":"uint256"}],"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":false,"internalType":"uint256","name":"oldRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"DefaultTaxRateChanged","type":"event"},{"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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TaxCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"TaxHandlerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"oldName","type":"string"},{"indexed":false,"internalType":"string","name":"newName","type":"string"}],"name":"TokenNameChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"oldSymbol","type":"string"},{"indexed":false,"internalType":"string","name":"newSymbol","type":"string"}],"name":"TokenSymbolChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"burner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensBurned","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"TreasuryHandlerChanged","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TAX_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_TAXABLE_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TAX_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newName","type":"string"}],"name":"changeTokenName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newSymbol","type":"string"}],"name":"changeTokenSymbol","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":[],"name":"defaultTaxRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"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":"address","name":"to","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":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","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":"uint256","name":"_defaultTaxRate","type":"uint256"}],"name":"setDefaultTaxRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_taxHandler","type":"address"}],"name":"setTaxHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryHandler","type":"address"}],"name":"setTreasuryHandler","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":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxHandler","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"treasuryHandler","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405161494b38038061494b833981810160405281019061003291906106e1565b828281600390816100439190610983565b5080600490816100539190610983565b5050506001600681905550826007908161006d9190610983565b50816008908161007d9190610983565b506000600b819055506100a66000801b61009b61026a60201b60201c565b61027260201b60201c565b6100e37fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756100d861026a60201b60201c565b61027260201b60201c565b6101207f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661011561026a60201b60201c565b61027260201b60201c565b61015d7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84861015261026a60201b60201c565b61027260201b60201c565b61019a7f30f4f48440c1ad721c73a3b5549aa3db7105f00012df64020e3a66b689c0e70b61018f61026a60201b60201c565b61027260201b60201c565b6101d77fede9dcdb0ce99dc7cec9c7be9246ad08b37853683ad91569c187b647ddf5e21c6101cc61026a60201b60201c565b61027260201b60201c565b6101f46101e861026a60201b60201c565b8261035f60201b60201c565b7fe08ba098c56583ff7ce264f98fb97b7ddc5e6af834acc0556b24327f72a555f9836040516102239190610ac5565b60405180910390a17f68023cab388c6052af3fa625f164cd0c14cc9125d57286fbe0d9b384847c4c028260405161025a9190610ac5565b60405180910390a1505050610bf3565b600033905090565b61028282826104c160201b60201c565b61035b5760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061030061026a60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036103ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103c590610b46565b60405180910390fd5b6103e06000838361052c60201b60201c565b80600260008282546103f29190610b95565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516104a39190610bd8565b60405180910390a36104bd6000838361053160201b60201c565b5050565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b505050565b505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61059d82610554565b810181811067ffffffffffffffff821117156105bc576105bb610565565b5b80604052505050565b60006105cf610536565b90506105db8282610594565b919050565b600067ffffffffffffffff8211156105fb576105fa610565565b5b61060482610554565b9050602081019050919050565b60005b8381101561062f578082015181840152602081019050610614565b60008484015250505050565b600061064e610649846105e0565b6105c5565b90508281526020810184848401111561066a5761066961054f565b5b610675848285610611565b509392505050565b600082601f8301126106925761069161054a565b5b81516106a284826020860161063b565b91505092915050565b6000819050919050565b6106be816106ab565b81146106c957600080fd5b50565b6000815190506106db816106b5565b92915050565b6000806000606084860312156106fa576106f9610540565b5b600084015167ffffffffffffffff81111561071857610717610545565b5b6107248682870161067d565b935050602084015167ffffffffffffffff81111561074557610744610545565b5b6107518682870161067d565b9250506040610762868287016106cc565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806107be57607f821691505b6020821081036107d1576107d0610777565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026108397fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826107fc565b61084386836107fc565b95508019841693508086168417925050509392505050565b6000819050919050565b600061088061087b610876846106ab565b61085b565b6106ab565b9050919050565b6000819050919050565b61089a83610865565b6108ae6108a682610887565b848454610809565b825550505050565b600090565b6108c36108b6565b6108ce818484610891565b505050565b5b818110156108f2576108e76000826108bb565b6001810190506108d4565b5050565b601f82111561093757610908816107d7565b610911846107ec565b81016020851015610920578190505b61093461092c856107ec565b8301826108d3565b50505b505050565b600082821c905092915050565b600061095a6000198460080261093c565b1980831691505092915050565b60006109738383610949565b9150826002028217905092915050565b61098c8261076c565b67ffffffffffffffff8111156109a5576109a4610565565b5b6109af82546107a6565b6109ba8282856108f6565b600060209050601f8311600181146109ed57600084156109db578287015190505b6109e58582610967565b865550610a4d565b601f1984166109fb866107d7565b60005b82811015610a23578489015182556001820191506020850194506020810190506109fe565b86831015610a405784890151610a3c601f891682610949565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b50565b6000610a76600083610a55565b9150610a8182610a66565b600082019050919050565b6000610a978261076c565b610aa18185610a55565b9350610ab1818560208601610611565b610aba81610554565b840191505092915050565b60006040820190508181036000830152610ade81610a69565b90508181036020830152610af28184610a8c565b905092915050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000610b30601f83610a55565b9150610b3b82610afa565b602082019050919050565b60006020820190508181036000830152610b5f81610b23565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610ba0826106ab565b9150610bab836106ab565b9250828201905080821115610bc357610bc2610b66565b5b92915050565b610bd2816106ab565b82525050565b6000602082019050610bed6000830184610bc9565b92915050565b613d4980610c026000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c806375b238fc11610125578063a9059cbb116100ad578063d53913931161007c578063d539139314610653578063d53b245b14610671578063d547741f1461068d578063dd62ed3e146106a9578063ebdf690f146106d95761021c565b8063a9059cbb146105cf578063a9373b7b146105ff578063b0018bfc1461061b578063c6d3ab9d146106375761021c565b806393c09a97116100f457806393c09a971461052757806395d89b4114610545578063967a2a7014610563578063a217fddf14610581578063a457c2d71461059f5761021c565b806375b238fc1461049f57806379cc6790146104bd5780638fa81732146104d957806391d14854146104f75761021c565b80632f2ff15d116101a8578063395093511161017757806339509351146103eb57806340c10f191461041b57806342966c6814610437578063488d4a511461045357806370a082311461046f5761021c565b80632f2ff15d14610377578063313ce56714610393578063364706c8146103b157806336568abe146103cf5761021c565b806317889633116101ef57806317889633146102bd57806318160ddd146102db57806323b872dd146102f9578063248a9ca314610329578063282c51f3146103595761021c565b806301ffc9a71461022157806306fdde0314610251578063095ea7b31461026f57806312280ba81461029f575b600080fd5b61023b600480360381019061023691906126d9565b6106f7565b6040516102489190612721565b60405180910390f35b610259610771565b60405161026691906127cc565b60405180910390f35b61028960048036038101906102849190612882565b610803565b6040516102969190612721565b60405180910390f35b6102a7610826565b6040516102b491906128d1565b60405180910390f35b6102c561084c565b6040516102d291906128d1565b60405180910390f35b6102e3610872565b6040516102f091906128fb565b60405180910390f35b610313600480360381019061030e9190612916565b61087c565b6040516103209190612721565b60405180910390f35b610343600480360381019061033e919061299f565b610901565b60405161035091906129db565b60405180910390f35b610361610921565b60405161036e91906129db565b60405180910390f35b610391600480360381019061038c91906129f6565b610945565b005b61039b610966565b6040516103a89190612a52565b60405180910390f35b6103b961096f565b6040516103c691906128fb565b60405180910390f35b6103e960048036038101906103e491906129f6565b610975565b005b61040560048036038101906104009190612882565b6109f8565b6040516104129190612721565b60405180910390f35b61043560048036038101906104309190612882565b610a2f565b005b610451600480360381019061044c9190612a6d565b610a68565b005b61046d60048036038101906104689190612a9a565b610afc565b005b61048960048036038101906104849190612a9a565b610c5b565b60405161049691906128fb565b60405180910390f35b6104a7610ca3565b6040516104b491906129db565b60405180910390f35b6104d760048036038101906104d29190612882565b610cc7565b005b6104e1610dbb565b6040516104ee91906128fb565b60405180910390f35b610511600480360381019061050c91906129f6565b610dc8565b60405161051e9190612721565b60405180910390f35b61052f610e33565b60405161053c91906128fb565b60405180910390f35b61054d610e38565b60405161055a91906127cc565b60405180910390f35b61056b610eca565b60405161057891906129db565b60405180910390f35b610589610eee565b60405161059691906129db565b60405180910390f35b6105b960048036038101906105b49190612882565b610ef5565b6040516105c69190612721565b60405180910390f35b6105e960048036038101906105e49190612882565b610f6c565b6040516105f69190612721565b60405180910390f35b61061960048036038101906106149190612a9a565b610f8a565b005b61063560048036038101906106309190612bfc565b6110ea565b005b610651600480360381019061064c9190612bfc565b611235565b005b61065b611380565b60405161066891906129db565b60405180910390f35b61068b60048036038101906106869190612a6d565b6113a4565b005b6106a760048036038101906106a291906129f6565b611466565b005b6106c360048036038101906106be9190612c45565b611487565b6040516106d091906128fb565b60405180910390f35b6106e161150e565b6040516106ee91906129db565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061076a575061076982611532565b5b9050919050565b60606007805461078090612cb4565b80601f01602080910402602001604051908101604052809291908181526020018280546107ac90612cb4565b80156107f95780601f106107ce576101008083540402835291602001916107f9565b820191906000526020600020905b8154815290600101906020018083116107dc57829003601f168201915b5050505050905090565b60008061080e61159c565b905061081b8185856115a4565b600191505092915050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600254905090565b600061088984848461176d565b600061089c8561089761159c565b611487565b9050828110156108e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d890612d57565b60405180910390fd5b6108f5856108ed61159c565b8584036115a4565b60019150509392505050565b600060056000838152602001908152602001600020600101549050919050565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b61094e82610901565b610957816119c3565b61096183836119d7565b505050565b60006012905090565b600b5481565b61097d61159c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146109ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e190612de9565b60405180910390fd5b6109f48282611ab8565b5050565b600080610a0361159c565b9050610a24818585610a158589611487565b610a1f9190612e38565b6115a4565b600191505092915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610a59816119c3565b610a638383611b9a565b505050565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610a92816119c3565b610aa3610a9d61159c565b83611cf0565b610aab61159c565b73ffffffffffffffffffffffffffffffffffffffff167ffd38818f5291bf0bb3a2a48aadc06ba8757865d1dabd804585338aab3009dcb683604051610af091906128fb565b60405180910390a25050565b7f30f4f48440c1ad721c73a3b5549aa3db7105f00012df64020e3a66b689c0e70b610b26816119c3565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8c90612eb8565b60405180910390fd5b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167ed910c9481701ba32afe0c247572aaece27072f230c8ec769bf245fc0b38de660405160405180910390a3505050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610cf1816119c3565b6000610d0484610cff61159c565b611487565b905082811015610d49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4090612f4a565b60405180910390fd5b610d5d84610d5561159c565b8584036115a4565b610d678484611cf0565b8373ffffffffffffffffffffffffffffffffffffffff167ffd38818f5291bf0bb3a2a48aadc06ba8757865d1dabd804585338aab3009dcb684604051610dad91906128fb565b60405180910390a250505050565b68056bc75e2d6310000081565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606481565b606060088054610e4790612cb4565b80601f0160208091040260200160405190810160405280929190818152602001828054610e7390612cb4565b8015610ec05780601f10610e9557610100808354040283529160200191610ec0565b820191906000526020600020905b815481529060010190602001808311610ea357829003601f168201915b5050505050905090565b7f30f4f48440c1ad721c73a3b5549aa3db7105f00012df64020e3a66b689c0e70b81565b6000801b81565b600080610f0061159c565b90506000610f0e8286611487565b905083811015610f53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4a90612fdc565b60405180910390fd5b610f6082868684036115a4565b60019250505092915050565b6000610f80610f7961159c565b848461176d565b6001905092915050565b7fede9dcdb0ce99dc7cec9c7be9246ad08b37853683ad91569c187b647ddf5e21c610fb4816119c3565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611023576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101a90613048565b60405180910390fd5b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f1bf87992a35ee29395ab494f9adb9a500a7fa60c3082cba0ef02701bb35900d960405160405180910390a3505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611114816119c3565b6000825111611158576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114f906130b4565b60405180910390fd5b60006007805461116790612cb4565b80601f016020809104026020016040519081016040528092919081815260200182805461119390612cb4565b80156111e05780601f106111b5576101008083540402835291602001916111e0565b820191906000526020600020905b8154815290600101906020018083116111c357829003601f168201915b5050505050905082600790816111f69190613280565b507fe08ba098c56583ff7ce264f98fb97b7ddc5e6af834acc0556b24327f72a555f98184604051611228929190613352565b60405180910390a1505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561125f816119c3565b60008251116112a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129a906133d5565b60405180910390fd5b6000600880546112b290612cb4565b80601f01602080910402602001604051908101604052809291908181526020018280546112de90612cb4565b801561132b5780601f106113005761010080835404028352916020019161132b565b820191906000526020600020905b81548152906001019060200180831161130e57829003601f168201915b5050505050905082600890816113419190613280565b507f68023cab388c6052af3fa625f164cd0c14cc9125d57286fbe0d9b384847c4c028184604051611373929190613352565b60405180910390a1505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b7f30f4f48440c1ad721c73a3b5549aa3db7105f00012df64020e3a66b689c0e70b6113ce816119c3565b68056bc75e2d6310000082111561141a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141190613441565b60405180910390fd5b6000600b54905082600b819055507f813db2669d8b06ff2415d05513946414c439b5d0b4ebaee64c6da40f60e309d58184604051611459929190613461565b60405180910390a1505050565b61146f82610901565b611478816119c3565b6114828383611ab8565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b7fede9dcdb0ce99dc7cec9c7be9246ad08b37853683ad91569c187b647ddf5e21c81565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611613576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160a906134fc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611682576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116799061358e565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161176091906128fb565b60405180910390a3505050565b611775611ebd565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036117e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117db90613620565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611853576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184a906136b2565b60405180910390fd5b60008111611896576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188d90613744565b60405180910390fd5b60006118a3848484611f0c565b905060006118ba82846120b390919063ffffffff16565b90506118c78585836120c9565b6000821180156119265750600073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b156119b45761195885600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846120c9565b818473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167f5d37fd68fe66745a199f8c603e00ae02183f4aabb8ec0089589b0b40c4ead5e160405160405180910390a45b50506119be61233f565b505050565b6119d4816119cf61159c565b612349565b50565b6119e18282610dc8565b611ab45760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611a5961159c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611ac28282610dc8565b15611b965760006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611b3b61159c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c00906137b0565b60405180910390fd5b611c15600083836123ce565b8060026000828254611c279190612e38565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611cd891906128fb565b60405180910390a3611cec600083836123d3565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5690613842565b60405180910390fd5b611d6b826000836123ce565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de8906138d4565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611ea491906128fb565b60405180910390a3611eb8836000846123d3565b505050565b600260065403611f02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef990613940565b60405180910390fd5b6002600681905550565b60006064821015611f2057600090506120ac565b60008073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461207557600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d7ad21ac8686866040518463ffffffff1660e01b8152600401611fd693929190613960565b6020604051808303816000875af192505050801561201257506040513d601f19601f8201168201806040525081019061200f91906139ac565b60015b61204c57612045670de0b6b3a7640000612037600b54866123d890919063ffffffff16565b6123ee90919063ffffffff16565b9050612070565b8091508382111561206e5761206b6001856120b390919063ffffffff16565b91505b505b6120a7565b6120a4670de0b6b3a7640000612096600b54866123d890919063ffffffff16565b6123ee90919063ffffffff16565b90505b809150505b9392505050565b600081836120c191906139d9565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612138576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212f90613620565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036121a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219e906136b2565b60405180910390fd5b6121b28383836123ce565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612238576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222f90613a7f565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161232691906128fb565b60405180910390a36123398484846123d3565b50505050565b6001600681905550565b6123538282610dc8565b6123ca5761236081612404565b61236e8360001c6020612431565b60405160200161237f929190613b73565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c191906127cc565b60405180910390fd5b5050565b505050565b505050565b600081836123e69190613bad565b905092915050565b600081836123fc9190613c1e565b905092915050565b606061242a8273ffffffffffffffffffffffffffffffffffffffff16601460ff16612431565b9050919050565b6060600060028360026124449190613bad565b61244e9190612e38565b67ffffffffffffffff81111561246757612466612ad1565b5b6040519080825280601f01601f1916602001820160405280156124995781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106124d1576124d0613c4f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061253557612534613c4f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026125759190613bad565b61257f9190612e38565b90505b600181111561261f577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106125c1576125c0613c4f565b5b1a60f81b8282815181106125d8576125d7613c4f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061261890613c7e565b9050612582565b5060008414612663576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265a90613cf3565b60405180910390fd5b8091505092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6126b681612681565b81146126c157600080fd5b50565b6000813590506126d3816126ad565b92915050565b6000602082840312156126ef576126ee612677565b5b60006126fd848285016126c4565b91505092915050565b60008115159050919050565b61271b81612706565b82525050565b60006020820190506127366000830184612712565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561277657808201518184015260208101905061275b565b60008484015250505050565b6000601f19601f8301169050919050565b600061279e8261273c565b6127a88185612747565b93506127b8818560208601612758565b6127c181612782565b840191505092915050565b600060208201905081810360008301526127e68184612793565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612819826127ee565b9050919050565b6128298161280e565b811461283457600080fd5b50565b60008135905061284681612820565b92915050565b6000819050919050565b61285f8161284c565b811461286a57600080fd5b50565b60008135905061287c81612856565b92915050565b6000806040838503121561289957612898612677565b5b60006128a785828601612837565b92505060206128b88582860161286d565b9150509250929050565b6128cb8161280e565b82525050565b60006020820190506128e660008301846128c2565b92915050565b6128f58161284c565b82525050565b600060208201905061291060008301846128ec565b92915050565b60008060006060848603121561292f5761292e612677565b5b600061293d86828701612837565b935050602061294e86828701612837565b925050604061295f8682870161286d565b9150509250925092565b6000819050919050565b61297c81612969565b811461298757600080fd5b50565b60008135905061299981612973565b92915050565b6000602082840312156129b5576129b4612677565b5b60006129c38482850161298a565b91505092915050565b6129d581612969565b82525050565b60006020820190506129f060008301846129cc565b92915050565b60008060408385031215612a0d57612a0c612677565b5b6000612a1b8582860161298a565b9250506020612a2c85828601612837565b9150509250929050565b600060ff82169050919050565b612a4c81612a36565b82525050565b6000602082019050612a676000830184612a43565b92915050565b600060208284031215612a8357612a82612677565b5b6000612a918482850161286d565b91505092915050565b600060208284031215612ab057612aaf612677565b5b6000612abe84828501612837565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612b0982612782565b810181811067ffffffffffffffff82111715612b2857612b27612ad1565b5b80604052505050565b6000612b3b61266d565b9050612b478282612b00565b919050565b600067ffffffffffffffff821115612b6757612b66612ad1565b5b612b7082612782565b9050602081019050919050565b82818337600083830152505050565b6000612b9f612b9a84612b4c565b612b31565b905082815260208101848484011115612bbb57612bba612acc565b5b612bc6848285612b7d565b509392505050565b600082601f830112612be357612be2612ac7565b5b8135612bf3848260208601612b8c565b91505092915050565b600060208284031215612c1257612c11612677565b5b600082013567ffffffffffffffff811115612c3057612c2f61267c565b5b612c3c84828501612bce565b91505092915050565b60008060408385031215612c5c57612c5b612677565b5b6000612c6a85828601612837565b9250506020612c7b85828601612837565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612ccc57607f821691505b602082108103612cdf57612cde612c85565b5b50919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b6000612d41602883612747565b9150612d4c82612ce5565b604082019050919050565b60006020820190508181036000830152612d7081612d34565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612dd3602f83612747565b9150612dde82612d77565b604082019050919050565b60006020820190508181036000830152612e0281612dc6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612e438261284c565b9150612e4e8361284c565b9250828201905080821115612e6657612e65612e09565b5b92915050565b7f496e76616c6964207461782068616e646c657220616464726573730000000000600082015250565b6000612ea2601b83612747565b9150612ead82612e6c565b602082019050919050565b60006020820190508181036000830152612ed181612e95565b9050919050565b7f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000612f34602483612747565b9150612f3f82612ed8565b604082019050919050565b60006020820190508181036000830152612f6381612f27565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000612fc6602583612747565b9150612fd182612f6a565b604082019050919050565b60006020820190508181036000830152612ff581612fb9565b9050919050565b7f496e76616c69642074726561737572792068616e646c65722061646472657373600082015250565b6000613032602083612747565b915061303d82612ffc565b602082019050919050565b6000602082019050818103600083015261306181613025565b9050919050565b7f4e616d652063616e6e6f7420626520656d707479000000000000000000000000600082015250565b600061309e601483612747565b91506130a982613068565b602082019050919050565b600060208201905081810360008301526130cd81613091565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026131367fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826130f9565b61314086836130f9565b95508019841693508086168417925050509392505050565b6000819050919050565b600061317d6131786131738461284c565b613158565b61284c565b9050919050565b6000819050919050565b61319783613162565b6131ab6131a382613184565b848454613106565b825550505050565b600090565b6131c06131b3565b6131cb81848461318e565b505050565b5b818110156131ef576131e46000826131b8565b6001810190506131d1565b5050565b601f82111561323457613205816130d4565b61320e846130e9565b8101602085101561321d578190505b613231613229856130e9565b8301826131d0565b50505b505050565b600082821c905092915050565b600061325760001984600802613239565b1980831691505092915050565b60006132708383613246565b9150826002028217905092915050565b6132898261273c565b67ffffffffffffffff8111156132a2576132a1612ad1565b5b6132ac8254612cb4565b6132b78282856131f3565b600060209050601f8311600181146132ea57600084156132d8578287015190505b6132e28582613264565b86555061334a565b601f1984166132f8866130d4565b60005b82811015613320578489015182556001820191506020850194506020810190506132fb565b8683101561333d5784890151613339601f891682613246565b8355505b6001600288020188555050505b505050505050565b6000604082019050818103600083015261336c8185612793565b905081810360208301526133808184612793565b90509392505050565b7f53796d626f6c2063616e6e6f7420626520656d70747900000000000000000000600082015250565b60006133bf601683612747565b91506133ca82613389565b602082019050919050565b600060208201905081810360008301526133ee816133b2565b9050919050565b7f54617820726174652065786365656473206d6178696d756d20616c6c6f776564600082015250565b600061342b602083612747565b9150613436826133f5565b602082019050919050565b6000602082019050818103600083015261345a8161341e565b9050919050565b600060408201905061347660008301856128ec565b61348360208301846128ec565b9392505050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006134e6602483612747565b91506134f18261348a565b604082019050919050565b60006020820190508181036000830152613515816134d9565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000613578602283612747565b91506135838261351c565b604082019050919050565b600060208201905081810360008301526135a78161356b565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061360a602583612747565b9150613615826135ae565b604082019050919050565b60006020820190508181036000830152613639816135fd565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061369c602383612747565b91506136a782613640565b604082019050919050565b600060208201905081810360008301526136cb8161368f565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206d757374206265206760008201527f726561746572207468616e207a65726f00000000000000000000000000000000602082015250565b600061372e603083612747565b9150613739826136d2565b604082019050919050565b6000602082019050818103600083015261375d81613721565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b600061379a601f83612747565b91506137a582613764565b602082019050919050565b600060208201905081810360008301526137c98161378d565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061382c602183612747565b9150613837826137d0565b604082019050919050565b6000602082019050818103600083015261385b8161381f565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b60006138be602283612747565b91506138c982613862565b604082019050919050565b600060208201905081810360008301526138ed816138b1565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061392a601f83612747565b9150613935826138f4565b602082019050919050565b600060208201905081810360008301526139598161391d565b9050919050565b600060608201905061397560008301866128c2565b61398260208301856128c2565b61398f60408301846128ec565b949350505050565b6000815190506139a681612856565b92915050565b6000602082840312156139c2576139c1612677565b5b60006139d084828501613997565b91505092915050565b60006139e48261284c565b91506139ef8361284c565b9250828203905081811115613a0757613a06612e09565b5b92915050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000613a69602683612747565b9150613a7482613a0d565b604082019050919050565b60006020820190508181036000830152613a9881613a5c565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000613ae0601783613a9f565b9150613aeb82613aaa565b601782019050919050565b6000613b018261273c565b613b0b8185613a9f565b9350613b1b818560208601612758565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000613b5d601183613a9f565b9150613b6882613b27565b601182019050919050565b6000613b7e82613ad3565b9150613b8a8285613af6565b9150613b9582613b50565b9150613ba18284613af6565b91508190509392505050565b6000613bb88261284c565b9150613bc38361284c565b9250828202613bd18161284c565b91508282048414831517613be857613be7612e09565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613c298261284c565b9150613c348361284c565b925082613c4457613c43613bef565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613c898261284c565b915060008203613c9c57613c9b612e09565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000613cdd602083612747565b9150613ce882613ca7565b602082019050919050565b60006020820190508181036000830152613d0c81613cd0565b905091905056fea264697066735822122037eb5d05878331eef4102330a8e08953d2577f31a16d6e38dbf13f7762c699df64736f6c634300081b0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000033b2e3c9fd0803ce80000000000000000000000000000000000000000000000000000000000000000000009596f75725472756d70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035954500000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061021c5760003560e01c806375b238fc11610125578063a9059cbb116100ad578063d53913931161007c578063d539139314610653578063d53b245b14610671578063d547741f1461068d578063dd62ed3e146106a9578063ebdf690f146106d95761021c565b8063a9059cbb146105cf578063a9373b7b146105ff578063b0018bfc1461061b578063c6d3ab9d146106375761021c565b806393c09a97116100f457806393c09a971461052757806395d89b4114610545578063967a2a7014610563578063a217fddf14610581578063a457c2d71461059f5761021c565b806375b238fc1461049f57806379cc6790146104bd5780638fa81732146104d957806391d14854146104f75761021c565b80632f2ff15d116101a8578063395093511161017757806339509351146103eb57806340c10f191461041b57806342966c6814610437578063488d4a511461045357806370a082311461046f5761021c565b80632f2ff15d14610377578063313ce56714610393578063364706c8146103b157806336568abe146103cf5761021c565b806317889633116101ef57806317889633146102bd57806318160ddd146102db57806323b872dd146102f9578063248a9ca314610329578063282c51f3146103595761021c565b806301ffc9a71461022157806306fdde0314610251578063095ea7b31461026f57806312280ba81461029f575b600080fd5b61023b600480360381019061023691906126d9565b6106f7565b6040516102489190612721565b60405180910390f35b610259610771565b60405161026691906127cc565b60405180910390f35b61028960048036038101906102849190612882565b610803565b6040516102969190612721565b60405180910390f35b6102a7610826565b6040516102b491906128d1565b60405180910390f35b6102c561084c565b6040516102d291906128d1565b60405180910390f35b6102e3610872565b6040516102f091906128fb565b60405180910390f35b610313600480360381019061030e9190612916565b61087c565b6040516103209190612721565b60405180910390f35b610343600480360381019061033e919061299f565b610901565b60405161035091906129db565b60405180910390f35b610361610921565b60405161036e91906129db565b60405180910390f35b610391600480360381019061038c91906129f6565b610945565b005b61039b610966565b6040516103a89190612a52565b60405180910390f35b6103b961096f565b6040516103c691906128fb565b60405180910390f35b6103e960048036038101906103e491906129f6565b610975565b005b61040560048036038101906104009190612882565b6109f8565b6040516104129190612721565b60405180910390f35b61043560048036038101906104309190612882565b610a2f565b005b610451600480360381019061044c9190612a6d565b610a68565b005b61046d60048036038101906104689190612a9a565b610afc565b005b61048960048036038101906104849190612a9a565b610c5b565b60405161049691906128fb565b60405180910390f35b6104a7610ca3565b6040516104b491906129db565b60405180910390f35b6104d760048036038101906104d29190612882565b610cc7565b005b6104e1610dbb565b6040516104ee91906128fb565b60405180910390f35b610511600480360381019061050c91906129f6565b610dc8565b60405161051e9190612721565b60405180910390f35b61052f610e33565b60405161053c91906128fb565b60405180910390f35b61054d610e38565b60405161055a91906127cc565b60405180910390f35b61056b610eca565b60405161057891906129db565b60405180910390f35b610589610eee565b60405161059691906129db565b60405180910390f35b6105b960048036038101906105b49190612882565b610ef5565b6040516105c69190612721565b60405180910390f35b6105e960048036038101906105e49190612882565b610f6c565b6040516105f69190612721565b60405180910390f35b61061960048036038101906106149190612a9a565b610f8a565b005b61063560048036038101906106309190612bfc565b6110ea565b005b610651600480360381019061064c9190612bfc565b611235565b005b61065b611380565b60405161066891906129db565b60405180910390f35b61068b60048036038101906106869190612a6d565b6113a4565b005b6106a760048036038101906106a291906129f6565b611466565b005b6106c360048036038101906106be9190612c45565b611487565b6040516106d091906128fb565b60405180910390f35b6106e161150e565b6040516106ee91906129db565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061076a575061076982611532565b5b9050919050565b60606007805461078090612cb4565b80601f01602080910402602001604051908101604052809291908181526020018280546107ac90612cb4565b80156107f95780601f106107ce576101008083540402835291602001916107f9565b820191906000526020600020905b8154815290600101906020018083116107dc57829003601f168201915b5050505050905090565b60008061080e61159c565b905061081b8185856115a4565b600191505092915050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600254905090565b600061088984848461176d565b600061089c8561089761159c565b611487565b9050828110156108e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d890612d57565b60405180910390fd5b6108f5856108ed61159c565b8584036115a4565b60019150509392505050565b600060056000838152602001908152602001600020600101549050919050565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b61094e82610901565b610957816119c3565b61096183836119d7565b505050565b60006012905090565b600b5481565b61097d61159c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146109ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e190612de9565b60405180910390fd5b6109f48282611ab8565b5050565b600080610a0361159c565b9050610a24818585610a158589611487565b610a1f9190612e38565b6115a4565b600191505092915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610a59816119c3565b610a638383611b9a565b505050565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610a92816119c3565b610aa3610a9d61159c565b83611cf0565b610aab61159c565b73ffffffffffffffffffffffffffffffffffffffff167ffd38818f5291bf0bb3a2a48aadc06ba8757865d1dabd804585338aab3009dcb683604051610af091906128fb565b60405180910390a25050565b7f30f4f48440c1ad721c73a3b5549aa3db7105f00012df64020e3a66b689c0e70b610b26816119c3565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8c90612eb8565b60405180910390fd5b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167ed910c9481701ba32afe0c247572aaece27072f230c8ec769bf245fc0b38de660405160405180910390a3505050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610cf1816119c3565b6000610d0484610cff61159c565b611487565b905082811015610d49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4090612f4a565b60405180910390fd5b610d5d84610d5561159c565b8584036115a4565b610d678484611cf0565b8373ffffffffffffffffffffffffffffffffffffffff167ffd38818f5291bf0bb3a2a48aadc06ba8757865d1dabd804585338aab3009dcb684604051610dad91906128fb565b60405180910390a250505050565b68056bc75e2d6310000081565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606481565b606060088054610e4790612cb4565b80601f0160208091040260200160405190810160405280929190818152602001828054610e7390612cb4565b8015610ec05780601f10610e9557610100808354040283529160200191610ec0565b820191906000526020600020905b815481529060010190602001808311610ea357829003601f168201915b5050505050905090565b7f30f4f48440c1ad721c73a3b5549aa3db7105f00012df64020e3a66b689c0e70b81565b6000801b81565b600080610f0061159c565b90506000610f0e8286611487565b905083811015610f53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4a90612fdc565b60405180910390fd5b610f6082868684036115a4565b60019250505092915050565b6000610f80610f7961159c565b848461176d565b6001905092915050565b7fede9dcdb0ce99dc7cec9c7be9246ad08b37853683ad91569c187b647ddf5e21c610fb4816119c3565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611023576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101a90613048565b60405180910390fd5b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f1bf87992a35ee29395ab494f9adb9a500a7fa60c3082cba0ef02701bb35900d960405160405180910390a3505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611114816119c3565b6000825111611158576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114f906130b4565b60405180910390fd5b60006007805461116790612cb4565b80601f016020809104026020016040519081016040528092919081815260200182805461119390612cb4565b80156111e05780601f106111b5576101008083540402835291602001916111e0565b820191906000526020600020905b8154815290600101906020018083116111c357829003601f168201915b5050505050905082600790816111f69190613280565b507fe08ba098c56583ff7ce264f98fb97b7ddc5e6af834acc0556b24327f72a555f98184604051611228929190613352565b60405180910390a1505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561125f816119c3565b60008251116112a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129a906133d5565b60405180910390fd5b6000600880546112b290612cb4565b80601f01602080910402602001604051908101604052809291908181526020018280546112de90612cb4565b801561132b5780601f106113005761010080835404028352916020019161132b565b820191906000526020600020905b81548152906001019060200180831161130e57829003601f168201915b5050505050905082600890816113419190613280565b507f68023cab388c6052af3fa625f164cd0c14cc9125d57286fbe0d9b384847c4c028184604051611373929190613352565b60405180910390a1505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b7f30f4f48440c1ad721c73a3b5549aa3db7105f00012df64020e3a66b689c0e70b6113ce816119c3565b68056bc75e2d6310000082111561141a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141190613441565b60405180910390fd5b6000600b54905082600b819055507f813db2669d8b06ff2415d05513946414c439b5d0b4ebaee64c6da40f60e309d58184604051611459929190613461565b60405180910390a1505050565b61146f82610901565b611478816119c3565b6114828383611ab8565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b7fede9dcdb0ce99dc7cec9c7be9246ad08b37853683ad91569c187b647ddf5e21c81565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611613576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160a906134fc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611682576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116799061358e565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161176091906128fb565b60405180910390a3505050565b611775611ebd565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036117e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117db90613620565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611853576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184a906136b2565b60405180910390fd5b60008111611896576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188d90613744565b60405180910390fd5b60006118a3848484611f0c565b905060006118ba82846120b390919063ffffffff16565b90506118c78585836120c9565b6000821180156119265750600073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b156119b45761195885600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846120c9565b818473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167f5d37fd68fe66745a199f8c603e00ae02183f4aabb8ec0089589b0b40c4ead5e160405160405180910390a45b50506119be61233f565b505050565b6119d4816119cf61159c565b612349565b50565b6119e18282610dc8565b611ab45760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611a5961159c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611ac28282610dc8565b15611b965760006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611b3b61159c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c00906137b0565b60405180910390fd5b611c15600083836123ce565b8060026000828254611c279190612e38565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611cd891906128fb565b60405180910390a3611cec600083836123d3565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5690613842565b60405180910390fd5b611d6b826000836123ce565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de8906138d4565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611ea491906128fb565b60405180910390a3611eb8836000846123d3565b505050565b600260065403611f02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef990613940565b60405180910390fd5b6002600681905550565b60006064821015611f2057600090506120ac565b60008073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461207557600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d7ad21ac8686866040518463ffffffff1660e01b8152600401611fd693929190613960565b6020604051808303816000875af192505050801561201257506040513d601f19601f8201168201806040525081019061200f91906139ac565b60015b61204c57612045670de0b6b3a7640000612037600b54866123d890919063ffffffff16565b6123ee90919063ffffffff16565b9050612070565b8091508382111561206e5761206b6001856120b390919063ffffffff16565b91505b505b6120a7565b6120a4670de0b6b3a7640000612096600b54866123d890919063ffffffff16565b6123ee90919063ffffffff16565b90505b809150505b9392505050565b600081836120c191906139d9565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612138576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212f90613620565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036121a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219e906136b2565b60405180910390fd5b6121b28383836123ce565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612238576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222f90613a7f565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161232691906128fb565b60405180910390a36123398484846123d3565b50505050565b6001600681905550565b6123538282610dc8565b6123ca5761236081612404565b61236e8360001c6020612431565b60405160200161237f929190613b73565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c191906127cc565b60405180910390fd5b5050565b505050565b505050565b600081836123e69190613bad565b905092915050565b600081836123fc9190613c1e565b905092915050565b606061242a8273ffffffffffffffffffffffffffffffffffffffff16601460ff16612431565b9050919050565b6060600060028360026124449190613bad565b61244e9190612e38565b67ffffffffffffffff81111561246757612466612ad1565b5b6040519080825280601f01601f1916602001820160405280156124995781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106124d1576124d0613c4f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061253557612534613c4f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026125759190613bad565b61257f9190612e38565b90505b600181111561261f577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106125c1576125c0613c4f565b5b1a60f81b8282815181106125d8576125d7613c4f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061261890613c7e565b9050612582565b5060008414612663576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265a90613cf3565b60405180910390fd5b8091505092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6126b681612681565b81146126c157600080fd5b50565b6000813590506126d3816126ad565b92915050565b6000602082840312156126ef576126ee612677565b5b60006126fd848285016126c4565b91505092915050565b60008115159050919050565b61271b81612706565b82525050565b60006020820190506127366000830184612712565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561277657808201518184015260208101905061275b565b60008484015250505050565b6000601f19601f8301169050919050565b600061279e8261273c565b6127a88185612747565b93506127b8818560208601612758565b6127c181612782565b840191505092915050565b600060208201905081810360008301526127e68184612793565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612819826127ee565b9050919050565b6128298161280e565b811461283457600080fd5b50565b60008135905061284681612820565b92915050565b6000819050919050565b61285f8161284c565b811461286a57600080fd5b50565b60008135905061287c81612856565b92915050565b6000806040838503121561289957612898612677565b5b60006128a785828601612837565b92505060206128b88582860161286d565b9150509250929050565b6128cb8161280e565b82525050565b60006020820190506128e660008301846128c2565b92915050565b6128f58161284c565b82525050565b600060208201905061291060008301846128ec565b92915050565b60008060006060848603121561292f5761292e612677565b5b600061293d86828701612837565b935050602061294e86828701612837565b925050604061295f8682870161286d565b9150509250925092565b6000819050919050565b61297c81612969565b811461298757600080fd5b50565b60008135905061299981612973565b92915050565b6000602082840312156129b5576129b4612677565b5b60006129c38482850161298a565b91505092915050565b6129d581612969565b82525050565b60006020820190506129f060008301846129cc565b92915050565b60008060408385031215612a0d57612a0c612677565b5b6000612a1b8582860161298a565b9250506020612a2c85828601612837565b9150509250929050565b600060ff82169050919050565b612a4c81612a36565b82525050565b6000602082019050612a676000830184612a43565b92915050565b600060208284031215612a8357612a82612677565b5b6000612a918482850161286d565b91505092915050565b600060208284031215612ab057612aaf612677565b5b6000612abe84828501612837565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612b0982612782565b810181811067ffffffffffffffff82111715612b2857612b27612ad1565b5b80604052505050565b6000612b3b61266d565b9050612b478282612b00565b919050565b600067ffffffffffffffff821115612b6757612b66612ad1565b5b612b7082612782565b9050602081019050919050565b82818337600083830152505050565b6000612b9f612b9a84612b4c565b612b31565b905082815260208101848484011115612bbb57612bba612acc565b5b612bc6848285612b7d565b509392505050565b600082601f830112612be357612be2612ac7565b5b8135612bf3848260208601612b8c565b91505092915050565b600060208284031215612c1257612c11612677565b5b600082013567ffffffffffffffff811115612c3057612c2f61267c565b5b612c3c84828501612bce565b91505092915050565b60008060408385031215612c5c57612c5b612677565b5b6000612c6a85828601612837565b9250506020612c7b85828601612837565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612ccc57607f821691505b602082108103612cdf57612cde612c85565b5b50919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b6000612d41602883612747565b9150612d4c82612ce5565b604082019050919050565b60006020820190508181036000830152612d7081612d34565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612dd3602f83612747565b9150612dde82612d77565b604082019050919050565b60006020820190508181036000830152612e0281612dc6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612e438261284c565b9150612e4e8361284c565b9250828201905080821115612e6657612e65612e09565b5b92915050565b7f496e76616c6964207461782068616e646c657220616464726573730000000000600082015250565b6000612ea2601b83612747565b9150612ead82612e6c565b602082019050919050565b60006020820190508181036000830152612ed181612e95565b9050919050565b7f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000612f34602483612747565b9150612f3f82612ed8565b604082019050919050565b60006020820190508181036000830152612f6381612f27565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000612fc6602583612747565b9150612fd182612f6a565b604082019050919050565b60006020820190508181036000830152612ff581612fb9565b9050919050565b7f496e76616c69642074726561737572792068616e646c65722061646472657373600082015250565b6000613032602083612747565b915061303d82612ffc565b602082019050919050565b6000602082019050818103600083015261306181613025565b9050919050565b7f4e616d652063616e6e6f7420626520656d707479000000000000000000000000600082015250565b600061309e601483612747565b91506130a982613068565b602082019050919050565b600060208201905081810360008301526130cd81613091565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026131367fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826130f9565b61314086836130f9565b95508019841693508086168417925050509392505050565b6000819050919050565b600061317d6131786131738461284c565b613158565b61284c565b9050919050565b6000819050919050565b61319783613162565b6131ab6131a382613184565b848454613106565b825550505050565b600090565b6131c06131b3565b6131cb81848461318e565b505050565b5b818110156131ef576131e46000826131b8565b6001810190506131d1565b5050565b601f82111561323457613205816130d4565b61320e846130e9565b8101602085101561321d578190505b613231613229856130e9565b8301826131d0565b50505b505050565b600082821c905092915050565b600061325760001984600802613239565b1980831691505092915050565b60006132708383613246565b9150826002028217905092915050565b6132898261273c565b67ffffffffffffffff8111156132a2576132a1612ad1565b5b6132ac8254612cb4565b6132b78282856131f3565b600060209050601f8311600181146132ea57600084156132d8578287015190505b6132e28582613264565b86555061334a565b601f1984166132f8866130d4565b60005b82811015613320578489015182556001820191506020850194506020810190506132fb565b8683101561333d5784890151613339601f891682613246565b8355505b6001600288020188555050505b505050505050565b6000604082019050818103600083015261336c8185612793565b905081810360208301526133808184612793565b90509392505050565b7f53796d626f6c2063616e6e6f7420626520656d70747900000000000000000000600082015250565b60006133bf601683612747565b91506133ca82613389565b602082019050919050565b600060208201905081810360008301526133ee816133b2565b9050919050565b7f54617820726174652065786365656473206d6178696d756d20616c6c6f776564600082015250565b600061342b602083612747565b9150613436826133f5565b602082019050919050565b6000602082019050818103600083015261345a8161341e565b9050919050565b600060408201905061347660008301856128ec565b61348360208301846128ec565b9392505050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006134e6602483612747565b91506134f18261348a565b604082019050919050565b60006020820190508181036000830152613515816134d9565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000613578602283612747565b91506135838261351c565b604082019050919050565b600060208201905081810360008301526135a78161356b565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061360a602583612747565b9150613615826135ae565b604082019050919050565b60006020820190508181036000830152613639816135fd565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061369c602383612747565b91506136a782613640565b604082019050919050565b600060208201905081810360008301526136cb8161368f565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206d757374206265206760008201527f726561746572207468616e207a65726f00000000000000000000000000000000602082015250565b600061372e603083612747565b9150613739826136d2565b604082019050919050565b6000602082019050818103600083015261375d81613721565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b600061379a601f83612747565b91506137a582613764565b602082019050919050565b600060208201905081810360008301526137c98161378d565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061382c602183612747565b9150613837826137d0565b604082019050919050565b6000602082019050818103600083015261385b8161381f565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b60006138be602283612747565b91506138c982613862565b604082019050919050565b600060208201905081810360008301526138ed816138b1565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061392a601f83612747565b9150613935826138f4565b602082019050919050565b600060208201905081810360008301526139598161391d565b9050919050565b600060608201905061397560008301866128c2565b61398260208301856128c2565b61398f60408301846128ec565b949350505050565b6000815190506139a681612856565b92915050565b6000602082840312156139c2576139c1612677565b5b60006139d084828501613997565b91505092915050565b60006139e48261284c565b91506139ef8361284c565b9250828203905081811115613a0757613a06612e09565b5b92915050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000613a69602683612747565b9150613a7482613a0d565b604082019050919050565b60006020820190508181036000830152613a9881613a5c565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000613ae0601783613a9f565b9150613aeb82613aaa565b601782019050919050565b6000613b018261273c565b613b0b8185613a9f565b9350613b1b818560208601612758565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000613b5d601183613a9f565b9150613b6882613b27565b601182019050919050565b6000613b7e82613ad3565b9150613b8a8285613af6565b9150613b9582613b50565b9150613ba18284613af6565b91508190509392505050565b6000613bb88261284c565b9150613bc38361284c565b9250828202613bd18161284c565b91508282048414831517613be857613be7612e09565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613c298261284c565b9150613c348361284c565b925082613c4457613c43613bef565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613c898261284c565b915060008203613c9c57613c9b612e09565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000613cdd602083612747565b9150613ce882613ca7565b602082019050919050565b60006020820190508181036000830152613d0c81613cd0565b905091905056fea264697066735822122037eb5d05878331eef4102330a8e08953d2577f31a16d6e38dbf13f7762c699df64736f6c634300081b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000033b2e3c9fd0803ce80000000000000000000000000000000000000000000000000000000000000000000009596f75725472756d70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035954500000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): YourTrump
Arg [1] : _symbol (string): YTP
Arg [2] : _initialSupply (uint256): 1000000000000000000000000000
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [4] : 596f75725472756d700000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 5954500000000000000000000000000000000000000000000000000000000000
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.