ERC-721
Overview
Max Total Supply
150 4K3D
Holders
7
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Fourk3D
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity 0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "./lib/ERC721Enumerable.sol"; import "base64-sol/base64.sol"; import "./interfaces/ISudoPair.sol"; import "./interfaces/ISudoSwap.sol"; //factory import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol"; import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol"; import {SafeTransferLib} from "solmate/src/utils/SafeTransferLib.sol"; interface IRenderer { function render(uint256 id) external view returns (string calldata); function attributes(uint256 id) external view returns (string calldata); } contract Fourk3D is Ownable, ERC721iEnumerable, VRFConsumerBaseV2 { enum GAME_STATE { NOT_INITIALIZED, OPEN, WAITING_NUMBER, GOT_NUMBER, FINISHED } using SafeTransferLib for address payable; IRenderer public renderer; ISudoPair public sudoPool; ISudoSwap public sudoFactory; address public dev; uint256 public multiplier; GAME_STATE public currentState; bool public started; uint128 public burned; // CHAINLINK STUFF VRFCoordinatorV2Interface COORDINATOR; // Your subscription ID. uint64 s_subscriptionId; // Goerli coordinator. For other networks, // see https://docs.chain.link/docs/vrf-contracts/#configurations address vrfCoordinator = 0x271682DEB8C4E0901D1a1550aD2e64D568E69909; // 200 gwei Key Hash bytes32 keyHash = 0x8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef; uint32 callbackGasLimit = 100000; uint16 requestConfirmations = 3; uint32 numWords = 1; uint256 public winningTicket; uint256 public s_requestId; event ConsecutiveTransfer( uint256 indexed fromTokenId, uint256 toTokenId, address indexed fromAddress, address indexed toAddress ); constructor( string memory name, string memory symbol, uint64 subscriptionId ) ERC721(name, symbol) VRFConsumerBaseV2(vrfCoordinator) { dev = 0xD95A9A47b3772a262262a5A14Fd9B0DA5cE5F0f7; sudoFactory = ISudoSwap(0xb16c1342E617A5B6E4b631EB114483FDB289c0A4); multiplier = 50; COORDINATOR = VRFCoordinatorV2Interface(vrfCoordinator); s_subscriptionId = subscriptionId; } function setup(address _renderer) external onlyOwner { renderer = IRenderer(_renderer); } function mint() internal { if (_maxSupply == 0) { _preMintReceiver = address(sudoPool); } _balances[_preMintReceiver] += multiplier; _maxSupply = _maxSupply + multiplier; // Emit the Consecutive Transfer Event emit ConsecutiveTransfer( totalSupply() == multiplier ? 1 : _maxSupply - (multiplier - 1), _maxSupply, address(0), _preMintReceiver ); } // set _preminter to sudo pool function initialize() external payable { require(currentState == GAME_STATE.NOT_INITIALIZED, "Game started"); createPool(); mint(); currentState = GAME_STATE.OPEN; } function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { // if a user sells an nft we burn it and send him the eth if (to == address(sudoPool)) { // here we do chainlink stuff for winner if ( _maxSupply - burned >= 4000 && currentState == GAME_STATE.OPEN ) { // add chainlink stuff currentState = GAME_STATE.WAITING_NUMBER; sudoPool.withdrawAllETH(); requestRandomWords(); } else if (currentState == GAME_STATE.GOT_NUMBER) { // here we distribute prize if we got number distributePrize(40); } burn(tokenId); } // if a user buys else if (from == address(sudoPool)) { if ( balanceOf(address(sudoPool)) == 0 && currentState == GAME_STATE.OPEN ) { //we mint more mint(); } } } function burn(uint256 tokenId) internal virtual { address owner = ownerOf(tokenId); _approve(address(0), tokenId); _balances[owner] -= 1; // Prevent re-assigning the token back to the Pre-Mint Receiver _owners[tokenId] = 0x000000000000000000000000000000000000dEaD; burned += 1; emit Transfer(owner, address(0), tokenId); } receive() external payable {} // pool for user to buy nfts function createPool() internal { address _sudoPair = sudoFactory.createPairETH( IERC721(address(this)), ICurve(0x432f962D8209781da23fB37b6B59ee15dE7d9841), // exponential curve payable(0x0), // _assetRecipient . LSSVMPair.PoolType.TRADE, // pool type 1001100000000000000, //delta 0.11% 0, //fee 0.01 ether, //starting price in eth 0.01 new uint256[](0) ); sudoPool = ISudoPair(_sudoPair); } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { string memory descr = "4K3D is an on chain Sudoswap game to test liquidity, a lucky holder can take home 700+ eth."; string memory image = renderer.render(_tokenId); return string( abi.encodePacked( "data:application/json;base64,", ( Base64.encode( bytes( ( abi.encodePacked( '{"name":"4K3D #', uint2str(_tokenId), '","image": ', '"', "data:image/svg+xml;base64,", Base64.encode(bytes(image)), '",', '"description":"', descr, '",', '"attributes":[]}' ) ) ) ) ) ) ); } function uint2str(uint256 _i) internal pure returns (string memory _uintAsString) { if (_i == 0) { return "0"; } uint256 j = _i; uint256 len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint256 k = len; while (_i != 0) { k = k - 1; uint8 temp = (48 + uint8(_i - (_i / 10) * 10)); bytes1 b1 = bytes1(temp); bstr[k] = b1; _i /= 10; } return string(bstr); } // this is an emergency function in the case of chainlink not working on the first call ,we call it again but shouldn't be a problem.. function emergencyRandomness() external onlyOwner { require( currentState != GAME_STATE.GOT_NUMBER && _maxSupply - burned > 4000, "Forbidden" ); currentState = GAME_STATE.WAITING_NUMBER; requestRandomWords(); } // Assumes the subscription is funded sufficiently. function requestRandomWords() internal { // Will revert if subscription is not set and funded. s_requestId = COORDINATOR.requestRandomWords( keyHash, s_subscriptionId, requestConfirmations, callbackGasLimit, numWords ); } function fulfillRandomWords( uint256, /* requestId */ uint256[] memory randomWords ) internal override { require(currentState == GAME_STATE.WAITING_NUMBER, "not goo state"); winningTicket = randomWords[0]; currentState = GAME_STATE.GOT_NUMBER; } // make this not fail function distributePrize(uint256 rounds) public { require(currentState == GAME_STATE.GOT_NUMBER, "not goo state"); uint256 supply = totalSupply(); uint256 i; unchecked { while (i < rounds) { address potentialWinner = _owners[(winningTicket + i) % supply]; if ( potentialWinner != address(0) && potentialWinner != address(sudoPool) ) { // we withdraw all eth into this contract sudoPool.withdrawAllETH(); // send 10% to dave wallet payable(dev).safeTransferETH(address(this).balance / 10); // send rest to winner payable(potentialWinner).safeTransferETH( address(this).balance ); // add state of game currentState = GAME_STATE.FINISHED; return; } i++; } winningTicket = winningTicket + i; } } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require( index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds" ); if (owner == address(_preMintReceiver)) { uint256 i = 1; uint256 supply = totalSupply(); if (supply > 2 * multiplier) { i = supply - 2 * multiplier; } uint256 matched = 0; while (i < supply) { if (ownerOf(i) == address(_preMintReceiver)) { matched += 1; if (matched - 1 == index) { return i; } } i = i + 1; } } else { uint256 tokenId = _ownedTokens[owner][index]; return tokenId; } } }
// 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 // Modified from: OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) // Modified by: Rob Secord (https://twitter.com/robsecord) // Co-founder @ Charged Particles - Visit: https://charged.fi // Co-founder @ Taggr - Visit: https://taggr.io pragma solidity ^0.8.0; import "./ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. * * @dev This implementation also includes support for pre-minting a max-supply of tokens up-front. * * Note on pre-mint: * Assumes a Max-Supply which is entirely pre-minted to initial address with sequential Token IDs. * For this reason, the "allTokens" state vars are unneccesary and have been removed. * Also defines 2 light-weight state vars: "_preMintReceiver" & "_maxSupply" * Overrides "ownerOf" & "_exists" */ abstract contract ERC721iEnumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) internal _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Tracking for the Pre-Mint Receiver address internal _preMintReceiver; // Max-Supply for Pre-Mint uint256 internal _maxSupply; /** * @dev See {IERC165-supportsInterface}. * * Note on Pre-Mint: this implementation maintains the exact same interface for IERC721Enumerable */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require( index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds" ); if (owner == address(_preMintReceiver)) { uint256 supply = totalSupply(); uint256 matched = 0; for (uint256 i = 1; i < supply; i++) { if (ownerOf(i) == address(_preMintReceiver)) { matched += 1; if (matched - 1 == index) { return i; } } } } else { uint256 tokenId = _ownedTokens[owner][index]; return tokenId; } } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { // The Total Supply is simply the Max Supply return _maxSupply; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require( index < _maxSupply, "ERC721Enumerable: global index out of bounds" ); // Array index is 0-based, whereas Token ID is 1-based (sequential). return index + 1; } /** * @dev Override the ERC721 "ownerOf" function to account for the Pre-Mint Receiver. */ function ownerOf(uint256 tokenId) public view virtual override(IERC721, ERC721) returns (address) { // Anything beyond the Pre-Minted supply will use the standard "ownerOf" if (tokenId > _maxSupply) { return super.ownerOf(tokenId); } // Since we have Pre-Minted the Max-Supply to the "Pre-Mint Receiver" account, we know: // - if the "_owners" mapping has not been assigned, then the owner is the Pre-Mint Receiver. // - after the NFT is transferred, the "_owners" mapping will be updated with the new owner. address owner_ = _owners[tokenId]; if (owner_ == address(0)) { owner_ = _preMintReceiver; } return owner_; } /** * @dev Override the ERC721 "_exists" function to account for the Pre-Minted Max-Supply. */ function _exists(uint256 tokenId) internal view virtual override(ERC721) returns (bool) { // Anything beyond the Pre-Minted supply will use the standard "_exists" if (tokenId > _maxSupply) { return super._exists(tokenId); } // We know the Max-Supply has been Pre-Minted with Sequential Token IDs return (tokenId >= 0 && tokenId <= _maxSupply); } /** * @dev See {IERC721Enumerable-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev See {IERC721Enumerable-_addTokenToOwnerEnumeration}. */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev See {IERC721Enumerable-_removeTokenFromOwnerEnumeration}. */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0; /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides functions for encoding/decoding base64 library Base64 { string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; bytes internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000" hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000" hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000" hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE_ENCODE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for {} lt(dataPtr, endPtr) {} { // read 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // write 4 characters mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and( input, 0x3F)))) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } function decode(string memory _data) internal pure returns (bytes memory) { bytes memory data = bytes(_data); if (data.length == 0) return new bytes(0); require(data.length % 4 == 0, "invalid base64 decoder input"); // load the table into memory bytes memory table = TABLE_DECODE; // every 4 characters represent 3 bytes uint256 decodedLen = (data.length / 4) * 3; // add some extra buffer at the end required for the writing bytes memory result = new bytes(decodedLen + 32); assembly { // padding with '=' let lastBytes := mload(add(data, mload(data))) if eq(and(lastBytes, 0xFF), 0x3d) { decodedLen := sub(decodedLen, 1) if eq(and(lastBytes, 0xFFFF), 0x3d3d) { decodedLen := sub(decodedLen, 1) } } // set the actual output length mstore(result, decodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 4 characters at a time for {} lt(dataPtr, endPtr) {} { // read 4 characters dataPtr := add(dataPtr, 4) let input := mload(dataPtr) // write 3 bytes let output := add( add( shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)), shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))), add( shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)), and(mload(add(tablePtr, and( input , 0xFF))), 0xFF) ) ) mstore(resultPtr, shl(232, output)) resultPtr := add(resultPtr, 3) } } return result; } }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.4; interface ISudoPair { enum CurveErrorCodes { OK, // No error INVALID_NUMITEMS, // The numItem value is 0 SPOT_PRICE_OVERFLOW // The updated spot price doesn't fit into 128 bits } function withdrawAllETH() external; function withdrawETH(uint256 amount) external; function swapTokenForAnyNFTs( uint256 numNFTs, uint256 maxExpectedTokenInput, address nftRecipient, bool isRouter, address routerCaller ) external payable; function getAllHeldIds() external view returns (uint256[] memory); function swapNFTsForToken( uint256[] calldata nftIds, uint256 minExpectedTokenOutput, address payable tokenRecipient, bool isRouter, address routerCaller ) external; function getBuyNFTQuote(uint256 numNFTs) external view returns ( CurveErrorCodes error, uint256 newSpotPrice, uint256 newDelta, uint256 inputAmount, uint256 protocolFee ); function getSellNFTQuote(uint256 numNFTs) external view returns ( CurveErrorCodes error, uint256 newSpotPrice, uint256 newDelta, uint256 outputAmount, uint256 protocolFee ); function changeSpotPrice(uint128 newSpotPrice) external; function transferOwnership(address newOwner) external; }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.4; import "./ICurve.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; interface LSSVMPair { enum PoolType { TOKEN, NFT, TRADE } } interface ISudoSwap { /** @notice Creates a pair contract using EIP-1167. @param _nft The NFT contract of the collection the pair trades @param _bondingCurve The bonding curve for the pair to price NFTs, must be whitelisted @param _assetRecipient The address that will receive the assets traders give during trades. If set to address(0), assets will be sent to the pool address. Not available to TRADE pools. @param _poolType TOKEN, NFT, or TRADE @param _delta The delta value used by the bonding curve. The meaning of delta depends on the specific curve. @param _fee The fee taken by the LP in each trade. Can only be non-zero if _poolType is Trade. @param _spotPrice The initial selling spot price @param _initialNFTIDs The list of IDs of NFTs to transfer from the sender to the pair @return pair The new pair */ function createPairETH( IERC721 _nft, ICurve _bondingCurve, address payable _assetRecipient, LSSVMPair.PoolType _poolType, uint128 _delta, uint96 _fee, uint128 _spotPrice, uint256[] calldata _initialNFTIDs ) external payable returns (address pair); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface VRFCoordinatorV2Interface { /** * @notice Get configuration relevant for making requests * @return minimumRequestConfirmations global min for request confirmations * @return maxGasLimit global max for request gas limit * @return s_provingKeyHashes list of registered key hashes */ function getRequestConfig() external view returns ( uint16, uint32, bytes32[] memory ); /** * @notice Request a set of random words. * @param keyHash - Corresponds to a particular oracle job which uses * that key for generating the VRF proof. Different keyHash's have different gas price * ceilings, so you can select a specific one to bound your maximum per request cost. * @param subId - The ID of the VRF subscription. Must be funded * with the minimum subscription balance required for the selected keyHash. * @param minimumRequestConfirmations - How many blocks you'd like the * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS * for why you may want to request more. The acceptable range is * [minimumRequestBlockConfirmations, 200]. * @param callbackGasLimit - How much gas you'd like to receive in your * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords * may be slightly less than this amount because of gas used calling the function * (argument decoding etc.), so you may need to request slightly more than you expect * to have inside fulfillRandomWords. The acceptable range is * [0, maxGasLimit] * @param numWords - The number of uint256 random values you'd like to receive * in your fulfillRandomWords callback. Note these numbers are expanded in a * secure way by the VRFCoordinator from a single random value supplied by the oracle. * @return requestId - A unique identifier of the request. Can be used to match * a request to a response in fulfillRandomWords. */ function requestRandomWords( bytes32 keyHash, uint64 subId, uint16 minimumRequestConfirmations, uint32 callbackGasLimit, uint32 numWords ) external returns (uint256 requestId); /** * @notice Create a VRF subscription. * @return subId - A unique subscription id. * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer. * @dev Note to fund the subscription, use transferAndCall. For example * @dev LINKTOKEN.transferAndCall( * @dev address(COORDINATOR), * @dev amount, * @dev abi.encode(subId)); */ function createSubscription() external returns (uint64 subId); /** * @notice Get a VRF subscription. * @param subId - ID of the subscription * @return balance - LINK balance of the subscription in juels. * @return reqCount - number of requests for this subscription, determines fee tier. * @return owner - owner of the subscription. * @return consumers - list of consumer address which are able to use this subscription. */ function getSubscription(uint64 subId) external view returns ( uint96 balance, uint64 reqCount, address owner, address[] memory consumers ); /** * @notice Request subscription owner transfer. * @param subId - ID of the subscription * @param newOwner - proposed new owner of the subscription */ function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external; /** * @notice Request subscription owner transfer. * @param subId - ID of the subscription * @dev will revert if original owner of subId has * not requested that msg.sender become the new owner. */ function acceptSubscriptionOwnerTransfer(uint64 subId) external; /** * @notice Add a consumer to a VRF subscription. * @param subId - ID of the subscription * @param consumer - New consumer which can use the subscription */ function addConsumer(uint64 subId, address consumer) external; /** * @notice Remove a consumer from a VRF subscription. * @param subId - ID of the subscription * @param consumer - Consumer to remove from the subscription */ function removeConsumer(uint64 subId, address consumer) external; /** * @notice Cancel a subscription * @param subId - ID of the subscription * @param to - Where to send the remaining LINK to */ function cancelSubscription(uint64 subId, address to) external; /* * @notice Check to see if there exists a request commitment consumers * for all consumers and keyhashes for a given sub. * @param subId - ID of the subscription * @return true if there exists at least one unfulfilled request for the subscription, false * otherwise. */ function pendingRequestExists(uint64 subId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. It ensures 2 things: * @dev 1. The fulfillment came from the VRFCoordinator * @dev 2. The consumer contract implements fulfillRandomWords. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constructor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash). Create subscription, fund it * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface * @dev subscription management functions). * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations, * @dev callbackGasLimit, numWords), * @dev see (VRFCoordinatorInterface for a description of the arguments). * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomWords method. * * @dev The randomness argument to fulfillRandomWords is a set of random words * @dev generated from your requestId and the blockHash of the request. * * @dev If your contract could have concurrent requests open, you can use the * @dev requestId returned from requestRandomWords to track which response is associated * @dev with which randomness request. * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously. * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. It is for this reason that * @dev that you can signal to an oracle you'd like them to wait longer before * @dev responding to the request (however this is not enforced in the contract * @dev and so remains effective only in the case of unmodified oracle software). */ abstract contract VRFConsumerBaseV2 { error OnlyCoordinatorCanFulfill(address have, address want); address private immutable vrfCoordinator; /** * @param _vrfCoordinator address of VRFCoordinator contract */ constructor(address _vrfCoordinator) { vrfCoordinator = _vrfCoordinator; } /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBaseV2 expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomWords the VRF output expanded to the requested number of words */ function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual; // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external { if (msg.sender != vrfCoordinator) { revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator); } fulfillRandomWords(requestId, randomWords); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; import {ERC20} from "../tokens/ERC20.sol"; /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol) /// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer. /// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller. library SafeTransferLib { /*////////////////////////////////////////////////////////////// ETH OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferETH(address to, uint256 amount) internal { bool success; assembly { // Transfer the ETH and store if it succeeded or not. success := call(gas(), to, amount, 0, 0, 0, 0) } require(success, "ETH_TRANSFER_FAILED"); } /*////////////////////////////////////////////////////////////// ERC20 OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferFrom( ERC20 token, address from, address to, uint256 amount ) internal { bool success; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument. mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 100, 0, 32) ) } require(success, "TRANSFER_FROM_FAILED"); } function safeTransfer( ERC20 token, address to, uint256 amount ) internal { bool success; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "TRANSFER_FAILED"); } function safeApprove( ERC20 token, address to, uint256 amount ) internal { bool success; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "APPROVE_FAILED"); } }
// 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 // Modifed from: OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) // Modified by: Rob Secord (https://twitter.com/robsecord) // Co-founder @ Charged Particles - Visit: https://charged.fi // Co-founder @ Taggr - Visit: https://taggr.io pragma solidity ^0.8.0; 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/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 extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. * * NOTE: Pre-Mint: * The only changes made here are: * - change scope of "_owners" from private to internal * - change scope of "_balances" from private to internal * - remove "ERC721" scope-resolution from "ownerOf" calls in order to override "ownerOf" * - modify the _burn function to burn to an alternate Null Address (prevents reassignment back to Pre-Mint Receiver) */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) internal _owners; // Mapping owner address to token count mapping(address => uint256) internal _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; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @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 || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require( owner != address(0), "ERC721: address zero is not a valid owner" ); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @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) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? 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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_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 virtual override { //solhint-disable-next-line max-line-length require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved" ); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved" ); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @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`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; // Prevent re-assigning the token back to the Pre-Mint Receiver _owners[tokenId] = 0x000000000000000000000000000000000000dEaD; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * 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 ) internal virtual { require( ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner" ); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert( "ERC721: transfer to non ERC721Receiver implementer" ); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (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); /** * @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 (last updated v4.6.0) (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`. * * 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; /** * @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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.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 (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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 (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 (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: Unlicense pragma solidity ^0.8.4; interface CurveErrorCodes { enum Error { OK, // No error INVALID_NUMITEMS, // The numItem value is 0 SPOT_PRICE_OVERFLOW // The updated spot price doesn't fit into 128 bits } } interface ICurve { function validateDelta(uint128 delta) external pure returns (bool valid); function validateSpotPrice(uint128 newSpotPrice) external view returns (bool valid); function getBuyInfo( uint128 spotPrice, uint128 delta, uint256 numItems, uint256 feeMultiplier, uint256 protocolFeeMultiplier ) external view returns ( CurveErrorCodes.Error error, uint128 newSpotPrice, uint128 newDelta, uint256 inputValue, uint256 protocolFee ); function getSellInfo( uint128 spotPrice, uint128 delta, uint256 numItems, uint256 feeMultiplier, uint256 protocolFeeMultiplier ) external view returns ( CurveErrorCodes.Error error, uint128 newSpotPrice, uint128 newDelta, uint256 outputValue, uint256 protocolFee ); }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol) /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it. abstract contract ERC20 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); /*////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public name; string public symbol; uint8 public immutable decimals; /*////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; /*////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ uint256 internal immutable INITIAL_CHAIN_ID; bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; INITIAL_CHAIN_ID = block.chainid; INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator(); } /*////////////////////////////////////////////////////////////// ERC20 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) public virtual returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transfer(address to, uint256 amount) public virtual returns (bool) { balanceOf[msg.sender] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(msg.sender, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual returns (bool) { uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; balanceOf[from] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(from, to, amount); return true; } /*////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED"); // Unchecked because the only math done is incrementing // the owner's nonce which cannot realistically overflow. unchecked { address recoveredAddress = ecrecover( keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ), owner, spender, value, nonces[owner]++, deadline ) ) ) ), v, r, s ); require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER"); allowance[recoveredAddress][spender] = value; } emit Approval(owner, spender, value); } function DOMAIN_SEPARATOR() public view virtual returns (bytes32) { return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator(); } function computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint64","name":"subscriptionId","type":"uint64"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"burned","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentState","outputs":[{"internalType":"enum Fourk3D.GAME_STATE","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dev","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rounds","type":"uint256"}],"name":"distributePrize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"payable","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":"multiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renderer","outputs":[{"internalType":"contract IRenderer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"s_requestId","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":"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":"address","name":"_renderer","type":"address"}],"name":"setup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"started","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sudoFactory","outputs":[{"internalType":"contract ISudoSwap","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sudoPool","outputs":[{"internalType":"contract ISudoPair","name":"","type":"address"}],"stateMutability":"view","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"winningTicket","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a060405273271682deb8c4e0901d1a1550ad2e64d568e69909601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef60001b601355620186a0601460006101000a81548163ffffffff021916908363ffffffff1602179055506003601460046101000a81548161ffff021916908361ffff1602179055506001601460066101000a81548163ffffffff021916908363ffffffff160217905550348015620000f157600080fd5b5060405162005d1938038062005d19833981810160405281019062000117919062000514565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683836200015c620001506200030f60201b60201c565b6200031760201b60201c565b816001908051906020019062000174929190620003db565b5080600290805190602001906200018d929190620003db565b5050508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250505073d95a9a47b3772a262262a5a14fd9b0da5ce5f0f7600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073b16c1342e617a5b6e4b631eb114483fdb289c0a4600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506032600f81905550601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050506200073a565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620003e99062000645565b90600052602060002090601f0160209004810192826200040d576000855562000459565b82601f106200042857805160ff191683800117855562000459565b8280016001018555821562000459579182015b82811115620004585782518255916020019190600101906200043b565b5b5090506200046891906200046c565b5090565b5b80821115620004875760008160009055506001016200046d565b5090565b6000620004a26200049c84620005c5565b6200059c565b905082815260208101848484011115620004bb57600080fd5b620004c88482856200060f565b509392505050565b600082601f830112620004e257600080fd5b8151620004f48482602086016200048b565b91505092915050565b6000815190506200050e8162000720565b92915050565b6000806000606084860312156200052a57600080fd5b600084015167ffffffffffffffff8111156200054557600080fd5b6200055386828701620004d0565b935050602084015167ffffffffffffffff8111156200057157600080fd5b6200057f86828701620004d0565b92505060406200059286828701620004fd565b9150509250925092565b6000620005a8620005bb565b9050620005b682826200067b565b919050565b6000604051905090565b600067ffffffffffffffff821115620005e357620005e2620006e0565b5b620005ee826200070f565b9050602081019050919050565b600067ffffffffffffffff82169050919050565b60005b838110156200062f57808201518184015260208101905062000612565b838111156200063f576000848401525b50505050565b600060028204905060018216806200065e57607f821691505b60208210811415620006755762000674620006b1565b5b50919050565b62000686826200070f565b810181811067ffffffffffffffff82111715620006a857620006a7620006e0565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6200072b81620005fb565b81146200073757600080fd5b50565b60805160601c6155b96200076060003960008181610abc0152610b1001526155b96000f3fe6080604052600436106101fd5760003560e01c8063715018a61161010d578063a22cb465116100a0578063c87b56dd1161006f578063c87b56dd1461070f578063d523f0741461074c578063e89e106a14610763578063e985e9c51461078e578063f2fde38b146107cb57610204565b8063a22cb46514610667578063b66fdf3a14610690578063b88d4fde146106bb578063c26eea54146106e457610204565b80638da5cb5b116100dc5780638da5cb5b146105bd57806391cca3db146105e857806395d89b4114610613578063993517421461063e57610204565b8063715018a61461054657806373f425611461055d5780638129fc1c146105885780638ada6b0f1461059257610204565b80631f2698ab1161019057806342842e0e1161015f57806342842e0e1461043d5780634f6ccce7146104665780636352211e146104a357806366d38203146104e057806370a082311461050957610204565b80631f2698ab146103835780631fe543e3146103ae57806323b872dd146103d75780632f745c591461040057610204565b80630c3f6acf116101cc5780630c3f6acf146102d7578063178ddeda1461030257806318160ddd1461032d5780631b3ed7221461035857610204565b806301ffc9a71461020957806306fdde0314610246578063081812fc14610271578063095ea7b3146102ae57610204565b3661020457005b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190613c0a565b6107f4565b60405161023d919061442e565b60405180910390f35b34801561025257600080fd5b5061025b61086e565b604051610268919061458d565b60405180910390f35b34801561027d57600080fd5b5061029860048036038101906102939190613c9d565b610900565b6040516102a5919061439e565b60405180910390f35b3480156102ba57600080fd5b506102d560048036038101906102d09190613bce565b610946565b005b3480156102e357600080fd5b506102ec610a5e565b6040516102f99190614572565b60405180910390f35b34801561030e57600080fd5b50610317610a71565b604051610324919061453c565b60405180910390f35b34801561033957600080fd5b50610342610a97565b60405161034f91906147ea565b60405180910390f35b34801561036457600080fd5b5061036d610aa1565b60405161037a91906147ea565b60405180910390f35b34801561038f57600080fd5b50610398610aa7565b6040516103a5919061442e565b60405180910390f35b3480156103ba57600080fd5b506103d560048036038101906103d09190613cef565b610aba565b005b3480156103e357600080fd5b506103fe60048036038101906103f99190613ac8565b610b7a565b005b34801561040c57600080fd5b5061042760048036038101906104229190613bce565b610bda565b60405161043491906147ea565b60405180910390f35b34801561044957600080fd5b50610464600480360381019061045f9190613ac8565b610dda565b005b34801561047257600080fd5b5061048d60048036038101906104889190613c9d565b610dfa565b60405161049a91906147ea565b60405180910390f35b3480156104af57600080fd5b506104ca60048036038101906104c59190613c9d565b610e54565b6040516104d7919061439e565b60405180910390f35b3480156104ec57600080fd5b5061050760048036038101906105029190613a3a565b610f0d565b005b34801561051557600080fd5b50610530600480360381019061052b9190613a3a565b610fcd565b60405161053d91906147ea565b60405180910390f35b34801561055257600080fd5b5061055b611085565b005b34801561056957600080fd5b5061057261110d565b60405161057f91906147cf565b60405180910390f35b61059061112f565b005b34801561059e57600080fd5b506105a7611254565b6040516105b49190614521565b60405180910390f35b3480156105c957600080fd5b506105d261127a565b6040516105df919061439e565b60405180910390f35b3480156105f457600080fd5b506105fd6112a3565b60405161060a919061439e565b60405180910390f35b34801561061f57600080fd5b506106286112c9565b604051610635919061458d565b60405180910390f35b34801561064a57600080fd5b5061066560048036038101906106609190613c9d565b61135b565b005b34801561067357600080fd5b5061068e60048036038101906106899190613b92565b6116db565b005b34801561069c57600080fd5b506106a56116f1565b6040516106b29190614557565b60405180910390f35b3480156106c757600080fd5b506106e260048036038101906106dd9190613b17565b611717565b005b3480156106f057600080fd5b506106f9611779565b60405161070691906147ea565b60405180910390f35b34801561071b57600080fd5b5061073660048036038101906107319190613c9d565b61177f565b604051610743919061458d565b60405180910390f35b34801561075857600080fd5b506107616118b6565b005b34801561076f57600080fd5b50610778611a9a565b60405161078591906147ea565b60405180910390f35b34801561079a57600080fd5b506107b560048036038101906107b09190613a8c565b611aa0565b6040516107c2919061442e565b60405180910390f35b3480156107d757600080fd5b506107f260048036038101906107ed9190613a3a565b611b34565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610867575061086682611c2c565b5b9050919050565b60606001805461087d90614d3f565b80601f01602080910402602001604051908101604052809291908181526020018280546108a990614d3f565b80156108f65780601f106108cb576101008083540402835291602001916108f6565b820191906000526020600020905b8154815290600101906020018083116108d957829003601f168201915b5050505050905090565b600061090b82611d0e565b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061095182610e54565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b99061470f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109e1611d59565b73ffffffffffffffffffffffffffffffffffffffff161480610a105750610a0f81610a0a611d59565b611aa0565b5b610a4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a46906146af565b60405180910390fd5b610a598383611d61565b505050565b601060009054906101000a900460ff1681565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600a54905090565b600f5481565b601060019054906101000a900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b6c57337f00000000000000000000000000000000000000000000000000000000000000006040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401610b639291906143b9565b60405180910390fd5b610b768282611e1a565b5050565b610b8b610b85611d59565b82611f79565b610bca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc1906147af565b60405180910390fd5b610bd583838361200e565b505050565b6000610be583610fcd565b8210610c26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1d906145af565b60405180910390fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d75576000600190506000610c8c610a97565b9050600f546002610c9d9190614a38565b811115610cc157600f546002610cb39190614a38565b81610cbe9190614a92565b91505b60005b81831015610d6d57600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610d0e84610e54565b73ffffffffffffffffffffffffffffffffffffffff161415610d5957600181610d37919061497a565b905084600182610d479190614a92565b1415610d5857829350505050610dd4565b5b600183610d66919061497a565b9250610cc4565b505050610dd3565b6000600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080915050610dd4565b5b92915050565b610df583838360405180602001604052806000815250611717565b505050565b6000600a548210610e40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e379061476f565b60405180910390fd5b600182610e4d919061497a565b9050919050565b6000600a54821115610e7057610e6982612275565b9050610f08565b60006003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f0357600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b809150505b919050565b610f15611d59565b73ffffffffffffffffffffffffffffffffffffffff16610f3361127a565b73ffffffffffffffffffffffffffffffffffffffff1614610f89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f80906146cf565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561103e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110359061468f565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61108d611d59565b73ffffffffffffffffffffffffffffffffffffffff166110ab61127a565b73ffffffffffffffffffffffffffffffffffffffff1614611101576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f8906146cf565b60405180910390fd5b61110b6000612327565b565b601060029054906101000a90046fffffffffffffffffffffffffffffffff1681565b60006004811115611169577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff1660048111156111b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b146111f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e89061472f565b60405180910390fd5b6111f96123eb565b611201612583565b6001601060006101000a81548160ff0219169083600481111561124d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600280546112d890614d3f565b80601f016020809104026020016040519081016040528092919081815260200182805461130490614d3f565b80156113515780601f1061132657610100808354040283529160200191611351565b820191906000526020600020905b81548152906001019060200180831161133457829003601f168201915b5050505050905090565b60036004811115611395577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff1660048111156113dd577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1461141d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114149061474f565b60405180910390fd5b6000611427610a97565b905060005b828110156116ca5760006003600084846015540181611474577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b06815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156115315750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b156116bc57600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166390386bbf6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156115a057600080fd5b505af11580156115b4573d6000803e3d6000fd5b5050505061163a600a47816115f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b04600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661274290919063ffffffff16565b611663478273ffffffffffffffffffffffffffffffffffffffff1661274290919063ffffffff16565b6004601060006101000a81548160ff021916908360048111156116af577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b02179055505050506116d8565b81806001019250505061142c565b806015540160158190555050505b50565b6116ed6116e6611d59565b8383612795565b5050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611728611722611d59565b83611f79565b611767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175e906147af565b60405180910390fd5b61177384848484612902565b50505050565b60155481565b606060006040518060800160405280605b81526020016154e9605b913990506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c321118c856040518263ffffffff1660e01b81526004016117fb91906147ea565b60006040518083038186803b15801561181357600080fd5b505afa158015611827573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906118509190613c5c565b905061188e61185e8561295e565b61186783612b33565b8460405160200161187a939291906142f3565b604051602081830303815290604052612b33565b60405160200161189e919061437c565b60405160208183030381529060405292505050919050565b6118be611d59565b73ffffffffffffffffffffffffffffffffffffffff166118dc61127a565b73ffffffffffffffffffffffffffffffffffffffff1614611932576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611929906146cf565b60405180910390fd5b6003600481111561196c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff1660048111156119b4577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14158015611a005750610fa0601060029054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16600a546119fe9190614a92565b115b611a3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a369061466f565b60405180910390fd5b6002601060006101000a81548160ff02191690836004811115611a8b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550611a98612cd2565b565b60165481565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b3c611d59565b73ffffffffffffffffffffffffffffffffffffffff16611b5a61127a565b73ffffffffffffffffffffffffffffffffffffffff1614611bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba7906146cf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c17906145ef565b60405180910390fd5b611c2981612327565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611cf757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611d075750611d0682612ddb565b5b9050919050565b611d1781612e45565b611d56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4d906146ef565b60405180910390fd5b50565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611dd483610e54565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60026004811115611e54577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff166004811115611e9c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14611edc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed39061474f565b60405180910390fd5b80600081518110611f16577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516015819055506003601060006101000a81548160ff02191690836004811115611f70577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b02179055505050565b600080611f8583610e54565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611fc75750611fc68185611aa0565b5b8061200557508373ffffffffffffffffffffffffffffffffffffffff16611fed84610900565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661202e82610e54565b73ffffffffffffffffffffffffffffffffffffffff1614612084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207b9061460f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120eb9061462f565b60405180910390fd5b6120ff838383612e7c565b61210a600082611d61565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461215a9190614a92565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121b1919061497a565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612270838383612ed4565b505050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561231e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612315906146ef565b60405180910390fd5b80915050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ce9c095d3073432f962d8209781da23fb37b6b59ee15de7d984160006002670de49f255ca4c0006000662386f26fc10000600067ffffffffffffffff811115612499577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156124c75781602001602082028036833780820191505090505b506040518963ffffffff1660e01b81526004016124eb98979695949392919061449c565b602060405180830381600087803b15801561250557600080fd5b505af1158015612519573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061253d9190613a63565b905080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600a5414156125f257600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600f5460046000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612665919061497a565b92505081905550600f54600a5461267c919061497a565b600a81905550600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff16600f546126de610a97565b14612704576001600f546126f29190614a92565b600a546126ff9190614a92565b612707565b60015b7fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d600a5460405161273891906147ea565b60405180910390a4565b600080600080600085875af1905080612790576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127879061478f565b60405180910390fd5b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fb9061464f565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516128f5919061442e565b60405180910390a3505050565b61290d84848461200e565b612919848484846132a3565b612958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294f906145cf565b60405180910390fd5b50505050565b606060008214156129a6576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612b2e565b600082905060005b600082146129d85780806129c190614da2565b915050600a826129d19190614a07565b91506129ae565b60008167ffffffffffffffff811115612a1a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612a4c5781602001600182028036833780820191505090505b50905060008290505b60008614612b2657600181612a6a9190614a92565b90506000600a8088612a7c9190614a07565b612a869190614a38565b87612a919190614a92565b6030612a9d91906149d0565b905060008160f81b905080848481518110612ae1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a88612b1d9190614a07565b97505050612a55565b819450505050505b919050565b6060600082511415612b5657604051806020016040528060008152509050612ccd565b60006040518060600160405280604081526020016155446040913990506000600360028551612b85919061497a565b612b8f9190614a07565b6004612b9b9190614a38565b90506000602082612bac919061497a565b67ffffffffffffffff811115612beb577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612c1d5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b81831015612c8c576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825360018201915050612c31565b600389510660018114612ca65760028114612cb657612cc1565b613d3d60f01b6002830352612cc1565b603d60f81b60018303525b50505050508093505050505b919050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d30601354601160149054906101000a900467ffffffffffffffff16601460049054906101000a900461ffff16601460009054906101000a900463ffffffff16601460069054906101000a900463ffffffff166040518663ffffffff1660e01b8152600401612d81959493929190614449565b602060405180830381600087803b158015612d9b57600080fd5b505af1158015612daf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dd39190613cc6565b601681905550565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000600a54821115612e6157612e5a8261343a565b9050612e77565b60008210158015612e745750600a548211155b90505b919050565b612e878383836134a6565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612ecf57612ec483826134ab565b612ece8282613618565b5b505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561317f57610fa0601060029054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16600a54612f6b9190614a92565b10158015612ff8575060016004811115612fae577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff166004811115612ff6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b145b156130dd576002601060006101000a81548160ff02191690836004811115613049577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166390386bbf6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156130b857600080fd5b505af11580156130cc573d6000803e3d6000fd5b505050506130d8612cd2565b613171565b60036004811115613117577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff16600481111561315f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156131705761316f602861135b565b5b5b61317a81613697565b61329e565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561329d576000613202600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610fcd565b14801561328e575060016004811115613244577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff16600481111561328c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b145b1561329c5761329b612583565b5b5b5b505050565b60006132c48473ffffffffffffffffffffffffffffffffffffffff1661381e565b1561342d578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026132ed611d59565b8786866040518563ffffffff1660e01b815260040161330f94939291906143e2565b602060405180830381600087803b15801561332957600080fd5b505af192505050801561335a57506040513d601f19601f820116820180604052508101906133579190613c33565b60015b6133dd573d806000811461338a576040519150601f19603f3d011682016040523d82523d6000602084013e61338f565b606091505b506000815114156133d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133cc906145cf565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613432565b600190505b949350505050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b505050565b600060016134b884610fcd565b6134c29190614a92565b90506000600860008481526020019081526020016000205490508181146135a7576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600061362383610fcd565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b60006136a282610e54565b90506136af600083611d61565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136ff9190614a92565b9250508190555061dead6003600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001601060028282829054906101000a90046fffffffffffffffffffffffffffffffff166137889190614934565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555081600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600061385461384f8461482a565b614805565b9050808382526020820190508285602086028201111561387357600080fd5b60005b858110156138a357816138898882613a10565b845260208401935060208301925050600181019050613876565b5050509392505050565b60006138c06138bb84614856565b614805565b9050828152602081018484840111156138d857600080fd5b6138e3848285614cfd565b509392505050565b60006138fe6138f984614887565b614805565b90508281526020810184848401111561391657600080fd5b613921848285614d0c565b509392505050565b6000813590506139388161548c565b92915050565b60008151905061394d8161548c565b92915050565b600082601f83011261396457600080fd5b8135613974848260208601613841565b91505092915050565b60008135905061398c816154a3565b92915050565b6000813590506139a1816154ba565b92915050565b6000815190506139b6816154ba565b92915050565b600082601f8301126139cd57600080fd5b81356139dd8482602086016138ad565b91505092915050565b600082601f8301126139f757600080fd5b8151613a078482602086016138eb565b91505092915050565b600081359050613a1f816154d1565b92915050565b600081519050613a34816154d1565b92915050565b600060208284031215613a4c57600080fd5b6000613a5a84828501613929565b91505092915050565b600060208284031215613a7557600080fd5b6000613a838482850161393e565b91505092915050565b60008060408385031215613a9f57600080fd5b6000613aad85828601613929565b9250506020613abe85828601613929565b9150509250929050565b600080600060608486031215613add57600080fd5b6000613aeb86828701613929565b9350506020613afc86828701613929565b9250506040613b0d86828701613a10565b9150509250925092565b60008060008060808587031215613b2d57600080fd5b6000613b3b87828801613929565b9450506020613b4c87828801613929565b9350506040613b5d87828801613a10565b925050606085013567ffffffffffffffff811115613b7a57600080fd5b613b86878288016139bc565b91505092959194509250565b60008060408385031215613ba557600080fd5b6000613bb385828601613929565b9250506020613bc48582860161397d565b9150509250929050565b60008060408385031215613be157600080fd5b6000613bef85828601613929565b9250506020613c0085828601613a10565b9150509250929050565b600060208284031215613c1c57600080fd5b6000613c2a84828501613992565b91505092915050565b600060208284031215613c4557600080fd5b6000613c53848285016139a7565b91505092915050565b600060208284031215613c6e57600080fd5b600082015167ffffffffffffffff811115613c8857600080fd5b613c94848285016139e6565b91505092915050565b600060208284031215613caf57600080fd5b6000613cbd84828501613a10565b91505092915050565b600060208284031215613cd857600080fd5b6000613ce684828501613a25565b91505092915050565b60008060408385031215613d0257600080fd5b6000613d1085828601613a10565b925050602083013567ffffffffffffffff811115613d2d57600080fd5b613d3985828601613953565b9150509250929050565b6000613d4f83836142b7565b60208301905092915050565b613d6481614ad8565b82525050565b613d7381614ac6565b82525050565b6000613d84826148c8565b613d8e81856148f6565b9350613d99836148b8565b8060005b83811015613dca578151613db18882613d43565b9750613dbc836148e9565b925050600181019050613d9d565b5085935050505092915050565b613de081614aea565b82525050565b613def81614af6565b82525050565b6000613e00826148d3565b613e0a8185614907565b9350613e1a818560208601614d0c565b613e2381614ed6565b840191505092915050565b613e3781614bef565b82525050565b613e4681614c13565b82525050565b613e5581614c37565b82525050565b613e6481614c5b565b82525050565b613e7381614c7f565b82525050565b613e8281614ca3565b82525050565b613e9181614cb5565b82525050565b613ea081614cc7565b82525050565b613eaf81614cd9565b82525050565b613ebe81614ceb565b82525050565b6000613ecf826148de565b613ed98185614918565b9350613ee9818560208601614d0c565b613ef281614ed6565b840191505092915050565b6000613f08826148de565b613f128185614929565b9350613f22818560208601614d0c565b80840191505092915050565b6000613f3b602b83614918565b9150613f4682614ee7565b604082019050919050565b6000613f5e603283614918565b9150613f6982614f36565b604082019050919050565b6000613f81600f83614929565b9150613f8c82614f85565b600f82019050919050565b6000613fa4602683614918565b9150613faf82614fae565b604082019050919050565b6000613fc7600283614929565b9150613fd282614ffd565b600282019050919050565b6000613fea602583614918565b9150613ff582615026565b604082019050919050565b600061400d602483614918565b915061401882615075565b604082019050919050565b6000614030601983614918565b915061403b826150c4565b602082019050919050565b6000614053600983614918565b915061405e826150ed565b602082019050919050565b6000614076602983614918565b915061408182615116565b604082019050919050565b6000614099600183614929565b91506140a482615165565b600182019050919050565b60006140bc603e83614918565b91506140c78261518e565b604082019050919050565b60006140df602083614918565b91506140ea826151dd565b602082019050919050565b6000614102600b83614929565b915061410d82615206565b600b82019050919050565b6000614125601883614918565b91506141308261522f565b602082019050919050565b6000614148600f83614929565b915061415382615258565b600f82019050919050565b600061416b602183614918565b915061417682615281565b604082019050919050565b600061418e601d83614929565b9150614199826152d0565b601d82019050919050565b60006141b1600c83614918565b91506141bc826152f9565b602082019050919050565b60006141d4601083614929565b91506141df82615322565b601082019050919050565b60006141f7600d83614918565b91506142028261534b565b602082019050919050565b600061421a602c83614918565b915061422582615374565b604082019050919050565b600061423d601383614918565b9150614248826153c3565b602082019050919050565b6000614260602e83614918565b915061426b826153ec565b604082019050919050565b6000614283601a83614929565b915061428e8261543b565b601a82019050919050565b6142a281614b52565b82525050565b6142b181614b6e565b82525050565b6142c081614b9c565b82525050565b6142cf81614b9c565b82525050565b6142de81614ba6565b82525050565b6142ed81614bb6565b82525050565b60006142fe8261413b565b915061430a8286613efd565b9150614315826140f5565b91506143208261408c565b915061432b82614276565b91506143378285613efd565b915061434282613fba565b915061434d82613f74565b91506143598284613efd565b915061436482613fba565b915061436f826141c7565b9150819050949350505050565b600061438782614181565b91506143938284613efd565b915081905092915050565b60006020820190506143b36000830184613d6a565b92915050565b60006040820190506143ce6000830185613d6a565b6143db6020830184613d6a565b9392505050565b60006080820190506143f76000830187613d6a565b6144046020830186613d6a565b61441160408301856142c6565b81810360608301526144238184613df5565b905095945050505050565b60006020820190506144436000830184613dd7565b92915050565b600060a08201905061445e6000830188613de6565b61446b60208301876142e4565b61447860408301866142a8565b61448560608301856142d5565b61449260808301846142d5565b9695505050505050565b6000610100820190506144b2600083018b613e3d565b6144bf602083018a613e2e565b6144cc6040830189613d5b565b6144d96060830188613e88565b6144e66080830187613eb5565b6144f360a0830186613e97565b61450060c0830185613ea6565b81810360e08301526145128184613d79565b90509998505050505050505050565b60006020820190506145366000830184613e4c565b92915050565b60006020820190506145516000830184613e5b565b92915050565b600060208201905061456c6000830184613e6a565b92915050565b60006020820190506145876000830184613e79565b92915050565b600060208201905081810360008301526145a78184613ec4565b905092915050565b600060208201905081810360008301526145c881613f2e565b9050919050565b600060208201905081810360008301526145e881613f51565b9050919050565b6000602082019050818103600083015261460881613f97565b9050919050565b6000602082019050818103600083015261462881613fdd565b9050919050565b6000602082019050818103600083015261464881614000565b9050919050565b6000602082019050818103600083015261466881614023565b9050919050565b6000602082019050818103600083015261468881614046565b9050919050565b600060208201905081810360008301526146a881614069565b9050919050565b600060208201905081810360008301526146c8816140af565b9050919050565b600060208201905081810360008301526146e8816140d2565b9050919050565b6000602082019050818103600083015261470881614118565b9050919050565b600060208201905081810360008301526147288161415e565b9050919050565b60006020820190508181036000830152614748816141a4565b9050919050565b60006020820190508181036000830152614768816141ea565b9050919050565b600060208201905081810360008301526147888161420d565b9050919050565b600060208201905081810360008301526147a881614230565b9050919050565b600060208201905081810360008301526147c881614253565b9050919050565b60006020820190506147e46000830184614299565b92915050565b60006020820190506147ff60008301846142c6565b92915050565b600061480f614820565b905061481b8282614d71565b919050565b6000604051905090565b600067ffffffffffffffff82111561484557614844614ea7565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561487157614870614ea7565b5b61487a82614ed6565b9050602081019050919050565b600067ffffffffffffffff8211156148a2576148a1614ea7565b5b6148ab82614ed6565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061493f82614b52565b915061494a83614b52565b9250826fffffffffffffffffffffffffffffffff0382111561496f5761496e614deb565b5b828201905092915050565b600061498582614b9c565b915061499083614b9c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156149c5576149c4614deb565b5b828201905092915050565b60006149db82614bca565b91506149e683614bca565b92508260ff038211156149fc576149fb614deb565b5b828201905092915050565b6000614a1282614b9c565b9150614a1d83614b9c565b925082614a2d57614a2c614e1a565b5b828204905092915050565b6000614a4382614b9c565b9150614a4e83614b9c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614a8757614a86614deb565b5b828202905092915050565b6000614a9d82614b9c565b9150614aa883614b9c565b925082821015614abb57614aba614deb565b5b828203905092915050565b6000614ad182614b7c565b9050919050565b6000614ae382614b7c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000819050614b3a82615464565b919050565b6000819050614b4d82615478565b919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b600060ff82169050919050565b60006bffffffffffffffffffffffff82169050919050565b6000614bfa82614c01565b9050919050565b6000614c0c82614b7c565b9050919050565b6000614c1e82614c25565b9050919050565b6000614c3082614b7c565b9050919050565b6000614c4282614c49565b9050919050565b6000614c5482614b7c565b9050919050565b6000614c6682614c6d565b9050919050565b6000614c7882614b7c565b9050919050565b6000614c8a82614c91565b9050919050565b6000614c9c82614b7c565b9050919050565b6000614cae82614b2c565b9050919050565b6000614cc082614b3f565b9050919050565b6000614cd282614bd7565b9050919050565b6000614ce482614b52565b9050919050565b6000614cf682614b52565b9050919050565b82818337600083830152505050565b60005b83811015614d2a578082015181840152602081019050614d0f565b83811115614d39576000848401525b50505050565b60006002820490506001821680614d5757607f821691505b60208210811415614d6b57614d6a614e78565b5b50919050565b614d7a82614ed6565b810181811067ffffffffffffffff82111715614d9957614d98614ea7565b5b80604052505050565b6000614dad82614b9c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614de057614ddf614deb565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f226465736372697074696f6e223a220000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f222c000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f466f7262696464656e0000000000000000000000000000000000000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f2200000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f222c22696d616765223a20000000000000000000000000000000000000000000600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f7b226e616d65223a22344b334420230000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b7f47616d6520737461727465640000000000000000000000000000000000000000600082015250565b7f2261747472696275746573223a5b5d7d00000000000000000000000000000000600082015250565b7f6e6f7420676f6f20737461746500000000000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4554485f5452414e534645525f4641494c454400000000000000000000000000600082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000600082015250565b6005811061547557615474614e49565b5b50565b6003811061548957615488614e49565b5b50565b61549581614ac6565b81146154a057600080fd5b50565b6154ac81614aea565b81146154b757600080fd5b50565b6154c381614b00565b81146154ce57600080fd5b50565b6154da81614b9c565b81146154e557600080fd5b5056fe344b334420697320616e206f6e20636861696e205375646f737761702067616d6520746f2074657374206c69717569646974792c2061206c75636b7920686f6c6465722063616e2074616b6520686f6d65203730302b206574682e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122002a98fa51f020ace7ade8a5518101f5aa9901034a4fc2d2e611ec0c8d110d45964736f6c63430008040033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001240000000000000000000000000000000000000000000000000000000000000004344b3344000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004344b334400000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101fd5760003560e01c8063715018a61161010d578063a22cb465116100a0578063c87b56dd1161006f578063c87b56dd1461070f578063d523f0741461074c578063e89e106a14610763578063e985e9c51461078e578063f2fde38b146107cb57610204565b8063a22cb46514610667578063b66fdf3a14610690578063b88d4fde146106bb578063c26eea54146106e457610204565b80638da5cb5b116100dc5780638da5cb5b146105bd57806391cca3db146105e857806395d89b4114610613578063993517421461063e57610204565b8063715018a61461054657806373f425611461055d5780638129fc1c146105885780638ada6b0f1461059257610204565b80631f2698ab1161019057806342842e0e1161015f57806342842e0e1461043d5780634f6ccce7146104665780636352211e146104a357806366d38203146104e057806370a082311461050957610204565b80631f2698ab146103835780631fe543e3146103ae57806323b872dd146103d75780632f745c591461040057610204565b80630c3f6acf116101cc5780630c3f6acf146102d7578063178ddeda1461030257806318160ddd1461032d5780631b3ed7221461035857610204565b806301ffc9a71461020957806306fdde0314610246578063081812fc14610271578063095ea7b3146102ae57610204565b3661020457005b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190613c0a565b6107f4565b60405161023d919061442e565b60405180910390f35b34801561025257600080fd5b5061025b61086e565b604051610268919061458d565b60405180910390f35b34801561027d57600080fd5b5061029860048036038101906102939190613c9d565b610900565b6040516102a5919061439e565b60405180910390f35b3480156102ba57600080fd5b506102d560048036038101906102d09190613bce565b610946565b005b3480156102e357600080fd5b506102ec610a5e565b6040516102f99190614572565b60405180910390f35b34801561030e57600080fd5b50610317610a71565b604051610324919061453c565b60405180910390f35b34801561033957600080fd5b50610342610a97565b60405161034f91906147ea565b60405180910390f35b34801561036457600080fd5b5061036d610aa1565b60405161037a91906147ea565b60405180910390f35b34801561038f57600080fd5b50610398610aa7565b6040516103a5919061442e565b60405180910390f35b3480156103ba57600080fd5b506103d560048036038101906103d09190613cef565b610aba565b005b3480156103e357600080fd5b506103fe60048036038101906103f99190613ac8565b610b7a565b005b34801561040c57600080fd5b5061042760048036038101906104229190613bce565b610bda565b60405161043491906147ea565b60405180910390f35b34801561044957600080fd5b50610464600480360381019061045f9190613ac8565b610dda565b005b34801561047257600080fd5b5061048d60048036038101906104889190613c9d565b610dfa565b60405161049a91906147ea565b60405180910390f35b3480156104af57600080fd5b506104ca60048036038101906104c59190613c9d565b610e54565b6040516104d7919061439e565b60405180910390f35b3480156104ec57600080fd5b5061050760048036038101906105029190613a3a565b610f0d565b005b34801561051557600080fd5b50610530600480360381019061052b9190613a3a565b610fcd565b60405161053d91906147ea565b60405180910390f35b34801561055257600080fd5b5061055b611085565b005b34801561056957600080fd5b5061057261110d565b60405161057f91906147cf565b60405180910390f35b61059061112f565b005b34801561059e57600080fd5b506105a7611254565b6040516105b49190614521565b60405180910390f35b3480156105c957600080fd5b506105d261127a565b6040516105df919061439e565b60405180910390f35b3480156105f457600080fd5b506105fd6112a3565b60405161060a919061439e565b60405180910390f35b34801561061f57600080fd5b506106286112c9565b604051610635919061458d565b60405180910390f35b34801561064a57600080fd5b5061066560048036038101906106609190613c9d565b61135b565b005b34801561067357600080fd5b5061068e60048036038101906106899190613b92565b6116db565b005b34801561069c57600080fd5b506106a56116f1565b6040516106b29190614557565b60405180910390f35b3480156106c757600080fd5b506106e260048036038101906106dd9190613b17565b611717565b005b3480156106f057600080fd5b506106f9611779565b60405161070691906147ea565b60405180910390f35b34801561071b57600080fd5b5061073660048036038101906107319190613c9d565b61177f565b604051610743919061458d565b60405180910390f35b34801561075857600080fd5b506107616118b6565b005b34801561076f57600080fd5b50610778611a9a565b60405161078591906147ea565b60405180910390f35b34801561079a57600080fd5b506107b560048036038101906107b09190613a8c565b611aa0565b6040516107c2919061442e565b60405180910390f35b3480156107d757600080fd5b506107f260048036038101906107ed9190613a3a565b611b34565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610867575061086682611c2c565b5b9050919050565b60606001805461087d90614d3f565b80601f01602080910402602001604051908101604052809291908181526020018280546108a990614d3f565b80156108f65780601f106108cb576101008083540402835291602001916108f6565b820191906000526020600020905b8154815290600101906020018083116108d957829003601f168201915b5050505050905090565b600061090b82611d0e565b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061095182610e54565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b99061470f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109e1611d59565b73ffffffffffffffffffffffffffffffffffffffff161480610a105750610a0f81610a0a611d59565b611aa0565b5b610a4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a46906146af565b60405180910390fd5b610a598383611d61565b505050565b601060009054906101000a900460ff1681565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600a54905090565b600f5481565b601060019054906101000a900460ff1681565b7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990973ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b6c57337f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699096040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401610b639291906143b9565b60405180910390fd5b610b768282611e1a565b5050565b610b8b610b85611d59565b82611f79565b610bca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc1906147af565b60405180910390fd5b610bd583838361200e565b505050565b6000610be583610fcd565b8210610c26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1d906145af565b60405180910390fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d75576000600190506000610c8c610a97565b9050600f546002610c9d9190614a38565b811115610cc157600f546002610cb39190614a38565b81610cbe9190614a92565b91505b60005b81831015610d6d57600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610d0e84610e54565b73ffffffffffffffffffffffffffffffffffffffff161415610d5957600181610d37919061497a565b905084600182610d479190614a92565b1415610d5857829350505050610dd4565b5b600183610d66919061497a565b9250610cc4565b505050610dd3565b6000600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080915050610dd4565b5b92915050565b610df583838360405180602001604052806000815250611717565b505050565b6000600a548210610e40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e379061476f565b60405180910390fd5b600182610e4d919061497a565b9050919050565b6000600a54821115610e7057610e6982612275565b9050610f08565b60006003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f0357600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b809150505b919050565b610f15611d59565b73ffffffffffffffffffffffffffffffffffffffff16610f3361127a565b73ffffffffffffffffffffffffffffffffffffffff1614610f89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f80906146cf565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561103e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110359061468f565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61108d611d59565b73ffffffffffffffffffffffffffffffffffffffff166110ab61127a565b73ffffffffffffffffffffffffffffffffffffffff1614611101576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f8906146cf565b60405180910390fd5b61110b6000612327565b565b601060029054906101000a90046fffffffffffffffffffffffffffffffff1681565b60006004811115611169577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff1660048111156111b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b146111f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e89061472f565b60405180910390fd5b6111f96123eb565b611201612583565b6001601060006101000a81548160ff0219169083600481111561124d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600280546112d890614d3f565b80601f016020809104026020016040519081016040528092919081815260200182805461130490614d3f565b80156113515780601f1061132657610100808354040283529160200191611351565b820191906000526020600020905b81548152906001019060200180831161133457829003601f168201915b5050505050905090565b60036004811115611395577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff1660048111156113dd577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1461141d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114149061474f565b60405180910390fd5b6000611427610a97565b905060005b828110156116ca5760006003600084846015540181611474577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b06815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156115315750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b156116bc57600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166390386bbf6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156115a057600080fd5b505af11580156115b4573d6000803e3d6000fd5b5050505061163a600a47816115f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b04600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661274290919063ffffffff16565b611663478273ffffffffffffffffffffffffffffffffffffffff1661274290919063ffffffff16565b6004601060006101000a81548160ff021916908360048111156116af577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b02179055505050506116d8565b81806001019250505061142c565b806015540160158190555050505b50565b6116ed6116e6611d59565b8383612795565b5050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611728611722611d59565b83611f79565b611767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175e906147af565b60405180910390fd5b61177384848484612902565b50505050565b60155481565b606060006040518060800160405280605b81526020016154e9605b913990506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c321118c856040518263ffffffff1660e01b81526004016117fb91906147ea565b60006040518083038186803b15801561181357600080fd5b505afa158015611827573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906118509190613c5c565b905061188e61185e8561295e565b61186783612b33565b8460405160200161187a939291906142f3565b604051602081830303815290604052612b33565b60405160200161189e919061437c565b60405160208183030381529060405292505050919050565b6118be611d59565b73ffffffffffffffffffffffffffffffffffffffff166118dc61127a565b73ffffffffffffffffffffffffffffffffffffffff1614611932576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611929906146cf565b60405180910390fd5b6003600481111561196c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff1660048111156119b4577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14158015611a005750610fa0601060029054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16600a546119fe9190614a92565b115b611a3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a369061466f565b60405180910390fd5b6002601060006101000a81548160ff02191690836004811115611a8b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550611a98612cd2565b565b60165481565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b3c611d59565b73ffffffffffffffffffffffffffffffffffffffff16611b5a61127a565b73ffffffffffffffffffffffffffffffffffffffff1614611bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba7906146cf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c17906145ef565b60405180910390fd5b611c2981612327565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611cf757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611d075750611d0682612ddb565b5b9050919050565b611d1781612e45565b611d56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4d906146ef565b60405180910390fd5b50565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611dd483610e54565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60026004811115611e54577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff166004811115611e9c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14611edc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed39061474f565b60405180910390fd5b80600081518110611f16577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516015819055506003601060006101000a81548160ff02191690836004811115611f70577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b02179055505050565b600080611f8583610e54565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611fc75750611fc68185611aa0565b5b8061200557508373ffffffffffffffffffffffffffffffffffffffff16611fed84610900565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661202e82610e54565b73ffffffffffffffffffffffffffffffffffffffff1614612084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207b9061460f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120eb9061462f565b60405180910390fd5b6120ff838383612e7c565b61210a600082611d61565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461215a9190614a92565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121b1919061497a565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612270838383612ed4565b505050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561231e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612315906146ef565b60405180910390fd5b80915050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ce9c095d3073432f962d8209781da23fb37b6b59ee15de7d984160006002670de49f255ca4c0006000662386f26fc10000600067ffffffffffffffff811115612499577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156124c75781602001602082028036833780820191505090505b506040518963ffffffff1660e01b81526004016124eb98979695949392919061449c565b602060405180830381600087803b15801561250557600080fd5b505af1158015612519573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061253d9190613a63565b905080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600a5414156125f257600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600f5460046000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612665919061497a565b92505081905550600f54600a5461267c919061497a565b600a81905550600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff16600f546126de610a97565b14612704576001600f546126f29190614a92565b600a546126ff9190614a92565b612707565b60015b7fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d600a5460405161273891906147ea565b60405180910390a4565b600080600080600085875af1905080612790576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127879061478f565b60405180910390fd5b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fb9061464f565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516128f5919061442e565b60405180910390a3505050565b61290d84848461200e565b612919848484846132a3565b612958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294f906145cf565b60405180910390fd5b50505050565b606060008214156129a6576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612b2e565b600082905060005b600082146129d85780806129c190614da2565b915050600a826129d19190614a07565b91506129ae565b60008167ffffffffffffffff811115612a1a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612a4c5781602001600182028036833780820191505090505b50905060008290505b60008614612b2657600181612a6a9190614a92565b90506000600a8088612a7c9190614a07565b612a869190614a38565b87612a919190614a92565b6030612a9d91906149d0565b905060008160f81b905080848481518110612ae1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a88612b1d9190614a07565b97505050612a55565b819450505050505b919050565b6060600082511415612b5657604051806020016040528060008152509050612ccd565b60006040518060600160405280604081526020016155446040913990506000600360028551612b85919061497a565b612b8f9190614a07565b6004612b9b9190614a38565b90506000602082612bac919061497a565b67ffffffffffffffff811115612beb577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612c1d5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b81831015612c8c576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825360018201915050612c31565b600389510660018114612ca65760028114612cb657612cc1565b613d3d60f01b6002830352612cc1565b603d60f81b60018303525b50505050508093505050505b919050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d30601354601160149054906101000a900467ffffffffffffffff16601460049054906101000a900461ffff16601460009054906101000a900463ffffffff16601460069054906101000a900463ffffffff166040518663ffffffff1660e01b8152600401612d81959493929190614449565b602060405180830381600087803b158015612d9b57600080fd5b505af1158015612daf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dd39190613cc6565b601681905550565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000600a54821115612e6157612e5a8261343a565b9050612e77565b60008210158015612e745750600a548211155b90505b919050565b612e878383836134a6565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612ecf57612ec483826134ab565b612ece8282613618565b5b505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561317f57610fa0601060029054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16600a54612f6b9190614a92565b10158015612ff8575060016004811115612fae577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff166004811115612ff6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b145b156130dd576002601060006101000a81548160ff02191690836004811115613049577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166390386bbf6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156130b857600080fd5b505af11580156130cc573d6000803e3d6000fd5b505050506130d8612cd2565b613171565b60036004811115613117577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff16600481111561315f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156131705761316f602861135b565b5b5b61317a81613697565b61329e565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561329d576000613202600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610fcd565b14801561328e575060016004811115613244577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff16600481111561328c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b145b1561329c5761329b612583565b5b5b5b505050565b60006132c48473ffffffffffffffffffffffffffffffffffffffff1661381e565b1561342d578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026132ed611d59565b8786866040518563ffffffff1660e01b815260040161330f94939291906143e2565b602060405180830381600087803b15801561332957600080fd5b505af192505050801561335a57506040513d601f19601f820116820180604052508101906133579190613c33565b60015b6133dd573d806000811461338a576040519150601f19603f3d011682016040523d82523d6000602084013e61338f565b606091505b506000815114156133d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133cc906145cf565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613432565b600190505b949350505050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b505050565b600060016134b884610fcd565b6134c29190614a92565b90506000600860008481526020019081526020016000205490508181146135a7576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600061362383610fcd565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b60006136a282610e54565b90506136af600083611d61565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136ff9190614a92565b9250508190555061dead6003600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001601060028282829054906101000a90046fffffffffffffffffffffffffffffffff166137889190614934565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555081600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600061385461384f8461482a565b614805565b9050808382526020820190508285602086028201111561387357600080fd5b60005b858110156138a357816138898882613a10565b845260208401935060208301925050600181019050613876565b5050509392505050565b60006138c06138bb84614856565b614805565b9050828152602081018484840111156138d857600080fd5b6138e3848285614cfd565b509392505050565b60006138fe6138f984614887565b614805565b90508281526020810184848401111561391657600080fd5b613921848285614d0c565b509392505050565b6000813590506139388161548c565b92915050565b60008151905061394d8161548c565b92915050565b600082601f83011261396457600080fd5b8135613974848260208601613841565b91505092915050565b60008135905061398c816154a3565b92915050565b6000813590506139a1816154ba565b92915050565b6000815190506139b6816154ba565b92915050565b600082601f8301126139cd57600080fd5b81356139dd8482602086016138ad565b91505092915050565b600082601f8301126139f757600080fd5b8151613a078482602086016138eb565b91505092915050565b600081359050613a1f816154d1565b92915050565b600081519050613a34816154d1565b92915050565b600060208284031215613a4c57600080fd5b6000613a5a84828501613929565b91505092915050565b600060208284031215613a7557600080fd5b6000613a838482850161393e565b91505092915050565b60008060408385031215613a9f57600080fd5b6000613aad85828601613929565b9250506020613abe85828601613929565b9150509250929050565b600080600060608486031215613add57600080fd5b6000613aeb86828701613929565b9350506020613afc86828701613929565b9250506040613b0d86828701613a10565b9150509250925092565b60008060008060808587031215613b2d57600080fd5b6000613b3b87828801613929565b9450506020613b4c87828801613929565b9350506040613b5d87828801613a10565b925050606085013567ffffffffffffffff811115613b7a57600080fd5b613b86878288016139bc565b91505092959194509250565b60008060408385031215613ba557600080fd5b6000613bb385828601613929565b9250506020613bc48582860161397d565b9150509250929050565b60008060408385031215613be157600080fd5b6000613bef85828601613929565b9250506020613c0085828601613a10565b9150509250929050565b600060208284031215613c1c57600080fd5b6000613c2a84828501613992565b91505092915050565b600060208284031215613c4557600080fd5b6000613c53848285016139a7565b91505092915050565b600060208284031215613c6e57600080fd5b600082015167ffffffffffffffff811115613c8857600080fd5b613c94848285016139e6565b91505092915050565b600060208284031215613caf57600080fd5b6000613cbd84828501613a10565b91505092915050565b600060208284031215613cd857600080fd5b6000613ce684828501613a25565b91505092915050565b60008060408385031215613d0257600080fd5b6000613d1085828601613a10565b925050602083013567ffffffffffffffff811115613d2d57600080fd5b613d3985828601613953565b9150509250929050565b6000613d4f83836142b7565b60208301905092915050565b613d6481614ad8565b82525050565b613d7381614ac6565b82525050565b6000613d84826148c8565b613d8e81856148f6565b9350613d99836148b8565b8060005b83811015613dca578151613db18882613d43565b9750613dbc836148e9565b925050600181019050613d9d565b5085935050505092915050565b613de081614aea565b82525050565b613def81614af6565b82525050565b6000613e00826148d3565b613e0a8185614907565b9350613e1a818560208601614d0c565b613e2381614ed6565b840191505092915050565b613e3781614bef565b82525050565b613e4681614c13565b82525050565b613e5581614c37565b82525050565b613e6481614c5b565b82525050565b613e7381614c7f565b82525050565b613e8281614ca3565b82525050565b613e9181614cb5565b82525050565b613ea081614cc7565b82525050565b613eaf81614cd9565b82525050565b613ebe81614ceb565b82525050565b6000613ecf826148de565b613ed98185614918565b9350613ee9818560208601614d0c565b613ef281614ed6565b840191505092915050565b6000613f08826148de565b613f128185614929565b9350613f22818560208601614d0c565b80840191505092915050565b6000613f3b602b83614918565b9150613f4682614ee7565b604082019050919050565b6000613f5e603283614918565b9150613f6982614f36565b604082019050919050565b6000613f81600f83614929565b9150613f8c82614f85565b600f82019050919050565b6000613fa4602683614918565b9150613faf82614fae565b604082019050919050565b6000613fc7600283614929565b9150613fd282614ffd565b600282019050919050565b6000613fea602583614918565b9150613ff582615026565b604082019050919050565b600061400d602483614918565b915061401882615075565b604082019050919050565b6000614030601983614918565b915061403b826150c4565b602082019050919050565b6000614053600983614918565b915061405e826150ed565b602082019050919050565b6000614076602983614918565b915061408182615116565b604082019050919050565b6000614099600183614929565b91506140a482615165565b600182019050919050565b60006140bc603e83614918565b91506140c78261518e565b604082019050919050565b60006140df602083614918565b91506140ea826151dd565b602082019050919050565b6000614102600b83614929565b915061410d82615206565b600b82019050919050565b6000614125601883614918565b91506141308261522f565b602082019050919050565b6000614148600f83614929565b915061415382615258565b600f82019050919050565b600061416b602183614918565b915061417682615281565b604082019050919050565b600061418e601d83614929565b9150614199826152d0565b601d82019050919050565b60006141b1600c83614918565b91506141bc826152f9565b602082019050919050565b60006141d4601083614929565b91506141df82615322565b601082019050919050565b60006141f7600d83614918565b91506142028261534b565b602082019050919050565b600061421a602c83614918565b915061422582615374565b604082019050919050565b600061423d601383614918565b9150614248826153c3565b602082019050919050565b6000614260602e83614918565b915061426b826153ec565b604082019050919050565b6000614283601a83614929565b915061428e8261543b565b601a82019050919050565b6142a281614b52565b82525050565b6142b181614b6e565b82525050565b6142c081614b9c565b82525050565b6142cf81614b9c565b82525050565b6142de81614ba6565b82525050565b6142ed81614bb6565b82525050565b60006142fe8261413b565b915061430a8286613efd565b9150614315826140f5565b91506143208261408c565b915061432b82614276565b91506143378285613efd565b915061434282613fba565b915061434d82613f74565b91506143598284613efd565b915061436482613fba565b915061436f826141c7565b9150819050949350505050565b600061438782614181565b91506143938284613efd565b915081905092915050565b60006020820190506143b36000830184613d6a565b92915050565b60006040820190506143ce6000830185613d6a565b6143db6020830184613d6a565b9392505050565b60006080820190506143f76000830187613d6a565b6144046020830186613d6a565b61441160408301856142c6565b81810360608301526144238184613df5565b905095945050505050565b60006020820190506144436000830184613dd7565b92915050565b600060a08201905061445e6000830188613de6565b61446b60208301876142e4565b61447860408301866142a8565b61448560608301856142d5565b61449260808301846142d5565b9695505050505050565b6000610100820190506144b2600083018b613e3d565b6144bf602083018a613e2e565b6144cc6040830189613d5b565b6144d96060830188613e88565b6144e66080830187613eb5565b6144f360a0830186613e97565b61450060c0830185613ea6565b81810360e08301526145128184613d79565b90509998505050505050505050565b60006020820190506145366000830184613e4c565b92915050565b60006020820190506145516000830184613e5b565b92915050565b600060208201905061456c6000830184613e6a565b92915050565b60006020820190506145876000830184613e79565b92915050565b600060208201905081810360008301526145a78184613ec4565b905092915050565b600060208201905081810360008301526145c881613f2e565b9050919050565b600060208201905081810360008301526145e881613f51565b9050919050565b6000602082019050818103600083015261460881613f97565b9050919050565b6000602082019050818103600083015261462881613fdd565b9050919050565b6000602082019050818103600083015261464881614000565b9050919050565b6000602082019050818103600083015261466881614023565b9050919050565b6000602082019050818103600083015261468881614046565b9050919050565b600060208201905081810360008301526146a881614069565b9050919050565b600060208201905081810360008301526146c8816140af565b9050919050565b600060208201905081810360008301526146e8816140d2565b9050919050565b6000602082019050818103600083015261470881614118565b9050919050565b600060208201905081810360008301526147288161415e565b9050919050565b60006020820190508181036000830152614748816141a4565b9050919050565b60006020820190508181036000830152614768816141ea565b9050919050565b600060208201905081810360008301526147888161420d565b9050919050565b600060208201905081810360008301526147a881614230565b9050919050565b600060208201905081810360008301526147c881614253565b9050919050565b60006020820190506147e46000830184614299565b92915050565b60006020820190506147ff60008301846142c6565b92915050565b600061480f614820565b905061481b8282614d71565b919050565b6000604051905090565b600067ffffffffffffffff82111561484557614844614ea7565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561487157614870614ea7565b5b61487a82614ed6565b9050602081019050919050565b600067ffffffffffffffff8211156148a2576148a1614ea7565b5b6148ab82614ed6565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061493f82614b52565b915061494a83614b52565b9250826fffffffffffffffffffffffffffffffff0382111561496f5761496e614deb565b5b828201905092915050565b600061498582614b9c565b915061499083614b9c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156149c5576149c4614deb565b5b828201905092915050565b60006149db82614bca565b91506149e683614bca565b92508260ff038211156149fc576149fb614deb565b5b828201905092915050565b6000614a1282614b9c565b9150614a1d83614b9c565b925082614a2d57614a2c614e1a565b5b828204905092915050565b6000614a4382614b9c565b9150614a4e83614b9c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614a8757614a86614deb565b5b828202905092915050565b6000614a9d82614b9c565b9150614aa883614b9c565b925082821015614abb57614aba614deb565b5b828203905092915050565b6000614ad182614b7c565b9050919050565b6000614ae382614b7c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000819050614b3a82615464565b919050565b6000819050614b4d82615478565b919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b600060ff82169050919050565b60006bffffffffffffffffffffffff82169050919050565b6000614bfa82614c01565b9050919050565b6000614c0c82614b7c565b9050919050565b6000614c1e82614c25565b9050919050565b6000614c3082614b7c565b9050919050565b6000614c4282614c49565b9050919050565b6000614c5482614b7c565b9050919050565b6000614c6682614c6d565b9050919050565b6000614c7882614b7c565b9050919050565b6000614c8a82614c91565b9050919050565b6000614c9c82614b7c565b9050919050565b6000614cae82614b2c565b9050919050565b6000614cc082614b3f565b9050919050565b6000614cd282614bd7565b9050919050565b6000614ce482614b52565b9050919050565b6000614cf682614b52565b9050919050565b82818337600083830152505050565b60005b83811015614d2a578082015181840152602081019050614d0f565b83811115614d39576000848401525b50505050565b60006002820490506001821680614d5757607f821691505b60208210811415614d6b57614d6a614e78565b5b50919050565b614d7a82614ed6565b810181811067ffffffffffffffff82111715614d9957614d98614ea7565b5b80604052505050565b6000614dad82614b9c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614de057614ddf614deb565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f226465736372697074696f6e223a220000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f222c000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f466f7262696464656e0000000000000000000000000000000000000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f2200000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f222c22696d616765223a20000000000000000000000000000000000000000000600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f7b226e616d65223a22344b334420230000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b7f47616d6520737461727465640000000000000000000000000000000000000000600082015250565b7f2261747472696275746573223a5b5d7d00000000000000000000000000000000600082015250565b7f6e6f7420676f6f20737461746500000000000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4554485f5452414e534645525f4641494c454400000000000000000000000000600082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000600082015250565b6005811061547557615474614e49565b5b50565b6003811061548957615488614e49565b5b50565b61549581614ac6565b81146154a057600080fd5b50565b6154ac81614aea565b81146154b757600080fd5b50565b6154c381614b00565b81146154ce57600080fd5b50565b6154da81614b9c565b81146154e557600080fd5b5056fe344b334420697320616e206f6e20636861696e205375646f737761702067616d6520746f2074657374206c69717569646974792c2061206c75636b7920686f6c6465722063616e2074616b6520686f6d65203730302b206574682e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122002a98fa51f020ace7ade8a5518101f5aa9901034a4fc2d2e611ec0c8d110d45964736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001240000000000000000000000000000000000000000000000000000000000000004344b3344000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004344b334400000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): 4K3D
Arg [1] : symbol (string): 4K3D
Arg [2] : subscriptionId (uint64): 292
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000124
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [4] : 344b334400000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 344b334400000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.