Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
3,333 BRICK
Holders
1,455
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 BRICKLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BrickNFT
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import {ERC721} from "@rari-capital/solmate/src/tokens/ERC721.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "./ReentrancyGuard.sol"; import "./Signable.sol"; import "./IProxyTracking.sol"; import "./Helpers.sol"; import "./Errors.sol"; contract BrickNFT is ERC721, ReentrancyGuard, Signable { // Phase States: None - can't mint, Pre Sale - only mint with sign, Main Sale - only regular mint enum Phase { NONE, PRE_SALE, MAIN_SALE } struct WithdrawalAddress { address account; uint96 percentage; } // Current phase of the contract Phase private _phase; // Constants // Maximum number of NFTs can be allocated uint256 public immutable maxSupply; // ETH value should be sent with mint (owner mint is free) uint256 public mintPrice = 0.15 ether; // Number of mints account can do on the public sale uint256 public constant mintsPerAccountOnPublicSale = 1; // Addresses where money from the contract will go if the owner of the contract will call withdraw function WithdrawalAddress[] public withdrawalAddresses; // Counter used for token number in minting uint256 private _nextTokenCount = 1; // Base token and contract URI string private baseTokenURI; string private baseContractURI; // Proxy contract for tracking afterTokenTransfer call IProxyTracking public proxyTrackingContract; // Number of tokens account has minted mapping(address => uint256) public minted; // Modifier is used to check if the phase rule is met modifier phaseRequired(Phase phase_) { if (phase_ != _phase) revert Errors.MintNotAvailable(); _; } // Modifier is used to check if at least a minimal amount of money was sent modifier costs(uint256 amount) { if (msg.value < mintPrice * amount) revert Errors.InsufficientFunds(); _; } constructor( uint256 _maxSupply, string memory _baseTokenURI, string memory _baseContractURI, string memory _name, string memory _symbol, WithdrawalAddress[] memory _withdrawalAddresses ) ERC721(_name, _symbol) { maxSupply = _maxSupply; baseTokenURI = _baseTokenURI; baseContractURI = _baseContractURI; uint256 length = _withdrawalAddresses.length; if (length == 0) revert Errors.WithdrawalPercentageWrongSize(); uint256 sum; for (uint256 i; i < length; ) { uint256 percentage = _withdrawalAddresses[i].percentage; if (percentage == 0) revert Errors.WithdrawalPercentageZero(); sum += percentage; withdrawalAddresses.push(_withdrawalAddresses[i]); unchecked { ++i; } } if (sum != 100) revert Errors.WithdrawalPercentageNot100(); } // Contract owner can call this function to mint `amount` of tokens into account with the address `to` function ownerMint(address to, uint256 amount) external onlyOwner lock { if (_nextTokenCount + amount - 1 > maxSupply) revert Errors.SupplyLimitReached(); for (uint256 i; i < amount; ) { _safeMint(to, _nextTokenCount); unchecked { ++_nextTokenCount; ++i; } } } // Function used to do minting on pre-sale phase (with signature) function preSaleMint(uint256 amount, uint256 maxAmount, bytes calldata signature) external payable costs(amount) phaseRequired(Phase.PRE_SALE) lock { if (!_verify(signer(), _hash(msg.sender, maxAmount), signature)) revert Errors.InvalidSignature(); if (minted[msg.sender] + amount > maxAmount) revert Errors.AccountAlreadyMintedMax(); _mintLogic(amount); } // Function used to do minting on main-sale phase function mint(uint256 amount) external payable costs(amount) phaseRequired(Phase.MAIN_SALE) lock { if (minted[msg.sender] + amount > mintsPerAccountOnPublicSale) revert Errors.AccountAlreadyMintedMax(); _mintLogic(amount); } // Contract owner can call this function to withdraw all money from the contract into a defined wallet function withdrawAll() external onlyOwner { uint256 balance = address(this).balance; if (balance == 0) revert Errors.NothingToWithdraw(); uint256 length = withdrawalAddresses.length; for (uint256 i; i < length; ) { uint256 percentage = withdrawalAddresses[i].percentage; address withdrawalAddress = withdrawalAddresses[i].account; uint256 value = balance * percentage / 100; (withdrawalAddress.call{value: value}("")); unchecked { ++i; } } balance = address(this).balance; if (balance > 0) { (withdrawalAddresses[0].account.call{value: balance}("")); } } // Contract owner can call this function to set minting price on pre-sale and main-sale function setMintPrice(uint256 mintPrice_) external onlyOwner { if (mintPrice_ == 0) revert Errors.InvalidMintPrice(); // only allow to change price once if (mintPrice != 0.3 ether) revert Errors.MintPriceAlreadyUpdated(); mintPrice = mintPrice_; } // Contract owner can call this function to set the proxy tracking contract address (which gets a call of afterTokenTransfer function of the original contract) function setProxyTrackingContract(IProxyTracking proxyTrackingContract_) external onlyOwner { proxyTrackingContract = proxyTrackingContract_; } function setContractURI(string calldata baseContractURI_) external onlyOwner { if (bytes(baseContractURI_).length == 0) revert Errors.InvalidBaseContractURL(); baseContractURI = baseContractURI_; } function setBaseURI(string calldata baseURI_) external onlyOwner { if (bytes(baseURI_).length == 0) revert Errors.InvalidBaseURI(); baseTokenURI = baseURI_; } function setPhase(Phase phase_) external onlyOwner { _phase = phase_; } function totalSupply() external view returns (uint256) { return _nextTokenCount - 1; } function contractURI() external view returns (string memory) { return baseContractURI; } function phase() external view returns (Phase) { return _phase; } function _baseURI() internal view virtual returns (string memory) { return baseTokenURI; } function _mint(address to, uint256 id) internal virtual override { super._mint(to, id); _afterTokenTransfer(address(0), to, id); } function _burn(uint256 id) internal virtual override { address owner = _ownerOf[id]; super._burn(id); _afterTokenTransfer(owner, address(0), id); } function transferFrom( address from, address to, uint256 id ) public virtual override { super.transferFrom(from, to, id); _afterTokenTransfer(from, to, id); } // Function is overridden to do a proxy call into the proxy tracking contract if it is not zero function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual { if (address(proxyTrackingContract) != address(0)) { proxyTrackingContract.afterTokenTransfer(from, to, tokenId); } } function _mintLogic(uint256 amount) private { if (_nextTokenCount + amount - 1 > maxSupply) revert Errors.SupplyLimitReached(); for (uint256 i; i < amount; ) { _safeMint(msg.sender, _nextTokenCount); unchecked { ++_nextTokenCount; ++i; } } minted[msg.sender] += amount; } function _verify( address signer, bytes32 hash, bytes calldata signature ) private pure returns (bool) { return signer == ECDSA.recover(hash, signature); } function _hash(address account, uint256 amount) private pure returns (bytes32) { return ECDSA.toEthSignedMessageHash(keccak256(abi.encodePacked(account, amount))); } function tokenURI(uint256 tokenId) public view override returns (string memory) { if (ownerOf(tokenId) == address(0)) revert Errors.TokenDoesNotExist(); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string( abi.encodePacked(baseURI, Helpers.uint2string(tokenId)) ) : ""; } function burn(uint256 id) external { if (msg.sender != ownerOf(id)) revert Errors.NotOwner(); _burn(id); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern, minimalist, and gas efficient ERC-721 implementation. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 indexed id); event Approval(address indexed owner, address indexed spender, uint256 indexed id); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /*////////////////////////////////////////////////////////////// METADATA STORAGE/LOGIC //////////////////////////////////////////////////////////////*/ string public name; string public symbol; function tokenURI(uint256 id) public view virtual returns (string memory); /*////////////////////////////////////////////////////////////// ERC721 BALANCE/OWNER STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) internal _ownerOf; mapping(address => uint256) internal _balanceOf; function ownerOf(uint256 id) public view virtual returns (address owner) { require((owner = _ownerOf[id]) != address(0), "NOT_MINTED"); } function balanceOf(address owner) public view virtual returns (uint256) { require(owner != address(0), "ZERO_ADDRESS"); return _balanceOf[owner]; } /*////////////////////////////////////////////////////////////// ERC721 APPROVAL STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) public getApproved; mapping(address => mapping(address => bool)) public isApprovedForAll; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } /*////////////////////////////////////////////////////////////// ERC721 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 id) public virtual { address owner = _ownerOf[id]; require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED"); getApproved[id] = spender; emit Approval(owner, spender, id); } function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function transferFrom( address from, address to, uint256 id ) public virtual { require(from == _ownerOf[id], "WRONG_FROM"); require(to != address(0), "INVALID_RECIPIENT"); require( msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id], "NOT_AUTHORIZED" ); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. unchecked { _balanceOf[from]--; _balanceOf[to]++; } _ownerOf[id] = to; delete getApproved[id]; emit Transfer(from, to, id); } function safeTransferFrom( address from, address to, uint256 id ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function safeTransferFrom( address from, address to, uint256 id, bytes calldata data ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } /*////////////////////////////////////////////////////////////// ERC165 LOGIC //////////////////////////////////////////////////////////////*/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 id) internal virtual { require(to != address(0), "INVALID_RECIPIENT"); require(_ownerOf[id] == address(0), "ALREADY_MINTED"); // Counter overflow is incredibly unrealistic. unchecked { _balanceOf[to]++; } _ownerOf[id] = to; emit Transfer(address(0), to, id); } function _burn(uint256 id) internal virtual { address owner = _ownerOf[id]; require(owner != address(0), "NOT_MINTED"); // Ownership check above ensures no underflow. unchecked { _balanceOf[owner]--; } delete _ownerOf[id]; delete getApproved[id]; emit Transfer(owner, address(0), id); } /*////////////////////////////////////////////////////////////// INTERNAL SAFE MINT LOGIC //////////////////////////////////////////////////////////////*/ function _safeMint(address to, uint256 id) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function _safeMint( address to, uint256 id, bytes memory data ) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } } /// @notice A generic interface for a contract which properly accepts ERC721 tokens. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721TokenReceiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721TokenReceiver.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import "./Errors.sol"; abstract contract ReentrancyGuard { uint256 private unlocked = 1; modifier lock() { if (unlocked == 0) revert Errors.ContractLocked(); unlocked = 0; _; unlocked = 1; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@rari-capital/solmate/src/auth/Owned.sol"; import "./Errors.sol"; /// @title Contract that manages the signer/owner roles abstract contract Signable is Owned { address private _signer; constructor() Owned(msg.sender) { _signer = msg.sender; } function signer() public view returns (address) { return _signer; } /// @notice This method allow the owner change the signer role /// @dev At first, the signer role and the owner role is associated to the same address /// @param newSigner The address of the new signer function transferSigner(address newSigner) external onlyOwner { if (newSigner == address(0)) revert Errors.NewSignerCantBeZero(); _signer = newSigner; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; interface IProxyTracking { /** * @dev Called by original contract on _afterTokenTransfer ERC721 event. * * WARNING: Good practice will be to check that msg.sender is original contract, for example: require(msg.sender == _originalContract, "Only original contract can call this"); * */ function afterTokenTransfer( address from, address to, uint256 tokenId ) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; library Helpers { function uint2string(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; library Errors { error WithdrawalPercentageWrongSize(); error WithdrawalPercentageNot100(); error WithdrawalPercentageZero(); error MintNotAvailable(); error InsufficientFunds(); error SupplyLimitReached(); error ContractCantMint(); error InvalidSignature(); error AccountAlreadyMintedMax(); error TokenDoesNotExist(); error NotOwner(); error NothingToWithdraw(); error WithdrawFailed(); error InvalidMintPrice(); error MintPriceAlreadyUpdated(); error InvalidBaseContractURL(); error InvalidBaseURI(); /* ReentrancyGuard.sol */ error ContractLocked(); /* Signable.sol */ error NewSignerCantBeZero(); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Simple single owner authorization mixin. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/auth/Owned.sol) abstract contract Owned { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event OwnerUpdated(address indexed user, address indexed newOwner); /*////////////////////////////////////////////////////////////// OWNERSHIP STORAGE //////////////////////////////////////////////////////////////*/ address public owner; modifier onlyOwner() virtual { require(msg.sender == owner, "UNAUTHORIZED"); _; } /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(address _owner) { owner = _owner; emit OwnerUpdated(address(0), _owner); } /*////////////////////////////////////////////////////////////// OWNERSHIP LOGIC //////////////////////////////////////////////////////////////*/ function setOwner(address newOwner) public virtual onlyOwner { owner = newOwner; emit OwnerUpdated(msg.sender, newOwner); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"string","name":"_baseTokenURI","type":"string"},{"internalType":"string","name":"_baseContractURI","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint96","name":"percentage","type":"uint96"}],"internalType":"struct BrickNFT.WithdrawalAddress[]","name":"_withdrawalAddresses","type":"tuple[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccountAlreadyMintedMax","type":"error"},{"inputs":[],"name":"ContractLocked","type":"error"},{"inputs":[],"name":"InsufficientFunds","type":"error"},{"inputs":[],"name":"InvalidBaseContractURL","type":"error"},{"inputs":[],"name":"InvalidBaseURI","type":"error"},{"inputs":[],"name":"InvalidMintPrice","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"MintNotAvailable","type":"error"},{"inputs":[],"name":"MintPriceAlreadyUpdated","type":"error"},{"inputs":[],"name":"NewSignerCantBeZero","type":"error"},{"inputs":[],"name":"NotOwner","type":"error"},{"inputs":[],"name":"NothingToWithdraw","type":"error"},{"inputs":[],"name":"SupplyLimitReached","type":"error"},{"inputs":[],"name":"TokenDoesNotExist","type":"error"},{"inputs":[],"name":"WithdrawalPercentageNot100","type":"error"},{"inputs":[],"name":"WithdrawalPercentageWrongSize","type":"error"},{"inputs":[],"name":"WithdrawalPercentageZero","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintsPerAccountOnPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase","outputs":[{"internalType":"enum BrickNFT.Phase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"preSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"proxyTrackingContract","outputs":[{"internalType":"contract IProxyTracking","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseContractURI_","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintPrice_","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum BrickNFT.Phase","name":"phase_","type":"uint8"}],"name":"setPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IProxyTracking","name":"proxyTrackingContract_","type":"address"}],"name":"setProxyTrackingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"transferSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawalAddresses","outputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint96","name":"percentage","type":"uint96"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040526001600655670214e8348c4f00006009556001600b553480156200002757600080fd5b5060405162002c4c38038062002c4c8339810160408190526200004a91620004c3565b33838381600090805190602001906200006592919062000237565b5080516200007b90600190602084019062000237565b5050600780546001600160a01b0319166001600160a01b0384169081179091556040519091506000907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76908290a350600880546001600160a01b0319163317905560808690528451620000f690600c90602088019062000237565b5083516200010c90600d90602087019062000237565b5080516000819003620001325760405163c7f1ac2560e01b815260040160405180910390fd5b6000805b8281101562000206576000848281518110620001565762000156620005ad565b6020026020010151602001516001600160601b03169050806000036200018f57604051631bdb102160e01b815260040160405180910390fd5b6200019b8184620005c3565b9250600a858381518110620001b457620001b4620005ad565b602090810291909101810151825460018181018555600094855293839020825192909301516001600160601b0316600160a01b026001600160a01b039092169190911791015591909101905062000136565b508060641462000229576040516369c4f37960e11b815260040160405180910390fd5b505050505050505062000626565b8280546200024590620005ea565b90600052602060002090601f016020900481019282620002695760008555620002b4565b82601f106200028457805160ff1916838001178555620002b4565b82800160010185558215620002b4579182015b82811115620002b457825182559160200191906001019062000297565b50620002c2929150620002c6565b5090565b5b80821115620002c25760008155600101620002c7565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715620003185762000318620002dd565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620003495762000349620002dd565b604052919050565b600082601f8301126200036357600080fd5b81516001600160401b038111156200037f576200037f620002dd565b602062000395601f8301601f191682016200031e565b8281528582848701011115620003aa57600080fd5b60005b83811015620003ca578581018301518282018401528201620003ad565b83811115620003dc5760008385840101525b5095945050505050565b600082601f830112620003f857600080fd5b815160206001600160401b03821115620004165762000416620002dd565b62000426818360051b016200031e565b82815260069290921b840181019181810190868411156200044657600080fd5b8286015b84811015620004b85760408189031215620004655760008081fd5b6200046f620002f3565b81516001600160a01b0381168114620004885760008081fd5b8152818501516001600160601b0381168114620004a55760008081fd5b818601528352918301916040016200044a565b509695505050505050565b60008060008060008060c08789031215620004dd57600080fd5b865160208801519096506001600160401b0380821115620004fd57600080fd5b6200050b8a838b0162000351565b965060408901519150808211156200052257600080fd5b620005308a838b0162000351565b955060608901519150808211156200054757600080fd5b620005558a838b0162000351565b945060808901519150808211156200056c57600080fd5b6200057a8a838b0162000351565b935060a08901519150808211156200059157600080fd5b50620005a089828a01620003e6565b9150509295509295509295565b634e487b7160e01b600052603260045260246000fd5b60008219821115620005e557634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620005ff57607f821691505b6020821081036200062057634e487b7160e01b600052602260045260246000fd5b50919050565b6080516125fc620006506000396000818161064401528181610b7f01526118fe01526125fc6000f3fe60806040526004361061020f5760003560e01c80636817c76c11610118578063b1c9fe6e116100a0578063d5abeb011161006f578063d5abeb0114610632578063d9e0d02c14610666578063e8a3d48514610686578063e985e9c51461069b578063f4a0a528146106d657600080fd5b8063b1c9fe6e146105ab578063b88d4fde146105d2578063c03afb59146105f2578063c87b56dd1461061257600080fd5b80638da5cb5b116100e75780638da5cb5b14610523578063938e3d7b1461054357806395d89b4114610563578063a0712d6814610578578063a22cb4651461058b57600080fd5b80636817c76c146104c557806370a08231146104db578063827481ea146104fb578063853828b61461050e57600080fd5b80633660a0841161019b578063433535611161016a5780634335356114610430578063484b973c146104455780635387d2561461046557806355f804b3146104855780636352211e146104a557600080fd5b80633660a084146103895780633caaa09f146103a957806342842e0e146103f057806342966c681461041057600080fd5b806313af4035116101e257806313af4035146102db57806318160ddd146102fb5780631e7269c51461031e578063238ac9331461034b57806323b872dd1461036957600080fd5b806301ffc9a71461021457806306fdde0314610249578063081812fc1461026b578063095ea7b3146102b9575b600080fd5b34801561022057600080fd5b5061023461022f366004612068565b6106f6565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b5061025e610748565b60405161024091906120b5565b34801561027757600080fd5b506102a16102863660046120e8565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610240565b3480156102c557600080fd5b506102d96102d4366004612116565b6107d6565b005b3480156102e757600080fd5b506102d96102f6366004612142565b6108bd565b34801561030757600080fd5b50610310610933565b604051908152602001610240565b34801561032a57600080fd5b50610310610339366004612142565b600f6020526000908152604090205481565b34801561035757600080fd5b506008546001600160a01b03166102a1565b34801561037557600080fd5b506102d961038436600461215f565b610949565b34801561039557600080fd5b506102d96103a4366004612142565b610964565b3480156103b557600080fd5b506103c96103c43660046120e8565b6109d7565b604080516001600160a01b0390931683526001600160601b03909116602083015201610240565b3480156103fc57600080fd5b506102d961040b36600461215f565b610a12565b34801561041c57600080fd5b506102d961042b3660046120e8565b610ae2565b34801561043c57600080fd5b50610310600181565b34801561045157600080fd5b506102d9610460366004612116565b610b28565b34801561047157600080fd5b506102d9610480366004612142565b610c09565b34801561049157600080fd5b506102d96104a03660046121e2565b610c55565b3480156104b157600080fd5b506102a16104c03660046120e8565b610cad565b3480156104d157600080fd5b5061031060095481565b3480156104e757600080fd5b506103106104f6366004612142565b610d04565b6102d9610509366004612224565b610d67565b34801561051a57600080fd5b506102d9610ea4565b34801561052f57600080fd5b506007546102a1906001600160a01b031681565b34801561054f57600080fd5b506102d961055e3660046121e2565b611055565b34801561056f57600080fd5b5061025e6110ac565b6102d96105863660046120e8565b6110b9565b34801561059757600080fd5b506102d96105a6366004612277565b6111a5565b3480156105b757600080fd5b50600854600160a01b900460ff1660405161024091906122cb565b3480156105de57600080fd5b506102d96105ed3660046122f3565b611211565b3480156105fe57600080fd5b506102d961060d366004612366565b6112cf565b34801561061e57600080fd5b5061025e61062d3660046120e8565b611326565b34801561063e57600080fd5b506103107f000000000000000000000000000000000000000000000000000000000000000081565b34801561067257600080fd5b50600e546102a1906001600160a01b031681565b34801561069257600080fd5b5061025e6113b6565b3480156106a757600080fd5b506102346106b6366004612387565b600560209081526000928352604080842090915290825290205460ff1681565b3480156106e257600080fd5b506102d96106f13660046120e8565b611448565b60006301ffc9a760e01b6001600160e01b03198316148061072757506380ac58cd60e01b6001600160e01b03198316145b806107425750635b5e139f60e01b6001600160e01b03198316145b92915050565b60008054610755906123b5565b80601f0160208091040260200160405190810160405280929190818152602001828054610781906123b5565b80156107ce5780601f106107a3576101008083540402835291602001916107ce565b820191906000526020600020905b8154815290600101906020018083116107b157829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061081f57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6108615760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6007546001600160a01b031633146108e75760405162461bcd60e51b8152600401610858906123ef565b600780546001600160a01b0319166001600160a01b03831690811790915560405133907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a350565b60006001600b54610944919061242b565b905090565b6109548383836114c2565b61095f838383611689565b505050565b6007546001600160a01b0316331461098e5760405162461bcd60e51b8152600401610858906123ef565b6001600160a01b0381166109b5576040516326120ecd60e11b815260040160405180910390fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b600a81815481106109e757600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b90046001600160601b031682565b610a1d838383610949565b6001600160a01b0382163b1580610ac65750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610a96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aba9190612442565b6001600160e01b031916145b61095f5760405162461bcd60e51b81526004016108589061245f565b610aeb81610cad565b6001600160a01b0316336001600160a01b031614610b1c576040516330cd747160e01b815260040160405180910390fd5b610b258161170d565b50565b6007546001600160a01b03163314610b525760405162461bcd60e51b8152600401610858906123ef565b600654600003610b75576040516337affdbf60e11b815260040160405180910390fd5b6000600655600b547f000000000000000000000000000000000000000000000000000000000000000090600190610bad908490612489565b610bb7919061242b565b1115610bd65760405163704d6bf960e11b815260040160405180910390fd5b60005b81811015610bff57610bed83600b5461173a565b600b8054600190810190915501610bd9565b5050600160065550565b6007546001600160a01b03163314610c335760405162461bcd60e51b8152600401610858906123ef565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b03163314610c7f5760405162461bcd60e51b8152600401610858906123ef565b6000819003610ca15760405163cc52148360e01b815260040160405180910390fd5b61095f600c8383611fb9565b6000818152600260205260409020546001600160a01b031680610cff5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610858565b919050565b60006001600160a01b038216610d4b5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610858565b506001600160a01b031660009081526003602052604090205490565b8380600954610d7691906124a1565b341015610d965760405163356680b760e01b815260040160405180910390fd5b600854600190600160a01b900460ff166002811115610db757610db76122b5565b816002811115610dc957610dc96122b5565b14610de7576040516365a2ea6560e11b815260040160405180910390fd5b600654600003610e0a576040516337affdbf60e11b815260040160405180910390fd5b6000600655610e35610e246008546001600160a01b031690565b610e2e3388611806565b868661189c565b610e5257604051638baa579f60e01b815260040160405180910390fd5b336000908152600f60205260409020548590610e6f908890612489565b1115610e8e5760405163020805f560e61b815260040160405180910390fd5b610e97866118fc565b5050600160065550505050565b6007546001600160a01b03163314610ece5760405162461bcd60e51b8152600401610858906123ef565b476000819003610ef157604051630686827b60e51b815260040160405180910390fd5b600a5460005b81811015610fd6576000600a8281548110610f1457610f146124c0565b6000918252602082200154600a8054600160a01b9092046001600160601b031693509084908110610f4757610f476124c0565b60009182526020822001546001600160a01b031691506064610f6984886124a1565b610f7391906124ec565b9050816001600160a01b03168160405160006040518083038185875af1925050503d8060008114610fc0576040519150601f19603f3d011682016040523d82523d6000602084013e610fc5565b606091505b505050836001019350505050610ef7565b50479150811561105157600a600081548110610ff457610ff46124c0565b60009182526020822001546040516001600160a01b039091169184919081818185875af1925050503d8060008114611048576040519150601f19603f3d011682016040523d82523d6000602084013e61104d565b606091505b5050505b5050565b6007546001600160a01b0316331461107f5760405162461bcd60e51b8152600401610858906123ef565b60008190036110a05760405162ea21bf60e21b815260040160405180910390fd5b61095f600d8383611fb9565b60018054610755906123b5565b80806009546110c891906124a1565b3410156110e85760405163356680b760e01b815260040160405180910390fd5b600854600290600160a01b900460ff1681811115611108576111086122b5565b81600281111561111a5761111a6122b5565b14611138576040516365a2ea6560e11b815260040160405180910390fd5b60065460000361115b576040516337affdbf60e11b815260040160405180910390fd5b60006006819055338152600f602052604090205460019061117d908590612489565b111561119c5760405163020805f560e61b815260040160405180910390fd5b610bff836118fc565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61121c858585610949565b6001600160a01b0384163b15806112b35750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a02906112649033908a90899089908990600401612500565b6020604051808303816000875af1158015611283573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a79190612442565b6001600160e01b031916145b61104d5760405162461bcd60e51b81526004016108589061245f565b6007546001600160a01b031633146112f95760405162461bcd60e51b8152600401610858906123ef565b6008805482919060ff60a01b1916600160a01b83600281111561131e5761131e6122b5565b021790555050565b6060600061133383610cad565b6001600160a01b03160361135a5760405163677510db60e11b815260040160405180910390fd5b60006113646119a7565b9050600081511161138457604051806020016040528060008152506113af565b8061138e846119b6565b60405160200161139f929190612554565b6040516020818303038152906040525b9392505050565b6060600d80546113c5906123b5565b80601f01602080910402602001604051908101604052809291908181526020018280546113f1906123b5565b801561143e5780601f106114135761010080835404028352916020019161143e565b820191906000526020600020905b81548152906001019060200180831161142157829003601f168201915b5050505050905090565b6007546001600160a01b031633146114725760405162461bcd60e51b8152600401610858906123ef565b806000036114935760405163020b5e0b60e11b815260040160405180910390fd5b600954670429d069189e0000146114bd5760405163775a551d60e11b815260040160405180910390fd5b600955565b6000818152600260205260409020546001600160a01b038481169116146115185760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610858565b6001600160a01b0382166115625760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610858565b336001600160a01b038416148061159c57506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b806115bd57506000818152600460205260409020546001600160a01b031633145b6115fa5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610858565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600e546001600160a01b03161561095f57600e54604051636fb12c5f60e11b81526001600160a01b0385811660048301528481166024830152604482018490529091169063df6258be90606401600060405180830381600087803b1580156116f057600080fd5b505af1158015611704573d6000803e3d6000fd5b50505050505050565b6000818152600260205260409020546001600160a01b031661172e82611abf565b61105181600084611689565b6117448282611b8c565b6001600160a01b0382163b15806117ea5750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af11580156117ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117de9190612442565b6001600160e01b031916145b6110515760405162461bcd60e51b81526004016108589061245f565b6040516bffffffffffffffffffffffff19606084901b166020820152603481018290526000906113af90605401604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b60006118de8484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611ba292505050565b6001600160a01b0316856001600160a01b0316149050949350505050565b7f0000000000000000000000000000000000000000000000000000000000000000600182600b5461192d9190612489565b611937919061242b565b11156119565760405163704d6bf960e11b815260040160405180910390fd5b60005b8181101561197f5761196d33600b5461173a565b600b8054600190810190915501611959565b50336000908152600f60205260408120805483929061199f908490612489565b909155505050565b6060600c80546113c5906123b5565b6060816000036119dd5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a0757806119f181612583565b9150611a009050600a836124ec565b91506119e1565b60008167ffffffffffffffff811115611a2257611a2261259c565b6040519080825280601f01601f191660200182016040528015611a4c576020820181803683370190505b5090505b8415611ab757611a6160018361242b565b9150611a6e600a866125b2565b611a79906030612489565b60f81b818381518110611a8e57611a8e6124c0565b60200101906001600160f81b031916908160001a905350611ab0600a866124ec565b9450611a50565b949350505050565b6000818152600260205260409020546001600160a01b031680611b115760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610858565b6001600160a01b038116600081815260036020908152604080832080546000190190558583526002825280832080546001600160a01b031990811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b611b968282611bc6565b61105160008383611689565b6000806000611bb18585611cd1565b91509150611bbe81611d16565b509392505050565b6001600160a01b038216611c105760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610858565b6000818152600260205260409020546001600160a01b031615611c665760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610858565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000808251604103611d075760208301516040840151606085015160001a611cfb87828585611ecc565b94509450505050611d0f565b506000905060025b9250929050565b6000816004811115611d2a57611d2a6122b5565b03611d325750565b6001816004811115611d4657611d466122b5565b03611d935760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610858565b6002816004811115611da757611da76122b5565b03611df45760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610858565b6003816004811115611e0857611e086122b5565b03611e605760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610858565b6004816004811115611e7457611e746122b5565b03610b255760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610858565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611f035750600090506003611fb0565b8460ff16601b14158015611f1b57508460ff16601c14155b15611f2c5750600090506004611fb0565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611f80573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611fa957600060019250925050611fb0565b9150600090505b94509492505050565b828054611fc5906123b5565b90600052602060002090601f016020900481019282611fe7576000855561202d565b82601f106120005782800160ff1982351617855561202d565b8280016001018555821561202d579182015b8281111561202d578235825591602001919060010190612012565b5061203992915061203d565b5090565b5b80821115612039576000815560010161203e565b6001600160e01b031981168114610b2557600080fd5b60006020828403121561207a57600080fd5b81356113af81612052565b60005b838110156120a0578181015183820152602001612088565b838111156120af576000848401525b50505050565b60208152600082518060208401526120d4816040850160208701612085565b601f01601f19169190910160400192915050565b6000602082840312156120fa57600080fd5b5035919050565b6001600160a01b0381168114610b2557600080fd5b6000806040838503121561212957600080fd5b823561213481612101565b946020939093013593505050565b60006020828403121561215457600080fd5b81356113af81612101565b60008060006060848603121561217457600080fd5b833561217f81612101565b9250602084013561218f81612101565b929592945050506040919091013590565b60008083601f8401126121b257600080fd5b50813567ffffffffffffffff8111156121ca57600080fd5b602083019150836020828501011115611d0f57600080fd5b600080602083850312156121f557600080fd5b823567ffffffffffffffff81111561220c57600080fd5b612218858286016121a0565b90969095509350505050565b6000806000806060858703121561223a57600080fd5b8435935060208501359250604085013567ffffffffffffffff81111561225f57600080fd5b61226b878288016121a0565b95989497509550505050565b6000806040838503121561228a57600080fd5b823561229581612101565b9150602083013580151581146122aa57600080fd5b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b60208101600383106122ed57634e487b7160e01b600052602160045260246000fd5b91905290565b60008060008060006080868803121561230b57600080fd5b853561231681612101565b9450602086013561232681612101565b935060408601359250606086013567ffffffffffffffff81111561234957600080fd5b612355888289016121a0565b969995985093965092949392505050565b60006020828403121561237857600080fd5b8135600381106113af57600080fd5b6000806040838503121561239a57600080fd5b82356123a581612101565b915060208301356122aa81612101565b600181811c908216806123c957607f821691505b6020821081036123e957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008282101561243d5761243d612415565b500390565b60006020828403121561245457600080fd5b81516113af81612052565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b6000821982111561249c5761249c612415565b500190565b60008160001904831182151516156124bb576124bb612415565b500290565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b6000826124fb576124fb6124d6565b500490565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008351612566818460208801612085565b83519083019061257a818360208801612085565b01949350505050565b60006001820161259557612595612415565b5060010190565b634e487b7160e01b600052604160045260246000fd5b6000826125c1576125c16124d6565b50069056fea264697066735822122045870fc995eb4744f4c6ef15e674f286a153d6cd8da8b1a1e05a64d88e6caf8e64736f6c634300080e0033000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000002968747470733a2f2f6d657461646174612e6c65646765722e636f6d2f627269636b2f746f6b656e732f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006668747470733a2f2f696d616765732e707269736d69632e696f2f6c65646765722d6d61726b65742d76312f38383230386632372d646231312d343963332d383937642d6135353538326435303566365f636f6e74726163742d6d657461646174612e6a736f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005425249434b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005425249434b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000f0c75c62703f8d69bd40ca8054fdc749e78a16aa00000000000000000000000000000000000000000000000000000000000000140000000000000000000000004549dec80cbc7fd2359799ed1a07d711523068850000000000000000000000000000000000000000000000000000000000000050
Deployed Bytecode
0x60806040526004361061020f5760003560e01c80636817c76c11610118578063b1c9fe6e116100a0578063d5abeb011161006f578063d5abeb0114610632578063d9e0d02c14610666578063e8a3d48514610686578063e985e9c51461069b578063f4a0a528146106d657600080fd5b8063b1c9fe6e146105ab578063b88d4fde146105d2578063c03afb59146105f2578063c87b56dd1461061257600080fd5b80638da5cb5b116100e75780638da5cb5b14610523578063938e3d7b1461054357806395d89b4114610563578063a0712d6814610578578063a22cb4651461058b57600080fd5b80636817c76c146104c557806370a08231146104db578063827481ea146104fb578063853828b61461050e57600080fd5b80633660a0841161019b578063433535611161016a5780634335356114610430578063484b973c146104455780635387d2561461046557806355f804b3146104855780636352211e146104a557600080fd5b80633660a084146103895780633caaa09f146103a957806342842e0e146103f057806342966c681461041057600080fd5b806313af4035116101e257806313af4035146102db57806318160ddd146102fb5780631e7269c51461031e578063238ac9331461034b57806323b872dd1461036957600080fd5b806301ffc9a71461021457806306fdde0314610249578063081812fc1461026b578063095ea7b3146102b9575b600080fd5b34801561022057600080fd5b5061023461022f366004612068565b6106f6565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b5061025e610748565b60405161024091906120b5565b34801561027757600080fd5b506102a16102863660046120e8565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610240565b3480156102c557600080fd5b506102d96102d4366004612116565b6107d6565b005b3480156102e757600080fd5b506102d96102f6366004612142565b6108bd565b34801561030757600080fd5b50610310610933565b604051908152602001610240565b34801561032a57600080fd5b50610310610339366004612142565b600f6020526000908152604090205481565b34801561035757600080fd5b506008546001600160a01b03166102a1565b34801561037557600080fd5b506102d961038436600461215f565b610949565b34801561039557600080fd5b506102d96103a4366004612142565b610964565b3480156103b557600080fd5b506103c96103c43660046120e8565b6109d7565b604080516001600160a01b0390931683526001600160601b03909116602083015201610240565b3480156103fc57600080fd5b506102d961040b36600461215f565b610a12565b34801561041c57600080fd5b506102d961042b3660046120e8565b610ae2565b34801561043c57600080fd5b50610310600181565b34801561045157600080fd5b506102d9610460366004612116565b610b28565b34801561047157600080fd5b506102d9610480366004612142565b610c09565b34801561049157600080fd5b506102d96104a03660046121e2565b610c55565b3480156104b157600080fd5b506102a16104c03660046120e8565b610cad565b3480156104d157600080fd5b5061031060095481565b3480156104e757600080fd5b506103106104f6366004612142565b610d04565b6102d9610509366004612224565b610d67565b34801561051a57600080fd5b506102d9610ea4565b34801561052f57600080fd5b506007546102a1906001600160a01b031681565b34801561054f57600080fd5b506102d961055e3660046121e2565b611055565b34801561056f57600080fd5b5061025e6110ac565b6102d96105863660046120e8565b6110b9565b34801561059757600080fd5b506102d96105a6366004612277565b6111a5565b3480156105b757600080fd5b50600854600160a01b900460ff1660405161024091906122cb565b3480156105de57600080fd5b506102d96105ed3660046122f3565b611211565b3480156105fe57600080fd5b506102d961060d366004612366565b6112cf565b34801561061e57600080fd5b5061025e61062d3660046120e8565b611326565b34801561063e57600080fd5b506103107f000000000000000000000000000000000000000000000000000000000000271081565b34801561067257600080fd5b50600e546102a1906001600160a01b031681565b34801561069257600080fd5b5061025e6113b6565b3480156106a757600080fd5b506102346106b6366004612387565b600560209081526000928352604080842090915290825290205460ff1681565b3480156106e257600080fd5b506102d96106f13660046120e8565b611448565b60006301ffc9a760e01b6001600160e01b03198316148061072757506380ac58cd60e01b6001600160e01b03198316145b806107425750635b5e139f60e01b6001600160e01b03198316145b92915050565b60008054610755906123b5565b80601f0160208091040260200160405190810160405280929190818152602001828054610781906123b5565b80156107ce5780601f106107a3576101008083540402835291602001916107ce565b820191906000526020600020905b8154815290600101906020018083116107b157829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061081f57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6108615760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6007546001600160a01b031633146108e75760405162461bcd60e51b8152600401610858906123ef565b600780546001600160a01b0319166001600160a01b03831690811790915560405133907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a350565b60006001600b54610944919061242b565b905090565b6109548383836114c2565b61095f838383611689565b505050565b6007546001600160a01b0316331461098e5760405162461bcd60e51b8152600401610858906123ef565b6001600160a01b0381166109b5576040516326120ecd60e11b815260040160405180910390fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b600a81815481106109e757600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b90046001600160601b031682565b610a1d838383610949565b6001600160a01b0382163b1580610ac65750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610a96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aba9190612442565b6001600160e01b031916145b61095f5760405162461bcd60e51b81526004016108589061245f565b610aeb81610cad565b6001600160a01b0316336001600160a01b031614610b1c576040516330cd747160e01b815260040160405180910390fd5b610b258161170d565b50565b6007546001600160a01b03163314610b525760405162461bcd60e51b8152600401610858906123ef565b600654600003610b75576040516337affdbf60e11b815260040160405180910390fd5b6000600655600b547f000000000000000000000000000000000000000000000000000000000000271090600190610bad908490612489565b610bb7919061242b565b1115610bd65760405163704d6bf960e11b815260040160405180910390fd5b60005b81811015610bff57610bed83600b5461173a565b600b8054600190810190915501610bd9565b5050600160065550565b6007546001600160a01b03163314610c335760405162461bcd60e51b8152600401610858906123ef565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b03163314610c7f5760405162461bcd60e51b8152600401610858906123ef565b6000819003610ca15760405163cc52148360e01b815260040160405180910390fd5b61095f600c8383611fb9565b6000818152600260205260409020546001600160a01b031680610cff5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610858565b919050565b60006001600160a01b038216610d4b5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610858565b506001600160a01b031660009081526003602052604090205490565b8380600954610d7691906124a1565b341015610d965760405163356680b760e01b815260040160405180910390fd5b600854600190600160a01b900460ff166002811115610db757610db76122b5565b816002811115610dc957610dc96122b5565b14610de7576040516365a2ea6560e11b815260040160405180910390fd5b600654600003610e0a576040516337affdbf60e11b815260040160405180910390fd5b6000600655610e35610e246008546001600160a01b031690565b610e2e3388611806565b868661189c565b610e5257604051638baa579f60e01b815260040160405180910390fd5b336000908152600f60205260409020548590610e6f908890612489565b1115610e8e5760405163020805f560e61b815260040160405180910390fd5b610e97866118fc565b5050600160065550505050565b6007546001600160a01b03163314610ece5760405162461bcd60e51b8152600401610858906123ef565b476000819003610ef157604051630686827b60e51b815260040160405180910390fd5b600a5460005b81811015610fd6576000600a8281548110610f1457610f146124c0565b6000918252602082200154600a8054600160a01b9092046001600160601b031693509084908110610f4757610f476124c0565b60009182526020822001546001600160a01b031691506064610f6984886124a1565b610f7391906124ec565b9050816001600160a01b03168160405160006040518083038185875af1925050503d8060008114610fc0576040519150601f19603f3d011682016040523d82523d6000602084013e610fc5565b606091505b505050836001019350505050610ef7565b50479150811561105157600a600081548110610ff457610ff46124c0565b60009182526020822001546040516001600160a01b039091169184919081818185875af1925050503d8060008114611048576040519150601f19603f3d011682016040523d82523d6000602084013e61104d565b606091505b5050505b5050565b6007546001600160a01b0316331461107f5760405162461bcd60e51b8152600401610858906123ef565b60008190036110a05760405162ea21bf60e21b815260040160405180910390fd5b61095f600d8383611fb9565b60018054610755906123b5565b80806009546110c891906124a1565b3410156110e85760405163356680b760e01b815260040160405180910390fd5b600854600290600160a01b900460ff1681811115611108576111086122b5565b81600281111561111a5761111a6122b5565b14611138576040516365a2ea6560e11b815260040160405180910390fd5b60065460000361115b576040516337affdbf60e11b815260040160405180910390fd5b60006006819055338152600f602052604090205460019061117d908590612489565b111561119c5760405163020805f560e61b815260040160405180910390fd5b610bff836118fc565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61121c858585610949565b6001600160a01b0384163b15806112b35750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a02906112649033908a90899089908990600401612500565b6020604051808303816000875af1158015611283573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a79190612442565b6001600160e01b031916145b61104d5760405162461bcd60e51b81526004016108589061245f565b6007546001600160a01b031633146112f95760405162461bcd60e51b8152600401610858906123ef565b6008805482919060ff60a01b1916600160a01b83600281111561131e5761131e6122b5565b021790555050565b6060600061133383610cad565b6001600160a01b03160361135a5760405163677510db60e11b815260040160405180910390fd5b60006113646119a7565b9050600081511161138457604051806020016040528060008152506113af565b8061138e846119b6565b60405160200161139f929190612554565b6040516020818303038152906040525b9392505050565b6060600d80546113c5906123b5565b80601f01602080910402602001604051908101604052809291908181526020018280546113f1906123b5565b801561143e5780601f106114135761010080835404028352916020019161143e565b820191906000526020600020905b81548152906001019060200180831161142157829003601f168201915b5050505050905090565b6007546001600160a01b031633146114725760405162461bcd60e51b8152600401610858906123ef565b806000036114935760405163020b5e0b60e11b815260040160405180910390fd5b600954670429d069189e0000146114bd5760405163775a551d60e11b815260040160405180910390fd5b600955565b6000818152600260205260409020546001600160a01b038481169116146115185760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610858565b6001600160a01b0382166115625760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610858565b336001600160a01b038416148061159c57506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b806115bd57506000818152600460205260409020546001600160a01b031633145b6115fa5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610858565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600e546001600160a01b03161561095f57600e54604051636fb12c5f60e11b81526001600160a01b0385811660048301528481166024830152604482018490529091169063df6258be90606401600060405180830381600087803b1580156116f057600080fd5b505af1158015611704573d6000803e3d6000fd5b50505050505050565b6000818152600260205260409020546001600160a01b031661172e82611abf565b61105181600084611689565b6117448282611b8c565b6001600160a01b0382163b15806117ea5750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af11580156117ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117de9190612442565b6001600160e01b031916145b6110515760405162461bcd60e51b81526004016108589061245f565b6040516bffffffffffffffffffffffff19606084901b166020820152603481018290526000906113af90605401604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b60006118de8484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611ba292505050565b6001600160a01b0316856001600160a01b0316149050949350505050565b7f0000000000000000000000000000000000000000000000000000000000002710600182600b5461192d9190612489565b611937919061242b565b11156119565760405163704d6bf960e11b815260040160405180910390fd5b60005b8181101561197f5761196d33600b5461173a565b600b8054600190810190915501611959565b50336000908152600f60205260408120805483929061199f908490612489565b909155505050565b6060600c80546113c5906123b5565b6060816000036119dd5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a0757806119f181612583565b9150611a009050600a836124ec565b91506119e1565b60008167ffffffffffffffff811115611a2257611a2261259c565b6040519080825280601f01601f191660200182016040528015611a4c576020820181803683370190505b5090505b8415611ab757611a6160018361242b565b9150611a6e600a866125b2565b611a79906030612489565b60f81b818381518110611a8e57611a8e6124c0565b60200101906001600160f81b031916908160001a905350611ab0600a866124ec565b9450611a50565b949350505050565b6000818152600260205260409020546001600160a01b031680611b115760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610858565b6001600160a01b038116600081815260036020908152604080832080546000190190558583526002825280832080546001600160a01b031990811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b611b968282611bc6565b61105160008383611689565b6000806000611bb18585611cd1565b91509150611bbe81611d16565b509392505050565b6001600160a01b038216611c105760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610858565b6000818152600260205260409020546001600160a01b031615611c665760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610858565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000808251604103611d075760208301516040840151606085015160001a611cfb87828585611ecc565b94509450505050611d0f565b506000905060025b9250929050565b6000816004811115611d2a57611d2a6122b5565b03611d325750565b6001816004811115611d4657611d466122b5565b03611d935760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610858565b6002816004811115611da757611da76122b5565b03611df45760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610858565b6003816004811115611e0857611e086122b5565b03611e605760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610858565b6004816004811115611e7457611e746122b5565b03610b255760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610858565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611f035750600090506003611fb0565b8460ff16601b14158015611f1b57508460ff16601c14155b15611f2c5750600090506004611fb0565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611f80573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611fa957600060019250925050611fb0565b9150600090505b94509492505050565b828054611fc5906123b5565b90600052602060002090601f016020900481019282611fe7576000855561202d565b82601f106120005782800160ff1982351617855561202d565b8280016001018555821561202d579182015b8281111561202d578235825591602001919060010190612012565b5061203992915061203d565b5090565b5b80821115612039576000815560010161203e565b6001600160e01b031981168114610b2557600080fd5b60006020828403121561207a57600080fd5b81356113af81612052565b60005b838110156120a0578181015183820152602001612088565b838111156120af576000848401525b50505050565b60208152600082518060208401526120d4816040850160208701612085565b601f01601f19169190910160400192915050565b6000602082840312156120fa57600080fd5b5035919050565b6001600160a01b0381168114610b2557600080fd5b6000806040838503121561212957600080fd5b823561213481612101565b946020939093013593505050565b60006020828403121561215457600080fd5b81356113af81612101565b60008060006060848603121561217457600080fd5b833561217f81612101565b9250602084013561218f81612101565b929592945050506040919091013590565b60008083601f8401126121b257600080fd5b50813567ffffffffffffffff8111156121ca57600080fd5b602083019150836020828501011115611d0f57600080fd5b600080602083850312156121f557600080fd5b823567ffffffffffffffff81111561220c57600080fd5b612218858286016121a0565b90969095509350505050565b6000806000806060858703121561223a57600080fd5b8435935060208501359250604085013567ffffffffffffffff81111561225f57600080fd5b61226b878288016121a0565b95989497509550505050565b6000806040838503121561228a57600080fd5b823561229581612101565b9150602083013580151581146122aa57600080fd5b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b60208101600383106122ed57634e487b7160e01b600052602160045260246000fd5b91905290565b60008060008060006080868803121561230b57600080fd5b853561231681612101565b9450602086013561232681612101565b935060408601359250606086013567ffffffffffffffff81111561234957600080fd5b612355888289016121a0565b969995985093965092949392505050565b60006020828403121561237857600080fd5b8135600381106113af57600080fd5b6000806040838503121561239a57600080fd5b82356123a581612101565b915060208301356122aa81612101565b600181811c908216806123c957607f821691505b6020821081036123e957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008282101561243d5761243d612415565b500390565b60006020828403121561245457600080fd5b81516113af81612052565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b6000821982111561249c5761249c612415565b500190565b60008160001904831182151516156124bb576124bb612415565b500290565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b6000826124fb576124fb6124d6565b500490565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008351612566818460208801612085565b83519083019061257a818360208801612085565b01949350505050565b60006001820161259557612595612415565b5060010190565b634e487b7160e01b600052604160045260246000fd5b6000826125c1576125c16124d6565b50069056fea264697066735822122045870fc995eb4744f4c6ef15e674f286a153d6cd8da8b1a1e05a64d88e6caf8e64736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000002968747470733a2f2f6d657461646174612e6c65646765722e636f6d2f627269636b2f746f6b656e732f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006668747470733a2f2f696d616765732e707269736d69632e696f2f6c65646765722d6d61726b65742d76312f38383230386632372d646231312d343963332d383937642d6135353538326435303566365f636f6e74726163742d6d657461646174612e6a736f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005425249434b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005425249434b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000f0c75c62703f8d69bd40ca8054fdc749e78a16aa00000000000000000000000000000000000000000000000000000000000000140000000000000000000000004549dec80cbc7fd2359799ed1a07d711523068850000000000000000000000000000000000000000000000000000000000000050
-----Decoded View---------------
Arg [0] : _maxSupply (uint256): 10000
Arg [1] : _baseTokenURI (string): https://metadata.ledger.com/brick/tokens/
Arg [2] : _baseContractURI (string): https://images.prismic.io/ledger-market-v1/88208f27-db11-49c3-897d-a55582d505f6_contract-metadata.json
Arg [3] : _name (string): BRICK
Arg [4] : _symbol (string): BRICK
Arg [5] : _withdrawalAddresses (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
23 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000029
Arg [7] : 68747470733a2f2f6d657461646174612e6c65646765722e636f6d2f62726963
Arg [8] : 6b2f746f6b656e732f0000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000066
Arg [10] : 68747470733a2f2f696d616765732e707269736d69632e696f2f6c6564676572
Arg [11] : 2d6d61726b65742d76312f38383230386632372d646231312d343963332d3839
Arg [12] : 37642d6135353538326435303566365f636f6e74726163742d6d657461646174
Arg [13] : 612e6a736f6e0000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [15] : 425249434b000000000000000000000000000000000000000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [17] : 425249434b000000000000000000000000000000000000000000000000000000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [19] : 000000000000000000000000f0c75c62703f8d69bd40ca8054fdc749e78a16aa
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [21] : 0000000000000000000000004549dec80cbc7fd2359799ed1a07d71152306885
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000050
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.