Overview
TokenID
70
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
ZkSamurist
Compiler Version
v0.8.20+commit.a1b79de6
ZkSolc Version
v1.4.1
Contract Source Code (Solidity)
/** *Submitted for verification at era.zksync.network on 2024-06-07 */ // Sources flattened with hardhat v2.22.4 https://hardhat.org // SPDX-License-Identifier: MIT // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // File @openzeppelin/contracts/access/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/proxy/beacon/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeacon { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); } // File @openzeppelin/contracts/interfaces/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.0; /** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */ interface IERC1822Proxiable { /** * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation * address. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. */ function proxiableUUID() external view returns (bytes32); } // File @openzeppelin/contracts/interfaces/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol) pragma solidity ^0.8.0; /** * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC. * * _Available since v4.8.3._ */ interface IERC1967 { /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Emitted when the beacon is changed. */ event BeaconUpgraded(address indexed beacon); } // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._ * _Available since v4.9 for `string`, `bytes`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } } // File @openzeppelin/contracts/proxy/ERC1967/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ */ abstract contract ERC1967Upgrade is IERC1967 { // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal { _upgradeTo(newImplementation); if (data.length > 0 || forceCall) { Address.functionDelegateCall(newImplementation, data); } } /** * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal { // Upgrades from old implementations will perform a rollback test. This test requires the new // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing // this special case will break upgrade paths from old UUPS implementation to new ones. if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) { _setImplementation(newImplementation); } else { try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) { require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID"); } catch { revert("ERC1967Upgrade: new implementation is not UUPS"); } _upgradeToAndCall(newImplementation, data, forceCall); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Returns the current admin. */ function _getAdmin() internal view returns (address) { return StorageSlot.getAddressSlot(_ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { require(newAdmin != address(0), "ERC1967: new admin is the zero address"); StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _changeAdmin(address newAdmin) internal { emit AdminChanged(_getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor. */ bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Returns the current beacon. */ function _getBeacon() internal view returns (address) { return StorageSlot.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(Address.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( Address.isContract(IBeacon(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon; } /** * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). * * Emits a {BeaconUpgraded} event. */ function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0 || forceCall) { Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data); } } } // File @openzeppelin/contracts/proxy/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol) pragma solidity ^0.8.0; /** * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to * be specified by overriding the virtual {_implementation} function. * * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a * different contract through the {_delegate} function. * * The success and return data of the delegated call will be returned back to the caller of the proxy. */ abstract contract Proxy { /** * @dev Delegates the current call to `implementation`. * * This function does not return to its internal call site, it will return directly to the external caller. */ function _delegate(address implementation) internal virtual { assembly { // Copy msg.data. We take full control of memory in this inline assembly // block because it will not return to Solidity code. We overwrite the // Solidity scratch pad at memory position 0. calldatacopy(0, 0, calldatasize()) // Call the implementation. // out and outsize are 0 because we don't know the size yet. let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0) // Copy the returned data. returndatacopy(0, 0, returndatasize()) switch result // delegatecall returns 0 on error. case 0 { revert(0, returndatasize()) } default { return(0, returndatasize()) } } } /** * @dev This is a virtual function that should be overridden so it returns the address to which the fallback function * and {_fallback} should delegate. */ function _implementation() internal view virtual returns (address); /** * @dev Delegates the current call to the address returned by `_implementation()`. * * This function does not return to its internal call site, it will return directly to the external caller. */ function _fallback() internal virtual { _beforeFallback(); _delegate(_implementation()); } /** * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other * function in the contract matches the call data. */ fallback() external payable virtual { _fallback(); } /** * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data * is empty. */ receive() external payable virtual { _fallback(); } /** * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback` * call, or as part of the Solidity `fallback` or `receive` functions. * * If overridden should call `super._beforeFallback()`. */ function _beforeFallback() internal virtual {} } // File @openzeppelin/contracts/proxy/beacon/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (proxy/beacon/BeaconProxy.sol) pragma solidity ^0.8.0; /** * @dev This contract implements a proxy that gets the implementation address for each call from an {UpgradeableBeacon}. * * The beacon address is stored in storage slot `uint256(keccak256('eip1967.proxy.beacon')) - 1`, so that it doesn't * conflict with the storage layout of the implementation behind the proxy. * * _Available since v3.4._ */ contract BeaconProxy is Proxy, ERC1967Upgrade { /** * @dev Initializes the proxy with `beacon`. * * If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon. This * will typically be an encoded function call, and allows initializing the storage of the proxy like a Solidity * constructor. * * Requirements: * * - `beacon` must be a contract with the interface {IBeacon}. */ constructor(address beacon, bytes memory data) payable { _upgradeBeaconToAndCall(beacon, data, false); } /** * @dev Returns the current beacon address. */ function _beacon() internal view virtual returns (address) { return _getBeacon(); } /** * @dev Returns the current implementation address of the associated beacon. */ function _implementation() internal view virtual override returns (address) { return IBeacon(_getBeacon()).implementation(); } /** * @dev Changes the proxy to use a new beacon. Deprecated: see {_upgradeBeaconToAndCall}. * * If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon. * * Requirements: * * - `beacon` must be a contract. * - The implementation returned by `beacon` must be a contract. */ function _setBeacon(address beacon, bytes memory data) internal virtual { _upgradeBeaconToAndCall(beacon, data, false); } } // File @openzeppelin/contracts/proxy/beacon/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/beacon/UpgradeableBeacon.sol) pragma solidity ^0.8.0; /** * @dev This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their * implementation contract, which is where they will delegate all function calls. * * An owner is able to change the implementation the beacon points to, thus upgrading the proxies that use this beacon. */ contract UpgradeableBeacon is IBeacon, Ownable { address private _implementation; /** * @dev Emitted when the implementation returned by the beacon is changed. */ event Upgraded(address indexed implementation); /** * @dev Sets the address of the initial implementation, and the deployer account as the owner who can upgrade the * beacon. */ constructor(address implementation_) { _setImplementation(implementation_); } /** * @dev Returns the current implementation address. */ function implementation() public view virtual override returns (address) { return _implementation; } /** * @dev Upgrades the beacon to a new implementation. * * Emits an {Upgraded} event. * * Requirements: * * - msg.sender must be the owner of the contract. * - `newImplementation` must be a contract. */ function upgradeTo(address newImplementation) public virtual onlyOwner { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Sets the implementation contract address for this beacon * * Requirements: * * - `newImplementation` must be a contract. */ function _setImplementation(address newImplementation) private { require(Address.isContract(newImplementation), "UpgradeableBeacon: implementation is not a contract"); _implementation = newImplementation; } } // File @openzeppelin/contracts/proxy/ERC1967/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (proxy/ERC1967/ERC1967Proxy.sol) pragma solidity ^0.8.0; /** * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an * implementation address that can be changed. This address is stored in storage in the location specified by * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the * implementation behind the proxy. */ contract ERC1967Proxy is Proxy, ERC1967Upgrade { /** * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`. * * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded * function call, and allows initializing the storage of the proxy like a Solidity constructor. */ constructor(address _logic, bytes memory _data) payable { _upgradeToAndCall(_logic, _data, false); } /** * @dev Returns the current implementation address. */ function _implementation() internal view virtual override returns (address impl) { return ERC1967Upgrade._getImplementation(); } } // File @openzeppelin/contracts/proxy/transparent/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (proxy/transparent/TransparentUpgradeableProxy.sol) pragma solidity ^0.8.0; /** * @dev Interface for {TransparentUpgradeableProxy}. In order to implement transparency, {TransparentUpgradeableProxy} * does not implement this interface directly, and some of its functions are implemented by an internal dispatch * mechanism. The compiler is unaware that these functions are implemented by {TransparentUpgradeableProxy} and will not * include them in the ABI so this interface must be used to interact with it. */ interface ITransparentUpgradeableProxy is IERC1967 { function admin() external view returns (address); function implementation() external view returns (address); function changeAdmin(address) external; function upgradeTo(address) external; function upgradeToAndCall(address, bytes memory) external payable; } /** * @dev This contract implements a proxy that is upgradeable by an admin. * * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector * clashing], which can potentially be used in an attack, this contract uses the * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two * things that go hand in hand: * * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if * that call matches one of the admin functions exposed by the proxy itself. * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the * implementation. If the admin tries to call a function on the implementation it will fail with an error that says * "admin cannot fallback to proxy target". * * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing * the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due * to sudden errors when trying to call a function from the proxy implementation. * * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy. * * NOTE: The real interface of this proxy is that defined in `ITransparentUpgradeableProxy`. This contract does not * inherit from that interface, and instead the admin functions are implicitly implemented using a custom dispatch * mechanism in `_fallback`. Consequently, the compiler will not produce an ABI for this contract. This is necessary to * fully implement transparency without decoding reverts caused by selector clashes between the proxy and the * implementation. * * WARNING: It is not recommended to extend this contract to add additional external functions. If you do so, the compiler * will not check that there are no selector conflicts, due to the note above. A selector clash between any new function * and the functions declared in {ITransparentUpgradeableProxy} will be resolved in favor of the new one. This could * render the admin operations inaccessible, which could prevent upgradeability. Transparency may also be compromised. */ contract TransparentUpgradeableProxy is ERC1967Proxy { /** * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}. */ constructor(address _logic, address admin_, bytes memory _data) payable ERC1967Proxy(_logic, _data) { _changeAdmin(admin_); } /** * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin. * * CAUTION: This modifier is deprecated, as it could cause issues if the modified function has arguments, and the * implementation provides a function with the same selector. */ modifier ifAdmin() { if (msg.sender == _getAdmin()) { _; } else { _fallback(); } } /** * @dev If caller is the admin process the call internally, otherwise transparently fallback to the proxy behavior */ function _fallback() internal virtual override { if (msg.sender == _getAdmin()) { bytes memory ret; bytes4 selector = msg.sig; if (selector == ITransparentUpgradeableProxy.upgradeTo.selector) { ret = _dispatchUpgradeTo(); } else if (selector == ITransparentUpgradeableProxy.upgradeToAndCall.selector) { ret = _dispatchUpgradeToAndCall(); } else if (selector == ITransparentUpgradeableProxy.changeAdmin.selector) { ret = _dispatchChangeAdmin(); } else if (selector == ITransparentUpgradeableProxy.admin.selector) { ret = _dispatchAdmin(); } else if (selector == ITransparentUpgradeableProxy.implementation.selector) { ret = _dispatchImplementation(); } else { revert("TransparentUpgradeableProxy: admin cannot fallback to proxy target"); } assembly { return(add(ret, 0x20), mload(ret)) } } else { super._fallback(); } } /** * @dev Returns the current admin. * * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103` */ function _dispatchAdmin() private returns (bytes memory) { _requireZeroValue(); address admin = _getAdmin(); return abi.encode(admin); } /** * @dev Returns the current implementation. * * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc` */ function _dispatchImplementation() private returns (bytes memory) { _requireZeroValue(); address implementation = _implementation(); return abi.encode(implementation); } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _dispatchChangeAdmin() private returns (bytes memory) { _requireZeroValue(); address newAdmin = abi.decode(msg.data[4:], (address)); _changeAdmin(newAdmin); return ""; } /** * @dev Upgrade the implementation of the proxy. */ function _dispatchUpgradeTo() private returns (bytes memory) { _requireZeroValue(); address newImplementation = abi.decode(msg.data[4:], (address)); _upgradeToAndCall(newImplementation, bytes(""), false); return ""; } /** * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the * proxied contract. */ function _dispatchUpgradeToAndCall() private returns (bytes memory) { (address newImplementation, bytes memory data) = abi.decode(msg.data[4:], (address, bytes)); _upgradeToAndCall(newImplementation, data, true); return ""; } /** * @dev Returns the current admin. * * CAUTION: This function is deprecated. Use {ERC1967Upgrade-_getAdmin} instead. */ function _admin() internal view virtual returns (address) { return _getAdmin(); } /** * @dev To keep this contract fully transparent, all `ifAdmin` functions must be payable. This helper is here to * emulate some proxy functions being non-payable while still allowing value to pass through. */ function _requireZeroValue() private { require(msg.value == 0); } } // File @openzeppelin/contracts/proxy/transparent/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.3) (proxy/transparent/ProxyAdmin.sol) pragma solidity ^0.8.0; /** * @dev This is an auxiliary contract meant to be assigned as the admin of a {TransparentUpgradeableProxy}. For an * explanation of why you would want to use this see the documentation for {TransparentUpgradeableProxy}. */ contract ProxyAdmin is Ownable { /** * @dev Returns the current implementation of `proxy`. * * Requirements: * * - This contract must be the admin of `proxy`. */ function getProxyImplementation(ITransparentUpgradeableProxy proxy) public view virtual returns (address) { // We need to manually run the static call since the getter cannot be flagged as view // bytes4(keccak256("implementation()")) == 0x5c60da1b (bool success, bytes memory returndata) = address(proxy).staticcall(hex"5c60da1b"); require(success); return abi.decode(returndata, (address)); } /** * @dev Returns the current admin of `proxy`. * * Requirements: * * - This contract must be the admin of `proxy`. */ function getProxyAdmin(ITransparentUpgradeableProxy proxy) public view virtual returns (address) { // We need to manually run the static call since the getter cannot be flagged as view // bytes4(keccak256("admin()")) == 0xf851a440 (bool success, bytes memory returndata) = address(proxy).staticcall(hex"f851a440"); require(success); return abi.decode(returndata, (address)); } /** * @dev Changes the admin of `proxy` to `newAdmin`. * * Requirements: * * - This contract must be the current admin of `proxy`. */ function changeProxyAdmin(ITransparentUpgradeableProxy proxy, address newAdmin) public virtual onlyOwner { proxy.changeAdmin(newAdmin); } /** * @dev Upgrades `proxy` to `implementation`. See {TransparentUpgradeableProxy-upgradeTo}. * * Requirements: * * - This contract must be the admin of `proxy`. */ function upgrade(ITransparentUpgradeableProxy proxy, address implementation) public virtual onlyOwner { proxy.upgradeTo(implementation); } /** * @dev Upgrades `proxy` to `implementation` and calls a function on the new implementation. See * {TransparentUpgradeableProxy-upgradeToAndCall}. * * Requirements: * * - This contract must be the admin of `proxy`. */ function upgradeAndCall( ITransparentUpgradeableProxy proxy, address implementation, bytes memory data ) public payable virtual onlyOwner { proxy.upgradeToAndCall{value: msg.value}(implementation, data); } } // File @openzeppelin/contracts/utils/introspection/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts/token/ERC721/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File @openzeppelin/contracts/token/ERC721/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File @openzeppelin/contracts/utils/introspection/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/utils/math/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } } // File @openzeppelin/contracts/utils/math/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } } // File @openzeppelin/contracts/token/ERC721/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev See {ERC721-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); if (batchSize > 1) { // Will only trigger during construction. Batch transferring (minting) is not available afterwards. revert("ERC721Enumerable: consecutive transfers not supported"); } uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // File contracts/nft/zkSamurist.sol // Original license: SPDX_License_Identifier: MIT pragma solidity 0.8.20; contract ZkSamurist is ERC721Enumerable, Ownable { using Strings for uint256; // Maximum supply of NFTs uint256 immutable MAX_SUPPLY = 500; // Base URI for token metadata string private baseTokenURI; // Event to log when a token is minted event Minted(address indexed recipient, uint256 indexed tokenId); // Constructor to initialize the contract with name, symbol, and base URI constructor(string memory name, string memory symbol, string memory baseURI) ERC721(name, symbol) { baseTokenURI = baseURI; } // Function to mint a new token // Only the owner can call this function function mint(address to) public onlyOwner { require(totalSupply() < MAX_SUPPLY, "Max supply exceeded"); uint256 tokenId = totalSupply() + 1; _safeMint(to, tokenId); emit Minted(to, tokenId); } // Function to batch mint tokens // Only the owner can call this function function batchMint(address to, uint256 quantity) public onlyOwner { require(totalSupply() + quantity <= MAX_SUPPLY, "Max supply exceeded"); for (uint256 i = 0; i < quantity; i++) { mint(to); } } // Internal function to return the base URI function _baseURI() internal view override returns (string memory) { return baseTokenURI; } // Function to set a new base URI // Only the owner can call this function function setBaseURI(string calldata baseURI) external onlyOwner { baseTokenURI = baseURI; } // Function to get the token URI for a specified token ID // Returns the full URI for the token metadata function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), ".json")) : ""; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
9c4d535b0000000000000000000000000000000000000000000000000000000000000000010004257bdb7e9d88d4407d29b24707fe9a145535d013291753d7fb8e12e5d900000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000a5a6b53616d75726973740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055a4b53414d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b68747470733a2f2f63646e2e7a6b73616d75726973742e636f6d2f0000000000
Deployed Bytecode
0x0003000000000002000e000000000002000200000001035500000000030100190000006003300270000003b20030019d000003b2033001970000000102200190000000380000c13d0000008002000039000000400020043f000000040230008c0000005e0000413d000000000201043b000000e002200270000003bc0420009c000000600000213d000003cb0420009c000000db0000a13d000003cc0420009c000000fc0000213d000003d00420009c000002960000613d000003d10420009c000002a80000613d000003d20120009c0000005e0000c13d0000000001000416000000000101004b0000005e0000c13d00000000010300190ec408ee0000040f000d00000001001d000c00000002001d000e00000003001d000000400100043d000b00000001001d0ec409070000040f0000000b01000029000000000001043500000000010004110000000e020000290ec409e70000040f0ec409ad0000040f0000000d010000290000000c020000290000000e030000290ec40a5d0000040f0000000d010000290000000c020000290000000e030000290000000b040000290ec40ce80000040f0ec409d20000040f000000000100001900000ec50001042e000000a002000039000000400020043f0000000002000416000000000202004b0000005e0000c13d0000001f02300039000003b302200197000000a002200039000000400020043f0000001f0230018f00000005043002720000004d0000613d00000000050000190000000506500210000000000761034f000000000707043b000000a00660003900000000007604350000000105500039000000000645004b000000450000413d000000000502004b0000005c0000613d0000000504400210000000000141034f0000000302200210000000a004400039000000000504043300000000052501cf000000000525022f000000000101043b0000010002200089000000000121022f00000000012101cf000000000151019f0000000000140435000000600130008c000000c20000813d000000000100001900000ec600010430000003bd0420009c000000eb0000a13d000003be0420009c000001420000213d000003c20420009c000002c30000613d000003c30420009c000002d80000613d000003c40220009c0000005e0000c13d0000000002000416000000840430008c0000005e0000413d000000000202004b0000005e0000c13d0000000402100370000000000202043b000e00000002001d000003b90220009c0000005e0000213d0000002402100370000000000202043b000d00000002001d000003b90220009c0000005e0000213d0000004402100370000000000802043b0000006402100370000000000402043b000003b40240009c0000005e0000213d0000002302400039000000000232004b0000005e0000813d0000000405400039000000000251034f000000000202043b000003b40620009c000000d50000213d0000001f06200039000000200700008a000000000676016f0000003f06600039000000000676016f000003ee0760009c000000d50000213d0000008006600039000000400060043f000000800020043f00000000042400190000002404400039000000000334004b0000005e0000213d0000002003500039000000000131034f0000001f0320018f0000000504200272000000a30000613d00000000050000190000000506500210000000000761034f000000000707043b000000a00660003900000000007604350000000105500039000000000645004b0000009b0000413d000000000503004b000000b20000613d0000000504400210000000000141034f0000000303300210000000a004400039000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f0000000000140435000000a001200039000000000001043500000000010004110000000002080019000c00000002001d0ec409e70000040f0ec409ad0000040f0000000e010000290000000d020000290000000c030000290ec40a5d0000040f00000080040000390000000e010000290000000d020000290000000c03000029000000340000013d000000a00400043d000003b40140009c0000005e0000213d0000001f01400039000003b502000041000000000531004b00000000050000190000000005028019000003b501100197000000000601004b0000000002008019000003b50110009c000000000205c019000000000102004b0000005e0000c13d000000a0014000390000000002010433000003b40120009c000001650000a13d000003ff0100004100000000001004350000004101000039000000040010043f000004000100004100000ec600010430000003d30420009c0000023c0000a13d000003d40420009c000002f70000613d000003d50420009c000003000000613d000003d60120009c0000005e0000c13d0000000001000416000000000101004b0000005e0000c13d0000000801000039000000000101041a000000800010043f000003dd0100004100000ec50001042e000003c50420009c0000025f0000a13d000003c60420009c000003260000613d000003c70120009c000003310000613d000003c80120009c0000005e0000c13d0000000001000416000000000101004b0000005e0000c13d0000000a01000039000000000101041a000003b901100197000000800010043f000003dd0100004100000ec50001042e000003cd0420009c0000034b0000613d000003ce0420009c0000036e0000613d000003cf0220009c0000005e0000c13d0000000002000416000000240430008c0000005e0000413d000000000202004b0000005e0000c13d0000000402100370000000000402043b000003b40240009c0000005e0000213d0000002302400039000000000232004b0000005e0000813d0000000405400039000000000251034f000000000202043b000003b40620009c0000005e0000213d00000024044000390000000006420019000000000336004b0000005e0000213d0000000a03000039000000000303041a000003b9033001970000000006000411000000000363004b000003f10000c13d0000000b03000039000000000703041a000000010670019000000001087002700000007f0680018f000000000608c0190000001f0860008c00000000080000190000000108002039000000000787013f0000000107700190000002d20000c13d000000200760008c0000013a0000413d0000001f072000390000000507700270000003df08700041000003df07000041000000200920008c00000000070880190000001f066000390000000506600270000003df06600041000000000867004b0000013a0000813d000000000007041b0000000107700039000000000867004b000001360000413d0000001f0620008c000005a30000a13d000000200500008a00000000065201700000069a0000c13d000003df050000410000000007000019000006a40000013d000003bf0420009c000003800000613d000003c00420009c000003ae0000613d000003c10220009c0000005e0000c13d0000000002000416000000240330008c0000005e0000413d000000000202004b0000005e0000c13d0000000401100370000000000601043b000003b90160009c0000005e0000213d0000000a01000039000000000201041a000003b9032001970000000005000411000000000353004b000003f10000c13d000000000306004b000004640000c13d000003d901000041000000800010043f0000002001000039000000840010043f0000002601000039000000a40010043f000003da01000041000000c40010043f000003db01000041000000e40010043f000003dc0100004100000ec6000104300000001f01200039000000200700008a000000000171016f0000003f01100039000000000171016f000000400800043d0000000005180019000000000185004b00000000010000190000000101004039000003b40650009c000000d50000213d0000000101100190000000d50000c13d000c00000007001d000000a001300039000000400050043f000e00000008001d0000000005280436000d00000005001d000000c0044000390000000005420019000000000515004b0000005e0000213d000000000502004b0000000d08000029000001880000613d000000000500001900000000065800190000000007450019000000000707043300000000007604350000002005500039000000000625004b000001810000413d0000000e0220002900000020022000390000000000020435000000c00400043d000003b40240009c0000005e0000213d0000001f02400039000003b505000041000000000632004b00000000060000190000000006058019000003b502200197000000000702004b0000000005008019000003b50220009c000000000506c019000000000205004b0000005e0000c13d000000a0024000390000000002020433000003b40520009c0000000c06000029000000d50000213d0000001f05200039000000000565016f0000003f05500039000000000565016f000000400800043d0000000005580019000000000685004b00000000060000190000000106004039000003b40750009c000000d50000213d0000000106600190000000d50000c13d000000400050043f000b00000008001d0000000005280436000a00000005001d000000c0044000390000000005420019000000000515004b0000005e0000213d000000000502004b0000000a08000029000001bf0000613d000000000500001900000000065800190000000007450019000000000707043300000000007604350000002005500039000000000625004b000001b80000413d0000000b0220002900000020022000390000000000020435000000e00400043d000003b40240009c0000005e0000213d0000001f02400039000003b505000041000000000332004b00000000030000190000000003058019000003b502200197000000000602004b0000000005008019000003b50220009c000000000503c019000000000205004b0000005e0000c13d000000a0024000390000000002020433000003b40320009c0000000c05000029000000d50000213d0000001f03200039000000000353016f0000003f03300039000000000353016f000000400700043d0000000003370019000000000573004b00000000050000190000000105004039000003b40630009c000000d50000213d0000000105500190000000d50000c13d000000400030043f000900000007001d0000000003270436000800000003001d000000c0034000390000000004320019000000000114004b0000005e0000213d000000000102004b0000000806000029000001f60000613d000000000100001900000000041600190000000005310019000000000505043300000000005404350000002001100039000000000421004b000001ef0000413d0000000901200029000000200110003900000000000104350000000e010000290000000001010433000700000001001d000003b40110009c000000d50000213d000000000100041a000000010210019000000001011002700000007f0310018f000000000301c019000600000003001d0000001f0130008c00000000010000190000000101002039000000000112004b000002d20000c13d0000000601000029000000200110008c000002280000413d0000000000000435000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003b6011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d00000007030000290000001f023000390000000502200270000000200330008c0000000002004019000000000301043b00000006010000290000001f01100039000000050110027000000000011300190000000002230019000000000312004b000002280000813d000000000002041b0000000102200039000000000312004b000002240000413d00000007010000290000001f0110008c000007a40000a13d0000000000000435000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003b6011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d00000007030000290000000c03300180000000000101043b000007b20000c13d0000002002000039000007bd0000013d000003d70420009c000003d00000613d000003d80120009c0000005e0000c13d0000000001000416000000000101004b0000005e0000c13d000000000200041a000000010320019000000001042002700000007f0140018f000000000104c0190000001f0410008c00000000040000190000000104002039000000000442013f0000000104400190000002d20000c13d000000800010043f000000000303004b000004100000613d0000000000000435000000000201004b000004620000613d0000040c0200004100000000040000190000000003040019000000000402041a000000a005300039000000000045043500000001022000390000002004300039000000000514004b000002560000413d000004e30000013d000003c90420009c000003e10000613d000003ca0220009c0000005e0000c13d0000000002000416000000240330008c0000005e0000413d000000000202004b0000005e0000c13d0000000401100370000000000101043b000e00000001001d000003b90110009c0000005e0000213d0000000a01000039000000000101041a000003b9011001970000000002000411000000000121004b000003f10000c13d0000000801000039000000000101041a000d00000001001d000003f4010000410000000000100439000000000100041200000004001004430000002400000443000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003f5011001c700008005020000390ec40ebf0000040f0000000102200190000004d80000613d000000000101043b0000000d03000029000000000113004b000004c60000813d000000400200043d000003ea0120009c000000d50000213d0000002001200039000000400010043f000c00000002001d00000000000204350000000e0100006b000005b00000c13d000000400100043d0000004402100039000003f8030000410000079c0000013d0000000001000416000000000101004b0000005e0000c13d00000000010300190ec408ee0000040f000e00000001001d000d00000002001d0000000002030019000c00000002001d00000000010004110ec409e70000040f0ec409ad0000040f0000000e010000290000000d020000290000000c030000290ec40a5d0000040f000000000100001900000ec50001042e0000000002000416000000440330008c0000005e0000413d000000000202004b0000005e0000c13d0000000402100370000000000202043b000e00000002001d000003b90220009c0000005e0000213d0000002401100370000000000201043b0000000e03000029000000000103004b000004170000c13d000003d901000041000000800010043f0000002001000039000000840010043f0000002901000039000000a40010043f0000040401000041000000c40010043f0000040501000041000000e40010043f000003dc0100004100000ec6000104300000000001000416000000000101004b0000005e0000c13d0000000103000039000000000203041a000000010520019000000001012002700000007f0410018f00000000010460190000001f0610008c00000000060000190000000106002039000000000662013f0000000106600190000003fa0000613d000003ff0100004100000000001004350000002201000039000000040010043f000004000100004100000ec6000104300000000002000416000000440330008c0000005e0000413d000000000202004b0000005e0000c13d0000000402100370000000000202043b000e00000002001d000003b90220009c0000005e0000213d0000002401100370000000000201043b000000000102004b0000000001000019000000010100c039000d00000002001d000000000112004b0000005e0000c13d00000000020004110000000e0120006c000004710000c13d000003d901000041000000800010043f0000002001000039000000840010043f0000001901000039000000a40010043f000003f001000041000000c40010043f000003f10100004100000ec6000104300000000002000416000000240330008c0000005e0000413d000000000202004b0000005e0000c13d0000000401100370000000000101043b0ec409740000040f000003e90000013d0000000002000416000000440330008c0000005e0000413d000000000202004b0000005e0000c13d0000000402100370000000000202043b000e00000002001d000003b90220009c0000005e0000213d0000002401100370000000000101043b000d00000001001d00000000001004350000000201000039000c00000001001d000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b000000000101041a000003b901100198000004a50000c13d000000400100043d00000044021000390000040b03000041000000000032043500000024021000390000001803000039000004cc0000013d0000000002000416000000240330008c0000005e0000413d000000000202004b0000005e0000c13d0000000401100370000000000101043b000003b90210009c0000005e0000213d0ec409250000040f000003e90000013d0000000001000416000000000101004b0000005e0000c13d0000000a01000039000000000201041a000003b9032001970000000005000411000000000353004b000003f10000c13d000003b702200197000000000021041b000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003b8011001c70000800d020000390000000303000039000003ba0400004100000000060000190ec40eba0000040f00000001012001900000005e0000613d000000000100001900000ec50001042e0000000002000416000000440330008c0000005e0000413d000000000202004b0000005e0000c13d0000000402100370000000000202043b000d00000002001d000003b90220009c0000005e0000213d0000002401100370000000000201043b0000000a01000039000500000001001d000000000101041a000003b9011001970000000003000411000400000003001d000000000131004b000003f10000c13d0000000801000039000c00000001001d000000000101041a0000000003210019000000000113004b00000000010000190000000101004039000000010110008c000004b10000c13d000003ff0100004100000000001004350000001101000039000000040010043f000004000100004100000ec6000104300000000002000416000000240330008c0000005e0000413d000000000202004b0000005e0000c13d0000000401100370000000000101043b0000000802000039000000000202041a000000000221004b000004040000813d0ec40dd10000040f0000000302200210000000000101041a000000000121022f000000ff0220008c0000000001002019000003e90000013d0000000002000416000000240330008c0000005e0000413d000000000202004b0000005e0000c13d0000000401100370000000000101043b000e00000001001d00000000001004350000000201000039000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000400200043d000000000101043b000000000101041a000003b901100198000004390000c13d0000006401200039000003eb0300004100000000003104350000004401200039000003ec03000041000000000031043500000024012000390000002f030000390000000000310435000003d9010000410000000000120435000000040120003900000020030000390000000000310435000003b201000041000003b20320009c00000000020180190000004001200210000003ed011001c700000ec6000104300000000002000416000000440330008c0000005e0000413d000000000202004b0000005e0000c13d0000000402100370000000000202043b000003b90320009c0000005e0000213d0000002401100370000000000101043b000e00000001001d000003b90110009c0000005e0000213d00000000002004350000000501000039000000200010043f0000004002000039000d00000002001d00000000010000190ec40ea40000040f0000000e020000290000000000200435000000200010043f00000000010000190000000d020000290ec40ea40000040f000000000101041a000000ff011001900000000001000019000000010100c039000000800010043f000003dd0100004100000ec50001042e0000000002000416000000240330008c0000005e0000413d000000000202004b0000005e0000c13d0000000401100370000000000201043b0000040d012001980000005e0000c13d00000001010000390000040e0320009c000004570000213d000004110320009c000000f90000613d000004120220009c000000f90000613d0000045b0000013d0000000002000416000000240330008c0000005e0000413d000000000202004b0000005e0000c13d0000000401100370000000000101043b0ec4094e0000040f000000400200043d0000000000120435000003b201000041000003b20320009c00000000020180190000004001200210000003f3011001c700000ec50001042e000003d901000041000000800010043f0000002001000039000000840010043f000000a40010043f000003fc01000041000000c40010043f000003f10100004100000ec600010430000000800010043f000000000505004b0000045f0000c13d000001000100008a000000000112016f000000a00010043f000000000104004b000000c001000039000000a001006039000004e40000013d000003d901000041000000800010043f0000002001000039000000840010043f0000002c01000039000000a40010043f000003fa01000041000000c40010043f000003fb01000041000000e40010043f000003dc0100004100000ec600010430000001000300008a000000000232016f000000a00020043f000000000101004b000000c001000039000000a001006039000004e40000013d000d00000002001d00000000003004350000000301000039000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b000000000101041a0000000d0110006b000004f90000813d0000000e0100002900000000001004350000000601000039000000200010043f0000004002000039000e00000002001d00000000010000190ec40ea40000040f0000000d020000290000000000200435000000200010043f00000000010000190000000e020000290ec40ea40000040f000000000101041a000003e90000013d0000000b05000039000000000405041a000000010640019000000001034002700000007f0130018f000000000103c0190000001f0310008c00000000030000190000000103002039000000000334013f0000000103300190000002d20000c13d0000000003120436000000000606004b0000050e0000613d0000000000500435000000000401004b00000000040000190000000e08000029000005150000613d000003df0500004100000000040000190000000006340019000000000705041a000000000076043500000001055000390000002004400039000000000614004b0000044f0000413d000005150000013d0000040f0320009c000000f90000613d000004100220009c000000f90000613d0000000001000019000000800010043f000003dd0100004100000ec50001042e0000000000300435000000020220008c000004d90000813d000000a001000039000004e40000013d000003b702200197000000000262019f000000000021041b000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003b8011001c70000800d020000390000000303000039000003ba04000041000003460000013d000c00000002001d00000000002004350000000501000039000000200010043f000003b2030000410000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b0000000e020000290000000000200435000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b000000000201041a000001000300008a000000000232016f0000000d03000029000000000232019f000000000021041b000000400100043d0000000000310435000003b2020000410000000003000414000003b20430009c0000000003028019000003b20410009c00000000010280190000004001100210000000c002300210000000000112019f000003b6011001c70000800d020000390000000303000039000003ef040000410000000c050000290000000e06000029000003460000013d0000000e0210006b0000052b0000c13d000000400100043d00000064021000390000040903000041000000000032043500000044021000390000040a03000041000000000032043500000024021000390000002103000039000005020000013d000e00000003001d000300000002001d000003f4010000410000000000100439000000000100041200000004001004430000002400000443000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003f5011001c700008005020000390ec40ebf0000040f0000000102200190000004d80000613d000000000101043b000200000001001d0000000e0110006b000005610000a13d000000400100043d000000440210003900000401030000410000000000320435000000240210003900000013030000390000000000320435000003d9020000410000000000210435000000040210003900000020030000390000000000320435000003b202000041000003b20310009c00000000010280190000004001100210000003f9011001c700000ec600010430000000000001042f000003f20200004100000000040000190000000003040019000000000402041a000000a005300039000000000045043500000001022000390000002004300039000000000514004b000004db0000413d000000c001300039000000800210008a0000008001000039000e00000001001d0ec409120000040f0000002001000039000000400200043d000d00000002001d00000000021204360000000e010000290ec408db0000040f0000000d040000290000000001410049000003b202000041000003b20310009c0000000001028019000003b20340009c000000000402801900000040024002100000006001100210000000000121019f00000ec50001042e000000400100043d00000064021000390000040203000041000000000032043500000044021000390000040303000041000000000032043500000024021000390000002b030000390000000000320435000003d9020000410000000000210435000000040210003900000020030000390000000000320435000003b202000041000003b20310009c00000000010280190000004001100210000003ed011001c700000ec600010430000001000500008a000000000454016f0000000000430435000000000101004b000000200400003900000000040060190000000e080000290000003f01400039000000200400008a000000000541016f0000000001250019000000000551004b00000000050000190000000105004039000003b40610009c000000d50000213d0000000105500190000000d50000c13d000000400010043f0000000005020433000000000505004b000005750000c13d000003ea0210009c000000d50000213d0000002002100039000000400020043f0000000000010435000000400300043d000006940000013d0000000003000411000000000213004b0000057a0000c13d0000000d0100002900000000001004350000000401000039000000200010043f000003b2030000410000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b000000000201041a000003b7022001970000000e022001af000000000021041b0000000d0100002900000000001004350000000c01000029000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b000000000101041a000003b9051001980000031f0000613d000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003b8011001c70000800d02000039000000040300003900000408040000410000000e060000290000000d070000290ec40eba0000040f00000001012001900000005e0000613d000003490000013d000000030100006b000003490000613d0000000d0100006b000006b60000c13d0000000501000029000000000101041a000003b901100197000000040110006c000007990000c13d0000000c01000029000000000101041a000000020110006c000004c60000813d000000400100043d000003ea0210009c000000d50000213d0000002002100039000000400020043f0000000000010435000002920000013d000003e00580009c000006230000413d0000004005000039000003e07680012a0000062d0000013d000b00000003001d00000000001004350000000501000039000000200010043f000003b2030000410000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b0000000b020000290000000000200435000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b000000000101041a000000ff011001900000052e0000c13d000000400100043d00000064021000390000040603000041000000000032043500000044021000390000040703000041000000000032043500000024021000390000003d03000039000005020000013d000000000402004b0000000004000019000005a90000613d0000002004500039000000000141034f000000000401043b0000000301200210000000010500008a000000000115022f000000000151013f000000000414016f0000000101200210000006b20000013d0000000101300039000d00000001001d00000000001004350000000201000039000b00000001001d000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b000000000101041a000003b901100198000007920000c13d0000000e010000290000000d020000290ec40ddf0000040f0000000d0100002900000000001004350000000b01000029000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b000000000101041a000003b901100198000007920000c13d0000000e0100002900000000001004350000000301000039000000200010043f000003b2030000410000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b000000000201041a0000000102200039000000000021041b0000000d0100002900000000001004350000000b01000029000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b000000000201041a000003b7022001970000000e06000029000000000262019f000000000021041b000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003b8011001c70000800d020000390000000403000039000003f60400004100000000050000190000000d070000290ec40eba0000040f00000001012001900000005e0000613d0000000e010000290000000d020000290000000c030000290ec40c020000040f000000000101004b000008230000c13d000000400200043d000e00000002001d000003d901000041000000000012043500000004012000390ec409c50000040f0000000e040000290000000001410049000003b202000041000003b20310009c0000000001028019000003b20340009c000000000402801900000040024002100000006001100210000000000121019f00000ec600010430000003e15680012a000003e20580009c000000000608a019000003e20580009c00000000050000190000002005002039000003e30760009c00000010055081bf000003e406608197000003e37660812a000003e50760009c0000000805508039000003b406608197000003e57660812a000027100760008c0000000405508039000003b206608197000027107660811a000000640760008c00000002055080390000ffff0660818f000000647660811a000000090660008c0000000105502039000000000745016f0000005f06700039000000000646016f0000000006160019000003b40860009c000000d50000213d000000400060043f0000000106500039000000000661043600000020087000390000001f0780018f0000000508800272000006530000613d00000000090000310000000209900367000000000a000019000000050ba00210000000000cb60019000000000bb9034f000000000b0b043b0000000000bc0435000000010aa00039000000000b8a004b0000064b0000413d000000000707004b000006550000613d000000000551001900000021055000390000000e0a0000290000000908a0008c0000000a8aa0011a0000000308800210000003e60880021f000003e708800197000000010550008a0000000009050433000003e809900197000000000898019f0000000000850435000006580000213d000000400500043d00000020075000390000000002020433000000000802004b000006700000613d00000000080000190000000009780019000000000a380019000000000a0a04330000000000a904350000002008800039000000000928004b000006690000413d00000000037200190000000000030435000000000252001900000020032000390000000001010433000000000701004b0000067f0000613d000000000700001900000000083700190000000009670019000000000909043300000000009804350000002007700039000000000817004b000006780000413d0000000003310019000000000003043500000000012100190000002002100039000003e90300004100000000003204350000000001510049000000050210003900000000002504350000004401100039000000000141016f0000000003510019000000000113004b00000000010000190000000101004039000003b40230009c000000d50000213d0000000101100190000000d50000c13d000000400030043f0000000001050019000e00000003001d000000200200003900000000022304360ec408db0000040f0000000e04000029000004ef0000013d000003df0500004100000000070000190000000008470019000000000881034f000000000808043b000000000085041b00000001055000390000002007700039000000000867004b0000069c0000413d000000000626004b000006b00000813d0000000306200210000000f80660018f000000010800008a000000000668022f000000000686013f0000000004470019000000000141034f000000000101043b000000000161016f000000000015041b00000001010000390000000104200210000000000114019f000000000013041b000000000100001900000ec50001042e000b00020000003d000880100000003d000100090000003d000700000000001d0000000501000029000000000101041a000003b901100197000000040110006c000007990000c13d0000000c01000029000000000101041a000000020210006c000003b203000041000004c60000813d000000400200043d000a00000002001d000003ea0220009c000000d50000213d00000001021000390000000a040000290000002001400039000000400010043f0000000000040435000e00000002001d00000000002004350000000b01000029000000200010043f0000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700000008020000290ec40ebf0000040f00000001022001900000005e0000613d000000000101043b000000000101041a000003b901100198000007920000c13d0000000c01000029000000000101041a000900000001001d0000000e0100002900000000001004350000000101000029000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700000008020000290ec40ebf0000040f00000001022001900000005e0000613d000000000101043b0000000904000029000000000041041b000003b40140009c000003b203000041000000d50000213d00000001014000390000000c02000029000000000012041b000003fd014000410000000e02000029000000000021041b0000000d0100002900000000001004350000000301000039000600000001001d000000200010043f0000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b000000000101041a000900000001001d0000000d0100002900000000001004350000000601000039000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b00000009020000290000000000200435000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b0000000e02000029000000000021041b00000000002004350000000701000039000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b0000000902000029000000000021041b0000000e0100002900000000001004350000000b01000029000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b000000000101041a000003b901100198000007920000c13d0000000d0100002900000000001004350000000601000029000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b000000000201041a0000000102200039000000000021041b0000000e0100002900000000001004350000000b01000029000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d000000000101043b000000000201041a000003b7022001970000000d06000029000000000262019f000000000021041b0000000001000414000003b20210009c000003b201008041000000c001100210000003b8011001c70000800d020000390000000403000039000003f60400004100000000050000190000000e070000290ec40eba0000040f00000001012001900000005e0000613d0000000d010000290000000e020000290000000a030000290ec40c020000040f000000000101004b000006120000613d0000000001000414000003b20210009c000003b201008041000000c001100210000003b8011001c70000800d020000390000000303000039000003f7040000410000000d050000290000000e060000290ec40eba0000040f00000001012001900000005e0000613d00000007020000290000000102200039000700000002001d000000030120006c000006ba0000413d000003490000013d000000400100043d0000004402100039000003fe03000041000000000032043500000024021000390000001c03000039000004cc0000013d000000400100043d0000004402100039000003fc030000410000000000320435000003d90200004100000000002104350000002402100039000000200300003900000000003204350000000402100039000004d10000013d000000070100006b0000000001000019000007a90000613d0000000d01000029000000000101043300000007040000290000000302400210000000010300008a000000000223022f000000000232013f000000000121016f0000000102400210000000000121019f000007cc0000013d000000200200003900000000040000190000000e0600002900000000056200190000000005050433000000000051041b000000200220003900000001011000390000002004400039000000000534004b000007b50000413d000000070330006c000007c90000813d00000007030000290000000303300210000000f80330018f000000010400008a000000000334022f000000000343013f0000000e022000290000000002020433000000000232016f000000000021041b0000000701000029000000010110021000000001011001bf000000000010041b0000000b010000290000000001010433000e00000001001d000003b40110009c000000d50000213d0000000101000039000700000001001d000000000101041a000000010210019000000001021002700000007f0320018f000000000302c019000d00000003001d0000001f0230008c00000000020000190000000102002039000000000121013f0000000101100190000002d20000c13d0000000d01000029000000200110008c000008000000413d00000001010000390000000000100435000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003b6011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d0000000e030000290000001f023000390000000502200270000000200330008c0000000002004019000000000301043b0000000d010000290000001f01100039000000050110027000000000011300190000000002230019000000000312004b000008000000813d000000000002041b0000000102200039000000000312004b000007fc0000413d0000000e010000290000001f0110008c000008150000a13d00000001010000390000000000100435000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003b6011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d0000000e030000290000000c03300180000000000101043b0000082f0000c13d00000020020000390000083a0000013d0000000e0100006b00000000010000190000081a0000613d0000000a0100002900000000010104330000000e040000290000000302400210000000010300008a000000000223022f000000000232013f000000000121016f0000000102400210000000000121019f000008490000013d000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003b8011001c70000800d020000390000000303000039000003f7040000410000000e050000290000000d06000029000003460000013d000000200200003900000000040000190000000b0600002900000000056200190000000005050433000000000051041b000000200220003900000001011000390000002004400039000000000534004b000008320000413d0000000e0330006c000008460000813d0000000e030000290000000303300210000000f80330018f000000010400008a000000000334022f000000000343013f0000000b022000290000000002020433000000000232016f000000000021041b0000000e01000029000000010110021000000001011001bf0000000702000029000000000012041b0000000a01000039000000000201041a000003b7032001970000000006000411000000000363019f000000000031041b000003b2010000410000000003000414000003b20430009c0000000003018019000000c001300210000003b8011001c7000003b9052001970000800d020000390000000303000039000003ba040000410ec40eba0000040f00000001012001900000005e0000613d000001f401000039000000800010043f00000009010000290000000001010433000e00000001001d000003b40110009c000000d50000213d0000000b01000039000d00000001001d000000000101041a000000010210019000000001021002700000007f0320018f000000000302c019000b00000003001d0000001f0230008c00000000020000190000000102002039000000000121013f0000000101100190000002d20000c13d0000000b01000029000000200110008c000008930000413d0000000d010000290000000000100435000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003b6011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d0000000e030000290000001f023000390000000502200270000000200330008c0000000002004019000000000301043b0000000b010000290000001f01100039000000050110027000000000011300190000000002230019000000000312004b000008930000813d000000000002041b0000000102200039000000000312004b0000088f0000413d0000000e010000290000001f0110008c000008a80000a13d0000000d010000290000000000100435000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003b6011001c700008010020000390ec40ebf0000040f00000001022001900000005e0000613d0000000e030000290000000c03300180000000000101043b000008b50000c13d0000002002000039000008c00000013d0000000e0100006b0000000001000019000008ad0000613d000000080100002900000000010104330000000e040000290000000302400210000000010300008a000000000223022f000000000232013f000000000121016f0000000102400210000008cf0000013d00000020020000390000000004000019000000090600002900000000056200190000000005050433000000000051041b000000200220003900000001011000390000002004400039000000000534004b000008b80000413d0000000e0330006c000008cc0000813d0000000e030000290000000303300210000000f80330018f000000010400008a000000000334022f000000000343013f00000009022000290000000002020433000000000232016f000000000021041b0000000e0100002900000001011002100000000702000029000000000121019f0000000d02000029000000000012041b000000800100043d000001400000044300000160001004430000002001000039000001000010044300000007010000290000012000100443000003bb0100004100000ec50001042e00000000430104340000000001320436000000000203004b000008e70000613d000000000200001900000000051200190000000006240019000000000606043300000000006504350000002002200039000000000532004b000008e00000413d000000000213001900000000000204350000001f02300039000000200300008a000000000232016f0000000001210019000000000001042d000003b502000041000000630310008c00000000030000190000000003022019000003b501100197000000000401004b0000000002008019000003b50110009c000000000203c019000000000102004b000009050000613d00000002030003670000000401300370000000000101043b000003b90210009c000009050000213d0000002402300370000000000202043b000003b90420009c000009050000213d0000004403300370000000000303043b000000000001042d000000000100001900000ec600010430000004130210009c0000090c0000813d0000002001100039000000400010043f000000000001042d000003ff0100004100000000001004350000004101000039000000040010043f000004000100004100000ec6000104300000001f02200039000000200300008a000000000232016f0000000001120019000000000221004b00000000020000190000000102004039000003b40310009c0000091f0000213d00000001022001900000091f0000c13d000000400010043f000000000001042d000003ff0100004100000000001004350000004101000039000000040010043f000004000100004100000ec600010430000003b901100198000009370000613d00000000001004350000000301000039000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f00000001022001900000094c0000613d000000000101043b000000000101041a000000000001042d000000400100043d000000640210003900000405030000410000000000320435000000440210003900000404030000410000000000320435000000240210003900000029030000390000000000320435000003d9020000410000000000210435000000040210003900000020030000390000000000320435000003b202000041000003b20310009c00000000010280190000004001100210000003ed011001c700000ec600010430000000000100001900000ec60001043000000000001004350000000201000039000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f0000000102200190000009600000613d000000000101043b000000000101041a000003b901100198000009620000613d000000000001042d000000000100001900000ec600010430000000400100043d00000044021000390000040b030000410000000000320435000000240210003900000018030000390000000000320435000003d9020000410000000000210435000000040210003900000020030000390000000000320435000003b202000041000003b20310009c00000000010280190000004001100210000003f9011001c700000ec6000104300001000000000002000100000001001d00000000001004350000000201000039000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f0000000102200190000009990000613d000000000101043b000000000101041a000003b9011001980000099b0000613d000000010100002900000000001004350000000401000039000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f0000000102200190000009990000613d000000000101043b000000000101041a000003b901100197000000000001042d000000000100001900000ec600010430000000400100043d00000044021000390000040b030000410000000000320435000000240210003900000018030000390000000000320435000003d9020000410000000000210435000000040210003900000020030000390000000000320435000003b202000041000003b20310009c00000000010280190000004001100210000003f9011001c700000ec600010430000000000101004b000009b00000613d000000000001042d000000400100043d00000064021000390000041403000041000000000032043500000044021000390000041503000041000000000032043500000024021000390000002d030000390000000000320435000003d9020000410000000000210435000000040210003900000020030000390000000000320435000003b202000041000003b20310009c00000000010280190000004001100210000003ed011001c700000ec600010430000000600210003900000416030000410000000000320435000000400210003900000417030000410000000000320435000000200210003900000032030000390000000000320435000000200200003900000000002104350000008001100039000000000001042d0001000000000002000000000101004b000009d60000613d000000000001042d000000400200043d000100000002001d000003d901000041000000000012043500000004012000390ec409c50000040f00000001040000290000000001410049000003b202000041000003b20310009c0000000001028019000003b20340009c000000000402801900000040024002100000006001100210000000000121019f00000ec6000104300003000000000002000300000001001d000200000002001d00000000002004350000000201000039000100000001001d000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000a490000613d000000000101043b000000000101041a000003b90110019800000a4b0000613d0000000302000029000003b903200197000000000213004b00000a020000c13d0000000101000039000000000001042d000300000003001d00000000001004350000000501000039000000200010043f000003b2030000410000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000a490000613d000000000101043b00000003020000290000000000200435000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000a490000613d000000000101043b000000000101041a000000ff0110019000000a220000613d000000000001042d000000020100002900000000001004350000000101000029000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000a490000613d000000000101043b000000000101041a000003b90110019800000a4b0000613d000000020100002900000000001004350000000401000039000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000a490000613d000000000101043b000000000101041a000003b901100197000000030110006c00000000010000190000000101006039000000000001042d000000000100001900000ec600010430000000400100043d00000044021000390000040b030000410000000000320435000000240210003900000018030000390000000000320435000003d9020000410000000000210435000000040210003900000020030000390000000000320435000003b202000041000003b20310009c00000000010280190000004001100210000003f9011001c700000ec600010430000a000000000002000800000002001d000900000001001d000a00000003001d00000000003004350000000201000039000700000001001d000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b000000000101041a000003b90210019800000bcb0000613d0000000901000029000003b901100197000000000112004b00000bdd0000c13d0000000801000029000003b90110019800000be70000613d000900000002001d000800000001001d000000000112004b00000b5f0000613d000000090100002900000000001004350000000301000039000400000001001d000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b000000000101041a000600000001001d000000000101004b00000bfc0000613d0000000a0100002900000000001004350000000701000039000500000001001d000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d00000006020000290006000100200092000000000101043b000000000301041a000000060130006c00000af50000613d000300000003001d000000090100002900000000001004350000000601000039000200000001001d000000200010043f000003b2030000410000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b00000006020000290000000000200435000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b000000000101041a000100000001001d000000090100002900000000001004350000000201000029000000200010043f000003b2030000410000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b00000003020000290000000000200435000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b0000000102000029000000000021041b00000000002004350000000501000029000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b0000000302000029000000000021041b0000000a010000290000000000100435000003b2030000410000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b000000000001041b000000090100002900000000001004350000000601000039000300000001001d000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b00000006020000290000000000200435000000200010043f000003b2030000410000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b000000000001041b000000080100002900000000001004350000000401000029000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b000000000101041a000600000001001d000000080100002900000000001004350000000301000029000000200010043f000003b2030000410000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b00000006020000290000000000200435000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b0000000a02000029000000000021041b00000000002004350000000501000029000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b0000000602000029000000000021041b0000000a0100002900000000001004350000000701000029000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b000000000101041a000003b901100198000000090200002900000bcb0000613d000000000121004b00000bdd0000c13d0000000a0100002900000000001004350000000401000039000000200010043f000003b2030000410000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b000000000201041a000003b702200197000000000021041b000000090100002900000000001004350000000301000039000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b000000000201041a000000010220008a000000000021041b00000008010000290000000000100435000003b2030000410000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b000000000201041a0000000102200039000000000021041b0000000a0100002900000000001004350000000701000029000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000bc90000613d000000000101043b000000000201041a000003b7022001970000000806000029000000000262019f000000000021041b000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003b8011001c70000800d020000390000000403000039000003f60400004100000009050000290000000a070000290ec40eba0000040f000000010120019000000bc90000613d000000000001042d000000000100001900000ec600010430000000400100043d00000044021000390000040b030000410000000000320435000000240210003900000018030000390000000000320435000003d9020000410000000000210435000000040210003900000020030000390000000000320435000003b202000041000003b20310009c00000000010280190000004001100210000003f9011001c700000ec600010430000000400100043d0000006402100039000004180300004100000000003204350000004402100039000004190300004100000000003204350000002402100039000000250300003900000bf00000013d000000400100043d00000064021000390000041a03000041000000000032043500000044021000390000041b030000410000000000320435000000240210003900000024030000390000000000320435000003d9020000410000000000210435000000040210003900000020030000390000000000320435000003b202000041000003b20310009c00000000010280190000004001100210000003ed011001c700000ec600010430000003ff0100004100000000001004350000001101000039000000040010043f000004000100004100000ec6000104300005000000000002000200000003001d000100000002001d0000041c020000410000000000200439000300000001001d0000000400100443000003b2010000410000000002000414000003b20320009c0000000002018019000000c0012002100000041d011001c700008002020000390ec40ebf0000040f000000010220019000000c990000613d000000000101043b000000000101004b00000c420000613d000000400a00043d0000006401a00039000000800700003900000000007104350000004401a00039000000010200002900000000002104350000041e0100004100000000001a04350000000401a00039000000000200041100000000002104350000002401a0003900000000000104350000008403a00039000000020100002900000000210104340000000000130435000000a403a00039000000000401004b00000c330000613d000000000400001900000000053400190000000006420019000000000606043300000000006504350000002004400039000000000514004b00000c2c0000413d0000000002310019000000000002043500000000030004140000000302000029000003b902200197000000040420008c00000c440000c13d0000000005000415000000050550008a00000005055002100000000103000031000000200130008c0000000004030019000000200400803900000c800000013d0000000101000039000000000001042d000200000007001d0000001f01100039000000200400008a000000000141016f000003b204000041000003b205a0009c000000000504001900000000050a40190000004005500210000000a401100039000003b20610009c00000000010480190000006001100210000000000151019f000003b20530009c0000000003048019000000c003300210000000000113019f00030000000a001d0ec40eba0000040f000000030a00002900000000030100190000006003300270000003b203300197000000200430008c000000000403001900000020040080390000001f0540018f000000050640027200000c6b0000613d0000000007000019000000050870021000000000098a0019000000000881034f000000000808043b00000000008904350000000107700039000000000867004b00000c630000413d000000000705004b00000c7a0000613d0000000506600210000000000761034f00000000066a00190000000305500210000000000806043300000000085801cf000000000858022f000000000707043b0000010005500089000000000757022f00000000055701cf000000000585019f0000000000560435000100000003001f0000000005000415000000040550008a0000000505500210000000010220019000000c9a0000613d0000001f01400039000000600210018f0000000001a20019000000000221004b00000000020000190000000102004039000003b40410009c00000cd80000213d000000010220019000000cd80000c13d000000400010043f0000001f0130008c00000c970000a13d00000000010a04330000040d0210019800000c970000c13d0000000502500270000000000201001f00000420011001970000041e0110009c00000000010000190000000101006039000000000001042d000000000100001900000ec600010430000000000001042f000000000203004b00000c9e0000c13d000000600200003900000cc90000013d0000001f02300039000003b3022001970000003f022000390000041f04200197000000400200043d0000000004420019000000000524004b00000000050000190000000105004039000003b40640009c00000cd80000213d000000010550019000000cd80000c13d000000400040043f0000001f0430018f0000000008320436000000050330027200000cb90000613d000000000500001900000005065002100000000007680019000000000661034f000000000606043b00000000006704350000000105500039000000000635004b00000cb10000413d000200000008001d000000000504004b00000cc90000613d0000000503300210000000000131034f00000002033000290000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000000001020433000000000201004b00000cde0000c13d000000400200043d000300000002001d000003d901000041000000000012043500000004012000390ec409c50000040f00000003040000290000000001410049000003b202000041000003b20310009c000000000102801900000ce20000013d000003ff0100004100000000001004350000004101000039000000040010043f000004000100004100000ec600010430000003b202000041000003b20310009c00000000010280190000000204000029000003b20340009c000000000402801900000040024002100000006001100210000000000121019f00000ec6000104300006000000000002000300000004001d000200000003001d000100000001001d0000041c010000410000000000100439000400000002001d0000000400200443000003b2010000410000000002000414000003b20320009c0000000002018019000000c0012002100000041d011001c700008002020000390ec40ebf0000040f000000010220019000000d820000613d000000000101043b000000000101004b00000d2b0000613d000000400a00043d0000006401a00039000000800700003900000000007104350000004401a00039000000020200002900000000002104350000000101000029000003b9011001970000002402a0003900000000001204350000041e0100004100000000001a04350000000401a00039000000000200041100000000002104350000008403a00039000000030100002900000000210104340000000000130435000000a403a00039000000000401004b00000d1c0000613d000000000400001900000000053400190000000006420019000000000606043300000000006504350000002004400039000000000514004b00000d150000413d0000000002310019000000000002043500000000030004140000000402000029000003b902200197000000040420008c00000d2d0000c13d0000000005000415000000060550008a00000005055002100000000103000031000000200130008c0000000004030019000000200400803900000d690000013d0000000101000039000000000001042d000300000007001d0000001f01100039000000200400008a000000000141016f000003b204000041000003b205a0009c000000000504001900000000050a40190000004005500210000000a401100039000003b20610009c00000000010480190000006001100210000000000151019f000003b20530009c0000000003048019000000c003300210000000000113019f00040000000a001d0ec40eba0000040f000000040a00002900000000030100190000006003300270000003b203300197000000200430008c000000000403001900000020040080390000001f0540018f000000050640027200000d540000613d0000000007000019000000050870021000000000098a0019000000000881034f000000000808043b00000000008904350000000107700039000000000867004b00000d4c0000413d000000000705004b00000d630000613d0000000506600210000000000761034f00000000066a00190000000305500210000000000806043300000000085801cf000000000858022f000000000707043b0000010005500089000000000757022f00000000055701cf000000000585019f0000000000560435000100000003001f0000000005000415000000050550008a0000000505500210000000010220019000000d830000613d0000001f01400039000000600210018f0000000001a20019000000000221004b00000000020000190000000102004039000003b40410009c00000dc10000213d000000010220019000000dc10000c13d000000400010043f0000001f0130008c00000d800000a13d00000000010a04330000040d0210019800000d800000c13d0000000502500270000000000201001f00000420011001970000041e0110009c00000000010000190000000101006039000000000001042d000000000100001900000ec600010430000000000001042f000000000203004b00000d870000c13d000000600200003900000db20000013d0000001f02300039000003b3022001970000003f022000390000041f04200197000000400200043d0000000004420019000000000524004b00000000050000190000000105004039000003b40640009c00000dc10000213d000000010550019000000dc10000c13d000000400040043f0000001f0430018f0000000008320436000000050330027200000da20000613d000000000500001900000005065002100000000007680019000000000661034f000000000606043b00000000006704350000000105500039000000000635004b00000d9a0000413d000300000008001d000000000504004b00000db20000613d0000000503300210000000000131034f00000003033000290000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000000001020433000000000201004b00000dc70000c13d000000400200043d000400000002001d000003d901000041000000000012043500000004012000390ec409c50000040f00000004040000290000000001410049000003b202000041000003b20310009c000000000102801900000dcb0000013d000003ff0100004100000000001004350000004101000039000000040010043f000004000100004100000ec600010430000003b202000041000003b20310009c00000000010280190000000304000029000003b20340009c000000000402801900000040024002100000006001100210000000000121019f00000ec6000104300000000802000039000000000302041a000000000313004b00000dd90000a13d0000000000200435000003fd011000410000000002000019000000000001042d000003ff0100004100000000001004350000003201000039000000040010043f000004000100004100000ec6000104300005000000000002000200000001001d0000000801000039000400000001001d000000000101041a000300000001001d000500000002001d00000000002004350000000901000039000100000001001d000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000e890000613d000000000101043b0000000302000029000000000021041b000004210120009c00000e8b0000813d00000001012000390000000403000029000000000013041b000003fd012000410000000502000029000000000021041b0000000201000029000003b90110019800000e410000613d000300000001001d00000000001004350000000301000039000000200010043f000003b2030000410000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000e890000613d000000000101043b000000000101041a000400000001001d000000030100002900000000001004350000000601000039000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000e890000613d000000000101043b00000004020000290000000000200435000000200010043f000003b2030000410000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000e890000613d000000000101043b0000000502000029000000000021041b00000000002004350000000701000039000000200010043f0000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000e890000613d000000000101043b0000000402000029000000000021041b000000000001042d000000000103041a000300000001001d000000000101004b00000e910000613d000000050100002900000000001004350000000101000029000000200010043f000003b2010000410000000002000414000003b20320009c0000000002018019000000c001200210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000e890000613d0000000304000029000000010340008a000000000201043b0000000401000029000000000101041a000000000331004b00000e970000a13d000000000202041a000000000121004b00000e970000a13d000200000002001d000003fd012000410000042202400041000000000202041a000000000021041b00000000002004350000000101000029000000200010043f000003b2030000410000000001000414000003b20210009c0000000001038019000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000e890000613d000000000101043b0000000202000029000000000021041b000000050100002900000000001004350000000001000414000003b20210009c000003b201008041000000c001100210000003de011001c700008010020000390ec40ebf0000040f000000010220019000000e890000613d000000000101043b000000000001041b0000000403000029000000000103041a000000000201004b00000e9d0000613d00000000003004350000042202100041000000000002041b000000010110008a000000000013041b000000000001042d000000000100001900000ec600010430000003ff0100004100000000001004350000004101000039000000040010043f000004000100004100000ec600010430000003ff0100004100000000001004350000001101000039000000040010043f000004000100004100000ec600010430000003ff0100004100000000001004350000003201000039000000040010043f000004000100004100000ec600010430000003ff0100004100000000001004350000003101000039000000040010043f000004000100004100000ec600010430000000000001042f000003b203000041000003b20410009c00000000010380190000004001100210000003b20420009c00000000020380190000006002200210000000000112019f0000000002000414000003b20420009c0000000002038019000000c002200210000000000112019f000003b8011001c700008010020000390ec40ebf0000040f000000010220019000000eb80000613d000000000101043b000000000001042d000000000100001900000ec60001043000000ebd002104210000000102000039000000000001042d0000000002000019000000000001042d00000ec2002104230000000102000039000000000001042d0000000002000019000000000001042d00000ec40000043200000ec50001042e00000ec600010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe0000000000000000000000000000000000000000000000000ffffffffffffffff80000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000020000000000000000000000000ffffffffffffffffffffffff00000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffff8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e00000000200000000000000000000000000000080000001000000000000000000000000000000000000000000000000000000000000000000000000006352211d0000000000000000000000000000000000000000000000000000000095d89b4000000000000000000000000000000000000000000000000000000000c87b56dc00000000000000000000000000000000000000000000000000000000c87b56dd00000000000000000000000000000000000000000000000000000000e985e9c500000000000000000000000000000000000000000000000000000000f2fde38b0000000000000000000000000000000000000000000000000000000095d89b4100000000000000000000000000000000000000000000000000000000a22cb46500000000000000000000000000000000000000000000000000000000b88d4fde0000000000000000000000000000000000000000000000000000000070a082300000000000000000000000000000000000000000000000000000000070a0823100000000000000000000000000000000000000000000000000000000715018a6000000000000000000000000000000000000000000000000000000008da5cb5b000000000000000000000000000000000000000000000000000000006352211e000000000000000000000000000000000000000000000000000000006a6278420000000000000000000000000000000000000000000000000000000023b872dc0000000000000000000000000000000000000000000000000000000043508b040000000000000000000000000000000000000000000000000000000043508b05000000000000000000000000000000000000000000000000000000004f6ccce70000000000000000000000000000000000000000000000000000000055f804b30000000000000000000000000000000000000000000000000000000023b872dd000000000000000000000000000000000000000000000000000000002f745c590000000000000000000000000000000000000000000000000000000042842e0e00000000000000000000000000000000000000000000000000000000081812fb00000000000000000000000000000000000000000000000000000000081812fc00000000000000000000000000000000000000000000000000000000095ea7b30000000000000000000000000000000000000000000000000000000018160ddd0000000000000000000000000000000000000000000000000000000001ffc9a70000000000000000000000000000000000000000000000000000000006fdde0308c379a0000000000000000000000000000000000000000000000000000000004f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084000000800000000000000000000000000000000000000000000000000000002000000080000000000000000002000000000000000000000000000000000000400000000000000000000000000175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90000000000184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000000000000000000000000000000000000000004ee2d6d415b85acef810000000000000000000000000000000000000000000004ee2d6d415b85acef80ffffffff000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000ffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000005f5e10030313233343536373839616263646566000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2e6a736f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffdf6e6578697374656e7420746f6b656e00000000000000000000000000000000004552433732314d657461646174613a2055524920717565727920666f72206e6f0000000000000000000000000000000000000084000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff7f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c314552433732313a20617070726f766520746f2063616c6c6572000000000000000000000000000000000000000000000000000064000000800000000000000000b10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60000000000000000000000000000000000000020000000000000000000000000310ab089e4439a4c15d089f94afb7896ff553aecb10793d0ab882de59d99a32e0200000200000000000000000000000000000044000000000000000000000000ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe4552433732313a206d696e7420746f20746865207a65726f20616464726573730000000000000000000000000000000000000064000000000000000000000000455243373231456e756d657261626c653a20676c6f62616c20696e646578206f7574206f6620626f756e647300000000000000000000000000000000000000004f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572f3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee34552433732313a20746f6b656e20616c7265616479206d696e746564000000004e487b710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000000000000000000000004d617820737570706c792065786365656465640000000000000000000000000074206f6620626f756e6473000000000000000000000000000000000000000000455243373231456e756d657261626c653a206f776e657220696e646578206f754552433732313a2061646472657373207a65726f206973206e6f7420612076616c6964206f776e657200000000000000000000000000000000000000000000006b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000004552433732313a20617070726f76652063616c6c6572206973206e6f7420746f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92572000000000000000000000000000000000000000000000000000000000000004552433732313a20617070726f76616c20746f2063757272656e74206f776e654552433732313a20696e76616c696420746f6b656e2049440000000000000000290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56300000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff780e9d62ffffffffffffffffffffffffffffffffffffffffffffffffffffffff80ac58cd00000000000000000000000000000000000000000000000000000000780e9d630000000000000000000000000000000000000000000000000000000001ffc9a7000000000000000000000000000000000000000000000000000000005b5e139f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffe072206f7220617070726f766564000000000000000000000000000000000000004552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6563656976657220696d706c656d656e74657200000000000000000000000000004552433732313a207472616e7366657220746f206e6f6e2045524337323152656f776e65720000000000000000000000000000000000000000000000000000004552433732313a207472616e736665722066726f6d20696e636f72726563742072657373000000000000000000000000000000000000000000000000000000004552433732313a207472616e7366657220746f20746865207a65726f206164641806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b830200000200000000000000000000000000000024000000000000000000000000150b7a020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003ffffffe0ffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000f3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee200000000000000000000000000000000000000000000000000000000000000002be8d67f8957b2145ca36a750b2f81925da7f0a7b5e48a626a5730250fbbf980
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000a5a6b53616d75726973740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055a4b53414d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b68747470733a2f2f63646e2e7a6b73616d75726973742e636f6d2f0000000000
-----Decoded View---------------
Arg [0] : name (string): ZkSamurist
Arg [1] : symbol (string): ZKSAM
Arg [2] : baseURI (string): https://cdn.zksamurist.com/
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [4] : 5a6b53616d757269737400000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [6] : 5a4b53414d000000000000000000000000000000000000000000000000000000
Arg [7] : 000000000000000000000000000000000000000000000000000000000000001b
Arg [8] : 68747470733a2f2f63646e2e7a6b73616d75726973742e636f6d2f0000000000
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.