Overview
SOPH Balance
0 SOPH
SOPH Value
-More Info
Private Name Tags
ContractCreator
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
17317 | 11 days ago | Contract Creation | 0 SOPH |
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 Source Code Verified (Exact Match)
Contract Name:
GuardianNFT
Compiler Version
v0.8.26+commit.8a97fa7a
ZkSolc Version
v1.5.6
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.8.26; import "contracts/proxies/UpgradeableAccessControl.sol"; import "contracts/tokens/GuardianNFTState.sol"; import "contracts/tokens/delegation/IGuardianDelegation.sol"; import "contracts/common/Rescuable.sol"; /** * @title GuardianNFT * @dev The GuardianNFT contract is an ERC721A-compliant NFT contract with minting and delegation functionalities. * This contract extends from `UpgradeableAccessControl` to manage roles and permissions, and integrates with * the GuardianNFTState to maintain the state variables. It allows for secure batch transfers, minting, and setting of base URI. * * Features: * - Role-based access control (whitelist management, admin control). * - Ability to batch transfer tokens. * - Minting can be enabled/disabled, paused/unpaused by admins. * - Minting amounts are controlled by a whitelist. * - Supports delegating ownership control to an external delegation manager. */ contract GuardianNFT is UpgradeableAccessControl, GuardianNFTState, Rescuable { using SafeERC20 for IERC20; /** * @notice Emitted when the base URI is updated. * @param oldBaseURI The old base URI set for the contract. * @param newBaseURI The new base URI set for the contract. */ event BaseURISet(string oldBaseURI, string newBaseURI); /// @notice Emitted when minting is paused event PauseMinting(); /// @notice Emitted when minting is unpaused event UnpauseMinting(); /// @notice Emitted when minting has started event MintingStarted(); /// @notice Emitted when the delegation manager is set /// @param newDelegationManager The address of the new delegation manager event DelegationManagerSet(address newDelegationManager); /// @notice Emitted when batch minting occurs /// @param minter The address performing the mint /// @param totalQuantity The total quantity minted event BatchMint(address indexed minter, uint256 totalQuantity); /// @notice Emitted when the whitelist is increased /// @param totalAmount The total amount increased event WhitelistIncreased(uint256 totalAmount); /// @notice Emitted when the whitelist is decreased /// @param totalAmount The total amount decreased event WhitelistDecreased(uint256 totalAmount); /// @notice Thrown when the caller is unauthorized error Unauthorized(); /// @notice Thrown when attempting to mint with zero quantity error ZeroQuantity(); /// @notice Thrown when minting is disabled error MintingDisabled(); /// @notice Thrown when minting quantity exceeds the allowed limit /// @param maxAllowed The maximum allowed quantity error QuantityTooHigh(uint256 maxAllowed); /// @notice Thrown when minting has already started error MintingAlreadyStarted(); /// @notice Thrown when minting has not started yet error MintingNotStarted(); /// @notice Thrown when minting is paused error MintingPaused(); /// @notice Thrown when minting is already unpaused error MintingUnpaused(); /// @notice Thrown when count mismatch occurs in arrays error CountMismatch(); /// @notice Thrown when the decrease in whitelist count is too high /// @param user The address of the user /// @param maxDecrease The maximum allowed decrease error DecreaseTooHigh(address user, uint256 maxDecrease); /// @notice Thrown when the contract is set as the receiver error ContractIsReceiver(); /// @notice Thrown when token transfers are not allowed error TransferNotAllowed(); /// @notice Thrown when the transfer is locked due to delegation error LockedForDelegation(); /// @notice Error thrown when ether is sent error EtherSent(); /// @notice Role constant for whitelist manager bytes32 public constant WHITELIST_MANAGER_ROLE = keccak256("WHITELIST_MANAGER_ROLE"); /// @notice The transfer lock period uint256 private constant TRANSFER_LOCK_PERIOD = 365 days; /** * @notice Contract constructor, initializes the ERC721A token */ constructor() ERC721A(name(), symbol()) {} function _requireRescuerRole() onlyRole(DEFAULT_ADMIN_ROLE) internal view override { // Empty function body } /** * @notice Checks if the contract supports a specific interface * @param interfaceId The interface identifier * @return True if the contract supports the interface, false otherwise */ function supportsInterface(bytes4 interfaceId) public view override(UpgradeableAccessControl, ERC721A, IERC721A) returns (bool) { return super.supportsInterface(interfaceId); } /** * @notice Returns the name of the token * @return The token name */ function name() public pure override(ERC721A, IERC721A) returns (string memory) { return "Sophon Guardian Membership"; } /** * @notice Returns the symbol of the token * @return The token symbol */ function symbol() public pure override(ERC721A, IERC721A) returns (string memory) { return "SophonGuardian"; } /** * @notice Transfers multiple tokens in a single transaction * @param from The address to transfer from * @param to The address to transfer to * @param tokenIds The list of token IDs to transfer */ function batchTransferFrom(address from, address to, uint256[] memory tokenIds) external { for (uint256 i; i < tokenIds.length; i++) { transferFrom(from, to, tokenIds[i]); } } /** * @notice Safely transfers multiple tokens in a single transaction * @param from The address to transfer from * @param to The address to transfer to * @param tokenIds The list of token IDs to transfer */ function safeBatchTransferFrom(address from, address to, uint256[] memory tokenIds) external { safeBatchTransferFrom(from, to, tokenIds, ''); } /** * @notice Safely transfers multiple tokens in a single transaction * @param from The address to transfer from * @param to The address to transfer to * @param tokenIds The list of token IDs to transfer * @param _data Data to pass to the `to` if it's a contract */ function safeBatchTransferFrom(address from, address to, uint256[] memory tokenIds, bytes memory _data) public { uint256 i; for (i = 0; i < tokenIds.length; i++) { transferFrom(from, to, tokenIds[i]); } if (to.code.length != 0) { for (i = 0; i < tokenIds.length; i++) { if (!__checkContractOnERC721Received(from, to, tokenIds[i], _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } } } } /** * @notice Mints a specific quantity of tokens to the receiver * @param receiver The address to receive the minted tokens * @param quantity The quantity of tokens to mint */ function mint(address receiver, uint256 quantity) external { return mint(receiver, quantity, address(0)); } /** * @notice Mints a specific quantity of tokens to the receiver * @param receiver The address to receive the minted tokens * @param quantity The quantity of tokens to mint * @param validatorDelegate The address to delegate to after minting (address(0) for no delegate) */ function mint(address receiver, uint256 quantity, address validatorDelegate) public { if (quantity == 0) revert ZeroQuantity(); if (!mintingEnabled) revert MintingDisabled(); uint256 allowedMints = whitelist[msg.sender]; if (allowedMints < quantity) revert QuantityTooHigh(allowedMints); unchecked { whitelist[msg.sender] = allowedMints - quantity; } mintsOfOwner[msg.sender] += quantity; _mint(receiver, quantity); if (validatorDelegate != address(0)) { address delegationManager_ = delegationManager; if (delegationManager_ != address(0)) { IGuardianDelegation(delegationManager_)._delegateOnMint(receiver, validatorDelegate, quantity); } } } /** * @notice Mints tokens to multiple receivers with varying quantities * @param receivers The list of addresses to receive tokens * @param quantities The list of quantities to mint for each receiver */ function batchMint(address[] memory receivers, uint256[] memory quantities) external { return batchMint(receivers, quantities, address(0)); } /** * @notice Mints tokens to multiple receivers with varying quantities * @param receivers The list of addresses to receive tokens * @param quantities The list of quantities to mint for each receiver * @param validatorDelegate The address to delegate to after minting (address(0) for no delegate) */ function batchMint(address[] memory receivers, uint256[] memory quantities, address validatorDelegate) public { if (receivers.length != quantities.length) revert CountMismatch(); if (!mintingEnabled) revert MintingDisabled(); address delegationManager_; if (validatorDelegate != address(0)) { delegationManager_ = delegationManager; } uint256 totalQuantity; for (uint256 i; i < quantities.length; i++) { if (quantities[i] == 0) revert ZeroQuantity(); totalQuantity += quantities[i]; _mint(receivers[i], quantities[i]); if (delegationManager_ != address(0)) { IGuardianDelegation(delegationManager_)._delegateOnMint(receivers[i], validatorDelegate, quantities[i]); } } uint256 allowedMints = whitelist[msg.sender]; if (allowedMints < totalQuantity) revert QuantityTooHigh(allowedMints); unchecked { whitelist[msg.sender] = allowedMints - totalQuantity; } mintsOfOwner[msg.sender] += totalQuantity; emit BatchMint(msg.sender, totalQuantity); } /** * @notice Sets the base URI for token metadata * @param baseURI_ The new base URI */ function setBaseURI(string memory baseURI_) external onlyRole(DEFAULT_ADMIN_ROLE) { emit BaseURISet(baseURI, baseURI_); baseURI = baseURI_; } /** * @notice Starts the minting process, can only be called once */ function startMinting() external onlyRole(DEFAULT_ADMIN_ROLE) { if (mintingStartTime != 0) revert MintingAlreadyStarted(); mintingStartTime = block.timestamp; mintingEnabled = true; emit MintingStarted(); } /** * @notice Pauses the minting process */ function pauseMinting() external onlyRole(DEFAULT_ADMIN_ROLE) { if (mintingStartTime == 0) revert MintingNotStarted(); if (!mintingEnabled) revert MintingPaused(); mintingEnabled = false; emit PauseMinting(); } /** * @notice Unpauses the minting process */ function unpauseMinting() external onlyRole(DEFAULT_ADMIN_ROLE) { if (mintingStartTime == 0) revert MintingNotStarted(); if (mintingEnabled) revert MintingUnpaused(); mintingEnabled = true; emit UnpauseMinting(); } /** * @notice Increases the whitelist count for multiple users * @param users The list of users to increase counts for * @param addedCounts The amounts to add to each user's whitelist count */ function increaseWhitelist(address[] memory users, uint256[] memory addedCounts) external onlyRole(WHITELIST_MANAGER_ROLE) { if (users.length != addedCounts.length) revert CountMismatch(); uint256 totalIncrease; for (uint256 i; i < users.length; i++) { require(users[i] != address(0), "User address is zero"); whitelist[users[i]] += addedCounts[i]; totalIncrease += addedCounts[i]; } emit WhitelistIncreased(totalIncrease); } /** * @notice Decreases the whitelist count for multiple users * @param users The list of users to decrease counts for * @param subtractedCounts The amounts to subtract from each user's whitelist count */ function decreaseWhitelist(address[] memory users, uint256[] memory subtractedCounts) external onlyRole(WHITELIST_MANAGER_ROLE) { if (users.length != subtractedCounts.length) revert CountMismatch(); uint256 totalDecrease; for (uint256 i; i < users.length; i++) { uint256 currentCount = whitelist[users[i]]; if (currentCount > subtractedCounts[i]) { unchecked { whitelist[users[i]] = currentCount - subtractedCounts[i]; } } else { whitelist[users[i]] = 0; } totalDecrease += subtractedCounts[i]; } emit WhitelistDecreased(totalDecrease); } /** * @notice Sets the address of the delegation manager * @param delegationManager_ The address of the new delegation manager */ function setDelegationManager(address delegationManager_) external onlyRole(DEFAULT_ADMIN_ROLE) { require(delegationManager_ != address(0), "Delegation manager address is zero"); delegationManager = delegationManager_; emit DelegationManagerSet(delegationManager_); } /** * @notice Returns the base URI for token metadata * @return The base URI string */ function _baseURI() internal view virtual override returns (string memory) { return baseURI; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) { if (!_exists(tokenId)) _revert(URIQueryForNonexistentToken.selector); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? baseURI : ''; } /** * @notice Hook that is called before any token transfer * @param from The address of the sender * @param to The address of the receiver * @param startTokenId The first token ID to be transferred * @param quantity The number of tokens to be transferred */ function _beforeTokenTransfers(address from, address to, uint256 startTokenId, uint256 quantity) internal override { if (to == address(this)) revert ContractIsReceiver(); if (from != address(0)) { if (block.timestamp < mintingStartTime + TRANSFER_LOCK_PERIOD && !hasRole(DEFAULT_ADMIN_ROLE, msg.sender)) revert TransferNotAllowed(); if (delegationManager != address(0)) { uint256 delegatedBalance = IGuardianDelegation(delegationManager).balanceOfSent(from); uint256 nftBalance = balanceOf(from); uint256 undelegatedAmount; if (nftBalance > delegatedBalance) { unchecked { undelegatedAmount = nftBalance - delegatedBalance; } } if (quantity > undelegatedAmount) revert QuantityTooHigh(undelegatedAmount); } } } /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function __checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) internal returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { _revert(TransferToNonERC721ReceiverImplementer.selector); } assembly { revert(add(32, reason), mload(reason)) } } } /** * @notice Fallback function that receives Ether when no data is sent. * @dev Reverts when Ether is sent without data. */ receive() external payable { revert EtherSent(); } }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.8.26; import "contracts/access/extensions/AccessControlDefaultAdminRules.sol"; /** * @title UpgradeableAccessControl * @notice This contract extends AccessControlDefaultAdminRules to provide role-based access control with an upgradeable implementation. * @dev Allows the default admin to replace the implementation address with a new one and optionally initialize it. The admin role changes are subject to a delay defined in the constructor. */ contract UpgradeableAccessControl is AccessControlDefaultAdminRules { /// @notice The slot containing the address of the current implementation contract. bytes32 public constant IMPLEMENTATION_SLOT = keccak256("IMPLEMENTATION_SLOT"); /** * @notice Constructs the UpgradeableAccessControl contract. * @dev Initializes the AccessControlDefaultAdminRules with a delay of 3 days and sets the deployer as the initial default admin. */ constructor() AccessControlDefaultAdminRules(3 days, msg.sender) {} /** * @notice Replaces the current implementation with a new one and optionally initializes it. * @dev Can only be called by an account with the DEFAULT_ADMIN_ROLE. If `initData_` is provided, a delegatecall is made to the new implementation with that data. * @param impl_ The address of the new implementation contract. * @param initData_ Optional initialization data to delegatecall to the new implementation. */ function replaceImplementation(address impl_, bytes memory initData_) public onlyRole(DEFAULT_ADMIN_ROLE) { require(impl_ != address(0), "impl_ is zero address"); bytes32 slot = IMPLEMENTATION_SLOT; assembly { sstore(slot, impl_) } if (initData_.length != 0) { (bool success,) = impl_.delegatecall(initData_); require(success, "init failed"); } } /** * @notice Checks if the contract implements an interface. * @dev Overrides supportsInterface from AccessControlDefaultAdminRules. * @param interfaceId The interface identifier, as specified in ERC-165. * @return True if the contract implements `interfaceId`, false otherwise. */ function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlDefaultAdminRules) returns (bool) { return super.supportsInterface(interfaceId); } /** * @notice Returns the current implementation address * @return The current implementation address */ function implementation() public view returns (address) { address implementation_; bytes32 slot = IMPLEMENTATION_SLOT; assembly { implementation_ := sload(slot) } return implementation_; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/extensions/AccessControlDefaultAdminRules.sol) pragma solidity ^0.8.20; import {IAccessControlDefaultAdminRules} from "contracts/access/extensions/IAccessControlDefaultAdminRules.sol"; import {AccessControl, IAccessControl} from "contracts/access/AccessControl.sol"; import {SafeCast} from "contracts/utils/math/SafeCast.sol"; import {Math} from "contracts/utils/math/Math.sol"; import {IERC5313} from "contracts/interfaces/IERC5313.sol"; /** * @dev Extension of {AccessControl} that allows specifying special rules to manage * the `DEFAULT_ADMIN_ROLE` holder, which is a sensitive role with special permissions * over other roles that may potentially have privileged rights in the system. * * If a specific role doesn't have an admin role assigned, the holder of the * `DEFAULT_ADMIN_ROLE` will have the ability to grant it and revoke it. * * This contract implements the following risk mitigations on top of {AccessControl}: * * * Only one account holds the `DEFAULT_ADMIN_ROLE` since deployment until it's potentially renounced. * * Enforces a 2-step process to transfer the `DEFAULT_ADMIN_ROLE` to another account. * * Enforces a configurable delay between the two steps, with the ability to cancel before the transfer is accepted. * * The delay can be changed by scheduling, see {changeDefaultAdminDelay}. * * It is not possible to use another role to manage the `DEFAULT_ADMIN_ROLE`. * * Example usage: * * ```solidity * contract MyToken is AccessControlDefaultAdminRules { * constructor() AccessControlDefaultAdminRules( * 3 days, * msg.sender // Explicit initial `DEFAULT_ADMIN_ROLE` holder * ) {} * } * ``` */ abstract contract AccessControlDefaultAdminRules is IAccessControlDefaultAdminRules, IERC5313, AccessControl { // pending admin pair read/written together frequently address private _pendingDefaultAdmin; uint48 private _pendingDefaultAdminSchedule; // 0 == unset uint48 private _currentDelay; address private _currentDefaultAdmin; // pending delay pair read/written together frequently uint48 private _pendingDelay; uint48 private _pendingDelaySchedule; // 0 == unset /** * @dev Sets the initial values for {defaultAdminDelay} and {defaultAdmin} address. */ constructor(uint48 initialDelay, address initialDefaultAdmin) { if (initialDefaultAdmin == address(0)) { revert AccessControlInvalidDefaultAdmin(address(0)); } _currentDelay = initialDelay; _grantRole(DEFAULT_ADMIN_ROLE, initialDefaultAdmin); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlDefaultAdminRules).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC5313-owner}. */ function owner() public view virtual returns (address) { return defaultAdmin(); } /// /// Override AccessControl role management /// /** * @dev See {AccessControl-grantRole}. Reverts for `DEFAULT_ADMIN_ROLE`. */ function grantRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { if (role == DEFAULT_ADMIN_ROLE) { revert AccessControlEnforcedDefaultAdminRules(); } super.grantRole(role, account); } /** * @dev See {AccessControl-revokeRole}. Reverts for `DEFAULT_ADMIN_ROLE`. */ function revokeRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { if (role == DEFAULT_ADMIN_ROLE) { revert AccessControlEnforcedDefaultAdminRules(); } super.revokeRole(role, account); } /** * @dev See {AccessControl-renounceRole}. * * For the `DEFAULT_ADMIN_ROLE`, it only allows renouncing in two steps by first calling * {beginDefaultAdminTransfer} to the `address(0)`, so it's required that the {pendingDefaultAdmin} schedule * has also passed when calling this function. * * After its execution, it will not be possible to call `onlyRole(DEFAULT_ADMIN_ROLE)` functions. * * NOTE: Renouncing `DEFAULT_ADMIN_ROLE` will leave the contract without a {defaultAdmin}, * thereby disabling any functionality that is only available for it, and the possibility of reassigning a * non-administrated role. */ function renounceRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { if (role == DEFAULT_ADMIN_ROLE && account == defaultAdmin()) { (address newDefaultAdmin, uint48 schedule) = pendingDefaultAdmin(); if (newDefaultAdmin != address(0) || !_isScheduleSet(schedule) || !_hasSchedulePassed(schedule)) { revert AccessControlEnforcedDefaultAdminDelay(schedule); } delete _pendingDefaultAdminSchedule; } super.renounceRole(role, account); } /** * @dev See {AccessControl-_grantRole}. * * For `DEFAULT_ADMIN_ROLE`, it only allows granting if there isn't already a {defaultAdmin} or if the * role has been previously renounced. * * NOTE: Exposing this function through another mechanism may make the `DEFAULT_ADMIN_ROLE` * assignable again. Make sure to guarantee this is the expected behavior in your implementation. */ function _grantRole(bytes32 role, address account) internal virtual override returns (bool) { if (role == DEFAULT_ADMIN_ROLE) { if (defaultAdmin() != address(0)) { revert AccessControlEnforcedDefaultAdminRules(); } _currentDefaultAdmin = account; } return super._grantRole(role, account); } /** * @dev See {AccessControl-_revokeRole}. */ function _revokeRole(bytes32 role, address account) internal virtual override returns (bool) { if (role == DEFAULT_ADMIN_ROLE && account == defaultAdmin()) { delete _currentDefaultAdmin; } return super._revokeRole(role, account); } /** * @dev See {AccessControl-_setRoleAdmin}. Reverts for `DEFAULT_ADMIN_ROLE`. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual override { if (role == DEFAULT_ADMIN_ROLE) { revert AccessControlEnforcedDefaultAdminRules(); } super._setRoleAdmin(role, adminRole); } /// /// AccessControlDefaultAdminRules accessors /// /** * @inheritdoc IAccessControlDefaultAdminRules */ function defaultAdmin() public view virtual returns (address) { return _currentDefaultAdmin; } /** * @inheritdoc IAccessControlDefaultAdminRules */ function pendingDefaultAdmin() public view virtual returns (address newAdmin, uint48 schedule) { return (_pendingDefaultAdmin, _pendingDefaultAdminSchedule); } /** * @inheritdoc IAccessControlDefaultAdminRules */ function defaultAdminDelay() public view virtual returns (uint48) { uint48 schedule = _pendingDelaySchedule; return (_isScheduleSet(schedule) && _hasSchedulePassed(schedule)) ? _pendingDelay : _currentDelay; } /** * @inheritdoc IAccessControlDefaultAdminRules */ function pendingDefaultAdminDelay() public view virtual returns (uint48 newDelay, uint48 schedule) { schedule = _pendingDelaySchedule; return (_isScheduleSet(schedule) && !_hasSchedulePassed(schedule)) ? (_pendingDelay, schedule) : (0, 0); } /** * @inheritdoc IAccessControlDefaultAdminRules */ function defaultAdminDelayIncreaseWait() public view virtual returns (uint48) { return 5 days; } /// /// AccessControlDefaultAdminRules public and internal setters for defaultAdmin/pendingDefaultAdmin /// /** * @inheritdoc IAccessControlDefaultAdminRules */ function beginDefaultAdminTransfer(address newAdmin) public virtual onlyRole(DEFAULT_ADMIN_ROLE) { _beginDefaultAdminTransfer(newAdmin); } /** * @dev See {beginDefaultAdminTransfer}. * * Internal function without access restriction. */ function _beginDefaultAdminTransfer(address newAdmin) internal virtual { uint48 newSchedule = SafeCast.toUint48(block.timestamp) + defaultAdminDelay(); _setPendingDefaultAdmin(newAdmin, newSchedule); emit DefaultAdminTransferScheduled(newAdmin, newSchedule); } /** * @inheritdoc IAccessControlDefaultAdminRules */ function cancelDefaultAdminTransfer() public virtual onlyRole(DEFAULT_ADMIN_ROLE) { _cancelDefaultAdminTransfer(); } /** * @dev See {cancelDefaultAdminTransfer}. * * Internal function without access restriction. */ function _cancelDefaultAdminTransfer() internal virtual { _setPendingDefaultAdmin(address(0), 0); } /** * @inheritdoc IAccessControlDefaultAdminRules */ function acceptDefaultAdminTransfer() public virtual { (address newDefaultAdmin, ) = pendingDefaultAdmin(); if (_msgSender() != newDefaultAdmin) { // Enforce newDefaultAdmin explicit acceptance. revert AccessControlInvalidDefaultAdmin(_msgSender()); } _acceptDefaultAdminTransfer(); } /** * @dev See {acceptDefaultAdminTransfer}. * * Internal function without access restriction. */ function _acceptDefaultAdminTransfer() internal virtual { (address newAdmin, uint48 schedule) = pendingDefaultAdmin(); if (!_isScheduleSet(schedule) || !_hasSchedulePassed(schedule)) { revert AccessControlEnforcedDefaultAdminDelay(schedule); } _revokeRole(DEFAULT_ADMIN_ROLE, defaultAdmin()); _grantRole(DEFAULT_ADMIN_ROLE, newAdmin); delete _pendingDefaultAdmin; delete _pendingDefaultAdminSchedule; } /// /// AccessControlDefaultAdminRules public and internal setters for defaultAdminDelay/pendingDefaultAdminDelay /// /** * @inheritdoc IAccessControlDefaultAdminRules */ function changeDefaultAdminDelay(uint48 newDelay) public virtual onlyRole(DEFAULT_ADMIN_ROLE) { _changeDefaultAdminDelay(newDelay); } /** * @dev See {changeDefaultAdminDelay}. * * Internal function without access restriction. */ function _changeDefaultAdminDelay(uint48 newDelay) internal virtual { uint48 newSchedule = SafeCast.toUint48(block.timestamp) + _delayChangeWait(newDelay); _setPendingDelay(newDelay, newSchedule); emit DefaultAdminDelayChangeScheduled(newDelay, newSchedule); } /** * @inheritdoc IAccessControlDefaultAdminRules */ function rollbackDefaultAdminDelay() public virtual onlyRole(DEFAULT_ADMIN_ROLE) { _rollbackDefaultAdminDelay(); } /** * @dev See {rollbackDefaultAdminDelay}. * * Internal function without access restriction. */ function _rollbackDefaultAdminDelay() internal virtual { _setPendingDelay(0, 0); } /** * @dev Returns the amount of seconds to wait after the `newDelay` will * become the new {defaultAdminDelay}. * * The value returned guarantees that if the delay is reduced, it will go into effect * after a wait that honors the previously set delay. * * See {defaultAdminDelayIncreaseWait}. */ function _delayChangeWait(uint48 newDelay) internal view virtual returns (uint48) { uint48 currentDelay = defaultAdminDelay(); // When increasing the delay, we schedule the delay change to occur after a period of "new delay" has passed, up // to a maximum given by defaultAdminDelayIncreaseWait, by default 5 days. For example, if increasing from 1 day // to 3 days, the new delay will come into effect after 3 days. If increasing from 1 day to 10 days, the new // delay will come into effect after 5 days. The 5 day wait period is intended to be able to fix an error like // using milliseconds instead of seconds. // // When decreasing the delay, we wait the difference between "current delay" and "new delay". This guarantees // that an admin transfer cannot be made faster than "current delay" at the time the delay change is scheduled. // For example, if decreasing from 10 days to 3 days, the new delay will come into effect after 7 days. return newDelay > currentDelay ? uint48(Math.min(newDelay, defaultAdminDelayIncreaseWait())) // no need to safecast, both inputs are uint48 : currentDelay - newDelay; } /// /// Private setters /// /** * @dev Setter of the tuple for pending admin and its schedule. * * May emit a DefaultAdminTransferCanceled event. */ function _setPendingDefaultAdmin(address newAdmin, uint48 newSchedule) private { (, uint48 oldSchedule) = pendingDefaultAdmin(); _pendingDefaultAdmin = newAdmin; _pendingDefaultAdminSchedule = newSchedule; // An `oldSchedule` from `pendingDefaultAdmin()` is only set if it hasn't been accepted. if (_isScheduleSet(oldSchedule)) { // Emit for implicit cancellations when another default admin was scheduled. emit DefaultAdminTransferCanceled(); } } /** * @dev Setter of the tuple for pending delay and its schedule. * * May emit a DefaultAdminDelayChangeCanceled event. */ function _setPendingDelay(uint48 newDelay, uint48 newSchedule) private { uint48 oldSchedule = _pendingDelaySchedule; if (_isScheduleSet(oldSchedule)) { if (_hasSchedulePassed(oldSchedule)) { // Materialize a virtual delay _currentDelay = _pendingDelay; } else { // Emit for implicit cancellations when another delay was scheduled. emit DefaultAdminDelayChangeCanceled(); } } _pendingDelay = newDelay; _pendingDelaySchedule = newSchedule; } /// /// Private helpers /// /** * @dev Defines if an `schedule` is considered set. For consistency purposes. */ function _isScheduleSet(uint48 schedule) private pure returns (bool) { return schedule != 0; } /** * @dev Defines if an `schedule` is considered passed. For consistency purposes. */ function _hasSchedulePassed(uint48 schedule) private view returns (bool) { return schedule < block.timestamp; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/extensions/IAccessControlDefaultAdminRules.sol) pragma solidity ^0.8.20; import {IAccessControl} from "contracts/access/IAccessControl.sol"; /** * @dev External interface of AccessControlDefaultAdminRules declared to support ERC165 detection. */ interface IAccessControlDefaultAdminRules is IAccessControl { /** * @dev The new default admin is not a valid default admin. */ error AccessControlInvalidDefaultAdmin(address defaultAdmin); /** * @dev At least one of the following rules was violated: * * - The `DEFAULT_ADMIN_ROLE` must only be managed by itself. * - The `DEFAULT_ADMIN_ROLE` must only be held by one account at the time. * - Any `DEFAULT_ADMIN_ROLE` transfer must be in two delayed steps. */ error AccessControlEnforcedDefaultAdminRules(); /** * @dev The delay for transferring the default admin delay is enforced and * the operation must wait until `schedule`. * * NOTE: `schedule` can be 0 indicating there's no transfer scheduled. */ error AccessControlEnforcedDefaultAdminDelay(uint48 schedule); /** * @dev Emitted when a {defaultAdmin} transfer is started, setting `newAdmin` as the next * address to become the {defaultAdmin} by calling {acceptDefaultAdminTransfer} only after `acceptSchedule` * passes. */ event DefaultAdminTransferScheduled(address indexed newAdmin, uint48 acceptSchedule); /** * @dev Emitted when a {pendingDefaultAdmin} is reset if it was never accepted, regardless of its schedule. */ event DefaultAdminTransferCanceled(); /** * @dev Emitted when a {defaultAdminDelay} change is started, setting `newDelay` as the next * delay to be applied between default admin transfer after `effectSchedule` has passed. */ event DefaultAdminDelayChangeScheduled(uint48 newDelay, uint48 effectSchedule); /** * @dev Emitted when a {pendingDefaultAdminDelay} is reset if its schedule didn't pass. */ event DefaultAdminDelayChangeCanceled(); /** * @dev Returns the address of the current `DEFAULT_ADMIN_ROLE` holder. */ function defaultAdmin() external view returns (address); /** * @dev Returns a tuple of a `newAdmin` and an accept schedule. * * After the `schedule` passes, the `newAdmin` will be able to accept the {defaultAdmin} role * by calling {acceptDefaultAdminTransfer}, completing the role transfer. * * A zero value only in `acceptSchedule` indicates no pending admin transfer. * * NOTE: A zero address `newAdmin` means that {defaultAdmin} is being renounced. */ function pendingDefaultAdmin() external view returns (address newAdmin, uint48 acceptSchedule); /** * @dev Returns the delay required to schedule the acceptance of a {defaultAdmin} transfer started. * * This delay will be added to the current timestamp when calling {beginDefaultAdminTransfer} to set * the acceptance schedule. * * NOTE: If a delay change has been scheduled, it will take effect as soon as the schedule passes, making this * function returns the new delay. See {changeDefaultAdminDelay}. */ function defaultAdminDelay() external view returns (uint48); /** * @dev Returns a tuple of `newDelay` and an effect schedule. * * After the `schedule` passes, the `newDelay` will get into effect immediately for every * new {defaultAdmin} transfer started with {beginDefaultAdminTransfer}. * * A zero value only in `effectSchedule` indicates no pending delay change. * * NOTE: A zero value only for `newDelay` means that the next {defaultAdminDelay} * will be zero after the effect schedule. */ function pendingDefaultAdminDelay() external view returns (uint48 newDelay, uint48 effectSchedule); /** * @dev Starts a {defaultAdmin} transfer by setting a {pendingDefaultAdmin} scheduled for acceptance * after the current timestamp plus a {defaultAdminDelay}. * * Requirements: * * - Only can be called by the current {defaultAdmin}. * * Emits a DefaultAdminRoleChangeStarted event. */ function beginDefaultAdminTransfer(address newAdmin) external; /** * @dev Cancels a {defaultAdmin} transfer previously started with {beginDefaultAdminTransfer}. * * A {pendingDefaultAdmin} not yet accepted can also be cancelled with this function. * * Requirements: * * - Only can be called by the current {defaultAdmin}. * * May emit a DefaultAdminTransferCanceled event. */ function cancelDefaultAdminTransfer() external; /** * @dev Completes a {defaultAdmin} transfer previously started with {beginDefaultAdminTransfer}. * * After calling the function: * * - `DEFAULT_ADMIN_ROLE` should be granted to the caller. * - `DEFAULT_ADMIN_ROLE` should be revoked from the previous holder. * - {pendingDefaultAdmin} should be reset to zero values. * * Requirements: * * - Only can be called by the {pendingDefaultAdmin}'s `newAdmin`. * - The {pendingDefaultAdmin}'s `acceptSchedule` should've passed. */ function acceptDefaultAdminTransfer() external; /** * @dev Initiates a {defaultAdminDelay} update by setting a {pendingDefaultAdminDelay} scheduled for getting * into effect after the current timestamp plus a {defaultAdminDelay}. * * This function guarantees that any call to {beginDefaultAdminTransfer} done between the timestamp this * method is called and the {pendingDefaultAdminDelay} effect schedule will use the current {defaultAdminDelay} * set before calling. * * The {pendingDefaultAdminDelay}'s effect schedule is defined in a way that waiting until the schedule and then * calling {beginDefaultAdminTransfer} with the new delay will take at least the same as another {defaultAdmin} * complete transfer (including acceptance). * * The schedule is designed for two scenarios: * * - When the delay is changed for a larger one the schedule is `block.timestamp + newDelay` capped by * {defaultAdminDelayIncreaseWait}. * - When the delay is changed for a shorter one, the schedule is `block.timestamp + (current delay - new delay)`. * * A {pendingDefaultAdminDelay} that never got into effect will be canceled in favor of a new scheduled change. * * Requirements: * * - Only can be called by the current {defaultAdmin}. * * Emits a DefaultAdminDelayChangeScheduled event and may emit a DefaultAdminDelayChangeCanceled event. */ function changeDefaultAdminDelay(uint48 newDelay) external; /** * @dev Cancels a scheduled {defaultAdminDelay} change. * * Requirements: * * - Only can be called by the current {defaultAdmin}. * * May emit a DefaultAdminDelayChangeCanceled event. */ function rollbackDefaultAdminDelay() external; /** * @dev Maximum time in seconds for an increase to {defaultAdminDelay} (that is scheduled using {changeDefaultAdminDelay}) * to take effect. Default to 5 days. * * When the {defaultAdminDelay} is scheduled to be increased, it goes into effect after the new delay has passed with * the purpose of giving enough time for reverting any accidental change (i.e. using milliseconds instead of seconds) * that may lock the contract. However, to avoid excessive schedules, the wait is capped by this function and it can * be overrode for a custom {defaultAdminDelay} increase scheduling. * * IMPORTANT: Make sure to add a reasonable amount of time while overriding this value, otherwise, * there's a risk of setting a high new delay that goes into effect almost immediately without the * possibility of human intervention in the case of an input error (eg. set milliseconds instead of seconds). */ function defaultAdminDelayIncreaseWait() external view returns (uint48); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol) pragma solidity ^0.8.20; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev The `account` is missing a role. */ error AccessControlUnauthorizedAccount(address account, bytes32 neededRole); /** * @dev The caller of a function is not the expected one. * * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}. */ error AccessControlBadConfirmation(); /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `callerConfirmation`. */ function renounceRole(bytes32 role, address callerConfirmation) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol) pragma solidity ^0.8.20; import {IAccessControl} from "contracts/access/IAccessControl.sol"; import {Context} from "contracts/utils/Context.sol"; import {ERC165} from "contracts/utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ```solidity * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ```solidity * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address account => bool) hasRole; bytes32 adminRole; } mapping(bytes32 role => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with an {AccessControlUnauthorizedAccount} error including the required role. */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual returns (bool) { return _roles[role].hasRole[account]; } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()` * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier. */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account` * is missing `role`. */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert AccessControlUnauthorizedAccount(account, role); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `callerConfirmation`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address callerConfirmation) public virtual { if (callerConfirmation != _msgSender()) { revert AccessControlBadConfirmation(); } _revokeRole(role, callerConfirmation); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual returns (bool) { if (!hasRole(role, account)) { _roles[role].hasRole[account] = true; emit RoleGranted(role, account, _msgSender()); return true; } else { return false; } } /** * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual returns (bool) { if (hasRole(role, account)) { _roles[role].hasRole[account] = false; emit RoleRevoked(role, account, _msgSender()); return true; } else { return false; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "contracts/utils/introspection/IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SafeCast.sol) // This file was procedurally generated from scripts/generate/templates/SafeCast.js. pragma solidity ^0.8.20; /** * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such an operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeCast { /** * @dev Value doesn't fit in an uint of `bits` size. */ error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value); /** * @dev An int value doesn't fit in an uint of `bits` size. */ error SafeCastOverflowedIntToUint(int256 value); /** * @dev Value doesn't fit in an int of `bits` size. */ error SafeCastOverflowedIntDowncast(uint8 bits, int256 value); /** * @dev An uint value doesn't fit in an int of `bits` size. */ error SafeCastOverflowedUintToInt(uint256 value); /** * @dev Returns the downcasted uint248 from uint256, reverting on * overflow (when the input is greater than largest uint248). * * Counterpart to Solidity's `uint248` operator. * * Requirements: * * - input must fit into 248 bits */ function toUint248(uint256 value) internal pure returns (uint248) { if (value > type(uint248).max) { revert SafeCastOverflowedUintDowncast(248, value); } return uint248(value); } /** * @dev Returns the downcasted uint240 from uint256, reverting on * overflow (when the input is greater than largest uint240). * * Counterpart to Solidity's `uint240` operator. * * Requirements: * * - input must fit into 240 bits */ function toUint240(uint256 value) internal pure returns (uint240) { if (value > type(uint240).max) { revert SafeCastOverflowedUintDowncast(240, value); } return uint240(value); } /** * @dev Returns the downcasted uint232 from uint256, reverting on * overflow (when the input is greater than largest uint232). * * Counterpart to Solidity's `uint232` operator. * * Requirements: * * - input must fit into 232 bits */ function toUint232(uint256 value) internal pure returns (uint232) { if (value > type(uint232).max) { revert SafeCastOverflowedUintDowncast(232, value); } return uint232(value); } /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { if (value > type(uint224).max) { revert SafeCastOverflowedUintDowncast(224, value); } return uint224(value); } /** * @dev Returns the downcasted uint216 from uint256, reverting on * overflow (when the input is greater than largest uint216). * * Counterpart to Solidity's `uint216` operator. * * Requirements: * * - input must fit into 216 bits */ function toUint216(uint256 value) internal pure returns (uint216) { if (value > type(uint216).max) { revert SafeCastOverflowedUintDowncast(216, value); } return uint216(value); } /** * @dev Returns the downcasted uint208 from uint256, reverting on * overflow (when the input is greater than largest uint208). * * Counterpart to Solidity's `uint208` operator. * * Requirements: * * - input must fit into 208 bits */ function toUint208(uint256 value) internal pure returns (uint208) { if (value > type(uint208).max) { revert SafeCastOverflowedUintDowncast(208, value); } return uint208(value); } /** * @dev Returns the downcasted uint200 from uint256, reverting on * overflow (when the input is greater than largest uint200). * * Counterpart to Solidity's `uint200` operator. * * Requirements: * * - input must fit into 200 bits */ function toUint200(uint256 value) internal pure returns (uint200) { if (value > type(uint200).max) { revert SafeCastOverflowedUintDowncast(200, value); } return uint200(value); } /** * @dev Returns the downcasted uint192 from uint256, reverting on * overflow (when the input is greater than largest uint192). * * Counterpart to Solidity's `uint192` operator. * * Requirements: * * - input must fit into 192 bits */ function toUint192(uint256 value) internal pure returns (uint192) { if (value > type(uint192).max) { revert SafeCastOverflowedUintDowncast(192, value); } return uint192(value); } /** * @dev Returns the downcasted uint184 from uint256, reverting on * overflow (when the input is greater than largest uint184). * * Counterpart to Solidity's `uint184` operator. * * Requirements: * * - input must fit into 184 bits */ function toUint184(uint256 value) internal pure returns (uint184) { if (value > type(uint184).max) { revert SafeCastOverflowedUintDowncast(184, value); } return uint184(value); } /** * @dev Returns the downcasted uint176 from uint256, reverting on * overflow (when the input is greater than largest uint176). * * Counterpart to Solidity's `uint176` operator. * * Requirements: * * - input must fit into 176 bits */ function toUint176(uint256 value) internal pure returns (uint176) { if (value > type(uint176).max) { revert SafeCastOverflowedUintDowncast(176, value); } return uint176(value); } /** * @dev Returns the downcasted uint168 from uint256, reverting on * overflow (when the input is greater than largest uint168). * * Counterpart to Solidity's `uint168` operator. * * Requirements: * * - input must fit into 168 bits */ function toUint168(uint256 value) internal pure returns (uint168) { if (value > type(uint168).max) { revert SafeCastOverflowedUintDowncast(168, value); } return uint168(value); } /** * @dev Returns the downcasted uint160 from uint256, reverting on * overflow (when the input is greater than largest uint160). * * Counterpart to Solidity's `uint160` operator. * * Requirements: * * - input must fit into 160 bits */ function toUint160(uint256 value) internal pure returns (uint160) { if (value > type(uint160).max) { revert SafeCastOverflowedUintDowncast(160, value); } return uint160(value); } /** * @dev Returns the downcasted uint152 from uint256, reverting on * overflow (when the input is greater than largest uint152). * * Counterpart to Solidity's `uint152` operator. * * Requirements: * * - input must fit into 152 bits */ function toUint152(uint256 value) internal pure returns (uint152) { if (value > type(uint152).max) { revert SafeCastOverflowedUintDowncast(152, value); } return uint152(value); } /** * @dev Returns the downcasted uint144 from uint256, reverting on * overflow (when the input is greater than largest uint144). * * Counterpart to Solidity's `uint144` operator. * * Requirements: * * - input must fit into 144 bits */ function toUint144(uint256 value) internal pure returns (uint144) { if (value > type(uint144).max) { revert SafeCastOverflowedUintDowncast(144, value); } return uint144(value); } /** * @dev Returns the downcasted uint136 from uint256, reverting on * overflow (when the input is greater than largest uint136). * * Counterpart to Solidity's `uint136` operator. * * Requirements: * * - input must fit into 136 bits */ function toUint136(uint256 value) internal pure returns (uint136) { if (value > type(uint136).max) { revert SafeCastOverflowedUintDowncast(136, value); } return uint136(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { if (value > type(uint128).max) { revert SafeCastOverflowedUintDowncast(128, value); } return uint128(value); } /** * @dev Returns the downcasted uint120 from uint256, reverting on * overflow (when the input is greater than largest uint120). * * Counterpart to Solidity's `uint120` operator. * * Requirements: * * - input must fit into 120 bits */ function toUint120(uint256 value) internal pure returns (uint120) { if (value > type(uint120).max) { revert SafeCastOverflowedUintDowncast(120, value); } return uint120(value); } /** * @dev Returns the downcasted uint112 from uint256, reverting on * overflow (when the input is greater than largest uint112). * * Counterpart to Solidity's `uint112` operator. * * Requirements: * * - input must fit into 112 bits */ function toUint112(uint256 value) internal pure returns (uint112) { if (value > type(uint112).max) { revert SafeCastOverflowedUintDowncast(112, value); } return uint112(value); } /** * @dev Returns the downcasted uint104 from uint256, reverting on * overflow (when the input is greater than largest uint104). * * Counterpart to Solidity's `uint104` operator. * * Requirements: * * - input must fit into 104 bits */ function toUint104(uint256 value) internal pure returns (uint104) { if (value > type(uint104).max) { revert SafeCastOverflowedUintDowncast(104, value); } return uint104(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { if (value > type(uint96).max) { revert SafeCastOverflowedUintDowncast(96, value); } return uint96(value); } /** * @dev Returns the downcasted uint88 from uint256, reverting on * overflow (when the input is greater than largest uint88). * * Counterpart to Solidity's `uint88` operator. * * Requirements: * * - input must fit into 88 bits */ function toUint88(uint256 value) internal pure returns (uint88) { if (value > type(uint88).max) { revert SafeCastOverflowedUintDowncast(88, value); } return uint88(value); } /** * @dev Returns the downcasted uint80 from uint256, reverting on * overflow (when the input is greater than largest uint80). * * Counterpart to Solidity's `uint80` operator. * * Requirements: * * - input must fit into 80 bits */ function toUint80(uint256 value) internal pure returns (uint80) { if (value > type(uint80).max) { revert SafeCastOverflowedUintDowncast(80, value); } return uint80(value); } /** * @dev Returns the downcasted uint72 from uint256, reverting on * overflow (when the input is greater than largest uint72). * * Counterpart to Solidity's `uint72` operator. * * Requirements: * * - input must fit into 72 bits */ function toUint72(uint256 value) internal pure returns (uint72) { if (value > type(uint72).max) { revert SafeCastOverflowedUintDowncast(72, value); } return uint72(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { if (value > type(uint64).max) { revert SafeCastOverflowedUintDowncast(64, value); } return uint64(value); } /** * @dev Returns the downcasted uint56 from uint256, reverting on * overflow (when the input is greater than largest uint56). * * Counterpart to Solidity's `uint56` operator. * * Requirements: * * - input must fit into 56 bits */ function toUint56(uint256 value) internal pure returns (uint56) { if (value > type(uint56).max) { revert SafeCastOverflowedUintDowncast(56, value); } return uint56(value); } /** * @dev Returns the downcasted uint48 from uint256, reverting on * overflow (when the input is greater than largest uint48). * * Counterpart to Solidity's `uint48` operator. * * Requirements: * * - input must fit into 48 bits */ function toUint48(uint256 value) internal pure returns (uint48) { if (value > type(uint48).max) { revert SafeCastOverflowedUintDowncast(48, value); } return uint48(value); } /** * @dev Returns the downcasted uint40 from uint256, reverting on * overflow (when the input is greater than largest uint40). * * Counterpart to Solidity's `uint40` operator. * * Requirements: * * - input must fit into 40 bits */ function toUint40(uint256 value) internal pure returns (uint40) { if (value > type(uint40).max) { revert SafeCastOverflowedUintDowncast(40, value); } return uint40(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { if (value > type(uint32).max) { revert SafeCastOverflowedUintDowncast(32, value); } return uint32(value); } /** * @dev Returns the downcasted uint24 from uint256, reverting on * overflow (when the input is greater than largest uint24). * * Counterpart to Solidity's `uint24` operator. * * Requirements: * * - input must fit into 24 bits */ function toUint24(uint256 value) internal pure returns (uint24) { if (value > type(uint24).max) { revert SafeCastOverflowedUintDowncast(24, value); } return uint24(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { if (value > type(uint16).max) { revert SafeCastOverflowedUintDowncast(16, value); } return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits */ function toUint8(uint256 value) internal pure returns (uint8) { if (value > type(uint8).max) { revert SafeCastOverflowedUintDowncast(8, value); } return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { if (value < 0) { revert SafeCastOverflowedIntToUint(value); } return uint256(value); } /** * @dev Returns the downcasted int248 from int256, reverting on * overflow (when the input is less than smallest int248 or * greater than largest int248). * * Counterpart to Solidity's `int248` operator. * * Requirements: * * - input must fit into 248 bits */ function toInt248(int256 value) internal pure returns (int248 downcasted) { downcasted = int248(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(248, value); } } /** * @dev Returns the downcasted int240 from int256, reverting on * overflow (when the input is less than smallest int240 or * greater than largest int240). * * Counterpart to Solidity's `int240` operator. * * Requirements: * * - input must fit into 240 bits */ function toInt240(int256 value) internal pure returns (int240 downcasted) { downcasted = int240(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(240, value); } } /** * @dev Returns the downcasted int232 from int256, reverting on * overflow (when the input is less than smallest int232 or * greater than largest int232). * * Counterpart to Solidity's `int232` operator. * * Requirements: * * - input must fit into 232 bits */ function toInt232(int256 value) internal pure returns (int232 downcasted) { downcasted = int232(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(232, value); } } /** * @dev Returns the downcasted int224 from int256, reverting on * overflow (when the input is less than smallest int224 or * greater than largest int224). * * Counterpart to Solidity's `int224` operator. * * Requirements: * * - input must fit into 224 bits */ function toInt224(int256 value) internal pure returns (int224 downcasted) { downcasted = int224(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(224, value); } } /** * @dev Returns the downcasted int216 from int256, reverting on * overflow (when the input is less than smallest int216 or * greater than largest int216). * * Counterpart to Solidity's `int216` operator. * * Requirements: * * - input must fit into 216 bits */ function toInt216(int256 value) internal pure returns (int216 downcasted) { downcasted = int216(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(216, value); } } /** * @dev Returns the downcasted int208 from int256, reverting on * overflow (when the input is less than smallest int208 or * greater than largest int208). * * Counterpart to Solidity's `int208` operator. * * Requirements: * * - input must fit into 208 bits */ function toInt208(int256 value) internal pure returns (int208 downcasted) { downcasted = int208(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(208, value); } } /** * @dev Returns the downcasted int200 from int256, reverting on * overflow (when the input is less than smallest int200 or * greater than largest int200). * * Counterpart to Solidity's `int200` operator. * * Requirements: * * - input must fit into 200 bits */ function toInt200(int256 value) internal pure returns (int200 downcasted) { downcasted = int200(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(200, value); } } /** * @dev Returns the downcasted int192 from int256, reverting on * overflow (when the input is less than smallest int192 or * greater than largest int192). * * Counterpart to Solidity's `int192` operator. * * Requirements: * * - input must fit into 192 bits */ function toInt192(int256 value) internal pure returns (int192 downcasted) { downcasted = int192(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(192, value); } } /** * @dev Returns the downcasted int184 from int256, reverting on * overflow (when the input is less than smallest int184 or * greater than largest int184). * * Counterpart to Solidity's `int184` operator. * * Requirements: * * - input must fit into 184 bits */ function toInt184(int256 value) internal pure returns (int184 downcasted) { downcasted = int184(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(184, value); } } /** * @dev Returns the downcasted int176 from int256, reverting on * overflow (when the input is less than smallest int176 or * greater than largest int176). * * Counterpart to Solidity's `int176` operator. * * Requirements: * * - input must fit into 176 bits */ function toInt176(int256 value) internal pure returns (int176 downcasted) { downcasted = int176(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(176, value); } } /** * @dev Returns the downcasted int168 from int256, reverting on * overflow (when the input is less than smallest int168 or * greater than largest int168). * * Counterpart to Solidity's `int168` operator. * * Requirements: * * - input must fit into 168 bits */ function toInt168(int256 value) internal pure returns (int168 downcasted) { downcasted = int168(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(168, value); } } /** * @dev Returns the downcasted int160 from int256, reverting on * overflow (when the input is less than smallest int160 or * greater than largest int160). * * Counterpart to Solidity's `int160` operator. * * Requirements: * * - input must fit into 160 bits */ function toInt160(int256 value) internal pure returns (int160 downcasted) { downcasted = int160(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(160, value); } } /** * @dev Returns the downcasted int152 from int256, reverting on * overflow (when the input is less than smallest int152 or * greater than largest int152). * * Counterpart to Solidity's `int152` operator. * * Requirements: * * - input must fit into 152 bits */ function toInt152(int256 value) internal pure returns (int152 downcasted) { downcasted = int152(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(152, value); } } /** * @dev Returns the downcasted int144 from int256, reverting on * overflow (when the input is less than smallest int144 or * greater than largest int144). * * Counterpart to Solidity's `int144` operator. * * Requirements: * * - input must fit into 144 bits */ function toInt144(int256 value) internal pure returns (int144 downcasted) { downcasted = int144(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(144, value); } } /** * @dev Returns the downcasted int136 from int256, reverting on * overflow (when the input is less than smallest int136 or * greater than largest int136). * * Counterpart to Solidity's `int136` operator. * * Requirements: * * - input must fit into 136 bits */ function toInt136(int256 value) internal pure returns (int136 downcasted) { downcasted = int136(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(136, value); } } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits */ function toInt128(int256 value) internal pure returns (int128 downcasted) { downcasted = int128(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(128, value); } } /** * @dev Returns the downcasted int120 from int256, reverting on * overflow (when the input is less than smallest int120 or * greater than largest int120). * * Counterpart to Solidity's `int120` operator. * * Requirements: * * - input must fit into 120 bits */ function toInt120(int256 value) internal pure returns (int120 downcasted) { downcasted = int120(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(120, value); } } /** * @dev Returns the downcasted int112 from int256, reverting on * overflow (when the input is less than smallest int112 or * greater than largest int112). * * Counterpart to Solidity's `int112` operator. * * Requirements: * * - input must fit into 112 bits */ function toInt112(int256 value) internal pure returns (int112 downcasted) { downcasted = int112(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(112, value); } } /** * @dev Returns the downcasted int104 from int256, reverting on * overflow (when the input is less than smallest int104 or * greater than largest int104). * * Counterpart to Solidity's `int104` operator. * * Requirements: * * - input must fit into 104 bits */ function toInt104(int256 value) internal pure returns (int104 downcasted) { downcasted = int104(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(104, value); } } /** * @dev Returns the downcasted int96 from int256, reverting on * overflow (when the input is less than smallest int96 or * greater than largest int96). * * Counterpart to Solidity's `int96` operator. * * Requirements: * * - input must fit into 96 bits */ function toInt96(int256 value) internal pure returns (int96 downcasted) { downcasted = int96(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(96, value); } } /** * @dev Returns the downcasted int88 from int256, reverting on * overflow (when the input is less than smallest int88 or * greater than largest int88). * * Counterpart to Solidity's `int88` operator. * * Requirements: * * - input must fit into 88 bits */ function toInt88(int256 value) internal pure returns (int88 downcasted) { downcasted = int88(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(88, value); } } /** * @dev Returns the downcasted int80 from int256, reverting on * overflow (when the input is less than smallest int80 or * greater than largest int80). * * Counterpart to Solidity's `int80` operator. * * Requirements: * * - input must fit into 80 bits */ function toInt80(int256 value) internal pure returns (int80 downcasted) { downcasted = int80(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(80, value); } } /** * @dev Returns the downcasted int72 from int256, reverting on * overflow (when the input is less than smallest int72 or * greater than largest int72). * * Counterpart to Solidity's `int72` operator. * * Requirements: * * - input must fit into 72 bits */ function toInt72(int256 value) internal pure returns (int72 downcasted) { downcasted = int72(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(72, value); } } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits */ function toInt64(int256 value) internal pure returns (int64 downcasted) { downcasted = int64(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(64, value); } } /** * @dev Returns the downcasted int56 from int256, reverting on * overflow (when the input is less than smallest int56 or * greater than largest int56). * * Counterpart to Solidity's `int56` operator. * * Requirements: * * - input must fit into 56 bits */ function toInt56(int256 value) internal pure returns (int56 downcasted) { downcasted = int56(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(56, value); } } /** * @dev Returns the downcasted int48 from int256, reverting on * overflow (when the input is less than smallest int48 or * greater than largest int48). * * Counterpart to Solidity's `int48` operator. * * Requirements: * * - input must fit into 48 bits */ function toInt48(int256 value) internal pure returns (int48 downcasted) { downcasted = int48(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(48, value); } } /** * @dev Returns the downcasted int40 from int256, reverting on * overflow (when the input is less than smallest int40 or * greater than largest int40). * * Counterpart to Solidity's `int40` operator. * * Requirements: * * - input must fit into 40 bits */ function toInt40(int256 value) internal pure returns (int40 downcasted) { downcasted = int40(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(40, value); } } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits */ function toInt32(int256 value) internal pure returns (int32 downcasted) { downcasted = int32(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(32, value); } } /** * @dev Returns the downcasted int24 from int256, reverting on * overflow (when the input is less than smallest int24 or * greater than largest int24). * * Counterpart to Solidity's `int24` operator. * * Requirements: * * - input must fit into 24 bits */ function toInt24(int256 value) internal pure returns (int24 downcasted) { downcasted = int24(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(24, value); } } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits */ function toInt16(int256 value) internal pure returns (int16 downcasted) { downcasted = int16(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(16, value); } } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits */ function toInt8(int256 value) internal pure returns (int8 downcasted) { downcasted = int8(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(8, value); } } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive if (value > uint256(type(int256).max)) { revert SafeCastOverflowedUintToInt(value); } return int256(value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the 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 towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (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 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) 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. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 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. uint256 twos = denominator & (0 - denominator); 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 (unsignedRoundsUp(rounding) && 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 * towards zero. * * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5313.sol) pragma solidity ^0.8.20; /** * @dev Interface for the Light Contract Ownership Standard. * * A standardized minimal interface required to identify an account that controls a contract */ interface IERC5313 { /** * @dev Gets the address of the owner. */ function owner() external view returns (address); }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.8.26; import "contracts/extensions/ERC721AQueryable.sol"; /** * @title GuardianNFTState * @dev This abstract contract manages the state variables and mappings for the Guardian NFT contract. * It extends ERC721A and ERC721AQueryable to support efficient minting and querying of NFTs. */ abstract contract GuardianNFTState is ERC721AQueryable { /// @notice The base URI for the token metadata string public baseURI; /// @notice Flag indicating whether minting is enabled bool public mintingEnabled; /// @notice The timestamp when minting started uint256 public mintingStartTime; /// @notice Mapping of user addresses to the number of mints they are allowed /// @dev Represents the whitelist for minting: wallet_address -> number_of_mints_allowed mapping(address => uint256) public whitelist; /// @notice Mapping of user addresses to the total number of NFTs minted by them /// @dev Tracks the total mints by a user: wallet_address -> total_number_of_mints mapping(address => uint256) public mintsOfOwner; /// @notice Address of the delegation manager responsible for handling delegation logic address public delegationManager; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import "contracts/extensions/IERC721AQueryable.sol"; import "contracts/ERC721A.sol"; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory ownership) { unchecked { if (tokenId >= _startTokenId()) { if (tokenId > _sequentialUpTo()) return _ownershipAt(tokenId); if (tokenId < _nextTokenId()) { // If the `tokenId` is within bounds, // scan backwards for the initialized ownership slot. while (!_ownershipIsInitialized(tokenId)) --tokenId; return _ownershipAt(tokenId); } } } } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { TokenOwnership[] memory ownerships; uint256 i = tokenIds.length; assembly { // Grab the free memory pointer. ownerships := mload(0x40) // Store the length. mstore(ownerships, i) // Allocate one word for the length, // `tokenIds.length` words for the pointers. i := shl(5, i) // Multiply `i` by 32. mstore(0x40, add(add(ownerships, 0x20), i)) } while (i != 0) { uint256 tokenId; assembly { i := sub(i, 0x20) tokenId := calldataload(add(tokenIds.offset, i)) } TokenOwnership memory ownership = explicitOwnershipOf(tokenId); assembly { // Store the pointer of `ownership` in the `ownerships` array. mstore(add(add(ownerships, 0x20), i), ownership) } } return ownerships; } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { return _tokensOfOwnerIn(owner, start, stop); } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { // If spot mints are enabled, full-range scan is disabled. if (_sequentialUpTo() != type(uint256).max) _revert(NotCompatibleWithSpotMints.selector); uint256 start = _startTokenId(); uint256 stop = _nextTokenId(); uint256[] memory tokenIds; if (start != stop) tokenIds = _tokensOfOwnerIn(owner, start, stop); return tokenIds; } /** * @dev Helper function for returning an array of token IDs owned by `owner`. * * Note that this function is optimized for smaller bytecode size over runtime gas, * since it is meant to be called off-chain. */ function _tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) private view returns (uint256[] memory tokenIds) { unchecked { if (start >= stop) _revert(InvalidQueryRange.selector); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) start = _startTokenId(); uint256 nextTokenId = _nextTokenId(); // If spot mints are enabled, scan all the way until the specified `stop`. uint256 stopLimit = _sequentialUpTo() != type(uint256).max ? stop : nextTokenId; // Set `stop = min(stop, stopLimit)`. if (stop >= stopLimit) stop = stopLimit; // Number of tokens to scan. uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength` to zero if the range contains no tokens. if (start >= stop) tokenIdsMaxLength = 0; // If there are one or more tokens to scan. if (tokenIdsMaxLength != 0) { // Set `tokenIdsMaxLength = min(balanceOf(owner), tokenIdsMaxLength)`. if (stop - start <= tokenIdsMaxLength) tokenIdsMaxLength = stop - start; uint256 m; // Start of available memory. assembly { // Grab the free memory pointer. tokenIds := mload(0x40) // Allocate one word for the length, and `tokenIdsMaxLength` words // for the data. `shl(5, x)` is equivalent to `mul(32, x)`. m := add(tokenIds, shl(5, add(tokenIdsMaxLength, 1))) mstore(0x40, m) } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), // initialize `currOwnershipAddr`. // `ownership.address` will not be zero, // as `start` is clamped to the valid token ID range. if (!ownership.burned) currOwnershipAddr = ownership.addr; uint256 tokenIdsIdx; // Use a do-while, which is slightly more efficient for this case, // as the array will at least contain one element. do { if (_sequentialUpTo() != type(uint256).max) { // Skip the remaining unused sequential slots. if (start == nextTokenId) start = _sequentialUpTo() + 1; // Reset `currOwnershipAddr`, as each spot-minted token is a batch of one. if (start > _sequentialUpTo()) currOwnershipAddr = address(0); } ownership = _ownershipAt(start); // This implicitly allocates memory. assembly { switch mload(add(ownership, 0x40)) // if `ownership.burned == false`. case 0 { // if `ownership.addr != address(0)`. // The `addr` already has it's upper 96 bits clearned, // since it is written to memory with regular Solidity. if mload(ownership) { currOwnershipAddr := mload(ownership) } // if `currOwnershipAddr == owner`. // The `shl(96, x)` is to make the comparison agnostic to any // dirty upper 96 bits in `owner`. if iszero(shl(96, xor(currOwnershipAddr, owner))) { tokenIdsIdx := add(tokenIdsIdx, 1) mstore(add(tokenIds, shl(5, tokenIdsIdx)), start) } } // Otherwise, reset `currOwnershipAddr`. // This handles the case of batch burned tokens // (burned bit of first slot set, remaining slots left uninitialized). default { currOwnershipAddr := 0 } start := add(start, 1) // Free temporary memory implicitly allocated for ownership // to avoid quadratic memory expansion costs. mstore(0x40, m) } } while (!(start == stop || tokenIdsIdx == tokenIdsMaxLength)); // Store the length of the array. assembly { mstore(tokenIds, tokenIdsIdx) } } } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import "contracts/IERC721A.sol"; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); /** * `_sequentialUpTo()` must be greater than `_startTokenId()`. */ error SequentialUpToTooSmall(); /** * The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`. */ error SequentialMintExceedsLimit(); /** * Spot minting requires a `tokenId` greater than `_sequentialUpTo()`. */ error SpotMintTokenIdTooSmall(); /** * Cannot mint over a token that already exists. */ error TokenAlreadyExists(); /** * The feature is not compatible with spot mints. */ error NotCompatibleWithSpotMints(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import "contracts/IERC721A.sol"; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * The `_sequentialUpTo()` function can be overriden to enable spot mints * (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // The amount of tokens minted above `_sequentialUpTo()`. // We call these spot mints (i.e. non-sequential mints). uint256 private _spotMinted; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); if (_sequentialUpTo() < _startTokenId()) _revert(SequentialUpToTooSmall.selector); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID for sequential mints. * * Override this function to change the starting token ID for sequential mints. * * Note: The value returned must never change after any tokens have been minted. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the maximum token ID (inclusive) for sequential mints. * * Override this function to return a value less than 2**256 - 1, * but greater than `_startTokenId()`, to enable spot (non-sequential) mints. * * Note: The value returned must never change after any tokens have been minted. */ function _sequentialUpTo() internal view virtual returns (uint256) { return type(uint256).max; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256 result) { // Counter underflow is impossible as `_burnCounter` cannot be incremented // more than `_currentIndex + _spotMinted - _startTokenId()` times. unchecked { // With spot minting, the intermediate `result` can be temporarily negative, // and the computation must be unchecked. result = _currentIndex - _burnCounter - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256 result) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { result = _currentIndex - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } /** * @dev Returns the total number of tokens that are spot-minted. */ function _totalSpotMinted() internal view virtual returns (uint256) { return _spotMinted; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) _revert(BalanceQueryForZeroAddress.selector); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) _revert(URIQueryForNonexistentToken.selector); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Returns whether the ownership slot at `index` is initialized. * An uninitialized slot does not necessarily mean that the slot has no owner. */ function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) { return _packedOwnerships[index] != 0; } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * @dev Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; if (tokenId > _sequentialUpTo()) { if (_packedOwnershipExists(packed)) return packed; _revert(OwnerQueryForNonexistentToken.selector); } // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; if (packed & _BITMASK_BURNED == 0) return packed; // Otherwise, the token is burned, and we must revert. // This handles the case of batch burned tokens, where only the burned bit // of the starting slot is set, and remaining slots are left uninitialized. _revert(OwnerQueryForNonexistentToken.selector); } } // Otherwise, the data exists and we can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. // If the token is not burned, return `packed`. Otherwise, revert. if (packed & _BITMASK_BURNED == 0) return packed; } _revert(OwnerQueryForNonexistentToken.selector); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) _revert(ApprovalQueryForNonexistentToken.selector); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool result) { if (_startTokenId() <= tokenId) { if (tokenId > _sequentialUpTo()) return _packedOwnershipExists(_packedOwnerships[tokenId]); if (tokenId < _currentIndex) { uint256 packed; while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId; result = packed & _BITMASK_BURNED == 0; } } } /** * @dev Returns whether `packed` represents a token that exists. */ function _packedOwnershipExists(uint256 packed) private pure returns (bool result) { assembly { // The following is equivalent to `owner != address(0) && burned == false`. // Symbolically tested. result := gt(and(packed, _BITMASK_ADDRESS), and(packed, _BITMASK_BURNED)) } } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { _revert(TransferToNonERC721ReceiverImplementer.selector); } assembly { revert(add(32, reason), mload(reason)) } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) _revert(MintZeroQuantity.selector); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; if (end - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); do { assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } while (++tokenId != end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) _revert(MintToZeroAddress.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); if (startTokenId + quantity - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } } while (index < end); // This prevents reentrancy to `_safeMint`. // It does not prevent reentrancy to `_safeMintSpot`. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } /** * @dev Mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * Emits a {Transfer} event for each mint. */ function _mintSpot(address to, uint256 tokenId) internal virtual { if (tokenId <= _sequentialUpTo()) _revert(SpotMintTokenIdTooSmall.selector); uint256 prevOwnershipPacked = _packedOwnerships[tokenId]; if (_packedOwnershipExists(prevOwnershipPacked)) _revert(TokenAlreadyExists.selector); _beforeTokenTransfers(address(0), to, tokenId, 1); // Overflows are incredibly unrealistic. // The `numberMinted` for `to` is incremented by 1, and has a max limit of 2**64 - 1. // `_spotMinted` is incremented by 1, and has a max limit of 2**256 - 1. unchecked { // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `true` (as `quantity == 1`). _packedOwnerships[tokenId] = _packOwnershipData( to, _nextInitializedFlag(1) | _nextExtraData(address(0), to, prevOwnershipPacked) ); // Updates: // - `balance += 1`. // - `numberMinted += 1`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += (1 << _BITPOS_NUMBER_MINTED) | 1; // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. tokenId // `tokenId`. ) } ++_spotMinted; } _afterTokenTransfers(address(0), to, tokenId, 1); } /** * @dev Safely mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * See {_mintSpot}. * * Emits a {Transfer} event. */ function _safeMintSpot( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mintSpot(to, tokenId); unchecked { if (to.code.length != 0) { uint256 currentSpotMinted = _spotMinted; if (!_checkContractOnERC721Received(address(0), to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } // This prevents reentrancy to `_safeMintSpot`. // It does not prevent reentrancy to `_safeMint`. if (_spotMinted != currentSpotMinted) revert(); } } } /** * @dev Equivalent to `_safeMintSpot(to, tokenId, '')`. */ function _safeMintSpot(address to, uint256 tokenId) internal virtual { _safeMintSpot(to, tokenId, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as `_burnCounter` cannot be exceed `_currentIndex + _spotMinted` times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) _revert(OwnershipNotInitializedForExtraData.selector); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.8.26; interface IGuardianDelegation { /** * @dev Enumeration for the type of delegation, either Validator or LightNode. */ enum DelegationType { Undefined, Validator, LightNode } /** * @dev Structure to represent a delegation. Tracks the amount delegated, last update timestamp, and the previous score. * @param amount The number of tokens delegated * @param lastUpdate The timestamp of the last update to the delegation * @param previousScore The previous delegation score (used for calculation purposes) */ struct Delegation { uint256 amount; uint256 lastUpdate; uint256 previousScore; } function _delegateOnMint(address sender, address receiver, uint256 maxAmount) external; function delegateToValidators(address[] memory receivers, uint256[] memory maxAmounts, bool partialFill) external returns (uint256 delegations, uint256 totalDesired); function delegateToValidator(address receiver, uint256 maxAmount) external returns (uint256 delegations); function delegateToLightNode(address receiver, uint256 maxAmount) external returns (uint256 delegations); function delegateToLightNodes(address[] memory receivers, uint256[] memory maxAmounts, bool partialFill) external returns (uint256 delegations, uint256 totalDesired); function balanceOfSent(address sender) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.26; import "contracts/token/ERC20/utils/SafeERC20.sol"; abstract contract Rescuable { using SafeERC20 for IERC20; /** * @notice Override this function in inheriting contracts to set appropriate permissions */ function _requireRescuerRole() internal view virtual; /** * @notice Allows the rescue of ERC20 tokens held by the contract * @param token The ERC20 token to be rescued */ function rescue(IERC20 token) external { _requireRescuerRole(); uint256 balance = token.balanceOf(address(this)); token.safeTransfer(msg.sender, balance); } /** * @notice Allows the rescue of Ether held by the contract */ function rescueEth() external{ _requireRescuerRole(); uint256 balance = address(this).balance; (bool success, ) = msg.sender.call{value: balance}(""); require(success, "Transfer failed"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "contracts/token/ERC20/IERC20.sol"; import {IERC20Permit} from "contracts/token/ERC20/extensions/IERC20Permit.sol"; import {Address} from "contracts/utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) 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 FailedInnerCall(); } } }
{ "evmVersion": "shanghai", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "GuardianNFT.sol": {} }, "remappings": [ "@openzeppelin=./node_modules/@openzeppelin", "@erc721a=./node_modules/erc721a/contracts", "OpenZeppelin=C:/Users/tomcb/.brownie/packages/OpenZeppelin", "paulrberg=C:/Users/tomcb/.brownie/packages/paulrberg" ], "metadata": { "appendCBOR": false, "bytecodeHash": "none" }, "outputSelection": { "*": { "*": [ "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"uint48","name":"schedule","type":"uint48"}],"name":"AccessControlEnforcedDefaultAdminDelay","type":"error"},{"inputs":[],"name":"AccessControlEnforcedDefaultAdminRules","type":"error"},{"inputs":[{"internalType":"address","name":"defaultAdmin","type":"address"}],"name":"AccessControlInvalidDefaultAdmin","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ContractIsReceiver","type":"error"},{"inputs":[],"name":"CountMismatch","type":"error"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"maxDecrease","type":"uint256"}],"name":"DecreaseTooHigh","type":"error"},{"inputs":[],"name":"EtherSent","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"LockedForDelegation","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintingAlreadyStarted","type":"error"},{"inputs":[],"name":"MintingDisabled","type":"error"},{"inputs":[],"name":"MintingNotStarted","type":"error"},{"inputs":[],"name":"MintingPaused","type":"error"},{"inputs":[],"name":"MintingUnpaused","type":"error"},{"inputs":[],"name":"NotCompatibleWithSpotMints","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[{"internalType":"uint256","name":"maxAllowed","type":"uint256"}],"name":"QuantityTooHigh","type":"error"},{"inputs":[{"internalType":"uint8","name":"bits","type":"uint8"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"SafeCastOverflowedUintDowncast","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"SequentialMintExceedsLimit","type":"error"},{"inputs":[],"name":"SequentialUpToTooSmall","type":"error"},{"inputs":[],"name":"SpotMintTokenIdTooSmall","type":"error"},{"inputs":[],"name":"TokenAlreadyExists","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferNotAllowed","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"ZeroQuantity","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"oldBaseURI","type":"string"},{"indexed":false,"internalType":"string","name":"newBaseURI","type":"string"}],"name":"BaseURISet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalQuantity","type":"uint256"}],"name":"BatchMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[],"name":"DefaultAdminDelayChangeCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint48","name":"newDelay","type":"uint48"},{"indexed":false,"internalType":"uint48","name":"effectSchedule","type":"uint48"}],"name":"DefaultAdminDelayChangeScheduled","type":"event"},{"anonymous":false,"inputs":[],"name":"DefaultAdminTransferCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"},{"indexed":false,"internalType":"uint48","name":"acceptSchedule","type":"uint48"}],"name":"DefaultAdminTransferScheduled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newDelegationManager","type":"address"}],"name":"DelegationManagerSet","type":"event"},{"anonymous":false,"inputs":[],"name":"MintingStarted","type":"event"},{"anonymous":false,"inputs":[],"name":"PauseMinting","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[],"name":"UnpauseMinting","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalAmount","type":"uint256"}],"name":"WhitelistDecreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalAmount","type":"uint256"}],"name":"WhitelistIncreased","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IMPLEMENTATION_SLOT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptDefaultAdminTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"},{"internalType":"address","name":"validatorDelegate","type":"address"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"beginDefaultAdminTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cancelDefaultAdminTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"newDelay","type":"uint48"}],"name":"changeDefaultAdminDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint256[]","name":"subtractedCounts","type":"uint256[]"}],"name":"decreaseWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultAdminDelay","outputs":[{"internalType":"uint48","name":"","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultAdminDelayIncreaseWait","outputs":[{"internalType":"uint48","name":"","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"delegationManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"ownership","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint256[]","name":"addedCounts","type":"uint256[]"}],"name":"increaseWhitelist","outputs":[],"stateMutability":"nonpayable","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":"receiver","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"validatorDelegate","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintingStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintsOfOwner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","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":"pauseMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pendingDefaultAdmin","outputs":[{"internalType":"address","name":"newAdmin","type":"address"},{"internalType":"uint48","name":"schedule","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingDefaultAdminDelay","outputs":[{"internalType":"uint48","name":"newDelay","type":"uint48"},{"internalType":"uint48","name":"schedule","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"impl_","type":"address"},{"internalType":"bytes","name":"initData_","type":"bytes"}],"name":"replaceImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"rescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rescueEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rollbackDefaultAdminDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegationManager_","type":"address"}],"name":"setDelegationManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startMinting","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":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"unpauseMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
9c4d535b00000000000000000000000000000000000000000000000000000000000000000100080d8280c7d811bdf4b16c21625d41ac28f1670213c7de1672510b35687500000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x0003000000000002000e00000000000200000060031002700000073003300197000200000031035500010000000103550000008004000039000000400040043f0000000100200190000000340000c13d000000040030008c000000490000413d000000000201043b000000e002200270000007430020009c000000970000a13d000007440020009c000000f80000a13d000007450020009c000001c90000213d000007510020009c000002aa0000213d000007570020009c000003960000213d0000075a0020009c000007f00000613d0000075b0020009c000016750000c13d000000840030008c000016750000413d0000000402100370000000000202043b000c00000002001d000007350020009c000016750000213d0000002402100370000000000202043b000b00000002001d000007350020009c000016750000213d0000006402100370000000000202043b0000073d0020009c000016750000213d0000004401100370000000000101043b000a00000001001d000000040120003900000000020300191cbd173f0000040f0000000004010019000003800000013d0000000001000416000000000001004b000016750000c13d0000001a01000039000000800010043f0000073101000041000000a00010043f0000010001000039000000400010043f0000000e01000039000000c00010043f0000073201000041000000e00010043f0000000003000411000000000003004b0000004f0000c13d0000073f01000041000000000010043f000000040000043f000007400100004100001cbf00010430000000000003004b000016750000c13d0000074101000041000000000010043f000007420100004100001cbf000104300000000102000039000000000102041a000007330110019700000734011001c7000000000012041b0000000201000039000000000201041a0000073500200198000007aa0000c13d0000073602200197000000000232019f000000000021041b0000073501300197000c00000001001d000000000010043f0000073701000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff001001900000008d0000c13d0000000c01000029000000000010043f0000073701000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000201041a000008050220019700000001022001bf000000000021041b0000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d0200003900000004030000390000073a0400004100000000050000190000000c0600002900000000070004111cbd1cae0000040f0000000100200190000016750000613d000000800100043d000c00000001001d0000073b0010009c000003860000413d000007ef01000041000000000010043f0000004101000039000000040010043f000007400100004100001cbf00010430000007710020009c0000015f0000213d000007870020009c000001f10000a13d000007880020009c000003000000213d0000078e0020009c000003ab0000213d000007910020009c00000aed0000613d000007920020009c000016750000c13d000000640030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000202043b000b00000002001d000007350020009c000016750000213d0000002402100370000000000202043b000900000002001d0000004401100370000000000101043b000800000001001d000007350010009c000016750000213d000000090000006b000009e40000613d0000000d01000039000000000101041a000000ff0010019000000d6b0000613d00000000010004110000073501100197000c00000001001d000000000010043f0000000f01000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000a00090010007400000e580000413d0000000c01000029000000000010043f0000000f01000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b0000000a02000029000000000021041b0000000c01000029000000000010043f0000001001000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000201041a000000090020002a0000085d0000413d0000000902200029000000000021041b00000000010004100000000b0010006b000013710000c13d000007f901000041000000000010043f000007420100004100001cbf000104300000075c0020009c000001e80000a13d0000075d0020009c000002b60000213d000007630020009c000003e20000213d000007660020009c0000080d0000613d000007670020009c000016750000c13d000000640030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000202043b000800000002001d000007350020009c000016750000213d0000004402100370000000000202043b0000002401100370000000000301043b000000000023004b00000cdc0000813d0000000304000039000000000104041a000000000012004b0000000002018019000700000002001d0000000801000029000000000001004b00000d170000613d000b00000003001d000000000010043f0000000801000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000500600000003d000000000101043b0000000b03000029000000070230006b000013c20000a13d000000000101041a0000073d01100198000013c20000613d000000000012004b0000000002018019000600000002001d0000000501200210000000400200043d000500000002001d00000000012100190000002001100039000000400010043f000a00000001001d0000079d0010009c000000910000213d0000000a020000290000008001200039000000400010043f00000060012000390000000000010435000000400120003900000000000104350000002001200039000000000001043500000000000204350000000301000039000000000101041a000000000031004b0000000001000019000011800000a13d0000000b01000029000c00000001001d000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000000001004b0000123a0000c13d0000000c01000029000000010110008a0000014b0000013d000007720020009c0000021b0000a13d000007730020009c0000030f0000213d000007790020009c000003f20000213d0000077c0020009c00000b090000613d0000077d0020009c000016750000c13d000000240030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000401100370000000000101043b000c00000001001d000007350010009c000016750000213d00000000010004110000073501100197000000000010043f0000073701000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff0010019000000b020000613d000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f0000000100200190000016770000613d000000000201043b000007e30020009c000004200000813d000b00000002001d0000000201000039000000000101041a000900000001001d000a00d00010027a000010cc0000c13d0000000101000039000000000101041a000000d0011002700000000b01100029000b00000001001d000007b50010009c0000085d0000213d0000000c01000029000007e8011001970000000b02000029000000a002200210000007b302200197000000000112019f0000000102000039000000000302041a000007b204300197000000000141019f000000000012041b000007b300300198000001b80000613d0000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d020000390000000103000039000007b4040000411cbd1cae0000040f0000000100200190000016750000613d000000400100043d0000000b020000290000000000210435000007300010009c000007300100804100000040011002100000000002000414000007300020009c0000073002008041000000c002200210000000000112019f0000073c011001c70000800d020000390000000203000039000007e9040000410000000c0500002900000ee80000013d000007460020009c000002e80000213d0000074c0020009c000004270000213d0000074f0020009c000008160000613d000007500020009c000016750000c13d000000440030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000202043b0000002401100370000000000101043b000c00000001001d000007350010009c000016750000213d000000000002004b000007aa0000613d0000000001020019000b00000002001d1cbd19a50000040f1cbd1aba0000040f0000000b010000290000000c020000291cbd1c440000040f000000000100001900001cbe0001042e000007680020009c000003240000a13d000007690020009c0000044c0000213d0000076c0020009c000008200000613d0000076d0020009c000007b90000613d000016750000013d000007930020009c000003550000a13d000007940020009c000004670000213d000007970020009c00000b120000613d000007980020009c000016750000c13d000000240030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000401100370000000000201043b0000000301000039000000000101041a000000000021004b00000de40000a13d000b00000002001d000c00000002001d000000000020043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000000001004b00000dda0000c13d0000000c02000029000000000002004b000000010220008a000002050000c13d0000085d0000013d0000077e0020009c0000036f0000a13d0000077f0020009c000004c60000213d000007820020009c00000b260000613d000007830020009c000016750000c13d000000440030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000202043b0000073d0020009c000016750000213d0000002304200039000000000034004b000016750000813d0000000404200039000000000441034f000000000504043b0000073d0050009c000000910000213d00000005045002100000003f064000390000079c066001970000079d0060009c000000910000213d0000008006600039000000400060043f000000800050043f00000024022000390000000004240019000000000034004b000016750000213d000000000005004b0000024c0000613d0000008005000039000000000621034f000000000606043b000007350060009c000016750000213d000000200550003900000000006504350000002002200039000000000042004b000002430000413d0000002402100370000000000202043b0000073d0020009c000016750000213d0000002304200039000000000034004b0000000005000019000007c205008041000007c204400197000000000004004b0000000006000019000007c206004041000007c20040009c000000000605c019000000000006004b000016750000c13d0000000404200039000000000441034f000000000404043b0000073d0040009c000000910000213d00000005054002100000003f065000390000079c06600197000000400700043d0000000006670019000b00000007001d000000000076004b000000000700003900000001070040390000073d0060009c000000910000213d0000000100700190000000910000c13d000000400060043f0000000b060000290000000006460436000700000006001d00000024022000390000000005250019000000000035004b000016750000213d000000000004004b000002800000613d0000000b03000029000000000421034f000000000404043b000000200330003900000000004304350000002002200039000000000052004b000002790000413d00000000010004110000073501100197000000000010043f000007c301000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff0010019000000a570000613d0000000b010000290000000002010433000000800100043d000000000021004b000014010000c13d000000000001004b000a00000000001d000014dd0000c13d000000400100043d0000000a020000290000000000210435000007300010009c000007300100804100000040011002100000000002000414000007300020009c0000073002008041000000c002200210000000000112019f0000073c011001c70000800d020000390000000103000039000007f10400004100000ee80000013d000007520020009c000005080000213d000007550020009c0000083d0000613d000007560020009c000016750000c13d0000000001000416000000000001004b000016750000c13d1cbd1a960000040f000007b50110019700000cc00000013d0000075e0020009c000005a10000213d000007610020009c000008630000613d000007620020009c000016750000c13d0000000001000416000000000001004b000016750000c13d00000000020004150000000e0220008a00000005022002100000000201000039000000000301041a000000d001300272000002db0000613d000b00000003001d000c00000001001d000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f0000000100200190000016770000613d00000000020004150000000d0220008a0000000502200210000000000101043b0000000c04000029000000000014004b0000000b0100002900000e190000813d0000000501200270000000000100003f00000000010000190000000004000019000000400200043d000000200320003900000000004304350000000000120435000007300020009c00000730020080410000004001200210000007cb011001c700001cbe0001042e000007470020009c000005e80000213d0000074a0020009c0000086e0000613d0000074b0020009c000016750000c13d000000440030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000202043b000007350020009c000016750000213d0000002401100370000000000101043b000c00000001001d000007350010009c000016750000213d000000000020043f0000000a01000039000000200010043f0000045e0000013d000007890020009c000007960000213d0000078c0020009c00000b380000613d0000078d0020009c000016750000c13d000000240030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000401100370000000000101043b1cbd19a50000040f00000cc00000013d000007740020009c000007ae0000213d000007770020009c00000b3d0000613d000007780020009c000016750000c13d0000000001000416000000000001004b000016750000c13d00000080010000391cbd17ac0000040f000000800210008a00000080010000391cbd16ca0000040f0000002001000039000000400200043d000c00000002001d000000000212043600000080010000391cbd171b0000040f000008330000013d0000076e0020009c000008730000613d0000076f0020009c000008cc0000613d000007700020009c000016750000c13d000000240030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000401100370000000000101043b000c00000001001d000007350010009c000016750000213d00000000010004110000073501100197000000000010043f0000073701000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff0010019000000b020000613d000000400b00043d000007d10100004100000000001b04350000000401b000390000000002000410000000000021043500000000010004140000000c02000029000000040020008c00000e790000c13d0000000003000031000000200030008c0000002004000039000000000403401900000ea50000013d000007990020009c0000097e0000613d0000079a0020009c000009920000613d0000079b0020009c000016750000c13d0000000001000416000000000001004b000016750000c13d00000000010300191cbd16dc0000040f000c00000001001d000b00000002001d000a00000003001d000000400100043d000900000001001d00000020020000391cbd16ca0000040f000000090400002900000000000404350000000c010000290000000b020000290000000a030000291cbd19b60000040f000000000100001900001cbe0001042e000007840020009c000009990000613d000007850020009c000009d60000613d000007860020009c000016750000c13d00000000010300191cbd172d0000040f000c00000001001d000b00000002001d000a00000003001d000000400100043d000900000001001d00000020020000391cbd16ca0000040f000000090400002900000000000404350000000c010000290000000b020000290000000a030000291cbd1a160000040f000000000100001900001cbe0001042e0000000503000039000000000103041a000000010210019000000001041002700000007f0440618f0000001f0040008c00000000010000390000000101002039000000000012004b000007be0000613d000007ef01000041000000000010043f0000002201000039000000040010043f000007400100004100001cbf00010430000007580020009c000009e80000613d000007590020009c000016750000c13d000000240030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000401100370000000000101043b1cbd1a390000040f000000400200043d000c00000002001d1cbd17990000040f0000000c01000029000007300010009c00000730010080410000004001100210000007c1011001c700001cbe0001042e0000078f0020009c00000bee0000613d000007900020009c000016750000c13d000000240030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000401100370000000000101043b000c00000001001d000007350010009c000016750000213d00000000010004110000073501100197000000000010043f0000073701000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff0010019000000b020000613d000000400100043d0000000c04000029000000000004004b00000ecb0000c13d0000006402100039000007f50300004100000000003204350000004402100039000007f6030000410000000000320435000000240210003900000022030000390000000000320435000007bc020000410000000000210435000000040210003900000020030000390000000000320435000007300010009c00000730010080410000004001100210000007f7011001c700001cbf00010430000007640020009c00000a5f0000613d000007650020009c000016750000c13d000000240030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000401100370000000000101043b000007350010009c000016750000213d000000000010043f0000000f0100003900000b310000013d0000077a0020009c00000bf90000613d0000077b0020009c000016750000c13d000000240030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000401100370000000000101043b000c00000001001d000007b50010009c000016750000213d00000000010004110000073501100197000000000010043f0000073701000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff0010019000000b020000613d000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f0000000100200190000016770000613d000000000201043b000007e30020009c00000f9f0000413d000007e701000041000000000010043f0000003001000039000000040010043f000000240020043f000007b10100004100001cbf000104300000074d0020009c00000a940000613d0000074e0020009c000016750000c13d0000000001000416000000000001004b000016750000c13d00000000010004110000073501100197000000000010043f0000073701000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff0010019000000b020000613d0000000e01000039000000000101041a000000000001004b000008090000613d0000000d01000039000000000201041a000000ff0020019000000ede0000c13d000007af01000041000000000010043f000007420100004100001cbf000104300000076a0020009c000007b90000613d0000076b0020009c000016750000c13d000000440030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000002402100370000000000202043b000c00000002001d000007350020009c000016750000213d0000000401100370000000000101043b000000000010043f000000200000043f00000040010000391cbd1c9d0000040f0000000c020000291cbd17890000040f000000000101041a000000ff001001900000000001000039000000010100c03900000cc00000013d000007950020009c00000c030000613d000007960020009c000016750000c13d000000440030008c000016750000413d0000000402100370000000000202043b000b00000002001d000007350020009c000016750000213d0000002401100370000000000101043b000a00000001001d000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000000001004b0000049d0000c13d0000000301000039000000000101041a0000000a0010006c00000e0b0000a13d0000000a02000029000000010220008a000c00000002001d000000000020043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000000001004b0000000c020000290000048a0000613d0000079e0010019800000e0b0000c13d00000735011001970000000002000411000000000012004b000c00000001001d00000f5a0000c13d0000000a01000029000000000010043f0000000901000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d0000000b020000290000073506200197000000000101043b000000000201041a0000073602200197000000000262019f000000000021041b0000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d020000390000000403000039000007fe040000410000000c050000290000000a070000291cbd1cae0000040f0000000100200190000016750000613d00000eeb0000013d000007800020009c00000c0a0000613d000007810020009c000016750000c13d000000240030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000202043b0000073d0020009c000016750000213d0000002304200039000000000034004b000016750000813d000b00040020003d0000000b04100360000000000404043b0000073d0040009c000016750000213d000000050540021000000000025200190000002402200039000000000032004b000016750000213d0000000007050019000000800040043f000000a002500039000000400020043f000000000004004b00000eed0000c13d00000020010000390000000001120436000000800300043d00000000003104350000004001200039000000000003004b000008340000613d000000800400003900000000050000190000002004400039000000000604043300000000870604340000073507700197000000000771043600000000080804330000073d08800197000000000087043500000040076000390000000007070433000000000007004b0000000007000039000000010700c0390000004008100039000000000078043500000060066000390000000006060433000007eb066001970000006007100039000000000067043500000080011000390000000105500039000000000035004b000004ef0000413d000008340000013d000007530020009c00000ab80000613d000007540020009c000016750000c13d0000000001000416000000000001004b000016750000c13d0000000101000039000000000101041a00000735021001970000000003000411000000000023004b00000cd20000c13d000000a001100270000007b50210019800000cd70000613d000c00000002001d000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f0000000100200190000016770000613d000000000101043b0000000c02000029000000000012004b00000cd70000813d0000000202000039000000000102041a000c00000001001d0000073601100197000000000012041b000000000000043f000000200000043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d0000000c020000290000073502200197000000000101043b000c00000002001d000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff00100190000011cd0000c13d0000000201000039000000000101041a0000073500100198000007aa0000c13d00000736011001970000000002000411000000000121019f0000000202000039000000000012041b000000000000043f000000200000043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b0000000002000411000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff001001900000059b0000c13d000000000000043f000000200000043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b0000000002000411000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000201041a000008050220019700000001022001bf000000000021041b0000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d0200003900000004030000390000073a040000410000000005000019000000000600041100000000070600191cbd1cae0000040f0000000100200190000016750000613d0000000102000039000000000102041a000007b201100197000000000012041b000000000100001900001cbe0001042e0000075f0020009c00000ae20000613d000007600020009c000016750000c13d000000440030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000202043b000c00000002001d000007350020009c000016750000213d0000002401100370000000000201043b000000000002004b0000000001000039000000010100c039000b00000002001d000000000012004b000016750000c13d0000000001000411000000000010043f0000000a01000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b0000000c02000029000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000201041a00000805022001970000000b03000029000000000232019f000000000021041b000000400100043d0000000000310435000007300010009c000007300100804100000040011002100000000002000414000007300020009c0000073002008041000000c002200210000000000112019f0000073c011001c70000800d020000390000000303000039000007ca0400004100000000050004110000000c0600002900000ee80000013d000007480020009c00000ae80000613d000007490020009c000016750000c13d000000640030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000202043b000007350020009c000016750000213d0000002405100370000000000505043b000007350050009c000016750000213d0000004406100370000000000606043b0000073d0060009c000016750000213d0000002307600039000000000037004b000016750000813d0000000407600039000000000771034f000000000807043b0000073d0080009c000000910000213d00000005078002100000003f097000390000079c099001970000079d0090009c000000910000213d0000008009900039000000400090043f000000800080043f00000024066000390000000007670019000000000037004b000016750000213d000000000008004b00000eeb0000613d000000000361034f000000000303043b000000200440003900000000003404350000002006600039000000000076004b000006130000413d000000800100043d000000000001004b00000eeb0000613d000a07350050019b000b07350020019b0000000001000411000707350010019b000800000000001d00000008010000290000000501100210000000a0011000390000000001010433000900000001001d000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000000001004b0000064f0000c13d0000000301000039000000000101041a0000000902000029000000000021004b00000e0b0000a13d000000010220008a000c00000002001d000000000020043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000000001004b0000000c020000290000063c0000613d0000079e0010019800000e0b0000c13d000600000001001d00000735011001970000000b0010006c000016390000c13d0000000901000029000000000010043f0000000901000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000500000001001d000000000101041a000c00000001001d00000007020000290000000b0020006c0000068a0000613d0000000c02000029000000070020006b0000068a0000613d0000000b01000029000000000010043f0000000a01000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b0000000702000029000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff00100190000016780000613d00000000020004100000000a0020006b000000f40000613d0000000b0000006b000007100000613d0000000e01000039000000000101041a000407a4001000a40000085d0000813d000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f0000000100200190000016770000613d000000000101043b000000040010006c000006b20000813d0000000701000029000000000010043f0000073701000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff001001900000167e0000613d0000001101000039000000000101041a0000073502100198000007100000613d000000400a00043d000007a50100004100000000001a04350000000401a000390000000b0300002900000000003104350000000001000414000000040020008c000006c40000c13d0000000003000031000000200030008c00000020040000390000000004034019000006ef0000013d0000073000a0009c000007300300004100000000030a40190000004003300210000007300010009c0000073001008041000000c001100210000000000131019f00000740011001c700040000000a001d1cbd1cb30000040f000000040a00002900000060031002700000073003300197000000200030008c00000020040000390000000004034019000000200640019000000000056a0019000006de0000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b000006da0000c13d0000001f07400190000006eb0000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f0000000000650435000000000003001f00020000000103550000000100200190000016890000613d0000001f01400039000000600210018f0000000001a20019000000000021004b000000000200003900000001020040390000073d0010009c000000910000213d0000000100200190000000910000c13d000000400010043f000000200030008c000016750000413d00000000010a0433000400000001001d0000000b01000029000000000010043f0000000801000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a0000073d01100197000000040010006c0000167c0000a13d0000000c0000006b000007140000613d0000000501000029000000000001041b0000000b01000029000000000010043f0000000801000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000201041a000000010220008a000000000021041b0000000a01000029000000000010043f0000000801000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000201041a0000000102200039000000000021041b000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f0000000100200190000016770000613d000000000101043b000c00000001001d0000000901000029000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d0000000c02000029000000a0022002100000000a022001af000007a9022001c7000000000101043b000000000021041b0000000601000029000007a900100198000007800000c13d00000009010000290000000101100039000c00000001001d000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000000001004b000007800000c13d0000000301000039000000000101041a0000000c0010006b000007800000613d0000000c01000029000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b0000000602000029000000000021041b0000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d020000390000000403000039000007aa040000410000000b050000290000000a0600002900000009070000291cbd1cae0000040f0000000100200190000016750000613d0000000a0000006b0000163d0000613d0000000802000029000800010020003d000000800100043d000000080010006b000006220000413d00000eeb0000013d0000078a0020009c00000c770000613d0000078b0020009c000016750000c13d000000440030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000202043b000c00000002001d0000002401100370000000000101043b000b00000001001d000007350010009c000016750000213d0000000c01000029000000000001004b00000ce00000c13d000007f301000041000000000010043f000007420100004100001cbf00010430000007750020009c00000cb60000613d000007760020009c000016750000c13d0000000001000416000000000001004b000016750000c13d000007c601000041000000800010043f000007ac0100004100001cbe0001042e0000000001000416000000000001004b000016750000c13d000000020100003900000b0d0000013d000000200040008c000007dd0000413d000b00000004001d000000000030043f0000000001000414000007300010009c0000073001008041000000c0011002100000073c011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d0000000c030000290000001f023000390000000502200270000000200030008c0000000002004019000000000301043b0000000b010000290000001f01100039000000050110027000000000011300190000000002230019000000000012004b0000000503000039000007dd0000813d000000000002041b0000000102200039000000000012004b000007d90000413d0000000c04000029000000200040008c00000cc70000413d000000000030043f0000000001000414000007300010009c0000073001008041000000c0011002100000073c011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d0000000c060000290000080602600198000000000101043b00000d7a0000c13d000000a00300003900000d880000013d0000000001000416000000000001004b000016750000c13d00000000010004110000073501100197000000000010043f0000073701000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff0010019000000b020000613d0000000e01000039000000000101041a000000000001004b00000e1c0000c13d000007c901000041000000000010043f000007420100004100001cbf000104300000000001000416000000000001004b000016750000c13d000000c001000039000000400010043f0000000e01000039000000800010043f000007320100004100000b1a0000013d0000000001000416000000000001004b000016750000c13d1cbd1ab40000040f0000073501100197000000800010043f000007b501200197000000a00010043f000007b60100004100001cbe0001042e000000240030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000401100370000000000101043b000700000001001d000007350010009c000016750000213d00000060020000390000000301000039000000000101041a000600000001001d000000000001004b00000d140000c13d0000008001000039000c00000001001d1cbd17d60000040f0000000c020000290000000001210049000007300010009c00000730010080410000006001100210000007300020009c00000730020080410000004002200210000000000121019f00001cbe0001042e000000240030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000401100370000000000201043b0000000301000039000000000101041a000000000021004b00000e070000a13d000c00000002001d000000000020043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000000001004b00000de80000c13d0000000c02000029000000000002004b000000010220008a000008480000c13d000007ef01000041000000000010043f0000001101000039000000040010043f000007400100004100001cbf000104300000000001000416000000000001004b000016750000c13d0000000d01000039000000000101041a000000ff001001900000000001000039000000010100c039000000800010043f000007ac0100004100001cbe0001042e0000000001000416000000000001004b000016750000c13d0000000e0100003900000b340000013d000000440030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000202043b000c00000002001d000007350020009c000016750000213d0000002402100370000000000402043b0000073d0040009c000016750000213d0000002302400039000000000032004b000016750000813d0000000405400039000000000251034f000000000202043b0000073d0020009c000000910000213d0000001f0620003900000806066001970000003f0660003900000806066001970000079d0060009c000000910000213d00000024044000390000008006600039000000400060043f000000800020043f0000000004420019000000000034004b000016750000213d0000002003500039000000000331034f00000806042001980000001f0520018f000000a001400039000008a20000613d000000a006000039000000000703034f000000007807043c0000000006860436000000000016004b0000089e0000c13d000000000005004b000008af0000613d000000000343034f0000000304500210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f0000000000310435000000a001200039000000000001043500000000010004110000073501100197000000000010043f0000073701000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff0010019000000b020000613d0000000c0000006b0000126b0000c13d000000400100043d0000004402100039000007e2030000410000000000320435000000240210003900000015030000390000107d0000013d000000640030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000202043b0000073d0020009c000016750000213d0000002304200039000000000034004b000016750000813d0000000404200039000000000441034f000000000504043b0000073d0050009c000000910000213d00000005045002100000003f064000390000079c066001970000079d0060009c000000910000213d0000008006600039000000400060043f000000800050043f00000024022000390000000004240019000000000034004b000016750000213d000000000005004b000008f50000613d0000008005000039000000000621034f000000000606043b000007350060009c000016750000213d000000200550003900000000006504350000002002200039000000000042004b000008ec0000413d0000002402100370000000000202043b0000073d0020009c000016750000213d0000002304200039000000000034004b0000000005000019000007c205008041000007c204400197000000000004004b0000000006000019000007c206004041000007c20040009c000000000605c019000000000006004b000016750000c13d0000000404200039000000000441034f000000000404043b0000073d0040009c000000910000213d00000005054002100000003f065000390000079c06600197000000400700043d0000000006670019000500000007001d000000000076004b000000000700003900000001070040390000073d0060009c000000910000213d0000000100700190000000910000c13d000000400060043f00000005060000290000000006460436000200000006001d00000024022000390000000005250019000000000035004b000016750000213d000000000004004b000009290000613d0000000503000029000000000421034f000000000404043b000000200330003900000000004304350000002002200039000000000052004b000009220000413d0000004401100370000000000101043b000100000001001d000007350010009c000016750000213d00000005010000290000000002010433000000800100043d000000000021004b000014010000c13d0000000d02000039000000000202041a000000ff0020019000000d6b0000613d000000010000006b000700000000001d0000093d0000613d0000001102000039000000000202041a000707350020019b000000000001004b000900000000001d000015380000c13d00000000010004110000073501100197000c00000001001d000000000010043f0000000f01000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000b00090010007400000e580000413d0000000c01000029000000000010043f0000000f01000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b0000000b02000029000000000021041b0000000c01000029000000000010043f0000001001000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000201041a000000090020002a0000085d0000413d00000009030000290000000002320019000000000021041b000000400100043d0000000000310435000007300010009c00000730010080410000004001100210000000000200041400000be40000013d000000240030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000401100370000000000201043b0000080000200198000016750000c13d00000001010000390000080102200197000008020020009c00000c070000613d000008030020009c00000c070000613d000008040020009c000000000100c019000000800010043f000007ac0100004100001cbe0001042e0000000001000416000000000001004b000016750000c13d000007e401000041000000800010043f000007ac0100004100001cbe0001042e000000440030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000202043b000c00000002001d0000002401100370000000000101043b000b00000001001d000007350010009c000016750000213d0000000c0000006b00000d1b0000c13d0000000203000039000000000103041a00000735011001970000000b02000029000000000012004b000009cc0000c13d0000000101000039000000000101041a000000a002100270000007b505200197000007350010019800000e740000c13d000000000005004b00000e740000613d000a00000005001d000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f0000000100200190000016770000613d000000000101043b0000000a05000029000000000015004b0000000b020000290000000203000039000000010400003900000e740000813d000000000104041a000007e801100197000000000014041b0000000001000411000000000012004b00000dd60000c13d000000000203041a000000000112013f000007350010019800000d1e0000c13d0000073601200197000000000013041b00000d1e0000013d000000440030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000202043b000c00000002001d000007350020009c000016750000213d0000002401100370000000000201043b000000000002004b00000d670000c13d000007fb01000041000000000010043f000007420100004100001cbf00010430000000440030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000202043b0000073d0020009c000016750000213d0000002304200039000000000034004b000016750000813d0000000404200039000000000441034f000000000504043b0000073d0050009c000000910000213d00000005045002100000003f064000390000079c066001970000079d0060009c000000910000213d0000008006600039000000400060043f000000800050043f00000024022000390000000004240019000000000034004b000016750000213d000000000005004b00000a110000613d0000008005000039000000000621034f000000000606043b000007350060009c000016750000213d000000200550003900000000006504350000002002200039000000000042004b00000a080000413d0000002402100370000000000202043b0000073d0020009c000016750000213d0000002304200039000000000034004b0000000005000019000007c205008041000007c204400197000000000004004b0000000006000019000007c206004041000007c20040009c000000000605c019000000000006004b000016750000c13d0000000404200039000000000441034f000000000404043b0000073d0040009c000000910000213d00000005054002100000003f065000390000079c06600197000000400700043d0000000006670019000800000007001d000000000076004b000000000700003900000001070040390000073d0060009c000000910000213d0000000100700190000000910000c13d000000400060043f00000008060000290000000006460436000700000006001d00000024022000390000000005250019000000000035004b000016750000213d000000000004004b00000a450000613d0000000803000029000000000421034f000000000404043b000000200330003900000000004304350000002002200039000000000052004b00000a3e0000413d00000000010004110000073501100197000000000010043f000007c301000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff00100190000013ea0000c13d000007b001000041000000000010043f0000000001000411000000040010043f000007c601000041000000240010043f000007b10100004100001cbf000104300000000001000416000000000001004b000016750000c13d00000000010004110000073501100197000000000010043f0000073701000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff0010019000000b020000613d0000000e01000039000000000101041a000000000001004b00000e2c0000c13d000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f0000000100200190000016770000613d000000000101043b0000000e02000039000000000012041b0000000d01000039000000000201041a000008050220019700000001022001bf000000000021041b0000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d020000390000000103000039000007cd0400004100000ee80000013d0000000001000416000000000001004b000016750000c13d00000000010004110000073501100197000000000010043f0000073701000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff0010019000000b020000613d0000000101000039000000000201041a000007b203200197000000000031041b000007b30020019800000eeb0000613d0000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d020000390000000103000039000007b40400004100000ee80000013d0000000001000416000000000001004b000016750000c13d00000000010004110000073501100197000000000010043f0000073701000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff0010019000000b020000613d000007b9010000410000000000100443000000000100041000000004001004430000000001000414000007300010009c0000073001008041000000c001100210000007ba011001c70000800a020000391cbd1cb30000040f0000000100200190000016770000613d000000000301043b00000000010004140000000004000411000000040040008c00000f4f0000c13d00000001020000390000000001000031000010730000013d0000000001000416000000000001004b000016750000c13d000000800000043f000007ac0100004100001cbe0001042e0000000001000416000000000001004b000016750000c13d000000110100003900000b0d0000013d0000000001000416000000000001004b000016750000c13d00000000010004110000073501100197000000000010043f0000073701000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff0010019000000d6f0000c13d000007b001000041000000000010043f0000000001000411000000040010043f000000240000043f000007b10100004100001cbf000104300000000001000416000000000001004b000016750000c13d000007dd01000041000000000101041a0000073501100197000000800010043f000007ac0100004100001cbe0001042e0000000001000416000000000001004b000016750000c13d000000c001000039000000400010043f0000001a01000039000000800010043f0000073101000041000000a00010043f0000002001000039000000c00010043f0000008001000039000000e0020000391cbd171b0000040f000000c00110008a000007300010009c00000730010080410000006001100210000007cf011001c700001cbe0001042e000000240030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000401100370000000000101043b000007350010009c000016750000213d000000000010043f0000001001000039000000200010043f00000040010000391cbd1c9d0000040f000000000101041a000000800010043f000007ac0100004100001cbe0001042e00000000010300191cbd172d0000040f1cbd17e50000040f000000000100001900001cbe0001042e000000440030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000202043b0000073d0020009c000016750000213d0000002304200039000000000034004b000016750000813d0000000404200039000000000441034f000000000504043b0000073d0050009c000000910000213d00000005045002100000003f064000390000079c066001970000079d0060009c000000910000213d0000008006600039000000400060043f000000800050043f00000024022000390000000004240019000000000034004b000016750000213d000000000005004b00000b660000613d0000008005000039000000000621034f000000000606043b000007350060009c000016750000213d000000200550003900000000006504350000002002200039000000000042004b00000b5d0000413d0000002402100370000000000202043b0000073d0020009c000016750000213d0000002304200039000000000034004b0000000005000019000007c205008041000007c204400197000000000004004b0000000006000019000007c206004041000007c20040009c000000000605c019000000000006004b000016750000c13d0000000404200039000000000441034f000000000404043b0000073d0040009c000000910000213d00000005054002100000003f065000390000079c06600197000000400700043d0000000006670019000600000007001d000000000076004b000000000700003900000001070040390000073d0060009c000000910000213d0000000100700190000000910000c13d000000400060043f00000006060000290000000006460436000500000006001d00000024022000390000000005250019000000000035004b000016750000213d000000000004004b000000000300001900000b9d0000613d0000000603000029000000000421034f000000000404043b000000200330003900000000004304350000002002200039000000000052004b00000b940000413d00000006010000290000000003010433000000800100043d000000000031004b000014010000c13d0000000d01000039000000000101041a000000ff0010019000000d6b0000613d000000000003004b000900000000001d000014350000c13d00000000010004110000073501100197000c00000001001d000000000010043f0000000f01000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000b00090010007400000e580000413d0000000c01000029000000000010043f0000000f01000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b0000000b02000029000000000021041b0000000c01000029000000000010043f0000001001000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000201041a000000090020002a0000085d0000413d00000009030000290000000002320019000000000021041b000000400100043d0000000000310435000007300010009c000007300100804100000040011002100000000002000414000007300020009c0000073002008041000000c002200210000000000112019f0000073c011001c70000800d020000390000000203000039000007dc04000041000000000500041100000ee80000013d0000000001000416000000000001004b000016750000c13d0000000401000039000000000101041a0000000302000039000000000202041a0000000001120049000000800010043f000007ac0100004100001cbe0001042e000000240030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000401100370000000000101043b1cbd1b540000040f000007350110019700000cc00000013d0000000001000416000000000001004b000016750000c13d000007dd01000041000000800010043f000007ac0100004100001cbe0001042e000000240030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000402043b0000073d0040009c000016750000213d0000002302400039000000000032004b000016750000813d0000000405400039000000000251034f000000000202043b0000073d0020009c000000910000213d0000001f0620003900000806066001970000003f0660003900000806066001970000079d0060009c000000910000213d00000024044000390000008006600039000000400060043f000000800020043f0000000004420019000000000034004b000016750000213d0000002003500039000000000331034f00000806042001980000001f0520018f000000a00140003900000c340000613d000000a006000039000000000703034f000000007807043c0000000006860436000000000016004b00000c300000c13d000000000005004b00000c410000613d000000000343034f0000000304500210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f0000000000310435000000a001200039000000000001043500000000010004110000073501100197000000000010043f0000073701000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff0010019000000b020000613d000000400100043d000000400200003900000000022104360000000c03000039000000000503041a000000010650019000000001035002700000007f0330618f0000001f0030008c00000000040000390000000104002039000000000445013f0000000100400190000003900000c13d000000400410003900000000003404350000006004100039000000000006004b000012a10000613d0000000c05000039000000000050043f000000000003004b0000000005000019000012a60000613d000007bf0600004100000000050000190000000007450019000000000806041a000000000087043500000001066000390000002005500039000000000035004b00000c6f0000413d000012a60000013d000000840030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000402100370000000000202043b000c00000002001d000007350020009c000016750000213d0000002402100370000000000202043b000b00000002001d000007350020009c000016750000213d0000004402100370000000000202043b0000073d0020009c000016750000213d0000002304200039000000000034004b000016750000813d0000000404200039000000000441034f000000000504043b0000073d0050009c000000910000213d00000005045002100000003f064000390000079c066001970000079d0060009c000000910000213d0000008006600039000000400060043f000000800050043f00000024022000390000000004240019000000000034004b000016750000213d000000000005004b00000ca80000613d0000008005000039000000000621034f000000000606043b000000200550003900000000006504350000002002200039000000000042004b00000ca10000413d0000006401100370000000000101043b0000073d0010009c000016750000213d000000040110003900000000020300191cbd173f0000040f000000000401001900000080030000390000000c010000290000000b020000291cbd19b60000040f000000000100001900001cbe0001042e000000240030008c000016750000413d0000000002000416000000000002004b000016750000c13d0000000401100370000000000101043b000007350010009c000016750000213d1cbd19fe0000040f000000400200043d0000000000120435000007300020009c00000730020080410000004001200210000007ad011001c700001cbe0001042e000000000004004b000000000100001900000d940000613d0000000301400210000008070110027f0000080701100167000000a00200043d000000000112016f0000000102400210000000000121019f00000d940000013d0000073f01000041000000000010043f000000040030043f000007400100004100001cbf00010430000007b801000041000000000010043f000000040020043f000007400100004100001cbf00010430000007ce01000041000000000010043f000007420100004100001cbf00010430000000000010043f000000200000043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b0000000101100039000000000101041a000a00000001001d000000000010043f000000200000043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d0000000002000411000000000101043b0000073502200197000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff00100190000010de0000c13d000007b001000041000000000010043f0000000001000411000000040010043f0000000a01000029000000240010043f000007b10100004100001cbf000104300000000701000029000000000001004b00000e300000c13d000007d001000041000000000010043f000007420100004100001cbf0001043000000000010004110000000b0010006b00000dd60000c13d0000000c01000029000000000010043f000000200000043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b0000000b02000029000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff0010019000000eeb0000613d0000000c01000029000000000010043f000000200000043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b0000000b02000029000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000201041a0000080502200197000000000021041b0000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d020000390000000403000039000007b7040000410000000c050000290000000b0600002900000000070600191cbd1cae0000040f0000000100200190000016750000613d00000eeb0000013d0000000d01000039000000000101041a000000ff0010019000000e440000c13d000007fa01000041000000000010043f000007420100004100001cbf000104300000000201000039000000000101041a000b00000001001d000c00d00010027a00000e5d0000c13d0000000202000039000000000102041a0000073501100197000000000012041b000000000100001900001cbe0001042e000000010320008a0000000503300270000000000331001900000020040000390000000103300039000000000504001900000080044000390000000004040433000000000041041b00000020045000390000000101100039000000000031004b00000d7f0000c13d000000a003500039000000000062004b00000d910000813d0000000302600210000000f80220018f000008070220027f00000807022001670000000003030433000000000223016f000000000021041b000000010160021000000001011001bf0000000503000039000000000013041b000000c00100043d000c00000001001d0000073d0010009c000000910000213d0000000606000039000000000106041a000000010010019000000001031002700000007f0330618f0000001f0030008c00000000020000390000000102002039000000000121013f0000000100100190000003900000c13d000000200030008c00000dc30000413d000b00000003001d000000000060043f0000000001000414000007300010009c0000073001008041000000c0011002100000073c011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d0000000c030000290000001f023000390000000502200270000000200030008c0000000002004019000000000301043b0000000b010000290000001f01100039000000050110027000000000011300190000000002230019000000000012004b000000060600003900000dc30000813d000000000002041b0000000102200039000000000012004b00000dbf0000413d0000000c03000029000000200030008c00000e0f0000413d000000000060043f0000000001000414000007300010009c0000073001008041000000c0011002100000073c011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d0000000c070000290000080602700198000000000101043b00000f7c0000c13d000000e00300003900000f8a0000013d000007f201000041000000000010043f000007420100004100001cbf000104300000079e001001980000000b0100002900000de40000c13d000000000010043f0000000901000039000000200010043f00000040010000391cbd1c9d0000040f000000000101041a00000c010000013d000007ff01000041000000000010043f000007420100004100001cbf000104300000079e0010019800000e070000c13d0000000c05000039000000000405041a000000010640019000000001034002700000007f0330618f0000001f0030008c00000000010000390000000101002039000000000114013f0000000100100190000003900000c13d000000400200043d0000000001320436000000000006004b000010b10000613d000000000050043f000000000003004b0000000004000019000010b60000613d000007bf0500004100000000040000190000000006140019000000000705041a000000000076043500000001055000390000002004400039000000000034004b00000dff0000413d000010b60000013d000007be01000041000000000010043f000007420100004100001cbf00010430000007fc01000041000000000010043f000007420100004100001cbf00010430000000000003004b000000000100001900000f970000613d0000000301300210000008070110027f0000080701100167000000e00200043d000000000112016f000000010530021000000f960000013d000000a001100270000007b501100197000002df0000013d0000000d01000039000000000201041a000000ff0020019000000f560000c13d000008050220019700000001022001bf000000000021041b0000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d020000390000000103000039000007c80400004100000ee80000013d000007cc01000041000000000010043f000007420100004100001cbf00010430000000000010043f0000000801000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000400200043d000000000101043b000000000101041a0000073d0310019800000fb00000c13d00000000010200190000006002000039000008310000013d000b00000002001d00000000010004110000073501100197000a00000001001d000000000010043f0000000f01000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a0009000b00100074000010190000813d000007a702000041000000000020043f000000040010043f000007400100004100001cbf00010430000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f0000000100200190000016770000613d000000000101043b0000000c0010006b000010410000813d0000000b010000290000003001100210000007b2011001970000000102000039000000000302041a0000073303300197000000000113019f000000000012041b00000d740000013d000007b801000041000000000010043f000000040050043f000007400100004100001cbf000104300000073000b0009c000007300300004100000000030b40190000004003300210000007300010009c0000073001008041000000c001100210000000000131019f00000740011001c7000b0000000b001d1cbd1cb30000040f0000000b0b00002900000060031002700000073003300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b001900000e940000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b00000e900000c13d000000000006004b00000ea10000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f000200000001035500000001002001900000104d0000613d0000001f01400039000000600210018f0000000001b20019000000000021004b000000000200003900000001020040390000073d0010009c000000910000213d0000000100200190000000910000c13d000000400010043f000000200030008c000016750000413d00000000020b0433000000440410003900000000002404350000002002100039000007d2040000410000000000420435000000240410003900000000050004110000000000540435000000440400003900000000004104350000079d0010009c000000910000213d0000008004100039000b00000004001d000000400040043f000000000401043300000000010004140000000c05000029000000040050008c0000120d0000c13d0000073d0030009c000000910000213d00000001020000390000132b0000013d0000001102000039000000000302041a0000073603300197000000000343019f000000000032041b0000000000410435000007300010009c000007300100804100000040011002100000000002000414000007300020009c0000073002008041000000c002200210000000000112019f0000073c011001c70000800d020000390000000103000039000007f40400004100000ee80000013d0000080502200197000000000021041b0000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d020000390000000103000039000007ae040000411cbd1cae0000040f0000000100200190000016750000613d000000000100001900001cbe0001042e000007ea0040009c000000910000213d0000000303000039000000000403041a0000000b03700029000000000331034f000000000503043b0000008003200039000000400030043f0000006003200039000000000003043500000040032000390000000000030435000000200320003900000000000304350000000000020435000000000054004b00000f460000a13d000a00000007001d000c00000005001d000000000050043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000000001004b00000f140000c13d0000000c05000029000000010550008a00000f000000013d000000400100043d0000079d0010009c0000000c03000029000000910000213d0000008002100039000000400020043f0000006002100039000000000002043500000040021000390000000000020435000000200210003900000000000204350000000000010435000000000030043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000400200043d0000079d0020009c0000000a07000029000000910000213d000000000301034f0000000301000039000000000401041a0000000101000367000000000303043b000000000303041a0000008005200039000000400050043f0000006005200039000000e80630027000000000006504350000079e003001980000000005000039000000010500c0390000004006200039000000000056043500000735053001970000000005520436000000a0033002700000073d033001970000000000350435000000200370008c00000080057000390000000000250435000000400200043d000004e60000613d0000079d0020009c000000000703001900000ef10000a13d000000910000013d000007300010009c0000073001008041000000c001100210000000000003004b0000106b0000c13d00000000020400190000106e0000013d000007c701000041000000000010043f000007420100004100001cbf00010430000000000010043f0000000a01000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b00000000020004110000073502200197000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff00100190000004a40000c13d000007fd01000041000000000010043f000007420100004100001cbf00010430000000010320008a00000005033002700000000003310019000000200400003900000001033000390000000005040019000000c0044000390000000004040433000000000041041b00000020045000390000000101100039000000000031004b00000f810000c13d000000e00350003900000001050000390000000606000039000000000072004b00000f950000813d0000000302700210000000f80220018f000008070220027f00000807022001670000000003030433000000000223016f000000000021041b0000000101700210000000000151019f000000000016041b0000000301000039000000000001041b0000002001000039000001000010044300000120000004430000073e0100004100001cbe0001042e000b00000002001d0000000201000039000000000101041a000900000001001d000a00d00010027a000011280000c13d0000000101000039000000000101041a000000d0011002700000000c02000029000a07b50020019b0000000a0110006c0000113a0000813d0000000a01000029000007e40010009c000007e4010080410000113c0000013d000000060030006b0000000603004029000900000003001d0000000501300210000500000002001d00000000011200190000002001100039000000400010043f000a00000001001d0000079d0010009c000000910000213d0000000a020000290000008001200039000000400010043f00000060012000390000000000010435000000400120003900000000000104350000002001200039000000000001043500000000000204350000000301000039000000000101041a000000000001004b0000000001000019000011f80000c13d000b00000001001d000800000000001d00000000050000190000000001000019000000090200002900000fd60000013d000b00000000001d00000009020000290000000a01000029000000400010043f00000001055000390000000101000039000000010010019000000fdc0000613d000000060050006c000013ba0000613d000000080020006b000013ba0000613d000000400100043d0000079d0010009c000000910000213d0000008002100039000000400020043f0000006002100039000000000002043500000040021000390000000000020435000000200210003900000000000204350000000000010435000c00000005001d000000000050043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000400200043d0000079d0020009c0000000c05000029000000910000213d000000000101043b000000000101041a0000006003200039000000e804100270000000000043043500000040032000390000079e001001980000000004000039000000010400c0390000000000430435000000a0031002700000073d03300197000000200420003900000000003404350000073501100197000000000012043500000fd00000c13d000000000001004b00000000020100190000000b02006029000b00000002001d000000070120014f0000073500100198000000050200002900000fd10000c13d00000008010000290000000101100039000800000001001d00000005011002100000000001210019000000000051043500000fd10000013d0000000a01000029000000000010043f0000000f01000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b0000000902000029000000000021041b0000000a01000029000000000010043f0000001001000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000301041a0000000b0030002a0000085d0000413d0000000b020000290000000003230019000000000031041b0000000c010000291cbd1ae40000040f000000000100001900001cbe0001042e0000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d020000390000000103000039000007e5040000411cbd1cae0000040f000000010020019000000d740000c13d000016750000013d0000001f0530018f000007a606300198000000400200043d0000000004620019000010580000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000010540000c13d000000000005004b000010650000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000007300020009c00000730020080410000004002200210000000000112019f00001cbf0001043000000739011001c7000080090200003900000000050000191cbd1cae0000040f00020000000103550000006001100270000007300010019d0000073001100197000000000001004b000010880000c13d000000010020019000000eeb0000c13d000000400100043d0000004402100039000007bb03000041000000000032043500000024021000390000000f030000390000000000320435000007bc020000410000000000210435000000040210003900000020030000390000000000320435000007300010009c00000730010080410000004001100210000007bd011001c700001cbf000104300000073d0010009c000000910000213d0000001f0410003900000806044001970000003f044000390000080605400197000000400400043d0000000005540019000000000045004b000000000600003900000001060040390000073d0050009c000000910000213d0000000100600190000000910000c13d000000400050043f000000000614043600000806031001980000001f0410018f00000000013600190000000205000367000010a30000613d000000000705034f000000007807043c0000000006860436000000000016004b0000109f0000c13d000000000004004b000010750000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f0000000000310435000010750000013d00000805044001970000000000410435000000000003004b000000200400003900000000040060390000003f0440003900000806044001970000000005240019000000000045004b000000000400003900000001040040390000073d0050009c000000910000213d0000000100400190000000910000c13d000000400050043f0000000004020433000000000004004b000011620000c13d000007c00050009c000000910000213d0000002001500039000000400010043f0000000000050435000000400400043d0000000002050019000011630000013d000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f0000000100200190000016770000613d000000000101043b0000000a0010006b000001990000813d0000000901000029000000a001100270000007b5011001970000019c0000013d0000000c01000029000000000010043f000000200000043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b0000000b02000029000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000ff0010019000000eeb0000c13d0000000c01000029000000000010043f000000200000043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b0000000b02000029000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000201041a000008050220019700000001022001bf000000000021041b0000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d0200003900000004030000390000073a040000410000000c050000290000000b0600002900000000070004111cbd1cae0000040f0000000100200190000016750000613d00000eeb0000013d000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f0000000100200190000016770000613d000000000101043b0000000a0010006b00000fa50000813d0000000901000029000000a001100270000007b50110019700000fa80000013d000007b50010009c0000085d0000213d0000000b01100029000b00000001001d000007b50010009c0000085d0000213d0000000201000039000000000101041a000800000001001d000900d00010027a000012230000c13d0000000203000039000000000103041a00000735011001970000000c02000029000000a002200210000007b302200197000000000112019f0000000b04000029000000d002400210000000000121019f000000000013041b000000400100043d000000200210003900000000004204350000000a020000290000000000210435000007300010009c000007300100804100000040011002100000000002000414000007300020009c0000073002008041000000c002200210000000000112019f00000738011001c70000800d020000390000000103000039000007e60400004100000ee80000013d000000000405001900000020050000390000000006540436000000000502043300000000005604350000004002400039000000000005004b000011720000613d000000000600001900000000072600190000000008610019000000000808043300000000008704350000002006600039000000000056004b0000116b0000413d0000001f0150003900000806011001970000000003520019000000000003043500000000014100490000000001210019000007300010009c00000730010080410000006001100210000007300040009c00000730040080410000004002400210000000000121019f00001cbe0001042e000c00000001001d000900000000001d00000000010000190000000b050000290000118a0000013d000c00000000001d0000000a01000029000000400010043f000000010550003900000001010000390000000100100190000011910000613d000000070050006c000013bf0000613d0000000902000029000000060020006c000013bf0000613d000000400100043d0000079d0010009c000000910000213d0000008002100039000000400020043f0000006002100039000000000002043500000040021000390000000000020435000000200210003900000000000204350000000000010435000b00000005001d000000000050043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000400200043d0000079d0020009c0000000b05000029000000910000213d000000000101043b000000000101041a0000006003200039000000e804100270000000000043043500000040032000390000079e001001980000000004000039000000010400c0390000000000430435000000a0031002700000073d033001970000002004200039000000000034043500000735011001970000000000120435000011850000c13d000000000001004b00000000020100190000000c02006029000c00000002001d000000080120014f0000073500100198000011860000c13d00000009010000290000000101100039000900000001001d000000050110021000000005011000290000000000510435000011860000013d000000000000043f000000200000043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b0000000c02000029000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000201041a0000080502200197000000000021041b0000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d020000390000000403000039000007b70400004100000000050000190000000c0600002900000000070004111cbd1cae0000040f00000001002001900000054b0000c13d000016750000013d0000000001000019000c00000001001d000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000101041a000000000001004b000012f80000c13d0000000c01000029000000010110008a000011f90000013d000007300020009c00000730020080410000004002200210000007300040009c00000730040080410000006003400210000000000223019f000007300010009c0000073001008041000000c001100210000000000112019f0000000c020000291cbd1cae0000040f000000010220018f00020000000103550000006001100270000007300010019d0000073003100198000013290000c13d000b00600000003d000a00800000003d000013530000013d000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f0000000100200190000016770000613d000000000101043b000000090010006b000013c60000813d00000008010000290000003001100210000007b2011001970000000102000039000000000302041a0000073303300197000000000113019f000000000012041b000011450000013d000000400100043d0000079d0010009c000000910000213d0000008002100039000000400020043f00000060021000390000000000020435000000400210003900000000000204350000002002100039000000000002043500000000000104350000000c01000029000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000400200043d0000079d0020009c000000910000213d000000000101043b000000000101041a0000008003200039000000400030043f0000006003200039000000e804100270000000000043043500000040032000390000079e001001980000000004000039000000010400c0390000000000430435000000a0031002700000073d033001970000002004200039000000000034043500000735011001970000000000120435000c00000000001d000c00000001601d000011810000013d000007dd010000410000000c02000029000000000021041b000000800100043d000000000001004b00000eeb0000613d00000000020004140000000c03000029000000040030008c000013d20000c13d000000000100003200000eeb0000613d0000073d0010009c000000910000213d0000001f0210003900000806022001970000003f022000390000080603200197000000400200043d0000000003320019000000000023004b000000000400003900000001040040390000073d0030009c000000910000213d0000000100400190000000910000c13d000000400030043f000000000512043600000806021001980000001f0310018f00000000012500190000000204000367000012920000613d000000000604034f000000006706043c0000000005750436000000000015004b0000128e0000c13d000000000003004b00000eeb0000613d000000000224034f0000000303300210000000000401043300000000043401cf000000000434022f000000000202043b0000010003300089000000000232022f00000000023201cf000000000242019f0000000000210435000000000100001900001cbe0001042e00000805055001970000000000540435000000000003004b00000020050000390000000005006039000000000445001900000000031400490000000000320435000000800300043d0000000002340436000000000003004b000012b50000613d00000000040000190000000005240019000000a006400039000000000606043300000000006504350000002004400039000000000034004b000012ae0000413d000000000432001900000000000404350000001f03300039000008060330019700000000021200490000000002320019000007300020009c00000730020080410000006002200210000007300010009c00000730010080410000004001100210000000000112019f0000000002000414000007300020009c0000073002008041000000c002200210000000000112019f00000739011001c70000800d020000390000000103000039000c00000003001d000007ec040000411cbd1cae0000040f0000000100200190000016750000613d000000800100043d0000073d0010009c000000910000213d0000000c02000039000000000302041a000000010030019000000001023002700000007f0220618f0000001f0020008c00000000040000390000000104002039000000000343013f0000000100300190000003900000c13d000000200020008c000012ef0000413d0000000c03000039000000000030043f0000001f031000390000000503300270000007ed0330009a000000200010008c000007bf030040410000001f022000390000000502200270000007ed0220009a000000000023004b000012ef0000813d000000000003041b0000000103300039000000000023004b000012eb0000413d0000001f0010008c000014050000a13d0000000c02000039000000000020043f0000080603100198000014c00000c13d000000a004000039000007bf02000041000014ce0000013d000000400100043d0000079d0010009c000000910000213d0000008002100039000000400020043f00000060021000390000000000020435000000400210003900000000000204350000002002100039000000000002043500000000000104350000000c01000029000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000400200043d0000079d0020009c000000910000213d000000000101043b000000000101041a0000008003200039000000400030043f0000006003200039000000e804100270000000000043043500000040032000390000079e001001980000000004000039000000010400c0390000000000430435000000a0031002700000073d033001970000002004200039000000000034043500000735011001970000000000120435000b00000000001d000b00000001601d00000fcb0000013d000000400100043d000b00000001001d0000001f01300039000007d3011001970000003f01100039000007d4041001970000000b01400029000000000041004b000000000400003900000001040040390000073d0010009c000000910000213d0000000100400190000000910000c13d000000400010043f0000000b01000029000000000531043600000806043001980000001f0330018f000a00000005001d00000000014500190000000205000367000013460000613d000000000605034f0000000a07000029000000006806043c0000000007870436000000000017004b000013420000c13d000000000003004b000013530000613d000000000445034f0000000303300210000000000501043300000000053501cf000000000535022f000000000404043b0000010003300089000000000434022f00000000033401cf000000000353019f00000000003104350000000b010000290000000001010433000000000002004b0000135d0000c13d000000000001004b000013b10000c13d000007d901000041000000000010043f000007420100004100001cbf00010430000000000001004b000014ad0000c13d000007d50100004100000000001004430000000c0100002900000004001004430000000001000414000007300010009c0000073001008041000000c001100210000007ba011001c700008002020000391cbd1cb30000040f0000000100200190000016770000613d000000000101043b000000000001004b000014a90000c13d000007d801000041000014bb0000013d0000000301000039000000000101041a000c00000001001d000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f0000000100200190000016770000613d000000000101043b000a00000001001d0000000c01000029000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d0000000a02000029000000a0022002100000000903000029000000010030008c0000000003000019000007a903006041000000000223019f0000000b03000029000000000232019f000000000101043b000000000021041b000000000030043f0000000801000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d0000000902000029000007da022000d1000000000101043b000000000301041a0000000002230019000000000021041b0000000b0000006b000016410000c13d000007f801000041000000000010043f000007420100004100001cbf000104300000000a02000029000007300020009c00000730020080410000004002200210000007300010009c00000730010080410000006001100210000000000121019f00001cbf00010430000000050200002900000008010000290000000000120435000000400100043d000008310000013d000000050100002900000009020000290000000000210435000000400100043d000c00000001001d0000000502000029000008320000013d0000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d020000390000000103000039000007e5040000411cbd1cae0000040f0000000100200190000011450000c13d000016750000013d000007300020009c0000073002008041000000c002200210000007300010009c00000730010080410000006001100210000000000121019f000007de011001c70000000c020000291cbd1cb80000040f00020000000103550000006003100270000007300030019d00000730033001980000140f0000c13d000000010020019000000eeb0000c13d000000400100043d0000004402100039000007e103000041000000000032043500000024021000390000000b030000390000107d0000013d00000008010000290000000002010433000000800100043d000000000021004b000014010000c13d000000000001004b0000000004000019000016010000c13d000000400100043d0000000000410435000007300010009c000007300100804100000040011002100000000002000414000007300020009c0000073002008041000000c002200210000000000112019f0000073c011001c70000800d020000390000000103000039000007c50400004100000ee80000013d000007f001000041000000000010043f000007420100004100001cbf00010430000000000001004b0000000002000019000014090000613d000000a00200043d0000000303100210000008070330027f0000080703300167000000000232016f000c000100100218000014d80000013d0000001f04300039000007df044001970000003f04400039000007e004400197000000400500043d0000000004450019000000000054004b000000000600003900000001060040390000073d0040009c000000910000213d0000000100600190000000910000c13d000000400040043f0000001f0430018f0000000006350436000007a6053001980000000003560019000014270000613d000000000701034f000000007807043c0000000006860436000000000036004b000014230000c13d000000000004004b000013e10000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000130435000013e10000013d00000003030000390000000004000019000900000000001d000000050140021000000005021000290000000005020433000000000005004b000009e40000613d000000090050002a0000085d0000413d000000800200043d000000000042004b000016330000a13d000a00000005001d000700000004001d000000a0011000390000000001010433000b07350010019b00000000010004100000000b0010006b000000f40000613d000000000103041a000c00000001001d000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f0000000100200190000016770000613d000000000101043b000800000001001d0000000c01000029000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d0000000802000029000000a0022002100000000a03000029000000010030008c0000000003000019000007a903006041000000000223019f0000000b03000029000000000232019f000000000101043b000000000021041b000000000030043f0000000801000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d0000000a04000029000007da024000d1000000000101043b000000000301041a0000000002230019000000000021041b0000000b0000006b000013ad0000613d000900090040002d000a000c0040002d0000000001000019000014990000013d0000000c070000290000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d020000390000000403000039000007aa0400004100000000050000190000000b06000029000c00000007001d1cbd1cae0000040f00000001002001900000000101000039000016750000613d0000000100100190000014890000613d0000000c0700002900000001077000390000000a0070006c0000148a0000c13d00000003030000390000000a01000029000000000013041b0000000704000029000000010440003900000006010000290000000001010433000000000014004b000014380000413d00000ba70000013d0000000b010000290000000001010433000000000001004b00000eeb0000613d000007d60010009c000016750000213d000000200010008c000016750000413d0000000a010000290000000001010433000000000001004b0000000002000039000000010200c039000000000021004b000016750000c13d000000000001004b00000eeb0000c13d000007d701000041000000000010043f0000000c01000029000000040010043f000007400100004100001cbf00010430000007bf020000410000002005000039000000010430008a0000000504400270000007ee0440009a000000000605001900000080055000390000000005050433000000000052041b00000020056000390000000102200039000000000042004b000014c50000c13d000000a004600039000000000013004b000014d70000813d0000000303100210000000f80330018f000008070330027f00000807033001670000000004040433000000000334016f000000000032041b00000001021002100000000c012001af0000000c02000039000000000012041b000000000100001900001cbe0001042e0000000003000019000a00000000001d000c00000003001d0000000501300210000900000001001d000000a001100039000800000001001d00000000010104330000073501100197000000000010043f0000000f01000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b0000000b0200002900000000020204330000000c04000029000000000042004b000016330000a13d000000000201041a00000009030000290000000705300029000000800100043d0000000003050433000000000232004b000900000005001d000015140000a13d000600000002001d000000000041004b000016330000a13d000000080100002900000000010104330000073501100197000000000010043f0000000f01000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d0000000602000029000015260000013d000000000041004b000016330000a13d000000080100002900000000010104330000073501100197000000000010043f0000000f01000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d0000000002000019000000000101043b000000000021041b0000000b0100002900000000010104330000000c03000029000000000031004b0000000901000029000016330000a13d00000000010104330000000a02000029000000000021001a0000085d0000413d000a00000021001d0000000103300039000000800100043d000000000013004b000014df0000413d0000029a0000013d0000000003000019000900000000001d000015440000013d0000073d0040009c000000910000213d000000400040043f0000000803000029000000010330003900000005010000290000000001010433000000000013004b000009400000813d000000050130021000000002041000290000000005040433000000000005004b000009e40000613d000000090050002a0000085d0000413d000000800200043d000000000032004b000016330000a13d000a00000005001d000400000004001d000800000003001d000000a001100039000300000001001d0000000001010433000b07350010019b00000000010004100000000b0010006b000000f40000613d0000000301000039000000000101041a000c00000001001d000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f0000000100200190000016770000613d000000000101043b000600000001001d0000000c01000029000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d0000000602000029000000a0022002100000000a03000029000000010030008c0000000003000019000007a903006041000000000223019f0000000b03000029000000000232019f000000000101043b000000000021041b000000000030043f0000000801000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d0000000a04000029000007da024000d1000000000101043b000000000301041a0000000002230019000000000021041b0000000b0000006b000013ad0000613d000900090040002d000a000c0040002d0000000001000019000015a80000013d0000000c070000290000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d020000390000000403000039000007aa0400004100000000050000190000000b06000029000c00000007001d1cbd1cae0000040f00000001002001900000000101000039000016750000613d0000000100100190000015980000613d0000000c0700002900000001077000390000000a0070006c000015990000c13d00000003010000390000000a02000029000000000021041b000000070000006b0000153e0000613d000000800100043d0000000802000029000000000021004b0000000403000029000016330000a13d00000005010000290000000001010433000000000021004b000016330000a13d00000003010000290000000001010433000b00000001001d0000000001030433000c00000001001d000007d5010000410000000000100443000000070100002900000004001004430000000001000414000007300010009c0000073001008041000000c001100210000007ba011001c700008002020000391cbd1cb30000040f0000000100200190000016770000613d000000000101043b000000000001004b000016750000613d0000000b010000290000073501100197000000400400043d00000044024000390000000c030000290000000000320435000000240240003900000001030000290000000000320435000007db0200004100000000002404350000000402400039000000000012043500000000010004140000000702000029000000040020008c0000153b0000613d000007300040009c000007300200004100000000020440190000004002200210000007300010009c0000073001008041000000c001100210000000000121019f000007bd011001c70000000702000029000c00000004001d1cbd1cae0000040f0000000c040000290000006003100270000007300030019d000200000001035500000001002001900000153b0000c13d00000730033001970000001f0530018f000007a606300198000000400200043d0000000004620019000010580000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000015fc0000c13d000010580000013d000000000500001900000000040000190000000502500210000000a00320003900000000030304330000073503300198000016820000613d000000000051004b000016330000a13d000b00000005001d000c00000004001d0000000701200029000900000001001d0000000001010433000a00000001001d000000000030043f0000000f01000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000016750000613d000000000101043b000000000201041a0000000a03000029000000000032001a0000000c040000290000000b050000290000085d0000413d0000000002320019000000000021041b00000008010000290000000001010433000000000051004b000016330000a13d00000009020000290000000002020433000000000042001a0000085d0000413d00000000044200190000000105500039000000800200043d000000000025004b000016030000413d000013f20000013d000007ef01000041000000000010043f0000003201000039000000040010043f000007400100004100001cbf000104300000079f01000041000000000010043f000007420100004100001cbf00010430000007ab01000041000000000010043f000007420100004100001cbf000104300000000c02000029000a00090020002d0000000001000019000016550000013d0000000c070000290000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d020000390000000403000039000007aa0400004100000000050000190000000b06000029000c00000007001d1cbd1cae0000040f00000001002001900000000101000039000016750000613d0000000100100190000016450000613d0000000c0700002900000001077000390000000a0070006c000016460000c13d00000003010000390000000a02000029000000000021041b0000000801000029000c07350010019c00000eeb0000613d0000001101000039000000000101041a000a07350010019c00000eeb0000613d000007d50100004100000000001004430000000a0100002900000004001004430000000001000414000007300010009c0000073001008041000000c001100210000007ba011001c700008002020000391cbd1cb30000040f0000000100200190000016770000613d000000000101043b000000000001004b000016950000c13d000000000100001900001cbf00010430000000000001042f000007a001000041000000000010043f000007420100004100001cbf00010430000007a701000041000000450000013d000007a801000041000000000010043f000007420100004100001cbf00010430000000400100043d0000004402100039000007c4030000410000000000320435000000240210003900000014030000390000107d0000013d0000001f0530018f000007a606300198000000400200043d0000000004620019000010580000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000016900000c13d000010580000013d000000400300043d00000044013000390000000902000029000000000021043500000024013000390000000c020000290000000000210435000007db010000410000000000130435000c00000003001d00000004013000390000000b02000029000000000021043500000000010004140000000a02000029000000040020008c000016b60000613d0000000c02000029000007300020009c00000730020080410000004002200210000007300010009c0000073001008041000000c001100210000000000121019f000007bd011001c70000000a020000291cbd1cae0000040f0000006003100270000007300030019d00020000000103550000000100200190000016bd0000613d0000000c010000290000073d0010009c000000910000213d0000000c01000029000000400010043f000000000100001900001cbe0001042e00000730033001970000001f0530018f000007a606300198000000400200043d0000000004620019000010580000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000016c50000c13d000010580000013d0000001f0220003900000806022001970000000001120019000000000021004b000000000200003900000001020040390000073d0010009c000016d60000213d0000000100200190000016d60000c13d000000400010043f000000000001042d000007ef01000041000000000010043f0000004101000039000000040010043f000007400100004100001cbf00010430000007d60010009c000017130000213d0000000004010019000000630010008c000017130000a13d00000001050003670000000401500370000000000101043b000007350010009c000017130000213d0000002402500370000000000202043b000007350020009c000017130000213d0000004403500370000000000603043b0000073d0060009c000017130000213d0000002303600039000000000043004b000017130000813d0000000403600039000000000335034f000000000703043b0000073b0070009c000017150000813d00000005087002100000003f038000390000079c09300197000000400300043d0000000009930019000000000039004b000000000a000039000000010a0040390000073d0090009c000017150000213d0000000100a00190000017150000c13d000000400090043f000000000073043500000024066000390000000008680019000000000048004b000017130000213d000000000007004b000017120000613d0000000004030019000000000765034f000000000707043b000000200440003900000000007404350000002006600039000000000086004b0000170b0000413d000000000001042d000000000100001900001cbf00010430000007ef01000041000000000010043f0000004101000039000000040010043f000007400100004100001cbf0001043000000000430104340000000001320436000000000003004b000017270000613d000000000200001900000000052100190000000006240019000000000606043300000000006504350000002002200039000000000032004b000017200000413d000000000231001900000000000204350000001f0230003900000806022001970000000001210019000000000001042d000007d60010009c0000173d0000213d000000630010008c0000173d0000a13d00000001030003670000000401300370000000000101043b000007350010009c0000173d0000213d0000002402300370000000000202043b000007350020009c0000173d0000213d0000004403300370000000000303043b000000000001042d000000000100001900001cbf0001043000000000030100190000001f01100039000000000021004b0000000004000019000007c204004041000007c205200197000007c201100197000000000651013f000000000051004b0000000001000019000007c201002041000007c20060009c000000000104c019000000000001004b000017870000613d0000000105000367000000000135034f000000000401043b0000073b0040009c000017810000813d0000001f0140003900000806011001970000003f011000390000080607100197000000400100043d0000000007710019000000000017004b000000000800003900000001080040390000073d0070009c000017810000213d0000000100800190000017810000c13d0000002008300039000000400070043f00000000034104360000000007840019000000000027004b000017870000213d000000000585034f00000806064001980000001f0740018f0000000002630019000017710000613d000000000805034f0000000009030019000000008a08043c0000000009a90436000000000029004b0000176d0000c13d000000000007004b0000177e0000613d000000000565034f0000000306700210000000000702043300000000076701cf000000000767022f000000000505043b0000010006600089000000000565022f00000000056501cf000000000575019f000000000052043500000000024300190000000000020435000000000001042d000007ef01000041000000000010043f0000004101000039000000040010043f000007400100004100001cbf00010430000000000100001900001cbf000104300000073502200197000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000017970000613d000000000101043b000000000001042d000000000100001900001cbf0001043000000000430104340000073503300197000000000332043600000000040404330000073d04400197000000000043043500000040031000390000000003030433000000000003004b0000000003000039000000010300c03900000040042000390000000000340435000000600220003900000060011000390000000001010433000007eb011001970000000000120435000000000001042d0000000c04000039000000000304041a000000010530019000000001023002700000007f0220618f0000001f0020008c00000000060000390000000106002039000000000065004b000017d00000c13d0000000001210436000000000005004b000017c70000613d000000000040043f000000000002004b000017ce0000613d000007bf0400004100000000030000190000000005310019000000000604041a000000000065043500000001044000390000002003300039000000000023004b000017be0000413d0000000001310019000000000001042d00000805033001970000000000310435000000000002004b000000200300003900000000030060390000000001310019000000000001042d0000000001010019000000000001042d000007ef01000041000000000010043f0000002201000039000000040010043f000007400100004100001cbf0001043000000020030000390000000004310436000000000302043300000000003404350000004001100039000000000003004b000017e40000613d00000000040000190000002002200039000000000502043300000000015104360000000104400039000000000034004b000017de0000413d000000000001042d0008000000000002000200000002001d000600000001001d000700000003001d000000000030043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f00000001002001900000195b0000613d000000000101043b000000000101041a000000000001004b000018110000c13d0000000301000039000000000101041a000000070010006c0000195e0000a13d0000000702000029000000010220008a000800000002001d000000000020043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f00000001002001900000195b0000613d000000000101043b000000000101041a000000000001004b0000000802000029000017fe0000613d0000079e001001980000195e0000c13d00000006020000290000073502200197000300000001001d0000073501100197000800000002001d000000000021004b000019620000c13d0000000701000029000000000010043f0000000901000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f00000001002001900000195b0000613d000000000101043b000100000001001d000000000101041a000500000001001d00000000010004110000073502100197000400000002001d000000080020006c000018510000613d0000000402000029000000050020006c000018510000613d0000000801000029000000000010043f0000000a01000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f00000001002001900000195b0000613d000000000101043b0000000402000029000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f00000001002001900000195b0000613d000000000101043b000000000101041a000000ff00100190000019740000613d0000000201000029000607350010019b0000000001000410000000060010006b000019660000613d000000080000006b000018da0000613d0000000e01000039000000000101041a000207a4001000a40000196e0000813d000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f00000001002001900000195d0000613d000000000101043b000000020010006c0000187b0000813d0000000401000029000000000010043f0000073701000041000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f00000001002001900000195b0000613d000000000101043b000000000101041a000000ff00100190000019830000613d0000001101000039000000000101041a0000073502100198000018da0000613d000000400b00043d000007a50100004100000000001b04350000000401b00039000000080300002900000000003104350000000001000414000000040020008c0000188d0000c13d0000000003000031000000200030008c00000020040000390000000004034019000018b90000013d0000073000b0009c000007300300004100000000030b40190000004003300210000007300010009c0000073001008041000000c001100210000000000131019f00000740011001c700040000000b001d1cbd1cb30000040f000000040b00002900000060031002700000073003300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b0019000018a80000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b000018a40000c13d000000000006004b000018b50000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f00020000000103550000000100200190000019870000613d0000001f01400039000000600210018f0000000001b20019000000000021004b000000000200003900000001020040390000073d0010009c000019780000213d0000000100200190000019780000c13d000000400010043f000000200030008c0000195b0000413d00000000010b0433000400000001001d0000000801000029000000000010043f0000000801000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f00000001002001900000195b0000613d000000000101043b000000000101041a0000073d01100197000000040010006c0000197e0000a13d000000050000006b000018de0000613d0000000101000029000000000001041b0000000801000029000000000010043f0000000801000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f00000001002001900000195b0000613d000000000101043b000000000201041a000000010220008a000000000021041b0000000601000029000000000010043f0000000801000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f00000001002001900000195b0000613d000000000101043b000000000201041a0000000102200039000000000021041b000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f00000001002001900000195d0000613d000000000101043b000500000001001d0000000701000029000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f00000001002001900000195b0000613d0000000502000029000000a00220021000000006022001af000007a9022001c7000000000101043b000000000021041b0000000301000029000007a9001001980000194a0000c13d00000007010000290000000101100039000500000001001d000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f00000001002001900000195b0000613d000000000101043b000000000101041a000000000001004b0000194a0000c13d0000000301000039000000000101041a000000050010006b0000194a0000613d0000000501000029000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f00000001002001900000195b0000613d000000000101043b0000000302000029000000000021041b0000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d020000390000000403000039000007aa040000410000000805000029000000060600002900000007070000291cbd1cae0000040f00000001002001900000195b0000613d000000060000006b0000196a0000613d000000000001042d000000000100001900001cbf00010430000000000001042f000007fc01000041000000000010043f000007420100004100001cbf000104300000079f01000041000000000010043f000007420100004100001cbf00010430000007f901000041000000000010043f000007420100004100001cbf00010430000007ab01000041000000000010043f000007420100004100001cbf00010430000007ef01000041000000000010043f0000001101000039000000040010043f000007400100004100001cbf00010430000007a001000041000000000010043f000007420100004100001cbf00010430000007ef01000041000000000010043f0000004101000039000000040010043f000007400100004100001cbf00010430000007a701000041000000000010043f000000040000043f000007400100004100001cbf00010430000007a801000041000000000010043f000007420100004100001cbf000104300000001f0530018f000007a606300198000000400200043d0000000004620019000019920000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000198e0000c13d000000000005004b0000199f0000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000007300020009c00000730020080410000004002200210000000000112019f00001cbf00010430000000000010043f000000200000043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000019b40000613d000000000101043b0000000101100039000000000101041a000000000001042d000000000100001900001cbf000104300006000000000002000100000004001d0000000054030434000000000004004b000500000002001d000400000003001d000300000001001d000200000005001d000019d00000613d0000000004000019000600000004001d00000005024002100000000002250019000000000302043300000005020000291cbd17e50000040f00000002050000290000000301000029000000040300002900000005020000290000000604000029000600010040003d0000000004030433000000060040006b0000000604000029000019c00000413d000007d501000041000000000010044300000004002004430000000001000414000007300010009c0000073001008041000000c001100210000007ba011001c700008002020000391cbd1cb30000040f0000000100200190000019fd0000613d000000000101043b000000000001004b0000000403000029000000050200002900000003010000290000000204000029000019f80000613d0000000003030433000000000003004b000019f80000613d0000000003000019000600000003001d00000005033002100000000003340019000000000303043300000001040000291cbd1b870000040f000000000001004b000019f90000613d0000000603000029000000010330003900000004010000290000000001010433000000000013004b000000050200002900000003010000290000000204000029000019e70000413d000000000001042d0000080801000041000000000010043f000007420100004100001cbf00010430000000000001042f000007350110019800001a100000613d000000000010043f0000000801000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f000000010020019000001a140000613d000000000101043b000000000101041a0000073d01100197000000000001042d000007d001000041000000000010043f000007420100004100001cbf00010430000000000100001900001cbf000104300004000000000002000300000004001d000400000002001d000100000001001d000200000003001d1cbd17e50000040f000007d5010000410000000000100443000000040100002900000004001004430000000001000414000007300010009c0000073001008041000000c001100210000007ba011001c700008002020000391cbd1cb30000040f000000010020019000001a340000613d000000000101043b000000000001004b00001a330000613d00000001010000290000000402000029000000020300002900000003040000291cbd1b870000040f000000000001004b00001a350000613d000000000001042d000000000001042f0000080801000041000000000010043f000007420100004100001cbf0001043000010000000000020000000003010019000000400100043d000008090010009c00001a900000813d0000008002100039000000400020043f00000060021000390000000000020435000000400210003900000000000204350000002002100039000000000002043500000000000104350000000302000039000000000202041a000000000032004b00001a8d0000a13d000100000003001d000000000030043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f000000010020019000001a8e0000613d000000000101043b000000000101041a000000000001004b00001a5f0000c13d0000000103000029000000010330008a00001a4b0000013d000000400100043d0000079d0010009c000000010300002900001a900000213d0000008002100039000000400020043f0000006002100039000000000002043500000040021000390000000000020435000000200210003900000000000204350000000000010435000000000030043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f000000010020019000001a8e0000613d000000000301034f000000400100043d0000079d0010009c00001a900000213d000000000203043b000000000202041a0000008003100039000000400030043f0000006003100039000000e80420027000000000004304350000079e002001980000000003000039000000010300c0390000004004100039000000000034043500000735032001970000000003310436000000a0022002700000073d022001970000000000230435000000000001042d000000000100001900001cbf00010430000007ef01000041000000000010043f0000004101000039000000040010043f000007400100004100001cbf0001043000020000000000020000000201000039000000000101041a000000d00210027200001aaf0000613d000100000002001d000200000001001d000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f000000010020019000001ab30000613d000000000101043b000000010010006b000000020100002900001aaf0000813d000000a001100270000007b501100197000000000001042d0000000101000039000000000101041a000000d001100270000000000001042d000000000001042f0000000101000039000000000201041a0000073501200197000000a002200270000007b502200197000000000001042d0001000000000002000100000001001d000000000010043f000000200000043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f000000010020019000001ada0000613d0000000002000411000000000101043b0000073502200197000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f000000010020019000001ada0000613d000000000101043b000000000101041a000000ff0010019000001adc0000613d000000000001042d000000000100001900001cbf00010430000007b001000041000000000010043f0000000001000411000000040010043f0000000101000029000000240010043f000007b10100004100001cbf000104300004000000000002000000000002004b00001b470000613d000200000002001d000307350010019b0000000001000410000000030010006b00001b4b0000613d0000000301000039000000000101041a000400000001001d000007a20100004100000000001004430000000001000414000007300010009c0000073001008041000000c001100210000007a3011001c70000800b020000391cbd1cb30000040f000000010020019000001b4f0000613d000000000101043b000100000001001d0000000401000029000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000100200190000000020400002900001b450000613d0000000102000029000000a002200210000000010040008c0000000003000019000007a903006041000000000223019f0000000303000029000000000232019f000000000101043b000000000021041b000000000030043f0000000801000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f0000000204000029000000010020019000001b450000613d000007da024000d1000000000101043b000000000301041a0000000002230019000000000021041b000000030000006b00001b500000613d000200040040002d000000000100001900001b3b0000013d00000004070000290000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d020000390000000403000039000007aa0400004100000000050000190000000306000029000400000007001d1cbd1cae0000040f0000000100200190000000010100003900001b450000613d000000010010019000001b2b0000613d00000004070000290000000107700039000000020070006c00001b2c0000c13d00000003010000390000000202000029000000000021041b000000000001042d000000000100001900001cbf000104300000080a01000041000000000010043f000007420100004100001cbf00010430000007f901000041000000000010043f000007420100004100001cbf00010430000000000001042f000007f801000041000000000010043f000007420100004100001cbf000104300001000000000002000100000001001d000000000010043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f000000010020019000001b810000613d000000000101043b000000000101041a000000000001004b00001b7e0000c13d0000000301000039000000000101041a0000000102000029000000000021004b00001b830000a13d000000010220008a000100000002001d000000000020043f0000000701000039000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f000000010020019000001b810000613d000000000101043b000000000101041a000000000001004b000000010200002900001b6b0000613d0000079e0010019800001b830000c13d000000000001042d000000000100001900001cbf00010430000007fc01000041000000000010043f000007420100004100001cbf000104300004000000000002000000400b00043d0000006405b00039000000800800003900000000008504350000004405b00039000000000035043500000735011001970000002403b0003900000000001304350000080b0100004100000000001b0435000000000100041100000735011001970000000403b00039000000000013043500000000430404340000008401b000390000000000310435000000a401b00039000000000003004b00001ba50000613d000000000500001900000000061500190000000007540019000000000707043300000000007604350000002005500039000000000035004b00001b9e0000413d0000000004310019000000000004043500000000040004140000073502200197000000040020008c00001bb30000c13d0000000005000415000000040550008a00000005055002100000000003000031000000200030008c0000002004000039000000000403401900001bea0000013d000100000008001d0000001f0330003900000806033001970000000003b300490000000001130019000007300010009c000007300100804100000060011002100000073000b0009c000007300300004100000000030b40190000004003300210000000000131019f000007300040009c0000073004008041000000c003400210000000000131019f00020000000b001d1cbd1cae0000040f000000020b00002900000060031002700000073003300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b001900001bd60000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b00001bd20000c13d000000000006004b00001be30000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f00020000000103550000000005000415000000030550008a0000000505500210000000010020019000001c030000613d0000001f01400039000000600210018f0000000001b20019000000000021004b000000000200003900000001020040390000073d0010009c00001c350000213d000000010020019000001c350000c13d000000400010043f0000001f0030008c00001c010000a13d00000000010b0433000008000010019800001c010000c13d0000000502500270000000000201001f00000801011001970000080b0010009c00000000010000390000000101006039000000000001042d000000000100001900001cbf00010430000000000003004b00001c070000c13d000000600200003900001c2e0000013d0000001f02300039000007df022001970000003f02200039000007e004200197000000400200043d0000000004420019000000000024004b000000000500003900000001050040390000073d0040009c00001c350000213d000000010050019000001c350000c13d000000400040043f0000001f0430018f0000000006320436000007a605300198000100000006001d000000000356001900001c210000613d000000000601034f0000000107000029000000006806043c0000000007870436000000000037004b00001c1d0000c13d000000000004004b00001c2e0000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000000001020433000000000001004b00001c3b0000c13d0000080801000041000000000010043f000007420100004100001cbf00010430000007ef01000041000000000010043f0000004101000039000000040010043f000007400100004100001cbf000104300000000102000029000007300020009c00000730020080410000004002200210000007300010009c00000730010080410000006001100210000000000121019f00001cbf000104300002000000000002000000000001004b00001c4e0000c13d0000000204000039000000000504041a000000000325013f000007350030019800001c4e0000c13d0000073603500197000000000034041b000100000002001d000200000001001d000000000010043f000000200000043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f000000010020019000001c9a0000613d000000000101043b00000001020000290000073502200197000100000002001d000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f000000010020019000001c9a0000613d000000000101043b000000000101041a000000ff0010019000001c990000613d0000000201000029000000000010043f000000200000043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f000000010020019000001c9a0000613d000000000101043b0000000102000029000000000020043f000000200010043f0000000001000414000007300010009c0000073001008041000000c00110021000000738011001c700008010020000391cbd1cb30000040f000000010020019000001c9a0000613d000000000101043b000000000201041a0000080502200197000000000021041b0000000001000414000007300010009c0000073001008041000000c00110021000000739011001c70000800d0200003900000004030000390000000007000411000007b704000041000000020500002900000001060000291cbd1cae0000040f000000010020019000001c9a0000613d000000000001042d000000000100001900001cbf00010430000000000001042f000007300010009c000007300100804100000060011002100000000002000414000007300020009c0000073002008041000000c002200210000000000112019f00000739011001c700008010020000391cbd1cb30000040f000000010020019000001cac0000613d000000000101043b000000000001042d000000000100001900001cbf0001043000001cb1002104210000000102000039000000000001042d0000000002000019000000000001042d00001cb6002104230000000102000039000000000001042d0000000002000019000000000001042d00001cbb002104250000000102000039000000000001042d0000000002000019000000000001042d00001cbd0000043200001cbe0001042e00001cbf0001043000000000000000000000000000000000000000000000000000000000ffffffff536f70686f6e20477561726469616e204d656d62657273686970000000000000536f70686f6e477561726469616e000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffff00000003f4800000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000ad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5020000000000000000000000000000000000004000000000000000000000000002000000000000000000000000000000000000000000000000000000000000002f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d00000000000000000000000000000000000000000000000100000000000000000200000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff0000000200000000000000000000000000000040000001000000000000000000c22c80220000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000000000000000000000008cdb0238000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000007b743e6a00000000000000000000000000000000000000000000000000000000ae20032100000000000000000000000000000000000000000000000000000000cf6eefb600000000000000000000000000000000000000000000000000000000dfef5f6800000000000000000000000000000000000000000000000000000000ea4d3c9a00000000000000000000000000000000000000000000000000000000ea4d3c9b00000000000000000000000000000000000000000000000000000000f3993d1100000000000000000000000000000000000000000000000000000000dfef5f6900000000000000000000000000000000000000000000000000000000e985e9c500000000000000000000000000000000000000000000000000000000d602b9fc00000000000000000000000000000000000000000000000000000000d602b9fd00000000000000000000000000000000000000000000000000000000da8fbf2a00000000000000000000000000000000000000000000000000000000cf6eefb700000000000000000000000000000000000000000000000000000000d547741f00000000000000000000000000000000000000000000000000000000c87b56dc00000000000000000000000000000000000000000000000000000000ce31a06a00000000000000000000000000000000000000000000000000000000ce31a06b00000000000000000000000000000000000000000000000000000000cefc142900000000000000000000000000000000000000000000000000000000c87b56dd00000000000000000000000000000000000000000000000000000000cc8463c800000000000000000000000000000000000000000000000000000000bcf2b70c00000000000000000000000000000000000000000000000000000000bcf2b70d00000000000000000000000000000000000000000000000000000000c23dc68f00000000000000000000000000000000000000000000000000000000ae20032200000000000000000000000000000000000000000000000000000000b88d4fde0000000000000000000000000000000000000000000000000000000095d89b40000000000000000000000000000000000000000000000000000000009fd6db1100000000000000000000000000000000000000000000000000000000a217fdde00000000000000000000000000000000000000000000000000000000a217fddf00000000000000000000000000000000000000000000000000000000a22cb465000000000000000000000000000000000000000000000000000000009fd6db1200000000000000000000000000000000000000000000000000000000a1eda53c000000000000000000000000000000000000000000000000000000009a65ea25000000000000000000000000000000000000000000000000000000009a65ea26000000000000000000000000000000000000000000000000000000009b19251a0000000000000000000000000000000000000000000000000000000095d89b410000000000000000000000000000000000000000000000000000000099a2557a000000000000000000000000000000000000000000000000000000008462151b000000000000000000000000000000000000000000000000000000008da5cb5a000000000000000000000000000000000000000000000000000000008da5cb5b0000000000000000000000000000000000000000000000000000000091d14854000000000000000000000000000000000000000000000000000000008462151c0000000000000000000000000000000000000000000000000000000084ef8ffc000000000000000000000000000000000000000000000000000000007b743e6b000000000000000000000000000000000000000000000000000000008063f36700000000000000000000000000000000000000000000000000000000839006f20000000000000000000000000000000000000000000000000000000036568abd000000000000000000000000000000000000000000000000000000005c60da1a00000000000000000000000000000000000000000000000000000000685731060000000000000000000000000000000000000000000000000000000070a082300000000000000000000000000000000000000000000000000000000070a08231000000000000000000000000000000000000000000000000000000007295ed930000000000000000000000000000000000000000000000000000000068573107000000000000000000000000000000000000000000000000000000006c0360eb000000000000000000000000000000000000000000000000000000006352211d000000000000000000000000000000000000000000000000000000006352211e00000000000000000000000000000000000000000000000000000000649a5ec7000000000000000000000000000000000000000000000000000000005c60da1b00000000000000000000000000000000000000000000000000000000634e93da0000000000000000000000000000000000000000000000000000000049b46bf90000000000000000000000000000000000000000000000000000000055f804b20000000000000000000000000000000000000000000000000000000055f804b3000000000000000000000000000000000000000000000000000000005bbb21770000000000000000000000000000000000000000000000000000000049b46bfa000000000000000000000000000000000000000000000000000000004b4cb6a70000000000000000000000000000000000000000000000000000000036568abe0000000000000000000000000000000000000000000000000000000040c10f190000000000000000000000000000000000000000000000000000000042842e0e000000000000000000000000000000000000000000000000000000000aa6220a0000000000000000000000000000000000000000000000000000000023b872dc0000000000000000000000000000000000000000000000000000000028cfbd450000000000000000000000000000000000000000000000000000000028cfbd46000000000000000000000000000000000000000000000000000000002f2ff15d0000000000000000000000000000000000000000000000000000000023b872dd00000000000000000000000000000000000000000000000000000000248a9ca30000000000000000000000000000000000000000000000000000000018160ddc0000000000000000000000000000000000000000000000000000000018160ddd000000000000000000000000000000000000000000000000000000001a8d0de2000000000000000000000000000000000000000000000000000000000aa6220b000000000000000000000000000000000000000000000000000000000d4d15130000000000000000000000000000000000000000000000000000000006fdde0200000000000000000000000000000000000000000000000000000000086fc0c600000000000000000000000000000000000000000000000000000000086fc0c700000000000000000000000000000000000000000000000000000000095ea7b30000000000000000000000000000000000000000000000000000000006fdde0300000000000000000000000000000000000000000000000000000000081812fc0000000000000000000000000000000000000000000000000000000001ffc9a700000000000000000000000000000000000000000000000000000000022d63fb00000000000000000000000000000000000000000000000000000000034601ec7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0000000000000000000000000000000000000000000000000ffffffffffffff7f0000000100000000000000000000000000000000000000000000000000000000a11481000000000000000000000000000000000000000000000000000000000059c896be00000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1ecc7f796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d955391320200000200000000000000000000000000000004000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1ecc80a3b6d6140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffe0346e5f99000000000000000000000000000000000000000000000000000000008cd22d19000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efea553b340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000008000000000000000000000000000000000000000000000000000000020000000000000000000000000deabde7fd350a5b1b759279cbf4fa77ae065ae23b6c288aeb8b5f22b0ef54273eb56075600000000000000000000000000000000000000000000000000000000e2517d3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044000000000000000000000000ffffffffffff0000000000000000000000000000000000000000000000000000000000000000ffffffffffff00000000000000000000000000000000000000008886ebfc4259abdbc16601dd8fb5678e54878f47b3c34836cfc51154a96051090000000000000000000000000000000000000000000000000000ffffffffffff0000000000000000000000000000000000000040000000800000000000000000f6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b19ca5ebb000000000000000000000000000000000000000000000000000000009cc7f708afc65944829bd487b90b72536b1951864fbfc14e125fc972a6507f3902000002000000000000000000000000000000240000000000000000000000005472616e73666572206661696c6564000000000000000000000000000000000008c379a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000a14c4b5000000000000000000000000000000000000000000000000000000000df6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7000000000000000000000000000000000000000000000000ffffffffffffffdf00000000000000000000000000000000000000800000000000000000000000008000000000000000000000000000000000000000000000000000000000000000b5ba3787543ad6c173598159348a4a928021a98f804854cb89ce97f5d3e2c45e557365722061646472657373206973207a65726f000000000000000000000000454947e2291b9e3c72ab06b69e54ed41642716cad73709e8187ddd05284e725b2a3dab589bcc9747970dd85ac3f222668741ae51f2a1bbb8f8355be28dd8a868f0ad920e00000000000000000000000000000000000000000000000000000000c66698f33295d1a1310fe74b6a825ee244a14ceef1923e8021d96d28bb27e4f1d23077420000000000000000000000000000000000000000000000000000000017307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c310000000000000000000000000000000000000040000000000000000000000000da55f5bf00000000000000000000000000000000000000000000000000000000e9be8463d39ee82057565bf5f8548512e6448744ea23d3adea419c928fa7b5e332c1995a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000008f4eb6040000000000000000000000000000000000000000000000000000000070a0823100000000000000000000000000000000000000000000000000000000a9059cbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001ffffffffffffffe0000000000000000000000000000000000000000000000003ffffffffffffffe01806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5274afe7000000000000000000000000000000000000000000000000000000009996b315000000000000000000000000000000000000000000000000000000001425ea42000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000001ae88bc05000000000000000000000000000000000000000000000000000000004b6dcabdeaeb0ec6121e2e093c11a74bd84844268dc1131fd8ba3b363a82d7e8f603533e14e17222e047634a2b3457fe346d27e294cedf9d21d74e5feea4a0460000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000003ffffffe0696e6974206661696c6564000000000000000000000000000000000000000000696d706c5f206973207a65726f20616464726573730000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000697802b1fa2edafe6f7b9e97c1a9e0c3660e645beb2dcaa2d45bdbf9beaf5472e1ec5f1038c18cf84a56e432fdbfaf746924b7ea511dfe03a6506a0ceba4888788d9b6dfcc65000000000000000000000000000000000000000000000000000000000ffffffffffff000000000000ffffffffffffffffffffffffffffffffffffffff3377dc44241e779dd06afab5b788a35ca5f3b778836e2990bdb26a2a4b2e5ed600000000000000000000000000000000000000000000000007fffffffffffff60000000000000000000000000000000000000000000000000000000000ffffff2e0a5b969d96a99aee0b35787d9a60516a02ca6f528a5f66d3f936468d8f0382209699368efae3c2ab13a6e9d9f9aceb6c5aebfb5ffd7bd0a9ff6281a30b5739209699368efae3c2ab13a6e9d9f9aceb6c5aebfb5ffd7bd0a9ff6281a30b57384e487b7100000000000000000000000000000000000000000000000000000000ea0f5562000000000000000000000000000000000000000000000000000000000335b6daeea181cb951e8e421e829065305f8414684b5e74f8c2781832fcfaba6697b232000000000000000000000000000000000000000000000000000000003fc3c27a000000000000000000000000000000000000000000000000000000002296e6d8aebb5c81250fd381a114c2ec346fc44bc4582ba95cdcac0f09df6cd9726f00000000000000000000000000000000000000000000000000000000000044656c65676174696f6e206d616e616765722061646472657373206973207a6500000000000000000000000000000000000000840000000000000000000000002e07630000000000000000000000000000000000000000000000000000000000a64661e400000000000000000000000000000000000000000000000000000000af79b43700000000000000000000000000000000000000000000000000000000f4f5b73300000000000000000000000000000000000000000000000000000000df2d9b4200000000000000000000000000000000000000000000000000000000cfb3b942000000000000000000000000000000000000000000000000000000008c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925cf4700e40000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000001ffc9a7000000000000000000000000000000000000000000000000000000005b5e139f0000000000000000000000000000000000000000000000000000000080ac58cd00000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd1a57ed600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff80b562e8dd00000000000000000000000000000000000000000000000000000000150b7a02000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.