Transactions
Token Transfers
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- MintGenerator
- Optimization enabled
- false
- Compiler version
- v0.8.1+commit.df193b15
- EVM Version
- istanbul
- Verified at
- 2026-03-25T22:33:26.126235Z
Constructor Arguments
000000000000000000000000bfaa7a85d2c737e31341d6cb11d5eea63d23684a000000000000000000000000f72e2d5d025cbce9ce4d25e5ac4a5c3437ff8d26
Arg [0] (address) : 0xbfaa7a85d2c737e31341d6cb11d5eea63d23684a
Arg [1] (address) : 0xf72e2d5d025cbce9ce4d25e5ac4a5c3437ff8d26
MintGenerator.sol
// SPDX-License-Identifier: UNLICENSED
// ALL RIGHTS RESERVED
// Unicrypt by SDDTech reserves all rights on this code. You may NOT copy these contracts.
// This contract generates ENMT tokens and registers them in the Unicrypt ENMT MintFactory.
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./Ownable.sol";
import "./ENMT.sol";
import "./MintFactory.sol";
import "./TokenFees.sol";
interface IMintFactory {
function registerToken (address _tokenOwner, address _tokenAddress) external;
function tokenGeneratorsLength() external view returns (uint256);
}
contract MintGenerator is Ownable {
IMintFactory public MINT_FACTORY;
ITokenFees public TOKEN_FEES;
constructor(address _mintFactory, address _tokenFees) {
MINT_FACTORY = IMintFactory(_mintFactory);
TOKEN_FEES = ITokenFees(_tokenFees);
}
/**
* @notice Creates a new Token contract and registers it in the TokenFactory.sol.
*/
function createToken (
string memory name,
string memory symbol,
uint8 decimals,
uint256 totalSupply
) public payable {
// Charge ETH fee for contract creation
require(msg.value == TOKEN_FEES.getFlatFee(), 'FEE NOT MET');
payable(TOKEN_FEES.getTokenFeeAddress()).transfer(TOKEN_FEES.getFlatFee());
IERC20 newToken = new ENMT(name, symbol, decimals, payable(msg.sender), totalSupply);
uint256 bal = newToken.balanceOf(address(this));
uint256 tsFee = bal * TOKEN_FEES.getTotalSupplyFee() / 1000;
newToken.transfer(TOKEN_FEES.getTokenFeeAddress(), tsFee);
newToken.transfer(msg.sender, bal - tsFee);
MINT_FACTORY.registerToken(msg.sender, address(newToken));
}
}
/EnumerableSet.sol
// SPDX-License-Identifier: MIT
// File @openzeppelin/contracts/utils/structs/EnumerableSet.sol@v4.0.0
pragma solidity ^0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping (bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) { // Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
// When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
// so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.
bytes32 lastvalue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastvalue;
// Update the index for the moved value
set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
require(set._values.length > index, "EnumerableSet: index out of bounds");
return set._values[index];
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
}
/MintFactory.sol
// SPDX-License-Identifier: UNLICENSED
// ALL RIGHTS RESERVED
// Unicrypt by SDDTech reserves all rights on this code. You may NOT copy these contracts.
// This contract logs all ENMT tokens that where generated by the Unicrypt ENMT platform.
// You can query this factory with any erc20 token address to see if it is a valid ENMT token and requires no
// safety audit on the token contract itself with the function: isENMT(tokenAddress)
pragma solidity ^0.8.0;
import "./EnumerableSet.sol";
import "./Ownable.sol";
contract MintFactory is Ownable {
using EnumerableSet for EnumerableSet.AddressSet;
EnumerableSet.AddressSet private tokens;
EnumerableSet.AddressSet private tokenGenerators;
mapping(address => address[]) private tokenOwners;
event tokenRegistered(address tokenAddress, address tokenOwner);
function adminAllowTokenGenerator (address _address, bool _allow) public onlyOwner {
if (_allow) {
tokenGenerators.add(_address);
} else {
tokenGenerators.remove(_address);
}
}
/**
* @notice called by a registered tokenGenerator upon token creation
*/
function registerToken (address _tokenOwner, address _tokenAddress) public {
require(tokenGenerators.contains(msg.sender), 'FORBIDDEN');
tokens.add(_tokenAddress);
tokenOwners[_tokenOwner].push(_tokenAddress);
emit tokenRegistered(_tokenAddress, _tokenOwner);
}
/**
* @notice gets a token at index registered under a user address
* @return token address registered to the user address
*/
function getTokenByOwnerAtIndex(address _tokenOwner, uint256 _index) external view returns(address) {
return tokenOwners[_tokenOwner][_index];
}
/**
* @notice gets the total number of tokens registered under a user address
* @return uint total of token addresses registered to the user address
*/
function getTokensLengthByOwner(address _tokenOwner) external view returns(uint256) {
return tokenOwners[_tokenOwner].length;
}
/**
* @notice Number of allowed tokenGenerators
*/
function tokenGeneratorsLength() external view returns (uint256) {
return tokenGenerators.length();
}
/**
* @notice Gets the address of a registered tokenGenerator at specified index
*/
function tokenGeneratorAtIndex(uint256 _index) external view returns (address) {
return tokenGenerators.at(_index);
}
/**
* @notice returns true if contract is allowed to generate and register tokens
*/
function tokenGeneratorIsAllowed(address _tokenGenerator) external view returns (bool) {
return tokenGenerators.contains(_tokenGenerator);
}
/**
* @notice returns true if the token is a valid ENMT token generated by the Unicrypt Minter
*/
function isENMT(address _tokenAddress) external view returns (bool) {
return tokens.contains(_tokenAddress);
}
/**
* @notice The length of all valid ENMT tokens on the platform
*/
function tokensLength() external view returns (uint256) {
return tokens.length();
}
/**
* @notice gets an ENMT token at a specific index. Although using Enumerable Set, since tokens are only added and not removed, indexes will never change
* @return the address of the ENMT token at index
*/
function tokenAtIndex(uint256 _index) external view returns (address) {
return tokens.at(_index);
}
}
/TokenFees.sol
// SPDX-License-Identifier: UNLICENSED
// ALL RIGHTS RESERVED
pragma solidity ^0.8.0;
import "./Ownable.sol";
interface ITokenFees {
function getFlatFee() view external returns(uint256);
function setFlatFee(uint _tokenFee) external;
function getTotalSupplyFee() view external returns(uint256);
function setTotalSupplyFee(uint _tokenFee) external;
function getTokenFeeAddress() view external returns(address);
function setTokenFeeAddress(address payable _tokenFeeAddress) external;
}
contract TokenFees is Ownable{
struct Settings {
uint256 FLAT_FEE;
uint256 TS_FEE; // totalSupply fee
address payable TOKEN_FEE_ADDRESS;
}
Settings public SETTINGS;
constructor() {
SETTINGS.FLAT_FEE = 1e18;
SETTINGS.TS_FEE = 2;
SETTINGS.TOKEN_FEE_ADDRESS = payable(0xAA3d85aD9D128DFECb55424085754F6dFa643eb1);
}
function getFlatFee() view external returns(uint256) {
return SETTINGS.FLAT_FEE;
}
function setFlatFee(uint _flatFee) external onlyOwner {
SETTINGS.FLAT_FEE = _flatFee;
}
function getTotalSupplyFee() view external returns(uint256) {
return SETTINGS.TS_FEE;
}
function setTotalSupplyFee(uint _tsFee) external onlyOwner {
SETTINGS.TS_FEE = _tsFee;
}
function getTokenFeeAddress() view external returns(address) {
return SETTINGS.TOKEN_FEE_ADDRESS;
}
function setTokenFeeAddress(address payable _tokenFeeAddress) external onlyOwner {
SETTINGS.TOKEN_FEE_ADDRESS = _tokenFeeAddress;
}
}
/Ownable.sol
// SPDX-License-Identifier: MIT
// File @openzeppelin/contracts/access/Ownable.sol@v4.0.0
pragma solidity ^0.8.0;
import "./Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
/Context.sol
// SPDX-License-Identifier: MIT
// File @openzeppelin/contracts/utils/Context.sol@v4.0.0
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) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
/IERC20.sol
// SPDX-License-Identifier: MIT
// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v4.0.0
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
/ERC20.sol
// SPDX-License-Identifier: MIT
// File @openzeppelin/contracts/token/ERC20/ERC20.sol@v4.0.0
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin guidelines: functions revert instead
* of returning `false` on failure. This behavior is nonetheless conventional
* and does not conflict with the expectations of ERC20 applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20 {
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}.
*
* The defaut value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All three of these values are immutable: they can only be set once during
* construction.
*/
constructor (string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overloaded;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 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:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
_approve(sender, _msgSender(), currentAllowance - amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][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) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
return true;
}
/**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
_balances[sender] = senderBalance - amount;
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `to` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
_balances[account] = accountBalance - amount;
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}
/ENMT.sol
// SPDX-License-Identifier: MIT
// Contract for an ENMT token (ERC20 compliant Non-Mintable Token). Fully compliant with the ERC20 specification.
// TOKEN SPECIFICATIONS:
// - Total supply set upon creation.
// - No new tokens can ever be minted.
// - Tokens can be burnt by any user to reduce total supply.
// - Fully ERC20 compliant.
// - This token has no owner, no admin functions, and is fully decentralised.
pragma solidity ^0.8.0;
import "./ERC20.sol";
// A fully ERC20 Compliant Non Mintable Token (ENMT)
contract ENMT is ERC20 {
// Defines how to read the TokenInfo ABI, as well as the capabilities of the token
uint256 public TOKEN_TYPE = 1;
struct TokenInfo {
uint8 decimals;
address creator;
}
TokenInfo public INFO;
constructor(string memory _name, string memory _symbol, uint8 _decimals, address _creator, uint256 _totalSupply) ERC20(_name, _symbol) {
_mint(msg.sender, _totalSupply);
INFO = TokenInfo(_decimals, _creator);
}
function decimals() public view virtual override returns (uint8) {
return INFO.decimals;
}
function burn(uint256 amount) public virtual {
_burn(_msgSender(), amount);
}
}
Compiler Settings
{"remappings":[],"optimizer":{"runs":200,"enabled":false},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"istanbul","compilationTarget":{"MintGenerator.sol":"MintGenerator"}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_mintFactory","internalType":"address"},{"type":"address","name":"_tokenFees","internalType":"address"}]},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IMintFactory"}],"name":"MINT_FACTORY","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract ITokenFees"}],"name":"TOKEN_FEES","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[],"name":"createToken","inputs":[{"type":"string","name":"name","internalType":"string"},{"type":"string","name":"symbol","internalType":"string"},{"type":"uint8","name":"decimals","internalType":"uint8"},{"type":"uint256","name":"totalSupply","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
Contract Creation Code
0x60806040523480156200001157600080fd5b506040516200373538038062003735833981810160405281019062000037919062000190565b6000620000496200017160201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506200021f565b600033905090565b6000815190506200018a8162000205565b92915050565b60008060408385031215620001a457600080fd5b6000620001b48582860162000179565b9250506020620001c78582860162000179565b9150509250929050565b6000620001de82620001e5565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6200021081620001d1565b81146200021c57600080fd5b50565b613506806200022f6000396000f3fe6080604052600436106200005c5760003560e01c8063210f5dda1462000061578063235814131462000081578063715018a614620000b15780638da5cb5b14620000cb578063d2c9b5a314620000fb578063f2fde38b146200012b575b600080fd5b6200007f600480360381019062000079919062000cde565b62000159565b005b3480156200008e57600080fd5b5062000099620007df565b604051620000a8919062000f3b565b60405180910390f35b348015620000be57600080fd5b50620000c962000805565b005b348015620000d857600080fd5b50620000e362000946565b604051620000f2919062000ec4565b60405180910390f35b3480156200010857600080fd5b50620001136200096f565b60405162000122919062000f58565b60405180910390f35b3480156200013857600080fd5b5062000157600480360381019062000151919062000c5a565b62000995565b005b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638a601fc86040518163ffffffff1660e01b815260040160206040518083038186803b158015620001c257600080fd5b505afa158015620001d7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001fd919062000d7c565b341462000241576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002389062001024565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663455066c26040518163ffffffff1660e01b815260040160206040518083038186803b158015620002aa57600080fd5b505afa158015620002bf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002e5919062000c86565b73ffffffffffffffffffffffffffffffffffffffff166108fc600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638a601fc86040518163ffffffff1660e01b815260040160206040518083038186803b1580156200036757600080fd5b505afa1580156200037c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003a2919062000d7c565b9081150290604051600060405180830381858888f19350505050158015620003ce573d6000803e3d6000fd5b5060008484843385604051620003e49062000b50565b620003f495949392919062000f75565b604051809103906000f08015801562000411573d6000803e3d6000fd5b50905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040162000451919062000ec4565b60206040518083038186803b1580156200046a57600080fd5b505afa1580156200047f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004a5919062000d7c565b905060006103e8600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632039dba76040518163ffffffff1660e01b815260040160206040518083038186803b1580156200051557600080fd5b505afa1580156200052a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000550919062000d7c565b836200055d9190620010f9565b620005699190620010c1565b90508273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663455066c26040518163ffffffff1660e01b815260040160206040518083038186803b158015620005f057600080fd5b505afa15801562000605573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200062b919062000c86565b836040518363ffffffff1660e01b81526004016200064b92919062000f0e565b602060405180830381600087803b1580156200066657600080fd5b505af11580156200067b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006a1919062000cb2565b508273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338385620006cd91906200115a565b6040518363ffffffff1660e01b8152600401620006ec92919062000f0e565b602060405180830381600087803b1580156200070757600080fd5b505af11580156200071c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000742919062000cb2565b50600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634739f7e533856040518363ffffffff1660e01b8152600401620007a292919062000ee1565b600060405180830381600087803b158015620007bd57600080fd5b505af1158015620007d2573d6000803e3d6000fd5b5050505050505050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6200080f62000b48565b73ffffffffffffffffffffffffffffffffffffffff166200082f62000946565b73ffffffffffffffffffffffffffffffffffffffff161462000888576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200087f9062001002565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6200099f62000b48565b73ffffffffffffffffffffffffffffffffffffffff16620009bf62000946565b73ffffffffffffffffffffffffffffffffffffffff161462000a18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000a0f9062001002565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000a8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000a829062000fe0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b612036806200149b83390190565b600062000b7562000b6f846200106f565b62001046565b90508281526020810184848401111562000b8e57600080fd5b62000b9b84828562001278565b509392505050565b60008135905062000bb48162001432565b92915050565b60008151905062000bcb8162001432565b92915050565b60008151905062000be2816200144c565b92915050565b600082601f83011262000bfa57600080fd5b813562000c0c84826020860162000b5e565b91505092915050565b60008135905062000c268162001466565b92915050565b60008151905062000c3d8162001466565b92915050565b60008135905062000c548162001480565b92915050565b60006020828403121562000c6d57600080fd5b600062000c7d8482850162000ba3565b91505092915050565b60006020828403121562000c9957600080fd5b600062000ca98482850162000bba565b91505092915050565b60006020828403121562000cc557600080fd5b600062000cd58482850162000bd1565b91505092915050565b6000806000806080858703121562000cf557600080fd5b600085013567ffffffffffffffff81111562000d1057600080fd5b62000d1e8782880162000be8565b945050602085013567ffffffffffffffff81111562000d3c57600080fd5b62000d4a8782880162000be8565b935050604062000d5d8782880162000c43565b925050606062000d708782880162000c15565b91505092959194509250565b60006020828403121562000d8f57600080fd5b600062000d9f8482850162000c2c565b91505092915050565b62000db381620011ec565b82525050565b62000dc48162001195565b82525050565b62000dd58162001200565b82525050565b62000de68162001228565b82525050565b600062000df982620010a5565b62000e058185620010b0565b935062000e1781856020860162001287565b62000e228162001380565b840191505092915050565b600062000e3c602683620010b0565b915062000e498262001391565b604082019050919050565b600062000e63602083620010b0565b915062000e7082620013e0565b602082019050919050565b600062000e8a600b83620010b0565b915062000e978262001409565b602082019050919050565b62000ead81620011d5565b82525050565b62000ebe81620011df565b82525050565b600060208201905062000edb600083018462000db9565b92915050565b600060408201905062000ef8600083018562000db9565b62000f07602083018462000db9565b9392505050565b600060408201905062000f25600083018562000db9565b62000f34602083018462000ea2565b9392505050565b600060208201905062000f52600083018462000dca565b92915050565b600060208201905062000f6f600083018462000ddb565b92915050565b600060a082019050818103600083015262000f91818862000dec565b9050818103602083015262000fa7818762000dec565b905062000fb8604083018662000eb3565b62000fc7606083018562000da8565b62000fd6608083018462000ea2565b9695505050505050565b6000602082019050818103600083015262000ffb8162000e2d565b9050919050565b600060208201905081810360008301526200101d8162000e54565b9050919050565b600060208201905081810360008301526200103f8162000e7b565b9050919050565b60006200105262001065565b9050620010608282620012bd565b919050565b6000604051905090565b600067ffffffffffffffff8211156200108d576200108c62001351565b5b620010988262001380565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b6000620010ce82620011d5565b9150620010db83620011d5565b925082620010ee57620010ed62001322565b5b828204905092915050565b60006200110682620011d5565b91506200111383620011d5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156200114f576200114e620012f3565b5b828202905092915050565b60006200116782620011d5565b91506200117483620011d5565b9250828210156200118a5762001189620012f3565b5b828203905092915050565b6000620011a282620011b5565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000620011f98262001250565b9050919050565b60006200120d8262001214565b9050919050565b60006200122182620011b5565b9050919050565b600062001235826200123c565b9050919050565b60006200124982620011b5565b9050919050565b60006200125d8262001264565b9050919050565b60006200127182620011b5565b9050919050565b82818337600083830152505050565b60005b83811015620012a75780820151818401526020810190506200128a565b83811115620012b7576000848401525b50505050565b620012c88262001380565b810181811067ffffffffffffffff82111715620012ea57620012e962001351565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f464545204e4f54204d4554000000000000000000000000000000000000000000600082015250565b6200143d8162001195565b81146200144957600080fd5b50565b6200145781620011a9565b81146200146357600080fd5b50565b6200147181620011d5565b81146200147d57600080fd5b50565b6200148b81620011df565b81146200149757600080fd5b5056fe608060405260016005553480156200001657600080fd5b50604051620020363803806200203683398181016040528101906200003c9190620003fb565b848481600390805190602001906200005692919062000294565b5080600490805190602001906200006f92919062000294565b5050506200008433826200012a60201b60201c565b60405180604001604052808460ff1681526020018373ffffffffffffffffffffffffffffffffffffffff16815250600660008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050505050505050620007f5565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200019d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200019490620004e7565b60405180910390fd5b620001b1600083836200028f60201b60201c565b8060026000828254620001c5919062000596565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546200021c919062000596565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405162000283919062000509565b60405180910390a35050565b505050565b828054620002a29062000674565b90600052602060002090601f016020900481019282620002c6576000855562000312565b82601f10620002e157805160ff191683800117855562000312565b8280016001018555821562000312579182015b8281111562000311578251825591602001919060010190620002f4565b5b50905062000321919062000325565b5090565b5b808211156200034057600081600090555060010162000326565b5090565b60006200035b62000355846200054f565b62000526565b9050828152602081018484840111156200037457600080fd5b620003818482856200063e565b509392505050565b6000815190506200039a81620007a7565b92915050565b600082601f830112620003b257600080fd5b8151620003c484826020860162000344565b91505092915050565b600081519050620003de81620007c1565b92915050565b600081519050620003f581620007db565b92915050565b600080600080600060a086880312156200041457600080fd5b600086015167ffffffffffffffff8111156200042f57600080fd5b6200043d88828901620003a0565b955050602086015167ffffffffffffffff8111156200045b57600080fd5b6200046988828901620003a0565b94505060406200047c88828901620003e4565b93505060606200048f8882890162000389565b9250506080620004a288828901620003cd565b9150509295509295909350565b6000620004be601f8362000585565b9150620004cb826200077e565b602082019050919050565b620004e18162000627565b82525050565b600060208201905081810360008301526200050281620004af565b9050919050565b6000602082019050620005206000830184620004d6565b92915050565b60006200053262000545565b9050620005408282620006aa565b919050565b6000604051905090565b600067ffffffffffffffff8211156200056d576200056c6200073e565b5b62000578826200076d565b9050602081019050919050565b600082825260208201905092915050565b6000620005a38262000627565b9150620005b08362000627565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115620005e857620005e7620006e0565b5b828201905092915050565b6000620006008262000607565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b838110156200065e57808201518184015260208101905062000641565b838111156200066e576000848401525b50505050565b600060028204905060018216806200068d57607f821691505b60208210811415620006a457620006a36200070f565b5b50919050565b620006b5826200076d565b810181811067ffffffffffffffff82111715620006d757620006d66200073e565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b620007b281620005f3565b8114620007be57600080fd5b50565b620007cc8162000627565b8114620007d857600080fd5b50565b620007e68162000631565b8114620007f257600080fd5b50565b61183180620008056000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b4114610262578063a457c2d714610280578063a9059cbb146102b0578063dd62ed3e146102e0576100ea565b806342966c68146101f8578063609c92b81461021457806370a0823114610232576100ea565b80631c0a00f5116100c85780631c0a00f51461015b57806323b872dd1461017a578063313ce567146101aa57806339509351146101c8576100ea565b806306fdde03146100ef578063095ea7b31461010d57806318160ddd1461013d575b600080fd5b6100f7610310565b6040516101049190611196565b60405180910390f35b61012760048036038101906101229190610f66565b6103a2565b604051610134919061117b565b60405180910390f35b6101456103c0565b60405161015291906112d8565b60405180910390f35b6101636103ca565b60405161017192919061130e565b60405180910390f35b610194600480360381019061018f9190610f17565b610409565b6040516101a1919061117b565b60405180910390f35b6101b261050a565b6040516101bf91906112f3565b60405180910390f35b6101e260048036038101906101dd9190610f66565b610524565b6040516101ef919061117b565b60405180910390f35b610212600480360381019061020d9190610fa2565b6105d0565b005b61021c6105e4565b60405161022991906112d8565b60405180910390f35b61024c60048036038101906102479190610eb2565b6105ea565b60405161025991906112d8565b60405180910390f35b61026a610632565b6040516102779190611196565b60405180910390f35b61029a60048036038101906102959190610f66565b6106c4565b6040516102a7919061117b565b60405180910390f35b6102ca60048036038101906102c59190610f66565b6107b8565b6040516102d7919061117b565b60405180910390f35b6102fa60048036038101906102f59190610edb565b6107d6565b60405161030791906112d8565b60405180910390f35b60606003805461031f90611465565b80601f016020809104026020016040519081016040528092919081815260200182805461034b90611465565b80156103985780601f1061036d57610100808354040283529160200191610398565b820191906000526020600020905b81548152906001019060200180831161037b57829003601f168201915b5050505050905090565b60006103b66103af61085d565b8484610865565b6001905092915050565b6000600254905090565b60068060000160009054906101000a900460ff16908060000160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082565b6000610416848484610a30565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061046161085d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156104e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d890611238565b60405180910390fd5b6104fe856104ed61085d565b85846104f991906113a9565b610865565b60019150509392505050565b6000600660000160009054906101000a900460ff16905090565b60006105c661053161085d565b84846001600061053f61085d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546105c19190611353565b610865565b6001905092915050565b6105e16105db61085d565b82610caf565b50565b60055481565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606004805461064190611465565b80601f016020809104026020016040519081016040528092919081815260200182805461066d90611465565b80156106ba5780601f1061068f576101008083540402835291602001916106ba565b820191906000526020600020905b81548152906001019060200180831161069d57829003601f168201915b5050505050905090565b600080600160006106d361085d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610790576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610787906112b8565b60405180910390fd5b6107ad61079b61085d565b8585846107a891906113a9565b610865565b600191505092915050565b60006107cc6107c561085d565b8484610a30565b6001905092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156108d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108cc90611298565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610945576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093c906111f8565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610a2391906112d8565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610aa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9790611278565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610b10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b07906111b8565b60405180910390fd5b610b1b838383610e83565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610ba1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9890611218565b60405180910390fd5b8181610bad91906113a9565b6000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610c3d9190611353565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610ca191906112d8565b60405180910390a350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1690611258565b60405180910390fd5b610d2b82600083610e83565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610db1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da8906111d8565b60405180910390fd5b8181610dbd91906113a9565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160026000828254610e1191906113a9565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610e7691906112d8565b60405180910390a3505050565b505050565b600081359050610e97816117cd565b92915050565b600081359050610eac816117e4565b92915050565b600060208284031215610ec457600080fd5b6000610ed284828501610e88565b91505092915050565b60008060408385031215610eee57600080fd5b6000610efc85828601610e88565b9250506020610f0d85828601610e88565b9150509250929050565b600080600060608486031215610f2c57600080fd5b6000610f3a86828701610e88565b9350506020610f4b86828701610e88565b9250506040610f5c86828701610e9d565b9150509250925092565b60008060408385031215610f7957600080fd5b6000610f8785828601610e88565b9250506020610f9885828601610e9d565b9150509250929050565b600060208284031215610fb457600080fd5b6000610fc284828501610e9d565b91505092915050565b610fd4816113dd565b82525050565b610fe3816113ef565b82525050565b6000610ff482611337565b610ffe8185611342565b935061100e818560208601611432565b611017816114f5565b840191505092915050565b600061102f602383611342565b915061103a82611506565b604082019050919050565b6000611052602283611342565b915061105d82611555565b604082019050919050565b6000611075602283611342565b9150611080826115a4565b604082019050919050565b6000611098602683611342565b91506110a3826115f3565b604082019050919050565b60006110bb602883611342565b91506110c682611642565b604082019050919050565b60006110de602183611342565b91506110e982611691565b604082019050919050565b6000611101602583611342565b915061110c826116e0565b604082019050919050565b6000611124602483611342565b915061112f8261172f565b604082019050919050565b6000611147602583611342565b91506111528261177e565b604082019050919050565b6111668161141b565b82525050565b61117581611425565b82525050565b60006020820190506111906000830184610fda565b92915050565b600060208201905081810360008301526111b08184610fe9565b905092915050565b600060208201905081810360008301526111d181611022565b9050919050565b600060208201905081810360008301526111f181611045565b9050919050565b6000602082019050818103600083015261121181611068565b9050919050565b600060208201905081810360008301526112318161108b565b9050919050565b60006020820190508181036000830152611251816110ae565b9050919050565b60006020820190508181036000830152611271816110d1565b9050919050565b60006020820190508181036000830152611291816110f4565b9050919050565b600060208201905081810360008301526112b181611117565b9050919050565b600060208201905081810360008301526112d18161113a565b9050919050565b60006020820190506112ed600083018461115d565b92915050565b6000602082019050611308600083018461116c565b92915050565b6000604082019050611323600083018561116c565b6113306020830184610fcb565b9392505050565b600081519050919050565b600082825260208201905092915050565b600061135e8261141b565b91506113698361141b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561139e5761139d611497565b5b828201905092915050565b60006113b48261141b565b91506113bf8361141b565b9250828210156113d2576113d1611497565b5b828203905092915050565b60006113e8826113fb565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015611450578082015181840152602081019050611435565b8381111561145f576000848401525b50505050565b6000600282049050600182168061147d57607f821691505b60208210811415611491576114906114c6565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6117d6816113dd565b81146117e157600080fd5b50565b6117ed8161141b565b81146117f857600080fd5b5056fea264697066735822122019642926bfd7300cdbc3628745dd056978c08ea83e823dac9e7117c0b6f3a65764736f6c63430008010033a26469706673582212209b8704cc537707d917b3262fff5ca7f057d4aafcfdc52c896db248e600177ff364736f6c63430008010033000000000000000000000000bfaa7a85d2c737e31341d6cb11d5eea63d23684a000000000000000000000000f72e2d5d025cbce9ce4d25e5ac4a5c3437ff8d26
Deployed ByteCode
0x6080604052600436106200005c5760003560e01c8063210f5dda1462000061578063235814131462000081578063715018a614620000b15780638da5cb5b14620000cb578063d2c9b5a314620000fb578063f2fde38b146200012b575b600080fd5b6200007f600480360381019062000079919062000cde565b62000159565b005b3480156200008e57600080fd5b5062000099620007df565b604051620000a8919062000f3b565b60405180910390f35b348015620000be57600080fd5b50620000c962000805565b005b348015620000d857600080fd5b50620000e362000946565b604051620000f2919062000ec4565b60405180910390f35b3480156200010857600080fd5b50620001136200096f565b60405162000122919062000f58565b60405180910390f35b3480156200013857600080fd5b5062000157600480360381019062000151919062000c5a565b62000995565b005b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638a601fc86040518163ffffffff1660e01b815260040160206040518083038186803b158015620001c257600080fd5b505afa158015620001d7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001fd919062000d7c565b341462000241576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002389062001024565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663455066c26040518163ffffffff1660e01b815260040160206040518083038186803b158015620002aa57600080fd5b505afa158015620002bf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002e5919062000c86565b73ffffffffffffffffffffffffffffffffffffffff166108fc600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638a601fc86040518163ffffffff1660e01b815260040160206040518083038186803b1580156200036757600080fd5b505afa1580156200037c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003a2919062000d7c565b9081150290604051600060405180830381858888f19350505050158015620003ce573d6000803e3d6000fd5b5060008484843385604051620003e49062000b50565b620003f495949392919062000f75565b604051809103906000f08015801562000411573d6000803e3d6000fd5b50905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040162000451919062000ec4565b60206040518083038186803b1580156200046a57600080fd5b505afa1580156200047f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004a5919062000d7c565b905060006103e8600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632039dba76040518163ffffffff1660e01b815260040160206040518083038186803b1580156200051557600080fd5b505afa1580156200052a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000550919062000d7c565b836200055d9190620010f9565b620005699190620010c1565b90508273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663455066c26040518163ffffffff1660e01b815260040160206040518083038186803b158015620005f057600080fd5b505afa15801562000605573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200062b919062000c86565b836040518363ffffffff1660e01b81526004016200064b92919062000f0e565b602060405180830381600087803b1580156200066657600080fd5b505af11580156200067b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006a1919062000cb2565b508273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338385620006cd91906200115a565b6040518363ffffffff1660e01b8152600401620006ec92919062000f0e565b602060405180830381600087803b1580156200070757600080fd5b505af11580156200071c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000742919062000cb2565b50600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634739f7e533856040518363ffffffff1660e01b8152600401620007a292919062000ee1565b600060405180830381600087803b158015620007bd57600080fd5b505af1158015620007d2573d6000803e3d6000fd5b5050505050505050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6200080f62000b48565b73ffffffffffffffffffffffffffffffffffffffff166200082f62000946565b73ffffffffffffffffffffffffffffffffffffffff161462000888576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200087f9062001002565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6200099f62000b48565b73ffffffffffffffffffffffffffffffffffffffff16620009bf62000946565b73ffffffffffffffffffffffffffffffffffffffff161462000a18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000a0f9062001002565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000a8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000a829062000fe0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b612036806200149b83390190565b600062000b7562000b6f846200106f565b62001046565b90508281526020810184848401111562000b8e57600080fd5b62000b9b84828562001278565b509392505050565b60008135905062000bb48162001432565b92915050565b60008151905062000bcb8162001432565b92915050565b60008151905062000be2816200144c565b92915050565b600082601f83011262000bfa57600080fd5b813562000c0c84826020860162000b5e565b91505092915050565b60008135905062000c268162001466565b92915050565b60008151905062000c3d8162001466565b92915050565b60008135905062000c548162001480565b92915050565b60006020828403121562000c6d57600080fd5b600062000c7d8482850162000ba3565b91505092915050565b60006020828403121562000c9957600080fd5b600062000ca98482850162000bba565b91505092915050565b60006020828403121562000cc557600080fd5b600062000cd58482850162000bd1565b91505092915050565b6000806000806080858703121562000cf557600080fd5b600085013567ffffffffffffffff81111562000d1057600080fd5b62000d1e8782880162000be8565b945050602085013567ffffffffffffffff81111562000d3c57600080fd5b62000d4a8782880162000be8565b935050604062000d5d8782880162000c43565b925050606062000d708782880162000c15565b91505092959194509250565b60006020828403121562000d8f57600080fd5b600062000d9f8482850162000c2c565b91505092915050565b62000db381620011ec565b82525050565b62000dc48162001195565b82525050565b62000dd58162001200565b82525050565b62000de68162001228565b82525050565b600062000df982620010a5565b62000e058185620010b0565b935062000e1781856020860162001287565b62000e228162001380565b840191505092915050565b600062000e3c602683620010b0565b915062000e498262001391565b604082019050919050565b600062000e63602083620010b0565b915062000e7082620013e0565b602082019050919050565b600062000e8a600b83620010b0565b915062000e978262001409565b602082019050919050565b62000ead81620011d5565b82525050565b62000ebe81620011df565b82525050565b600060208201905062000edb600083018462000db9565b92915050565b600060408201905062000ef8600083018562000db9565b62000f07602083018462000db9565b9392505050565b600060408201905062000f25600083018562000db9565b62000f34602083018462000ea2565b9392505050565b600060208201905062000f52600083018462000dca565b92915050565b600060208201905062000f6f600083018462000ddb565b92915050565b600060a082019050818103600083015262000f91818862000dec565b9050818103602083015262000fa7818762000dec565b905062000fb8604083018662000eb3565b62000fc7606083018562000da8565b62000fd6608083018462000ea2565b9695505050505050565b6000602082019050818103600083015262000ffb8162000e2d565b9050919050565b600060208201905081810360008301526200101d8162000e54565b9050919050565b600060208201905081810360008301526200103f8162000e7b565b9050919050565b60006200105262001065565b9050620010608282620012bd565b919050565b6000604051905090565b600067ffffffffffffffff8211156200108d576200108c62001351565b5b620010988262001380565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b6000620010ce82620011d5565b9150620010db83620011d5565b925082620010ee57620010ed62001322565b5b828204905092915050565b60006200110682620011d5565b91506200111383620011d5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156200114f576200114e620012f3565b5b828202905092915050565b60006200116782620011d5565b91506200117483620011d5565b9250828210156200118a5762001189620012f3565b5b828203905092915050565b6000620011a282620011b5565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000620011f98262001250565b9050919050565b60006200120d8262001214565b9050919050565b60006200122182620011b5565b9050919050565b600062001235826200123c565b9050919050565b60006200124982620011b5565b9050919050565b60006200125d8262001264565b9050919050565b60006200127182620011b5565b9050919050565b82818337600083830152505050565b60005b83811015620012a75780820151818401526020810190506200128a565b83811115620012b7576000848401525b50505050565b620012c88262001380565b810181811067ffffffffffffffff82111715620012ea57620012e962001351565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f464545204e4f54204d4554000000000000000000000000000000000000000000600082015250565b6200143d8162001195565b81146200144957600080fd5b50565b6200145781620011a9565b81146200146357600080fd5b50565b6200147181620011d5565b81146200147d57600080fd5b50565b6200148b81620011df565b81146200149757600080fd5b5056fe608060405260016005553480156200001657600080fd5b50604051620020363803806200203683398181016040528101906200003c9190620003fb565b848481600390805190602001906200005692919062000294565b5080600490805190602001906200006f92919062000294565b5050506200008433826200012a60201b60201c565b60405180604001604052808460ff1681526020018373ffffffffffffffffffffffffffffffffffffffff16815250600660008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050505050505050620007f5565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200019d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200019490620004e7565b60405180910390fd5b620001b1600083836200028f60201b60201c565b8060026000828254620001c5919062000596565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546200021c919062000596565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405162000283919062000509565b60405180910390a35050565b505050565b828054620002a29062000674565b90600052602060002090601f016020900481019282620002c6576000855562000312565b82601f10620002e157805160ff191683800117855562000312565b8280016001018555821562000312579182015b8281111562000311578251825591602001919060010190620002f4565b5b50905062000321919062000325565b5090565b5b808211156200034057600081600090555060010162000326565b5090565b60006200035b62000355846200054f565b62000526565b9050828152602081018484840111156200037457600080fd5b620003818482856200063e565b509392505050565b6000815190506200039a81620007a7565b92915050565b600082601f830112620003b257600080fd5b8151620003c484826020860162000344565b91505092915050565b600081519050620003de81620007c1565b92915050565b600081519050620003f581620007db565b92915050565b600080600080600060a086880312156200041457600080fd5b600086015167ffffffffffffffff8111156200042f57600080fd5b6200043d88828901620003a0565b955050602086015167ffffffffffffffff8111156200045b57600080fd5b6200046988828901620003a0565b94505060406200047c88828901620003e4565b93505060606200048f8882890162000389565b9250506080620004a288828901620003cd565b9150509295509295909350565b6000620004be601f8362000585565b9150620004cb826200077e565b602082019050919050565b620004e18162000627565b82525050565b600060208201905081810360008301526200050281620004af565b9050919050565b6000602082019050620005206000830184620004d6565b92915050565b60006200053262000545565b9050620005408282620006aa565b919050565b6000604051905090565b600067ffffffffffffffff8211156200056d576200056c6200073e565b5b62000578826200076d565b9050602081019050919050565b600082825260208201905092915050565b6000620005a38262000627565b9150620005b08362000627565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115620005e857620005e7620006e0565b5b828201905092915050565b6000620006008262000607565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b838110156200065e57808201518184015260208101905062000641565b838111156200066e576000848401525b50505050565b600060028204905060018216806200068d57607f821691505b60208210811415620006a457620006a36200070f565b5b50919050565b620006b5826200076d565b810181811067ffffffffffffffff82111715620006d757620006d66200073e565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b620007b281620005f3565b8114620007be57600080fd5b50565b620007cc8162000627565b8114620007d857600080fd5b50565b620007e68162000631565b8114620007f257600080fd5b50565b61183180620008056000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b4114610262578063a457c2d714610280578063a9059cbb146102b0578063dd62ed3e146102e0576100ea565b806342966c68146101f8578063609c92b81461021457806370a0823114610232576100ea565b80631c0a00f5116100c85780631c0a00f51461015b57806323b872dd1461017a578063313ce567146101aa57806339509351146101c8576100ea565b806306fdde03146100ef578063095ea7b31461010d57806318160ddd1461013d575b600080fd5b6100f7610310565b6040516101049190611196565b60405180910390f35b61012760048036038101906101229190610f66565b6103a2565b604051610134919061117b565b60405180910390f35b6101456103c0565b60405161015291906112d8565b60405180910390f35b6101636103ca565b60405161017192919061130e565b60405180910390f35b610194600480360381019061018f9190610f17565b610409565b6040516101a1919061117b565b60405180910390f35b6101b261050a565b6040516101bf91906112f3565b60405180910390f35b6101e260048036038101906101dd9190610f66565b610524565b6040516101ef919061117b565b60405180910390f35b610212600480360381019061020d9190610fa2565b6105d0565b005b61021c6105e4565b60405161022991906112d8565b60405180910390f35b61024c60048036038101906102479190610eb2565b6105ea565b60405161025991906112d8565b60405180910390f35b61026a610632565b6040516102779190611196565b60405180910390f35b61029a60048036038101906102959190610f66565b6106c4565b6040516102a7919061117b565b60405180910390f35b6102ca60048036038101906102c59190610f66565b6107b8565b6040516102d7919061117b565b60405180910390f35b6102fa60048036038101906102f59190610edb565b6107d6565b60405161030791906112d8565b60405180910390f35b60606003805461031f90611465565b80601f016020809104026020016040519081016040528092919081815260200182805461034b90611465565b80156103985780601f1061036d57610100808354040283529160200191610398565b820191906000526020600020905b81548152906001019060200180831161037b57829003601f168201915b5050505050905090565b60006103b66103af61085d565b8484610865565b6001905092915050565b6000600254905090565b60068060000160009054906101000a900460ff16908060000160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082565b6000610416848484610a30565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061046161085d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156104e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d890611238565b60405180910390fd5b6104fe856104ed61085d565b85846104f991906113a9565b610865565b60019150509392505050565b6000600660000160009054906101000a900460ff16905090565b60006105c661053161085d565b84846001600061053f61085d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546105c19190611353565b610865565b6001905092915050565b6105e16105db61085d565b82610caf565b50565b60055481565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606004805461064190611465565b80601f016020809104026020016040519081016040528092919081815260200182805461066d90611465565b80156106ba5780601f1061068f576101008083540402835291602001916106ba565b820191906000526020600020905b81548152906001019060200180831161069d57829003601f168201915b5050505050905090565b600080600160006106d361085d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610790576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610787906112b8565b60405180910390fd5b6107ad61079b61085d565b8585846107a891906113a9565b610865565b600191505092915050565b60006107cc6107c561085d565b8484610a30565b6001905092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156108d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108cc90611298565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610945576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093c906111f8565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610a2391906112d8565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610aa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9790611278565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610b10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b07906111b8565b60405180910390fd5b610b1b838383610e83565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610ba1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9890611218565b60405180910390fd5b8181610bad91906113a9565b6000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610c3d9190611353565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610ca191906112d8565b60405180910390a350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1690611258565b60405180910390fd5b610d2b82600083610e83565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610db1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da8906111d8565b60405180910390fd5b8181610dbd91906113a9565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160026000828254610e1191906113a9565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610e7691906112d8565b60405180910390a3505050565b505050565b600081359050610e97816117cd565b92915050565b600081359050610eac816117e4565b92915050565b600060208284031215610ec457600080fd5b6000610ed284828501610e88565b91505092915050565b60008060408385031215610eee57600080fd5b6000610efc85828601610e88565b9250506020610f0d85828601610e88565b9150509250929050565b600080600060608486031215610f2c57600080fd5b6000610f3a86828701610e88565b9350506020610f4b86828701610e88565b9250506040610f5c86828701610e9d565b9150509250925092565b60008060408385031215610f7957600080fd5b6000610f8785828601610e88565b9250506020610f9885828601610e9d565b9150509250929050565b600060208284031215610fb457600080fd5b6000610fc284828501610e9d565b91505092915050565b610fd4816113dd565b82525050565b610fe3816113ef565b82525050565b6000610ff482611337565b610ffe8185611342565b935061100e818560208601611432565b611017816114f5565b840191505092915050565b600061102f602383611342565b915061103a82611506565b604082019050919050565b6000611052602283611342565b915061105d82611555565b604082019050919050565b6000611075602283611342565b9150611080826115a4565b604082019050919050565b6000611098602683611342565b91506110a3826115f3565b604082019050919050565b60006110bb602883611342565b91506110c682611642565b604082019050919050565b60006110de602183611342565b91506110e982611691565b604082019050919050565b6000611101602583611342565b915061110c826116e0565b604082019050919050565b6000611124602483611342565b915061112f8261172f565b604082019050919050565b6000611147602583611342565b91506111528261177e565b604082019050919050565b6111668161141b565b82525050565b61117581611425565b82525050565b60006020820190506111906000830184610fda565b92915050565b600060208201905081810360008301526111b08184610fe9565b905092915050565b600060208201905081810360008301526111d181611022565b9050919050565b600060208201905081810360008301526111f181611045565b9050919050565b6000602082019050818103600083015261121181611068565b9050919050565b600060208201905081810360008301526112318161108b565b9050919050565b60006020820190508181036000830152611251816110ae565b9050919050565b60006020820190508181036000830152611271816110d1565b9050919050565b60006020820190508181036000830152611291816110f4565b9050919050565b600060208201905081810360008301526112b181611117565b9050919050565b600060208201905081810360008301526112d18161113a565b9050919050565b60006020820190506112ed600083018461115d565b92915050565b6000602082019050611308600083018461116c565b92915050565b6000604082019050611323600083018561116c565b6113306020830184610fcb565b9392505050565b600081519050919050565b600082825260208201905092915050565b600061135e8261141b565b91506113698361141b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561139e5761139d611497565b5b828201905092915050565b60006113b48261141b565b91506113bf8361141b565b9250828210156113d2576113d1611497565b5b828203905092915050565b60006113e8826113fb565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015611450578082015181840152602081019050611435565b8381111561145f576000848401525b50505050565b6000600282049050600182168061147d57607f821691505b60208210811415611491576114906114c6565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6117d6816113dd565b81146117e157600080fd5b50565b6117ed8161141b565b81146117f857600080fd5b5056fea264697066735822122019642926bfd7300cdbc3628745dd056978c08ea83e823dac9e7117c0b6f3a65764736f6c63430008010033a26469706673582212209b8704cc537707d917b3262fff5ca7f057d4aafcfdc52c896db248e600177ff364736f6c63430008010033