ERC-1155
Overview
Max Total Supply
135
Holders
58
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 |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
RainiNFT1155
Compiler Version
v0.8.3+commit.8d00100c
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// "SPDX-License-Identifier: MIT" pragma solidity ^0.8.3; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; interface IStakingPool { function balanceOf(address _owner) external view returns (uint256 balance); function burn(address _owner, uint256 _amount) external; } interface INftStakingPool { function getTokenStamina(uint256 _tokenId, address _nftContractAddress) external view returns (uint256 stamina); function mergeTokens(uint256 _newTokenId, uint256[] memory _tokenIds, address _nftContractAddress) external; } contract RainiNFT1155 is ERC1155, AccessControl, ReentrancyGuard { using SafeMath for uint256; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE"); address public nftStakingPoolAddress; struct CardLevel { uint64 conversionRate; // number of base tokens required to create uint32 numberMinted; uint128 tokenId; // ID of token if grouped, 0 if not uint32 maxStamina; // The initial and maxiumum stamina for a token } uint256 public constant POINT_COST_DECIMALS = 1000000000000000000; struct Card { uint64 costInUnicorns; uint64 costInRainbows; uint16 maxMintsPerAddress; uint32 maxSupply; // number of base tokens mintable uint32 allocation; // number of base tokens mintable with points on this contract uint32 mintTimeStart; // the timestamp from which the card can be minted string pathUri; } struct TokenVars { uint128 cardId; uint32 level; uint32 number; // to assign a numbering to NFTs bytes1 mintedContractChar; } uint256 public rainbowToEth; uint256 public unicornToEth; uint256 public minPointsPercentToMint = 25; string public baseUri; bytes1 public contractChar; string public contractURIString; // userId => cardId => count mapping(address => mapping(uint256 => uint256)) public numberMintedByAddress; // Number of a card minted by an address mapping(address => bool) public rainbowPools; mapping(address => bool) public unicornPools; uint256 public maxTokenId; uint256 public maxCardId; address private contractOwner; mapping(uint256 => Card) public cards; mapping(uint256 => CardLevel[]) public cardLevels; mapping(uint256 => uint256) public mergeFees; uint256 public mintingFeeBasisPoints; mapping(uint256 => TokenVars) public tokenVars; //event Minted(address to, uint256 id, uint256 amount); event Burned(address owner, uint256 id, uint256 amount); event CardsInitialized(uint256[] tokenIds, uint256[] maxSupplys); event Merged(address owner, uint256 id, uint256 received); constructor(string memory _uri, bytes1 _contractChar, string memory _contractURIString, address _contractOwner) ERC1155(_uri) { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(DEFAULT_ADMIN_ROLE, _contractOwner); _setupRole(MINTER_ROLE, _msgSender()); _setupRole(BURNER_ROLE, _msgSender()); baseUri = _uri; contractOwner = _contractOwner; contractChar = _contractChar; contractURIString = _contractURIString; } modifier onlyOwner() { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "caller is not an admin"); _; } modifier onlyMinter() { require(hasRole(MINTER_ROLE, _msgSender()), "caller is not a minter"); _; } modifier onlyBurner() { require(hasRole(BURNER_ROLE, _msgSender()), "caller is not a burner"); _; } function addRainbowPool(address _rainbowPool) external onlyOwner { rainbowPools[_rainbowPool] = true; } function removeRainbowPool(address _rainbowPool) external onlyOwner { rainbowPools[_rainbowPool] = false; } function addUnicornPool(address _unicornPool) external onlyOwner { unicornPools[_unicornPool] = true; } function removeUnicornPool(address _unicornPool) external onlyOwner { unicornPools[_unicornPool] = false; } function setEtherValues(uint256 _unicornToEth, uint256 _rainbowToEth, uint256 _minPointsPercentToMint) external onlyOwner { unicornToEth = _unicornToEth; rainbowToEth = _rainbowToEth; minPointsPercentToMint = _minPointsPercentToMint; } function setcontractURI(string memory _contractURIString) external onlyOwner { contractURIString = _contractURIString; } function setFees(uint256 _mintingFeeBasisPoints, uint256[] memory _mergeFees) external onlyOwner { mintingFeeBasisPoints =_mintingFeeBasisPoints; for (uint256 i = 1; i < _mergeFees.length; i++) { mergeFees[i] = _mergeFees[i]; } } function setNftStakingPoolAddress(address _nftStakingPoolAddress) external onlyOwner { nftStakingPoolAddress = (_nftStakingPoolAddress); } function getTokenStamina(uint256 _tokenId) external view returns (uint256) { if (nftStakingPoolAddress == address(0)) { TokenVars memory _tokenVars = tokenVars[_tokenId]; require(_tokenVars.cardId != 0, "No token for given ID"); return cardLevels[_tokenVars.cardId][_tokenVars.level].maxStamina; } else { INftStakingPool nftStakingPool = INftStakingPool(nftStakingPoolAddress); return nftStakingPool.getTokenStamina(_tokenId, address(this)); } } function getTotalBalance(address _address) external view returns (uint256[][] memory amounts) { uint256[][] memory _amounts = new uint256[][](maxTokenId); uint256 count; for (uint256 i = 1; i <= maxTokenId; i++) { uint256 balance = balanceOf(_address, i); if (balance != 0) { _amounts[count] = new uint256[](2); _amounts[count][0] = i; _amounts[count][1] = balance; count++; } } uint256[][] memory _amounts2 = new uint256[][](count); for (uint256 i = 0; i < count; i++) { _amounts2[i] = new uint256[](2); _amounts2[i][0] = _amounts[i][0]; _amounts2[i][1] = _amounts[i][1]; } return _amounts2; } function merge(uint256 _cardId, uint256 _level, uint256 _mintAmount, uint256[] memory _tokenIds, uint256[] memory _burnAmounts) external payable nonReentrant { CardLevel memory _cardLevel = cardLevels[_cardId][_level]; require(_level > 0 && _cardLevel.conversionRate > 0, "merge not allowed"); uint256 cost = _cardLevel.conversionRate * _mintAmount; uint256 totalPointsBurned = 0; for (uint256 i = 0; i < _tokenIds.length; i++) { require(_burnAmounts[i] <= balanceOf(_msgSender(), _tokenIds[i]), "not enough balance"); TokenVars memory _tempTokenVars = tokenVars[_tokenIds[i]]; require(_tempTokenVars.cardId == _cardId, "card mismatch"); require(_tempTokenVars.level < _level, "can only merge into higher levels"); CardLevel memory _tempCardLevel = cardLevels[_tempTokenVars.cardId][_tempTokenVars.level]; if (_tempTokenVars.level == 0) { totalPointsBurned += _burnAmounts[i]; } else { totalPointsBurned += _burnAmounts[i] * _tempCardLevel.conversionRate; } _burn(_msgSender(), _tokenIds[i], _burnAmounts[i]); } require(totalPointsBurned == cost, "wrong number of tokens burned"); require(mergeFees[_level] * _mintAmount <= msg.value, "Not enough ETH"); (bool success, ) = _msgSender().call{ value: msg.value - mergeFees[_level] * _mintAmount}(""); // refund excess Eth require(success, "transfer failed"); if (nftStakingPoolAddress != address(0) && _level > 0 && cardLevels[_cardId][_level-1].tokenId == 0) { INftStakingPool nftStakingPool = INftStakingPool(nftStakingPoolAddress); uint256 nextTokenId = maxTokenId; uint256[] memory mergedTokensIds = new uint256[](_cardLevel.conversionRate); for (uint256 i = 0; i < _tokenIds.length; i++) { if (i > 0 && i%_cardLevel.conversionRate == 0) { nextTokenId++; nftStakingPool.mergeTokens(nextTokenId, mergedTokensIds, address(this)); mergedTokensIds = new uint256[](_cardLevel.conversionRate); } mergedTokensIds[i%_cardLevel.conversionRate] = _tokenIds[i]; } } _mintToken(_msgSender(), _cardId, _level, _mintAmount, contractChar, 0); } function initCards(uint256[] memory _costInUnicorns, uint256[] memory _costInRainbows, uint256[] memory _maxMintsPerAddress, uint16[] memory _maxSupply, uint256[] memory _allocation, string[] memory _pathUri, uint32[] memory _mintTimeStart, uint16[][] memory _conversionRates, bool[][] memory _isGrouped, uint256[][] memory _maxStamina) external onlyOwner() { require(_costInUnicorns.length == _costInRainbows.length); require(_costInUnicorns.length == _maxMintsPerAddress.length); require(_costInUnicorns.length == _pathUri.length); require(_costInUnicorns.length == _maxSupply.length); require(_costInUnicorns.length == _allocation.length); uint256 _maxCardId = maxCardId; uint256 _maxTokenId = maxTokenId; for (uint256 i; i < _costInUnicorns.length; i++) { require(_conversionRates[i].length == _isGrouped[i].length); _maxCardId++; cards[_maxCardId] = Card({ costInUnicorns: uint64(_costInUnicorns[i]), costInRainbows: uint64(_costInRainbows[i]), maxMintsPerAddress: uint16(_maxMintsPerAddress[i]), maxSupply: uint32(_maxSupply[i]), allocation: uint32(_allocation[i]), mintTimeStart: uint32(_mintTimeStart[i]), pathUri: _pathUri[i] }); for (uint256 j = 0; j < _conversionRates[i].length; j++) { uint256 _tokenId = 0; if (_isGrouped[i][j]) { _maxTokenId++; _tokenId = _maxTokenId; tokenVars[_maxTokenId] = TokenVars({ cardId: uint128(_maxCardId), level: uint32(j), number: 0, mintedContractChar: contractChar }); } cardLevels[_maxCardId].push(CardLevel({ conversionRate: uint64(_conversionRates[i][j]), numberMinted: 0, tokenId: uint128(_tokenId), maxStamina: uint32(_maxStamina[i][j]) })); } } maxTokenId = _maxTokenId; maxCardId = _maxCardId; } function _mintToken(address _to, uint256 _cardId, uint256 _cardLevel, uint256 _amount, bytes1 _mintedContractChar, uint256 _number) private { Card memory card = cards[_cardId]; CardLevel memory cardLevel = cardLevels[_cardId][_cardLevel]; require(_cardLevel > 0 || cardLevel.numberMinted + _amount <= card.maxSupply, "total supply reached."); if (cardLevel.tokenId != 0) { _mint(_to, _cardId, _amount, ""); } else { for (uint256 i = 0; i < _amount; i++) { uint256 num; if (_number == 0) { cardLevel.numberMinted += 1; num = cardLevel.numberMinted; } else { num = _number; } uint256 _maxTokenId = maxTokenId; _maxTokenId++; _mint(_to, _maxTokenId, 1, ""); tokenVars[_maxTokenId] = TokenVars({ cardId: uint128(_cardId), level: uint32(_cardLevel), number: uint32(num), mintedContractChar: _mintedContractChar }); maxTokenId = _maxTokenId; } } cardLevels[_cardId][_cardLevel].numberMinted += uint32(_amount); //emit Minted(_to, _cardId, _amount); } function mint(address _to, uint256 _cardId, uint256 _cardLevel, uint256 _amount, bytes1 _mintedContractChar, uint256 _number) external onlyMinter { _mintToken(_to, _cardId, _cardLevel, _amount, _mintedContractChar, _number); } function burn(uint256 _tokenId, uint256 _amount, address _owner) external onlyBurner { require(_amount <= balanceOf(_owner, _tokenId), "not enough balance"); _burn(_owner, _tokenId, _amount); emit Burned(_owner, _tokenId, _amount); } function supportsInterface(bytes4 interfaceId) public virtual override(ERC1155, AccessControl) view returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } function mintWithPoints(uint256[] memory _cardId, uint256[] memory _amount, bool[] memory _useUnicorns, address[] memory _rainbowPools, address[] memory _unicornPools) external payable nonReentrant { uint256 _totalPriceRainbows = 0; uint256 _totalPriceUnicorns = 0; uint256 _fee = 0; for (uint256 i = 0; i < _cardId.length; i++) { Card memory card = cards[_cardId[i]]; CardLevel memory cardLevel = cardLevels[_cardId[i]][0]; require(block.timestamp >= card.mintTimeStart, "Card not yet mintable"); require(cardLevel.numberMinted + _amount[i] <= card.allocation, "Not enough tokens in supply"); require(numberMintedByAddress[_msgSender()][_cardId[i]] + _amount[i] <= card.maxMintsPerAddress, "Max mints reached for address"); if (_useUnicorns[i]) { require(card.costInUnicorns > 0, "unicorns not allowed"); _totalPriceUnicorns += card.costInUnicorns * _amount[i] * POINT_COST_DECIMALS; } else { require(card.costInRainbows > 0, "rainbows not allowed"); _totalPriceRainbows += card.costInRainbows * _amount[i] * POINT_COST_DECIMALS; } if (card.costInRainbows > 0) { _fee += (card.costInRainbows * _amount[i] * POINT_COST_DECIMALS * mintingFeeBasisPoints) / (rainbowToEth * 10000); } else { _fee += (card.costInUnicorns * _amount[i] * POINT_COST_DECIMALS * mintingFeeBasisPoints) / (unicornToEth * 10000); } } uint256 _amountEthToWithdraw = 0; for (uint256 n = 0; n < 2; n++) { bool loopTypeUnicorns = n > 0; uint256 totalBalance = 0; uint256 totalPrice = loopTypeUnicorns ? _totalPriceUnicorns : _totalPriceRainbows; uint256 remainingPrice = totalPrice; if (totalPrice > 0) { uint256 loopLength = loopTypeUnicorns ? _unicornPools.length : _rainbowPools.length; require(loopLength > 0, "invalid pools"); for (uint256 i = 0; i < loopLength; i++) { IStakingPool pool; if (loopTypeUnicorns) { require((unicornPools[_unicornPools[i]]), "invalid unicorn pool"); pool = IStakingPool(_unicornPools[i]); } else { require((rainbowPools[_rainbowPools[i]]), "invalid rainbow pool"); pool = IStakingPool(_rainbowPools[i]); } uint256 _balance = pool.balanceOf(_msgSender()); totalBalance += _balance; if (totalBalance >= totalPrice) { pool.burn(_msgSender(), remainingPrice); remainingPrice = 0; break; } else { pool.burn(_msgSender(), _balance); remainingPrice -= _balance; } } if (remainingPrice > 0) { uint256 minPoints = (totalPrice * minPointsPercentToMint) / 100; require(totalPrice - remainingPrice >= minPoints, "not enough balance"); uint256 pointsToEth = loopTypeUnicorns ? unicornToEth : rainbowToEth; require(msg.value * pointsToEth > remainingPrice, "not enough balance"); _amountEthToWithdraw += remainingPrice / pointsToEth; } } } // Add minting fees _amountEthToWithdraw += _fee; require(_amountEthToWithdraw <= msg.value, "Not enough ETH"); (bool success, ) = _msgSender().call{ value: msg.value - _amountEthToWithdraw }(""); // refund excess Eth require(success, "transfer failed"); for (uint256 i = 0; i < _cardId.length; i++) { numberMintedByAddress[_msgSender()][_cardId[i]] += _amount[i]; _mintToken(_msgSender(), _cardId[i], 0, _amount[i], contractChar, 0); } } function uri(uint256 id) public view virtual override returns (string memory) { TokenVars memory _tokenVars = tokenVars[id]; require(_tokenVars.cardId != 0, "No token for given ID"); return string(abi.encodePacked(baseUri, cards[_tokenVars.cardId].pathUri, "/", _tokenVars.mintedContractChar, "l", uint2str(_tokenVars.level), "n", uint2str(_tokenVars.number), ".json")); } function uint2str(uint _i) internal pure returns (string memory _uintAsString) { if (_i == 0) { return "0"; } uint j = _i; uint len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint k = len; while (_i != 0) { k = k-1; uint8 temp = (48 + uint8(_i - _i / 10 * 10)); bytes1 b1 = bytes1(temp); bstr[k] = b1; _i /= 10; } return string(bstr); } function contractURI() public view returns (string memory) { return contractURIString; //"ipfs://ipfs/QmcFSxsmHKSF7qLipio8RuE9Mh61bP2U5VdDg54zCV7W5g"; } function owner() public view virtual returns (address) { return contractOwner; } // Allow the owner to withdraw Ether payed into the contract function withdrawEth(uint256 _amount) external onlyOwner { require(_amount <= address(this).balance, "not enough balance"); (bool success, ) = _msgSender().call{ value: _amount }(""); require(success, "transfer failed"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { function hasRole(bytes32 role, address account) external view returns (bool); function getRoleAdmin(bytes32 role) external view returns (bytes32); function grantRole(bytes32 role, address account) external; function revokeRole(bytes32 role, address account) external; function renounceRole(bytes32 role, address account) external; } /** * @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 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 {_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 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]{20}) is missing role (0x[0-9a-f]{32})$/ * * _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]{20}) is missing role (0x[0-9a-f]{32})$/ */ 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 { emit RoleAdminChanged(role, getRoleAdmin(role), adminRole); _roles[role].adminRole = 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 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(to != address(0), "ERC1155: transfer to the zero address"); require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); 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"); _balances[id][from] = fromBalance - amount; _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, 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(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); 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"); _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 (uint 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"); _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 (uint 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"); _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(to).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(to).onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns(bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns(bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "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] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"bytes1","name":"_contractChar","type":"bytes1"},{"internalType":"string","name":"_contractURIString","type":"string"},{"internalType":"address","name":"_contractOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"maxSupplys","type":"uint256[]"}],"name":"CardsInitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"received","type":"uint256"}],"name":"Merged","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"},{"inputs":[],"name":"BURNER_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":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POINT_COST_DECIMALS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rainbowPool","type":"address"}],"name":"addRainbowPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_unicornPool","type":"address"}],"name":"addUnicornPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"cardLevels","outputs":[{"internalType":"uint64","name":"conversionRate","type":"uint64"},{"internalType":"uint32","name":"numberMinted","type":"uint32"},{"internalType":"uint128","name":"tokenId","type":"uint128"},{"internalType":"uint32","name":"maxStamina","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cards","outputs":[{"internalType":"uint64","name":"costInUnicorns","type":"uint64"},{"internalType":"uint64","name":"costInRainbows","type":"uint64"},{"internalType":"uint16","name":"maxMintsPerAddress","type":"uint16"},{"internalType":"uint32","name":"maxSupply","type":"uint32"},{"internalType":"uint32","name":"allocation","type":"uint32"},{"internalType":"uint32","name":"mintTimeStart","type":"uint32"},{"internalType":"string","name":"pathUri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractChar","outputs":[{"internalType":"bytes1","name":"","type":"bytes1"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURIString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTokenStamina","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getTotalBalance","outputs":[{"internalType":"uint256[][]","name":"amounts","type":"uint256[][]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_costInUnicorns","type":"uint256[]"},{"internalType":"uint256[]","name":"_costInRainbows","type":"uint256[]"},{"internalType":"uint256[]","name":"_maxMintsPerAddress","type":"uint256[]"},{"internalType":"uint16[]","name":"_maxSupply","type":"uint16[]"},{"internalType":"uint256[]","name":"_allocation","type":"uint256[]"},{"internalType":"string[]","name":"_pathUri","type":"string[]"},{"internalType":"uint32[]","name":"_mintTimeStart","type":"uint32[]"},{"internalType":"uint16[][]","name":"_conversionRates","type":"uint16[][]"},{"internalType":"bool[][]","name":"_isGrouped","type":"bool[][]"},{"internalType":"uint256[][]","name":"_maxStamina","type":"uint256[][]"}],"name":"initCards","outputs":[],"stateMutability":"nonpayable","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":"maxCardId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"},{"internalType":"uint256","name":"_level","type":"uint256"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_burnAmounts","type":"uint256[]"}],"name":"merge","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mergeFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minPointsPercentToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_cardId","type":"uint256"},{"internalType":"uint256","name":"_cardLevel","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes1","name":"_mintedContractChar","type":"bytes1"},{"internalType":"uint256","name":"_number","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_cardId","type":"uint256[]"},{"internalType":"uint256[]","name":"_amount","type":"uint256[]"},{"internalType":"bool[]","name":"_useUnicorns","type":"bool[]"},{"internalType":"address[]","name":"_rainbowPools","type":"address[]"},{"internalType":"address[]","name":"_unicornPools","type":"address[]"}],"name":"mintWithPoints","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintingFeeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftStakingPoolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"numberMintedByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rainbowPools","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rainbowToEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rainbowPool","type":"address"}],"name":"removeRainbowPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_unicornPool","type":"address"}],"name":"removeUnicornPool","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":"uint256","name":"_unicornToEth","type":"uint256"},{"internalType":"uint256","name":"_rainbowToEth","type":"uint256"},{"internalType":"uint256","name":"_minPointsPercentToMint","type":"uint256"}],"name":"setEtherValues","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintingFeeBasisPoints","type":"uint256"},{"internalType":"uint256[]","name":"_mergeFees","type":"uint256[]"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftStakingPoolAddress","type":"address"}],"name":"setNftStakingPoolAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURIString","type":"string"}],"name":"setcontractURI","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":"","type":"uint256"}],"name":"tokenVars","outputs":[{"internalType":"uint128","name":"cardId","type":"uint128"},{"internalType":"uint32","name":"level","type":"uint32"},{"internalType":"uint32","name":"number","type":"uint32"},{"internalType":"bytes1","name":"mintedContractChar","type":"bytes1"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"unicornPools","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unicornToEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260196008553480156200001657600080fd5b50604051620063713803806200637183398101604081905262000039916200033e565b8362000045816200011f565b506001600455620000596000335b62000138565b6200006660008262000138565b620000927f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000053565b620000be7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8483362000053565b8351620000d3906009906020870190620001e5565b50601180546001600160a01b0319166001600160a01b038316179055600a805460ff191660f885901c17905581516200011490600b906020850190620001e5565b505050505062000452565b805162000134906002906020840190620001e5565b5050565b60008281526003602090815260408083206001600160a01b038516845290915290205462000134908390839060ff16620001345760008281526003602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001a13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620001f390620003ff565b90600052602060002090601f01602090048101928262000217576000855562000262565b82601f106200023257805160ff191683800117855562000262565b8280016001018555821562000262579182015b828111156200026257825182559160200191906001019062000245565b506200027092915062000274565b5090565b5b8082111562000270576000815560010162000275565b600082601f8301126200029c578081fd5b81516001600160401b0380821115620002b957620002b96200043c565b604051601f8301601f19908116603f01168101908282118183101715620002e457620002e46200043c565b8160405283815260209250868385880101111562000300578485fd5b8491505b8382101562000323578582018301518183018401529082019062000304565b838211156200033457848385830101525b9695505050505050565b6000806000806080858703121562000354578384fd5b84516001600160401b03808211156200036b578586fd5b62000379888389016200028b565b602088015190965091507fff0000000000000000000000000000000000000000000000000000000000000082168214620003b1578485fd5b604087015191945080821115620003c6578384fd5b50620003d5878288016200028b565b606087015190935090506001600160a01b0381168114620003f4578182fd5b939692955090935050565b600181811c908216806200041457607f821691505b602082108114156200043657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b615f0f80620004626000396000f3fe6080604052600436106102fe5760003560e01c8063749388c411610190578063bda3ed07116100dc578063e0e5120d11610095578063efa00ce71161006f578063efa00ce714610a64578063f242432a14610a84578063f7e177de14610aa4578063f9f98af614610aba576102fe565b8063e0e5120d146109e6578063e8a3d48514610a06578063e985e9c514610a1b576102fe565b8063bda3ed07146108f8578063bf0e8c0d14610925578063c311d04914610945578063d3d3819314610965578063d539139314610992578063d547741f146109c6576102fe565b806391d14854116101495780639abc8320116101235780639abc832014610892578063a217fddf146108a7578063a22cb465146108bc578063ae3068c1146108dc576102fe565b806391d148541461083c578063928cb1481461085c57806392d62ccd1461087c576102fe565b8063749388c4146107965780637b898556146107b65780637e41d835146107c95780638da5cb5b146107de5780638dc10768146107f357806391ba317a14610826576102fe565b8063248a9ca31161024f57806343c278d211610208578063582f706f116101e2578063582f706f146106cf5780635a3b336c146106e55780636bb2e32d1461070557806370e7d27414610738576102fe565b806343c278d21461066f5780634e1273f41461068257806354a7d0a9146106af576102fe565b8063248a9ca31461058b578063257ea0ab146105bb578063282c51f3146105db5780632eb2c2d61461060f5780632f2ff15d1461062f57806336568abe1461064f576102fe565b80630c024776116102bc57806313f431601161029657806313f431601461050f57806315d21e111461053f5780631c513339146105555780631d9083f31461056b576102fe565b80630c0247761461048a5780630e89341c146104c257806313140ebe146104ef576102fe565b8062fdd58e1461030357806301870f021461033657806301ffc9a7146103d0578063051d2cad1461040057806308a55a6e146104225780630a3de45114610452575b600080fd5b34801561030f57600080fd5b5061032361031e3660046151c9565b610ada565b6040519081526020015b60405180910390f35b34801561034257600080fd5b506103926103513660046154f6565b6016602052600090815260409020546001600160801b0381169063ffffffff600160801b8204811691600160a01b810490911690600160c01b900460f81b84565b604080516001600160801b0395909516855263ffffffff938416602086015291909216908301526001600160f81b031916606082015260800161032d565b3480156103dc57600080fd5b506103f06103eb366004615530565b610b71565b604051901515815260200161032d565b34801561040c57600080fd5b5061042061041b366004615377565b610bd4565b005b34801561042e57600080fd5b506103f061043d36600461504d565b600d6020526000908152604090205460ff1681565b34801561045e57600080fd5b5061032361046d3660046151c9565b600c60209081526000928352604080842090915290825290205481565b34801561049657600080fd5b506005546104aa906001600160a01b031681565b6040516001600160a01b03909116815260200161032d565b3480156104ce57600080fd5b506104e26104dd3660046154f6565b611225565b60405161032d9190615a28565b3480156104fb57600080fd5b5061042061050a3660046151f2565b611354565b34801561051b57600080fd5b506103f061052a36600461504d565b600e6020526000908152604090205460ff1681565b34801561054b57600080fd5b5061032360075481565b34801561056157600080fd5b5061032360065481565b34801561057757600080fd5b5061042061058636600461504d565b6113d9565b34801561059757600080fd5b506103236105a63660046154f6565b60009081526003602052604090206001015490565b3480156105c757600080fd5b506104206105d636600461504d565b611422565b3480156105e757600080fd5b506103237f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b34801561061b57600080fd5b5061042061062a366004615099565b61146a565b34801561063b57600080fd5b5061042061064a36600461550e565b611729565b34801561065b57600080fd5b5061042061066a36600461550e565b611755565b61042061067d366004615674565b6117d3565b34801561068e57600080fd5b506106a261069d366004615259565b61205c565b60405161032d91906159e7565b3480156106bb57600080fd5b506104206106ca366004615649565b6121b0565b3480156106db57600080fd5b5061032360155481565b3480156106f157600080fd5b5061042061070036600461504d565b6121e5565b34801561071157600080fd5b50600a5461071f9060f81b81565b6040516001600160f81b0319909116815260200161032d565b34801561074457600080fd5b506107586107533660046155f4565b612230565b604080516001600160401b03909516855263ffffffff93841660208601526001600160801b039092169184019190915216606082015260800161032d565b3480156107a257600080fd5b506104206107b1366004615615565b612290565b6104206107c43660046152b9565b612382565b3480156107d557600080fd5b506104e26130ee565b3480156107ea57600080fd5b506104aa61317c565b3480156107ff57600080fd5b5061081361080e3660046154f6565b61318c565b60405161032d9796959493929190615bc8565b34801561083257600080fd5b50610323600f5481565b34801561084857600080fd5b506103f061085736600461550e565b613278565b34801561086857600080fd5b5061042061087736600461504d565b6132a3565b34801561088857600080fd5b5061032360105481565b34801561089e57600080fd5b506104e26132ee565b3480156108b357600080fd5b50610323600081565b3480156108c857600080fd5b506104206108d73660046151a0565b6132fb565b3480156108e857600080fd5b50610323670de0b6b3a764000081565b34801561090457600080fd5b506103236109133660046154f6565b60146020526000908152604090205481565b34801561093157600080fd5b506103236109403660046154f6565b6133df565b34801561095157600080fd5b506104206109603660046154f6565b613597565b34801561097157600080fd5b5061098561098036600461504d565b613646565b60405161032d9190615986565b34801561099e57600080fd5b506103237f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156109d257600080fd5b506104206109e136600461550e565b6139f2565b3480156109f257600080fd5b50610420610a0136600461504d565b613a18565b348015610a1257600080fd5b506104e2613a60565b348015610a2757600080fd5b506103f0610a36366004615067565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610a7057600080fd5b50610420610a7f366004615568565b613af2565b348015610a9057600080fd5b50610420610a9f36600461513e565b613b2c565b348015610ab057600080fd5b5061032360085481565b348015610ac657600080fd5b50610420610ad53660046155ba565b613cdc565b60006001600160a01b038316610b4b5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610ba257506001600160e01b031982166303a24d0760e21b145b80610bbd57506001600160e01b03198216637965db0b60e01b145b80610bcc5750610bcc82613d62565b90505b919050565b610bdf600033610857565b610bfb5760405162461bcd60e51b8152600401610b4290615af4565b88518a5114610c0957600080fd5b87518a5114610c1757600080fd5b84518a5114610c2557600080fd5b86518a5114610c3357600080fd5b85518a5114610c4157600080fd5b601054600f5460005b8c5181101561121257848181518110610c7357634e487b7160e01b600052603260045260246000fd5b602002602001015151868281518110610c9c57634e487b7160e01b600052603260045260246000fd5b60200260200101515114610caf57600080fd5b82610cb981615da7565b9350506040518060e001604052808e8381518110610ce757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160401b031681526020018d8381518110610d1d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160401b031681526020018c8381518110610d5357634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff1681526020018b8381518110610d8457634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff1663ffffffff1681526020018a8381518110610dbb57634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff168152602001888381518110610dee57634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff168152602001898381518110610e2157634e487b7160e01b600052603260045260246000fd5b6020908102919091018101519091526000858152601282526040908190208351815485850151938601516060870151608088015160a089015163ffffffff908116600160d01b0263ffffffff60d01b19928216600160b01b029290921667ffffffffffffffff60b01b1991909316600160901b0263ffffffff60901b1961ffff909516600160801b029490941665ffffffffffff60801b196001600160401b03998a16600160401b026fffffffffffffffffffffffffffffffff19909716999097169890981794909417949094169590951717169290921791909117815560c083015180519192610f1a92600185019290910190614b61565b5090505060005b868281518110610f4157634e487b7160e01b600052603260045260246000fd5b6020026020010151518110156111ff576000868381518110610f7357634e487b7160e01b600052603260045260246000fd5b60200260200101518281518110610f9a57634e487b7160e01b600052603260045260246000fd5b6020026020010151156110655783610fb181615da7565b604080516080810182526001600160801b03898116825263ffffffff87811660208085019182526000858701818152600a5460f890811b6001600160f81b031916606089019081528a84526016909452979091209551865493519151925195166001600160a01b031990931692909217600160801b928416929092029190911764ffffffffff60a01b1916600160a01b919092160260ff60c01b191617600160c01b9190931c029190911790559450849150505b6013600086815260200190815260200160002060405180608001604052808a86815181106110a357634e487b7160e01b600052603260045260246000fd5b602002602001015185815181106110ca57634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff166001600160401b03168152602001600063ffffffff168152602001836001600160801b0316815260200188868151811061112057634e487b7160e01b600052603260045260246000fd5b6020026020010151858151811061114757634e487b7160e01b600052603260045260246000fd5b60209081029190910181015163ffffffff90811690925283546001810185556000948552938190208351940180549184015160408501516060909501518416600160e01b026001600160e01b036001600160801b03909616600160601b02959095166bffffffffffffffffffffffff91909416600160401b026bffffffffffffffffffffffff199093166001600160401b039096169590951791909117939093161717905550806111f781615da7565b915050610f21565b508061120a81615da7565b915050610c4a565b50600f5560105550505050505050505050565b600081815260166020908152604091829020825160808101845290546001600160801b038116808352600160801b820463ffffffff90811694840194909452600160a01b820490931693820193909352600160c01b90920460f81b6001600160f81b03191660608084019190915291906112d95760405162461bcd60e51b8152602060048201526015602482015274139bc81d1bdad95b88199bdc8819da5d995b881251605a1b6044820152606401610b42565b60096012600083600001516001600160801b031681526020019081526020016000206001018260600151611316846020015163ffffffff16613d87565b611329856040015163ffffffff16613d87565b60405160200161133d9594939291906157e2565b604051602081830303815290604052915050919050565b61137e7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610857565b6113c35760405162461bcd60e51b815260206004820152601660248201527531b0b63632b91034b9903737ba10309036b4b73a32b960511b6044820152606401610b42565b6113d1868686868686613ec3565b505050505050565b6113e4600033610857565b6114005760405162461bcd60e51b8152600401610b4290615af4565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b61142d600033610857565b6114495760405162461bcd60e51b8152600401610b4290615af4565b6001600160a01b03166000908152600d60205260409020805460ff19169055565b81518351146114cc5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610b42565b6001600160a01b0384166114f25760405162461bcd60e51b8152600401610b4290615aaf565b6001600160a01b03851633148061150e575061150e8533610a36565b6115755760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b42565b3360005b84518110156116c35760008582815181106115a457634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106115d057634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156116205760405162461bcd60e51b8152600401610b4290615b24565b61162a8282615ce2565b60008085815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020819055508160008085815260200190815260200160002060008b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116a89190615c4a565b92505081905550505050806116bc90615da7565b9050611579565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516117139291906159fa565b60405180910390a46113d18187878787876142c7565b60008281526003602052604090206001015461174681335b614432565b6117508383614496565b505050565b6001600160a01b03811633146117c55760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b42565b6117cf828261451c565b5050565b600260045414156118265760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b42565b6002600455600085815260136020526040812080548690811061185957634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805160808101825291909201546001600160401b038116825263ffffffff600160401b82048116948301949094526001600160801b03600160601b82041692820192909252600160e01b9091049091166060820152905084158015906118d5575080516001600160401b031615155b6119155760405162461bcd60e51b81526020600482015260116024820152701b595c99d9481b9bdd08185b1b1bddd959607a1b6044820152606401610b42565b805160009061192e9086906001600160401b0316615cc3565b90506000805b8551811015611c965761196e3387838151811061196157634e487b7160e01b600052603260045260246000fd5b6020026020010151610ada565b85828151811061198e57634e487b7160e01b600052603260045260246000fd5b602002602001015111156119b45760405162461bcd60e51b8152600401610b4290615a83565b6000601660008884815181106119da57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252818101929092526040908101600020815160808101835290546001600160801b038116808352600160801b820463ffffffff90811695840195909552600160a01b820490941692820192909252600160c01b90910460f81b6001600160f81b031916606082015291508a14611a8f5760405162461bcd60e51b815260206004820152600d60248201526c0c6c2e4c840dad2e6dac2e8c6d609b1b6044820152606401610b42565b88816020015163ffffffff1610611af25760405162461bcd60e51b815260206004820152602160248201527f63616e206f6e6c79206d6572676520696e746f20686967686572206c6576656c6044820152607360f81b6064820152608401610b42565b80516001600160801b03166000908152601360209081526040822090830151815463ffffffff909116908110611b3857634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805160808101825291909201546001600160401b038116825263ffffffff600160401b82048116838601526001600160801b03600160601b83041693830193909352600160e01b9004821660608201529184015191925016611bdb57868381518110611bc157634e487b7160e01b600052603260045260246000fd5b602002602001015184611bd49190615c4a565b9350611c28565b80600001516001600160401b0316878481518110611c0957634e487b7160e01b600052603260045260246000fd5b6020026020010151611c1b9190615cc3565b611c259085615c4a565b93505b611c8133898581518110611c4c57634e487b7160e01b600052603260045260246000fd5b6020026020010151898681518110611c7457634e487b7160e01b600052603260045260246000fd5b6020026020010151614583565b50508080611c8e90615da7565b915050611934565b50818114611ce65760405162461bcd60e51b815260206004820152601d60248201527f77726f6e67206e756d626572206f6620746f6b656e73206275726e65640000006044820152606401610b42565b6000878152601460205260409020543490611d02908890615cc3565b1115611d415760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b6044820152606401610b42565b6000878152601460205260408120543390611d5d908990615cc3565b611d679034615ce2565b604051600081818185875af1925050503d8060008114611da3576040519150601f19603f3d011682016040523d82523d6000602084013e611da8565b606091505b5050905080611dc95760405162461bcd60e51b8152600401610b4290615b6e565b6005546001600160a01b031615801590611de35750600088115b8015611e3f57506000898152601360205260409020611e0360018a615ce2565b81548110611e2157634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600160601b90046001600160801b0316155b1561203557600554600f5485516001600160a01b03909216916000906001600160401b0390811690811115611e8457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611ead578160200160208202803683370190505b50905060005b895181101561203057600081118015611ede57508751611edc906001600160401b031682615dc2565b155b15611fb35782611eed81615da7565b60405163feb0ae7f60e01b81529094506001600160a01b038616915063feb0ae7f90611f2190869086903090600401615b97565b600060405180830381600087803b158015611f3b57600080fd5b505af1158015611f4f573d6000803e3d6000fd5b5050505087600001516001600160401b03166001600160401b03811115611f8657634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611faf578160200160208202803683370190505b5091505b898181518110611fd357634e487b7160e01b600052603260045260246000fd5b60200260200101518289600001516001600160401b031683611ff59190615dc2565b8151811061201357634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061202881615da7565b915050611eb3565b505050505b61204c33600a548b908b908b9060f81b6000613ec3565b5050600160045550505050505050565b606081518351146120c15760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610b42565b600083516001600160401b038111156120ea57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612113578160200160208202803683370190505b50905060005b84518110156121a85761216d85828151811061214557634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061196157634e487b7160e01b600052603260045260246000fd5b82828151811061218d57634e487b7160e01b600052603260045260246000fd5b60209081029190910101526121a181615da7565b9050612119565b509392505050565b6121bb600033610857565b6121d75760405162461bcd60e51b8152600401610b4290615af4565b600792909255600655600855565b6121f0600033610857565b61220c5760405162461bcd60e51b8152600401610b4290615af4565b6001600160a01b03166000908152600d60205260409020805460ff19166001179055565b6013602052816000526040600020818154811061224c57600080fd5b6000918252602090912001546001600160401b038116925063ffffffff600160401b8204811692506001600160801b03600160601b83041691600160e01b90041684565b6122ba7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84833610857565b6122ff5760405162461bcd60e51b815260206004820152601660248201527531b0b63632b91034b9903737ba103090313ab93732b960511b6044820152606401610b42565b6123098184610ada565b8211156123285760405162461bcd60e51b8152600401610b4290615a83565b612333818484614583565b604080516001600160a01b0383168152602081018590529081018390527f23ff0e75edf108e3d0392d92e13e8c8a868ef19001bd49f9e94876dc46dff87f9060600160405180910390a1505050565b600260045414156123d55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b42565b600260045560008080805b8851811015612a8c576000601260008b848151811061240f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252818101929092526040908101600020815160e08101835281546001600160401b038082168352600160401b8204169482019490945261ffff600160801b8504169281019290925263ffffffff600160901b840481166060840152600160b01b840481166080840152600160d01b90930490921660a082015260018201805491929160c0840191906124ad90615d40565b80601f01602080910402602001604051908101604052809291908181526020018280546124d990615d40565b80156125265780601f106124fb57610100808354040283529160200191612526565b820191906000526020600020905b81548152906001019060200180831161250957829003601f168201915b50505050508152505090506000601360008c858151811061255757634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008154811061258d57634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805160808101825291909201546001600160401b038116825263ffffffff600160401b82048116948301949094526001600160801b03600160601b82041692820192909252600160e01b9091048216606082015260a08401519092501642101561263e5760405162461bcd60e51b815260206004820152601560248201527443617264206e6f7420796574206d696e7461626c6560581b6044820152606401610b42565b816080015163ffffffff168a848151811061266957634e487b7160e01b600052603260045260246000fd5b6020026020010151826020015163ffffffff166126869190615c4a565b11156126d45760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f75676820746f6b656e7320696e20737570706c7900000000006044820152606401610b42565b816040015161ffff168a84815181106126fd57634e487b7160e01b600052603260045260246000fd5b6020026020010151600c60006127103390565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008e878151811061275257634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020546127739190615c4a565b11156127c15760405162461bcd60e51b815260206004820152601d60248201527f4d6178206d696e7473207265616368656420666f7220616464726573730000006044820152606401610b42565b8883815181106127e157634e487b7160e01b600052603260045260246000fd5b6020026020010151156128a05781516001600160401b031661283c5760405162461bcd60e51b81526020600482015260146024820152731d5b9a58dbdc9b9cc81b9bdd08185b1b1bddd95960621b6044820152606401610b42565b670de0b6b3a76400008a848151811061286557634e487b7160e01b600052603260045260246000fd5b602002602001015183600001516001600160401b03166128859190615cc3565b61288f9190615cc3565b6128999086615c4a565b9450612954565b600082602001516001600160401b0316116128f45760405162461bcd60e51b81526020600482015260146024820152731c985a5b989bdddcc81b9bdd08185b1b1bddd95960621b6044820152606401610b42565b670de0b6b3a76400008a848151811061291d57634e487b7160e01b600052603260045260246000fd5b602002602001015183602001516001600160401b031661293d9190615cc3565b6129479190615cc3565b6129519087615c4a565b95505b60208201516001600160401b0316156129f15760065461297690612710615cc3565b601554670de0b6b3a76400008c86815181106129a257634e487b7160e01b600052603260045260246000fd5b602002602001015185602001516001600160401b03166129c29190615cc3565b6129cc9190615cc3565b6129d69190615cc3565b6129e09190615caf565b6129ea9085615c4a565b9350612a77565b600754612a0090612710615cc3565b601554670de0b6b3a76400008c8681518110612a2c57634e487b7160e01b600052603260045260246000fd5b602002602001015185600001516001600160401b0316612a4c9190615cc3565b612a569190615cc3565b612a609190615cc3565b612a6a9190615caf565b612a749085615c4a565b93505b50508080612a8490615da7565b9150506123e0565b506000805b6002811015612efb5780151560008082612aab5787612aad565b865b9050808015612ee457600084612ac4578b51612ac7565b8a515b905060008111612b095760405162461bcd60e51b815260206004820152600d60248201526c696e76616c696420706f6f6c7360981b6044820152606401610b42565b60005b81811015612e3e5760008615612bd957600e60008e8481518110612b4057634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16612baa5760405162461bcd60e51b81526020600482015260146024820152731a5b9d985b1a59081d5b9a58dbdc9b881c1bdbdb60621b6044820152606401610b42565b8c8281518110612bca57634e487b7160e01b600052603260045260246000fd5b60200260200101519050612c92565b600d60008f8481518110612bfd57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16612c675760405162461bcd60e51b81526020600482015260146024820152731a5b9d985b1a59081c985a5b989bddc81c1bdbdb60621b6044820152606401610b42565b8d8281518110612c8757634e487b7160e01b600052603260045260246000fd5b602002602001015190505b60006001600160a01b0382166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015612ce357600080fd5b505afa158015612cf7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d1b91906155a2565b9050612d278188615c4a565b9650858710612dab576001600160a01b038216639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101889052604401600060405180830381600087803b158015612d8857600080fd5b505af1158015612d9c573d6000803e3d6000fd5b50505050600094505050612e3e565b6001600160a01b038216639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b158015612e0357600080fd5b505af1158015612e17573d6000803e3d6000fd5b505050508085612e279190615ce2565b945050508080612e3690615da7565b915050612b0c565b508115612ee2576000606460085485612e579190615cc3565b612e619190615caf565b905080612e6e8486615ce2565b1015612e8c5760405162461bcd60e51b8152600401610b4290615a83565b600086612e9b57600654612e9f565b6007545b905083612eac8234615cc3565b11612ec95760405162461bcd60e51b8152600401610b4290615a83565b612ed38185615caf565b612edd908a615c4a565b985050505b505b505050508080612ef390615da7565b915050612a91565b50612f068282615c4a565b905034811115612f495760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b6044820152606401610b42565b600033612f568334615ce2565b604051600081818185875af1925050503d8060008114612f92576040519150601f19603f3d011682016040523d82523d6000602084013e612f97565b606091505b5050905080612fb85760405162461bcd60e51b8152600401610b4290615b6e565b60005b8a518110156130dc57898181518110612fe457634e487b7160e01b600052603260045260246000fd5b6020026020010151600c6000612ff73390565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008d848151811061303957634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825461305e9190615c4a565b909155506130ca9050338c838151811061308857634e487b7160e01b600052603260045260246000fd5b602002602001015160008d85815181106130b257634e487b7160e01b600052603260045260246000fd5b6020908102919091010151600a5460f81b6000613ec3565b806130d481615da7565b915050612fbb565b50506001600455505050505050505050565b600b80546130fb90615d40565b80601f016020809104026020016040519081016040528092919081815260200182805461312790615d40565b80156131745780601f1061314957610100808354040283529160200191613174565b820191906000526020600020905b81548152906001019060200180831161315757829003601f168201915b505050505081565b6011546001600160a01b03165b90565b601260205260009081526040902080546001820180546001600160401b0380841694600160401b85049091169361ffff600160801b8204169363ffffffff600160901b8304811694600160b01b8404821694600160d01b9094049091169291906131f590615d40565b80601f016020809104026020016040519081016040528092919081815260200182805461322190615d40565b801561326e5780601f106132435761010080835404028352916020019161326e565b820191906000526020600020905b81548152906001019060200180831161325157829003601f168201915b5050505050905087565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6132ae600033610857565b6132ca5760405162461bcd60e51b8152600401610b4290615af4565b6001600160a01b03166000908152600e60205260409020805460ff19166001179055565b600980546130fb90615d40565b336001600160a01b03831614156133665760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610b42565b3360008181526001602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516133d3911515815260200190565b60405180910390a35050565b6005546000906001600160a01b031661350b57600082815260166020908152604091829020825160808101845290546001600160801b038116808352600160801b820463ffffffff90811694840194909452600160a01b820490931693820193909352600160c01b90920460f81b6001600160f81b03191660608301526134a05760405162461bcd60e51b8152602060048201526015602482015274139bc81d1bdad95b88199bdc8819da5d995b881251605a1b6044820152606401610b42565b6013600082600001516001600160801b03168152602001908152602001600020816020015163ffffffff16815481106134e957634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600160e01b900463ffffffff169150610bcf9050565b6005546040516367bb908760e01b8152600481018490523060248201526001600160a01b039091169081906367bb90879060440160206040518083038186803b15801561355757600080fd5b505afa15801561356b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061358f91906155a2565b915050610bcf565b6135a2600033610857565b6135be5760405162461bcd60e51b8152600401610b4290615af4565b478111156135de5760405162461bcd60e51b8152600401610b4290615a83565b604051600090339083908381818185875af1925050503d8060008114613620576040519150601f19603f3d011682016040523d82523d6000602084013e613625565b606091505b50509050806117cf5760405162461bcd60e51b8152600401610b4290615b6e565b60606000600f546001600160401b0381111561367257634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156136a557816020015b60608152602001906001900390816136905790505b509050600060015b600f5481116137dd5760006136c28683610ada565b905080156137ca5760408051600280825260608201835290916020830190803683370190505084848151811061370857634e487b7160e01b600052603260045260246000fd5b60200260200101819052508184848151811061373457634e487b7160e01b600052603260045260246000fd5b602002602001015160008151811061375c57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250508084848151811061378957634e487b7160e01b600052603260045260246000fd5b60200260200101516001815181106137b157634e487b7160e01b600052603260045260246000fd5b6020908102919091010152826137c681615da7565b9350505b50806137d581615da7565b9150506136ad565b506000816001600160401b0381111561380657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561383957816020015b60608152602001906001900390816138245790505b50905060005b828110156139e95760408051600280825260608201835290916020830190803683370190505082828151811061388557634e487b7160e01b600052603260045260246000fd5b60200260200101819052508381815181106138b057634e487b7160e01b600052603260045260246000fd5b60200260200101516000815181106138d857634e487b7160e01b600052603260045260246000fd5b602002602001015182828151811061390057634e487b7160e01b600052603260045260246000fd5b602002602001015160008151811061392857634e487b7160e01b600052603260045260246000fd5b60200260200101818152505083818151811061395457634e487b7160e01b600052603260045260246000fd5b602002602001015160018151811061397c57634e487b7160e01b600052603260045260246000fd5b60200260200101518282815181106139a457634e487b7160e01b600052603260045260246000fd5b60200260200101516001815181106139cc57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806139e181615da7565b91505061383f565b50949350505050565b600082815260036020526040902060010154613a0e8133611741565b611750838361451c565b613a23600033610857565b613a3f5760405162461bcd60e51b8152600401610b4290615af4565b6001600160a01b03166000908152600e60205260409020805460ff19169055565b6060600b8054613a6f90615d40565b80601f0160208091040260200160405190810160405280929190818152602001828054613a9b90615d40565b8015613ae85780601f10613abd57610100808354040283529160200191613ae8565b820191906000526020600020905b815481529060010190602001808311613acb57829003601f168201915b5050505050905090565b613afd600033610857565b613b195760405162461bcd60e51b8152600401610b4290615af4565b80516117cf90600b906020840190614b61565b6001600160a01b038416613b525760405162461bcd60e51b8152600401610b4290615aaf565b6001600160a01b038516331480613b6e5750613b6e8533610a36565b613bcc5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610b42565b33613bec818787613bdc88614705565b613be588614705565b5050505050565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015613c2d5760405162461bcd60e51b8152600401610b4290615b24565b613c378482615ce2565b6000868152602081815260408083206001600160a01b038c81168552925280832093909355881681529081208054869290613c73908490615c4a565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613cd382888888888861475e565b50505050505050565b613ce7600033610857565b613d035760405162461bcd60e51b8152600401610b4290615af4565b601582905560015b815181101561175057818181518110613d3457634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516000838152601490925260409091205580613d5a81615da7565b915050613d0b565b60006001600160e01b03198216637965db0b60e01b1480610bcc5750610bcc82614828565b606081613dac57506040805180820190915260018152600360fc1b6020820152610bcf565b8160005b8115613dd65780613dc081615da7565b9150613dcf9050600a83615caf565b9150613db0565b6000816001600160401b03811115613dfe57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613e28576020820181803683370190505b509050815b85156139e957613e3e600182615ce2565b90506000613e4d600a88615caf565b613e5890600a615cc3565b613e629088615ce2565b613e6d906030615c8a565b905060008160f81b905080848481518110613e9857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613eba600a89615caf565b97505050613e2d565b6000858152601260209081526040808320815160e08101835281546001600160401b038082168352600160401b8204169482019490945261ffff600160801b8504169281019290925263ffffffff600160901b840481166060840152600160b01b840481166080840152600160d01b90930490921660a082015260018201805491929160c084019190613f5590615d40565b80601f0160208091040260200160405190810160405280929190818152602001828054613f8190615d40565b8015613fce5780601f10613fa357610100808354040283529160200191613fce565b820191906000526020600020905b815481529060010190602001808311613fb157829003601f168201915b5050505050815250509050600060136000888152602001908152602001600020868154811061400d57634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805160808101825291909201546001600160401b038116825263ffffffff600160401b82048116948301949094526001600160801b03600160601b82041692820192909252600160e01b909104909116606082015290508515158061409e5750816060015163ffffffff1685826020015163ffffffff1661409b9190615c4a565b11155b6140e25760405162461bcd60e51b81526020600482015260156024820152743a37ba30b61039bab838363c903932b0b1b432b21760591b6044820152606401610b42565b60408101516001600160801b0316156141155761411088888760405180602001604052806000815250614878565b614246565b60005b85811015614244576000846141545760018360200181815161413a9190615c62565b63ffffffff90811690915260208501511691506141579050565b50835b600f548061416481615da7565b9150506141838b82600160405180602001604052806000815250614878565b604080516080810182526001600160801b03808d16825263ffffffff808d1660208085019182529682168486019081526001600160f81b03198d166060860190815260008881526016909952959097209351845491519751955160f81c600160c01b0260ff60c01b19968416600160a01b029690961664ffffffffff60a01b1998909316600160801b026001600160a01b031990921693169290921791909117949094169390931717909155600f558061423c81615da7565b915050614118565b505b600087815260136020526040902080548691908890811061427757634e487b7160e01b600052603260045260246000fd5b6000918252602090912001805460089061429f908490600160401b900463ffffffff16615c62565b92506101000a81548163ffffffff021916908363ffffffff1602179055505050505050505050565b6001600160a01b0384163b156113d15760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061430b90899089908890889088906004016158e3565b602060405180830381600087803b15801561432557600080fd5b505af1925050508015614355575060408051601f3d908101601f191682019092526143529181019061554c565b60015b61440257614361615e18565b806308c379a0141561439b5750614376615e2f565b80614381575061439d565b8060405162461bcd60e51b8152600401610b429190615a28565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610b42565b6001600160e01b0319811663bc197c8160e01b14613cd35760405162461bcd60e51b8152600401610b4290615a3b565b61443c8282613278565b6117cf57614454816001600160a01b03166014614979565b61445f836020614979565b60405160200161447092919061586e565b60408051601f198184030181529082905262461bcd60e51b8252610b4291600401615a28565b6144a08282613278565b6117cf5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff191660011790556144d83390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6145268282613278565b156117cf5760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b0383166145e55760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610b42565b33614615818560006145f687614705565b6145ff87614705565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156146925760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610b42565b61469c8382615ce2565b6000858152602081815260408083206001600160a01b038a811680865291845282852095909555815189815292830188905292938616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061474d57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156113d15760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906147a29089908990889088908890600401615941565b602060405180830381600087803b1580156147bc57600080fd5b505af19250505080156147ec575060408051601f3d908101601f191682019092526147e99181019061554c565b60015b6147f857614361615e18565b6001600160e01b0319811663f23a6e6160e01b14613cd35760405162461bcd60e51b8152600401610b4290615a3b565b60006001600160e01b03198216636cdb3d1360e11b148061485957506001600160e01b031982166303a24d0760e21b145b80610bcc57506301ffc9a760e01b6001600160e01b0319831614610bcc565b6001600160a01b0384166148d85760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b42565b336148e981600087613bdc88614705565b6000848152602081815260408083206001600160a01b038916845290915281208054859290614919908490615c4a565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613be58160008787878761475e565b60606000614988836002615cc3565b614993906002615c4a565b6001600160401b038111156149b857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156149e2576020820181803683370190505b509050600360fc1b81600081518110614a0b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110614a4857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000614a6c846002615cc3565b614a77906001615c4a565b90505b6001811115614b0b576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110614ab957634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110614add57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93614b0481615d29565b9050614a7a565b508315614b5a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b42565b9392505050565b828054614b6d90615d40565b90600052602060002090601f016020900481019282614b8f5760008555614bd5565b82601f10614ba857805160ff1916838001178555614bd5565b82800160010185558215614bd5579182015b82811115614bd5578251825591602001919060010190614bba565b50614be1929150614be5565b5090565b5b80821115614be15760008155600101614be6565b80356001600160a01b0381168114610bcf57600080fd5b600082601f830112614c21578081fd5b81356020614c2e82615c27565b604051614c3b8282615d7b565b8381528281019150858301600585901b87018401881015614c5a578586fd5b855b85811015614c7f57614c6d82614bfa565b84529284019290840190600101614c5c565b5090979650505050505050565b600082601f830112614c9c578081fd5b81356020614ca982615c27565b604051614cb68282615d7b565b8381528281019150858301855b85811015614c7f57614cda898684358b0101614dac565b84529284019290840190600101614cc3565b600082601f830112614cfc578081fd5b81356020614d0982615c27565b604051614d168282615d7b565b8381528281019150858301855b85811015614c7f57614d3a898684358b0101614e7a565b84529284019290840190600101614d23565b600082601f830112614d5c578081fd5b81356020614d6982615c27565b604051614d768282615d7b565b8381528281019150858301855b85811015614c7f57614d9a898684358b0101614ef0565b84529284019290840190600101614d83565b600082601f830112614dbc578081fd5b81356020614dc982615c27565b604051614dd68282615d7b565b8381528281019150858301600585901b87018401881015614df5578586fd5b855b85811015614c7f57614e0882614fcf565b84529284019290840190600101614df7565b600082601f830112614e2a578081fd5b81356020614e3782615c27565b604051614e448282615d7b565b8381528281019150858301855b85811015614c7f57614e68898684358b0101614fdf565b84529284019290840190600101614e51565b600082601f830112614e8a578081fd5b81356020614e9782615c27565b604051614ea48282615d7b565b8381528281019150858301600585901b87018401881015614ec3578586fd5b855b85811015614c7f57813561ffff81168114614ede578788fd5b84529284019290840190600101614ec5565b600082601f830112614f00578081fd5b81356020614f0d82615c27565b604051614f1a8282615d7b565b8381528281019150858301600585901b87018401881015614f39578586fd5b855b85811015614c7f57813584529284019290840190600101614f3b565b600082601f830112614f67578081fd5b81356020614f7482615c27565b604051614f818282615d7b565b8381528281019150858301600585901b87018401881015614fa0578586fd5b855b85811015614c7f57813563ffffffff81168114614fbd578788fd5b84529284019290840190600101614fa2565b80358015158114610bcf57600080fd5b600082601f830112614fef578081fd5b81356001600160401b0381111561500857615008615e02565b60405161501f601f8301601f191660200182615d7b565b818152846020838601011115615033578283fd5b816020850160208301379081016020019190915292915050565b60006020828403121561505e578081fd5b614b5a82614bfa565b60008060408385031215615079578081fd5b61508283614bfa565b915061509060208401614bfa565b90509250929050565b600080600080600060a086880312156150b0578081fd5b6150b986614bfa565b94506150c760208701614bfa565b935060408601356001600160401b03808211156150e2578283fd5b6150ee89838a01614ef0565b94506060880135915080821115615103578283fd5b61510f89838a01614ef0565b93506080880135915080821115615124578283fd5b5061513188828901614fdf565b9150509295509295909350565b600080600080600060a08688031215615155578283fd5b61515e86614bfa565b945061516c60208701614bfa565b9350604086013592506060860135915060808601356001600160401b03811115615194578182fd5b61513188828901614fdf565b600080604083850312156151b2578182fd5b6151bb83614bfa565b915061509060208401614fcf565b600080604083850312156151db578182fd5b6151e483614bfa565b946020939093013593505050565b60008060008060008060c0878903121561520a578384fd5b61521387614bfa565b955060208701359450604087013593506060870135925060808701356001600160f81b031981168114615244578182fd5b8092505060a087013590509295509295509295565b6000806040838503121561526b578182fd5b82356001600160401b0380821115615281578384fd5b61528d86838701614c11565b935060208501359150808211156152a2578283fd5b506152af85828601614ef0565b9150509250929050565b600080600080600060a086880312156152d0578283fd5b85356001600160401b03808211156152e6578485fd5b6152f289838a01614ef0565b96506020880135915080821115615307578485fd5b61531389838a01614ef0565b95506040880135915080821115615328578485fd5b61533489838a01614dac565b94506060880135915080821115615349578283fd5b61535589838a01614c11565b9350608088013591508082111561536a578283fd5b5061513188828901614c11565b6000806000806000806000806000806101408b8d031215615396578788fd5b8a356001600160401b03808211156153ac57898afd5b6153b88e838f01614ef0565b9b5060208d01359150808211156153cd57898afd5b6153d98e838f01614ef0565b9a5060408d01359150808211156153ee57898afd5b6153fa8e838f01614ef0565b995060608d013591508082111561540f578586fd5b61541b8e838f01614e7a565b985060808d0135915080821115615430578586fd5b61543c8e838f01614ef0565b975060a08d0135915080821115615451578586fd5b61545d8e838f01614e1a565b965060c08d0135915080821115615472578586fd5b61547e8e838f01614f57565b955060e08d0135915080821115615493578485fd5b61549f8e838f01614cec565b94506101008d01359150808211156154b5578384fd5b6154c18e838f01614c8c565b93506101208d01359150808211156154d7578283fd5b506154e48d828e01614d4c565b9150509295989b9194979a5092959850565b600060208284031215615507578081fd5b5035919050565b60008060408385031215615520578182fd5b8235915061509060208401614bfa565b600060208284031215615541578081fd5b8135614b5a81615ec0565b60006020828403121561555d578081fd5b8151614b5a81615ec0565b600060208284031215615579578081fd5b81356001600160401b0381111561558e578182fd5b61559a84828501614fdf565b949350505050565b6000602082840312156155b3578081fd5b5051919050565b600080604083850312156155cc578182fd5b8235915060208301356001600160401b038111156155e8578182fd5b6152af85828601614ef0565b60008060408385031215615606578182fd5b50508035926020909101359150565b600080600060608486031215615629578081fd5b833592506020840135915061564060408501614bfa565b90509250925092565b60008060006060848603121561565d578081fd5b505081359360208301359350604090920135919050565b600080600080600060a0868803121561568b578283fd5b85359450602086013593506040860135925060608601356001600160401b03808211156156b6578283fd5b6156c289838a01614ef0565b935060808801359150808211156156d7578283fd5b5061513188828901614ef0565b6000815180845260208085019450808401835b83811015615713578151875295820195908201906001016156f7565b509495945050505050565b60008151808452615736816020860160208601615cf9565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061576457607f831692505b602080841082141561578457634e487b7160e01b86526022600452602486fd5b81801561579857600181146157a9576157d6565b60ff198616895284890196506157d6565b60008881526020902060005b868110156157ce5781548b8201529085019083016157b5565b505084890196505b50505050505092915050565b60006157f76157f1838961574a565b8761574a565b602f60f81b81526001600160f81b031986166001820152601b60fa1b6002820152845161582b816003840160208901615cf9565b603760f91b60039290910191820152835161584d816004840160208801615cf9565b64173539b7b760d91b60049290910191820152600901979650505050505050565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516158a6816017850160208801615cf9565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516158d7816028840160208801615cf9565b01602801949350505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061590f908301866156e4565b828103606084015261592181866156e4565b90508281036080840152615935818561571e565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061597b9083018461571e565b979650505050505050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b828110156159da57603f198886030184526159c88583516156e4565b945092850192908501906001016159ac565b5092979650505050505050565b600060208252614b5a60208301846156e4565b600060408252615a0d60408301856156e4565b8281036020840152615a1f81856156e4565b95945050505050565b600060208252614b5a602083018461571e565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6020808252601290820152716e6f7420656e6f7567682062616c616e636560701b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526016908201527531b0b63632b91034b9903737ba1030b71030b236b4b760511b604082015260600190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252600f908201526e1d1c985b9cd9995c8819985a5b1959608a1b604082015260600190565b600084825260606020830152615bb060608301856156e4565b905060018060a01b0383166040830152949350505050565b6001600160401b0388811682528716602082015261ffff8616604082015263ffffffff85811660608301528481166080830152831660a082015260e060c08201819052600090615c1a9083018461571e565b9998505050505050505050565b60006001600160401b03821115615c4057615c40615e02565b5060051b60200190565b60008219821115615c5d57615c5d615dd6565b500190565b600063ffffffff808316818516808303821115615c8157615c81615dd6565b01949350505050565b600060ff821660ff84168060ff03821115615ca757615ca7615dd6565b019392505050565b600082615cbe57615cbe615dec565b500490565b6000816000190483118215151615615cdd57615cdd615dd6565b500290565b600082821015615cf457615cf4615dd6565b500390565b60005b83811015615d14578181015183820152602001615cfc565b83811115615d23576000848401525b50505050565b600081615d3857615d38615dd6565b506000190190565b600181811c90821680615d5457607f821691505b60208210811415615d7557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715615da057615da0615e02565b6040525050565b6000600019821415615dbb57615dbb615dd6565b5060010190565b600082615dd157615dd1615dec565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561318957600481823e5160e01c90565b600060443d1015615e3f57613189565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715615e70575050505050613189565b8285019150815181811115615e8a57505050505050613189565b843d8701016020828501011115615ea657505050505050613189565b615eb560208286010187615d7b565b509094505050505090565b6001600160e01b031981168114615ed657600080fd5b5056fea26469706673582212209eb7ed84efdc1ac41351f75219e3c0b60ea45dddab2e58d6c6c8c539223810d464736f6c634300080300330000000000000000000000000000000000000000000000000000000000000080450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000082f9d5fe6c46990f3c2536e83b2b4e1c0a91f27f0000000000000000000000000000000000000000000000000000000000000007697066733a2f2f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d6567585278756777644c7a4741517639574663466a6d6f576b634144394e6f796e50354b434a6f56364836460000000000000000000000
Deployed Bytecode
0x6080604052600436106102fe5760003560e01c8063749388c411610190578063bda3ed07116100dc578063e0e5120d11610095578063efa00ce71161006f578063efa00ce714610a64578063f242432a14610a84578063f7e177de14610aa4578063f9f98af614610aba576102fe565b8063e0e5120d146109e6578063e8a3d48514610a06578063e985e9c514610a1b576102fe565b8063bda3ed07146108f8578063bf0e8c0d14610925578063c311d04914610945578063d3d3819314610965578063d539139314610992578063d547741f146109c6576102fe565b806391d14854116101495780639abc8320116101235780639abc832014610892578063a217fddf146108a7578063a22cb465146108bc578063ae3068c1146108dc576102fe565b806391d148541461083c578063928cb1481461085c57806392d62ccd1461087c576102fe565b8063749388c4146107965780637b898556146107b65780637e41d835146107c95780638da5cb5b146107de5780638dc10768146107f357806391ba317a14610826576102fe565b8063248a9ca31161024f57806343c278d211610208578063582f706f116101e2578063582f706f146106cf5780635a3b336c146106e55780636bb2e32d1461070557806370e7d27414610738576102fe565b806343c278d21461066f5780634e1273f41461068257806354a7d0a9146106af576102fe565b8063248a9ca31461058b578063257ea0ab146105bb578063282c51f3146105db5780632eb2c2d61461060f5780632f2ff15d1461062f57806336568abe1461064f576102fe565b80630c024776116102bc57806313f431601161029657806313f431601461050f57806315d21e111461053f5780631c513339146105555780631d9083f31461056b576102fe565b80630c0247761461048a5780630e89341c146104c257806313140ebe146104ef576102fe565b8062fdd58e1461030357806301870f021461033657806301ffc9a7146103d0578063051d2cad1461040057806308a55a6e146104225780630a3de45114610452575b600080fd5b34801561030f57600080fd5b5061032361031e3660046151c9565b610ada565b6040519081526020015b60405180910390f35b34801561034257600080fd5b506103926103513660046154f6565b6016602052600090815260409020546001600160801b0381169063ffffffff600160801b8204811691600160a01b810490911690600160c01b900460f81b84565b604080516001600160801b0395909516855263ffffffff938416602086015291909216908301526001600160f81b031916606082015260800161032d565b3480156103dc57600080fd5b506103f06103eb366004615530565b610b71565b604051901515815260200161032d565b34801561040c57600080fd5b5061042061041b366004615377565b610bd4565b005b34801561042e57600080fd5b506103f061043d36600461504d565b600d6020526000908152604090205460ff1681565b34801561045e57600080fd5b5061032361046d3660046151c9565b600c60209081526000928352604080842090915290825290205481565b34801561049657600080fd5b506005546104aa906001600160a01b031681565b6040516001600160a01b03909116815260200161032d565b3480156104ce57600080fd5b506104e26104dd3660046154f6565b611225565b60405161032d9190615a28565b3480156104fb57600080fd5b5061042061050a3660046151f2565b611354565b34801561051b57600080fd5b506103f061052a36600461504d565b600e6020526000908152604090205460ff1681565b34801561054b57600080fd5b5061032360075481565b34801561056157600080fd5b5061032360065481565b34801561057757600080fd5b5061042061058636600461504d565b6113d9565b34801561059757600080fd5b506103236105a63660046154f6565b60009081526003602052604090206001015490565b3480156105c757600080fd5b506104206105d636600461504d565b611422565b3480156105e757600080fd5b506103237f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b34801561061b57600080fd5b5061042061062a366004615099565b61146a565b34801561063b57600080fd5b5061042061064a36600461550e565b611729565b34801561065b57600080fd5b5061042061066a36600461550e565b611755565b61042061067d366004615674565b6117d3565b34801561068e57600080fd5b506106a261069d366004615259565b61205c565b60405161032d91906159e7565b3480156106bb57600080fd5b506104206106ca366004615649565b6121b0565b3480156106db57600080fd5b5061032360155481565b3480156106f157600080fd5b5061042061070036600461504d565b6121e5565b34801561071157600080fd5b50600a5461071f9060f81b81565b6040516001600160f81b0319909116815260200161032d565b34801561074457600080fd5b506107586107533660046155f4565b612230565b604080516001600160401b03909516855263ffffffff93841660208601526001600160801b039092169184019190915216606082015260800161032d565b3480156107a257600080fd5b506104206107b1366004615615565b612290565b6104206107c43660046152b9565b612382565b3480156107d557600080fd5b506104e26130ee565b3480156107ea57600080fd5b506104aa61317c565b3480156107ff57600080fd5b5061081361080e3660046154f6565b61318c565b60405161032d9796959493929190615bc8565b34801561083257600080fd5b50610323600f5481565b34801561084857600080fd5b506103f061085736600461550e565b613278565b34801561086857600080fd5b5061042061087736600461504d565b6132a3565b34801561088857600080fd5b5061032360105481565b34801561089e57600080fd5b506104e26132ee565b3480156108b357600080fd5b50610323600081565b3480156108c857600080fd5b506104206108d73660046151a0565b6132fb565b3480156108e857600080fd5b50610323670de0b6b3a764000081565b34801561090457600080fd5b506103236109133660046154f6565b60146020526000908152604090205481565b34801561093157600080fd5b506103236109403660046154f6565b6133df565b34801561095157600080fd5b506104206109603660046154f6565b613597565b34801561097157600080fd5b5061098561098036600461504d565b613646565b60405161032d9190615986565b34801561099e57600080fd5b506103237f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156109d257600080fd5b506104206109e136600461550e565b6139f2565b3480156109f257600080fd5b50610420610a0136600461504d565b613a18565b348015610a1257600080fd5b506104e2613a60565b348015610a2757600080fd5b506103f0610a36366004615067565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610a7057600080fd5b50610420610a7f366004615568565b613af2565b348015610a9057600080fd5b50610420610a9f36600461513e565b613b2c565b348015610ab057600080fd5b5061032360085481565b348015610ac657600080fd5b50610420610ad53660046155ba565b613cdc565b60006001600160a01b038316610b4b5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610ba257506001600160e01b031982166303a24d0760e21b145b80610bbd57506001600160e01b03198216637965db0b60e01b145b80610bcc5750610bcc82613d62565b90505b919050565b610bdf600033610857565b610bfb5760405162461bcd60e51b8152600401610b4290615af4565b88518a5114610c0957600080fd5b87518a5114610c1757600080fd5b84518a5114610c2557600080fd5b86518a5114610c3357600080fd5b85518a5114610c4157600080fd5b601054600f5460005b8c5181101561121257848181518110610c7357634e487b7160e01b600052603260045260246000fd5b602002602001015151868281518110610c9c57634e487b7160e01b600052603260045260246000fd5b60200260200101515114610caf57600080fd5b82610cb981615da7565b9350506040518060e001604052808e8381518110610ce757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160401b031681526020018d8381518110610d1d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160401b031681526020018c8381518110610d5357634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff1681526020018b8381518110610d8457634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff1663ffffffff1681526020018a8381518110610dbb57634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff168152602001888381518110610dee57634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff168152602001898381518110610e2157634e487b7160e01b600052603260045260246000fd5b6020908102919091018101519091526000858152601282526040908190208351815485850151938601516060870151608088015160a089015163ffffffff908116600160d01b0263ffffffff60d01b19928216600160b01b029290921667ffffffffffffffff60b01b1991909316600160901b0263ffffffff60901b1961ffff909516600160801b029490941665ffffffffffff60801b196001600160401b03998a16600160401b026fffffffffffffffffffffffffffffffff19909716999097169890981794909417949094169590951717169290921791909117815560c083015180519192610f1a92600185019290910190614b61565b5090505060005b868281518110610f4157634e487b7160e01b600052603260045260246000fd5b6020026020010151518110156111ff576000868381518110610f7357634e487b7160e01b600052603260045260246000fd5b60200260200101518281518110610f9a57634e487b7160e01b600052603260045260246000fd5b6020026020010151156110655783610fb181615da7565b604080516080810182526001600160801b03898116825263ffffffff87811660208085019182526000858701818152600a5460f890811b6001600160f81b031916606089019081528a84526016909452979091209551865493519151925195166001600160a01b031990931692909217600160801b928416929092029190911764ffffffffff60a01b1916600160a01b919092160260ff60c01b191617600160c01b9190931c029190911790559450849150505b6013600086815260200190815260200160002060405180608001604052808a86815181106110a357634e487b7160e01b600052603260045260246000fd5b602002602001015185815181106110ca57634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff166001600160401b03168152602001600063ffffffff168152602001836001600160801b0316815260200188868151811061112057634e487b7160e01b600052603260045260246000fd5b6020026020010151858151811061114757634e487b7160e01b600052603260045260246000fd5b60209081029190910181015163ffffffff90811690925283546001810185556000948552938190208351940180549184015160408501516060909501518416600160e01b026001600160e01b036001600160801b03909616600160601b02959095166bffffffffffffffffffffffff91909416600160401b026bffffffffffffffffffffffff199093166001600160401b039096169590951791909117939093161717905550806111f781615da7565b915050610f21565b508061120a81615da7565b915050610c4a565b50600f5560105550505050505050505050565b600081815260166020908152604091829020825160808101845290546001600160801b038116808352600160801b820463ffffffff90811694840194909452600160a01b820490931693820193909352600160c01b90920460f81b6001600160f81b03191660608084019190915291906112d95760405162461bcd60e51b8152602060048201526015602482015274139bc81d1bdad95b88199bdc8819da5d995b881251605a1b6044820152606401610b42565b60096012600083600001516001600160801b031681526020019081526020016000206001018260600151611316846020015163ffffffff16613d87565b611329856040015163ffffffff16613d87565b60405160200161133d9594939291906157e2565b604051602081830303815290604052915050919050565b61137e7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610857565b6113c35760405162461bcd60e51b815260206004820152601660248201527531b0b63632b91034b9903737ba10309036b4b73a32b960511b6044820152606401610b42565b6113d1868686868686613ec3565b505050505050565b6113e4600033610857565b6114005760405162461bcd60e51b8152600401610b4290615af4565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b61142d600033610857565b6114495760405162461bcd60e51b8152600401610b4290615af4565b6001600160a01b03166000908152600d60205260409020805460ff19169055565b81518351146114cc5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610b42565b6001600160a01b0384166114f25760405162461bcd60e51b8152600401610b4290615aaf565b6001600160a01b03851633148061150e575061150e8533610a36565b6115755760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b42565b3360005b84518110156116c35760008582815181106115a457634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106115d057634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156116205760405162461bcd60e51b8152600401610b4290615b24565b61162a8282615ce2565b60008085815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020819055508160008085815260200190815260200160002060008b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116a89190615c4a565b92505081905550505050806116bc90615da7565b9050611579565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516117139291906159fa565b60405180910390a46113d18187878787876142c7565b60008281526003602052604090206001015461174681335b614432565b6117508383614496565b505050565b6001600160a01b03811633146117c55760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b42565b6117cf828261451c565b5050565b600260045414156118265760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b42565b6002600455600085815260136020526040812080548690811061185957634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805160808101825291909201546001600160401b038116825263ffffffff600160401b82048116948301949094526001600160801b03600160601b82041692820192909252600160e01b9091049091166060820152905084158015906118d5575080516001600160401b031615155b6119155760405162461bcd60e51b81526020600482015260116024820152701b595c99d9481b9bdd08185b1b1bddd959607a1b6044820152606401610b42565b805160009061192e9086906001600160401b0316615cc3565b90506000805b8551811015611c965761196e3387838151811061196157634e487b7160e01b600052603260045260246000fd5b6020026020010151610ada565b85828151811061198e57634e487b7160e01b600052603260045260246000fd5b602002602001015111156119b45760405162461bcd60e51b8152600401610b4290615a83565b6000601660008884815181106119da57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252818101929092526040908101600020815160808101835290546001600160801b038116808352600160801b820463ffffffff90811695840195909552600160a01b820490941692820192909252600160c01b90910460f81b6001600160f81b031916606082015291508a14611a8f5760405162461bcd60e51b815260206004820152600d60248201526c0c6c2e4c840dad2e6dac2e8c6d609b1b6044820152606401610b42565b88816020015163ffffffff1610611af25760405162461bcd60e51b815260206004820152602160248201527f63616e206f6e6c79206d6572676520696e746f20686967686572206c6576656c6044820152607360f81b6064820152608401610b42565b80516001600160801b03166000908152601360209081526040822090830151815463ffffffff909116908110611b3857634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805160808101825291909201546001600160401b038116825263ffffffff600160401b82048116838601526001600160801b03600160601b83041693830193909352600160e01b9004821660608201529184015191925016611bdb57868381518110611bc157634e487b7160e01b600052603260045260246000fd5b602002602001015184611bd49190615c4a565b9350611c28565b80600001516001600160401b0316878481518110611c0957634e487b7160e01b600052603260045260246000fd5b6020026020010151611c1b9190615cc3565b611c259085615c4a565b93505b611c8133898581518110611c4c57634e487b7160e01b600052603260045260246000fd5b6020026020010151898681518110611c7457634e487b7160e01b600052603260045260246000fd5b6020026020010151614583565b50508080611c8e90615da7565b915050611934565b50818114611ce65760405162461bcd60e51b815260206004820152601d60248201527f77726f6e67206e756d626572206f6620746f6b656e73206275726e65640000006044820152606401610b42565b6000878152601460205260409020543490611d02908890615cc3565b1115611d415760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b6044820152606401610b42565b6000878152601460205260408120543390611d5d908990615cc3565b611d679034615ce2565b604051600081818185875af1925050503d8060008114611da3576040519150601f19603f3d011682016040523d82523d6000602084013e611da8565b606091505b5050905080611dc95760405162461bcd60e51b8152600401610b4290615b6e565b6005546001600160a01b031615801590611de35750600088115b8015611e3f57506000898152601360205260409020611e0360018a615ce2565b81548110611e2157634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600160601b90046001600160801b0316155b1561203557600554600f5485516001600160a01b03909216916000906001600160401b0390811690811115611e8457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611ead578160200160208202803683370190505b50905060005b895181101561203057600081118015611ede57508751611edc906001600160401b031682615dc2565b155b15611fb35782611eed81615da7565b60405163feb0ae7f60e01b81529094506001600160a01b038616915063feb0ae7f90611f2190869086903090600401615b97565b600060405180830381600087803b158015611f3b57600080fd5b505af1158015611f4f573d6000803e3d6000fd5b5050505087600001516001600160401b03166001600160401b03811115611f8657634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611faf578160200160208202803683370190505b5091505b898181518110611fd357634e487b7160e01b600052603260045260246000fd5b60200260200101518289600001516001600160401b031683611ff59190615dc2565b8151811061201357634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061202881615da7565b915050611eb3565b505050505b61204c33600a548b908b908b9060f81b6000613ec3565b5050600160045550505050505050565b606081518351146120c15760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610b42565b600083516001600160401b038111156120ea57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612113578160200160208202803683370190505b50905060005b84518110156121a85761216d85828151811061214557634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061196157634e487b7160e01b600052603260045260246000fd5b82828151811061218d57634e487b7160e01b600052603260045260246000fd5b60209081029190910101526121a181615da7565b9050612119565b509392505050565b6121bb600033610857565b6121d75760405162461bcd60e51b8152600401610b4290615af4565b600792909255600655600855565b6121f0600033610857565b61220c5760405162461bcd60e51b8152600401610b4290615af4565b6001600160a01b03166000908152600d60205260409020805460ff19166001179055565b6013602052816000526040600020818154811061224c57600080fd5b6000918252602090912001546001600160401b038116925063ffffffff600160401b8204811692506001600160801b03600160601b83041691600160e01b90041684565b6122ba7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84833610857565b6122ff5760405162461bcd60e51b815260206004820152601660248201527531b0b63632b91034b9903737ba103090313ab93732b960511b6044820152606401610b42565b6123098184610ada565b8211156123285760405162461bcd60e51b8152600401610b4290615a83565b612333818484614583565b604080516001600160a01b0383168152602081018590529081018390527f23ff0e75edf108e3d0392d92e13e8c8a868ef19001bd49f9e94876dc46dff87f9060600160405180910390a1505050565b600260045414156123d55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b42565b600260045560008080805b8851811015612a8c576000601260008b848151811061240f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252818101929092526040908101600020815160e08101835281546001600160401b038082168352600160401b8204169482019490945261ffff600160801b8504169281019290925263ffffffff600160901b840481166060840152600160b01b840481166080840152600160d01b90930490921660a082015260018201805491929160c0840191906124ad90615d40565b80601f01602080910402602001604051908101604052809291908181526020018280546124d990615d40565b80156125265780601f106124fb57610100808354040283529160200191612526565b820191906000526020600020905b81548152906001019060200180831161250957829003601f168201915b50505050508152505090506000601360008c858151811061255757634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008154811061258d57634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805160808101825291909201546001600160401b038116825263ffffffff600160401b82048116948301949094526001600160801b03600160601b82041692820192909252600160e01b9091048216606082015260a08401519092501642101561263e5760405162461bcd60e51b815260206004820152601560248201527443617264206e6f7420796574206d696e7461626c6560581b6044820152606401610b42565b816080015163ffffffff168a848151811061266957634e487b7160e01b600052603260045260246000fd5b6020026020010151826020015163ffffffff166126869190615c4a565b11156126d45760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f75676820746f6b656e7320696e20737570706c7900000000006044820152606401610b42565b816040015161ffff168a84815181106126fd57634e487b7160e01b600052603260045260246000fd5b6020026020010151600c60006127103390565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008e878151811061275257634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020546127739190615c4a565b11156127c15760405162461bcd60e51b815260206004820152601d60248201527f4d6178206d696e7473207265616368656420666f7220616464726573730000006044820152606401610b42565b8883815181106127e157634e487b7160e01b600052603260045260246000fd5b6020026020010151156128a05781516001600160401b031661283c5760405162461bcd60e51b81526020600482015260146024820152731d5b9a58dbdc9b9cc81b9bdd08185b1b1bddd95960621b6044820152606401610b42565b670de0b6b3a76400008a848151811061286557634e487b7160e01b600052603260045260246000fd5b602002602001015183600001516001600160401b03166128859190615cc3565b61288f9190615cc3565b6128999086615c4a565b9450612954565b600082602001516001600160401b0316116128f45760405162461bcd60e51b81526020600482015260146024820152731c985a5b989bdddcc81b9bdd08185b1b1bddd95960621b6044820152606401610b42565b670de0b6b3a76400008a848151811061291d57634e487b7160e01b600052603260045260246000fd5b602002602001015183602001516001600160401b031661293d9190615cc3565b6129479190615cc3565b6129519087615c4a565b95505b60208201516001600160401b0316156129f15760065461297690612710615cc3565b601554670de0b6b3a76400008c86815181106129a257634e487b7160e01b600052603260045260246000fd5b602002602001015185602001516001600160401b03166129c29190615cc3565b6129cc9190615cc3565b6129d69190615cc3565b6129e09190615caf565b6129ea9085615c4a565b9350612a77565b600754612a0090612710615cc3565b601554670de0b6b3a76400008c8681518110612a2c57634e487b7160e01b600052603260045260246000fd5b602002602001015185600001516001600160401b0316612a4c9190615cc3565b612a569190615cc3565b612a609190615cc3565b612a6a9190615caf565b612a749085615c4a565b93505b50508080612a8490615da7565b9150506123e0565b506000805b6002811015612efb5780151560008082612aab5787612aad565b865b9050808015612ee457600084612ac4578b51612ac7565b8a515b905060008111612b095760405162461bcd60e51b815260206004820152600d60248201526c696e76616c696420706f6f6c7360981b6044820152606401610b42565b60005b81811015612e3e5760008615612bd957600e60008e8481518110612b4057634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16612baa5760405162461bcd60e51b81526020600482015260146024820152731a5b9d985b1a59081d5b9a58dbdc9b881c1bdbdb60621b6044820152606401610b42565b8c8281518110612bca57634e487b7160e01b600052603260045260246000fd5b60200260200101519050612c92565b600d60008f8481518110612bfd57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16612c675760405162461bcd60e51b81526020600482015260146024820152731a5b9d985b1a59081c985a5b989bddc81c1bdbdb60621b6044820152606401610b42565b8d8281518110612c8757634e487b7160e01b600052603260045260246000fd5b602002602001015190505b60006001600160a01b0382166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015612ce357600080fd5b505afa158015612cf7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d1b91906155a2565b9050612d278188615c4a565b9650858710612dab576001600160a01b038216639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101889052604401600060405180830381600087803b158015612d8857600080fd5b505af1158015612d9c573d6000803e3d6000fd5b50505050600094505050612e3e565b6001600160a01b038216639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b158015612e0357600080fd5b505af1158015612e17573d6000803e3d6000fd5b505050508085612e279190615ce2565b945050508080612e3690615da7565b915050612b0c565b508115612ee2576000606460085485612e579190615cc3565b612e619190615caf565b905080612e6e8486615ce2565b1015612e8c5760405162461bcd60e51b8152600401610b4290615a83565b600086612e9b57600654612e9f565b6007545b905083612eac8234615cc3565b11612ec95760405162461bcd60e51b8152600401610b4290615a83565b612ed38185615caf565b612edd908a615c4a565b985050505b505b505050508080612ef390615da7565b915050612a91565b50612f068282615c4a565b905034811115612f495760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b6044820152606401610b42565b600033612f568334615ce2565b604051600081818185875af1925050503d8060008114612f92576040519150601f19603f3d011682016040523d82523d6000602084013e612f97565b606091505b5050905080612fb85760405162461bcd60e51b8152600401610b4290615b6e565b60005b8a518110156130dc57898181518110612fe457634e487b7160e01b600052603260045260246000fd5b6020026020010151600c6000612ff73390565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008d848151811061303957634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825461305e9190615c4a565b909155506130ca9050338c838151811061308857634e487b7160e01b600052603260045260246000fd5b602002602001015160008d85815181106130b257634e487b7160e01b600052603260045260246000fd5b6020908102919091010151600a5460f81b6000613ec3565b806130d481615da7565b915050612fbb565b50506001600455505050505050505050565b600b80546130fb90615d40565b80601f016020809104026020016040519081016040528092919081815260200182805461312790615d40565b80156131745780601f1061314957610100808354040283529160200191613174565b820191906000526020600020905b81548152906001019060200180831161315757829003601f168201915b505050505081565b6011546001600160a01b03165b90565b601260205260009081526040902080546001820180546001600160401b0380841694600160401b85049091169361ffff600160801b8204169363ffffffff600160901b8304811694600160b01b8404821694600160d01b9094049091169291906131f590615d40565b80601f016020809104026020016040519081016040528092919081815260200182805461322190615d40565b801561326e5780601f106132435761010080835404028352916020019161326e565b820191906000526020600020905b81548152906001019060200180831161325157829003601f168201915b5050505050905087565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6132ae600033610857565b6132ca5760405162461bcd60e51b8152600401610b4290615af4565b6001600160a01b03166000908152600e60205260409020805460ff19166001179055565b600980546130fb90615d40565b336001600160a01b03831614156133665760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610b42565b3360008181526001602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516133d3911515815260200190565b60405180910390a35050565b6005546000906001600160a01b031661350b57600082815260166020908152604091829020825160808101845290546001600160801b038116808352600160801b820463ffffffff90811694840194909452600160a01b820490931693820193909352600160c01b90920460f81b6001600160f81b03191660608301526134a05760405162461bcd60e51b8152602060048201526015602482015274139bc81d1bdad95b88199bdc8819da5d995b881251605a1b6044820152606401610b42565b6013600082600001516001600160801b03168152602001908152602001600020816020015163ffffffff16815481106134e957634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600160e01b900463ffffffff169150610bcf9050565b6005546040516367bb908760e01b8152600481018490523060248201526001600160a01b039091169081906367bb90879060440160206040518083038186803b15801561355757600080fd5b505afa15801561356b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061358f91906155a2565b915050610bcf565b6135a2600033610857565b6135be5760405162461bcd60e51b8152600401610b4290615af4565b478111156135de5760405162461bcd60e51b8152600401610b4290615a83565b604051600090339083908381818185875af1925050503d8060008114613620576040519150601f19603f3d011682016040523d82523d6000602084013e613625565b606091505b50509050806117cf5760405162461bcd60e51b8152600401610b4290615b6e565b60606000600f546001600160401b0381111561367257634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156136a557816020015b60608152602001906001900390816136905790505b509050600060015b600f5481116137dd5760006136c28683610ada565b905080156137ca5760408051600280825260608201835290916020830190803683370190505084848151811061370857634e487b7160e01b600052603260045260246000fd5b60200260200101819052508184848151811061373457634e487b7160e01b600052603260045260246000fd5b602002602001015160008151811061375c57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250508084848151811061378957634e487b7160e01b600052603260045260246000fd5b60200260200101516001815181106137b157634e487b7160e01b600052603260045260246000fd5b6020908102919091010152826137c681615da7565b9350505b50806137d581615da7565b9150506136ad565b506000816001600160401b0381111561380657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561383957816020015b60608152602001906001900390816138245790505b50905060005b828110156139e95760408051600280825260608201835290916020830190803683370190505082828151811061388557634e487b7160e01b600052603260045260246000fd5b60200260200101819052508381815181106138b057634e487b7160e01b600052603260045260246000fd5b60200260200101516000815181106138d857634e487b7160e01b600052603260045260246000fd5b602002602001015182828151811061390057634e487b7160e01b600052603260045260246000fd5b602002602001015160008151811061392857634e487b7160e01b600052603260045260246000fd5b60200260200101818152505083818151811061395457634e487b7160e01b600052603260045260246000fd5b602002602001015160018151811061397c57634e487b7160e01b600052603260045260246000fd5b60200260200101518282815181106139a457634e487b7160e01b600052603260045260246000fd5b60200260200101516001815181106139cc57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806139e181615da7565b91505061383f565b50949350505050565b600082815260036020526040902060010154613a0e8133611741565b611750838361451c565b613a23600033610857565b613a3f5760405162461bcd60e51b8152600401610b4290615af4565b6001600160a01b03166000908152600e60205260409020805460ff19169055565b6060600b8054613a6f90615d40565b80601f0160208091040260200160405190810160405280929190818152602001828054613a9b90615d40565b8015613ae85780601f10613abd57610100808354040283529160200191613ae8565b820191906000526020600020905b815481529060010190602001808311613acb57829003601f168201915b5050505050905090565b613afd600033610857565b613b195760405162461bcd60e51b8152600401610b4290615af4565b80516117cf90600b906020840190614b61565b6001600160a01b038416613b525760405162461bcd60e51b8152600401610b4290615aaf565b6001600160a01b038516331480613b6e5750613b6e8533610a36565b613bcc5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610b42565b33613bec818787613bdc88614705565b613be588614705565b5050505050565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015613c2d5760405162461bcd60e51b8152600401610b4290615b24565b613c378482615ce2565b6000868152602081815260408083206001600160a01b038c81168552925280832093909355881681529081208054869290613c73908490615c4a565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613cd382888888888861475e565b50505050505050565b613ce7600033610857565b613d035760405162461bcd60e51b8152600401610b4290615af4565b601582905560015b815181101561175057818181518110613d3457634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516000838152601490925260409091205580613d5a81615da7565b915050613d0b565b60006001600160e01b03198216637965db0b60e01b1480610bcc5750610bcc82614828565b606081613dac57506040805180820190915260018152600360fc1b6020820152610bcf565b8160005b8115613dd65780613dc081615da7565b9150613dcf9050600a83615caf565b9150613db0565b6000816001600160401b03811115613dfe57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613e28576020820181803683370190505b509050815b85156139e957613e3e600182615ce2565b90506000613e4d600a88615caf565b613e5890600a615cc3565b613e629088615ce2565b613e6d906030615c8a565b905060008160f81b905080848481518110613e9857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613eba600a89615caf565b97505050613e2d565b6000858152601260209081526040808320815160e08101835281546001600160401b038082168352600160401b8204169482019490945261ffff600160801b8504169281019290925263ffffffff600160901b840481166060840152600160b01b840481166080840152600160d01b90930490921660a082015260018201805491929160c084019190613f5590615d40565b80601f0160208091040260200160405190810160405280929190818152602001828054613f8190615d40565b8015613fce5780601f10613fa357610100808354040283529160200191613fce565b820191906000526020600020905b815481529060010190602001808311613fb157829003601f168201915b5050505050815250509050600060136000888152602001908152602001600020868154811061400d57634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805160808101825291909201546001600160401b038116825263ffffffff600160401b82048116948301949094526001600160801b03600160601b82041692820192909252600160e01b909104909116606082015290508515158061409e5750816060015163ffffffff1685826020015163ffffffff1661409b9190615c4a565b11155b6140e25760405162461bcd60e51b81526020600482015260156024820152743a37ba30b61039bab838363c903932b0b1b432b21760591b6044820152606401610b42565b60408101516001600160801b0316156141155761411088888760405180602001604052806000815250614878565b614246565b60005b85811015614244576000846141545760018360200181815161413a9190615c62565b63ffffffff90811690915260208501511691506141579050565b50835b600f548061416481615da7565b9150506141838b82600160405180602001604052806000815250614878565b604080516080810182526001600160801b03808d16825263ffffffff808d1660208085019182529682168486019081526001600160f81b03198d166060860190815260008881526016909952959097209351845491519751955160f81c600160c01b0260ff60c01b19968416600160a01b029690961664ffffffffff60a01b1998909316600160801b026001600160a01b031990921693169290921791909117949094169390931717909155600f558061423c81615da7565b915050614118565b505b600087815260136020526040902080548691908890811061427757634e487b7160e01b600052603260045260246000fd5b6000918252602090912001805460089061429f908490600160401b900463ffffffff16615c62565b92506101000a81548163ffffffff021916908363ffffffff1602179055505050505050505050565b6001600160a01b0384163b156113d15760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061430b90899089908890889088906004016158e3565b602060405180830381600087803b15801561432557600080fd5b505af1925050508015614355575060408051601f3d908101601f191682019092526143529181019061554c565b60015b61440257614361615e18565b806308c379a0141561439b5750614376615e2f565b80614381575061439d565b8060405162461bcd60e51b8152600401610b429190615a28565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610b42565b6001600160e01b0319811663bc197c8160e01b14613cd35760405162461bcd60e51b8152600401610b4290615a3b565b61443c8282613278565b6117cf57614454816001600160a01b03166014614979565b61445f836020614979565b60405160200161447092919061586e565b60408051601f198184030181529082905262461bcd60e51b8252610b4291600401615a28565b6144a08282613278565b6117cf5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff191660011790556144d83390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6145268282613278565b156117cf5760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b0383166145e55760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610b42565b33614615818560006145f687614705565b6145ff87614705565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156146925760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610b42565b61469c8382615ce2565b6000858152602081815260408083206001600160a01b038a811680865291845282852095909555815189815292830188905292938616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061474d57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156113d15760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906147a29089908990889088908890600401615941565b602060405180830381600087803b1580156147bc57600080fd5b505af19250505080156147ec575060408051601f3d908101601f191682019092526147e99181019061554c565b60015b6147f857614361615e18565b6001600160e01b0319811663f23a6e6160e01b14613cd35760405162461bcd60e51b8152600401610b4290615a3b565b60006001600160e01b03198216636cdb3d1360e11b148061485957506001600160e01b031982166303a24d0760e21b145b80610bcc57506301ffc9a760e01b6001600160e01b0319831614610bcc565b6001600160a01b0384166148d85760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b42565b336148e981600087613bdc88614705565b6000848152602081815260408083206001600160a01b038916845290915281208054859290614919908490615c4a565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613be58160008787878761475e565b60606000614988836002615cc3565b614993906002615c4a565b6001600160401b038111156149b857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156149e2576020820181803683370190505b509050600360fc1b81600081518110614a0b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110614a4857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000614a6c846002615cc3565b614a77906001615c4a565b90505b6001811115614b0b576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110614ab957634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110614add57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93614b0481615d29565b9050614a7a565b508315614b5a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b42565b9392505050565b828054614b6d90615d40565b90600052602060002090601f016020900481019282614b8f5760008555614bd5565b82601f10614ba857805160ff1916838001178555614bd5565b82800160010185558215614bd5579182015b82811115614bd5578251825591602001919060010190614bba565b50614be1929150614be5565b5090565b5b80821115614be15760008155600101614be6565b80356001600160a01b0381168114610bcf57600080fd5b600082601f830112614c21578081fd5b81356020614c2e82615c27565b604051614c3b8282615d7b565b8381528281019150858301600585901b87018401881015614c5a578586fd5b855b85811015614c7f57614c6d82614bfa565b84529284019290840190600101614c5c565b5090979650505050505050565b600082601f830112614c9c578081fd5b81356020614ca982615c27565b604051614cb68282615d7b565b8381528281019150858301855b85811015614c7f57614cda898684358b0101614dac565b84529284019290840190600101614cc3565b600082601f830112614cfc578081fd5b81356020614d0982615c27565b604051614d168282615d7b565b8381528281019150858301855b85811015614c7f57614d3a898684358b0101614e7a565b84529284019290840190600101614d23565b600082601f830112614d5c578081fd5b81356020614d6982615c27565b604051614d768282615d7b565b8381528281019150858301855b85811015614c7f57614d9a898684358b0101614ef0565b84529284019290840190600101614d83565b600082601f830112614dbc578081fd5b81356020614dc982615c27565b604051614dd68282615d7b565b8381528281019150858301600585901b87018401881015614df5578586fd5b855b85811015614c7f57614e0882614fcf565b84529284019290840190600101614df7565b600082601f830112614e2a578081fd5b81356020614e3782615c27565b604051614e448282615d7b565b8381528281019150858301855b85811015614c7f57614e68898684358b0101614fdf565b84529284019290840190600101614e51565b600082601f830112614e8a578081fd5b81356020614e9782615c27565b604051614ea48282615d7b565b8381528281019150858301600585901b87018401881015614ec3578586fd5b855b85811015614c7f57813561ffff81168114614ede578788fd5b84529284019290840190600101614ec5565b600082601f830112614f00578081fd5b81356020614f0d82615c27565b604051614f1a8282615d7b565b8381528281019150858301600585901b87018401881015614f39578586fd5b855b85811015614c7f57813584529284019290840190600101614f3b565b600082601f830112614f67578081fd5b81356020614f7482615c27565b604051614f818282615d7b565b8381528281019150858301600585901b87018401881015614fa0578586fd5b855b85811015614c7f57813563ffffffff81168114614fbd578788fd5b84529284019290840190600101614fa2565b80358015158114610bcf57600080fd5b600082601f830112614fef578081fd5b81356001600160401b0381111561500857615008615e02565b60405161501f601f8301601f191660200182615d7b565b818152846020838601011115615033578283fd5b816020850160208301379081016020019190915292915050565b60006020828403121561505e578081fd5b614b5a82614bfa565b60008060408385031215615079578081fd5b61508283614bfa565b915061509060208401614bfa565b90509250929050565b600080600080600060a086880312156150b0578081fd5b6150b986614bfa565b94506150c760208701614bfa565b935060408601356001600160401b03808211156150e2578283fd5b6150ee89838a01614ef0565b94506060880135915080821115615103578283fd5b61510f89838a01614ef0565b93506080880135915080821115615124578283fd5b5061513188828901614fdf565b9150509295509295909350565b600080600080600060a08688031215615155578283fd5b61515e86614bfa565b945061516c60208701614bfa565b9350604086013592506060860135915060808601356001600160401b03811115615194578182fd5b61513188828901614fdf565b600080604083850312156151b2578182fd5b6151bb83614bfa565b915061509060208401614fcf565b600080604083850312156151db578182fd5b6151e483614bfa565b946020939093013593505050565b60008060008060008060c0878903121561520a578384fd5b61521387614bfa565b955060208701359450604087013593506060870135925060808701356001600160f81b031981168114615244578182fd5b8092505060a087013590509295509295509295565b6000806040838503121561526b578182fd5b82356001600160401b0380821115615281578384fd5b61528d86838701614c11565b935060208501359150808211156152a2578283fd5b506152af85828601614ef0565b9150509250929050565b600080600080600060a086880312156152d0578283fd5b85356001600160401b03808211156152e6578485fd5b6152f289838a01614ef0565b96506020880135915080821115615307578485fd5b61531389838a01614ef0565b95506040880135915080821115615328578485fd5b61533489838a01614dac565b94506060880135915080821115615349578283fd5b61535589838a01614c11565b9350608088013591508082111561536a578283fd5b5061513188828901614c11565b6000806000806000806000806000806101408b8d031215615396578788fd5b8a356001600160401b03808211156153ac57898afd5b6153b88e838f01614ef0565b9b5060208d01359150808211156153cd57898afd5b6153d98e838f01614ef0565b9a5060408d01359150808211156153ee57898afd5b6153fa8e838f01614ef0565b995060608d013591508082111561540f578586fd5b61541b8e838f01614e7a565b985060808d0135915080821115615430578586fd5b61543c8e838f01614ef0565b975060a08d0135915080821115615451578586fd5b61545d8e838f01614e1a565b965060c08d0135915080821115615472578586fd5b61547e8e838f01614f57565b955060e08d0135915080821115615493578485fd5b61549f8e838f01614cec565b94506101008d01359150808211156154b5578384fd5b6154c18e838f01614c8c565b93506101208d01359150808211156154d7578283fd5b506154e48d828e01614d4c565b9150509295989b9194979a5092959850565b600060208284031215615507578081fd5b5035919050565b60008060408385031215615520578182fd5b8235915061509060208401614bfa565b600060208284031215615541578081fd5b8135614b5a81615ec0565b60006020828403121561555d578081fd5b8151614b5a81615ec0565b600060208284031215615579578081fd5b81356001600160401b0381111561558e578182fd5b61559a84828501614fdf565b949350505050565b6000602082840312156155b3578081fd5b5051919050565b600080604083850312156155cc578182fd5b8235915060208301356001600160401b038111156155e8578182fd5b6152af85828601614ef0565b60008060408385031215615606578182fd5b50508035926020909101359150565b600080600060608486031215615629578081fd5b833592506020840135915061564060408501614bfa565b90509250925092565b60008060006060848603121561565d578081fd5b505081359360208301359350604090920135919050565b600080600080600060a0868803121561568b578283fd5b85359450602086013593506040860135925060608601356001600160401b03808211156156b6578283fd5b6156c289838a01614ef0565b935060808801359150808211156156d7578283fd5b5061513188828901614ef0565b6000815180845260208085019450808401835b83811015615713578151875295820195908201906001016156f7565b509495945050505050565b60008151808452615736816020860160208601615cf9565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061576457607f831692505b602080841082141561578457634e487b7160e01b86526022600452602486fd5b81801561579857600181146157a9576157d6565b60ff198616895284890196506157d6565b60008881526020902060005b868110156157ce5781548b8201529085019083016157b5565b505084890196505b50505050505092915050565b60006157f76157f1838961574a565b8761574a565b602f60f81b81526001600160f81b031986166001820152601b60fa1b6002820152845161582b816003840160208901615cf9565b603760f91b60039290910191820152835161584d816004840160208801615cf9565b64173539b7b760d91b60049290910191820152600901979650505050505050565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516158a6816017850160208801615cf9565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516158d7816028840160208801615cf9565b01602801949350505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061590f908301866156e4565b828103606084015261592181866156e4565b90508281036080840152615935818561571e565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061597b9083018461571e565b979650505050505050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b828110156159da57603f198886030184526159c88583516156e4565b945092850192908501906001016159ac565b5092979650505050505050565b600060208252614b5a60208301846156e4565b600060408252615a0d60408301856156e4565b8281036020840152615a1f81856156e4565b95945050505050565b600060208252614b5a602083018461571e565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6020808252601290820152716e6f7420656e6f7567682062616c616e636560701b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526016908201527531b0b63632b91034b9903737ba1030b71030b236b4b760511b604082015260600190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252600f908201526e1d1c985b9cd9995c8819985a5b1959608a1b604082015260600190565b600084825260606020830152615bb060608301856156e4565b905060018060a01b0383166040830152949350505050565b6001600160401b0388811682528716602082015261ffff8616604082015263ffffffff85811660608301528481166080830152831660a082015260e060c08201819052600090615c1a9083018461571e565b9998505050505050505050565b60006001600160401b03821115615c4057615c40615e02565b5060051b60200190565b60008219821115615c5d57615c5d615dd6565b500190565b600063ffffffff808316818516808303821115615c8157615c81615dd6565b01949350505050565b600060ff821660ff84168060ff03821115615ca757615ca7615dd6565b019392505050565b600082615cbe57615cbe615dec565b500490565b6000816000190483118215151615615cdd57615cdd615dd6565b500290565b600082821015615cf457615cf4615dd6565b500390565b60005b83811015615d14578181015183820152602001615cfc565b83811115615d23576000848401525b50505050565b600081615d3857615d38615dd6565b506000190190565b600181811c90821680615d5457607f821691505b60208210811415615d7557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715615da057615da0615e02565b6040525050565b6000600019821415615dbb57615dbb615dd6565b5060010190565b600082615dd157615dd1615dec565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561318957600481823e5160e01c90565b600060443d1015615e3f57613189565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715615e70575050505050613189565b8285019150815181811115615e8a57505050505050613189565b843d8701016020828501011115615ea657505050505050613189565b615eb560208286010187615d7b565b509094505050505090565b6001600160e01b031981168114615ed657600080fd5b5056fea26469706673582212209eb7ed84efdc1ac41351f75219e3c0b60ea45dddab2e58d6c6c8c539223810d464736f6c63430008030033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000080450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000082f9d5fe6c46990f3c2536e83b2b4e1c0a91f27f0000000000000000000000000000000000000000000000000000000000000007697066733a2f2f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d6567585278756777644c7a4741517639574663466a6d6f576b634144394e6f796e50354b434a6f56364836460000000000000000000000
-----Decoded View---------------
Arg [0] : _uri (string): ipfs://
Arg [1] : _contractChar (bytes1): 0x45
Arg [2] : _contractURIString (string): ipfs://QmegXRxugwdLzGAQv9WFcFjmoWkcAD9NoynP5KCJoV6H6F
Arg [3] : _contractOwner (address): 0x82F9d5FE6C46990f3C2536e83b2B4e1c0a91F27f
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 4500000000000000000000000000000000000000000000000000000000000000
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 00000000000000000000000082f9d5fe6c46990f3c2536e83b2b4e1c0a91f27f
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [5] : 697066733a2f2f00000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [7] : 697066733a2f2f516d6567585278756777644c7a4741517639574663466a6d6f
Arg [8] : 576b634144394e6f796e50354b434a6f56364836460000000000000000000000
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.