More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 13,200 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Bid | 14520820 | 714 days ago | IN | 1 ETH | 0.00211686 | ||||
Bid | 14109391 | 778 days ago | IN | 0.51900919 ETH | 0.00913344 | ||||
Bid | 14109391 | 778 days ago | IN | 0.52811038 ETH | 0.00872909 | ||||
Bid | 14109391 | 778 days ago | IN | 0.53190594 ETH | 0.00896694 | ||||
Bid | 14109391 | 778 days ago | IN | 0.54034877 ETH | 0.00822961 | ||||
Bid | 14033871 | 790 days ago | IN | 0.86070616 ETH | 0.00756125 | ||||
Bid | 14033871 | 790 days ago | IN | 0.86720425 ETH | 0.00687386 | ||||
Bid | 14033871 | 790 days ago | IN | 0.87507952 ETH | 0.00687386 | ||||
Bid | 14000966 | 795 days ago | IN | 1 ETH | 0.00397209 | ||||
Bid | 14000966 | 795 days ago | IN | 1 ETH | 0.00397209 | ||||
Bid | 14000966 | 795 days ago | IN | 1 ETH | 0.00392452 | ||||
Bid | 14000966 | 795 days ago | IN | 1 ETH | 0.00361532 | ||||
Bid | 13982176 | 798 days ago | IN | 2.25219938 ETH | 0.00732506 | ||||
Bid | 13982176 | 798 days ago | IN | 2.26097733 ETH | 0.00711171 | ||||
Bid | 13956189 | 802 days ago | IN | 0.67582802 ETH | 0.00784905 | ||||
Bid | 13951563 | 802 days ago | IN | 0.7953068 ETH | 0.00366289 | ||||
Bid | 13951563 | 802 days ago | IN | 0.80488877 ETH | 0.014271 | ||||
Bid | 13951563 | 802 days ago | IN | 0.8155345 ETH | 0.00373424 | ||||
Bid | 13951563 | 802 days ago | IN | 0.82717075 ETH | 0.0118925 | ||||
Bid | 13951563 | 802 days ago | IN | 0.83720233 ETH | 0.00354396 | ||||
Bid | 13951561 | 802 days ago | IN | 0.84226005 ETH | 0.0071355 | ||||
Bid | 13951561 | 802 days ago | IN | 0.84283741 ETH | 0.0071355 | ||||
Bid | 13951561 | 802 days ago | IN | 0.88828208 ETH | 0.0166495 | ||||
Bid | 13951561 | 802 days ago | IN | 0.88931672 ETH | 0.0071355 | ||||
Bid | 13951561 | 802 days ago | IN | 0.89016016 ETH | 0.0071355 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
12614238 | 1011 days ago | 2,734.5 ETH | ||||
12531171 | 1024 days ago | 2.5 ETH | ||||
12530130 | 1024 days ago | 2.5 ETH | ||||
12529400 | 1024 days ago | 2.5 ETH | ||||
12525448 | 1025 days ago | 2.5 ETH | ||||
12525119 | 1025 days ago | 3 ETH | ||||
12523722 | 1025 days ago | 3 ETH | ||||
12523305 | 1025 days ago | 3 ETH | ||||
12521233 | 1026 days ago | 3 ETH | ||||
12519671 | 1026 days ago | 1.5 ETH | ||||
12519339 | 1026 days ago | 3 ETH | ||||
12518847 | 1026 days ago | 1.5 ETH | ||||
12518073 | 1026 days ago | 2.5 ETH | ||||
12518017 | 1026 days ago | 3 ETH | ||||
12497358 | 1029 days ago | 190.5 ETH | ||||
12494426 | 1030 days ago | 1,953 ETH | ||||
12471884 | 1033 days ago | 10,556.47671527 ETH | ||||
12446958 | 1037 days ago | 0.001375 ETH | ||||
12446952 | 1037 days ago | 0.00958333 ETH | ||||
12446948 | 1037 days ago | 0.00305555 ETH | ||||
12446941 | 1037 days ago | 0.00472222 ETH | ||||
12446941 | 1037 days ago | 0.00381944 ETH | ||||
12446939 | 1037 days ago | 0.00172222 ETH | ||||
12446938 | 1037 days ago | 0.00072222 ETH | ||||
12446937 | 1037 days ago | 0.00047222 ETH |
Loading...
Loading
Contract Name:
VFAuctions
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.0; import '@openzeppelin/contracts/utils/math/SafeMath.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/access/AccessControl.sol'; import '../derived/OwnableClone.sol'; import '../sales/ISaleable.sol'; import '../utils/BinaryDecoder.sol'; contract VFAuctions is AccessControl { struct Listing { uint16 template; uint16 consigner; uint16 offeringId; } struct ListingTemplate { uint64 openTime; uint16 startOffsetMin; uint16 endOffsetMin; uint16 startPriceTenFinnies; uint16 priceReductionTenFinnies; } address[] internal consigners; bytes32[0xFFFF] internal listings; bytes32[0xFFFF] internal templates; uint256 internal numListings; mapping (uint256 => bool) internal listingPurchased; address payable public benefactor; string public name; event ListingPurchased(uint256 indexed listingId, uint16 index, address buyer, uint256 price); constructor(string memory _name) { name = _name; benefactor = payable(msg.sender); _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); } uint256 constant private TEN_FINNY_TO_WEI = 10000000000000000; function calculateCurrentPrice(ListingTemplate memory template) internal view returns (uint256) { // solhint-disable-next-line not-rely-on-time uint256 currentTime = block.timestamp; uint256 delta = uint256(template.priceReductionTenFinnies) * TEN_FINNY_TO_WEI; uint256 startPrice = uint256(template.startPriceTenFinnies) * TEN_FINNY_TO_WEI; uint64 startTime = template.openTime + (uint64(template.startOffsetMin) * 60); uint64 endTime = template.openTime + (uint64(template.endOffsetMin) * 60); if (currentTime >= endTime) { return startPrice - delta; } else if (currentTime <= startTime) { return startPrice; } uint256 reduction = SafeMath.div(SafeMath.mul(delta, currentTime - startTime ), endTime - startTime); return startPrice - reduction; } function calculateCurrentPrice(uint256 listingId) public view returns (uint256) { require(numListings >= listingId, 'No such listing'); Listing memory listing = decodeListing(uint16(listingId)); ListingTemplate memory template = decodeTemplate(listing.template); return calculateCurrentPrice(template); } function bid( uint256 listingId ) public payable { require(listingPurchased[listingId] == false, 'listing sold out'); require(numListings >= listingId, 'No such listing'); Listing memory listing = decodeListing(uint16(listingId)); ListingTemplate memory template = decodeTemplate(listing.template); uint256 currentPrice = calculateCurrentPrice(template); require(msg.value >= currentPrice, 'Wrong price'); ISaleable(consigners[listing.consigner]).processSale(listing.offeringId, msg.sender, currentPrice); listingPurchased[listingId] = true; emit ListingPurchased(listingId, listing.offeringId, msg.sender, currentPrice); if (currentPrice < msg.value) { Address.sendValue(payable(msg.sender), msg.value - currentPrice); } } function addConsigners( address[] memory newConsigners ) public onlyRole(DEFAULT_ADMIN_ROLE) { for (uint idx = 0; idx < newConsigners.length; idx++) { consigners.push(newConsigners[idx]); } } function addListings( bytes32[] calldata newListings, uint offset, uint length) public onlyRole(DEFAULT_ADMIN_ROLE) { uint idx = 0; while(idx < newListings.length) { listings[offset + idx] = newListings[idx]; idx++; } numListings = length; } function addListingTemplates( bytes32[] calldata newTemplates, uint offset) public onlyRole(DEFAULT_ADMIN_ROLE) { uint idx = 0; while(idx < newTemplates.length) { templates[offset + idx] = newTemplates[idx]; idx++; } } struct OutputListing { uint16 listingId; address consigner; uint16[] soldOfferingIds; uint16[] availableOfferingIds; uint256 startPrice; uint256 endPrice; uint64 startTime; uint64 endTime; uint64 openTime; } function getListingsLength() public view returns (uint) { return numListings; } function getListings(uint16 start, uint16 length) public view returns (OutputListing[] memory) { require(start < numListings, 'out of range'); uint256 remaining = numListings - start; uint256 actualLength = remaining < length ? remaining : length; OutputListing[] memory result = new OutputListing[](actualLength); for (uint16 idx = 0; idx < actualLength; idx++) { uint16 listingId = start + idx; Listing memory listing = decodeListing(listingId); ListingTemplate memory template = decodeTemplate(listing.template); bool isPurchased = listingPurchased[listingId]; result[idx].listingId = listingId; result[idx].consigner = consigners[listing.consigner]; if (isPurchased) { result[idx].soldOfferingIds = new uint16[](1); result[idx].availableOfferingIds = new uint16[](0); result[idx].soldOfferingIds[0] = listing.offeringId; } else { result[idx].soldOfferingIds = new uint16[](0); result[idx].availableOfferingIds = new uint16[](1); result[idx].availableOfferingIds[0] = listing.offeringId; } uint256 reduction = uint256(template.priceReductionTenFinnies) * TEN_FINNY_TO_WEI; uint256 startPrice = uint256(template.startPriceTenFinnies) * TEN_FINNY_TO_WEI; uint64 startTime = template.openTime + (uint64(template.startOffsetMin) * 60); uint64 endTime = template.openTime + (uint64(template.endOffsetMin) * 60); result[idx].startPrice = startPrice; result[idx].endPrice = startPrice - reduction; result[idx].startTime = startTime; result[idx].endTime = endTime; result[idx].openTime = template.openTime; } return result; } function getBufferIndexAndOffset(uint index, uint stride) internal pure returns (uint, uint) { uint offset = index * stride; return (offset / 32, offset % 32); } function decodeListing(uint16 idx) internal view returns (Listing memory) { (uint bufferIndex, uint offset) = getBufferIndexAndOffset(idx, 6); Listing memory result; (result.template,bufferIndex,offset) = BinaryDecoder.decodeUint16Aligned(listings, bufferIndex, offset); (result.consigner,bufferIndex,offset) = BinaryDecoder.decodeUint16Aligned(listings, bufferIndex, offset); (result.offeringId,bufferIndex,offset) = BinaryDecoder.decodeUint16Aligned(listings, bufferIndex, offset); return result; } function decodeTemplate(uint16 idx) internal view returns (ListingTemplate memory) { (uint bufferIndex, uint offset) = getBufferIndexAndOffset(idx, 16); ListingTemplate memory result; (result.openTime,bufferIndex,offset) = BinaryDecoder.decodeUint64Aligned(templates, bufferIndex, offset); (result.startOffsetMin,bufferIndex,offset) = BinaryDecoder.decodeUint16Aligned(templates, bufferIndex, offset); (result.endOffsetMin,bufferIndex,offset) = BinaryDecoder.decodeUint16Aligned(templates, bufferIndex, offset); (result.startPriceTenFinnies,bufferIndex,offset) = BinaryDecoder.decodeUint16Aligned(templates, bufferIndex, offset); (result.priceReductionTenFinnies,bufferIndex,offset) = BinaryDecoder.decodeUint16Aligned(templates, bufferIndex, offset); return result; } function withdraw() public { require(msg.sender == benefactor || hasRole(DEFAULT_ADMIN_ROLE, msg.sender), 'not authorized'); uint amount = address(this).balance; require(amount > 0, 'no balance'); Address.sendValue(benefactor, amount); } function setBenefactor(address payable newBenefactor, bool sendBalance) public onlyRole(DEFAULT_ADMIN_ROLE) { require(benefactor != newBenefactor, 'already set'); uint amount = address(this).balance; address payable oldBenefactor = benefactor; benefactor = newBenefactor; if (sendBalance && amount > 0) { Address.sendValue(oldBenefactor, amount); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/utils/Context.sol'; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableClone is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); function init(address initialOwner) internal { require(_owner == address(0), 'Contract is already initialized'); _owner = initialOwner; emit OwnershipTransferred(address(0), initialOwner); } /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { address msgSender = _msgSender(); init(msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), 'caller is not the owner'); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), 'new owner is null address'); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface ISaleable { function processSale(uint256 offeringId, address buyer, uint256 price) external; function getSellersFor(uint256 offeringId) external view returns (address[] memory sellers); event SellerAdded(address indexed seller, uint256 indexed offeringId); event SellerRemoved(address indexed seller, uint256 indexed offeringId); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library BinaryDecoder { function increment(uint bufferIdx, uint offset, uint amount) internal pure returns (uint, uint) { offset+=amount; return (bufferIdx + (offset / 32), offset % 32); } function decodeUint8(bytes32[0xFFFF] storage buffers, uint bufferIdx, uint offset) internal view returns (uint8, uint, uint) { uint8 result = 0; result |= uint8(buffers[bufferIdx][offset]); (bufferIdx, offset) = increment(bufferIdx, offset, 1); return (result, bufferIdx, offset); } function decodeUint16(bytes32[0xFFFF] storage buffers, uint bufferIdx, uint offset) internal view returns (uint16, uint, uint) { uint result = 0; if (offset % 32 < 31) { return decodeUint16Aligned(buffers, bufferIdx, offset); } result |= uint(uint8(buffers[bufferIdx][offset])) << 8; (bufferIdx, offset) = increment(bufferIdx, offset, 1); result |= uint(uint8(buffers[bufferIdx][offset])); (bufferIdx, offset) = increment(bufferIdx, offset, 1); return (uint16(result), bufferIdx, offset); } function decodeUint16Aligned(bytes32[0xFFFF] storage buffers, uint bufferIdx, uint offset) internal view returns (uint16, uint, uint) { uint result = 0; result |= uint(uint8(buffers[bufferIdx][offset])) << 8; result |= uint(uint8(buffers[bufferIdx][offset + 1])); (bufferIdx, offset) = increment(bufferIdx, offset, 2); return (uint16(result), bufferIdx, offset); } function decodeUint32(bytes32[0xFFFF] storage buffers, uint bufferIdx, uint offset) internal view returns (uint32, uint, uint) { if (offset % 32 < 29) { return decodeUint32Aligned(buffers, bufferIdx, offset); } uint result = 0; result |= uint(uint8(buffers[bufferIdx][offset])) << 24; (bufferIdx, offset) = increment(bufferIdx, offset, 1); result |= uint(uint8(buffers[bufferIdx][offset])) << 16; (bufferIdx, offset) = increment(bufferIdx, offset, 1); result |= uint(uint8(buffers[bufferIdx][offset])) << 8; (bufferIdx, offset) = increment(bufferIdx, offset, 1); result |= uint(uint8(buffers[bufferIdx][offset])); (bufferIdx, offset) = increment(bufferIdx, offset, 1); return (uint32(result), bufferIdx, offset); } function decodeUint32Aligned(bytes32[0xFFFF] storage buffers, uint bufferIdx, uint offset) internal view returns (uint32, uint, uint) { uint result = 0; result |= uint(uint8(buffers[bufferIdx][offset])) << 24; result |= uint(uint8(buffers[bufferIdx][offset + 1])) << 16; result |= uint(uint8(buffers[bufferIdx][offset + 2])) << 8; result |= uint(uint8(buffers[bufferIdx][offset + 3])); (bufferIdx, offset) = increment(bufferIdx, offset, 4); return (uint32(result), bufferIdx, offset); } function decodeUint64(bytes32[0xFFFF] storage buffers, uint bufferIdx, uint offset) internal view returns (uint64, uint, uint) { if (offset % 32 < 25) { return decodeUint64Aligned(buffers, bufferIdx, offset); } uint result = 0; result |= uint(uint8(buffers[bufferIdx][offset])) << 56; (bufferIdx, offset) = increment(bufferIdx, offset, 1); result |= uint(uint8(buffers[bufferIdx][offset])) << 48; (bufferIdx, offset) = increment(bufferIdx, offset, 1); result |= uint(uint8(buffers[bufferIdx][offset])) << 40; (bufferIdx, offset) = increment(bufferIdx, offset, 1); result |= uint(uint8(buffers[bufferIdx][offset])) << 32; (bufferIdx, offset) = increment(bufferIdx, offset, 1); result |= uint(uint8(buffers[bufferIdx][offset])) << 24; (bufferIdx, offset) = increment(bufferIdx, offset, 1); result |= uint(uint8(buffers[bufferIdx][offset])) << 16; (bufferIdx, offset) = increment(bufferIdx, offset, 1); result |= uint(uint8(buffers[bufferIdx][offset])) << 8; (bufferIdx, offset) = increment(bufferIdx, offset, 1); result |= uint(uint8(buffers[bufferIdx][offset])); (bufferIdx, offset) = increment(bufferIdx, offset, 1); return (uint64(result), bufferIdx, offset); } function decodeUint64Aligned(bytes32[0xFFFF] storage buffers, uint bufferIdx, uint offset) internal view returns (uint64, uint, uint) { uint result = 0; result |= uint(uint8(buffers[bufferIdx][offset])) << 56; result |= uint(uint8(buffers[bufferIdx][offset + 1])) << 48; result |= uint(uint8(buffers[bufferIdx][offset + 2])) << 40; result |= uint(uint8(buffers[bufferIdx][offset + 3])) << 32; result |= uint(uint8(buffers[bufferIdx][offset + 4])) << 24; result |= uint(uint8(buffers[bufferIdx][offset + 5])) << 16; result |= uint(uint8(buffers[bufferIdx][offset + 6])) << 8; result |= uint(uint8(buffers[bufferIdx][offset + 7])); (bufferIdx, offset) = increment(bufferIdx, offset, 8); return (uint64(result), bufferIdx, offset); } }
// 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 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":"_name","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"listingId","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"index","type":"uint16"},{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"ListingPurchased","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"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"newConsigners","type":"address[]"}],"name":"addConsigners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"newTemplates","type":"bytes32[]"},{"internalType":"uint256","name":"offset","type":"uint256"}],"name":"addListingTemplates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"newListings","type":"bytes32[]"},{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"addListings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"benefactor","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"listingId","type":"uint256"}],"name":"bid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"listingId","type":"uint256"}],"name":"calculateCurrentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"start","type":"uint16"},{"internalType":"uint16","name":"length","type":"uint16"}],"name":"getListings","outputs":[{"components":[{"internalType":"uint16","name":"listingId","type":"uint16"},{"internalType":"address","name":"consigner","type":"address"},{"internalType":"uint16[]","name":"soldOfferingIds","type":"uint16[]"},{"internalType":"uint16[]","name":"availableOfferingIds","type":"uint16[]"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"endPrice","type":"uint256"},{"internalType":"uint64","name":"startTime","type":"uint64"},{"internalType":"uint64","name":"endTime","type":"uint64"},{"internalType":"uint64","name":"openTime","type":"uint64"}],"internalType":"struct VFAuctions.OutputListing[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getListingsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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 payable","name":"newBenefactor","type":"address"},{"internalType":"bool","name":"sendBalance","type":"bool"}],"name":"setBenefactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200262c3803806200262c8339810160408190526200003491620001ce565b80516200004b906202000390602084019062000128565b506202000280546001600160a01b03191633908117909155620000719060009062000078565b50620002f7565b62000084828262000088565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000084576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620000e43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200013690620002a4565b90600052602060002090601f0160209004810192826200015a5760008555620001a5565b82601f106200017557805160ff1916838001178555620001a5565b82800160010185558215620001a5579182015b82811115620001a557825182559160200191906001019062000188565b50620001b3929150620001b7565b5090565b5b80821115620001b35760008155600101620001b8565b60006020808385031215620001e1578182fd5b82516001600160401b0380821115620001f8578384fd5b818501915085601f8301126200020c578384fd5b815181811115620002215762000221620002e1565b604051601f8201601f19908116603f011681019083821181831017156200024c576200024c620002e1565b81604052828152888684870101111562000264578687fd5b8693505b8284101562000287578484018601518185018701529285019262000268565b828411156200029857868684830101525b98975050505050505050565b600181811c90821680620002b957607f821691505b60208210811415620002db57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61232580620003076000396000f3fe6080604052600436106101095760003560e01c80638a81694c11610095578063b31ec97c11610064578063b31ec97c146102d3578063b8b2b84c146102f3578063b929e5c314610320578063d547741f14610340578063da1c3f591461036057610109565b80638a81694c1461024457806391d148541461027e578063a217fddf1461029e578063ad74f9bc146102b357610109565b806336568abe116100dc57806336568abe146101c55780633ccfd60b146101e5578063454a2ab3146101fa578063454f445b1461020d578063722d49af1461022d57610109565b806301ffc9a71461010e57806306fdde0314610143578063248a9ca3146101655780632f2ff15d146101a3575b600080fd5b34801561011a57600080fd5b5061012e610129366004611e89565b610380565b60405190151581526020015b60405180910390f35b34801561014f57600080fd5b506101586103b9565b60405161013a9190612095565b34801561017157600080fd5b50610195610180366004611e4d565b60009081526020819052604090206001015490565b60405190815260200161013a565b3480156101af57600080fd5b506101c36101be366004611e65565b610449565b005b3480156101d157600080fd5b506101c36101e0366004611e65565b610475565b3480156101f157600080fd5b506101c36104f8565b6101c3610208366004611e4d565b6105ac565b34801561021957600080fd5b506101c3610228366004611cb4565b6107e0565b34801561023957600080fd5b506202000054610195565b34801561025057600080fd5b506202000254610266906001600160a01b031681565b6040516001600160a01b03909116815260200161013a565b34801561028a57600080fd5b5061012e610299366004611e65565b610880565b3480156102aa57600080fd5b50610195600081565b3480156102bf57600080fd5b506101956102ce366004611e4d565b6108a9565b3480156102df57600080fd5b506101c36102ee366004611cf0565b610920565b3480156102ff57600080fd5b5061031361030e366004611eb1565b6109a7565b60405161013a9190611f96565b34801561032c57600080fd5b506101c361033b366004611dff565b61103c565b34801561034c57600080fd5b506101c361035b366004611e65565b6110c7565b34801561036c57600080fd5b506101c361037b366004611db6565b6110ed565b60006001600160e01b03198216637965db0b60e01b14806103b157506301ffc9a760e01b6001600160e01b03198316145b90505b919050565b6202000380546103c89061220c565b80601f01602080910402602001604051908101604052809291908181526020018280546103f49061220c565b80156104415780601f1061041657610100808354040283529160200191610441565b820191906000526020600020905b81548152906001019060200180831161042457829003601f168201915b505050505081565b60008281526020819052604090206001015461046681335b61116e565b61047083836111d2565b505050565b6001600160a01b03811633146104ea5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6104f48282611256565b5050565b62020002546001600160a01b03163314806105195750610519600033610880565b6105565760405162461bcd60e51b815260206004820152600e60248201526d1b9bdd08185d5d1a1bdc9a5e995960921b60448201526064016104e1565b47806105915760405162461bcd60e51b815260206004820152600a6024820152696e6f2062616c616e636560b01b60448201526064016104e1565b62020002546105a9906001600160a01b0316826112bb565b50565b600081815262020001602052604090205460ff16156106005760405162461bcd60e51b815260206004820152601060248201526f1b1a5cdd1a5b99c81cdbdb19081bdd5d60821b60448201526064016104e1565b80620200005410156106465760405162461bcd60e51b815260206004820152600f60248201526e4e6f2073756368206c697374696e6760881b60448201526064016104e1565b6000610651826113d4565b905060006106628260000151611475565b9050600061066f8261157c565b9050803410156106af5760405162461bcd60e51b815260206004820152600b60248201526a57726f6e6720707269636560a81b60448201526064016104e1565b6001836020015161ffff16815481106106d857634e487b7160e01b600052603260045260246000fd5b600091825260209091200154604084810151905163206e1dd160e21b815261ffff9091166004820152336024820152604481018390526001600160a01b03909116906381b8774490606401600060405180830381600087803b15801561073d57600080fd5b505af1158015610751573d6000803e3d6000fd5b5050506000858152620200016020908152604091829020805460ff1916600117905585820151825161ffff909116815233918101919091529081018390528591507fb91be406ffa756ee2a7f96bd39cf7323bbbed9152b1917d2f6cce8f124e2be199060600160405180910390a2348110156107da576107da336107d5833461218a565b6112bb565b50505050565b60006107ec8133610461565b62020002546001600160a01b038481169116141561083a5760405162461bcd60e51b815260206004820152600b60248201526a185b1c9958591e481cd95d60aa1b60448201526064016104e1565b6202000280546001600160a01b038581166001600160a01b031983161790925547911683801561086a5750600082115b156108795761087981836112bb565b5050505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600081620200005410156108f15760405162461bcd60e51b815260206004820152600f60248201526e4e6f2073756368206c697374696e6760881b60448201526064016104e1565b60006108fc836113d4565b9050600061090d8260000151611475565b90506109188161157c565b949350505050565b600061092c8133610461565b60005b825181101561047057600183828151811061095a57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b039092169190911790558061099f81612269565b91505061092f565b606062020000548361ffff16106109ef5760405162461bcd60e51b815260206004820152600c60248201526b6f7574206f662072616e676560a01b60448201526064016104e1565b60008361ffff166202000054610a05919061218a565b905060008361ffff168210610a1e578361ffff16610a20565b815b90506000816001600160401b03811115610a4a57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610af257816020015b610adf604051806101200160405280600061ffff16815260200160006001600160a01b031681526020016060815260200160608152602001600081526020016000815260200160006001600160401b0316815260200160006001600160401b0316815260200160006001600160401b031681525090565b815260200190600190039081610a685790505b50905060005b828161ffff161015611032576000610b1082896120c8565b90506000610b1d826113d4565b90506000610b2e8260000151611475565b61ffff8085166000908152620200016020526040902054875192935060ff169185918891908816908110610b7257634e487b7160e01b600052603260045260246000fd5b60200260200101516000019061ffff16908161ffff16815250506001836020015161ffff1681548110610bb557634e487b7160e01b600052603260045260246000fd5b9060005260206000200160009054906101000a90046001600160a01b0316868661ffff1681518110610bf757634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b039092169101528015610d3757604080516001808252818301909252906020808301908036833701905050868661ffff1681518110610c5957634e487b7160e01b600052603260045260246000fd5b6020908102919091010151604001526000604051908082528060200260200182016040528015610c93578160200160208202803683370190505b50868661ffff1681518110610cb857634e487b7160e01b600052603260045260246000fd5b6020026020010151606001819052508260400151868661ffff1681518110610cf057634e487b7160e01b600052603260045260246000fd5b602002602001015160400151600081518110610d1c57634e487b7160e01b600052603260045260246000fd5b602002602001019061ffff16908161ffff1681525050610e3d565b6040805160008152602081019091528651879061ffff8816908110610d6c57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151604090810191909152805160018082528183019092529081602001602082028036833701905050868661ffff1681518110610dc257634e487b7160e01b600052603260045260246000fd5b6020026020010151606001819052508260400151868661ffff1681518110610dfa57634e487b7160e01b600052603260045260246000fd5b602002602001015160600151600081518110610e2657634e487b7160e01b600052603260045260246000fd5b602002602001019061ffff16908161ffff16815250505b6000662386f26fc10000836080015161ffff16610e5a919061213c565b90506000662386f26fc10000846060015161ffff16610e79919061213c565b90506000846020015161ffff16603c610e92919061215b565b8551610e9e9190612106565b90506000856040015161ffff16603c610eb7919061215b565b8651610ec39190612106565b9050828a8a61ffff1681518110610eea57634e487b7160e01b600052603260045260246000fd5b602090810291909101015160800152610f03848461218a565b8a8a61ffff1681518110610f2757634e487b7160e01b600052603260045260246000fd5b602002602001015160a0018181525050818a8a61ffff1681518110610f5c57634e487b7160e01b600052603260045260246000fd5b602002602001015160c001906001600160401b031690816001600160401b031681525050808a8a61ffff1681518110610fa557634e487b7160e01b600052603260045260246000fd5b602002602001015160e001906001600160401b031690816001600160401b03168152505085600001518a8a61ffff1681518110610ff257634e487b7160e01b600052603260045260246000fd5b602002602001015161010001906001600160401b031690816001600160401b0316815250505050505050505050808061102a90612247565b915050610af8565b5095945050505050565b60006110488133610461565b60005b848110156110bb5785858281811061107357634e487b7160e01b600052603260045260246000fd5b905060200201356002828661108891906120ee565b61ffff81106110a757634e487b7160e01b600052603260045260246000fd5b0155806110b381612269565b91505061104b565b50506202000055505050565b6000828152602081905260409020600101546110e38133610461565b6104708383611256565b60006110f98133610461565b60005b838110156108795784848281811061112457634e487b7160e01b600052603260045260246000fd5b9050602002013562010001828561113b91906120ee565b61ffff811061115a57634e487b7160e01b600052603260045260246000fd5b01558061116681612269565b9150506110fc565b6111788282610880565b6104f457611190816001600160a01b0316601461169e565b61119b83602061169e565b6040516020016111ac929190611f21565b60408051601f198184030181529082905262461bcd60e51b82526104e191600401612095565b6111dc8282610880565b6104f4576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556112123390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6112608282610880565b156104f4576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b8047101561130b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016104e1565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611358576040519150601f19603f3d011682016040523d82523d6000602084013e61135d565b606091505b50509050806104705760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016104e1565b60408051606081018252600080825260208201819052918101829052908061140161ffff85166006611886565b6040805160608101825260008082526020820181905291810191909152919350915061142f600284846118b9565b61ffff909216835293509150611447600284846118b9565b61ffff909216602084015293509150611462600284846118b9565b505061ffff166040820152949350505050565b6040805160a081018252600080825260208201819052918101829052606081018290526080810182905290806114b061ffff85166010611886565b915091506114e56040805160a08101825260008082526020820181905291810182905260608101829052608081019190915290565b6114f362010001848461196f565b6001600160401b039092168352935091506115126201000184846118b9565b61ffff90921660208401529350915061152f6201000184846118b9565b61ffff90921660408401529350915061154c6201000184846118b9565b61ffff9092166060840152935091506115696201000184846118b9565b505061ffff166080820152949350505050565b6000804290506000662386f26fc10000846080015161ffff1661159f919061213c565b90506000662386f26fc10000856060015161ffff166115be919061213c565b90506000856020015161ffff16603c6115d7919061215b565b86516115e39190612106565b90506000866040015161ffff16603c6115fc919061215b565b87516116089190612106565b9050806001600160401b0316851061163057611624848461218a565b955050505050506103b4565b816001600160401b0316851161164d5782955050505050506103b4565b600061168661166e866116696001600160401b0387168a61218a565b611c02565b61167885856121a1565b6001600160401b0316611c0e565b9050611692818561218a565b98975050505050505050565b606060006116ad83600261213c565b6116b89060026120ee565b6001600160401b038111156116dd57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611707576020820181803683370190505b509050600360fc1b8160008151811061173057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061176d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061179184600261213c565b61179c9060016120ee565b90505b6001811115611830576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106117de57634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061180257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93611829816121f5565b905061179f565b50831561187f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016104e1565b9392505050565b60008080611894848661213c565b90506118a1602082612128565b6118ac602083612284565b92509250505b9250929050565b60008080806008878761ffff81106118e157634e487b7160e01b600052603260045260246000fd5b0154866020811061190257634e487b7160e01b600052603260045260246000fd5b1a901b17868661ffff811061192757634e487b7160e01b600052603260045260246000fd5b01546119348660016120ee565b6020811061195257634e487b7160e01b600052603260045260246000fd5b1a1761196086866002611c1a565b91989097509095509350505050565b60008080806038878761ffff811061199757634e487b7160e01b600052603260045260246000fd5b015486602081106119b857634e487b7160e01b600052603260045260246000fd5b1a901b176030878761ffff81106119df57634e487b7160e01b600052603260045260246000fd5b01546119ec8760016120ee565b60208110611a0a57634e487b7160e01b600052603260045260246000fd5b1a901b176028878761ffff8110611a3157634e487b7160e01b600052603260045260246000fd5b0154611a3e8760026120ee565b60208110611a5c57634e487b7160e01b600052603260045260246000fd5b1a901b176020878761ffff8110611a8357634e487b7160e01b600052603260045260246000fd5b0154611a908760036120ee565b60208110611aae57634e487b7160e01b600052603260045260246000fd5b1a901b176018878761ffff8110611ad557634e487b7160e01b600052603260045260246000fd5b0154611ae28760046120ee565b60208110611b0057634e487b7160e01b600052603260045260246000fd5b1a901b176010878761ffff8110611b2757634e487b7160e01b600052603260045260246000fd5b0154611b348760056120ee565b60208110611b5257634e487b7160e01b600052603260045260246000fd5b1a901b176008878761ffff8110611b7957634e487b7160e01b600052603260045260246000fd5b0154611b868760066120ee565b60208110611ba457634e487b7160e01b600052603260045260246000fd5b1a901b17868661ffff8110611bc957634e487b7160e01b600052603260045260246000fd5b0154611bd68660076120ee565b60208110611bf457634e487b7160e01b600052603260045260246000fd5b1a1761196086866008611c1a565b600061187f828461213c565b600061187f8284612128565b600080611c2783856120ee565b9350611c34602085612128565b611c3e90866120ee565b611c49602086612284565b91509150935093915050565b80356103b4816122da565b60008083601f840112611c71578182fd5b5081356001600160401b03811115611c87578182fd5b6020830191508360208260051b85010111156118b257600080fd5b803561ffff811681146103b457600080fd5b60008060408385031215611cc6578182fd5b8235611cd1816122da565b915060208301358015158114611ce5578182fd5b809150509250929050565b60006020808385031215611d02578182fd5b82356001600160401b0380821115611d18578384fd5b818501915085601f830112611d2b578384fd5b813581811115611d3d57611d3d6122c4565b8060051b604051601f19603f83011681018181108582111715611d6257611d626122c4565b604052828152858101935084860182860187018a1015611d80578788fd5b8795505b83861015611da957611d9581611c55565b855260019590950194938601938601611d84565b5098975050505050505050565b600080600060408486031215611dca578081fd5b83356001600160401b03811115611ddf578182fd5b611deb86828701611c60565b909790965060209590950135949350505050565b60008060008060608587031215611e14578081fd5b84356001600160401b03811115611e29578182fd5b611e3587828801611c60565b90989097506020870135966040013595509350505050565b600060208284031215611e5e578081fd5b5035919050565b60008060408385031215611e77578182fd5b823591506020830135611ce5816122da565b600060208284031215611e9a578081fd5b81356001600160e01b03198116811461187f578182fd5b60008060408385031215611ec3578182fd5b611ecc83611ca2565b9150611eda60208401611ca2565b90509250929050565b6000815180845260208085019450808401835b83811015611f1657815161ffff1687529582019590820190600101611ef6565b509495945050505050565b60007f416363657373436f6e74726f6c3a206163636f756e742000000000000000000082528351611f598160178501602088016121c9565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611f8a8160288401602088016121c9565b01602801949350505050565b60006020808301818452808551808352604092508286019150828160051b870101848801865b8381101561208757888303603f190185528151805161ffff168452610120818901516001600160a01b038116868b01525087820151818987015261200282870182611ee3565b9150506060808301518683038288015261201c8382611ee3565b92505050608080830151818701525060a080830151818701525060c080830151612050828801826001600160401b03169052565b505060e0828101516001600160401b0390811691870191909152610100928301511691909401529386019390860190600101611fbc565b509098975050505050505050565b60006020825282518060208401526120b48160408501602087016121c9565b601f01601f19169190910160400192915050565b600061ffff8083168185168083038211156120e5576120e5612298565b01949350505050565b6000821982111561210157612101612298565b500190565b60006001600160401b038083168185168083038211156120e5576120e5612298565b600082612137576121376122ae565b500490565b600081600019048311821515161561215657612156612298565b500290565b60006001600160401b038083168185168183048111821515161561218157612181612298565b02949350505050565b60008282101561219c5761219c612298565b500390565b60006001600160401b03838116908316818110156121c1576121c1612298565b039392505050565b60005b838110156121e45781810151838201526020016121cc565b838111156107da5750506000910152565b60008161220457612204612298565b506000190190565b600181811c9082168061222057607f821691505b6020821081141561224157634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff8083168181141561225f5761225f612298565b6001019392505050565b600060001982141561227d5761227d612298565b5060010190565b600082612293576122936122ae565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146105a957600080fdfea2646970667358221220e3f47a0696638570eece58f30c8f60b8698ee86ff9d9881cc88297322b062e0964736f6c6343000803003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000013566565467269656e64732041756374696f6e7300000000000000000000000000
Deployed Bytecode
0x6080604052600436106101095760003560e01c80638a81694c11610095578063b31ec97c11610064578063b31ec97c146102d3578063b8b2b84c146102f3578063b929e5c314610320578063d547741f14610340578063da1c3f591461036057610109565b80638a81694c1461024457806391d148541461027e578063a217fddf1461029e578063ad74f9bc146102b357610109565b806336568abe116100dc57806336568abe146101c55780633ccfd60b146101e5578063454a2ab3146101fa578063454f445b1461020d578063722d49af1461022d57610109565b806301ffc9a71461010e57806306fdde0314610143578063248a9ca3146101655780632f2ff15d146101a3575b600080fd5b34801561011a57600080fd5b5061012e610129366004611e89565b610380565b60405190151581526020015b60405180910390f35b34801561014f57600080fd5b506101586103b9565b60405161013a9190612095565b34801561017157600080fd5b50610195610180366004611e4d565b60009081526020819052604090206001015490565b60405190815260200161013a565b3480156101af57600080fd5b506101c36101be366004611e65565b610449565b005b3480156101d157600080fd5b506101c36101e0366004611e65565b610475565b3480156101f157600080fd5b506101c36104f8565b6101c3610208366004611e4d565b6105ac565b34801561021957600080fd5b506101c3610228366004611cb4565b6107e0565b34801561023957600080fd5b506202000054610195565b34801561025057600080fd5b506202000254610266906001600160a01b031681565b6040516001600160a01b03909116815260200161013a565b34801561028a57600080fd5b5061012e610299366004611e65565b610880565b3480156102aa57600080fd5b50610195600081565b3480156102bf57600080fd5b506101956102ce366004611e4d565b6108a9565b3480156102df57600080fd5b506101c36102ee366004611cf0565b610920565b3480156102ff57600080fd5b5061031361030e366004611eb1565b6109a7565b60405161013a9190611f96565b34801561032c57600080fd5b506101c361033b366004611dff565b61103c565b34801561034c57600080fd5b506101c361035b366004611e65565b6110c7565b34801561036c57600080fd5b506101c361037b366004611db6565b6110ed565b60006001600160e01b03198216637965db0b60e01b14806103b157506301ffc9a760e01b6001600160e01b03198316145b90505b919050565b6202000380546103c89061220c565b80601f01602080910402602001604051908101604052809291908181526020018280546103f49061220c565b80156104415780601f1061041657610100808354040283529160200191610441565b820191906000526020600020905b81548152906001019060200180831161042457829003601f168201915b505050505081565b60008281526020819052604090206001015461046681335b61116e565b61047083836111d2565b505050565b6001600160a01b03811633146104ea5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6104f48282611256565b5050565b62020002546001600160a01b03163314806105195750610519600033610880565b6105565760405162461bcd60e51b815260206004820152600e60248201526d1b9bdd08185d5d1a1bdc9a5e995960921b60448201526064016104e1565b47806105915760405162461bcd60e51b815260206004820152600a6024820152696e6f2062616c616e636560b01b60448201526064016104e1565b62020002546105a9906001600160a01b0316826112bb565b50565b600081815262020001602052604090205460ff16156106005760405162461bcd60e51b815260206004820152601060248201526f1b1a5cdd1a5b99c81cdbdb19081bdd5d60821b60448201526064016104e1565b80620200005410156106465760405162461bcd60e51b815260206004820152600f60248201526e4e6f2073756368206c697374696e6760881b60448201526064016104e1565b6000610651826113d4565b905060006106628260000151611475565b9050600061066f8261157c565b9050803410156106af5760405162461bcd60e51b815260206004820152600b60248201526a57726f6e6720707269636560a81b60448201526064016104e1565b6001836020015161ffff16815481106106d857634e487b7160e01b600052603260045260246000fd5b600091825260209091200154604084810151905163206e1dd160e21b815261ffff9091166004820152336024820152604481018390526001600160a01b03909116906381b8774490606401600060405180830381600087803b15801561073d57600080fd5b505af1158015610751573d6000803e3d6000fd5b5050506000858152620200016020908152604091829020805460ff1916600117905585820151825161ffff909116815233918101919091529081018390528591507fb91be406ffa756ee2a7f96bd39cf7323bbbed9152b1917d2f6cce8f124e2be199060600160405180910390a2348110156107da576107da336107d5833461218a565b6112bb565b50505050565b60006107ec8133610461565b62020002546001600160a01b038481169116141561083a5760405162461bcd60e51b815260206004820152600b60248201526a185b1c9958591e481cd95d60aa1b60448201526064016104e1565b6202000280546001600160a01b038581166001600160a01b031983161790925547911683801561086a5750600082115b156108795761087981836112bb565b5050505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600081620200005410156108f15760405162461bcd60e51b815260206004820152600f60248201526e4e6f2073756368206c697374696e6760881b60448201526064016104e1565b60006108fc836113d4565b9050600061090d8260000151611475565b90506109188161157c565b949350505050565b600061092c8133610461565b60005b825181101561047057600183828151811061095a57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b039092169190911790558061099f81612269565b91505061092f565b606062020000548361ffff16106109ef5760405162461bcd60e51b815260206004820152600c60248201526b6f7574206f662072616e676560a01b60448201526064016104e1565b60008361ffff166202000054610a05919061218a565b905060008361ffff168210610a1e578361ffff16610a20565b815b90506000816001600160401b03811115610a4a57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610af257816020015b610adf604051806101200160405280600061ffff16815260200160006001600160a01b031681526020016060815260200160608152602001600081526020016000815260200160006001600160401b0316815260200160006001600160401b0316815260200160006001600160401b031681525090565b815260200190600190039081610a685790505b50905060005b828161ffff161015611032576000610b1082896120c8565b90506000610b1d826113d4565b90506000610b2e8260000151611475565b61ffff8085166000908152620200016020526040902054875192935060ff169185918891908816908110610b7257634e487b7160e01b600052603260045260246000fd5b60200260200101516000019061ffff16908161ffff16815250506001836020015161ffff1681548110610bb557634e487b7160e01b600052603260045260246000fd5b9060005260206000200160009054906101000a90046001600160a01b0316868661ffff1681518110610bf757634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b039092169101528015610d3757604080516001808252818301909252906020808301908036833701905050868661ffff1681518110610c5957634e487b7160e01b600052603260045260246000fd5b6020908102919091010151604001526000604051908082528060200260200182016040528015610c93578160200160208202803683370190505b50868661ffff1681518110610cb857634e487b7160e01b600052603260045260246000fd5b6020026020010151606001819052508260400151868661ffff1681518110610cf057634e487b7160e01b600052603260045260246000fd5b602002602001015160400151600081518110610d1c57634e487b7160e01b600052603260045260246000fd5b602002602001019061ffff16908161ffff1681525050610e3d565b6040805160008152602081019091528651879061ffff8816908110610d6c57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151604090810191909152805160018082528183019092529081602001602082028036833701905050868661ffff1681518110610dc257634e487b7160e01b600052603260045260246000fd5b6020026020010151606001819052508260400151868661ffff1681518110610dfa57634e487b7160e01b600052603260045260246000fd5b602002602001015160600151600081518110610e2657634e487b7160e01b600052603260045260246000fd5b602002602001019061ffff16908161ffff16815250505b6000662386f26fc10000836080015161ffff16610e5a919061213c565b90506000662386f26fc10000846060015161ffff16610e79919061213c565b90506000846020015161ffff16603c610e92919061215b565b8551610e9e9190612106565b90506000856040015161ffff16603c610eb7919061215b565b8651610ec39190612106565b9050828a8a61ffff1681518110610eea57634e487b7160e01b600052603260045260246000fd5b602090810291909101015160800152610f03848461218a565b8a8a61ffff1681518110610f2757634e487b7160e01b600052603260045260246000fd5b602002602001015160a0018181525050818a8a61ffff1681518110610f5c57634e487b7160e01b600052603260045260246000fd5b602002602001015160c001906001600160401b031690816001600160401b031681525050808a8a61ffff1681518110610fa557634e487b7160e01b600052603260045260246000fd5b602002602001015160e001906001600160401b031690816001600160401b03168152505085600001518a8a61ffff1681518110610ff257634e487b7160e01b600052603260045260246000fd5b602002602001015161010001906001600160401b031690816001600160401b0316815250505050505050505050808061102a90612247565b915050610af8565b5095945050505050565b60006110488133610461565b60005b848110156110bb5785858281811061107357634e487b7160e01b600052603260045260246000fd5b905060200201356002828661108891906120ee565b61ffff81106110a757634e487b7160e01b600052603260045260246000fd5b0155806110b381612269565b91505061104b565b50506202000055505050565b6000828152602081905260409020600101546110e38133610461565b6104708383611256565b60006110f98133610461565b60005b838110156108795784848281811061112457634e487b7160e01b600052603260045260246000fd5b9050602002013562010001828561113b91906120ee565b61ffff811061115a57634e487b7160e01b600052603260045260246000fd5b01558061116681612269565b9150506110fc565b6111788282610880565b6104f457611190816001600160a01b0316601461169e565b61119b83602061169e565b6040516020016111ac929190611f21565b60408051601f198184030181529082905262461bcd60e51b82526104e191600401612095565b6111dc8282610880565b6104f4576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556112123390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6112608282610880565b156104f4576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b8047101561130b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016104e1565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611358576040519150601f19603f3d011682016040523d82523d6000602084013e61135d565b606091505b50509050806104705760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016104e1565b60408051606081018252600080825260208201819052918101829052908061140161ffff85166006611886565b6040805160608101825260008082526020820181905291810191909152919350915061142f600284846118b9565b61ffff909216835293509150611447600284846118b9565b61ffff909216602084015293509150611462600284846118b9565b505061ffff166040820152949350505050565b6040805160a081018252600080825260208201819052918101829052606081018290526080810182905290806114b061ffff85166010611886565b915091506114e56040805160a08101825260008082526020820181905291810182905260608101829052608081019190915290565b6114f362010001848461196f565b6001600160401b039092168352935091506115126201000184846118b9565b61ffff90921660208401529350915061152f6201000184846118b9565b61ffff90921660408401529350915061154c6201000184846118b9565b61ffff9092166060840152935091506115696201000184846118b9565b505061ffff166080820152949350505050565b6000804290506000662386f26fc10000846080015161ffff1661159f919061213c565b90506000662386f26fc10000856060015161ffff166115be919061213c565b90506000856020015161ffff16603c6115d7919061215b565b86516115e39190612106565b90506000866040015161ffff16603c6115fc919061215b565b87516116089190612106565b9050806001600160401b0316851061163057611624848461218a565b955050505050506103b4565b816001600160401b0316851161164d5782955050505050506103b4565b600061168661166e866116696001600160401b0387168a61218a565b611c02565b61167885856121a1565b6001600160401b0316611c0e565b9050611692818561218a565b98975050505050505050565b606060006116ad83600261213c565b6116b89060026120ee565b6001600160401b038111156116dd57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611707576020820181803683370190505b509050600360fc1b8160008151811061173057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061176d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061179184600261213c565b61179c9060016120ee565b90505b6001811115611830576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106117de57634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061180257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93611829816121f5565b905061179f565b50831561187f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016104e1565b9392505050565b60008080611894848661213c565b90506118a1602082612128565b6118ac602083612284565b92509250505b9250929050565b60008080806008878761ffff81106118e157634e487b7160e01b600052603260045260246000fd5b0154866020811061190257634e487b7160e01b600052603260045260246000fd5b1a901b17868661ffff811061192757634e487b7160e01b600052603260045260246000fd5b01546119348660016120ee565b6020811061195257634e487b7160e01b600052603260045260246000fd5b1a1761196086866002611c1a565b91989097509095509350505050565b60008080806038878761ffff811061199757634e487b7160e01b600052603260045260246000fd5b015486602081106119b857634e487b7160e01b600052603260045260246000fd5b1a901b176030878761ffff81106119df57634e487b7160e01b600052603260045260246000fd5b01546119ec8760016120ee565b60208110611a0a57634e487b7160e01b600052603260045260246000fd5b1a901b176028878761ffff8110611a3157634e487b7160e01b600052603260045260246000fd5b0154611a3e8760026120ee565b60208110611a5c57634e487b7160e01b600052603260045260246000fd5b1a901b176020878761ffff8110611a8357634e487b7160e01b600052603260045260246000fd5b0154611a908760036120ee565b60208110611aae57634e487b7160e01b600052603260045260246000fd5b1a901b176018878761ffff8110611ad557634e487b7160e01b600052603260045260246000fd5b0154611ae28760046120ee565b60208110611b0057634e487b7160e01b600052603260045260246000fd5b1a901b176010878761ffff8110611b2757634e487b7160e01b600052603260045260246000fd5b0154611b348760056120ee565b60208110611b5257634e487b7160e01b600052603260045260246000fd5b1a901b176008878761ffff8110611b7957634e487b7160e01b600052603260045260246000fd5b0154611b868760066120ee565b60208110611ba457634e487b7160e01b600052603260045260246000fd5b1a901b17868661ffff8110611bc957634e487b7160e01b600052603260045260246000fd5b0154611bd68660076120ee565b60208110611bf457634e487b7160e01b600052603260045260246000fd5b1a1761196086866008611c1a565b600061187f828461213c565b600061187f8284612128565b600080611c2783856120ee565b9350611c34602085612128565b611c3e90866120ee565b611c49602086612284565b91509150935093915050565b80356103b4816122da565b60008083601f840112611c71578182fd5b5081356001600160401b03811115611c87578182fd5b6020830191508360208260051b85010111156118b257600080fd5b803561ffff811681146103b457600080fd5b60008060408385031215611cc6578182fd5b8235611cd1816122da565b915060208301358015158114611ce5578182fd5b809150509250929050565b60006020808385031215611d02578182fd5b82356001600160401b0380821115611d18578384fd5b818501915085601f830112611d2b578384fd5b813581811115611d3d57611d3d6122c4565b8060051b604051601f19603f83011681018181108582111715611d6257611d626122c4565b604052828152858101935084860182860187018a1015611d80578788fd5b8795505b83861015611da957611d9581611c55565b855260019590950194938601938601611d84565b5098975050505050505050565b600080600060408486031215611dca578081fd5b83356001600160401b03811115611ddf578182fd5b611deb86828701611c60565b909790965060209590950135949350505050565b60008060008060608587031215611e14578081fd5b84356001600160401b03811115611e29578182fd5b611e3587828801611c60565b90989097506020870135966040013595509350505050565b600060208284031215611e5e578081fd5b5035919050565b60008060408385031215611e77578182fd5b823591506020830135611ce5816122da565b600060208284031215611e9a578081fd5b81356001600160e01b03198116811461187f578182fd5b60008060408385031215611ec3578182fd5b611ecc83611ca2565b9150611eda60208401611ca2565b90509250929050565b6000815180845260208085019450808401835b83811015611f1657815161ffff1687529582019590820190600101611ef6565b509495945050505050565b60007f416363657373436f6e74726f6c3a206163636f756e742000000000000000000082528351611f598160178501602088016121c9565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611f8a8160288401602088016121c9565b01602801949350505050565b60006020808301818452808551808352604092508286019150828160051b870101848801865b8381101561208757888303603f190185528151805161ffff168452610120818901516001600160a01b038116868b01525087820151818987015261200282870182611ee3565b9150506060808301518683038288015261201c8382611ee3565b92505050608080830151818701525060a080830151818701525060c080830151612050828801826001600160401b03169052565b505060e0828101516001600160401b0390811691870191909152610100928301511691909401529386019390860190600101611fbc565b509098975050505050505050565b60006020825282518060208401526120b48160408501602087016121c9565b601f01601f19169190910160400192915050565b600061ffff8083168185168083038211156120e5576120e5612298565b01949350505050565b6000821982111561210157612101612298565b500190565b60006001600160401b038083168185168083038211156120e5576120e5612298565b600082612137576121376122ae565b500490565b600081600019048311821515161561215657612156612298565b500290565b60006001600160401b038083168185168183048111821515161561218157612181612298565b02949350505050565b60008282101561219c5761219c612298565b500390565b60006001600160401b03838116908316818110156121c1576121c1612298565b039392505050565b60005b838110156121e45781810151838201526020016121cc565b838111156107da5750506000910152565b60008161220457612204612298565b506000190190565b600181811c9082168061222057607f821691505b6020821081141561224157634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff8083168181141561225f5761225f612298565b6001019392505050565b600060001982141561227d5761227d612298565b5060010190565b600082612293576122936122ae565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146105a957600080fdfea2646970667358221220e3f47a0696638570eece58f30c8f60b8698ee86ff9d9881cc88297322b062e0964736f6c63430008030033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000013566565467269656e64732041756374696f6e7300000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): VeeFriends Auctions
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [2] : 566565467269656e64732041756374696f6e7300000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.