Token
Silks Genesis Avatar (Silks)
ERC-721
Overview
Max Total Supply
237 Silks
Holders
29
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Balance
25 SilksLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
Silks
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./external/ERC721AWithRoyalties.sol"; // @author rollauver.eth contract Silks is Ownable, ERC721AWithRoyalties, Pausable, PaymentSplitter { string public _baseTokenURI; bytes32 public _merkleRoot; uint256 public _price; uint256 public _presalePrice; uint256 public _maxSupply; uint256 public _maxPerAddress; uint256 public _presaleMaxPerAddress; uint256 public _publicSaleTime; uint256 public _preSaleTime; uint256 public _maxTxPerAddress; mapping(address => uint256) private _purchases; event EarlyPurchase(address indexed addr, uint256 indexed atPrice, uint256 indexed count); event Purchase(address indexed addr, uint256 indexed atPrice, uint256 indexed count); constructor( string memory name, string memory symbol, string memory baseTokenURI, // baseTokenURI - 0 uint256[] memory numericValues, // price - 0, presalePrice - 1, maxSupply - 2, maxPerAddress - 3, presaleMaxPerAddress - 4, publicSaleTime - 5, _preSaleTime - 6, _maxTxPerAddress - 7 bytes32 merkleRoot, address[] memory payees, uint256[] memory shares, address royaltyRecipient, uint256 royaltyAmount ) ERC721AWithRoyalties(name, symbol, numericValues[2], royaltyRecipient, royaltyAmount) PaymentSplitter(payees, shares) { _baseTokenURI = baseTokenURI; _price = numericValues[0]; _presalePrice = numericValues[1]; _maxSupply = numericValues[2]; _maxPerAddress = numericValues[3]; _presaleMaxPerAddress = numericValues[4]; _publicSaleTime = numericValues[5]; _preSaleTime = numericValues[6]; _maxTxPerAddress = numericValues[7]; _merkleRoot = merkleRoot; } function setSaleInformation( uint256 publicSaleTime, uint256 preSaleTime, uint256 maxPerAddress, uint256 presaleMaxPerAddress, uint256 price, uint256 presalePrice, bytes32 merkleRoot, uint256 maxTxPerAddress ) external onlyOwner { _publicSaleTime = publicSaleTime; _preSaleTime = preSaleTime; _maxPerAddress = maxPerAddress; _presaleMaxPerAddress = presaleMaxPerAddress; _price = price; _presalePrice = presalePrice; _merkleRoot = merkleRoot; _maxTxPerAddress = maxTxPerAddress; _maxPerAddress = maxPerAddress; } function setBaseUri( string memory baseUri ) external onlyOwner { _baseTokenURI = baseUri; } function setMerkleRoot(bytes32 merkleRoot) external onlyOwner { _merkleRoot = merkleRoot; } function _baseURI() override internal view virtual returns (string memory) { return string( abi.encodePacked( _baseTokenURI, Strings.toHexString(uint256(uint160(address(this))), 20), '/' ) ); } function mint(address to, uint256 count) external payable onlyOwner { ensureMintConditions(count); _safeMint(to, count); } function purchase(uint256 count) external payable whenNotPaused { ensurePublicMintConditions(msg.sender, count, _maxPerAddress); require(isPublicSaleActive(), "BASE_COLLECTION/CANNOT_MINT"); _purchase(count, _price); emit Purchase(msg.sender, _price, count); } function earlyPurchase(uint256 count, bytes32[] calldata merkleProof) external payable whenNotPaused { ensurePublicMintConditions(msg.sender, count, _presaleMaxPerAddress); require(isPreSaleActive() && onEarlyPurchaseList(msg.sender, merkleProof), "BASE_COLLECTION/CANNOT_MINT_PRESALE"); _purchase(count, _presalePrice); emit EarlyPurchase(msg.sender, _presalePrice, count); } function _purchase(uint256 count, uint256 price) private { require(price * count <= msg.value, 'BASE_COLLECTION/INSUFFICIENT_ETH_AMOUNT'); _purchases[msg.sender] += count; _safeMint(msg.sender, count); } function ensureMintConditions(uint256 count) internal view { require(totalSupply() + count <= _maxSupply, "BASE_COLLECTION/EXCEEDS_MAX_SUPPLY"); } function ensurePublicMintConditions(address to, uint256 count, uint256 maxPerAddress) internal view { ensureMintConditions(count); require((_maxTxPerAddress == 0) || (count <= _maxTxPerAddress), "BASE_COLLECTION/EXCEEDS_MAX_PER_TRANSACTION"); uint256 totalMintFromAddress = _purchases[to] + count; require ((maxPerAddress == 0) || (totalMintFromAddress <= maxPerAddress), "BASE_COLLECTION/EXCEEDS_INDIVIDUAL_SUPPLY"); } function isPublicSaleActive() public view returns (bool) { return (_publicSaleTime == 0 || _publicSaleTime < block.timestamp); } function isPreSaleActive() public view returns (bool) { return (_preSaleTime == 0 || (_preSaleTime < block.timestamp) && (block.timestamp < _publicSaleTime)); } function onEarlyPurchaseList(address addr, bytes32[] calldata merkleProof) public view returns (bool) { require(_merkleRoot.length > 0, "BASE_COLLECTION/PRESALE_MINT_LIST_UNSET"); bytes32 node = keccak256(abi.encodePacked(addr)); return MerkleProof.verify(merkleProof, _merkleRoot, node); } function MAX_TOTAL_MINT() public view returns (uint256) { return _maxSupply; } function PRICE() public view returns (uint256) { if (isPreSaleActive()) { return _presalePrice; } return _price; } function MAX_TOTAL_MINT_PER_ADDRESS() public view returns (uint256) { if (isPreSaleActive()) { return _presaleMaxPerAddress; } return _maxPerAddress; } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; import "../token/ERC20/utils/SafeERC20.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + totalReleased(); uint256 payment = _pendingPayment(account, totalReceived, released(account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); uint256 payment = _pendingPayment(account, totalReceived, released(token, account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/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 IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // Creators: locationtba.eth, 2pmflow.eth pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 1; uint256 internal immutable maxBatchSize; // 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) private _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; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex - 1; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @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) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _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 override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } 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); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, 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; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @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); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * 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`. */ 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. * * 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` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "./ERC721A.sol"; import "./IERC2981Royalties.sol"; // @author rollauver.eth contract ERC721AWithRoyalties is Ownable, ERC721A, IERC2981Royalties { struct RoyaltyInfo { address recipient; uint24 amount; } RoyaltyInfo private _royalties; constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_, address royaltyRecipient, uint256 royaltyValue ) ERC721A(name_, symbol_, maxBatchSize_) { _setRoyalties(royaltyRecipient, royaltyValue); } /// @inheritdoc ERC165 function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC2981Royalties).interfaceId || super.supportsInterface(interfaceId); } /// @dev Sets token royalties /// @param recipient recipient of the royalties /// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0) function _setRoyalties(address recipient, uint256 value) internal { require(value <= 10000, 'ERC2981Royalties: Too high'); _royalties = RoyaltyInfo(recipient, uint24(value)); } /// @inheritdoc IERC2981Royalties function royaltyInfo(uint256, uint256 value) external view override returns (address receiver, uint256 royaltyAmount) { RoyaltyInfo memory royalties = _royalties; receiver = royalties.recipient; royaltyAmount = (value * royalties.amount) / 10000; } function updateRoyalties(address recipient, uint256 value) external onlyOwner { _setRoyalties(recipient, value); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @title IERC2981Royalties /// @dev Interface for the ERC2981 - Token Royalty standard interface IERC2981Royalties { /// @notice Called with the sale price to determine how much royalty // is owed and to whom. /// @param _tokenId - the NFT asset queried for royalty information /// @param _value - the sale price of the NFT asset specified by _tokenId /// @return _receiver - address of who should be sent the royalty payment /// @return _royaltyAmount - the royalty payment amount for value sale price function royaltyInfo(uint256 _tokenId, uint256 _value) external view returns (address _receiver, uint256 _royaltyAmount); }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"uint256[]","name":"numericValues","type":"uint256[]"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"internalType":"address","name":"royaltyRecipient","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":true,"internalType":"uint256","name":"atPrice","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"count","type":"uint256"}],"name":"EarlyPurchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":true,"internalType":"uint256","name":"atPrice","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"count","type":"uint256"}],"name":"Purchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_TOTAL_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOTAL_MINT_PER_ADDRESS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxTxPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_preSaleTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_presaleMaxPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_presalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_publicSaleTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"earlyPurchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPreSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"onEarlyPurchaseList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"publicSaleTime","type":"uint256"},{"internalType":"uint256","name":"preSaleTime","type":"uint256"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"},{"internalType":"uint256","name":"presaleMaxPerAddress","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"presalePrice","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"maxTxPerAddress","type":"uint256"}],"name":"setSaleInformation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"updateRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a06040523462000ad15762004230803803806200001d8162000af1565b9283398101906101208183031262000ad15780516001600160401b03811162000ad157826200004e91830162000b17565b60208201519092906001600160401b03811162000ad157816200007391840162000b17565b60408301519092906001600160401b03811162000ad157826200009891830162000b17565b60608201519091906001600160401b03811162000ad15783620000bd91830162000ba1565b9360808201519160a081015160018060401b03811162000ad15781019480601f8701121562000ad157855195620000fe620000f88862000b89565b62000af1565b9660208089838152019160051b8301019183831162000ad157602001905b82821062000ad65750505060c0820151906001600160401b03821162000ad1576200014991830162000ba1565b966101006200015b60e0840162000bff565b920151926200016a8862000c14565b5160008054336001600160a01b03198216811783556040519395939290916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3600180556000600855831562000a7f57508051906001600160401b0382116200045a5760025490600182811c9216801562000a74575b6020831014620007665781601f84931162000a13575b50602090601f8311600114620009955760009262000989575b50508160011b916000199060031b1c1916176002555b8051906001600160401b0382116200045a5760035490600182811c921680156200097e575b6020831014620007665781601f8493116200090c575b50602090601f83116001146200087d5760009262000871575b50508160011b916000199060031b1c1916176003555b60805261271082116200082c5760408051919082018083116001600160401b03909111176200045a57604082810190526001600160a01b031680825262ffffff8316602090920191909152600980546001600160b81b03191690911760a09290921b62ffffff60a01b16919091179055600a805460ff191690558251855103620007cc57825115620007875760005b835181101562000568576001600160a01b0362000348828662000c25565b51169062000357818862000c25565b5182156200050e578015620004c95782600052600d6020526040600020546200047057600f54680100000000000000008110156200045a576001810180600f5581101562000444577f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b031916841790556000838152600d60205260409020819055600b5480820181116200042e57600193827f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac9360409301600b5582519182526020820152a1016200032a565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608490fd5b60405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606490fd5b60405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608490fd5b50815184906001600160401b0381116200045a57601254600181811c911680156200077c575b60208210146200076657601f81116200070d575b506020601f821160011462000694578192939460009262000688575b50508160011b916000199060031b1c1916176012555b8051156200044457602081015160145580516001101562000444576040810151601555620006028162000c14565b5160165580516003101562000444576080810151601755805160041015620004445760a0810151601855805160051015620004445760c0810151601955805160061015620004445760e0810151601a5580516007101562000444576101000151601b556013556040516135b5908162000c3b823960805181818161290a0152612c520152f35b015190508480620005be565b60126000908152600080516020620042108339815191529190601f198416905b818110620006f457509583600195969710620006da575b505050811b01601255620005d4565b015160001960f88460031b161c19169055848080620006cb565b9192602060018192868b015181550194019201620006b4565b601260005260008051602062004210833981519152601f830160051c810191602084106200075b575b601f0160051c01905b8181106200074e5750620005a2565b600081556001016200073f565b909150819062000736565b634e487b7160e01b600052602260045260246000fd5b90607f16906200058e565b60405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b6064820152608490fd5b60405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606490fd5b01519050388062000285565b6003600090815293507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b91905b601f1984168510620008f0576001945083601f19811610620008d6575b505050811b016003556200029b565b015160001960f88460031b161c19169055388080620008c7565b81810151835560209485019460019093019290910190620008aa565b60036000529091507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f840160051c81016020851062000976575b90849392915b601f830160051c82018110620009665750506200026c565b600081558594506001016200094e565b508062000948565b91607f169162000256565b0151905038806200021b565b600260009081529350600080516020620041f083398151915291905b601f1984168510620009f7576001945083601f19811610620009dd575b505050811b0160025562000231565b015160001960f88460031b161c19169055388080620009ce565b81810151835560209485019460019093019290910190620009b1565b6002600052909150600080516020620041f0833981519152601f840160051c81016020851062000a6c575b90849392915b601f830160051c8201811062000a5c57505062000202565b6000815585945060010162000a44565b508062000a3e565b91607f1691620001ec565b62461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b6064820152608490fd5b600080fd5b6020809162000ae58462000bff565b8152019101906200011c565b6040519190601f01601f191682016001600160401b038111838210176200045a57604052565b919080601f8401121562000ad15782516001600160401b0381116200045a5760209062000b4d601f8201601f1916830162000af1565b9281845282828701011162000ad15760005b81811062000b7557508260009394955001015290565b858101830151848201840152820162000b5f565b6001600160401b0381116200045a5760051b60200190565b9080601f8301121562000ad15781519060209162000bc3620000f88262000b89565b9360208086848152019260051b82010192831162000ad157602001905b82821062000bef575050505090565b8151815290830190830162000be0565b51906001600160a01b038216820362000ad157565b805160021015620004445760600190565b8051821015620004445760209160051b01019056fe60806040526004361015610023575b361561001957600080fd5b610021612227565b005b60003560e01c806301ffc9a71461039e57806306fdde0314610399578063081812fc14610394578063095ea7b31461038f57806318160ddd1461038a57806319165587146103855780631e84c4131461038057806322f4596f146102c2578063235b6ea11461037b57806323b872dd146103765780632a55205a146103715780632f745c591461036c5780632fc37ab2146103675780633a98ef39146103625780633f4ba83a1461035d578063406072a91461035857806340c10f191461035357806342842e0e1461034e57806348b75044146103495780634f6ccce7146103445780635c975abb1461033f5780635f0d246a1461033a5780636352211e1461033557806366cfb1f314610330578063696fa41e1461032b5780636c2f5acd1461032657806370a0823114610321578063715018a61461031c57806374721235146103175780637b96a3b2146103125780637cb647591461030d5780638456cb59146103085780638b83209b146103035780638d859f3e146102fe5780638da5cb5b146102f9578063904be6da146102f457806395d89b41146102ef5780639852595c146102ea5780639d044ed3146102e5578063a0bcfc7f146102e0578063a22cb465146102db578063b85ef036146102d6578063b88d4fde146102d1578063c87b56dd146102cc578063ce7c2ac2146102c7578063cf9e8e69146102c2578063cfc86f7b146102bd578063d7224ba0146102b8578063d79779b2146102b3578063e2ab10ce146102ae578063e2d5ee2d146102a9578063e33b7de3146102a4578063e985e9c51461029f578063efef39a11461029a578063f2fde38b146102955763fa156f9a0361000e57611b03565b611a69565b6119b5565b61194d565b61192f565b611911565b611817565b6117da565b6117bc565b611726565b610820565b6116af565b6115d9565b611568565b61154a565b61145a565b61131e565b611230565b6111f3565b61114b565b61112d565b611104565b6110e9565b611089565b61101c565b610fee565b610fa6565b610f1d565b610ebe565b610e97565b610dbf565b610da1565b610d86565b610d56565b610d38565b610d15565b610c96565b610af7565b610abc565b610a7a565b610a35565b61096e565b610950565b610932565b610907565b61089f565b610888565b61083e565b6107fb565b6106f8565b6106d5565b6105e0565b61059f565b6104b6565b6103ba565b6001600160e01b03198116036103b557565b600080fd5b346103b55760203660031901126103b55760206004356103d9816103a3565b63ffffffff60e01b1663152a902d60e11b81149081156103ff575b506040519015158152f35b6380ac58cd60e01b811491508115610449575b8115610438575b8115610427575b50386103f4565b6301ffc9a760e01b14905038610420565b63780e9d6360e01b81149150610419565b635b5e139f60e01b81149150610412565b60005b83811061046d5750506000910152565b818101518382015260200161045d565b906020916104968151809281855285808601910161045a565b601f01601f1916010190565b9060206104b392818152019061047d565b90565b346103b55760008060031936011261059c576040519080600254906104da826116ec565b8085529160209160019182811690811561056f5750600114610517575b610513866105078188038261129c565b604051918291826104a2565b0390f35b9350600284527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b83851061055c5750505050810160200161050782610513386104f7565b805486860184015293820193810161053f565b90508695506105139693506020925061050794915060ff191682840152151560051b8201019293386104f7565b80fd5b346103b55760203660031901126103b55760206105bd600435611b21565b6040516001600160a01b039091168152f35b6001600160a01b038116036103b557565b346103b55760403660031901126103b5576004356105fd816105cf565b6001600160a01b036024358161061282612c2b565b5116809284161461068557610021928233148015610639575b61063490611ba1565b6122a7565b5061063461067e610677336106608760018060a01b03166000526007602052604060002090565b9060018060a01b0316600052602052604060002090565b5460ff1690565b905061062b565b60405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608490fd5b346103b55760003660031901126103b55760206106f0611c45565b604051908152f35b346103b55760203660031901126103b557600435610715816105cf565b60018060a01b0381169081600052600d6020526107386040600020541515611c57565b47600c5481018091116107f6576001600160a01b0383166000908152600e60205260409020547fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0569361078a9290612305565b90610796821515611cdb565b6001600160a01b0381166000908152600e602052604090206107b9838254611cce565b90556107cf6107ca83600c54611cce565b600c55565b6107d98282612384565b604080516001600160a01b039290921682526020820192909252a1005b611c13565b346103b55760003660031901126103b5576020610816611d3b565b6040519015158152f35b346103b55760003660031901126103b5576020601654604051908152f35b346103b55760003660031901126103b5576020601454604051908152f35b60609060031901126103b557600435610874816105cf565b90602435610881816105cf565b9060443590565b346103b5576100216108993661085c565b916125c7565b346103b55760403660031901126103b5576040516108bc81611261565b6127106108ea60206009549362ffffff60018060a01b0386169586835260a01c169182910152602435611d52565b604080516001600160a01b03949094168452919004602083015290f35b346103b55760403660031901126103b55760206106f0600435610929816105cf565b60243590611df9565b346103b55760003660031901126103b5576020601354604051908152f35b346103b55760003660031901126103b5576020600b54604051908152f35b346103b55760008060031936011261059c5761099460018060a01b038254163314611f04565b600a5460ff8116156109d45760ff1916600a557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a180f35b60405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606490fd5b60409060031901126103b557600435610a28816105cf565b906024356104b3816105cf565b346103b5576020610a71610a4836610a10565b6001600160a01b0391821660009081526011855260408082209290931681526020919091522090565b54604051908152f35b60403660031901126103b557610021600435610a95816105cf565b60243590610aae60018060a01b03600054163314611f04565b610ab78261286a565b6128d6565b346103b557610021610af2610ad03661085c565b9060405192610ade84611281565b60008452610aed8383836125c7565b612f3d565b6121b1565b346103b557610b0536610a10565b90610b2d610b258360018060a01b0316600052600d602052604060002090565b541515611c57565b6040516370a0823160e01b81523060048201526001600160a01b0382169290602081602481875afa908115610c91577f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a93610bdd610bb28594610c4594600091610c62575b506001600160a01b03841660009081526010602052604090205490611cce565b6001600160a01b0383166000908152601160205260409020610bd5908690610660565b549085612305565b938491610beb831515611cdb565b6001600160a01b0381166000908152601160205260409020610c0e908390610660565b610c19848254611cce565b90556001600160a01b0381166000908152601060205260409020610c3e848254611cce565b9055612ab5565b604080516001600160a01b039290921682526020820192909252a2005b610c84915060203d602011610c8a575b610c7c818361129c565b810190611f62565b38610b92565b503d610c72565b611f71565b346103b55760203660031901126103b557600435610cb2611c45565b811015610cc457602090604051908152f35b60405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608490fd5b346103b55760003660031901126103b557602060ff600a54166040519015158152f35b346103b55760003660031901126103b5576020601554604051908152f35b346103b55760203660031901126103b55760206001600160a01b03610d7c600435612c2b565b5116604051908152f35b346103b55760003660031901126103b55760206106f0611f7d565b346103b55760003660031901126103b5576020601b54604051908152f35b346103b55760403660031901126103b557600435610ddc816105cf565b6024359060018060a01b03610df681600054163314611f04565b6127108311610e52576100219262ffffff9160405193610e1585611261565b16835216602082015260018060a01b0381511660095491602062ffffff60a01b91015160a01b169168ffffffffffffffffff60b81b161717600955565b60405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606490fd5b346103b55760203660031901126103b55760206106f0600435610eb9816105cf565b611f95565b346103b55760008060031936011261059c57805481906001600160a01b03811690610eea338314611f04565b6001600160a01b03191682557f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b346103b5576101003660031901126103b557610f4460018060a01b03600054163314611f04565b600435601955602435601a5560643560185560843560145560a43560155560c43560135560e435601b55604435601755005b9181601f840112156103b5578235916001600160401b0383116103b5576020808501948460051b0101116103b557565b346103b55760403660031901126103b557600435610fc3816105cf565b6024356001600160401b0381116103b557602091610fe8610816923690600401610f76565b91612017565b346103b55760203660031901126103b55761101460018060a01b03600054163314611f04565b600435601355005b346103b55760008060031936011261059c5761104260018060a01b038254163314611f04565b6001600a5461105460ff8216156121e8565b60ff191617600a557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a180f35b346103b55760203660031901126103b557600435600f548110156110e457600f6000527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80201546040516001600160a01b039091168152602090f35b6120aa565b346103b55760003660031901126103b55760206106f06120c0565b346103b55760003660031901126103b5576000546040516001600160a01b039091168152602090f35b346103b55760003660031901126103b5576020601854604051908152f35b346103b55760008060031936011261059c5760405190806003549061116f826116ec565b8085529160209160019182811690811561056f575060011461119b57610513866105078188038261129c565b9350600384527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8385106111e05750505050810160200161050782610513386104f7565b80548686018401529382019381016111c3565b346103b55760203660031901126103b557600435611210816105cf565b60018060a01b0316600052600e6020526020604060002054604051908152f35b346103b55760003660031901126103b55760206108166120d8565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b0382111761127c57604052565b61124b565b602081019081106001600160401b0382111761127c57604052565b90601f801991011681019081106001600160401b0382111761127c57604052565b604051906112ca82611261565b565b6001600160401b03811161127c57601f01601f191660200190565b9291926112f3826112cc565b91611301604051938461129c565b8294818452818301116103b5578281602093846000960137010152565b346103b5576020806003193601126103b5576001600160401b03906004358281116103b557366023820112156103b5576113629036906024816004013591016112e7565b9160009161137a60018060a01b038454163314611f04565b835191821161127c57611397826113926012546116ec565b6120fd565b602090601f83116001146113da5750819083946113c994926113cf575b50508160011b916000199060031b1c19161790565b60125580f35b0151905038806113b4565b90601f198316946113fb601260005260008051602061356083398151915290565b9285905b87821061143857505083600195961061141f575b505050811b0160125580f35b015160001960f88460031b161c19169055388080611413565b806001859682949686015181550195019301906113ff565b801515036103b557565b346103b55760403660031901126103b557600435611477816105cf565b60243561148381611450565b6001600160a01b0382169133831461150557816114c26114d39233600052600760205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b604051901515815233907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b60405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606490fd5b346103b55760003660031901126103b5576020601954604051908152f35b346103b55760803660031901126103b557600435611585816105cf565b60243590611592826105cf565b606435906044356001600160401b0383116103b557366023840112156103b557610021936115cd610af29436906024816004013591016112e7565b92610aed8383836125c7565b346103b55760203660031901126103b557600435600154811015611652576115ff612ff6565b8051156116405761050761162c9161163261161c61051395613125565b60405194859360208501906121d1565b906121d1565b03601f19810183528261129c565b505061051361164d611f4f565b610507565b60405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608490fd5b346103b55760203660031901126103b5576004356116cc816105cf565b60018060a01b0316600052600d6020526020604060002054604051908152f35b90600182811c9216801561171c575b602083101461170657565b634e487b7160e01b600052602260045260246000fd5b91607f16916116fb565b346103b55760008060031936011261059c5760405190806012549061174a826116ec565b8085529160209160019182811690811561056f575060011461177657610513866105078188038261129c565b9350601284526000805160206135608339815191525b8385106117a95750505050810160200161050782610513386104f7565b805486860184015293820193810161178c565b346103b55760003660031901126103b5576020600854604051908152f35b346103b55760203660031901126103b5576004356117f7816105cf565b60018060a01b031660005260106020526020604060002054604051908152f35b60403660031901126103b5576004356024356001600160401b0381116103b557611845903690600401610f76565b61185460ff600a5416156121e8565b6118616018548433613229565b6118696120d8565b91826118ff575b5050156118ae57611883601554826132ee565b601554337f38bd02858ca92987ff585a4c06998aea8187e96864df1eaf349dec3cfddc0fbb600080a4005b60405162461bcd60e51b815260206004820152602360248201527f424153455f434f4c4c454354494f4e2f43414e4e4f545f4d494e545f50524553604482015262414c4560e81b6064820152608490fd5b61190a925033612017565b3880611870565b346103b55760003660031901126103b5576020601754604051908152f35b346103b55760003660031901126103b5576020600c54604051908152f35b346103b55760403660031901126103b557602060ff6119a9600435611971816105cf565b6024359061197e826105cf565b60018060a01b03166000526007845260406000209060018060a01b0316600052602052604060002090565b54166040519015158152f35b60203660031901126103b5576004356119d360ff600a5416156121e8565b6119e06017548233613229565b6119e8611d3b565b15611a24576119f9601454826132ee565b601454337f12cb4648cf3058b17ceeb33e579f8b0bc269fe0843f3900b8e24b6c54871703c600080a4005b60405162461bcd60e51b815260206004820152601b60248201527f424153455f434f4c4c454354494f4e2f43414e4e4f545f4d494e5400000000006044820152606490fd5b346103b55760203660031901126103b557600435611a86816105cf565b6000546001600160a01b0390611a9f9082163314611f04565b811615611aaf5761002190612d41565b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b346103b55760003660031901126103b5576020601a54604051908152f35b600154811015611b46576000908152600660205260409020546001600160a01b031690565b60405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608490fd5b15611ba857565b60405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608490fd5b634e487b7160e01b600052601160045260246000fd5b6000198101919082116107f657565b919082039182116107f657565b60015460001981019081116107f65790565b15611c5e57565b60405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608490fd5b90600182018092116107f657565b60300190816030116107f657565b919082018092116107f657565b15611ce257565b60405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608490fd5b6019548015908115611d4b575090565b9050421190565b818102929181159184041417156107f657565b15611d6c57565b60405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608490fd5b90604051611dc981611261565b91546001600160a01b038116835260a01c6001600160401b03166020830152565b60001981146107f65760010190565b91611e0d611e0684611f95565b8310611d65565b611e15611c45565b9160009360009060005b858110611e865760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608490fd5b0390fd5b611eb2611ea5611ea0836000526004602052604060002090565b611dbc565b516001600160a01b031690565b6001600160a01b0390808216611efc575b5080831690841614611ed8575b600101611e1f565b95838114611ef357611eeb600191611dea565b969050611ed0565b50929350505050565b935038611ec3565b15611f0b57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b60405190611f5c82611281565b60008252565b908160209103126103b5575190565b6040513d6000823e3d90fd5b611f856120d8565b611f8f5760175490565b60185490565b6001600160a01b03168015611fbe5760005260056020526001600160801b036040600020541690565b60405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608490fd5b9291906040519360209460208101916bffffffffffffffffffffffff199060601b1682526014815261204881611261565b51902091601354916001600160401b03821161127c578160051b60405192612073602083018561129c565b835260208301908201913683116103b557905b82821061209b575050506104b3939450612d88565b81358152908701908701612086565b634e487b7160e01b600052603260045260246000fd5b6120c86120d8565b6120d25760145490565b60155490565b601a5480159081156120e8575090565b90504211806120f45790565b50601954421090565b601f8111612109575050565b6000906012600052600080516020613560833981519152906020601f850160051c83019410612153575b601f0160051c01915b82811061214857505050565b81815560010161213c565b9092508290612133565b60809060208152603360208201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b60608201520190565b156121b857565b60405162461bcd60e51b815280611e826004820161215d565b906121e46020928281519485920161045a565b0190565b156121ef57565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b604080513381523460208201527f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7709190a1565b600081815260066020526040812080546001600160a01b031916905590916001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258280a4565b600082815260066020526040902080546001600160a01b0319166001600160a01b0383161790559091906001600160a01b0390811691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600080a4565b6001600160a01b03166000908152600d602052604090205461232691611d52565b600b5490811561233e57049081039081116107f65790565b634e487b7160e01b600052601260045260246000fd5b3d1561237f573d90612365826112cc565b91612373604051938461129c565b82523d6000602084013e565b606090565b81471061241a576000918291829182916001600160a01b03165af16123a7612354565b50156123af57565b60405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608490fd5b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606490fd5b1561246657565b60405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608490fd5b156124cd57565b60405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608490fd5b1561252857565b60405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b6001600160801b0390811660001901919082116107f657565b9060016001600160801b03809316019182116107f657565b9190916001600160801b03808094169116019182116107f657565b90612631906127506125d885612c2b565b80519092906125f7906001600160a01b03165b6001600160a01b031690565b33148015612856575b8015612828575b6126109061245f565b82516001600160a01b03868116956126a19261266e929190821688146124c6565b83169661263f881515612521565b8551612654906001600160a01b03168a61225a565b6001600160a01b0316600090815260056020526040902090565b61268761268282546001600160801b031690565b61257b565b6001600160801b03166001600160801b0319825416179055565b6001600160a01b03811660009081526005602052604090206126d6906126876126d182546001600160801b031690565b612594565b6126f06126e16112bd565b6001600160a01b039092168252565b426001600160401b03166020820152612713866000526004602052604060002090565b8151815460209093015167ffffffffffffffff60a01b60a09190911b166001600160e01b03199093166001600160a01b0390911617919091179055565b61275984611cb2565b906127816125eb612774846000526004602052604060002090565b546001600160a01b031690565b156127b0575b50507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4565b6001548210156127875780516128219261271391612811906127e7906020906001600160a01b03169501516001600160401b031690565b6128016127f26112bd565b6001600160a01b039096168652565b6001600160401b03166020850152565b6000526004602052604060002090565b3880612787565b5082516001600160a01b0316600090815260076020908152604080832033845290915290205460ff16612607565b50336128646125eb88611b21565b14612600565b612872611c45565b9081018091116107f6576016541061288657565b60405162461bcd60e51b815260206004820152602260248201527f424153455f434f4c4c454354494f4e2f455843454544535f4d41585f535550506044820152614c5960f01b6064820152608490fd5b6040516128e281611281565b600092600082526001916001549360018060a01b0381169461290586151561337a565b6129317f00000000000000000000000000000000000000000000000000000000000000008511156133d0565b6001600160a01b0382166000908152600560205260409020612a0d9061295690613427565b6129c461299a61296d83516001600160801b031690565b61299560206129866001600160801b038c1680946125ac565b9501516001600160801b031690565b6125ac565b6129b46129a56112bd565b6001600160801b039094168452565b6001600160801b03166020830152565b6001600160a01b0384166000908152600560205260409020815160209092015160801b6fffffffffffffffffffffffffffffffff19166001600160801b03909216919091179055565b612a47612a186112bd565b6001600160a01b0384168152426001600160401b03166020820152612713836000526004602052604060002090565b946000965b848810612a63575050505050506112ca9150600155565b9091929394612aa787829885857fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4612aa2610af2888389612e7b565b611dea565b970196959493929190612a4c565b60405163a9059cbb60e01b60208083019182526001600160a01b03949094166024830152604480830195909552938152919290612af360648461129c565b60018060a01b03169060405192612b0984611261565b8484527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656485850152823b15612b7a57612b55939260009283809351925af1612b4f612354565b9061351f565b80519081612b6257505050565b826112ca93612b7593830101910161344c565b613461565b60405162461bcd60e51b815260048101869052601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b15612bc657565b60405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608490fd5b80156107f6576000190190565b60006020604051612c3b81611261565b8281520152612c4d6001548210612bbf565b6000907f000000000000000000000000000000000000000000000000000000000000000080821015612d25575b505b81811015612ce15760405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608490fd5b612cf8611ea0826000526004602052604060002090565b8051612d0c906001600160a01b03166125eb565b612d1f5750612d1a90612c1e565b612c7c565b91505090565b819250612d3590612d3a92611c38565b611cb2565b9038612c7a565b600080546001600160a01b039283166001600160a01b03198216811783559216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3565b929091906000915b8451831015612e0257600190612da684876134c0565b51808211612dd957604080516020810193845290810191909152612dcd8160608101611632565b519020925b0191612d90565b60408051602081019283529081019290925290612df98160608101611632565b51902092612dd2565b915092501490565b908160209103126103b557516104b3816103a3565b6104b3939260809260018060a01b03168252600060208301526040820152816060820152019061047d565b6001600160a01b0391821681529116602082015260408101919091526080606082018190526104b39291019061047d565b909190803b15612f3557612ead602091600093604051948580948193630a85bd0160e11b998a84523360048501612e1f565b03926001600160a01b03165af160009181612f04575b50612ef657612ed0612354565b80519081612ef15760405162461bcd60e51b815280611e826004820161215d565b602001fd5b6001600160e01b0319161490565b612f2791925060203d602011612f2e575b612f1f818361129c565b810190612e0a565b9038612ec3565b503d612f15565b505050600190565b92909190823b15612f7057612ead926020926000604051809681958294630a85bd0160e11b9a8b85523360048601612e4a565b50505050600190565b60125460009291612f89826116ec565b91600190818116908115612fe35750600114612fa457505050565b90919293506012600052600080516020613560833981519152906000915b848310612fd0575050500190565b8181602092548587015201920191612fc2565b60ff191683525050811515909102019150565b30612fff613099565b90603061300b836130f7565b53607861301783613104565b5360295b60018111613057575061304a916130356104b392156134d4565b61163260405193849261162c60208501612f79565b602f60f81b815260010190565b90600f81169060108210156110e457613094916f181899199a1a9b1b9c1cb0b131b232b360811b901a61308a8486613114565b5360041c91612c1e565b61301b565b60405190606082018281106001600160401b0382111761127c57604052602a8252604082602036910137565b906130cf826112cc565b6130dc604051918261129c565b82815280926130ed601f19916112cc565b0190602036910137565b8051156110e45760200190565b8051600110156110e45760210190565b9081518110156110e4570160200190565b80156131ad576000818181805b6131955750613140816130c5565b935b61314c5750505090565b61315590611c29565b90600a9061318061317061316a848406611cc0565b60ff1690565b60f81b6001600160f81b03191690565b841a61318c8487613114565b53049081613142565b91506131a2600a91611dea565b910480849291613132565b506040516131ba81611261565b60018152600360fc1b602082015290565b156131d257565b60405162461bcd60e51b815260206004820152602960248201527f424153455f434f4c4c454354494f4e2f455843454544535f494e444956494455604482015268414c5f535550504c5960b81b6064820152608490fd5b9190916132358361286a565b601b5480159081156132e3575b501561328a576001600160a01b03166000908152601c60205260409020546112ca9261326d91611cce565b90801591821561327f575b50506131cb565b111590503880613278565b60405162461bcd60e51b815260206004820152602b60248201527f424153455f434f4c4c454354494f4e2f455843454544535f4d41585f5045525f60448201526a2a2920a729a0a1aa24a7a760a91b6064820152608490fd5b905083111538613242565b90816132f991611d52565b34106133255733600052601c60205260406000209081548181018091116107f6576112ca9255336128d6565b60405162461bcd60e51b815260206004820152602760248201527f424153455f434f4c4c454354494f4e2f494e53554646494349454e545f45544860448201526617d05353d5539560ca1b6064820152608490fd5b1561338157565b60405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b156133d757565b60405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608490fd5b9060405161343481611261565b91546001600160801b038116835260801c6020830152565b908160209103126103b557516104b381611450565b1561346857565b60405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608490fd5b80518210156110e45760209160051b010190565b156134db57565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b9091901561352b575090565b81511561353b5750805190602001fd5b60405162461bcd60e51b815260206004820152908190611e8290602483019061047d56febb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444a26469706673582212205125dd11b7eba578d613a2c765d6dcdff9952ad6948e686b51752b8dcce2269c64736f6c63430008180033405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acebb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34440000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000220ea58dfa481a0c08b4af0417e3f62244215a1ab1eae0a100da48407be5cdd94b700000000000000000000000000000000000000000000000000000000000003400000000000000000000000000000000000000000000000000000000000000380000000000000000000000000e1c689334186473db5027b5f9354596ccee5466900000000000000000000000000000000000000000000000000000000000002bc000000000000000000000000000000000000000000000000000000000000001453696c6b732047656e6573697320417661746172000000000000000000000000000000000000000000000000000000000000000000000000000000000000000553696c6b73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004b68747470733a2f2f6d696e742e73696c6b732e696f2f636f6e7472616374732f3078613033653335376130396537363165386434383661313431396337346266343265386431623036342f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000004e200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000062aca02b0000000000000000000000000000000000000000000000000000000062ac846600000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000001000000000000000000000000e1c689334186473db5027b5f9354596ccee546690000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a
Deployed Bytecode
0x60806040526004361015610023575b361561001957600080fd5b610021612227565b005b60003560e01c806301ffc9a71461039e57806306fdde0314610399578063081812fc14610394578063095ea7b31461038f57806318160ddd1461038a57806319165587146103855780631e84c4131461038057806322f4596f146102c2578063235b6ea11461037b57806323b872dd146103765780632a55205a146103715780632f745c591461036c5780632fc37ab2146103675780633a98ef39146103625780633f4ba83a1461035d578063406072a91461035857806340c10f191461035357806342842e0e1461034e57806348b75044146103495780634f6ccce7146103445780635c975abb1461033f5780635f0d246a1461033a5780636352211e1461033557806366cfb1f314610330578063696fa41e1461032b5780636c2f5acd1461032657806370a0823114610321578063715018a61461031c57806374721235146103175780637b96a3b2146103125780637cb647591461030d5780638456cb59146103085780638b83209b146103035780638d859f3e146102fe5780638da5cb5b146102f9578063904be6da146102f457806395d89b41146102ef5780639852595c146102ea5780639d044ed3146102e5578063a0bcfc7f146102e0578063a22cb465146102db578063b85ef036146102d6578063b88d4fde146102d1578063c87b56dd146102cc578063ce7c2ac2146102c7578063cf9e8e69146102c2578063cfc86f7b146102bd578063d7224ba0146102b8578063d79779b2146102b3578063e2ab10ce146102ae578063e2d5ee2d146102a9578063e33b7de3146102a4578063e985e9c51461029f578063efef39a11461029a578063f2fde38b146102955763fa156f9a0361000e57611b03565b611a69565b6119b5565b61194d565b61192f565b611911565b611817565b6117da565b6117bc565b611726565b610820565b6116af565b6115d9565b611568565b61154a565b61145a565b61131e565b611230565b6111f3565b61114b565b61112d565b611104565b6110e9565b611089565b61101c565b610fee565b610fa6565b610f1d565b610ebe565b610e97565b610dbf565b610da1565b610d86565b610d56565b610d38565b610d15565b610c96565b610af7565b610abc565b610a7a565b610a35565b61096e565b610950565b610932565b610907565b61089f565b610888565b61083e565b6107fb565b6106f8565b6106d5565b6105e0565b61059f565b6104b6565b6103ba565b6001600160e01b03198116036103b557565b600080fd5b346103b55760203660031901126103b55760206004356103d9816103a3565b63ffffffff60e01b1663152a902d60e11b81149081156103ff575b506040519015158152f35b6380ac58cd60e01b811491508115610449575b8115610438575b8115610427575b50386103f4565b6301ffc9a760e01b14905038610420565b63780e9d6360e01b81149150610419565b635b5e139f60e01b81149150610412565b60005b83811061046d5750506000910152565b818101518382015260200161045d565b906020916104968151809281855285808601910161045a565b601f01601f1916010190565b9060206104b392818152019061047d565b90565b346103b55760008060031936011261059c576040519080600254906104da826116ec565b8085529160209160019182811690811561056f5750600114610517575b610513866105078188038261129c565b604051918291826104a2565b0390f35b9350600284527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b83851061055c5750505050810160200161050782610513386104f7565b805486860184015293820193810161053f565b90508695506105139693506020925061050794915060ff191682840152151560051b8201019293386104f7565b80fd5b346103b55760203660031901126103b55760206105bd600435611b21565b6040516001600160a01b039091168152f35b6001600160a01b038116036103b557565b346103b55760403660031901126103b5576004356105fd816105cf565b6001600160a01b036024358161061282612c2b565b5116809284161461068557610021928233148015610639575b61063490611ba1565b6122a7565b5061063461067e610677336106608760018060a01b03166000526007602052604060002090565b9060018060a01b0316600052602052604060002090565b5460ff1690565b905061062b565b60405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608490fd5b346103b55760003660031901126103b55760206106f0611c45565b604051908152f35b346103b55760203660031901126103b557600435610715816105cf565b60018060a01b0381169081600052600d6020526107386040600020541515611c57565b47600c5481018091116107f6576001600160a01b0383166000908152600e60205260409020547fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0569361078a9290612305565b90610796821515611cdb565b6001600160a01b0381166000908152600e602052604090206107b9838254611cce565b90556107cf6107ca83600c54611cce565b600c55565b6107d98282612384565b604080516001600160a01b039290921682526020820192909252a1005b611c13565b346103b55760003660031901126103b5576020610816611d3b565b6040519015158152f35b346103b55760003660031901126103b5576020601654604051908152f35b346103b55760003660031901126103b5576020601454604051908152f35b60609060031901126103b557600435610874816105cf565b90602435610881816105cf565b9060443590565b346103b5576100216108993661085c565b916125c7565b346103b55760403660031901126103b5576040516108bc81611261565b6127106108ea60206009549362ffffff60018060a01b0386169586835260a01c169182910152602435611d52565b604080516001600160a01b03949094168452919004602083015290f35b346103b55760403660031901126103b55760206106f0600435610929816105cf565b60243590611df9565b346103b55760003660031901126103b5576020601354604051908152f35b346103b55760003660031901126103b5576020600b54604051908152f35b346103b55760008060031936011261059c5761099460018060a01b038254163314611f04565b600a5460ff8116156109d45760ff1916600a557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a180f35b60405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606490fd5b60409060031901126103b557600435610a28816105cf565b906024356104b3816105cf565b346103b5576020610a71610a4836610a10565b6001600160a01b0391821660009081526011855260408082209290931681526020919091522090565b54604051908152f35b60403660031901126103b557610021600435610a95816105cf565b60243590610aae60018060a01b03600054163314611f04565b610ab78261286a565b6128d6565b346103b557610021610af2610ad03661085c565b9060405192610ade84611281565b60008452610aed8383836125c7565b612f3d565b6121b1565b346103b557610b0536610a10565b90610b2d610b258360018060a01b0316600052600d602052604060002090565b541515611c57565b6040516370a0823160e01b81523060048201526001600160a01b0382169290602081602481875afa908115610c91577f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a93610bdd610bb28594610c4594600091610c62575b506001600160a01b03841660009081526010602052604090205490611cce565b6001600160a01b0383166000908152601160205260409020610bd5908690610660565b549085612305565b938491610beb831515611cdb565b6001600160a01b0381166000908152601160205260409020610c0e908390610660565b610c19848254611cce565b90556001600160a01b0381166000908152601060205260409020610c3e848254611cce565b9055612ab5565b604080516001600160a01b039290921682526020820192909252a2005b610c84915060203d602011610c8a575b610c7c818361129c565b810190611f62565b38610b92565b503d610c72565b611f71565b346103b55760203660031901126103b557600435610cb2611c45565b811015610cc457602090604051908152f35b60405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608490fd5b346103b55760003660031901126103b557602060ff600a54166040519015158152f35b346103b55760003660031901126103b5576020601554604051908152f35b346103b55760203660031901126103b55760206001600160a01b03610d7c600435612c2b565b5116604051908152f35b346103b55760003660031901126103b55760206106f0611f7d565b346103b55760003660031901126103b5576020601b54604051908152f35b346103b55760403660031901126103b557600435610ddc816105cf565b6024359060018060a01b03610df681600054163314611f04565b6127108311610e52576100219262ffffff9160405193610e1585611261565b16835216602082015260018060a01b0381511660095491602062ffffff60a01b91015160a01b169168ffffffffffffffffff60b81b161717600955565b60405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606490fd5b346103b55760203660031901126103b55760206106f0600435610eb9816105cf565b611f95565b346103b55760008060031936011261059c57805481906001600160a01b03811690610eea338314611f04565b6001600160a01b03191682557f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b346103b5576101003660031901126103b557610f4460018060a01b03600054163314611f04565b600435601955602435601a5560643560185560843560145560a43560155560c43560135560e435601b55604435601755005b9181601f840112156103b5578235916001600160401b0383116103b5576020808501948460051b0101116103b557565b346103b55760403660031901126103b557600435610fc3816105cf565b6024356001600160401b0381116103b557602091610fe8610816923690600401610f76565b91612017565b346103b55760203660031901126103b55761101460018060a01b03600054163314611f04565b600435601355005b346103b55760008060031936011261059c5761104260018060a01b038254163314611f04565b6001600a5461105460ff8216156121e8565b60ff191617600a557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a180f35b346103b55760203660031901126103b557600435600f548110156110e457600f6000527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80201546040516001600160a01b039091168152602090f35b6120aa565b346103b55760003660031901126103b55760206106f06120c0565b346103b55760003660031901126103b5576000546040516001600160a01b039091168152602090f35b346103b55760003660031901126103b5576020601854604051908152f35b346103b55760008060031936011261059c5760405190806003549061116f826116ec565b8085529160209160019182811690811561056f575060011461119b57610513866105078188038261129c565b9350600384527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8385106111e05750505050810160200161050782610513386104f7565b80548686018401529382019381016111c3565b346103b55760203660031901126103b557600435611210816105cf565b60018060a01b0316600052600e6020526020604060002054604051908152f35b346103b55760003660031901126103b55760206108166120d8565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b0382111761127c57604052565b61124b565b602081019081106001600160401b0382111761127c57604052565b90601f801991011681019081106001600160401b0382111761127c57604052565b604051906112ca82611261565b565b6001600160401b03811161127c57601f01601f191660200190565b9291926112f3826112cc565b91611301604051938461129c565b8294818452818301116103b5578281602093846000960137010152565b346103b5576020806003193601126103b5576001600160401b03906004358281116103b557366023820112156103b5576113629036906024816004013591016112e7565b9160009161137a60018060a01b038454163314611f04565b835191821161127c57611397826113926012546116ec565b6120fd565b602090601f83116001146113da5750819083946113c994926113cf575b50508160011b916000199060031b1c19161790565b60125580f35b0151905038806113b4565b90601f198316946113fb601260005260008051602061356083398151915290565b9285905b87821061143857505083600195961061141f575b505050811b0160125580f35b015160001960f88460031b161c19169055388080611413565b806001859682949686015181550195019301906113ff565b801515036103b557565b346103b55760403660031901126103b557600435611477816105cf565b60243561148381611450565b6001600160a01b0382169133831461150557816114c26114d39233600052600760205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b604051901515815233907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b60405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606490fd5b346103b55760003660031901126103b5576020601954604051908152f35b346103b55760803660031901126103b557600435611585816105cf565b60243590611592826105cf565b606435906044356001600160401b0383116103b557366023840112156103b557610021936115cd610af29436906024816004013591016112e7565b92610aed8383836125c7565b346103b55760203660031901126103b557600435600154811015611652576115ff612ff6565b8051156116405761050761162c9161163261161c61051395613125565b60405194859360208501906121d1565b906121d1565b03601f19810183528261129c565b505061051361164d611f4f565b610507565b60405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608490fd5b346103b55760203660031901126103b5576004356116cc816105cf565b60018060a01b0316600052600d6020526020604060002054604051908152f35b90600182811c9216801561171c575b602083101461170657565b634e487b7160e01b600052602260045260246000fd5b91607f16916116fb565b346103b55760008060031936011261059c5760405190806012549061174a826116ec565b8085529160209160019182811690811561056f575060011461177657610513866105078188038261129c565b9350601284526000805160206135608339815191525b8385106117a95750505050810160200161050782610513386104f7565b805486860184015293820193810161178c565b346103b55760003660031901126103b5576020600854604051908152f35b346103b55760203660031901126103b5576004356117f7816105cf565b60018060a01b031660005260106020526020604060002054604051908152f35b60403660031901126103b5576004356024356001600160401b0381116103b557611845903690600401610f76565b61185460ff600a5416156121e8565b6118616018548433613229565b6118696120d8565b91826118ff575b5050156118ae57611883601554826132ee565b601554337f38bd02858ca92987ff585a4c06998aea8187e96864df1eaf349dec3cfddc0fbb600080a4005b60405162461bcd60e51b815260206004820152602360248201527f424153455f434f4c4c454354494f4e2f43414e4e4f545f4d494e545f50524553604482015262414c4560e81b6064820152608490fd5b61190a925033612017565b3880611870565b346103b55760003660031901126103b5576020601754604051908152f35b346103b55760003660031901126103b5576020600c54604051908152f35b346103b55760403660031901126103b557602060ff6119a9600435611971816105cf565b6024359061197e826105cf565b60018060a01b03166000526007845260406000209060018060a01b0316600052602052604060002090565b54166040519015158152f35b60203660031901126103b5576004356119d360ff600a5416156121e8565b6119e06017548233613229565b6119e8611d3b565b15611a24576119f9601454826132ee565b601454337f12cb4648cf3058b17ceeb33e579f8b0bc269fe0843f3900b8e24b6c54871703c600080a4005b60405162461bcd60e51b815260206004820152601b60248201527f424153455f434f4c4c454354494f4e2f43414e4e4f545f4d494e5400000000006044820152606490fd5b346103b55760203660031901126103b557600435611a86816105cf565b6000546001600160a01b0390611a9f9082163314611f04565b811615611aaf5761002190612d41565b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b346103b55760003660031901126103b5576020601a54604051908152f35b600154811015611b46576000908152600660205260409020546001600160a01b031690565b60405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608490fd5b15611ba857565b60405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608490fd5b634e487b7160e01b600052601160045260246000fd5b6000198101919082116107f657565b919082039182116107f657565b60015460001981019081116107f65790565b15611c5e57565b60405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608490fd5b90600182018092116107f657565b60300190816030116107f657565b919082018092116107f657565b15611ce257565b60405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608490fd5b6019548015908115611d4b575090565b9050421190565b818102929181159184041417156107f657565b15611d6c57565b60405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608490fd5b90604051611dc981611261565b91546001600160a01b038116835260a01c6001600160401b03166020830152565b60001981146107f65760010190565b91611e0d611e0684611f95565b8310611d65565b611e15611c45565b9160009360009060005b858110611e865760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608490fd5b0390fd5b611eb2611ea5611ea0836000526004602052604060002090565b611dbc565b516001600160a01b031690565b6001600160a01b0390808216611efc575b5080831690841614611ed8575b600101611e1f565b95838114611ef357611eeb600191611dea565b969050611ed0565b50929350505050565b935038611ec3565b15611f0b57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b60405190611f5c82611281565b60008252565b908160209103126103b5575190565b6040513d6000823e3d90fd5b611f856120d8565b611f8f5760175490565b60185490565b6001600160a01b03168015611fbe5760005260056020526001600160801b036040600020541690565b60405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608490fd5b9291906040519360209460208101916bffffffffffffffffffffffff199060601b1682526014815261204881611261565b51902091601354916001600160401b03821161127c578160051b60405192612073602083018561129c565b835260208301908201913683116103b557905b82821061209b575050506104b3939450612d88565b81358152908701908701612086565b634e487b7160e01b600052603260045260246000fd5b6120c86120d8565b6120d25760145490565b60155490565b601a5480159081156120e8575090565b90504211806120f45790565b50601954421090565b601f8111612109575050565b6000906012600052600080516020613560833981519152906020601f850160051c83019410612153575b601f0160051c01915b82811061214857505050565b81815560010161213c565b9092508290612133565b60809060208152603360208201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b60608201520190565b156121b857565b60405162461bcd60e51b815280611e826004820161215d565b906121e46020928281519485920161045a565b0190565b156121ef57565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b604080513381523460208201527f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7709190a1565b600081815260066020526040812080546001600160a01b031916905590916001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258280a4565b600082815260066020526040902080546001600160a01b0319166001600160a01b0383161790559091906001600160a01b0390811691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600080a4565b6001600160a01b03166000908152600d602052604090205461232691611d52565b600b5490811561233e57049081039081116107f65790565b634e487b7160e01b600052601260045260246000fd5b3d1561237f573d90612365826112cc565b91612373604051938461129c565b82523d6000602084013e565b606090565b81471061241a576000918291829182916001600160a01b03165af16123a7612354565b50156123af57565b60405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608490fd5b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606490fd5b1561246657565b60405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608490fd5b156124cd57565b60405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608490fd5b1561252857565b60405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b6001600160801b0390811660001901919082116107f657565b9060016001600160801b03809316019182116107f657565b9190916001600160801b03808094169116019182116107f657565b90612631906127506125d885612c2b565b80519092906125f7906001600160a01b03165b6001600160a01b031690565b33148015612856575b8015612828575b6126109061245f565b82516001600160a01b03868116956126a19261266e929190821688146124c6565b83169661263f881515612521565b8551612654906001600160a01b03168a61225a565b6001600160a01b0316600090815260056020526040902090565b61268761268282546001600160801b031690565b61257b565b6001600160801b03166001600160801b0319825416179055565b6001600160a01b03811660009081526005602052604090206126d6906126876126d182546001600160801b031690565b612594565b6126f06126e16112bd565b6001600160a01b039092168252565b426001600160401b03166020820152612713866000526004602052604060002090565b8151815460209093015167ffffffffffffffff60a01b60a09190911b166001600160e01b03199093166001600160a01b0390911617919091179055565b61275984611cb2565b906127816125eb612774846000526004602052604060002090565b546001600160a01b031690565b156127b0575b50507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4565b6001548210156127875780516128219261271391612811906127e7906020906001600160a01b03169501516001600160401b031690565b6128016127f26112bd565b6001600160a01b039096168652565b6001600160401b03166020850152565b6000526004602052604060002090565b3880612787565b5082516001600160a01b0316600090815260076020908152604080832033845290915290205460ff16612607565b50336128646125eb88611b21565b14612600565b612872611c45565b9081018091116107f6576016541061288657565b60405162461bcd60e51b815260206004820152602260248201527f424153455f434f4c4c454354494f4e2f455843454544535f4d41585f535550506044820152614c5960f01b6064820152608490fd5b6040516128e281611281565b600092600082526001916001549360018060a01b0381169461290586151561337a565b6129317f0000000000000000000000000000000000000000000000000000000000004e208511156133d0565b6001600160a01b0382166000908152600560205260409020612a0d9061295690613427565b6129c461299a61296d83516001600160801b031690565b61299560206129866001600160801b038c1680946125ac565b9501516001600160801b031690565b6125ac565b6129b46129a56112bd565b6001600160801b039094168452565b6001600160801b03166020830152565b6001600160a01b0384166000908152600560205260409020815160209092015160801b6fffffffffffffffffffffffffffffffff19166001600160801b03909216919091179055565b612a47612a186112bd565b6001600160a01b0384168152426001600160401b03166020820152612713836000526004602052604060002090565b946000965b848810612a63575050505050506112ca9150600155565b9091929394612aa787829885857fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4612aa2610af2888389612e7b565b611dea565b970196959493929190612a4c565b60405163a9059cbb60e01b60208083019182526001600160a01b03949094166024830152604480830195909552938152919290612af360648461129c565b60018060a01b03169060405192612b0984611261565b8484527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656485850152823b15612b7a57612b55939260009283809351925af1612b4f612354565b9061351f565b80519081612b6257505050565b826112ca93612b7593830101910161344c565b613461565b60405162461bcd60e51b815260048101869052601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b15612bc657565b60405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608490fd5b80156107f6576000190190565b60006020604051612c3b81611261565b8281520152612c4d6001548210612bbf565b6000907f0000000000000000000000000000000000000000000000000000000000004e2080821015612d25575b505b81811015612ce15760405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608490fd5b612cf8611ea0826000526004602052604060002090565b8051612d0c906001600160a01b03166125eb565b612d1f5750612d1a90612c1e565b612c7c565b91505090565b819250612d3590612d3a92611c38565b611cb2565b9038612c7a565b600080546001600160a01b039283166001600160a01b03198216811783559216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3565b929091906000915b8451831015612e0257600190612da684876134c0565b51808211612dd957604080516020810193845290810191909152612dcd8160608101611632565b519020925b0191612d90565b60408051602081019283529081019290925290612df98160608101611632565b51902092612dd2565b915092501490565b908160209103126103b557516104b3816103a3565b6104b3939260809260018060a01b03168252600060208301526040820152816060820152019061047d565b6001600160a01b0391821681529116602082015260408101919091526080606082018190526104b39291019061047d565b909190803b15612f3557612ead602091600093604051948580948193630a85bd0160e11b998a84523360048501612e1f565b03926001600160a01b03165af160009181612f04575b50612ef657612ed0612354565b80519081612ef15760405162461bcd60e51b815280611e826004820161215d565b602001fd5b6001600160e01b0319161490565b612f2791925060203d602011612f2e575b612f1f818361129c565b810190612e0a565b9038612ec3565b503d612f15565b505050600190565b92909190823b15612f7057612ead926020926000604051809681958294630a85bd0160e11b9a8b85523360048601612e4a565b50505050600190565b60125460009291612f89826116ec565b91600190818116908115612fe35750600114612fa457505050565b90919293506012600052600080516020613560833981519152906000915b848310612fd0575050500190565b8181602092548587015201920191612fc2565b60ff191683525050811515909102019150565b30612fff613099565b90603061300b836130f7565b53607861301783613104565b5360295b60018111613057575061304a916130356104b392156134d4565b61163260405193849261162c60208501612f79565b602f60f81b815260010190565b90600f81169060108210156110e457613094916f181899199a1a9b1b9c1cb0b131b232b360811b901a61308a8486613114565b5360041c91612c1e565b61301b565b60405190606082018281106001600160401b0382111761127c57604052602a8252604082602036910137565b906130cf826112cc565b6130dc604051918261129c565b82815280926130ed601f19916112cc565b0190602036910137565b8051156110e45760200190565b8051600110156110e45760210190565b9081518110156110e4570160200190565b80156131ad576000818181805b6131955750613140816130c5565b935b61314c5750505090565b61315590611c29565b90600a9061318061317061316a848406611cc0565b60ff1690565b60f81b6001600160f81b03191690565b841a61318c8487613114565b53049081613142565b91506131a2600a91611dea565b910480849291613132565b506040516131ba81611261565b60018152600360fc1b602082015290565b156131d257565b60405162461bcd60e51b815260206004820152602960248201527f424153455f434f4c4c454354494f4e2f455843454544535f494e444956494455604482015268414c5f535550504c5960b81b6064820152608490fd5b9190916132358361286a565b601b5480159081156132e3575b501561328a576001600160a01b03166000908152601c60205260409020546112ca9261326d91611cce565b90801591821561327f575b50506131cb565b111590503880613278565b60405162461bcd60e51b815260206004820152602b60248201527f424153455f434f4c4c454354494f4e2f455843454544535f4d41585f5045525f60448201526a2a2920a729a0a1aa24a7a760a91b6064820152608490fd5b905083111538613242565b90816132f991611d52565b34106133255733600052601c60205260406000209081548181018091116107f6576112ca9255336128d6565b60405162461bcd60e51b815260206004820152602760248201527f424153455f434f4c4c454354494f4e2f494e53554646494349454e545f45544860448201526617d05353d5539560ca1b6064820152608490fd5b1561338157565b60405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b156133d757565b60405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608490fd5b9060405161343481611261565b91546001600160801b038116835260801c6020830152565b908160209103126103b557516104b381611450565b1561346857565b60405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608490fd5b80518210156110e45760209160051b010190565b156134db57565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b9091901561352b575090565b81511561353b5750805190602001fd5b60405162461bcd60e51b815260206004820152908190611e8290602483019061047d56febb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444a26469706673582212205125dd11b7eba578d613a2c765d6dcdff9952ad6948e686b51752b8dcce2269c64736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000220ea58dfa481a0c08b4af0417e3f62244215a1ab1eae0a100da48407be5cdd94b700000000000000000000000000000000000000000000000000000000000003400000000000000000000000000000000000000000000000000000000000000380000000000000000000000000e1c689334186473db5027b5f9354596ccee5466900000000000000000000000000000000000000000000000000000000000002bc000000000000000000000000000000000000000000000000000000000000001453696c6b732047656e6573697320417661746172000000000000000000000000000000000000000000000000000000000000000000000000000000000000000553696c6b73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004b68747470733a2f2f6d696e742e73696c6b732e696f2f636f6e7472616374732f3078613033653335376130396537363165386434383661313431396337346266343265386431623036342f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000004e200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000062aca02b0000000000000000000000000000000000000000000000000000000062ac846600000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000001000000000000000000000000e1c689334186473db5027b5f9354596ccee546690000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a
-----Decoded View---------------
Arg [0] : name (string): Silks Genesis Avatar
Arg [1] : symbol (string): Silks
Arg [2] : baseTokenURI (string): https://mint.silks.io/contracts/0xa03e357a09e761e8d486a1419c74bf42e8d1b064/
Arg [3] : numericValues (uint256[]): 100,10,20000,0,10,1655480363,1655473254,100
Arg [4] : merkleRoot (bytes32): 0xea58dfa481a0c08b4af0417e3f62244215a1ab1eae0a100da48407be5cdd94b7
Arg [5] : payees (address[]): 0xE1c689334186473DB5027b5f9354596CCEe54669
Arg [6] : shares (uint256[]): 10
Arg [7] : royaltyRecipient (address): 0xE1c689334186473DB5027b5f9354596CCEe54669
Arg [8] : royaltyAmount (uint256): 700
-----Encoded View---------------
30 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [4] : ea58dfa481a0c08b4af0417e3f62244215a1ab1eae0a100da48407be5cdd94b7
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000340
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000380
Arg [7] : 000000000000000000000000e1c689334186473db5027b5f9354596ccee54669
Arg [8] : 00000000000000000000000000000000000000000000000000000000000002bc
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [10] : 53696c6b732047656e6573697320417661746172000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [12] : 53696c6b73000000000000000000000000000000000000000000000000000000
Arg [13] : 000000000000000000000000000000000000000000000000000000000000004b
Arg [14] : 68747470733a2f2f6d696e742e73696c6b732e696f2f636f6e7472616374732f
Arg [15] : 3078613033653335376130396537363165386434383661313431396337346266
Arg [16] : 343265386431623036342f000000000000000000000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [19] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [20] : 0000000000000000000000000000000000000000000000000000000000004e20
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [22] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [23] : 0000000000000000000000000000000000000000000000000000000062aca02b
Arg [24] : 0000000000000000000000000000000000000000000000000000000062ac8466
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [27] : 000000000000000000000000e1c689334186473db5027b5f9354596ccee54669
Arg [28] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [29] : 000000000000000000000000000000000000000000000000000000000000000a
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.