More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 171 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Make Submission | 21316680 | 18 days ago | IN | 0 ETH | 0.00428673 | ||||
Make Submission | 21079555 | 51 days ago | IN | 0 ETH | 0.0031526 | ||||
Reject Submissio... | 21070795 | 52 days ago | IN | 0 ETH | 0.00077146 | ||||
Reject Submissio... | 21070791 | 52 days ago | IN | 0 ETH | 0.00116538 | ||||
Make Submission | 20998215 | 62 days ago | IN | 0 ETH | 0.00149399 | ||||
Make Submission | 20998197 | 62 days ago | IN | 0 ETH | 0.00148408 | ||||
Close Bounty | 20912822 | 74 days ago | IN | 0 ETH | 0.00064163 | ||||
Make Submission | 20665722 | 108 days ago | IN | 0 ETH | 0.00088955 | ||||
Reject Submissio... | 20511543 | 130 days ago | IN | 0 ETH | 0.00093615 | ||||
Make Submission | 20483617 | 134 days ago | IN | 0 ETH | 0.00094318 | ||||
Make Submission | 20442473 | 140 days ago | IN | 0 ETH | 0.00099454 | ||||
Reject Submissio... | 20426075 | 142 days ago | IN | 0 ETH | 0.00066779 | ||||
Make Submission | 20414245 | 144 days ago | IN | 0 ETH | 0.00105722 | ||||
Reject Submissio... | 20412222 | 144 days ago | IN | 0 ETH | 0.00034178 | ||||
Reject Submissio... | 20412196 | 144 days ago | IN | 0 ETH | 0.00047972 | ||||
Make Submission | 20385833 | 147 days ago | IN | 0 ETH | 0.00083276 | ||||
Make Submission | 20312422 | 158 days ago | IN | 0 ETH | 0.00143613 | ||||
Make Submission | 20264549 | 164 days ago | IN | 0 ETH | 0.00035617 | ||||
Reject Submissio... | 20060225 | 193 days ago | IN | 0 ETH | 0.00060463 | ||||
Make Submission | 20026960 | 198 days ago | IN | 0 ETH | 0.00338623 | ||||
Close Bounty | 19826241 | 226 days ago | IN | 0 ETH | 0.00057447 | ||||
Reject Submissio... | 19826197 | 226 days ago | IN | 0 ETH | 0.00122794 | ||||
Reject Submissio... | 19824307 | 226 days ago | IN | 0 ETH | 0.00055802 | ||||
Make Submission | 19777940 | 232 days ago | IN | 0 ETH | 0.0008474 | ||||
Approve Submissi... | 19717246 | 241 days ago | IN | 0 ETH | 0.00136767 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
BountyV3
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.18; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; /** @title Bounty Contract Version 3 @notice This contract allows for the creation, funding, and completion of blockchain intelligence bounties in a decentralized manner. @dev This contract is intended to be used with the ARKM token. Users can submit bounties by putting up ARKM, and other users can complete the bounties by staking ARKM to submit IDs that correspond to solutions. Submission IDs are not submitted raw, but instead hashed with the submitter's address to prevent front-running. The IDs are effectively secrets that only the submitters know on submission. Submissions are put in a queue for a bounty and given first-come first-served preference for evaluation. bountyIDs and submissionIDs correspond to off-chain records that detail the bounty and contain solutions. In v3, these records live on the Arkham platform. In the future there could be any number of secondary services that host these records. Once submissions are made, only a set of approver addresses can approve or reject them -- NOT the posters of the bounty. Approver addresses can be added or removed by the the contract owner. Once a bounty is funded, it cannot be closed until after its expiration. Bounties also must remain open until all submissions to the bounty have been approved or rejected. Once a bounty is closed, it cannot be reopened. If a funder closes their bounty, they receive the amount of the bounty back. (Bounty funders can receive a maximum of 100% of their initial funding back. If there is excess funding from rejected submissions, it is accrued as fees.) The contract owner sets the initial submission stake, maker fee, and taker fee. A maker fee is charged when a bounty is funded. A taker fee is charged when a submission is paid out. These fees are in basis points, e.g. 100 basis points = 1%. Fees are disbursed at the discretion of the contract owner and are withdrawn to an address set at contract creation and changeable by the owner. If a submission is approved, the submitter receives the bounty amount less a taker fee, plus their stake back. If a submission is rejected, the submitter does NOT receive their stake back, and the bounty amount increases by the amount staked. Only one submission may be active for a given bounty at a time. Stakes for un-evaluated submissions are paid back to the submitters when the bounty is closed. Delivery of the information corresponding to the accepted submission to the funder is handled off-chain. */ contract BountyV3 is Ownable { address private immutable _arkm; uint256 private _submissionStake; uint256 private _makerFee; uint256 private _takerFee; uint32 private _maxActiveSubmissions; bool private _acceptingBounties; uint256 private _accruedFees; address private _feeReceiverAddress; uint256 private _minBounty; /// @dev Durations are in days uint32 private _defaultDuration; uint32 private _minDuration; uint32 private _maxDuration; uint32 private immutable _minDurationLimit = 1; uint32 private immutable _maxDurationLimit = 365; uint64 private constant _MAX_BPS = 10000; /// @dev Bounty payload --> Bounty mapping(bytes32 => Bounty) private _bounties; /// @dev Array of bounty payloads bytes32[] private _bountyPayloads; /// @dev Bounty payload --> Submission[], contains queues of submissions to bounties mapping(bytes32 => Submission[]) private _submissions; /// @dev Bounty payload -> Address[], contains funders of the bounty. mapping(bytes32 => address[]) private _bountyFunders; /// @dev Approver address --> is approver mapping(address => bool) private _approvers; /// @dev Bounty payload -> accepted submission payload mapping(bytes32 => bytes32) private _acceptedPayloads; mapping(bytes32 => bool) private _rejectedPayloads; /// @notice Struct representing a bounty /// @dev No submissions may be posted to the bounty after the unlock time. If there is are /// active submissions when the unlock time is reached, they may still be approved after the /// unlock time. The bounty is only considered closed when it is past the expiration AND there /// are no active submissions. The hashed ID corresponds to a record kept on the Arkham platform /// - or in the future, on any number of secondary serivices. struct Bounty { uint256 amount; uint256 initialAmount; uint64 expiration; uint32 queueIndex; bool closed; } /// @notice Struct representing a submjsion to a bounty /// @dev The payload is a hash of the submission ID and the submitter's address to prevent /// front-running. This ID corresponds to a record on the Arkham platform - or, in the future, /// any secondary service that bounty-approvers can use to verify the submission. struct Submission { bytes32 submissionPayload; address submitter; uint256 stake; } /// @notice Composite view of listing returned by the external bountyState function struct BountyState { uint256 expiration; uint256 amount; bool closed; uint32 queueIndex; uint32 submissionCount; address[] funders; uint256 initialAmount; } /// @notice Emitted when a bounty is funded /// @param bountyPayload The payload (address x ID) of the funded bounty /// @param funder The address of the funder /// @param initialValue The initial value of the bounty /// @param expiration The unlock time of the bounty event FundBounty ( bytes32 indexed bountyPayload, address indexed funder, uint256 initialValue, uint64 expiration ); /// @notice Emitted when a submission is made for a bounty /// @param bountyPayload The payload of the bounty for which the submission is made /// @param submitter The address of the submitter /// @param stake The stake of the submission /// @param submissionPayload The payload of the submission /// @param queueIndex The queue index of the submission /// @param currentQueueIndex The current queue index of the bounty the submission was made to event FundSubmission ( bytes32 indexed bountyPayload, address indexed submitter, uint256 stake, bytes32 submissionPayload, uint32 queueIndex, uint32 currentQueueIndex ); /// @notice Emitted when a submission for a bounty is rejected /// @param bountyPayload The payload of the bounty for which the submission is rejected /// @param submitter The address of the submitter /// @param stake The stake of the rejected submission /// @param submissionPayload The payload of the rejected submission /// @param queueIndex The queue index of the submission /// @param queueLength The queue length of the bounty the submission was made to event RejectSubmission ( bytes32 indexed bountyPayload, address indexed submitter, uint256 stake, bytes32 submissionPayload, uint32 queueIndex, uint32 queueLength ); /// @notice Emitted when a submission for a bounty is approved /// @param bountyPayload The payload of the bounty for which the submission is approved /// @param submitter The address of the submitter /// @param stake The stake of the approved submission /// @param submissionPayload The payload of the approved submission /// @param payoutToSubmitter The payout to the submitter /// @param queueIndex The queue index of the submission /// @param queueLength The queue length of the bounty the submission was made to event SubmissionApproved ( bytes32 indexed bountyPayload, address indexed submitter, uint256 stake, bytes32 submissionPayload, uint256 payoutToSubmitter, uint32 queueIndex, uint32 queueLength ); /// @notice Emitted when a bounty is closed /// @param bountyPayload The payload of the closed bounty /// @param funder The address of the funder /// @param payoutToFunder The payout to the funder /// @param excessFromStaking The excess fees /// @param queueLength The total number of rejected submissions in the queue event CloseBounty ( bytes32 indexed bountyPayload, address indexed funder, address indexed closedBy, uint256 payoutToFunder, uint256 excessFromStaking, uint32 queueLength ); /// @notice Emitted when an account is granted approver status /// @param account The account granted approver status event GrantApprover ( address indexed account ); /// @notice Emitted when an account has its approver status revoked /// @param account The account that had its approver status revoked event RevokeApprover ( address indexed account ); /// @notice Emitted when the maker fee is set /// @param newFee The new maker fee /// @param oldFee The old maker fee event SetMakerFee ( uint256 newFee, uint256 oldFee ); /// @notice Emitted when the taker fee is set /// @param newFee The new taker fee /// @param oldFee The old taker fee event SetTakerFee ( uint256 newFee, uint256 oldFee ); /// @notice Emitted when the submission stake is set /// @param newStake The new submission stake /// @param oldStake The old submission stake event SetSubmissionStake ( uint256 newStake, uint256 oldStake ); /// @notice Emitted when the contract stops accepting bounties event CloseBountySubmissions (); /// @notice Emitted when accrued fees are withdrawn /// @param amount The amount of accrued fees withdrawn event WithdrawFees ( uint256 amount ); /// @notice Contract constructor that sets initial values /// @param arkmAddress Address of the ERC20 token to be used (ARKM) /// @param initialSubmissionStake Initial stake required for a submission, e.g. 10 e18 /// @param initialMakerFee Initial fee for creating a bounty, in basis points /// @param initialTakerFee Initial fee for completing a bounty, in basis points /// @param bountyDuration Duration of a bounty, in days, i.e. time until expiration /// @param feeReceiverAddress Address to receive fees /// @param initialMaxActiveSubmissions Initial max number of active submissions /// @param initialMinBounty Initial minimum bounty amount /// @dev The burnable check makes sure the token is an ERC20. We are not currently using burn /// functionality. ARKM passes the burnable check, so if it fails we know we are trying to /// deploy with the wrong token contract address. constructor(address arkmAddress, uint256 initialSubmissionStake, uint256 initialMakerFee, uint256 initialTakerFee, uint32 initialDefaultDuration, address feeReceiverAddress, uint32 initialMaxActiveSubmissions, uint256 initialMinBounty, uint32 initialMinDuration, uint32 initialMaxDuration) { require(initialMakerFee <= _MAX_BPS, "BountyV3: maker fee must be <= 10000"); require(initialTakerFee <= _MAX_BPS, "BountyV3: taker fee must be <= 10000"); require(feeReceiverAddress != address(0), "BountyV3: fee receiver address cannot be 0x0"); require(initialMinDuration >= _minDurationLimit, "BountyV3: min duration must be >= 1 day"); require(initialMaxDuration <= _maxDurationLimit, "BountyV3: max duration must be <= 365 days"); require(initialMinDuration <= initialMaxDuration, "BountyV3: min duration must be <= max duration"); require(initialMinDuration <= initialDefaultDuration, "BountyV3: min duration must be <= default duration"); require(initialMaxDuration >= initialDefaultDuration, "BountyV3: max duration must be >= default duration"); try ERC20Burnable(arkmAddress).totalSupply() returns (uint256) { _arkm = arkmAddress; } catch { revert("BountyV3: provided token address does not implement ERC20Burnable"); } _submissionStake = initialSubmissionStake; _makerFee = initialMakerFee; _takerFee = initialTakerFee; _acceptingBounties = true; _defaultDuration = initialDefaultDuration; _feeReceiverAddress = feeReceiverAddress; _maxActiveSubmissions = initialMaxActiveSubmissions; _minBounty = initialMinBounty; _minDuration = initialMinDuration; _maxDuration = initialMaxDuration; } /// @return The amount of ARKM accrued from fees function accruedFees() public view virtual returns (uint256) { return _accruedFees; } /// @return The address of the ERC20 token to be used function arkm() public view virtual returns (address) { return _arkm; } /// @return The fee for creating a bounty, in basis points function makerFee() public view virtual returns (uint256) { return _makerFee; } /// @return The fee for completing a bounty, in basis points function takerFee() public view virtual returns (uint256) { return _takerFee; } /// @return The stake required for a submission, in value of the ERC20 token function submissionStake() public view virtual returns (uint256) { return _submissionStake; } /// @return The minimum bounty amount function minBounty() public view virtual returns (uint256) { return _minBounty; } /// @return The max number of active submissions function maxActiveSubmissions() public view virtual returns (uint32) { return _maxActiveSubmissions; } /// @return The default duration of a bounty, in days function defaultDuration() public view virtual returns (uint32) { return _defaultDuration; } /// @return The minimum duration of a bounty, in days function minDuration() public view virtual returns (uint32) { return _minDuration; } /// @return The maximum duration of a bounty, in days function maxDuration() public view virtual returns (uint32) { return _maxDuration; } /// @param bountyPayload The payload for the bounty /// @return The addresses of the funders of the bounty function funders(bytes32 bountyPayload) public view virtual returns (address[] memory) { return _bountyFunders[bountyPayload]; } /// @param bountyPayload The payload for the bounty /// @return The amount of the bounty function amount(bytes32 bountyPayload) public view virtual returns (uint256) { return _bounties[bountyPayload].amount; } /// @param bountyPayload The payload for the bounty /// @return The initial amount of the bounty function initialAmount(bytes32 bountyPayload) public view virtual returns (uint256) { return _bounties[bountyPayload].initialAmount; } /// @param bountyPayload The payload for the bounty /// @return The expiration time of the bounty function expiration(bytes32 bountyPayload) public view virtual returns (uint64) { return _bounties[bountyPayload].expiration; } /// @param bountyPayload The payload for the bounty /// @return The current queue index of the bounty /// @dev The queue index is used to move through the list of submission made for a bounty. If /// the queue index is 3, the 4th submission in the list is the current one -- or, if there /// are only 3 submissions, there is no current submission. Anything submissions prior to th /// current queueIndex are rejected, any above are yet to be officially reviewed. function bountyQueueIndex(bytes32 bountyPayload) public view virtual returns (uint32) { return _bounties[bountyPayload].queueIndex; } /// @param bountyPayload The payload for the bounty /// @return The payload of the approved submission or 0 if none function approvedSubmission(bytes32 bountyPayload) public view virtual returns (bytes32) { if (!_bounties[bountyPayload].closed) return 0; return _acceptedPayloads[bountyPayload]; } /// @param bountyPayload The payload for the bounty /// @return The total number of submissions received for the bounty function submissionsCount(bytes32 bountyPayload) public view virtual returns (uint32) { return uint32(_submissions[bountyPayload].length); } /// @param bountyPayload the payload for the bounty /// @return The number of active (un-rejected) submissions for the bounty function activeSubmissionsCount(bytes32 bountyPayload) internal view returns (uint32) { return submissionsCount(bountyPayload) - bountyQueueIndex(bountyPayload); } /// @param bountyPayload The payload for the bounty /// @return Whether the bounty is closed or not /// @dev 'closed' is only true once a submission has been approved OR the bounty has been /// closed by the funder, which can only happen after the unlock time when there is no active /// submission. function closed(bytes32 bountyPayload) public view virtual returns (bool) { return _bounties[bountyPayload].closed; } /// @param submissionPayload The payload to check /// @return Whether the payload has been rejected or not function rejectedSubmissionPayload(bytes32 submissionPayload) public view virtual returns (bool) { return _rejectedPayloads[submissionPayload]; } /// @param submission The ID of the submission /// @param bountyPayload The payload for the bounty the submission corresponds to /// @return The position of the submission in the queue /// @dev Used to tell our off-chain record about a submission's position. function submissionQueuePosition(uint256 submission, bytes32 bountyPayload) public view virtual returns (uint32) { uint32 _numSubmissions = submissionsCount(bountyPayload); for (uint32 i = 0; i < _numSubmissions; i++) { if (_submissions[bountyPayload][i].submissionPayload == keccak256(abi.encodePacked(submission, _submissions[bountyPayload][i].submitter))) { return i; } } revert("BountyV3: submission not found"); } /// @param position The position in the queue /// @param bountyPayload The payload for the bounty the submission corresponds to /// @return The submitter of the submission at the position in the queue function submitterAtPosition(uint32 position, bytes32 bountyPayload) public view virtual returns (address) { return _submissions[bountyPayload][position].submitter; } /// @param position The position in the queue /// @param bountyPayload The payload for the bounty the submission corresponds to /// @return The stake of the submission at the position in the queue function stakeAtPosition(uint32 position, bytes32 bountyPayload) public view virtual returns (uint256) { return _submissions[bountyPayload][position].stake; } /// @param account The account to check /// @return Whether the account is an approver or not function approver(address account) public view virtual returns (bool) { return _approvers[account]; } /// @return Whether the contract is accepting bounties or not function acceptingBounties() public view virtual returns (bool) { return _acceptingBounties; } /// @param value The value to calculate the fee from /// @param maker Whether the fee is for creating a bounty or not /// @return The calculated fee /// @dev The 10000 accounts for denomination in basis points. function fee(uint256 value, bool maker) public view virtual returns (uint256) { return value * (maker ? _makerFee : _takerFee) / 10000; } /// @param bountyID The ID of the bounty to check /// @return The payload of the bounty, if it is found /// @dev This is used to check if a bountyID is funded. Check each existing bounty record, and /// see if we can hash the bountyID and one of the funders addresses to produce the payload. function findBountyByID(uint256 bountyID) public view virtual returns (bytes32) { bytes32 _payload; for (uint32 i = 0; i < _bountyPayloads.length; i++) { for (uint32 j = 0; j < _bountyFunders[_bountyPayloads[i]].length; j++) { _payload = keccak256(abi.encodePacked(bountyID, _bountyFunders[_bountyPayloads[i]][j])); if (_payload == _bountyPayloads[i]) { return _payload; } } } revert("BountyV3: bountyID not found"); } /// @param bountyPayload The payload of the bounty to check /// @param submissionID The ID of the submission to check /// @return The payload of the submission, if it is found /// @dev This is used to get the submission payload, which we use to check if a submission has /// been rejected. function findSubmissionPayload(bytes32 bountyPayload, uint256 submissionID) public view virtual returns (bytes32) { bytes32 _payload; for (uint32 i = 0; i < _submissions[bountyPayload].length; i++) { _payload = keccak256(abi.encodePacked(submissionID, _submissions[bountyPayload][i].submitter)); if (_payload == _submissions[bountyPayload][i].submissionPayload) { return _payload; } } return 0; } /// @notice Gets the state of a bounty /// @param bountyPayload The payload of the bounty to get the state of /// @return The state of the bounty /// @dev This is an aggregate of existing getters. It's here to save us the trouble of calling /// them all each time. function bountyState(bytes32 bountyPayload) public view virtual returns (BountyState memory) { return BountyState({ expiration: expiration(bountyPayload), amount: amount(bountyPayload), closed: closed(bountyPayload), queueIndex: bountyQueueIndex(bountyPayload), submissionCount: submissionsCount(bountyPayload), funders: funders(bountyPayload), initialAmount: initialAmount(bountyPayload) }); } /// @notice Modifier to require that the caller is an approver modifier onlyApprover() { require(approver(_msgSender()), "BountyV3: caller is not approver"); _; } /// @notice Funds a bounty /// @param bountyPayload The payload of the bounty to fund /// @param _amount The amount of the ERC20 to fund the bounty with /// @dev Additional bounty information like name and description is stored on an off-chain /// platform, e.g. Arkham. In the current implementation, Bounty records are generated /// on the Arkham platform and the bounty payload is the hash of the bounty ID and the poster /// address. This prevents front-running of bounty creation. The first funder who has an /// address that can hash with a bountyID to produce the payload is considered the only funder. function fundBounty(bytes32 bountyPayload, uint256 _amount, uint32 duration) external { require(_acceptingBounties, "BountyV3: contract no longer accepting bounties"); require(_amount >= _minBounty, "BountyV3: below minimum bounty"); require(!_bounties[bountyPayload].closed, "BountyV3: bounty already closed"); require(_bountyFunders[bountyPayload].length < 11, "BountyV3: bounty already has 10 funders"); uint32 _intendedDuration = duration == 0 ? _defaultDuration : duration; require(_intendedDuration >= _minDuration, "BountyV3: duration below minimum"); require(_intendedDuration <= _maxDuration, "BountyV3: duration above maximum"); uint256 _fee = fee(_amount, true); _accruedFees += _fee; uint64 _expiration = uint64(block.timestamp + _intendedDuration * 1 days); // If there is already a payload for this bounty, and the bounty is not closed, add the // amount. Otherwise create the bounty. if (initialAmount(bountyPayload) > 0) { _bounties[bountyPayload].amount += _amount; _bounties[bountyPayload].initialAmount += _amount; _bountyFunders[bountyPayload].push(_msgSender()); } else { _bounties[bountyPayload] = Bounty({ amount: _amount, initialAmount: _amount, expiration: _expiration, closed: false, queueIndex: 0 }); _bountyPayloads.push(bountyPayload); _bountyFunders[bountyPayload].push(_msgSender()); } SafeERC20.safeTransferFrom(IERC20(_arkm), _msgSender(), address(this), _amount + _fee); emit FundBounty( bountyPayload, _msgSender(), _amount, _expiration ); } /// @notice Closes a bounty and returns the funds to the funder /// @param bountyPayload The payload for the bounty to close /// @dev The bounty may be closed by anyone after the unlock time when there is no active /// submission. Approvers can close bounties before expiration. This function will only work if /// one of the funders hashes with the bountyID to produce the payload. It is possible that /// there is no valid funder, in which case the funds are locked in the contract, effectively /// burning them. function closeBounty(bytes32 bountyPayload, uint256 bountyID) external { require(amount(bountyPayload) > 0, "BountyV3: bounty not funded"); require(expiration(bountyPayload) <= block.timestamp || approver(_msgSender()), "BountyV3: only approvers can close before expiration"); require(activeSubmissionsCount(bountyPayload) == 0, "BountyV3: has active submission"); require(!_bounties[bountyPayload].closed, "BountyV3: bounty already closed"); /// Find the funder that hashes with the bountyID to produce the payload. /// @dev Note that it is important that this list be FIFO, to prevent later funders from /// getting the payout instead of the first legitimate funder. address _legitimateFunder; for (uint32 i = 0; i < _bountyFunders[bountyPayload].length; i++) { if (keccak256(abi.encodePacked(bountyID, _bountyFunders[bountyPayload][i])) == bountyPayload) { _legitimateFunder = _bountyFunders[bountyPayload][i]; break; } } require(_legitimateFunder != address(0), "BountyV3: failed to hash bountyID with funder address"); /// @dev Staked funds from rejected submissions have added to the amount. Accrue as fees. uint256 excessFromStaking = _bounties[bountyPayload].amount - _bounties[bountyPayload].initialAmount; _accruedFees += excessFromStaking; // There are no active submissions, so there are no more stakes to be returned. SafeERC20.safeTransfer(IERC20(_arkm), _legitimateFunder, _bounties[bountyPayload].initialAmount); _bounties[bountyPayload].closed = true; emit CloseBounty( bountyPayload, _legitimateFunder, _msgSender(), _bounties[bountyPayload].initialAmount, excessFromStaking, submissionsCount(bountyPayload) ); } /// @notice Makes a submission for a bounty by staking the ERC20 /// @param bountyPayload The payload for the bounty to make a submission to /// @param submissionPayload The payload of the submission, used to validate the sender's /// address /// @dev The payload is a hash of the submission ID and the submitter's address to prevent /// front-running. All submissions must provide a stake, which is returned if the submission /// is approved (less fees) or forfeit (and added to the bounty) if the submission is rejected. /// This is to prevent spamming of submissions. function makeSubmission(bytes32 bountyPayload, bytes32 submissionPayload) external { require(!_bounties[bountyPayload].closed, "BountyV3: bounty closed"); require(amount(bountyPayload) > 0, "BountyV3: bounty not funded"); require(expiration(bountyPayload) > block.timestamp, "BountyV3: bounty expired"); require(!rejectedSubmissionPayload(submissionPayload), "BountyV3: payload rejected"); require(!approver(_msgSender()), "BountyV3: approvers cannot submit"); require(activeSubmissionsCount(bountyPayload) < _maxActiveSubmissions, "BountyV3: max active submissions reached"); _submissions[bountyPayload].push(Submission({ submissionPayload: submissionPayload, submitter: _msgSender(), stake: _submissionStake })); SafeERC20.safeTransferFrom(IERC20(_arkm), _msgSender(), address(this), _submissionStake); emit FundSubmission( bountyPayload, _msgSender(), _submissionStake, submissionPayload, bountyQueueIndex(bountyPayload), uint32(_submissions[bountyPayload].length - 1) ); } /// @notice Approves and pays out for a submission to a bounty /// @param bountyPayload The payload for the bounty whose submission to approve /// @param index The index of the submission to approve /// @dev The bounty is paid out to the address that submitted the approved submission, plus /// their initial stake, less fees. The bounty is closed and will no longer receive /// submissions. Off-chain, the information corresponding to the submission ID is delivered to /// the funder. function approveSubmissionAt(bytes32 bountyPayload, uint32 index) internal { // Approving a submission on a closed bounty is not allowed but handled by check that makes // it impossible to submit to a closed bounty and the check that makes it impossible to close // a bounty that has an active submission. require(_submissions[bountyPayload][index].submitter != _msgSender(), "BountyV3: cannot approve own submission"); // Mark as approved. _acceptedPayloads[bountyPayload] = _submissions[bountyPayload][index].submissionPayload; /// @dev If there have been other rejected submissions, their stake will be reflected in /// the bounty amount. uint256 _amount = _bounties[bountyPayload].amount; _bounties[bountyPayload].amount = 0; uint256 _stake = _submissions[bountyPayload][index].stake; _accruedFees += fee(_amount, false); _submissions[bountyPayload][index].stake = 0; uint256 payout = _amount + _stake - fee(_amount, false); SafeERC20.safeTransfer(IERC20(_arkm), _submissions[bountyPayload][index].submitter, payout); _bounties[bountyPayload].queueIndex = index + 1; _bounties[bountyPayload].closed = true; emit SubmissionApproved( bountyPayload, _submissions[bountyPayload][index].submitter, _stake, _submissions[bountyPayload][index].submissionPayload, payout, index, submissionsCount(bountyPayload) ); } /// @notice Approves the Nth submission for a bounty (0-indexed) /// @param bountyPayload The payload for the bounty whose submission to approve /// @param submissionID The ID of the submission to approve /// @dev Un-assessed submissions get their stakes returned. function approveSubmission(bytes32 bountyPayload, uint256 submissionID) external onlyApprover { // If the bounty is closed, this function should revert. But, this is a good check to have // as a hedge against future changes. require(!_bounties[bountyPayload].closed, "BountyV3: bounty closed"); // Failure value is out of range. uint32 _approveAtIndex = submissionsCount(bountyPayload); // Find the index of the submission. for (uint32 i = _bounties[bountyPayload].queueIndex; i < submissionsCount(bountyPayload); i++) { if (_submissions[bountyPayload][i].submissionPayload == keccak256(abi.encodePacked(submissionID, _submissions[bountyPayload][i].submitter))) { _approveAtIndex = i; break; } } require(_approveAtIndex < submissionsCount(bountyPayload), "BountyV3: submission not found"); // Reject all submissions before the approved one. for (uint32 i = _bounties[bountyPayload].queueIndex; i < _approveAtIndex; i++) { // This increments the queue index. rejectSubmission(bountyPayload); } // Appprove the submission. This increments the index. approveSubmissionAt(bountyPayload, _approveAtIndex); // Refund remaining stakes. for (uint32 i = _approveAtIndex + 1; i < submissionsCount(bountyPayload); i++) { SafeERC20.safeTransfer(IERC20(_arkm), _submissions[bountyPayload][i].submitter, _submissions[bountyPayload][i].stake); _submissions[bountyPayload][i].stake = 0; _bounties[bountyPayload].queueIndex += 1; } } /// @notice Rejects N submissions for a bounty /// @param bountyPayload The payload for the bounty whose submissions to reject /// @param n The number of submissions to reject function rejectSubmissions(bytes32 bountyPayload, uint32 n) public onlyApprover { require(activeSubmissionsCount(bountyPayload) >= n, "BountyV3: not enough active submissions"); for (uint32 i = 0; i < n; i++) { rejectSubmission(bountyPayload); } } /// @notice Rejects a submission for a bounty /// @param bountyPayload The payload for the bounty whose submission to reject /// @dev The stake of the rejected submission is added to the bounty amount. The queueIndex for /// the bounty is incremented to move to the next submission in the queue. function rejectSubmission(bytes32 bountyPayload) internal { // If there are active submissions, we can reject one. uint32 _currentPosition = bountyQueueIndex(bountyPayload); uint256 _stake = _submissions[bountyPayload][_currentPosition].stake; _submissions[bountyPayload][_currentPosition].stake = 0; uint256 _stakeFee = fee(_stake, true); _accruedFees += _stakeFee; _bounties[bountyPayload].amount += _stake - _stakeFee; _bounties[bountyPayload].queueIndex += 1; bytes32 _payload = _submissions[bountyPayload][_currentPosition].submissionPayload; _rejectedPayloads[_payload] = true; emit RejectSubmission( bountyPayload, _submissions[bountyPayload][_currentPosition].submitter, _stake, _payload, bountyQueueIndex(bountyPayload), submissionsCount(bountyPayload) ); } /// @notice Grants approver status to an account /// @param account The account to grant approver status to /// @dev There can be any number of approvers. Only one approver is required to approve a /// submission. function grantApprover(address account) external onlyOwner { require(!approver(account), "BountyV3: already approver"); _approvers[account] = true; emit GrantApprover( account ); } /// @notice Revokes approver status from an account /// @param account The account to revoke approver status from function revokeApprover(address account) external onlyOwner { require(approver(account), "BountyV3: not approver"); _approvers[account] = false; emit RevokeApprover( account ); } /// @notice Sets a new maker fee /// @param newFee The new maker fee, in basis points function setMakerFee(uint256 newFee) external onlyOwner { require(newFee <= _MAX_BPS, "BountyV3: maker fee must be <= 100%"); uint256 _oldFee = _makerFee; _makerFee = newFee; emit SetMakerFee( newFee, _oldFee ); } /// @notice Sets a new taker fee /// @param newFee The new taker fee, in basis points function setTakerFee(uint256 newFee) external onlyOwner { require(newFee <= _MAX_BPS, "BountyV3: taker fee must be <= 100%"); uint256 _oldFee = _takerFee; _takerFee = newFee; emit SetTakerFee( newFee, _oldFee ); } /// @notice Sets a new submission stake /// @param newStake The new submission stake, in value of the ERC20 token e.g. 10 e18 function setSubmissionStake(uint256 newStake) external onlyOwner { uint256 _oldStake = _submissionStake; _submissionStake = newStake; emit SetSubmissionStake( newStake, _oldStake ); } /// @notice Sets a new minimum bounty /// @param newMinBounty The new minimum bounty function setMinBounty(uint256 newMinBounty) external onlyOwner { _minBounty = newMinBounty; } /// @notice Sets a new max active submissions /// @param newMaxActiveSubmissions The new max active submissions function setMaxActiveSubmissions(uint32 newMaxActiveSubmissions) external onlyOwner { _maxActiveSubmissions = newMaxActiveSubmissions; } /// @notice Sets a new default duration /// @param newDefaultDuration The new default duration function setDefaultDuration(uint32 newDefaultDuration) external onlyOwner { require(newDefaultDuration <= _maxDuration, "BountyV3: default duration must be <= max duration"); require(newDefaultDuration >= _minDuration, "BountyV3: default duration must be >= min duration"); _defaultDuration = newDefaultDuration; } /// @notice Sets a new min duration /// @param newMinDuration The new min duration /// @dev Requiring that the new min duration be <= the default duration ensures that it is also /// <= the max duration. function setMinDuration(uint32 newMinDuration) external onlyOwner { require(newMinDuration >= _minDurationLimit, "BountyV3: min duration must be >= 1 day"); require(newMinDuration <= _defaultDuration, "BountyV3: min duration must be <= default duration"); _minDuration = newMinDuration; } /// @notice Sets a new max duration /// @param newMaxDuration The new max duration /// @dev Requiring that the new max duration be >= the default duration ensures that it is also /// >= the min duration. function setMaxDuration(uint32 newMaxDuration) external onlyOwner { require(newMaxDuration <= _maxDurationLimit, "BountyV3: max duration must be <= 365 days"); require(newMaxDuration >= _defaultDuration, "BountyV3: max duration must be >= default duration"); _maxDuration = newMaxDuration; } /// @notice Sets a new fee receiver address /// @param feeReceiverAddress The new fee receiver address /// @dev This is the address that will receive fees. function setFeeReceiverAddress(address feeReceiverAddress) external onlyOwner { require(feeReceiverAddress != address(0), "BountyV3: fee receiver address cannot be 0x0"); _feeReceiverAddress = feeReceiverAddress; } /// @notice Prevent any further bounties from being created /// @dev This is how we will sunset the contract when we want to move to a new version. It's /// important that we continue to allow submissions to existing bounties until they all expire. /// Once all bounties have expired and we have approved or rejected all submissions, we can /// disburse any remaining fees. function stopAcceptingBounties() external onlyOwner { _acceptingBounties = false; emit CloseBountySubmissions(); } /// @notice Withdraw accrued fees /// @dev This can be called periodically by the owner. function withdrawFees() external onlyOwner { uint256 fees = _accruedFees; _accruedFees = 0; SafeERC20.safeTransfer(IERC20(_arkm), _feeReceiverAddress, fees); emit WithdrawFees( fees ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to * 0 before setting it to a non-zero value. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) 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; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"arkmAddress","type":"address"},{"internalType":"uint256","name":"initialSubmissionStake","type":"uint256"},{"internalType":"uint256","name":"initialMakerFee","type":"uint256"},{"internalType":"uint256","name":"initialTakerFee","type":"uint256"},{"internalType":"uint32","name":"initialDefaultDuration","type":"uint32"},{"internalType":"address","name":"feeReceiverAddress","type":"address"},{"internalType":"uint32","name":"initialMaxActiveSubmissions","type":"uint32"},{"internalType":"uint256","name":"initialMinBounty","type":"uint256"},{"internalType":"uint32","name":"initialMinDuration","type":"uint32"},{"internalType":"uint32","name":"initialMaxDuration","type":"uint32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"bountyPayload","type":"bytes32"},{"indexed":true,"internalType":"address","name":"funder","type":"address"},{"indexed":true,"internalType":"address","name":"closedBy","type":"address"},{"indexed":false,"internalType":"uint256","name":"payoutToFunder","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"excessFromStaking","type":"uint256"},{"indexed":false,"internalType":"uint32","name":"queueLength","type":"uint32"}],"name":"CloseBounty","type":"event"},{"anonymous":false,"inputs":[],"name":"CloseBountySubmissions","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"bountyPayload","type":"bytes32"},{"indexed":true,"internalType":"address","name":"funder","type":"address"},{"indexed":false,"internalType":"uint256","name":"initialValue","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"expiration","type":"uint64"}],"name":"FundBounty","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"bountyPayload","type":"bytes32"},{"indexed":true,"internalType":"address","name":"submitter","type":"address"},{"indexed":false,"internalType":"uint256","name":"stake","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"submissionPayload","type":"bytes32"},{"indexed":false,"internalType":"uint32","name":"queueIndex","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"currentQueueIndex","type":"uint32"}],"name":"FundSubmission","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"GrantApprover","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"bountyPayload","type":"bytes32"},{"indexed":true,"internalType":"address","name":"submitter","type":"address"},{"indexed":false,"internalType":"uint256","name":"stake","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"submissionPayload","type":"bytes32"},{"indexed":false,"internalType":"uint32","name":"queueIndex","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"queueLength","type":"uint32"}],"name":"RejectSubmission","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"RevokeApprover","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldFee","type":"uint256"}],"name":"SetMakerFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newStake","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldStake","type":"uint256"}],"name":"SetSubmissionStake","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldFee","type":"uint256"}],"name":"SetTakerFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"bountyPayload","type":"bytes32"},{"indexed":true,"internalType":"address","name":"submitter","type":"address"},{"indexed":false,"internalType":"uint256","name":"stake","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"submissionPayload","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"payoutToSubmitter","type":"uint256"},{"indexed":false,"internalType":"uint32","name":"queueIndex","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"queueLength","type":"uint32"}],"name":"SubmissionApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawFees","type":"event"},{"inputs":[],"name":"acceptingBounties","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accruedFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"}],"name":"amount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"},{"internalType":"uint256","name":"submissionID","type":"uint256"}],"name":"approveSubmission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"}],"name":"approvedSubmission","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"approver","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"arkm","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"}],"name":"bountyQueueIndex","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"}],"name":"bountyState","outputs":[{"components":[{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"closed","type":"bool"},{"internalType":"uint32","name":"queueIndex","type":"uint32"},{"internalType":"uint32","name":"submissionCount","type":"uint32"},{"internalType":"address[]","name":"funders","type":"address[]"},{"internalType":"uint256","name":"initialAmount","type":"uint256"}],"internalType":"struct BountyV3.BountyState","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"},{"internalType":"uint256","name":"bountyID","type":"uint256"}],"name":"closeBounty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"}],"name":"closed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultDuration","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"}],"name":"expiration","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bool","name":"maker","type":"bool"}],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bountyID","type":"uint256"}],"name":"findBountyByID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"},{"internalType":"uint256","name":"submissionID","type":"uint256"}],"name":"findSubmissionPayload","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint32","name":"duration","type":"uint32"}],"name":"fundBounty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"}],"name":"funders","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"grantApprover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"}],"name":"initialAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"},{"internalType":"bytes32","name":"submissionPayload","type":"bytes32"}],"name":"makeSubmission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"makerFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxActiveSubmissions","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxDuration","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minBounty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minDuration","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"},{"internalType":"uint32","name":"n","type":"uint32"}],"name":"rejectSubmissions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"submissionPayload","type":"bytes32"}],"name":"rejectedSubmissionPayload","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"revokeApprover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"newDefaultDuration","type":"uint32"}],"name":"setDefaultDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"feeReceiverAddress","type":"address"}],"name":"setFeeReceiverAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"setMakerFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"newMaxActiveSubmissions","type":"uint32"}],"name":"setMaxActiveSubmissions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"newMaxDuration","type":"uint32"}],"name":"setMaxDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMinBounty","type":"uint256"}],"name":"setMinBounty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"newMinDuration","type":"uint32"}],"name":"setMinDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newStake","type":"uint256"}],"name":"setSubmissionStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"setTakerFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"position","type":"uint32"},{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"}],"name":"stakeAtPosition","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stopAcceptingBounties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"submission","type":"uint256"},{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"}],"name":"submissionQueuePosition","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"submissionStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"}],"name":"submissionsCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"position","type":"uint32"},{"internalType":"bytes32","name":"bountyPayload","type":"bytes32"}],"name":"submitterAtPosition","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"takerFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e0604052600163ffffffff1660a09063ffffffff1681525061016d63ffffffff1660c09063ffffffff168152503480156200003a57600080fd5b506040516200669f3803806200669f8339818101604052810190620000609190620006d2565b62000080620000746200052060201b60201c565b6200052860201b60201c565b61271067ffffffffffffffff16881115620000d2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000c9906200084f565b60405180910390fd5b61271067ffffffffffffffff1687111562000124576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200011b90620008e7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160362000196576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200018d906200097f565b60405180910390fd5b60a05163ffffffff168263ffffffff161015620001ea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001e19062000a17565b60405180910390fd5b60c05163ffffffff168163ffffffff1611156200023e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002359062000aaf565b60405180910390fd5b8063ffffffff168263ffffffff16111562000290576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002879062000b47565b60405180910390fd5b8563ffffffff168263ffffffff161115620002e2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002d99062000bdf565b60405180910390fd5b8563ffffffff168163ffffffff16101562000334576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200032b9062000c77565b60405180910390fd5b8973ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156200039f57506040513d601f19601f820116820180604052508101906200039c919062000c99565b60015b620003e1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003d89062000d67565b60405180910390fd5b8a73ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250505088600181905550876002819055508660038190555060016004806101000a81548160ff02191690831515021790555085600860006101000a81548163ffffffff021916908363ffffffff16021790555084600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600460006101000a81548163ffffffff021916908363ffffffff1602179055508260078190555081600860046101000a81548163ffffffff021916908363ffffffff160217905550806008806101000a81548163ffffffff021916908363ffffffff1602179055505050505050505050505062000d89565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200061e82620005f1565b9050919050565b620006308162000611565b81146200063c57600080fd5b50565b600081519050620006508162000625565b92915050565b6000819050919050565b6200066b8162000656565b81146200067757600080fd5b50565b6000815190506200068b8162000660565b92915050565b600063ffffffff82169050919050565b620006ac8162000691565b8114620006b857600080fd5b50565b600081519050620006cc81620006a1565b92915050565b6000806000806000806000806000806101408b8d031215620006f957620006f8620005ec565b5b6000620007098d828e016200063f565b9a505060206200071c8d828e016200067a565b99505060406200072f8d828e016200067a565b9850506060620007428d828e016200067a565b9750506080620007558d828e01620006bb565b96505060a0620007688d828e016200063f565b95505060c06200077b8d828e01620006bb565b94505060e06200078e8d828e016200067a565b935050610100620007a28d828e01620006bb565b925050610120620007b68d828e01620006bb565b9150509295989b9194979a5092959850565b600082825260208201905092915050565b7f426f756e747956333a206d616b657220666565206d757374206265203c3d203160008201527f3030303000000000000000000000000000000000000000000000000000000000602082015250565b600062000837602483620007c8565b91506200084482620007d9565b604082019050919050565b600060208201905081810360008301526200086a8162000828565b9050919050565b7f426f756e747956333a2074616b657220666565206d757374206265203c3d203160008201527f3030303000000000000000000000000000000000000000000000000000000000602082015250565b6000620008cf602483620007c8565b9150620008dc8262000871565b604082019050919050565b600060208201905081810360008301526200090281620008c0565b9050919050565b7f426f756e747956333a206665652072656365697665722061646472657373206360008201527f616e6e6f74206265203078300000000000000000000000000000000000000000602082015250565b600062000967602c83620007c8565b9150620009748262000909565b604082019050919050565b600060208201905081810360008301526200099a8162000958565b9050919050565b7f426f756e747956333a206d696e206475726174696f6e206d757374206265203e60008201527f3d20312064617900000000000000000000000000000000000000000000000000602082015250565b6000620009ff602783620007c8565b915062000a0c82620009a1565b604082019050919050565b6000602082019050818103600083015262000a3281620009f0565b9050919050565b7f426f756e747956333a206d6178206475726174696f6e206d757374206265203c60008201527f3d20333635206461797300000000000000000000000000000000000000000000602082015250565b600062000a97602a83620007c8565b915062000aa48262000a39565b604082019050919050565b6000602082019050818103600083015262000aca8162000a88565b9050919050565b7f426f756e747956333a206d696e206475726174696f6e206d757374206265203c60008201527f3d206d6178206475726174696f6e000000000000000000000000000000000000602082015250565b600062000b2f602e83620007c8565b915062000b3c8262000ad1565b604082019050919050565b6000602082019050818103600083015262000b628162000b20565b9050919050565b7f426f756e747956333a206d696e206475726174696f6e206d757374206265203c60008201527f3d2064656661756c74206475726174696f6e0000000000000000000000000000602082015250565b600062000bc7603283620007c8565b915062000bd48262000b69565b604082019050919050565b6000602082019050818103600083015262000bfa8162000bb8565b9050919050565b7f426f756e747956333a206d6178206475726174696f6e206d757374206265203e60008201527f3d2064656661756c74206475726174696f6e0000000000000000000000000000602082015250565b600062000c5f603283620007c8565b915062000c6c8262000c01565b604082019050919050565b6000602082019050818103600083015262000c928162000c50565b9050919050565b60006020828403121562000cb25762000cb1620005ec565b5b600062000cc2848285016200067a565b91505092915050565b7f426f756e747956333a2070726f766964656420746f6b656e206164647265737360008201527f20646f6573206e6f7420696d706c656d656e742045524332304275726e61626c60208201527f6500000000000000000000000000000000000000000000000000000000000000604082015250565b600062000d4f604183620007c8565b915062000d5c8262000ccb565b606082019050919050565b6000602082019050818103600083015262000d828162000d40565b9050919050565b60805160a05160c0516158bc62000de3600039600061250c01526000610c28015260008181610ff6015281816115a80152818161171c01528181612156015281816122c701528181612bc301526134d201526158bc6000f3fe608060405234801561001057600080fd5b50600436106102bb5760003560e01c8063715018a611610182578063b8238868116100e9578063f1cca8aa116100a2578063fc6e5f4d1161007c578063fc6e5f4d146108de578063fc741c7c146108fa578063fd290bba14610918578063fe15a3ba14610922576102bb565b8063f1cca8aa14610876578063f2fde38b14610892578063fb0792ca146108ae576102bb565b8063b8238868146107b8578063b8bd3dbb146107e8578063cb23879b14610804578063de81367914610820578063e58ad0431461083c578063ef9218261461085a576102bb565b80638dc320a31161013b5780638dc320a3146106d257806392d3199b14610702578063990f5b3c146107325780639c4e314814610762578063a8da684b1461077e578063b42b06351461079a576102bb565b8063715018a6146106245780637b4069421461062e578063831a61401461065e57806389b8db551461067a5780638d970075146106985780638da5cb5b146106b4576102bb565b806343dd25e81161022657806356406fa5116101df57806356406fa51461053a578063567157611461056a57806363fb42ef14610588578063682c2058146105b85780636a6a521b146105d65780636db5c8fd14610606576102bb565b806343dd25e81461047857806343f0179b146104a8578063476343ee146104c6578063491b1813146104d05780634bdfa297146105005780634fb4f17e1461051c576102bb565b80633273b110116102785780633273b110146103a857806336d85083146103c457806339ea26dd146103e05780633b58f49a146103fc5780633f131d9f146104185780633fb8c56d14610448576102bb565b806318d13ef7146102c0578063226c7e2d146102dc57806322c3a8011461030c5780632619e4e51461033c5780632af7e2ea1461036c5780632f7c8a771461038a575b600080fd5b6102da60048036038101906102d59190613a04565b610952565b005b6102f660048036038101906102f19190613a9f565b610a40565b6040516103039190613aee565b60405180910390f35b61032660048036038101906103219190613b7b565b610a73565b6040516103339190613bca565b60405180910390f35b61035660048036038101906103519190613be5565b610ada565b6040516103639190613c34565b60405180910390f35b610374610bfa565b6040516103819190613c5e565b60405180910390f35b610392610c14565b60405161039f9190613aee565b60405180910390f35b6103c260048036038101906103bd9190613c79565b610c1e565b005b6103de60048036038101906103d99190613ca6565b610d1a565b005b6103fa60048036038101906103f59190613ce6565b6110b2565b005b61041660048036038101906104119190613d39565b611641565b005b610432600480360381019061042d9190613a04565b611653565b60405161043f9190613d75565b60405180910390f35b610462600480360381019061045d9190613d90565b6116a9565b60405161046f9190613d75565b60405180910390f35b610492600480360381019061048d9190613d90565b6116d6565b60405161049f9190613c5e565b60405180910390f35b6104b06116f6565b6040516104bd9190613aee565b60405180910390f35b6104ce611700565b005b6104ea60048036038101906104e59190613d90565b61179e565b6040516104f79190613d75565b60405180910390f35b61051a60048036038101906105159190613c79565b6117c8565b005b6105246118b4565b6040516105319190613d75565b60405180910390f35b610554600480360381019061054f9190613d90565b6118c9565b6040516105619190613de0565b60405180910390f35b6105726118fd565b60405161057f9190613c5e565b60405180910390f35b6105a2600480360381019061059d9190613d90565b611917565b6040516105af9190613eb9565b60405180910390f35b6105c06119b8565b6040516105cd9190613aee565b60405180910390f35b6105f060048036038101906105eb9190613d39565b6119c2565b6040516105fd9190613c34565b60405180910390f35b61060e611b68565b60405161061b9190613c5e565b60405180910390f35b61062c611b80565b005b61064860048036038101906106439190613b7b565b611b94565b6040516106559190613aee565b60405180910390f35b61067860048036038101906106739190613d39565b611bdb565b005b610682611c2e565b60405161068f9190613aee565b60405180910390f35b6106b260048036038101906106ad9190613a04565b611c38565b005b6106bc611d27565b6040516106c99190613bca565b60405180910390f35b6106ec60048036038101906106e79190613d90565b611d50565b6040516106f99190613c5e565b60405180910390f35b61071c60048036038101906107179190613d90565b611d80565b6040516107299190613aee565b60405180910390f35b61074c60048036038101906107479190613d90565b611da0565b6040516107599190613aee565b60405180910390f35b61077c60048036038101906107779190613a04565b611dc0565b005b61079860048036038101906107939190613be5565b611e7b565b005b6107a26122c3565b6040516107af9190613bca565b60405180910390f35b6107d260048036038101906107cd9190613d90565b6122eb565b6040516107df9190613c34565b60405180910390f35b61080260048036038101906107fd9190613d39565b61233c565b005b61081e60048036038101906108199190613c79565b6123de565b005b61083a60048036038101906108359190613edb565b61240a565b005b6108446124e8565b6040516108519190613c5e565b60405180910390f35b610874600480360381019061086f9190613c79565b612502565b005b610890600480360381019061088b9190613d39565b6125fd565b005b6108ac60048036038101906108a79190613a04565b61269f565b005b6108c860048036038101906108c39190613f1b565b612722565b6040516108d59190613c5e565b60405180910390f35b6108f860048036038101906108f39190613be5565b61286d565b005b610902612cc3565b60405161090f9190613aee565b60405180910390f35b610920612ccd565b005b61093c60048036038101906109379190613d90565b612d1d565b6040516109499190614093565b60405180910390f35b61095a612daf565b61096381611653565b6109a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099990614112565b60405180910390fd5b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167fbb52b7da265bdd4f079396e04f30f0fa978952e7a1c51f30f2d356314b38dd4560405160405180910390a250565b600061271082610a5257600354610a56565b6002545b84610a619190614161565b610a6b91906141d2565b905092915050565b6000600b60008381526020019081526020016000208363ffffffff1681548110610aa057610a9f614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905092915050565b60008060005b600b6000868152602001908152602001600020805490508163ffffffff161015610beb5783600b60008781526020019081526020016000208263ffffffff1681548110610b3057610b2f614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051602001610b7392919061429b565b604051602081830303815290604052805190602001209150600b60008681526020019081526020016000208163ffffffff1681548110610bb657610bb5614203565b5b9060005260206000209060030201600001548203610bd8578192505050610bf4565b8080610be3906142c7565b915050610ae0565b506000801b9150505b92915050565b6000600860009054906101000a900463ffffffff16905090565b6000600154905090565b610c26612daf565b7f000000000000000000000000000000000000000000000000000000000000000063ffffffff168163ffffffff161015610c95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8c90614365565b60405180910390fd5b600860009054906101000a900463ffffffff1663ffffffff168163ffffffff161115610cf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ced906143f7565b60405180910390fd5b80600860046101000a81548163ffffffff021916908363ffffffff16021790555050565b60096000838152602001908152602001600020600201600c9054906101000a900460ff1615610d7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7590614463565b60405180910390fd5b6000610d8983611d80565b11610dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc0906144cf565b60405180910390fd5b42610dd3836118c9565b67ffffffffffffffff1611610e1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e149061453b565b60405180910390fd5b610e268161179e565b15610e66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5d906145a7565b60405180910390fd5b610e76610e71612e2d565b611653565b15610eb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ead90614639565b60405180910390fd5b600460009054906101000a900463ffffffff1663ffffffff16610ed883612e35565b63ffffffff1610610f1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f15906146cb565b60405180910390fd5b600b60008381526020019081526020016000206040518060600160405280838152602001610f4a612e2d565b73ffffffffffffffffffffffffffffffffffffffff16815260200160015481525090806001815401808255809150506001900390600052602060002090600302016000909190919091506000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040820151816002015550506110267f000000000000000000000000000000000000000000000000000000000000000061101d612e2d565b30600154612e5a565b61102e612e2d565b73ffffffffffffffffffffffffffffffffffffffff16827f551f33b33fb1beab49412f916ef79343e61178ff160ab95c2dd97dce419f12a36001548461107387611d50565b6001600b60008a81526020019081526020016000208054905061109691906146eb565b6040516110a6949392919061471f565b60405180910390a35050565b60048054906101000a900460ff166110ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f6906147d6565b60405180910390fd5b600754821015611144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113b90614842565b60405180910390fd5b60096000848152602001908152602001600020600201600c9054906101000a900460ff16156111a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119f906148ae565b60405180910390fd5b600b600c60008581526020019081526020016000208054905010611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f890614940565b60405180910390fd5b6000808263ffffffff1614611216578161122a565b600860009054906101000a900463ffffffff165b9050600860049054906101000a900463ffffffff1663ffffffff168163ffffffff16101561128d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611284906149ac565b60405180910390fd5b60088054906101000a900463ffffffff1663ffffffff168163ffffffff1611156112ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e390614a18565b60405180910390fd5b60006112f9846001610a40565b9050806005600082825461130d9190614a38565b92505081905550600062015180836113259190614a6c565b63ffffffff16426113369190614a38565b9050600061134387611da0565b1115611423578460096000888152602001908152602001600020600001600082825461136f9190614a38565b925050819055508460096000888152602001908152602001600020600101600082825461139c9190614a38565b92505081905550600c60008781526020019081526020016000206113be612e2d565b9080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506115a3565b6040518060a001604052808681526020018681526020018267ffffffffffffffff168152602001600063ffffffff1681526020016000151581525060096000888152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060608201518160020160086101000a81548163ffffffff021916908363ffffffff160217905550608082015181600201600c6101000a81548160ff021916908315150217905550905050600a869080600181540180825580915050600190039060005260206000200160009091909190915055600c6000878152602001908152602001600020611542612e2d565b9080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b6115e17f00000000000000000000000000000000000000000000000000000000000000006115cf612e2d565b3085896115dc9190614a38565b612e5a565b6115e9612e2d565b73ffffffffffffffffffffffffffffffffffffffff16867f68f63c844ad0c78985e23c5265ccb4532c97fd97bcbfc4653abadccec7cd39858784604051611631929190614aa9565b60405180910390a3505050505050565b611649612daf565b8060078190555050565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600060096000838152602001908152602001600020600201600c9054906101000a900460ff169050919050565b6000600b6000838152602001908152602001600020805490509050919050565b6000600354905090565b611708612daf565b6000600554905060006005819055506117647f0000000000000000000000000000000000000000000000000000000000000000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683612ee3565b7f835862a12039ab712842887f732f62f9ba4e46c8a157b8f2ece290bb03cb6229816040516117939190613aee565b60405180910390a150565b6000600f600083815260200190815260200160002060009054906101000a900460ff169050919050565b6117d0612daf565b60088054906101000a900463ffffffff1663ffffffff168163ffffffff16111561182f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182690614b44565b60405180910390fd5b600860049054906101000a900463ffffffff1663ffffffff168163ffffffff161015611890576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188790614bd6565b60405180910390fd5b80600860006101000a81548163ffffffff021916908363ffffffff16021790555050565b600060048054906101000a900460ff16905090565b60006009600083815260200190815260200160002060020160009054906101000a900467ffffffffffffffff169050919050565b6000600860049054906101000a900463ffffffff16905090565b6060600c60008381526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156119ac57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611962575b50505050509050919050565b6000600554905090565b60008060005b600a805490508163ffffffff161015611b275760005b600c6000600a8463ffffffff16815481106119fc576119fb614203565b5b90600052602060002001548152602001908152602001600020805490508163ffffffff161015611b135784600c6000600a8563ffffffff1681548110611a4557611a44614203565b5b906000526020600020015481526020019081526020016000208263ffffffff1681548110611a7657611a75614203565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051602001611ab292919061429b565b604051602081830303815290604052805190602001209250600a8263ffffffff1681548110611ae457611ae3614203565b5b90600052602060002001548303611b0057829350505050611b63565b8080611b0b906142c7565b9150506119de565b508080611b1f906142c7565b9150506119c8565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5a90614c42565b60405180910390fd5b919050565b600060088054906101000a900463ffffffff16905090565b611b88612daf565b611b926000612f69565b565b6000600b60008381526020019081526020016000208363ffffffff1681548110611bc157611bc0614203565b5b906000526020600020906003020160020154905092915050565b611be3612daf565b60006001549050816001819055507fd2328bb8dd1e1720cf89a77e74ee155c31ac57f46d97fcc0bd7bd4f93616d0a78282604051611c22929190614c62565b60405180910390a15050565b6000600754905090565b611c40612daf565b611c4981611653565b15611c89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8090614cd7565b60405180910390fd5b6001600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167fa899921e7177cee9570d45230a75616ce1a40246c14b96f7b27f97db0265992b60405160405180910390a250565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006009600083815260200190815260200160002060020160089054906101000a900463ffffffff169050919050565b600060096000838152602001908152602001600020600001549050919050565b600060096000838152602001908152602001600020600101549050919050565b611dc8612daf565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2e90614d69565b60405180910390fd5b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611e8b611e86612e2d565b611653565b611eca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec190614dd5565b60405180910390fd5b60096000838152602001908152602001600020600201600c9054906101000a900460ff1615611f2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2590614463565b60405180910390fd5b6000611f39836116d6565b905060006009600085815260200190815260200160002060020160089054906101000a900463ffffffff1690505b611f70846116d6565b63ffffffff168163ffffffff1610156120655782600b60008681526020019081526020016000208263ffffffff1681548110611faf57611fae614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051602001611ff292919061429b565b60405160208183030381529060405280519060200120600b60008681526020019081526020016000208263ffffffff168154811061203357612032614203565b5b9060005260206000209060030201600001540361205257809150612065565b808061205d906142c7565b915050611f67565b5061206f836116d6565b63ffffffff168163ffffffff16106120bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b390614e41565b60405180910390fd5b60006009600085815260200190815260200160002060020160089054906101000a900463ffffffff1690505b8163ffffffff168163ffffffff161015612118576121058461302d565b8080612110906142c7565b9150506120e8565b5061212383826132a6565b60006001826121329190614e61565b90505b61213e846116d6565b63ffffffff168163ffffffff1610156122bd576122147f0000000000000000000000000000000000000000000000000000000000000000600b60008781526020019081526020016000208363ffffffff16815481106121a05761219f614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600b60008881526020019081526020016000208463ffffffff16815481106121fd576121fc614203565b5b906000526020600020906003020160020154612ee3565b6000600b60008681526020019081526020016000208263ffffffff168154811061224157612240614203565b5b90600052602060002090600302016002018190555060016009600086815260200190815260200160002060020160088282829054906101000a900463ffffffff1661228c9190614e61565b92506101000a81548163ffffffff021916908363ffffffff16021790555080806122b5906142c7565b915050612135565b50505050565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b600060096000838152602001908152602001600020600201600c9054906101000a900460ff16612320576000801b9050612337565b600e60008381526020019081526020016000205490505b919050565b612344612daf565b61271067ffffffffffffffff16811115612393576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238a90614f0b565b60405180910390fd5b60006002549050816002819055507fb32e60b50c1e1ad5c64febbcee57ea99456dec6a2f257b884aaba85e3f69ed1a82826040516123d2929190614c62565b60405180910390a15050565b6123e6612daf565b80600460006101000a81548163ffffffff021916908363ffffffff16021790555050565b61241a612415612e2d565b611653565b612459576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245090614dd5565b60405180910390fd5b8063ffffffff1661246983612e35565b63ffffffff1610156124b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a790614f9d565b60405180910390fd5b60005b8163ffffffff168163ffffffff1610156124e3576124d08361302d565b80806124db906142c7565b9150506124b3565b505050565b6000600460009054906101000a900463ffffffff16905090565b61250a612daf565b7f000000000000000000000000000000000000000000000000000000000000000063ffffffff168163ffffffff161115612579576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125709061502f565b60405180910390fd5b600860009054906101000a900463ffffffff1663ffffffff168163ffffffff1610156125da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d1906150c1565b60405180910390fd5b806008806101000a81548163ffffffff021916908363ffffffff16021790555050565b612605612daf565b61271067ffffffffffffffff16811115612654576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264b90615153565b60405180910390fd5b60006003549050816003819055507f943e030e96399de4404dd176c1abe38dd7add787c4de0ad5b2d97036d17d341a8282604051612693929190614c62565b60405180910390a15050565b6126a7612daf565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612716576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270d906151e5565b60405180910390fd5b61271f81612f69565b50565b60008061272e836116d6565b905060005b8163ffffffff168163ffffffff16101561282b5784600b60008681526020019081526020016000208263ffffffff168154811061277357612772614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516020016127b692919061429b565b60405160208183030381529060405280519060200120600b60008681526020019081526020016000208263ffffffff16815481106127f7576127f6614203565b5b90600052602060002090600302016000015403612818578092505050612867565b8080612823906142c7565b915050612733565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285e90614e41565b60405180910390fd5b92915050565b600061287883611d80565b116128b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128af906144cf565b60405180910390fd5b426128c2836118c9565b67ffffffffffffffff161115806128e557506128e46128df612e2d565b611653565b5b612924576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291b90615277565b60405180910390fd5b600061292f83612e35565b63ffffffff1614612975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296c906152e3565b60405180910390fd5b60096000838152602001908152602001600020600201600c9054906101000a900460ff16156129d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d0906148ae565b60405180910390fd5b600080600090505b600c6000858152602001908152602001600020805490508163ffffffff161015612af9578383600c60008781526020019081526020016000208363ffffffff1681548110612a3257612a31614203565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051602001612a6e92919061429b565b6040516020818303038152906040528051906020012003612ae657600c60008581526020019081526020016000208163ffffffff1681548110612ab457612ab3614203565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150612af9565b8080612af1906142c7565b9150506129e1565b50600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612b69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6090615375565b60405180910390fd5b600060096000858152602001908152602001600020600101546009600086815260200190815260200160002060000154612ba391906146eb565b90508060056000828254612bb79190614a38565b92505081905550612bff7f0000000000000000000000000000000000000000000000000000000000000000836009600088815260200190815260200160002060010154612ee3565b600160096000868152602001908152602001600020600201600c6101000a81548160ff021916908315150217905550612c36612e2d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16857f97443692ba0b456a7c1c0d1383ff31935d49d59d27f2b0dfbb1207ada4cd1553600960008981526020019081526020016000206001015485612ca68a6116d6565b604051612cb593929190615395565b60405180910390a450505050565b6000600254905090565b612cd5612daf565b60006004806101000a81548160ff0219169083151502179055507f476139baa7d83a008d821f497f65433eebe998b690b1bfa7c26764e17f6a41a660405160405180910390a1565b612d25613956565b6040518060e00160405280612d39846118c9565b67ffffffffffffffff168152602001612d5184611d80565b8152602001612d5f846116a9565b15158152602001612d6f84611d50565b63ffffffff168152602001612d83846116d6565b63ffffffff168152602001612d9784611917565b8152602001612da584611da0565b8152509050919050565b612db7612e2d565b73ffffffffffffffffffffffffffffffffffffffff16612dd5611d27565b73ffffffffffffffffffffffffffffffffffffffff1614612e2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2290615418565b60405180910390fd5b565b600033905090565b6000612e4082611d50565b612e49836116d6565b612e539190615438565b9050919050565b612edd846323b872dd60e01b858585604051602401612e7b93929190615470565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506136c1565b50505050565b612f648363a9059cbb60e01b8484604051602401612f029291906154a7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506136c1565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061303882611d50565b90506000600b60008481526020019081526020016000208263ffffffff168154811061306757613066614203565b5b90600052602060002090600302016002015490506000600b60008581526020019081526020016000208363ffffffff16815481106130a8576130a7614203565b5b90600052602060002090600302016002018190555060006130ca826001610a40565b905080600560008282546130de9190614a38565b9250508190555080826130f191906146eb565b6009600086815260200190815260200160002060000160008282546131169190614a38565b9250508190555060016009600086815260200190815260200160002060020160088282829054906101000a900463ffffffff166131539190614e61565b92506101000a81548163ffffffff021916908363ffffffff1602179055506000600b60008681526020019081526020016000208463ffffffff168154811061319e5761319d614203565b5b90600052602060002090600302016000015490506001600f600083815260200190815260200160002060006101000a81548160ff021916908315150217905550600b60008681526020019081526020016000208463ffffffff168154811061320957613208614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16857fc14a0d61003e8b32a4b43824a0a3004c4127cfa1d6fee5d1065c9a126559746e858461327e8a611d50565b6132878b6116d6565b604051613297949392919061471f565b60405180910390a35050505050565b6132ae612e2d565b73ffffffffffffffffffffffffffffffffffffffff16600b60008481526020019081526020016000208263ffffffff16815481106132ef576132ee614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603613377576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161336e90615542565b60405180910390fd5b600b60008381526020019081526020016000208163ffffffff16815481106133a2576133a1614203565b5b906000526020600020906003020160000154600e600084815260200190815260200160002081905550600060096000848152602001908152602001600020600001549050600060096000858152602001908152602001600020600001819055506000600b60008581526020019081526020016000208363ffffffff168154811061342f5761342e614203565b5b906000526020600020906003020160020154905061344e826000610a40565b6005600082825461345f9190614a38565b925050819055506000600b60008681526020019081526020016000208463ffffffff168154811061349357613492614203565b5b90600052602060002090600302016002018190555060006134b5836000610a40565b82846134c19190614a38565b6134cb91906146eb565b90506135547f0000000000000000000000000000000000000000000000000000000000000000600b60008881526020019081526020016000208663ffffffff168154811061351c5761351b614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683612ee3565b6001846135619190614e61565b6009600087815260200190815260200160002060020160086101000a81548163ffffffff021916908363ffffffff160217905550600160096000878152602001908152602001600020600201600c6101000a81548160ff021916908315150217905550600b60008681526020019081526020016000208463ffffffff16815481106135ef576135ee614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16857eda277d1847c73099f0abeea3c92b15faad49da38803b4294b794958a1b763284600b60008a81526020019081526020016000208863ffffffff168154811061368457613683614203565b5b90600052602060002090600302016000015485896136a18c6116d6565b6040516136b2959493929190615562565b60405180910390a35050505050565b6000613723826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166137899092919063ffffffff16565b905060008151148061374557508080602001905181019061374491906155ca565b5b613784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161377b90615669565b60405180910390fd5b505050565b606061379884846000856137a1565b90509392505050565b6060824710156137e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137dd906156fb565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161380f919061578c565b60006040518083038185875af1925050503d806000811461384c576040519150601f19603f3d011682016040523d82523d6000602084013e613851565b606091505b50915091506138628783838761386e565b92505050949350505050565b606083156138d05760008351036138c857613888856138e3565b6138c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138be906157ef565b60405180910390fd5b5b8290506138db565b6138da8383613906565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156139195781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161394d9190615864565b60405180910390fd5b6040518060e001604052806000815260200160008152602001600015158152602001600063ffffffff168152602001600063ffffffff16815260200160608152602001600081525090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139d1826139a6565b9050919050565b6139e1816139c6565b81146139ec57600080fd5b50565b6000813590506139fe816139d8565b92915050565b600060208284031215613a1a57613a196139a1565b5b6000613a28848285016139ef565b91505092915050565b6000819050919050565b613a4481613a31565b8114613a4f57600080fd5b50565b600081359050613a6181613a3b565b92915050565b60008115159050919050565b613a7c81613a67565b8114613a8757600080fd5b50565b600081359050613a9981613a73565b92915050565b60008060408385031215613ab657613ab56139a1565b5b6000613ac485828601613a52565b9250506020613ad585828601613a8a565b9150509250929050565b613ae881613a31565b82525050565b6000602082019050613b036000830184613adf565b92915050565b600063ffffffff82169050919050565b613b2281613b09565b8114613b2d57600080fd5b50565b600081359050613b3f81613b19565b92915050565b6000819050919050565b613b5881613b45565b8114613b6357600080fd5b50565b600081359050613b7581613b4f565b92915050565b60008060408385031215613b9257613b916139a1565b5b6000613ba085828601613b30565b9250506020613bb185828601613b66565b9150509250929050565b613bc4816139c6565b82525050565b6000602082019050613bdf6000830184613bbb565b92915050565b60008060408385031215613bfc57613bfb6139a1565b5b6000613c0a85828601613b66565b9250506020613c1b85828601613a52565b9150509250929050565b613c2e81613b45565b82525050565b6000602082019050613c496000830184613c25565b92915050565b613c5881613b09565b82525050565b6000602082019050613c736000830184613c4f565b92915050565b600060208284031215613c8f57613c8e6139a1565b5b6000613c9d84828501613b30565b91505092915050565b60008060408385031215613cbd57613cbc6139a1565b5b6000613ccb85828601613b66565b9250506020613cdc85828601613b66565b9150509250929050565b600080600060608486031215613cff57613cfe6139a1565b5b6000613d0d86828701613b66565b9350506020613d1e86828701613a52565b9250506040613d2f86828701613b30565b9150509250925092565b600060208284031215613d4f57613d4e6139a1565b5b6000613d5d84828501613a52565b91505092915050565b613d6f81613a67565b82525050565b6000602082019050613d8a6000830184613d66565b92915050565b600060208284031215613da657613da56139a1565b5b6000613db484828501613b66565b91505092915050565b600067ffffffffffffffff82169050919050565b613dda81613dbd565b82525050565b6000602082019050613df56000830184613dd1565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613e30816139c6565b82525050565b6000613e428383613e27565b60208301905092915050565b6000602082019050919050565b6000613e6682613dfb565b613e708185613e06565b9350613e7b83613e17565b8060005b83811015613eac578151613e938882613e36565b9750613e9e83613e4e565b925050600181019050613e7f565b5085935050505092915050565b60006020820190508181036000830152613ed38184613e5b565b905092915050565b60008060408385031215613ef257613ef16139a1565b5b6000613f0085828601613b66565b9250506020613f1185828601613b30565b9150509250929050565b60008060408385031215613f3257613f316139a1565b5b6000613f4085828601613a52565b9250506020613f5185828601613b66565b9150509250929050565b613f6481613a31565b82525050565b613f7381613a67565b82525050565b613f8281613b09565b82525050565b600082825260208201905092915050565b6000613fa482613dfb565b613fae8185613f88565b9350613fb983613e17565b8060005b83811015613fea578151613fd18882613e36565b9750613fdc83613e4e565b925050600181019050613fbd565b5085935050505092915050565b600060e08301600083015161400f6000860182613f5b565b5060208301516140226020860182613f5b565b5060408301516140356040860182613f6a565b5060608301516140486060860182613f79565b50608083015161405b6080860182613f79565b5060a083015184820360a08601526140738282613f99565b91505060c083015161408860c0860182613f5b565b508091505092915050565b600060208201905081810360008301526140ad8184613ff7565b905092915050565b600082825260208201905092915050565b7f426f756e747956333a206e6f7420617070726f76657200000000000000000000600082015250565b60006140fc6016836140b5565b9150614107826140c6565b602082019050919050565b6000602082019050818103600083015261412b816140ef565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061416c82613a31565b915061417783613a31565b925082820261418581613a31565b9150828204841483151761419c5761419b614132565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006141dd82613a31565b91506141e883613a31565b9250826141f8576141f76141a3565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b61424d61424882613a31565b614232565b82525050565b60008160601b9050919050565b600061426b82614253565b9050919050565b600061427d82614260565b9050919050565b614295614290826139c6565b614272565b82525050565b60006142a7828561423c565b6020820191506142b78284614284565b6014820191508190509392505050565b60006142d282613b09565b915063ffffffff82036142e8576142e7614132565b5b600182019050919050565b7f426f756e747956333a206d696e206475726174696f6e206d757374206265203e60008201527f3d20312064617900000000000000000000000000000000000000000000000000602082015250565b600061434f6027836140b5565b915061435a826142f3565b604082019050919050565b6000602082019050818103600083015261437e81614342565b9050919050565b7f426f756e747956333a206d696e206475726174696f6e206d757374206265203c60008201527f3d2064656661756c74206475726174696f6e0000000000000000000000000000602082015250565b60006143e16032836140b5565b91506143ec82614385565b604082019050919050565b60006020820190508181036000830152614410816143d4565b9050919050565b7f426f756e747956333a20626f756e747920636c6f736564000000000000000000600082015250565b600061444d6017836140b5565b915061445882614417565b602082019050919050565b6000602082019050818103600083015261447c81614440565b9050919050565b7f426f756e747956333a20626f756e7479206e6f742066756e6465640000000000600082015250565b60006144b9601b836140b5565b91506144c482614483565b602082019050919050565b600060208201905081810360008301526144e8816144ac565b9050919050565b7f426f756e747956333a20626f756e747920657870697265640000000000000000600082015250565b60006145256018836140b5565b9150614530826144ef565b602082019050919050565b6000602082019050818103600083015261455481614518565b9050919050565b7f426f756e747956333a207061796c6f61642072656a6563746564000000000000600082015250565b6000614591601a836140b5565b915061459c8261455b565b602082019050919050565b600060208201905081810360008301526145c081614584565b9050919050565b7f426f756e747956333a20617070726f766572732063616e6e6f74207375626d6960008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b60006146236021836140b5565b915061462e826145c7565b604082019050919050565b6000602082019050818103600083015261465281614616565b9050919050565b7f426f756e747956333a206d617820616374697665207375626d697373696f6e7360008201527f2072656163686564000000000000000000000000000000000000000000000000602082015250565b60006146b56028836140b5565b91506146c082614659565b604082019050919050565b600060208201905081810360008301526146e4816146a8565b9050919050565b60006146f682613a31565b915061470183613a31565b925082820390508181111561471957614718614132565b5b92915050565b60006080820190506147346000830187613adf565b6147416020830186613c25565b61474e6040830185613c4f565b61475b6060830184613c4f565b95945050505050565b7f426f756e747956333a20636f6e7472616374206e6f206c6f6e6765722061636360008201527f657074696e6720626f756e746965730000000000000000000000000000000000602082015250565b60006147c0602f836140b5565b91506147cb82614764565b604082019050919050565b600060208201905081810360008301526147ef816147b3565b9050919050565b7f426f756e747956333a2062656c6f77206d696e696d756d20626f756e74790000600082015250565b600061482c601e836140b5565b9150614837826147f6565b602082019050919050565b6000602082019050818103600083015261485b8161481f565b9050919050565b7f426f756e747956333a20626f756e747920616c726561647920636c6f73656400600082015250565b6000614898601f836140b5565b91506148a382614862565b602082019050919050565b600060208201905081810360008301526148c78161488b565b9050919050565b7f426f756e747956333a20626f756e747920616c7265616479206861732031302060008201527f66756e6465727300000000000000000000000000000000000000000000000000602082015250565b600061492a6027836140b5565b9150614935826148ce565b604082019050919050565b600060208201905081810360008301526149598161491d565b9050919050565b7f426f756e747956333a206475726174696f6e2062656c6f77206d696e696d756d600082015250565b60006149966020836140b5565b91506149a182614960565b602082019050919050565b600060208201905081810360008301526149c581614989565b9050919050565b7f426f756e747956333a206475726174696f6e2061626f7665206d6178696d756d600082015250565b6000614a026020836140b5565b9150614a0d826149cc565b602082019050919050565b60006020820190508181036000830152614a31816149f5565b9050919050565b6000614a4382613a31565b9150614a4e83613a31565b9250828201905080821115614a6657614a65614132565b5b92915050565b6000614a7782613b09565b9150614a8283613b09565b9250828202614a9081613b09565b9150808214614aa257614aa1614132565b5b5092915050565b6000604082019050614abe6000830185613adf565b614acb6020830184613dd1565b9392505050565b7f426f756e747956333a2064656661756c74206475726174696f6e206d7573742060008201527f6265203c3d206d6178206475726174696f6e0000000000000000000000000000602082015250565b6000614b2e6032836140b5565b9150614b3982614ad2565b604082019050919050565b60006020820190508181036000830152614b5d81614b21565b9050919050565b7f426f756e747956333a2064656661756c74206475726174696f6e206d7573742060008201527f6265203e3d206d696e206475726174696f6e0000000000000000000000000000602082015250565b6000614bc06032836140b5565b9150614bcb82614b64565b604082019050919050565b60006020820190508181036000830152614bef81614bb3565b9050919050565b7f426f756e747956333a20626f756e74794944206e6f7420666f756e6400000000600082015250565b6000614c2c601c836140b5565b9150614c3782614bf6565b602082019050919050565b60006020820190508181036000830152614c5b81614c1f565b9050919050565b6000604082019050614c776000830185613adf565b614c846020830184613adf565b9392505050565b7f426f756e747956333a20616c726561647920617070726f766572000000000000600082015250565b6000614cc1601a836140b5565b9150614ccc82614c8b565b602082019050919050565b60006020820190508181036000830152614cf081614cb4565b9050919050565b7f426f756e747956333a206665652072656365697665722061646472657373206360008201527f616e6e6f74206265203078300000000000000000000000000000000000000000602082015250565b6000614d53602c836140b5565b9150614d5e82614cf7565b604082019050919050565b60006020820190508181036000830152614d8281614d46565b9050919050565b7f426f756e747956333a2063616c6c6572206973206e6f7420617070726f766572600082015250565b6000614dbf6020836140b5565b9150614dca82614d89565b602082019050919050565b60006020820190508181036000830152614dee81614db2565b9050919050565b7f426f756e747956333a207375626d697373696f6e206e6f7420666f756e640000600082015250565b6000614e2b601e836140b5565b9150614e3682614df5565b602082019050919050565b60006020820190508181036000830152614e5a81614e1e565b9050919050565b6000614e6c82613b09565b9150614e7783613b09565b9250828201905063ffffffff811115614e9357614e92614132565b5b92915050565b7f426f756e747956333a206d616b657220666565206d757374206265203c3d203160008201527f3030250000000000000000000000000000000000000000000000000000000000602082015250565b6000614ef56023836140b5565b9150614f0082614e99565b604082019050919050565b60006020820190508181036000830152614f2481614ee8565b9050919050565b7f426f756e747956333a206e6f7420656e6f75676820616374697665207375626d60008201527f697373696f6e7300000000000000000000000000000000000000000000000000602082015250565b6000614f876027836140b5565b9150614f9282614f2b565b604082019050919050565b60006020820190508181036000830152614fb681614f7a565b9050919050565b7f426f756e747956333a206d6178206475726174696f6e206d757374206265203c60008201527f3d20333635206461797300000000000000000000000000000000000000000000602082015250565b6000615019602a836140b5565b915061502482614fbd565b604082019050919050565b600060208201905081810360008301526150488161500c565b9050919050565b7f426f756e747956333a206d6178206475726174696f6e206d757374206265203e60008201527f3d2064656661756c74206475726174696f6e0000000000000000000000000000602082015250565b60006150ab6032836140b5565b91506150b68261504f565b604082019050919050565b600060208201905081810360008301526150da8161509e565b9050919050565b7f426f756e747956333a2074616b657220666565206d757374206265203c3d203160008201527f3030250000000000000000000000000000000000000000000000000000000000602082015250565b600061513d6023836140b5565b9150615148826150e1565b604082019050919050565b6000602082019050818103600083015261516c81615130565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006151cf6026836140b5565b91506151da82615173565b604082019050919050565b600060208201905081810360008301526151fe816151c2565b9050919050565b7f426f756e747956333a206f6e6c7920617070726f766572732063616e20636c6f60008201527f7365206265666f72652065787069726174696f6e000000000000000000000000602082015250565b60006152616034836140b5565b915061526c82615205565b604082019050919050565b6000602082019050818103600083015261529081615254565b9050919050565b7f426f756e747956333a2068617320616374697665207375626d697373696f6e00600082015250565b60006152cd601f836140b5565b91506152d882615297565b602082019050919050565b600060208201905081810360008301526152fc816152c0565b9050919050565b7f426f756e747956333a206661696c656420746f206861736820626f756e74794960008201527f4420776974682066756e64657220616464726573730000000000000000000000602082015250565b600061535f6035836140b5565b915061536a82615303565b604082019050919050565b6000602082019050818103600083015261538e81615352565b9050919050565b60006060820190506153aa6000830186613adf565b6153b76020830185613adf565b6153c46040830184613c4f565b949350505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006154026020836140b5565b915061540d826153cc565b602082019050919050565b60006020820190508181036000830152615431816153f5565b9050919050565b600061544382613b09565b915061544e83613b09565b9250828203905063ffffffff81111561546a57615469614132565b5b92915050565b60006060820190506154856000830186613bbb565b6154926020830185613bbb565b61549f6040830184613adf565b949350505050565b60006040820190506154bc6000830185613bbb565b6154c96020830184613adf565b9392505050565b7f426f756e747956333a2063616e6e6f7420617070726f7665206f776e2073756260008201527f6d697373696f6e00000000000000000000000000000000000000000000000000602082015250565b600061552c6027836140b5565b9150615537826154d0565b604082019050919050565b6000602082019050818103600083015261555b8161551f565b9050919050565b600060a0820190506155776000830188613adf565b6155846020830187613c25565b6155916040830186613adf565b61559e6060830185613c4f565b6155ab6080830184613c4f565b9695505050505050565b6000815190506155c481613a73565b92915050565b6000602082840312156155e0576155df6139a1565b5b60006155ee848285016155b5565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000615653602a836140b5565b915061565e826155f7565b604082019050919050565b6000602082019050818103600083015261568281615646565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006156e56026836140b5565b91506156f082615689565b604082019050919050565b60006020820190508181036000830152615714816156d8565b9050919050565b600081519050919050565b600081905092915050565b60005b8381101561574f578082015181840152602081019050615734565b60008484015250505050565b60006157668261571b565b6157708185615726565b9350615780818560208601615731565b80840191505092915050565b6000615798828461575b565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006157d9601d836140b5565b91506157e4826157a3565b602082019050919050565b60006020820190508181036000830152615808816157cc565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006158368261580f565b61584081856140b5565b9350615850818560208601615731565b6158598161581a565b840191505092915050565b6000602082019050818103600083015261587e818461582b565b90509291505056fea264697066735822122035e0248730631ba339719bfb2fcf22799e6ee939d8f9c8340803b304081b1d3c64736f6c634300081200330000000000000000000000006e2a43be0b1d33b726f0ca3b8de60b3482b8b0500000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000000000000000000fa00000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000090423cbde95cbc6fa30860b22ef5dd0181283914000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000056bc75e2d631000000000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000016d
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102bb5760003560e01c8063715018a611610182578063b8238868116100e9578063f1cca8aa116100a2578063fc6e5f4d1161007c578063fc6e5f4d146108de578063fc741c7c146108fa578063fd290bba14610918578063fe15a3ba14610922576102bb565b8063f1cca8aa14610876578063f2fde38b14610892578063fb0792ca146108ae576102bb565b8063b8238868146107b8578063b8bd3dbb146107e8578063cb23879b14610804578063de81367914610820578063e58ad0431461083c578063ef9218261461085a576102bb565b80638dc320a31161013b5780638dc320a3146106d257806392d3199b14610702578063990f5b3c146107325780639c4e314814610762578063a8da684b1461077e578063b42b06351461079a576102bb565b8063715018a6146106245780637b4069421461062e578063831a61401461065e57806389b8db551461067a5780638d970075146106985780638da5cb5b146106b4576102bb565b806343dd25e81161022657806356406fa5116101df57806356406fa51461053a578063567157611461056a57806363fb42ef14610588578063682c2058146105b85780636a6a521b146105d65780636db5c8fd14610606576102bb565b806343dd25e81461047857806343f0179b146104a8578063476343ee146104c6578063491b1813146104d05780634bdfa297146105005780634fb4f17e1461051c576102bb565b80633273b110116102785780633273b110146103a857806336d85083146103c457806339ea26dd146103e05780633b58f49a146103fc5780633f131d9f146104185780633fb8c56d14610448576102bb565b806318d13ef7146102c0578063226c7e2d146102dc57806322c3a8011461030c5780632619e4e51461033c5780632af7e2ea1461036c5780632f7c8a771461038a575b600080fd5b6102da60048036038101906102d59190613a04565b610952565b005b6102f660048036038101906102f19190613a9f565b610a40565b6040516103039190613aee565b60405180910390f35b61032660048036038101906103219190613b7b565b610a73565b6040516103339190613bca565b60405180910390f35b61035660048036038101906103519190613be5565b610ada565b6040516103639190613c34565b60405180910390f35b610374610bfa565b6040516103819190613c5e565b60405180910390f35b610392610c14565b60405161039f9190613aee565b60405180910390f35b6103c260048036038101906103bd9190613c79565b610c1e565b005b6103de60048036038101906103d99190613ca6565b610d1a565b005b6103fa60048036038101906103f59190613ce6565b6110b2565b005b61041660048036038101906104119190613d39565b611641565b005b610432600480360381019061042d9190613a04565b611653565b60405161043f9190613d75565b60405180910390f35b610462600480360381019061045d9190613d90565b6116a9565b60405161046f9190613d75565b60405180910390f35b610492600480360381019061048d9190613d90565b6116d6565b60405161049f9190613c5e565b60405180910390f35b6104b06116f6565b6040516104bd9190613aee565b60405180910390f35b6104ce611700565b005b6104ea60048036038101906104e59190613d90565b61179e565b6040516104f79190613d75565b60405180910390f35b61051a60048036038101906105159190613c79565b6117c8565b005b6105246118b4565b6040516105319190613d75565b60405180910390f35b610554600480360381019061054f9190613d90565b6118c9565b6040516105619190613de0565b60405180910390f35b6105726118fd565b60405161057f9190613c5e565b60405180910390f35b6105a2600480360381019061059d9190613d90565b611917565b6040516105af9190613eb9565b60405180910390f35b6105c06119b8565b6040516105cd9190613aee565b60405180910390f35b6105f060048036038101906105eb9190613d39565b6119c2565b6040516105fd9190613c34565b60405180910390f35b61060e611b68565b60405161061b9190613c5e565b60405180910390f35b61062c611b80565b005b61064860048036038101906106439190613b7b565b611b94565b6040516106559190613aee565b60405180910390f35b61067860048036038101906106739190613d39565b611bdb565b005b610682611c2e565b60405161068f9190613aee565b60405180910390f35b6106b260048036038101906106ad9190613a04565b611c38565b005b6106bc611d27565b6040516106c99190613bca565b60405180910390f35b6106ec60048036038101906106e79190613d90565b611d50565b6040516106f99190613c5e565b60405180910390f35b61071c60048036038101906107179190613d90565b611d80565b6040516107299190613aee565b60405180910390f35b61074c60048036038101906107479190613d90565b611da0565b6040516107599190613aee565b60405180910390f35b61077c60048036038101906107779190613a04565b611dc0565b005b61079860048036038101906107939190613be5565b611e7b565b005b6107a26122c3565b6040516107af9190613bca565b60405180910390f35b6107d260048036038101906107cd9190613d90565b6122eb565b6040516107df9190613c34565b60405180910390f35b61080260048036038101906107fd9190613d39565b61233c565b005b61081e60048036038101906108199190613c79565b6123de565b005b61083a60048036038101906108359190613edb565b61240a565b005b6108446124e8565b6040516108519190613c5e565b60405180910390f35b610874600480360381019061086f9190613c79565b612502565b005b610890600480360381019061088b9190613d39565b6125fd565b005b6108ac60048036038101906108a79190613a04565b61269f565b005b6108c860048036038101906108c39190613f1b565b612722565b6040516108d59190613c5e565b60405180910390f35b6108f860048036038101906108f39190613be5565b61286d565b005b610902612cc3565b60405161090f9190613aee565b60405180910390f35b610920612ccd565b005b61093c60048036038101906109379190613d90565b612d1d565b6040516109499190614093565b60405180910390f35b61095a612daf565b61096381611653565b6109a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099990614112565b60405180910390fd5b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167fbb52b7da265bdd4f079396e04f30f0fa978952e7a1c51f30f2d356314b38dd4560405160405180910390a250565b600061271082610a5257600354610a56565b6002545b84610a619190614161565b610a6b91906141d2565b905092915050565b6000600b60008381526020019081526020016000208363ffffffff1681548110610aa057610a9f614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905092915050565b60008060005b600b6000868152602001908152602001600020805490508163ffffffff161015610beb5783600b60008781526020019081526020016000208263ffffffff1681548110610b3057610b2f614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051602001610b7392919061429b565b604051602081830303815290604052805190602001209150600b60008681526020019081526020016000208163ffffffff1681548110610bb657610bb5614203565b5b9060005260206000209060030201600001548203610bd8578192505050610bf4565b8080610be3906142c7565b915050610ae0565b506000801b9150505b92915050565b6000600860009054906101000a900463ffffffff16905090565b6000600154905090565b610c26612daf565b7f000000000000000000000000000000000000000000000000000000000000000163ffffffff168163ffffffff161015610c95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8c90614365565b60405180910390fd5b600860009054906101000a900463ffffffff1663ffffffff168163ffffffff161115610cf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ced906143f7565b60405180910390fd5b80600860046101000a81548163ffffffff021916908363ffffffff16021790555050565b60096000838152602001908152602001600020600201600c9054906101000a900460ff1615610d7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7590614463565b60405180910390fd5b6000610d8983611d80565b11610dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc0906144cf565b60405180910390fd5b42610dd3836118c9565b67ffffffffffffffff1611610e1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e149061453b565b60405180910390fd5b610e268161179e565b15610e66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5d906145a7565b60405180910390fd5b610e76610e71612e2d565b611653565b15610eb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ead90614639565b60405180910390fd5b600460009054906101000a900463ffffffff1663ffffffff16610ed883612e35565b63ffffffff1610610f1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f15906146cb565b60405180910390fd5b600b60008381526020019081526020016000206040518060600160405280838152602001610f4a612e2d565b73ffffffffffffffffffffffffffffffffffffffff16815260200160015481525090806001815401808255809150506001900390600052602060002090600302016000909190919091506000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040820151816002015550506110267f0000000000000000000000006e2a43be0b1d33b726f0ca3b8de60b3482b8b05061101d612e2d565b30600154612e5a565b61102e612e2d565b73ffffffffffffffffffffffffffffffffffffffff16827f551f33b33fb1beab49412f916ef79343e61178ff160ab95c2dd97dce419f12a36001548461107387611d50565b6001600b60008a81526020019081526020016000208054905061109691906146eb565b6040516110a6949392919061471f565b60405180910390a35050565b60048054906101000a900460ff166110ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f6906147d6565b60405180910390fd5b600754821015611144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113b90614842565b60405180910390fd5b60096000848152602001908152602001600020600201600c9054906101000a900460ff16156111a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119f906148ae565b60405180910390fd5b600b600c60008581526020019081526020016000208054905010611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f890614940565b60405180910390fd5b6000808263ffffffff1614611216578161122a565b600860009054906101000a900463ffffffff165b9050600860049054906101000a900463ffffffff1663ffffffff168163ffffffff16101561128d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611284906149ac565b60405180910390fd5b60088054906101000a900463ffffffff1663ffffffff168163ffffffff1611156112ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e390614a18565b60405180910390fd5b60006112f9846001610a40565b9050806005600082825461130d9190614a38565b92505081905550600062015180836113259190614a6c565b63ffffffff16426113369190614a38565b9050600061134387611da0565b1115611423578460096000888152602001908152602001600020600001600082825461136f9190614a38565b925050819055508460096000888152602001908152602001600020600101600082825461139c9190614a38565b92505081905550600c60008781526020019081526020016000206113be612e2d565b9080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506115a3565b6040518060a001604052808681526020018681526020018267ffffffffffffffff168152602001600063ffffffff1681526020016000151581525060096000888152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060608201518160020160086101000a81548163ffffffff021916908363ffffffff160217905550608082015181600201600c6101000a81548160ff021916908315150217905550905050600a869080600181540180825580915050600190039060005260206000200160009091909190915055600c6000878152602001908152602001600020611542612e2d565b9080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b6115e17f0000000000000000000000006e2a43be0b1d33b726f0ca3b8de60b3482b8b0506115cf612e2d565b3085896115dc9190614a38565b612e5a565b6115e9612e2d565b73ffffffffffffffffffffffffffffffffffffffff16867f68f63c844ad0c78985e23c5265ccb4532c97fd97bcbfc4653abadccec7cd39858784604051611631929190614aa9565b60405180910390a3505050505050565b611649612daf565b8060078190555050565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600060096000838152602001908152602001600020600201600c9054906101000a900460ff169050919050565b6000600b6000838152602001908152602001600020805490509050919050565b6000600354905090565b611708612daf565b6000600554905060006005819055506117647f0000000000000000000000006e2a43be0b1d33b726f0ca3b8de60b3482b8b050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683612ee3565b7f835862a12039ab712842887f732f62f9ba4e46c8a157b8f2ece290bb03cb6229816040516117939190613aee565b60405180910390a150565b6000600f600083815260200190815260200160002060009054906101000a900460ff169050919050565b6117d0612daf565b60088054906101000a900463ffffffff1663ffffffff168163ffffffff16111561182f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182690614b44565b60405180910390fd5b600860049054906101000a900463ffffffff1663ffffffff168163ffffffff161015611890576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188790614bd6565b60405180910390fd5b80600860006101000a81548163ffffffff021916908363ffffffff16021790555050565b600060048054906101000a900460ff16905090565b60006009600083815260200190815260200160002060020160009054906101000a900467ffffffffffffffff169050919050565b6000600860049054906101000a900463ffffffff16905090565b6060600c60008381526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156119ac57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611962575b50505050509050919050565b6000600554905090565b60008060005b600a805490508163ffffffff161015611b275760005b600c6000600a8463ffffffff16815481106119fc576119fb614203565b5b90600052602060002001548152602001908152602001600020805490508163ffffffff161015611b135784600c6000600a8563ffffffff1681548110611a4557611a44614203565b5b906000526020600020015481526020019081526020016000208263ffffffff1681548110611a7657611a75614203565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051602001611ab292919061429b565b604051602081830303815290604052805190602001209250600a8263ffffffff1681548110611ae457611ae3614203565b5b90600052602060002001548303611b0057829350505050611b63565b8080611b0b906142c7565b9150506119de565b508080611b1f906142c7565b9150506119c8565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5a90614c42565b60405180910390fd5b919050565b600060088054906101000a900463ffffffff16905090565b611b88612daf565b611b926000612f69565b565b6000600b60008381526020019081526020016000208363ffffffff1681548110611bc157611bc0614203565b5b906000526020600020906003020160020154905092915050565b611be3612daf565b60006001549050816001819055507fd2328bb8dd1e1720cf89a77e74ee155c31ac57f46d97fcc0bd7bd4f93616d0a78282604051611c22929190614c62565b60405180910390a15050565b6000600754905090565b611c40612daf565b611c4981611653565b15611c89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8090614cd7565b60405180910390fd5b6001600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167fa899921e7177cee9570d45230a75616ce1a40246c14b96f7b27f97db0265992b60405160405180910390a250565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006009600083815260200190815260200160002060020160089054906101000a900463ffffffff169050919050565b600060096000838152602001908152602001600020600001549050919050565b600060096000838152602001908152602001600020600101549050919050565b611dc8612daf565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2e90614d69565b60405180910390fd5b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611e8b611e86612e2d565b611653565b611eca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec190614dd5565b60405180910390fd5b60096000838152602001908152602001600020600201600c9054906101000a900460ff1615611f2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2590614463565b60405180910390fd5b6000611f39836116d6565b905060006009600085815260200190815260200160002060020160089054906101000a900463ffffffff1690505b611f70846116d6565b63ffffffff168163ffffffff1610156120655782600b60008681526020019081526020016000208263ffffffff1681548110611faf57611fae614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051602001611ff292919061429b565b60405160208183030381529060405280519060200120600b60008681526020019081526020016000208263ffffffff168154811061203357612032614203565b5b9060005260206000209060030201600001540361205257809150612065565b808061205d906142c7565b915050611f67565b5061206f836116d6565b63ffffffff168163ffffffff16106120bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b390614e41565b60405180910390fd5b60006009600085815260200190815260200160002060020160089054906101000a900463ffffffff1690505b8163ffffffff168163ffffffff161015612118576121058461302d565b8080612110906142c7565b9150506120e8565b5061212383826132a6565b60006001826121329190614e61565b90505b61213e846116d6565b63ffffffff168163ffffffff1610156122bd576122147f0000000000000000000000006e2a43be0b1d33b726f0ca3b8de60b3482b8b050600b60008781526020019081526020016000208363ffffffff16815481106121a05761219f614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600b60008881526020019081526020016000208463ffffffff16815481106121fd576121fc614203565b5b906000526020600020906003020160020154612ee3565b6000600b60008681526020019081526020016000208263ffffffff168154811061224157612240614203565b5b90600052602060002090600302016002018190555060016009600086815260200190815260200160002060020160088282829054906101000a900463ffffffff1661228c9190614e61565b92506101000a81548163ffffffff021916908363ffffffff16021790555080806122b5906142c7565b915050612135565b50505050565b60007f0000000000000000000000006e2a43be0b1d33b726f0ca3b8de60b3482b8b050905090565b600060096000838152602001908152602001600020600201600c9054906101000a900460ff16612320576000801b9050612337565b600e60008381526020019081526020016000205490505b919050565b612344612daf565b61271067ffffffffffffffff16811115612393576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238a90614f0b565b60405180910390fd5b60006002549050816002819055507fb32e60b50c1e1ad5c64febbcee57ea99456dec6a2f257b884aaba85e3f69ed1a82826040516123d2929190614c62565b60405180910390a15050565b6123e6612daf565b80600460006101000a81548163ffffffff021916908363ffffffff16021790555050565b61241a612415612e2d565b611653565b612459576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245090614dd5565b60405180910390fd5b8063ffffffff1661246983612e35565b63ffffffff1610156124b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a790614f9d565b60405180910390fd5b60005b8163ffffffff168163ffffffff1610156124e3576124d08361302d565b80806124db906142c7565b9150506124b3565b505050565b6000600460009054906101000a900463ffffffff16905090565b61250a612daf565b7f000000000000000000000000000000000000000000000000000000000000016d63ffffffff168163ffffffff161115612579576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125709061502f565b60405180910390fd5b600860009054906101000a900463ffffffff1663ffffffff168163ffffffff1610156125da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d1906150c1565b60405180910390fd5b806008806101000a81548163ffffffff021916908363ffffffff16021790555050565b612605612daf565b61271067ffffffffffffffff16811115612654576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264b90615153565b60405180910390fd5b60006003549050816003819055507f943e030e96399de4404dd176c1abe38dd7add787c4de0ad5b2d97036d17d341a8282604051612693929190614c62565b60405180910390a15050565b6126a7612daf565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612716576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270d906151e5565b60405180910390fd5b61271f81612f69565b50565b60008061272e836116d6565b905060005b8163ffffffff168163ffffffff16101561282b5784600b60008681526020019081526020016000208263ffffffff168154811061277357612772614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516020016127b692919061429b565b60405160208183030381529060405280519060200120600b60008681526020019081526020016000208263ffffffff16815481106127f7576127f6614203565b5b90600052602060002090600302016000015403612818578092505050612867565b8080612823906142c7565b915050612733565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285e90614e41565b60405180910390fd5b92915050565b600061287883611d80565b116128b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128af906144cf565b60405180910390fd5b426128c2836118c9565b67ffffffffffffffff161115806128e557506128e46128df612e2d565b611653565b5b612924576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291b90615277565b60405180910390fd5b600061292f83612e35565b63ffffffff1614612975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296c906152e3565b60405180910390fd5b60096000838152602001908152602001600020600201600c9054906101000a900460ff16156129d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d0906148ae565b60405180910390fd5b600080600090505b600c6000858152602001908152602001600020805490508163ffffffff161015612af9578383600c60008781526020019081526020016000208363ffffffff1681548110612a3257612a31614203565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051602001612a6e92919061429b565b6040516020818303038152906040528051906020012003612ae657600c60008581526020019081526020016000208163ffffffff1681548110612ab457612ab3614203565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150612af9565b8080612af1906142c7565b9150506129e1565b50600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612b69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6090615375565b60405180910390fd5b600060096000858152602001908152602001600020600101546009600086815260200190815260200160002060000154612ba391906146eb565b90508060056000828254612bb79190614a38565b92505081905550612bff7f0000000000000000000000006e2a43be0b1d33b726f0ca3b8de60b3482b8b050836009600088815260200190815260200160002060010154612ee3565b600160096000868152602001908152602001600020600201600c6101000a81548160ff021916908315150217905550612c36612e2d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16857f97443692ba0b456a7c1c0d1383ff31935d49d59d27f2b0dfbb1207ada4cd1553600960008981526020019081526020016000206001015485612ca68a6116d6565b604051612cb593929190615395565b60405180910390a450505050565b6000600254905090565b612cd5612daf565b60006004806101000a81548160ff0219169083151502179055507f476139baa7d83a008d821f497f65433eebe998b690b1bfa7c26764e17f6a41a660405160405180910390a1565b612d25613956565b6040518060e00160405280612d39846118c9565b67ffffffffffffffff168152602001612d5184611d80565b8152602001612d5f846116a9565b15158152602001612d6f84611d50565b63ffffffff168152602001612d83846116d6565b63ffffffff168152602001612d9784611917565b8152602001612da584611da0565b8152509050919050565b612db7612e2d565b73ffffffffffffffffffffffffffffffffffffffff16612dd5611d27565b73ffffffffffffffffffffffffffffffffffffffff1614612e2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2290615418565b60405180910390fd5b565b600033905090565b6000612e4082611d50565b612e49836116d6565b612e539190615438565b9050919050565b612edd846323b872dd60e01b858585604051602401612e7b93929190615470565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506136c1565b50505050565b612f648363a9059cbb60e01b8484604051602401612f029291906154a7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506136c1565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061303882611d50565b90506000600b60008481526020019081526020016000208263ffffffff168154811061306757613066614203565b5b90600052602060002090600302016002015490506000600b60008581526020019081526020016000208363ffffffff16815481106130a8576130a7614203565b5b90600052602060002090600302016002018190555060006130ca826001610a40565b905080600560008282546130de9190614a38565b9250508190555080826130f191906146eb565b6009600086815260200190815260200160002060000160008282546131169190614a38565b9250508190555060016009600086815260200190815260200160002060020160088282829054906101000a900463ffffffff166131539190614e61565b92506101000a81548163ffffffff021916908363ffffffff1602179055506000600b60008681526020019081526020016000208463ffffffff168154811061319e5761319d614203565b5b90600052602060002090600302016000015490506001600f600083815260200190815260200160002060006101000a81548160ff021916908315150217905550600b60008681526020019081526020016000208463ffffffff168154811061320957613208614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16857fc14a0d61003e8b32a4b43824a0a3004c4127cfa1d6fee5d1065c9a126559746e858461327e8a611d50565b6132878b6116d6565b604051613297949392919061471f565b60405180910390a35050505050565b6132ae612e2d565b73ffffffffffffffffffffffffffffffffffffffff16600b60008481526020019081526020016000208263ffffffff16815481106132ef576132ee614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603613377576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161336e90615542565b60405180910390fd5b600b60008381526020019081526020016000208163ffffffff16815481106133a2576133a1614203565b5b906000526020600020906003020160000154600e600084815260200190815260200160002081905550600060096000848152602001908152602001600020600001549050600060096000858152602001908152602001600020600001819055506000600b60008581526020019081526020016000208363ffffffff168154811061342f5761342e614203565b5b906000526020600020906003020160020154905061344e826000610a40565b6005600082825461345f9190614a38565b925050819055506000600b60008681526020019081526020016000208463ffffffff168154811061349357613492614203565b5b90600052602060002090600302016002018190555060006134b5836000610a40565b82846134c19190614a38565b6134cb91906146eb565b90506135547f0000000000000000000000006e2a43be0b1d33b726f0ca3b8de60b3482b8b050600b60008881526020019081526020016000208663ffffffff168154811061351c5761351b614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683612ee3565b6001846135619190614e61565b6009600087815260200190815260200160002060020160086101000a81548163ffffffff021916908363ffffffff160217905550600160096000878152602001908152602001600020600201600c6101000a81548160ff021916908315150217905550600b60008681526020019081526020016000208463ffffffff16815481106135ef576135ee614203565b5b906000526020600020906003020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16857eda277d1847c73099f0abeea3c92b15faad49da38803b4294b794958a1b763284600b60008a81526020019081526020016000208863ffffffff168154811061368457613683614203565b5b90600052602060002090600302016000015485896136a18c6116d6565b6040516136b2959493929190615562565b60405180910390a35050505050565b6000613723826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166137899092919063ffffffff16565b905060008151148061374557508080602001905181019061374491906155ca565b5b613784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161377b90615669565b60405180910390fd5b505050565b606061379884846000856137a1565b90509392505050565b6060824710156137e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137dd906156fb565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161380f919061578c565b60006040518083038185875af1925050503d806000811461384c576040519150601f19603f3d011682016040523d82523d6000602084013e613851565b606091505b50915091506138628783838761386e565b92505050949350505050565b606083156138d05760008351036138c857613888856138e3565b6138c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138be906157ef565b60405180910390fd5b5b8290506138db565b6138da8383613906565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156139195781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161394d9190615864565b60405180910390fd5b6040518060e001604052806000815260200160008152602001600015158152602001600063ffffffff168152602001600063ffffffff16815260200160608152602001600081525090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139d1826139a6565b9050919050565b6139e1816139c6565b81146139ec57600080fd5b50565b6000813590506139fe816139d8565b92915050565b600060208284031215613a1a57613a196139a1565b5b6000613a28848285016139ef565b91505092915050565b6000819050919050565b613a4481613a31565b8114613a4f57600080fd5b50565b600081359050613a6181613a3b565b92915050565b60008115159050919050565b613a7c81613a67565b8114613a8757600080fd5b50565b600081359050613a9981613a73565b92915050565b60008060408385031215613ab657613ab56139a1565b5b6000613ac485828601613a52565b9250506020613ad585828601613a8a565b9150509250929050565b613ae881613a31565b82525050565b6000602082019050613b036000830184613adf565b92915050565b600063ffffffff82169050919050565b613b2281613b09565b8114613b2d57600080fd5b50565b600081359050613b3f81613b19565b92915050565b6000819050919050565b613b5881613b45565b8114613b6357600080fd5b50565b600081359050613b7581613b4f565b92915050565b60008060408385031215613b9257613b916139a1565b5b6000613ba085828601613b30565b9250506020613bb185828601613b66565b9150509250929050565b613bc4816139c6565b82525050565b6000602082019050613bdf6000830184613bbb565b92915050565b60008060408385031215613bfc57613bfb6139a1565b5b6000613c0a85828601613b66565b9250506020613c1b85828601613a52565b9150509250929050565b613c2e81613b45565b82525050565b6000602082019050613c496000830184613c25565b92915050565b613c5881613b09565b82525050565b6000602082019050613c736000830184613c4f565b92915050565b600060208284031215613c8f57613c8e6139a1565b5b6000613c9d84828501613b30565b91505092915050565b60008060408385031215613cbd57613cbc6139a1565b5b6000613ccb85828601613b66565b9250506020613cdc85828601613b66565b9150509250929050565b600080600060608486031215613cff57613cfe6139a1565b5b6000613d0d86828701613b66565b9350506020613d1e86828701613a52565b9250506040613d2f86828701613b30565b9150509250925092565b600060208284031215613d4f57613d4e6139a1565b5b6000613d5d84828501613a52565b91505092915050565b613d6f81613a67565b82525050565b6000602082019050613d8a6000830184613d66565b92915050565b600060208284031215613da657613da56139a1565b5b6000613db484828501613b66565b91505092915050565b600067ffffffffffffffff82169050919050565b613dda81613dbd565b82525050565b6000602082019050613df56000830184613dd1565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613e30816139c6565b82525050565b6000613e428383613e27565b60208301905092915050565b6000602082019050919050565b6000613e6682613dfb565b613e708185613e06565b9350613e7b83613e17565b8060005b83811015613eac578151613e938882613e36565b9750613e9e83613e4e565b925050600181019050613e7f565b5085935050505092915050565b60006020820190508181036000830152613ed38184613e5b565b905092915050565b60008060408385031215613ef257613ef16139a1565b5b6000613f0085828601613b66565b9250506020613f1185828601613b30565b9150509250929050565b60008060408385031215613f3257613f316139a1565b5b6000613f4085828601613a52565b9250506020613f5185828601613b66565b9150509250929050565b613f6481613a31565b82525050565b613f7381613a67565b82525050565b613f8281613b09565b82525050565b600082825260208201905092915050565b6000613fa482613dfb565b613fae8185613f88565b9350613fb983613e17565b8060005b83811015613fea578151613fd18882613e36565b9750613fdc83613e4e565b925050600181019050613fbd565b5085935050505092915050565b600060e08301600083015161400f6000860182613f5b565b5060208301516140226020860182613f5b565b5060408301516140356040860182613f6a565b5060608301516140486060860182613f79565b50608083015161405b6080860182613f79565b5060a083015184820360a08601526140738282613f99565b91505060c083015161408860c0860182613f5b565b508091505092915050565b600060208201905081810360008301526140ad8184613ff7565b905092915050565b600082825260208201905092915050565b7f426f756e747956333a206e6f7420617070726f76657200000000000000000000600082015250565b60006140fc6016836140b5565b9150614107826140c6565b602082019050919050565b6000602082019050818103600083015261412b816140ef565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061416c82613a31565b915061417783613a31565b925082820261418581613a31565b9150828204841483151761419c5761419b614132565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006141dd82613a31565b91506141e883613a31565b9250826141f8576141f76141a3565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b61424d61424882613a31565b614232565b82525050565b60008160601b9050919050565b600061426b82614253565b9050919050565b600061427d82614260565b9050919050565b614295614290826139c6565b614272565b82525050565b60006142a7828561423c565b6020820191506142b78284614284565b6014820191508190509392505050565b60006142d282613b09565b915063ffffffff82036142e8576142e7614132565b5b600182019050919050565b7f426f756e747956333a206d696e206475726174696f6e206d757374206265203e60008201527f3d20312064617900000000000000000000000000000000000000000000000000602082015250565b600061434f6027836140b5565b915061435a826142f3565b604082019050919050565b6000602082019050818103600083015261437e81614342565b9050919050565b7f426f756e747956333a206d696e206475726174696f6e206d757374206265203c60008201527f3d2064656661756c74206475726174696f6e0000000000000000000000000000602082015250565b60006143e16032836140b5565b91506143ec82614385565b604082019050919050565b60006020820190508181036000830152614410816143d4565b9050919050565b7f426f756e747956333a20626f756e747920636c6f736564000000000000000000600082015250565b600061444d6017836140b5565b915061445882614417565b602082019050919050565b6000602082019050818103600083015261447c81614440565b9050919050565b7f426f756e747956333a20626f756e7479206e6f742066756e6465640000000000600082015250565b60006144b9601b836140b5565b91506144c482614483565b602082019050919050565b600060208201905081810360008301526144e8816144ac565b9050919050565b7f426f756e747956333a20626f756e747920657870697265640000000000000000600082015250565b60006145256018836140b5565b9150614530826144ef565b602082019050919050565b6000602082019050818103600083015261455481614518565b9050919050565b7f426f756e747956333a207061796c6f61642072656a6563746564000000000000600082015250565b6000614591601a836140b5565b915061459c8261455b565b602082019050919050565b600060208201905081810360008301526145c081614584565b9050919050565b7f426f756e747956333a20617070726f766572732063616e6e6f74207375626d6960008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b60006146236021836140b5565b915061462e826145c7565b604082019050919050565b6000602082019050818103600083015261465281614616565b9050919050565b7f426f756e747956333a206d617820616374697665207375626d697373696f6e7360008201527f2072656163686564000000000000000000000000000000000000000000000000602082015250565b60006146b56028836140b5565b91506146c082614659565b604082019050919050565b600060208201905081810360008301526146e4816146a8565b9050919050565b60006146f682613a31565b915061470183613a31565b925082820390508181111561471957614718614132565b5b92915050565b60006080820190506147346000830187613adf565b6147416020830186613c25565b61474e6040830185613c4f565b61475b6060830184613c4f565b95945050505050565b7f426f756e747956333a20636f6e7472616374206e6f206c6f6e6765722061636360008201527f657074696e6720626f756e746965730000000000000000000000000000000000602082015250565b60006147c0602f836140b5565b91506147cb82614764565b604082019050919050565b600060208201905081810360008301526147ef816147b3565b9050919050565b7f426f756e747956333a2062656c6f77206d696e696d756d20626f756e74790000600082015250565b600061482c601e836140b5565b9150614837826147f6565b602082019050919050565b6000602082019050818103600083015261485b8161481f565b9050919050565b7f426f756e747956333a20626f756e747920616c726561647920636c6f73656400600082015250565b6000614898601f836140b5565b91506148a382614862565b602082019050919050565b600060208201905081810360008301526148c78161488b565b9050919050565b7f426f756e747956333a20626f756e747920616c7265616479206861732031302060008201527f66756e6465727300000000000000000000000000000000000000000000000000602082015250565b600061492a6027836140b5565b9150614935826148ce565b604082019050919050565b600060208201905081810360008301526149598161491d565b9050919050565b7f426f756e747956333a206475726174696f6e2062656c6f77206d696e696d756d600082015250565b60006149966020836140b5565b91506149a182614960565b602082019050919050565b600060208201905081810360008301526149c581614989565b9050919050565b7f426f756e747956333a206475726174696f6e2061626f7665206d6178696d756d600082015250565b6000614a026020836140b5565b9150614a0d826149cc565b602082019050919050565b60006020820190508181036000830152614a31816149f5565b9050919050565b6000614a4382613a31565b9150614a4e83613a31565b9250828201905080821115614a6657614a65614132565b5b92915050565b6000614a7782613b09565b9150614a8283613b09565b9250828202614a9081613b09565b9150808214614aa257614aa1614132565b5b5092915050565b6000604082019050614abe6000830185613adf565b614acb6020830184613dd1565b9392505050565b7f426f756e747956333a2064656661756c74206475726174696f6e206d7573742060008201527f6265203c3d206d6178206475726174696f6e0000000000000000000000000000602082015250565b6000614b2e6032836140b5565b9150614b3982614ad2565b604082019050919050565b60006020820190508181036000830152614b5d81614b21565b9050919050565b7f426f756e747956333a2064656661756c74206475726174696f6e206d7573742060008201527f6265203e3d206d696e206475726174696f6e0000000000000000000000000000602082015250565b6000614bc06032836140b5565b9150614bcb82614b64565b604082019050919050565b60006020820190508181036000830152614bef81614bb3565b9050919050565b7f426f756e747956333a20626f756e74794944206e6f7420666f756e6400000000600082015250565b6000614c2c601c836140b5565b9150614c3782614bf6565b602082019050919050565b60006020820190508181036000830152614c5b81614c1f565b9050919050565b6000604082019050614c776000830185613adf565b614c846020830184613adf565b9392505050565b7f426f756e747956333a20616c726561647920617070726f766572000000000000600082015250565b6000614cc1601a836140b5565b9150614ccc82614c8b565b602082019050919050565b60006020820190508181036000830152614cf081614cb4565b9050919050565b7f426f756e747956333a206665652072656365697665722061646472657373206360008201527f616e6e6f74206265203078300000000000000000000000000000000000000000602082015250565b6000614d53602c836140b5565b9150614d5e82614cf7565b604082019050919050565b60006020820190508181036000830152614d8281614d46565b9050919050565b7f426f756e747956333a2063616c6c6572206973206e6f7420617070726f766572600082015250565b6000614dbf6020836140b5565b9150614dca82614d89565b602082019050919050565b60006020820190508181036000830152614dee81614db2565b9050919050565b7f426f756e747956333a207375626d697373696f6e206e6f7420666f756e640000600082015250565b6000614e2b601e836140b5565b9150614e3682614df5565b602082019050919050565b60006020820190508181036000830152614e5a81614e1e565b9050919050565b6000614e6c82613b09565b9150614e7783613b09565b9250828201905063ffffffff811115614e9357614e92614132565b5b92915050565b7f426f756e747956333a206d616b657220666565206d757374206265203c3d203160008201527f3030250000000000000000000000000000000000000000000000000000000000602082015250565b6000614ef56023836140b5565b9150614f0082614e99565b604082019050919050565b60006020820190508181036000830152614f2481614ee8565b9050919050565b7f426f756e747956333a206e6f7420656e6f75676820616374697665207375626d60008201527f697373696f6e7300000000000000000000000000000000000000000000000000602082015250565b6000614f876027836140b5565b9150614f9282614f2b565b604082019050919050565b60006020820190508181036000830152614fb681614f7a565b9050919050565b7f426f756e747956333a206d6178206475726174696f6e206d757374206265203c60008201527f3d20333635206461797300000000000000000000000000000000000000000000602082015250565b6000615019602a836140b5565b915061502482614fbd565b604082019050919050565b600060208201905081810360008301526150488161500c565b9050919050565b7f426f756e747956333a206d6178206475726174696f6e206d757374206265203e60008201527f3d2064656661756c74206475726174696f6e0000000000000000000000000000602082015250565b60006150ab6032836140b5565b91506150b68261504f565b604082019050919050565b600060208201905081810360008301526150da8161509e565b9050919050565b7f426f756e747956333a2074616b657220666565206d757374206265203c3d203160008201527f3030250000000000000000000000000000000000000000000000000000000000602082015250565b600061513d6023836140b5565b9150615148826150e1565b604082019050919050565b6000602082019050818103600083015261516c81615130565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006151cf6026836140b5565b91506151da82615173565b604082019050919050565b600060208201905081810360008301526151fe816151c2565b9050919050565b7f426f756e747956333a206f6e6c7920617070726f766572732063616e20636c6f60008201527f7365206265666f72652065787069726174696f6e000000000000000000000000602082015250565b60006152616034836140b5565b915061526c82615205565b604082019050919050565b6000602082019050818103600083015261529081615254565b9050919050565b7f426f756e747956333a2068617320616374697665207375626d697373696f6e00600082015250565b60006152cd601f836140b5565b91506152d882615297565b602082019050919050565b600060208201905081810360008301526152fc816152c0565b9050919050565b7f426f756e747956333a206661696c656420746f206861736820626f756e74794960008201527f4420776974682066756e64657220616464726573730000000000000000000000602082015250565b600061535f6035836140b5565b915061536a82615303565b604082019050919050565b6000602082019050818103600083015261538e81615352565b9050919050565b60006060820190506153aa6000830186613adf565b6153b76020830185613adf565b6153c46040830184613c4f565b949350505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006154026020836140b5565b915061540d826153cc565b602082019050919050565b60006020820190508181036000830152615431816153f5565b9050919050565b600061544382613b09565b915061544e83613b09565b9250828203905063ffffffff81111561546a57615469614132565b5b92915050565b60006060820190506154856000830186613bbb565b6154926020830185613bbb565b61549f6040830184613adf565b949350505050565b60006040820190506154bc6000830185613bbb565b6154c96020830184613adf565b9392505050565b7f426f756e747956333a2063616e6e6f7420617070726f7665206f776e2073756260008201527f6d697373696f6e00000000000000000000000000000000000000000000000000602082015250565b600061552c6027836140b5565b9150615537826154d0565b604082019050919050565b6000602082019050818103600083015261555b8161551f565b9050919050565b600060a0820190506155776000830188613adf565b6155846020830187613c25565b6155916040830186613adf565b61559e6060830185613c4f565b6155ab6080830184613c4f565b9695505050505050565b6000815190506155c481613a73565b92915050565b6000602082840312156155e0576155df6139a1565b5b60006155ee848285016155b5565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000615653602a836140b5565b915061565e826155f7565b604082019050919050565b6000602082019050818103600083015261568281615646565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006156e56026836140b5565b91506156f082615689565b604082019050919050565b60006020820190508181036000830152615714816156d8565b9050919050565b600081519050919050565b600081905092915050565b60005b8381101561574f578082015181840152602081019050615734565b60008484015250505050565b60006157668261571b565b6157708185615726565b9350615780818560208601615731565b80840191505092915050565b6000615798828461575b565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006157d9601d836140b5565b91506157e4826157a3565b602082019050919050565b60006020820190508181036000830152615808816157cc565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006158368261580f565b61584081856140b5565b9350615850818560208601615731565b6158598161581a565b840191505092915050565b6000602082019050818103600083015261587e818461582b565b90509291505056fea264697066735822122035e0248730631ba339719bfb2fcf22799e6ee939d8f9c8340803b304081b1d3c64736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006e2a43be0b1d33b726f0ca3b8de60b3482b8b0500000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000000000000000000fa00000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000090423cbde95cbc6fa30860b22ef5dd0181283914000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000056bc75e2d631000000000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000016d
-----Decoded View---------------
Arg [0] : arkmAddress (address): 0x6E2a43be0B1d33b726f0CA3b8de60b3482b8b050
Arg [1] : initialSubmissionStake (uint256): 10000000000000000000
Arg [2] : initialMakerFee (uint256): 250
Arg [3] : initialTakerFee (uint256): 500
Arg [4] : initialDefaultDuration (uint32): 30
Arg [5] : feeReceiverAddress (address): 0x90423cBdE95cBC6FA30860b22eF5DD0181283914
Arg [6] : initialMaxActiveSubmissions (uint32): 12
Arg [7] : initialMinBounty (uint256): 100000000000000000000
Arg [8] : initialMinDuration (uint32): 7
Arg [9] : initialMaxDuration (uint32): 365
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000006e2a43be0b1d33b726f0ca3b8de60b3482b8b050
Arg [1] : 0000000000000000000000000000000000000000000000008ac7230489e80000
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000fa
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [4] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [5] : 00000000000000000000000090423cbde95cbc6fa30860b22ef5dd0181283914
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [7] : 0000000000000000000000000000000000000000000000056bc75e2d63100000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [9] : 000000000000000000000000000000000000000000000000000000000000016d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $1.54 | 13,293.9125 | $20,516.61 |
Loading...
Loading
[ 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.