Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 17 from a total of 17 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Buy NFT Normal | 21507711 | 16 days ago | IN | 0 ETH | 0.0007018 | ||||
Set Whitelist NF... | 21485828 | 19 days ago | IN | 0 ETH | 0.0003213 | ||||
Set Whitelist NF... | 21479274 | 20 days ago | IN | 0 ETH | 0.00019955 | ||||
Set Whitelist NF... | 21462836 | 23 days ago | IN | 0 ETH | 0.000228 | ||||
Set Whitelist NF... | 21448360 | 25 days ago | IN | 0 ETH | 0.00034252 | ||||
Set Whitelist NF... | 21242285 | 54 days ago | IN | 0 ETH | 0.00057177 | ||||
Auction NFT | 17919855 | 518 days ago | IN | 0 ETH | 0.00272727 | ||||
Auction NFT | 17826702 | 531 days ago | IN | 0 ETH | 0.00198844 | ||||
Accept Offer NFT | 17826596 | 531 days ago | IN | 0 ETH | 0.00237417 | ||||
Buy NFTETH | 17826426 | 531 days ago | IN | 0.001 ETH | 0.00150132 | ||||
Buy NFT Normal | 17826407 | 532 days ago | IN | 0 ETH | 0.00217946 | ||||
Buy NFTETH | 17826379 | 532 days ago | IN | 0.001 ETH | 0.00216364 | ||||
Buy NFTETH | 17826136 | 532 days ago | IN | 0.001 ETH | 0.00137991 | ||||
Set Whitelist Ad... | 17818758 | 533 days ago | IN | 0 ETH | 0.00085186 | ||||
Set Whitelist NF... | 17818750 | 533 days ago | IN | 0 ETH | 0.00090922 | ||||
Update Operator | 17818737 | 533 days ago | IN | 0 ETH | 0.001389 | ||||
Update Operator | 17818693 | 533 days ago | IN | 0 ETH | 0.00125503 |
Loading...
Loading
Contract Name:
ExchangeNFTCreator
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-08-01 */ // Sources flattened with hardhat v2.17.0 https://hardhat.org // File contracts/interfaces/ERC20/IERC20.sol // SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.4; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval( address indexed owner, address indexed spender, uint256 value ); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance( address owner, address spender ) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File contracts/interfaces/ERC20/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File contracts/libraries/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File contracts/interfaces/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File contracts/interfaces/ERC20/draft-IERC20Permit.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) /** * @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); } // File contracts/libraries/Address.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File contracts/interfaces/ERC20/SafeERC20.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } 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"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File contracts/interfaces/ERC721A/IERC721A.sol // ERC721A Contracts v4.2.2 /** * @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(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * 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; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @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; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // 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 ); } // File contracts/interfaces/ERC721A/ERC721A.sol // ERC721A Contracts v4.2.2 /** * @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 { // Reference type for token approval. 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 internal _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) internal _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) internal _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 ""; } /** * @dev Casts the address to uint256 without masking. */ function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev Casts the boolean to uint256 without branching. */ function _boolToUint256(bool value) private pure returns (uint256 result) { assembly { result := value } } // ============================================================= // 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) internal 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) internal 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 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 { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _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 ) internal 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) internal 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 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 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 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`. ) 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 ) internal 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 0x80 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // 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) } } } // File contracts/interfaces/IStableToken.sol interface IStableToken { function allowance(address owner, address spender) external returns (uint); function transferFrom(address sender, address recipient, uint256 amount) external; } // File contracts/libraries/ECDSA.sol library ECDSA { /** * @dev Recover signer address from a message by using their signature * @param hash bytes32 message, the hash is the signed message. What is recovered is the signer address. * @param signature bytes signature, the signature is generated using web3.eth.sign() */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { bytes32 r; bytes32 s; uint8 v; // Check the signature length if (signature.length != 65) { return (address(0)); } // Divide the signature in r, s and v variables with inline assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } // Version of signature should be 27 or 28, but 0 and 1 are also possible versions if (v < 27) { v += 27; } // If the version is correct return the signer address if (v != 27 && v != 28) { return (address(0)); } else { // solium-disable-next-line arg-overflow return ecrecover(hash, v, r, s); } } /** * toEthSignedMessageHash * @dev prefix a bytes32 value with "\x19Ethereum Signed Message:" * and hash the result */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { return keccak256( abi.encodePacked("\x19Ethereum Signed Message:\n32", hash) ); } } // File contracts/libraries/EnumerableSet.sol /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } } // File contracts/libraries/Operator.sol abstract contract Operator { using EnumerableSet for EnumerableSet.AddressSet; EnumerableSet.AddressSet private OPERATOR; modifier onlyOperator() { require(OPERATOR.contains(msg.sender), "NOT OPERATOR."); _; } constructor() internal { OPERATOR.add(msg.sender); } function getOperator() external view returns (address[] memory) { return OPERATOR.values(); } function updateOperator(address _operatorAddr, bool _flag) public onlyOperator { require(_operatorAddr != address(0), "ZERO ADDRESS."); if (_flag) { OPERATOR.add(_operatorAddr); } else { OPERATOR.remove(_operatorAddr); } } } // File contracts/libraries/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.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 anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File contracts/libraries/SafeMath.sol // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File contracts/libraries/TransferHelper.sol // helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false library TransferHelper { function safeApprove( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call( abi.encodeWithSelector(0x095ea7b3, to, value) ); require( success && (data.length == 0 || abi.decode(data, (bool))), "TransferHelper: APPROVE_FAILED" ); } function safeTransfer( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call( abi.encodeWithSelector(0xa9059cbb, to, value) ); require( success && (data.length == 0 || abi.decode(data, (bool))), "TransferHelper: TRANSFER_FAILED" ); } function safeTransferFrom( address token, address from, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call( abi.encodeWithSelector(0x23b872dd, from, to, value) ); require( success && (data.length == 0 || abi.decode(data, (bool))), "TransferHelper: TRANSFER_FROM_FAILED" ); } function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{ value: value }(new bytes(0)); require(success, "TransferHelper: ETH_TRANSFER_FAILED"); } } // File contracts/ExchangeNFTCreator.sol contract ExchangeNFTCreator is Ownable, Operator { using ECDSA for bytes32; using SafeERC20 for ERC20; using SafeMath for uint256; // address public ERC721; // Address is owner of ERC721 // address public admin; // Mitigating Replay Attacks mapping(address => mapping(uint256 => bool)) seenNonces; // Addresses running auction NFT mapping(address => bool) public whitelistAddress; mapping(address => bool) public whitelistNFTAddress; struct Data { address[6] tradeAddress; uint256[4] attributes; } // Events // addrs: from, to, token event BuyNFTNormal(address[3] addrs, uint256 tokenId, uint256 amount); event BuyNFTETH(address[3] addrs, uint256 tokenId, uint256 amount); event AuctionNFT(address[3] addrs, uint256 tokenId, uint256 amount); event AcceptOfferNFT(address[3] addrs, uint256 tokenId, uint256 amount); constructor() public { whitelistAddress[msg.sender] = true; // admin = msg.sender; } // function setNFTAddress(address _nft) public onlyOwner { // ERC721 = _nft; // } function setWhitelistAddress(address _address, bool approved) public onlyOperator { whitelistAddress[_address] = approved; } function setWhitelistNFTAddress(address _address, bool approved) public onlyOperator { whitelistNFTAddress[_address] = approved; } // function setAdminAddress(address _admin) public onlyOperator { // admin = _admin; // } modifier verifySignature( uint256 nonce, address[6] memory _tradeAddress, uint256[4] memory _attributes, bytes memory signature ) { // This recreates the message hash that was signed on the client. bytes32 hash = keccak256( abi.encodePacked( msg.sender, nonce, _tradeAddress, _attributes ) ); bytes32 messageHash = hash.toEthSignedMessageHash(); // Verify that the message's signer is the owner of the order require(messageHash.recover(signature) == owner(), "Invalid signature"); require(!seenNonces[msg.sender][nonce], "Used nonce"); seenNonces[msg.sender][nonce] = true; _; } function checkFeeProductExits( address[6] memory _tradeAddress, uint256[4] memory _attributes ) private returns (uint256 amount, uint256 feeOwner, uint256 feeAdmin) { uint256 totalFeeTrade; // Check fee for owner if (_tradeAddress[3] != address(0)) { feeOwner = _attributes[0].mul(_attributes[2]).div(1000); totalFeeTrade += feeOwner; } // Check fee for admin if (_tradeAddress[4] != address(0)) { feeAdmin = _attributes[0].mul(_attributes[3]).div(1000); totalFeeTrade += feeAdmin; } amount = _attributes[0].sub(totalFeeTrade); } // Buy NFT normal by token ERC-20 // address[6]: buyer, seller, token, fee, feeAdmin, NFT contract // uint256[4]: amount, tokenId, feePercent, feePercentAdmin function buyNFTNormal( address[6] memory _tradeAddress, uint256[4] memory _attributes, uint256 nonce, bytes memory signature ) external verifySignature(nonce, _tradeAddress, _attributes, signature) { Data memory tradeInfo = Data({ tradeAddress: _tradeAddress, attributes: _attributes }); require( whitelistNFTAddress[tradeInfo.tradeAddress[5]] == true, "NFT is not in whitelist" ); // check allowance of buyer require( IERC20(tradeInfo.tradeAddress[2]).allowance(msg.sender, address(this)) >= tradeInfo.attributes[0], "token allowance too low" ); (uint256 amount, uint256 feeOwner, uint256 feeAdmin) = checkFeeProductExits( tradeInfo.tradeAddress, tradeInfo.attributes ); if (feeOwner != 0) { // transfer token to fee address ERC20(tradeInfo.tradeAddress[2]).safeTransferFrom( tradeInfo.tradeAddress[0], tradeInfo.tradeAddress[3], feeOwner ); } if (feeAdmin != 0) { // transfer token to fee address ERC20(tradeInfo.tradeAddress[2]).safeTransferFrom( tradeInfo.tradeAddress[0], tradeInfo.tradeAddress[4], feeAdmin ); } // transfer token from buyer to seller ERC20(tradeInfo.tradeAddress[2]).safeTransferFrom( msg.sender, tradeInfo.tradeAddress[1], amount ); IERC721A(tradeInfo.tradeAddress[5]).safeTransferFrom( tradeInfo.tradeAddress[1], msg.sender, tradeInfo.attributes[1] ); emit BuyNFTNormal( [msg.sender, tradeInfo.tradeAddress[1], tradeInfo.tradeAddress[2]], tradeInfo.attributes[1], tradeInfo.attributes[0] ); } // Buy NFT normal by ETH // address[6]: buyer, seller, token, fee, feeAdmin, NFT contract // uint256[4]: amount, tokenId, feePercent, feePercentAdmin function buyNFTETH( address[6] memory _tradeAddress, uint256[4] memory _attributes, uint256 nonce, bytes memory signature ) external payable verifySignature(nonce, _tradeAddress, _attributes, signature) { Data memory tradeInfo = Data({ tradeAddress: _tradeAddress, attributes: _attributes }); require( whitelistNFTAddress[tradeInfo.tradeAddress[5]] == true, "NFT is not in whitelist" ); (uint256 amount, uint256 feeOwner, uint256 feeAdmin) = checkFeeProductExits( tradeInfo.tradeAddress, tradeInfo.attributes ); // transfer eth to fee address if (feeOwner != 0) { TransferHelper.safeTransferETH(tradeInfo.tradeAddress[3], feeOwner); } // transfer eth to admin address if (feeAdmin != 0) { TransferHelper.safeTransferETH(tradeInfo.tradeAddress[4], feeAdmin); } TransferHelper.safeTransferETH(tradeInfo.tradeAddress[1], amount); IERC721A(tradeInfo.tradeAddress[5]).safeTransferFrom( tradeInfo.tradeAddress[1], msg.sender, tradeInfo.attributes[1] ); // refund dust eth, if any if (msg.value > tradeInfo.attributes[0]) TransferHelper.safeTransferETH( msg.sender, msg.value - tradeInfo.attributes[0] ); emit BuyNFTETH( [msg.sender, tradeInfo.tradeAddress[1], tradeInfo.tradeAddress[2]], tradeInfo.attributes[1], tradeInfo.attributes[0] ); } // Auction NFT // address[6]: buyer, seller, token, fee, feeAdmin, NFT contract // uint256[4]: amount, tokenId, feePercent, feePercentAdmin function auctionNFT( address[6] memory _tradeAddress, uint256[4] memory _attributes ) external { Data memory tradeInfo = Data({ tradeAddress: _tradeAddress, attributes: _attributes }); // Check address execute auction require( whitelistAddress[msg.sender] == true, "Address is not in whitelist" ); require( whitelistNFTAddress[tradeInfo.tradeAddress[5]] == true, "NFT is not in whitelist" ); // check allowance of buyer require( IERC20(tradeInfo.tradeAddress[2]).allowance( tradeInfo.tradeAddress[0], address(this) ) >= tradeInfo.attributes[0], "token allowance too low" ); if (tradeInfo.tradeAddress[1] == owner()) { require( IERC721A(tradeInfo.tradeAddress[5]).isApprovedForAll(owner(), address(this)), "tokenId do not approve for contract" ); } else { require( IERC721A(tradeInfo.tradeAddress[5]).getApproved(tradeInfo.attributes[1]) == address(this), "tokenId do not approve for contract" ); } (uint256 amount, uint256 feeOwner, uint256 feeAdmin) = checkFeeProductExits( tradeInfo.tradeAddress, tradeInfo.attributes ); if (feeOwner != 0) { // transfer token to fee address ERC20(tradeInfo.tradeAddress[2]).safeTransferFrom( tradeInfo.tradeAddress[0], tradeInfo.tradeAddress[3], feeOwner ); } if (feeAdmin != 0) { // transfer token to fee address ERC20(tradeInfo.tradeAddress[2]).safeTransferFrom( tradeInfo.tradeAddress[0], tradeInfo.tradeAddress[4], feeAdmin ); } // transfer token from buyer to seller ERC20(tradeInfo.tradeAddress[2]).safeTransferFrom( tradeInfo.tradeAddress[0], tradeInfo.tradeAddress[1], amount ); IERC721A(tradeInfo.tradeAddress[5]).safeTransferFrom( tradeInfo.tradeAddress[1], tradeInfo.tradeAddress[0], tradeInfo.attributes[1] ); emit AuctionNFT( [msg.sender, tradeInfo.tradeAddress[1], tradeInfo.tradeAddress[2]], tradeInfo.attributes[1], tradeInfo.attributes[0] ); } // Accept offer from buyer // address[6]: buyer, seller, token, fee, feeAdmin, NFT contract // uint256[4]: amount, tokenId, feePercent, feePercentAdmin function acceptOfferNFT( address[6] memory _tradeAddress, uint256[4] memory _attributes, uint256 nonce, bytes memory signature ) external verifySignature(nonce, _tradeAddress, _attributes, signature) { Data memory tradeInfo = Data({ tradeAddress: _tradeAddress, attributes: _attributes }); require( whitelistNFTAddress[tradeInfo.tradeAddress[5]] == true, "NFT is not in whitelist" ); require( IERC721A(tradeInfo.tradeAddress[5]).getApproved(tradeInfo.attributes[1]) == address(this), "tokenId do not approve for contract" ); // check allowance of buyer require( IERC20(tradeInfo.tradeAddress[2]).allowance( tradeInfo.tradeAddress[0], address(this) ) >= tradeInfo.attributes[0], "token allowance too low" ); (uint256 amount, uint256 feeOwner, uint256 feeAdmin) = checkFeeProductExits( tradeInfo.tradeAddress, tradeInfo.attributes ); if (feeOwner != 0) { // transfer token to fee address ERC20(tradeInfo.tradeAddress[2]).safeTransferFrom( tradeInfo.tradeAddress[0], tradeInfo.tradeAddress[3], feeOwner ); } if (feeAdmin != 0) { // transfer token to fee address ERC20(tradeInfo.tradeAddress[2]).safeTransferFrom( tradeInfo.tradeAddress[0], tradeInfo.tradeAddress[4], feeAdmin ); } // transfer token from buyer to seller ERC20(tradeInfo.tradeAddress[2]).safeTransferFrom( tradeInfo.tradeAddress[0], msg.sender, amount ); IERC721A(tradeInfo.tradeAddress[5]).safeTransferFrom( tradeInfo.tradeAddress[1], tradeInfo.tradeAddress[0], tradeInfo.attributes[1] ); emit AcceptOfferNFT( [msg.sender, tradeInfo.tradeAddress[1], tradeInfo.tradeAddress[2]], tradeInfo.attributes[1], tradeInfo.attributes[0] ); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[3]","name":"addrs","type":"address[3]"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AcceptOfferNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[3]","name":"addrs","type":"address[3]"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AuctionNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[3]","name":"addrs","type":"address[3]"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BuyNFTETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[3]","name":"addrs","type":"address[3]"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BuyNFTNormal","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"},{"inputs":[{"internalType":"address[6]","name":"_tradeAddress","type":"address[6]"},{"internalType":"uint256[4]","name":"_attributes","type":"uint256[4]"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"acceptOfferNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[6]","name":"_tradeAddress","type":"address[6]"},{"internalType":"uint256[4]","name":"_attributes","type":"uint256[4]"}],"name":"auctionNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[6]","name":"_tradeAddress","type":"address[6]"},{"internalType":"uint256[4]","name":"_attributes","type":"uint256[4]"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"buyNFTETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[6]","name":"_tradeAddress","type":"address[6]"},{"internalType":"uint256[4]","name":"_attributes","type":"uint256[4]"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"buyNFTNormal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getOperator","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setWhitelistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setWhitelistNFTAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operatorAddr","type":"address"},{"internalType":"bool","name":"_flag","type":"bool"}],"name":"updateOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistNFTAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506200001d3362000059565b62000038336001620000a960201b620012441790919060201c565b50336000908152600460205260409020805460ff191660011790556200011b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000620000c0836001600160a01b038416620000c9565b90505b92915050565b60008181526001830160205260408120546200011257508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620000c3565b506000620000c3565b612121806200012b6000396000f3fe6080604052600436106100c25760003560e01c8063715018a61161007f578063a0424a2411610059578063a0424a24146101fe578063e7f43c681461022e578063f2fde38b14610250578063f6cca6291461027057600080fd5b8063715018a6146101a157806377c7018f146101b65780638da5cb5b146101d657600080fd5b80630f72605b146100c75780633dedadb1146100dc5780633f914aef146100fc578063415665851461011c5780636bcaee3f146101615780636d44a3b214610181575b600080fd5b6100da6100d5366004611c05565b610290565b005b3480156100e857600080fd5b506100da6100f7366004611c05565b610561565b34801561010857600080fd5b506100da610117366004611b98565b610892565b34801561012857600080fd5b5061014c610137366004611b60565b60046020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561016d57600080fd5b506100da61017c366004611c05565b6108e4565b34801561018d57600080fd5b506100da61019c366004611b98565b610c8b565b3480156101ad57600080fd5b506100da610d19565b3480156101c257600080fd5b506100da6101d1366004611bd0565b610d2d565b3480156101e257600080fd5b506000546040516001600160a01b039091168152602001610158565b34801561020a57600080fd5b5061014c610219366004611b60565b60056020526000908152604090205460ff1681565b34801561023a57600080fd5b50610243611168565b6040516101589190611e05565b34801561025c57600080fd5b506100da61026b366004611b60565b611179565b34801561027c57600080fd5b506100da61028b366004611b98565b6111f2565b818484836000338585856040516020016102ad9493929190611cf8565b60405160208183030381529060405280519060200120905060006102d082611262565b90506102e46000546001600160a01b031690565b6001600160a01b03166102f782856112b5565b6001600160a01b0316146103265760405162461bcd60e51b815260040161031d90611e85565b60405180910390fd5b33600090815260036020908152604080832089845290915290205460ff16156103615760405162461bcd60e51b815260040161031d90611f0e565b3360009081526003602090815260408083208984528252808320805460ff19166001908117909155815180830183528e81528084018e905260a08f01516001600160a01b031685526005909352922054909160ff9091161515146103d75760405162461bcd60e51b815260040161031d90611f75565b60008060006103ee8460000151856020015161138c565b9250925092508160001461040c5783516060015161040c9083611420565b8015610422578351608001516104229082611420565b8351602001516104329084611420565b835160a08101516020918201518287015190920151604051632142170760e11b81526001600160a01b03909216926342842e0e92610474923391600401611d9c565b600060405180830381600087803b15801561048e57600080fd5b505af11580156104a2573d6000803e3d6000fd5b505050506020840151513411156104ce576020840151516104ce9033906104c99034612059565b611420565b604080516060810190915233815284517f0e4cb43501fcdb341a36642903dbed4ff417d75ff624446c17e261aac89f8bb79190602082019060015b602090810291909101516001600160a01b039081168352885160409081015190911692820192909252878101519081015190519151610549939290611dc0565b60405180910390a15050505050505050505050505050565b8184848360003385858560405160200161057e9493929190611cf8565b60405160208183030381529060405280519060200120905060006105a182611262565b90506105b56000546001600160a01b031690565b6001600160a01b03166105c882856112b5565b6001600160a01b0316146105ee5760405162461bcd60e51b815260040161031d90611e85565b33600090815260036020908152604080832089845290915290205460ff16156106295760405162461bcd60e51b815260040161031d90611f0e565b3360009081526003602090815260408083208984528252808320805460ff19166001908117909155815180830183528e81528084018e905260a08f01516001600160a01b031685526005909352922054909160ff90911615151461069f5760405162461bcd60e51b815260040161031d90611f75565b60208101515181516040908101519051636eb1769f60e11b81523360048201523060248201526001600160a01b039091169063dd62ed3e9060440160206040518083038186803b1580156106f257600080fd5b505afa158015610706573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061072a9190611ce0565b10156107485760405162461bcd60e51b815260040161031d90611eb0565b600080600061075f8460000151856020015161138c565b9250925092508160001461079e57835161079e9060005b60200201518551606081015190859060025b60200201516001600160a01b03169291906114e9565b80156107c35783516107c39060005b6020020151855160808101519084906002610788565b83516107de90339060015b6020020151865186906002610788565b835160a08101516020918201518287015190920151604051632142170760e11b81526001600160a01b03909216926342842e0e92610820923391600401611d9c565b600060405180830381600087803b15801561083a57600080fd5b505af115801561084e573d6000803e3d6000fd5b5050604080516060810190915233815286517f47525166a98ecafd898e3fe0e0babcece7be6bf0737681ee59a30f64c49ab58f935090915060208201906001610509565b61089d600133611547565b6108b95760405162461bcd60e51b815260040161031d90611ee7565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b818484836000338585856040516020016109019493929190611cf8565b604051602081830303815290604052805190602001209050600061092482611262565b90506109386000546001600160a01b031690565b6001600160a01b031661094b82856112b5565b6001600160a01b0316146109715760405162461bcd60e51b815260040161031d90611e85565b33600090815260036020908152604080832089845290915290205460ff16156109ac5760405162461bcd60e51b815260040161031d90611f0e565b3360009081526003602090815260408083208984528252808320805460ff19166001908117909155815180830183528e81528084018e905260a08f01516001600160a01b031685526005909352922054909160ff909116151514610a225760405162461bcd60e51b815260040161031d90611f75565b805160a00151602080830151015160405163020604bf60e21b8152600481019190915230916001600160a01b03169063081812fc9060240160206040518083038186803b158015610a7257600080fd5b505afa158015610a86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aaa9190611b7c565b6001600160a01b031614610ad05760405162461bcd60e51b815260040161031d90611f32565b602081015151815160408082015191519051636eb1769f60e11b81526001600160a01b03918216600482015230602482015291169063dd62ed3e9060440160206040518083038186803b158015610b2657600080fd5b505afa158015610b3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5e9190611ce0565b1015610b7c5760405162461bcd60e51b815260040161031d90611eb0565b6000806000610b938460000151856020015161138c565b92509250925081600014610bae578351610bae906000610776565b8015610bc1578351610bc19060006107ad565b83518051610bd491339086906002610788565b835160a081015160208083015192518188015190910151604051632142170760e11b81526001600160a01b03909316936342842e0e93610c1993919290600401611d9c565b600060405180830381600087803b158015610c3357600080fd5b505af1158015610c47573d6000803e3d6000fd5b5050604080516060810190915233815286517f4085991e69330815d98dbc345ed9f93b3977fd35f64ef268b72d7248cc4d431d935090915060208201906001610509565b610c96600133611547565b610cb25760405162461bcd60e51b815260040161031d90611ee7565b6001600160a01b038216610cf85760405162461bcd60e51b815260206004820152600d60248201526c2d22a9279020a2222922a9a99760991b604482015260640161031d565b8015610d0e57610d09600183611244565b505050565b610d09600183611569565b610d2161157e565b610d2b60006115d8565b565b60408051808201825283815260208082018490523360009081526004909152919091205460ff161515600114610da55760405162461bcd60e51b815260206004820152601b60248201527f41646472657373206973206e6f7420696e2077686974656c6973740000000000604482015260640161031d565b805160a001516001600160a01b031660009081526005602052604090205460ff161515600114610de75760405162461bcd60e51b815260040161031d90611f75565b602081015151815160408082015191519051636eb1769f60e11b81526001600160a01b03918216600482015230602482015291169063dd62ed3e9060440160206040518083038186803b158015610e3d57600080fd5b505afa158015610e51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e759190611ce0565b1015610e935760405162461bcd60e51b815260040161031d90611eb0565b6000548151602001516001600160a01b0390811691161415610f76578051600560200201516001600160a01b031663e985e9c5610ed86000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b158015610f1d57600080fd5b505afa158015610f31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f559190611cc4565b610f715760405162461bcd60e51b815260040161031d90611f32565b611024565b805160a00151602080830151015160405163020604bf60e21b8152600481019190915230916001600160a01b03169063081812fc9060240160206040518083038186803b158015610fc657600080fd5b505afa158015610fda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffe9190611b7c565b6001600160a01b0316146110245760405162461bcd60e51b815260040161031d90611f32565b600080600061103b8460000151856020015161138c565b92509250925081600014611056578351611056906000610776565b80156110695783516110699060006107ad565b835180516110789160016107ce565b835160a081015160208083015192518188015190910151604051632142170760e11b81526001600160a01b03909316936342842e0e936110bd93919290600401611d9c565b600060405180830381600087803b1580156110d757600080fd5b505af11580156110eb573d6000803e3d6000fd5b50506040805160608101825233815287516020908101516001600160a01b0390811682840152895184015116828401528089015190810151905192517fcd8f7eef42f2560ef5550d3bacc1d672e5d9d1fc3744b1b10e415310514073929550611158945091929091611dc0565b60405180910390a1505050505050565b60606111746001611628565b905090565b61118161157e565b6001600160a01b0381166111e65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161031d565b6111ef816115d8565b50565b6111fd600133611547565b6112195760405162461bcd60e51b815260040161031d90611ee7565b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b6000611259836001600160a01b03841661163c565b90505b92915050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b60008060008084516041146112d0576000935050505061125c565b50505060208201516040830151606084015160001a601b8110156112fc576112f9601b82611ff5565b90505b8060ff16601b1415801561131457508060ff16601c14155b15611325576000935050505061125c565b60408051600081526020810180835288905260ff831691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015611378573d6000803e3d6000fd5b50505060206040510351935050505061125c565b60008080808086600360200201516001600160a01b0316146113d7576113c86103e86113c28760025b602002015188519061168b565b90611697565b92506113d48382611fdd565b90505b60808601516001600160a01b03161561140a576113fb6103e86113c28760036113b5565b91506114078282611fdd565b90505b845161141690826116a3565b9350509250925092565b604080516000808252602082019092526001600160a01b03841690839060405161144a9190611d80565b60006040518083038185875af1925050503d8060008114611487576040519150601f19603f3d011682016040523d82523d6000602084013e61148c565b606091505b5050905080610d095760405162461bcd60e51b815260206004820152602360248201527f5472616e7366657248656c7065723a204554485f5452414e534645525f46414960448201526213115160ea1b606482015260840161031d565b611541846323b872dd60e01b85858560405160240161150a93929190611d9c565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526116af565b50505050565b6001600160a01b03811660009081526001830160205260408120541515611259565b6000611259836001600160a01b038416611781565b6000546001600160a01b03163314610d2b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161031d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606060006116358361189e565b9392505050565b60008181526001830160205260408120546116835750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561125c565b50600061125c565b6000611259828461203a565b6000611259828461201a565b60006112598284612059565b6000611704826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118fa9092919063ffffffff16565b805190915015610d0957808060200190518101906117229190611cc4565b610d095760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161031d565b600081815260018301602052604081205480156118945760006117a5600183612059565b85549091506000906117b990600190612059565b905081811461183a5760008660000182815481106117e757634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061181857634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b855486908061185957634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061125c565b600091505061125c565b6060816000018054806020026020016040519081016040528092919081815260200182805480156118ee57602002820191906000526020600020905b8154815260200190600101908083116118da575b50505050509050919050565b60606119098484600085611911565b949350505050565b6060824710156119725760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161031d565b6001600160a01b0385163b6119c95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161031d565b600080866001600160a01b031685876040516119e59190611d80565b60006040518083038185875af1925050503d8060008114611a22576040519150601f19603f3d011682016040523d82523d6000602084013e611a27565b606091505b5091509150611a37828286611a42565b979650505050505050565b60608315611a51575081611635565b825115611a615782518084602001fd5b8160405162461bcd60e51b815260040161031d9190611e52565b600082601f830112611a8b578081fd5b60405160c0810181811067ffffffffffffffff82111715611aae57611aae6120b2565b604052808360c08101861015611ac2578384fd5b835b6006811015611aed578135611ad8816120c8565b83526020928301929190910190600101611ac4565b509195945050505050565b600082601f830112611b08578081fd5b6040516080810181811067ffffffffffffffff82111715611b2b57611b2b6120b2565b604052808360808101861015611b3f578384fd5b835b6004811015611aed578135835260209283019290910190600101611b41565b600060208284031215611b71578081fd5b8135611635816120c8565b600060208284031215611b8d578081fd5b8151611635816120c8565b60008060408385031215611baa578081fd5b8235611bb5816120c8565b91506020830135611bc5816120dd565b809150509250929050565b6000806101408385031215611be3578182fd5b611bed8484611a7b565b9150611bfc8460c08501611af8565b90509250929050565b6000806000806101808587031215611c1b578182fd5b611c258686611a7b565b9350611c348660c08701611af8565b9250610140850135915061016085013567ffffffffffffffff80821115611c59578283fd5b818701915087601f830112611c6c578283fd5b813581811115611c7e57611c7e6120b2565b611c91601f8201601f1916602001611fac565b9150808252886020828501011115611ca7578384fd5b806020840160208401378101602001929092525092959194509250565b600060208284031215611cd5578081fd5b8151611635816120dd565b600060208284031215611cf1578081fd5b5051919050565b6bffffffffffffffffffffffff198560601b16815283601482015260006034820184825b6006811015611d445781516001600160a01b0316835260209283019290910190600101611d1c565b50505060f4820183825b6004811015611d6d578151835260209283019290910190600101611d4e565b5050506101748201905095945050505050565b60008251611d92818460208701612070565b9190910192915050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60a08101818560005b6003811015611df15781516001600160a01b0316835260209283019290910190600101611dc9565b505050606082019390935260800152919050565b6020808252825182820181905260009190848201906040850190845b81811015611e465783516001600160a01b031683529284019291840191600101611e21565b50909695505050505050565b6020815260008251806020840152611e71816040850160208701612070565b601f01601f19169190910160400192915050565b602080825260119082015270496e76616c6964207369676e617475726560781b604082015260600190565b60208082526017908201527f746f6b656e20616c6c6f77616e636520746f6f206c6f77000000000000000000604082015260600190565b6020808252600d908201526c2727aa1027a822a920aa27a91760991b604082015260600190565b6020808252600a908201526955736564206e6f6e636560b01b604082015260600190565b60208082526023908201527f746f6b656e496420646f206e6f7420617070726f766520666f7220636f6e74726040820152621858dd60ea1b606082015260800190565b60208082526017908201527f4e4654206973206e6f7420696e2077686974656c697374000000000000000000604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715611fd557611fd56120b2565b604052919050565b60008219821115611ff057611ff061209c565b500190565b600060ff821660ff84168060ff038211156120125761201261209c565b019392505050565b60008261203557634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156120545761205461209c565b500290565b60008282101561206b5761206b61209c565b500390565b60005b8381101561208b578181015183820152602001612073565b838111156115415750506000910152565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146111ef57600080fd5b80151581146111ef57600080fdfea2646970667358221220eb7f3e2af42ddeb59f5d915647b508d7dba6956a3f9a802356ea536dfec30bd364736f6c63430008040033
Deployed Bytecode
0x6080604052600436106100c25760003560e01c8063715018a61161007f578063a0424a2411610059578063a0424a24146101fe578063e7f43c681461022e578063f2fde38b14610250578063f6cca6291461027057600080fd5b8063715018a6146101a157806377c7018f146101b65780638da5cb5b146101d657600080fd5b80630f72605b146100c75780633dedadb1146100dc5780633f914aef146100fc578063415665851461011c5780636bcaee3f146101615780636d44a3b214610181575b600080fd5b6100da6100d5366004611c05565b610290565b005b3480156100e857600080fd5b506100da6100f7366004611c05565b610561565b34801561010857600080fd5b506100da610117366004611b98565b610892565b34801561012857600080fd5b5061014c610137366004611b60565b60046020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561016d57600080fd5b506100da61017c366004611c05565b6108e4565b34801561018d57600080fd5b506100da61019c366004611b98565b610c8b565b3480156101ad57600080fd5b506100da610d19565b3480156101c257600080fd5b506100da6101d1366004611bd0565b610d2d565b3480156101e257600080fd5b506000546040516001600160a01b039091168152602001610158565b34801561020a57600080fd5b5061014c610219366004611b60565b60056020526000908152604090205460ff1681565b34801561023a57600080fd5b50610243611168565b6040516101589190611e05565b34801561025c57600080fd5b506100da61026b366004611b60565b611179565b34801561027c57600080fd5b506100da61028b366004611b98565b6111f2565b818484836000338585856040516020016102ad9493929190611cf8565b60405160208183030381529060405280519060200120905060006102d082611262565b90506102e46000546001600160a01b031690565b6001600160a01b03166102f782856112b5565b6001600160a01b0316146103265760405162461bcd60e51b815260040161031d90611e85565b60405180910390fd5b33600090815260036020908152604080832089845290915290205460ff16156103615760405162461bcd60e51b815260040161031d90611f0e565b3360009081526003602090815260408083208984528252808320805460ff19166001908117909155815180830183528e81528084018e905260a08f01516001600160a01b031685526005909352922054909160ff9091161515146103d75760405162461bcd60e51b815260040161031d90611f75565b60008060006103ee8460000151856020015161138c565b9250925092508160001461040c5783516060015161040c9083611420565b8015610422578351608001516104229082611420565b8351602001516104329084611420565b835160a08101516020918201518287015190920151604051632142170760e11b81526001600160a01b03909216926342842e0e92610474923391600401611d9c565b600060405180830381600087803b15801561048e57600080fd5b505af11580156104a2573d6000803e3d6000fd5b505050506020840151513411156104ce576020840151516104ce9033906104c99034612059565b611420565b604080516060810190915233815284517f0e4cb43501fcdb341a36642903dbed4ff417d75ff624446c17e261aac89f8bb79190602082019060015b602090810291909101516001600160a01b039081168352885160409081015190911692820192909252878101519081015190519151610549939290611dc0565b60405180910390a15050505050505050505050505050565b8184848360003385858560405160200161057e9493929190611cf8565b60405160208183030381529060405280519060200120905060006105a182611262565b90506105b56000546001600160a01b031690565b6001600160a01b03166105c882856112b5565b6001600160a01b0316146105ee5760405162461bcd60e51b815260040161031d90611e85565b33600090815260036020908152604080832089845290915290205460ff16156106295760405162461bcd60e51b815260040161031d90611f0e565b3360009081526003602090815260408083208984528252808320805460ff19166001908117909155815180830183528e81528084018e905260a08f01516001600160a01b031685526005909352922054909160ff90911615151461069f5760405162461bcd60e51b815260040161031d90611f75565b60208101515181516040908101519051636eb1769f60e11b81523360048201523060248201526001600160a01b039091169063dd62ed3e9060440160206040518083038186803b1580156106f257600080fd5b505afa158015610706573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061072a9190611ce0565b10156107485760405162461bcd60e51b815260040161031d90611eb0565b600080600061075f8460000151856020015161138c565b9250925092508160001461079e57835161079e9060005b60200201518551606081015190859060025b60200201516001600160a01b03169291906114e9565b80156107c35783516107c39060005b6020020151855160808101519084906002610788565b83516107de90339060015b6020020151865186906002610788565b835160a08101516020918201518287015190920151604051632142170760e11b81526001600160a01b03909216926342842e0e92610820923391600401611d9c565b600060405180830381600087803b15801561083a57600080fd5b505af115801561084e573d6000803e3d6000fd5b5050604080516060810190915233815286517f47525166a98ecafd898e3fe0e0babcece7be6bf0737681ee59a30f64c49ab58f935090915060208201906001610509565b61089d600133611547565b6108b95760405162461bcd60e51b815260040161031d90611ee7565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b818484836000338585856040516020016109019493929190611cf8565b604051602081830303815290604052805190602001209050600061092482611262565b90506109386000546001600160a01b031690565b6001600160a01b031661094b82856112b5565b6001600160a01b0316146109715760405162461bcd60e51b815260040161031d90611e85565b33600090815260036020908152604080832089845290915290205460ff16156109ac5760405162461bcd60e51b815260040161031d90611f0e565b3360009081526003602090815260408083208984528252808320805460ff19166001908117909155815180830183528e81528084018e905260a08f01516001600160a01b031685526005909352922054909160ff909116151514610a225760405162461bcd60e51b815260040161031d90611f75565b805160a00151602080830151015160405163020604bf60e21b8152600481019190915230916001600160a01b03169063081812fc9060240160206040518083038186803b158015610a7257600080fd5b505afa158015610a86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aaa9190611b7c565b6001600160a01b031614610ad05760405162461bcd60e51b815260040161031d90611f32565b602081015151815160408082015191519051636eb1769f60e11b81526001600160a01b03918216600482015230602482015291169063dd62ed3e9060440160206040518083038186803b158015610b2657600080fd5b505afa158015610b3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5e9190611ce0565b1015610b7c5760405162461bcd60e51b815260040161031d90611eb0565b6000806000610b938460000151856020015161138c565b92509250925081600014610bae578351610bae906000610776565b8015610bc1578351610bc19060006107ad565b83518051610bd491339086906002610788565b835160a081015160208083015192518188015190910151604051632142170760e11b81526001600160a01b03909316936342842e0e93610c1993919290600401611d9c565b600060405180830381600087803b158015610c3357600080fd5b505af1158015610c47573d6000803e3d6000fd5b5050604080516060810190915233815286517f4085991e69330815d98dbc345ed9f93b3977fd35f64ef268b72d7248cc4d431d935090915060208201906001610509565b610c96600133611547565b610cb25760405162461bcd60e51b815260040161031d90611ee7565b6001600160a01b038216610cf85760405162461bcd60e51b815260206004820152600d60248201526c2d22a9279020a2222922a9a99760991b604482015260640161031d565b8015610d0e57610d09600183611244565b505050565b610d09600183611569565b610d2161157e565b610d2b60006115d8565b565b60408051808201825283815260208082018490523360009081526004909152919091205460ff161515600114610da55760405162461bcd60e51b815260206004820152601b60248201527f41646472657373206973206e6f7420696e2077686974656c6973740000000000604482015260640161031d565b805160a001516001600160a01b031660009081526005602052604090205460ff161515600114610de75760405162461bcd60e51b815260040161031d90611f75565b602081015151815160408082015191519051636eb1769f60e11b81526001600160a01b03918216600482015230602482015291169063dd62ed3e9060440160206040518083038186803b158015610e3d57600080fd5b505afa158015610e51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e759190611ce0565b1015610e935760405162461bcd60e51b815260040161031d90611eb0565b6000548151602001516001600160a01b0390811691161415610f76578051600560200201516001600160a01b031663e985e9c5610ed86000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b158015610f1d57600080fd5b505afa158015610f31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f559190611cc4565b610f715760405162461bcd60e51b815260040161031d90611f32565b611024565b805160a00151602080830151015160405163020604bf60e21b8152600481019190915230916001600160a01b03169063081812fc9060240160206040518083038186803b158015610fc657600080fd5b505afa158015610fda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffe9190611b7c565b6001600160a01b0316146110245760405162461bcd60e51b815260040161031d90611f32565b600080600061103b8460000151856020015161138c565b92509250925081600014611056578351611056906000610776565b80156110695783516110699060006107ad565b835180516110789160016107ce565b835160a081015160208083015192518188015190910151604051632142170760e11b81526001600160a01b03909316936342842e0e936110bd93919290600401611d9c565b600060405180830381600087803b1580156110d757600080fd5b505af11580156110eb573d6000803e3d6000fd5b50506040805160608101825233815287516020908101516001600160a01b0390811682840152895184015116828401528089015190810151905192517fcd8f7eef42f2560ef5550d3bacc1d672e5d9d1fc3744b1b10e415310514073929550611158945091929091611dc0565b60405180910390a1505050505050565b60606111746001611628565b905090565b61118161157e565b6001600160a01b0381166111e65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161031d565b6111ef816115d8565b50565b6111fd600133611547565b6112195760405162461bcd60e51b815260040161031d90611ee7565b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b6000611259836001600160a01b03841661163c565b90505b92915050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b60008060008084516041146112d0576000935050505061125c565b50505060208201516040830151606084015160001a601b8110156112fc576112f9601b82611ff5565b90505b8060ff16601b1415801561131457508060ff16601c14155b15611325576000935050505061125c565b60408051600081526020810180835288905260ff831691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015611378573d6000803e3d6000fd5b50505060206040510351935050505061125c565b60008080808086600360200201516001600160a01b0316146113d7576113c86103e86113c28760025b602002015188519061168b565b90611697565b92506113d48382611fdd565b90505b60808601516001600160a01b03161561140a576113fb6103e86113c28760036113b5565b91506114078282611fdd565b90505b845161141690826116a3565b9350509250925092565b604080516000808252602082019092526001600160a01b03841690839060405161144a9190611d80565b60006040518083038185875af1925050503d8060008114611487576040519150601f19603f3d011682016040523d82523d6000602084013e61148c565b606091505b5050905080610d095760405162461bcd60e51b815260206004820152602360248201527f5472616e7366657248656c7065723a204554485f5452414e534645525f46414960448201526213115160ea1b606482015260840161031d565b611541846323b872dd60e01b85858560405160240161150a93929190611d9c565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526116af565b50505050565b6001600160a01b03811660009081526001830160205260408120541515611259565b6000611259836001600160a01b038416611781565b6000546001600160a01b03163314610d2b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161031d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606060006116358361189e565b9392505050565b60008181526001830160205260408120546116835750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561125c565b50600061125c565b6000611259828461203a565b6000611259828461201a565b60006112598284612059565b6000611704826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118fa9092919063ffffffff16565b805190915015610d0957808060200190518101906117229190611cc4565b610d095760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161031d565b600081815260018301602052604081205480156118945760006117a5600183612059565b85549091506000906117b990600190612059565b905081811461183a5760008660000182815481106117e757634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061181857634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b855486908061185957634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061125c565b600091505061125c565b6060816000018054806020026020016040519081016040528092919081815260200182805480156118ee57602002820191906000526020600020905b8154815260200190600101908083116118da575b50505050509050919050565b60606119098484600085611911565b949350505050565b6060824710156119725760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161031d565b6001600160a01b0385163b6119c95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161031d565b600080866001600160a01b031685876040516119e59190611d80565b60006040518083038185875af1925050503d8060008114611a22576040519150601f19603f3d011682016040523d82523d6000602084013e611a27565b606091505b5091509150611a37828286611a42565b979650505050505050565b60608315611a51575081611635565b825115611a615782518084602001fd5b8160405162461bcd60e51b815260040161031d9190611e52565b600082601f830112611a8b578081fd5b60405160c0810181811067ffffffffffffffff82111715611aae57611aae6120b2565b604052808360c08101861015611ac2578384fd5b835b6006811015611aed578135611ad8816120c8565b83526020928301929190910190600101611ac4565b509195945050505050565b600082601f830112611b08578081fd5b6040516080810181811067ffffffffffffffff82111715611b2b57611b2b6120b2565b604052808360808101861015611b3f578384fd5b835b6004811015611aed578135835260209283019290910190600101611b41565b600060208284031215611b71578081fd5b8135611635816120c8565b600060208284031215611b8d578081fd5b8151611635816120c8565b60008060408385031215611baa578081fd5b8235611bb5816120c8565b91506020830135611bc5816120dd565b809150509250929050565b6000806101408385031215611be3578182fd5b611bed8484611a7b565b9150611bfc8460c08501611af8565b90509250929050565b6000806000806101808587031215611c1b578182fd5b611c258686611a7b565b9350611c348660c08701611af8565b9250610140850135915061016085013567ffffffffffffffff80821115611c59578283fd5b818701915087601f830112611c6c578283fd5b813581811115611c7e57611c7e6120b2565b611c91601f8201601f1916602001611fac565b9150808252886020828501011115611ca7578384fd5b806020840160208401378101602001929092525092959194509250565b600060208284031215611cd5578081fd5b8151611635816120dd565b600060208284031215611cf1578081fd5b5051919050565b6bffffffffffffffffffffffff198560601b16815283601482015260006034820184825b6006811015611d445781516001600160a01b0316835260209283019290910190600101611d1c565b50505060f4820183825b6004811015611d6d578151835260209283019290910190600101611d4e565b5050506101748201905095945050505050565b60008251611d92818460208701612070565b9190910192915050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60a08101818560005b6003811015611df15781516001600160a01b0316835260209283019290910190600101611dc9565b505050606082019390935260800152919050565b6020808252825182820181905260009190848201906040850190845b81811015611e465783516001600160a01b031683529284019291840191600101611e21565b50909695505050505050565b6020815260008251806020840152611e71816040850160208701612070565b601f01601f19169190910160400192915050565b602080825260119082015270496e76616c6964207369676e617475726560781b604082015260600190565b60208082526017908201527f746f6b656e20616c6c6f77616e636520746f6f206c6f77000000000000000000604082015260600190565b6020808252600d908201526c2727aa1027a822a920aa27a91760991b604082015260600190565b6020808252600a908201526955736564206e6f6e636560b01b604082015260600190565b60208082526023908201527f746f6b656e496420646f206e6f7420617070726f766520666f7220636f6e74726040820152621858dd60ea1b606082015260800190565b60208082526017908201527f4e4654206973206e6f7420696e2077686974656c697374000000000000000000604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715611fd557611fd56120b2565b604052919050565b60008219821115611ff057611ff061209c565b500190565b600060ff821660ff84168060ff038211156120125761201261209c565b019392505050565b60008261203557634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156120545761205461209c565b500290565b60008282101561206b5761206b61209c565b500390565b60005b8381101561208b578181015183820152602001612073565b838111156115415750506000910152565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146111ef57600080fd5b80151581146111ef57600080fdfea2646970667358221220eb7f3e2af42ddeb59f5d915647b508d7dba6956a3f9a802356ea536dfec30bd364736f6c63430008040033
Deployed Bytecode Sourcemap
108216:12598:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;113753:1736;;;;;;:::i;:::-;;:::i;:::-;;111507:2073;;;;;;;;;;-1:-1:-1;111507:2073:0;;;;;:::i;:::-;;:::i;109380:161::-;;;;;;;;;;-1:-1:-1;109380:161:0;;;;;:::i;:::-;;:::i;108605:48::-;;;;;;;;;;-1:-1:-1;108605:48:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;8642:14:1;;8635:22;8617:41;;8605:2;8590:18;108605:48:0;;;;;;;;118487:2324;;;;;;;;;;-1:-1:-1;118487:2324:0;;;;;:::i;:::-;;:::i;96461:289::-;;;;;;;;;;-1:-1:-1;96461:289:0;;;;;:::i;:::-;;:::i;98601:103::-;;;;;;;;;;;;;:::i;115652:2660::-;;;;;;;;;;-1:-1:-1;115652:2660:0;;;;;:::i;:::-;;:::i;97953:87::-;;;;;;;;;;-1:-1:-1;97999:7:0;98026:6;97953:87;;-1:-1:-1;;;;;98026:6:0;;;6391:51:1;;6379:2;6364:18;97953:87:0;6346:102:1;108660:51:0;;;;;;;;;;-1:-1:-1;108660:51:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;96346:107;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;98859:201::-;;;;;;;;;;-1:-1:-1;98859:201:0;;;;;:::i;:::-;;:::i;109549:167::-;;;;;;;;;;-1:-1:-1;109549:167:0;;;;;:::i;:::-;;:::i;113753:1736::-;113978:5;113985:13;114000:11;114013:9;110092:12;110166:10;110195:5;110219:13;110251:11;110131:146;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;110107:181;;;;;;110092:196;;110299:19;110321:29;:4;:27;:29::i;:::-;110299:51;;110474:7;97999;98026:6;-1:-1:-1;;;;;98026:6:0;;97953:87;110474:7;-1:-1:-1;;;;;110440:41:0;:30;:11;110460:9;110440:19;:30::i;:::-;-1:-1:-1;;;;;110440:41:0;;110432:71;;;;-1:-1:-1;;;110432:71:0;;;;;;;:::i;:::-;;;;;;;;;110534:10;110523:22;;;;:10;:22;;;;;;;;:29;;;;;;;;;;;110522:30;110514:53;;;;-1:-1:-1;;;110514:53:0;;;;;;;:::i;:::-;110589:10;110578:22;;;;:10;:22;;;;;;;;:29;;;;;;;;:36;;-1:-1:-1;;110578:36:0;110610:4;110578:36;;;;;;114064:97;;;;::::1;::::0;;;;;;;::::1;::::0;;;114216:25;;::::1;::::0;-1:-1:-1;;;;;114196:46:0::1;::::0;;:19:::1;:46:::0;;;;;;114064:97;;114196:46:::1;::::0;;::::1;:54;;;114174:127;;;;-1:-1:-1::0;;;114174:127:0::1;;;;;;;:::i;:::-;114315:14;114331:16:::0;114349::::1;114369:103;114404:9;:22;;;114441:9;:20;;;114369;:103::i;:::-;114314:158;;;;;;114527:8;114539:1;114527:13;114523:113;;114588:22:::0;;:25;::::1;::::0;114557:67:::1;::::0;114615:8;114557:30:::1;:67::i;:::-;114694:13:::0;;114690:113:::1;;114755:22:::0;;:25;::::1;::::0;114724:67:::1;::::0;114782:8;114724:30:::1;:67::i;:::-;114846:22:::0;;:25:::1;;::::0;114815:65:::1;::::0;114873:6;114815:30:::1;:65::i;:::-;114902:22:::0;;:25;;::::1;::::0;::::1;114960::::0;;::::1;::::0;115025:20;;::::1;::::0;:23;;::::1;::::0;114893:166:::1;::::0;-1:-1:-1;;;114893:166:0;;-1:-1:-1;;;;;114893:52:0;;::::1;::::0;::::1;::::0;:166:::1;::::0;115000:10:::1;::::0;114893:166:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;;;115122:20:0::1;::::0;::::1;::::0;:23;115110:9:::1;:35;115106:182;;;115250:20;::::0;::::1;::::0;:23;115160:128:::1;::::0;115209:10:::1;::::0;115238:35:::1;::::0;:9:::1;:35;:::i;:::-;115160:30;:128::i;:::-;115304:177;::::0;;::::1;::::0;::::1;::::0;;;115329:10:::1;115304:177:::0;;115341:22;;115304:177:::1;::::0;;::::1;::::0;::::1;::::0;115364:1:::1;115341:25;;::::0;;::::1;::::0;;;::::1;::::0;-1:-1:-1;;;;;115304:177:0;;::::1;::::0;;115368:22;;:25;;;::::1;::::0;115304:177;;::::1;::::0;;::::1;::::0;;;;115409:20;;::::1;::::0;:23;;::::1;::::0;115447;;115304:177;;::::1;::::0;;115447:23;115304:177:::1;:::i;:::-;;;;;;;;110625:1;;;;113753:1736:::0;;;;;;;;;;:::o;111507:2073::-;111700:5;111707:13;111722:11;111735:9;110092:12;110166:10;110195:5;110219:13;110251:11;110131:146;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;110107:181;;;;;;110092:196;;110299:19;110321:29;:4;:27;:29::i;:::-;110299:51;;110474:7;97999;98026:6;-1:-1:-1;;;;;98026:6:0;;97953:87;110474:7;-1:-1:-1;;;;;110440:41:0;:30;:11;110460:9;110440:19;:30::i;:::-;-1:-1:-1;;;;;110440:41:0;;110432:71;;;;-1:-1:-1;;;110432:71:0;;;;;;;:::i;:::-;110534:10;110523:22;;;;:10;:22;;;;;;;;:29;;;;;;;;;;;110522:30;110514:53;;;;-1:-1:-1;;;110514:53:0;;;;;;;:::i;:::-;110589:10;110578:22;;;;:10;:22;;;;;;;;:29;;;;;;;;:36;;-1:-1:-1;;110578:36:0;110610:4;110578:36;;;;;;111781:97;;;;::::1;::::0;;;;;;;::::1;::::0;;;111933:25;;::::1;::::0;-1:-1:-1;;;;;111913:46:0::1;::::0;;:19:::1;:46:::0;;;;;;111781:97;;111913:46:::1;::::0;;::::1;:54;;;111891:127;;;;-1:-1:-1::0;;;111891:127:0::1;;;;;;;:::i;:::-;112181:20;::::0;::::1;::::0;:23;112097:22;;:25;;;::::1;::::0;112090:70;;-1:-1:-1;;;112090:70:0;;112134:10:::1;112090:70;::::0;::::1;6665:34:1::0;112154:4:0::1;6715:18:1::0;;;6708:43;-1:-1:-1;;;;;112090:43:0;;::::1;::::0;::::1;::::0;6600:18:1;;112090:70:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:114;;112068:187;;;;-1:-1:-1::0;;;112068:187:0::1;;;;;;;:::i;:::-;112267:14;112283:16:::0;112301::::1;112321:103;112356:9;:22;;;112393:9;:20;;;112321;:103::i;:::-;112266:158;;;;;;112441:8;112453:1;112441:13;112437:271;;112585:22:::0;;112517:179:::1;::::0;112585:22:::1;:25;;;;::::0;112629:22;;:25;;::::1;::::0;;112673:8;;112546:1:::1;112523:25;;;;::::0;-1:-1:-1;;;;;112517:49:0::1;::::0;:179;;:49:::1;:179::i;:::-;112724:13:::0;;112720:271:::1;;112868:22:::0;;112800:179:::1;::::0;112868:22:::1;:25;;;;::::0;112912:22;;:25;;::::1;::::0;;112956:8;;112829:1:::1;112806:25;::::0;112800:179:::1;113142:22:::0;;113053:146:::1;::::0;113117:10:::1;::::0;113165:1:::1;113142:25;;;;::::0;113059:22;;113182:6;;113082:1:::1;113059:25;::::0;113053:146:::1;113219:22:::0;;:25;;::::1;::::0;::::1;113277::::0;;::::1;::::0;113342:20;;::::1;::::0;:23;;::::1;::::0;113210:166:::1;::::0;-1:-1:-1;;;113210:166:0;;-1:-1:-1;;;;;113210:52:0;;::::1;::::0;::::1;::::0;:166:::1;::::0;113317:10:::1;::::0;113210:166:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;113392:180:0::1;::::0;;::::1;::::0;::::1;::::0;;;113420:10:::1;113392:180:::0;;113432:22;;113392:180:::1;::::0;-1:-1:-1;113392:180:0;;-1:-1:-1;113392:180:0::1;::::0;::::1;::::0;113455:1:::1;113432:25;::::0;109380:161;96197:29;:8;96215:10;96197:17;:29::i;:::-;96189:55;;;;-1:-1:-1;;;96189:55:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;109496:26:0;;;::::1;;::::0;;;:16:::1;:26;::::0;;;;:37;;-1:-1:-1;;109496:37:0::1;::::0;::::1;;::::0;;;::::1;::::0;;109380:161::o;118487:2324::-;118682:5;118689:13;118704:11;118717:9;110092:12;110166:10;110195:5;110219:13;110251:11;110131:146;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;110107:181;;;;;;110092:196;;110299:19;110321:29;:4;:27;:29::i;:::-;110299:51;;110474:7;97999;98026:6;-1:-1:-1;;;;;98026:6:0;;97953:87;110474:7;-1:-1:-1;;;;;110440:41:0;:30;:11;110460:9;110440:19;:30::i;:::-;-1:-1:-1;;;;;110440:41:0;;110432:71;;;;-1:-1:-1;;;110432:71:0;;;;;;;:::i;:::-;110534:10;110523:22;;;;:10;:22;;;;;;;;:29;;;;;;;;;;;110522:30;110514:53;;;;-1:-1:-1;;;110514:53:0;;;;;;;:::i;:::-;110589:10;110578:22;;;;:10;:22;;;;;;;;:29;;;;;;;;:36;;-1:-1:-1;;110578:36:0;110610:4;110578:36;;;;;;118763:97;;;;::::1;::::0;;;;;;;::::1;::::0;;;118915:25;;::::1;::::0;-1:-1:-1;;;;;118895:46:0::1;::::0;;:19:::1;:46:::0;;;;;;118763:97;;118895:46:::1;::::0;;::::1;:54;;;118873:127;;;;-1:-1:-1::0;;;118873:127:0::1;;;;;;;:::i;:::-;119044:22:::0;;:25;::::1;::::0;::::1;119083:20:::0;;::::1;::::0;:23:::1;::::0;119035:72:::1;::::0;-1:-1:-1;;;119035:72:0;;::::1;::::0;::::1;14787:25:1::0;;;;119119:4:0::1;::::0;-1:-1:-1;;;;;119035:47:0::1;::::0;::::1;::::0;14760:18:1;;119035:72:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;119035:89:0::1;;119013:174;;;;-1:-1:-1::0;;;119013:174:0::1;;;;;;;:::i;:::-;119395:20;::::0;::::1;::::0;:23;119264:22;;:25;;;::::1;::::0;119319;;119257:134;;-1:-1:-1;;;119257:134:0;;-1:-1:-1;;;;;6683:15:1;;;119257:134:0::1;::::0;::::1;6665:34:1::0;119371:4:0::1;6715:18:1::0;;;6708:43;119257::0;::::1;::::0;::::1;::::0;6600:18:1;;119257:134:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:161;;119235:234;;;;-1:-1:-1::0;;;119235:234:0::1;;;;;;;:::i;:::-;119483:14;119499:16:::0;119517::::1;119537:103;119572:9;:22;;;119609:9;:20;;;119537;:103::i;:::-;119482:158;;;;;;119655:8;119667:1;119655:13;119651:271;;119799:22:::0;;119731:179:::1;::::0;119799:22:::1;:25;::::0;119731:179:::1;119938:13:::0;;119934:271:::1;;120082:22:::0;;120014:179:::1;::::0;120082:22:::1;:25;::::0;120014:179:::1;120329:22:::0;;:25;;120265:146:::1;::::0;120369:10:::1;::::0;120394:6;;120294:1:::1;120271:25;::::0;120265:146:::1;120433:22:::0;;:25;;::::1;::::0;::::1;120491::::0;;::::1;::::0;120531;;120571:20;;::::1;::::0;:23;;::::1;::::0;120424:181:::1;::::0;-1:-1:-1;;;120424:181:0;;-1:-1:-1;;;;;120424:52:0;;::::1;::::0;::::1;::::0;:181:::1;::::0;120491:25;;120571:23;120424:181:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;120621:182:0::1;::::0;;::::1;::::0;::::1;::::0;;;120651:10:::1;120621:182:::0;;120663:22;;120621:182:::1;::::0;-1:-1:-1;120621:182:0;;-1:-1:-1;120621:182:0::1;::::0;::::1;::::0;120686:1:::1;120663:25;::::0;96461:289;96197:29;:8;96215:10;96197:17;:29::i;:::-;96189:55;;;;-1:-1:-1;;;96189:55:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;96559:27:0;::::1;96551:53;;;::::0;-1:-1:-1;;;96551:53:0;;14501:2:1;96551:53:0::1;::::0;::::1;14483:21:1::0;14540:2;14520:18;;;14513:30;-1:-1:-1;;;14559:18:1;;;14552:43;14612:18;;96551:53:0::1;14473:163:1::0;96551:53:0::1;96619:5;96615:128;;;96641:27;:8;96654:13:::0;96641:12:::1;:27::i;:::-;;96461:289:::0;;:::o;96615:128::-:1;96701:30;:8;96717:13:::0;96701:15:::1;:30::i;98601:103::-:0;97839:13;:11;:13::i;:::-;98666:30:::1;98693:1;98666:18;:30::i;:::-;98601:103::o:0;115652:2660::-;115805:97;;;;;;;;;;;;;;;;;;115994:10;115781:21;115977:28;;;:16;:28;;;;;;;;;;:36;;:28;:36;115955:113;;;;-1:-1:-1;;;115955:113:0;;9662:2:1;115955:113:0;;;9644:21:1;9701:2;9681:18;;;9674:30;9740:29;9720:18;;;9713:57;9787:18;;115955:113:0;9634:177:1;115955:113:0;116121:22;;:25;;;-1:-1:-1;;;;;116101:46:0;;;;;:19;116121:25;116101:46;;;;;;;:54;;:46;:54;116079:127;;;;-1:-1:-1;;;116079:127:0;;;;;;;:::i;:::-;116416:20;;;;:23;116285:22;;:25;;;;;116340;;116278:134;;-1:-1:-1;;;116278:134:0;;-1:-1:-1;;;;;6683:15:1;;;116278:134:0;;;6665:34:1;116392:4:0;6715:18:1;;;6708:43;116278::0;;;;;6600:18:1;;116278:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:161;;116256:234;;;;-1:-1:-1;;;116256:234:0;;;;;;;:::i;:::-;97999:7;98026:6;116505:22;;:25;;;-1:-1:-1;;;;;116505:36:0;;;98026:6;;116505:36;116501:461;;;116593:22;;116616:1;116593:25;;;;-1:-1:-1;;;;;116584:52:0;;116637:7;97999;98026:6;-1:-1:-1;;;;;98026:6:0;;97953:87;116637:7;116584:76;;-1:-1:-1;;;;;;116584:76:0;;;;;;;-1:-1:-1;;;;;6683:15:1;;;116584:76:0;;;6665:34:1;116654:4:0;6715:18:1;;;6708:43;6600:18;;116584:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;116558:173;;;;-1:-1:-1;;;116558:173:0;;;;;;;:::i;:::-;116501:461;;;116799:22;;:25;;;;116838:20;;;;:23;;116790:72;;-1:-1:-1;;;116790:72:0;;;;;14787:25:1;;;;116874:4:0;;-1:-1:-1;;;;;116790:47:0;;;;14760:18:1;;116790:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;116790:89:0;;116764:186;;;;-1:-1:-1;;;116764:186:0;;;;;;;:::i;:::-;116975:14;116991:16;117009;117029:103;117064:9;:22;;;117101:9;:20;;;117029;:103::i;:::-;116974:158;;;;;;117147:8;117159:1;117147:13;117143:271;;117291:22;;117223:179;;117291:22;:25;;117223:179;117430:13;;117426:271;;117574:22;;117506:179;;117574:22;:25;;117506:179;117821:22;;:25;;117757:161;;117884:1;117861:25;;117757:161;117938:22;;:25;;;;;117996;;;;118036;;118076:20;;;;:23;;;;117929:181;;-1:-1:-1;;;117929:181:0;;-1:-1:-1;;;;;117929:52:0;;;;;;:181;;117996:25;;118076:23;117929:181;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;118126:178:0;;;;;;;;118152:10;118126:178;;118164:22;;118126:178;118164:25;;;;-1:-1:-1;;;;;118126:178:0;;;;;;;118191:22;;:25;;;118126:178;;;;;118232:20;;;;:23;;;;118270;;118126:178;;;;-1:-1:-1;118126:178:0;;-1:-1:-1;118126:178:0;;118232:23;;118126:178;:::i;:::-;;;;;;;;115652:2660;;;;;;:::o;96346:107::-;96392:16;96428:17;:8;:15;:17::i;:::-;96421:24;;96346:107;:::o;98859:201::-;97839:13;:11;:13::i;:::-;-1:-1:-1;;;;;98948:22:0;::::1;98940:73;;;::::0;-1:-1:-1;;;98940:73:0;;10018:2:1;98940:73:0::1;::::0;::::1;10000:21:1::0;10057:2;10037:18;;;10030:30;10096:34;10076:18;;;10069:62;-1:-1:-1;;;10147:18:1;;;10140:36;10193:19;;98940:73:0::1;9990:228:1::0;98940:73:0::1;99024:28;99043:8;99024:18;:28::i;:::-;98859:201:::0;:::o;109549:167::-;96197:29;:8;96215:10;96197:17;:29::i;:::-;96189:55;;;;-1:-1:-1;;;96189:55:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;109668:29:0;;;::::1;;::::0;;;:19:::1;:29;::::0;;;;:40;;-1:-1:-1;;109668:40:0::1;::::0;::::1;;::::0;;;::::1;::::0;;109549:167::o;91174:152::-;91244:4;91268:50;91273:3;-1:-1:-1;;;;;91293:23:0;;91268:4;:50::i;:::-;91261:57;;91174:152;;;;;:::o;82614:199::-;82742:58;;6102:66:1;82742:58:0;;;6090:79:1;6185:12;;;6178:28;;;82698:7:0;;6222:12:1;;82742:58:0;;;;;;;;;;;;82724:83;;;;;;82717:90;;82614:199;;;:::o;81610:855::-;81703:7;81722:9;81738;81754:7;81809:9;:16;81829:2;81809:22;81805:64;;81858:1;81842:19;;;;;;;81805:64;-1:-1:-1;;;81996:4:0;81981:20;;81975:27;82036:4;82021:20;;82015:27;82084:4;82069:20;;82063:27;82060:1;82055:36;82202:2;82198:6;;82194:36;;;82215:7;82220:2;82215:7;;:::i;:::-;;;82194:36;82302:1;:7;;82307:2;82302:7;;:18;;;;;82313:1;:7;;82318:2;82313:7;;82302:18;82298:162;;;82347:1;82331:19;;;;;;;82298:162;82428:24;;;;;;;;;;;;8896:25:1;;;8969:4;8957:17;;8937:18;;;8930:45;;;;8991:18;;;8984:34;;;9034:18;;;9027:34;;;82428:24:0;;8868:19:1;;82428:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82421:31;;;;;;;110642:683;110778:14;;;;;110909:13;110923:1;110909:16;;;;-1:-1:-1;;;;;110909:30:0;;110905:158;;110967:44;111006:4;110967:34;110986:11;110998:1;110986:14;;;;;110967;;;:18;:34::i;:::-;:38;;:44::i;:::-;110956:55;-1:-1:-1;111026:25:0;110956:55;111026:25;;:::i;:::-;;;110905:158;111109:16;;;;-1:-1:-1;;;;;111109:30:0;;111105:158;;111167:44;111206:4;111167:34;111186:11;111198:1;111186:14;;111167:44;111156:55;-1:-1:-1;111226:25:0;111156:55;111226:25;;:::i;:::-;;;111105:158;111284:14;;:33;;111303:13;111284:18;:33::i;:::-;111275:42;;110642:683;;;;;;:::o;107969:192::-;108080:12;;;108038;108080;;;;;;;;;-1:-1:-1;;;;;108056:7:0;;;108072:5;;108056:37;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108037:56;;;108108:7;108100:55;;;;-1:-1:-1;;;108100:55:0;;13334:2:1;108100:55:0;;;13316:21:1;13373:2;13353:18;;;13346:30;13412:34;13392:18;;;13385:62;-1:-1:-1;;;13463:18:1;;;13456:33;13506:19;;108100:55:0;13306:225:1;29183:248:0;29327:96;29347:5;29377:27;;;29406:4;29412:2;29416:5;29354:68;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;29354:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;29354:68:0;-1:-1:-1;;;;;;29354:68:0;;;;;;;;;;29327:19;:96::i;:::-;29183:248;;;;:::o;91746:167::-;-1:-1:-1;;;;;91880:23:0;;91826:4;87098:19;;;:12;;;:19;;;;;;:24;;91850:55;87001:129;91502:158;91575:4;91599:53;91607:3;-1:-1:-1;;;;;91627:23:0;;91599:7;:53::i;98118:132::-;97999:7;98026:6;-1:-1:-1;;;;;98026:6:0;4434:10;98182:23;98174:68;;;;-1:-1:-1;;;98174:68:0;;11530:2:1;98174:68:0;;;11512:21:1;;;11549:18;;;11542:30;11608:34;11588:18;;;11581:62;11660:18;;98174:68:0;11502:182:1;99220:191:0;99294:16;99313:6;;-1:-1:-1;;;;;99330:17:0;;;-1:-1:-1;;;;;;99330:17:0;;;;;;99363:40;;99313:6;;;;;;;99363:40;;99294:16;99363:40;99220:191;;:::o;93178:310::-;93241:16;93270:22;93295:19;93303:3;93295:7;:19::i;:::-;93270:44;93178:310;-1:-1:-1;;;93178:310:0:o;84905:414::-;84968:4;87098:19;;;:12;;;:19;;;;;;84985:327;;-1:-1:-1;85028:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;85211:18;;85189:19;;;:12;;;:19;;;;;;:40;;;;85244:11;;84985:327;-1:-1:-1;85295:5:0;85288:12;;103074:98;103132:7;103159:5;103163:1;103159;:5;:::i;103473:98::-;103531:7;103558:5;103562:1;103558;:5;:::i;102717:98::-;102775:7;102802:5;102806:1;102802;:5;:::i;32031:716::-;32455:23;32481:69;32509:4;32481:69;;;;;;;;;;;;;;;;;32489:5;-1:-1:-1;;;;;32481:27:0;;;:69;;;;;:::i;:::-;32565:17;;32455:95;;-1:-1:-1;32565:21:0;32561:179;;32662:10;32651:30;;;;;;;;;;;;:::i;:::-;32643:85;;;;-1:-1:-1;;;32643:85:0;;13738:2:1;32643:85:0;;;13720:21:1;13777:2;13757:18;;;13750:30;13816:34;13796:18;;;13789:62;-1:-1:-1;;;13867:18:1;;;13860:40;13917:19;;32643:85:0;13710:232:1;85495:1420:0;85561:4;85700:19;;;:12;;;:19;;;;;;85736:15;;85732:1176;;86111:21;86135:14;86148:1;86135:10;:14;:::i;:::-;86184:18;;86111:38;;-1:-1:-1;86164:17:0;;86184:22;;86205:1;;86184:22;:::i;:::-;86164:42;;86240:13;86227:9;:26;86223:405;;86274:17;86294:3;:11;;86306:9;86294:22;;;;;;-1:-1:-1;;;86294:22:0;;;;;;;;;;;;;;;;;86274:42;;86448:9;86419:3;:11;;86431:13;86419:26;;;;;;-1:-1:-1;;;86419:26:0;;;;;;;;;;;;;;;;;;;;:38;;;;86533:23;;;:12;;;:23;;;;;:36;;;86223:405;86709:17;;:3;;:17;;;-1:-1:-1;;;86709:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;86804:3;:12;;:19;86817:5;86804:19;;;;;;;;;;;86797:26;;;86847:4;86840:11;;;;;;;85732:1176;86891:5;86884:12;;;;;88349:111;88405:16;88441:3;:11;;88434:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;88349:111;;;:::o;23722:229::-;23859:12;23891:52;23913:6;23921:4;23927:1;23930:12;23891:21;:52::i;:::-;23884:59;23722:229;-1:-1:-1;;;;23722:229:0:o;24842:510::-;25012:12;25070:5;25045:21;:30;;25037:81;;;;-1:-1:-1;;;25037:81:0;;10771:2:1;25037:81:0;;;10753:21:1;10810:2;10790:18;;;10783:30;10849:34;10829:18;;;10822:62;-1:-1:-1;;;10900:18:1;;;10893:36;10946:19;;25037:81:0;10743:228:1;25037:81:0;-1:-1:-1;;;;;21272:19:0;;;25129:60;;;;-1:-1:-1;;;25129:60:0;;12976:2:1;25129:60:0;;;12958:21:1;13015:2;12995:18;;;12988:30;13054:31;13034:18;;;13027:59;13103:18;;25129:60:0;12948:179:1;25129:60:0;25203:12;25217:23;25244:6;-1:-1:-1;;;;;25244:11:0;25263:5;25270:4;25244:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25202:73;;;;25293:51;25310:7;25319:10;25331:12;25293:16;:51::i;:::-;25286:58;24842:510;-1:-1:-1;;;;;;;24842:510:0:o;27528:762::-;27678:12;27707:7;27703:580;;;-1:-1:-1;27738:10:0;27731:17;;27703:580;27852:17;;:21;27848:424;;28100:10;28094:17;28161:15;28148:10;28144:2;28140:19;28133:44;28048:148;28243:12;28236:20;;-1:-1:-1;;;28236:20:0;;;;;;;;:::i;14:779:1:-;64:5;117:3;110:4;102:6;98:17;94:27;84:2;;139:5;132;125:20;84:2;176;170:9;218:3;210:6;206:16;288:6;276:10;273:22;252:18;240:10;237:34;234:62;231:2;;;299:18;;:::i;:::-;335:2;328:22;370:6;396;429:3;417:16;;414:25;-1:-1:-1;411:2:1;;;456:5;449;442:20;411:2;482:5;496:267;510:4;507:1;504:11;496:267;;;583:3;570:17;600:31;625:5;600:31;:::i;:::-;644:18;;685:4;709:12;;;;741;;;;;530:1;523:9;496:267;;;-1:-1:-1;781:6:1;;74:719;-1:-1:-1;;;;;74:719:1:o;798:704::-;848:5;901:3;894:4;886:6;882:17;878:27;868:2;;923:5;916;909:20;868:2;960;954:9;1002:3;994:6;990:16;1072:6;1060:10;1057:22;1036:18;1024:10;1021:34;1018:62;1015:2;;;1083:18;;:::i;:::-;1119:2;1112:22;1154:6;1180;1213:3;1201:16;;1198:25;-1:-1:-1;1195:2:1;;;1240:5;1233;1226:20;1195:2;1266:5;1280:192;1294:4;1291:1;1288:11;1280:192;;;1353:17;;1341:30;;1394:4;1418:12;;;;1450;;;;1314:1;1307:9;1280:192;;1507:257;1566:6;1619:2;1607:9;1598:7;1594:23;1590:32;1587:2;;;1640:6;1632;1625:22;1587:2;1684:9;1671:23;1703:31;1728:5;1703:31;:::i;1769:261::-;1839:6;1892:2;1880:9;1871:7;1867:23;1863:32;1860:2;;;1913:6;1905;1898:22;1860:2;1950:9;1944:16;1969:31;1994:5;1969:31;:::i;2035:392::-;2100:6;2108;2161:2;2149:9;2140:7;2136:23;2132:32;2129:2;;;2182:6;2174;2167:22;2129:2;2226:9;2213:23;2245:31;2270:5;2245:31;:::i;:::-;2295:5;-1:-1:-1;2352:2:1;2337:18;;2324:32;2365:30;2324:32;2365:30;:::i;:::-;2414:7;2404:17;;;2119:308;;;;;:::o;2432:348::-;2546:6;2554;2607:3;2595:9;2586:7;2582:23;2578:33;2575:2;;;2629:6;2621;2614:22;2575:2;2657:44;2693:7;2682:9;2657:44;:::i;:::-;2647:54;;2720;2766:7;2760:3;2749:9;2745:19;2720:54;:::i;:::-;2710:64;;2565:215;;;;;:::o;2785:1093::-;2926:6;2934;2942;2950;3003:3;2991:9;2982:7;2978:23;2974:33;2971:2;;;3025:6;3017;3010:22;2971:2;3053:44;3089:7;3078:9;3053:44;:::i;:::-;3043:54;;3116;3162:7;3156:3;3145:9;3141:19;3116:54;:::i;:::-;3106:64;;3217:3;3206:9;3202:19;3189:33;3179:43;;3273:3;3262:9;3258:19;3245:33;3297:18;3338:2;3330:6;3327:14;3324:2;;;3359:6;3351;3344:22;3324:2;3402:6;3391:9;3387:22;3377:32;;3447:7;3440:4;3436:2;3432:13;3428:27;3418:2;;3474:6;3466;3459:22;3418:2;3515;3502:16;3537:2;3533;3530:10;3527:2;;;3543:18;;:::i;:::-;3585:55;3628:2;3609:13;;-1:-1:-1;;3605:27:1;3634:4;3601:38;3585:55;:::i;:::-;3572:68;;3663:2;3656:5;3649:17;3705:7;3698:4;3693:2;3689;3685:11;3681:22;3678:35;3675:2;;;3731:6;3723;3716:22;3675:2;3795;3788:4;3784:2;3780:13;3773:4;3766:5;3762:16;3749:49;3818:14;;3834:4;3814:25;3807:41;;;;-1:-1:-1;2961:917:1;;;;-1:-1:-1;2961:917:1;-1:-1:-1;2961:917:1:o;3883:255::-;3950:6;4003:2;3991:9;3982:7;3978:23;3974:32;3971:2;;;4024:6;4016;4009:22;3971:2;4061:9;4055:16;4080:28;4102:5;4080:28;:::i;4143:194::-;4213:6;4266:2;4254:9;4245:7;4241:23;4237:32;4234:2;;;4287:6;4279;4272:22;4234:2;-1:-1:-1;4315:16:1;;4224:113;-1:-1:-1;4224:113:1:o;4514:1062::-;4856:26;4852:31;4843:6;4839:2;4835:15;4831:53;4826:3;4819:66;4915:6;4910:2;4905:3;4901:12;4894:28;4801:3;4953:2;4948:3;4944:12;5002:6;5026:3;5038:170;5052:4;5049:1;5046:11;5038:170;;;5137:13;;-1:-1:-1;;;;;4433:32:1;4421:45;;4498:4;4489:14;;;;5181:17;;;;5072:1;5065:9;5038:170;;;5042:3;;;5239;5234;5230:13;5291:6;5317:3;5329:212;5345:4;5340:3;5337:13;5329:212;;;5410:15;;5396:30;;5449:4;5475:14;;;;5514:17;;;;5369:1;5360:11;5329:212;;;5333:3;;;5566;5561;5557:13;5550:20;;4809:767;;;;;;;:::o;5581:274::-;5710:3;5748:6;5742:13;5764:53;5810:6;5805:3;5798:4;5790:6;5786:17;5764:53;:::i;:::-;5833:16;;;;;5718:137;-1:-1:-1;;5718:137:1:o;6762:375::-;-1:-1:-1;;;;;7020:15:1;;;7002:34;;7072:15;;;;7067:2;7052:18;;7045:43;7119:2;7104:18;;7097:34;;;;6952:2;6937:18;;6919:218::o;7142:664::-;7378:3;7363:19;;7367:9;7459:6;7336:4;7493:220;7507:4;7504:1;7501:11;7493:220;;;7570:13;;-1:-1:-1;;;;;7566:39:1;7554:52;;7629:4;7653:12;;;;7688:15;;;;7602:1;7520:9;7493:220;;;-1:-1:-1;;;7744:2:1;7729:18;;7722:34;;;;7787:3;7772:19;7765:35;7345:461;;-1:-1:-1;7345:461:1:o;7811:661::-;7982:2;8034:21;;;8104:13;;8007:18;;;8126:22;;;7953:4;;7982:2;8205:15;;;;8179:2;8164:18;;;7953:4;8251:195;8265:6;8262:1;8259:13;8251:195;;;8330:13;;-1:-1:-1;;;;;8326:39:1;8314:52;;8421:15;;;;8386:12;;;;8362:1;8280:9;8251:195;;;-1:-1:-1;8463:3:1;;7962:510;-1:-1:-1;;;;;;7962:510:1:o;9072:383::-;9221:2;9210:9;9203:21;9184:4;9253:6;9247:13;9296:6;9291:2;9280:9;9276:18;9269:34;9312:66;9371:6;9366:2;9355:9;9351:18;9346:2;9338:6;9334:15;9312:66;:::i;:::-;9439:2;9418:15;-1:-1:-1;;9414:29:1;9399:45;;;;9446:2;9395:54;;9193:262;-1:-1:-1;;9193:262:1:o;10223:341::-;10425:2;10407:21;;;10464:2;10444:18;;;10437:30;-1:-1:-1;;;10498:2:1;10483:18;;10476:47;10555:2;10540:18;;10397:167::o;10976:347::-;11178:2;11160:21;;;11217:2;11197:18;;;11190:30;11256:25;11251:2;11236:18;;11229:53;11314:2;11299:18;;11150:173::o;11689:337::-;11891:2;11873:21;;;11930:2;11910:18;;;11903:30;-1:-1:-1;;;11964:2:1;11949:18;;11942:43;12017:2;12002:18;;11863:163::o;12031:334::-;12233:2;12215:21;;;12272:2;12252:18;;;12245:30;-1:-1:-1;;;12306:2:1;12291:18;;12284:40;12356:2;12341:18;;12205:160::o;12370:399::-;12572:2;12554:21;;;12611:2;12591:18;;;12584:30;12650:34;12645:2;12630:18;;12623:62;-1:-1:-1;;;12716:2:1;12701:18;;12694:33;12759:3;12744:19;;12544:225::o;13947:347::-;14149:2;14131:21;;;14188:2;14168:18;;;14161:30;14227:25;14222:2;14207:18;;14200:53;14285:2;14270:18;;14121:173::o;14823:275::-;14894:2;14888:9;14959:2;14940:13;;-1:-1:-1;;14936:27:1;14924:40;;14994:18;14979:34;;15015:22;;;14976:62;14973:2;;;15041:18;;:::i;:::-;15077:2;15070:22;14868:230;;-1:-1:-1;14868:230:1:o;15103:128::-;15143:3;15174:1;15170:6;15167:1;15164:13;15161:2;;;15180:18;;:::i;:::-;-1:-1:-1;15216:9:1;;15151:80::o;15236:204::-;15274:3;15310:4;15307:1;15303:12;15342:4;15339:1;15335:12;15377:3;15371:4;15367:14;15362:3;15359:23;15356:2;;;15385:18;;:::i;:::-;15421:13;;15282:158;-1:-1:-1;;;15282:158:1:o;15445:217::-;15485:1;15511;15501:2;;-1:-1:-1;;;15536:31:1;;15590:4;15587:1;15580:15;15618:4;15543:1;15608:15;15501:2;-1:-1:-1;15647:9:1;;15491:171::o;15667:168::-;15707:7;15773:1;15769;15765:6;15761:14;15758:1;15755:21;15750:1;15743:9;15736:17;15732:45;15729:2;;;15780:18;;:::i;:::-;-1:-1:-1;15820:9:1;;15719:116::o;15840:125::-;15880:4;15908:1;15905;15902:8;15899:2;;;15913:18;;:::i;:::-;-1:-1:-1;15950:9:1;;15889:76::o;15970:258::-;16042:1;16052:113;16066:6;16063:1;16060:13;16052:113;;;16142:11;;;16136:18;16123:11;;;16116:39;16088:2;16081:10;16052:113;;;16183:6;16180:1;16177:13;16174:2;;;-1:-1:-1;;16218:1:1;16200:16;;16193:27;16023:205::o;16233:127::-;16294:10;16289:3;16285:20;16282:1;16275:31;16325:4;16322:1;16315:15;16349:4;16346:1;16339:15;16365:127;16426:10;16421:3;16417:20;16414:1;16407:31;16457:4;16454:1;16447:15;16481:4;16478:1;16471:15;16497:131;-1:-1:-1;;;;;16572:31:1;;16562:42;;16552:2;;16618:1;16615;16608:12;16633:118;16719:5;16712:13;16705:21;16698:5;16695:32;16685:2;;16741:1;16738;16731:12
Swarm Source
ipfs://eb7f3e2af42ddeb59f5d915647b508d7dba6956a3f9a802356ea536dfec30bd3
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.