Overview
TokenID
12084666
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CryptoCorgisBreeder
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.7.0; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./interfaces/FactoryERC1155.sol"; contract CryptoCorgisBreeder is Ownable, FactoryERC1155, ERC1155 { using SafeMath for uint256; event CorgiSold(uint256 corgiNumber, uint256 blockNumber, uint8 mutantCorgiId, address owner); uint256 public constant MAX_INT_256 = 2**256 - 1; uint256 public constant MAX_CORGIS_MINTED = 10000; uint256 public constant CORGI_LIFESPAN_BLOCKS = 256; uint256 public constant FIRST_CORGI_PRICE_ETH = 1e16; uint256 public constant INCREMENTAL_PRICE_ETH = 1e14; uint256 public constant NUMBER_MUTANT_CORGIS = 31; // Each mutant corgi has a probability of 6/2^16 of being born. uint256 public constant MUTANT_CORGI_PROBABILITY = NUMBER_MUTANT_CORGIS * 6; address payable public treasuryAddress; uint256 public corgisMinted = 0; mapping(uint256 => uint256) public corgiNumberToBlockNumber; mapping(uint256 => uint256) public blockNumberToCorgiNumber; mapping(uint8 => uint256) public mutantCorgiIdToBlockNumber; mapping(uint256 => string) public corgiIdToName; string private contractDataURI; constructor( string memory _metadataURI, string memory _contractDataURI, address payable _treasuryAddress ) ERC1155(_metadataURI) { contractDataURI = _contractDataURI; treasuryAddress = _treasuryAddress; } /// @dev https://docs.opensea.io/docs/2-custom-sale-contract-viewing-your-sale-assets-on-opensea function name() external pure override returns (string memory) { return "Crypto Corgis Breeder"; } function symbol() external pure override returns (string memory) { return "CORGI"; } function numOptions() external pure override returns (uint256) { return MAX_INT_256; } /** * Indicates that this is a factory contract. */ function supportsFactoryInterface() external pure override returns (bool) { return true; } /** * Indicates the Wyvern schema name for assets in this factory, e.g. "ERC1155" */ function factorySchemaName() external pure override returns (string memory) { return "ERC1155"; } function getClaimedCorgis() external view returns (uint256[] memory) { uint256[] memory blockNumbers = new uint256[](corgisMinted); for (uint256 i = 0; i < corgisMinted; i++) { blockNumbers[i] = corgiNumberToBlockNumber[i + 1]; } return blockNumbers; } /// @dev can only can a corgi once and only if you own it. function nameCorgi(uint256 id, string memory name) public { require(balanceOf(msg.sender, id) == 1, "CryptoCorgisBreeder: Cannot name a corgi you do not own"); require(bytes(name).length > 0, "CryptoCorgisBreeder: Cannot erase a corgi name"); require(bytes(corgiIdToName[id]).length == 0, "CryptoCorgisBreeder: Can only name a corgi once"); corgiIdToName[id] = name; } /// @dev https://docs.opensea.io/docs/contract-level-metadata function contractURI() public view returns (string memory) { return contractDataURI; } /// @dev Allow the deployer to change the smart contract meta-data. function setContractDataURI(string memory _contractDataURI) public onlyOwner { contractDataURI = _contractDataURI; } // @dev Allow the deployer to change the ERC-1155 URI function setURI(string memory _uri) public onlyOwner { _setURI(_uri); } function dnaForBlockNumber(uint256 _blockNumber) external pure returns (bytes32) { return keccak256(abi.encodePacked(_blockNumber)); } /** * @dev Returns whether the option ID can be minted. Can return false if the developer wishes to * restrict a total supply per option ID (or overall). */ function canMint(uint256 _blockNumber, uint256 _amount) public view override returns (bool) { (bool _, uint256 subResult) = block.number.trySub(CORGI_LIFESPAN_BLOCKS); if (_blockNumber > block.number || _blockNumber < subResult || _amount > 1) { return false; } return blockNumberToCorgiNumber[_blockNumber] == 0; } function priceForCorgi(uint256 _corgiNumber) public pure returns (uint256) { return FIRST_CORGI_PRICE_ETH.add(INCREMENTAL_PRICE_ETH.mul(_corgiNumber.sub(1))); } function isMutantCorgi(uint256 _blockNumber) public pure returns (bool, uint8) { return isMutantCorgi(keccak256(abi.encodePacked(_blockNumber))); } /// @dev Return whether a corgi with this DNA is a mutant, and what mutation ID it has. function isMutantCorgi(bytes32 _corgiDna) public pure returns (bool, uint8) { uint256 corgiDnaNum = uint256(_corgiDna); uint16 lastTwoBytesValue = uint16(corgiDnaNum); if (lastTwoBytesValue < MUTANT_CORGI_PROBABILITY) { return (true, uint8(lastTwoBytesValue / 6) + 1); } return (false, 0); } function mint(uint256 _blockNumber, bytes calldata _data) public payable { mint(_blockNumber, msg.sender, 1, msg.sender, _data); } function mint( uint256 _blockNumber, address _toAddress, uint256 _amount, bytes calldata _data ) public payable override { mint(_blockNumber, _toAddress, _amount, msg.sender, _data); } function mint( uint256 _blockNumber, address _toAddress, uint256 _amount, address payable _refundAddress, bytes calldata _data ) public payable { require(corgisMinted < MAX_CORGIS_MINTED, "CryptoCorgisBreeder: Cannot mint any more Crypto Corgis"); require(canMint(_blockNumber, _amount), "CryptoCorgisBreeder: Not allowed to mint for that block number"); uint256 nextCorgiId = corgisMinted + 1; uint256 price = priceForCorgi(nextCorgiId); require(msg.value >= price, "CryptoCorgisBreeder: Insufficient funds to mint a Crypto Corgi"); treasuryAddress.transfer(price); _refundAddress.transfer(msg.value.sub(price)); bytes32 corgiDna = keccak256(abi.encodePacked(_blockNumber)); (bool isMutant, uint8 mutantId) = isMutantCorgi(corgiDna); if (isMutant) { require(mutantCorgiIdToBlockNumber[mutantId] == 0, "CryptoCorgisBreeder: Crypto Corgi mutant already claimed"); mutantCorgiIdToBlockNumber[mutantId] = _blockNumber; } corgiNumberToBlockNumber[nextCorgiId] = _blockNumber; blockNumberToCorgiNumber[_blockNumber] = nextCorgiId; // Use _blockNumber as ID. _mint(_toAddress, _blockNumber, 1, _data); corgisMinted = nextCorgiId; emit CorgiSold(nextCorgiId, _blockNumber, mutantId, _toAddress); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC1155.sol"; import "./IERC1155MetadataURI.sol"; import "./IERC1155Receiver.sol"; import "../../utils/Context.sol"; import "../../introspection/ERC165.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using SafeMath for uint256; using Address for address; // Mapping from token ID to account balances mapping (uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping (address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /* * bytes4(keccak256('balanceOf(address,uint256)')) == 0x00fdd58e * bytes4(keccak256('balanceOfBatch(address[],uint256[])')) == 0x4e1273f4 * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5 * bytes4(keccak256('safeTransferFrom(address,address,uint256,uint256,bytes)')) == 0xf242432a * bytes4(keccak256('safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)')) == 0x2eb2c2d6 * * => 0x00fdd58e ^ 0x4e1273f4 ^ 0xa22cb465 ^ * 0xe985e9c5 ^ 0xf242432a ^ 0x2eb2c2d6 == 0xd9b67a26 */ bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26; /* * bytes4(keccak256('uri(uint256)')) == 0x0e89341c */ bytes4 private constant _INTERFACE_ID_ERC1155_METADATA_URI = 0x0e89341c; /** * @dev See {_setURI}. */ constructor (string memory uri_) public { _setURI(uri_); // register the supported interfaces to conform to ERC1155 via ERC165 _registerInterface(_INTERFACE_ID_ERC1155); // register the supported interfaces to conform to ERC1155MetadataURI via ERC165 _registerInterface(_INTERFACE_ID_ERC1155_METADATA_URI); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) external view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch( address[] memory accounts, uint256[] memory ids ) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(_msgSender() != operator, "ERC1155: setting approval status for self"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require(to != address(0), "ERC1155: transfer to the zero address"); require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][from] = _balances[id][from].sub(amount, "ERC1155: insufficient balance for transfer"); _balances[id][to] = _balances[id][to].add(amount); emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; _balances[id][from] = _balances[id][from].sub( amount, "ERC1155: insufficient balance for transfer" ); _balances[id][to] = _balances[id][to].add(amount); } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint(address account, uint256 id, uint256 amount, bytes memory data) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][account] = _balances[id][account].add(amount); emit TransferSingle(operator, address(0), account, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint i = 0; i < ids.length; i++) { _balances[ids[i]][to] = amounts[i].add(_balances[ids[i]][to]); } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `account` * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens of token type `id`. */ function _burn(address account, uint256 id, uint256 amount) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); _balances[id][account] = _balances[id][account].sub( amount, "ERC1155: burn amount exceeds balance" ); emit TransferSingle(operator, account, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch(address account, uint256[] memory ids, uint256[] memory amounts) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), ids, amounts, ""); for (uint i = 0; i < ids.length; i++) { _balances[ids[i]][account] = _balances[ids[i]][account].sub( amounts[i], "ERC1155: burn amount exceeds balance" ); } emit TransferBatch(operator, account, address(0), ids, amounts); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { } function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver(to).onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (bytes4 response) { if (response != IERC1155Receiver(to).onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
//SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.7.0; /** * This is a generic factory contract that can be used to mint tokens. The configuration * for minting is specified by an _optionId, which can be used to delineate various * ways of minting. * * https://docs.opensea.io/docs/2-custom-item-sale-contract */ interface FactoryERC1155 { /** * Returns the name of this factory. */ function name() external view returns (string memory); /** * Returns the symbol for this factory. */ function symbol() external view returns (string memory); /** * Number of options the factory supports. */ function numOptions() external view returns (uint256); /** * @dev Returns whether the option ID can be minted. Can return false if the developer wishes to * restrict a total supply per option ID (or overall). */ function canMint(uint256 _optionId, uint256 _amount) external view returns (bool); /** * Indicates that this is a factory contract. Ideally would use EIP 165 supportsInterface() */ function supportsFactoryInterface() external view returns (bool); /** * Indicates the Wyvern schema name for assets in this lootbox, e.g. "ERC1155" */ function factorySchemaName() external view returns (string memory); /** * @dev Mints asset(s) in accordance to a specific address with a particular "option". This should be * callable only by the contract owner or the owner's Wyvern Proxy (later universal login will solve this). * Options should also be delineated 0 - (numOptions() - 1) for convenient indexing. * @param _optionId the option id * @param _toAddress address of the future owner of the asset(s) * @param _amount amount of the option to mint * @param _data Extra data to pass during safeTransferFrom */ function mint( uint256 _optionId, address _toAddress, uint256 _amount, bytes calldata _data ) external payable; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; import "../../introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; import "./IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../introspection/IERC165.sol"; /** * _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns(bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns(bytes4); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () internal { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_metadataURI","type":"string"},{"internalType":"string","name":"_contractDataURI","type":"string"},{"internalType":"address payable","name":"_treasuryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"corgiNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"mutantCorgiId","type":"uint8"},{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"CorgiSold","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"CORGI_LIFESPAN_BLOCKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FIRST_CORGI_PRICE_ETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INCREMENTAL_PRICE_ETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_CORGIS_MINTED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_INT_256","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MUTANT_CORGI_PROBABILITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUMBER_MUTANT_CORGIS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"blockNumberToCorgiNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockNumber","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"canMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"corgiIdToName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"corgiNumberToBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"corgisMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockNumber","type":"uint256"}],"name":"dnaForBlockNumber","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"factorySchemaName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getClaimedCorgis","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockNumber","type":"uint256"}],"name":"isMutantCorgi","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_corgiDna","type":"bytes32"}],"name":"isMutantCorgi","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockNumber","type":"uint256"},{"internalType":"address","name":"_toAddress","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockNumber","type":"uint256"},{"internalType":"address","name":"_toAddress","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockNumber","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"mutantCorgiIdToBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"name","type":"string"}],"name":"nameCorgi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"numOptions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_corgiNumber","type":"uint256"}],"name":"priceForCorgi","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractDataURI","type":"string"}],"name":"setContractDataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supportsFactoryInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","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":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405260006006553480156200001657600080fd5b50604051620031cd380380620031cd833981810160405260608110156200003c57600080fd5b81019080805160405193929190846401000000008211156200005d57600080fd5b9083019060208201858111156200007357600080fd5b82516401000000008111828201881017156200008e57600080fd5b82525081516020918201929091019080838360005b83811015620000bd578181015183820152602001620000a3565b50505050905090810190601f168015620000eb5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010f57600080fd5b9083019060208201858111156200012557600080fd5b82516401000000008111828201881017156200014057600080fd5b82525081516020918201929091019080838360005b838110156200016f57818101518382015260200162000155565b50505050905090810190601f1680156200019d5780820380516001836020036101000a031916815260200191505b506040526020015191508390506000620001b662000281565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620002126301ffc9a760e01b62000285565b6200021d816200030d565b6200022f636cdb3d1360e11b62000285565b620002416303a24d0760e21b62000285565b5081516200025790600b90602085019062000326565b50600580546001600160a01b0319166001600160a01b039290921691909117905550620003d29050565b3390565b6001600160e01b03198082161415620002e5576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b80516200032290600490602084019062000326565b5050565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200035e5760008555620003a9565b82601f106200037957805160ff1916838001178555620003a9565b82800160010185558215620003a9579182015b82811115620003a95782518255916020019190600101906200038c565b50620003b7929150620003bb565b5090565b5b80821115620003b75760008155600101620003bc565b612deb80620003e26000396000f3fe6080604052600436106102505760003560e01c806362a6198511610139578063acfd3a5b116100b6578063cd7e1d081161007a578063cd7e1d0814610d56578063db7fd40814610d6b578063e8a3d48514610de0578063e985e9c514610df5578063f242432a14610e30578063f2fde38b14610f0657610250565b8063acfd3a5b14610c78578063c311c52314610c8d578063c5f956af14610ca2578063c77b66c214610cb7578063ca70c93514610d4157610250565b80638cd09172116100fd5780638cd0917214610bb55780638da5cb5b14610bca57806395d89b4114610bfb578063a18026af14610c10578063a22cb46514610c3d57610250565b806362a6198514610a865780636a4e9c8c14610ab0578063715018a614610b6157806377f8879a14610b7657806381e9854214610ba057610250565b80632bc95224116101d25780633f204736116101965780633f2047361461085657806345df57871461086b5780634b97aed9146108805780634e1273f4146108955780635570783d14610a15578063610e16bf14610a5c57610250565b80632bc952241461058b5780632eb2c2d6146105a05780632ffb238e1461076e578063310c50e814610798578063368d8f951461082c57610250565b80630e89341c116102195780630e89341c1461043a57806313560fba1461046457806322e1dea91461048e57806326b0a3af146104be57806328f4ec881461057657610250565b8062fdd58e1461025557806301ffc9a7146102a057806302fe5305146102e857806306fdde031461039b5780630bbac29d14610425575b600080fd5b34801561026157600080fd5b5061028e6004803603604081101561027857600080fd5b506001600160a01b038135169060200135610f39565b60408051918252519081900360200190f35b3480156102ac57600080fd5b506102d4600480360360208110156102c357600080fd5b50356001600160e01b031916610fab565b604080519115158252519081900360200190f35b3480156102f457600080fd5b506103996004803603602081101561030b57600080fd5b810190602081018135600160201b81111561032557600080fd5b82018360208201111561033757600080fd5b803590602001918460018302840111600160201b8311171561035857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610fca945050505050565b005b3480156103a757600080fd5b506103b0611038565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103ea5781810151838201526020016103d2565b50505050905090810190601f1680156104175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561043157600080fd5b5061028e611068565b34801561044657600080fd5b506103b06004803603602081101561045d57600080fd5b503561106e565b34801561047057600080fd5b5061028e6004803603602081101561048757600080fd5b5035611106565b34801561049a57600080fd5b506102d4600480360360408110156104b157600080fd5b5080359060200135611118565b3480156104ca57600080fd5b50610399600480360360408110156104e157600080fd5b81359190810190604081016020820135600160201b81111561050257600080fd5b82018360208201111561051457600080fd5b803590602001918460018302840111600160201b8311171561053557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061116b945050505050565b34801561058257600080fd5b5061028e611275565b34801561059757600080fd5b5061028e61127a565b3480156105ac57600080fd5b50610399600480360360a08110156105c357600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156105f657600080fd5b82018360208201111561060857600080fd5b803590602001918460208302840111600160201b8311171561062957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561067857600080fd5b82018360208201111561068a57600080fd5b803590602001918460208302840111600160201b831117156106ab57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156106fa57600080fd5b82018360208201111561070c57600080fd5b803590602001918460018302840111600160201b8311171561072d57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611284945050505050565b34801561077a57600080fd5b5061028e6004803603602081101561079157600080fd5b5035611587565b610399600480360360a08110156107ae57600080fd5b8135916001600160a01b0360208201358116926040830135926060810135909216919081019060a081016080820135600160201b8111156107ee57600080fd5b82018360208201111561080057600080fd5b803590602001918460018302840111600160201b8311171561082157600080fd5b5090925090506115ab565b34801561083857600080fd5b5061028e6004803603602081101561084f57600080fd5b503561185f565b34801561086257600080fd5b5061028e61188d565b34801561087757600080fd5b506103b0611898565b34801561088c57600080fd5b5061028e6118b9565b3480156108a157600080fd5b506109c5600480360360408110156108b857600080fd5b810190602081018135600160201b8111156108d257600080fd5b8201836020820111156108e457600080fd5b803590602001918460208302840111600160201b8311171561090557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561095457600080fd5b82018360208201111561096657600080fd5b803590602001918460208302840111600160201b8311171561098757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506118bf945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610a015781810151838201526020016109e9565b505050509050019250505060405180910390f35b348015610a2157600080fd5b50610a3f60048036036020811015610a3857600080fd5b50356119ab565b60408051921515835260ff90911660208301528051918290030190f35b348015610a6857600080fd5b506103b060048036036020811015610a7f57600080fd5b50356119e7565b348015610a9257600080fd5b50610a3f60048036036020811015610aa957600080fd5b5035611a82565b348015610abc57600080fd5b5061039960048036036020811015610ad357600080fd5b810190602081018135600160201b811115610aed57600080fd5b820183602082011115610aff57600080fd5b803590602001918460018302840111600160201b83111715610b2057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611ab9945050505050565b348015610b6d57600080fd5b50610399611b32565b348015610b8257600080fd5b5061028e60048036036020811015610b9957600080fd5b5035611bde565b348015610bac57600080fd5b5061028e611bf0565b348015610bc157600080fd5b5061028e611bf6565b348015610bd657600080fd5b50610bdf611bfb565b604080516001600160a01b039092168252519081900360200190f35b348015610c0757600080fd5b506103b0611c0a565b348015610c1c57600080fd5b5061028e60048036036020811015610c3357600080fd5b503560ff16611c29565b348015610c4957600080fd5b5061039960048036036040811015610c6057600080fd5b506001600160a01b0381351690602001351515611c3b565b348015610c8457600080fd5b506109c5611d2a565b348015610c9957600080fd5b506102d4611dbb565b348015610cae57600080fd5b50610bdf611dc0565b61039960048036036080811015610ccd57600080fd5b8135916001600160a01b036020820135169160408201359190810190608081016060820135600160201b811115610d0357600080fd5b820183602082011115610d1557600080fd5b803590602001918460018302840111600160201b83111715610d3657600080fd5b509092509050611dcf565b348015610d4d57600080fd5b5061028e611de4565b348015610d6257600080fd5b5061028e611dea565b61039960048036036040811015610d8157600080fd5b81359190810190604081016020820135600160201b811115610da257600080fd5b820183602082011115610db457600080fd5b803590602001918460018302840111600160201b83111715610dd557600080fd5b509092509050611df0565b348015610dec57600080fd5b506103b0611dff565b348015610e0157600080fd5b506102d460048036036040811015610e1857600080fd5b506001600160a01b0381358116916020013516611e95565b348015610e3c57600080fd5b50610399600480360360a0811015610e5357600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610e9257600080fd5b820183602082011115610ea457600080fd5b803590602001918460018302840111600160201b83111715610ec557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611ec3945050505050565b348015610f1257600080fd5b5061039960048036036020811015610f2957600080fd5b50356001600160a01b031661208e565b60006001600160a01b038316610f805760405162461bcd60e51b815260040180806020018281038252602b815260200180612ad5602b913960400191505060405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b6001600160e01b03191660009081526001602052604090205460ff1690565b610fd2612190565b6001600160a01b0316610fe3611bfb565b6001600160a01b03161461102c576040805162461bcd60e51b81526020600482018190526024820152600080516020612c8e833981519152604482015290519081900360640190fd5b61103581612194565b50565b60408051808201909152601581527421b93cb83a379021b7b933b4b990213932b2b232b960591b60208201525b90565b60065481565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156110fa5780601f106110cf576101008083540402835291602001916110fa565b820191906000526020600020905b8154815290600101906020018083116110dd57829003601f168201915b50505050509050919050565b60076020526000908152604090205481565b60008080611128436101006121a7565b915091504385118061113957508085105b806111445750600184115b1561115457600092505050610fa5565b505050600091825250600860205260409020541590565b6111753383610f39565b6001146111b35760405162461bcd60e51b8152600401808060200182810382526037815260200180612b4f6037913960400191505060405180910390fd5b60008151116111f35760405162461bcd60e51b815260040180806020018281038252602e815260200180612b86602e913960400191505060405180910390fd5b6000828152600a602052604090205460026000196101006001841615020190911604156112515760405162461bcd60e51b815260040180806020018281038252602f815260200180612cec602f913960400191505060405180910390fd5b6000828152600a602090815260409091208251611270928401906128b7565b505050565b60ba81565b655af3107a400081565b81518351146112c45760405162461bcd60e51b8152600401808060200182810382526028815260200180612d6d6028913960400191505060405180910390fd5b6001600160a01b0384166113095760405162461bcd60e51b8152600401808060200182810382526025815260200180612bec6025913960400191505060405180910390fd5b611311612190565b6001600160a01b0316856001600160a01b0316148061133c575061133c85611337612190565b611e95565b6113775760405162461bcd60e51b8152600401808060200182810382526032815260200180612c116032913960400191505060405180910390fd5b6000611381612190565b905061139181878787878761157f565b60005b84518110156114975760008582815181106113ab57fe5b6020026020010151905060008583815181106113c357fe5b60200260200101519050611430816040518060600160405280602a8152602001612c43602a91396002600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546121cd9092919063ffffffff16565b60008381526002602090815260408083206001600160a01b038e811685529252808320939093558a16815220546114679082612264565b60009283526002602090815260408085206001600160a01b038c1686529091529092209190915550600101611394565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561151d578181015183820152602001611505565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561155c578181015183820152602001611544565b5050505090500194505050505060405180910390a461157f8187878787876122c5565b505050505050565b60408051602080820193909352815180820384018152908201909152805191012090565b612710600654106115ed5760405162461bcd60e51b8152600401808060200182810382526037815260200180612a606037913960400191505060405180910390fd5b6115f78685611118565b6116325760405162461bcd60e51b815260040180806020018281038252603e815260200180612cae603e913960400191505060405180910390fd5b60065460010160006116438261185f565b9050803410156116845760405162461bcd60e51b815260040180806020018281038252603e815260200180612a97603e913960400191505060405180910390fd5b6005546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156116be573d6000803e3d6000fd5b506001600160a01b0385166108fc6116d63484612544565b6040518115909202916000818181858888f193505050501580156116fe573d6000803e3d6000fd5b506040805160208082018b9052825180830382018152918301909252805191012060008061172b83611a82565b91509150811561179a5760ff8116600090815260096020526040902054156117845760405162461bcd60e51b8152600401808060200182810382526038815260200180612bb46038913960400191505060405180910390fd5b60ff811660009081526009602052604090208b90555b60008581526007602090815260408083208e90558d835260088252918290208790558151601f89018290048202810182019092528782526117fc918c918e916001918c908c90819084018382808284376000920191909152506125a192505050565b600685905560408051868152602081018d905260ff8316818301526001600160a01b038c16606082015290517fb47d103499dedd3a2e2eff733fba8064aded8d0cce24d0dcb62858098691763c9181900360800190a15050505050505050505050565b6000610fa561187f611872846001612544565b655af3107a4000906126a2565b662386f26fc1000090612264565b662386f26fc1000081565b6040805180820190915260078152664552433131353560c81b602082015290565b60001990565b606081518351146119015760405162461bcd60e51b8152600401808060200182810382526029815260200180612d446029913960400191505060405180910390fd5b6000835167ffffffffffffffff8111801561191b57600080fd5b50604051908082528060200260200182016040528015611945578160200160208202803683370190505b50905060005b84518110156119a35761198485828151811061196357fe5b602002602001015185838151811061197757fe5b6020026020010151610f39565b82828151811061199057fe5b602090810291909101015260010161194b565b509392505050565b6000806119dd836040516020018082815260200191505060405160208183030381529060405280519060200120611a82565b915091505b915091565b600a6020908152600091825260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084529091830182828015611a7a5780601f10611a4f57610100808354040283529160200191611a7a565b820191906000526020600020905b815481529060010190602001808311611a5d57829003601f168201915b505050505081565b600080828060ba61ffff82161015611aac576001600661ffff8316046001019350935050506119e2565b5060009485945092505050565b611ac1612190565b6001600160a01b0316611ad2611bfb565b6001600160a01b031614611b1b576040805162461bcd60e51b81526020600482018190526024820152600080516020612c8e833981519152604482015290519081900360640190fd5b8051611b2e90600b9060208401906128b7565b5050565b611b3a612190565b6001600160a01b0316611b4b611bfb565b6001600160a01b031614611b94576040805162461bcd60e51b81526020600482018190526024820152600080516020612c8e833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60086020526000908152604090205481565b60001981565b601f81565b6000546001600160a01b031690565b604080518082019091526005815264434f52474960d81b602082015290565b60096020526000908152604090205481565b816001600160a01b0316611c4d612190565b6001600160a01b03161415611c935760405162461bcd60e51b8152600401808060200182810382526029815260200180612d1b6029913960400191505060405180910390fd5b8060036000611ca0612190565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611ce4612190565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6060600060065467ffffffffffffffff81118015611d4757600080fd5b50604051908082528060200260200182016040528015611d71578160200160208202803683370190505b50905060005b600654811015611db557600181016000908152600760205260409020548251839083908110611da257fe5b6020908102919091010152600101611d77565b50905090565b600190565b6005546001600160a01b031681565b611ddd8585853386866115ab565b5050505050565b61271081565b61010081565b611270833360013386866115ab565b600b8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015611e8b5780601f10611e6057610100808354040283529160200191611e8b565b820191906000526020600020905b815481529060010190602001808311611e6e57829003601f168201915b5050505050905090565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416611f085760405162461bcd60e51b8152600401808060200182810382526025815260200180612bec6025913960400191505060405180910390fd5b611f10612190565b6001600160a01b0316856001600160a01b03161480611f365750611f3685611337612190565b611f715760405162461bcd60e51b8152600401808060200182810382526029815260200180612b266029913960400191505060405180910390fd5b6000611f7b612190565b9050611f9b818787611f8c886126fb565b611f95886126fb565b8761157f565b611fe2836040518060600160405280602a8152602001612c43602a913960008781526002602090815260408083206001600160a01b038d16845290915290205491906121cd565b60008581526002602090815260408083206001600160a01b038b811685529252808320939093558716815220546120199084612264565b60008581526002602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a461157f818787878787612740565b612096612190565b6001600160a01b03166120a7611bfb565b6001600160a01b0316146120f0576040805162461bcd60e51b81526020600482018190526024820152600080516020612c8e833981519152604482015290519081900360640190fd5b6001600160a01b0381166121355760405162461bcd60e51b8152600401808060200182810382526026815260200180612b006026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b8051611b2e9060049060208401906128b7565b600080838311156121bd575060009050806121c6565b50600190508183035b9250929050565b6000818484111561225c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612221578181015183820152602001612209565b50505050905090810190601f16801561224e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156122be576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6122d7846001600160a01b03166128b1565b1561157f57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561236557818101518382015260200161234d565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156123a457818101518382015260200161238c565b50505050905001848103825285818151815260200191508051906020019080838360005b838110156123e05781810151838201526020016123c8565b50505050905090810190601f16801561240d5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b15801561243257600080fd5b505af192505050801561245757506040513d602081101561245257600080fd5b505160015b6124ec5761246361295e565b8061246e57506124b5565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315612221578181015183820152602001612209565b60405162461bcd60e51b8152600401808060200182810382526034815260200180612a046034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b1461253b5760405162461bcd60e51b8152600401808060200182810382526028815260200180612a386028913960400191505060405180910390fd5b50505050505050565b60008282111561259b576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6001600160a01b0384166125e65760405162461bcd60e51b8152600401808060200182810382526021815260200180612d956021913960400191505060405180910390fd5b60006125f0612190565b905061260281600087611f8c886126fb565b60008481526002602090815260408083206001600160a01b038916845290915290205461262f9084612264565b60008581526002602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4611ddd81600087878787612740565b6000826126b157506000610fa5565b828202828482816126be57fe5b04146122be5760405162461bcd60e51b8152600401808060200182810382526021815260200180612c6d6021913960400191505060405180910390fd5b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061272f57fe5b602090810291909101015292915050565b612752846001600160a01b03166128b1565b1561157f57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156127e15781810151838201526020016127c9565b50505050905090810190601f16801561280e5780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561283157600080fd5b505af192505050801561285657506040513d602081101561285157600080fd5b505160015b6128625761246361295e565b6001600160e01b0319811663f23a6e6160e01b1461253b5760405162461bcd60e51b8152600401808060200182810382526028815260200180612a386028913960400191505060405180910390fd5b3b151590565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826128ed5760008555612933565b82601f1061290657805160ff1916838001178555612933565b82800160010185558215612933579182015b82811115612933578251825591602001919060010190612918565b5061293f929150612943565b5090565b5b8082111561293f5760008155600101612944565b60e01c90565b600060443d101561296e57611065565b600481823e6308c379a06129828251612958565b1461298c57611065565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156129bc5750505050611065565b828401925082519150808211156129d65750505050611065565b503d830160208284010111156129ee57505050611065565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e7343727970746f436f72676973427265656465723a2043616e6e6f74206d696e7420616e79206d6f72652043727970746f20436f7267697343727970746f436f72676973427265656465723a20496e73756666696369656e742066756e647320746f206d696e7420612043727970746f20436f726769455243313135353a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656443727970746f436f72676973427265656465723a2043616e6e6f74206e616d65206120636f72676920796f7520646f206e6f74206f776e43727970746f436f72676973427265656465723a2043616e6e6f74206572617365206120636f726769206e616d6543727970746f436f72676973427265656465723a2043727970746f20436f726769206d7574616e7420616c726561647920636c61696d6564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657243727970746f436f72676973427265656465723a204e6f7420616c6c6f77656420746f206d696e7420666f72207468617420626c6f636b206e756d62657243727970746f436f72676973427265656465723a2043616e206f6e6c79206e616d65206120636f726769206f6e6365455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a2646970667358221220d75419ad3ac02a861aa16eb903b9fb7bc14bccf691618c477569ff484ccc2aaf64736f6c63430007060033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000f2e61080035c5dc890d3602746041f3b3dd98e3c000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f63727970746f636f726769732e636f2f6170692f746f6b656e2d6d657461646174612f7b69647d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002d68747470733a2f2f63727970746f636f726769732e636f2f6170692f636f6e74726163742d6d6574616461746100000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102505760003560e01c806362a6198511610139578063acfd3a5b116100b6578063cd7e1d081161007a578063cd7e1d0814610d56578063db7fd40814610d6b578063e8a3d48514610de0578063e985e9c514610df5578063f242432a14610e30578063f2fde38b14610f0657610250565b8063acfd3a5b14610c78578063c311c52314610c8d578063c5f956af14610ca2578063c77b66c214610cb7578063ca70c93514610d4157610250565b80638cd09172116100fd5780638cd0917214610bb55780638da5cb5b14610bca57806395d89b4114610bfb578063a18026af14610c10578063a22cb46514610c3d57610250565b806362a6198514610a865780636a4e9c8c14610ab0578063715018a614610b6157806377f8879a14610b7657806381e9854214610ba057610250565b80632bc95224116101d25780633f204736116101965780633f2047361461085657806345df57871461086b5780634b97aed9146108805780634e1273f4146108955780635570783d14610a15578063610e16bf14610a5c57610250565b80632bc952241461058b5780632eb2c2d6146105a05780632ffb238e1461076e578063310c50e814610798578063368d8f951461082c57610250565b80630e89341c116102195780630e89341c1461043a57806313560fba1461046457806322e1dea91461048e57806326b0a3af146104be57806328f4ec881461057657610250565b8062fdd58e1461025557806301ffc9a7146102a057806302fe5305146102e857806306fdde031461039b5780630bbac29d14610425575b600080fd5b34801561026157600080fd5b5061028e6004803603604081101561027857600080fd5b506001600160a01b038135169060200135610f39565b60408051918252519081900360200190f35b3480156102ac57600080fd5b506102d4600480360360208110156102c357600080fd5b50356001600160e01b031916610fab565b604080519115158252519081900360200190f35b3480156102f457600080fd5b506103996004803603602081101561030b57600080fd5b810190602081018135600160201b81111561032557600080fd5b82018360208201111561033757600080fd5b803590602001918460018302840111600160201b8311171561035857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610fca945050505050565b005b3480156103a757600080fd5b506103b0611038565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103ea5781810151838201526020016103d2565b50505050905090810190601f1680156104175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561043157600080fd5b5061028e611068565b34801561044657600080fd5b506103b06004803603602081101561045d57600080fd5b503561106e565b34801561047057600080fd5b5061028e6004803603602081101561048757600080fd5b5035611106565b34801561049a57600080fd5b506102d4600480360360408110156104b157600080fd5b5080359060200135611118565b3480156104ca57600080fd5b50610399600480360360408110156104e157600080fd5b81359190810190604081016020820135600160201b81111561050257600080fd5b82018360208201111561051457600080fd5b803590602001918460018302840111600160201b8311171561053557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061116b945050505050565b34801561058257600080fd5b5061028e611275565b34801561059757600080fd5b5061028e61127a565b3480156105ac57600080fd5b50610399600480360360a08110156105c357600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156105f657600080fd5b82018360208201111561060857600080fd5b803590602001918460208302840111600160201b8311171561062957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561067857600080fd5b82018360208201111561068a57600080fd5b803590602001918460208302840111600160201b831117156106ab57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156106fa57600080fd5b82018360208201111561070c57600080fd5b803590602001918460018302840111600160201b8311171561072d57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611284945050505050565b34801561077a57600080fd5b5061028e6004803603602081101561079157600080fd5b5035611587565b610399600480360360a08110156107ae57600080fd5b8135916001600160a01b0360208201358116926040830135926060810135909216919081019060a081016080820135600160201b8111156107ee57600080fd5b82018360208201111561080057600080fd5b803590602001918460018302840111600160201b8311171561082157600080fd5b5090925090506115ab565b34801561083857600080fd5b5061028e6004803603602081101561084f57600080fd5b503561185f565b34801561086257600080fd5b5061028e61188d565b34801561087757600080fd5b506103b0611898565b34801561088c57600080fd5b5061028e6118b9565b3480156108a157600080fd5b506109c5600480360360408110156108b857600080fd5b810190602081018135600160201b8111156108d257600080fd5b8201836020820111156108e457600080fd5b803590602001918460208302840111600160201b8311171561090557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561095457600080fd5b82018360208201111561096657600080fd5b803590602001918460208302840111600160201b8311171561098757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506118bf945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610a015781810151838201526020016109e9565b505050509050019250505060405180910390f35b348015610a2157600080fd5b50610a3f60048036036020811015610a3857600080fd5b50356119ab565b60408051921515835260ff90911660208301528051918290030190f35b348015610a6857600080fd5b506103b060048036036020811015610a7f57600080fd5b50356119e7565b348015610a9257600080fd5b50610a3f60048036036020811015610aa957600080fd5b5035611a82565b348015610abc57600080fd5b5061039960048036036020811015610ad357600080fd5b810190602081018135600160201b811115610aed57600080fd5b820183602082011115610aff57600080fd5b803590602001918460018302840111600160201b83111715610b2057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611ab9945050505050565b348015610b6d57600080fd5b50610399611b32565b348015610b8257600080fd5b5061028e60048036036020811015610b9957600080fd5b5035611bde565b348015610bac57600080fd5b5061028e611bf0565b348015610bc157600080fd5b5061028e611bf6565b348015610bd657600080fd5b50610bdf611bfb565b604080516001600160a01b039092168252519081900360200190f35b348015610c0757600080fd5b506103b0611c0a565b348015610c1c57600080fd5b5061028e60048036036020811015610c3357600080fd5b503560ff16611c29565b348015610c4957600080fd5b5061039960048036036040811015610c6057600080fd5b506001600160a01b0381351690602001351515611c3b565b348015610c8457600080fd5b506109c5611d2a565b348015610c9957600080fd5b506102d4611dbb565b348015610cae57600080fd5b50610bdf611dc0565b61039960048036036080811015610ccd57600080fd5b8135916001600160a01b036020820135169160408201359190810190608081016060820135600160201b811115610d0357600080fd5b820183602082011115610d1557600080fd5b803590602001918460018302840111600160201b83111715610d3657600080fd5b509092509050611dcf565b348015610d4d57600080fd5b5061028e611de4565b348015610d6257600080fd5b5061028e611dea565b61039960048036036040811015610d8157600080fd5b81359190810190604081016020820135600160201b811115610da257600080fd5b820183602082011115610db457600080fd5b803590602001918460018302840111600160201b83111715610dd557600080fd5b509092509050611df0565b348015610dec57600080fd5b506103b0611dff565b348015610e0157600080fd5b506102d460048036036040811015610e1857600080fd5b506001600160a01b0381358116916020013516611e95565b348015610e3c57600080fd5b50610399600480360360a0811015610e5357600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610e9257600080fd5b820183602082011115610ea457600080fd5b803590602001918460018302840111600160201b83111715610ec557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611ec3945050505050565b348015610f1257600080fd5b5061039960048036036020811015610f2957600080fd5b50356001600160a01b031661208e565b60006001600160a01b038316610f805760405162461bcd60e51b815260040180806020018281038252602b815260200180612ad5602b913960400191505060405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b6001600160e01b03191660009081526001602052604090205460ff1690565b610fd2612190565b6001600160a01b0316610fe3611bfb565b6001600160a01b03161461102c576040805162461bcd60e51b81526020600482018190526024820152600080516020612c8e833981519152604482015290519081900360640190fd5b61103581612194565b50565b60408051808201909152601581527421b93cb83a379021b7b933b4b990213932b2b232b960591b60208201525b90565b60065481565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156110fa5780601f106110cf576101008083540402835291602001916110fa565b820191906000526020600020905b8154815290600101906020018083116110dd57829003601f168201915b50505050509050919050565b60076020526000908152604090205481565b60008080611128436101006121a7565b915091504385118061113957508085105b806111445750600184115b1561115457600092505050610fa5565b505050600091825250600860205260409020541590565b6111753383610f39565b6001146111b35760405162461bcd60e51b8152600401808060200182810382526037815260200180612b4f6037913960400191505060405180910390fd5b60008151116111f35760405162461bcd60e51b815260040180806020018281038252602e815260200180612b86602e913960400191505060405180910390fd5b6000828152600a602052604090205460026000196101006001841615020190911604156112515760405162461bcd60e51b815260040180806020018281038252602f815260200180612cec602f913960400191505060405180910390fd5b6000828152600a602090815260409091208251611270928401906128b7565b505050565b60ba81565b655af3107a400081565b81518351146112c45760405162461bcd60e51b8152600401808060200182810382526028815260200180612d6d6028913960400191505060405180910390fd5b6001600160a01b0384166113095760405162461bcd60e51b8152600401808060200182810382526025815260200180612bec6025913960400191505060405180910390fd5b611311612190565b6001600160a01b0316856001600160a01b0316148061133c575061133c85611337612190565b611e95565b6113775760405162461bcd60e51b8152600401808060200182810382526032815260200180612c116032913960400191505060405180910390fd5b6000611381612190565b905061139181878787878761157f565b60005b84518110156114975760008582815181106113ab57fe5b6020026020010151905060008583815181106113c357fe5b60200260200101519050611430816040518060600160405280602a8152602001612c43602a91396002600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546121cd9092919063ffffffff16565b60008381526002602090815260408083206001600160a01b038e811685529252808320939093558a16815220546114679082612264565b60009283526002602090815260408085206001600160a01b038c1686529091529092209190915550600101611394565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561151d578181015183820152602001611505565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561155c578181015183820152602001611544565b5050505090500194505050505060405180910390a461157f8187878787876122c5565b505050505050565b60408051602080820193909352815180820384018152908201909152805191012090565b612710600654106115ed5760405162461bcd60e51b8152600401808060200182810382526037815260200180612a606037913960400191505060405180910390fd5b6115f78685611118565b6116325760405162461bcd60e51b815260040180806020018281038252603e815260200180612cae603e913960400191505060405180910390fd5b60065460010160006116438261185f565b9050803410156116845760405162461bcd60e51b815260040180806020018281038252603e815260200180612a97603e913960400191505060405180910390fd5b6005546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156116be573d6000803e3d6000fd5b506001600160a01b0385166108fc6116d63484612544565b6040518115909202916000818181858888f193505050501580156116fe573d6000803e3d6000fd5b506040805160208082018b9052825180830382018152918301909252805191012060008061172b83611a82565b91509150811561179a5760ff8116600090815260096020526040902054156117845760405162461bcd60e51b8152600401808060200182810382526038815260200180612bb46038913960400191505060405180910390fd5b60ff811660009081526009602052604090208b90555b60008581526007602090815260408083208e90558d835260088252918290208790558151601f89018290048202810182019092528782526117fc918c918e916001918c908c90819084018382808284376000920191909152506125a192505050565b600685905560408051868152602081018d905260ff8316818301526001600160a01b038c16606082015290517fb47d103499dedd3a2e2eff733fba8064aded8d0cce24d0dcb62858098691763c9181900360800190a15050505050505050505050565b6000610fa561187f611872846001612544565b655af3107a4000906126a2565b662386f26fc1000090612264565b662386f26fc1000081565b6040805180820190915260078152664552433131353560c81b602082015290565b60001990565b606081518351146119015760405162461bcd60e51b8152600401808060200182810382526029815260200180612d446029913960400191505060405180910390fd5b6000835167ffffffffffffffff8111801561191b57600080fd5b50604051908082528060200260200182016040528015611945578160200160208202803683370190505b50905060005b84518110156119a35761198485828151811061196357fe5b602002602001015185838151811061197757fe5b6020026020010151610f39565b82828151811061199057fe5b602090810291909101015260010161194b565b509392505050565b6000806119dd836040516020018082815260200191505060405160208183030381529060405280519060200120611a82565b915091505b915091565b600a6020908152600091825260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084529091830182828015611a7a5780601f10611a4f57610100808354040283529160200191611a7a565b820191906000526020600020905b815481529060010190602001808311611a5d57829003601f168201915b505050505081565b600080828060ba61ffff82161015611aac576001600661ffff8316046001019350935050506119e2565b5060009485945092505050565b611ac1612190565b6001600160a01b0316611ad2611bfb565b6001600160a01b031614611b1b576040805162461bcd60e51b81526020600482018190526024820152600080516020612c8e833981519152604482015290519081900360640190fd5b8051611b2e90600b9060208401906128b7565b5050565b611b3a612190565b6001600160a01b0316611b4b611bfb565b6001600160a01b031614611b94576040805162461bcd60e51b81526020600482018190526024820152600080516020612c8e833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60086020526000908152604090205481565b60001981565b601f81565b6000546001600160a01b031690565b604080518082019091526005815264434f52474960d81b602082015290565b60096020526000908152604090205481565b816001600160a01b0316611c4d612190565b6001600160a01b03161415611c935760405162461bcd60e51b8152600401808060200182810382526029815260200180612d1b6029913960400191505060405180910390fd5b8060036000611ca0612190565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611ce4612190565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6060600060065467ffffffffffffffff81118015611d4757600080fd5b50604051908082528060200260200182016040528015611d71578160200160208202803683370190505b50905060005b600654811015611db557600181016000908152600760205260409020548251839083908110611da257fe5b6020908102919091010152600101611d77565b50905090565b600190565b6005546001600160a01b031681565b611ddd8585853386866115ab565b5050505050565b61271081565b61010081565b611270833360013386866115ab565b600b8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015611e8b5780601f10611e6057610100808354040283529160200191611e8b565b820191906000526020600020905b815481529060010190602001808311611e6e57829003601f168201915b5050505050905090565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416611f085760405162461bcd60e51b8152600401808060200182810382526025815260200180612bec6025913960400191505060405180910390fd5b611f10612190565b6001600160a01b0316856001600160a01b03161480611f365750611f3685611337612190565b611f715760405162461bcd60e51b8152600401808060200182810382526029815260200180612b266029913960400191505060405180910390fd5b6000611f7b612190565b9050611f9b818787611f8c886126fb565b611f95886126fb565b8761157f565b611fe2836040518060600160405280602a8152602001612c43602a913960008781526002602090815260408083206001600160a01b038d16845290915290205491906121cd565b60008581526002602090815260408083206001600160a01b038b811685529252808320939093558716815220546120199084612264565b60008581526002602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a461157f818787878787612740565b612096612190565b6001600160a01b03166120a7611bfb565b6001600160a01b0316146120f0576040805162461bcd60e51b81526020600482018190526024820152600080516020612c8e833981519152604482015290519081900360640190fd5b6001600160a01b0381166121355760405162461bcd60e51b8152600401808060200182810382526026815260200180612b006026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b8051611b2e9060049060208401906128b7565b600080838311156121bd575060009050806121c6565b50600190508183035b9250929050565b6000818484111561225c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612221578181015183820152602001612209565b50505050905090810190601f16801561224e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156122be576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6122d7846001600160a01b03166128b1565b1561157f57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561236557818101518382015260200161234d565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156123a457818101518382015260200161238c565b50505050905001848103825285818151815260200191508051906020019080838360005b838110156123e05781810151838201526020016123c8565b50505050905090810190601f16801561240d5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b15801561243257600080fd5b505af192505050801561245757506040513d602081101561245257600080fd5b505160015b6124ec5761246361295e565b8061246e57506124b5565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315612221578181015183820152602001612209565b60405162461bcd60e51b8152600401808060200182810382526034815260200180612a046034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b1461253b5760405162461bcd60e51b8152600401808060200182810382526028815260200180612a386028913960400191505060405180910390fd5b50505050505050565b60008282111561259b576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6001600160a01b0384166125e65760405162461bcd60e51b8152600401808060200182810382526021815260200180612d956021913960400191505060405180910390fd5b60006125f0612190565b905061260281600087611f8c886126fb565b60008481526002602090815260408083206001600160a01b038916845290915290205461262f9084612264565b60008581526002602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4611ddd81600087878787612740565b6000826126b157506000610fa5565b828202828482816126be57fe5b04146122be5760405162461bcd60e51b8152600401808060200182810382526021815260200180612c6d6021913960400191505060405180910390fd5b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061272f57fe5b602090810291909101015292915050565b612752846001600160a01b03166128b1565b1561157f57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156127e15781810151838201526020016127c9565b50505050905090810190601f16801561280e5780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561283157600080fd5b505af192505050801561285657506040513d602081101561285157600080fd5b505160015b6128625761246361295e565b6001600160e01b0319811663f23a6e6160e01b1461253b5760405162461bcd60e51b8152600401808060200182810382526028815260200180612a386028913960400191505060405180910390fd5b3b151590565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826128ed5760008555612933565b82601f1061290657805160ff1916838001178555612933565b82800160010185558215612933579182015b82811115612933578251825591602001919060010190612918565b5061293f929150612943565b5090565b5b8082111561293f5760008155600101612944565b60e01c90565b600060443d101561296e57611065565b600481823e6308c379a06129828251612958565b1461298c57611065565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156129bc5750505050611065565b828401925082519150808211156129d65750505050611065565b503d830160208284010111156129ee57505050611065565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e7343727970746f436f72676973427265656465723a2043616e6e6f74206d696e7420616e79206d6f72652043727970746f20436f7267697343727970746f436f72676973427265656465723a20496e73756666696369656e742066756e647320746f206d696e7420612043727970746f20436f726769455243313135353a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656443727970746f436f72676973427265656465723a2043616e6e6f74206e616d65206120636f72676920796f7520646f206e6f74206f776e43727970746f436f72676973427265656465723a2043616e6e6f74206572617365206120636f726769206e616d6543727970746f436f72676973427265656465723a2043727970746f20436f726769206d7574616e7420616c726561647920636c61696d6564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657243727970746f436f72676973427265656465723a204e6f7420616c6c6f77656420746f206d696e7420666f72207468617420626c6f636b206e756d62657243727970746f436f72676973427265656465723a2043616e206f6e6c79206e616d65206120636f726769206f6e6365455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a2646970667358221220d75419ad3ac02a861aa16eb903b9fb7bc14bccf691618c477569ff484ccc2aaf64736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000f2e61080035c5dc890d3602746041f3b3dd98e3c000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f63727970746f636f726769732e636f2f6170692f746f6b656e2d6d657461646174612f7b69647d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002d68747470733a2f2f63727970746f636f726769732e636f2f6170692f636f6e74726163742d6d6574616461746100000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _metadataURI (string): https://cryptocorgis.co/api/token-metadata/{id}
Arg [1] : _contractDataURI (string): https://cryptocorgis.co/api/contract-metadata
Arg [2] : _treasuryAddress (address): 0xF2E61080035C5DC890d3602746041F3B3dD98E3c
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000f2e61080035c5dc890d3602746041f3b3dd98e3c
Arg [3] : 000000000000000000000000000000000000000000000000000000000000002f
Arg [4] : 68747470733a2f2f63727970746f636f726769732e636f2f6170692f746f6b65
Arg [5] : 6e2d6d657461646174612f7b69647d0000000000000000000000000000000000
Arg [6] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [7] : 68747470733a2f2f63727970746f636f726769732e636f2f6170692f636f6e74
Arg [8] : 726163742d6d6574616461746100000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.