Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Loading...
Loading
Contract Name:
InscriptionFactory
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./Inscription.sol"; import "./String.sol"; import "./TransferHelper.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract InscriptionFactory is Ownable{ using Counters for Counters.Counter; Counters.Counter private _inscriptionNumbers; uint8 public maxTickSize = 4; // tick(symbol) length is 4. uint256 public baseFee = 250000000000000; // Will charge 0.00025 ETH as extra min tip from the second time of mint in the frozen period. And this tip will be double for each mint. uint256 public fundingCommission = 100; // commission rate of fund raising, 100 means 1% mapping(uint256 => Token) private inscriptions; // key is inscription id, value is token data mapping(string => uint256) private ticks; // Key is tick, value is inscription id event DeployInscription( uint256 indexed id, string tick, string name, uint256 cap, uint256 limitPerMint, address inscriptionAddress, uint256 timestamp ); struct Token { string tick; // same as symbol in ERC20 string name; // full name of token uint256 cap; // Hard cap of token uint256 limitPerMint; // Limitation per mint uint256 maxMintSize; // // max mint size, that means the max mint quantity is: maxMintSize * limitPerMint uint256 inscriptionId; // Inscription id uint256 freezeTime; address onlyContractAddress; uint256 onlyMinQuantity; uint256 crowdFundingRate; address crowdfundingAddress; address addr; // Contract address of inscribed token uint256 timestamp; // Inscribe timestamp } constructor() { // The inscription id will be from 1, not zero. _inscriptionNumbers.increment(); } // Let this contract accept ETH as tip receive() external payable {} function deploy( string memory _name, string memory _tick, uint256 _cap, uint256 _limitPerMint, uint256 _maxMintSize, // The max lots of each mint uint256 _freezeTime, // Freeze seconds between two mint, during this freezing period, the mint fee will be increased address _onlyContractAddress, // Only the holder of this asset can mint, optional uint256 _onlyMinQuantity, // The min quantity of asset for mint, optional uint256 _crowdFundingRate, address _crowdFundingAddress ) external returns (address _inscriptionAddress) { require(String.strlen(_tick) == maxTickSize, "Tick lenght should be 4"); require(_cap >= _limitPerMint, "Limit per mint exceed cap"); _tick = String.toLower(_tick); require(this.getIncriptionIdByTick(_tick) == 0, "tick is existed"); // Create inscription contract bytes memory bytecode = type(Inscription).creationCode; uint256 _id = _inscriptionNumbers.current(); bytecode = abi.encodePacked(bytecode, abi.encode( _name, _tick, _cap, _limitPerMint, _id, _maxMintSize, _freezeTime, _onlyContractAddress, _onlyMinQuantity, baseFee, fundingCommission, _crowdFundingRate, _crowdFundingAddress, address(this) )); bytes32 salt = keccak256(abi.encodePacked(_id)); assembly ("memory-safe") { _inscriptionAddress := create2(0, add(bytecode, 32), mload(bytecode), salt) if iszero(extcodesize(_inscriptionAddress)) { revert(0, 0) } } inscriptions[_id] = Token( _tick, _name, _cap, _limitPerMint, _maxMintSize, _id, _freezeTime, _onlyContractAddress, _onlyMinQuantity, _crowdFundingRate, _crowdFundingAddress, _inscriptionAddress, block.timestamp ); ticks[_tick] = _id; _inscriptionNumbers.increment(); emit DeployInscription(_id, _tick, _name, _cap, _limitPerMint, _inscriptionAddress, block.timestamp); } function getInscriptionAmount() external view returns(uint256) { return _inscriptionNumbers.current() - 1; } function getIncriptionIdByTick(string memory _tick) external view returns(uint256) { return ticks[String.toLower(_tick)]; } function getIncriptionById(uint256 _id) external view returns(Token memory, uint256) { Token memory token = inscriptions[_id]; return (inscriptions[_id], Inscription(token.addr).totalSupply()); } function getIncriptionByTick(string memory _tick) external view returns(Token memory tokens, uint256 totalSupplies) { Token memory token = inscriptions[this.getIncriptionIdByTick(_tick)]; uint256 id = this.getIncriptionIdByTick(String.toLower(_tick)); if(id > 0) { tokens = inscriptions[id]; totalSupplies = Inscription(token.addr).totalSupply(); } } function getInscriptionAmountByType(uint256 _type) external view returns(uint256) { require(_type < 3, "type is 0-2"); uint256 totalInscription = this.getInscriptionAmount(); uint256 count = 0; for(uint256 i = 1; i <= totalInscription; i++) { (Token memory _token, uint256 _totalSupply) = this.getIncriptionById(i); if(_type == 1 && _totalSupply == _token.cap) continue; else if(_type == 2 && _totalSupply < _token.cap) continue; else count++; } return count; } // Fetch inscription data by page no, page size, type and search keyword function getIncriptions( uint256 _pageNo, uint256 _pageSize, uint256 _type // 0- all, 1- in-process, 2- ended ) external view returns( Token[] memory, uint256[] memory ) { // if _searchBy is not empty, the _pageNo and _pageSize should be set to 1 require(_type < 3, "type is 0-2"); uint256 totalInscription = this.getInscriptionAmount(); uint256 pages = (totalInscription - 1) / _pageSize + 1; require(_pageNo > 0 && _pageSize > 0 && pages > 0 && _pageNo <= pages, "Params wrong"); Token[] memory inscriptions_ = new Token[](_pageSize); uint256[] memory totalSupplies_ = new uint256[](_pageSize); Token[] memory _inscriptions = new Token[](totalInscription); uint256[] memory _totalSupplies = new uint256[](totalInscription); uint256 index = 0; for(uint256 i = 1; i <= totalInscription; i++) { (Token memory _token, uint256 _totalSupply) = this.getIncriptionById(i); if((_type == 1 && _totalSupply == _token.cap) || (_type == 2 && _totalSupply < _token.cap)) continue; else { _inscriptions[index] = _token; _totalSupplies[index] = _totalSupply; index++; } } for(uint256 i = 0; i < _pageSize; i++) { uint256 id = (_pageNo - 1) * _pageSize + i; if(id < index) { inscriptions_[i] = _inscriptions[id]; totalSupplies_[i] = _totalSupplies[id]; } else break; } return (inscriptions_, totalSupplies_); } // Withdraw the ETH tip from the contract function withdraw(address payable _to, uint256 _amount) external onlyOwner { require(_amount <= payable(address(this)).balance); TransferHelper.safeTransferETH(_to, _amount); } // Update base fee function updateBaseFee(uint256 _fee) external onlyOwner { baseFee = _fee; } // Update funding commission function updateFundingCommission(uint256 _rate) external onlyOwner { fundingCommission = _rate; } // Update character's length of tick function updateTickSize(uint8 _size) external onlyOwner { maxTickSize = _size; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// 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 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 v4.4.1 (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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./Logarithm.sol"; import "./TransferHelper.sol"; // This is common token interface, get balance of owner's token by ERC20/ERC721/ERC1155. interface ICommonToken { function balanceOf(address owner) external returns(uint256); } // This contract is extended from ERC20 contract Inscription is ERC20 { using Logarithm for int256; uint256 public cap; // Max amount uint256 public limitPerMint; // Limitaion of each mint uint256 public inscriptionId; // Inscription Id uint256 public maxMintSize; // max mint size, that means the max mint quantity is: maxMintSize * limitPerMint uint256 public freezeTime; // The frozen time (interval) between two mints is a fixed number of seconds. You can mint, but you will need to pay an additional mint fee, and this fee will be double for each mint. address public onlyContractAddress; // Only addresses that hold these assets can mint uint256 public onlyMinQuantity; // Only addresses that the quantity of assets hold more than this amount can mint uint256 public baseFee; // base fee of the second mint after frozen interval. The first mint after frozen time is free. uint256 public fundingCommission; // commission rate of fund raising, 100 means 1% uint256 public crowdFundingRate; // rate of crowdfunding address payable public crowdfundingAddress; // receiving fee of crowdfunding address payable public inscriptionFactory; mapping(address => uint256) public lastMintTimestamp; // record the last mint timestamp of account mapping(address => uint256) public lastMintFee; // record the last mint fee constructor( string memory _name, // token name string memory _tick, // token tick, same as symbol. must be 4 characters. uint256 _cap, // Max amount uint256 _limitPerMint, // Limitaion of each mint uint256 _inscriptionId, // Inscription Id uint256 _maxMintSize, // max mint size, that means the max mint quantity is: maxMintSize * limitPerMint. This is only availabe for non-frozen time token. uint256 _freezeTime, // The frozen time (interval) between two mints is a fixed number of seconds. You can mint, but you will need to pay an additional mint fee, and this fee will be double for each mint. address _onlyContractAddress, // Only addresses that hold these assets can mint uint256 _onlyMinQuantity, // Only addresses that the quantity of assets hold more than this amount can mint uint256 _baseFee, // base fee of the second mint after frozen interval. The first mint after frozen time is free. uint256 _fundingCommission, // commission rate of fund raising, 100 means 1% uint256 _crowdFundingRate, // rate of crowdfunding address payable _crowdFundingAddress, // receiving fee of crowdfunding address payable _inscriptionFactory ) ERC20(_name, _tick) { require(_cap >= _limitPerMint, "Limit per mint exceed cap"); cap = _cap; limitPerMint = _limitPerMint; inscriptionId = _inscriptionId; maxMintSize = _maxMintSize; freezeTime = _freezeTime; onlyContractAddress = _onlyContractAddress; onlyMinQuantity = _onlyMinQuantity; baseFee = _baseFee; fundingCommission = _fundingCommission; crowdFundingRate = _crowdFundingRate; crowdfundingAddress = _crowdFundingAddress; inscriptionFactory = _inscriptionFactory; } function mint(address _to) payable public { // Check if the quantity after mint will exceed the cap require(totalSupply() + limitPerMint <= cap, "Touched cap"); // Check if the assets in the msg.sender is satisfied require(onlyContractAddress == address(0x0) || ICommonToken(onlyContractAddress).balanceOf(msg.sender) >= onlyMinQuantity, "You don't have required assets"); if(lastMintTimestamp[msg.sender] + freezeTime > block.timestamp) { // The min extra tip is double of last mint fee lastMintFee[msg.sender] = lastMintFee[msg.sender] == 0 ? baseFee : lastMintFee[msg.sender] * 2; // Transfer the fee to the crowdfunding address if(crowdFundingRate > 0) { // Check if the tip is high than the min extra fee require(msg.value >= crowdFundingRate + lastMintFee[msg.sender], "Send some ETH as fee and crowdfunding"); _dispatchFunding(crowdFundingRate); } // Transfer the tip to InscriptionFactory smart contract if(msg.value - crowdFundingRate > 0) TransferHelper.safeTransferETH(inscriptionFactory, msg.value - crowdFundingRate); } else { // Transfer the fee to the crowdfunding address if(crowdFundingRate > 0) { require(msg.value >= crowdFundingRate, "Send some ETH as crowdfunding"); _dispatchFunding(msg.value); } // Out of frozen time, free mint. Reset the timestamp and mint times. lastMintFee[msg.sender] = 0; lastMintTimestamp[msg.sender] = block.timestamp; } // Do mint _mint(_to, limitPerMint); } // batch mint is only available for non-frozen-time tokens function batchMint(address _to, uint256 _num) payable public { require(_num <= maxMintSize, "exceed max mint size"); require(totalSupply() + _num * limitPerMint <= cap, "Touch cap"); require(freezeTime == 0, "Batch mint only for non-frozen token"); require(onlyContractAddress == address(0x0) || ICommonToken(onlyContractAddress).balanceOf(msg.sender) >= onlyMinQuantity, "You don't have required assets"); if(crowdFundingRate > 0) { require(msg.value >= crowdFundingRate * _num, "Crowdfunding ETH not enough"); _dispatchFunding(msg.value); } for(uint256 i = 0; i < _num; i++) _mint(_to, limitPerMint); } function getMintFee(address _addr) public view returns(uint256 mintedTimes, uint256 nextMintFee) { if(lastMintTimestamp[_addr] + freezeTime > block.timestamp) { int256 scale = 1e18; int256 halfScale = 5e17; // times = log_2(lastMintFee / baseFee) + 1 (if lastMintFee > 0) nextMintFee = lastMintFee[_addr] == 0 ? baseFee : lastMintFee[_addr] * 2; mintedTimes = uint256((Logarithm.log2(int256(nextMintFee / baseFee) * scale, scale, halfScale) + 1) / scale) + 1; } } function _dispatchFunding(uint256 _amount) private { uint256 commission = _amount * fundingCommission / 10000; TransferHelper.safeTransferETH(crowdfundingAddress, _amount - commission); if(commission > 0) TransferHelper.safeTransferETH(inscriptionFactory, commission); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library Logarithm { /// @notice Finds the zero-based index of the first one in the binary representation of x. /// @dev See the note on msb in the "Find First Set" Wikipedia article https://en.wikipedia.org/wiki/Find_first_set /// @param x The uint256 number for which to find the index of the most significant bit. /// @return msb The index of the most significant bit as an uint256. function mostSignificantBit(uint256 x) internal pure returns (uint256 msb) { if (x >= 2**128) { x >>= 128; msb += 128; } if (x >= 2**64) { x >>= 64; msb += 64; } if (x >= 2**32) { x >>= 32; msb += 32; } if (x >= 2**16) { x >>= 16; msb += 16; } if (x >= 2**8) { x >>= 8; msb += 8; } if (x >= 2**4) { x >>= 4; msb += 4; } if (x >= 2**2) { x >>= 2; msb += 2; } if (x >= 2**1) { // No need to shift x any more. msb += 1; } } /// @notice Calculates the binary logarithm of x. /// /// @dev Based on the iterative approximation algorithm. /// https://en.wikipedia.org/wiki/Binary_logarithm#Iterative_approximation /// /// Requirements: /// - x must be greater than zero. /// /// Caveats: /// - The results are nor perfectly accurate to the last digit, due to the lossy precision of the iterative approximation. /// /// @param x The signed 59.18-decimal fixed-point number for which to calculate the binary logarithm. /// @return result The binary logarithm as a signed 59.18-decimal fixed-point number. function log2(int256 x, int256 scale, int256 halfScale) internal pure returns (int256 result) { require(x > 0); unchecked { // This works because log2(x) = -log2(1/x). int256 sign; if (x >= scale) { sign = 1; } else { sign = -1; // Do the fixed-point inversion inline to save gas. The numerator is SCALE * SCALE. assembly { x := div(1000000000000000000000000000000000000, x) } } // Calculate the integer part of the logarithm and add it to the result and finally calculate y = x * 2^(-n). uint256 n = mostSignificantBit(uint256(x / scale)); // The integer part of the logarithm as a signed 59.18-decimal fixed-point number. The operation can't overflow // because n is maximum 255, SCALE is 1e18 and sign is either 1 or -1. result = int256(n) * scale; // This is y = x * 2^(-n). int256 y = x >> n; // If y = 1, the fractional part is zero. if (y == scale) { return result * sign; } // Calculate the fractional part via the iterative approximation. // The "delta >>= 1" part is equivalent to "delta /= 2", but shifting bits is faster. for (int256 delta = int256(halfScale); delta > 0; delta >>= 1) { y = (y * y) / scale; // Is y^2 > 2 and so in the range [2,4)? if (y >= 2 * scale) { // Add the 2^(-m) factor to the logarithm. result += delta; // Corresponds to z/2 on Wikipedia. y >>= 1; } } result *= sign; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library String { function strlen(string memory s) internal pure returns (uint256) { uint256 len; uint256 i = 0; uint256 bytelength = bytes(s).length; for (len = 0; i < bytelength; len++) { bytes1 b = bytes(s)[i]; if (b < 0x80) { i += 1; } else if (b < 0xE0) { i += 2; } else if (b < 0xF0) { i += 3; } else if (b < 0xF8) { i += 4; } else if (b < 0xFC) { i += 5; } else { i += 6; } } return len; } function toLower(string memory str) internal pure returns (string memory) { bytes memory bStr = bytes(str); bytes memory bLower = new bytes(bStr.length); for (uint i = 0; i < bStr.length; i++) { if (uint8(bStr[i]) >= 65 && uint8(bStr[i]) <= 90) { bLower[i] = bytes1(uint8(bStr[i]) + 32); } else { bLower[i] = bStr[i]; } } return string(bLower); } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } function compareStrings(string memory a, string memory b) public pure returns (bool) { return keccak256(abi.encodePacked(a)) == keccak256(abi.encodePacked(b)); } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.6.0; // helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false library TransferHelper { function safeApprove( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::safeApprove: approve failed' ); } function safeTransfer( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::safeTransfer: transfer failed' ); } function safeTransferFrom( address token, address from, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::transferFrom: transferFrom failed' ); } function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, 'TransferHelper::safeTransferETH: ETH transfer failed'); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "viaIR": true, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "remappings": [ "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "murky/=lib/murky/src/", "openzeppelin-contracts/=lib/murky/lib/openzeppelin-contracts/" ], "libraries": {} }
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"string","name":"tick","type":"string"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"uint256","name":"cap","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"limitPerMint","type":"uint256"},{"indexed":false,"internalType":"address","name":"inscriptionAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"DeployInscription","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"baseFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_tick","type":"string"},{"internalType":"uint256","name":"_cap","type":"uint256"},{"internalType":"uint256","name":"_limitPerMint","type":"uint256"},{"internalType":"uint256","name":"_maxMintSize","type":"uint256"},{"internalType":"uint256","name":"_freezeTime","type":"uint256"},{"internalType":"address","name":"_onlyContractAddress","type":"address"},{"internalType":"uint256","name":"_onlyMinQuantity","type":"uint256"},{"internalType":"uint256","name":"_crowdFundingRate","type":"uint256"},{"internalType":"address","name":"_crowdFundingAddress","type":"address"}],"name":"deploy","outputs":[{"internalType":"address","name":"_inscriptionAddress","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fundingCommission","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getIncriptionById","outputs":[{"components":[{"internalType":"string","name":"tick","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"cap","type":"uint256"},{"internalType":"uint256","name":"limitPerMint","type":"uint256"},{"internalType":"uint256","name":"maxMintSize","type":"uint256"},{"internalType":"uint256","name":"inscriptionId","type":"uint256"},{"internalType":"uint256","name":"freezeTime","type":"uint256"},{"internalType":"address","name":"onlyContractAddress","type":"address"},{"internalType":"uint256","name":"onlyMinQuantity","type":"uint256"},{"internalType":"uint256","name":"crowdFundingRate","type":"uint256"},{"internalType":"address","name":"crowdfundingAddress","type":"address"},{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct InscriptionFactory.Token","name":"","type":"tuple"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_tick","type":"string"}],"name":"getIncriptionByTick","outputs":[{"components":[{"internalType":"string","name":"tick","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"cap","type":"uint256"},{"internalType":"uint256","name":"limitPerMint","type":"uint256"},{"internalType":"uint256","name":"maxMintSize","type":"uint256"},{"internalType":"uint256","name":"inscriptionId","type":"uint256"},{"internalType":"uint256","name":"freezeTime","type":"uint256"},{"internalType":"address","name":"onlyContractAddress","type":"address"},{"internalType":"uint256","name":"onlyMinQuantity","type":"uint256"},{"internalType":"uint256","name":"crowdFundingRate","type":"uint256"},{"internalType":"address","name":"crowdfundingAddress","type":"address"},{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct InscriptionFactory.Token","name":"tokens","type":"tuple"},{"internalType":"uint256","name":"totalSupplies","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_tick","type":"string"}],"name":"getIncriptionIdByTick","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pageNo","type":"uint256"},{"internalType":"uint256","name":"_pageSize","type":"uint256"},{"internalType":"uint256","name":"_type","type":"uint256"}],"name":"getIncriptions","outputs":[{"components":[{"internalType":"string","name":"tick","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"cap","type":"uint256"},{"internalType":"uint256","name":"limitPerMint","type":"uint256"},{"internalType":"uint256","name":"maxMintSize","type":"uint256"},{"internalType":"uint256","name":"inscriptionId","type":"uint256"},{"internalType":"uint256","name":"freezeTime","type":"uint256"},{"internalType":"address","name":"onlyContractAddress","type":"address"},{"internalType":"uint256","name":"onlyMinQuantity","type":"uint256"},{"internalType":"uint256","name":"crowdFundingRate","type":"uint256"},{"internalType":"address","name":"crowdfundingAddress","type":"address"},{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct InscriptionFactory.Token[]","name":"","type":"tuple[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getInscriptionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_type","type":"uint256"}],"name":"getInscriptionAmountByType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTickSize","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"updateBaseFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"updateFundingCommission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_size","type":"uint8"}],"name":"updateTickSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080806040523461007f5760008054336001600160a01b0319821681178355916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3600460ff19600254161760025565e35fa931a0006003556064600455600180540160015561390590816100858239f35b600080fdfe608060405260043610156200001d575b36156200001b57600080fd5b005b60003560e01c8063076bf241146200150a578063135d9f7314620013ad578063396d5b7014620013715780634d76be2a146200134e578063583c15b51462000a8057806363a8cc071462000a135780636ef25c3a14620009f3578063715018a614620009965780638b67a52114620009685780638da5cb5b146200093d5780638e6901861462000918578063a18a127a14620008f3578063a7b8a7d01462000516578063cb06bfdb14620004f6578063dc8773e914620002e2578063f2fde38b14620002115763f3fef3a3036200000f57346200020c5760403660031901126200020c576004356001600160a01b038116908190036200020c5760243590620001256200178a565b4782116200020c5760405160208101908082106001600160401b03831117620001f65760008080868682809688604052525af13d15620001f0573d6200016b8162001721565b906200017b6040519283620016ff565b8152600060203d92013e5b156200018e57005b60405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527308115512081d1c985b9cd9995c8819985a5b195960621b6064820152608490fd5b62000186565b634e487b7160e01b600052604160045260246000fd5b600080fd5b346200020c5760203660031901126200020c576004356001600160a01b03818116918290036200020c57620002456200178a565b81156200028e57600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b346200020c576020806003193601126200020c576004356001600160401b0381116200020c57620003189036906004016200173d565b906200032362001820565b906000604051936363a8cc0760e01b948581528360048201528381806200034e60248201866200160b565b0381305afa9081156200047f57600091620004c0575b50620003a9958491600052600582526200038d62000386604060002062001937565b9362001c8a565b906040519788928392835284600484015260248301906200160b565b0381305afa9485156200047f576000956200048b575b5084620003eb575b50620003e3935060405193849360408552604085019062001632565b918301520390f35b925050600492600052600581528062000408604060002062001937565b610160909301516040516318160ddd60e01b815294859182906001600160a01b03165afa80156200047f5760009062000449575b620003e3935084620003c7565b508083813d831162000477575b620004628183620016ff565b810103126200020c57620003e392516200043c565b503d62000456565b6040513d6000823e3d90fd5b9094508281813d8311620004b8575b620004a68183620016ff565b810103126200020c57519385620003bf565b503d6200049a565b90508381813d8311620004ee575b620004da8183620016ff565b810103126200020c5751620003a962000364565b503d620004ce565b346200020c5760003660031901126200020c576020600454604051908152f35b346200020c5760603660031901126200020c5762000539600360443510620019ea565b604051638b67a52160e01b8152602081600481305afa9081156200047f57600091620008bb575b506000198101818111620007465760243515620008a5576024359004906001918281018091116200074657600435151590816200089c575b8162000891575b8162000883575b50156200084f5790620005bb60243562001bbb565b90620005c960243562001c15565b92620005d58162001bbb565b620005e08262001c15565b600092845b818111156200075c5750506024356004356000198101828102959181119492811591870414171560005b6024358110620006c3575b5050505050505060405191604083016040845281518091526060840190602060608260051b8701019301916000905b82821062000691575050505082810360208401526020808551928381520194019060005b8181106200067b5784860385f35b825186526020958601959092019183016200066d565b9091929394602080620006b1839a98605f198b8203018652885162001632565b96019201920190929196949662000649565b859997996200074657816200074657808701908188116200074657838210156200073c576200071f828b6200070a846200070262000733978b62001c4d565b519262001c4d565b5262000717838d62001c4d565b508762001c4d565b516200072c828b62001c4d565b5262001a25565b9896986200060f565b509896986200061a565b634e487b7160e01b600052601160045260246000fd5b60405163076bf24160e01b815260048101829052959795600081602481305afa9081156200047f5760009060009262000824575b506044358a148062000816575b8015620007fa575b15620007c1575050620007b89062001a25565b969496620005e5565b95620007f391620007b89397620007d9838962001c4d565b52620007e6828862001c4d565b506200072c828762001c4d565b9462001a25565b506002604435148015620007a5575060408101518210620007a5565b50604081015182146200079d565b90506200084791503d806000833e6200083e8183620016ff565b81019062001a97565b908a62000790565b60405162461bcd60e51b815260206004820152600c60248201526b506172616d732077726f6e6760a01b6044820152606490fd5b9050600435111583620005a6565b80151591506200059f565b83915062000598565b634e487b7160e01b600052601260045260246000fd5b90506020813d602011620008ea575b81620008d960209383620016ff565b810103126200020c57518162000560565b3d9150620008ca565b346200020c5760203660031901126200020c57620009106200178a565b600480359055005b346200020c5760203660031901126200020c57620009356200178a565b600435600355005b346200020c5760003660031901126200020c576000546040516001600160a01b039091168152602090f35b346200020c5760003660031901126200020c5760015460001981019081116200074657602090604051908152f35b346200020c5760003660031901126200020c57620009b36200178a565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346200020c5760003660031901126200020c576020600354604051908152f35b346200020c5760203660031901126200020c576004356001600160401b0381116200020c5762000a6d602062000a5962000a53829436906004016200173d565b62001c8a565b8160405193828580945193849201620015e6565b8101600681520301902054604051908152f35b346200020c576101403660031901126200020c576004356001600160401b0381116200020c5762000ab69036906004016200173d565b6024356001600160401b0381116200020c5762000ad89036906004016200173d565b60c435906001600160a01b03821682036200020c5761012435906001600160a01b03821682036200020c5780516000805b8281106200125c5750905060ff6002541603620012175760643560443510620011d25762000b379062001c8a565b6040516363a8cc0760e01b8152602060048201819052818062000b5e60248201866200160b565b0381305afa9081156200047f576000916200119a575b50620011635760405193611b4762000b906020820187620016ff565b80865262001d8960208701396001549262000c9e60206003549762000c616004546040519a8b916101c08684015262000be562000bd26101e085018b6200160b565b848103601f190160408601528b6200160b565b6044356060850152606435608085015260a084018c905260843560c085015260a43560e08501526001600160a01b038d811661010086015260e435610120860152610140850193909352610160840191909152610104356101808401529087166101a0830152306101c083015203601f1981018b528a620016ff565b604051988162000c7b8b93518092868087019101620015e6565b820162000c9182518093868085019101620015e6565b01038089520187620016ff565b60405195846020880152602087528660408101106001600160401b03604089011117620001f6576040870160405286516020880120906020815191016000f594853b156200020c5762000cf460408801620016e2565b60408781018581526060890185905260443560808a015260643560a08a015260843560c08a015260e0890187905260a4356101008a01526001600160a01b039283166101208a015260e4356101408a0152610104356101608a01529282166101808901529086166101a0880152426101c0880152600085815260056020522090518051906001600160401b038211620001f657819062000d958454620017e3565b601f81116200110e575b50602090601f83116001146200109d5760009262001091575b50508160011b916000199060031b1c19161781555b60608601519586516001600160401b038111620001f65762000df36001840154620017e3565b97601f891162001045575b602098508890601f831160011462000fa0576101c062000f5a948462000f4c98957fc9be58508fa11c9bc250c6c7b10320e7b06c0a8b71fbab161b34d62043ae846c9a9895600c9560009262000f94575b50508160011b916000199060031b1c19161760018501555b6080810151600285015560a0810151600385015560c0810151600485015560e0810151600585015561010081015160068501556101208101516007850180546001600160a01b039283166001600160a01b03199182161790915561014083015160088701556101608301516009870155610180830151600a870180549184169183169190911790556101a0830151600b87018054919093169116179055015191015560405183518791908a90829062000f248183858b01620015e6565b8101600681520301902055600180540160015560405193849360c0855260c08501906200160b565b90838203898501526200160b565b604435604083015260643560608301526001600160a01b03861660808301524260a08301520390a26040516001600160a01b039091168152f35b015190508e8062000e4f565b9060018501600052896000209160005b601f19851681106200102d575062000f5a946001857fc9be58508fa11c9bc250c6c7b10320e7b06c0a8b71fbab161b34d62043ae846c9a9895600c956101c09562000f4c9c99601f1981161062001013575b505050811b01600185015562000e67565b015160001960f88460031b161c191690558e808062001002565b91928b60018192868501518155019401920162000fb0565b600184016000526020600020601f830160051c81016020841062001089575b601f8b0160051c820181106200107c57505062000dfe565b6000815560010162001064565b508062001064565b01519050888062000db8565b9250836000526020600020906000935b601f1984168510620010f2576001945083601f19811610620010d8575b505050811b01815562000dcd565b015160001960f88460031b161c19169055888080620010ca565b81810151835560209485019460019093019290910190620010ad565b909150836000526020600020601f840160051c8101602085106200115b575b90849392915b601f830160051c820181106200114b57505062000d9f565b6000815585945060010162001133565b50806200112d565b60405162461bcd60e51b815260206004820152600f60248201526e1d1a58dac81a5cc8195e1a5cdd1959608a1b6044820152606490fd5b90506020813d602011620011c9575b81620011b860209383620016ff565b810103126200020c57518562000b74565b3d9150620011a9565b60405162461bcd60e51b815260206004820152601960248201527f4c696d697420706572206d696e742065786365656420636170000000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152601760248201527f5469636b206c656e6768742073686f756c6420626520340000000000000000006044820152606490fd5b6001600160f81b031962001271828662001c78565b5116600160ff1b811015620012a0575060018101809111620007465762001299909162001a25565b9062000b09565b600760fd1b811015620012c6575060028101809111620007465762001299909162001a25565b600f60fc1b811015620012ec575060038101809111620007465762001299909162001a25565b601f60fb1b81101562001312575060048101809111620007465762001299909162001a25565b603f60fa1b1115620013365760058101809111620007465762001299909162001a25565b60068101809111620007465762001299909162001a25565b346200020c5760003660031901126200020c57602060ff60025416604051908152f35b346200020c5760203660031901126200020c5760043560ff81168091036200020c576200139d6200178a565b60ff196002541617600255600080f35b346200020c576020806003193601126200020c57600435620013d260038210620019ea565b604051638b67a52160e01b81528281600481305afa9081156200047f57600091620014d7575b5090600091600191828114925b8281111562001418578585604051908152f35b60405163076bf24160e01b815260048101829052600081602481305afa80156200047f57600091600091620014b6575b508580620014a8575b156200146a575050620014649062001a25565b62001405565b60028414918262001499575b5050156200148957620014649062001a25565b93620007f3620014649162001a25565b60400151119050878062001476565b506040820151811462001451565b9050620014d091503d806000833e6200083e8183620016ff565b8862001448565b90508281813d831162001502575b620014f18183620016ff565b810103126200020c575183620013f8565b503d620014e5565b346200020c576020806003193601126200020c5760048035916200152d62001820565b50826000526005815262001545604060002062001937565b92600052600581528060406000209361016060018060a01b0391015116604051938480926318160ddd60e01b82525afa9182156200047f57600092620015ac575b5062001596620003e39362001937565b9160405193849360408552604085019062001632565b9291508083813d8311620015de575b620015c78183620016ff565b810103126200020c57915190916200159662001586565b503d620015bb565b60005b838110620015fa5750506000910152565b8181015183820152602001620015e9565b906020916200162681518092818552858086019101620015e6565b601f01601f1916010190565b906200165f6200164c83516101a08085528401906200160b565b602084015183820360208501526200160b565b9160408101516040830152606081015160608301526080810151608083015260a081015160a083015260c081015160c083015260018060a01b038060e08301511660e08401526101008083015190840152610120808301519084015261014081818401511690840152610160908183015116908301526101808091015191015290565b6101a081019081106001600160401b03821117620001f657604052565b90601f801991011681019081106001600160401b03821117620001f657604052565b6001600160401b038111620001f657601f01601f191660200190565b81601f820112156200020c57803590620017578262001721565b92620017676040519485620016ff565b828452602083830101116200020c57816000926020809301838601378301015290565b6000546001600160a01b031633036200179f57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b90600182811c9216801562001815575b6020831014620017ff57565b634e487b7160e01b600052602260045260246000fd5b91607f1691620017f3565b604051906200182f82620016e2565b8160608152606060208201526101806000918260408201528260608201528260808201528260a08201528260c08201528260e0820152826101008201528261012082015282610140820152826101608201520152565b90604051918260008254926200189b84620017e3565b908184526001948581169081600014620019125750600114620018cb575b5050620018c992500383620016ff565b565b9093915060005260209081600020936000915b818310620018f9575050620018c993508201013880620018b9565b85548884018501529485019487945091830191620018de565b915050620018c994506020925060ff191682840152151560051b8201013880620018b9565b906040516200194681620016e2565b610180600c8294620019588162001885565b8452620019686001820162001885565b6020850152600281015460408501526003810154606085015260048101546080850152600581015460a0850152600681015460c085015260078101546001600160a01b0390811660e086015260088201546101008601526009820154610120860152600a8201548116610140860152600b820154166101608501520154910152565b15620019f257565b60405162461bcd60e51b815260206004820152600b60248201526a3a3cb8329034b99018169960a91b6044820152606490fd5b6000198114620007465760010190565b81601f820112156200020c57805162001a4e8162001721565b9262001a5e6040519485620016ff565b818452602082840101116200020c5762001a7f9160208085019101620015e6565b90565b51906001600160a01b03821682036200020c57565b91906040838203126200020c5782516001600160401b03908181116200020c5784016101a0818403126200020c576040519162001ad483620016e2565b81518181116200020c578462001aec91840162001a35565b835260208201519081116200020c5760209362001b0b91830162001a35565b8383015260408101516040830152606081015160608301526080810151608083015260a081015160a083015260c081015160c083015262001b4f60e0820162001a82565b60e08301526101008082015190830152610120808201519083015261014062001b7a81830162001a82565b9083015261016062001b8e81830162001a82565b90830152610180809101519082015292015190565b6001600160401b038111620001f65760051b60200190565b9062001bc78262001ba3565b62001bd66040519182620016ff565b828152809262001be9601f199162001ba3565b019060005b82811062001bfb57505050565b60209062001c0862001820565b8282850101520162001bee565b9062001c218262001ba3565b62001c306040519182620016ff565b828152809262001c43601f199162001ba3565b0190602036910137565b805182101562001c625760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b90815181101562001c62570160200190565b90815162001c988162001721565b9062001ca86040519283620016ff565b80825262001cb9601f199162001721565b01602090368284013760005b845181101562001d815762001cdb818662001c78565b5190604160f892831c10158062001d67575b1562001d3b578262001d00828862001c78565b51831c019160ff8311620007465762001d3592901b6001600160f81b03191660001a62001d2e828662001c78565b5362001a25565b62001cc5565b62001d3591506001600160f81b031962001d56828862001c78565b511660001a62001d2e828662001c78565b50605a62001d76828862001c78565b51831c111562001ced565b509092505056fe608060405234620004c35762001b47803803806200001d81620004c8565b92833981016101c082820312620004c35781516001600160401b038111620004c357816200004d918401620004ee565b602083015190916001600160401b038211620004c35762000070918401620004ee565b60408301516060840151608085015160a086015160c087015160e08801519795929492916001600160a01b0389168903620004c3578695869586958695620000e36101a0620000db6101806101606101406101206101008e01519d01519d01519d01519d0162000560565b9c0162000560565b8c51909c6001600160401b038211620003965760035490600182811c92168015620004b8575b6020831014620003755781601f84931162000443575b50602090601f8311600114620003b857600092620003ac575b50508160011b916000199060031b1c1916176003555b8051906001600160401b038211620003965760045490600182811c921680156200038b575b6020831014620003755781601f84931162000303575b50602090601f831160011462000278576000926200026c575b50508160011b916000199060031b1c1916176004555b818110620002275760055560065560075560085560095560018060a01b03199660018060a01b031687600a541617600a55600b55600c55600d55600e5560018060a01b031682600f541617600f5560018060a01b03169060105416176010556040516115d19081620005768239f35b60405162461bcd60e51b815260206004820152601960248201527f4c696d697420706572206d696e742065786365656420636170000000000000006044820152606490fd5b015190503880620001a2565b600460009081527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b9350601f198516905b818110620002ea5750908460019594939210620002d0575b505050811b01600455620001b8565b015160001960f88460031b161c19169055388080620002c1565b92936020600181928786015181550195019301620002a9565b60046000529091507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b601f840160051c8101602085106200036d575b90849392915b601f830160051c820181106200035d57505062000189565b6000815585945060010162000345565b50806200033f565b634e487b7160e01b600052602260045260246000fd5b91607f169162000173565b634e487b7160e01b600052604160045260246000fd5b01519050388062000138565b600360009081527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b9350601f198516905b8181106200042a575090846001959493921062000410575b505050811b016003556200014e565b015160001960f88460031b161c1916905538808062000401565b92936020600181928786015181550195019301620003e9565b60036000529091507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f840160051c81019160208510620004ad575b90601f859493920160051c01905b8181106200049d57506200011f565b600081558493506001016200048e565b909150819062000480565b91607f169162000109565b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200039657604052565b919080601f84011215620004c35782516001600160401b038111620003965760209062000524601f8201601f19168301620004c8565b92818452828287010111620004c35760005b8181106200054c57508260009394955001015290565b858101830151848201840152820162000536565b51906001600160a01b0382168203620004c35756fe608060408181526004918236101561001657600080fd5b600092833560e01c91826306fdde0314610d6d57508163095ea7b314610d4357816316b8060c14610d2457816318160ddd14610d055781631c4cd1a514610ccd57816323b872dd14610c035781632ca9160414610be4578163313ce56714610bc8578163355274ea14610ba95781633950935114610b5957816343508b051461090f5781635c4caf95146108e65781636a627842146106265781636ef25c3a1461060757816370a08231146105d05781638f81537b1461049e57816395d89b411461039b5781639f805924146103725781639fc6a1dc14610349578163a457c2d7146102a157508063a9059cbb14610271578063bde593c614610253578063be13197b1461021c578063cb06bfdb146101fe578063dd62ed3e146101b6578063def504bb14610198578063e2ce9f511461017a5763fd7e1bee1461015957600080fd5b346101765781600319360112610176576020906009549051908152f35b5080fd5b50346101765781600319360112610176576020906006549051908152f35b5034610176578160031936011261017657602090600b549051908152f35b5034610176578060031936011261017657806020926101d3610eab565b6101db610ec6565b6001600160a01b0391821683526001865283832091168252845220549051908152f35b5034610176578160031936011261017657602090600d549051908152f35b50346101765760203660031901126101765760209181906001600160a01b03610243610eab565b1681526011845220549051908152f35b50346101765781600319360112610176576020906007549051908152f35b503461017657806003193601126101765760209061029a610290610eab565b6024359033610f37565b5160018152f35b905082346103465782600319360112610346576102bc610eab565b918360243592338152600160205281812060018060a01b03861682526020522054908282106102f55760208561029a85850387336110a5565b608490602086519162461bcd60e51b8352820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152fd5b80fd5b50503461017657816003193601126101765760105490516001600160a01b039091168152602090f35b505034610176578160031936011261017657600a5490516001600160a01b039091168152602090f35b838334610176578160031936011261017657805191809380549160019083821c92828516948515610494575b60209586861081146104815785895290811561045d5750600114610405575b61040187876103f7828c0383610edc565b5191829182610e62565b0390f35b81529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061044a5750505082610401946103f7928201019486806103e6565b805486850188015292860192810161042c565b60ff19168887015250505050151560051b83010192506103f78261040186806103e6565b634e487b7160e01b845260228352602484fd5b93607f16936103c7565b90508234610346576020366003190112610346576104ba610eab565b908092819260018060a01b031680835260116020526104df8684205460095490610f14565b42106104f5575b50505082519182526020820152f35b82526012602052848220549193509150806105a95750600c54915b600c548381156105965704670de0b6b3a764000090818102908082058314901517156105835761053f906112f8565b60018101908360018312911290801582169115161761058357059160018301809311610570575050908380806104e6565b634e487b7160e01b825260119052602490fd5b634e487b7160e01b835260118452602483fd5b634e487b7160e01b835260128452602483fd5b8060011b9081046002036105bd5791610510565b634e487b7160e01b835260118252602483fd5b5050346101765760203660031901126101765760209181906001600160a01b036105f8610eab565b16815280845220549051908152f35b505034610176578160031936011261017657602090600c549051908152f35b8391506020806003193601126108e25761063e610eab565b9161064e60025460065490610f14565b600554106108b357600a546001600160a01b039290859084168015908390821561083e575b505061067f91506111a7565b338552601181526106968686205460095490610f14565b4210156107b35733855260128152858520548061078c5750600c54955b338652601282528681872055600e549687610713575b505050506106f1929350600e546106e08134611206565b6106f4575b50505b60065490611213565b80f35b61070661070c92601054169134611206565b906114ba565b83806106e5565b61071d9088610f14565b341061073d575050506107336106f193946112b6565b83928580806106c9565b5162461bcd60e51b815291820152602560248201527f53656e6420736f6d65204554482061732066656520616e642063726f776466756044820152646e64696e6760d81b606482015260849150fd5b8060011b9081046002036107a057956106b3565b634e487b7160e01b865260118352602486fd5b949150600e54806107df575b505060116106f193943386526012815285838120555242908420556106e8565b34106107fd575060116106f193946107f6346112b6565b94936107bf565b84606492519162461bcd60e51b8352820152601d60248201527f53656e6420736f6d65204554482061732063726f776466756e64696e670000006044820152fd5b90915060248951809481936370a0823160e01b835233898401525af180156108a9578690610876575b600b5487925011158289610673565b508181813d83116108a2575b61088c8183610edc565b8101031261089e5761067f9051610867565b8580fd5b503d610882565b87513d88823e3d90fd5b60649185519162461bcd60e51b8352820152600b60248201526a0546f7563686564206361760ac1b6044820152fd5b8280fd5b505034610176578160031936011261017657600f5490516001600160a01b039091168152602090f35b918091506003193601126108e257610925610eab565b916024928335926008548411610b21576002549061095060069261094a8454886111f3565b90610f14565b60055410610af457600954610aa657600a5487906001600160a01b03168015908115610a2c575b5061098291506111a7565b600e5485816109ca575b505050855b84811061099c578680f35b6109a7825484611213565b60001981146109b857600101610991565b634e487b7160e01b8752601184528587fd5b6109d3916111f3565b34106109eb57506109e3346112b6565b38808561098c565b5162461bcd60e51b8152602081850152601b818701527f43726f776466756e64696e6720455448206e6f7420656e6f75676800000000006044820152606490fd5b60209150888451809481936370a0823160e01b8352338b8401525af18015610a9c578890610a65575b600b548992501115610982610977565b506020813d8211610a94575b81610a7e60209383610edc565b81010312610a90576109829051610a55565b8780fd5b3d9150610a71565b82513d8a823e3d90fd5b5162461bcd60e51b81526020818501528086018690527f4261746368206d696e74206f6e6c7920666f72206e6f6e2d66726f7a656e207460448201526337b5b2b760e11b6064820152608490fd5b5162461bcd60e51b8152602081850152600981870152680546f756368206361760bc1b6044820152606490fd5b5162461bcd60e51b815260208184015260148186015273657863656564206d6178206d696e742073697a6560601b6044820152606490fd5b50503461017657806003193601126101765761029a602092610ba2610b7c610eab565b338352600186528483206001600160a01b03821684528652918490205460243590610f14565b90336110a5565b5050346101765781600319360112610176576020906005549051908152f35b5050346101765781600319360112610176576020905160128152f35b505034610176578160031936011261017657602090600e549051908152f35b8391503461017657606036600319011261017657610c1f610eab565b610c27610ec6565b91846044359460018060a01b038416815260016020528181203382526020522054906000198203610c61575b60208661029a878787610f37565b848210610c8a5750918391610c7f6020969561029a950333836110a5565b919394819350610c53565b606490602087519162461bcd60e51b8352820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b5050346101765760203660031901126101765760209181906001600160a01b03610cf5610eab565b1681526012845220549051908152f35b5050346101765781600319360112610176576020906002549051908152f35b5050346101765781600319360112610176576020906008549051908152f35b50503461017657806003193601126101765760209061029a610d63610eab565b60243590336110a5565b92915034610e5e5783600319360112610e5e57600354600181811c9186908281168015610e54575b6020958686108214610e415750848852908115610e1f5750600114610dc6575b61040186866103f7828b0383610edc565b929550600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b828410610e0c5750505082610401946103f7928201019438610db5565b8054868501880152928601928101610def565b60ff191687860152505050151560051b83010192506103f78261040138610db5565b634e487b7160e01b845260229052602483fd5b93607f1693610d95565b8380fd5b6020808252825181830181905290939260005b828110610e9757505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501610e75565b600435906001600160a01b0382168203610ec157565b600080fd5b602435906001600160a01b0382168203610ec157565b90601f8019910116810190811067ffffffffffffffff821117610efe57604052565b634e487b7160e01b600052604160045260246000fd5b91908201809211610f2157565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03908116918215611052571691821561100157600082815280602052604081205491808310610fad57604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b6001600160a01b0390811691821561115657169182156111065760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260018252604060002085600052825280604060002055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b156111ae57565b60405162461bcd60e51b815260206004820152601e60248201527f596f7520646f6e277420686176652072657175697265642061737365747300006044820152606490fd5b81810292918115918404141715610f2157565b91908203918211610f2157565b6001600160a01b0316908115611271577fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602082611255600094600254610f14565b60025584845283825260408420818154019055604051908152a3565b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fd5b6127106112c5600d54836111f3565b046112e060018060a01b03926107068385600f541692611206565b806112e9575050565b6112f691601054166114ba565b565b6000908181131561017657670de0b6b3a76400009182821261149c576001925b81818405600160801b811015611491575b6801000000000000000081101561147c575b640100000000811015611467575b62010000811015611452575b61010081101561143d575b6010811015611428575b60048110156113ff575b600211156113df575b81810293811d908282146113d457506706f05b59d3b20000905b8382136113a657505050500290565b808391020590671bc16d674ec800008212156113c6575b60011d90611397565b809194019360011d906113bd565b925050929150020290565b600181018091111561137d57634e487b7160e01b83526011600452602483fd5b60021c90600281018091116114145790611374565b634e487b7160e01b84526011600452602484fd5b60041c9060048101809111611414579061136a565b60081c90600881018091116114145790611360565b60101c90601081018091116114145790611355565b60201c90602081018091116114145790611349565b60401c9060408101809111611414579061133b565b60809150811c611329565b600019926ec097ce7bc90715b34b9f10000000009290920491611318565b60405167ffffffffffffffff91906020810183811182821017610efe5760405260008080958194828095525af1913d15611594573d918211611580576040519161150e601f8201601f191660200184610edc565b825260203d92013e5b1561151e57565b60405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527308115512081d1c985b9cd9995c8819985a5b195960621b6064820152608490fd5b634e487b7160e01b81526041600452602490fd5b505061151756fea2646970667358221220d5e47b10b654b7d7938ab0bdfb7e9505b82d01512d4015f4ff89928235eb44bc64736f6c63430008120033a2646970667358221220a6e42900729a5777017070b72dfb93ae6ac3832e21d45b2491290a48e8167e9664736f6c63430008120033
Deployed Bytecode
0x608060405260043610156200001d575b36156200001b57600080fd5b005b60003560e01c8063076bf241146200150a578063135d9f7314620013ad578063396d5b7014620013715780634d76be2a146200134e578063583c15b51462000a8057806363a8cc071462000a135780636ef25c3a14620009f3578063715018a614620009965780638b67a52114620009685780638da5cb5b146200093d5780638e6901861462000918578063a18a127a14620008f3578063a7b8a7d01462000516578063cb06bfdb14620004f6578063dc8773e914620002e2578063f2fde38b14620002115763f3fef3a3036200000f57346200020c5760403660031901126200020c576004356001600160a01b038116908190036200020c5760243590620001256200178a565b4782116200020c5760405160208101908082106001600160401b03831117620001f65760008080868682809688604052525af13d15620001f0573d6200016b8162001721565b906200017b6040519283620016ff565b8152600060203d92013e5b156200018e57005b60405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527308115512081d1c985b9cd9995c8819985a5b195960621b6064820152608490fd5b62000186565b634e487b7160e01b600052604160045260246000fd5b600080fd5b346200020c5760203660031901126200020c576004356001600160a01b03818116918290036200020c57620002456200178a565b81156200028e57600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b346200020c576020806003193601126200020c576004356001600160401b0381116200020c57620003189036906004016200173d565b906200032362001820565b906000604051936363a8cc0760e01b948581528360048201528381806200034e60248201866200160b565b0381305afa9081156200047f57600091620004c0575b50620003a9958491600052600582526200038d62000386604060002062001937565b9362001c8a565b906040519788928392835284600484015260248301906200160b565b0381305afa9485156200047f576000956200048b575b5084620003eb575b50620003e3935060405193849360408552604085019062001632565b918301520390f35b925050600492600052600581528062000408604060002062001937565b610160909301516040516318160ddd60e01b815294859182906001600160a01b03165afa80156200047f5760009062000449575b620003e3935084620003c7565b508083813d831162000477575b620004628183620016ff565b810103126200020c57620003e392516200043c565b503d62000456565b6040513d6000823e3d90fd5b9094508281813d8311620004b8575b620004a68183620016ff565b810103126200020c57519385620003bf565b503d6200049a565b90508381813d8311620004ee575b620004da8183620016ff565b810103126200020c5751620003a962000364565b503d620004ce565b346200020c5760003660031901126200020c576020600454604051908152f35b346200020c5760603660031901126200020c5762000539600360443510620019ea565b604051638b67a52160e01b8152602081600481305afa9081156200047f57600091620008bb575b506000198101818111620007465760243515620008a5576024359004906001918281018091116200074657600435151590816200089c575b8162000891575b8162000883575b50156200084f5790620005bb60243562001bbb565b90620005c960243562001c15565b92620005d58162001bbb565b620005e08262001c15565b600092845b818111156200075c5750506024356004356000198101828102959181119492811591870414171560005b6024358110620006c3575b5050505050505060405191604083016040845281518091526060840190602060608260051b8701019301916000905b82821062000691575050505082810360208401526020808551928381520194019060005b8181106200067b5784860385f35b825186526020958601959092019183016200066d565b9091929394602080620006b1839a98605f198b8203018652885162001632565b96019201920190929196949662000649565b859997996200074657816200074657808701908188116200074657838210156200073c576200071f828b6200070a846200070262000733978b62001c4d565b519262001c4d565b5262000717838d62001c4d565b508762001c4d565b516200072c828b62001c4d565b5262001a25565b9896986200060f565b509896986200061a565b634e487b7160e01b600052601160045260246000fd5b60405163076bf24160e01b815260048101829052959795600081602481305afa9081156200047f5760009060009262000824575b506044358a148062000816575b8015620007fa575b15620007c1575050620007b89062001a25565b969496620005e5565b95620007f391620007b89397620007d9838962001c4d565b52620007e6828862001c4d565b506200072c828762001c4d565b9462001a25565b506002604435148015620007a5575060408101518210620007a5565b50604081015182146200079d565b90506200084791503d806000833e6200083e8183620016ff565b81019062001a97565b908a62000790565b60405162461bcd60e51b815260206004820152600c60248201526b506172616d732077726f6e6760a01b6044820152606490fd5b9050600435111583620005a6565b80151591506200059f565b83915062000598565b634e487b7160e01b600052601260045260246000fd5b90506020813d602011620008ea575b81620008d960209383620016ff565b810103126200020c57518162000560565b3d9150620008ca565b346200020c5760203660031901126200020c57620009106200178a565b600480359055005b346200020c5760203660031901126200020c57620009356200178a565b600435600355005b346200020c5760003660031901126200020c576000546040516001600160a01b039091168152602090f35b346200020c5760003660031901126200020c5760015460001981019081116200074657602090604051908152f35b346200020c5760003660031901126200020c57620009b36200178a565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346200020c5760003660031901126200020c576020600354604051908152f35b346200020c5760203660031901126200020c576004356001600160401b0381116200020c5762000a6d602062000a5962000a53829436906004016200173d565b62001c8a565b8160405193828580945193849201620015e6565b8101600681520301902054604051908152f35b346200020c576101403660031901126200020c576004356001600160401b0381116200020c5762000ab69036906004016200173d565b6024356001600160401b0381116200020c5762000ad89036906004016200173d565b60c435906001600160a01b03821682036200020c5761012435906001600160a01b03821682036200020c5780516000805b8281106200125c5750905060ff6002541603620012175760643560443510620011d25762000b379062001c8a565b6040516363a8cc0760e01b8152602060048201819052818062000b5e60248201866200160b565b0381305afa9081156200047f576000916200119a575b50620011635760405193611b4762000b906020820187620016ff565b80865262001d8960208701396001549262000c9e60206003549762000c616004546040519a8b916101c08684015262000be562000bd26101e085018b6200160b565b848103601f190160408601528b6200160b565b6044356060850152606435608085015260a084018c905260843560c085015260a43560e08501526001600160a01b038d811661010086015260e435610120860152610140850193909352610160840191909152610104356101808401529087166101a0830152306101c083015203601f1981018b528a620016ff565b604051988162000c7b8b93518092868087019101620015e6565b820162000c9182518093868085019101620015e6565b01038089520187620016ff565b60405195846020880152602087528660408101106001600160401b03604089011117620001f6576040870160405286516020880120906020815191016000f594853b156200020c5762000cf460408801620016e2565b60408781018581526060890185905260443560808a015260643560a08a015260843560c08a015260e0890187905260a4356101008a01526001600160a01b039283166101208a015260e4356101408a0152610104356101608a01529282166101808901529086166101a0880152426101c0880152600085815260056020522090518051906001600160401b038211620001f657819062000d958454620017e3565b601f81116200110e575b50602090601f83116001146200109d5760009262001091575b50508160011b916000199060031b1c19161781555b60608601519586516001600160401b038111620001f65762000df36001840154620017e3565b97601f891162001045575b602098508890601f831160011462000fa0576101c062000f5a948462000f4c98957fc9be58508fa11c9bc250c6c7b10320e7b06c0a8b71fbab161b34d62043ae846c9a9895600c9560009262000f94575b50508160011b916000199060031b1c19161760018501555b6080810151600285015560a0810151600385015560c0810151600485015560e0810151600585015561010081015160068501556101208101516007850180546001600160a01b039283166001600160a01b03199182161790915561014083015160088701556101608301516009870155610180830151600a870180549184169183169190911790556101a0830151600b87018054919093169116179055015191015560405183518791908a90829062000f248183858b01620015e6565b8101600681520301902055600180540160015560405193849360c0855260c08501906200160b565b90838203898501526200160b565b604435604083015260643560608301526001600160a01b03861660808301524260a08301520390a26040516001600160a01b039091168152f35b015190508e8062000e4f565b9060018501600052896000209160005b601f19851681106200102d575062000f5a946001857fc9be58508fa11c9bc250c6c7b10320e7b06c0a8b71fbab161b34d62043ae846c9a9895600c956101c09562000f4c9c99601f1981161062001013575b505050811b01600185015562000e67565b015160001960f88460031b161c191690558e808062001002565b91928b60018192868501518155019401920162000fb0565b600184016000526020600020601f830160051c81016020841062001089575b601f8b0160051c820181106200107c57505062000dfe565b6000815560010162001064565b508062001064565b01519050888062000db8565b9250836000526020600020906000935b601f1984168510620010f2576001945083601f19811610620010d8575b505050811b01815562000dcd565b015160001960f88460031b161c19169055888080620010ca565b81810151835560209485019460019093019290910190620010ad565b909150836000526020600020601f840160051c8101602085106200115b575b90849392915b601f830160051c820181106200114b57505062000d9f565b6000815585945060010162001133565b50806200112d565b60405162461bcd60e51b815260206004820152600f60248201526e1d1a58dac81a5cc8195e1a5cdd1959608a1b6044820152606490fd5b90506020813d602011620011c9575b81620011b860209383620016ff565b810103126200020c57518562000b74565b3d9150620011a9565b60405162461bcd60e51b815260206004820152601960248201527f4c696d697420706572206d696e742065786365656420636170000000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152601760248201527f5469636b206c656e6768742073686f756c6420626520340000000000000000006044820152606490fd5b6001600160f81b031962001271828662001c78565b5116600160ff1b811015620012a0575060018101809111620007465762001299909162001a25565b9062000b09565b600760fd1b811015620012c6575060028101809111620007465762001299909162001a25565b600f60fc1b811015620012ec575060038101809111620007465762001299909162001a25565b601f60fb1b81101562001312575060048101809111620007465762001299909162001a25565b603f60fa1b1115620013365760058101809111620007465762001299909162001a25565b60068101809111620007465762001299909162001a25565b346200020c5760003660031901126200020c57602060ff60025416604051908152f35b346200020c5760203660031901126200020c5760043560ff81168091036200020c576200139d6200178a565b60ff196002541617600255600080f35b346200020c576020806003193601126200020c57600435620013d260038210620019ea565b604051638b67a52160e01b81528281600481305afa9081156200047f57600091620014d7575b5090600091600191828114925b8281111562001418578585604051908152f35b60405163076bf24160e01b815260048101829052600081602481305afa80156200047f57600091600091620014b6575b508580620014a8575b156200146a575050620014649062001a25565b62001405565b60028414918262001499575b5050156200148957620014649062001a25565b93620007f3620014649162001a25565b60400151119050878062001476565b506040820151811462001451565b9050620014d091503d806000833e6200083e8183620016ff565b8862001448565b90508281813d831162001502575b620014f18183620016ff565b810103126200020c575183620013f8565b503d620014e5565b346200020c576020806003193601126200020c5760048035916200152d62001820565b50826000526005815262001545604060002062001937565b92600052600581528060406000209361016060018060a01b0391015116604051938480926318160ddd60e01b82525afa9182156200047f57600092620015ac575b5062001596620003e39362001937565b9160405193849360408552604085019062001632565b9291508083813d8311620015de575b620015c78183620016ff565b810103126200020c57915190916200159662001586565b503d620015bb565b60005b838110620015fa5750506000910152565b8181015183820152602001620015e9565b906020916200162681518092818552858086019101620015e6565b601f01601f1916010190565b906200165f6200164c83516101a08085528401906200160b565b602084015183820360208501526200160b565b9160408101516040830152606081015160608301526080810151608083015260a081015160a083015260c081015160c083015260018060a01b038060e08301511660e08401526101008083015190840152610120808301519084015261014081818401511690840152610160908183015116908301526101808091015191015290565b6101a081019081106001600160401b03821117620001f657604052565b90601f801991011681019081106001600160401b03821117620001f657604052565b6001600160401b038111620001f657601f01601f191660200190565b81601f820112156200020c57803590620017578262001721565b92620017676040519485620016ff565b828452602083830101116200020c57816000926020809301838601378301015290565b6000546001600160a01b031633036200179f57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b90600182811c9216801562001815575b6020831014620017ff57565b634e487b7160e01b600052602260045260246000fd5b91607f1691620017f3565b604051906200182f82620016e2565b8160608152606060208201526101806000918260408201528260608201528260808201528260a08201528260c08201528260e0820152826101008201528261012082015282610140820152826101608201520152565b90604051918260008254926200189b84620017e3565b908184526001948581169081600014620019125750600114620018cb575b5050620018c992500383620016ff565b565b9093915060005260209081600020936000915b818310620018f9575050620018c993508201013880620018b9565b85548884018501529485019487945091830191620018de565b915050620018c994506020925060ff191682840152151560051b8201013880620018b9565b906040516200194681620016e2565b610180600c8294620019588162001885565b8452620019686001820162001885565b6020850152600281015460408501526003810154606085015260048101546080850152600581015460a0850152600681015460c085015260078101546001600160a01b0390811660e086015260088201546101008601526009820154610120860152600a8201548116610140860152600b820154166101608501520154910152565b15620019f257565b60405162461bcd60e51b815260206004820152600b60248201526a3a3cb8329034b99018169960a91b6044820152606490fd5b6000198114620007465760010190565b81601f820112156200020c57805162001a4e8162001721565b9262001a5e6040519485620016ff565b818452602082840101116200020c5762001a7f9160208085019101620015e6565b90565b51906001600160a01b03821682036200020c57565b91906040838203126200020c5782516001600160401b03908181116200020c5784016101a0818403126200020c576040519162001ad483620016e2565b81518181116200020c578462001aec91840162001a35565b835260208201519081116200020c5760209362001b0b91830162001a35565b8383015260408101516040830152606081015160608301526080810151608083015260a081015160a083015260c081015160c083015262001b4f60e0820162001a82565b60e08301526101008082015190830152610120808201519083015261014062001b7a81830162001a82565b9083015261016062001b8e81830162001a82565b90830152610180809101519082015292015190565b6001600160401b038111620001f65760051b60200190565b9062001bc78262001ba3565b62001bd66040519182620016ff565b828152809262001be9601f199162001ba3565b019060005b82811062001bfb57505050565b60209062001c0862001820565b8282850101520162001bee565b9062001c218262001ba3565b62001c306040519182620016ff565b828152809262001c43601f199162001ba3565b0190602036910137565b805182101562001c625760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b90815181101562001c62570160200190565b90815162001c988162001721565b9062001ca86040519283620016ff565b80825262001cb9601f199162001721565b01602090368284013760005b845181101562001d815762001cdb818662001c78565b5190604160f892831c10158062001d67575b1562001d3b578262001d00828862001c78565b51831c019160ff8311620007465762001d3592901b6001600160f81b03191660001a62001d2e828662001c78565b5362001a25565b62001cc5565b62001d3591506001600160f81b031962001d56828862001c78565b511660001a62001d2e828662001c78565b50605a62001d76828862001c78565b51831c111562001ced565b509092505056fe608060405234620004c35762001b47803803806200001d81620004c8565b92833981016101c082820312620004c35781516001600160401b038111620004c357816200004d918401620004ee565b602083015190916001600160401b038211620004c35762000070918401620004ee565b60408301516060840151608085015160a086015160c087015160e08801519795929492916001600160a01b0389168903620004c3578695869586958695620000e36101a0620000db6101806101606101406101206101008e01519d01519d01519d01519d0162000560565b9c0162000560565b8c51909c6001600160401b038211620003965760035490600182811c92168015620004b8575b6020831014620003755781601f84931162000443575b50602090601f8311600114620003b857600092620003ac575b50508160011b916000199060031b1c1916176003555b8051906001600160401b038211620003965760045490600182811c921680156200038b575b6020831014620003755781601f84931162000303575b50602090601f831160011462000278576000926200026c575b50508160011b916000199060031b1c1916176004555b818110620002275760055560065560075560085560095560018060a01b03199660018060a01b031687600a541617600a55600b55600c55600d55600e5560018060a01b031682600f541617600f5560018060a01b03169060105416176010556040516115d19081620005768239f35b60405162461bcd60e51b815260206004820152601960248201527f4c696d697420706572206d696e742065786365656420636170000000000000006044820152606490fd5b015190503880620001a2565b600460009081527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b9350601f198516905b818110620002ea5750908460019594939210620002d0575b505050811b01600455620001b8565b015160001960f88460031b161c19169055388080620002c1565b92936020600181928786015181550195019301620002a9565b60046000529091507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b601f840160051c8101602085106200036d575b90849392915b601f830160051c820181106200035d57505062000189565b6000815585945060010162000345565b50806200033f565b634e487b7160e01b600052602260045260246000fd5b91607f169162000173565b634e487b7160e01b600052604160045260246000fd5b01519050388062000138565b600360009081527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b9350601f198516905b8181106200042a575090846001959493921062000410575b505050811b016003556200014e565b015160001960f88460031b161c1916905538808062000401565b92936020600181928786015181550195019301620003e9565b60036000529091507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f840160051c81019160208510620004ad575b90601f859493920160051c01905b8181106200049d57506200011f565b600081558493506001016200048e565b909150819062000480565b91607f169162000109565b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200039657604052565b919080601f84011215620004c35782516001600160401b038111620003965760209062000524601f8201601f19168301620004c8565b92818452828287010111620004c35760005b8181106200054c57508260009394955001015290565b858101830151848201840152820162000536565b51906001600160a01b0382168203620004c35756fe608060408181526004918236101561001657600080fd5b600092833560e01c91826306fdde0314610d6d57508163095ea7b314610d4357816316b8060c14610d2457816318160ddd14610d055781631c4cd1a514610ccd57816323b872dd14610c035781632ca9160414610be4578163313ce56714610bc8578163355274ea14610ba95781633950935114610b5957816343508b051461090f5781635c4caf95146108e65781636a627842146106265781636ef25c3a1461060757816370a08231146105d05781638f81537b1461049e57816395d89b411461039b5781639f805924146103725781639fc6a1dc14610349578163a457c2d7146102a157508063a9059cbb14610271578063bde593c614610253578063be13197b1461021c578063cb06bfdb146101fe578063dd62ed3e146101b6578063def504bb14610198578063e2ce9f511461017a5763fd7e1bee1461015957600080fd5b346101765781600319360112610176576020906009549051908152f35b5080fd5b50346101765781600319360112610176576020906006549051908152f35b5034610176578160031936011261017657602090600b549051908152f35b5034610176578060031936011261017657806020926101d3610eab565b6101db610ec6565b6001600160a01b0391821683526001865283832091168252845220549051908152f35b5034610176578160031936011261017657602090600d549051908152f35b50346101765760203660031901126101765760209181906001600160a01b03610243610eab565b1681526011845220549051908152f35b50346101765781600319360112610176576020906007549051908152f35b503461017657806003193601126101765760209061029a610290610eab565b6024359033610f37565b5160018152f35b905082346103465782600319360112610346576102bc610eab565b918360243592338152600160205281812060018060a01b03861682526020522054908282106102f55760208561029a85850387336110a5565b608490602086519162461bcd60e51b8352820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152fd5b80fd5b50503461017657816003193601126101765760105490516001600160a01b039091168152602090f35b505034610176578160031936011261017657600a5490516001600160a01b039091168152602090f35b838334610176578160031936011261017657805191809380549160019083821c92828516948515610494575b60209586861081146104815785895290811561045d5750600114610405575b61040187876103f7828c0383610edc565b5191829182610e62565b0390f35b81529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061044a5750505082610401946103f7928201019486806103e6565b805486850188015292860192810161042c565b60ff19168887015250505050151560051b83010192506103f78261040186806103e6565b634e487b7160e01b845260228352602484fd5b93607f16936103c7565b90508234610346576020366003190112610346576104ba610eab565b908092819260018060a01b031680835260116020526104df8684205460095490610f14565b42106104f5575b50505082519182526020820152f35b82526012602052848220549193509150806105a95750600c54915b600c548381156105965704670de0b6b3a764000090818102908082058314901517156105835761053f906112f8565b60018101908360018312911290801582169115161761058357059160018301809311610570575050908380806104e6565b634e487b7160e01b825260119052602490fd5b634e487b7160e01b835260118452602483fd5b634e487b7160e01b835260128452602483fd5b8060011b9081046002036105bd5791610510565b634e487b7160e01b835260118252602483fd5b5050346101765760203660031901126101765760209181906001600160a01b036105f8610eab565b16815280845220549051908152f35b505034610176578160031936011261017657602090600c549051908152f35b8391506020806003193601126108e25761063e610eab565b9161064e60025460065490610f14565b600554106108b357600a546001600160a01b039290859084168015908390821561083e575b505061067f91506111a7565b338552601181526106968686205460095490610f14565b4210156107b35733855260128152858520548061078c5750600c54955b338652601282528681872055600e549687610713575b505050506106f1929350600e546106e08134611206565b6106f4575b50505b60065490611213565b80f35b61070661070c92601054169134611206565b906114ba565b83806106e5565b61071d9088610f14565b341061073d575050506107336106f193946112b6565b83928580806106c9565b5162461bcd60e51b815291820152602560248201527f53656e6420736f6d65204554482061732066656520616e642063726f776466756044820152646e64696e6760d81b606482015260849150fd5b8060011b9081046002036107a057956106b3565b634e487b7160e01b865260118352602486fd5b949150600e54806107df575b505060116106f193943386526012815285838120555242908420556106e8565b34106107fd575060116106f193946107f6346112b6565b94936107bf565b84606492519162461bcd60e51b8352820152601d60248201527f53656e6420736f6d65204554482061732063726f776466756e64696e670000006044820152fd5b90915060248951809481936370a0823160e01b835233898401525af180156108a9578690610876575b600b5487925011158289610673565b508181813d83116108a2575b61088c8183610edc565b8101031261089e5761067f9051610867565b8580fd5b503d610882565b87513d88823e3d90fd5b60649185519162461bcd60e51b8352820152600b60248201526a0546f7563686564206361760ac1b6044820152fd5b8280fd5b505034610176578160031936011261017657600f5490516001600160a01b039091168152602090f35b918091506003193601126108e257610925610eab565b916024928335926008548411610b21576002549061095060069261094a8454886111f3565b90610f14565b60055410610af457600954610aa657600a5487906001600160a01b03168015908115610a2c575b5061098291506111a7565b600e5485816109ca575b505050855b84811061099c578680f35b6109a7825484611213565b60001981146109b857600101610991565b634e487b7160e01b8752601184528587fd5b6109d3916111f3565b34106109eb57506109e3346112b6565b38808561098c565b5162461bcd60e51b8152602081850152601b818701527f43726f776466756e64696e6720455448206e6f7420656e6f75676800000000006044820152606490fd5b60209150888451809481936370a0823160e01b8352338b8401525af18015610a9c578890610a65575b600b548992501115610982610977565b506020813d8211610a94575b81610a7e60209383610edc565b81010312610a90576109829051610a55565b8780fd5b3d9150610a71565b82513d8a823e3d90fd5b5162461bcd60e51b81526020818501528086018690527f4261746368206d696e74206f6e6c7920666f72206e6f6e2d66726f7a656e207460448201526337b5b2b760e11b6064820152608490fd5b5162461bcd60e51b8152602081850152600981870152680546f756368206361760bc1b6044820152606490fd5b5162461bcd60e51b815260208184015260148186015273657863656564206d6178206d696e742073697a6560601b6044820152606490fd5b50503461017657806003193601126101765761029a602092610ba2610b7c610eab565b338352600186528483206001600160a01b03821684528652918490205460243590610f14565b90336110a5565b5050346101765781600319360112610176576020906005549051908152f35b5050346101765781600319360112610176576020905160128152f35b505034610176578160031936011261017657602090600e549051908152f35b8391503461017657606036600319011261017657610c1f610eab565b610c27610ec6565b91846044359460018060a01b038416815260016020528181203382526020522054906000198203610c61575b60208661029a878787610f37565b848210610c8a5750918391610c7f6020969561029a950333836110a5565b919394819350610c53565b606490602087519162461bcd60e51b8352820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b5050346101765760203660031901126101765760209181906001600160a01b03610cf5610eab565b1681526012845220549051908152f35b5050346101765781600319360112610176576020906002549051908152f35b5050346101765781600319360112610176576020906008549051908152f35b50503461017657806003193601126101765760209061029a610d63610eab565b60243590336110a5565b92915034610e5e5783600319360112610e5e57600354600181811c9186908281168015610e54575b6020958686108214610e415750848852908115610e1f5750600114610dc6575b61040186866103f7828b0383610edc565b929550600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b828410610e0c5750505082610401946103f7928201019438610db5565b8054868501880152928601928101610def565b60ff191687860152505050151560051b83010192506103f78261040138610db5565b634e487b7160e01b845260229052602483fd5b93607f1693610d95565b8380fd5b6020808252825181830181905290939260005b828110610e9757505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501610e75565b600435906001600160a01b0382168203610ec157565b600080fd5b602435906001600160a01b0382168203610ec157565b90601f8019910116810190811067ffffffffffffffff821117610efe57604052565b634e487b7160e01b600052604160045260246000fd5b91908201809211610f2157565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03908116918215611052571691821561100157600082815280602052604081205491808310610fad57604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b6001600160a01b0390811691821561115657169182156111065760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260018252604060002085600052825280604060002055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b156111ae57565b60405162461bcd60e51b815260206004820152601e60248201527f596f7520646f6e277420686176652072657175697265642061737365747300006044820152606490fd5b81810292918115918404141715610f2157565b91908203918211610f2157565b6001600160a01b0316908115611271577fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602082611255600094600254610f14565b60025584845283825260408420818154019055604051908152a3565b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fd5b6127106112c5600d54836111f3565b046112e060018060a01b03926107068385600f541692611206565b806112e9575050565b6112f691601054166114ba565b565b6000908181131561017657670de0b6b3a76400009182821261149c576001925b81818405600160801b811015611491575b6801000000000000000081101561147c575b640100000000811015611467575b62010000811015611452575b61010081101561143d575b6010811015611428575b60048110156113ff575b600211156113df575b81810293811d908282146113d457506706f05b59d3b20000905b8382136113a657505050500290565b808391020590671bc16d674ec800008212156113c6575b60011d90611397565b809194019360011d906113bd565b925050929150020290565b600181018091111561137d57634e487b7160e01b83526011600452602483fd5b60021c90600281018091116114145790611374565b634e487b7160e01b84526011600452602484fd5b60041c9060048101809111611414579061136a565b60081c90600881018091116114145790611360565b60101c90601081018091116114145790611355565b60201c90602081018091116114145790611349565b60401c9060408101809111611414579061133b565b60809150811c611329565b600019926ec097ce7bc90715b34b9f10000000009290920491611318565b60405167ffffffffffffffff91906020810183811182821017610efe5760405260008080958194828095525af1913d15611594573d918211611580576040519161150e601f8201601f191660200184610edc565b825260203d92013e5b1561151e57565b60405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527308115512081d1c985b9cd9995c8819985a5b195960621b6064820152608490fd5b634e487b7160e01b81526041600452602490fd5b505061151756fea2646970667358221220d5e47b10b654b7d7938ab0bdfb7e9505b82d01512d4015f4ff89928235eb44bc64736f6c63430008120033a2646970667358221220a6e42900729a5777017070b72dfb93ae6ac3832e21d45b2491290a48e8167e9664736f6c63430008120033
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.