Address Details
contract
0x53B96DA3d838B9D7C9066eaDC21d50B76253e5b8
- Contract Name
- RandomMarketPlaceV2
- Creator
- 0x8b2f36–66963a at 0x4462dc–31a95a
- Balance
- 0 CELO ( )
- Locked CELO Balance
- 0.00 CELO
- Voting CELO Balance
- 0.00 CELO
- Pending Unlocked Gold
- 0.00 CELO
- Tokens
-
Fetching tokens...
- Transactions
- 0 Transactions
- Transfers
- 0 Transfers
- Gas Used
- Fetching gas used...
- Last Balance Update
- 16429843
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- RandomMarketPlaceV2
- Optimization enabled
- false
- Compiler version
- v0.8.3+commit.8d00100c
- EVM Version
- istanbul
- Verified at
- 2022-12-07T22:36:15.044296Z
contracts/MarketPlace/RandomMarketPlaceV2.sol
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.8.3; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "hardhat/console.sol"; import "./InterfaceV2.sol"; import "./MarketPlaceFeeAPI.sol"; import "./MarketPlaceNFTAPI.sol"; import {ERC1155Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol"; import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; contract RandomMarketPlaceV2 is InterfaceV2, MarketPlaceFeeAPI, MarketPlaceNFTAPI, OwnableUpgradeable, ReentrancyGuard, ERC1155Upgradeable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableSet for EnumerableSet.AddressSet; struct TokenBid { EnumerableSet.AddressSet bidders; mapping(address => Bid) bids; } bool private _isListingAndBidEnabled = true; mapping(uint256 => Listing) private _tokenListings; EnumerableSet.UintSet private _tokenIdWithListing; mapping(uint256 => TokenBid) private _tokenBids; EnumerableSet.UintSet private _tokenIdWithBid; EnumerableSet.AddressSet private _emptyBidders; uint256[] private _tempTokenIdStorage; // Storage to assist cleaning address[] private _tempBidderStorage; // Storage to assist cleaning bids constructor() public { } function initializeWithERC721( string memory erc721Name_, address _erc721Address, address _paymentTokenAddress, address _owner ) public initializer { __ERC1155_init(""); initializeNFTWithERC721(erc721Name_, _erc721Address, _paymentTokenAddress); initializeFee(_owner); _isListingAndBidEnabled = true; } function initializeWithERC1155( string memory erc1155Name_, address _erc1155Address, address _paymentTokenAddress, address _owner ) public initializer { __ERC1155_init(""); initializeNFTWithERC1155(erc1155Name_, _erc1155Address, _paymentTokenAddress); initializeFee(_owner); _isListingAndBidEnabled = true; } modifier onlyMarketplaceOpen() { require(_isListingAndBidEnabled, "Listing and bid are not enabled"); _; } function _isListingValid(Listing memory listing) private view returns (bool) { if ( _isTokenOwner(listing.tokenId, listing.seller) && (_isTokenApproved(listing.tokenId) || _isAllTokenApproved(listing.seller)) && listing.listingPrice > 0) { return true; } } function getTokenListing(uint256 tokenId) public view returns (Listing memory) { Listing memory listing = _tokenListings[tokenId]; if (_isListingValid(listing)) { return listing; } } function getTokenListings(uint256 from, uint256 size) public view returns (Listing[] memory) { if (from < _tokenIdWithListing.length() && size > 0) { uint256 querySize = size; if ((from + size) > _tokenIdWithListing.length()) { querySize = _tokenIdWithListing.length() - from; } Listing[] memory listings = new Listing[](querySize); for (uint256 i = 0; i < querySize; i++) { Listing memory listing = _tokenListings[_tokenIdWithListing.at(i + from)]; if (_isListingValid(listing)) { listings[i] = listing; } } return listings; } } function getAllTokenListings() external view returns (Listing[] memory) { return getTokenListings(0, _tokenIdWithListing.length()); } function _delistToken(uint256 tokenId) private { if (_tokenIdWithListing.contains(tokenId)) { delete _tokenListings[tokenId]; _tokenIdWithListing.remove(tokenId); } } /** * @dev List token for sale * @param tokenId erc721 token Id * @param value min price to sell the token */ function listToken( address sender, uint256 tokenId, uint256 value ) external onlyMarketplaceOpen returns ( address, uint256 ) { console.log("sender:", sender); require(value > 0, "Please list for more than 0 or use the transfer function"); require(_isTokenOwner(tokenId, sender), "Only token owner can list token"); require( _isTokenApproved(tokenId) || _isAllTokenApproved(sender), "This token is not allowed to transfer by this contract" ); _tokenListings[tokenId] = Listing(tokenId, value, sender); _tokenIdWithListing.add(tokenId); return ( sender, value); } /** * @dev change price for already listed token.l * Must have a valid listing * msg.sender must not the owner of token */ function changePrice(address sender,uint256 tokenId, uint256 newPrice) external nonReentrant { Listing memory listing = getTokenListing(tokenId); // Get valid listing require(_isTokenOwner(tokenId, sender), "Only token owner can change price of token"); require(listing.seller != address(0), "Token is not for sale"); // Listing not valid require( newPrice >= 0, "The value send is below zero" ); _tokenListings[tokenId].listingPrice = newPrice; } /** * @dev See {INFTKEYMarketPlaceV1-delistToken}. * msg.sender must be the seller of the listing record */ function delistToken(address sender, uint256 tokenId) external { require(_tokenListings[tokenId].seller == sender, "Only token seller can delist token"); _delistToken(tokenId); } /** * @dev See {INFTKEYMarketPlaceV1-buyToken}. * Must have a valid listing * msg.sender must not the owner of token * msg.value must be at least sell price plus fees */ function buyTokenPrepare(address sender, uint256 tokenId, uint256 value) external onlyDev returns ( address, address, address, address ) { Listing memory listing = getTokenListing(tokenId); // Get valid listing require(listing.seller != address(0), "Token is not for sale"); // Listing not valid require(!_isTokenOwner(tokenId, sender), "Token owner can't buy their own token"); require( value >= listing.listingPrice, "The value send is below sale price plus fees" ); return ( listing.seller, maketPlaceFeeAddress, nftCreaterAddress, nftProducerAddress ); } function buyTokenComplete(address sender, uint256 tokenId) external onlyDev { Listing memory listing = getTokenListing(tokenId); // Get valid listing nftTransferFrom(listing.seller, sender, tokenId); // Remove token listing _delistToken(tokenId); _removeBidOfBidder(tokenId, sender); } /** * @dev Check if an bid is valid or not * Bidder must not be the owner * Bidder must give the contract allowance same or more than bid price * Bid price must > 0 * Bid mustn't been expired */ function _isBidValid(Bid memory bid) private view returns (bool) { if ( !_isTokenOwner(bid.tokenId, bid.bidder) && bid.bidPrice > 0) { return true; } } /** * @dev See {INFTKEYMarketPlaceV1-getBidderTokenBid}. */ function getBidderTokenBid(uint256 tokenId, address bidder) public view returns (Bid memory) { Bid memory bid = _tokenBids[tokenId].bids[bidder]; if (_isBidValid(bid)) { return bid; } } /** * @dev See {INFTKEYMarketPlaceV1-getTokenBids}. */ function getTokenBids(uint256 tokenId) external view returns (Bid[] memory) { Bid[] memory bids = new Bid[](_tokenBids[tokenId].bidders.length()); for (uint256 i; i < _tokenBids[tokenId].bidders.length(); i++) { address bidder = _tokenBids[tokenId].bidders.at(i); Bid memory bid = _tokenBids[tokenId].bids[bidder]; if (_isBidValid(bid)) { bids[i] = bid; } } return bids; } /** * @dev See {INFTKEYMarketPlaceV1-getTokenHighestBid}. */ function getTokenHighestBid(uint256 tokenId) public view returns (Bid memory) { Bid memory highestBid = Bid(tokenId, 0, address(0)); for (uint256 i; i < _tokenBids[tokenId].bidders.length(); i++) { address bidder = _tokenBids[tokenId].bidders.at(i); Bid memory bid = _tokenBids[tokenId].bids[bidder]; if (_isBidValid(bid) && bid.bidPrice > highestBid.bidPrice) { highestBid = bid; } } return highestBid; } /** * @dev See {INFTKEYMarketPlaceV1-getTokenHighestBids}. */ function getTokenHighestBids(uint256 from, uint256 size) public view returns (Bid[] memory) { if (from < _tokenIdWithBid.length() && size > 0) { uint256 querySize = size; if ((from + size) > _tokenIdWithBid.length()) { querySize = _tokenIdWithBid.length() - from; } Bid[] memory highestBids = new Bid[](querySize); for (uint256 i = 0; i < querySize; i++) { highestBids[i] = getTokenHighestBid(_tokenIdWithBid.at(i + from)); } return highestBids; } } /** * @dev See {INFTKEYMarketPlaceV1-getAllTokenHighestBids}. */ function getAllTokenHighestBids() external view returns (Bid[] memory) { return getTokenHighestBids(0, _tokenIdWithBid.length()); } /** * @dev remove a bid of a bidder * @param tokenId erc721 token Id * @param bidder bidder address */ function _removeBidOfBidder(uint256 tokenId, address bidder) private { if (_tokenBids[tokenId].bidders.contains(bidder)) { // Step 1: delete the bid and the address delete _tokenBids[tokenId].bids[bidder]; _tokenBids[tokenId].bidders.remove(bidder); // Step 2: if no bid left if (_tokenBids[tokenId].bidders.length() == 0) { _tokenIdWithBid.remove(tokenId); } } } /** * @dev See {INFTKEYMarketPlaceV1-enterBidForToken}. * People can only enter bid if bid is allowed * The timestamp set needs to be in the allowed range * bid price > 0 * must not be token owner * must allow this contract to spend enough payment token */ function enterBidForToken( address sender, uint256 tokenId, uint256 bidPrice ) external onlyMarketplaceOpen { require(bidPrice > 0, "Please bid for more than 0"); require(!_isTokenOwner(tokenId, sender), "This Token belongs to this address"); Bid memory bid = Bid(tokenId, bidPrice, sender); if (!_tokenIdWithBid.contains(tokenId)) { _tokenIdWithBid.add(tokenId); } _tokenBids[tokenId].bidders.add(sender); _tokenBids[tokenId].bids[sender] = bid; } /** * @dev See {INFTKEYMarketPlaceV1-acceptBidForToken}. * Must be owner of this token * Must have approved this contract to transfer token * Must have a valid existing bid that matches the bidder address */ /** * @dev See {INFTKEYMarketPlaceV1-withdrawBidForToken}. * There must be a bid exists * remove this bid record */ function withdrawBidForToken(address sender, uint256 tokenId) external returns (address, uint256 bidPrice) { Bid memory bid = _tokenBids[tokenId].bids[sender]; require(bid.bidder == sender, "This address doesn't have bid on this token"); _removeBidOfBidder(tokenId, sender); return (bid.bidder, bid.bidPrice); } function acceptBidForTokenPrepare(address sender, uint256 tokenId, address bidder) external onlyDev returns ( address, address, address, uint256 ) { require(_isTokenOwner(tokenId, sender), "Only token owner can accept bid of token"); require( _isTokenApproved(tokenId) || _isAllTokenApproved(sender), "The token is not approved to transfer by the contract" ); Bid memory existingBid = getBidderTokenBid(tokenId, bidder); require( existingBid.bidPrice > 0 && existingBid.bidder == bidder, "This token doesn't have a matching bid" ); return ( maketPlaceFeeAddress, nftCreaterAddress, nftProducerAddress, existingBid.bidPrice ); } function acceptBidForTokenComplete(address sender, uint256 tokenId, address bidder) external onlyDev{ nftTransferFrom(sender, bidder, tokenId); // Remove token listing _delistToken(tokenId); _removeBidOfBidder(tokenId, bidder); } /** * @dev See {INFTKEYMarketPlaceV1-getInvalidListingCount}. */ function getInvalidListingCount() external view returns (uint256) { uint256 count = 0; for (uint256 i = 0; i < _tokenIdWithListing.length(); i++) { if (!_isListingValid(_tokenListings[_tokenIdWithListing.at(i)])) { count = count.add(1); } } return count; } /** * @dev Count how many bid records of a token are invalid now */ function _getInvalidBidOfTokenCount(uint256 tokenId) private view returns (uint256) { uint256 count = 0; for (uint256 i = 0; i < _tokenBids[tokenId].bidders.length(); i++) { address bidder = _tokenBids[tokenId].bidders.at(i); Bid memory bid = _tokenBids[tokenId].bids[bidder]; if (!_isBidValid(bid)) { count = count.add(1); } } return count; } /** * @dev See {INFTKEYMarketPlaceV1-getInvalidBidCount}. */ function getInvalidBidCount() external view returns (uint256) { uint256 count = 0; for (uint256 i = 0; i < _tokenIdWithBid.length(); i++) { count = count.add(_getInvalidBidOfTokenCount(_tokenIdWithBid.at(i))); } return count; } /** * @dev See {INFTKEYMarketPlaceV1-cleanAllInvalidListings}. */ function cleanAllInvalidListings() external returns(uint256[] memory){ for (uint256 i = 0; i < _tokenIdWithListing.length(); i++) { uint256 tokenId = _tokenIdWithListing.at(i); if (!_isListingValid(_tokenListings[tokenId])) { _tempTokenIdStorage.push(tokenId); } } for (uint256 i = 0; i < _tempTokenIdStorage.length; i++) { _delistToken(_tempTokenIdStorage[i]); } return (_tempTokenIdStorage); } function deleteTempTokenIdStorage() external onlyDev { delete _tempTokenIdStorage; } /** * @dev remove invalid bids of a token * @param tokenId erc721 token Id */ function _cleanInvalidBidsOfToken(uint256 tokenId) private { for (uint256 i = 0; i < _tokenBids[tokenId].bidders.length(); i++) { address bidder = _tokenBids[tokenId].bidders.at(i); Bid memory bid = _tokenBids[tokenId].bids[bidder]; if (!_isBidValid(bid)) { _tempBidderStorage.push(_tokenBids[tokenId].bidders.at(i)); } } for (uint256 i = 0; i < _tempBidderStorage.length; i++) { address bidder = _tempBidderStorage[i]; _removeBidOfBidder(tokenId, bidder); } delete _tempBidderStorage; } /** * @dev See {INFTKEYMarketPlaceV1-cleanAllInvalidBids}. */ function cleanAllInvalidBids() external returns(uint256[] memory){ for (uint256 i = 0; i < _tokenIdWithBid.length(); i++) { uint256 tokenId = _tokenIdWithBid.at(i); uint256 invalidCount = _getInvalidBidOfTokenCount(tokenId); if (invalidCount > 0) { _tempTokenIdStorage.push(tokenId); } } for (uint256 i = 0; i < _tempTokenIdStorage.length; i++) { _cleanInvalidBidsOfToken(_tempTokenIdStorage[i]); } return (_tempTokenIdStorage); } /** * @dev See {INFTKEYMarketPlaceV1-isListingAndBidEnabled}. */ function isListingAndBidEnabled() external view returns (bool) { return _isListingAndBidEnabled; } /** * @dev Enable to disable Bids and Listing */ function changeMarketplaceStatus(bool enabled) external onlyDev { _isListingAndBidEnabled = enabled; } }
/_openzeppelin/contracts/security/ReentrancyGuard.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
/_openzeppelin/contracts/token/ERC1155/IERC1155.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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; }
/_openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.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); }
/_openzeppelin/contracts/token/ERC721/IERC721.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
/_openzeppelin/contracts/utils/Address.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return 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); } } }
/_openzeppelin/contracts/utils/Strings.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
/_openzeppelin/contracts/utils/introspection/IERC165.sol
// 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); }
/_openzeppelin/contracts/utils/math/Math.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
/_openzeppelin/contracts/utils/math/SafeMath.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
/_openzeppelin/contracts/utils/structs/EnumerableSet.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
/_openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
/_openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Internal function that returns the initialized version. Returns `_initialized` */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Internal function that returns the initialized version. Returns `_initializing` */ function _isInitializing() internal view returns (bool) { return _initializing; } }
/_openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155Upgradeable.sol"; import "./IERC1155ReceiverUpgradeable.sol"; import "./extensions/IERC1155MetadataURIUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC1155Upgradeable, IERC1155MetadataURIUpgradeable { using AddressUpgradeable for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ function __ERC1155_init(string memory uri_) internal onlyInitializing { __ERC1155_init_unchained(uri_); } function __ERC1155_init_unchained(string memory uri_) internal onlyInitializing { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC1155Upgradeable).interfaceId || interfaceId == type(IERC1155MetadataURIUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: address zero is not a valid owner"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner or approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner or approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `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 memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - 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[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * 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 _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `ids` and `amounts` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155ReceiverUpgradeable(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155ReceiverUpgradeable.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non-ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155ReceiverUpgradeable(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155ReceiverUpgradeable.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non-ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[47] private __gap; }
/_openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155ReceiverUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155ReceiverUpgradeable is IERC165Upgradeable { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
/_openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155Upgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.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 IERC1155Upgradeable is IERC165Upgradeable { /** * @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; }
/_openzeppelin/contracts-upgradeable/token/ERC1155/extensions/IERC1155MetadataURIUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155Upgradeable.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURIUpgradeable is IERC1155Upgradeable { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
/_openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return 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 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); } } }
/_openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
/_openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
/_openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol
// 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 IERC165Upgradeable { /** * @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); }
/contracts/MarketPlace/InterfaceV2.sol
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.8.3; pragma experimental ABIEncoderV2; interface InterfaceV2 { struct Bid { uint256 tokenId; uint256 bidPrice; address bidder; } struct Listing { uint256 tokenId; uint256 listingPrice; address seller; } event TokenListed( uint256 indexed tokenId, address indexed fromAddress, uint256 minValue, string nft); event TokenDelisted(uint256 indexed tokenId, address indexed fromAddress, string nft); event TokenBidEntered(uint256 indexed tokenId, address indexed fromAddress, uint256 value, string nft); event TokenBidWithdrawn(uint256 indexed tokenId, address indexed fromAddress, uint256 value, string nft); event TokenBought( uint256 indexed tokenId, address indexed fromAddress, address indexed toAddress, uint256 total, uint256 value, uint256 fees, string nft ); event TokenBidAccepted( uint256 indexed tokenId, address indexed owner, address indexed bidder, uint256 total, uint256 value, uint256 fees, string nft ); event TokenTransfered( uint256 indexed tokenId, address indexed from, address indexed to, uint256 total, string nft ); event TokenFeeChanged( address nftAddress, string nft ); }
/contracts/MarketPlace/MarketPlaceFeeAPI.sol
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.8.3; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract MarketPlaceFeeAPI { using SafeMath for uint256; uint256 private _baseFeeTokenSeller; uint256 private _baseFeeTokenProducer; uint256 private _baseFeeTokenCreater; uint256 private _baseFeeTokenDev; uint256 private _baseFeeFraction; uint256 private _baseFeeTokenBase; address public maketPlaceFeeAddress; address public nftCreaterAddress; address public nftProducerAddress; function initializeFee( address _owner ) public { _baseFeeTokenSeller = 975; _baseFeeTokenProducer = 0; _baseFeeTokenCreater = 0; _baseFeeTokenDev = 25; _baseFeeFraction = 25; _baseFeeTokenBase = 1000; maketPlaceFeeAddress = _owner; } function calculateSellerFee(uint256 value) public returns(uint256){ return value.sub(value.mul(_baseFeeFraction).div(_baseFeeTokenBase)); } function calculateDevFee(uint256 value) public returns(uint256){ return value.mul(_baseFeeTokenDev).div(_baseFeeTokenBase); } function calculateCreaterFee(uint256 value) public returns(uint256){ return value.mul(_baseFeeTokenCreater).div(_baseFeeTokenBase); } function calculateProducerFee(uint256 value) public returns(uint256){ return value.mul(_baseFeeTokenProducer).div(_baseFeeTokenBase); } function serviceFee(address nftAddress) external view returns (uint256, uint256, uint256, uint256, uint256, uint256) { require(_baseFeeTokenBase == 1000, "This token is not registed"); return ( _baseFeeTokenSeller, _baseFeeTokenProducer, _baseFeeTokenCreater, _baseFeeTokenDev, _baseFeeFraction, _baseFeeTokenBase ); } function setNFTFees( address _nftAddress, uint256 _feeCreater, uint256 _feeProducer ) external { require( _feeCreater == 0 || nftCreaterAddress != address(0), "This token don't set creater address" ); require( _feeProducer == 0 || nftProducerAddress != address(0), "This token don't set producer address" ); _baseFeeTokenCreater = _feeCreater; _baseFeeTokenProducer = _feeProducer; _baseFeeTokenSeller = _baseFeeTokenBase - _baseFeeTokenCreater - _baseFeeTokenDev - _baseFeeTokenProducer; _baseFeeFraction = _baseFeeTokenCreater + _baseFeeTokenDev + _baseFeeTokenProducer; } function setMaketPlaceAddressAndDevFee( address _nftAddress, address _maketPlaceFeeAddress, uint256 _maketPlaceFeePercentage) external { require( _maketPlaceFeePercentage > 0 && _maketPlaceFeePercentage <= 1000, "Allowed percentage range is 1 to 1000" ); maketPlaceFeeAddress = _maketPlaceFeeAddress; require( 1000 == _baseFeeTokenBase, "This token is not registed" ); _baseFeeTokenDev = _maketPlaceFeePercentage; _baseFeeTokenSeller = _baseFeeTokenBase - _baseFeeTokenDev - _baseFeeTokenCreater - _baseFeeTokenProducer; _baseFeeFraction = _baseFeeTokenDev + _baseFeeTokenCreater - _baseFeeTokenProducer; } function setTokenCreaterAddress( address _nftAddress, address _tokenCreaterAddress) external { require(_tokenCreaterAddress != address(0), "Can't set to address 0x0"); require( 1000 == _baseFeeTokenBase, "This token is not registed" ); nftCreaterAddress = _tokenCreaterAddress; } function setTokenProducerAddress( address _nftAddress, address _tokenProducerAddress) external { require(_tokenProducerAddress != address(0), "Can't set to address 0x0"); require( 1000 == _baseFeeTokenBase, "This token is not registed" ); nftProducerAddress = _tokenProducerAddress; } function changeTokenCreaterAddress( address _nftAddress, address _tokenCreaterAddress) external { nftCreaterAddress = _tokenCreaterAddress; } }
/contracts/MarketPlace/MarketPlaceNFTAPI.sol
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.8.3; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "hardhat/console.sol"; contract MarketPlaceNFTAPI { address public dev; // developer address string private _erc721Name; IERC721 private _erc721; string private _erc1155Name; IERC1155 private _erc1155; address private _selectedNftAddress; address private _selectedERC20Address; IERC20 private _paymentToken; bool private isSupport1555; modifier onlyDev() { require(msg.sender == dev, "auction: wrong developer"); _; } function changeDev(address _newDev) public onlyDev { dev = _newDev; } function initializeNFTWithERC721( string memory erc721Name_, address _erc721Address, address _paymentTokenAddress ) public { _erc721Name = erc721Name_; _erc721 = IERC721(_erc721Address); _selectedNftAddress = _erc721Address; _paymentToken = IERC20(_paymentTokenAddress); _selectedERC20Address = _paymentTokenAddress; dev = msg.sender; isSupport1555 = false; } function initializeNFTWithERC1155( string memory erc1155Name_, address _erc1155Address, address _paymentTokenAddress ) public { _erc1155Name = erc1155Name_; _erc1155 = IERC1155(_erc1155Address); _selectedNftAddress = _erc1155Address; _paymentToken = IERC20(_paymentTokenAddress); _selectedERC20Address = _paymentTokenAddress; dev = msg.sender; isSupport1555 = true; } /** * @dev check if the account is the owner of this erc721 token */ function _isTokenOwner(uint256 tokenId, address account) public view returns (bool) { if(isSupport1555 == false){ try _erc721.ownerOf(tokenId) returns (address tokenOwner) { return tokenOwner == account; } catch { return false; } }else{ return _erc1155.balanceOf(account, tokenId) != 0; } } /** * @dev check if this contract has approved to transfer this erc721 token */ function _isTokenApproved(uint256 tokenId) public view returns (bool) { if(isSupport1555 == false){ try _erc721.getApproved(tokenId) returns (address tokenOperator) { return tokenOperator == address(this); } catch { return false; } }else{ return true; } } /** * @dev check if this contract has approved to all of this owner's erc721 tokens */ function _isAllTokenApproved(address owner) public view returns (bool) { if(isSupport1555 == false){ return _erc721.isApprovedForAll(owner, address(this)); }else{ return _erc1155.isApprovedForAll(owner, address(this)); } } /** * @dev See {INFTKEYMarketPlaceV1-tokenAddress}. */ function nftAddress() external view returns (address) { return _selectedNftAddress; } /** * @dev See {INFTKEYMarketPlaceV1-paymentTokenAddress}. */ function paymentTokenAddress() external view returns (address) { return _selectedERC20Address; } /** * @dev Transfer token to Other * Must be owner of this token * Must have approved this contract to transfer token * Must have a valid existing bid that matches the bidder address */ function transfer( address sender, address to, uint256 tokenId ) external onlyDev { require(_isTokenOwner(tokenId, sender), "Only token owner can accept bid of token"); require( _isTokenApproved(tokenId) || _isAllTokenApproved(sender), "The token is not approved to transfer by the contract" ); if(isSupport1555 == false){ _erc721.safeTransferFrom(sender, to, tokenId); }else{ bytes memory data = '0x0'; _erc1155.safeTransferFrom(sender, to, tokenId, 1, data); } } function nftTransferFrom( address sender, address to, uint256 tokenId ) public onlyDev { if(isSupport1555 == false){ _erc721.safeTransferFrom(sender, to, tokenId); }else{ bytes memory data = '0x0'; _erc1155.safeTransferFrom(sender, to, tokenId, 1, data); } } }
/hardhat/console.sol
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int256)", p0)); } function logUint(uint256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint256 p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256)", p0, p1)); } function log(uint256 p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string)", p0, p1)); } function log(uint256 p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool)", p0, p1)); } function log(uint256 p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address)", p0, p1)); } function log(string memory p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint256 p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address)", p0, p1, p2)); } function log(uint256 p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256)", p0, p1, p2)); } function log(uint256 p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string)", p0, p1, p2)); } function log(uint256 p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool)", p0, p1, p2)); } function log(uint256 p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address)", p0, p1, p2)); } function log(uint256 p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256)", p0, p1, p2)); } function log(uint256 p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string)", p0, p1, p2)); } function log(uint256 p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool)", p0, p1, p2)); } function log(uint256 p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address)", p0, p1, p2)); } function log(uint256 p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256)", p0, p1, p2)); } function log(uint256 p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string)", p0, p1, p2)); } function log(uint256 p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool)", p0, p1, p2)); } function log(uint256 p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address)", p0, p1, p2)); } function log(string memory p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256)", p0, p1, p2)); } function log(string memory p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string)", p0, p1, p2)); } function log(string memory p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool)", p0, p1, p2)); } function log(string memory p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256)", p0, p1, p2)); } function log(bool p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string)", p0, p1, p2)); } function log(bool p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool)", p0, p1, p2)); } function log(bool p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256)", p0, p1, p2)); } function log(address p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string)", p0, p1, p2)); } function log(address p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool)", p0, p1, p2)); } function log(address p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"ApprovalForAll","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"bool","name":"approved","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"Initialized","inputs":[{"type":"uint8","name":"version","internalType":"uint8","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"TokenBidAccepted","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"bidder","internalType":"address","indexed":true},{"type":"uint256","name":"total","internalType":"uint256","indexed":false},{"type":"uint256","name":"value","internalType":"uint256","indexed":false},{"type":"uint256","name":"fees","internalType":"uint256","indexed":false},{"type":"string","name":"nft","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"TokenBidEntered","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"address","name":"fromAddress","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false},{"type":"string","name":"nft","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"TokenBidWithdrawn","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"address","name":"fromAddress","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false},{"type":"string","name":"nft","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"TokenBought","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"address","name":"fromAddress","internalType":"address","indexed":true},{"type":"address","name":"toAddress","internalType":"address","indexed":true},{"type":"uint256","name":"total","internalType":"uint256","indexed":false},{"type":"uint256","name":"value","internalType":"uint256","indexed":false},{"type":"uint256","name":"fees","internalType":"uint256","indexed":false},{"type":"string","name":"nft","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"TokenDelisted","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"address","name":"fromAddress","internalType":"address","indexed":true},{"type":"string","name":"nft","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"TokenFeeChanged","inputs":[{"type":"address","name":"nftAddress","internalType":"address","indexed":false},{"type":"string","name":"nft","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"TokenListed","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"address","name":"fromAddress","internalType":"address","indexed":true},{"type":"uint256","name":"minValue","internalType":"uint256","indexed":false},{"type":"string","name":"nft","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"TokenTransfered","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"total","internalType":"uint256","indexed":false},{"type":"string","name":"nft","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"TransferBatch","inputs":[{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256[]","name":"ids","internalType":"uint256[]","indexed":false},{"type":"uint256[]","name":"values","internalType":"uint256[]","indexed":false}],"anonymous":false},{"type":"event","name":"TransferSingle","inputs":[{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"id","internalType":"uint256","indexed":false},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"URI","inputs":[{"type":"string","name":"value","internalType":"string","indexed":false},{"type":"uint256","name":"id","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"_isAllTokenApproved","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"_isTokenApproved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"_isTokenOwner","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"acceptBidForTokenComplete","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"bidder","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"acceptBidForTokenPrepare","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"bidder","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"id","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"}],"name":"balanceOfBatch","inputs":[{"type":"address[]","name":"accounts","internalType":"address[]"},{"type":"uint256[]","name":"ids","internalType":"uint256[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"buyTokenComplete","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"}],"name":"buyTokenPrepare","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"calculateCreaterFee","inputs":[{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"calculateDevFee","inputs":[{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"calculateProducerFee","inputs":[{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"calculateSellerFee","inputs":[{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"changeDev","inputs":[{"type":"address","name":"_newDev","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"changeMarketplaceStatus","inputs":[{"type":"bool","name":"enabled","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"changePrice","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"newPrice","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"changeTokenCreaterAddress","inputs":[{"type":"address","name":"_nftAddress","internalType":"address"},{"type":"address","name":"_tokenCreaterAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"}],"name":"cleanAllInvalidBids","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"}],"name":"cleanAllInvalidListings","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deleteTempTokenIdStorage","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"delistToken","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"dev","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"enterBidForToken","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"bidPrice","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct InterfaceV2.Bid[]","components":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"bidPrice","internalType":"uint256"},{"type":"address","name":"bidder","internalType":"address"}]}],"name":"getAllTokenHighestBids","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct InterfaceV2.Listing[]","components":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"listingPrice","internalType":"uint256"},{"type":"address","name":"seller","internalType":"address"}]}],"name":"getAllTokenListings","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple","name":"","internalType":"struct InterfaceV2.Bid","components":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"bidPrice","internalType":"uint256"},{"type":"address","name":"bidder","internalType":"address"}]}],"name":"getBidderTokenBid","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"bidder","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getInvalidBidCount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getInvalidListingCount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct InterfaceV2.Bid[]","components":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"bidPrice","internalType":"uint256"},{"type":"address","name":"bidder","internalType":"address"}]}],"name":"getTokenBids","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple","name":"","internalType":"struct InterfaceV2.Bid","components":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"bidPrice","internalType":"uint256"},{"type":"address","name":"bidder","internalType":"address"}]}],"name":"getTokenHighestBid","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct InterfaceV2.Bid[]","components":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"bidPrice","internalType":"uint256"},{"type":"address","name":"bidder","internalType":"address"}]}],"name":"getTokenHighestBids","inputs":[{"type":"uint256","name":"from","internalType":"uint256"},{"type":"uint256","name":"size","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple","name":"","internalType":"struct InterfaceV2.Listing","components":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"listingPrice","internalType":"uint256"},{"type":"address","name":"seller","internalType":"address"}]}],"name":"getTokenListing","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct InterfaceV2.Listing[]","components":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"listingPrice","internalType":"uint256"},{"type":"address","name":"seller","internalType":"address"}]}],"name":"getTokenListings","inputs":[{"type":"uint256","name":"from","internalType":"uint256"},{"type":"uint256","name":"size","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initializeFee","inputs":[{"type":"address","name":"_owner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initializeNFTWithERC1155","inputs":[{"type":"string","name":"erc1155Name_","internalType":"string"},{"type":"address","name":"_erc1155Address","internalType":"address"},{"type":"address","name":"_paymentTokenAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initializeNFTWithERC721","inputs":[{"type":"string","name":"erc721Name_","internalType":"string"},{"type":"address","name":"_erc721Address","internalType":"address"},{"type":"address","name":"_paymentTokenAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initializeWithERC1155","inputs":[{"type":"string","name":"erc1155Name_","internalType":"string"},{"type":"address","name":"_erc1155Address","internalType":"address"},{"type":"address","name":"_paymentTokenAddress","internalType":"address"},{"type":"address","name":"_owner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initializeWithERC721","inputs":[{"type":"string","name":"erc721Name_","internalType":"string"},{"type":"address","name":"_erc721Address","internalType":"address"},{"type":"address","name":"_paymentTokenAddress","internalType":"address"},{"type":"address","name":"_owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isApprovedForAll","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isListingAndBidEnabled","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"listToken","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"maketPlaceFeeAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"nftAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"nftCreaterAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"nftProducerAddress","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"nftTransferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"paymentTokenAddress","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeBatchTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256[]","name":"ids","internalType":"uint256[]"},{"type":"uint256[]","name":"amounts","internalType":"uint256[]"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"id","internalType":"uint256"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"serviceFee","inputs":[{"type":"address","name":"nftAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setApprovalForAll","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"bool","name":"approved","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMaketPlaceAddressAndDevFee","inputs":[{"type":"address","name":"_nftAddress","internalType":"address"},{"type":"address","name":"_maketPlaceFeeAddress","internalType":"address"},{"type":"uint256","name":"_maketPlaceFeePercentage","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setNFTFees","inputs":[{"type":"address","name":"_nftAddress","internalType":"address"},{"type":"uint256","name":"_feeCreater","internalType":"uint256"},{"type":"uint256","name":"_feeProducer","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTokenCreaterAddress","inputs":[{"type":"address","name":"_nftAddress","internalType":"address"},{"type":"address","name":"_tokenCreaterAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTokenProducerAddress","inputs":[{"type":"address","name":"_nftAddress","internalType":"address"},{"type":"address","name":"_tokenProducerAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transfer","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"uri","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"bidPrice","internalType":"uint256"}],"name":"withdrawBidForToken","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]}]
Contract Creation Code
0x6080604052600160da60006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b506001607581905550618c7580620000456000396000f3fe608060405234801561001057600080fd5b50600436106103b95760003560e01c806388a8c95c116101f4578063bb2be9a51161011a578063e8dbfd5a116100ad578063f21723ec1161007c578063f21723ec14610be7578063f242432a14610c03578063f2fde38b14610c1f578063feb8840614610c3b576103b9565b8063e8dbfd5a14610b61578063e985e9c514610b7d578063ecadef0e14610bad578063f0e6dcab14610bc9576103b9565b8063e0f04eaf116100e9578063e0f04eaf14610adb578063e154870214610af7578063e7d585a814610b15578063e7f7fb8614610b45576103b9565b8063bb2be9a514610a69578063bbaed38f14610a85578063beabacc814610a8f578063dc36bb9a14610aab576103b9565b80639a6fba4b11610192578063ae4044d411610161578063ae4044d4146109e1578063afb18fe714610a11578063b6be53ba14610a2f578063b7e6a19414610a4b576103b9565b80639a6fba4b146109595780639a8cea8214610977578063a22cb465146109a7578063a6a27f3a146109c3576103b9565b80638da5cb5b116101ce5780638da5cb5b146108d157806391cca3db146108ef57806398792eec1461090d5780639912cd8c1461093d576103b9565b806388a8c95c1461086957806388bae3b51461088557806389db0efa146108b5576103b9565b80634a66e310116102e45780636747412c1161027757806375ccb1f21161024657806375ccb1f2146107ce5780637d7660e0146107fe5780637e07590d1461081c5780638264045a1461084d576103b9565b80636747412c1461074857806370a3b39014610778578063715018a6146107a8578063741cbae4146107b2576103b9565b80635cc2c66b116102b35780635cc2c66b146106975780635fc8be6c146106c7578063606df430146106e357806363c46cdf14610718576103b9565b80634a66e310146105f85780634e1273f41461062b57806354b0de6a1461065b5780635bf8633a14610679576103b9565b80630e89341c1161035c57806334e095521161032b57806334e0955214610584578063383fba25146105a057806340a97919146105be57806347e1bdfb146105dc576103b9565b80630e89341c146104ec57806315832b891461051c5780631e56afe9146105385780632eb2c2d614610568576103b9565b806307da163b1161039857806307da163b1461044f5780630ade77021461047f5780630c266c80146104b25780630d4b404f146104ce576103b9565b8062fdd58e146103be57806301ffc9a7146103ee5780630609d0951461041e575b600080fd5b6103d860048036038101906103d391906167b6565b610c57565b6040516103e59190617ba2565b60405180910390f35b6104086004803603810190610403919061694e565b610d21565b6040516104159190617664565b60405180910390f35b610438600480360381019061043391906167b6565b610e03565b60405161044692919061759e565b60405180910390f35b61046960048036038101906104649190616a82565b610f64565b6040516104769190617ba2565b60405180910390f35b61049960048036038101906104949190616841565b610f96565b6040516104a994939291906173c1565b60405180910390f35b6104cc60048036038101906104c79190616a07565b6111be565b005b6104d6611346565b6040516104e3919061737d565b60405180910390f35b61050660048036038101906105019190616a82565b61136c565b604051610513919061769a565b60405180910390f35b610536600480360381019061053191906169a0565b611400565b005b610552600480360381019061054d9190616a82565b61157c565b60405161055f9190617b6c565b60405180910390f35b610582600480360381019061057d91906165dd565b61171f565b005b61059e6004803603810190610599919061669c565b6117c0565b005b6105a86118f7565b6040516105b5919061760b565b60405180910390f35b6105c6611abf565b6040516105d39190617ba2565b60405180910390f35b6105f660048036038101906105f1919061654f565b611b25565b005b610612600480360381019061060d91906167f2565b611b9b565b6040516106229493929190617406565b60405180910390f35b61064560048036038101906106409190616890565b611de2565b604051610652919061760b565b60405180910390f35b610663611f93565b60405161067091906175c7565b60405180910390f35b610681611fae565b60405161068e919061737d565b60405180910390f35b6106b160048036038101906106ac9190616b10565b611fd8565b6040516106be91906175c7565b60405180910390f35b6106e160048036038101906106dc91906169a0565b612149565b005b6106fd60048036038101906106f8919061654f565b6122c5565b60405161070f96959493929190617be6565b60405180910390f35b610732600480360381019061072d9190616a82565b61233b565b60405161073f9190617ba2565b60405180910390f35b610762600480360381019061075d9190616ad4565b61236d565b60405161076f9190617664565b60405180910390f35b610792600480360381019061078d9190616ad4565b61252b565b60405161079f9190617b6c565b60405180910390f35b6107b061261e565b005b6107cc60048036038101906107c79190616841565b612632565b005b6107e860048036038101906107e39190616b10565b612771565b6040516107f591906175e9565b60405180910390f35b610806612976565b604051610813919061760b565b60405180910390f35b61083660048036038101906108319190616841565b612ac1565b60405161084492919061759e565b60405180910390f35b61086760048036038101906108629190616841565b612cfb565b005b610883600480360381019061087e919061654f565b612e9b565b005b61089f600480360381019061089a9190616a82565b612f6f565b6040516108ac9190617664565b60405180910390f35b6108cf60048036038101906108ca9190616841565b61307e565b005b6108d961329e565b6040516108e6919061737d565b60405180910390f35b6108f76132c8565b604051610904919061737d565b60405180910390f35b61092760048036038101906109229190616a82565b6132ee565b6040516109349190617b87565b60405180910390f35b610957600480360381019061095291906167b6565b6133a0565b005b610961613464565b60405161096e919061737d565b60405180910390f35b610991600480360381019061098c9190616a82565b61348a565b60405161099e9190617ba2565b60405180910390f35b6109c160048036038101906109bc919061677a565b6134bc565b005b6109cb6134d2565b6040516109d89190617ba2565b60405180910390f35b6109fb60048036038101906109f69190616a82565b6135c6565b604051610a089190617ba2565b60405180910390f35b610a1961360a565b604051610a26919061737d565b60405180910390f35b610a496004803603810190610a4491906168fc565b613634565b005b610a536136e1565b604051610a60919061737d565b60405180910390f35b610a836004803603810190610a7e91906167f2565b613707565b005b610a8d6137ba565b005b610aa96004803603810190610aa4919061669c565b61385a565b005b610ac56004803603810190610ac0919061654f565b613b14565b604051610ad29190617664565b60405180910390f35b610af56004803603810190610af091906165a1565b613c9a565b005b610aff613d95565b604051610b0c91906175e9565b60405180910390f35b610b2f6004803603810190610b2a9190616a82565b613db0565b604051610b3c91906175c7565b60405180910390f35b610b5f6004803603810190610b5a919061669c565b613fe0565b005b610b7b6004803603810190610b7691906165a1565b6141f9565b005b610b976004803603810190610b9291906165a1565b6142f4565b604051610ba49190617664565b60405180910390f35b610bc76004803603810190610bc291906165a1565b614388565b005b610bd16143cd565b604051610bde9190617664565b60405180910390f35b610c016004803603810190610bfc9190616a07565b6143e4565b005b610c1d6004803603810190610c1891906166eb565b61456c565b005b610c396004803603810190610c34919061654f565b61460d565b005b610c556004803603810190610c5091906167b6565b614691565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cbf906177cc565b60405180910390fd5b60a8600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610dec57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610dfc5750610dfb82614742565b5b9050919050565b600080600060de600085815260200190815260200160002060020160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090508473ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff1614610f44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3b906179ac565b60405180910390fd5b610f4e84866147ac565b8060400151816020015192509250509250929050565b6000610f8f600554610f81600254856148d090919063ffffffff16565b6148e690919063ffffffff16565b9050919050565b600080600080600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461102c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110239061798c565b60405180910390fd5b6000611037876132ee565b9050600073ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff1614156110ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a4906178ec565b60405180910390fd5b6110b7878961236d565b156110f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ee9061776c565b60405180910390fd5b806020015186101561113e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111359061782c565b60405180910390fd5b8060400151600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1694509450945094505093509350935093565b6000601060169054906101000a900460ff161590508080156111f257506001601060159054906101000a900460ff1660ff16105b806112215750611201306148fc565b15801561122057506001601060159054906101000a900460ff1660ff16145b5b611260576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611257906178ac565b60405180910390fd5b6001601060156101000a81548160ff021916908360ff160217905550801561129e576001601060166101000a81548160ff0219169083151502179055505b6112b66040518060200160405280600081525061491f565b6112c1858585612149565b6112ca82611b25565b600160da60006101000a81548160ff021916908315150217905550801561133f576000601060166101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051611336919061767f565b60405180910390a15b5050505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060aa805461137b90618005565b80601f01602080910402602001604051908101604052809291908181526020018280546113a790618005565b80156113f45780601f106113c9576101008083540402835291602001916113f4565b820191906000526020600020905b8154815290600101906020018083116113d757829003601f168201915b50505050509050919050565b82600a9080519060200190611416929190616158565b5081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000601060146101000a81548160ff021916908315150217905550505050565b6115846161de565b6000604051806060016040528084815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815250905060005b6115dc60de600086815260200190815260200160002060000161497a565b81101561171557600061160d8260de600088815260200190815260200160002060000161498f90919063ffffffff16565b9050600060de600087815260200190815260200160002060020160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090506116e4816149a9565b80156116f7575083602001518160200151115b15611700578093505b5050808061170d90618068565b9150506115be565b5080915050919050565b6117276149e2565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061176d575061176c856117676149e2565b6142f4565b5b6117ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a3906177ec565b60405180910390fd5b6117b985858585856149ea565b5050505050565b6000811180156117d257506103e88111155b611811576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180890617b2c565b60405180910390fd5b81600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506005546103e814611898576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188f906177ac565b60405180910390fd5b806003819055506001546002546003546005546118b59190617eea565b6118bf9190617eea565b6118c99190617eea565b6000819055506001546002546003546118e29190617e09565b6118ec9190617eea565b600481905550505050565b606060005b61190660dc614d5b565b8110156119f75760006119238260dc614d7090919063ffffffff16565b90506119b560db600083815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050614d8a565b6119e35760e38190806001815401808255809150506001900390600052602060002001600090919091909150555b5080806119ef90618068565b9150506118fc565b5060005b60e380549050811015611a6857611a5560e38281548110611a45577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154614deb565b8080611a6090618068565b9150506119fb565b5060e3805480602002602001604051908101604052809291908181526020018280548015611ab557602002820191906000526020600020905b815481526020019060010190808311611aa1575b5050505050905090565b6000806000905060005b611ad360df614d5b565b811015611b1d57611b08611af9611af48360df614d7090919063ffffffff16565b614e6a565b83614fd490919063ffffffff16565b91508080611b1590618068565b915050611ac9565b508091505090565b6103cf60008190555060006001819055506000600281905550601960038190555060196004819055506103e860058190555080600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080600080600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c289061798c565b60405180910390fd5b611c3b868861236d565b611c7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7190617b4c565b60405180910390fd5b611c8386612f6f565b80611c935750611c9287613b14565b5b611cd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc9906176ec565b60405180910390fd5b6000611cde878761252b565b905060008160200151118015611d2357508573ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff16145b611d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d599061796c565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836020015194509450945094505093509350935093565b60608151835114611e28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1f90617a2c565b60405180910390fd5b6000835167ffffffffffffffff811115611e6b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015611e995781602001602082028036833780820191505090505b50905060005b8451811015611f8857611f32858281518110611ee4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151858381518110611f25577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151610c57565b828281518110611f6b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080611f8190618068565b9050611e9f565b508091505092915050565b6060611fa96000611fa460df614d5b565b611fd8565b905090565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060611fe460df614d5b565b83108015611ff25750600082115b1561214257600082905061200660df614d5b565b83856120129190617e09565b1115612030578361202360df614d5b565b61202d9190617eea565b90505b60008167ffffffffffffffff811115612072577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156120ab57816020015b6120986161de565b8152602001906001900390816120905790505b50905060005b82811015612137576120e06120db87836120cb9190617e09565b60df614d7090919063ffffffff16565b61157c565b828281518110612119577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181905250808061212f90618068565b9150506120b1565b508092505050612143565b5b92915050565b82600c908051906020019061215f929190616158565b5081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001601060146101000a81548160ff021916908315150217905550505050565b6000806000806000806103e860055414612314576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230b906177ac565b60405180910390fd5b60005460015460025460035460045460055495509550955095509550955091939550919395565b6000612366600554612358600154856148d090919063ffffffff16565b6148e690919063ffffffff16565b9050919050565b6000801515601060149054906101000a900460ff161515141561247257600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b81526004016123e59190617ba2565b60206040518083038186803b1580156123fd57600080fd5b505afa92505050801561242e57506040513d601f19601f8201168201806040525081019061242b9190616578565b60015b61243b5760009050612525565b8273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614915050612525565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e84866040518363ffffffff1660e01b81526004016124d092919061759e565b60206040518083038186803b1580156124e857600080fd5b505afa1580156124fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125209190616aab565b141590505b92915050565b6125336161de565b600060de600085815260200190815260200160002060020160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050612608816149a9565b156126165780915050612618565b505b92915050565b612626614fea565b6126306000615068565b565b61263a61512e565b6000612645836132ee565b9050612651838561236d565b612690576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612687906179cc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff161415612704576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126fb906178ec565b60405180910390fd5b6000821015612748576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273f90617acc565b60405180910390fd5b8160db6000858152602001908152602001600020600101819055505061276c61517e565b505050565b606061277d60dc614d5b565b8310801561278b5750600082115b1561296f57600082905061279f60dc614d5b565b83856127ab9190617e09565b11156127c957836127bc60dc614d5b565b6127c69190617eea565b90505b60008167ffffffffffffffff81111561280b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561284457816020015b612831616215565b8152602001906001900390816128295790505b50905060005b8281101561296457600060db600061287789856128679190617e09565b60dc614d7090919063ffffffff16565b815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905061290581614d8a565b156129505780838381518110612944577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101819052505b50808061295c90618068565b91505061284a565b508092505050612970565b5b92915050565b606060005b61298560df614d5b565b8110156129f95760006129a28260df614d7090919063ffffffff16565b905060006129af82614e6a565b905060008111156129e45760e38290806001815401808255809150506001900390600052602060002001600090919091909150555b505080806129f190618068565b91505061297b565b5060005b60e380549050811015612a6a57612a5760e38281548110612a47577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154615188565b8080612a6290618068565b9150506129fd565b5060e3805480602002602001604051908101604052809291908181526020018280548015612ab757602002820191906000526020600020905b815481526020019060010190808311612aa3575b5050505050905090565b60008060da60009054906101000a900460ff16612b13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b0a9061778c565b60405180910390fd5b612b526040518060400160405280600781526020017f73656e6465723a00000000000000000000000000000000000000000000000000815250866153ff565b60008311612b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b8c9061786c565b60405180910390fd5b612b9f848661236d565b612bde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bd590617aec565b60405180910390fd5b612be784612f6f565b80612bf75750612bf685613b14565b5b612c36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c2d9061794c565b60405180910390fd5b60405180606001604052808581526020018481526020018673ffffffffffffffffffffffffffffffffffffffff1681525060db6000868152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050612cec8460dc61549b90919063ffffffff16565b50848391509150935093915050565b6000821480612d595750600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b612d98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8f9061792c565b60405180910390fd5b6000811480612df65750600073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b612e35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2c90617a6c565b60405180910390fd5b8160028190555080600181905550600154600354600254600554612e599190617eea565b612e639190617eea565b612e6d9190617eea565b600081905550600154600354600254612e869190617e09565b612e909190617e09565b600481905550505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612f2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f229061798c565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000801515601060149054906101000a900460ff161515141561307457600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663081812fc836040518263ffffffff1660e01b8152600401612fe79190617ba2565b60206040518083038186803b158015612fff57600080fd5b505afa92505050801561303057506040513d601f19601f8201168201806040525081019061302d9190616578565b60015b61303d5760009050613079565b3073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614915050613079565b600190505b919050565b60da60009054906101000a900460ff166130cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130c49061778c565b60405180910390fd5b60008111613110576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131079061780c565b60405180910390fd5b61311a828461236d565b1561315a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131519061784c565b60405180910390fd5b600060405180606001604052808481526020018381526020018573ffffffffffffffffffffffffffffffffffffffff1681525090506131a38360df6154b590919063ffffffff16565b6131bd576131bb8360df61549b90919063ffffffff16565b505b6131e58460de60008681526020019081526020016000206000016154cf90919063ffffffff16565b508060de600085815260200190815260200160002060020160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555090505050505050565b6000604360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6132f6616215565b600060db600084815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905061338b81614d8a565b15613399578091505061339b565b505b919050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614613430576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134279061798c565b60405180910390fd5b600061343b826132ee565b905061344c81604001518484613fe0565b61345582614deb565b61345f82846147ac565b505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006134b56005546134a7600354856148d090919063ffffffff16565b6148e690919063ffffffff16565b9050919050565b6134ce6134c76149e2565b83836154ff565b5050565b6000806000905060005b6134e660dc614d5b565b8110156135be5761359060db60006135088460dc614d7090919063ffffffff16565b815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050614d8a565b6135ab576135a8600183614fd490919063ffffffff16565b91505b80806135b690618068565b9150506134dc565b508091505090565b60006136036135f46005546135e6600454866148d090919063ffffffff16565b6148e690919063ffffffff16565b8361566c90919063ffffffff16565b9050919050565b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146136c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136bb9061798c565b60405180910390fd5b8060da60006101000a81548160ff02191690831515021790555050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614613797576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161378e9061798c565b60405180910390fd5b6137a2838284613fe0565b6137ab82614deb565b6137b582826147ac565b505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461384a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138419061798c565b60405180910390fd5b60e36000613858919061624c565b565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146138ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138e19061798c565b60405180910390fd5b6138f4818461236d565b613933576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161392a90617b4c565b60405180910390fd5b61393c81612f6f565b8061394c575061394b83613b14565b5b61398b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613982906176ec565b60405180910390fd5b60001515601060149054906101000a900460ff1615151415613a3d57600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e8484846040518463ffffffff1660e01b8152600401613a06939291906174b3565b600060405180830381600087803b158015613a2057600080fd5b505af1158015613a34573d6000803e3d6000fd5b50505050613b0f565b60006040518060400160405280600381526020017f30783000000000000000000000000000000000000000000000000000000000008152509050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a8585856001866040518663ffffffff1660e01b8152600401613adb9594939291906174ea565b600060405180830381600087803b158015613af557600080fd5b505af1158015613b09573d6000803e3d6000fd5b50505050505b505050565b6000801515601060149054906101000a900460ff1615151415613be557600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e985e9c583306040518363ffffffff1660e01b8152600401613b8e929190617398565b60206040518083038186803b158015613ba657600080fd5b505afa158015613bba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bde9190616925565b9050613c95565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e985e9c583306040518363ffffffff1660e01b8152600401613c42929190617398565b60206040518083038186803b158015613c5a57600080fd5b505afa158015613c6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c929190616925565b90505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613d0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d019061772c565b60405180910390fd5b6005546103e814613d50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d47906177ac565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6060613dab6000613da660dc614d5b565b612771565b905090565b60606000613dd260de600085815260200190815260200160002060000161497a565b67ffffffffffffffff811115613e11577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015613e4a57816020015b613e376161de565b815260200190600190039081613e2f5790505b50905060005b613e6e60de600086815260200190815260200160002060000161497a565b811015613fd6576000613e9f8260de600088815260200190815260200160002060000161498f90919063ffffffff16565b9050600060de600087815260200190815260200160002060020160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050613f76816149a9565b15613fc15780848481518110613fb5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101819052505b50508080613fce90618068565b915050613e50565b5080915050919050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614614070576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016140679061798c565b60405180910390fd5b60001515601060149054906101000a900460ff161515141561412257600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e8484846040518463ffffffff1660e01b81526004016140eb939291906174b3565b600060405180830381600087803b15801561410557600080fd5b505af1158015614119573d6000803e3d6000fd5b505050506141f4565b60006040518060400160405280600381526020017f30783000000000000000000000000000000000000000000000000000000000008152509050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a8585856001866040518663ffffffff1660e01b81526004016141c09594939291906174ea565b600060405180830381600087803b1580156141da57600080fd5b505af11580156141ee573d6000803e3d6000fd5b50505050505b505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415614269576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016142609061772c565b60405180910390fd5b6005546103e8146142af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016142a6906177ac565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600060a960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600060da60009054906101000a900460ff16905090565b6000601060169054906101000a900460ff1615905080801561441857506001601060159054906101000a900460ff1660ff16105b806144475750614427306148fc565b15801561444657506001601060159054906101000a900460ff1660ff16145b5b614486576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161447d906178ac565b60405180910390fd5b6001601060156101000a81548160ff021916908360ff16021790555080156144c4576001601060166101000a81548160ff0219169083151502179055505b6144dc6040518060200160405280600081525061491f565b6144e7858585611400565b6144f082611b25565b600160da60006101000a81548160ff0219169083151502179055508015614565576000601060166101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498600160405161455c919061767f565b60405180910390a15b5050505050565b6145746149e2565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806145ba57506145b9856145b46149e2565b6142f4565b5b6145f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016145f0906177ec565b60405180910390fd5b6146068585858585615682565b5050505050565b614615614fea565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415614685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161467c9061774c565b60405180910390fd5b61468e81615068565b50565b8173ffffffffffffffffffffffffffffffffffffffff1660db600083815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614614735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161472c90617aac565b60405180910390fd5b61473e81614deb565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6147d48160de600085815260200190815260200160002060000161592190919063ffffffff16565b156148cc5760de600083815260200190815260200160002060020160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008082016000905560018201600090556002820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055505061488e8160de600085815260200190815260200160002060000161595190919063ffffffff16565b5060006148af60de600085815260200190815260200160002060000161497a565b14156148cb576148c98260df61598190919063ffffffff16565b505b5b5050565b600081836148de9190617e90565b905092915050565b600081836148f49190617e5f565b905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b601060169054906101000a900460ff1661496e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401614965906179ec565b60405180910390fd5b6149778161599b565b50565b6000614988826000016159f6565b9050919050565b600061499e8360000183615a07565b60001c905092915050565b60006149bd8260000151836040015161236d565b1580156149ce575060008260200151115b156149dc57600190506149dd565b5b919050565b600033905090565b8151835114614a2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401614a2590617a4c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415614a9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401614a959061788c565b60405180910390fd5b6000614aa86149e2565b9050614ab8818787878787615a58565b60005b8451811015614cb8576000858281518110614aff577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000858381518110614b44577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600060a8600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015614be6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401614bdd906178cc565b60405180910390fd5b81810360a8600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160a8600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254614c9d9190617e09565b9250508190555050505080614cb190618068565b9050614abb565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051614d2f92919061762d565b60405180910390a4614d45818787878787615a60565b614d53818787878787615a68565b505050505050565b6000614d69826000016159f6565b9050919050565b6000614d7f8360000183615a07565b60001c905092915050565b6000614d9e8260000151836040015161236d565b8015614dc75750614db28260000151612f6f565b80614dc65750614dc58260400151613b14565b5b5b8015614dd7575060008260200151115b15614de55760019050614de6565b5b919050565b614dff8160dc6154b590919063ffffffff16565b15614e675760db600082815260200190815260200160002060008082016000905560018201600090556002820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555050614e658160dc61598190919063ffffffff16565b505b50565b6000806000905060005b614e9260de600086815260200190815260200160002060000161497a565b811015614fca576000614ec38260de600088815260200190815260200160002060000161498f90919063ffffffff16565b9050600060de600087815260200190815260200160002060020160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050614f9a816149a9565b614fb557614fb2600185614fd490919063ffffffff16565b93505b50508080614fc290618068565b915050614e74565b5080915050919050565b60008183614fe29190617e09565b905092915050565b614ff26149e2565b73ffffffffffffffffffffffffffffffffffffffff1661501061329e565b73ffffffffffffffffffffffffffffffffffffffff1614615066576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161505d9061790c565b60405180910390fd5b565b6000604360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081604360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60026075541415615174576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161516b90617a8c565b60405180910390fd5b6002607581905550565b6001607581905550565b60005b6151a960de600084815260200190815260200160002060000161497a565b8110156153555760006151da8260de600086815260200190815260200160002060000161498f90919063ffffffff16565b9050600060de600085815260200190815260200160002060020160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090506152b1816149a9565b6153405760e46152df8460de600088815260200190815260200160002060000161498f90919063ffffffff16565b9080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5050808061534d90618068565b91505061518b565b5060005b60e4805490508110156153ed57600060e482815481106153a2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506153d983826147ac565b5080806153e590618068565b915050615359565b5060e460006153fc919061626d565b50565b61549782826040516024016154159291906176bc565b6040516020818303038152906040527f319af333000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050615c4f565b5050565b60006154ad836000018360001b615c78565b905092915050565b60006154c7836000018360001b615ce8565b905092915050565b60006154f7836000018373ffffffffffffffffffffffffffffffffffffffff1660001b615c78565b905092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561556e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161556590617a0c565b60405180910390fd5b8060a960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161565f9190617664565b60405180910390a3505050565b6000818361567a9190617eea565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156156f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016156e99061788c565b60405180910390fd5b60006156fc6149e2565b9050600061570985615d0b565b9050600061571685615d0b565b9050615726838989858589615a58565b600060a8600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050858110156157be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016157b5906178cc565b60405180910390fd5b85810360a8600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560a8600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546158759190617e09565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516158f2929190617bbd565b60405180910390a4615908848a8a86868a615a60565b615916848a8a8a8a8a615dd1565b505050505050505050565b6000615949836000018373ffffffffffffffffffffffffffffffffffffffff1660001b615ce8565b905092915050565b6000615979836000018373ffffffffffffffffffffffffffffffffffffffff1660001b615fb8565b905092915050565b6000615993836000018360001b615fb8565b905092915050565b601060169054906101000a900460ff166159ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016159e1906179ec565b60405180910390fd5b6159f38161613e565b50565b600081600001805490509050919050565b6000826000018281548110615a45577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b505050505050565b505050505050565b615a878473ffffffffffffffffffffffffffffffffffffffff166148fc565b15615c47578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401615acd95949392919061744b565b602060405180830381600087803b158015615ae757600080fd5b505af1925050508015615b1857506040513d601f19601f82011682018060405250810190615b159190616977565b60015b615bbe57615b2461816d565b806308c379a01415615b815750615b39618b4d565b80615b445750615b83565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401615b78919061769a565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401615bb590617b0c565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614615c45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401615c3c9061770c565b60405180910390fd5b505b505050505050565b60008151905060006a636f6e736f6c652e6c6f679050602083016000808483855afa5050505050565b6000615c848383615ce8565b615cdd578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050615ce2565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b60606000600167ffffffffffffffff811115615d50577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015615d7e5781602001602082028036833780820191505090505b5090508281600081518110615dbc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b615df08473ffffffffffffffffffffffffffffffffffffffff166148fc565b15615fb0578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401615e36959493929190617544565b602060405180830381600087803b158015615e5057600080fd5b505af1925050508015615e8157506040513d601f19601f82011682018060405250810190615e7e9190616977565b60015b615f2757615e8d61816d565b806308c379a01415615eea5750615ea2618b4d565b80615ead5750615eec565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401615ee1919061769a565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401615f1e90617b0c565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614615fae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401615fa59061770c565b60405180910390fd5b505b505050505050565b60008083600101600084815260200190815260200160002054905060008114616132576000600182615fea9190617eea565b90506000600186600001805490506160029190617eea565b90508181146160bd576000866000018281548110616049577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110616093577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b856000018054806160f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050616138565b60009150505b92915050565b8060aa9080519060200190616154929190616158565b5050565b82805461616490618005565b90600052602060002090601f01602090048101928261618657600085556161cd565b82601f1061619f57805160ff19168380011785556161cd565b828001600101855582156161cd579182015b828111156161cc5782518255916020019190600101906161b1565b5b5090506161da919061628e565b5090565b60405180606001604052806000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b60405180606001604052806000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b508054600082559060005260206000209081019061626a919061628e565b50565b508054600082559060005260206000209081019061628b919061628e565b50565b5b808211156162a757600081600090555060010161628f565b5090565b60006162be6162b984617c6c565b617c47565b905080838252602082019050828560208602820111156162dd57600080fd5b60005b8581101561630d57816162f388826163ff565b8452602084019350602083019250506001810190506162e0565b5050509392505050565b600061632a61632584617c98565b617c47565b9050808382526020820190508285602086028201111561634957600080fd5b60005b85811015616379578161635f8882616525565b84526020840193506020830192505060018101905061634c565b5050509392505050565b600061639661639184617cc4565b617c47565b9050828152602081018484840111156163ae57600080fd5b6163b9848285617fc3565b509392505050565b60006163d46163cf84617cf5565b617c47565b9050828152602081018484840111156163ec57600080fd5b6163f7848285617fc3565b509392505050565b60008135905061640e81618be3565b92915050565b60008151905061642381618be3565b92915050565b600082601f83011261643a57600080fd5b813561644a8482602086016162ab565b91505092915050565b600082601f83011261646457600080fd5b8135616474848260208601616317565b91505092915050565b60008135905061648c81618bfa565b92915050565b6000815190506164a181618bfa565b92915050565b6000813590506164b681618c11565b92915050565b6000815190506164cb81618c11565b92915050565b600082601f8301126164e257600080fd5b81356164f2848260208601616383565b91505092915050565b600082601f83011261650c57600080fd5b813561651c8482602086016163c1565b91505092915050565b60008135905061653481618c28565b92915050565b60008151905061654981618c28565b92915050565b60006020828403121561656157600080fd5b600061656f848285016163ff565b91505092915050565b60006020828403121561658a57600080fd5b600061659884828501616414565b91505092915050565b600080604083850312156165b457600080fd5b60006165c2858286016163ff565b92505060206165d3858286016163ff565b9150509250929050565b600080600080600060a086880312156165f557600080fd5b6000616603888289016163ff565b9550506020616614888289016163ff565b945050604086013567ffffffffffffffff81111561663157600080fd5b61663d88828901616453565b935050606086013567ffffffffffffffff81111561665a57600080fd5b61666688828901616453565b925050608086013567ffffffffffffffff81111561668357600080fd5b61668f888289016164d1565b9150509295509295909350565b6000806000606084860312156166b157600080fd5b60006166bf868287016163ff565b93505060206166d0868287016163ff565b92505060406166e186828701616525565b9150509250925092565b600080600080600060a0868803121561670357600080fd5b6000616711888289016163ff565b9550506020616722888289016163ff565b945050604061673388828901616525565b935050606061674488828901616525565b925050608086013567ffffffffffffffff81111561676157600080fd5b61676d888289016164d1565b9150509295509295909350565b6000806040838503121561678d57600080fd5b600061679b858286016163ff565b92505060206167ac8582860161647d565b9150509250929050565b600080604083850312156167c957600080fd5b60006167d7858286016163ff565b92505060206167e885828601616525565b9150509250929050565b60008060006060848603121561680757600080fd5b6000616815868287016163ff565b935050602061682686828701616525565b9250506040616837868287016163ff565b9150509250925092565b60008060006060848603121561685657600080fd5b6000616864868287016163ff565b935050602061687586828701616525565b925050604061688686828701616525565b9150509250925092565b600080604083850312156168a357600080fd5b600083013567ffffffffffffffff8111156168bd57600080fd5b6168c985828601616429565b925050602083013567ffffffffffffffff8111156168e657600080fd5b6168f285828601616453565b9150509250929050565b60006020828403121561690e57600080fd5b600061691c8482850161647d565b91505092915050565b60006020828403121561693757600080fd5b600061694584828501616492565b91505092915050565b60006020828403121561696057600080fd5b600061696e848285016164a7565b91505092915050565b60006020828403121561698957600080fd5b6000616997848285016164bc565b91505092915050565b6000806000606084860312156169b557600080fd5b600084013567ffffffffffffffff8111156169cf57600080fd5b6169db868287016164fb565b93505060206169ec868287016163ff565b92505060406169fd868287016163ff565b9150509250925092565b60008060008060808587031215616a1d57600080fd5b600085013567ffffffffffffffff811115616a3757600080fd5b616a43878288016164fb565b9450506020616a54878288016163ff565b9350506040616a65878288016163ff565b9250506060616a76878288016163ff565b91505092959194509250565b600060208284031215616a9457600080fd5b6000616aa284828501616525565b91505092915050565b600060208284031215616abd57600080fd5b6000616acb8482850161653a565b91505092915050565b60008060408385031215616ae757600080fd5b6000616af585828601616525565b9250506020616b06858286016163ff565b9150509250929050565b60008060408385031215616b2357600080fd5b6000616b3185828601616525565b9250506020616b4285828601616525565b9150509250929050565b6000616b588383617257565b60608301905092915050565b6000616b7083836172db565b60608301905092915050565b6000616b88838361735f565b60208301905092915050565b616b9d81617f1e565b82525050565b616bac81617f1e565b82525050565b6000616bbd82617d56565b616bc78185617db4565b9350616bd283617d26565b8060005b83811015616c03578151616bea8882616b4c565b9750616bf583617d8d565b925050600181019050616bd6565b5085935050505092915050565b6000616c1b82617d61565b616c258185617dc5565b9350616c3083617d36565b8060005b83811015616c61578151616c488882616b64565b9750616c5383617d9a565b925050600181019050616c34565b5085935050505092915050565b6000616c7982617d6c565b616c838185617dd6565b9350616c8e83617d46565b8060005b83811015616cbf578151616ca68882616b7c565b9750616cb183617da7565b925050600181019050616c92565b5085935050505092915050565b616cd581617f30565b82525050565b6000616ce682617d77565b616cf08185617de7565b9350616d00818560208601617fd2565b616d098161818f565b840191505092915050565b616d1d81617f9f565b82525050565b616d2c81617fb1565b82525050565b6000616d3d82617d82565b616d478185617df8565b9350616d57818560208601617fd2565b616d608161818f565b840191505092915050565b6000616d78603583617df8565b9150616d83826181ad565b604082019050919050565b6000616d9b602883617df8565b9150616da6826181fc565b604082019050919050565b6000616dbe601883617df8565b9150616dc98261824b565b602082019050919050565b6000616de1602683617df8565b9150616dec82618274565b604082019050919050565b6000616e04602583617df8565b9150616e0f826182c3565b604082019050919050565b6000616e27601f83617df8565b9150616e3282618312565b602082019050919050565b6000616e4a601a83617df8565b9150616e558261833b565b602082019050919050565b6000616e6d602a83617df8565b9150616e7882618364565b604082019050919050565b6000616e90602e83617df8565b9150616e9b826183b3565b604082019050919050565b6000616eb3601a83617df8565b9150616ebe82618402565b602082019050919050565b6000616ed6602c83617df8565b9150616ee18261842b565b604082019050919050565b6000616ef9602283617df8565b9150616f048261847a565b604082019050919050565b6000616f1c603883617df8565b9150616f27826184c9565b604082019050919050565b6000616f3f602583617df8565b9150616f4a82618518565b604082019050919050565b6000616f62602e83617df8565b9150616f6d82618567565b604082019050919050565b6000616f85602a83617df8565b9150616f90826185b6565b604082019050919050565b6000616fa8601583617df8565b9150616fb382618605565b602082019050919050565b6000616fcb602083617df8565b9150616fd68261862e565b602082019050919050565b6000616fee602483617df8565b9150616ff982618657565b604082019050919050565b6000617011603683617df8565b915061701c826186a6565b604082019050919050565b6000617034602683617df8565b915061703f826186f5565b604082019050919050565b6000617057601883617df8565b915061706282618744565b602082019050919050565b600061707a602b83617df8565b91506170858261876d565b604082019050919050565b600061709d602a83617df8565b91506170a8826187bc565b604082019050919050565b60006170c0602b83617df8565b91506170cb8261880b565b604082019050919050565b60006170e3602983617df8565b91506170ee8261885a565b604082019050919050565b6000617106602983617df8565b9150617111826188a9565b604082019050919050565b6000617129602883617df8565b9150617134826188f8565b604082019050919050565b600061714c602583617df8565b915061715782618947565b604082019050919050565b600061716f601f83617df8565b915061717a82618996565b602082019050919050565b6000617192602283617df8565b915061719d826189bf565b604082019050919050565b60006171b5601c83617df8565b91506171c082618a0e565b602082019050919050565b60006171d8601f83617df8565b91506171e382618a37565b602082019050919050565b60006171fb603483617df8565b915061720682618a60565b604082019050919050565b600061721e602583617df8565b915061722982618aaf565b604082019050919050565b6000617241602883617df8565b915061724c82618afe565b604082019050919050565b60608201600082015161726d600085018261735f565b506020820151617280602085018261735f565b5060408201516172936040850182616b94565b50505050565b6060820160008201516172af600085018261735f565b5060208201516172c2602085018261735f565b5060408201516172d56040850182616b94565b50505050565b6060820160008201516172f1600085018261735f565b506020820151617304602085018261735f565b5060408201516173176040850182616b94565b50505050565b606082016000820151617333600085018261735f565b506020820151617346602085018261735f565b5060408201516173596040850182616b94565b50505050565b61736881617f88565b82525050565b61737781617f88565b82525050565b60006020820190506173926000830184616ba3565b92915050565b60006040820190506173ad6000830185616ba3565b6173ba6020830184616ba3565b9392505050565b60006080820190506173d66000830187616ba3565b6173e36020830186616ba3565b6173f06040830185616ba3565b6173fd6060830184616ba3565b95945050505050565b600060808201905061741b6000830187616ba3565b6174286020830186616ba3565b6174356040830185616ba3565b617442606083018461736e565b95945050505050565b600060a0820190506174606000830188616ba3565b61746d6020830187616ba3565b818103604083015261747f8186616c6e565b905081810360608301526174938185616c6e565b905081810360808301526174a78184616cdb565b90509695505050505050565b60006060820190506174c86000830186616ba3565b6174d56020830185616ba3565b6174e2604083018461736e565b949350505050565b600060a0820190506174ff6000830188616ba3565b61750c6020830187616ba3565b617519604083018661736e565b6175266060830185616d14565b81810360808301526175388184616cdb565b90509695505050505050565b600060a0820190506175596000830188616ba3565b6175666020830187616ba3565b617573604083018661736e565b617580606083018561736e565b81810360808301526175928184616cdb565b90509695505050505050565b60006040820190506175b36000830185616ba3565b6175c0602083018461736e565b9392505050565b600060208201905081810360008301526175e18184616bb2565b905092915050565b600060208201905081810360008301526176038184616c10565b905092915050565b600060208201905081810360008301526176258184616c6e565b905092915050565b600060408201905081810360008301526176478185616c6e565b9050818103602083015261765b8184616c6e565b90509392505050565b60006020820190506176796000830184616ccc565b92915050565b60006020820190506176946000830184616d23565b92915050565b600060208201905081810360008301526176b48184616d32565b905092915050565b600060408201905081810360008301526176d68185616d32565b90506176e56020830184616ba3565b9392505050565b6000602082019050818103600083015261770581616d6b565b9050919050565b6000602082019050818103600083015261772581616d8e565b9050919050565b6000602082019050818103600083015261774581616db1565b9050919050565b6000602082019050818103600083015261776581616dd4565b9050919050565b6000602082019050818103600083015261778581616df7565b9050919050565b600060208201905081810360008301526177a581616e1a565b9050919050565b600060208201905081810360008301526177c581616e3d565b9050919050565b600060208201905081810360008301526177e581616e60565b9050919050565b6000602082019050818103600083015261780581616e83565b9050919050565b6000602082019050818103600083015261782581616ea6565b9050919050565b6000602082019050818103600083015261784581616ec9565b9050919050565b6000602082019050818103600083015261786581616eec565b9050919050565b6000602082019050818103600083015261788581616f0f565b9050919050565b600060208201905081810360008301526178a581616f32565b9050919050565b600060208201905081810360008301526178c581616f55565b9050919050565b600060208201905081810360008301526178e581616f78565b9050919050565b6000602082019050818103600083015261790581616f9b565b9050919050565b6000602082019050818103600083015261792581616fbe565b9050919050565b6000602082019050818103600083015261794581616fe1565b9050919050565b6000602082019050818103600083015261796581617004565b9050919050565b6000602082019050818103600083015261798581617027565b9050919050565b600060208201905081810360008301526179a58161704a565b9050919050565b600060208201905081810360008301526179c58161706d565b9050919050565b600060208201905081810360008301526179e581617090565b9050919050565b60006020820190508181036000830152617a05816170b3565b9050919050565b60006020820190508181036000830152617a25816170d6565b9050919050565b60006020820190508181036000830152617a45816170f9565b9050919050565b60006020820190508181036000830152617a658161711c565b9050919050565b60006020820190508181036000830152617a858161713f565b9050919050565b60006020820190508181036000830152617aa581617162565b9050919050565b60006020820190508181036000830152617ac581617185565b9050919050565b60006020820190508181036000830152617ae5816171a8565b9050919050565b60006020820190508181036000830152617b05816171cb565b9050919050565b60006020820190508181036000830152617b25816171ee565b9050919050565b60006020820190508181036000830152617b4581617211565b9050919050565b60006020820190508181036000830152617b6581617234565b9050919050565b6000606082019050617b816000830184617299565b92915050565b6000606082019050617b9c600083018461731d565b92915050565b6000602082019050617bb7600083018461736e565b92915050565b6000604082019050617bd2600083018561736e565b617bdf602083018461736e565b9392505050565b600060c082019050617bfb600083018961736e565b617c08602083018861736e565b617c15604083018761736e565b617c22606083018661736e565b617c2f608083018561736e565b617c3c60a083018461736e565b979650505050505050565b6000617c51617c62565b9050617c5d8282618037565b919050565b6000604051905090565b600067ffffffffffffffff821115617c8757617c8661813e565b5b602082029050602081019050919050565b600067ffffffffffffffff821115617cb357617cb261813e565b5b602082029050602081019050919050565b600067ffffffffffffffff821115617cdf57617cde61813e565b5b617ce88261818f565b9050602081019050919050565b600067ffffffffffffffff821115617d1057617d0f61813e565b5b617d198261818f565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000617e1482617f88565b9150617e1f83617f88565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115617e5457617e536180b1565b5b828201905092915050565b6000617e6a82617f88565b9150617e7583617f88565b925082617e8557617e846180e0565b5b828204905092915050565b6000617e9b82617f88565b9150617ea683617f88565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615617edf57617ede6180b1565b5b828202905092915050565b6000617ef582617f88565b9150617f0083617f88565b925082821015617f1357617f126180b1565b5b828203905092915050565b6000617f2982617f68565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000617faa82617f88565b9050919050565b6000617fbc82617f92565b9050919050565b82818337600083830152505050565b60005b83811015617ff0578082015181840152602081019050617fd5565b83811115617fff576000848401525b50505050565b6000600282049050600182168061801d57607f821691505b602082108114156180315761803061810f565b5b50919050565b6180408261818f565b810181811067ffffffffffffffff8211171561805f5761805e61813e565b5b80604052505050565b600061807382617f88565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156180a6576180a56180b1565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d111561818c5760046000803e6181896000516181a0565b90505b90565b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f54686520746f6b656e206973206e6f7420617070726f76656420746f2074726160008201527f6e736665722062792074686520636f6e74726163740000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f43616e27742073657420746f2061646472657373203078300000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f546f6b656e206f776e65722063616e277420627579207468656972206f776e2060008201527f746f6b656e000000000000000000000000000000000000000000000000000000602082015250565b7f4c697374696e6720616e642062696420617265206e6f7420656e61626c656400600082015250565b7f5468697320746f6b656e206973206e6f74207265676973746564000000000000600082015250565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b7f506c656173652062696420666f72206d6f7265207468616e2030000000000000600082015250565b7f5468652076616c75652073656e642069732062656c6f772073616c652070726960008201527f636520706c757320666565730000000000000000000000000000000000000000602082015250565b7f5468697320546f6b656e2062656c6f6e677320746f207468697320616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f506c65617365206c69737420666f72206d6f7265207468616e2030206f72207560008201527f736520746865207472616e736665722066756e6374696f6e0000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f546f6b656e206973206e6f7420666f722073616c650000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f5468697320746f6b656e20646f6e27742073657420637265617465722061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f5468697320746f6b656e206973206e6f7420616c6c6f77656420746f2074726160008201527f6e73666572206279207468697320636f6e747261637400000000000000000000602082015250565b7f5468697320746f6b656e20646f65736e277420686176652061206d617463686960008201527f6e67206269640000000000000000000000000000000000000000000000000000602082015250565b7f61756374696f6e3a2077726f6e6720646576656c6f7065720000000000000000600082015250565b7f54686973206164647265737320646f65736e2774206861766520626964206f6e60008201527f207468697320746f6b656e000000000000000000000000000000000000000000602082015250565b7f4f6e6c7920746f6b656e206f776e65722063616e206368616e6765207072696360008201527f65206f6620746f6b656e00000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f5468697320746f6b656e20646f6e2774207365742070726f647563657220616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f4f6e6c7920746f6b656e2073656c6c65722063616e2064656c69737420746f6b60008201527f656e000000000000000000000000000000000000000000000000000000000000602082015250565b7f5468652076616c75652073656e642069732062656c6f77207a65726f00000000600082015250565b7f4f6e6c7920746f6b656e206f776e65722063616e206c69737420746f6b656e00600082015250565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f416c6c6f7765642070657263656e746167652072616e6765206973203120746f60008201527f2031303030000000000000000000000000000000000000000000000000000000602082015250565b7f4f6e6c7920746f6b656e206f776e65722063616e20616363657074206269642060008201527f6f6620746f6b656e000000000000000000000000000000000000000000000000602082015250565b600060443d1015618b5d57618be0565b618b65617c62565b60043d036004823e80513d602482011167ffffffffffffffff82111715618b8d575050618be0565b808201805167ffffffffffffffff811115618bab5750505050618be0565b80602083010160043d038501811115618bc8575050505050618be0565b618bd782602001850186618037565b82955050505050505b90565b618bec81617f1e565b8114618bf757600080fd5b50565b618c0381617f30565b8114618c0e57600080fd5b50565b618c1a81617f3c565b8114618c2557600080fd5b50565b618c3181617f88565b8114618c3c57600080fd5b5056fea2646970667358221220078a966d326d006506a47eb93051fb6de2774828da75053e1834c8e322e7247f64736f6c63430008030033
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106103b95760003560e01c806388a8c95c116101f4578063bb2be9a51161011a578063e8dbfd5a116100ad578063f21723ec1161007c578063f21723ec14610be7578063f242432a14610c03578063f2fde38b14610c1f578063feb8840614610c3b576103b9565b8063e8dbfd5a14610b61578063e985e9c514610b7d578063ecadef0e14610bad578063f0e6dcab14610bc9576103b9565b8063e0f04eaf116100e9578063e0f04eaf14610adb578063e154870214610af7578063e7d585a814610b15578063e7f7fb8614610b45576103b9565b8063bb2be9a514610a69578063bbaed38f14610a85578063beabacc814610a8f578063dc36bb9a14610aab576103b9565b80639a6fba4b11610192578063ae4044d411610161578063ae4044d4146109e1578063afb18fe714610a11578063b6be53ba14610a2f578063b7e6a19414610a4b576103b9565b80639a6fba4b146109595780639a8cea8214610977578063a22cb465146109a7578063a6a27f3a146109c3576103b9565b80638da5cb5b116101ce5780638da5cb5b146108d157806391cca3db146108ef57806398792eec1461090d5780639912cd8c1461093d576103b9565b806388a8c95c1461086957806388bae3b51461088557806389db0efa146108b5576103b9565b80634a66e310116102e45780636747412c1161027757806375ccb1f21161024657806375ccb1f2146107ce5780637d7660e0146107fe5780637e07590d1461081c5780638264045a1461084d576103b9565b80636747412c1461074857806370a3b39014610778578063715018a6146107a8578063741cbae4146107b2576103b9565b80635cc2c66b116102b35780635cc2c66b146106975780635fc8be6c146106c7578063606df430146106e357806363c46cdf14610718576103b9565b80634a66e310146105f85780634e1273f41461062b57806354b0de6a1461065b5780635bf8633a14610679576103b9565b80630e89341c1161035c57806334e095521161032b57806334e0955214610584578063383fba25146105a057806340a97919146105be57806347e1bdfb146105dc576103b9565b80630e89341c146104ec57806315832b891461051c5780631e56afe9146105385780632eb2c2d614610568576103b9565b806307da163b1161039857806307da163b1461044f5780630ade77021461047f5780630c266c80146104b25780630d4b404f146104ce576103b9565b8062fdd58e146103be57806301ffc9a7146103ee5780630609d0951461041e575b600080fd5b6103d860048036038101906103d391906167b6565b610c57565b6040516103e59190617ba2565b60405180910390f35b6104086004803603810190610403919061694e565b610d21565b6040516104159190617664565b60405180910390f35b610438600480360381019061043391906167b6565b610e03565b60405161044692919061759e565b60405180910390f35b61046960048036038101906104649190616a82565b610f64565b6040516104769190617ba2565b60405180910390f35b61049960048036038101906104949190616841565b610f96565b6040516104a994939291906173c1565b60405180910390f35b6104cc60048036038101906104c79190616a07565b6111be565b005b6104d6611346565b6040516104e3919061737d565b60405180910390f35b61050660048036038101906105019190616a82565b61136c565b604051610513919061769a565b60405180910390f35b610536600480360381019061053191906169a0565b611400565b005b610552600480360381019061054d9190616a82565b61157c565b60405161055f9190617b6c565b60405180910390f35b610582600480360381019061057d91906165dd565b61171f565b005b61059e6004803603810190610599919061669c565b6117c0565b005b6105a86118f7565b6040516105b5919061760b565b60405180910390f35b6105c6611abf565b6040516105d39190617ba2565b60405180910390f35b6105f660048036038101906105f1919061654f565b611b25565b005b610612600480360381019061060d91906167f2565b611b9b565b6040516106229493929190617406565b60405180910390f35b61064560048036038101906106409190616890565b611de2565b604051610652919061760b565b60405180910390f35b610663611f93565b60405161067091906175c7565b60405180910390f35b610681611fae565b60405161068e919061737d565b60405180910390f35b6106b160048036038101906106ac9190616b10565b611fd8565b6040516106be91906175c7565b60405180910390f35b6106e160048036038101906106dc91906169a0565b612149565b005b6106fd60048036038101906106f8919061654f565b6122c5565b60405161070f96959493929190617be6565b60405180910390f35b610732600480360381019061072d9190616a82565b61233b565b60405161073f9190617ba2565b60405180910390f35b610762600480360381019061075d9190616ad4565b61236d565b60405161076f9190617664565b60405180910390f35b610792600480360381019061078d9190616ad4565b61252b565b60405161079f9190617b6c565b60405180910390f35b6107b061261e565b005b6107cc60048036038101906107c79190616841565b612632565b005b6107e860048036038101906107e39190616b10565b612771565b6040516107f591906175e9565b60405180910390f35b610806612976565b604051610813919061760b565b60405180910390f35b61083660048036038101906108319190616841565b612ac1565b60405161084492919061759e565b60405180910390f35b61086760048036038101906108629190616841565b612cfb565b005b610883600480360381019061087e919061654f565b612e9b565b005b61089f600480360381019061089a9190616a82565b612f6f565b6040516108ac9190617664565b60405180910390f35b6108cf60048036038101906108ca9190616841565b61307e565b005b6108d961329e565b6040516108e6919061737d565b60405180910390f35b6108f76132c8565b604051610904919061737d565b60405180910390f35b61092760048036038101906109229190616a82565b6132ee565b6040516109349190617b87565b60405180910390f35b610957600480360381019061095291906167b6565b6133a0565b005b610961613464565b60405161096e919061737d565b60405180910390f35b610991600480360381019061098c9190616a82565b61348a565b60405161099e9190617ba2565b60405180910390f35b6109c160048036038101906109bc919061677a565b6134bc565b005b6109cb6134d2565b6040516109d89190617ba2565b60405180910390f35b6109fb60048036038101906109f69190616a82565b6135c6565b604051610a089190617ba2565b60405180910390f35b610a1961360a565b604051610a26919061737d565b60405180910390f35b610a496004803603810190610a4491906168fc565b613634565b005b610a536136e1565b604051610a60919061737d565b60405180910390f35b610a836004803603810190610a7e91906167f2565b613707565b005b610a8d6137ba565b005b610aa96004803603810190610aa4919061669c565b61385a565b005b610ac56004803603810190610ac0919061654f565b613b14565b604051610ad29190617664565b60405180910390f35b610af56004803603810190610af091906165a1565b613c9a565b005b610aff613d95565b604051610b0c91906175e9565b60405180910390f35b610b2f6004803603810190610b2a9190616a82565b613db0565b604051610b3c91906175c7565b60405180910390f35b610b5f6004803603810190610b5a919061669c565b613fe0565b005b610b7b6004803603810190610b7691906165a1565b6141f9565b005b610b976004803603810190610b9291906165a1565b6142f4565b604051610ba49190617664565b60405180910390f35b610bc76004803603810190610bc291906165a1565b614388565b005b610bd16143cd565b604051610bde9190617664565b60405180910390f35b610c016004803603810190610bfc9190616a07565b6143e4565b005b610c1d6004803603810190610c1891906166eb565b61456c565b005b610c396004803603810190610c34919061654f565b61460d565b005b610c556004803603810190610c5091906167b6565b614691565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cbf906177cc565b60405180910390fd5b60a8600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610dec57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610dfc5750610dfb82614742565b5b9050919050565b600080600060de600085815260200190815260200160002060020160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090508473ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff1614610f44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3b906179ac565b60405180910390fd5b610f4e84866147ac565b8060400151816020015192509250509250929050565b6000610f8f600554610f81600254856148d090919063ffffffff16565b6148e690919063ffffffff16565b9050919050565b600080600080600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461102c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110239061798c565b60405180910390fd5b6000611037876132ee565b9050600073ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff1614156110ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a4906178ec565b60405180910390fd5b6110b7878961236d565b156110f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ee9061776c565b60405180910390fd5b806020015186101561113e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111359061782c565b60405180910390fd5b8060400151600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1694509450945094505093509350935093565b6000601060169054906101000a900460ff161590508080156111f257506001601060159054906101000a900460ff1660ff16105b806112215750611201306148fc565b15801561122057506001601060159054906101000a900460ff1660ff16145b5b611260576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611257906178ac565b60405180910390fd5b6001601060156101000a81548160ff021916908360ff160217905550801561129e576001601060166101000a81548160ff0219169083151502179055505b6112b66040518060200160405280600081525061491f565b6112c1858585612149565b6112ca82611b25565b600160da60006101000a81548160ff021916908315150217905550801561133f576000601060166101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051611336919061767f565b60405180910390a15b5050505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060aa805461137b90618005565b80601f01602080910402602001604051908101604052809291908181526020018280546113a790618005565b80156113f45780601f106113c9576101008083540402835291602001916113f4565b820191906000526020600020905b8154815290600101906020018083116113d757829003601f168201915b50505050509050919050565b82600a9080519060200190611416929190616158565b5081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000601060146101000a81548160ff021916908315150217905550505050565b6115846161de565b6000604051806060016040528084815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815250905060005b6115dc60de600086815260200190815260200160002060000161497a565b81101561171557600061160d8260de600088815260200190815260200160002060000161498f90919063ffffffff16565b9050600060de600087815260200190815260200160002060020160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090506116e4816149a9565b80156116f7575083602001518160200151115b15611700578093505b5050808061170d90618068565b9150506115be565b5080915050919050565b6117276149e2565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061176d575061176c856117676149e2565b6142f4565b5b6117ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a3906177ec565b60405180910390fd5b6117b985858585856149ea565b5050505050565b6000811180156117d257506103e88111155b611811576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180890617b2c565b60405180910390fd5b81600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506005546103e814611898576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188f906177ac565b60405180910390fd5b806003819055506001546002546003546005546118b59190617eea565b6118bf9190617eea565b6118c99190617eea565b6000819055506001546002546003546118e29190617e09565b6118ec9190617eea565b600481905550505050565b606060005b61190660dc614d5b565b8110156119f75760006119238260dc614d7090919063ffffffff16565b90506119b560db600083815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050614d8a565b6119e35760e38190806001815401808255809150506001900390600052602060002001600090919091909150555b5080806119ef90618068565b9150506118fc565b5060005b60e380549050811015611a6857611a5560e38281548110611a45577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154614deb565b8080611a6090618068565b9150506119fb565b5060e3805480602002602001604051908101604052809291908181526020018280548015611ab557602002820191906000526020600020905b815481526020019060010190808311611aa1575b5050505050905090565b6000806000905060005b611ad360df614d5b565b811015611b1d57611b08611af9611af48360df614d7090919063ffffffff16565b614e6a565b83614fd490919063ffffffff16565b91508080611b1590618068565b915050611ac9565b508091505090565b6103cf60008190555060006001819055506000600281905550601960038190555060196004819055506103e860058190555080600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080600080600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c289061798c565b60405180910390fd5b611c3b868861236d565b611c7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7190617b4c565b60405180910390fd5b611c8386612f6f565b80611c935750611c9287613b14565b5b611cd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc9906176ec565b60405180910390fd5b6000611cde878761252b565b905060008160200151118015611d2357508573ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff16145b611d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d599061796c565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836020015194509450945094505093509350935093565b60608151835114611e28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1f90617a2c565b60405180910390fd5b6000835167ffffffffffffffff811115611e6b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015611e995781602001602082028036833780820191505090505b50905060005b8451811015611f8857611f32858281518110611ee4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151858381518110611f25577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151610c57565b828281518110611f6b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080611f8190618068565b9050611e9f565b508091505092915050565b6060611fa96000611fa460df614d5b565b611fd8565b905090565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060611fe460df614d5b565b83108015611ff25750600082115b1561214257600082905061200660df614d5b565b83856120129190617e09565b1115612030578361202360df614d5b565b61202d9190617eea565b90505b60008167ffffffffffffffff811115612072577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156120ab57816020015b6120986161de565b8152602001906001900390816120905790505b50905060005b82811015612137576120e06120db87836120cb9190617e09565b60df614d7090919063ffffffff16565b61157c565b828281518110612119577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181905250808061212f90618068565b9150506120b1565b508092505050612143565b5b92915050565b82600c908051906020019061215f929190616158565b5081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001601060146101000a81548160ff021916908315150217905550505050565b6000806000806000806103e860055414612314576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230b906177ac565b60405180910390fd5b60005460015460025460035460045460055495509550955095509550955091939550919395565b6000612366600554612358600154856148d090919063ffffffff16565b6148e690919063ffffffff16565b9050919050565b6000801515601060149054906101000a900460ff161515141561247257600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b81526004016123e59190617ba2565b60206040518083038186803b1580156123fd57600080fd5b505afa92505050801561242e57506040513d601f19601f8201168201806040525081019061242b9190616578565b60015b61243b5760009050612525565b8273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614915050612525565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e84866040518363ffffffff1660e01b81526004016124d092919061759e565b60206040518083038186803b1580156124e857600080fd5b505afa1580156124fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125209190616aab565b141590505b92915050565b6125336161de565b600060de600085815260200190815260200160002060020160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050612608816149a9565b156126165780915050612618565b505b92915050565b612626614fea565b6126306000615068565b565b61263a61512e565b6000612645836132ee565b9050612651838561236d565b612690576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612687906179cc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff161415612704576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126fb906178ec565b60405180910390fd5b6000821015612748576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273f90617acc565b60405180910390fd5b8160db6000858152602001908152602001600020600101819055505061276c61517e565b505050565b606061277d60dc614d5b565b8310801561278b5750600082115b1561296f57600082905061279f60dc614d5b565b83856127ab9190617e09565b11156127c957836127bc60dc614d5b565b6127c69190617eea565b90505b60008167ffffffffffffffff81111561280b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561284457816020015b612831616215565b8152602001906001900390816128295790505b50905060005b8281101561296457600060db600061287789856128679190617e09565b60dc614d7090919063ffffffff16565b815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905061290581614d8a565b156129505780838381518110612944577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101819052505b50808061295c90618068565b91505061284a565b508092505050612970565b5b92915050565b606060005b61298560df614d5b565b8110156129f95760006129a28260df614d7090919063ffffffff16565b905060006129af82614e6a565b905060008111156129e45760e38290806001815401808255809150506001900390600052602060002001600090919091909150555b505080806129f190618068565b91505061297b565b5060005b60e380549050811015612a6a57612a5760e38281548110612a47577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154615188565b8080612a6290618068565b9150506129fd565b5060e3805480602002602001604051908101604052809291908181526020018280548015612ab757602002820191906000526020600020905b815481526020019060010190808311612aa3575b5050505050905090565b60008060da60009054906101000a900460ff16612b13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b0a9061778c565b60405180910390fd5b612b526040518060400160405280600781526020017f73656e6465723a00000000000000000000000000000000000000000000000000815250866153ff565b60008311612b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b8c9061786c565b60405180910390fd5b612b9f848661236d565b612bde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bd590617aec565b60405180910390fd5b612be784612f6f565b80612bf75750612bf685613b14565b5b612c36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c2d9061794c565b60405180910390fd5b60405180606001604052808581526020018481526020018673ffffffffffffffffffffffffffffffffffffffff1681525060db6000868152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050612cec8460dc61549b90919063ffffffff16565b50848391509150935093915050565b6000821480612d595750600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b612d98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8f9061792c565b60405180910390fd5b6000811480612df65750600073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b612e35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2c90617a6c565b60405180910390fd5b8160028190555080600181905550600154600354600254600554612e599190617eea565b612e639190617eea565b612e6d9190617eea565b600081905550600154600354600254612e869190617e09565b612e909190617e09565b600481905550505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612f2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f229061798c565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000801515601060149054906101000a900460ff161515141561307457600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663081812fc836040518263ffffffff1660e01b8152600401612fe79190617ba2565b60206040518083038186803b158015612fff57600080fd5b505afa92505050801561303057506040513d601f19601f8201168201806040525081019061302d9190616578565b60015b61303d5760009050613079565b3073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614915050613079565b600190505b919050565b60da60009054906101000a900460ff166130cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130c49061778c565b60405180910390fd5b60008111613110576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131079061780c565b60405180910390fd5b61311a828461236d565b1561315a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131519061784c565b60405180910390fd5b600060405180606001604052808481526020018381526020018573ffffffffffffffffffffffffffffffffffffffff1681525090506131a38360df6154b590919063ffffffff16565b6131bd576131bb8360df61549b90919063ffffffff16565b505b6131e58460de60008681526020019081526020016000206000016154cf90919063ffffffff16565b508060de600085815260200190815260200160002060020160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555090505050505050565b6000604360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6132f6616215565b600060db600084815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905061338b81614d8a565b15613399578091505061339b565b505b919050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614613430576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134279061798c565b60405180910390fd5b600061343b826132ee565b905061344c81604001518484613fe0565b61345582614deb565b61345f82846147ac565b505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006134b56005546134a7600354856148d090919063ffffffff16565b6148e690919063ffffffff16565b9050919050565b6134ce6134c76149e2565b83836154ff565b5050565b6000806000905060005b6134e660dc614d5b565b8110156135be5761359060db60006135088460dc614d7090919063ffffffff16565b815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050614d8a565b6135ab576135a8600183614fd490919063ffffffff16565b91505b80806135b690618068565b9150506134dc565b508091505090565b60006136036135f46005546135e6600454866148d090919063ffffffff16565b6148e690919063ffffffff16565b8361566c90919063ffffffff16565b9050919050565b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146136c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136bb9061798c565b60405180910390fd5b8060da60006101000a81548160ff02191690831515021790555050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614613797576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161378e9061798c565b60405180910390fd5b6137a2838284613fe0565b6137ab82614deb565b6137b582826147ac565b505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461384a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138419061798c565b60405180910390fd5b60e36000613858919061624c565b565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146138ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138e19061798c565b60405180910390fd5b6138f4818461236d565b613933576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161392a90617b4c565b60405180910390fd5b61393c81612f6f565b8061394c575061394b83613b14565b5b61398b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613982906176ec565b60405180910390fd5b60001515601060149054906101000a900460ff1615151415613a3d57600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e8484846040518463ffffffff1660e01b8152600401613a06939291906174b3565b600060405180830381600087803b158015613a2057600080fd5b505af1158015613a34573d6000803e3d6000fd5b50505050613b0f565b60006040518060400160405280600381526020017f30783000000000000000000000000000000000000000000000000000000000008152509050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a8585856001866040518663ffffffff1660e01b8152600401613adb9594939291906174ea565b600060405180830381600087803b158015613af557600080fd5b505af1158015613b09573d6000803e3d6000fd5b50505050505b505050565b6000801515601060149054906101000a900460ff1615151415613be557600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e985e9c583306040518363ffffffff1660e01b8152600401613b8e929190617398565b60206040518083038186803b158015613ba657600080fd5b505afa158015613bba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bde9190616925565b9050613c95565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e985e9c583306040518363ffffffff1660e01b8152600401613c42929190617398565b60206040518083038186803b158015613c5a57600080fd5b505afa158015613c6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c929190616925565b90505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613d0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d019061772c565b60405180910390fd5b6005546103e814613d50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d47906177ac565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6060613dab6000613da660dc614d5b565b612771565b905090565b60606000613dd260de600085815260200190815260200160002060000161497a565b67ffffffffffffffff811115613e11577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015613e4a57816020015b613e376161de565b815260200190600190039081613e2f5790505b50905060005b613e6e60de600086815260200190815260200160002060000161497a565b811015613fd6576000613e9f8260de600088815260200190815260200160002060000161498f90919063ffffffff16565b9050600060de600087815260200190815260200160002060020160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050613f76816149a9565b15613fc15780848481518110613fb5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101819052505b50508080613fce90618068565b915050613e50565b5080915050919050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614614070576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016140679061798c565b60405180910390fd5b60001515601060149054906101000a900460ff161515141561412257600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e8484846040518463ffffffff1660e01b81526004016140eb939291906174b3565b600060405180830381600087803b15801561410557600080fd5b505af1158015614119573d6000803e3d6000fd5b505050506141f4565b60006040518060400160405280600381526020017f30783000000000000000000000000000000000000000000000000000000000008152509050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a8585856001866040518663ffffffff1660e01b81526004016141c09594939291906174ea565b600060405180830381600087803b1580156141da57600080fd5b505af11580156141ee573d6000803e3d6000fd5b50505050505b505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415614269576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016142609061772c565b60405180910390fd5b6005546103e8146142af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016142a6906177ac565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600060a960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600060da60009054906101000a900460ff16905090565b6000601060169054906101000a900460ff1615905080801561441857506001601060159054906101000a900460ff1660ff16105b806144475750614427306148fc565b15801561444657506001601060159054906101000a900460ff1660ff16145b5b614486576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161447d906178ac565b60405180910390fd5b6001601060156101000a81548160ff021916908360ff16021790555080156144c4576001601060166101000a81548160ff0219169083151502179055505b6144dc6040518060200160405280600081525061491f565b6144e7858585611400565b6144f082611b25565b600160da60006101000a81548160ff0219169083151502179055508015614565576000601060166101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498600160405161455c919061767f565b60405180910390a15b5050505050565b6145746149e2565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806145ba57506145b9856145b46149e2565b6142f4565b5b6145f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016145f0906177ec565b60405180910390fd5b6146068585858585615682565b5050505050565b614615614fea565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415614685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161467c9061774c565b60405180910390fd5b61468e81615068565b50565b8173ffffffffffffffffffffffffffffffffffffffff1660db600083815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614614735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161472c90617aac565b60405180910390fd5b61473e81614deb565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6147d48160de600085815260200190815260200160002060000161592190919063ffffffff16565b156148cc5760de600083815260200190815260200160002060020160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008082016000905560018201600090556002820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055505061488e8160de600085815260200190815260200160002060000161595190919063ffffffff16565b5060006148af60de600085815260200190815260200160002060000161497a565b14156148cb576148c98260df61598190919063ffffffff16565b505b5b5050565b600081836148de9190617e90565b905092915050565b600081836148f49190617e5f565b905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b601060169054906101000a900460ff1661496e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401614965906179ec565b60405180910390fd5b6149778161599b565b50565b6000614988826000016159f6565b9050919050565b600061499e8360000183615a07565b60001c905092915050565b60006149bd8260000151836040015161236d565b1580156149ce575060008260200151115b156149dc57600190506149dd565b5b919050565b600033905090565b8151835114614a2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401614a2590617a4c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415614a9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401614a959061788c565b60405180910390fd5b6000614aa86149e2565b9050614ab8818787878787615a58565b60005b8451811015614cb8576000858281518110614aff577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000858381518110614b44577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600060a8600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015614be6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401614bdd906178cc565b60405180910390fd5b81810360a8600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160a8600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254614c9d9190617e09565b9250508190555050505080614cb190618068565b9050614abb565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051614d2f92919061762d565b60405180910390a4614d45818787878787615a60565b614d53818787878787615a68565b505050505050565b6000614d69826000016159f6565b9050919050565b6000614d7f8360000183615a07565b60001c905092915050565b6000614d9e8260000151836040015161236d565b8015614dc75750614db28260000151612f6f565b80614dc65750614dc58260400151613b14565b5b5b8015614dd7575060008260200151115b15614de55760019050614de6565b5b919050565b614dff8160dc6154b590919063ffffffff16565b15614e675760db600082815260200190815260200160002060008082016000905560018201600090556002820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555050614e658160dc61598190919063ffffffff16565b505b50565b6000806000905060005b614e9260de600086815260200190815260200160002060000161497a565b811015614fca576000614ec38260de600088815260200190815260200160002060000161498f90919063ffffffff16565b9050600060de600087815260200190815260200160002060020160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050614f9a816149a9565b614fb557614fb2600185614fd490919063ffffffff16565b93505b50508080614fc290618068565b915050614e74565b5080915050919050565b60008183614fe29190617e09565b905092915050565b614ff26149e2565b73ffffffffffffffffffffffffffffffffffffffff1661501061329e565b73ffffffffffffffffffffffffffffffffffffffff1614615066576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161505d9061790c565b60405180910390fd5b565b6000604360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081604360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60026075541415615174576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161516b90617a8c565b60405180910390fd5b6002607581905550565b6001607581905550565b60005b6151a960de600084815260200190815260200160002060000161497a565b8110156153555760006151da8260de600086815260200190815260200160002060000161498f90919063ffffffff16565b9050600060de600085815260200190815260200160002060020160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090506152b1816149a9565b6153405760e46152df8460de600088815260200190815260200160002060000161498f90919063ffffffff16565b9080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5050808061534d90618068565b91505061518b565b5060005b60e4805490508110156153ed57600060e482815481106153a2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506153d983826147ac565b5080806153e590618068565b915050615359565b5060e460006153fc919061626d565b50565b61549782826040516024016154159291906176bc565b6040516020818303038152906040527f319af333000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050615c4f565b5050565b60006154ad836000018360001b615c78565b905092915050565b60006154c7836000018360001b615ce8565b905092915050565b60006154f7836000018373ffffffffffffffffffffffffffffffffffffffff1660001b615c78565b905092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561556e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161556590617a0c565b60405180910390fd5b8060a960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161565f9190617664565b60405180910390a3505050565b6000818361567a9190617eea565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156156f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016156e99061788c565b60405180910390fd5b60006156fc6149e2565b9050600061570985615d0b565b9050600061571685615d0b565b9050615726838989858589615a58565b600060a8600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050858110156157be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016157b5906178cc565b60405180910390fd5b85810360a8600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560a8600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546158759190617e09565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516158f2929190617bbd565b60405180910390a4615908848a8a86868a615a60565b615916848a8a8a8a8a615dd1565b505050505050505050565b6000615949836000018373ffffffffffffffffffffffffffffffffffffffff1660001b615ce8565b905092915050565b6000615979836000018373ffffffffffffffffffffffffffffffffffffffff1660001b615fb8565b905092915050565b6000615993836000018360001b615fb8565b905092915050565b601060169054906101000a900460ff166159ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016159e1906179ec565b60405180910390fd5b6159f38161613e565b50565b600081600001805490509050919050565b6000826000018281548110615a45577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b505050505050565b505050505050565b615a878473ffffffffffffffffffffffffffffffffffffffff166148fc565b15615c47578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401615acd95949392919061744b565b602060405180830381600087803b158015615ae757600080fd5b505af1925050508015615b1857506040513d601f19601f82011682018060405250810190615b159190616977565b60015b615bbe57615b2461816d565b806308c379a01415615b815750615b39618b4d565b80615b445750615b83565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401615b78919061769a565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401615bb590617b0c565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614615c45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401615c3c9061770c565b60405180910390fd5b505b505050505050565b60008151905060006a636f6e736f6c652e6c6f679050602083016000808483855afa5050505050565b6000615c848383615ce8565b615cdd578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050615ce2565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b60606000600167ffffffffffffffff811115615d50577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015615d7e5781602001602082028036833780820191505090505b5090508281600081518110615dbc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b615df08473ffffffffffffffffffffffffffffffffffffffff166148fc565b15615fb0578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401615e36959493929190617544565b602060405180830381600087803b158015615e5057600080fd5b505af1925050508015615e8157506040513d601f19601f82011682018060405250810190615e7e9190616977565b60015b615f2757615e8d61816d565b806308c379a01415615eea5750615ea2618b4d565b80615ead5750615eec565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401615ee1919061769a565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401615f1e90617b0c565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614615fae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401615fa59061770c565b60405180910390fd5b505b505050505050565b60008083600101600084815260200190815260200160002054905060008114616132576000600182615fea9190617eea565b90506000600186600001805490506160029190617eea565b90508181146160bd576000866000018281548110616049577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110616093577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b856000018054806160f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050616138565b60009150505b92915050565b8060aa9080519060200190616154929190616158565b5050565b82805461616490618005565b90600052602060002090601f01602090048101928261618657600085556161cd565b82601f1061619f57805160ff19168380011785556161cd565b828001600101855582156161cd579182015b828111156161cc5782518255916020019190600101906161b1565b5b5090506161da919061628e565b5090565b60405180606001604052806000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b60405180606001604052806000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b508054600082559060005260206000209081019061626a919061628e565b50565b508054600082559060005260206000209081019061628b919061628e565b50565b5b808211156162a757600081600090555060010161628f565b5090565b60006162be6162b984617c6c565b617c47565b905080838252602082019050828560208602820111156162dd57600080fd5b60005b8581101561630d57816162f388826163ff565b8452602084019350602083019250506001810190506162e0565b5050509392505050565b600061632a61632584617c98565b617c47565b9050808382526020820190508285602086028201111561634957600080fd5b60005b85811015616379578161635f8882616525565b84526020840193506020830192505060018101905061634c565b5050509392505050565b600061639661639184617cc4565b617c47565b9050828152602081018484840111156163ae57600080fd5b6163b9848285617fc3565b509392505050565b60006163d46163cf84617cf5565b617c47565b9050828152602081018484840111156163ec57600080fd5b6163f7848285617fc3565b509392505050565b60008135905061640e81618be3565b92915050565b60008151905061642381618be3565b92915050565b600082601f83011261643a57600080fd5b813561644a8482602086016162ab565b91505092915050565b600082601f83011261646457600080fd5b8135616474848260208601616317565b91505092915050565b60008135905061648c81618bfa565b92915050565b6000815190506164a181618bfa565b92915050565b6000813590506164b681618c11565b92915050565b6000815190506164cb81618c11565b92915050565b600082601f8301126164e257600080fd5b81356164f2848260208601616383565b91505092915050565b600082601f83011261650c57600080fd5b813561651c8482602086016163c1565b91505092915050565b60008135905061653481618c28565b92915050565b60008151905061654981618c28565b92915050565b60006020828403121561656157600080fd5b600061656f848285016163ff565b91505092915050565b60006020828403121561658a57600080fd5b600061659884828501616414565b91505092915050565b600080604083850312156165b457600080fd5b60006165c2858286016163ff565b92505060206165d3858286016163ff565b9150509250929050565b600080600080600060a086880312156165f557600080fd5b6000616603888289016163ff565b9550506020616614888289016163ff565b945050604086013567ffffffffffffffff81111561663157600080fd5b61663d88828901616453565b935050606086013567ffffffffffffffff81111561665a57600080fd5b61666688828901616453565b925050608086013567ffffffffffffffff81111561668357600080fd5b61668f888289016164d1565b9150509295509295909350565b6000806000606084860312156166b157600080fd5b60006166bf868287016163ff565b93505060206166d0868287016163ff565b92505060406166e186828701616525565b9150509250925092565b600080600080600060a0868803121561670357600080fd5b6000616711888289016163ff565b9550506020616722888289016163ff565b945050604061673388828901616525565b935050606061674488828901616525565b925050608086013567ffffffffffffffff81111561676157600080fd5b61676d888289016164d1565b9150509295509295909350565b6000806040838503121561678d57600080fd5b600061679b858286016163ff565b92505060206167ac8582860161647d565b9150509250929050565b600080604083850312156167c957600080fd5b60006167d7858286016163ff565b92505060206167e885828601616525565b9150509250929050565b60008060006060848603121561680757600080fd5b6000616815868287016163ff565b935050602061682686828701616525565b9250506040616837868287016163ff565b9150509250925092565b60008060006060848603121561685657600080fd5b6000616864868287016163ff565b935050602061687586828701616525565b925050604061688686828701616525565b9150509250925092565b600080604083850312156168a357600080fd5b600083013567ffffffffffffffff8111156168bd57600080fd5b6168c985828601616429565b925050602083013567ffffffffffffffff8111156168e657600080fd5b6168f285828601616453565b9150509250929050565b60006020828403121561690e57600080fd5b600061691c8482850161647d565b91505092915050565b60006020828403121561693757600080fd5b600061694584828501616492565b91505092915050565b60006020828403121561696057600080fd5b600061696e848285016164a7565b91505092915050565b60006020828403121561698957600080fd5b6000616997848285016164bc565b91505092915050565b6000806000606084860312156169b557600080fd5b600084013567ffffffffffffffff8111156169cf57600080fd5b6169db868287016164fb565b93505060206169ec868287016163ff565b92505060406169fd868287016163ff565b9150509250925092565b60008060008060808587031215616a1d57600080fd5b600085013567ffffffffffffffff811115616a3757600080fd5b616a43878288016164fb565b9450506020616a54878288016163ff565b9350506040616a65878288016163ff565b9250506060616a76878288016163ff565b91505092959194509250565b600060208284031215616a9457600080fd5b6000616aa284828501616525565b91505092915050565b600060208284031215616abd57600080fd5b6000616acb8482850161653a565b91505092915050565b60008060408385031215616ae757600080fd5b6000616af585828601616525565b9250506020616b06858286016163ff565b9150509250929050565b60008060408385031215616b2357600080fd5b6000616b3185828601616525565b9250506020616b4285828601616525565b9150509250929050565b6000616b588383617257565b60608301905092915050565b6000616b7083836172db565b60608301905092915050565b6000616b88838361735f565b60208301905092915050565b616b9d81617f1e565b82525050565b616bac81617f1e565b82525050565b6000616bbd82617d56565b616bc78185617db4565b9350616bd283617d26565b8060005b83811015616c03578151616bea8882616b4c565b9750616bf583617d8d565b925050600181019050616bd6565b5085935050505092915050565b6000616c1b82617d61565b616c258185617dc5565b9350616c3083617d36565b8060005b83811015616c61578151616c488882616b64565b9750616c5383617d9a565b925050600181019050616c34565b5085935050505092915050565b6000616c7982617d6c565b616c838185617dd6565b9350616c8e83617d46565b8060005b83811015616cbf578151616ca68882616b7c565b9750616cb183617da7565b925050600181019050616c92565b5085935050505092915050565b616cd581617f30565b82525050565b6000616ce682617d77565b616cf08185617de7565b9350616d00818560208601617fd2565b616d098161818f565b840191505092915050565b616d1d81617f9f565b82525050565b616d2c81617fb1565b82525050565b6000616d3d82617d82565b616d478185617df8565b9350616d57818560208601617fd2565b616d608161818f565b840191505092915050565b6000616d78603583617df8565b9150616d83826181ad565b604082019050919050565b6000616d9b602883617df8565b9150616da6826181fc565b604082019050919050565b6000616dbe601883617df8565b9150616dc98261824b565b602082019050919050565b6000616de1602683617df8565b9150616dec82618274565b604082019050919050565b6000616e04602583617df8565b9150616e0f826182c3565b604082019050919050565b6000616e27601f83617df8565b9150616e3282618312565b602082019050919050565b6000616e4a601a83617df8565b9150616e558261833b565b602082019050919050565b6000616e6d602a83617df8565b9150616e7882618364565b604082019050919050565b6000616e90602e83617df8565b9150616e9b826183b3565b604082019050919050565b6000616eb3601a83617df8565b9150616ebe82618402565b602082019050919050565b6000616ed6602c83617df8565b9150616ee18261842b565b604082019050919050565b6000616ef9602283617df8565b9150616f048261847a565b604082019050919050565b6000616f1c603883617df8565b9150616f27826184c9565b604082019050919050565b6000616f3f602583617df8565b9150616f4a82618518565b604082019050919050565b6000616f62602e83617df8565b9150616f6d82618567565b604082019050919050565b6000616f85602a83617df8565b9150616f90826185b6565b604082019050919050565b6000616fa8601583617df8565b9150616fb382618605565b602082019050919050565b6000616fcb602083617df8565b9150616fd68261862e565b602082019050919050565b6000616fee602483617df8565b9150616ff982618657565b604082019050919050565b6000617011603683617df8565b915061701c826186a6565b604082019050919050565b6000617034602683617df8565b915061703f826186f5565b604082019050919050565b6000617057601883617df8565b915061706282618744565b602082019050919050565b600061707a602b83617df8565b91506170858261876d565b604082019050919050565b600061709d602a83617df8565b91506170a8826187bc565b604082019050919050565b60006170c0602b83617df8565b91506170cb8261880b565b604082019050919050565b60006170e3602983617df8565b91506170ee8261885a565b604082019050919050565b6000617106602983617df8565b9150617111826188a9565b604082019050919050565b6000617129602883617df8565b9150617134826188f8565b604082019050919050565b600061714c602583617df8565b915061715782618947565b604082019050919050565b600061716f601f83617df8565b915061717a82618996565b602082019050919050565b6000617192602283617df8565b915061719d826189bf565b604082019050919050565b60006171b5601c83617df8565b91506171c082618a0e565b602082019050919050565b60006171d8601f83617df8565b91506171e382618a37565b602082019050919050565b60006171fb603483617df8565b915061720682618a60565b604082019050919050565b600061721e602583617df8565b915061722982618aaf565b604082019050919050565b6000617241602883617df8565b915061724c82618afe565b604082019050919050565b60608201600082015161726d600085018261735f565b506020820151617280602085018261735f565b5060408201516172936040850182616b94565b50505050565b6060820160008201516172af600085018261735f565b5060208201516172c2602085018261735f565b5060408201516172d56040850182616b94565b50505050565b6060820160008201516172f1600085018261735f565b506020820151617304602085018261735f565b5060408201516173176040850182616b94565b50505050565b606082016000820151617333600085018261735f565b506020820151617346602085018261735f565b5060408201516173596040850182616b94565b50505050565b61736881617f88565b82525050565b61737781617f88565b82525050565b60006020820190506173926000830184616ba3565b92915050565b60006040820190506173ad6000830185616ba3565b6173ba6020830184616ba3565b9392505050565b60006080820190506173d66000830187616ba3565b6173e36020830186616ba3565b6173f06040830185616ba3565b6173fd6060830184616ba3565b95945050505050565b600060808201905061741b6000830187616ba3565b6174286020830186616ba3565b6174356040830185616ba3565b617442606083018461736e565b95945050505050565b600060a0820190506174606000830188616ba3565b61746d6020830187616ba3565b818103604083015261747f8186616c6e565b905081810360608301526174938185616c6e565b905081810360808301526174a78184616cdb565b90509695505050505050565b60006060820190506174c86000830186616ba3565b6174d56020830185616ba3565b6174e2604083018461736e565b949350505050565b600060a0820190506174ff6000830188616ba3565b61750c6020830187616ba3565b617519604083018661736e565b6175266060830185616d14565b81810360808301526175388184616cdb565b90509695505050505050565b600060a0820190506175596000830188616ba3565b6175666020830187616ba3565b617573604083018661736e565b617580606083018561736e565b81810360808301526175928184616cdb565b90509695505050505050565b60006040820190506175b36000830185616ba3565b6175c0602083018461736e565b9392505050565b600060208201905081810360008301526175e18184616bb2565b905092915050565b600060208201905081810360008301526176038184616c10565b905092915050565b600060208201905081810360008301526176258184616c6e565b905092915050565b600060408201905081810360008301526176478185616c6e565b9050818103602083015261765b8184616c6e565b90509392505050565b60006020820190506176796000830184616ccc565b92915050565b60006020820190506176946000830184616d23565b92915050565b600060208201905081810360008301526176b48184616d32565b905092915050565b600060408201905081810360008301526176d68185616d32565b90506176e56020830184616ba3565b9392505050565b6000602082019050818103600083015261770581616d6b565b9050919050565b6000602082019050818103600083015261772581616d8e565b9050919050565b6000602082019050818103600083015261774581616db1565b9050919050565b6000602082019050818103600083015261776581616dd4565b9050919050565b6000602082019050818103600083015261778581616df7565b9050919050565b600060208201905081810360008301526177a581616e1a565b9050919050565b600060208201905081810360008301526177c581616e3d565b9050919050565b600060208201905081810360008301526177e581616e60565b9050919050565b6000602082019050818103600083015261780581616e83565b9050919050565b6000602082019050818103600083015261782581616ea6565b9050919050565b6000602082019050818103600083015261784581616ec9565b9050919050565b6000602082019050818103600083015261786581616eec565b9050919050565b6000602082019050818103600083015261788581616f0f565b9050919050565b600060208201905081810360008301526178a581616f32565b9050919050565b600060208201905081810360008301526178c581616f55565b9050919050565b600060208201905081810360008301526178e581616f78565b9050919050565b6000602082019050818103600083015261790581616f9b565b9050919050565b6000602082019050818103600083015261792581616fbe565b9050919050565b6000602082019050818103600083015261794581616fe1565b9050919050565b6000602082019050818103600083015261796581617004565b9050919050565b6000602082019050818103600083015261798581617027565b9050919050565b600060208201905081810360008301526179a58161704a565b9050919050565b600060208201905081810360008301526179c58161706d565b9050919050565b600060208201905081810360008301526179e581617090565b9050919050565b60006020820190508181036000830152617a05816170b3565b9050919050565b60006020820190508181036000830152617a25816170d6565b9050919050565b60006020820190508181036000830152617a45816170f9565b9050919050565b60006020820190508181036000830152617a658161711c565b9050919050565b60006020820190508181036000830152617a858161713f565b9050919050565b60006020820190508181036000830152617aa581617162565b9050919050565b60006020820190508181036000830152617ac581617185565b9050919050565b60006020820190508181036000830152617ae5816171a8565b9050919050565b60006020820190508181036000830152617b05816171cb565b9050919050565b60006020820190508181036000830152617b25816171ee565b9050919050565b60006020820190508181036000830152617b4581617211565b9050919050565b60006020820190508181036000830152617b6581617234565b9050919050565b6000606082019050617b816000830184617299565b92915050565b6000606082019050617b9c600083018461731d565b92915050565b6000602082019050617bb7600083018461736e565b92915050565b6000604082019050617bd2600083018561736e565b617bdf602083018461736e565b9392505050565b600060c082019050617bfb600083018961736e565b617c08602083018861736e565b617c15604083018761736e565b617c22606083018661736e565b617c2f608083018561736e565b617c3c60a083018461736e565b979650505050505050565b6000617c51617c62565b9050617c5d8282618037565b919050565b6000604051905090565b600067ffffffffffffffff821115617c8757617c8661813e565b5b602082029050602081019050919050565b600067ffffffffffffffff821115617cb357617cb261813e565b5b602082029050602081019050919050565b600067ffffffffffffffff821115617cdf57617cde61813e565b5b617ce88261818f565b9050602081019050919050565b600067ffffffffffffffff821115617d1057617d0f61813e565b5b617d198261818f565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000617e1482617f88565b9150617e1f83617f88565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115617e5457617e536180b1565b5b828201905092915050565b6000617e6a82617f88565b9150617e7583617f88565b925082617e8557617e846180e0565b5b828204905092915050565b6000617e9b82617f88565b9150617ea683617f88565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615617edf57617ede6180b1565b5b828202905092915050565b6000617ef582617f88565b9150617f0083617f88565b925082821015617f1357617f126180b1565b5b828203905092915050565b6000617f2982617f68565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000617faa82617f88565b9050919050565b6000617fbc82617f92565b9050919050565b82818337600083830152505050565b60005b83811015617ff0578082015181840152602081019050617fd5565b83811115617fff576000848401525b50505050565b6000600282049050600182168061801d57607f821691505b602082108114156180315761803061810f565b5b50919050565b6180408261818f565b810181811067ffffffffffffffff8211171561805f5761805e61813e565b5b80604052505050565b600061807382617f88565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156180a6576180a56180b1565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d111561818c5760046000803e6181896000516181a0565b90505b90565b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f54686520746f6b656e206973206e6f7420617070726f76656420746f2074726160008201527f6e736665722062792074686520636f6e74726163740000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f43616e27742073657420746f2061646472657373203078300000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f546f6b656e206f776e65722063616e277420627579207468656972206f776e2060008201527f746f6b656e000000000000000000000000000000000000000000000000000000602082015250565b7f4c697374696e6720616e642062696420617265206e6f7420656e61626c656400600082015250565b7f5468697320746f6b656e206973206e6f74207265676973746564000000000000600082015250565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b7f506c656173652062696420666f72206d6f7265207468616e2030000000000000600082015250565b7f5468652076616c75652073656e642069732062656c6f772073616c652070726960008201527f636520706c757320666565730000000000000000000000000000000000000000602082015250565b7f5468697320546f6b656e2062656c6f6e677320746f207468697320616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f506c65617365206c69737420666f72206d6f7265207468616e2030206f72207560008201527f736520746865207472616e736665722066756e6374696f6e0000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f546f6b656e206973206e6f7420666f722073616c650000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f5468697320746f6b656e20646f6e27742073657420637265617465722061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f5468697320746f6b656e206973206e6f7420616c6c6f77656420746f2074726160008201527f6e73666572206279207468697320636f6e747261637400000000000000000000602082015250565b7f5468697320746f6b656e20646f65736e277420686176652061206d617463686960008201527f6e67206269640000000000000000000000000000000000000000000000000000602082015250565b7f61756374696f6e3a2077726f6e6720646576656c6f7065720000000000000000600082015250565b7f54686973206164647265737320646f65736e2774206861766520626964206f6e60008201527f207468697320746f6b656e000000000000000000000000000000000000000000602082015250565b7f4f6e6c7920746f6b656e206f776e65722063616e206368616e6765207072696360008201527f65206f6620746f6b656e00000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f5468697320746f6b656e20646f6e2774207365742070726f647563657220616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f4f6e6c7920746f6b656e2073656c6c65722063616e2064656c69737420746f6b60008201527f656e000000000000000000000000000000000000000000000000000000000000602082015250565b7f5468652076616c75652073656e642069732062656c6f77207a65726f00000000600082015250565b7f4f6e6c7920746f6b656e206f776e65722063616e206c69737420746f6b656e00600082015250565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f416c6c6f7765642070657263656e746167652072616e6765206973203120746f60008201527f2031303030000000000000000000000000000000000000000000000000000000602082015250565b7f4f6e6c7920746f6b656e206f776e65722063616e20616363657074206269642060008201527f6f6620746f6b656e000000000000000000000000000000000000000000000000602082015250565b600060443d1015618b5d57618be0565b618b65617c62565b60043d036004823e80513d602482011167ffffffffffffffff82111715618b8d575050618be0565b808201805167ffffffffffffffff811115618bab5750505050618be0565b80602083010160043d038501811115618bc8575050505050618be0565b618bd782602001850186618037565b82955050505050505b90565b618bec81617f1e565b8114618bf757600080fd5b50565b618c0381617f30565b8114618c0e57600080fd5b50565b618c1a81617f3c565b8114618c2557600080fd5b50565b618c3181617f88565b8114618c3c57600080fd5b5056fea2646970667358221220078a966d326d006506a47eb93051fb6de2774828da75053e1834c8e322e7247f64736f6c63430008030033