Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 236 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 13288437 | 1226 days ago | IN | 0 ETH | 0.00212282 | ||||
Accept Bid | 13288411 | 1226 days ago | IN | 0 ETH | 0.00710019 | ||||
Bid | 13288399 | 1226 days ago | IN | 5 ETH | 0.00851515 | ||||
Withdraw | 13288383 | 1226 days ago | IN | 0 ETH | 0.00196346 | ||||
Accept Bid | 13288291 | 1226 days ago | IN | 0 ETH | 0.00685596 | ||||
Bid | 13288270 | 1226 days ago | IN | 7.5 ETH | 0.00554244 | ||||
Withdraw | 13127606 | 1251 days ago | IN | 0 ETH | 0.00302757 | ||||
Withdraw Bid | 13127598 | 1251 days ago | IN | 0 ETH | 0.003908 | ||||
Withdraw | 13127598 | 1251 days ago | IN | 0 ETH | 0.00243392 | ||||
Accept Global Bi... | 13127592 | 1251 days ago | IN | 0 ETH | 0.00565392 | ||||
Bid | 13127553 | 1251 days ago | IN | 0.1 ETH | 0.0098192 | ||||
Withdraw | 13127536 | 1251 days ago | IN | 0 ETH | 0.00161398 | ||||
Globalbid | 13124401 | 1251 days ago | IN | 7.5 ETH | 0.00968112 | ||||
Withdraw Global ... | 13124385 | 1251 days ago | IN | 0 ETH | 0.00304859 | ||||
Globalbid | 13121547 | 1252 days ago | IN | 6 ETH | 0.01244236 | ||||
Withdraw Global ... | 13121037 | 1252 days ago | IN | 0 ETH | 0.0020809 | ||||
Withdraw | 13120421 | 1252 days ago | IN | 0 ETH | 0.00141309 | ||||
Globalbid | 13115388 | 1253 days ago | IN | 4.5 ETH | 0.0061219 | ||||
Withdraw | 13109059 | 1254 days ago | IN | 0 ETH | 0.00557123 | ||||
Withdraw | 13109014 | 1254 days ago | IN | 0 ETH | 0.00477438 | ||||
Accept Bid | 13109004 | 1254 days ago | IN | 0 ETH | 0.01525921 | ||||
Bid | 13108988 | 1254 days ago | IN | 7 ETH | 0.01440104 | ||||
Accept Bid | 13108771 | 1254 days ago | IN | 0 ETH | 0.01482181 | ||||
Bid | 13108737 | 1254 days ago | IN | 8 ETH | 0.01415139 | ||||
Withdraw | 13095181 | 1256 days ago | IN | 0 ETH | 0.00263135 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
13288437 | 1226 days ago | 4.88888888 ETH | ||||
13288383 | 1226 days ago | 7.33333333 ETH | ||||
13127606 | 1251 days ago | 7.33333333 ETH | ||||
13127598 | 1251 days ago | 0.1 ETH | ||||
13124385 | 1251 days ago | 6 ETH | ||||
13121037 | 1252 days ago | 4.5 ETH | ||||
13109059 | 1254 days ago | 7.82222222 ETH | ||||
13109014 | 1254 days ago | 6.84444444 ETH | ||||
13095181 | 1256 days ago | 4.88888888 ETH | ||||
13077298 | 1259 days ago | 4.88888888 ETH | ||||
13070516 | 1260 days ago | 4.99 ETH | ||||
13056046 | 1262 days ago | 0.96153666 ETH | ||||
13056046 | 1262 days ago | 0.96153666 ETH | ||||
13056046 | 1262 days ago | 0.96153666 ETH | ||||
13056046 | 1262 days ago | 0.96153666 ETH | ||||
13055293 | 1262 days ago | 6.06222222 ETH | ||||
13046497 | 1263 days ago | 5 ETH | ||||
13043937 | 1264 days ago | 1.5 ETH | ||||
13043643 | 1264 days ago | 0.00009777 ETH | ||||
13037178 | 1265 days ago | 4.86933333 ETH | ||||
13025540 | 1267 days ago | 0.01 ETH | ||||
13019038 | 1268 days ago | 3.5 ETH | ||||
13018217 | 1268 days ago | 7.82222222 ETH | ||||
13016770 | 1268 days ago | 4.4 ETH | ||||
13016349 | 1268 days ago | 5 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
EtheriaGlobalMarket
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
No with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.7.6; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/proxy/Initializable.sol"; interface MapElevationRetriever { function getElevation(uint8 col, uint8 row) external view returns (uint8); } interface Etheria { function getOwner(uint8 col, uint8 row) external view returns(address); function setOwner(uint8 col, uint8 row, address newowner) external; function setName(uint8 col, uint8 row, string calldata _n) external; } contract EtheriaGlobalMarket is AccessControl, Initializable { /* Marketplace based on the Larvalabs OGs! */ using SafeMath for uint256; string public name; uint public mapSize; Etheria public etheriav11; Etheria public etheriav12; uint public FEE; uint public feesToCollect; uint public GlobalBidIDCounter; struct Bid { uint8 col; uint8 row; uint amount; address bidder; } struct GlobalBid { uint bidid; uint amount; address bidder; } // A record of the highest Etheria bid // version => (tileIndex => Bid) mapping (string => mapping (uint => Bid)) public bids; mapping (string => mapping (uint => GlobalBid)) public globalbids; mapping (address => uint) public pendingWithdrawals; event EtheriaTransfer(string indexed version, uint indexed index, address from, address to); event EtheriaBidCreated(string indexed version, uint indexed index, uint amount, address bidder); event EtheriaGlobalBidCreated(string indexed version, uint indexed globalbidid, uint amount, address bidder); event EtheriaBidWithdrawn(string indexed version, uint indexed index, uint amount, address bidder); event EtheriaGlobalBidWithdrawn(string indexed version, uint indexed globalbidid, uint amount, address bidder); event EtheriaBought(string indexed version, uint indexed index, uint amount, address seller, address bidder); event EtheriaGlobalBought(string indexed version, uint indexed index, uint amount, uint globalbidid, address seller, address bidder); function initialize() public initializer { _setupRole(DEFAULT_ADMIN_ROLE, 0x568f02EE272909ae9352188D4EA406Df810Ba4dE); _setupRole(DEFAULT_ADMIN_ROLE, 0x9260ae742F44b7a2e9472f5C299aa0432B3502FA); _setupRole(DEFAULT_ADMIN_ROLE, 0xD2927a91570146218eD700566DF516d67C5ECFAB); FEE = 20; //5% name = "EtheriaGlobalMarket"; mapSize = 33; etheriav11 = Etheria(0x169332Ae7D143E4B5c6baEdb2FEF77BFBdDB4011); etheriav12 = Etheria(0xB21f8684f23Dbb1008508B4DE91a0aaEDEbdB7E4); GlobalBidIDCounter = 0; } function collectFees() public { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender)); uint amount = feesToCollect; feesToCollect = 0; uint forth = amount.div(4); uint remainder = amount.sub(forth).sub(forth).sub(forth); payable(0x448458Ac5EE15ae1b5f73dbA5bfA46046FEeEfDd).transfer(forth); payable(0x568f02EE272909ae9352188D4EA406Df810Ba4dE).transfer(forth); payable(0x9260ae742F44b7a2e9472f5C299aa0432B3502FA).transfer(forth); payable(0xD2927a91570146218eD700566DF516d67C5ECFAB).transfer(remainder); } function changeFee(uint newFee) public { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender)); FEE = newFee; } function _index(uint8 col, uint8 row) internal view returns (uint) { return col * mapSize + row; } function versionDispatcher(string calldata version) internal view returns (Etheria) { return keccak256(abi.encodePacked(version)) == keccak256(abi.encodePacked("1.1")) ? etheriav11 : etheriav12; } function bid(string calldata version, uint8 col, uint8 row) public payable { //require(etheria.getOwner(col, row) != msg.sender); uint index = _index(col, row); require(msg.value > 0, "BID::Value is 0"); Bid memory bid = bids[version][index]; require(msg.value > bid.amount, "BID::New bid too low"); //refund failing bid pendingWithdrawals[bid.bidder] += bid.amount; //new bid bids[version][index] = Bid(col, row, msg.value, msg.sender); emit EtheriaBidCreated(version, index, msg.value, msg.sender); } function increaseGlobalBidCounter() internal returns (uint) { GlobalBidIDCounter += 1; return GlobalBidIDCounter; } function globalbid(string calldata version) public payable { //require(etheria.getOwner(col, row) != msg.sender); //uint index = _index(col, row); uint globalbidid = increaseGlobalBidCounter(); require(msg.value > 0, "BID::Value is 0"); // Dont need to check old bids and not refund stuff //new globalbid globalbids[version][globalbidid] = GlobalBid(globalbidid, msg.value, msg.sender); emit EtheriaGlobalBidCreated(version, globalbidid, msg.value, msg.sender); } function withdrawBid(string calldata version, uint8 col, uint8 row) public { uint index = _index(col, row); Bid memory bid = bids[version][index]; require(msg.sender == bid.bidder, "WITHDRAW_BID::Only bidder can withdraw his bid"); emit EtheriaBidWithdrawn(version, index, bid.amount, msg.sender); uint amount = bid.amount; bids[version][index] = Bid(col, row, 0, address(0x0)); msg.sender.transfer(amount); } function withdrawGlobalBid(string calldata version, uint globalbidid) public { GlobalBid memory globalbid = globalbids[version][globalbidid]; require(msg.sender == globalbid.bidder, "WITHDRAW_BID::Only bidder can withdraw his bid"); emit EtheriaGlobalBidWithdrawn(version, globalbidid, globalbid.amount, msg.sender); uint amount = globalbid.amount; globalbids[version][globalbidid] = GlobalBid(globalbidid, 0, address(0x0)); msg.sender.transfer(amount); } function acceptBid(string calldata version, uint8 col, uint8 row, uint minPrice) public { Etheria etheria = versionDispatcher(version); require(etheria.getOwner(col, row) == msg.sender, "ACCEPT_BID::Only owner can accept bid"); uint index = _index(col, row); Bid memory bid = bids[version][index]; require(bid.amount > 0, "ACCEPT_BID::Bid amount is 0"); require(bid.amount >= minPrice, "ACCEPT_BID::Min price not respected"); // With the require getOwner we check already, if it can be assigned, no other checks needed etheria.setName(col, row, ""); etheria.setOwner(col, row, bid.bidder); //collect fee uint fees = bid.amount.div(FEE); feesToCollect += fees; uint amount = bid.amount.sub(fees); bids[version][index] = Bid(col, row, 0, address(0x0)); pendingWithdrawals[msg.sender] += amount; emit EtheriaBought(version, index, amount, msg.sender, bid.bidder); emit EtheriaTransfer(version, index, msg.sender, bid.bidder); } function acceptGlobalBid(string calldata version, uint8 col, uint8 row, uint globalbidid) public { Etheria etheria = versionDispatcher(version); require(etheria.getOwner(col, row) == msg.sender, "ACCEPT_BID::Only owner can accept bid"); uint index = _index(col, row); GlobalBid memory globalbid = globalbids[version][globalbidid]; require(globalbid.amount > 0, "ACCEPT_BID::Bid amount is 0"); require(globalbid.bidid == globalbidid, "ACCEPT_BID::Bid ID somehow changed?"); // With the require getOwner we check already, if it can be assigned, no other checks needed // Empty set Name etheria.setName(col, row, ""); etheria.setOwner(col, row, globalbid.bidder); //collect fee uint fees = globalbid.amount.div(FEE); feesToCollect += fees; uint amount = globalbid.amount.sub(fees); globalbids[version][globalbidid] = GlobalBid(globalbidid, 0, address(0x0)); pendingWithdrawals[msg.sender] += amount; emit EtheriaGlobalBought(version, index, amount, globalbidid, msg.sender, globalbid.bidder); emit EtheriaTransfer(version, index, msg.sender, globalbid.bidder); } function withdraw() public { uint amount = pendingWithdrawals[msg.sender]; // Remember to zero the pending refund before // sending to prevent re-entrancy attacks pendingWithdrawals[msg.sender] = 0; msg.sender.transfer(amount); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/EnumerableSet.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * 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 { using EnumerableSet for EnumerableSet.AddressSet; using Address for address; struct RoleData { EnumerableSet.AddressSet 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 Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view returns (bool) { return _roles[role].members.contains(account); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view returns (uint256) { return _roles[role].members.length(); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view returns (address) { return _roles[role].members.at(index); } /** * @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 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 { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant"); _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 { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke"); _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 { 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, _roles[role].adminRole, adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ 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) { 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) { 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) { // 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) { 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) { 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) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @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) { require(b <= a, "SafeMath: subtraction overflow"); 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) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @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. 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) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); 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) { require(b > 0, "SafeMath: modulo by zero"); 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) { 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. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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) { 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) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT // solhint-disable-next-line compiler-version pragma solidity >=0.4.24 <0.8.0; import "../utils/Address.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function _isConstructor() private view returns (bool) { return !Address.isContract(address(this)); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <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.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"version","type":"string"},{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"bidder","type":"address"}],"name":"EtheriaBidCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"version","type":"string"},{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"bidder","type":"address"}],"name":"EtheriaBidWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"version","type":"string"},{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"address","name":"bidder","type":"address"}],"name":"EtheriaBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"version","type":"string"},{"indexed":true,"internalType":"uint256","name":"globalbidid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"bidder","type":"address"}],"name":"EtheriaGlobalBidCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"version","type":"string"},{"indexed":true,"internalType":"uint256","name":"globalbidid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"bidder","type":"address"}],"name":"EtheriaGlobalBidWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"version","type":"string"},{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"globalbidid","type":"uint256"},{"indexed":false,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"address","name":"bidder","type":"address"}],"name":"EtheriaGlobalBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"version","type":"string"},{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"EtheriaTransfer","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":[],"name":"FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GlobalBidIDCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"version","type":"string"},{"internalType":"uint8","name":"col","type":"uint8"},{"internalType":"uint8","name":"row","type":"uint8"},{"internalType":"uint256","name":"minPrice","type":"uint256"}],"name":"acceptBid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"version","type":"string"},{"internalType":"uint8","name":"col","type":"uint8"},{"internalType":"uint8","name":"row","type":"uint8"},{"internalType":"uint256","name":"globalbidid","type":"uint256"}],"name":"acceptGlobalBid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"version","type":"string"},{"internalType":"uint8","name":"col","type":"uint8"},{"internalType":"uint8","name":"row","type":"uint8"}],"name":"bid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"bids","outputs":[{"internalType":"uint8","name":"col","type":"uint8"},{"internalType":"uint8","name":"row","type":"uint8"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"bidder","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"changeFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"etheriav11","outputs":[{"internalType":"contract Etheria","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"etheriav12","outputs":[{"internalType":"contract Etheria","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feesToCollect","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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"version","type":"string"}],"name":"globalbid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"globalbids","outputs":[{"internalType":"uint256","name":"bidid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"bidder","type":"address"}],"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":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mapSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pendingWithdrawals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"version","type":"string"},{"internalType":"uint8","name":"col","type":"uint8"},{"internalType":"uint8","name":"row","type":"uint8"}],"name":"withdrawBid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"globalbidid","type":"uint256"}],"name":"withdrawGlobalBid","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50613823806100206000396000f3fe6080604052600436106101b75760003560e01c80638a4eff45116100ec578063c57981b51161008a578063d547741f11610064578063d547741f14610b35578063f1e90b6c14610b90578063f3f4370314610c3a578063fb82791714610c9f576101b7565b8063c57981b514610aa4578063c879657214610acf578063ca15c87314610ae6576101b7565b806397667fa4116100c657806397667fa414610905578063a217fddf14610946578063b291663914610971578063bf51314214610a11576101b7565b80638a4eff45146107955780639010d07c1461082557806391d1485414610894576101b7565b80633ccfd60b1161015957806356ec3d231161013357806356ec3d23146105f85780636a1db1bf146106395780638129fc1c146106745780638688af8a1461068b576101b7565b80633ccfd60b146104205780634165728d14610437578063560f0a1e1461054e576101b7565b8063226092001161019557806322609200146102f0578063248a9ca31461031b5780632f2ff15d1461036a57806336568abe146103c5576101b7565b806302812440146101bc57806306fdde03146102355780631a32ebb6146102c5575b600080fd5b610233600480360360208110156101d257600080fd5b81019080803590602001906401000000008111156101ef57600080fd5b82018360208201111561020157600080fd5b8035906020019184600183028401116401000000008311171561022357600080fd5b9091929391929390505050610cca565b005b34801561024157600080fd5b5061024a610e8d565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561028a57808201518184015260208101905061026f565b50505050905090810190601f1680156102b75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102d157600080fd5b506102da610f2b565b6040518082815260200191505060405180910390f35b3480156102fc57600080fd5b50610305610f31565b6040518082815260200191505060405180910390f35b34801561032757600080fd5b506103546004803603602081101561033e57600080fd5b8101908080359060200190929190505050610f37565b6040518082815260200191505060405180910390f35b34801561037657600080fd5b506103c36004803603604081101561038d57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f56565b005b3480156103d157600080fd5b5061041e600480360360408110156103e857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fdf565b005b34801561042c57600080fd5b50610435611078565b005b34801561044357600080fd5b506105076004803603604081101561045a57600080fd5b810190808035906020019064010000000081111561047757600080fd5b82018360208201111561048957600080fd5b803590602001918460018302840111640100000000831117156104ab57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019092919050505061114b565b604051808560ff1681526020018460ff1681526020018381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200194505050505060405180910390f35b34801561055a57600080fd5b506105f66004803603608081101561057157600080fd5b810190808035906020019064010000000081111561058e57600080fd5b8201836020820111156105a057600080fd5b803590602001918460018302840111640100000000831117156105c257600080fd5b9091929391929390803560ff169060200190929190803560ff169060200190929190803590602001909291905050506111d8565b005b34801561060457600080fd5b5061060d611855565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561064557600080fd5b506106726004803603602081101561065c57600080fd5b810190808035906020019092919050505061187b565b005b34801561068057600080fd5b5061068961189b565b005b34801561069757600080fd5b5061075b600480360360408110156106ae57600080fd5b81019080803590602001906401000000008111156106cb57600080fd5b8201836020820111156106dd57600080fd5b803590602001918460018302840111640100000000831117156106ff57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190929190505050611b08565b604051808481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390f35b3480156107a157600080fd5b50610823600480360360408110156107b857600080fd5b81019080803590602001906401000000008111156107d557600080fd5b8201836020820111156107e757600080fd5b8035906020019184600183028401116401000000008311171561080957600080fd5b909192939192939080359060200190929190505050611b75565b005b34801561083157600080fd5b506108686004803603604081101561084857600080fd5b810190808035906020019092919080359060200190929190505050611e47565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156108a057600080fd5b506108ed600480360360408110156108b757600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611e78565b60405180821515815260200191505060405180910390f35b34801561091157600080fd5b5061091a611ea9565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561095257600080fd5b5061095b611ecf565b6040518082815260200191505060405180910390f35b34801561097d57600080fd5b50610a0f6004803603606081101561099457600080fd5b81019080803590602001906401000000008111156109b157600080fd5b8201836020820111156109c357600080fd5b803590602001918460018302840111640100000000831117156109e557600080fd5b9091929391929390803560ff169060200190929190803560ff169060200190929190505050611ed6565b005b610aa260048036036060811015610a2757600080fd5b8101908080359060200190640100000000811115610a4457600080fd5b820183602082011115610a5657600080fd5b80359060200191846001830284011164010000000083111715610a7857600080fd5b9091929391929390803560ff169060200190929190803560ff16906020019092919050505061222c565b005b348015610ab057600080fd5b50610ab96125e7565b6040518082815260200191505060405180910390f35b348015610adb57600080fd5b50610ae46125ed565b005b348015610af257600080fd5b50610b1f60048036036020811015610b0957600080fd5b81019080803590602001909291905050506127d6565b6040518082815260200191505060405180910390f35b348015610b4157600080fd5b50610b8e60048036036040811015610b5857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506127fc565b005b348015610b9c57600080fd5b50610c3860048036036080811015610bb357600080fd5b8101908080359060200190640100000000811115610bd057600080fd5b820183602082011115610be257600080fd5b80359060200191846001830284011164010000000083111715610c0457600080fd5b9091929391929390803560ff169060200190929190803560ff16906020019092919080359060200190929190505050612885565b005b348015610c4657600080fd5b50610c8960048036036020811015610c5d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612f6f565b6040518082815260200191505060405180910390f35b348015610cab57600080fd5b50610cb4612f87565b6040518082815260200191505060405180910390f35b6000610cd4612f8d565b905060003411610d4c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4249443a3a56616c75652069732030000000000000000000000000000000000081525060200191505060405180910390fd5b60405180606001604052808281526020013481526020013373ffffffffffffffffffffffffffffffffffffffff16815250600a848460405180838380828437808301925050509250505090815260200160405180910390206000838152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555090505080838360405180838380828437808301925050509250505060405180910390207f59f94987fb6cc2cf3e20cd6124c21b73d0a97aac461a329a97c362e642a394293433604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a3505050565b60028054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610f235780601f10610ef857610100808354040283529160200191610f23565b820191906000526020600020905b815481529060010190602001808311610f0657829003601f168201915b505050505081565b60035481565b60075481565b6000806000838152602001908152602001600020600201549050919050565b610f7c60008084815260200190815260200160002060020154610f77612fa8565b611e78565b610fd1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180613699602f913960400191505060405180910390fd5b610fdb8282612fb0565b5050565b610fe7612fa8565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461106a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806137bf602f913960400191505060405180910390fd5b6110748282613043565b5050565b6000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611147573d6000803e3d6000fd5b5050565b600982805160208101820180518482526020830160208501208183528095505050505050602052806000526040600020600091509150508060000160009054906101000a900460ff16908060000160019054906101000a900460ff16908060010154908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905084565b60006111e486866130d6565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663e039e4a186866040518363ffffffff1660e01b8152600401808360ff1681526020018260ff1681526020019250505060206040518083038186803b15801561125c57600080fd5b505afa158015611270573d6000803e3d6000fd5b505050506040513d602081101561128657600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1614611303576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806136c86025913960400191505060405180910390fd5b600061130f85856131a8565b90506000600a88886040518083838082843780830192505050925050509081526020016040518091039020600085815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050600081602001511161143c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f4143434550545f4249443a3a42696420616d6f756e742069732030000000000081525060200191505060405180910390fd5b83816000015114611498576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806137796023913960400191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166393eec1fb87876040518363ffffffff1660e01b8152600401808360ff1681526020018260ff168152602001806020018281038252600081526020019350505050600060405180830381600087803b15801561150a57600080fd5b505af115801561151e573d6000803e3d6000fd5b505050508273ffffffffffffffffffffffffffffffffffffffff16637d5fec5a878784604001516040518463ffffffff1660e01b8152600401808460ff1681526020018360ff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019350505050600060405180830381600087803b1580156115a557600080fd5b505af11580156115b9573d6000803e3d6000fd5b5050505060006115d860065483602001516131bf90919063ffffffff16565b905080600760008282540192505081905550600061160382846020015161324890919063ffffffff16565b9050604051806060016040528087815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815250600a8b8b60405180838380828437808301925050509250505090815260200160405180910390206000888152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555090505080600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550838a8a60405180838380828437808301925050509250505060405180910390207f63708850b7b315431545d87b2df2e3c7d4a7f72bd1dca9e099eed7c59689ae658389338860400151604051808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff16815260200194505050505060405180910390a3838a8a60405180838380828437808301925050509250505060405180910390207fafb35052ca6f2ef1a465d5725c888563a795ee382e848737b9ceace34759ba4f338660400151604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a350505050505050505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118886000801b33611e78565b61189157600080fd5b8060068190555050565b60018054906101000a900460ff16806118b857506118b76132cb565b5b806118d05750600160009054906101000a900460ff16155b611925576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e81526020018061374b602e913960400191505060405180910390fd5b600060018054906101000a900460ff1615905080156119735760018060016101000a81548160ff02191690831515021790555060018060006101000a81548160ff0219169083151502179055505b6119946000801b73568f02ee272909ae9352188d4ea406df810ba4de6132dc565b6119b56000801b739260ae742f44b7a2e9472f5c299aa0432b3502fa6132dc565b6119d66000801b73d2927a91570146218ed700566df516d67c5ecfab6132dc565b60146006819055506040518060400160405280601381526020017f45746865726961476c6f62616c4d61726b65740000000000000000000000000081525060029080519060200190611a299291906135cb565b50602160038190555073169332ae7d143e4b5c6baedb2fef77bfbddb4011600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073b21f8684f23dbb1008508b4de91a0aaedebdb7e4600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060006008819055508015611b055760006001806101000a81548160ff0219169083151502179055505b50565b600a82805160208101820180518482526020830160208501208183528095505050505050602052806000526040600020600091509150508060000154908060010154908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905083565b6000600a84846040518083838082843780830192505050925050509081526020016040518091039020600083815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050806040015173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611cae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806136ed602e913960400191505060405180910390fd5b81848460405180838380828437808301925050509250505060405180910390207fa6b14bccc4487df87f70266086fb25778c8876f4b5ce8fe6778f1562ee72fa64836020015133604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a3600081602001519050604051806060016040528084815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815250600a868660405180838380828437808301925050509250505090815260200160405180910390206000858152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611e3f573d6000803e3d6000fd5b505050505050565b6000611e70826000808681526020019081526020016000206000016132ea90919063ffffffff16565b905092915050565b6000611ea18260008086815260200190815260200160002060000161330490919063ffffffff16565b905092915050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b81565b6000611ee283836131a8565b9050600060098686604051808383808284378083019250505092505050908152602001604051809103902060008381526020019081526020016000206040518060800160405290816000820160009054906101000a900460ff1660ff1660ff1681526020016000820160019054906101000a900460ff1660ff1660ff168152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050806060015173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461204d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806136ed602e913960400191505060405180910390fd5b81868660405180838380828437808301925050509250505060405180910390207fc855dee31cfb9d93a7a8b5eccab92e527fbbc822eb3423a6b9354f2572afbaaf836040015133604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a360008160400151905060405180608001604052808660ff1681526020018560ff16815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815250600988886040518083838082843780830192505050925050509081526020016040518091039020600085815260200190815260200160002060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff1602179055506040820151816001015560608201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015612222573d6000803e3d6000fd5b5050505050505050565b600061223883836131a8565b9050600034116122b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4249443a3a56616c75652069732030000000000000000000000000000000000081525060200191505060405180910390fd5b600060098686604051808383808284378083019250505092505050908152602001604051809103902060008381526020019081526020016000206040518060800160405290816000820160009054906101000a900460ff1660ff1660ff1681526020016000820160019054906101000a900460ff1660ff1660ff168152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090508060400151341161240a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f4249443a3a4e65772062696420746f6f206c6f7700000000000000000000000081525060200191505060405180910390fd5b8060400151600b6000836060015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060405180608001604052808560ff1681526020018460ff1681526020013481526020013373ffffffffffffffffffffffffffffffffffffffff16815250600987876040518083838082843780830192505050925050509081526020016040518091039020600084815260200190815260200160002060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff1602179055506040820151816001015560608201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555090505081868660405180838380828437808301925050509250505060405180910390207f4bdbd0b7c4ddebd6634b648712977ef1da1a190c8d8d3fd9aa9cf081f4d75ec13433604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a3505050505050565b60065481565b6125fa6000801b33611e78565b61260357600080fd5b60006007549050600060078190555060006126286004836131bf90919063ffffffff16565b905060006126638261265584612647868861324890919063ffffffff16565b61324890919063ffffffff16565b61324890919063ffffffff16565b905073448458ac5ee15ae1b5f73dba5bfa46046feeefdd73ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156126bf573d6000803e3d6000fd5b5073568f02ee272909ae9352188d4ea406df810ba4de73ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505015801561271a573d6000803e3d6000fd5b50739260ae742f44b7a2e9472f5c299aa0432b3502fa73ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015612775573d6000803e3d6000fd5b5073d2927a91570146218ed700566df516d67c5ecfab73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156127d0573d6000803e3d6000fd5b50505050565b60006127f5600080848152602001908152602001600020600001613334565b9050919050565b6128226000808481526020019081526020016000206002015461281d612fa8565b611e78565b612877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603081526020018061371b6030913960400191505060405180910390fd5b6128818282613043565b5050565b600061289186866130d6565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663e039e4a186866040518363ffffffff1660e01b8152600401808360ff1681526020018260ff1681526020019250505060206040518083038186803b15801561290957600080fd5b505afa15801561291d573d6000803e3d6000fd5b505050506040513d602081101561293357600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16146129b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806136c86025913960400191505060405180910390fd5b60006129bc85856131a8565b9050600060098888604051808383808284378083019250505092505050908152602001604051809103902060008381526020019081526020016000206040518060800160405290816000820160009054906101000a900460ff1660ff1660ff1681526020016000820160019054906101000a900460ff1660ff1660ff168152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090506000816040015111612b19576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f4143434550545f4249443a3a42696420616d6f756e742069732030000000000081525060200191505060405180910390fd5b8381604001511015612b76576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061379c6023913960400191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166393eec1fb87876040518363ffffffff1660e01b8152600401808360ff1681526020018260ff168152602001806020018281038252600081526020019350505050600060405180830381600087803b158015612be857600080fd5b505af1158015612bfc573d6000803e3d6000fd5b505050508273ffffffffffffffffffffffffffffffffffffffff16637d5fec5a878784606001516040518463ffffffff1660e01b8152600401808460ff1681526020018360ff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019350505050600060405180830381600087803b158015612c8357600080fd5b505af1158015612c97573d6000803e3d6000fd5b505050506000612cb660065483604001516131bf90919063ffffffff16565b9050806007600082825401925050819055506000612ce182846040015161324890919063ffffffff16565b905060405180608001604052808960ff1681526020018860ff16815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681525060098b8b6040518083838082843780830192505050925050509081526020016040518091039020600086815260200190815260200160002060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff1602179055506040820151816001015560608201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555090505080600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550838a8a60405180838380828437808301925050509250505060405180910390207fb01cffff9e04206cad9b131ca4994667dcc45d82c28b10cf9103211e419945b483338760600151604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a3838a8a60405180838380828437808301925050509250505060405180910390207fafb35052ca6f2ef1a465d5725c888563a795ee382e848737b9ceace34759ba4f338660600151604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a350505050505050505050565b600b6020528060005260406000206000915090505481565b60085481565b60006001600860008282540192505081905550600854905090565b600033905090565b612fd78160008085815260200190815260200160002060000161334990919063ffffffff16565b1561303f57612fe4612fa8565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61306a8160008085815260200190815260200160002060000161337990919063ffffffff16565b156130d257613077612fa8565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600060405160200180807f312e3100000000000000000000000000000000000000000000000000000000008152506003019050604051602081830303815290604052805190602001208383604051602001808383808284378083019250505092505050604051602081830303815290604052805190602001201461317c57600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166131a0565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff165b905092915050565b60008160ff166003548460ff160201905092915050565b6000808211613236576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b81838161323f57fe5b04905092915050565b6000828211156132c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b60006132d6306133a9565b15905090565b6132e68282612fb0565b5050565b60006132f983600001836133bc565b60001c905092915050565b600061332c836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61343f565b905092915050565b600061334282600001613462565b9050919050565b6000613371836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613473565b905092915050565b60006133a1836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6134e3565b905092915050565b600080823b905060008111915050919050565b60008183600001805490501161341d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806136776022913960400191505060405180910390fd5b82600001828154811061342c57fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b600061347f838361343f565b6134d85782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506134dd565b600090505b92915050565b600080836001016000848152602001908152602001600020549050600081146135bf576000600182039050600060018660000180549050039050600086600001828154811061352e57fe5b906000526020600020015490508087600001848154811061354b57fe5b906000526020600020018190555060018301876001016000838152602001908152602001600020819055508660000180548061358357fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506135c5565b60009150505b92915050565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826136015760008555613648565b82601f1061361a57805160ff1916838001178555613648565b82800160010185558215613648579182015b8281111561364757825182559160200191906001019061362c565b5b5090506136559190613659565b5090565b5b8082111561367257600081600090555060010161365a565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744143434550545f4249443a3a4f6e6c79206f776e65722063616e206163636570742062696457495448445241575f4249443a3a4f6e6c79206269646465722063616e2077697468647261772068697320626964416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a65644143434550545f4249443a3a42696420494420736f6d65686f77206368616e6765643f4143434550545f4249443a3a4d696e207072696365206e6f7420726573706563746564416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212208296ba39e841607353d69bfd0d30afb2e38423563774047423034cc242d104d664736f6c63430007060033
Deployed Bytecode
0x6080604052600436106101b75760003560e01c80638a4eff45116100ec578063c57981b51161008a578063d547741f11610064578063d547741f14610b35578063f1e90b6c14610b90578063f3f4370314610c3a578063fb82791714610c9f576101b7565b8063c57981b514610aa4578063c879657214610acf578063ca15c87314610ae6576101b7565b806397667fa4116100c657806397667fa414610905578063a217fddf14610946578063b291663914610971578063bf51314214610a11576101b7565b80638a4eff45146107955780639010d07c1461082557806391d1485414610894576101b7565b80633ccfd60b1161015957806356ec3d231161013357806356ec3d23146105f85780636a1db1bf146106395780638129fc1c146106745780638688af8a1461068b576101b7565b80633ccfd60b146104205780634165728d14610437578063560f0a1e1461054e576101b7565b8063226092001161019557806322609200146102f0578063248a9ca31461031b5780632f2ff15d1461036a57806336568abe146103c5576101b7565b806302812440146101bc57806306fdde03146102355780631a32ebb6146102c5575b600080fd5b610233600480360360208110156101d257600080fd5b81019080803590602001906401000000008111156101ef57600080fd5b82018360208201111561020157600080fd5b8035906020019184600183028401116401000000008311171561022357600080fd5b9091929391929390505050610cca565b005b34801561024157600080fd5b5061024a610e8d565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561028a57808201518184015260208101905061026f565b50505050905090810190601f1680156102b75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102d157600080fd5b506102da610f2b565b6040518082815260200191505060405180910390f35b3480156102fc57600080fd5b50610305610f31565b6040518082815260200191505060405180910390f35b34801561032757600080fd5b506103546004803603602081101561033e57600080fd5b8101908080359060200190929190505050610f37565b6040518082815260200191505060405180910390f35b34801561037657600080fd5b506103c36004803603604081101561038d57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f56565b005b3480156103d157600080fd5b5061041e600480360360408110156103e857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fdf565b005b34801561042c57600080fd5b50610435611078565b005b34801561044357600080fd5b506105076004803603604081101561045a57600080fd5b810190808035906020019064010000000081111561047757600080fd5b82018360208201111561048957600080fd5b803590602001918460018302840111640100000000831117156104ab57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019092919050505061114b565b604051808560ff1681526020018460ff1681526020018381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200194505050505060405180910390f35b34801561055a57600080fd5b506105f66004803603608081101561057157600080fd5b810190808035906020019064010000000081111561058e57600080fd5b8201836020820111156105a057600080fd5b803590602001918460018302840111640100000000831117156105c257600080fd5b9091929391929390803560ff169060200190929190803560ff169060200190929190803590602001909291905050506111d8565b005b34801561060457600080fd5b5061060d611855565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561064557600080fd5b506106726004803603602081101561065c57600080fd5b810190808035906020019092919050505061187b565b005b34801561068057600080fd5b5061068961189b565b005b34801561069757600080fd5b5061075b600480360360408110156106ae57600080fd5b81019080803590602001906401000000008111156106cb57600080fd5b8201836020820111156106dd57600080fd5b803590602001918460018302840111640100000000831117156106ff57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190929190505050611b08565b604051808481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390f35b3480156107a157600080fd5b50610823600480360360408110156107b857600080fd5b81019080803590602001906401000000008111156107d557600080fd5b8201836020820111156107e757600080fd5b8035906020019184600183028401116401000000008311171561080957600080fd5b909192939192939080359060200190929190505050611b75565b005b34801561083157600080fd5b506108686004803603604081101561084857600080fd5b810190808035906020019092919080359060200190929190505050611e47565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156108a057600080fd5b506108ed600480360360408110156108b757600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611e78565b60405180821515815260200191505060405180910390f35b34801561091157600080fd5b5061091a611ea9565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561095257600080fd5b5061095b611ecf565b6040518082815260200191505060405180910390f35b34801561097d57600080fd5b50610a0f6004803603606081101561099457600080fd5b81019080803590602001906401000000008111156109b157600080fd5b8201836020820111156109c357600080fd5b803590602001918460018302840111640100000000831117156109e557600080fd5b9091929391929390803560ff169060200190929190803560ff169060200190929190505050611ed6565b005b610aa260048036036060811015610a2757600080fd5b8101908080359060200190640100000000811115610a4457600080fd5b820183602082011115610a5657600080fd5b80359060200191846001830284011164010000000083111715610a7857600080fd5b9091929391929390803560ff169060200190929190803560ff16906020019092919050505061222c565b005b348015610ab057600080fd5b50610ab96125e7565b6040518082815260200191505060405180910390f35b348015610adb57600080fd5b50610ae46125ed565b005b348015610af257600080fd5b50610b1f60048036036020811015610b0957600080fd5b81019080803590602001909291905050506127d6565b6040518082815260200191505060405180910390f35b348015610b4157600080fd5b50610b8e60048036036040811015610b5857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506127fc565b005b348015610b9c57600080fd5b50610c3860048036036080811015610bb357600080fd5b8101908080359060200190640100000000811115610bd057600080fd5b820183602082011115610be257600080fd5b80359060200191846001830284011164010000000083111715610c0457600080fd5b9091929391929390803560ff169060200190929190803560ff16906020019092919080359060200190929190505050612885565b005b348015610c4657600080fd5b50610c8960048036036020811015610c5d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612f6f565b6040518082815260200191505060405180910390f35b348015610cab57600080fd5b50610cb4612f87565b6040518082815260200191505060405180910390f35b6000610cd4612f8d565b905060003411610d4c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4249443a3a56616c75652069732030000000000000000000000000000000000081525060200191505060405180910390fd5b60405180606001604052808281526020013481526020013373ffffffffffffffffffffffffffffffffffffffff16815250600a848460405180838380828437808301925050509250505090815260200160405180910390206000838152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555090505080838360405180838380828437808301925050509250505060405180910390207f59f94987fb6cc2cf3e20cd6124c21b73d0a97aac461a329a97c362e642a394293433604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a3505050565b60028054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610f235780601f10610ef857610100808354040283529160200191610f23565b820191906000526020600020905b815481529060010190602001808311610f0657829003601f168201915b505050505081565b60035481565b60075481565b6000806000838152602001908152602001600020600201549050919050565b610f7c60008084815260200190815260200160002060020154610f77612fa8565b611e78565b610fd1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180613699602f913960400191505060405180910390fd5b610fdb8282612fb0565b5050565b610fe7612fa8565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461106a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806137bf602f913960400191505060405180910390fd5b6110748282613043565b5050565b6000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611147573d6000803e3d6000fd5b5050565b600982805160208101820180518482526020830160208501208183528095505050505050602052806000526040600020600091509150508060000160009054906101000a900460ff16908060000160019054906101000a900460ff16908060010154908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905084565b60006111e486866130d6565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663e039e4a186866040518363ffffffff1660e01b8152600401808360ff1681526020018260ff1681526020019250505060206040518083038186803b15801561125c57600080fd5b505afa158015611270573d6000803e3d6000fd5b505050506040513d602081101561128657600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1614611303576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806136c86025913960400191505060405180910390fd5b600061130f85856131a8565b90506000600a88886040518083838082843780830192505050925050509081526020016040518091039020600085815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050600081602001511161143c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f4143434550545f4249443a3a42696420616d6f756e742069732030000000000081525060200191505060405180910390fd5b83816000015114611498576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806137796023913960400191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166393eec1fb87876040518363ffffffff1660e01b8152600401808360ff1681526020018260ff168152602001806020018281038252600081526020019350505050600060405180830381600087803b15801561150a57600080fd5b505af115801561151e573d6000803e3d6000fd5b505050508273ffffffffffffffffffffffffffffffffffffffff16637d5fec5a878784604001516040518463ffffffff1660e01b8152600401808460ff1681526020018360ff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019350505050600060405180830381600087803b1580156115a557600080fd5b505af11580156115b9573d6000803e3d6000fd5b5050505060006115d860065483602001516131bf90919063ffffffff16565b905080600760008282540192505081905550600061160382846020015161324890919063ffffffff16565b9050604051806060016040528087815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815250600a8b8b60405180838380828437808301925050509250505090815260200160405180910390206000888152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555090505080600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550838a8a60405180838380828437808301925050509250505060405180910390207f63708850b7b315431545d87b2df2e3c7d4a7f72bd1dca9e099eed7c59689ae658389338860400151604051808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff16815260200194505050505060405180910390a3838a8a60405180838380828437808301925050509250505060405180910390207fafb35052ca6f2ef1a465d5725c888563a795ee382e848737b9ceace34759ba4f338660400151604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a350505050505050505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118886000801b33611e78565b61189157600080fd5b8060068190555050565b60018054906101000a900460ff16806118b857506118b76132cb565b5b806118d05750600160009054906101000a900460ff16155b611925576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e81526020018061374b602e913960400191505060405180910390fd5b600060018054906101000a900460ff1615905080156119735760018060016101000a81548160ff02191690831515021790555060018060006101000a81548160ff0219169083151502179055505b6119946000801b73568f02ee272909ae9352188d4ea406df810ba4de6132dc565b6119b56000801b739260ae742f44b7a2e9472f5c299aa0432b3502fa6132dc565b6119d66000801b73d2927a91570146218ed700566df516d67c5ecfab6132dc565b60146006819055506040518060400160405280601381526020017f45746865726961476c6f62616c4d61726b65740000000000000000000000000081525060029080519060200190611a299291906135cb565b50602160038190555073169332ae7d143e4b5c6baedb2fef77bfbddb4011600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073b21f8684f23dbb1008508b4de91a0aaedebdb7e4600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060006008819055508015611b055760006001806101000a81548160ff0219169083151502179055505b50565b600a82805160208101820180518482526020830160208501208183528095505050505050602052806000526040600020600091509150508060000154908060010154908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905083565b6000600a84846040518083838082843780830192505050925050509081526020016040518091039020600083815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050806040015173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611cae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806136ed602e913960400191505060405180910390fd5b81848460405180838380828437808301925050509250505060405180910390207fa6b14bccc4487df87f70266086fb25778c8876f4b5ce8fe6778f1562ee72fa64836020015133604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a3600081602001519050604051806060016040528084815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815250600a868660405180838380828437808301925050509250505090815260200160405180910390206000858152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611e3f573d6000803e3d6000fd5b505050505050565b6000611e70826000808681526020019081526020016000206000016132ea90919063ffffffff16565b905092915050565b6000611ea18260008086815260200190815260200160002060000161330490919063ffffffff16565b905092915050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b81565b6000611ee283836131a8565b9050600060098686604051808383808284378083019250505092505050908152602001604051809103902060008381526020019081526020016000206040518060800160405290816000820160009054906101000a900460ff1660ff1660ff1681526020016000820160019054906101000a900460ff1660ff1660ff168152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050806060015173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461204d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806136ed602e913960400191505060405180910390fd5b81868660405180838380828437808301925050509250505060405180910390207fc855dee31cfb9d93a7a8b5eccab92e527fbbc822eb3423a6b9354f2572afbaaf836040015133604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a360008160400151905060405180608001604052808660ff1681526020018560ff16815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815250600988886040518083838082843780830192505050925050509081526020016040518091039020600085815260200190815260200160002060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff1602179055506040820151816001015560608201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015612222573d6000803e3d6000fd5b5050505050505050565b600061223883836131a8565b9050600034116122b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4249443a3a56616c75652069732030000000000000000000000000000000000081525060200191505060405180910390fd5b600060098686604051808383808284378083019250505092505050908152602001604051809103902060008381526020019081526020016000206040518060800160405290816000820160009054906101000a900460ff1660ff1660ff1681526020016000820160019054906101000a900460ff1660ff1660ff168152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090508060400151341161240a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f4249443a3a4e65772062696420746f6f206c6f7700000000000000000000000081525060200191505060405180910390fd5b8060400151600b6000836060015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060405180608001604052808560ff1681526020018460ff1681526020013481526020013373ffffffffffffffffffffffffffffffffffffffff16815250600987876040518083838082843780830192505050925050509081526020016040518091039020600084815260200190815260200160002060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff1602179055506040820151816001015560608201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555090505081868660405180838380828437808301925050509250505060405180910390207f4bdbd0b7c4ddebd6634b648712977ef1da1a190c8d8d3fd9aa9cf081f4d75ec13433604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a3505050505050565b60065481565b6125fa6000801b33611e78565b61260357600080fd5b60006007549050600060078190555060006126286004836131bf90919063ffffffff16565b905060006126638261265584612647868861324890919063ffffffff16565b61324890919063ffffffff16565b61324890919063ffffffff16565b905073448458ac5ee15ae1b5f73dba5bfa46046feeefdd73ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156126bf573d6000803e3d6000fd5b5073568f02ee272909ae9352188d4ea406df810ba4de73ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505015801561271a573d6000803e3d6000fd5b50739260ae742f44b7a2e9472f5c299aa0432b3502fa73ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015612775573d6000803e3d6000fd5b5073d2927a91570146218ed700566df516d67c5ecfab73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156127d0573d6000803e3d6000fd5b50505050565b60006127f5600080848152602001908152602001600020600001613334565b9050919050565b6128226000808481526020019081526020016000206002015461281d612fa8565b611e78565b612877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603081526020018061371b6030913960400191505060405180910390fd5b6128818282613043565b5050565b600061289186866130d6565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663e039e4a186866040518363ffffffff1660e01b8152600401808360ff1681526020018260ff1681526020019250505060206040518083038186803b15801561290957600080fd5b505afa15801561291d573d6000803e3d6000fd5b505050506040513d602081101561293357600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16146129b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806136c86025913960400191505060405180910390fd5b60006129bc85856131a8565b9050600060098888604051808383808284378083019250505092505050908152602001604051809103902060008381526020019081526020016000206040518060800160405290816000820160009054906101000a900460ff1660ff1660ff1681526020016000820160019054906101000a900460ff1660ff1660ff168152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090506000816040015111612b19576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f4143434550545f4249443a3a42696420616d6f756e742069732030000000000081525060200191505060405180910390fd5b8381604001511015612b76576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061379c6023913960400191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166393eec1fb87876040518363ffffffff1660e01b8152600401808360ff1681526020018260ff168152602001806020018281038252600081526020019350505050600060405180830381600087803b158015612be857600080fd5b505af1158015612bfc573d6000803e3d6000fd5b505050508273ffffffffffffffffffffffffffffffffffffffff16637d5fec5a878784606001516040518463ffffffff1660e01b8152600401808460ff1681526020018360ff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019350505050600060405180830381600087803b158015612c8357600080fd5b505af1158015612c97573d6000803e3d6000fd5b505050506000612cb660065483604001516131bf90919063ffffffff16565b9050806007600082825401925050819055506000612ce182846040015161324890919063ffffffff16565b905060405180608001604052808960ff1681526020018860ff16815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681525060098b8b6040518083838082843780830192505050925050509081526020016040518091039020600086815260200190815260200160002060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff1602179055506040820151816001015560608201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555090505080600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550838a8a60405180838380828437808301925050509250505060405180910390207fb01cffff9e04206cad9b131ca4994667dcc45d82c28b10cf9103211e419945b483338760600151604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a3838a8a60405180838380828437808301925050509250505060405180910390207fafb35052ca6f2ef1a465d5725c888563a795ee382e848737b9ceace34759ba4f338660600151604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a350505050505050505050565b600b6020528060005260406000206000915090505481565b60085481565b60006001600860008282540192505081905550600854905090565b600033905090565b612fd78160008085815260200190815260200160002060000161334990919063ffffffff16565b1561303f57612fe4612fa8565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61306a8160008085815260200190815260200160002060000161337990919063ffffffff16565b156130d257613077612fa8565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600060405160200180807f312e3100000000000000000000000000000000000000000000000000000000008152506003019050604051602081830303815290604052805190602001208383604051602001808383808284378083019250505092505050604051602081830303815290604052805190602001201461317c57600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166131a0565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff165b905092915050565b60008160ff166003548460ff160201905092915050565b6000808211613236576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b81838161323f57fe5b04905092915050565b6000828211156132c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b60006132d6306133a9565b15905090565b6132e68282612fb0565b5050565b60006132f983600001836133bc565b60001c905092915050565b600061332c836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61343f565b905092915050565b600061334282600001613462565b9050919050565b6000613371836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613473565b905092915050565b60006133a1836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6134e3565b905092915050565b600080823b905060008111915050919050565b60008183600001805490501161341d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806136776022913960400191505060405180910390fd5b82600001828154811061342c57fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b600061347f838361343f565b6134d85782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506134dd565b600090505b92915050565b600080836001016000848152602001908152602001600020549050600081146135bf576000600182039050600060018660000180549050039050600086600001828154811061352e57fe5b906000526020600020015490508087600001848154811061354b57fe5b906000526020600020018190555060018301876001016000838152602001908152602001600020819055508660000180548061358357fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506135c5565b60009150505b92915050565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826136015760008555613648565b82601f1061361a57805160ff1916838001178555613648565b82800160010185558215613648579182015b8281111561364757825182559160200191906001019061362c565b5b5090506136559190613659565b5090565b5b8082111561367257600081600090555060010161365a565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744143434550545f4249443a3a4f6e6c79206f776e65722063616e206163636570742062696457495448445241575f4249443a3a4f6e6c79206269646465722063616e2077697468647261772068697320626964416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a65644143434550545f4249443a3a42696420494420736f6d65686f77206368616e6765643f4143434550545f4249443a3a4d696e207072696365206e6f7420726573706563746564416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212208296ba39e841607353d69bfd0d30afb2e38423563774047423034cc242d104d664736f6c63430007060033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,142.56 | 3.0612 | $9,620.01 |
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.