Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
GutterArt
Compiler Version
v0.8.13+commit.abaa5c0e
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.13; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/ERC1155BurnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; interface IWalletRegistry { function isPairValid(address _fromAddress, address _toAddress) external view returns(bool isValid_); function getDelegate(address _owner) external view returns(address delegate_); function getOwner(address _delegate) external view returns(address owner_); } contract GutterArt is ERC1155BurnableUpgradeable, OwnableUpgradeable, ReentrancyGuardUpgradeable { using Strings for uint256; using ECDSA for bytes32; uint256 public constant ETH = 0; uint256 public constant GANG = 1; struct DutchAuctionData { uint256 startPrice; uint256 endPrice; uint256 startDate; uint256 duration; uint256 currency; } address private minter; address private signer; IWalletRegistry private registry; bool public isMigrationEnabled; string private _baseTokenURI; string private _contractURI; mapping (string => bool) public nonceUsed; mapping (uint256 => bool) public allowedIds; mapping (uint256 => uint256) public ethPrices; mapping (uint256 => uint256) public gangPrices; mapping (uint256 => mapping(address => bool)) public userHasMinted; mapping (uint256 => DutchAuctionData) public dutchAuctions; IERC20 public gangToken; function initialize() public initializer { __ERC1155Burnable_init(); __ERC1155_init(_baseTokenURI); __Ownable_init_unchained(); __ReentrancyGuard_init(); } function setup( address _signerAddress, string memory baseURI, string memory contractUri ) external onlyOwner { minter = msg.sender; signer = _signerAddress; _baseTokenURI = baseURI; _contractURI = contractUri; } function adminMint( address receiver, uint256 nftID, uint256 quantity ) external onlyOwner { require(quantity <= 50, "max 50 per mint"); _mint(receiver, nftID, quantity, ""); } function migrate( bytes memory signature, bytes32 hash, uint256 nftID, uint256 quantity, string memory nonce ) external payable nonReentrant { require(allowedIds[nftID], "id is not allowed to mint"); require(matchAddresSigner(hash, signature), "wrong signer"); require(hashMigrate(msg.sender, nftID, quantity, nonce) == hash, "wrong hash"); require(isMigrationEnabled, "minting disabled"); require(!nonceUsed[nonce], "already used"); require(quantity * ethPrices[nftID] == msg.value, "wrong price"); _mint(msg.sender, nftID, quantity, ""); nonceUsed[nonce] = true; } function mint( bytes memory signature, bytes32 hash, address to, uint256 nftID, uint256 quantity ) external payable nonReentrant { require(allowedIds[nftID], "id is not allowed to mint"); require(matchAddresSigner(hash, signature), "wrong signer"); require(hashMint(msg.sender, to, nftID, quantity, ETH) == hash, "wrong hash"); require(to == msg.sender, "can't mint to this address"); require(!userHasMinted[nftID][to], "already used"); require(quantity * ethPrices[nftID] == msg.value, "wrong price"); _mint(to, nftID, quantity, ""); userHasMinted[nftID][to] = true; } function mintWithGang( bytes memory signature, bytes32 hash, address to, uint256 nftID, uint256 quantity ) external nonReentrant { require(allowedIds[nftID], "id is not allowed to mint"); require(matchAddresSigner(hash, signature), "wrong signer"); require(hashMint(msg.sender, to, nftID, quantity, GANG) == hash, "wrong hash"); require(to == msg.sender, "can't mint to this address"); require(!userHasMinted[nftID][to], "already used"); uint256 price = quantity * gangPrices[nftID]; require(address(gangToken) != address(0), "gang token address is not set"); require(gangToken.balanceOf(msg.sender) >= price, "insufficient funds"); require(gangToken.transferFrom(msg.sender, address(this), price), "transfer failed"); _mint(to, nftID, quantity, ""); userHasMinted[nftID][to] = true; } function airdrop( address[] memory receivers, uint256[] memory quantities, uint256[] memory NFTIDs, bytes[] memory datas ) external { require(receivers.length == quantities.length, "arrays should be equal"); require(receivers.length == NFTIDs.length, "arrays should be equal 2"); require(msg.sender == minter, "only minter account can call this"); require(receivers.length <= 50, "max 50 addresses per call"); for (uint256 i = 0; i < receivers.length; i++) { _mint(receivers[i], NFTIDs[i], quantities[i], datas[i]); } } function auctionMint( bytes memory signature, bytes32 hash, address to, uint256 nftID, uint256 quantity ) external payable nonReentrant { require(allowedIds[nftID], "id is not allowed to mint"); require(matchAddresSigner(hash, signature), "wrong signer"); require(hashMint(msg.sender, to, nftID, quantity, ETH) == hash, "wrong hash"); require(to == msg.sender, "can't mint to this address"); require(!userHasMinted[nftID][to], "user has already minted"); require(dutchAuctions[nftID].startPrice != 0, "auction doesn't exist"); require(dutchAuctions[nftID].currency == ETH, "wrong currency"); require(block.timestamp >= dutchAuctions[nftID].startDate, "not started yet"); uint256 costToMint = getAuctionPrice(nftID) * quantity; require(msg.value >= costToMint, "eth value incorrect"); _mint(to, nftID, quantity, ""); userHasMinted[nftID][to] = true; if (msg.value > costToMint) { (bool success, ) = msg.sender.call{ value: msg.value - costToMint }(""); require(success, "Address: unable to send value, recipient may have reverted"); } } function auctionMintGang( bytes memory signature, bytes32 hash, address to, uint256 nftID, uint256 quantity ) external nonReentrant { require(allowedIds[nftID], "id is not allowed to mint"); require(matchAddresSigner(hash, signature), "wrong signer"); require(hashMint(msg.sender, to, nftID, quantity, GANG) == hash, "wrong hash"); require(to == msg.sender, "can't mint to this address"); require(!userHasMinted[nftID][to], "user has already minted"); require(dutchAuctions[nftID].startPrice != 0, "auction doesn't exist"); require(dutchAuctions[nftID].currency == GANG, "wrong currency"); require(block.timestamp >= dutchAuctions[nftID].startDate, "not started yet"); uint256 costToMint = getAuctionPrice(nftID) * quantity; require(gangToken.transferFrom(msg.sender, address(this), costToMint), "transfer failed"); _mint(to, nftID, quantity, ""); userHasMinted[nftID][to] = true; } function getAuctionPrice(uint256 nftID) public view returns (uint256) { DutchAuctionData memory auction = dutchAuctions[nftID]; uint256 elapsed = auction.startDate > 0 ? block.timestamp - auction.startDate : 0; if (elapsed >= auction.duration) { return auction.endPrice; } else { uint256 currentPrice = ((auction.duration - elapsed) * auction.startPrice) / auction.duration; return currentPrice > auction.endPrice ? currentPrice : auction.endPrice; } } function setupAuction( uint256 id, uint256 startPrice, uint256 endPrice, uint256 startDate, uint256 duration, uint256 currency ) external onlyOwner { dutchAuctions[id] = DutchAuctionData(startPrice, endPrice, startDate, duration, currency); } function deleteAuction(uint256 id) external onlyOwner { delete dutchAuctions[id]; } function setMinter(address _newMinter) external onlyOwner { minter = _newMinter; } function setMigrationEnabled(bool _enabled) external onlyOwner { isMigrationEnabled = _enabled; } function setGangAddress(address _gangAddress) external onlyOwner { gangToken = IERC20(_gangAddress); } function setETHPrice(uint256 id, uint256 price) external onlyOwner { ethPrices[id] = price; } function setGangPrice(uint256 id, uint256 price) external onlyOwner { gangPrices[id] = price; } // balance-related function withdrawETH() external onlyOwner { payable(msg.sender).transfer(address(this).balance); } function reclaimERC20(address _tokenContract, uint256 _amount) external onlyOwner { IERC20(_tokenContract).transfer(msg.sender, _amount); } function reclaimERC721(IERC721 erc721Token, uint256 id) external onlyOwner { erc721Token.safeTransferFrom(address(this), msg.sender, id); } function reclaimERC1155( IERC1155 erc1155Token, uint256 id, uint256 amount ) external onlyOwner { erc1155Token.safeTransferFrom(address(this), msg.sender, id, amount, ""); } // metadata-related function contractURI() public view returns (string memory) { return _contractURI; } function uri(uint256 tokenId) public view override returns (string memory) { return string(abi.encodePacked(_baseTokenURI, tokenId.toString())); } function setBaseURI(string memory newBaseURI) external onlyOwner { _baseTokenURI = newBaseURI; } function setContractURI(string memory newuri) external onlyOwner { _contractURI = newuri; } function setIDAllowed(uint256 id, bool allowed) public onlyOwner { allowedIds[id] = allowed; } function setIDRangeAllowed(uint256 start, uint256 end, bool allowed) public onlyOwner { for (uint256 i = start; i <= end; i++) { allowedIds[i] = allowed; } } function setRegistry(address _registry) external onlyOwner { registry = IWalletRegistry(_registry); } // utils function hashMigrate( address sender, uint256 id, uint256 qty, string memory nonce ) private pure returns (bytes32) { return ECDSA.toEthSignedMessageHash(keccak256(abi.encodePacked(sender, id, qty, nonce))); } function hashMint( address sender, address to, uint256 id, uint256 qty, uint256 currency ) private pure returns (bytes32) { return ECDSA.toEthSignedMessageHash(keccak256(abi.encodePacked(sender, to, id, qty, currency))); } function matchAddresSigner(bytes32 hash, bytes memory signature) private view returns (bool) { return signer == hash.recover(signature); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol) pragma solidity ^0.8.0; import "../ERC1155Upgradeable.sol"; import "../../../proxy/utils/Initializable.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 ERC1155BurnableUpgradeable is Initializable, ERC1155Upgradeable { function __ERC1155Burnable_init() internal onlyInitializing { } function __ERC1155Burnable_init_unchained() internal onlyInitializing { } 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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ReentrancyGuardUpgradeable is Initializable { // 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; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _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; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// 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/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.0; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() initializer {} * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
// 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 AddressUpgradeable { /** * @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 Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155Upgradeable.sol"; import "./IERC1155ReceiverUpgradeable.sol"; import "./extensions/IERC1155MetadataURIUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.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 ERC1155Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC1155Upgradeable, IERC1155MetadataURIUpgradeable { using AddressUpgradeable 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}. */ function __ERC1155_init(string memory uri_) internal onlyInitializing { __ERC1155_init_unchained(uri_); } function __ERC1155_init_unchained(string memory uri_) internal onlyInitializing { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC1155Upgradeable).interfaceId || interfaceId == type(IERC1155MetadataURIUpgradeable).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 IERC1155ReceiverUpgradeable(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155ReceiverUpgradeable.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 IERC1155ReceiverUpgradeable(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155ReceiverUpgradeable.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; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[47] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.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 IERC1155Upgradeable is IERC165Upgradeable { /** * @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/IERC165Upgradeable.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155ReceiverUpgradeable is IERC165Upgradeable { /** * @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 "../IERC1155Upgradeable.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 IERC1155MetadataURIUpgradeable is IERC1155Upgradeable { /** * @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 v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// 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 IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"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":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"ETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GANG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"nftID","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"},{"internalType":"uint256[]","name":"NFTIDs","type":"uint256[]"},{"internalType":"bytes[]","name":"datas","type":"bytes[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allowedIds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"nftID","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"auctionMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"nftID","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"auctionMintGang","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"deleteAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"dutchAuctions","outputs":[{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"endPrice","type":"uint256"},{"internalType":"uint256","name":"startDate","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"currency","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ethPrices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"gangPrices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gangToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nftID","type":"uint256"}],"name":"getAuctionPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":"isMigrationEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"uint256","name":"nftID","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"string","name":"nonce","type":"string"}],"name":"migrate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"nftID","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"nftID","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintWithGang","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"nonceUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"erc1155Token","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reclaimERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"reclaimERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"erc721Token","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"reclaimERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setETHPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gangAddress","type":"address"}],"name":"setGangAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setGangPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setIDAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setIDRangeAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setMigrationEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newMinter","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_registry","type":"address"}],"name":"setRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signerAddress","type":"address"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"string","name":"contractUri","type":"string"}],"name":"setup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"endPrice","type":"uint256"},{"internalType":"uint256","name":"startDate","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"currency","type":"uint256"}],"name":"setupAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","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":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userHasMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50614919806100206000396000f3fe6080604052600436106102c75760003560e01c80638129fc1c11610175578063d82f64c2116100dc578063e985e9c511610095578063f2ab2fc01161006f578063f2ab2fc014610905578063f2fde38b14610978578063f5298aca14610998578063fca3b5aa146109b857600080fd5b8063e985e9c514610889578063ebe41921146108d2578063f242432a146108e557600080fd5b8063d82f64c2146107f7578063d9c4021a1461080a578063dba23e0a1461082a578063e086e5ec1461083f578063e3979e2d14610854578063e8a3d4851461087457600080fd5b8063938e3d7b1161012e578063938e3d7b14610736578063a22cb46514610756578063a91ee0dc14610776578063afdbd49914610796578063ba791492146107b6578063c8c80458146107d757600080fd5b80638129fc1c1461065e5780638322fff2146106735780638a2519a1146106885780638da5cb5b146106a8578063917d009e146106da578063923c235b146106fa57600080fd5b806333f3533b116102345780635faceac8116101ed5780636b7d2470116101c75780636b7d2470146105db5780636c99cb79146105fb578063715018a6146106295780637a32f2911461063e57600080fd5b80635faceac81461055f57806365ecb2c01461057f5780636b20c454146105bb57600080fd5b806333f3533b14610490578063370b8ab3146104b25780634824a26f146104d25780634e1273f4146104f2578063521c27f21461051f57806355f804b31461053f57600080fd5b80631043d2c3116102865780631043d2c3146103c25780631c8e7d2a146103e2578063229a6ce4146104025780632a698bed146104225780632b0c8d3b146104505780632eb2c2d61461047057600080fd5b80624a84cb146102cc578062fdd58e146102ee57806301ffc9a714610321578063035d9e09146103515780630e89341c146103825780630ef5d757146103af575b600080fd5b3480156102d857600080fd5b506102ec6102e736600461381f565b6109d8565b005b3480156102fa57600080fd5b5061030e610309366004613854565b610a6e565b6040519081526020015b60405180910390f35b34801561032d57600080fd5b5061034161033c366004613896565b610b02565b6040519015158152602001610318565b34801561035d57600080fd5b5061034161036c3660046138ba565b6101336020526000908152604090205460ff1681565b34801561038e57600080fd5b506103a261039d3660046138ba565b610b54565b604051610318919061392b565b6102ec6103bd3660046139f3565b610b89565b3480156103ce57600080fd5b506102ec6103dd366004613a73565b610d6e565b3480156103ee57600080fd5b506102ec6103fd36600461381f565b6110d0565b34801561040e57600080fd5b506102ec61041d366004613add565b61117a565b34801561042e57600080fd5b5061030e61043d3660046138ba565b6101346020526000908152604090205481565b34801561045c57600080fd5b506102ec61046b366004613afa565b6111c7565b34801561047c57600080fd5b506102ec61048b366004613c03565b61124b565b34801561049c57600080fd5b5061012f5461034190600160a01b900460ff1681565b3480156104be57600080fd5b506102ec6104cd366004613c96565b6112e2565b3480156104de57600080fd5b506102ec6104ed366004613d48565b611363565b3480156104fe57600080fd5b5061051261050d366004613e6c565b611543565b6040516103189190613f0a565b34801561052b57600080fd5b506102ec61053a366004613f2b565b61166c565b34801561054b57600080fd5b506102ec61055a366004613f48565b6116b5565b34801561056b57600080fd5b506102ec61057a366004613f84565b6116f7565b34801561058b57600080fd5b5061034161059a366004613fa6565b61013660209081526000928352604080842090915290825290205460ff1681565b3480156105c757600080fd5b506102ec6105d6366004613fd6565b611734565b3480156105e757600080fd5b506102ec6105f6366004613854565b611777565b34801561060757600080fd5b5061030e6106163660046138ba565b6101356020526000908152604090205481565b34801561063557600080fd5b506102ec61180b565b34801561064a57600080fd5b506102ec6106593660046138ba565b611841565b34801561066a57600080fd5b506102ec611898565b34801561067f57600080fd5b5061030e600081565b34801561069457600080fd5b506102ec6106a3366004613a73565b6119fd565b3480156106b457600080fd5b5060c9546001600160a01b03165b6040516001600160a01b039091168152602001610318565b3480156106e657600080fd5b5061030e6106f53660046138ba565b611c75565b34801561070657600080fd5b50610341610715366004613f48565b80516020818301810180516101328252928201919093012091525460ff1681565b34801561074257600080fd5b506102ec610751366004613f48565b611d3c565b34801561076257600080fd5b506102ec610771366004614041565b611d7a565b34801561078257600080fd5b506102ec610791366004613add565b611d85565b3480156107a257600080fd5b506102ec6107b1366004613854565b611dd2565b3480156107c257600080fd5b50610138546106c2906001600160a01b031681565b3480156107e357600080fd5b506102ec6107f236600461406f565b611e6d565b6102ec610805366004613a73565b611eb8565b34801561081657600080fd5b506102ec610825366004613f84565b612077565b34801561083657600080fd5b5061030e600181565b34801561084b57600080fd5b506102ec6120b4565b34801561086057600080fd5b506102ec61086f366004614094565b61210a565b34801561088057600080fd5b506103a261216a565b34801561089557600080fd5b506103416108a43660046140cd565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205460ff1690565b6102ec6108e0366004613a73565b6121fd565b3480156108f157600080fd5b506102ec6109003660046140fb565b6125b9565b34801561091157600080fd5b506109506109203660046138ba565b61013760205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a001610318565b34801561098457600080fd5b506102ec610993366004613add565b6125fe565b3480156109a457600080fd5b506102ec6109b336600461381f565b612696565b3480156109c457600080fd5b506102ec6109d3366004613add565b6126d9565b60c9546001600160a01b03163314610a0b5760405162461bcd60e51b8152600401610a0290614163565b60405180910390fd5b6032811115610a4e5760405162461bcd60e51b815260206004820152600f60248201526e1b585e080d4c081c195c881b5a5b9d608a1b6044820152606401610a02565b610a6983838360405180602001604052806000815250612726565b505050565b60006001600160a01b038316610ada5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610a02565b5060009081526065602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610b3357506001600160e01b031982166303a24d0760e21b145b80610b4e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060610130610b6283612832565b604051602001610b739291906141ee565b6040516020818303038152906040529050919050565b600260fb5403610bab5760405162461bcd60e51b8152600401610a029061428b565b600260fb556000838152610133602052604090205460ff16610bdf5760405162461bcd60e51b8152600401610a02906142c2565b610be98486612932565b610c055760405162461bcd60e51b8152600401610a02906142f9565b83610c1233858585612957565b14610c2f5760405162461bcd60e51b8152600401610a029061431f565b61012f54600160a01b900460ff16610c7c5760405162461bcd60e51b815260206004820152601060248201526f1b5a5b9d1a5b99c8191a5cd8589b195960821b6044820152606401610a02565b61013281604051610c8d9190614343565b9081526040519081900360200190205460ff1615610cbd5760405162461bcd60e51b8152600401610a029061435f565b600083815261013460205260409020543490610cd9908461439b565b14610d145760405162461bcd60e51b815260206004820152600b60248201526a77726f6e6720707269636560a81b6044820152606401610a02565b610d2f33848460405180602001604052806000815250612726565b600161013282604051610d429190614343565b908152604051908190036020019020805491151560ff199092169190911790555050600160fb55505050565b600260fb5403610d905760405162461bcd60e51b8152600401610a029061428b565b600260fb556000828152610133602052604090205460ff16610dc45760405162461bcd60e51b8152600401610a02906142c2565b610dce8486612932565b610dea5760405162461bcd60e51b8152600401610a02906142f9565b83610df93385858560016129d3565b14610e165760405162461bcd60e51b8152600401610a029061431f565b6001600160a01b0383163314610e3e5760405162461bcd60e51b8152600401610a02906143ba565b6000828152610136602090815260408083206001600160a01b038716845290915290205460ff1615610eac5760405162461bcd60e51b81526020600482015260176024820152761d5cd95c881a185cc8185b1c9958591e481b5a5b9d1959604a1b6044820152606401610a02565b600082815261013760205260408120549003610f025760405162461bcd60e51b8152602060048201526015602482015274185d58dd1a5bdb88191bd95cdb89dd08195e1a5cdd605a1b6044820152606401610a02565b60008281526101376020526040902060040154600114610f555760405162461bcd60e51b815260206004820152600e60248201526d77726f6e672063757272656e637960901b6044820152606401610a02565b60008281526101376020526040902060020154421015610fa95760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd081cdd185c9d1959081e595d608a1b6044820152606401610a02565b600081610fb584611c75565b610fbf919061439b565b610138546040516323b872dd60e01b8152336004820152306024820152604481018390529192506001600160a01b0316906323b872dd906064015b6020604051808303816000875af1158015611019573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103d91906143f1565b61107b5760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152606401610a02565b61109684848460405180602001604052806000815250612726565b50506000908152610136602090815260408083206001600160a01b03909416835292905220805460ff1916600190811790915560fb555050565b60c9546001600160a01b031633146110fa5760405162461bcd60e51b8152600401610a0290614163565b604051637921219560e11b8152306004820152336024820152604481018390526064810182905260a06084820152600060a48201526001600160a01b0384169063f242432a9060c401600060405180830381600087803b15801561115d57600080fd5b505af1158015611171573d6000803e3d6000fd5b50505050505050565b60c9546001600160a01b031633146111a45760405162461bcd60e51b8152600401610a0290614163565b61013880546001600160a01b0319166001600160a01b0392909216919091179055565b60c9546001600160a01b031633146111f15760405162461bcd60e51b8152600401610a0290614163565b61012d8054336001600160a01b03199182161790915561012e80549091166001600160a01b038516179055815161123090610130906020850190613771565b50805161124590610131906020840190613771565b50505050565b6001600160a01b038516331480611267575061126785336108a4565b6112ce5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610a02565b6112db8585858585612a27565b5050505050565b60c9546001600160a01b0316331461130c5760405162461bcd60e51b8152600401610a0290614163565b6040805160a081018252958652602080870195865286820194855260608701938452608087019283526000978852610137905290952093518455915160018401555160028301555160038201559051600490910155565b82518451146113ad5760405162461bcd60e51b8152602060048201526016602482015275185c9c985e5cc81cda1bdd5b1908189948195c5d585b60521b6044820152606401610a02565b81518451146113fe5760405162461bcd60e51b815260206004820152601860248201527f6172726179732073686f756c6420626520657175616c203200000000000000006044820152606401610a02565b61012d546001600160a01b031633146114635760405162461bcd60e51b815260206004820152602160248201527f6f6e6c79206d696e746572206163636f756e742063616e2063616c6c207468696044820152607360f81b6064820152608401610a02565b6032845111156114b55760405162461bcd60e51b815260206004820152601960248201527f6d617820353020616464726573736573207065722063616c6c000000000000006044820152606401610a02565b60005b84518110156112db576115318582815181106114d6576114d661440e565b60200260200101518483815181106114f0576114f061440e565b602002602001015186848151811061150a5761150a61440e565b60200260200101518585815181106115245761152461440e565b6020026020010151612726565b8061153b81614424565b9150506114b8565b606081518351146115a85760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610a02565b600083516001600160401b038111156115c3576115c361393e565b6040519080825280602002602001820160405280156115ec578160200160208202803683370190505b50905060005b8451811015611664576116378582815181106116105761161061440e565b602002602001015185838151811061162a5761162a61440e565b6020026020010151610a6e565b8282815181106116495761164961440e565b602090810291909101015261165d81614424565b90506115f2565b509392505050565b60c9546001600160a01b031633146116965760405162461bcd60e51b8152600401610a0290614163565b61012f8054911515600160a01b0260ff60a01b19909216919091179055565b60c9546001600160a01b031633146116df5760405162461bcd60e51b8152600401610a0290614163565b80516116f390610130906020840190613771565b5050565b60c9546001600160a01b031633146117215760405162461bcd60e51b8152600401610a0290614163565b6000918252610135602052604090912055565b6001600160a01b038316331480611750575061175083336108a4565b61176c5760405162461bcd60e51b8152600401610a029061443d565b610a69838383612bbe565b60c9546001600160a01b031633146117a15760405162461bcd60e51b8152600401610a0290614163565b604051632142170760e11b8152306004820152336024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b1580156117ef57600080fd5b505af1158015611803573d6000803e3d6000fd5b505050505050565b60c9546001600160a01b031633146118355760405162461bcd60e51b8152600401610a0290614163565b61183f6000612d3d565b565b60c9546001600160a01b0316331461186b5760405162461bcd60e51b8152600401610a0290614163565b60009081526101376020526040812081815560018101829055600281018290556003810182905560040155565b600054610100900460ff166118b35760005460ff16156118b7565b303b155b61191a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a02565b600054610100900460ff1615801561193c576000805461ffff19166101011790555b611944612d8f565b6119d8610130805461195590614198565b80601f016020809104026020016040519081016040528092919081815260200182805461198190614198565b80156119ce5780601f106119a3576101008083540402835291602001916119ce565b820191906000526020600020905b8154815290600101906020018083116119b157829003601f168201915b5050505050612db6565b6119e0612de6565b6119e8612e16565b80156119fa576000805461ff00191690555b50565b600260fb5403611a1f5760405162461bcd60e51b8152600401610a029061428b565b600260fb556000828152610133602052604090205460ff16611a535760405162461bcd60e51b8152600401610a02906142c2565b611a5d8486612932565b611a795760405162461bcd60e51b8152600401610a02906142f9565b83611a883385858560016129d3565b14611aa55760405162461bcd60e51b8152600401610a029061431f565b6001600160a01b0383163314611acd5760405162461bcd60e51b8152600401610a02906143ba565b6000828152610136602090815260408083206001600160a01b038716845290915290205460ff1615611b115760405162461bcd60e51b8152600401610a029061435f565b60008281526101356020526040812054611b2b908361439b565b610138549091506001600160a01b0316611b875760405162461bcd60e51b815260206004820152601d60248201527f67616e6720746f6b656e2061646472657373206973206e6f74207365740000006044820152606401610a02565b610138546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015611bd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf49190614486565b1015611c375760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610a02565b610138546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401610ffa565b600081815261013760209081526040808320815160a081018352815481526001820154938101939093526002810154918301829052600381015460608401526004015460808301528290611cca576000611cd9565b6040820151611cd9904261449f565b905081606001518110611cf157506020015192915050565b6060820151825160009190611d06848361449f565b611d10919061439b565b611d1a91906144cc565b905082602001518111611d31578260200151611d33565b805b95945050505050565b60c9546001600160a01b03163314611d665760405162461bcd60e51b8152600401610a0290614163565b80516116f390610131906020840190613771565b6116f3338383612e45565b60c9546001600160a01b03163314611daf5760405162461bcd60e51b8152600401610a0290614163565b61012f80546001600160a01b0319166001600160a01b0392909216919091179055565b60c9546001600160a01b03163314611dfc5760405162461bcd60e51b8152600401610a0290614163565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015611e49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6991906143f1565b60c9546001600160a01b03163314611e975760405162461bcd60e51b8152600401610a0290614163565b60009182526101336020526040909120805460ff1916911515919091179055565b600260fb5403611eda5760405162461bcd60e51b8152600401610a029061428b565b600260fb556000828152610133602052604090205460ff16611f0e5760405162461bcd60e51b8152600401610a02906142c2565b611f188486612932565b611f345760405162461bcd60e51b8152600401610a02906142f9565b83611f433385858560006129d3565b14611f605760405162461bcd60e51b8152600401610a029061431f565b6001600160a01b0383163314611f885760405162461bcd60e51b8152600401610a02906143ba565b6000828152610136602090815260408083206001600160a01b038716845290915290205460ff1615611fcc5760405162461bcd60e51b8152600401610a029061435f565b600082815261013460205260409020543490611fe8908361439b565b146120235760405162461bcd60e51b815260206004820152600b60248201526a77726f6e6720707269636560a81b6044820152606401610a02565b61203e83838360405180602001604052806000815250612726565b506000908152610136602090815260408083206001600160a01b03909416835292905220805460ff1916600190811790915560fb555050565b60c9546001600160a01b031633146120a15760405162461bcd60e51b8152600401610a0290614163565b6000918252610134602052604090912055565b60c9546001600160a01b031633146120de5760405162461bcd60e51b8152600401610a0290614163565b60405133904780156108fc02916000818181858888f193505050501580156119fa573d6000803e3d6000fd5b60c9546001600160a01b031633146121345760405162461bcd60e51b8152600401610a0290614163565b825b82811161124557600081815261013360205260409020805460ff19168315151790558061216281614424565b915050612136565b6060610131805461217a90614198565b80601f01602080910402602001604051908101604052809291908181526020018280546121a690614198565b80156121f35780601f106121c8576101008083540402835291602001916121f3565b820191906000526020600020905b8154815290600101906020018083116121d657829003601f168201915b5050505050905090565b600260fb540361221f5760405162461bcd60e51b8152600401610a029061428b565b600260fb556000828152610133602052604090205460ff166122535760405162461bcd60e51b8152600401610a02906142c2565b61225d8486612932565b6122795760405162461bcd60e51b8152600401610a02906142f9565b836122883385858560006129d3565b146122a55760405162461bcd60e51b8152600401610a029061431f565b6001600160a01b03831633146122cd5760405162461bcd60e51b8152600401610a02906143ba565b6000828152610136602090815260408083206001600160a01b038716845290915290205460ff161561233b5760405162461bcd60e51b81526020600482015260176024820152761d5cd95c881a185cc8185b1c9958591e481b5a5b9d1959604a1b6044820152606401610a02565b6000828152610137602052604081205490036123915760405162461bcd60e51b8152602060048201526015602482015274185d58dd1a5bdb88191bd95cdb89dd08195e1a5cdd605a1b6044820152606401610a02565b60008281526101376020526040902060040154156123e25760405162461bcd60e51b815260206004820152600e60248201526d77726f6e672063757272656e637960901b6044820152606401610a02565b600082815261013760205260409020600201544210156124365760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd081cdd185c9d1959081e595d608a1b6044820152606401610a02565b60008161244284611c75565b61244c919061439b565b9050803410156124945760405162461bcd60e51b8152602060048201526013602482015272195d1a081d985b1d59481a5b98dbdc9c9958dd606a1b6044820152606401610a02565b6124af84848460405180602001604052806000815250612726565b6000838152610136602090815260408083206001600160a01b03881684529091529020805460ff19166001179055348110156125ac576000336124f2833461449f565b604051600081818185875af1925050503d806000811461252e576040519150601f19603f3d011682016040523d82523d6000602084013e612533565b606091505b50509050806125aa5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a02565b505b5050600160fb5550505050565b6001600160a01b0385163314806125d557506125d585336108a4565b6125f15760405162461bcd60e51b8152600401610a029061443d565b6112db8585858585612f25565b60c9546001600160a01b031633146126285760405162461bcd60e51b8152600401610a0290614163565b6001600160a01b03811661268d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a02565b6119fa81612d3d565b6001600160a01b0383163314806126b257506126b283336108a4565b6126ce5760405162461bcd60e51b8152600401610a029061443d565b610a6983838361303d565b60c9546001600160a01b031633146127035760405162461bcd60e51b8152600401610a0290614163565b61012d80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0384166127865760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610a02565b336127a08160008761279788613143565b6112db88613143565b60008481526065602090815260408083206001600160a01b0389168452909152812080548592906127d29084906144e0565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46112db8160008787878761318e565b6060816000036128595750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612883578061286d81614424565b915061287c9050600a836144cc565b915061285d565b6000816001600160401b0381111561289d5761289d61393e565b6040519080825280601f01601f1916602001820160405280156128c7576020820181803683370190505b5090505b8415611d31576128dc60018361449f565b91506128e9600a866144f8565b6128f49060306144e0565b60f81b8183815181106129095761290961440e565b60200101906001600160f81b031916908160001a90535061292b600a866144cc565b94506128cb565b600061293e83836132e9565b61012e546001600160a01b039182169116149392505050565b6000611d3385858585604051602001612973949392919061450c565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b6040516bffffffffffffffffffffffff19606087811b8216602084015286901b166034820152604881018490526068810183905260888101829052600090612a1d9060a801612973565b9695505050505050565b8151835114612a485760405162461bcd60e51b8152600401610a0290614552565b6001600160a01b038416612a6e5760405162461bcd60e51b8152600401610a029061459a565b3360005b8451811015612b58576000858281518110612a8f57612a8f61440e565b602002602001015190506000858381518110612aad57612aad61440e565b60209081029190910181015160008481526065835260408082206001600160a01b038e168352909352919091205490915081811015612afe5760405162461bcd60e51b8152600401610a02906145df565b60008381526065602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612b3d9084906144e0565b9250508190555050505080612b5190614424565b9050612a72565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612ba8929190614629565b60405180910390a4611803818787878787613305565b6001600160a01b038316612be45760405162461bcd60e51b8152600401610a029061464e565b8051825114612c055760405162461bcd60e51b8152600401610a0290614552565b604080516020810190915260009081905233905b8351811015612cde576000848281518110612c3657612c3661440e565b602002602001015190506000848381518110612c5457612c5461440e565b60209081029190910181015160008481526065835260408082206001600160a01b038c168352909352919091205490915081811015612ca55760405162461bcd60e51b8152600401610a0290614691565b60009283526065602090815260408085206001600160a01b038b1686529091529092209103905580612cd681614424565b915050612c19565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612d2f929190614629565b60405180910390a450505050565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff1661183f5760405162461bcd60e51b8152600401610a02906146d5565b600054610100900460ff16612ddd5760405162461bcd60e51b8152600401610a02906146d5565b6119fa816133c0565b600054610100900460ff16612e0d5760405162461bcd60e51b8152600401610a02906146d5565b61183f33612d3d565b600054610100900460ff16612e3d5760405162461bcd60e51b8152600401610a02906146d5565b61183f6133f0565b816001600160a01b0316836001600160a01b031603612eb85760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610a02565b6001600160a01b03838116600081815260666020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416612f4b5760405162461bcd60e51b8152600401610a029061459a565b33612f5b81878761279788613143565b60008481526065602090815260408083206001600160a01b038a16845290915290205483811015612f9e5760405162461bcd60e51b8152600401610a02906145df565b60008581526065602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612fdd9084906144e0565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461117182888888888861318e565b6001600160a01b0383166130635760405162461bcd60e51b8152600401610a029061464e565b336130938185600061307487613143565b61307d87613143565b5050604080516020810190915260009052505050565b60008381526065602090815260408083206001600160a01b0388168452909152902054828110156130d65760405162461bcd60e51b8152600401610a0290614691565b60008481526065602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061317d5761317d61440e565b602090810291909101015292915050565b6001600160a01b0384163b156118035760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906131d29089908990889088908890600401614720565b6020604051808303816000875af192505050801561320d575060408051601f3d908101601f1916820190925261320a91810190614765565b60015b6132b957613219614782565b806308c379a003613252575061322d61479e565b806132385750613254565b8060405162461bcd60e51b8152600401610a02919061392b565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610a02565b6001600160e01b0319811663f23a6e6160e01b146111715760405162461bcd60e51b8152600401610a0290614827565b60008060006132f8858561341e565b915091506116648161348c565b6001600160a01b0384163b156118035760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190613349908990899088908890889060040161486f565b6020604051808303816000875af1925050508015613384575060408051601f3d908101601f1916820190925261338191810190614765565b60015b61339057613219614782565b6001600160e01b0319811663bc197c8160e01b146111715760405162461bcd60e51b8152600401610a0290614827565b600054610100900460ff166133e75760405162461bcd60e51b8152600401610a02906146d5565b6119fa81613642565b600054610100900460ff166134175760405162461bcd60e51b8152600401610a02906146d5565b600160fb55565b60008082516041036134545760208301516040840151606085015160001a61344887828585613655565b94509450505050613485565b825160400361347d5760208301516040840151613472868383613742565b935093505050613485565b506000905060025b9250929050565b60008160048111156134a0576134a06148cd565b036134a85750565b60018160048111156134bc576134bc6148cd565b036135095760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a02565b600281600481111561351d5761351d6148cd565b0361356a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a02565b600381600481111561357e5761357e6148cd565b036135d65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a02565b60048160048111156135ea576135ea6148cd565b036119fa5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a02565b80516116f3906067906020840190613771565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561368c5750600090506003613739565b8460ff16601b141580156136a457508460ff16601c14155b156136b55750600090506004613739565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613709573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661373257600060019250925050613739565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161376387828885613655565b935093505050935093915050565b82805461377d90614198565b90600052602060002090601f01602090048101928261379f57600085556137e5565b82601f106137b857805160ff19168380011785556137e5565b828001600101855582156137e5579182015b828111156137e55782518255916020019190600101906137ca565b506137f19291506137f5565b5090565b5b808211156137f157600081556001016137f6565b6001600160a01b03811681146119fa57600080fd5b60008060006060848603121561383457600080fd5b833561383f8161380a565b95602085013595506040909401359392505050565b6000806040838503121561386757600080fd5b82356138728161380a565b946020939093013593505050565b6001600160e01b0319811681146119fa57600080fd5b6000602082840312156138a857600080fd5b81356138b381613880565b9392505050565b6000602082840312156138cc57600080fd5b5035919050565b60005b838110156138ee5781810151838201526020016138d6565b838111156112455750506000910152565b600081518084526139178160208601602086016138d3565b601f01601f19169290920160200192915050565b6020815260006138b360208301846138ff565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156139795761397961393e565b6040525050565b600082601f83011261399157600080fd5b81356001600160401b038111156139aa576139aa61393e565b6040516139c1601f8301601f191660200182613954565b8181528460208386010111156139d657600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215613a0b57600080fd5b85356001600160401b0380821115613a2257600080fd5b613a2e89838a01613980565b96506020880135955060408801359450606088013593506080880135915080821115613a5957600080fd5b50613a6688828901613980565b9150509295509295909350565b600080600080600060a08688031215613a8b57600080fd5b85356001600160401b03811115613aa157600080fd5b613aad88828901613980565b955050602086013593506040860135613ac58161380a565b94979396509394606081013594506080013592915050565b600060208284031215613aef57600080fd5b81356138b38161380a565b600080600060608486031215613b0f57600080fd5b8335613b1a8161380a565b925060208401356001600160401b0380821115613b3657600080fd5b613b4287838801613980565b93506040860135915080821115613b5857600080fd5b50613b6586828701613980565b9150509250925092565b60006001600160401b03821115613b8857613b8861393e565b5060051b60200190565b600082601f830112613ba357600080fd5b81356020613bb082613b6f565b604051613bbd8282613954565b83815260059390931b8501820192828101915086841115613bdd57600080fd5b8286015b84811015613bf85780358352918301918301613be1565b509695505050505050565b600080600080600060a08688031215613c1b57600080fd5b8535613c268161380a565b94506020860135613c368161380a565b935060408601356001600160401b0380821115613c5257600080fd5b613c5e89838a01613b92565b94506060880135915080821115613c7457600080fd5b613c8089838a01613b92565b93506080880135915080821115613a5957600080fd5b60008060008060008060c08789031215613caf57600080fd5b505084359660208601359650604086013595606081013595506080810135945060a0013592509050565b600082601f830112613cea57600080fd5b81356020613cf782613b6f565b604051613d048282613954565b83815260059390931b8501820192828101915086841115613d2457600080fd5b8286015b84811015613bf8578035613d3b8161380a565b8352918301918301613d28565b60008060008060808587031215613d5e57600080fd5b84356001600160401b0380821115613d7557600080fd5b613d8188838901613cd9565b9550602091508187013581811115613d9857600080fd5b613da489828a01613b92565b955050604087013581811115613db957600080fd5b613dc589828a01613b92565b945050606087013581811115613dda57600080fd5b8701601f81018913613deb57600080fd5b8035613df681613b6f565b604051613e038282613954565b82815260059290921b830185019185810191508b831115613e2357600080fd5b8584015b83811015613e5b57803586811115613e3f5760008081fd5b613e4d8e8983890101613980565b845250918601918601613e27565b50989b979a50959850505050505050565b60008060408385031215613e7f57600080fd5b82356001600160401b0380821115613e9657600080fd5b613ea286838701613cd9565b93506020850135915080821115613eb857600080fd5b50613ec585828601613b92565b9150509250929050565b600081518084526020808501945080840160005b83811015613eff57815187529582019590820190600101613ee3565b509495945050505050565b6020815260006138b36020830184613ecf565b80151581146119fa57600080fd5b600060208284031215613f3d57600080fd5b81356138b381613f1d565b600060208284031215613f5a57600080fd5b81356001600160401b03811115613f7057600080fd5b613f7c84828501613980565b949350505050565b60008060408385031215613f9757600080fd5b50508035926020909101359150565b60008060408385031215613fb957600080fd5b823591506020830135613fcb8161380a565b809150509250929050565b600080600060608486031215613feb57600080fd5b8335613ff68161380a565b925060208401356001600160401b038082111561401257600080fd5b61401e87838801613b92565b9350604086013591508082111561403457600080fd5b50613b6586828701613b92565b6000806040838503121561405457600080fd5b823561405f8161380a565b91506020830135613fcb81613f1d565b6000806040838503121561408257600080fd5b823591506020830135613fcb81613f1d565b6000806000606084860312156140a957600080fd5b833592506020840135915060408401356140c281613f1d565b809150509250925092565b600080604083850312156140e057600080fd5b82356140eb8161380a565b91506020830135613fcb8161380a565b600080600080600060a0868803121561411357600080fd5b853561411e8161380a565b9450602086013561412e8161380a565b9350604086013592506060860135915060808601356001600160401b0381111561415757600080fd5b613a6688828901613980565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806141ac57607f821691505b6020821081036141cc57634e487b7160e01b600052602260045260246000fd5b50919050565b600081516141e48185602086016138d3565b9290920192915050565b600080845481600182811c91508083168061420a57607f831692505b6020808410820361422957634e487b7160e01b86526022600452602486fd5b81801561423d576001811461424e5761427b565b60ff1986168952848901965061427b565b60008b81526020902060005b868110156142735781548b82015290850190830161425a565b505084890196505b505050505050611d3381856141d2565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526019908201527f6964206973206e6f7420616c6c6f77656420746f206d696e7400000000000000604082015260600190565b6020808252600c908201526b3bb937b7339039b4b3b732b960a11b604082015260600190565b6020808252600a90820152690eee4dedcce40d0c2e6d60b31b604082015260600190565b600082516143558184602087016138d3565b9190910192915050565b6020808252600c908201526b185b1c9958591e481d5cd95960a21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156143b5576143b5614385565b500290565b6020808252601a908201527f63616e2774206d696e7420746f20746869732061646472657373000000000000604082015260600190565b60006020828403121561440357600080fd5b81516138b381613f1d565b634e487b7160e01b600052603260045260246000fd5b60006001820161443657614436614385565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60006020828403121561449857600080fd5b5051919050565b6000828210156144b1576144b1614385565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826144db576144db6144b6565b500490565b600082198211156144f3576144f3614385565b500190565b600082614507576145076144b6565b500690565b6bffffffffffffffffffffffff198560601b168152836014820152826034820152600082516145428160548501602087016138d3565b9190910160540195945050505050565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061463c6040830185613ecf565b8281036020840152611d338185613ecf565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061475a908301846138ff565b979650505050505050565b60006020828403121561477757600080fd5b81516138b381613880565b600060033d111561479b5760046000803e5060005160e01c5b90565b600060443d10156147ac5790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156147db57505050505090565b82850191508151818111156147f35750505050505090565b843d870101602082850101111561480d5750505050505090565b61481c60208286010187613954565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061489b90830186613ecf565b82810360608401526148ad8186613ecf565b905082810360808401526148c181856138ff565b98975050505050505050565b634e487b7160e01b600052602160045260246000fdfea26469706673582212205ca00a8afe43474ee3abc6e942c33a3432071dbc4de28b04d59011e62b32917864736f6c634300080d0033
Deployed Bytecode
0x6080604052600436106102c75760003560e01c80638129fc1c11610175578063d82f64c2116100dc578063e985e9c511610095578063f2ab2fc01161006f578063f2ab2fc014610905578063f2fde38b14610978578063f5298aca14610998578063fca3b5aa146109b857600080fd5b8063e985e9c514610889578063ebe41921146108d2578063f242432a146108e557600080fd5b8063d82f64c2146107f7578063d9c4021a1461080a578063dba23e0a1461082a578063e086e5ec1461083f578063e3979e2d14610854578063e8a3d4851461087457600080fd5b8063938e3d7b1161012e578063938e3d7b14610736578063a22cb46514610756578063a91ee0dc14610776578063afdbd49914610796578063ba791492146107b6578063c8c80458146107d757600080fd5b80638129fc1c1461065e5780638322fff2146106735780638a2519a1146106885780638da5cb5b146106a8578063917d009e146106da578063923c235b146106fa57600080fd5b806333f3533b116102345780635faceac8116101ed5780636b7d2470116101c75780636b7d2470146105db5780636c99cb79146105fb578063715018a6146106295780637a32f2911461063e57600080fd5b80635faceac81461055f57806365ecb2c01461057f5780636b20c454146105bb57600080fd5b806333f3533b14610490578063370b8ab3146104b25780634824a26f146104d25780634e1273f4146104f2578063521c27f21461051f57806355f804b31461053f57600080fd5b80631043d2c3116102865780631043d2c3146103c25780631c8e7d2a146103e2578063229a6ce4146104025780632a698bed146104225780632b0c8d3b146104505780632eb2c2d61461047057600080fd5b80624a84cb146102cc578062fdd58e146102ee57806301ffc9a714610321578063035d9e09146103515780630e89341c146103825780630ef5d757146103af575b600080fd5b3480156102d857600080fd5b506102ec6102e736600461381f565b6109d8565b005b3480156102fa57600080fd5b5061030e610309366004613854565b610a6e565b6040519081526020015b60405180910390f35b34801561032d57600080fd5b5061034161033c366004613896565b610b02565b6040519015158152602001610318565b34801561035d57600080fd5b5061034161036c3660046138ba565b6101336020526000908152604090205460ff1681565b34801561038e57600080fd5b506103a261039d3660046138ba565b610b54565b604051610318919061392b565b6102ec6103bd3660046139f3565b610b89565b3480156103ce57600080fd5b506102ec6103dd366004613a73565b610d6e565b3480156103ee57600080fd5b506102ec6103fd36600461381f565b6110d0565b34801561040e57600080fd5b506102ec61041d366004613add565b61117a565b34801561042e57600080fd5b5061030e61043d3660046138ba565b6101346020526000908152604090205481565b34801561045c57600080fd5b506102ec61046b366004613afa565b6111c7565b34801561047c57600080fd5b506102ec61048b366004613c03565b61124b565b34801561049c57600080fd5b5061012f5461034190600160a01b900460ff1681565b3480156104be57600080fd5b506102ec6104cd366004613c96565b6112e2565b3480156104de57600080fd5b506102ec6104ed366004613d48565b611363565b3480156104fe57600080fd5b5061051261050d366004613e6c565b611543565b6040516103189190613f0a565b34801561052b57600080fd5b506102ec61053a366004613f2b565b61166c565b34801561054b57600080fd5b506102ec61055a366004613f48565b6116b5565b34801561056b57600080fd5b506102ec61057a366004613f84565b6116f7565b34801561058b57600080fd5b5061034161059a366004613fa6565b61013660209081526000928352604080842090915290825290205460ff1681565b3480156105c757600080fd5b506102ec6105d6366004613fd6565b611734565b3480156105e757600080fd5b506102ec6105f6366004613854565b611777565b34801561060757600080fd5b5061030e6106163660046138ba565b6101356020526000908152604090205481565b34801561063557600080fd5b506102ec61180b565b34801561064a57600080fd5b506102ec6106593660046138ba565b611841565b34801561066a57600080fd5b506102ec611898565b34801561067f57600080fd5b5061030e600081565b34801561069457600080fd5b506102ec6106a3366004613a73565b6119fd565b3480156106b457600080fd5b5060c9546001600160a01b03165b6040516001600160a01b039091168152602001610318565b3480156106e657600080fd5b5061030e6106f53660046138ba565b611c75565b34801561070657600080fd5b50610341610715366004613f48565b80516020818301810180516101328252928201919093012091525460ff1681565b34801561074257600080fd5b506102ec610751366004613f48565b611d3c565b34801561076257600080fd5b506102ec610771366004614041565b611d7a565b34801561078257600080fd5b506102ec610791366004613add565b611d85565b3480156107a257600080fd5b506102ec6107b1366004613854565b611dd2565b3480156107c257600080fd5b50610138546106c2906001600160a01b031681565b3480156107e357600080fd5b506102ec6107f236600461406f565b611e6d565b6102ec610805366004613a73565b611eb8565b34801561081657600080fd5b506102ec610825366004613f84565b612077565b34801561083657600080fd5b5061030e600181565b34801561084b57600080fd5b506102ec6120b4565b34801561086057600080fd5b506102ec61086f366004614094565b61210a565b34801561088057600080fd5b506103a261216a565b34801561089557600080fd5b506103416108a43660046140cd565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205460ff1690565b6102ec6108e0366004613a73565b6121fd565b3480156108f157600080fd5b506102ec6109003660046140fb565b6125b9565b34801561091157600080fd5b506109506109203660046138ba565b61013760205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a001610318565b34801561098457600080fd5b506102ec610993366004613add565b6125fe565b3480156109a457600080fd5b506102ec6109b336600461381f565b612696565b3480156109c457600080fd5b506102ec6109d3366004613add565b6126d9565b60c9546001600160a01b03163314610a0b5760405162461bcd60e51b8152600401610a0290614163565b60405180910390fd5b6032811115610a4e5760405162461bcd60e51b815260206004820152600f60248201526e1b585e080d4c081c195c881b5a5b9d608a1b6044820152606401610a02565b610a6983838360405180602001604052806000815250612726565b505050565b60006001600160a01b038316610ada5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610a02565b5060009081526065602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610b3357506001600160e01b031982166303a24d0760e21b145b80610b4e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060610130610b6283612832565b604051602001610b739291906141ee565b6040516020818303038152906040529050919050565b600260fb5403610bab5760405162461bcd60e51b8152600401610a029061428b565b600260fb556000838152610133602052604090205460ff16610bdf5760405162461bcd60e51b8152600401610a02906142c2565b610be98486612932565b610c055760405162461bcd60e51b8152600401610a02906142f9565b83610c1233858585612957565b14610c2f5760405162461bcd60e51b8152600401610a029061431f565b61012f54600160a01b900460ff16610c7c5760405162461bcd60e51b815260206004820152601060248201526f1b5a5b9d1a5b99c8191a5cd8589b195960821b6044820152606401610a02565b61013281604051610c8d9190614343565b9081526040519081900360200190205460ff1615610cbd5760405162461bcd60e51b8152600401610a029061435f565b600083815261013460205260409020543490610cd9908461439b565b14610d145760405162461bcd60e51b815260206004820152600b60248201526a77726f6e6720707269636560a81b6044820152606401610a02565b610d2f33848460405180602001604052806000815250612726565b600161013282604051610d429190614343565b908152604051908190036020019020805491151560ff199092169190911790555050600160fb55505050565b600260fb5403610d905760405162461bcd60e51b8152600401610a029061428b565b600260fb556000828152610133602052604090205460ff16610dc45760405162461bcd60e51b8152600401610a02906142c2565b610dce8486612932565b610dea5760405162461bcd60e51b8152600401610a02906142f9565b83610df93385858560016129d3565b14610e165760405162461bcd60e51b8152600401610a029061431f565b6001600160a01b0383163314610e3e5760405162461bcd60e51b8152600401610a02906143ba565b6000828152610136602090815260408083206001600160a01b038716845290915290205460ff1615610eac5760405162461bcd60e51b81526020600482015260176024820152761d5cd95c881a185cc8185b1c9958591e481b5a5b9d1959604a1b6044820152606401610a02565b600082815261013760205260408120549003610f025760405162461bcd60e51b8152602060048201526015602482015274185d58dd1a5bdb88191bd95cdb89dd08195e1a5cdd605a1b6044820152606401610a02565b60008281526101376020526040902060040154600114610f555760405162461bcd60e51b815260206004820152600e60248201526d77726f6e672063757272656e637960901b6044820152606401610a02565b60008281526101376020526040902060020154421015610fa95760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd081cdd185c9d1959081e595d608a1b6044820152606401610a02565b600081610fb584611c75565b610fbf919061439b565b610138546040516323b872dd60e01b8152336004820152306024820152604481018390529192506001600160a01b0316906323b872dd906064015b6020604051808303816000875af1158015611019573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103d91906143f1565b61107b5760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152606401610a02565b61109684848460405180602001604052806000815250612726565b50506000908152610136602090815260408083206001600160a01b03909416835292905220805460ff1916600190811790915560fb555050565b60c9546001600160a01b031633146110fa5760405162461bcd60e51b8152600401610a0290614163565b604051637921219560e11b8152306004820152336024820152604481018390526064810182905260a06084820152600060a48201526001600160a01b0384169063f242432a9060c401600060405180830381600087803b15801561115d57600080fd5b505af1158015611171573d6000803e3d6000fd5b50505050505050565b60c9546001600160a01b031633146111a45760405162461bcd60e51b8152600401610a0290614163565b61013880546001600160a01b0319166001600160a01b0392909216919091179055565b60c9546001600160a01b031633146111f15760405162461bcd60e51b8152600401610a0290614163565b61012d8054336001600160a01b03199182161790915561012e80549091166001600160a01b038516179055815161123090610130906020850190613771565b50805161124590610131906020840190613771565b50505050565b6001600160a01b038516331480611267575061126785336108a4565b6112ce5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610a02565b6112db8585858585612a27565b5050505050565b60c9546001600160a01b0316331461130c5760405162461bcd60e51b8152600401610a0290614163565b6040805160a081018252958652602080870195865286820194855260608701938452608087019283526000978852610137905290952093518455915160018401555160028301555160038201559051600490910155565b82518451146113ad5760405162461bcd60e51b8152602060048201526016602482015275185c9c985e5cc81cda1bdd5b1908189948195c5d585b60521b6044820152606401610a02565b81518451146113fe5760405162461bcd60e51b815260206004820152601860248201527f6172726179732073686f756c6420626520657175616c203200000000000000006044820152606401610a02565b61012d546001600160a01b031633146114635760405162461bcd60e51b815260206004820152602160248201527f6f6e6c79206d696e746572206163636f756e742063616e2063616c6c207468696044820152607360f81b6064820152608401610a02565b6032845111156114b55760405162461bcd60e51b815260206004820152601960248201527f6d617820353020616464726573736573207065722063616c6c000000000000006044820152606401610a02565b60005b84518110156112db576115318582815181106114d6576114d661440e565b60200260200101518483815181106114f0576114f061440e565b602002602001015186848151811061150a5761150a61440e565b60200260200101518585815181106115245761152461440e565b6020026020010151612726565b8061153b81614424565b9150506114b8565b606081518351146115a85760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610a02565b600083516001600160401b038111156115c3576115c361393e565b6040519080825280602002602001820160405280156115ec578160200160208202803683370190505b50905060005b8451811015611664576116378582815181106116105761161061440e565b602002602001015185838151811061162a5761162a61440e565b6020026020010151610a6e565b8282815181106116495761164961440e565b602090810291909101015261165d81614424565b90506115f2565b509392505050565b60c9546001600160a01b031633146116965760405162461bcd60e51b8152600401610a0290614163565b61012f8054911515600160a01b0260ff60a01b19909216919091179055565b60c9546001600160a01b031633146116df5760405162461bcd60e51b8152600401610a0290614163565b80516116f390610130906020840190613771565b5050565b60c9546001600160a01b031633146117215760405162461bcd60e51b8152600401610a0290614163565b6000918252610135602052604090912055565b6001600160a01b038316331480611750575061175083336108a4565b61176c5760405162461bcd60e51b8152600401610a029061443d565b610a69838383612bbe565b60c9546001600160a01b031633146117a15760405162461bcd60e51b8152600401610a0290614163565b604051632142170760e11b8152306004820152336024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b1580156117ef57600080fd5b505af1158015611803573d6000803e3d6000fd5b505050505050565b60c9546001600160a01b031633146118355760405162461bcd60e51b8152600401610a0290614163565b61183f6000612d3d565b565b60c9546001600160a01b0316331461186b5760405162461bcd60e51b8152600401610a0290614163565b60009081526101376020526040812081815560018101829055600281018290556003810182905560040155565b600054610100900460ff166118b35760005460ff16156118b7565b303b155b61191a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a02565b600054610100900460ff1615801561193c576000805461ffff19166101011790555b611944612d8f565b6119d8610130805461195590614198565b80601f016020809104026020016040519081016040528092919081815260200182805461198190614198565b80156119ce5780601f106119a3576101008083540402835291602001916119ce565b820191906000526020600020905b8154815290600101906020018083116119b157829003601f168201915b5050505050612db6565b6119e0612de6565b6119e8612e16565b80156119fa576000805461ff00191690555b50565b600260fb5403611a1f5760405162461bcd60e51b8152600401610a029061428b565b600260fb556000828152610133602052604090205460ff16611a535760405162461bcd60e51b8152600401610a02906142c2565b611a5d8486612932565b611a795760405162461bcd60e51b8152600401610a02906142f9565b83611a883385858560016129d3565b14611aa55760405162461bcd60e51b8152600401610a029061431f565b6001600160a01b0383163314611acd5760405162461bcd60e51b8152600401610a02906143ba565b6000828152610136602090815260408083206001600160a01b038716845290915290205460ff1615611b115760405162461bcd60e51b8152600401610a029061435f565b60008281526101356020526040812054611b2b908361439b565b610138549091506001600160a01b0316611b875760405162461bcd60e51b815260206004820152601d60248201527f67616e6720746f6b656e2061646472657373206973206e6f74207365740000006044820152606401610a02565b610138546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015611bd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf49190614486565b1015611c375760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610a02565b610138546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401610ffa565b600081815261013760209081526040808320815160a081018352815481526001820154938101939093526002810154918301829052600381015460608401526004015460808301528290611cca576000611cd9565b6040820151611cd9904261449f565b905081606001518110611cf157506020015192915050565b6060820151825160009190611d06848361449f565b611d10919061439b565b611d1a91906144cc565b905082602001518111611d31578260200151611d33565b805b95945050505050565b60c9546001600160a01b03163314611d665760405162461bcd60e51b8152600401610a0290614163565b80516116f390610131906020840190613771565b6116f3338383612e45565b60c9546001600160a01b03163314611daf5760405162461bcd60e51b8152600401610a0290614163565b61012f80546001600160a01b0319166001600160a01b0392909216919091179055565b60c9546001600160a01b03163314611dfc5760405162461bcd60e51b8152600401610a0290614163565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015611e49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6991906143f1565b60c9546001600160a01b03163314611e975760405162461bcd60e51b8152600401610a0290614163565b60009182526101336020526040909120805460ff1916911515919091179055565b600260fb5403611eda5760405162461bcd60e51b8152600401610a029061428b565b600260fb556000828152610133602052604090205460ff16611f0e5760405162461bcd60e51b8152600401610a02906142c2565b611f188486612932565b611f345760405162461bcd60e51b8152600401610a02906142f9565b83611f433385858560006129d3565b14611f605760405162461bcd60e51b8152600401610a029061431f565b6001600160a01b0383163314611f885760405162461bcd60e51b8152600401610a02906143ba565b6000828152610136602090815260408083206001600160a01b038716845290915290205460ff1615611fcc5760405162461bcd60e51b8152600401610a029061435f565b600082815261013460205260409020543490611fe8908361439b565b146120235760405162461bcd60e51b815260206004820152600b60248201526a77726f6e6720707269636560a81b6044820152606401610a02565b61203e83838360405180602001604052806000815250612726565b506000908152610136602090815260408083206001600160a01b03909416835292905220805460ff1916600190811790915560fb555050565b60c9546001600160a01b031633146120a15760405162461bcd60e51b8152600401610a0290614163565b6000918252610134602052604090912055565b60c9546001600160a01b031633146120de5760405162461bcd60e51b8152600401610a0290614163565b60405133904780156108fc02916000818181858888f193505050501580156119fa573d6000803e3d6000fd5b60c9546001600160a01b031633146121345760405162461bcd60e51b8152600401610a0290614163565b825b82811161124557600081815261013360205260409020805460ff19168315151790558061216281614424565b915050612136565b6060610131805461217a90614198565b80601f01602080910402602001604051908101604052809291908181526020018280546121a690614198565b80156121f35780601f106121c8576101008083540402835291602001916121f3565b820191906000526020600020905b8154815290600101906020018083116121d657829003601f168201915b5050505050905090565b600260fb540361221f5760405162461bcd60e51b8152600401610a029061428b565b600260fb556000828152610133602052604090205460ff166122535760405162461bcd60e51b8152600401610a02906142c2565b61225d8486612932565b6122795760405162461bcd60e51b8152600401610a02906142f9565b836122883385858560006129d3565b146122a55760405162461bcd60e51b8152600401610a029061431f565b6001600160a01b03831633146122cd5760405162461bcd60e51b8152600401610a02906143ba565b6000828152610136602090815260408083206001600160a01b038716845290915290205460ff161561233b5760405162461bcd60e51b81526020600482015260176024820152761d5cd95c881a185cc8185b1c9958591e481b5a5b9d1959604a1b6044820152606401610a02565b6000828152610137602052604081205490036123915760405162461bcd60e51b8152602060048201526015602482015274185d58dd1a5bdb88191bd95cdb89dd08195e1a5cdd605a1b6044820152606401610a02565b60008281526101376020526040902060040154156123e25760405162461bcd60e51b815260206004820152600e60248201526d77726f6e672063757272656e637960901b6044820152606401610a02565b600082815261013760205260409020600201544210156124365760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd081cdd185c9d1959081e595d608a1b6044820152606401610a02565b60008161244284611c75565b61244c919061439b565b9050803410156124945760405162461bcd60e51b8152602060048201526013602482015272195d1a081d985b1d59481a5b98dbdc9c9958dd606a1b6044820152606401610a02565b6124af84848460405180602001604052806000815250612726565b6000838152610136602090815260408083206001600160a01b03881684529091529020805460ff19166001179055348110156125ac576000336124f2833461449f565b604051600081818185875af1925050503d806000811461252e576040519150601f19603f3d011682016040523d82523d6000602084013e612533565b606091505b50509050806125aa5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a02565b505b5050600160fb5550505050565b6001600160a01b0385163314806125d557506125d585336108a4565b6125f15760405162461bcd60e51b8152600401610a029061443d565b6112db8585858585612f25565b60c9546001600160a01b031633146126285760405162461bcd60e51b8152600401610a0290614163565b6001600160a01b03811661268d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a02565b6119fa81612d3d565b6001600160a01b0383163314806126b257506126b283336108a4565b6126ce5760405162461bcd60e51b8152600401610a029061443d565b610a6983838361303d565b60c9546001600160a01b031633146127035760405162461bcd60e51b8152600401610a0290614163565b61012d80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0384166127865760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610a02565b336127a08160008761279788613143565b6112db88613143565b60008481526065602090815260408083206001600160a01b0389168452909152812080548592906127d29084906144e0565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46112db8160008787878761318e565b6060816000036128595750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612883578061286d81614424565b915061287c9050600a836144cc565b915061285d565b6000816001600160401b0381111561289d5761289d61393e565b6040519080825280601f01601f1916602001820160405280156128c7576020820181803683370190505b5090505b8415611d31576128dc60018361449f565b91506128e9600a866144f8565b6128f49060306144e0565b60f81b8183815181106129095761290961440e565b60200101906001600160f81b031916908160001a90535061292b600a866144cc565b94506128cb565b600061293e83836132e9565b61012e546001600160a01b039182169116149392505050565b6000611d3385858585604051602001612973949392919061450c565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b6040516bffffffffffffffffffffffff19606087811b8216602084015286901b166034820152604881018490526068810183905260888101829052600090612a1d9060a801612973565b9695505050505050565b8151835114612a485760405162461bcd60e51b8152600401610a0290614552565b6001600160a01b038416612a6e5760405162461bcd60e51b8152600401610a029061459a565b3360005b8451811015612b58576000858281518110612a8f57612a8f61440e565b602002602001015190506000858381518110612aad57612aad61440e565b60209081029190910181015160008481526065835260408082206001600160a01b038e168352909352919091205490915081811015612afe5760405162461bcd60e51b8152600401610a02906145df565b60008381526065602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612b3d9084906144e0565b9250508190555050505080612b5190614424565b9050612a72565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612ba8929190614629565b60405180910390a4611803818787878787613305565b6001600160a01b038316612be45760405162461bcd60e51b8152600401610a029061464e565b8051825114612c055760405162461bcd60e51b8152600401610a0290614552565b604080516020810190915260009081905233905b8351811015612cde576000848281518110612c3657612c3661440e565b602002602001015190506000848381518110612c5457612c5461440e565b60209081029190910181015160008481526065835260408082206001600160a01b038c168352909352919091205490915081811015612ca55760405162461bcd60e51b8152600401610a0290614691565b60009283526065602090815260408085206001600160a01b038b1686529091529092209103905580612cd681614424565b915050612c19565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612d2f929190614629565b60405180910390a450505050565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff1661183f5760405162461bcd60e51b8152600401610a02906146d5565b600054610100900460ff16612ddd5760405162461bcd60e51b8152600401610a02906146d5565b6119fa816133c0565b600054610100900460ff16612e0d5760405162461bcd60e51b8152600401610a02906146d5565b61183f33612d3d565b600054610100900460ff16612e3d5760405162461bcd60e51b8152600401610a02906146d5565b61183f6133f0565b816001600160a01b0316836001600160a01b031603612eb85760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610a02565b6001600160a01b03838116600081815260666020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416612f4b5760405162461bcd60e51b8152600401610a029061459a565b33612f5b81878761279788613143565b60008481526065602090815260408083206001600160a01b038a16845290915290205483811015612f9e5760405162461bcd60e51b8152600401610a02906145df565b60008581526065602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612fdd9084906144e0565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461117182888888888861318e565b6001600160a01b0383166130635760405162461bcd60e51b8152600401610a029061464e565b336130938185600061307487613143565b61307d87613143565b5050604080516020810190915260009052505050565b60008381526065602090815260408083206001600160a01b0388168452909152902054828110156130d65760405162461bcd60e51b8152600401610a0290614691565b60008481526065602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061317d5761317d61440e565b602090810291909101015292915050565b6001600160a01b0384163b156118035760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906131d29089908990889088908890600401614720565b6020604051808303816000875af192505050801561320d575060408051601f3d908101601f1916820190925261320a91810190614765565b60015b6132b957613219614782565b806308c379a003613252575061322d61479e565b806132385750613254565b8060405162461bcd60e51b8152600401610a02919061392b565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610a02565b6001600160e01b0319811663f23a6e6160e01b146111715760405162461bcd60e51b8152600401610a0290614827565b60008060006132f8858561341e565b915091506116648161348c565b6001600160a01b0384163b156118035760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190613349908990899088908890889060040161486f565b6020604051808303816000875af1925050508015613384575060408051601f3d908101601f1916820190925261338191810190614765565b60015b61339057613219614782565b6001600160e01b0319811663bc197c8160e01b146111715760405162461bcd60e51b8152600401610a0290614827565b600054610100900460ff166133e75760405162461bcd60e51b8152600401610a02906146d5565b6119fa81613642565b600054610100900460ff166134175760405162461bcd60e51b8152600401610a02906146d5565b600160fb55565b60008082516041036134545760208301516040840151606085015160001a61344887828585613655565b94509450505050613485565b825160400361347d5760208301516040840151613472868383613742565b935093505050613485565b506000905060025b9250929050565b60008160048111156134a0576134a06148cd565b036134a85750565b60018160048111156134bc576134bc6148cd565b036135095760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a02565b600281600481111561351d5761351d6148cd565b0361356a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a02565b600381600481111561357e5761357e6148cd565b036135d65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a02565b60048160048111156135ea576135ea6148cd565b036119fa5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a02565b80516116f3906067906020840190613771565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561368c5750600090506003613739565b8460ff16601b141580156136a457508460ff16601c14155b156136b55750600090506004613739565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613709573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661373257600060019250925050613739565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161376387828885613655565b935093505050935093915050565b82805461377d90614198565b90600052602060002090601f01602090048101928261379f57600085556137e5565b82601f106137b857805160ff19168380011785556137e5565b828001600101855582156137e5579182015b828111156137e55782518255916020019190600101906137ca565b506137f19291506137f5565b5090565b5b808211156137f157600081556001016137f6565b6001600160a01b03811681146119fa57600080fd5b60008060006060848603121561383457600080fd5b833561383f8161380a565b95602085013595506040909401359392505050565b6000806040838503121561386757600080fd5b82356138728161380a565b946020939093013593505050565b6001600160e01b0319811681146119fa57600080fd5b6000602082840312156138a857600080fd5b81356138b381613880565b9392505050565b6000602082840312156138cc57600080fd5b5035919050565b60005b838110156138ee5781810151838201526020016138d6565b838111156112455750506000910152565b600081518084526139178160208601602086016138d3565b601f01601f19169290920160200192915050565b6020815260006138b360208301846138ff565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156139795761397961393e565b6040525050565b600082601f83011261399157600080fd5b81356001600160401b038111156139aa576139aa61393e565b6040516139c1601f8301601f191660200182613954565b8181528460208386010111156139d657600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215613a0b57600080fd5b85356001600160401b0380821115613a2257600080fd5b613a2e89838a01613980565b96506020880135955060408801359450606088013593506080880135915080821115613a5957600080fd5b50613a6688828901613980565b9150509295509295909350565b600080600080600060a08688031215613a8b57600080fd5b85356001600160401b03811115613aa157600080fd5b613aad88828901613980565b955050602086013593506040860135613ac58161380a565b94979396509394606081013594506080013592915050565b600060208284031215613aef57600080fd5b81356138b38161380a565b600080600060608486031215613b0f57600080fd5b8335613b1a8161380a565b925060208401356001600160401b0380821115613b3657600080fd5b613b4287838801613980565b93506040860135915080821115613b5857600080fd5b50613b6586828701613980565b9150509250925092565b60006001600160401b03821115613b8857613b8861393e565b5060051b60200190565b600082601f830112613ba357600080fd5b81356020613bb082613b6f565b604051613bbd8282613954565b83815260059390931b8501820192828101915086841115613bdd57600080fd5b8286015b84811015613bf85780358352918301918301613be1565b509695505050505050565b600080600080600060a08688031215613c1b57600080fd5b8535613c268161380a565b94506020860135613c368161380a565b935060408601356001600160401b0380821115613c5257600080fd5b613c5e89838a01613b92565b94506060880135915080821115613c7457600080fd5b613c8089838a01613b92565b93506080880135915080821115613a5957600080fd5b60008060008060008060c08789031215613caf57600080fd5b505084359660208601359650604086013595606081013595506080810135945060a0013592509050565b600082601f830112613cea57600080fd5b81356020613cf782613b6f565b604051613d048282613954565b83815260059390931b8501820192828101915086841115613d2457600080fd5b8286015b84811015613bf8578035613d3b8161380a565b8352918301918301613d28565b60008060008060808587031215613d5e57600080fd5b84356001600160401b0380821115613d7557600080fd5b613d8188838901613cd9565b9550602091508187013581811115613d9857600080fd5b613da489828a01613b92565b955050604087013581811115613db957600080fd5b613dc589828a01613b92565b945050606087013581811115613dda57600080fd5b8701601f81018913613deb57600080fd5b8035613df681613b6f565b604051613e038282613954565b82815260059290921b830185019185810191508b831115613e2357600080fd5b8584015b83811015613e5b57803586811115613e3f5760008081fd5b613e4d8e8983890101613980565b845250918601918601613e27565b50989b979a50959850505050505050565b60008060408385031215613e7f57600080fd5b82356001600160401b0380821115613e9657600080fd5b613ea286838701613cd9565b93506020850135915080821115613eb857600080fd5b50613ec585828601613b92565b9150509250929050565b600081518084526020808501945080840160005b83811015613eff57815187529582019590820190600101613ee3565b509495945050505050565b6020815260006138b36020830184613ecf565b80151581146119fa57600080fd5b600060208284031215613f3d57600080fd5b81356138b381613f1d565b600060208284031215613f5a57600080fd5b81356001600160401b03811115613f7057600080fd5b613f7c84828501613980565b949350505050565b60008060408385031215613f9757600080fd5b50508035926020909101359150565b60008060408385031215613fb957600080fd5b823591506020830135613fcb8161380a565b809150509250929050565b600080600060608486031215613feb57600080fd5b8335613ff68161380a565b925060208401356001600160401b038082111561401257600080fd5b61401e87838801613b92565b9350604086013591508082111561403457600080fd5b50613b6586828701613b92565b6000806040838503121561405457600080fd5b823561405f8161380a565b91506020830135613fcb81613f1d565b6000806040838503121561408257600080fd5b823591506020830135613fcb81613f1d565b6000806000606084860312156140a957600080fd5b833592506020840135915060408401356140c281613f1d565b809150509250925092565b600080604083850312156140e057600080fd5b82356140eb8161380a565b91506020830135613fcb8161380a565b600080600080600060a0868803121561411357600080fd5b853561411e8161380a565b9450602086013561412e8161380a565b9350604086013592506060860135915060808601356001600160401b0381111561415757600080fd5b613a6688828901613980565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806141ac57607f821691505b6020821081036141cc57634e487b7160e01b600052602260045260246000fd5b50919050565b600081516141e48185602086016138d3565b9290920192915050565b600080845481600182811c91508083168061420a57607f831692505b6020808410820361422957634e487b7160e01b86526022600452602486fd5b81801561423d576001811461424e5761427b565b60ff1986168952848901965061427b565b60008b81526020902060005b868110156142735781548b82015290850190830161425a565b505084890196505b505050505050611d3381856141d2565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526019908201527f6964206973206e6f7420616c6c6f77656420746f206d696e7400000000000000604082015260600190565b6020808252600c908201526b3bb937b7339039b4b3b732b960a11b604082015260600190565b6020808252600a90820152690eee4dedcce40d0c2e6d60b31b604082015260600190565b600082516143558184602087016138d3565b9190910192915050565b6020808252600c908201526b185b1c9958591e481d5cd95960a21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156143b5576143b5614385565b500290565b6020808252601a908201527f63616e2774206d696e7420746f20746869732061646472657373000000000000604082015260600190565b60006020828403121561440357600080fd5b81516138b381613f1d565b634e487b7160e01b600052603260045260246000fd5b60006001820161443657614436614385565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60006020828403121561449857600080fd5b5051919050565b6000828210156144b1576144b1614385565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826144db576144db6144b6565b500490565b600082198211156144f3576144f3614385565b500190565b600082614507576145076144b6565b500690565b6bffffffffffffffffffffffff198560601b168152836014820152826034820152600082516145428160548501602087016138d3565b9190910160540195945050505050565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061463c6040830185613ecf565b8281036020840152611d338185613ecf565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061475a908301846138ff565b979650505050505050565b60006020828403121561477757600080fd5b81516138b381613880565b600060033d111561479b5760046000803e5060005160e01c5b90565b600060443d10156147ac5790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156147db57505050505090565b82850191508151818111156147f35750505050505090565b843d870101602082850101111561480d5750505050505090565b61481c60208286010187613954565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061489b90830186613ecf565b82810360608401526148ad8186613ecf565b905082810360808401526148c181856138ff565b98975050505050505050565b634e487b7160e01b600052602160045260246000fdfea26469706673582212205ca00a8afe43474ee3abc6e942c33a3432071dbc4de28b04d59011e62b32917864736f6c634300080d0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.