ERC-1155
Overview
Max Total Supply
45
Holders
11
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AmeegosMarketplace
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./Base64.sol"; /* Simple ERC1155 contract for initial sale. It represents in-game items, so each option corresponds to an game item, like: Skin, Weapon, Armor. The features: - admin can add new items to the marketplace (name, price, max supply) - admin can lower max supply of an item - admin can change price for each item - users can purchase item if minter didn't run out of supply and if saleStarted = true - admin can withdraw funds from sale, but 10% goes to the developer address "0x704C043CeB93bD6cBE570C6A2708c3E1C0310587" - tokens are burnable - admin can flipSaleStarted, switching between sale active or disabled (saleStarted is true/false) Items are stored in array of struct GameItem. In ERC1155, tokens have id, which represents itemId. */ /* DONE: - add claimItem onlyOwner whenSaleStarted = false - remove URI not used - can we edit imageUrl later? No - double-check description - buy limit per address ? No - burn? - create AGOS token for testing - deploy buildship on rinkeby to make sure we receive money */ enum ItemType { Payable, // 0 = default Claimable // 1 } /// @custom:security-contact [email protected] contract AmeegosMarketplace is ERC1155, Ownable { using Strings for uint256; // Buildship storage address payable buildship = payable(0x704C043CeB93bD6cBE570C6A2708c3E1C0310587); address public immutable AGOS; constructor(address _AGOS) ERC1155("override") { AGOS = _AGOS; // SHIBA = _SHIBA; } struct GameItem { uint256 price; // in ETH, or AGOS (with decimals) uint256 maxSupply; uint256 mintedSupply; ItemType itemType; string name; string imageUrl; } mapping(uint256 => GameItem) public items; // keep track of total number of items uint256 public totalItems; mapping (uint256 => bool) private _saleStarted; modifier whenSaleStarted(uint256 itemId) { require(_saleStarted[itemId], "Sale not started"); _; } // ----- View functions ----- function saleStarted(uint256 itemId) public view returns(bool) { return _saleStarted[itemId]; } function uri(uint256 tokenId) public view override returns (string memory output) { // on-chain metadata inspired by Loot https://etherscan.io/address/0xff9c1b15b16263c61d017ee9f65c50e4ae0113d7#code GameItem memory item = items[tokenId]; string memory json = Base64.encode(bytes(string(abi.encodePacked( '{', '"name": "', item.name, '",', '"description": "The Fight for Meegosa is an NFT community MMORPG. Join the community and learn more in our Discord. https://discord.gg/c7NRVvvVZt https://twitter.com/AmeegosOfficial https://ameegos.io/",', '"image": "', item.imageUrl, '"', '}' )))); output = string(abi.encodePacked('data:application/json;base64,', json)); } // ----- Internal functions ----- // Buy item function _buyItem(uint256 itemId, uint256 amount) internal whenSaleStarted(itemId) { require(itemId < totalItems, "No itemId"); GameItem storage item = items[itemId]; require(item.mintedSupply + amount <= items[itemId].maxSupply, "Out of stock"); // buy item item.mintedSupply += amount; _mint(msg.sender, itemId, amount, ""); } // -------- User functions // Pays in ETH, requires not Claimable function buyItem(uint256 itemId, uint256 amount) external payable whenSaleStarted(itemId) { require(itemId < totalItems, "No itemId"); GameItem memory item = items[itemId]; require(item.itemType == ItemType.Payable, "Item is not payable, cant buy with ETH"); require(item.price * amount <= msg.value, "Not enough ETH"); _buyItem(itemId, amount); } function claimItem(uint256 itemId, uint256 amount) external whenSaleStarted(itemId) { require(itemId < totalItems, "No itemId"); GameItem memory item = items[itemId]; require(item.itemType == ItemType.Claimable, "Item is not claimable"); uint256 total = item.price * amount; // this is in AGOS ERC20Burnable(AGOS).burnFrom(msg.sender, total); _buyItem(itemId, amount); } // ----- Admin functions ----- // reserveItem onlyOwner, allows admin to claim any amount of any token, function reserveItem(uint256 itemId, uint256 amount) public onlyOwner { // require(_saleStarted[itemId] == false, "Only claim when sale is not active"); require(itemId < totalItems, "No itemId"); GameItem storage item = items[itemId]; require(item.mintedSupply + amount <= item.maxSupply, "Not enough supply"); item.mintedSupply += amount; _mint(msg.sender, itemId, amount, ""); } function flipSaleStarted(uint256 itemId) external onlyOwner { _saleStarted[itemId] = !_saleStarted[itemId]; } function startSaleAll() external onlyOwner { for (uint256 itemId = 0; itemId < totalItems; itemId++) { _saleStarted[itemId] = true; } } // Add new item to the marketplace // @notice Dont forget to add tokenId metadata to backend function addItem(string memory name, string memory imageUrl, uint256 price, uint256 maxSupply, ItemType itemType, bool startSale) public onlyOwner { require(maxSupply > 0, "Invalid maxSupply"); uint256 newItemId = totalItems; // create new item GameItem memory item = GameItem(price, maxSupply, 0, itemType, name, imageUrl); // add item to the array items[newItemId] = item; totalItems++; // should start sale right after adding? _saleStarted[newItemId] = startSale; emit ItemAdded(newItemId, name, imageUrl, price, maxSupply, itemType, startSale); } // Change price for item function changePrice(uint256 itemId, uint256 newPrice) public onlyOwner { // require(newPrice > 0); // change price // TODO: change for AGOS too items[itemId].price = newPrice; } // Withdraw sale money function withdraw() public onlyOwner { uint256 _balance = address(this).balance; uint256 baseAmount = _balance * 17 / 20; require(payable(msg.sender).send(baseAmount)); (bool success,) = buildship.call{value: _balance - baseAmount}(""); require(success); } event ItemAdded(uint256 itemId, string name, string imageUrl, uint256 price, uint256 maxSupply, ItemType itemType, bool startSale); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// [MIT License] /// @title Base64 /// @notice Provides a function for encoding some bytes in base64 /// @author Brecht Devos <[email protected]> library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @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); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT 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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * 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}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * 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 value {ERC20} uses, unless this function is * 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: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `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; _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; } _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 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 pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(_msgSender() != operator, "ERC1155: setting approval status for self"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][account] += amount; emit TransferSingle(operator, address(0), account, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `account` * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens of token type `id`. */ function _burn( address account, uint256 id, uint256 amount ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } emit TransferSingle(operator, account, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } } emit TransferBatch(operator, account, address(0), ids, amounts); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_AGOS","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"itemId","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"imageUrl","type":"string"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxSupply","type":"uint256"},{"indexed":false,"internalType":"enum ItemType","name":"itemType","type":"uint8"},{"indexed":false,"internalType":"bool","name":"startSale","type":"bool"}],"name":"ItemAdded","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"AGOS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"imageUrl","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"enum ItemType","name":"itemType","type":"uint8"},{"internalType":"bool","name":"startSale","type":"bool"}],"name":"addItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"itemId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyItem","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"itemId","type":"uint256"},{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"changePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"itemId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"itemId","type":"uint256"}],"name":"flipSaleStarted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"items","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"mintedSupply","type":"uint256"},{"internalType":"enum ItemType","name":"itemType","type":"uint8"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"imageUrl","type":"string"}],"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":"uint256","name":"itemId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reserveItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"itemId","type":"uint256"}],"name":"saleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSaleAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalItems","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"output","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405273704c043ceb93bd6cbe570c6a2708c3e1c0310587600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200006657600080fd5b50604051620053bf380380620053bf83398181016040528101906200008c919062000333565b6040518060400160405280600881526020017f6f76657272696465000000000000000000000000000000000000000000000000815250620000d3816200012f60201b60201c565b50620000f4620000e86200014b60201b60201c565b6200015360201b60201c565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505050620003ca565b80600290805190602001906200014792919062000219565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002279062000394565b90600052602060002090601f0160209004810192826200024b576000855562000297565b82601f106200026657805160ff191683800117855562000297565b8280016001018555821562000297579182015b828111156200029657825182559160200191906001019062000279565b5b509050620002a69190620002aa565b5090565b5b80821115620002c5576000816000905550600101620002ab565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002fb82620002ce565b9050919050565b6200030d81620002ee565b81146200031957600080fd5b50565b6000815190506200032d8162000302565b92915050565b6000602082840312156200034c576200034b620002c9565b5b60006200035c848285016200031c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620003ad57607f821691505b60208210811415620003c457620003c362000365565b5b50919050565b608051614fd2620003ed600039600081816115d001526117090152614fd26000f3fe60806040526004361061013f5760003560e01c80639979c009116100b6578063e985e9c51161006f578063e985e9c51461044f578063f242432a1461048c578063f2fde38b146104b5578063f34b4786146104de578063f76fab1914610507578063fe7a6c2d1461051e5761013f565b80639979c0091461034b578063a22cb46514610367578063a7dc7f2a14610390578063b3de019c146103b9578063bc970131146103e2578063bfb231d21461040d5761013f565b80632eb2c2d6116101085780632eb2c2d6146102635780633ccfd60b1461028c5780634e1273f4146102a3578063658899b6146102e0578063715018a6146103095780638da5cb5b146103205761013f565b8062fdd58e1461014457806301ffc9a7146101815780630e89341c146101be5780631dc13bd0146101fb5780632799276d14610238575b600080fd5b34801561015057600080fd5b5061016b60048036038101906101669190612f8a565b610547565b6040516101789190612fd9565b60405180910390f35b34801561018d57600080fd5b506101a860048036038101906101a3919061304c565b610610565b6040516101b59190613094565b60405180910390f35b3480156101ca57600080fd5b506101e560048036038101906101e091906130af565b6106f2565b6040516101f29190613175565b60405180910390f35b34801561020757600080fd5b50610222600480360381019061021d91906130af565b6108f2565b60405161022f9190613094565b60405180910390f35b34801561024457600080fd5b5061024d61091c565b60405161025a9190612fd9565b60405180910390f35b34801561026f57600080fd5b5061028a60048036038101906102859190613394565b610922565b005b34801561029857600080fd5b506102a16109c3565b005b3480156102af57600080fd5b506102ca60048036038101906102c59190613526565b610b47565b6040516102d7919061365c565b60405180910390f35b3480156102ec57600080fd5b506103076004803603810190610302919061367e565b610c60565b005b34801561031557600080fd5b5061031e610dc8565b005b34801561032c57600080fd5b50610335610e50565b60405161034291906136cd565b60405180910390f35b6103656004803603810190610360919061367e565b610e7a565b005b34801561037357600080fd5b5061038e60048036038101906103899190613714565b61118b565b005b34801561039c57600080fd5b506103b760048036038101906103b2919061367e565b61130c565b005b3480156103c557600080fd5b506103e060048036038101906103db919061367e565b61166c565b005b3480156103ee57600080fd5b506103f7611707565b60405161040491906136cd565b60405180910390f35b34801561041957600080fd5b50610434600480360381019061042f91906130af565b61172b565b604051610446969594939291906137cb565b60405180910390f35b34801561045b57600080fd5b506104766004803603810190610471919061383a565b611884565b6040516104839190613094565b60405180910390f35b34801561049857600080fd5b506104b360048036038101906104ae919061387a565b611918565b005b3480156104c157600080fd5b506104dc60048036038101906104d79190613911565b6119b9565b005b3480156104ea57600080fd5b50610505600480360381019061050091906130af565b611ab1565b005b34801561051357600080fd5b5061051c611b7c565b005b34801561052a57600080fd5b5061054560048036038101906105409190613a04565b611c47565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156105b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105af90613b3b565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106db57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106eb57506106ea82611e80565b5b9050919050565b60606000600560008481526020019081526020016000206040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff16600181111561075757610756613754565b5b600181111561076957610768613754565b5b815260200160048201805461077d90613b8a565b80601f01602080910402602001604051908101604052809291908181526020018280546107a990613b8a565b80156107f65780601f106107cb576101008083540402835291602001916107f6565b820191906000526020600020905b8154815290600101906020018083116107d957829003601f168201915b5050505050815260200160058201805461080f90613b8a565b80601f016020809104026020016040519081016040528092919081815260200182805461083b90613b8a565b80156108885780601f1061085d57610100808354040283529160200191610888565b820191906000526020600020905b81548152906001019060200180831161086b57829003601f168201915b505050505081525050905060006108c782608001518360a001516040516020016108b3929190613ef0565b604051602081830303815290604052611eea565b9050806040516020016108da9190613fad565b60405160208183030381529060405292505050919050565b60006007600083815260200190815260200160002060009054906101000a900460ff169050919050565b60065481565b61092a612082565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610970575061096f8561096a612082565b611884565b5b6109af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a690614041565b60405180910390fd5b6109bc858585858561208a565b5050505050565b6109cb612082565b73ffffffffffffffffffffffffffffffffffffffff166109e9610e50565b73ffffffffffffffffffffffffffffffffffffffff1614610a3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a36906140ad565b60405180910390fd5b600047905060006014601183610a5591906140fc565b610a5f9190614185565b90503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050610a9f57600080fd5b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168284610ae691906141b6565b604051610af29061421b565b60006040518083038185875af1925050503d8060008114610b2f576040519150601f19603f3d011682016040523d82523d6000602084013e610b34565b606091505b5050905080610b4257600080fd5b505050565b60608151835114610b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b84906142a2565b60405180910390fd5b6000835167ffffffffffffffff811115610baa57610ba961319c565b5b604051908082528060200260200182016040528015610bd85781602001602082028036833780820191505090505b50905060005b8451811015610c5557610c25858281518110610bfd57610bfc6142c2565b5b6020026020010151858381518110610c1857610c176142c2565b5b6020026020010151610547565b828281518110610c3857610c376142c2565b5b60200260200101818152505080610c4e906142f1565b9050610bde565b508091505092915050565b610c68612082565b73ffffffffffffffffffffffffffffffffffffffff16610c86610e50565b73ffffffffffffffffffffffffffffffffffffffff1614610cdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd3906140ad565b60405180910390fd5b6006548210610d20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1790614386565b60405180910390fd5b60006005600084815260200190815260200160002090508060010154828260020154610d4c91906143a6565b1115610d8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8490614448565b60405180910390fd5b81816002016000828254610da191906143a6565b92505081905550610dc33384846040518060200160405280600081525061239e565b505050565b610dd0612082565b73ffffffffffffffffffffffffffffffffffffffff16610dee610e50565b73ffffffffffffffffffffffffffffffffffffffff1614610e44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3b906140ad565b60405180910390fd5b610e4e6000612534565b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b816007600082815260200190815260200160002060009054906101000a900460ff16610edb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed2906144b4565b60405180910390fd5b6006548310610f1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1690614386565b60405180910390fd5b6000600560008581526020019081526020016000206040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff166001811115610f8257610f81613754565b5b6001811115610f9457610f93613754565b5b8152602001600482018054610fa890613b8a565b80601f0160208091040260200160405190810160405280929190818152602001828054610fd490613b8a565b80156110215780601f10610ff657610100808354040283529160200191611021565b820191906000526020600020905b81548152906001019060200180831161100457829003601f168201915b5050505050815260200160058201805461103a90613b8a565b80601f016020809104026020016040519081016040528092919081815260200182805461106690613b8a565b80156110b35780601f10611088576101008083540402835291602001916110b3565b820191906000526020600020905b81548152906001019060200180831161109657829003601f168201915b5050505050815250509050600060018111156110d2576110d1613754565b5b816060015160018111156110e9576110e8613754565b5b14611129576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112090614546565b60405180910390fd5b3483826000015161113a91906140fc565b111561117b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611172906145b2565b60405180910390fd5b61118584846125fa565b50505050565b8173ffffffffffffffffffffffffffffffffffffffff166111aa612082565b73ffffffffffffffffffffffffffffffffffffffff161415611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f890614644565b60405180910390fd5b806001600061120e612082565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166112bb612082565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113009190613094565b60405180910390a35050565b816007600082815260200190815260200160002060009054906101000a900460ff1661136d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611364906144b4565b60405180910390fd5b60065483106113b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a890614386565b60405180910390fd5b6000600560008581526020019081526020016000206040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff16600181111561141457611413613754565b5b600181111561142657611425613754565b5b815260200160048201805461143a90613b8a565b80601f016020809104026020016040519081016040528092919081815260200182805461146690613b8a565b80156114b35780601f10611488576101008083540402835291602001916114b3565b820191906000526020600020905b81548152906001019060200180831161149657829003601f168201915b505050505081526020016005820180546114cc90613b8a565b80601f01602080910402602001604051908101604052809291908181526020018280546114f890613b8a565b80156115455780601f1061151a57610100808354040283529160200191611545565b820191906000526020600020905b81548152906001019060200180831161152857829003601f168201915b505050505081525050905060018081111561156357611562613754565b5b8160600151600181111561157a57611579613754565b5b146115ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b1906146b0565b60405180910390fd5b60008382600001516115cc91906140fc565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166379cc679033836040518363ffffffff1660e01b81526004016116299291906146d0565b600060405180830381600087803b15801561164357600080fd5b505af1158015611657573d6000803e3d6000fd5b5050505061166585856125fa565b5050505050565b611674612082565b73ffffffffffffffffffffffffffffffffffffffff16611692610e50565b73ffffffffffffffffffffffffffffffffffffffff16146116e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116df906140ad565b60405180910390fd5b8060056000848152602001908152602001600020600001819055505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60056020528060005260406000206000915090508060000154908060010154908060020154908060030160009054906101000a900460ff169080600401805461177390613b8a565b80601f016020809104026020016040519081016040528092919081815260200182805461179f90613b8a565b80156117ec5780601f106117c1576101008083540402835291602001916117ec565b820191906000526020600020905b8154815290600101906020018083116117cf57829003601f168201915b50505050509080600501805461180190613b8a565b80601f016020809104026020016040519081016040528092919081815260200182805461182d90613b8a565b801561187a5780601f1061184f5761010080835404028352916020019161187a565b820191906000526020600020905b81548152906001019060200180831161185d57829003601f168201915b5050505050905086565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611920612082565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611966575061196585611960612082565b611884565b5b6119a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199c9061476b565b60405180910390fd5b6119b2858585858561275a565b5050505050565b6119c1612082565b73ffffffffffffffffffffffffffffffffffffffff166119df610e50565b73ffffffffffffffffffffffffffffffffffffffff1614611a35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2c906140ad565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611aa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9c906147fd565b60405180910390fd5b611aae81612534565b50565b611ab9612082565b73ffffffffffffffffffffffffffffffffffffffff16611ad7610e50565b73ffffffffffffffffffffffffffffffffffffffff1614611b2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b24906140ad565b60405180910390fd5b6007600082815260200190815260200160002060009054906101000a900460ff16156007600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b611b84612082565b73ffffffffffffffffffffffffffffffffffffffff16611ba2610e50565b73ffffffffffffffffffffffffffffffffffffffff1614611bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bef906140ad565b60405180910390fd5b60005b600654811015611c445760016007600083815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611c3c906142f1565b915050611bfb565b50565b611c4f612082565b73ffffffffffffffffffffffffffffffffffffffff16611c6d610e50565b73ffffffffffffffffffffffffffffffffffffffff1614611cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cba906140ad565b60405180910390fd5b60008311611d06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cfd90614869565b60405180910390fd5b6000600654905060006040518060c0016040528087815260200186815260200160008152602001856001811115611d4057611d3f613754565b5b8152602001898152602001888152509050806005600084815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff02191690836001811115611dae57611dad613754565b5b02179055506080820151816004019080519060200190611dcf929190612e3f565b5060a0820151816005019080519060200190611dec929190612e3f565b5090505060066000815480929190611e03906142f1565b9190505550826007600084815260200190815260200160002060006101000a81548160ff0219169083151502179055507f5866748489dadf643fd37efd955ffb6b1b2a2a86c31f1c726af389e75cbddb1d82898989898989604051611e6e9796959493929190614889565b60405180910390a15050505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60606000825190506000811415611f13576040518060200160405280600081525091505061207d565b60006003600283611f2491906143a6565b611f2e9190614185565b6004611f3a91906140fc565b90506000602082611f4b91906143a6565b67ffffffffffffffff811115611f6457611f6361319c565b5b6040519080825280601f01601f191660200182016040528015611f965781602001600182028036833780820191505090505b5090506000604051806060016040528060408152602001614f5d604091399050600181016020830160005b8681101561203a5760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b90508084526004840193505050611fc1565b50600386066001811461205457600281146120645761206f565b613d3d60f01b600283035261206f565b603d60f81b60018303525b508484525050819450505050505b919050565b600033905090565b81518351146120ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c590614978565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561213e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213590614a0a565b60405180910390fd5b6000612148612082565b90506121588187878787876129dc565b60005b8451811015612309576000858281518110612179576121786142c2565b5b602002602001015190506000858381518110612198576121976142c2565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612239576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223090614a9c565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122ee91906143a6565b9250508190555050505080612302906142f1565b905061215b565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612380929190614abc565b60405180910390a46123968187878787876129e4565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561240e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240590614b65565b60405180910390fd5b6000612418612082565b90506124398160008761242a88612bcb565b61243388612bcb565b876129dc565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461249891906143a6565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051612516929190614b85565b60405180910390a461252d81600087878787612c45565b5050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b816007600082815260200190815260200160002060009054906101000a900460ff1661265b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612652906144b4565b60405180910390fd5b600654831061269f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269690614386565b60405180910390fd5b600060056000858152602001908152602001600020905060056000858152602001908152602001600020600101548382600201546126dd91906143a6565b111561271e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271590614bfa565b60405180910390fd5b8281600201600082825461273291906143a6565b925050819055506127543385856040518060200160405280600081525061239e565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156127ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c190614a0a565b60405180910390fd5b60006127d4612082565b90506127f48187876127e588612bcb565b6127ee88612bcb565b876129dc565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508381101561288b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288290614a9c565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461294091906143a6565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288886040516129bd929190614b85565b60405180910390a46129d3828888888888612c45565b50505050505050565b505050505050565b612a038473ffffffffffffffffffffffffffffffffffffffff16612e2c565b15612bc3578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612a49959493929190614c6f565b602060405180830381600087803b158015612a6357600080fd5b505af1925050508015612a9457506040513d601f19601f82011682018060405250810190612a919190614cec565b60015b612b3a57612aa0614d26565b806308c379a01415612afd5750612ab5614d48565b80612ac05750612aff565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af49190613175565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3190614e50565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612bc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb890614ee2565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115612bea57612be961319c565b5b604051908082528060200260200182016040528015612c185781602001602082028036833780820191505090505b5090508281600081518110612c3057612c2f6142c2565b5b60200260200101818152505080915050919050565b612c648473ffffffffffffffffffffffffffffffffffffffff16612e2c565b15612e24578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612caa959493929190614f02565b602060405180830381600087803b158015612cc457600080fd5b505af1925050508015612cf557506040513d601f19601f82011682018060405250810190612cf29190614cec565b60015b612d9b57612d01614d26565b806308c379a01415612d5e5750612d16614d48565b80612d215750612d60565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d559190613175565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d9290614e50565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612e22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e1990614ee2565b60405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b828054612e4b90613b8a565b90600052602060002090601f016020900481019282612e6d5760008555612eb4565b82601f10612e8657805160ff1916838001178555612eb4565b82800160010185558215612eb4579182015b82811115612eb3578251825591602001919060010190612e98565b5b509050612ec19190612ec5565b5090565b5b80821115612ede576000816000905550600101612ec6565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612f2182612ef6565b9050919050565b612f3181612f16565b8114612f3c57600080fd5b50565b600081359050612f4e81612f28565b92915050565b6000819050919050565b612f6781612f54565b8114612f7257600080fd5b50565b600081359050612f8481612f5e565b92915050565b60008060408385031215612fa157612fa0612eec565b5b6000612faf85828601612f3f565b9250506020612fc085828601612f75565b9150509250929050565b612fd381612f54565b82525050565b6000602082019050612fee6000830184612fca565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61302981612ff4565b811461303457600080fd5b50565b60008135905061304681613020565b92915050565b60006020828403121561306257613061612eec565b5b600061307084828501613037565b91505092915050565b60008115159050919050565b61308e81613079565b82525050565b60006020820190506130a96000830184613085565b92915050565b6000602082840312156130c5576130c4612eec565b5b60006130d384828501612f75565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156131165780820151818401526020810190506130fb565b83811115613125576000848401525b50505050565b6000601f19601f8301169050919050565b6000613147826130dc565b61315181856130e7565b93506131618185602086016130f8565b61316a8161312b565b840191505092915050565b6000602082019050818103600083015261318f818461313c565b905092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6131d48261312b565b810181811067ffffffffffffffff821117156131f3576131f261319c565b5b80604052505050565b6000613206612ee2565b905061321282826131cb565b919050565b600067ffffffffffffffff8211156132325761323161319c565b5b602082029050602081019050919050565b600080fd5b600061325b61325684613217565b6131fc565b9050808382526020820190506020840283018581111561327e5761327d613243565b5b835b818110156132a757806132938882612f75565b845260208401935050602081019050613280565b5050509392505050565b600082601f8301126132c6576132c5613197565b5b81356132d6848260208601613248565b91505092915050565b600080fd5b600067ffffffffffffffff8211156132ff576132fe61319c565b5b6133088261312b565b9050602081019050919050565b82818337600083830152505050565b6000613337613332846132e4565b6131fc565b905082815260208101848484011115613353576133526132df565b5b61335e848285613315565b509392505050565b600082601f83011261337b5761337a613197565b5b813561338b848260208601613324565b91505092915050565b600080600080600060a086880312156133b0576133af612eec565b5b60006133be88828901612f3f565b95505060206133cf88828901612f3f565b945050604086013567ffffffffffffffff8111156133f0576133ef612ef1565b5b6133fc888289016132b1565b935050606086013567ffffffffffffffff81111561341d5761341c612ef1565b5b613429888289016132b1565b925050608086013567ffffffffffffffff81111561344a57613449612ef1565b5b61345688828901613366565b9150509295509295909350565b600067ffffffffffffffff82111561347e5761347d61319c565b5b602082029050602081019050919050565b60006134a261349d84613463565b6131fc565b905080838252602082019050602084028301858111156134c5576134c4613243565b5b835b818110156134ee57806134da8882612f3f565b8452602084019350506020810190506134c7565b5050509392505050565b600082601f83011261350d5761350c613197565b5b813561351d84826020860161348f565b91505092915050565b6000806040838503121561353d5761353c612eec565b5b600083013567ffffffffffffffff81111561355b5761355a612ef1565b5b613567858286016134f8565b925050602083013567ffffffffffffffff81111561358857613587612ef1565b5b613594858286016132b1565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6135d381612f54565b82525050565b60006135e583836135ca565b60208301905092915050565b6000602082019050919050565b60006136098261359e565b61361381856135a9565b935061361e836135ba565b8060005b8381101561364f57815161363688826135d9565b9750613641836135f1565b925050600181019050613622565b5085935050505092915050565b6000602082019050818103600083015261367681846135fe565b905092915050565b6000806040838503121561369557613694612eec565b5b60006136a385828601612f75565b92505060206136b485828601612f75565b9150509250929050565b6136c781612f16565b82525050565b60006020820190506136e260008301846136be565b92915050565b6136f181613079565b81146136fc57600080fd5b50565b60008135905061370e816136e8565b92915050565b6000806040838503121561372b5761372a612eec565b5b600061373985828601612f3f565b925050602061374a858286016136ff565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811061379457613793613754565b5b50565b60008190506137a582613783565b919050565b60006137b582613797565b9050919050565b6137c5816137aa565b82525050565b600060c0820190506137e06000830189612fca565b6137ed6020830188612fca565b6137fa6040830187612fca565b61380760608301866137bc565b8181036080830152613819818561313c565b905081810360a083015261382d818461313c565b9050979650505050505050565b6000806040838503121561385157613850612eec565b5b600061385f85828601612f3f565b925050602061387085828601612f3f565b9150509250929050565b600080600080600060a0868803121561389657613895612eec565b5b60006138a488828901612f3f565b95505060206138b588828901612f3f565b94505060406138c688828901612f75565b93505060606138d788828901612f75565b925050608086013567ffffffffffffffff8111156138f8576138f7612ef1565b5b61390488828901613366565b9150509295509295909350565b60006020828403121561392757613926612eec565b5b600061393584828501612f3f565b91505092915050565b600067ffffffffffffffff8211156139595761395861319c565b5b6139628261312b565b9050602081019050919050565b600061398261397d8461393e565b6131fc565b90508281526020810184848401111561399e5761399d6132df565b5b6139a9848285613315565b509392505050565b600082601f8301126139c6576139c5613197565b5b81356139d684826020860161396f565b91505092915050565b600281106139ec57600080fd5b50565b6000813590506139fe816139df565b92915050565b60008060008060008060c08789031215613a2157613a20612eec565b5b600087013567ffffffffffffffff811115613a3f57613a3e612ef1565b5b613a4b89828a016139b1565b965050602087013567ffffffffffffffff811115613a6c57613a6b612ef1565b5b613a7889828a016139b1565b9550506040613a8989828a01612f75565b9450506060613a9a89828a01612f75565b9350506080613aab89828a016139ef565b92505060a0613abc89828a016136ff565b9150509295509295509295565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000613b25602b836130e7565b9150613b3082613ac9565b604082019050919050565b60006020820190508181036000830152613b5481613b18565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613ba257607f821691505b60208210811415613bb657613bb5613b5b565b5b50919050565b600081905092915050565b7f7b00000000000000000000000000000000000000000000000000000000000000600082015250565b6000613bfd600183613bbc565b9150613c0882613bc7565b600182019050919050565b7f226e616d65223a20220000000000000000000000000000000000000000000000600082015250565b6000613c49600983613bbc565b9150613c5482613c13565b600982019050919050565b6000613c6a826130dc565b613c748185613bbc565b9350613c848185602086016130f8565b80840191505092915050565b7f222c000000000000000000000000000000000000000000000000000000000000600082015250565b6000613cc6600283613bbc565b9150613cd182613c90565b600282019050919050565b7f226465736372697074696f6e223a202254686520466967687420666f72204d6560008201527f65676f736120697320616e204e465420636f6d6d756e697479204d4d4f52504760208201527f2e204a6f696e2074686520636f6d6d756e69747920616e64206c6561726e206d60408201527f6f726520696e206f757220446973636f72642e2068747470733a2f2f6469736360608201527f6f72642e67672f63374e52567676565a742068747470733a2f2f74776974746560808201527f722e636f6d2f416d6565676f734f6666696369616c2068747470733a2f2f616d60a08201527f6565676f732e696f2f222c00000000000000000000000000000000000000000060c082015250565b6000613df660cb83613bbc565b9150613e0182613cdc565b60cb82019050919050565b7f22696d616765223a202200000000000000000000000000000000000000000000600082015250565b6000613e42600a83613bbc565b9150613e4d82613e0c565b600a82019050919050565b7f2200000000000000000000000000000000000000000000000000000000000000600082015250565b6000613e8e600183613bbc565b9150613e9982613e58565b600182019050919050565b7f7d00000000000000000000000000000000000000000000000000000000000000600082015250565b6000613eda600183613bbc565b9150613ee582613ea4565b600182019050919050565b6000613efb82613bf0565b9150613f0682613c3c565b9150613f128285613c5f565b9150613f1d82613cb9565b9150613f2882613de9565b9150613f3382613e35565b9150613f3f8284613c5f565b9150613f4a82613e81565b9150613f5582613ecd565b91508190509392505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000613f97601d83613bbc565b9150613fa282613f61565b601d82019050919050565b6000613fb882613f8a565b9150613fc48284613c5f565b915081905092915050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b600061402b6032836130e7565b915061403682613fcf565b604082019050919050565b6000602082019050818103600083015261405a8161401e565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006140976020836130e7565b91506140a282614061565b602082019050919050565b600060208201905081810360008301526140c68161408a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061410782612f54565b915061411283612f54565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561414b5761414a6140cd565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061419082612f54565b915061419b83612f54565b9250826141ab576141aa614156565b5b828204905092915050565b60006141c182612f54565b91506141cc83612f54565b9250828210156141df576141de6140cd565b5b828203905092915050565b600081905092915050565b50565b60006142056000836141ea565b9150614210826141f5565b600082019050919050565b6000614226826141f8565b9150819050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b600061428c6029836130e7565b915061429782614230565b604082019050919050565b600060208201905081810360008301526142bb8161427f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006142fc82612f54565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561432f5761432e6140cd565b5b600182019050919050565b7f4e6f206974656d49640000000000000000000000000000000000000000000000600082015250565b60006143706009836130e7565b915061437b8261433a565b602082019050919050565b6000602082019050818103600083015261439f81614363565b9050919050565b60006143b182612f54565b91506143bc83612f54565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143f1576143f06140cd565b5b828201905092915050565b7f4e6f7420656e6f75676820737570706c79000000000000000000000000000000600082015250565b60006144326011836130e7565b915061443d826143fc565b602082019050919050565b6000602082019050818103600083015261446181614425565b9050919050565b7f53616c65206e6f74207374617274656400000000000000000000000000000000600082015250565b600061449e6010836130e7565b91506144a982614468565b602082019050919050565b600060208201905081810360008301526144cd81614491565b9050919050565b7f4974656d206973206e6f742070617961626c652c2063616e742062757920776960008201527f7468204554480000000000000000000000000000000000000000000000000000602082015250565b60006145306026836130e7565b915061453b826144d4565b604082019050919050565b6000602082019050818103600083015261455f81614523565b9050919050565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b600061459c600e836130e7565b91506145a782614566565b602082019050919050565b600060208201905081810360008301526145cb8161458f565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b600061462e6029836130e7565b9150614639826145d2565b604082019050919050565b6000602082019050818103600083015261465d81614621565b9050919050565b7f4974656d206973206e6f7420636c61696d61626c650000000000000000000000600082015250565b600061469a6015836130e7565b91506146a582614664565b602082019050919050565b600060208201905081810360008301526146c98161468d565b9050919050565b60006040820190506146e560008301856136be565b6146f26020830184612fca565b9392505050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b60006147556029836130e7565b9150614760826146f9565b604082019050919050565b6000602082019050818103600083015261478481614748565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006147e76026836130e7565b91506147f28261478b565b604082019050919050565b60006020820190508181036000830152614816816147da565b9050919050565b7f496e76616c6964206d6178537570706c79000000000000000000000000000000600082015250565b60006148536011836130e7565b915061485e8261481d565b602082019050919050565b6000602082019050818103600083015261488281614846565b9050919050565b600060e08201905061489e600083018a612fca565b81810360208301526148b0818961313c565b905081810360408301526148c4818861313c565b90506148d36060830187612fca565b6148e06080830186612fca565b6148ed60a08301856137bc565b6148fa60c0830184613085565b98975050505050505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b60006149626028836130e7565b915061496d82614906565b604082019050919050565b6000602082019050818103600083015261499181614955565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006149f46025836130e7565b91506149ff82614998565b604082019050919050565b60006020820190508181036000830152614a23816149e7565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614a86602a836130e7565b9150614a9182614a2a565b604082019050919050565b60006020820190508181036000830152614ab581614a79565b9050919050565b60006040820190508181036000830152614ad681856135fe565b90508181036020830152614aea81846135fe565b90509392505050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614b4f6021836130e7565b9150614b5a82614af3565b604082019050919050565b60006020820190508181036000830152614b7e81614b42565b9050919050565b6000604082019050614b9a6000830185612fca565b614ba76020830184612fca565b9392505050565b7f4f7574206f662073746f636b0000000000000000000000000000000000000000600082015250565b6000614be4600c836130e7565b9150614bef82614bae565b602082019050919050565b60006020820190508181036000830152614c1381614bd7565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614c4182614c1a565b614c4b8185614c25565b9350614c5b8185602086016130f8565b614c648161312b565b840191505092915050565b600060a082019050614c8460008301886136be565b614c9160208301876136be565b8181036040830152614ca381866135fe565b90508181036060830152614cb781856135fe565b90508181036080830152614ccb8184614c36565b90509695505050505050565b600081519050614ce681613020565b92915050565b600060208284031215614d0257614d01612eec565b5b6000614d1084828501614cd7565b91505092915050565b60008160e01c9050919050565b600060033d1115614d455760046000803e614d42600051614d19565b90505b90565b600060443d1015614d5857614ddb565b614d60612ee2565b60043d036004823e80513d602482011167ffffffffffffffff82111715614d88575050614ddb565b808201805167ffffffffffffffff811115614da65750505050614ddb565b80602083010160043d038501811115614dc3575050505050614ddb565b614dd2826020018501866131cb565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614e3a6034836130e7565b9150614e4582614dde565b604082019050919050565b60006020820190508181036000830152614e6981614e2d565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000614ecc6028836130e7565b9150614ed782614e70565b604082019050919050565b60006020820190508181036000830152614efb81614ebf565b9050919050565b600060a082019050614f1760008301886136be565b614f2460208301876136be565b614f316040830186612fca565b614f3e6060830185612fca565b8181036080830152614f508184614c36565b9050969550505050505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212201f528113a47be610aa1cb729267d7386af964a3b8c1fe586806975e4243ffa7e64736f6c634300080900330000000000000000000000005e2c6385e2b663a2f460bfb3a9d18c76c4739ff5
Deployed Bytecode
0x60806040526004361061013f5760003560e01c80639979c009116100b6578063e985e9c51161006f578063e985e9c51461044f578063f242432a1461048c578063f2fde38b146104b5578063f34b4786146104de578063f76fab1914610507578063fe7a6c2d1461051e5761013f565b80639979c0091461034b578063a22cb46514610367578063a7dc7f2a14610390578063b3de019c146103b9578063bc970131146103e2578063bfb231d21461040d5761013f565b80632eb2c2d6116101085780632eb2c2d6146102635780633ccfd60b1461028c5780634e1273f4146102a3578063658899b6146102e0578063715018a6146103095780638da5cb5b146103205761013f565b8062fdd58e1461014457806301ffc9a7146101815780630e89341c146101be5780631dc13bd0146101fb5780632799276d14610238575b600080fd5b34801561015057600080fd5b5061016b60048036038101906101669190612f8a565b610547565b6040516101789190612fd9565b60405180910390f35b34801561018d57600080fd5b506101a860048036038101906101a3919061304c565b610610565b6040516101b59190613094565b60405180910390f35b3480156101ca57600080fd5b506101e560048036038101906101e091906130af565b6106f2565b6040516101f29190613175565b60405180910390f35b34801561020757600080fd5b50610222600480360381019061021d91906130af565b6108f2565b60405161022f9190613094565b60405180910390f35b34801561024457600080fd5b5061024d61091c565b60405161025a9190612fd9565b60405180910390f35b34801561026f57600080fd5b5061028a60048036038101906102859190613394565b610922565b005b34801561029857600080fd5b506102a16109c3565b005b3480156102af57600080fd5b506102ca60048036038101906102c59190613526565b610b47565b6040516102d7919061365c565b60405180910390f35b3480156102ec57600080fd5b506103076004803603810190610302919061367e565b610c60565b005b34801561031557600080fd5b5061031e610dc8565b005b34801561032c57600080fd5b50610335610e50565b60405161034291906136cd565b60405180910390f35b6103656004803603810190610360919061367e565b610e7a565b005b34801561037357600080fd5b5061038e60048036038101906103899190613714565b61118b565b005b34801561039c57600080fd5b506103b760048036038101906103b2919061367e565b61130c565b005b3480156103c557600080fd5b506103e060048036038101906103db919061367e565b61166c565b005b3480156103ee57600080fd5b506103f7611707565b60405161040491906136cd565b60405180910390f35b34801561041957600080fd5b50610434600480360381019061042f91906130af565b61172b565b604051610446969594939291906137cb565b60405180910390f35b34801561045b57600080fd5b506104766004803603810190610471919061383a565b611884565b6040516104839190613094565b60405180910390f35b34801561049857600080fd5b506104b360048036038101906104ae919061387a565b611918565b005b3480156104c157600080fd5b506104dc60048036038101906104d79190613911565b6119b9565b005b3480156104ea57600080fd5b50610505600480360381019061050091906130af565b611ab1565b005b34801561051357600080fd5b5061051c611b7c565b005b34801561052a57600080fd5b5061054560048036038101906105409190613a04565b611c47565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156105b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105af90613b3b565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106db57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106eb57506106ea82611e80565b5b9050919050565b60606000600560008481526020019081526020016000206040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff16600181111561075757610756613754565b5b600181111561076957610768613754565b5b815260200160048201805461077d90613b8a565b80601f01602080910402602001604051908101604052809291908181526020018280546107a990613b8a565b80156107f65780601f106107cb576101008083540402835291602001916107f6565b820191906000526020600020905b8154815290600101906020018083116107d957829003601f168201915b5050505050815260200160058201805461080f90613b8a565b80601f016020809104026020016040519081016040528092919081815260200182805461083b90613b8a565b80156108885780601f1061085d57610100808354040283529160200191610888565b820191906000526020600020905b81548152906001019060200180831161086b57829003601f168201915b505050505081525050905060006108c782608001518360a001516040516020016108b3929190613ef0565b604051602081830303815290604052611eea565b9050806040516020016108da9190613fad565b60405160208183030381529060405292505050919050565b60006007600083815260200190815260200160002060009054906101000a900460ff169050919050565b60065481565b61092a612082565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610970575061096f8561096a612082565b611884565b5b6109af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a690614041565b60405180910390fd5b6109bc858585858561208a565b5050505050565b6109cb612082565b73ffffffffffffffffffffffffffffffffffffffff166109e9610e50565b73ffffffffffffffffffffffffffffffffffffffff1614610a3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a36906140ad565b60405180910390fd5b600047905060006014601183610a5591906140fc565b610a5f9190614185565b90503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050610a9f57600080fd5b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168284610ae691906141b6565b604051610af29061421b565b60006040518083038185875af1925050503d8060008114610b2f576040519150601f19603f3d011682016040523d82523d6000602084013e610b34565b606091505b5050905080610b4257600080fd5b505050565b60608151835114610b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b84906142a2565b60405180910390fd5b6000835167ffffffffffffffff811115610baa57610ba961319c565b5b604051908082528060200260200182016040528015610bd85781602001602082028036833780820191505090505b50905060005b8451811015610c5557610c25858281518110610bfd57610bfc6142c2565b5b6020026020010151858381518110610c1857610c176142c2565b5b6020026020010151610547565b828281518110610c3857610c376142c2565b5b60200260200101818152505080610c4e906142f1565b9050610bde565b508091505092915050565b610c68612082565b73ffffffffffffffffffffffffffffffffffffffff16610c86610e50565b73ffffffffffffffffffffffffffffffffffffffff1614610cdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd3906140ad565b60405180910390fd5b6006548210610d20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1790614386565b60405180910390fd5b60006005600084815260200190815260200160002090508060010154828260020154610d4c91906143a6565b1115610d8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8490614448565b60405180910390fd5b81816002016000828254610da191906143a6565b92505081905550610dc33384846040518060200160405280600081525061239e565b505050565b610dd0612082565b73ffffffffffffffffffffffffffffffffffffffff16610dee610e50565b73ffffffffffffffffffffffffffffffffffffffff1614610e44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3b906140ad565b60405180910390fd5b610e4e6000612534565b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b816007600082815260200190815260200160002060009054906101000a900460ff16610edb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed2906144b4565b60405180910390fd5b6006548310610f1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1690614386565b60405180910390fd5b6000600560008581526020019081526020016000206040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff166001811115610f8257610f81613754565b5b6001811115610f9457610f93613754565b5b8152602001600482018054610fa890613b8a565b80601f0160208091040260200160405190810160405280929190818152602001828054610fd490613b8a565b80156110215780601f10610ff657610100808354040283529160200191611021565b820191906000526020600020905b81548152906001019060200180831161100457829003601f168201915b5050505050815260200160058201805461103a90613b8a565b80601f016020809104026020016040519081016040528092919081815260200182805461106690613b8a565b80156110b35780601f10611088576101008083540402835291602001916110b3565b820191906000526020600020905b81548152906001019060200180831161109657829003601f168201915b5050505050815250509050600060018111156110d2576110d1613754565b5b816060015160018111156110e9576110e8613754565b5b14611129576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112090614546565b60405180910390fd5b3483826000015161113a91906140fc565b111561117b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611172906145b2565b60405180910390fd5b61118584846125fa565b50505050565b8173ffffffffffffffffffffffffffffffffffffffff166111aa612082565b73ffffffffffffffffffffffffffffffffffffffff161415611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f890614644565b60405180910390fd5b806001600061120e612082565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166112bb612082565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113009190613094565b60405180910390a35050565b816007600082815260200190815260200160002060009054906101000a900460ff1661136d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611364906144b4565b60405180910390fd5b60065483106113b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a890614386565b60405180910390fd5b6000600560008581526020019081526020016000206040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff16600181111561141457611413613754565b5b600181111561142657611425613754565b5b815260200160048201805461143a90613b8a565b80601f016020809104026020016040519081016040528092919081815260200182805461146690613b8a565b80156114b35780601f10611488576101008083540402835291602001916114b3565b820191906000526020600020905b81548152906001019060200180831161149657829003601f168201915b505050505081526020016005820180546114cc90613b8a565b80601f01602080910402602001604051908101604052809291908181526020018280546114f890613b8a565b80156115455780601f1061151a57610100808354040283529160200191611545565b820191906000526020600020905b81548152906001019060200180831161152857829003601f168201915b505050505081525050905060018081111561156357611562613754565b5b8160600151600181111561157a57611579613754565b5b146115ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b1906146b0565b60405180910390fd5b60008382600001516115cc91906140fc565b90507f0000000000000000000000005e2c6385e2b663a2f460bfb3a9d18c76c4739ff573ffffffffffffffffffffffffffffffffffffffff166379cc679033836040518363ffffffff1660e01b81526004016116299291906146d0565b600060405180830381600087803b15801561164357600080fd5b505af1158015611657573d6000803e3d6000fd5b5050505061166585856125fa565b5050505050565b611674612082565b73ffffffffffffffffffffffffffffffffffffffff16611692610e50565b73ffffffffffffffffffffffffffffffffffffffff16146116e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116df906140ad565b60405180910390fd5b8060056000848152602001908152602001600020600001819055505050565b7f0000000000000000000000005e2c6385e2b663a2f460bfb3a9d18c76c4739ff581565b60056020528060005260406000206000915090508060000154908060010154908060020154908060030160009054906101000a900460ff169080600401805461177390613b8a565b80601f016020809104026020016040519081016040528092919081815260200182805461179f90613b8a565b80156117ec5780601f106117c1576101008083540402835291602001916117ec565b820191906000526020600020905b8154815290600101906020018083116117cf57829003601f168201915b50505050509080600501805461180190613b8a565b80601f016020809104026020016040519081016040528092919081815260200182805461182d90613b8a565b801561187a5780601f1061184f5761010080835404028352916020019161187a565b820191906000526020600020905b81548152906001019060200180831161185d57829003601f168201915b5050505050905086565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611920612082565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611966575061196585611960612082565b611884565b5b6119a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199c9061476b565b60405180910390fd5b6119b2858585858561275a565b5050505050565b6119c1612082565b73ffffffffffffffffffffffffffffffffffffffff166119df610e50565b73ffffffffffffffffffffffffffffffffffffffff1614611a35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2c906140ad565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611aa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9c906147fd565b60405180910390fd5b611aae81612534565b50565b611ab9612082565b73ffffffffffffffffffffffffffffffffffffffff16611ad7610e50565b73ffffffffffffffffffffffffffffffffffffffff1614611b2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b24906140ad565b60405180910390fd5b6007600082815260200190815260200160002060009054906101000a900460ff16156007600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b611b84612082565b73ffffffffffffffffffffffffffffffffffffffff16611ba2610e50565b73ffffffffffffffffffffffffffffffffffffffff1614611bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bef906140ad565b60405180910390fd5b60005b600654811015611c445760016007600083815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611c3c906142f1565b915050611bfb565b50565b611c4f612082565b73ffffffffffffffffffffffffffffffffffffffff16611c6d610e50565b73ffffffffffffffffffffffffffffffffffffffff1614611cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cba906140ad565b60405180910390fd5b60008311611d06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cfd90614869565b60405180910390fd5b6000600654905060006040518060c0016040528087815260200186815260200160008152602001856001811115611d4057611d3f613754565b5b8152602001898152602001888152509050806005600084815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff02191690836001811115611dae57611dad613754565b5b02179055506080820151816004019080519060200190611dcf929190612e3f565b5060a0820151816005019080519060200190611dec929190612e3f565b5090505060066000815480929190611e03906142f1565b9190505550826007600084815260200190815260200160002060006101000a81548160ff0219169083151502179055507f5866748489dadf643fd37efd955ffb6b1b2a2a86c31f1c726af389e75cbddb1d82898989898989604051611e6e9796959493929190614889565b60405180910390a15050505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60606000825190506000811415611f13576040518060200160405280600081525091505061207d565b60006003600283611f2491906143a6565b611f2e9190614185565b6004611f3a91906140fc565b90506000602082611f4b91906143a6565b67ffffffffffffffff811115611f6457611f6361319c565b5b6040519080825280601f01601f191660200182016040528015611f965781602001600182028036833780820191505090505b5090506000604051806060016040528060408152602001614f5d604091399050600181016020830160005b8681101561203a5760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b90508084526004840193505050611fc1565b50600386066001811461205457600281146120645761206f565b613d3d60f01b600283035261206f565b603d60f81b60018303525b508484525050819450505050505b919050565b600033905090565b81518351146120ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c590614978565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561213e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213590614a0a565b60405180910390fd5b6000612148612082565b90506121588187878787876129dc565b60005b8451811015612309576000858281518110612179576121786142c2565b5b602002602001015190506000858381518110612198576121976142c2565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612239576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223090614a9c565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122ee91906143a6565b9250508190555050505080612302906142f1565b905061215b565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612380929190614abc565b60405180910390a46123968187878787876129e4565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561240e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240590614b65565b60405180910390fd5b6000612418612082565b90506124398160008761242a88612bcb565b61243388612bcb565b876129dc565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461249891906143a6565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051612516929190614b85565b60405180910390a461252d81600087878787612c45565b5050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b816007600082815260200190815260200160002060009054906101000a900460ff1661265b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612652906144b4565b60405180910390fd5b600654831061269f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269690614386565b60405180910390fd5b600060056000858152602001908152602001600020905060056000858152602001908152602001600020600101548382600201546126dd91906143a6565b111561271e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271590614bfa565b60405180910390fd5b8281600201600082825461273291906143a6565b925050819055506127543385856040518060200160405280600081525061239e565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156127ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c190614a0a565b60405180910390fd5b60006127d4612082565b90506127f48187876127e588612bcb565b6127ee88612bcb565b876129dc565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508381101561288b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288290614a9c565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461294091906143a6565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288886040516129bd929190614b85565b60405180910390a46129d3828888888888612c45565b50505050505050565b505050505050565b612a038473ffffffffffffffffffffffffffffffffffffffff16612e2c565b15612bc3578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612a49959493929190614c6f565b602060405180830381600087803b158015612a6357600080fd5b505af1925050508015612a9457506040513d601f19601f82011682018060405250810190612a919190614cec565b60015b612b3a57612aa0614d26565b806308c379a01415612afd5750612ab5614d48565b80612ac05750612aff565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af49190613175565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3190614e50565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612bc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb890614ee2565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115612bea57612be961319c565b5b604051908082528060200260200182016040528015612c185781602001602082028036833780820191505090505b5090508281600081518110612c3057612c2f6142c2565b5b60200260200101818152505080915050919050565b612c648473ffffffffffffffffffffffffffffffffffffffff16612e2c565b15612e24578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612caa959493929190614f02565b602060405180830381600087803b158015612cc457600080fd5b505af1925050508015612cf557506040513d601f19601f82011682018060405250810190612cf29190614cec565b60015b612d9b57612d01614d26565b806308c379a01415612d5e5750612d16614d48565b80612d215750612d60565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d559190613175565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d9290614e50565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612e22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e1990614ee2565b60405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b828054612e4b90613b8a565b90600052602060002090601f016020900481019282612e6d5760008555612eb4565b82601f10612e8657805160ff1916838001178555612eb4565b82800160010185558215612eb4579182015b82811115612eb3578251825591602001919060010190612e98565b5b509050612ec19190612ec5565b5090565b5b80821115612ede576000816000905550600101612ec6565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612f2182612ef6565b9050919050565b612f3181612f16565b8114612f3c57600080fd5b50565b600081359050612f4e81612f28565b92915050565b6000819050919050565b612f6781612f54565b8114612f7257600080fd5b50565b600081359050612f8481612f5e565b92915050565b60008060408385031215612fa157612fa0612eec565b5b6000612faf85828601612f3f565b9250506020612fc085828601612f75565b9150509250929050565b612fd381612f54565b82525050565b6000602082019050612fee6000830184612fca565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61302981612ff4565b811461303457600080fd5b50565b60008135905061304681613020565b92915050565b60006020828403121561306257613061612eec565b5b600061307084828501613037565b91505092915050565b60008115159050919050565b61308e81613079565b82525050565b60006020820190506130a96000830184613085565b92915050565b6000602082840312156130c5576130c4612eec565b5b60006130d384828501612f75565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156131165780820151818401526020810190506130fb565b83811115613125576000848401525b50505050565b6000601f19601f8301169050919050565b6000613147826130dc565b61315181856130e7565b93506131618185602086016130f8565b61316a8161312b565b840191505092915050565b6000602082019050818103600083015261318f818461313c565b905092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6131d48261312b565b810181811067ffffffffffffffff821117156131f3576131f261319c565b5b80604052505050565b6000613206612ee2565b905061321282826131cb565b919050565b600067ffffffffffffffff8211156132325761323161319c565b5b602082029050602081019050919050565b600080fd5b600061325b61325684613217565b6131fc565b9050808382526020820190506020840283018581111561327e5761327d613243565b5b835b818110156132a757806132938882612f75565b845260208401935050602081019050613280565b5050509392505050565b600082601f8301126132c6576132c5613197565b5b81356132d6848260208601613248565b91505092915050565b600080fd5b600067ffffffffffffffff8211156132ff576132fe61319c565b5b6133088261312b565b9050602081019050919050565b82818337600083830152505050565b6000613337613332846132e4565b6131fc565b905082815260208101848484011115613353576133526132df565b5b61335e848285613315565b509392505050565b600082601f83011261337b5761337a613197565b5b813561338b848260208601613324565b91505092915050565b600080600080600060a086880312156133b0576133af612eec565b5b60006133be88828901612f3f565b95505060206133cf88828901612f3f565b945050604086013567ffffffffffffffff8111156133f0576133ef612ef1565b5b6133fc888289016132b1565b935050606086013567ffffffffffffffff81111561341d5761341c612ef1565b5b613429888289016132b1565b925050608086013567ffffffffffffffff81111561344a57613449612ef1565b5b61345688828901613366565b9150509295509295909350565b600067ffffffffffffffff82111561347e5761347d61319c565b5b602082029050602081019050919050565b60006134a261349d84613463565b6131fc565b905080838252602082019050602084028301858111156134c5576134c4613243565b5b835b818110156134ee57806134da8882612f3f565b8452602084019350506020810190506134c7565b5050509392505050565b600082601f83011261350d5761350c613197565b5b813561351d84826020860161348f565b91505092915050565b6000806040838503121561353d5761353c612eec565b5b600083013567ffffffffffffffff81111561355b5761355a612ef1565b5b613567858286016134f8565b925050602083013567ffffffffffffffff81111561358857613587612ef1565b5b613594858286016132b1565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6135d381612f54565b82525050565b60006135e583836135ca565b60208301905092915050565b6000602082019050919050565b60006136098261359e565b61361381856135a9565b935061361e836135ba565b8060005b8381101561364f57815161363688826135d9565b9750613641836135f1565b925050600181019050613622565b5085935050505092915050565b6000602082019050818103600083015261367681846135fe565b905092915050565b6000806040838503121561369557613694612eec565b5b60006136a385828601612f75565b92505060206136b485828601612f75565b9150509250929050565b6136c781612f16565b82525050565b60006020820190506136e260008301846136be565b92915050565b6136f181613079565b81146136fc57600080fd5b50565b60008135905061370e816136e8565b92915050565b6000806040838503121561372b5761372a612eec565b5b600061373985828601612f3f565b925050602061374a858286016136ff565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811061379457613793613754565b5b50565b60008190506137a582613783565b919050565b60006137b582613797565b9050919050565b6137c5816137aa565b82525050565b600060c0820190506137e06000830189612fca565b6137ed6020830188612fca565b6137fa6040830187612fca565b61380760608301866137bc565b8181036080830152613819818561313c565b905081810360a083015261382d818461313c565b9050979650505050505050565b6000806040838503121561385157613850612eec565b5b600061385f85828601612f3f565b925050602061387085828601612f3f565b9150509250929050565b600080600080600060a0868803121561389657613895612eec565b5b60006138a488828901612f3f565b95505060206138b588828901612f3f565b94505060406138c688828901612f75565b93505060606138d788828901612f75565b925050608086013567ffffffffffffffff8111156138f8576138f7612ef1565b5b61390488828901613366565b9150509295509295909350565b60006020828403121561392757613926612eec565b5b600061393584828501612f3f565b91505092915050565b600067ffffffffffffffff8211156139595761395861319c565b5b6139628261312b565b9050602081019050919050565b600061398261397d8461393e565b6131fc565b90508281526020810184848401111561399e5761399d6132df565b5b6139a9848285613315565b509392505050565b600082601f8301126139c6576139c5613197565b5b81356139d684826020860161396f565b91505092915050565b600281106139ec57600080fd5b50565b6000813590506139fe816139df565b92915050565b60008060008060008060c08789031215613a2157613a20612eec565b5b600087013567ffffffffffffffff811115613a3f57613a3e612ef1565b5b613a4b89828a016139b1565b965050602087013567ffffffffffffffff811115613a6c57613a6b612ef1565b5b613a7889828a016139b1565b9550506040613a8989828a01612f75565b9450506060613a9a89828a01612f75565b9350506080613aab89828a016139ef565b92505060a0613abc89828a016136ff565b9150509295509295509295565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000613b25602b836130e7565b9150613b3082613ac9565b604082019050919050565b60006020820190508181036000830152613b5481613b18565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613ba257607f821691505b60208210811415613bb657613bb5613b5b565b5b50919050565b600081905092915050565b7f7b00000000000000000000000000000000000000000000000000000000000000600082015250565b6000613bfd600183613bbc565b9150613c0882613bc7565b600182019050919050565b7f226e616d65223a20220000000000000000000000000000000000000000000000600082015250565b6000613c49600983613bbc565b9150613c5482613c13565b600982019050919050565b6000613c6a826130dc565b613c748185613bbc565b9350613c848185602086016130f8565b80840191505092915050565b7f222c000000000000000000000000000000000000000000000000000000000000600082015250565b6000613cc6600283613bbc565b9150613cd182613c90565b600282019050919050565b7f226465736372697074696f6e223a202254686520466967687420666f72204d6560008201527f65676f736120697320616e204e465420636f6d6d756e697479204d4d4f52504760208201527f2e204a6f696e2074686520636f6d6d756e69747920616e64206c6561726e206d60408201527f6f726520696e206f757220446973636f72642e2068747470733a2f2f6469736360608201527f6f72642e67672f63374e52567676565a742068747470733a2f2f74776974746560808201527f722e636f6d2f416d6565676f734f6666696369616c2068747470733a2f2f616d60a08201527f6565676f732e696f2f222c00000000000000000000000000000000000000000060c082015250565b6000613df660cb83613bbc565b9150613e0182613cdc565b60cb82019050919050565b7f22696d616765223a202200000000000000000000000000000000000000000000600082015250565b6000613e42600a83613bbc565b9150613e4d82613e0c565b600a82019050919050565b7f2200000000000000000000000000000000000000000000000000000000000000600082015250565b6000613e8e600183613bbc565b9150613e9982613e58565b600182019050919050565b7f7d00000000000000000000000000000000000000000000000000000000000000600082015250565b6000613eda600183613bbc565b9150613ee582613ea4565b600182019050919050565b6000613efb82613bf0565b9150613f0682613c3c565b9150613f128285613c5f565b9150613f1d82613cb9565b9150613f2882613de9565b9150613f3382613e35565b9150613f3f8284613c5f565b9150613f4a82613e81565b9150613f5582613ecd565b91508190509392505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000613f97601d83613bbc565b9150613fa282613f61565b601d82019050919050565b6000613fb882613f8a565b9150613fc48284613c5f565b915081905092915050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b600061402b6032836130e7565b915061403682613fcf565b604082019050919050565b6000602082019050818103600083015261405a8161401e565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006140976020836130e7565b91506140a282614061565b602082019050919050565b600060208201905081810360008301526140c68161408a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061410782612f54565b915061411283612f54565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561414b5761414a6140cd565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061419082612f54565b915061419b83612f54565b9250826141ab576141aa614156565b5b828204905092915050565b60006141c182612f54565b91506141cc83612f54565b9250828210156141df576141de6140cd565b5b828203905092915050565b600081905092915050565b50565b60006142056000836141ea565b9150614210826141f5565b600082019050919050565b6000614226826141f8565b9150819050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b600061428c6029836130e7565b915061429782614230565b604082019050919050565b600060208201905081810360008301526142bb8161427f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006142fc82612f54565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561432f5761432e6140cd565b5b600182019050919050565b7f4e6f206974656d49640000000000000000000000000000000000000000000000600082015250565b60006143706009836130e7565b915061437b8261433a565b602082019050919050565b6000602082019050818103600083015261439f81614363565b9050919050565b60006143b182612f54565b91506143bc83612f54565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143f1576143f06140cd565b5b828201905092915050565b7f4e6f7420656e6f75676820737570706c79000000000000000000000000000000600082015250565b60006144326011836130e7565b915061443d826143fc565b602082019050919050565b6000602082019050818103600083015261446181614425565b9050919050565b7f53616c65206e6f74207374617274656400000000000000000000000000000000600082015250565b600061449e6010836130e7565b91506144a982614468565b602082019050919050565b600060208201905081810360008301526144cd81614491565b9050919050565b7f4974656d206973206e6f742070617961626c652c2063616e742062757920776960008201527f7468204554480000000000000000000000000000000000000000000000000000602082015250565b60006145306026836130e7565b915061453b826144d4565b604082019050919050565b6000602082019050818103600083015261455f81614523565b9050919050565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b600061459c600e836130e7565b91506145a782614566565b602082019050919050565b600060208201905081810360008301526145cb8161458f565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b600061462e6029836130e7565b9150614639826145d2565b604082019050919050565b6000602082019050818103600083015261465d81614621565b9050919050565b7f4974656d206973206e6f7420636c61696d61626c650000000000000000000000600082015250565b600061469a6015836130e7565b91506146a582614664565b602082019050919050565b600060208201905081810360008301526146c98161468d565b9050919050565b60006040820190506146e560008301856136be565b6146f26020830184612fca565b9392505050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b60006147556029836130e7565b9150614760826146f9565b604082019050919050565b6000602082019050818103600083015261478481614748565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006147e76026836130e7565b91506147f28261478b565b604082019050919050565b60006020820190508181036000830152614816816147da565b9050919050565b7f496e76616c6964206d6178537570706c79000000000000000000000000000000600082015250565b60006148536011836130e7565b915061485e8261481d565b602082019050919050565b6000602082019050818103600083015261488281614846565b9050919050565b600060e08201905061489e600083018a612fca565b81810360208301526148b0818961313c565b905081810360408301526148c4818861313c565b90506148d36060830187612fca565b6148e06080830186612fca565b6148ed60a08301856137bc565b6148fa60c0830184613085565b98975050505050505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b60006149626028836130e7565b915061496d82614906565b604082019050919050565b6000602082019050818103600083015261499181614955565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006149f46025836130e7565b91506149ff82614998565b604082019050919050565b60006020820190508181036000830152614a23816149e7565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614a86602a836130e7565b9150614a9182614a2a565b604082019050919050565b60006020820190508181036000830152614ab581614a79565b9050919050565b60006040820190508181036000830152614ad681856135fe565b90508181036020830152614aea81846135fe565b90509392505050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614b4f6021836130e7565b9150614b5a82614af3565b604082019050919050565b60006020820190508181036000830152614b7e81614b42565b9050919050565b6000604082019050614b9a6000830185612fca565b614ba76020830184612fca565b9392505050565b7f4f7574206f662073746f636b0000000000000000000000000000000000000000600082015250565b6000614be4600c836130e7565b9150614bef82614bae565b602082019050919050565b60006020820190508181036000830152614c1381614bd7565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614c4182614c1a565b614c4b8185614c25565b9350614c5b8185602086016130f8565b614c648161312b565b840191505092915050565b600060a082019050614c8460008301886136be565b614c9160208301876136be565b8181036040830152614ca381866135fe565b90508181036060830152614cb781856135fe565b90508181036080830152614ccb8184614c36565b90509695505050505050565b600081519050614ce681613020565b92915050565b600060208284031215614d0257614d01612eec565b5b6000614d1084828501614cd7565b91505092915050565b60008160e01c9050919050565b600060033d1115614d455760046000803e614d42600051614d19565b90505b90565b600060443d1015614d5857614ddb565b614d60612ee2565b60043d036004823e80513d602482011167ffffffffffffffff82111715614d88575050614ddb565b808201805167ffffffffffffffff811115614da65750505050614ddb565b80602083010160043d038501811115614dc3575050505050614ddb565b614dd2826020018501866131cb565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614e3a6034836130e7565b9150614e4582614dde565b604082019050919050565b60006020820190508181036000830152614e6981614e2d565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000614ecc6028836130e7565b9150614ed782614e70565b604082019050919050565b60006020820190508181036000830152614efb81614ebf565b9050919050565b600060a082019050614f1760008301886136be565b614f2460208301876136be565b614f316040830186612fca565b614f3e6060830185612fca565b8181036080830152614f508184614c36565b9050969550505050505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212201f528113a47be610aa1cb729267d7386af964a3b8c1fe586806975e4243ffa7e64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000005e2c6385e2b663a2f460bfb3a9d18c76c4739ff5
-----Decoded View---------------
Arg [0] : _AGOS (address): 0x5e2C6385e2b663A2F460BFB3a9d18C76c4739ff5
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005e2c6385e2b663a2f460bfb3a9d18c76c4739ff5
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.