Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
950830 | 26 days ago | Contract Creation | 0 ETH |
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:
OffersLogic
Compiler Version
v0.8.23+commit.f704f362
ZkSolc Version
v1.5.4
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.11; /// @author thirdweb import "./OffersStorage.sol"; // ====== External imports ====== import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; import "../../../eip/interface/IERC721.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; // ====== Internal imports ====== import "../../../extension/interface/IPlatformFee.sol"; import "../../../extension/upgradeable/ERC2771ContextConsumer.sol"; import "../../../extension/upgradeable/ReentrancyGuard.sol"; import "../../../extension/upgradeable/PermissionsEnumerable.sol"; import { RoyaltyPaymentsLogic } from "../../../extension/upgradeable/RoyaltyPayments.sol"; import { CurrencyTransferLib } from "../../../lib/CurrencyTransferLib.sol"; /** * @author thirdweb.com */ contract OffersLogic is IOffers, ReentrancyGuard, ERC2771ContextConsumer { /*/////////////////////////////////////////////////////////////// Constants / Immutables //////////////////////////////////////////////////////////////*/ /// @dev Can create offer for only assets from NFT contracts with asset role, when offers are restricted by asset address. bytes32 private constant ASSET_ROLE = keccak256("ASSET_ROLE"); /// @dev The max bps of the contract. So, 10_000 == 100 % uint64 private constant MAX_BPS = 10_000; /*/////////////////////////////////////////////////////////////// Modifiers //////////////////////////////////////////////////////////////*/ modifier onlyAssetRole(address _asset) { require(Permissions(address(this)).hasRoleWithSwitch(ASSET_ROLE, _asset), "!ASSET_ROLE"); _; } /// @dev Checks whether caller is a offer creator. modifier onlyOfferor(uint256 _offerId) { require(_offersStorage().offers[_offerId].offeror == _msgSender(), "!Offeror"); _; } /// @dev Checks whether an auction exists. modifier onlyExistingOffer(uint256 _offerId) { require(_offersStorage().offers[_offerId].status == IOffers.Status.CREATED, "Marketplace: invalid offer."); _; } /*/////////////////////////////////////////////////////////////// Constructor logic //////////////////////////////////////////////////////////////*/ constructor() {} /*/////////////////////////////////////////////////////////////// External functions //////////////////////////////////////////////////////////////*/ function makeOffer( OfferParams memory _params ) external onlyAssetRole(_params.assetContract) returns (uint256 _offerId) { _offerId = _getNextOfferId(); address _offeror = _msgSender(); TokenType _tokenType = _getTokenType(_params.assetContract); _validateNewOffer(_params, _tokenType); Offer memory _offer = Offer({ offerId: _offerId, offeror: _offeror, assetContract: _params.assetContract, tokenId: _params.tokenId, tokenType: _tokenType, quantity: _params.quantity, currency: _params.currency, totalPrice: _params.totalPrice, expirationTimestamp: _params.expirationTimestamp, status: IOffers.Status.CREATED }); _offersStorage().offers[_offerId] = _offer; emit NewOffer(_offeror, _offerId, _params.assetContract, _offer); } function cancelOffer(uint256 _offerId) external onlyExistingOffer(_offerId) onlyOfferor(_offerId) { _offersStorage().offers[_offerId].status = IOffers.Status.CANCELLED; emit CancelledOffer(_msgSender(), _offerId); } function acceptOffer(uint256 _offerId) external nonReentrant onlyExistingOffer(_offerId) { Offer memory _targetOffer = _offersStorage().offers[_offerId]; require(_targetOffer.expirationTimestamp > block.timestamp, "EXPIRED"); require( _validateERC20BalAndAllowance(_targetOffer.offeror, _targetOffer.currency, _targetOffer.totalPrice), "Marketplace: insufficient currency balance." ); _validateOwnershipAndApproval( _msgSender(), _targetOffer.assetContract, _targetOffer.tokenId, _targetOffer.quantity, _targetOffer.tokenType ); _offersStorage().offers[_offerId].status = IOffers.Status.COMPLETED; _payout(_targetOffer.offeror, _msgSender(), _targetOffer.currency, _targetOffer.totalPrice, _targetOffer); _transferOfferTokens(_msgSender(), _targetOffer.offeror, _targetOffer.quantity, _targetOffer); emit AcceptedOffer( _targetOffer.offeror, _targetOffer.offerId, _targetOffer.assetContract, _targetOffer.tokenId, _msgSender(), _targetOffer.quantity, _targetOffer.totalPrice ); } /*/////////////////////////////////////////////////////////////// View functions //////////////////////////////////////////////////////////////*/ /// @dev Returns total number of offers function totalOffers() public view returns (uint256) { return _offersStorage().totalOffers; } /// @dev Returns existing offer with the given uid. function getOffer(uint256 _offerId) external view returns (Offer memory _offer) { _offer = _offersStorage().offers[_offerId]; } /// @dev Returns all existing offers within the specified range. function getAllOffers(uint256 _startId, uint256 _endId) external view returns (Offer[] memory _allOffers) { require(_startId <= _endId && _endId < _offersStorage().totalOffers, "invalid range"); _allOffers = new Offer[](_endId - _startId + 1); for (uint256 i = _startId; i <= _endId; i += 1) { _allOffers[i - _startId] = _offersStorage().offers[i]; } } /// @dev Returns offers within the specified range, where offeror has sufficient balance. function getAllValidOffers(uint256 _startId, uint256 _endId) external view returns (Offer[] memory _validOffers) { require(_startId <= _endId && _endId < _offersStorage().totalOffers, "invalid range"); Offer[] memory _offers = new Offer[](_endId - _startId + 1); uint256 _offerCount; for (uint256 i = _startId; i <= _endId; i += 1) { uint256 j = i - _startId; _offers[j] = _offersStorage().offers[i]; if (_validateExistingOffer(_offers[j])) { _offerCount += 1; } } _validOffers = new Offer[](_offerCount); uint256 index = 0; uint256 count = _offers.length; for (uint256 i = 0; i < count; i += 1) { if (_validateExistingOffer(_offers[i])) { _validOffers[index++] = _offers[i]; } } } /*/////////////////////////////////////////////////////////////// Internal functions //////////////////////////////////////////////////////////////*/ /// @dev Returns the next offer Id. function _getNextOfferId() internal returns (uint256 id) { id = _offersStorage().totalOffers; _offersStorage().totalOffers += 1; } /// @dev Returns the interface supported by a contract. function _getTokenType(address _assetContract) internal view returns (TokenType tokenType) { if (IERC165(_assetContract).supportsInterface(type(IERC1155).interfaceId)) { tokenType = TokenType.ERC1155; } else if (IERC165(_assetContract).supportsInterface(type(IERC721).interfaceId)) { tokenType = TokenType.ERC721; } else { revert("Marketplace: token must be ERC1155 or ERC721."); } } /// @dev Checks whether the auction creator owns and has approved marketplace to transfer auctioned tokens. function _validateNewOffer(OfferParams memory _params, TokenType _tokenType) internal view { require(_params.totalPrice > 0, "zero price."); require(_params.quantity > 0, "Marketplace: wanted zero tokens."); require(_params.quantity == 1 || _tokenType == TokenType.ERC1155, "Marketplace: wanted invalid quantity."); require( _params.expirationTimestamp + 60 minutes > block.timestamp, "Marketplace: invalid expiration timestamp." ); require( _validateERC20BalAndAllowance(_msgSender(), _params.currency, _params.totalPrice), "Marketplace: insufficient currency balance." ); } /// @dev Checks whether the offer exists, is active, and if the offeror has sufficient balance. function _validateExistingOffer(Offer memory _targetOffer) internal view returns (bool isValid) { isValid = _targetOffer.expirationTimestamp > block.timestamp && _targetOffer.status == IOffers.Status.CREATED && _validateERC20BalAndAllowance(_targetOffer.offeror, _targetOffer.currency, _targetOffer.totalPrice); } /// @dev Validates that `_tokenOwner` owns and has approved Marketplace to transfer NFTs. function _validateOwnershipAndApproval( address _tokenOwner, address _assetContract, uint256 _tokenId, uint256 _quantity, TokenType _tokenType ) internal view { address market = address(this); bool isValid; if (_tokenType == TokenType.ERC1155) { isValid = IERC1155(_assetContract).balanceOf(_tokenOwner, _tokenId) >= _quantity && IERC1155(_assetContract).isApprovedForAll(_tokenOwner, market); } else if (_tokenType == TokenType.ERC721) { isValid = IERC721(_assetContract).ownerOf(_tokenId) == _tokenOwner && (IERC721(_assetContract).getApproved(_tokenId) == market || IERC721(_assetContract).isApprovedForAll(_tokenOwner, market)); } require(isValid, "Marketplace: not owner or approved tokens."); } /// @dev Validates that `_tokenOwner` owns and has approved Markeplace to transfer the appropriate amount of currency function _validateERC20BalAndAllowance( address _tokenOwner, address _currency, uint256 _amount ) internal view returns (bool isValid) { isValid = IERC20(_currency).balanceOf(_tokenOwner) >= _amount && IERC20(_currency).allowance(_tokenOwner, address(this)) >= _amount; } /// @dev Transfers tokens. function _transferOfferTokens(address _from, address _to, uint256 _quantity, Offer memory _offer) internal { if (_offer.tokenType == TokenType.ERC1155) { IERC1155(_offer.assetContract).safeTransferFrom(_from, _to, _offer.tokenId, _quantity, ""); } else if (_offer.tokenType == TokenType.ERC721) { IERC721(_offer.assetContract).safeTransferFrom(_from, _to, _offer.tokenId, ""); } } /// @dev Pays out stakeholders in a sale. function _payout( address _payer, address _payee, address _currencyToUse, uint256 _totalPayoutAmount, Offer memory _offer ) internal { uint256 amountRemaining; // Payout platform fee { (address platformFeeRecipient, uint16 platformFeeBps) = IPlatformFee(address(this)).getPlatformFeeInfo(); uint256 platformFeeCut = (_totalPayoutAmount * platformFeeBps) / MAX_BPS; // Transfer platform fee CurrencyTransferLib.transferCurrencyWithWrapper( _currencyToUse, _payer, platformFeeRecipient, platformFeeCut, address(0) ); amountRemaining = _totalPayoutAmount - platformFeeCut; } // Payout royalties { // Get royalty recipients and amounts (address payable[] memory recipients, uint256[] memory amounts) = RoyaltyPaymentsLogic(address(this)) .getRoyalty(_offer.assetContract, _offer.tokenId, _totalPayoutAmount); uint256 royaltyRecipientCount = recipients.length; if (royaltyRecipientCount != 0) { uint256 royaltyCut; address royaltyRecipient; for (uint256 i = 0; i < royaltyRecipientCount; ) { royaltyRecipient = recipients[i]; royaltyCut = amounts[i]; // Check payout amount remaining is enough to cover royalty payment require(amountRemaining >= royaltyCut, "fees exceed the price"); // Transfer royalty CurrencyTransferLib.transferCurrencyWithWrapper( _currencyToUse, _payer, royaltyRecipient, royaltyCut, address(0) ); unchecked { amountRemaining -= royaltyCut; ++i; } } } } // Distribute price to token owner CurrencyTransferLib.transferCurrencyWithWrapper(_currencyToUse, _payer, _payee, amountRemaining, address(0)); } /// @dev Returns the Offers storage. function _offersStorage() internal pure returns (OffersStorage.Data storage data) { data = OffersStorage.data(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch( address[] calldata accounts, uint256[] calldata ids ) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * [EIP](https://eips.ethereum.org/EIPS/eip-165). * * 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 * [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 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: Apache 2.0 pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface 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); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; /// @author thirdweb /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IPermissions { /** * @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. * * _Available since v3.1._ */ 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 `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; /// @author thirdweb import "./IPermissions.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IPermissionsEnumerable is IPermissions { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * [forum post](https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296) * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; /// @author thirdweb /** * Thirdweb's `PlatformFee` is a contract extension to be used with any base contract. It exposes functions for setting and reading * the recipient of platform fee and the platform fee basis points, and lets the inheriting contract perform conditional logic * that uses information about platform fees, if desired. */ interface IPlatformFee { /// @dev Fee type variants: percentage fee and flat fee enum PlatformFeeType { Bps, Flat } /// @dev Returns the platform fee bps and recipient. function getPlatformFeeInfo() external view returns (address, uint16); /// @dev Lets a module admin update the fees on primary sales. function setPlatformFeeInfo(address _platformFeeRecipient, uint256 _platformFeeBps) external; /// @dev Emitted when fee on primary sales is updated. event PlatformFeeInfoUpdated(address indexed platformFeeRecipient, uint256 platformFeeBps); /// @dev Emitted when the flat platform fee is updated. event FlatPlatformFeeUpdated(address platformFeeRecipient, uint256 flatFee); /// @dev Emitted when the platform fee type is updated. event PlatformFeeTypeUpdated(PlatformFeeType feeType); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Lookup engine interface */ interface IRoyaltyEngineV1 is IERC165 { /** * Get the royalty for a given token (address, id) and value amount. Does not cache the bps/amounts. Caches the spec for a given token address * * @param tokenAddress - The address of the token * @param tokenId - The id of the token * @param value - The value you wish to get the royalty of * * returns Two arrays of equal length, royalty recipients and the corresponding amount each recipient should get */ function getRoyalty( address tokenAddress, uint256 tokenId, uint256 value ) external returns (address payable[] memory recipients, uint256[] memory amounts); /** * View only version of getRoyalty * * @param tokenAddress - The address of the token * @param tokenId - The id of the token * @param value - The value you wish to get the royalty of * * returns Two arrays of equal length, royalty recipients and the corresponding amount each recipient should get */ function getRoyaltyView( address tokenAddress, uint256 tokenId, uint256 value ) external view returns (address payable[] memory recipients, uint256[] memory amounts); }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; /// @author thirdweb import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Read royalty info for a token. * Supports RoyaltyEngineV1 and RoyaltyRegistry by manifold.xyz. */ interface IRoyaltyPayments is IERC165 { /// @dev Emitted when the address of RoyaltyEngine is set or updated. event RoyaltyEngineUpdated(address indexed previousAddress, address indexed newAddress); /** * Get the royalty for a given token (address, id) and value amount. * * @param tokenAddress - The address of the token * @param tokenId - The id of the token * @param value - The value you wish to get the royalty of * * returns Two arrays of equal length, royalty recipients and the corresponding amount each recipient should get */ function getRoyalty( address tokenAddress, uint256 tokenId, uint256 value ) external returns (address payable[] memory recipients, uint256[] memory amounts); /** * Set or override RoyaltyEngine address * * @param _royaltyEngineAddress - RoyaltyEngineV1 address */ function setRoyaltyEngine(address _royaltyEngineAddress) external; }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; /// @author thirdweb interface IERC2771Context { function isTrustedForwarder(address forwarder) external view returns (bool); } /** * @dev Context variant with ERC2771 support. */ abstract contract ERC2771ContextConsumer { function _msgSender() public view virtual returns (address sender) { if (IERC2771Context(address(this)).isTrustedForwarder(msg.sender)) { // The assembly code is more direct than the Solidity version using `abi.decode`. assembly { sender := shr(96, calldataload(sub(calldatasize(), 20))) } } else { return msg.sender; } } function _msgData() public view virtual returns (bytes calldata) { if (IERC2771Context(address(this)).isTrustedForwarder(msg.sender)) { return msg.data[:msg.data.length - 20]; } else { return msg.data; } } }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; /// @author thirdweb import "../interface/IPermissions.sol"; import "../../lib/Strings.sol"; /** * @title Permissions * @dev This contracts provides extending-contracts with role-based access control mechanisms */ library PermissionsStorage { /// @custom:storage-location erc7201:permissions.storage /// @dev keccak256(abi.encode(uint256(keccak256("permissions.storage")) - 1)) & ~bytes32(uint256(0xff)) bytes32 public constant PERMISSIONS_STORAGE_POSITION = 0x0a7b0f5c59907924802379ebe98cdc23e2ee7820f63d30126e10b3752010e500; struct Data { /// @dev Map from keccak256 hash of a role => a map from address => whether address has role. mapping(bytes32 => mapping(address => bool)) _hasRole; /// @dev Map from keccak256 hash of a role to role admin. See {getRoleAdmin}. mapping(bytes32 => bytes32) _getRoleAdmin; } function data() internal pure returns (Data storage data_) { bytes32 position = PERMISSIONS_STORAGE_POSITION; assembly { data_.slot := position } } } contract Permissions is IPermissions { /// @dev Default admin role for all roles. Only accounts with this role can grant/revoke other roles. bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /// @dev Modifier that checks if an account has the specified role; reverts otherwise. modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @notice Checks whether an account has a particular role. * @dev Returns `true` if `account` has been granted `role`. * * @param role keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE") * @param account Address of the account for which the role is being checked. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _permissionsStorage()._hasRole[role][account]; } /** * @notice Checks whether an account has a particular role; * role restrictions can be swtiched on and off. * * @dev Returns `true` if `account` has been granted `role`. * Role restrictions can be swtiched on and off: * - If address(0) has ROLE, then the ROLE restrictions * don't apply. * - If address(0) does not have ROLE, then the ROLE * restrictions will apply. * * @param role keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE") * @param account Address of the account for which the role is being checked. */ function hasRoleWithSwitch(bytes32 role, address account) public view returns (bool) { if (!_permissionsStorage()._hasRole[role][address(0)]) { return _permissionsStorage()._hasRole[role][account]; } return true; } /** * @notice Returns the admin role that controls the specified role. * @dev See {grantRole} and {revokeRole}. * To change a role's admin, use {_setRoleAdmin}. * * @param role keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE") */ function getRoleAdmin(bytes32 role) external view override returns (bytes32) { return _permissionsStorage()._getRoleAdmin[role]; } /** * @notice Grants a role to an account, if not previously granted. * @dev Caller must have admin role for the `role`. * Emits {RoleGranted Event}. * * @param role keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE") * @param account Address of the account to which the role is being granted. */ function grantRole(bytes32 role, address account) public virtual override { _checkRole(_permissionsStorage()._getRoleAdmin[role], _msgSender()); if (_permissionsStorage()._hasRole[role][account]) { revert("Can only grant to non holders"); } _setupRole(role, account); } /** * @notice Revokes role from an account. * @dev Caller must have admin role for the `role`. * Emits {RoleRevoked Event}. * * @param role keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE") * @param account Address of the account from which the role is being revoked. */ function revokeRole(bytes32 role, address account) public virtual override { _checkRole(_permissionsStorage()._getRoleAdmin[role], _msgSender()); _revokeRole(role, account); } /** * @notice Revokes role from the account. * @dev Caller must have the `role`, with caller being the same as `account`. * Emits {RoleRevoked Event}. * * @param role keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE") * @param account Address of the account from which the role is being revoked. */ function renounceRole(bytes32 role, address account) public virtual override { if (_msgSender() != account) { revert("Can only renounce for self"); } _revokeRole(role, account); } /// @dev Sets `adminRole` as `role`'s admin role. function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = _permissionsStorage()._getRoleAdmin[role]; _permissionsStorage()._getRoleAdmin[role] = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /// @dev Sets up `role` for `account` function _setupRole(bytes32 role, address account) internal virtual { _permissionsStorage()._hasRole[role][account] = true; emit RoleGranted(role, account, _msgSender()); } /// @dev Revokes `role` from `account` function _revokeRole(bytes32 role, address account) internal virtual { _checkRole(role, account); delete _permissionsStorage()._hasRole[role][account]; emit RoleRevoked(role, account, _msgSender()); } /// @dev Checks `role` for `account`. Reverts with a message including the required role. function _checkRole(bytes32 role, address account) internal view virtual { if (!_permissionsStorage()._hasRole[role][account]) { revert( string( abi.encodePacked( "Permissions: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /// @dev Checks `role` for `account`. Reverts with a message including the required role. function _checkRoleWithSwitch(bytes32 role, address account) internal view virtual { if (!hasRoleWithSwitch(role, account)) { revert( string( abi.encodePacked( "Permissions: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } function _msgSender() internal view virtual returns (address sender) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /// @dev Returns the Permissions storage. function _permissionsStorage() internal pure returns (PermissionsStorage.Data storage data) { data = PermissionsStorage.data(); } }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; /// @author thirdweb import "../interface/IPermissionsEnumerable.sol"; import "./Permissions.sol"; /** * @title PermissionsEnumerable * @dev This contracts provides extending-contracts with role-based access control mechanisms. * Also provides interfaces to view all members with a given role, and total count of members. */ library PermissionsEnumerableStorage { /// @custom:storage-location erc7201:extension.manager.storage bytes32 public constant PERMISSIONS_ENUMERABLE_STORAGE_POSITION = keccak256(abi.encode(uint256(keccak256("permissions.enumerable.storage")) - 1)) & ~bytes32(uint256(0xff)); /** * @notice A data structure to store data of members for a given role. * * @param index Current index in the list of accounts that have a role. * @param members map from index => address of account that has a role * @param indexOf map from address => index which the account has. */ struct RoleMembers { uint256 index; mapping(uint256 => address) members; mapping(address => uint256) indexOf; } struct Data { /// @dev map from keccak256 hash of a role to its members' data. See {RoleMembers}. mapping(bytes32 => RoleMembers) roleMembers; } function data() internal pure returns (Data storage data_) { bytes32 position = PERMISSIONS_ENUMERABLE_STORAGE_POSITION; assembly { data_.slot := position } } } contract PermissionsEnumerable is IPermissionsEnumerable, Permissions { /** * @notice Returns the role-member from a list of members for a role, * at a given index. * @dev Returns `member` who has `role`, at `index` of role-members list. * See struct {RoleMembers}, and mapping {roleMembers} * * @param role keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE") * @param index Index in list of current members for the role. * * @return member Address of account that has `role` */ function getRoleMember(bytes32 role, uint256 index) external view override returns (address member) { uint256 currentIndex = _permissionsEnumerableStorage().roleMembers[role].index; uint256 check; for (uint256 i = 0; i < currentIndex; i += 1) { if (_permissionsEnumerableStorage().roleMembers[role].members[i] != address(0)) { if (check == index) { member = _permissionsEnumerableStorage().roleMembers[role].members[i]; return member; } check += 1; } else if ( hasRole(role, address(0)) && i == _permissionsEnumerableStorage().roleMembers[role].indexOf[address(0)] ) { check += 1; } } } /** * @notice Returns total number of accounts that have a role. * @dev Returns `count` of accounts that have `role`. * See struct {RoleMembers}, and mapping {roleMembers} * * @param role keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE") * * @return count Total number of accounts that have `role` */ function getRoleMemberCount(bytes32 role) external view override returns (uint256 count) { uint256 currentIndex = _permissionsEnumerableStorage().roleMembers[role].index; for (uint256 i = 0; i < currentIndex; i += 1) { if (_permissionsEnumerableStorage().roleMembers[role].members[i] != address(0)) { count += 1; } } if (hasRole(role, address(0))) { count += 1; } } /// @dev Revokes `role` from `account`, and removes `account` from {roleMembers} /// See {_removeMember} function _revokeRole(bytes32 role, address account) internal virtual override { super._revokeRole(role, account); _removeMember(role, account); } /// @dev Grants `role` to `account`, and adds `account` to {roleMembers} /// See {_addMember} function _setupRole(bytes32 role, address account) internal virtual override { super._setupRole(role, account); _addMember(role, account); } /// @dev adds `account` to {roleMembers}, for `role` function _addMember(bytes32 role, address account) internal { uint256 idx = _permissionsEnumerableStorage().roleMembers[role].index; _permissionsEnumerableStorage().roleMembers[role].index += 1; _permissionsEnumerableStorage().roleMembers[role].members[idx] = account; _permissionsEnumerableStorage().roleMembers[role].indexOf[account] = idx; } /// @dev removes `account` from {roleMembers}, for `role` function _removeMember(bytes32 role, address account) internal { uint256 idx = _permissionsEnumerableStorage().roleMembers[role].indexOf[account]; delete _permissionsEnumerableStorage().roleMembers[role].members[idx]; delete _permissionsEnumerableStorage().roleMembers[role].indexOf[account]; } /// @dev Returns the PermissionsEnumerable storage. function _permissionsEnumerableStorage() internal pure returns (PermissionsEnumerableStorage.Data storage data) { data = PermissionsEnumerableStorage.data(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; library ReentrancyGuardStorage { /// @custom:storage-location erc7201:reentrancy.guard.storage /// @dev keccak256(abi.encode(uint256(keccak256("reentrancy.guard.storage")) - 1)) & ~bytes32(uint256(0xff)) bytes32 public constant REENTRANCY_GUARD_STORAGE_POSITION = 0x1d281c488dae143b6ea4122e80c65059929950b9c32f17fc57be22089d9c3b00; struct Data { uint256 _status; } function data() internal pure returns (Data storage data_) { bytes32 position = REENTRANCY_GUARD_STORAGE_POSITION; assembly { data_.slot := position } } } abstract contract ReentrancyGuard { uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; constructor() { _reentrancyGuardStorage()._status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_reentrancyGuardStorage()._status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _reentrancyGuardStorage()._status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _reentrancyGuardStorage()._status = _NOT_ENTERED; } /// @dev Returns the ReentrancyGuard storage. function _reentrancyGuardStorage() internal pure returns (ReentrancyGuardStorage.Data storage data) { data = ReentrancyGuardStorage.data(); } }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; /// @author thirdweb import "../interface/IRoyaltyPayments.sol"; import "../interface/IRoyaltyEngineV1.sol"; import { IERC2981 } from "../../eip/interface/IERC2981.sol"; library RoyaltyPaymentsStorage { /// @custom:storage-location erc7201:royalty.payments.storage /// @dev keccak256(abi.encode(uint256(keccak256("royalty.payments.storage")) - 1)) & ~bytes32(uint256(0xff)) bytes32 public constant ROYALTY_PAYMENTS_STORAGE_POSITION = 0xc802b338f3fb784853cf3c808df5ff08335200e394ea2c687d12571a91045000; struct Data { /// @dev The address of RoyaltyEngineV1, replacing the one set during construction. address royaltyEngineAddressOverride; } function royaltyPaymentsStorage() internal pure returns (Data storage royaltyPaymentsData) { bytes32 position = ROYALTY_PAYMENTS_STORAGE_POSITION; assembly { royaltyPaymentsData.slot := position } } } /** * @author thirdweb.com * * @title Royalty Payments * @notice Thirdweb's `RoyaltyPayments` is a contract extension to be used with a marketplace contract. * It exposes functions for fetching royalty settings for a token. * It Supports RoyaltyEngineV1 and RoyaltyRegistry by manifold.xyz. */ abstract contract RoyaltyPaymentsLogic is IRoyaltyPayments { // solhint-disable-next-line var-name-mixedcase address immutable ROYALTY_ENGINE_ADDRESS; constructor(address _royaltyEngineAddress) { // allow address(0) in case RoyaltyEngineV1 not present on a network require( _royaltyEngineAddress == address(0) || IERC165(_royaltyEngineAddress).supportsInterface(type(IRoyaltyEngineV1).interfaceId), "Doesn't support IRoyaltyEngineV1 interface" ); ROYALTY_ENGINE_ADDRESS = _royaltyEngineAddress; } /** * Get the royalty for a given token (address, id) and value amount. Does not cache the bps/amounts. Caches the spec for a given token address * * @param tokenAddress - The address of the token * @param tokenId - The id of the token * @param value - The value you wish to get the royalty of * * returns Two arrays of equal length, royalty recipients and the corresponding amount each recipient should get */ function getRoyalty( address tokenAddress, uint256 tokenId, uint256 value ) external returns (address payable[] memory recipients, uint256[] memory amounts) { address royaltyEngineAddress = getRoyaltyEngineAddress(); if (royaltyEngineAddress == address(0)) { try IERC2981(tokenAddress).royaltyInfo(tokenId, value) returns (address recipient, uint256 amount) { require(amount <= value, "Invalid royalty amount"); recipients = new address payable[](1); amounts = new uint256[](1); recipients[0] = payable(recipient); amounts[0] = amount; } catch {} } else { (recipients, amounts) = IRoyaltyEngineV1(royaltyEngineAddress).getRoyalty(tokenAddress, tokenId, value); } } /** * Set or override RoyaltyEngine address * * @param _royaltyEngineAddress - RoyaltyEngineV1 address */ function setRoyaltyEngine(address _royaltyEngineAddress) external { if (!_canSetRoyaltyEngine()) { revert("Not authorized"); } require( _royaltyEngineAddress != address(0) && IERC165(_royaltyEngineAddress).supportsInterface(type(IRoyaltyEngineV1).interfaceId), "Doesn't support IRoyaltyEngineV1 interface" ); _setupRoyaltyEngine(_royaltyEngineAddress); } /// @dev Returns original or overridden address for RoyaltyEngineV1 function getRoyaltyEngineAddress() public view returns (address royaltyEngineAddress) { RoyaltyPaymentsStorage.Data storage data = RoyaltyPaymentsStorage.royaltyPaymentsStorage(); address royaltyEngineOverride = data.royaltyEngineAddressOverride; royaltyEngineAddress = royaltyEngineOverride != address(0) ? royaltyEngineOverride : ROYALTY_ENGINE_ADDRESS; } /// @dev Lets a contract admin update the royalty engine address function _setupRoyaltyEngine(address _royaltyEngineAddress) internal { RoyaltyPaymentsStorage.Data storage data = RoyaltyPaymentsStorage.royaltyPaymentsStorage(); address currentAddress = data.royaltyEngineAddressOverride; data.royaltyEngineAddressOverride = _royaltyEngineAddress; emit RoyaltyEngineUpdated(currentAddress, _royaltyEngineAddress); } /// @dev Returns whether royalty engine address can be set in the given execution context. function _canSetRoyaltyEngine() internal view virtual returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../../../../../eip/interface/IERC20.sol"; import { Address } from "../../../../../lib/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; interface IWETH { function deposit() external payable; function withdraw(uint256 amount) external; function transfer(address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.1; /// @author thirdweb, OpenZeppelin Contracts (v4.9.0) /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{ value: value }(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; /// @author thirdweb // Helper interfaces import { IWETH } from "../infra/interface/IWETH.sol"; import { SafeERC20, IERC20 } from "../external-deps/openzeppelin/token/ERC20/utils/SafeERC20.sol"; library CurrencyTransferLib { using SafeERC20 for IERC20; error CurrencyTransferLibMismatchedValue(uint256 expected, uint256 actual); error CurrencyTransferLibFailedNativeTransfer(address recipient, uint256 value); /// @dev The address interpreted as native token of the chain. address public constant NATIVE_TOKEN = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; /// @dev Transfers a given amount of currency. function transferCurrency(address _currency, address _from, address _to, uint256 _amount) internal { if (_amount == 0) { return; } if (_currency == NATIVE_TOKEN) { safeTransferNativeToken(_to, _amount); } else { safeTransferERC20(_currency, _from, _to, _amount); } } /// @dev Transfers a given amount of currency. (With native token wrapping) function transferCurrencyWithWrapper( address _currency, address _from, address _to, uint256 _amount, address _nativeTokenWrapper ) internal { if (_amount == 0) { return; } if (_currency == NATIVE_TOKEN) { if (_from == address(this)) { // withdraw from weth then transfer withdrawn native token to recipient IWETH(_nativeTokenWrapper).withdraw(_amount); safeTransferNativeTokenWithWrapper(_to, _amount, _nativeTokenWrapper); } else if (_to == address(this)) { // store native currency in weth if (_amount != msg.value) { revert CurrencyTransferLibMismatchedValue(msg.value, _amount); } IWETH(_nativeTokenWrapper).deposit{ value: _amount }(); } else { safeTransferNativeTokenWithWrapper(_to, _amount, _nativeTokenWrapper); } } else { safeTransferERC20(_currency, _from, _to, _amount); } } /// @dev Transfer `amount` of ERC20 token from `from` to `to`. function safeTransferERC20(address _currency, address _from, address _to, uint256 _amount) internal { if (_from == _to) { return; } if (_from == address(this)) { IERC20(_currency).safeTransfer(_to, _amount); } else { IERC20(_currency).safeTransferFrom(_from, _to, _amount); } } /// @dev Transfers `amount` of native token to `to`. function safeTransferNativeToken(address to, uint256 value) internal { // solhint-disable avoid-low-level-calls // slither-disable-next-line low-level-calls (bool success, ) = to.call{ value: value }(""); if (!success) { revert CurrencyTransferLibFailedNativeTransfer(to, value); } } /// @dev Transfers `amount` of native token to `to`. (With native token wrapping) function safeTransferNativeTokenWithWrapper(address to, uint256 value, address _nativeTokenWrapper) internal { // solhint-disable avoid-low-level-calls // slither-disable-next-line low-level-calls (bool success, ) = to.call{ value: value }(""); if (!success) { IWETH(_nativeTokenWrapper).deposit{ value: value }(); IERC20(_nativeTokenWrapper).safeTransfer(to, value); } } }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; /// @author thirdweb /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /// @dev Returns the hexadecimal representation of `value`. /// The output is prefixed with "0x", encoded using 2 hexadecimal digits per byte, /// and the alphabets are capitalized conditionally according to /// https://eips.ethereum.org/EIPS/eip-55 function toHexStringChecksummed(address value) internal pure returns (string memory str) { str = toHexString(value); /// @solidity memory-safe-assembly assembly { let mask := shl(6, div(not(0), 255)) // `0b010000000100000000 ...` let o := add(str, 0x22) let hashed := and(keccak256(o, 40), mul(34, mask)) // `0b10001000 ... ` let t := shl(240, 136) // `0b10001000 << 240` for { let i := 0 } 1 { } { mstore(add(i, i), mul(t, byte(i, hashed))) i := add(i, 1) if eq(i, 20) { break } } mstore(o, xor(mload(o), shr(1, and(mload(0x00), and(mload(o), mask))))) o := add(o, 0x20) mstore(o, xor(mload(o), shr(1, and(mload(0x20), and(mload(o), mask))))) } } /// @dev Returns the hexadecimal representation of `value`. /// The output is prefixed with "0x" and encoded using 2 hexadecimal digits per byte. function toHexString(address value) internal pure returns (string memory str) { str = toHexStringNoPrefix(value); /// @solidity memory-safe-assembly assembly { let strLength := add(mload(str), 2) // Compute the length. mstore(str, 0x3078) // Write the "0x" prefix. str := sub(str, 2) // Move the pointer. mstore(str, strLength) // Write the length. } } /// @dev Returns the hexadecimal representation of `value`. /// The output is encoded using 2 hexadecimal digits per byte. function toHexStringNoPrefix(address value) internal pure returns (string memory str) { /// @solidity memory-safe-assembly assembly { str := mload(0x40) // Allocate the memory. // We need 0x20 bytes for the trailing zeros padding, 0x20 bytes for the length, // 0x02 bytes for the prefix, and 0x28 bytes for the digits. // The next multiple of 0x20 above (0x20 + 0x20 + 0x02 + 0x28) is 0x80. mstore(0x40, add(str, 0x80)) // Store "0123456789abcdef" in scratch space. mstore(0x0f, 0x30313233343536373839616263646566) str := add(str, 2) mstore(str, 40) let o := add(str, 0x20) mstore(add(o, 40), 0) value := shl(96, value) // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. for { let i := 0 } 1 { } { let p := add(o, add(i, i)) let temp := byte(i, value) mstore8(add(p, 1), mload(and(temp, 15))) mstore8(p, mload(shr(4, temp))) i := add(i, 1) if eq(i, 20) { break } } } } /// @dev Returns the hex encoded string from the raw bytes. /// The output is encoded using 2 hexadecimal digits per byte. function toHexString(bytes memory raw) internal pure returns (string memory str) { str = toHexStringNoPrefix(raw); /// @solidity memory-safe-assembly assembly { let strLength := add(mload(str), 2) // Compute the length. mstore(str, 0x3078) // Write the "0x" prefix. str := sub(str, 2) // Move the pointer. mstore(str, strLength) // Write the length. } } /// @dev Returns the hex encoded string from the raw bytes. /// The output is encoded using 2 hexadecimal digits per byte. function toHexStringNoPrefix(bytes memory raw) internal pure returns (string memory str) { /// @solidity memory-safe-assembly assembly { let length := mload(raw) str := add(mload(0x40), 2) // Skip 2 bytes for the optional prefix. mstore(str, add(length, length)) // Store the length of the output. // Store "0123456789abcdef" in scratch space. mstore(0x0f, 0x30313233343536373839616263646566) let o := add(str, 0x20) let end := add(raw, length) for { } iszero(eq(raw, end)) { } { raw := add(raw, 1) mstore8(add(o, 1), mload(and(mload(raw), 15))) mstore8(o, mload(and(shr(4, mload(raw)), 15))) o := add(o, 2) } mstore(o, 0) // Zeroize the slot after the string. mstore(0x40, add(o, 0x20)) // Allocate the memory. } } }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.11; /// @author thirdweb /** * @author thirdweb.com * * The `DirectListings` extension smart contract lets you buy and sell NFTs (ERC-721 or ERC-1155) for a fixed price. */ interface IDirectListings { enum TokenType { ERC721, ERC1155 } enum Status { UNSET, CREATED, COMPLETED, CANCELLED } /** * @notice The parameters a seller sets when creating or updating a listing. * * @param assetContract The address of the smart contract of the NFTs being listed. * @param tokenId The tokenId of the NFTs being listed. * @param quantity The quantity of NFTs being listed. This must be non-zero, and is expected to * be `1` for ERC-721 NFTs. * @param currency The currency in which the price must be paid when buying the listed NFTs. * @param pricePerToken The price to pay per unit of NFTs listed. * @param startTimestamp The UNIX timestamp at and after which NFTs can be bought from the listing. * @param endTimestamp The UNIX timestamp at and after which NFTs cannot be bought from the listing. * @param reserved Whether the listing is reserved to be bought from a specific set of buyers. */ struct ListingParameters { address assetContract; uint256 tokenId; uint256 quantity; address currency; uint256 pricePerToken; uint128 startTimestamp; uint128 endTimestamp; bool reserved; } /** * @notice The information stored for a listing. * * @param listingId The unique ID of the listing. * @param listingCreator The creator of the listing. * @param assetContract The address of the smart contract of the NFTs being listed. * @param tokenId The tokenId of the NFTs being listed. * @param quantity The quantity of NFTs being listed. This must be non-zero, and is expected to * be `1` for ERC-721 NFTs. * @param currency The currency in which the price must be paid when buying the listed NFTs. * @param pricePerToken The price to pay per unit of NFTs listed. * @param startTimestamp The UNIX timestamp at and after which NFTs can be bought from the listing. * @param endTimestamp The UNIX timestamp at and after which NFTs cannot be bought from the listing. * @param reserved Whether the listing is reserved to be bought from a specific set of buyers. * @param status The status of the listing (created, completed, or cancelled). * @param tokenType The type of token listed (ERC-721 or ERC-1155) */ struct Listing { uint256 listingId; uint256 tokenId; uint256 quantity; uint256 pricePerToken; uint128 startTimestamp; uint128 endTimestamp; address listingCreator; address assetContract; address currency; TokenType tokenType; Status status; bool reserved; } /// @notice Emitted when a new listing is created. event NewListing( address indexed listingCreator, uint256 indexed listingId, address indexed assetContract, Listing listing ); /// @notice Emitted when a listing is updated. event UpdatedListing( address indexed listingCreator, uint256 indexed listingId, address indexed assetContract, Listing listing ); /// @notice Emitted when a listing is cancelled. event CancelledListing(address indexed listingCreator, uint256 indexed listingId); /// @notice Emitted when a buyer is approved to buy from a reserved listing. event BuyerApprovedForListing(uint256 indexed listingId, address indexed buyer, bool approved); /// @notice Emitted when a currency is approved as a form of payment for the listing. event CurrencyApprovedForListing(uint256 indexed listingId, address indexed currency, uint256 pricePerToken); /// @notice Emitted when NFTs are bought from a listing. event NewSale( address indexed listingCreator, uint256 indexed listingId, address indexed assetContract, uint256 tokenId, address buyer, uint256 quantityBought, uint256 totalPricePaid ); /** * @notice List NFTs (ERC721 or ERC1155) for sale at a fixed price. * * @param _params The parameters of a listing a seller sets when creating a listing. * * @return listingId The unique integer ID of the listing. */ function createListing(ListingParameters memory _params) external returns (uint256 listingId); /** * @notice Update parameters of a listing of NFTs. * * @param _listingId The ID of the listing to update. * @param _params The parameters of a listing a seller sets when updating a listing. */ function updateListing(uint256 _listingId, ListingParameters memory _params) external; /** * @notice Cancel a listing. * * @param _listingId The ID of the listing to cancel. */ function cancelListing(uint256 _listingId) external; /** * @notice Approve a buyer to buy from a reserved listing. * * @param _listingId The ID of the listing to update. * @param _buyer The address of the buyer to approve to buy from the listing. * @param _toApprove Whether to approve the buyer to buy from the listing. */ function approveBuyerForListing(uint256 _listingId, address _buyer, bool _toApprove) external; /** * @notice Approve a currency as a form of payment for the listing. * * @param _listingId The ID of the listing to update. * @param _currency The address of the currency to approve as a form of payment for the listing. * @param _pricePerTokenInCurrency The price per token for the currency to approve. */ function approveCurrencyForListing( uint256 _listingId, address _currency, uint256 _pricePerTokenInCurrency ) external; /** * @notice Buy NFTs from a listing. * * @param _listingId The ID of the listing to update. * @param _buyFor The recipient of the NFTs being bought. * @param _quantity The quantity of NFTs to buy from the listing. * @param _currency The currency to use to pay for NFTs. * @param _expectedTotalPrice The expected total price to pay for the NFTs being bought. */ function buyFromListing( uint256 _listingId, address _buyFor, uint256 _quantity, address _currency, uint256 _expectedTotalPrice ) external payable; /** * @notice Returns the total number of listings created. * @dev At any point, the return value is the ID of the next listing created. */ function totalListings() external view returns (uint256); /// @notice Returns all listings between the start and end Id (both inclusive) provided. function getAllListings(uint256 _startId, uint256 _endId) external view returns (Listing[] memory listings); /** * @notice Returns all valid listings between the start and end Id (both inclusive) provided. * A valid listing is where the listing creator still owns and has approved Marketplace * to transfer the listed NFTs. */ function getAllValidListings(uint256 _startId, uint256 _endId) external view returns (Listing[] memory listings); /** * @notice Returns a listing at the provided listing ID. * * @param _listingId The ID of the listing to fetch. */ function getListing(uint256 _listingId) external view returns (Listing memory listing); } /** * The `EnglishAuctions` extension smart contract lets you sell NFTs (ERC-721 or ERC-1155) in an english auction. */ interface IEnglishAuctions { enum TokenType { ERC721, ERC1155 } enum Status { UNSET, CREATED, COMPLETED, CANCELLED } /** * @notice The parameters a seller sets when creating an auction listing. * * @param assetContract The address of the smart contract of the NFTs being auctioned. * @param tokenId The tokenId of the NFTs being auctioned. * @param quantity The quantity of NFTs being auctioned. This must be non-zero, and is expected to * be `1` for ERC-721 NFTs. * @param currency The currency in which the bid must be made when bidding for the auctioned NFTs. * @param minimumBidAmount The minimum bid amount for the auction. * @param buyoutBidAmount The total bid amount for which the bidder can directly purchase the auctioned items and close the auction as a result. * @param timeBufferInSeconds This is a buffer e.g. x seconds. If a new winning bid is made less than x seconds before expirationTimestamp, the * expirationTimestamp is increased by x seconds. * @param bidBufferBps This is a buffer in basis points e.g. x%. To be considered as a new winning bid, a bid must be at least x% greater than * the current winning bid. * @param startTimestamp The timestamp at and after which bids can be made to the auction * @param endTimestamp The timestamp at and after which bids cannot be made to the auction. */ struct AuctionParameters { address assetContract; uint256 tokenId; uint256 quantity; address currency; uint256 minimumBidAmount; uint256 buyoutBidAmount; uint64 timeBufferInSeconds; uint64 bidBufferBps; uint64 startTimestamp; uint64 endTimestamp; } /** * @notice The information stored for an auction. * * @param auctionId The unique ID of the auction. * @param auctionCreator The creator of the auction. * @param assetContract The address of the smart contract of the NFTs being auctioned. * @param tokenId The tokenId of the NFTs being auctioned. * @param quantity The quantity of NFTs being auctioned. This must be non-zero, and is expected to * be `1` for ERC-721 NFTs. * @param currency The currency in which the bid must be made when bidding for the auctioned NFTs. * @param minimumBidAmount The minimum bid amount for the auction. * @param buyoutBidAmount The total bid amount for which the bidder can directly purchase the auctioned items and close the auction as a result. * @param timeBufferInSeconds This is a buffer e.g. x seconds. If a new winning bid is made less than x seconds before expirationTimestamp, the * expirationTimestamp is increased by x seconds. * @param bidBufferBps This is a buffer in basis points e.g. x%. To be considered as a new winning bid, a bid must be at least x% greater than * the current winning bid. * @param startTimestamp The timestamp at and after which bids can be made to the auction * @param endTimestamp The timestamp at and after which bids cannot be made to the auction. * @param status The status of the auction (created, completed, or cancelled). * @param tokenType The type of NFTs auctioned (ERC-721 or ERC-1155) */ struct Auction { uint256 auctionId; uint256 tokenId; uint256 quantity; uint256 minimumBidAmount; uint256 buyoutBidAmount; uint64 timeBufferInSeconds; uint64 bidBufferBps; uint64 startTimestamp; uint64 endTimestamp; address auctionCreator; address assetContract; address currency; TokenType tokenType; Status status; } /** * @notice The information stored for a bid made in an auction. * * @param auctionId The unique ID of the auction. * @param bidder The address of the bidder. * @param bidAmount The total bid amount (in the currency specified by the auction). */ struct Bid { uint256 auctionId; address bidder; uint256 bidAmount; } struct AuctionPayoutStatus { bool paidOutAuctionTokens; bool paidOutBidAmount; } /// @dev Emitted when a new auction is created. event NewAuction( address indexed auctionCreator, uint256 indexed auctionId, address indexed assetContract, Auction auction ); /// @dev Emitted when a new bid is made in an auction. event NewBid( uint256 indexed auctionId, address indexed bidder, address indexed assetContract, uint256 bidAmount, Auction auction ); /// @notice Emitted when a auction is cancelled. event CancelledAuction(address indexed auctionCreator, uint256 indexed auctionId); /// @dev Emitted when an auction is closed. event AuctionClosed( uint256 indexed auctionId, address indexed assetContract, address indexed closer, uint256 tokenId, address auctionCreator, address winningBidder ); /** * @notice Put up NFTs (ERC721 or ERC1155) for an english auction. * * @param _params The parameters of an auction a seller sets when creating an auction. * * @return auctionId The unique integer ID of the auction. */ function createAuction(AuctionParameters memory _params) external returns (uint256 auctionId); /** * @notice Cancel an auction. * * @param _auctionId The ID of the auction to cancel. */ function cancelAuction(uint256 _auctionId) external; /** * @notice Distribute the winning bid amount to the auction creator. * * @param _auctionId The ID of an auction. */ function collectAuctionPayout(uint256 _auctionId) external; /** * @notice Distribute the auctioned NFTs to the winning bidder. * * @param _auctionId The ID of an auction. */ function collectAuctionTokens(uint256 _auctionId) external; /** * @notice Bid in an active auction. * * @param _auctionId The ID of the auction to bid in. * @param _bidAmount The bid amount in the currency specified by the auction. */ function bidInAuction(uint256 _auctionId, uint256 _bidAmount) external payable; /** * @notice Returns whether a given bid amount would make for a winning bid in an auction. * * @param _auctionId The ID of an auction. * @param _bidAmount The bid amount to check. */ function isNewWinningBid(uint256 _auctionId, uint256 _bidAmount) external view returns (bool); /// @notice Returns the auction of the provided auction ID. function getAuction(uint256 _auctionId) external view returns (Auction memory auction); /// @notice Returns all non-cancelled auctions. function getAllAuctions(uint256 _startId, uint256 _endId) external view returns (Auction[] memory auctions); /// @notice Returns all active auctions. function getAllValidAuctions(uint256 _startId, uint256 _endId) external view returns (Auction[] memory auctions); /// @notice Returns the winning bid of an active auction. function getWinningBid( uint256 _auctionId ) external view returns (address bidder, address currency, uint256 bidAmount); /// @notice Returns whether an auction is active. function isAuctionExpired(uint256 _auctionId) external view returns (bool); } /** * The `Offers` extension smart contract lets you make and accept offers made for NFTs (ERC-721 or ERC-1155). */ interface IOffers { enum TokenType { ERC721, ERC1155, ERC20 } enum Status { UNSET, CREATED, COMPLETED, CANCELLED } /** * @notice The parameters an offeror sets when making an offer for NFTs. * * @param assetContract The contract of the NFTs for which the offer is being made. * @param tokenId The tokenId of the NFT for which the offer is being made. * @param quantity The quantity of NFTs wanted. * @param currency The currency offered for the NFTs. * @param totalPrice The total offer amount for the NFTs. * @param expirationTimestamp The timestamp at and after which the offer cannot be accepted. */ struct OfferParams { address assetContract; uint256 tokenId; uint256 quantity; address currency; uint256 totalPrice; uint256 expirationTimestamp; } /** * @notice The information stored for the offer made. * * @param offerId The ID of the offer. * @param offeror The address of the offeror. * @param assetContract The contract of the NFTs for which the offer is being made. * @param tokenId The tokenId of the NFT for which the offer is being made. * @param quantity The quantity of NFTs wanted. * @param currency The currency offered for the NFTs. * @param totalPrice The total offer amount for the NFTs. * @param expirationTimestamp The timestamp at and after which the offer cannot be accepted. * @param status The status of the offer (created, completed, or cancelled). * @param tokenType The type of token (ERC-721 or ERC-1155) the offer is made for. */ struct Offer { uint256 offerId; uint256 tokenId; uint256 quantity; uint256 totalPrice; uint256 expirationTimestamp; address offeror; address assetContract; address currency; TokenType tokenType; Status status; } /// @dev Emitted when a new offer is created. event NewOffer(address indexed offeror, uint256 indexed offerId, address indexed assetContract, Offer offer); /// @dev Emitted when an offer is cancelled. event CancelledOffer(address indexed offeror, uint256 indexed offerId); /// @dev Emitted when an offer is accepted. event AcceptedOffer( address indexed offeror, uint256 indexed offerId, address indexed assetContract, uint256 tokenId, address seller, uint256 quantityBought, uint256 totalPricePaid ); /** * @notice Make an offer for NFTs (ERC-721 or ERC-1155) * * @param _params The parameters of an offer. * * @return offerId The unique integer ID assigned to the offer. */ function makeOffer(OfferParams memory _params) external returns (uint256 offerId); /** * @notice Cancel an offer. * * @param _offerId The ID of the offer to cancel. */ function cancelOffer(uint256 _offerId) external; /** * @notice Accept an offer. * * @param _offerId The ID of the offer to accept. */ function acceptOffer(uint256 _offerId) external; /// @notice Returns an offer for the given offer ID. function getOffer(uint256 _offerId) external view returns (Offer memory offer); /// @notice Returns all active (i.e. non-expired or cancelled) offers. function getAllOffers(uint256 _startId, uint256 _endId) external view returns (Offer[] memory offers); /// @notice Returns all valid offers. An offer is valid if the offeror owns and has approved Marketplace to transfer the offer amount of currency. function getAllValidOffers(uint256 _startId, uint256 _endId) external view returns (Offer[] memory offers); }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.11; /// @author thirdweb import { IOffers } from "../IMarketplace.sol"; /** * @author thirdweb.com */ library OffersStorage { /// @custom:storage-location erc7201:offers.storage /// @dev keccak256(abi.encode(uint256(keccak256("offers.storage")) - 1)) & ~bytes32(uint256(0xff)) bytes32 public constant OFFERS_STORAGE_POSITION = 0x8f8effea55e8d961f30e12024b944289ed8a7f60abcf4b3989df2dc98a914300; struct Data { uint256 totalOffers; mapping(uint256 => IOffers.Offer) offers; } function data() internal pure returns (Data storage data_) { bytes32 position = OFFERS_STORAGE_POSITION; assembly { data_.slot := position } } }
{ "compilationTarget": { "contracts/prebuilts/marketplace/offers/OffersLogic.sol": "OffersLogic" }, "evmVersion": "paris", "libraries": {}, "metadata": { "bytecodeHash": "ipfs" }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"expected","type":"uint256"},{"internalType":"uint256","name":"actual","type":"uint256"}],"name":"CurrencyTransferLibMismatchedValue","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"offeror","type":"address"},{"indexed":true,"internalType":"uint256","name":"offerId","type":"uint256"},{"indexed":true,"internalType":"address","name":"assetContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantityBought","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalPricePaid","type":"uint256"}],"name":"AcceptedOffer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"offeror","type":"address"},{"indexed":true,"internalType":"uint256","name":"offerId","type":"uint256"}],"name":"CancelledOffer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"offeror","type":"address"},{"indexed":true,"internalType":"uint256","name":"offerId","type":"uint256"},{"indexed":true,"internalType":"address","name":"assetContract","type":"address"},{"components":[{"internalType":"uint256","name":"offerId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"totalPrice","type":"uint256"},{"internalType":"uint256","name":"expirationTimestamp","type":"uint256"},{"internalType":"address","name":"offeror","type":"address"},{"internalType":"address","name":"assetContract","type":"address"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"enum IOffers.TokenType","name":"tokenType","type":"uint8"},{"internalType":"enum IOffers.Status","name":"status","type":"uint8"}],"indexed":false,"internalType":"struct IOffers.Offer","name":"offer","type":"tuple"}],"name":"NewOffer","type":"event"},{"inputs":[],"name":"_msgData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_msgSender","outputs":[{"internalType":"address","name":"sender","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_offerId","type":"uint256"}],"name":"acceptOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_offerId","type":"uint256"}],"name":"cancelOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startId","type":"uint256"},{"internalType":"uint256","name":"_endId","type":"uint256"}],"name":"getAllOffers","outputs":[{"components":[{"internalType":"uint256","name":"offerId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"totalPrice","type":"uint256"},{"internalType":"uint256","name":"expirationTimestamp","type":"uint256"},{"internalType":"address","name":"offeror","type":"address"},{"internalType":"address","name":"assetContract","type":"address"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"enum IOffers.TokenType","name":"tokenType","type":"uint8"},{"internalType":"enum IOffers.Status","name":"status","type":"uint8"}],"internalType":"struct IOffers.Offer[]","name":"_allOffers","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startId","type":"uint256"},{"internalType":"uint256","name":"_endId","type":"uint256"}],"name":"getAllValidOffers","outputs":[{"components":[{"internalType":"uint256","name":"offerId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"totalPrice","type":"uint256"},{"internalType":"uint256","name":"expirationTimestamp","type":"uint256"},{"internalType":"address","name":"offeror","type":"address"},{"internalType":"address","name":"assetContract","type":"address"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"enum IOffers.TokenType","name":"tokenType","type":"uint8"},{"internalType":"enum IOffers.Status","name":"status","type":"uint8"}],"internalType":"struct IOffers.Offer[]","name":"_validOffers","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_offerId","type":"uint256"}],"name":"getOffer","outputs":[{"components":[{"internalType":"uint256","name":"offerId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"totalPrice","type":"uint256"},{"internalType":"uint256","name":"expirationTimestamp","type":"uint256"},{"internalType":"address","name":"offeror","type":"address"},{"internalType":"address","name":"assetContract","type":"address"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"enum IOffers.TokenType","name":"tokenType","type":"uint8"},{"internalType":"enum IOffers.Status","name":"status","type":"uint8"}],"internalType":"struct IOffers.Offer","name":"_offer","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"assetContract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"uint256","name":"totalPrice","type":"uint256"},{"internalType":"uint256","name":"expirationTimestamp","type":"uint256"}],"internalType":"struct IOffers.OfferParams","name":"_params","type":"tuple"}],"name":"makeOffer","outputs":[{"internalType":"uint256","name":"_offerId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalOffers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
9c4d535b0000000000000000000000000000000000000000000000000000000000000000010005ed9377f8af85bb5e4695e2cf95c410ae2cdc8d6e419b9491a148342f4100000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x0004000000000002001200000000000200000000030100190000006004300270000005760340019700030000003103550002000000010355000005760040019d0000008004000039000000400040043f0000000100200190000000580000c13d000000040030008c00000a3b0000413d000000000201043b000000e002200270000005790020009c000000630000a13d0000057a0020009c000000890000a13d0000057b0020009c000000d90000613d0000057c0020009c000001550000613d0000057d0020009c00000a3b0000c13d000000240030008c00000a3b0000413d0000000002000416000000000002004b00000a3b0000c13d0000000401100370000000000101043b001200000001001d000000000010043f0000058501000041000000200010043f0000000001000414000005760010009c0000057601008041000000c00110021000000586011001c7000080100200003915d315ce0000040f000000010020019000000a3b0000613d000000000101043b0000000701100039000000000101041a000000a801100270000000ff0110018f000000030010008c000001c60000213d000000010010008c000002cf0000c13d0000001201000029000000000010043f0000058501000041000000200010043f0000000001000414000005760010009c0000057601008041000000c00110021000000586011001c7000080100200003915d315ce0000040f000000010020019000000a3b0000613d000000000101043b0000000501100039000000000101041a001100000001001d000000400b00043d000005870100004100000000001b04350000000401b000390000000002000411001000000002001d000000000021043500000000010004140000000002000410000000040020008c000002ec0000c13d0000000103000031000000200030008c00000020040000390000000004034019000003190000013d0000000001000416000000000001004b00000a3b0000c13d00000001010000390000057702000041000000000012041b0000002001000039000001000010044300000120000004430000057801000041000015d40001042e000005800020009c000000750000213d000005830020009c000000950000613d000005840020009c00000a3b0000c13d0000000001000416000000000001004b00000a3b0000c13d15d30f7a0000040f0000058b01100197000000400200043d0000000000120435000005760020009c00000576020080410000004001200210000005bd011001c7000015d40001042e000005810020009c000000c10000613d000005820020009c00000a3b0000c13d0000000001000416000000000001004b00000a3b0000c13d0000058701000041000000800010043f0000000001000411000000840010043f00000000010004140000000002000410000000040020008c000001720000c13d0000000103000031000000200030008c00000020040000390000000004034019000001980000013d0000057e0020009c000001170000613d0000057f0020009c00000a3b0000c13d0000000001000416000000000001004b00000a3b0000c13d000005b201000041000000000101041a000000800010043f000005b601000041000015d40001042e000000c40030008c00000a3b0000413d0000000002000416000000000002004b00000a3b0000c13d0000014002000039000000400020043f0000000402100370000000000202043b0000058b0020009c00000a3b0000213d000000800020043f0000002403100370000000000303043b000000a00030043f0000004403100370000000000303043b000000c00030043f0000006403100370000000000303043b0000058b0030009c00000a3b0000213d0000058b02200197000000e00030043f0000008403100370000000000303043b000001000030043f000000a401100370000000000101043b000001200010043f000005be01000041000001400010043f000005bf01000041000001440010043f000001640020043f00000000010004140000000002000410000000040020008c000002120000c13d0000000103000031000000200030008c00000020040000390000000004034019000002380000013d000000240030008c00000a3b0000413d0000000001000416000000000001004b00000a3b0000c13d15d30ff90000040f00000004010000390000000201100367000000000101043b000000000010043f0000058501000041000000200010043f000000000100001915d315b80000040f15d310180000040f000000400200043d001200000002001d15d30f080000040f0000001201000029000005760010009c00000576010080410000004001100210000005bc011001c7000015d40001042e000000440030008c00000a3b0000413d0000000002000416000000000002004b00000a3b0000c13d0000002402100370000000000402043b0000000401100370000000000101043b001100000001001d000000000114004b000001680000413d000005b202000041000000000202041a000000000024004b000001680000813d000000010310003a000001a90000613d001000000004001d000005b30010009c00000a2d0000213d00000005013002100000003f02100039000005a304200197000005b40040009c00000a2d0000213d0000008002400039000000400020043f000000800030043f000005b50040009c00000a2d0000213d00000000030000190000014004200039000000400040043f0000012004200039000000000004043500000100042000390000000000040435000000e0042000390000000000040435000000c0042000390000000000040435000000a0042000390000000000040435000000800420003900000000000404350000006004200039000000000004043500000040042000390000000000040435000000200420003900000000000404350000000000020435000000a00430003900000000002404350000002003300039000000000013004b000003ce0000813d000000400200043d000005940020009c000000f90000a13d00000a2d0000013d000000440030008c00000a3b0000413d0000000002000416000000000002004b00000a3b0000c13d0000002402100370000000000402043b0000000401100370000000000101043b000c00000001001d000000000114004b000001680000413d000005b202000041000000000202041a000000000024004b000001680000813d000000010310003a000001a90000613d000b00000004001d000005b30010009c00000a2d0000213d00000005013002100000003f02100039000005a304200197000005b40040009c00000a2d0000213d0000008002400039000000400020043f000000800030043f000005b50040009c00000a2d0000213d00000000030000190000014004200039000000400040043f0000012004200039000000000004043500000100042000390000000000040435000000e0042000390000000000040435000000c0042000390000000000040435000000a0042000390000000000040435000000800420003900000000000404350000006004200039000000000004043500000040042000390000000000040435000000200420003900000000000404350000000000020435000000a00430003900000000002404350000002003300039000000000013004b000004210000813d000000400200043d000005940020009c000001370000a13d00000a2d0000013d000000240030008c00000a3b0000413d0000000002000416000000000002004b00000a3b0000c13d0000057702000041000000000302041a000000020030008c000001af0000c13d0000058d01000041000000800010043f0000002001000039000000840010043f0000001f01000039000000a40010043f000005b001000041000000c40010043f000005b101000041000015d5000104300000058d01000041000000800010043f0000002001000039000000840010043f0000000d01000039000000a40010043f000005ba01000041000000c40010043f000005b101000041000015d500010430000005760010009c0000057601008041000000c001100210000005bb011001c715d315ce0000040f000000800a000039000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000080057001bf000001870000613d000000000801034f000000008908043c000000000a9a043600000000005a004b000001830000c13d000000000006004b000001940000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000001cc0000613d0000001f01400039000000600410018f00000080014001bf000000400010043f000000200030008c00000a3b0000413d000000800300043d000000000003004b0000000002000039000000010200c039000000000023004b00000a3b0000c13d0000000002000031000000000003004b000001ea0000613d000000140220008c000001ea0000813d000005b901000041000000000010043f0000001101000039000000040010043f0000058801000041000015d5000104300000000203000039000000000032041b0000000401100370000000000101043b000000000010043f0000058501000041000000200010043f0000000001000414000005760010009c0000057601008041000000c00110021000000586011001c7000080100200003915d315ce0000040f000000010020019000000a3b0000613d000000000101043b0000000701100039000000000101041a000000a801100270000000ff0110018f000000030010008c000002560000a13d000005b901000041000000000010043f0000002101000039000000040010043f0000058801000041000015d5000104300000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000001d30000c13d000000000005004b000001e40000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000005760020009c00000576020080410000004002200210000000000112019f000015d50001043000000020030000390000000000310435000000a0034000390000000000230435000005d5062001980000001f0720018f000000c00440003900000000056400190000000208000367000001fa0000613d000000000908034f000000000a040019000000009b09043c000000000aba043600000000005a004b000001f60000c13d000000000007004b000002070000613d000000000668034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f0000000000650435000000000442001900000000000404350000001f02200039000005d5022001970000004002200039000005760020009c000005760200804100000060022002100000004001100210000000000112019f000015d40001042e000005760010009c0000057601008041000000c001100210000005c0011001c715d315ce0000040f000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000140057001bf000001400a000039000002270000613d000000000801034f000000008908043c000000000a9a043600000000005a004b000002230000c13d000000000006004b000002340000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000002e00000613d0000001f01400039000000600110018f0000014002100039001200000002001d000000400020043f000000200030008c00000a3b0000413d000001400200043d000000000002004b0000000004000039000000010400c039000000000042004b00000a3b0000c13d000000000002004b0000035a0000c13d0000058d020000410000001204000029000000000024043500000164021000390000000b03000039000000000032043500000144021000390000002003000039000000000032043500000184011001bf000005d402000041000000000021043500000040014002100000058e011001c7000015d500010430000000010010008c000002cf0000c13d00000004010000390000000201100367000000000101043b000000000010043f0000058501000041000000200010043f0000000001000414000005760010009c0000057601008041000000c00110021000000586011001c7000080100200003915d315ce0000040f000000010020019000000a3b0000613d000000400500043d000005940050009c00000a2d0000213d000000000101043b0000014002500039000000400020043f000000000201041a00000000062504360000000102100039000000000202041a00000000002604350000000202100039000000000202041a000000400350003900000000002304350000000302100039000000000202041a000000600450003900000000002404350000000402100039000000000b02041a00000080025000390000000000b204350000000502100039000000000202041a0000058b02200197000000a00750003900000000002704350000000602100039000000000202041a0000058b02200197000000c0085000390000000000280435000000e00a5000390000000701100039000000000101041a0000058b0210019700000000002a0435000000a002100270000000ff0220018f000000020020008c000001c60000213d0000010009500039001200000009001d0000000000290435000000a801100270000000ff0110018f000000030010008c000001c60000213d00110000000b001d000e0000000a001d000c00000008001d001000000007001d000d00000006001d000f00000004001d000b00000003001d000a00000005001d00000120025000390000000000120435000005950100004100000000001004430000000001000414000005760010009c0000057601008041000000c00110021000000596011001c70000800b0200003915d315ce0000040f000000010020019000000e670000613d000000000101043b000000110010006b000005bc0000a13d0000000f0100002900000000030104330000000e010000290000000002010433000000100100002900000000010104330000058b011001970000058b0220019715d310570000040f000000000001004b000006730000c13d000000400100043d0000006402100039000005cd0300004100000000003204350000004402100039000005ce03000041000000000032043500000024021000390000002b0300003900000000003204350000058d020000410000000000210435000000040210003900000020030000390000000000320435000005760010009c00000576010080410000004001100210000005af011001c7000015d500010430000000400100043d00000044021000390000059303000041000000000032043500000024021000390000001b0300003900000000003204350000058d020000410000000000210435000000040210003900000020030000390000000000320435000005760010009c000005760100804100000040011002100000058e011001c7000015d5000104300000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000002e70000c13d000001d70000013d0000057600b0009c000005760300004100000000030b40190000004003300210000005760010009c0000057601008041000000c001100210000000000131019f00000588011001c7000f0000000b001d15d315ce0000040f0000000f0b000029000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b0019000003080000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b000003040000c13d000000000006004b000003150000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000003c20000613d0000001f01400039000000600210018f0000000001b20019000000000021004b000000000200003900000001020040390000058a0010009c00000a2d0000213d000000010020019000000a2d0000c13d000000400010043f000000200030008c00000a3b0000413d00000000020b0433000000000002004b0000000003000039000000010300c039000000000032004b00000a3b0000c13d000000000002004b0000000002000411000003340000613d000000140200008a00000000022000310000000202200367000000000202043b0000006002200270000000110220014f0000058b00200198000005750000c13d0000001201000029000000000010043f0000058501000041000000200010043f0000000001000414000005760010009c0000057601008041000000c00110021000000586011001c7000080100200003915d315ce0000040f000000010020019000000a3b0000613d000000000101043b0000000701100039000000000201041a0000058f0220019700000590022001c7000000000021041b0000058701000041000000400200043d0000000000120435001100000002001d00000004012000390000000002000411000000000021043500000000010004140000000002000410000000040020008c0000060c0000c13d0000000103000031000000200030008c00000020040000390000000004034019000006380000013d000005b202000041000000000502041a000000010450003a000001a90000613d000f00000005001d000000000042041b00000587020000410000001205000029000000000025043500000144021000390000000004000411001000000004001d000000000042043500000000040004140000000002000410000000040020008c000005390000c13d0000000001150019001100000001001d000000400010043f00000012010000290000000001010433000000000001004b0000000002000039000000010200c039000000000021004b00000a3b0000c13d000000000001004b0000000001000411000d00000001001d0000037e0000613d000000140100008a00000000011000310000000201100367000000000101043b000d006000100278000000800200043d000005c1010000410000001104000029000000000014043500000004014001bf000005c204000041000000000041043500000000010004140000058b02200197001200000002001d000000040020008c0000057b0000c13d000000200030008c00000020030080390000001f01300039000000600110018f00000011021000290000002001000039000e00000002001d000000400020043f00000011020000290000000003020433000000000003004b0000000002000039000000010200c039001100000003001d000000000023004b00000a3b0000c13d000000110000006b000006630000c13d000005c1020000410000000e03000029000000000023043500000004023001bf000005c303000041000000000032043500000000020004140000001203000029000000040030008c000006900000c13d0000000e01100029000000400010043f0000000e020000290000000002020433000000000002004b0000000003000039000000010300c039000000000032004b00000a3b0000c13d000000000002004b000007530000c13d0000058d02000041000000000021043500000004021001bf000000200300003900000000003204350000006402100039000005d20300004100000000003204350000004402100039000005d303000041000000000032043500000024021000390000002d0300003900000000003204350000004001100210000005af011001c7000015d5000104300000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000003c90000c13d000001d70000013d00000011050000290000001001000029000000000015004b000005ae0000213d001200000005001d000000000050043f0000058501000041000000200010043f0000000001000414000005760010009c0000057601008041000000c00110021000000586011001c7000080100200003915d315ce0000040f000000010020019000000a3b0000613d000000400200043d000005940020009c00000a2d0000213d000000000101043b0000014003200039000000400030043f000000000301041a00000000033204360000000104100039000000000404041a00000000004304350000000203100039000000000303041a000000400420003900000000003404350000000303100039000000000303041a000000600420003900000000003404350000000403100039000000000303041a000000800420003900000000003404350000000503100039000000000303041a0000058b03300197000000a00420003900000000003404350000000603100039000000000303041a0000058b03300197000000c0042000390000000000340435000000e0032000390000000701100039000000000101041a0000058b041001970000000000430435000000a003100270000000ff0330018f000000020030008c0000001205000029000001c60000213d00000100042000390000000000340435000000a801100270000000ff0310018f000000030030008c000001c60000213d000000110150006a00000120042000390000000000340435000000800300043d000000000013004b00000d550000a13d0000000503100210000000a0033000390000000000230435000000800200043d000000000012004b00000d550000a13d000000010050003a00000001055000390000001001000029000001a90000413d000003d00000013d00000000010004100009058b0010019b000a00000000001d0000000c030000290000000b010000290000042c0000013d0000000b010000290000001203000029000000010030003a0000000103300039000001a90000413d000000000013004b000005cf0000213d001200000003001d000000000030043f0000058501000041000000200010043f0000000001000414000005760010009c0000057601008041000000c00110021000000586011001c7000080100200003915d315ce0000040f000000010020019000000a3b0000613d000000400200043d000005940020009c00000a2d0000213d000000000301043b0000014001200039000000400010043f000000000103041a00000000011204360000000104300039000000000404041a00000000004104350000000201300039000000000101041a000000400420003900000000001404350000000301300039000000000101041a0000006004200039000f00000004001d00000000001404350000000401300039000000000401041a000000800120003900000000004104350000000504300039000000000404041a0000058b04400197000000a005200039000e00000005001d00000000004504350000000604300039000000000404041a0000058b04400197000000c0052000390000000000450435000000e0052000390000000703300039000000000303041a0000058b04300197000d00000005001d0000000000450435000000a004300270000000ff0440018f000000020040008c000001c60000213d00000100052000390000000000450435000000a803300270000000ff0430018f000000030040008c000001c60000213d00000012050000290000000c0350006a0000012005200039001000000005001d0000000000450435000000800400043d000000000034004b00000d550000a13d0000000504300210000000a0044000390000000000240435000000800200043d000000000032004b00000d550000a13d0000000001010433001100000001001d000005950100004100000000001004430000000001000414000005760010009c0000057601008041000000c00110021000000596011001c70000800b0200003915d315ce0000040f000000010020019000000e670000613d000000000101043b000000110010006b000004270000a13d00000010010000290000000001010433000000030010008c000001c60000213d000000010010008c000004270000c13d0000000f0100002900000000050104330000000d0100002900000000020104330000000e010000290000000001010433000000400b00043d000005b70300004100000000003b04350000058b071001970000000401b00039000000000071043500000000010004140000058b06200197000000040060008c000004a70000c13d0000000103000031000000200030008c00000020040000390000000004034019000004da0000013d000e00000007001d001100000005001d0000057600b0009c000005760200004100000000020b40190000004002200210000005760010009c0000057601008041000000c001100210000000000121019f00000588011001c7000f00000006001d000000000206001900100000000b001d15d315ce0000040f000000100b000029000000000301001900000060033002700000057603300197000000200030008c00000020040000390000000004034019000000200640019000000000056b0019000004c60000613d000000000701034f00000000080b0019000000007907043c0000000008980436000000000058004b000004c20000c13d0000001f07400190000004d30000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000007470000613d00000011050000290000000f060000290000000e070000290000001f01400039000000600110018f000000000ab1001900000000001a004b000000000200003900000001020040390000058a00a0009c00000a2d0000213d000000010020019000000a2d0000c13d0000004000a0043f000000200030008c00000a3b0000413d00000000020b0433000000000052004b000004270000413d0000002402a0003900000009040000290000000000420435000005b80200004100000000002a04350000000402a0003900000000007204350000000002000414000000040060008c000005250000613d001100000005001d0000057600a0009c000005760100004100000000010a40190000004001100210000005760020009c0000057602008041000000c002200210000000000112019f0000059b011001c7000000000206001900100000000a001d15d315ce0000040f000000100a000029000000000301001900000060033002700000057603300197000000200030008c00000020040000390000000004034019000000200640019000000000056a0019000005110000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b0000050d0000c13d0000001f074001900000051e0000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000008820000613d0000001f01400039000000600110018f00000011050000290000000001a100190000058a0010009c00000a2d0000213d000000400010043f000000200030008c00000a3b0000413d00000000010a0433000000000051004b000004270000413d0000000a01000029000000010010003a0000000b010000290000001203000029000001a90000413d0000000a02000029000a00010020003d000000010030003a0000000103300039000001a90000413d0000042c0000013d000005760040009c0000057604008041000000c0014002100000004003500210000000000131019f00000588011001c715d315ce0000040f000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000001205700029000005500000613d000000000801034f0000001209000029000000008a08043c0000000009a90436000000000059004b0000054c0000c13d000000000006004b0000055d0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000005690000613d0000001f01400039000000600110018f0000001201100029001100000001001d000000400010043f000000200030008c0000036e0000813d00000a3b0000013d0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000005700000c13d000001d70000013d00000044021000390000058c03000041000000000032043500000024021000390000000803000039000002d50000013d000005760010009c0000057601008041000000c0011002100000001102000029001100000002001d0000004002200210000000000112019f00000588011001c7000000120200002915d315ce0000040f000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000001105700029000005950000613d000000000801034f0000001109000029000000008a08043c0000000009a90436000000000059004b000005910000c13d000000000006004b000005a20000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000005c30000613d0000001f01400039000000600110018f0000001102100029000e00000002001d000000400020043f000000200030008c000003920000813d00000a3b0000013d000000400100043d001200000001001d000000800200003915d30f3a0000040f00000012020000290000000001210049000005760010009c00000576010080410000006001100210000005760020009c00000576020080410000004002200210000000000121019f000015d40001042e000000400100043d00000044021000390000059703000041000000000032043500000024021000390000000703000039000002d50000013d0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000005ca0000c13d000001d70000013d0000000a010000290000058a0010009c00000a2d0000213d0000000a0100002900000005011002100000003f02100039000005a302200197000000400300043d0000000002230019000800000003001d000000000032004b000000000300003900000001030040390000058a0020009c00000a2d0000213d000000010030019000000a2d0000c13d000000400020043f0000000a0200002900000008030000290000000005230436000000000002004b000006040000613d0000000002000019000000400300043d000005940030009c00000a2d0000213d0000014004300039000000400040043f0000012004300039000000000004043500000100043000390000000000040435000000e0043000390000000000040435000000c0043000390000000000040435000000a0043000390000000000040435000000800430003900000000000404350000006004300039000000000004043500000040043000390000000000040435000000200430003900000000000404350000000000030435000000000452001900000000003404350000002002200039000000000012004b000005e70000413d000000800100043d000e00000001001d000000000001004b000007a40000c13d000000400100043d001200000001001d0000000802000029000005b10000013d0000001102000029000005760020009c00000576020080410000004002200210000005760010009c0000057601008041000000c001100210000000000121019f00000588011001c7000000000200041015d315ce0000040f000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000001105700029000006270000613d000000000801034f0000001109000029000000008a08043c0000000009a90436000000000059004b000006230000c13d000000000006004b000006340000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000006840000613d0000001f01400039000000600210018f0000001101200029000000000021004b000000000200003900000001020040390000058a0010009c00000a2d0000213d000000010020019000000a2d0000c13d000000400010043f000000200030008c00000a3b0000413d00000011010000290000000001010433000000000001004b0000000002000039000000010200c039000000000021004b00000a3b0000c13d000000000001004b000006530000613d000000140100008a00000000011000310000000201100367000000000101043b00100060001002780000000001000414000005760010009c000005760100804100000010020000290000058b05200197000000c00110021000000591011001c70000800d0200003900000003030000390000059204000041000000120600002915d315c90000040f000000010020019000000a3b0000613d0000000001000019000015d40001042e001200010000003d000001000100043d000000000001004b000007580000c13d0000000e030000290000004401300039000005d102000041000000000021043500000024013000390000000b0200003900000000002104350000058d01000041000000000013043500000004013000390000002002000039000007670000013d000000400200043d00000587010000410000000000120435001100000002001d00000004012000390000000002000411000800000002001d000000000021043500000000010004140000000002000410000000040020008c000006c20000c13d0000000103000031000000200030008c00000020040000390000000004034019000006ee0000013d0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000068b0000c13d000001d70000013d000005760020009c0000057602008041000000c0012002100000000e02000029000e00000002001d0000004002200210000000000112019f00000588011001c7000000120200002915d315ce0000040f000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000000e05700029000006aa0000613d000000000801034f0000000e09000029000000008a08043c0000000009a90436000000000059004b000006a60000c13d000000000006004b000006b70000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f000300000001035500000001002001900000072f0000613d0000001f01400039000000600110018f0000000e01100029000000400010043f000000200030008c000003a80000813d00000a3b0000013d0000001102000029000005760020009c00000576020080410000004002200210000005760010009c0000057601008041000000c001100210000000000121019f00000588011001c7000000000200041015d315ce0000040f000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000001105700029000006dd0000613d000000000801034f0000001109000029000000008a08043c0000000009a90436000000000059004b000006d90000c13d000000000006004b000006ea0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f000300000001035500000001002001900000073b0000613d0000001f01400039000000600110018f0000001102100029000000000012004b00000000010000390000000101004039000900000002001d0000058a0020009c00000a2d0000213d000000010010019000000a2d0000c13d0000000901000029000000400010043f000000200030008c00000a3b0000413d00000011010000290000000001010433000000000001004b0000000002000039000000010200c039000000000021004b00000a3b0000c13d000000000001004b0000000001000411001100000001001d0000070d0000613d000000140100008a00000000011000310000000201100367000000000101043b001100600010027800000012010000290000000001010433000000020010008c0000000d020000290000000c04000029000001c60000213d0000000002020433000600000002001d00000000020404330007058b0020019b000000000001004b000009a70000613d000000010010008c00000b2f0000c13d0000000b010000290000000001010433000500000001001d00000009020000290000002401200039000000060400002900000000004104350000059c01000041000000000012043500000011010000290000058b041001970000000401200039000600000004001d000000000041043500000000010004140000000702000029000000040020008c000009bf0000c13d0000002004000039000009eb0000013d0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000007360000c13d000001d70000013d0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000007420000c13d000001d70000013d0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000074e0000c13d000001d70000013d000e00000001001d001200000000001d000001000100043d000000000001004b000006670000613d000000c00100043d000000010010008c0000077f0000613d000000000001004b0000076b0000c13d0000000e030000290000004401300039000005c40200004100000000002104350000058d0100004100000000001304350000002401300039000000200200003900000000002104350000000401300039000000000021043500000040013002100000058e011001c7000015d500010430000000110000006b0000077f0000c13d0000000e030000290000006401300039000005cf0200004100000000002104350000004401300039000005d00200004100000000002104350000002401300039000000250200003900000000002104350000058d0100004100000000001304350000000401300039000000200200003900000000002104350000004001300210000005af011001c7000015d500010430000001200200043d001100000002001d000005d60020009c000001a90000213d000005950100004100000000001004430000000001000414000005760010009c0000057601008041000000c00110021000000596011001c70000800b0200003915d315ce0000040f000000010020019000000e670000613d000000110200002900000e1003200039000000400200043d001100000002001d0000000402200039000000000101043b000000000013004b0000088e0000a13d0000058701000041000000110300002900000000001304350000000001000411000000000012043500000000010004140000000002000410000000040020008c0000089c0000c13d0000000103000031000000200030008c00000020040000390000000004034019000008c80000013d0000000003000019000b00000000001d000d00000005001d000007ac0000013d000000110300002900000001033000390000000e0030006c000006080000813d000000800100043d000000000031004b00000d550000a13d001100000003001d0000000501300210000000a001100039000f00000001001d0000000001010433001000000001001d00000080011000390000000001010433001200000001001d000005950100004100000000001004430000000001000414000005760010009c0000057601008041000000c00110021000000596011001c70000800b0200003915d315ce0000040f000000010020019000000e670000613d000000000101043b000000120010006b000007a80000a13d000000100300002900000120013000390000000001010433000000030010008c000001c60000213d000000010010008c0000000d05000029000007a80000c13d00000060013000390000000006010433000000e0013000390000000002010433000000a0013000390000000001010433000000400b00043d000005b70300004100000000003b04350000058b031001970000000401b00039001000000003001d000000000031043500000000010004140000058b02200197000000040020008c001200000002001d000007e50000c13d0000000103000031000000200030008c00000020040000390000000004034019000008140000013d000c00000006001d0000057600b0009c000005760300004100000000030b40190000004003300210000005760010009c0000057601008041000000c001100210000000000131019f00000588011001c7000a0000000b001d15d315ce0000040f0000000a0b000029000000000301001900000060033002700000057603300197000000200030008c00000020040000390000000004034019000000200640019000000000056b0019000008010000613d000000000701034f00000000080b0019000000007907043c0000000008980436000000000058004b000007fd0000c13d0000001f074001900000080e0000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000a3d0000613d0000000d050000290000000c060000290000001f01400039000000600110018f000000000ab1001900000000001a004b000000000200003900000001020040390000058a00a0009c00000a2d0000213d000000010020019000000a2d0000c13d0000004000a0043f000000200030008c00000a3b0000413d00000000020b0433000000000062004b000007a80000413d0000002402a0003900000009040000290000000000420435000005b80200004100000000002a04350000000402a000390000001004000029000000000042043500000000040004140000001202000029000000040020008c000008610000613d000c00000006001d0000057600a0009c000005760100004100000000010a40190000004001100210000005760040009c0000057604008041000000c003400210000000000113019f0000059b011001c700120000000a001d15d315ce0000040f000000120a000029000000000301001900000060033002700000057603300197000000200030008c00000020040000390000000004034019000000200640019000000000056a00190000084c0000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b000008480000c13d0000001f07400190000008590000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000a610000613d0000001f01400039000000600110018f0000000d050000290000000c060000290000000001a100190000058a0010009c00000a2d0000213d000000400010043f000000200030008c00000a3b0000413d00000000010a0433000000000061004b000007a80000413d000000800100043d0000001103000029000000000031004b00000d550000a13d0000000b02000029000005d70020009c000001a90000613d00000008010000290000000001010433000000000021004b00000d550000a13d0000000f0100002900000000010104330000000b0400002900000005024002100000000002520019000000000012043500000008010000290000000001010433000000000041004b00000d550000a13d0000000b01000029000b00010010003d000007a90000013d0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000008890000c13d000001d70000013d0000058d0100004100000011030000290000000000130435000000200100003900000000001204350000006401300039000005c50200004100000000002104350000004401300039000005c602000041000000000021043500000024013000390000002a0200003900000b3d0000013d0000001102000029000005760020009c00000576020080410000004002200210000005760010009c0000057601008041000000c001100210000000000121019f00000588011001c7000000000200041015d315ce0000040f000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000001105700029000008b70000613d000000000801034f0000001109000029000000008a08043c0000000009a90436000000000059004b000008b30000c13d000000000006004b000008c40000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000009b30000613d0000001f01400039000000600210018f0000001101200029000000000021004b000000000200003900000001020040390000058a0010009c00000a2d0000213d000000010020019000000a2d0000c13d000000400010043f000000200030008c00000a3b0000413d00000011010000290000000001010433000000000001004b0000000002000039000000010200c039000000000021004b00000a3b0000c13d000000000001004b000008e30000613d000000140100008a00000000011000310000000201100367000000000101043b0010006000100278000001000300043d000000e00100043d0000058b02100197000000100100002915d310570000040f000000000001004b000002bb0000613d000000400100043d001100000001001d000005940010009c00000a2d0000213d00000011090000290000014001900039000000a00200043d000000c00300043d000001000400043d000001200500043d000000800600043d000000e00700043d000000400010043f00000120089000390000000101000039000900000008001d000000000018043500000100089000390000001201000029001000000008001d00000000001804350000058b01700197000000e007900039000800000007001d00000000001704350000058b01600197000000c006900039001200000006001d00000000001604350000008001900039000e00000001001d00000000005104350000006001900039000c00000001001d00000000004104350000004001900039000b00000001001d00000000003104350000002001900039000a00000001001d00000000002104350000000f0100002900000000001904350000000d020000290000058b02200197000000a003900039000700000002001d000d00000003001d0000000000230435000000000010043f0000058501000041000000200010043f0000000001000414000005760010009c0000057601008041000000c00110021000000586011001c7000080100200003915d315ce0000040f000000010020019000000a3b0000613d00000011020000290000000002020433000000000101043b000000000021041b0000000a0300002900000000030304330000000104100039000000000034041b0000000b0300002900000000030304330000000204100039000000000034041b0000000c0300002900000000030304330000000304100039000000000034041b0000000e0300002900000000030304330000000404100039000000000034041b0000000d0300002900000000030304330000058b033001970000000504100039000000000504041a000005c705500197000000000335019f000000000034041b000000120300002900000000030304330000058b033001970000000604100039000000000504041a000005c705500197000000000335019f000000000034041b00000010030000290000000003030433000000030030008c000001c60000813d00000009040000290000000004040433000000030040008c000001c60000213d0000000701100039000000000501041a000000080700002900000000060704330000058b06600197000005c805500197000000000565019f000000a003300210000005c903300197000000000335019f000000a804400210000005ca04400197000000000343019f000000000031041b000000800300043d000000400100043d00000000022104360000000a04000029000000000404043300000000004204350000000b020000290000000002020433000000400410003900000000002404350000000c020000290000000002020433000000600410003900000000002404350000000e020000290000000002020433000000800410003900000000002404350000000d0200002900000000020204330000058b02200197000000a0041000390000000000240435000000120200002900000000020204330000058b02200197000000c004100039000000000024043500000000020704330000058b02200197000000e004100039000000000024043500000010020000290000000002020433000000020020008c000001c60000213d0000010004100039000000000024043500000009020000290000000002020433000000030020008c000001c60000213d0000058b0730019700000120031000390000000000230435000005760010009c000005760100804100000040011002100000000002000414000005760020009c0000057602008041000000c002200210000000000112019f000005cb011001c70000800d020000390000000403000039000005cc0400004100000007050000290000000f0600002915d315c90000040f000000010020019000000a3b0000613d000000400100043d0000000f020000290000000000210435000005760010009c00000576010080410000004001100210000005bd011001c7000015d40001042e00000598010000410000000902000029000000000012043500000004012000390000000602000029000000000021043500000000010004140000000702000029000000040020008c000009fb0000c13d000000200400003900000a270000013d0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000009ba0000c13d000001d70000013d0000000902000029000005760020009c00000576020080410000004002200210000005760010009c0000057601008041000000c001100210000000000121019f0000059b011001c7000000070200002915d315ce0000040f000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000000905700029000009da0000613d000000000801034f0000000909000029000000008a08043c0000000009a90436000000000059004b000009d60000c13d000000000006004b000009e70000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000a490000613d0000001f01400039000000600110018f0000000902100029001100000002001d0000058a0020009c00000a2d0000213d0000001102000029000000400020043f000000200030008c00000a3b0000413d00000009020000290000000002020433000000050020006c00000a6d0000813d000000110100002900000b2e0000013d0000000902000029000005760020009c00000576020080410000004002200210000005760010009c0000057601008041000000c001100210000000000121019f00000588011001c7000000070200002915d315ce0000040f000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f0000002007400190000000090570002900000a160000613d000000000801034f0000000909000029000000008a08043c0000000009a90436000000000059004b00000a120000c13d000000000006004b00000a230000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000a550000613d0000001f01400039000000600110018f0000000902100029000500000002001d0000058a0020009c00000a330000a13d000005b901000041000000000010043f0000004101000039000000040010043f0000058801000041000015d5000104300000000502000029000000400020043f000000200030008c00000a3b0000413d000000090200002900000000020204330000058b0020009c00000abb0000a13d0000000001000019000015d5000104300000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000a440000c13d000001d70000013d0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000a500000c13d000001d70000013d0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000a5c0000c13d000001d70000013d0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000a680000c13d000001d70000013d00000000020004100000058b022001970000001105000029000000240450003900000000002404350000059a02000041000000000025043500000004025000390000000604000029000000000042043500000000020004140000000704000029000000040040008c00000aa90000613d0000001101000029000005760010009c00000576010080410000004001100210000005760020009c0000057602008041000000c002200210000000000112019f0000059b011001c7000000070200002915d315ce0000040f000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f0000002007400190000000110570002900000a960000613d000000000801034f0000001109000029000000008a08043c0000000009a90436000000000059004b00000a920000c13d000000000006004b00000aa30000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000b430000613d0000001f01400039000000600110018f0000001101100029000900000001001d0000058a0010009c00000a2d0000213d0000000901000029000000400010043f000000200030008c00000a3b0000413d00000011010000290000000001010433000000000001004b0000000002000039000000010200c039000000000021004b00000a3b0000c13d000000000001004b00000b050000c13d00000b2f0000013d000000110220014f0000058b0020019800000b2d0000c13d00000599020000410000000504000029000000000024043500000004024000390000000604000029000000000042043500000000020004140000000704000029000000040040008c00000af60000613d0000000501000029000005760010009c00000576010080410000004001100210000005760020009c0000057602008041000000c002200210000000000112019f00000588011001c7000000070200002915d315ce0000040f000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f0000002007400190000000050570002900000ae30000613d000000000801034f0000000509000029000000008a08043c0000000009a90436000000000059004b00000adf0000c13d000000000006004b00000af00000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000b4f0000613d0000001f01400039000000600110018f0000000502100029000600000002001d0000058a0020009c00000a2d0000213d0000000602000029000000400020043f000000200030008c00000a3b0000413d000000050200002900000000020204330000058b0020009c00000a3b0000213d0000000004000410000000000042004b00000b5b0000c13d00000004010000390000000201100367000000000101043b000000000010043f0000058501000041000000200010043f0000000001000414000005760010009c0000057601008041000000c00110021000000586011001c7000080100200003915d315ce0000040f000000010020019000000a3b0000613d000000000101043b0000000701100039000000000201041a0000058f022001970000059d022001c7000000000021041b00000010010000290000000001010433000700000001001d0000058701000041000000400200043d0000000000120435001100000002001d00000004012000390000000002000411000000000021043500000000010004140000000002000410000000040020008c00000ba20000c13d0000000103000031000000200030008c0000002004000039000000000403401900000bce0000013d0000000501000029000900000001001d00000009030000290000006401300039000005ad0200004100000000002104350000004401300039000005ae02000041000000000021043500000024013000390000002a0200003900000000002104350000058d010000410000000000130435000000040130003900000020020000390000000000210435000005760030009c00000576030080410000004001300210000005af011001c7000015d5000104300000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000b4a0000c13d000001d70000013d0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000b560000c13d000001d70000013d00000000020004100000058b022001970000000605000029000000240450003900000000002404350000059a02000041000000000025043500000011020000290000058b022001970000000404500039000000000024043500000000020004140000000704000029000000040040008c00000b980000613d0000000601000029000005760010009c00000576010080410000004001100210000005760020009c0000057602008041000000c002200210000000000112019f0000059b011001c7000000070200002915d315ce0000040f000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f0000002007400190000000060570002900000b850000613d000000000801034f0000000609000029000000008a08043c0000000009a90436000000000059004b00000b810000c13d000000000006004b00000b920000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000c0b0000613d0000001f01400039000000600110018f0000000601100029000900000001001d0000058a0010009c00000a2d0000213d0000000901000029000000400010043f000000200030008c00000a3b0000413d000000060100002900000ab20000013d0000001102000029000005760020009c00000576020080410000004002200210000005760010009c0000057601008041000000c001100210000000000121019f00000588011001c7000000000200041015d315ce0000040f000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f0000002007400190000000110570002900000bbd0000613d000000000801034f0000001109000029000000008a08043c0000000009a90436000000000059004b00000bb90000c13d000000000006004b00000bca0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000bff0000613d0000001f01400039000000600110018f0000001102100029000000000012004b00000000010000390000000101004039000900000002001d0000058a0020009c00000a2d0000213d000000010010019000000a2d0000c13d0000000901000029000000400010043f000000200030008c00000a3b0000413d00000011010000290000000001010433000000000001004b0000000002000039000000010200c039000000000021004b00000a3b0000c13d000000000001004b0000000001000411000600000001001d00000bed0000613d000000140100008a00000000011000310000000201100367000000000101043b00060060001002780000000f010000290000000001010433001100000001001d0000000e010000290000000001010433000500000001001d0000059e0100004100000009020000290000000001120436000e00000001001d00000000010004140000000002000410000000040020008c00000c170000c13d000000400030008c0000004004000039000000000403401900000c430000013d0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000c060000c13d000001d70000013d0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000c120000c13d000001d70000013d0000000902000029000005760020009c00000576020080410000004002200210000005760010009c0000057601008041000000c001100210000000000121019f0000059f011001c7000000000200041015d315ce0000040f000000000301001900000060033002700000057603300197000000400030008c000000400400003900000000040340190000001f0640018f0000006007400190000000090570002900000c320000613d000000000801034f0000000909000029000000008a08043c0000000009a90436000000000059004b00000c2e0000c13d000000000006004b00000c3f0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000c7d0000613d0000001f01400039000000e00110018f00000009011000290000058a0010009c00000a2d0000213d000000400010043f000000400030008c00000a3b0000413d000000090100002900000000030104330000058b0030009c00000a3b0000213d0000000e0100002900000000020104330000ffff0020008c00000a3b0000213d00000011052000b9000000110000006b00000c590000613d00000011045000fa000000000042004b000001a90000c13d00000007010000290000058b0210019700000005010000290000058b01100197000027100450011a000e00000004001d000700000001001d000900000002001d15d311390000040f0000000e02000029000e001100200073000001a90000413d0000000c0100002900000000010104330000000d020000290000000002020433000000400400043d00000024034000390000000000230435000005a0020000410000000002240436000200000002001d0000058b0110019700000004024000390000000000120435000300000004001d00000044014000390000001102000029000000000021043500000000010004140000000002000410000000040020008c00000c890000c13d0000000301000367000000010300003100000c9b0000013d0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000c840000c13d000001d70000013d0000000302000029000005760020009c00000576020080410000004002200210000005760010009c0000057601008041000000c001100210000000000121019f0000058e011001c7000000000200041015d315c90000040f00000000030100190000006003300270000105760030019d00000576033001970003000000010355000000010020019000000d5b0000613d000005d5053001980000001f0630018f000000030450002900000ca50000613d000000000701034f0000000308000029000000007907043c0000000008980436000000000048004b00000ca10000c13d000000000006004b00000cb20000613d000000000151034f0000000305600210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000001f01300039000005d5011001970000000302100029000000000012004b00000000010000390000000101004039000500000002001d0000058a0020009c00000a2d0000213d000000010010019000000a2d0000c13d0000000501000029000000400010043f000005a10030009c00000a3b0000213d000000400030008c00000a3b0000413d000000030100002900000000010104330000058a0010009c00000a3b0000213d00000003041000290000000301300029000005a2021001970000001f03400039000005a205300197000000000625013f000000000025004b0000000005000019000005a205004041000000000013004b0000000003000019000005a203008041000005a20060009c000000000503c019000000000005004b00000a3b0000c13d00000000340404340000058a0040009c00000a2d0000213d00000005054002100000003f06500039000005a30660019700000005066000290000058a0060009c00000a2d0000213d000000400060043f00000005060000290000000004460436000400000004001d0000000004350019000000000014004b00000a3b0000213d000000000043004b00000cf00000813d000000040500002900000000360304340000058b0060009c00000a3b0000213d0000000005650436000000000043004b00000cea0000413d000000020300002900000000030304330000058a0030009c00000a3b0000213d00000003033000290000001f04300039000000000014004b0000000005000019000005a205008041000005a204400197000000000624013f000000000024004b0000000002000019000005a202004041000005a20060009c000000000205c019000000000002004b00000a3b0000c13d00000000230304340000058a0030009c00000a2d0000213d00000005043002100000003f05400039000005a305500197000000400600043d0000000005560019000300000006001d000000000065004b000000000600003900000001060040390000058a0050009c00000a2d0000213d000000010060019000000a2d0000c13d000000400050043f00000003050000290000000003350436000200000003001d0000000003240019000000000013004b00000a3b0000213d000000000032004b00000d210000813d0000000301000029000000200110003900000000240204340000000000410435000000000032004b00000d1c0000413d00000005010000290000000001010433000100000001001d000000000001004b00000d400000613d001100000000001d00000005010000290000000001010433000000110010006c00000d550000a13d00000003010000290000000001010433000000110010006c00000d550000a13d0000001101000029000000050110021000000002021000290000000004020433000e000e0040007300000d670000413d000000040110002900000000010104330000058b031001970000000701000029000000090200002915d311390000040f00000011020000290000000102200039001100000002001d000000010020006c00000d270000413d0000000701000029000000090200002900000006030000290000000e0400002915d311390000040f0000058701000041000000400200043d0000000000120435000e00000002001d00000004012000390000000002000411000000000021043500000000010004140000000002000410000000040020008c00000d6e0000c13d0000000103000031000000200030008c0000002004000039000000000403401900000d9a0000013d000005b901000041000000000010043f0000003201000039000000040010043f0000058801000041000015d5000104300000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000d620000c13d000001d70000013d000000400100043d0000004402100039000005a403000041000000000032043500000024021000390000001503000039000002d50000013d0000000e02000029000005760020009c00000576020080410000004002200210000005760010009c0000057601008041000000c001100210000000000121019f00000588011001c7000000000200041015d315ce0000040f000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000000e0570002900000d890000613d000000000801034f0000000e09000029000000008a08043c0000000009a90436000000000059004b00000d850000c13d000000000006004b00000d960000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000e160000613d0000001f01400039000000600110018f0000000e02100029000000000012004b00000000010000390000000101004039001100000002001d0000058a0020009c00000a2d0000213d000000010010019000000a2d0000c13d0000001101000029000000400010043f000000200030008c00000a3b0000413d0000000e010000290000000001010433000000000001004b0000000002000039000000010200c039000000000021004b00000a3b0000c13d000000000001004b0000000001000411000e00000001001d00000db90000613d000000140100008a00000000011000310000000201100367000000000101043b000e00600010027800000012010000290000000001010433000000020010008c0000001002000029000001c60000213d00000000020204330012058b0020019b000000000001004b00000e220000613d000000010010008c00000e680000c13d0000000b010000290000000001010433000700000001001d0000000d010000290000000001010433001100000001001d0000000c010000290000000001010433000005a50200004100000000002004430000058b01100197000900000001001d00000004001004430000000001000414000005760010009c0000057601008041000000c001100210000005a6011001c7000080020200003915d315ce0000040f000000010020019000000e670000613d000000000101043b000000000001004b00000a3b0000613d000000400300043d0000008401300039000000a0020000390000000000210435000000640130003900000007020000290000000000210435000000440130003900000011020000290000000000210435000000240130003900000012020000290000000000210435000005a90100004100000000001304350000000e010000290000058b011001970000000402300039001200000002001d0000000000120435001100000003001d000000a401300039000000000001043500000000010004140000000902000029000000040020008c00000e610000613d0000001102000029000005760020009c00000576020080410000004002200210000005760010009c0000057601008041000000c001100210000000000121019f000005aa011001c7000000090200002915d315c90000040f00000000030100190000006003300270000105760030019d0003000000010355000000010020019000000e610000c13d00000576033001970000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000e110000c13d000001d70000013d0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000e1d0000c13d000001d70000013d0000000d010000290000000001010433001100000001001d0000000c010000290000000001010433000005a50200004100000000002004430000058b01100197000900000001001d00000004001004430000000001000414000005760010009c0000057601008041000000c001100210000005a6011001c7000080020200003915d315ce0000040f000000010020019000000e670000613d000000000101043b000000000001004b000000800200003900000a3b0000613d000000400300043d00000064013000390000000000210435000000440130003900000011020000290000000000210435000000240130003900000012020000290000000000210435000005a70100004100000000001304350000000e010000290000058b011001970000000402300039001200000002001d0000000000120435001100000003001d0000008401300039000000000001043500000000010004140000000902000029000000040020008c00000e610000613d0000001102000029000005760020009c00000576020080410000004002200210000005760010009c0000057601008041000000c001100210000000000121019f000005a8011001c7000000090200002915d315c90000040f00000000030100190000006003300270000105760030019d0003000000010355000000010020019000000e850000613d00000011010000290000058a0010009c00000a2d0000213d0000001101000029000000400010043f00000e6a0000013d000000000001042f0000001101000029001200040010003d0000000d010000290000000001010433000d00000001001d0000000a010000290000000001010433000e00000001001d00000010010000290000000001010433001000000001001d0000000c010000290000000001010433000c00000001001d00000587010000410000001102000029000000000012043500000000010004110000001202000029000000000012043500000000010004140000000002000410000000040020008c00000e920000c13d0000000103000031000000200030008c0000002004000039000000000403401900000ebf0000013d00000576033001970000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000e8d0000c13d000001d70000013d0000001102000029001100000002001d000005760020009c00000576020080410000004002200210000005760010009c0000057601008041000000c001100210000000000121019f00000588011001c7000000000200041015d315ce0000040f000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f0000002007400190000000110570002900000eae0000613d000000000801034f0000001109000029000000008a08043c0000000009a90436000000000059004b00000eaa0000c13d000000000006004b00000ebb0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000efc0000613d0000001f01400039000000600110018f00000011011000290000058a0010009c00000a2d0000213d000000400010043f000000200030008c00000a3b0000413d00000011020000290000000002020433000000000002004b0000000003000039000000010300c039000000000032004b00000a3b0000c13d0000000c030000290000058b0730019700000010030000290000058b05300197000000000002004b00000ed90000613d000000140200008a00000000022000310000000202200367000000000202043b00080060002002780000000b0200002900000000020204330000000f030000290000000003030433000000600410003900000000003404350000004003100039000000000023043500000008020000290000058b02200197000000200310003900000000002304350000000d020000290000000000210435000005760010009c000005760100804100000040011002100000000002000414000005760020009c0000057602008041000000c002200210000000000112019f000005ab011001c70000800d020000390000000403000039000005ac040000410000000e0600002915d315c90000040f000000010020019000000a3b0000613d00000001010000390000057702000041000000000012041b0000000001000019000015d40001042e0000001f0530018f0000058906300198000000400200043d0000000004620019000001d70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000f030000c13d000001d70000013d0000000043010434000000000332043600000000040404330000000000430435000000400310003900000000030304330000004004200039000000000034043500000060031000390000000003030433000000600420003900000000003404350000008003100039000000000303043300000080042000390000000000340435000000a00310003900000000030304330000058b03300197000000a0042000390000000000340435000000c00310003900000000030304330000058b03300197000000c0042000390000000000340435000000e003200039000000e00410003900000000040404330000058b04400197000000000043043500000100031000390000000003030433000000030030008c00000f340000813d0000010004200039000000000034043500000120011000390000000001010433000000030010008c00000f340000213d00000120022000390000000000120435000000000001042d000005b901000041000000000010043f0000002101000039000000040010043f0000058801000041000015d50001043000000020030000390000000004310436000000000302043300000000003404350000004001100039000000000003004b00000f730000613d0000000004000019000000200220003900000000050204330000000076050434000000000661043600000000070704330000000000760435000000400650003900000000060604330000004007100039000000000067043500000060065000390000000006060433000000600710003900000000006704350000008006500039000000000606043300000080071000390000000000670435000000a00650003900000000060604330000058b06600197000000a0071000390000000000670435000000c00650003900000000060604330000058b06600197000000c0071000390000000000670435000000e006100039000000e00750003900000000070704330000058b07700197000000000076043500000100065000390000000006060433000000030060008c00000f740000813d0000010007100039000000000067043500000120055000390000000005050433000000030050008c00000f740000213d0000012006100039000000000056043500000140011000390000000104400039000000000034004b00000f420000413d000000000001042d000005b901000041000000000010043f0000002101000039000000040010043f0000058801000041000015d5000104300001000000000002000000400b00043d000005870100004100000000001b04350000000402b000390000000001000411000000000012043500000000040004140000000002000410000000040020008c00000f8a0000c13d0000000103000031000000200030008c0000002004000039000000000403401900000fb80000013d0000057600b0009c000005760300004100000000030b40190000004003300210000005760040009c0000057604008041000000c001400210000000000131019f00000588011001c700010000000b001d15d315ce0000040f000000010b000029000000000301001900000060033002700000057603300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b001900000fa60000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b00000fa20000c13d000000000006004b00000fb30000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000fdb0000613d00000000010004110000001f02400039000000600220018f0000000004b20019000000000024004b000000000200003900000001020040390000058a0040009c00000fd50000213d000000010020019000000fd50000c13d000000400040043f0000001f0030008c00000fd30000a13d00000000030b0433000000000003004b0000000002000039000000010200c039000000000023004b00000fd30000c13d000000000003004b00000fd20000613d000000140100008a00000000011000310000000201100367000000000101043b0000006001100270000000000001042d0000000001000019000015d500010430000005b901000041000000000010043f0000004101000039000000040010043f0000058801000041000015d5000104300000001f0530018f0000058906300198000000400200043d000000000462001900000fe60000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000fe20000c13d000000000005004b00000ff30000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000005760020009c00000576020080410000004002200210000000000112019f000015d500010430000000400100043d000005d80010009c000010120000813d0000014002100039000000400020043f0000012002100039000000000002043500000100021000390000000000020435000000e0021000390000000000020435000000c0021000390000000000020435000000a0021000390000000000020435000000800210003900000000000204350000006002100039000000000002043500000040021000390000000000020435000000200210003900000000000204350000000000010435000000000001042d000005b901000041000000000010043f0000004101000039000000040010043f0000058801000041000015d5000104300000000002010019000000400100043d000005d80010009c000010510000813d0000014003100039000000400030043f000000000302041a00000000033104360000000104200039000000000404041a00000000004304350000000203200039000000000303041a000000400410003900000000003404350000000303200039000000000303041a000000600410003900000000003404350000000403200039000000000303041a000000800410003900000000003404350000000503200039000000000303041a0000058b03300197000000a00410003900000000003404350000000603200039000000000303041a0000058b03300197000000c0041000390000000000340435000000e0031000390000000702200039000000000202041a0000058b042001970000000000430435000000a003200270000000ff0330018f000000030030008c0000104b0000813d00000100041000390000000000340435000000a802200270000000ff0220018f000000030020008c0000104b0000213d00000120031000390000000000230435000000000001042d000005b901000041000000000010043f0000002101000039000000040010043f0000058801000041000015d500010430000005b901000041000000000010043f0000004101000039000000040010043f0000058801000041000015d5000104300004000000000002000000400d00043d000005b70400004100000000004d04350000058b061001970000000401d00039000000000061043500000000010004140000058b05200197000000040050008c000010670000c13d000000010b0000310000002000b0008c000000200400003900000000040b40190000109b0000013d000100000006001d000400000003001d0000057600d0009c000005760200004100000000020d40190000004002200210000005760010009c0000057601008041000000c001100210000000000121019f00000588011001c7000200000005001d000000000205001900030000000d001d15d315ce0000040f000000030d00002900000000030100190000006003300270000005760b3001970000002000b0008c000000200400003900000000040b40190000001f0640018f000000200740019000000000057d0019000010870000613d000000000801034f00000000090d0019000000008a08043c0000000009a90436000000000059004b000010830000c13d000000000006004b000010940000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f000000000065043500010000000b001f00030000000103550000000100200190000010fd0000613d0000000403000029000000020500002900000001060000290000001f01400039000000600110018f000000000cd1001900000000001c004b000000000200003900000001020040390000058a00c0009c000010f50000213d0000000100200190000010f50000c13d0000004000c0043f0000001f00b0008c000010fb0000a13d00000000020d0433000000000032004b0000000002000019000010f30000413d00000000020004100000058b022001970000002404c000390000000000240435000005b80200004100000000002c04350000000402c0003900000000006204350000000002000414000000040050008c000010e90000613d000400000003001d0000057600c0009c000005760100004100000000010c40190000004001100210000005760020009c0000057602008041000000c002200210000000000112019f0000059b011001c7000000000205001900030000000c001d15d315ce0000040f000000030c00002900000000030100190000006003300270000005760b3001970000002000b0008c000000200400003900000000040b40190000001f0640018f000000200740019000000000057c0019000010d50000613d000000000801034f00000000090c0019000000008a08043c0000000009a90436000000000059004b000010d10000c13d000000000006004b000010e20000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f000000000065043500010000000b001f000300000001035500000001002001900000111b0000613d0000001f01400039000000600110018f00000004030000290000000001c100190000058a0010009c000010f50000213d000000400010043f0000002000b0008c000010fb0000413d00000000010c0433000000000031004b00000000020000390000000102008039000000010120018f000000000001042d000005b901000041000000000010043f0000004101000039000000040010043f0000058801000041000015d5000104300000000001000019000015d5000104300000001f05b0018f0000058906b00198000000400200043d0000000004620019000011080000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000011040000c13d000000000005004b000011150000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001b00210000005760020009c00000576020080410000004002200210000000000112019f000015d5000104300000001f05b0018f0000058906b00198000000400200043d0000000004620019000011260000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000011220000c13d000000000005004b000011330000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001b00210000005760020009c00000576020080410000004002200210000000000121019f000015d50001043000040000000000020000000005030019000000000004004b000014ab0000613d0000058b032001970000058b09100197000005d90090009c0000119a0000c13d0000000001000410000000000013004b000400000004001d000011e80000c13d000300000005001d000005a501000041000000000010044300000004000004430000000001000414000005760010009c0000057601008041000000c001100210000005a6011001c7000080020200003915d315ce0000040f0000000100200190000014b40000613d000000000101043b000000000001004b0000000402000029000014b20000613d000000400300043d000005e601000041000000000013043500000004013000390000000000210435000005760030009c000200000003001d0000057601000041000000000103401900000040011002100000000002000414000005760020009c0000057602008041000000c002200210000000000112019f00000588011001c7000000000200001915d315c90000040f00000000030100190000006003300270000105760030019d000005760a30019700030000000103550000000100200190000014c90000613d00000002050000290000058a0050009c0000000403000029000014ac0000213d000000400050043f00000000020004140000000304000029000000040040008c0000128d0000c13d00000000000a004b000014ab0000613d0000001f02a00039000005e0022001970000003f02200039000005e10220019700000000025200190000058a0020009c000014ac0000213d000000400020043f0000001f04a0018f0000000005a504360000058903a0019800000000023500190000118c0000613d000000000601034f000000006706043c0000000005750436000000000025004b000011880000c13d000000000004004b000014ab0000613d000000000131034f0000000303400210000000000402043300000000043401cf000000000434022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000141019f0000000000120435000000000001042d0000058b08500197000000000083004b000014ab0000613d000000400200043d0000004405200039000000240620003900000020012000390000000007000410000000000073004b0000121b0000c13d000005de0300004100000000003104350000000000860435000000000045043500000044030000390000000000320435000005b40020009c000014ac0000213d000000800a2000390000004000a0043f000005df00a0009c000014ac0000213d000000c003200039000000400030043f000000200300003900000000003a0435000000a004200039000005dd03000041000000000034043500000000030204330000000002000414000000040090008c000300000004001d000013ff0000c13d00000001020000390000000101000031000000000001004b000014170000613d0000001f04100039000005d5044001970000003f04400039000005d504400197000000400c00043d00000000044c00190000000000c4004b000000000500003900000001050040390000058a0040009c000014ac0000213d0000000100500190000014ac0000c13d000000400040043f000000000b1c0436000005d5031001980000001f0410018f00000000013b00190000000305000367000011da0000613d000000000605034f00000000070b0019000000006806043c0000000007870436000000000017004b000011d60000c13d000000000004004b000014190000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f0000000000310435000014190000013d0000058b02500197000000000012004b000012610000c13d0000000001000416000000000041004b000014f40000c13d000005a501000041000000000010044300000004000004430000000001000414000005760010009c0000057601008041000000c001100210000005a6011001c7000080020200003915d315ce0000040f0000000100200190000014b40000613d000000000101043b000000000001004b0000000403000029000014b20000613d000000400200043d000005e2010000410000000000120435000005760020009c000300000002001d0000057601000041000000000102401900000040011002100000000002000414000005760020009c0000057602008041000000c002200210000000000112019f000005e3011001c700008009020000390000000004000019000000000500001915d315c90000040f00000000030100190000006003300270000105760030019d00030000000103550000000100200190000015010000613d00000003010000290000058a0010009c000014ac0000213d000000400010043f000000000001042d000005da070000410000000000710435000000000036043500000000008504350000006403200039000000000043043500000064030000390000000000320435000005db0020009c000014ac0000213d000000a00a2000390000004000a0043f000005dc0020009c000014ac0000213d000000e003200039000000400030043f000000200300003900000000003a0435000000c004200039000005dd03000041000000000034043500000000030204330000000002000414000000040090008c000300000004001d000014390000c13d00000001020000390000000101000031000000000001004b000014510000613d0000001f04100039000005d5044001970000003f04400039000005d504400197000000400c00043d00000000044c00190000000000c4004b000000000500003900000001050040390000058a0040009c000014ac0000213d0000000100500190000014ac0000c13d000000400040043f000000000b1c0436000005d5031001980000001f0410018f00000000013b00190000000305000367000012530000613d000000000605034f00000000070b0019000000006806043c0000000007870436000000000017004b0000124f0000c13d000000000004004b000014530000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f0000000000310435000014530000013d0000000001000414000000040050008c000013450000c13d0000000101000032000014ab0000613d0000001f03100039000005d5033001970000003f03300039000005d504300197000000400300043d0000000004430019000000000034004b000000000500003900000001050040390000058a0040009c000014ac0000213d0000000100500190000014ac0000c13d000000400040043f0000000005130436000005d5021001980000001f0310018f000000000125001900000003040003670000127f0000613d000000000604034f000000006706043c0000000005750436000000000015004b0000127b0000c13d000000000003004b000014ab0000613d000000000224034f0000000303300210000000000401043300000000043401cf000000000434022f000000000202043b0000010003300089000000000232022f00000000023201cf000000000242019f0000000000210435000000000001042d000005760020009c0000057602008041000000c00120021000000591011001c70000800902000039000000000500001915d315c90000040f000300000001035500000000030100190000006003300270000105760030019d0000057603300198000012bf0000613d0000001f04300039000005e0044001970000003f04400039000005e104400197000000400500043d0000000004450019000000000054004b000000000600003900000001060040390000058a0040009c000014ac0000213d0000000100600190000014ac0000c13d000000400040043f0000001f0430018f000000000635043600000589053001980000000003560019000012b20000613d000000000701034f000000007807043c0000000006860436000000000036004b000012ae0000c13d000000000004004b000012bf0000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000000100200190000014ab0000c13d000005a501000041000000000010044300000004000004430000000001000414000005760010009c0000057601008041000000c001100210000005a6011001c7000080020200003915d315ce0000040f0000000100200190000014b40000613d000000000101043b000000000001004b0000000403000029000014b20000613d000000400200043d000005e2010000410000000001120436000100000001001d000005760020009c000200000002001d0000057601000041000000000102401900000040011002100000000002000414000005760020009c0000057602008041000000c002200210000000000112019f000005e3011001c700008009020000390000000004000019000000000500001915d315c90000040f00000000030100190000006003300270000105760030019d00030000000103550000000100200190000015420000613d00000002030000290000058a0030009c00000004020000290000000104000029000014ac0000213d000000400030043f00000044013000390000000000210435000005de01000041000000000014043500000003010000290000058b011001970000002402300039000000000012043500000044010000390000000000130435000005b40030009c000014ac0000213d0000008002300039000000400020043f000005e40030009c000014ac0000213d000000c001300039000000400010043f0000002001000039000300000002001d0000000000120435000000a002300039000005dd01000041000400000002001d0000000000120435000005760040009c000005760400804100000040014002100000000002030433000005760020009c00000576020080410000006002200210000000000112019f0000000002000414000005760020009c0000057602008041000000c002200210000000000121019f000000000200001915d315c90000040f000300000001035500000000030100190000006003300270000105760030019d0000057603300198000014740000613d0000001f04300039000005e0044001970000003f04400039000005e104400197000000400a00043d00000000044a00190000000000a4004b000000000500003900000001050040390000058a0040009c000014ac0000213d0000000100500190000014ac0000c13d000000400040043f0000001f0430018f00000000093a043600000589053001980000000003590019000013370000613d000000000601034f0000000007090019000000006806043c0000000007870436000000000037004b000013330000c13d000000000004004b000014760000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000130435000014760000013d000300000002001d000005760010009c0000057601008041000000c00110021000000591011001c7000080090200003900000000030400190000000004050019000000000500001915d315c90000040f000300000001035500000000030100190000006003300270000105760030019d00000576033001980000137a0000613d0000001f04300039000005e0044001970000003f04400039000005e104400197000000400500043d0000000004450019000000000054004b000000000600003900000001060040390000058a0040009c000014ac0000213d0000000100600190000014ac0000c13d000000400040043f0000001f0430018f0000000006350436000005890530019800000000035600190000136d0000613d000000000701034f000000007807043c0000000006860436000000000036004b000013690000c13d000000000004004b0000137a0000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000000100200190000014ab0000c13d000005a501000041000000000010044300000004000004430000000001000414000005760010009c0000057601008041000000c001100210000005a6011001c7000080020200003915d315ce0000040f0000000100200190000014b40000613d000000000101043b000000000001004b0000000403000029000014b20000613d000000400200043d000005e2010000410000000001120436000100000001001d000005760020009c000200000002001d0000057601000041000000000102401900000040011002100000000002000414000005760020009c0000057602008041000000c002200210000000000112019f000005e3011001c700008009020000390000000004000019000000000500001915d315c90000040f00000000030100190000006003300270000105760030019d00030000000103550000000100200190000015740000613d00000002030000290000058a0030009c00000004020000290000000104000029000014ac0000213d000000400030043f00000044013000390000000000210435000005de01000041000000000014043500000024013000390000000302000029000000000021043500000044010000390000000000130435000005b40030009c000014ac0000213d0000008002300039000000400020043f000005e40030009c000014ac0000213d000000c001300039000000400010043f0000002001000039000300000002001d0000000000120435000000a002300039000005dd01000041000400000002001d0000000000120435000005760040009c000005760400804100000040014002100000000002030433000005760020009c00000576020080410000006002200210000000000112019f0000000002000414000005760020009c0000057602008041000000c002200210000000000121019f000000000200001915d315c90000040f000300000001035500000000030100190000006003300270000105760030019d0000057603300198000014820000613d0000001f04300039000005e0044001970000003f04400039000005e104400197000000400a00043d00000000044a00190000000000a4004b000000000500003900000001050040390000058a0040009c000014ac0000213d0000000100500190000014ac0000c13d000000400040043f0000001f0430018f00000000093a043600000589053001980000000003590019000013f10000613d000000000601034f0000000007090019000000006806043c0000000007870436000000000037004b000013ed0000c13d000000000004004b000014840000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000130435000014840000013d000005760010009c00000576010080410000004001100210000005760030009c00000576030080410000006003300210000000000113019f000005760020009c0000057602008041000000c002200210000000000121019f0000000002090019000400000009001d00020000000a001d15d315c90000040f000000020a0000290000000409000029000000010220018f00030000000103550000006001100270000105760010019d0000057601100197000000000001004b000011c00000c13d000000600c000039000000800b00003900000000010c0433000000000002004b0000150e0000613d000000000001004b000014340000c13d00040000000c001d00030000000b001d000005a501000041000000000010044300000004009004430000000001000414000005760010009c0000057601008041000000c001100210000005a6011001c7000080020200003915d315ce0000040f0000000100200190000014b40000613d000000000101043b000000000001004b0000000401000029000014e30000613d0000000001010433000000000001004b000000030b000029000014ab0000613d000005a10010009c000014b20000213d000000200010008c000014720000813d000014b20000013d000005760010009c00000576010080410000004001100210000005760030009c00000576030080410000006003300210000000000113019f000005760020009c0000057602008041000000c002200210000000000121019f0000000002090019000400000009001d00020000000a001d15d315c90000040f000000020a0000290000000409000029000000010220018f00030000000103550000006001100270000105760010019d0000057601100197000000000001004b000012390000c13d000000600c000039000000800b00003900000000010c0433000000000002004b000015260000613d000000000001004b0000146e0000c13d00040000000c001d00030000000b001d000005a501000041000000000010044300000004009004430000000001000414000005760010009c0000057601008041000000c001100210000005a6011001c7000080020200003915d315ce0000040f0000000100200190000014b40000613d000000000101043b000000000001004b0000000401000029000014e30000613d0000000001010433000000000001004b000000030b000029000014ab0000613d000005a10010009c000014b20000213d0000001f0010008c000014b20000a13d00000000010b0433000014a40000013d000000600a000039000000800900003900000000010a043300000001002001900000154f0000613d000000000001004b0000149f0000c13d00040000000a001d000300000009001d000005a5010000410000000000100443000000040000044300000000010004140000148f0000013d000000600a000039000000800900003900000000010a04330000000100200190000015930000613d000000000001004b0000149f0000c13d00040000000a001d000300000009001d000005a501000041000000000010044300000004000004430000000001000414000005760010009c0000057601008041000000c001100210000005a6011001c7000080020200003915d315ce0000040f0000000100200190000014b40000613d000000000101043b000000000001004b0000000401000029000014e30000613d0000000001010433000000000001004b0000000309000029000014ab0000613d000005a10010009c000014b20000213d000000200010008c000014b20000413d0000000001090433000000000001004b0000000002000039000000010200c039000000000021004b000014b20000c13d000000000001004b000014b50000613d000000000001042d000005b901000041000000000010043f0000004101000039000000040010043f0000058801000041000015d5000104300000000001000019000015d500010430000000000001042f000000400100043d0000006402100039000005e70300004100000000003204350000004402100039000005e803000041000000000032043500000024021000390000002a0300003900000000003204350000058d020000410000000000210435000000040210003900000020030000390000000000320435000005760010009c00000576010080410000004001100210000005af011001c7000015d5000104300000001f05a0018f0000058906a00198000000400200043d0000000004620019000014d40000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000014d00000c13d000000000005004b000014e10000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001a002100000158e0000013d000000400100043d0000004402100039000005e903000041000000000032043500000024021000390000001d0300003900000000003204350000058d020000410000000000210435000000040210003900000020030000390000000000320435000005760010009c000005760100804100000040011002100000058e011001c7000015d500010430000000400200043d000000240320003900000004040000290000000000430435000005e503000041000000000032043500000004032000390000000000130435000005760020009c000005760200804100000040012002100000059b011001c7000015d50001043000000576033001970000001f0530018f0000058906300198000000400200043d0000000004620019000015800000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000015090000c13d000015800000013d000000000001004b0000153e0000c13d000000400100043d0000058d02000041000000000021043500000004021000390000002003000039000000000032043500000000020a0433000000240310003900000000002304350000004403100039000000000002004b0000000307000029000015670000613d000000000400001900000000053400190000000006740019000000000606043300000000006504350000002004400039000000000024004b0000151e0000413d000015670000013d000000000001004b0000153e0000c13d000000400100043d0000058d02000041000000000021043500000004021000390000002003000039000000000032043500000000020a0433000000240310003900000000002304350000004403100039000000000002004b0000000307000029000015670000613d000000000400001900000000053400190000000006740019000000000606043300000000006504350000002004400039000000000024004b000015360000413d000015670000013d0000057600b0009c000005760b0080410000004002b00210000015b20000013d00000576033001970000001f0530018f0000058906300198000000400200043d0000000004620019000015800000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000154a0000c13d000015800000013d000000000001004b000015af0000c13d000000400100043d0000058d02000041000000000021043500000004021000390000002003000039000000000032043500000003020000290000000002020433000000240310003900000000002304350000004403100039000000000002004b0000000407000029000015670000613d000000000400001900000000053400190000000006740019000000000606043300000000006504350000002004400039000000000024004b000015600000413d0000001f04200039000005d504400197000000000232001900000000000204350000004402400039000005760020009c00000576020080410000006002200210000005760010009c00000576010080410000004001100210000000000112019f000015d50001043000000576033001970000001f0530018f0000058906300198000000400200043d0000000004620019000015800000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000157c0000c13d000000000005004b0000158d0000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000005760020009c00000576020080410000004002200210000000000112019f000015d500010430000000000001004b000015af0000c13d000000400100043d0000058d02000041000000000021043500000004021000390000002003000039000000000032043500000003020000290000000002020433000000240310003900000000002304350000004403100039000000000002004b0000000407000029000015ab0000613d000000000400001900000000053400190000000006740019000000000606043300000000006504350000002004400039000000000024004b000015a40000413d0000001f04200039000005d50440019700000000022300190000156a0000013d000005760090009c00000576090080410000004002900210000005760010009c00000576010080410000006001100210000000000121019f000015d500010430000000000001042f0000000002000414000005760020009c0000057602008041000000c002200210000005760010009c00000576010080410000004001100210000000000121019f00000586011001c7000080100200003915d315ce0000040f0000000100200190000015c70000613d000000000101043b000000000001042d0000000001000019000015d500010430000015cc002104210000000102000039000000000001042d0000000002000019000000000001042d000015d1002104230000000102000039000000000001042d0000000002000019000000000001042d000015d300000432000015d40001042e000015d5000104300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff1d281c488dae143b6ea4122e80c65059929950b9c32f17fc57be22089d9c3b0000000002000000000000000000000000000000400000010000000000000000000000000000000000000000000000000000000000000000000000000091940b3d00000000000000000000000000000000000000000000000000000000c1edcfbd00000000000000000000000000000000000000000000000000000000c1edcfbe00000000000000000000000000000000000000000000000000000000c815729d00000000000000000000000000000000000000000000000000000000ef706adf0000000000000000000000000000000000000000000000000000000091940b3e00000000000000000000000000000000000000000000000000000000a9fd8ed10000000000000000000000000000000000000000000000000000000045792689000000000000000000000000000000000000000000000000000000004579268a000000000000000000000000000000000000000000000000000000008b49d47e00000000000000000000000000000000000000000000000000000000016767fa00000000000000000000000000000000000000000000000000000000119df25f8f8effea55e8d961f30e12024b944289ed8a7f60abcf4b3989df2dc98a9143010200000000000000000000000000000000000040000000000000000000000000572b6c0500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffe0000000000000000000000000000000000000000000000000ffffffffffffffff000000000000000000000000ffffffffffffffffffffffffffffffffffffffff214f666665726f7200000000000000000000000000000000000000000000000008c379a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000ffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff0000000000000000000003000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000026c37611219fb1f3253d3027b738bb3e678ed39b193c956cb48193e6431478d34d61726b6574706c6163653a20696e76616c6964206f666665722e0000000000000000000000000000000000000000000000000000000000fffffffffffffebf796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d95539132020000020000000000000000000000000000000400000000000000000000000045585049524544000000000000000000000000000000000000000000000000006352211e00000000000000000000000000000000000000000000000000000000081812fc00000000000000000000000000000000000000000000000000000000e985e9c500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000fdd58e000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000d45573f6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000f533b802000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe066656573206578636565642074686520707269636500000000000000000000001806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b830200000200000000000000000000000000000024000000000000000000000000b88d4fde0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a4000000000000000000000000f242432a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c40000000000000000000000000200000000000000000000000000000000000080000000000000000000000000c3888b4f8640ff369e48089b45596f4adc2e39c73dc7fc6e609f2ad05f879540656420746f6b656e732e000000000000000000000000000000000000000000004d61726b6574706c6163653a206e6f74206f776e6572206f7220617070726f7600000000000000000000000000000000000000840000000000000000000000005265656e7472616e637947756172643a207265656e7472616e742063616c6c0000000000000000000000000000000000000000640000008000000000000000008f8effea55e8d961f30e12024b944289ed8a7f60abcf4b3989df2dc98a914300000000000000000000000000000000000000000000000000fffffffffffffffe000000000000000000000000000000000000000000000000ffffffffffffff7f000000000000000000000000000000000000000000000000fffffffffffffe3f000000000000000000000000000000000000002000000080000000000000000070a0823100000000000000000000000000000000000000000000000000000000dd62ed3e000000000000000000000000000000000000000000000000000000004e487b7100000000000000000000000000000000000000000000000000000000696e76616c69642072616e676500000000000000000000000000000000000000000000000000000000000000000000000000002400000080000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000a32fa5b30000000000000000000000000000000000000000000000000000000086d5cf0a6bdc8d859ba3bdc97043337c82a0e609035f378e419298b6a3e00ae6000000000000000000000000000000000000004400000140000000000000000001ffc9a700000000000000000000000000000000000000000000000000000000d9b67a260000000000000000000000000000000000000000000000000000000080ac58cd000000000000000000000000000000000000000000000000000000004d61726b6574706c6163653a2077616e746564207a65726f20746f6b656e732e74696d657374616d702e000000000000000000000000000000000000000000004d61726b6574706c6163653a20696e76616c69642065787069726174696f6e20ffffffffffffffffffffffff0000000000000000000000000000000000000000ffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000ff000000000000000000000000000000000000000000000000000000000000ff00000000000000000000000000000000000000000002000000000000000000000000000000000001400000000000000000000000008a597d224658d6f05ad676ddd666a25096b0bf7eff59d873ccbe943f8a3313ae63792062616c616e63652e0000000000000000000000000000000000000000004d61726b6574706c6163653a20696e73756666696369656e742063757272656e746974792e0000000000000000000000000000000000000000000000000000004d61726b6574706c6163653a2077616e74656420696e76616c6964207175616e7a65726f2070726963652e0000000000000000000000000000000000000000003535206f72204552433732312e000000000000000000000000000000000000004d61726b6574706c6163653a20746f6b656e206d7573742062652045524331312141535345545f524f4c45000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1efffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000fffffffffffffec0000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee23b872dd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff5f000000000000000000000000000000000000000000000000ffffffffffffff1f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564a9059cbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffbf00000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000003ffffffe0d0e30db0000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff3f03e085f9000000000000000000000000000000000000000000000000000000002e1a7d4d000000000000000000000000000000000000000000000000000000006f742073756363656564000000000000000000000000000000000000000000005361666545524332303a204552433230206f7065726174696f6e20646964206e416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a164697066735822122047c1689e56577e50ece18feb5cb4ab7f8dbf0ec641e46a213068d0d7eaac9320002a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 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.