ERC-1155
Overview
Max Total Supply
186
Holders
138
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 Source Code Verified (Exact Match)
Contract Name:
CommunityMemory
Compiler Version
v0.8.24+commit.e11b9ed9
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.24; import { ERC1155 } from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import { ERC1155Supply } from "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { Strings } from "@openzeppelin/contracts/utils/Strings.sol"; contract CommunityMemory is ERC1155Supply, Ownable { using Strings for uint256; enum MintStatus { None, Reader, Nominee, Crew } // Events event HolderMintStatus(address indexed walletAddress, MintStatus indexed mintStatus); event Nomination(address indexed nominator, address indexed nominee); event CrewJoin(address indexed walletAddress, uint256 indexed crewId); event ContractURIUpdated(string uri); event CrewFilled(uint256 indexed crewId); // Storage mapping(address => MintStatus) public mintTracking; mapping(address => uint256) public crewTracking; mapping(address => uint256) public nomineeCount; mapping(address => mapping(uint256 => address)) public nominees; uint256 private originalReaderCount = 0; uint256 private crewMemberCount = 0; uint256 public constant MAX_OG_READER_COUNT = 30; uint256 public constant MAX_READER_COUNT = 150; uint256 public constant MAX_CREW_SIZE = 6; string private contractURIhash = "ipfs://QmVQfAbs6Jw96Za6ogM8J8657Ai29KYpRfAwWJPxHzgFKq"; bool private paused = true; string public name = "Community Memory"; modifier notPaused() { require(!paused, "The contract is paused"); _; } constructor() ERC1155Supply() ERC1155("ipfs://QmQ8uEN1JguHC5yscr6FkF6WnaAhEDyJimmJmt327JC2tq/") Ownable(msg.sender) { } function uri(uint256 id) public view override returns (string memory) { string memory _uri = super.uri(id); return string(abi.encodePacked(_uri, id.toString())); } function mintReader() external notPaused { require ((balanceOf(msg.sender, 1) == 0), "You already own a reader token."); require (totalSupply(1) < MAX_READER_COUNT, "No more reader tokens to mint!"); if (originalReaderCount >= MAX_OG_READER_COUNT) { require (mintTracking[msg.sender] == MintStatus.Nominee, "You need to be nominated in order to mint a reader token."); } if (mintTracking[msg.sender] == MintStatus.None) { unchecked { ++originalReaderCount; } } mintTracking[msg.sender] = MintStatus.Reader; emit HolderMintStatus(msg.sender, MintStatus.Reader); _mint(msg.sender, 1, 1, ""); } function joinCrew(uint256 crewId) external notPaused { require ((crewId >= 2 && crewId <= 7), "Ineligible crew id."); require (mintTracking[msg.sender] != MintStatus.Crew, "Cannot join crew. You already joined a crew."); require (mintTracking[msg.sender] == MintStatus.Reader, "Cannot join crew. You don't own a reader token yet."); uint256 crewSizeWithoutOwner = totalSupply(crewId) - balanceOf(owner(), crewId); require (crewSizeWithoutOwner < (MAX_CREW_SIZE - 1), "Crew is already complete."); mintTracking[msg.sender] = MintStatus.Crew; emit HolderMintStatus(msg.sender, MintStatus.Crew); crewTracking[msg.sender] = crewId; emit CrewJoin(msg.sender, crewId); unchecked { ++crewMemberCount; } _mint(msg.sender, crewId, 1, ""); if(totalSupply(crewId) == MAX_CREW_SIZE) { emit CrewFilled(crewId); } } function nominateReaders(address[3] calldata readers) external notPaused { require (mintTracking[msg.sender] == MintStatus.Reader || mintTracking[msg.sender] == MintStatus.Crew, "Cannot nominate an address. You don't own a reader token yet."); uint256 totalNominees = nomineeCount[msg.sender]; require (totalNominees < 3, "You already nominated a maximum of 3 nominees."); for (uint256 i = 0; i < 3; i++) { if (readers[i] == address(0)) continue; require (mintTracking[readers[i]] == MintStatus.None, "A chosen nominee is ineligible (already nominated by someone else, has already minted or already joined a crew)"); unchecked { ++totalNominees; } require (totalNominees <= 3, "You already nominated a maximum of 3 nominees."); addNominee(msg.sender, i, readers[i]); } nomineeCount[msg.sender] = totalNominees; } function mintOwnerTokens(uint256 readerTokenAmount) external onlyOwner { require ((balanceOf(owner(), 1) == 0), "Owner already minted."); // 1. mint crew tokens for (uint256 i = 2; i < 8; i++) { emit CrewJoin(msg.sender, i); unchecked { ++crewMemberCount; } _mint(owner(), i, 1, ""); if(totalSupply(i) == MAX_CREW_SIZE) { emit CrewFilled(i); } } mintTracking[msg.sender] = MintStatus.Crew; emit HolderMintStatus(msg.sender, MintStatus.Crew); // 2. mint reader tokens _mint(owner(), 1, readerTokenAmount, ""); mintTracking[msg.sender] = MintStatus.Reader; emit HolderMintStatus(msg.sender, MintStatus.Reader); } function addNominee(address user, uint256 index, address nominee) internal { nominees[user][index] = nominee; mintTracking[nominee] = MintStatus.Nominee; emit HolderMintStatus(nominee, MintStatus.Nominee); emit Nomination(msg.sender, nominee); } function setMetadataUri(string calldata newUri) external onlyOwner { _setURI(newUri); } function contractURI() public view returns (string memory) { return contractURIhash; } function setContractURI(string calldata _contractURIHash) external onlyOwner { contractURIhash = _contractURIHash; emit ContractURIUpdated(_contractURIHash); } function setPaused(bool _paused) external onlyOwner { paused = _paused; } function safeTransferFrom(address _from, address _to, uint256 _id, uint256 _amount, bytes memory _data) public override { if (_from != owner()) { require (crewMemberCount >= (MAX_CREW_SIZE * 6), "You cannot transfer a token before all crews are fully joined (all essay tokens are minted)!"); } super.safeTransferFrom(_from, _to, _id, _amount, _data); //transfer the mint status mintTracking[_to] = mintTracking[_from]; emit HolderMintStatus(_to, mintTracking[_from]); //If 'from' is not the owner if (_from != owner()) { //transfer crew token data if (crewTracking[_from] > 1) { crewTracking[_to] = crewTracking[_from]; emit CrewJoin(_to, crewTracking[_from]); } //remove/reset mint status data from the sender mintTracking[_from] = MintStatus.None; emit HolderMintStatus(_from, MintStatus.None); //transfer nominee data nomineeCount[_to] = nomineeCount[_from]; uint256 totalNominees = nomineeCount[_from]; for (uint256 i = 0; i < totalNominees; i++) { address nominee = nominees[_from][i]; nominees[_to][i] = nominee; emit Nomination(_to, nominee); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; import {Math} from "./math/Math.sol"; import {SignedMath} from "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; 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_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.20; import {ERC1155} from "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. * * NOTE: This contract implies a global limit of 2**256 - 1 to the number of tokens * that can be minted. * * CAUTION: This extension should not be added in an upgrade to an already deployed contract. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 id => uint256) private _totalSupply; uint256 private _totalSupplyAll; /** * @dev Total value of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Total value of tokens. */ function totalSupply() public view virtual returns (uint256) { return _totalSupplyAll; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return totalSupply(id) > 0; } /** * @dev See {ERC1155-_update}. */ function _update( address from, address to, uint256[] memory ids, uint256[] memory values ) internal virtual override { super._update(from, to, ids, values); if (from == address(0)) { uint256 totalMintValue = 0; for (uint256 i = 0; i < ids.length; ++i) { uint256 value = values[i]; // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply[ids[i]] += value; totalMintValue += value; } // Overflow check required: The rest of the code assumes that totalSupplyAll never overflows _totalSupplyAll += totalMintValue; } if (to == address(0)) { uint256 totalBurnValue = 0; for (uint256 i = 0; i < ids.length; ++i) { uint256 value = values[i]; unchecked { // Overflow not possible: values[i] <= balanceOf(from, ids[i]) <= totalSupply(ids[i]) _totalSupply[ids[i]] -= value; // Overflow not possible: sum_i(values[i]) <= sum_i(totalSupply(ids[i])) <= totalSupplyAll totalBurnValue += value; } } unchecked { // Overflow not possible: totalBurnValue = sum_i(values[i]) <= sum_i(totalSupply(ids[i])) <= totalSupplyAll _totalSupplyAll -= totalBurnValue; } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.20; import {IERC1155} from "./IERC1155.sol"; import {IERC1155Receiver} from "./IERC1155Receiver.sol"; import {IERC1155MetadataURI} from "./extensions/IERC1155MetadataURI.sol"; import {Context} from "../../utils/Context.sol"; import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol"; import {Arrays} from "../../utils/Arrays.sol"; import {IERC1155Errors} from "../../interfaces/draft-IERC6093.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 */ abstract contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, IERC1155Errors { using Arrays for uint256[]; using Arrays for address[]; mapping(uint256 id => mapping(address account => uint256)) private _balances; mapping(address account => mapping(address operator => 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 /* id */) public view virtual returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. */ function balanceOf(address account, uint256 id) public view virtual returns (uint256) { 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 returns (uint256[] memory) { if (accounts.length != ids.length) { revert ERC1155InvalidArrayLength(ids.length, accounts.length); } uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts.unsafeMemoryAccess(i), ids.unsafeMemoryAccess(i)); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes memory data) public virtual { address sender = _msgSender(); if (from != sender && !isApprovedForAll(from, sender)) { revert ERC1155MissingApprovalForAll(sender, from); } _safeTransferFrom(from, to, id, value, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) public virtual { address sender = _msgSender(); if (from != sender && !isApprovedForAll(from, sender)) { revert ERC1155MissingApprovalForAll(sender, from); } _safeBatchTransferFrom(from, to, ids, values, data); } /** * @dev Transfers a `value` amount of tokens of type `id` from `from` to `to`. Will mint (or burn) if `from` * (or `to`) is the zero address. * * Emits a {TransferSingle} event if the arrays contain one element, and {TransferBatch} otherwise. * * Requirements: * * - If `to` refers to a smart contract, it must implement either {IERC1155Receiver-onERC1155Received} * or {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value. * - `ids` and `values` must have the same length. * * NOTE: The ERC-1155 acceptance check is not performed in this function. See {_updateWithAcceptanceCheck} instead. */ function _update(address from, address to, uint256[] memory ids, uint256[] memory values) internal virtual { if (ids.length != values.length) { revert ERC1155InvalidArrayLength(ids.length, values.length); } address operator = _msgSender(); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids.unsafeMemoryAccess(i); uint256 value = values.unsafeMemoryAccess(i); if (from != address(0)) { uint256 fromBalance = _balances[id][from]; if (fromBalance < value) { revert ERC1155InsufficientBalance(from, fromBalance, value, id); } unchecked { // Overflow not possible: value <= fromBalance _balances[id][from] = fromBalance - value; } } if (to != address(0)) { _balances[id][to] += value; } } if (ids.length == 1) { uint256 id = ids.unsafeMemoryAccess(0); uint256 value = values.unsafeMemoryAccess(0); emit TransferSingle(operator, from, to, id, value); } else { emit TransferBatch(operator, from, to, ids, values); } } /** * @dev Version of {_update} that performs the token acceptance check by calling * {IERC1155Receiver-onERC1155Received} or {IERC1155Receiver-onERC1155BatchReceived} on the receiver address if it * contains code (eg. is a smart contract at the moment of execution). * * IMPORTANT: Overriding this function is discouraged because it poses a reentrancy risk from the receiver. So any * update to the contract state after this function would break the check-effect-interaction pattern. Consider * overriding {_update} instead. */ function _updateWithAcceptanceCheck( address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) internal virtual { _update(from, to, ids, values); if (to != address(0)) { address operator = _msgSender(); if (ids.length == 1) { uint256 id = ids.unsafeMemoryAccess(0); uint256 value = values.unsafeMemoryAccess(0); _doSafeTransferAcceptanceCheck(operator, from, to, id, value, data); } else { _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, values, data); } } } /** * @dev Transfers a `value` 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 `value` 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 value, bytes memory data) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value); _updateWithAcceptanceCheck(from, to, ids, values, 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. * - `ids` and `values` must have the same length. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } _updateWithAcceptanceCheck(from, to, ids, values, 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 values 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 a `value` amount of tokens of type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint(address to, uint256 id, uint256 value, bytes memory data) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value); _updateWithAcceptanceCheck(address(0), to, ids, values, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `values` must have the same length. * - `to` cannot be the zero address. * - 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 values, bytes memory data) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } _updateWithAcceptanceCheck(address(0), to, ids, values, data); } /** * @dev Destroys a `value` amount of tokens of type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `value` amount of tokens of type `id`. */ function _burn(address from, uint256 id, uint256 value) internal { if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value); _updateWithAcceptanceCheck(from, address(0), ids, values, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `value` amount of tokens of type `id`. * - `ids` and `values` must have the same length. */ function _burnBatch(address from, uint256[] memory ids, uint256[] memory values) internal { if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } _updateWithAcceptanceCheck(from, address(0), ids, values, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the zero address. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC1155InvalidOperator(address(0)); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Performs an acceptance check by calling {IERC1155-onERC1155Received} on the `to` address * if it contains code at the moment of execution. */ function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 value, bytes memory data ) private { if (to.code.length > 0) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, value, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { // Tokens rejected revert ERC1155InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { // non-ERC1155Receiver implementer revert ERC1155InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } /** * @dev Performs a batch acceptance check by calling {IERC1155-onERC1155BatchReceived} on the `to` address * if it contains code at the moment of execution. */ function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) private { if (to.code.length > 0) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, values, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { // Tokens rejected revert ERC1155InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { // non-ERC1155Receiver implementer revert ERC1155InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } /** * @dev Creates an array in memory with only one value for each of the elements provided. */ function _asSingletonArrays( uint256 element1, uint256 element2 ) private pure returns (uint256[] memory array1, uint256[] memory array2) { /// @solidity memory-safe-assembly assembly { // Load the free memory pointer array1 := mload(0x40) // Set array length to 1 mstore(array1, 1) // Store the single element at the next word after the length (where content starts) mstore(add(array1, 0x20), element1) // Repeat for next array locating it right after the first array array2 := add(array1, 0x40) mstore(array2, 1) mstore(add(array2, 0x20), element2) // Update the free memory pointer by pointing after the second array mstore(0x40, add(array2, 0x40)) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Arrays.sol) pragma solidity ^0.8.20; import {StorageSlot} from "./StorageSlot.sol"; import {Math} from "./math/Math.sol"; /** * @dev Collection of functions related to array types. */ library Arrays { using StorageSlot for bytes32; /** * @dev Searches a sorted `array` and returns the first index that contains * a value greater or equal to `element`. If no such index exists (i.e. all * values in the array are strictly less than `element`), the array length is * returned. Time complexity O(log n). * * `array` is expected to be sorted in ascending order, and to contain no * repeated elements. */ function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) { uint256 low = 0; uint256 high = array.length; if (high == 0) { return 0; } while (low < high) { uint256 mid = Math.average(low, high); // Note that mid will always be strictly less than high (i.e. it will be a valid array index) // because Math.average rounds towards zero (it does integer division with truncation). if (unsafeAccess(array, mid).value > element) { high = mid; } else { low = mid + 1; } } // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound. if (low > 0 && unsafeAccess(array, low - 1).value == element) { return low - 1; } else { return low; } } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeAccess(address[] storage arr, uint256 pos) internal pure returns (StorageSlot.AddressSlot storage) { bytes32 slot; // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr` // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays. /// @solidity memory-safe-assembly assembly { mstore(0, arr.slot) slot := add(keccak256(0, 0x20), pos) } return slot.getAddressSlot(); } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeAccess(bytes32[] storage arr, uint256 pos) internal pure returns (StorageSlot.Bytes32Slot storage) { bytes32 slot; // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr` // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays. /// @solidity memory-safe-assembly assembly { mstore(0, arr.slot) slot := add(keccak256(0, 0x20), pos) } return slot.getBytes32Slot(); } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeAccess(uint256[] storage arr, uint256 pos) internal pure returns (StorageSlot.Uint256Slot storage) { bytes32 slot; // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr` // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays. /// @solidity memory-safe-assembly assembly { mstore(0, arr.slot) slot := add(keccak256(0, 0x20), pos) } return slot.getUint256Slot(); } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeMemoryAccess(uint256[] memory arr, uint256 pos) internal pure returns (uint256 res) { assembly { res := mload(add(add(arr, 0x20), mul(pos, 0x20))) } } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeMemoryAccess(address[] memory arr, uint256 pos) internal pure returns (address res) { assembly { res := mload(add(add(arr, 0x20), mul(pos, 0x20))) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./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); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.20; import {IERC1155} from "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. */ 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 // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Interface that must be implemented by smart contracts in order to receive * ERC-1155 token transfers. */ 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. * * NOTE: 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. * * NOTE: 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 // OpenZeppelin Contracts (last updated v5.0.1) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` amount of tokens of 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 value 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 a `value` amount of tokens of type `id` from `from` to `to`. * * WARNING: This function can potentially allow a reentrancy attack when transferring tokens * to an untrusted contract, when invoking {onERC1155Received} on the receiver. * Ensure to follow the checks-effects-interactions pattern and consider employing * reentrancy guards when interacting with untrusted contracts. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `value` 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 value, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * WARNING: This function can potentially allow a reentrancy attack when transferring tokens * to an untrusted contract, when invoking {onERC1155BatchReceived} on the receiver. * Ensure to follow the checks-effects-interactions pattern and consider employing * reentrancy guards when interacting with untrusted contracts. * * Emits either a {TransferSingle} or a {TransferBatch} event, depending on the length of the array arguments. * * Requirements: * * - `ids` and `values` 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 values, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.20; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(newImplementation.code.length > 0); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC1155InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC1155InvalidApprover","type":"error"},{"inputs":[{"internalType":"uint256","name":"idsLength","type":"uint256"},{"internalType":"uint256","name":"valuesLength","type":"uint256"}],"name":"ERC1155InvalidArrayLength","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC1155InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC1155InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC1155InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC1155MissingApprovalForAll","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"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":"string","name":"uri","type":"string"}],"name":"ContractURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"crewId","type":"uint256"}],"name":"CrewFilled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"walletAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"crewId","type":"uint256"}],"name":"CrewJoin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"walletAddress","type":"address"},{"indexed":true,"internalType":"enum CommunityMemory.MintStatus","name":"mintStatus","type":"uint8"}],"name":"HolderMintStatus","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nominator","type":"address"},{"indexed":true,"internalType":"address","name":"nominee","type":"address"}],"name":"Nomination","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":"MAX_CREW_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_OG_READER_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_READER_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"crewTracking","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"crewId","type":"uint256"}],"name":"joinCrew","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"readerTokenAmount","type":"uint256"}],"name":"mintOwnerTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintReader","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintTracking","outputs":[{"internalType":"enum CommunityMemory.MintStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[3]","name":"readers","type":"address[3]"}],"name":"nominateReaders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nomineeCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"nominees","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","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":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURIHash","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUri","type":"string"}],"name":"setMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","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":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040525f600a555f600b55604051806060016040528060358152602001620054a960359139600c908162000036919062000499565b506001600d5f6101000a81548160ff0219169083151502179055506040518060400160405280601081526020017f436f6d6d756e697479204d656d6f727900000000000000000000000000000000815250600e908162000097919062000499565b50348015620000a4575f80fd5b5033604051806060016040528060368152602001620054de60369139620000d1816200015d60201b60201c565b505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000145575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016200013c9190620005c0565b60405180910390fd5b62000156816200017260201b60201c565b50620005db565b80600290816200016e919062000499565b5050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680620002b157607f821691505b602082108103620002c757620002c66200026c565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026200032b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620002ee565b620003378683620002ee565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f620003816200037b62000375846200034f565b62000358565b6200034f565b9050919050565b5f819050919050565b6200039c8362000361565b620003b4620003ab8262000388565b848454620002fa565b825550505050565b5f90565b620003ca620003bc565b620003d781848462000391565b505050565b5b81811015620003fe57620003f25f82620003c0565b600181019050620003dd565b5050565b601f8211156200044d576200041781620002cd565b6200042284620002df565b8101602085101562000432578190505b6200044a6200044185620002df565b830182620003dc565b50505b505050565b5f82821c905092915050565b5f6200046f5f198460080262000452565b1980831691505092915050565b5f6200048983836200045e565b9150826002028217905092915050565b620004a48262000235565b67ffffffffffffffff811115620004c057620004bf6200023f565b5b620004cc825462000299565b620004d982828562000402565b5f60209050601f8311600181146200050f575f8415620004fa578287015190505b6200050685826200047c565b86555062000575565b601f1984166200051f86620002cd565b5f5b82811015620005485784890151825560018201915060208501945060208101905062000521565b8683101562000568578489015162000564601f8916826200045e565b8355505b6001600288020188555050505b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620005a8826200057d565b9050919050565b620005ba816200059c565b82525050565b5f602082019050620005d55f830184620005af565b92915050565b614ec080620005e95f395ff3fe608060405234801561000f575f80fd5b50600436106101d7575f3560e01c80638da5cb5b11610102578063defcda0f116100a0578063f242432a1161006f578063f242432a14610563578063f2b0498f1461057f578063f2dcda5c146105af578063f2fde38b146105cd576101d7565b8063defcda0f146104b5578063e5050777146104e5578063e8a3d48514610515578063e985e9c514610533576101d7565b8063a4b76e1f116100dc578063a4b76e1f1461041b578063b48b70ca14610439578063bd85b03914610469578063c6f9118114610499576101d7565b80638da5cb5b146103c5578063938e3d7b146103e3578063a22cb465146103ff576101d7565b806318160ddd1161017a57806349606c841161014957806349606c841461033f5780634e1273f41461035b5780634f558e791461038b578063715018a6146103bb576101d7565b806318160ddd146102df5780632eb2c2d6146102fd5780634041cd4d146103195780634935195d14610335576101d7565b806306fdde03116101b657806306fdde03146102595780630e89341c146102775780631130630c146102a757806316c38b3c146102c3576101d7565b8062fdd58e146101db57806301ffc9a71461020b57806304ad2d871461023b575b5f80fd5b6101f560048036038101906101f0919061364f565b6105e9565b604051610202919061369c565b60405180910390f35b6102256004803603810190610220919061370a565b61063e565b604051610232919061374f565b60405180910390f35b61024361071f565b604051610250919061369c565b60405180910390f35b610261610724565b60405161026e91906137f2565b60405180910390f35b610291600480360381019061028c9190613812565b6107b0565b60405161029e91906137f2565b60405180910390f35b6102c160048036038101906102bc919061389e565b6107f0565b005b6102dd60048036038101906102d89190613913565b610848565b005b6102e761086c565b6040516102f4919061369c565b60405180910390f35b61031760048036038101906103129190613b26565b610875565b005b610333600480360381019061032e9190613812565b61091c565b005b61033d610be3565b005b61035960048036038101906103549190613c12565b610ee2565b005b61037560048036038101906103709190613cfd565b6112e3565b6040516103829190613e2a565b60405180910390f35b6103a560048036038101906103a09190613812565b6113ea565b6040516103b2919061374f565b60405180910390f35b6103c36113fd565b005b6103cd611410565b6040516103da9190613e59565b60405180910390f35b6103fd60048036038101906103f8919061389e565b611438565b005b61041960048036038101906104149190613e72565b61148f565b005b6104236114a5565b604051610430919061369c565b60405180910390f35b610453600480360381019061044e919061364f565b6114aa565b6040516104609190613e59565b60405180910390f35b610483600480360381019061047e9190613812565b6114e7565b604051610490919061369c565b60405180910390f35b6104b360048036038101906104ae9190613812565b611501565b005b6104cf60048036038101906104ca9190613eb0565b611923565b6040516104dc9190613f4e565b60405180910390f35b6104ff60048036038101906104fa9190613eb0565b611940565b60405161050c919061369c565b60405180910390f35b61051d611955565b60405161052a91906137f2565b60405180910390f35b61054d60048036038101906105489190613f67565b6119e5565b60405161055a919061374f565b60405180910390f35b61057d60048036038101906105789190613fa5565b611a73565b005b61059960048036038101906105949190613eb0565b6120c8565b6040516105a6919061369c565b60405180910390f35b6105b76120dd565b6040516105c4919061369c565b60405180910390f35b6105e760048036038101906105e29190613eb0565b6120e2565b005b5f805f8381526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f7fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061070857507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610718575061071782612166565b5b9050919050565b609681565b600e805461073190614065565b80601f016020809104026020016040519081016040528092919081815260200182805461075d90614065565b80156107a85780601f1061077f576101008083540402835291602001916107a8565b820191905f5260205f20905b81548152906001019060200180831161078b57829003601f168201915b505050505081565b60605f6107bc836121cf565b9050806107c884612261565b6040516020016107d99291906140cf565b604051602081830303815290604052915050919050565b6107f861232b565b61084482828080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f820116905080830192505050505050506123b2565b5050565b61085061232b565b80600d5f6101000a81548160ff02191690831515021790555050565b5f600454905090565b5f61087e6123c5565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141580156108c357506108c186826119e5565b155b156109075780866040517fe237d9220000000000000000000000000000000000000000000000000000000081526004016108fe9291906140f2565b60405180910390fd5b61091486868686866123cc565b505050505050565b61092461232b565b5f610937610930611410565b60016105e9565b14610977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096e90614163565b60405180910390fd5b5f600290505b6008811015610a4657803373ffffffffffffffffffffffffffffffffffffffff167ffd71a1ff9a9f64c9d5ae6eabb827f4cf2f1fbf83da684592f87cbdaf0bb9defc60405160405180910390a3600b5f8154600101919050819055506109fb6109e4611410565b82600160405180602001604052805f8152506124c0565b6006610a06826114e7565b03610a3957807f53d4b21103e83b1822f5eff2caed5bed34032e16fcf1eb28064620f4e6f3656e60405160405180910390a25b808060010191505061097d565b50600360065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690836003811115610aa757610aa6613edb565b5b0217905550600380811115610abf57610abe613edb565b5b3373ffffffffffffffffffffffffffffffffffffffff167f91cc0b28b399b7784ad6347634f7c2fb7a5409e53a64263bde60759c4c106e2960405160405180910390a3610b24610b0d611410565b60018360405180602001604052805f8152506124c0565b600160065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690836003811115610b8457610b83613edb565b5b021790555060016003811115610b9d57610b9c613edb565b5b3373ffffffffffffffffffffffffffffffffffffffff167f91cc0b28b399b7784ad6347634f7c2fb7a5409e53a64263bde60759c4c106e2960405160405180910390a350565b600d5f9054906101000a900460ff1615610c32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c29906141cb565b60405180910390fd5b5f610c3e3360016105e9565b14610c7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7590614233565b60405180910390fd5b6096610c8a60016114e7565b10610cca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc19061429b565b60405180910390fd5b601e600a5410610d855760026003811115610ce857610ce7613edb565b5b60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166003811115610d4457610d43613edb565b5b14610d84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7b90614329565b60405180910390fd5b5b5f6003811115610d9857610d97613edb565b5b60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166003811115610df457610df3613edb565b5b03610e0957600a5f8154600101919050819055505b600160065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690836003811115610e6957610e68613edb565b5b021790555060016003811115610e8257610e81613edb565b5b3373ffffffffffffffffffffffffffffffffffffffff167f91cc0b28b399b7784ad6347634f7c2fb7a5409e53a64263bde60759c4c106e2960405160405180910390a3610ee03360018060405180602001604052805f8152506124c0565b565b600d5f9054906101000a900460ff1615610f31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f28906141cb565b60405180910390fd5b60016003811115610f4557610f44613edb565b5b60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166003811115610fa157610fa0613edb565b5b14806110195750600380811115610fbb57610fba613edb565b5b60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16600381111561101757611016613edb565b5b145b611058576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104f906143b7565b60405180910390fd5b5f60085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050600381106110dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d390614445565b60405180910390fd5b5f5b600381101561129c575f73ffffffffffffffffffffffffffffffffffffffff1683826003811061111157611110614463565b5b6020020160208101906111249190613eb0565b73ffffffffffffffffffffffffffffffffffffffff16031561128f575f600381111561115357611152613edb565b5b60065f85846003811061116957611168614463565b5b60200201602081019061117c9190613eb0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1660038111156111d4576111d3613edb565b5b14611214576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120b9061454c565b60405180910390fd5b816001019150600382111561125e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125590614445565b60405180910390fd5b61128e338285846003811061127657611275614463565b5b6020020160208101906112899190613eb0565b612555565b5b80806001019150506110de565b508060085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505050565b6060815183511461132f57815183516040517f5b05999100000000000000000000000000000000000000000000000000000000815260040161132692919061456a565b60405180910390fd5b5f835167ffffffffffffffff81111561134b5761134a61393e565b5b6040519080825280602002602001820160405280156113795781602001602082028036833780820191505090505b5090505f5b84518110156113df576113b561139d82876126fa90919063ffffffff16565b6113b0838761270d90919063ffffffff16565b6105e9565b8282815181106113c8576113c7614463565b5b60200260200101818152505080600101905061137e565b508091505092915050565b5f806113f5836114e7565b119050919050565b61140561232b565b61140e5f612720565b565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61144061232b565b8181600c9182611451929190614738565b507f905d981207a7d0b6c62cc46ab0be2a076d0298e4a86d0ab79882dbd01ac373788282604051611483929190614831565b60405180910390a15050565b6114a161149a6123c5565b83836127e3565b5050565b601e81565b6009602052815f5260405f20602052805f5260405f205f915091509054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60035f8381526020019081526020015f20549050919050565b600d5f9054906101000a900460ff1615611550576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611547906141cb565b60405180910390fd5b60028110158015611562575060078111155b6115a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115989061489d565b60405180910390fd5b6003808111156115b4576115b3613edb565b5b60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1660038111156116105761160f613edb565b5b03611650576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116479061492b565b60405180910390fd5b6001600381111561166457611663613edb565b5b60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1660038111156116c0576116bf613edb565b5b14611700576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f7906149b9565b60405180910390fd5b5f61171261170c611410565b836105e9565b61171b836114e7565b6117259190614a04565b9050600160066117359190614a04565b8110611776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176d90614a81565b60405180910390fd5b600360065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908360038111156117d6576117d5613edb565b5b02179055506003808111156117ee576117ed613edb565b5b3373ffffffffffffffffffffffffffffffffffffffff167f91cc0b28b399b7784ad6347634f7c2fb7a5409e53a64263bde60759c4c106e2960405160405180910390a38160075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550813373ffffffffffffffffffffffffffffffffffffffff167ffd71a1ff9a9f64c9d5ae6eabb827f4cf2f1fbf83da684592f87cbdaf0bb9defc60405160405180910390a3600b5f8154600101919050819055506118e13383600160405180602001604052805f8152506124c0565b60066118ec836114e7565b0361191f57817f53d4b21103e83b1822f5eff2caed5bed34032e16fcf1eb28064620f4e6f3656e60405160405180910390a25b5050565b6006602052805f5260405f205f915054906101000a900460ff1681565b6008602052805f5260405f205f915090505481565b6060600c805461196490614065565b80601f016020809104026020016040519081016040528092919081815260200182805461199090614065565b80156119db5780601f106119b2576101008083540402835291602001916119db565b820191905f5260205f20905b8154815290600101906020018083116119be57829003601f168201915b5050505050905090565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b611a7b611410565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614611aff57600680611aba9190614a9f565b600b541015611afe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af590614b76565b60405180910390fd5b5b611b0c858585858561294c565b60065f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1660065f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690836003811115611bb457611bb3613edb565b5b021790555060065f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166003811115611c1557611c14613edb565b5b8473ffffffffffffffffffffffffffffffffffffffff167f91cc0b28b399b7784ad6347634f7c2fb7a5409e53a64263bde60759c4c106e2960405160405180910390a3611c60611410565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146120c157600160075f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20541115611dd95760075f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205460075f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060075f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20548473ffffffffffffffffffffffffffffffffffffffff167ffd71a1ff9a9f64c9d5ae6eabb827f4cf2f1fbf83da684592f87cbdaf0bb9defc60405160405180910390a35b5f60065f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690836003811115611e3857611e37613edb565b5b02179055505f6003811115611e5057611e4f613edb565b5b8573ffffffffffffffffffffffffffffffffffffffff167f91cc0b28b399b7784ad6347634f7c2fb7a5409e53a64263bde60759c4c106e2960405160405180910390a360085f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205460085f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f60085f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f5b818110156120be575f60095f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508060095f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f41ab238d8086c9757f18d383b4e864a7cd52d584a4d7bbeaa3c669cfec288d3d60405160405180910390a3508080600101915050611f55565b50505b5050505050565b6007602052805f5260405f205f915090505481565b600681565b6120ea61232b565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361215a575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016121519190613e59565b60405180910390fd5b61216381612720565b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600280546121de90614065565b80601f016020809104026020016040519081016040528092919081815260200182805461220a90614065565b80156122555780601f1061222c57610100808354040283529160200191612255565b820191905f5260205f20905b81548152906001019060200180831161223857829003601f168201915b50505050509050919050565b60605f600161226f846129f3565b0190505f8167ffffffffffffffff81111561228d5761228c61393e565b5b6040519080825280601f01601f1916602001820160405280156122bf5781602001600182028036833780820191505090505b5090505f82602001820190505b600115612320578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161231557612314614b94565b5b0494505f85036122cc575b819350505050919050565b6123336123c5565b73ffffffffffffffffffffffffffffffffffffffff16612351611410565b73ffffffffffffffffffffffffffffffffffffffff16146123b0576123746123c5565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016123a79190613e59565b60405180910390fd5b565b80600290816123c19190614bc1565b5050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361243c575f6040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016124339190613e59565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036124ac575f6040517f01a835140000000000000000000000000000000000000000000000000000000081526004016124a39190613e59565b60405180910390fd5b6124b98585858585612b44565b5050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612530575f6040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016125279190613e59565b60405180910390fd5b5f8061253c8585612bf0565b9150915061254d5f87848487612b44565b505050505050565b8060095f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083600381111561263f5761263e613edb565b5b02179055506002600381111561265857612657613edb565b5b8173ffffffffffffffffffffffffffffffffffffffff167f91cc0b28b399b7784ad6347634f7c2fb7a5409e53a64263bde60759c4c106e2960405160405180910390a38073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f41ab238d8086c9757f18d383b4e864a7cd52d584a4d7bbeaa3c669cfec288d3d60405160405180910390a3505050565b5f60208202602084010151905092915050565b5f60208202602084010151905092915050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612853575f6040517fced3e10000000000000000000000000000000000000000000000000000000000815260040161284a9190613e59565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161293f919061374f565b60405180910390a3505050565b5f6129556123c5565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415801561299a575061299886826119e5565b155b156129de5780866040517fe237d9220000000000000000000000000000000000000000000000000000000081526004016129d59291906140f2565b60405180910390fd5b6129eb8686868686612c20565b505050505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612a4f577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612a4557612a44614b94565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612a8c576d04ee2d6d415b85acef81000000008381612a8257612a81614b94565b5b0492506020810190505b662386f26fc100008310612abb57662386f26fc100008381612ab157612ab0614b94565b5b0492506010810190505b6305f5e1008310612ae4576305f5e1008381612ada57612ad9614b94565b5b0492506008810190505b6127108310612b09576127108381612aff57612afe614b94565b5b0492506004810190505b60648310612b2c5760648381612b2257612b21614b94565b5b0492506002810190505b600a8310612b3b576001810190505b80915050919050565b612b5085858585612d26565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612be9575f612b8c6123c5565b90506001845103612bd8575f612bab5f8661270d90919063ffffffff16565b90505f612bc15f8661270d90919063ffffffff16565b9050612bd1838989858589612ec3565b5050612be7565b612be6818787878787613072565b5b505b5050505050565b60608060405191506001825283602083015260408201905060018152826020820152604081016040529250929050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612c90575f6040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401612c879190613e59565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612d00575f6040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612cf79190613e59565b60405180910390fd5b5f80612d0c8585612bf0565b91509150612d1d8787848487612b44565b50505050505050565b612d3284848484613221565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612e05575f805b8351811015612dea575f838281518110612d8557612d84614463565b5b602002602001015190508060035f878581518110612da657612da5614463565b5b602002602001015181526020019081526020015f205f828254612dc99190614c90565b925050819055508083612ddc9190614c90565b925050806001019050612d68565b508060045f828254612dfc9190614c90565b92505081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612ebd575f805b8351811015612eab575f838281518110612e5857612e57614463565b5b602002602001015190508060035f878581518110612e7957612e78614463565b5b602002602001015181526020019081526020015f205f8282540392505081905550808301925050806001019050612e3b565b508060045f8282540392505081905550505b50505050565b5f8473ffffffffffffffffffffffffffffffffffffffff163b111561306a578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612f23959493929190614d15565b6020604051808303815f875af1925050508015612f5e57506040513d601f19601f82011682018060405250810190612f5b9190614d81565b60015b612fdf573d805f8114612f8c576040519150601f19603f3d011682016040523d82523d5f602084013e612f91565b606091505b505f815103612fd757846040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401612fce9190613e59565b60405180910390fd5b805181602001fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461306857846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161305f9190613e59565b60405180910390fd5b505b505050505050565b5f8473ffffffffffffffffffffffffffffffffffffffff163b1115613219578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016130d2959493929190614dac565b6020604051808303815f875af192505050801561310d57506040513d601f19601f8201168201806040525081019061310a9190614d81565b60015b61318e573d805f811461313b576040519150601f19603f3d011682016040523d82523d5f602084013e613140565b606091505b505f81510361318657846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161317d9190613e59565b60405180910390fd5b805181602001fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461321757846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161320e9190613e59565b60405180910390fd5b505b505050505050565b805182511461326b57815181516040517f5b05999100000000000000000000000000000000000000000000000000000000815260040161326292919061456a565b60405180910390fd5b5f6132746123c5565b90505f5b8351811015613470575f613295828661270d90919063ffffffff16565b90505f6132ab838661270d90919063ffffffff16565b90505f73ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16146133ce575f805f8481526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561337a57888183856040517f03dee4c50000000000000000000000000000000000000000000000000000000081526004016133719493929190614e12565b60405180910390fd5b8181035f808581526020019081526020015f205f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161461346357805f808481526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461345b9190614c90565b925050819055505b5050806001019050613278565b50600183510361352b575f61348e5f8561270d90919063ffffffff16565b90505f6134a45f8561270d90919063ffffffff16565b90508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62858560405161351c92919061456a565b60405180910390a450506135aa565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516135a1929190614e55565b60405180910390a45b5050505050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6135eb826135c2565b9050919050565b6135fb816135e1565b8114613605575f80fd5b50565b5f81359050613616816135f2565b92915050565b5f819050919050565b61362e8161361c565b8114613638575f80fd5b50565b5f8135905061364981613625565b92915050565b5f8060408385031215613665576136646135ba565b5b5f61367285828601613608565b92505060206136838582860161363b565b9150509250929050565b6136968161361c565b82525050565b5f6020820190506136af5f83018461368d565b92915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6136e9816136b5565b81146136f3575f80fd5b50565b5f81359050613704816136e0565b92915050565b5f6020828403121561371f5761371e6135ba565b5b5f61372c848285016136f6565b91505092915050565b5f8115159050919050565b61374981613735565b82525050565b5f6020820190506137625f830184613740565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561379f578082015181840152602081019050613784565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6137c482613768565b6137ce8185613772565b93506137de818560208601613782565b6137e7816137aa565b840191505092915050565b5f6020820190508181035f83015261380a81846137ba565b905092915050565b5f60208284031215613827576138266135ba565b5b5f6138348482850161363b565b91505092915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261385e5761385d61383d565b5b8235905067ffffffffffffffff81111561387b5761387a613841565b5b60208301915083600182028301111561389757613896613845565b5b9250929050565b5f80602083850312156138b4576138b36135ba565b5b5f83013567ffffffffffffffff8111156138d1576138d06135be565b5b6138dd85828601613849565b92509250509250929050565b6138f281613735565b81146138fc575f80fd5b50565b5f8135905061390d816138e9565b92915050565b5f60208284031215613928576139276135ba565b5b5f613935848285016138ff565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b613974826137aa565b810181811067ffffffffffffffff821117156139935761399261393e565b5b80604052505050565b5f6139a56135b1565b90506139b1828261396b565b919050565b5f67ffffffffffffffff8211156139d0576139cf61393e565b5b602082029050602081019050919050565b5f6139f36139ee846139b6565b61399c565b90508083825260208201905060208402830185811115613a1657613a15613845565b5b835b81811015613a3f5780613a2b888261363b565b845260208401935050602081019050613a18565b5050509392505050565b5f82601f830112613a5d57613a5c61383d565b5b8135613a6d8482602086016139e1565b91505092915050565b5f80fd5b5f67ffffffffffffffff821115613a9457613a9361393e565b5b613a9d826137aa565b9050602081019050919050565b828183375f83830152505050565b5f613aca613ac584613a7a565b61399c565b905082815260208101848484011115613ae657613ae5613a76565b5b613af1848285613aaa565b509392505050565b5f82601f830112613b0d57613b0c61383d565b5b8135613b1d848260208601613ab8565b91505092915050565b5f805f805f60a08688031215613b3f57613b3e6135ba565b5b5f613b4c88828901613608565b9550506020613b5d88828901613608565b945050604086013567ffffffffffffffff811115613b7e57613b7d6135be565b5b613b8a88828901613a49565b935050606086013567ffffffffffffffff811115613bab57613baa6135be565b5b613bb788828901613a49565b925050608086013567ffffffffffffffff811115613bd857613bd76135be565b5b613be488828901613af9565b9150509295509295909350565b5f81905082602060030282011115613c0c57613c0b613845565b5b92915050565b5f60608284031215613c2757613c266135ba565b5b5f613c3484828501613bf1565b91505092915050565b5f67ffffffffffffffff821115613c5757613c5661393e565b5b602082029050602081019050919050565b5f613c7a613c7584613c3d565b61399c565b90508083825260208201905060208402830185811115613c9d57613c9c613845565b5b835b81811015613cc65780613cb28882613608565b845260208401935050602081019050613c9f565b5050509392505050565b5f82601f830112613ce457613ce361383d565b5b8135613cf4848260208601613c68565b91505092915050565b5f8060408385031215613d1357613d126135ba565b5b5f83013567ffffffffffffffff811115613d3057613d2f6135be565b5b613d3c85828601613cd0565b925050602083013567ffffffffffffffff811115613d5d57613d5c6135be565b5b613d6985828601613a49565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613da58161361c565b82525050565b5f613db68383613d9c565b60208301905092915050565b5f602082019050919050565b5f613dd882613d73565b613de28185613d7d565b9350613ded83613d8d565b805f5b83811015613e1d578151613e048882613dab565b9750613e0f83613dc2565b925050600181019050613df0565b5085935050505092915050565b5f6020820190508181035f830152613e428184613dce565b905092915050565b613e53816135e1565b82525050565b5f602082019050613e6c5f830184613e4a565b92915050565b5f8060408385031215613e8857613e876135ba565b5b5f613e9585828601613608565b9250506020613ea6858286016138ff565b9150509250929050565b5f60208284031215613ec557613ec46135ba565b5b5f613ed284828501613608565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60048110613f1957613f18613edb565b5b50565b5f819050613f2982613f08565b919050565b5f613f3882613f1c565b9050919050565b613f4881613f2e565b82525050565b5f602082019050613f615f830184613f3f565b92915050565b5f8060408385031215613f7d57613f7c6135ba565b5b5f613f8a85828601613608565b9250506020613f9b85828601613608565b9150509250929050565b5f805f805f60a08688031215613fbe57613fbd6135ba565b5b5f613fcb88828901613608565b9550506020613fdc88828901613608565b9450506040613fed8882890161363b565b9350506060613ffe8882890161363b565b925050608086013567ffffffffffffffff81111561401f5761401e6135be565b5b61402b88828901613af9565b9150509295509295909350565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061407c57607f821691505b60208210810361408f5761408e614038565b5b50919050565b5f81905092915050565b5f6140a982613768565b6140b38185614095565b93506140c3818560208601613782565b80840191505092915050565b5f6140da828561409f565b91506140e6828461409f565b91508190509392505050565b5f6040820190506141055f830185613e4a565b6141126020830184613e4a565b9392505050565b7f4f776e657220616c7265616479206d696e7465642e00000000000000000000005f82015250565b5f61414d601583613772565b915061415882614119565b602082019050919050565b5f6020820190508181035f83015261417a81614141565b9050919050565b7f54686520636f6e747261637420697320706175736564000000000000000000005f82015250565b5f6141b5601683613772565b91506141c082614181565b602082019050919050565b5f6020820190508181035f8301526141e2816141a9565b9050919050565b7f596f7520616c7265616479206f776e20612072656164657220746f6b656e2e005f82015250565b5f61421d601f83613772565b9150614228826141e9565b602082019050919050565b5f6020820190508181035f83015261424a81614211565b9050919050565b7f4e6f206d6f72652072656164657220746f6b656e7320746f206d696e742100005f82015250565b5f614285601e83613772565b915061429082614251565b602082019050919050565b5f6020820190508181035f8301526142b281614279565b9050919050565b7f596f75206e65656420746f206265206e6f6d696e6174656420696e206f7264655f8201527f7220746f206d696e7420612072656164657220746f6b656e2e00000000000000602082015250565b5f614313603983613772565b915061431e826142b9565b604082019050919050565b5f6020820190508181035f83015261434081614307565b9050919050565b7f43616e6e6f74206e6f6d696e61746520616e20616464726573732e20596f75205f8201527f646f6e2774206f776e20612072656164657220746f6b656e207965742e000000602082015250565b5f6143a1603d83613772565b91506143ac82614347565b604082019050919050565b5f6020820190508181035f8301526143ce81614395565b9050919050565b7f596f7520616c7265616479206e6f6d696e617465642061206d6178696d756d205f8201527f6f662033206e6f6d696e6565732e000000000000000000000000000000000000602082015250565b5f61442f602e83613772565b915061443a826143d5565b604082019050919050565b5f6020820190508181035f83015261445c81614423565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f412063686f73656e206e6f6d696e656520697320696e656c696769626c6520285f8201527f616c7265616479206e6f6d696e6174656420627920736f6d656f6e6520656c7360208201527f652c2068617320616c7265616479206d696e746564206f7220616c726561647960408201527f206a6f696e656420612063726577290000000000000000000000000000000000606082015250565b5f614536606f83613772565b915061454182614490565b608082019050919050565b5f6020820190508181035f8301526145638161452a565b9050919050565b5f60408201905061457d5f83018561368d565b61458a602083018461368d565b9392505050565b5f82905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026145f77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826145bc565b61460186836145bc565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61463c6146376146328461361c565b614619565b61361c565b9050919050565b5f819050919050565b61465583614622565b61466961466182614643565b8484546145c8565b825550505050565b5f90565b61467d614671565b61468881848461464c565b505050565b5b818110156146ab576146a05f82614675565b60018101905061468e565b5050565b601f8211156146f0576146c18161459b565b6146ca846145ad565b810160208510156146d9578190505b6146ed6146e5856145ad565b83018261468d565b50505b505050565b5f82821c905092915050565b5f6147105f19846008026146f5565b1980831691505092915050565b5f6147288383614701565b9150826002028217905092915050565b6147428383614591565b67ffffffffffffffff81111561475b5761475a61393e565b5b6147658254614065565b6147708282856146af565b5f601f83116001811461479d575f841561478b578287013590505b614795858261471d565b8655506147fc565b601f1984166147ab8661459b565b5f5b828110156147d2578489013582556001820191506020850194506020810190506147ad565b868310156147ef57848901356147eb601f891682614701565b8355505b6001600288020188555050505b50505050505050565b5f6148108385613772565b935061481d838584613aaa565b614826836137aa565b840190509392505050565b5f6020820190508181035f83015261484a818486614805565b90509392505050565b7f496e656c696769626c6520637265772069642e000000000000000000000000005f82015250565b5f614887601383613772565b915061489282614853565b602082019050919050565b5f6020820190508181035f8301526148b48161487b565b9050919050565b7f43616e6e6f74206a6f696e20637265772e20596f7520616c7265616479206a6f5f8201527f696e6564206120637265772e0000000000000000000000000000000000000000602082015250565b5f614915602c83613772565b9150614920826148bb565b604082019050919050565b5f6020820190508181035f83015261494281614909565b9050919050565b7f43616e6e6f74206a6f696e20637265772e20596f7520646f6e2774206f776e205f8201527f612072656164657220746f6b656e207965742e00000000000000000000000000602082015250565b5f6149a3603383613772565b91506149ae82614949565b604082019050919050565b5f6020820190508181035f8301526149d081614997565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f614a0e8261361c565b9150614a198361361c565b9250828203905081811115614a3157614a306149d7565b5b92915050565b7f4372657720697320616c726561647920636f6d706c6574652e000000000000005f82015250565b5f614a6b601983613772565b9150614a7682614a37565b602082019050919050565b5f6020820190508181035f830152614a9881614a5f565b9050919050565b5f614aa98261361c565b9150614ab48361361c565b9250828202614ac28161361c565b91508282048414831517614ad957614ad86149d7565b5b5092915050565b7f596f752063616e6e6f74207472616e73666572206120746f6b656e206265666f5f8201527f726520616c6c206372657773206172652066756c6c79206a6f696e656420286160208201527f6c6c20657373617920746f6b656e7320617265206d696e746564292100000000604082015250565b5f614b60605c83613772565b9150614b6b82614ae0565b606082019050919050565b5f6020820190508181035f830152614b8d81614b54565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b614bca82613768565b67ffffffffffffffff811115614be357614be261393e565b5b614bed8254614065565b614bf88282856146af565b5f60209050601f831160018114614c29575f8415614c17578287015190505b614c21858261471d565b865550614c88565b601f198416614c378661459b565b5f5b82811015614c5e57848901518255600182019150602085019450602081019050614c39565b86831015614c7b5784890151614c77601f891682614701565b8355505b6001600288020188555050505b505050505050565b5f614c9a8261361c565b9150614ca58361361c565b9250828201905080821115614cbd57614cbc6149d7565b5b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f614ce782614cc3565b614cf18185614ccd565b9350614d01818560208601613782565b614d0a816137aa565b840191505092915050565b5f60a082019050614d285f830188613e4a565b614d356020830187613e4a565b614d42604083018661368d565b614d4f606083018561368d565b8181036080830152614d618184614cdd565b90509695505050505050565b5f81519050614d7b816136e0565b92915050565b5f60208284031215614d9657614d956135ba565b5b5f614da384828501614d6d565b91505092915050565b5f60a082019050614dbf5f830188613e4a565b614dcc6020830187613e4a565b8181036040830152614dde8186613dce565b90508181036060830152614df28185613dce565b90508181036080830152614e068184614cdd565b90509695505050505050565b5f608082019050614e255f830187613e4a565b614e32602083018661368d565b614e3f604083018561368d565b614e4c606083018461368d565b95945050505050565b5f6040820190508181035f830152614e6d8185613dce565b90508181036020830152614e818184613dce565b9050939250505056fea2646970667358221220ec9b09b959e2b7714b11bcbf783f3aa772a93d217fc48f39a69742c51115067e64736f6c63430008180033697066733a2f2f516d565166416273364a7739365a61366f674d384a38363537416932394b597052664177574a5078487a67464b71697066733a2f2f516d513875454e314a67754843357973637236466b4636576e6141684544794a696d6d4a6d743332374a433274712f
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106101d7575f3560e01c80638da5cb5b11610102578063defcda0f116100a0578063f242432a1161006f578063f242432a14610563578063f2b0498f1461057f578063f2dcda5c146105af578063f2fde38b146105cd576101d7565b8063defcda0f146104b5578063e5050777146104e5578063e8a3d48514610515578063e985e9c514610533576101d7565b8063a4b76e1f116100dc578063a4b76e1f1461041b578063b48b70ca14610439578063bd85b03914610469578063c6f9118114610499576101d7565b80638da5cb5b146103c5578063938e3d7b146103e3578063a22cb465146103ff576101d7565b806318160ddd1161017a57806349606c841161014957806349606c841461033f5780634e1273f41461035b5780634f558e791461038b578063715018a6146103bb576101d7565b806318160ddd146102df5780632eb2c2d6146102fd5780634041cd4d146103195780634935195d14610335576101d7565b806306fdde03116101b657806306fdde03146102595780630e89341c146102775780631130630c146102a757806316c38b3c146102c3576101d7565b8062fdd58e146101db57806301ffc9a71461020b57806304ad2d871461023b575b5f80fd5b6101f560048036038101906101f0919061364f565b6105e9565b604051610202919061369c565b60405180910390f35b6102256004803603810190610220919061370a565b61063e565b604051610232919061374f565b60405180910390f35b61024361071f565b604051610250919061369c565b60405180910390f35b610261610724565b60405161026e91906137f2565b60405180910390f35b610291600480360381019061028c9190613812565b6107b0565b60405161029e91906137f2565b60405180910390f35b6102c160048036038101906102bc919061389e565b6107f0565b005b6102dd60048036038101906102d89190613913565b610848565b005b6102e761086c565b6040516102f4919061369c565b60405180910390f35b61031760048036038101906103129190613b26565b610875565b005b610333600480360381019061032e9190613812565b61091c565b005b61033d610be3565b005b61035960048036038101906103549190613c12565b610ee2565b005b61037560048036038101906103709190613cfd565b6112e3565b6040516103829190613e2a565b60405180910390f35b6103a560048036038101906103a09190613812565b6113ea565b6040516103b2919061374f565b60405180910390f35b6103c36113fd565b005b6103cd611410565b6040516103da9190613e59565b60405180910390f35b6103fd60048036038101906103f8919061389e565b611438565b005b61041960048036038101906104149190613e72565b61148f565b005b6104236114a5565b604051610430919061369c565b60405180910390f35b610453600480360381019061044e919061364f565b6114aa565b6040516104609190613e59565b60405180910390f35b610483600480360381019061047e9190613812565b6114e7565b604051610490919061369c565b60405180910390f35b6104b360048036038101906104ae9190613812565b611501565b005b6104cf60048036038101906104ca9190613eb0565b611923565b6040516104dc9190613f4e565b60405180910390f35b6104ff60048036038101906104fa9190613eb0565b611940565b60405161050c919061369c565b60405180910390f35b61051d611955565b60405161052a91906137f2565b60405180910390f35b61054d60048036038101906105489190613f67565b6119e5565b60405161055a919061374f565b60405180910390f35b61057d60048036038101906105789190613fa5565b611a73565b005b61059960048036038101906105949190613eb0565b6120c8565b6040516105a6919061369c565b60405180910390f35b6105b76120dd565b6040516105c4919061369c565b60405180910390f35b6105e760048036038101906105e29190613eb0565b6120e2565b005b5f805f8381526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f7fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061070857507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610718575061071782612166565b5b9050919050565b609681565b600e805461073190614065565b80601f016020809104026020016040519081016040528092919081815260200182805461075d90614065565b80156107a85780601f1061077f576101008083540402835291602001916107a8565b820191905f5260205f20905b81548152906001019060200180831161078b57829003601f168201915b505050505081565b60605f6107bc836121cf565b9050806107c884612261565b6040516020016107d99291906140cf565b604051602081830303815290604052915050919050565b6107f861232b565b61084482828080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f820116905080830192505050505050506123b2565b5050565b61085061232b565b80600d5f6101000a81548160ff02191690831515021790555050565b5f600454905090565b5f61087e6123c5565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141580156108c357506108c186826119e5565b155b156109075780866040517fe237d9220000000000000000000000000000000000000000000000000000000081526004016108fe9291906140f2565b60405180910390fd5b61091486868686866123cc565b505050505050565b61092461232b565b5f610937610930611410565b60016105e9565b14610977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096e90614163565b60405180910390fd5b5f600290505b6008811015610a4657803373ffffffffffffffffffffffffffffffffffffffff167ffd71a1ff9a9f64c9d5ae6eabb827f4cf2f1fbf83da684592f87cbdaf0bb9defc60405160405180910390a3600b5f8154600101919050819055506109fb6109e4611410565b82600160405180602001604052805f8152506124c0565b6006610a06826114e7565b03610a3957807f53d4b21103e83b1822f5eff2caed5bed34032e16fcf1eb28064620f4e6f3656e60405160405180910390a25b808060010191505061097d565b50600360065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690836003811115610aa757610aa6613edb565b5b0217905550600380811115610abf57610abe613edb565b5b3373ffffffffffffffffffffffffffffffffffffffff167f91cc0b28b399b7784ad6347634f7c2fb7a5409e53a64263bde60759c4c106e2960405160405180910390a3610b24610b0d611410565b60018360405180602001604052805f8152506124c0565b600160065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690836003811115610b8457610b83613edb565b5b021790555060016003811115610b9d57610b9c613edb565b5b3373ffffffffffffffffffffffffffffffffffffffff167f91cc0b28b399b7784ad6347634f7c2fb7a5409e53a64263bde60759c4c106e2960405160405180910390a350565b600d5f9054906101000a900460ff1615610c32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c29906141cb565b60405180910390fd5b5f610c3e3360016105e9565b14610c7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7590614233565b60405180910390fd5b6096610c8a60016114e7565b10610cca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc19061429b565b60405180910390fd5b601e600a5410610d855760026003811115610ce857610ce7613edb565b5b60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166003811115610d4457610d43613edb565b5b14610d84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7b90614329565b60405180910390fd5b5b5f6003811115610d9857610d97613edb565b5b60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166003811115610df457610df3613edb565b5b03610e0957600a5f8154600101919050819055505b600160065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690836003811115610e6957610e68613edb565b5b021790555060016003811115610e8257610e81613edb565b5b3373ffffffffffffffffffffffffffffffffffffffff167f91cc0b28b399b7784ad6347634f7c2fb7a5409e53a64263bde60759c4c106e2960405160405180910390a3610ee03360018060405180602001604052805f8152506124c0565b565b600d5f9054906101000a900460ff1615610f31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f28906141cb565b60405180910390fd5b60016003811115610f4557610f44613edb565b5b60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166003811115610fa157610fa0613edb565b5b14806110195750600380811115610fbb57610fba613edb565b5b60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16600381111561101757611016613edb565b5b145b611058576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104f906143b7565b60405180910390fd5b5f60085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050600381106110dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d390614445565b60405180910390fd5b5f5b600381101561129c575f73ffffffffffffffffffffffffffffffffffffffff1683826003811061111157611110614463565b5b6020020160208101906111249190613eb0565b73ffffffffffffffffffffffffffffffffffffffff16031561128f575f600381111561115357611152613edb565b5b60065f85846003811061116957611168614463565b5b60200201602081019061117c9190613eb0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1660038111156111d4576111d3613edb565b5b14611214576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120b9061454c565b60405180910390fd5b816001019150600382111561125e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125590614445565b60405180910390fd5b61128e338285846003811061127657611275614463565b5b6020020160208101906112899190613eb0565b612555565b5b80806001019150506110de565b508060085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505050565b6060815183511461132f57815183516040517f5b05999100000000000000000000000000000000000000000000000000000000815260040161132692919061456a565b60405180910390fd5b5f835167ffffffffffffffff81111561134b5761134a61393e565b5b6040519080825280602002602001820160405280156113795781602001602082028036833780820191505090505b5090505f5b84518110156113df576113b561139d82876126fa90919063ffffffff16565b6113b0838761270d90919063ffffffff16565b6105e9565b8282815181106113c8576113c7614463565b5b60200260200101818152505080600101905061137e565b508091505092915050565b5f806113f5836114e7565b119050919050565b61140561232b565b61140e5f612720565b565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61144061232b565b8181600c9182611451929190614738565b507f905d981207a7d0b6c62cc46ab0be2a076d0298e4a86d0ab79882dbd01ac373788282604051611483929190614831565b60405180910390a15050565b6114a161149a6123c5565b83836127e3565b5050565b601e81565b6009602052815f5260405f20602052805f5260405f205f915091509054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60035f8381526020019081526020015f20549050919050565b600d5f9054906101000a900460ff1615611550576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611547906141cb565b60405180910390fd5b60028110158015611562575060078111155b6115a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115989061489d565b60405180910390fd5b6003808111156115b4576115b3613edb565b5b60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1660038111156116105761160f613edb565b5b03611650576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116479061492b565b60405180910390fd5b6001600381111561166457611663613edb565b5b60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1660038111156116c0576116bf613edb565b5b14611700576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f7906149b9565b60405180910390fd5b5f61171261170c611410565b836105e9565b61171b836114e7565b6117259190614a04565b9050600160066117359190614a04565b8110611776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176d90614a81565b60405180910390fd5b600360065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908360038111156117d6576117d5613edb565b5b02179055506003808111156117ee576117ed613edb565b5b3373ffffffffffffffffffffffffffffffffffffffff167f91cc0b28b399b7784ad6347634f7c2fb7a5409e53a64263bde60759c4c106e2960405160405180910390a38160075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550813373ffffffffffffffffffffffffffffffffffffffff167ffd71a1ff9a9f64c9d5ae6eabb827f4cf2f1fbf83da684592f87cbdaf0bb9defc60405160405180910390a3600b5f8154600101919050819055506118e13383600160405180602001604052805f8152506124c0565b60066118ec836114e7565b0361191f57817f53d4b21103e83b1822f5eff2caed5bed34032e16fcf1eb28064620f4e6f3656e60405160405180910390a25b5050565b6006602052805f5260405f205f915054906101000a900460ff1681565b6008602052805f5260405f205f915090505481565b6060600c805461196490614065565b80601f016020809104026020016040519081016040528092919081815260200182805461199090614065565b80156119db5780601f106119b2576101008083540402835291602001916119db565b820191905f5260205f20905b8154815290600101906020018083116119be57829003601f168201915b5050505050905090565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b611a7b611410565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614611aff57600680611aba9190614a9f565b600b541015611afe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af590614b76565b60405180910390fd5b5b611b0c858585858561294c565b60065f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1660065f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690836003811115611bb457611bb3613edb565b5b021790555060065f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166003811115611c1557611c14613edb565b5b8473ffffffffffffffffffffffffffffffffffffffff167f91cc0b28b399b7784ad6347634f7c2fb7a5409e53a64263bde60759c4c106e2960405160405180910390a3611c60611410565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146120c157600160075f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20541115611dd95760075f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205460075f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060075f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20548473ffffffffffffffffffffffffffffffffffffffff167ffd71a1ff9a9f64c9d5ae6eabb827f4cf2f1fbf83da684592f87cbdaf0bb9defc60405160405180910390a35b5f60065f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690836003811115611e3857611e37613edb565b5b02179055505f6003811115611e5057611e4f613edb565b5b8573ffffffffffffffffffffffffffffffffffffffff167f91cc0b28b399b7784ad6347634f7c2fb7a5409e53a64263bde60759c4c106e2960405160405180910390a360085f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205460085f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f60085f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f5b818110156120be575f60095f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508060095f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f41ab238d8086c9757f18d383b4e864a7cd52d584a4d7bbeaa3c669cfec288d3d60405160405180910390a3508080600101915050611f55565b50505b5050505050565b6007602052805f5260405f205f915090505481565b600681565b6120ea61232b565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361215a575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016121519190613e59565b60405180910390fd5b61216381612720565b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600280546121de90614065565b80601f016020809104026020016040519081016040528092919081815260200182805461220a90614065565b80156122555780601f1061222c57610100808354040283529160200191612255565b820191905f5260205f20905b81548152906001019060200180831161223857829003601f168201915b50505050509050919050565b60605f600161226f846129f3565b0190505f8167ffffffffffffffff81111561228d5761228c61393e565b5b6040519080825280601f01601f1916602001820160405280156122bf5781602001600182028036833780820191505090505b5090505f82602001820190505b600115612320578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161231557612314614b94565b5b0494505f85036122cc575b819350505050919050565b6123336123c5565b73ffffffffffffffffffffffffffffffffffffffff16612351611410565b73ffffffffffffffffffffffffffffffffffffffff16146123b0576123746123c5565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016123a79190613e59565b60405180910390fd5b565b80600290816123c19190614bc1565b5050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361243c575f6040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016124339190613e59565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036124ac575f6040517f01a835140000000000000000000000000000000000000000000000000000000081526004016124a39190613e59565b60405180910390fd5b6124b98585858585612b44565b5050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612530575f6040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016125279190613e59565b60405180910390fd5b5f8061253c8585612bf0565b9150915061254d5f87848487612b44565b505050505050565b8060095f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083600381111561263f5761263e613edb565b5b02179055506002600381111561265857612657613edb565b5b8173ffffffffffffffffffffffffffffffffffffffff167f91cc0b28b399b7784ad6347634f7c2fb7a5409e53a64263bde60759c4c106e2960405160405180910390a38073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f41ab238d8086c9757f18d383b4e864a7cd52d584a4d7bbeaa3c669cfec288d3d60405160405180910390a3505050565b5f60208202602084010151905092915050565b5f60208202602084010151905092915050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612853575f6040517fced3e10000000000000000000000000000000000000000000000000000000000815260040161284a9190613e59565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161293f919061374f565b60405180910390a3505050565b5f6129556123c5565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415801561299a575061299886826119e5565b155b156129de5780866040517fe237d9220000000000000000000000000000000000000000000000000000000081526004016129d59291906140f2565b60405180910390fd5b6129eb8686868686612c20565b505050505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612a4f577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612a4557612a44614b94565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612a8c576d04ee2d6d415b85acef81000000008381612a8257612a81614b94565b5b0492506020810190505b662386f26fc100008310612abb57662386f26fc100008381612ab157612ab0614b94565b5b0492506010810190505b6305f5e1008310612ae4576305f5e1008381612ada57612ad9614b94565b5b0492506008810190505b6127108310612b09576127108381612aff57612afe614b94565b5b0492506004810190505b60648310612b2c5760648381612b2257612b21614b94565b5b0492506002810190505b600a8310612b3b576001810190505b80915050919050565b612b5085858585612d26565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612be9575f612b8c6123c5565b90506001845103612bd8575f612bab5f8661270d90919063ffffffff16565b90505f612bc15f8661270d90919063ffffffff16565b9050612bd1838989858589612ec3565b5050612be7565b612be6818787878787613072565b5b505b5050505050565b60608060405191506001825283602083015260408201905060018152826020820152604081016040529250929050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612c90575f6040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401612c879190613e59565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612d00575f6040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612cf79190613e59565b60405180910390fd5b5f80612d0c8585612bf0565b91509150612d1d8787848487612b44565b50505050505050565b612d3284848484613221565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612e05575f805b8351811015612dea575f838281518110612d8557612d84614463565b5b602002602001015190508060035f878581518110612da657612da5614463565b5b602002602001015181526020019081526020015f205f828254612dc99190614c90565b925050819055508083612ddc9190614c90565b925050806001019050612d68565b508060045f828254612dfc9190614c90565b92505081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612ebd575f805b8351811015612eab575f838281518110612e5857612e57614463565b5b602002602001015190508060035f878581518110612e7957612e78614463565b5b602002602001015181526020019081526020015f205f8282540392505081905550808301925050806001019050612e3b565b508060045f8282540392505081905550505b50505050565b5f8473ffffffffffffffffffffffffffffffffffffffff163b111561306a578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612f23959493929190614d15565b6020604051808303815f875af1925050508015612f5e57506040513d601f19601f82011682018060405250810190612f5b9190614d81565b60015b612fdf573d805f8114612f8c576040519150601f19603f3d011682016040523d82523d5f602084013e612f91565b606091505b505f815103612fd757846040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401612fce9190613e59565b60405180910390fd5b805181602001fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461306857846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161305f9190613e59565b60405180910390fd5b505b505050505050565b5f8473ffffffffffffffffffffffffffffffffffffffff163b1115613219578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016130d2959493929190614dac565b6020604051808303815f875af192505050801561310d57506040513d601f19601f8201168201806040525081019061310a9190614d81565b60015b61318e573d805f811461313b576040519150601f19603f3d011682016040523d82523d5f602084013e613140565b606091505b505f81510361318657846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161317d9190613e59565b60405180910390fd5b805181602001fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461321757846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161320e9190613e59565b60405180910390fd5b505b505050505050565b805182511461326b57815181516040517f5b05999100000000000000000000000000000000000000000000000000000000815260040161326292919061456a565b60405180910390fd5b5f6132746123c5565b90505f5b8351811015613470575f613295828661270d90919063ffffffff16565b90505f6132ab838661270d90919063ffffffff16565b90505f73ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16146133ce575f805f8481526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561337a57888183856040517f03dee4c50000000000000000000000000000000000000000000000000000000081526004016133719493929190614e12565b60405180910390fd5b8181035f808581526020019081526020015f205f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161461346357805f808481526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461345b9190614c90565b925050819055505b5050806001019050613278565b50600183510361352b575f61348e5f8561270d90919063ffffffff16565b90505f6134a45f8561270d90919063ffffffff16565b90508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62858560405161351c92919061456a565b60405180910390a450506135aa565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516135a1929190614e55565b60405180910390a45b5050505050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6135eb826135c2565b9050919050565b6135fb816135e1565b8114613605575f80fd5b50565b5f81359050613616816135f2565b92915050565b5f819050919050565b61362e8161361c565b8114613638575f80fd5b50565b5f8135905061364981613625565b92915050565b5f8060408385031215613665576136646135ba565b5b5f61367285828601613608565b92505060206136838582860161363b565b9150509250929050565b6136968161361c565b82525050565b5f6020820190506136af5f83018461368d565b92915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6136e9816136b5565b81146136f3575f80fd5b50565b5f81359050613704816136e0565b92915050565b5f6020828403121561371f5761371e6135ba565b5b5f61372c848285016136f6565b91505092915050565b5f8115159050919050565b61374981613735565b82525050565b5f6020820190506137625f830184613740565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561379f578082015181840152602081019050613784565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6137c482613768565b6137ce8185613772565b93506137de818560208601613782565b6137e7816137aa565b840191505092915050565b5f6020820190508181035f83015261380a81846137ba565b905092915050565b5f60208284031215613827576138266135ba565b5b5f6138348482850161363b565b91505092915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261385e5761385d61383d565b5b8235905067ffffffffffffffff81111561387b5761387a613841565b5b60208301915083600182028301111561389757613896613845565b5b9250929050565b5f80602083850312156138b4576138b36135ba565b5b5f83013567ffffffffffffffff8111156138d1576138d06135be565b5b6138dd85828601613849565b92509250509250929050565b6138f281613735565b81146138fc575f80fd5b50565b5f8135905061390d816138e9565b92915050565b5f60208284031215613928576139276135ba565b5b5f613935848285016138ff565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b613974826137aa565b810181811067ffffffffffffffff821117156139935761399261393e565b5b80604052505050565b5f6139a56135b1565b90506139b1828261396b565b919050565b5f67ffffffffffffffff8211156139d0576139cf61393e565b5b602082029050602081019050919050565b5f6139f36139ee846139b6565b61399c565b90508083825260208201905060208402830185811115613a1657613a15613845565b5b835b81811015613a3f5780613a2b888261363b565b845260208401935050602081019050613a18565b5050509392505050565b5f82601f830112613a5d57613a5c61383d565b5b8135613a6d8482602086016139e1565b91505092915050565b5f80fd5b5f67ffffffffffffffff821115613a9457613a9361393e565b5b613a9d826137aa565b9050602081019050919050565b828183375f83830152505050565b5f613aca613ac584613a7a565b61399c565b905082815260208101848484011115613ae657613ae5613a76565b5b613af1848285613aaa565b509392505050565b5f82601f830112613b0d57613b0c61383d565b5b8135613b1d848260208601613ab8565b91505092915050565b5f805f805f60a08688031215613b3f57613b3e6135ba565b5b5f613b4c88828901613608565b9550506020613b5d88828901613608565b945050604086013567ffffffffffffffff811115613b7e57613b7d6135be565b5b613b8a88828901613a49565b935050606086013567ffffffffffffffff811115613bab57613baa6135be565b5b613bb788828901613a49565b925050608086013567ffffffffffffffff811115613bd857613bd76135be565b5b613be488828901613af9565b9150509295509295909350565b5f81905082602060030282011115613c0c57613c0b613845565b5b92915050565b5f60608284031215613c2757613c266135ba565b5b5f613c3484828501613bf1565b91505092915050565b5f67ffffffffffffffff821115613c5757613c5661393e565b5b602082029050602081019050919050565b5f613c7a613c7584613c3d565b61399c565b90508083825260208201905060208402830185811115613c9d57613c9c613845565b5b835b81811015613cc65780613cb28882613608565b845260208401935050602081019050613c9f565b5050509392505050565b5f82601f830112613ce457613ce361383d565b5b8135613cf4848260208601613c68565b91505092915050565b5f8060408385031215613d1357613d126135ba565b5b5f83013567ffffffffffffffff811115613d3057613d2f6135be565b5b613d3c85828601613cd0565b925050602083013567ffffffffffffffff811115613d5d57613d5c6135be565b5b613d6985828601613a49565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613da58161361c565b82525050565b5f613db68383613d9c565b60208301905092915050565b5f602082019050919050565b5f613dd882613d73565b613de28185613d7d565b9350613ded83613d8d565b805f5b83811015613e1d578151613e048882613dab565b9750613e0f83613dc2565b925050600181019050613df0565b5085935050505092915050565b5f6020820190508181035f830152613e428184613dce565b905092915050565b613e53816135e1565b82525050565b5f602082019050613e6c5f830184613e4a565b92915050565b5f8060408385031215613e8857613e876135ba565b5b5f613e9585828601613608565b9250506020613ea6858286016138ff565b9150509250929050565b5f60208284031215613ec557613ec46135ba565b5b5f613ed284828501613608565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60048110613f1957613f18613edb565b5b50565b5f819050613f2982613f08565b919050565b5f613f3882613f1c565b9050919050565b613f4881613f2e565b82525050565b5f602082019050613f615f830184613f3f565b92915050565b5f8060408385031215613f7d57613f7c6135ba565b5b5f613f8a85828601613608565b9250506020613f9b85828601613608565b9150509250929050565b5f805f805f60a08688031215613fbe57613fbd6135ba565b5b5f613fcb88828901613608565b9550506020613fdc88828901613608565b9450506040613fed8882890161363b565b9350506060613ffe8882890161363b565b925050608086013567ffffffffffffffff81111561401f5761401e6135be565b5b61402b88828901613af9565b9150509295509295909350565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061407c57607f821691505b60208210810361408f5761408e614038565b5b50919050565b5f81905092915050565b5f6140a982613768565b6140b38185614095565b93506140c3818560208601613782565b80840191505092915050565b5f6140da828561409f565b91506140e6828461409f565b91508190509392505050565b5f6040820190506141055f830185613e4a565b6141126020830184613e4a565b9392505050565b7f4f776e657220616c7265616479206d696e7465642e00000000000000000000005f82015250565b5f61414d601583613772565b915061415882614119565b602082019050919050565b5f6020820190508181035f83015261417a81614141565b9050919050565b7f54686520636f6e747261637420697320706175736564000000000000000000005f82015250565b5f6141b5601683613772565b91506141c082614181565b602082019050919050565b5f6020820190508181035f8301526141e2816141a9565b9050919050565b7f596f7520616c7265616479206f776e20612072656164657220746f6b656e2e005f82015250565b5f61421d601f83613772565b9150614228826141e9565b602082019050919050565b5f6020820190508181035f83015261424a81614211565b9050919050565b7f4e6f206d6f72652072656164657220746f6b656e7320746f206d696e742100005f82015250565b5f614285601e83613772565b915061429082614251565b602082019050919050565b5f6020820190508181035f8301526142b281614279565b9050919050565b7f596f75206e65656420746f206265206e6f6d696e6174656420696e206f7264655f8201527f7220746f206d696e7420612072656164657220746f6b656e2e00000000000000602082015250565b5f614313603983613772565b915061431e826142b9565b604082019050919050565b5f6020820190508181035f83015261434081614307565b9050919050565b7f43616e6e6f74206e6f6d696e61746520616e20616464726573732e20596f75205f8201527f646f6e2774206f776e20612072656164657220746f6b656e207965742e000000602082015250565b5f6143a1603d83613772565b91506143ac82614347565b604082019050919050565b5f6020820190508181035f8301526143ce81614395565b9050919050565b7f596f7520616c7265616479206e6f6d696e617465642061206d6178696d756d205f8201527f6f662033206e6f6d696e6565732e000000000000000000000000000000000000602082015250565b5f61442f602e83613772565b915061443a826143d5565b604082019050919050565b5f6020820190508181035f83015261445c81614423565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f412063686f73656e206e6f6d696e656520697320696e656c696769626c6520285f8201527f616c7265616479206e6f6d696e6174656420627920736f6d656f6e6520656c7360208201527f652c2068617320616c7265616479206d696e746564206f7220616c726561647960408201527f206a6f696e656420612063726577290000000000000000000000000000000000606082015250565b5f614536606f83613772565b915061454182614490565b608082019050919050565b5f6020820190508181035f8301526145638161452a565b9050919050565b5f60408201905061457d5f83018561368d565b61458a602083018461368d565b9392505050565b5f82905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026145f77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826145bc565b61460186836145bc565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61463c6146376146328461361c565b614619565b61361c565b9050919050565b5f819050919050565b61465583614622565b61466961466182614643565b8484546145c8565b825550505050565b5f90565b61467d614671565b61468881848461464c565b505050565b5b818110156146ab576146a05f82614675565b60018101905061468e565b5050565b601f8211156146f0576146c18161459b565b6146ca846145ad565b810160208510156146d9578190505b6146ed6146e5856145ad565b83018261468d565b50505b505050565b5f82821c905092915050565b5f6147105f19846008026146f5565b1980831691505092915050565b5f6147288383614701565b9150826002028217905092915050565b6147428383614591565b67ffffffffffffffff81111561475b5761475a61393e565b5b6147658254614065565b6147708282856146af565b5f601f83116001811461479d575f841561478b578287013590505b614795858261471d565b8655506147fc565b601f1984166147ab8661459b565b5f5b828110156147d2578489013582556001820191506020850194506020810190506147ad565b868310156147ef57848901356147eb601f891682614701565b8355505b6001600288020188555050505b50505050505050565b5f6148108385613772565b935061481d838584613aaa565b614826836137aa565b840190509392505050565b5f6020820190508181035f83015261484a818486614805565b90509392505050565b7f496e656c696769626c6520637265772069642e000000000000000000000000005f82015250565b5f614887601383613772565b915061489282614853565b602082019050919050565b5f6020820190508181035f8301526148b48161487b565b9050919050565b7f43616e6e6f74206a6f696e20637265772e20596f7520616c7265616479206a6f5f8201527f696e6564206120637265772e0000000000000000000000000000000000000000602082015250565b5f614915602c83613772565b9150614920826148bb565b604082019050919050565b5f6020820190508181035f83015261494281614909565b9050919050565b7f43616e6e6f74206a6f696e20637265772e20596f7520646f6e2774206f776e205f8201527f612072656164657220746f6b656e207965742e00000000000000000000000000602082015250565b5f6149a3603383613772565b91506149ae82614949565b604082019050919050565b5f6020820190508181035f8301526149d081614997565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f614a0e8261361c565b9150614a198361361c565b9250828203905081811115614a3157614a306149d7565b5b92915050565b7f4372657720697320616c726561647920636f6d706c6574652e000000000000005f82015250565b5f614a6b601983613772565b9150614a7682614a37565b602082019050919050565b5f6020820190508181035f830152614a9881614a5f565b9050919050565b5f614aa98261361c565b9150614ab48361361c565b9250828202614ac28161361c565b91508282048414831517614ad957614ad86149d7565b5b5092915050565b7f596f752063616e6e6f74207472616e73666572206120746f6b656e206265666f5f8201527f726520616c6c206372657773206172652066756c6c79206a6f696e656420286160208201527f6c6c20657373617920746f6b656e7320617265206d696e746564292100000000604082015250565b5f614b60605c83613772565b9150614b6b82614ae0565b606082019050919050565b5f6020820190508181035f830152614b8d81614b54565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b614bca82613768565b67ffffffffffffffff811115614be357614be261393e565b5b614bed8254614065565b614bf88282856146af565b5f60209050601f831160018114614c29575f8415614c17578287015190505b614c21858261471d565b865550614c88565b601f198416614c378661459b565b5f5b82811015614c5e57848901518255600182019150602085019450602081019050614c39565b86831015614c7b5784890151614c77601f891682614701565b8355505b6001600288020188555050505b505050505050565b5f614c9a8261361c565b9150614ca58361361c565b9250828201905080821115614cbd57614cbc6149d7565b5b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f614ce782614cc3565b614cf18185614ccd565b9350614d01818560208601613782565b614d0a816137aa565b840191505092915050565b5f60a082019050614d285f830188613e4a565b614d356020830187613e4a565b614d42604083018661368d565b614d4f606083018561368d565b8181036080830152614d618184614cdd565b90509695505050505050565b5f81519050614d7b816136e0565b92915050565b5f60208284031215614d9657614d956135ba565b5b5f614da384828501614d6d565b91505092915050565b5f60a082019050614dbf5f830188613e4a565b614dcc6020830187613e4a565b8181036040830152614dde8186613dce565b90508181036060830152614df28185613dce565b90508181036080830152614e068184614cdd565b90509695505050505050565b5f608082019050614e255f830187613e4a565b614e32602083018661368d565b614e3f604083018561368d565b614e4c606083018461368d565b95945050505050565b5f6040820190508181035f830152614e6d8185613dce565b90508181036020830152614e818184613dce565b9050939250505056fea2646970667358221220ec9b09b959e2b7714b11bcbf783f3aa772a93d217fc48f39a69742c51115067e64736f6c63430008180033
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.