Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 61 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Create | 14814675 | 976 days ago | IN | 0 ETH | 0.00693287 | ||||
Create | 14814587 | 976 days ago | IN | 0 ETH | 0.0070021 | ||||
Create | 14811920 | 976 days ago | IN | 0 ETH | 0.02669244 | ||||
Create | 14809352 | 976 days ago | IN | 0 ETH | 0.0083603 | ||||
Create | 14809006 | 976 days ago | IN | 0 ETH | 0.00475267 | ||||
Create | 14806006 | 977 days ago | IN | 0 ETH | 0.00669397 | ||||
Create | 14805921 | 977 days ago | IN | 0 ETH | 0.01669695 | ||||
Create | 14805800 | 977 days ago | IN | 0 ETH | 0.02248319 | ||||
Create | 14805142 | 977 days ago | IN | 0 ETH | 0.00667131 | ||||
Create | 14804593 | 977 days ago | IN | 0 ETH | 0.00975064 | ||||
Create | 14804499 | 977 days ago | IN | 0 ETH | 0.00691721 | ||||
Create | 14804467 | 977 days ago | IN | 0 ETH | 0.00952148 | ||||
Create | 14804445 | 977 days ago | IN | 0 ETH | 0.00619272 | ||||
Create | 14803883 | 977 days ago | IN | 0 ETH | 0.00480507 | ||||
Create | 14803463 | 977 days ago | IN | 0 ETH | 0.00819484 | ||||
Create | 14803409 | 977 days ago | IN | 0 ETH | 0.00818434 | ||||
Create | 14803380 | 977 days ago | IN | 0 ETH | 0.00922111 | ||||
Create | 14802922 | 977 days ago | IN | 0 ETH | 0.00794111 | ||||
Create | 14802728 | 977 days ago | IN | 0 ETH | 0.00491832 | ||||
Create | 14800127 | 978 days ago | IN | 0 ETH | 0.01438925 | ||||
Create | 14799693 | 978 days ago | IN | 0 ETH | 0.02017983 | ||||
Create | 14799376 | 978 days ago | IN | 0 ETH | 0.01193403 | ||||
Create | 14799334 | 978 days ago | IN | 0 ETH | 0.01110439 | ||||
Create | 14798727 | 978 days ago | IN | 0 ETH | 0.00722671 | ||||
Create | 14798196 | 978 days ago | IN | 0 ETH | 0.00555852 |
Latest 25 internal transactions (View All)
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:
AzukiUpgradeableFactory
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-05-15 */ // File: @openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol // 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 } } } // File: @openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol // 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); } // File: @openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol // 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); } // File: @openzeppelin/contracts-upgradeable/proxy/ClonesUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (proxy/Clones.sol) pragma solidity ^0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for * deploying minimal proxy contracts, also known as "clones". * * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies * > a minimal bytecode implementation that delegates all calls to a known, fixed address. * * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2` * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the * deterministic method. * * _Available since v3.4._ */ library ClonesUpgradeable { /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create opcode, which should never revert. */ function clone(address implementation) internal returns (address instance) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create(0, ptr, 0x37) } require(instance != address(0), "ERC1167: create failed"); } /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create2 opcode and a `salt` to deterministically deploy * the clone. Using the same `implementation` and `salt` multiple time will revert, since * the clones cannot be deployed twice at the same address. */ function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create2(0, ptr, 0x37, salt) } require(instance != address(0), "ERC1167: create2 failed"); } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress( address implementation, bytes32 salt, address deployer ) internal pure returns (address predicted) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000) mstore(add(ptr, 0x38), shl(0x60, deployer)) mstore(add(ptr, 0x4c), salt) mstore(add(ptr, 0x6c), keccak256(ptr, 0x37)) predicted := keccak256(add(ptr, 0x37), 0x55) } } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress(address implementation, bytes32 salt) internal view returns (address predicted) { return predictDeterministicAddress(implementation, salt, address(this)); } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File: @openzeppelin/contracts/interfaces/IERC20.sol // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; // File: @openzeppelin/contracts/utils/Strings.sol // 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); } } // File: @openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol // 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); } } // File: @openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol // OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol // 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); } // File: @openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @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`. * * 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; /** * @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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); } // File: @openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @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); } // File: erc721a-upgradeable/contracts/IERC721AUpgradeable.sol // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721AUpgradeable is IERC721Upgradeable, IERC721MetadataUpgradeable { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); } // File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol // 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); } } } } // File: @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol // OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; /** * @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. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * 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 prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = _setInitializedVersion(1); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { bool isTopLevelCall = _setInitializedVersion(version); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(version); } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { _setInitializedVersion(type(uint8).max); } function _setInitializedVersion(uint8 version) private returns (bool) { // 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, and for the lowest level // of initializers, because in other contexts the contract may have been reentered. if (_initializing) { require( version == 1 && !AddressUpgradeable.isContract(address(this)), "Initializable: contract is already initialized" ); return false; } else { require(_initialized < version, "Initializable: contract is already initialized"); _initialized = version; return true; } } } // File: @openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol // OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; /** * @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; } // File: @openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol // OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.0; /** * @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; } // File: @openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @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; } // File: @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract 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; } // File: erc721a-upgradeable/contracts/ERC721AUpgradeable.sol // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721AUpgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721AUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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; function __ERC721A_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC721A_init_unchained(name_, symbol_); } function __ERC721A_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); 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 override { address owner = ERC721AUpgradeable.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 { _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 { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) 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[42] private __gap; } // File: @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; /** * @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; } // File: contracts/AzukiUpgradeable.sol pragma solidity ^0.8.4; contract AzukiUpgradeable is ERC721AUpgradeable, OwnableUpgradeable { // should set in initialize since upgradeable string public uriPrefix = ''; string public uriSuffix = ''; bool public revealed = true; string public hiddenMetadataUri; uint256 public startTokenId; uint256 public tokenIdPadding; mapping(uint256 => string) public specificTokenUrl; string public specificCommonUrl = ''; constructor(){} function initialize(string memory name_, string memory symbol_, address ownerAddress_, string memory _uriPrefix, string memory _uriSuffix, uint256 startTokenId_) initializer public { // should be set before erc721a initialize startTokenId = startTokenId_; __ERC721A_init(name_, symbol_); uriPrefix = _uriPrefix; uriSuffix = _uriSuffix; revealed = true; tokenIdPadding = 0; _transferOwnership(ownerAddress_); } function mint(uint256 quantity) external payable onlyOwner { // _safeMint's second argument now takes in a quantity, not a tokenId. _safeMint(msg.sender, quantity); } function setUriPrefix(string memory _uriPrefix) public onlyOwner { uriPrefix = _uriPrefix; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } // used for special padding case function setTokenIdPadding(uint256 _digits) public onlyOwner { tokenIdPadding = _digits; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), 'ERC721Metadata: URI query for nonexistent token'); if (revealed == false) { return hiddenMetadataUri; } string memory specificUrl = specificTokenUrl[_tokenId]; if (bytes(specificUrl).length > 0) { return specificUrl; } if (bytes(specificCommonUrl).length > 0) { return specificCommonUrl; } string memory currentBaseURI = _baseURI(); string memory tokenIdInUrl = Strings.toString(_tokenId); if (tokenIdPadding > 0) { tokenIdInUrl = toStringPadding(_tokenId, tokenIdPadding); } return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenIdInUrl, uriSuffix)) : ''; } function setRevealed(bool _state) public onlyOwner { revealed = _state; } function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner { hiddenMetadataUri = _hiddenMetadataUri; } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } function _startTokenId() internal view virtual override returns (uint256) { return startTokenId; } function setSpecificTokenUrl(uint256 _tokenId, string memory _url) public onlyOwner { specificTokenUrl[_tokenId] = _url; } function setSpecificCommonUrl(string memory _url) public onlyOwner { specificCommonUrl = _url; } function setApprovalForAll(address operator, bool approved) public override { super.setApprovalForAll(operator, approved); if (owner() != msg.sender) { super.setApprovalForAll(owner(), true); } } /* Transfer balance of this contract to an account */ function transferBalance(address payable to, uint256 ammount) onlyOwner() public{ require(address(this).balance >= ammount); to.transfer(ammount); } /* Transfer any ERC20 balance of this contract to an account */ function transferERC20Balance(address erc20ContractAddress, address payable to, uint256 ammount) onlyOwner() public{ IERC20(erc20ContractAddress).transfer(to, ammount); } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. * digits represent the total length */ function toStringPadding(uint256 value, uint256 digits) 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 bytes memory buffer = new bytes(digits); while (digits != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } } // File: contracts/AzukiUpgradeableFactory.sol pragma solidity ^0.8.4; contract AzukiUpgradeableFactory is Initializable, UUPSUpgradeable, OwnableUpgradeable { address erc721Implementation; uint256 public fee; event ContractDeployed(address indexed erc721Implementation, address author); constructor(){ } function initialize() public initializer { __Ownable_init_unchained(); __UUPSUpgradeable_init(); erc721Implementation = address(new AzukiUpgradeable()); } /* Create an NFT Collection and pay the fee */ function create(string memory name_, string memory symbol_, string memory _uriPrefix, string memory _uriSuffix, uint256 startTokenId_) onlyOwner() payable public { address payable clone = payable(ClonesUpgradeable.clone(erc721Implementation)); AzukiUpgradeable(clone).initialize(name_, symbol_, msg.sender, _uriPrefix, _uriSuffix, startTokenId_ ); emit ContractDeployed(clone, msg.sender); } /* Change the fee charged for creating contracts */ function changeFee(uint256 newFee) onlyOwner() public { fee = newFee; } function version() external pure returns (string memory) { return "1.0.3"; } function setERC721Implementation(address payable implementationContract) onlyOwner() public { erc721Implementation = implementationContract; } function _authorizeUpgrade(address newImplementation) internal override onlyOwner() {} function transferBalance(address payable to, uint256 ammount) onlyOwner() public{ require(address(this).balance >= ammount); to.transfer(ammount); } }
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":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"erc721Implementation","type":"address"},{"indexed":false,"internalType":"address","name":"author","type":"address"}],"name":"ContractDeployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[{"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"changeFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"_uriPrefix","type":"string"},{"internalType":"string","name":"_uriSuffix","type":"string"},{"internalType":"uint256","name":"startTokenId_","type":"uint256"}],"name":"create","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","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 payable","name":"implementationContract","type":"address"}],"name":"setERC721Implementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"ammount","type":"uint256"}],"name":"transferBalance","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":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"}]
Contract Creation Code
60a06040523060601b60805234801561001757600080fd5b5060805160601c6139ad610052600039600081816103a4015281816103e701528181610490015281816104d3015261056f01526139ad6000f3fe608060405260043610620000d25760003560e01c8063641254bd11620000895780638129fc1c11620000605780638129fc1c14620002155780638da5cb5b146200022d578063ddca3f431462000257578063f2fde38b146200026f57600080fd5b8063641254bd14620001b35780636a1db1bf14620001d8578063715018a614620001fd57600080fd5b80632fde70d114620000d75780633659cfe614620000f05780634f1ef286146200011557806352d1902d146200012c57806354fd4d50146200015757806356a6d9ef146200018e575b600080fd5b620000ee620000e836600462001025565b62000294565b005b348015620000fd57600080fd5b50620000ee6200010f36600462000f51565b62000399565b620000ee6200012636600462000fa0565b62000485565b3480156200013957600080fd5b506200014462000562565b6040519081526020015b60405180910390f35b3480156200016457600080fd5b506040805180820182526005815264312e302e3360d81b602082015290516200014e91906200114d565b3480156200019b57600080fd5b50620000ee620001ad36600462000f71565b62000618565b348015620001c057600080fd5b50620000ee620001d236600462000f51565b6200068f565b348015620001e557600080fd5b50620000ee620001f7366004620010e7565b620006de565b3480156200020a57600080fd5b50620000ee62000710565b3480156200022257600080fd5b50620000ee6200074b565b3480156200023a57600080fd5b506097546040516001600160a01b0390911681526020016200014e565b3480156200026457600080fd5b506200014460ca5481565b3480156200027c57600080fd5b50620000ee6200028e36600462000f51565b6200081b565b6097546001600160a01b03163314620002ca5760405162461bcd60e51b8152600401620002c190620012c0565b60405180910390fd5b60c954600090620002e4906001600160a01b0316620008ba565b6040516378671ee960e11b81529091506001600160a01b0382169063f0ce3dd2906200031f908990899033908a908a908a9060040162001162565b600060405180830381600087803b1580156200033a57600080fd5b505af11580156200034f573d6000803e3d6000fd5b50506040513381526001600160a01b03841692507f33c981baba081f8fd2c52ac6ad1ea95b6814b4376640f55689051f6584729688915060200160405180910390a2505050505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415620003e55760405162461bcd60e51b8152600401620002c190620011da565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166200043060008051602062003931833981519152546001600160a01b031690565b6001600160a01b031614620004595760405162461bcd60e51b8152600401620002c19062001226565b620004648162000959565b60408051600080825260208201909252620004829183919062000986565b50565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415620004d15760405162461bcd60e51b8152600401620002c190620011da565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166200051c60008051602062003931833981519152546001600160a01b031690565b6001600160a01b031614620005455760405162461bcd60e51b8152600401620002c19062001226565b620005508262000959565b6200055e8282600162000986565b5050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614620006045760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401620002c1565b506000805160206200393183398151915290565b6097546001600160a01b03163314620006455760405162461bcd60e51b8152600401620002c190620012c0565b804710156200065357600080fd5b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156200068a573d6000803e3d6000fd5b505050565b6097546001600160a01b03163314620006bc5760405162461bcd60e51b8152600401620002c190620012c0565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b6097546001600160a01b031633146200070b5760405162461bcd60e51b8152600401620002c190620012c0565b60ca55565b6097546001600160a01b031633146200073d5760405162461bcd60e51b8152600401620002c190620012c0565b62000749600062000b0e565b565b600062000759600162000b60565b9050801562000772576000805461ff0019166101001790555b6200077c62000bf0565b6200078662000c25565b604051620007949062000ea3565b604051809103906000f080158015620007b1573d6000803e3d6000fd5b5060c980546001600160a01b0319166001600160a01b0392909216919091179055801562000482576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b6097546001600160a01b03163314620008485760405162461bcd60e51b8152600401620002c190620012c0565b6001600160a01b038116620008af5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620002c1565b620004828162000b0e565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528260601b60148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f09150506001600160a01b038116620009545760405162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b6044820152606401620002c1565b919050565b6097546001600160a01b03163314620004825760405162461bcd60e51b8152600401620002c190620012c0565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615620009bc576200068a8362000c4f565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b158015620009f657600080fd5b505afa92505050801562000a29575060408051601f3d908101601f1916820190925262000a26918101906200100b565b60015b62000a8e5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401620002c1565b60008051602062003931833981519152811462000b005760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401620002c1565b506200068a83838362000cee565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008054610100900460ff161562000bac578160ff16600114801562000b855750303b155b62000ba45760405162461bcd60e51b8152600401620002c19062001272565b506000919050565b60005460ff80841691161062000bd65760405162461bcd60e51b8152600401620002c19062001272565b506000805460ff191660ff92909216919091179055600190565b600054610100900460ff1662000c1a5760405162461bcd60e51b8152600401620002c190620012f5565b620007493362000b0e565b600054610100900460ff16620007495760405162461bcd60e51b8152600401620002c190620012f5565b6001600160a01b0381163b62000cbe5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401620002c1565b6000805160206200393183398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b62000cf98362000d1f565b60008251118062000d075750805b156200068a5762000d19838362000d61565b50505050565b62000d2a8162000c4f565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b62000dcb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401620002c1565b600080846001600160a01b03168460405162000de891906200112f565b600060405180830381855af49150503d806000811462000e25576040519150601f19603f3d011682016040523d82523d6000602084013e62000e2a565b606091505b509150915062000e558282604051806060016040528060278152602001620039516027913962000e5e565b95945050505050565b6060831562000e6f57508162000e9c565b82511562000e805782518084602001fd5b8160405162461bcd60e51b8152600401620002c191906200114d565b9392505050565b612595806200139c83390190565b600067ffffffffffffffff8084111562000ecf5762000ecf6200136f565b604051601f8501601f19908116603f0116810190828211818310171562000efa5762000efa6200136f565b8160405280935085815286868601111562000f1457600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011262000f4057600080fd5b62000e9c8383356020850162000eb1565b60006020828403121562000f6457600080fd5b813562000e9c8162001385565b6000806040838503121562000f8557600080fd5b823562000f928162001385565b946020939093013593505050565b6000806040838503121562000fb457600080fd5b823562000fc18162001385565b9150602083013567ffffffffffffffff81111562000fde57600080fd5b8301601f8101851362000ff057600080fd5b620010018582356020840162000eb1565b9150509250929050565b6000602082840312156200101e57600080fd5b5051919050565b600080600080600060a086880312156200103e57600080fd5b853567ffffffffffffffff808211156200105757600080fd5b6200106589838a0162000f2e565b965060208801359150808211156200107c57600080fd5b6200108a89838a0162000f2e565b95506040880135915080821115620010a157600080fd5b620010af89838a0162000f2e565b94506060880135915080821115620010c657600080fd5b50620010d58882890162000f2e565b95989497509295608001359392505050565b600060208284031215620010fa57600080fd5b5035919050565b600081518084526200111b81602086016020860162001340565b601f01601f19169290920160200192915050565b600082516200114381846020870162001340565b9190910192915050565b60208152600062000e9c602083018462001101565b60c0815260006200117760c083018962001101565b82810360208401526200118b818962001101565b6001600160a01b038816604085015283810360608501529050620011b0818762001101565b90508281036080840152620011c6818662001101565b9150508260a0830152979650505050505050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b838110156200135d57818101518382015260200162001343565b8381111562000d195750506000910152565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146200048257600080fdfe60a06040819052600060808190526200001b9160c9916200007f565b506040805160208101918290526000908190526200003c9160ca916200007f565b5060cb805460ff191660011790556040805160208101918290526000908190526200006a9160d0916200007f565b503480156200007857600080fd5b5062000162565b8280546200008d9062000125565b90600052602060002090601f016020900481019282620000b15760008555620000fc565b82601f10620000cc57805160ff1916838001178555620000fc565b82800160010185558215620000fc579182015b82811115620000fc578251825591602001919060010190620000df565b506200010a9291506200010e565b5090565b5b808211156200010a57600081556001016200010f565b600181811c908216806200013a57607f821691505b602082108114156200015c57634e487b7160e01b600052602260045260246000fd5b50919050565b61242380620001726000396000f3fe60806040526004361061020f5760003560e01c80637ec4a65911610118578063b4d9c552116100a0578063e0a808531161006f578063e0a80853146105c7578063e6798baa146105e7578063e985e9c5146105fd578063f0ce3dd214610646578063f2fde38b1461066657600080fd5b8063b4d9c55214610552578063b88d4fde14610572578063c87b56dd14610592578063d7a4b957146105b257600080fd5b8063a0712d68116100e7578063a0712d68146104ca578063a22cb465146104dd578063a45ba8e7146104fd578063ad4b68f214610512578063b10c27d81461053257600080fd5b80637ec4a659146104575780638da5cb5b1461047757806395d89b411461049557806398021b91146104aa57600080fd5b80634fdd43cb1161019b57806362b99ad41161016a57806362b99ad4146103d75780636352211e146103ec5780636a067d2a1461040c57806370a0823114610422578063715018a61461044257600080fd5b80634fdd43cb1461036857806351830227146103885780635503a0e8146103a257806356a6d9ef146103b757600080fd5b806316ba10e0116101e257806316ba10e0146102c557806318160ddd146102e557806323b872dd1461030857806329f61b081461032857806342842e0e1461034857600080fd5b806301ffc9a71461021457806306fdde0314610249578063081812fc1461026b578063095ea7b3146102a3575b600080fd5b34801561022057600080fd5b5061023461022f366004611ee3565b610686565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b5061025e6106d8565b60405161024091906121a2565b34801561027757600080fd5b5061028b610286366004612016565b61076a565b6040516001600160a01b039091168152602001610240565b3480156102af57600080fd5b506102c36102be366004611d56565b6107ae565b005b3480156102d157600080fd5b506102c36102e0366004611f1d565b610835565b3480156102f157600080fd5b506102fa61087f565b604051908152602001610240565b34801561031457600080fd5b506102c3610323366004611dbb565b610897565b34801561033457600080fd5b506102c3610343366004611dbb565b6108a2565b34801561035457600080fd5b506102c3610363366004611dbb565b610954565b34801561037457600080fd5b506102c3610383366004611f1d565b61096f565b34801561039457600080fd5b5060cb546102349060ff1681565b3480156103ae57600080fd5b5061025e6109ac565b3480156103c357600080fd5b506102c36103d2366004611d56565b610a3a565b3480156103e357600080fd5b5061025e610aa7565b3480156103f857600080fd5b5061028b610407366004612016565b610ab4565b34801561041857600080fd5b506102fa60ce5481565b34801561042e57600080fd5b506102fa61043d366004611d39565b610ac6565b34801561044e57600080fd5b506102c3610b14565b34801561046357600080fd5b506102c3610472366004611f1d565b610b4a565b34801561048357600080fd5b506097546001600160a01b031661028b565b3480156104a157600080fd5b5061025e610b87565b3480156104b657600080fd5b506102c36104c5366004612016565b610b96565b6102c36104d8366004612016565b610bc5565b3480156104e957600080fd5b506102c36104f8366004611e7b565b610bfc565b34801561050957600080fd5b5061025e610c43565b34801561051e57600080fd5b5061025e61052d366004612016565b610c50565b34801561053e57600080fd5b506102c361054d366004611f1d565b610c69565b34801561055e57600080fd5b506102c361056d36600461202f565b610ca6565b34801561057e57600080fd5b506102c361058d366004611dfc565b610cef565b34801561059e57600080fd5b5061025e6105ad366004612016565b610d33565b3480156105be57600080fd5b5061025e61100f565b3480156105d357600080fd5b506102c36105e2366004611ea9565b61101c565b3480156105f357600080fd5b506102fa60cd5481565b34801561060957600080fd5b50610234610618366004611d82565b6001600160a01b039182166000908152606c6020908152604080832093909416825291909152205460ff1690565b34801561065257600080fd5b506102c3610661366004611f51565b611059565b34801561067257600080fd5b506102c3610681366004611d39565b61111e565b60006001600160e01b031982166380ac58cd60e01b14806106b757506001600160e01b03198216635b5e139f60e01b145b806106d257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060606780546106e7906122f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610713906122f2565b80156107605780601f1061073557610100808354040283529160200191610760565b820191906000526020600020905b81548152906001019060200180831161074357829003601f168201915b5050505050905090565b6000610775826111b6565b610792576040516333d1c03960e21b815260040160405180910390fd5b506000908152606b60205260409020546001600160a01b031690565b60006107b982610ab4565b9050806001600160a01b0316836001600160a01b031614156107ee5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610825576108088133610618565b610825576040516367d9dca160e11b815260040160405180910390fd5b6108308383836111f6565b505050565b6097546001600160a01b031633146108685760405162461bcd60e51b815260040161085f90612203565b60405180910390fd5b805161087b9060ca906020840190611c00565b5050565b600061088a60cd5490565b6066546065540303905090565b610830838383611252565b6097546001600160a01b031633146108cc5760405162461bcd60e51b815260040161085f90612203565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb90604401602060405180830381600087803b15801561091657600080fd5b505af115801561092a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094e9190611ec6565b50505050565b61083083838360405180602001604052806000815250610cef565b6097546001600160a01b031633146109995760405162461bcd60e51b815260040161085f90612203565b805161087b9060cc906020840190611c00565b60ca80546109b9906122f2565b80601f01602080910402602001604051908101604052809291908181526020018280546109e5906122f2565b8015610a325780601f10610a0757610100808354040283529160200191610a32565b820191906000526020600020905b815481529060010190602001808311610a1557829003601f168201915b505050505081565b6097546001600160a01b03163314610a645760405162461bcd60e51b815260040161085f90612203565b80471015610a7157600080fd5b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610830573d6000803e3d6000fd5b60c980546109b9906122f2565b6000610abf8261143f565b5192915050565b60006001600160a01b038216610aef576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152606a60205260409020546001600160401b031690565b6097546001600160a01b03163314610b3e5760405162461bcd60e51b815260040161085f90612203565b610b486000611568565b565b6097546001600160a01b03163314610b745760405162461bcd60e51b815260040161085f90612203565b805161087b9060c9906020840190611c00565b6060606880546106e7906122f2565b6097546001600160a01b03163314610bc05760405162461bcd60e51b815260040161085f90612203565b60ce55565b6097546001600160a01b03163314610bef5760405162461bcd60e51b815260040161085f90612203565b610bf933826115ba565b50565b610c0682826115d4565b33610c196097546001600160a01b031690565b6001600160a01b03161461087b5761087b610c3c6097546001600160a01b031690565b60016115d4565b60cc80546109b9906122f2565b60cf60205260009081526040902080546109b9906122f2565b6097546001600160a01b03163314610c935760405162461bcd60e51b815260040161085f90612203565b805161087b9060d0906020840190611c00565b6097546001600160a01b03163314610cd05760405162461bcd60e51b815260040161085f90612203565b600082815260cf60209081526040909120825161083092840190611c00565b610cfa848484611252565b6001600160a01b0383163b1561094e57610d168484848461166a565b61094e576040516368d2bf6b60e11b815260040160405180910390fd5b6060610d3e826111b6565b610da25760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161085f565b60cb5460ff16610e3e5760cc8054610db9906122f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610de5906122f2565b8015610e325780601f10610e0757610100808354040283529160200191610e32565b820191906000526020600020905b815481529060010190602001808311610e1557829003601f168201915b50505050509050919050565b600082815260cf602052604081208054610e57906122f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610e83906122f2565b8015610ed05780601f10610ea557610100808354040283529160200191610ed0565b820191906000526020600020905b815481529060010190602001808311610eb357829003601f168201915b50505050509050600081511115610ee75792915050565b600060d08054610ef6906122f2565b90501115610f915760d08054610f0b906122f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610f37906122f2565b8015610f845780601f10610f5957610100808354040283529160200191610f84565b820191906000526020600020905b815481529060010190602001808311610f6757829003601f168201915b5050505050915050919050565b6000610f9b611762565b90506000610fa885611771565b60ce5490915015610fc257610fbf8560ce5461186e565b90505b6000825111610fe05760405180602001604052806000815250611006565b818160ca604051602001610ff6939291906120a1565b6040516020818303038152906040525b95945050505050565b60d080546109b9906122f2565b6097546001600160a01b031633146110465760405162461bcd60e51b815260040161085f90612203565b60cb805460ff1916911515919091179055565b60006110656001611926565b9050801561107d576000805461ff0019166101001790555b60cd82905561108c87876119b3565b835161109f9060c9906020870190611c00565b5082516110b39060ca906020860190611c00565b5060cb805460ff19166001179055600060ce556110cf85611568565b8015611115576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050565b6097546001600160a01b031633146111485760405162461bcd60e51b815260040161085f90612203565b6001600160a01b0381166111ad5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161085f565b610bf981611568565b6000816111c260cd5490565b111580156111d1575060655482105b80156106d2575050600090815260696020526040902054600160e01b900460ff161590565b6000828152606b602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061125d8261143f565b9050836001600160a01b031681600001516001600160a01b0316146112945760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806112b257506112b28533610618565b806112cd5750336112c28461076a565b6001600160a01b0316145b9050806112ed57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661131457604051633a954ecd60e21b815260040160405180910390fd5b611320600084876111f6565b6001600160a01b038581166000908152606a60209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652606990945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166113f45760655482146113f457805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b6040805160608101825260008082526020820181905291810191909152818061146760cd5490565b1161154f5760655481101561154f57600081815260696020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061154d5780516001600160a01b0316156114e4579392505050565b5060001901600081815260696020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611548579392505050565b6114e4565b505b604051636f96cda160e11b815260040160405180910390fd5b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61087b8282604051806020016040528060008152506119e4565b6001600160a01b0382163314156115fe5760405163b06307db60e01b815260040160405180910390fd5b336000818152606c602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061169f903390899088908890600401612165565b602060405180830381600087803b1580156116b957600080fd5b505af19250505080156116e9575060408051601f3d908101601f191682019092526116e691810190611f00565b60015b611744573d808015611717576040519150601f19603f3d011682016040523d82523d6000602084013e61171c565b606091505b50805161173c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606060c980546106e7906122f2565b6060816117955750506040805180820190915260018152600360fc1b602082015290565b8160005b81156117bf57806117a98161232d565b91506117b89050600a8361229b565b9150611799565b6000816001600160401b038111156117d9576117d961239e565b6040519080825280601f01601f191660200182016040528015611803576020820181803683370190505b5090505b841561175a576118186001836122af565b9150611825600a86612348565b611830906030612283565b60f81b81838151811061184557611845612388565b60200101906001600160f81b031916908160001a905350611867600a8661229b565b9450611807565b60606000826001600160401b0381111561188a5761188a61239e565b6040519080825280601f01601f1916602001820160405280156118b4576020820181803683370190505b5090505b821561191f576118c96001846122af565b92506118d6600a85612348565b6118e1906030612283565b60f81b8184815181106118f6576118f6612388565b60200101906001600160f81b031916908160001a905350611918600a8561229b565b93506118b8565b9392505050565b60008054610100900460ff161561196d578160ff1660011480156119495750303b155b6119655760405162461bcd60e51b815260040161085f906121b5565b506000919050565b60005460ff8084169116106119945760405162461bcd60e51b815260040161085f906121b5565b506000805460ff191660ff92909216919091179055600190565b919050565b600054610100900460ff166119da5760405162461bcd60e51b815260040161085f90612238565b61087b8282611ba7565b6065546001600160a01b038416611a0d57604051622e076360e81b815260040160405180910390fd5b82611a2b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0384166000818152606a6020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452606990925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15611b53575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611b1c600087848060010195508761166a565b611b39576040516368d2bf6b60e11b815260040160405180910390fd5b808210611ad1578260655414611b4e57600080fd5b611b98565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611b54575b5060655561094e600085838684565b600054610100900460ff16611bce5760405162461bcd60e51b815260040161085f90612238565b8151611be1906067906020850190611c00565b508051611bf5906068906020840190611c00565b5060cd546065555050565b828054611c0c906122f2565b90600052602060002090601f016020900481019282611c2e5760008555611c74565b82601f10611c4757805160ff1916838001178555611c74565b82800160010185558215611c74579182015b82811115611c74578251825591602001919060010190611c59565b50611c80929150611c84565b5090565b5b80821115611c805760008155600101611c85565b60006001600160401b0380841115611cb357611cb361239e565b604051601f8501601f19908116603f01168101908282118183101715611cdb57611cdb61239e565b81604052809350858152868686011115611cf457600080fd5b858560208301376000602087830101525050509392505050565b80356119ae816123b4565b600082601f830112611d2a57600080fd5b61191f83833560208501611c99565b600060208284031215611d4b57600080fd5b813561191f816123b4565b60008060408385031215611d6957600080fd5b8235611d74816123b4565b946020939093013593505050565b60008060408385031215611d9557600080fd5b8235611da0816123b4565b91506020830135611db0816123b4565b809150509250929050565b600080600060608486031215611dd057600080fd5b8335611ddb816123b4565b92506020840135611deb816123b4565b929592945050506040919091013590565b60008060008060808587031215611e1257600080fd5b8435611e1d816123b4565b93506020850135611e2d816123b4565b92506040850135915060608501356001600160401b03811115611e4f57600080fd5b8501601f81018713611e6057600080fd5b611e6f87823560208401611c99565b91505092959194509250565b60008060408385031215611e8e57600080fd5b8235611e99816123b4565b91506020830135611db0816123c9565b600060208284031215611ebb57600080fd5b813561191f816123c9565b600060208284031215611ed857600080fd5b815161191f816123c9565b600060208284031215611ef557600080fd5b813561191f816123d7565b600060208284031215611f1257600080fd5b815161191f816123d7565b600060208284031215611f2f57600080fd5b81356001600160401b03811115611f4557600080fd5b61175a84828501611d19565b60008060008060008060c08789031215611f6a57600080fd5b86356001600160401b0380821115611f8157600080fd5b611f8d8a838b01611d19565b97506020890135915080821115611fa357600080fd5b611faf8a838b01611d19565b9650611fbd60408a01611d0e565b95506060890135915080821115611fd357600080fd5b611fdf8a838b01611d19565b94506080890135915080821115611ff557600080fd5b5061200289828a01611d19565b92505060a087013590509295509295509295565b60006020828403121561202857600080fd5b5035919050565b6000806040838503121561204257600080fd5b8235915060208301356001600160401b0381111561205f57600080fd5b61206b85828601611d19565b9150509250929050565b6000815180845261208d8160208601602086016122c6565b601f01601f19169290920160200192915050565b6000845160206120b48285838a016122c6565b8551918401916120c78184848a016122c6565b8554920191600090600181811c90808316806120e457607f831692505b85831081141561210257634e487b7160e01b85526022600452602485fd5b808015612116576001811461212757612154565b60ff19851688528388019550612154565b60008b81526020902060005b8581101561214c5781548a820152908401908801612133565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061219890830184612075565b9695505050505050565b60208152600061191f6020830184612075565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600082198211156122965761229661235c565b500190565b6000826122aa576122aa612372565b500490565b6000828210156122c1576122c161235c565b500390565b60005b838110156122e15781810151838201526020016122c9565b8381111561094e5750506000910152565b600181811c9082168061230657607f821691505b6020821081141561232757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156123415761234161235c565b5060010190565b60008261235757612357612372565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610bf957600080fd5b8015158114610bf957600080fd5b6001600160e01b031981168114610bf957600080fdfea2646970667358221220baf02539bde2d3b3325c37d223dd4b4c5cd139fb554c3e644d74ab648e3baa2c64736f6c63430008070033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220da7e6bf5bb6b3d04980f69019c4ecd36119173696d03534c9231e81aac27112964736f6c63430008070033
Deployed Bytecode
0x608060405260043610620000d25760003560e01c8063641254bd11620000895780638129fc1c11620000605780638129fc1c14620002155780638da5cb5b146200022d578063ddca3f431462000257578063f2fde38b146200026f57600080fd5b8063641254bd14620001b35780636a1db1bf14620001d8578063715018a614620001fd57600080fd5b80632fde70d114620000d75780633659cfe614620000f05780634f1ef286146200011557806352d1902d146200012c57806354fd4d50146200015757806356a6d9ef146200018e575b600080fd5b620000ee620000e836600462001025565b62000294565b005b348015620000fd57600080fd5b50620000ee6200010f36600462000f51565b62000399565b620000ee6200012636600462000fa0565b62000485565b3480156200013957600080fd5b506200014462000562565b6040519081526020015b60405180910390f35b3480156200016457600080fd5b506040805180820182526005815264312e302e3360d81b602082015290516200014e91906200114d565b3480156200019b57600080fd5b50620000ee620001ad36600462000f71565b62000618565b348015620001c057600080fd5b50620000ee620001d236600462000f51565b6200068f565b348015620001e557600080fd5b50620000ee620001f7366004620010e7565b620006de565b3480156200020a57600080fd5b50620000ee62000710565b3480156200022257600080fd5b50620000ee6200074b565b3480156200023a57600080fd5b506097546040516001600160a01b0390911681526020016200014e565b3480156200026457600080fd5b506200014460ca5481565b3480156200027c57600080fd5b50620000ee6200028e36600462000f51565b6200081b565b6097546001600160a01b03163314620002ca5760405162461bcd60e51b8152600401620002c190620012c0565b60405180910390fd5b60c954600090620002e4906001600160a01b0316620008ba565b6040516378671ee960e11b81529091506001600160a01b0382169063f0ce3dd2906200031f908990899033908a908a908a9060040162001162565b600060405180830381600087803b1580156200033a57600080fd5b505af11580156200034f573d6000803e3d6000fd5b50506040513381526001600160a01b03841692507f33c981baba081f8fd2c52ac6ad1ea95b6814b4376640f55689051f6584729688915060200160405180910390a2505050505050565b306001600160a01b037f000000000000000000000000f9781431bbc298b570d40e120527f8d751bbadb5161415620003e55760405162461bcd60e51b8152600401620002c190620011da565b7f000000000000000000000000f9781431bbc298b570d40e120527f8d751bbadb56001600160a01b03166200043060008051602062003931833981519152546001600160a01b031690565b6001600160a01b031614620004595760405162461bcd60e51b8152600401620002c19062001226565b620004648162000959565b60408051600080825260208201909252620004829183919062000986565b50565b306001600160a01b037f000000000000000000000000f9781431bbc298b570d40e120527f8d751bbadb5161415620004d15760405162461bcd60e51b8152600401620002c190620011da565b7f000000000000000000000000f9781431bbc298b570d40e120527f8d751bbadb56001600160a01b03166200051c60008051602062003931833981519152546001600160a01b031690565b6001600160a01b031614620005455760405162461bcd60e51b8152600401620002c19062001226565b620005508262000959565b6200055e8282600162000986565b5050565b6000306001600160a01b037f000000000000000000000000f9781431bbc298b570d40e120527f8d751bbadb51614620006045760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401620002c1565b506000805160206200393183398151915290565b6097546001600160a01b03163314620006455760405162461bcd60e51b8152600401620002c190620012c0565b804710156200065357600080fd5b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156200068a573d6000803e3d6000fd5b505050565b6097546001600160a01b03163314620006bc5760405162461bcd60e51b8152600401620002c190620012c0565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b6097546001600160a01b031633146200070b5760405162461bcd60e51b8152600401620002c190620012c0565b60ca55565b6097546001600160a01b031633146200073d5760405162461bcd60e51b8152600401620002c190620012c0565b62000749600062000b0e565b565b600062000759600162000b60565b9050801562000772576000805461ff0019166101001790555b6200077c62000bf0565b6200078662000c25565b604051620007949062000ea3565b604051809103906000f080158015620007b1573d6000803e3d6000fd5b5060c980546001600160a01b0319166001600160a01b0392909216919091179055801562000482576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b6097546001600160a01b03163314620008485760405162461bcd60e51b8152600401620002c190620012c0565b6001600160a01b038116620008af5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620002c1565b620004828162000b0e565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528260601b60148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f09150506001600160a01b038116620009545760405162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b6044820152606401620002c1565b919050565b6097546001600160a01b03163314620004825760405162461bcd60e51b8152600401620002c190620012c0565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615620009bc576200068a8362000c4f565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b158015620009f657600080fd5b505afa92505050801562000a29575060408051601f3d908101601f1916820190925262000a26918101906200100b565b60015b62000a8e5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401620002c1565b60008051602062003931833981519152811462000b005760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401620002c1565b506200068a83838362000cee565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008054610100900460ff161562000bac578160ff16600114801562000b855750303b155b62000ba45760405162461bcd60e51b8152600401620002c19062001272565b506000919050565b60005460ff80841691161062000bd65760405162461bcd60e51b8152600401620002c19062001272565b506000805460ff191660ff92909216919091179055600190565b600054610100900460ff1662000c1a5760405162461bcd60e51b8152600401620002c190620012f5565b620007493362000b0e565b600054610100900460ff16620007495760405162461bcd60e51b8152600401620002c190620012f5565b6001600160a01b0381163b62000cbe5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401620002c1565b6000805160206200393183398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b62000cf98362000d1f565b60008251118062000d075750805b156200068a5762000d19838362000d61565b50505050565b62000d2a8162000c4f565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b62000dcb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401620002c1565b600080846001600160a01b03168460405162000de891906200112f565b600060405180830381855af49150503d806000811462000e25576040519150601f19603f3d011682016040523d82523d6000602084013e62000e2a565b606091505b509150915062000e558282604051806060016040528060278152602001620039516027913962000e5e565b95945050505050565b6060831562000e6f57508162000e9c565b82511562000e805782518084602001fd5b8160405162461bcd60e51b8152600401620002c191906200114d565b9392505050565b612595806200139c83390190565b600067ffffffffffffffff8084111562000ecf5762000ecf6200136f565b604051601f8501601f19908116603f0116810190828211818310171562000efa5762000efa6200136f565b8160405280935085815286868601111562000f1457600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011262000f4057600080fd5b62000e9c8383356020850162000eb1565b60006020828403121562000f6457600080fd5b813562000e9c8162001385565b6000806040838503121562000f8557600080fd5b823562000f928162001385565b946020939093013593505050565b6000806040838503121562000fb457600080fd5b823562000fc18162001385565b9150602083013567ffffffffffffffff81111562000fde57600080fd5b8301601f8101851362000ff057600080fd5b620010018582356020840162000eb1565b9150509250929050565b6000602082840312156200101e57600080fd5b5051919050565b600080600080600060a086880312156200103e57600080fd5b853567ffffffffffffffff808211156200105757600080fd5b6200106589838a0162000f2e565b965060208801359150808211156200107c57600080fd5b6200108a89838a0162000f2e565b95506040880135915080821115620010a157600080fd5b620010af89838a0162000f2e565b94506060880135915080821115620010c657600080fd5b50620010d58882890162000f2e565b95989497509295608001359392505050565b600060208284031215620010fa57600080fd5b5035919050565b600081518084526200111b81602086016020860162001340565b601f01601f19169290920160200192915050565b600082516200114381846020870162001340565b9190910192915050565b60208152600062000e9c602083018462001101565b60c0815260006200117760c083018962001101565b82810360208401526200118b818962001101565b6001600160a01b038816604085015283810360608501529050620011b0818762001101565b90508281036080840152620011c6818662001101565b9150508260a0830152979650505050505050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b838110156200135d57818101518382015260200162001343565b8381111562000d195750506000910152565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146200048257600080fdfe60a06040819052600060808190526200001b9160c9916200007f565b506040805160208101918290526000908190526200003c9160ca916200007f565b5060cb805460ff191660011790556040805160208101918290526000908190526200006a9160d0916200007f565b503480156200007857600080fd5b5062000162565b8280546200008d9062000125565b90600052602060002090601f016020900481019282620000b15760008555620000fc565b82601f10620000cc57805160ff1916838001178555620000fc565b82800160010185558215620000fc579182015b82811115620000fc578251825591602001919060010190620000df565b506200010a9291506200010e565b5090565b5b808211156200010a57600081556001016200010f565b600181811c908216806200013a57607f821691505b602082108114156200015c57634e487b7160e01b600052602260045260246000fd5b50919050565b61242380620001726000396000f3fe60806040526004361061020f5760003560e01c80637ec4a65911610118578063b4d9c552116100a0578063e0a808531161006f578063e0a80853146105c7578063e6798baa146105e7578063e985e9c5146105fd578063f0ce3dd214610646578063f2fde38b1461066657600080fd5b8063b4d9c55214610552578063b88d4fde14610572578063c87b56dd14610592578063d7a4b957146105b257600080fd5b8063a0712d68116100e7578063a0712d68146104ca578063a22cb465146104dd578063a45ba8e7146104fd578063ad4b68f214610512578063b10c27d81461053257600080fd5b80637ec4a659146104575780638da5cb5b1461047757806395d89b411461049557806398021b91146104aa57600080fd5b80634fdd43cb1161019b57806362b99ad41161016a57806362b99ad4146103d75780636352211e146103ec5780636a067d2a1461040c57806370a0823114610422578063715018a61461044257600080fd5b80634fdd43cb1461036857806351830227146103885780635503a0e8146103a257806356a6d9ef146103b757600080fd5b806316ba10e0116101e257806316ba10e0146102c557806318160ddd146102e557806323b872dd1461030857806329f61b081461032857806342842e0e1461034857600080fd5b806301ffc9a71461021457806306fdde0314610249578063081812fc1461026b578063095ea7b3146102a3575b600080fd5b34801561022057600080fd5b5061023461022f366004611ee3565b610686565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b5061025e6106d8565b60405161024091906121a2565b34801561027757600080fd5b5061028b610286366004612016565b61076a565b6040516001600160a01b039091168152602001610240565b3480156102af57600080fd5b506102c36102be366004611d56565b6107ae565b005b3480156102d157600080fd5b506102c36102e0366004611f1d565b610835565b3480156102f157600080fd5b506102fa61087f565b604051908152602001610240565b34801561031457600080fd5b506102c3610323366004611dbb565b610897565b34801561033457600080fd5b506102c3610343366004611dbb565b6108a2565b34801561035457600080fd5b506102c3610363366004611dbb565b610954565b34801561037457600080fd5b506102c3610383366004611f1d565b61096f565b34801561039457600080fd5b5060cb546102349060ff1681565b3480156103ae57600080fd5b5061025e6109ac565b3480156103c357600080fd5b506102c36103d2366004611d56565b610a3a565b3480156103e357600080fd5b5061025e610aa7565b3480156103f857600080fd5b5061028b610407366004612016565b610ab4565b34801561041857600080fd5b506102fa60ce5481565b34801561042e57600080fd5b506102fa61043d366004611d39565b610ac6565b34801561044e57600080fd5b506102c3610b14565b34801561046357600080fd5b506102c3610472366004611f1d565b610b4a565b34801561048357600080fd5b506097546001600160a01b031661028b565b3480156104a157600080fd5b5061025e610b87565b3480156104b657600080fd5b506102c36104c5366004612016565b610b96565b6102c36104d8366004612016565b610bc5565b3480156104e957600080fd5b506102c36104f8366004611e7b565b610bfc565b34801561050957600080fd5b5061025e610c43565b34801561051e57600080fd5b5061025e61052d366004612016565b610c50565b34801561053e57600080fd5b506102c361054d366004611f1d565b610c69565b34801561055e57600080fd5b506102c361056d36600461202f565b610ca6565b34801561057e57600080fd5b506102c361058d366004611dfc565b610cef565b34801561059e57600080fd5b5061025e6105ad366004612016565b610d33565b3480156105be57600080fd5b5061025e61100f565b3480156105d357600080fd5b506102c36105e2366004611ea9565b61101c565b3480156105f357600080fd5b506102fa60cd5481565b34801561060957600080fd5b50610234610618366004611d82565b6001600160a01b039182166000908152606c6020908152604080832093909416825291909152205460ff1690565b34801561065257600080fd5b506102c3610661366004611f51565b611059565b34801561067257600080fd5b506102c3610681366004611d39565b61111e565b60006001600160e01b031982166380ac58cd60e01b14806106b757506001600160e01b03198216635b5e139f60e01b145b806106d257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060606780546106e7906122f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610713906122f2565b80156107605780601f1061073557610100808354040283529160200191610760565b820191906000526020600020905b81548152906001019060200180831161074357829003601f168201915b5050505050905090565b6000610775826111b6565b610792576040516333d1c03960e21b815260040160405180910390fd5b506000908152606b60205260409020546001600160a01b031690565b60006107b982610ab4565b9050806001600160a01b0316836001600160a01b031614156107ee5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610825576108088133610618565b610825576040516367d9dca160e11b815260040160405180910390fd5b6108308383836111f6565b505050565b6097546001600160a01b031633146108685760405162461bcd60e51b815260040161085f90612203565b60405180910390fd5b805161087b9060ca906020840190611c00565b5050565b600061088a60cd5490565b6066546065540303905090565b610830838383611252565b6097546001600160a01b031633146108cc5760405162461bcd60e51b815260040161085f90612203565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb90604401602060405180830381600087803b15801561091657600080fd5b505af115801561092a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094e9190611ec6565b50505050565b61083083838360405180602001604052806000815250610cef565b6097546001600160a01b031633146109995760405162461bcd60e51b815260040161085f90612203565b805161087b9060cc906020840190611c00565b60ca80546109b9906122f2565b80601f01602080910402602001604051908101604052809291908181526020018280546109e5906122f2565b8015610a325780601f10610a0757610100808354040283529160200191610a32565b820191906000526020600020905b815481529060010190602001808311610a1557829003601f168201915b505050505081565b6097546001600160a01b03163314610a645760405162461bcd60e51b815260040161085f90612203565b80471015610a7157600080fd5b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610830573d6000803e3d6000fd5b60c980546109b9906122f2565b6000610abf8261143f565b5192915050565b60006001600160a01b038216610aef576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152606a60205260409020546001600160401b031690565b6097546001600160a01b03163314610b3e5760405162461bcd60e51b815260040161085f90612203565b610b486000611568565b565b6097546001600160a01b03163314610b745760405162461bcd60e51b815260040161085f90612203565b805161087b9060c9906020840190611c00565b6060606880546106e7906122f2565b6097546001600160a01b03163314610bc05760405162461bcd60e51b815260040161085f90612203565b60ce55565b6097546001600160a01b03163314610bef5760405162461bcd60e51b815260040161085f90612203565b610bf933826115ba565b50565b610c0682826115d4565b33610c196097546001600160a01b031690565b6001600160a01b03161461087b5761087b610c3c6097546001600160a01b031690565b60016115d4565b60cc80546109b9906122f2565b60cf60205260009081526040902080546109b9906122f2565b6097546001600160a01b03163314610c935760405162461bcd60e51b815260040161085f90612203565b805161087b9060d0906020840190611c00565b6097546001600160a01b03163314610cd05760405162461bcd60e51b815260040161085f90612203565b600082815260cf60209081526040909120825161083092840190611c00565b610cfa848484611252565b6001600160a01b0383163b1561094e57610d168484848461166a565b61094e576040516368d2bf6b60e11b815260040160405180910390fd5b6060610d3e826111b6565b610da25760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161085f565b60cb5460ff16610e3e5760cc8054610db9906122f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610de5906122f2565b8015610e325780601f10610e0757610100808354040283529160200191610e32565b820191906000526020600020905b815481529060010190602001808311610e1557829003601f168201915b50505050509050919050565b600082815260cf602052604081208054610e57906122f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610e83906122f2565b8015610ed05780601f10610ea557610100808354040283529160200191610ed0565b820191906000526020600020905b815481529060010190602001808311610eb357829003601f168201915b50505050509050600081511115610ee75792915050565b600060d08054610ef6906122f2565b90501115610f915760d08054610f0b906122f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610f37906122f2565b8015610f845780601f10610f5957610100808354040283529160200191610f84565b820191906000526020600020905b815481529060010190602001808311610f6757829003601f168201915b5050505050915050919050565b6000610f9b611762565b90506000610fa885611771565b60ce5490915015610fc257610fbf8560ce5461186e565b90505b6000825111610fe05760405180602001604052806000815250611006565b818160ca604051602001610ff6939291906120a1565b6040516020818303038152906040525b95945050505050565b60d080546109b9906122f2565b6097546001600160a01b031633146110465760405162461bcd60e51b815260040161085f90612203565b60cb805460ff1916911515919091179055565b60006110656001611926565b9050801561107d576000805461ff0019166101001790555b60cd82905561108c87876119b3565b835161109f9060c9906020870190611c00565b5082516110b39060ca906020860190611c00565b5060cb805460ff19166001179055600060ce556110cf85611568565b8015611115576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050565b6097546001600160a01b031633146111485760405162461bcd60e51b815260040161085f90612203565b6001600160a01b0381166111ad5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161085f565b610bf981611568565b6000816111c260cd5490565b111580156111d1575060655482105b80156106d2575050600090815260696020526040902054600160e01b900460ff161590565b6000828152606b602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061125d8261143f565b9050836001600160a01b031681600001516001600160a01b0316146112945760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806112b257506112b28533610618565b806112cd5750336112c28461076a565b6001600160a01b0316145b9050806112ed57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661131457604051633a954ecd60e21b815260040160405180910390fd5b611320600084876111f6565b6001600160a01b038581166000908152606a60209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652606990945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166113f45760655482146113f457805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b6040805160608101825260008082526020820181905291810191909152818061146760cd5490565b1161154f5760655481101561154f57600081815260696020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061154d5780516001600160a01b0316156114e4579392505050565b5060001901600081815260696020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611548579392505050565b6114e4565b505b604051636f96cda160e11b815260040160405180910390fd5b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61087b8282604051806020016040528060008152506119e4565b6001600160a01b0382163314156115fe5760405163b06307db60e01b815260040160405180910390fd5b336000818152606c602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061169f903390899088908890600401612165565b602060405180830381600087803b1580156116b957600080fd5b505af19250505080156116e9575060408051601f3d908101601f191682019092526116e691810190611f00565b60015b611744573d808015611717576040519150601f19603f3d011682016040523d82523d6000602084013e61171c565b606091505b50805161173c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606060c980546106e7906122f2565b6060816117955750506040805180820190915260018152600360fc1b602082015290565b8160005b81156117bf57806117a98161232d565b91506117b89050600a8361229b565b9150611799565b6000816001600160401b038111156117d9576117d961239e565b6040519080825280601f01601f191660200182016040528015611803576020820181803683370190505b5090505b841561175a576118186001836122af565b9150611825600a86612348565b611830906030612283565b60f81b81838151811061184557611845612388565b60200101906001600160f81b031916908160001a905350611867600a8661229b565b9450611807565b60606000826001600160401b0381111561188a5761188a61239e565b6040519080825280601f01601f1916602001820160405280156118b4576020820181803683370190505b5090505b821561191f576118c96001846122af565b92506118d6600a85612348565b6118e1906030612283565b60f81b8184815181106118f6576118f6612388565b60200101906001600160f81b031916908160001a905350611918600a8561229b565b93506118b8565b9392505050565b60008054610100900460ff161561196d578160ff1660011480156119495750303b155b6119655760405162461bcd60e51b815260040161085f906121b5565b506000919050565b60005460ff8084169116106119945760405162461bcd60e51b815260040161085f906121b5565b506000805460ff191660ff92909216919091179055600190565b919050565b600054610100900460ff166119da5760405162461bcd60e51b815260040161085f90612238565b61087b8282611ba7565b6065546001600160a01b038416611a0d57604051622e076360e81b815260040160405180910390fd5b82611a2b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0384166000818152606a6020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452606990925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15611b53575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611b1c600087848060010195508761166a565b611b39576040516368d2bf6b60e11b815260040160405180910390fd5b808210611ad1578260655414611b4e57600080fd5b611b98565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611b54575b5060655561094e600085838684565b600054610100900460ff16611bce5760405162461bcd60e51b815260040161085f90612238565b8151611be1906067906020850190611c00565b508051611bf5906068906020840190611c00565b5060cd546065555050565b828054611c0c906122f2565b90600052602060002090601f016020900481019282611c2e5760008555611c74565b82601f10611c4757805160ff1916838001178555611c74565b82800160010185558215611c74579182015b82811115611c74578251825591602001919060010190611c59565b50611c80929150611c84565b5090565b5b80821115611c805760008155600101611c85565b60006001600160401b0380841115611cb357611cb361239e565b604051601f8501601f19908116603f01168101908282118183101715611cdb57611cdb61239e565b81604052809350858152868686011115611cf457600080fd5b858560208301376000602087830101525050509392505050565b80356119ae816123b4565b600082601f830112611d2a57600080fd5b61191f83833560208501611c99565b600060208284031215611d4b57600080fd5b813561191f816123b4565b60008060408385031215611d6957600080fd5b8235611d74816123b4565b946020939093013593505050565b60008060408385031215611d9557600080fd5b8235611da0816123b4565b91506020830135611db0816123b4565b809150509250929050565b600080600060608486031215611dd057600080fd5b8335611ddb816123b4565b92506020840135611deb816123b4565b929592945050506040919091013590565b60008060008060808587031215611e1257600080fd5b8435611e1d816123b4565b93506020850135611e2d816123b4565b92506040850135915060608501356001600160401b03811115611e4f57600080fd5b8501601f81018713611e6057600080fd5b611e6f87823560208401611c99565b91505092959194509250565b60008060408385031215611e8e57600080fd5b8235611e99816123b4565b91506020830135611db0816123c9565b600060208284031215611ebb57600080fd5b813561191f816123c9565b600060208284031215611ed857600080fd5b815161191f816123c9565b600060208284031215611ef557600080fd5b813561191f816123d7565b600060208284031215611f1257600080fd5b815161191f816123d7565b600060208284031215611f2f57600080fd5b81356001600160401b03811115611f4557600080fd5b61175a84828501611d19565b60008060008060008060c08789031215611f6a57600080fd5b86356001600160401b0380821115611f8157600080fd5b611f8d8a838b01611d19565b97506020890135915080821115611fa357600080fd5b611faf8a838b01611d19565b9650611fbd60408a01611d0e565b95506060890135915080821115611fd357600080fd5b611fdf8a838b01611d19565b94506080890135915080821115611ff557600080fd5b5061200289828a01611d19565b92505060a087013590509295509295509295565b60006020828403121561202857600080fd5b5035919050565b6000806040838503121561204257600080fd5b8235915060208301356001600160401b0381111561205f57600080fd5b61206b85828601611d19565b9150509250929050565b6000815180845261208d8160208601602086016122c6565b601f01601f19169290920160200192915050565b6000845160206120b48285838a016122c6565b8551918401916120c78184848a016122c6565b8554920191600090600181811c90808316806120e457607f831692505b85831081141561210257634e487b7160e01b85526022600452602485fd5b808015612116576001811461212757612154565b60ff19851688528388019550612154565b60008b81526020902060005b8581101561214c5781548a820152908401908801612133565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061219890830184612075565b9695505050505050565b60208152600061191f6020830184612075565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600082198211156122965761229661235c565b500190565b6000826122aa576122aa612372565b500490565b6000828210156122c1576122c161235c565b500390565b60005b838110156122e15781810151838201526020016122c9565b8381111561094e5750506000910152565b600181811c9082168061230657607f821691505b6020821081141561232757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156123415761234161235c565b5060010190565b60008261235757612357612372565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610bf957600080fd5b8015158114610bf957600080fd5b6001600160e01b031981168114610bf957600080fdfea2646970667358221220baf02539bde2d3b3325c37d223dd4b4c5cd139fb554c3e644d74ab648e3baa2c64736f6c63430008070033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220da7e6bf5bb6b3d04980f69019c4ecd36119173696d03534c9231e81aac27112964736f6c63430008070033
Deployed Bytecode Sourcemap
85539:1781:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86065:550;;;;;;:::i;:::-;;:::i;:::-;;50966:200;;;;;;;;;;-1:-1:-1;50966:200:0;;;;;:::i;:::-;;:::i;51425:225::-;;;;;;:::i;:::-;;:::i;50644:133::-;;;;;;;;;;;;;:::i;:::-;;;4593:25:1;;;4581:2;4566:18;50644:133:0;;;;;;;;86785:95;;;;;;;;;;-1:-1:-1;86858:14:0;;;;;;;;;;;-1:-1:-1;;;86858:14:0;;;;86785:95;;;;86858:14;86785:95;:::i;87146:171::-;;;;;;;;;;-1:-1:-1;87146:171:0;;;;;:::i;:::-;;:::i;86888:156::-;;;;;;;;;;-1:-1:-1;86888:156:0;;;;;:::i;:::-;;:::i;86684:85::-;;;;;;;;;;-1:-1:-1;86684:85:0;;;;;:::i;:::-;;:::i;79657:103::-;;;;;;;;;;;;;:::i;85814:187::-;;;;;;;;;;;;;:::i;79006:87::-;;;;;;;;;;-1:-1:-1;79079:6:0;;79006:87;;-1:-1:-1;;;;;79079:6:0;;;4385:51:1;;4373:2;4358:18;79006:87:0;4239:203:1;85669:18:0;;;;;;;;;;;;;;;;79915:201;;;;;;;;;;-1:-1:-1;79915:201:0;;;;;:::i;:::-;;:::i;86065:550::-;79079:6;;-1:-1:-1;;;;;79079:6:0;54944:10;79226:23;79218:68;;;;-1:-1:-1;;;79218:68:0;;;;;;;:::i;:::-;;;;;;;;;86335:20:::1;::::0;86279:21:::1;::::0;86311:45:::1;::::0;-1:-1:-1;;;;;86335:20:0::1;86311:23;:45::i;:::-;86370:176;::::0;-1:-1:-1;;;86370:176:0;;86279:78;;-1:-1:-1;;;;;;86370:34:0;::::1;::::0;::::1;::::0;:176:::1;::::0;86405:5;;86425:7;;86447:10:::1;::::0;86472;;86497;;86522:13;;86370:176:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;86572:35:0::1;::::0;86596:10:::1;4385:51:1::0;;-1:-1:-1;;;;;86572:35:0;::::1;::::0;-1:-1:-1;86572:35:0::1;::::0;-1:-1:-1;4373:2:1;4358:18;86572:35:0::1;;;;;;;86268:347;86065:550:::0;;;;;:::o;50966:200::-;49507:4;-1:-1:-1;;;;;49516:6:0;49499:23;;;49491:80;;;;-1:-1:-1;;;49491:80:0;;;;;;;:::i;:::-;49614:6;-1:-1:-1;;;;;49590:30:0;:20;-1:-1:-1;;;;;;;;;;;41303:65:0;-1:-1:-1;;;;;41303:65:0;;41223:153;49590:20;-1:-1:-1;;;;;49590:30:0;;49582:87;;;;-1:-1:-1;;;49582:87:0;;;;;;;:::i;:::-;51050:36:::1;51068:17;51050;:36::i;:::-;51138:12;::::0;;51148:1:::1;51138:12:::0;;;::::1;::::0;::::1;::::0;;;51097:61:::1;::::0;51119:17;;51138:12;51097:21:::1;:61::i;:::-;50966:200:::0;:::o;51425:225::-;49507:4;-1:-1:-1;;;;;49516:6:0;49499:23;;;49491:80;;;;-1:-1:-1;;;49491:80:0;;;;;;;:::i;:::-;49614:6;-1:-1:-1;;;;;49590:30:0;:20;-1:-1:-1;;;;;;;;;;;41303:65:0;-1:-1:-1;;;;;41303:65:0;;41223:153;49590:20;-1:-1:-1;;;;;49590:30:0;;49582:87;;;;-1:-1:-1;;;49582:87:0;;;;;;;:::i;:::-;51543:36:::1;51561:17;51543;:36::i;:::-;51590:52;51612:17;51631:4;51637;51590:21;:52::i;:::-;51425:225:::0;;:::o;50644:133::-;50722:7;49952:4;-1:-1:-1;;;;;49961:6:0;49944:23;;49936:92;;;;-1:-1:-1;;;49936:92:0;;7374:2:1;49936:92:0;;;7356:21:1;7413:2;7393:18;;;7386:30;7452:34;7432:18;;;7425:62;7523:26;7503:18;;;7496:54;7567:19;;49936:92:0;7172:420:1;49936:92:0;-1:-1:-1;;;;;;;;;;;;50644:133:0;:::o;87146:171::-;79079:6;;-1:-1:-1;;;;;79079:6:0;54944:10;79226:23;79218:68;;;;-1:-1:-1;;;79218:68:0;;;;;;;:::i;:::-;87270:7:::1;87245:21;:32;;87237:41;;;::::0;::::1;;87289:20;::::0;-1:-1:-1;;;;;87289:11:0;::::1;::::0;:20;::::1;;;::::0;87301:7;;87289:20:::1;::::0;;;87301:7;87289:11;:20;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;87146:171:::0;;:::o;86888:156::-;79079:6;;-1:-1:-1;;;;;79079:6:0;54944:10;79226:23;79218:68;;;;-1:-1:-1;;;79218:68:0;;;;;;;:::i;:::-;86991:20:::1;:45:::0;;-1:-1:-1;;;;;;86991:45:0::1;-1:-1:-1::0;;;;;86991:45:0;;;::::1;::::0;;;::::1;::::0;;86888:156::o;86684:85::-;79079:6;;-1:-1:-1;;;;;79079:6:0;54944:10;79226:23;79218:68;;;;-1:-1:-1;;;79218:68:0;;;;;;;:::i;:::-;86749:3:::1;:12:::0;86684:85::o;79657:103::-;79079:6;;-1:-1:-1;;;;;79079:6:0;54944:10;79226:23;79218:68;;;;-1:-1:-1;;;79218:68:0;;;;;;;:::i;:::-;79722:30:::1;79749:1;79722:18;:30::i;:::-;79657:103::o:0;85814:187::-;36724:19;36746:25;36769:1;36746:22;:25::i;:::-;36724:47;;36786:14;36782:67;;;36817:13;:20;;-1:-1:-1;;36817:20:0;;;;;36782:67;85867:26:::1;:24;:26::i;:::-;85904:24;:22;:24::i;:::-;85970:22;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;85939:20:0::1;:54:::0;;-1:-1:-1;;;;;;85939:54:0::1;-1:-1:-1::0;;;;;85939:54:0;;;::::1;::::0;;;::::1;::::0;;36871:102;;;;36922:5;36906:21;;-1:-1:-1;;36906:21:0;;;36947:14;;-1:-1:-1;4781:36:1;;36947:14:0;;4769:2:1;4754:18;36947:14:0;;;;;;;36713:267;85814:187::o;79915:201::-;79079:6;;-1:-1:-1;;;;;79079:6:0;54944:10;79226:23;79218:68;;;;-1:-1:-1;;;79218:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;80004:22:0;::::1;79996:73;;;::::0;-1:-1:-1;;;79996:73:0;;6141:2:1;79996:73:0::1;::::0;::::1;6123:21:1::0;6180:2;6160:18;;;6153:30;6219:34;6199:18;;;6192:62;-1:-1:-1;;;6270:18:1;;;6263:36;6316:19;;79996:73:0::1;5939:402:1::0;79996:73:0::1;80080:28;80099:8;80080:18;:28::i;5171:524::-:0;5228:16;5298:4;5292:11;-1:-1:-1;;;5324:3:0;5317:79;5443:14;5437:4;5433:25;5426:4;5421:3;5417:14;5410:49;-1:-1:-1;;;5489:4:0;5484:3;5480:14;5473:90;5604:4;5599:3;5596:1;5589:20;5577:32;-1:-1:-1;;;;;;;5638:22:0;;5630:57;;;;-1:-1:-1;;;5630:57:0;;7799:2:1;5630:57:0;;;7781:21:1;7838:2;7818:18;;;7811:30;-1:-1:-1;;;7857:18:1;;;7850:52;7919:18;;5630:57:0;7597:346:1;5630:57:0;5171:524;;;:::o;87052:86::-;79079:6;;-1:-1:-1;;;;;79079:6:0;54944:10;79226:23;79218:68;;;;-1:-1:-1;;;79218:68:0;;;;;;;:::i;42641:992::-;40594:66;43095:59;;;43091:535;;;43171:37;43190:17;43171:18;:37::i;43091:535::-;43274:17;-1:-1:-1;;;;;43245:61:0;;:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43245:63:0;;;;;;;;-1:-1:-1;;43245:63:0;;;;;;;;;;;;:::i;:::-;;;43241:306;;43475:56;;-1:-1:-1;;;43475:56:0;;8975:2:1;43475:56:0;;;8957:21:1;9014:2;8994:18;;;8987:30;9053:34;9033:18;;;9026:62;-1:-1:-1;;;9104:18:1;;;9097:44;9158:19;;43475:56:0;8773:410:1;43241:306:0;-1:-1:-1;;;;;;;;;;;43359:28:0;;43351:82;;;;-1:-1:-1;;;43351:82:0;;8150:2:1;43351:82:0;;;8132:21:1;8189:2;8169:18;;;8162:30;8228:34;8208:18;;;8201:62;-1:-1:-1;;;8279:18:1;;;8272:39;8328:19;;43351:82:0;7948:405:1;43351:82:0;43309:140;43561:53;43579:17;43598:4;43604:9;43561:17;:53::i;80276:191::-;80369:6;;;-1:-1:-1;;;;;80386:17:0;;;-1:-1:-1;;;;;;80386:17:0;;;;;;;80419:40;;80369:6;;;80386:17;80369:6;;80419:40;;80350:16;;80419:40;80339:128;80276:191;:::o;38954:823::-;39018:4;39355:13;;;;;;;39351:419;;;39411:7;:12;;39422:1;39411:12;:61;;;;-1:-1:-1;39466:4:0;27536:19;:23;39411:61;39385:169;;;;-1:-1:-1;;;39385:169:0;;;;;;;:::i;:::-;-1:-1:-1;39576:5:0;;38954:823;-1:-1:-1;38954:823:0:o;39351:419::-;39622:12;;:22;;;;:12;;:22;39614:81;;;;-1:-1:-1;;;39614:81:0;;;;;;;:::i;:::-;-1:-1:-1;39710:12:0;:22;;-1:-1:-1;;39710:22:0;;;;;;;;;;;;-1:-1:-1;;38954:823:0:o;78812:113::-;38351:13;;;;;;;38343:69;;;;-1:-1:-1;;;38343:69:0;;;;;;;:::i;:::-;78885:32:::1;54944:10:::0;78885:18:::1;:32::i;48644:68::-:0;38351:13;;;;;;;38343:69;;;;-1:-1:-1;;;38343:69:0;;;;;;;:::i;41472:284::-;-1:-1:-1;;;;;27536:19:0;;;41546:106;;;;-1:-1:-1;;;41546:106:0;;9390:2:1;41546:106:0;;;9372:21:1;9429:2;9409:18;;;9402:30;9468:34;9448:18;;;9441:62;-1:-1:-1;;;9519:18:1;;;9512:43;9572:19;;41546:106:0;9188:409:1;41546:106:0;-1:-1:-1;;;;;;;;;;;41663:85:0;;-1:-1:-1;;;;;;41663:85:0;-1:-1:-1;;;;;41663:85:0;;;;;;;;;;41472:284::o;42165:297::-;42308:29;42319:17;42308:10;:29::i;:::-;42366:1;42352:4;:11;:15;:28;;;;42371:9;42352:28;42348:107;;;42397:46;42419:17;42438:4;42397:21;:46::i;:::-;;42165:297;;;:::o;41869:155::-;41936:37;41955:17;41936:18;:37::i;:::-;41989:27;;-1:-1:-1;;;;;41989:27:0;;;;;;;;41869:155;:::o;46902:461::-;46985:12;-1:-1:-1;;;;;27536:19:0;;;47010:88;;;;-1:-1:-1;;;47010:88:0;;10165:2:1;47010:88:0;;;10147:21:1;10204:2;10184:18;;;10177:30;10243:34;10223:18;;;10216:62;-1:-1:-1;;;10294:18:1;;;10287:36;10340:19;;47010:88:0;9963:402:1;47010:88:0;47172:12;47186:23;47213:6;-1:-1:-1;;;;;47213:19:0;47233:4;47213:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47171:67;;;;47256:99;47292:7;47301:10;47256:99;;;;;;;;;;;;;;;;;:35;:99::i;:::-;47249:106;46902:461;-1:-1:-1;;;;;46902:461:0:o;32815:712::-;32965:12;32994:7;32990:530;;;-1:-1:-1;33025:10:0;33018:17;;32990:530;33139:17;;:21;33135:374;;33337:10;33331:17;33398:15;33385:10;33381:2;33377:19;33370:44;33135:374;33480:12;33473:20;;-1:-1:-1;;;33473:20:0;;;;;;;;:::i;33135:374::-;32815:712;;;;;:::o;-1:-1:-1:-;;;;;;;;:::o;14:631:1:-;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:221::-;693:5;746:3;739:4;731:6;727:17;723:27;713:55;;764:1;761;754:12;713:55;786:79;861:3;852:6;839:20;832:4;824:6;820:17;786:79;:::i;876:247::-;935:6;988:2;976:9;967:7;963:23;959:32;956:52;;;1004:1;1001;994:12;956:52;1043:9;1030:23;1062:31;1087:5;1062:31;:::i;1388:323::-;1464:6;1472;1525:2;1513:9;1504:7;1500:23;1496:32;1493:52;;;1541:1;1538;1531:12;1493:52;1580:9;1567:23;1599:31;1624:5;1599:31;:::i;:::-;1649:5;1701:2;1686:18;;;;1673:32;;-1:-1:-1;;;1388:323:1:o;1716:584::-;1793:6;1801;1854:2;1842:9;1833:7;1829:23;1825:32;1822:52;;;1870:1;1867;1860:12;1822:52;1909:9;1896:23;1928:31;1953:5;1928:31;:::i;:::-;1978:5;-1:-1:-1;2034:2:1;2019:18;;2006:32;2061:18;2050:30;;2047:50;;;2093:1;2090;2083:12;2047:50;2116:22;;2169:4;2161:13;;2157:27;-1:-1:-1;2147:55:1;;2198:1;2195;2188:12;2147:55;2221:73;2286:7;2281:2;2268:16;2263:2;2259;2255:11;2221:73;:::i;:::-;2211:83;;;1716:584;;;;;:::o;2305:184::-;2375:6;2428:2;2416:9;2407:7;2403:23;2399:32;2396:52;;;2444:1;2441;2434:12;2396:52;-1:-1:-1;2467:16:1;;2305:184;-1:-1:-1;2305:184:1:o;2494:1013::-;2629:6;2637;2645;2653;2661;2714:3;2702:9;2693:7;2689:23;2685:33;2682:53;;;2731:1;2728;2721:12;2682:53;2771:9;2758:23;2800:18;2841:2;2833:6;2830:14;2827:34;;;2857:1;2854;2847:12;2827:34;2880:50;2922:7;2913:6;2902:9;2898:22;2880:50;:::i;:::-;2870:60;;2983:2;2972:9;2968:18;2955:32;2939:48;;3012:2;3002:8;2999:16;2996:36;;;3028:1;3025;3018:12;2996:36;3051:52;3095:7;3084:8;3073:9;3069:24;3051:52;:::i;:::-;3041:62;;3156:2;3145:9;3141:18;3128:32;3112:48;;3185:2;3175:8;3172:16;3169:36;;;3201:1;3198;3191:12;3169:36;3224:52;3268:7;3257:8;3246:9;3242:24;3224:52;:::i;:::-;3214:62;;3329:2;3318:9;3314:18;3301:32;3285:48;;3358:2;3348:8;3345:16;3342:36;;;3374:1;3371;3364:12;3342:36;;3397:52;3441:7;3430:8;3419:9;3415:24;3397:52;:::i;:::-;2494:1013;;;;-1:-1:-1;2494:1013:1;;3496:3;3481:19;3468:33;;2494:1013;-1:-1:-1;;;2494:1013:1:o;3512:180::-;3571:6;3624:2;3612:9;3603:7;3599:23;3595:32;3592:52;;;3640:1;3637;3630:12;3592:52;-1:-1:-1;3663:23:1;;3512:180;-1:-1:-1;3512:180:1:o;3697:258::-;3739:3;3777:5;3771:12;3804:6;3799:3;3792:19;3820:63;3876:6;3869:4;3864:3;3860:14;3853:4;3846:5;3842:16;3820:63;:::i;:::-;3937:2;3916:15;-1:-1:-1;;3912:29:1;3903:39;;;;3944:4;3899:50;;3697:258;-1:-1:-1;;3697:258:1:o;3960:274::-;4089:3;4127:6;4121:13;4143:53;4189:6;4184:3;4177:4;4169:6;4165:17;4143:53;:::i;:::-;4212:16;;;;;3960:274;-1:-1:-1;;3960:274:1:o;4828:220::-;4977:2;4966:9;4959:21;4940:4;4997:45;5038:2;5027:9;5023:18;5015:6;4997:45;:::i;5053:881::-;5402:3;5391:9;5384:22;5365:4;5429:46;5470:3;5459:9;5455:19;5447:6;5429:46;:::i;:::-;5523:9;5515:6;5511:22;5506:2;5495:9;5491:18;5484:50;5557:33;5583:6;5575;5557:33;:::i;:::-;-1:-1:-1;;;;;5626:32:1;;5621:2;5606:18;;5599:60;5695:22;;;5690:2;5675:18;;5668:50;5543:47;-1:-1:-1;5741:33:1;5543:47;5759:6;5741:33;:::i;:::-;5727:47;;5823:9;5815:6;5811:22;5805:3;5794:9;5790:19;5783:51;5851:33;5877:6;5869;5851:33;:::i;:::-;5843:41;;;5921:6;5915:3;5904:9;5900:19;5893:35;5053:881;;;;;;;;;:::o;6346:408::-;6548:2;6530:21;;;6587:2;6567:18;;;6560:30;6626:34;6621:2;6606:18;;6599:62;-1:-1:-1;;;6692:2:1;6677:18;;6670:42;6744:3;6729:19;;6346:408::o;6759:::-;6961:2;6943:21;;;7000:2;6980:18;;;6973:30;7039:34;7034:2;7019:18;;7012:62;-1:-1:-1;;;7105:2:1;7090:18;;7083:42;7157:3;7142:19;;6759:408::o;8358:410::-;8560:2;8542:21;;;8599:2;8579:18;;;8572:30;8638:34;8633:2;8618:18;;8611:62;-1:-1:-1;;;8704:2:1;8689:18;;8682:44;8758:3;8743:19;;8358:410::o;9602:356::-;9804:2;9786:21;;;9823:18;;;9816:30;9882:34;9877:2;9862:18;;9855:62;9949:2;9934:18;;9602:356::o;10370:407::-;10572:2;10554:21;;;10611:2;10591:18;;;10584:30;10650:34;10645:2;10630:18;;10623:62;-1:-1:-1;;;10716:2:1;10701:18;;10694:41;10767:3;10752:19;;10370:407::o;10964:258::-;11036:1;11046:113;11060:6;11057:1;11054:13;11046:113;;;11136:11;;;11130:18;11117:11;;;11110:39;11082:2;11075:10;11046:113;;;11177:6;11174:1;11171:13;11168:48;;;-1:-1:-1;;11212:1:1;11194:16;;11187:27;10964:258::o;11227:127::-;11288:10;11283:3;11279:20;11276:1;11269:31;11319:4;11316:1;11309:15;11343:4;11340:1;11333:15;11359:131;-1:-1:-1;;;;;11434:31:1;;11424:42;;11414:70;;11480:1;11477;11470:12
Swarm Source
ipfs://da7e6bf5bb6b3d04980f69019c4ecd36119173696d03534c9231e81aac271129
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.