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 | |||
---|---|---|---|---|---|---|
3217138 | 45 hrs 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:
DirectListingsLogic
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 "./DirectListingsStorage.sol"; // ====== External imports ====== import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "../../../eip/interface/IERC721.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 DirectListingsLogic is IDirectListings, ReentrancyGuard, ERC2771ContextConsumer { /*/////////////////////////////////////////////////////////////// Constants / Immutables //////////////////////////////////////////////////////////////*/ /// @dev Only lister role holders can create listings, when listings are restricted by lister address. bytes32 private constant LISTER_ROLE = keccak256("LISTER_ROLE"); /// @dev Only assets from NFT contracts with asset role can be listed, when listings 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; address public constant DEFAULT_FEE_RECIPIENT = 0x1Af20C6B23373350aD464700B5965CE4B0D2aD94; uint16 private constant DEFAULT_FEE_BPS = 100; /// @dev The address of the native token wrapper contract. address private immutable nativeTokenWrapper; /*/////////////////////////////////////////////////////////////// Modifier //////////////////////////////////////////////////////////////*/ /// @dev Checks whether the caller has LISTER_ROLE. modifier onlyListerRole() { require(Permissions(address(this)).hasRoleWithSwitch(LISTER_ROLE, _msgSender()), "!LISTER_ROLE"); _; } /// @dev Checks whether the caller has ASSET_ROLE. modifier onlyAssetRole(address _asset) { require(Permissions(address(this)).hasRoleWithSwitch(ASSET_ROLE, _asset), "!ASSET_ROLE"); _; } /// @dev Checks whether caller is a listing creator. modifier onlyListingCreator(uint256 _listingId) { require( _directListingsStorage().listings[_listingId].listingCreator == _msgSender(), "Marketplace: not listing creator." ); _; } /// @dev Checks whether a listing exists. modifier onlyExistingListing(uint256 _listingId) { require( _directListingsStorage().listings[_listingId].status == IDirectListings.Status.CREATED, "Marketplace: invalid listing." ); _; } /*/////////////////////////////////////////////////////////////// Constructor logic //////////////////////////////////////////////////////////////*/ constructor(address _nativeTokenWrapper) { nativeTokenWrapper = _nativeTokenWrapper; } /*/////////////////////////////////////////////////////////////// External functions //////////////////////////////////////////////////////////////*/ /// @notice List NFTs (ERC721 or ERC1155) for sale at a fixed price. function createListing( ListingParameters calldata _params ) external onlyListerRole onlyAssetRole(_params.assetContract) returns (uint256 listingId) { listingId = _getNextListingId(); address listingCreator = _msgSender(); TokenType tokenType = _getTokenType(_params.assetContract); uint128 startTime = _params.startTimestamp; uint128 endTime = _params.endTimestamp; require(startTime < endTime, "Marketplace: endTimestamp not greater than startTimestamp."); if (startTime < block.timestamp) { require(startTime + 60 minutes >= block.timestamp, "Marketplace: invalid startTimestamp."); startTime = uint128(block.timestamp); endTime = endTime == type(uint128).max ? endTime : startTime + (_params.endTimestamp - _params.startTimestamp); } _validateNewListing(_params, tokenType); Listing memory listing = Listing({ listingId: listingId, listingCreator: listingCreator, assetContract: _params.assetContract, tokenId: _params.tokenId, quantity: _params.quantity, currency: _params.currency, pricePerToken: _params.pricePerToken, startTimestamp: startTime, endTimestamp: endTime, reserved: _params.reserved, tokenType: tokenType, status: IDirectListings.Status.CREATED }); _directListingsStorage().listings[listingId] = listing; emit NewListing(listingCreator, listingId, _params.assetContract, listing); } /// @notice Update parameters of a listing of NFTs. function updateListing( uint256 _listingId, ListingParameters memory _params ) external onlyExistingListing(_listingId) onlyAssetRole(_params.assetContract) onlyListingCreator(_listingId) { address listingCreator = _msgSender(); Listing memory listing = _directListingsStorage().listings[_listingId]; TokenType tokenType = _getTokenType(_params.assetContract); require(listing.endTimestamp > block.timestamp, "Marketplace: listing expired."); require( listing.assetContract == _params.assetContract && listing.tokenId == _params.tokenId, "Marketplace: cannot update what token is listed." ); uint128 startTime = _params.startTimestamp; uint128 endTime = _params.endTimestamp; require(startTime < endTime, "Marketplace: endTimestamp not greater than startTimestamp."); require( listing.startTimestamp > block.timestamp || (startTime == listing.startTimestamp && endTime > block.timestamp), "Marketplace: listing already active." ); if (startTime != listing.startTimestamp && startTime < block.timestamp) { require(startTime + 60 minutes >= block.timestamp, "Marketplace: invalid startTimestamp."); startTime = uint128(block.timestamp); endTime = endTime == listing.endTimestamp || endTime == type(uint128).max ? endTime : startTime + (_params.endTimestamp - _params.startTimestamp); } { uint256 _approvedCurrencyPrice = _directListingsStorage().currencyPriceForListing[_listingId][ _params.currency ]; require( _approvedCurrencyPrice == 0 || _params.pricePerToken == _approvedCurrencyPrice, "Marketplace: price different from approved price" ); } _validateNewListing(_params, tokenType); listing = Listing({ listingId: _listingId, listingCreator: listingCreator, assetContract: _params.assetContract, tokenId: _params.tokenId, quantity: _params.quantity, currency: _params.currency, pricePerToken: _params.pricePerToken, startTimestamp: startTime, endTimestamp: endTime, reserved: _params.reserved, tokenType: tokenType, status: IDirectListings.Status.CREATED }); _directListingsStorage().listings[_listingId] = listing; emit UpdatedListing(listingCreator, _listingId, _params.assetContract, listing); } /// @notice Cancel a listing. function cancelListing(uint256 _listingId) external onlyExistingListing(_listingId) onlyListingCreator(_listingId) { _directListingsStorage().listings[_listingId].status = IDirectListings.Status.CANCELLED; emit CancelledListing(_msgSender(), _listingId); } /// @notice Approve a buyer to buy from a reserved listing. function approveBuyerForListing( uint256 _listingId, address _buyer, bool _toApprove ) external onlyExistingListing(_listingId) onlyListingCreator(_listingId) { require(_directListingsStorage().listings[_listingId].reserved, "Marketplace: listing not reserved."); _directListingsStorage().isBuyerApprovedForListing[_listingId][_buyer] = _toApprove; emit BuyerApprovedForListing(_listingId, _buyer, _toApprove); } /// @notice Approve a currency as a form of payment for the listing. function approveCurrencyForListing( uint256 _listingId, address _currency, uint256 _pricePerTokenInCurrency ) external onlyExistingListing(_listingId) onlyListingCreator(_listingId) { Listing memory listing = _directListingsStorage().listings[_listingId]; require( _currency != listing.currency || _pricePerTokenInCurrency == listing.pricePerToken, "Marketplace: approving listing currency with different price." ); require( _directListingsStorage().currencyPriceForListing[_listingId][_currency] != _pricePerTokenInCurrency, "Marketplace: price unchanged." ); _directListingsStorage().currencyPriceForListing[_listingId][_currency] = _pricePerTokenInCurrency; emit CurrencyApprovedForListing(_listingId, _currency, _pricePerTokenInCurrency); } /// @notice Buy NFTs from a listing. function buyFromListing( uint256 _listingId, address _buyFor, uint256 _quantity, address _currency, uint256 _expectedTotalPrice ) external payable nonReentrant onlyExistingListing(_listingId) { Listing memory listing = _directListingsStorage().listings[_listingId]; address buyer = _msgSender(); require( !listing.reserved || _directListingsStorage().isBuyerApprovedForListing[_listingId][buyer], "buyer not approved" ); require(_quantity > 0 && _quantity <= listing.quantity, "Buying invalid quantity"); require( block.timestamp < listing.endTimestamp && block.timestamp >= listing.startTimestamp, "not within sale window." ); require( _validateOwnershipAndApproval( listing.listingCreator, listing.assetContract, listing.tokenId, _quantity, listing.tokenType ), "Marketplace: not owner or approved tokens." ); uint256 targetTotalPrice; if (_directListingsStorage().currencyPriceForListing[_listingId][_currency] > 0) { targetTotalPrice = _quantity * _directListingsStorage().currencyPriceForListing[_listingId][_currency]; } else { require(_currency == listing.currency, "Paying in invalid currency."); targetTotalPrice = _quantity * listing.pricePerToken; } require(targetTotalPrice == _expectedTotalPrice, "Unexpected total price"); // Check: buyer owns and has approved sufficient currency for sale. if (_currency == CurrencyTransferLib.NATIVE_TOKEN) { require(msg.value == targetTotalPrice, "Marketplace: msg.value must exactly be the total price."); } else { require(msg.value == 0, "Marketplace: invalid native tokens sent."); _validateERC20BalAndAllowance(buyer, _currency, targetTotalPrice); } if (listing.quantity == _quantity) { _directListingsStorage().listings[_listingId].status = IDirectListings.Status.COMPLETED; } _directListingsStorage().listings[_listingId].quantity -= _quantity; _payout(buyer, listing.listingCreator, _currency, targetTotalPrice, listing); _transferListingTokens(listing.listingCreator, _buyFor, _quantity, listing); emit NewSale( listing.listingCreator, listing.listingId, listing.assetContract, listing.tokenId, buyer, _quantity, targetTotalPrice ); } /*/////////////////////////////////////////////////////////////// View functions //////////////////////////////////////////////////////////////*/ /** * @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) { return _directListingsStorage().totalListings; } /// @notice Returns whether a buyer is approved for a listing. function isBuyerApprovedForListing(uint256 _listingId, address _buyer) external view returns (bool) { return _directListingsStorage().isBuyerApprovedForListing[_listingId][_buyer]; } /// @notice Returns whether a currency is approved for a listing. function isCurrencyApprovedForListing(uint256 _listingId, address _currency) external view returns (bool) { return _directListingsStorage().currencyPriceForListing[_listingId][_currency] > 0; } /// @notice Returns the price per token for a listing, in the given currency. function currencyPriceForListing(uint256 _listingId, address _currency) external view returns (uint256) { if (_directListingsStorage().currencyPriceForListing[_listingId][_currency] == 0) { revert("Currency not approved for listing"); } return _directListingsStorage().currencyPriceForListing[_listingId][_currency]; } /// @notice Returns all non-cancelled listings. function getAllListings(uint256 _startId, uint256 _endId) external view returns (Listing[] memory _allListings) { require(_startId <= _endId && _endId < _directListingsStorage().totalListings, "invalid range"); _allListings = new Listing[](_endId - _startId + 1); for (uint256 i = _startId; i <= _endId; i += 1) { _allListings[i - _startId] = _directListingsStorage().listings[i]; } } /** * @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 _validListings) { require(_startId <= _endId && _endId < _directListingsStorage().totalListings, "invalid range"); Listing[] memory _listings = new Listing[](_endId - _startId + 1); uint256 _listingCount; for (uint256 i = _startId; i <= _endId; i += 1) { _listings[i - _startId] = _directListingsStorage().listings[i]; if (_validateExistingListing(_listings[i - _startId])) { _listingCount += 1; } } _validListings = new Listing[](_listingCount); uint256 index = 0; uint256 count = _listings.length; for (uint256 i = 0; i < count; i += 1) { if (_validateExistingListing(_listings[i])) { _validListings[index++] = _listings[i]; } } } /// @notice Returns a listing at a particular listing ID. function getListing(uint256 _listingId) external view returns (Listing memory listing) { listing = _directListingsStorage().listings[_listingId]; } /*/////////////////////////////////////////////////////////////// Internal functions //////////////////////////////////////////////////////////////*/ /// @dev Returns the next listing Id. function _getNextListingId() internal returns (uint256 id) { id = _directListingsStorage().totalListings; _directListingsStorage().totalListings += 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: listed token must be ERC1155 or ERC721."); } } /// @dev Checks whether the listing creator owns and has approved marketplace to transfer listed tokens. function _validateNewListing(ListingParameters memory _params, TokenType _tokenType) internal view { require(_params.quantity > 0, "Marketplace: listing zero quantity."); require(_params.quantity == 1 || _tokenType == TokenType.ERC1155, "Marketplace: listing invalid quantity."); require( _validateOwnershipAndApproval( _msgSender(), _params.assetContract, _params.tokenId, _params.quantity, _tokenType ), "Marketplace: not owner or approved tokens." ); } /// @dev Checks whether the listing exists, is active, and if the lister has sufficient balance. function _validateExistingListing(Listing memory _targetListing) internal view returns (bool isValid) { isValid = _targetListing.startTimestamp <= block.timestamp && _targetListing.endTimestamp > block.timestamp && _targetListing.status == IDirectListings.Status.CREATED && _validateOwnershipAndApproval( _targetListing.listingCreator, _targetListing.assetContract, _targetListing.tokenId, _targetListing.quantity, _targetListing.tokenType ); } /// @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 returns (bool isValid) { address market = address(this); if (_tokenType == TokenType.ERC1155) { isValid = IERC1155(_assetContract).balanceOf(_tokenOwner, _tokenId) >= _quantity && IERC1155(_assetContract).isApprovedForAll(_tokenOwner, market); } else if (_tokenType == TokenType.ERC721) { address owner; address operator; // failsafe for reverts in case of non-existent tokens try IERC721(_assetContract).ownerOf(_tokenId) returns (address _owner) { owner = _owner; // Nesting the approval check inside this try block, to run only if owner check doesn't revert. // If the previous check for owner fails, then the return value will always evaluate to false. try IERC721(_assetContract).getApproved(_tokenId) returns (address _operator) { operator = _operator; } catch {} } catch {} isValid = owner == _tokenOwner && (operator == market || IERC721(_assetContract).isApprovedForAll(_tokenOwner, market)); } } /// @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 { require( IERC20(_currency).balanceOf(_tokenOwner) >= _amount && IERC20(_currency).allowance(_tokenOwner, address(this)) >= _amount, "!BAL20" ); } /// @dev Transfers tokens listed for sale in a direct or auction listing. function _transferListingTokens(address _from, address _to, uint256 _quantity, Listing memory _listing) internal { if (_listing.tokenType == TokenType.ERC1155) { IERC1155(_listing.assetContract).safeTransferFrom(_from, _to, _listing.tokenId, _quantity, ""); } else if (_listing.tokenType == TokenType.ERC721) { IERC721(_listing.assetContract).safeTransferFrom(_from, _to, _listing.tokenId, ""); } } /// @dev Pays out stakeholders in a sale. function _payout( address _payer, address _payee, address _currencyToUse, uint256 _totalPayoutAmount, Listing memory _listing ) internal { address _nativeTokenWrapper = nativeTokenWrapper; uint256 amountRemaining; // Payout platform fee { uint256 platformFeesTw = (_totalPayoutAmount * DEFAULT_FEE_BPS) / MAX_BPS; (address platformFeeRecipient, uint16 platformFeeBps) = IPlatformFee(address(this)).getPlatformFeeInfo(); uint256 platformFeeCut = (_totalPayoutAmount * platformFeeBps) / MAX_BPS; // Transfer platform fee CurrencyTransferLib.transferCurrencyWithWrapper( _currencyToUse, _payer, DEFAULT_FEE_RECIPIENT, platformFeesTw, _nativeTokenWrapper ); CurrencyTransferLib.transferCurrencyWithWrapper( _currencyToUse, _payer, platformFeeRecipient, platformFeeCut, _nativeTokenWrapper ); amountRemaining = _totalPayoutAmount - platformFeeCut - platformFeesTw; } // Payout royalties { // Get royalty recipients and amounts (address payable[] memory recipients, uint256[] memory amounts) = RoyaltyPaymentsLogic(address(this)) .getRoyalty(_listing.assetContract, _listing.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, _nativeTokenWrapper ); unchecked { amountRemaining -= royaltyCut; ++i; } } } } // Distribute price to token owner CurrencyTransferLib.transferCurrencyWithWrapper( _currencyToUse, _payer, _payee, amountRemaining, _nativeTokenWrapper ); } /// @dev Returns the DirectListings storage. function _directListingsStorage() internal pure returns (DirectListingsStorage.Data storage data) { data = DirectListingsStorage.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/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 { IDirectListings } from "../IMarketplace.sol"; /** * @author thirdweb.com */ library DirectListingsStorage { /// @custom:storage-location erc7201:direct.listings.storage /// @dev keccak256(abi.encode(uint256(keccak256("direct.listings.storage")) - 1)) & ~bytes32(uint256(0xff)) bytes32 public constant DIRECT_LISTINGS_STORAGE_POSITION = 0xa5370dfa5e46a36b8e1214352e211aa04006b977c8fd45a98e6b8c6e230ba000; struct Data { uint256 totalListings; mapping(uint256 => IDirectListings.Listing) listings; mapping(uint256 => mapping(address => bool)) isBuyerApprovedForListing; mapping(uint256 => mapping(address => uint256)) currencyPriceForListing; } function data() internal pure returns (Data storage data_) { bytes32 position = DIRECT_LISTINGS_STORAGE_POSITION; assembly { data_.slot := position } } }
{ "compilationTarget": { "contracts/prebuilts/marketplace/direct-listings/DirectListingsLogic.sol": "DirectListingsLogic" }, "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":[{"internalType":"address","name":"_nativeTokenWrapper","type":"address"}],"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":"uint256","name":"listingId","type":"uint256"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"BuyerApprovedForListing","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"listingCreator","type":"address"},{"indexed":true,"internalType":"uint256","name":"listingId","type":"uint256"}],"name":"CancelledListing","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"listingId","type":"uint256"},{"indexed":true,"internalType":"address","name":"currency","type":"address"},{"indexed":false,"internalType":"uint256","name":"pricePerToken","type":"uint256"}],"name":"CurrencyApprovedForListing","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"listingCreator","type":"address"},{"indexed":true,"internalType":"uint256","name":"listingId","type":"uint256"},{"indexed":true,"internalType":"address","name":"assetContract","type":"address"},{"components":[{"internalType":"uint256","name":"listingId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"internalType":"uint128","name":"startTimestamp","type":"uint128"},{"internalType":"uint128","name":"endTimestamp","type":"uint128"},{"internalType":"address","name":"listingCreator","type":"address"},{"internalType":"address","name":"assetContract","type":"address"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"enum IDirectListings.TokenType","name":"tokenType","type":"uint8"},{"internalType":"enum IDirectListings.Status","name":"status","type":"uint8"},{"internalType":"bool","name":"reserved","type":"bool"}],"indexed":false,"internalType":"struct IDirectListings.Listing","name":"listing","type":"tuple"}],"name":"NewListing","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"listingCreator","type":"address"},{"indexed":true,"internalType":"uint256","name":"listingId","type":"uint256"},{"indexed":true,"internalType":"address","name":"assetContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantityBought","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalPricePaid","type":"uint256"}],"name":"NewSale","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"listingCreator","type":"address"},{"indexed":true,"internalType":"uint256","name":"listingId","type":"uint256"},{"indexed":true,"internalType":"address","name":"assetContract","type":"address"},{"components":[{"internalType":"uint256","name":"listingId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"internalType":"uint128","name":"startTimestamp","type":"uint128"},{"internalType":"uint128","name":"endTimestamp","type":"uint128"},{"internalType":"address","name":"listingCreator","type":"address"},{"internalType":"address","name":"assetContract","type":"address"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"enum IDirectListings.TokenType","name":"tokenType","type":"uint8"},{"internalType":"enum IDirectListings.Status","name":"status","type":"uint8"},{"internalType":"bool","name":"reserved","type":"bool"}],"indexed":false,"internalType":"struct IDirectListings.Listing","name":"listing","type":"tuple"}],"name":"UpdatedListing","type":"event"},{"inputs":[],"name":"DEFAULT_FEE_RECIPIENT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"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":"_listingId","type":"uint256"},{"internalType":"address","name":"_buyer","type":"address"},{"internalType":"bool","name":"_toApprove","type":"bool"}],"name":"approveBuyerForListing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_listingId","type":"uint256"},{"internalType":"address","name":"_currency","type":"address"},{"internalType":"uint256","name":"_pricePerTokenInCurrency","type":"uint256"}],"name":"approveCurrencyForListing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_listingId","type":"uint256"},{"internalType":"address","name":"_buyFor","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"address","name":"_currency","type":"address"},{"internalType":"uint256","name":"_expectedTotalPrice","type":"uint256"}],"name":"buyFromListing","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_listingId","type":"uint256"}],"name":"cancelListing","outputs":[],"stateMutability":"nonpayable","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":"pricePerToken","type":"uint256"},{"internalType":"uint128","name":"startTimestamp","type":"uint128"},{"internalType":"uint128","name":"endTimestamp","type":"uint128"},{"internalType":"bool","name":"reserved","type":"bool"}],"internalType":"struct IDirectListings.ListingParameters","name":"_params","type":"tuple"}],"name":"createListing","outputs":[{"internalType":"uint256","name":"listingId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_listingId","type":"uint256"},{"internalType":"address","name":"_currency","type":"address"}],"name":"currencyPriceForListing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startId","type":"uint256"},{"internalType":"uint256","name":"_endId","type":"uint256"}],"name":"getAllListings","outputs":[{"components":[{"internalType":"uint256","name":"listingId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"internalType":"uint128","name":"startTimestamp","type":"uint128"},{"internalType":"uint128","name":"endTimestamp","type":"uint128"},{"internalType":"address","name":"listingCreator","type":"address"},{"internalType":"address","name":"assetContract","type":"address"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"enum IDirectListings.TokenType","name":"tokenType","type":"uint8"},{"internalType":"enum IDirectListings.Status","name":"status","type":"uint8"},{"internalType":"bool","name":"reserved","type":"bool"}],"internalType":"struct IDirectListings.Listing[]","name":"_allListings","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startId","type":"uint256"},{"internalType":"uint256","name":"_endId","type":"uint256"}],"name":"getAllValidListings","outputs":[{"components":[{"internalType":"uint256","name":"listingId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"internalType":"uint128","name":"startTimestamp","type":"uint128"},{"internalType":"uint128","name":"endTimestamp","type":"uint128"},{"internalType":"address","name":"listingCreator","type":"address"},{"internalType":"address","name":"assetContract","type":"address"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"enum IDirectListings.TokenType","name":"tokenType","type":"uint8"},{"internalType":"enum IDirectListings.Status","name":"status","type":"uint8"},{"internalType":"bool","name":"reserved","type":"bool"}],"internalType":"struct IDirectListings.Listing[]","name":"_validListings","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_listingId","type":"uint256"}],"name":"getListing","outputs":[{"components":[{"internalType":"uint256","name":"listingId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"internalType":"uint128","name":"startTimestamp","type":"uint128"},{"internalType":"uint128","name":"endTimestamp","type":"uint128"},{"internalType":"address","name":"listingCreator","type":"address"},{"internalType":"address","name":"assetContract","type":"address"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"enum IDirectListings.TokenType","name":"tokenType","type":"uint8"},{"internalType":"enum IDirectListings.Status","name":"status","type":"uint8"},{"internalType":"bool","name":"reserved","type":"bool"}],"internalType":"struct IDirectListings.Listing","name":"listing","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_listingId","type":"uint256"},{"internalType":"address","name":"_buyer","type":"address"}],"name":"isBuyerApprovedForListing","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_listingId","type":"uint256"},{"internalType":"address","name":"_currency","type":"address"}],"name":"isCurrencyApprovedForListing","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalListings","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_listingId","type":"uint256"},{"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":"pricePerToken","type":"uint256"},{"internalType":"uint128","name":"startTimestamp","type":"uint128"},{"internalType":"uint128","name":"endTimestamp","type":"uint128"},{"internalType":"bool","name":"reserved","type":"bool"}],"internalType":"struct IDirectListings.ListingParameters","name":"_params","type":"tuple"}],"name":"updateListing","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
9c4d535b00000000000000000000000000000000000000000000000000000000000000000100090be1195ee768c9c21e731ad467b1dfc690319a48a19cbd8a91f589aa0a000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000200000000000000000000000003439153eb7af838ad19d56e1571fbd09333c2809
Deployed Bytecode
0x00040000000000020015000000000002000000000301001900000060043002700000085d03400197000300000031035500020000000103550000085d0040019d0000000100200190000000330000c13d0000008002000039000000400020043f000000040030008c000000560000413d001500000000003d000000000201043b000000e002200270000008630020009c000000580000213d0000086f0020009c000000700000213d000008750020009c000000db0000213d000008780020009c0000019a0000613d000008790020009c000000560000c13d000000240030008c000000560000413d0000000001000416000000000001004b000000560000c13d217118890000040f00000004010000390000000201100367000000000101043b000000000010043f0000088101000041000000200010043f0000000001000019217121560000040f217118410000040f000000400200043d001100000002001d217117b50000040f00000011010000290000085d0010009c0000085d010080410000004001100210000008e7011001c7000021720001042e0000000002000416000000000002004b000000560000c13d0000001f023000390000085e02200197000000a002200039000000400020043f0000001f0430018f0000085f05300198000000a002500039000000440000613d000000a006000039000000000701034f000000007807043c0000000006860436000000000026004b000000400000c13d000000000004004b000000510000613d000000000151034f0000000304400210000000000502043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000120435000000200030008c000000560000413d000000a00100043d000008600010009c000000c20000a13d00000000010000190000217300010430000008640020009c000000cd0000213d0000086a0020009c0000011d0000213d0000086d0020009c000001f10000613d0000086e0020009c000000560000c13d0000000001000416000000000001004b000000560000c13d0000088201000041000000800010043f0000000001000411000000840010043f00000000010004140000000002000410000000040020008c000002ec0000c13d0000000103000031000000200030008c00000020040000390000000004034019000003120000013d000008700020009c0000013a0000213d000008730020009c000002040000613d000008740020009c000000560000c13d000000640030008c000000560000413d0000000002000416000000000002004b000000560000c13d0000000402100370000000000202043b001100000002001d0000002402100370000000000202043b001000000002001d000008600020009c000000560000213d0000004401100370000000000201043b000000000002004b0000000001000039000000010100c039000f00000002001d000000000012004b000000560000c13d0000001101000029000000000010043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000000701100039000000000101041a000000a801100270000000ff0110018f000000030010008c000002dc0000213d000000010010008c000004860000c13d0000001101000029000000000010043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000000501100039000000000101041a000d00000001001d000000400b00043d000008820100004100000000001b04350000000401b000390000000002000411000e00000002001d000000000021043500000000010004140000000002000410000000040020008c000007170000c13d0000000103000031000000200030008c00000020040000390000000004034019000007440000013d00000001020000390000086103000041000000000023041b000000800010043f000001400000044300000160001004430000002001000039000001000010044300000120002004430000086201000041000021720001042e000008650020009c000001570000213d000008680020009c000002460000613d000008690020009c000000560000c13d0000000001000416000000000001004b000000560000c13d0000089001000041000000000101041a000000800010043f0000089101000041000021720001042e000008760020009c000002880000613d000008770020009c000000560000c13d000000240030008c000000560000413d0000000002000416000000000002004b000000560000c13d0000000401100370000000000101043b001100000001001d000000000010043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000000701100039000000000101041a000000a801100270000000ff0110018f000000030010008c000002dc0000213d000000010010008c000004860000c13d0000001101000029000000000010043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000000501100039000000000101041a001000000001001d000000400b00043d000008820100004100000000001b04350000000401b000390000000002000411000f00000002001d000000000021043500000000010004140000000002000410000000040020008c000004e10000c13d0000000103000031000000200030008c000000200400003900000000040340190000050e0000013d0000086b0020009c000002940000613d0000086c0020009c000000560000c13d000000440030008c000000560000413d0000000002000416000000000002004b000000560000c13d0000002402100370000000000202043b001100000002001d000008600020009c000000560000213d0000000401100370000000000101043b000000000010043f0000087a01000041000000200010043f0000000001000019217121560000040f0000001102000029000000000020043f000000200010043f0000000001000019217121560000040f000000000101041a000000000001004b000002ac0000013d000008710020009c000002b10000613d000008720020009c000000560000c13d000000a40030008c000000560000413d0000002402100370000000000202043b000008600020009c000000560000213d001400000002001d0000006402100370000000000202043b000008600020009c000000560000213d0000086102000041000000000302041a000000020030008c000003e30000c13d0000087f01000041000000800010043f0000002001000039000000840010043f0000001f01000039000000a40010043f000008df01000041000000c40010043f000008e0010000410000217300010430000008660020009c000002b80000613d000008670020009c000000560000c13d000000440030008c000000560000413d0000000002000416000000000002004b000000560000c13d0000000402100370000000000202043b001100000002001d0000002401100370000000000101043b001000000001001d000008600010009c000000560000213d0000001101000029000000000010043f0000087a01000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000001002000029000000000020043f000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b000000000101041a000000000001004b000004c80000c13d000000400100043d00000064021000390000087d03000041000000000032043500000044021000390000087e0300004100000000003204350000002402100039000000210300003900000000003204350000087f0200004100000000002104350000000402100039000000200300003900000000003204350000085d0010009c0000085d01008041000000400110021000000880011001c70000217300010430000001240030008c000000560000413d0000000002000416000000000002004b000000560000c13d0000018002000039000000400020043f0000002402100370000000000202043b000008600020009c000000560000213d000000800020043f0000004402100370000000000202043b000000a00020043f0000006402100370000000000202043b000000c00020043f0000008402100370000000000202043b000008600020009c000000560000213d000000e00020043f000000a402100370000000000202043b000001000020043f000000c402100370000000000202043b000008880020009c000000560000213d000001200020043f000000e402100370000000000202043b000008880020009c000000560000213d000001400020043f0000010402100370000000000202043b000000000002004b0000000003000039000000010300c039000000000032004b000000560000c13d000001600020043f0000000401100370000000000101043b000000000010043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000000701100039000000000101041a000000a801100270000000ff0110018f000000040010008c000002dc0000813d000000010010008c000004860000c13d000000800100043d0000086001100197000000400300043d0000002402300039000000000012043500000898010000410000000000130435001100000003001d00000004013000390000089b02000041000000000021043500000000010004140000000002000410000000040020008c0000082f0000c13d0000000103000031000000200030008c000000200400003900000000040340190000085b0000013d000001040030008c000000560000413d0000000001000416000000000001004b000000560000c13d0000088201000041000000800010043f0000000001000411001000000001001d000000840010043f00000000010004140000000002000410000000040020008c000003290000c13d0000000103000031000000200030008c000000200400003900000000040340190000034f0000013d000000440030008c000000560000413d0000000002000416000000000002004b000000560000c13d0000002402100370000000000302043b0000000401100370000000000101043b000800000001001d000000000113004b000002e20000413d0000089002000041000000000202041a000000000023004b000002e20000813d000700000003001d000000010310003a000003230000613d000008920010009c00000da70000213d00000005013002100000003f021000390000089304200197000008940040009c00000da70000213d0000008002400039000000400020043f000000800030043f000008950040009c00000da70000213d00000000030000190000018004200039000000400040043f00000160042000390000000000040435000001400420003900000000000404350000012004200039000000000004043500000100042000390000000000040435000000e0042000390000000000040435000000c0042000390000000000040435000000a0042000390000000000040435000000800420003900000000000404350000006004200039000000000004043500000040042000390000000000040435000000200420003900000000000404350000000000020435000000a00430003900000000002404350000002003300039000000000013004b000006250000813d000000400200043d000008870020009c000002240000a13d00000da70000013d000000440030008c000000560000413d0000000002000416000000000002004b000000560000c13d0000002402100370000000000402043b0000000401100370000000000101043b001000000001001d000000000114004b000002e20000413d0000089002000041000000000202041a000000000024004b000002e20000813d000000010310003a000003230000613d000f00000004001d000008920010009c00000da70000213d00000005013002100000003f021000390000089304200197000008940040009c00000da70000213d0000008002400039000000400020043f000000800030043f000008950040009c00000da70000213d00000000030000190000018004200039000000400040043f00000160042000390000000000040435000001400420003900000000000404350000012004200039000000000004043500000100042000390000000000040435000000e0042000390000000000040435000000c0042000390000000000040435000000a0042000390000000000040435000000800420003900000000000404350000006004200039000000000004043500000040042000390000000000040435000000200420003900000000000404350000000000020435000000a00430003900000000002404350000002003300039000000000013004b000006bb0000813d000000400200043d000008870020009c000002660000a13d00000da70000013d0000000001000416000000000001004b000000560000c13d217118ac0000040f0000086001100197000000400200043d00000000001204350000085d0020009c0000085d0200804100000040012002100000087c011001c7000021720001042e000000440030008c000000560000413d0000000002000416000000000002004b000000560000c13d0000002402100370000000000202043b001100000002001d000008600020009c000000560000213d0000000401100370000000000101043b000000000010043f0000089601000041000000200010043f0000000001000019217121560000040f0000001102000029000000000020043f000000200010043f0000000001000019217121560000040f000000000101041a000000ff001001900000000001000039000000010100c039000000800010043f0000089101000041000021720001042e0000000001000416000000000001004b000000560000c13d000008bb01000041000000800010043f0000089101000041000021720001042e000000640030008c000000560000413d0000000002000416000000000002004b000000560000c13d0000000402100370000000000202043b001100000002001d0000002402100370000000000202043b001000000002001d000008600020009c000000560000213d0000004401100370000000000101043b000f00000001001d0000001101000029000000000010043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000000701100039000000000101041a000000a801100270000000ff0110018f000000030010008c000004620000a13d000008d901000041000000000010043f0000002101000039000000040010043f000008830100004100002173000104300000087f01000041000000800010043f0000002001000039000000840010043f0000000d01000039000000a40010043f000008e401000041000000c40010043f000008e00100004100002173000104300000085d0010009c0000085d01008041000000c00110021000000897011001c72171216c0000040f000000800a000039000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000080057001bf000003010000613d000000000801034f000000008908043c000000000a9a043600000000005a004b000002fd0000c13d000000000006004b0000030e0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000003910000613d0000001f01400039000000600410018f00000080014001bf000000400010043f000000200030008c000000560000413d000000800300043d000000000003004b0000000002000039000000010200c039000000000023004b000000560000c13d0000000002000031000000000003004b000003bb0000613d000000140220008c000003bb0000813d000008d901000041000000000010043f0000001101000039000000040010043f000008830100004100002173000104300000085d0010009c0000085d01008041000000c00110021000000897011001c72171216c0000040f000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000080057001bf0000033e0000613d0000008008000039000000000901034f000000009a09043c0000000008a80436000000000058004b0000033a0000c13d000000000006004b0000034b0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f000300000001035500000001002001900000039d0000613d0000001f01400039000000600110018f00000080021001bf001100000002001d000000400020043f000000200030008c000000560000413d000000800200043d000000000002004b0000000004000039000000010400c039000000000042004b000000560000c13d000000000002004b0000000002000411000003640000613d000000140200008a00000000022000310000000202200367000000000202043b000000600220027000000898040000410000001106000029000000000046043500000084041001bf000008990500004100000000005404350000086002200197000000a401100039000000000021043500000000010004140000000002000410000000040020008c000004970000c13d000000200030008c00000020030080390000001f01300039000000600110018f00000000026100190000002001000039000f00000002001d000000400020043f00000011020000290000000002020433000000000002004b0000000003000039000000010300c039000000000032004b000000560000c13d000000000002004b000005500000c13d0000087f010000410000000f03000029000000000013043500000004013001bf000000200200003900000000002104350000004401300039000008a902000041000000000021043500000024013000390000000c02000039000000000021043500000040013002100000088f011001c700002173000104300000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000003980000c13d000003a80000013d0000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000003a40000c13d000000000005004b000003b50000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f000000000014043500000060013002100000085d0020009c0000085d020080410000004002200210000000000112019f000021730001043000000020030000390000000000310435000000a0034000390000000000230435000008f6062001980000001f0720018f000000c00440003900000000056400190000000208000367000003cb0000613d000000000908034f000000000a040019000000009b09043c000000000aba043600000000005a004b000003c70000c13d000000000007004b000003d80000613d000000000668034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f0000000000650435000000000424001900000000000404350000001f02200039000008f60220019700000040022000390000085d0020009c0000085d0200804100000060022002100000004001100210000000000112019f000021720001042e0000000203000039000000000032041b0000000401100370000000000101043b000000000010043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000000701100039000000000101041a000000a801100270000000ff0110018f000000030010008c000002dc0000213d000000010010008c000004860000c13d00000004010000390000000201100367000000000101043b000000000010043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000400200043d000008870020009c00000da70000213d000000000101043b0000018003200039000000400030043f000000000301041a00000000043204360000000103100039000000000303041a000d00000004001d00000000003404350000000203100039000000000303041a0000004004200039001100000004001d00000000003404350000000303100039000000000303041a0000006004200039000a00000004001d00000000003404350000000403100039000000000303041a000000a0052000390000008004300270001000000005001d000000000045043500000888033001970000008004200039000f00000004001d00000000003404350000000503100039000000000303041a0000086003300197000000c004200039000e00000004001d00000000003404350000000603100039000000000303041a0000086003300197000000e004200039000c00000004001d000000000034043500000100042000390000000701100039000000000101041a0000086003100197000b00000004001d0000000000340435000000a003100270000000ff0330018f000000010030008c000002dc0000213d0000012004200039000800000004001d0000000000340435000000a803100270000000ff0330018f000000030030008c000002dc0000213d0000014004200039000000000034043500000889001001980000000001000039000000010100c0390000016003200039000600000003001d0000000000130435001300000002001d0000088201000041000000400200043d0000000000120435000900000002001d00000004012000390000000002000411000700000002001d000000000021043500000000010004140000000002000410000000040020008c000009570000c13d0000000103000031000000200030008c00000020040000390000000004034019000009830000013d000000010010008c000004860000c13d0000001101000029000000000010043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000000501100039000000000101041a000c00000001001d000000400200043d00000882010000410000000000120435000e00000002001d00000004012000390000000002000411000d00000002001d000000000021043500000000010004140000000002000410000000040020008c000005850000c13d0000000103000031000000200030008c00000020040000390000000004034019000005b00000013d000000400100043d0000004402100039000008e803000041000000000032043500000024021000390000001d0300003900000000003204350000087f0200004100000000002104350000000402100039000000200300003900000000003204350000085d0010009c0000085d0100804100000040011002100000088f011001c700002173000104300000085d0010009c0000085d01008041000000c0011002100000004003600210000000000131019f0000089a011001c72171216c0000040f000000110b000029000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b0019000004af0000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b000004ab0000c13d000000000006004b000004bc0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000004d50000613d0000001f01400039000000600110018f0000000002b10019000f00000002001d000000400020043f000000200030008c000000560000413d000003790000013d0000001101000029000000000010043f0000087a01000041000000200010043f0000000001000019217121560000040f0000001002000029000000000020043f000000200010043f0000000001000019217121560000040f000000000101041a0000028d0000013d0000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000004dc0000c13d000003a80000013d0000085d00b0009c0000085d0300004100000000030b401900000040033002100000085d0010009c0000085d01008041000000c001100210000000000131019f00000883011001c7000e0000000b001d2171216c0000040f0000000e0b000029000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b0019000004fd0000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b000004f90000c13d000000000006004b0000050a0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000005790000613d0000001f01400039000000600210018f00000000040b00190000000001b20019000000000021004b00000000020000390000000102004039000008840010009c00000da70000213d000000010020019000000da70000c13d000000400010043f000000200030008c000000560000413d0000000002040433000000000002004b0000000003000039000000010300c039000000000032004b000000560000c13d000000000002004b00000000020004110000052a0000613d000000140200008a00000000022000310000000202200367000000000202043b0000006002200270000000100220014f0000086000200198000007bd0000c13d0000001101000029000000000010043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000000701100039000000000201041a000008b502200197000008e5022001c7000000000021041b0000088201000041000000400200043d0000000000120435001000000002001d00000004012000390000000002000411000000000021043500000000010004140000000002000410000000040020008c000008d20000c13d0000000103000031000000200030008c00000020040000390000000004034019000008fe0000013d00000004020000390000000202200367000000000202043b000008600020009c000000560000213d00000898030000410000000f05000029000000000035043500000004035001bf0000089b0400004100000000004304350000002403500039000000000023043500000000020004140000000003000410000000040030008c0000078b0000c13d0000000002510019001100000002001d000000400020043f0000000f020000290000000002020433000000000002004b0000000003000039000000010300c039000000000032004b000000560000c13d000000000002004b000007db0000c13d0000087f010000410000001103000029000000000013043500000004013001bf000000200200003900000000002104350000004401300039000008a802000041000000000021043500000024013000390000000b020000390000038d0000013d0000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000005800000c13d000003a80000013d0000000e030000290000085d0030009c0000085d0300804100000040033002100000085d0010009c0000085d01008041000000c001100210000000000131019f00000883011001c72171216c0000040f000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000000e057000290000059f0000613d000000000801034f0000000e09000029000000008a08043c0000000009a90436000000000059004b0000059b0000c13d000000000006004b000005ac0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f000300000001035500000001002001900000077f0000613d0000001f01400039000000600210018f0000000e01200029000000000021004b00000000020000390000000102004039000008840010009c00000da70000213d000000010020019000000da70000c13d000000400010043f000000200030008c000000560000413d0000000e020000290000000002020433000000000002004b0000000003000039000000010300c039000000000032004b000000560000c13d000000000002004b000005cb0000613d000000140200008a00000000022000310000000202200367000000000202043b000d0060002002780000000d030000290000000c0230014f0000086000200198000007bd0000c13d0000001101000029000000000010043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000400200043d000008870020009c00000da70000213d000000000301043b0000018001200039000000400010043f000000000103041a00000000011204360000000104300039000000000404041a00000000004104350000000201300039000000000101041a000000400420003900000000001404350000000301300039000000000101041a000000600420003900000000001404350000000404300039000000000404041a000000a005200039000000800640027000000000006504350000088804400197000000800520003900000000004504350000000504300039000000000404041a0000086004400197000000c00520003900000000004504350000000604300039000000000404041a0000086004400197000000e005200039000000000045043500000100052000390000000703300039000000000403041a00000860034001970000000000350435000000a005400270000000ff0550018f000000010050008c000002dc0000213d00000120062000390000000000560435000000a805400270000000ff0550018f000000030050008c000002dc0000213d00000140062000390000000000560435000001600220003900000889004001980000000004000039000000010400c0390000000000420435000000100030006b00000a8a0000c13d0000000f0010006b00000a8a0000613d000000400100043d00000064021000390000088a03000041000000000032043500000044021000390000088b03000041000000000032043500000024021000390000003d030000390000018f0000013d000600000000001d00000008020000290000062c0000013d0000001102000029000000010020003a0000000102200039000003230000413d000000070020006c000008910000213d001100000002001d000000000020043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000400200043d000008870020009c00000da70000213d000000000301043b0000018001200039000000400010043f000000000103041a00000000041204360000000101300039000000000101041a000d00000004001d00000000001404350000000201300039000000000101041a0000004004200039000c00000004001d00000000001404350000000301300039000000000101041a000000600420003900000000001404350000000401300039000000000101041a000000a0052000390000008004100270000f00000005001d00000000004504350000088804100197000000800120003900000000004104350000000504300039000000000404041a0000086004400197000000c005200039000b00000005001d00000000004504350000000604300039000000000404041a0000086004400197000000e005200039000a00000005001d000000000045043500000100042000390000000703300039000000000303041a00000860053001970000000000540435000000a004300270000000ff0440018f000000010040008c000002dc0000213d0000012005200039000900000005001d0000000000450435000000a804300270000000ff0540018f000000030050008c000002dc0000213d0000001106000029000000080460006a00000889003001980000000003000039000000010300c039000001600620003900000000003604350000014003200039000e00000003001d0000000000530435000000800300043d000000000043004b0000165f0000a13d0000000503400210000000a0033000390000000000230435000000800200043d000000000042004b0000165f0000a13d0000000001010433001000000001001d0000089c01000041000000000010044300000000010004140000085d0010009c0000085d01008041000000c0011002100000089d011001c70000800b020000392171216c0000040f0000000100200190000016f60000613d000000000101043b00000010020000290000088802200197000000000012004b000006280000213d0000000f0200002900000000020204330000088802200197000000000012004b000006280000a13d0000000e010000290000000001010433000000030010008c000002dc0000213d000000010010008c000006280000c13d00000009010000290000000005010433000000010050008c000002dc0000213d0000000c0100002900000000040104330000000d0100002900000000030104330000000a0100002900000000020104330000000b0100002900000000010104330000086001100197000008600220019721711ae50000040f000000000001004b000006280000613d0000000601000029000600010010003e0000001102000029000006290000c13d000003230000013d00000010060000290000000f01000029000000000016004b000008770000213d001100000006001d000000000060043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000400200043d000008870020009c00000da70000213d000000000101043b0000018003200039000000400030043f000000000301041a00000000033204360000000104100039000000000404041a00000000004304350000000203100039000000000303041a000000400420003900000000003404350000000303100039000000000303041a000000600420003900000000003404350000000403100039000000000303041a000000a004200039000000800530027000000000005404350000088803300197000000800420003900000000003404350000000503100039000000000303041a0000086003300197000000c00420003900000000003404350000000603100039000000000303041a0000086003300197000000e004200039000000000034043500000100032000390000000701100039000000000101041a00000860041001970000000000430435000000a003100270000000ff0330018f000000010030008c000002dc0000213d00000120042000390000000000340435000000a803100270000000ff0430018f000000030040008c000002dc0000213d0000001106000029000000100360006a00000140052000390000000000450435000001600420003900000889001001980000000001000039000000010100c0390000000000140435000000800100043d000000000031004b0000165f0000a13d0000000501300210000000a0011000390000000000210435000000800100043d000000000031004b0000165f0000a13d000000010060003a00000001066000390000000f01000029000003230000413d000006bd0000013d0000085d00b0009c0000085d0300004100000000030b401900000040033002100000085d0010009c0000085d01008041000000c001100210000000000131019f00000883011001c7000c0000000b001d2171216c0000040f000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000000c0b0000290000000c05700029000007330000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b0000072f0000c13d000000000006004b000007400000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000007c30000613d0000001f01400039000000600210018f00000000040b00190000000001b20019000000000021004b00000000020000390000000102004039000008840010009c00000da70000213d000000010020019000000da70000c13d000000400010043f000000200030008c000000560000413d0000000002040433000000000002004b0000000003000039000000010300c039000000000032004b000000560000c13d000000000002004b0000075f0000613d000000140200008a00000000022000310000000202200367000000000202043b000e0060002002780000000e030000290000000d0230014f0000086000200198000007bd0000c13d0000001101000029000000000010043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000000701100039000000000101041a0000088900100198000009d70000c13d000000400100043d0000006402100039000008e20300004100000000003204350000004402100039000008e3030000410000000000320435000000240210003900000022030000390000018f0000013d0000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000007860000c13d000003a80000013d0000085d0020009c0000085d02008041000000c0012002100000004002500210000000000112019f0000089a011001c70000000002000410000f00000005001d2171216c0000040f000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000000f05700029000007a40000613d000000000801034f0000000f09000029000000008a08043c0000000009a90436000000000059004b000007a00000c13d000000000006004b000007b10000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000007cf0000613d0000001f01400039000000600110018f0000000f02100029001100000002001d000000400020043f000000200030008c000000560000413d000005640000013d000000640210003900000885030000410000000000320435000000440210003900000886030000410000018c0000013d0000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000007ca0000c13d000003a80000013d0000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000007d60000c13d000003a80000013d0000089002000041000000000302041a000f00000003001d000000010330003a000003230000613d000000000032041b00000882020000410000001103000029000000000023043500000004023001bf0000000003000411000000000032043500000000020004140000000003000410000000040030008c000009250000c13d0000001101100029000000400010043f00000011010000290000000002010433000000000002004b0000000001000039000000010100c039000000000012004b000000560000c13d0000000201000367000000000002004b000007fc0000613d000000140200008a0000000002200031000000000221034f000000000202043b00100060002002780000000401100370000000000101043b000008600010009c000000560000213d2171192b0000040f000e00000001001d0000000201000367000000a402100370000000000202043b001100000002001d000008880020009c000000560000213d000000c401100370000000000101043b000d00000001001d000008880010009c000000560000213d0000000d02000029000000110020006b00000d790000813d0000089c01000041000000000010044300000000010004140000085d0010009c0000085d01008041000000c0011002100000089d011001c70000800b020000392171216c0000040f0000000100200190000016f60000613d000000000101043b000000110010006b00000da40000813d00000011020000290000089e0020009c000003230000213d000000110200002900000e1002200039000000000012004b00000d9f0000813d000000400100043d0000006402100039000008f40300004100000000003204350000004402100039000008f5030000410000000000320435000000240210003900000024030000390000018f0000013d00000011020000290000085d0020009c0000085d0200804100000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f0000089a011001c700000000020004102171216c0000040f000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000011057000290000084a0000613d000000000801034f0000001109000029000000008a08043c0000000009a90436000000000059004b000008460000c13d000000000006004b000008570000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000008850000613d0000001f01400039000000600210018f0000001101200029000000000021004b00000000020000390000000102004039000008840010009c00000da70000213d000000010020019000000da70000c13d000000400010043f000000200030008c000000560000413d00000011020000290000000002020433000000000002004b0000000003000039000000010300c039000000000032004b000000560000c13d000000000002004b00000a0c0000c13d0000004402100039000008a803000041000000000032043500000024021000390000000b030000390000048c0000013d000000400100043d001100000001001d0000008002000039217117f40000040f000000110200002900000000012100490000085d0010009c0000085d0100804100000060011002100000085d0020009c0000085d020080410000004002200210000000000121019f000021720001042e0000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000088c0000c13d000003a80000013d0000000601000029000008840010009c00000da70000213d000000060100002900000005011002100000003f021000390000089302200197000000400300043d0000000002230019000b00000003001d000000000032004b00000000030000390000000103004039000008840020009c00000da70000213d000000010030019000000da70000c13d000000400020043f00000006020000290000000b030000290000000005230436000000000002004b000008ca0000613d0000000002000019000000400300043d000008870030009c00000da70000213d0000018004300039000000400040043f00000160043000390000000000040435000001400430003900000000000404350000012004300039000000000004043500000100043000390000000000040435000000e0043000390000000000040435000000c0043000390000000000040435000000a0043000390000000000040435000000800430003900000000000404350000006004300039000000000004043500000040043000390000000000040435000000200430003900000000000404350000000000030435000000000425001900000000003404350000002002200039000000000012004b000008a90000413d000000800100043d000d00000001001d000000000001004b00000a300000c13d000000400100043d001100000001001d0000000b020000290000087a0000013d00000010020000290000085d0020009c0000085d0200804100000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f00000883011001c700000000020004102171216c0000040f000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000001005700029000008ed0000613d000000000801034f0000001009000029000000008a08043c0000000009a90436000000000059004b000008e90000c13d000000000006004b000008fa0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000009b30000613d0000001f01400039000000600210018f0000001001200029000000000021004b00000000020000390000000102004039000008840010009c00000da70000213d000000010020019000000da70000c13d000000400010043f000000200030008c000000560000413d00000010010000290000000001010433000000000001004b0000000002000039000000010200c039000000000021004b000000560000c13d000000000001004b000009190000613d000000140100008a00000000011000310000000201100367000000000101043b000f00600010027800000000010004140000085d0010009c0000085d010080410000000f020000290000086005200197000000c001100210000008c5011001c70000800d020000390000000303000039000008e604000041000000110600002900000a070000013d0000085d0020009c0000085d02008041000000c0012002100000001102000029001100000002001d0000004002200210000000000112019f00000883011001c700000000020004102171216c0000040f000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000011057000290000093f0000613d000000000801034f0000001109000029000000008a08043c0000000009a90436000000000059004b0000093b0000c13d000000000006004b0000094c0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000009bf0000613d0000001f01400039000000600110018f0000001101100029000000400010043f000000200030008c000000560000413d000007ed0000013d00000009020000290000085d0020009c0000085d0200804100000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f00000883011001c700000000020004102171216c0000040f000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000000905700029000009720000613d000000000801034f0000000909000029000000008a08043c0000000009a90436000000000059004b0000096e0000c13d000000000006004b0000097f0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000009cb0000613d0000001f01400039000000600210018f0000000901200029000000000021004b00000000020000390000000102004039000008840010009c00000da70000213d000000010020019000000da70000c13d000000400010043f000000200030008c000000560000413d00000009010000290000000002010433000000000002004b0000000001000039000000010100c039000000000012004b000000560000c13d0000000201000367000000000002004b0000099f0000613d000000140200008a0000000002200031000000000221034f000000000202043b0007006000200278001200070000002d00000006020000290000000002020433000000000002004b00000aac0000c13d0000004401100370000000000101043b000000000001004b000009ac0000613d00000011020000290000000002020433000000000021004b00000b390000a13d000000400100043d0000004402100039000008de030000410000000000320435000000240210003900000017030000390000048c0000013d0000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000009ba0000c13d000003a80000013d0000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000009c60000c13d000003a80000013d0000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000009d20000c13d000003a80000013d0000001101000029000000000010043f0000089601000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000001002000029000000000020043f000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b000000000201041a000008f7022001970000000f03000029000000000232019f000000000021041b000000400100043d00000000003104350000085d0010009c0000085d01008041000000400110021000000000020004140000085d0020009c0000085d02008041000000c002200210000000000112019f0000088c011001c70000800d020000390000000303000039000008e10400004100000011050000290000001006000029217121670000040f0000000100200190000000560000613d0000000001000019000021720001042e00000004010000390000000201100367000000000101043b000000000010043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000000501100039000000000101041a000f00000001001d000000400200043d00000882010000410000000000120435001100000002001d00000004012000390000000002000411000e00000002001d000000000021043500000000010004140000000002000410000000040020008c00000ad30000c13d0000000103000031000000200030008c0000002004000039000000000403401900000aff0000013d0000000002000019000c00000000001d000a00000005001d00000a380000013d000000110200002900000001022000390000000d0020006c000008ce0000813d000000800100043d000000000021004b0000165f0000a13d001100000002001d0000000501200210000000a001100039000e00000001001d0000000001010433000f00000001001d00000080011000390000000001010433001000000001001d0000089c01000041000000000010044300000000010004140000085d0010009c0000085d01008041000000c0011002100000089d011001c70000800b020000392171216c0000040f0000000100200190000016f60000613d000000000101043b00000010020000290000088802200197000000000012004b00000a340000213d0000000f06000029000000a00260003900000000020204330000088802200197000000000012004b00000a340000a13d00000140016000390000000001010433000000030010008c000002dc0000213d000000010010008c00000a340000c13d00000120016000390000000005010433000000010050008c000002dc0000213d0000004001600039000000000401043300000020016000390000000003010433000000e0016000390000000002010433000000c00160003900000000010104330000086001100197000008600220019721711ae50000040f000000000001004b00000a340000613d000000800100043d000000110010006c0000000a050000290000165f0000a13d0000000c02000029000008f80020009c000003230000613d0000000b010000290000000001010433000000000021004b0000165f0000a13d0000000e0100002900000000010104330000000c0300002900000005023002100000000002250019000000000012043500000011020000290000000b010000290000000001010433000000000031004b0000165f0000a13d0000000c01000029000c00010010003d00000a350000013d0000001101000029000000000010043f0000087a01000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000001002000029000000000020043f000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b000000000101041a0000000f0010006c00000b550000c13d000000400100043d00000044021000390000088e03000041000004890000013d0000000401100370000000000101043b000000000010043f0000089601000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b00000007020000290000086002200197000000000020043f000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b000000000101041a000000ff0010019000000b810000c13d000000400100043d0000004402100039000008aa030000410000000000320435000000240210003900000012030000390000048c0000013d00000011020000290000085d0020009c0000085d0200804100000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f00000883011001c700000000020004102171216c0000040f000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f0000002007400190000000110570002900000aee0000613d000000000801034f0000001109000029000000008a08043c0000000009a90436000000000059004b00000aea0000c13d000000000006004b00000afb0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000b2d0000613d0000001f01400039000000600110018f0000001102100029000000000012004b00000000010000390000000101004039001000000002001d000008840020009c00000da70000213d000000010010019000000da70000c13d0000001001000029000000400010043f000000200030008c000000560000413d00000011010000290000000001010433000000000001004b0000000002000039000000010200c039000000000021004b000000560000c13d000000000001004b000000000100041100000b1d0000613d000000140100008a00000000011000310000000201100367000000000101043b00000060011002700000000f0210014f00000010010000290000000401100039000008600020019800000b830000c13d0000088202000041000000100400002900000000002404350000000002000411000000000021043500000000010004140000000002000410000000040020008c00000b960000c13d000000200400003900000bc20000013d0000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000b340000c13d000003a80000013d00000010010000290000000001010433001000000001001d0000089c01000041000000000010044300000000010004140000085d0010009c0000085d01008041000000c0011002100000089d011001c70000800b020000392171216c0000040f0000000100200190000016f60000613d000000000101043b00000010020000290000088802200197000000000021004b00000b510000813d0000000f0200002900000000020204330000088802200197000000000021004b00000d830000813d000000400100043d0000004402100039000008dd03000041000009af0000013d0000001101000029000000000010043f0000087a01000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000001002000029000000000020043f000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000000f02000029000000000021041b000000400100043d00000000002104350000085d0010009c0000085d01008041000000400110021000000000020004140000085d0020009c0000085d02008041000000c002200210000000000112019f0000088c011001c70000800d0200003900000003030000390000088d0400004100000a050000013d0000000201000367000009a40000013d0000087f0200004100000010030000290000000000230435000000200200003900000000002104350000006401300039000008850200004100000000002104350000004401300039000008860200004100000000002104350000002401300039000000210200003900000000002104350000085d0030009c0000085d03008041000000400130021000000880011001c7000021730001043000000010020000290000085d0020009c0000085d0200804100000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f00000883011001c700000000020004102171216c0000040f000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f0000002007400190000000100570002900000bb10000613d000000000801034f0000001009000029000000008a08043c0000000009a90436000000000059004b00000bad0000c13d000000000006004b00000bbe0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000eca0000613d0000001f01400039000000600110018f0000001001100029000008840010009c00000da70000213d000000400010043f000000200030008c000000560000413d00000010010000290000000002010433000000000002004b0000000001000039000000010100c039000000000012004b000000560000c13d0000000201000367000000000002004b00000bd90000613d000000140200008a0000000002200031000000000221034f000000000202043b000e0060002002780000000401100370000000000101043b000000000010043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000400200043d000008870020009c00000da70000213d000000000101043b0000018003200039000000400030043f000000000301041a00000000043204360000000103100039000000000303041a000f00000004001d00000000003404350000000203100039000000000303041a000000400420003900000000003404350000000303100039000000000303041a000000600420003900000000003404350000000403100039000000000303041a000000a0052000390000008004300270001100000005001d000000000045043500000888033001970000008004200039000d00000004001d00000000003404350000000503100039000000000303041a0000086003300197000000c00420003900000000003404350000000603100039000000000303041a0000086003300197000000e004200039001000000004001d000000000034043500000100032000390000000701100039000000000101041a00000860041001970000000000430435000000a003100270000000ff0330018f000000010030008c000002dc0000213d00000120042000390000000000340435000000a803100270000000ff0330018f000000030030008c000002dc0000213d00000140042000390000000000340435000001600220003900000889001001980000000001000039000000010100c0390000000000120435000000800100043d00000860011001972171192b0000040f00000011020000290000000002020433000c00000002001d0000089c020000410000000000200443000b00000001001d00000000010004140000085d0010009c0000085d01008041000000c0011002100000089d011001c70000800b020000392171216c0000040f0000000100200190000016f60000613d000000000101043b0000000c020000290000088802200197000000000012004b00000fbb0000a13d00000010020000290000000002020433000000800300043d000000000223013f000008600020019800000fc60000c13d0000000f020000290000000002020433000000a00300043d000000000032004b00000fc60000c13d000001400200043d0000088803200197000001200200043d0000088802200197001000000002001d000f00000003001d000000000223004b00000d790000a13d0000000d0300002900000000030304330000088803300197000000000013004b00000c590000213d0000000f0010006b000010ca0000a13d000000100030006b000010ca0000c13d000000100010006b00000c730000813d000000100030006b00000c730000613d0000001003000029000008f00030009c000003230000813d000000100300002900000e1003300039000000000013004b000008250000413d001008880010019b0000000f01000029000008880010009c00000c730000613d0000001101000029000000000101043300000888011001970000000f0010006b00000c730000613d000008880020009c000003230000213d0000001001200029000f00000001001d000008880010009c000003230000213d00000004010000390000000201100367000000000101043b000000000010043f0000087a01000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b000000e00200043d0000086002200197000000000020043f000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b000000000101041a000000000001004b00000c970000613d000001000200043d000000000012004b000011d10000c13d00000080010000390000000b0200002921711a1f0000040f000000400100043d001100000001001d000008870010009c00000da70000213d00000011090000290000018002900039000000a00100043d000000c00300043d000001000400043d000000800500043d000000e00600043d000001600700043d000000400020043f00000004020000390000000202200367000000000202043b000000000007004b0000000007000039000000010700c0390000016008900039000500000008001d000000000078043500000140089000390000000107000039000600000008001d000000000078043500000120089000390000000b07000029000d00000008001d000000000078043500000860066001970000010007900039000700000007001d00000000006704350000086005500197000000e006900039000c00000006001d0000000000560435000000a0069000390000000f05000029000b00000006001d000000000056043500000080069000390000001005000029000f00000006001d00000000005604350000006005900039000a00000005001d00000000004504350000004004900039000900000004001d00000000003404350000002003900039000800000003001d000000000013043500000000002904350000000e010000290000086001100197000000c003900039000e00000001001d001000000003001d0000000000130435000000000020043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d00000011020000290000000002020433000000000101043b000000000021041b000000080300002900000000030304330000000104100039000000000034041b000000090300002900000000030304330000000204100039000000000034041b0000000a0300002900000000030304330000000304100039000000000034041b0000000f03000029000000000303043300000888033001970000000b0400002900000000040404330000008004400210000000000334019f0000000404100039000000000034041b0000001003000029000000000303043300000860033001970000000504100039000000000504041a000008a005500197000000000335019f000000000034041b0000000c03000029000000000303043300000860033001970000000604100039000000000504041a000008a005500197000000000335019f000000000034041b0000000d030000290000000003030433000000010030008c000002dc0000213d0000000701100039000000a003300210000008a103300197000000070400002900000000040404330000086004400197000000000334019f000000000401041a000008a204400197000000000343019f000000000031041b00000006040000290000000004040433000000030040008c000002dc0000213d000008a303300197000000a804400210000008a404400197000000000334019f00000005040000290000000004040433000000000004004b000008a5040000410000000004006019000000000343019f000000000031041b000000800300043d000000400100043d000000000221043600000008040000290000000004040433000000000042043500000009020000290000000002020433000000400410003900000000002404350000000a020000290000000002020433000000600410003900000000002404350000000f0200002900000000020204330000088802200197000000800410003900000000002404350000000b0200002900000000020204330000088802200197000000a0041000390000000000240435000000100200002900000000020204330000086002200197000000c00410003900000000002404350000000c0200002900000000020204330000086002200197000000e0041000390000000000240435000000070200002900000000020204330000086002200197000001000410003900000000002404350000000d020000290000000002020433000000010020008c000002dc0000213d0000012004100039000000000024043500000006020000290000000002020433000000030020008c000002dc0000213d00000860073001970000014003100039000000000023043500000005020000290000000002020433000000000002004b0000000002000039000000010200c0390000016003100039000000000023043500000004030000390000000202300367000000000602043b0000085d0010009c0000085d01008041000000400110021000000000020004140000085d0020009c0000085d02008041000000c002200210000000000112019f000008a6011001c70000800d02000039000008f3040000410000000e05000029217121670000040f0000000100200190000000560000613d00000a0a0000013d000000400100043d0000006402100039000008ec0300004100000000003204350000004402100039000008ed03000041000000000032043500000024021000390000003a030000390000018f0000013d00000008010000290000000005010433000000010050008c000002dc0000213d0000000d01000029000000000301043300000044010000390000000201100367000000000401043b0000000c0100002900000000020104330000000e0100002900000000010104330000086001100197000008600220019721711ae50000040f000000000001004b00000ee70000c13d000000400100043d0000006402100039000008db0300004100000000003204350000004402100039000008dc03000041000000000032043500000024021000390000002a030000390000018f0000013d001108880010019b0000000d01000029000008880010009c00000ed60000c13d000d088800000045000000400100043d0000089f0010009c00000dad0000a13d000008d901000041000000000010043f0000004101000039000000040010043f000008830100004100002173000104300000010002100039000000400020043f00000002020003670000000403200370000000000303043b000008600030009c000000560000213d00000000033104360000002404200370000000000404043b000000000043043500000040031000390000004404200370000000000404043b00000000004304350000006403200370000000000303043b000008600030009c000000560000213d0000006004100039000000000034043500000080031000390000008404200370000000000404043b0000000000430435000000a403200370000000000303043b000008880030009c000000560000213d000000a0041000390000000000340435000000c403200370000000000303043b000008880030009c000000560000213d000000c0041000390000000000340435000000e402200370000000000202043b000000000002004b0000000003000039000000010300c039000000000032004b000000560000c13d000000e00310003900000000002304350000000e0200002921711a1f0000040f00000002010003670000000402100370000000000202043b000008600020009c000000560000213d000000400300043d000c00000003001d000008870030009c00000da70000213d0000000c060000290000018003600039000000400030043f0000000f0400002900000000054604360000002403100370000000000303043b000900000005001d00000000003504350000004403100370000000000303043b0000004005600039000800000005001d00000000003504350000008403100370000000000303043b000000e005600039000b00000005001d0000000000250435000000a0056000390000000d02000029000a00000005001d000000000025043500000080056000390000001102000029000d00000005001d00000000002504350000006002600039000700000002001d000000000032043500000010020000290000086002200197000000c003600039000400000002001d001000000003001d00000000002304350000006402100370000000000202043b00000140056000390000000103000039000600000005001d000000000035043500000120056000390000000e03000029001100000005001d000000000035043500000860022001970000010003600039000e00000003001d00000000002304350000016002600039000000e401100370000000000101043b000000000001004b0000000001000039000000010100c039000500000002001d0000000000120435000000000040043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d0000000c020000290000000002020433000000000101043b000000000021041b000000090300002900000000030304330000000104100039000000000034041b000000080300002900000000030304330000000204100039000000000034041b000000070300002900000000030304330000000304100039000000000034041b0000000d03000029000000000303043300000888033001970000000a0400002900000000040404330000008004400210000000000334019f0000000404100039000000000034041b0000001003000029000000000303043300000860033001970000000504100039000000000504041a000008a005500197000000000335019f000000000034041b0000000b03000029000000000303043300000860033001970000000604100039000000000504041a000008a005500197000000000335019f000000000034041b00000011030000290000000003030433000000010030008c000002dc0000213d000000a003300210000008a1033001970000000e0400002900000000040404330000086004400197000000000334019f0000000701100039000000000401041a000008a204400197000000000343019f000000000031041b00000006040000290000000004040433000000030040008c000002dc0000213d000008a303300197000000a804400210000008a404400197000000000334019f00000005040000290000000004040433000000000004004b000008a5040000410000000004006019000000000343019f000000000031041b00000004010000390000000201100367000000000701043b000008600070009c000000560000213d000000400100043d0000000002210436000000090300002900000000030304330000000000320435000000080200002900000000020204330000004003100039000000000023043500000007020000290000000002020433000000600310003900000000002304350000000d0200002900000000020204330000088802200197000000800310003900000000002304350000000a0200002900000000020204330000088802200197000000a0031000390000000000230435000000100200002900000000020204330000086002200197000000c00310003900000000002304350000000b0200002900000000020204330000086002200197000000e00310003900000000002304350000000e02000029000000000202043300000860022001970000010003100039000000000023043500000011020000290000000002020433000000010020008c000002dc0000213d0000012003100039000000000023043500000006020000290000000002020433000000030020008c000002dc0000213d0000014003100039000000000023043500000005020000290000000002020433000000000002004b0000000002000039000000010200c039000001600310003900000000002304350000085d0010009c0000085d01008041000000400110021000000000020004140000085d0020009c0000085d02008041000000c002200210000000000112019f000008a6011001c70000800d020000390000000403000039000008a70400004100000004050000290000000f06000029217121670000040f0000000100200190000000560000613d000000400100043d0000000f0200002900000000002104350000085d0010009c0000085d0100804100000040011002100000087c011001c7000021720001042e0000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000ed10000c13d000003a80000013d0000000202000367000000c401200370000000000101043b000008880010009c000000560000213d000000a402200370000000000202043b000008880020009c000000560000213d0000000001210049000008880010009c000003230000213d0000001101100029000d00000001001d000008880010009c00000da40000a13d000003230000013d00000004010000390000000201100367000000000101043b000000000010043f0000087a01000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b00000064020000390000000202200367000000000202043b0000086002200197000000000020043f000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d0000000203000367000000000101043b000000000101041a000000000001004b00000f1d0000c13d0000000b0100002900000000010104330000006402300370000000000202043b000000000112013f000008600010019800000f980000c13d0000004401300370000000000101043b000000000001004b00000f400000613d0000000a02000029000000000202043300100000001200ad00000010011000f9000000000021004b000003230000c13d00000f410000013d0000000401300370000000000101043b000000000010043f0000087a01000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b00000064020000390000000202200367000000000202043b0000086002200197000000000020043f000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d00000002030003670000004402300370000000000202043b000000000002004b00000fbf0000c13d001000000000001d0000008401300370000000000101043b000000100010006b00000f9f0000c13d0000006401300370000000000101043b0000086002100197000008ad0020009c00000fa60000c13d0000000002000416000000100020006c00000fd00000c13d000000110100002900000000010104330000004402300370000000000202043b000000000021004b00000f680000c13d0000000401300370000000000101043b000000000010043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d000000000101043b0000000701100039000000000201041a000008b502200197000008b6022001c7000000000021041b00000002030003670000000401300370000000000101043b000000000010043f0000088101000041000000200010043f00000000010004140000085d0010009c0000085d01008041000000c0011002100000087b011001c700008010020000392171216c0000040f0000000100200190000000560000613d00000044020000390000000202200367000000000202043b000000000101043b0000000201100039000000000301041a000000000223004b000003230000413d000000000021041b0000001002000029000f0064002000cd0000000e010000290000000001010433000b00000001001d000000000002004b00000f8a0000613d0000000f0200002900000010012000fa000000640010008c000003230000c13d000000400200043d000008b701000041001100000002001d0000000001120436000a00000001001d00000000010004140000000002000410000000040020008c000010830000c13d0000000103000031000000400030008c00000040040000390000000004034019000010af0000013d000000400100043d0000004402100039000008ab03000041000000000032043500000024021000390000001b030000390000048c0000013d000000400100043d0000004402100039000008ac030000410000000000320435000000240210003900000016030000390000048c0000013d000000400100043d000f00000001001d00000004011000390000000003000416000000000003004b00000fda0000c13d000008b0030000410000000f04000029000000000034043500000007030000290000086003300197000a00000003001d00000000003104350000000001000414000000040020008c00000fe80000c13d0000000103000031000000200030008c00000020040000390000000004034019000010130000013d000000400100043d0000004402100039000008e903000041000004890000013d000000000101043b000000000101041a00100000002100ad00000010022000f9000000000012004b000003230000c13d00000f410000013d000000400100043d0000006402100039000008ea0300004100000000003204350000004402100039000008eb030000410000000000320435000000240210003900000030030000390000018f0000013d000000400100043d0000006402100039000008b30300004100000000003204350000004402100039000008b4030000410000000000320435000000240210003900000037030000390000018f0000013d0000087f020000410000000f030000290000000000230435000000200200003900000000002104350000006401300039000008ae0200004100000000002104350000004401300039000008af0200004100000000002104350000002401300039000000280200003900000b900000013d0000000f030000290000085d0030009c0000085d0300804100000040033002100000085d0010009c0000085d01008041000000c001100210000000000131019f00000883011001c72171216c0000040f000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000000f05700029000010020000613d000000000801034f0000000f09000029000000008a08043c0000000009a90436000000000059004b00000ffe0000c13d000000000006004b0000100f0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f000300000001035500000001002001900000102d0000613d0000001f01400039000000600110018f0000000f04100029000000000014004b00000000020000390000000102004039000b00000004001d000008840040009c00000da70000213d000000010020019000000da70000c13d0000000b02000029000000400020043f000000200030008c000000560000413d0000000f020000290000000002020433000000100020006c000010390000813d0000000b010000290000004402100039000008b2030000410000000000320435000000240210003900000006030000390000048c0000013d0000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000010340000c13d000003a80000013d000000000200041000000860022001970000000b0500002900000024045000390000000000240435000008b102000041000000000025043500000004025000390000000a04000029000000000042043500000064020000390000000202200367000000000202043b00000000040004140000086002200197000000040020008c000010770000613d0000000b010000290000085d0010009c0000085d0100804100000040011002100000085d0040009c0000085d04008041000000c003400210000000000113019f0000089a011001c72171216c0000040f000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000000b05700029000010640000613d000000000801034f0000000b09000029000000008a08043c0000000009a90436000000000059004b000010600000c13d000000000006004b000010710000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000010dd0000613d0000001f01400039000000600110018f0000000b01100029000008840010009c00000da70000213d000000400010043f000000200030008c000000560000413d0000000b020000290000000002020433000000100020006c000010270000413d000000020300036700000f4d0000013d00000011020000290000085d0020009c0000085d0200804100000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f000008b8011001c700000000020004102171216c0000040f000000000301001900000060033002700000085d03300197000000400030008c000000400400003900000000040340190000001f0640018f000000600740019000000011057000290000109e0000613d000000000801034f0000001109000029000000008a08043c0000000009a90436000000000059004b0000109a0000c13d000000000006004b000010ab0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000010d10000613d0000001f01400039000000e00210018f0000001101200029000000000021004b00000000020000390000000102004039000008840010009c00000da70000213d000000010020019000000da70000c13d000000400010043f000000400030008c000010c50000413d00000011010000290000000001010433000900000001001d000008600010009c000000560000213d0000000a0100002900000000010104330000ffff0010008c000010e90000a13d00000015010000290000085d0010009c0000085d01008041000008d6011000d10000217300010430000000400100043d0000006402100039000008ee0300004100000000003204350000004402100039000008ef030000410000082b0000013d0000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000010d80000c13d000003a80000013d0000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000010e40000c13d000003a80000013d000a0010001000bd000000100000006b000010f00000613d0000000a0300002900000010023000fa000000000012004b000003230000c13d000008b901000041000000000010044300000000010004120000000400100443000000240000044300000000010004140000085d0010009c0000085d01008041000000c001100210000008ba011001c700008005020000392171216c0000040f0000000100200190000016f60000613d0000000f030000290006271000300122000000000101043b001100000001001d000027100030008c0000152c0000413d0000000701000029000008600310019700000064010000390000000201100367000000000101043b0000086001100197000500000001001d000008ad0010009c000011d80000c13d0000000001000410000000000013004b000012020000c13d000008c001000041000000000010044300000011010000290000086001100197000f00000001001d000000040010044300000000010004140000085d0010009c0000085d01008041000000c001100210000008c1011001c700008002020000392171216c0000040f0000000100200190000016f60000613d000000000101043b000000000001004b000000560000613d000000400200043d000008ca010000410000000000120435001100000002001d00000004012000390000000602000029000000000021043500000000010004140000000f02000029000000040020008c0000113e0000613d00000011020000290000085d0020009c0000085d0200804100000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f00000883011001c70000000f02000029217121670000040f000000000301001900000060033002700001085d0030019d000300000001035500000001002001900000123b0000613d0000001101000029000008840010009c00000da70000213d0000001101000029000000400010043f00000000010004140000085d0010009c0000085d01008041000000c001100210000008c5011001c700008009020000390000000603000029000008bb040000410000000005000019217121670000040f0003000000010355000000000301001900000060033002700001085d0030019d0000085d03300198000011780000613d0000001f043000390000085e044001970000003f04400039000008c604400197000000400500043d0000000004450019000000000054004b00000000060000390000000106004039000008840040009c00000da70000213d000000010060019000000da70000c13d000000400040043f0000001f0430018f00000000063504360000085f0530019800000000035600190000116b0000613d000000000701034f000000007807043c0000000006860436000000000036004b000011670000c13d000000000004004b000011780000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f000000000013043500000001002001900000152c0000c13d000008c00100004100000000001004430000000f01000029000000040010044300000000010004140000085d0010009c0000085d01008041000000c001100210000008c1011001c700008002020000392171216c0000040f0000000100200190000016f60000613d000000000101043b000000000001004b000000560000613d000000400200043d000008c701000041000500000002001d0000000001120436000400000001001d00000000010004140000000f02000029000000040020008c000011a70000613d00000005020000290000085d0020009c0000085d0200804100000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f000008c8011001c7000080090200003900000006030000290000000f040000290000000005000019217121670000040f000000000301001900000060033002700001085d0030019d00030000000103550000000100200190000012480000613d0000000501000029000008840010009c00000da70000213d0000000503000029000000400030043f000000440130003900000006020000290000000000210435000008c301000041000000040200002900000000001204350000002401300039000008bb02000041000000000021043500000044010000390000000000130435000008940030009c00000da70000213d00000005020000290000008001200039000300000001001d000000400010043f000008c40020009c00000da70000213d0000000503000029000000c001300039000000400010043f000000200200003900000003010000290000000000210435000000a002300039000008bf01000041001100000002001d0000000000120435000000000203043300000000010004140000000f03000029000000040030008c000012550000c13d00000001020000390000000101000031000012680000013d000000400100043d0000006402100039000008f10300004100000000003204350000004402100039000008f20300004100000fcc0000013d000008bb0030009c0000152c0000613d000000400200043d0000004404200039000000240520003900000020012000390000000006000410000000000063004b000f00c00020003d001100a00020003d0000126d0000c13d000008c3030000410000000000310435000008bb0300004100000000003504350000000603000029000000000034043500000044030000390000000000320435000008940020009c00000da70000213d0000008003200039000300000003001d000000400030043f000008c40020009c00000da70000213d0000000f03000029000000400030043f000000200400003900000003030000290000000000430435000008bf0300004100000011040000290000000000340435000000000302043300000000020004140000000504000029000000040040008c0000128d0000c13d000000010200003900000001010000310000129f0000013d000008bb0010009c000012a40000c13d0000000002000416000000060020006c000013340000c13d000008c001000041000000000010044300000011010000290000086001100197000f00000001001d000000040010044300000000010004140000085d0010009c0000085d01008041000000c001100210000008c1011001c700008002020000392171216c0000040f0000000100200190000016f60000613d000000000101043b000000000001004b000000560000613d000000400200043d000008c701000041001100000002001d000000000012043500000000010004140000000f02000029000000040020008c000012350000613d00000011020000290000085d0020009c0000085d0200804100000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f000008c8011001c7000080090200003900000000030004160000000f040000290000000005000019217121670000040f000000000301001900000060033002700001085d0030019d00030000000103550000000100200190000013420000613d0000001101000029000008840010009c00000da70000213d0000001101000029000000400010043f0000152c0000013d0000085d033001970000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000012430000c13d000003a80000013d0000085d033001970000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000012500000c13d000003a80000013d00000004030000290000085d0030009c0000085d0300804100000040033002100000085d0020009c0000085d020080410000006002200210000000000232019f0000085d0010009c0000085d01008041000000c001100210000000000112019f0000000f02000029217121670000040f000000010220018f000300000001035500000060011002700001085d0010019d0000085d01100197000000000001004b0000134f0000c13d000400600000003d000500800000003d000013790000013d000008bc0600004100000000006104350000000000350435000008bb03000041000000000034043500000064032000390000000604000029000000000043043500000064030000390000000000320435000008bd0020009c00000da70000213d0000001103000029000000400030043f000008be0020009c00000da70000213d000000e003200039000000400030043f000000200400003900000011030000290000000000430435000008bf030000410000000f040000290000000000340435000000000302043300000000020004140000000504000029000000040040008c000013950000c13d00000001020000390000000101000031000013a70000013d0000085d0010009c0000085d0100804100000040011002100000085d0030009c0000085d030080410000006003300210000000000113019f0000085d0020009c0000085d02008041000000c002200210000000000121019f0000000502000029217121670000040f000000010220018f000300000001035500000060011002700001085d0010019d0000085d01100197000000000001004b000013ac0000c13d000400600000003d000f00800000003d000013d60000013d00000000010004140000085d0010009c0000085d01008041000000c001100210000008c5011001c700008009020000390000000603000029000008bb040000410000000005000019217121670000040f0003000000010355000000000301001900000060033002700001085d0030019d0000085d03300198000012d90000613d0000001f043000390000085e044001970000003f04400039000008c604400197000000400500043d0000000004450019000000000054004b00000000060000390000000106004039000008840040009c00000da70000213d000000010060019000000da70000c13d000000400040043f0000001f0430018f00000000063504360000085f053001980000000003560019000012cc0000613d000000000701034f000000007807043c0000000006860436000000000036004b000012c80000c13d000000000004004b000012d90000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f000000000013043500000001002001900000152c0000c13d000008c001000041000000000010044300000011010000290000086001100197000f00000001001d000000040010044300000000010004140000085d0010009c0000085d01008041000000c001100210000008c1011001c700008002020000392171216c0000040f0000000100200190000016f60000613d000000000101043b000000000001004b000000560000613d000000400200043d000008c701000041000500000002001d0000000001120436000400000001001d00000000010004140000000f02000029000000040020008c0000130a0000613d00000005020000290000085d0020009c0000085d0200804100000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f000008c8011001c7000080090200003900000006030000290000000f040000290000000005000019217121670000040f000000000301001900000060033002700001085d0030019d00030000000103550000000100200190000013f20000613d0000000501000029000008840010009c00000da70000213d0000000503000029000000400030043f000000440130003900000006020000290000000000210435000008c301000041000000040200002900000000001204350000002401300039000008bb02000041000000000021043500000044010000390000000000130435000008940030009c00000da70000213d00000005020000290000008001200039000300000001001d000000400010043f000008c40020009c00000da70000213d0000000503000029000000c001300039000000400010043f000000200200003900000003010000290000000000210435000000a002300039000008bf01000041001100000002001d0000000000120435000000000203043300000000010004140000000f03000029000000040030008c000013ff0000c13d00000001020000390000000101000031000014120000013d000000400100043d000000240210003900000006030000290000000000320435000008c90200004100000000002104350000000402100039000000000300041600000000003204350000085d0010009c0000085d0100804100000040011002100000089a011001c700002173000104300000085d033001970000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000134a0000c13d000003a80000013d0000001f04100039000008f6044001970000003f04400039000008f604400197000000400500043d0000000004450019000400000005001d000000000054004b00000000050000390000000105004039000008840040009c00000da70000213d000000010050019000000da70000c13d000000400040043f00000004040000290000000005140436000008f6031001980000001f0410018f000500000005001d000000000135001900000003050003670000136c0000613d000000000605034f0000000507000029000000006806043c0000000007870436000000000017004b000013680000c13d000000000004004b000013790000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f000000000031043500000004010000290000000001010433000000000002004b000014170000c13d000000000001004b000015610000c13d000000400100043d0000087f02000041000000000021043500000004021000390000002003000039000000000032043500000003020000290000000002020433000000240310003900000000002304350000004403100039000000000002004b000014d30000613d000000000400001900000000053400190000001106400029000000000606043300000000006504350000002004400039000000000024004b0000138d0000413d000014d30000013d0000085d0010009c0000085d0100804100000040011002100000085d0030009c0000085d030080410000006003300210000000000113019f0000085d0020009c0000085d02008041000000c002200210000000000121019f0000000502000029217121670000040f000000010220018f000300000001035500000060011002700001085d0010019d0000085d01100197000000000001004b0000142a0000c13d000300600000003d000400800000003d000014540000013d0000001f04100039000008f6044001970000003f04400039000008f604400197000000400500043d0000000004450019000400000005001d000000000054004b00000000050000390000000105004039000008840040009c00000da70000213d000000010050019000000da70000c13d000000400040043f00000004040000290000000005140436000008f6031001980000001f0410018f000f00000005001d00000000013500190000000305000367000013c90000613d000000000605034f0000000f07000029000000006806043c0000000007870436000000000017004b000013c50000c13d000000000004004b000013d60000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f000000000031043500000004010000290000000001010433000000000002004b000014700000c13d000000000001004b0000148c0000c13d000000400100043d0000087f02000041000000000021043500000004021000390000002003000039000000000032043500000003020000290000000002020433000000240310003900000000002304350000004403100039000000000002004b000014d30000613d000000000400001900000000053400190000001106400029000000000606043300000000006504350000002004400039000000000024004b000013ea0000413d000014d30000013d0000085d033001970000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000013fa0000c13d000003a80000013d00000004030000290000085d0030009c0000085d0300804100000040033002100000085d0020009c0000085d020080410000006002200210000000000232019f0000085d0010009c0000085d01008041000000c001100210000000000112019f0000000f02000029217121670000040f000000010220018f000300000001035500000060011002700001085d0010019d0000085d01100197000000000001004b0000148e0000c13d000400600000003d000500800000003d000014b80000013d000000000001004b000015180000c13d000008c00100004100000000001004430000000f01000029000000040010044300000000010004140000085d0010009c0000085d01008041000000c001100210000008c1011001c700008002020000392171216c0000040f0000000100200190000016f60000613d000000000101043b000000000001004b000015100000613d000015140000013d0000001f04100039000008f6044001970000003f04400039000008f604400197000000400500043d0000000004450019000300000005001d000000000054004b00000000050000390000000105004039000008840040009c00000da70000213d000000010050019000000da70000c13d000000400040043f00000003040000290000000005140436000008f6031001980000001f0410018f000400000005001d00000000013500190000000305000367000014470000613d000000000605034f0000000407000029000000006806043c0000000007870436000000000017004b000014430000c13d000000000004004b000014540000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f000000000031043500000003010000290000000001010433000000000002004b000014e00000c13d000000000001004b000014fc0000c13d000000400100043d0000087f02000041000000000021043500000004021000390000002003000039000000000032043500000011020000290000000002020433000000240310003900000000002304350000004403100039000000000002004b000014d30000613d000000000400001900000000053400190000000f06400029000000000606043300000000006504350000002004400039000000000024004b000014680000413d000014d30000013d000000000001004b000014860000c13d000008c00100004100000000001004430000000501000029000000040010044300000000010004140000085d0010009c0000085d01008041000000c001100210000008c1011001c700008002020000392171216c0000040f0000000100200190000016f60000613d000000000101043b000000000001004b000015100000613d00000004010000290000000001010433000000000001004b0000152c0000613d000008c20010009c000000560000213d000000200010008c000000560000413d0000000f010000290000151d0000013d0000000f02000029000015620000013d0000001f04100039000008f6044001970000003f04400039000008f604400197000000400500043d0000000004450019000400000005001d000000000054004b00000000050000390000000105004039000008840040009c00000da70000213d000000010050019000000da70000c13d000000400040043f00000004040000290000000005140436000008f6031001980000001f0410018f000500000005001d00000000013500190000000305000367000014ab0000613d000000000605034f0000000507000029000000006806043c0000000007870436000000000017004b000014a70000c13d000000000004004b000014b80000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f000000000031043500000004010000290000000001010433000000000002004b000014fe0000c13d000000000001004b000015610000c13d000000400100043d0000087f02000041000000000021043500000004021000390000002003000039000000000032043500000003020000290000000002020433000000240310003900000000002304350000004403100039000000000002004b000014d30000613d000000000400001900000000053400190000001106400029000000000606043300000000006504350000002004400039000000000024004b000014cc0000413d0000001f04200039000008f6044001970000000002320019000000000002043500000044024000390000085d0020009c0000085d0200804100000060022002100000085d0010009c0000085d010080410000004001100210000000000112019f0000217300010430000000000001004b000014f60000c13d000008c00100004100000000001004430000000501000029000000040010044300000000010004140000085d0010009c0000085d01008041000000c001100210000008c1011001c700008002020000392171216c0000040f0000000100200190000016f60000613d000000000101043b000000000001004b000015100000613d00000003010000290000000001010433000000000001004b0000152c0000613d000008c20010009c000000560000213d000000200010008c000000560000413d00000004010000290000151d0000013d0000000402000029000015620000013d000000000001004b000015180000c13d000008c00100004100000000001004430000000f01000029000000040010044300000000010004140000085d0010009c0000085d01008041000000c001100210000008c1011001c700008002020000392171216c0000040f0000000100200190000016f60000613d000000000101043b000000000001004b000015140000c13d000000400100043d0000004402100039000008cd03000041000004890000013d00000004010000290000000001010433000000000001004b0000152c0000613d000008c20010009c000000560000213d000000200010008c000000560000413d00000005010000290000000001010433000000000001004b0000000002000039000000010200c039000000000021004b000000560000c13d000000000001004b0000152c0000c13d000000400100043d0000006402100039000008cb0300004100000000003204350000004402100039000008cc0300004100000d9b0000013d000008b901000041000000000010044300000000010004120000000400100443000000240000044300000000010004140000085d0010009c0000085d01008041000000c001100210000008ba011001c700008005020000392171216c0000040f0000000100200190000016f60000613d0000000a02000029000027100420011a001100000004001d000000000501043b00000064010000390000000201100367000000000101043b0000000702000029000000090300002921711ce10000040f0000001102000029000000100120006b000003230000413d000f000600100074000003230000413d0000000c0100002900000000010104330000000d020000290000000002020433000000400500043d00000044035000390000001004000029000000000043043500000024035000390000000000230435000008ce020000410000000002250436000a00000002001d0000086001100197001100000005001d0000000402500039000000000012043500000000010004140000000002000410000000040020008c0000156a0000c13d000000030100036700000001030000310000157c0000013d00000005020000290000085d0020009c0000085d0200804100000040022002100000085d0010009c0000085d010080410000006001100210000000000121019f000021730001043000000011020000290000085d0020009c0000085d0200804100000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f0000088f011001c70000000002000410217121670000040f000000000301001900000060033002700001085d0030019d0000085d0330019700030000000103550000000100200190000016650000613d000008f6053001980000001f0630018f0000001104500029000015860000613d000000000701034f0000001108000029000000007907043c0000000008980436000000000048004b000015820000c13d000000000006004b000015930000613d000000000151034f0000000305600210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000001f01300039000008f6011001970000001102100029000000000012004b00000000010000390000000101004039000500000002001d000008840020009c00000da70000213d000000010010019000000da70000c13d0000000501000029000000400010043f000008c20030009c000010c50000213d000000400030008c000010c50000413d00000011010000290000000001010433000008840010009c000010c50000213d00000011041000290000001101300029000008cf021001970000001f03400039000008cf05300197000000000625013f000000000025004b0000000005000019000008cf05004041000000000013004b0000000003000019000008cf03008041000008cf0060009c000000000503c019000000000005004b000000560000c13d0000000034040434000008840040009c00000da70000213d00000005054002100000003f0650003900000893066001970000000506600029000008840060009c00000da70000213d000000400060043f000000050600002900000000004604350000000004530019000000000014004b000010c50000213d000000000043004b000015d10000813d00000005050000290000000036030434000008600060009c000010c50000213d00000020055000390000000000650435000000000043004b000015ca0000413d0000000a030000290000000003030433000008840030009c000010c50000213d00000011033000290000001f04300039000000000014004b0000000005000019000008cf05008041000008cf04400197000000000624013f000000000024004b0000000002000019000008cf02004041000008cf0060009c000000000205c019000000000002004b000000560000c13d0000000023030434000008840030009c00000da70000213d00000005043002100000003f054000390000089305500197000000400600043d0000000005560019000400000006001d000000000065004b00000000060000390000000106004039000008840050009c00000da70000213d000000010060019000000da70000c13d000000400050043f00000004050000290000000003350436000300000003001d0000000003420019000000000013004b000010c50000213d000000000032004b000016010000813d000000030100002900000000240204340000000001410436000000000032004b000015fd0000413d000600150000002d00000005010000290000000021010434000100000002001d000200000001001d000000000001004b0000163a0000613d0000000202000029000000060020006b0000163a0000813d001100060000002d00000005010000290000000001010433000000110010006c0000165f0000a13d00000004010000290000000001010433000000110010006c0000165f0000a13d0000001101000029000000050110021000000003021000290000000003020433000a00000003001d000f000f00300073000016710000413d00000001011000290000000001010433000900000001001d000008b901000041000000000010044300000000010004120000000400100443000000240000044300000000010004140000085d0010009c0000085d01008041000000c001100210000008ba011001c700008005020000392171216c0000040f0000000100200190000016f60000613d00000009020000290000086003200197000000000501043b00000064010000390000000201100367000000000101043b00000007020000290000000a0400002921711ce10000040f00000011020000290000000102200039001100000002001d000000020020006c0000160c0000413d000008b901000041000000000010044300000000010004120000000400100443000000240000044300000000010004140000085d0010009c0000085d01008041000000c001100210000008ba011001c700008005020000392171216c0000040f0000000100200190000016f60000613d0000000b020000290000086003200197000000000501043b00000064010000390000000201100367000000000101043b00000007020000290000000f0400002921711ce10000040f00000008010000290000000001010433000000010010008c000016780000a13d000008d901000041000000060200002900000000001204350000002101000039000000040010043f0000085d0020009c0000085d02008041000000400120021000000883011001c70000217300010430000008d901000041000000000010043f0000003201000039000000040010043f000008830100004100002173000104300000001f0530018f0000085f06300198000000400200043d0000000004620019000003a80000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000166c0000c13d000003a80000013d000000400100043d0000004402100039000008da030000410000000000320435000000240210003900000015030000390000048c0000013d0000000e020000290000000002020433000e08600020019b0000000d020000290000000002020433001100000002001d0000000c020000290000000002020433000008c00300004100000000003004430000086002200197000f00000002001d0000000400200443000000010010008c000016c10000c13d00000000010004140000085d0010009c0000085d01008041000000c001100210000008c1011001c700008002020000392171216c0000040f0000000100200190000016f60000613d000000000101043b000000000001004b000010c50000613d000000400400043d000008d301000041000000000014043500000004014000390000000e0200002900000000002104350000086001000041000000140110017f0000004402400039000000110300002900000000003204350000002402400039000000000012043500000044010000390000000201100367000000000101043b000000a402400039000000060300002900000000003204350000008402400039000000a0030000390000000000320435001100000004001d0000006402400039000000000012043500000000010004140000000f02000029000000040020008c0000171e0000613d00000011020000290000085d0020009c0000085d0200804100000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f000000060000006b000016f70000c13d000008d5011001c70000000f02000029217121670000040f000000000301001900000060033002700000085d033001970000171a0000013d00000000010004140000085d0010009c0000085d01008041000000c001100210000008c1011001c700008002020000392171216c0000040f0000000100200190000016f60000613d000000000101043b000000000001004b000010c50000613d000000400400043d000008d001000041000000000014043500000004014000390000000e0200002900000000002104350000086001000041000000140110017f000000840240003900000006030000290000000000320435000000640240003900000080030000390000000000320435000000440240003900000011030000290000000000320435001100000004001d0000002402400039000000000012043500000000010004140000000f02000029000000040020008c0000174e0000613d00000011020000290000085d0020009c0000085d0200804100000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f000000060000006b000017270000c13d000008d2011001c70000000f02000029217121670000040f000000000301001900000060033002700000085d033001970000174a0000013d000000000001042f000008d4011001c7000080090200003900000006030000290000000f040000290000000005000019217121670000040f000000000301001900000060033002700000085d03300197000000060030006c000000060400002900000000040340190000001f0540018f0000085f0640019800000011046000290000170d0000613d000000000701034f0000001108000029000000007907043c0000000008980436000000000048004b000017090000c13d000000000005004b0000171a0000613d000000000661034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000100000003001f00030000000103550000000100200190000017810000613d0000001101000029000008840010009c00000da70000213d0000001101000029000000400010043f000000060000006b000017910000c13d000600000000001d000017530000013d000008d1011001c7000080090200003900000006030000290000000f040000290000000005000019217121670000040f000000000301001900000060033002700000085d03300197000000060030006c000000060400002900000000040340190000001f0540018f0000085f0640019800000011046000290000173d0000613d000000000701034f0000001108000029000000007907043c0000000008980436000000000048004b000017390000c13d000000000005004b0000174a0000613d000000000661034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000100000003001f00030000000103550000000100200190000017930000613d0000001101000029000008840010009c00000da70000213d0000001101000029000000400010043f0000001301000029000000e0021000390000000002020433000000c003100039000000000303043300000000160104340000000001010433000000110700002900000000001704350000086001000041000000120110017f0000002004700039000000000014043500000044010000390000000201100367000000000101043b000000600470003900000010050000290000000000540435000000400470003900000000001404350000085d0070009c0000085d07008041000000400170021000000000040004140000085d0040009c0000085d04008041000000c004400210000000000114019f00000860053001970000086007200197000008d7011001c70000800d020000390000000403000039000008d804000041217121670000040f0000000100200190000000560000613d00000001010000390000086102000041000000000012041b00000006010000290000085d0010009c0000085d01008041000008d6011000d1000021720001042e0000000602300029000000000032004b000000560000213d00000006041003600000001f0530018f0000085f06300198000000400100043d0000000002610019000017a20000613d000000000704034f0000000008010019000000007907043c0000000008980436000000000028004b0000178c0000c13d000017a20000013d0000000601000029000010c60000013d0000000602300029000000000032004b000000560000213d00000006041003600000001f0530018f0000085f06300198000000400100043d0000000002610019000017a20000613d000000000704034f0000000008010019000000007907043c0000000008980436000000000028004b0000179e0000c13d000000000005004b000017af0000613d000000000464034f0000000305500210000000000602043300000000065601cf000000000656022f000000000404043b0000010005500089000000000454022f00000000045401cf000000000464019f000000000042043500000060023002100000085d0010009c0000085d010080410000004001100210000000000121019f000021730001043000000000430104340000000003320436000000000404043300000000004304350000004003100039000000000303043300000040042000390000000000340435000000600310003900000000030304330000006004200039000000000034043500000080031000390000000003030433000008880330019700000080042000390000000000340435000000a00310003900000000030304330000088803300197000000a0042000390000000000340435000000c00310003900000000030304330000086003300197000000c0042000390000000000340435000000e00310003900000000030304330000086003300197000000e00420003900000000003404350000010003200039000001000410003900000000040404330000086004400197000000000043043500000120031000390000000003030433000000020030008c000017ee0000813d0000012004200039000000000034043500000140031000390000000003030433000000030030008c000017ee0000213d00000140042000390000000000340435000001600220003900000160011000390000000001010433000000000001004b0000000001000039000000010100c0390000000000120435000000000001042d000008d901000041000000000010043f0000002101000039000000040010043f0000088301000041000021730001043000000020030000390000000004310436000000000302043300000000003404350000004001100039000000000003004b0000183a0000613d00000000040000190000002002200039000000000502043300000000760504340000000006610436000000000707043300000000007604350000004006500039000000000606043300000040071000390000000000670435000000600650003900000000060604330000006007100039000000000067043500000080065000390000000006060433000008880660019700000080071000390000000000670435000000a00650003900000000060604330000088806600197000000a0071000390000000000670435000000c00650003900000000060604330000086006600197000000c0071000390000000000670435000000e00650003900000000060604330000086006600197000000e00710003900000000006704350000010006100039000001000750003900000000070704330000086007700197000000000076043500000120065000390000000006060433000000020060008c0000183b0000813d0000012007100039000000000067043500000140065000390000000006060433000000030060008c0000183b0000213d0000014007100039000000000067043500000160055000390000000005050433000000000005004b0000000005000039000000010500c0390000016006100039000000000056043500000180011000390000000104400039000000000034004b000017fc0000413d000000000001042d000008d901000041000000000010043f0000002101000039000000040010043f000008830100004100002173000104300000000002010019000000400100043d000008f90010009c000018830000813d0000018003100039000000400030043f000000000302041a00000000033104360000000104200039000000000404041a00000000004304350000000203200039000000000303041a000000400410003900000000003404350000000303200039000000000303041a000000600410003900000000003404350000000403200039000000000303041a000000a004100039000000800530027000000000005404350000088803300197000000800410003900000000003404350000000503200039000000000303041a0000086003300197000000c00410003900000000003404350000000603200039000000000303041a0000086003300197000000e004100039000000000034043500000100031000390000000702200039000000000202041a00000860042001970000000000430435000000a003200270000000ff0330018f000000020030008c0000187d0000813d00000120041000390000000000340435000000a803200270000000ff0330018f000000030030008c0000187d0000213d0000014004100039000000000034043500000889002001980000000002000039000000010200c03900000160031000390000000000230435000000000001042d000008d901000041000000000010043f0000002101000039000000040010043f00000883010000410000217300010430000008d901000041000000000010043f0000004101000039000000040010043f00000883010000410000217300010430000000400100043d000008f90010009c000018a60000813d0000018002100039000000400020043f00000160021000390000000000020435000001400210003900000000000204350000012002100039000000000002043500000100021000390000000000020435000000e0021000390000000000020435000000c0021000390000000000020435000000a0021000390000000000020435000000800210003900000000000204350000006002100039000000000002043500000040021000390000000000020435000000200210003900000000000204350000000000010435000000000001042d000008d901000041000000000010043f0000004101000039000000040010043f000008830100004100002173000104300001000000000002000000400b00043d000008820100004100000000001b04350000000402b000390000000001000411000000000012043500000000040004140000000002000410000000040020008c000018bc0000c13d0000000103000031000000200030008c00000020040000390000000004034019000018ea0000013d0000085d00b0009c0000085d0300004100000000030b401900000040033002100000085d0040009c0000085d04008041000000c001400210000000000131019f00000883011001c700010000000b001d2171216c0000040f000000010b000029000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b0019000018d80000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b000018d40000c13d000000000006004b000018e50000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f000300000001035500000001002001900000190d0000613d00000000010004110000001f02400039000000600220018f0000000004b20019000000000024004b00000000020000390000000102004039000008840040009c000019070000213d0000000100200190000019070000c13d000000400040043f0000001f0030008c000019050000a13d00000000030b0433000000000003004b0000000002000039000000010200c039000000000023004b000019050000c13d000000000003004b000019040000613d000000140100008a00000000011000310000000201100367000000000101043b0000006001100270000000000001042d00000000010000190000217300010430000008d901000041000000000010043f0000004101000039000000040010043f000008830100004100002173000104300000001f0530018f0000085f06300198000000400200043d0000000004620019000019180000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000019140000c13d000000000005004b000019250000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f000000000014043500000060013002100000085d0020009c0000085d020080410000004002200210000000000112019f00002173000104300002000000000002000000400c00043d000008fa0200004100000000002c04350000000402c00039000008fb03000041000000000032043500000000030004140000086002100197000000040020008c0000193b0000c13d0000000103000031000000200030008c000000200400003900000000040340190000196a0000013d0000085d00c0009c0000085d0100004100000000010c401900000040011002100000085d0030009c0000085d03008041000000c003300210000000000113019f00000883011001c7000100000002001d00020000000c001d2171216c0000040f000000020c000029000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057c0019000019580000613d000000000801034f00000000090c0019000000008a08043c0000000009a90436000000000059004b000019540000c13d000000000006004b000019650000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f00030000000103550000000100200190000019d00000613d00000001020000290000001f01400039000000600110018f000000000bc1001900000000001b004b000000000400003900000001040040390000088400b0009c000019ca0000213d0000000100400190000019ca0000c13d0000004000b0043f0000001f0030008c000019c80000a13d00000000050c0433000000000005004b0000000004000039000000010400c039000000000045004b000019c80000c13d000000000005004b000019810000613d0000000101000039000000000001042d000008fa0400004100000000004b04350000000405b00039000008fc0400004100000000004504350000000004000414000000040020008c000019b80000613d0000085d00b0009c0000085d0100004100000000010b401900000040011002100000085d0040009c0000085d04008041000000c003400210000000000113019f00000883011001c700020000000b001d2171216c0000040f000000020b000029000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b0019000019a50000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b000019a10000c13d000000000006004b000019b20000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000001a010000613d0000001f01400039000000600110018f0000000002b10019000008840020009c000019ca0000213d000000400020043f000000200030008c000019c80000413d00000000010b0433000000000001004b0000000003000039000000010300c039000000000031004b000019c80000c13d000000000001004b0000000001000019000019ee0000613d000000000001042d00000000010000190000217300010430000008d901000041000000000010043f0000004101000039000000040010043f000008830100004100002173000104300000001f0530018f0000085f06300198000000400200043d0000000004620019000019db0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000019d70000c13d000000000005004b000019e80000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f000000000014043500000060013002100000085d0020009c0000085d020080410000004002200210000000000112019f00002173000104300000006401200039000008fd0300004100000000003104350000004401200039000008fe0300004100000000003104350000002401200039000000340300003900000000003104350000087f0100004100000000001204350000000401200039000000200300003900000000003104350000085d0020009c0000085d02008041000000400120021000000880011001c700002173000104300000001f0530018f0000085f06300198000000400200043d000000000462001900001a0c0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00001a080000c13d000000000005004b00001a190000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f000000000014043500000060013002100000085d0020009c0000085d020080410000004002200210000000000121019f000021730001043000040000000000020000000005020019000000000601001900000040076000390000000001070433000000010010008c00001a2b0000613d000000000001004b00001aa30000613d000000010050008c00001aad0000213d00001ab30000c13d000000400b00043d000008820100004100000000001b04350000000402b000390000000001000411000000000012043500000000040004140000000002000410000000040020008c00001a3a0000c13d0000000103000031000000200030008c0000002004000039000000000403401900001a6e0000013d000100000007001d000200000006001d000300000005001d0000085d00b0009c0000085d0300004100000000030b401900000040033002100000085d0040009c0000085d04008041000000c001400210000000000131019f00000883011001c700040000000b001d2171216c0000040f000000040b000029000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b001900001a590000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b00001a550000c13d000000000006004b00001a660000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000001ac70000613d00000003050000290000000206000029000000010700002900000000010004110000001f02400039000000600220018f0000000004b20019000000000024004b00000000020000390000000102004039000008840040009c00001a930000213d000000010020019000001a930000c13d000000400040043f0000001f0030008c00001a910000a13d00000000030b0433000000000003004b0000000002000039000000010200c039000000000023004b00001a910000c13d000000000003004b00001a880000613d000000140100008a00000000011000310000000201100367000000000101043b00000060011002700000000004070433000000200260003900000000030204330000000002060433000008600220019721711ae50000040f000000000001004b00001a990000613d000000000001042d00000000010000190000217300010430000008d901000041000000000010043f0000004101000039000000040010043f00000883010000410000217300010430000000400100043d0000006402100039000008db0300004100000000003204350000004402100039000008dc03000041000000000032043500000024021000390000002a0300003900001abc0000013d000000400100043d0000006402100039000008ff0300004100000000003204350000004402100039000009000300004100000000003204350000002402100039000000230300003900001abc0000013d000008d901000041000000000010043f0000002101000039000000040010043f00000883010000410000217300010430000000400100043d0000006402100039000009010300004100000000003204350000004402100039000009020300004100000000003204350000002402100039000000260300003900000000003204350000087f0200004100000000002104350000000402100039000000200300003900000000003204350000085d0010009c0000085d01008041000000400110021000000880011001c700002173000104300000001f0530018f0000085f06300198000000400200043d000000000462001900001ad20000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00001ace0000c13d000000000005004b00001adf0000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f000000000014043500000060013002100000085d0020009c0000085d020080410000004002200210000000000112019f000021730001043000080000000000020000000006010019000000020050008c00001c910000813d000000000005004b00001aff0000613d000000010050008c000000000100001900001c8e0000c13d000000400c00043d0000002401c000390000000000310435000009060100004100000000001c043500000860066001970000000401c00039000000000061043500000000010004140000086002200197000000040020008c00001b100000c13d0000000103000031000000200030008c000000200b000039000000000b03401900001b430000013d000000400d00043d000009030100004100000000001d04350000000401d00039000000000031043500000000010004140000086005200197000000040050008c00001b960000c13d0000000001000415000000080110008a0000000501100210000000010b0000310000002000b0008c000000200400003900000000040b401900001bcf0000013d000100000006001d000200000004001d0000085d00c0009c0000085d0300004100000000030c401900000040033002100000085d0010009c0000085d01008041000000c001100210000000000131019f0000089a011001c7000300000002001d00040000000c001d2171216c0000040f000000040c000029000000000301001900000060033002700000085d03300197000000200030008c000000200b000039000000000b0340190000001f06b0018f0000002007b0019000000000057c001900001b2f0000613d000000000801034f00000000090c0019000000008a08043c0000000009a90436000000000059004b00001b2b0000c13d000000000006004b00001b3c0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000001c9d0000613d0000000302000029000000020400002900000001060000290000001f01b00039000000600510018f000000000bc5001900000000005b004b000000000100003900000001010040390000088400b0009c00001c970000213d000000010010019000001c970000c13d0000004000b0043f000000200030008c00001c8f0000413d00000000010c0433000000000041004b000000000100001900001c8e0000413d000000000100041000000860011001970000002404b000390000000000140435000009050100004100000000001b04350000000401b0003900000000006104350000000001000414000000040020008c00001b8e0000613d0000085d00b0009c0000085d0300004100000000030b401900000040033002100000085d0010009c0000085d01008041000000c001100210000000000131019f0000089a011001c700040000000b001d2171216c0000040f000000040b000029000000000301001900000060033002700000085d03300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b001900001b7b0000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b00001b770000c13d000000000006004b00001b880000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000001ca90000613d0000001f01400039000000600510018f0000000001b50019000008840010009c00001c970000213d000000400010043f000000200030008c00001c8f0000413d00000000010b043300001c890000013d000200000003001d000400000006001d0000085d00d0009c0000085d0200004100000000020d401900000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f00000883011001c7000300000005001d000000000205001900010000000d001d2171216c0000040f000000010d000029000000000301001900000060033002700000085d0b3001970000002000b0008c000000200400003900000000040b40190000001f0640018f000000200740019000000000057d001900001bb60000613d000000000801034f00000000090d0019000000008a08043c0000000009a90436000000000059004b00001bb20000c13d000000000006004b00001bc30000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f000000000065043500010000000b001f00030000000103550000000001000415000000070110008a000000050110021000000001002001900000000002000019000000000700001900000004060000290000000305000029000000020300002900001c340000613d0000001f02400039000000600220018f000000000cd2001900000000002c004b000000000400003900000001040040390000088400c0009c00001c970000213d000000010040019000001c970000c13d0000004000c0043f0000001f00b0008c00001c8f0000a13d00000000070d0433000008600070009c00001c8f0000213d0000000501100270000000000107001f000009040100004100000000001c04350000000401c0003900000000003104350000000001000415000000060110008a00000005011002100000000004000414000000040050008c00001c240000613d000200000007001d000400000006001d0000085d00c0009c0000085d0100004100000000010c401900000040011002100000085d0040009c0000085d04008041000000c002400210000000000112019f00000883011001c7000300000005001d000000000205001900010000000c001d2171216c0000040f000000010c000029000000000301001900000060033002700000085d0b3001970000002000b0008c000000200400003900000000040b40190000001f0640018f000000200740019000000000057c001900001c0b0000613d000000000801034f00000000090c0019000000008a08043c0000000009a90436000000000059004b00001c070000c13d000000000006004b00001c180000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f000000000065043500010000000b001f0003000000010355000000010020019000001c300000613d0000000001000415000000050110008a00000005011002100000001f02400039000000600220018f0000000406000029000000030500002900000002070000290000000002c20019000008840020009c00001c970000213d000000400020043f0000002000b0008c00001c8f0000413d00000000020c0433000008600020009c00001c8f0000213d0000000501100270000000000102001f00001c340000013d0000000002000019000000040600002900000003050000290000000207000029000000000167013f0000086000100198000000000100001900001c8e0000c13d0000000001000410000000000012004b00001c3d0000c13d0000000101000039000000000001042d0000086001100197000000400300043d00000024023000390000000000120435000009050100004100000000001304350000086001600197000000040230003900000000001204350000000001000414000000040050008c00001c4d0000c13d0000002000b0008c000000200400003900000000040b401900001c7b0000013d0000085d0030009c0000085d02000041000000000203401900000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f0000089a011001c70000000002050019000400000003001d2171216c0000040f000000000301001900000060033002700000085d0b30019700000004030000290000002000b0008c000000200400003900000000040b40190000001f0640018f0000002007400190000000000573001900001c6a0000613d000000000801034f0000000009030019000000008a08043c0000000009a90436000000000059004b00001c660000c13d000000000006004b00001c770000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f000000000065043500010000000b001f0003000000010355000000010020019000001cc70000613d0000001f01400039000000600210018f0000000001320019000000000021004b00000000020000390000000102004039000008840010009c00001c970000213d000000010020019000001c970000c13d000000400010043f0000002000b0008c00001c8f0000413d0000000001030433000000000001004b0000000002000039000000010200c039000000000021004b00001c8f0000c13d000000000001042d00000000010000190000217300010430000008d901000041000000000010043f0000002101000039000000040010043f00000883010000410000217300010430000008d901000041000000000010043f0000004101000039000000040010043f000008830100004100002173000104300000001f0530018f0000085f06300198000000400200043d000000000462001900001cb40000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00001ca40000c13d00001cb40000013d0000001f0530018f0000085f06300198000000400200043d000000000462001900001cb40000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00001cb00000c13d000000000005004b00001cc10000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f000000000014043500000060013002100000085d0020009c0000085d020080410000004002200210000000000121019f00002173000104300000001f05b0018f0000085f06b00198000000400200043d000000000462001900001cd20000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00001cce0000c13d000000000005004b00001cdf0000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001b0021000001cc20000013d00050000000000020000000006030019000000000004004b0000205f0000613d00000860032001970000086009100197000008ad0090009c00001d400000c13d0000000001000410000000000013004b000500000004001d00001d8e0000c13d000300000006001d000008c00100004100000000001004430000086001500197000400000001001d000000040010044300000000010004140000085d0010009c0000085d01008041000000c001100210000008c1011001c700008002020000392171216c0000040f0000000100200190000020680000613d000000000101043b000000000001004b0000000503000029000020660000613d000000400500043d000008ca0100004100000000071504360000000401500039000000000031043500000000010004140000000402000029000000040020008c00001d1e0000613d0000085d0050009c0000085d03000041000000000305401900000040033002100000085d0010009c0000085d01008041000000c001100210000000000131019f00000883011001c7000200000007001d000100000005001d217121670000040f000000010500002900000002070000290000000503000029000000000401001900000060044002700001085d0040019d000300000001035500000001002001900000208e0000613d000008840050009c000020600000213d000000400050043f00000000010004140000000304000029000000040040008c00001e370000c13d00000001010000320000205f0000613d0000001f03100039000008f6033001970000003f03300039000008f6043001970000000003540019000000000043004b00000000040000390000000104004039000008840030009c000020600000213d0000000100400190000020600000c13d000000400030043f0000000000150435000008f6021001980000001f0310018f0000000001270019000000030400036700001e290000613d000000000504034f000000005605043c0000000007670436000000000017004b00001d3b0000c13d00001e290000013d0000086008600197000000000083004b0000205f0000613d000000400200043d0000004405200039000000240620003900000020012000390000000007000410000000000073004b00001dc50000c13d000008c30300004100000000003104350000000000860435000000000045043500000044030000390000000000320435000008940020009c000020600000213d000000800a2000390000004000a0043f0000090800a0009c000020600000213d000000c003200039000000400030043f000000200300003900000000003a0435000000a004200039000008bf03000041000000000034043500000000030204330000000002000414000000040090008c000400000004001d00001f4a0000c13d00000001020000390000000101000031000000000001004b00001f620000613d0000001f04100039000008f6044001970000003f04400039000008f604400197000000400c00043d00000000044c00190000000000c4004b00000000050000390000000105004039000008840040009c000020600000213d0000000100500190000020600000c13d000000400040043f000000000b1c0436000008f6031001980000001f0410018f00000000013b0019000000030500036700001d800000613d000000000605034f00000000070b0019000000006806043c0000000007870436000000000017004b00001d7c0000c13d000000000004004b00001f640000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f000000000031043500001f640000013d0000086002600197000000000012004b00001e0b0000c13d0000000001000416000000000041004b0000209b0000c13d000008c00100004100000000001004430000086001500197000400000001001d000000040010044300000000010004140000085d0010009c0000085d01008041000000c001100210000008c1011001c700008002020000392171216c0000040f0000000100200190000020680000613d000000000101043b000000000001004b0000000503000029000020660000613d000000400200043d000008c701000041000000000012043500000000010004140000000404000029000000040040008c00001dc10000613d0000085d0020009c000300000002001d0000085d02000041000000030200402900000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f000008c8011001c700008009020000390000000005000019217121670000040f000000000301001900000060033002700001085d0030019d000300000001035500000001002001900000000302000029000020d80000613d000008840020009c000020600000213d000000400020043f000000000001042d000008bc070000410000000000710435000000000036043500000000008504350000006403200039000000000043043500000064030000390000000000320435000009070020009c000020600000813d000000a00a2000390000004000a0043f000008be0020009c000020600000213d000000e003200039000000400030043f000000200300003900000000003a0435000000c004200039000008bf03000041000000000034043500000000030204330000000002000414000000040090008c000400000004001d00001f700000c13d00000001020000390000000101000031000000000001004b00001f880000613d0000001f04100039000008f6044001970000003f04400039000008f604400197000000400c00043d00000000044c00190000000000c4004b00000000050000390000000105004039000008840040009c000020600000213d0000000100500190000020600000c13d000000400040043f000000000b1c0436000008f6031001980000001f0410018f00000000013b0019000000030500036700001dfd0000613d000000000605034f00000000070b0019000000006806043c0000000007870436000000000017004b00001df90000c13d000000000004004b00001f8a0000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f000000000031043500001f8a0000013d0000000001000414000000040060008c00001ebe0000c13d00000001010000320000205f0000613d0000001f03100039000008f6033001970000003f03300039000008f604300197000000400300043d0000000004430019000000000034004b00000000050000390000000105004039000008840040009c000020600000213d0000000100500190000020600000c13d000000400040043f0000000005130436000008f6021001980000001f0310018f0000000001250019000000030400036700001e290000613d000000000604034f000000006706043c0000000005750436000000000015004b00001e250000c13d000000000003004b0000205f0000613d000000000224034f0000000303300210000000000401043300000000043401cf000000000434022f000000000202043b0000010003300089000000000232022f00000000023201cf000000000242019f0000000000210435000000000001042d0000085d0010009c0000085d01008041000000c001100210000008c5011001c700008009020000390000000005000019217121670000040f00000004090000290003000000010355000000000301001900000060033002700001085d0030019d0000085d0330019800001e6a0000613d0000001f043000390000085e044001970000003f04400039000008c604400197000000400500043d0000000004450019000000000054004b00000000060000390000000106004039000008840040009c000020600000213d0000000100600190000020600000c13d000000400040043f0000001f0430018f00000000063504360000085f05300198000000000356001900001e5d0000613d000000000701034f000000007807043c0000000006860436000000000036004b00001e590000c13d000000000004004b00001e6a0000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f000000000013043500000001002001900000205f0000c13d000008c0010000410000000000100443000000040090044300000000010004140000085d0010009c0000085d01008041000000c001100210000008c1011001c700008002020000392171216c0000040f0000000100200190000020680000613d000000000101043b000000000001004b0000000503000029000020660000613d000000400600043d000008c701000041000000000516043600000000010004140000000409000029000000040090008c00001e9c0000613d0000085d0060009c0000085d02000041000000000206401900000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f000008c8011001c700008009020000390000000004090019000200000005001d0000000005000019000100000006001d217121670000040f0000000106000029000000020500002900000004090000290000000503000029000000000401001900000060044002700001085d0040019d00030000000103550000000100200190000020fd0000613d000008840060009c000020600000213d000000400060043f00000044016000390000000000310435000008c3010000410000000000150435000000030100002900000860011001970000002402600039000000000012043500000044010000390000000000160435000008940060009c000020600000213d000000800a6000390000004000a0043f000008c40060009c000020600000213d000000c001600039000000400010043f000000200100003900000000001a0435000000a003600039000008bf01000041000000000013043500000000020604330000000001000414000000040090008c000500000003001d00001faa0000c13d0000000102000039000000010100003100001fbf0000013d000400000005001d000300000002001d0000085d0010009c0000085d01008041000000c001100210000008c5011001c70000800902000039000000000304001900000000040600190000000005000019217121670000040f0003000000010355000000000301001900000060033002700001085d0030019d0000085d0330019800001ef40000613d0000001f043000390000085e044001970000003f04400039000008c604400197000000400500043d0000000004450019000000000054004b00000000060000390000000106004039000008840040009c000020600000213d0000000100600190000020600000c13d000000400040043f0000001f0430018f00000000063504360000085f05300198000000000356001900001ee70000613d000000000701034f000000007807043c0000000006860436000000000036004b00001ee30000c13d000000000004004b00001ef40000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000130435000000010020019000000004020000290000205f0000c13d000008c00100004100000000001004430000086001200197000400000001001d000000040010044300000000010004140000085d0010009c0000085d01008041000000c001100210000008c1011001c700008002020000392171216c0000040f0000000100200190000020680000613d000000000101043b000000000001004b0000000503000029000020660000613d000000400600043d000008c701000041000000000516043600000000010004140000000409000029000000040090008c00001f290000613d0000085d0060009c0000085d02000041000000000206401900000040022002100000085d0010009c0000085d01008041000000c001100210000000000121019f000008c8011001c700008009020000390000000004090019000200000005001d0000000005000019000100000006001d217121670000040f0000000106000029000000020500002900000004090000290000000503000029000000000401001900000060044002700001085d0040019d00030000000103550000000100200190000021360000613d000008840060009c000020600000213d000000400060043f00000044016000390000000000310435000008c301000041000000000015043500000024016000390000000302000029000000000021043500000044010000390000000000160435000008940060009c000020600000213d000000800a6000390000004000a0043f000008c40060009c000020600000213d000000c001600039000000400010043f000000200100003900000000001a0435000000a003600039000008bf01000041000000000013043500000000020604330000000001000414000000040090008c000500000003001d00001ff70000c13d000000010200003900000001010000310000200c0000013d0000085d0010009c0000085d0100804100000040011002100000085d0030009c0000085d030080410000006003300210000000000113019f0000085d0020009c0000085d02008041000000c002200210000000000121019f0000000002090019000500000009001d00030000000a001d217121670000040f000000030a0000290000000509000029000000010220018f000300000001035500000060011002700001085d0010019d0000085d01100197000000000001004b00001d660000c13d000000600c000039000000800b00003900000000010c0433000000000002004b000020a80000613d000000000001004b000020530000c13d00050000000c001d00040000000b001d000008c001000041000000000010044300000004009004430000000001000414000020430000013d0000085d0010009c0000085d0100804100000040011002100000085d0030009c0000085d030080410000006003300210000000000113019f0000085d0020009c0000085d02008041000000c002200210000000000121019f0000000002090019000500000009001d00030000000a001d217121670000040f000000030a0000290000000509000029000000010220018f000300000001035500000060011002700001085d0010019d0000085d01100197000000000001004b00001de30000c13d000000600c000039000000800b00003900000000010c0433000000000002004b000020c00000613d000000000001004b00001fa50000c13d00050000000c001d00040000000b001d000008c0010000410000000000100443000000040090044300000000010004140000085d0010009c0000085d01008041000000c001100210000008c1011001c700008002020000392171216c0000040f0000000100200190000020680000613d000000000101043b000000000001004b00000005010000290000207d0000613d0000000001010433000000000001004b000000040b0000290000205f0000613d000008c20010009c000020660000213d0000001f0010008c000020570000213d000020660000013d0000085d0050009c0000085d0500804100000040035002100000085d0020009c0000085d020080410000006002200210000000000232019f0000085d0010009c0000085d01008041000000c001100210000000000112019f000000000209001900030000000a001d217121670000040f000000030a0000290000000409000029000000010220018f000300000001035500000060011002700001085d0010019d0000085d01100197000000000001004b00001fe90000613d0000001f04100039000008f6044001970000003f04400039000008f604400197000000400c00043d00000000044c00190000000000c4004b00000000050000390000000105004039000008840040009c000020600000213d0000000100500190000020600000c13d000000400040043f000000000b1c0436000008f6031001980000001f0410018f00000000013b0019000000030500036700001fdb0000613d000000000605034f00000000070b0019000000006806043c0000000007870436000000000017004b00001fd70000c13d000000000004004b00001feb0000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f000000000031043500001feb0000013d000000600c000039000000800b00003900000000010c0433000000000002004b000020e50000613d000000000001004b000020530000c13d00050000000c001d00040000000b001d000008c001000041000000000010044300000004009004430000000001000414000020430000013d0000085d0050009c0000085d0500804100000040035002100000085d0020009c0000085d020080410000006002200210000000000232019f0000085d0010009c0000085d01008041000000c001100210000000000112019f000000000209001900030000000a001d217121670000040f000000030a0000290000000409000029000000010220018f000300000001035500000060011002700001085d0010019d0000085d01100197000000000001004b000020360000613d0000001f04100039000008f6044001970000003f04400039000008f604400197000000400c00043d00000000044c00190000000000c4004b00000000050000390000000105004039000008840040009c000020600000213d0000000100500190000020600000c13d000000400040043f000000000b1c0436000008f6031001980000001f0410018f00000000013b00190000000305000367000020280000613d000000000605034f00000000070b0019000000006806043c0000000007870436000000000017004b000020240000c13d000000000004004b000020380000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f0000000000310435000020380000013d000000600c000039000000800b00003900000000010c0433000000000002004b0000210a0000613d000000000001004b000020530000c13d00050000000c001d00040000000b001d000008c0010000410000000000100443000000040090044300000000010004140000085d0010009c0000085d01008041000000c001100210000008c1011001c700008002020000392171216c0000040f0000000100200190000020680000613d000000000101043b000000000001004b00000005010000290000207d0000613d0000000001010433000000000001004b000000040b0000290000205f0000613d000008c20010009c000020660000213d000000200010008c000020660000413d00000000010b0433000000000001004b0000000002000039000000010200c039000000000021004b000020660000c13d000000000001004b000020690000613d000000000001042d000008d901000041000000000010043f0000004101000039000000040010043f0000088301000041000021730001043000000000010000190000217300010430000000000001042f000000400100043d0000006402100039000008cb0300004100000000003204350000004402100039000008cc03000041000000000032043500000024021000390000002a0300003900000000003204350000087f0200004100000000002104350000000402100039000000200300003900000000003204350000085d0010009c0000085d01008041000000400110021000000880011001c70000217300010430000000400100043d0000004402100039000008cd03000041000000000032043500000024021000390000001d0300003900000000003204350000087f0200004100000000002104350000000402100039000000200300003900000000003204350000085d0010009c0000085d0100804100000040011002100000088f011001c700002173000104300000085d034001970000001f0530018f0000085f06300198000000400200043d0000000004620019000021420000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000020960000c13d000021420000013d000000400200043d000000240320003900000005040000290000000000430435000008c9030000410000000000320435000000040320003900000000001304350000085d0020009c0000085d0200804100000040012002100000089a011001c70000217300010430000000000001004b0000212e0000c13d000000400100043d0000087f02000041000000000021043500000004021000390000002003000039000000000032043500000000020a0433000000240310003900000000002304350000004403100039000000000002004b0000000407000029000021210000613d000000000400001900000000053400190000000006740019000000000606043300000000006504350000002004400039000000000024004b000020b80000413d000021210000013d000000000001004b0000212e0000c13d000000400100043d0000087f02000041000000000021043500000004021000390000002003000039000000000032043500000000020a0433000000240310003900000000002304350000004403100039000000000002004b0000000407000029000021210000613d000000000400001900000000053400190000000006740019000000000606043300000000006504350000002004400039000000000024004b000020d00000413d000021210000013d0000085d033001970000001f0530018f0000085f06300198000000400200043d0000000004620019000021420000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000020e00000c13d000021420000013d000000000001004b0000212e0000c13d000000400100043d0000087f02000041000000000021043500000004021000390000002003000039000000000032043500000000020a0433000000240310003900000000002304350000004403100039000000000002004b0000000507000029000021210000613d000000000400001900000000053400190000000006740019000000000606043300000000006504350000002004400039000000000024004b000020f50000413d000021210000013d0000085d034001970000001f0530018f0000085f06300198000000400200043d0000000004620019000021420000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000021050000c13d000021420000013d000000000001004b0000212e0000c13d000000400100043d0000087f02000041000000000021043500000004021000390000002003000039000000000032043500000000020a0433000000240310003900000000002304350000004403100039000000000002004b0000000507000029000021210000613d000000000400001900000000053400190000000006740019000000000606043300000000006504350000002004400039000000000024004b0000211a0000413d0000001f04200039000008f6044001970000000002320019000000000002043500000044024000390000085d0020009c0000085d0200804100000060022002100000085d0010009c0000085d010080410000004001100210000000000112019f00002173000104300000085d00b0009c0000085d0b0080410000004002b002100000085d0010009c0000085d010080410000006001100210000000000121019f00002173000104300000085d034001970000001f0530018f0000085f06300198000000400200043d0000000004620019000021420000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000213e0000c13d000000000005004b0000214f0000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f000000000014043500000060013002100000085d0020009c0000085d020080410000004002200210000000000112019f0000217300010430000000000001042f00000000020004140000085d0020009c0000085d02008041000000c0022002100000085d0010009c0000085d010080410000004001100210000000000121019f0000087b011001c700008010020000392171216c0000040f0000000100200190000021650000613d000000000101043b000000000001042d000000000100001900002173000104300000216a002104210000000102000039000000000001042d0000000002000019000000000001042d0000216f002104230000000102000039000000000001042d0000000002000019000000000001042d0000217100000432000021720001042e000021730001043000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000000ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffff1d281c488dae143b6ea4122e80c65059929950b9c32f17fc57be22089d9c3b00000000020000000000000000000000000000008000000100000000000000000000000000000000000000000000000000000000000000000000000000746415b400000000000000000000000000000000000000000000000000000000c5275faf00000000000000000000000000000000000000000000000000000000ea8f9a3b00000000000000000000000000000000000000000000000000000000ea8f9a3c00000000000000000000000000000000000000000000000000000000fb14079d00000000000000000000000000000000000000000000000000000000c5275fb000000000000000000000000000000000000000000000000000000000c78b616c000000000000000000000000000000000000000000000000000000009cfbe2a5000000000000000000000000000000000000000000000000000000009cfbe2a600000000000000000000000000000000000000000000000000000000a851904700000000000000000000000000000000000000000000000000000000746415b5000000000000000000000000000000000000000000000000000000008b49d47e0000000000000000000000000000000000000000000000000000000031654b4c00000000000000000000000000000000000000000000000000000000637102de00000000000000000000000000000000000000000000000000000000637102df00000000000000000000000000000000000000000000000000000000704232dc0000000000000000000000000000000000000000000000000000000031654b4d0000000000000000000000000000000000000000000000000000000048dd77df00000000000000000000000000000000000000000000000000000000119df25e00000000000000000000000000000000000000000000000000000000119df25f00000000000000000000000000000000000000000000000000000000305a67a80000000000000000000000000000000000000000000000000000000007b6775800000000000000000000000000000000000000000000000000000000107a274aa5370dfa5e46a36b8e1214352e211aa04006b977c8fd45a98e6b8c6e230ba00302000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000670000000000000000000000000000000000000000000000000000000000000043757272656e6379206e6f7420617070726f76656420666f72206c697374696e08c379a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084000000000000000000000000a5370dfa5e46a36b8e1214352e211aa04006b977c8fd45a98e6b8c6e230ba001572b6c05000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff2e000000000000000000000000000000000000000000000000000000000000004d61726b6574706c6163653a206e6f74206c697374696e672063726561746f72000000000000000000000000000000000000000000000000fffffffffffffe7f00000000000000000000000000000000ffffffffffffffffffffffffffffffff000000000000000000ff00000000000000000000000000000000000000000000757272656e6379207769746820646966666572656e742070726963652e0000004d61726b6574706c6163653a20617070726f76696e67206c697374696e6720630200000000000000000000000000000000000020000000000000000000000000928cc552fea23b15fbd5c6b45fbfc5935c5b4a6397d7fdab884164648a777cf24d61726b6574706c6163653a20707269636520756e6368616e6765642e0000000000000000000000000000000000000000000064000000000000000000000000a5370dfa5e46a36b8e1214352e211aa04006b977c8fd45a98e6b8c6e230ba0000000000000000000000000000000000000000020000000800000000000000000000000000000000000000000000000000000000000000000fffffffffffffffe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0000000000000000000000000000000000000000000000000ffffffffffffff7f000000000000000000000000000000000000000000000000fffffffffffffdffa5370dfa5e46a36b8e1214352e211aa04006b977c8fd45a98e6b8c6e230ba0020000000000000000000000000000000000000024000000800000000000000000a32fa5b300000000000000000000000000000000000000000000000000000000f94103142c1baabe9ac2b5d1487bf783de9e69cfeea9a72f5c9c94afd7877b8c000000000000000000000000000000000000004400000000000000000000000086d5cf0a6bdc8d859ba3bdc97043337c82a0e609035f378e419298b6a3e00ae6796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d95539132020000020000000000000000000000000000000400000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffff1ef000000000000000000000000000000000000000000000000fffffffffffffeffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000ff0000000000000000000000000000000000000000ffffffffffffffffffffff000000000000000000000000000000000000000000ffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffff00000000000000000000ff00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000200000000000000000000000000000000000180000000000000000000000000ef309e3999c4dd6a4c1e4af6221896b7e5ccf9e7fc4fe5b218b883ce9190d7ad2141535345545f524f4c45000000000000000000000000000000000000000000214c49535445525f524f4c4500000000000000000000000000000000000000006275796572206e6f7420617070726f7665640000000000000000000000000000506179696e6720696e20696e76616c69642063757272656e63792e0000000000556e657870656374656420746f74616c20707269636500000000000000000000000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6e732073656e742e0000000000000000000000000000000000000000000000004d61726b6574706c6163653a20696e76616c6964206e617469766520746f6b6570a0823100000000000000000000000000000000000000000000000000000000dd62ed3e000000000000000000000000000000000000000000000000000000002142414c32300000000000000000000000000000000000000000000000000000746c792062652074686520746f74616c2070726963652e0000000000000000004d61726b6574706c6163653a206d73672e76616c7565206d7573742065786163ffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff0000000000000000000002000000000000000000000000000000000000000000d45573f6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000310ab089e4439a4c15d089f94afb7896ff553aecb10793d0ab882de59d99a32e02000002000000000000000000000000000000440000000000000000000000000000000000000000000000001af20c6b23373350ad464700b5965ce4b0d2ad9423b872dd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff5f000000000000000000000000000000000000000000000000ffffffffffffff1f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65641806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b8302000002000000000000000000000000000000240000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa9059cbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff3f020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003ffffffe0d0e30db000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000400000000000000000000000003e085f9000000000000000000000000000000000000000000000000000000002e1a7d4d000000000000000000000000000000000000000000000000000000006f742073756363656564000000000000000000000000000000000000000000005361666545524332303a204552433230206f7065726174696f6e20646964206e416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000f533b802000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000b88d4fde0000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000a400000000000000000000000000000000000000000000000000000000000000a4000000000000000000000000f242432a0000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000c400000000000000000000000000000000000000000000000000000000000000c400000000000000000000000000000000000000000000000000000000000000010000000100000000000000000200000000000000000000000000000000000080000000000000000000000000f6e03f1c408cfd2d118397c912a4b576683c43b41b015e3d7c212bac0cd0e7c74e487b71000000000000000000000000000000000000000000000000000000006665657320657863656564207468652070726963650000000000000000000000656420746f6b656e732e000000000000000000000000000000000000000000004d61726b6574706c6163653a206e6f74206f776e6572206f7220617070726f766e6f742077697468696e2073616c652077696e646f772e000000000000000000427579696e6720696e76616c6964207175616e746974790000000000000000005265656e7472616e637947756172643a207265656e7472616e742063616c6c0000000000000000000000000000000000000000640000008000000000000000003b557e1ed3b963f7473508fd10c6d7248b593c0dde6acd2a566b92caec84038a642e0000000000000000000000000000000000000000000000000000000000004d61726b6574706c6163653a206c697374696e67206e6f742072657365727665696e76616c69642072616e6765000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000f6e9b23c95dec70093b0abc1cf13bc5d35c9af03743f941904a4ef664e0119fb00000000000000000000000000000000000001800000000000000000000000004d61726b6574706c6163653a20696e76616c6964206c697374696e672e0000004d61726b6574706c6163653a206c697374696e6720657870697265642e000000746f6b656e206973206c69737465642e000000000000000000000000000000004d61726b6574706c6163653a2063616e6e6f74207570646174652077686174206561746572207468616e20737461727454696d657374616d702e0000000000004d61726b6574706c6163653a20656e6454696d657374616d70206e6f742067726976652e000000000000000000000000000000000000000000000000000000004d61726b6574706c6163653a206c697374696e6720616c72656164792061637400000000000000000000000000000000fffffffffffffffffffffffffffff1f06d20617070726f766564207072696365000000000000000000000000000000004d61726b6574706c6163653a20707269636520646966666572656e742066726ffa5081de2649236db88a34c443c2fc130da7324d781893a7fc4a0d6be33a8156616d702e000000000000000000000000000000000000000000000000000000004d61726b6574706c6163653a20696e76616c696420737461727454696d657374ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000fffffffffffffe8001ffc9a700000000000000000000000000000000000000000000000000000000d9b67a260000000000000000000000000000000000000000000000000000000080ac58cd00000000000000000000000000000000000000000000000000000000652045524331313535206f72204552433732312e0000000000000000000000004d61726b6574706c6163653a206c697374656420746f6b656e206d757374206274792e00000000000000000000000000000000000000000000000000000000004d61726b6574706c6163653a206c697374696e67207a65726f207175616e74696e746974792e00000000000000000000000000000000000000000000000000004d61726b6574706c6163653a206c697374696e6720696e76616c6964207175616352211e00000000000000000000000000000000000000000000000000000000081812fc00000000000000000000000000000000000000000000000000000000e985e9c50000000000000000000000000000000000000000000000000000000000fdd58e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff60000000000000000000000000000000000000000000000000ffffffffffffffbf0000000000000000000000000000000000000000a1646970667358221220ea70a1da80d8b53c6effc1860576621c97e99417ac752064247791fe14cdbde9002a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000003439153EB7AF838Ad19d56E1571FBD09333C2809
-----Decoded View---------------
Arg [0] : _nativeTokenWrapper (address): 0x3439153EB7AF838Ad19d56E1571FBD09333C2809
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003439153EB7AF838Ad19d56E1571FBD09333C2809
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.