Source Code
Latest 25 from a total of 337 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Purchase Through... | 14041595 | 1489 days ago | IN | 0 ETH | 0.00626184 | ||||
| Purchase | 13785679 | 1529 days ago | IN | 0.75 ETH | 0.01597816 | ||||
| Purchase | 13785646 | 1529 days ago | IN | 0.75 ETH | 0.01763533 | ||||
| Purchase | 13785608 | 1529 days ago | IN | 0.75 ETH | 0.02059514 | ||||
| Purchase | 13785388 | 1529 days ago | IN | 0.75 ETH | 0.01636138 | ||||
| Purchase | 13785139 | 1529 days ago | IN | 0.75 ETH | 0.02310844 | ||||
| Purchase | 13785117 | 1529 days ago | IN | 0.75 ETH | 0.1021724 | ||||
| Purchase | 13785101 | 1529 days ago | IN | 0.75 ETH | 0.02912648 | ||||
| Purchase | 13785067 | 1529 days ago | IN | 0.75 ETH | 0.03573569 | ||||
| Purchase | 13785066 | 1529 days ago | IN | 0.75 ETH | 0.03587908 | ||||
| Purchase | 13785065 | 1529 days ago | IN | 0.75 ETH | 0.03887065 | ||||
| Purchase | 13785064 | 1529 days ago | IN | 0.75 ETH | 0.03810581 | ||||
| Purchase | 13785064 | 1529 days ago | IN | 0.75 ETH | 0.03823352 | ||||
| Purchase | 13785062 | 1529 days ago | IN | 0.75 ETH | 0.03861456 | ||||
| Flip Sale State | 13785052 | 1529 days ago | IN | 0 ETH | 0.00850278 | ||||
| Create Sale | 13785049 | 1529 days ago | IN | 0 ETH | 0.00697268 | ||||
| Purchase Through... | 13779222 | 1530 days ago | IN | 0.75 ETH | 0.01679831 | ||||
| Purchase Through... | 13777942 | 1530 days ago | IN | 0.75 ETH | 0.01183642 | ||||
| Purchase Through... | 13773561 | 1531 days ago | IN | 0.75 ETH | 0.02209738 | ||||
| Purchase Through... | 13773513 | 1531 days ago | IN | 0.75 ETH | 0.01687054 | ||||
| Purchase Through... | 13773397 | 1531 days ago | IN | 0.75 ETH | 0.01995375 | ||||
| Purchase Through... | 13773299 | 1531 days ago | IN | 0.75 ETH | 0.01872735 | ||||
| Purchase Through... | 13772805 | 1531 days ago | IN | 0.75 ETH | 0.01559824 | ||||
| Purchase | 13772727 | 1531 days ago | IN | 0.675 ETH | 0.01577909 | ||||
| Purchase Through... | 13772693 | 1531 days ago | IN | 0.75 ETH | 0.02264274 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 13785758 | 1529 days ago | 57.75 ETH | ||||
| - | 13785679 | 1529 days ago | 0.15 ETH | ||||
| - | 13785679 | 1529 days ago | 0.6 ETH | ||||
| - | 13785646 | 1529 days ago | 0.15 ETH | ||||
| - | 13785646 | 1529 days ago | 0.6 ETH | ||||
| - | 13785608 | 1529 days ago | 0.15 ETH | ||||
| - | 13785608 | 1529 days ago | 0.6 ETH | ||||
| - | 13785388 | 1529 days ago | 0.15 ETH | ||||
| - | 13785388 | 1529 days ago | 0.6 ETH | ||||
| - | 13785139 | 1529 days ago | 0.15 ETH | ||||
| - | 13785139 | 1529 days ago | 0.6 ETH | ||||
| - | 13785117 | 1529 days ago | 0.15 ETH | ||||
| - | 13785117 | 1529 days ago | 0.6 ETH | ||||
| - | 13785101 | 1529 days ago | 0.15 ETH | ||||
| - | 13785101 | 1529 days ago | 0.6 ETH | ||||
| - | 13785067 | 1529 days ago | 0.15 ETH | ||||
| - | 13785067 | 1529 days ago | 0.6 ETH | ||||
| - | 13785066 | 1529 days ago | 0.15 ETH | ||||
| - | 13785066 | 1529 days ago | 0.6 ETH | ||||
| - | 13785065 | 1529 days ago | 0.15 ETH | ||||
| - | 13785065 | 1529 days ago | 0.6 ETH | ||||
| - | 13785064 | 1529 days ago | 0.15 ETH | ||||
| - | 13785064 | 1529 days ago | 0.6 ETH | ||||
| - | 13785064 | 1529 days ago | 0.15 ETH | ||||
| - | 13785064 | 1529 days ago | 0.6 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
SalePlatform
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./interfaces/IQuantumArt.sol";
import "./interfaces/IQuantumMintPass.sol";
import "./ContinuousDutchAuction.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/structs/BitMaps.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
contract SalePlatform is ContinuousDutchAuction, ReentrancyGuard {
using BitMaps for BitMaps.BitMap;
using Strings for uint256;
struct Sale {
uint128 price;
uint128 limit;
bool active;
}
struct MPClaim {
uint128 mpId;
uint128 price;
bool active;
}
struct Whitelist {
uint256 price;
bytes32 merkleRoot;
bool active;
}
event Purchased(uint256 indexed dropId, uint256 tokenId, address to);
//mapping dropId => struct
mapping (uint256 => Sale) public sales;
mapping (uint256 => MPClaim) public mpClaims;
mapping (uint256 => Whitelist) public whitelists;
mapping (uint256 => BitMaps.BitMap) private _claimedWL;
mapping (address => BitMaps.BitMap) private _alreadyBought;
uint256 public defaultArtistCut; //10000 * percentage
IQuantumArt public quantum;
IQuantumMintPass public mintpass;
mapping (uint256 => uint256) private _overridedArtistCut; // dropId -> cut
address payable private _quantumTreasury;
constructor(
address deployedQuantum,
address deployedMP,
address admin,
address payable treasury) {
quantum = IQuantumArt(deployedQuantum);
mintpass = IQuantumMintPass(deployedMP);
_setupRole(DEFAULT_ADMIN_ROLE, admin);
_quantumTreasury = treasury;
defaultArtistCut = 8000; //default 80% for artist
}
modifier checkCaller {
require(!Address.isContract(msg.sender), "Contract forbidden from buying");
_;
}
modifier isFirstTime(uint256 dropId) {
require(!_alreadyBought[msg.sender].get(dropId), string(abi.encodePacked("Already bought drop ", dropId.toString())));
_alreadyBought[msg.sender].set(dropId);
_;
}
function withdraw(address payable to) onlyRole(DEFAULT_ADMIN_ROLE) public {
Address.sendValue(to, address(this).balance);
}
function setManager(address manager) onlyRole(DEFAULT_ADMIN_ROLE) public {
grantRole(MANAGER_ROLE, manager);
}
function unsetManager(address manager) onlyRole(DEFAULT_ADMIN_ROLE) public {
revokeRole(MANAGER_ROLE, manager);
}
function premint(uint256 dropId, address[] calldata recipients) onlyRole(DEFAULT_ADMIN_ROLE) public {
for(uint256 i = 0; i < recipients.length; i++) {
uint256 tokenId = quantum.mintTo(dropId, recipients[i]);
emit Purchased(dropId, tokenId, recipients[i]);
}
}
function setMintpass(address deployedMP) onlyRole(MANAGER_ROLE) public {
mintpass = IQuantumMintPass(deployedMP);
}
function createSale(uint256 dropId, uint128 price, uint128 limit) onlyRole(MANAGER_ROLE) public {
sales[dropId] = Sale({price:price, limit:limit, active:false});
}
function createMPClaim(uint256 dropId, uint128 mpId, uint128 price) onlyRole(MANAGER_ROLE) public {
mpClaims[dropId] = MPClaim({mpId:mpId, price:price, active:false});
}
function createWLClaim(uint256 dropId, uint256 price, bytes32 root) onlyRole(MANAGER_ROLE) public {
whitelists[dropId] = Whitelist(price, root, false);
}
function setDefaultArtistCut(uint256 cut) onlyRole(MANAGER_ROLE) public {
defaultArtistCut = cut;
}
function flipSaleState(uint256 dropId) onlyRole(MANAGER_ROLE) public {
sales[dropId].active = !sales[dropId].active;
}
function flipMPClaimState(uint256 dropId) onlyRole(MANAGER_ROLE) public {
mpClaims[dropId].active = !mpClaims[dropId].active;
}
function flipWLState(uint256 dropId) onlyRole(MANAGER_ROLE) public {
whitelists[dropId].active = !whitelists[dropId].active;
}
function overrideArtistcut(uint256 dropId, uint256 cut) onlyRole(MANAGER_ROLE) public {
_overridedArtistCut[dropId] = cut;
}
function payout(address artist, uint256 dropId, uint256 amount) internal {
uint256 artistCut = _overridedArtistCut[dropId] == 0 ? defaultArtistCut : _overridedArtistCut[dropId];
uint256 payout_ = (amount*artistCut)/10000;
Address.sendValue(payable(artist), payout_);
Address.sendValue(_quantumTreasury, amount - payout_);
}
function purchase(uint256 dropId, uint256 amount) nonReentrant checkCaller isFirstTime(dropId) payable public {
Sale memory sale = sales[dropId];
require(sale.active, "PURCHASE:SALE INACTIVE");
require(amount <= sale.limit, "PURCHASE:OVER LIMIT");
require(msg.value == amount * sale.price, "PURCHASE:INCORRECT MSG.VALUE");
for(uint256 i = 0; i < amount; i++) {
uint256 tokenId = quantum.mintTo(dropId, msg.sender);
emit Purchased(dropId, tokenId, msg.sender);
}
payout(quantum.getArtist(dropId), dropId, msg.value);
}
function purchaseThroughAuction(uint256 dropId) nonReentrant checkCaller isFirstTime(dropId) payable public {
//we use dropId as the auctionId -> one auction per drop only
uint256 userPaid = verifyBid(dropId);
uint256 tokenId = quantum.mintTo(dropId, msg.sender);
emit Purchased(dropId, tokenId, msg.sender);
payout(quantum.getArtist(dropId), dropId, userPaid);
}
function claimWithMintPass(uint256 dropId, uint256 amount) nonReentrant payable public {
MPClaim memory mpClaim = mpClaims[dropId];
require(mpClaim.active, "MP: CLAIMING INACTIVE");
require(msg.value == amount * mpClaim.price, "MP:WRONG MSG.VALUE");
mintpass.burnFromRedeem(msg.sender, mpClaim.mpId, amount); //burn mintpasses
for(uint256 i = 0; i < amount; i++) {
uint256 tokenId = quantum.mintTo(dropId, msg.sender);
emit Purchased(dropId, tokenId, msg.sender);
}
if (msg.value > 0) payout(quantum.getArtist(dropId), dropId, msg.value);
}
function purchaseThroughWhitelist(uint256 dropId, uint256 amount, uint256 index, bytes32[] calldata merkleProof) nonReentrant external payable {
Whitelist storage whitelist = whitelists[dropId];
require(whitelist.active, "WL:INACTIVE");
require(msg.value == whitelist.price * amount, "WL: INVALID MSG.VALUE");
require(!_claimedWL[dropId].get(index), "WL:ALREADY CLAIMED");
bytes32 node = keccak256(abi.encodePacked(msg.sender, amount, index));
require(MerkleProof.verify(merkleProof, whitelist.merkleRoot, node),"WL:INVALID PROOF");
_claimedWL[dropId].set(index);
uint256 tokenId = quantum.mintTo(dropId, msg.sender);
emit Purchased(dropId, tokenId, msg.sender);
}
function isWLClaimed(uint256 dropId, uint256 index) public view returns (bool) {
return _claimedWL[dropId].get(index);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev These functions deal with verification of Merkle Trees proofs.
*
* The proofs can be generated using the JavaScript library
* https://github.com/miguelmota/merkletreejs[merkletreejs].
* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
*
* See `test/utils/cryptography/MerkleProof.test.js` for some examples.
*/
library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*/
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash <= proofElement) {
// Hash(current computed hash + current element of the proof)
computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
} else {
// Hash(current element of the proof + current computed hash)
computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
}
}
// Check if the computed hash (root) is equal to the provided root
return computedHash == root;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
* Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
*/
library BitMaps {
struct BitMap {
mapping(uint256 => uint256) _data;
}
/**
* @dev Returns whether the bit at `index` is set.
*/
function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
uint256 bucket = index >> 8;
uint256 mask = 1 << (index & 0xff);
return bitmap._data[bucket] & mask != 0;
}
/**
* @dev Sets the bit at `index` to the boolean `value`.
*/
function setTo(
BitMap storage bitmap,
uint256 index,
bool value
) internal {
if (value) {
set(bitmap, index);
} else {
unset(bitmap, index);
}
}
/**
* @dev Sets the bit at `index`.
*/
function set(BitMap storage bitmap, uint256 index) internal {
uint256 bucket = index >> 8;
uint256 mask = 1 << (index & 0xff);
bitmap._data[bucket] |= mask;
}
/**
* @dev Unsets the bit at `index`.
*/
function unset(BitMap storage bitmap, uint256 index) internal {
uint256 bucket = index >> 8;
uint256 mask = 1 << (index & 0xff);
bitmap._data[bucket] &= ~mask;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and make it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Manageable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
abstract contract ContinuousDutchAuction is Manageable {
struct Auction {
uint128 startingPrice;
uint64 decreasingConstant;
uint32 startingBlock;
uint32 period; //period (in blocks) during which price will decrease
}
mapping (uint => Auction) private _auctions;
function auctions(uint256 auctionId) public view returns (
uint128 startingPrice,
uint64 decreasingConstant,
uint32 startingBlock,
uint32 period,
bool active
) {
Auction memory auction = _auctions[auctionId];
startingPrice = auction.startingPrice;
decreasingConstant = auction.decreasingConstant;
startingBlock = auction.startingBlock;
period = auction.period;
active = block.number >= startingBlock;
}
function setAuction(
uint256 auctionId,
uint128 startingPrice,
uint64 decreasingConstant,
uint32 startingBlock,
uint32 period
) virtual public onlyRole(MANAGER_ROLE) {
unchecked {
require(startingPrice - decreasingConstant * period <= startingPrice, "setAuction: floor price underflow");
}
_auctions[auctionId] = Auction(startingPrice, decreasingConstant, startingBlock, period);
}
function getPrice(uint256 auctionId) virtual public view returns (uint256 price) {
Auction memory auction = _auctions[auctionId];
//only compute correct price if necessary
if (block.number < auction.startingBlock) price = auction.startingPrice;
else if (block.number >= auction.startingBlock + auction.period) price = auction.startingPrice - auction.period * auction.decreasingConstant;
else price = auction.startingPrice - (auction.decreasingConstant * (block.number - auction.startingBlock));
}
function verifyBid(uint256 auctionId) internal returns (uint256) {
Auction memory auction = _auctions[auctionId];
require(auction.startingBlock > 0, "AUCTION:NOT CREATED");
require(block.number >= auction.startingBlock, "PURCHASE:AUCTION NOT STARTED");
uint256 pricePaid = getPrice(auctionId);
require(msg.value >= pricePaid, "PURCHASE:INCORRECT MSG.VALUE");
if (msg.value - pricePaid > 0) Address.sendValue(payable(msg.sender), msg.value-pricePaid); //refund difference
return pricePaid;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IQuantumMintPass {
function burnFromRedeem(address user, uint256 mpId, uint256 amount) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IQuantumArt {
function mintTo(uint256 dropId, address artist) external returns (uint256);
function burn(uint256 tokenId) external;
function getArtist(uint256 dropId) external view returns (address);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
abstract contract Manageable is AccessControlEnumerable {
bytes32 public constant MANAGER_ROLE = keccak256("MANAGER_ROLE");
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";
/**
* @dev Extension of {AccessControl} that allows enumerating the members of each role.
*/
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
using EnumerableSet for EnumerableSet.AddressSet;
mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @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 override returns (address) {
return _roleMembers[role].at(index);
}
/**
* @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 override returns (uint256) {
return _roleMembers[role].length();
}
/**
* @dev Overload {grantRole} to track enumerable memberships
*/
function grantRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) {
super.grantRole(role, account);
_roleMembers[role].add(account);
}
/**
* @dev Overload {revokeRole} to track enumerable memberships
*/
function revokeRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) {
super.revokeRole(role, account);
_roleMembers[role].remove(account);
}
/**
* @dev Overload {renounceRole} to track enumerable memberships
*/
function renounceRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) {
super.renounceRole(role, account);
_roleMembers[role].remove(account);
}
/**
* @dev Overload {_setupRole} to track enumerable memberships
*/
function _setupRole(bytes32 role, address account) internal virtual override {
super._setupRole(role, account);
_roleMembers[role].add(account);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^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;
if (lastIndex != toDeleteIndex) {
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] = valueIndex; // Replace lastvalue's index to valueIndex
}
// 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) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// 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);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
return _values(set._inner);
}
// 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))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
assembly {
result := store
}
return result;
}
// 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));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
assembly {
result := store
}
return result;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address => bool) members;
bytes32 adminRole;
}
mapping(bytes32 => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with a standardized message including the required role.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*
* _Available since v4.1._
*/
modifier onlyRole(bytes32 role) {
_checkRole(role, _msgSender());
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view override returns (bool) {
return _roles[role].members[account];
}
/**
* @dev Revert with a standard message if `account` is missing `role`.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*/
function _checkRole(bytes32 role, address account) internal view {
if (!hasRole(role, account)) {
revert(
string(
abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(uint160(account), 20),
" is missing role ",
Strings.toHexString(uint256(role), 32)
)
)
);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) public virtual override {
require(account == _msgSender(), "AccessControl: can only renounce roles for self");
_revokeRole(role, account);
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event. Note that unlike {grantRole}, this function doesn't perform any
* checks on the calling account.
*
* [WARNING]
* ====
* This function should only be called from the constructor when setting
* up the initial roles for the system.
*
* Using this function in any other way is effectively circumventing the admin
* system imposed by {AccessControl}.
* ====
*/
function _setupRole(bytes32 role, address account) internal virtual {
_grantRole(role, account);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
function _grantRole(bytes32 role, address account) private {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
function _revokeRole(bytes32 role, address account) private {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IAccessControl.sol";
/**
* @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
*/
interface IAccessControlEnumerable is IAccessControl {
/**
* @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) external view returns (address);
/**
* @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) external view returns (uint256);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1._
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"deployedQuantum","type":"address"},{"internalType":"address","name":"deployedMP","type":"address"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"address payable","name":"treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"dropId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"Purchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"}],"name":"auctions","outputs":[{"internalType":"uint128","name":"startingPrice","type":"uint128"},{"internalType":"uint64","name":"decreasingConstant","type":"uint64"},{"internalType":"uint32","name":"startingBlock","type":"uint32"},{"internalType":"uint32","name":"period","type":"uint32"},{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimWithMintPass","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"uint128","name":"mpId","type":"uint128"},{"internalType":"uint128","name":"price","type":"uint128"}],"name":"createMPClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"uint128","name":"price","type":"uint128"},{"internalType":"uint128","name":"limit","type":"uint128"}],"name":"createSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"createWLClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultArtistCut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"}],"name":"flipMPClaimState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"}],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"}],"name":"flipWLState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"price","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"isWLClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintpass","outputs":[{"internalType":"contract IQuantumMintPass","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mpClaims","outputs":[{"internalType":"uint128","name":"mpId","type":"uint128"},{"internalType":"uint128","name":"price","type":"uint128"},{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"uint256","name":"cut","type":"uint256"}],"name":"overrideArtistcut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"premint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"}],"name":"purchaseThroughAuction","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"purchaseThroughWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"quantum","outputs":[{"internalType":"contract IQuantumArt","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"sales","outputs":[{"internalType":"uint128","name":"price","type":"uint128"},{"internalType":"uint128","name":"limit","type":"uint128"},{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"},{"internalType":"uint128","name":"startingPrice","type":"uint128"},{"internalType":"uint64","name":"decreasingConstant","type":"uint64"},{"internalType":"uint32","name":"startingBlock","type":"uint32"},{"internalType":"uint32","name":"period","type":"uint32"}],"name":"setAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cut","type":"uint256"}],"name":"setDefaultArtistCut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"manager","type":"address"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"deployedMP","type":"address"}],"name":"setMintpass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"manager","type":"address"}],"name":"unsetManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelists","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b5060405162005618380380620056188339818101604052810190620000379190620003ee565b600160038190555083600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620000d66000801b836200012a60201b60201c565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611f4060098190555050505050620004d6565b6200014182826200017260201b6200297e1760201c565b6200016d81600160008581526020019081526020016000206200018860201b6200298c1790919060201c565b505050565b620001848282620001c060201b60201c565b5050565b6000620001b8836000018373ffffffffffffffffffffffffffffffffffffffff1660001b620002b160201b60201c565b905092915050565b620001d282826200032b60201b60201c565b620002ad57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620002526200039560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000620002c583836200039d60201b60201c565b6200032057826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905062000325565b600090505b92915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b600080836001016000848152602001908152602001600020541415905092915050565b600081519050620003d181620004a2565b92915050565b600081519050620003e881620004bc565b92915050565b600080600080608085870312156200040557600080fd5b60006200041587828801620003c0565b94505060206200042887828801620003c0565b93505060406200043b87828801620003c0565b92505060606200044e87828801620003d7565b91505092959194509250565b6000620004678262000482565b9050919050565b60006200047b8262000482565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b620004ad816200045a565b8114620004b957600080fd5b50565b620004c7816200046e565b8114620004d357600080fd5b50565b61513280620004e66000396000f3fe60806040526004361061021a5760003560e01c80639010d07c11610123578063cac7bd1d116100ab578063e581dedb1161006f578063e581dedb146107dc578063e757223014610805578063ec87621c14610842578063f0cfbe591461086d578063fe4d5add146108895761021a565b8063cac7bd1d14610706578063d0ebdbe71461072f578063d547741f14610758578063d573b32714610781578063dcb9d8731461079d5761021a565b8063a217fddf116100f2578063a217fddf1461060d578063aa93e3e014610638578063b5f522f714610661578063c3634193146106a0578063ca15c873146106c95761021a565b80639010d07c1461053d57806391d148541461057a5780639aa395f4146105b75780639be59f32146105e25761021a565b8063313112ce116101a657806351cff8d91161017557806351cff8d914610463578063571a26a01461048c5780635cdfc560146104cd57806370876c98146104f65780638c43247b146105125761021a565b8063313112ce146103ab57806336568abe146103d457806344ab32b1146103fd578063464862cb146104265761021a565b8063248a9ca3116101ed578063248a9ca3146102ca57806329b0de1e146103075780632a23aa69146103305780632f2ff15d146103595780633023a52c146103825761021a565b806301ffc9a71461021f5780630bbe32221461025c57806322b8854b14610285578063241e28f8146102ae575b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190613ce4565b6108c8565b60405161025391906147c5565b60405180910390f35b34801561026857600080fd5b50610283600480360381019061027e9190613e06565b610942565b005b34801561029157600080fd5b506102ac60048036038101906102a79190613e7d565b610b12565b005b6102c860048036038101906102c39190613f08565b610b61565b005b3480156102d657600080fd5b506102f160048036038101906102ec9190613c43565b610eaf565b6040516102fe91906147e0565b60405180910390f35b34801561031357600080fd5b5061032e60048036038101906103299190613bc8565b610ece565b005b34801561033c57600080fd5b5061035760048036038101906103529190613d0d565b610f11565b005b34801561036557600080fd5b50610380600480360381019061037b9190613c6c565b610f99565b005b34801561038e57600080fd5b506103a960048036038101906103a49190613eb9565b610fcd565b005b3480156103b757600080fd5b506103d260048036038101906103cd9190613d0d565b61106d565b005b3480156103e057600080fd5b506103fb60048036038101906103f69190613c6c565b6110f5565b005b34801561040957600080fd5b50610424600480360381019061041f9190613d0d565b611129565b005b34801561043257600080fd5b5061044d60048036038101906104489190613e7d565b611166565b60405161045a91906147c5565b60405180910390f35b34801561046f57600080fd5b5061048a60048036038101906104859190613c1a565b611195565b005b34801561049857600080fd5b506104b360048036038101906104ae9190613d0d565b6111b8565b6040516104c4959493929190614aca565b60405180910390f35b3480156104d957600080fd5b506104f460048036038101906104ef9190613d5f565b6112db565b005b610510600480360381019061050b9190613e7d565b6114a0565b005b34801561051e57600080fd5b506105276119e6565b6040516105349190614816565b60405180910390f35b34801561054957600080fd5b50610564600480360381019061055f9190613ca8565b611a0c565b6040516105719190614773565b60405180910390f35b34801561058657600080fd5b506105a1600480360381019061059c9190613c6c565b611a3b565b6040516105ae91906147c5565b60405180910390f35b3480156105c357600080fd5b506105cc611aa5565b6040516105d991906147fb565b60405180910390f35b3480156105ee57600080fd5b506105f7611acb565b6040516106049190614b1d565b60405180910390f35b34801561061957600080fd5b50610622611ad1565b60405161062f91906147e0565b60405180910390f35b34801561064457600080fd5b5061065f600480360381019061065a9190613d0d565b611ad8565b005b34801561066d57600080fd5b5061068860048036038101906106839190613d0d565b611b60565b60405161069793929190614a93565b60405180910390f35b3480156106ac57600080fd5b506106c760048036038101906106c29190613bc8565b611bcf565b005b3480156106d557600080fd5b506106f060048036038101906106eb9190613c43565b611c46565b6040516106fd9190614b1d565b60405180910390f35b34801561071257600080fd5b5061072d60048036038101906107289190613db7565b611c6a565b005b34801561073b57600080fd5b5061075660048036038101906107519190613bc8565b611d98565b005b34801561076457600080fd5b5061077f600480360381019061077a9190613c6c565b611ddb565b005b61079b60048036038101906107969190613d0d565b611e0f565b005b3480156107a957600080fd5b506107c460048036038101906107bf9190613d0d565b612171565b6040516107d393929190614a93565b60405180910390f35b3480156107e857600080fd5b5061080360048036038101906107fe9190613db7565b6121e0565b005b34801561081157600080fd5b5061082c60048036038101906108279190613d0d565b61230e565b6040516108399190614b1d565b60405180910390f35b34801561084e57600080fd5b506108576124ef565b60405161086491906147e0565b60405180910390f35b61088760048036038101906108829190613e7d565b612513565b005b34801561089557600080fd5b506108b060048036038101906108ab9190613d0d565b612947565b6040516108bf93929190614b61565b60405180910390f35b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061093b575061093a826129bc565b5b9050919050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b086109748161096f612a36565b612a3e565b846fffffffffffffffffffffffffffffffff168263ffffffff16850267ffffffffffffffff1686036fffffffffffffffffffffffffffffffff1611156109ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e6906149f3565b60405180910390fd5b6040518060800160405280866fffffffffffffffffffffffffffffffff1681526020018567ffffffffffffffff1681526020018463ffffffff1681526020018363ffffffff168152506002600088815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160186101000a81548163ffffffff021916908363ffffffff160217905550606082015181600001601c6101000a81548163ffffffff021916908363ffffffff160217905550905050505050505050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610b4481610b3f612a36565b612a3e565b81600c600085815260200190815260200160002081905550505050565b60026003541415610ba7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9e90614a33565b60405180910390fd5b600260038190555060006006600087815260200190815260200160002090508060020160009054906101000a900460ff16610c17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0e90614893565b60405180910390fd5b848160000154610c279190614c8b565b3414610c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5f90614993565b60405180910390fd5b610c8d8460076000898152602001908152602001600020612adb90919063ffffffff16565b15610ccd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc490614a53565b60405180910390fd5b6000338686604051602001610ce493929190614699565b604051602081830303815290604052805190602001209050610d4c848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050836001015483612b17565b610d8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8290614973565b60405180910390fd5b610db085600760008a8152602001908152602001600020612bf390919063ffffffff16565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b723b34e89336040518363ffffffff1660e01b8152600401610e0f929190614b38565b602060405180830381600087803b158015610e2957600080fd5b505af1158015610e3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e619190613d36565b9050877f4de343637a1e04defe1bf819dc4022be666492089901cbff4e44eaf49bdabd808233604051610e95929190614b38565b60405180910390a250505060016003819055505050505050565b6000806000838152602001908152602001600020600101549050919050565b6000801b610ee381610ede612a36565b612a3e565b610f0d7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0883611ddb565b5050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610f4381610f3e612a36565b612a3e565b6005600083815260200190815260200160002060010160009054906101000a900460ff16156005600084815260200190815260200160002060010160006101000a81548160ff0219169083151502179055505050565b610fa38282612c31565b610fc8816001600085815260200190815260200160002061298c90919063ffffffff16565b505050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610fff81610ffa612a36565b612a3e565b60405180606001604052808481526020018381526020016000151581525060066000868152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548160ff02191690831515021790555090505050505050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0861109f8161109a612a36565b612a3e565b6004600083815260200190815260200160002060010160009054906101000a900460ff16156004600084815260200190815260200160002060010160006101000a81548160ff0219169083151502179055505050565b6110ff8282612c5a565b6111248160016000858152602001908152602001600020612cdd90919063ffffffff16565b505050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0861115b81611156612a36565b612a3e565b816009819055505050565b600061118d8260076000868152602001908152602001600020612adb90919063ffffffff16565b905092915050565b6000801b6111aa816111a5612a36565b612a3e565b6111b48247612d0d565b5050565b600080600080600080600260008881526020019081526020016000206040518060800160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160189054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200160008201601c9054906101000a900463ffffffff1663ffffffff1663ffffffff16815250509050806000015195508060200151945080604001519350806060015192508363ffffffff1643101591505091939590929450565b6000801b6112f0816112eb612a36565b612a3e565b60005b83839050811015611499576000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b723b34e87878786818110611378577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061138d9190613bc8565b6040518363ffffffff1660e01b81526004016113aa929190614b38565b602060405180830381600087803b1580156113c457600080fd5b505af11580156113d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113fc9190613d36565b9050857f4de343637a1e04defe1bf819dc4022be666492089901cbff4e44eaf49bdabd808287878681811061145a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061146f9190613bc8565b60405161147d929190614b38565b60405180910390a250808061149190614f16565b9150506112f3565b5050505050565b600260035414156114e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114dd90614a33565b60405180910390fd5b60026003819055506114f733612e01565b15611537576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152e90614a13565b60405180910390fd5b8161158981600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612adb90919063ffffffff16565b1561159382612e14565b6040516020016115a39190614717565b604051602081830303815290604052906115f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ea9190614831565b60405180910390fd5b5061164581600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612bf390919063ffffffff16565b6000600460008581526020019081526020016000206040518060600160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016001820160009054906101000a900460ff1615151515815250509050806040015161175a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175190614873565b60405180910390fd5b80602001516fffffffffffffffffffffffffffffffff168311156117b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117aa906148b3565b60405180910390fd5b80600001516fffffffffffffffffffffffffffffffff16836117d59190614c8b565b3414611816576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180d906148d3565b60405180910390fd5b60005b83811015611922576000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b723b34e87336040518363ffffffff1660e01b8152600401611880929190614b38565b602060405180830381600087803b15801561189a57600080fd5b505af11580156118ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d29190613d36565b9050857f4de343637a1e04defe1bf819dc4022be666492089901cbff4e44eaf49bdabd808233604051611906929190614b38565b60405180910390a250808061191a90614f16565b915050611819565b506119d8600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663811dd0e2866040518263ffffffff1660e01b81526004016119819190614b1d565b60206040518083038186803b15801561199957600080fd5b505afa1580156119ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d19190613bf1565b8534612fc1565b505060016003819055505050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000611a33826001600086815260200190815260200160002061306190919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60095481565b6000801b81565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08611b0a81611b05612a36565b612a3e565b6006600083815260200190815260200160002060020160009054906101000a900460ff16156006600084815260200190815260200160002060020160006101000a81548160ff0219169083151502179055505050565b60046020528060005260406000206000915090508060000160009054906101000a90046fffffffffffffffffffffffffffffffff16908060000160109054906101000a90046fffffffffffffffffffffffffffffffff16908060010160009054906101000a900460ff16905083565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08611c0181611bfc612a36565b612a3e565b81600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000611c636001600084815260200190815260200160002061307b565b9050919050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08611c9c81611c97612a36565b612a3e565b6040518060600160405280846fffffffffffffffffffffffffffffffff168152602001836fffffffffffffffffffffffffffffffff168152602001600015158152506004600086815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060408201518160010160006101000a81548160ff02191690831515021790555090505050505050565b6000801b611dad81611da8612a36565b612a3e565b611dd77f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0883610f99565b5050565b611de58282613090565b611e0a8160016000858152602001908152602001600020612cdd90919063ffffffff16565b505050565b60026003541415611e55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4c90614a33565b60405180910390fd5b6002600381905550611e6633612e01565b15611ea6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9d90614a13565b60405180910390fd5b80611ef881600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612adb90919063ffffffff16565b15611f0282612e14565b604051602001611f129190614717565b60405160208183030381529060405290611f62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f599190614831565b60405180910390fd5b50611fb481600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612bf390919063ffffffff16565b6000611fbf836130b9565b90506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b723b34e85336040518363ffffffff1660e01b8152600401612020929190614b38565b602060405180830381600087803b15801561203a57600080fd5b505af115801561204e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120729190613d36565b9050837f4de343637a1e04defe1bf819dc4022be666492089901cbff4e44eaf49bdabd8082336040516120a6929190614b38565b60405180910390a2612163600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663811dd0e2866040518263ffffffff1660e01b815260040161210c9190614b1d565b60206040518083038186803b15801561212457600080fd5b505afa158015612138573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061215c9190613bf1565b8584612fc1565b505050600160038190555050565b60056020528060005260406000206000915090508060000160009054906101000a90046fffffffffffffffffffffffffffffffff16908060000160109054906101000a90046fffffffffffffffffffffffffffffffff16908060010160009054906101000a900460ff16905083565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b086122128161220d612a36565b612a3e565b6040518060600160405280846fffffffffffffffffffffffffffffffff168152602001836fffffffffffffffffffffffffffffffff168152602001600015158152506005600086815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060408201518160010160006101000a81548160ff02191690831515021790555090505050505050565b600080600260008481526020019081526020016000206040518060800160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160189054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200160008201601c9054906101000a900463ffffffff1663ffffffff1663ffffffff16815250509050806040015163ffffffff164310156124295780600001516fffffffffffffffffffffffffffffffff1691506124e9565b8060600151816040015161243d9190614c20565b63ffffffff164310612495578060200151816060015163ffffffff166124639190614ce5565b67ffffffffffffffff16816000015161247c9190614d27565b6fffffffffffffffffffffffffffffffff1691506124e8565b806040015163ffffffff16436124ab9190614d5b565b816020015167ffffffffffffffff166124c49190614c8b565b81600001516fffffffffffffffffffffffffffffffff166124e59190614d5b565b91505b5b50919050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b60026003541415612559576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255090614a33565b60405180910390fd5b60026003819055506000600560008481526020019081526020016000206040518060600160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016001820160009054906101000a900460ff16151515158152505090508060400151612676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266d90614933565b60405180910390fd5b80602001516fffffffffffffffffffffffffffffffff16826126989190614c8b565b34146126d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d0906149d3565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633aeca210338360000151856040518463ffffffff1660e01b815260040161273c9392919061478e565b600060405180830381600087803b15801561275657600080fd5b505af115801561276a573d6000803e3d6000fd5b5050505060005b8281101561287a576000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b723b34e86336040518363ffffffff1660e01b81526004016127d8929190614b38565b602060405180830381600087803b1580156127f257600080fd5b505af1158015612806573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061282a9190613d36565b9050847f4de343637a1e04defe1bf819dc4022be666492089901cbff4e44eaf49bdabd80823360405161285e929190614b38565b60405180910390a250808061287290614f16565b915050612771565b50600034111561293a57612939600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663811dd0e2856040518263ffffffff1660e01b81526004016128e29190614b1d565b60206040518083038186803b1580156128fa57600080fd5b505afa15801561290e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129329190613bf1565b8434612fc1565b5b5060016003819055505050565b60066020528060005260406000206000915090508060000154908060010154908060020160009054906101000a900460ff16905083565b61298882826132c2565b5050565b60006129b4836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6133a2565b905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612a2f5750612a2e82613412565b5b9050919050565b600033905090565b612a488282611a3b565b612ad757612a6d8173ffffffffffffffffffffffffffffffffffffffff16601461347c565b612a7b8360001c602061347c565b604051602001612a8c929190614739565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ace9190614831565b60405180910390fd5b5050565b600080600883901c9050600060ff84166001901b9050600081866000016000858152602001908152602001600020541614159250505092915050565b60008082905060005b8551811015612be5576000868281518110612b64577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311612ba5578281604051602001612b889291906146d6565b604051602081830303815290604052805190602001209250612bd1565b8083604051602001612bb89291906146d6565b6040516020818303038152906040528051906020012092505b508080612bdd90614f16565b915050612b20565b508381149150509392505050565b6000600882901c9050600060ff83166001901b9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b612c3a82610eaf565b612c4b81612c46612a36565b612a3e565b612c5583836132c2565b505050565b612c62612a36565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612ccf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cc690614a73565b60405180910390fd5b612cd98282613776565b5050565b6000612d05836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613857565b905092915050565b80471015612d50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4790614913565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612d7690614702565b60006040518083038185875af1925050503d8060008114612db3576040519150601f19603f3d011682016040523d82523d6000602084013e612db8565b606091505b5050905080612dfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612df3906148f3565b60405180910390fd5b505050565b600080823b905060008111915050919050565b60606000821415612e5c576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612fbc565b600082905060005b60008214612e8e578080612e7790614f16565b915050600a82612e879190614c5a565b9150612e64565b60008167ffffffffffffffff811115612ed0577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612f025781602001600182028036833780820191505090505b5090505b60008514612fb557600182612f1b9190614d5b565b9150600a85612f2a9190614f97565b6030612f369190614bca565b60f81b818381518110612f72577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612fae9190614c5a565b9450612f06565b8093505050505b919050565b600080600c60008581526020019081526020016000205414612ff657600c600084815260200190815260200160002054612ffa565b6009545b90506000612710828461300d9190614c8b565b6130179190614c5a565b90506130238582612d0d565b61305a600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682856130559190614d5b565b612d0d565b5050505050565b600061307083600001836139dd565b60001c905092915050565b600061308982600001613a2e565b9050919050565b61309982610eaf565b6130aa816130a5612a36565b612a3e565b6130b48383613776565b505050565b600080600260008481526020019081526020016000206040518060800160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160189054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200160008201601c9054906101000a900463ffffffff1663ffffffff1663ffffffff168152505090506000816040015163ffffffff16116131f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131e8906149b3565b60405180910390fd5b806040015163ffffffff1643101561323e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161323590614953565b60405180910390fd5b60006132498461230e565b90508034101561328e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613285906148d3565b60405180910390fd5b6000813461329c9190614d5b565b11156132b8576132b73382346132b29190614d5b565b612d0d565b5b8092505050919050565b6132cc8282611a3b565b61339e57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550613343612a36565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006133ae8383613a3f565b61340757826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061340c565b600090505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60606000600283600261348f9190614c8b565b6134999190614bca565b67ffffffffffffffff8111156134d8577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561350a5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613568577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106135f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026136329190614c8b565b61363c9190614bca565b90505b6001811115613728577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106136a4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b8282815181106136e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061372190614eec565b905061363f565b506000841461376c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376390614853565b60405180910390fd5b8091505092915050565b6137808282611a3b565b1561385357600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506137f8612a36565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600080836001016000848152602001908152602001600020549050600081146139d15760006001826138899190614d5b565b90506000600186600001805490506138a19190614d5b565b905081811461395c5760008660000182815481106138e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110613932577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480613996577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506139d7565b60009150505b92915050565b6000826000018281548110613a1b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b600081359050613a7181615044565b92915050565b600081519050613a8681615044565b92915050565b600081359050613a9b8161505b565b92915050565b60008083601f840112613ab357600080fd5b8235905067ffffffffffffffff811115613acc57600080fd5b602083019150836020820283011115613ae457600080fd5b9250929050565b60008083601f840112613afd57600080fd5b8235905067ffffffffffffffff811115613b1657600080fd5b602083019150836020820283011115613b2e57600080fd5b9250929050565b600081359050613b4481615072565b92915050565b600081359050613b5981615089565b92915050565b600081359050613b6e816150a0565b92915050565b600081359050613b83816150b7565b92915050565b600081519050613b98816150b7565b92915050565b600081359050613bad816150ce565b92915050565b600081359050613bc2816150e5565b92915050565b600060208284031215613bda57600080fd5b6000613be884828501613a62565b91505092915050565b600060208284031215613c0357600080fd5b6000613c1184828501613a77565b91505092915050565b600060208284031215613c2c57600080fd5b6000613c3a84828501613a8c565b91505092915050565b600060208284031215613c5557600080fd5b6000613c6384828501613b35565b91505092915050565b60008060408385031215613c7f57600080fd5b6000613c8d85828601613b35565b9250506020613c9e85828601613a62565b9150509250929050565b60008060408385031215613cbb57600080fd5b6000613cc985828601613b35565b9250506020613cda85828601613b74565b9150509250929050565b600060208284031215613cf657600080fd5b6000613d0484828501613b4a565b91505092915050565b600060208284031215613d1f57600080fd5b6000613d2d84828501613b74565b91505092915050565b600060208284031215613d4857600080fd5b6000613d5684828501613b89565b91505092915050565b600080600060408486031215613d7457600080fd5b6000613d8286828701613b74565b935050602084013567ffffffffffffffff811115613d9f57600080fd5b613dab86828701613aa1565b92509250509250925092565b600080600060608486031215613dcc57600080fd5b6000613dda86828701613b74565b9350506020613deb86828701613b5f565b9250506040613dfc86828701613b5f565b9150509250925092565b600080600080600060a08688031215613e1e57600080fd5b6000613e2c88828901613b74565b9550506020613e3d88828901613b5f565b9450506040613e4e88828901613bb3565b9350506060613e5f88828901613b9e565b9250506080613e7088828901613b9e565b9150509295509295909350565b60008060408385031215613e9057600080fd5b6000613e9e85828601613b74565b9250506020613eaf85828601613b74565b9150509250929050565b600080600060608486031215613ece57600080fd5b6000613edc86828701613b74565b9350506020613eed86828701613b74565b9250506040613efe86828701613b35565b9150509250925092565b600080600080600060808688031215613f2057600080fd5b6000613f2e88828901613b74565b9550506020613f3f88828901613b74565b9450506040613f5088828901613b74565b935050606086013567ffffffffffffffff811115613f6d57600080fd5b613f7988828901613aeb565b92509250509295509295909350565b613f9181614d8f565b82525050565b613fa8613fa382614d8f565b614f5f565b82525050565b613fb781614db3565b82525050565b613fc681614dbf565b82525050565b613fdd613fd882614dbf565b614f71565b82525050565b613fec81614e5f565b82525050565b613ffb81614e83565b82525050565b600061400c82614b98565b6140168185614bae565b9350614026818560208601614eb9565b61402f81615026565b840191505092915050565b600061404582614b98565b61404f8185614bbf565b935061405f818560208601614eb9565b80840191505092915050565b6000614078602083614bae565b91507f537472696e67733a20686578206c656e67746820696e73756666696369656e746000830152602082019050919050565b60006140b8601683614bae565b91507f50555243484153453a53414c4520494e414354495645000000000000000000006000830152602082019050919050565b60006140f8600b83614bae565b91507f574c3a494e4143544956450000000000000000000000000000000000000000006000830152602082019050919050565b6000614138601383614bae565b91507f50555243484153453a4f564552204c494d4954000000000000000000000000006000830152602082019050919050565b6000614178601c83614bae565b91507f50555243484153453a494e434f5252454354204d53472e56414c5545000000006000830152602082019050919050565b60006141b8603a83614bae565b91507f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008301527f6563697069656e74206d617920686176652072657665727465640000000000006020830152604082019050919050565b600061421e601d83614bae565b91507f416464726573733a20696e73756666696369656e742062616c616e63650000006000830152602082019050919050565b600061425e601583614bae565b91507f4d503a20434c41494d494e4720494e41435449564500000000000000000000006000830152602082019050919050565b600061429e601c83614bae565b91507f50555243484153453a41554354494f4e204e4f542053544152544544000000006000830152602082019050919050565b60006142de601083614bae565b91507f574c3a494e56414c49442050524f4f46000000000000000000000000000000006000830152602082019050919050565b600061431e601583614bae565b91507f574c3a20494e56414c4944204d53472e56414c554500000000000000000000006000830152602082019050919050565b600061435e601383614bae565b91507f41554354494f4e3a4e4f542043524541544544000000000000000000000000006000830152602082019050919050565b600061439e601283614bae565b91507f4d503a57524f4e47204d53472e56414c554500000000000000000000000000006000830152602082019050919050565b60006143de600083614ba3565b9150600082019050919050565b60006143f8601483614bbf565b91507f416c726561647920626f756768742064726f70200000000000000000000000006000830152601482019050919050565b6000614438602183614bae565b91507f73657441756374696f6e3a20666c6f6f7220707269636520756e646572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061449e601783614bbf565b91507f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006000830152601782019050919050565b60006144de601e83614bae565b91507f436f6e747261637420666f7262696464656e2066726f6d20627579696e6700006000830152602082019050919050565b600061451e601f83614bae565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b600061455e601283614bae565b91507f574c3a414c524541445920434c41494d454400000000000000000000000000006000830152602082019050919050565b600061459e601183614bbf565b91507f206973206d697373696e6720726f6c65200000000000000000000000000000006000830152601182019050919050565b60006145de602f83614bae565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b61464081614df5565b82525050565b61464f81614ea7565b82525050565b61465e81614e31565b82525050565b61467561467082614e31565b614f8d565b82525050565b61468481614e3b565b82525050565b61469381614e4b565b82525050565b60006146a58286613f97565b6014820191506146b58285614664565b6020820191506146c58284614664565b602082019150819050949350505050565b60006146e28285613fcc565b6020820191506146f28284613fcc565b6020820191508190509392505050565b600061470d826143d1565b9150819050919050565b6000614722826143eb565b915061472e828461403a565b915081905092915050565b600061474482614491565b9150614750828561403a565b915061475b82614591565b9150614767828461403a565b91508190509392505050565b60006020820190506147886000830184613f88565b92915050565b60006060820190506147a36000830186613f88565b6147b06020830185614646565b6147bd6040830184614655565b949350505050565b60006020820190506147da6000830184613fae565b92915050565b60006020820190506147f56000830184613fbd565b92915050565b60006020820190506148106000830184613fe3565b92915050565b600060208201905061482b6000830184613ff2565b92915050565b6000602082019050818103600083015261484b8184614001565b905092915050565b6000602082019050818103600083015261486c8161406b565b9050919050565b6000602082019050818103600083015261488c816140ab565b9050919050565b600060208201905081810360008301526148ac816140eb565b9050919050565b600060208201905081810360008301526148cc8161412b565b9050919050565b600060208201905081810360008301526148ec8161416b565b9050919050565b6000602082019050818103600083015261490c816141ab565b9050919050565b6000602082019050818103600083015261492c81614211565b9050919050565b6000602082019050818103600083015261494c81614251565b9050919050565b6000602082019050818103600083015261496c81614291565b9050919050565b6000602082019050818103600083015261498c816142d1565b9050919050565b600060208201905081810360008301526149ac81614311565b9050919050565b600060208201905081810360008301526149cc81614351565b9050919050565b600060208201905081810360008301526149ec81614391565b9050919050565b60006020820190508181036000830152614a0c8161442b565b9050919050565b60006020820190508181036000830152614a2c816144d1565b9050919050565b60006020820190508181036000830152614a4c81614511565b9050919050565b60006020820190508181036000830152614a6c81614551565b9050919050565b60006020820190508181036000830152614a8c816145d1565b9050919050565b6000606082019050614aa86000830186614637565b614ab56020830185614637565b614ac26040830184613fae565b949350505050565b600060a082019050614adf6000830188614637565b614aec602083018761468a565b614af9604083018661467b565b614b06606083018561467b565b614b136080830184613fae565b9695505050505050565b6000602082019050614b326000830184614655565b92915050565b6000604082019050614b4d6000830185614655565b614b5a6020830184613f88565b9392505050565b6000606082019050614b766000830186614655565b614b836020830185613fbd565b614b906040830184613fae565b949350505050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614bd582614e31565b9150614be083614e31565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614c1557614c14614fc8565b5b828201905092915050565b6000614c2b82614e3b565b9150614c3683614e3b565b92508263ffffffff03821115614c4f57614c4e614fc8565b5b828201905092915050565b6000614c6582614e31565b9150614c7083614e31565b925082614c8057614c7f614ff7565b5b828204905092915050565b6000614c9682614e31565b9150614ca183614e31565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614cda57614cd9614fc8565b5b828202905092915050565b6000614cf082614e4b565b9150614cfb83614e4b565b92508167ffffffffffffffff0483118215151615614d1c57614d1b614fc8565b5b828202905092915050565b6000614d3282614df5565b9150614d3d83614df5565b925082821015614d5057614d4f614fc8565b5b828203905092915050565b6000614d6682614e31565b9150614d7183614e31565b925082821015614d8457614d83614fc8565b5b828203905092915050565b6000614d9a82614e11565b9050919050565b6000614dac82614e11565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b6000614e6a82614e71565b9050919050565b6000614e7c82614e11565b9050919050565b6000614e8e82614e95565b9050919050565b6000614ea082614e11565b9050919050565b6000614eb282614df5565b9050919050565b60005b83811015614ed7578082015181840152602081019050614ebc565b83811115614ee6576000848401525b50505050565b6000614ef782614e31565b91506000821415614f0b57614f0a614fc8565b5b600182039050919050565b6000614f2182614e31565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614f5457614f53614fc8565b5b600182019050919050565b6000614f6a82614f7b565b9050919050565b6000819050919050565b6000614f8682615037565b9050919050565b6000819050919050565b6000614fa282614e31565b9150614fad83614e31565b925082614fbd57614fbc614ff7565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b61504d81614d8f565b811461505857600080fd5b50565b61506481614da1565b811461506f57600080fd5b50565b61507b81614dbf565b811461508657600080fd5b50565b61509281614dc9565b811461509d57600080fd5b50565b6150a981614df5565b81146150b457600080fd5b50565b6150c081614e31565b81146150cb57600080fd5b50565b6150d781614e3b565b81146150e257600080fd5b50565b6150ee81614e4b565b81146150f957600080fd5b5056fea2646970667358221220ae7aab5cae1f11d87fdde30aa8075088a27738462eb88dc586f23177867613f564736f6c6343000800003300000000000000000000000046ac8540d698167fcbb9e846511beb8cf8af9bd80000000000000000000000002fea46fbccb5ee07c293fe500353579895abf7d0000000000000000000000000e0faf18f33c307ca812b80c771ad3c9e5f043fe9000000000000000000000000e0faf18f33c307ca812b80c771ad3c9e5f043fe9
Deployed Bytecode
0x60806040526004361061021a5760003560e01c80639010d07c11610123578063cac7bd1d116100ab578063e581dedb1161006f578063e581dedb146107dc578063e757223014610805578063ec87621c14610842578063f0cfbe591461086d578063fe4d5add146108895761021a565b8063cac7bd1d14610706578063d0ebdbe71461072f578063d547741f14610758578063d573b32714610781578063dcb9d8731461079d5761021a565b8063a217fddf116100f2578063a217fddf1461060d578063aa93e3e014610638578063b5f522f714610661578063c3634193146106a0578063ca15c873146106c95761021a565b80639010d07c1461053d57806391d148541461057a5780639aa395f4146105b75780639be59f32146105e25761021a565b8063313112ce116101a657806351cff8d91161017557806351cff8d914610463578063571a26a01461048c5780635cdfc560146104cd57806370876c98146104f65780638c43247b146105125761021a565b8063313112ce146103ab57806336568abe146103d457806344ab32b1146103fd578063464862cb146104265761021a565b8063248a9ca3116101ed578063248a9ca3146102ca57806329b0de1e146103075780632a23aa69146103305780632f2ff15d146103595780633023a52c146103825761021a565b806301ffc9a71461021f5780630bbe32221461025c57806322b8854b14610285578063241e28f8146102ae575b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190613ce4565b6108c8565b60405161025391906147c5565b60405180910390f35b34801561026857600080fd5b50610283600480360381019061027e9190613e06565b610942565b005b34801561029157600080fd5b506102ac60048036038101906102a79190613e7d565b610b12565b005b6102c860048036038101906102c39190613f08565b610b61565b005b3480156102d657600080fd5b506102f160048036038101906102ec9190613c43565b610eaf565b6040516102fe91906147e0565b60405180910390f35b34801561031357600080fd5b5061032e60048036038101906103299190613bc8565b610ece565b005b34801561033c57600080fd5b5061035760048036038101906103529190613d0d565b610f11565b005b34801561036557600080fd5b50610380600480360381019061037b9190613c6c565b610f99565b005b34801561038e57600080fd5b506103a960048036038101906103a49190613eb9565b610fcd565b005b3480156103b757600080fd5b506103d260048036038101906103cd9190613d0d565b61106d565b005b3480156103e057600080fd5b506103fb60048036038101906103f69190613c6c565b6110f5565b005b34801561040957600080fd5b50610424600480360381019061041f9190613d0d565b611129565b005b34801561043257600080fd5b5061044d60048036038101906104489190613e7d565b611166565b60405161045a91906147c5565b60405180910390f35b34801561046f57600080fd5b5061048a60048036038101906104859190613c1a565b611195565b005b34801561049857600080fd5b506104b360048036038101906104ae9190613d0d565b6111b8565b6040516104c4959493929190614aca565b60405180910390f35b3480156104d957600080fd5b506104f460048036038101906104ef9190613d5f565b6112db565b005b610510600480360381019061050b9190613e7d565b6114a0565b005b34801561051e57600080fd5b506105276119e6565b6040516105349190614816565b60405180910390f35b34801561054957600080fd5b50610564600480360381019061055f9190613ca8565b611a0c565b6040516105719190614773565b60405180910390f35b34801561058657600080fd5b506105a1600480360381019061059c9190613c6c565b611a3b565b6040516105ae91906147c5565b60405180910390f35b3480156105c357600080fd5b506105cc611aa5565b6040516105d991906147fb565b60405180910390f35b3480156105ee57600080fd5b506105f7611acb565b6040516106049190614b1d565b60405180910390f35b34801561061957600080fd5b50610622611ad1565b60405161062f91906147e0565b60405180910390f35b34801561064457600080fd5b5061065f600480360381019061065a9190613d0d565b611ad8565b005b34801561066d57600080fd5b5061068860048036038101906106839190613d0d565b611b60565b60405161069793929190614a93565b60405180910390f35b3480156106ac57600080fd5b506106c760048036038101906106c29190613bc8565b611bcf565b005b3480156106d557600080fd5b506106f060048036038101906106eb9190613c43565b611c46565b6040516106fd9190614b1d565b60405180910390f35b34801561071257600080fd5b5061072d60048036038101906107289190613db7565b611c6a565b005b34801561073b57600080fd5b5061075660048036038101906107519190613bc8565b611d98565b005b34801561076457600080fd5b5061077f600480360381019061077a9190613c6c565b611ddb565b005b61079b60048036038101906107969190613d0d565b611e0f565b005b3480156107a957600080fd5b506107c460048036038101906107bf9190613d0d565b612171565b6040516107d393929190614a93565b60405180910390f35b3480156107e857600080fd5b5061080360048036038101906107fe9190613db7565b6121e0565b005b34801561081157600080fd5b5061082c60048036038101906108279190613d0d565b61230e565b6040516108399190614b1d565b60405180910390f35b34801561084e57600080fd5b506108576124ef565b60405161086491906147e0565b60405180910390f35b61088760048036038101906108829190613e7d565b612513565b005b34801561089557600080fd5b506108b060048036038101906108ab9190613d0d565b612947565b6040516108bf93929190614b61565b60405180910390f35b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061093b575061093a826129bc565b5b9050919050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b086109748161096f612a36565b612a3e565b846fffffffffffffffffffffffffffffffff168263ffffffff16850267ffffffffffffffff1686036fffffffffffffffffffffffffffffffff1611156109ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e6906149f3565b60405180910390fd5b6040518060800160405280866fffffffffffffffffffffffffffffffff1681526020018567ffffffffffffffff1681526020018463ffffffff1681526020018363ffffffff168152506002600088815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160186101000a81548163ffffffff021916908363ffffffff160217905550606082015181600001601c6101000a81548163ffffffff021916908363ffffffff160217905550905050505050505050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610b4481610b3f612a36565b612a3e565b81600c600085815260200190815260200160002081905550505050565b60026003541415610ba7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9e90614a33565b60405180910390fd5b600260038190555060006006600087815260200190815260200160002090508060020160009054906101000a900460ff16610c17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0e90614893565b60405180910390fd5b848160000154610c279190614c8b565b3414610c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5f90614993565b60405180910390fd5b610c8d8460076000898152602001908152602001600020612adb90919063ffffffff16565b15610ccd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc490614a53565b60405180910390fd5b6000338686604051602001610ce493929190614699565b604051602081830303815290604052805190602001209050610d4c848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050836001015483612b17565b610d8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8290614973565b60405180910390fd5b610db085600760008a8152602001908152602001600020612bf390919063ffffffff16565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b723b34e89336040518363ffffffff1660e01b8152600401610e0f929190614b38565b602060405180830381600087803b158015610e2957600080fd5b505af1158015610e3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e619190613d36565b9050877f4de343637a1e04defe1bf819dc4022be666492089901cbff4e44eaf49bdabd808233604051610e95929190614b38565b60405180910390a250505060016003819055505050505050565b6000806000838152602001908152602001600020600101549050919050565b6000801b610ee381610ede612a36565b612a3e565b610f0d7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0883611ddb565b5050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610f4381610f3e612a36565b612a3e565b6005600083815260200190815260200160002060010160009054906101000a900460ff16156005600084815260200190815260200160002060010160006101000a81548160ff0219169083151502179055505050565b610fa38282612c31565b610fc8816001600085815260200190815260200160002061298c90919063ffffffff16565b505050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610fff81610ffa612a36565b612a3e565b60405180606001604052808481526020018381526020016000151581525060066000868152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548160ff02191690831515021790555090505050505050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0861109f8161109a612a36565b612a3e565b6004600083815260200190815260200160002060010160009054906101000a900460ff16156004600084815260200190815260200160002060010160006101000a81548160ff0219169083151502179055505050565b6110ff8282612c5a565b6111248160016000858152602001908152602001600020612cdd90919063ffffffff16565b505050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0861115b81611156612a36565b612a3e565b816009819055505050565b600061118d8260076000868152602001908152602001600020612adb90919063ffffffff16565b905092915050565b6000801b6111aa816111a5612a36565b612a3e565b6111b48247612d0d565b5050565b600080600080600080600260008881526020019081526020016000206040518060800160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160189054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200160008201601c9054906101000a900463ffffffff1663ffffffff1663ffffffff16815250509050806000015195508060200151945080604001519350806060015192508363ffffffff1643101591505091939590929450565b6000801b6112f0816112eb612a36565b612a3e565b60005b83839050811015611499576000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b723b34e87878786818110611378577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061138d9190613bc8565b6040518363ffffffff1660e01b81526004016113aa929190614b38565b602060405180830381600087803b1580156113c457600080fd5b505af11580156113d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113fc9190613d36565b9050857f4de343637a1e04defe1bf819dc4022be666492089901cbff4e44eaf49bdabd808287878681811061145a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061146f9190613bc8565b60405161147d929190614b38565b60405180910390a250808061149190614f16565b9150506112f3565b5050505050565b600260035414156114e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114dd90614a33565b60405180910390fd5b60026003819055506114f733612e01565b15611537576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152e90614a13565b60405180910390fd5b8161158981600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612adb90919063ffffffff16565b1561159382612e14565b6040516020016115a39190614717565b604051602081830303815290604052906115f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ea9190614831565b60405180910390fd5b5061164581600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612bf390919063ffffffff16565b6000600460008581526020019081526020016000206040518060600160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016001820160009054906101000a900460ff1615151515815250509050806040015161175a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175190614873565b60405180910390fd5b80602001516fffffffffffffffffffffffffffffffff168311156117b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117aa906148b3565b60405180910390fd5b80600001516fffffffffffffffffffffffffffffffff16836117d59190614c8b565b3414611816576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180d906148d3565b60405180910390fd5b60005b83811015611922576000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b723b34e87336040518363ffffffff1660e01b8152600401611880929190614b38565b602060405180830381600087803b15801561189a57600080fd5b505af11580156118ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d29190613d36565b9050857f4de343637a1e04defe1bf819dc4022be666492089901cbff4e44eaf49bdabd808233604051611906929190614b38565b60405180910390a250808061191a90614f16565b915050611819565b506119d8600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663811dd0e2866040518263ffffffff1660e01b81526004016119819190614b1d565b60206040518083038186803b15801561199957600080fd5b505afa1580156119ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d19190613bf1565b8534612fc1565b505060016003819055505050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000611a33826001600086815260200190815260200160002061306190919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60095481565b6000801b81565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08611b0a81611b05612a36565b612a3e565b6006600083815260200190815260200160002060020160009054906101000a900460ff16156006600084815260200190815260200160002060020160006101000a81548160ff0219169083151502179055505050565b60046020528060005260406000206000915090508060000160009054906101000a90046fffffffffffffffffffffffffffffffff16908060000160109054906101000a90046fffffffffffffffffffffffffffffffff16908060010160009054906101000a900460ff16905083565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08611c0181611bfc612a36565b612a3e565b81600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000611c636001600084815260200190815260200160002061307b565b9050919050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08611c9c81611c97612a36565b612a3e565b6040518060600160405280846fffffffffffffffffffffffffffffffff168152602001836fffffffffffffffffffffffffffffffff168152602001600015158152506004600086815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060408201518160010160006101000a81548160ff02191690831515021790555090505050505050565b6000801b611dad81611da8612a36565b612a3e565b611dd77f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0883610f99565b5050565b611de58282613090565b611e0a8160016000858152602001908152602001600020612cdd90919063ffffffff16565b505050565b60026003541415611e55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4c90614a33565b60405180910390fd5b6002600381905550611e6633612e01565b15611ea6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9d90614a13565b60405180910390fd5b80611ef881600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612adb90919063ffffffff16565b15611f0282612e14565b604051602001611f129190614717565b60405160208183030381529060405290611f62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f599190614831565b60405180910390fd5b50611fb481600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612bf390919063ffffffff16565b6000611fbf836130b9565b90506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b723b34e85336040518363ffffffff1660e01b8152600401612020929190614b38565b602060405180830381600087803b15801561203a57600080fd5b505af115801561204e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120729190613d36565b9050837f4de343637a1e04defe1bf819dc4022be666492089901cbff4e44eaf49bdabd8082336040516120a6929190614b38565b60405180910390a2612163600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663811dd0e2866040518263ffffffff1660e01b815260040161210c9190614b1d565b60206040518083038186803b15801561212457600080fd5b505afa158015612138573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061215c9190613bf1565b8584612fc1565b505050600160038190555050565b60056020528060005260406000206000915090508060000160009054906101000a90046fffffffffffffffffffffffffffffffff16908060000160109054906101000a90046fffffffffffffffffffffffffffffffff16908060010160009054906101000a900460ff16905083565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b086122128161220d612a36565b612a3e565b6040518060600160405280846fffffffffffffffffffffffffffffffff168152602001836fffffffffffffffffffffffffffffffff168152602001600015158152506005600086815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060408201518160010160006101000a81548160ff02191690831515021790555090505050505050565b600080600260008481526020019081526020016000206040518060800160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160189054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200160008201601c9054906101000a900463ffffffff1663ffffffff1663ffffffff16815250509050806040015163ffffffff164310156124295780600001516fffffffffffffffffffffffffffffffff1691506124e9565b8060600151816040015161243d9190614c20565b63ffffffff164310612495578060200151816060015163ffffffff166124639190614ce5565b67ffffffffffffffff16816000015161247c9190614d27565b6fffffffffffffffffffffffffffffffff1691506124e8565b806040015163ffffffff16436124ab9190614d5b565b816020015167ffffffffffffffff166124c49190614c8b565b81600001516fffffffffffffffffffffffffffffffff166124e59190614d5b565b91505b5b50919050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b60026003541415612559576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255090614a33565b60405180910390fd5b60026003819055506000600560008481526020019081526020016000206040518060600160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016001820160009054906101000a900460ff16151515158152505090508060400151612676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266d90614933565b60405180910390fd5b80602001516fffffffffffffffffffffffffffffffff16826126989190614c8b565b34146126d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d0906149d3565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633aeca210338360000151856040518463ffffffff1660e01b815260040161273c9392919061478e565b600060405180830381600087803b15801561275657600080fd5b505af115801561276a573d6000803e3d6000fd5b5050505060005b8281101561287a576000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b723b34e86336040518363ffffffff1660e01b81526004016127d8929190614b38565b602060405180830381600087803b1580156127f257600080fd5b505af1158015612806573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061282a9190613d36565b9050847f4de343637a1e04defe1bf819dc4022be666492089901cbff4e44eaf49bdabd80823360405161285e929190614b38565b60405180910390a250808061287290614f16565b915050612771565b50600034111561293a57612939600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663811dd0e2856040518263ffffffff1660e01b81526004016128e29190614b1d565b60206040518083038186803b1580156128fa57600080fd5b505afa15801561290e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129329190613bf1565b8434612fc1565b5b5060016003819055505050565b60066020528060005260406000206000915090508060000154908060010154908060020160009054906101000a900460ff16905083565b61298882826132c2565b5050565b60006129b4836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6133a2565b905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612a2f5750612a2e82613412565b5b9050919050565b600033905090565b612a488282611a3b565b612ad757612a6d8173ffffffffffffffffffffffffffffffffffffffff16601461347c565b612a7b8360001c602061347c565b604051602001612a8c929190614739565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ace9190614831565b60405180910390fd5b5050565b600080600883901c9050600060ff84166001901b9050600081866000016000858152602001908152602001600020541614159250505092915050565b60008082905060005b8551811015612be5576000868281518110612b64577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311612ba5578281604051602001612b889291906146d6565b604051602081830303815290604052805190602001209250612bd1565b8083604051602001612bb89291906146d6565b6040516020818303038152906040528051906020012092505b508080612bdd90614f16565b915050612b20565b508381149150509392505050565b6000600882901c9050600060ff83166001901b9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b612c3a82610eaf565b612c4b81612c46612a36565b612a3e565b612c5583836132c2565b505050565b612c62612a36565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612ccf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cc690614a73565b60405180910390fd5b612cd98282613776565b5050565b6000612d05836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613857565b905092915050565b80471015612d50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4790614913565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612d7690614702565b60006040518083038185875af1925050503d8060008114612db3576040519150601f19603f3d011682016040523d82523d6000602084013e612db8565b606091505b5050905080612dfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612df3906148f3565b60405180910390fd5b505050565b600080823b905060008111915050919050565b60606000821415612e5c576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612fbc565b600082905060005b60008214612e8e578080612e7790614f16565b915050600a82612e879190614c5a565b9150612e64565b60008167ffffffffffffffff811115612ed0577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612f025781602001600182028036833780820191505090505b5090505b60008514612fb557600182612f1b9190614d5b565b9150600a85612f2a9190614f97565b6030612f369190614bca565b60f81b818381518110612f72577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612fae9190614c5a565b9450612f06565b8093505050505b919050565b600080600c60008581526020019081526020016000205414612ff657600c600084815260200190815260200160002054612ffa565b6009545b90506000612710828461300d9190614c8b565b6130179190614c5a565b90506130238582612d0d565b61305a600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682856130559190614d5b565b612d0d565b5050505050565b600061307083600001836139dd565b60001c905092915050565b600061308982600001613a2e565b9050919050565b61309982610eaf565b6130aa816130a5612a36565b612a3e565b6130b48383613776565b505050565b600080600260008481526020019081526020016000206040518060800160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160189054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200160008201601c9054906101000a900463ffffffff1663ffffffff1663ffffffff168152505090506000816040015163ffffffff16116131f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131e8906149b3565b60405180910390fd5b806040015163ffffffff1643101561323e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161323590614953565b60405180910390fd5b60006132498461230e565b90508034101561328e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613285906148d3565b60405180910390fd5b6000813461329c9190614d5b565b11156132b8576132b73382346132b29190614d5b565b612d0d565b5b8092505050919050565b6132cc8282611a3b565b61339e57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550613343612a36565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006133ae8383613a3f565b61340757826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061340c565b600090505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60606000600283600261348f9190614c8b565b6134999190614bca565b67ffffffffffffffff8111156134d8577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561350a5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613568577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106135f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026136329190614c8b565b61363c9190614bca565b90505b6001811115613728577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106136a4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b8282815181106136e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061372190614eec565b905061363f565b506000841461376c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376390614853565b60405180910390fd5b8091505092915050565b6137808282611a3b565b1561385357600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506137f8612a36565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600080836001016000848152602001908152602001600020549050600081146139d15760006001826138899190614d5b565b90506000600186600001805490506138a19190614d5b565b905081811461395c5760008660000182815481106138e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110613932577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480613996577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506139d7565b60009150505b92915050565b6000826000018281548110613a1b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b600081359050613a7181615044565b92915050565b600081519050613a8681615044565b92915050565b600081359050613a9b8161505b565b92915050565b60008083601f840112613ab357600080fd5b8235905067ffffffffffffffff811115613acc57600080fd5b602083019150836020820283011115613ae457600080fd5b9250929050565b60008083601f840112613afd57600080fd5b8235905067ffffffffffffffff811115613b1657600080fd5b602083019150836020820283011115613b2e57600080fd5b9250929050565b600081359050613b4481615072565b92915050565b600081359050613b5981615089565b92915050565b600081359050613b6e816150a0565b92915050565b600081359050613b83816150b7565b92915050565b600081519050613b98816150b7565b92915050565b600081359050613bad816150ce565b92915050565b600081359050613bc2816150e5565b92915050565b600060208284031215613bda57600080fd5b6000613be884828501613a62565b91505092915050565b600060208284031215613c0357600080fd5b6000613c1184828501613a77565b91505092915050565b600060208284031215613c2c57600080fd5b6000613c3a84828501613a8c565b91505092915050565b600060208284031215613c5557600080fd5b6000613c6384828501613b35565b91505092915050565b60008060408385031215613c7f57600080fd5b6000613c8d85828601613b35565b9250506020613c9e85828601613a62565b9150509250929050565b60008060408385031215613cbb57600080fd5b6000613cc985828601613b35565b9250506020613cda85828601613b74565b9150509250929050565b600060208284031215613cf657600080fd5b6000613d0484828501613b4a565b91505092915050565b600060208284031215613d1f57600080fd5b6000613d2d84828501613b74565b91505092915050565b600060208284031215613d4857600080fd5b6000613d5684828501613b89565b91505092915050565b600080600060408486031215613d7457600080fd5b6000613d8286828701613b74565b935050602084013567ffffffffffffffff811115613d9f57600080fd5b613dab86828701613aa1565b92509250509250925092565b600080600060608486031215613dcc57600080fd5b6000613dda86828701613b74565b9350506020613deb86828701613b5f565b9250506040613dfc86828701613b5f565b9150509250925092565b600080600080600060a08688031215613e1e57600080fd5b6000613e2c88828901613b74565b9550506020613e3d88828901613b5f565b9450506040613e4e88828901613bb3565b9350506060613e5f88828901613b9e565b9250506080613e7088828901613b9e565b9150509295509295909350565b60008060408385031215613e9057600080fd5b6000613e9e85828601613b74565b9250506020613eaf85828601613b74565b9150509250929050565b600080600060608486031215613ece57600080fd5b6000613edc86828701613b74565b9350506020613eed86828701613b74565b9250506040613efe86828701613b35565b9150509250925092565b600080600080600060808688031215613f2057600080fd5b6000613f2e88828901613b74565b9550506020613f3f88828901613b74565b9450506040613f5088828901613b74565b935050606086013567ffffffffffffffff811115613f6d57600080fd5b613f7988828901613aeb565b92509250509295509295909350565b613f9181614d8f565b82525050565b613fa8613fa382614d8f565b614f5f565b82525050565b613fb781614db3565b82525050565b613fc681614dbf565b82525050565b613fdd613fd882614dbf565b614f71565b82525050565b613fec81614e5f565b82525050565b613ffb81614e83565b82525050565b600061400c82614b98565b6140168185614bae565b9350614026818560208601614eb9565b61402f81615026565b840191505092915050565b600061404582614b98565b61404f8185614bbf565b935061405f818560208601614eb9565b80840191505092915050565b6000614078602083614bae565b91507f537472696e67733a20686578206c656e67746820696e73756666696369656e746000830152602082019050919050565b60006140b8601683614bae565b91507f50555243484153453a53414c4520494e414354495645000000000000000000006000830152602082019050919050565b60006140f8600b83614bae565b91507f574c3a494e4143544956450000000000000000000000000000000000000000006000830152602082019050919050565b6000614138601383614bae565b91507f50555243484153453a4f564552204c494d4954000000000000000000000000006000830152602082019050919050565b6000614178601c83614bae565b91507f50555243484153453a494e434f5252454354204d53472e56414c5545000000006000830152602082019050919050565b60006141b8603a83614bae565b91507f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008301527f6563697069656e74206d617920686176652072657665727465640000000000006020830152604082019050919050565b600061421e601d83614bae565b91507f416464726573733a20696e73756666696369656e742062616c616e63650000006000830152602082019050919050565b600061425e601583614bae565b91507f4d503a20434c41494d494e4720494e41435449564500000000000000000000006000830152602082019050919050565b600061429e601c83614bae565b91507f50555243484153453a41554354494f4e204e4f542053544152544544000000006000830152602082019050919050565b60006142de601083614bae565b91507f574c3a494e56414c49442050524f4f46000000000000000000000000000000006000830152602082019050919050565b600061431e601583614bae565b91507f574c3a20494e56414c4944204d53472e56414c554500000000000000000000006000830152602082019050919050565b600061435e601383614bae565b91507f41554354494f4e3a4e4f542043524541544544000000000000000000000000006000830152602082019050919050565b600061439e601283614bae565b91507f4d503a57524f4e47204d53472e56414c554500000000000000000000000000006000830152602082019050919050565b60006143de600083614ba3565b9150600082019050919050565b60006143f8601483614bbf565b91507f416c726561647920626f756768742064726f70200000000000000000000000006000830152601482019050919050565b6000614438602183614bae565b91507f73657441756374696f6e3a20666c6f6f7220707269636520756e646572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061449e601783614bbf565b91507f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006000830152601782019050919050565b60006144de601e83614bae565b91507f436f6e747261637420666f7262696464656e2066726f6d20627579696e6700006000830152602082019050919050565b600061451e601f83614bae565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b600061455e601283614bae565b91507f574c3a414c524541445920434c41494d454400000000000000000000000000006000830152602082019050919050565b600061459e601183614bbf565b91507f206973206d697373696e6720726f6c65200000000000000000000000000000006000830152601182019050919050565b60006145de602f83614bae565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b61464081614df5565b82525050565b61464f81614ea7565b82525050565b61465e81614e31565b82525050565b61467561467082614e31565b614f8d565b82525050565b61468481614e3b565b82525050565b61469381614e4b565b82525050565b60006146a58286613f97565b6014820191506146b58285614664565b6020820191506146c58284614664565b602082019150819050949350505050565b60006146e28285613fcc565b6020820191506146f28284613fcc565b6020820191508190509392505050565b600061470d826143d1565b9150819050919050565b6000614722826143eb565b915061472e828461403a565b915081905092915050565b600061474482614491565b9150614750828561403a565b915061475b82614591565b9150614767828461403a565b91508190509392505050565b60006020820190506147886000830184613f88565b92915050565b60006060820190506147a36000830186613f88565b6147b06020830185614646565b6147bd6040830184614655565b949350505050565b60006020820190506147da6000830184613fae565b92915050565b60006020820190506147f56000830184613fbd565b92915050565b60006020820190506148106000830184613fe3565b92915050565b600060208201905061482b6000830184613ff2565b92915050565b6000602082019050818103600083015261484b8184614001565b905092915050565b6000602082019050818103600083015261486c8161406b565b9050919050565b6000602082019050818103600083015261488c816140ab565b9050919050565b600060208201905081810360008301526148ac816140eb565b9050919050565b600060208201905081810360008301526148cc8161412b565b9050919050565b600060208201905081810360008301526148ec8161416b565b9050919050565b6000602082019050818103600083015261490c816141ab565b9050919050565b6000602082019050818103600083015261492c81614211565b9050919050565b6000602082019050818103600083015261494c81614251565b9050919050565b6000602082019050818103600083015261496c81614291565b9050919050565b6000602082019050818103600083015261498c816142d1565b9050919050565b600060208201905081810360008301526149ac81614311565b9050919050565b600060208201905081810360008301526149cc81614351565b9050919050565b600060208201905081810360008301526149ec81614391565b9050919050565b60006020820190508181036000830152614a0c8161442b565b9050919050565b60006020820190508181036000830152614a2c816144d1565b9050919050565b60006020820190508181036000830152614a4c81614511565b9050919050565b60006020820190508181036000830152614a6c81614551565b9050919050565b60006020820190508181036000830152614a8c816145d1565b9050919050565b6000606082019050614aa86000830186614637565b614ab56020830185614637565b614ac26040830184613fae565b949350505050565b600060a082019050614adf6000830188614637565b614aec602083018761468a565b614af9604083018661467b565b614b06606083018561467b565b614b136080830184613fae565b9695505050505050565b6000602082019050614b326000830184614655565b92915050565b6000604082019050614b4d6000830185614655565b614b5a6020830184613f88565b9392505050565b6000606082019050614b766000830186614655565b614b836020830185613fbd565b614b906040830184613fae565b949350505050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614bd582614e31565b9150614be083614e31565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614c1557614c14614fc8565b5b828201905092915050565b6000614c2b82614e3b565b9150614c3683614e3b565b92508263ffffffff03821115614c4f57614c4e614fc8565b5b828201905092915050565b6000614c6582614e31565b9150614c7083614e31565b925082614c8057614c7f614ff7565b5b828204905092915050565b6000614c9682614e31565b9150614ca183614e31565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614cda57614cd9614fc8565b5b828202905092915050565b6000614cf082614e4b565b9150614cfb83614e4b565b92508167ffffffffffffffff0483118215151615614d1c57614d1b614fc8565b5b828202905092915050565b6000614d3282614df5565b9150614d3d83614df5565b925082821015614d5057614d4f614fc8565b5b828203905092915050565b6000614d6682614e31565b9150614d7183614e31565b925082821015614d8457614d83614fc8565b5b828203905092915050565b6000614d9a82614e11565b9050919050565b6000614dac82614e11565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b6000614e6a82614e71565b9050919050565b6000614e7c82614e11565b9050919050565b6000614e8e82614e95565b9050919050565b6000614ea082614e11565b9050919050565b6000614eb282614df5565b9050919050565b60005b83811015614ed7578082015181840152602081019050614ebc565b83811115614ee6576000848401525b50505050565b6000614ef782614e31565b91506000821415614f0b57614f0a614fc8565b5b600182039050919050565b6000614f2182614e31565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614f5457614f53614fc8565b5b600182019050919050565b6000614f6a82614f7b565b9050919050565b6000819050919050565b6000614f8682615037565b9050919050565b6000819050919050565b6000614fa282614e31565b9150614fad83614e31565b925082614fbd57614fbc614ff7565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b61504d81614d8f565b811461505857600080fd5b50565b61506481614da1565b811461506f57600080fd5b50565b61507b81614dbf565b811461508657600080fd5b50565b61509281614dc9565b811461509d57600080fd5b50565b6150a981614df5565b81146150b457600080fd5b50565b6150c081614e31565b81146150cb57600080fd5b50565b6150d781614e3b565b81146150e257600080fd5b50565b6150ee81614e4b565b81146150f957600080fd5b5056fea2646970667358221220ae7aab5cae1f11d87fdde30aa8075088a27738462eb88dc586f23177867613f564736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000046ac8540d698167fcbb9e846511beb8cf8af9bd80000000000000000000000002fea46fbccb5ee07c293fe500353579895abf7d0000000000000000000000000e0faf18f33c307ca812b80c771ad3c9e5f043fe9000000000000000000000000e0faf18f33c307ca812b80c771ad3c9e5f043fe9
-----Decoded View---------------
Arg [0] : deployedQuantum (address): 0x46Ac8540d698167FCBb9e846511Beb8CF8af9BD8
Arg [1] : deployedMP (address): 0x2fEa46FbCcB5ee07c293fe500353579895aBf7d0
Arg [2] : admin (address): 0xe0faf18f33c307Ca812B80c771ad3c9E5f043Fe9
Arg [3] : treasury (address): 0xe0faf18f33c307Ca812B80c771ad3c9E5f043Fe9
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000046ac8540d698167fcbb9e846511beb8cf8af9bd8
Arg [1] : 0000000000000000000000002fea46fbccb5ee07c293fe500353579895abf7d0
Arg [2] : 000000000000000000000000e0faf18f33c307ca812b80c771ad3c9e5f043fe9
Arg [3] : 000000000000000000000000e0faf18f33c307ca812b80c771ad3c9e5f043fe9
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.