Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 954 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 19257763 | 185 days ago | IN | 0 ETH | 0.00107533 | ||||
Set Approval For... | 16309423 | 599 days ago | IN | 0 ETH | 0.00068674 | ||||
Set Approval For... | 15798066 | 670 days ago | IN | 0 ETH | 0.00414335 | ||||
Safe Transfer Fr... | 15134401 | 770 days ago | IN | 0 ETH | 0.00413072 | ||||
Safe Transfer Fr... | 15116849 | 773 days ago | IN | 0 ETH | 0.00351388 | ||||
Withdraw Ether | 15071159 | 780 days ago | IN | 0 ETH | 0.00103385 | ||||
Edit Token | 15058701 | 782 days ago | IN | 0 ETH | 0.00277184 | ||||
Edit Token | 15058700 | 782 days ago | IN | 0 ETH | 0.00263736 | ||||
Purchase | 15054305 | 783 days ago | IN | 2.1 ETH | 0.00163488 | ||||
Purchase | 15054293 | 783 days ago | IN | 2.1 ETH | 0.00379613 | ||||
Purchase | 15054290 | 783 days ago | IN | 2.1 ETH | 0.0032806 | ||||
Purchase | 15054250 | 783 days ago | IN | 2.1 ETH | 0.00240102 | ||||
Purchase | 15054200 | 783 days ago | IN | 2.1 ETH | 0.00241459 | ||||
Purchase | 15053929 | 783 days ago | IN | 2.1 ETH | 0.00308605 | ||||
Purchase | 15053914 | 783 days ago | IN | 3.15 ETH | 0.0066622 | ||||
Purchase | 15053875 | 783 days ago | IN | 2.1 ETH | 0.00250914 | ||||
Purchase | 15053873 | 783 days ago | IN | 2.1 ETH | 0.00237145 | ||||
Edit Token | 15053814 | 783 days ago | IN | 0 ETH | 0.00221895 | ||||
Edit Token | 15053812 | 783 days ago | IN | 0 ETH | 0.00177185 | ||||
Purchase | 15053624 | 783 days ago | IN | 2.1 ETH | 0.00249539 | ||||
Purchase | 15053598 | 783 days ago | IN | 2.1 ETH | 0.00329979 | ||||
Purchase | 15053461 | 783 days ago | IN | 2.1 ETH | 0.00306591 | ||||
Purchase | 15053422 | 783 days ago | IN | 2.1 ETH | 0.00382602 | ||||
Purchase | 15053260 | 783 days ago | IN | 4.2 ETH | 0.00431499 | ||||
Purchase | 15052694 | 783 days ago | IN | 4.2 ETH | 0.00426641 |
Latest 13 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
15071159 | 780 days ago | 187.477 ETH | ||||
15040420 | 785 days ago | 21.473 ETH | ||||
14654145 | 849 days ago | 33.6 ETH | ||||
14615705 | 855 days ago | 16.8 ETH | ||||
14565089 | 863 days ago | 18.9 ETH | ||||
14495965 | 874 days ago | 16.8 ETH | ||||
14470643 | 878 days ago | 9.45 ETH | ||||
14417498 | 886 days ago | 13.65 ETH | ||||
14412321 | 887 days ago | 19.95 ETH | ||||
14392300 | 890 days ago | 139.65 ETH | ||||
14378846 | 892 days ago | 472.4022 ETH | ||||
14378837 | 892 days ago | 87.3678 ETH | ||||
14374435 | 893 days ago | 2 ETH |
Loading...
Loading
Contract Name:
Commerce
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import './Abstract1155Factory.sol'; import './Utils.sol'; import "hardhat/console.sol"; contract Commerce is Abstract1155Factory, ReentrancyGuard { using SafeMath for uint256; mapping(uint256 => Token) public tokens; event Purchased(uint[] index, address indexed account, uint[] amount); event Fused(uint[] index, address indexed account, uint[] amount); struct Token { string ipfsMetadataHash; string extraDataUri; mapping(address => uint256) claimedTokens; mapping(uint => address) redeemableContracts; uint256 numRedeemableContracts; mapping(uint => Whitelist) whitelistData; uint256 numTokenWhitelists; MintingConfig mintingConfig; WhiteListConfig whiteListConfig; bool isTokenPack; } struct MintingConfig { bool saleIsOpen; uint256 windowOpens; uint256 windowCloses; uint256 mintPrice; uint256 maxSupply; uint256 maxPerWallet; uint256 maxMintPerTxn; uint256 numMinted; uint256 fusionTokenID; uint256 fusionQuantity; bool fusionOpen; } struct WhiteListConfig { bool maxQuantityMappedByWhitelistHoldings; bool requireAllWhiteLists; bool hasMerkleRoot; bytes32 merkleRoot; } struct Whitelist { string tokenType; address tokenAddress; uint mustOwnQuantity; uint256 tokenId; bool active; } string public _contractURI; constructor( string memory _name, string memory _symbol, address[] memory _admins, string memory _contract_URI ) ERC1155("ipfs://") { name_ = _name; symbol_ = _symbol; _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); for (uint i=0; i< _admins.length; i++) { _setupRole(DEFAULT_ADMIN_ROLE, _admins[i]); } _contractURI = _contract_URI; } function getOpenSaleTokens() public view returns (string memory){ string memory open = ""; uint256 numTokens = 0; while(!Utils.compareStrings(tokens[numTokens].ipfsMetadataHash, "")) { if(isSaleOpen(numTokens)){ open = string(abi.encodePacked(open, Strings.toString(numTokens), ",")); } numTokens++; } return open; } function editToken( uint256 _tokenIndex, string memory _ipfsMetadataHash, string memory _extraDataUri, uint256 _windowOpens, uint256 _windowCloses, uint256 _mintPrice, uint256 _maxSupply, uint256 _maxMintPerTxn, uint256 _maxPerWallet, bool _maxQuantityMappedByWhitelistHoldings, bool _requireAllWhiteLists, address[] memory _redeemableContracts ) public onlyRole(DEFAULT_ADMIN_ROLE) { Token storage token = tokens[_tokenIndex]; token.mintingConfig.windowOpens = _windowOpens; token.mintingConfig.windowCloses = _windowCloses; token.mintingConfig.mintPrice = _mintPrice; token.mintingConfig.maxSupply = _maxSupply; token.mintingConfig.maxMintPerTxn = _maxMintPerTxn; token.mintingConfig.maxPerWallet = _maxPerWallet; token.ipfsMetadataHash = _ipfsMetadataHash; token.extraDataUri = _extraDataUri; for (uint i=0; i<_redeemableContracts.length; i++) { token.redeemableContracts[i] = _redeemableContracts[i]; } token.numRedeemableContracts = _redeemableContracts.length; token.whiteListConfig.maxQuantityMappedByWhitelistHoldings = _maxQuantityMappedByWhitelistHoldings; token.whiteListConfig.requireAllWhiteLists = _requireAllWhiteLists; } function addFusion( uint256 _tokenIndex, uint256 _fusionTokenID, uint256 _fusionQuantity ) public onlyRole(DEFAULT_ADMIN_ROLE) { Token storage token = tokens[_tokenIndex]; token.mintingConfig.fusionTokenID = _fusionTokenID; token.mintingConfig.fusionQuantity = _fusionQuantity; } function toggleFusion( uint256 _tokenIndex, bool _fusionOpen ) public onlyRole(DEFAULT_ADMIN_ROLE) { Token storage token = tokens[_tokenIndex]; token.mintingConfig.fusionOpen = _fusionOpen; } function addWhiteList( uint256 _tokenIndex, string memory _tokenType, address _tokenAddress, uint _tokenId, uint _mustOwnQuantity )external onlyRole(DEFAULT_ADMIN_ROLE) { Whitelist storage whitelist = tokens[_tokenIndex].whitelistData[tokens[_tokenIndex].numTokenWhitelists]; whitelist.tokenType = _tokenType; whitelist.tokenId = _tokenId; whitelist.active = true; whitelist.tokenAddress = _tokenAddress; whitelist.mustOwnQuantity = _mustOwnQuantity; tokens[_tokenIndex].numTokenWhitelists = tokens[_tokenIndex].numTokenWhitelists + 1; } function disableWhiteList( uint256 _tokenIndex, uint _whiteListIndexToRemove )external onlyRole(DEFAULT_ADMIN_ROLE) { tokens[_tokenIndex].whitelistData[_whiteListIndexToRemove].active = false; } function editTokenWhiteListMerkleRoot( uint256 _tokenIndex, bytes32 _merkleRoot, bool enabled ) external onlyRole(DEFAULT_ADMIN_ROLE) { tokens[_tokenIndex].whiteListConfig.merkleRoot = _merkleRoot; tokens[_tokenIndex].whiteListConfig.hasMerkleRoot = enabled; } function burnFromRedeem( address account, uint256 tokenIndex, uint256 amount ) external { Token storage token = tokens[tokenIndex]; bool hasValidRedemptionContract = false; if(token.numRedeemableContracts > 0){ for (uint i=0; i < token.numRedeemableContracts; i++) { if(token.redeemableContracts[i] == msg.sender){ hasValidRedemptionContract = true; } } } require(hasValidRedemptionContract, "1"); _burn(account, tokenIndex, amount); } function fusion( uint256 tokenIndex, uint256 amount ) external nonReentrant{ Token storage token = tokens[tokenIndex]; require(token.mintingConfig.fusionOpen, "20"); Whitelist memory balanceRequest; balanceRequest.tokenType = "ERC1155"; balanceRequest.tokenAddress = address(this); balanceRequest.tokenId = token.mintingConfig.fusionTokenID; uint256 balance = getExternalTokenBalance(msg.sender, balanceRequest); require(balance > token.mintingConfig.fusionQuantity, "21"); uint256 numToIssue = amount.div(token.mintingConfig.fusionQuantity); uint256[] memory idsToMint; uint256[] memory quantitiesToMint; idsToMint = new uint256[](1); idsToMint[0] = tokenIndex; quantitiesToMint = new uint256[](1); quantitiesToMint[0] = numToIssue; _mintBatch(msg.sender, idsToMint, quantitiesToMint, ""); _burn(msg.sender, token.mintingConfig.fusionTokenID, amount); emit Fused(idsToMint, msg.sender, quantitiesToMint); } function purchase( uint256[] calldata _quantities, uint256[] calldata _tokenIndexes, uint256[] calldata _merkleAmounts, bytes32[][] calldata _merkleProofs ) external payable nonReentrant { uint256 totalPrice = 0; for (uint i=0; i< _tokenIndexes.length; i++) { require(isSaleOpen(_tokenIndexes[i]), "5"); require(tokens[_tokenIndexes[i]].claimedTokens[msg.sender].add(_quantities[i]) <= _merkleAmounts[i], "8"); require(tokens[_tokenIndexes[i]].claimedTokens[msg.sender].add(_quantities[i]) <= tokens[_tokenIndexes[i]].mintingConfig.maxPerWallet, "9"); require(_quantities[i] <= tokens[_tokenIndexes[i]].mintingConfig.maxMintPerTxn, "10"); require(getTokenSupply(_tokenIndexes[i]) + _quantities[i] <= tokens[_tokenIndexes[i]].mintingConfig.maxSupply, "11"); totalPrice = totalPrice.add(_quantities[i].mul(tokens[_tokenIndexes[i]].mintingConfig.mintPrice)); } require(!paused() && msg.value >= totalPrice, "3"); for (uint i=0; i< _tokenIndexes.length; i++) { uint256 quantityToMint = getQualifiedAllocation(msg.sender,_tokenIndexes[i], _quantities[i],_merkleAmounts[i],_merkleProofs[i], true); require(quantityToMint > 0 && quantityToMint >= _quantities[i], "4"); uint256[] memory idsToMint; uint256[] memory quantitiesToMint; idsToMint = new uint256[](1); idsToMint[0] = _tokenIndexes[i]; quantitiesToMint = new uint256[](1); quantitiesToMint[0] = _quantities[i]; tokens[_tokenIndexes[i]].claimedTokens[msg.sender] = tokens[_tokenIndexes[i]].claimedTokens[msg.sender].add(_quantities[i]); _mintBatch(msg.sender, idsToMint, quantitiesToMint, ""); } emit Purchased(_tokenIndexes, msg.sender, _quantities); } function mintBatch( address to, uint256[] calldata qty, uint256[] calldata _tokens) public onlyRole(DEFAULT_ADMIN_ROLE) { _mintBatch(to, _tokens, qty, ""); } function getQualifiedAllocation(address sender, uint256 tokenIndex, uint256 quantity, uint256 amount, bytes32[] calldata merkleProof, bool returnAllocationOnly) public view returns (uint256) { Token storage token = tokens[tokenIndex]; uint256 totalAllowed = token.mintingConfig.maxPerWallet; if(token.whiteListConfig.maxQuantityMappedByWhitelistHoldings){ totalAllowed = 0; } uint256 whiteListsValidAmounts = 0; if(token.numTokenWhitelists > 0){ uint256 balance = 0; uint256 _wl_amount = 0; for (uint i=0; i < token.numTokenWhitelists; i++) { if(token.whitelistData[i].active){ _wl_amount = verifyWhitelist(sender, tokenIndex, i, returnAllocationOnly); if(token.whiteListConfig.requireAllWhiteLists){ require( verifyWhitelist(sender, tokenIndex, i, returnAllocationOnly) > 0, "12"); } if(token.whiteListConfig.maxQuantityMappedByWhitelistHoldings){ Whitelist memory balanceRequest; balanceRequest.tokenType = token.whitelistData[i].tokenType; balanceRequest.tokenAddress = token.whitelistData[i].tokenAddress; balanceRequest.tokenId = token.whitelistData[i].tokenId; balance = getExternalTokenBalance(sender, balanceRequest); totalAllowed += balance; whiteListsValidAmounts += balance; } else{ whiteListsValidAmounts = _wl_amount; } } } } else{ whiteListsValidAmounts = token.mintingConfig.maxMintPerTxn; } if(!returnAllocationOnly){ require(whiteListsValidAmounts > 0, "13"); if(token.whiteListConfig.maxQuantityMappedByWhitelistHoldings){ require(token.claimedTokens[sender].add(quantity) <= totalAllowed, "14"); } } if(token.whiteListConfig.hasMerkleRoot){ require( verifyMerkleProof(merkleProof, tokenIndex, amount), "15" ); //whiteListsValidAmounts += quantity; } if(returnAllocationOnly){ return whiteListsValidAmounts < quantity ? whiteListsValidAmounts : quantity; } else{ return whiteListsValidAmounts; } } function verifyWhitelist(address sender, uint256 tokenIndex, uint whitelistIndex, bool returnAllocationOnly) internal view returns (uint256) { uint256 isValid = 0; uint256 balanceOf = 0; Token storage token = tokens[tokenIndex]; Whitelist memory balanceRequest; balanceRequest.tokenType = token.whitelistData[whitelistIndex].tokenType; balanceRequest.tokenAddress = token.whitelistData[whitelistIndex].tokenAddress; balanceRequest.tokenId = token.whitelistData[whitelistIndex].tokenId; balanceOf = getExternalTokenBalance(sender, balanceRequest); bool meetsWhiteListReqs = (balanceOf >= token.whitelistData[whitelistIndex].mustOwnQuantity); if(!token.isTokenPack && token.whiteListConfig.maxQuantityMappedByWhitelistHoldings){ isValid = balanceOf; } else if( meetsWhiteListReqs){ isValid = token.mintingConfig.maxMintPerTxn; } if(isValid == 0 && !token.whiteListConfig.requireAllWhiteLists){ isValid = token.mintingConfig.maxMintPerTxn; } return isValid; } function getExternalTokenBalance (address sender, Whitelist memory balanceRequest) public view returns (uint256) { if(Utils.compareStrings(balanceRequest.tokenType, "ERC721")){ WhitelistContract721 _contract = WhitelistContract721(balanceRequest.tokenAddress); return _contract.balanceOf(sender); } else if(Utils.compareStrings(balanceRequest.tokenType, "ERC1155")){ WhitelistContract1155 _contract = WhitelistContract1155(balanceRequest.tokenAddress); return _contract.balanceOf(sender, balanceRequest.tokenId); } } function isSaleOpen(uint256 tokenIndex) public view returns (bool) { Token storage token = tokens[tokenIndex]; if(paused()){ return false; } if(block.timestamp > token.mintingConfig.windowOpens && block.timestamp < token.mintingConfig.windowCloses){ return token.mintingConfig.saleIsOpen; } return false; } function toggleSale(uint256 mpIndex, bool on) public onlyRole(DEFAULT_ADMIN_ROLE) { tokens[mpIndex].mintingConfig.saleIsOpen = on; } function verifyMerkleProof(bytes32[] calldata merkleProof, uint256 mpIndex, uint amount) public view returns (bool) { if(!tokens[mpIndex].whiteListConfig.hasMerkleRoot){ return true; } string memory leaf = Utils.makeLeaf(msg.sender, amount); bytes32 node = keccak256(abi.encode(leaf)); return MerkleProof.verify(merkleProof, tokens[mpIndex].whiteListConfig.merkleRoot, node); } function char(bytes1 b) internal view returns (bytes1 c) { if (uint8(b) < 10) return bytes1(uint8(b) + 0x30); else return bytes1(uint8(b) + 0x57); } function withdrawEther(address payable _to, uint256 _amount) public onlyOwner { _to.transfer(_amount); } function uri(uint256 _id) public view override returns (string memory) { require(getTokenSupply(_id) > 0, "16"); if(Utils.compareStrings(tokens[_id].ipfsMetadataHash, "")){ return string(abi.encodePacked(super.uri(_id), Strings.toString(_id))); } else{ return string(abi.encodePacked(tokens[_id].ipfsMetadataHash)); } } function getTokenSupply(uint256 tokenIndex) public view returns (uint256) { Token storage token = tokens[tokenIndex]; return token.isTokenPack ? token.mintingConfig.numMinted : totalSupply(tokenIndex); } } contract WhitelistContract1155 { function balanceOf(address account, uint256 id) external view returns (uint256) {} } contract WhitelistContract721 { function balanceOf(address account) external view returns (uint256) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/AccessControl.sol"; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol'; import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol'; import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol'; abstract contract Abstract1155Factory is AccessControl, ERC1155Pausable, ERC1155Supply, ERC1155Burnable, Ownable { string public name_; string public symbol_; function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function setURI(string memory baseURI) external onlyOwner { _setURI(baseURI); } function name() public view returns (string memory) { return name_; } function symbol() public view returns (string memory) { return symbol_; } function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual override(ERC1155, ERC1155Supply) { super._mint(account, id, amount, data); } function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override(ERC1155, ERC1155Supply) { super._mintBatch(to, ids, amounts, data); } function _burn( address account, uint256 id, uint256 amount ) internal virtual override(ERC1155, ERC1155Supply) { super._burn(account, id, amount); } function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual override(ERC1155, ERC1155Supply) { super._burnBatch(account, ids, amounts); } function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override(ERC1155Pausable, ERC1155) { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } function setOwner(address _addr) public onlyOwner { transferOwnership(_addr); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT 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 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 { 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 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 granted `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}. * ==== */ 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); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of {ERC1155} that allows token holders to destroy both their * own tokens and those that they have been approved to use. * * _Available since v3.1._ */ abstract contract ERC1155Burnable is ERC1155 { function burn( address account, uint256 id, uint256 value ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burn(account, id, value); } function burnBatch( address account, uint256[] memory ids, uint256[] memory values ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burnBatch(account, ids, values); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC1155.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC1155 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. * * _Available since v3.1._ */ abstract contract ERC1155Pausable is ERC1155, Pausable { /** * @dev See {ERC1155-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); require(!paused(), "ERC1155Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates weither any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_mint}. */ function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual override { super._mint(account, id, amount, data); _totalSupply[id] += amount; } /** * @dev See {ERC1155-_mintBatch}. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._mintBatch(to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } /** * @dev See {ERC1155-_burn}. */ function _burn( address account, uint256 id, uint256 amount ) internal virtual override { super._burn(account, id, amount); _totalSupply[id] -= amount; } /** * @dev See {ERC1155-_burnBatch}. */ function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual override { super._burnBatch(account, ids, amounts); for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] -= amounts[i]; } } }
// SPDX-License-Identifier: MIT 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 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 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 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 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 pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(_msgSender() != operator, "ERC1155: setting approval status for self"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][account] += amount; emit TransferSingle(operator, address(0), account, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `account` * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens of token type `id`. */ function _burn( address account, uint256 id, uint256 amount ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } emit TransferSingle(operator, account, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } } emit TransferBatch(operator, account, address(0), ids, amounts); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @author: @props import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; /** * @title Library of utility functions. */ library Utils { /** * @notice isUnique iterates over all elements in an array to determine whether or * not it contains repeated values. Returns false if a repeated value is found. * @param items the array of items to evaluate * @return true if the array does not contain repeated items, false if not * @dev We use for loops instead of storage based constructs because doing so * allows comparison to be run entirely in memory and therefore saves gas. */ function isUnique(uint256[] memory items) internal pure returns (bool) { for (uint i = 0; i < items.length; i++) { for (uint k = i + 1; k < items.length; k++) { if (items[i] == items[k]) { return false; } } } return true; } function compareStrings(string memory a, string memory b) internal view returns (bool) { return (keccak256(abi.encodePacked((a))) == keccak256(abi.encodePacked((b)))); } function makeLeaf(address _addr, uint amount) internal pure returns (string memory) { return string(abi.encodePacked(toAsciiString(_addr), "_", Strings.toString(amount))); } function toAsciiString(address x) internal pure returns (string memory) { bytes memory s = new bytes(40); for (uint i = 0; i < 20; i++) { bytes1 b = bytes1(uint8(uint(uint160(x)) / (2**(8*(19 - i))))); bytes1 hi = bytes1(uint8(b) / 16); bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi)); s[2*i] = toChar(hi); s[2*i+1] = toChar(lo); } return string(s); } function shuffle(uint256[] memory numberArr, bool returnRandomIndex, uint seed) internal view returns(uint256[] memory){ if(!returnRandomIndex){ for (uint256 i = 0; i < numberArr.length; i++) { uint256 n = i + uint256(keccak256(abi.encodePacked(block.timestamp, msg.sender, seed))) % (numberArr.length - i); uint256 temp = numberArr[n]; numberArr[n] = numberArr[i]; numberArr[i] = temp; } } else{ uint randomHash = uint(keccak256(abi.encodePacked(block.timestamp, msg.sender, seed))) % numberArr.length; uint256[] memory retNumberArr = new uint256[](1); retNumberArr[0] = numberArr[randomHash]; numberArr = retNumberArr; } return numberArr; } /** * @notice toChar converts a byte array to characters. * @param b bytes to convert characters * @return bytes character * @dev We use for loops instead of storage based constructs because doing so * allows comparison to be run entirely in memory and therefore saves gas. */ function toChar(bytes1 b) internal pure returns (bytes1) { if (uint8(b) < 10) return bytes1(uint8(b) + 0x30); else return bytes1(uint8(b) + 0x57); } }
// 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 /* * * Dev by @bitcoinski, @ultra_dao * Thanks to @PixelVault_ for their thought leadership in the space and the mint pass approach to gas wars * There are various mechanics in this contract heavily inspired from these trailblazers among others <3 * * Thanks to all 111 @Ultra_DAO team members, and for this project especially: * Project Lead: @chriswallace * Project Mgr: @healingvisions * Legal: @vinlysneverdie * Artists: @grelysian | @Jae838 | @DesLucrece | @sadcop * Story By: @crystaladalyn * Community & Marketing: @rpowazynski | @OmarIbisa * Discord Mods: @HeyHawX | @OmarIbisa | @ResetNft * Meme-Daddy: @ryan_goldberg_ * Website & Web3: @calvinhoenes | @bitcoinski | @ximecediazArt * Smart Contracts: @bitcoinski * Art Generation: @bitcoinski * */ pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import './AbstractMintPassportFactory.sol'; import "hardhat/console.sol"; /* ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::::::::::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;::cclooddxxxkkkOOOOO0000000OOOOOkkkxxxddoolcc::;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;:clodxkkO0KKXXNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNXXXK00Okxxdolc:;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;:oxOKXXNNNNNNNNNNNNNNNNXOxlco0NNNNNKOxolllloddkKNNNNNNNNNNNNNNNXXK0Okdl:;;;;;;;;;;;;;; ;;;;;;;;;;;;:oOXNNNNNNNNNNNNNNNNNX0xl:,'''';odkko;,'',,''''''oXNNNNNNNNNNNNNNNNNNNNNXOo:;;;;;;;;;;;; ;;;;;;;;;;;:xXNNNNNNNNNNNNNNNNKkoc;'',,,,,,....'',,,,;;,,,,,.'coxKNNNNNNNNNNNNNNNNNNNNKd:;;;;;;;;;;; ;;;;;;;;;;:xXNNNNNNNNNNNNNXOOOc'',;;;;;;;;,,..',,,;;,,;;,,,,..','c0XxoodkKNNNNNNNNNNNNNKo;;;;;;;;;;; ;;;;;;;;;;l0NNNNNNNNNNNNNXx,',..,,,,,,,,,;;;,....',,;,,;;,,'..;;'';:'.''';lkXNNNNNNNNNNNOc;;;;;;;;;; ;;;;;;;;;;dXNNNNNNNNNNNNXd,''...,,,,,,,,,,,,;;''..'',;,,;;,,,;;,,,..',,,,,''dXNNNNNNNNNNXd:;;;;;;;;; ;;;;;;;;;ckNNNNNNNNNNNN0l,,,,,.',,,,,,,,,,,,,;;,'.'',,;,,;;,,;;,,,'',,,,,;''dXNNNNNNNNNNN0l;;;;;;;;; ;;;;;;;;;l0NNNNNNNNNNNO;';;,,,,,,,,,,,;;,,,,,,;,,,,,,,;;,,;;;,,,,,,,,,,;,,,,kNNNNNNNNNNNNXd;;;;;;;;; ;;;;;;;;;dXNNNNNNNNNNNO;.;:;,,,,,,,,,,,,,,,,,,;;,,,,,,,,,,,,,,,,,,,,,,;;,;,;ONNNNNNNNNNNNNOc;;;;;;;; ;;;;;;;;:kNNNNNNNNNNNNO;.,;;,,,;,,;,,,,,,,,,,,;;,,,,,,,,,,,,,,,,,,,,,,;;;:';ONNNNNNNNNNNNNKo;;;;;;;; ;;;;;;;;cONNNNNNNNNNXk;.',;;;,,,;;;;;,,,,,,,,,;,,,,,,,,,,,,,,,,,,,,,,,,;;;..cKNNNNNNNNNNNNXx;;;;;;;; ;;;;;;;;l0NNNNNNNNNXx,',,,,;;;,,,;;,;;,,,,,,,,;;,,,,,,,,,,,,,,,,;;,,,,,,,'..:0NNNNNNNNNNNNNk:;;;;;;; ;;;;;;;;oKNNNNNNNNNk,.,,,,,,,;;,,,,,,,,,,,,,,,,;,,,,,,,,,,,,,,,,,;;,,,,,,,''lXNNNNNNNNNNNNNOc;;;;;;; ;;;;;;;;dXNNNNNNNNNKo'.',,,,,,,;,,,,,,,,,,,,,,,,,''''''',,,,,,,,,,;,,,,,,,',kNNNNNNNNNNNNNN0l;;;;;;; ;;;;;;;:xXNNNNNNNNNNNOc..,,,,,,,,,,,,,,,,;;,,,'.,;;;;;;;;,',,,,,'',,,,,,,,';ONNNNNNNNNNNNNNKo;;;;;;; ;;;;;;;:xXNNNNNNNNNNNNXk;',,,;,,,,,,,,,,,,,,;,..;:::;;;;;,',,,,,'.;:::::;'.:0NNNNNNNNNNNNNNKo;;;;;;; ;;;;;;;:kNNNNNNNNNNNNNNN0c.',;,,,,,,,,,,,,,,,;'...''...''',,,,,,''','',,,,'cKNNNNNNNNNNNNNNKo;;;;;;; ;;;;;;;:kNNNNNNNNNNNNNNNN0:.''....'',,,,,,,,,,,;,,,'. .',,,,,,,,,,'...',,,dXNNNNNNNNNNNNNN0l;;;;;;; ;;;;;;;:kNNNNNNNNNNNNNNNNXl...........',,,,,,,,,;;;' .,,,,,,,,,,. .','lKNNNNNNNNNNNNNNN0c;;;;;;; ;;;;;;;:kNNNNNNNNNNNNNNXk:..',,,,,,,'..',,,,,,,,,,,. .,,,,,,,,,. .':ONNNNNNKxocdKNNNNkc;;;;;;; ;;;;;;;:xXNNNNNNNNNNNNNKc.',,,'...,,;,,,,,,,,,,,,,'. .,,,,,,,,,. .:ONNNNNXkc,,'cKNNNXx:;;;;;;; ;;;;;;;;dXNNNNNNNNNNNNNNd'',,,...''.',,,,,,,,,,,,,'. .',,,;,'',,. .;kNNNNNNOcldo:l0NNNKo;;;;;;;; ;;;;;;;;oKNNNNNNNNNNNNNNK:.,,,........',,,,,,,,,,,'. .,;,,;,'.''. ..:0NNNNNNOccdolxXNNN0l;;;;;;;; ;;;;;;;;l0NNNNNNNNNNNNNNNk;.,,,'...'..',,,,,,,,,,,,'...,;;,,,'',,,''.'.,cdxkOOxl;:xkOXNNNNkc;;;;;;;; ;;;;;;;;:kNNNNNNNNNNNNNNNXx;'',,,...'','''',,,,,,,,,,,,,;,,,'''...'',,,,,''';;,;dKNNNNNNNXx:;;;;;;;; ;;;;;;;;;dXNNNNNNNNNNNNNNNNKxoc;,''''',col,...''',;,,,,;;,,,,,;,,'''.';;,..,:;cONNNNNNNNNKo;;;;;;;;; ;;;;;;;;;l0NNNNNNNNNNNNNNNNNNNXKOxoclx0XNNd..........'',;,,,,,,;;,,:ok00kocclxKNNNNNNNNNNOc;;;;;;;;; ;;;;;;;;;:xXNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNd,,,,'........,,,'''';cokKNNNNNNNXXNNNNNNNNNNNXx:;;;;;;;;; ;;;;;;;;;;l0NNNNNNNNNNNNNNNNNNNNNNNNNNNNNXl',,,,,,,,,,.cO0Okxxk0XNNNNNNNNNNNNNNNNNNNNNNNKo;;;;;;;;;; ;;;;;;;;;;;dKNNNNNNNNNNNNNNNNKOkkO0XX0kxkd;',,,,,,,,,''dNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOc;;;;;;;;;; ;;;;;;;;;;;:kXNNNNNNNNNNNNN0o::cc::cc;:cl;.',,,,,,,,,'.lk0XNNNNNNNNNNNNNNNNNNNNNNNNNNNNXd;;;;;;;;;;; ;;;;;;;;;;;;cONNNNNNNNNNKOd:;oxxxdoolcoxxd;',,,,,,,,'';clccoxddkKNNNNNNNNNNNNNNNNNNNNNN0l;;;;;;;;;;; ;;;;;;;;;;;;;lONNNNNNNXkc:;,lxxxdooxo:ldxo,.,,,,,,,',lxxxo:lddoc:xKXNNNNNNNNNNNNNNNNNNXx:;;;;;;;;;;; ;;;;;;;;;;;;;;lOXNNNNXxcoxl,:odo:;oxo;':c;..,,,,,'.':oddl:lxxxxoclodx0NNNNNNNNNNNNNNNXkc;;;;;;;;;;;; ;;;;;;;;;;;;;;;ckKNNNx:ldoc'',;::lxkxc,,;,.';;;;;,.,:clc;:dOOOkdxOkkolONNNNNNNNNNNXKOo:;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;:ldkx;':::c:,,d0XXNNXXKK000000OOOO00KKKKXXNNNNNXXNNNXKXNNNXXKK0Okxoc:;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;,,,,,:ccdKNNWWWWWWWWNWWWWWWNWWWWWNWWWWNNWWNNWWWWWN0xdolc::;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;:dXWNWWWWWWWWNXKNWWNNX0KNWNNWWWNNWWNNWWWWNXx:;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;:xNWWNWWWWWWW.ARDEN.WAS.HERE.kOXNWWWWWWWWNXx:;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;:dXWWWWWWWWWN.WOODIESNFT.COM.xkKNNWWWWWWWNKd;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oKWWWWWWWWNWNNNXXXNXK0KXXKKXXXNWNWWWWWWNXkc;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;l0NWWWWWNNWWWWWWWWNWWWWWWWNWWWWWNNWWWWWNKo;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:xKNNNNNNNWWWWWNNNNNXXXXKK0000KKKKKKKXK0d:;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:clooodddxxxdddooollllccc::::::cccccccc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;@ultra_dao */ contract WoodiesMintPassportFactory is AbstractMintPassportFactory { using SafeMath for uint256; using Counters for Counters.Counter; Counters.Counter private mpCounter; // Roles bytes32 public constant WOODIE_OPERATOR_ROLE = keccak256("WOODIE_OPERATOR_ROLE"); mapping(uint256 => MintPass) public mintPasses; event Claimed(uint index, address indexed account, uint amount); event ClaimedMultiple(uint[] index, address indexed account, uint[] amount); struct MintPass { bytes32 merkleRoot; bool saleIsOpen; uint256 windowOpens; uint256 windowCloses; uint256 mintPrice; uint256 maxSupply; uint256 maxPerWallet; uint256 maxMintPerTxn; string ipfsMetadataHash; address redeemableContract; // contract of the redeemable NFT mapping(address => uint256) claimedMPs; } constructor( string memory _name, string memory _symbol ) ERC1155("ipfs://ipfs/") { name_ = _name; symbol_ = _symbol; _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(DEFAULT_ADMIN_ROLE, 0x81745b7339D5067E82B93ca6BBAd125F214525d3); //bitcoinski _setupRole(DEFAULT_ADMIN_ROLE, 0x8367A713bc14212Ab1bB8c55A778e43e50B8b927); //chriswallace grantRole(WOODIE_OPERATOR_ROLE, msg.sender); } function addMintPass( bytes32 _merkleRoot, uint256 _windowOpens, uint256 _windowCloses, uint256 _mintPrice, uint256 _maxSupply, uint256 _maxMintPerTxn, string memory _ipfsMetadataHash, address _redeemableContract, uint256 _maxPerWallet ) external onlyOwner { require(_windowOpens < _windowCloses, "addMintPass: open window must be before close window"); require(_windowOpens > 0 && _windowCloses > 0, "addMintPass: window cannot be 0"); MintPass storage mp = mintPasses[mpCounter.current()]; mp.saleIsOpen = false; mp.merkleRoot = _merkleRoot; mp.windowOpens = _windowOpens; mp.windowCloses = _windowCloses; mp.mintPrice = _mintPrice; mp.maxSupply = _maxSupply; mp.maxMintPerTxn = _maxMintPerTxn; mp.maxPerWallet = _maxPerWallet; mp.ipfsMetadataHash = _ipfsMetadataHash; mp.redeemableContract = _redeemableContract; mpCounter.increment(); } function editMintPass( bytes32 _merkleRoot, uint256 _windowOpens, uint256 _windowCloses, uint256 _mintPrice, uint256 _maxSupply, uint256 _maxMintPerTxn, string memory _ipfsMetadataHash, address _redeemableContract, uint256 _mpIndex, bool _saleIsOpen, uint256 _maxPerWallet ) external onlyOwner { require(_windowOpens < _windowCloses, "editMintPass: open window must be before close window"); require(_windowOpens > 0 && _windowCloses > 0, "editMintPass: window cannot be 0"); mintPasses[_mpIndex].merkleRoot = _merkleRoot; mintPasses[_mpIndex].windowOpens = _windowOpens; mintPasses[_mpIndex].windowCloses = _windowCloses; mintPasses[_mpIndex].mintPrice = _mintPrice; mintPasses[_mpIndex].maxSupply = _maxSupply; mintPasses[_mpIndex].maxMintPerTxn = _maxMintPerTxn; mintPasses[_mpIndex].ipfsMetadataHash = _ipfsMetadataHash; mintPasses[_mpIndex].redeemableContract = _redeemableContract; mintPasses[_mpIndex].saleIsOpen = _saleIsOpen; mintPasses[_mpIndex].maxPerWallet = _maxPerWallet; } function burnFromRedeem( address account, uint256 mpIndex, uint256 amount ) external { require(mintPasses[mpIndex].redeemableContract == msg.sender, "Burnable: Only allowed from redeemable contract"); _burn(account, mpIndex, amount); } function claim( uint256 numPasses, uint256 amount, uint256 mpIndex, bytes32[] calldata merkleProof ) external payable { // verify call is valid require(isValidClaim(numPasses,amount,mpIndex,merkleProof)); //return any excess funds to sender if overpaid uint256 excessPayment = msg.value.sub(numPasses.mul(mintPasses[mpIndex].mintPrice)); if (excessPayment > 0) { (bool returnExcessStatus, ) = _msgSender().call{value: excessPayment}(""); require(returnExcessStatus, "Error returning excess payment"); } mintPasses[mpIndex].claimedMPs[msg.sender] = mintPasses[mpIndex].claimedMPs[msg.sender].add(numPasses); _mint(msg.sender, mpIndex, numPasses, ""); emit Claimed(mpIndex, msg.sender, numPasses); } function claimMultiple( uint256[] calldata numPasses, uint256[] calldata amounts, uint256[] calldata mpIndexs, bytes32[][] calldata merkleProofs ) external payable { // verify contract is not paused require(!paused(), "Claim: claiming is paused"); //validate all tokens being claimed and aggregate a total cost due for (uint i=0; i< mpIndexs.length; i++) { require(isValidClaim(numPasses[i],amounts[i],mpIndexs[i],merkleProofs[i]), "One or more claims are invalid"); } for (uint i=0; i< mpIndexs.length; i++) { mintPasses[mpIndexs[i]].claimedMPs[msg.sender] = mintPasses[mpIndexs[i]].claimedMPs[msg.sender].add(numPasses[i]); } _mintBatch(msg.sender, mpIndexs, numPasses, ""); emit ClaimedMultiple(mpIndexs, msg.sender, numPasses); } function mint( address to, uint256 numPasses, uint256 mpIndex) public onlyOwner { _mint(to, mpIndex, numPasses, ""); } function mintBatch( address to, uint256[] calldata numPasses, uint256[] calldata mpIndexs) public onlyOwner { _mintBatch(to, mpIndexs, numPasses, ""); } function isValidClaim( uint256 numPasses, uint256 amount, uint256 mpIndex, bytes32[] calldata merkleProof) internal view returns (bool) { // verify contract is not paused require(mintPasses[mpIndex].saleIsOpen, "Sale is paused"); require(!paused(), "Claim: claiming is paused"); // verify mint pass for given index exists require(mintPasses[mpIndex].windowOpens != 0, "Claim: Mint pass does not exist"); // Verify within window require (block.timestamp > mintPasses[mpIndex].windowOpens && block.timestamp < mintPasses[mpIndex].windowCloses, "Claim: time window closed"); // Verify minting price require(msg.value >= numPasses.mul(mintPasses[mpIndex].mintPrice), "Claim: Ether value incorrect"); // Verify numPasses is within remaining claimable amount require(mintPasses[mpIndex].claimedMPs[msg.sender].add(numPasses) <= amount, "Claim: Not allowed to claim given amount"); require(mintPasses[mpIndex].claimedMPs[msg.sender].add(numPasses) <= mintPasses[mpIndex].maxPerWallet, "Claim: Not allowed to claim that many from one wallet"); require(numPasses <= mintPasses[mpIndex].maxMintPerTxn, "Max quantity per transaction exceeded"); console.log('total supply left', totalSupply(mpIndex)); require(totalSupply(mpIndex) + numPasses <= mintPasses[mpIndex].maxSupply, "Purchase would exceed max supply"); console.log('isValidClaim leaf sender', msg.sender); bool isValid = verifyMerkleProof(merkleProof, mpIndex, amount); console.log('ISVALIDMERKLEPROOF', isValid); require( isValid, "MerkleDistributor: Invalid proof." ); return isValid; } function isSaleOpen(uint256 mpIndex) public view returns (bool) { return mintPasses[mpIndex].saleIsOpen; } function turnSaleOn(uint256 mpIndex) external{ require(isWoodiesTeamMember(msg.sender), "Caller does not have required role"); mintPasses[mpIndex].saleIsOpen = true; } function turnSaleOff(uint256 mpIndex) external{ require(isWoodiesTeamMember(msg.sender), "Caller does not have required role"); mintPasses[mpIndex].saleIsOpen = false; } function promoteTeamMember(address _addr) public{ console.log('promoteTeamMember', _addr); grantRole(WOODIE_OPERATOR_ROLE, _addr); } function demoteTeamMember(address _addr) public { revokeRole(WOODIE_OPERATOR_ROLE, _addr); } function isWoodiesTeamMember(address _addr) internal view returns (bool){ return hasRole(WOODIE_OPERATOR_ROLE, _addr) || hasRole(DEFAULT_ADMIN_ROLE, _addr); } function makeLeaf(address _addr, uint amount) public view returns (string memory) { return string(abi.encodePacked(toAsciiString(_addr), "_", Strings.toString(amount))); } function verifyMerkleProof(bytes32[] calldata merkleProof, uint256 mpIndex, uint amount) public view returns (bool) { if(mintPasses[mpIndex].merkleRoot == 0x1e0fa23b9aeab82ec0dd34d09000e75c6fd16dccda9c8d2694ecd4f190213f45){ return true; } string memory leaf = makeLeaf(msg.sender, amount); bytes32 node = keccak256(abi.encode(leaf)); return MerkleProof.verify(merkleProof, mintPasses[mpIndex].merkleRoot, node); } function toAsciiString(address x) internal view returns (string memory) { bytes memory s = new bytes(40); for (uint i = 0; i < 20; i++) { bytes1 b = bytes1(uint8(uint(uint160(x)) / (2**(8*(19 - i))))); bytes1 hi = bytes1(uint8(b) / 16); bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi)); s[2*i] = char(hi); s[2*i+1] = char(lo); } return string(s); } function char(bytes1 b) internal view returns (bytes1 c) { if (uint8(b) < 10) return bytes1(uint8(b) + 0x30); else return bytes1(uint8(b) + 0x57); } function withdrawEther(address payable _to, uint256 _amount) public onlyOwner { _to.transfer(_amount); } function getClaimedMps(uint256 poolId, address userAdress) public view returns (uint256) { return mintPasses[poolId].claimedMPs[userAdress]; } function uri(uint256 _id) public view override returns (string memory) { require(totalSupply(_id) > 0, "URI: nonexistent token"); return string(abi.encodePacked(super.uri(_id), mintPasses[_id].ipfsMetadataHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/AccessControl.sol"; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol'; import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol'; import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol'; abstract contract AbstractMintPassportFactory is AccessControl, ERC1155Pausable, ERC1155Supply, ERC1155Burnable, Ownable { string public name_; string public symbol_; function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function setURI(string memory baseURI) external onlyOwner { _setURI(baseURI); } function name() public view returns (string memory) { return name_; } function symbol() public view returns (string memory) { return symbol_; } function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual override(ERC1155, ERC1155Supply) { super._mint(account, id, amount, data); } function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override(ERC1155, ERC1155Supply) { super._mintBatch(to, ids, amounts, data); } function _burn( address account, uint256 id, uint256 amount ) internal virtual override(ERC1155, ERC1155Supply) { super._burn(account, id, amount); } function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual override(ERC1155, ERC1155Supply) { super._burnBatch(account, ids, amounts); } function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override(ERC1155Pausable, ERC1155) { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } function setOwner(address _addr) public onlyOwner { transferOwnership(_addr); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/AccessControl.sol"; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol'; import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol'; import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol'; abstract contract AbstractMintPassFactory is AccessControl, ERC1155Pausable, ERC1155Supply, ERC1155Burnable, Ownable { string public name_; string public symbol_; function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function setURI(string memory baseURI) external onlyOwner { _setURI(baseURI); } function name() public view returns (string memory) { return name_; } function symbol() public view returns (string memory) { return symbol_; } function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual override(ERC1155, ERC1155Supply) { super._mint(account, id, amount, data); } function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override(ERC1155, ERC1155Supply) { super._mintBatch(to, ids, amounts, data); } function _burn( address account, uint256 id, uint256 amount ) internal virtual override(ERC1155, ERC1155Supply) { super._burn(account, id, amount); } function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual override(ERC1155, ERC1155Supply) { super._burnBatch(account, ids, amounts); } function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override(ERC1155Pausable, ERC1155) { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } function setOwner(address _addr) public onlyOwner { transferOwnership(_addr); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT /* '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''...'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''....'''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''''''''''',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''''',,,,,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,,,,,,,'''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''......''''''''''',,,,,;;::clodxkkkkkkkkkkkkkkOOkkkkkkkkkkkkkkxdolc:;;;;,,,''''''''.'''''''''''''''''''''''''''' ''''''''''''''''''''....''''''''',,,,;;:ldkOKXNWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNXKOxoc:;;,,,,''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''',,,;;cok0XWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX0koc;;,,,,'''''''''''''''''''''''''''''' '''''''''''''''''''''''''''',,,;;:okKNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNKko:;,,,''''''''''''''''''''''''''''' '''''''''''''''..'''''''''',,;;cd0NWMMMMMMMMMWNXK0OkkkkkkkkkkkkkkkkkkkkkkkkkkkkO0KXNWWMMMMMMMMWN0dc;;,,''''''''''''''''''''''''''' '''''''''''''''..'''''''',,;;cdKWMMMMMMMMWX0kdlc::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::codk0XWMMMMMMMMN0d:;,,,''''''''''''''''''''''''' '''''''''''''''''''''''',,;:o0NMMMMMMMWXOdl::;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,;;;;:ldOXWMMMMMMWNOl:;,,,''''''''''''''''''''''' '''''''''''''''''''''',,,;:xXWMMMMMMWKxl:;;;,,,,''''''''''',,,,,,,,,,,'''''''''''',,,,;;;:lkKWMMMMMMWKd:;,,,'''''''''''''''''''''' ''''''''''''''''''''',,;;ckNMMMMMMWKxc:;;,,,''''''''''''''',,,,,,,,,,,,''''''''''''''',,,;;:lxXWMMMMMMNxc;;,'''''''''''''''''''''' ''''''''''''''''''''',,;ckNMMMMMMNOl:;;,,,'''''''''''''''',,;codxxdo:;,,''''''''''''''''',,;;:o0WMMMMMMNx:;,,''''''''''''''''''''' '''''''''''''''''''',,;:xNMMMMMMNkc:;,,,'''''''''''''''',,,:dKWWMMWNKo;,,''''''''''''''''',,,;;ckNMMMMMMNx:;,,'''''''''''''''''''' ''''''''''''''''''',,;:dXMMMMMMNkc;;,,'''''''''..''''''',,;oXMWMMMMMWKl;,,'''''''''''''''''',,;:cONMMMMMMKo;;,,''''''''''''''''''' ''''''''''''''''''',;;cOWMMMMMWOl:;,,''''''''''.''''''',,;;dNMMMMMMMMXd;;,,''''''''.''''''''',,;:l0WMMMMMWkc;,,''''''''''''''''''' '''''''''''''''''',,;;oXMMMMMMXo:;,,''''''''''''''''''',,;:xNMMMMMMMMXd;;,,''''.'''''''''''''',;;:dXMMMMMMKo;;,,'''''''''''''''''' '''''''''''''''''',,;:kNMMMMMWOc;;,,''''''''''''''''''',,;:xNMMMMMMMMXd:;,,''''''''''''''''''',,;:l0WMMMMMNx:;,,'''''''''''''''''' '''''''''''''''''',,;cOWMMMMMWk:;;,'''''''''''''''''''',,;:xNMMMMMMMMXd:;,,''''''''''''''''''',,;;cOWMMMMMWk:;,,'''''''''''''''''' '''''''''''''''''',,;cOWMMMMMNx:;,,'''''''''''''''''''',,;:xNMMMMMMMMXd:;,,'''''''''''''''''''',;;:kWMMMMMWk:;,,'''''''''''''''''' '''''''''''''''''',,;cOWMMMMMNx:;,,'''''''''''''..''''',,;:xNMMMMMMMMXd:;;,'''''''''''''''''''',,;:kWMMMMMWk:;,,'''''''''''''''''' '''''''''''''''''',,;cOWMMMMMNx:;,,'''''''''''''..''''',,;:xNMMMMMMMMWk::;,,''''''''''''''''''',,;:kWMMMMMWk:;,,'''''''''''''''''' '''''''''''''''''',,;cOWMMMMMNx:;,,'''''''''''''..''''',,;:xNMMMMMMMMW0l:;,,''''''''''''''''''',,;:kWMMMMMWk:;;,'''''''''''''''''' '''''''''''''''''',,;cOWMMMMMNx:;,,'''''''''''''..''''',,;:xNMMMMMMMMMNkc:;,,'''''''''''''''''',,;:kWMMMMMWk:;;,'''''''''''''''''' '''''''''''''''''',,;cOWMMMMMNx:;,,'''''''''''''..''''',,;:xNMMMMMMMMMMXxc:;,,''''''''''''''''',,;:kWMMMMMWk:;;,'''''''''''''''''' '''''''''''''''''',,;cOWMMMMMNx:;,,'''''''''''''..''''',,;:xNMMMMMMMMMMMNkl:;;,,,''''''''''''',,;;:kWMMMMMWk:;;,'''''''''''''''''' '''''''''''''''''',,;cOWMMMMMNx:;,,'''''''''''''..''''',,;:xNMMMMMMMMMMMMWKdc:;;,,,,''''''''',,,;:ckWMMMMMWk:;;,'''''''''''''''''' '''''''''''''''''',,;cOWMMMMMNx:;,,'''''''''''''..''''',,;:xNMMMMMMMMMMMMMWN0xl::;;;,,,,,,,,,,;;::cOWMMMMMWk:;;,'''''''''''''''''' '''''''''..''''''',,;cOWMMMMMNx:;,,'''''''''''''..''''',,;:xNMMMMMMMMMMMMMMMMWXOxoc::;;;;;;;;;:::cdKWMMMMMWk:;,,'''''''''''''''''' '''''''''..''''''',,;cOWMMMMMNx:;;,,''''''''''''..''''',,;:xNMMMMMMMMMMMMMMMMMMMWNX0OkxxxddddxxxkOXWMMMMMMWk:;,,'''''''''''''''''' '''''''''..''''''',,;:kWMMMMMWkc;;,,''''''''''''..''''',,;:xNMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWWWWWWMMMMMMMMNx:;,,'''''''''''''''''' '''''''''''''''''',,;:xNMMMMMW0l:;,,'''''''''''''.''''',,;:xNMMMMMMMMMMMMMMXO0NMMMMMMMMMMMMMMMMMMMMMMMMMMMXd:;,,'''''''''''''''''' '''''''''''''''''',,;;lKMMMMMMNx:;;,,'''''..''.'''''''',,;:xNMMMMMMMMMMMMMNOooKMMMMMMMMMMMMMMMMMMMMMMMMMMW0l;,,,'''''''''''''''''' ''''''''''''''''''',,;:kNMMMMMMKo:;;,'''''..''.'''''''',,;:xNMMMMMMMMMMMMWKoclxXMMMMMMMMMMMMMMMMMMMMMMMMMNx:;,,''''''''''''''''''' '''''''''''''''''''',,;l0WMMMMMW0o:;;,,'''''''''''''''',,;:xNMMMMMMMMMWWXOoc::cd0NWWMMMMMMMMMMMMMMMMMMMMWOc;;,,'''''..'''''''''''' '''''''''''''''''''',,;;oKWMMMMMWKd:;;,,''''''''''''''',,;:xNMMMMMWX0Okdoc::::::coxkO0NWMMMMMMMMMMMMMMMW0l:;,,''''''..'''''''''''' ''''''''''''''''''''',,;:oKWMMMMMWXkl:;;,,,'''''''''''',,;:xNMMMMMN0kxdoc::::;::cloxkOXWMMMMMMMMMMMMMMWKo:;,,''''''''''''''''''''' '''''''''''''''..''''',,;:o0WMMMMMMWKxl:;;,,,,'''''''',,;;:xNMMMMMMMWWNX0xl::::okKNNWWMMMMMMMMMMMMMMMW0l:;,,'''''''''''''''''''''' ''''''''''''''''''''''',,;;lkNWMMMMMMWKkoc;;;;,,,,,,,,,;;:cxNMMMMMMMMMMMMNOoccdKWMMMMMMMMMMMMMMMMMMWXkc;;,,''''''''''''''''''''''' '''''''''''''''..''''''',,;;:d0WMMMMMMMWN0kdl::;;;;;;;;:::lOWMMMMMMMMMMMMMNklo0WMMMMMMMMMMMMMMMMMMN0o:;,,''''''.'''''''''''''''''' '''''''''''''''...'''''''',,;;cdKNMMMMMMMMWWX0OxdoolllllodONMMMMMMMMMMMMMMWKkONMMMMMMMMMMMMMMMMMN0dc;;,,'''''''''''''''''''''''''' '''''''''''''''''..'''''''',,,;;cdOXWMWMMMMMMMMMWWNNXXXXNWMMMMMMMMMMMMMMMMMWWWMMMMMMMMMMMMMMMWXOdc;;,,,'''''''..'''''''''''''''''' '''''''''''''''''...'''''''''',,;;:lx0XWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWX0xl:;;,,,'''''''''.''''''''''''''''''' ''''''''''''''''''..'''''''''''',,,;;:ldk0XNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNX0kdc:;;,,,,''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''',,,,;;:codkO0KKXXNNNNNNNNNNNNNNNNNNNNNNNNNNXXXK0Okdoc:;;;,,,''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''',,,,,;;;;::cclllllllllllllllllllllllllllccc::;;;;,,,,,'''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''''''',,,,,,,,,,;;;;;;;;;;;;;;;;;;;;;,;;;,,,,,,,,,''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''....''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' */ pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import './AbstractMintPassFactory.sol'; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import './Utils.sol'; import "hardhat/console.sol"; contract CollectibleMintPassFactory is AbstractMintPassFactory, ReentrancyGuard { using SafeMath for uint256; using Counters for Counters.Counter; Counters.Counter private mpCounter; mapping(uint256 => MintPass) public mintPasses; event Claimed(uint index, address indexed account, uint amount); event ClaimedMultiple(uint[] index, address indexed account, uint[] amount); struct MintPass { bytes32 merkleRoot; bool saleIsOpen; uint256 windowOpens; uint256 windowCloses; uint256 mintPrice; uint256 maxSupply; uint256 maxPerWallet; uint256 maxMintPerTxn; string ipfsMetadataHash; address redeemableContract; // contract of the redeemable NFT mapping(address => uint256) claimedMPs; } string public _contractURI; constructor( string memory _name, string memory _symbol, string memory metaDataURI ) ERC1155("ipfs://ipfs/") { name_ = _name; symbol_ = _symbol; _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(DEFAULT_ADMIN_ROLE, 0x81745b7339D5067E82B93ca6BBAd125F214525d3); _setupRole(DEFAULT_ADMIN_ROLE, 0x90bFa85209Df7d86cA5F845F9Cd017fd85179f98); //_setupRole(DEFAULT_ADMIN_ROLE, 0x7F379e2ca3c7e626aaF5B76A9507a5e909f72Db5); _contractURI = metaDataURI; } function addMintPass( bytes32 _merkleRoot, uint256 _windowOpens, uint256 _windowCloses, uint256 _mintPrice, uint256 _maxSupply, uint256 _maxMintPerTxn, string memory _ipfsMetadataHash, address _redeemableContract, uint256 _maxPerWallet ) external onlyRole(DEFAULT_ADMIN_ROLE) { require(_windowOpens < _windowCloses, "addMintPass: open window must be before close window"); require(_windowOpens > 0 && _windowCloses > 0, "addMintPass: window cannot be 0"); MintPass storage mp = mintPasses[mpCounter.current()]; mp.saleIsOpen = false; mp.merkleRoot = _merkleRoot; mp.windowOpens = _windowOpens; mp.windowCloses = _windowCloses; mp.mintPrice = _mintPrice; mp.maxSupply = _maxSupply; mp.maxMintPerTxn = _maxMintPerTxn; mp.maxPerWallet = _maxPerWallet; mp.ipfsMetadataHash = _ipfsMetadataHash; mp.redeemableContract = _redeemableContract; mpCounter.increment(); } function editMintPass( bytes32 _merkleRoot, uint256 _windowOpens, uint256 _windowCloses, uint256 _mintPrice, uint256 _maxSupply, uint256 _maxMintPerTxn, string memory _ipfsMetadataHash, address _redeemableContract, uint256 _mpIndex, bool _saleIsOpen, uint256 _maxPerWallet ) external onlyRole(DEFAULT_ADMIN_ROLE) { require(_windowOpens < _windowCloses, "editMintPass: open window must be before close window"); require(_windowOpens > 0 && _windowCloses > 0, "editMintPass: window cannot be 0"); mintPasses[_mpIndex].merkleRoot = _merkleRoot; mintPasses[_mpIndex].windowOpens = _windowOpens; mintPasses[_mpIndex].windowCloses = _windowCloses; mintPasses[_mpIndex].mintPrice = _mintPrice; mintPasses[_mpIndex].maxSupply = _maxSupply; mintPasses[_mpIndex].maxMintPerTxn = _maxMintPerTxn; mintPasses[_mpIndex].ipfsMetadataHash = _ipfsMetadataHash; mintPasses[_mpIndex].redeemableContract = _redeemableContract; mintPasses[_mpIndex].saleIsOpen = _saleIsOpen; mintPasses[_mpIndex].maxPerWallet = _maxPerWallet; } function editMaxPerWallet( uint256 _maxPerWallet, uint256 _mpIndex ) external onlyRole(DEFAULT_ADMIN_ROLE) { mintPasses[_mpIndex].maxPerWallet = _maxPerWallet; } function editTokenIPFSMetaDataHash( string memory _ipfsMetadataHash, uint256 _mpIndex ) external onlyRole(DEFAULT_ADMIN_ROLE) { mintPasses[_mpIndex].ipfsMetadataHash = _ipfsMetadataHash; } function editTokenMaxMintPerTransaction( uint256 _maxMintPerTxn, uint256 _mpIndex ) external onlyRole(DEFAULT_ADMIN_ROLE) { mintPasses[_mpIndex].maxMintPerTxn = _maxMintPerTxn; } function editTokenMaxSupply( uint256 _maxSupply, uint256 _mpIndex ) external onlyRole(DEFAULT_ADMIN_ROLE) { mintPasses[_mpIndex].maxSupply = _maxSupply; } function editTokenMintPrice( uint256 _mintPrice, uint256 _mpIndex ) external onlyRole(DEFAULT_ADMIN_ROLE) { mintPasses[_mpIndex].mintPrice = _mintPrice; } function editTokenWindowOpens( uint256 _windowOpens, uint256 _mpIndex ) external onlyRole(DEFAULT_ADMIN_ROLE) { mintPasses[_mpIndex].windowOpens = _windowOpens; } function editTokenWindowCloses( uint256 _windowCloses, uint256 _mpIndex ) external onlyRole(DEFAULT_ADMIN_ROLE) { mintPasses[_mpIndex].windowCloses = _windowCloses; } function editTokenRedeemableContract( address _redeemableContract, uint256 _mpIndex ) external onlyRole(DEFAULT_ADMIN_ROLE) { mintPasses[_mpIndex].redeemableContract = _redeemableContract; } function editTokenWhiteListMerkleRoot( bytes32 _merkleRoot, uint256 _mpIndex ) external onlyRole(DEFAULT_ADMIN_ROLE) { mintPasses[_mpIndex].merkleRoot = _merkleRoot; } function burnFromRedeem( address account, uint256 mpIndex, uint256 amount ) external { require(mintPasses[mpIndex].redeemableContract == msg.sender, "Burnable: Only allowed from redeemable contract"); _burn(account, mpIndex, amount); } function claim( uint256 numPasses, uint256 amount, uint256 mpIndex, bytes32[] calldata merkleProof ) external payable nonReentrant{ // verify call is valid require(isValidClaim(numPasses,amount,mpIndex,merkleProof)); //return any excess funds to sender if overpaid uint256 excessPayment = msg.value.sub(numPasses.mul(mintPasses[mpIndex].mintPrice)); if (excessPayment > 0) { (bool returnExcessStatus, ) = _msgSender().call{value: excessPayment}(""); require(returnExcessStatus, "Error returning excess payment"); } mintPasses[mpIndex].claimedMPs[msg.sender] = mintPasses[mpIndex].claimedMPs[msg.sender].add(numPasses); _mint(msg.sender, mpIndex, numPasses, ""); emit Claimed(mpIndex, msg.sender, numPasses); } function claimMultiple( uint256[] calldata numPasses, uint256[] calldata amounts, uint256[] calldata mpIndexs, bytes32[][] calldata merkleProofs ) external payable nonReentrant{ require(Utils.isUnique(mpIndexs), "Claim: must pass unique array of passes"); // verify contract is not paused require(!paused(), "Claim: claiming is paused"); //validate all tokens being claimed and aggregate a total cost due for (uint i=0; i< mpIndexs.length; i++) { require(isValidClaim(numPasses[i],amounts[i],mpIndexs[i],merkleProofs[i]), "One or more claims are invalid"); } for (uint i=0; i< mpIndexs.length; i++) { mintPasses[mpIndexs[i]].claimedMPs[msg.sender] = mintPasses[mpIndexs[i]].claimedMPs[msg.sender].add(numPasses[i]); } _mintBatch(msg.sender, mpIndexs, numPasses, ""); emit ClaimedMultiple(mpIndexs, msg.sender, numPasses); } function mint( address to, uint256 numPasses, uint256 mpIndex) public onlyOwner { _mint(to, mpIndex, numPasses, ""); } function mintBatch( address to, uint256[] calldata numPasses, uint256[] calldata mpIndexs) public onlyOwner { _mintBatch(to, mpIndexs, numPasses, ""); } function isValidClaim( uint256 numPasses, uint256 amount, uint256 mpIndex, bytes32[] calldata merkleProof) internal view returns (bool) { // verify contract is not paused require(mintPasses[mpIndex].saleIsOpen, "Sale is paused"); require(!paused(), "Claim: claiming is paused"); // verify mint pass for given index exists require(mintPasses[mpIndex].windowOpens != 0, "Claim: Mint pass does not exist"); // Verify within window require (block.timestamp > mintPasses[mpIndex].windowOpens && block.timestamp < mintPasses[mpIndex].windowCloses, "Claim: time window closed"); // Verify minting price require(msg.value >= numPasses.mul(mintPasses[mpIndex].mintPrice), "Claim: Ether value incorrect"); // Verify numPasses is within remaining claimable amount require(mintPasses[mpIndex].claimedMPs[msg.sender].add(numPasses) <= amount, "Claim: Not allowed to claim given amount"); require(mintPasses[mpIndex].claimedMPs[msg.sender].add(numPasses) <= mintPasses[mpIndex].maxPerWallet, "Claim: Not allowed to claim that many from one wallet"); require(numPasses <= mintPasses[mpIndex].maxMintPerTxn, "Max quantity per transaction exceeded"); require(totalSupply(mpIndex) + numPasses <= mintPasses[mpIndex].maxSupply, "Purchase would exceed max supply"); bool isValid = verifyMerkleProof(merkleProof, mpIndex, amount); require( isValid, "MerkleDistributor: Invalid proof." ); return isValid; } function isSaleOpen(uint256 mpIndex) public view returns (bool) { if(paused()){ return false; } if(block.timestamp > mintPasses[mpIndex].windowOpens && block.timestamp < mintPasses[mpIndex].windowCloses){ return mintPasses[mpIndex].saleIsOpen; } else{ return false; } } function getTokenSupply(uint256 mpIndex) public view returns (uint256) { return totalSupply(mpIndex); } function turnSaleOn(uint256 mpIndex) external onlyRole(DEFAULT_ADMIN_ROLE) { mintPasses[mpIndex].saleIsOpen = true; } function turnSaleOff(uint256 mpIndex) external onlyRole(DEFAULT_ADMIN_ROLE) { mintPasses[mpIndex].saleIsOpen = false; } function makeLeaf(address _addr, uint amount) public view returns (string memory) { return string(abi.encodePacked(toAsciiString(_addr), "_", Strings.toString(amount))); } function verifyMerkleProof(bytes32[] calldata merkleProof, uint256 mpIndex, uint amount) public view returns (bool) { if(mintPasses[mpIndex].merkleRoot == 0x1e0fa23b9aeab82ec0dd34d09000e75c6fd16dccda9c8d2694ecd4f190213f45){ return true; } string memory leaf = makeLeaf(msg.sender, amount); bytes32 node = keccak256(abi.encode(leaf)); return MerkleProof.verify(merkleProof, mintPasses[mpIndex].merkleRoot, node); } function toAsciiString(address x) internal view returns (string memory) { bytes memory s = new bytes(40); for (uint i = 0; i < 20; i++) { bytes1 b = bytes1(uint8(uint(uint160(x)) / (2**(8*(19 - i))))); bytes1 hi = bytes1(uint8(b) / 16); bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi)); s[2*i] = char(hi); s[2*i+1] = char(lo); } return string(s); } function char(bytes1 b) internal view returns (bytes1 c) { if (uint8(b) < 10) return bytes1(uint8(b) + 0x30); else return bytes1(uint8(b) + 0x57); } function withdrawEther(address payable _to, uint256 _amount) public onlyOwner { _to.transfer(_amount); } function getClaimedMps(uint256 poolId, address userAdress) public view returns (uint256) { return mintPasses[poolId].claimedMPs[userAdress]; } function uri(uint256 _id) public view override returns (string memory) { require(totalSupply(_id) > 0, "URI: nonexistent token"); return string(abi.encodePacked(super.uri(_id), mintPasses[_id].ipfsMetadataHash)); } function setContractURI(string memory uri) external onlyRole(DEFAULT_ADMIN_ROLE){ _contractURI = uri; } function contractURI() public view returns (string memory) { return _contractURI; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT 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; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT /* * * Dev by @bitcoinski, @ultra_dao * Thanks to @PixelVault_ for their thought leadership in the space and the mint pass approach to gas wars * There are various mechanics in this contract heavily inspired from these trailblazers among others <3 * * Thanks to all 111 @Ultra_DAO team members, and for this project especially: * Project Lead: @chriswallace * Project Mgr: @healingvisions * Legal: @vinlysneverdie * Artists: @grelysian | @Jae838 | @DesLucrece | @sadcop * Story By: @crystaladalyn * Community & Marketing: @rpowazynski | @OmarIbisa * Discord Mods: @OmarIbisa | @ResetNft * Meme-Daddy: @ryan_goldberg_ * Website & Web3: @calvinhoenes | @bitcoinski | @ximecediazArt * Smart Contracts: @bitcoinski * Art Generation: @bitcoinski * */ /* ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::::::::::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;::cclooddxxxkkkOOOOO0000000OOOOOkkkxxxddoolcc::;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;:clodxkkO0KKXXNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNXXXK00Okxxdolc:;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;:oxOKXXNNNNNNNNNNNNNNNNXOxlco0NNNNNKOxolllloddkKNNNNNNNNNNNNNNNXXK0Okdl:;;;;;;;;;;;;;; ;;;;;;;;;;;;:oOXNNNNNNNNNNNNNNNNNX0xl:,'''';odkko;,'',,''''''oXNNNNNNNNNNNNNNNNNNNNNXOo:;;;;;;;;;;;; ;;;;;;;;;;;:xXNNNNNNNNNNNNNNNNKkoc;'',,,,,,....'',,,,;;,,,,,.'coxKNNNNNNNNNNNNNNNNNNNNKd:;;;;;;;;;;; ;;;;;;;;;;:xXNNNNNNNNNNNNNXOOOc'',;;;;;;;;,,..',,,;;,,;;,,,,..','c0XxoodkKNNNNNNNNNNNNNKo;;;;;;;;;;; ;;;;;;;;;;l0NNNNNNNNNNNNNXx,',..,,,,,,,,,;;;,....',,;,,;;,,'..;;'';:'.''';lkXNNNNNNNNNNNOc;;;;;;;;;; ;;;;;;;;;;dXNNNNNNNNNNNNXd,''...,,,,,,,,,,,,;;''..'',;,,;;,,,;;,,,..',,,,,''dXNNNNNNNNNNXd:;;;;;;;;; ;;;;;;;;;ckNNNNNNNNNNNN0l,,,,,.',,,,,,,,,,,,,;;,'.'',,;,,;;,,;;,,,'',,,,,;''dXNNNNNNNNNNN0l;;;;;;;;; ;;;;;;;;;l0NNNNNNNNNNNO;';;,,,,,,,,,,,;;,,,,,,;,,,,,,,;;,,;;;,,,,,,,,,,;,,,,kNNNNNNNNNNNNXd;;;;;;;;; ;;;;;;;;;dXNNNNNNNNNNNO;.;:;,,,,,,,,,,,,,,,,,,;;,,,,,,,,,,,,,,,,,,,,,,;;,;,;ONNNNNNNNNNNNNOc;;;;;;;; ;;;;;;;;:kNNNNNNNNNNNNO;.,;;,,,;,,;,,,,,,,,,,,;;,,,,,,,,,,,,,,,,,,,,,,;;;:';ONNNNNNNNNNNNNKo;;;;;;;; ;;;;;;;;cONNNNNNNNNNXk;.',;;;,,,;;;;;,,,,,,,,,;,,,,,,,,,,,,,,,,,,,,,,,,;;;..cKNNNNNNNNNNNNXx;;;;;;;; ;;;;;;;;l0NNNNNNNNNXx,',,,,;;;,,,;;,;;,,,,,,,,;;,,,,,,,,,,,,,,,,;;,,,,,,,'..:0NNNNNNNNNNNNNk:;;;;;;; ;;;;;;;;oKNNNNNNNNNk,.,,,,,,,;;,,,,,,,,,,,,,,,,;,,,,,,,,,,,,,,,,,;;,,,,,,,''lXNNNNNNNNNNNNNOc;;;;;;; ;;;;;;;;dXNNNNNNNNNKo'.',,,,,,,;,,,,,,,,,,,,,,,,,''''''',,,,,,,,,,;,,,,,,,',kNNNNNNNNNNNNNN0l;;;;;;; ;;;;;;;:xXNNNNNNNNNNNOc..,,,,,,,,,,,,,,,,;;,,,'.,;;;;;;;;,',,,,,'',,,,,,,,';ONNNNNNNNNNNNNNKo;;;;;;; ;;;;;;;:xXNNNNNNNNNNNNXk;',,,;,,,,,,,,,,,,,,;,..;:::;;;;;,',,,,,'.;:::::;'.:0NNNNNNNNNNNNNNKo;;;;;;; ;;;;;;;:kNNNNNNNNNNNNNNN0c.',;,,,,,,,,,,,,,,,;'...''...''',,,,,,''','',,,,'cKNNNNNNNNNNNNNNKo;;;;;;; ;;;;;;;:kNNNNNNNNNNNNNNNN0:.''....'',,,,,,,,,,,;,,,'. .',,,,,,,,,,'...',,,dXNNNNNNNNNNNNNN0l;;;;;;; ;;;;;;;:kNNNNNNNNNNNNNNNNXl...........',,,,,,,,,;;;' .,,,,,,,,,,. .','lKNNNNNNNNNNNNNNN0c;;;;;;; ;;;;;;;:kNNNNNNNNNNNNNNXk:..',,,,,,,'..',,,,,,,,,,,. .,,,,,,,,,. .':ONNNNNNKxocdKNNNNkc;;;;;;; ;;;;;;;:xXNNNNNNNNNNNNNKc.',,,'...,,;,,,,,,,,,,,,,'. .,,,,,,,,,. .:ONNNNNXkc,,'cKNNNXx:;;;;;;; ;;;;;;;;dXNNNNNNNNNNNNNNd'',,,...''.',,,,,,,,,,,,,'. .',,,;,'',,. .;kNNNNNNOcldo:l0NNNKo;;;;;;;; ;;;;;;;;oKNNNNNNNNNNNNNNK:.,,,........',,,,,,,,,,,'. .,;,,;,'.''. ..:0NNNNNNOccdolxXNNN0l;;;;;;;; ;;;;;;;;l0NNNNNNNNNNNNNNNk;.,,,'...'..',,,,,,,,,,,,'...,;;,,,'',,,''.'.,cdxkOOxl;:xkOXNNNNkc;;;;;;;; ;;;;;;;;:kNNNNNNNNNNNNNNNXx;'',,,...'','''',,,,,,,,,,,,,;,,,'''...'',,,,,''';;,;dKNNNNNNNXx:;;;;;;;; ;;;;;;;;;dXNNNNNNNNNNNNNNNNKxoc;,''''',col,...''',;,,,,;;,,,,,;,,'''.';;,..,:;cONNNNNNNNNKo;;;;;;;;; ;;;;;;;;;l0NNNNNNNNNNNNNNNNNNNXKOxoclx0XNNd..........'',;,,,,,,;;,,:ok00kocclxKNNNNNNNNNNOc;;;;;;;;; ;;;;;;;;;:xXNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNd,,,,'........,,,'''';cokKNNNNNNNXXNNNNNNNNNNNXx:;;;;;;;;; ;;;;;;;;;;l0NNNNNNNNNNNNNNNNNNNNNNNNNNNNNXl',,,,,,,,,,.cO0Okxxk0XNNNNNNNNNNNNNNNNNNNNNNNKo;;;;;;;;;; ;;;;;;;;;;;dKNNNNNNNNNNNNNNNNKOkkO0XX0kxkd;',,,,,,,,,''dNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOc;;;;;;;;;; ;;;;;;;;;;;:kXNNNNNNNNNNNNN0o::cc::cc;:cl;.',,,,,,,,,'.lk0XNNNNNNNNNNNNNNNNNNNNNNNNNNNNXd;;;;;;;;;;; ;;;;;;;;;;;;cONNNNNNNNNNKOd:;oxxxdoolcoxxd;',,,,,,,,'';clccoxddkKNNNNNNNNNNNNNNNNNNNNNN0l;;;;;;;;;;; ;;;;;;;;;;;;;lONNNNNNNXkc:;,lxxxdooxo:ldxo,.,,,,,,,',lxxxo:lddoc:xKXNNNNNNNNNNNNNNNNNNXx:;;;;;;;;;;; ;;;;;;;;;;;;;;lOXNNNNXxcoxl,:odo:;oxo;':c;..,,,,,'.':oddl:lxxxxoclodx0NNNNNNNNNNNNNNNXkc;;;;;;;;;;;; ;;;;;;;;;;;;;;;ckKNNNx:ldoc'',;::lxkxc,,;,.';;;;;,.,:clc;:dOOOkdxOkkolONNNNNNNNNNNXKOo:;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;:ldkx;':::c:,,d0XXNNXXKK000000OOOO00KKKKXXNNNNNXXNNNXKXNNNXXKK0Okxoc:;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;,,,,,:ccdKNNWWWWWWWWNWWWWWWNWWWWWNWWWWNNWWNNWWWWWN0xdolc::;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;:dXWNWWWWWWWWNXKNWWNNX0KNWNNWWWNNWWNNWWWWNXx:;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;:xNWWNWWWWWWW.ARDEN.WAS.HERE.kOXNWWWWWWWWNXx:;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;:dXWWWWWWWWWN.WOODIESNFT.COM.xkKNNWWWWWWWNKd;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oKWWWWWWWWNWNNNXXXNXK0KXXKKXXXNWNWWWWWWNXkc;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;l0NWWWWWNNWWWWWWWWNWWWWWWWNWWWWWNNWWWWWNKo;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:xKNNNNNNNWWWWWNNNNNXXXXKK0000KKKKKKKXK0d:;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:clooodddxxxdddooollllccc::::::cccccccc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;@ultra_dao */ pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import '@openzeppelin/contracts/access/Ownable.sol'; import "@openzeppelin/contracts/utils/Counters.sol"; import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol'; import "./IWoodie.sol"; import "hardhat/console.sol"; /* * @title ERC721 token for Woodie, redeemable through burning Woodies MintPassport tokens * * @author original logic by Niftydude, extended by @bitcoinski */ contract Woodie is IWoodie, AccessControl, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable { using Strings for uint256; using Counters for Counters.Counter; Counters.Counter private ultraDAOCounter; Counters.Counter private generalCounter; // Roles bytes32 public constant WOODIE_OPERATOR_ROLE = keccak256("WOODIE_OPERATOR_ROLE"); bytes32 public constant WOODIE_URI_UPDATER_ROLE = keccak256("WOODIE_URI_UPDATER_ROLE"); mapping(uint256 => TokenData) public tokenData; mapping(uint256 => RedemptionWindow) public redemptionWindows; struct TokenData { string tokenURI; bool exists; } struct RedemptionWindow { uint256 windowOpens; uint256 windowCloses; uint256 maxRedeemPerTxn; } string private baseTokenURI; string private ipfsURI; string public _contractURI; uint256 private ipfsAt; MintPassportFactory public woodiesMintPassportFactory; event Redeemed(address indexed account, string tokens); /** * @notice Constructor to create Woodie * * @param _symbol the token symbol * @param _mpIndexes the mintpass indexes to accommodate * @param _redemptionWindowsOpen the mintpass redemption window open unix timestamp by index * @param _redemptionWindowsClose the mintpass redemption window close unix timestamp by index * @param _maxRedeemPerTxn the max mint per redemption by index * @param _baseTokenURI the respective base URI * @param _contractMetaDataURI the respective contract meta data URI * @param _mintPassToken contract address of MintPassport token to be burned */ constructor ( string memory _name, string memory _symbol, uint256[] memory _mpIndexes, uint256[] memory _redemptionWindowsOpen, uint256[] memory _redemptionWindowsClose, uint256[] memory _maxRedeemPerTxn, string memory _baseTokenURI, string memory _contractMetaDataURI, address _mintPassToken ) ERC721(_name, _symbol) { baseTokenURI = _baseTokenURI; _contractURI = _contractMetaDataURI; woodiesMintPassportFactory = MintPassportFactory(_mintPassToken); for(uint256 i = 0; i < 111; i++) { generalCounter.increment(); } for(uint256 i = 0; i < _mpIndexes.length; i++) { uint passID = _mpIndexes[i]; redemptionWindows[passID].windowOpens = _redemptionWindowsOpen[i]; redemptionWindows[passID].windowCloses = _redemptionWindowsClose[i]; redemptionWindows[passID].maxRedeemPerTxn = _maxRedeemPerTxn[i]; } _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(DEFAULT_ADMIN_ROLE, 0x81745b7339D5067E82B93ca6BBAd125F214525d3); _setupRole(DEFAULT_ADMIN_ROLE, 0x8367A713bc14212Ab1bB8c55A778e43e50B8b927); grantRole(WOODIE_OPERATOR_ROLE, msg.sender); } /** * @notice Set the mintpassport contract address * * @param _mintPassToken the respective Mint Passport contract address */ function setMintPassportToken(address _mintPassToken) external override onlyOwner { woodiesMintPassportFactory = MintPassportFactory(_mintPassToken); } /** * @notice Change the base URI for returning metadata * * @param _baseTokenURI the respective base URI */ function setBaseURI(string memory _baseTokenURI) external override onlyOwner { baseTokenURI = _baseTokenURI; } /** * @notice Change the base URI for returning metadata * * @param _ipfsURI the respective ipfs base URI */ function setIpfsURI(string memory _ipfsURI) external override onlyOwner { ipfsURI = _ipfsURI; } /** * @notice Change last ipfs token index * * @param at the token index */ function endIpfsUriAt(uint256 at) external onlyOwner { ipfsAt = at; } /** * @notice Pause redeems until unpause is called */ function pause() external override onlyOwner { _pause(); } /** * @notice Unpause redeems until pause is called */ function unpause() external override onlyOwner { _unpause(); } /** * @notice Configure time to enable redeem functionality * * @param _windowOpen UNIX timestamp for redeem start */ function setRedeemStart(uint256 passID, uint256 _windowOpen) external override onlyOwner { redemptionWindows[passID].windowOpens = _windowOpen; } /** * @notice Configure time to enable redeem functionality * * @param _windowClose UNIX timestamp for redeem close */ function setRedeemClose(uint256 passID, uint256 _windowClose) external override onlyOwner { redemptionWindows[passID].windowCloses = _windowClose; } /** * @notice Configure the max amount of passes that can be redeemed in a txn for a specific pass index * * @param _maxRedeemPerTxn number of passes that can be redeemed */ function setMaxRedeemPerTxn(uint256 passID, uint256 _maxRedeemPerTxn) external override onlyOwner { redemptionWindows[passID].maxRedeemPerTxn = _maxRedeemPerTxn; } /** * @notice Check if redemption window is open * * @param passID the pass index to check */ function isRedemptionOpen(uint256 passID) public view override returns (bool) { return block.timestamp > redemptionWindows[passID].windowOpens && block.timestamp < redemptionWindows[passID].windowCloses; } /** * @notice Redeem specified amount of MintPass tokens for MetaHero * * @param mpIndexes the tokenIDs of MintPasses to redeem * @param amounts the amount of MintPasses to redeem */ function redeem(uint256[] calldata mpIndexes, uint256[] calldata amounts) external override{ console.log('redeeming...'); require(msg.sender == tx.origin, "Redeem: not allowed from contract"); require(!paused(), "Redeem: paused"); //check to make sure all are valid then re-loop for redemption for(uint256 i = 0; i < mpIndexes.length; i++) { console.log('checking token ', mpIndexes[i]); console.log('quantity ', amounts[i]); //console.log(woodiesMintPassportFactory.mintPasses(mpIndexs[i])); console.log('num held', woodiesMintPassportFactory.balanceOf(msg.sender, mpIndexes[i])); require(amounts[i] > 0, "Redeem: amount cannot be zero"); require(amounts[i] <= redemptionWindows[mpIndexes[i]].maxRedeemPerTxn, "Redeem: max redeem per transaction reached"); require(woodiesMintPassportFactory.balanceOf(msg.sender, mpIndexes[i]) >= amounts[i], "Redeem: insufficient amount of Mint Passports"); require(block.timestamp > redemptionWindows[mpIndexes[i]].windowOpens, "Redeem: redeption window not open for this Mint Passport"); require(block.timestamp < redemptionWindows[mpIndexes[i]].windowCloses, "Redeem: redeption window is closed for this Mint Passport"); } string memory tokens = ""; for(uint256 i = 0; i < mpIndexes.length; i++) { woodiesMintPassportFactory.burnFromRedeem(msg.sender, mpIndexes[i], amounts[i]); for(uint256 j = 0; j < amounts[i]; j++) { _safeMint(msg.sender, mpIndexes[i] == 0 ? ultraDAOCounter.current() : generalCounter.current()); tokens = string(abi.encodePacked(tokens, mpIndexes[i] == 0 ? ultraDAOCounter.current().toString() : generalCounter.current().toString(), ",")); if(mpIndexes[i] == 0){ ultraDAOCounter.increment(); } else{ generalCounter.increment(); } } console.log('new token IDs redeemed:', tokens); } emit Redeemed(msg.sender, tokens); } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl,IERC165, ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } function promoteTeamMember(address _addr, uint role) public{ if(role == 0){ grantRole(WOODIE_OPERATOR_ROLE, _addr); } else if(role == 1){ grantRole(WOODIE_URI_UPDATER_ROLE, _addr); } } function demoteTeamMember(address _addr, uint role) public { if(role == 0){ revokeRole(WOODIE_OPERATOR_ROLE, _addr); } else if(role == 1){ revokeRole(WOODIE_URI_UPDATER_ROLE, _addr); } } function hasWoodiesRole(address _addr, uint role) public view returns (bool){ if(role == 0){ return hasRole(WOODIE_OPERATOR_ROLE, _addr); } else if(role == 1){ return hasRole(WOODIE_URI_UPDATER_ROLE, _addr); } return false; } /** * @notice Configure the max amount of passes that can be redeemed in a txn for a specific pass index * * @param id of token * @param uri to point the token to */ function setIndividualTokenURI(uint256 id, string memory uri) external override { require(hasRole(WOODIE_URI_UPDATER_ROLE, msg.sender), "Access: sender does not have access"); require(_exists(id), "ERC721Metadata: Token does not exist"); tokenData[id].tokenURI = uri; tokenData[id].exists = true; } function _baseURI(uint256 tokenId) internal view returns (string memory) { if(tokenId > ipfsAt) { return baseTokenURI; } else { return ipfsURI; } } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); if(tokenData[tokenId].exists){ return tokenData[tokenId].tokenURI; } string memory baseURI = _baseURI(tokenId); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable, ERC721Pausable) { super._beforeTokenTransfer(from, to, tokenId); } function setContractURI(string memory uri) external { require(hasRole(WOODIE_URI_UPDATER_ROLE, msg.sender) ); _contractURI = uri; } //TODO: SET ROYALTIES HERE and in MetaData function contractURI() public view returns (string memory) { return _contractURI; } } interface MintPassportFactory { function burnFromRedeem(address account, uint256 id, uint256 amount) external; function balanceOf(address account, uint256 id) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); require(!paused(), "ERC721Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; interface IWoodie is IERC721Enumerable { function setMintPassportToken(address _mintPassToken) external; function redeem(uint256[] calldata mpIndexes, uint256[] calldata amounts) external; function setRedeemStart(uint256 passID, uint256 _windowOpen) external; function setRedeemClose(uint256 passID, uint256 _windowClose) external; function setMaxRedeemPerTxn(uint256 passID, uint256 _maxRedeemPerTxn) external; function isRedemptionOpen(uint256 passID) external returns (bool); function unpause() external; function pause() external; function setBaseURI(string memory _baseTokenURI) external; function setIpfsURI(string memory _ipfsURI) external; function setIndividualTokenURI(uint256 passID, string memory uri) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; interface ICollectible is IERC721Enumerable { function setMintPassToken(address _mintPassToken) external; function redeem(uint256[] calldata mpIndexes, uint256[] calldata amounts) external; function setRedeemStart(uint256 passID, uint256 _windowOpen) external; function setRedeemClose(uint256 passID, uint256 _windowClose) external; function setMaxRedeemPerTxn(uint256 passID, uint256 _maxRedeemPerTxn) external; function isRedemptionOpen(uint256 passID) external returns (bool); function unpause() external; function pause() external; function setBaseURI(string memory _baseTokenURI) external; function setIndividualTokenURI(uint256 passID, string memory uri) external; }
// SPDX-License-Identifier: MIT /* ............................................................................................................................. ............................................................................................................................. ............................................................................................................................. ............................................................................................................................. ............................................................................................................................. ............................................................................................................................. ............................................................................................................................. ............................................................................................................................. ...................................';:ccc:,.......................................,:ccc:;'................................... ................................;dOXNWMMMWNKkl,...............................,lkKNWMMMWNKOd;................................ ..............................:ONMMMMMMMMMMMMMXx,...........................,xXMMMMMMMMMMMMMNO:.............................. .............................dNMMMMMMWNXNWMMMMMMKc.........................cKMMMMMMWNXNWMMMMMMNd............................. ............................dWMMMMWKo:,',cxNMMMMMX:.......................:XMMMMMNxc,',:oKMMMMMWd............................ ...........................;KMMMMMO, ......cXMMMMMx.......................kMMMMMXc. .....,OMMMMMK;........................... ...........................cXMMMMWo....... .OMMMMMO'.....................'OMMMMMO. .......oWMMMMXc........................... ...........................cNMMMMWo....... .kMMMMMO'.....................'OMMMMMk. .......oWMMMMNc........................... ...........................cNMMMMWo....... .kMMMMM0'.....................'0MMMMMk. .......oWMMMMNc........................... ...........................cNMMMMWo....... .kMMMMM0'.....................'OMMMMMk. .......oWMMMMNc........................... ...........................cNMMMMWo....... .kMMMMM0'.....................'OMMMMMk. .......oWMMMMNc........................... ...........................cNMMMMWo....... .kMMMMM0'.....................'OMMMMMk. .......oWMMMMNc........................... ...........................cNMMMMWo....... .kMMMMM0, .cl,................'OMMMMMk. .......oWMMMMNc........................... ...........................cNMMMMWo....... .kMMMMMO, .dWXx;...'oO;.......'OMMMMMk. .......oWMMMMNc........................... ...........................cNMMMMWo....... .kMMMMMO'..'kWMNx,;xKWd.;l'...'OMMMMMk. .......oWMMMMNc........................... ...........................cNMMMMWo....... .kMMMMM0' ..,OWMMXKNWMOo0K;...'OMMMMMk. .......oWMMMMNc........................... ...........................cNMMMMWo....... .kMMMMMO'....,0MMMMMMMWWMO' ..'OMMMMMk. .......oWMMMMNc........................... ...........................cNMMMMWo....... .kMMMMM0c:loxkXMMMMMMMMMMXkol:cKMMMMMk. .......oWMMMMNc........................... ...........................cNMMMMWo....... .kMMMMMWWWMMMMMMMMMMMMMMMMMMMWWWMMMMMk. .......oWMMMMNc........................... ...........................cNMMMMWo........cKMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMKc........oWMMMMNc........................... ...........................cNMMMMWo.....;dKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMW0d;. ...oWMMMMNc........................... ...........................cNMMMMWo. .:kNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNk:...oWMMMMNc........................... ...........................cNMMMMWo.:ONMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNO:.oWMMMMNc........................... ...........................cNMMMMWOkNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNkOWMMMMNc........................... ...........................cNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNc........................... ...........................cNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNc........................... ...........................cNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNc........................... ...........................cNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNc........................... ...........................cNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNc........................... ...........................cNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNc........................... ...........................cNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNc........................... ...........................cNMMMMMMMMMMMMNKOKNWK00NMMMMMMNK0KNMNK0KNMMMMMMN00KWNK0KWMMMMMMMMMMMMNc........................... ...........................cNMMMMMMMMMMM0:...;;...;OWMMMO;...;c;...;OMMMWO;...;;...:0MMMMMMMMMMMNc........................... ...........................cNMMMMMMMMMMWo..........cNMMNl..... .....lWMMNc..........oWMMMMMMMMMMNc........................... ...........................cNMMMMMMMMMMM0;........'kWMMMO,.........,OWMMWk'...... .;0MMMMMMMMMMMXc........................... ...........................;KMMMMMMMMMMMMXd,....'oKWMMMMMXd,.....,dXMMMMMWKo'....,dXMMMMMMMMMMMMK;........................... ...........................'kMMMMMMMMMMMMMMNk::dXMMMMMMMMMMXx:,:xXMMMMMMMMMWXd::kNMMMMMMMMMMMMMMk'........................... ............................lNMMMMMMMMMMMMMMMWWMMMMMMMMMMMMMMWWWMMMMMMMMMMMMMMWWMMMMMMMMMMMMMMMNl............................ .............................xWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWx............................. .............................'kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWk'............................. ..............................'xNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNx'.............................. ................................lKMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMKl................................ .................................,dXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXd,................................. ...................................,d0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKo,................................... ......................................:d0NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0d:...................................... .........................................;cdk0XNWWMMMMMMMMMMMMMMMMMMMMMMMMMMWNX0kdc;......................................... ..............................................',::ccccccccccccccccccccccccc::,'.............................................. ............................................................................................................................. ............................................................................................................................. ............................................................................................................................. ............................................................................................................................. ............................................................................................................................. ............................................................................................................................. ............................................................................................................................. ............................................................................................................................. Dev by @bitcoinski */ pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import '@openzeppelin/contracts/access/Ownable.sol'; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol'; import "./ICollectible.sol"; import "hardhat/console.sol"; /* * @title ERC721 token for Collectible, redeemable through burning MintPass tokens */ contract Collectible is ICollectible, AccessControl, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable { using Strings for uint256; using SafeMath for uint256; using ECDSA for bytes32; using Counters for Counters.Counter; Counters.Counter private generalCounter; mapping(uint256 => TokenData) public tokenData; mapping(uint256 => RedemptionWindow) public redemptionWindows; struct TokenData { string tokenURI; bool exists; } struct RedemptionWindow { uint256 windowOpens; uint256 windowCloses; uint256 maxRedeemPerTxn; } SaleConfig public saleConfiguration; string private baseTokenURI; string public _contractURI; struct SaleConfig { bool isSaleOpen; uint256 windowOpens; uint256 windowCloses; uint256 maxMintsPerTxn; uint256 mintPrice; uint256 maxSupply; } MintPassFactory public mintPassFactory; event Redeemed(address indexed account, string tokens); event Minted(address indexed account, string tokens); /** * @notice Constructor to create Collectible * * @param _symbol the token symbol * @param _mpIndexes the mintpass indexes to accommodate * @param _redemptionWindowsOpen the mintpass redemption window open unix timestamp by index * @param _redemptionWindowsClose the mintpass redemption window close unix timestamp by index * @param _maxRedeemPerTxn the max mint per redemption by index * @param _baseTokenURI the respective base URI * @param _contractMetaDataURI the respective contract meta data URI * @param _mintPassToken contract address of MintPass token to be burned */ constructor ( string memory _name, string memory _symbol, uint256[] memory _mpIndexes, uint256[] memory _redemptionWindowsOpen, uint256[] memory _redemptionWindowsClose, uint256[] memory _maxRedeemPerTxn, string memory _baseTokenURI, string memory _contractMetaDataURI, address _mintPassToken ) ERC721(_name, _symbol) { baseTokenURI = _baseTokenURI; _contractURI = _contractMetaDataURI; mintPassFactory = MintPassFactory(_mintPassToken); generalCounter.increment(); for(uint256 i = 0; i < _mpIndexes.length; i++) { uint passID = _mpIndexes[i]; redemptionWindows[passID].windowOpens = _redemptionWindowsOpen[i]; redemptionWindows[passID].windowCloses = _redemptionWindowsClose[i]; redemptionWindows[passID].maxRedeemPerTxn = _maxRedeemPerTxn[i]; } _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(DEFAULT_ADMIN_ROLE, 0x81745b7339D5067E82B93ca6BBAd125F214525d3); _setupRole(DEFAULT_ADMIN_ROLE, 0x90bFa85209Df7d86cA5F845F9Cd017fd85179f98); _setupRole(DEFAULT_ADMIN_ROLE, 0x7F379e2ca3c7e626aaF5B76A9507a5e909f72Db5); } /** * @notice Set the mintpass contract address * * @param _mintPassToken the respective Mint Pass contract address */ function setMintPassToken(address _mintPassToken) external override onlyRole(DEFAULT_ADMIN_ROLE) { mintPassFactory = MintPassFactory(_mintPassToken); } /** * @notice Change the base URI for returning metadata * * @param _baseTokenURI the respective base URI */ function setBaseURI(string memory _baseTokenURI) external override onlyRole(DEFAULT_ADMIN_ROLE) { baseTokenURI = _baseTokenURI; } /** * @notice Pause redeems until unpause is called */ function pause() external override onlyRole(DEFAULT_ADMIN_ROLE) { _pause(); } /** * @notice Unpause redeems until pause is called */ function unpause() external override onlyRole(DEFAULT_ADMIN_ROLE) { _unpause(); } /** * @notice Configure time to enable redeem functionality * * @param _windowOpen UNIX timestamp for redeem start */ function setRedeemStart(uint256 passID, uint256 _windowOpen) external override onlyRole(DEFAULT_ADMIN_ROLE) { redemptionWindows[passID].windowOpens = _windowOpen; } /** * @notice Configure time to enable redeem functionality * * @param _windowClose UNIX timestamp for redeem close */ function setRedeemClose(uint256 passID, uint256 _windowClose) external override onlyRole(DEFAULT_ADMIN_ROLE) { redemptionWindows[passID].windowCloses = _windowClose; } /** * @notice Configure the max amount of passes that can be redeemed in a txn for a specific pass index * * @param _maxRedeemPerTxn number of passes that can be redeemed */ function setMaxRedeemPerTxn(uint256 passID, uint256 _maxRedeemPerTxn) external override onlyRole(DEFAULT_ADMIN_ROLE) { redemptionWindows[passID].maxRedeemPerTxn = _maxRedeemPerTxn; } /** * @notice Check if redemption window is open * * @param passID the pass index to check */ function isRedemptionOpen(uint256 passID) public view override returns (bool) { if(paused()){ return false; } return block.timestamp > redemptionWindows[passID].windowOpens && block.timestamp < redemptionWindows[passID].windowCloses; } /** * @notice Mint next token * * @param _to receiver address */ function mintNextTokenTo(address _to) external onlyOwner { _safeMint(_to, generalCounter.current()); generalCounter.increment(); } function toggleSaleOn(bool isOn) external onlyRole(DEFAULT_ADMIN_ROLE) { saleConfiguration.isSaleOpen = isOn; } function editSale( bool isOn, uint256 windowOpens, uint256 windowCloses, uint256 maxMintsPerTxn, uint256 mintPrice, uint256 maxSupply ) external onlyRole(DEFAULT_ADMIN_ROLE) { saleConfiguration.isSaleOpen = isOn; saleConfiguration.windowOpens = windowOpens; saleConfiguration.windowCloses = windowCloses; saleConfiguration.maxMintsPerTxn = maxMintsPerTxn; saleConfiguration.mintPrice = mintPrice; saleConfiguration.maxSupply = maxSupply; } function editSalePrice(uint256 mintPrice) external onlyRole(DEFAULT_ADMIN_ROLE) { saleConfiguration.mintPrice = mintPrice; } function editSaleWindowOpen(uint256 windowOpens) external onlyRole(DEFAULT_ADMIN_ROLE) { saleConfiguration.windowOpens = windowOpens; } function editSaleWindowClose(uint256 windowCloses) external onlyRole(DEFAULT_ADMIN_ROLE) { saleConfiguration.windowCloses = windowCloses; } function editSaleMaxMintsPerTxn(uint256 maxMintsPerTxn) external onlyRole(DEFAULT_ADMIN_ROLE) { saleConfiguration.maxMintsPerTxn = maxMintsPerTxn; } function editSaleMaxSupply(uint256 maxSupply) external onlyRole(DEFAULT_ADMIN_ROLE) { saleConfiguration.maxSupply = maxSupply; } function directMint( uint256 quantity ) external payable { require(!paused(), "Mint: minting is paused"); require(quantity > 0, "Sale: Must send quantity"); require(saleConfiguration.isSaleOpen, "Sale: Not started"); require(quantity <= saleConfiguration.maxMintsPerTxn, "Sale: Max quantity per transaction exceeded"); require(block.timestamp >= saleConfiguration.windowOpens, "Sale: redeption window not open for this token"); require(block.timestamp <= saleConfiguration.windowCloses, "Sale: redeption window is closed for this token"); require(msg.value >= quantity.mul(saleConfiguration.mintPrice), "Sale: Ether value incorrect"); require(totalSupply() + quantity <= saleConfiguration.maxSupply, "Purchase would exceed max supply"); string memory tokens = ""; for(uint256 i = 0; i < quantity; i++) { _safeMint(msg.sender, generalCounter.current()); tokens = string(abi.encodePacked(tokens, generalCounter.current().toString(), ",")); generalCounter.increment(); } emit Minted(msg.sender, tokens); } /** * @notice Redeem specified amount of MintPass tokens * * @param mpIndexes the tokenIDs of MintPasses to redeem * @param amounts the amount of MintPasses to redeem */ function redeem(uint256[] calldata mpIndexes, uint256[] calldata amounts) external override{ require(msg.sender == tx.origin, "Redeem: not allowed from contract"); require(!paused(), "Redeem: paused"); //check to make sure all are valid then re-loop for redemption for(uint256 i = 0; i < mpIndexes.length; i++) { require(amounts[i] > 0, "Redeem: amount cannot be zero"); require(amounts[i] <= redemptionWindows[mpIndexes[i]].maxRedeemPerTxn, "Redeem: max redeem per transaction reached"); require(mintPassFactory.balanceOf(msg.sender, mpIndexes[i]) >= amounts[i], "Redeem: insufficient amount of Mint Passes"); require(block.timestamp > redemptionWindows[mpIndexes[i]].windowOpens, "Redeem: redeption window not open for this Mint Pass"); require(block.timestamp < redemptionWindows[mpIndexes[i]].windowCloses, "Redeem: redeption window is closed for this Mint Pass"); } string memory tokens = ""; for(uint256 i = 0; i < mpIndexes.length; i++) { mintPassFactory.burnFromRedeem(msg.sender, mpIndexes[i], amounts[i]); for(uint256 j = 0; j < amounts[i]; j++) { _safeMint(msg.sender, generalCounter.current()); tokens = string(abi.encodePacked(tokens, generalCounter.current().toString(), ",")); generalCounter.increment(); } } emit Redeemed(msg.sender, tokens); } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl,IERC165, ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } /** * @notice Configure the max amount of passes that can be redeemed in a txn for a specific pass index * * @param id of token * @param uri to point the token to */ function setIndividualTokenURI(uint256 id, string memory uri) external override onlyRole(DEFAULT_ADMIN_ROLE){ require(_exists(id), "ERC721Metadata: Token does not exist"); tokenData[id].tokenURI = uri; tokenData[id].exists = true; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); if(tokenData[tokenId].exists){ return tokenData[tokenId].tokenURI; } return string(abi.encodePacked(baseTokenURI, tokenId.toString(), '.json')); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable, ERC721Pausable) { super._beforeTokenTransfer(from, to, tokenId); } function setContractURI(string memory uri) external onlyRole(DEFAULT_ADMIN_ROLE){ _contractURI = uri; } function contractURI() public view returns (string memory) { return _contractURI; } } interface MintPassFactory { function burnFromRedeem(address account, uint256 id, uint256 amount) external; function balanceOf(address account, uint256 id) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "hardhat/console.sol"; contract Greeter { string private greeting; constructor(string memory _greeting) { console.log("Deploying a Greeter with greeting:", _greeting); greeting = _greeting; } function greet() public view returns (string memory) { return greeting; } function setGreeting(string memory _greeting) public { console.log("Changing greeting from '%s' to '%s'", greeting, _greeting); greeting = _greeting; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address[]","name":"_admins","type":"address[]"},{"internalType":"string","name":"_contract_URI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"index","type":"uint256[]"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"Fused","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":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"index","type":"uint256[]"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"Purchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenIndex","type":"uint256"},{"internalType":"uint256","name":"_fusionTokenID","type":"uint256"},{"internalType":"uint256","name":"_fusionQuantity","type":"uint256"}],"name":"addFusion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenIndex","type":"uint256"},{"internalType":"string","name":"_tokenType","type":"string"},{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_mustOwnQuantity","type":"uint256"}],"name":"addWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tokenIndex","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFromRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenIndex","type":"uint256"},{"internalType":"uint256","name":"_whiteListIndexToRemove","type":"uint256"}],"name":"disableWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenIndex","type":"uint256"},{"internalType":"string","name":"_ipfsMetadataHash","type":"string"},{"internalType":"string","name":"_extraDataUri","type":"string"},{"internalType":"uint256","name":"_windowOpens","type":"uint256"},{"internalType":"uint256","name":"_windowCloses","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxMintPerTxn","type":"uint256"},{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"},{"internalType":"bool","name":"_maxQuantityMappedByWhitelistHoldings","type":"bool"},{"internalType":"bool","name":"_requireAllWhiteLists","type":"bool"},{"internalType":"address[]","name":"_redeemableContracts","type":"address[]"}],"name":"editToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenIndex","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"editTokenWhiteListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIndex","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"fusion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"components":[{"internalType":"string","name":"tokenType","type":"string"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"mustOwnQuantity","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"}],"internalType":"struct Commerce.Whitelist","name":"balanceRequest","type":"tuple"}],"name":"getExternalTokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOpenSaleTokens","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenIndex","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"bool","name":"returnAllocationOnly","type":"bool"}],"name":"getQualifiedAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIndex","type":"uint256"}],"name":"getTokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIndex","type":"uint256"}],"name":"isSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"qty","type":"uint256[]"},{"internalType":"uint256[]","name":"_tokens","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name_","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_quantities","type":"uint256[]"},{"internalType":"uint256[]","name":"_tokenIndexes","type":"uint256[]"},{"internalType":"uint256[]","name":"_merkleAmounts","type":"uint256[]"},{"internalType":"bytes32[][]","name":"_merkleProofs","type":"bytes32[][]"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol_","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenIndex","type":"uint256"},{"internalType":"bool","name":"_fusionOpen","type":"bool"}],"name":"toggleFusion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mpIndex","type":"uint256"},{"internalType":"bool","name":"on","type":"bool"}],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"string","name":"ipfsMetadataHash","type":"string"},{"internalType":"string","name":"extraDataUri","type":"string"},{"internalType":"uint256","name":"numRedeemableContracts","type":"uint256"},{"internalType":"uint256","name":"numTokenWhitelists","type":"uint256"},{"components":[{"internalType":"bool","name":"saleIsOpen","type":"bool"},{"internalType":"uint256","name":"windowOpens","type":"uint256"},{"internalType":"uint256","name":"windowCloses","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxMintPerTxn","type":"uint256"},{"internalType":"uint256","name":"numMinted","type":"uint256"},{"internalType":"uint256","name":"fusionTokenID","type":"uint256"},{"internalType":"uint256","name":"fusionQuantity","type":"uint256"},{"internalType":"bool","name":"fusionOpen","type":"bool"}],"internalType":"struct Commerce.MintingConfig","name":"mintingConfig","type":"tuple"},{"components":[{"internalType":"bool","name":"maxQuantityMappedByWhitelistHoldings","type":"bool"},{"internalType":"bool","name":"requireAllWhiteLists","type":"bool"},{"internalType":"bool","name":"hasMerkleRoot","type":"bool"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"internalType":"struct Commerce.WhiteListConfig","name":"whiteListConfig","type":"tuple"},{"internalType":"bool","name":"isTokenPack","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"mpIndex","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"verifyMerkleProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162005c2538038062005c2583398101604081905262000034916200037c565b604080518082019091526007815266697066733a2f2f60c81b60208201526200005d8162000131565b506004805460ff1916905562000073336200014a565b600160095583516200008d90600790602087019062000245565b508251620000a390600890602086019062000245565b50620000b16000336200019c565b60005b82518110156200011057620000fb6000801b848381518110620000e757634e487b7160e01b600052603260045260246000fd5b60200260200101516200019c60201b60201c565b80620001078162000527565b915050620000b4565b5080516200012690600b90602084019062000245565b505050505062000565565b80516200014690600390602084019062000245565b5050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000828152602081815260408083206001600160a01b038516845290915290205462000146908390839060ff1662000146576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002013390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200025390620004ea565b90600052602060002090601f016020900481019282620002775760008555620002c2565b82601f106200029257805160ff1916838001178555620002c2565b82800160010185558215620002c2579182015b82811115620002c2578251825591602001919060010190620002a5565b50620002d0929150620002d4565b5090565b5b80821115620002d05760008155600101620002d5565b600082601f830112620002fc578081fd5b81516001600160401b038111156200031857620003186200054f565b60206200032e601f8301601f19168201620004b7565b828152858284870101111562000342578384fd5b835b838110156200036157858101830151828201840152820162000344565b838111156200037257848385840101525b5095945050505050565b6000806000806080858703121562000392578384fd5b84516001600160401b0380821115620003a9578586fd5b620003b788838901620002eb565b9550602091508187015181811115620003ce578586fd5b620003dc89828a01620002eb565b955050604087015181811115620003f1578485fd5b8701601f8101891362000402578485fd5b8051828111156200041757620004176200054f565b8060051b62000428858201620004b7565b8281528581019084870183860188018e10156200044357898afd5b8995505b848610156200047f57805193506001600160a01b03841684146200046957898afd5b8383526001959095019491870191870162000447565b50809850505050505060608701519150808211156200049c578283fd5b50620004ab87828801620002eb565b91505092959194509250565b604051601f8201601f191681016001600160401b0381118282101715620004e257620004e26200054f565b604052919050565b600181811c90821680620004ff57607f821691505b602082108114156200052157634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200054857634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b6156b080620005756000396000f3fe6080604052600436106102c85760003560e01c80636b20c45411610175578063bd85b039116100dc578063dd66489e11610095578063f242432a1161006f578063f242432a146108b9578063f2fde38b146108d9578063f5298aca146108f9578063fd679e781461091957600080fd5b8063dd66489e1461083b578063e2b9e1861461085b578063e985e9c51461087057600080fd5b8063bd85b03914610779578063c0e72740146107a6578063d547741f146107bb578063d5ebd788146107db578063d6b15c4c146107fb578063d81d0a151461081b57600080fd5b806391d148541161012e57806391d14854146106da57806395d89b41146106fa578063a217fddf1461070f578063a22cb46514610724578063a8afbca114610744578063af17dea61461076457600080fd5b80636b20c454146106355780637076574614610655578063715018a6146106685780637d7372031461067d5780638456cb591461069d5780638da5cb5b146106b257600080fd5b806336568abe116102345780634e1273f4116101ed578063522f6815116101c7578063522f6815146105c8578063589b2162146105e85780635c975abb146105fd57806365a8a0371461061557600080fd5b80634e1273f4146105395780634f558e79146105665780634f64b2be1461059557600080fd5b806336568abe1461048457806337170092146104a45780633aeca210146104c45780633c70c771146104e45780633f4ba83a146105045780634044556d1461051957600080fd5b806313af40351161028657806313af4035146103b457806319b88edb146103d4578063227f951c146103f4578063248a9ca3146104145780632eb2c2d6146104445780632f2ff15d1461046457600080fd5b8062fdd58e146102cd57806301ffc9a71461030057806302fe530514610330578063065eb1171461035257806306fdde03146103725780630e89341c14610394575b600080fd5b3480156102d957600080fd5b506102ed6102e8366004614694565b610939565b6040519081526020015b60405180910390f35b34801561030c57600080fd5b5061032061031b366004614903565b6109d5565b60405190151581526020016102f7565b34801561033c57600080fd5b5061035061034b36600461493b565b6109e0565b005b34801561035e57600080fd5b5061035061036d366004614985565b610a16565b34801561037e57600080fd5b50610387610a46565b6040516102f79190614ef7565b3480156103a057600080fd5b506103876103af3660046148c7565b610ad8565b3480156103c057600080fd5b506103506103cf366004614325565b610c2a565b3480156103e057600080fd5b506102ed6103ef3660046148c7565b610c5d565b34801561040057600080fd5b506102ed61040f3660046145d8565b610c98565b34801561042057600080fd5b506102ed61042f3660046148c7565b60009081526020819052604090206001015490565b34801561045057600080fd5b5061035061045f3660046143a4565b610dc3565b34801561047057600080fd5b5061035061047f3660046148df565b610e5a565b34801561049057600080fd5b5061035061049f3660046148df565b610e85565b3480156104b057600080fd5b506103506104bf366004614b60565b610f03565b3480156104d057600080fd5b506103506104df3660046146a6565b610f2d565b3480156104f057600080fd5b506103206104ff3660046147bb565b610fcd565b34801561051057600080fd5b50610350611088565b34801561052557600080fd5b506103206105343660046148c7565b6110bc565b34801561054557600080fd5b5061055961055436600461475b565b61110f565b6040516102f79190614eb6565b34801561057257600080fd5b506103206105813660046148c7565b600090815260056020526040902054151590565b3480156105a157600080fd5b506105b56105b03660046148c7565b611270565b6040516102f79796959493929190614f0a565b3480156105d457600080fd5b506103506105e3366004614341565b611485565b3480156105f457600080fd5b506103876114e5565b34801561060957600080fd5b5060045460ff16610320565b34801561062157600080fd5b50610350610630366004614b3f565b61156f565b34801561064157600080fd5b50610350610650366004614532565b6117c7565b610350610663366004614809565b61180a565b34801561067457600080fd5b50610350611fcf565b34801561068957600080fd5b50610350610698366004614b3f565b612003565b3480156106a957600080fd5b5061035061203a565b3480156106be57600080fd5b506006546040516001600160a01b0390911681526020016102f7565b3480156106e657600080fd5b506103206106f53660046148df565b61206c565b34801561070657600080fd5b50610387612095565b34801561071b57600080fd5b506102ed600081565b34801561073057600080fd5b5061035061073f3660046145a4565b6120a4565b34801561075057600080fd5b5061035061075f366004614a43565b61217b565b34801561077057600080fd5b506103876122c4565b34801561078557600080fd5b506102ed6107943660046148c7565b60009081526005602052604090205490565b3480156107b257600080fd5b50610387612352565b3480156107c757600080fd5b506103506107d63660046148df565b61235f565b3480156107e757600080fd5b506103506107f63660046149a7565b612385565b34801561080757600080fd5b506102ed6108163660046146da565b6123c6565b34801561082757600080fd5b506103506108363660046144b3565b6126cf565b34801561084757600080fd5b506103506108563660046149db565b61275f565b34801561086757600080fd5b50610387612814565b34801561087c57600080fd5b5061032061088b36600461436c565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b3480156108c557600080fd5b506103506108d436600461444d565b612821565b3480156108e557600080fd5b506103506108f4366004614325565b612866565b34801561090557600080fd5b506103506109143660046146a6565b6128fe565b34801561092557600080fd5b50610350610934366004614985565b612941565b60006001600160a01b0383166109aa5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526001602090815260408083206001600160a01b03861684529091529020545b92915050565b60006109cf82612971565b6006546001600160a01b03163314610a0a5760405162461bcd60e51b81526004016109a1906151b5565b610a13816129b1565b50565b6000610a2281336129c4565b506000918252600a6020526040909120600701805460ff1916911515919091179055565b606060078054610a55906154b7565b80601f0160208091040260200160405190810160405280929190818152602001828054610a81906154b7565b8015610ace5780601f10610aa357610100808354040283529160200191610ace565b820191906000526020600020905b815481529060010190602001808311610ab157829003601f168201915b5050505050905090565b60606000610ae583610c5d565b11610b175760405162461bcd60e51b8152602060048201526002602482015261189b60f11b60448201526064016109a1565b6000828152600a602052604090208054610bc89190610b35906154b7565b80601f0160208091040260200160405190810160405280929190818152602001828054610b61906154b7565b8015610bae5780601f10610b8357610100808354040283529160200191610bae565b820191906000526020600020905b815481529060010190602001808311610b9157829003601f168201915b505050505060405180602001604052806000815250612a28565b15610c0657610bd682612a81565b610bdf83612b15565b604051602001610bf0929190614c41565b6040516020818303038152906040529050919050565b6000828152600a60209081526040918290209151610bf0929101614ce7565b919050565b6006546001600160a01b03163314610c545760405162461bcd60e51b81526004016109a1906151b5565b610a1381612866565b6000818152600a60205260408120601481015460ff16610c8b57600083815260056020526040902054610c91565b600e8101545b9392505050565b6000610cc682600001516040518060400160405280600681526020016545524337323160d01b815250612a28565b15610d525760208201516040516370a0823160e01b81526001600160a01b0385811660048301528216906370a08231906024015b60206040518083038186803b158015610d1257600080fd5b505afa158015610d26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4a919061496d565b9150506109cf565b610d7f8260000151604051806040016040528060078152602001664552433131353560c81b815250612a28565b156109cf5760208201516060830151604051627eeac760e11b81526001600160a01b03868116600483015260248201929092529082169062fdd58e90604401610cfa565b6001600160a01b038516331480610ddf5750610ddf853361088b565b610e465760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016109a1565b610e538585858585612c2e565b5050505050565b600082815260208190526040902060010154610e7681336129c4565b610e808383612def565b505050565b6001600160a01b0381163314610ef55760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016109a1565b610eff8282612e73565b5050565b6000610f0f81336129c4565b506000928352600a6020526040909220600f81019190915560100155565b6000828152600a60205260408120600481015490919015610f915760005b8260040154811015610f8f5760008181526003840160205260409020546001600160a01b0316331415610f7d57600191505b80610f878161553d565b915050610f4b565b505b80610fc25760405162461bcd60e51b81526020600482015260016024820152603160f81b60448201526064016109a1565b610e53858585612ed8565b6000828152600a602052604081206012015462010000900460ff16610ff457506001611080565b60006110003384612ee3565b90506000816040516020016110159190614ef7565b60405160208183030381529060405280519060200120905061107b87878080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508a8152600a60205260409020601301549250859150612f1f9050565b925050505b949350505050565b6006546001600160a01b031633146110b25760405162461bcd60e51b81526004016109a1906151b5565b6110ba612fdc565b565b6000818152600a6020526040812060045460ff16156110de5750600092915050565b6008810154421180156110f45750600981015442105b15611106576007015460ff1692915050565b50600092915050565b606081518351146111745760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016109a1565b600083516001600160401b0381111561119d57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156111c6578160200160208202803683370190505b50905060005b84518110156112685761122d8582815181106111f857634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061122057634e487b7160e01b600052603260045260246000fd5b6020026020010151610939565b82828151811061124d57634e487b7160e01b600052603260045260246000fd5b60209081029190910101526112618161553d565b90506111cc565b509392505050565b600a6020526000908152604090208054819061128b906154b7565b80601f01602080910402602001604051908101604052809291908181526020018280546112b7906154b7565b80156113045780601f106112d957610100808354040283529160200191611304565b820191906000526020600020905b8154815290600101906020018083116112e757829003601f168201915b505050505090806001018054611319906154b7565b80601f0160208091040260200160405190810160405280929190818152602001828054611345906154b7565b80156113925780601f1061136757610100808354040283529160200191611392565b820191906000526020600020905b81548152906001019060200180831161137557829003601f168201915b505050600484015460068501546040805161016081018252600788015460ff90811615158252600889015460208084019190915260098a015483850152600a8a0154606080850191909152600b8b0154608080860191909152600c8c015460a0860152600d8c015460c0860152600e8c015460e0860152600f8c01546101008087019190915260108d015461012087015260118d0154851615156101408701528651918201875260128d015480861615158352908104851615159382019390935262010000909204831615159482019490945260138a015493810193909352601490980154969793969295509350911687565b6006546001600160a01b031633146114af5760405162461bcd60e51b81526004016109a1906151b5565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610e80573d6000803e3d6000fd5b60408051602081019091526000808252606091905b6000818152600a6020526040902080546115189190610b35906154b7565b61156957611525816110bc565b15611557578161153482612b15565b604051602001611545929190614c70565b60405160208183030381529060405291505b806115618161553d565b9150506114fa565b50919050565b600260095414156115c25760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109a1565b60026009556000828152600a60205260409020601181015460ff1661160e5760405162461bcd60e51b8152602060048201526002602482015261032360f41b60448201526064016109a1565b6116166140a7565b6040805180820190915260078152664552433131353560c81b6020808301919091529082523090820152600f820154606082015260006116563383610c98565b601084015490915081116116915760405162461bcd60e51b8152602060048201526002602482015261323160f01b60448201526064016109a1565b60108301546000906116a490869061306f565b60408051600180825281830190925291925060609182916020808301908036833701905050915087826000815181106116ed57634e487b7160e01b600052603260045260246000fd5b602090810291909101015260408051600180825281830190925290816020016020820280368337019050509050828160008151811061173c57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506117633383836040518060200160405280600081525061307b565b61177533876007016008015489612ed8565b336001600160a01b03167f9c2280f9efd212e6f0f70647ab312cb5ad5c98f19b5f0b26ce6022daace0539883836040516117b0929190614ec9565b60405180910390a250506001600955505050505050565b6001600160a01b0383163314806117e357506117e3833361088b565b6117ff5760405162461bcd60e51b81526004016109a19061509a565b610e8083838361308d565b6002600954141561185d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109a1565b60026009556000805b86811015611c3c5761189d88888381811061189157634e487b7160e01b600052603260045260246000fd5b905060200201356110bc565b6118cd5760405162461bcd60e51b81526020600482015260016024820152603560f81b60448201526064016109a1565b8585828181106118ed57634e487b7160e01b600052603260045260246000fd5b905060200201356119728b8b8481811061191757634e487b7160e01b600052603260045260246000fd5b90506020020135600a60008c8c8781811061194257634e487b7160e01b600052603260045260246000fd5b60209081029290920135835250818101929092526040908101600090812033825260020190925290205490613098565b11156119a45760405162461bcd60e51b81526020600482015260016024820152600760fb1b60448201526064016109a1565b600a60008989848181106119c857634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002060070160050154611a078b8b8481811061191757634e487b7160e01b600052603260045260246000fd5b1115611a395760405162461bcd60e51b81526020600482015260016024820152603960f81b60448201526064016109a1565b600a6000898984818110611a5d57634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020600701600601548a8a83818110611a9957634e487b7160e01b600052603260045260246000fd5b905060200201351115611ad35760405162461bcd60e51b8152602060048201526002602482015261031360f41b60448201526064016109a1565b600a6000898984818110611af757634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020600701600401548a8a83818110611b3357634e487b7160e01b600052603260045260246000fd5b90506020020135611b698a8a85818110611b5d57634e487b7160e01b600052603260045260246000fd5b90506020020135610c5d565b611b73919061529c565b1115611ba65760405162461bcd60e51b8152602060048201526002602482015261313160f01b60448201526064016109a1565b611c28611c21600a60008b8b86818110611bd057634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020600701600301548c8c85818110611c0c57634e487b7160e01b600052603260045260246000fd5b905060200201356130a490919063ffffffff16565b8390613098565b915080611c348161553d565b915050611866565b5060045460ff16158015611c505750803410155b611c805760405162461bcd60e51b81526020600482015260016024820152603360f81b60448201526064016109a1565b60005b86811015611f77576000611d3f338a8a85818110611cb157634e487b7160e01b600052603260045260246000fd5b905060200201358d8d86818110611cd857634e487b7160e01b600052603260045260246000fd5b905060200201358a8a87818110611cff57634e487b7160e01b600052603260045260246000fd5b90506020020135898988818110611d2657634e487b7160e01b600052603260045260246000fd5b9050602002810190611d389190615232565b60016123c6565b9050600081118015611d7757508a8a83818110611d6c57634e487b7160e01b600052603260045260246000fd5b905060200201358110155b611da75760405162461bcd60e51b81526020600482015260016024820152600d60fa1b60448201526064016109a1565b604080516001808252818301909252606091829190602080830190803683370190505091508a8a85818110611dec57634e487b7160e01b600052603260045260246000fd5b9050602002013582600081518110611e1457634e487b7160e01b600052603260045260246000fd5b6020908102919091010152604080516001808252818301909252908160200160208202803683370190505090508c8c85818110611e6157634e487b7160e01b600052603260045260246000fd5b9050602002013581600081518110611e8957634e487b7160e01b600052603260045260246000fd5b602002602001018181525050611ee38d8d86818110611eb857634e487b7160e01b600052603260045260246000fd5b90506020020135600a60008e8e8981811061194257634e487b7160e01b600052603260045260246000fd5b600a60008d8d88818110611f0757634e487b7160e01b600052603260045260246000fd5b9050602002013581526020019081526020016000206002016000336001600160a01b03166001600160a01b0316815260200190815260200160002081905550611f613383836040518060200160405280600081525061307b565b5050508080611f6f9061553d565b915050611c83565b50336001600160a01b03167fb19a0e54a0d12c649f962287d12e0573df3d188f5fcad44083dd0a11e759bcc588888c8c604051611fb79493929190614e8f565b60405180910390a25050600160095550505050505050565b6006546001600160a01b03163314611ff95760405162461bcd60e51b81526004016109a1906151b5565b6110ba60006130b0565b600061200f81336129c4565b506000918252600a60209081526040808420928452600590920190529020600401805460ff19169055565b6006546001600160a01b031633146120645760405162461bcd60e51b81526004016109a1906151b5565b6110ba613102565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b606060088054610a55906154b7565b336001600160a01b038316141561210f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016109a1565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600061218781336129c4565b6000600a60008f815260200190815260200160002090508a81600701600101819055508981600701600201819055508881600701600301819055508781600701600401819055508681600701600601819055508581600701600501819055508c8160000190805190602001906121fe9291906140e1565b508b5161221490600183019060208f01906140e1565b5060005b835181101561228d5783818151811061224157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600083815260038501909252604090912080546001600160a01b0319166001600160a01b03909216919091179055806122858161553d565b915050612218565b509151600483015550601201805461ffff191692151561ff0019169290921761010091151591909102179055505050505050505050565b600880546122d1906154b7565b80601f01602080910402602001604051908101604052809291908181526020018280546122fd906154b7565b801561234a5780601f1061231f5761010080835404028352916020019161234a565b820191906000526020600020905b81548152906001019060200180831161232d57829003601f168201915b505050505081565b600b80546122d1906154b7565b60008281526020819052604090206001015461237b81336129c4565b610e808383612e73565b600061239181336129c4565b506000928352600a602052604090922060138101919091556012018054911515620100000262ff000019909216919091179055565b6000868152600a60205260408120600c810154601282015460ff16156123ea575060005b6006820154600090156125b15760008060005b85600601548110156125a957600081815260058701602052604090206004015460ff1615612597576124318e8e838b61317d565b6012870154909250610100900460ff16156124865760006124548f8f848c61317d565b116124865760405162461bcd60e51b8152602060048201526002602482015261189960f11b60448201526064016109a1565b601286015460ff16156125935761249b6140a7565b6000828152600588016020526040902080546124b6906154b7565b80601f01602080910402602001604051908101604052809291908181526020018280546124e2906154b7565b801561252f5780601f106125045761010080835404028352916020019161252f565b820191906000526020600020905b81548152906001019060200180831161251257829003601f168201915b505050918352505060008281526005880160208181526040832060018101546001600160a01b03168286015292859052526003015460608201526125738f82610c98565b935061257f848761529c565b955061258b848661529c565b945050612597565b8193505b806125a18161553d565b9150506123fd565b5050506125b8565b50600d8201545b8461265957600081116125f25760405162461bcd60e51b8152602060048201526002602482015261313360f01b60448201526064016109a1565b601283015460ff1615612659576001600160a01b038b1660009081526002840160205260409020548290612626908b613098565b11156126595760405162461bcd60e51b81526020600482015260026024820152610c4d60f21b60448201526064016109a1565b601283015462010000900460ff16156126a95761267887878c8b610fcd565b6126a95760405162461bcd60e51b8152602060048201526002602482015261313560f01b60448201526064016109a1565b84156126bc578881106126bc57886126be565b805b93505050505b979650505050505050565b60006126db81336129c4565b6127578684848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808c0282810182019093528b82529093508b92508a91829185019084908082843760009201829052506040805160208101909152908152925061307b915050565b505050505050565b600061276b81336129c4565b6000868152600a602090815260408083206006810154845260050182529091208651909161279d9183918901906140e1565b5060038101849055600481018054600160ff19909116811790915580820180546001600160a01b0319166001600160a01b038816179055600282018490556000888152600a60205260409020600601546127f69161529c565b6000978852600a602052604090972060060196909655505050505050565b600780546122d1906154b7565b6001600160a01b03851633148061283d575061283d853361088b565b6128595760405162461bcd60e51b81526004016109a19061509a565b610e5385858585856132f1565b6006546001600160a01b031633146128905760405162461bcd60e51b81526004016109a1906151b5565b6001600160a01b0381166128f55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a1565b610a13816130b0565b6001600160a01b03831633148061291a575061291a833361088b565b6129365760405162461bcd60e51b81526004016109a19061509a565b610e80838383612ed8565b600061294d81336129c4565b506000918252600a6020526040909120601101805460ff1916911515919091179055565b60006001600160e01b03198216636cdb3d1360e11b14806129a257506001600160e01b031982166303a24d0760e21b145b806109cf57506109cf82613421565b8051610eff9060039060208401906140e1565b6129ce828261206c565b610eff576129e6816001600160a01b03166014613456565b6129f1836020613456565b604051602001612a02929190614d82565b60408051601f198184030181529082905262461bcd60e51b82526109a191600401614ef7565b600081604051602001612a3b9190614c25565b6040516020818303038152906040528051906020012083604051602001612a629190614c25565b6040516020818303038152906040528051906020012014905092915050565b606060038054612a90906154b7565b80601f0160208091040260200160405190810160405280929190818152602001828054612abc906154b7565b8015612b095780601f10612ade57610100808354040283529160200191612b09565b820191906000526020600020905b815481529060010190602001808311612aec57829003601f168201915b50505050509050919050565b606081612b395750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b635780612b4d8161553d565b9150612b5c9050600a836152d9565b9150612b3d565b6000816001600160401b03811115612b8b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612bb5576020820181803683370190505b5090505b841561108057612bca60018361543a565b9150612bd7600a86615558565b612be290603061529c565b60f81b818381518110612c0557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612c27600a866152d9565b9450612bb9565b8151835114612c4f5760405162461bcd60e51b81526004016109a1906151ea565b6001600160a01b038416612c755760405162461bcd60e51b81526004016109a1906150e3565b33612c84818787878787613637565b60005b8451811015612d89576000858281518110612cb257634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110612cde57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526001835260408082206001600160a01b038e168352909352919091205490915081811015612d2f5760405162461bcd60e51b81526004016109a19061516b565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612d6e90849061529c565b9250508190555050505080612d829061553d565b9050612c87565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612dd9929190614ec9565b60405180910390a4612757818787878787613645565b612df9828261206c565b610eff576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055612e2f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b612e7d828261206c565b15610eff576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610e808383836137b0565b6060612eee836137e3565b612ef783612b15565b604051602001612f08929190614cab565b604051602081830303815290604052905092915050565b600081815b8551811015612fd1576000868281518110612f4f57634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311612f91576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612fbe565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612fc98161553d565b915050612f24565b509092149392505050565b60045460ff166130255760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016109a1565b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000610c9182846152d9565b61308784848484613946565b50505050565b610e808383836139e5565b6000610c91828461529c565b6000610c9182846153fa565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60045460ff16156131485760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016109a1565b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586130523390565b6000838152600a60205260408120819081906131976140a7565b6000878152600583016020526040902080546131b2906154b7565b80601f01602080910402602001604051908101604052809291908181526020018280546131de906154b7565b801561322b5780601f106132005761010080835404028352916020019161322b565b820191906000526020600020905b81548152906001019060200180831161320e57829003601f168201915b505050918352505060008781526005830160208181526040832060018101546001600160a01b031682860152928a90525260030154606082015261326f8982610c98565b600088815260058401602052604090206002015460148401549194508410159060ff161580156132a35750601283015460ff165b156132b0578394506132be565b80156132be57600d83015494505b841580156132d657506012830154610100900460ff16155b156132e357600d83015494505b509298975050505050505050565b6001600160a01b0384166133175760405162461bcd60e51b81526004016109a1906150e3565b3361333681878761332788613a83565b61333088613a83565b87613637565b60008481526001602090815260408083206001600160a01b038a168452909152902054838110156133795760405162461bcd60e51b81526004016109a19061516b565b60008581526001602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906133b890849061529c565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613418828888888888613adc565b50505050505050565b60006001600160e01b03198216637965db0b60e01b14806109cf57506301ffc9a760e01b6001600160e01b03198316146109cf565b606060006134658360026153fa565b61347090600261529c565b6001600160401b0381111561349557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156134bf576020820181803683370190505b509050600360fc1b816000815181106134e857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061352557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006135498460026153fa565b61355490600161529c565b90505b60018111156135e8576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061359657634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106135ba57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936135e1816154a0565b9050613557565b508315610c915760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109a1565b612757868686868686613ba6565b6001600160a01b0384163b156127575760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906136899089908990889088908890600401614df7565b602060405180830381600087803b1580156136a357600080fd5b505af19250505080156136d3575060408051601f3d908101601f191682019092526136d09181019061491f565b60015b613780576136df6155ae565b806308c379a0141561371957506136f46155c6565b806136ff575061371b565b8060405162461bcd60e51b81526004016109a19190614ef7565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016109a1565b6001600160e01b0319811663bc197c8160e01b146134185760405162461bcd60e51b81526004016109a19061500e565b6137bb838383613c0e565b600082815260056020526040812080548392906137d990849061543a565b9091555050505050565b60408051602880825260608281019093526000919060208201818036833701905050905060005b601481101561393f57600061382082601361543a565b61382b9060086153fa565b613836906002615352565b613849906001600160a01b0387166152d9565b60f81b9050600060108260f81c61386091906152ed565b60f81b905060008160f81c60106138779190615419565b8360f81c6138859190615451565b60f81b905061389382613d13565b8561389f8660026153fa565b815181106138bd57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506138dd81613d13565b856138e98660026153fa565b6138f490600161529c565b8151811061391257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535050505080806139379061553d565b91505061380a565b5092915050565b61395284848484613d49565b60005b8351811015610e535782818151811061397e57634e487b7160e01b600052603260045260246000fd5b6020026020010151600560008684815181106139aa57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546139cf919061529c565b909155506139de90508161553d565b9050613955565b6139f0838383613efa565b60005b825181101561308757818181518110613a1c57634e487b7160e01b600052603260045260246000fd5b602002602001015160056000858481518110613a4857634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254613a6d919061543a565b90915550613a7c90508161553d565b90506139f3565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110613acb57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156127575760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190613b209089908990889088908890600401614e55565b602060405180830381600087803b158015613b3a57600080fd5b505af1925050508015613b6a575060408051601f3d908101601f19168201909252613b679181019061491f565b60015b613b76576136df6155ae565b6001600160e01b0319811663f23a6e6160e01b146134185760405162461bcd60e51b81526004016109a19061500e565b60045460ff16156127575760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b60648201526084016109a1565b6001600160a01b038316613c345760405162461bcd60e51b81526004016109a190615128565b33613c6381856000613c4587613a83565b613c4e87613a83565b60405180602001604052806000815250613637565b60008381526001602090815260408083206001600160a01b038816845290915290205482811015613ca65760405162461bcd60e51b81526004016109a190615056565b60008481526001602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6000600a60f883901c1015613d3a57613d3160f883901c60306152b4565b60f81b92915050565b613d3160f883901c60576152b4565b6001600160a01b038416613da95760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016109a1565b8151835114613dca5760405162461bcd60e51b81526004016109a1906151ea565b33613dda81600087878787613637565b60005b8451811015613e9257838181518110613e0657634e487b7160e01b600052603260045260246000fd5b602002602001015160016000878481518110613e3257634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254613e7a919061529c565b90915550819050613e8a8161553d565b915050613ddd565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613ee3929190614ec9565b60405180910390a4610e5381600087878787613645565b6001600160a01b038316613f205760405162461bcd60e51b81526004016109a190615128565b8051825114613f415760405162461bcd60e51b81526004016109a1906151ea565b6000339050613f6481856000868660405180602001604052806000815250613637565b60005b8351811015614048576000848281518110613f9257634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110613fbe57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526001835260408082206001600160a01b038c16835290935291909120549091508181101561400f5760405162461bcd60e51b81526004016109a190615056565b60009283526001602090815260408085206001600160a01b038b16865290915290922091039055806140408161553d565b915050613f67565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051614099929190614ec9565b60405180910390a450505050565b6040518060a001604052806060815260200160006001600160a01b0316815260200160008152602001600081526020016000151581525090565b8280546140ed906154b7565b90600052602060002090601f01602090048101928261410f5760008555614155565b82601f1061412857805160ff1916838001178555614155565b82800160010185558215614155579182015b8281111561415557825182559160200191906001019061413a565b50614161929150614165565b5090565b5b808211156141615760008155600101614166565b600082601f83011261418a578081fd5b8135602061419782615279565b6040516141a48282615511565b8381528281019150858301600585901b870184018810156141c3578586fd5b855b858110156141ea5781356141d88161564f565b845292840192908401906001016141c5565b5090979650505050505050565b60008083601f840112614208578182fd5b5081356001600160401b0381111561421e578182fd5b6020830191508360208260051b850101111561423957600080fd5b9250929050565b600082601f830112614250578081fd5b8135602061425d82615279565b60405161426a8282615511565b8381528281019150858301600585901b87018401881015614289578586fd5b855b858110156141ea5781358452928401929084019060010161428b565b80358015158114610c2557600080fd5b600082601f8301126142c7578081fd5b81356001600160401b038111156142e0576142e0615598565b6040516142f7601f8301601f191660200182615511565b81815284602083860101111561430b578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215614336578081fd5b8135610c918161564f565b60008060408385031215614353578081fd5b823561435e8161564f565b946020939093013593505050565b6000806040838503121561437e578182fd5b82356143898161564f565b915060208301356143998161564f565b809150509250929050565b600080600080600060a086880312156143bb578081fd5b85356143c68161564f565b945060208601356143d68161564f565b935060408601356001600160401b03808211156143f1578283fd5b6143fd89838a01614240565b94506060880135915080821115614412578283fd5b61441e89838a01614240565b93506080880135915080821115614433578283fd5b50614440888289016142b7565b9150509295509295909350565b600080600080600060a08688031215614464578283fd5b853561446f8161564f565b9450602086013561447f8161564f565b9350604086013592506060860135915060808601356001600160401b038111156144a7578182fd5b614440888289016142b7565b6000806000806000606086880312156144ca578283fd5b85356144d58161564f565b945060208601356001600160401b03808211156144f0578485fd5b6144fc89838a016141f7565b90965094506040880135915080821115614514578283fd5b50614521888289016141f7565b969995985093965092949392505050565b600080600060608486031215614546578081fd5b83356145518161564f565b925060208401356001600160401b038082111561456c578283fd5b61457887838801614240565b9350604086013591508082111561458d578283fd5b5061459a86828701614240565b9150509250925092565b600080604083850312156145b6578182fd5b82356145c18161564f565b91506145cf602084016142a7565b90509250929050565b600080604083850312156145ea578182fd5b82356145f58161564f565b915060208301356001600160401b0380821115614610578283fd5b9084019060a08287031215614623578283fd5b60405161462f816154ec565b82358281111561463d578485fd5b614649888286016142b7565b8252506020830135915061465c8261564f565b8160208201526040830135604082015260608301356060820152614682608084016142a7565b60808201528093505050509250929050565b60008060408385031215614353578182fd5b6000806000606084860312156146ba578081fd5b83356146c58161564f565b95602085013595506040909401359392505050565b600080600080600080600060c0888a0312156146f4578485fd5b87356146ff8161564f565b965060208801359550604088013594506060880135935060808801356001600160401b0381111561472e578283fd5b61473a8a828b016141f7565b909450925061474d905060a089016142a7565b905092959891949750929550565b6000806040838503121561476d578182fd5b82356001600160401b0380821115614783578384fd5b61478f8683870161417a565b935060208501359150808211156147a4578283fd5b506147b185828601614240565b9150509250929050565b600080600080606085870312156147d0578182fd5b84356001600160401b038111156147e5578283fd5b6147f1878288016141f7565b90989097506020870135966040013595509350505050565b6000806000806000806000806080898b031215614824578182fd5b88356001600160401b038082111561483a578384fd5b6148468c838d016141f7565b909a50985060208b013591508082111561485e578384fd5b61486a8c838d016141f7565b909850965060408b0135915080821115614882578384fd5b61488e8c838d016141f7565b909650945060608b01359150808211156148a6578384fd5b506148b38b828c016141f7565b999c989b5096995094979396929594505050565b6000602082840312156148d8578081fd5b5035919050565b600080604083850312156148f1578182fd5b8235915060208301356143998161564f565b600060208284031215614914578081fd5b8135610c9181615664565b600060208284031215614930578081fd5b8151610c9181615664565b60006020828403121561494c578081fd5b81356001600160401b03811115614961578182fd5b611080848285016142b7565b60006020828403121561497e578081fd5b5051919050565b60008060408385031215614997578182fd5b823591506145cf602084016142a7565b6000806000606084860312156149bb578081fd5b83359250602084013591506149d2604085016142a7565b90509250925092565b600080600080600060a086880312156149f2578283fd5b8535945060208601356001600160401b03811115614a0e578384fd5b614a1a888289016142b7565b9450506040860135614a2b8161564f565b94979396509394606081013594506080013592915050565b6000806000806000806000806000806000806101808d8f031215614a65578586fd5b8c359b506001600160401b0360208e01351115614a80578586fd5b614a908e60208f01358f016142b7565b9a506001600160401b0360408e01351115614aa9578586fd5b614ab98e60408f01358f016142b7565b995060608d0135985060808d0135975060a08d0135965060c08d0135955060e08d013594506101008d01359350614af36101208e016142a7565b9250614b026101408e016142a7565b91506001600160401b036101608e01351115614b1c578081fd5b614b2d8e6101608f01358f0161417a565b90509295989b509295989b509295989b565b60008060408385031215614b51578182fd5b50508035926020909101359150565b600080600060608486031215614b74578081fd5b505081359360208301359350604090920135919050565b81835260006001600160fb1b03831115614ba3578081fd5b8260051b80836020870137939093016020019283525090919050565b6000815180845260208085019450808401835b83811015614bee57815187529582019590820190600101614bd2565b509495945050505050565b60008151808452614c11816020860160208601615474565b601f01601f19169290920160200192915050565b60008251614c37818460208701615474565b9190910192915050565b60008351614c53818460208801615474565b835190830190614c67818360208801615474565b01949350505050565b60008351614c82818460208801615474565b835190830190614c96818360208801615474565b600b60fa1b9101908152600101949350505050565b60008351614cbd818460208801615474565b605f60f81b9083019081528351614cdb816001840160208801615474565b01600101949350505050565b600080835482600182811c915080831680614d0357607f831692505b6020808410821415614d2357634e487b7160e01b87526022600452602487fd5b818015614d375760018114614d4857614d74565b60ff19861689528489019650614d74565b60008a815260209020885b86811015614d6c5781548b820152908501908301614d53565b505084890196505b509498975050505050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614dba816017850160208801615474565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614deb816028840160208801615474565b01602801949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090614e2390830186614bbf565b8281036060840152614e358186614bbf565b90508281036080840152614e498185614bf9565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906126c490830184614bf9565b604081526000614ea3604083018688614b8b565b82810360208401526126c4818587614b8b565b602081526000610c916020830184614bbf565b604081526000614edc6040830185614bbf565b8281036020840152614eee8185614bbf565b95945050505050565b602081526000610c916020830184614bf9565b6000610280808352614f1e8184018b614bf9565b90508281036020840152614f32818a614bf9565b915050866040830152856060830152614f5060808301865115159052565b602085015160a0830152604085015160c0830152606085015160e08301526080850151610100818185015260a08701519150610120828186015260c08801519250610140838187015260e089015161016087015282890151610180870152818901516101a0870152808901519350505050614fd06101c084018215159052565b50835115156101e083015260208401511515610200830152604084015115156102208301526060840151610240830152821515610260830152614e49565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b6000808335601e19843603018112615248578283fd5b8301803591506001600160401b03821115615261578283fd5b6020019150600581901b360382131561423957600080fd5b60006001600160401b0382111561529257615292615598565b5060051b60200190565b600082198211156152af576152af61556c565b500190565b600060ff821660ff84168060ff038211156152d1576152d161556c565b019392505050565b6000826152e8576152e8615582565b500490565b600060ff83168061530057615300615582565b8060ff84160491505092915050565b600181815b8085111561534a5781600019048211156153305761533061556c565b8085161561533d57918102915b93841c9390800290615314565b509250929050565b6000610c918383600082615368575060016109cf565b81615375575060006109cf565b816001811461538b5760028114615395576153b1565b60019150506109cf565b60ff8411156153a6576153a661556c565b50506001821b6109cf565b5060208310610133831016604e8410600b84101617156153d4575081810a6109cf565b6153de838361530f565b80600019048211156153f2576153f261556c565b029392505050565b60008160001904831182151516156154145761541461556c565b500290565b600060ff821660ff84168160ff04811182151516156153f2576153f261556c565b60008282101561544c5761544c61556c565b500390565b600060ff821660ff84168082101561546b5761546b61556c565b90039392505050565b60005b8381101561548f578181015183820152602001615477565b838111156130875750506000910152565b6000816154af576154af61556c565b506000190190565b600181811c908216806154cb57607f821691505b6020821081141561156957634e487b7160e01b600052602260045260246000fd5b60a081018181106001600160401b038211171561550b5761550b615598565b60405250565b601f8201601f191681016001600160401b038111828210171561553657615536615598565b6040525050565b60006000198214156155515761555161556c565b5060010190565b60008261556757615567615582565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156155c357600481823e5160e01c5b90565b600060443d10156155d45790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561560357505050505090565b828501915081518181111561561b5750505050505090565b843d87010160208285010111156156355750505050505090565b61564460208286010187615511565b509095945050505050565b6001600160a01b0381168114610a1357600080fd5b6001600160e01b031981168114610a1357600080fdfea26469706673582212200d7ba2ee7e54a7bf122b45083b448efeed6d70663e219eaf42dec7808c75960a64736f6c63430008040033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000f546865205469636b337420506173730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a5449434b33545041535300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000081745b7339d5067e82b93ca6bbad125f214525d3000000000000000000000000110d0c8b5a06c0367053938eedf10131ac972593000000000000000000000000cf163b6519e8388ba3b917177b93de5be01e80690000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d526f6131704a4846454c697a6e654c694e6d704c574e6161326a6e4c4d5974563764395a4578545a354e37690000000000000000000000
Deployed Bytecode
0x6080604052600436106102c85760003560e01c80636b20c45411610175578063bd85b039116100dc578063dd66489e11610095578063f242432a1161006f578063f242432a146108b9578063f2fde38b146108d9578063f5298aca146108f9578063fd679e781461091957600080fd5b8063dd66489e1461083b578063e2b9e1861461085b578063e985e9c51461087057600080fd5b8063bd85b03914610779578063c0e72740146107a6578063d547741f146107bb578063d5ebd788146107db578063d6b15c4c146107fb578063d81d0a151461081b57600080fd5b806391d148541161012e57806391d14854146106da57806395d89b41146106fa578063a217fddf1461070f578063a22cb46514610724578063a8afbca114610744578063af17dea61461076457600080fd5b80636b20c454146106355780637076574614610655578063715018a6146106685780637d7372031461067d5780638456cb591461069d5780638da5cb5b146106b257600080fd5b806336568abe116102345780634e1273f4116101ed578063522f6815116101c7578063522f6815146105c8578063589b2162146105e85780635c975abb146105fd57806365a8a0371461061557600080fd5b80634e1273f4146105395780634f558e79146105665780634f64b2be1461059557600080fd5b806336568abe1461048457806337170092146104a45780633aeca210146104c45780633c70c771146104e45780633f4ba83a146105045780634044556d1461051957600080fd5b806313af40351161028657806313af4035146103b457806319b88edb146103d4578063227f951c146103f4578063248a9ca3146104145780632eb2c2d6146104445780632f2ff15d1461046457600080fd5b8062fdd58e146102cd57806301ffc9a71461030057806302fe530514610330578063065eb1171461035257806306fdde03146103725780630e89341c14610394575b600080fd5b3480156102d957600080fd5b506102ed6102e8366004614694565b610939565b6040519081526020015b60405180910390f35b34801561030c57600080fd5b5061032061031b366004614903565b6109d5565b60405190151581526020016102f7565b34801561033c57600080fd5b5061035061034b36600461493b565b6109e0565b005b34801561035e57600080fd5b5061035061036d366004614985565b610a16565b34801561037e57600080fd5b50610387610a46565b6040516102f79190614ef7565b3480156103a057600080fd5b506103876103af3660046148c7565b610ad8565b3480156103c057600080fd5b506103506103cf366004614325565b610c2a565b3480156103e057600080fd5b506102ed6103ef3660046148c7565b610c5d565b34801561040057600080fd5b506102ed61040f3660046145d8565b610c98565b34801561042057600080fd5b506102ed61042f3660046148c7565b60009081526020819052604090206001015490565b34801561045057600080fd5b5061035061045f3660046143a4565b610dc3565b34801561047057600080fd5b5061035061047f3660046148df565b610e5a565b34801561049057600080fd5b5061035061049f3660046148df565b610e85565b3480156104b057600080fd5b506103506104bf366004614b60565b610f03565b3480156104d057600080fd5b506103506104df3660046146a6565b610f2d565b3480156104f057600080fd5b506103206104ff3660046147bb565b610fcd565b34801561051057600080fd5b50610350611088565b34801561052557600080fd5b506103206105343660046148c7565b6110bc565b34801561054557600080fd5b5061055961055436600461475b565b61110f565b6040516102f79190614eb6565b34801561057257600080fd5b506103206105813660046148c7565b600090815260056020526040902054151590565b3480156105a157600080fd5b506105b56105b03660046148c7565b611270565b6040516102f79796959493929190614f0a565b3480156105d457600080fd5b506103506105e3366004614341565b611485565b3480156105f457600080fd5b506103876114e5565b34801561060957600080fd5b5060045460ff16610320565b34801561062157600080fd5b50610350610630366004614b3f565b61156f565b34801561064157600080fd5b50610350610650366004614532565b6117c7565b610350610663366004614809565b61180a565b34801561067457600080fd5b50610350611fcf565b34801561068957600080fd5b50610350610698366004614b3f565b612003565b3480156106a957600080fd5b5061035061203a565b3480156106be57600080fd5b506006546040516001600160a01b0390911681526020016102f7565b3480156106e657600080fd5b506103206106f53660046148df565b61206c565b34801561070657600080fd5b50610387612095565b34801561071b57600080fd5b506102ed600081565b34801561073057600080fd5b5061035061073f3660046145a4565b6120a4565b34801561075057600080fd5b5061035061075f366004614a43565b61217b565b34801561077057600080fd5b506103876122c4565b34801561078557600080fd5b506102ed6107943660046148c7565b60009081526005602052604090205490565b3480156107b257600080fd5b50610387612352565b3480156107c757600080fd5b506103506107d63660046148df565b61235f565b3480156107e757600080fd5b506103506107f63660046149a7565b612385565b34801561080757600080fd5b506102ed6108163660046146da565b6123c6565b34801561082757600080fd5b506103506108363660046144b3565b6126cf565b34801561084757600080fd5b506103506108563660046149db565b61275f565b34801561086757600080fd5b50610387612814565b34801561087c57600080fd5b5061032061088b36600461436c565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b3480156108c557600080fd5b506103506108d436600461444d565b612821565b3480156108e557600080fd5b506103506108f4366004614325565b612866565b34801561090557600080fd5b506103506109143660046146a6565b6128fe565b34801561092557600080fd5b50610350610934366004614985565b612941565b60006001600160a01b0383166109aa5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526001602090815260408083206001600160a01b03861684529091529020545b92915050565b60006109cf82612971565b6006546001600160a01b03163314610a0a5760405162461bcd60e51b81526004016109a1906151b5565b610a13816129b1565b50565b6000610a2281336129c4565b506000918252600a6020526040909120600701805460ff1916911515919091179055565b606060078054610a55906154b7565b80601f0160208091040260200160405190810160405280929190818152602001828054610a81906154b7565b8015610ace5780601f10610aa357610100808354040283529160200191610ace565b820191906000526020600020905b815481529060010190602001808311610ab157829003601f168201915b5050505050905090565b60606000610ae583610c5d565b11610b175760405162461bcd60e51b8152602060048201526002602482015261189b60f11b60448201526064016109a1565b6000828152600a602052604090208054610bc89190610b35906154b7565b80601f0160208091040260200160405190810160405280929190818152602001828054610b61906154b7565b8015610bae5780601f10610b8357610100808354040283529160200191610bae565b820191906000526020600020905b815481529060010190602001808311610b9157829003601f168201915b505050505060405180602001604052806000815250612a28565b15610c0657610bd682612a81565b610bdf83612b15565b604051602001610bf0929190614c41565b6040516020818303038152906040529050919050565b6000828152600a60209081526040918290209151610bf0929101614ce7565b919050565b6006546001600160a01b03163314610c545760405162461bcd60e51b81526004016109a1906151b5565b610a1381612866565b6000818152600a60205260408120601481015460ff16610c8b57600083815260056020526040902054610c91565b600e8101545b9392505050565b6000610cc682600001516040518060400160405280600681526020016545524337323160d01b815250612a28565b15610d525760208201516040516370a0823160e01b81526001600160a01b0385811660048301528216906370a08231906024015b60206040518083038186803b158015610d1257600080fd5b505afa158015610d26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4a919061496d565b9150506109cf565b610d7f8260000151604051806040016040528060078152602001664552433131353560c81b815250612a28565b156109cf5760208201516060830151604051627eeac760e11b81526001600160a01b03868116600483015260248201929092529082169062fdd58e90604401610cfa565b6001600160a01b038516331480610ddf5750610ddf853361088b565b610e465760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016109a1565b610e538585858585612c2e565b5050505050565b600082815260208190526040902060010154610e7681336129c4565b610e808383612def565b505050565b6001600160a01b0381163314610ef55760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016109a1565b610eff8282612e73565b5050565b6000610f0f81336129c4565b506000928352600a6020526040909220600f81019190915560100155565b6000828152600a60205260408120600481015490919015610f915760005b8260040154811015610f8f5760008181526003840160205260409020546001600160a01b0316331415610f7d57600191505b80610f878161553d565b915050610f4b565b505b80610fc25760405162461bcd60e51b81526020600482015260016024820152603160f81b60448201526064016109a1565b610e53858585612ed8565b6000828152600a602052604081206012015462010000900460ff16610ff457506001611080565b60006110003384612ee3565b90506000816040516020016110159190614ef7565b60405160208183030381529060405280519060200120905061107b87878080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508a8152600a60205260409020601301549250859150612f1f9050565b925050505b949350505050565b6006546001600160a01b031633146110b25760405162461bcd60e51b81526004016109a1906151b5565b6110ba612fdc565b565b6000818152600a6020526040812060045460ff16156110de5750600092915050565b6008810154421180156110f45750600981015442105b15611106576007015460ff1692915050565b50600092915050565b606081518351146111745760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016109a1565b600083516001600160401b0381111561119d57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156111c6578160200160208202803683370190505b50905060005b84518110156112685761122d8582815181106111f857634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061122057634e487b7160e01b600052603260045260246000fd5b6020026020010151610939565b82828151811061124d57634e487b7160e01b600052603260045260246000fd5b60209081029190910101526112618161553d565b90506111cc565b509392505050565b600a6020526000908152604090208054819061128b906154b7565b80601f01602080910402602001604051908101604052809291908181526020018280546112b7906154b7565b80156113045780601f106112d957610100808354040283529160200191611304565b820191906000526020600020905b8154815290600101906020018083116112e757829003601f168201915b505050505090806001018054611319906154b7565b80601f0160208091040260200160405190810160405280929190818152602001828054611345906154b7565b80156113925780601f1061136757610100808354040283529160200191611392565b820191906000526020600020905b81548152906001019060200180831161137557829003601f168201915b505050600484015460068501546040805161016081018252600788015460ff90811615158252600889015460208084019190915260098a015483850152600a8a0154606080850191909152600b8b0154608080860191909152600c8c015460a0860152600d8c015460c0860152600e8c015460e0860152600f8c01546101008087019190915260108d015461012087015260118d0154851615156101408701528651918201875260128d015480861615158352908104851615159382019390935262010000909204831615159482019490945260138a015493810193909352601490980154969793969295509350911687565b6006546001600160a01b031633146114af5760405162461bcd60e51b81526004016109a1906151b5565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610e80573d6000803e3d6000fd5b60408051602081019091526000808252606091905b6000818152600a6020526040902080546115189190610b35906154b7565b61156957611525816110bc565b15611557578161153482612b15565b604051602001611545929190614c70565b60405160208183030381529060405291505b806115618161553d565b9150506114fa565b50919050565b600260095414156115c25760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109a1565b60026009556000828152600a60205260409020601181015460ff1661160e5760405162461bcd60e51b8152602060048201526002602482015261032360f41b60448201526064016109a1565b6116166140a7565b6040805180820190915260078152664552433131353560c81b6020808301919091529082523090820152600f820154606082015260006116563383610c98565b601084015490915081116116915760405162461bcd60e51b8152602060048201526002602482015261323160f01b60448201526064016109a1565b60108301546000906116a490869061306f565b60408051600180825281830190925291925060609182916020808301908036833701905050915087826000815181106116ed57634e487b7160e01b600052603260045260246000fd5b602090810291909101015260408051600180825281830190925290816020016020820280368337019050509050828160008151811061173c57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506117633383836040518060200160405280600081525061307b565b61177533876007016008015489612ed8565b336001600160a01b03167f9c2280f9efd212e6f0f70647ab312cb5ad5c98f19b5f0b26ce6022daace0539883836040516117b0929190614ec9565b60405180910390a250506001600955505050505050565b6001600160a01b0383163314806117e357506117e3833361088b565b6117ff5760405162461bcd60e51b81526004016109a19061509a565b610e8083838361308d565b6002600954141561185d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109a1565b60026009556000805b86811015611c3c5761189d88888381811061189157634e487b7160e01b600052603260045260246000fd5b905060200201356110bc565b6118cd5760405162461bcd60e51b81526020600482015260016024820152603560f81b60448201526064016109a1565b8585828181106118ed57634e487b7160e01b600052603260045260246000fd5b905060200201356119728b8b8481811061191757634e487b7160e01b600052603260045260246000fd5b90506020020135600a60008c8c8781811061194257634e487b7160e01b600052603260045260246000fd5b60209081029290920135835250818101929092526040908101600090812033825260020190925290205490613098565b11156119a45760405162461bcd60e51b81526020600482015260016024820152600760fb1b60448201526064016109a1565b600a60008989848181106119c857634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002060070160050154611a078b8b8481811061191757634e487b7160e01b600052603260045260246000fd5b1115611a395760405162461bcd60e51b81526020600482015260016024820152603960f81b60448201526064016109a1565b600a6000898984818110611a5d57634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020600701600601548a8a83818110611a9957634e487b7160e01b600052603260045260246000fd5b905060200201351115611ad35760405162461bcd60e51b8152602060048201526002602482015261031360f41b60448201526064016109a1565b600a6000898984818110611af757634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020600701600401548a8a83818110611b3357634e487b7160e01b600052603260045260246000fd5b90506020020135611b698a8a85818110611b5d57634e487b7160e01b600052603260045260246000fd5b90506020020135610c5d565b611b73919061529c565b1115611ba65760405162461bcd60e51b8152602060048201526002602482015261313160f01b60448201526064016109a1565b611c28611c21600a60008b8b86818110611bd057634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020600701600301548c8c85818110611c0c57634e487b7160e01b600052603260045260246000fd5b905060200201356130a490919063ffffffff16565b8390613098565b915080611c348161553d565b915050611866565b5060045460ff16158015611c505750803410155b611c805760405162461bcd60e51b81526020600482015260016024820152603360f81b60448201526064016109a1565b60005b86811015611f77576000611d3f338a8a85818110611cb157634e487b7160e01b600052603260045260246000fd5b905060200201358d8d86818110611cd857634e487b7160e01b600052603260045260246000fd5b905060200201358a8a87818110611cff57634e487b7160e01b600052603260045260246000fd5b90506020020135898988818110611d2657634e487b7160e01b600052603260045260246000fd5b9050602002810190611d389190615232565b60016123c6565b9050600081118015611d7757508a8a83818110611d6c57634e487b7160e01b600052603260045260246000fd5b905060200201358110155b611da75760405162461bcd60e51b81526020600482015260016024820152600d60fa1b60448201526064016109a1565b604080516001808252818301909252606091829190602080830190803683370190505091508a8a85818110611dec57634e487b7160e01b600052603260045260246000fd5b9050602002013582600081518110611e1457634e487b7160e01b600052603260045260246000fd5b6020908102919091010152604080516001808252818301909252908160200160208202803683370190505090508c8c85818110611e6157634e487b7160e01b600052603260045260246000fd5b9050602002013581600081518110611e8957634e487b7160e01b600052603260045260246000fd5b602002602001018181525050611ee38d8d86818110611eb857634e487b7160e01b600052603260045260246000fd5b90506020020135600a60008e8e8981811061194257634e487b7160e01b600052603260045260246000fd5b600a60008d8d88818110611f0757634e487b7160e01b600052603260045260246000fd5b9050602002013581526020019081526020016000206002016000336001600160a01b03166001600160a01b0316815260200190815260200160002081905550611f613383836040518060200160405280600081525061307b565b5050508080611f6f9061553d565b915050611c83565b50336001600160a01b03167fb19a0e54a0d12c649f962287d12e0573df3d188f5fcad44083dd0a11e759bcc588888c8c604051611fb79493929190614e8f565b60405180910390a25050600160095550505050505050565b6006546001600160a01b03163314611ff95760405162461bcd60e51b81526004016109a1906151b5565b6110ba60006130b0565b600061200f81336129c4565b506000918252600a60209081526040808420928452600590920190529020600401805460ff19169055565b6006546001600160a01b031633146120645760405162461bcd60e51b81526004016109a1906151b5565b6110ba613102565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b606060088054610a55906154b7565b336001600160a01b038316141561210f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016109a1565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600061218781336129c4565b6000600a60008f815260200190815260200160002090508a81600701600101819055508981600701600201819055508881600701600301819055508781600701600401819055508681600701600601819055508581600701600501819055508c8160000190805190602001906121fe9291906140e1565b508b5161221490600183019060208f01906140e1565b5060005b835181101561228d5783818151811061224157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600083815260038501909252604090912080546001600160a01b0319166001600160a01b03909216919091179055806122858161553d565b915050612218565b509151600483015550601201805461ffff191692151561ff0019169290921761010091151591909102179055505050505050505050565b600880546122d1906154b7565b80601f01602080910402602001604051908101604052809291908181526020018280546122fd906154b7565b801561234a5780601f1061231f5761010080835404028352916020019161234a565b820191906000526020600020905b81548152906001019060200180831161232d57829003601f168201915b505050505081565b600b80546122d1906154b7565b60008281526020819052604090206001015461237b81336129c4565b610e808383612e73565b600061239181336129c4565b506000928352600a602052604090922060138101919091556012018054911515620100000262ff000019909216919091179055565b6000868152600a60205260408120600c810154601282015460ff16156123ea575060005b6006820154600090156125b15760008060005b85600601548110156125a957600081815260058701602052604090206004015460ff1615612597576124318e8e838b61317d565b6012870154909250610100900460ff16156124865760006124548f8f848c61317d565b116124865760405162461bcd60e51b8152602060048201526002602482015261189960f11b60448201526064016109a1565b601286015460ff16156125935761249b6140a7565b6000828152600588016020526040902080546124b6906154b7565b80601f01602080910402602001604051908101604052809291908181526020018280546124e2906154b7565b801561252f5780601f106125045761010080835404028352916020019161252f565b820191906000526020600020905b81548152906001019060200180831161251257829003601f168201915b505050918352505060008281526005880160208181526040832060018101546001600160a01b03168286015292859052526003015460608201526125738f82610c98565b935061257f848761529c565b955061258b848661529c565b945050612597565b8193505b806125a18161553d565b9150506123fd565b5050506125b8565b50600d8201545b8461265957600081116125f25760405162461bcd60e51b8152602060048201526002602482015261313360f01b60448201526064016109a1565b601283015460ff1615612659576001600160a01b038b1660009081526002840160205260409020548290612626908b613098565b11156126595760405162461bcd60e51b81526020600482015260026024820152610c4d60f21b60448201526064016109a1565b601283015462010000900460ff16156126a95761267887878c8b610fcd565b6126a95760405162461bcd60e51b8152602060048201526002602482015261313560f01b60448201526064016109a1565b84156126bc578881106126bc57886126be565b805b93505050505b979650505050505050565b60006126db81336129c4565b6127578684848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808c0282810182019093528b82529093508b92508a91829185019084908082843760009201829052506040805160208101909152908152925061307b915050565b505050505050565b600061276b81336129c4565b6000868152600a602090815260408083206006810154845260050182529091208651909161279d9183918901906140e1565b5060038101849055600481018054600160ff19909116811790915580820180546001600160a01b0319166001600160a01b038816179055600282018490556000888152600a60205260409020600601546127f69161529c565b6000978852600a602052604090972060060196909655505050505050565b600780546122d1906154b7565b6001600160a01b03851633148061283d575061283d853361088b565b6128595760405162461bcd60e51b81526004016109a19061509a565b610e5385858585856132f1565b6006546001600160a01b031633146128905760405162461bcd60e51b81526004016109a1906151b5565b6001600160a01b0381166128f55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a1565b610a13816130b0565b6001600160a01b03831633148061291a575061291a833361088b565b6129365760405162461bcd60e51b81526004016109a19061509a565b610e80838383612ed8565b600061294d81336129c4565b506000918252600a6020526040909120601101805460ff1916911515919091179055565b60006001600160e01b03198216636cdb3d1360e11b14806129a257506001600160e01b031982166303a24d0760e21b145b806109cf57506109cf82613421565b8051610eff9060039060208401906140e1565b6129ce828261206c565b610eff576129e6816001600160a01b03166014613456565b6129f1836020613456565b604051602001612a02929190614d82565b60408051601f198184030181529082905262461bcd60e51b82526109a191600401614ef7565b600081604051602001612a3b9190614c25565b6040516020818303038152906040528051906020012083604051602001612a629190614c25565b6040516020818303038152906040528051906020012014905092915050565b606060038054612a90906154b7565b80601f0160208091040260200160405190810160405280929190818152602001828054612abc906154b7565b8015612b095780601f10612ade57610100808354040283529160200191612b09565b820191906000526020600020905b815481529060010190602001808311612aec57829003601f168201915b50505050509050919050565b606081612b395750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b635780612b4d8161553d565b9150612b5c9050600a836152d9565b9150612b3d565b6000816001600160401b03811115612b8b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612bb5576020820181803683370190505b5090505b841561108057612bca60018361543a565b9150612bd7600a86615558565b612be290603061529c565b60f81b818381518110612c0557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612c27600a866152d9565b9450612bb9565b8151835114612c4f5760405162461bcd60e51b81526004016109a1906151ea565b6001600160a01b038416612c755760405162461bcd60e51b81526004016109a1906150e3565b33612c84818787878787613637565b60005b8451811015612d89576000858281518110612cb257634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110612cde57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526001835260408082206001600160a01b038e168352909352919091205490915081811015612d2f5760405162461bcd60e51b81526004016109a19061516b565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612d6e90849061529c565b9250508190555050505080612d829061553d565b9050612c87565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612dd9929190614ec9565b60405180910390a4612757818787878787613645565b612df9828261206c565b610eff576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055612e2f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b612e7d828261206c565b15610eff576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610e808383836137b0565b6060612eee836137e3565b612ef783612b15565b604051602001612f08929190614cab565b604051602081830303815290604052905092915050565b600081815b8551811015612fd1576000868281518110612f4f57634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311612f91576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612fbe565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612fc98161553d565b915050612f24565b509092149392505050565b60045460ff166130255760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016109a1565b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000610c9182846152d9565b61308784848484613946565b50505050565b610e808383836139e5565b6000610c91828461529c565b6000610c9182846153fa565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60045460ff16156131485760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016109a1565b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586130523390565b6000838152600a60205260408120819081906131976140a7565b6000878152600583016020526040902080546131b2906154b7565b80601f01602080910402602001604051908101604052809291908181526020018280546131de906154b7565b801561322b5780601f106132005761010080835404028352916020019161322b565b820191906000526020600020905b81548152906001019060200180831161320e57829003601f168201915b505050918352505060008781526005830160208181526040832060018101546001600160a01b031682860152928a90525260030154606082015261326f8982610c98565b600088815260058401602052604090206002015460148401549194508410159060ff161580156132a35750601283015460ff165b156132b0578394506132be565b80156132be57600d83015494505b841580156132d657506012830154610100900460ff16155b156132e357600d83015494505b509298975050505050505050565b6001600160a01b0384166133175760405162461bcd60e51b81526004016109a1906150e3565b3361333681878761332788613a83565b61333088613a83565b87613637565b60008481526001602090815260408083206001600160a01b038a168452909152902054838110156133795760405162461bcd60e51b81526004016109a19061516b565b60008581526001602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906133b890849061529c565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613418828888888888613adc565b50505050505050565b60006001600160e01b03198216637965db0b60e01b14806109cf57506301ffc9a760e01b6001600160e01b03198316146109cf565b606060006134658360026153fa565b61347090600261529c565b6001600160401b0381111561349557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156134bf576020820181803683370190505b509050600360fc1b816000815181106134e857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061352557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006135498460026153fa565b61355490600161529c565b90505b60018111156135e8576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061359657634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106135ba57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936135e1816154a0565b9050613557565b508315610c915760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109a1565b612757868686868686613ba6565b6001600160a01b0384163b156127575760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906136899089908990889088908890600401614df7565b602060405180830381600087803b1580156136a357600080fd5b505af19250505080156136d3575060408051601f3d908101601f191682019092526136d09181019061491f565b60015b613780576136df6155ae565b806308c379a0141561371957506136f46155c6565b806136ff575061371b565b8060405162461bcd60e51b81526004016109a19190614ef7565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016109a1565b6001600160e01b0319811663bc197c8160e01b146134185760405162461bcd60e51b81526004016109a19061500e565b6137bb838383613c0e565b600082815260056020526040812080548392906137d990849061543a565b9091555050505050565b60408051602880825260608281019093526000919060208201818036833701905050905060005b601481101561393f57600061382082601361543a565b61382b9060086153fa565b613836906002615352565b613849906001600160a01b0387166152d9565b60f81b9050600060108260f81c61386091906152ed565b60f81b905060008160f81c60106138779190615419565b8360f81c6138859190615451565b60f81b905061389382613d13565b8561389f8660026153fa565b815181106138bd57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506138dd81613d13565b856138e98660026153fa565b6138f490600161529c565b8151811061391257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535050505080806139379061553d565b91505061380a565b5092915050565b61395284848484613d49565b60005b8351811015610e535782818151811061397e57634e487b7160e01b600052603260045260246000fd5b6020026020010151600560008684815181106139aa57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546139cf919061529c565b909155506139de90508161553d565b9050613955565b6139f0838383613efa565b60005b825181101561308757818181518110613a1c57634e487b7160e01b600052603260045260246000fd5b602002602001015160056000858481518110613a4857634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254613a6d919061543a565b90915550613a7c90508161553d565b90506139f3565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110613acb57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156127575760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190613b209089908990889088908890600401614e55565b602060405180830381600087803b158015613b3a57600080fd5b505af1925050508015613b6a575060408051601f3d908101601f19168201909252613b679181019061491f565b60015b613b76576136df6155ae565b6001600160e01b0319811663f23a6e6160e01b146134185760405162461bcd60e51b81526004016109a19061500e565b60045460ff16156127575760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b60648201526084016109a1565b6001600160a01b038316613c345760405162461bcd60e51b81526004016109a190615128565b33613c6381856000613c4587613a83565b613c4e87613a83565b60405180602001604052806000815250613637565b60008381526001602090815260408083206001600160a01b038816845290915290205482811015613ca65760405162461bcd60e51b81526004016109a190615056565b60008481526001602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6000600a60f883901c1015613d3a57613d3160f883901c60306152b4565b60f81b92915050565b613d3160f883901c60576152b4565b6001600160a01b038416613da95760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016109a1565b8151835114613dca5760405162461bcd60e51b81526004016109a1906151ea565b33613dda81600087878787613637565b60005b8451811015613e9257838181518110613e0657634e487b7160e01b600052603260045260246000fd5b602002602001015160016000878481518110613e3257634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254613e7a919061529c565b90915550819050613e8a8161553d565b915050613ddd565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613ee3929190614ec9565b60405180910390a4610e5381600087878787613645565b6001600160a01b038316613f205760405162461bcd60e51b81526004016109a190615128565b8051825114613f415760405162461bcd60e51b81526004016109a1906151ea565b6000339050613f6481856000868660405180602001604052806000815250613637565b60005b8351811015614048576000848281518110613f9257634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110613fbe57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526001835260408082206001600160a01b038c16835290935291909120549091508181101561400f5760405162461bcd60e51b81526004016109a190615056565b60009283526001602090815260408085206001600160a01b038b16865290915290922091039055806140408161553d565b915050613f67565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051614099929190614ec9565b60405180910390a450505050565b6040518060a001604052806060815260200160006001600160a01b0316815260200160008152602001600081526020016000151581525090565b8280546140ed906154b7565b90600052602060002090601f01602090048101928261410f5760008555614155565b82601f1061412857805160ff1916838001178555614155565b82800160010185558215614155579182015b8281111561415557825182559160200191906001019061413a565b50614161929150614165565b5090565b5b808211156141615760008155600101614166565b600082601f83011261418a578081fd5b8135602061419782615279565b6040516141a48282615511565b8381528281019150858301600585901b870184018810156141c3578586fd5b855b858110156141ea5781356141d88161564f565b845292840192908401906001016141c5565b5090979650505050505050565b60008083601f840112614208578182fd5b5081356001600160401b0381111561421e578182fd5b6020830191508360208260051b850101111561423957600080fd5b9250929050565b600082601f830112614250578081fd5b8135602061425d82615279565b60405161426a8282615511565b8381528281019150858301600585901b87018401881015614289578586fd5b855b858110156141ea5781358452928401929084019060010161428b565b80358015158114610c2557600080fd5b600082601f8301126142c7578081fd5b81356001600160401b038111156142e0576142e0615598565b6040516142f7601f8301601f191660200182615511565b81815284602083860101111561430b578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215614336578081fd5b8135610c918161564f565b60008060408385031215614353578081fd5b823561435e8161564f565b946020939093013593505050565b6000806040838503121561437e578182fd5b82356143898161564f565b915060208301356143998161564f565b809150509250929050565b600080600080600060a086880312156143bb578081fd5b85356143c68161564f565b945060208601356143d68161564f565b935060408601356001600160401b03808211156143f1578283fd5b6143fd89838a01614240565b94506060880135915080821115614412578283fd5b61441e89838a01614240565b93506080880135915080821115614433578283fd5b50614440888289016142b7565b9150509295509295909350565b600080600080600060a08688031215614464578283fd5b853561446f8161564f565b9450602086013561447f8161564f565b9350604086013592506060860135915060808601356001600160401b038111156144a7578182fd5b614440888289016142b7565b6000806000806000606086880312156144ca578283fd5b85356144d58161564f565b945060208601356001600160401b03808211156144f0578485fd5b6144fc89838a016141f7565b90965094506040880135915080821115614514578283fd5b50614521888289016141f7565b969995985093965092949392505050565b600080600060608486031215614546578081fd5b83356145518161564f565b925060208401356001600160401b038082111561456c578283fd5b61457887838801614240565b9350604086013591508082111561458d578283fd5b5061459a86828701614240565b9150509250925092565b600080604083850312156145b6578182fd5b82356145c18161564f565b91506145cf602084016142a7565b90509250929050565b600080604083850312156145ea578182fd5b82356145f58161564f565b915060208301356001600160401b0380821115614610578283fd5b9084019060a08287031215614623578283fd5b60405161462f816154ec565b82358281111561463d578485fd5b614649888286016142b7565b8252506020830135915061465c8261564f565b8160208201526040830135604082015260608301356060820152614682608084016142a7565b60808201528093505050509250929050565b60008060408385031215614353578182fd5b6000806000606084860312156146ba578081fd5b83356146c58161564f565b95602085013595506040909401359392505050565b600080600080600080600060c0888a0312156146f4578485fd5b87356146ff8161564f565b965060208801359550604088013594506060880135935060808801356001600160401b0381111561472e578283fd5b61473a8a828b016141f7565b909450925061474d905060a089016142a7565b905092959891949750929550565b6000806040838503121561476d578182fd5b82356001600160401b0380821115614783578384fd5b61478f8683870161417a565b935060208501359150808211156147a4578283fd5b506147b185828601614240565b9150509250929050565b600080600080606085870312156147d0578182fd5b84356001600160401b038111156147e5578283fd5b6147f1878288016141f7565b90989097506020870135966040013595509350505050565b6000806000806000806000806080898b031215614824578182fd5b88356001600160401b038082111561483a578384fd5b6148468c838d016141f7565b909a50985060208b013591508082111561485e578384fd5b61486a8c838d016141f7565b909850965060408b0135915080821115614882578384fd5b61488e8c838d016141f7565b909650945060608b01359150808211156148a6578384fd5b506148b38b828c016141f7565b999c989b5096995094979396929594505050565b6000602082840312156148d8578081fd5b5035919050565b600080604083850312156148f1578182fd5b8235915060208301356143998161564f565b600060208284031215614914578081fd5b8135610c9181615664565b600060208284031215614930578081fd5b8151610c9181615664565b60006020828403121561494c578081fd5b81356001600160401b03811115614961578182fd5b611080848285016142b7565b60006020828403121561497e578081fd5b5051919050565b60008060408385031215614997578182fd5b823591506145cf602084016142a7565b6000806000606084860312156149bb578081fd5b83359250602084013591506149d2604085016142a7565b90509250925092565b600080600080600060a086880312156149f2578283fd5b8535945060208601356001600160401b03811115614a0e578384fd5b614a1a888289016142b7565b9450506040860135614a2b8161564f565b94979396509394606081013594506080013592915050565b6000806000806000806000806000806000806101808d8f031215614a65578586fd5b8c359b506001600160401b0360208e01351115614a80578586fd5b614a908e60208f01358f016142b7565b9a506001600160401b0360408e01351115614aa9578586fd5b614ab98e60408f01358f016142b7565b995060608d0135985060808d0135975060a08d0135965060c08d0135955060e08d013594506101008d01359350614af36101208e016142a7565b9250614b026101408e016142a7565b91506001600160401b036101608e01351115614b1c578081fd5b614b2d8e6101608f01358f0161417a565b90509295989b509295989b509295989b565b60008060408385031215614b51578182fd5b50508035926020909101359150565b600080600060608486031215614b74578081fd5b505081359360208301359350604090920135919050565b81835260006001600160fb1b03831115614ba3578081fd5b8260051b80836020870137939093016020019283525090919050565b6000815180845260208085019450808401835b83811015614bee57815187529582019590820190600101614bd2565b509495945050505050565b60008151808452614c11816020860160208601615474565b601f01601f19169290920160200192915050565b60008251614c37818460208701615474565b9190910192915050565b60008351614c53818460208801615474565b835190830190614c67818360208801615474565b01949350505050565b60008351614c82818460208801615474565b835190830190614c96818360208801615474565b600b60fa1b9101908152600101949350505050565b60008351614cbd818460208801615474565b605f60f81b9083019081528351614cdb816001840160208801615474565b01600101949350505050565b600080835482600182811c915080831680614d0357607f831692505b6020808410821415614d2357634e487b7160e01b87526022600452602487fd5b818015614d375760018114614d4857614d74565b60ff19861689528489019650614d74565b60008a815260209020885b86811015614d6c5781548b820152908501908301614d53565b505084890196505b509498975050505050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614dba816017850160208801615474565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614deb816028840160208801615474565b01602801949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090614e2390830186614bbf565b8281036060840152614e358186614bbf565b90508281036080840152614e498185614bf9565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906126c490830184614bf9565b604081526000614ea3604083018688614b8b565b82810360208401526126c4818587614b8b565b602081526000610c916020830184614bbf565b604081526000614edc6040830185614bbf565b8281036020840152614eee8185614bbf565b95945050505050565b602081526000610c916020830184614bf9565b6000610280808352614f1e8184018b614bf9565b90508281036020840152614f32818a614bf9565b915050866040830152856060830152614f5060808301865115159052565b602085015160a0830152604085015160c0830152606085015160e08301526080850151610100818185015260a08701519150610120828186015260c08801519250610140838187015260e089015161016087015282890151610180870152818901516101a0870152808901519350505050614fd06101c084018215159052565b50835115156101e083015260208401511515610200830152604084015115156102208301526060840151610240830152821515610260830152614e49565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b6000808335601e19843603018112615248578283fd5b8301803591506001600160401b03821115615261578283fd5b6020019150600581901b360382131561423957600080fd5b60006001600160401b0382111561529257615292615598565b5060051b60200190565b600082198211156152af576152af61556c565b500190565b600060ff821660ff84168060ff038211156152d1576152d161556c565b019392505050565b6000826152e8576152e8615582565b500490565b600060ff83168061530057615300615582565b8060ff84160491505092915050565b600181815b8085111561534a5781600019048211156153305761533061556c565b8085161561533d57918102915b93841c9390800290615314565b509250929050565b6000610c918383600082615368575060016109cf565b81615375575060006109cf565b816001811461538b5760028114615395576153b1565b60019150506109cf565b60ff8411156153a6576153a661556c565b50506001821b6109cf565b5060208310610133831016604e8410600b84101617156153d4575081810a6109cf565b6153de838361530f565b80600019048211156153f2576153f261556c565b029392505050565b60008160001904831182151516156154145761541461556c565b500290565b600060ff821660ff84168160ff04811182151516156153f2576153f261556c565b60008282101561544c5761544c61556c565b500390565b600060ff821660ff84168082101561546b5761546b61556c565b90039392505050565b60005b8381101561548f578181015183820152602001615477565b838111156130875750506000910152565b6000816154af576154af61556c565b506000190190565b600181811c908216806154cb57607f821691505b6020821081141561156957634e487b7160e01b600052602260045260246000fd5b60a081018181106001600160401b038211171561550b5761550b615598565b60405250565b601f8201601f191681016001600160401b038111828210171561553657615536615598565b6040525050565b60006000198214156155515761555161556c565b5060010190565b60008261556757615567615582565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156155c357600481823e5160e01c5b90565b600060443d10156155d45790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561560357505050505090565b828501915081518181111561561b5750505050505090565b843d87010160208285010111156156355750505050505090565b61564460208286010187615511565b509095945050505050565b6001600160a01b0381168114610a1357600080fd5b6001600160e01b031981168114610a1357600080fdfea26469706673582212200d7ba2ee7e54a7bf122b45083b448efeed6d70663e219eaf42dec7808c75960a64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000f546865205469636b337420506173730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a5449434b33545041535300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000081745b7339d5067e82b93ca6bbad125f214525d3000000000000000000000000110d0c8b5a06c0367053938eedf10131ac972593000000000000000000000000cf163b6519e8388ba3b917177b93de5be01e80690000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d526f6131704a4846454c697a6e654c694e6d704c574e6161326a6e4c4d5974563764395a4578545a354e37690000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): The Tick3t Pass
Arg [1] : _symbol (string): TICK3TPASS
Arg [2] : _admins (address[]): 0x81745b7339D5067E82B93ca6BBAd125F214525d3,0x110d0C8b5A06c0367053938eeDF10131ac972593,0xcF163B6519E8388Ba3B917177B93DE5Be01e8069
Arg [3] : _contract_URI (string): ipfs://QmRoa1pJHFELizneLiNmpLWNaa2jnLMYtV7d9ZExTZ5N7i
-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [5] : 546865205469636b337420506173730000000000000000000000000000000000
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [7] : 5449434b33545041535300000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 00000000000000000000000081745b7339d5067e82b93ca6bbad125f214525d3
Arg [10] : 000000000000000000000000110d0c8b5a06c0367053938eedf10131ac972593
Arg [11] : 000000000000000000000000cf163b6519e8388ba3b917177b93de5be01e8069
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [13] : 697066733a2f2f516d526f6131704a4846454c697a6e654c694e6d704c574e61
Arg [14] : 61326a6e4c4d5974563764395a4578545a354e37690000000000000000000000
Deployed Bytecode Sourcemap
506:15769:34:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2109:228:5;;;;;;;;;;-1:-1:-1;2109:228:5;;;;;:::i;:::-;;:::i;:::-;;;27515:25:42;;;27503:2;27488:18;2109:228:5;;;;;;;;2417:175:29;;;;;;;;;;-1:-1:-1;2417:175:29;;;;;:::i;:::-;;:::i;:::-;;;27342:14:42;;27335:22;27317:41;;27305:2;27290:18;2417:175:29;27272:92:42;731:91:29;;;;;;;;;;-1:-1:-1;731:91:29;;;;;:::i;:::-;;:::i;:::-;;14750:144:34;;;;;;;;;;-1:-1:-1;14750:144:34;;;;;:::i;:::-;;:::i;832:81:29:-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;15645:390:34:-;;;;;;;;;;-1:-1:-1;15645:390:34;;;;;:::i;:::-;;:::i;2260:91:29:-;;;;;;;;;;-1:-1:-1;2260:91:29;;;;;:::i;:::-;;:::i;16049:224:34:-;;;;;;;;;;-1:-1:-1;16049:224:34;;;;;:::i;:::-;;:::i;13747:600::-;;;;;;;;;;-1:-1:-1;13747:600:34;;;;;:::i;:::-;;:::i;3917:121:0:-;;;;;;;;;;-1:-1:-1;3917:121:0;;;;;:::i;:::-;3983:7;4009:12;;;;;;;;;;:22;;;;3917:121;4137:430:5;;;;;;;;;;-1:-1:-1;4137:430:5;;;;;:::i;:::-;;:::i;4288:145:0:-;;;;;;;;;;-1:-1:-1;4288:145:0;;;;;:::i;:::-;;:::i;5305:214::-;;;;;;;;;;-1:-1:-1;5305:214:0;;;;;:::i;:::-;;:::i;4185:336:34:-;;;;;;;;;;-1:-1:-1;4185:336:34;;;;;:::i;:::-;;:::i;5965:594::-;;;;;;;;;;-1:-1:-1;5965:594:34;;;;;:::i;:::-;;:::i;14901:433::-;;;;;;;;;;-1:-1:-1;14901:433:34;;;;;:::i;:::-;;:::i;656:65:29:-;;;;;;;;;;;;;:::i;14353:391:34:-;;;;;;;;;;-1:-1:-1;14353:391:34;;;;;:::i;:::-;;:::i;2494:508:5:-;;;;;;;;;;-1:-1:-1;2494:508:5;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;808:120:10:-;;;;;;;;;;-1:-1:-1;808:120:10;;;;;:::i;:::-;865:4;692:16;;;:12;:16;;;;;;-1:-1:-1;;;808:120:10;604:39:34;;;;;;;;;;-1:-1:-1;604:39:34;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;:::i;15519:120::-;;;;;;;;;;-1:-1:-1;15519:120:34;;;;;:::i;:::-;;:::i;2382:411::-;;;;;;;;;;;;;:::i;1041:84:3:-;;;;;;;;;;-1:-1:-1;1111:7:3;;;;1041:84;;6567:1078:34;;;;;;;;;;-1:-1:-1;6567:1078:34;;;;;:::i;:::-;;:::i;629:342:8:-;;;;;;;;;;-1:-1:-1;629:342:8;;;;;:::i;:::-;;:::i;7653:1971:34:-;;;;;;:::i;:::-;;:::i;1605:92:2:-;;;;;;;;;;;;;:::i;5417:224:34:-;;;;;;;;;;-1:-1:-1;5417:224:34;;;;;:::i;:::-;;:::i;589:61:29:-;;;;;;;;;;;;;:::i;973:85:2:-;;;;;;;;;;-1:-1:-1;1045:6:2;;973:85;;-1:-1:-1;;;;;1045:6:2;;;24180:51:42;;24168:2;24153:18;973:85:2;24135:102:42;2834:137:0;;;;;;;;;;-1:-1:-1;2834:137:0;;;;;:::i;:::-;;:::i;919:85:29:-;;;;;;;;;;;;;:::i;1952:49:0:-;;;;;;;;;;-1:-1:-1;1952:49:0;1997:4;1952:49;;3070:306:5;;;;;;;;;;-1:-1:-1;3070:306:5;;;;;:::i;:::-;;:::i;2800:1376:34:-;;;;;;;;;;-1:-1:-1;2800:1376:34;;;;;:::i;:::-;;:::i;556:21:29:-;;;;;;;;;;;;;:::i;604:111:10:-;;;;;;;;;;-1:-1:-1;604:111:10;;;;;:::i;:::-;666:7;692:16;;;:12;:16;;;;;;;604:111;1908:26:34;;;;;;;;;;;;;:::i;4667:147:0:-;;;;;;;;;;-1:-1:-1;4667:147:0;;;;;:::i;:::-;;:::i;5646:307:34:-;;;;;;;;;;-1:-1:-1;5646:307:34;;;;;:::i;:::-;;:::i;9844:2749::-;;;;;;;;;;-1:-1:-1;9844:2749:34;;;;;:::i;:::-;;:::i;9640:197::-;;;;;;;;;;-1:-1:-1;9640:197:34;;;;;:::i;:::-;;:::i;4764:646::-;;;;;;;;;;-1:-1:-1;4764:646:34;;;;;:::i;:::-;;:::i;531:19:29:-;;;;;;;;;;;;;:::i;3443:166:5:-;;;;;;;;;;-1:-1:-1;3443:166:5;;;;;:::i;:::-;-1:-1:-1;;;;;3565:27:5;;;3542:4;3565:27;;;:18;:27;;;;;;;;:37;;;;;;;;;;;;;;;3443:166;3676:389;;;;;;;;;;-1:-1:-1;3676:389:5;;;;;:::i;:::-;;:::i;1846:189:2:-;;;;;;;;;;-1:-1:-1;1846:189:2;;;;;:::i;:::-;;:::i;313:310:8:-;;;;;;;;;;-1:-1:-1;313:310:8;;;;;:::i;:::-;;:::i;4527:231:34:-;;;;;;;;;;-1:-1:-1;4527:231:34;;;;;:::i;:::-;;:::i;2109:228:5:-;2195:7;-1:-1:-1;;;;;2222:21:5;;2214:77;;;;-1:-1:-1;;;2214:77:5;;32226:2:42;2214:77:5;;;32208:21:42;32265:2;32245:18;;;32238:30;32304:34;32284:18;;;32277:62;-1:-1:-1;;;32355:18:42;;;32348:41;32406:19;;2214:77:5;;;;;;;;;-1:-1:-1;2308:13:5;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;2308:22:5;;;;;;;;;;2109:228;;;;;:::o;2417:175:29:-;2526:4;2549:36;2573:11;2549:23;:36::i;731:91::-;1045:6:2;;-1:-1:-1;;;;;1045:6:2;666:10:21;1185:23:2;1177:68;;;;-1:-1:-1;;;1177:68:2;;;;;;;:::i;:::-;799:16:29::1;807:7;799;:16::i;:::-;731:91:::0;:::o;14750:144:34:-;1997:4:0;2430:30;1997:4;666:10:21;2430::0;:30::i;:::-;-1:-1:-1;14842:15:34::1;::::0;;;:6:::1;:15;::::0;;;;;:29:::1;;:45:::0;;-1:-1:-1;;14842:45:34::1;::::0;::::1;;::::0;;;::::1;::::0;;14750:144::o;832:81:29:-;869:13;901:5;894:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;832:81;:::o;15645:390:34:-;15701:13;15756:1;15734:19;15749:3;15734:14;:19::i;:::-;:23;15726:38;;;;-1:-1:-1;;;15726:38:34;;33045:2:42;15726:38:34;;;33027:21:42;33084:1;33064:18;;;33057:29;-1:-1:-1;;;33102:18:42;;;33095:32;33144:18;;15726:38:34;33017:151:42;15726:38:34;15798:11;;;;:6;:11;;;;;15777:54;;;;15798:11;15777:54;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:20;:54::i;:::-;15774:252;;;15877:14;15887:3;15877:9;:14::i;:::-;15893:21;15910:3;15893:16;:21::i;:::-;15860:55;;;;;;;;;:::i;:::-;;;;;;;;;;;;;15846:70;;15645:390;;;:::o;15774:252::-;15985:11;;;;:6;:11;;;;;;;;;15968:46;;;;15985:11;15968:46;;:::i;15774:252::-;15645:390;;;:::o;2260:91:29:-;1045:6:2;;-1:-1:-1;;;;;1045:6:2;666:10:21;1185:23:2;1177:68;;;;-1:-1:-1;;;1177:68:2;;;;;;;:::i;:::-;2320:24:29::1;2338:5;2320:17;:24::i;16049:224:34:-:0;16114:7;16156:18;;;:6;:18;;;;;16191:17;;;;;;:75;;666:7:10;692:16;;;:12;:16;;;;;;16191:75:34;;;16211:29;;;;16191:75;16184:82;16049:224;-1:-1:-1;;;16049:224:34:o;13747:600::-;13851:7;13873:56;13894:14;:24;;;13873:56;;;;;;;;;;;;;-1:-1:-1;;;13873:56:34;;;:20;:56::i;:::-;13870:471;;;13998:27;;;;14047;;-1:-1:-1;;;14047:27:34;;-1:-1:-1;;;;;24198:32:42;;;14047:27:34;;;24180:51:42;14047:19:34;;;;;24153:18:42;;14047:27:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;14040:34;;;;;13870:471;14102:57;14123:14;:24;;;14102:57;;;;;;;;;;;;;-1:-1:-1;;;14102:57:34;;;:20;:57::i;:::-;14099:242;;;14230:27;;;;14307:22;;;;14279:51;;-1:-1:-1;;;14279:51:34;;-1:-1:-1;;;;;25830:32:42;;;14279:51:34;;;25812::42;25879:18;;;25872:34;;;;14279:19:34;;;;;;25785:18:42;;14279:51:34;25767:145:42;4137:430:5;-1:-1:-1;;;;;4362:20:5;;666:10:21;4362:20:5;;:60;;-1:-1:-1;4386:36:5;4403:4;666:10:21;3443:166:5;:::i;4386:36::-;4341:157;;;;-1:-1:-1;;;4341:157:5;;36013:2:42;4341:157:5;;;35995:21:42;36052:2;36032:18;;;36025:30;36091:34;36071:18;;;36064:62;-1:-1:-1;;;36142:18:42;;;36135:48;36200:19;;4341:157:5;35985:240:42;4341:157:5;4508:52;4531:4;4537:2;4541:3;4546:7;4555:4;4508:22;:52::i;:::-;4137:430;;;;;:::o;4288:145:0:-;3983:7;4009:12;;;;;;;;;;:22;;;2430:30;2441:4;666:10:21;2430::0;:30::i;:::-;4401:25:::1;4412:4;4418:7;4401:10;:25::i;:::-;4288:145:::0;;;:::o;5305:214::-;-1:-1:-1;;;;;5400:23:0;;666:10:21;5400:23:0;5392:83;;;;-1:-1:-1;;;5392:83:0;;42565:2:42;5392:83:0;;;42547:21:42;42604:2;42584:18;;;42577:30;42643:34;42623:18;;;42616:62;-1:-1:-1;;;42694:18:42;;;42687:45;42749:19;;5392:83:0;42537:237:42;5392:83:0;5486:26;5498:4;5504:7;5486:11;:26::i;:::-;5305:214;;:::o;4185:336:34:-;1997:4:0;2430:30;1997:4;666:10:21;2430::0;:30::i;:::-;-1:-1:-1;4351:19:34::1;4373::::0;;;:6:::1;:19;::::0;;;;;4402:33;;;:50;;;;4462:34;;:52;4185:336::o;5965:594::-;6093:19;6115:18;;;:6;:18;;;;;6196:28;;;;6115:18;;6093:19;6196:32;6193:266;;6248:6;6243:206;6262:5;:28;;;6258:1;:32;6243:206;;;6318:28;;;;:25;;;:28;;;;;;-1:-1:-1;;;;;6318:28:34;6350:10;6318:42;6315:120;;;6412:4;6383:33;;6315:120;6292:3;;;;:::i;:::-;;;;6243:206;;;;6193:266;6476:26;6468:40;;;;-1:-1:-1;;;6468:40:34;;38928:2:42;6468:40:34;;;38910:21:42;38967:1;38947:18;;;38940:29;-1:-1:-1;;;38985:18:42;;;38978:31;39026:18;;6468:40:34;38900:150:42;6468:40:34;6518:34;6524:7;6533:10;6545:6;6518:5;:34::i;14901:433::-;15011:4;15031:15;;;:6;:15;;;;;:31;;:45;;;;;;15027:86;;-1:-1:-1;15098:4:34;15091:11;;15027:86;15122:18;15143:34;15158:10;15170:6;15143:14;:34::i;:::-;15122:55;;15187:12;15223:4;15212:16;;;;;;;;:::i;:::-;;;;;;;;;;;;;15202:27;;;;;;15187:42;;15246:81;15265:11;;15246:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15278:15:34;;;:6;:15;;;;;:42;;;;-1:-1:-1;15322:4:34;;-1:-1:-1;15246:18:34;;-1:-1:-1;15246:81:34:i;:::-;15239:88;;;;14901:433;;;;;;;:::o;656:65:29:-;1045:6:2;;-1:-1:-1;;;;;1045:6:2;666:10:21;1185:23:2;1177:68;;;;-1:-1:-1;;;1177:68:2;;;;;;;:::i;:::-;704:10:29::1;:8;:10::i;:::-;656:65::o:0;14353:391:34:-;14414:4;14452:18;;;:6;:18;;;;;1111:7:3;;;;14480:49:34;;;-1:-1:-1;14513:5:34;;14353:391;-1:-1:-1;;14353:391:34:o;14480:49::-;14559:31;;;;14541:15;:49;:103;;;;-1:-1:-1;14612:32:34;;;;14594:15;:50;14541:103;14538:169;;;14666:19;;:30;;;;14353:391;-1:-1:-1;;14353:391:34:o;14538:169::-;-1:-1:-1;14723:5:34;;14353:391;-1:-1:-1;;14353:391:34:o;2494:508:5:-;2645:16;2704:3;:10;2685:8;:15;:29;2677:83;;;;-1:-1:-1;;;2677:83:5;;40325:2:42;2677:83:5;;;40307:21:42;40364:2;40344:18;;;40337:30;40403:34;40383:18;;;40376:62;-1:-1:-1;;;40454:18:42;;;40447:39;40503:19;;2677:83:5;40297:231:42;2677:83:5;2771:30;2818:8;:15;-1:-1:-1;;;;;2804:30:5;;;;;-1:-1:-1;;;2804:30:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2804:30:5;;2771:63;;2850:9;2845:120;2869:8;:15;2865:1;:19;2845:120;;;2924:30;2934:8;2943:1;2934:11;;;;;;-1:-1:-1;;;2934:11:5;;;;;;;;;;;;;;;2947:3;2951:1;2947:6;;;;;;-1:-1:-1;;;2947:6:5;;;;;;;;;;;;;;;2924:9;:30::i;:::-;2905:13;2919:1;2905:16;;;;;;-1:-1:-1;;;2905:16:5;;;;;;;;;;;;;;;;;;:49;2886:3;;;:::i;:::-;;;2845:120;;;-1:-1:-1;2982:13:5;2494:508;-1:-1:-1;;;2494:508:5:o;604:39:34:-;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;604:39:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;604:39:34;-1:-1:-1;604:39:34;;;:::o;15519:120::-;1045:6:2;;-1:-1:-1;;;;;1045:6:2;666:10:21;1185:23:2;1177:68;;;;-1:-1:-1;;;1177:68:2;;;;;;;:::i;:::-;15611:21:34::1;::::0;-1:-1:-1;;;;;15611:12:34;::::1;::::0;:21;::::1;;;::::0;15624:7;;15611:21:::1;::::0;;;15624:7;15611:12;:21;::::1;;;;;;;;;;;;;::::0;::::1;;;;2382:411:::0;2456:23;;;;;;;;;:18;:23;;;2432:13;;2456:23;2520:246;2548:17;;;;:6;:17;;;;;2527:60;;;;2548:17;2527:60;;;:::i;:::-;2520:246;;2605:21;2616:9;2605:10;:21::i;:::-;2602:129;;;2676:4;2682:27;2699:9;2682:16;:27::i;:::-;2659:56;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2645:71;;2602:129;2744:11;;;;:::i;:::-;;;;2520:246;;;-1:-1:-1;2782:4:34;2382:411;-1:-1:-1;2382:411:34:o;6567:1078::-;1680:1:4;2259:7;;:19;;2251:63;;;;-1:-1:-1;;;2251:63:4;;41875:2:42;2251:63:4;;;41857:21:42;41914:2;41894:18;;;41887:30;41953:33;41933:18;;;41926:61;42004:18;;2251:63:4;41847:181:42;2251:63:4;1680:1;2389:7;:18;6673:19:34::1;6695:18:::0;;;:6:::1;:18;::::0;;;;6731:30;;;;::::1;;6723:45;;;::::0;-1:-1:-1;;;6723:45:34;;36432:2:42;6723:45:34::1;::::0;::::1;36414:21:42::0;36471:1;36451:18;;;36444:29;-1:-1:-1;;;36489:18:42;;;36482:32;36531:18;;6723:45:34::1;36404:151:42::0;6723:45:34::1;6778:31;;:::i;:::-;6819:36;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;6819:36:34::1;::::0;;::::1;::::0;;;;;;;6903:4:::1;6865:27:::0;;::::1;:43:::0;6943:33;;;;6918:22:::1;::::0;::::1;:58:::0;-1:-1:-1;7004:51:34::1;7028:10;6819:14:::0;7004:23:::1;:51::i;:::-;7084:34:::0;;;;6986:69;;-1:-1:-1;7074:44:34;::::1;7066:59;;;::::0;-1:-1:-1;;;7066:59:34;;42235:2:42;7066:59:34::1;::::0;::::1;42217:21:42::0;42274:1;42254:18;;;42247:29;-1:-1:-1;;;42292:18:42;;;42285:32;42334:18;;7066:59:34::1;42207:151:42::0;7066:59:34::1;7167:34:::0;;;;7135:18:::1;::::0;7156:46:::1;::::0;:6;;:10:::1;:46::i;:::-;7303:16;::::0;;7317:1:::1;7303:16:::0;;;;;::::1;::::0;;;7135:67;;-1:-1:-1;7212:26:34::1;::::0;;;7303:16:::1;::::0;;::::1;::::0;;::::1;::::0;::::1;;::::0;-1:-1:-1;7303:16:34::1;7291:28;;7345:10;7329:9;7339:1;7329:12;;;;;;-1:-1:-1::0;;;7329:12:34::1;;;;;;;;;;::::0;;::::1;::::0;;;;;:26;7384:16:::1;::::0;;7398:1:::1;7384:16:::0;;;;;::::1;::::0;;;;::::1;;;;;;;;;;;::::0;-1:-1:-1;7384:16:34::1;7365:35;;7432:10;7410:16;7427:1;7410:19;;;;;;-1:-1:-1::0;;;7410:19:34::1;;;;;;;;;;;;;;:32;;;::::0;::::1;7452:55;7463:10;7475:9;7486:16;7452:55;;;;;;;;;;;::::0;:10:::1;:55::i;:::-;7517:60;7523:10;7535:5;:19;;:33;;;7570:6;7517:5;:60::i;:::-;7609:10;-1:-1:-1::0;;;;;7592:46:34::1;;7598:9;7621:16;7592:46;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1::0;;1637:1:4;2562:7;:22;-1:-1:-1;;;;;;6567:1078:34:o;629:342:8:-;-1:-1:-1;;;;;788:23:8;;666:10:21;788:23:8;;:66;;-1:-1:-1;815:39:8;832:7;666:10:21;3443:166:5;:::i;815:39:8:-;767:154;;;;-1:-1:-1;;;767:154:8;;;;;;;:::i;:::-;932:32;943:7;952:3;957:6;932:10;:32::i;7653:1971:34:-;1680:1:4;2259:7;;:19;;2251:63;;;;-1:-1:-1;;;2251:63:4;;41875:2:42;2251:63:4;;;41857:21:42;41914:2;41894:18;;;41887:30;41953:33;41933:18;;;41926:61;42004:18;;2251:63:4;41847:181:42;2251:63:4;1680:1;2389:7;:18;7886::34::1;::::0;7918:724:::1;7933:23:::0;;::::1;7918:724;;;7985:28;7996:13;;8010:1;7996:16;;;;;-1:-1:-1::0;;;7996:16:34::1;;;;;;;;;;;;;;;7985:10;:28::i;:::-;7977:42;;;::::0;-1:-1:-1;;;7977:42:34;;39257:2:42;7977:42:34::1;::::0;::::1;39239:21:42::0;39296:1;39276:18;;;39269:29;-1:-1:-1;;;39314:18:42;;;39307:31;39355:18;;7977:42:34::1;39229:150:42::0;7977:42:34::1;8115:14;;8130:1;8115:17;;;;;-1:-1:-1::0;;;8115:17:34::1;;;;;;;;;;;;;;;8041:70;8096:11;;8108:1;8096:14;;;;;-1:-1:-1::0;;;8096:14:34::1;;;;;;;;;;;;;;;8041:6;:24;8048:13;;8062:1;8048:16;;;;;-1:-1:-1::0;;;8048:16:34::1;;;;;;;;;;::::0;;::::1;::::0;;;::::1;;8041:24:::0;;-1:-1:-1;8041:24:34;;::::1;::::0;;;;;;;;-1:-1:-1;8041:24:34;;;8080:10:::1;8041:50:::0;;:38:::1;;:50:::0;;;;;;;:54:::1;:70::i;:::-;:91;;8033:105;;;::::0;-1:-1:-1;;;8033:105:34;;40735:2:42;8033:105:34::1;::::0;::::1;40717:21:42::0;40774:1;40754:18;;;40747:29;-1:-1:-1;;;40792:18:42;;;40785:31;40833:18;;8033:105:34::1;40707:150:42::0;8033:105:34::1;8234:6;:24;8241:13;;8255:1;8241:16;;;;;-1:-1:-1::0;;;8241:16:34::1;;;;;;;;;;;;;;;8234:24;;;;;;;;;;;:38;;:51;;;8160:70;8215:11;;8227:1;8215:14;;;;;-1:-1:-1::0;;;8215:14:34::1;;;;;;;;8160:70;:125;;8152:139;;;::::0;-1:-1:-1;;;8152:139:34;;39586:2:42;8152:139:34::1;::::0;::::1;39568:21:42::0;39625:1;39605:18;;;39598:29;-1:-1:-1;;;39643:18:42;;;39636:31;39684:18;;8152:139:34::1;39558:150:42::0;8152:139:34::1;8331:6;:24;8338:13;;8352:1;8338:16;;;;;-1:-1:-1::0;;;8338:16:34::1;;;;;;;;;;;;;;;8331:24;;;;;;;;;;;:38;;:52;;;8313:11;;8325:1;8313:14;;;;;-1:-1:-1::0;;;8313:14:34::1;;;;;;;;;;;;;;;:70;;8305:85;;;::::0;-1:-1:-1;;;8305:85:34;;31566:2:42;8305:85:34::1;::::0;::::1;31548:21:42::0;31605:1;31585:18;;;31578:29;-1:-1:-1;;;31623:18:42;;;31616:32;31665:18;;8305:85:34::1;31538:151:42::0;8305:85:34::1;8465:6;:24;8472:13;;8486:1;8472:16;;;;;-1:-1:-1::0;;;8472:16:34::1;;;;;;;;;;;;;;;8465:24;;;;;;;;;;;:38;;:48;;;8447:11;;8459:1;8447:14;;;;;-1:-1:-1::0;;;8447:14:34::1;;;;;;;;;;;;;;;8412:32;8427:13;;8441:1;8427:16;;;;;-1:-1:-1::0;;;8427:16:34::1;;;;;;;;;;;;;;;8412:14;:32::i;:::-;:49;;;;:::i;:::-;:101;;8404:116;;;::::0;-1:-1:-1;;;8404:116:34;;36762:2:42;8404:116:34::1;::::0;::::1;36744:21:42::0;36801:1;36781:18;;;36774:29;-1:-1:-1;;;36819:18:42;;;36812:32;36861:18;;8404:116:34::1;36734:151:42::0;8404:116:34::1;8547:84;8562:68;8581:6;:24;8588:13;;8602:1;8588:16;;;;;-1:-1:-1::0;;;8588:16:34::1;;;;;;;;;;;;;;;8581:24;;;;;;;;;;;:38;;:48;;;8562:11;;8574:1;8562:14;;;;;-1:-1:-1::0;;;8562:14:34::1;;;;;;;;;;;;;;;:18;;:68;;;;:::i;:::-;8547:10:::0;;:14:::1;:84::i;:::-;8534:97:::0;-1:-1:-1;7958:3:34;::::1;::::0;::::1;:::i;:::-;;;;7918:724;;;-1:-1:-1::0;1111:7:3;;;;8659:9:34::1;:36;;;;;8685:10;8672:9;:23;;8659:36;8651:50;;;::::0;-1:-1:-1;;;8651:50:34;;33780:2:42;8651:50:34::1;::::0;::::1;33762:21:42::0;33819:1;33799:18;;;33792:29;-1:-1:-1;;;33837:18:42;;;33830:31;33878:18;;8651:50:34::1;33752:150:42::0;8651:50:34::1;8716:6;8711:843;8726:23:::0;;::::1;8711:843;;;8783:22;8808:108;8831:10;8842:13;;8856:1;8842:16;;;;;-1:-1:-1::0;;;8842:16:34::1;;;;;;;;;;;;;;;8860:11;;8872:1;8860:14;;;;;-1:-1:-1::0;;;8860:14:34::1;;;;;;;;;;;;;;;8875;;8890:1;8875:17;;;;;-1:-1:-1::0;;;8875:17:34::1;;;;;;;;;;;;;;;8893:13;;8907:1;8893:16;;;;;-1:-1:-1::0;;;8893:16:34::1;;;;;;;;;;;;;;;;;;;;:::i;:::-;8911:4;8808:22;:108::i;:::-;8783:133;;8956:1;8939:14;:18;:54;;;;;8979:11;;8991:1;8979:14;;;;;-1:-1:-1::0;;;8979:14:34::1;;;;;;;;;;;;;;;8961;:32;;8939:54;8931:68;;;::::0;-1:-1:-1;;;8931:68:34;;31237:2:42;8931:68:34::1;::::0;::::1;31219:21:42::0;31276:1;31256:18;;;31249:29;-1:-1:-1;;;31294:18:42;;;31287:31;31335:18;;8931:68:34::1;31209:150:42::0;8931:68:34::1;9146:16;::::0;;9160:1:::1;9146:16:::0;;;;;::::1;::::0;;;9022:26:::1;::::0;;;9146:16;::::1;::::0;;::::1;::::0;;::::1;::::0;::::1;;::::0;-1:-1:-1;9146:16:34::1;9134:28;;9192:13;;9206:1;9192:16;;;;;-1:-1:-1::0;;;9192:16:34::1;;;;;;;;;;;;;;;9176:9;9186:1;9176:12;;;;;;-1:-1:-1::0;;;9176:12:34::1;;;;;;;;;;::::0;;::::1;::::0;;;;;:32;9241:16:::1;::::0;;9255:1:::1;9241:16:::0;;;;;::::1;::::0;;;;::::1;;;;;;;;;;;::::0;-1:-1:-1;9241:16:34::1;9222:35;;9293:11;;9305:1;9293:14;;;;;-1:-1:-1::0;;;9293:14:34::1;;;;;;;;;;;;;;;9271:16;9288:1;9271:19;;;;;;-1:-1:-1::0;;;9271:19:34::1;;;;;;;;;;;;;;:36;;;::::0;::::1;9378:70;9433:11;;9445:1;9433:14;;;;;-1:-1:-1::0;;;9433:14:34::1;;;;;;;;;;;;;;;9378:6;:24;9385:13;;9399:1;9385:16;;;;;-1:-1:-1::0;;;9385:16:34::1;;;;;;;;9378:70;9325:6;:24;9332:13;;9346:1;9332:16;;;;;-1:-1:-1::0;;;9332:16:34::1;;;;;;;;;;;;;;;9325:24;;;;;;;;;;;:38;;:50;9364:10;-1:-1:-1::0;;;;;9325:50:34::1;-1:-1:-1::0;;;;;9325:50:34::1;;;;;;;;;;;;:123;;;;9462:55;9473:10;9485:9;9496:16;9462:55;;;;;;;;;;;::::0;:10:::1;:55::i;:::-;8711:843;;;8751:3;;;;;:::i;:::-;;;;8711:843;;;;9593:10;-1:-1:-1::0;;;;;9568:49:34::1;;9578:13;;9605:11;;9568:49;;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1::0;;1637:1:4;2562:7;:22;-1:-1:-1;;;;;;;7653:1971:34:o;1605:92:2:-;1045:6;;-1:-1:-1;;;;;1045:6:2;666:10:21;1185:23:2;1177:68;;;;-1:-1:-1;;;1177:68:2;;;;;;;:::i;:::-;1669:21:::1;1687:1;1669:9;:21::i;5417:224:34:-:0;1997:4:0;2430:30;1997:4;666:10:21;2430::0;:30::i;:::-;-1:-1:-1;5629:5:34::1;5561:19:::0;;;:6:::1;:19;::::0;;;;;;;:58;;;:33:::1;::::0;;::::1;:58:::0;;;;:65:::1;;:73:::0;;-1:-1:-1;;5561:73:34::1;::::0;;5417:224::o;589:61:29:-;1045:6:2;;-1:-1:-1;;;;;1045:6:2;666:10:21;1185:23:2;1177:68;;;;-1:-1:-1;;;1177:68:2;;;;;;;:::i;:::-;635:8:29::1;:6;:8::i;2834:137:0:-:0;2912:4;2935:12;;;;;;;;;;;-1:-1:-1;;;;;2935:29:0;;;;;;;;;;;;;;;2834:137::o;919:85:29:-;958:13;990:7;983:14;;;;;:::i;3070:306:5:-;666:10:21;-1:-1:-1;;;;;3172:24:5;;;;3164:78;;;;-1:-1:-1;;;3164:78:5;;39915:2:42;3164:78:5;;;39897:21:42;39954:2;39934:18;;;39927:30;39993:34;39973:18;;;39966:62;-1:-1:-1;;;40044:18:42;;;40037:39;40093:19;;3164:78:5;39887:231:42;3164:78:5;666:10:21;3253:32:5;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;3253:42:5;;;;;;;;;;;;:53;;-1:-1:-1;;3253:53:5;;;;;;;;;;3321:48;;27317:41:42;;;3253:42:5;;666:10:21;3321:48:5;;27290:18:42;3321:48:5;;;;;;;3070:306;;:::o;2800:1376:34:-;1997:4:0;2430:30;1997:4;666:10:21;2430::0;:30::i;:::-;3296:19:34::1;3318:6;:19;3325:11;3318:19;;;;;;;;;;;3296:41;;3381:12;3347:5;:19;;:31;;:46;;;;3438:13;3403:5;:19;;:32;;:48;;;;3493:10;3461:5;:19;;:29;;:42;;;;3545:10;3513:5;:19;;:29;;:42;;;;3601:14;3565:5;:19;;:33;;:50;;;;3660:13;3625:5;:19;;:32;;:48;;;;3708:17;3683:5;:22;;:42;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;3735:34:34;;::::1;::::0;:18:::1;::::0;::::1;::::0;:34:::1;::::0;::::1;::::0;::::1;:::i;:::-;;3793:6;3788:130;3805:20;:27;3803:1;:29;3788:130;;;3884:20;3905:1;3884:23;;;;;;-1:-1:-1::0;;;3884:23:34::1;;;;;;;;;;::::0;;::::1;::::0;;;;;;;3853:28:::1;::::0;;;:25:::1;::::0;::::1;:28:::0;;;;;;;:54;;-1:-1:-1;;;;;;3853:54:34::1;-1:-1:-1::0;;;;;3853:54:34;;::::1;::::0;;;::::1;::::0;;:28;3834:3:::1;3853:28:::0;3834:3:::1;:::i;:::-;;;;3788:130;;;-1:-1:-1::0;3958:27:34;;3927:28:::1;::::0;::::1;:58:::0;-1:-1:-1;3995:21:34::1;;:98:::0;;-1:-1:-1;;4103:66:34;3995:98;::::1;;-1:-1:-1::0;;4103:66:34;;;;;3995:98:::1;4103:66:::0;::::1;;::::0;;;::::1;;::::0;;-1:-1:-1;;;;;;;;;2800:1376:34:o;556:21:29:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1908:26:34:-;;;;;;;:::i;4667:147:0:-;3983:7;4009:12;;;;;;;;;;:22;;;2430:30;2441:4;666:10:21;2430::0;:30::i;:::-;4781:26:::1;4793:4;4799:7;4781:11;:26::i;5646:307:34:-:0;1997:4:0;2430:30;1997:4;666:10:21;2430::0;:30::i;:::-;-1:-1:-1;5817:19:34::1;::::0;;;:6:::1;:19;::::0;;;;;:46;;;:60;;;;:35:::1;;5887:59:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;5887:59:34;;::::1;::::0;;;::::1;::::0;;5646:307::o;9844:2749::-;10067:7;10117:18;;;:6;:18;;;;;10169:32;;;;10214:21;;;:58;;;10211:103;;;-1:-1:-1;10302:1:34;10211:103;10371:24;;;;10324:30;;10371:28;10368:1466;;10414:15;10447:18;10488:6;10483:1245;10502:5;:24;;;10498:1;:28;10483:1245;;;10554:22;;;;:19;;;:22;;;;;:29;;;;;10551:1147;;;10636:60;10652:6;10660:10;10672:1;10675:20;10636:15;:60::i;:::-;10742:21;;;:42;10623:73;;-1:-1:-1;10742:42:34;;;;;10739:175;;;10883:1;10820:60;10836:6;10844:10;10856:1;10859:20;10820:15;:60::i;:::-;:64;10811:80;;;;-1:-1:-1;;;10811:80:34;;37422:2:42;10811:80:34;;;37404:21:42;37461:1;37441:18;;;37434:29;-1:-1:-1;;;37479:18:42;;;37472:32;37521:18;;10811:80:34;37394:151:42;10811:80:34;10959:21;;;:58;;;10956:724;;;11044:31;;:::i;:::-;11128:22;;;;:19;;;:22;;;;;11101:59;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11101:59:34;;;-1:-1:-1;;11101:24:34;11216:22;;;:19;;;:22;;;;;;;:35;;;;-1:-1:-1;;;;;11216:35:34;11186:27;;;:65;11302:22;;;;;:30;;;11277:22;;;:55;11368:47;11392:6;11101:14;11368:23;:47::i;:::-;11358:57;-1:-1:-1;11441:23:34;11358:57;11441:23;;:::i;:::-;;-1:-1:-1;11490:33:34;11516:7;11490:33;;:::i;:::-;;;10956:724;;;;11647:10;11622:35;;10956:724;10528:3;;;;:::i;:::-;;;;10483:1245;;;;10368:1466;;;;;-1:-1:-1;11790:33:34;;;;10368:1466;11848:20;11844:268;;11916:1;11891:22;:26;11883:41;;;;-1:-1:-1;;;11883:41:34;;37092:2:42;11883:41:34;;;37074:21:42;37131:1;37111:18;;;37104:29;-1:-1:-1;;;37149:18:42;;;37142:32;37191:18;;11883:41:34;37064:151:42;11883:41:34;11942:21;;;:58;;;11939:163;;;-1:-1:-1;;;;;12023:27:34;;;;;;:19;;;:27;;;;;;12068:12;;12023:41;;12055:8;12023:31;:41::i;:::-;:57;;12015:72;;;;-1:-1:-1;;;12015:72:34;;34932:2:42;12015:72:34;;;34914:21:42;34971:1;34951:18;;;34944:29;-1:-1:-1;;;34989:18:42;;;34982:32;35031:18;;12015:72:34;34904:151:42;12015:72:34;12133:21;;;:35;;;;;;12130:228;;;12209:50;12227:11;;12240:10;12252:6;12209:17;:50::i;:::-;12184:112;;;;-1:-1:-1;;;12184:112:34;;31896:2:42;12184:112:34;;;31878:21:42;31935:1;31915:18;;;31908:29;-1:-1:-1;;;31953:18:42;;;31946:32;31995:18;;12184:112:34;31868:151:42;12184:112:34;12379:20;12376:192;;;12446:8;12421:22;:33;:69;;12482:8;12421:69;;;12457:22;12421:69;12414:76;;;;;9844:2749;;;;;;;;;;:::o;9640:197::-;1997:4:0;2430:30;1997:4;666:10:21;2430::0;:30::i;:::-;9798:32:34::1;9809:2;9813:7;;9798:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;9798:32:34::1;::::0;;::::1;::::0;;::::1;::::0;;;;;;;;;;;;;-1:-1:-1;9822:3:34;;-1:-1:-1;9822:3:34;;;;9798:32;::::1;::::0;9822:3;;9798:32;9822:3;9798:32;::::1;;::::0;::::1;::::0;;;-1:-1:-1;9798:32:34::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;-1:-1:-1;9798:10:34::1;::::0;-1:-1:-1;;9798:32:34:i:1;:::-;9640:197:::0;;;;;;:::o;4764:646::-;1997:4:0;2430:30;1997:4;666:10:21;2430::0;:30::i;:::-;4992:27:34::1;5022:19:::0;;;:6:::1;:19;::::0;;;;;;;5056:38:::1;::::0;::::1;::::0;5022:73;;:33:::1;;:73:::0;;;;;5105:32;;5022:73;;5105:32:::1;::::0;5022:73;;5105:32;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;5147:17:34::1;::::0;::::1;:28:::0;;;5185:16:::1;::::0;::::1;:23:::0;;5204:4:::1;-1:-1:-1::0;;5185:23:34;;::::1;::::0;::::1;::::0;;;5218:22;;::::1;:38:::0;;-1:-1:-1;;;;;;5218:38:34::1;-1:-1:-1::0;;;;;5218:38:34;::::1;;::::0;;-1:-1:-1;5266:25:34;::::1;:44:::0;;;-1:-1:-1;5361:19:34;;;:6:::1;:19;::::0;;;;:38:::1;;::::0;:42:::1;::::0;::::1;:::i;:::-;5320:19;::::0;;;:6:::1;:19;::::0;;;;;:38:::1;;:83:::0;;;;-1:-1:-1;;;;;;4764:646:34:o;531:19:29:-;;;;;;;:::i;3676:389:5:-;-1:-1:-1;;;;;3876:20:5;;666:10:21;3876:20:5;;:60;;-1:-1:-1;3900:36:5;3917:4;666:10:21;3443:166:5;:::i;3900:36::-;3855:148;;;;-1:-1:-1;;;3855:148:5;;;;;;;:::i;:::-;4013:45;4031:4;4037:2;4041;4045:6;4053:4;4013:17;:45::i;1846:189:2:-;1045:6;;-1:-1:-1;;;;;1045:6:2;666:10:21;1185:23:2;1177:68;;;;-1:-1:-1;;;1177:68:2;;;;;;;:::i;:::-;-1:-1:-1;;;;;1934:22:2;::::1;1926:73;;;::::0;-1:-1:-1;;;1926:73:2;;32638:2:42;1926:73:2::1;::::0;::::1;32620:21:42::0;32677:2;32657:18;;;32650:30;32716:34;32696:18;;;32689:62;-1:-1:-1;;;32767:18:42;;;32760:36;32813:19;;1926:73:2::1;32610:228:42::0;1926:73:2::1;2009:19;2019:8;2009:9;:19::i;313:310:8:-:0;-1:-1:-1;;;;;447:23:8;;666:10:21;447:23:8;;:66;;-1:-1:-1;474:39:8;491:7;666:10:21;3443:166:5;:::i;474:39:8:-;426:154;;;;-1:-1:-1;;;426:154:8;;;;;;;:::i;:::-;591:25;597:7;606:2;610:5;591;:25::i;4527:231:34:-;1997:4:0;2430:30;1997:4;666:10:21;2430::0;:30::i;:::-;-1:-1:-1;4656:19:34::1;4678::::0;;;:6:::1;:19;::::0;;;;;4707:30;;:44;;-1:-1:-1;;4707:44:34::1;::::0;::::1;;::::0;;;::::1;::::0;;4527:231::o;1160:305:5:-;1262:4;-1:-1:-1;;;;;;1297:41:5;;-1:-1:-1;;;1297:41:5;;:109;;-1:-1:-1;;;;;;;1354:52:5;;-1:-1:-1;;;1354:52:5;1297:109;:161;;;;1422:36;1446:11;1422:23;:36::i;8028:86::-;8094:13;;;;:4;;:13;;;;;:::i;3252:484:0:-;3332:22;3340:4;3346:7;3332;:22::i;:::-;3327:403;;3515:41;3543:7;-1:-1:-1;;;;;3515:41:0;3553:2;3515:19;:41::i;:::-;3627:38;3655:4;3662:2;3627:19;:38::i;:::-;3422:265;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;3422:265:0;;;;;;;;;;-1:-1:-1;;;3370:349:0;;;;;;;:::i;1040:181:38:-;1121:4;1209:1;1191:21;;;;;;;;:::i;:::-;;;;;;;;;;;;;1181:32;;;;;;1173:1;1155:21;;;;;;;;:::i;:::-;;;;;;;;;;;;;1145:32;;;;;;:68;1137:77;;1040:181;;;;:::o;1864:103:5:-;1924:13;1956:4;1949:11;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1864:103;;;:::o;275:703:23:-;331:13;548:10;544:51;;-1:-1:-1;;574:10:23;;;;;;;;;;;;-1:-1:-1;;;574:10:23;;;;;275:703::o;544:51::-;619:5;604:12;658:75;665:9;;658:75;;690:8;;;;:::i;:::-;;-1:-1:-1;712:10:23;;-1:-1:-1;720:2:23;712:10;;:::i;:::-;;;658:75;;;742:19;774:6;-1:-1:-1;;;;;764:17:23;;;;;-1:-1:-1;;;764:17:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;764:17:23;;742:39;;791:150;798:10;;791:150;;824:11;834:1;824:11;;:::i;:::-;;-1:-1:-1;892:10:23;900:2;892:5;:10;:::i;:::-;879:24;;:2;:24;:::i;:::-;866:39;;849:6;856;849:14;;;;;;-1:-1:-1;;;849:14:23;;;;;;;;;;;;:56;-1:-1:-1;;;;;849:56:23;;;;;;;;-1:-1:-1;919:11:23;928:2;919:11;;:::i;:::-;;;791:150;;6160:1045:5;6380:7;:14;6366:3;:10;:28;6358:81;;;;-1:-1:-1;;;6358:81:5;;;;;;;:::i;:::-;-1:-1:-1;;;;;6457:16:5;;6449:66;;;;-1:-1:-1;;;6449:66:5;;;;;;;:::i;:::-;666:10:21;6568:60:5;666:10:21;6599:4:5;6605:2;6609:3;6614:7;6623:4;6568:20;:60::i;:::-;6644:9;6639:411;6663:3;:10;6659:1;:14;6639:411;;;6694:10;6707:3;6711:1;6707:6;;;;;;-1:-1:-1;;;6707:6:5;;;;;;;;;;;;;;;6694:19;;6727:14;6744:7;6752:1;6744:10;;;;;;-1:-1:-1;;;6744:10:5;;;;;;;;;;;;;;;;;;;;6769:19;6791:13;;;:9;:13;;;;;;-1:-1:-1;;;;;6791:19:5;;;;;;;;;;;;6744:10;;-1:-1:-1;6832:21:5;;;;6824:76;;;;-1:-1:-1;;;6824:76:5;;;;;;;:::i;:::-;6942:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;6942:19:5;;;;;;;;;;6964:20;;;6942:42;;7012:17;;;;;;;:27;;6964:20;;6942:13;7012:27;;6964:20;;7012:27;:::i;:::-;;;;;;;;6639:411;;;6675:3;;;;:::i;:::-;;;6639:411;;;;7095:2;-1:-1:-1;;;;;7065:47:5;7089:4;-1:-1:-1;;;;;7065:47:5;7079:8;-1:-1:-1;;;;;7065:47:5;;7099:3;7104:7;7065:47;;;;;;;:::i;:::-;;;;;;;;7123:75;7159:8;7169:4;7175:2;7179:3;7184:7;7193:4;7123:35;:75::i;6572:224:0:-;6646:22;6654:4;6660:7;6646;:22::i;:::-;6641:149;;6684:6;:12;;;;;;;;;;;-1:-1:-1;;;;;6684:29:0;;;;;;;;;:36;;-1:-1:-1;;6684:36:0;6716:4;6684:36;;;6766:12;666:10:21;;587:96;6766:12:0;-1:-1:-1;;;;;6739:40:0;6757:7;-1:-1:-1;;;;;6739:40:0;6751:4;6739:40;;;;;;;;;;6572:224;;:::o;6802:225::-;6876:22;6884:4;6890:7;6876;:22::i;:::-;6872:149;;;6946:5;6914:12;;;;;;;;;;;-1:-1:-1;;;;;6914:29:0;;;;;;;;;;:37;;-1:-1:-1;;6914:37:0;;;6970:40;666:10:21;;6914:12:0;;6970:40;;6946:5;6970:40;6802:225;;:::o;1498:189:29:-;1648:32;1660:7;1669:2;1673:6;1648:11;:32::i;1225:181:38:-;1294:13;1348:20;1362:5;1348:13;:20::i;:::-;1375:24;1392:6;1375:16;:24::i;:::-;1331:69;;;;;;;;;:::i;:::-;;;;;;;;;;;;;1317:84;;1225:181;;;;:::o;777:809:25:-;898:4;937;898;952:515;976:5;:12;972:1;:16;952:515;;;1009:20;1032:5;1038:1;1032:8;;;;;;-1:-1:-1;;;1032:8:25;;;;;;;;;;;;;;;1009:31;;1075:12;1059;:28;1055:402;;1210:44;;;;;;20027:19:42;;;20062:12;;;20055:28;;;20099:12;;1210:44:25;;;;;;;;;;;;1200:55;;;;;;1185:70;;1055:402;;;1397:44;;;;;;20027:19:42;;;20062:12;;;20055:28;;;20099:12;;1397:44:25;;;;;;;;;;;;1387:55;;;;;;1372:70;;1055:402;-1:-1:-1;990:3:25;;;;:::i;:::-;;;;952:515;;;-1:-1:-1;1559:20:25;;;;777:809;-1:-1:-1;;;777:809:25:o;2053:117:3:-;1111:7;;;;1612:41;;;;-1:-1:-1;;;1612:41:3;;30888:2:42;1612:41:3;;;30870:21:42;30927:2;30907:18;;;30900:30;-1:-1:-1;;;30946:18:42;;;30939:50;31006:18;;1612:41:3;30860:170:42;1612:41:3;2111:7:::1;:15:::0;;-1:-1:-1;;2111:15:3::1;::::0;;2141:22:::1;666:10:21::0;2150:12:3::1;2141:22;::::0;-1:-1:-1;;;;;24198:32:42;;;24180:51;;24168:2;24153:18;2141:22:3::1;;;;;;;2053:117::o:0;3767:96:28:-;3825:7;3851:5;3855:1;3851;:5;:::i;1248:244:29:-;1445:40;1462:2;1466:3;1471:7;1480:4;1445:16;:40::i;:::-;1248:244;;;;:::o;1693:221::-;1868:39;1885:7;1894:3;1899:7;1868:16;:39::i;2672:96:28:-;2730:7;2756:5;2760:1;2756;:5;:::i;3382:96::-;3440:7;3466:5;3470:1;3466;:5;:::i;2041:169:2:-;2115:6;;;-1:-1:-1;;;;;2131:17:2;;;-1:-1:-1;;;;;;2131:17:2;;;;;;;2163:40;;2115:6;;;2131:17;2115:6;;2163:40;;2096:16;;2163:40;2041:169;;:::o;1806:115:3:-;1111:7;;;;1354:9;1346:38;;;;-1:-1:-1;;;1346:38:3;;35262:2:42;1346:38:3;;;35244:21:42;35301:2;35281:18;;;35274:30;-1:-1:-1;;;35320:18:42;;;35313:46;35376:18;;1346:38:3;35234:166:42;1346:38:3;1865:7:::1;:14:::0;;-1:-1:-1;;1865:14:3::1;1875:4;1865:14;::::0;;1894:20:::1;1901:12;666:10:21::0;;587:96;12599:1141:34;12731:7;12837:18;;;:6;:18;;;;;12731:7;;;;12864:31;;:::i;:::-;12931:35;;;;:19;;;:35;;;;;12904:72;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;12904:72:34;;;-1:-1:-1;;12904:24:34;13015:35;;;:19;;;:35;;;;;;;:48;;;;-1:-1:-1;;;;;13015:48:34;12985:27;;;:78;13097:35;;;;;:43;;;13072:22;;;:68;13161:47;13185:6;12904:14;13161:23;:47::i;:::-;13217:23;13257:35;;;:19;;;:35;;;;;:51;;;13331:17;;;;13149:59;;-1:-1:-1;13244:64:34;;;;13331:17;;13330:18;:80;;;;-1:-1:-1;13352:21:34;;;:58;;;13330:80;13327:242;;;13435:9;13425:19;;13327:242;;;13482:18;13478:91;;;13525:33;;;;;-1:-1:-1;13478:91:34;13582:12;;:59;;;;-1:-1:-1;13599:21:34;;;:42;;;;;;13598:43;13582:59;13579:131;;;13666:33;;;;;-1:-1:-1;13579:131:34;-1:-1:-1;13726:7:34;;12599:1141;-1:-1:-1;;;;;;;;12599:1141:34:o;5017:797:5:-;-1:-1:-1;;;;;5198:16:5;;5190:66;;;;-1:-1:-1;;;5190:66:5;;;;;;;:::i;:::-;666:10:21;5309:96:5;666:10:21;5340:4:5;5346:2;5350:21;5368:2;5350:17;:21::i;:::-;5373:25;5391:6;5373:17;:25::i;:::-;5400:4;5309:20;:96::i;:::-;5416:19;5438:13;;;:9;:13;;;;;;;;-1:-1:-1;;;;;5438:19:5;;;;;;;;;;5475:21;;;;5467:76;;;;-1:-1:-1;;;5467:76:5;;;;;;;:::i;:::-;5577:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;5577:19:5;;;;;;;;;;5599:20;;;5577:42;;5639:17;;;;;;;:27;;5599:20;;5577:13;5639:27;;5599:20;;5639:27;:::i;:::-;;;;-1:-1:-1;;5682:46:5;;;43135:25:42;;;43191:2;43176:18;;43169:34;;;-1:-1:-1;;;;;5682:46:5;;;;;;;;;;;;;;43108:18:42;5682:46:5;;;;;;;5739:68;5770:8;5780:4;5786:2;5790;5794:6;5802:4;5739:30;:68::i;:::-;5017:797;;;;;;;:::o;2545:202:0:-;2630:4;-1:-1:-1;;;;;;2653:47:0;;-1:-1:-1;;;2653:47:0;;:87;;-1:-1:-1;;;;;;;;;;871:40:26;;;2704:36:0;763:155:26;1535:441:23;1610:13;1635:19;1667:10;1671:6;1667:1;:10;:::i;:::-;:14;;1680:1;1667:14;:::i;:::-;-1:-1:-1;;;;;1657:25:23;;;;;-1:-1:-1;;;1657:25:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1657:25:23;;1635:47;;-1:-1:-1;;;1692:6:23;1699:1;1692:9;;;;;;-1:-1:-1;;;1692:9:23;;;;;;;;;;;;:15;-1:-1:-1;;;;;1692:15:23;;;;;;;;;-1:-1:-1;;;1717:6:23;1724:1;1717:9;;;;;;-1:-1:-1;;;1717:9:23;;;;;;;;;;;;:15;-1:-1:-1;;;;;1717:15:23;;;;;;;;-1:-1:-1;1747:9:23;1759:10;1763:6;1759:1;:10;:::i;:::-;:14;;1772:1;1759:14;:::i;:::-;1747:26;;1742:132;1779:1;1775;:5;1742:132;;;-1:-1:-1;;;1826:5:23;1834:3;1826:11;1813:25;;;;;-1:-1:-1;;;1813:25:23;;;;;;;;;;;;1801:6;1808:1;1801:9;;;;;;-1:-1:-1;;;1801:9:23;;;;;;;;;;;;:37;-1:-1:-1;;;;;1801:37:23;;;;;;;;-1:-1:-1;1862:1:23;1852:11;;;;;1782:3;;;:::i;:::-;;;1742:132;;;-1:-1:-1;1891:10:23;;1883:55;;;;-1:-1:-1;;;1883:55:23;;30118:2:42;1883:55:23;;;30100:21:42;;;30137:18;;;30130:30;30196:34;30176:18;;;30169:62;30248:18;;1883:55:23;30090:182:42;1922:330:29;2179:66;2206:8;2216:4;2222:2;2226:3;2231:7;2240:4;2179:26;:66::i;14024:792:5:-;-1:-1:-1;;;;;14256:13:5;;1034:20:20;1080:8;14252:558:5;;14291:79;;-1:-1:-1;;;14291:79:5;;-1:-1:-1;;;;;14291:43:5;;;;;:79;;14335:8;;14345:4;;14351:3;;14356:7;;14365:4;;14291:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14291:79:5;;;;;;;;-1:-1:-1;;14291:79:5;;;;;;;;;;;;:::i;:::-;;;14287:513;;;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;14676:6;14669:14;;-1:-1:-1;;;14669:14:5;;;;;;;;:::i;14287:513::-;;;14723:62;;-1:-1:-1;;;14723:62:5;;29697:2:42;14723:62:5;;;29679:21:42;29736:2;29716:18;;;29709:30;29775:34;29755:18;;;29748:62;-1:-1:-1;;;29826:18:42;;;29819:50;29886:19;;14723:62:5;29669:242:42;14287:513:5;-1:-1:-1;;;;;;14449:60:5;;-1:-1:-1;;;14449:60:5;14445:157;;14533:50;;-1:-1:-1;;;14533:50:5;;;;;;;:::i;1661:201:10:-;1787:32;1799:7;1808:2;1812:6;1787:11;:32::i;:::-;1829:16;;;;:12;:16;;;;;:26;;1849:6;;1829:16;:26;;1849:6;;1829:26;:::i;:::-;;;;-1:-1:-1;;;;;1661:201:10:o;1410:437:38:-;1507:13;;;1517:2;1507:13;;;1467;1507;;;;;;1490:14;;1507:13;;;;;;;;;;;-1:-1:-1;1507:13:38;1490:30;;1533:6;1528:291;1549:2;1545:1;:6;1528:291;;;1570:8;1621:6;1626:1;1621:2;:6;:::i;:::-;1618:10;;:1;:10;:::i;:::-;1614:15;;:1;:15;:::i;:::-;1594:36;;-1:-1:-1;;;;;1594:16:38;;:36;:::i;:::-;1581:51;;1570:62;;1644:9;1674:2;1669:1;1663:8;;:13;;;;:::i;:::-;1656:21;;1644:33;;1689:9;1730:2;1724:9;;1719:2;:14;;;;:::i;:::-;1714:1;1708:8;;:25;;;;:::i;:::-;1701:33;;1689:45;;1755:10;1762:2;1755:6;:10::i;:::-;1746:1;1748:3;1750:1;1748;:3;:::i;:::-;1746:6;;;;;;-1:-1:-1;;;1746:6:38;;;;;;;;;;;;:19;-1:-1:-1;;;;;1746:19:38;;;;;;;;;1788:10;1795:2;1788:6;:10::i;:::-;1777:1;1779:3;1781:1;1779;:3;:::i;:::-;:5;;1783:1;1779:5;:::i;:::-;1777:8;;;;;;-1:-1:-1;;;1777:8:38;;;;;;;;;;;;:21;-1:-1:-1;;;;;1777:21:38;;;;;;;;;1528:291;;;1553:3;;;;;:::i;:::-;;;;1528:291;;;-1:-1:-1;1840:1:38;1410:437;-1:-1:-1;;1410:437:38:o;1277:329:10:-;1450:40;1467:2;1471:3;1476:7;1485:4;1450:16;:40::i;:::-;1505:9;1500:100;1524:3;:10;1520:1;:14;1500:100;;;1579:7;1587:1;1579:10;;;;;;-1:-1:-1;;;1579:10:10;;;;;;;;;;;;;;;1555:12;:20;1568:3;1572:1;1568:6;;;;;;-1:-1:-1;;;1568:6:10;;;;;;;;;;;;;;;1555:20;;;;;;;;;;;;:34;;;;;;;:::i;:::-;;;;-1:-1:-1;1536:3:10;;-1:-1:-1;1536:3:10;;:::i;:::-;;;1500:100;;1922:306;2073:39;2090:7;2099:3;2104:7;2073:16;:39::i;:::-;2127:9;2122:100;2146:3;:10;2142:1;:14;2122:100;;;2201:7;2209:1;2201:10;;;;;;-1:-1:-1;;;2201:10:10;;;;;;;;;;;;;;;2177:12;:20;2190:3;2194:1;2190:6;;;;;;-1:-1:-1;;;2190:6:10;;;;;;;;;;;;;;;2177:20;;;;;;;;;;;;:34;;;;;;;:::i;:::-;;;;-1:-1:-1;2158:3:10;;-1:-1:-1;2158:3:10;;:::i;:::-;;;2122:100;;14822:193:5;14941:16;;;14955:1;14941:16;;;;;;;;;14888;;14916:22;;14941:16;;;;;;;;;;;;-1:-1:-1;14941:16:5;14916:41;;14978:7;14967:5;14973:1;14967:8;;;;;;-1:-1:-1;;;14967:8:5;;;;;;;;;;;;;;;;;;:18;15003:5;14822:193;-1:-1:-1;;14822:193:5:o;13293:725::-;-1:-1:-1;;;;;13500:13:5;;1034:20:20;1080:8;13496:516:5;;13535:72;;-1:-1:-1;;;13535:72:5;;-1:-1:-1;;;;;13535:38:5;;;;;:72;;13574:8;;13584:4;;13590:2;;13594:6;;13602:4;;13535:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13535:72:5;;;;;;;;-1:-1:-1;;13535:72:5;;;;;;;;;;;;:::i;:::-;;;13531:471;;;;:::i;:::-;-1:-1:-1;;;;;;13656:55:5;;-1:-1:-1;;;13656:55:5;13652:152;;13735:50;;-1:-1:-1;;;13735:50:5;;;;;;;:::i;629:381:9:-;1111:7:3;;;;945:9:9;937:66;;;;-1:-1:-1;;;937:66:9;;34109:2:42;937:66:9;;;34091:21:42;34148:2;34128:18;;;34121:30;34187:34;34167:18;;;34160:62;-1:-1:-1;;;34238:18:42;;;34231:42;34290:19;;937:66:9;34081:234:42;10394:657:5;-1:-1:-1;;;;;10519:21:5;;10511:69;;;;-1:-1:-1;;;10511:69:5;;;;;;;:::i;:::-;666:10:21;10633:105:5;666:10:21;10664:7:5;10591:16;10685:21;10703:2;10685:17;:21::i;:::-;10708:25;10726:6;10708:17;:25::i;:::-;10633:105;;;;;;;;;;;;:20;:105::i;:::-;10749:22;10774:13;;;:9;:13;;;;;;;;-1:-1:-1;;;;;10774:22:5;;;;;;;;;;10814:24;;;;10806:73;;;;-1:-1:-1;;;10806:73:5;;;;;;;:::i;:::-;10913:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;10913:22:5;;;;;;;;;;;;10938:23;;;10913:48;;10987:57;;43135:25:42;;;43176:18;;;43169:34;;;10913:22:5;;10987:57;;;;;;43108:18:42;10987:57:5;;;;;;;10394:657;;;;;:::o;2977:162:38:-;3026:6;3057:2;3046:8;;;;:13;3042:92;;;3075:15;:8;;;;3086:4;3075:15;:::i;:::-;3068:23;;;2977:162;-1:-1:-1;;2977:162:38:o;3042:92::-;3118:15;:8;;;;3129:4;3118:15;:::i;9430:715:5:-;-1:-1:-1;;;;;9602:16:5;;9594:62;;;;-1:-1:-1;;;9594:62:5;;41473:2:42;9594:62:5;;;41455:21:42;41512:2;41492:18;;;41485:30;41551:34;41531:18;;;41524:62;-1:-1:-1;;;41602:18:42;;;41595:31;41643:19;;9594:62:5;41445:223:42;9594:62:5;9688:7;:14;9674:3;:10;:28;9666:81;;;;-1:-1:-1;;;9666:81:5;;;;;;;:::i;:::-;666:10:21;9800:66:5;666:10:21;9758:16:5;9843:2;9847:3;9852:7;9861:4;9800:20;:66::i;:::-;9882:9;9877:101;9901:3;:10;9897:1;:14;9877:101;;;9957:7;9965:1;9957:10;;;;;;-1:-1:-1;;;9957:10:5;;;;;;;;;;;;;;;9932:9;:17;9942:3;9946:1;9942:6;;;;;;-1:-1:-1;;;9942:6:5;;;;;;;;;;;;;;;9932:17;;;;;;;;;;;:21;9950:2;-1:-1:-1;;;;;9932:21:5;-1:-1:-1;;;;;9932:21:5;;;;;;;;;;;;;:35;;;;;;;:::i;:::-;;;;-1:-1:-1;9913:3:5;;-1:-1:-1;9913:3:5;;;:::i;:::-;;;;9877:101;;;;10029:2;-1:-1:-1;;;;;9993:53:5;10025:1;-1:-1:-1;;;;;9993:53:5;10007:8;-1:-1:-1;;;;;9993:53:5;;10033:3;10038:7;9993:53;;;;;;;:::i;:::-;;;;;;;;10057:81;10093:8;10111:1;10115:2;10119:3;10124:7;10133:4;10057:35;:81::i;11245:894::-;-1:-1:-1;;;;;11395:21:5;;11387:69;;;;-1:-1:-1;;;11387:69:5;;;;;;;:::i;:::-;11488:7;:14;11474:3;:10;:28;11466:81;;;;-1:-1:-1;;;11466:81:5;;;;;;;:::i;:::-;11558:16;666:10:21;11558:31:5;;11600:69;11621:8;11631:7;11648:1;11652:3;11657:7;11600:69;;;;;;;;;;;;:20;:69::i;:::-;11685:9;11680:379;11704:3;:10;11700:1;:14;11680:379;;;11735:10;11748:3;11752:1;11748:6;;;;;;-1:-1:-1;;;11748:6:5;;;;;;;;;;;;;;;11735:19;;11768:14;11785:7;11793:1;11785:10;;;;;;-1:-1:-1;;;11785:10:5;;;;;;;;;;;;;;;;;;;;11810:22;11835:13;;;:9;:13;;;;;;-1:-1:-1;;;;;11835:22:5;;;;;;;;;;;;11785:10;;-1:-1:-1;11879:24:5;;;;11871:73;;;;-1:-1:-1;;;11871:73:5;;;;;;;:::i;:::-;11986:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;11986:22:5;;;;;;;;;;12011:23;;11986:48;;11716:3;;;;:::i;:::-;;;;11680:379;;;;12115:1;-1:-1:-1;;;;;12074:58:5;12098:7;-1:-1:-1;;;;;12074:58:5;12088:8;-1:-1:-1;;;;;12074:58:5;;12119:3;12124:7;12074:58;;;;;;;:::i;:::-;;;;;;;;11245:894;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:830:42;68:5;121:3;114:4;106:6;102:17;98:27;88:2;;143:5;136;129:20;88:2;183:6;170:20;209:4;232:43;272:2;232:43;:::i;:::-;304:2;298:9;316:31;344:2;336:6;316:31;:::i;:::-;382:18;;;416:15;;;;-1:-1:-1;451:15:42;;;501:1;497:10;;;485:23;;481:32;;478:41;-1:-1:-1;475:2:42;;;536:5;529;522:20;475:2;562:5;576:238;590:2;587:1;584:9;576:238;;;661:3;648:17;678:31;703:5;678:31;:::i;:::-;722:18;;760:12;;;;792;;;;608:1;601:9;576:238;;;-1:-1:-1;832:6:42;;78:766;-1:-1:-1;;;;;;;78:766:42:o;849:414::-;931:8;941:6;995:3;988:4;980:6;976:17;972:27;962:2;;1020:8;1010;1003:26;962:2;-1:-1:-1;1050:20:42;;-1:-1:-1;;;;;1082:30:42;;1079:2;;;1132:8;1122;1115:26;1079:2;1176:4;1168:6;1164:17;1152:29;;1236:3;1229:4;1219:6;1216:1;1212:14;1204:6;1200:27;1196:38;1193:47;1190:2;;;1253:1;1250;1243:12;1190:2;952:311;;;;;:::o;1268:755::-;1322:5;1375:3;1368:4;1360:6;1356:17;1352:27;1342:2;;1397:5;1390;1383:20;1342:2;1437:6;1424:20;1463:4;1486:43;1526:2;1486:43;:::i;:::-;1558:2;1552:9;1570:31;1598:2;1590:6;1570:31;:::i;:::-;1636:18;;;1670:15;;;;-1:-1:-1;1705:15:42;;;1755:1;1751:10;;;1739:23;;1735:32;;1732:41;-1:-1:-1;1729:2:42;;;1790:5;1783;1776:20;1729:2;1816:5;1830:163;1844:2;1841:1;1838:9;1830:163;;;1901:17;;1889:30;;1939:12;;;;1971;;;;1862:1;1855:9;1830:163;;2028:160;2093:20;;2149:13;;2142:21;2132:32;;2122:2;;2178:1;2175;2168:12;2193:575;2235:5;2288:3;2281:4;2273:6;2269:17;2265:27;2255:2;;2310:5;2303;2296:20;2255:2;2350:6;2337:20;-1:-1:-1;;;;;2372:2:42;2369:26;2366:2;;;2398:18;;:::i;:::-;2447:2;2441:9;2459:67;2514:2;2495:13;;-1:-1:-1;;2491:27:42;2520:4;2487:38;2441:9;2459:67;:::i;:::-;2550:2;2542:6;2535:18;2596:3;2589:4;2584:2;2576:6;2572:15;2568:26;2565:35;2562:2;;;2617:5;2610;2603:20;2562:2;2685;2678:4;2670:6;2666:17;2659:4;2651:6;2647:17;2634:54;2708:15;;;2725:4;2704:26;2697:41;;;;2712:6;2245:523;-1:-1:-1;;2245:523:42:o;2773:257::-;2832:6;2885:2;2873:9;2864:7;2860:23;2856:32;2853:2;;;2906:6;2898;2891:22;2853:2;2950:9;2937:23;2969:31;2994:5;2969:31;:::i;3035:333::-;3111:6;3119;3172:2;3160:9;3151:7;3147:23;3143:32;3140:2;;;3193:6;3185;3178:22;3140:2;3237:9;3224:23;3256:31;3281:5;3256:31;:::i;:::-;3306:5;3358:2;3343:18;;;;3330:32;;-1:-1:-1;;;3130:238:42:o;3373:398::-;3441:6;3449;3502:2;3490:9;3481:7;3477:23;3473:32;3470:2;;;3523:6;3515;3508:22;3470:2;3567:9;3554:23;3586:31;3611:5;3586:31;:::i;:::-;3636:5;-1:-1:-1;3693:2:42;3678:18;;3665:32;3706:33;3665:32;3706:33;:::i;:::-;3758:7;3748:17;;;3460:311;;;;;:::o;3776:1111::-;3930:6;3938;3946;3954;3962;4015:3;4003:9;3994:7;3990:23;3986:33;3983:2;;;4037:6;4029;4022:22;3983:2;4081:9;4068:23;4100:31;4125:5;4100:31;:::i;:::-;4150:5;-1:-1:-1;4207:2:42;4192:18;;4179:32;4220:33;4179:32;4220:33;:::i;:::-;4272:7;-1:-1:-1;4330:2:42;4315:18;;4302:32;-1:-1:-1;;;;;4383:14:42;;;4380:2;;;4415:6;4407;4400:22;4380:2;4443:61;4496:7;4487:6;4476:9;4472:22;4443:61;:::i;:::-;4433:71;;4557:2;4546:9;4542:18;4529:32;4513:48;;4586:2;4576:8;4573:16;4570:2;;;4607:6;4599;4592:22;4570:2;4635:63;4690:7;4679:8;4668:9;4664:24;4635:63;:::i;:::-;4625:73;;4751:3;4740:9;4736:19;4723:33;4707:49;;4781:2;4771:8;4768:16;4765:2;;;4802:6;4794;4787:22;4765:2;;4830:51;4873:7;4862:8;4851:9;4847:24;4830:51;:::i;:::-;4820:61;;;3973:914;;;;;;;;:::o;4892:754::-;4996:6;5004;5012;5020;5028;5081:3;5069:9;5060:7;5056:23;5052:33;5049:2;;;5103:6;5095;5088:22;5049:2;5147:9;5134:23;5166:31;5191:5;5166:31;:::i;:::-;5216:5;-1:-1:-1;5273:2:42;5258:18;;5245:32;5286:33;5245:32;5286:33;:::i;:::-;5338:7;-1:-1:-1;5392:2:42;5377:18;;5364:32;;-1:-1:-1;5443:2:42;5428:18;;5415:32;;-1:-1:-1;5498:3:42;5483:19;;5470:33;-1:-1:-1;;;;;5515:30:42;;5512:2;;;5563:6;5555;5548:22;5512:2;5591:49;5632:7;5623:6;5612:9;5608:22;5591:49;:::i;5651:976::-;5782:6;5790;5798;5806;5814;5867:2;5855:9;5846:7;5842:23;5838:32;5835:2;;;5888:6;5880;5873:22;5835:2;5932:9;5919:23;5951:31;5976:5;5951:31;:::i;:::-;6001:5;-1:-1:-1;6057:2:42;6042:18;;6029:32;-1:-1:-1;;;;;6110:14:42;;;6107:2;;;6142:6;6134;6127:22;6107:2;6186:89;6267:7;6258:6;6247:9;6243:22;6186:89;:::i;:::-;6294:8;;-1:-1:-1;6160:115:42;-1:-1:-1;6382:2:42;6367:18;;6354:32;;-1:-1:-1;6398:16:42;;;6395:2;;;6432:6;6424;6417:22;6395:2;;6476:91;6559:7;6548:8;6537:9;6533:24;6476:91;:::i;:::-;5825:802;;;;-1:-1:-1;5825:802:42;;-1:-1:-1;6586:8:42;;6450:117;5825:802;-1:-1:-1;;;5825:802:42:o;6632:760::-;6759:6;6767;6775;6828:2;6816:9;6807:7;6803:23;6799:32;6796:2;;;6849:6;6841;6834:22;6796:2;6893:9;6880:23;6912:31;6937:5;6912:31;:::i;:::-;6962:5;-1:-1:-1;7018:2:42;7003:18;;6990:32;-1:-1:-1;;;;;7071:14:42;;;7068:2;;;7103:6;7095;7088:22;7068:2;7131:61;7184:7;7175:6;7164:9;7160:22;7131:61;:::i;:::-;7121:71;;7245:2;7234:9;7230:18;7217:32;7201:48;;7274:2;7264:8;7261:16;7258:2;;;7295:6;7287;7280:22;7258:2;;7323:63;7378:7;7367:8;7356:9;7352:24;7323:63;:::i;:::-;7313:73;;;6786:606;;;;;:::o;7397:325::-;7462:6;7470;7523:2;7511:9;7502:7;7498:23;7494:32;7491:2;;;7544:6;7536;7529:22;7491:2;7588:9;7575:23;7607:31;7632:5;7607:31;:::i;:::-;7657:5;-1:-1:-1;7681:35:42;7712:2;7697:18;;7681:35;:::i;:::-;7671:45;;7481:241;;;;;:::o;7727:1130::-;7822:6;7830;7883:2;7871:9;7862:7;7858:23;7854:32;7851:2;;;7904:6;7896;7889:22;7851:2;7948:9;7935:23;7967:31;7992:5;7967:31;:::i;:::-;8017:5;-1:-1:-1;8073:2:42;8058:18;;8045:32;-1:-1:-1;;;;;8126:14:42;;;8123:2;;;8158:6;8150;8143:22;8123:2;8186:22;;;;8242:4;8224:16;;;8220:27;8217:2;;;8265:6;8257;8250:22;8217:2;8303;8297:9;8315:32;8340:6;8315:32;:::i;:::-;8385:2;8372:16;8413:2;8403:8;8400:16;8397:2;;;8434:6;8426;8419:22;8397:2;8467:44;8503:7;8492:8;8488:2;8484:17;8467:44;:::i;:::-;8459:6;8452:60;;8557:2;8553;8549:11;8536:25;8521:40;;8570:33;8595:7;8570:33;:::i;:::-;8636:7;8631:2;8623:6;8619:15;8612:32;8698:2;8694;8690:11;8677:25;8672:2;8664:6;8660:15;8653:50;8757:2;8753;8749:11;8736:25;8731:2;8723:6;8719:15;8712:50;8796:29;8820:3;8816:2;8812:12;8796:29;:::i;:::-;8790:3;8782:6;8778:16;8771:55;8845:6;8835:16;;;;;7841:1016;;;;;:::o;8862:325::-;8930:6;8938;8991:2;8979:9;8970:7;8966:23;8962:32;8959:2;;;9012:6;9004;8997:22;9192:393;9269:6;9277;9285;9338:2;9326:9;9317:7;9313:23;9309:32;9306:2;;;9359:6;9351;9344:22;9306:2;9403:9;9390:23;9422:31;9447:5;9422:31;:::i;:::-;9472:5;9524:2;9509:18;;9496:32;;-1:-1:-1;9575:2:42;9560:18;;;9547:32;;9296:289;-1:-1:-1;;;9296:289:42:o;9590:886::-;9718:6;9726;9734;9742;9750;9758;9766;9819:3;9807:9;9798:7;9794:23;9790:33;9787:2;;;9841:6;9833;9826:22;9787:2;9885:9;9872:23;9904:31;9929:5;9904:31;:::i;:::-;9954:5;-1:-1:-1;10006:2:42;9991:18;;9978:32;;-1:-1:-1;10057:2:42;10042:18;;10029:32;;-1:-1:-1;10108:2:42;10093:18;;10080:32;;-1:-1:-1;10163:3:42;10148:19;;10135:33;-1:-1:-1;;;;;10180:30:42;;10177:2;;;10228:6;10220;10213:22;10177:2;10272:89;10353:7;10344:6;10333:9;10329:22;10272:89;:::i;:::-;10380:8;;-1:-1:-1;10246:115:42;-1:-1:-1;10434:36:42;;-1:-1:-1;10465:3:42;10450:19;;10434:36;:::i;:::-;10424:46;;9777:699;;;;;;;;;;:::o;10481:625::-;10599:6;10607;10660:2;10648:9;10639:7;10635:23;10631:32;10628:2;;;10681:6;10673;10666:22;10628:2;10726:9;10713:23;-1:-1:-1;;;;;10796:2:42;10788:6;10785:14;10782:2;;;10817:6;10809;10802:22;10782:2;10845:61;10898:7;10889:6;10878:9;10874:22;10845:61;:::i;:::-;10835:71;;10959:2;10948:9;10944:18;10931:32;10915:48;;10988:2;10978:8;10975:16;10972:2;;;11009:6;11001;10994:22;10972:2;;11037:63;11092:7;11081:8;11070:9;11066:24;11037:63;:::i;:::-;11027:73;;;10618:488;;;;;:::o;11111:612::-;11215:6;11223;11231;11239;11292:2;11280:9;11271:7;11267:23;11263:32;11260:2;;;11313:6;11305;11298:22;11260:2;11358:9;11345:23;-1:-1:-1;;;;;11383:6:42;11380:30;11377:2;;;11428:6;11420;11413:22;11377:2;11472:89;11553:7;11544:6;11533:9;11529:22;11472:89;:::i;:::-;11580:8;;11446:115;;-1:-1:-1;11662:2:42;11647:18;;11634:32;;11713:2;11698:18;11685:32;;-1:-1:-1;11250:473:42;-1:-1:-1;;;;11250:473:42:o;11728:1557::-;11949:6;11957;11965;11973;11981;11989;11997;12005;12058:3;12046:9;12037:7;12033:23;12029:33;12026:2;;;12080:6;12072;12065:22;12026:2;12125:9;12112:23;-1:-1:-1;;;;;12195:2:42;12187:6;12184:14;12181:2;;;12216:6;12208;12201:22;12181:2;12260:89;12341:7;12332:6;12321:9;12317:22;12260:89;:::i;:::-;12368:8;;-1:-1:-1;12234:115:42;-1:-1:-1;12456:2:42;12441:18;;12428:32;;-1:-1:-1;12472:16:42;;;12469:2;;;12506:6;12498;12491:22;12469:2;12550:91;12633:7;12622:8;12611:9;12607:24;12550:91;:::i;:::-;12660:8;;-1:-1:-1;12524:117:42;-1:-1:-1;12748:2:42;12733:18;;12720:32;;-1:-1:-1;12764:16:42;;;12761:2;;;12798:6;12790;12783:22;12761:2;12842:91;12925:7;12914:8;12903:9;12899:24;12842:91;:::i;:::-;12952:8;;-1:-1:-1;12816:117:42;-1:-1:-1;13040:2:42;13025:18;;13012:32;;-1:-1:-1;13056:16:42;;;13053:2;;;13090:6;13082;13075:22;13053:2;;13134:91;13217:7;13206:8;13195:9;13191:24;13134:91;:::i;:::-;12016:1269;;;;-1:-1:-1;12016:1269:42;;-1:-1:-1;12016:1269:42;;;;;;13244:8;-1:-1:-1;;;12016:1269:42:o;13290:190::-;13349:6;13402:2;13390:9;13381:7;13377:23;13373:32;13370:2;;;13423:6;13415;13408:22;13370:2;-1:-1:-1;13451:23:42;;13360:120;-1:-1:-1;13360:120:42:o;13485:325::-;13553:6;13561;13614:2;13602:9;13593:7;13589:23;13585:32;13582:2;;;13635:6;13627;13620:22;13582:2;13676:9;13663:23;13653:33;;13736:2;13725:9;13721:18;13708:32;13749:31;13774:5;13749:31;:::i;13815:255::-;13873:6;13926:2;13914:9;13905:7;13901:23;13897:32;13894:2;;;13947:6;13939;13932:22;13894:2;13991:9;13978:23;14010:30;14034:5;14010:30;:::i;14075:259::-;14144:6;14197:2;14185:9;14176:7;14172:23;14168:32;14165:2;;;14218:6;14210;14203:22;14165:2;14255:9;14249:16;14274:30;14298:5;14274:30;:::i;14339:341::-;14408:6;14461:2;14449:9;14440:7;14436:23;14432:32;14429:2;;;14482:6;14474;14467:22;14429:2;14527:9;14514:23;-1:-1:-1;;;;;14552:6:42;14549:30;14546:2;;;14597:6;14589;14582:22;14546:2;14625:49;14666:7;14657:6;14646:9;14642:22;14625:49;:::i;14880:194::-;14950:6;15003:2;14991:9;14982:7;14978:23;14974:32;14971:2;;;15024:6;15016;15009:22;14971:2;-1:-1:-1;15052:16:42;;14961:113;-1:-1:-1;14961:113:42:o;15079:258::-;15144:6;15152;15205:2;15193:9;15184:7;15180:23;15176:32;15173:2;;;15226:6;15218;15211:22;15173:2;15267:9;15254:23;15244:33;;15296:35;15327:2;15316:9;15312:18;15296:35;:::i;15342:326::-;15416:6;15424;15432;15485:2;15473:9;15464:7;15460:23;15456:32;15453:2;;;15506:6;15498;15491:22;15453:2;15547:9;15534:23;15524:33;;15604:2;15593:9;15589:18;15576:32;15566:42;;15627:35;15658:2;15647:9;15643:18;15627:35;:::i;:::-;15617:45;;15443:225;;;;;:::o;15673:682::-;15778:6;15786;15794;15802;15810;15863:3;15851:9;15842:7;15838:23;15834:33;15831:2;;;15885:6;15877;15870:22;15831:2;15926:9;15913:23;15903:33;;15987:2;15976:9;15972:18;15959:32;-1:-1:-1;;;;;16006:6:42;16003:30;16000:2;;;16051:6;16043;16036:22;16000:2;16079:49;16120:7;16111:6;16100:9;16096:22;16079:49;:::i;:::-;16069:59;;;16178:2;16167:9;16163:18;16150:32;16191:31;16216:5;16191:31;:::i;:::-;15821:534;;;;-1:-1:-1;16241:5:42;;16293:2;16278:18;;16265:32;;-1:-1:-1;16344:3:42;16329:19;16316:33;;15821:534;-1:-1:-1;;15821:534:42:o;16360:1425::-;16557:6;16565;16573;16581;16589;16597;16605;16613;16621;16629;16637:7;16646;16700:3;16688:9;16679:7;16675:23;16671:33;16668:2;;;16722:6;16714;16707:22;16668:2;16763:9;16750:23;16740:33;;-1:-1:-1;;;;;16816:2:42;16805:9;16801:18;16788:32;16785:56;16782:2;;;16859:6;16851;16844:22;16782:2;16887:75;16954:7;16947:2;16936:9;16932:18;16919:32;16908:9;16904:48;16887:75;:::i;:::-;16877:85;;-1:-1:-1;;;;;17005:2:42;16994:9;16990:18;16977:32;16974:56;16971:2;;;17048:6;17040;17033:22;16971:2;17076:75;17143:7;17136:2;17125:9;17121:18;17108:32;17097:9;17093:48;17076:75;:::i;:::-;17066:85;;17198:2;17187:9;17183:18;17170:32;17160:42;;17249:3;17238:9;17234:19;17221:33;17211:43;;17301:3;17290:9;17286:19;17273:33;17263:43;;17353:3;17342:9;17338:19;17325:33;17315:43;;17405:3;17394:9;17390:19;17377:33;17367:43;;17457:3;17446:9;17442:19;17429:33;17419:43;;17481:36;17512:3;17501:9;17497:19;17481:36;:::i;:::-;17471:46;;17537:36;17568:3;17557:9;17553:19;17537:36;:::i;:::-;17526:47;;-1:-1:-1;;;;;17616:3:42;17605:9;17601:19;17588:33;17585:57;17582:2;;;17661:7;17652;17645:24;17582:2;17691:88;17771:7;17763:3;17752:9;17748:19;17735:33;17724:9;17720:49;17691:88;:::i;:::-;17680:99;;16658:1127;;;;;;;;;;;;;;:::o;17790:258::-;17858:6;17866;17919:2;17907:9;17898:7;17894:23;17890:32;17887:2;;;17940:6;17932;17925:22;17887:2;-1:-1:-1;;17968:23:42;;;18038:2;18023:18;;;18010:32;;-1:-1:-1;17877:171:42:o;18053:326::-;18130:6;18138;18146;18199:2;18187:9;18178:7;18174:23;18170:32;18167:2;;;18220:6;18212;18205:22;18167:2;-1:-1:-1;;18248:23:42;;;18318:2;18303:18;;18290:32;;-1:-1:-1;18369:2:42;18354:18;;;18341:32;;18157:222;-1:-1:-1;18157:222:42:o;18384:360::-;18472:19;;;18454:3;-1:-1:-1;;;;;18503:31:42;;18500:2;;;18549:3;18544;18537:16;18500:2;18587:6;18584:1;18580:14;18639:8;18632:5;18625:4;18620:3;18616:14;18603:45;18671:18;;;;18691:4;18667:29;18705:15;;;-1:-1:-1;18667:29:42;;18462:282;-1:-1:-1;18462:282:42:o;18749:437::-;18802:3;18840:5;18834:12;18867:6;18862:3;18855:19;18893:4;18922:2;18917:3;18913:12;18906:19;;18959:2;18952:5;18948:14;18980:3;18992:169;19006:6;19003:1;19000:13;18992:169;;;19067:13;;19055:26;;19101:12;;;;19136:15;;;;19028:1;19021:9;18992:169;;;-1:-1:-1;19177:3:42;;18810:376;-1:-1:-1;;;;;18810:376:42:o;19287:257::-;19328:3;19366:5;19360:12;19393:6;19388:3;19381:19;19409:63;19465:6;19458:4;19453:3;19449:14;19442:4;19435:5;19431:16;19409:63;:::i;:::-;19526:2;19505:15;-1:-1:-1;;19501:29:42;19492:39;;;;19533:4;19488:50;;19336:208;-1:-1:-1;;19336:208:42:o;20122:276::-;20253:3;20291:6;20285:13;20307:53;20353:6;20348:3;20341:4;20333:6;20329:17;20307:53;:::i;:::-;20376:16;;;;;20261:137;-1:-1:-1;;20261:137:42:o;20403:470::-;20582:3;20620:6;20614:13;20636:53;20682:6;20677:3;20670:4;20662:6;20658:17;20636:53;:::i;:::-;20752:13;;20711:16;;;;20774:57;20752:13;20711:16;20808:4;20796:17;;20774:57;:::i;:::-;20847:20;;20590:283;-1:-1:-1;;;;20590:283:42:o;20878:633::-;21158:3;21196:6;21190:13;21212:53;21258:6;21253:3;21246:4;21238:6;21234:17;21212:53;:::i;:::-;21328:13;;21287:16;;;;21350:57;21328:13;21287:16;21384:4;21372:17;;21350:57;:::i;:::-;-1:-1:-1;;;21429:20:42;;21458:18;;;21503:1;21492:13;;21166:345;-1:-1:-1;;;;21166:345:42:o;21516:614::-;21796:3;21834:6;21828:13;21850:53;21896:6;21891:3;21884:4;21876:6;21872:17;21850:53;:::i;:::-;-1:-1:-1;;;21925:16:42;;;21950:18;;;21993:13;;22015:65;21993:13;22067:1;22056:13;;22049:4;22037:17;;22015:65;:::i;:::-;22100:20;22122:1;22096:28;;21804:326;-1:-1:-1;;;;21804:326:42:o;22135:1103::-;22263:3;22292;22327:6;22321:13;22357:3;22379:1;22407:9;22403:2;22399:18;22389:28;;22467:2;22456:9;22452:18;22489;22479:2;;22533:4;22525:6;22521:17;22511:27;;22479:2;22559;22607;22599:6;22596:14;22576:18;22573:38;22570:2;;;-1:-1:-1;;;22634:33:42;;22690:4;22687:1;22680:15;22720:4;22641:3;22708:17;22570:2;22751:18;22778:104;;;;22896:1;22891:322;;;;22744:469;;22778:104;-1:-1:-1;;22811:24:42;;22799:37;;22856:16;;;;-1:-1:-1;22778:104:42;;22891:322;44011:4;44030:17;;;44080:4;44064:21;;22986:3;23002:165;23016:6;23013:1;23010:13;23002:165;;;23094:14;;23081:11;;;23074:35;23137:16;;;;23031:10;;23002:165;;;23006:3;;23196:6;23191:3;23187:16;23180:23;;22744:469;-1:-1:-1;23229:3:42;;22271:967;-1:-1:-1;;;;;;;;22271:967:42:o;23243:786::-;23654:25;23649:3;23642:38;23624:3;23709:6;23703:13;23725:62;23780:6;23775:2;23770:3;23766:12;23759:4;23751:6;23747:17;23725:62;:::i;:::-;-1:-1:-1;;;23846:2:42;23806:16;;;23838:11;;;23831:40;23896:13;;23918:63;23896:13;23967:2;23959:11;;23952:4;23940:17;;23918:63;:::i;:::-;24001:17;24020:2;23997:26;;23632:397;-1:-1:-1;;;;23632:397:42:o;24242:826::-;-1:-1:-1;;;;;24639:15:42;;;24621:34;;24691:15;;24686:2;24671:18;;24664:43;24601:3;24738:2;24723:18;;24716:31;;;24564:4;;24770:57;;24807:19;;24799:6;24770:57;:::i;:::-;24875:9;24867:6;24863:22;24858:2;24847:9;24843:18;24836:50;24909:44;24946:6;24938;24909:44;:::i;:::-;24895:58;;25002:9;24994:6;24990:22;24984:3;24973:9;24969:19;24962:51;25030:32;25055:6;25047;25030:32;:::i;:::-;25022:40;24573:495;-1:-1:-1;;;;;;;;24573:495:42:o;25073:560::-;-1:-1:-1;;;;;25370:15:42;;;25352:34;;25422:15;;25417:2;25402:18;;25395:43;25469:2;25454:18;;25447:34;;;25512:2;25497:18;;25490:34;;;25332:3;25555;25540:19;;25533:32;;;25295:4;;25582:45;;25607:19;;25599:6;25582:45;:::i;25917:519::-;26194:2;26183:9;26176:21;26157:4;26220:73;26289:2;26278:9;26274:18;26266:6;26258;26220:73;:::i;:::-;26341:9;26333:6;26329:22;26324:2;26313:9;26309:18;26302:50;26369:61;26423:6;26415;26407;26369:61;:::i;26441:261::-;26620:2;26609:9;26602:21;26583:4;26640:56;26692:2;26681:9;26677:18;26669:6;26640:56;:::i;26707:465::-;26964:2;26953:9;26946:21;26927:4;26990:56;27042:2;27031:9;27027:18;27019:6;26990:56;:::i;:::-;27094:9;27086:6;27082:22;27077:2;27066:9;27062:18;27055:50;27122:44;27159:6;27151;27122:44;:::i;:::-;27114:52;26936:236;-1:-1:-1;;;;;26936:236:42:o;27551:219::-;27700:2;27689:9;27682:21;27663:4;27720:44;27760:2;27749:9;27745:18;27737:6;27720:44;:::i;27775:1715::-;28197:4;28226:3;28256:2;28245:9;28238:21;28282:44;28322:2;28311:9;28307:18;28299:6;28282:44;:::i;:::-;28268:58;;28374:9;28366:6;28362:22;28357:2;28346:9;28342:18;28335:50;28402:32;28427:6;28419;28402:32;:::i;:::-;28394:40;;;28470:6;28465:2;28454:9;28450:18;28443:34;28513:6;28508:2;28497:9;28493:18;28486:34;28529:51;28575:3;28564:9;28560:19;28551:6;28545:13;19261;19254:21;19242:34;;19232:50;28529:51;28635:2;28627:6;28623:15;28617:22;28611:3;28600:9;28596:19;28589:51;28695:2;28687:6;28683:15;28677:22;28671:3;28660:9;28656:19;28649:51;28755:2;28747:6;28743:15;28737:22;28731:3;28720:9;28716:19;28709:51;28797:3;28789:6;28785:16;28779:23;28821:3;28860:2;28855;28844:9;28840:18;28833:30;28900:3;28892:6;28888:16;28882:23;28872:33;;28924:3;28963:2;28958;28947:9;28943:18;28936:30;29003:3;28995:6;28991:16;28985:23;28975:33;;29027:3;29066:2;29061;29050:9;29046:18;29039:30;29124:3;29116:6;29112:16;29106:23;29100:3;29089:9;29085:19;29078:52;29185:2;29177:6;29173:15;29167:22;29161:3;29150:9;29146:19;29139:51;29245:2;29237:6;29233:15;29227:22;29221:3;29210:9;29206:19;29199:51;29297:2;29289:6;29285:15;29279:22;29259:42;;;;;29310:50;29355:3;29344:9;29340:19;29326:12;19261:13;19254:21;19242:34;;19232:50;29310;-1:-1:-1;19644:12:42;;19637:20;19630:28;29426:3;29411:19;;19618:41;19722:4;19711:16;;19705:23;19698:31;19691:39;19675:14;;;19668:63;19794:4;19783:16;;19777:23;19770:31;19763:39;19747:14;;;19740:63;19852:4;19841:16;;19835:23;19819:14;;;19812:47;19261:13;;19254:21;29479:3;29464:19;;19242:34;29440:44;19232:50;30277:404;30479:2;30461:21;;;30518:2;30498:18;;;30491:30;30557:34;30552:2;30537:18;;30530:62;-1:-1:-1;;;30623:2:42;30608:18;;30601:38;30671:3;30656:19;;30451:230::o;33173:400::-;33375:2;33357:21;;;33414:2;33394:18;;;33387:30;33453:34;33448:2;33433:18;;33426:62;-1:-1:-1;;;33519:2:42;33504:18;;33497:34;33563:3;33548:19;;33347:226::o;34320:405::-;34522:2;34504:21;;;34561:2;34541:18;;;34534:30;34600:34;34595:2;34580:18;;34573:62;-1:-1:-1;;;34666:2:42;34651:18;;34644:39;34715:3;34700:19;;34494:231::o;35405:401::-;35607:2;35589:21;;;35646:2;35626:18;;;35619:30;35685:34;35680:2;35665:18;;35658:62;-1:-1:-1;;;35751:2:42;35736:18;;35729:35;35796:3;35781:19;;35579:227::o;37550:399::-;37752:2;37734:21;;;37791:2;37771:18;;;37764:30;37830:34;37825:2;37810:18;;37803:62;-1:-1:-1;;;37896:2:42;37881:18;;37874:33;37939:3;37924:19;;37724:225::o;37954:406::-;38156:2;38138:21;;;38195:2;38175:18;;;38168:30;38234:34;38229:2;38214:18;;38207:62;-1:-1:-1;;;38300:2:42;38285:18;;38278:40;38350:3;38335:19;;38128:232::o;38365:356::-;38567:2;38549:21;;;38586:18;;;38579:30;38645:34;38640:2;38625:18;;38618:62;38712:2;38697:18;;38539:182::o;40862:404::-;41064:2;41046:21;;;41103:2;41083:18;;;41076:30;41142:34;41137:2;41122:18;;41115:62;-1:-1:-1;;;41208:2:42;41193:18;;41186:38;41256:3;41241:19;;41036:230::o;43214:557::-;43307:4;43313:6;43373:11;43360:25;43467:2;43463:7;43452:8;43436:14;43432:29;43428:43;43408:18;43404:68;43394:2;;43489:4;43483;43476:18;43394:2;43519:33;;43571:20;;;-1:-1:-1;;;;;;43603:30:42;;43600:2;;;43649:4;43643;43636:18;43600:2;43685:4;43673:17;;-1:-1:-1;43736:1:42;43732:14;;;43716;43712:35;43702:46;;43699:2;;;43761:1;43758;43751:12;43776:183;43836:4;-1:-1:-1;;;;;43861:6:42;43858:30;43855:2;;;43891:18;;:::i;:::-;-1:-1:-1;43936:1:42;43932:14;43948:4;43928:25;;43845:114::o;44096:128::-;44136:3;44167:1;44163:6;44160:1;44157:13;44154:2;;;44173:18;;:::i;:::-;-1:-1:-1;44209:9:42;;44144:80::o;44229:204::-;44267:3;44303:4;44300:1;44296:12;44335:4;44332:1;44328:12;44370:3;44364:4;44360:14;44355:3;44352:23;44349:2;;;44378:18;;:::i;:::-;44414:13;;44275:158;-1:-1:-1;;;44275:158:42:o;44438:120::-;44478:1;44504;44494:2;;44509:18;;:::i;:::-;-1:-1:-1;44543:9:42;;44484:74::o;44563:165::-;44601:1;44635:4;44632:1;44628:12;44659:3;44649:2;;44666:18;;:::i;:::-;44718:3;44711:4;44708:1;44704:12;44700:22;44695:27;;;44607:121;;;;:::o;44733:422::-;44822:1;44865:5;44822:1;44879:270;44900:7;44890:8;44887:21;44879:270;;;44959:4;44955:1;44951:6;44947:17;44941:4;44938:27;44935:2;;;44968:18;;:::i;:::-;45018:7;45008:8;45004:22;45001:2;;;45038:16;;;;45001:2;45117:22;;;;45077:15;;;;44879:270;;;44883:3;44797:358;;;;;:::o;45160:131::-;45220:5;45249:36;45276:8;45270:4;45345:5;45375:8;45365:2;;-1:-1:-1;45416:1:42;45430:5;;45365:2;45464:4;45454:2;;-1:-1:-1;45501:1:42;45515:5;;45454:2;45546:4;45564:1;45559:59;;;;45632:1;45627:130;;;;45539:218;;45559:59;45589:1;45580:10;;45603:5;;;45627:130;45664:3;45654:8;45651:17;45648:2;;;45671:18;;:::i;:::-;-1:-1:-1;;45727:1:42;45713:16;;45742:5;;45539:218;;45841:2;45831:8;45828:16;45822:3;45816:4;45813:13;45809:36;45803:2;45793:8;45790:16;45785:2;45779:4;45776:12;45772:35;45769:77;45766:2;;;-1:-1:-1;45878:19:42;;;45910:5;;45766:2;45957:34;45982:8;45976:4;45957:34;:::i;:::-;46027:6;46023:1;46019:6;46015:19;46006:7;46003:32;46000:2;;;46038:18;;:::i;:::-;46076:20;;45355:747;-1:-1:-1;;;45355:747:42:o;46107:168::-;46147:7;46213:1;46209;46205:6;46201:14;46198:1;46195:21;46190:1;46183:9;46176:17;46172:45;46169:2;;;46220:18;;:::i;:::-;-1:-1:-1;46260:9:42;;46159:116::o;46280:238::-;46318:7;46358:4;46355:1;46351:12;46390:4;46387:1;46383:12;46450:3;46444:4;46440:14;46435:3;46432:23;46425:3;46418:11;46411:19;46407:49;46404:2;;;46459:18;;:::i;46523:125::-;46563:4;46591:1;46588;46585:8;46582:2;;;46596:18;;:::i;:::-;-1:-1:-1;46633:9:42;;46572:76::o;46653:195::-;46691:4;46728;46725:1;46721:12;46760:4;46757:1;46753:12;46785:3;46780;46777:12;46774:2;;;46792:18;;:::i;:::-;46829:13;;;46700:148;-1:-1:-1;;;46700:148:42:o;46853:258::-;46925:1;46935:113;46949:6;46946:1;46943:13;46935:113;;;47025:11;;;47019:18;47006:11;;;46999:39;46971:2;46964:10;46935:113;;;47066:6;47063:1;47060:13;47057:2;;;-1:-1:-1;;47101:1:42;47083:16;;47076:27;46906:205::o;47116:136::-;47155:3;47183:5;47173:2;;47192:18;;:::i;:::-;-1:-1:-1;;;47228:18:42;;47163:89::o;47257:380::-;47336:1;47332:12;;;;47379;;;47400:2;;47454:4;47446:6;47442:17;47432:27;;47400:2;47507;47499:6;47496:14;47476:18;47473:38;47470:2;;;47553:10;47548:3;47544:20;47541:1;47534:31;47588:4;47585:1;47578:15;47616:4;47613:1;47606:15;47642:225;47728:4;47720:6;47716:17;47799:6;47787:10;47784:22;-1:-1:-1;;;;;47751:10:42;47748:34;47745:62;47742:2;;;47810:18;;:::i;:::-;47846:2;47839:22;-1:-1:-1;47688:179:42:o;47872:249::-;47982:2;47963:13;;-1:-1:-1;;47959:27:42;47947:40;;-1:-1:-1;;;;;48002:34:42;;48038:22;;;47999:62;47996:2;;;48064:18;;:::i;:::-;48100:2;48093:22;-1:-1:-1;;47919:202:42:o;48126:135::-;48165:3;-1:-1:-1;;48186:17:42;;48183:2;;;48206:18;;:::i;:::-;-1:-1:-1;48253:1:42;48242:13;;48173:88::o;48266:112::-;48298:1;48324;48314:2;;48329:18;;:::i;:::-;-1:-1:-1;48363:9:42;;48304:74::o;48383:127::-;48444:10;48439:3;48435:20;48432:1;48425:31;48475:4;48472:1;48465:15;48499:4;48496:1;48489:15;48515:127;48576:10;48571:3;48567:20;48564:1;48557:31;48607:4;48604:1;48597:15;48631:4;48628:1;48621:15;48647:127;48708:10;48703:3;48699:20;48696:1;48689:31;48739:4;48736:1;48729:15;48763:4;48760:1;48753:15;48779:185;48814:3;48856:1;48838:16;48835:23;48832:2;;;48906:1;48901:3;48896;48881:27;48937:10;48932:3;48928:20;48832:2;48822:142;:::o;48969:671::-;49008:3;49050:4;49032:16;49029:26;49026:2;;;49016:624;:::o;49026:2::-;49092;49086:9;-1:-1:-1;;49157:16:42;49153:25;;49150:1;49086:9;49129:50;49208:4;49202:11;49232:16;-1:-1:-1;;;;;49338:2:42;49331:4;49323:6;49319:17;49316:25;49311:2;49303:6;49300:14;49297:45;49294:2;;;49345:5;;;;;49016:624;:::o;49294:2::-;49382:6;49376:4;49372:17;49361:28;;49418:3;49412:10;49445:2;49437:6;49434:14;49431:2;;;49451:5;;;;;;49016:624;:::o;49431:2::-;49535;49516:16;49510:4;49506:27;49502:36;49495:4;49486:6;49481:3;49477:16;49473:27;49470:69;49467:2;;;49542:5;;;;;;49016:624;:::o;49467:2::-;49558:57;49609:4;49600:6;49592;49588:19;49584:30;49578:4;49558:57;:::i;:::-;-1:-1:-1;49631:3:42;;49016:624;-1:-1:-1;;;;;49016:624:42:o;49645:131::-;-1:-1:-1;;;;;49720:31:42;;49710:42;;49700:2;;49766:1;49763;49756:12;49781:131;-1:-1:-1;;;;;;49855:32:42;;49845:43;;49835:2;;49902:1;49899;49892:12
Swarm Source
ipfs://0d7ba2ee7e54a7bf122b45083b448efeed6d70663e219eaf42dec7808c75960a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 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.