Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60a06040 | 17501592 | 432 days ago | IN | 0 ETH | 0.05267557 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
Phygital__v1_3
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "./Phygital__v1_2.sol"; import "../signVerifierRegistry/ISignVerifierRegistry.sol"; contract Phygital__v1_3 is Phygital__v1_2 { using ECDSA for bytes32; event SignVerifierRegistryUpdated(address indexed signVerifierRegistry, address indexed oldSignVerifierRegistry); event SignVerifierIdUpdated(bytes32 indexed signVerifierId, bytes32 indexed oldSignVerifierId); // Address of registry that resolves the signVerifier ISignVerifierRegistry public signVerifierRegistry; bytes32 public signVerifierId; /// @custom:oz-upgrades-unsafe-allow constructor constructor() {} // Overidden to guard against which users can access function _authorizeUpgrade(address newImplementation) internal virtual override onlyOwner {} // Phygital__v1_2 => Phygital__v1_3 upgrade initializer function upgradeTo__v1_3(address _signVerifierRegistry, bytes32 _signVerifierId) public onlyOwner upgradeVersion(3) { setSignVerifierRegistry(_signVerifierRegistry); setSignVerifierId(_signVerifierId); } // Deploying Phygital__v1_3 initializer function initialize__v1_3( string memory _name, string memory _symbol, address _signVerifierRegistry, bytes32 _signVerifierId ) public initializer { Phygital__v1_2.initialize__v1_2(_name, _symbol); upgradeTo__v1_3(_signVerifierRegistry, _signVerifierId); } // SignVerifierRegistry /** * @notice Updates the sign verifier registry address * @param _signVerifierRegistry The address the new registry * @dev Requires the DEFAULT_ADMIN_ROLE to call */ function setSignVerifierRegistry(address _signVerifierRegistry) public onlyOwner { require(_signVerifierRegistry != address(0), "_signVerifierRegistry cannot be the zero address"); require( IERC165(_signVerifierRegistry).supportsInterface(type(ISignVerifierRegistry).interfaceId), "_signVerifierRegistry does not implement ISignVerifierRegistry" ); address oldSignVerifierRegistry = address(signVerifierRegistry); signVerifierRegistry = ISignVerifierRegistry(_signVerifierRegistry); emit SignVerifierRegistryUpdated(_signVerifierRegistry, oldSignVerifierRegistry); } /** * @notice Updates the ID of the sign verifier * @dev Requires the DEFAULT_ADMIN_ROLE to call * @param _signVerifierId The ID of the new sign verifier */ function setSignVerifierId(bytes32 _signVerifierId) public onlyOwner { require(_signVerifierId != bytes32(0), "_signVerifierId cannot be the zero ID"); bytes32 oldSignVerifierId = signVerifierId; signVerifierId = _signVerifierId; emit SignVerifierIdUpdated(_signVerifierId, oldSignVerifierId); } /** * @notice Returns the address of the sign verifier */ function getSignVerifier() public view override returns (address) { address signVerifier = signVerifierRegistry.get(signVerifierId); require(signVerifier != address(0), "cannot use zero address as sign verifier"); return signVerifier; } // Updated functions to use the signVerifier getter function claimNFT(bytes memory sig, uint256 blockExpiry, address recipient, uint256 tokenId) public virtual override { bytes32 message = getClaimSigningHash(blockExpiry, recipient, tokenId).toEthSignedMessageHash(); require(ECDSA.recover(message, sig) == getSignVerifier(), "Permission to call this function failed"); require(block.number < blockExpiry, "Sig expired"); address from = ownerOf(tokenId); require(from != address(0)); claimNonces[recipient]++; _safeTransfer(from, recipient, tokenId, ""); } function mintNFT(bytes memory sig, uint256 blockExpiry, address recipient, uint256 tokenId) public virtual override { bytes32 message = getClaimSigningHash(blockExpiry, recipient, tokenId).toEthSignedMessageHash(); require(ECDSA.recover(message, sig) == getSignVerifier(), "Permission to call this function failed"); require(block.number < blockExpiry, "Sig expired"); claimNonces[recipient]++; _safeMint(recipient, tokenId); } function getBatchClaimSigningHash( uint256 blockExpiry, address recipient, uint256 startTokenId, uint256 quantity ) public view virtual returns (bytes32) { return keccak256( abi.encodePacked(address(this), blockExpiry, recipient, startTokenId, quantity, claimNonces[recipient]) ); } /** * @notice Mint a batch of tokens with a valid signature * @dev For transaction relayers to mint */ function mintBatchWithSig( bytes memory sig, uint256 blockExpiry, address recipient, uint256 startTokenId, uint256 quantity ) public virtual { require(quantity > 0, "Must mint at least one token"); bytes32 message = getBatchClaimSigningHash(blockExpiry, recipient, startTokenId, quantity) .toEthSignedMessageHash(); require(ECDSA.recover(message, sig) == getSignVerifier(), "Permission to call this function failed"); require(block.number < blockExpiry, "Sig expired"); claimNonces[recipient]++; for (uint256 i = startTokenId; i < startTokenId + quantity; i++) { _safeMint(recipient, i); } } /** * @notice Disables the old signVerifier setter * @dev Behavior replaced by signVerifierRegistry */ function setSignVerifier(address verifier) external virtual override onlyOwner { revert("signVerifier is now set by the signVerifierRegistry"); } // Revert for ERC721 transfer and approval functions /** * @notice transferFrom has been overriden to make it useless * @dev Behavior replaced by pull mechanism in claimNFT */ function transferFrom(address _from, address _to, uint256 _tokenId) public virtual override { revert("ERC721 public transfer functions are not allowed"); } /** * @notice safeTransferFrom has been overriden to make it useless * @dev Behavior replaced by pull mechanism in claimNFT */ function safeTransferFrom(address _from, address _to, uint256 _tokenId) public virtual override { revert("ERC721 public transfer functions are not allowed"); } /** * @notice safeTransferFrom has been overriden to make it useless * @dev Behavior replaced by pull mechanism in claimNFT */ function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes memory _data) public virtual override { revert("ERC721 public transfer functions are not allowed"); } /** * @notice approve has been overriden to make it useless * @dev Public transfer functions have been replaced by pull mechanism in claimNFT so approvals are not needed anymore */ function approve(address to, uint256 tokenId) public virtual override { revert("ERC721 public approval functions are not allowed"); } /** * @notice setApprovalForAll has been overriden to make it useless * @dev Public transfer functions have been replaced by pull mechanism in claimNFT so approvals are not needed anymore */ function setApprovalForAll(address operator, bool approved) public virtual override { revert("ERC721 public approval functions are not allowed"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "./Phygital__v1_1.sol"; contract Phygital__v1_2 is Phygital__v1_1 { using ECDSA for bytes32; /// @custom:oz-upgrades-unsafe-allow constructor constructor() { initialize("", ""); } modifier upgradeVersion(uint16 upgradeToVersion) { require( upgradeToVersion - minorVersion == 1 || (minorVersion == 0 && upgradeToVersion == 2), "Must be at the minor version prior to what is being upgraded to" ); _; minorVersion = upgradeToVersion; } // Overidden to guard against which users can access function _authorizeUpgrade(address newImplementation) internal virtual override onlyOwner {} // Phygital__v1_1 => Phygital__v1_2 upgrade initializer function upgradeTo__v1_2() public onlyOwner upgradeVersion(2) {} // Deploying Phygital__v1_2 initializer function initialize__v1_2(string memory _name, string memory _symbol) public initializer { Phygital__v1_1.initialize__v1_1(_name, _symbol); upgradeTo__v1_2(); } function mintBatch(address to, uint256[] calldata tokenIds) external virtual onlyOwner { for (uint256 i = 0; i < tokenIds.length; ++i) { _mint(to, tokenIds[i]); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; interface ISignVerifierRegistry is IERC165 { /** * @notice Emitted upon the registration of `signVerifier` to a previously unregistered ID `id`. */ event Register(bytes32 id, address signVerifier); /** * @notice Emitted upon the update of `signVerifier` to a previously unregistered ID `id`, replacing `oldSignVerifier`. */ event Update(bytes32 id, address signVerifier, address oldSignVerifier); /** * @notice Registers `signVerifier` to `id`, with the registrant set as the admin of `id`. * @dev Does not allow updating of an existing ID, or registering an ID that matches the admin role. */ function register(bytes32 id, address signVerifier) external; /** * @notice Updates the sign verifier for `id` to `signVerifier`. * @dev Allows for the signVerifier to be the zero address, which can be dangerous but is a way of invalidating signatures en masse if required. */ function update(bytes32 id, address signVerifier) external; /** * @notice Returns the address of the sign verifier registered to `id`. * @dev Reverts if `id` has not been registered yet */ function get(bytes32 id) external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "./Phygital__v1_0.sol"; contract Phygital__v1_1 is Phygital__v1_0 { using ECDSA for bytes32; uint16 public minorVersion; /// @custom:oz-upgrades-unsafe-allow constructor constructor() {} // Overidden to guard against which users can access function _authorizeUpgrade(address newImplementation) internal virtual override onlyOwner {} // Deploying Phygital__v1_1 initializer function initialize__v1_1(string memory _name, string memory _symbol) public initializer { Phygital__v1_0.initialize(_name, _symbol); } function mintNFT( bytes memory sig, uint256 blockExpiry, address recipient, uint256 tokenId ) public virtual { bytes32 message = getClaimSigningHash(blockExpiry, recipient, tokenId).toEthSignedMessageHash(); require(ECDSA.recover(message, sig) == signVerifier, "Permission to call this function failed"); require(block.number < blockExpiry, "Sig expired"); claimNonces[recipient]++; _safeMint(recipient, tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; contract Phygital__v1_0 is Initializable, ERC721Upgradeable, OwnableUpgradeable, UUPSUpgradeable { using ECDSA for bytes32; address public signVerifier; string public baseURI; mapping(address => uint256) public claimNonces; /// @custom:oz-upgrades-unsafe-allow constructor constructor() {} function initialize(string memory name, string memory symbol) public initializer { __ERC721_init(name, symbol); __UUPSUpgradeable_init(); __Ownable_init(); signVerifier = 0xF504941EF7FF8f24DC0063779EEb3fB12bAc8ab7; baseURI = "https://iyk.app/api/metadata/"; } // Overidden to guard against which users can access function _authorizeUpgrade(address newImplementation) internal virtual override onlyOwner {} function getClaimNonce(address recipient) external view virtual returns (uint256) { return claimNonces[recipient]; } function getClaimSigningHash( uint256 blockExpiry, address recipient, uint256 tokenId ) public view virtual returns (bytes32) { return keccak256(abi.encodePacked(blockExpiry, recipient, tokenId, address(this), claimNonces[recipient])); } function getSignVerifier() external view virtual returns (address) { return signVerifier; } function setSignVerifier(address verifier) external virtual onlyOwner { signVerifier = verifier; } function setBaseURI(string memory uri) external virtual onlyOwner { baseURI = uri; } function mint(address recipient, uint256 tokenId) external virtual onlyOwner { _safeMint(recipient, tokenId); } function claimNFT( bytes memory sig, uint256 blockExpiry, address recipient, uint256 tokenId ) public virtual { bytes32 message = getClaimSigningHash(blockExpiry, recipient, tokenId).toEthSignedMessageHash(); require(ECDSA.recover(message, sig) == signVerifier, "Permission to call this function failed"); require(block.number < blockExpiry, "Sig expired"); address from = ownerOf(tokenId); require(from != address(0)); claimNonces[recipient]++; _safeTransfer(from, recipient, tokenId, ""); } // Override transfer from functions and make them useless function transferFrom( address from, address to, uint256 tokenId ) public virtual override {} function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override {} function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override {} function _baseURI() internal view virtual override returns (string memory) { return baseURI; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721Upgradeable.sol"; import "./IERC721ReceiverUpgradeable.sol"; import "./extensions/IERC721MetadataUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/StringsUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721Upgradeable.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721Upgradeable.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721Upgradeable.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId); } /** * @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, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @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[44] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (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 = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // 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 (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) (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.0; import "../../interfaces/draft-IERC1822Upgradeable.sol"; import "../ERC1967/ERC1967UpgradeUpgradeable.sol"; import "./Initializable.sol"; /** * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. * * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing * `UUPSUpgradeable` with a custom implementation of upgrades. * * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. * * _Available since v4.1._ */ abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable { function __UUPSUpgradeable_init() internal onlyInitializing { } function __UUPSUpgradeable_init_unchained() internal onlyInitializing { } /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment address private immutable __self = address(this); /** * @dev Check that the execution is being performed through a delegatecall call and that the execution context is * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to * fail. */ modifier onlyProxy() { require(address(this) != __self, "Function must be called through delegatecall"); require(_getImplementation() == __self, "Function must be called through active proxy"); _; } /** * @dev Check that the execution is not being performed through a delegate call. This allows a function to be * callable on the implementing contract but not through proxies. */ modifier notDelegated() { require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall"); _; } /** * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the * implementation. It is used to validate that the this implementation remains valid after an upgrade. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier. */ function proxiableUUID() external view virtual override notDelegated returns (bytes32) { return _IMPLEMENTATION_SLOT; } /** * @dev Upgrade the implementation of the proxy to `newImplementation`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeTo(address newImplementation) external virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, new bytes(0), false); } /** * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call * encoded in `data`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, data, true); } /** * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by * {upgradeTo} and {upgradeToAndCall}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeUpgrade(address) internal override onlyOwner {} * ``` */ function _authorizeUpgrade(address newImplementation) internal virtual; /** * @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 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @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/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library 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 (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 v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./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); }
// 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 (last updated v4.5.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.0; /** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */ interface IERC1822ProxiableUpgradeable { /** * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation * address. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. */ function proxiableUUID() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; import "../beacon/IBeaconUpgradeable.sol"; import "../../interfaces/draft-IERC1822Upgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/StorageSlotUpgradeable.sol"; import "../utils/Initializable.sol"; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ * * @custom:oz-upgrades-unsafe-allow delegatecall */ abstract contract ERC1967UpgradeUpgradeable is Initializable { function __ERC1967Upgrade_init() internal onlyInitializing { } function __ERC1967Upgrade_init_unchained() internal onlyInitializing { } // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall( address newImplementation, bytes memory data, bool forceCall ) internal { _upgradeTo(newImplementation); if (data.length > 0 || forceCall) { _functionDelegateCall(newImplementation, data); } } /** * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCallUUPS( address newImplementation, bytes memory data, bool forceCall ) internal { // Upgrades from old implementations will perform a rollback test. This test requires the new // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing // this special case will break upgrade paths from old UUPS implementation to new ones. if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) { _setImplementation(newImplementation); } else { try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) { require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID"); } catch { revert("ERC1967Upgrade: new implementation is not UUPS"); } _upgradeToAndCall(newImplementation, data, forceCall); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Returns the current admin. */ function _getAdmin() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { require(newAdmin != address(0), "ERC1967: new admin is the zero address"); StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _changeAdmin(address newAdmin) internal { emit AdminChanged(_getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor. */ bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Emitted when the beacon is upgraded. */ event BeaconUpgraded(address indexed beacon); /** * @dev Returns the current beacon. */ function _getBeacon() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon; } /** * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). * * Emits a {BeaconUpgraded} event. */ function _upgradeBeaconToAndCall( address newBeacon, bytes memory data, bool forceCall ) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0 || forceCall) { _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data); } } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function _functionDelegateCall(address target, bytes memory data) private returns (bytes memory) { require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed"); } /** * @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 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeaconUpgradeable { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol) pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ``` * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ */ library StorageSlotUpgradeable { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { assembly { r.slot := slot } } }
// 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); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","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":"bytes32","name":"signVerifierId","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"oldSignVerifierId","type":"bytes32"}],"name":"SignVerifierIdUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"signVerifierRegistry","type":"address"},{"indexed":true,"internalType":"address","name":"oldSignVerifierRegistry","type":"address"}],"name":"SignVerifierRegistryUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"sig","type":"bytes"},{"internalType":"uint256","name":"blockExpiry","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimNonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockExpiry","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"startTokenId","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"getBatchClaimSigningHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"getClaimNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockExpiry","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getClaimSigningHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSignVerifier","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"initialize__v1_1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"initialize__v1_2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_signVerifierRegistry","type":"address"},{"internalType":"bytes32","name":"_signVerifierId","type":"bytes32"}],"name":"initialize__v1_3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minorVersion","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"sig","type":"bytes"},{"internalType":"uint256","name":"blockExpiry","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"startTokenId","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintBatchWithSig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"sig","type":"bytes"},{"internalType":"uint256","name":"blockExpiry","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"verifier","type":"address"}],"name":"setSignVerifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_signVerifierId","type":"bytes32"}],"name":"setSignVerifierId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signVerifierRegistry","type":"address"}],"name":"setSignVerifierRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signVerifier","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"signVerifierId","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"signVerifierRegistry","outputs":[{"internalType":"contract ISignVerifierRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"upgradeTo__v1_2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signVerifierRegistry","type":"address"},{"internalType":"bytes32","name":"_signVerifierId","type":"bytes32"}],"name":"upgradeTo__v1_3","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a0604052306080523480156200001557600080fd5b506040805160208082018352600080835283519182019093529182526200003c9162000042565b62000516565b600054610100900460ff166200005f5760005460ff161562000069565b620000696200019c565b620000d25760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600054610100900460ff16158015620000f5576000805461ffff19166101011790555b620001018383620001ba565b6200010b62000226565b6200011562000284565b61012d80546001600160a01b03191673f504941ef7ff8f24dc0063779eeb3fb12bac8ab717905560408051808201909152601d8082527f68747470733a2f2f69796b2e6170702f6170692f6d657461646174612f0000006020909201918252620001839161012e9162000433565b50801562000197576000805461ff00191690555b505050565b6000620001b430620002ea60201b6200239b1760201c565b15905090565b600054610100900460ff16620002165760405162461bcd60e51b815260206004820152602b6024820152600080516020620043af83398151915260448201526a6e697469616c697a696e6760a81b6064820152608401620000c9565b620002228282620002f9565b5050565b600054610100900460ff16620002825760405162461bcd60e51b815260206004820152602b6024820152600080516020620043af83398151915260448201526a6e697469616c697a696e6760a81b6064820152608401620000c9565b565b600054610100900460ff16620002e05760405162461bcd60e51b815260206004820152602b6024820152600080516020620043af83398151915260448201526a6e697469616c697a696e6760a81b6064820152608401620000c9565b6200028262000380565b6001600160a01b03163b151590565b600054610100900460ff16620003555760405162461bcd60e51b815260206004820152602b6024820152600080516020620043af83398151915260448201526a6e697469616c697a696e6760a81b6064820152608401620000c9565b81516200036a90606590602085019062000433565b5080516200019790606690602084019062000433565b600054610100900460ff16620003dc5760405162461bcd60e51b815260206004820152602b6024820152600080516020620043af83398151915260448201526a6e697469616c697a696e6760a81b6064820152608401620000c9565b6200028233609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200044190620004d9565b90600052602060002090601f016020900481019282620004655760008555620004b0565b82601f106200048057805160ff1916838001178555620004b0565b82800160010185558215620004b0579182015b82811115620004b057825182559160200191906001019062000493565b50620004be929150620004c2565b5090565b5b80821115620004be5760008155600101620004c3565b600181811c90821680620004ee57607f821691505b602082108114156200051057634e487b7160e01b600052602260045260246000fd5b50919050565b608051613e616200054e60003960008181610d2701528181610dac0152818161103b015281816110c001526111a60152613e616000f3fe6080604052600436106102e75760003560e01c806375ceb34111610184578063a6ea1025116100d6578063d77079031161008a578063e985e9c511610064578063e985e9c514610803578063f061ab261461084c578063f2fde38b1461086c57600080fd5b8063d77079031461077e578063db6c7d3e146107b5578063e8649f58146107e357600080fd5b8063b88d4fde116100bb578063b88d4fde14610723578063bef3bd291461073e578063c87b56dd1461075e57600080fd5b8063a6ea1025146106e3578063ab6392081461070357600080fd5b80638bb86022116101385780639810c4a4116101125780639810c4a414610691578063a22cb465146106a8578063a2c54bdd146106c357600080fd5b80638bb86022146106375780638da5cb5b1461065e57806395d89b411461067c57600080fd5b8063808271a211610169578063808271a2146105d7578063818d3bfc146105f7578063822fc7d41461061757600080fd5b806375ceb341146105a25780637b86073e146105c257600080fd5b80634f1ef2861161023d578063683e78d7116101f157806370a08231116101cb57806370a082311461053e578063715018a61461055e5780637436f3dc1461057357600080fd5b8063683e78d7146104e857806369933718146105095780636c0360eb1461052957600080fd5b8063540a00fb11610222578063540a00fb1461049357806355f804b3146104a85780636352211e146104c857600080fd5b80634f1ef2861461045d57806352d1902d1461047057600080fd5b806323b872dd1161029f57806340c10f191161027957806340c10f191461041d57806342842e0e146103bd5780634cd88b761461043d57600080fd5b806323b872dd146103bd578063356d9b7b146103dd5780633659cfe6146103fd57600080fd5b8063081812fc116102d0578063081812fc14610343578063095ea7b31461037b5780630aa058861461039d57600080fd5b806301ffc9a7146102ec57806306fdde0314610321575b600080fd5b3480156102f857600080fd5b5061030c6103073660046135fc565b61088c565b60405190151581526020015b60405180910390f35b34801561032d57600080fd5b50610336610910565b6040516103189190613671565b34801561034f57600080fd5b5061036361035e366004613684565b6109a2565b6040516001600160a01b039091168152602001610318565b34801561038757600080fd5b5061039b6103963660046136b2565b610a4d565b005b3480156103a957600080fd5b5061039b6103b83660046136b2565b610abb565b3480156103c957600080fd5b5061039b6103d83660046136de565b610bdd565b3480156103e957600080fd5b5061039b6103f83660046137c2565b610c4b565b34801561040957600080fd5b5061039b610418366004613840565b610d1c565b34801561042957600080fd5b5061039b6104383660046136b2565b610e98565b34801561044957600080fd5b5061039b61045836600461385d565b610eee565b61039b61046b3660046138c1565b611030565b34801561047c57600080fd5b50610485611199565b604051908152602001610318565b34801561049f57600080fd5b5061039b61125e565b3480156104b457600080fd5b5061039b6104c3366004613907565b61136c565b3480156104d457600080fd5b506103636104e3366004613684565b6113c8565b3480156104f457600080fd5b5061012d54610363906001600160a01b031681565b34801561051557600080fd5b5061039b61052436600461385d565b611453565b34801561053557600080fd5b50610336611517565b34801561054a57600080fd5b50610485610559366004613840565b6115a6565b34801561056a57600080fd5b5061039b611640565b34801561057f57600080fd5b506101305461058f9061ffff1681565b60405161ffff9091168152602001610318565b3480156105ae57600080fd5b5061039b6105bd36600461393c565b611694565b3480156105ce57600080fd5b5061036361171f565b3480156105e357600080fd5b5061039b6105f23660046139c4565b611838565b34801561060357600080fd5b50610485610612366004613a2f565b611a0f565b34801561062357600080fd5b5061039b610632366004613a6c565b611a8e565b34801561064357600080fd5b5061013054610363906201000090046001600160a01b031681565b34801561066a57600080fd5b506097546001600160a01b0316610363565b34801561068857600080fd5b50610336611b92565b34801561069d57600080fd5b506104856101315481565b3480156106b457600080fd5b5061039b610396366004613acb565b3480156106cf57600080fd5b5061039b6106de36600461385d565b611ba1565b3480156106ef57600080fd5b5061039b6106fe366004613a6c565b611c57565b34801561070f57600080fd5b5061048561071e366004613b04565b611d94565b34801561072f57600080fd5b5061039b6103d8366004613b2b565b34801561074a57600080fd5b5061039b610759366004613840565b611e09565b34801561076a57600080fd5b50610336610779366004613684565b61203b565b34801561078a57600080fd5b50610485610799366004613840565b6001600160a01b0316600090815261012f602052604090205490565b3480156107c157600080fd5b506104856107d0366004613840565b61012f6020526000908152604090205481565b3480156107ef57600080fd5b5061039b6107fe366004613840565b612123565b34801561080f57600080fd5b5061030c61081e366004613b97565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561085857600080fd5b5061039b610867366004613684565b6121d9565b34801561087857600080fd5b5061039b610887366004613840565b6122ce565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806108ef57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061090a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606065805461091f90613bc5565b80601f016020809104026020016040519081016040528092919081815260200182805461094b90613bc5565b80156109985780601f1061096d57610100808354040283529160200191610998565b820191906000526020600020905b81548152906001019060200180831161097b57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b0316610a315760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b60405162461bcd60e51b815260206004820152603060248201527f455243373231207075626c696320617070726f76616c2066756e6374696f6e7360448201527f20617265206e6f7420616c6c6f776564000000000000000000000000000000006064820152608401610a28565b6097546001600160a01b03163314610b035760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b61013054600390610b189061ffff1682613c16565b61ffff1660011480610b3e57506101305461ffff16158015610b3e57508061ffff166002145b610bb05760405162461bcd60e51b815260206004820152603f60248201527f4d75737420626520617420746865206d696e6f722076657273696f6e2070726960448201527f6f7220746f2077686174206973206265696e6720757067726164656420746f006064820152608401610a28565b610bb983611e09565b610bc2826121d9565b610130805461ffff191661ffff929092169190911790555050565b60405162461bcd60e51b815260206004820152603060248201527f455243373231207075626c6963207472616e736665722066756e6374696f6e7360448201527f20617265206e6f7420616c6c6f776564000000000000000000000000000000006064820152608401610a28565b600054610100900460ff16610c665760005460ff1615610c6a565b303b155b610ccd5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a28565b600054610100900460ff16158015610cef576000805461ffff19166101011790555b610cf98585611ba1565b610d038383610abb565b8015610d15576000805461ff00191690555b5050505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610daa5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610a28565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610e057f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614610e705760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610a28565b610e79816123aa565b60408051600080825260208201909252610e95918391906123f2565b50565b6097546001600160a01b03163314610ee05760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b610eea8282612592565b5050565b600054610100900460ff16610f095760005460ff1615610f0d565b303b155b610f705760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a28565b600054610100900460ff16158015610f92576000805461ffff19166101011790555b610f9c83836125ac565b610fa4612621565b610fac61268c565b61012d80546001600160a01b03191673f504941ef7ff8f24dc0063779eeb3fb12bac8ab717905560408051808201909152601d8082527f68747470733a2f2f69796b2e6170702f6170692f6d657461646174612f00000060209092019182526110189161012e9161354d565b50801561102b576000805461ff00191690555b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156110be5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610a28565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166111197f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b0316146111845760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610a28565b61118d826123aa565b610eea828260016123f2565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112395760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610a28565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6097546001600160a01b031633146112a65760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b610130546002906112bb9061ffff1682613c16565b61ffff16600114806112e157506101305461ffff161580156112e157508061ffff166002145b6113535760405162461bcd60e51b815260206004820152603f60248201527f4d75737420626520617420746865206d696e6f722076657273696f6e2070726960448201527f6f7220746f2077686174206973206265696e6720757067726164656420746f006064820152608401610a28565b610130805461ffff191661ffff92909216919091179055565b6097546001600160a01b031633146113b45760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b8051610eea9061012e90602084019061354d565b6000818152606760205260408120546001600160a01b03168061090a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a28565b600054610100900460ff1661146e5760005460ff1615611472565b303b155b6114d55760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a28565b600054610100900460ff161580156114f7576000805461ffff19166101011790555b6115018383610eee565b801561102b576000805461ff0019169055505050565b61012e805461152590613bc5565b80601f016020809104026020016040519081016040528092919081815260200182805461155190613bc5565b801561159e5780601f106115735761010080835404028352916020019161159e565b820191906000526020600020905b81548152906001019060200180831161158157829003601f168201915b505050505081565b60006001600160a01b0382166116245760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a28565b506001600160a01b031660009081526068602052604090205490565b6097546001600160a01b031633146116885760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b61169260006126ff565b565b6097546001600160a01b031633146116dc5760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b60005b8181101561171957611709848484848181106116fd576116fd613c39565b90506020020135612751565b61171281613c4f565b90506116df565b50505050565b61013054610131546040517f8eaa6ac000000000000000000000000000000000000000000000000000000000815260048101919091526000918291620100009091046001600160a01b031690638eaa6ac090602401602060405180830381865afa158015611791573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b59190613c6a565b90506001600160a01b0381166118335760405162461bcd60e51b815260206004820152602860248201527f63616e6e6f7420757365207a65726f2061646472657373206173207369676e2060448201527f76657269666965720000000000000000000000000000000000000000000000006064820152608401610a28565b919050565b600081116118885760405162461bcd60e51b815260206004820152601c60248201527f4d757374206d696e74206174206c65617374206f6e6520746f6b656e000000006044820152606401610a28565b60006118ec61189986868686611a0f565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90506118f661171f565b6001600160a01b03166119098288612893565b6001600160a01b03161461196f5760405162461bcd60e51b815260206004820152602760248201527f5065726d697373696f6e20746f2063616c6c20746869732066756e6374696f6e6044820152660819985a5b195960ca1b6064820152608401610a28565b8443106119ac5760405162461bcd60e51b815260206004820152600b60248201526a14da59c8195e1c1a5c995960aa1b6044820152606401610a28565b6001600160a01b038416600090815261012f602052604081208054916119d183613c4f565b909155508390505b6119e38385613c87565b811015611a06576119f48582612592565b806119fe81613c4f565b9150506119d9565b50505050505050565b6001600160a01b038316600090815261012f60209081526040918290205482516bffffffffffffffffffffffff1930606090811b821683860152603483018a905288901b166054820152606881018690526088810185905260a8808201929092528351808203909201825260c80190925281519101205b949350505050565b6000611a9e611899858585611d94565b9050611aa861171f565b6001600160a01b0316611abb8287612893565b6001600160a01b031614611b215760405162461bcd60e51b815260206004820152602760248201527f5065726d697373696f6e20746f2063616c6c20746869732066756e6374696f6e6044820152660819985a5b195960ca1b6064820152608401610a28565b834310611b5e5760405162461bcd60e51b815260206004820152600b60248201526a14da59c8195e1c1a5c995960aa1b6044820152606401610a28565b6001600160a01b038316600090815261012f60205260408120805491611b8383613c4f565b9190505550610d158383612592565b60606066805461091f90613bc5565b600054610100900460ff16611bbc5760005460ff1615611bc0565b303b155b611c235760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a28565b600054610100900460ff16158015611c45576000805461ffff19166101011790555b611c4f8383611453565b61150161125e565b6000611c67611899858585611d94565b9050611c7161171f565b6001600160a01b0316611c848287612893565b6001600160a01b031614611cea5760405162461bcd60e51b815260206004820152602760248201527f5065726d697373696f6e20746f2063616c6c20746869732066756e6374696f6e6044820152660819985a5b195960ca1b6064820152608401610a28565b834310611d275760405162461bcd60e51b815260206004820152600b60248201526a14da59c8195e1c1a5c995960aa1b6044820152606401610a28565b6000611d32836113c8565b90506001600160a01b038116611d4757600080fd5b6001600160a01b038416600090815261012f60205260408120805491611d6c83613c4f565b9190505550611d8c818585604051806020016040528060008152506128b7565b505050505050565b6001600160a01b038216600090815261012f60209081526040918290205482518083018790526bffffffffffffffffffffffff19606087811b8216838701526054830187905230901b1660748201526088808201929092528351808203909201825260a80190925281519101205b9392505050565b6097546001600160a01b03163314611e515760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b6001600160a01b038116611ecd5760405162461bcd60e51b815260206004820152603060248201527f5f7369676e566572696669657252656769737472792063616e6e6f742062652060448201527f746865207a65726f2061646472657373000000000000000000000000000000006064820152608401610a28565b6040516301ffc9a760e01b81527f1668c2a90000000000000000000000000000000000000000000000000000000060048201526001600160a01b038216906301ffc9a790602401602060405180830381865afa158015611f31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f559190613c9f565b611fc75760405162461bcd60e51b815260206004820152603e60248201527f5f7369676e5665726966696572526567697374727920646f6573206e6f74206960448201527f6d706c656d656e7420495369676e5665726966696572526567697374727900006064820152608401610a28565b61013080546001600160a01b03838116620100008181027fffffffffffffffffffff0000000000000000000000000000000000000000ffff8516179094556040519390920416918291907f78f83104cd73ca1470706a4dfb0ab769a5bdb4217a200d14602e02cc9925cd3d90600090a35050565b6000818152606760205260409020546060906001600160a01b03166120c85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a28565b60006120d2612935565b905060008151116120f25760405180602001604052806000815250611e02565b806120fc84612945565b60405160200161210d929190613cbc565b6040516020818303038152906040529392505050565b6097546001600160a01b0316331461216b5760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b60405162461bcd60e51b815260206004820152603360248201527f7369676e5665726966696572206973206e6f772073657420627920746865207360448201527f69676e56657269666965725265676973747279000000000000000000000000006064820152608401610a28565b6097546001600160a01b031633146122215760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b806122945760405162461bcd60e51b815260206004820152602560248201527f5f7369676e566572696669657249642063616e6e6f7420626520746865207a6560448201527f726f2049440000000000000000000000000000000000000000000000000000006064820152608401610a28565b610131805490829055604051819083907f2d87eba9dd392fcda14b366f76541b6c3af5d0706caa646d48217129c5f16b8590600090a35050565b6097546001600160a01b031633146123165760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b6001600160a01b0381166123925760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a28565b610e95816126ff565b6001600160a01b03163b151590565b6097546001600160a01b03163314610e955760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156124255761102b83612a77565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561247f575060408051601f3d908101601f1916820190925261247c91810190613ceb565b60015b6124f15760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f6e206973206e6f7420555550530000000000000000000000000000000000006064820152608401610a28565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc81146125865760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f7860448201527f6961626c655555494400000000000000000000000000000000000000000000006064820152608401610a28565b5061102b838383612b35565b610eea828260405180602001604052806000815250612b5a565b600054610100900460ff166126175760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a28565b610eea8282612bd8565b600054610100900460ff166116925760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a28565b600054610100900460ff166126f75760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a28565b611692612c6a565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166127a75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a28565b6000818152606760205260409020546001600160a01b03161561280c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a28565b6001600160a01b0382166000908152606860205260408120805460019290612835908490613c87565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008060006128a28585612cde565b915091506128af81612d4e565b509392505050565b6128c2848484612f09565b6128ce848484846130d6565b6117195760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a28565b606061012e805461091f90613bc5565b60608161298557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156129af578061299981613c4f565b91506129a89050600a83613d1a565b9150612989565b60008167ffffffffffffffff8111156129ca576129ca61371f565b6040519080825280601f01601f1916602001820160405280156129f4576020820181803683370190505b5090505b8415611a8657612a09600183613d2e565b9150612a16600a86613d45565b612a21906030613c87565b60f81b818381518110612a3657612a36613c39565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612a70600a86613d1a565b94506129f8565b6001600160a01b0381163b612af45760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e7472616374000000000000000000000000000000000000006064820152608401610a28565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b612b3e8361321c565b600082511180612b4b5750805b1561102b57611719838361325c565b612b648383612751565b612b7160008484846130d6565b61102b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a28565b600054610100900460ff16612c435760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a28565b8151612c5690606590602085019061354d565b50805161102b90606690602084019061354d565b600054610100900460ff16612cd55760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a28565b611692336126ff565b600080825160411415612d155760208301516040840151606085015160001a612d0987828585613367565b94509450505050612d47565b825160401415612d3f5760208301516040840151612d34868383613454565b935093505050612d47565b506000905060025b9250929050565b6000816004811115612d6257612d62613d59565b1415612d6b5750565b6001816004811115612d7f57612d7f613d59565b1415612dcd5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a28565b6002816004811115612de157612de1613d59565b1415612e2f5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a28565b6003816004811115612e4357612e43613d59565b1415612e9c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a28565b6004816004811115612eb057612eb0613d59565b1415610e955760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a28565b826001600160a01b0316612f1c826113c8565b6001600160a01b031614612f985760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610a28565b6001600160a01b0382166130135760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a28565b61301e6000826134a6565b6001600160a01b0383166000908152606860205260408120805460019290613047908490613d2e565b90915550506001600160a01b0382166000908152606860205260408120805460019290613075908490613c87565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0384163b1561321457604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061311a903390899088908890600401613d6f565b6020604051808303816000875af1925050508015613155575060408051601f3d908101601f1916820190925261315291810190613dab565b60015b6131fa573d808015613183576040519150601f19603f3d011682016040523d82523d6000602084013e613188565b606091505b5080516131f25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a28565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a86565b506001611a86565b61322581612a77565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b6132db5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e747261637400000000000000000000000000000000000000000000000000006064820152608401610a28565b600080846001600160a01b0316846040516132f69190613dc8565b600060405180830381855af49150503d8060008114613331576040519150601f19603f3d011682016040523d82523d6000602084013e613336565b606091505b509150915061335e8282604051806060016040528060278152602001613e0560279139613514565b95945050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561339e575060009050600361344b565b8460ff16601b141580156133b657508460ff16601c14155b156133c7575060009050600461344b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561341b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166134445760006001925092505061344b565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161348a60ff86901c601b613c87565b905061349887828885613367565b935093505050935093915050565b600081815260696020526040902080546001600160a01b0319166001600160a01b03841690811790915581906134db826113c8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60608315613523575081611e02565b8251156135335782518084602001fd5b8160405162461bcd60e51b8152600401610a289190613671565b82805461355990613bc5565b90600052602060002090601f01602090048101928261357b57600085556135c1565b82601f1061359457805160ff19168380011785556135c1565b828001600101855582156135c1579182015b828111156135c15782518255916020019190600101906135a6565b506135cd9291506135d1565b5090565b5b808211156135cd57600081556001016135d2565b6001600160e01b031981168114610e9557600080fd5b60006020828403121561360e57600080fd5b8135611e02816135e6565b60005b8381101561363457818101518382015260200161361c565b838111156117195750506000910152565b6000815180845261365d816020860160208601613619565b601f01601f19169290920160200192915050565b602081526000611e026020830184613645565b60006020828403121561369657600080fd5b5035919050565b6001600160a01b0381168114610e9557600080fd5b600080604083850312156136c557600080fd5b82356136d08161369d565b946020939093013593505050565b6000806000606084860312156136f357600080fd5b83356136fe8161369d565b9250602084013561370e8161369d565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261374657600080fd5b813567ffffffffffffffff808211156137615761376161371f565b604051601f8301601f19908116603f011681019082821181831017156137895761378961371f565b816040528381528660208588010111156137a257600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080608085870312156137d857600080fd5b843567ffffffffffffffff808211156137f057600080fd5b6137fc88838901613735565b9550602087013591508082111561381257600080fd5b5061381f87828801613735565b93505060408501356138308161369d565b9396929550929360600135925050565b60006020828403121561385257600080fd5b8135611e028161369d565b6000806040838503121561387057600080fd5b823567ffffffffffffffff8082111561388857600080fd5b61389486838701613735565b935060208501359150808211156138aa57600080fd5b506138b785828601613735565b9150509250929050565b600080604083850312156138d457600080fd5b82356138df8161369d565b9150602083013567ffffffffffffffff8111156138fb57600080fd5b6138b785828601613735565b60006020828403121561391957600080fd5b813567ffffffffffffffff81111561393057600080fd5b611a8684828501613735565b60008060006040848603121561395157600080fd5b833561395c8161369d565b9250602084013567ffffffffffffffff8082111561397957600080fd5b818601915086601f83011261398d57600080fd5b81358181111561399c57600080fd5b8760208260051b85010111156139b157600080fd5b6020830194508093505050509250925092565b600080600080600060a086880312156139dc57600080fd5b853567ffffffffffffffff8111156139f357600080fd5b6139ff88828901613735565b955050602086013593506040860135613a178161369d565b94979396509394606081013594506080013592915050565b60008060008060808587031215613a4557600080fd5b843593506020850135613a578161369d565b93969395505050506040820135916060013590565b60008060008060808587031215613a8257600080fd5b843567ffffffffffffffff811115613a9957600080fd5b613aa587828801613735565b9450506020850135925060408501356138308161369d565b8015158114610e9557600080fd5b60008060408385031215613ade57600080fd5b8235613ae98161369d565b91506020830135613af981613abd565b809150509250929050565b600080600060608486031215613b1957600080fd5b83359250602084013561370e8161369d565b60008060008060808587031215613b4157600080fd5b8435613b4c8161369d565b93506020850135613b5c8161369d565b925060408501359150606085013567ffffffffffffffff811115613b7f57600080fd5b613b8b87828801613735565b91505092959194509250565b60008060408385031215613baa57600080fd5b8235613bb58161369d565b91506020830135613af98161369d565b600181811c90821680613bd957607f821691505b60208210811415613bfa57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600061ffff83811690831681811015613c3157613c31613c00565b039392505050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415613c6357613c63613c00565b5060010190565b600060208284031215613c7c57600080fd5b8151611e028161369d565b60008219821115613c9a57613c9a613c00565b500190565b600060208284031215613cb157600080fd5b8151611e0281613abd565b60008351613cce818460208801613619565b835190830190613ce2818360208801613619565b01949350505050565b600060208284031215613cfd57600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b600082613d2957613d29613d04565b500490565b600082821015613d4057613d40613c00565b500390565b600082613d5457613d54613d04565b500690565b634e487b7160e01b600052602160045260246000fd5b60006001600160a01b03808716835280861660208401525083604083015260806060830152613da16080830184613645565b9695505050505050565b600060208284031215613dbd57600080fd5b8151611e02816135e6565b60008251613dda818460208701613619565b919091019291505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122058f774615492844266a472e563fd9eb5a43e8c8bffd8dc363120757ec08352fd64736f6c634300080c0033496e697469616c697a61626c653a20636f6e7472616374206973206e6f742069
Deployed Bytecode
0x6080604052600436106102e75760003560e01c806375ceb34111610184578063a6ea1025116100d6578063d77079031161008a578063e985e9c511610064578063e985e9c514610803578063f061ab261461084c578063f2fde38b1461086c57600080fd5b8063d77079031461077e578063db6c7d3e146107b5578063e8649f58146107e357600080fd5b8063b88d4fde116100bb578063b88d4fde14610723578063bef3bd291461073e578063c87b56dd1461075e57600080fd5b8063a6ea1025146106e3578063ab6392081461070357600080fd5b80638bb86022116101385780639810c4a4116101125780639810c4a414610691578063a22cb465146106a8578063a2c54bdd146106c357600080fd5b80638bb86022146106375780638da5cb5b1461065e57806395d89b411461067c57600080fd5b8063808271a211610169578063808271a2146105d7578063818d3bfc146105f7578063822fc7d41461061757600080fd5b806375ceb341146105a25780637b86073e146105c257600080fd5b80634f1ef2861161023d578063683e78d7116101f157806370a08231116101cb57806370a082311461053e578063715018a61461055e5780637436f3dc1461057357600080fd5b8063683e78d7146104e857806369933718146105095780636c0360eb1461052957600080fd5b8063540a00fb11610222578063540a00fb1461049357806355f804b3146104a85780636352211e146104c857600080fd5b80634f1ef2861461045d57806352d1902d1461047057600080fd5b806323b872dd1161029f57806340c10f191161027957806340c10f191461041d57806342842e0e146103bd5780634cd88b761461043d57600080fd5b806323b872dd146103bd578063356d9b7b146103dd5780633659cfe6146103fd57600080fd5b8063081812fc116102d0578063081812fc14610343578063095ea7b31461037b5780630aa058861461039d57600080fd5b806301ffc9a7146102ec57806306fdde0314610321575b600080fd5b3480156102f857600080fd5b5061030c6103073660046135fc565b61088c565b60405190151581526020015b60405180910390f35b34801561032d57600080fd5b50610336610910565b6040516103189190613671565b34801561034f57600080fd5b5061036361035e366004613684565b6109a2565b6040516001600160a01b039091168152602001610318565b34801561038757600080fd5b5061039b6103963660046136b2565b610a4d565b005b3480156103a957600080fd5b5061039b6103b83660046136b2565b610abb565b3480156103c957600080fd5b5061039b6103d83660046136de565b610bdd565b3480156103e957600080fd5b5061039b6103f83660046137c2565b610c4b565b34801561040957600080fd5b5061039b610418366004613840565b610d1c565b34801561042957600080fd5b5061039b6104383660046136b2565b610e98565b34801561044957600080fd5b5061039b61045836600461385d565b610eee565b61039b61046b3660046138c1565b611030565b34801561047c57600080fd5b50610485611199565b604051908152602001610318565b34801561049f57600080fd5b5061039b61125e565b3480156104b457600080fd5b5061039b6104c3366004613907565b61136c565b3480156104d457600080fd5b506103636104e3366004613684565b6113c8565b3480156104f457600080fd5b5061012d54610363906001600160a01b031681565b34801561051557600080fd5b5061039b61052436600461385d565b611453565b34801561053557600080fd5b50610336611517565b34801561054a57600080fd5b50610485610559366004613840565b6115a6565b34801561056a57600080fd5b5061039b611640565b34801561057f57600080fd5b506101305461058f9061ffff1681565b60405161ffff9091168152602001610318565b3480156105ae57600080fd5b5061039b6105bd36600461393c565b611694565b3480156105ce57600080fd5b5061036361171f565b3480156105e357600080fd5b5061039b6105f23660046139c4565b611838565b34801561060357600080fd5b50610485610612366004613a2f565b611a0f565b34801561062357600080fd5b5061039b610632366004613a6c565b611a8e565b34801561064357600080fd5b5061013054610363906201000090046001600160a01b031681565b34801561066a57600080fd5b506097546001600160a01b0316610363565b34801561068857600080fd5b50610336611b92565b34801561069d57600080fd5b506104856101315481565b3480156106b457600080fd5b5061039b610396366004613acb565b3480156106cf57600080fd5b5061039b6106de36600461385d565b611ba1565b3480156106ef57600080fd5b5061039b6106fe366004613a6c565b611c57565b34801561070f57600080fd5b5061048561071e366004613b04565b611d94565b34801561072f57600080fd5b5061039b6103d8366004613b2b565b34801561074a57600080fd5b5061039b610759366004613840565b611e09565b34801561076a57600080fd5b50610336610779366004613684565b61203b565b34801561078a57600080fd5b50610485610799366004613840565b6001600160a01b0316600090815261012f602052604090205490565b3480156107c157600080fd5b506104856107d0366004613840565b61012f6020526000908152604090205481565b3480156107ef57600080fd5b5061039b6107fe366004613840565b612123565b34801561080f57600080fd5b5061030c61081e366004613b97565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561085857600080fd5b5061039b610867366004613684565b6121d9565b34801561087857600080fd5b5061039b610887366004613840565b6122ce565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806108ef57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061090a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606065805461091f90613bc5565b80601f016020809104026020016040519081016040528092919081815260200182805461094b90613bc5565b80156109985780601f1061096d57610100808354040283529160200191610998565b820191906000526020600020905b81548152906001019060200180831161097b57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b0316610a315760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b60405162461bcd60e51b815260206004820152603060248201527f455243373231207075626c696320617070726f76616c2066756e6374696f6e7360448201527f20617265206e6f7420616c6c6f776564000000000000000000000000000000006064820152608401610a28565b6097546001600160a01b03163314610b035760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b61013054600390610b189061ffff1682613c16565b61ffff1660011480610b3e57506101305461ffff16158015610b3e57508061ffff166002145b610bb05760405162461bcd60e51b815260206004820152603f60248201527f4d75737420626520617420746865206d696e6f722076657273696f6e2070726960448201527f6f7220746f2077686174206973206265696e6720757067726164656420746f006064820152608401610a28565b610bb983611e09565b610bc2826121d9565b610130805461ffff191661ffff929092169190911790555050565b60405162461bcd60e51b815260206004820152603060248201527f455243373231207075626c6963207472616e736665722066756e6374696f6e7360448201527f20617265206e6f7420616c6c6f776564000000000000000000000000000000006064820152608401610a28565b600054610100900460ff16610c665760005460ff1615610c6a565b303b155b610ccd5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a28565b600054610100900460ff16158015610cef576000805461ffff19166101011790555b610cf98585611ba1565b610d038383610abb565b8015610d15576000805461ff00191690555b5050505050565b306001600160a01b037f000000000000000000000000c0e62533d07765342e9d13a4796ad8f1b3108bef161415610daa5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610a28565b7f000000000000000000000000c0e62533d07765342e9d13a4796ad8f1b3108bef6001600160a01b0316610e057f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614610e705760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610a28565b610e79816123aa565b60408051600080825260208201909252610e95918391906123f2565b50565b6097546001600160a01b03163314610ee05760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b610eea8282612592565b5050565b600054610100900460ff16610f095760005460ff1615610f0d565b303b155b610f705760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a28565b600054610100900460ff16158015610f92576000805461ffff19166101011790555b610f9c83836125ac565b610fa4612621565b610fac61268c565b61012d80546001600160a01b03191673f504941ef7ff8f24dc0063779eeb3fb12bac8ab717905560408051808201909152601d8082527f68747470733a2f2f69796b2e6170702f6170692f6d657461646174612f00000060209092019182526110189161012e9161354d565b50801561102b576000805461ff00191690555b505050565b306001600160a01b037f000000000000000000000000c0e62533d07765342e9d13a4796ad8f1b3108bef1614156110be5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610a28565b7f000000000000000000000000c0e62533d07765342e9d13a4796ad8f1b3108bef6001600160a01b03166111197f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b0316146111845760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610a28565b61118d826123aa565b610eea828260016123f2565b6000306001600160a01b037f000000000000000000000000c0e62533d07765342e9d13a4796ad8f1b3108bef16146112395760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610a28565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6097546001600160a01b031633146112a65760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b610130546002906112bb9061ffff1682613c16565b61ffff16600114806112e157506101305461ffff161580156112e157508061ffff166002145b6113535760405162461bcd60e51b815260206004820152603f60248201527f4d75737420626520617420746865206d696e6f722076657273696f6e2070726960448201527f6f7220746f2077686174206973206265696e6720757067726164656420746f006064820152608401610a28565b610130805461ffff191661ffff92909216919091179055565b6097546001600160a01b031633146113b45760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b8051610eea9061012e90602084019061354d565b6000818152606760205260408120546001600160a01b03168061090a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a28565b600054610100900460ff1661146e5760005460ff1615611472565b303b155b6114d55760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a28565b600054610100900460ff161580156114f7576000805461ffff19166101011790555b6115018383610eee565b801561102b576000805461ff0019169055505050565b61012e805461152590613bc5565b80601f016020809104026020016040519081016040528092919081815260200182805461155190613bc5565b801561159e5780601f106115735761010080835404028352916020019161159e565b820191906000526020600020905b81548152906001019060200180831161158157829003601f168201915b505050505081565b60006001600160a01b0382166116245760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a28565b506001600160a01b031660009081526068602052604090205490565b6097546001600160a01b031633146116885760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b61169260006126ff565b565b6097546001600160a01b031633146116dc5760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b60005b8181101561171957611709848484848181106116fd576116fd613c39565b90506020020135612751565b61171281613c4f565b90506116df565b50505050565b61013054610131546040517f8eaa6ac000000000000000000000000000000000000000000000000000000000815260048101919091526000918291620100009091046001600160a01b031690638eaa6ac090602401602060405180830381865afa158015611791573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b59190613c6a565b90506001600160a01b0381166118335760405162461bcd60e51b815260206004820152602860248201527f63616e6e6f7420757365207a65726f2061646472657373206173207369676e2060448201527f76657269666965720000000000000000000000000000000000000000000000006064820152608401610a28565b919050565b600081116118885760405162461bcd60e51b815260206004820152601c60248201527f4d757374206d696e74206174206c65617374206f6e6520746f6b656e000000006044820152606401610a28565b60006118ec61189986868686611a0f565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90506118f661171f565b6001600160a01b03166119098288612893565b6001600160a01b03161461196f5760405162461bcd60e51b815260206004820152602760248201527f5065726d697373696f6e20746f2063616c6c20746869732066756e6374696f6e6044820152660819985a5b195960ca1b6064820152608401610a28565b8443106119ac5760405162461bcd60e51b815260206004820152600b60248201526a14da59c8195e1c1a5c995960aa1b6044820152606401610a28565b6001600160a01b038416600090815261012f602052604081208054916119d183613c4f565b909155508390505b6119e38385613c87565b811015611a06576119f48582612592565b806119fe81613c4f565b9150506119d9565b50505050505050565b6001600160a01b038316600090815261012f60209081526040918290205482516bffffffffffffffffffffffff1930606090811b821683860152603483018a905288901b166054820152606881018690526088810185905260a8808201929092528351808203909201825260c80190925281519101205b949350505050565b6000611a9e611899858585611d94565b9050611aa861171f565b6001600160a01b0316611abb8287612893565b6001600160a01b031614611b215760405162461bcd60e51b815260206004820152602760248201527f5065726d697373696f6e20746f2063616c6c20746869732066756e6374696f6e6044820152660819985a5b195960ca1b6064820152608401610a28565b834310611b5e5760405162461bcd60e51b815260206004820152600b60248201526a14da59c8195e1c1a5c995960aa1b6044820152606401610a28565b6001600160a01b038316600090815261012f60205260408120805491611b8383613c4f565b9190505550610d158383612592565b60606066805461091f90613bc5565b600054610100900460ff16611bbc5760005460ff1615611bc0565b303b155b611c235760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a28565b600054610100900460ff16158015611c45576000805461ffff19166101011790555b611c4f8383611453565b61150161125e565b6000611c67611899858585611d94565b9050611c7161171f565b6001600160a01b0316611c848287612893565b6001600160a01b031614611cea5760405162461bcd60e51b815260206004820152602760248201527f5065726d697373696f6e20746f2063616c6c20746869732066756e6374696f6e6044820152660819985a5b195960ca1b6064820152608401610a28565b834310611d275760405162461bcd60e51b815260206004820152600b60248201526a14da59c8195e1c1a5c995960aa1b6044820152606401610a28565b6000611d32836113c8565b90506001600160a01b038116611d4757600080fd5b6001600160a01b038416600090815261012f60205260408120805491611d6c83613c4f565b9190505550611d8c818585604051806020016040528060008152506128b7565b505050505050565b6001600160a01b038216600090815261012f60209081526040918290205482518083018790526bffffffffffffffffffffffff19606087811b8216838701526054830187905230901b1660748201526088808201929092528351808203909201825260a80190925281519101205b9392505050565b6097546001600160a01b03163314611e515760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b6001600160a01b038116611ecd5760405162461bcd60e51b815260206004820152603060248201527f5f7369676e566572696669657252656769737472792063616e6e6f742062652060448201527f746865207a65726f2061646472657373000000000000000000000000000000006064820152608401610a28565b6040516301ffc9a760e01b81527f1668c2a90000000000000000000000000000000000000000000000000000000060048201526001600160a01b038216906301ffc9a790602401602060405180830381865afa158015611f31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f559190613c9f565b611fc75760405162461bcd60e51b815260206004820152603e60248201527f5f7369676e5665726966696572526567697374727920646f6573206e6f74206960448201527f6d706c656d656e7420495369676e5665726966696572526567697374727900006064820152608401610a28565b61013080546001600160a01b03838116620100008181027fffffffffffffffffffff0000000000000000000000000000000000000000ffff8516179094556040519390920416918291907f78f83104cd73ca1470706a4dfb0ab769a5bdb4217a200d14602e02cc9925cd3d90600090a35050565b6000818152606760205260409020546060906001600160a01b03166120c85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a28565b60006120d2612935565b905060008151116120f25760405180602001604052806000815250611e02565b806120fc84612945565b60405160200161210d929190613cbc565b6040516020818303038152906040529392505050565b6097546001600160a01b0316331461216b5760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b60405162461bcd60e51b815260206004820152603360248201527f7369676e5665726966696572206973206e6f772073657420627920746865207360448201527f69676e56657269666965725265676973747279000000000000000000000000006064820152608401610a28565b6097546001600160a01b031633146122215760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b806122945760405162461bcd60e51b815260206004820152602560248201527f5f7369676e566572696669657249642063616e6e6f7420626520746865207a6560448201527f726f2049440000000000000000000000000000000000000000000000000000006064820152608401610a28565b610131805490829055604051819083907f2d87eba9dd392fcda14b366f76541b6c3af5d0706caa646d48217129c5f16b8590600090a35050565b6097546001600160a01b031633146123165760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b6001600160a01b0381166123925760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a28565b610e95816126ff565b6001600160a01b03163b151590565b6097546001600160a01b03163314610e955760405162461bcd60e51b81526020600482018190526024820152600080516020613de58339815191526044820152606401610a28565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156124255761102b83612a77565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561247f575060408051601f3d908101601f1916820190925261247c91810190613ceb565b60015b6124f15760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f6e206973206e6f7420555550530000000000000000000000000000000000006064820152608401610a28565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc81146125865760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f7860448201527f6961626c655555494400000000000000000000000000000000000000000000006064820152608401610a28565b5061102b838383612b35565b610eea828260405180602001604052806000815250612b5a565b600054610100900460ff166126175760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a28565b610eea8282612bd8565b600054610100900460ff166116925760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a28565b600054610100900460ff166126f75760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a28565b611692612c6a565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166127a75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a28565b6000818152606760205260409020546001600160a01b03161561280c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a28565b6001600160a01b0382166000908152606860205260408120805460019290612835908490613c87565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008060006128a28585612cde565b915091506128af81612d4e565b509392505050565b6128c2848484612f09565b6128ce848484846130d6565b6117195760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a28565b606061012e805461091f90613bc5565b60608161298557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156129af578061299981613c4f565b91506129a89050600a83613d1a565b9150612989565b60008167ffffffffffffffff8111156129ca576129ca61371f565b6040519080825280601f01601f1916602001820160405280156129f4576020820181803683370190505b5090505b8415611a8657612a09600183613d2e565b9150612a16600a86613d45565b612a21906030613c87565b60f81b818381518110612a3657612a36613c39565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612a70600a86613d1a565b94506129f8565b6001600160a01b0381163b612af45760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e7472616374000000000000000000000000000000000000006064820152608401610a28565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b612b3e8361321c565b600082511180612b4b5750805b1561102b57611719838361325c565b612b648383612751565b612b7160008484846130d6565b61102b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a28565b600054610100900460ff16612c435760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a28565b8151612c5690606590602085019061354d565b50805161102b90606690602084019061354d565b600054610100900460ff16612cd55760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a28565b611692336126ff565b600080825160411415612d155760208301516040840151606085015160001a612d0987828585613367565b94509450505050612d47565b825160401415612d3f5760208301516040840151612d34868383613454565b935093505050612d47565b506000905060025b9250929050565b6000816004811115612d6257612d62613d59565b1415612d6b5750565b6001816004811115612d7f57612d7f613d59565b1415612dcd5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a28565b6002816004811115612de157612de1613d59565b1415612e2f5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a28565b6003816004811115612e4357612e43613d59565b1415612e9c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a28565b6004816004811115612eb057612eb0613d59565b1415610e955760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a28565b826001600160a01b0316612f1c826113c8565b6001600160a01b031614612f985760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610a28565b6001600160a01b0382166130135760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a28565b61301e6000826134a6565b6001600160a01b0383166000908152606860205260408120805460019290613047908490613d2e565b90915550506001600160a01b0382166000908152606860205260408120805460019290613075908490613c87565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0384163b1561321457604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061311a903390899088908890600401613d6f565b6020604051808303816000875af1925050508015613155575060408051601f3d908101601f1916820190925261315291810190613dab565b60015b6131fa573d808015613183576040519150601f19603f3d011682016040523d82523d6000602084013e613188565b606091505b5080516131f25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a28565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a86565b506001611a86565b61322581612a77565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b6132db5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e747261637400000000000000000000000000000000000000000000000000006064820152608401610a28565b600080846001600160a01b0316846040516132f69190613dc8565b600060405180830381855af49150503d8060008114613331576040519150601f19603f3d011682016040523d82523d6000602084013e613336565b606091505b509150915061335e8282604051806060016040528060278152602001613e0560279139613514565b95945050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561339e575060009050600361344b565b8460ff16601b141580156133b657508460ff16601c14155b156133c7575060009050600461344b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561341b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166134445760006001925092505061344b565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161348a60ff86901c601b613c87565b905061349887828885613367565b935093505050935093915050565b600081815260696020526040902080546001600160a01b0319166001600160a01b03841690811790915581906134db826113c8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60608315613523575081611e02565b8251156135335782518084602001fd5b8160405162461bcd60e51b8152600401610a289190613671565b82805461355990613bc5565b90600052602060002090601f01602090048101928261357b57600085556135c1565b82601f1061359457805160ff19168380011785556135c1565b828001600101855582156135c1579182015b828111156135c15782518255916020019190600101906135a6565b506135cd9291506135d1565b5090565b5b808211156135cd57600081556001016135d2565b6001600160e01b031981168114610e9557600080fd5b60006020828403121561360e57600080fd5b8135611e02816135e6565b60005b8381101561363457818101518382015260200161361c565b838111156117195750506000910152565b6000815180845261365d816020860160208601613619565b601f01601f19169290920160200192915050565b602081526000611e026020830184613645565b60006020828403121561369657600080fd5b5035919050565b6001600160a01b0381168114610e9557600080fd5b600080604083850312156136c557600080fd5b82356136d08161369d565b946020939093013593505050565b6000806000606084860312156136f357600080fd5b83356136fe8161369d565b9250602084013561370e8161369d565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261374657600080fd5b813567ffffffffffffffff808211156137615761376161371f565b604051601f8301601f19908116603f011681019082821181831017156137895761378961371f565b816040528381528660208588010111156137a257600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080608085870312156137d857600080fd5b843567ffffffffffffffff808211156137f057600080fd5b6137fc88838901613735565b9550602087013591508082111561381257600080fd5b5061381f87828801613735565b93505060408501356138308161369d565b9396929550929360600135925050565b60006020828403121561385257600080fd5b8135611e028161369d565b6000806040838503121561387057600080fd5b823567ffffffffffffffff8082111561388857600080fd5b61389486838701613735565b935060208501359150808211156138aa57600080fd5b506138b785828601613735565b9150509250929050565b600080604083850312156138d457600080fd5b82356138df8161369d565b9150602083013567ffffffffffffffff8111156138fb57600080fd5b6138b785828601613735565b60006020828403121561391957600080fd5b813567ffffffffffffffff81111561393057600080fd5b611a8684828501613735565b60008060006040848603121561395157600080fd5b833561395c8161369d565b9250602084013567ffffffffffffffff8082111561397957600080fd5b818601915086601f83011261398d57600080fd5b81358181111561399c57600080fd5b8760208260051b85010111156139b157600080fd5b6020830194508093505050509250925092565b600080600080600060a086880312156139dc57600080fd5b853567ffffffffffffffff8111156139f357600080fd5b6139ff88828901613735565b955050602086013593506040860135613a178161369d565b94979396509394606081013594506080013592915050565b60008060008060808587031215613a4557600080fd5b843593506020850135613a578161369d565b93969395505050506040820135916060013590565b60008060008060808587031215613a8257600080fd5b843567ffffffffffffffff811115613a9957600080fd5b613aa587828801613735565b9450506020850135925060408501356138308161369d565b8015158114610e9557600080fd5b60008060408385031215613ade57600080fd5b8235613ae98161369d565b91506020830135613af981613abd565b809150509250929050565b600080600060608486031215613b1957600080fd5b83359250602084013561370e8161369d565b60008060008060808587031215613b4157600080fd5b8435613b4c8161369d565b93506020850135613b5c8161369d565b925060408501359150606085013567ffffffffffffffff811115613b7f57600080fd5b613b8b87828801613735565b91505092959194509250565b60008060408385031215613baa57600080fd5b8235613bb58161369d565b91506020830135613af98161369d565b600181811c90821680613bd957607f821691505b60208210811415613bfa57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600061ffff83811690831681811015613c3157613c31613c00565b039392505050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415613c6357613c63613c00565b5060010190565b600060208284031215613c7c57600080fd5b8151611e028161369d565b60008219821115613c9a57613c9a613c00565b500190565b600060208284031215613cb157600080fd5b8151611e0281613abd565b60008351613cce818460208801613619565b835190830190613ce2818360208801613619565b01949350505050565b600060208284031215613cfd57600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b600082613d2957613d29613d04565b500490565b600082821015613d4057613d40613c00565b500390565b600082613d5457613d54613d04565b500690565b634e487b7160e01b600052602160045260246000fd5b60006001600160a01b03808716835280861660208401525083604083015260806060830152613da16080830184613645565b9695505050505050565b600060208284031215613dbd57600080fd5b8151611e02816135e6565b60008251613dda818460208701613619565b919091019291505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122058f774615492844266a472e563fd9eb5a43e8c8bffd8dc363120757ec08352fd64736f6c634300080c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.