ERC-1155
Overview
Max Total Supply
252
Holders
132
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
OriginalsHandDrawnLoops
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
petersburg EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; // ========== Imports ========== import "./access/AdminControl.sol"; import "./token/IRemixOriginal.sol"; import "./token/extensions/ERC1155RandomMint.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract OriginalsHandDrawnLoops is ERC1155, ERC1155Burnable, ERC1155RandomMint, Pausable, ReentrancyGuard, AdminControl, Ownable, IRemixOriginal { using Strings for uint256; // ========== Mint Window Maximum Supply ========== uint16 internal GOLD_WINDOW_MAX_SUPPLY = 50; uint16 internal ANY_WINDOW_MAX_SUPPLY = 126; uint16 internal REMIX_WINDOW_MAX_SUPPLY = 59; uint8 constant GOLD_TOKEN_ID = 1; uint8 constant BASIC_TOKEN_ID = 2; // ========== Immutable Variables ========== /// @notice Mint Token Address address payable public immutable MINT_TOKEN_CONTRACT_ADDRESS; /// @notice Remix Contract Address address payable public immutable REMIX_CONTRACT_ADDRESS; /// @notice An address to withdraw balance to address payable public immutable PAYABLE_ADDRESS_1; /// @notice An address to withdraw balance to address payable public immutable PAYABLE_ADDRESS_2; // ========== Mutable Variables ========== string public baseURI; mapping(address => mapping(TokenRequirementType => uint256)) numMintsPerAddress; enum TokenRequirementType { NONE, GOLD, BASIC, ANY } struct MintWindow { TokenRequirementType tokenRequirement; bool remixHolderRequired; uint mintCostToken; uint256 mintCostETH; uint256 maximumSupply; uint16 walletLimit; } mapping(address => mapping(MintWindowType => uint256)) numberOfTokensMintedPerWindowByAddress; enum MintWindowType { GOLD, ANY, REMIX, PUBLIC } mapping(MintWindowType => MintWindow) public mintWindows; MintWindowType public currentMintWindow; mapping(MintWindowType => uint256) public numMintsByWindow; // ========== Constructor ========== constructor( address payable _MINT_TOKEN_CONTRACT_ADDRESS, address payable _REMIX_CONTRACT_ADDRESS, address _payableAddress1, address _payableAddress2, uint256[] memory tokenSupply ) ERC1155(baseURI) ERC1155RandomMint(tokenSupply) { baseURI = "https://storageapi.fleek.co/apedao-bucket/hand-drawn-loops/"; REMIX_CONTRACT_ADDRESS = _REMIX_CONTRACT_ADDRESS; MINT_TOKEN_CONTRACT_ADDRESS = _MINT_TOKEN_CONTRACT_ADDRESS; PAYABLE_ADDRESS_1 = payable(_payableAddress1); PAYABLE_ADDRESS_2 = payable(_payableAddress2); // Define Planned Mint Windows mintWindows[MintWindowType.GOLD] = MintWindow( TokenRequirementType.GOLD, true, 2, 0, // Free GOLD_WINDOW_MAX_SUPPLY, 5 ); mintWindows[MintWindowType.ANY] = MintWindow( TokenRequirementType.ANY, true, 1, 0.05 ether, // 0.05 ETH ANY_WINDOW_MAX_SUPPLY, 5 ); mintWindows[MintWindowType.REMIX] = MintWindow( TokenRequirementType.NONE, true, 0, 0.07 ether, // 0.07 ETH REMIX_WINDOW_MAX_SUPPLY, 5 ); mintWindows[MintWindowType.PUBLIC] = MintWindow( TokenRequirementType.NONE, false, 0, 0.09 ether, // 0.09 ETH totalTokenSupply, // No Maximum 0 ); // Start with the current mint window as gold and pause sale currentMintWindow = MintWindowType.GOLD; _pause(); } // ========== Minting ========== function mint(uint256 _quantity) public payable whenNotPaused nonReentrant { require(mintWindows[currentMintWindow].tokenRequirement == TokenRequirementType.NONE, "Mint tokens are required to mint."); canMint(_quantity); _mint(msg.sender, _quantity); numMintsByWindow[currentMintWindow] += _quantity; numberOfTokensMintedPerWindowByAddress[msg.sender][currentMintWindow] += _quantity; } function mintWithTokens(uint256 _numGoldTokens, uint256 _basicGoldTokens) public payable whenNotPaused nonReentrant { require(mintWindows[currentMintWindow].tokenRequirement != TokenRequirementType.NONE, "Mint tokens are required to mint."); uint256 _tokens; if(mintWindows[currentMintWindow].tokenRequirement == TokenRequirementType.GOLD) { require(_numGoldTokens > 0, "Gold token must be greater than 0"); require(_basicGoldTokens == 0, "only gold tokens are required to mint"); _tokens = _numGoldTokens; } if(mintWindows[currentMintWindow].tokenRequirement == TokenRequirementType.BASIC) { require(_basicGoldTokens > 0, "Basic token must be greater than 0"); require(_numGoldTokens == 0, "only basic tokens are required to mint"); _tokens = _basicGoldTokens; } if(mintWindows[currentMintWindow].tokenRequirement == TokenRequirementType.ANY) { require(_numGoldTokens > 0 || _basicGoldTokens > 0, "Gold or Basic token must be greater than 0"); _tokens = _basicGoldTokens + _numGoldTokens; } // Calculate quantity require(_tokens % mintWindows[currentMintWindow].mintCostToken == 0, "Quantity must be a multiple of mint cost token"); uint256 _quantity = _tokens / mintWindows[currentMintWindow].mintCostToken; canMint(_quantity); // Burn Mint Tokens ERC1155Burnable mintClubContract = ERC1155Burnable(MINT_TOKEN_CONTRACT_ADDRESS); // If Gold token is required if((getMintTokenRequirement() == TokenRequirementType.GOLD || getMintTokenRequirement() == TokenRequirementType.ANY) && _numGoldTokens > 0) { mintClubContract.burn(msg.sender, GOLD_TOKEN_ID, _numGoldTokens); } // If Basic token is required if((getMintTokenRequirement() == TokenRequirementType.BASIC || getMintTokenRequirement() == TokenRequirementType.ANY) && _basicGoldTokens > 0) { mintClubContract.burn(msg.sender, BASIC_TOKEN_ID, _basicGoldTokens); } _mint(msg.sender, _quantity); numMintsByWindow[currentMintWindow] += _quantity; numberOfTokensMintedPerWindowByAddress[msg.sender][currentMintWindow] += _quantity; } function canMint(uint256 _quantity) internal view { require(_quantity > 0, "Quantity must be greater than 0"); require(numMintsByWindow[currentMintWindow] + _quantity <= mintWindows[currentMintWindow].maximumSupply, "Quantity must be less than remaining supply for this window"); // Check mint cost uint256 mintPrice = mintWindows[currentMintWindow].mintCostETH; require(msg.value >= mintPrice * _quantity, "Insufficient ETH for minting"); // Check Wallet Limit uint256 walletLimit = mintWindows[currentMintWindow].walletLimit; require(walletLimit == 0 || (numberOfTokensMintedPerWindowByAddress[msg.sender][currentMintWindow] + _quantity <= walletLimit), "You have reached your wallet limit for this window"); // Check if Remix Holder is required if(mintWindows[currentMintWindow].remixHolderRequired) { IERC721 remixContract = IERC721(REMIX_CONTRACT_ADDRESS); require(remixContract.balanceOf(msg.sender) > 0, "You must be a Remix holder to mint"); } } function mintReservedTokens(address artistAddress, address daoAddress, address devAddress) public onlyAdmin { // Artist uint8[] memory artistTokenIds = new uint8[](12); uint8[] memory artistTokenAmounts = new uint8[](12); artistTokenIds[0] = 13; artistTokenAmounts[0] = 1; artistTokenIds[1] = 14; artistTokenAmounts[1] = 1; artistTokenIds[2] = 15; artistTokenAmounts[2] = 1; artistTokenIds[3] = 16; artistTokenAmounts[3] = 2; artistTokenIds[4] = 17; artistTokenAmounts[4] = 1; artistTokenIds[5] = 18; artistTokenAmounts[5] = 1; artistTokenIds[6] = 19; artistTokenAmounts[6] = 1; artistTokenIds[7] = 20; artistTokenAmounts[7] = 1; artistTokenIds[8] = 21; artistTokenAmounts[8] = 1; artistTokenIds[9] = 22; artistTokenAmounts[9] = 2; artistTokenIds[10] = 23; artistTokenAmounts[10] = 1; artistTokenIds[11] = 24; artistTokenAmounts[11] = 2; _mintBatchOfTokenIds(artistAddress, artistTokenIds, artistTokenAmounts); // Dao uint8[] memory daoTokenIds = new uint8[](1); uint8[] memory daoTokenAmounts = new uint8[](1); daoTokenIds[0] = 13; daoTokenAmounts[0] = 1; _mintBatchOfTokenIds(daoAddress, daoTokenIds, daoTokenAmounts); // Dev uint8[] memory devTokenIds = new uint8[](1); uint8[] memory devTokenAmounts = new uint8[](1); devTokenIds[0] = 12; devTokenAmounts[0] = 1; _mintBatchOfTokenIds(devAddress, devTokenIds, devTokenAmounts); } // ========== Public Methods ========== function getMintTokenRequirement() public view returns (TokenRequirementType) { return mintWindows[currentMintWindow].tokenRequirement; } function isRemixHolderRequired() public view returns (bool) { return mintWindows[currentMintWindow].remixHolderRequired; } function getMintCostETH() public view returns (uint256) { return mintWindows[currentMintWindow].mintCostETH; } function getMintCostToken() public view returns (uint256) { return mintWindows[currentMintWindow].mintCostToken; } function getMaximumSupply() public view returns (uint256) { return mintWindows[currentMintWindow].maximumSupply; } function getRemainingSupply() public view returns (uint256) { return mintWindows[currentMintWindow].maximumSupply - numMintsByWindow[currentMintWindow]; } function getWalletLimit() public view returns (uint16) { return mintWindows[currentMintWindow].walletLimit; } function getNumMintedInCurrentWindow(address _address) public view returns (uint256) { return numberOfTokensMintedPerWindowByAddress[_address][currentMintWindow]; } // ========== Admin ========== function setMintTokenRequirement(TokenRequirementType _tokenRequirement) public onlyAdmin { mintWindows[currentMintWindow].tokenRequirement = _tokenRequirement; } function setRemixHolderRequired(bool _value) public onlyAdmin { mintWindows[currentMintWindow].remixHolderRequired = _value; } function setMintCostETH(uint256 _mintCost) public onlyAdmin { mintWindows[currentMintWindow].mintCostETH = _mintCost; } function setMintCostToken(uint256 _mintCost) public onlyAdmin { mintWindows[currentMintWindow].mintCostToken = _mintCost; } function setMaximumSupply(uint16 _maximumSupply) public onlyAdmin { mintWindows[currentMintWindow].maximumSupply = _maximumSupply; } function setWalletLimit(uint16 _walletLimit) public onlyAdmin { mintWindows[currentMintWindow].walletLimit = _walletLimit; } function setBaseURI(string memory _baseURI) public onlyAdmin { baseURI = _baseURI; } function setCurrentMintWindow(MintWindowType _mintWindow) public onlyAdmin { currentMintWindow = _mintWindow; } function withdraw() public onlyAdmin { Address.sendValue(payable(PAYABLE_ADDRESS_1), address(this).balance * 60 / 100); Address.sendValue(payable(PAYABLE_ADDRESS_2), address(this).balance); } function pause() public onlyAdmin { _pause(); } function unpause() public onlyAdmin { _unpause(); } // ============ Overrides ======== function supportsInterface(bytes4 interfaceId) public view override(ERC1155, AdminControl) returns (bool) { return super.supportsInterface(interfaceId); } function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal override(ERC1155) { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } function _mint(address account, uint256 id, uint256 amount, bytes memory data) internal override(ERC1155, ERC1155Supply) { super._mint(account, id, amount, data); } function _mintBatch(address account, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal override(ERC1155, ERC1155Supply) { super._mintBatch(account, ids, amounts, data); } function _burn(address account, uint256 id, uint256 amount) internal override(ERC1155, ERC1155Supply) { super._burn(account, id, amount); } function _burnBatch(address account, uint256[] memory ids, uint256[] memory amounts) internal override(ERC1155, ERC1155Supply) { super._burnBatch(account, ids, amounts); } function uri(uint256 _tokenId) public view override returns (string memory) { require(_tokenId > 0 && _tokenId <= 24, "URI requested for invalid token"); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, _tokenId.toString())) : baseURI; } }
// 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; /** * @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; 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 "../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 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.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 "../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"; /** * @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; 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; 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; /** * @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; /** * @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.9; import "./IAdminControl.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/Context.sol"; abstract contract AdminControl is AccessControl { bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); constructor() { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(ADMIN_ROLE, _msgSender()); } // ========== Modifiers ========== modifier onlyAdmin() { require(hasRole(ADMIN_ROLE, _msgSender()), "Caller is not an admin"); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAdminControl).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AdminControl declared to support ERC165 detection. */ interface IAdminControl { }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; interface IRemixOriginal { function mint(uint256 _quantity) external payable; function mintWithTokens(uint256 _numGoldTokens, uint256 _basicGoldTokens) external payable; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; abstract contract ERC1155RandomMint is ERC1155Supply { /** @dev This is a static array */ uint256[25] public mintableTokenCount; mapping(address => uint256) public numberOfTokensMintedByAddress; uint256 public totalTokenSupply; uint256 public numTokensMinted; /** * @dev Configure the mintable token ids and their corresponding supply. */ constructor(uint256[] memory _mintableTokenMaximumSupply) { for(uint256 i = 0; i < _mintableTokenMaximumSupply.length; i++ ) { mintableTokenCount[i] = _mintableTokenMaximumSupply[i]; totalTokenSupply += _mintableTokenMaximumSupply[i]; } } function _mint(address _to, uint256 _amount) internal { require(mintableSupply() > 0, "Not enough supply to mint all amount required"); for(uint256 i=0; i < _amount; i++ ) { uint256 seed = uint256(keccak256(abi.encodePacked(block.difficulty, block.timestamp, _msgSender(), i))); uint256 tokenIndex = seed % mintableSupply(); uint256 tokenId = tokenIdAtIndex(tokenIndex); _internalMintTokenId(_to, tokenId, 1); } } function _mintBatchOfTokenIds(address _to, uint8[] memory _tokenIds, uint8[] memory _amounts) internal { require(_tokenIds.length == _amounts.length, "Length of tokenId and amounts must be equal"); for(uint8 i=0; i<_tokenIds.length; i++ ) { _internalMintTokenId(_to, _tokenIds[i], _amounts[i]); } } function _internalMintTokenId(address _to, uint256 tokenId, uint256 _amount) internal { require(mintableTokenCount[tokenId] >= _amount, "TokenId not mintable"); mintableTokenCount[tokenId] -= _amount; numTokensMinted += _amount; numberOfTokensMintedByAddress[_to] += _amount; super._mint(_to, tokenId, _amount, "0x"); } function mintableSupply() public view returns (uint256) { return totalTokenSupply - numTokensMinted; } function tokenIdAtIndex(uint256 index) public view returns (uint256) { for(uint256 i = 0; i < mintableTokenCount.length; i++ ) { if (index < mintableTokenCount[i]) { return i; } index -= mintableTokenCount[i]; } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "petersburg", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address payable","name":"_MINT_TOKEN_CONTRACT_ADDRESS","type":"address"},{"internalType":"address payable","name":"_REMIX_CONTRACT_ADDRESS","type":"address"},{"internalType":"address","name":"_payableAddress1","type":"address"},{"internalType":"address","name":"_payableAddress2","type":"address"},{"internalType":"uint256[]","name":"tokenSupply","type":"uint256[]"}],"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":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":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":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_TOKEN_CONTRACT_ADDRESS","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAYABLE_ADDRESS_1","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAYABLE_ADDRESS_2","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REMIX_CONTRACT_ADDRESS","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"currentMintWindow","outputs":[{"internalType":"enum OriginalsHandDrawnLoops.MintWindowType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaximumSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintCostETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintCostToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintTokenRequirement","outputs":[{"internalType":"enum OriginalsHandDrawnLoops.TokenRequirementType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getNumMintedInCurrentWindow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemainingSupply","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":[],"name":"getWalletLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":[],"name":"isRemixHolderRequired","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"artistAddress","type":"address"},{"internalType":"address","name":"daoAddress","type":"address"},{"internalType":"address","name":"devAddress","type":"address"}],"name":"mintReservedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum OriginalsHandDrawnLoops.MintWindowType","name":"","type":"uint8"}],"name":"mintWindows","outputs":[{"internalType":"enum OriginalsHandDrawnLoops.TokenRequirementType","name":"tokenRequirement","type":"uint8"},{"internalType":"bool","name":"remixHolderRequired","type":"bool"},{"internalType":"uint256","name":"mintCostToken","type":"uint256"},{"internalType":"uint256","name":"mintCostETH","type":"uint256"},{"internalType":"uint256","name":"maximumSupply","type":"uint256"},{"internalType":"uint16","name":"walletLimit","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numGoldTokens","type":"uint256"},{"internalType":"uint256","name":"_basicGoldTokens","type":"uint256"}],"name":"mintWithTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintableTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum OriginalsHandDrawnLoops.MintWindowType","name":"","type":"uint8"}],"name":"numMintsByWindow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numTokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numberOfTokensMintedByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum OriginalsHandDrawnLoops.MintWindowType","name":"_mintWindow","type":"uint8"}],"name":"setCurrentMintWindow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maximumSupply","type":"uint16"}],"name":"setMaximumSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintCost","type":"uint256"}],"name":"setMintCostETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintCost","type":"uint256"}],"name":"setMintCostToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum OriginalsHandDrawnLoops.TokenRequirementType","name":"_tokenRequirement","type":"uint8"}],"name":"setMintTokenRequirement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_value","type":"bool"}],"name":"setRemixHolderRequired","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_walletLimit","type":"uint16"}],"name":"setWalletLimit","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenIdAtIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokenSupply","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":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101006040526023805465ffffffffffff60a01b1916783b007e003200000000000000000000000000000000000000001790553480156200003f57600080fd5b5060405162005cc138038062005cc18339810160408190526200006291620008f0565b8060248054620000729062000a13565b80601f0160208091040260200160405190810160405280929190818152602001828054620000a09062000a13565b8015620000f15780601f10620000c557610100808354040283529160200191620000f1565b820191906000526020600020905b815481529060010190602001808311620000d357829003601f168201915b505050505062000107816200062260201b60201c565b5060005b815181101562000197578181815181106200012a576200012a62000a69565b60200260200101516004826019811062000148576200014862000a69565b0155815182908290811062000161576200016162000a69565b6020026020010151601e60008282546200017c919062000ac7565b909155508190506200018e8162000ae2565b9150506200010b565b50506020805460ff191690556001602155620001b56000336200063b565b620001e17fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336200063b565b620001ec3362000647565b6040518060600160405280603b815260200162005c86603b913980516200021c9160249160209091019062000802565b506001600160a01b0380851660a05285811660805283811660c090815290831660e0526040805191820190528060018152600160208201526002604082015260006060820181905260235474010000000000000000000000000000000000000000900461ffff166080830152600560a090920191909152602790806003811115620002ab57620002ab62000b00565b8152602081019190915260400160002081518154829060ff19166001836003811115620002dc57620002dc62000b00565b0217905550602082810151825461ff00191661010091151591909102178255604080840151600180850191909155606080860151600286015560808087015160038088019190915560a0978801516004909701805461ffff191661ffff988916179055845160c08101865290815294850183905292840182905266b1a2bc2ec50000908401526023547601000000000000000000000000000000000000000000009004909316908201526005928101929092526027906000908152602081019190915260400160002081518154829060ff19166001836003811115620003c657620003c662000b00565b02179055506020820151815461ff001916610100911515919091021781556040808301516001830155606083015160028301556080830151600383015560a0909201516004909101805461ffff191661ffff909216919091179055805160c0810190915280600081526001602082015260006040820181905266f8b0a10e47000060608301526023547801000000000000000000000000000000000000000000000000900461ffff166080830152600560a0909201919091526027906002600381111562000498576200049862000b00565b8152602081019190915260400160002081518154829060ff19166001836003811115620004c957620004c962000b00565b02179055506020820151815461ff001916610100911515919091021781556040808301516001830155606083015160028301556080830151600383015560a0909201516004909101805461ffff191661ffff909216919091179055805160c0810190915280600081526000602082018190526040820181905267013fbe85edc900006060830152601e54608083015260a090910181905260279060038081111562000578576200057862000b00565b8152602081019190915260400160002081518154829060ff19166001836003811115620005a957620005a962000b00565b02179055506020820151815461ff0019166101009115159190910217815560408201516001820155606082015160028201556080820151600382015560a0909101516004909101805461ffff191661ffff9092169190911790556028805460ff191690556200061762000699565b505050505062000b2f565b80516200063790600290602084019062000802565b5050565b6200063782826200075e565b602380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60205460ff16156200070b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640160405180910390fd5b6020805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620007413390565b6040516001600160a01b03909116815260200160405180910390a1565b60008281526022602090815260408083206001600160a01b038516845290915290205460ff16620006375760008281526022602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620007be3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620008109062000a13565b90600052602060002090601f0160209004810192826200083457600085556200087f565b82601f106200084f57805160ff19168380011785556200087f565b828001600101855582156200087f579182015b828111156200087f57825182559160200191906001019062000862565b506200088d92915062000891565b5090565b5b808211156200088d576000815560010162000892565b6001600160a01b0381168114620008be57600080fd5b50565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080600080600060a086880312156200090957600080fd5b85516200091681620008a8565b809550506020808701516200092b81620008a8565b60408801519095506200093e81620008a8565b60608801519094506200095181620008a8565b60808801519093506001600160401b03808211156200096f57600080fd5b818901915089601f8301126200098457600080fd5b815181811115620009995762000999620008c1565b8060051b604051601f19603f83011681018181108582111715620009c157620009c1620008c1565b60405291825284820192508381018501918c831115620009e057600080fd5b938501935b8285101562000a0057845184529385019392850192620009e5565b8096505050505050509295509295909350565b600181811c9082168062000a2857607f821691505b6020821081141562000a63577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111562000add5762000add62000a98565b500190565b600060001982141562000af95762000af962000a98565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60805160a05160c05160e05161510162000b8560003960008181610978015261162901526000818161090401526115e80152600081816106b5015261350e015260008181610a93015261253401526151016000f3fe60806040526004361061038b5760003560e01c806375b238fc116101dc578063bd85b03911610102578063e4b7fb73116100a0578063f242432a1161006f578063f242432a14610b18578063f26b82aa14610b38578063f2fde38b14610b58578063f5298aca14610b7857600080fd5b8063e4b7fb7314610a6c578063e87176f014610a81578063e89dfd9414610ab5578063e985e9c514610acf57600080fd5b8063c88daa38116100dc578063c88daa3814610a02578063cc5c095c14610a22578063d547741f14610a37578063d7126fef14610a5757600080fd5b8063bd85b03914610939578063bf9aa9d014610966578063c46c1f221461099a57600080fd5b8063a0712d681161017a578063a38ba4b211610149578063a38ba4b2146108a5578063b38c7c09146108c5578063b5f26dcf146108f2578063b6079f361461092657600080fd5b8063a0712d681461083d578063a217fddf14610850578063a22cb46514610865578063a37e34731461088557600080fd5b80638456cb59116101b65780638456cb59146107bd5780638cda8bcf146107d25780638da5cb5b146107ff57806391d148541461081d57600080fd5b806375b238fc1461075b578063784eadcf1461077d578063841d95521461079d57600080fd5b80634230baee116102c1578063517e511a1161025f5780636b20c4541161022e5780636b20c454146106ef5780636c0360eb1461070f578063715018a614610724578063754b85d41461073957600080fd5b8063517e511a1461064357806355f804b31461066b5780635c975abb1461068b5780636113494c146106a357600080fd5b80634a26c99d1161029b5780634a26c99d146105b25780634bedc548146105d25780634e1273f4146105e75780634f558e791461061457600080fd5b80634230baee1461056757806342d803621461057d5780634329595a1461059257600080fd5b80632eb2c2d61161032e57806336568abe1161030857806336568abe1461050857806337736ce8146105285780633ccfd60b1461053d5780633f4ba83a1461055257600080fd5b80632eb2c2d6146104a85780632f2ff15d146104c85780632f82b32f146104e857600080fd5b80631ca8b6cb1161036a5780631ca8b6cb14610420578063248a9ca31461043657806327c521fc146104665780632bfcbbca1461048857600080fd5b8062fdd58e1461039057806301ffc9a7146103c35780630e89341c146103f3575b600080fd5b34801561039c57600080fd5b506103b06103ab3660046142bd565b610b98565b6040519081526020015b60405180910390f35b3480156103cf57600080fd5b506103e36103de3660046142fd565b610c2f565b60405190151581526020016103ba565b3480156103ff57600080fd5b5061041361040e36600461431a565b610c40565b6040516103ba919061438b565b34801561042c57600080fd5b506103b0601e5481565b34801561044257600080fd5b506103b061045136600461431a565b60009081526022602052604090206001015490565b34801561047257600080fd5b5061048661048136600461431a565b610d76565b005b34801561049457600080fd5b506104866104a336600461439e565b610df1565b3480156104b457600080fd5b506104866104c3366004614518565b610e70565b3480156104d457600080fd5b506104866104e33660046145c2565b610f07565b3480156104f457600080fd5b506104866105033660046145ee565b610f32565b34801561051457600080fd5b506104866105233660046145c2565b6114e3565b34801561053457600080fd5b506103e3611561565b34801561054957600080fd5b506104866115af565b34801561055e57600080fd5b50610486611651565b34801561057357600080fd5b506103b0601f5481565b34801561058957600080fd5b506103b061168d565b34801561059e57600080fd5b506103b06105ad366004614631565b6116d4565b3480156105be57600080fd5b506104866105cd36600461431a565b61172c565b3480156105de57600080fd5b506103b06117a7565b3480156105f357600080fd5b5061060761060236600461464c565b6117ee565b6040516103ba9190614752565b34801561062057600080fd5b506103e361062f36600461431a565b600090815260036020526040902054151590565b34801561064f57600080fd5b50610658611918565b60405161ffff90911681526020016103ba565b34801561067757600080fd5b50610486610686366004614765565b611965565b34801561069757600080fd5b5060205460ff166103e3565b3480156106af57600080fd5b506106d77f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016103ba565b3480156106fb57600080fd5b5061048661070a3660046147ae565b6119ac565b34801561071b57600080fd5b506104136119ef565b34801561073057600080fd5b50610486611a7d565b34801561074557600080fd5b5061074e611ae1565b6040516103ba9190614856565b34801561076757600080fd5b506103b06000805160206150ac83398151915281565b34801561078957600080fd5b50610486610798366004614879565b611b2a565b3480156107a957600080fd5b506104866107b83660046148a1565b611bb7565b3480156107c957600080fd5b50610486611c4d565b3480156107de57600080fd5b506103b06107ed366004614631565b601d6020526000908152604090205481565b34801561080b57600080fd5b506023546001600160a01b03166106d7565b34801561082957600080fd5b506103e36108383660046145c2565b611c89565b61048661084b36600461431a565b611cb4565b34801561085c57600080fd5b506103b0600081565b34801561087157600080fd5b506104866108803660046148be565b611e6a565b34801561089157600080fd5b506103b06108a036600461431a565b611f41565b3480156108b157600080fd5b506104866108c036600461439e565b611fa9565b3480156108d157600080fd5b506103b06108e03660046148a1565b60296020526000908152604090205481565b3480156108fe57600080fd5b506106d77f000000000000000000000000000000000000000000000000000000000000000081565b6104866109343660046148e8565b61203b565b34801561094557600080fd5b506103b061095436600461431a565b60009081526003602052604090205490565b34801561097257600080fd5b506106d77f000000000000000000000000000000000000000000000000000000000000000081565b3480156109a657600080fd5b506109f06109b53660046148a1565b6027602052600090815260409020805460018201546002830154600384015460049094015460ff8085169561010090950416939061ffff1686565b6040516103ba9695949392919061490a565b348015610a0e57600080fd5b506103b0610a1d36600461431a565b612787565b348015610a2e57600080fd5b506103b061279e565b348015610a4357600080fd5b50610486610a523660046145c2565b6127b5565b348015610a6357600080fd5b506103b06127db565b348015610a7857600080fd5b506103b0612822565b348015610a8d57600080fd5b506106d77f000000000000000000000000000000000000000000000000000000000000000081565b348015610ac157600080fd5b5060285461074e9060ff1681565b348015610adb57600080fd5b506103e3610aea366004614944565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610b2457600080fd5b50610486610b3336600461496e565b6128ae565b348015610b4457600080fd5b50610486610b533660046148a1565b6128f3565b348015610b6457600080fd5b50610486610b73366004614631565b612946565b348015610b8457600080fd5b50610486610b933660046149d3565b612a11565b60006001600160a01b038316610c095760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b6000610c3a82612a54565b92915050565b6060600082118015610c53575060188211155b610c9f5760405162461bcd60e51b815260206004820152601f60248201527f5552492072657175657374656420666f7220696e76616c696420746f6b656e006044820152606401610c00565b600060248054610cae90614a06565b905011610d455760248054610cc290614a06565b80601f0160208091040260200160405190810160405280929190818152602001828054610cee90614a06565b8015610d3b5780601f10610d1057610100808354040283529160200191610d3b565b820191906000526020600020905b815481529060010190602001808311610d1e57829003601f168201915b5050505050610c3a565b6024610d5083612a71565b604051602001610d61929190614a57565b60405160208183030381529060405292915050565b610d8e6000805160206150ac83398151915233611c89565b610daa5760405162461bcd60e51b8152600401610c0090614afe565b602854819060279060009060ff166003811115610dc957610dc9614822565b6003811115610dda57610dda614822565b815260208101919091526040016000206001015550565b610e096000805160206150ac83398151915233611c89565b610e255760405162461bcd60e51b8152600401610c0090614afe565b60285461ffff82169060279060009060ff166003811115610e4857610e48614822565b6003811115610e5957610e59614822565b815260208101919091526040016000206003015550565b6001600160a01b038516331480610e8c5750610e8c8533610aea565b610ef35760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610c00565b610f008585858585612b77565b5050505050565b600082815260226020526040902060010154610f238133612d21565b610f2d8383612d85565b505050565b610f4a6000805160206150ac83398151915233611c89565b610f665760405162461bcd60e51b8152600401610c0090614afe565b60408051600c8082526101a082019092526000916020820161018080368337505060408051600c8082526101a0820190925292935060009291506020820161018080368337019050509050600d82600081518110610fc657610fc6614b2e565b602002602001019060ff16908160ff1681525050600181600081518110610fef57610fef614b2e565b602002602001019060ff16908160ff1681525050600e8260018151811061101857611018614b2e565b602002602001019060ff16908160ff168152505060018160018151811061104157611041614b2e565b602002602001019060ff16908160ff1681525050600f8260028151811061106a5761106a614b2e565b602002602001019060ff16908160ff168152505060018160028151811061109357611093614b2e565b602002602001019060ff16908160ff16815250506010826003815181106110bc576110bc614b2e565b602002602001019060ff16908160ff16815250506002816003815181106110e5576110e5614b2e565b602002602001019060ff16908160ff168152505060118260048151811061110e5761110e614b2e565b602002602001019060ff16908160ff168152505060018160048151811061113757611137614b2e565b602002602001019060ff16908160ff168152505060128260058151811061116057611160614b2e565b602002602001019060ff16908160ff168152505060018160058151811061118957611189614b2e565b602002602001019060ff16908160ff16815250506013826006815181106111b2576111b2614b2e565b602002602001019060ff16908160ff16815250506001816006815181106111db576111db614b2e565b602002602001019060ff16908160ff168152505060148260078151811061120457611204614b2e565b602002602001019060ff16908160ff168152505060018160078151811061122d5761122d614b2e565b602002602001019060ff16908160ff168152505060158260088151811061125657611256614b2e565b602002602001019060ff16908160ff168152505060018160088151811061127f5761127f614b2e565b602002602001019060ff16908160ff16815250506016826009815181106112a8576112a8614b2e565b602002602001019060ff16908160ff16815250506002816009815181106112d1576112d1614b2e565b602002602001019060ff16908160ff1681525050601782600a815181106112fa576112fa614b2e565b602002602001019060ff16908160ff1681525050600181600a8151811061132357611323614b2e565b602002602001019060ff16908160ff1681525050601882600b8151811061134c5761134c614b2e565b602002602001019060ff16908160ff1681525050600281600b8151811061137557611375614b2e565b602002602001019060ff16908160ff1681525050611394858383612e0b565b604080516001808252818301909252600091602080830190803683375050604080516001808252818301909252929350600092915060208083019080368337019050509050600d826000815181106113ee576113ee614b2e565b602002602001019060ff16908160ff168152505060018160008151811061141757611417614b2e565b602002602001019060ff16908160ff1681525050611436868383612e0b565b604080516001808252818301909252600091602080830190803683375050604080516001808252818301909252929350600092915060208083019080368337019050509050600c8260008151811061149057611490614b2e565b602002602001019060ff16908160ff16815250506001816000815181106114b9576114b9614b2e565b602002602001019060ff16908160ff16815250506114d8878383612e0b565b505050505050505050565b6001600160a01b03811633146115535760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610c00565b61155d8282612ee0565b5050565b602854600090602790829060ff16600381111561158057611580614822565b600381111561159157611591614822565b8152602081019190915260400160002054610100900460ff16919050565b6115c76000805160206150ac83398151915233611c89565b6115e35760405162461bcd60e51b8152600401610c0090614afe565b6116247f000000000000000000000000000000000000000000000000000000000000000060646116153031603c614b5a565b61161f9190614b8f565b612f47565b61164f7f00000000000000000000000000000000000000000000000000000000000000003031612f47565b565b6116696000805160206150ac83398151915233611c89565b6116855760405162461bcd60e51b8152600401610c0090614afe565b61164f613061565b602854600090602790829060ff1660038111156116ac576116ac614822565b60038111156116bd576116bd614822565b815260200190815260200160002060020154905090565b6001600160a01b0381166000908152602660205260408120602854829060ff16600381111561170557611705614822565b600381111561171657611716614822565b8152602001908152602001600020549050919050565b6117446000805160206150ac83398151915233611c89565b6117605760405162461bcd60e51b8152600401610c0090614afe565b602854819060279060009060ff16600381111561177f5761177f614822565b600381111561179057611790614822565b815260208101919091526040016000206002015550565b602854600090602790829060ff1660038111156117c6576117c6614822565b60038111156117d7576117d7614822565b815260200190815260200160002060030154905090565b606081518351146118535760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610c00565b6000835167ffffffffffffffff81111561186f5761186f6143c2565b604051908082528060200260200182016040528015611898578160200160208202803683370190505b50905060005b8451811015611910576118e38582815181106118bc576118bc614b2e565b60200260200101518583815181106118d6576118d6614b2e565b6020026020010151610b98565b8282815181106118f5576118f5614b2e565b602090810291909101015261190981614ba3565b905061189e565b509392505050565b602854600090602790829060ff16600381111561193757611937614822565b600381111561194857611948614822565b815260208101919091526040016000206004015461ffff16919050565b61197d6000805160206150ac83398151915233611c89565b6119995760405162461bcd60e51b8152600401610c0090614afe565b805161155d906024906020840190614208565b6001600160a01b0383163314806119c857506119c88333610aea565b6119e45760405162461bcd60e51b8152600401610c0090614bbe565b610f2d8383836130f4565b602480546119fc90614a06565b80601f0160208091040260200160405190810160405280929190818152602001828054611a2890614a06565b8015611a755780601f10611a4a57610100808354040283529160200191611a75565b820191906000526020600020905b815481529060010190602001808311611a5857829003601f168201915b505050505081565b6023546001600160a01b03163314611ad75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c00565b61164f60006130ff565b602854600090602790829060ff166003811115611b0057611b00614822565b6003811115611b1157611b11614822565b815260208101919091526040016000205460ff16919050565b611b426000805160206150ac83398151915233611c89565b611b5e5760405162461bcd60e51b8152600401610c0090614afe565b602854819060279060009060ff166003811115611b7d57611b7d614822565b6003811115611b8e57611b8e614822565b8152602081019190915260400160002080549115156101000261ff001990921691909117905550565b611bcf6000805160206150ac83398151915233611c89565b611beb5760405162461bcd60e51b8152600401610c0090614afe565b602854819060279060009060ff166003811115611c0a57611c0a614822565b6003811115611c1b57611c1b614822565b81526020810191909152604001600020805460ff19166001836003811115611c4557611c45614822565b021790555050565b611c656000805160206150ac83398151915233611c89565b611c815760405162461bcd60e51b8152600401610c0090614afe565b61164f613151565b60009182526022602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60205460ff1615611cd75760405162461bcd60e51b8152600401610c0090614c07565b60026021541415611d2a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c00565b6002602155600060285460279060009060ff166003811115611d4e57611d4e614822565b6003811115611d5f57611d5f614822565b815260208101919091526040016000205460ff166003811115611d8457611d84614822565b14611da15760405162461bcd60e51b8152600401610c0090614c31565b611daa816131a9565b611db433826135de565b602854819060299060009060ff166003811115611dd357611dd3614822565b6003811115611de457611de4614822565b81526020019081526020016000206000828254611e019190614c72565b909155505033600090815260266020526040812060285483929060ff166003811115611e2f57611e2f614822565b6003811115611e4057611e40614822565b81526020019081526020016000206000828254611e5d9190614c72565b9091555050600160215550565b336001600160a01b0383161415611ed55760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610c00565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000805b6019811015611fa35760048160198110611f6157611f61614b2e565b0154831015611f705792915050565b60048160198110611f8357611f83614b2e565b0154611f8f9084614c8a565b925080611f9b81614ba3565b915050611f45565b50919050565b611fc16000805160206150ac83398151915233611c89565b611fdd5760405162461bcd60e51b8152600401610c0090614afe565b602854819060279060009060ff166003811115611ffc57611ffc614822565b600381111561200d5761200d614822565b815260200190815260200160002060040160006101000a81548161ffff021916908361ffff16021790555050565b60205460ff161561205e5760405162461bcd60e51b8152600401610c0090614c07565b600260215414156120b15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c00565b6002602155600060285460279060009060ff1660038111156120d5576120d5614822565b60038111156120e6576120e6614822565b815260208101919091526040016000205460ff16600381111561210b5761210b614822565b14156121295760405162461bcd60e51b8152600401610c0090614c31565b6000600160285460279060009060ff16600381111561214a5761214a614822565b600381111561215b5761215b614822565b815260208101919091526040016000205460ff16600381111561218057612180614822565b141561223f57600083116121e05760405162461bcd60e51b815260206004820152602160248201527f476f6c6420746f6b656e206d7573742062652067726561746572207468616e206044820152600360fc1b6064820152608401610c00565b811561223c5760405162461bcd60e51b815260206004820152602560248201527f6f6e6c7920676f6c6420746f6b656e732061726520726571756972656420746f604482015264081b5a5b9d60da1b6064820152608401610c00565b50815b600260285460279060009060ff16600381111561225e5761225e614822565b600381111561226f5761226f614822565b815260208101919091526040016000205460ff16600381111561229457612294614822565b141561235557600082116122f55760405162461bcd60e51b815260206004820152602260248201527f426173696320746f6b656e206d7573742062652067726561746572207468616e604482015261020360f41b6064820152608401610c00565b82156123525760405162461bcd60e51b815260206004820152602660248201527f6f6e6c7920626173696320746f6b656e732061726520726571756972656420746044820152651bc81b5a5b9d60d21b6064820152608401610c00565b50805b600360285460279060009060ff16600381111561237457612374614822565b600381111561238557612385614822565b815260208101919091526040016000205460ff1660038111156123aa576123aa614822565b141561242b5760008311806123bf5750600082115b61241e5760405162461bcd60e51b815260206004820152602a60248201527f476f6c64206f7220426173696320746f6b656e206d75737420626520677265616044820152690746572207468616e20360b41b6064820152608401610c00565b6124288383614c72565b90505b60285460279060009060ff16600381111561244857612448614822565b600381111561245957612459614822565b815260200190815260200160002060010154816124769190614ca1565b156124da5760405162461bcd60e51b815260206004820152602e60248201527f5175616e74697479206d7573742062652061206d756c7469706c65206f66206d60448201526d34b73a1031b7b9ba103a37b5b2b760911b6064820152608401610c00565b602854600090602790829060ff1660038111156124f9576124f9614822565b600381111561250a5761250a614822565b815260200190815260200160002060010154826125279190614b8f565b9050612532816131a9565b7f0000000000000000000000000000000000000000000000000000000000000000600161255d611ae1565b600381111561256e5761256e614822565b14806125925750600361257f611ae1565b600381111561259057612590614822565b145b801561259e5750600085115b1561260b57604051637a94c56560e11b815233600482015260016024820152604481018690526001600160a01b0382169063f5298aca90606401600060405180830381600087803b1580156125f257600080fd5b505af1158015612606573d6000803e3d6000fd5b505050505b6002612615611ae1565b600381111561262657612626614822565b148061264a57506003612637611ae1565b600381111561264857612648614822565b145b80156126565750600084115b156126c357604051637a94c56560e11b815233600482015260026024820152604481018590526001600160a01b0382169063f5298aca90606401600060405180830381600087803b1580156126aa57600080fd5b505af11580156126be573d6000803e3d6000fd5b505050505b6126cd33836135de565b602854829060299060009060ff1660038111156126ec576126ec614822565b60038111156126fd576126fd614822565b8152602001908152602001600020600082825461271a9190614c72565b909155505033600090815260266020526040812060285484929060ff16600381111561274857612748614822565b600381111561275957612759614822565b815260200190815260200160002060008282546127769190614c72565b909155505060016021555050505050565b6004816019811061279757600080fd5b0154905081565b6000601f54601e546127b09190614c8a565b905090565b6000828152602260205260409020600101546127d18133612d21565b610f2d8383612ee0565b602854600090602790829060ff1660038111156127fa576127fa614822565b600381111561280b5761280b614822565b815260200190815260200160002060010154905090565b602854600090602990829060ff16600381111561284157612841614822565b600381111561285257612852614822565b81526020810191909152604001600090812054602854909160279160ff16600381111561288157612881614822565b600381111561289257612892614822565b8152602001908152602001600020600301546127b09190614c8a565b6001600160a01b0385163314806128ca57506128ca8533610aea565b6128e65760405162461bcd60e51b8152600401610c0090614bbe565b610f0085858585856136e6565b61290b6000805160206150ac83398151915233611c89565b6129275760405162461bcd60e51b8152600401610c0090614afe565b6028805482919060ff19166001836003811115611c4557611c45614822565b6023546001600160a01b031633146129a05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c00565b6001600160a01b038116612a055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c00565b612a0e816130ff565b50565b6001600160a01b038316331480612a2d5750612a2d8333610aea565b612a495760405162461bcd60e51b8152600401610c0090614bbe565b610f2d838383613812565b60006001600160e01b031982161580610c3a5750610c3a8261381d565b606081612a955750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612abf5780612aa981614ba3565b9150612ab89050600a83614b8f565b9150612a99565b60008167ffffffffffffffff811115612ada57612ada6143c2565b6040519080825280601f01601f191660200182016040528015612b04576020820181803683370190505b5090505b8415612b6f57612b19600183614c8a565b9150612b26600a86614ca1565b612b31906030614c72565b60f81b818381518110612b4657612b46614b2e565b60200101906001600160f81b031916908160001a905350612b68600a86614b8f565b9450612b08565b949350505050565b8151835114612b985760405162461bcd60e51b8152600401610c0090614cb5565b6001600160a01b038416612bbe5760405162461bcd60e51b8152600401610c0090614cfd565b33612bcd818787878787613842565b60005b8451811015612cb3576000858281518110612bed57612bed614b2e565b602002602001015190506000858381518110612c0b57612c0b614b2e565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015612c5b5760405162461bcd60e51b8152600401610c0090614d42565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612c98908490614c72565b9250508190555050505080612cac90614ba3565b9050612bd0565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612d03929190614d8c565b60405180910390a4612d19818787878787613847565b505050505050565b612d2b8282611c89565b61155d57612d43816001600160a01b031660146139a3565b612d4e8360206139a3565b604051602001612d5f929190614db1565b60408051601f198184030181529082905262461bcd60e51b8252610c009160040161438b565b612d8f8282611c89565b61155d5760008281526022602090815260408083206001600160a01b03851684529091529020805460ff19166001179055612dc73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8051825114612e705760405162461bcd60e51b815260206004820152602b60248201527f4c656e677468206f6620746f6b656e496420616e6420616d6f756e7473206d7560448201526a1cdd08189948195c5d585b60aa1b6064820152608401610c00565b60005b82518160ff161015612eda57612ec884848360ff1681518110612e9857612e98614b2e565b602002602001015160ff16848460ff1681518110612eb857612eb8614b2e565b602002602001015160ff16613b46565b80612ed281614e26565b915050612e73565b50505050565b612eea8282611c89565b1561155d5760008281526022602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b3031811115612f985760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c00565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612fe5576040519150601f19603f3d011682016040523d82523d6000602084013e612fea565b606091505b5050905080610f2d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c00565b60205460ff166130aa5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610c00565b6020805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610f2d838383613c38565b602380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60205460ff16156131745760405162461bcd60e51b8152600401610c0090614c07565b6020805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586130d73390565b600081116131f95760405162461bcd60e51b815260206004820152601f60248201527f5175616e74697479206d7573742062652067726561746572207468616e2030006044820152606401610c00565b60285460279060009060ff16600381111561321657613216614822565b600381111561322757613227614822565b8152602001908152602001600020600301548160296000602860009054906101000a900460ff16600381111561325f5761325f614822565b600381111561327057613270614822565b8152602001908152602001600020546132899190614c72565b11156132fd5760405162461bcd60e51b815260206004820152603b60248201527f5175616e74697479206d757374206265206c657373207468616e2072656d616960448201527f6e696e6720737570706c7920666f7220746869732077696e646f7700000000006064820152608401610c00565b602854600090602790829060ff16600381111561331c5761331c614822565b600381111561332d5761332d614822565b8152602001908152602001600020600201549050818161334d9190614b5a565b34101561339c5760405162461bcd60e51b815260206004820152601c60248201527f496e73756666696369656e742045544820666f72206d696e74696e67000000006044820152606401610c00565b602854600090602790829060ff1660038111156133bb576133bb614822565b60038111156133cc576133cc614822565b815260208101919091526040016000206004015461ffff1690508015806134465750336000908152602660205260408120602854839286929160ff16600381111561341957613419614822565b600381111561342a5761342a614822565b8152602001908152602001600020546134439190614c72565b11155b6134ad5760405162461bcd60e51b815260206004820152603260248201527f596f752068617665207265616368656420796f75722077616c6c6574206c696d604482015271697420666f7220746869732077696e646f7760701b6064820152608401610c00565b60285460279060009060ff1660038111156134ca576134ca614822565b60038111156134db576134db614822565b8152602081019190915260400160002054610100900460ff1615610f2d576040516370a0823160e01b81523360048201527f0000000000000000000000000000000000000000000000000000000000000000906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015613562573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135869190614e46565b11612eda5760405162461bcd60e51b815260206004820152602260248201527f596f75206d75737420626520612052656d697820686f6c64657220746f206d696044820152611b9d60f21b6064820152608401610c00565b60006135e861279e565b1161364b5760405162461bcd60e51b815260206004820152602d60248201527f4e6f7420656e6f75676820737570706c7920746f206d696e7420616c6c20616d60448201526c1bdd5b9d081c995c5d5a5c9959609a1b6064820152608401610c00565b60005b81811015610f2d576040805144602080830191909152428284015233606090811b6bffffffffffffffffffffffff1916908301526074808301859052835180840390910181526094909201909252805191012060006136ab61279e565b6136b59083614ca1565b905060006136c282611f41565b90506136d086826001613b46565b50505080806136de90614ba3565b91505061364e565b6001600160a01b03841661370c5760405162461bcd60e51b8152600401610c0090614cfd565b3361372b81878761371c88613cba565b61372588613cba565b87613842565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561376c5760405162461bcd60e51b8152600401610c0090614d42565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906137a9908490614c72565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613809828888888888613d05565b50505050505050565b610f2d838383613dc0565b60006001600160e01b03198216637965db0b60e01b1480610c3a5750610c3a82613df3565b612d19565b6001600160a01b0384163b15612d195760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061388b9089908990889088908890600401614e5f565b6020604051808303816000875af19250505080156138c6575060408051601f3d908101601f191682019092526138c391810190614ebd565b60015b613973576138d2614eda565b806308c379a0141561390c57506138e7614ef6565b806138f2575061390e565b8060405162461bcd60e51b8152600401610c00919061438b565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610c00565b6001600160e01b0319811663bc197c8160e01b146138095760405162461bcd60e51b8152600401610c0090614f80565b606060006139b2836002614b5a565b6139bd906002614c72565b67ffffffffffffffff8111156139d5576139d56143c2565b6040519080825280601f01601f1916602001820160405280156139ff576020820181803683370190505b509050600360fc1b81600081518110613a1a57613a1a614b2e565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613a4957613a49614b2e565b60200101906001600160f81b031916908160001a9053506000613a6d846002614b5a565b613a78906001614c72565b90505b6001811115613af0576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613aac57613aac614b2e565b1a60f81b828281518110613ac257613ac2614b2e565b60200101906001600160f81b031916908160001a90535060049490941c93613ae981614fc8565b9050613a7b565b508315613b3f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c00565b9392505050565b8060048360198110613b5a57613b5a614b2e565b01541015613ba15760405162461bcd60e51b8152602060048201526014602482015273546f6b656e4964206e6f74206d696e7461626c6560601b6044820152606401610c00565b8060048360198110613bb557613bb5614b2e565b016000828254613bc59190614c8a565b9250508190555080601f6000828254613bde9190614c72565b90915550506001600160a01b0383166000908152601d602052604081208054839290613c0b908490614c72565b92505081905550610f2d83838360405180604001604052806002815260200161060f60f31b815250613e43565b613c43838383613e78565b60005b8251811015612eda57818181518110613c6157613c61614b2e565b602002602001015160036000858481518110613c7f57613c7f614b2e565b602002602001015181526020019081526020016000206000828254613ca49190614c8a565b90915550613cb3905081614ba3565b9050613c46565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110613cf457613cf4614b2e565b602090810291909101015292915050565b6001600160a01b0384163b15612d195760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190613d499089908990889088908890600401614fdf565b6020604051808303816000875af1925050508015613d84575060408051601f3d908101601f19168201909252613d8191810190614ebd565b60015b613d90576138d2614eda565b6001600160e01b0319811663f23a6e6160e01b146138095760405162461bcd60e51b8152600401610c0090614f80565b613dcb838383614006565b60008281526003602052604081208054839290613de9908490614c8a565b9091555050505050565b60006001600160e01b03198216636cdb3d1360e11b1480613e2457506001600160e01b031982166303a24d0760e21b145b80610c3a57506301ffc9a760e01b6001600160e01b0319831614610c3a565b613e4f84848484614107565b60008381526003602052604081208054849290613e6d908490614c72565b909155505050505050565b6001600160a01b038316613e9e5760405162461bcd60e51b8152600401610c0090615024565b8051825114613ebf5760405162461bcd60e51b8152600401610c0090614cb5565b6000339050613ee281856000868660405180602001604052806000815250613842565b60005b8351811015613fa7576000848281518110613f0257613f02614b2e565b602002602001015190506000848381518110613f2057613f20614b2e565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015613f705760405162461bcd60e51b8152600401610c0090615067565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580613f9f81614ba3565b915050613ee5565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051613ff8929190614d8c565b60405180910390a450505050565b6001600160a01b03831661402c5760405162461bcd60e51b8152600401610c0090615024565b3361405b8185600061403d87613cba565b61404687613cba565b60405180602001604052806000815250613842565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561409c5760405162461bcd60e51b8152600401610c0090615067565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384166141675760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610c00565b336141788160008761371c88613cba565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906141a8908490614c72565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610f0081600087878787613d05565b82805461421490614a06565b90600052602060002090601f016020900481019282614236576000855561427c565b82601f1061424f57805160ff191683800117855561427c565b8280016001018555821561427c579182015b8281111561427c578251825591602001919060010190614261565b5061428892915061428c565b5090565b5b80821115614288576000815560010161428d565b80356001600160a01b03811681146142b857600080fd5b919050565b600080604083850312156142d057600080fd5b6142d9836142a1565b946020939093013593505050565b6001600160e01b031981168114612a0e57600080fd5b60006020828403121561430f57600080fd5b8135613b3f816142e7565b60006020828403121561432c57600080fd5b5035919050565b60005b8381101561434e578181015183820152602001614336565b83811115612eda5750506000910152565b60008151808452614377816020860160208601614333565b601f01601f19169290920160200192915050565b602081526000613b3f602083018461435f565b6000602082840312156143b057600080fd5b813561ffff81168114613b3f57600080fd5b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156143fe576143fe6143c2565b6040525050565b600067ffffffffffffffff82111561441f5761441f6143c2565b5060051b60200190565b600082601f83011261443a57600080fd5b8135602061444782614405565b60405161445482826143d8565b83815260059390931b850182019282810191508684111561447457600080fd5b8286015b8481101561448f5780358352918301918301614478565b509695505050505050565b600067ffffffffffffffff8311156144b4576144b46143c2565b6040516144cb601f8501601f1916602001826143d8565b8091508381528484840111156144e057600080fd5b83836020830137600060208583010152509392505050565b600082601f83011261450957600080fd5b613b3f8383356020850161449a565b600080600080600060a0868803121561453057600080fd5b614539866142a1565b9450614547602087016142a1565b9350604086013567ffffffffffffffff8082111561456457600080fd5b61457089838a01614429565b9450606088013591508082111561458657600080fd5b61459289838a01614429565b935060808801359150808211156145a857600080fd5b506145b5888289016144f8565b9150509295509295909350565b600080604083850312156145d557600080fd5b823591506145e5602084016142a1565b90509250929050565b60008060006060848603121561460357600080fd5b61460c846142a1565b925061461a602085016142a1565b9150614628604085016142a1565b90509250925092565b60006020828403121561464357600080fd5b613b3f826142a1565b6000806040838503121561465f57600080fd5b823567ffffffffffffffff8082111561467757600080fd5b818501915085601f83011261468b57600080fd5b8135602061469882614405565b6040516146a582826143d8565b83815260059390931b85018201928281019150898411156146c557600080fd5b948201945b838610156146ea576146db866142a1565b825294820194908201906146ca565b9650508601359250508082111561470057600080fd5b5061470d85828601614429565b9150509250929050565b600081518084526020808501945080840160005b838110156147475781518752958201959082019060010161472b565b509495945050505050565b602081526000613b3f6020830184614717565b60006020828403121561477757600080fd5b813567ffffffffffffffff81111561478e57600080fd5b8201601f8101841361479f57600080fd5b612b6f8482356020840161449a565b6000806000606084860312156147c357600080fd5b6147cc846142a1565b9250602084013567ffffffffffffffff808211156147e957600080fd5b6147f587838801614429565b9350604086013591508082111561480b57600080fd5b5061481886828701614429565b9150509250925092565b634e487b7160e01b600052602160045260246000fd5b60048110612a0e57634e487b7160e01b600052602160045260246000fd5b6020810161486383614838565b91905290565b803580151581146142b857600080fd5b60006020828403121561488b57600080fd5b613b3f82614869565b60048110612a0e57600080fd5b6000602082840312156148b357600080fd5b8135613b3f81614894565b600080604083850312156148d157600080fd5b6148da836142a1565b91506145e560208401614869565b600080604083850312156148fb57600080fd5b50508035926020909101359150565b60c0810161491788614838565b968152941515602086015260408501939093526060840191909152608083015261ffff1660a09091015290565b6000806040838503121561495757600080fd5b614960836142a1565b91506145e5602084016142a1565b600080600080600060a0868803121561498657600080fd5b61498f866142a1565b945061499d602087016142a1565b93506040860135925060608601359150608086013567ffffffffffffffff8111156149c757600080fd5b6145b5888289016144f8565b6000806000606084860312156149e857600080fd5b6149f1846142a1565b95602085013595506040909401359392505050565b600181811c90821680614a1a57607f821691505b60208210811415611fa357634e487b7160e01b600052602260045260246000fd5b60008151614a4d818560208601614333565b9290920192915050565b600080845481600182811c915080831680614a7357607f831692505b6020808410821415614a9357634e487b7160e01b86526022600452602486fd5b818015614aa75760018114614ab857614ae5565b60ff19861689528489019650614ae5565b60008b81526020902060005b86811015614add5781548b820152908501908301614ac4565b505084890196505b505050505050614af58185614a3b565b95945050505050565b60208082526016908201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615614b7457614b74614b44565b500290565b634e487b7160e01b600052601260045260246000fd5b600082614b9e57614b9e614b79565b500490565b6000600019821415614bb757614bb7614b44565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526021908201527f4d696e7420746f6b656e732061726520726571756972656420746f206d696e746040820152601760f91b606082015260800190565b60008219821115614c8557614c85614b44565b500190565b600082821015614c9c57614c9c614b44565b500390565b600082614cb057614cb0614b79565b500690565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000614d9f6040830185614717565b8281036020840152614af58185614717565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614de9816017850160208801614333565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614e1a816028840160208801614333565b01602801949350505050565b600060ff821660ff811415614e3d57614e3d614b44565b60010192915050565b600060208284031215614e5857600080fd5b5051919050565b6001600160a01b0386811682528516602082015260a060408201819052600090614e8b90830186614717565b8281036060840152614e9d8186614717565b90508281036080840152614eb1818561435f565b98975050505050505050565b600060208284031215614ecf57600080fd5b8151613b3f816142e7565b600060033d1115614ef35760046000803e5060005160e01c5b90565b600060443d1015614f045790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715614f3457505050505090565b8285019150815181811115614f4c5750505050505090565b843d8701016020828501011115614f665750505050505090565b614f75602082860101876143d8565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b600081614fd757614fd7614b44565b506000190190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906150199083018461435f565b979650505050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b60608201526080019056fea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a2646970667358221220bec465d09a0af133b451326fa53f1b52dd6991dd5b45e5dfdccc699dd1b47e7164736f6c634300080a003368747470733a2f2f73746f726167656170692e666c65656b2e636f2f61706564616f2d6275636b65742f68616e642d647261776e2d6c6f6f70732f000000000000000000000000c2faa7cf625b8adadbe423738c269558dc909d41000000000000000000000000fb61bd914d4cd5509ecbd4b16a0f96349e52db3d0000000000000000000000002dec6c6522b7dbbf6c7d8d0a6f6c8e2bfad93618000000000000000000000000bda1e2757f9a8973926120f6977756b2468b79bb00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014
Deployed Bytecode
0x60806040526004361061038b5760003560e01c806375b238fc116101dc578063bd85b03911610102578063e4b7fb73116100a0578063f242432a1161006f578063f242432a14610b18578063f26b82aa14610b38578063f2fde38b14610b58578063f5298aca14610b7857600080fd5b8063e4b7fb7314610a6c578063e87176f014610a81578063e89dfd9414610ab5578063e985e9c514610acf57600080fd5b8063c88daa38116100dc578063c88daa3814610a02578063cc5c095c14610a22578063d547741f14610a37578063d7126fef14610a5757600080fd5b8063bd85b03914610939578063bf9aa9d014610966578063c46c1f221461099a57600080fd5b8063a0712d681161017a578063a38ba4b211610149578063a38ba4b2146108a5578063b38c7c09146108c5578063b5f26dcf146108f2578063b6079f361461092657600080fd5b8063a0712d681461083d578063a217fddf14610850578063a22cb46514610865578063a37e34731461088557600080fd5b80638456cb59116101b65780638456cb59146107bd5780638cda8bcf146107d25780638da5cb5b146107ff57806391d148541461081d57600080fd5b806375b238fc1461075b578063784eadcf1461077d578063841d95521461079d57600080fd5b80634230baee116102c1578063517e511a1161025f5780636b20c4541161022e5780636b20c454146106ef5780636c0360eb1461070f578063715018a614610724578063754b85d41461073957600080fd5b8063517e511a1461064357806355f804b31461066b5780635c975abb1461068b5780636113494c146106a357600080fd5b80634a26c99d1161029b5780634a26c99d146105b25780634bedc548146105d25780634e1273f4146105e75780634f558e791461061457600080fd5b80634230baee1461056757806342d803621461057d5780634329595a1461059257600080fd5b80632eb2c2d61161032e57806336568abe1161030857806336568abe1461050857806337736ce8146105285780633ccfd60b1461053d5780633f4ba83a1461055257600080fd5b80632eb2c2d6146104a85780632f2ff15d146104c85780632f82b32f146104e857600080fd5b80631ca8b6cb1161036a5780631ca8b6cb14610420578063248a9ca31461043657806327c521fc146104665780632bfcbbca1461048857600080fd5b8062fdd58e1461039057806301ffc9a7146103c35780630e89341c146103f3575b600080fd5b34801561039c57600080fd5b506103b06103ab3660046142bd565b610b98565b6040519081526020015b60405180910390f35b3480156103cf57600080fd5b506103e36103de3660046142fd565b610c2f565b60405190151581526020016103ba565b3480156103ff57600080fd5b5061041361040e36600461431a565b610c40565b6040516103ba919061438b565b34801561042c57600080fd5b506103b0601e5481565b34801561044257600080fd5b506103b061045136600461431a565b60009081526022602052604090206001015490565b34801561047257600080fd5b5061048661048136600461431a565b610d76565b005b34801561049457600080fd5b506104866104a336600461439e565b610df1565b3480156104b457600080fd5b506104866104c3366004614518565b610e70565b3480156104d457600080fd5b506104866104e33660046145c2565b610f07565b3480156104f457600080fd5b506104866105033660046145ee565b610f32565b34801561051457600080fd5b506104866105233660046145c2565b6114e3565b34801561053457600080fd5b506103e3611561565b34801561054957600080fd5b506104866115af565b34801561055e57600080fd5b50610486611651565b34801561057357600080fd5b506103b0601f5481565b34801561058957600080fd5b506103b061168d565b34801561059e57600080fd5b506103b06105ad366004614631565b6116d4565b3480156105be57600080fd5b506104866105cd36600461431a565b61172c565b3480156105de57600080fd5b506103b06117a7565b3480156105f357600080fd5b5061060761060236600461464c565b6117ee565b6040516103ba9190614752565b34801561062057600080fd5b506103e361062f36600461431a565b600090815260036020526040902054151590565b34801561064f57600080fd5b50610658611918565b60405161ffff90911681526020016103ba565b34801561067757600080fd5b50610486610686366004614765565b611965565b34801561069757600080fd5b5060205460ff166103e3565b3480156106af57600080fd5b506106d77f000000000000000000000000fb61bd914d4cd5509ecbd4b16a0f96349e52db3d81565b6040516001600160a01b0390911681526020016103ba565b3480156106fb57600080fd5b5061048661070a3660046147ae565b6119ac565b34801561071b57600080fd5b506104136119ef565b34801561073057600080fd5b50610486611a7d565b34801561074557600080fd5b5061074e611ae1565b6040516103ba9190614856565b34801561076757600080fd5b506103b06000805160206150ac83398151915281565b34801561078957600080fd5b50610486610798366004614879565b611b2a565b3480156107a957600080fd5b506104866107b83660046148a1565b611bb7565b3480156107c957600080fd5b50610486611c4d565b3480156107de57600080fd5b506103b06107ed366004614631565b601d6020526000908152604090205481565b34801561080b57600080fd5b506023546001600160a01b03166106d7565b34801561082957600080fd5b506103e36108383660046145c2565b611c89565b61048661084b36600461431a565b611cb4565b34801561085c57600080fd5b506103b0600081565b34801561087157600080fd5b506104866108803660046148be565b611e6a565b34801561089157600080fd5b506103b06108a036600461431a565b611f41565b3480156108b157600080fd5b506104866108c036600461439e565b611fa9565b3480156108d157600080fd5b506103b06108e03660046148a1565b60296020526000908152604090205481565b3480156108fe57600080fd5b506106d77f0000000000000000000000002dec6c6522b7dbbf6c7d8d0a6f6c8e2bfad9361881565b6104866109343660046148e8565b61203b565b34801561094557600080fd5b506103b061095436600461431a565b60009081526003602052604090205490565b34801561097257600080fd5b506106d77f000000000000000000000000bda1e2757f9a8973926120f6977756b2468b79bb81565b3480156109a657600080fd5b506109f06109b53660046148a1565b6027602052600090815260409020805460018201546002830154600384015460049094015460ff8085169561010090950416939061ffff1686565b6040516103ba9695949392919061490a565b348015610a0e57600080fd5b506103b0610a1d36600461431a565b612787565b348015610a2e57600080fd5b506103b061279e565b348015610a4357600080fd5b50610486610a523660046145c2565b6127b5565b348015610a6357600080fd5b506103b06127db565b348015610a7857600080fd5b506103b0612822565b348015610a8d57600080fd5b506106d77f000000000000000000000000c2faa7cf625b8adadbe423738c269558dc909d4181565b348015610ac157600080fd5b5060285461074e9060ff1681565b348015610adb57600080fd5b506103e3610aea366004614944565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610b2457600080fd5b50610486610b3336600461496e565b6128ae565b348015610b4457600080fd5b50610486610b533660046148a1565b6128f3565b348015610b6457600080fd5b50610486610b73366004614631565b612946565b348015610b8457600080fd5b50610486610b933660046149d3565b612a11565b60006001600160a01b038316610c095760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b6000610c3a82612a54565b92915050565b6060600082118015610c53575060188211155b610c9f5760405162461bcd60e51b815260206004820152601f60248201527f5552492072657175657374656420666f7220696e76616c696420746f6b656e006044820152606401610c00565b600060248054610cae90614a06565b905011610d455760248054610cc290614a06565b80601f0160208091040260200160405190810160405280929190818152602001828054610cee90614a06565b8015610d3b5780601f10610d1057610100808354040283529160200191610d3b565b820191906000526020600020905b815481529060010190602001808311610d1e57829003601f168201915b5050505050610c3a565b6024610d5083612a71565b604051602001610d61929190614a57565b60405160208183030381529060405292915050565b610d8e6000805160206150ac83398151915233611c89565b610daa5760405162461bcd60e51b8152600401610c0090614afe565b602854819060279060009060ff166003811115610dc957610dc9614822565b6003811115610dda57610dda614822565b815260208101919091526040016000206001015550565b610e096000805160206150ac83398151915233611c89565b610e255760405162461bcd60e51b8152600401610c0090614afe565b60285461ffff82169060279060009060ff166003811115610e4857610e48614822565b6003811115610e5957610e59614822565b815260208101919091526040016000206003015550565b6001600160a01b038516331480610e8c5750610e8c8533610aea565b610ef35760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610c00565b610f008585858585612b77565b5050505050565b600082815260226020526040902060010154610f238133612d21565b610f2d8383612d85565b505050565b610f4a6000805160206150ac83398151915233611c89565b610f665760405162461bcd60e51b8152600401610c0090614afe565b60408051600c8082526101a082019092526000916020820161018080368337505060408051600c8082526101a0820190925292935060009291506020820161018080368337019050509050600d82600081518110610fc657610fc6614b2e565b602002602001019060ff16908160ff1681525050600181600081518110610fef57610fef614b2e565b602002602001019060ff16908160ff1681525050600e8260018151811061101857611018614b2e565b602002602001019060ff16908160ff168152505060018160018151811061104157611041614b2e565b602002602001019060ff16908160ff1681525050600f8260028151811061106a5761106a614b2e565b602002602001019060ff16908160ff168152505060018160028151811061109357611093614b2e565b602002602001019060ff16908160ff16815250506010826003815181106110bc576110bc614b2e565b602002602001019060ff16908160ff16815250506002816003815181106110e5576110e5614b2e565b602002602001019060ff16908160ff168152505060118260048151811061110e5761110e614b2e565b602002602001019060ff16908160ff168152505060018160048151811061113757611137614b2e565b602002602001019060ff16908160ff168152505060128260058151811061116057611160614b2e565b602002602001019060ff16908160ff168152505060018160058151811061118957611189614b2e565b602002602001019060ff16908160ff16815250506013826006815181106111b2576111b2614b2e565b602002602001019060ff16908160ff16815250506001816006815181106111db576111db614b2e565b602002602001019060ff16908160ff168152505060148260078151811061120457611204614b2e565b602002602001019060ff16908160ff168152505060018160078151811061122d5761122d614b2e565b602002602001019060ff16908160ff168152505060158260088151811061125657611256614b2e565b602002602001019060ff16908160ff168152505060018160088151811061127f5761127f614b2e565b602002602001019060ff16908160ff16815250506016826009815181106112a8576112a8614b2e565b602002602001019060ff16908160ff16815250506002816009815181106112d1576112d1614b2e565b602002602001019060ff16908160ff1681525050601782600a815181106112fa576112fa614b2e565b602002602001019060ff16908160ff1681525050600181600a8151811061132357611323614b2e565b602002602001019060ff16908160ff1681525050601882600b8151811061134c5761134c614b2e565b602002602001019060ff16908160ff1681525050600281600b8151811061137557611375614b2e565b602002602001019060ff16908160ff1681525050611394858383612e0b565b604080516001808252818301909252600091602080830190803683375050604080516001808252818301909252929350600092915060208083019080368337019050509050600d826000815181106113ee576113ee614b2e565b602002602001019060ff16908160ff168152505060018160008151811061141757611417614b2e565b602002602001019060ff16908160ff1681525050611436868383612e0b565b604080516001808252818301909252600091602080830190803683375050604080516001808252818301909252929350600092915060208083019080368337019050509050600c8260008151811061149057611490614b2e565b602002602001019060ff16908160ff16815250506001816000815181106114b9576114b9614b2e565b602002602001019060ff16908160ff16815250506114d8878383612e0b565b505050505050505050565b6001600160a01b03811633146115535760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610c00565b61155d8282612ee0565b5050565b602854600090602790829060ff16600381111561158057611580614822565b600381111561159157611591614822565b8152602081019190915260400160002054610100900460ff16919050565b6115c76000805160206150ac83398151915233611c89565b6115e35760405162461bcd60e51b8152600401610c0090614afe565b6116247f0000000000000000000000002dec6c6522b7dbbf6c7d8d0a6f6c8e2bfad9361860646116153031603c614b5a565b61161f9190614b8f565b612f47565b61164f7f000000000000000000000000bda1e2757f9a8973926120f6977756b2468b79bb3031612f47565b565b6116696000805160206150ac83398151915233611c89565b6116855760405162461bcd60e51b8152600401610c0090614afe565b61164f613061565b602854600090602790829060ff1660038111156116ac576116ac614822565b60038111156116bd576116bd614822565b815260200190815260200160002060020154905090565b6001600160a01b0381166000908152602660205260408120602854829060ff16600381111561170557611705614822565b600381111561171657611716614822565b8152602001908152602001600020549050919050565b6117446000805160206150ac83398151915233611c89565b6117605760405162461bcd60e51b8152600401610c0090614afe565b602854819060279060009060ff16600381111561177f5761177f614822565b600381111561179057611790614822565b815260208101919091526040016000206002015550565b602854600090602790829060ff1660038111156117c6576117c6614822565b60038111156117d7576117d7614822565b815260200190815260200160002060030154905090565b606081518351146118535760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610c00565b6000835167ffffffffffffffff81111561186f5761186f6143c2565b604051908082528060200260200182016040528015611898578160200160208202803683370190505b50905060005b8451811015611910576118e38582815181106118bc576118bc614b2e565b60200260200101518583815181106118d6576118d6614b2e565b6020026020010151610b98565b8282815181106118f5576118f5614b2e565b602090810291909101015261190981614ba3565b905061189e565b509392505050565b602854600090602790829060ff16600381111561193757611937614822565b600381111561194857611948614822565b815260208101919091526040016000206004015461ffff16919050565b61197d6000805160206150ac83398151915233611c89565b6119995760405162461bcd60e51b8152600401610c0090614afe565b805161155d906024906020840190614208565b6001600160a01b0383163314806119c857506119c88333610aea565b6119e45760405162461bcd60e51b8152600401610c0090614bbe565b610f2d8383836130f4565b602480546119fc90614a06565b80601f0160208091040260200160405190810160405280929190818152602001828054611a2890614a06565b8015611a755780601f10611a4a57610100808354040283529160200191611a75565b820191906000526020600020905b815481529060010190602001808311611a5857829003601f168201915b505050505081565b6023546001600160a01b03163314611ad75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c00565b61164f60006130ff565b602854600090602790829060ff166003811115611b0057611b00614822565b6003811115611b1157611b11614822565b815260208101919091526040016000205460ff16919050565b611b426000805160206150ac83398151915233611c89565b611b5e5760405162461bcd60e51b8152600401610c0090614afe565b602854819060279060009060ff166003811115611b7d57611b7d614822565b6003811115611b8e57611b8e614822565b8152602081019190915260400160002080549115156101000261ff001990921691909117905550565b611bcf6000805160206150ac83398151915233611c89565b611beb5760405162461bcd60e51b8152600401610c0090614afe565b602854819060279060009060ff166003811115611c0a57611c0a614822565b6003811115611c1b57611c1b614822565b81526020810191909152604001600020805460ff19166001836003811115611c4557611c45614822565b021790555050565b611c656000805160206150ac83398151915233611c89565b611c815760405162461bcd60e51b8152600401610c0090614afe565b61164f613151565b60009182526022602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60205460ff1615611cd75760405162461bcd60e51b8152600401610c0090614c07565b60026021541415611d2a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c00565b6002602155600060285460279060009060ff166003811115611d4e57611d4e614822565b6003811115611d5f57611d5f614822565b815260208101919091526040016000205460ff166003811115611d8457611d84614822565b14611da15760405162461bcd60e51b8152600401610c0090614c31565b611daa816131a9565b611db433826135de565b602854819060299060009060ff166003811115611dd357611dd3614822565b6003811115611de457611de4614822565b81526020019081526020016000206000828254611e019190614c72565b909155505033600090815260266020526040812060285483929060ff166003811115611e2f57611e2f614822565b6003811115611e4057611e40614822565b81526020019081526020016000206000828254611e5d9190614c72565b9091555050600160215550565b336001600160a01b0383161415611ed55760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610c00565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000805b6019811015611fa35760048160198110611f6157611f61614b2e565b0154831015611f705792915050565b60048160198110611f8357611f83614b2e565b0154611f8f9084614c8a565b925080611f9b81614ba3565b915050611f45565b50919050565b611fc16000805160206150ac83398151915233611c89565b611fdd5760405162461bcd60e51b8152600401610c0090614afe565b602854819060279060009060ff166003811115611ffc57611ffc614822565b600381111561200d5761200d614822565b815260200190815260200160002060040160006101000a81548161ffff021916908361ffff16021790555050565b60205460ff161561205e5760405162461bcd60e51b8152600401610c0090614c07565b600260215414156120b15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c00565b6002602155600060285460279060009060ff1660038111156120d5576120d5614822565b60038111156120e6576120e6614822565b815260208101919091526040016000205460ff16600381111561210b5761210b614822565b14156121295760405162461bcd60e51b8152600401610c0090614c31565b6000600160285460279060009060ff16600381111561214a5761214a614822565b600381111561215b5761215b614822565b815260208101919091526040016000205460ff16600381111561218057612180614822565b141561223f57600083116121e05760405162461bcd60e51b815260206004820152602160248201527f476f6c6420746f6b656e206d7573742062652067726561746572207468616e206044820152600360fc1b6064820152608401610c00565b811561223c5760405162461bcd60e51b815260206004820152602560248201527f6f6e6c7920676f6c6420746f6b656e732061726520726571756972656420746f604482015264081b5a5b9d60da1b6064820152608401610c00565b50815b600260285460279060009060ff16600381111561225e5761225e614822565b600381111561226f5761226f614822565b815260208101919091526040016000205460ff16600381111561229457612294614822565b141561235557600082116122f55760405162461bcd60e51b815260206004820152602260248201527f426173696320746f6b656e206d7573742062652067726561746572207468616e604482015261020360f41b6064820152608401610c00565b82156123525760405162461bcd60e51b815260206004820152602660248201527f6f6e6c7920626173696320746f6b656e732061726520726571756972656420746044820152651bc81b5a5b9d60d21b6064820152608401610c00565b50805b600360285460279060009060ff16600381111561237457612374614822565b600381111561238557612385614822565b815260208101919091526040016000205460ff1660038111156123aa576123aa614822565b141561242b5760008311806123bf5750600082115b61241e5760405162461bcd60e51b815260206004820152602a60248201527f476f6c64206f7220426173696320746f6b656e206d75737420626520677265616044820152690746572207468616e20360b41b6064820152608401610c00565b6124288383614c72565b90505b60285460279060009060ff16600381111561244857612448614822565b600381111561245957612459614822565b815260200190815260200160002060010154816124769190614ca1565b156124da5760405162461bcd60e51b815260206004820152602e60248201527f5175616e74697479206d7573742062652061206d756c7469706c65206f66206d60448201526d34b73a1031b7b9ba103a37b5b2b760911b6064820152608401610c00565b602854600090602790829060ff1660038111156124f9576124f9614822565b600381111561250a5761250a614822565b815260200190815260200160002060010154826125279190614b8f565b9050612532816131a9565b7f000000000000000000000000c2faa7cf625b8adadbe423738c269558dc909d41600161255d611ae1565b600381111561256e5761256e614822565b14806125925750600361257f611ae1565b600381111561259057612590614822565b145b801561259e5750600085115b1561260b57604051637a94c56560e11b815233600482015260016024820152604481018690526001600160a01b0382169063f5298aca90606401600060405180830381600087803b1580156125f257600080fd5b505af1158015612606573d6000803e3d6000fd5b505050505b6002612615611ae1565b600381111561262657612626614822565b148061264a57506003612637611ae1565b600381111561264857612648614822565b145b80156126565750600084115b156126c357604051637a94c56560e11b815233600482015260026024820152604481018590526001600160a01b0382169063f5298aca90606401600060405180830381600087803b1580156126aa57600080fd5b505af11580156126be573d6000803e3d6000fd5b505050505b6126cd33836135de565b602854829060299060009060ff1660038111156126ec576126ec614822565b60038111156126fd576126fd614822565b8152602001908152602001600020600082825461271a9190614c72565b909155505033600090815260266020526040812060285484929060ff16600381111561274857612748614822565b600381111561275957612759614822565b815260200190815260200160002060008282546127769190614c72565b909155505060016021555050505050565b6004816019811061279757600080fd5b0154905081565b6000601f54601e546127b09190614c8a565b905090565b6000828152602260205260409020600101546127d18133612d21565b610f2d8383612ee0565b602854600090602790829060ff1660038111156127fa576127fa614822565b600381111561280b5761280b614822565b815260200190815260200160002060010154905090565b602854600090602990829060ff16600381111561284157612841614822565b600381111561285257612852614822565b81526020810191909152604001600090812054602854909160279160ff16600381111561288157612881614822565b600381111561289257612892614822565b8152602001908152602001600020600301546127b09190614c8a565b6001600160a01b0385163314806128ca57506128ca8533610aea565b6128e65760405162461bcd60e51b8152600401610c0090614bbe565b610f0085858585856136e6565b61290b6000805160206150ac83398151915233611c89565b6129275760405162461bcd60e51b8152600401610c0090614afe565b6028805482919060ff19166001836003811115611c4557611c45614822565b6023546001600160a01b031633146129a05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c00565b6001600160a01b038116612a055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c00565b612a0e816130ff565b50565b6001600160a01b038316331480612a2d5750612a2d8333610aea565b612a495760405162461bcd60e51b8152600401610c0090614bbe565b610f2d838383613812565b60006001600160e01b031982161580610c3a5750610c3a8261381d565b606081612a955750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612abf5780612aa981614ba3565b9150612ab89050600a83614b8f565b9150612a99565b60008167ffffffffffffffff811115612ada57612ada6143c2565b6040519080825280601f01601f191660200182016040528015612b04576020820181803683370190505b5090505b8415612b6f57612b19600183614c8a565b9150612b26600a86614ca1565b612b31906030614c72565b60f81b818381518110612b4657612b46614b2e565b60200101906001600160f81b031916908160001a905350612b68600a86614b8f565b9450612b08565b949350505050565b8151835114612b985760405162461bcd60e51b8152600401610c0090614cb5565b6001600160a01b038416612bbe5760405162461bcd60e51b8152600401610c0090614cfd565b33612bcd818787878787613842565b60005b8451811015612cb3576000858281518110612bed57612bed614b2e565b602002602001015190506000858381518110612c0b57612c0b614b2e565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015612c5b5760405162461bcd60e51b8152600401610c0090614d42565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612c98908490614c72565b9250508190555050505080612cac90614ba3565b9050612bd0565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612d03929190614d8c565b60405180910390a4612d19818787878787613847565b505050505050565b612d2b8282611c89565b61155d57612d43816001600160a01b031660146139a3565b612d4e8360206139a3565b604051602001612d5f929190614db1565b60408051601f198184030181529082905262461bcd60e51b8252610c009160040161438b565b612d8f8282611c89565b61155d5760008281526022602090815260408083206001600160a01b03851684529091529020805460ff19166001179055612dc73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8051825114612e705760405162461bcd60e51b815260206004820152602b60248201527f4c656e677468206f6620746f6b656e496420616e6420616d6f756e7473206d7560448201526a1cdd08189948195c5d585b60aa1b6064820152608401610c00565b60005b82518160ff161015612eda57612ec884848360ff1681518110612e9857612e98614b2e565b602002602001015160ff16848460ff1681518110612eb857612eb8614b2e565b602002602001015160ff16613b46565b80612ed281614e26565b915050612e73565b50505050565b612eea8282611c89565b1561155d5760008281526022602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b3031811115612f985760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c00565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612fe5576040519150601f19603f3d011682016040523d82523d6000602084013e612fea565b606091505b5050905080610f2d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c00565b60205460ff166130aa5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610c00565b6020805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610f2d838383613c38565b602380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60205460ff16156131745760405162461bcd60e51b8152600401610c0090614c07565b6020805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586130d73390565b600081116131f95760405162461bcd60e51b815260206004820152601f60248201527f5175616e74697479206d7573742062652067726561746572207468616e2030006044820152606401610c00565b60285460279060009060ff16600381111561321657613216614822565b600381111561322757613227614822565b8152602001908152602001600020600301548160296000602860009054906101000a900460ff16600381111561325f5761325f614822565b600381111561327057613270614822565b8152602001908152602001600020546132899190614c72565b11156132fd5760405162461bcd60e51b815260206004820152603b60248201527f5175616e74697479206d757374206265206c657373207468616e2072656d616960448201527f6e696e6720737570706c7920666f7220746869732077696e646f7700000000006064820152608401610c00565b602854600090602790829060ff16600381111561331c5761331c614822565b600381111561332d5761332d614822565b8152602001908152602001600020600201549050818161334d9190614b5a565b34101561339c5760405162461bcd60e51b815260206004820152601c60248201527f496e73756666696369656e742045544820666f72206d696e74696e67000000006044820152606401610c00565b602854600090602790829060ff1660038111156133bb576133bb614822565b60038111156133cc576133cc614822565b815260208101919091526040016000206004015461ffff1690508015806134465750336000908152602660205260408120602854839286929160ff16600381111561341957613419614822565b600381111561342a5761342a614822565b8152602001908152602001600020546134439190614c72565b11155b6134ad5760405162461bcd60e51b815260206004820152603260248201527f596f752068617665207265616368656420796f75722077616c6c6574206c696d604482015271697420666f7220746869732077696e646f7760701b6064820152608401610c00565b60285460279060009060ff1660038111156134ca576134ca614822565b60038111156134db576134db614822565b8152602081019190915260400160002054610100900460ff1615610f2d576040516370a0823160e01b81523360048201527f000000000000000000000000fb61bd914d4cd5509ecbd4b16a0f96349e52db3d906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015613562573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135869190614e46565b11612eda5760405162461bcd60e51b815260206004820152602260248201527f596f75206d75737420626520612052656d697820686f6c64657220746f206d696044820152611b9d60f21b6064820152608401610c00565b60006135e861279e565b1161364b5760405162461bcd60e51b815260206004820152602d60248201527f4e6f7420656e6f75676820737570706c7920746f206d696e7420616c6c20616d60448201526c1bdd5b9d081c995c5d5a5c9959609a1b6064820152608401610c00565b60005b81811015610f2d576040805144602080830191909152428284015233606090811b6bffffffffffffffffffffffff1916908301526074808301859052835180840390910181526094909201909252805191012060006136ab61279e565b6136b59083614ca1565b905060006136c282611f41565b90506136d086826001613b46565b50505080806136de90614ba3565b91505061364e565b6001600160a01b03841661370c5760405162461bcd60e51b8152600401610c0090614cfd565b3361372b81878761371c88613cba565b61372588613cba565b87613842565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561376c5760405162461bcd60e51b8152600401610c0090614d42565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906137a9908490614c72565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613809828888888888613d05565b50505050505050565b610f2d838383613dc0565b60006001600160e01b03198216637965db0b60e01b1480610c3a5750610c3a82613df3565b612d19565b6001600160a01b0384163b15612d195760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061388b9089908990889088908890600401614e5f565b6020604051808303816000875af19250505080156138c6575060408051601f3d908101601f191682019092526138c391810190614ebd565b60015b613973576138d2614eda565b806308c379a0141561390c57506138e7614ef6565b806138f2575061390e565b8060405162461bcd60e51b8152600401610c00919061438b565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610c00565b6001600160e01b0319811663bc197c8160e01b146138095760405162461bcd60e51b8152600401610c0090614f80565b606060006139b2836002614b5a565b6139bd906002614c72565b67ffffffffffffffff8111156139d5576139d56143c2565b6040519080825280601f01601f1916602001820160405280156139ff576020820181803683370190505b509050600360fc1b81600081518110613a1a57613a1a614b2e565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613a4957613a49614b2e565b60200101906001600160f81b031916908160001a9053506000613a6d846002614b5a565b613a78906001614c72565b90505b6001811115613af0576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613aac57613aac614b2e565b1a60f81b828281518110613ac257613ac2614b2e565b60200101906001600160f81b031916908160001a90535060049490941c93613ae981614fc8565b9050613a7b565b508315613b3f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c00565b9392505050565b8060048360198110613b5a57613b5a614b2e565b01541015613ba15760405162461bcd60e51b8152602060048201526014602482015273546f6b656e4964206e6f74206d696e7461626c6560601b6044820152606401610c00565b8060048360198110613bb557613bb5614b2e565b016000828254613bc59190614c8a565b9250508190555080601f6000828254613bde9190614c72565b90915550506001600160a01b0383166000908152601d602052604081208054839290613c0b908490614c72565b92505081905550610f2d83838360405180604001604052806002815260200161060f60f31b815250613e43565b613c43838383613e78565b60005b8251811015612eda57818181518110613c6157613c61614b2e565b602002602001015160036000858481518110613c7f57613c7f614b2e565b602002602001015181526020019081526020016000206000828254613ca49190614c8a565b90915550613cb3905081614ba3565b9050613c46565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110613cf457613cf4614b2e565b602090810291909101015292915050565b6001600160a01b0384163b15612d195760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190613d499089908990889088908890600401614fdf565b6020604051808303816000875af1925050508015613d84575060408051601f3d908101601f19168201909252613d8191810190614ebd565b60015b613d90576138d2614eda565b6001600160e01b0319811663f23a6e6160e01b146138095760405162461bcd60e51b8152600401610c0090614f80565b613dcb838383614006565b60008281526003602052604081208054839290613de9908490614c8a565b9091555050505050565b60006001600160e01b03198216636cdb3d1360e11b1480613e2457506001600160e01b031982166303a24d0760e21b145b80610c3a57506301ffc9a760e01b6001600160e01b0319831614610c3a565b613e4f84848484614107565b60008381526003602052604081208054849290613e6d908490614c72565b909155505050505050565b6001600160a01b038316613e9e5760405162461bcd60e51b8152600401610c0090615024565b8051825114613ebf5760405162461bcd60e51b8152600401610c0090614cb5565b6000339050613ee281856000868660405180602001604052806000815250613842565b60005b8351811015613fa7576000848281518110613f0257613f02614b2e565b602002602001015190506000848381518110613f2057613f20614b2e565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015613f705760405162461bcd60e51b8152600401610c0090615067565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580613f9f81614ba3565b915050613ee5565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051613ff8929190614d8c565b60405180910390a450505050565b6001600160a01b03831661402c5760405162461bcd60e51b8152600401610c0090615024565b3361405b8185600061403d87613cba565b61404687613cba565b60405180602001604052806000815250613842565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561409c5760405162461bcd60e51b8152600401610c0090615067565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384166141675760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610c00565b336141788160008761371c88613cba565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906141a8908490614c72565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610f0081600087878787613d05565b82805461421490614a06565b90600052602060002090601f016020900481019282614236576000855561427c565b82601f1061424f57805160ff191683800117855561427c565b8280016001018555821561427c579182015b8281111561427c578251825591602001919060010190614261565b5061428892915061428c565b5090565b5b80821115614288576000815560010161428d565b80356001600160a01b03811681146142b857600080fd5b919050565b600080604083850312156142d057600080fd5b6142d9836142a1565b946020939093013593505050565b6001600160e01b031981168114612a0e57600080fd5b60006020828403121561430f57600080fd5b8135613b3f816142e7565b60006020828403121561432c57600080fd5b5035919050565b60005b8381101561434e578181015183820152602001614336565b83811115612eda5750506000910152565b60008151808452614377816020860160208601614333565b601f01601f19169290920160200192915050565b602081526000613b3f602083018461435f565b6000602082840312156143b057600080fd5b813561ffff81168114613b3f57600080fd5b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156143fe576143fe6143c2565b6040525050565b600067ffffffffffffffff82111561441f5761441f6143c2565b5060051b60200190565b600082601f83011261443a57600080fd5b8135602061444782614405565b60405161445482826143d8565b83815260059390931b850182019282810191508684111561447457600080fd5b8286015b8481101561448f5780358352918301918301614478565b509695505050505050565b600067ffffffffffffffff8311156144b4576144b46143c2565b6040516144cb601f8501601f1916602001826143d8565b8091508381528484840111156144e057600080fd5b83836020830137600060208583010152509392505050565b600082601f83011261450957600080fd5b613b3f8383356020850161449a565b600080600080600060a0868803121561453057600080fd5b614539866142a1565b9450614547602087016142a1565b9350604086013567ffffffffffffffff8082111561456457600080fd5b61457089838a01614429565b9450606088013591508082111561458657600080fd5b61459289838a01614429565b935060808801359150808211156145a857600080fd5b506145b5888289016144f8565b9150509295509295909350565b600080604083850312156145d557600080fd5b823591506145e5602084016142a1565b90509250929050565b60008060006060848603121561460357600080fd5b61460c846142a1565b925061461a602085016142a1565b9150614628604085016142a1565b90509250925092565b60006020828403121561464357600080fd5b613b3f826142a1565b6000806040838503121561465f57600080fd5b823567ffffffffffffffff8082111561467757600080fd5b818501915085601f83011261468b57600080fd5b8135602061469882614405565b6040516146a582826143d8565b83815260059390931b85018201928281019150898411156146c557600080fd5b948201945b838610156146ea576146db866142a1565b825294820194908201906146ca565b9650508601359250508082111561470057600080fd5b5061470d85828601614429565b9150509250929050565b600081518084526020808501945080840160005b838110156147475781518752958201959082019060010161472b565b509495945050505050565b602081526000613b3f6020830184614717565b60006020828403121561477757600080fd5b813567ffffffffffffffff81111561478e57600080fd5b8201601f8101841361479f57600080fd5b612b6f8482356020840161449a565b6000806000606084860312156147c357600080fd5b6147cc846142a1565b9250602084013567ffffffffffffffff808211156147e957600080fd5b6147f587838801614429565b9350604086013591508082111561480b57600080fd5b5061481886828701614429565b9150509250925092565b634e487b7160e01b600052602160045260246000fd5b60048110612a0e57634e487b7160e01b600052602160045260246000fd5b6020810161486383614838565b91905290565b803580151581146142b857600080fd5b60006020828403121561488b57600080fd5b613b3f82614869565b60048110612a0e57600080fd5b6000602082840312156148b357600080fd5b8135613b3f81614894565b600080604083850312156148d157600080fd5b6148da836142a1565b91506145e560208401614869565b600080604083850312156148fb57600080fd5b50508035926020909101359150565b60c0810161491788614838565b968152941515602086015260408501939093526060840191909152608083015261ffff1660a09091015290565b6000806040838503121561495757600080fd5b614960836142a1565b91506145e5602084016142a1565b600080600080600060a0868803121561498657600080fd5b61498f866142a1565b945061499d602087016142a1565b93506040860135925060608601359150608086013567ffffffffffffffff8111156149c757600080fd5b6145b5888289016144f8565b6000806000606084860312156149e857600080fd5b6149f1846142a1565b95602085013595506040909401359392505050565b600181811c90821680614a1a57607f821691505b60208210811415611fa357634e487b7160e01b600052602260045260246000fd5b60008151614a4d818560208601614333565b9290920192915050565b600080845481600182811c915080831680614a7357607f831692505b6020808410821415614a9357634e487b7160e01b86526022600452602486fd5b818015614aa75760018114614ab857614ae5565b60ff19861689528489019650614ae5565b60008b81526020902060005b86811015614add5781548b820152908501908301614ac4565b505084890196505b505050505050614af58185614a3b565b95945050505050565b60208082526016908201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615614b7457614b74614b44565b500290565b634e487b7160e01b600052601260045260246000fd5b600082614b9e57614b9e614b79565b500490565b6000600019821415614bb757614bb7614b44565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526021908201527f4d696e7420746f6b656e732061726520726571756972656420746f206d696e746040820152601760f91b606082015260800190565b60008219821115614c8557614c85614b44565b500190565b600082821015614c9c57614c9c614b44565b500390565b600082614cb057614cb0614b79565b500690565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000614d9f6040830185614717565b8281036020840152614af58185614717565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614de9816017850160208801614333565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614e1a816028840160208801614333565b01602801949350505050565b600060ff821660ff811415614e3d57614e3d614b44565b60010192915050565b600060208284031215614e5857600080fd5b5051919050565b6001600160a01b0386811682528516602082015260a060408201819052600090614e8b90830186614717565b8281036060840152614e9d8186614717565b90508281036080840152614eb1818561435f565b98975050505050505050565b600060208284031215614ecf57600080fd5b8151613b3f816142e7565b600060033d1115614ef35760046000803e5060005160e01c5b90565b600060443d1015614f045790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715614f3457505050505090565b8285019150815181811115614f4c5750505050505090565b843d8701016020828501011115614f665750505050505090565b614f75602082860101876143d8565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b600081614fd757614fd7614b44565b506000190190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906150199083018461435f565b979650505050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b60608201526080019056fea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a2646970667358221220bec465d09a0af133b451326fa53f1b52dd6991dd5b45e5dfdccc699dd1b47e7164736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c2faa7cf625b8adadbe423738c269558dc909d41000000000000000000000000fb61bd914d4cd5509ecbd4b16a0f96349e52db3d0000000000000000000000002dec6c6522b7dbbf6c7d8d0a6f6c8e2bfad93618000000000000000000000000bda1e2757f9a8973926120f6977756b2468b79bb00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014
-----Decoded View---------------
Arg [0] : _MINT_TOKEN_CONTRACT_ADDRESS (address): 0xc2fAA7CF625b8adadBE423738c269558Dc909D41
Arg [1] : _REMIX_CONTRACT_ADDRESS (address): 0xfb61bD914d4Cd5509ECbd4B16A0F96349e52DB3d
Arg [2] : _payableAddress1 (address): 0x2DEc6c6522B7dbbF6c7D8d0a6F6c8e2Bfad93618
Arg [3] : _payableAddress2 (address): 0xbda1E2757f9A8973926120F6977756B2468B79bb
Arg [4] : tokenSupply (uint256[]): 0,1,1,1,1,1,1,1,1,1,1,1,1,20,20,20,20,20,20,20,20,20,20,20,20
-----Encoded View---------------
31 Constructor Arguments found :
Arg [0] : 000000000000000000000000c2faa7cf625b8adadbe423738c269558dc909d41
Arg [1] : 000000000000000000000000fb61bd914d4cd5509ecbd4b16a0f96349e52db3d
Arg [2] : 0000000000000000000000002dec6c6522b7dbbf6c7d8d0a6f6c8e2bfad93618
Arg [3] : 000000000000000000000000bda1e2757f9a8973926120f6977756b2468b79bb
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [27] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [28] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [29] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [30] : 0000000000000000000000000000000000000000000000000000000000000014
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.