Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 19 from a total of 19 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Treasury Fee | 17716945 | 559 days ago | IN | 0 ETH | 0.0004288 | ||||
Buy Token | 14698295 | 1000 days ago | IN | 1.991 ETH | 0.02041784 | ||||
Buy Token | 14667109 | 1005 days ago | IN | 0.1991 ETH | 0.02026699 | ||||
Buy Token | 14587538 | 1018 days ago | IN | 0.1991 ETH | 0.01155648 | ||||
Buy Token | 14585522 | 1018 days ago | IN | 0.1991 ETH | 0.01663045 | ||||
Buy Token | 14578487 | 1019 days ago | IN | 0.1991 ETH | 0.01571178 | ||||
Buy Token | 14578481 | 1019 days ago | IN | 0.1991 ETH | 0.01448243 | ||||
Buy Token | 14578475 | 1019 days ago | IN | 0.1991 ETH | 0.01527706 | ||||
Buy Token | 14547207 | 1024 days ago | IN | 0.1991 ETH | 0.01281638 | ||||
Buy Token | 14546950 | 1024 days ago | IN | 0.1991 ETH | 0.01549828 | ||||
Update Offer Ran... | 14492800 | 1032 days ago | IN | 0 ETH | 0.00302467 | ||||
Buy Token | 14490040 | 1033 days ago | IN | 0.1 ETH | 0.0159881 | ||||
Set Custom Payme... | 14488983 | 1033 days ago | IN | 0 ETH | 0.01905501 | ||||
Buy Token Batch | 14478658 | 1035 days ago | IN | 0 ETH | 0.11964208 | ||||
Buy Token Batch | 14478453 | 1035 days ago | IN | 100 wei | 0.01031128 | ||||
Update Offer Ran... | 14477906 | 1035 days ago | IN | 0 ETH | 0.00593706 | ||||
Update Offer Ran... | 14477898 | 1035 days ago | IN | 0 ETH | 0.00426139 | ||||
Update Offer Ran... | 14477880 | 1035 days ago | IN | 0 ETH | 0.00496305 | ||||
Add Offer | 14476765 | 1035 days ago | IN | 0 ETH | 0.0423011 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
14698295 | 1000 days ago | 0.001991 ETH | ||||
14698295 | 1000 days ago | 0.017919 ETH | ||||
14698295 | 1000 days ago | 1.7919 ETH | ||||
14698295 | 1000 days ago | 0.011946 ETH | ||||
14698295 | 1000 days ago | 0.083622 ETH | ||||
14698295 | 1000 days ago | 0.083622 ETH | ||||
14667109 | 1005 days ago | 0.001991 ETH | ||||
14667109 | 1005 days ago | 0.017919 ETH | ||||
14667109 | 1005 days ago | 0.011946 ETH | ||||
14667109 | 1005 days ago | 0.083622 ETH | ||||
14667109 | 1005 days ago | 0.083622 ETH | ||||
14587538 | 1018 days ago | 0.001991 ETH | ||||
14587538 | 1018 days ago | 0.017919 ETH | ||||
14587538 | 1018 days ago | 0.011946 ETH | ||||
14587538 | 1018 days ago | 0.083622 ETH | ||||
14587538 | 1018 days ago | 0.083622 ETH | ||||
14585522 | 1018 days ago | 0.001991 ETH | ||||
14585522 | 1018 days ago | 0.017919 ETH | ||||
14585522 | 1018 days ago | 0.011946 ETH | ||||
14585522 | 1018 days ago | 0.083622 ETH | ||||
14585522 | 1018 days ago | 0.083622 ETH | ||||
14578487 | 1019 days ago | 0.001991 ETH | ||||
14578487 | 1019 days ago | 0.017919 ETH | ||||
14578487 | 1019 days ago | 0.011946 ETH | ||||
14578487 | 1019 days ago | 0.083622 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Minter_Marketplace
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.9; // Used on interfaces import '@openzeppelin/contracts/access/AccessControl.sol'; import "../Tokens/IRAIR-ERC721.sol"; import "../Tokens/IERC2981.sol"; // Parent classes import '@openzeppelin/contracts/access/Ownable.sol'; import 'hardhat/console.sol'; /// @title Minter Marketplace /// @notice Handles the minting of ERC721 RAIR Tokens /// @author Juan M. Sanchez M. /// @dev Uses AccessControl for the minting mechanisms on other tokens! contract Minter_Marketplace is Ownable { struct offer { address contractAddress; address nodeAddress; uint productIndex; uint[] tokenRangeStart; uint[] tokenRangeEnd; uint[] tokensAllowed; uint[] rangePrice; string[] rangeName; } // Auxiliary struct used to avoid "stack too deep" errors struct productInfo { uint start; uint end; uint mintableTokens; } struct customPayment { address[] recipients; uint[] percentages; } uint16 public constant feeDecimals = 3; mapping(address => mapping(uint => uint)) internal _contractToOffers; mapping(uint => customPayment) internal customPayments; offer[] offerCatalog; address public treasury; uint public openSales; uint16 public treasuryFee; uint16 public nodeFee; event AddedOffer(address contractAddress, uint productIndex, uint rangesCreated, uint catalogIndex); event UpdatedOffer(address contractAddress, uint offerIndex, uint rangeIndex, uint tokens, uint price, string name); event AppendedRange(address contractAddress, uint productIndex, uint offerIndex, uint rangeIndex, uint startToken, uint endToken, uint price, string name); event TokenMinted(address ownerAddress, address contractAddress, uint catalogIndex, uint rangeIndex, uint tokenIndex); event SoldOut(address contractAddress, uint catalogIndex, uint rangeIndex); event CustomPaymentSet(uint catalogIndex, address[] recipients, uint[] percentages); event ChangedTreasury(address newTreasury); event ChangedTreasuryFee(address treasury, uint16 newTreasuryFee); event ChangedNodeFee(uint16 newNodeFee); /// @notice Constructor /// @dev Should start up with the treasury, node and treasury fee /// @param _treasury The address of the Treasury /// @param _treasuryFee Fee given to the treasury every sale (Recommended default: 9%) /// @param _nodeFee Fee given to the node on every sale (Recommended default: 1%) constructor(address _treasury, uint16 _treasuryFee, uint16 _nodeFee) { treasury = _treasury; treasuryFee = _treasuryFee; nodeFee = _nodeFee; openSales = 0; } function setCustomPayment(uint catalogIndex, address[] calldata recipients, uint[] calldata percentages) external { require(recipients.length == percentages.length, "Minting Marketplace: Recipients and Percentages should have the same length"); require(offerCatalog.length > 0, "Minting Marketplace: There are no offer pools"); require(catalogIndex <= offerCatalog.length, "Minting Marketplace: Offer Pool doesn't exist"); require(offerCatalog[catalogIndex].contractAddress != address(0), "Minting Marketplace: Invalid offer pool data"); validateRoles(offerCatalog[catalogIndex].contractAddress); uint total = 0; for (uint i = 0; i < recipients.length; i++) { total = total + percentages[i]; } require(total + treasuryFee + nodeFee == 100000, "Minting Marketplace: Percentages should add up to 100% (100000, including node fee and treasury fee)"); customPayment storage aux = customPayments[catalogIndex]; aux.recipients = recipients; aux.percentages = percentages; emit CustomPaymentSet(catalogIndex, recipients, percentages); } /// @notice View function that returns the offer given a contract address and a product index /// @param erc721Address Address of the RAIR Token contract /// @param productIndex Index of the product /// @param offerIndex Index of the offer with all the ranges function contractToOfferRange(address erc721Address, uint productIndex) public view returns (uint offerIndex) { require(offerCatalog.length > 0, "Minting Marketplace: There are no offers registered"); require(offerCatalog[(_contractToOffers[erc721Address][productIndex])].contractAddress == erc721Address, "Minting Marketplace: There are no offers registered for that address"); require(offerCatalog[(_contractToOffers[erc721Address][productIndex])].productIndex == productIndex, "Minting Marketplace: There are is no offer registered for that product"); return (_contractToOffers[erc721Address][productIndex]); } /// @notice Sets the new treasury address /// @dev Make sure the treasury is a wallet address! /// @dev If the treasury is a contract, make sure it has a receive function! /// @param _newTreasury New address function setTreasuryAddress(address _newTreasury) public onlyOwner { treasury = _newTreasury; emit ChangedTreasury(_newTreasury); } /// @notice Sets the new treasury fee /// @param _newFee New Fee function setTreasuryFee(uint16 _newFee) public onlyOwner { treasuryFee = _newFee; emit ChangedTreasuryFee(treasury, _newFee); } /// @notice Sets the new fee paid to nodes /// @param _newFee New Fee function setNodeFee(uint16 _newFee) public onlyOwner { nodeFee = _newFee; emit ChangedNodeFee(_newFee); } /// @notice Returns the number of collections on the market /// @dev Includes completed collections though function getOfferCount() public view returns(uint) { return offerCatalog.length; } /// @notice Returns the basic information about an offer /// @dev Translates the internal offer schema to individual values /// @param _index Index of the offer in this contract function getOfferInfo(uint _index) public view returns(address contractAddress, uint productIndex, address nodeAddress, uint availableRanges) { offer memory selectedOffer = offerCatalog[_index]; return ( selectedOffer.contractAddress, selectedOffer.productIndex, selectedOffer.nodeAddress, selectedOffer.rangeName.length ); } /// @notice Returns the information about an offer's range /// @dev Translates the internal offer schema to individual values /// @param offerIndex Index of the offer in this contract /// @param rangeIndex Index of the range inside the contract function getOfferRangeInfo(uint offerIndex, uint rangeIndex) public view returns( address contractAddress, uint collectionIndex, uint tokenStart, uint tokenEnd, uint tokensAllowed, uint price, string memory name) { offer memory selectedOffer = offerCatalog[offerIndex]; return (selectedOffer.contractAddress, selectedOffer.productIndex, selectedOffer.tokenRangeStart[rangeIndex], selectedOffer.tokenRangeEnd[rangeIndex], selectedOffer.tokensAllowed[rangeIndex], selectedOffer.rangePrice[rangeIndex], selectedOffer.rangeName[rangeIndex]); } /// @notice Makes sure the starting and ending tokens are correct /// @param start Starting token /// @param end Ending token function _validateRangeInfo(uint start, uint end, uint parentStart, uint parentEnd) internal pure { require(start <= end, "Minting Marketplace: Range's starting token has to be less than the range's ending token!"); require((parentStart + end) <= parentEnd, "Minting Marketplace: Range's ending token has to be less or equal than the product's ending token!"); } /// @notice Validates that the Minter Marketplace and the message sender have the correct roles inside the ERC721 /// @dev Doubles as a view function for anyone wondering if they can mint or if they need to approve the marketplace /// @param tokenAddress Address of the token to validate function validateRoles(address tokenAddress) public view returns (bool canOffer) { require(IAccessControl(tokenAddress).hasRole(bytes32(keccak256("MINTER")), address(this)), "Minting Marketplace: This Marketplace isn't a Minter!"); require(IAccessControl(tokenAddress).hasRole(bytes32(keccak256("CREATOR")), address(msg.sender)), "Minting Marketplace: Sender isn't the creator!"); return true; } /// @notice Inserts a range inside the offer /// @param offerIndex Index of the offer to append ranges to /// @param startToken Starting token /// @param endToken Ending token /// @param price Price of that specific range /// @param name Name of the range function _appendOfferRange( uint offerIndex, uint startToken, uint endToken, uint price, string memory name ) internal { offer storage selectedOffer = offerCatalog[offerIndex]; selectedOffer.tokenRangeStart.push(startToken); selectedOffer.tokenRangeEnd.push(endToken); selectedOffer.rangePrice.push(price); selectedOffer.tokensAllowed.push((endToken - startToken) + 1); selectedOffer.rangeName.push(name); emit AppendedRange( selectedOffer.contractAddress, selectedOffer.productIndex, offerIndex, selectedOffer.rangeName.length - 1, startToken, endToken, price, name); openSales++; } /// @notice Adds an offer to the market's catalog /// @dev It validates that the collection has mintable tokens left /// @dev It validates that the number of tokens allowed to sell is less or equal than the number of mintable tokens /// @param _tokenAddress Address of the ERC721 /// @param _productIndex Index of the collection inside the ERC721 /// @param _rangeStartToken Starting token inside the ERC721 (for each range) /// @param _rangeEndToken Ending token inside the ERC721 (for each range) /// @param _rangePrice Price of each range (for each range) /// @param _rangeName Name (for each range) /// @param _nodeAddress Address of the node to be paid function addOffer( address _tokenAddress, uint _productIndex, uint[] calldata _rangeStartToken, uint[] calldata _rangeEndToken, uint[] calldata _rangePrice, string[] calldata _rangeName, address _nodeAddress) external { validateRoles(_tokenAddress); require(_rangeStartToken.length == _rangeEndToken.length && _rangePrice.length == _rangeStartToken.length && _rangeName.length == _rangePrice.length, "Minting Marketplace: Offer's ranges should have the same length!"); if (offerCatalog.length > 0) { if (_contractToOffers[_tokenAddress][_productIndex] == 0) { require(offerCatalog[_contractToOffers[_tokenAddress][_productIndex]].contractAddress != _tokenAddress || offerCatalog[_contractToOffers[_tokenAddress][_productIndex]].productIndex != _productIndex, "Minting Marketplace: An offer already exists for this contract and product"); } else { require(_contractToOffers[_tokenAddress][_productIndex] == 0, "Minting Marketplace: An offer already exists for this contract and product"); } } productInfo memory aux; (aux.start, aux.end, aux.mintableTokens,,) = IRAIR_ERC721(_tokenAddress).getProduct(_productIndex); require(aux.mintableTokens > 0, "Minting Marketplace: Cannot mint more tokens from this Product!"); offer storage newOffer = offerCatalog.push(); newOffer.contractAddress = _tokenAddress; newOffer.nodeAddress = _nodeAddress; newOffer.productIndex = _productIndex; for (uint i = 0; i < _rangeName.length; i++) { _validateRangeInfo(_rangeStartToken[i], _rangeEndToken[i], aux.start, aux.end); _appendOfferRange( offerCatalog.length - 1, _rangeStartToken[i], _rangeEndToken[i], _rangePrice[i], _rangeName[i] ); } _contractToOffers[_tokenAddress][_productIndex] = offerCatalog.length - 1; emit AddedOffer(_tokenAddress, _productIndex, _rangeName.length, offerCatalog.length - 1); } function updateOfferRange( uint offerIndex, uint rangeIndex, uint startToken, uint endToken, uint price, string calldata name ) external { offer storage selectedOffer = offerCatalog[offerIndex]; require(endToken <= selectedOffer.tokenRangeEnd[rangeIndex] && startToken >= selectedOffer.tokenRangeStart[rangeIndex], 'Minting Marketplace: New limits must be within the previous limits!'); validateRoles(selectedOffer.contractAddress); productInfo memory aux; (aux.start, aux.end,,,) = IRAIR_ERC721(selectedOffer.contractAddress).getProduct(selectedOffer.productIndex); _validateRangeInfo(startToken, endToken, aux.start, aux.end); selectedOffer.tokensAllowed[rangeIndex] -= (selectedOffer.tokenRangeEnd[rangeIndex] - selectedOffer.tokenRangeStart[rangeIndex]) - (endToken - startToken); selectedOffer.tokenRangeStart[rangeIndex] = startToken; selectedOffer.tokenRangeEnd[rangeIndex] = endToken; selectedOffer.rangePrice[rangeIndex] = price; selectedOffer.rangeName[rangeIndex] = name; emit UpdatedOffer(selectedOffer.contractAddress, offerIndex, rangeIndex, selectedOffer.tokensAllowed[rangeIndex], price, name); } function appendOfferRange( uint offerIndex, uint startToken, uint endToken, uint price, string calldata name ) public { validateRoles(offerCatalog[offerIndex].contractAddress); productInfo memory aux; (aux.start, aux.end,,,) = IRAIR_ERC721(offerCatalog[offerIndex].contractAddress).getProduct(offerCatalog[offerIndex].productIndex); _validateRangeInfo(startToken, endToken, aux.start, aux.end); _appendOfferRange( offerIndex, startToken, endToken, price, name ); } function appendOfferRangeBatch( uint offerIndex, uint[] memory startTokens, uint[] memory endTokens, uint[] memory prices, string[] memory names ) public { require(startTokens.length == endTokens.length && prices.length == startTokens.length && names.length == prices.length, "Minting Marketplace: Offer's ranges should have the same length!"); validateRoles(offerCatalog[offerIndex].contractAddress); productInfo memory aux; (aux.start, aux.end,,,) = IRAIR_ERC721(offerCatalog[offerIndex].contractAddress).getProduct(offerCatalog[offerIndex].productIndex); for (uint i = 0; i < names.length; i++) { _validateRangeInfo(startTokens[i], endTokens[i], aux.start, aux.end); _appendOfferRange( offerIndex, startTokens[i], endTokens[i], prices[i], names[i] ); } } /// @notice Receives funds and mints a new token for the sender /// @dev It validates that the Marketplace is still a minter /// @dev It splits the funds in 3 ways /// @dev It validates that the ERC721 token supports the interface for royalties and only then, it will give the funds to the creator /// @dev If the ERC721 collection doesn't have any mintable tokens left, it will revert using the ERC721 error, not in the marketplace! /// @param catalogIndex Index of the sale within the catalog /// @param rangeIndex Index of the range within the offer /// @param internalTokenIndex Index of the token within the range function buyToken(uint catalogIndex, uint rangeIndex, uint internalTokenIndex) payable public { offer storage selectedProduct = offerCatalog[catalogIndex]; require(selectedProduct.contractAddress != address(0), "Minting Marketplace: Invalid Product Selected!"); require((selectedProduct.tokensAllowed.length > rangeIndex), "Minting Marketplace: Invalid range!"); require((selectedProduct.tokensAllowed[rangeIndex] > 0), "Minting Marketplace: Cannot mint more tokens for this range!"); require(selectedProduct.tokenRangeStart[rangeIndex] <= internalTokenIndex && internalTokenIndex <= selectedProduct.tokenRangeEnd[rangeIndex], "Minting Marketplace: Token doesn't belong in that offer range!"); require(msg.value >= selectedProduct.rangePrice[rangeIndex], "Minting Marketplace: Insuficient Funds!"); customPayment storage aux = customPayments[catalogIndex]; if (aux.recipients.length > 0) { for (uint i = 0; i < aux.recipients.length; i++) { payable(aux.recipients[i]).transfer((selectedProduct.rangePrice[rangeIndex] * aux.percentages[i]) / 100000); } } else { address creatorAddress; uint256 amount; bool hasFees = IERC2981(selectedProduct.contractAddress).supportsInterface(type(IERC2981).interfaceId); // If the token minted supports the EIP2981 interface, ask for the creator fee! if (hasFees) { (creatorAddress, amount) = IRAIR_ERC721(selectedProduct.contractAddress).royaltyInfo(0, selectedProduct.rangePrice[rangeIndex]); // Send the creator fee to the creator // Should send whatever's left after transferring treasury and node fees payable(creatorAddress).transfer(selectedProduct.rangePrice[rangeIndex] * (100000 - (treasuryFee + nodeFee)) / 100000); } } // Pay the buyer any excess they transferred payable(msg.sender).transfer(msg.value - selectedProduct.rangePrice[rangeIndex]); // Pay the treasury payable(treasury).transfer((selectedProduct.rangePrice[rangeIndex] * treasuryFee) / 100000); // Pay the node payable(selectedProduct.nodeAddress).transfer((selectedProduct.rangePrice[rangeIndex] * nodeFee) / 100000); selectedProduct.tokensAllowed[rangeIndex]--; if (selectedProduct.tokensAllowed[rangeIndex] == 0) { openSales--; emit SoldOut(selectedProduct.contractAddress, catalogIndex, rangeIndex); } IRAIR_ERC721(selectedProduct.contractAddress).mint(msg.sender, selectedProduct.productIndex, internalTokenIndex); emit TokenMinted(msg.sender, selectedProduct.contractAddress, catalogIndex, rangeIndex, internalTokenIndex); } function buyTokenBatch(uint catalogIndex, uint rangeIndex, uint[] calldata tokenIndexes, address[] calldata recipients) payable external { offer storage selectedProduct = offerCatalog[catalogIndex]; require(selectedProduct.contractAddress != address(0), "Minting Marketplace: Invalid Product Selected!"); require((selectedProduct.tokensAllowed.length > rangeIndex), "Minting Marketplace: Invalid range!"); require((selectedProduct.tokensAllowed[rangeIndex] >= tokenIndexes.length), "Minting Marketplace: Cannot mint that many tokens for this range!"); require(msg.value >= (selectedProduct.rangePrice[rangeIndex] * tokenIndexes.length), "Minting Marketplace: Insuficient Funds!"); require(tokenIndexes.length == recipients.length, "Minting Marketplace: Token Indexes and Recipients should have the same length"); customPayment storage aux = customPayments[catalogIndex]; if (aux.recipients.length > 0) { for (uint i = 0; i < aux.recipients.length; i++) { payable(aux.recipients[i]).transfer(((selectedProduct.rangePrice[rangeIndex] * aux.percentages[i]) / 100000) * tokenIndexes.length); } } else { address creatorAddress; uint256 amount; bool hasFees = IERC2981(selectedProduct.contractAddress).supportsInterface(type(IERC2981).interfaceId); // If the token minted supports the EIP2981 interface, ask for the creator fee! if (hasFees) { (creatorAddress, amount) = IRAIR_ERC721(selectedProduct.contractAddress).royaltyInfo(0, selectedProduct.rangePrice[rangeIndex]); // Send the creator fee to the creator // Should send whatever's left after transferring treasury and node fees payable(creatorAddress).transfer((selectedProduct.rangePrice[rangeIndex] * (100000 - (treasuryFee + nodeFee)) / 100000) * tokenIndexes.length); } } // Pay the buyer any excess they transferred payable(msg.sender).transfer(msg.value - (selectedProduct.rangePrice[rangeIndex] * tokenIndexes.length)); // Pay the treasury payable(treasury).transfer(((selectedProduct.rangePrice[rangeIndex] * treasuryFee) / 100000) * tokenIndexes.length); // Pay the node payable(selectedProduct.nodeAddress).transfer(((selectedProduct.rangePrice[rangeIndex] * nodeFee) / 100000) * tokenIndexes.length); selectedProduct.tokensAllowed[rangeIndex] -= tokenIndexes.length; if (selectedProduct.tokensAllowed[rangeIndex] == 0) { openSales--; emit SoldOut(selectedProduct.contractAddress, catalogIndex, rangeIndex); } for (uint256 i = 0; i < tokenIndexes.length; i++) { require(selectedProduct.tokenRangeStart[rangeIndex] <= tokenIndexes[i] && tokenIndexes[i] <= selectedProduct.tokenRangeEnd[rangeIndex], "Minting Marketplace: Token doesn't belong in that offer range!"); IRAIR_ERC721(selectedProduct.contractAddress).mint(recipients[i], selectedProduct.productIndex, tokenIndexes[i]); emit TokenMinted(recipients[i], selectedProduct.contractAddress, catalogIndex, rangeIndex, tokenIndexes[i]); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.9; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; interface IRAIR_ERC721 is IERC721 { event ProductCreated(uint indexed id, string name, uint startingToken, uint length); event ProductCompleted(uint indexed id, string name); event RangeLocked(uint productIndex, uint startingToken, uint endingToken, uint tokensLocked, string productName, uint lockIndex); event RangeUnlocked(uint productID, uint startingToken, uint endingToken); event BaseURIChanged(string newURI); event TokenURIChanged(uint tokenId, string newURI); event ProductURIChanged(uint productId, string newURI); event ContractURIChanged(string newURI); // For OpenSea's Freezing event PermanentURI(string _value, uint256 indexed _id); // Get the total number of products in the contract function getProductCount() external view returns(uint); // Get a specific product in the contract function getProduct(uint index) external view returns(uint startingToken, uint endingToken, uint mintableTokensLeft, string memory productName, uint[] memory locks); // Mint a token inside a product function mint(address to, uint productID, uint index) external; // Ask for the royalty info of the creator function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.9; interface IERC2981 { /// ERC165 bytes to add to interface array - set in parent contract /// implementing this standard /// /// bytes4(keccak256("royaltyInfo(uint256,uint256,bytes)")) == 0xc155531d /// bytes4 private constant _INTERFACE_ID_ERC2981 = 0xc155531d; /// _registerInterface(_INTERFACE_ID_ERC2981); /// @notice Called with the sale price to determine how much royalty // is owed and to whom. /// @param _tokenId - the NFT asset queried for royalty information /// @param _salePrice - the sale price of the NFT asset specified by _tokenId /// @return receiver - address of who should be sent the royalty payment /// @return royaltyAmount - the royalty payment amount for _value sale price function royaltyInfo( uint256 _tokenId, uint256 _salePrice) external returns ( address receiver, uint256 royaltyAmount); /// @notice Informs callers that this contract supports ERC2981 /// @dev If `_registerInterface(_INTERFACE_ID_ERC2981)` is called /// in the initializer, this should be automatic /// @param interfaceID The interface identifier, as specified in ERC-165 /// @return `true` if the contract implements /// `_INTERFACE_ID_ERC2981` and `false` otherwise function supportsInterface(bytes4 interfaceID) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.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 Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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); } }
// 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(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", 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(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", 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(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", 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, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", 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, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", 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(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", 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, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", 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, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", 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, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", 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, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", 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, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", 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, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", 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, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", 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, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", 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(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", 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, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", 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, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", 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, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", 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, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", 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, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", 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, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", 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, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", 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, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", 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, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", 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)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"uint16","name":"_treasuryFee","type":"uint16"},{"internalType":"uint16","name":"_nodeFee","type":"uint16"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"productIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rangesCreated","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"catalogIndex","type":"uint256"}],"name":"AddedOffer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"productIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"offerIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rangeIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"}],"name":"AppendedRange","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"newNodeFee","type":"uint16"}],"name":"ChangedNodeFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newTreasury","type":"address"}],"name":"ChangedTreasury","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"treasury","type":"address"},{"indexed":false,"internalType":"uint16","name":"newTreasuryFee","type":"uint16"}],"name":"ChangedTreasuryFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"catalogIndex","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"recipients","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"percentages","type":"uint256[]"}],"name":"CustomPaymentSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"catalogIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rangeIndex","type":"uint256"}],"name":"SoldOut","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"ownerAddress","type":"address"},{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"catalogIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rangeIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenIndex","type":"uint256"}],"name":"TokenMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"offerIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rangeIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokens","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"}],"name":"UpdatedOffer","type":"event"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_productIndex","type":"uint256"},{"internalType":"uint256[]","name":"_rangeStartToken","type":"uint256[]"},{"internalType":"uint256[]","name":"_rangeEndToken","type":"uint256[]"},{"internalType":"uint256[]","name":"_rangePrice","type":"uint256[]"},{"internalType":"string[]","name":"_rangeName","type":"string[]"},{"internalType":"address","name":"_nodeAddress","type":"address"}],"name":"addOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"offerIndex","type":"uint256"},{"internalType":"uint256","name":"startToken","type":"uint256"},{"internalType":"uint256","name":"endToken","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"string","name":"name","type":"string"}],"name":"appendOfferRange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"offerIndex","type":"uint256"},{"internalType":"uint256[]","name":"startTokens","type":"uint256[]"},{"internalType":"uint256[]","name":"endTokens","type":"uint256[]"},{"internalType":"uint256[]","name":"prices","type":"uint256[]"},{"internalType":"string[]","name":"names","type":"string[]"}],"name":"appendOfferRangeBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"catalogIndex","type":"uint256"},{"internalType":"uint256","name":"rangeIndex","type":"uint256"},{"internalType":"uint256","name":"internalTokenIndex","type":"uint256"}],"name":"buyToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"catalogIndex","type":"uint256"},{"internalType":"uint256","name":"rangeIndex","type":"uint256"},{"internalType":"uint256[]","name":"tokenIndexes","type":"uint256[]"},{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"buyTokenBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"erc721Address","type":"address"},{"internalType":"uint256","name":"productIndex","type":"uint256"}],"name":"contractToOfferRange","outputs":[{"internalType":"uint256","name":"offerIndex","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDecimals","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOfferCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getOfferInfo","outputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"productIndex","type":"uint256"},{"internalType":"address","name":"nodeAddress","type":"address"},{"internalType":"uint256","name":"availableRanges","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"offerIndex","type":"uint256"},{"internalType":"uint256","name":"rangeIndex","type":"uint256"}],"name":"getOfferRangeInfo","outputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"collectionIndex","type":"uint256"},{"internalType":"uint256","name":"tokenStart","type":"uint256"},{"internalType":"uint256","name":"tokenEnd","type":"uint256"},{"internalType":"uint256","name":"tokensAllowed","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"string","name":"name","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nodeFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openSales","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"catalogIndex","type":"uint256"},{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"percentages","type":"uint256[]"}],"name":"setCustomPayment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_newFee","type":"uint16"}],"name":"setNodeFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTreasury","type":"address"}],"name":"setTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_newFee","type":"uint16"}],"name":"setTreasuryFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"offerIndex","type":"uint256"},{"internalType":"uint256","name":"rangeIndex","type":"uint256"},{"internalType":"uint256","name":"startToken","type":"uint256"},{"internalType":"uint256","name":"endToken","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"string","name":"name","type":"string"}],"name":"updateOfferRange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"validateRoles","outputs":[{"internalType":"bool","name":"canOffer","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200456d3803806200456d8339810160408190526200003491620000f7565b6200003f336200008f565b600480546001600160a01b039094166001600160a01b0319909416939093179092556006805461ffff938416620100000263ffffffff19909116939092169290921717905560006005556200014e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b805161ffff81168114620000f257600080fd5b919050565b6000806000606084860312156200010d57600080fd5b83516001600160a01b03811681146200012557600080fd5b92506200013560208501620000df565b91506200014560408501620000df565b90509250925092565b61440f806200015e6000396000f3fe6080604052600436106101405760003560e01c80639c13108c116100b6578063d048db371161006f578063d048db37146103d7578063de2d554b146103ec578063e4ccbe6c146103ff578063f2fde38b1461041f578063f41625301461043f578063f7ca892a1461046057600080fd5b80639c13108c146102f3578063a652db4914610321578063b430029514610341578063ca3dba5d14610361578063cc0f178614610394578063cc32d176146103bc57600080fd5b806361d027b31161010857806361d027b3146102285780636605bfda14610260578063665b64dd14610280578063715018a6146102a057806375cb00ea146102b55780638da5cb5b146102d557600080fd5b806326502ed7146101455780632a1da9821461015a5780633539a52c146101b857806338b2c833146101d8578063607814b2146101f8575b600080fd5b61015861015336600461363c565b610476565b005b34801561016657600080fd5b5061017a6101753660046136be565b610db1565b6040516101af94939291906001600160a01b039485168152602081019390935292166040820152606081019190915260800190565b60405180910390f35b3480156101c457600080fd5b506101586101d3366004613718565b611066565b3480156101e457600080fd5b506101586101f336600461386a565b6111f6565b34801561020457600080fd5b50610218610213366004613a00565b61141a565b60405190151581526020016101af565b34801561023457600080fd5b50600454610248906001600160a01b031681565b6040516001600160a01b0390911681526020016101af565b34801561026c57600080fd5b5061015861027b366004613a00565b61162c565b34801561028c57600080fd5b5061015861029b366004613a24565b6116ab565b3480156102ac57600080fd5b50610158611ba6565b3480156102c157600080fd5b506101586102d0366004613b16565b611bdc565b3480156102e157600080fd5b506000546001600160a01b0316610248565b3480156102ff57600080fd5b5061031361030e366004613b89565b611f56565b6040519081526020016101af565b34801561032d57600080fd5b5061015861033c366004613bb5565b61218e565b34801561034d57600080fd5b5061015861035c366004613bd9565b612210565b34801561036d57600080fd5b5061038161037c366004613c52565b61259d565b6040516101af9796959493929190613ccc565b3480156103a057600080fd5b506103a9600381565b60405161ffff90911681526020016101af565b3480156103c857600080fd5b506006546103a99061ffff1681565b3480156103e357600080fd5b50600354610313565b6101586103fa366004613d18565b6128f2565b34801561040b57600080fd5b5061015861041a366004613bb5565b61305c565b34801561042b57600080fd5b5061015861043a366004613a00565b6130d4565b34801561044b57600080fd5b506006546103a99062010000900461ffff1681565b34801561046c57600080fd5b5061031360055481565b60006003878154811061048b5761048b613d44565b6000918252602090912060089091020180549091506001600160a01b03166104ce5760405162461bcd60e51b81526004016104c590613d5a565b60405180910390fd5b600581015486106104f15760405162461bcd60e51b81526004016104c590613da8565b8484905081600501878154811061050a5761050a613d44565b906000526020600020015410156105935760405162461bcd60e51b815260206004820152604160248201527f4d696e74696e67204d61726b6574706c6163653a2043616e6e6f74206d696e7460448201527f2074686174206d616e7920746f6b656e7320666f7220746869732072616e67656064820152602160f81b608482015260a4016104c5565b848490508160060187815481106105ac576105ac613d44565b90600052602060002001546105c19190613e01565b3410156105e05760405162461bcd60e51b81526004016104c590613e20565b83821461066b5760405162461bcd60e51b815260206004820152604d60248201527f4d696e74696e67204d61726b6574706c6163653a20546f6b656e20496e64657860448201527f657320616e6420526563697069656e74732073686f756c64206861766520746860648201526c0ca40e6c2daca40d8cadccee8d609b1b608482015260a4016104c5565b60008781526002602052604090208054156107655760005b815481101561075f578160000181815481106106a1576106a1613d44565b6000918252602090912001546001830180546001600160a01b03909216916108fc918991620186a09190869081106106db576106db613d44565b9060005260206000200154876006018d815481106106fb576106fb613d44565b90600052602060002001546107109190613e01565b61071a9190613e67565b6107249190613e01565b6040518115909202916000818181858888f1935050505015801561074c573d6000803e3d6000fd5b508061075781613e89565b915050610683565b50610956565b81546040516301ffc9a760e01b8152632baae9fd60e01b6004820152600091829182916001600160a01b0316906301ffc9a79060240160206040518083038186803b1580156107b357600080fd5b505afa1580156107c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107eb9190613ea4565b905080156109525784546006860180546001600160a01b0390921691632a55205a916000918e90811061082057610820613d44565b90600052602060002001546040518363ffffffff1660e01b8152600401610851929190918252602082015260400190565b604080518083038186803b15801561086857600080fd5b505afa15801561087c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a09190613ec6565b60065491945092506001600160a01b038416906108fc908a90620186a0906108d49061ffff62010000820481169116613ef4565b6108e59061ffff16620186a0613f1a565b62ffffff16896006018f815481106108ff576108ff613d44565b90600052602060002001546109149190613e01565b61091e9190613e67565b6109289190613e01565b6040518115909202916000818181858888f19350505050158015610950573d6000803e3d6000fd5b505b5050505b336001600160a01b03166108fc87879050846006018a8154811061097c5761097c613d44565b90600052602060002001546109919190613e01565b61099b9034613f3e565b6040518115909202916000818181858888f193505050501580156109c3573d6000803e3d6000fd5b506004546006805490840180546001600160a01b03909316926108fc928992620186a09261ffff909216918d9081106109fe576109fe613d44565b9060005260206000200154610a139190613e01565b610a1d9190613e67565b610a279190613e01565b6040518115909202916000818181858888f19350505050158015610a4f573d6000803e3d6000fd5b5060018201546006805490840180546001600160a01b03909316926108fc928992620186a0926201000090920461ffff16918d908110610a9157610a91613d44565b9060005260206000200154610aa69190613e01565b610ab09190613e67565b610aba9190613e01565b6040518115909202916000818181858888f19350505050158015610ae2573d6000803e3d6000fd5b5085859050826005018881548110610afc57610afc613d44565b906000526020600020016000828254610b159190613f3e565b909155505060058201805488908110610b3057610b30613d44565b906000526020600020015460001415610ba15760058054906000610b5383613f55565b909155505081546040517fd7597aa2d6438f91b7d71e7d13764734af94bc7db28326e194bfab67236e58c191610b98916001600160a01b03909116908b908b90613f6c565b60405180910390a15b60005b85811015610da657868682818110610bbe57610bbe613d44565b90506020020135836003018981548110610bda57610bda613d44565b906000526020600020015411158015610c2a5750826004018881548110610c0357610c03613d44565b9060005260206000200154878783818110610c2057610c20613d44565b9050602002013511155b610c465760405162461bcd60e51b81526004016104c590613f8d565b82546001600160a01b031663156e29f6868684818110610c6857610c68613d44565b9050602002016020810190610c7d9190613a00565b85600201548a8a86818110610c9457610c94613d44565b905060200201356040518463ffffffff1660e01b8152600401610cb993929190613f6c565b600060405180830381600087803b158015610cd357600080fd5b505af1158015610ce7573d6000803e3d6000fd5b505050507f188c6e7ce5cf6a45f5d4441da49a243005c388c7f4f00137378ba3d058baf01d858583818110610d1e57610d1e613d44565b9050602002016020810190610d339190613a00565b84546001600160a01b03168b8b8b8b87818110610d5257610d52613d44565b604080516001600160a01b039889168152979096166020888101919091529587019490945250606085019190915291020135608082015260a00160405180910390a180610d9e81613e89565b915050610ba4565b505050505050505050565b600080600080600060038681548110610dcc57610dcc613d44565b60009182526020918290206040805161010081018252600890930290910180546001600160a01b0390811684526001820154168385015260028101548383015260038101805483518187028101870190945280845293949193606086019392830182828015610e5a57602002820191906000526020600020905b815481526020019060010190808311610e46575b5050505050815260200160048201805480602002602001604051908101604052809291908181526020018280548015610eb257602002820191906000526020600020905b815481526020019060010190808311610e9e575b5050505050815260200160058201805480602002602001604051908101604052809291908181526020018280548015610f0a57602002820191906000526020600020905b815481526020019060010190808311610ef6575b5050505050815260200160068201805480602002602001604051908101604052809291908181526020018280548015610f6257602002820191906000526020600020905b815481526020019060010190808311610f4e575b5050505050815260200160078201805480602002602001604051908101604052809291908181526020016000905b8282101561103c578382906000526020600020018054610faf90613fea565b80601f0160208091040260200160405190810160405280929190818152602001828054610fdb90613fea565b80156110285780601f10610ffd57610100808354040283529160200191611028565b820191906000526020600020905b81548152906001019060200180831161100b57829003601f168201915b505050505081526020019060010190610f90565b5050509152505080516040820151602083015160e090930151519199909850919650945092505050565b61109b6003878154811061107c5761107c613d44565b60009182526020909120600890910201546001600160a01b031661141a565b506110c060405180606001604052806000815260200160008152602001600081525090565b600387815481106110d3576110d3613d44565b6000918252602090912060089091020154600380546001600160a01b039092169163b9db15b491908a90811061110b5761110b613d44565b9060005260206000209060080201600201546040518263ffffffff1660e01b815260040161113b91815260200190565b60006040518083038186803b15801561115357600080fd5b505afa158015611167573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261118f9190810190614080565b505050602083018190528183526111aa91889188919061316f565b6111ed8787878787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506132c192505050565b50505050505050565b82518451148015611208575083518251145b8015611215575081518151145b6112315760405162461bcd60e51b81526004016104c59061413e565b6112476003868154811061107c5761107c613d44565b5061126c60405180606001604052806000815260200160008152602001600081525090565b6003868154811061127f5761127f613d44565b6000918252602090912060089091020154600380546001600160a01b039092169163b9db15b49190899081106112b7576112b7613d44565b9060005260206000209060080201600201546040518263ffffffff1660e01b81526004016112e791815260200190565b60006040518083038186803b1580156112ff57600080fd5b505afa158015611313573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261133b9190810190614080565b5050506020830152815260005b82518110156111ed5761139786828151811061136657611366613d44565b602002602001015186838151811061138057611380613d44565b60200260200101518460000151856020015161316f565b611408878783815181106113ad576113ad613d44565b60200260200101518784815181106113c7576113c7613d44565b60200260200101518785815181106113e1576113e1613d44565b60200260200101518786815181106113fb576113fb613d44565b60200260200101516132c1565b8061141281613e89565b915050611348565b604051632474521560e21b81527ff0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc960048201523060248201526000906001600160a01b038316906391d148549060440160206040518083038186803b15801561148257600080fd5b505afa158015611496573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ba9190613ea4565b6115245760405162461bcd60e51b815260206004820152603560248201527f4d696e74696e67204d61726b6574706c6163653a2054686973204d61726b6574604482015274706c6163652069736e27742061204d696e7465722160581b60648201526084016104c5565b604051632474521560e21b81527f3c2519c4487d47714872f92cf90a50c25f5deaec2789dc2a497b1272df611db660048201523360248201526001600160a01b038316906391d148549060440160206040518083038186803b15801561158957600080fd5b505afa15801561159d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c19190613ea4565b6116245760405162461bcd60e51b815260206004820152602e60248201527f4d696e74696e67204d61726b6574706c6163653a2053656e6465722069736e2760448201526d74207468652063726561746f722160901b60648201526084016104c5565b506001919050565b6000546001600160a01b031633146116565760405162461bcd60e51b81526004016104c59061419c565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f63cc689e9d3377465b51fb094ea4ca5e0a1436b21f1ad30d707c696111c66500906020015b60405180910390a150565b6116b48b61141a565b5087861480156116c357508388145b80156116ce57508184145b6116ea5760405162461bcd60e51b81526004016104c59061413e565b60035415611825576001600160a01b038b1660009081526001602090815260408083208d84529091529020546117e4576001600160a01b038b1660008181526001602090815260408083208e845290915290205460038054909190811061175357611753613d44565b60009182526020909120600890910201546001600160a01b03161415806117c357506001600160a01b038b1660009081526001602090815260408083208d8452909152902054600380548c929081106117ae576117ae613d44565b90600052602060002090600802016002015414155b6117df5760405162461bcd60e51b81526004016104c5906141d1565b611825565b6001600160a01b038b1660009081526001602090815260408083208d8452909152902054156118255760405162461bcd60e51b81526004016104c5906141d1565b61184960405180606001604052806000815260200160008152602001600081525090565b604051632e76c56d60e21b8152600481018c90526001600160a01b038d169063b9db15b49060240160006040518083038186803b15801561188957600080fd5b505afa15801561189d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118c59190810190614080565b505060408401819052602084019190915290825261194b5760405162461bcd60e51b815260206004820152603f60248201527f4d696e74696e67204d61726b6574706c6163653a2043616e6e6f74206d696e7460448201527f206d6f726520746f6b656e732066726f6d20746869732050726f64756374210060648201526084016104c5565b6000600360018160018154018082558091505003906000526020600020906008020190508c8160000160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550828160010160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508b816002018190555060005b84811015611ae757611a198c8c838181106119ea576119ea613d44565b905060200201358b8b84818110611a0357611a03613d44565b905060200201358560000151866020015161316f565b600354611ad590611a2c90600190613f3e565b8d8d84818110611a3e57611a3e613d44565b905060200201358c8c85818110611a5757611a57613d44565b905060200201358b8b86818110611a7057611a70613d44565b905060200201358a8a87818110611a8957611a89613d44565b9050602002810190611a9b9190614241565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506132c192505050565b80611adf81613e89565b9150506119cd565b50600354611af790600190613f3e565b600160008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e8152602001908152602001600020819055507f9c82f4230a033475cfb564c6eb24f4ad45139901a657e8edd9a6cd234e3549498d8d878790506001600380549050611b6a9190613f3e565b604080516001600160a01b039095168552602085019390935291830152606082015260800160405180910390a150505050505050505050505050565b6000546001600160a01b03163314611bd05760405162461bcd60e51b81526004016104c59061419c565b611bda6000613407565b565b600060038881548110611bf157611bf1613d44565b90600052602060002090600802019050806004018781548110611c1657611c16613d44565b90600052602060002001548511158015611c4f5750806003018781548110611c4057611c40613d44565b90600052602060002001548610155b611ccd5760405162461bcd60e51b815260206004820152604360248201527f4d696e74696e67204d61726b6574706c6163653a204e6577206c696d6974732060448201527f6d7573742062652077697468696e207468652070726576696f7573206c696d6960648201526274732160e81b608482015260a4016104c5565b8054611ce1906001600160a01b031661141a565b50611d0660405180606001604052806000815260200160008152602001600081525090565b81546002830154604051632e76c56d60e21b81526001600160a01b039092169163b9db15b491611d3c9160040190815260200190565b60006040518083038186803b158015611d5457600080fd5b505afa158015611d68573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d909190810190614080565b50505060208301819052818352611dab91899189919061316f565b611db58787613f3e565b826003018981548110611dca57611dca613d44565b9060005260206000200154836004018a81548110611dea57611dea613d44565b9060005260206000200154611dff9190613f3e565b611e099190613f3e565b826005018981548110611e1e57611e1e613d44565b906000526020600020016000828254611e379190613f3e565b9250508190555086826003018981548110611e5457611e54613d44565b906000526020600020018190555085826004018981548110611e7857611e78613d44565b906000526020600020018190555084826006018981548110611e9c57611e9c613d44565b90600052602060002001819055508383836007018a81548110611ec157611ec1613d44565b906000526020600020019190611ed8929190613457565b5081546005830180547fd99934f5b053ba28c54ae74875195b688f9367ba5b0c50f5233e692eb91549c8926001600160a01b0316918c918c919082908110611f2257611f22613d44565b9060005260206000200154898989604051611f439796959493929190614287565b60405180910390a1505050505050505050565b600354600090611fc45760405162461bcd60e51b815260206004820152603360248201527f4d696e74696e67204d61726b6574706c6163653a20546865726520617265206e6044820152721bc81bd999995c9cc81c9959da5cdd195c9959606a1b60648201526084016104c5565b6001600160a01b0383166000818152600160209081526040808320868452909152902054600380549091908110611ffd57611ffd613d44565b60009182526020909120600890910201546001600160a01b0316146120985760405162461bcd60e51b8152602060048201526044602482018190527f4d696e74696e67204d61726b6574706c6163653a20546865726520617265206e908201527f6f206f6666657273207265676973746572656420666f722074686174206164646064820152637265737360e01b608482015260a4016104c5565b6001600160a01b03831660009081526001602090815260408083208584529091529020546003805484929081106120d1576120d1613d44565b906000526020600020906008020160020154146121655760405162461bcd60e51b815260206004820152604660248201527f4d696e74696e67204d61726b6574706c6163653a20546865726520617265206960448201527f73206e6f206f66666572207265676973746572656420666f72207468617420706064820152651c9bd91d58dd60d21b608482015260a4016104c5565b506001600160a01b03919091166000908152600160209081526040808320938352929052205490565b6000546001600160a01b031633146121b85760405162461bcd60e51b81526004016104c59061419c565b6006805461ffff191661ffff8316908117909155600454604080516001600160a01b03909216825260208201929092527f2adb51c26afe364a53c16cd44e82bdf5a52680ad11c64f2dbeb5bdb3764f731d91016116a0565b8281146122995760405162461bcd60e51b815260206004820152604b60248201527f4d696e74696e67204d61726b6574706c6163653a20526563697069656e74732060448201527f616e642050657263656e74616765732073686f756c642068617665207468652060648201526a0e6c2daca40d8cadccee8d60ab1b608482015260a4016104c5565b6003546122fe5760405162461bcd60e51b815260206004820152602d60248201527f4d696e74696e67204d61726b6574706c6163653a20546865726520617265206e60448201526c6f206f6666657220706f6f6c7360981b60648201526084016104c5565b6003548511156123665760405162461bcd60e51b815260206004820152602d60248201527f4d696e74696e67204d61726b6574706c6163653a204f6666657220506f6f6c2060448201526c191bd95cdb89dd08195e1a5cdd609a1b60648201526084016104c5565b60006001600160a01b03166003868154811061238457612384613d44565b60009182526020909120600890910201546001600160a01b031614156124015760405162461bcd60e51b815260206004820152602c60248201527f4d696e74696e67204d61726b6574706c6163653a20496e76616c6964206f666660448201526b657220706f6f6c206461746160a01b60648201526084016104c5565b6124176003868154811061107c5761107c613d44565b506000805b8481101561245c5783838281811061243657612436613d44565b905060200201358261244891906142e1565b91508061245481613e89565b91505061241c565b5060065461ffff6201000082048116916124779116836142e1565b61248191906142e1565b620186a01461252c5760405162461bcd60e51b8152602060048201526064602482018190527f4d696e74696e67204d61726b6574706c6163653a2050657263656e746167657360448301527f2073686f756c642061646420757020746f203130302520283130303030302c20908201527f696e636c7564696e67206e6f64652066656520616e64207472656173757279206084820152636665652960e01b60a482015260c4016104c5565b60008681526002602052604090206125458187876134db565b5061255460018201858561352e565b507f40a049f3fdcbf6879c736779d7d3043e94267127987fd5a0e13a7284a6a46dc9878787878760405161258c9594939291906142f9565b60405180910390a150505050505050565b6000806000806000806060600060038a815481106125bd576125bd613d44565b60009182526020918290206040805161010081018252600890930290910180546001600160a01b039081168452600182015416838501526002810154838301526003810180548351818702810187019094528084529394919360608601939283018282801561264b57602002820191906000526020600020905b815481526020019060010190808311612637575b50505050508152602001600482018054806020026020016040519081016040528092919081815260200182805480156126a357602002820191906000526020600020905b81548152602001906001019080831161268f575b50505050508152602001600582018054806020026020016040519081016040528092919081815260200182805480156126fb57602002820191906000526020600020905b8154815260200190600101908083116126e7575b505050505081526020016006820180548060200260200160405190810160405280929190818152602001828054801561275357602002820191906000526020600020905b81548152602001906001019080831161273f575b5050505050815260200160078201805480602002602001604051908101604052809291908181526020016000905b8282101561282d5783829060005260206000200180546127a090613fea565b80601f01602080910402602001604051908101604052809291908181526020018280546127cc90613fea565b80156128195780601f106127ee57610100808354040283529160200191612819565b820191906000526020600020905b8154815290600101906020018083116127fc57829003601f168201915b505050505081526020019060010190612781565b505050508152505090508060000151816040015182606001518b8151811061285757612857613d44565b602002602001015183608001518c8151811061287557612875613d44565b60200260200101518460a001518d8151811061289357612893613d44565b60200260200101518560c001518e815181106128b1576128b1613d44565b60200260200101518660e001518f815181106128cf576128cf613d44565b602002602001015197509750975097509750975097505092959891949750929550565b60006003848154811061290757612907613d44565b6000918252602090912060089091020180549091506001600160a01b03166129415760405162461bcd60e51b81526004016104c590613d5a565b600581015483106129645760405162461bcd60e51b81526004016104c590613da8565b600081600501848154811061297b5761297b613d44565b9060005260206000200154116129f95760405162461bcd60e51b815260206004820152603c60248201527f4d696e74696e67204d61726b6574706c6163653a2043616e6e6f74206d696e7460448201527f206d6f726520746f6b656e7320666f7220746869732072616e6765210000000060648201526084016104c5565b81816003018481548110612a0f57612a0f613d44565b906000526020600020015411158015612a475750806004018381548110612a3857612a38613d44565b90600052602060002001548211155b612a635760405162461bcd60e51b81526004016104c590613f8d565b806006018381548110612a7857612a78613d44565b9060005260206000200154341015612aa25760405162461bcd60e51b81526004016104c590613e20565b6000848152600260205260409020805415612b8f5760005b8154811015612b8957816000018181548110612ad857612ad8613d44565b6000918252602090912001546001830180546001600160a01b03909216916108fc91620186a09185908110612b0f57612b0f613d44565b9060005260206000200154866006018981548110612b2f57612b2f613d44565b9060005260206000200154612b449190613e01565b612b4e9190613e67565b6040518115909202916000818181858888f19350505050158015612b76573d6000803e3d6000fd5b5080612b8181613e89565b915050612aba565b50612d74565b81546040516301ffc9a760e01b8152632baae9fd60e01b6004820152600091829182916001600160a01b0316906301ffc9a79060240160206040518083038186803b158015612bdd57600080fd5b505afa158015612bf1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c159190613ea4565b90508015612d705784546006860180546001600160a01b0390921691632a55205a916000918b908110612c4a57612c4a613d44565b90600052602060002001546040518363ffffffff1660e01b8152600401612c7b929190918252602082015260400190565b604080518083038186803b158015612c9257600080fd5b505afa158015612ca6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cca9190613ec6565b60065491945092506001600160a01b038416906108fc90620186a090612cfc9061ffff62010000820481169116613ef4565b612d0d9061ffff16620186a0613f1a565b62ffffff16886006018b81548110612d2757612d27613d44565b9060005260206000200154612d3c9190613e01565b612d469190613e67565b6040518115909202916000818181858888f19350505050158015612d6e573d6000803e3d6000fd5b505b5050505b336001600160a01b03166108fc836006018681548110612d9657612d96613d44565b906000526020600020015434612dac9190613f3e565b6040518115909202916000818181858888f19350505050158015612dd4573d6000803e3d6000fd5b506004546006805490840180546001600160a01b03909316926108fc92620186a09261ffff9091169189908110612e0d57612e0d613d44565b9060005260206000200154612e229190613e01565b612e2c9190613e67565b6040518115909202916000818181858888f19350505050158015612e54573d6000803e3d6000fd5b5060018201546006805490840180546001600160a01b03909316926108fc92620186a0926201000090910461ffff169189908110612e9457612e94613d44565b9060005260206000200154612ea99190613e01565b612eb39190613e67565b6040518115909202916000818181858888f19350505050158015612edb573d6000803e3d6000fd5b50816005018481548110612ef157612ef1613d44565b60009182526020822001805491612f0783613f55565b9190505550816005018481548110612f2157612f21613d44565b906000526020600020015460001415612f925760058054906000612f4483613f55565b909155505081546040517fd7597aa2d6438f91b7d71e7d13764734af94bc7db28326e194bfab67236e58c191612f89916001600160a01b039091169088908890613f6c565b60405180910390a15b81546002830154604051630ab714fb60e11b81526001600160a01b039092169163156e29f691612fc9913391908890600401613f6c565b600060405180830381600087803b158015612fe357600080fd5b505af1158015612ff7573d6000803e3d6000fd5b50508354604080513381526001600160a01b039092166020830152810188905260608101879052608081018690527f188c6e7ce5cf6a45f5d4441da49a243005c388c7f4f00137378ba3d058baf01d925060a001905060405180910390a15050505050565b6000546001600160a01b031633146130865760405162461bcd60e51b81526004016104c59061419c565b6006805463ffff000019166201000061ffff8416908102919091179091556040519081527f6a6cc0807c3fb0910ab842e5fd4c193307b3cff967f1a7d096538e4961884b70906020016116a0565b6000546001600160a01b031633146130fe5760405162461bcd60e51b81526004016104c59061419c565b6001600160a01b0381166131635760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104c5565b61316c81613407565b50565b8284111561320b5760405162461bcd60e51b815260206004820152605960248201527f4d696e74696e67204d61726b6574706c6163653a2052616e676527732073746160448201527f7274696e6720746f6b656e2068617320746f206265206c657373207468616e2060648201527f7468652072616e6765277320656e64696e6720746f6b656e2100000000000000608482015260a4016104c5565b8061321684846142e1565b11156132bb5760405162461bcd60e51b815260206004820152606260248201527f4d696e74696e67204d61726b6574706c6163653a2052616e6765277320656e6460448201527f696e6720746f6b656e2068617320746f206265206c657373206f72206571756160648201527f6c207468616e207468652070726f64756374277320656e64696e6720746f6b656084820152616e2160f01b60a482015260c4016104c5565b50505050565b6000600386815481106132d6576132d6613d44565b600091825260208083206003600890930201918201805460018181018355918552828520018990556004830180548083018255908552828520018890556006830180549182018155845292209091018490559050600581016133388686613f3e565b6133439060016142e1565b81546001818101845560009384526020808520909201929092556007840180549283018155835291829020845161338293919092019190850190613568565b508054600282015460078301547f5fb7e8962f72a7aa133e869363451a963b669f4833ca29bc394ebd53f121b98f926001600160a01b0316919089906133ca90600190613f3e565b898989896040516133e2989796959493929190614384565b60405180910390a1600580549060006133fa83613e89565b9190505550505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805461346390613fea565b90600052602060002090601f01602090048101928261348557600085556134cb565b82601f1061349e5782800160ff198235161785556134cb565b828001600101855582156134cb579182015b828111156134cb5782358255916020019190600101906134b0565b506134d79291506135dc565b5090565b8280548282559060005260206000209081019282156134cb579160200282015b828111156134cb5781546001600160a01b0319166001600160a01b038435161782556020909201916001909101906134fb565b8280548282559060005260206000209081019282156134cb57916020028201828111156134cb5782358255916020019190600101906134b0565b82805461357490613fea565b90600052602060002090601f01602090048101928261359657600085556134cb565b82601f106135af57805160ff19168380011785556134cb565b828001600101855582156134cb579182015b828111156134cb5782518255916020019190600101906135c1565b5b808211156134d757600081556001016135dd565b60008083601f84011261360357600080fd5b5081356001600160401b0381111561361a57600080fd5b6020830191508360208260051b850101111561363557600080fd5b9250929050565b6000806000806000806080878903121561365557600080fd5b863595506020870135945060408701356001600160401b038082111561367a57600080fd5b6136868a838b016135f1565b9096509450606089013591508082111561369f57600080fd5b506136ac89828a016135f1565b979a9699509497509295939492505050565b6000602082840312156136d057600080fd5b5035919050565b60008083601f8401126136e957600080fd5b5081356001600160401b0381111561370057600080fd5b60208301915083602082850101111561363557600080fd5b60008060008060008060a0878903121561373157600080fd5b8635955060208701359450604087013593506060870135925060808701356001600160401b0381111561376357600080fd5b6136ac89828a016136d7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156137ad576137ad61376f565b604052919050565b60006001600160401b038211156137ce576137ce61376f565b5060051b60200190565b600082601f8301126137e957600080fd5b813560206137fe6137f9836137b5565b613785565b82815260059290921b8401810191818101908684111561381d57600080fd5b8286015b848110156138385780358352918301918301613821565b509695505050505050565b60006001600160401b0382111561385c5761385c61376f565b50601f01601f191660200190565b600080600080600060a0868803121561388257600080fd5b8535945060208601356001600160401b03808211156138a057600080fd5b6138ac89838a016137d8565b955060408801359150808211156138c257600080fd5b6138ce89838a016137d8565b945060608801359150808211156138e457600080fd5b6138f089838a016137d8565b9350608088013591508082111561390657600080fd5b818801915088601f83011261391a57600080fd5b81356139286137f9826137b5565b8082825260208201915060208360051b86010192508b83111561394a57600080fd5b602085015b838110156139c857848135111561396557600080fd5b803586018d603f82011261397857600080fd5b60208101356139896137f982613843565b8181528f604083850101111561399e57600080fd5b8160408401602083013760006020838301015280865250505060208301925060208101905061394f565b5080955050505050509295509295909350565b6001600160a01b038116811461316c57600080fd5b80356139fb816139db565b919050565b600060208284031215613a1257600080fd5b8135613a1d816139db565b9392505050565b600080600080600080600080600080600060e08c8e031215613a4557600080fd5b613a4e8c6139f0565b9a5060208c013599506001600160401b038060408e01351115613a7057600080fd5b613a808e60408f01358f016135f1565b909a50985060608d0135811015613a9657600080fd5b613aa68e60608f01358f016135f1565b909850965060808d0135811015613abc57600080fd5b613acc8e60808f01358f016135f1565b909650945060a08d0135811015613ae257600080fd5b50613af38d60a08e01358e016135f1565b9093509150613b0460c08d016139f0565b90509295989b509295989b9093969950565b600080600080600080600060c0888a031215613b3157600080fd5b873596506020880135955060408801359450606088013593506080880135925060a08801356001600160401b03811115613b6a57600080fd5b613b768a828b016136d7565b989b979a50959850939692959293505050565b60008060408385031215613b9c57600080fd5b8235613ba7816139db565b946020939093013593505050565b600060208284031215613bc757600080fd5b813561ffff81168114613a1d57600080fd5b600080600080600060608688031215613bf157600080fd5b8535945060208601356001600160401b0380821115613c0f57600080fd5b613c1b89838a016135f1565b90965094506040880135915080821115613c3457600080fd5b50613c41888289016135f1565b969995985093965092949392505050565b60008060408385031215613c6557600080fd5b50508035926020909101359150565b60005b83811015613c8f578181015183820152602001613c77565b838111156132bb5750506000910152565b60008151808452613cb8816020860160208601613c74565b601f01601f19169290920160200192915050565b60018060a01b03881681528660208201528560408201528460608201528360808201528260a082015260e060c08201526000613d0b60e0830184613ca0565b9998505050505050505050565b600080600060608486031215613d2d57600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052603260045260246000fd5b6020808252602e908201527f4d696e74696e67204d61726b6574706c6163653a20496e76616c69642050726f60408201526d647563742053656c65637465642160901b606082015260800190565b60208082526023908201527f4d696e74696e67204d61726b6574706c6163653a20496e76616c69642072616e60408201526267652160e81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613e1b57613e1b613deb565b500290565b60208082526027908201527f4d696e74696e67204d61726b6574706c6163653a20496e737566696369656e746040820152662046756e64732160c81b606082015260800190565b600082613e8457634e487b7160e01b600052601260045260246000fd5b500490565b6000600019821415613e9d57613e9d613deb565b5060010190565b600060208284031215613eb657600080fd5b81518015158114613a1d57600080fd5b60008060408385031215613ed957600080fd5b8251613ee4816139db565b6020939093015192949293505050565b600061ffff808316818516808303821115613f1157613f11613deb565b01949350505050565b600062ffffff83811690831681811015613f3657613f36613deb565b039392505050565b600082821015613f5057613f50613deb565b500390565b600081613f6457613f64613deb565b506000190190565b6001600160a01b039390931683526020830191909152604082015260600190565b6020808252603e908201527f4d696e74696e67204d61726b6574706c6163653a20546f6b656e20646f65736e60408201527f27742062656c6f6e6720696e2074686174206f666665722072616e6765210000606082015260800190565b600181811c90821680613ffe57607f821691505b6020821081141561401f57634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f83011261403657600080fd5b815160206140466137f9836137b5565b82815260059290921b8401810191818101908684111561406557600080fd5b8286015b848110156138385780518352918301918301614069565b600080600080600060a0868803121561409857600080fd5b85519450602086015193506040860151925060608601516001600160401b03808211156140c457600080fd5b818801915088601f8301126140d857600080fd5b81516140e66137f982613843565b8181528a60208386010111156140fb57600080fd5b61410c826020830160208701613c74565b60808a01519095509250508082111561412457600080fd5b5061413188828901614025565b9150509295509295909350565b602080825260409082018190527f4d696e74696e67204d61726b6574706c6163653a204f6666657227732072616e908201527f6765732073686f756c642068617665207468652073616d65206c656e67746821606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252604a908201527f4d696e74696e67204d61726b6574706c6163653a20416e206f6666657220616c60408201527f72656164792065786973747320666f72207468697320636f6e747261637420616060820152691b99081c1c9bd91d58dd60b21b608082015260a00190565b6000808335601e1984360301811261425857600080fd5b8301803591506001600160401b0382111561427257600080fd5b60200191503681900382131561363557600080fd5b60018060a01b038816815286602082015285604082015284606082015283608082015260c060a08201528160c0820152818360e0830137600081830160e090810191909152601f909201601f191601019695505050505050565b600082198211156142f4576142f4613deb565b500190565b85815260606020808301829052908201859052600090869060808401835b8881101561434557833561432a816139db565b6001600160a01b031682529282019290820190600101614317565b5084810360408601528581526001600160fb1b0386111561436557600080fd5b8560051b92508287838301376000920101908152979650505050505050565b600061010060018060a01b038b1683528960208401528860408401528760608401528660808401528560a08401528460c08401528060e08401526143ca81840185613ca0565b9b9a505050505050505050505056fea2646970667358221220d31eec8aaa9e95bfb0dfe01df1388a337957a649ee8e380ef7873ca88eda833764736f6c634300080900330000000000000000000000007849194dd593d6c3aed24035d70b5394a1c90f8f000000000000000000000000000000000000000000000000000000000000232800000000000000000000000000000000000000000000000000000000000003e8
Deployed Bytecode
0x6080604052600436106101405760003560e01c80639c13108c116100b6578063d048db371161006f578063d048db37146103d7578063de2d554b146103ec578063e4ccbe6c146103ff578063f2fde38b1461041f578063f41625301461043f578063f7ca892a1461046057600080fd5b80639c13108c146102f3578063a652db4914610321578063b430029514610341578063ca3dba5d14610361578063cc0f178614610394578063cc32d176146103bc57600080fd5b806361d027b31161010857806361d027b3146102285780636605bfda14610260578063665b64dd14610280578063715018a6146102a057806375cb00ea146102b55780638da5cb5b146102d557600080fd5b806326502ed7146101455780632a1da9821461015a5780633539a52c146101b857806338b2c833146101d8578063607814b2146101f8575b600080fd5b61015861015336600461363c565b610476565b005b34801561016657600080fd5b5061017a6101753660046136be565b610db1565b6040516101af94939291906001600160a01b039485168152602081019390935292166040820152606081019190915260800190565b60405180910390f35b3480156101c457600080fd5b506101586101d3366004613718565b611066565b3480156101e457600080fd5b506101586101f336600461386a565b6111f6565b34801561020457600080fd5b50610218610213366004613a00565b61141a565b60405190151581526020016101af565b34801561023457600080fd5b50600454610248906001600160a01b031681565b6040516001600160a01b0390911681526020016101af565b34801561026c57600080fd5b5061015861027b366004613a00565b61162c565b34801561028c57600080fd5b5061015861029b366004613a24565b6116ab565b3480156102ac57600080fd5b50610158611ba6565b3480156102c157600080fd5b506101586102d0366004613b16565b611bdc565b3480156102e157600080fd5b506000546001600160a01b0316610248565b3480156102ff57600080fd5b5061031361030e366004613b89565b611f56565b6040519081526020016101af565b34801561032d57600080fd5b5061015861033c366004613bb5565b61218e565b34801561034d57600080fd5b5061015861035c366004613bd9565b612210565b34801561036d57600080fd5b5061038161037c366004613c52565b61259d565b6040516101af9796959493929190613ccc565b3480156103a057600080fd5b506103a9600381565b60405161ffff90911681526020016101af565b3480156103c857600080fd5b506006546103a99061ffff1681565b3480156103e357600080fd5b50600354610313565b6101586103fa366004613d18565b6128f2565b34801561040b57600080fd5b5061015861041a366004613bb5565b61305c565b34801561042b57600080fd5b5061015861043a366004613a00565b6130d4565b34801561044b57600080fd5b506006546103a99062010000900461ffff1681565b34801561046c57600080fd5b5061031360055481565b60006003878154811061048b5761048b613d44565b6000918252602090912060089091020180549091506001600160a01b03166104ce5760405162461bcd60e51b81526004016104c590613d5a565b60405180910390fd5b600581015486106104f15760405162461bcd60e51b81526004016104c590613da8565b8484905081600501878154811061050a5761050a613d44565b906000526020600020015410156105935760405162461bcd60e51b815260206004820152604160248201527f4d696e74696e67204d61726b6574706c6163653a2043616e6e6f74206d696e7460448201527f2074686174206d616e7920746f6b656e7320666f7220746869732072616e67656064820152602160f81b608482015260a4016104c5565b848490508160060187815481106105ac576105ac613d44565b90600052602060002001546105c19190613e01565b3410156105e05760405162461bcd60e51b81526004016104c590613e20565b83821461066b5760405162461bcd60e51b815260206004820152604d60248201527f4d696e74696e67204d61726b6574706c6163653a20546f6b656e20496e64657860448201527f657320616e6420526563697069656e74732073686f756c64206861766520746860648201526c0ca40e6c2daca40d8cadccee8d609b1b608482015260a4016104c5565b60008781526002602052604090208054156107655760005b815481101561075f578160000181815481106106a1576106a1613d44565b6000918252602090912001546001830180546001600160a01b03909216916108fc918991620186a09190869081106106db576106db613d44565b9060005260206000200154876006018d815481106106fb576106fb613d44565b90600052602060002001546107109190613e01565b61071a9190613e67565b6107249190613e01565b6040518115909202916000818181858888f1935050505015801561074c573d6000803e3d6000fd5b508061075781613e89565b915050610683565b50610956565b81546040516301ffc9a760e01b8152632baae9fd60e01b6004820152600091829182916001600160a01b0316906301ffc9a79060240160206040518083038186803b1580156107b357600080fd5b505afa1580156107c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107eb9190613ea4565b905080156109525784546006860180546001600160a01b0390921691632a55205a916000918e90811061082057610820613d44565b90600052602060002001546040518363ffffffff1660e01b8152600401610851929190918252602082015260400190565b604080518083038186803b15801561086857600080fd5b505afa15801561087c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a09190613ec6565b60065491945092506001600160a01b038416906108fc908a90620186a0906108d49061ffff62010000820481169116613ef4565b6108e59061ffff16620186a0613f1a565b62ffffff16896006018f815481106108ff576108ff613d44565b90600052602060002001546109149190613e01565b61091e9190613e67565b6109289190613e01565b6040518115909202916000818181858888f19350505050158015610950573d6000803e3d6000fd5b505b5050505b336001600160a01b03166108fc87879050846006018a8154811061097c5761097c613d44565b90600052602060002001546109919190613e01565b61099b9034613f3e565b6040518115909202916000818181858888f193505050501580156109c3573d6000803e3d6000fd5b506004546006805490840180546001600160a01b03909316926108fc928992620186a09261ffff909216918d9081106109fe576109fe613d44565b9060005260206000200154610a139190613e01565b610a1d9190613e67565b610a279190613e01565b6040518115909202916000818181858888f19350505050158015610a4f573d6000803e3d6000fd5b5060018201546006805490840180546001600160a01b03909316926108fc928992620186a0926201000090920461ffff16918d908110610a9157610a91613d44565b9060005260206000200154610aa69190613e01565b610ab09190613e67565b610aba9190613e01565b6040518115909202916000818181858888f19350505050158015610ae2573d6000803e3d6000fd5b5085859050826005018881548110610afc57610afc613d44565b906000526020600020016000828254610b159190613f3e565b909155505060058201805488908110610b3057610b30613d44565b906000526020600020015460001415610ba15760058054906000610b5383613f55565b909155505081546040517fd7597aa2d6438f91b7d71e7d13764734af94bc7db28326e194bfab67236e58c191610b98916001600160a01b03909116908b908b90613f6c565b60405180910390a15b60005b85811015610da657868682818110610bbe57610bbe613d44565b90506020020135836003018981548110610bda57610bda613d44565b906000526020600020015411158015610c2a5750826004018881548110610c0357610c03613d44565b9060005260206000200154878783818110610c2057610c20613d44565b9050602002013511155b610c465760405162461bcd60e51b81526004016104c590613f8d565b82546001600160a01b031663156e29f6868684818110610c6857610c68613d44565b9050602002016020810190610c7d9190613a00565b85600201548a8a86818110610c9457610c94613d44565b905060200201356040518463ffffffff1660e01b8152600401610cb993929190613f6c565b600060405180830381600087803b158015610cd357600080fd5b505af1158015610ce7573d6000803e3d6000fd5b505050507f188c6e7ce5cf6a45f5d4441da49a243005c388c7f4f00137378ba3d058baf01d858583818110610d1e57610d1e613d44565b9050602002016020810190610d339190613a00565b84546001600160a01b03168b8b8b8b87818110610d5257610d52613d44565b604080516001600160a01b039889168152979096166020888101919091529587019490945250606085019190915291020135608082015260a00160405180910390a180610d9e81613e89565b915050610ba4565b505050505050505050565b600080600080600060038681548110610dcc57610dcc613d44565b60009182526020918290206040805161010081018252600890930290910180546001600160a01b0390811684526001820154168385015260028101548383015260038101805483518187028101870190945280845293949193606086019392830182828015610e5a57602002820191906000526020600020905b815481526020019060010190808311610e46575b5050505050815260200160048201805480602002602001604051908101604052809291908181526020018280548015610eb257602002820191906000526020600020905b815481526020019060010190808311610e9e575b5050505050815260200160058201805480602002602001604051908101604052809291908181526020018280548015610f0a57602002820191906000526020600020905b815481526020019060010190808311610ef6575b5050505050815260200160068201805480602002602001604051908101604052809291908181526020018280548015610f6257602002820191906000526020600020905b815481526020019060010190808311610f4e575b5050505050815260200160078201805480602002602001604051908101604052809291908181526020016000905b8282101561103c578382906000526020600020018054610faf90613fea565b80601f0160208091040260200160405190810160405280929190818152602001828054610fdb90613fea565b80156110285780601f10610ffd57610100808354040283529160200191611028565b820191906000526020600020905b81548152906001019060200180831161100b57829003601f168201915b505050505081526020019060010190610f90565b5050509152505080516040820151602083015160e090930151519199909850919650945092505050565b61109b6003878154811061107c5761107c613d44565b60009182526020909120600890910201546001600160a01b031661141a565b506110c060405180606001604052806000815260200160008152602001600081525090565b600387815481106110d3576110d3613d44565b6000918252602090912060089091020154600380546001600160a01b039092169163b9db15b491908a90811061110b5761110b613d44565b9060005260206000209060080201600201546040518263ffffffff1660e01b815260040161113b91815260200190565b60006040518083038186803b15801561115357600080fd5b505afa158015611167573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261118f9190810190614080565b505050602083018190528183526111aa91889188919061316f565b6111ed8787878787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506132c192505050565b50505050505050565b82518451148015611208575083518251145b8015611215575081518151145b6112315760405162461bcd60e51b81526004016104c59061413e565b6112476003868154811061107c5761107c613d44565b5061126c60405180606001604052806000815260200160008152602001600081525090565b6003868154811061127f5761127f613d44565b6000918252602090912060089091020154600380546001600160a01b039092169163b9db15b49190899081106112b7576112b7613d44565b9060005260206000209060080201600201546040518263ffffffff1660e01b81526004016112e791815260200190565b60006040518083038186803b1580156112ff57600080fd5b505afa158015611313573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261133b9190810190614080565b5050506020830152815260005b82518110156111ed5761139786828151811061136657611366613d44565b602002602001015186838151811061138057611380613d44565b60200260200101518460000151856020015161316f565b611408878783815181106113ad576113ad613d44565b60200260200101518784815181106113c7576113c7613d44565b60200260200101518785815181106113e1576113e1613d44565b60200260200101518786815181106113fb576113fb613d44565b60200260200101516132c1565b8061141281613e89565b915050611348565b604051632474521560e21b81527ff0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc960048201523060248201526000906001600160a01b038316906391d148549060440160206040518083038186803b15801561148257600080fd5b505afa158015611496573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ba9190613ea4565b6115245760405162461bcd60e51b815260206004820152603560248201527f4d696e74696e67204d61726b6574706c6163653a2054686973204d61726b6574604482015274706c6163652069736e27742061204d696e7465722160581b60648201526084016104c5565b604051632474521560e21b81527f3c2519c4487d47714872f92cf90a50c25f5deaec2789dc2a497b1272df611db660048201523360248201526001600160a01b038316906391d148549060440160206040518083038186803b15801561158957600080fd5b505afa15801561159d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c19190613ea4565b6116245760405162461bcd60e51b815260206004820152602e60248201527f4d696e74696e67204d61726b6574706c6163653a2053656e6465722069736e2760448201526d74207468652063726561746f722160901b60648201526084016104c5565b506001919050565b6000546001600160a01b031633146116565760405162461bcd60e51b81526004016104c59061419c565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f63cc689e9d3377465b51fb094ea4ca5e0a1436b21f1ad30d707c696111c66500906020015b60405180910390a150565b6116b48b61141a565b5087861480156116c357508388145b80156116ce57508184145b6116ea5760405162461bcd60e51b81526004016104c59061413e565b60035415611825576001600160a01b038b1660009081526001602090815260408083208d84529091529020546117e4576001600160a01b038b1660008181526001602090815260408083208e845290915290205460038054909190811061175357611753613d44565b60009182526020909120600890910201546001600160a01b03161415806117c357506001600160a01b038b1660009081526001602090815260408083208d8452909152902054600380548c929081106117ae576117ae613d44565b90600052602060002090600802016002015414155b6117df5760405162461bcd60e51b81526004016104c5906141d1565b611825565b6001600160a01b038b1660009081526001602090815260408083208d8452909152902054156118255760405162461bcd60e51b81526004016104c5906141d1565b61184960405180606001604052806000815260200160008152602001600081525090565b604051632e76c56d60e21b8152600481018c90526001600160a01b038d169063b9db15b49060240160006040518083038186803b15801561188957600080fd5b505afa15801561189d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118c59190810190614080565b505060408401819052602084019190915290825261194b5760405162461bcd60e51b815260206004820152603f60248201527f4d696e74696e67204d61726b6574706c6163653a2043616e6e6f74206d696e7460448201527f206d6f726520746f6b656e732066726f6d20746869732050726f64756374210060648201526084016104c5565b6000600360018160018154018082558091505003906000526020600020906008020190508c8160000160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550828160010160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508b816002018190555060005b84811015611ae757611a198c8c838181106119ea576119ea613d44565b905060200201358b8b84818110611a0357611a03613d44565b905060200201358560000151866020015161316f565b600354611ad590611a2c90600190613f3e565b8d8d84818110611a3e57611a3e613d44565b905060200201358c8c85818110611a5757611a57613d44565b905060200201358b8b86818110611a7057611a70613d44565b905060200201358a8a87818110611a8957611a89613d44565b9050602002810190611a9b9190614241565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506132c192505050565b80611adf81613e89565b9150506119cd565b50600354611af790600190613f3e565b600160008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e8152602001908152602001600020819055507f9c82f4230a033475cfb564c6eb24f4ad45139901a657e8edd9a6cd234e3549498d8d878790506001600380549050611b6a9190613f3e565b604080516001600160a01b039095168552602085019390935291830152606082015260800160405180910390a150505050505050505050505050565b6000546001600160a01b03163314611bd05760405162461bcd60e51b81526004016104c59061419c565b611bda6000613407565b565b600060038881548110611bf157611bf1613d44565b90600052602060002090600802019050806004018781548110611c1657611c16613d44565b90600052602060002001548511158015611c4f5750806003018781548110611c4057611c40613d44565b90600052602060002001548610155b611ccd5760405162461bcd60e51b815260206004820152604360248201527f4d696e74696e67204d61726b6574706c6163653a204e6577206c696d6974732060448201527f6d7573742062652077697468696e207468652070726576696f7573206c696d6960648201526274732160e81b608482015260a4016104c5565b8054611ce1906001600160a01b031661141a565b50611d0660405180606001604052806000815260200160008152602001600081525090565b81546002830154604051632e76c56d60e21b81526001600160a01b039092169163b9db15b491611d3c9160040190815260200190565b60006040518083038186803b158015611d5457600080fd5b505afa158015611d68573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d909190810190614080565b50505060208301819052818352611dab91899189919061316f565b611db58787613f3e565b826003018981548110611dca57611dca613d44565b9060005260206000200154836004018a81548110611dea57611dea613d44565b9060005260206000200154611dff9190613f3e565b611e099190613f3e565b826005018981548110611e1e57611e1e613d44565b906000526020600020016000828254611e379190613f3e565b9250508190555086826003018981548110611e5457611e54613d44565b906000526020600020018190555085826004018981548110611e7857611e78613d44565b906000526020600020018190555084826006018981548110611e9c57611e9c613d44565b90600052602060002001819055508383836007018a81548110611ec157611ec1613d44565b906000526020600020019190611ed8929190613457565b5081546005830180547fd99934f5b053ba28c54ae74875195b688f9367ba5b0c50f5233e692eb91549c8926001600160a01b0316918c918c919082908110611f2257611f22613d44565b9060005260206000200154898989604051611f439796959493929190614287565b60405180910390a1505050505050505050565b600354600090611fc45760405162461bcd60e51b815260206004820152603360248201527f4d696e74696e67204d61726b6574706c6163653a20546865726520617265206e6044820152721bc81bd999995c9cc81c9959da5cdd195c9959606a1b60648201526084016104c5565b6001600160a01b0383166000818152600160209081526040808320868452909152902054600380549091908110611ffd57611ffd613d44565b60009182526020909120600890910201546001600160a01b0316146120985760405162461bcd60e51b8152602060048201526044602482018190527f4d696e74696e67204d61726b6574706c6163653a20546865726520617265206e908201527f6f206f6666657273207265676973746572656420666f722074686174206164646064820152637265737360e01b608482015260a4016104c5565b6001600160a01b03831660009081526001602090815260408083208584529091529020546003805484929081106120d1576120d1613d44565b906000526020600020906008020160020154146121655760405162461bcd60e51b815260206004820152604660248201527f4d696e74696e67204d61726b6574706c6163653a20546865726520617265206960448201527f73206e6f206f66666572207265676973746572656420666f72207468617420706064820152651c9bd91d58dd60d21b608482015260a4016104c5565b506001600160a01b03919091166000908152600160209081526040808320938352929052205490565b6000546001600160a01b031633146121b85760405162461bcd60e51b81526004016104c59061419c565b6006805461ffff191661ffff8316908117909155600454604080516001600160a01b03909216825260208201929092527f2adb51c26afe364a53c16cd44e82bdf5a52680ad11c64f2dbeb5bdb3764f731d91016116a0565b8281146122995760405162461bcd60e51b815260206004820152604b60248201527f4d696e74696e67204d61726b6574706c6163653a20526563697069656e74732060448201527f616e642050657263656e74616765732073686f756c642068617665207468652060648201526a0e6c2daca40d8cadccee8d60ab1b608482015260a4016104c5565b6003546122fe5760405162461bcd60e51b815260206004820152602d60248201527f4d696e74696e67204d61726b6574706c6163653a20546865726520617265206e60448201526c6f206f6666657220706f6f6c7360981b60648201526084016104c5565b6003548511156123665760405162461bcd60e51b815260206004820152602d60248201527f4d696e74696e67204d61726b6574706c6163653a204f6666657220506f6f6c2060448201526c191bd95cdb89dd08195e1a5cdd609a1b60648201526084016104c5565b60006001600160a01b03166003868154811061238457612384613d44565b60009182526020909120600890910201546001600160a01b031614156124015760405162461bcd60e51b815260206004820152602c60248201527f4d696e74696e67204d61726b6574706c6163653a20496e76616c6964206f666660448201526b657220706f6f6c206461746160a01b60648201526084016104c5565b6124176003868154811061107c5761107c613d44565b506000805b8481101561245c5783838281811061243657612436613d44565b905060200201358261244891906142e1565b91508061245481613e89565b91505061241c565b5060065461ffff6201000082048116916124779116836142e1565b61248191906142e1565b620186a01461252c5760405162461bcd60e51b8152602060048201526064602482018190527f4d696e74696e67204d61726b6574706c6163653a2050657263656e746167657360448301527f2073686f756c642061646420757020746f203130302520283130303030302c20908201527f696e636c7564696e67206e6f64652066656520616e64207472656173757279206084820152636665652960e01b60a482015260c4016104c5565b60008681526002602052604090206125458187876134db565b5061255460018201858561352e565b507f40a049f3fdcbf6879c736779d7d3043e94267127987fd5a0e13a7284a6a46dc9878787878760405161258c9594939291906142f9565b60405180910390a150505050505050565b6000806000806000806060600060038a815481106125bd576125bd613d44565b60009182526020918290206040805161010081018252600890930290910180546001600160a01b039081168452600182015416838501526002810154838301526003810180548351818702810187019094528084529394919360608601939283018282801561264b57602002820191906000526020600020905b815481526020019060010190808311612637575b50505050508152602001600482018054806020026020016040519081016040528092919081815260200182805480156126a357602002820191906000526020600020905b81548152602001906001019080831161268f575b50505050508152602001600582018054806020026020016040519081016040528092919081815260200182805480156126fb57602002820191906000526020600020905b8154815260200190600101908083116126e7575b505050505081526020016006820180548060200260200160405190810160405280929190818152602001828054801561275357602002820191906000526020600020905b81548152602001906001019080831161273f575b5050505050815260200160078201805480602002602001604051908101604052809291908181526020016000905b8282101561282d5783829060005260206000200180546127a090613fea565b80601f01602080910402602001604051908101604052809291908181526020018280546127cc90613fea565b80156128195780601f106127ee57610100808354040283529160200191612819565b820191906000526020600020905b8154815290600101906020018083116127fc57829003601f168201915b505050505081526020019060010190612781565b505050508152505090508060000151816040015182606001518b8151811061285757612857613d44565b602002602001015183608001518c8151811061287557612875613d44565b60200260200101518460a001518d8151811061289357612893613d44565b60200260200101518560c001518e815181106128b1576128b1613d44565b60200260200101518660e001518f815181106128cf576128cf613d44565b602002602001015197509750975097509750975097505092959891949750929550565b60006003848154811061290757612907613d44565b6000918252602090912060089091020180549091506001600160a01b03166129415760405162461bcd60e51b81526004016104c590613d5a565b600581015483106129645760405162461bcd60e51b81526004016104c590613da8565b600081600501848154811061297b5761297b613d44565b9060005260206000200154116129f95760405162461bcd60e51b815260206004820152603c60248201527f4d696e74696e67204d61726b6574706c6163653a2043616e6e6f74206d696e7460448201527f206d6f726520746f6b656e7320666f7220746869732072616e6765210000000060648201526084016104c5565b81816003018481548110612a0f57612a0f613d44565b906000526020600020015411158015612a475750806004018381548110612a3857612a38613d44565b90600052602060002001548211155b612a635760405162461bcd60e51b81526004016104c590613f8d565b806006018381548110612a7857612a78613d44565b9060005260206000200154341015612aa25760405162461bcd60e51b81526004016104c590613e20565b6000848152600260205260409020805415612b8f5760005b8154811015612b8957816000018181548110612ad857612ad8613d44565b6000918252602090912001546001830180546001600160a01b03909216916108fc91620186a09185908110612b0f57612b0f613d44565b9060005260206000200154866006018981548110612b2f57612b2f613d44565b9060005260206000200154612b449190613e01565b612b4e9190613e67565b6040518115909202916000818181858888f19350505050158015612b76573d6000803e3d6000fd5b5080612b8181613e89565b915050612aba565b50612d74565b81546040516301ffc9a760e01b8152632baae9fd60e01b6004820152600091829182916001600160a01b0316906301ffc9a79060240160206040518083038186803b158015612bdd57600080fd5b505afa158015612bf1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c159190613ea4565b90508015612d705784546006860180546001600160a01b0390921691632a55205a916000918b908110612c4a57612c4a613d44565b90600052602060002001546040518363ffffffff1660e01b8152600401612c7b929190918252602082015260400190565b604080518083038186803b158015612c9257600080fd5b505afa158015612ca6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cca9190613ec6565b60065491945092506001600160a01b038416906108fc90620186a090612cfc9061ffff62010000820481169116613ef4565b612d0d9061ffff16620186a0613f1a565b62ffffff16886006018b81548110612d2757612d27613d44565b9060005260206000200154612d3c9190613e01565b612d469190613e67565b6040518115909202916000818181858888f19350505050158015612d6e573d6000803e3d6000fd5b505b5050505b336001600160a01b03166108fc836006018681548110612d9657612d96613d44565b906000526020600020015434612dac9190613f3e565b6040518115909202916000818181858888f19350505050158015612dd4573d6000803e3d6000fd5b506004546006805490840180546001600160a01b03909316926108fc92620186a09261ffff9091169189908110612e0d57612e0d613d44565b9060005260206000200154612e229190613e01565b612e2c9190613e67565b6040518115909202916000818181858888f19350505050158015612e54573d6000803e3d6000fd5b5060018201546006805490840180546001600160a01b03909316926108fc92620186a0926201000090910461ffff169189908110612e9457612e94613d44565b9060005260206000200154612ea99190613e01565b612eb39190613e67565b6040518115909202916000818181858888f19350505050158015612edb573d6000803e3d6000fd5b50816005018481548110612ef157612ef1613d44565b60009182526020822001805491612f0783613f55565b9190505550816005018481548110612f2157612f21613d44565b906000526020600020015460001415612f925760058054906000612f4483613f55565b909155505081546040517fd7597aa2d6438f91b7d71e7d13764734af94bc7db28326e194bfab67236e58c191612f89916001600160a01b039091169088908890613f6c565b60405180910390a15b81546002830154604051630ab714fb60e11b81526001600160a01b039092169163156e29f691612fc9913391908890600401613f6c565b600060405180830381600087803b158015612fe357600080fd5b505af1158015612ff7573d6000803e3d6000fd5b50508354604080513381526001600160a01b039092166020830152810188905260608101879052608081018690527f188c6e7ce5cf6a45f5d4441da49a243005c388c7f4f00137378ba3d058baf01d925060a001905060405180910390a15050505050565b6000546001600160a01b031633146130865760405162461bcd60e51b81526004016104c59061419c565b6006805463ffff000019166201000061ffff8416908102919091179091556040519081527f6a6cc0807c3fb0910ab842e5fd4c193307b3cff967f1a7d096538e4961884b70906020016116a0565b6000546001600160a01b031633146130fe5760405162461bcd60e51b81526004016104c59061419c565b6001600160a01b0381166131635760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104c5565b61316c81613407565b50565b8284111561320b5760405162461bcd60e51b815260206004820152605960248201527f4d696e74696e67204d61726b6574706c6163653a2052616e676527732073746160448201527f7274696e6720746f6b656e2068617320746f206265206c657373207468616e2060648201527f7468652072616e6765277320656e64696e6720746f6b656e2100000000000000608482015260a4016104c5565b8061321684846142e1565b11156132bb5760405162461bcd60e51b815260206004820152606260248201527f4d696e74696e67204d61726b6574706c6163653a2052616e6765277320656e6460448201527f696e6720746f6b656e2068617320746f206265206c657373206f72206571756160648201527f6c207468616e207468652070726f64756374277320656e64696e6720746f6b656084820152616e2160f01b60a482015260c4016104c5565b50505050565b6000600386815481106132d6576132d6613d44565b600091825260208083206003600890930201918201805460018181018355918552828520018990556004830180548083018255908552828520018890556006830180549182018155845292209091018490559050600581016133388686613f3e565b6133439060016142e1565b81546001818101845560009384526020808520909201929092556007840180549283018155835291829020845161338293919092019190850190613568565b508054600282015460078301547f5fb7e8962f72a7aa133e869363451a963b669f4833ca29bc394ebd53f121b98f926001600160a01b0316919089906133ca90600190613f3e565b898989896040516133e2989796959493929190614384565b60405180910390a1600580549060006133fa83613e89565b9190505550505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805461346390613fea565b90600052602060002090601f01602090048101928261348557600085556134cb565b82601f1061349e5782800160ff198235161785556134cb565b828001600101855582156134cb579182015b828111156134cb5782358255916020019190600101906134b0565b506134d79291506135dc565b5090565b8280548282559060005260206000209081019282156134cb579160200282015b828111156134cb5781546001600160a01b0319166001600160a01b038435161782556020909201916001909101906134fb565b8280548282559060005260206000209081019282156134cb57916020028201828111156134cb5782358255916020019190600101906134b0565b82805461357490613fea565b90600052602060002090601f01602090048101928261359657600085556134cb565b82601f106135af57805160ff19168380011785556134cb565b828001600101855582156134cb579182015b828111156134cb5782518255916020019190600101906135c1565b5b808211156134d757600081556001016135dd565b60008083601f84011261360357600080fd5b5081356001600160401b0381111561361a57600080fd5b6020830191508360208260051b850101111561363557600080fd5b9250929050565b6000806000806000806080878903121561365557600080fd5b863595506020870135945060408701356001600160401b038082111561367a57600080fd5b6136868a838b016135f1565b9096509450606089013591508082111561369f57600080fd5b506136ac89828a016135f1565b979a9699509497509295939492505050565b6000602082840312156136d057600080fd5b5035919050565b60008083601f8401126136e957600080fd5b5081356001600160401b0381111561370057600080fd5b60208301915083602082850101111561363557600080fd5b60008060008060008060a0878903121561373157600080fd5b8635955060208701359450604087013593506060870135925060808701356001600160401b0381111561376357600080fd5b6136ac89828a016136d7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156137ad576137ad61376f565b604052919050565b60006001600160401b038211156137ce576137ce61376f565b5060051b60200190565b600082601f8301126137e957600080fd5b813560206137fe6137f9836137b5565b613785565b82815260059290921b8401810191818101908684111561381d57600080fd5b8286015b848110156138385780358352918301918301613821565b509695505050505050565b60006001600160401b0382111561385c5761385c61376f565b50601f01601f191660200190565b600080600080600060a0868803121561388257600080fd5b8535945060208601356001600160401b03808211156138a057600080fd5b6138ac89838a016137d8565b955060408801359150808211156138c257600080fd5b6138ce89838a016137d8565b945060608801359150808211156138e457600080fd5b6138f089838a016137d8565b9350608088013591508082111561390657600080fd5b818801915088601f83011261391a57600080fd5b81356139286137f9826137b5565b8082825260208201915060208360051b86010192508b83111561394a57600080fd5b602085015b838110156139c857848135111561396557600080fd5b803586018d603f82011261397857600080fd5b60208101356139896137f982613843565b8181528f604083850101111561399e57600080fd5b8160408401602083013760006020838301015280865250505060208301925060208101905061394f565b5080955050505050509295509295909350565b6001600160a01b038116811461316c57600080fd5b80356139fb816139db565b919050565b600060208284031215613a1257600080fd5b8135613a1d816139db565b9392505050565b600080600080600080600080600080600060e08c8e031215613a4557600080fd5b613a4e8c6139f0565b9a5060208c013599506001600160401b038060408e01351115613a7057600080fd5b613a808e60408f01358f016135f1565b909a50985060608d0135811015613a9657600080fd5b613aa68e60608f01358f016135f1565b909850965060808d0135811015613abc57600080fd5b613acc8e60808f01358f016135f1565b909650945060a08d0135811015613ae257600080fd5b50613af38d60a08e01358e016135f1565b9093509150613b0460c08d016139f0565b90509295989b509295989b9093969950565b600080600080600080600060c0888a031215613b3157600080fd5b873596506020880135955060408801359450606088013593506080880135925060a08801356001600160401b03811115613b6a57600080fd5b613b768a828b016136d7565b989b979a50959850939692959293505050565b60008060408385031215613b9c57600080fd5b8235613ba7816139db565b946020939093013593505050565b600060208284031215613bc757600080fd5b813561ffff81168114613a1d57600080fd5b600080600080600060608688031215613bf157600080fd5b8535945060208601356001600160401b0380821115613c0f57600080fd5b613c1b89838a016135f1565b90965094506040880135915080821115613c3457600080fd5b50613c41888289016135f1565b969995985093965092949392505050565b60008060408385031215613c6557600080fd5b50508035926020909101359150565b60005b83811015613c8f578181015183820152602001613c77565b838111156132bb5750506000910152565b60008151808452613cb8816020860160208601613c74565b601f01601f19169290920160200192915050565b60018060a01b03881681528660208201528560408201528460608201528360808201528260a082015260e060c08201526000613d0b60e0830184613ca0565b9998505050505050505050565b600080600060608486031215613d2d57600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052603260045260246000fd5b6020808252602e908201527f4d696e74696e67204d61726b6574706c6163653a20496e76616c69642050726f60408201526d647563742053656c65637465642160901b606082015260800190565b60208082526023908201527f4d696e74696e67204d61726b6574706c6163653a20496e76616c69642072616e60408201526267652160e81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613e1b57613e1b613deb565b500290565b60208082526027908201527f4d696e74696e67204d61726b6574706c6163653a20496e737566696369656e746040820152662046756e64732160c81b606082015260800190565b600082613e8457634e487b7160e01b600052601260045260246000fd5b500490565b6000600019821415613e9d57613e9d613deb565b5060010190565b600060208284031215613eb657600080fd5b81518015158114613a1d57600080fd5b60008060408385031215613ed957600080fd5b8251613ee4816139db565b6020939093015192949293505050565b600061ffff808316818516808303821115613f1157613f11613deb565b01949350505050565b600062ffffff83811690831681811015613f3657613f36613deb565b039392505050565b600082821015613f5057613f50613deb565b500390565b600081613f6457613f64613deb565b506000190190565b6001600160a01b039390931683526020830191909152604082015260600190565b6020808252603e908201527f4d696e74696e67204d61726b6574706c6163653a20546f6b656e20646f65736e60408201527f27742062656c6f6e6720696e2074686174206f666665722072616e6765210000606082015260800190565b600181811c90821680613ffe57607f821691505b6020821081141561401f57634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f83011261403657600080fd5b815160206140466137f9836137b5565b82815260059290921b8401810191818101908684111561406557600080fd5b8286015b848110156138385780518352918301918301614069565b600080600080600060a0868803121561409857600080fd5b85519450602086015193506040860151925060608601516001600160401b03808211156140c457600080fd5b818801915088601f8301126140d857600080fd5b81516140e66137f982613843565b8181528a60208386010111156140fb57600080fd5b61410c826020830160208701613c74565b60808a01519095509250508082111561412457600080fd5b5061413188828901614025565b9150509295509295909350565b602080825260409082018190527f4d696e74696e67204d61726b6574706c6163653a204f6666657227732072616e908201527f6765732073686f756c642068617665207468652073616d65206c656e67746821606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252604a908201527f4d696e74696e67204d61726b6574706c6163653a20416e206f6666657220616c60408201527f72656164792065786973747320666f72207468697320636f6e747261637420616060820152691b99081c1c9bd91d58dd60b21b608082015260a00190565b6000808335601e1984360301811261425857600080fd5b8301803591506001600160401b0382111561427257600080fd5b60200191503681900382131561363557600080fd5b60018060a01b038816815286602082015285604082015284606082015283608082015260c060a08201528160c0820152818360e0830137600081830160e090810191909152601f909201601f191601019695505050505050565b600082198211156142f4576142f4613deb565b500190565b85815260606020808301829052908201859052600090869060808401835b8881101561434557833561432a816139db565b6001600160a01b031682529282019290820190600101614317565b5084810360408601528581526001600160fb1b0386111561436557600080fd5b8560051b92508287838301376000920101908152979650505050505050565b600061010060018060a01b038b1683528960208401528860408401528760608401528660808401528560a08401528460c08401528060e08401526143ca81840185613ca0565b9b9a505050505050505050505056fea2646970667358221220d31eec8aaa9e95bfb0dfe01df1388a337957a649ee8e380ef7873ca88eda833764736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007849194dd593d6c3aed24035d70b5394a1c90f8f000000000000000000000000000000000000000000000000000000000000232800000000000000000000000000000000000000000000000000000000000003e8
-----Decoded View---------------
Arg [0] : _treasury (address): 0x7849194dD593d6c3aeD24035D70B5394a1C90F8F
Arg [1] : _treasuryFee (uint16): 9000
Arg [2] : _nodeFee (uint16): 1000
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000007849194dd593d6c3aed24035d70b5394a1c90f8f
Arg [1] : 0000000000000000000000000000000000000000000000000000000000002328
Arg [2] : 00000000000000000000000000000000000000000000000000000000000003e8
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.