Overview
TokenID
59
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CapsuleHD
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "erc721a/contracts/ERC721A.sol"; contract CapsuleHD is ERC721A, Ownable, Pausable, PaymentSplitter { /* ----------------------------- ENUMS ----------------------------- */ enum Phase { PreSale, PublicSale } enum CapsuleCategory { Onyx, Gold, Diamond } /* ----------------------------- STRUCTS ----------------------------- */ struct MaxSupplyPerCategory { uint256 Onyx; uint256 Gold; uint256 Diamond; } struct PricePerCategory { uint256 Onyx; uint256 Gold; uint256 Diamond; } struct MaxCapsulesPerAddress { uint256 Onyx; uint256 Gold; uint256 Diamond; } struct Params { uint256 startTime; uint256 endTime; bytes32 merkleRootForWhitelist; bytes32 merkleRootForFreeMint; MaxCapsulesPerAddress maxCapsulesPerAddress; PricePerCategory pricePerCategory; Phase phase; } struct AmountOfCapsulesMintedPerCategory{ uint256 Onyx; uint256 Gold; uint256 Diamond; } /* ----------------------------- VARIABLES ----------------------------- */ /// @dev Param of the sale. Params public params; /// @dev Max supply of each category. MaxSupplyPerCategory public maxSupplyPerCategory; /// @dev Amount of capsules minted per category. AmountOfCapsulesMintedPerCategory public amountOfCapsulesMintedPerCategory; uint256 public maxSupply; uint256[] public teamShares; address[] public team; string public baseURI; mapping(address => bool) public freeMintClaimed; mapping(address => AmountOfCapsulesMintedPerCategory) public capsulesMintedPerAddress; event SetBaseURI(string _baseURI); event SetMintParams(Params _params); event Mint( address indexed _to, uint256 _amountOnyx, uint256 _amountGold, uint256 _amountDiamond, uint256 _firstTokenId ); event FreeMintDiamond( address indexed _to, uint256 _tokenId ); /* ----------------------------- MODIFIERS ----------------------------- */ modifier checkSupplies( address _to, uint256 _amountOnyx, uint256 _amountGold, uint256 _amountDiamond ) { require( amountOfCapsulesMintedPerCategory.Onyx + _amountOnyx <= maxSupplyPerCategory.Onyx, "HD: Onyx count per mint limit" ); require( amountOfCapsulesMintedPerCategory.Gold + _amountGold <= maxSupplyPerCategory.Gold, "HD: Gold count per mint limit" ); require( amountOfCapsulesMintedPerCategory.Diamond + _amountDiamond <= maxSupplyPerCategory.Diamond, "HD: Diamond count per mint limit" ); require( _amountOnyx + capsulesMintedPerAddress[_to].Onyx <= params.maxCapsulesPerAddress.Onyx, "HD: max count per address Onyx limit" ); require( _amountGold + capsulesMintedPerAddress[_to].Gold <= params.maxCapsulesPerAddress.Gold, "HD: max count per address Gold limit" ); require( _amountDiamond + capsulesMintedPerAddress[_to].Diamond <= params.maxCapsulesPerAddress.Diamond, "HD: max count per address Diamond limit" ); _; } constructor( uint256 _maxSupply, uint256 _maxSupplyOnyx, uint256 _maxSupplyGold, uint256 _maxSupplyDiamond, address[] memory _team, uint256[] memory _teamShares ) ERC721A("CapsuleHD", "CAPSHD") PaymentSplitter(_team, _teamShares) { maxSupply = _maxSupply; maxSupplyPerCategory = MaxSupplyPerCategory( _maxSupplyOnyx, _maxSupplyGold, _maxSupplyDiamond ); team = _team; teamShares = _teamShares; } function setBaseURI(string calldata baseURI_) external onlyOwner { baseURI = baseURI_; emit SetBaseURI(baseURI_); } function setMintParams(Params memory _params) external onlyOwner { require( _params.maxCapsulesPerAddress.Onyx > 0 && _params.maxCapsulesPerAddress.Gold > 0 && _params.maxCapsulesPerAddress.Diamond > 0, "HD: max Count per address is zero"); require( _params.merkleRootForFreeMint != bytes32(0), "HD: merkleRootForFreeMint is zero" ); params = _params; emit SetMintParams(_params); } function mint( address _to, bytes32[] calldata _merkleProofWhitelist, uint256 _amountOnyx, uint256 _amountGold, uint256 _amountDiamond, bytes32[] calldata _merkleProofFreeMint ) external whenNotPaused payable checkSupplies(_to, _amountOnyx, _amountGold, _amountDiamond) { require( _to != address(0), "HD: zero address"); require( (block.timestamp >= params.startTime) && (block.timestamp < params.endTime), "HD: time is out of range" ); uint256 _totalSupply = totalSupply(); require( _totalSupply + _amountOnyx + _amountGold + _amountDiamond <= maxSupply, "HD: total supply limit" ); require(checkValidity(_merkleProofWhitelist, params.merkleRootForWhitelist), "HD: address not whitelisted"); capsulesMintedPerAddress[_to].Onyx += _amountOnyx; capsulesMintedPerAddress[_to].Gold += _amountGold; capsulesMintedPerAddress[_to].Diamond += _amountDiamond; amountOfCapsulesMintedPerCategory.Onyx += _amountOnyx; amountOfCapsulesMintedPerCategory.Gold += _amountGold; amountOfCapsulesMintedPerCategory.Diamond += _amountDiamond; _checkPayment(_to, _amountOnyx, _amountGold, _amountDiamond, _merkleProofFreeMint); _safeMint(_to, _amountOnyx + _amountGold + _amountDiamond); emit Mint(_to, _amountOnyx, _amountGold, _amountDiamond, _totalSupply); } function _checkPayment( address _to, uint256 _amountOnyx, uint256 _amountGold, uint256 _amountDiamond, bytes32[] calldata _merkleProofFreeMint ) internal { uint256 _amountDiamondToPay = _amountDiamond; if (checkValidity(_merkleProofFreeMint, params.merkleRootForFreeMint) && _amountDiamond > 0 && !freeMintClaimed[_to] ) { _amountDiamondToPay = _amountDiamond - 1; freeMintClaimed[_to] = true; } require(msg.value == getPrice(_amountOnyx, _amountGold, _amountDiamondToPay), "HD: incorrect ether value"); } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function checkValidity(bytes32[] calldata _merkleProof, bytes32 _merkleRoot) public view returns (bool){ if (_merkleRoot == bytes32(0)) { return true; } else { bytes32 _leafToCheck = keccak256(abi.encodePacked(msg.sender)); return MerkleProof.verify(_merkleProof, _merkleRoot, _leafToCheck); } } function getPrice( uint256 _amountOnyx, uint256 _amountGold, uint256 _amountDiamond ) public view returns (uint256) { return _amountOnyx * params.pricePerCategory.Onyx + _amountGold * params.pricePerCategory.Gold + _amountDiamond * params.pricePerCategory.Diamond; } function _baseURI() internal view override returns (string memory) { return baseURI; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 (last updated v4.8.0) (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. The distribution of shares is set at the * time of contract deployment and can't be updated thereafter. * * `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 Getter for the amount of payee's releasable Ether. */ function releasable(address account) public view returns (uint256) { uint256 totalReceived = address(this).balance + totalReleased(); return _pendingPayment(account, totalReceived, released(account)); } /** * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an * IERC20 contract. */ function releasable(IERC20 token, address account) public view returns (uint256) { uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); return _pendingPayment(account, totalReceived, released(token, account)); } /** * @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 payment = releasable(account); require(payment != 0, "PaymentSplitter: account is not due payment"); // _totalReleased is the sum of all values in _released. // If "_totalReleased += payment" does not overflow, then "_released[account] += payment" cannot overflow. _totalReleased += payment; unchecked { _released[account] += 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 payment = releasable(token, account); require(payment != 0, "PaymentSplitter: account is not due payment"); // _erc20TotalReleased[token] is the sum of all values in _erc20Released[token]. // If "_erc20TotalReleased[token] += payment" does not overflow, then "_erc20Released[token][account] += payment" // cannot overflow. _erc20TotalReleased[token] += payment; unchecked { _erc20Released[token][account] += 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 (last updated v4.7.0) (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 Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { 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 (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.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; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ 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)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ 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"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to * 0 before setting it to a non-zero value. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @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"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-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 (last updated v4.9.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ 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 Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle 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++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` 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 payable; /** * @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 payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxSupplyOnyx","type":"uint256"},{"internalType":"uint256","name":"_maxSupplyGold","type":"uint256"},{"internalType":"uint256","name":"_maxSupplyDiamond","type":"uint256"},{"internalType":"address[]","name":"_team","type":"address[]"},{"internalType":"uint256[]","name":"_teamShares","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"FreeMintDiamond","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amountOnyx","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amountGold","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amountDiamond","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_firstTokenId","type":"uint256"}],"name":"Mint","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":false,"internalType":"string","name":"_baseURI","type":"string"}],"name":"SetBaseURI","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"merkleRootForWhitelist","type":"bytes32"},{"internalType":"bytes32","name":"merkleRootForFreeMint","type":"bytes32"},{"components":[{"internalType":"uint256","name":"Onyx","type":"uint256"},{"internalType":"uint256","name":"Gold","type":"uint256"},{"internalType":"uint256","name":"Diamond","type":"uint256"}],"internalType":"struct CapsuleHD.MaxCapsulesPerAddress","name":"maxCapsulesPerAddress","type":"tuple"},{"components":[{"internalType":"uint256","name":"Onyx","type":"uint256"},{"internalType":"uint256","name":"Gold","type":"uint256"},{"internalType":"uint256","name":"Diamond","type":"uint256"}],"internalType":"struct CapsuleHD.PricePerCategory","name":"pricePerCategory","type":"tuple"},{"internalType":"enum CapsuleHD.Phase","name":"phase","type":"uint8"}],"indexed":false,"internalType":"struct CapsuleHD.Params","name":"_params","type":"tuple"}],"name":"SetMintParams","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":"amountOfCapsulesMintedPerCategory","outputs":[{"internalType":"uint256","name":"Onyx","type":"uint256"},{"internalType":"uint256","name":"Gold","type":"uint256"},{"internalType":"uint256","name":"Diamond","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"capsulesMintedPerAddress","outputs":[{"internalType":"uint256","name":"Onyx","type":"uint256"},{"internalType":"uint256","name":"Gold","type":"uint256"},{"internalType":"uint256","name":"Diamond","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"checkValidity","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeMintClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountOnyx","type":"uint256"},{"internalType":"uint256","name":"_amountGold","type":"uint256"},{"internalType":"uint256","name":"_amountDiamond","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyPerCategory","outputs":[{"internalType":"uint256","name":"Onyx","type":"uint256"},{"internalType":"uint256","name":"Gold","type":"uint256"},{"internalType":"uint256","name":"Diamond","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"bytes32[]","name":"_merkleProofWhitelist","type":"bytes32[]"},{"internalType":"uint256","name":"_amountOnyx","type":"uint256"},{"internalType":"uint256","name":"_amountGold","type":"uint256"},{"internalType":"uint256","name":"_amountDiamond","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProofFreeMint","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"params","outputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"merkleRootForWhitelist","type":"bytes32"},{"internalType":"bytes32","name":"merkleRootForFreeMint","type":"bytes32"},{"components":[{"internalType":"uint256","name":"Onyx","type":"uint256"},{"internalType":"uint256","name":"Gold","type":"uint256"},{"internalType":"uint256","name":"Diamond","type":"uint256"}],"internalType":"struct CapsuleHD.MaxCapsulesPerAddress","name":"maxCapsulesPerAddress","type":"tuple"},{"components":[{"internalType":"uint256","name":"Onyx","type":"uint256"},{"internalType":"uint256","name":"Gold","type":"uint256"},{"internalType":"uint256","name":"Diamond","type":"uint256"}],"internalType":"struct CapsuleHD.PricePerCategory","name":"pricePerCategory","type":"tuple"},{"internalType":"enum CapsuleHD.Phase","name":"phase","type":"uint8"}],"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":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","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":[{"components":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"merkleRootForWhitelist","type":"bytes32"},{"internalType":"bytes32","name":"merkleRootForFreeMint","type":"bytes32"},{"components":[{"internalType":"uint256","name":"Onyx","type":"uint256"},{"internalType":"uint256","name":"Gold","type":"uint256"},{"internalType":"uint256","name":"Diamond","type":"uint256"}],"internalType":"struct CapsuleHD.MaxCapsulesPerAddress","name":"maxCapsulesPerAddress","type":"tuple"},{"components":[{"internalType":"uint256","name":"Onyx","type":"uint256"},{"internalType":"uint256","name":"Gold","type":"uint256"},{"internalType":"uint256","name":"Diamond","type":"uint256"}],"internalType":"struct CapsuleHD.PricePerCategory","name":"pricePerCategory","type":"tuple"},{"internalType":"enum CapsuleHD.Phase","name":"phase","type":"uint8"}],"internalType":"struct CapsuleHD.Params","name":"_params","type":"tuple"}],"name":"setMintParams","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":"","type":"uint256"}],"name":"team","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"teamShares","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162006cb738038062006cb78339818101604052810190620000379190620009aa565b81816040518060400160405280600981526020017f43617073756c65484400000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f43415053484400000000000000000000000000000000000000000000000000008152508160029081620000b6919062000cc5565b508060039081620000c8919062000cc5565b50620000d96200029f60201b60201c565b600081905550505062000101620000f5620002a460201b60201c565b620002ac60201b60201c565b6000600860146101000a81548160ff021916908315150217905550805182511462000163576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200015a9062000e33565b60405180910390fd5b6000825111620001aa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001a19062000ea5565b60405180910390fd5b60005b8251811015620002195762000203838281518110620001d157620001d062000ec7565b5b6020026020010151838381518110620001ef57620001ee62000ec7565b5b60200260200101516200037260201b60201c565b8080620002109062000f25565b915050620001ad565b50505085602181905550604051806060016040528086815260200185815260200184815250601b600082015181600001556020820151816001015560408201518160020155905050816023908051906020019062000279929190620005ab565b508060229080519060200190620002929291906200063a565b50505050505050620011c0565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620003e4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003db9062000fe8565b60405180910390fd5b600081116200042a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000421906200105a565b60405180910390fd5b6000600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414620004af576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004a690620010f2565b60405180910390fd5b600d829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508060095462000566919062001114565b6009819055507f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac82826040516200059f92919062001193565b60405180910390a15050565b82805482825590600052602060002090810192821562000627579160200282015b82811115620006265782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190620005cc565b5b5090506200063691906200068c565b5090565b82805482825590600052602060002090810192821562000679579160200282015b82811115620006785782518255916020019190600101906200065b565b5b5090506200068891906200068c565b5090565b5b80821115620006a75760008160009055506001016200068d565b5090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b620006d481620006bf565b8114620006e057600080fd5b50565b600081519050620006f481620006c9565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200074a82620006ff565b810181811067ffffffffffffffff821117156200076c576200076b62000710565b5b80604052505050565b600062000781620006ab565b90506200078f82826200073f565b919050565b600067ffffffffffffffff821115620007b257620007b162000710565b5b602082029050602081019050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620007f582620007c8565b9050919050565b6200080781620007e8565b81146200081357600080fd5b50565b6000815190506200082781620007fc565b92915050565b6000620008446200083e8462000794565b62000775565b905080838252602082019050602084028301858111156200086a5762000869620007c3565b5b835b8181101562000897578062000882888262000816565b8452602084019350506020810190506200086c565b5050509392505050565b600082601f830112620008b957620008b8620006fa565b5b8151620008cb8482602086016200082d565b91505092915050565b600067ffffffffffffffff821115620008f257620008f162000710565b5b602082029050602081019050919050565b60006200091a6200091484620008d4565b62000775565b9050808382526020820190506020840283018581111562000940576200093f620007c3565b5b835b818110156200096d5780620009588882620006e3565b84526020840193505060208101905062000942565b5050509392505050565b600082601f8301126200098f576200098e620006fa565b5b8151620009a184826020860162000903565b91505092915050565b60008060008060008060c08789031215620009ca57620009c9620006b5565b5b6000620009da89828a01620006e3565b9650506020620009ed89828a01620006e3565b955050604062000a0089828a01620006e3565b945050606062000a1389828a01620006e3565b935050608087015167ffffffffffffffff81111562000a375762000a36620006ba565b5b62000a4589828a01620008a1565b92505060a087015167ffffffffffffffff81111562000a695762000a68620006ba565b5b62000a7789828a0162000977565b9150509295509295509295565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000ad757607f821691505b60208210810362000aed5762000aec62000a8f565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000b577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000b18565b62000b63868362000b18565b95508019841693508086168417925050509392505050565b6000819050919050565b600062000ba662000ba062000b9a84620006bf565b62000b7b565b620006bf565b9050919050565b6000819050919050565b62000bc28362000b85565b62000bda62000bd18262000bad565b84845462000b25565b825550505050565b600090565b62000bf162000be2565b62000bfe81848462000bb7565b505050565b5b8181101562000c265762000c1a60008262000be7565b60018101905062000c04565b5050565b601f82111562000c755762000c3f8162000af3565b62000c4a8462000b08565b8101602085101562000c5a578190505b62000c7262000c698562000b08565b83018262000c03565b50505b505050565b600082821c905092915050565b600062000c9a6000198460080262000c7a565b1980831691505092915050565b600062000cb5838362000c87565b9150826002028217905092915050565b62000cd08262000a84565b67ffffffffffffffff81111562000cec5762000ceb62000710565b5b62000cf8825462000abe565b62000d0582828562000c2a565b600060209050601f83116001811462000d3d576000841562000d28578287015190505b62000d34858262000ca7565b86555062000da4565b601f19841662000d4d8662000af3565b60005b8281101562000d775784890151825560018201915060208501945060208101905062000d50565b8683101562000d97578489015162000d93601f89168262000c87565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f5061796d656e7453706c69747465723a2070617965657320616e64207368617260008201527f6573206c656e677468206d69736d617463680000000000000000000000000000602082015250565b600062000e1b60328362000dac565b915062000e288262000dbd565b604082019050919050565b6000602082019050818103600083015262000e4e8162000e0c565b9050919050565b7f5061796d656e7453706c69747465723a206e6f20706179656573000000000000600082015250565b600062000e8d601a8362000dac565b915062000e9a8262000e55565b602082019050919050565b6000602082019050818103600083015262000ec08162000e7e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000f3282620006bf565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362000f675762000f6662000ef6565b5b600182019050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973207468652060008201527f7a65726f20616464726573730000000000000000000000000000000000000000602082015250565b600062000fd0602c8362000dac565b915062000fdd8262000f72565b604082019050919050565b60006020820190508181036000830152620010038162000fc1565b9050919050565b7f5061796d656e7453706c69747465723a20736861726573206172652030000000600082015250565b600062001042601d8362000dac565b91506200104f826200100a565b602082019050919050565b60006020820190508181036000830152620010758162001033565b9050919050565b7f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960008201527f2068617320736861726573000000000000000000000000000000000000000000602082015250565b6000620010da602b8362000dac565b9150620010e7826200107c565b604082019050919050565b600060208201905081810360008301526200110d81620010cb565b9050919050565b60006200112182620006bf565b91506200112e83620006bf565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562001166576200116562000ef6565b5b828201905092915050565b6200117c81620007e8565b82525050565b6200118d81620006bf565b82525050565b6000604082019050620011aa600083018562001171565b620011b9602083018462001182565b9392505050565b615ae780620011d06000396000f3fe6080604052600436106102765760003560e01c80638b83209b1161014f578063c822d86b116100c1578063dc5821e41161007a578063dc5821e4146109e6578063e0ec7c3614610a13578063e33b7de314610a50578063e3eeb39414610a7b578063e985e9c514610aba578063f2fde38b14610af7576102bd565b8063c822d86b14610896578063c87b56dd146108d3578063ce7c2ac214610910578063cff0ab961461094d578063d5abeb011461097e578063d79779b2146109a9576102bd565b8063a22cb46511610113578063a22cb46514610792578063a3f8eace146107bb578063b7c2dd2b146107f8578063b88d4fde14610814578063ba64fd1c14610830578063c45ac05014610859576102bd565b80638b83209b146106955780638da5cb5b146106d257806390ad877a146106fd57806395d89b411461072a5780639852595c14610755576102bd565b8063406072a9116101e85780636352211e116101ac5780636352211e146105855780636c0360eb146105c257806370a08231146105ed578063715018a61461062a5780638456cb59146106415780638647b61314610658576102bd565b8063406072a9146104af57806342842e0e146104ec57806348b750441461050857806355f804b3146105315780635c975abb1461055a576102bd565b8063191655871161023a57806319165587146103ae578063197ebd53146103d757806323b872dd146104145780633a98ef39146104305780633cc4ecab1461045b5780633f4ba83a14610498576102bd565b806301ffc9a7146102c257806306fdde03146102ff578063081812fc1461032a578063095ea7b31461036757806318160ddd14610383576102bd565b366102bd577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706102a4610b20565b346040516102b392919061380a565b60405180910390a1005b600080fd5b3480156102ce57600080fd5b506102e960048036038101906102e4919061389f565b610b28565b6040516102f691906138e7565b60405180910390f35b34801561030b57600080fd5b50610314610bba565b604051610321919061399b565b60405180910390f35b34801561033657600080fd5b50610351600480360381019061034c91906139e9565b610c4c565b60405161035e9190613a16565b60405180910390f35b610381600480360381019061037c9190613a5d565b610ccb565b005b34801561038f57600080fd5b50610398610e0f565b6040516103a59190613a9d565b60405180910390f35b3480156103ba57600080fd5b506103d560048036038101906103d09190613af6565b610e26565b005b3480156103e357600080fd5b506103fe60048036038101906103f991906139e9565b610fa5565b60405161040b9190613a16565b60405180910390f35b61042e60048036038101906104299190613b23565b610fe4565b005b34801561043c57600080fd5b50610445611306565b6040516104529190613a9d565b60405180910390f35b34801561046757600080fd5b50610482600480360381019061047d9190613b76565b611310565b60405161048f9190613a9d565b60405180910390f35b3480156104a457600080fd5b506104ad61136b565b005b3480156104bb57600080fd5b506104d660048036038101906104d19190613c07565b61137d565b6040516104e39190613a9d565b60405180910390f35b61050660048036038101906105019190613b23565b611404565b005b34801561051457600080fd5b5061052f600480360381019061052a9190613c07565b611424565b005b34801561053d57600080fd5b5061055860048036038101906105539190613cac565b611637565b005b34801561056657600080fd5b5061056f61168e565b60405161057c91906138e7565b60405180910390f35b34801561059157600080fd5b506105ac60048036038101906105a791906139e9565b6116a5565b6040516105b99190613a16565b60405180910390f35b3480156105ce57600080fd5b506105d76116b7565b6040516105e4919061399b565b60405180910390f35b3480156105f957600080fd5b50610614600480360381019061060f9190613cf9565b611745565b6040516106219190613a9d565b60405180910390f35b34801561063657600080fd5b5061063f6117fd565b005b34801561064d57600080fd5b50610656611811565b005b34801561066457600080fd5b5061067f600480360381019061067a91906139e9565b611823565b60405161068c9190613a9d565b60405180910390f35b3480156106a157600080fd5b506106bc60048036038101906106b791906139e9565b611847565b6040516106c99190613a16565b60405180910390f35b3480156106de57600080fd5b506106e761188f565b6040516106f49190613a16565b60405180910390f35b34801561070957600080fd5b506107126118b9565b60405161072193929190613d26565b60405180910390f35b34801561073657600080fd5b5061073f6118d1565b60405161074c919061399b565b60405180910390f35b34801561076157600080fd5b5061077c60048036038101906107779190613cf9565b611963565b6040516107899190613a9d565b60405180910390f35b34801561079e57600080fd5b506107b960048036038101906107b49190613d89565b6119ac565b005b3480156107c757600080fd5b506107e260048036038101906107dd9190613cf9565b611ab7565b6040516107ef9190613a9d565b60405180910390f35b610812600480360381019061080d9190613e1f565b611aea565b005b61082e6004803603810190610829919061401e565b61213e565b005b34801561083c57600080fd5b506108576004803603810190610852919061427f565b6121b1565b005b34801561086557600080fd5b50610880600480360381019061087b9190613c07565b61235f565b60405161088d9190613a9d565b60405180910390f35b3480156108a257600080fd5b506108bd60048036038101906108b891906142ad565b61240e565b6040516108ca91906138e7565b60405180910390f35b3480156108df57600080fd5b506108fa60048036038101906108f591906139e9565b6124a5565b604051610907919061399b565b60405180910390f35b34801561091c57600080fd5b5061093760048036038101906109329190613cf9565b612543565b6040516109449190613a9d565b60405180910390f35b34801561095957600080fd5b5061096261258c565b6040516109759796959493929190614426565b60405180910390f35b34801561098a57600080fd5b50610993612619565b6040516109a09190613a9d565b60405180910390f35b3480156109b557600080fd5b506109d060048036038101906109cb9190614497565b61261f565b6040516109dd9190613a9d565b60405180910390f35b3480156109f257600080fd5b506109fb612668565b604051610a0a93929190613d26565b60405180910390f35b348015610a1f57600080fd5b50610a3a6004803603810190610a359190613cf9565b612680565b604051610a4791906138e7565b60405180910390f35b348015610a5c57600080fd5b50610a656126a0565b604051610a729190613a9d565b60405180910390f35b348015610a8757600080fd5b50610aa26004803603810190610a9d9190613cf9565b6126aa565b604051610ab193929190613d26565b60405180910390f35b348015610ac657600080fd5b50610ae16004803603810190610adc91906144c4565b6126d4565b604051610aee91906138e7565b60405180910390f35b348015610b0357600080fd5b50610b1e6004803603810190610b199190613cf9565b612768565b005b600033905090565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b8357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bb35750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610bc990614533565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf590614533565b8015610c425780601f10610c1757610100808354040283529160200191610c42565b820191906000526020600020905b815481529060010190602001808311610c2557829003601f168201915b5050505050905090565b6000610c57826127eb565b610c8d576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610cd6826116a5565b90508073ffffffffffffffffffffffffffffffffffffffff16610cf761284a565b73ffffffffffffffffffffffffffffffffffffffff1614610d5a57610d2381610d1e61284a565b6126d4565b610d59576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610e19612852565b6001546000540303905090565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9f906145d6565b60405180910390fd5b6000610eb382611ab7565b905060008103610ef8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eef90614668565b60405180910390fd5b80600a6000828254610f0a91906146b7565b9250508190555080600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550610f688282612857565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568282604051610f9992919061476c565b60405180910390a15050565b60238181548110610fb557600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610fef8261294b565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611056576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061106284612a17565b91509150611078818761107361284a565b612a3e565b6110c45761108d8661108861284a565b6126d4565b6110c3576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361112a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111378686866001612a82565b801561114257600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550611210856111ec888887612a88565b7c020000000000000000000000000000000000000000000000000000000017612ab0565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036112965760006001850190506000600460008381526020019081526020016000205403611294576000548114611293578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46112fe8686866001612adb565b505050505050565b6000600954905090565b6000601060070160020154826113269190614795565b6010600701600101548461133a9190614795565b6010600701600001548661134e9190614795565b61135891906146b7565b61136291906146b7565b90509392505050565b611373612ae1565b61137b612b5f565b565b6000600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b61141f8383836040518060200160405280600081525061213e565b505050565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116114a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149d906145d6565b60405180910390fd5b60006114b2838361235f565b9050600081036114f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ee90614668565b60405180910390fd5b80600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461154691906146b7565b9250508190555080600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506115e2838383612bc2565b8273ffffffffffffffffffffffffffffffffffffffff167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a838360405161162a92919061380a565b60405180910390a2505050565b61163f612ae1565b81816024918261165092919061499c565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa8282604051611682929190614a99565b60405180910390a15050565b6000600860149054906101000a900460ff16905090565b60006116b08261294b565b9050919050565b602480546116c490614533565b80601f01602080910402602001604051908101604052809291908181526020018280546116f090614533565b801561173d5780601f106117125761010080835404028352916020019161173d565b820191906000526020600020905b81548152906001019060200180831161172057829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117ac576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611805612ae1565b61180f6000612c48565b565b611819612ae1565b611821612d0e565b565b6022818154811061183357600080fd5b906000526020600020016000915090505481565b6000600d828154811061185d5761185c614abd565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b601e8060000154908060010154908060020154905083565b6060600380546118e090614533565b80601f016020809104026020016040519081016040528092919081815260200182805461190c90614533565b80156119595780601f1061192e57610100808354040283529160200191611959565b820191906000526020600020905b81548152906001019060200180831161193c57829003601f168201915b5050505050905090565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b80600760006119b961284a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a6661284a565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611aab91906138e7565b60405180910390a35050565b600080611ac26126a0565b47611acd91906146b7565b9050611ae28382611add86611963565b612d71565b915050919050565b611af2612ddf565b87858585601b6000015483601e60000154611b0d91906146b7565b1115611b4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4590614b38565b60405180910390fd5b601b6001015482601e60010154611b6591906146b7565b1115611ba6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9d90614ba4565b60405180910390fd5b601b6002015481601e60020154611bbd91906146b7565b1115611bfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf590614c10565b60405180910390fd5b601060040160000154602660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015484611c5591906146b7565b1115611c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8d90614ca2565b60405180910390fd5b601060040160010154602660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015483611ced91906146b7565b1115611d2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2590614d34565b60405180910390fd5b601060040160020154602660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002015482611d8591906146b7565b1115611dc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbd90614dc6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff1603611e35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2c90614e32565b60405180910390fd5b6010600001544210158015611e4e575060106001015442105b611e8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8490614e9e565b60405180910390fd5b6000611e97610e0f565b9050602154888a8c84611eaa91906146b7565b611eb491906146b7565b611ebe91906146b7565b1115611eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef690614f0a565b60405180910390fd5b611f0f8c8c60106002015461240e565b611f4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4590614f76565b60405180910390fd5b89602660008f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000828254611fa091906146b7565b9250508190555088602660008f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254611ff991906146b7565b9250508190555087602660008f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201600082825461205291906146b7565b9250508190555089601e600001600082825461206e91906146b7565b9250508190555088601e600101600082825461208a91906146b7565b9250508190555087601e60020160008282546120a691906146b7565b925050819055506120bb8d8b8b8b8b8b612e29565b6120db8d898b8d6120cc91906146b7565b6120d691906146b7565b612f62565b8c73ffffffffffffffffffffffffffffffffffffffff167f94c792774c59479f7bd68442f3af3691c02123a5aabee8b6f9116d8af8aa66698b8b8b856040516121279493929190614f96565b60405180910390a250505050505050505050505050565b612149848484610fe4565b60008373ffffffffffffffffffffffffffffffffffffffff163b146121ab5761217484848484612f80565b6121aa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6121b9612ae1565b60008160800151600001511180156121d957506000816080015160200151115b80156121ed57506000816080015160400151115b61222c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122239061504d565b60405180910390fd5b6000801b816060015103612275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226c906150df565b60405180910390fd5b80601060008201518160000155602082015181600101556040820151816002015560608201518160030155608082015181600401600082015181600001556020820151816001015560408201518160020155505060a082015181600701600082015181600001556020820151816001015560408201518160020155505060c082015181600a0160006101000a81548160ff0219169083600181111561231d5761231c6143af565b5b02179055509050507f3545f6907e2537b96cf8a2e3fecbadfda9a20a51c2c156d4b3923ead00af2ce7816040516123549190615231565b60405180910390a150565b60008061236b8461261f565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016123a49190613a16565b602060405180830381865afa1580156123c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123e59190615262565b6123ef91906146b7565b90506124058382612400878761137d565b612d71565b91505092915050565b60008060001b8203612423576001905061249e565b60003360405160200161243691906152d7565b60405160208183030381529060405280519060200120905061249a858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505084836130d0565b9150505b9392505050565b60606124b0826127eb565b6124e6576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006124f06130e7565b90506000815103612510576040518060200160405280600081525061253b565b8061251a84613179565b60405160200161252b92919061532e565b6040516020818303038152906040525b915050919050565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6010806000015490806001015490806002015490806003015490806004016040518060600160405290816000820154815260200160018201548152602001600282015481525050908060070160405180606001604052908160008201548152602001600182015481526020016002820154815250509080600a0160009054906101000a900460ff16905087565b60215481565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b601b8060000154908060010154908060020154905083565b60256020528060005260406000206000915054906101000a900460ff1681565b6000600a54905090565b60266020528060005260406000206000915090508060000154908060010154908060020154905083565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612770612ae1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036127df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d6906153c4565b60405180910390fd5b6127e881612c48565b50565b6000816127f6612852565b11158015612805575060005482105b8015612843575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b8047101561289a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289190615430565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516128c090615481565b60006040518083038185875af1925050503d80600081146128fd576040519150601f19603f3d011682016040523d82523d6000602084013e612902565b606091505b5050905080612946576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293d90615508565b60405180910390fd5b505050565b6000808290508061295a612852565b116129e0576000548110156129df5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036129dd575b600081036129d35760046000836001900393508381526020019081526020016000205490506129a9565b8092505050612a12565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612a9f8686846131c9565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612ae9610b20565b73ffffffffffffffffffffffffffffffffffffffff16612b0761188f565b73ffffffffffffffffffffffffffffffffffffffff1614612b5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5490615574565b60405180910390fd5b565b612b676131d2565b6000600860146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612bab610b20565b604051612bb89190613a16565b60405180910390a1565b612c438363a9059cbb60e01b8484604051602401612be192919061380a565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061321b565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612d16612ddf565b6001600860146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d5a610b20565b604051612d679190613a16565b60405180910390a1565b600081600954600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485612dc29190614795565b612dcc91906155c3565b612dd691906155f4565b90509392505050565b612de761168e565b15612e27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e1e90615674565b60405180910390fd5b565b6000839050612e3e838360106003015461240e565b8015612e4a5750600084115b8015612ea05750602560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612f0d57600184612eb291906155f4565b90506001602560008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b612f18868683611310565b3414612f59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f50906156e0565b60405180910390fd5b50505050505050565b612f7c8282604051806020016040528060008152506132e3565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612fa661284a565b8786866040518563ffffffff1660e01b8152600401612fc89493929190615755565b6020604051808303816000875af192505050801561300457506040513d601f19601f8201168201806040525081019061300191906157b6565b60015b61307d573d8060008114613034576040519150601f19603f3d011682016040523d82523d6000602084013e613039565b606091505b506000815103613075576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000826130dd8584613380565b1490509392505050565b6060602480546130f690614533565b80601f016020809104026020016040519081016040528092919081815260200182805461312290614533565b801561316f5780601f106131445761010080835404028352916020019161316f565b820191906000526020600020905b81548152906001019060200180831161315257829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156131b457600184039350600a81066030018453600a8104905080613192575b50828103602084039350808452505050919050565b60009392505050565b6131da61168e565b613219576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132109061582f565b60405180910390fd5b565b600061327d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166133d69092919063ffffffff16565b905060008151148061329f57508080602001905181019061329e9190615864565b5b6132de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132d590615903565b60405180910390fd5b505050565b6132ed83836133ee565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461337b57600080549050600083820390505b61332d6000868380600101945086612f80565b613363576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061331a57816000541461337857600080fd5b50505b505050565b60008082905060005b84518110156133cb576133b6828683815181106133a9576133a8614abd565b5b60200260200101516135a9565b915080806133c390615923565b915050613389565b508091505092915050565b60606133e584846000856135d4565b90509392505050565b6000805490506000820361342e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61343b6000848385612a82565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506134b2836134a36000866000612a88565b6134ac856136a1565b17612ab0565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461355357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613518565b506000820361358e576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506135a46000848385612adb565b505050565b60008183106135c1576135bc82846136b1565b6135cc565b6135cb83836136b1565b5b905092915050565b606082471015613619576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613610906159dd565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516136429190615a2e565b60006040518083038185875af1925050503d806000811461367f576040519150601f19603f3d011682016040523d82523d6000602084013e613684565b606091505b5091509150613695878383876136c8565b92505050949350505050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b6060831561372a576000835103613722576136e28561373d565b613721576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161371890615a91565b60405180910390fd5b5b829050613735565b6137348383613760565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156137735781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137a7919061399b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006137db826137b0565b9050919050565b6137eb816137d0565b82525050565b6000819050919050565b613804816137f1565b82525050565b600060408201905061381f60008301856137e2565b61382c60208301846137fb565b9392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61387c81613847565b811461388757600080fd5b50565b60008135905061389981613873565b92915050565b6000602082840312156138b5576138b461383d565b5b60006138c38482850161388a565b91505092915050565b60008115159050919050565b6138e1816138cc565b82525050565b60006020820190506138fc60008301846138d8565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561393c578082015181840152602081019050613921565b8381111561394b576000848401525b50505050565b6000601f19601f8301169050919050565b600061396d82613902565b613977818561390d565b935061398781856020860161391e565b61399081613951565b840191505092915050565b600060208201905081810360008301526139b58184613962565b905092915050565b6139c6816137f1565b81146139d157600080fd5b50565b6000813590506139e3816139bd565b92915050565b6000602082840312156139ff576139fe61383d565b5b6000613a0d848285016139d4565b91505092915050565b6000602082019050613a2b60008301846137e2565b92915050565b613a3a816137d0565b8114613a4557600080fd5b50565b600081359050613a5781613a31565b92915050565b60008060408385031215613a7457613a7361383d565b5b6000613a8285828601613a48565b9250506020613a93858286016139d4565b9150509250929050565b6000602082019050613ab260008301846137fb565b92915050565b6000613ac3826137b0565b9050919050565b613ad381613ab8565b8114613ade57600080fd5b50565b600081359050613af081613aca565b92915050565b600060208284031215613b0c57613b0b61383d565b5b6000613b1a84828501613ae1565b91505092915050565b600080600060608486031215613b3c57613b3b61383d565b5b6000613b4a86828701613a48565b9350506020613b5b86828701613a48565b9250506040613b6c868287016139d4565b9150509250925092565b600080600060608486031215613b8f57613b8e61383d565b5b6000613b9d868287016139d4565b9350506020613bae868287016139d4565b9250506040613bbf868287016139d4565b9150509250925092565b6000613bd4826137d0565b9050919050565b613be481613bc9565b8114613bef57600080fd5b50565b600081359050613c0181613bdb565b92915050565b60008060408385031215613c1e57613c1d61383d565b5b6000613c2c85828601613bf2565b9250506020613c3d85828601613a48565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f840112613c6c57613c6b613c47565b5b8235905067ffffffffffffffff811115613c8957613c88613c4c565b5b602083019150836001820283011115613ca557613ca4613c51565b5b9250929050565b60008060208385031215613cc357613cc261383d565b5b600083013567ffffffffffffffff811115613ce157613ce0613842565b5b613ced85828601613c56565b92509250509250929050565b600060208284031215613d0f57613d0e61383d565b5b6000613d1d84828501613a48565b91505092915050565b6000606082019050613d3b60008301866137fb565b613d4860208301856137fb565b613d5560408301846137fb565b949350505050565b613d66816138cc565b8114613d7157600080fd5b50565b600081359050613d8381613d5d565b92915050565b60008060408385031215613da057613d9f61383d565b5b6000613dae85828601613a48565b9250506020613dbf85828601613d74565b9150509250929050565b60008083601f840112613ddf57613dde613c47565b5b8235905067ffffffffffffffff811115613dfc57613dfb613c4c565b5b602083019150836020820283011115613e1857613e17613c51565b5b9250929050565b60008060008060008060008060c0898b031215613e3f57613e3e61383d565b5b6000613e4d8b828c01613a48565b985050602089013567ffffffffffffffff811115613e6e57613e6d613842565b5b613e7a8b828c01613dc9565b97509750506040613e8d8b828c016139d4565b9550506060613e9e8b828c016139d4565b9450506080613eaf8b828c016139d4565b93505060a089013567ffffffffffffffff811115613ed057613ecf613842565b5b613edc8b828c01613dc9565b92509250509295985092959890939650565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613f2b82613951565b810181811067ffffffffffffffff82111715613f4a57613f49613ef3565b5b80604052505050565b6000613f5d613833565b9050613f698282613f22565b919050565b600067ffffffffffffffff821115613f8957613f88613ef3565b5b613f9282613951565b9050602081019050919050565b82818337600083830152505050565b6000613fc1613fbc84613f6e565b613f53565b905082815260208101848484011115613fdd57613fdc613eee565b5b613fe8848285613f9f565b509392505050565b600082601f83011261400557614004613c47565b5b8135614015848260208601613fae565b91505092915050565b600080600080608085870312156140385761403761383d565b5b600061404687828801613a48565b945050602061405787828801613a48565b9350506040614068878288016139d4565b925050606085013567ffffffffffffffff81111561408957614088613842565b5b61409587828801613ff0565b91505092959194509250565b600080fd5b6000819050919050565b6140b9816140a6565b81146140c457600080fd5b50565b6000813590506140d6816140b0565b92915050565b6000606082840312156140f2576140f16140a1565b5b6140fc6060613f53565b9050600061410c848285016139d4565b6000830152506020614120848285016139d4565b6020830152506040614134848285016139d4565b60408301525092915050565b600060608284031215614156576141556140a1565b5b6141606060613f53565b90506000614170848285016139d4565b6000830152506020614184848285016139d4565b6020830152506040614198848285016139d4565b60408301525092915050565b600281106141b157600080fd5b50565b6000813590506141c3816141a4565b92915050565b600061016082840312156141e0576141df6140a1565b5b6141ea60e0613f53565b905060006141fa848285016139d4565b600083015250602061420e848285016139d4565b6020830152506040614222848285016140c7565b6040830152506060614236848285016140c7565b606083015250608061424a848285016140dc565b60808301525060e061425e84828501614140565b60a083015250610140614273848285016141b4565b60c08301525092915050565b600061016082840312156142965761429561383d565b5b60006142a4848285016141c9565b91505092915050565b6000806000604084860312156142c6576142c561383d565b5b600084013567ffffffffffffffff8111156142e4576142e3613842565b5b6142f086828701613dc9565b93509350506020614303868287016140c7565b9150509250925092565b614316816140a6565b82525050565b614325816137f1565b82525050565b606082016000820151614341600085018261431c565b506020820151614354602085018261431c565b506040820151614367604085018261431c565b50505050565b606082016000820151614383600085018261431c565b506020820151614396602085018261431c565b5060408201516143a9604085018261431c565b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600281106143ef576143ee6143af565b5b50565b6000819050614400826143de565b919050565b6000614410826143f2565b9050919050565b61442081614405565b82525050565b60006101608201905061443c600083018a6137fb565b61444960208301896137fb565b614456604083018861430d565b614463606083018761430d565b614470608083018661432b565b61447d60e083018561436d565b61448b610140830184614417565b98975050505050505050565b6000602082840312156144ad576144ac61383d565b5b60006144bb84828501613bf2565b91505092915050565b600080604083850312156144db576144da61383d565b5b60006144e985828601613a48565b92505060206144fa85828601613a48565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061454b57607f821691505b60208210810361455e5761455d614504565b5b50919050565b7f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008201527f7368617265730000000000000000000000000000000000000000000000000000602082015250565b60006145c060268361390d565b91506145cb82614564565b604082019050919050565b600060208201905081810360008301526145ef816145b3565b9050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008201527f647565207061796d656e74000000000000000000000000000000000000000000602082015250565b6000614652602b8361390d565b915061465d826145f6565b604082019050919050565b6000602082019050818103600083015261468181614645565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006146c2826137f1565b91506146cd836137f1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561470257614701614688565b5b828201905092915050565b6000819050919050565b600061473261472d614728846137b0565b61470d565b6137b0565b9050919050565b600061474482614717565b9050919050565b600061475682614739565b9050919050565b6147668161474b565b82525050565b6000604082019050614781600083018561475d565b61478e60208301846137fb565b9392505050565b60006147a0826137f1565b91506147ab836137f1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156147e4576147e3614688565b5b828202905092915050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261485c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261481f565b614866868361481f565b95508019841693508086168417925050509392505050565b600061489961489461488f846137f1565b61470d565b6137f1565b9050919050565b6000819050919050565b6148b38361487e565b6148c76148bf826148a0565b84845461482c565b825550505050565b600090565b6148dc6148cf565b6148e78184846148aa565b505050565b5b8181101561490b576149006000826148d4565b6001810190506148ed565b5050565b601f82111561495057614921816147fa565b61492a8461480f565b81016020851015614939578190505b61494d6149458561480f565b8301826148ec565b50505b505050565b600082821c905092915050565b600061497360001984600802614955565b1980831691505092915050565b600061498c8383614962565b9150826002028217905092915050565b6149a683836147ef565b67ffffffffffffffff8111156149bf576149be613ef3565b5b6149c98254614533565b6149d482828561490f565b6000601f831160018114614a0357600084156149f1578287013590505b6149fb8582614980565b865550614a63565b601f198416614a11866147fa565b60005b82811015614a3957848901358255600182019150602085019450602081019050614a14565b86831015614a565784890135614a52601f891682614962565b8355505b6001600288020188555050505b50505050505050565b6000614a78838561390d565b9350614a85838584613f9f565b614a8e83613951565b840190509392505050565b60006020820190508181036000830152614ab4818486614a6c565b90509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f48443a204f6e797820636f756e7420706572206d696e74206c696d6974000000600082015250565b6000614b22601d8361390d565b9150614b2d82614aec565b602082019050919050565b60006020820190508181036000830152614b5181614b15565b9050919050565b7f48443a20476f6c6420636f756e7420706572206d696e74206c696d6974000000600082015250565b6000614b8e601d8361390d565b9150614b9982614b58565b602082019050919050565b60006020820190508181036000830152614bbd81614b81565b9050919050565b7f48443a204469616d6f6e6420636f756e7420706572206d696e74206c696d6974600082015250565b6000614bfa60208361390d565b9150614c0582614bc4565b602082019050919050565b60006020820190508181036000830152614c2981614bed565b9050919050565b7f48443a206d617820636f756e74207065722061646472657373204f6e7978206c60008201527f696d697400000000000000000000000000000000000000000000000000000000602082015250565b6000614c8c60248361390d565b9150614c9782614c30565b604082019050919050565b60006020820190508181036000830152614cbb81614c7f565b9050919050565b7f48443a206d617820636f756e7420706572206164647265737320476f6c64206c60008201527f696d697400000000000000000000000000000000000000000000000000000000602082015250565b6000614d1e60248361390d565b9150614d2982614cc2565b604082019050919050565b60006020820190508181036000830152614d4d81614d11565b9050919050565b7f48443a206d617820636f756e74207065722061646472657373204469616d6f6e60008201527f64206c696d697400000000000000000000000000000000000000000000000000602082015250565b6000614db060278361390d565b9150614dbb82614d54565b604082019050919050565b60006020820190508181036000830152614ddf81614da3565b9050919050565b7f48443a207a65726f206164647265737300000000000000000000000000000000600082015250565b6000614e1c60108361390d565b9150614e2782614de6565b602082019050919050565b60006020820190508181036000830152614e4b81614e0f565b9050919050565b7f48443a2074696d65206973206f7574206f662072616e67650000000000000000600082015250565b6000614e8860188361390d565b9150614e9382614e52565b602082019050919050565b60006020820190508181036000830152614eb781614e7b565b9050919050565b7f48443a20746f74616c20737570706c79206c696d697400000000000000000000600082015250565b6000614ef460168361390d565b9150614eff82614ebe565b602082019050919050565b60006020820190508181036000830152614f2381614ee7565b9050919050565b7f48443a2061646472657373206e6f742077686974656c69737465640000000000600082015250565b6000614f60601b8361390d565b9150614f6b82614f2a565b602082019050919050565b60006020820190508181036000830152614f8f81614f53565b9050919050565b6000608082019050614fab60008301876137fb565b614fb860208301866137fb565b614fc560408301856137fb565b614fd260608301846137fb565b95945050505050565b7f48443a206d617820436f756e74207065722061646472657373206973207a657260008201527f6f00000000000000000000000000000000000000000000000000000000000000602082015250565b600061503760218361390d565b915061504282614fdb565b604082019050919050565b600060208201905081810360008301526150668161502a565b9050919050565b7f48443a206d65726b6c65526f6f74466f72467265654d696e74206973207a657260008201527f6f00000000000000000000000000000000000000000000000000000000000000602082015250565b60006150c960218361390d565b91506150d48261506d565b604082019050919050565b600060208201905081810360008301526150f8816150bc565b9050919050565b615108816140a6565b82525050565b606082016000820151615124600085018261431c565b506020820151615137602085018261431c565b50604082015161514a604085018261431c565b50505050565b606082016000820151615166600085018261431c565b506020820151615179602085018261431c565b50604082015161518c604085018261431c565b50505050565b61519b81614405565b82525050565b610160820160008201516151b8600085018261431c565b5060208201516151cb602085018261431c565b5060408201516151de60408501826150ff565b5060608201516151f160608501826150ff565b506080820151615204608085018261510e565b5060a082015161521760e0850182615150565b5060c082015161522b610140850182615192565b50505050565b60006101608201905061524760008301846151a1565b92915050565b60008151905061525c816139bd565b92915050565b6000602082840312156152785761527761383d565b5b60006152868482850161524d565b91505092915050565b60008160601b9050919050565b60006152a78261528f565b9050919050565b60006152b98261529c565b9050919050565b6152d16152cc826137d0565b6152ae565b82525050565b60006152e382846152c0565b60148201915081905092915050565b600081905092915050565b600061530882613902565b61531281856152f2565b935061532281856020860161391e565b80840191505092915050565b600061533a82856152fd565b915061534682846152fd565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006153ae60268361390d565b91506153b982615352565b604082019050919050565b600060208201905081810360008301526153dd816153a1565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b600061541a601d8361390d565b9150615425826153e4565b602082019050919050565b600060208201905081810360008301526154498161540d565b9050919050565b600081905092915050565b50565b600061546b600083615450565b91506154768261545b565b600082019050919050565b600061548c8261545e565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b60006154f2603a8361390d565b91506154fd82615496565b604082019050919050565b60006020820190508181036000830152615521816154e5565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061555e60208361390d565b915061556982615528565b602082019050919050565b6000602082019050818103600083015261558d81615551565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006155ce826137f1565b91506155d9836137f1565b9250826155e9576155e8615594565b5b828204905092915050565b60006155ff826137f1565b915061560a836137f1565b92508282101561561d5761561c614688565b5b828203905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061565e60108361390d565b915061566982615628565b602082019050919050565b6000602082019050818103600083015261568d81615651565b9050919050565b7f48443a20696e636f72726563742065746865722076616c756500000000000000600082015250565b60006156ca60198361390d565b91506156d582615694565b602082019050919050565b600060208201905081810360008301526156f9816156bd565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061572782615700565b615731818561570b565b935061574181856020860161391e565b61574a81613951565b840191505092915050565b600060808201905061576a60008301876137e2565b61577760208301866137e2565b61578460408301856137fb565b8181036060830152615796818461571c565b905095945050505050565b6000815190506157b081613873565b92915050565b6000602082840312156157cc576157cb61383d565b5b60006157da848285016157a1565b91505092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061581960148361390d565b9150615824826157e3565b602082019050919050565b600060208201905081810360008301526158488161580c565b9050919050565b60008151905061585e81613d5d565b92915050565b60006020828403121561587a5761587961383d565b5b60006158888482850161584f565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006158ed602a8361390d565b91506158f882615891565b604082019050919050565b6000602082019050818103600083015261591c816158e0565b9050919050565b600061592e826137f1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036159605761595f614688565b5b600182019050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006159c760268361390d565b91506159d28261596b565b604082019050919050565b600060208201905081810360008301526159f6816159ba565b9050919050565b6000615a0882615700565b615a128185615450565b9350615a2281856020860161391e565b80840191505092915050565b6000615a3a82846159fd565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000615a7b601d8361390d565b9150615a8682615a45565b602082019050919050565b60006020820190508181036000830152615aaa81615a6e565b905091905056fea2646970667358221220a49a7f4312d556950c1d530b5f43896d0ee94d4dff94894f4129b58d3bad91af64736f6c634300080f0033000000000000000000000000000000000000000000000000000000000000015e00000000000000000000000000000000000000000000000000000000000000c80000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c7158cab3626342c532f9d9ee644eccfc41e36c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064
Deployed Bytecode
0x6080604052600436106102765760003560e01c80638b83209b1161014f578063c822d86b116100c1578063dc5821e41161007a578063dc5821e4146109e6578063e0ec7c3614610a13578063e33b7de314610a50578063e3eeb39414610a7b578063e985e9c514610aba578063f2fde38b14610af7576102bd565b8063c822d86b14610896578063c87b56dd146108d3578063ce7c2ac214610910578063cff0ab961461094d578063d5abeb011461097e578063d79779b2146109a9576102bd565b8063a22cb46511610113578063a22cb46514610792578063a3f8eace146107bb578063b7c2dd2b146107f8578063b88d4fde14610814578063ba64fd1c14610830578063c45ac05014610859576102bd565b80638b83209b146106955780638da5cb5b146106d257806390ad877a146106fd57806395d89b411461072a5780639852595c14610755576102bd565b8063406072a9116101e85780636352211e116101ac5780636352211e146105855780636c0360eb146105c257806370a08231146105ed578063715018a61461062a5780638456cb59146106415780638647b61314610658576102bd565b8063406072a9146104af57806342842e0e146104ec57806348b750441461050857806355f804b3146105315780635c975abb1461055a576102bd565b8063191655871161023a57806319165587146103ae578063197ebd53146103d757806323b872dd146104145780633a98ef39146104305780633cc4ecab1461045b5780633f4ba83a14610498576102bd565b806301ffc9a7146102c257806306fdde03146102ff578063081812fc1461032a578063095ea7b31461036757806318160ddd14610383576102bd565b366102bd577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706102a4610b20565b346040516102b392919061380a565b60405180910390a1005b600080fd5b3480156102ce57600080fd5b506102e960048036038101906102e4919061389f565b610b28565b6040516102f691906138e7565b60405180910390f35b34801561030b57600080fd5b50610314610bba565b604051610321919061399b565b60405180910390f35b34801561033657600080fd5b50610351600480360381019061034c91906139e9565b610c4c565b60405161035e9190613a16565b60405180910390f35b610381600480360381019061037c9190613a5d565b610ccb565b005b34801561038f57600080fd5b50610398610e0f565b6040516103a59190613a9d565b60405180910390f35b3480156103ba57600080fd5b506103d560048036038101906103d09190613af6565b610e26565b005b3480156103e357600080fd5b506103fe60048036038101906103f991906139e9565b610fa5565b60405161040b9190613a16565b60405180910390f35b61042e60048036038101906104299190613b23565b610fe4565b005b34801561043c57600080fd5b50610445611306565b6040516104529190613a9d565b60405180910390f35b34801561046757600080fd5b50610482600480360381019061047d9190613b76565b611310565b60405161048f9190613a9d565b60405180910390f35b3480156104a457600080fd5b506104ad61136b565b005b3480156104bb57600080fd5b506104d660048036038101906104d19190613c07565b61137d565b6040516104e39190613a9d565b60405180910390f35b61050660048036038101906105019190613b23565b611404565b005b34801561051457600080fd5b5061052f600480360381019061052a9190613c07565b611424565b005b34801561053d57600080fd5b5061055860048036038101906105539190613cac565b611637565b005b34801561056657600080fd5b5061056f61168e565b60405161057c91906138e7565b60405180910390f35b34801561059157600080fd5b506105ac60048036038101906105a791906139e9565b6116a5565b6040516105b99190613a16565b60405180910390f35b3480156105ce57600080fd5b506105d76116b7565b6040516105e4919061399b565b60405180910390f35b3480156105f957600080fd5b50610614600480360381019061060f9190613cf9565b611745565b6040516106219190613a9d565b60405180910390f35b34801561063657600080fd5b5061063f6117fd565b005b34801561064d57600080fd5b50610656611811565b005b34801561066457600080fd5b5061067f600480360381019061067a91906139e9565b611823565b60405161068c9190613a9d565b60405180910390f35b3480156106a157600080fd5b506106bc60048036038101906106b791906139e9565b611847565b6040516106c99190613a16565b60405180910390f35b3480156106de57600080fd5b506106e761188f565b6040516106f49190613a16565b60405180910390f35b34801561070957600080fd5b506107126118b9565b60405161072193929190613d26565b60405180910390f35b34801561073657600080fd5b5061073f6118d1565b60405161074c919061399b565b60405180910390f35b34801561076157600080fd5b5061077c60048036038101906107779190613cf9565b611963565b6040516107899190613a9d565b60405180910390f35b34801561079e57600080fd5b506107b960048036038101906107b49190613d89565b6119ac565b005b3480156107c757600080fd5b506107e260048036038101906107dd9190613cf9565b611ab7565b6040516107ef9190613a9d565b60405180910390f35b610812600480360381019061080d9190613e1f565b611aea565b005b61082e6004803603810190610829919061401e565b61213e565b005b34801561083c57600080fd5b506108576004803603810190610852919061427f565b6121b1565b005b34801561086557600080fd5b50610880600480360381019061087b9190613c07565b61235f565b60405161088d9190613a9d565b60405180910390f35b3480156108a257600080fd5b506108bd60048036038101906108b891906142ad565b61240e565b6040516108ca91906138e7565b60405180910390f35b3480156108df57600080fd5b506108fa60048036038101906108f591906139e9565b6124a5565b604051610907919061399b565b60405180910390f35b34801561091c57600080fd5b5061093760048036038101906109329190613cf9565b612543565b6040516109449190613a9d565b60405180910390f35b34801561095957600080fd5b5061096261258c565b6040516109759796959493929190614426565b60405180910390f35b34801561098a57600080fd5b50610993612619565b6040516109a09190613a9d565b60405180910390f35b3480156109b557600080fd5b506109d060048036038101906109cb9190614497565b61261f565b6040516109dd9190613a9d565b60405180910390f35b3480156109f257600080fd5b506109fb612668565b604051610a0a93929190613d26565b60405180910390f35b348015610a1f57600080fd5b50610a3a6004803603810190610a359190613cf9565b612680565b604051610a4791906138e7565b60405180910390f35b348015610a5c57600080fd5b50610a656126a0565b604051610a729190613a9d565b60405180910390f35b348015610a8757600080fd5b50610aa26004803603810190610a9d9190613cf9565b6126aa565b604051610ab193929190613d26565b60405180910390f35b348015610ac657600080fd5b50610ae16004803603810190610adc91906144c4565b6126d4565b604051610aee91906138e7565b60405180910390f35b348015610b0357600080fd5b50610b1e6004803603810190610b199190613cf9565b612768565b005b600033905090565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b8357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bb35750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610bc990614533565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf590614533565b8015610c425780601f10610c1757610100808354040283529160200191610c42565b820191906000526020600020905b815481529060010190602001808311610c2557829003601f168201915b5050505050905090565b6000610c57826127eb565b610c8d576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610cd6826116a5565b90508073ffffffffffffffffffffffffffffffffffffffff16610cf761284a565b73ffffffffffffffffffffffffffffffffffffffff1614610d5a57610d2381610d1e61284a565b6126d4565b610d59576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610e19612852565b6001546000540303905090565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9f906145d6565b60405180910390fd5b6000610eb382611ab7565b905060008103610ef8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eef90614668565b60405180910390fd5b80600a6000828254610f0a91906146b7565b9250508190555080600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550610f688282612857565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568282604051610f9992919061476c565b60405180910390a15050565b60238181548110610fb557600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610fef8261294b565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611056576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061106284612a17565b91509150611078818761107361284a565b612a3e565b6110c45761108d8661108861284a565b6126d4565b6110c3576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361112a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111378686866001612a82565b801561114257600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550611210856111ec888887612a88565b7c020000000000000000000000000000000000000000000000000000000017612ab0565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036112965760006001850190506000600460008381526020019081526020016000205403611294576000548114611293578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46112fe8686866001612adb565b505050505050565b6000600954905090565b6000601060070160020154826113269190614795565b6010600701600101548461133a9190614795565b6010600701600001548661134e9190614795565b61135891906146b7565b61136291906146b7565b90509392505050565b611373612ae1565b61137b612b5f565b565b6000600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b61141f8383836040518060200160405280600081525061213e565b505050565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116114a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149d906145d6565b60405180910390fd5b60006114b2838361235f565b9050600081036114f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ee90614668565b60405180910390fd5b80600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461154691906146b7565b9250508190555080600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506115e2838383612bc2565b8273ffffffffffffffffffffffffffffffffffffffff167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a838360405161162a92919061380a565b60405180910390a2505050565b61163f612ae1565b81816024918261165092919061499c565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa8282604051611682929190614a99565b60405180910390a15050565b6000600860149054906101000a900460ff16905090565b60006116b08261294b565b9050919050565b602480546116c490614533565b80601f01602080910402602001604051908101604052809291908181526020018280546116f090614533565b801561173d5780601f106117125761010080835404028352916020019161173d565b820191906000526020600020905b81548152906001019060200180831161172057829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117ac576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611805612ae1565b61180f6000612c48565b565b611819612ae1565b611821612d0e565b565b6022818154811061183357600080fd5b906000526020600020016000915090505481565b6000600d828154811061185d5761185c614abd565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b601e8060000154908060010154908060020154905083565b6060600380546118e090614533565b80601f016020809104026020016040519081016040528092919081815260200182805461190c90614533565b80156119595780601f1061192e57610100808354040283529160200191611959565b820191906000526020600020905b81548152906001019060200180831161193c57829003601f168201915b5050505050905090565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b80600760006119b961284a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a6661284a565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611aab91906138e7565b60405180910390a35050565b600080611ac26126a0565b47611acd91906146b7565b9050611ae28382611add86611963565b612d71565b915050919050565b611af2612ddf565b87858585601b6000015483601e60000154611b0d91906146b7565b1115611b4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4590614b38565b60405180910390fd5b601b6001015482601e60010154611b6591906146b7565b1115611ba6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9d90614ba4565b60405180910390fd5b601b6002015481601e60020154611bbd91906146b7565b1115611bfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf590614c10565b60405180910390fd5b601060040160000154602660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015484611c5591906146b7565b1115611c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8d90614ca2565b60405180910390fd5b601060040160010154602660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015483611ced91906146b7565b1115611d2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2590614d34565b60405180910390fd5b601060040160020154602660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002015482611d8591906146b7565b1115611dc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbd90614dc6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff1603611e35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2c90614e32565b60405180910390fd5b6010600001544210158015611e4e575060106001015442105b611e8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8490614e9e565b60405180910390fd5b6000611e97610e0f565b9050602154888a8c84611eaa91906146b7565b611eb491906146b7565b611ebe91906146b7565b1115611eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef690614f0a565b60405180910390fd5b611f0f8c8c60106002015461240e565b611f4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4590614f76565b60405180910390fd5b89602660008f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000828254611fa091906146b7565b9250508190555088602660008f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254611ff991906146b7565b9250508190555087602660008f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201600082825461205291906146b7565b9250508190555089601e600001600082825461206e91906146b7565b9250508190555088601e600101600082825461208a91906146b7565b9250508190555087601e60020160008282546120a691906146b7565b925050819055506120bb8d8b8b8b8b8b612e29565b6120db8d898b8d6120cc91906146b7565b6120d691906146b7565b612f62565b8c73ffffffffffffffffffffffffffffffffffffffff167f94c792774c59479f7bd68442f3af3691c02123a5aabee8b6f9116d8af8aa66698b8b8b856040516121279493929190614f96565b60405180910390a250505050505050505050505050565b612149848484610fe4565b60008373ffffffffffffffffffffffffffffffffffffffff163b146121ab5761217484848484612f80565b6121aa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6121b9612ae1565b60008160800151600001511180156121d957506000816080015160200151115b80156121ed57506000816080015160400151115b61222c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122239061504d565b60405180910390fd5b6000801b816060015103612275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226c906150df565b60405180910390fd5b80601060008201518160000155602082015181600101556040820151816002015560608201518160030155608082015181600401600082015181600001556020820151816001015560408201518160020155505060a082015181600701600082015181600001556020820151816001015560408201518160020155505060c082015181600a0160006101000a81548160ff0219169083600181111561231d5761231c6143af565b5b02179055509050507f3545f6907e2537b96cf8a2e3fecbadfda9a20a51c2c156d4b3923ead00af2ce7816040516123549190615231565b60405180910390a150565b60008061236b8461261f565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016123a49190613a16565b602060405180830381865afa1580156123c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123e59190615262565b6123ef91906146b7565b90506124058382612400878761137d565b612d71565b91505092915050565b60008060001b8203612423576001905061249e565b60003360405160200161243691906152d7565b60405160208183030381529060405280519060200120905061249a858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505084836130d0565b9150505b9392505050565b60606124b0826127eb565b6124e6576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006124f06130e7565b90506000815103612510576040518060200160405280600081525061253b565b8061251a84613179565b60405160200161252b92919061532e565b6040516020818303038152906040525b915050919050565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6010806000015490806001015490806002015490806003015490806004016040518060600160405290816000820154815260200160018201548152602001600282015481525050908060070160405180606001604052908160008201548152602001600182015481526020016002820154815250509080600a0160009054906101000a900460ff16905087565b60215481565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b601b8060000154908060010154908060020154905083565b60256020528060005260406000206000915054906101000a900460ff1681565b6000600a54905090565b60266020528060005260406000206000915090508060000154908060010154908060020154905083565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612770612ae1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036127df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d6906153c4565b60405180910390fd5b6127e881612c48565b50565b6000816127f6612852565b11158015612805575060005482105b8015612843575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b8047101561289a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289190615430565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516128c090615481565b60006040518083038185875af1925050503d80600081146128fd576040519150601f19603f3d011682016040523d82523d6000602084013e612902565b606091505b5050905080612946576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293d90615508565b60405180910390fd5b505050565b6000808290508061295a612852565b116129e0576000548110156129df5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036129dd575b600081036129d35760046000836001900393508381526020019081526020016000205490506129a9565b8092505050612a12565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612a9f8686846131c9565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612ae9610b20565b73ffffffffffffffffffffffffffffffffffffffff16612b0761188f565b73ffffffffffffffffffffffffffffffffffffffff1614612b5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5490615574565b60405180910390fd5b565b612b676131d2565b6000600860146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612bab610b20565b604051612bb89190613a16565b60405180910390a1565b612c438363a9059cbb60e01b8484604051602401612be192919061380a565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061321b565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612d16612ddf565b6001600860146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d5a610b20565b604051612d679190613a16565b60405180910390a1565b600081600954600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485612dc29190614795565b612dcc91906155c3565b612dd691906155f4565b90509392505050565b612de761168e565b15612e27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e1e90615674565b60405180910390fd5b565b6000839050612e3e838360106003015461240e565b8015612e4a5750600084115b8015612ea05750602560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612f0d57600184612eb291906155f4565b90506001602560008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b612f18868683611310565b3414612f59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f50906156e0565b60405180910390fd5b50505050505050565b612f7c8282604051806020016040528060008152506132e3565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612fa661284a565b8786866040518563ffffffff1660e01b8152600401612fc89493929190615755565b6020604051808303816000875af192505050801561300457506040513d601f19601f8201168201806040525081019061300191906157b6565b60015b61307d573d8060008114613034576040519150601f19603f3d011682016040523d82523d6000602084013e613039565b606091505b506000815103613075576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000826130dd8584613380565b1490509392505050565b6060602480546130f690614533565b80601f016020809104026020016040519081016040528092919081815260200182805461312290614533565b801561316f5780601f106131445761010080835404028352916020019161316f565b820191906000526020600020905b81548152906001019060200180831161315257829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156131b457600184039350600a81066030018453600a8104905080613192575b50828103602084039350808452505050919050565b60009392505050565b6131da61168e565b613219576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132109061582f565b60405180910390fd5b565b600061327d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166133d69092919063ffffffff16565b905060008151148061329f57508080602001905181019061329e9190615864565b5b6132de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132d590615903565b60405180910390fd5b505050565b6132ed83836133ee565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461337b57600080549050600083820390505b61332d6000868380600101945086612f80565b613363576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061331a57816000541461337857600080fd5b50505b505050565b60008082905060005b84518110156133cb576133b6828683815181106133a9576133a8614abd565b5b60200260200101516135a9565b915080806133c390615923565b915050613389565b508091505092915050565b60606133e584846000856135d4565b90509392505050565b6000805490506000820361342e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61343b6000848385612a82565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506134b2836134a36000866000612a88565b6134ac856136a1565b17612ab0565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461355357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613518565b506000820361358e576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506135a46000848385612adb565b505050565b60008183106135c1576135bc82846136b1565b6135cc565b6135cb83836136b1565b5b905092915050565b606082471015613619576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613610906159dd565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516136429190615a2e565b60006040518083038185875af1925050503d806000811461367f576040519150601f19603f3d011682016040523d82523d6000602084013e613684565b606091505b5091509150613695878383876136c8565b92505050949350505050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b6060831561372a576000835103613722576136e28561373d565b613721576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161371890615a91565b60405180910390fd5b5b829050613735565b6137348383613760565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156137735781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137a7919061399b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006137db826137b0565b9050919050565b6137eb816137d0565b82525050565b6000819050919050565b613804816137f1565b82525050565b600060408201905061381f60008301856137e2565b61382c60208301846137fb565b9392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61387c81613847565b811461388757600080fd5b50565b60008135905061389981613873565b92915050565b6000602082840312156138b5576138b461383d565b5b60006138c38482850161388a565b91505092915050565b60008115159050919050565b6138e1816138cc565b82525050565b60006020820190506138fc60008301846138d8565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561393c578082015181840152602081019050613921565b8381111561394b576000848401525b50505050565b6000601f19601f8301169050919050565b600061396d82613902565b613977818561390d565b935061398781856020860161391e565b61399081613951565b840191505092915050565b600060208201905081810360008301526139b58184613962565b905092915050565b6139c6816137f1565b81146139d157600080fd5b50565b6000813590506139e3816139bd565b92915050565b6000602082840312156139ff576139fe61383d565b5b6000613a0d848285016139d4565b91505092915050565b6000602082019050613a2b60008301846137e2565b92915050565b613a3a816137d0565b8114613a4557600080fd5b50565b600081359050613a5781613a31565b92915050565b60008060408385031215613a7457613a7361383d565b5b6000613a8285828601613a48565b9250506020613a93858286016139d4565b9150509250929050565b6000602082019050613ab260008301846137fb565b92915050565b6000613ac3826137b0565b9050919050565b613ad381613ab8565b8114613ade57600080fd5b50565b600081359050613af081613aca565b92915050565b600060208284031215613b0c57613b0b61383d565b5b6000613b1a84828501613ae1565b91505092915050565b600080600060608486031215613b3c57613b3b61383d565b5b6000613b4a86828701613a48565b9350506020613b5b86828701613a48565b9250506040613b6c868287016139d4565b9150509250925092565b600080600060608486031215613b8f57613b8e61383d565b5b6000613b9d868287016139d4565b9350506020613bae868287016139d4565b9250506040613bbf868287016139d4565b9150509250925092565b6000613bd4826137d0565b9050919050565b613be481613bc9565b8114613bef57600080fd5b50565b600081359050613c0181613bdb565b92915050565b60008060408385031215613c1e57613c1d61383d565b5b6000613c2c85828601613bf2565b9250506020613c3d85828601613a48565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f840112613c6c57613c6b613c47565b5b8235905067ffffffffffffffff811115613c8957613c88613c4c565b5b602083019150836001820283011115613ca557613ca4613c51565b5b9250929050565b60008060208385031215613cc357613cc261383d565b5b600083013567ffffffffffffffff811115613ce157613ce0613842565b5b613ced85828601613c56565b92509250509250929050565b600060208284031215613d0f57613d0e61383d565b5b6000613d1d84828501613a48565b91505092915050565b6000606082019050613d3b60008301866137fb565b613d4860208301856137fb565b613d5560408301846137fb565b949350505050565b613d66816138cc565b8114613d7157600080fd5b50565b600081359050613d8381613d5d565b92915050565b60008060408385031215613da057613d9f61383d565b5b6000613dae85828601613a48565b9250506020613dbf85828601613d74565b9150509250929050565b60008083601f840112613ddf57613dde613c47565b5b8235905067ffffffffffffffff811115613dfc57613dfb613c4c565b5b602083019150836020820283011115613e1857613e17613c51565b5b9250929050565b60008060008060008060008060c0898b031215613e3f57613e3e61383d565b5b6000613e4d8b828c01613a48565b985050602089013567ffffffffffffffff811115613e6e57613e6d613842565b5b613e7a8b828c01613dc9565b97509750506040613e8d8b828c016139d4565b9550506060613e9e8b828c016139d4565b9450506080613eaf8b828c016139d4565b93505060a089013567ffffffffffffffff811115613ed057613ecf613842565b5b613edc8b828c01613dc9565b92509250509295985092959890939650565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613f2b82613951565b810181811067ffffffffffffffff82111715613f4a57613f49613ef3565b5b80604052505050565b6000613f5d613833565b9050613f698282613f22565b919050565b600067ffffffffffffffff821115613f8957613f88613ef3565b5b613f9282613951565b9050602081019050919050565b82818337600083830152505050565b6000613fc1613fbc84613f6e565b613f53565b905082815260208101848484011115613fdd57613fdc613eee565b5b613fe8848285613f9f565b509392505050565b600082601f83011261400557614004613c47565b5b8135614015848260208601613fae565b91505092915050565b600080600080608085870312156140385761403761383d565b5b600061404687828801613a48565b945050602061405787828801613a48565b9350506040614068878288016139d4565b925050606085013567ffffffffffffffff81111561408957614088613842565b5b61409587828801613ff0565b91505092959194509250565b600080fd5b6000819050919050565b6140b9816140a6565b81146140c457600080fd5b50565b6000813590506140d6816140b0565b92915050565b6000606082840312156140f2576140f16140a1565b5b6140fc6060613f53565b9050600061410c848285016139d4565b6000830152506020614120848285016139d4565b6020830152506040614134848285016139d4565b60408301525092915050565b600060608284031215614156576141556140a1565b5b6141606060613f53565b90506000614170848285016139d4565b6000830152506020614184848285016139d4565b6020830152506040614198848285016139d4565b60408301525092915050565b600281106141b157600080fd5b50565b6000813590506141c3816141a4565b92915050565b600061016082840312156141e0576141df6140a1565b5b6141ea60e0613f53565b905060006141fa848285016139d4565b600083015250602061420e848285016139d4565b6020830152506040614222848285016140c7565b6040830152506060614236848285016140c7565b606083015250608061424a848285016140dc565b60808301525060e061425e84828501614140565b60a083015250610140614273848285016141b4565b60c08301525092915050565b600061016082840312156142965761429561383d565b5b60006142a4848285016141c9565b91505092915050565b6000806000604084860312156142c6576142c561383d565b5b600084013567ffffffffffffffff8111156142e4576142e3613842565b5b6142f086828701613dc9565b93509350506020614303868287016140c7565b9150509250925092565b614316816140a6565b82525050565b614325816137f1565b82525050565b606082016000820151614341600085018261431c565b506020820151614354602085018261431c565b506040820151614367604085018261431c565b50505050565b606082016000820151614383600085018261431c565b506020820151614396602085018261431c565b5060408201516143a9604085018261431c565b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600281106143ef576143ee6143af565b5b50565b6000819050614400826143de565b919050565b6000614410826143f2565b9050919050565b61442081614405565b82525050565b60006101608201905061443c600083018a6137fb565b61444960208301896137fb565b614456604083018861430d565b614463606083018761430d565b614470608083018661432b565b61447d60e083018561436d565b61448b610140830184614417565b98975050505050505050565b6000602082840312156144ad576144ac61383d565b5b60006144bb84828501613bf2565b91505092915050565b600080604083850312156144db576144da61383d565b5b60006144e985828601613a48565b92505060206144fa85828601613a48565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061454b57607f821691505b60208210810361455e5761455d614504565b5b50919050565b7f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008201527f7368617265730000000000000000000000000000000000000000000000000000602082015250565b60006145c060268361390d565b91506145cb82614564565b604082019050919050565b600060208201905081810360008301526145ef816145b3565b9050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008201527f647565207061796d656e74000000000000000000000000000000000000000000602082015250565b6000614652602b8361390d565b915061465d826145f6565b604082019050919050565b6000602082019050818103600083015261468181614645565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006146c2826137f1565b91506146cd836137f1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561470257614701614688565b5b828201905092915050565b6000819050919050565b600061473261472d614728846137b0565b61470d565b6137b0565b9050919050565b600061474482614717565b9050919050565b600061475682614739565b9050919050565b6147668161474b565b82525050565b6000604082019050614781600083018561475d565b61478e60208301846137fb565b9392505050565b60006147a0826137f1565b91506147ab836137f1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156147e4576147e3614688565b5b828202905092915050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261485c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261481f565b614866868361481f565b95508019841693508086168417925050509392505050565b600061489961489461488f846137f1565b61470d565b6137f1565b9050919050565b6000819050919050565b6148b38361487e565b6148c76148bf826148a0565b84845461482c565b825550505050565b600090565b6148dc6148cf565b6148e78184846148aa565b505050565b5b8181101561490b576149006000826148d4565b6001810190506148ed565b5050565b601f82111561495057614921816147fa565b61492a8461480f565b81016020851015614939578190505b61494d6149458561480f565b8301826148ec565b50505b505050565b600082821c905092915050565b600061497360001984600802614955565b1980831691505092915050565b600061498c8383614962565b9150826002028217905092915050565b6149a683836147ef565b67ffffffffffffffff8111156149bf576149be613ef3565b5b6149c98254614533565b6149d482828561490f565b6000601f831160018114614a0357600084156149f1578287013590505b6149fb8582614980565b865550614a63565b601f198416614a11866147fa565b60005b82811015614a3957848901358255600182019150602085019450602081019050614a14565b86831015614a565784890135614a52601f891682614962565b8355505b6001600288020188555050505b50505050505050565b6000614a78838561390d565b9350614a85838584613f9f565b614a8e83613951565b840190509392505050565b60006020820190508181036000830152614ab4818486614a6c565b90509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f48443a204f6e797820636f756e7420706572206d696e74206c696d6974000000600082015250565b6000614b22601d8361390d565b9150614b2d82614aec565b602082019050919050565b60006020820190508181036000830152614b5181614b15565b9050919050565b7f48443a20476f6c6420636f756e7420706572206d696e74206c696d6974000000600082015250565b6000614b8e601d8361390d565b9150614b9982614b58565b602082019050919050565b60006020820190508181036000830152614bbd81614b81565b9050919050565b7f48443a204469616d6f6e6420636f756e7420706572206d696e74206c696d6974600082015250565b6000614bfa60208361390d565b9150614c0582614bc4565b602082019050919050565b60006020820190508181036000830152614c2981614bed565b9050919050565b7f48443a206d617820636f756e74207065722061646472657373204f6e7978206c60008201527f696d697400000000000000000000000000000000000000000000000000000000602082015250565b6000614c8c60248361390d565b9150614c9782614c30565b604082019050919050565b60006020820190508181036000830152614cbb81614c7f565b9050919050565b7f48443a206d617820636f756e7420706572206164647265737320476f6c64206c60008201527f696d697400000000000000000000000000000000000000000000000000000000602082015250565b6000614d1e60248361390d565b9150614d2982614cc2565b604082019050919050565b60006020820190508181036000830152614d4d81614d11565b9050919050565b7f48443a206d617820636f756e74207065722061646472657373204469616d6f6e60008201527f64206c696d697400000000000000000000000000000000000000000000000000602082015250565b6000614db060278361390d565b9150614dbb82614d54565b604082019050919050565b60006020820190508181036000830152614ddf81614da3565b9050919050565b7f48443a207a65726f206164647265737300000000000000000000000000000000600082015250565b6000614e1c60108361390d565b9150614e2782614de6565b602082019050919050565b60006020820190508181036000830152614e4b81614e0f565b9050919050565b7f48443a2074696d65206973206f7574206f662072616e67650000000000000000600082015250565b6000614e8860188361390d565b9150614e9382614e52565b602082019050919050565b60006020820190508181036000830152614eb781614e7b565b9050919050565b7f48443a20746f74616c20737570706c79206c696d697400000000000000000000600082015250565b6000614ef460168361390d565b9150614eff82614ebe565b602082019050919050565b60006020820190508181036000830152614f2381614ee7565b9050919050565b7f48443a2061646472657373206e6f742077686974656c69737465640000000000600082015250565b6000614f60601b8361390d565b9150614f6b82614f2a565b602082019050919050565b60006020820190508181036000830152614f8f81614f53565b9050919050565b6000608082019050614fab60008301876137fb565b614fb860208301866137fb565b614fc560408301856137fb565b614fd260608301846137fb565b95945050505050565b7f48443a206d617820436f756e74207065722061646472657373206973207a657260008201527f6f00000000000000000000000000000000000000000000000000000000000000602082015250565b600061503760218361390d565b915061504282614fdb565b604082019050919050565b600060208201905081810360008301526150668161502a565b9050919050565b7f48443a206d65726b6c65526f6f74466f72467265654d696e74206973207a657260008201527f6f00000000000000000000000000000000000000000000000000000000000000602082015250565b60006150c960218361390d565b91506150d48261506d565b604082019050919050565b600060208201905081810360008301526150f8816150bc565b9050919050565b615108816140a6565b82525050565b606082016000820151615124600085018261431c565b506020820151615137602085018261431c565b50604082015161514a604085018261431c565b50505050565b606082016000820151615166600085018261431c565b506020820151615179602085018261431c565b50604082015161518c604085018261431c565b50505050565b61519b81614405565b82525050565b610160820160008201516151b8600085018261431c565b5060208201516151cb602085018261431c565b5060408201516151de60408501826150ff565b5060608201516151f160608501826150ff565b506080820151615204608085018261510e565b5060a082015161521760e0850182615150565b5060c082015161522b610140850182615192565b50505050565b60006101608201905061524760008301846151a1565b92915050565b60008151905061525c816139bd565b92915050565b6000602082840312156152785761527761383d565b5b60006152868482850161524d565b91505092915050565b60008160601b9050919050565b60006152a78261528f565b9050919050565b60006152b98261529c565b9050919050565b6152d16152cc826137d0565b6152ae565b82525050565b60006152e382846152c0565b60148201915081905092915050565b600081905092915050565b600061530882613902565b61531281856152f2565b935061532281856020860161391e565b80840191505092915050565b600061533a82856152fd565b915061534682846152fd565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006153ae60268361390d565b91506153b982615352565b604082019050919050565b600060208201905081810360008301526153dd816153a1565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b600061541a601d8361390d565b9150615425826153e4565b602082019050919050565b600060208201905081810360008301526154498161540d565b9050919050565b600081905092915050565b50565b600061546b600083615450565b91506154768261545b565b600082019050919050565b600061548c8261545e565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b60006154f2603a8361390d565b91506154fd82615496565b604082019050919050565b60006020820190508181036000830152615521816154e5565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061555e60208361390d565b915061556982615528565b602082019050919050565b6000602082019050818103600083015261558d81615551565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006155ce826137f1565b91506155d9836137f1565b9250826155e9576155e8615594565b5b828204905092915050565b60006155ff826137f1565b915061560a836137f1565b92508282101561561d5761561c614688565b5b828203905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061565e60108361390d565b915061566982615628565b602082019050919050565b6000602082019050818103600083015261568d81615651565b9050919050565b7f48443a20696e636f72726563742065746865722076616c756500000000000000600082015250565b60006156ca60198361390d565b91506156d582615694565b602082019050919050565b600060208201905081810360008301526156f9816156bd565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061572782615700565b615731818561570b565b935061574181856020860161391e565b61574a81613951565b840191505092915050565b600060808201905061576a60008301876137e2565b61577760208301866137e2565b61578460408301856137fb565b8181036060830152615796818461571c565b905095945050505050565b6000815190506157b081613873565b92915050565b6000602082840312156157cc576157cb61383d565b5b60006157da848285016157a1565b91505092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061581960148361390d565b9150615824826157e3565b602082019050919050565b600060208201905081810360008301526158488161580c565b9050919050565b60008151905061585e81613d5d565b92915050565b60006020828403121561587a5761587961383d565b5b60006158888482850161584f565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006158ed602a8361390d565b91506158f882615891565b604082019050919050565b6000602082019050818103600083015261591c816158e0565b9050919050565b600061592e826137f1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036159605761595f614688565b5b600182019050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006159c760268361390d565b91506159d28261596b565b604082019050919050565b600060208201905081810360008301526159f6816159ba565b9050919050565b6000615a0882615700565b615a128185615450565b9350615a2281856020860161391e565b80840191505092915050565b6000615a3a82846159fd565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000615a7b601d8361390d565b9150615a8682615a45565b602082019050919050565b60006020820190508181036000830152615aaa81615a6e565b905091905056fea2646970667358221220a49a7f4312d556950c1d530b5f43896d0ee94d4dff94894f4129b58d3bad91af64736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000015e00000000000000000000000000000000000000000000000000000000000000c80000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c7158cab3626342c532f9d9ee644eccfc41e36c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064
-----Decoded View---------------
Arg [0] : _maxSupply (uint256): 350
Arg [1] : _maxSupplyOnyx (uint256): 200
Arg [2] : _maxSupplyGold (uint256): 100
Arg [3] : _maxSupplyDiamond (uint256): 50
Arg [4] : _team (address[]): 0xc7158cAb3626342c532F9D9eE644ecCfc41e36c0
Arg [5] : _teamShares (uint256[]): 100
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000015e
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c8
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 000000000000000000000000c7158cab3626342c532f9d9ee644eccfc41e36c0
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000064
Loading...
Loading
Loading...
Loading
[ 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.