Overview
ETH Balance
0.00348 ETH
Eth Value
$8.42 (@ $2,419.34/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 32 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint | 20320626 | 81 days ago | IN | 0 ETH | 0.00153238 | ||||
Mint Booster | 18311084 | 362 days ago | IN | 0 ETH | 0.00195692 | ||||
Mint Booster | 17375306 | 494 days ago | IN | 0 ETH | 0.01253341 | ||||
Set Whitelist Mi... | 17374978 | 494 days ago | IN | 0 ETH | 0.00080024 | ||||
Set Single Card ... | 17374978 | 494 days ago | IN | 0 ETH | 0.00077368 | ||||
Set Booster Pack... | 17374806 | 494 days ago | IN | 0 ETH | 0.00080122 | ||||
Set Single Card ... | 17060798 | 538 days ago | IN | 0 ETH | 0.00076178 | ||||
Set Booster Pack... | 17060797 | 538 days ago | IN | 0 ETH | 0.00067932 | ||||
Free Mint | 16974973 | 550 days ago | IN | 0 ETH | 0.00894678 | ||||
Mint Booster | 16835828 | 570 days ago | IN | 0.0058 ETH | 0.01491937 | ||||
Mint Booster | 16835821 | 570 days ago | IN | 0.0058 ETH | 0.01262194 | ||||
Free Mint | 16835810 | 570 days ago | IN | 0 ETH | 0.00064842 | ||||
Free Mint | 16835800 | 570 days ago | IN | 0 ETH | 0.00918715 | ||||
Free Mint | 16829829 | 571 days ago | IN | 0 ETH | 0.00877093 | ||||
Free Mint | 16829758 | 571 days ago | IN | 0 ETH | 0.01031953 | ||||
Unpause | 16829636 | 571 days ago | IN | 0 ETH | 0.00088972 | ||||
Set Whitelist Mi... | 16829629 | 571 days ago | IN | 0 ETH | 0.00119815 | ||||
Set Merkle Root ... | 16829627 | 571 days ago | IN | 0 ETH | 0.00088024 | ||||
Set Booster Pack... | 16829626 | 571 days ago | IN | 0 ETH | 0.00081182 | ||||
Set Single Card ... | 16829625 | 571 days ago | IN | 0 ETH | 0.00081476 | ||||
Pause | 16808465 | 574 days ago | IN | 0 ETH | 0.00059883 | ||||
Mint For Address | 16808329 | 574 days ago | IN | 0 ETH | 0.00247525 | ||||
Mint For Address | 16808315 | 574 days ago | IN | 0 ETH | 0.00245898 | ||||
Mint For Address | 16808305 | 574 days ago | IN | 0 ETH | 0.00250291 | ||||
Mint For Address | 16808295 | 574 days ago | IN | 0 ETH | 0.00271938 |
Latest 9 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
16835828 | 570 days ago | 0.00058 ETH | ||||
16835828 | 570 days ago | 0.00058 ETH | ||||
16835828 | 570 days ago | 0.00058 ETH | ||||
16835828 | 570 days ago | 0.00058 ETH | ||||
16835821 | 570 days ago | 0.00058 ETH | ||||
16835821 | 570 days ago | 0.00058 ETH | ||||
16835821 | 570 days ago | 0.00058 ETH | ||||
16835821 | 570 days ago | 0.00058 ETH | ||||
16765782 | 580 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
ERC1
Compiler Version
v0.8.9+commit.e5eed63a
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; // __________ __________ // /____/ _ \/ ___/_ / // /____/ , _/ /__ / / // /____/__/|__|\___/ /__/ // // L I V I N G L E G E N D S // by Examp import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/security/PullPayment.sol"; contract ERC1 is ERC1155, Ownable, Pausable, ERC1155Burnable, ERC1155Supply, ReentrancyGuard, PullPayment { bytes32 public merkleRootForFreeMinters; uint256 public singleCardCost; uint256 public boosterPackCost; uint256 public maxSupply; uint256 public currentSupply = 0; uint256 public boosterPackSize; string public name; string public uriPrefix = "https://s3.amazonaws.com/erc1/2/"; string public uriSuffix = ".json"; bool public allowlistMintEnabled = false; // For royalty payments mapping(uint256 => address) private _addressesById; // denominator of booster pack price distributed to each card creator (besides minter), so 40% total in a 5-card pack. // 0 = disabled // 10 = 10% to each // 20 = 5% to each // 100 = 1% to each uint256 public creatorDivisor; // for keeping track of mint counts mapping(address => uint256) private _mintPackCount; // address => mintPackCount => tokenId => bool mapping(address => mapping(uint256 => mapping(uint256 => bool))) private _randomMintCache; // tracking allowlist claimants mapping(address => bool) public allowlistClaimed; constructor( string memory _name, uint256 _singleCardCost, uint256 _boosterPackCost, uint256 _maxSupply, uint256 _boosterPackSize, uint256 _creatorDivisor ) ERC1155("https://s3.amazonaws.com/erc1/2/{id}.json") { name = _name; maxSupply = _maxSupply; setSingleCardCost(_singleCardCost); setBoosterPackCost(_boosterPackCost); setBoosterPackSize(_boosterPackSize); setCreatorDivisor(_creatorDivisor); } modifier mintSingleCardPriceCompliance() { require( msg.value >= singleCardCost, "Insufficient funds" ); _; } modifier mintBoosterPackPriceCompliance() { require( msg.value >= boosterPackCost, "Insufficient funds" ); _; } function setURI(string memory newuri) public onlyOwner { _setURI(newuri); } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function _mintSingle( address account, bytes memory data ) private { require(currentSupply + 1 <= maxSupply, "Max supply exceeded"); currentSupply = currentSupply + 1; // Royalties: Store this address mapped to tokenID _addressesById[currentSupply] = account; _mint(account, currentSupply, 1, data); } // If not minted out, mints 1 new card and boosterPackSize-1 random cards from the collection. // If minted out, mints boosterPackSize random cards function _mintBoosterPack( address account, bytes memory data ) private { uint256[] memory ids = new uint256[](1 + boosterPackSize - 1); uint256[] memory amounts = new uint256[](1 + boosterPackSize - 1); uint256 rand = 0; uint256 userMintCount = _mintPackCount[account]; uint256 startIndex = 0; uint256 seedCursor = 1; // Not minted out if (currentSupply + 1 <= maxSupply) { currentSupply = currentSupply + 1; ids[0] = currentSupply; amounts[0] = 1; startIndex++; _randomMintCache[account][userMintCount][currentSupply] = true; // Royalties: Store this address mapped to tokenID _addressesById[currentSupply] = account; } for (uint256 i = startIndex; i < boosterPackSize; i++) { // Keep generating a random number until we get one that hasn't been used yet while ( _randomMintCache[account][userMintCount][rand] || seedCursor == 1 ) { rand = random(currentSupply, seedCursor); seedCursor++; } ids[i] = rand; amounts[i] = 1; _randomMintCache[account][userMintCount][rand] = true; // Royalties: Send creatorDivisor of mint price to the other card creators in this booster pack if (creatorDivisor > 0 && msg.value > 0) { _asyncTransfer(_addressesById[rand], msg.value / creatorDivisor); } } _mintBatch(account, ids, amounts, data); _mintPackCount[account] = userMintCount + 1; } function mintBooster(bytes memory data) public payable mintBoosterPackPriceCompliance() { _mintBoosterPack(_msgSender(), data); } function mint(bytes memory data) public payable mintSingleCardPriceCompliance() { _mintSingle(_msgSender(), data); } function mintForAddress( address account, bytes memory data ) public onlyOwner { _mintSingle(account, data); } function mintBatch( address to, uint256[] calldata ids, uint256[] memory amounts, bytes memory data ) public onlyOwner { _mintBatch(to, ids, amounts, data); } function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal override(ERC1155, ERC1155Supply) whenNotPaused { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } function freeMint(bytes32[] calldata _freeMerkleProof) public payable { require(allowlistMintEnabled, "The VIP mint is not enabled!"); require(!allowlistClaimed[msg.sender], "Address already claimed!"); bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); require( MerkleProof.verify( _freeMerkleProof, merkleRootForFreeMinters, leaf ), "Invalid proof!" ); allowlistClaimed[_msgSender()] = true; _mintBoosterPack(_msgSender(), ""); } function setSingleCardCost(uint256 _singleCardCost) public onlyOwner { singleCardCost = _singleCardCost; } function setBoosterPackCost(uint256 _boosterPackCost) public onlyOwner { boosterPackCost = _boosterPackCost; } function setBoosterPackSize(uint256 _boosterPackSize) public onlyOwner { boosterPackSize = _boosterPackSize; } function setCreatorDivisor(uint256 _creatorDivisor) public onlyOwner { creatorDivisor = _creatorDivisor; } function setMerkleRootForFreeMinters(bytes32 _merkleRoot) public onlyOwner { merkleRootForFreeMinters = _merkleRoot; } function setWhitelistMintEnabled(bool _state) public onlyOwner { allowlistMintEnabled = _state; } function withdraw() public onlyOwner nonReentrant { (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } function uri(uint256 _tokenId) public view virtual override returns (string memory) { require( _tokenId <= currentSupply, "ERC1155Metadata: URI query for nonexistent token" ); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, Strings.toString(_tokenId), uriSuffix ) ) : ""; } function setUriPrefix(string memory _uriPrefix) public onlyOwner { uriPrefix = _uriPrefix; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } function _baseURI() internal view virtual returns (string memory) { return uriPrefix; } function random(uint256 max, uint256 seed) private view returns (uint256) { uint256 randomHash = uint256( keccak256( abi.encodePacked( block.difficulty, block.timestamp, _msgSender(), seed ) ) ); uint256 randomNum = randomHash % max; return randomNum > 0 ? randomNum : 1; } function contractURI() pure public returns (string memory) { return 'https://s3.amazonaws.com/erc1/2/metadata.json'; } } // Within the shimmering gold lies a secret, a hidden message waiting to be uncovered by those who possess a keen eye and an adventurous spirit.
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of {ERC1155} that allows token holders to destroy both their * own tokens and those that they have been approved to use. * * _Available since v3.1._ */ abstract contract ERC1155Burnable is ERC1155 { function burn( address account, uint256 id, uint256 value ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burn(account, id, value); } function burnBatch( address account, uint256[] memory ids, uint256[] memory values ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burnBatch(account, ids, values); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] -= amounts[i]; } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/PullPayment.sol) pragma solidity ^0.8.0; import "../utils/escrow/Escrow.sol"; /** * @dev Simple implementation of a * https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment] * strategy, where the paying contract doesn't interact directly with the * receiver account, which must withdraw its payments itself. * * Pull-payments are often considered the best practice when it comes to sending * Ether, security-wise. It prevents recipients from blocking execution, and * eliminates reentrancy concerns. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. * * To use, derive from the `PullPayment` contract, and use {_asyncTransfer} * instead of Solidity's `transfer` function. Payees can query their due * payments with {payments}, and retrieve them with {withdrawPayments}. */ abstract contract PullPayment { Escrow private immutable _escrow; constructor() { _escrow = new Escrow(); } /** * @dev Withdraw accumulated payments, forwarding all gas to the recipient. * * Note that _any_ account can call this function, not just the `payee`. * This means that contracts unaware of the `PullPayment` protocol can still * receive funds this way, by having a separate account call * {withdrawPayments}. * * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. * Make sure you trust the recipient, or are either following the * checks-effects-interactions pattern or using {ReentrancyGuard}. * * @param payee Whose payments will be withdrawn. */ function withdrawPayments(address payable payee) public virtual { _escrow.withdraw(payee); } /** * @dev Returns the payments owed to an address. * @param dest The creditor's address. */ function payments(address dest) public view returns (uint256) { return _escrow.depositsOf(dest); } /** * @dev Called by the payer to store the sent amount as credit to be pulled. * Funds sent in this way are stored in an intermediate {Escrow} contract, so * there is no danger of them being spent before withdrawal. * * @param dest The destination address of the funds. * @param amount The amount to transfer. */ function _asyncTransfer(address dest, uint256 amount) internal virtual { _escrow.deposit{value: amount}(dest); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/escrow/Escrow.sol) pragma solidity ^0.8.0; import "../../access/Ownable.sol"; import "../Address.sol"; /** * @title Escrow * @dev Base escrow contract, holds funds designated for a payee until they * withdraw them. * * Intended usage: This contract (and derived escrow contracts) should be a * standalone contract, that only interacts with the contract that instantiated * it. That way, it is guaranteed that all Ether will be handled according to * the `Escrow` rules, and there is no need to check for payable functions or * transfers in the inheritance tree. The contract that uses the escrow as its * payment method should be its owner, and provide public methods redirecting * to the escrow's deposit and withdraw. */ contract Escrow is Ownable { using Address for address payable; event Deposited(address indexed payee, uint256 weiAmount); event Withdrawn(address indexed payee, uint256 weiAmount); mapping(address => uint256) private _deposits; function depositsOf(address payee) public view returns (uint256) { return _deposits[payee]; } /** * @dev Stores the sent amount as credit to be withdrawn. * @param payee The destination address of the funds. */ function deposit(address payee) public payable virtual onlyOwner { uint256 amount = msg.value; _deposits[payee] += amount; emit Deposited(payee, amount); } /** * @dev Withdraw accumulated balance for a payee, forwarding all gas to the * recipient. * * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. * Make sure you trust the recipient, or are either following the * checks-effects-interactions pattern or using {ReentrancyGuard}. * * @param payee The address whose funds will be withdrawn and transferred to. */ function withdraw(address payable payee) public virtual onlyOwner { uint256 payment = _deposits[payee]; _deposits[payee] = 0; payee.sendValue(payment); emit Withdrawn(payee, payment); } }
{ "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":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_singleCardCost","type":"uint256"},{"internalType":"uint256","name":"_boosterPackCost","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_boosterPackSize","type":"uint256"},{"internalType":"uint256","name":"_creatorDivisor","type":"uint256"}],"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boosterPackCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boosterPackSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"creatorDivisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_freeMerkleProof","type":"bytes32[]"}],"name":"freeMint","outputs":[],"stateMutability":"payable","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":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootForFreeMinters","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"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":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBooster","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintForAddress","outputs":[],"stateMutability":"nonpayable","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dest","type":"address"}],"name":"payments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"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":"uint256","name":"_boosterPackCost","type":"uint256"}],"name":"setBoosterPackCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_boosterPackSize","type":"uint256"}],"name":"setBoosterPackSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_creatorDivisor","type":"uint256"}],"name":"setCreatorDivisor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRootForFreeMinters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_singleCardCost","type":"uint256"}],"name":"setSingleCardCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setWhitelistMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"singleCardCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawPayments","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6000600a5560e0604052602060a08190527f68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f657263312f322f60c09081526200004591600d91906200032c565b5060408051808201909152600580825264173539b7b760d91b60209092019182526200007491600e916200032c565b50600f805460ff191690553480156200008c57600080fd5b506040516200442838038062004428833981016040819052620000af91620003f6565b604051806060016040528060298152602001620043df60299139620000d4816200017d565b50620000e03362000196565b6003805460ff60a01b1916905560016005556040516200010090620003bb565b604051809103906000f0801580156200011d573d6000803e3d6000fd5b506001600160a01b031660805285516200013f90600c9060208901906200032c565b5060098390556200015085620001e8565b6200015b846200023c565b62000166826200028c565b6200017181620002dc565b5050505050506200053f565b8051620001929060029060208401906200032c565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6003546001600160a01b03163314620002375760405162461bcd60e51b815260206004820181905260248201526000805160206200440883398151915260448201526064015b60405180910390fd5b600755565b6003546001600160a01b03163314620002875760405162461bcd60e51b815260206004820181905260248201526000805160206200440883398151915260448201526064016200022e565b600855565b6003546001600160a01b03163314620002d75760405162461bcd60e51b815260206004820181905260248201526000805160206200440883398151915260448201526064016200022e565b600b55565b6003546001600160a01b03163314620003275760405162461bcd60e51b815260206004820181905260248201526000805160206200440883398151915260448201526064016200022e565b601155565b8280546200033a9062000502565b90600052602060002090601f0160209004810192826200035e5760008555620003a9565b82601f106200037957805160ff1916838001178555620003a9565b82800160010185558215620003a9579182015b82811115620003a95782518255916020019190600101906200038c565b50620003b7929150620003c9565b5090565b6105f28062003ded83390190565b5b80821115620003b75760008155600101620003ca565b634e487b7160e01b600052604160045260246000fd5b60008060008060008060c087890312156200041057600080fd5b86516001600160401b03808211156200042857600080fd5b818901915089601f8301126200043d57600080fd5b815181811115620004525762000452620003e0565b604051601f8201601f19908116603f011681019083821181831017156200047d576200047d620003e0565b81604052828152602093508c848487010111156200049a57600080fd5b600091505b82821015620004be57848201840151818301850152908301906200049f565b82821115620004d05760008484830101525b928b015160408c015160608d015160808e015160a0909e0151959f929e50909c909b5099509297509195505050505050565b600181811c908216806200051757607f821691505b602082108114156200053957634e487b7160e01b600052602260045260246000fd5b50919050565b6080516138846200056960003960008181610c9201528181611358015261266a01526138846000f3fe6080604052600436106102915760003560e01c8063771282f61161015a578063bd85b039116100c1578063e985e9c51161007a578063e985e9c51461077d578063ed4b9521146107c6578063f242432a146107e6578063f2fde38b14610806578063f5298aca14610826578063fd3b84411461084657600080fd5b8063bd85b039146106c5578063c59c256a146106f2578063d5abeb0114610712578063dafd191214610728578063e2982c2114610748578063e8a3d4851461076857600080fd5b80638da5cb5b116101135780638da5cb5b146106115780638dacaf6e14610639578063a22cb46514610659578063a4ab2f5f14610679578063b347183e1461068f578063b767a098146106a557600080fd5b8063771282f61461058657806379de186a1461059c5780637ba0e2e7146105b65780637ec4a659146105c95780638456cb59146105e957806388d15d50146105fe57600080fd5b806331b3eb94116101fe5780634f558e79116101b75780634f558e79146104d95780635503a0e8146105085780635c975abb1461051d57806362b99ad41461053c5780636b20c45414610551578063715018a61461057157600080fd5b806331b3eb941461042c5780633ccfd60b1461044c5780633f4ba83a146104615780634293f57b14610476578063446e8e47146104965780634e1273f4146104ac57600080fd5b80631657b03c116102505780631657b03c1461037357806316ba10e0146103895780631f7fdffa146103a95780632eb2c2d6146103c957806330b42ec2146103e9578063317588341461041957600080fd5b806264d92314610296578062fdd58e146102bf57806301ffc9a7146102df57806302fe53051461030f57806306fdde03146103315780630e89341c14610353575b600080fd5b3480156102a257600080fd5b506102ac60115481565b6040519081526020015b60405180910390f35b3480156102cb57600080fd5b506102ac6102da366004612ac5565b610866565b3480156102eb57600080fd5b506102ff6102fa366004612b07565b6108fd565b60405190151581526020016102b6565b34801561031b57600080fd5b5061032f61032a366004612bc3565b61094f565b005b34801561033d57600080fd5b50610346610985565b6040516102b69190612c67565b34801561035f57600080fd5b5061034661036e366004612c7a565b610a13565b34801561037f57600080fd5b506102ac60065481565b34801561039557600080fd5b5061032f6103a4366004612bc3565b610adf565b3480156103b557600080fd5b5061032f6103c4366004612d92565b610b20565b3480156103d557600080fd5b5061032f6103e4366004612e32565b610b92565b3480156103f557600080fd5b506102ff610404366004612ec5565b60146020526000908152604090205460ff1681565b61032f610427366004612ee2565b610c22565b34801561043857600080fd5b5061032f610447366004612ec5565b610c73565b34801561045857600080fd5b5061032f610cea565b34801561046d57600080fd5b5061032f610de5565b34801561048257600080fd5b5061032f610491366004612c7a565b610e19565b3480156104a257600080fd5b506102ac60085481565b3480156104b857600080fd5b506104cc6104c7366004612f16565b610e48565b6040516102b6919061301d565b3480156104e557600080fd5b506102ff6104f4366004612c7a565b600090815260046020526040902054151590565b34801561051457600080fd5b50610346610f71565b34801561052957600080fd5b50600354600160a01b900460ff166102ff565b34801561054857600080fd5b50610346610f7e565b34801561055d57600080fd5b5061032f61056c366004613030565b610f8b565b34801561057d57600080fd5b5061032f610fd3565b34801561059257600080fd5b506102ac600a5481565b3480156105a857600080fd5b50600f546102ff9060ff1681565b61032f6105c4366004612ee2565b611007565b3480156105d557600080fd5b5061032f6105e4366004612bc3565b611058565b3480156105f557600080fd5b5061032f611095565b61032f61060c3660046130a5565b6110c7565b34801561061d57600080fd5b506003546040516001600160a01b0390911681526020016102b6565b34801561064557600080fd5b5061032f610654366004612c7a565b611261565b34801561066557600080fd5b5061032f6106743660046130fb565b611290565b34801561068557600080fd5b506102ac60075481565b34801561069b57600080fd5b506102ac600b5481565b3480156106b157600080fd5b5061032f6106c0366004613130565b61129b565b3480156106d157600080fd5b506102ac6106e0366004612c7a565b60009081526004602052604090205490565b3480156106fe57600080fd5b5061032f61070d366004612c7a565b6112d8565b34801561071e57600080fd5b506102ac60095481565b34801561073457600080fd5b5061032f610743366004612c7a565b611307565b34801561075457600080fd5b506102ac610763366004612ec5565b611336565b34801561077457600080fd5b506103466113d4565b34801561078957600080fd5b506102ff61079836600461314b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156107d257600080fd5b5061032f6107e1366004612c7a565b6113f4565b3480156107f257600080fd5b5061032f610801366004613184565b611423565b34801561081257600080fd5b5061032f610821366004612ec5565b611468565b34801561083257600080fd5b5061032f6108413660046131ec565b611500565b34801561085257600080fd5b5061032f610861366004613221565b611543565b60006001600160a01b0383166108d75760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061092e57506001600160e01b031982166303a24d0760e21b145b8061094957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6003546001600160a01b031633146109795760405162461bcd60e51b81526004016108ce90613266565b61098281611577565b50565b600c80546109929061329b565b80601f01602080910402602001604051908101604052809291908181526020018280546109be9061329b565b8015610a0b5780601f106109e057610100808354040283529160200191610a0b565b820191906000526020600020905b8154815290600101906020018083116109ee57829003601f168201915b505050505081565b6060600a54821115610a805760405162461bcd60e51b815260206004820152603060248201527f455243313135354d657461646174613a2055524920717565727920666f72206e60448201526f37b732bc34b9ba32b73a103a37b5b2b760811b60648201526084016108ce565b6000610a8a61158a565b90506000815111610aaa5760405180602001604052806000815250610ad8565b80610ab48461161c565b600e604051602001610ac8939291906132d6565b6040516020818303038152906040525b9392505050565b6003546001600160a01b03163314610b095760405162461bcd60e51b81526004016108ce90613266565b8051610b1c90600e906020840190612a17565b5050565b6003546001600160a01b03163314610b4a5760405162461bcd60e51b81526004016108ce90613266565b610b8b858585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508792508691506117219050565b5050505050565b6001600160a01b038516331480610bae5750610bae8533610798565b610c155760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016108ce565b610b8b858585858561187b565b600854341015610c695760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b60448201526064016108ce565b6109823382611a25565b6040516351cff8d960e01b81526001600160a01b0382811660048301527f000000000000000000000000000000000000000000000000000000000000000016906351cff8d990602401600060405180830381600087803b158015610cd657600080fd5b505af1158015610b8b573d6000803e3d6000fd5b6003546001600160a01b03163314610d145760405162461bcd60e51b81526004016108ce90613266565b60026005541415610d675760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108ce565b60026005556000610d806003546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610dca576040519150601f19603f3d011682016040523d82523d6000602084013e610dcf565b606091505b5050905080610ddd57600080fd5b506001600555565b6003546001600160a01b03163314610e0f5760405162461bcd60e51b81526004016108ce90613266565b610e17611d48565b565b6003546001600160a01b03163314610e435760405162461bcd60e51b81526004016108ce90613266565b600755565b60608151835114610ead5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016108ce565b600083516001600160401b03811115610ec857610ec8612b24565b604051908082528060200260200182016040528015610ef1578160200160208202803683370190505b50905060005b8451811015610f6957610f3c858281518110610f1557610f1561339a565b6020026020010151858381518110610f2f57610f2f61339a565b6020026020010151610866565b828281518110610f4e57610f4e61339a565b6020908102919091010152610f62816133c6565b9050610ef7565b509392505050565b600e80546109929061329b565b600d80546109929061329b565b6001600160a01b038316331480610fa75750610fa78333610798565b610fc35760405162461bcd60e51b81526004016108ce906133e1565b610fce838383611de5565b505050565b6003546001600160a01b03163314610ffd5760405162461bcd60e51b81526004016108ce90613266565b610e176000611f73565b60075434101561104e5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b60448201526064016108ce565b6109823382611fc5565b6003546001600160a01b031633146110825760405162461bcd60e51b81526004016108ce90613266565b8051610b1c90600d906020840190612a17565b6003546001600160a01b031633146110bf5760405162461bcd60e51b81526004016108ce90613266565b610e17612064565b600f5460ff166111195760405162461bcd60e51b815260206004820152601c60248201527f54686520564950206d696e74206973206e6f7420656e61626c6564210000000060448201526064016108ce565b3360009081526014602052604090205460ff16156111795760405162461bcd60e51b815260206004820152601860248201527f4164647265737320616c726561647920636c61696d656421000000000000000060448201526064016108ce565b6040516bffffffffffffffffffffffff193360601b1660208201526000906034016040516020818303038152906040528051906020012090506111f38383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060065491508490506120ec565b6112305760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b60448201526064016108ce565b336000818152601460209081526040808320805460ff1916600117905580519182019052908152610fce9190611a25565b6003546001600160a01b0316331461128b5760405162461bcd60e51b81526004016108ce90613266565b601155565b610b1c338383612102565b6003546001600160a01b031633146112c55760405162461bcd60e51b81526004016108ce90613266565b600f805460ff1916911515919091179055565b6003546001600160a01b031633146113025760405162461bcd60e51b81526004016108ce90613266565b600b55565b6003546001600160a01b031633146113315760405162461bcd60e51b81526004016108ce90613266565b600655565b6040516371d4ed8d60e11b81526001600160a01b0382811660048301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063e3a9db1a9060240160206040518083038186803b15801561139c57600080fd5b505afa1580156113b0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610949919061342a565b60606040518060600160405280602d8152602001613822602d9139905090565b6003546001600160a01b0316331461141e5760405162461bcd60e51b81526004016108ce90613266565b600855565b6001600160a01b03851633148061143f575061143f8533610798565b61145b5760405162461bcd60e51b81526004016108ce906133e1565b610b8b85858585856121e3565b6003546001600160a01b031633146114925760405162461bcd60e51b81526004016108ce90613266565b6001600160a01b0381166114f75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108ce565b61098281611f73565b6001600160a01b03831633148061151c575061151c8333610798565b6115385760405162461bcd60e51b81526004016108ce906133e1565b610fce83838361230f565b6003546001600160a01b0316331461156d5760405162461bcd60e51b81526004016108ce90613266565b610b1c8282611fc5565b8051610b1c906002906020840190612a17565b6060600d80546115999061329b565b80601f01602080910402602001604051908101604052809291908181526020018280546115c59061329b565b80156116125780601f106115e757610100808354040283529160200191611612565b820191906000526020600020905b8154815290600101906020018083116115f557829003601f168201915b5050505050905090565b6060816116405750506040805180820190915260018152600360fc1b602082015290565b8160005b811561166a5780611654816133c6565b91506116639050600a83613459565b9150611644565b6000816001600160401b0381111561168457611684612b24565b6040519080825280601f01601f1916602001820160405280156116ae576020820181803683370190505b5090505b8415611719576116c360018361346d565b91506116d0600a86613484565b6116db906030613498565b60f81b8183815181106116f0576116f061339a565b60200101906001600160f81b031916908160001a905350611712600a86613459565b94506116b2565b949350505050565b6001600160a01b0384166117475760405162461bcd60e51b81526004016108ce906134b0565b81518351146117685760405162461bcd60e51b81526004016108ce906134f1565b3361177881600087878787612410565b60005b8451811015611813578381815181106117965761179661339a565b60200260200101516000808784815181106117b3576117b361339a565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546117fb9190613498565b9091555081905061180b816133c6565b91505061177b565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611864929190613539565b60405180910390a4610b8b8160008787878761246b565b815183511461189c5760405162461bcd60e51b81526004016108ce906134f1565b6001600160a01b0384166118c25760405162461bcd60e51b81526004016108ce9061355e565b336118d1818787878787612410565b60005b84518110156119b75760008582815181106118f1576118f161339a565b60200260200101519050600085838151811061190f5761190f61339a565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561195f5760405162461bcd60e51b81526004016108ce906135a3565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061199c908490613498565b92505081905550505050806119b0906133c6565b90506118d4565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611a07929190613539565b60405180910390a4611a1d81878787878761246b565b505050505050565b60006001600b546001611a389190613498565b611a42919061346d565b6001600160401b03811115611a5957611a59612b24565b604051908082528060200260200182016040528015611a82578160200160208202803683370190505b50905060006001600b546001611a989190613498565b611aa2919061346d565b6001600160401b03811115611ab957611ab9612b24565b604051908082528060200260200182016040528015611ae2578160200160208202803683370190505b506001600160a01b038516600090815260126020526040812054600954600a5493945091929091839160019190611b199083613498565b11611bd357600a54611b2c906001613498565b600a81905586518790600090611b4457611b4461339a565b602002602001018181525050600185600081518110611b6557611b6561339a565b602090810291909101015281611b7a816133c6565b6001600160a01b038a1660008181526013602090815260408083208984528252808320600a80548552908352818420805460ff191660011790555483526010909152902080546001600160a01b03191690911790559250505b815b600b54811015611d0a575b6001600160a01b0389166000908152601360209081526040808320878452825280832088845290915290205460ff1680611c1a5750816001145b15611c3f57611c2b600a54836125d6565b945081611c37816133c6565b925050611be0565b84878281518110611c5257611c5261339a565b6020026020010181815250506001868281518110611c7257611c7261339a565b6020908102919091018101919091526001600160a01b038a166000908152601382526040808220878352835280822088835290925220805460ff1916600117905560115415801590611cc45750600034115b15611cf857600085815260106020526040902054601154611cf8916001600160a01b031690611cf39034613459565b61264b565b80611d02816133c6565b915050611bd5565b50611d178887878a611721565b611d22836001613498565b6001600160a01b0390981660009081526012602052604090209790975550505050505050565b600354600160a01b900460ff16611d985760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016108ce565b6003805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038316611e0b5760405162461bcd60e51b81526004016108ce906135ed565b8051825114611e2c5760405162461bcd60e51b81526004016108ce906134f1565b6000339050611e4f81856000868660405180602001604052806000815250612410565b60005b8351811015611f14576000848281518110611e6f57611e6f61339a565b602002602001015190506000848381518110611e8d57611e8d61339a565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611edd5760405162461bcd60e51b81526004016108ce90613630565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611f0c816133c6565b915050611e52565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611f65929190613539565b60405180910390a450505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600954600a54611fd6906001613498565b111561201a5760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b60448201526064016108ce565b600a54612028906001613498565b600a81815560009182526010602052604090912080546001600160a01b0319166001600160a01b03851617905554610b1c9083906001846126c3565b600354600160a01b900460ff16156120b15760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108ce565b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611dc83390565b6000826120f9858461278a565b14949350505050565b816001600160a01b0316836001600160a01b031614156121765760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016108ce565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166122095760405162461bcd60e51b81526004016108ce9061355e565b33612228818787612219886127f6565b612222886127f6565b87612410565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156122695760405162461bcd60e51b81526004016108ce906135a3565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906122a6908490613498565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612306828888888888612841565b50505050505050565b6001600160a01b0383166123355760405162461bcd60e51b81526004016108ce906135ed565b3361236481856000612346876127f6565b61234f876127f6565b60405180602001604052806000815250612410565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156123a55760405162461bcd60e51b81526004016108ce90613630565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b600354600160a01b900460ff161561245d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108ce565b611a1d86868686868661290b565b6001600160a01b0384163b15611a1d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906124af9089908990889088908890600401613674565b602060405180830381600087803b1580156124c957600080fd5b505af19250505080156124f9575060408051601f3d908101601f191682019092526124f6918101906136d2565b60015b6125a6576125056136ef565b806308c379a0141561253f575061251a61370b565b806125255750612541565b8060405162461bcd60e51b81526004016108ce9190612c67565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016108ce565b6001600160e01b0319811663bc197c8160e01b146123065760405162461bcd60e51b81526004016108ce90613794565b6040805144602080830191909152428284015233606090811b6bffffffffffffffffffffffff191690830152607480830185905283518084039091018152609490920190925280519101206000908161262f8583613484565b905060008111612640576001612642565b805b95945050505050565b60405163f340fa0160e01b81526001600160a01b0383811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063f340fa019083906024016000604051808303818588803b1580156126af57600080fd5b505af1158015612306573d6000803e3d6000fd5b6001600160a01b0384166126e95760405162461bcd60e51b81526004016108ce906134b0565b336126fa81600087612219886127f6565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061272a908490613498565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610b8b81600087878787612841565b600081815b8451811015610f695760008582815181106127ac576127ac61339a565b602002602001015190508083116127d257600083815260208290526040902092506127e3565b600081815260208490526040902092505b50806127ee816133c6565b91505061278f565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106128305761283061339a565b602090810291909101015292915050565b6001600160a01b0384163b15611a1d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061288590899089908890889088906004016137dc565b602060405180830381600087803b15801561289f57600080fd5b505af19250505080156128cf575060408051601f3d908101601f191682019092526128cc918101906136d2565b60015b6128db576125056136ef565b6001600160e01b0319811663f23a6e6160e01b146123065760405162461bcd60e51b81526004016108ce90613794565b6001600160a01b0385166129925760005b8351811015612990578281815181106129375761293761339a565b6020026020010151600460008684815181106129555761295561339a565b60200260200101518152602001908152602001600020600082825461297a9190613498565b909155506129899050816133c6565b905061291c565b505b6001600160a01b038416611a1d5760005b8351811015612306578281815181106129be576129be61339a565b6020026020010151600460008684815181106129dc576129dc61339a565b602002602001015181526020019081526020016000206000828254612a01919061346d565b90915550612a109050816133c6565b90506129a3565b828054612a239061329b565b90600052602060002090601f016020900481019282612a455760008555612a8b565b82601f10612a5e57805160ff1916838001178555612a8b565b82800160010185558215612a8b579182015b82811115612a8b578251825591602001919060010190612a70565b50612a97929150612a9b565b5090565b5b80821115612a975760008155600101612a9c565b6001600160a01b038116811461098257600080fd5b60008060408385031215612ad857600080fd5b8235612ae381612ab0565b946020939093013593505050565b6001600160e01b03198116811461098257600080fd5b600060208284031215612b1957600080fd5b8135610ad881612af1565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612b5f57612b5f612b24565b6040525050565b60006001600160401b03831115612b7f57612b7f612b24565b604051612b96601f8501601f191660200182612b3a565b809150838152848484011115612bab57600080fd5b83836020830137600060208583010152509392505050565b600060208284031215612bd557600080fd5b81356001600160401b03811115612beb57600080fd5b8201601f81018413612bfc57600080fd5b61171984823560208401612b66565b60005b83811015612c26578181015183820152602001612c0e565b83811115612c35576000848401525b50505050565b60008151808452612c53816020860160208601612c0b565b601f01601f19169290920160200192915050565b602081526000610ad86020830184612c3b565b600060208284031215612c8c57600080fd5b5035919050565b60008083601f840112612ca557600080fd5b5081356001600160401b03811115612cbc57600080fd5b6020830191508360208260051b8501011115612cd757600080fd5b9250929050565b60006001600160401b03821115612cf757612cf7612b24565b5060051b60200190565b600082601f830112612d1257600080fd5b81356020612d1f82612cde565b604051612d2c8282612b3a565b83815260059390931b8501820192828101915086841115612d4c57600080fd5b8286015b84811015612d675780358352918301918301612d50565b509695505050505050565b600082601f830112612d8357600080fd5b610ad883833560208501612b66565b600080600080600060808688031215612daa57600080fd5b8535612db581612ab0565b945060208601356001600160401b0380821115612dd157600080fd5b612ddd89838a01612c93565b90965094506040880135915080821115612df657600080fd5b612e0289838a01612d01565b93506060880135915080821115612e1857600080fd5b50612e2588828901612d72565b9150509295509295909350565b600080600080600060a08688031215612e4a57600080fd5b8535612e5581612ab0565b94506020860135612e6581612ab0565b935060408601356001600160401b0380821115612e8157600080fd5b612e8d89838a01612d01565b94506060880135915080821115612ea357600080fd5b612eaf89838a01612d01565b93506080880135915080821115612e1857600080fd5b600060208284031215612ed757600080fd5b8135610ad881612ab0565b600060208284031215612ef457600080fd5b81356001600160401b03811115612f0a57600080fd5b61171984828501612d72565b60008060408385031215612f2957600080fd5b82356001600160401b0380821115612f4057600080fd5b818501915085601f830112612f5457600080fd5b81356020612f6182612cde565b604051612f6e8282612b3a565b83815260059390931b8501820192828101915089841115612f8e57600080fd5b948201945b83861015612fb5578535612fa681612ab0565b82529482019490820190612f93565b96505086013592505080821115612fcb57600080fd5b50612fd885828601612d01565b9150509250929050565b600081518084526020808501945080840160005b8381101561301257815187529582019590820190600101612ff6565b509495945050505050565b602081526000610ad86020830184612fe2565b60008060006060848603121561304557600080fd5b833561305081612ab0565b925060208401356001600160401b038082111561306c57600080fd5b61307887838801612d01565b9350604086013591508082111561308e57600080fd5b5061309b86828701612d01565b9150509250925092565b600080602083850312156130b857600080fd5b82356001600160401b038111156130ce57600080fd5b6130da85828601612c93565b90969095509350505050565b803580151581146130f657600080fd5b919050565b6000806040838503121561310e57600080fd5b823561311981612ab0565b9150613127602084016130e6565b90509250929050565b60006020828403121561314257600080fd5b610ad8826130e6565b6000806040838503121561315e57600080fd5b823561316981612ab0565b9150602083013561317981612ab0565b809150509250929050565b600080600080600060a0868803121561319c57600080fd5b85356131a781612ab0565b945060208601356131b781612ab0565b9350604086013592506060860135915060808601356001600160401b038111156131e057600080fd5b612e2588828901612d72565b60008060006060848603121561320157600080fd5b833561320c81612ab0565b95602085013595506040909401359392505050565b6000806040838503121561323457600080fd5b823561323f81612ab0565b915060208301356001600160401b0381111561325a57600080fd5b612fd885828601612d72565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806132af57607f821691505b602082108114156132d057634e487b7160e01b600052602260045260246000fd5b50919050565b6000845160206132e98285838a01612c0b565b8551918401916132fc8184848a01612c0b565b8554920191600090600181811c908083168061331957607f831692505b85831081141561333757634e487b7160e01b85526022600452602485fd5b80801561334b576001811461335c57613389565b60ff19851688528388019550613389565b60008b81526020902060005b858110156133815781548a820152908401908801613368565b505083880195505b50939b9a5050505050505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156133da576133da6133b0565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60006020828403121561343c57600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b60008261346857613468613443565b500490565b60008282101561347f5761347f6133b0565b500390565b60008261349357613493613443565b500690565b600082198211156134ab576134ab6133b0565b500190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60408152600061354c6040830185612fe2565b82810360208401526126428185612fe2565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906136a090830186612fe2565b82810360608401526136b28186612fe2565b905082810360808401526136c68185612c3b565b98975050505050505050565b6000602082840312156136e457600080fd5b8151610ad881612af1565b600060033d11156137085760046000803e5060005160e01c5b90565b600060443d10156137195790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561374857505050505090565b82850191508151818111156137605750505050505090565b843d870101602082850101111561377a5750505050505090565b61378960208286010187612b3a565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061381690830184612c3b565b97965050505050505056fe68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f657263312f322f6d657461646174612e6a736f6ea264697066735822122061ae7f241454e1b70c7f2e06ead2404f2aaa43bb24a3a4449d96ddca95d0208264736f6c63430008090033608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6105748061007e6000396000f3fe6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a61461007c5780638da5cb5b14610091578063e3a9db1a146100be578063f2fde38b14610102578063f340fa0114610122575b600080fd5b34801561006657600080fd5b5061007a6100753660046104bf565b610135565b005b34801561008857600080fd5b5061007a6101d7565b34801561009d57600080fd5b506000546040516001600160a01b0390911681526020015b60405180910390f35b3480156100ca57600080fd5b506100f46100d93660046104bf565b6001600160a01b031660009081526001602052604090205490565b6040519081526020016100b5565b34801561010e57600080fd5b5061007a61011d3660046104bf565b61020d565b61007a6101303660046104bf565b6102a8565b6000546001600160a01b031633146101685760405162461bcd60e51b815260040161015f906104e3565b60405180910390fd5b6001600160a01b0381166000818152600160205260408120805491905590610190908261033c565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516101cb91815260200190565b60405180910390a25050565b6000546001600160a01b031633146102015760405162461bcd60e51b815260040161015f906104e3565b61020b600061045a565b565b6000546001600160a01b031633146102375760405162461bcd60e51b815260040161015f906104e3565b6001600160a01b03811661029c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161015f565b6102a58161045a565b50565b6000546001600160a01b031633146102d25760405162461bcd60e51b815260040161015f906104e3565b6001600160a01b0381166000908152600160205260408120805434928392916102fc908490610518565b90915550506040518181526001600160a01b038316907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4906020016101cb565b8047101561038c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161015f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146103d9576040519150601f19603f3d011682016040523d82523d6000602084013e6103de565b606091505b50509050806104555760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161015f565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146102a557600080fd5b6000602082840312156104d157600080fd5b81356104dc816104aa565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561053957634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212202666b5dd3b136a25493f54e998cbf7c5d5f8a02c78c7bb156650c9522905a8d964736f6c6343000809003368747470733a2f2f73332e616d617a6f6e6177732e636f6d2f657263312f322f7b69647d2e6a736f6e4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000000013880000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000044552433100000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102915760003560e01c8063771282f61161015a578063bd85b039116100c1578063e985e9c51161007a578063e985e9c51461077d578063ed4b9521146107c6578063f242432a146107e6578063f2fde38b14610806578063f5298aca14610826578063fd3b84411461084657600080fd5b8063bd85b039146106c5578063c59c256a146106f2578063d5abeb0114610712578063dafd191214610728578063e2982c2114610748578063e8a3d4851461076857600080fd5b80638da5cb5b116101135780638da5cb5b146106115780638dacaf6e14610639578063a22cb46514610659578063a4ab2f5f14610679578063b347183e1461068f578063b767a098146106a557600080fd5b8063771282f61461058657806379de186a1461059c5780637ba0e2e7146105b65780637ec4a659146105c95780638456cb59146105e957806388d15d50146105fe57600080fd5b806331b3eb94116101fe5780634f558e79116101b75780634f558e79146104d95780635503a0e8146105085780635c975abb1461051d57806362b99ad41461053c5780636b20c45414610551578063715018a61461057157600080fd5b806331b3eb941461042c5780633ccfd60b1461044c5780633f4ba83a146104615780634293f57b14610476578063446e8e47146104965780634e1273f4146104ac57600080fd5b80631657b03c116102505780631657b03c1461037357806316ba10e0146103895780631f7fdffa146103a95780632eb2c2d6146103c957806330b42ec2146103e9578063317588341461041957600080fd5b806264d92314610296578062fdd58e146102bf57806301ffc9a7146102df57806302fe53051461030f57806306fdde03146103315780630e89341c14610353575b600080fd5b3480156102a257600080fd5b506102ac60115481565b6040519081526020015b60405180910390f35b3480156102cb57600080fd5b506102ac6102da366004612ac5565b610866565b3480156102eb57600080fd5b506102ff6102fa366004612b07565b6108fd565b60405190151581526020016102b6565b34801561031b57600080fd5b5061032f61032a366004612bc3565b61094f565b005b34801561033d57600080fd5b50610346610985565b6040516102b69190612c67565b34801561035f57600080fd5b5061034661036e366004612c7a565b610a13565b34801561037f57600080fd5b506102ac60065481565b34801561039557600080fd5b5061032f6103a4366004612bc3565b610adf565b3480156103b557600080fd5b5061032f6103c4366004612d92565b610b20565b3480156103d557600080fd5b5061032f6103e4366004612e32565b610b92565b3480156103f557600080fd5b506102ff610404366004612ec5565b60146020526000908152604090205460ff1681565b61032f610427366004612ee2565b610c22565b34801561043857600080fd5b5061032f610447366004612ec5565b610c73565b34801561045857600080fd5b5061032f610cea565b34801561046d57600080fd5b5061032f610de5565b34801561048257600080fd5b5061032f610491366004612c7a565b610e19565b3480156104a257600080fd5b506102ac60085481565b3480156104b857600080fd5b506104cc6104c7366004612f16565b610e48565b6040516102b6919061301d565b3480156104e557600080fd5b506102ff6104f4366004612c7a565b600090815260046020526040902054151590565b34801561051457600080fd5b50610346610f71565b34801561052957600080fd5b50600354600160a01b900460ff166102ff565b34801561054857600080fd5b50610346610f7e565b34801561055d57600080fd5b5061032f61056c366004613030565b610f8b565b34801561057d57600080fd5b5061032f610fd3565b34801561059257600080fd5b506102ac600a5481565b3480156105a857600080fd5b50600f546102ff9060ff1681565b61032f6105c4366004612ee2565b611007565b3480156105d557600080fd5b5061032f6105e4366004612bc3565b611058565b3480156105f557600080fd5b5061032f611095565b61032f61060c3660046130a5565b6110c7565b34801561061d57600080fd5b506003546040516001600160a01b0390911681526020016102b6565b34801561064557600080fd5b5061032f610654366004612c7a565b611261565b34801561066557600080fd5b5061032f6106743660046130fb565b611290565b34801561068557600080fd5b506102ac60075481565b34801561069b57600080fd5b506102ac600b5481565b3480156106b157600080fd5b5061032f6106c0366004613130565b61129b565b3480156106d157600080fd5b506102ac6106e0366004612c7a565b60009081526004602052604090205490565b3480156106fe57600080fd5b5061032f61070d366004612c7a565b6112d8565b34801561071e57600080fd5b506102ac60095481565b34801561073457600080fd5b5061032f610743366004612c7a565b611307565b34801561075457600080fd5b506102ac610763366004612ec5565b611336565b34801561077457600080fd5b506103466113d4565b34801561078957600080fd5b506102ff61079836600461314b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156107d257600080fd5b5061032f6107e1366004612c7a565b6113f4565b3480156107f257600080fd5b5061032f610801366004613184565b611423565b34801561081257600080fd5b5061032f610821366004612ec5565b611468565b34801561083257600080fd5b5061032f6108413660046131ec565b611500565b34801561085257600080fd5b5061032f610861366004613221565b611543565b60006001600160a01b0383166108d75760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061092e57506001600160e01b031982166303a24d0760e21b145b8061094957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6003546001600160a01b031633146109795760405162461bcd60e51b81526004016108ce90613266565b61098281611577565b50565b600c80546109929061329b565b80601f01602080910402602001604051908101604052809291908181526020018280546109be9061329b565b8015610a0b5780601f106109e057610100808354040283529160200191610a0b565b820191906000526020600020905b8154815290600101906020018083116109ee57829003601f168201915b505050505081565b6060600a54821115610a805760405162461bcd60e51b815260206004820152603060248201527f455243313135354d657461646174613a2055524920717565727920666f72206e60448201526f37b732bc34b9ba32b73a103a37b5b2b760811b60648201526084016108ce565b6000610a8a61158a565b90506000815111610aaa5760405180602001604052806000815250610ad8565b80610ab48461161c565b600e604051602001610ac8939291906132d6565b6040516020818303038152906040525b9392505050565b6003546001600160a01b03163314610b095760405162461bcd60e51b81526004016108ce90613266565b8051610b1c90600e906020840190612a17565b5050565b6003546001600160a01b03163314610b4a5760405162461bcd60e51b81526004016108ce90613266565b610b8b858585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508792508691506117219050565b5050505050565b6001600160a01b038516331480610bae5750610bae8533610798565b610c155760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016108ce565b610b8b858585858561187b565b600854341015610c695760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b60448201526064016108ce565b6109823382611a25565b6040516351cff8d960e01b81526001600160a01b0382811660048301527f000000000000000000000000af86d22d0992ca72e90bbadaea27ab34027ad07716906351cff8d990602401600060405180830381600087803b158015610cd657600080fd5b505af1158015610b8b573d6000803e3d6000fd5b6003546001600160a01b03163314610d145760405162461bcd60e51b81526004016108ce90613266565b60026005541415610d675760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108ce565b60026005556000610d806003546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610dca576040519150601f19603f3d011682016040523d82523d6000602084013e610dcf565b606091505b5050905080610ddd57600080fd5b506001600555565b6003546001600160a01b03163314610e0f5760405162461bcd60e51b81526004016108ce90613266565b610e17611d48565b565b6003546001600160a01b03163314610e435760405162461bcd60e51b81526004016108ce90613266565b600755565b60608151835114610ead5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016108ce565b600083516001600160401b03811115610ec857610ec8612b24565b604051908082528060200260200182016040528015610ef1578160200160208202803683370190505b50905060005b8451811015610f6957610f3c858281518110610f1557610f1561339a565b6020026020010151858381518110610f2f57610f2f61339a565b6020026020010151610866565b828281518110610f4e57610f4e61339a565b6020908102919091010152610f62816133c6565b9050610ef7565b509392505050565b600e80546109929061329b565b600d80546109929061329b565b6001600160a01b038316331480610fa75750610fa78333610798565b610fc35760405162461bcd60e51b81526004016108ce906133e1565b610fce838383611de5565b505050565b6003546001600160a01b03163314610ffd5760405162461bcd60e51b81526004016108ce90613266565b610e176000611f73565b60075434101561104e5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b60448201526064016108ce565b6109823382611fc5565b6003546001600160a01b031633146110825760405162461bcd60e51b81526004016108ce90613266565b8051610b1c90600d906020840190612a17565b6003546001600160a01b031633146110bf5760405162461bcd60e51b81526004016108ce90613266565b610e17612064565b600f5460ff166111195760405162461bcd60e51b815260206004820152601c60248201527f54686520564950206d696e74206973206e6f7420656e61626c6564210000000060448201526064016108ce565b3360009081526014602052604090205460ff16156111795760405162461bcd60e51b815260206004820152601860248201527f4164647265737320616c726561647920636c61696d656421000000000000000060448201526064016108ce565b6040516bffffffffffffffffffffffff193360601b1660208201526000906034016040516020818303038152906040528051906020012090506111f38383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060065491508490506120ec565b6112305760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b60448201526064016108ce565b336000818152601460209081526040808320805460ff1916600117905580519182019052908152610fce9190611a25565b6003546001600160a01b0316331461128b5760405162461bcd60e51b81526004016108ce90613266565b601155565b610b1c338383612102565b6003546001600160a01b031633146112c55760405162461bcd60e51b81526004016108ce90613266565b600f805460ff1916911515919091179055565b6003546001600160a01b031633146113025760405162461bcd60e51b81526004016108ce90613266565b600b55565b6003546001600160a01b031633146113315760405162461bcd60e51b81526004016108ce90613266565b600655565b6040516371d4ed8d60e11b81526001600160a01b0382811660048301526000917f000000000000000000000000af86d22d0992ca72e90bbadaea27ab34027ad0779091169063e3a9db1a9060240160206040518083038186803b15801561139c57600080fd5b505afa1580156113b0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610949919061342a565b60606040518060600160405280602d8152602001613822602d9139905090565b6003546001600160a01b0316331461141e5760405162461bcd60e51b81526004016108ce90613266565b600855565b6001600160a01b03851633148061143f575061143f8533610798565b61145b5760405162461bcd60e51b81526004016108ce906133e1565b610b8b85858585856121e3565b6003546001600160a01b031633146114925760405162461bcd60e51b81526004016108ce90613266565b6001600160a01b0381166114f75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108ce565b61098281611f73565b6001600160a01b03831633148061151c575061151c8333610798565b6115385760405162461bcd60e51b81526004016108ce906133e1565b610fce83838361230f565b6003546001600160a01b0316331461156d5760405162461bcd60e51b81526004016108ce90613266565b610b1c8282611fc5565b8051610b1c906002906020840190612a17565b6060600d80546115999061329b565b80601f01602080910402602001604051908101604052809291908181526020018280546115c59061329b565b80156116125780601f106115e757610100808354040283529160200191611612565b820191906000526020600020905b8154815290600101906020018083116115f557829003601f168201915b5050505050905090565b6060816116405750506040805180820190915260018152600360fc1b602082015290565b8160005b811561166a5780611654816133c6565b91506116639050600a83613459565b9150611644565b6000816001600160401b0381111561168457611684612b24565b6040519080825280601f01601f1916602001820160405280156116ae576020820181803683370190505b5090505b8415611719576116c360018361346d565b91506116d0600a86613484565b6116db906030613498565b60f81b8183815181106116f0576116f061339a565b60200101906001600160f81b031916908160001a905350611712600a86613459565b94506116b2565b949350505050565b6001600160a01b0384166117475760405162461bcd60e51b81526004016108ce906134b0565b81518351146117685760405162461bcd60e51b81526004016108ce906134f1565b3361177881600087878787612410565b60005b8451811015611813578381815181106117965761179661339a565b60200260200101516000808784815181106117b3576117b361339a565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546117fb9190613498565b9091555081905061180b816133c6565b91505061177b565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611864929190613539565b60405180910390a4610b8b8160008787878761246b565b815183511461189c5760405162461bcd60e51b81526004016108ce906134f1565b6001600160a01b0384166118c25760405162461bcd60e51b81526004016108ce9061355e565b336118d1818787878787612410565b60005b84518110156119b75760008582815181106118f1576118f161339a565b60200260200101519050600085838151811061190f5761190f61339a565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561195f5760405162461bcd60e51b81526004016108ce906135a3565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061199c908490613498565b92505081905550505050806119b0906133c6565b90506118d4565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611a07929190613539565b60405180910390a4611a1d81878787878761246b565b505050505050565b60006001600b546001611a389190613498565b611a42919061346d565b6001600160401b03811115611a5957611a59612b24565b604051908082528060200260200182016040528015611a82578160200160208202803683370190505b50905060006001600b546001611a989190613498565b611aa2919061346d565b6001600160401b03811115611ab957611ab9612b24565b604051908082528060200260200182016040528015611ae2578160200160208202803683370190505b506001600160a01b038516600090815260126020526040812054600954600a5493945091929091839160019190611b199083613498565b11611bd357600a54611b2c906001613498565b600a81905586518790600090611b4457611b4461339a565b602002602001018181525050600185600081518110611b6557611b6561339a565b602090810291909101015281611b7a816133c6565b6001600160a01b038a1660008181526013602090815260408083208984528252808320600a80548552908352818420805460ff191660011790555483526010909152902080546001600160a01b03191690911790559250505b815b600b54811015611d0a575b6001600160a01b0389166000908152601360209081526040808320878452825280832088845290915290205460ff1680611c1a5750816001145b15611c3f57611c2b600a54836125d6565b945081611c37816133c6565b925050611be0565b84878281518110611c5257611c5261339a565b6020026020010181815250506001868281518110611c7257611c7261339a565b6020908102919091018101919091526001600160a01b038a166000908152601382526040808220878352835280822088835290925220805460ff1916600117905560115415801590611cc45750600034115b15611cf857600085815260106020526040902054601154611cf8916001600160a01b031690611cf39034613459565b61264b565b80611d02816133c6565b915050611bd5565b50611d178887878a611721565b611d22836001613498565b6001600160a01b0390981660009081526012602052604090209790975550505050505050565b600354600160a01b900460ff16611d985760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016108ce565b6003805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038316611e0b5760405162461bcd60e51b81526004016108ce906135ed565b8051825114611e2c5760405162461bcd60e51b81526004016108ce906134f1565b6000339050611e4f81856000868660405180602001604052806000815250612410565b60005b8351811015611f14576000848281518110611e6f57611e6f61339a565b602002602001015190506000848381518110611e8d57611e8d61339a565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611edd5760405162461bcd60e51b81526004016108ce90613630565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611f0c816133c6565b915050611e52565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611f65929190613539565b60405180910390a450505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600954600a54611fd6906001613498565b111561201a5760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b60448201526064016108ce565b600a54612028906001613498565b600a81815560009182526010602052604090912080546001600160a01b0319166001600160a01b03851617905554610b1c9083906001846126c3565b600354600160a01b900460ff16156120b15760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108ce565b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611dc83390565b6000826120f9858461278a565b14949350505050565b816001600160a01b0316836001600160a01b031614156121765760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016108ce565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166122095760405162461bcd60e51b81526004016108ce9061355e565b33612228818787612219886127f6565b612222886127f6565b87612410565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156122695760405162461bcd60e51b81526004016108ce906135a3565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906122a6908490613498565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612306828888888888612841565b50505050505050565b6001600160a01b0383166123355760405162461bcd60e51b81526004016108ce906135ed565b3361236481856000612346876127f6565b61234f876127f6565b60405180602001604052806000815250612410565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156123a55760405162461bcd60e51b81526004016108ce90613630565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b600354600160a01b900460ff161561245d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108ce565b611a1d86868686868661290b565b6001600160a01b0384163b15611a1d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906124af9089908990889088908890600401613674565b602060405180830381600087803b1580156124c957600080fd5b505af19250505080156124f9575060408051601f3d908101601f191682019092526124f6918101906136d2565b60015b6125a6576125056136ef565b806308c379a0141561253f575061251a61370b565b806125255750612541565b8060405162461bcd60e51b81526004016108ce9190612c67565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016108ce565b6001600160e01b0319811663bc197c8160e01b146123065760405162461bcd60e51b81526004016108ce90613794565b6040805144602080830191909152428284015233606090811b6bffffffffffffffffffffffff191690830152607480830185905283518084039091018152609490920190925280519101206000908161262f8583613484565b905060008111612640576001612642565b805b95945050505050565b60405163f340fa0160e01b81526001600160a01b0383811660048301527f000000000000000000000000af86d22d0992ca72e90bbadaea27ab34027ad077169063f340fa019083906024016000604051808303818588803b1580156126af57600080fd5b505af1158015612306573d6000803e3d6000fd5b6001600160a01b0384166126e95760405162461bcd60e51b81526004016108ce906134b0565b336126fa81600087612219886127f6565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061272a908490613498565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610b8b81600087878787612841565b600081815b8451811015610f695760008582815181106127ac576127ac61339a565b602002602001015190508083116127d257600083815260208290526040902092506127e3565b600081815260208490526040902092505b50806127ee816133c6565b91505061278f565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106128305761283061339a565b602090810291909101015292915050565b6001600160a01b0384163b15611a1d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061288590899089908890889088906004016137dc565b602060405180830381600087803b15801561289f57600080fd5b505af19250505080156128cf575060408051601f3d908101601f191682019092526128cc918101906136d2565b60015b6128db576125056136ef565b6001600160e01b0319811663f23a6e6160e01b146123065760405162461bcd60e51b81526004016108ce90613794565b6001600160a01b0385166129925760005b8351811015612990578281815181106129375761293761339a565b6020026020010151600460008684815181106129555761295561339a565b60200260200101518152602001908152602001600020600082825461297a9190613498565b909155506129899050816133c6565b905061291c565b505b6001600160a01b038416611a1d5760005b8351811015612306578281815181106129be576129be61339a565b6020026020010151600460008684815181106129dc576129dc61339a565b602002602001015181526020019081526020016000206000828254612a01919061346d565b90915550612a109050816133c6565b90506129a3565b828054612a239061329b565b90600052602060002090601f016020900481019282612a455760008555612a8b565b82601f10612a5e57805160ff1916838001178555612a8b565b82800160010185558215612a8b579182015b82811115612a8b578251825591602001919060010190612a70565b50612a97929150612a9b565b5090565b5b80821115612a975760008155600101612a9c565b6001600160a01b038116811461098257600080fd5b60008060408385031215612ad857600080fd5b8235612ae381612ab0565b946020939093013593505050565b6001600160e01b03198116811461098257600080fd5b600060208284031215612b1957600080fd5b8135610ad881612af1565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612b5f57612b5f612b24565b6040525050565b60006001600160401b03831115612b7f57612b7f612b24565b604051612b96601f8501601f191660200182612b3a565b809150838152848484011115612bab57600080fd5b83836020830137600060208583010152509392505050565b600060208284031215612bd557600080fd5b81356001600160401b03811115612beb57600080fd5b8201601f81018413612bfc57600080fd5b61171984823560208401612b66565b60005b83811015612c26578181015183820152602001612c0e565b83811115612c35576000848401525b50505050565b60008151808452612c53816020860160208601612c0b565b601f01601f19169290920160200192915050565b602081526000610ad86020830184612c3b565b600060208284031215612c8c57600080fd5b5035919050565b60008083601f840112612ca557600080fd5b5081356001600160401b03811115612cbc57600080fd5b6020830191508360208260051b8501011115612cd757600080fd5b9250929050565b60006001600160401b03821115612cf757612cf7612b24565b5060051b60200190565b600082601f830112612d1257600080fd5b81356020612d1f82612cde565b604051612d2c8282612b3a565b83815260059390931b8501820192828101915086841115612d4c57600080fd5b8286015b84811015612d675780358352918301918301612d50565b509695505050505050565b600082601f830112612d8357600080fd5b610ad883833560208501612b66565b600080600080600060808688031215612daa57600080fd5b8535612db581612ab0565b945060208601356001600160401b0380821115612dd157600080fd5b612ddd89838a01612c93565b90965094506040880135915080821115612df657600080fd5b612e0289838a01612d01565b93506060880135915080821115612e1857600080fd5b50612e2588828901612d72565b9150509295509295909350565b600080600080600060a08688031215612e4a57600080fd5b8535612e5581612ab0565b94506020860135612e6581612ab0565b935060408601356001600160401b0380821115612e8157600080fd5b612e8d89838a01612d01565b94506060880135915080821115612ea357600080fd5b612eaf89838a01612d01565b93506080880135915080821115612e1857600080fd5b600060208284031215612ed757600080fd5b8135610ad881612ab0565b600060208284031215612ef457600080fd5b81356001600160401b03811115612f0a57600080fd5b61171984828501612d72565b60008060408385031215612f2957600080fd5b82356001600160401b0380821115612f4057600080fd5b818501915085601f830112612f5457600080fd5b81356020612f6182612cde565b604051612f6e8282612b3a565b83815260059390931b8501820192828101915089841115612f8e57600080fd5b948201945b83861015612fb5578535612fa681612ab0565b82529482019490820190612f93565b96505086013592505080821115612fcb57600080fd5b50612fd885828601612d01565b9150509250929050565b600081518084526020808501945080840160005b8381101561301257815187529582019590820190600101612ff6565b509495945050505050565b602081526000610ad86020830184612fe2565b60008060006060848603121561304557600080fd5b833561305081612ab0565b925060208401356001600160401b038082111561306c57600080fd5b61307887838801612d01565b9350604086013591508082111561308e57600080fd5b5061309b86828701612d01565b9150509250925092565b600080602083850312156130b857600080fd5b82356001600160401b038111156130ce57600080fd5b6130da85828601612c93565b90969095509350505050565b803580151581146130f657600080fd5b919050565b6000806040838503121561310e57600080fd5b823561311981612ab0565b9150613127602084016130e6565b90509250929050565b60006020828403121561314257600080fd5b610ad8826130e6565b6000806040838503121561315e57600080fd5b823561316981612ab0565b9150602083013561317981612ab0565b809150509250929050565b600080600080600060a0868803121561319c57600080fd5b85356131a781612ab0565b945060208601356131b781612ab0565b9350604086013592506060860135915060808601356001600160401b038111156131e057600080fd5b612e2588828901612d72565b60008060006060848603121561320157600080fd5b833561320c81612ab0565b95602085013595506040909401359392505050565b6000806040838503121561323457600080fd5b823561323f81612ab0565b915060208301356001600160401b0381111561325a57600080fd5b612fd885828601612d72565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806132af57607f821691505b602082108114156132d057634e487b7160e01b600052602260045260246000fd5b50919050565b6000845160206132e98285838a01612c0b565b8551918401916132fc8184848a01612c0b565b8554920191600090600181811c908083168061331957607f831692505b85831081141561333757634e487b7160e01b85526022600452602485fd5b80801561334b576001811461335c57613389565b60ff19851688528388019550613389565b60008b81526020902060005b858110156133815781548a820152908401908801613368565b505083880195505b50939b9a5050505050505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156133da576133da6133b0565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60006020828403121561343c57600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b60008261346857613468613443565b500490565b60008282101561347f5761347f6133b0565b500390565b60008261349357613493613443565b500690565b600082198211156134ab576134ab6133b0565b500190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60408152600061354c6040830185612fe2565b82810360208401526126428185612fe2565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906136a090830186612fe2565b82810360608401526136b28186612fe2565b905082810360808401526136c68185612c3b565b98975050505050505050565b6000602082840312156136e457600080fd5b8151610ad881612af1565b600060033d11156137085760046000803e5060005160e01c5b90565b600060443d10156137195790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561374857505050505090565b82850191508151818111156137605750505050505090565b843d870101602082850101111561377a5750505050505090565b61378960208286010187612b3a565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061381690830184612c3b565b97965050505050505056fe68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f657263312f322f6d657461646174612e6a736f6ea264697066735822122061ae7f241454e1b70c7f2e06ead2404f2aaa43bb24a3a4449d96ddca95d0208264736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000000013880000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000044552433100000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): ERC1
Arg [1] : _singleCardCost (uint256): 10000000000000000
Arg [2] : _boosterPackCost (uint256): 10000000000000000
Arg [3] : _maxSupply (uint256): 5000
Arg [4] : _boosterPackSize (uint256): 5
Arg [5] : _creatorDivisor (uint256): 10
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 000000000000000000000000000000000000000000000000002386f26fc10000
Arg [2] : 000000000000000000000000000000000000000000000000002386f26fc10000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000001388
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 4552433100000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $2,419.34 | 0.00348 | $8.42 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.