Feature Tip: Add private address tag to any address under My Name Tag !
NFT
Overview
TokenID
646
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
Nefturians
Compiler Version
v0.8.11+commit.d7f03943
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.11; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../libraries/ECDSALibrary.sol"; import "../libraries/MerkleProofLibrary.sol"; import "../interfaces/INefturians.sol"; import "../interfaces/INefturiansArtifact.sol"; import "../interfaces/INefturiansData.sol"; import "./AccessControl.sol"; import "./ERC721A.sol"; import "./NefturiansArtifact.sol"; import "./NefturiansData.sol"; /**********************************************************************************************************************/ /* */ /* Nefturians */ /* */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN...NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN........NNNNNNNNNNNNNNNNNNN.......NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN...........NNNNNNNNNNNNNNNN.........NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNN...............NNNNNNNNNNNN............NNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNN.................NNNNNNNNNNN.............NNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNN...................NNNNNNNNNNN..............NNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNN.....................NNNNNNNNNNN..............NNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNN.......................NNNNNNNNNNN..............NNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNN..........................NNNNNNNNNN..............NNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNN.............................NNNNNNNNNN.............NNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNN............NNNN...............NNNNNNNNNN.............NNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNN............NNNNNN...............NNNNNNNNNN.............NNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNN.............NNNNNNNN...............NNNNNNNNNN.............NNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNN.............NNNNNNNNNN..............NNNNNNNNNN............NNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNN.............NNNNNNNNNN..............NNNNNNNN.............NNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNN.............NNNNNNNNNN...............NNNNN.............NNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNN..............NNNNNNNNNN...............NNN.............NNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNN.............NNNNNNNNNN............................NNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNN..............NNNNNNNNN..........................NNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNN..............NNNNNNNNN........................NNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNN..............NNNNNNNNNN.....................NNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNN..............NNNNNNNNNNN..................NNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNN..............NNNNNNNNNNN................NNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNN...........NNNNNNNNNNNNN..............NNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN.........NNNNNNNNNNNNNNNN...........NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN.......NNNNNNNNNNNNNNNNNNN........NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN.NNNNNNNNNNNNNNNNNNNNNNNNNN.NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* */ /* */ /* */ /**********************************************************************************************************************/ contract Nefturians is ERC721A, Ownable, AccessControl, Pausable, INefturians { /** * Base URI for offchain metadata */ string private _baseTokenURI; /** * Roles used for access control */ bytes32 internal constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 internal constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); bytes32 internal constant DAO_ROLE = keccak256("DAO_ROLE"); bytes32 internal constant SIGNER_ROLE = keccak256("SIGNER_ROLE"); bytes32 internal constant METADATA_ROLE = keccak256("METADATA_ROLE"); bytes32 internal constant DATA_CONTRACT_ROLE = keccak256("DATA_CONTRACT_ROLE"); bytes32 internal constant ARTIFACT_CONTRACT_ROLE = keccak256("ARTIFACT_CONTRACT_ROLE"); bytes32 internal constant URI_ROLE = keccak256("URI_ROLE"); /** * Minting rules and supplies */ uint256 internal constant MAX_SUPPLY = 8001; uint256 internal constant TOKENS_RESERVED = 250; uint256 internal constant MINTING_PRICE = 0.15 ether; uint256 internal constant MAX_PUBLIC_MINT = 5; uint256 internal constant MAX_WHITELIST_MINT = 2; /** * Sale calendar */ uint256 internal preSaleStartTimestamp = 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe; uint256 internal publicSaleStartTimestamp = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff; /** * Minting state used to enforce aforementioned rules */ uint256 internal reservedTokensMinted = 0; mapping(address => uint256) private nonces; mapping(address => uint256) public whitelistClaimed; mapping(address => uint256) public publicClaimed; /** * Root hash for the whitelist merkle tree */ bytes32 public merkleRoot; /** * Payment distribution and addresses */ uint256 internal totalShares = 1000; uint256 internal totalReleased; mapping(address => uint256) internal released; mapping(address => uint256) internal shares; address internal gnosisSafe = 0x9Ba52109EdA0B6aFB60f0c98265a7457d1b47763; address internal CEO = 0x741572cee2Cc991DBC142F0910e9f47A3871c110; address internal CTO = 0x5712dABA01D33b323D5130cA6c48E11427d675B2; address internal COO = 0x657C9FDe093e08fe976686f4b68FaAC57fBF8bbE; address internal CMO = 0xA944E23Fc61D57502bfBf8dFa358Aadeb5ADB64C; address internal Dev = 0x9Eb3a30117810d5a36568714EB5350480942f644; address internal Advisor = 0x1DbBEc72Fc72406851aB9d42c18dc52aBEbBB287; /** * Side contracts */ INefturianArtifact internal nefturiansArtifacts; INefturiansData internal nefturiansData; /** * Provably fair metadata will respect this hash * * To ensure fair disitrubution of attributes among the tokens, the 8001 attributes objects will be published * in their original order and hashed into the provableFairnessHash public variable. * * Before revealing the metadata, random numbers provided by the community will be hashed together to ensure * a fair random shuffling of that order before the reveal. */ string public provableFairnessHash; constructor() ERC721A("Nefturians", "NFTR") { nefturiansArtifacts = new NefturiansArtifact(); nefturiansData = new NefturiansData(); _grantRole(DEFAULT_ADMIN_ROLE, gnosisSafe); _grantRole(MINTER_ROLE, gnosisSafe); _grantRole(PAUSER_ROLE, gnosisSafe); _grantRole(DAO_ROLE, gnosisSafe); _grantRole(SIGNER_ROLE, gnosisSafe); _grantRole(URI_ROLE, gnosisSafe); _grantRole(URI_ROLE, msg.sender); _grantRole(METADATA_ROLE, gnosisSafe); _grantRole(METADATA_ROLE, address(nefturiansData)); _grantRole(METADATA_ROLE, address(nefturiansArtifacts)); _grantRole(DATA_CONTRACT_ROLE, address(nefturiansData)); _grantRole(ARTIFACT_CONTRACT_ROLE, address(nefturiansArtifacts)); _grantRole(MINTER_ROLE, address(this)); nefturiansArtifacts.transferOwnership(gnosisSafe); shares[gnosisSafe] = 872; shares[CEO] = 27; shares[CTO] = 27; shares[COO] = 27; shares[CMO] = 27; shares[Dev] = 10; shares[Advisor] = 10; require( shares[gnosisSafe] + shares[CEO] + shares[CTO] + shares[COO] + shares[CMO] + shares[Dev] + shares[Advisor] == totalShares, "Wrong shares distribution"); } /** * Update NefturiansArtifact contract * @param newNefturiansArtifact: address of new NefturiansArtifact contract */ function setNefturiansArtifact(address newNefturiansArtifact) public onlyRole(DEFAULT_ADMIN_ROLE) { _revokeRole(METADATA_ROLE, address(nefturiansArtifacts)); _revokeRole(ARTIFACT_CONTRACT_ROLE, address(nefturiansArtifacts)); nefturiansArtifacts = INefturianArtifact(newNefturiansArtifact); _grantRole(METADATA_ROLE, address(nefturiansArtifacts)); _grantRole(ARTIFACT_CONTRACT_ROLE, address(nefturiansArtifacts)); } /** * Get the pinting price */ function getMintingPrice() public pure returns (uint256) { return MINTING_PRICE; } /** * Get the address of the internally deployed NefturiansArtifact contract */ function getArtifactContract() public view returns (address) { return address(nefturiansArtifacts); } /** * Get the timestamp of the presale start */ function getPreSaleTimestamp() public view returns(uint256) { return preSaleStartTimestamp; } /** * Get the timestamp of the presale start */ function getPublicSaleTimestamp() public view returns(uint256) { return publicSaleStartTimestamp; } /** * Get the address of the internally deployed NefturiansData contract */ function getDataContract() public view returns (address) { return address(nefturiansData); } /** * Admin can move the presale start to avoid conflicting with NFT partners */ function setPresaleStart(uint256 ts) public onlyRole(DEFAULT_ADMIN_ROLE) { preSaleStartTimestamp = ts; } /** * Admin can move the public sale start to avoid conflicting with NFT partners */ function setPublicSaleStart(uint256 ts) public onlyRole(DEFAULT_ADMIN_ROLE) { publicSaleStartTimestamp = ts; } /** * Set the hash of all the attributes in their original order * * This function can only be called once */ function setProvableFairnessHash(string calldata hash) public onlyRole(DEFAULT_ADMIN_ROLE) { provableFairnessHash = hash; } /** * Globally pauses minting */ function pause() public onlyRole(PAUSER_ROLE) { _pause(); } /** * Globally unpauses minting */ function unpause() public onlyRole(PAUSER_ROLE) { _unpause(); } /** * Mint function for devs * @param to: address of receiver * @param quantity: number of tokens to mint * * Error messages: * - N0 : "Maximum supply would be exceeded with this mint" (should never happen but better safe than sorry) * - N15: "Reserve supply would be exceeded with this mint" */ function safeMint(address to, uint256 quantity) public onlyRole(MINTER_ROLE) { require(quantity + totalSupply() <= MAX_SUPPLY, "N0"); require(reservedTokensMinted + quantity <= TOKENS_RESERVED, "N15"); reservedTokensMinted += quantity; _safeMint(to, quantity); } /** * Mint function for presale * @param quantity: uint256 - number of tokens to mint * @param merkleProof: serie of merkle hashes to prove whitelist * * Error messages: * - N7 : "Presale has not started" * - N18: "Presale is over" * - N8 : "Whitelist supply would be exceeded with this mint" * - N9 : "The whitelist has not been initialized" * - N5 : "You have to send the right amount" * - N10: "Your max allocation would be exceeded with this mint" * - N11: "Invalid proof of whitelist" */ function whitelistMint(uint256 quantity, bytes32[] calldata merkleProof) public payable whenNotPaused { require(block.timestamp >= preSaleStartTimestamp, "N7"); require(block.timestamp < publicSaleStartTimestamp, "N18"); require(totalSupply() + quantity <= MAX_SUPPLY - TOKENS_RESERVED + reservedTokensMinted, "N8"); require(merkleRoot != 0, "N9"); require(msg.value == MINTING_PRICE * quantity, "N5"); require(whitelistClaimed[msg.sender] + quantity <= MAX_WHITELIST_MINT, "N10"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProofLibrary.verify(merkleProof, merkleRoot, leaf), "N11"); whitelistClaimed[msg.sender] += quantity; _safeMint(msg.sender, quantity); } /** * Public mint function that requires a signature from a SIGNER_ROLE * @param quantity: number of tokens to mint * @param signature: signature from a wallet with SIGNER_ROLE to authorize the mint * * Error messages: * - N2 : "Public sale has not started yet" * - N3 : "Public supply would be exceeded with this mint" * - N4: "Mint quantity too high" * - N5: "You have to send the right amount" * - N6: "This operation has not been signed" */ function publicMint(uint256 quantity, bytes calldata signature) public payable whenNotPaused { require(block.timestamp >= publicSaleStartTimestamp, "N2"); require(quantity + totalSupply() <= MAX_SUPPLY - TOKENS_RESERVED + reservedTokensMinted, "N3"); require(publicClaimed[msg.sender] + quantity <= MAX_PUBLIC_MINT, "N4"); publicClaimed[msg.sender] += quantity; require(msg.value == MINTING_PRICE * quantity, "N5"); uint256 nonce = nonces[msg.sender] + 1; require(hasRole(SIGNER_ROLE, ECDSALibrary.recover(abi.encodePacked(msg.sender, nonce), signature)), "N6"); nonces[msg.sender] += 1; _safeMint(msg.sender, quantity); } /** * Define merkle root * @param newMerkleRoot: newly defined merkle root */ function setMerkleRoot(bytes32 newMerkleRoot) public onlyRole(MINTER_ROLE) { merkleRoot = newMerkleRoot; } /** * Get the nonce of a particular address * @param minter: selected address from which to get the nonce */ function getNonce(address minter) public view returns (uint256) { return nonces[minter] + 1; } /** * Increment the nonce * @param holder: address of the address for which to increnebnt the nonce */ function incrementNonce(address holder) public onlyRole(METADATA_ROLE) { nonces[holder] += 1; } /** * Get the on chain metadata of a token * @param tokenId: id of the token from which to get the on chain metadata * * Error messages: * - N12: "Token ID doesn't correspond to a minted token" */ function getMetadata(uint256 tokenId) public view returns (string memory) { require(_exists(tokenId), "N12"); return nefturiansData.getMetadata(tokenId); } /** * Add a new Metadata key * @param keyName: the name of the Metadata key */ function addKey(string calldata keyName) public onlyRole(METADATA_ROLE) { nefturiansData.addKey(keyName); } /** * Get the base URI */ function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } /** * Set the base URI * @param baseURI: new base URI */ function setBaseURI(string calldata baseURI) external onlyRole(URI_ROLE) { _baseTokenURI = baseURI; } /** * Contract level Metadata URI */ function contractURI() public view returns (string memory) { return string(abi.encodePacked(_baseTokenURI, "collection")); } /** * Get the URI of a selected token * @param tokenId: token id from which to get token URI * * Error messages: * - N12: "Token ID doesn't correspond to a minted token" */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "N12"); return string(abi.encodePacked(_baseTokenURI, StringsLibrary.toString(tokenId))); } /** * Withdraw contract balance to a shareholder proportionnaly to their share amount * * @param account: address of the shareholder * * Error messages: * - N16: "You have no shares in the project" * - N17: "All funds have already been sent" */ function withdraw(address account) public { require(shares[account] > 0, "N16"); uint256 totalReceived = address(this).balance + totalReleased; uint256 payment = (totalReceived * shares[account]) / totalShares - released[account]; require(payment > 0, "N17"); released[account] = released[account] + payment; totalReleased = totalReleased + payment; payable(account).transfer(payment); } /** * Mints an egg artifact for the buyer * * @param from: transferer's address * @param to: reveiver's address */ function _beforeTokenTransfers( address from, address to ) internal override { if (from != address(0) && to != address(0)) { nefturiansArtifacts.giveEgg(to); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) // Added recover for arbitrary bytes by Nefture pragma solidity 0.8.11; import "./StringsLibrary.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSALibrary { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes calldata signature) public pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-recover} that receives unhashed bytes * * Added for Nefturians collection */ function recover(bytes calldata data, bytes calldata signature) public pure returns (address) { bytes32 hash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", keccak256(data))); return recover(hash, signature); } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) public pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) public pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) public pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) public pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", StringsLibrary.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) public pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol) // Made public and linkable by Nefture pragma solidity 0.8.11; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProofLibrary { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) public pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) public pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "./IAccessControl.sol"; interface INefturians is IERC721, IAccessControl { event UpdateNefturianArtifact(address newArtifactContract); function getNonce(address addr) external view returns (uint256); function incrementNonce(address addr) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; interface INefturianArtifact is IERC1155 { event UseArtifact(uint256 tokenId, uint256 quantity); event UseArtifacts(uint256[] tokenIds, uint256[] quantities); event UpdateOdds(uint256[] oldOdds, uint256[] newOdds); event AddRareItem(uint256 rarity, uint256 quantity, bool isConsumable); function giveEgg(address to) external; function transferOwnership(address to) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; interface INefturiansData { event MetadataUpdated(uint256 indexed tokenId, uint256 indexed key, string value); event AttributeUpdated(uint256 indexed tokenId, uint256 indexed key, uint256 value); function getMetadata(uint256 tokenId) external view returns (string memory); function addKey(string calldata key) external; function setMetadata(uint256 tokenId, uint256 key, string calldata value, bytes calldata signature) external; function setAttributes(uint256 tokenId, uint256[] calldata keys, uint256[] calldata values, bytes calldata signature) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol) // Modified by Nefture to remove role admins feature pragma solidity 0.8.11; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "../interfaces/IAccessControl.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl { mapping(bytes32 => mapping(address => bool)) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view returns (bool) { return _roles[role][account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert("AC0"); } } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual onlyRole(DEFAULT_ADMIN_ROLE) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual onlyRole(DEFAULT_ADMIN_ROLE) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual { require(account == _msgSender(), "AC1"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role][account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role][account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs // Further optimization: Nefture pragma solidity 0.8.11; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). * * Assumes that an owner cannot have more than the 2**128 (max value of uint128) of supply */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; uint256 internal currentIndex = 0; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty mapping value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => address) internal _ownerships; // Mapping owner address to address data mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view returns (uint256) { return currentIndex; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), 'AP1'); return uint256(_balances[owner]); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (address) { require(_exists(tokenId), 'AP2'); unchecked { for (uint256 curr = tokenId; curr >= 0; curr--) { if (_ownerships[curr] != address(0)) { return _ownerships[curr]; } } } revert('AP3'); } function ownerOf(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), 'AP2'); return ownershipOf(tokenId); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), 'AP5'); string memory baseURI = _baseURI(); return string(abi.encodePacked(baseURI, tokenId.toString())); } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); require(to != owner, 'AP6'); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), 'AP7' ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), 'AP8'); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), 'AP9'); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), 'AP10' ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), 'AP11'); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), 'AP12'); require(quantity > 0, 'AP13'); _beforeTokenTransfers(address(0), to); _balances[to] += uint128(quantity); _ownerships[startTokenId] = to; uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), 'AP10' ); updatedIndex++; } currentIndex = updatedIndex; } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { address prevOwnership = ownerOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership, _msgSender())); require(isApprovedOrOwner, 'AP15'); require(prevOwnership == from, 'AP16'); require(to != address(0), 'AP17'); _beforeTokenTransfers(from, to); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. _balances[from] -= 1; _balances[to] += 1; _ownerships[tokenId] = to; // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId] == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = prevOwnership; } } emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert('AP10'); } assembly { revert(add(32, reason), mload(reason)) } } } return true; } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../libraries/ECDSALibrary.sol"; import "../interfaces/INefturiansArtifact.sol"; import "../interfaces/INefturians.sol"; /**********************************************************************************************************************/ /* */ /* Nefturians Artifacts */ /* */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN...NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN........NNNNNNNNNNNNNNNNNNN.......NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN...........NNNNNNNNNNNNNNNN.........NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNN...............NNNNNNNNNNNN............NNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNN.................NNNNNNNNNNN.............NNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNN...................NNNNNNNNNNN..............NNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNN.....................NNNNNNNNNNN..............NNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNN.......................NNNNNNNNNNN..............NNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNN..........................NNNNNNNNNN..............NNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNN.............................NNNNNNNNNN.............NNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNN............NNNN...............NNNNNNNNNN.............NNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNN............NNNNNN...............NNNNNNNNNN.............NNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNN.............NNNNNNNN...............NNNNNNNNNN.............NNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNN.............NNNNNNNNNN..............NNNNNNNNNN............NNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNN.............NNNNNNNNNN..............NNNNNNNN.............NNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNN.............NNNNNNNNNN...............NNNNN.............NNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNN..............NNNNNNNNNN...............NNN.............NNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNN.............NNNNNNNNNN............................NNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNN..............NNNNNNNNN..........................NNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNN..............NNNNNNNNN........................NNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNN..............NNNNNNNNNN.....................NNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNN..............NNNNNNNNNNN..................NNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNN..............NNNNNNNNNNN................NNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNN...........NNNNNNNNNNNNN..............NNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN.........NNNNNNNNNNNNNNNN...........NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN.......NNNNNNNNNNNNNNNNNNN........NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN.NNNNNNNNNNNNNNNNNNNNNNNNNN.NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* */ /* */ /* */ /**********************************************************************************************************************/ contract NefturiansArtifact is ERC1155, Ownable, ERC1155Burnable, ERC1155Supply, INefturianArtifact { /** * Roles for the access control * these roles are only checked against the parent contract's settings */ bytes32 internal constant DAO_ROLE = keccak256("DAO_ROLE"); bytes32 internal constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 internal constant SIGNER_ROLE = keccak256("SIGNER_ROLE"); bytes32 internal constant DEFAULT_ADMIN_ROLE = 0x00; /** * Custom URI for each token */ mapping(uint256 => string) private _uris; /** * Odds of drawing artifacts based on their rarity level. * * Rarity levels go in this order: * - odds[0] = common (for common equipment and basic consumables) * - odds[1] = powerUp (consummables used to upgrades Nefturians stats) * - odds[2] = rare (for rare equipment and powerful buffs consumables) * - odds[3] = legendary (wait for it...) */ uint256[] private odds = [70000, 90000, 99000, 100000]; /** * Current tokenId count. * Starts at 1. Index 0 is reserved for eggs */ uint256 private generalCount = 1; /** * Mapping rarity levels and indexes to tokenIds. * * indexesByRarity[ rarityId ][ autoincremented index ] => tokenId * countByRarity = autoincremented indexes for each rarity level */ mapping(uint256 => mapping(uint256 => uint256)) private indexesByRarity; mapping(uint256 => uint256) private countByRarity; /** * If a token should be burned when used */ mapping(uint256 => bool) private consumable; /** * Ether pool to pay for the gas when a method needs to be called by our API */ mapping(address => uint256) public stakes; /** * Parent contract: The Nefturians collection */ INefturians internal nefturians; constructor() ERC1155("") { nefturians = INefturians(msg.sender); consumable[0] = true; } /** * Update the odds of drawing artifacts based on their rarity level * @param newOdds: new odds in increment order with last equal to 100000 * * Error messages: * - AC0: "You dont have required role" * - NA03: "Wrong format for array" */ function updateOdds(uint256[] calldata newOdds) public { require(nefturians.hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "AC0"); require(newOdds.length == 4, "NA03"); require(newOdds[3] == 100000, "NA03"); require( newOdds[0] <= newOdds[1] && newOdds[1] <= newOdds[2] && newOdds[2] <= newOdds[3], "NA03"); emit UpdateOdds(odds, newOdds); odds = newOdds; } /** * Adds a new artifact * @param rarity: rarity of the new artifact (must be between 0 and 3) * @param quantity: quantity of artifacts to be added * @param isConsumable: if the artifact can be consumed * * Error messages: * - NA07: "Rarity out of bounds" */ function addRareItem(uint256 rarity, uint256 quantity, bool isConsumable) public { require(rarity < 4 && rarity >= 0, "NA07"); require(nefturians.hasRole(MINTER_ROLE, msg.sender), "Missing role"); for (uint256 i = 0; i < quantity; i++) { indexesByRarity[rarity][countByRarity[rarity] + i] = generalCount + i; consumable[generalCount + i] = isConsumable; } countByRarity[rarity] += quantity; generalCount += quantity; emit AddRareItem(rarity, quantity, isConsumable); } /** * Set URI of a given token * @param tokenId: id of the token * @param newuri: new uri of token id * */ function setURI(uint256 tokenId, string memory newuri) public { require(nefturians.hasRole(MINTER_ROLE, msg.sender), "Missing role"); _setURI(tokenId, newuri); } /** * Public mint function that requires a signature from a SIGNER_ROLE * @param tokenId: id of the token * @param quantity: quantity to be minted * @param signature: signature of SIGNER_ROLE * * Error messages: * - N6: "This operation has not been signed" */ function mintWithSignature(uint256 tokenId, uint256 quantity, bytes calldata signature) public { uint256 nonce = nefturians.getNonce(msg.sender); require(nefturians.hasRole(SIGNER_ROLE, ECDSALibrary.recover(abi.encodePacked(msg.sender, nonce, tokenId, quantity), signature)), "N6"); nefturians.incrementNonce(msg.sender); _mint(msg.sender, tokenId, quantity, ""); } /** * Mint batch of token only if MINTER_ROLE * @param to: address reveiving tokens * @param tokenIds: ids of the tokens to be minted * @param amounts: quantities of each token to be minted * @param data: arbitrary data for events * * Error messages: * - AC0: "You dont have required role" */ function mintBatch(address to, uint256[] memory tokenIds, uint256[] memory amounts, bytes memory data) public { require(nefturians.hasRole(MINTER_ROLE, msg.sender), "AC0"); _mintBatch(to, tokenIds, amounts, data); } /** * Get the uri of a tokenId * @param tokenId: id of the token */ function uri(uint256 tokenId) public view virtual override returns (string memory) { return _uris[tokenId]; } /** * Stake some eth to allow the admin to claim artifacts for you */ function stake() public payable { stakes[msg.sender] += msg.value; } /** * Get your staked eth back */ function unstake() public { require(stakes[msg.sender] > 0, "No stake"); uint256 staked = stakes[msg.sender]; stakes[msg.sender] = 0; payable(msg.sender).transfer(staked); } /** * Allows a MINTER from the parent contract to mint eggs to address * @param to: address of the token recipient * * Error messages: * - AC0: "You dont have required role" */ function giveEgg(address to) override external { require(nefturians.hasRole(MINTER_ROLE, msg.sender), "AC0"); _mint(to, 0, 1, ""); } /** * Claim artifacts with a egg for a user. One egg gives one random artifact of a random rarity level * @param quantity: quantity of eggs to use * @param userSeed: random seed from the user * @param serverSeed: random seed from the server * @param signature: the user seed signed with the token owner's private key * * Error messages: * - AC0: "You dont have required role" * - NA00: "Your stake does not cover the gas price" * - NA01: "Division by zero" * - NA08: "Balance too low" */ function claimArtifact( uint256 quantity, bytes4 userSeed, bytes4 serverSeed, bytes calldata signature ) public { require(nefturians.hasRole(SIGNER_ROLE, msg.sender), "AC0"); address caller = ECDSALibrary.recover(abi.encodePacked(userSeed), signature); require(balanceOf(caller, 0) >= quantity, "NA00"); require(stakes[caller] >= tx.gasprice, "NA01"); _burn(caller, 0, quantity); for (uint256 i = 0; i < quantity; i++) { uint256 number = uint256(keccak256(abi.encodePacked(userSeed, serverSeed, i))); distributeReward(caller, number); } stakes[caller] -= tx.gasprice; payable(msg.sender).transfer(tx.gasprice); } /** * Mint reward based on odds and egg number * @param rewardee: address of receiver * @param ticket: random number * * Error messages: * - NA02: "Division by zero" */ function distributeReward(address rewardee, uint256 ticket) internal { uint256 number = ticket % 100000; uint256 rarity; if (number < odds[0]) { rarity = 0; } else if (number < odds[1]) { rarity = 1; } else if (number < odds[2]) { rarity = 2; } else { rarity = 3; } require(countByRarity[rarity] > 0, "NA02"); uint256 index = ticket % countByRarity[rarity]; _mint(rewardee, indexesByRarity[rarity][index], 1, ""); } /** * Allow an owner of consumable tokens to use them * @param tokenId: id of the token to be used * @param quantity: quantity to be used * * Error messages: * - NA06: "Item not consummable" * - NA04: "Not enough artifacts" */ function useArtifact(uint256 tokenId, uint256 quantity) public { require(consumable[tokenId], "NA06"); require(balanceOf(msg.sender, tokenId) >= quantity, "NA04"); _burn(msg.sender, tokenId, quantity); emit UseArtifact(tokenId, quantity); } function _setURI(uint256 tokenId, string memory newuri) internal { _uris[tokenId] = newuri; } function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal override(ERC1155, ERC1155Supply) { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } // The following functions are overrides required by Solidity. function supportsInterface(bytes4 interfaceId) public view override(ERC1155, IERC165) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public override(INefturianArtifact, Ownable) onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/access/Ownable.sol"; import "../libraries/ECDSALibrary.sol"; import "../libraries/StringsLibrary.sol"; import "../interfaces/INefturiansData.sol"; import "../interfaces/INefturians.sol"; /**********************************************************************************************************************/ /* */ /* Nefturians Data */ /* */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN...NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN........NNNNNNNNNNNNNNNNNNN.......NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN...........NNNNNNNNNNNNNNNN.........NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNN...............NNNNNNNNNNNN............NNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNN.................NNNNNNNNNNN.............NNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNN...................NNNNNNNNNNN..............NNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNN.....................NNNNNNNNNNN..............NNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNN.......................NNNNNNNNNNN..............NNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNN..........................NNNNNNNNNN..............NNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNN.............................NNNNNNNNNN.............NNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNN............NNNN...............NNNNNNNNNN.............NNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNN............NNNNNN...............NNNNNNNNNN.............NNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNN.............NNNNNNNN...............NNNNNNNNNN.............NNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNN.............NNNNNNNNNN..............NNNNNNNNNN............NNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNN.............NNNNNNNNNN..............NNNNNNNN.............NNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNN.............NNNNNNNNNN...............NNNNN.............NNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNN..............NNNNNNNNNN...............NNN.............NNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNN.............NNNNNNNNNN............................NNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNN..............NNNNNNNNN..........................NNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNN..............NNNNNNNNN........................NNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNN..............NNNNNNNNNN.....................NNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNN..............NNNNNNNNNNN..................NNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNN..............NNNNNNNNNNN................NNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNN...........NNNNNNNNNNNNN..............NNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN.........NNNNNNNNNNNNNNNN...........NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN.......NNNNNNNNNNNNNNNNNNN........NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN.NNNNNNNNNNNNNNNNNNNNNNNNNN.NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /* */ /* */ /* */ /**********************************************************************************************************************/ contract NefturiansData is Ownable, INefturiansData { /** * Roles for the access control * these roles are only checked against the parent contract's settings */ bytes32 internal constant DAO_ROLE = keccak256("DAO_ROLE"); bytes32 internal constant METADATA_ROLE = keccak256("METADATA_ROLE"); bytes32 internal constant SIGNER_ROLE = keccak256("SIGNER_ROLE"); /** * Metadata and Attributes */ uint256 internal metadataKeysCounter; mapping(uint256 => string) internal metadataKeys; mapping(uint256 => mapping(uint256 => uint256)) internal attributes; mapping(uint256 => mapping(uint256 => string)) internal metadata; /** * Parent contract: The Nefturians collection */ INefturians private collection; constructor() { metadataKeys[0] = "name"; metadataKeys[1] = "strength"; metadataKeysCounter = 2; collection = INefturians(msg.sender); } /** * Get the metadata of a token in an easily parseable format (dotenv-style) * @param tokenId: id of the token for which we want the metadata */ function getMetadata(uint256 tokenId) public view returns (string memory) { string memory metadataString; for (uint256 index = 0; index < metadataKeysCounter; index++) { if (bytes(metadata[tokenId][index]).length != 0){ metadataString = string(abi.encodePacked(metadataString, metadataKeys[index], "=", metadata[tokenId][index], "\n")); } else if (attributes[tokenId][index] != 0) { metadataString = string(abi.encodePacked(metadataString, metadataKeys[index], "=", StringsLibrary.toString(attributes[tokenId][index]), "\n")); } } return metadataString; } /** * Add new metadatakey * @param keyName: name of the new metadata key * * Error messages: * - ND1: "Unauthorized to add key" */ function addKey(string calldata keyName) public onlyOwner { metadataKeys[metadataKeysCounter + 1] = keyName; metadataKeysCounter += 1; } /** * Set a string metadata for a given token with specific key * @param tokenId: token id for which to set metadata * @param key: metadata key id * @param value: on chain metadata value * @param signature to authorize the transaction: * - SIGNER_ROLE signed metadata if the update is performed by the owner * - Token owner's signed metadata if the update is performed by the DAO and signed by the owner * * Error messages: * - ND2: "Not authorized to update metadata" */ function setMetadata(uint256 tokenId, uint256 key, string calldata value, bytes calldata signature) public { address owner = collection.ownerOf(tokenId); uint256 nonce = collection.getNonce(owner); address signer = ECDSALibrary.recover(abi.encodePacked( owner, nonce, tokenId, key, value ), signature); require( (msg.sender == owner && collection.hasRole(SIGNER_ROLE, signer)) || (signer == owner && collection.hasRole(DAO_ROLE, msg.sender)), "ND2" ); collection.incrementNonce(owner); metadata[tokenId][key] = value; emit MetadataUpdated(tokenId, key, value); } /** * Set the numeric metadata (attributes) of a token * @param tokenId: id of the token for which to set new attributes * @param keys: array of keys from attributes to be updated * @param values: values for each key of the new attributes * @param signature: * - SIGNER_ROLE or DAO_ROLE signature to authorize on chain metadata update * - SIGNER_ROLE signed metadata if the update is performed by the owner * - DAO_ROLE caller if the update is performed by the DAO and signed by the owner * * Error messages: * - ND0: "Array lengths do not match" * - ND2: "Not authorized to update metadata" */ function setAttributes(uint256 tokenId, uint256[] calldata keys, uint256[] calldata values, bytes calldata signature) public { require(keys.length == values.length, "ND0"); address owner = collection.ownerOf(tokenId); uint256 nonce = collection.getNonce(owner); address signer = ECDSALibrary.recover(abi.encodePacked( owner, nonce, tokenId, keys, values ), signature); require( (msg.sender == owner && collection.hasRole(SIGNER_ROLE, signer)) || (signer == owner && collection.hasRole(DAO_ROLE, msg.sender)), "ND2" ); for (uint256 i = 0; i < keys.length; i++) { attributes[tokenId][keys[i]] = values[i]; emit AttributeUpdated(tokenId, keys[i], values[i]); } collection.incrementNonce(owner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) // Made public and linkable by Nefture pragma solidity 0.8.11; /** * @dev String operations. */ library StringsLibrary { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) public pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) public pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) public pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; interface IAccessControl { /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); function hasRole(bytes32 role, address account) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `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 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of {ERC1155} that allows token holders to destroy both their * own tokens and those that they have been approved to use. * * _Available since v3.1._ */ abstract contract ERC1155Burnable is ERC1155 { function burn( address account, uint256 id, uint256 value ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burn(account, id, value); } function burnBatch( address account, uint256[] memory ids, uint256[] memory values ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burnBatch(account, ids, values); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.0; import "../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. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] -= amounts[i]; } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": { "libraries/ECDSALibrary.sol": { "ECDSALibrary": "0x4fbaf8986aa4cd331adf4cbbc01f4c105cc46aaa" }, "libraries/MerkleProofLibrary.sol": { "MerkleProofLibrary": "0x1b1a5bc153616828388233fee0d1ace673f00adf" }, "libraries/StringsLibrary.sol": { "StringsLibrary": "0x0578bfc6862365150f6ec8252e5e62aa56df584e" } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newArtifactContract","type":"address"}],"name":"UpdateNefturianArtifact","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"keyName","type":"string"}],"name":"addKey","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","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":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getArtifactContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDataContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintingPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPreSaleTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicSaleTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"incrementNonce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provableFairnessHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newNefturiansArtifact","type":"address"}],"name":"setNefturiansArtifact","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ts","type":"uint256"}],"name":"setPresaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"hash","type":"string"}],"name":"setProvableFairnessHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ts","type":"uint256"}],"name":"setPublicSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600080557ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe600b557fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600c556000600d556103e8601255739ba52109eda0b6afb60f0c98265a7457d1b47763601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073741572cee2cc991dbc142f0910e9f47a3871c110601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550735712daba01d33b323d5130ca6c48e11427d675b2601860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073657c9fde093e08fe976686f4b68faac57fbf8bbe601960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073a944e23fc61d57502bfbf8dfa358aadeb5adb64c601a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550739eb3a30117810d5a36568714eb5350480942f644601b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550731dbbec72fc72406851ab9d42c18dc52abebbb287601c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620002bb57600080fd5b506040518060400160405280600a81526020017f4e656674757269616e73000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f4e465452000000000000000000000000000000000000000000000000000000008152508160019080519060200190620003409291906200113e565b508060029080519060200190620003599291906200113e565b5050506200037c6200037062000f1960201b60201c565b62000f2160201b60201c565b6000600960006101000a81548160ff021916908315150217905550604051620003a590620011cf565b604051809103906000f080158015620003c2573d6000803e3d6000fd5b50601d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040516200041190620011dd565b604051809103906000f0801580156200042e573d6000803e3d6000fd5b50601e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620004a66000801b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1662000fe760201b60201c565b620004fa7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1662000fe760201b60201c565b6200054e7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1662000fe760201b60201c565b620005a27f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b2603601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1662000fe760201b60201c565b620005f67fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1662000fe760201b60201c565b6200064a7f8e6595ef9afb2a8f70320f393f567bb7a0e6c4ed483caee30f90cc5fcd6659b4601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1662000fe760201b60201c565b6200067c7f8e6595ef9afb2a8f70320f393f567bb7a0e6c4ed483caee30f90cc5fcd6659b43362000fe760201b60201c565b620006d07f6bd6b5318a46e5fff572d5e4258a20774aab40cc35ac7680654b9081fcc82f80601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1662000fe760201b60201c565b620007247f6bd6b5318a46e5fff572d5e4258a20774aab40cc35ac7680654b9081fcc82f80601e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1662000fe760201b60201c565b620007787f6bd6b5318a46e5fff572d5e4258a20774aab40cc35ac7680654b9081fcc82f80601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1662000fe760201b60201c565b620007cc7f7833706a7f1f7d33326cfbf8adbe20d79cce6674255a2052ad9cdcb827104c81601e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1662000fe760201b60201c565b620008207f792951e32f3ca2ce52ff50a3b2f20ded39d07779618fafd9887dbad563ee026e601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1662000fe760201b60201c565b620008527f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63062000fe760201b60201c565b601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f2fde38b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401620008d191906200124f565b600060405180830381600087803b158015620008ec57600080fd5b505af115801562000901573d6000803e3d6000fd5b5050505061036860156000601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550601b60156000601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550601b60156000601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550601b60156000601960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550601b60156000601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600a60156000601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600a60156000601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060125460156000601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460156000601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460156000601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460156000601960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460156000601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460156000601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460156000601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205462000e949190620012a5565b62000ea09190620012a5565b62000eac9190620012a5565b62000eb89190620012a5565b62000ec49190620012a5565b62000ed09190620012a5565b1462000f13576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000f0a9062001363565b60405180910390fd5b620013ea565b600033905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000ff98282620010d660201b60201c565b620010d25760016008600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200107762000f1960201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006008600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b8280546200114c90620013b4565b90600052602060002090601f016020900481019282620011705760008555620011bc565b82601f106200118b57805160ff1916838001178555620011bc565b82800160010185558215620011bc579182015b82811115620011bb5782518255916020019190600101906200119e565b5b509050620011cb9190620011eb565b5090565b6161638062006e4383390190565b6124f6806200cfa683390190565b5b8082111562001206576000816000905550600101620011ec565b5090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062001237826200120a565b9050919050565b62001249816200122a565b82525050565b60006020820190506200126660008301846200123e565b92915050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000620012b2826200126c565b9150620012bf836200126c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115620012f757620012f662001276565b5b828201905092915050565b600082825260208201905092915050565b7f57726f6e672073686172657320646973747269627574696f6e00000000000000600082015250565b60006200134b60198362001302565b9150620013588262001313565b602082019050919050565b600060208201905081810360008301526200137e816200133c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620013cd57607f821691505b60208210811415620013e457620013e362001385565b5b50919050565b615a4980620013fa6000396000f3fe6080604052600436106102ae5760003560e01c8063715018a611610175578063a22cb465116100dc578063d547741f11610095578063e8a3d4851161006f578063e8a3d48514610a7a578063e985e9c514610aa5578063f2fde38b14610ae2578063f5743c4c14610b0b576102ae565b8063d547741f146109e9578063db4bec4414610a12578063dd0ba25b14610a4f576102ae565b8063a22cb465146108c4578063a574cea4146108ed578063b5b1cd7c1461092a578063b88d4fde14610967578063c87b56dd14610990578063d2cab056146109cd576102ae565b80638d2880071161012e5780638d288007146107b25780638da5cb5b146107dd57806391d148541461080857806395d89b4114610845578063a144819414610870578063a217fddf14610899576102ae565b8063715018a6146106de57806374483d2b146106f557806377d247621461071e57806378152bbe146107495780637cb64759146107725780638456cb591461079b576102ae565b80632f2ff15d1161021957806351cff8d9116101d257806351cff8d9146105be57806355f804b3146105e75780635795a416146106105780635c975abb146106395780636352211e1461066457806370a08231146106a1576102ae565b80632f2ff15d146104d857806336568abe146105015780633b7f7fa51461052a5780633f4ba83a1461055557806342842e0e1461056c57806350382c1a14610595576102ae565b80630ed89c011161026b5780630ed89c01146103d557806318160ddd146103f157806323b872dd1461041c57806324e0fbaa146104455780632d0335ab146104705780632eb4a7ab146104ad576102ae565b806301ffc9a7146102b357806306fa2825146102f057806306fdde031461031b578063081812fc14610346578063095ea7b3146103835780630ca282f7146103ac575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d59190613a14565b610b34565b6040516102e79190613a5c565b60405180910390f35b3480156102fc57600080fd5b50610305610c7e565b6040516103129190613a90565b60405180910390f35b34801561032757600080fd5b50610330610c88565b60405161033d9190613b44565b60405180910390f35b34801561035257600080fd5b5061036d60048036038101906103689190613b92565b610d1a565b60405161037a9190613c00565b60405180910390f35b34801561038f57600080fd5b506103aa60048036038101906103a59190613c47565b610d9f565b005b3480156103b857600080fd5b506103d360048036038101906103ce9190613b92565b610eb8565b005b6103ef60048036038101906103ea9190613cec565b610ed8565b005b3480156103fd57600080fd5b506104066112ca565b6040516104139190613a90565b60405180910390f35b34801561042857600080fd5b50610443600480360381019061043e9190613d4c565b6112d3565b005b34801561045157600080fd5b5061045a6112e3565b6040516104679190613c00565b60405180910390f35b34801561047c57600080fd5b5061049760048036038101906104929190613d9f565b61130d565b6040516104a49190613a90565b60405180910390f35b3480156104b957600080fd5b506104c2611362565b6040516104cf9190613de5565b60405180910390f35b3480156104e457600080fd5b506104ff60048036038101906104fa9190613e2c565b611368565b005b34801561050d57600080fd5b5061052860048036038101906105239190613e2c565b61138c565b005b34801561053657600080fd5b5061053f61140f565b60405161054c9190613c00565b60405180910390f35b34801561056157600080fd5b5061056a611439565b005b34801561057857600080fd5b50610593600480360381019061058e9190613d4c565b611476565b005b3480156105a157600080fd5b506105bc60048036038101906105b79190613ec2565b611496565b005b3480156105ca57600080fd5b506105e560048036038101906105e09190613d9f565b61155c565b005b3480156105f357600080fd5b5061060e60048036038101906106099190613ec2565b6117c7565b005b34801561061c57600080fd5b5061063760048036038101906106329190613ec2565b611810565b005b34801561064557600080fd5b5061064e61183c565b60405161065b9190613a5c565b60405180910390f35b34801561067057600080fd5b5061068b60048036038101906106869190613b92565b611853565b6040516106989190613c00565b60405180910390f35b3480156106ad57600080fd5b506106c860048036038101906106c39190613d9f565b6118ad565b6040516106d59190613a90565b60405180910390f35b3480156106ea57600080fd5b506106f3611965565b005b34801561070157600080fd5b5061071c60048036038101906107179190613d9f565b6119ed565b005b34801561072a57600080fd5b50610733611b77565b6040516107409190613a90565b60405180910390f35b34801561075557600080fd5b50610770600480360381019061076b9190613b92565b611b87565b005b34801561077e57600080fd5b5061079960048036038101906107949190613f0f565b611ba7565b005b3480156107a757600080fd5b506107b0611be4565b005b3480156107be57600080fd5b506107c7611c21565b6040516107d49190613b44565b60405180910390f35b3480156107e957600080fd5b506107f2611caf565b6040516107ff9190613c00565b60405180910390f35b34801561081457600080fd5b5061082f600480360381019061082a9190613e2c565b611cd9565b60405161083c9190613a5c565b60405180910390f35b34801561085157600080fd5b5061085a611d41565b6040516108679190613b44565b60405180910390f35b34801561087c57600080fd5b5061089760048036038101906108929190613c47565b611dd3565b005b3480156108a557600080fd5b506108ae611ed5565b6040516108bb9190613de5565b60405180910390f35b3480156108d057600080fd5b506108eb60048036038101906108e69190613f68565b611edc565b005b3480156108f957600080fd5b50610914600480360381019061090f9190613b92565b61205d565b6040516109219190613b44565b60405180910390f35b34801561093657600080fd5b50610951600480360381019061094c9190613d9f565b61214f565b60405161095e9190613a90565b60405180910390f35b34801561097357600080fd5b5061098e600480360381019061098991906140d8565b612167565b005b34801561099c57600080fd5b506109b760048036038101906109b29190613b92565b6121c3565b6040516109c49190613b44565b60405180910390f35b6109e760048036038101906109e291906141b1565b6122b3565b005b3480156109f557600080fd5b50610a106004803603810190610a0b9190613e2c565b61266f565b005b348015610a1e57600080fd5b50610a396004803603810190610a349190613d9f565b612693565b604051610a469190613a90565b60405180910390f35b348015610a5b57600080fd5b50610a646126ab565b604051610a719190613a90565b60405180910390f35b348015610a8657600080fd5b50610a8f6126b5565b604051610a9c9190613b44565b60405180910390f35b348015610ab157600080fd5b50610acc6004803603810190610ac79190614211565b6126dd565b604051610ad99190613a5c565b60405180910390f35b348015610aee57600080fd5b50610b096004803603810190610b049190613d9f565b612771565b005b348015610b1757600080fd5b50610b326004803603810190610b2d9190613d9f565b612869565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bff57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c6757507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c775750610c76826128f6565b5b9050919050565b6000600b54905090565b606060018054610c9790614280565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc390614280565b8015610d105780601f10610ce557610100808354040283529160200191610d10565b820191906000526020600020905b815481529060010190602001808311610cf357829003601f168201915b5050505050905090565b6000610d2582612960565b610d64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5b906142fe565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610daa82611853565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e129061436a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e3a61296d565b73ffffffffffffffffffffffffffffffffffffffff161480610e695750610e6881610e6361296d565b6126dd565b5b610ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9f906143d6565b60405180910390fd5b610eb3838383612975565b505050565b6000801b610ecd81610ec861296d565b612a27565b81600c819055505050565b610ee061183c565b15610f20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1790614442565b60405180910390fd5b600c54421015610f65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5c906144ae565b60405180910390fd5b600d5460fa611f41610f7791906144fd565b610f819190614531565b610f896112ca565b84610f949190614531565b1115610fd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcc906145d3565b60405180910390fd5b600583601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546110229190614531565b1115611063576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105a9061463f565b60405180910390fd5b82601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110b29190614531565b9250508190555082670214e8348c4f00006110cd919061465f565b341461110e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110590614705565b60405180910390fd5b60006001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461115c9190614531565b90506112247fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70734fbaf8986aa4cd331adf4cbbc01f4c105cc46aaa631ed13d1b33856040516020016111af92919061478e565b60405160208183030381529060405287876040518463ffffffff1660e01b81526004016111de9392919061483c565b602060405180830381865af41580156111fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121f919061488a565b611cd9565b611263576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125a90614903565b60405180910390fd5b6001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546112b39190614531565b925050819055506112c43385612a74565b50505050565b60008054905090565b6112de838383612a92565b505050565b6000601e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006001600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461135b9190614531565b9050919050565b60115481565b6000801b61137d8161137861296d565b612a27565b6113878383612ea8565b505050565b61139461296d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f89061496f565b60405180910390fd5b61140b8282612f86565b5050565b6000601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61146b8161146661296d565b612a27565b611473613065565b50565b61149183838360405180602001604052806000815250612167565b505050565b7f6bd6b5318a46e5fff572d5e4258a20774aab40cc35ac7680654b9081fcc82f806114c8816114c361296d565b612a27565b601e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166350382c1a84846040518363ffffffff1660e01b81526004016115259291906149bc565b600060405180830381600087803b15801561153f57600080fd5b505af1158015611553573d6000803e3d6000fd5b50505050505050565b6000601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116115de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d590614a2c565b60405180910390fd5b6000601354476115ee9190614531565b90506000601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601254601560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205484611680919061465f565b61168a9190614a7b565b61169491906144fd565b9050600081116116d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d090614af8565b60405180910390fd5b80601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117249190614531565b601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550806013546117759190614531565b6013819055508273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156117c1573d6000803e3d6000fd5b50505050565b7f8e6595ef9afb2a8f70320f393f567bb7a0e6c4ed483caee30f90cc5fcd6659b46117f9816117f461296d565b612a27565b8282600a919061180a929190613905565b50505050565b6000801b6118258161182061296d565b612a27565b8282601f9190611836929190613905565b50505050565b6000600960009054906101000a900460ff16905090565b600061185e82612960565b61189d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189490614b64565b60405180910390fd5b6118a682613107565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561191e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191590614bd0565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61196d61296d565b73ffffffffffffffffffffffffffffffffffffffff1661198b611caf565b73ffffffffffffffffffffffffffffffffffffffff16146119e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d890614c3c565b60405180910390fd5b6119eb6000613251565b565b6000801b611a02816119fd61296d565b612a27565b611a4e7f6bd6b5318a46e5fff572d5e4258a20774aab40cc35ac7680654b9081fcc82f80601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612f86565b611a9a7f792951e32f3ca2ce52ff50a3b2f20ded39d07779618fafd9887dbad563ee026e601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612f86565b81601d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611b277f6bd6b5318a46e5fff572d5e4258a20774aab40cc35ac7680654b9081fcc82f80601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612ea8565b611b737f792951e32f3ca2ce52ff50a3b2f20ded39d07779618fafd9887dbad563ee026e601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612ea8565b5050565b6000670214e8348c4f0000905090565b6000801b611b9c81611b9761296d565b612a27565b81600b819055505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611bd981611bd461296d565b612a27565b816011819055505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a611c1681611c1161296d565b612a27565b611c1e613317565b50565b601f8054611c2e90614280565b80601f0160208091040260200160405190810160405280929190818152602001828054611c5a90614280565b8015611ca75780601f10611c7c57610100808354040283529160200191611ca7565b820191906000526020600020905b815481529060010190602001808311611c8a57829003601f168201915b505050505081565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006008600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060028054611d5090614280565b80601f0160208091040260200160405190810160405280929190818152602001828054611d7c90614280565b8015611dc95780601f10611d9e57610100808354040283529160200191611dc9565b820191906000526020600020905b815481529060010190602001808311611dac57829003601f168201915b5050505050905090565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611e0581611e0061296d565b612a27565b611f41611e106112ca565b83611e1b9190614531565b1115611e5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5390614ca8565b60405180910390fd5b60fa82600d54611e6c9190614531565b1115611ead576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea490614d14565b60405180910390fd5b81600d6000828254611ebf9190614531565b92505081905550611ed08383612a74565b505050565b6000801b81565b611ee461296d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4990614d80565b60405180910390fd5b8060066000611f5f61296d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661200c61296d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120519190613a5c565b60405180910390a35050565b606061206882612960565b6120a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209e90614dec565b60405180910390fd5b601e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a574cea4836040518263ffffffff1660e01b81526004016121029190613a90565b600060405180830381865afa15801561211f573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906121489190614ead565b9050919050565b60106020528060005260406000206000915090505481565b612172848484612a92565b61217e848484846133ba565b6121bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b490614f42565b60405180910390fd5b50505050565b60606121ce82612960565b61220d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220490614dec565b60405180910390fd5b600a730578bfc6862365150f6ec8252e5e62aa56df584e636900a3ae846040518263ffffffff1660e01b81526004016122469190614f71565b600060405180830381865af4158015612263573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061228c9190614ead565b60405160200161229d92919061505c565b6040516020818303038152906040529050919050565b6122bb61183c565b156122fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f290614442565b60405180910390fd5b600b54421015612340576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612337906150cc565b60405180910390fd5b600c544210612384576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237b90615138565b60405180910390fd5b600d5460fa611f4161239691906144fd565b6123a09190614531565b836123a96112ca565b6123b39190614531565b11156123f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123eb906151a4565b60405180910390fd5b6000801b601154141561243c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243390615210565b60405180910390fd5b82670214e8348c4f0000612450919061465f565b3414612491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248890614705565b60405180910390fd5b600283600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546124de9190614531565b111561251f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125169061527c565b60405180910390fd5b600033604051602001612532919061529c565b604051602081830303815290604052805190602001209050731b1a5bc153616828388233fee0d1ace673f00adf635a9a49c78484601154856040518563ffffffff1660e01b81526004016125899493929190615338565b602060405180830381865af41580156125a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125ca919061538d565b612609576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260090615406565b60405180910390fd5b83600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126589190614531565b925050819055506126693385612a74565b50505050565b6000801b6126848161267f61296d565b612a27565b61268e8383612f86565b505050565b600f6020528060005260406000206000915090505481565b6000600c54905090565b6060600a6040516020016126c99190615472565b604051602081830303815290604052905090565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61277961296d565b73ffffffffffffffffffffffffffffffffffffffff16612797611caf565b73ffffffffffffffffffffffffffffffffffffffff16146127ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e490614c3c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561285d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285490615506565b60405180910390fd5b61286681613251565b50565b7f6bd6b5318a46e5fff572d5e4258a20774aab40cc35ac7680654b9081fcc82f8061289b8161289661296d565b612a27565b6001600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128eb9190614531565b925050819055505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b612a318282611cd9565b612a70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a6790615572565b60405180910390fd5b5050565b612a8e828260405180602001604052806000815250613542565b5050565b6000612a9d82611853565b905060008173ffffffffffffffffffffffffffffffffffffffff16612ac061296d565b73ffffffffffffffffffffffffffffffffffffffff161480612b1c5750612ae561296d565b73ffffffffffffffffffffffffffffffffffffffff16612b0484610d1a565b73ffffffffffffffffffffffffffffffffffffffff16145b80612b345750612b3382612b2e61296d565b6126dd565b5b905080612b76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6d906155de565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612be4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bdb9061564a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612c54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4b906156b6565b60405180910390fd5b612c5e85856137f1565b612c6a60008484612975565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612cba91906144fd565b925050819055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d119190614531565b92505081905550836003600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600184612d799190614531565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612e4557612dec81612960565b15612e4457826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b612eb28282611cd9565b612f825760016008600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612f2761296d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b612f908282611cd9565b156130615760006008600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061300661296d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61306d61183c565b6130ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130a390615722565b60405180910390fd5b6000600960006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6130f061296d565b6040516130fd9190613c00565b60405180910390a1565b600061311282612960565b613151576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314890614b64565b60405180910390fd5b60008290505b6000811061321057600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613202576003600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505061324c565b808060019003915050613157565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132439061578e565b60405180910390fd5b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61331f61183c565b1561335f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161335690614442565b60405180910390fd5b6001600960006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586133a361296d565b6040516133b09190613c00565b60405180910390a1565b60006133db8473ffffffffffffffffffffffffffffffffffffffff166138f2565b15613535578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261340461296d565b8786866040518563ffffffff1660e01b815260040161342694939291906157f8565b6020604051808303816000875af192505050801561346257506040513d601f19601f8201168201806040525081019061345f9190615859565b60015b6134e5573d8060008114613492576040519150601f19603f3d011682016040523d82523d6000602084013e613497565b606091505b506000815114156134dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134d490614f42565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061353a565b600190505b949350505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156135b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135af906158d2565b60405180910390fd5b6135c181612960565b15613601576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135f89061593e565b60405180910390fd5b60008311613644576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161363b906159aa565b60405180910390fd5b61364f6000856137f1565b826fffffffffffffffffffffffffffffffff16600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136b09190614531565b92505081905550836003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600081905060005b848110156137e257818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461378260008784876133ba565b6137c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137b890614f42565b60405180910390fd5b81806137cc906159ca565b92505080806137da906159ca565b915050613711565b50806000819055505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415801561385b5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b156138ee57601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c50045a8826040518263ffffffff1660e01b81526004016138bb9190613c00565b600060405180830381600087803b1580156138d557600080fd5b505af11580156138e9573d6000803e3d6000fd5b505050505b5050565b600080823b905060008111915050919050565b82805461391190614280565b90600052602060002090601f016020900481019282613933576000855561397a565b82601f1061394c57803560ff191683800117855561397a565b8280016001018555821561397a579182015b8281111561397957823582559160200191906001019061395e565b5b509050613987919061398b565b5090565b5b808211156139a457600081600090555060010161398c565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6139f1816139bc565b81146139fc57600080fd5b50565b600081359050613a0e816139e8565b92915050565b600060208284031215613a2a57613a296139b2565b5b6000613a38848285016139ff565b91505092915050565b60008115159050919050565b613a5681613a41565b82525050565b6000602082019050613a716000830184613a4d565b92915050565b6000819050919050565b613a8a81613a77565b82525050565b6000602082019050613aa56000830184613a81565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ae5578082015181840152602081019050613aca565b83811115613af4576000848401525b50505050565b6000601f19601f8301169050919050565b6000613b1682613aab565b613b208185613ab6565b9350613b30818560208601613ac7565b613b3981613afa565b840191505092915050565b60006020820190508181036000830152613b5e8184613b0b565b905092915050565b613b6f81613a77565b8114613b7a57600080fd5b50565b600081359050613b8c81613b66565b92915050565b600060208284031215613ba857613ba76139b2565b5b6000613bb684828501613b7d565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613bea82613bbf565b9050919050565b613bfa81613bdf565b82525050565b6000602082019050613c156000830184613bf1565b92915050565b613c2481613bdf565b8114613c2f57600080fd5b50565b600081359050613c4181613c1b565b92915050565b60008060408385031215613c5e57613c5d6139b2565b5b6000613c6c85828601613c32565b9250506020613c7d85828601613b7d565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f840112613cac57613cab613c87565b5b8235905067ffffffffffffffff811115613cc957613cc8613c8c565b5b602083019150836001820283011115613ce557613ce4613c91565b5b9250929050565b600080600060408486031215613d0557613d046139b2565b5b6000613d1386828701613b7d565b935050602084013567ffffffffffffffff811115613d3457613d336139b7565b5b613d4086828701613c96565b92509250509250925092565b600080600060608486031215613d6557613d646139b2565b5b6000613d7386828701613c32565b9350506020613d8486828701613c32565b9250506040613d9586828701613b7d565b9150509250925092565b600060208284031215613db557613db46139b2565b5b6000613dc384828501613c32565b91505092915050565b6000819050919050565b613ddf81613dcc565b82525050565b6000602082019050613dfa6000830184613dd6565b92915050565b613e0981613dcc565b8114613e1457600080fd5b50565b600081359050613e2681613e00565b92915050565b60008060408385031215613e4357613e426139b2565b5b6000613e5185828601613e17565b9250506020613e6285828601613c32565b9150509250929050565b60008083601f840112613e8257613e81613c87565b5b8235905067ffffffffffffffff811115613e9f57613e9e613c8c565b5b602083019150836001820283011115613ebb57613eba613c91565b5b9250929050565b60008060208385031215613ed957613ed86139b2565b5b600083013567ffffffffffffffff811115613ef757613ef66139b7565b5b613f0385828601613e6c565b92509250509250929050565b600060208284031215613f2557613f246139b2565b5b6000613f3384828501613e17565b91505092915050565b613f4581613a41565b8114613f5057600080fd5b50565b600081359050613f6281613f3c565b92915050565b60008060408385031215613f7f57613f7e6139b2565b5b6000613f8d85828601613c32565b9250506020613f9e85828601613f53565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613fe582613afa565b810181811067ffffffffffffffff8211171561400457614003613fad565b5b80604052505050565b60006140176139a8565b90506140238282613fdc565b919050565b600067ffffffffffffffff82111561404357614042613fad565b5b61404c82613afa565b9050602081019050919050565b82818337600083830152505050565b600061407b61407684614028565b61400d565b90508281526020810184848401111561409757614096613fa8565b5b6140a2848285614059565b509392505050565b600082601f8301126140bf576140be613c87565b5b81356140cf848260208601614068565b91505092915050565b600080600080608085870312156140f2576140f16139b2565b5b600061410087828801613c32565b945050602061411187828801613c32565b935050604061412287828801613b7d565b925050606085013567ffffffffffffffff811115614143576141426139b7565b5b61414f878288016140aa565b91505092959194509250565b60008083601f84011261417157614170613c87565b5b8235905067ffffffffffffffff81111561418e5761418d613c8c565b5b6020830191508360208202830111156141aa576141a9613c91565b5b9250929050565b6000806000604084860312156141ca576141c96139b2565b5b60006141d886828701613b7d565b935050602084013567ffffffffffffffff8111156141f9576141f86139b7565b5b6142058682870161415b565b92509250509250925092565b60008060408385031215614228576142276139b2565b5b600061423685828601613c32565b925050602061424785828601613c32565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061429857607f821691505b602082108114156142ac576142ab614251565b5b50919050565b7f4150380000000000000000000000000000000000000000000000000000000000600082015250565b60006142e8600383613ab6565b91506142f3826142b2565b602082019050919050565b60006020820190508181036000830152614317816142db565b9050919050565b7f4150360000000000000000000000000000000000000000000000000000000000600082015250565b6000614354600383613ab6565b915061435f8261431e565b602082019050919050565b6000602082019050818103600083015261438381614347565b9050919050565b7f4150370000000000000000000000000000000000000000000000000000000000600082015250565b60006143c0600383613ab6565b91506143cb8261438a565b602082019050919050565b600060208201905081810360008301526143ef816143b3565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061442c601083613ab6565b9150614437826143f6565b602082019050919050565b6000602082019050818103600083015261445b8161441f565b9050919050565b7f4e32000000000000000000000000000000000000000000000000000000000000600082015250565b6000614498600283613ab6565b91506144a382614462565b602082019050919050565b600060208201905081810360008301526144c78161448b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061450882613a77565b915061451383613a77565b925082821015614526576145256144ce565b5b828203905092915050565b600061453c82613a77565b915061454783613a77565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561457c5761457b6144ce565b5b828201905092915050565b7f4e33000000000000000000000000000000000000000000000000000000000000600082015250565b60006145bd600283613ab6565b91506145c882614587565b602082019050919050565b600060208201905081810360008301526145ec816145b0565b9050919050565b7f4e34000000000000000000000000000000000000000000000000000000000000600082015250565b6000614629600283613ab6565b9150614634826145f3565b602082019050919050565b600060208201905081810360008301526146588161461c565b9050919050565b600061466a82613a77565b915061467583613a77565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156146ae576146ad6144ce565b5b828202905092915050565b7f4e35000000000000000000000000000000000000000000000000000000000000600082015250565b60006146ef600283613ab6565b91506146fa826146b9565b602082019050919050565b6000602082019050818103600083015261471e816146e2565b9050919050565b60008160601b9050919050565b600061473d82614725565b9050919050565b600061474f82614732565b9050919050565b61476761476282613bdf565b614744565b82525050565b6000819050919050565b61478861478382613a77565b61476d565b82525050565b600061479a8285614756565b6014820191506147aa8284614777565b6020820191508190509392505050565b600081519050919050565b600082825260208201905092915050565b60006147e1826147ba565b6147eb81856147c5565b93506147fb818560208601613ac7565b61480481613afa565b840191505092915050565b600061481b83856147c5565b9350614828838584614059565b61483183613afa565b840190509392505050565b6000604082019050818103600083015261485681866147d6565b9050818103602083015261486b81848661480f565b9050949350505050565b60008151905061488481613c1b565b92915050565b6000602082840312156148a05761489f6139b2565b5b60006148ae84828501614875565b91505092915050565b7f4e36000000000000000000000000000000000000000000000000000000000000600082015250565b60006148ed600283613ab6565b91506148f8826148b7565b602082019050919050565b6000602082019050818103600083015261491c816148e0565b9050919050565b7f4143310000000000000000000000000000000000000000000000000000000000600082015250565b6000614959600383613ab6565b915061496482614923565b602082019050919050565b600060208201905081810360008301526149888161494c565b9050919050565b600061499b8385613ab6565b93506149a8838584614059565b6149b183613afa565b840190509392505050565b600060208201905081810360008301526149d781848661498f565b90509392505050565b7f4e31360000000000000000000000000000000000000000000000000000000000600082015250565b6000614a16600383613ab6565b9150614a21826149e0565b602082019050919050565b60006020820190508181036000830152614a4581614a09565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614a8682613a77565b9150614a9183613a77565b925082614aa157614aa0614a4c565b5b828204905092915050565b7f4e31370000000000000000000000000000000000000000000000000000000000600082015250565b6000614ae2600383613ab6565b9150614aed82614aac565b602082019050919050565b60006020820190508181036000830152614b1181614ad5565b9050919050565b7f4150320000000000000000000000000000000000000000000000000000000000600082015250565b6000614b4e600383613ab6565b9150614b5982614b18565b602082019050919050565b60006020820190508181036000830152614b7d81614b41565b9050919050565b7f4150310000000000000000000000000000000000000000000000000000000000600082015250565b6000614bba600383613ab6565b9150614bc582614b84565b602082019050919050565b60006020820190508181036000830152614be981614bad565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614c26602083613ab6565b9150614c3182614bf0565b602082019050919050565b60006020820190508181036000830152614c5581614c19565b9050919050565b7f4e30000000000000000000000000000000000000000000000000000000000000600082015250565b6000614c92600283613ab6565b9150614c9d82614c5c565b602082019050919050565b60006020820190508181036000830152614cc181614c85565b9050919050565b7f4e31350000000000000000000000000000000000000000000000000000000000600082015250565b6000614cfe600383613ab6565b9150614d0982614cc8565b602082019050919050565b60006020820190508181036000830152614d2d81614cf1565b9050919050565b7f4150390000000000000000000000000000000000000000000000000000000000600082015250565b6000614d6a600383613ab6565b9150614d7582614d34565b602082019050919050565b60006020820190508181036000830152614d9981614d5d565b9050919050565b7f4e31320000000000000000000000000000000000000000000000000000000000600082015250565b6000614dd6600383613ab6565b9150614de182614da0565b602082019050919050565b60006020820190508181036000830152614e0581614dc9565b9050919050565b600067ffffffffffffffff821115614e2757614e26613fad565b5b614e3082613afa565b9050602081019050919050565b6000614e50614e4b84614e0c565b61400d565b905082815260208101848484011115614e6c57614e6b613fa8565b5b614e77848285613ac7565b509392505050565b600082601f830112614e9457614e93613c87565b5b8151614ea4848260208601614e3d565b91505092915050565b600060208284031215614ec357614ec26139b2565b5b600082015167ffffffffffffffff811115614ee157614ee06139b7565b5b614eed84828501614e7f565b91505092915050565b7f4150313000000000000000000000000000000000000000000000000000000000600082015250565b6000614f2c600483613ab6565b9150614f3782614ef6565b602082019050919050565b60006020820190508181036000830152614f5b81614f1f565b9050919050565b614f6b81613a77565b82525050565b6000602082019050614f866000830184614f62565b92915050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614fb981614280565b614fc38186614f8c565b94506001821660008114614fde5760018114614fef57615022565b60ff19831686528186019350615022565b614ff885614f97565b60005b8381101561501a57815481890152600182019150602081019050614ffb565b838801955050505b50505092915050565b600061503682613aab565b6150408185614f8c565b9350615050818560208601613ac7565b80840191505092915050565b60006150688285614fac565b9150615074828461502b565b91508190509392505050565b7f4e37000000000000000000000000000000000000000000000000000000000000600082015250565b60006150b6600283613ab6565b91506150c182615080565b602082019050919050565b600060208201905081810360008301526150e5816150a9565b9050919050565b7f4e31380000000000000000000000000000000000000000000000000000000000600082015250565b6000615122600383613ab6565b915061512d826150ec565b602082019050919050565b6000602082019050818103600083015261515181615115565b9050919050565b7f4e38000000000000000000000000000000000000000000000000000000000000600082015250565b600061518e600283613ab6565b915061519982615158565b602082019050919050565b600060208201905081810360008301526151bd81615181565b9050919050565b7f4e39000000000000000000000000000000000000000000000000000000000000600082015250565b60006151fa600283613ab6565b9150615205826151c4565b602082019050919050565b60006020820190508181036000830152615229816151ed565b9050919050565b7f4e31300000000000000000000000000000000000000000000000000000000000600082015250565b6000615266600383613ab6565b915061527182615230565b602082019050919050565b6000602082019050818103600083015261529581615259565b9050919050565b60006152a88284614756565b60148201915081905092915050565b600082825260208201905092915050565b600080fd5b60006152d983856152b7565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561530c5761530b6152c8565b5b60208302925061531d838584614059565b82840190509392505050565b61533281613dcc565b82525050565b600060608201905081810360008301526153538186886152cd565b90506153626020830185615329565b61536f6040830184615329565b95945050505050565b60008151905061538781613f3c565b92915050565b6000602082840312156153a3576153a26139b2565b5b60006153b184828501615378565b91505092915050565b7f4e31310000000000000000000000000000000000000000000000000000000000600082015250565b60006153f0600383613ab6565b91506153fb826153ba565b602082019050919050565b6000602082019050818103600083015261541f816153e3565b9050919050565b7f636f6c6c656374696f6e00000000000000000000000000000000000000000000600082015250565b600061545c600a83614f8c565b915061546782615426565b600a82019050919050565b600061547e8284614fac565b91506154898261544f565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154f0602683613ab6565b91506154fb82615494565b604082019050919050565b6000602082019050818103600083015261551f816154e3565b9050919050565b7f4143300000000000000000000000000000000000000000000000000000000000600082015250565b600061555c600383613ab6565b915061556782615526565b602082019050919050565b6000602082019050818103600083015261558b8161554f565b9050919050565b7f4150313500000000000000000000000000000000000000000000000000000000600082015250565b60006155c8600483613ab6565b91506155d382615592565b602082019050919050565b600060208201905081810360008301526155f7816155bb565b9050919050565b7f4150313600000000000000000000000000000000000000000000000000000000600082015250565b6000615634600483613ab6565b915061563f826155fe565b602082019050919050565b6000602082019050818103600083015261566381615627565b9050919050565b7f4150313700000000000000000000000000000000000000000000000000000000600082015250565b60006156a0600483613ab6565b91506156ab8261566a565b602082019050919050565b600060208201905081810360008301526156cf81615693565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061570c601483613ab6565b9150615717826156d6565b602082019050919050565b6000602082019050818103600083015261573b816156ff565b9050919050565b7f4150330000000000000000000000000000000000000000000000000000000000600082015250565b6000615778600383613ab6565b915061578382615742565b602082019050919050565b600060208201905081810360008301526157a78161576b565b9050919050565b600082825260208201905092915050565b60006157ca826147ba565b6157d481856157ae565b93506157e4818560208601613ac7565b6157ed81613afa565b840191505092915050565b600060808201905061580d6000830187613bf1565b61581a6020830186613bf1565b6158276040830185613a81565b818103606083015261583981846157bf565b905095945050505050565b600081519050615853816139e8565b92915050565b60006020828403121561586f5761586e6139b2565b5b600061587d84828501615844565b91505092915050565b7f4150313100000000000000000000000000000000000000000000000000000000600082015250565b60006158bc600483613ab6565b91506158c782615886565b602082019050919050565b600060208201905081810360008301526158eb816158af565b9050919050565b7f4150313200000000000000000000000000000000000000000000000000000000600082015250565b6000615928600483613ab6565b9150615933826158f2565b602082019050919050565b600060208201905081810360008301526159578161591b565b9050919050565b7f4150313300000000000000000000000000000000000000000000000000000000600082015250565b6000615994600483613ab6565b915061599f8261595e565b602082019050919050565b600060208201905081810360008301526159c381615987565b9050919050565b60006159d582613a77565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615a0857615a076144ce565b5b60018201905091905056fea2646970667358221220dfc4e20562ccc60922fe7602be29578f8a2c5f272dfb5c27256e4c1bc236c19964736f6c634300080b0033608060405260405180608001604052806201117062ffffff16815260200162015f9062ffffff168152602001620182b862ffffff168152602001620186a062ffffff168152506006906004620000579291906200020a565b5060016007553480156200006a57600080fd5b50604051806020016040528060008152506200008c816200012060201b60201c565b50620000ad620000a16200013c60201b60201c565b6200014460201b60201c565b33600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600a600080815260200190815260200160002060006101000a81548160ff02191690831515021790555062000378565b80600290805190602001906200013892919062000263565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805482825590600052602060002090810192821562000250579160200282015b828111156200024f578251829062ffffff169055916020019190600101906200022b565b5b5090506200025f9190620002f4565b5090565b828054620002719062000342565b90600052602060002090601f016020900481019282620002955760008555620002e1565b82601f10620002b057805160ff1916838001178555620002e1565b82800160010185558215620002e1579182015b82811115620002e0578251825591602001919060010190620002c3565b5b509050620002f09190620002f4565b5090565b5b808211156200030f576000816000905550600101620002f5565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200035b57607f821691505b6020821081141562000372576200037162000313565b5b50919050565b615ddb80620003886000396000f3fe6080604052600436106101805760003560e01c8063715018a6116100d1578063c50045a81161008a578063e985e9c511610064578063e985e9c514610556578063f242432a14610593578063f2fde38b146105bc578063f5298aca146105e557610180565b8063c50045a8146104db578063c8032eb814610504578063e930f0461461052d57610180565b8063715018a6146103e1578063862440e2146103f85780638da5cb5b146104215780638ed67eaa1461044c578063a22cb46514610475578063bd85b0391461049e57610180565b80632e7410331161013e578063496c2d2811610118578063496c2d28146103155780634e1273f41461033e5780634f558e791461037b5780636b20c454146103b857610180565b80632e741033146102b95780632eb2c2d6146102e25780633a4b66f11461030b57610180565b8062fdd58e1461018557806301ffc9a7146101c25780630e89341c146101ff57806316934fc41461023c5780631f7fdffa146102795780632def6620146102a2575b600080fd5b34801561019157600080fd5b506101ac60048036038101906101a791906139e9565b61060e565b6040516101b99190613a38565b60405180910390f35b3480156101ce57600080fd5b506101e960048036038101906101e49190613aab565b6106d7565b6040516101f69190613af3565b60405180910390f35b34801561020b57600080fd5b5061022660048036038101906102219190613b0e565b6106e9565b6040516102339190613bd4565b60405180910390f35b34801561024857600080fd5b50610263600480360381019061025e9190613bf6565b61078e565b6040516102709190613a38565b60405180910390f35b34801561028557600080fd5b506102a0600480360381019061029b9190613e20565b6107a6565b005b3480156102ae57600080fd5b506102b76108b5565b005b3480156102c557600080fd5b506102e060048036038101906102db9190613edb565b610a0a565b005b3480156102ee57600080fd5b5061030960048036038101906103049190613f1b565b610afe565b005b610313610b9f565b005b34801561032157600080fd5b5061033c60048036038101906103379190614045565b610bf7565b005b34801561034a57600080fd5b506103656004803603810190610360919061417c565b610ee3565b60405161037291906142b2565b60405180910390f35b34801561038757600080fd5b506103a2600480360381019061039d9190613b0e565b610ffc565b6040516103af9190613af3565b60405180910390f35b3480156103c457600080fd5b506103df60048036038101906103da91906142d4565b611010565b005b3480156103ed57600080fd5b506103f66110ad565b005b34801561040457600080fd5b5061041f600480360381019061041a9190614400565b611135565b005b34801561042d57600080fd5b50610436611240565b604051610443919061446b565b60405180910390f35b34801561045857600080fd5b50610473600480360381019061046e91906144dc565b61126a565b005b34801561048157600080fd5b5061049c60048036038101906104979190614555565b611538565b005b3480156104aa57600080fd5b506104c560048036038101906104c09190613b0e565b61154e565b6040516104d29190613a38565b60405180910390f35b3480156104e757600080fd5b5061050260048036038101906104fd9190613bf6565b61156b565b005b34801561051057600080fd5b5061052b60048036038101906105269190614595565b611688565b005b34801561053957600080fd5b50610554600480360381019061054f919061461d565b611a00565b005b34801561056257600080fd5b5061057d60048036038101906105789190614670565b611c7b565b60405161058a9190613af3565b60405180910390f35b34801561059f57600080fd5b506105ba60048036038101906105b591906146b0565b611d0f565b005b3480156105c857600080fd5b506105e360048036038101906105de9190613bf6565b611db0565b005b3480156105f157600080fd5b5061060c60048036038101906106079190614747565b611ea8565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561067f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106769061480c565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60006106e282611f45565b9050919050565b60606005600083815260200190815260200160002080546107099061485b565b80601f01602080910402602001604051908101604052809291908181526020018280546107359061485b565b80156107825780601f1061075757610100808354040283529160200191610782565b820191906000526020600020905b81548152906001019060200180831161076557829003601f168201915b50505050509050919050565b600b6020528060005260406000206000915090505481565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148547f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336040518363ffffffff1660e01b81526004016108239291906148a6565b602060405180830381865afa158015610840573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086491906148e4565b6108a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089a9061495d565b60405180910390fd5b6108af84848484612027565b50505050565b6000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610937576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092e906149c9565b60405180910390fd5b6000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610a06573d6000803e3d6000fd5b5050565b600a600083815260200190815260200160002060009054906101000a900460ff16610a6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6190614a35565b60405180910390fd5b80610a75338461060e565b1015610ab6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aad90614aa1565b60405180910390fd5b610ac1338383612245565b7f750ea7e8b186e5a437ae19786f4b802f8b9523552972353e0fe0ca0768827c268282604051610af2929190614ac1565b60405180910390a15050565b610b06612462565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610b4c5750610b4b85610b46612462565b611c7b565b5b610b8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8290614b5c565b60405180910390fd5b610b98858585858561246a565b5050505050565b34600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610bee9190614bab565b92505081905550565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632d0335ab336040518263ffffffff1660e01b8152600401610c54919061446b565b602060405180830381865afa158015610c71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c959190614c16565b9050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148547fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70734fbaf8986aa4cd331adf4cbbc01f4c105cc46aaa631ed13d1b33868b8b604051602001610d279493929190614cac565b60405160208183030381529060405288886040518463ffffffff1660e01b8152600401610d5693929190614d7c565b602060405180830381865af4158015610d73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d979190614dca565b6040518363ffffffff1660e01b8152600401610db49291906148a6565b602060405180830381865afa158015610dd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df591906148e4565b610e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2b90614e43565b60405180910390fd5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f5743c4c336040518263ffffffff1660e01b8152600401610e8f919061446b565b600060405180830381600087803b158015610ea957600080fd5b505af1158015610ebd573d6000803e3d6000fd5b50505050610edc3386866040518060200160405280600081525061277e565b5050505050565b60608151835114610f29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2090614ed5565b60405180910390fd5b6000835167ffffffffffffffff811115610f4657610f45613c28565b5b604051908082528060200260200182016040528015610f745781602001602082028036833780820191505090505b50905060005b8451811015610ff157610fc1858281518110610f9957610f98614ef5565b5b6020026020010151858381518110610fb457610fb3614ef5565b5b602002602001015161060e565b828281518110610fd457610fd3614ef5565b5b60200260200101818152505080610fea90614f24565b9050610f7a565b508091505092915050565b6000806110088361154e565b119050919050565b611018612462565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061105e575061105d83611058612462565b611c7b565b5b61109d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109490614fdf565b60405180910390fd5b6110a8838383612914565b505050565b6110b5612462565b73ffffffffffffffffffffffffffffffffffffffff166110d3611240565b73ffffffffffffffffffffffffffffffffffffffff1614611129576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111209061504b565b60405180910390fd5b6111336000612bc5565b565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148547f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336040518363ffffffff1660e01b81526004016111b29291906148a6565b602060405180830381865afa1580156111cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f391906148e4565b611232576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611229906150b7565b60405180910390fd5b61123c8282612c8b565b5050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148546000801b336040518363ffffffff1660e01b81526004016112ca9291906148a6565b602060405180830381865afa1580156112e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130b91906148e4565b61134a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113419061495d565b60405180910390fd5b60048282905014611390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138790615123565b60405180910390fd5b620186a0828260038181106113a8576113a7614ef5565b5b90506020020135146113ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e690615123565b60405180910390fd5b8181600181811061140357611402614ef5565b5b905060200201358282600081811061141e5761141d614ef5565b5b905060200201351115801561146757508181600281811061144257611441614ef5565b5b905060200201358282600181811061145d5761145c614ef5565b5b9050602002013511155b80156114a757508181600381811061148257611481614ef5565b5b905060200201358282600281811061149d5761149c614ef5565b5b9050602002013511155b6114e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114dd90615123565b60405180910390fd5b7fbec6a2847a33383c986e45151dc6623bdbff052d7d8e74c7ede9ad09ca1809f76006838360405161151a9392919061527a565b60405180910390a1818160069190611533929190613851565b505050565b61154a611543612462565b8383612cb7565b5050565b600060046000838152602001908152602001600020549050919050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148547f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336040518363ffffffff1660e01b81526004016115e89291906148a6565b602060405180830381865afa158015611605573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061162991906148e4565b611668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165f9061495d565b60405180910390fd5b61168581600060016040518060200160405280600081525061277e565b50565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148547fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70336040518363ffffffff1660e01b81526004016117059291906148a6565b602060405180830381865afa158015611722573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174691906148e4565b611785576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177c9061495d565b60405180910390fd5b6000734fbaf8986aa4cd331adf4cbbc01f4c105cc46aaa631ed13d1b866040516020016117b291906152d4565b60405160208183030381529060405285856040518463ffffffff1660e01b81526004016117e193929190614d7c565b602060405180830381865af41580156117fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118229190614dca565b90508561183082600061060e565b1015611871576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118689061533b565b60405180910390fd5b3a600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156118f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ea906153a7565b60405180910390fd5b6118ff81600088612245565b60005b8681101561195a576000868683604051602001611921939291906153c7565b6040516020818303038152906040528051906020012060001c90506119468382612e24565b50808061195290614f24565b915050611902565b503a600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119aa9190615404565b925050819055503373ffffffffffffffffffffffffffffffffffffffff166108fc3a9081150290604051600060405180830381858888f193505050501580156119f7573d6000803e3d6000fd5b50505050505050565b600483108015611a11575060008310155b611a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4790615484565b60405180910390fd5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148547f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336040518363ffffffff1660e01b8152600401611acd9291906148a6565b602060405180830381865afa158015611aea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0e91906148e4565b611b4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b44906150b7565b60405180910390fd5b60005b82811015611bf75780600754611b669190614bab565b600860008681526020019081526020016000206000836009600089815260200190815260200160002054611b9a9190614bab565b81526020019081526020016000208190555081600a600083600754611bbf9190614bab565b815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611bef90614f24565b915050611b50565b5081600960008581526020019081526020016000206000828254611c1b9190614bab565b925050819055508160076000828254611c349190614bab565b925050819055507f61b0cb087d858bb391a9cc54bdb646ac7a0c85fe2e1023c959176231f0f62842838383604051611c6e939291906154a4565b60405180910390a1505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611d17612462565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611d5d5750611d5c85611d57612462565b611c7b565b5b611d9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9390614fdf565b60405180910390fd5b611da98585858585612f90565b5050505050565b611db8612462565b73ffffffffffffffffffffffffffffffffffffffff16611dd6611240565b73ffffffffffffffffffffffffffffffffffffffff1614611e2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e239061504b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e939061554d565b60405180910390fd5b611ea581612bc5565b50565b611eb0612462565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480611ef65750611ef583611ef0612462565b611c7b565b5b611f35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2c90614fdf565b60405180910390fd5b611f40838383612245565b505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061201057507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612020575061201f82613212565b5b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612097576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208e906155df565b60405180910390fd5b81518351146120db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d290615671565b60405180910390fd5b60006120e5612462565b90506120f68160008787878761327c565b60005b84518110156121af5783818151811061211557612114614ef5565b5b602002602001015160008087848151811061213357612132614ef5565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121959190614bab565b9250508190555080806121a790614f24565b9150506120f9565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612227929190615691565b60405180910390a461223e81600087878787613292565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156122b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ac9061573a565b60405180910390fd5b60006122bf612462565b90506122ef818560006122d18761346a565b6122da8761346a565b6040518060200160405280600081525061327c565b600080600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015612386576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237d906157cc565b60405180910390fd5b82810360008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051612453929190614ac1565b60405180910390a45050505050565b600033905090565b81518351146124ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a590615671565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561251e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125159061585e565b60405180910390fd5b6000612528612462565b905061253881878787878761327c565b60005b84518110156126e957600085828151811061255957612558614ef5565b5b60200260200101519050600085838151811061257857612577614ef5565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612619576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612610906158f0565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126ce9190614bab565b92505081905550505050806126e290614f24565b905061253b565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612760929190615691565b60405180910390a4612776818787878787613292565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156127ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e5906155df565b60405180910390fd5b60006127f8612462565b90506128198160008761280a8861346a565b6128138861346a565b8761327c565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128789190614bab565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516128f6929190614ac1565b60405180910390a461290d816000878787876134e4565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612984576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161297b9061573a565b60405180910390fd5b80518251146129c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129bf90615671565b60405180910390fd5b60006129d2612462565b90506129f28185600086866040518060200160405280600081525061327c565b60005b8351811015612b3f576000848281518110612a1357612a12614ef5565b5b602002602001015190506000848381518110612a3257612a31614ef5565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aca906157cc565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050508080612b3790614f24565b9150506129f5565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612bb7929190615691565b60405180910390a450505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600560008481526020019081526020016000209080519060200190612cb292919061389e565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612d26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1d90615982565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612e179190613af3565b60405180910390a3505050565b6000620186a082612e3591906159d1565b905060006006600081548110612e4e57612e4d614ef5565b5b9060005260206000200154821015612e695760009050612ed0565b6006600181548110612e7e57612e7d614ef5565b5b9060005260206000200154821015612e995760019050612ecf565b6006600281548110612eae57612ead614ef5565b5b9060005260206000200154821015612ec95760029050612ece565b600390505b5b5b6000600960008381526020019081526020016000205411612f26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f1d90615a4e565b60405180910390fd5b6000600960008381526020019081526020016000205484612f4791906159d1565b9050612f89856008600085815260200190815260200160002060008481526020019081526020016000205460016040518060200160405280600081525061277e565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613000576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff79061585e565b60405180910390fd5b600061300a612462565b905061302a81878761301b8861346a565b6130248861346a565b8761327c565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050838110156130c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130b8906158f0565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131769190614bab565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288886040516131f3929190614ac1565b60405180910390a46132098288888888886134e4565b50505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61328a8686868686866136bc565b505050505050565b6132b18473ffffffffffffffffffffffffffffffffffffffff16613836565b15613462578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016132f7959493929190615ab8565b6020604051808303816000875af192505050801561333357506040513d601f19601f820116820180604052508101906133309190615b35565b60015b6133d95761333f615b6f565b806308c379a0141561339c5750613354615b91565b8061335f575061339e565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133939190613bd4565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133d090615c99565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613460576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345790615d2b565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff81111561348957613488613c28565b5b6040519080825280602002602001820160405280156134b75781602001602082028036833780820191505090505b50905082816000815181106134cf576134ce614ef5565b5b60200260200101818152505080915050919050565b6135038473ffffffffffffffffffffffffffffffffffffffff16613836565b156136b4578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401613549959493929190615d4b565b6020604051808303816000875af192505050801561358557506040513d601f19601f820116820180604052508101906135829190615b35565b60015b61362b57613591615b6f565b806308c379a014156135ee57506135a6615b91565b806135b157506135f0565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135e59190613bd4565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161362290615c99565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146136b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136a990615d2b565b60405180910390fd5b505b505050505050565b6136ca868686868686613849565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561377c5760005b835181101561377a5782818151811061371e5761371d614ef5565b5b60200260200101516004600086848151811061373d5761373c614ef5565b5b6020026020010151815260200190815260200160002060008282546137629190614bab565b925050819055508061377390614f24565b9050613702565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561382e5760005b835181101561382c578281815181106137d0576137cf614ef5565b5b6020026020010151600460008684815181106137ef576137ee614ef5565b5b6020026020010151815260200190815260200160002060008282546138149190615404565b925050819055508061382590614f24565b90506137b4565b505b505050505050565b600080823b905060008111915050919050565b505050505050565b82805482825590600052602060002090810192821561388d579160200282015b8281111561388c578235825591602001919060010190613871565b5b50905061389a9190613924565b5090565b8280546138aa9061485b565b90600052602060002090601f0160209004810192826138cc5760008555613913565b82601f106138e557805160ff1916838001178555613913565b82800160010185558215613913579182015b828111156139125782518255916020019190600101906138f7565b5b5090506139209190613924565b5090565b5b8082111561393d576000816000905550600101613925565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061398082613955565b9050919050565b61399081613975565b811461399b57600080fd5b50565b6000813590506139ad81613987565b92915050565b6000819050919050565b6139c6816139b3565b81146139d157600080fd5b50565b6000813590506139e3816139bd565b92915050565b60008060408385031215613a00576139ff61394b565b5b6000613a0e8582860161399e565b9250506020613a1f858286016139d4565b9150509250929050565b613a32816139b3565b82525050565b6000602082019050613a4d6000830184613a29565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613a8881613a53565b8114613a9357600080fd5b50565b600081359050613aa581613a7f565b92915050565b600060208284031215613ac157613ac061394b565b5b6000613acf84828501613a96565b91505092915050565b60008115159050919050565b613aed81613ad8565b82525050565b6000602082019050613b086000830184613ae4565b92915050565b600060208284031215613b2457613b2361394b565b5b6000613b32848285016139d4565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613b75578082015181840152602081019050613b5a565b83811115613b84576000848401525b50505050565b6000601f19601f8301169050919050565b6000613ba682613b3b565b613bb08185613b46565b9350613bc0818560208601613b57565b613bc981613b8a565b840191505092915050565b60006020820190508181036000830152613bee8184613b9b565b905092915050565b600060208284031215613c0c57613c0b61394b565b5b6000613c1a8482850161399e565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613c6082613b8a565b810181811067ffffffffffffffff82111715613c7f57613c7e613c28565b5b80604052505050565b6000613c92613941565b9050613c9e8282613c57565b919050565b600067ffffffffffffffff821115613cbe57613cbd613c28565b5b602082029050602081019050919050565b600080fd5b6000613ce7613ce284613ca3565b613c88565b90508083825260208201905060208402830185811115613d0a57613d09613ccf565b5b835b81811015613d335780613d1f88826139d4565b845260208401935050602081019050613d0c565b5050509392505050565b600082601f830112613d5257613d51613c23565b5b8135613d62848260208601613cd4565b91505092915050565b600080fd5b600067ffffffffffffffff821115613d8b57613d8a613c28565b5b613d9482613b8a565b9050602081019050919050565b82818337600083830152505050565b6000613dc3613dbe84613d70565b613c88565b905082815260208101848484011115613ddf57613dde613d6b565b5b613dea848285613da1565b509392505050565b600082601f830112613e0757613e06613c23565b5b8135613e17848260208601613db0565b91505092915050565b60008060008060808587031215613e3a57613e3961394b565b5b6000613e488782880161399e565b945050602085013567ffffffffffffffff811115613e6957613e68613950565b5b613e7587828801613d3d565b935050604085013567ffffffffffffffff811115613e9657613e95613950565b5b613ea287828801613d3d565b925050606085013567ffffffffffffffff811115613ec357613ec2613950565b5b613ecf87828801613df2565b91505092959194509250565b60008060408385031215613ef257613ef161394b565b5b6000613f00858286016139d4565b9250506020613f11858286016139d4565b9150509250929050565b600080600080600060a08688031215613f3757613f3661394b565b5b6000613f458882890161399e565b9550506020613f568882890161399e565b945050604086013567ffffffffffffffff811115613f7757613f76613950565b5b613f8388828901613d3d565b935050606086013567ffffffffffffffff811115613fa457613fa3613950565b5b613fb088828901613d3d565b925050608086013567ffffffffffffffff811115613fd157613fd0613950565b5b613fdd88828901613df2565b9150509295509295909350565b600080fd5b60008083601f84011261400557614004613c23565b5b8235905067ffffffffffffffff81111561402257614021613fea565b5b60208301915083600182028301111561403e5761403d613ccf565b5b9250929050565b6000806000806060858703121561405f5761405e61394b565b5b600061406d878288016139d4565b945050602061407e878288016139d4565b935050604085013567ffffffffffffffff81111561409f5761409e613950565b5b6140ab87828801613fef565b925092505092959194509250565b600067ffffffffffffffff8211156140d4576140d3613c28565b5b602082029050602081019050919050565b60006140f86140f3846140b9565b613c88565b9050808382526020820190506020840283018581111561411b5761411a613ccf565b5b835b818110156141445780614130888261399e565b84526020840193505060208101905061411d565b5050509392505050565b600082601f83011261416357614162613c23565b5b81356141738482602086016140e5565b91505092915050565b600080604083850312156141935761419261394b565b5b600083013567ffffffffffffffff8111156141b1576141b0613950565b5b6141bd8582860161414e565b925050602083013567ffffffffffffffff8111156141de576141dd613950565b5b6141ea85828601613d3d565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614229816139b3565b82525050565b600061423b8383614220565b60208301905092915050565b6000602082019050919050565b600061425f826141f4565b61426981856141ff565b935061427483614210565b8060005b838110156142a557815161428c888261422f565b975061429783614247565b925050600181019050614278565b5085935050505092915050565b600060208201905081810360008301526142cc8184614254565b905092915050565b6000806000606084860312156142ed576142ec61394b565b5b60006142fb8682870161399e565b935050602084013567ffffffffffffffff81111561431c5761431b613950565b5b61432886828701613d3d565b925050604084013567ffffffffffffffff81111561434957614348613950565b5b61435586828701613d3d565b9150509250925092565b600067ffffffffffffffff82111561437a57614379613c28565b5b61438382613b8a565b9050602081019050919050565b60006143a361439e8461435f565b613c88565b9050828152602081018484840111156143bf576143be613d6b565b5b6143ca848285613da1565b509392505050565b600082601f8301126143e7576143e6613c23565b5b81356143f7848260208601614390565b91505092915050565b600080604083850312156144175761441661394b565b5b6000614425858286016139d4565b925050602083013567ffffffffffffffff81111561444657614445613950565b5b614452858286016143d2565b9150509250929050565b61446581613975565b82525050565b6000602082019050614480600083018461445c565b92915050565b60008083601f84011261449c5761449b613c23565b5b8235905067ffffffffffffffff8111156144b9576144b8613fea565b5b6020830191508360208202830111156144d5576144d4613ccf565b5b9250929050565b600080602083850312156144f3576144f261394b565b5b600083013567ffffffffffffffff81111561451157614510613950565b5b61451d85828601614486565b92509250509250929050565b61453281613ad8565b811461453d57600080fd5b50565b60008135905061454f81614529565b92915050565b6000806040838503121561456c5761456b61394b565b5b600061457a8582860161399e565b925050602061458b85828601614540565b9150509250929050565b6000806000806000608086880312156145b1576145b061394b565b5b60006145bf888289016139d4565b95505060206145d088828901613a96565b94505060406145e188828901613a96565b935050606086013567ffffffffffffffff81111561460257614601613950565b5b61460e88828901613fef565b92509250509295509295909350565b6000806000606084860312156146365761463561394b565b5b6000614644868287016139d4565b9350506020614655868287016139d4565b925050604061466686828701614540565b9150509250925092565b600080604083850312156146875761468661394b565b5b60006146958582860161399e565b92505060206146a68582860161399e565b9150509250929050565b600080600080600060a086880312156146cc576146cb61394b565b5b60006146da8882890161399e565b95505060206146eb8882890161399e565b94505060406146fc888289016139d4565b935050606061470d888289016139d4565b925050608086013567ffffffffffffffff81111561472e5761472d613950565b5b61473a88828901613df2565b9150509295509295909350565b6000806000606084860312156147605761475f61394b565b5b600061476e8682870161399e565b935050602061477f868287016139d4565b9250506040614790868287016139d4565b9150509250925092565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b60006147f6602b83613b46565b91506148018261479a565b604082019050919050565b60006020820190508181036000830152614825816147e9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061487357607f821691505b602082108114156148875761488661482c565b5b50919050565b6000819050919050565b6148a08161488d565b82525050565b60006040820190506148bb6000830185614897565b6148c8602083018461445c565b9392505050565b6000815190506148de81614529565b92915050565b6000602082840312156148fa576148f961394b565b5b6000614908848285016148cf565b91505092915050565b7f4143300000000000000000000000000000000000000000000000000000000000600082015250565b6000614947600383613b46565b915061495282614911565b602082019050919050565b600060208201905081810360008301526149768161493a565b9050919050565b7f4e6f207374616b65000000000000000000000000000000000000000000000000600082015250565b60006149b3600883613b46565b91506149be8261497d565b602082019050919050565b600060208201905081810360008301526149e2816149a6565b9050919050565b7f4e41303600000000000000000000000000000000000000000000000000000000600082015250565b6000614a1f600483613b46565b9150614a2a826149e9565b602082019050919050565b60006020820190508181036000830152614a4e81614a12565b9050919050565b7f4e41303400000000000000000000000000000000000000000000000000000000600082015250565b6000614a8b600483613b46565b9150614a9682614a55565b602082019050919050565b60006020820190508181036000830152614aba81614a7e565b9050919050565b6000604082019050614ad66000830185613a29565b614ae36020830184613a29565b9392505050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000614b46603283613b46565b9150614b5182614aea565b604082019050919050565b60006020820190508181036000830152614b7581614b39565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614bb6826139b3565b9150614bc1836139b3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614bf657614bf5614b7c565b5b828201905092915050565b600081519050614c10816139bd565b92915050565b600060208284031215614c2c57614c2b61394b565b5b6000614c3a84828501614c01565b91505092915050565b60008160601b9050919050565b6000614c5b82614c43565b9050919050565b6000614c6d82614c50565b9050919050565b614c85614c8082613975565b614c62565b82525050565b6000819050919050565b614ca6614ca1826139b3565b614c8b565b82525050565b6000614cb88287614c74565b601482019150614cc88286614c95565b602082019150614cd88285614c95565b602082019150614ce88284614c95565b60208201915081905095945050505050565b600081519050919050565b600082825260208201905092915050565b6000614d2182614cfa565b614d2b8185614d05565b9350614d3b818560208601613b57565b614d4481613b8a565b840191505092915050565b6000614d5b8385614d05565b9350614d68838584613da1565b614d7183613b8a565b840190509392505050565b60006040820190508181036000830152614d968186614d16565b90508181036020830152614dab818486614d4f565b9050949350505050565b600081519050614dc481613987565b92915050565b600060208284031215614de057614ddf61394b565b5b6000614dee84828501614db5565b91505092915050565b7f4e36000000000000000000000000000000000000000000000000000000000000600082015250565b6000614e2d600283613b46565b9150614e3882614df7565b602082019050919050565b60006020820190508181036000830152614e5c81614e20565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000614ebf602983613b46565b9150614eca82614e63565b604082019050919050565b60006020820190508181036000830152614eee81614eb2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614f2f826139b3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614f6257614f61614b7c565b5b600182019050919050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b6000614fc9602983613b46565b9150614fd482614f6d565b604082019050919050565b60006020820190508181036000830152614ff881614fbc565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615035602083613b46565b915061504082614fff565b602082019050919050565b6000602082019050818103600083015261506481615028565b9050919050565b7f4d697373696e6720726f6c650000000000000000000000000000000000000000600082015250565b60006150a1600c83613b46565b91506150ac8261506b565b602082019050919050565b600060208201905081810360008301526150d081615094565b9050919050565b7f4e41303300000000000000000000000000000000000000000000000000000000600082015250565b600061510d600483613b46565b9150615118826150d7565b602082019050919050565b6000602082019050818103600083015261513c81615100565b9050919050565b600081549050919050565b60008190508160005260206000209050919050565b60008160001c9050919050565b6000819050919050565b600061518d61518883615163565b615170565b9050919050565b60006151a0825461517a565b9050919050565b6000600182019050919050565b60006151bf82615143565b6151c981856141ff565b93506151d48361514e565b8060005b8381101561520c576151e982615194565b6151f3888261422f565b97506151fe836151a7565b9250506001810190506151d8565b5085935050505092915050565b600080fd5b600061522a83856141ff565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561525d5761525c615219565b5b60208302925061526e838584613da1565b82840190509392505050565b6000604082019050818103600083015261529481866151b4565b905081810360208301526152a981848661521e565b9050949350505050565b6000819050919050565b6152ce6152c982613a53565b6152b3565b82525050565b60006152e082846152bd565b60048201915081905092915050565b7f4e41303000000000000000000000000000000000000000000000000000000000600082015250565b6000615325600483613b46565b9150615330826152ef565b602082019050919050565b6000602082019050818103600083015261535481615318565b9050919050565b7f4e41303100000000000000000000000000000000000000000000000000000000600082015250565b6000615391600483613b46565b915061539c8261535b565b602082019050919050565b600060208201905081810360008301526153c081615384565b9050919050565b60006153d382866152bd565b6004820191506153e382856152bd565b6004820191506153f38284614c95565b602082019150819050949350505050565b600061540f826139b3565b915061541a836139b3565b92508282101561542d5761542c614b7c565b5b828203905092915050565b7f4e41303700000000000000000000000000000000000000000000000000000000600082015250565b600061546e600483613b46565b915061547982615438565b602082019050919050565b6000602082019050818103600083015261549d81615461565b9050919050565b60006060820190506154b96000830186613a29565b6154c66020830185613a29565b6154d36040830184613ae4565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615537602683613b46565b9150615542826154db565b604082019050919050565b600060208201905081810360008301526155668161552a565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006155c9602183613b46565b91506155d48261556d565b604082019050919050565b600060208201905081810360008301526155f8816155bc565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600061565b602883613b46565b9150615666826155ff565b604082019050919050565b6000602082019050818103600083015261568a8161564e565b9050919050565b600060408201905081810360008301526156ab8185614254565b905081810360208301526156bf8184614254565b90509392505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000615724602383613b46565b915061572f826156c8565b604082019050919050565b6000602082019050818103600083015261575381615717565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006157b6602483613b46565b91506157c18261575a565b604082019050919050565b600060208201905081810360008301526157e5816157a9565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000615848602583613b46565b9150615853826157ec565b604082019050919050565b600060208201905081810360008301526158778161583b565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006158da602a83613b46565b91506158e58261587e565b604082019050919050565b60006020820190508181036000830152615909816158cd565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b600061596c602983613b46565b915061597782615910565b604082019050919050565b6000602082019050818103600083015261599b8161595f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006159dc826139b3565b91506159e7836139b3565b9250826159f7576159f66159a2565b5b828206905092915050565b7f4e41303200000000000000000000000000000000000000000000000000000000600082015250565b6000615a38600483613b46565b9150615a4382615a02565b602082019050919050565b60006020820190508181036000830152615a6781615a2b565b9050919050565b600082825260208201905092915050565b6000615a8a82614cfa565b615a948185615a6e565b9350615aa4818560208601613b57565b615aad81613b8a565b840191505092915050565b600060a082019050615acd600083018861445c565b615ada602083018761445c565b8181036040830152615aec8186614254565b90508181036060830152615b008185614254565b90508181036080830152615b148184615a7f565b90509695505050505050565b600081519050615b2f81613a7f565b92915050565b600060208284031215615b4b57615b4a61394b565b5b6000615b5984828501615b20565b91505092915050565b60008160e01c9050919050565b600060033d1115615b8e5760046000803e615b8b600051615b62565b90505b90565b600060443d1015615ba157615c24565b615ba9613941565b60043d036004823e80513d602482011167ffffffffffffffff82111715615bd1575050615c24565b808201805167ffffffffffffffff811115615bef5750505050615c24565b80602083010160043d038501811115615c0c575050505050615c24565b615c1b82602001850186613c57565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000615c83603483613b46565b9150615c8e82615c27565b604082019050919050565b60006020820190508181036000830152615cb281615c76565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000615d15602883613b46565b9150615d2082615cb9565b604082019050919050565b60006020820190508181036000830152615d4481615d08565b9050919050565b600060a082019050615d60600083018861445c565b615d6d602083018761445c565b615d7a6040830186613a29565b615d876060830185613a29565b8181036080830152615d998184615a7f565b9050969550505050505056fea26469706673582212208f691ce28484c5ce6743d4c9cc20c764a0616279b67ecaf5e821a06ed287adc964736f6c634300080b003360806040523480156200001157600080fd5b5062000032620000266200014060201b60201c565b6200014860201b60201c565b6040518060400160405280600481526020017f6e616d6500000000000000000000000000000000000000000000000000000000815250600260008081526020019081526020016000209080519060200190620000909291906200020c565b506040518060400160405280600881526020017f737472656e67746800000000000000000000000000000000000000000000000081525060026000600181526020019081526020016000209080519060200190620000f09291906200020c565b50600260018190555033600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000321565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200021a90620002eb565b90600052602060002090601f0160209004810192826200023e57600085556200028a565b82601f106200025957805160ff19168380011785556200028a565b828001600101855582156200028a579182015b82811115620002895782518255916020019190600101906200026c565b5b5090506200029991906200029d565b5090565b5b80821115620002b85760008160009055506001016200029e565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200030457607f821691505b602082108114156200031b576200031a620002bc565b5b50919050565b6121c580620003316000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063a574cea41161005b578063a574cea4146100c6578063bb904637146100f6578063d102429c14610112578063f2fde38b1461012e5761007d565b806350382c1a14610082578063715018a61461009e5780638da5cb5b146100a8575b600080fd5b61009c60048036038101906100979190611273565b61014a565b005b6100a6610213565b005b6100b061029b565b6040516100bd9190611301565b60405180910390f35b6100e060048036038101906100db9190611352565b6102c4565b6040516100ed9190611418565b60405180910390f35b610110600480360381019061010b91906114e6565b61048f565b005b61012c600480360381019061012791906115af565b610a73565b005b61014860048036038101906101439190611682565b610f93565b005b61015261108b565b73ffffffffffffffffffffffffffffffffffffffff1661017061029b565b73ffffffffffffffffffffffffffffffffffffffff16146101c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101bd906116fb565b60405180910390fd5b818160026000600180546101da919061174a565b815260200190815260200160002091906101f5929190611157565b506001806000828254610208919061174a565b925050819055505050565b61021b61108b565b73ffffffffffffffffffffffffffffffffffffffff1661023961029b565b73ffffffffffffffffffffffffffffffffffffffff161461028f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610286906116fb565b60405180910390fd5b6102996000611093565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60608060005b6001548110156104855760006004600086815260200190815260200160002060008381526020019081526020016000208054610305906117cf565b90501461036c57816002600083815260200190815260200160002060046000878152602001908152602001600020600084815260200190815260200160002060405160200161035693929190611969565b6040516020818303038152906040529150610472565b60006003600086815260200190815260200160002060008381526020019081526020016000205414610471578160026000838152602001908152602001600020730578bfc6862365150f6ec8252e5e62aa56df584e636900a3ae600360008981526020019081526020016000206000868152602001908152602001600020546040518263ffffffff1660e01b815260040161040791906119bf565b600060405180830381865af4158015610424573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061044d9190611afb565b60405160200161045f93929190611b44565b60405160208183030381529060405291505b5b808061047d90611b8b565b9150506102ca565b5080915050919050565b8383905086869050146104d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104ce90611c20565b60405180910390fd5b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e896040518263ffffffff1660e01b81526004016105349190611c4f565b602060405180830381865afa158015610551573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105759190611c7f565b90506000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632d0335ab836040518263ffffffff1660e01b81526004016105d49190611301565b602060405180830381865afa1580156105f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106159190611cc1565b90506000734fbaf8986aa4cd331adf4cbbc01f4c105cc46aaa631ed13d1b84848d8d8d8d8d6040516020016106509796959493929190611dd2565b60405160208183030381529060405287876040518463ffffffff1660e01b815260040161067f93929190611eaf565b602060405180830381865af415801561069c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c09190611c7f565b90508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480156107b75750600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148547fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70836040518363ffffffff1660e01b8152600401610775929190611f01565b602060405180830381865afa158015610792573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b69190611f62565b5b806108b357508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161480156108b25750600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148547f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b2603336040518363ffffffff1660e01b8152600401610870929190611f01565b602060405180830381865afa15801561088d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b19190611f62565b5b5b6108f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e990611fdb565b60405180910390fd5b60005b898990508110156109d95787878281811061091357610912611ffb565b5b90506020020135600360008d815260200190815260200160002060008c8c8581811061094257610941611ffb565b5b9050602002013581526020019081526020016000208190555089898281811061096e5761096d611ffb565b5b905060200201358b7f36515ddae1453fb3fd58c93182c95345dc8e3a8f525efea55d3b0a3df917c3848a8a858181106109aa576109a9611ffb565b5b905060200201356040516109be9190611c4f565b60405180910390a380806109d190611b8b565b9150506108f5565b50600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f5743c4c846040518263ffffffff1660e01b8152600401610a359190611301565b600060405180830381600087803b158015610a4f57600080fd5b505af1158015610a63573d6000803e3d6000fd5b5050505050505050505050505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e886040518263ffffffff1660e01b8152600401610ad09190611c4f565b602060405180830381865afa158015610aed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b119190611c7f565b90506000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632d0335ab836040518263ffffffff1660e01b8152600401610b709190611301565b602060405180830381865afa158015610b8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb19190611cc1565b90506000734fbaf8986aa4cd331adf4cbbc01f4c105cc46aaa631ed13d1b84848c8c8c8c604051602001610bea9695949392919061204f565b60405160208183030381529060405287876040518463ffffffff1660e01b8152600401610c1993929190611eaf565b602060405180830381865af4158015610c36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5a9190611c7f565b90508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148015610d515750600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148547fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70836040518363ffffffff1660e01b8152600401610d0f929190611f01565b602060405180830381865afa158015610d2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d509190611f62565b5b80610e4d57508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16148015610e4c5750600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148547f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b2603336040518363ffffffff1660e01b8152600401610e0a929190611f01565b602060405180830381865afa158015610e27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4b9190611f62565b5b5b610e8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8390611fdb565b60405180910390fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f5743c4c846040518263ffffffff1660e01b8152600401610ee79190611301565b600060405180830381600087803b158015610f0157600080fd5b505af1158015610f15573d6000803e3d6000fd5b505050508686600460008c815260200190815260200160002060008b81526020019081526020016000209190610f4c929190611157565b5087897f8a9307e5e4fabae00de1b406aebeef87de6d231e52fe8251c01ff274b8f79bbc8989604051610f809291906120d9565b60405180910390a3505050505050505050565b610f9b61108b565b73ffffffffffffffffffffffffffffffffffffffff16610fb961029b565b73ffffffffffffffffffffffffffffffffffffffff161461100f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611006906116fb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561107f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110769061216f565b60405180910390fd5b61108881611093565b50565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054611163906117cf565b90600052602060002090601f01602090048101928261118557600085556111cc565b82601f1061119e57803560ff19168380011785556111cc565b828001600101855582156111cc579182015b828111156111cb5782358255916020019190600101906111b0565b5b5090506111d991906111dd565b5090565b5b808211156111f65760008160009055506001016111de565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f8401126112335761123261120e565b5b8235905067ffffffffffffffff8111156112505761124f611213565b5b60208301915083600182028301111561126c5761126b611218565b5b9250929050565b6000806020838503121561128a57611289611204565b5b600083013567ffffffffffffffff8111156112a8576112a7611209565b5b6112b48582860161121d565b92509250509250929050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006112eb826112c0565b9050919050565b6112fb816112e0565b82525050565b600060208201905061131660008301846112f2565b92915050565b6000819050919050565b61132f8161131c565b811461133a57600080fd5b50565b60008135905061134c81611326565b92915050565b60006020828403121561136857611367611204565b5b60006113768482850161133d565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156113b957808201518184015260208101905061139e565b838111156113c8576000848401525b50505050565b6000601f19601f8301169050919050565b60006113ea8261137f565b6113f4818561138a565b935061140481856020860161139b565b61140d816113ce565b840191505092915050565b6000602082019050818103600083015261143281846113df565b905092915050565b60008083601f8401126114505761144f61120e565b5b8235905067ffffffffffffffff81111561146d5761146c611213565b5b60208301915083602082028301111561148957611488611218565b5b9250929050565b60008083601f8401126114a6576114a561120e565b5b8235905067ffffffffffffffff8111156114c3576114c2611213565b5b6020830191508360018202830111156114df576114de611218565b5b9250929050565b60008060008060008060006080888a03121561150557611504611204565b5b60006115138a828b0161133d565b975050602088013567ffffffffffffffff81111561153457611533611209565b5b6115408a828b0161143a565b9650965050604088013567ffffffffffffffff81111561156357611562611209565b5b61156f8a828b0161143a565b9450945050606088013567ffffffffffffffff81111561159257611591611209565b5b61159e8a828b01611490565b925092505092959891949750929550565b600080600080600080608087890312156115cc576115cb611204565b5b60006115da89828a0161133d565b96505060206115eb89828a0161133d565b955050604087013567ffffffffffffffff81111561160c5761160b611209565b5b61161889828a0161121d565b9450945050606087013567ffffffffffffffff81111561163b5761163a611209565b5b61164789828a01611490565b92509250509295509295509295565b61165f816112e0565b811461166a57600080fd5b50565b60008135905061167c81611656565b92915050565b60006020828403121561169857611697611204565b5b60006116a68482850161166d565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006116e560208361138a565b91506116f0826116af565b602082019050919050565b60006020820190508181036000830152611714816116d8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006117558261131c565b91506117608361131c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156117955761179461171b565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806117e757607f821691505b602082108114156117fb576117fa6117a0565b5b50919050565b600081905092915050565b60006118178261137f565b6118218185611801565b935061183181856020860161139b565b80840191505092915050565b60008190508160005260206000209050919050565b6000815461185f816117cf565b6118698186611801565b945060018216600081146118845760018114611895576118c8565b60ff198316865281860193506118c8565b61189e8561183d565b60005b838110156118c0578154818901526001820191506020810190506118a1565b838801955050505b50505092915050565b7f3d00000000000000000000000000000000000000000000000000000000000000600082015250565b6000611907600183611801565b9150611912826118d1565b600182019050919050565b7f0a00000000000000000000000000000000000000000000000000000000000000600082015250565b6000611953600183611801565b915061195e8261191d565b600182019050919050565b6000611975828661180c565b91506119818285611852565b915061198c826118fa565b91506119988284611852565b91506119a382611946565b9150819050949350505050565b6119b98161131c565b82525050565b60006020820190506119d460008301846119b0565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611a17826113ce565b810181811067ffffffffffffffff82111715611a3657611a356119df565b5b80604052505050565b6000611a496111fa565b9050611a558282611a0e565b919050565b600067ffffffffffffffff821115611a7557611a746119df565b5b611a7e826113ce565b9050602081019050919050565b6000611a9e611a9984611a5a565b611a3f565b905082815260208101848484011115611aba57611ab96119da565b5b611ac584828561139b565b509392505050565b600082601f830112611ae257611ae161120e565b5b8151611af2848260208601611a8b565b91505092915050565b600060208284031215611b1157611b10611204565b5b600082015167ffffffffffffffff811115611b2f57611b2e611209565b5b611b3b84828501611acd565b91505092915050565b6000611b50828661180c565b9150611b5c8285611852565b9150611b67826118fa565b9150611b73828461180c565b9150611b7e82611946565b9150819050949350505050565b6000611b968261131c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611bc957611bc861171b565b5b600182019050919050565b7f4e44300000000000000000000000000000000000000000000000000000000000600082015250565b6000611c0a60038361138a565b9150611c1582611bd4565b602082019050919050565b60006020820190508181036000830152611c3981611bfd565b9050919050565b611c498161131c565b82525050565b6000602082019050611c646000830184611c40565b92915050565b600081519050611c7981611656565b92915050565b600060208284031215611c9557611c94611204565b5b6000611ca384828501611c6a565b91505092915050565b600081519050611cbb81611326565b92915050565b600060208284031215611cd757611cd6611204565b5b6000611ce584828501611cac565b91505092915050565b60008160601b9050919050565b6000611d0682611cee565b9050919050565b6000611d1882611cfb565b9050919050565b611d30611d2b826112e0565b611d0d565b82525050565b6000819050919050565b611d51611d4c8261131c565b611d36565b82525050565b600081905092915050565b600080fd5b82818337600083830152505050565b6000611d828385611d57565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115611db557611db4611d62565b5b602083029250611dc6838584611d67565b82840190509392505050565b6000611dde828a611d1f565b601482019150611dee8289611d40565b602082019150611dfe8288611d40565b602082019150611e0f828688611d76565b9150611e1c828486611d76565b915081905098975050505050505050565b600081519050919050565b600082825260208201905092915050565b6000611e5482611e2d565b611e5e8185611e38565b9350611e6e81856020860161139b565b611e77816113ce565b840191505092915050565b6000611e8e8385611e38565b9350611e9b838584611d67565b611ea4836113ce565b840190509392505050565b60006040820190508181036000830152611ec98186611e49565b90508181036020830152611ede818486611e82565b9050949350505050565b6000819050919050565b611efb81611ee8565b82525050565b6000604082019050611f166000830185611ef2565b611f2360208301846112f2565b9392505050565b60008115159050919050565b611f3f81611f2a565b8114611f4a57600080fd5b50565b600081519050611f5c81611f36565b92915050565b600060208284031215611f7857611f77611204565b5b6000611f8684828501611f4d565b91505092915050565b7f4e44320000000000000000000000000000000000000000000000000000000000600082015250565b6000611fc560038361138a565b9150611fd082611f8f565b602082019050919050565b60006020820190508181036000830152611ff481611fb8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006120368385611801565b9350612043838584611d67565b82840190509392505050565b600061205b8289611d1f565b60148201915061206b8288611d40565b60208201915061207b8287611d40565b60208201915061208b8286611d40565b60208201915061209c82848661202a565b9150819050979650505050505050565b60006120b8838561138a565b93506120c5838584611d67565b6120ce836113ce565b840190509392505050565b600060208201905081810360008301526120f48184866120ac565b90509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061215960268361138a565b9150612164826120fd565b604082019050919050565b600060208201905081810360008301526121888161214c565b905091905056fea2646970667358221220537a259949c2970709cc1edc3b736dd065e88589e783fcf8932601132386963164736f6c634300080b0033
Deployed Bytecode
0x6080604052600436106102ae5760003560e01c8063715018a611610175578063a22cb465116100dc578063d547741f11610095578063e8a3d4851161006f578063e8a3d48514610a7a578063e985e9c514610aa5578063f2fde38b14610ae2578063f5743c4c14610b0b576102ae565b8063d547741f146109e9578063db4bec4414610a12578063dd0ba25b14610a4f576102ae565b8063a22cb465146108c4578063a574cea4146108ed578063b5b1cd7c1461092a578063b88d4fde14610967578063c87b56dd14610990578063d2cab056146109cd576102ae565b80638d2880071161012e5780638d288007146107b25780638da5cb5b146107dd57806391d148541461080857806395d89b4114610845578063a144819414610870578063a217fddf14610899576102ae565b8063715018a6146106de57806374483d2b146106f557806377d247621461071e57806378152bbe146107495780637cb64759146107725780638456cb591461079b576102ae565b80632f2ff15d1161021957806351cff8d9116101d257806351cff8d9146105be57806355f804b3146105e75780635795a416146106105780635c975abb146106395780636352211e1461066457806370a08231146106a1576102ae565b80632f2ff15d146104d857806336568abe146105015780633b7f7fa51461052a5780633f4ba83a1461055557806342842e0e1461056c57806350382c1a14610595576102ae565b80630ed89c011161026b5780630ed89c01146103d557806318160ddd146103f157806323b872dd1461041c57806324e0fbaa146104455780632d0335ab146104705780632eb4a7ab146104ad576102ae565b806301ffc9a7146102b357806306fa2825146102f057806306fdde031461031b578063081812fc14610346578063095ea7b3146103835780630ca282f7146103ac575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d59190613a14565b610b34565b6040516102e79190613a5c565b60405180910390f35b3480156102fc57600080fd5b50610305610c7e565b6040516103129190613a90565b60405180910390f35b34801561032757600080fd5b50610330610c88565b60405161033d9190613b44565b60405180910390f35b34801561035257600080fd5b5061036d60048036038101906103689190613b92565b610d1a565b60405161037a9190613c00565b60405180910390f35b34801561038f57600080fd5b506103aa60048036038101906103a59190613c47565b610d9f565b005b3480156103b857600080fd5b506103d360048036038101906103ce9190613b92565b610eb8565b005b6103ef60048036038101906103ea9190613cec565b610ed8565b005b3480156103fd57600080fd5b506104066112ca565b6040516104139190613a90565b60405180910390f35b34801561042857600080fd5b50610443600480360381019061043e9190613d4c565b6112d3565b005b34801561045157600080fd5b5061045a6112e3565b6040516104679190613c00565b60405180910390f35b34801561047c57600080fd5b5061049760048036038101906104929190613d9f565b61130d565b6040516104a49190613a90565b60405180910390f35b3480156104b957600080fd5b506104c2611362565b6040516104cf9190613de5565b60405180910390f35b3480156104e457600080fd5b506104ff60048036038101906104fa9190613e2c565b611368565b005b34801561050d57600080fd5b5061052860048036038101906105239190613e2c565b61138c565b005b34801561053657600080fd5b5061053f61140f565b60405161054c9190613c00565b60405180910390f35b34801561056157600080fd5b5061056a611439565b005b34801561057857600080fd5b50610593600480360381019061058e9190613d4c565b611476565b005b3480156105a157600080fd5b506105bc60048036038101906105b79190613ec2565b611496565b005b3480156105ca57600080fd5b506105e560048036038101906105e09190613d9f565b61155c565b005b3480156105f357600080fd5b5061060e60048036038101906106099190613ec2565b6117c7565b005b34801561061c57600080fd5b5061063760048036038101906106329190613ec2565b611810565b005b34801561064557600080fd5b5061064e61183c565b60405161065b9190613a5c565b60405180910390f35b34801561067057600080fd5b5061068b60048036038101906106869190613b92565b611853565b6040516106989190613c00565b60405180910390f35b3480156106ad57600080fd5b506106c860048036038101906106c39190613d9f565b6118ad565b6040516106d59190613a90565b60405180910390f35b3480156106ea57600080fd5b506106f3611965565b005b34801561070157600080fd5b5061071c60048036038101906107179190613d9f565b6119ed565b005b34801561072a57600080fd5b50610733611b77565b6040516107409190613a90565b60405180910390f35b34801561075557600080fd5b50610770600480360381019061076b9190613b92565b611b87565b005b34801561077e57600080fd5b5061079960048036038101906107949190613f0f565b611ba7565b005b3480156107a757600080fd5b506107b0611be4565b005b3480156107be57600080fd5b506107c7611c21565b6040516107d49190613b44565b60405180910390f35b3480156107e957600080fd5b506107f2611caf565b6040516107ff9190613c00565b60405180910390f35b34801561081457600080fd5b5061082f600480360381019061082a9190613e2c565b611cd9565b60405161083c9190613a5c565b60405180910390f35b34801561085157600080fd5b5061085a611d41565b6040516108679190613b44565b60405180910390f35b34801561087c57600080fd5b5061089760048036038101906108929190613c47565b611dd3565b005b3480156108a557600080fd5b506108ae611ed5565b6040516108bb9190613de5565b60405180910390f35b3480156108d057600080fd5b506108eb60048036038101906108e69190613f68565b611edc565b005b3480156108f957600080fd5b50610914600480360381019061090f9190613b92565b61205d565b6040516109219190613b44565b60405180910390f35b34801561093657600080fd5b50610951600480360381019061094c9190613d9f565b61214f565b60405161095e9190613a90565b60405180910390f35b34801561097357600080fd5b5061098e600480360381019061098991906140d8565b612167565b005b34801561099c57600080fd5b506109b760048036038101906109b29190613b92565b6121c3565b6040516109c49190613b44565b60405180910390f35b6109e760048036038101906109e291906141b1565b6122b3565b005b3480156109f557600080fd5b50610a106004803603810190610a0b9190613e2c565b61266f565b005b348015610a1e57600080fd5b50610a396004803603810190610a349190613d9f565b612693565b604051610a469190613a90565b60405180910390f35b348015610a5b57600080fd5b50610a646126ab565b604051610a719190613a90565b60405180910390f35b348015610a8657600080fd5b50610a8f6126b5565b604051610a9c9190613b44565b60405180910390f35b348015610ab157600080fd5b50610acc6004803603810190610ac79190614211565b6126dd565b604051610ad99190613a5c565b60405180910390f35b348015610aee57600080fd5b50610b096004803603810190610b049190613d9f565b612771565b005b348015610b1757600080fd5b50610b326004803603810190610b2d9190613d9f565b612869565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bff57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c6757507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c775750610c76826128f6565b5b9050919050565b6000600b54905090565b606060018054610c9790614280565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc390614280565b8015610d105780601f10610ce557610100808354040283529160200191610d10565b820191906000526020600020905b815481529060010190602001808311610cf357829003601f168201915b5050505050905090565b6000610d2582612960565b610d64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5b906142fe565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610daa82611853565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e129061436a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e3a61296d565b73ffffffffffffffffffffffffffffffffffffffff161480610e695750610e6881610e6361296d565b6126dd565b5b610ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9f906143d6565b60405180910390fd5b610eb3838383612975565b505050565b6000801b610ecd81610ec861296d565b612a27565b81600c819055505050565b610ee061183c565b15610f20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1790614442565b60405180910390fd5b600c54421015610f65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5c906144ae565b60405180910390fd5b600d5460fa611f41610f7791906144fd565b610f819190614531565b610f896112ca565b84610f949190614531565b1115610fd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcc906145d3565b60405180910390fd5b600583601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546110229190614531565b1115611063576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105a9061463f565b60405180910390fd5b82601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110b29190614531565b9250508190555082670214e8348c4f00006110cd919061465f565b341461110e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110590614705565b60405180910390fd5b60006001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461115c9190614531565b90506112247fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70734fbaf8986aa4cd331adf4cbbc01f4c105cc46aaa631ed13d1b33856040516020016111af92919061478e565b60405160208183030381529060405287876040518463ffffffff1660e01b81526004016111de9392919061483c565b602060405180830381865af41580156111fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121f919061488a565b611cd9565b611263576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125a90614903565b60405180910390fd5b6001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546112b39190614531565b925050819055506112c43385612a74565b50505050565b60008054905090565b6112de838383612a92565b505050565b6000601e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006001600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461135b9190614531565b9050919050565b60115481565b6000801b61137d8161137861296d565b612a27565b6113878383612ea8565b505050565b61139461296d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f89061496f565b60405180910390fd5b61140b8282612f86565b5050565b6000601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61146b8161146661296d565b612a27565b611473613065565b50565b61149183838360405180602001604052806000815250612167565b505050565b7f6bd6b5318a46e5fff572d5e4258a20774aab40cc35ac7680654b9081fcc82f806114c8816114c361296d565b612a27565b601e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166350382c1a84846040518363ffffffff1660e01b81526004016115259291906149bc565b600060405180830381600087803b15801561153f57600080fd5b505af1158015611553573d6000803e3d6000fd5b50505050505050565b6000601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116115de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d590614a2c565b60405180910390fd5b6000601354476115ee9190614531565b90506000601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601254601560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205484611680919061465f565b61168a9190614a7b565b61169491906144fd565b9050600081116116d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d090614af8565b60405180910390fd5b80601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117249190614531565b601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550806013546117759190614531565b6013819055508273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156117c1573d6000803e3d6000fd5b50505050565b7f8e6595ef9afb2a8f70320f393f567bb7a0e6c4ed483caee30f90cc5fcd6659b46117f9816117f461296d565b612a27565b8282600a919061180a929190613905565b50505050565b6000801b6118258161182061296d565b612a27565b8282601f9190611836929190613905565b50505050565b6000600960009054906101000a900460ff16905090565b600061185e82612960565b61189d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189490614b64565b60405180910390fd5b6118a682613107565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561191e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191590614bd0565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61196d61296d565b73ffffffffffffffffffffffffffffffffffffffff1661198b611caf565b73ffffffffffffffffffffffffffffffffffffffff16146119e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d890614c3c565b60405180910390fd5b6119eb6000613251565b565b6000801b611a02816119fd61296d565b612a27565b611a4e7f6bd6b5318a46e5fff572d5e4258a20774aab40cc35ac7680654b9081fcc82f80601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612f86565b611a9a7f792951e32f3ca2ce52ff50a3b2f20ded39d07779618fafd9887dbad563ee026e601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612f86565b81601d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611b277f6bd6b5318a46e5fff572d5e4258a20774aab40cc35ac7680654b9081fcc82f80601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612ea8565b611b737f792951e32f3ca2ce52ff50a3b2f20ded39d07779618fafd9887dbad563ee026e601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612ea8565b5050565b6000670214e8348c4f0000905090565b6000801b611b9c81611b9761296d565b612a27565b81600b819055505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611bd981611bd461296d565b612a27565b816011819055505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a611c1681611c1161296d565b612a27565b611c1e613317565b50565b601f8054611c2e90614280565b80601f0160208091040260200160405190810160405280929190818152602001828054611c5a90614280565b8015611ca75780601f10611c7c57610100808354040283529160200191611ca7565b820191906000526020600020905b815481529060010190602001808311611c8a57829003601f168201915b505050505081565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006008600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060028054611d5090614280565b80601f0160208091040260200160405190810160405280929190818152602001828054611d7c90614280565b8015611dc95780601f10611d9e57610100808354040283529160200191611dc9565b820191906000526020600020905b815481529060010190602001808311611dac57829003601f168201915b5050505050905090565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611e0581611e0061296d565b612a27565b611f41611e106112ca565b83611e1b9190614531565b1115611e5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5390614ca8565b60405180910390fd5b60fa82600d54611e6c9190614531565b1115611ead576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea490614d14565b60405180910390fd5b81600d6000828254611ebf9190614531565b92505081905550611ed08383612a74565b505050565b6000801b81565b611ee461296d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4990614d80565b60405180910390fd5b8060066000611f5f61296d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661200c61296d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120519190613a5c565b60405180910390a35050565b606061206882612960565b6120a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209e90614dec565b60405180910390fd5b601e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a574cea4836040518263ffffffff1660e01b81526004016121029190613a90565b600060405180830381865afa15801561211f573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906121489190614ead565b9050919050565b60106020528060005260406000206000915090505481565b612172848484612a92565b61217e848484846133ba565b6121bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b490614f42565b60405180910390fd5b50505050565b60606121ce82612960565b61220d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220490614dec565b60405180910390fd5b600a730578bfc6862365150f6ec8252e5e62aa56df584e636900a3ae846040518263ffffffff1660e01b81526004016122469190614f71565b600060405180830381865af4158015612263573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061228c9190614ead565b60405160200161229d92919061505c565b6040516020818303038152906040529050919050565b6122bb61183c565b156122fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f290614442565b60405180910390fd5b600b54421015612340576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612337906150cc565b60405180910390fd5b600c544210612384576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237b90615138565b60405180910390fd5b600d5460fa611f4161239691906144fd565b6123a09190614531565b836123a96112ca565b6123b39190614531565b11156123f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123eb906151a4565b60405180910390fd5b6000801b601154141561243c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243390615210565b60405180910390fd5b82670214e8348c4f0000612450919061465f565b3414612491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248890614705565b60405180910390fd5b600283600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546124de9190614531565b111561251f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125169061527c565b60405180910390fd5b600033604051602001612532919061529c565b604051602081830303815290604052805190602001209050731b1a5bc153616828388233fee0d1ace673f00adf635a9a49c78484601154856040518563ffffffff1660e01b81526004016125899493929190615338565b602060405180830381865af41580156125a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125ca919061538d565b612609576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260090615406565b60405180910390fd5b83600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126589190614531565b925050819055506126693385612a74565b50505050565b6000801b6126848161267f61296d565b612a27565b61268e8383612f86565b505050565b600f6020528060005260406000206000915090505481565b6000600c54905090565b6060600a6040516020016126c99190615472565b604051602081830303815290604052905090565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61277961296d565b73ffffffffffffffffffffffffffffffffffffffff16612797611caf565b73ffffffffffffffffffffffffffffffffffffffff16146127ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e490614c3c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561285d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285490615506565b60405180910390fd5b61286681613251565b50565b7f6bd6b5318a46e5fff572d5e4258a20774aab40cc35ac7680654b9081fcc82f8061289b8161289661296d565b612a27565b6001600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128eb9190614531565b925050819055505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b612a318282611cd9565b612a70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a6790615572565b60405180910390fd5b5050565b612a8e828260405180602001604052806000815250613542565b5050565b6000612a9d82611853565b905060008173ffffffffffffffffffffffffffffffffffffffff16612ac061296d565b73ffffffffffffffffffffffffffffffffffffffff161480612b1c5750612ae561296d565b73ffffffffffffffffffffffffffffffffffffffff16612b0484610d1a565b73ffffffffffffffffffffffffffffffffffffffff16145b80612b345750612b3382612b2e61296d565b6126dd565b5b905080612b76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6d906155de565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612be4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bdb9061564a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612c54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4b906156b6565b60405180910390fd5b612c5e85856137f1565b612c6a60008484612975565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612cba91906144fd565b925050819055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d119190614531565b92505081905550836003600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600184612d799190614531565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612e4557612dec81612960565b15612e4457826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b612eb28282611cd9565b612f825760016008600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612f2761296d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b612f908282611cd9565b156130615760006008600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061300661296d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61306d61183c565b6130ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130a390615722565b60405180910390fd5b6000600960006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6130f061296d565b6040516130fd9190613c00565b60405180910390a1565b600061311282612960565b613151576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314890614b64565b60405180910390fd5b60008290505b6000811061321057600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613202576003600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505061324c565b808060019003915050613157565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132439061578e565b60405180910390fd5b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61331f61183c565b1561335f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161335690614442565b60405180910390fd5b6001600960006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586133a361296d565b6040516133b09190613c00565b60405180910390a1565b60006133db8473ffffffffffffffffffffffffffffffffffffffff166138f2565b15613535578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261340461296d565b8786866040518563ffffffff1660e01b815260040161342694939291906157f8565b6020604051808303816000875af192505050801561346257506040513d601f19601f8201168201806040525081019061345f9190615859565b60015b6134e5573d8060008114613492576040519150601f19603f3d011682016040523d82523d6000602084013e613497565b606091505b506000815114156134dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134d490614f42565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061353a565b600190505b949350505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156135b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135af906158d2565b60405180910390fd5b6135c181612960565b15613601576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135f89061593e565b60405180910390fd5b60008311613644576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161363b906159aa565b60405180910390fd5b61364f6000856137f1565b826fffffffffffffffffffffffffffffffff16600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136b09190614531565b92505081905550836003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600081905060005b848110156137e257818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461378260008784876133ba565b6137c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137b890614f42565b60405180910390fd5b81806137cc906159ca565b92505080806137da906159ca565b915050613711565b50806000819055505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415801561385b5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b156138ee57601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c50045a8826040518263ffffffff1660e01b81526004016138bb9190613c00565b600060405180830381600087803b1580156138d557600080fd5b505af11580156138e9573d6000803e3d6000fd5b505050505b5050565b600080823b905060008111915050919050565b82805461391190614280565b90600052602060002090601f016020900481019282613933576000855561397a565b82601f1061394c57803560ff191683800117855561397a565b8280016001018555821561397a579182015b8281111561397957823582559160200191906001019061395e565b5b509050613987919061398b565b5090565b5b808211156139a457600081600090555060010161398c565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6139f1816139bc565b81146139fc57600080fd5b50565b600081359050613a0e816139e8565b92915050565b600060208284031215613a2a57613a296139b2565b5b6000613a38848285016139ff565b91505092915050565b60008115159050919050565b613a5681613a41565b82525050565b6000602082019050613a716000830184613a4d565b92915050565b6000819050919050565b613a8a81613a77565b82525050565b6000602082019050613aa56000830184613a81565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ae5578082015181840152602081019050613aca565b83811115613af4576000848401525b50505050565b6000601f19601f8301169050919050565b6000613b1682613aab565b613b208185613ab6565b9350613b30818560208601613ac7565b613b3981613afa565b840191505092915050565b60006020820190508181036000830152613b5e8184613b0b565b905092915050565b613b6f81613a77565b8114613b7a57600080fd5b50565b600081359050613b8c81613b66565b92915050565b600060208284031215613ba857613ba76139b2565b5b6000613bb684828501613b7d565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613bea82613bbf565b9050919050565b613bfa81613bdf565b82525050565b6000602082019050613c156000830184613bf1565b92915050565b613c2481613bdf565b8114613c2f57600080fd5b50565b600081359050613c4181613c1b565b92915050565b60008060408385031215613c5e57613c5d6139b2565b5b6000613c6c85828601613c32565b9250506020613c7d85828601613b7d565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f840112613cac57613cab613c87565b5b8235905067ffffffffffffffff811115613cc957613cc8613c8c565b5b602083019150836001820283011115613ce557613ce4613c91565b5b9250929050565b600080600060408486031215613d0557613d046139b2565b5b6000613d1386828701613b7d565b935050602084013567ffffffffffffffff811115613d3457613d336139b7565b5b613d4086828701613c96565b92509250509250925092565b600080600060608486031215613d6557613d646139b2565b5b6000613d7386828701613c32565b9350506020613d8486828701613c32565b9250506040613d9586828701613b7d565b9150509250925092565b600060208284031215613db557613db46139b2565b5b6000613dc384828501613c32565b91505092915050565b6000819050919050565b613ddf81613dcc565b82525050565b6000602082019050613dfa6000830184613dd6565b92915050565b613e0981613dcc565b8114613e1457600080fd5b50565b600081359050613e2681613e00565b92915050565b60008060408385031215613e4357613e426139b2565b5b6000613e5185828601613e17565b9250506020613e6285828601613c32565b9150509250929050565b60008083601f840112613e8257613e81613c87565b5b8235905067ffffffffffffffff811115613e9f57613e9e613c8c565b5b602083019150836001820283011115613ebb57613eba613c91565b5b9250929050565b60008060208385031215613ed957613ed86139b2565b5b600083013567ffffffffffffffff811115613ef757613ef66139b7565b5b613f0385828601613e6c565b92509250509250929050565b600060208284031215613f2557613f246139b2565b5b6000613f3384828501613e17565b91505092915050565b613f4581613a41565b8114613f5057600080fd5b50565b600081359050613f6281613f3c565b92915050565b60008060408385031215613f7f57613f7e6139b2565b5b6000613f8d85828601613c32565b9250506020613f9e85828601613f53565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613fe582613afa565b810181811067ffffffffffffffff8211171561400457614003613fad565b5b80604052505050565b60006140176139a8565b90506140238282613fdc565b919050565b600067ffffffffffffffff82111561404357614042613fad565b5b61404c82613afa565b9050602081019050919050565b82818337600083830152505050565b600061407b61407684614028565b61400d565b90508281526020810184848401111561409757614096613fa8565b5b6140a2848285614059565b509392505050565b600082601f8301126140bf576140be613c87565b5b81356140cf848260208601614068565b91505092915050565b600080600080608085870312156140f2576140f16139b2565b5b600061410087828801613c32565b945050602061411187828801613c32565b935050604061412287828801613b7d565b925050606085013567ffffffffffffffff811115614143576141426139b7565b5b61414f878288016140aa565b91505092959194509250565b60008083601f84011261417157614170613c87565b5b8235905067ffffffffffffffff81111561418e5761418d613c8c565b5b6020830191508360208202830111156141aa576141a9613c91565b5b9250929050565b6000806000604084860312156141ca576141c96139b2565b5b60006141d886828701613b7d565b935050602084013567ffffffffffffffff8111156141f9576141f86139b7565b5b6142058682870161415b565b92509250509250925092565b60008060408385031215614228576142276139b2565b5b600061423685828601613c32565b925050602061424785828601613c32565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061429857607f821691505b602082108114156142ac576142ab614251565b5b50919050565b7f4150380000000000000000000000000000000000000000000000000000000000600082015250565b60006142e8600383613ab6565b91506142f3826142b2565b602082019050919050565b60006020820190508181036000830152614317816142db565b9050919050565b7f4150360000000000000000000000000000000000000000000000000000000000600082015250565b6000614354600383613ab6565b915061435f8261431e565b602082019050919050565b6000602082019050818103600083015261438381614347565b9050919050565b7f4150370000000000000000000000000000000000000000000000000000000000600082015250565b60006143c0600383613ab6565b91506143cb8261438a565b602082019050919050565b600060208201905081810360008301526143ef816143b3565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061442c601083613ab6565b9150614437826143f6565b602082019050919050565b6000602082019050818103600083015261445b8161441f565b9050919050565b7f4e32000000000000000000000000000000000000000000000000000000000000600082015250565b6000614498600283613ab6565b91506144a382614462565b602082019050919050565b600060208201905081810360008301526144c78161448b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061450882613a77565b915061451383613a77565b925082821015614526576145256144ce565b5b828203905092915050565b600061453c82613a77565b915061454783613a77565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561457c5761457b6144ce565b5b828201905092915050565b7f4e33000000000000000000000000000000000000000000000000000000000000600082015250565b60006145bd600283613ab6565b91506145c882614587565b602082019050919050565b600060208201905081810360008301526145ec816145b0565b9050919050565b7f4e34000000000000000000000000000000000000000000000000000000000000600082015250565b6000614629600283613ab6565b9150614634826145f3565b602082019050919050565b600060208201905081810360008301526146588161461c565b9050919050565b600061466a82613a77565b915061467583613a77565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156146ae576146ad6144ce565b5b828202905092915050565b7f4e35000000000000000000000000000000000000000000000000000000000000600082015250565b60006146ef600283613ab6565b91506146fa826146b9565b602082019050919050565b6000602082019050818103600083015261471e816146e2565b9050919050565b60008160601b9050919050565b600061473d82614725565b9050919050565b600061474f82614732565b9050919050565b61476761476282613bdf565b614744565b82525050565b6000819050919050565b61478861478382613a77565b61476d565b82525050565b600061479a8285614756565b6014820191506147aa8284614777565b6020820191508190509392505050565b600081519050919050565b600082825260208201905092915050565b60006147e1826147ba565b6147eb81856147c5565b93506147fb818560208601613ac7565b61480481613afa565b840191505092915050565b600061481b83856147c5565b9350614828838584614059565b61483183613afa565b840190509392505050565b6000604082019050818103600083015261485681866147d6565b9050818103602083015261486b81848661480f565b9050949350505050565b60008151905061488481613c1b565b92915050565b6000602082840312156148a05761489f6139b2565b5b60006148ae84828501614875565b91505092915050565b7f4e36000000000000000000000000000000000000000000000000000000000000600082015250565b60006148ed600283613ab6565b91506148f8826148b7565b602082019050919050565b6000602082019050818103600083015261491c816148e0565b9050919050565b7f4143310000000000000000000000000000000000000000000000000000000000600082015250565b6000614959600383613ab6565b915061496482614923565b602082019050919050565b600060208201905081810360008301526149888161494c565b9050919050565b600061499b8385613ab6565b93506149a8838584614059565b6149b183613afa565b840190509392505050565b600060208201905081810360008301526149d781848661498f565b90509392505050565b7f4e31360000000000000000000000000000000000000000000000000000000000600082015250565b6000614a16600383613ab6565b9150614a21826149e0565b602082019050919050565b60006020820190508181036000830152614a4581614a09565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614a8682613a77565b9150614a9183613a77565b925082614aa157614aa0614a4c565b5b828204905092915050565b7f4e31370000000000000000000000000000000000000000000000000000000000600082015250565b6000614ae2600383613ab6565b9150614aed82614aac565b602082019050919050565b60006020820190508181036000830152614b1181614ad5565b9050919050565b7f4150320000000000000000000000000000000000000000000000000000000000600082015250565b6000614b4e600383613ab6565b9150614b5982614b18565b602082019050919050565b60006020820190508181036000830152614b7d81614b41565b9050919050565b7f4150310000000000000000000000000000000000000000000000000000000000600082015250565b6000614bba600383613ab6565b9150614bc582614b84565b602082019050919050565b60006020820190508181036000830152614be981614bad565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614c26602083613ab6565b9150614c3182614bf0565b602082019050919050565b60006020820190508181036000830152614c5581614c19565b9050919050565b7f4e30000000000000000000000000000000000000000000000000000000000000600082015250565b6000614c92600283613ab6565b9150614c9d82614c5c565b602082019050919050565b60006020820190508181036000830152614cc181614c85565b9050919050565b7f4e31350000000000000000000000000000000000000000000000000000000000600082015250565b6000614cfe600383613ab6565b9150614d0982614cc8565b602082019050919050565b60006020820190508181036000830152614d2d81614cf1565b9050919050565b7f4150390000000000000000000000000000000000000000000000000000000000600082015250565b6000614d6a600383613ab6565b9150614d7582614d34565b602082019050919050565b60006020820190508181036000830152614d9981614d5d565b9050919050565b7f4e31320000000000000000000000000000000000000000000000000000000000600082015250565b6000614dd6600383613ab6565b9150614de182614da0565b602082019050919050565b60006020820190508181036000830152614e0581614dc9565b9050919050565b600067ffffffffffffffff821115614e2757614e26613fad565b5b614e3082613afa565b9050602081019050919050565b6000614e50614e4b84614e0c565b61400d565b905082815260208101848484011115614e6c57614e6b613fa8565b5b614e77848285613ac7565b509392505050565b600082601f830112614e9457614e93613c87565b5b8151614ea4848260208601614e3d565b91505092915050565b600060208284031215614ec357614ec26139b2565b5b600082015167ffffffffffffffff811115614ee157614ee06139b7565b5b614eed84828501614e7f565b91505092915050565b7f4150313000000000000000000000000000000000000000000000000000000000600082015250565b6000614f2c600483613ab6565b9150614f3782614ef6565b602082019050919050565b60006020820190508181036000830152614f5b81614f1f565b9050919050565b614f6b81613a77565b82525050565b6000602082019050614f866000830184614f62565b92915050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614fb981614280565b614fc38186614f8c565b94506001821660008114614fde5760018114614fef57615022565b60ff19831686528186019350615022565b614ff885614f97565b60005b8381101561501a57815481890152600182019150602081019050614ffb565b838801955050505b50505092915050565b600061503682613aab565b6150408185614f8c565b9350615050818560208601613ac7565b80840191505092915050565b60006150688285614fac565b9150615074828461502b565b91508190509392505050565b7f4e37000000000000000000000000000000000000000000000000000000000000600082015250565b60006150b6600283613ab6565b91506150c182615080565b602082019050919050565b600060208201905081810360008301526150e5816150a9565b9050919050565b7f4e31380000000000000000000000000000000000000000000000000000000000600082015250565b6000615122600383613ab6565b915061512d826150ec565b602082019050919050565b6000602082019050818103600083015261515181615115565b9050919050565b7f4e38000000000000000000000000000000000000000000000000000000000000600082015250565b600061518e600283613ab6565b915061519982615158565b602082019050919050565b600060208201905081810360008301526151bd81615181565b9050919050565b7f4e39000000000000000000000000000000000000000000000000000000000000600082015250565b60006151fa600283613ab6565b9150615205826151c4565b602082019050919050565b60006020820190508181036000830152615229816151ed565b9050919050565b7f4e31300000000000000000000000000000000000000000000000000000000000600082015250565b6000615266600383613ab6565b915061527182615230565b602082019050919050565b6000602082019050818103600083015261529581615259565b9050919050565b60006152a88284614756565b60148201915081905092915050565b600082825260208201905092915050565b600080fd5b60006152d983856152b7565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561530c5761530b6152c8565b5b60208302925061531d838584614059565b82840190509392505050565b61533281613dcc565b82525050565b600060608201905081810360008301526153538186886152cd565b90506153626020830185615329565b61536f6040830184615329565b95945050505050565b60008151905061538781613f3c565b92915050565b6000602082840312156153a3576153a26139b2565b5b60006153b184828501615378565b91505092915050565b7f4e31310000000000000000000000000000000000000000000000000000000000600082015250565b60006153f0600383613ab6565b91506153fb826153ba565b602082019050919050565b6000602082019050818103600083015261541f816153e3565b9050919050565b7f636f6c6c656374696f6e00000000000000000000000000000000000000000000600082015250565b600061545c600a83614f8c565b915061546782615426565b600a82019050919050565b600061547e8284614fac565b91506154898261544f565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154f0602683613ab6565b91506154fb82615494565b604082019050919050565b6000602082019050818103600083015261551f816154e3565b9050919050565b7f4143300000000000000000000000000000000000000000000000000000000000600082015250565b600061555c600383613ab6565b915061556782615526565b602082019050919050565b6000602082019050818103600083015261558b8161554f565b9050919050565b7f4150313500000000000000000000000000000000000000000000000000000000600082015250565b60006155c8600483613ab6565b91506155d382615592565b602082019050919050565b600060208201905081810360008301526155f7816155bb565b9050919050565b7f4150313600000000000000000000000000000000000000000000000000000000600082015250565b6000615634600483613ab6565b915061563f826155fe565b602082019050919050565b6000602082019050818103600083015261566381615627565b9050919050565b7f4150313700000000000000000000000000000000000000000000000000000000600082015250565b60006156a0600483613ab6565b91506156ab8261566a565b602082019050919050565b600060208201905081810360008301526156cf81615693565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061570c601483613ab6565b9150615717826156d6565b602082019050919050565b6000602082019050818103600083015261573b816156ff565b9050919050565b7f4150330000000000000000000000000000000000000000000000000000000000600082015250565b6000615778600383613ab6565b915061578382615742565b602082019050919050565b600060208201905081810360008301526157a78161576b565b9050919050565b600082825260208201905092915050565b60006157ca826147ba565b6157d481856157ae565b93506157e4818560208601613ac7565b6157ed81613afa565b840191505092915050565b600060808201905061580d6000830187613bf1565b61581a6020830186613bf1565b6158276040830185613a81565b818103606083015261583981846157bf565b905095945050505050565b600081519050615853816139e8565b92915050565b60006020828403121561586f5761586e6139b2565b5b600061587d84828501615844565b91505092915050565b7f4150313100000000000000000000000000000000000000000000000000000000600082015250565b60006158bc600483613ab6565b91506158c782615886565b602082019050919050565b600060208201905081810360008301526158eb816158af565b9050919050565b7f4150313200000000000000000000000000000000000000000000000000000000600082015250565b6000615928600483613ab6565b9150615933826158f2565b602082019050919050565b600060208201905081810360008301526159578161591b565b9050919050565b7f4150313300000000000000000000000000000000000000000000000000000000600082015250565b6000615994600483613ab6565b915061599f8261595e565b602082019050919050565b600060208201905081810360008301526159c381615987565b9050919050565b60006159d582613a77565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615a0857615a076144ce565b5b60018201905091905056fea2646970667358221220dfc4e20562ccc60922fe7602be29578f8a2c5f272dfb5c27256e4c1bc236c19964736f6c634300080b0033
Loading...
Loading
Loading...
Loading
[ 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.