Note: Our ether balance display is temporarily unavailable. Please check back later.
Source Code
Overview
ETH Balance
Ether balance is temporarily unavailable. Please check back later.
Token Holdings
More Info
ContractCreator
Multichain Info
N/A
Latest 25 from a total of 2,868 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Relay Proof | 8251234 | 450 days ago | IN | 0 ETH | 0.00143041 | ||||
Relay Proof | 8251040 | 450 days ago | IN | 0 ETH | 0.00269059 | ||||
Relay Proof | 8080366 | 479 days ago | IN | 0 ETH | 0.00082495 | ||||
Request Random D... | 8080304 | 479 days ago | IN | 0 ETH | 0.00012865 | ||||
Relay Proof | 8003190 | 491 days ago | IN | 0 ETH | 0.00525928 | ||||
Relay Proof | 8003052 | 491 days ago | IN | 0 ETH | 0.00684843 | ||||
Request Random D... | 8002821 | 491 days ago | IN | 0 ETH | 0.00164518 | ||||
Relay Proof | 8002700 | 491 days ago | IN | 0 ETH | 0.00109775 | ||||
Relay Proof | 7998491 | 492 days ago | IN | 0 ETH | 0.05309464 | ||||
Request Random D... | 7998232 | 492 days ago | IN | 0 ETH | 0.01261966 | ||||
Request Random D... | 7998196 | 492 days ago | IN | 0 ETH | 0.01552212 | ||||
Relay Proof | 7883419 | 511 days ago | IN | 0 ETH | 0.02825021 | ||||
Request Random D... | 7883388 | 511 days ago | IN | 0 ETH | 0.00452769 | ||||
Relay Proof | 7848702 | 517 days ago | IN | 0 ETH | 0.04665692 | ||||
Relay Proof | 7826320 | 521 days ago | IN | 0 ETH | 0.05375442 | ||||
Request Random D... | 7826317 | 521 days ago | IN | 0 ETH | 0.00847662 | ||||
Relay Proof | 7826306 | 521 days ago | IN | 0 ETH | 0.05069231 | ||||
Request Random D... | 7826303 | 521 days ago | IN | 0 ETH | 0.00921245 | ||||
Relay Proof | 7826190 | 521 days ago | IN | 0 ETH | 0.10976925 | ||||
Request Random D... | 7826099 | 521 days ago | IN | 0 ETH | 0.01039293 | ||||
Relay Proof | 7807939 | 524 days ago | IN | 0 ETH | 0.0391865 | ||||
Relay Proof | 7807521 | 524 days ago | IN | 0 ETH | 0.04607064 | ||||
Request Random D... | 7807517 | 524 days ago | IN | 0 ETH | 0.00774421 | ||||
Relay Proof | 7806236 | 524 days ago | IN | 0 ETH | 0.00077919 | ||||
Request Random D... | 7806223 | 524 days ago | IN | 0 ETH | 0.00012908 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
9050110 | 310 days ago | 0.001 ETH | ||||
9050093 | 310 days ago | 0.001 ETH | ||||
9050071 | 310 days ago | 0.001 ETH | ||||
9050002 | 310 days ago | 0.001 ETH | ||||
9049987 | 310 days ago | 0.001 ETH | ||||
9049968 | 310 days ago | 0.001 ETH | ||||
9049881 | 310 days ago | 0.001 ETH | ||||
9049874 | 310 days ago | 0.001 ETH | ||||
9049851 | 310 days ago | 0.001 ETH | ||||
8839740 | 347 days ago | 0 ETH | ||||
8592619 | 390 days ago | 0 ETH | ||||
8592467 | 390 days ago | 0 ETH | ||||
8591747 | 391 days ago | 0 ETH | ||||
8251234 | 450 days ago | 0 ETH | ||||
8251234 | 450 days ago | 0 ETH | ||||
8251203 | 450 days ago | 0 ETH | ||||
8251040 | 450 days ago | 0 ETH | ||||
8251040 | 450 days ago | 0 ETH | ||||
8250870 | 450 days ago | 0 ETH | ||||
8248574 | 450 days ago | 0 ETH | ||||
8080366 | 479 days ago | 0 ETH | ||||
8080366 | 479 days ago | 0 ETH | ||||
8003190 | 491 days ago | 0 ETH | ||||
8003190 | 491 days ago | 0 ETH | ||||
8003190 | 491 days ago | 0 ETH |
Loading...
Loading
Contract Name:
VRFProvider
Compiler Version
v0.8.16+commit.07a7930e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-09-13 */ pragma solidity ^0.8.15; interface IBridge { enum ResolveStatus { RESOLVE_STATUS_OPEN_UNSPECIFIED, RESOLVE_STATUS_SUCCESS, RESOLVE_STATUS_FAILURE, RESOLVE_STATUS_EXPIRED } /// Result struct is similar packet on Bandchain using to re-calculate result hash. struct Result { string clientID; uint64 oracleScriptID; bytes params; uint64 askCount; uint64 minCount; uint64 requestID; uint64 ansCount; uint64 requestTime; uint64 resolveTime; ResolveStatus resolveStatus; bytes result; } /// Performs oracle state relay and oracle data verification in one go. The caller submits /// the encoded proof and receives back the decoded data, ready to be validated and used. /// @param data The encoded data for oracle state relay and data verification. function relayAndVerify(bytes calldata data) external returns (Result memory); /// Performs oracle state relay and many times of oracle data verification in one go. The caller submits /// the encoded proof and receives back the decoded data, ready to be validated and used. /// @param data The encoded data for oracle state relay and an array of data verification. function relayAndMultiVerify(bytes calldata data) external returns (Result[] memory); // Performs oracle state relay and requests count verification in one go. The caller submits /// the encoded proof and receives back the decoded data, ready tobe validated and used. /// @param data The encoded data for oracle state relay and requests count verification. function relayAndVerifyCount(bytes calldata data) external returns (uint64, uint64); // block time, requests count } /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } /** * @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; } } /** * @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 anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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); } } /** * @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 * ==== * * [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://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /// @title IVRFProvider interface /// @notice Interface for the BandVRF provider interface IVRFProvider { /// @dev The function for consumers who want random data. /// Consumers can simply make requests to get random data back later. /// @param seed Any string that used to initialize the randomizer. function requestRandomData(string calldata seed) external payable; } /// @title IVRFConsumer interface /// @notice Interface for the VRF consumer base interface IVRFConsumer { /// @dev The function is called by the VRF provider in order to deliver results to the consumer. /// @param seed Any string that used to initialize the randomizer. /// @param time Timestamp where the random data was created. /// @param result A random bytes for given seed anfd time. function consume( string calldata seed, uint64 time, bytes32 result ) external; } library Obi { struct Data { uint256 offset; bytes raw; } function from(bytes memory data) internal pure returns (Data memory) { return Data({offset: 0, raw: data}); } modifier shift(Data memory data, uint256 size) { require(data.raw.length >= data.offset + size, "Obi: Out of range"); _; data.offset += size; } function finished(Data memory data) internal pure returns (bool) { return data.offset == data.raw.length; } function decodeU8(Data memory data) internal pure shift(data, 1) returns (uint8 value) { value = uint8(data.raw[data.offset]); } function decodeI8(Data memory data) internal pure shift(data, 1) returns (int8 value) { value = int8(uint8(data.raw[data.offset])); } function decodeU16(Data memory data) internal pure returns (uint16 value) { value = uint16(decodeU8(data)) << 8; value |= uint16(decodeU8(data)); } function decodeI16(Data memory data) internal pure returns (int16 value) { value = int16(decodeI8(data)) << 8; value |= int16(decodeI8(data)); } function decodeU32(Data memory data) internal pure returns (uint32 value) { value = uint32(decodeU16(data)) << 16; value |= uint32(decodeU16(data)); } function decodeI32(Data memory data) internal pure returns (int32 value) { value = int32(decodeI16(data)) << 16; value |= int32(decodeI16(data)); } function decodeU64(Data memory data) internal pure returns (uint64 value) { value = uint64(decodeU32(data)) << 32; value |= uint64(decodeU32(data)); } function decodeI64(Data memory data) internal pure returns (int64 value) { value = int64(decodeI32(data)) << 32; value |= int64(decodeI32(data)); } function decodeU128(Data memory data) internal pure returns (uint128 value) { value = uint128(decodeU64(data)) << 64; value |= uint128(decodeU64(data)); } function decodeI128(Data memory data) internal pure returns (int128 value) { value = int128(decodeI64(data)) << 64; value |= int128(decodeI64(data)); } function decodeU256(Data memory data) internal pure returns (uint256 value) { value = uint256(decodeU128(data)) << 128; value |= uint256(decodeU128(data)); } function decodeI256(Data memory data) internal pure returns (int256 value) { value = int256(decodeI128(data)) << 128; value |= int256(decodeI128(data)); } function decodeBool(Data memory data) internal pure returns (bool value) { value = (decodeU8(data) != 0); } function decodeBytes(Data memory data) internal pure returns (bytes memory value) { value = new bytes(decodeU32(data)); for (uint256 i = 0; i < value.length; i++) { value[i] = bytes1(decodeU8(data)); } } function decodeString(Data memory data) internal pure returns (string memory value) { return string(decodeBytes(data)); } function decodeBytes32(Data memory data) internal pure shift(data, 32) returns (bytes1[32] memory value) { bytes memory raw = data.raw; uint256 offset = data.offset; // solium-disable-next-line security/no-inline-assembly assembly { mstore(value, mload(add(add(raw, 32), offset))) } } function decodeBytes64(Data memory data) internal pure shift(data, 64) returns (bytes1[64] memory value) { bytes memory raw = data.raw; uint256 offset = data.offset; // solium-disable-next-line security/no-inline-assembly assembly { mstore(value, mload(add(add(raw, 32), offset))) mstore(add(value, 32), mload(add(add(raw, 64), offset))) } } function decodeBytes65(Data memory data) internal pure shift(data, 65) returns (bytes1[65] memory value) { bytes memory raw = data.raw; uint256 offset = data.offset; // solium-disable-next-line security/no-inline-assembly assembly { mstore(value, mload(add(add(raw, 32), offset))) mstore(add(value, 32), mload(add(add(raw, 64), offset))) } value[64] = data.raw[data.offset + 64]; } } /// @title ParamsDecoder library /// @notice Library for decoding the OBI-encoded input parameters of a VRF data request library VRFDecoder { using Obi for Obi.Data; struct Params { uint64 time; address taskWorker; bytes32 seed; } struct Result { bytes result; bytes proof; } function bytesToAddress(bytes memory addressBytes) internal pure returns(address addr) { require(addressBytes.length == 20, "DATA_DECODE_INVALID_SIZE_FOR_ADDRESS"); assembly { addr := mload(add(addressBytes, 20)) } } function bytesToBytes32(bytes memory _bytes) internal pure returns(bytes32 result) { require(_bytes.length == 32, "DATA_DECODE_INVALID_SIZE_FOR_BYTES32"); assembly { result := mload(add(_bytes, 32)) } } /// @notice Decodes the encoded request input parameters /// @param encodedParams Encoded paramter data function decodeParams(bytes memory encodedParams) internal pure returns (Params memory params) { Obi.Data memory decoder = Obi.from(encodedParams); params.seed = bytesToBytes32(decoder.decodeBytes()); params.time = decoder.decodeU64(); params.taskWorker = bytesToAddress(decoder.decodeBytes()); require(decoder.finished(), "DATA_DECODE_NOT_FINISHED"); } /// @notice Decodes the encoded data request response result /// @param encodedResult Encoded result data function decodeResult(bytes memory encodedResult) internal pure returns (Result memory result) { Obi.Data memory decoder = Obi.from(encodedResult); result.proof = decoder.decodeBytes(); result.result = decoder.decodeBytes(); require(decoder.finished(), "DATA_DECODE_NOT_FINISHED"); } } /// @title VRFProvider contract /// @notice Contract for working with BandChain's verifiable random function feature abstract contract VRFProviderBase is IVRFProvider, Ownable, ReentrancyGuard { using VRFDecoder for bytes; using Address for address; IBridge public bridge; uint64 public oracleScriptID; uint8 public minCount; uint8 public askCount; uint64 public taskNonce; uint256 public minimumFee; // Mapping that enforces the client to provide a unique seed for each request mapping(address => mapping(string => bool)) public hasClientSeed; // Mapping from nonce => task mapping(uint64 => Task) public tasks; event RandomDataRequested( uint64 time, uint64 nonce, address indexed caller, bytes32 blockHash, bytes32 seed, uint256 chainID, uint256 taskFee, string clientSeed ); event RandomDataRelayed( uint64 time, uint64 bandRequestID, address indexed to, bytes32 resultHash, bytes32 seed, string clientSeed ); event SetBridge(address indexed newBridge); event SetOracleScriptID(uint64 newOID); event SetMinCount(uint8 newMinCount); event SetAskCount(uint8 newAskCount); event SetMinimumFee(uint256 newMinimumFee); struct Task { bool isResolved; uint64 time; address caller; uint256 taskFee; bytes32 seed; string clientSeed; bytes proof; bytes result; } constructor( uint8 _minCount, uint8 _askCount, uint64 _oracleScriptID, IBridge _bridge, uint256 _minimumFee ) { bridge = _bridge; oracleScriptID = _oracleScriptID; minCount = _minCount; askCount = _askCount; minimumFee = _minimumFee; emit SetBridge(address(_bridge)); emit SetOracleScriptID(_oracleScriptID); emit SetMinCount(_minCount); emit SetAskCount(_askCount); emit SetMinimumFee(_minimumFee); } function getBlockTime() public view virtual returns (uint64) { return uint64(block.timestamp); } function getBlockLatestHash() public view virtual returns (bytes32) { return blockhash(block.number - 1); } function getChainID() public view virtual returns(uint256 id) { assembly { id := chainid() } } function getSeed( uint64 _time, address _caller, bytes32 _blockHash, uint256 _chainID, uint256 _nonce, string memory _clientSeed ) public pure returns (bytes32) { return keccak256(abi.encode(_time, _caller, _blockHash, _chainID, _nonce, _clientSeed)); } function setBridge(IBridge _bridge) external onlyOwner { bridge = _bridge; emit SetBridge(address(_bridge)); } function setOracleScriptID(uint64 _oracleScriptID) external onlyOwner { oracleScriptID = _oracleScriptID; emit SetOracleScriptID(_oracleScriptID); } function setMinCount(uint8 _minCount) external onlyOwner { minCount = _minCount; emit SetMinCount(_minCount); } function setAskCount(uint8 _askCount) external onlyOwner { askCount = _askCount; emit SetAskCount(_askCount); } function setMinimumFee(uint256 _minimumFee) external onlyOwner { minimumFee = _minimumFee; emit SetMinimumFee(_minimumFee); } function requestRandomData(string calldata _clientSeed) external payable override nonReentrant { require( !hasClientSeed[msg.sender][_clientSeed], "VRFProviderBase: Seed already existed for this sender" ); uint64 time = getBlockTime(); uint64 currentTaskNonce = taskNonce; bytes32 blockHash = getBlockLatestHash(); uint256 chainID = getChainID(); bytes32 seed = getSeed(time, msg.sender, blockHash, chainID, currentTaskNonce, _clientSeed); require(msg.value >= minimumFee, "VRFProviderBase: Task fee is lower than the minimum fee"); // Initiate a new task tasks[currentTaskNonce].time = time; tasks[currentTaskNonce].caller = msg.sender; tasks[currentTaskNonce].seed = seed; tasks[currentTaskNonce].taskFee = msg.value; tasks[currentTaskNonce].clientSeed = _clientSeed; emit RandomDataRequested( time, currentTaskNonce, msg.sender, blockHash, seed, chainID, msg.value, _clientSeed ); hasClientSeed[msg.sender][_clientSeed] = true; taskNonce = currentTaskNonce + 1; } function relayProof(bytes calldata _proof, uint64 _taskNonce) external nonReentrant { // create a local var to save cost Task memory _task = tasks[_taskNonce]; // Check the validity of the task require(_task.caller != address(0), "VRFProviderBase: Task not found"); require(!_task.isResolved, "VRFProviderBase: Task already resolved"); // Verify proof using Bridge and extract the result IBridge.Result memory res = bridge.relayAndVerify(_proof); // check oracle script id, min count, ask count require( res.oracleScriptID == oracleScriptID, "VRFProviderBase: Oracle Script ID not match" ); require(res.minCount == uint8(minCount), "VRFProviderBase: Min Count not match"); require(res.askCount == uint8(askCount), "VRFProviderBase: Ask Count not match"); // Check that the request on Band was successfully resolved require( res.resolveStatus == IBridge.ResolveStatus.RESOLVE_STATUS_SUCCESS, "VRFProviderBase: Request not successfully resolved" ); // Check if sender is a worker VRFDecoder.Params memory params = res.params.decodeParams(); require(msg.sender == params.taskWorker, "VRFProviderBase: The sender must be the task worker"); require(_task.seed == params.seed, "VRFProviderBase: Seed is mismatched"); require(_task.time == params.time, "VRFProviderBase: Time is mismatched"); // Extract the task's result VRFDecoder.Result memory result = res.result.decodeResult(); bytes32 resultHash = keccak256(result.result); // Save update the storage task tasks[_taskNonce].isResolved = true; tasks[_taskNonce].result = result.result; tasks[_taskNonce].proof = result.proof; emit RandomDataRelayed( _task.time, res.requestID, _task.caller, resultHash, params.seed, _task.clientSeed ); // End function by call consume function on VRF consumer with data from BandChain if (_task.caller.isContract()) { IVRFConsumer(_task.caller).consume( _task.clientSeed, _task.time, resultHash ); } // Pay fee to the worker msg.sender.call{value: _task.taskFee}(""); } } contract VRFProvider is VRFProviderBase { constructor( uint8 _minCount, uint8 _askCount, uint64 _oracleScriptID, IBridge _bridge, uint256 _minimumFee ) VRFProviderBase(_minCount, _askCount, _oracleScriptID, _bridge, _minimumFee) {} }
[{"inputs":[{"internalType":"uint8","name":"_minCount","type":"uint8"},{"internalType":"uint8","name":"_askCount","type":"uint8"},{"internalType":"uint64","name":"_oracleScriptID","type":"uint64"},{"internalType":"contract IBridge","name":"_bridge","type":"address"},{"internalType":"uint256","name":"_minimumFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"uint64","name":"time","type":"uint64"},{"indexed":false,"internalType":"uint64","name":"bandRequestID","type":"uint64"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"bytes32","name":"resultHash","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"seed","type":"bytes32"},{"indexed":false,"internalType":"string","name":"clientSeed","type":"string"}],"name":"RandomDataRelayed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"time","type":"uint64"},{"indexed":false,"internalType":"uint64","name":"nonce","type":"uint64"},{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bytes32","name":"blockHash","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"seed","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"chainID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"taskFee","type":"uint256"},{"indexed":false,"internalType":"string","name":"clientSeed","type":"string"}],"name":"RandomDataRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"newAskCount","type":"uint8"}],"name":"SetAskCount","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newBridge","type":"address"}],"name":"SetBridge","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"newMinCount","type":"uint8"}],"name":"SetMinCount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMinimumFee","type":"uint256"}],"name":"SetMinimumFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"newOID","type":"uint64"}],"name":"SetOracleScriptID","type":"event"},{"inputs":[],"name":"askCount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bridge","outputs":[{"internalType":"contract IBridge","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBlockLatestHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBlockTime","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainID","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_time","type":"uint64"},{"internalType":"address","name":"_caller","type":"address"},{"internalType":"bytes32","name":"_blockHash","type":"bytes32"},{"internalType":"uint256","name":"_chainID","type":"uint256"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"string","name":"_clientSeed","type":"string"}],"name":"getSeed","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"string","name":"","type":"string"}],"name":"hasClientSeed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minCount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracleScriptID","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_proof","type":"bytes"},{"internalType":"uint64","name":"_taskNonce","type":"uint64"}],"name":"relayProof","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_clientSeed","type":"string"}],"name":"requestRandomData","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_askCount","type":"uint8"}],"name":"setAskCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IBridge","name":"_bridge","type":"address"}],"name":"setBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_minCount","type":"uint8"}],"name":"setMinCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minimumFee","type":"uint256"}],"name":"setMinimumFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_oracleScriptID","type":"uint64"}],"name":"setOracleScriptID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"taskNonce","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"}],"name":"tasks","outputs":[{"internalType":"bool","name":"isResolved","type":"bool"},{"internalType":"uint64","name":"time","type":"uint64"},{"internalType":"address","name":"caller","type":"address"},{"internalType":"uint256","name":"taskFee","type":"uint256"},{"internalType":"bytes32","name":"seed","type":"bytes32"},{"internalType":"string","name":"clientSeed","type":"string"},{"internalType":"bytes","name":"proof","type":"bytes"},{"internalType":"bytes","name":"result","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200262238038062002622833981016040819052620000349162000224565b84848484846200004433620001bd565b600180556002805460ff868116600160e81b0260ff60e81b19918916600160e01b029190911661ffff60e01b196001600160401b038816600160a01b026001600160e01b03199094166001600160a01b0388169081179490941716171790915560048290556040517fe605ac02ea219003ec58fc9cf4d4b3c5f2d62ec39807b1c63886ddd47a6fcd6e90600090a26040516001600160401b03841681527ff2f9244ffbca9700c2b517728b7200ac8d42bcc9c8205a22d4eb544f4a9812c29060200160405180910390a160405160ff861681527f6a41206f1877a3a81ce4312371f6eaf8ea276863afb771b0b3aa025db2116fcb9060200160405180910390a160405160ff851681527f9d4d45eba648cca1bbb150f31760e02eef2dc6e534a57d308fdee832a3443aad9060200160405180910390a16040518181527fe7bbedeafc758f32f24ec5c8fb8aa1c64f3aaa4539dde12855baff72645ba2519060200160405180910390a150505050505050505050620002a9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b805160ff811681146200021f57600080fd5b919050565b600080600080600060a086880312156200023d57600080fd5b62000248866200020d565b945062000258602087016200020d565b60408701519094506001600160401b03811681146200027657600080fd5b60608701519093506001600160a01b03811681146200029457600080fd5b80925050608086015190509295509295909350565b61236980620002b96000396000f3fe6080604052600436106101355760003560e01c80637d29ce18116100ab578063a55ca1001161006f578063a55ca100146103a8578063b2a8e08b146103bd578063d42f5b0b146103dd578063e2081d37146103fd578063e78cea921461041d578063f2fde38b1461043d57600080fd5b80637d29ce181461030257806387ceff09146103225780638da5cb5b146103355780638dd1480214610367578063a394fda71461038757600080fd5b80634cc13ca0116100fd5780634cc13ca014610234578063564b81ef14610273578063691d91b7146102865780636b895ab714610299578063715018a6146102cd57806376fd9020146102e257600080fd5b80630693b1ab1461013a578063182a7506146101725780631a7626e7146101945780631ff32bea146101b857806349c8795814610214575b600080fd5b34801561014657600080fd5b5060025461015b90600160e01b900460ff1681565b60405160ff90911681526020015b60405180910390f35b34801561017e57600080fd5b5061019261018d36600461196b565b61045d565b005b3480156101a057600080fd5b506101aa60045481565b604051908152602001610169565b3480156101c457600080fd5b506102046101d3366004611a85565b6005602090815260009283526040909220815180830184018051928152908401929093019190912091525460ff1681565b6040519015158152602001610169565b34801561022057600080fd5b5061019261022f366004611b31565b6104a1565b34801561024057600080fd5b5060025461025b90600160a01b90046001600160401b031681565b6040516001600160401b039091168152602001610169565b34801561027f57600080fd5b50466101aa565b610192610294366004611b87565b610d7b565b3480156102a557600080fd5b506102b96102b4366004611bc8565b6110a0565b604051610169989796959493929190611c3c565b3480156102d957600080fd5b50610192611291565b3480156102ee57600080fd5b5060035461025b906001600160401b031681565b34801561030e57600080fd5b5061019261031d366004611cb8565b6112a5565b34801561032e57600080fd5b504261025b565b34801561034157600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610169565b34801561037357600080fd5b50610192610382366004611cdb565b6112fb565b34801561039357600080fd5b5060025461015b90600160e81b900460ff1681565b3480156103b457600080fd5b506101aa61134d565b3480156103c957600080fd5b506101926103d8366004611cb8565b611360565b3480156103e957600080fd5b506101aa6103f8366004611cf8565b6113b6565b34801561040957600080fd5b50610192610418366004611bc8565b6113f5565b34801561042957600080fd5b5060025461034f906001600160a01b031681565b34801561044957600080fd5b50610192610458366004611cdb565b611458565b6104656114d1565b60048190556040518181527fe7bbedeafc758f32f24ec5c8fb8aa1c64f3aaa4539dde12855baff72645ba251906020015b60405180910390a150565b6002600154036104f85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260018181556001600160401b03838116600090815260066020908152604080832081516101008082018452825460ff81161515835290810490961693810193909352600160481b9094046001600160a01b03169082015292820154606084015292810154608083015260038101805460a08401919061057890611d75565b80601f01602080910402602001604051908101604052809291908181526020018280546105a490611d75565b80156105f15780601f106105c6576101008083540402835291602001916105f1565b820191906000526020600020905b8154815290600101906020018083116105d457829003601f168201915b5050505050815260200160048201805461060a90611d75565b80601f016020809104026020016040519081016040528092919081815260200182805461063690611d75565b80156106835780601f1061065857610100808354040283529160200191610683565b820191906000526020600020905b81548152906001019060200180831161066657829003601f168201915b5050505050815260200160058201805461069c90611d75565b80601f01602080910402602001604051908101604052809291908181526020018280546106c890611d75565b80156107155780601f106106ea57610100808354040283529160200191610715565b820191906000526020600020905b8154815290600101906020018083116106f857829003601f168201915b5050509190925250505060408101519091506001600160a01b031661077c5760405162461bcd60e51b815260206004820152601f60248201527f56524650726f7669646572426173653a205461736b206e6f7420666f756e640060448201526064016104ef565b8051156107da5760405162461bcd60e51b815260206004820152602660248201527f56524650726f7669646572426173653a205461736b20616c72656164792072656044820152651cdbdb1d995960d21b60648201526084016104ef565b60025460405163569b9b9960e11b81526000916001600160a01b03169063ad3737329061080d9088908890600401611dd2565b6000604051808303816000875af115801561082c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108549190810190611e52565b9050600260149054906101000a90046001600160401b03166001600160401b031681602001516001600160401b0316146108e45760405162461bcd60e51b815260206004820152602b60248201527f56524650726f7669646572426173653a204f7261636c6520536372697074204960448201526a08840dcdee840dac2e8c6d60ab1b60648201526084016104ef565b6002546080820151600160e01b90910460ff166001600160401b039091161461095b5760405162461bcd60e51b8152602060048201526024808201527f56524650726f7669646572426173653a204d696e20436f756e74206e6f74206d6044820152630c2e8c6d60e31b60648201526084016104ef565b6002546060820151600160e81b90910460ff166001600160401b03909116146109d25760405162461bcd60e51b8152602060048201526024808201527f56524650726f7669646572426173653a2041736b20436f756e74206e6f74206d6044820152630c2e8c6d60e31b60648201526084016104ef565b600181610120015160038111156109eb576109eb611f95565b14610a535760405162461bcd60e51b815260206004820152603260248201527f56524650726f7669646572426173653a2052657175657374206e6f742073756360448201527118d95cdcd99d5b1b1e481c995cdbdb1d995960721b60648201526084016104ef565b6000610a62826040015161152b565b905080602001516001600160a01b0316336001600160a01b031614610ae55760405162461bcd60e51b815260206004820152603360248201527f56524650726f7669646572426173653a205468652073656e646572206d757374604482015272103132903a3432903a30b9b5903bb7b935b2b960691b60648201526084016104ef565b8060400151836080015114610b485760405162461bcd60e51b815260206004820152602360248201527f56524650726f7669646572426173653a2053656564206973206d69736d6174636044820152621a195960ea1b60648201526084016104ef565b80600001516001600160401b031683602001516001600160401b031614610bbd5760405162461bcd60e51b815260206004820152602360248201527f56524650726f7669646572426173653a2054696d65206973206d69736d6174636044820152621a195960ea1b60648201526084016104ef565b6000610bcd836101400151611622565b805180516020918201206001600160401b038816600090815260069092526040909120805460ff1916600117815582519293509091600590910190610c129082611ffa565b506020808301516001600160401b03881660009081526006909252604090912060040190610c409082611ffa565b5084604001516001600160a01b03167fbb35e03f369500c47da299f2f157992432def6f457e32bf81db41dfd1e7cca9c86602001518660a001518487604001518a60a00151604051610c969594939291906120b9565b60405180910390a260408501516001600160a01b03163b15610d215784604001516001600160a01b031663159b97ff8660a001518760200151846040518463ffffffff1660e01b8152600401610cee939291906120fc565b600060405180830381600087803b158015610d0857600080fd5b505af1158015610d1c573d6000803e3d6000fd5b505050505b6060850151604051339190600081818185875af1925050503d8060008114610d65576040519150601f19603f3d011682016040523d82523d6000602084013e610d6a565b606091505b505060018055505050505050505050565b600260015403610dcd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104ef565b600260015533600090815260056020526040908190209051610df2908490849061212a565b9081526040519081900360200190205460ff1615610e705760405162461bcd60e51b815260206004820152603560248201527f56524650726f7669646572426173653a205365656420616c726561647920657860448201527434b9ba32b2103337b9103a3434b99039b2b73232b960591b60648201526084016104ef565b60035442906001600160401b03166000610e8861134d565b905060004690506000610ede85338585886001600160401b03168c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506113b692505050565b9050600454341015610f585760405162461bcd60e51b815260206004820152603760248201527f56524650726f7669646572426173653a205461736b20666565206973206c6f7760448201527f6572207468616e20746865206d696e696d756d2066656500000000000000000060648201526084016104ef565b6001600160401b0384811660009081526006602052604090208054610100600160e81b031916610100928816929092027fffffff0000000000000000000000000000000000000000ffffffffffffffffff169190911733600160481b0217815560028101829055346001820155600301610fd387898361213a565b50336001600160a01b03167f5817091a90e1c4e7f8149c97f1186caf8632b9beed61aed854916334f7fe158d8686868587348e8e60405161101b9897969594939291906121fa565b60405180910390a23360009081526005602052604090819020905160019190611047908a908a9061212a565b908152604051908190036020019020805491151560ff19909216919091179055611072846001612263565b6003805467ffffffffffffffff19166001600160401b03929092169190911790555050600180555050505050565b600660205260009081526040902080546001820154600283015460038401805460ff85169561010086046001600160401b031695600160481b90046001600160a01b031694939290916110f290611d75565b80601f016020809104026020016040519081016040528092919081815260200182805461111e90611d75565b801561116b5780601f106111405761010080835404028352916020019161116b565b820191906000526020600020905b81548152906001019060200180831161114e57829003601f168201915b50505050509080600401805461118090611d75565b80601f01602080910402602001604051908101604052809291908181526020018280546111ac90611d75565b80156111f95780601f106111ce576101008083540402835291602001916111f9565b820191906000526020600020905b8154815290600101906020018083116111dc57829003601f168201915b50505050509080600501805461120e90611d75565b80601f016020809104026020016040519081016040528092919081815260200182805461123a90611d75565b80156112875780601f1061125c57610100808354040283529160200191611287565b820191906000526020600020905b81548152906001019060200180831161126a57829003601f168201915b5050505050905088565b6112996114d1565b6112a3600061168e565b565b6112ad6114d1565b6002805460ff60e01b1916600160e01b60ff8416908102919091179091556040519081527f6a41206f1877a3a81ce4312371f6eaf8ea276863afb771b0b3aa025db2116fcb90602001610496565b6113036114d1565b600280546001600160a01b0319166001600160a01b0383169081179091556040517fe605ac02ea219003ec58fc9cf4d4b3c5f2d62ec39807b1c63886ddd47a6fcd6e90600090a250565b600061135a60014361228a565b40905090565b6113686114d1565b6002805460ff60e81b1916600160e81b60ff8416908102919091179091556040519081527f9d4d45eba648cca1bbb150f31760e02eef2dc6e534a57d308fdee832a3443aad90602001610496565b60008686868686866040516020016113d3969594939291906122a3565b6040516020818303038152906040528051906020012090509695505050505050565b6113fd6114d1565b6002805467ffffffffffffffff60a01b1916600160a01b6001600160401b038416908102919091179091556040519081527ff2f9244ffbca9700c2b517728b7200ac8d42bcc9c8205a22d4eb544f4a9812c290602001610496565b6114606114d1565b6001600160a01b0381166114c55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104ef565b6114ce8161168e565b50565b6000546001600160a01b031633146112a35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104ef565b604080516060810182526000808252602082018190529181018290529061157583604080518082018252600080825260606020928301528251808401909352825281019190915290565b9050611588611583826116de565b611786565b6040830152611596816117ed565b6001600160401b031682526115b26115ad826116de565b611819565b6001600160a01b031660208301526115d08160208101515190511490565b61161c5760405162461bcd60e51b815260206004820152601860248201527f444154415f4445434f44455f4e4f545f46494e4953484544000000000000000060448201526064016104ef565b50919050565b6040805180820190915260608082526020820152600061166583604080518082018252600080825260606020928301528251808401909352825281019190915290565b9050611670816116de565b602083015261167e816116de565b82526020810151518151146115d0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60606116e982611880565b63ffffffff166001600160401b0381111561170657611706611999565b6040519080825280601f01601f191660200182016040528015611730576020820181803683370190505b50905060005b815181101561161c57611748836118a8565b60f81b82828151811061175d5761175d6122f1565b60200101906001600160f81b031916908160001a9053508061177e81612307565b915050611736565b600081516020146117e55760405162461bcd60e51b8152602060048201526024808201527f444154415f4445434f44455f494e56414c49445f53495a455f464f525f42595460448201526322a9999960e11b60648201526084016104ef565b506020015190565b600060206117fa83611880565b63ffffffff16901b905061180d82611880565b63ffffffff1617919050565b600081516014146118785760405162461bcd60e51b8152602060048201526024808201527f444154415f4445434f44455f494e56414c49445f53495a455f464f525f4144446044820152635245535360e01b60648201526084016104ef565b506014015190565b6000601061188d83611945565b61ffff16901b905061189e82611945565b61ffff1617919050565b60008160018082600001516118bd9190612320565b82602001515110156119055760405162461bcd60e51b81526020600482015260116024820152704f62693a204f7574206f662072616e676560781b60448201526064016104ef565b602084015184518151811061191c5761191c6122f1565b0160200151825160f89190911c93508190839061193a908390612320565b905250919392505050565b60006008611952836118a8565b60ff16901b9050611962826118a8565b60ff1617919050565b60006020828403121561197d57600080fd5b5035919050565b6001600160a01b03811681146114ce57600080fd5b634e487b7160e01b600052604160045260246000fd5b60405161016081016001600160401b03811182821017156119d2576119d2611999565b60405290565b604051601f8201601f191681016001600160401b0381118282101715611a0057611a00611999565b604052919050565b60006001600160401b03821115611a2157611a21611999565b50601f01601f191660200190565b600082601f830112611a4057600080fd5b8135611a53611a4e82611a08565b6119d8565b818152846020838601011115611a6857600080fd5b816020850160208301376000918101602001919091529392505050565b60008060408385031215611a9857600080fd5b8235611aa381611984565b915060208301356001600160401b03811115611abe57600080fd5b611aca85828601611a2f565b9150509250929050565b60008083601f840112611ae657600080fd5b5081356001600160401b03811115611afd57600080fd5b602083019150836020828501011115611b1557600080fd5b9250929050565b6001600160401b03811681146114ce57600080fd5b600080600060408486031215611b4657600080fd5b83356001600160401b03811115611b5c57600080fd5b611b6886828701611ad4565b9094509250506020840135611b7c81611b1c565b809150509250925092565b60008060208385031215611b9a57600080fd5b82356001600160401b03811115611bb057600080fd5b611bbc85828601611ad4565b90969095509350505050565b600060208284031215611bda57600080fd5b8135611be581611b1c565b9392505050565b60005b83811015611c07578181015183820152602001611bef565b50506000910152565b60008151808452611c28816020860160208601611bec565b601f01601f19169290920160200192915050565b60006101008a151583526001600160401b038a16602084015260018060a01b03891660408401528760608401528660808401528060a0840152611c8181840187611c10565b905082810360c0840152611c958186611c10565b905082810360e0840152611ca98185611c10565b9b9a5050505050505050505050565b600060208284031215611cca57600080fd5b813560ff81168114611be557600080fd5b600060208284031215611ced57600080fd5b8135611be581611984565b60008060008060008060c08789031215611d1157600080fd5b8635611d1c81611b1c565b95506020870135611d2c81611984565b945060408701359350606087013592506080870135915060a08701356001600160401b03811115611d5c57600080fd5b611d6889828a01611a2f565b9150509295509295509295565b600181811c90821680611d8957607f821691505b60208210810361161c57634e487b7160e01b600052602260045260246000fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b602081526000611de6602083018486611da9565b949350505050565b600082601f830112611dff57600080fd5b8151611e0d611a4e82611a08565b818152846020838601011115611e2257600080fd5b611de6826020830160208701611bec565b8051611e3e81611b1c565b919050565b805160048110611e3e57600080fd5b600060208284031215611e6457600080fd5b81516001600160401b0380821115611e7b57600080fd5b908301906101608286031215611e9057600080fd5b611e986119af565b825182811115611ea757600080fd5b611eb387828601611dee565b825250611ec260208401611e33565b6020820152604083015182811115611ed957600080fd5b611ee587828601611dee565b604083015250611ef760608401611e33565b6060820152611f0860808401611e33565b6080820152611f1960a08401611e33565b60a0820152611f2a60c08401611e33565b60c0820152611f3b60e08401611e33565b60e0820152610100611f4e818501611e33565b90820152610120611f60848201611e43565b908201526101408381015183811115611f7857600080fd5b611f8488828701611dee565b918301919091525095945050505050565b634e487b7160e01b600052602160045260246000fd5b601f821115611ff557600081815260208120601f850160051c81016020861015611fd25750805b601f850160051c820191505b81811015611ff157828155600101611fde565b5050505b505050565b81516001600160401b0381111561201357612013611999565b612027816120218454611d75565b84611fab565b602080601f83116001811461205c57600084156120445750858301515b600019600386901b1c1916600185901b178555611ff1565b600085815260208120601f198616915b8281101561208b5788860151825594840194600190910190840161206c565b50858210156120a95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006001600160401b03808816835280871660208401525084604083015283606083015260a060808301526120f160a0830184611c10565b979650505050505050565b60608152600061210f6060830186611c10565b6001600160401b039490941660208301525060400152919050565b8183823760009101908152919050565b6001600160401b0383111561215157612151611999565b6121658361215f8354611d75565b83611fab565b6000601f84116001811461219957600085156121815750838201355b600019600387901b1c1916600186901b1783556121f3565b600083815260209020601f19861690835b828110156121ca57868501358255602094850194600190920191016121aa565b50868210156121e75760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b60006001600160401b03808b168352808a166020840152508760408301528660608301528560808301528460a083015260e060c083015261223f60e083018486611da9565b9a9950505050505050505050565b634e487b7160e01b600052601160045260246000fd5b6001600160401b038181168382160190808211156122835761228361224d565b5092915050565b8181038181111561229d5761229d61224d565b92915050565b6001600160401b038716815260018060a01b038616602082015284604082015283606082015282608082015260c060a082015260006122e560c0830184611c10565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016123195761231961224d565b5060010190565b8082018082111561229d5761229d61224d56fea2646970667358221220c654f5cde025f7acff3acc4d885b92eeaa5f66c6f1e1205b643b1526923aebe864736f6c63430008100033000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000980000000000000000000000006f057ce91cfcb59d839db91e8df067278a704cb80000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101355760003560e01c80637d29ce18116100ab578063a55ca1001161006f578063a55ca100146103a8578063b2a8e08b146103bd578063d42f5b0b146103dd578063e2081d37146103fd578063e78cea921461041d578063f2fde38b1461043d57600080fd5b80637d29ce181461030257806387ceff09146103225780638da5cb5b146103355780638dd1480214610367578063a394fda71461038757600080fd5b80634cc13ca0116100fd5780634cc13ca014610234578063564b81ef14610273578063691d91b7146102865780636b895ab714610299578063715018a6146102cd57806376fd9020146102e257600080fd5b80630693b1ab1461013a578063182a7506146101725780631a7626e7146101945780631ff32bea146101b857806349c8795814610214575b600080fd5b34801561014657600080fd5b5060025461015b90600160e01b900460ff1681565b60405160ff90911681526020015b60405180910390f35b34801561017e57600080fd5b5061019261018d36600461196b565b61045d565b005b3480156101a057600080fd5b506101aa60045481565b604051908152602001610169565b3480156101c457600080fd5b506102046101d3366004611a85565b6005602090815260009283526040909220815180830184018051928152908401929093019190912091525460ff1681565b6040519015158152602001610169565b34801561022057600080fd5b5061019261022f366004611b31565b6104a1565b34801561024057600080fd5b5060025461025b90600160a01b90046001600160401b031681565b6040516001600160401b039091168152602001610169565b34801561027f57600080fd5b50466101aa565b610192610294366004611b87565b610d7b565b3480156102a557600080fd5b506102b96102b4366004611bc8565b6110a0565b604051610169989796959493929190611c3c565b3480156102d957600080fd5b50610192611291565b3480156102ee57600080fd5b5060035461025b906001600160401b031681565b34801561030e57600080fd5b5061019261031d366004611cb8565b6112a5565b34801561032e57600080fd5b504261025b565b34801561034157600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610169565b34801561037357600080fd5b50610192610382366004611cdb565b6112fb565b34801561039357600080fd5b5060025461015b90600160e81b900460ff1681565b3480156103b457600080fd5b506101aa61134d565b3480156103c957600080fd5b506101926103d8366004611cb8565b611360565b3480156103e957600080fd5b506101aa6103f8366004611cf8565b6113b6565b34801561040957600080fd5b50610192610418366004611bc8565b6113f5565b34801561042957600080fd5b5060025461034f906001600160a01b031681565b34801561044957600080fd5b50610192610458366004611cdb565b611458565b6104656114d1565b60048190556040518181527fe7bbedeafc758f32f24ec5c8fb8aa1c64f3aaa4539dde12855baff72645ba251906020015b60405180910390a150565b6002600154036104f85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260018181556001600160401b03838116600090815260066020908152604080832081516101008082018452825460ff81161515835290810490961693810193909352600160481b9094046001600160a01b03169082015292820154606084015292810154608083015260038101805460a08401919061057890611d75565b80601f01602080910402602001604051908101604052809291908181526020018280546105a490611d75565b80156105f15780601f106105c6576101008083540402835291602001916105f1565b820191906000526020600020905b8154815290600101906020018083116105d457829003601f168201915b5050505050815260200160048201805461060a90611d75565b80601f016020809104026020016040519081016040528092919081815260200182805461063690611d75565b80156106835780601f1061065857610100808354040283529160200191610683565b820191906000526020600020905b81548152906001019060200180831161066657829003601f168201915b5050505050815260200160058201805461069c90611d75565b80601f01602080910402602001604051908101604052809291908181526020018280546106c890611d75565b80156107155780601f106106ea57610100808354040283529160200191610715565b820191906000526020600020905b8154815290600101906020018083116106f857829003601f168201915b5050509190925250505060408101519091506001600160a01b031661077c5760405162461bcd60e51b815260206004820152601f60248201527f56524650726f7669646572426173653a205461736b206e6f7420666f756e640060448201526064016104ef565b8051156107da5760405162461bcd60e51b815260206004820152602660248201527f56524650726f7669646572426173653a205461736b20616c72656164792072656044820152651cdbdb1d995960d21b60648201526084016104ef565b60025460405163569b9b9960e11b81526000916001600160a01b03169063ad3737329061080d9088908890600401611dd2565b6000604051808303816000875af115801561082c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108549190810190611e52565b9050600260149054906101000a90046001600160401b03166001600160401b031681602001516001600160401b0316146108e45760405162461bcd60e51b815260206004820152602b60248201527f56524650726f7669646572426173653a204f7261636c6520536372697074204960448201526a08840dcdee840dac2e8c6d60ab1b60648201526084016104ef565b6002546080820151600160e01b90910460ff166001600160401b039091161461095b5760405162461bcd60e51b8152602060048201526024808201527f56524650726f7669646572426173653a204d696e20436f756e74206e6f74206d6044820152630c2e8c6d60e31b60648201526084016104ef565b6002546060820151600160e81b90910460ff166001600160401b03909116146109d25760405162461bcd60e51b8152602060048201526024808201527f56524650726f7669646572426173653a2041736b20436f756e74206e6f74206d6044820152630c2e8c6d60e31b60648201526084016104ef565b600181610120015160038111156109eb576109eb611f95565b14610a535760405162461bcd60e51b815260206004820152603260248201527f56524650726f7669646572426173653a2052657175657374206e6f742073756360448201527118d95cdcd99d5b1b1e481c995cdbdb1d995960721b60648201526084016104ef565b6000610a62826040015161152b565b905080602001516001600160a01b0316336001600160a01b031614610ae55760405162461bcd60e51b815260206004820152603360248201527f56524650726f7669646572426173653a205468652073656e646572206d757374604482015272103132903a3432903a30b9b5903bb7b935b2b960691b60648201526084016104ef565b8060400151836080015114610b485760405162461bcd60e51b815260206004820152602360248201527f56524650726f7669646572426173653a2053656564206973206d69736d6174636044820152621a195960ea1b60648201526084016104ef565b80600001516001600160401b031683602001516001600160401b031614610bbd5760405162461bcd60e51b815260206004820152602360248201527f56524650726f7669646572426173653a2054696d65206973206d69736d6174636044820152621a195960ea1b60648201526084016104ef565b6000610bcd836101400151611622565b805180516020918201206001600160401b038816600090815260069092526040909120805460ff1916600117815582519293509091600590910190610c129082611ffa565b506020808301516001600160401b03881660009081526006909252604090912060040190610c409082611ffa565b5084604001516001600160a01b03167fbb35e03f369500c47da299f2f157992432def6f457e32bf81db41dfd1e7cca9c86602001518660a001518487604001518a60a00151604051610c969594939291906120b9565b60405180910390a260408501516001600160a01b03163b15610d215784604001516001600160a01b031663159b97ff8660a001518760200151846040518463ffffffff1660e01b8152600401610cee939291906120fc565b600060405180830381600087803b158015610d0857600080fd5b505af1158015610d1c573d6000803e3d6000fd5b505050505b6060850151604051339190600081818185875af1925050503d8060008114610d65576040519150601f19603f3d011682016040523d82523d6000602084013e610d6a565b606091505b505060018055505050505050505050565b600260015403610dcd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104ef565b600260015533600090815260056020526040908190209051610df2908490849061212a565b9081526040519081900360200190205460ff1615610e705760405162461bcd60e51b815260206004820152603560248201527f56524650726f7669646572426173653a205365656420616c726561647920657860448201527434b9ba32b2103337b9103a3434b99039b2b73232b960591b60648201526084016104ef565b60035442906001600160401b03166000610e8861134d565b905060004690506000610ede85338585886001600160401b03168c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506113b692505050565b9050600454341015610f585760405162461bcd60e51b815260206004820152603760248201527f56524650726f7669646572426173653a205461736b20666565206973206c6f7760448201527f6572207468616e20746865206d696e696d756d2066656500000000000000000060648201526084016104ef565b6001600160401b0384811660009081526006602052604090208054610100600160e81b031916610100928816929092027fffffff0000000000000000000000000000000000000000ffffffffffffffffff169190911733600160481b0217815560028101829055346001820155600301610fd387898361213a565b50336001600160a01b03167f5817091a90e1c4e7f8149c97f1186caf8632b9beed61aed854916334f7fe158d8686868587348e8e60405161101b9897969594939291906121fa565b60405180910390a23360009081526005602052604090819020905160019190611047908a908a9061212a565b908152604051908190036020019020805491151560ff19909216919091179055611072846001612263565b6003805467ffffffffffffffff19166001600160401b03929092169190911790555050600180555050505050565b600660205260009081526040902080546001820154600283015460038401805460ff85169561010086046001600160401b031695600160481b90046001600160a01b031694939290916110f290611d75565b80601f016020809104026020016040519081016040528092919081815260200182805461111e90611d75565b801561116b5780601f106111405761010080835404028352916020019161116b565b820191906000526020600020905b81548152906001019060200180831161114e57829003601f168201915b50505050509080600401805461118090611d75565b80601f01602080910402602001604051908101604052809291908181526020018280546111ac90611d75565b80156111f95780601f106111ce576101008083540402835291602001916111f9565b820191906000526020600020905b8154815290600101906020018083116111dc57829003601f168201915b50505050509080600501805461120e90611d75565b80601f016020809104026020016040519081016040528092919081815260200182805461123a90611d75565b80156112875780601f1061125c57610100808354040283529160200191611287565b820191906000526020600020905b81548152906001019060200180831161126a57829003601f168201915b5050505050905088565b6112996114d1565b6112a3600061168e565b565b6112ad6114d1565b6002805460ff60e01b1916600160e01b60ff8416908102919091179091556040519081527f6a41206f1877a3a81ce4312371f6eaf8ea276863afb771b0b3aa025db2116fcb90602001610496565b6113036114d1565b600280546001600160a01b0319166001600160a01b0383169081179091556040517fe605ac02ea219003ec58fc9cf4d4b3c5f2d62ec39807b1c63886ddd47a6fcd6e90600090a250565b600061135a60014361228a565b40905090565b6113686114d1565b6002805460ff60e81b1916600160e81b60ff8416908102919091179091556040519081527f9d4d45eba648cca1bbb150f31760e02eef2dc6e534a57d308fdee832a3443aad90602001610496565b60008686868686866040516020016113d3969594939291906122a3565b6040516020818303038152906040528051906020012090509695505050505050565b6113fd6114d1565b6002805467ffffffffffffffff60a01b1916600160a01b6001600160401b038416908102919091179091556040519081527ff2f9244ffbca9700c2b517728b7200ac8d42bcc9c8205a22d4eb544f4a9812c290602001610496565b6114606114d1565b6001600160a01b0381166114c55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104ef565b6114ce8161168e565b50565b6000546001600160a01b031633146112a35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104ef565b604080516060810182526000808252602082018190529181018290529061157583604080518082018252600080825260606020928301528251808401909352825281019190915290565b9050611588611583826116de565b611786565b6040830152611596816117ed565b6001600160401b031682526115b26115ad826116de565b611819565b6001600160a01b031660208301526115d08160208101515190511490565b61161c5760405162461bcd60e51b815260206004820152601860248201527f444154415f4445434f44455f4e4f545f46494e4953484544000000000000000060448201526064016104ef565b50919050565b6040805180820190915260608082526020820152600061166583604080518082018252600080825260606020928301528251808401909352825281019190915290565b9050611670816116de565b602083015261167e816116de565b82526020810151518151146115d0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60606116e982611880565b63ffffffff166001600160401b0381111561170657611706611999565b6040519080825280601f01601f191660200182016040528015611730576020820181803683370190505b50905060005b815181101561161c57611748836118a8565b60f81b82828151811061175d5761175d6122f1565b60200101906001600160f81b031916908160001a9053508061177e81612307565b915050611736565b600081516020146117e55760405162461bcd60e51b8152602060048201526024808201527f444154415f4445434f44455f494e56414c49445f53495a455f464f525f42595460448201526322a9999960e11b60648201526084016104ef565b506020015190565b600060206117fa83611880565b63ffffffff16901b905061180d82611880565b63ffffffff1617919050565b600081516014146118785760405162461bcd60e51b8152602060048201526024808201527f444154415f4445434f44455f494e56414c49445f53495a455f464f525f4144446044820152635245535360e01b60648201526084016104ef565b506014015190565b6000601061188d83611945565b61ffff16901b905061189e82611945565b61ffff1617919050565b60008160018082600001516118bd9190612320565b82602001515110156119055760405162461bcd60e51b81526020600482015260116024820152704f62693a204f7574206f662072616e676560781b60448201526064016104ef565b602084015184518151811061191c5761191c6122f1565b0160200151825160f89190911c93508190839061193a908390612320565b905250919392505050565b60006008611952836118a8565b60ff16901b9050611962826118a8565b60ff1617919050565b60006020828403121561197d57600080fd5b5035919050565b6001600160a01b03811681146114ce57600080fd5b634e487b7160e01b600052604160045260246000fd5b60405161016081016001600160401b03811182821017156119d2576119d2611999565b60405290565b604051601f8201601f191681016001600160401b0381118282101715611a0057611a00611999565b604052919050565b60006001600160401b03821115611a2157611a21611999565b50601f01601f191660200190565b600082601f830112611a4057600080fd5b8135611a53611a4e82611a08565b6119d8565b818152846020838601011115611a6857600080fd5b816020850160208301376000918101602001919091529392505050565b60008060408385031215611a9857600080fd5b8235611aa381611984565b915060208301356001600160401b03811115611abe57600080fd5b611aca85828601611a2f565b9150509250929050565b60008083601f840112611ae657600080fd5b5081356001600160401b03811115611afd57600080fd5b602083019150836020828501011115611b1557600080fd5b9250929050565b6001600160401b03811681146114ce57600080fd5b600080600060408486031215611b4657600080fd5b83356001600160401b03811115611b5c57600080fd5b611b6886828701611ad4565b9094509250506020840135611b7c81611b1c565b809150509250925092565b60008060208385031215611b9a57600080fd5b82356001600160401b03811115611bb057600080fd5b611bbc85828601611ad4565b90969095509350505050565b600060208284031215611bda57600080fd5b8135611be581611b1c565b9392505050565b60005b83811015611c07578181015183820152602001611bef565b50506000910152565b60008151808452611c28816020860160208601611bec565b601f01601f19169290920160200192915050565b60006101008a151583526001600160401b038a16602084015260018060a01b03891660408401528760608401528660808401528060a0840152611c8181840187611c10565b905082810360c0840152611c958186611c10565b905082810360e0840152611ca98185611c10565b9b9a5050505050505050505050565b600060208284031215611cca57600080fd5b813560ff81168114611be557600080fd5b600060208284031215611ced57600080fd5b8135611be581611984565b60008060008060008060c08789031215611d1157600080fd5b8635611d1c81611b1c565b95506020870135611d2c81611984565b945060408701359350606087013592506080870135915060a08701356001600160401b03811115611d5c57600080fd5b611d6889828a01611a2f565b9150509295509295509295565b600181811c90821680611d8957607f821691505b60208210810361161c57634e487b7160e01b600052602260045260246000fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b602081526000611de6602083018486611da9565b949350505050565b600082601f830112611dff57600080fd5b8151611e0d611a4e82611a08565b818152846020838601011115611e2257600080fd5b611de6826020830160208701611bec565b8051611e3e81611b1c565b919050565b805160048110611e3e57600080fd5b600060208284031215611e6457600080fd5b81516001600160401b0380821115611e7b57600080fd5b908301906101608286031215611e9057600080fd5b611e986119af565b825182811115611ea757600080fd5b611eb387828601611dee565b825250611ec260208401611e33565b6020820152604083015182811115611ed957600080fd5b611ee587828601611dee565b604083015250611ef760608401611e33565b6060820152611f0860808401611e33565b6080820152611f1960a08401611e33565b60a0820152611f2a60c08401611e33565b60c0820152611f3b60e08401611e33565b60e0820152610100611f4e818501611e33565b90820152610120611f60848201611e43565b908201526101408381015183811115611f7857600080fd5b611f8488828701611dee565b918301919091525095945050505050565b634e487b7160e01b600052602160045260246000fd5b601f821115611ff557600081815260208120601f850160051c81016020861015611fd25750805b601f850160051c820191505b81811015611ff157828155600101611fde565b5050505b505050565b81516001600160401b0381111561201357612013611999565b612027816120218454611d75565b84611fab565b602080601f83116001811461205c57600084156120445750858301515b600019600386901b1c1916600185901b178555611ff1565b600085815260208120601f198616915b8281101561208b5788860151825594840194600190910190840161206c565b50858210156120a95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006001600160401b03808816835280871660208401525084604083015283606083015260a060808301526120f160a0830184611c10565b979650505050505050565b60608152600061210f6060830186611c10565b6001600160401b039490941660208301525060400152919050565b8183823760009101908152919050565b6001600160401b0383111561215157612151611999565b6121658361215f8354611d75565b83611fab565b6000601f84116001811461219957600085156121815750838201355b600019600387901b1c1916600186901b1783556121f3565b600083815260209020601f19861690835b828110156121ca57868501358255602094850194600190920191016121aa565b50868210156121e75760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b60006001600160401b03808b168352808a166020840152508760408301528660608301528560808301528460a083015260e060c083015261223f60e083018486611da9565b9a9950505050505050505050565b634e487b7160e01b600052601160045260246000fd5b6001600160401b038181168382160190808211156122835761228361224d565b5092915050565b8181038181111561229d5761229d61224d565b92915050565b6001600160401b038716815260018060a01b038616602082015284604082015283606082015282608082015260c060a082015260006122e560c0830184611c10565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016123195761231961224d565b5060010190565b8082018082111561229d5761229d61224d56fea2646970667358221220c654f5cde025f7acff3acc4d885b92eeaa5f66c6f1e1205b643b1526923aebe864736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000980000000000000000000000006f057ce91cfcb59d839db91e8df067278a704cb80000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _minCount (uint8): 10
Arg [1] : _askCount (uint8): 16
Arg [2] : _oracleScriptID (uint64): 152
Arg [3] : _bridge (address): 0x6f057CE91CFcB59d839Db91e8DF067278a704cb8
Arg [4] : _minimumFee (uint256): 0
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000098
Arg [3] : 0000000000000000000000006f057ce91cfcb59d839db91e8df067278a704cb8
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
31218:289:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24111:21;;;;;;;;;;-1:-1:-1;24111:21:0;;;;-1:-1:-1;;;24111:21:0;;;;;;;;;186:4:1;174:17;;;156:36;;144:2;129:18;24111:21:0;;;;;;;;27245:148;;;;;;;;;;-1:-1:-1;27245:148:0;;;;;:::i;:::-;;:::i;:::-;;24197:25;;;;;;;;;;;;;;;;;;;534::1;;;522:2;507:18;24197:25:0;388:177:1;24314:64:0;;;;;;;;;;-1:-1:-1;24314:64:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2666:14:1;;2659:22;2641:41;;2629:2;2614:18;24314:64:0;2501:187:1;28723:2488:0;;;;;;;;;;-1:-1:-1;28723:2488:0;;;;;:::i;:::-;;:::i;24076:28::-;;;;;;;;;;-1:-1:-1;24076:28:0;;;;-1:-1:-1;;;24076:28:0;;-1:-1:-1;;;;;24076:28:0;;;;;;-1:-1:-1;;;;;3888:31:1;;;3870:50;;3858:2;3843:18;24076:28:0;3726:200:1;26169:130:0;;;;;;;;;;-1:-1:-1;26272:9:0;26169:130;;27401:1314;;;;;;:::i;:::-;;:::i;24420:36::-;;;;;;;;;;-1:-1:-1;24420:36:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;:::i;6943:103::-;;;;;;;;;;;;;:::i;24167:23::-;;;;;;;;;;-1:-1:-1;24167:23:0;;;;-1:-1:-1;;;;;24167:23:0;;;26961:134;;;;;;;;;;-1:-1:-1;26961:134:0;;;;;:::i;:::-;;:::i;25922:110::-;;;;;;;;;;-1:-1:-1;26008:15:0;25922:110;;6295:87;;;;;;;;;;-1:-1:-1;6341:7:0;6368:6;-1:-1:-1;;;;;6368:6:0;6295:87;;;-1:-1:-1;;;;;6552:32:1;;;6534:51;;6522:2;6507:18;6295:87:0;6388:203:1;26641:133:0;;;;;;;;;;-1:-1:-1;26641:133:0;;;;;:::i;:::-;;:::i;24139:21::-;;;;;;;;;;-1:-1:-1;24139:21:0;;;;-1:-1:-1;;;24139:21:0;;;;;;26040:121;;;;;;;;;;;;;:::i;27103:134::-;;;;;;;;;;-1:-1:-1;27103:134:0;;;;;:::i;:::-;;:::i;26307:326::-;;;;;;;;;;-1:-1:-1;26307:326:0;;;;;:::i;:::-;;:::i;26782:171::-;;;;;;;;;;-1:-1:-1;26782:171:0;;;;;:::i;:::-;;:::i;24048:21::-;;;;;;;;;;-1:-1:-1;24048:21:0;;;;-1:-1:-1;;;;;24048:21:0;;;7201:201;;;;;;;;;;-1:-1:-1;7201:201:0;;;;;:::i;:::-;;:::i;27245:148::-;6181:13;:11;:13::i;:::-;27319:10:::1;:24:::0;;;27359:26:::1;::::0;534:25:1;;;27359:26:0::1;::::0;522:2:1;507:18;27359:26:0::1;;;;;;;;27245:148:::0;:::o;28723:2488::-;3517:1;4115:7;;:19;4107:63;;;;-1:-1:-1;;;4107:63:0;;8528:2:1;4107:63:0;;;8510:21:1;8567:2;8547:18;;;8540:30;8606:33;8586:18;;;8579:61;8657:18;;4107:63:0;;;;;;;;;3517:1;4248:7;:18;;;-1:-1:-1;;;;;28882:17:0;;::::1;28862;28882::::0;;;:5:::1;:17;::::0;;;;;;;28862:37;;::::1;::::0;;::::1;::::0;;;;::::1;::::0;::::1;;;::::0;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;-1:-1:-1;;;28862:37:0;;::::1;-1:-1:-1::0;;;;;28862:37:0::1;::::0;;;;;;::::1;::::0;;;;;;;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;::::1;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;28862:37:0;;;;-1:-1:-1;;;28963:12:0::1;::::0;::::1;::::0;28862:37;;-1:-1:-1;;;;;;28963:26:0::1;28955:70;;;::::0;-1:-1:-1;;;28955:70:0;;9273:2:1;28955:70:0::1;::::0;::::1;9255:21:1::0;9312:2;9292:18;;;9285:30;9351:33;9331:18;;;9324:61;9402:18;;28955:70:0::1;9071:355:1::0;28955:70:0::1;29045:16:::0;;29044:17:::1;29036:68;;;::::0;-1:-1:-1;;;29036:68:0;;9633:2:1;29036:68:0::1;::::0;::::1;9615:21:1::0;9672:2;9652:18;;;9645:30;9711:34;9691:18;;;9684:62;-1:-1:-1;;;9762:18:1;;;9755:36;9808:19;;29036:68:0::1;9431:402:1::0;29036:68:0::1;29206:6;::::0;:29:::1;::::0;-1:-1:-1;;;29206:29:0;;29178:25:::1;::::0;-1:-1:-1;;;;;29206:6:0::1;::::0;:21:::1;::::0;:29:::1;::::0;29228:6;;;;29206:29:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;29206:29:0::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;:::i;:::-;29178:57;;29349:14;;;;;;;;;-1:-1:-1::0;;;;;29349:14:0::1;-1:-1:-1::0;;;;;29327:36:0::1;:3;:18;;;-1:-1:-1::0;;;;;29327:36:0::1;;29305:129;;;::::0;-1:-1:-1;;;29305:129:0;;12965:2:1;29305:129:0::1;::::0;::::1;12947:21:1::0;13004:2;12984:18;;;12977:30;13043:34;13023:18;;;13016:62;-1:-1:-1;;;13094:18:1;;;13087:41;13145:19;;29305:129:0::1;12763:407:1::0;29305:129:0::1;29475:8;::::0;29453:12:::1;::::0;::::1;::::0;-1:-1:-1;;;29475:8:0;;::::1;;;-1:-1:-1::0;;;;;29453:31:0;;::::1;;29445:80;;;::::0;-1:-1:-1;;;29445:80:0;;13377:2:1;29445:80:0::1;::::0;::::1;13359:21:1::0;13416:2;13396:18;;;13389:30;13455:34;13435:18;;;13428:62;-1:-1:-1;;;13506:18:1;;;13499:34;13550:19;;29445:80:0::1;13175:400:1::0;29445:80:0::1;29566:8;::::0;29544:12:::1;::::0;::::1;::::0;-1:-1:-1;;;29566:8:0;;::::1;;;-1:-1:-1::0;;;;;29544:31:0;;::::1;;29536:80;;;::::0;-1:-1:-1;;;29536:80:0;;13782:2:1;29536:80:0::1;::::0;::::1;13764:21:1::0;13821:2;13801:18;;;13794:30;13860:34;13840:18;;;13833:62;-1:-1:-1;;;13911:18:1;;;13904:34;13955:19;;29536:80:0::1;13580:400:1::0;29536:80:0::1;29741:44;29720:3;:17;;;:65;;;;;;;;:::i;:::-;;29698:165;;;::::0;-1:-1:-1;;;29698:165:0;;14319:2:1;29698:165:0::1;::::0;::::1;14301:21:1::0;14358:2;14338:18;;;14331:30;14397:34;14377:18;;;14370:62;-1:-1:-1;;;14448:18:1;;;14441:48;14506:19;;29698:165:0::1;14117:414:1::0;29698:165:0::1;29916:31;29950:25;:3;:10;;;:23;:25::i;:::-;29916:59;;30008:6;:17;;;-1:-1:-1::0;;;;;29994:31:0::1;:10;-1:-1:-1::0;;;;;29994:31:0::1;;29986:95;;;::::0;-1:-1:-1;;;29986:95:0;;14738:2:1;29986:95:0::1;::::0;::::1;14720:21:1::0;14777:2;14757:18;;;14750:30;14816:34;14796:18;;;14789:62;-1:-1:-1;;;14867:18:1;;;14860:49;14926:19;;29986:95:0::1;14536:415:1::0;29986:95:0::1;30114:6;:11;;;30100:5;:10;;;:25;30092:73;;;::::0;-1:-1:-1;;;30092:73:0;;15158:2:1;30092:73:0::1;::::0;::::1;15140:21:1::0;15197:2;15177:18;;;15170:30;15236:34;15216:18;;;15209:62;-1:-1:-1;;;15287:18:1;;;15280:33;15330:19;;30092:73:0::1;14956:399:1::0;30092:73:0::1;30198:6;:11;;;-1:-1:-1::0;;;;;30184:25:0::1;:5;:10;;;-1:-1:-1::0;;;;;30184:25:0::1;;30176:73;;;::::0;-1:-1:-1;;;30176:73:0;;15562:2:1;30176:73:0::1;::::0;::::1;15544:21:1::0;15601:2;15581:18;;;15574:30;15640:34;15620:18;;;15613:62;-1:-1:-1;;;15691:18:1;;;15684:33;15734:19;;30176:73:0::1;15360:399:1::0;30176:73:0::1;30300:31;30334:25;:3;:10;;;:23;:25::i;:::-;30401:13:::0;;30391:24;;::::1;::::0;;::::1;::::0;-1:-1:-1;;;;;30469:17:0;::::1;30370:18;30469:17:::0;;;:5:::1;:17:::0;;;;;;;:35;;-1:-1:-1;;30469:35:0::1;30500:4;30469:35;::::0;;30542:13;;30300:59;;-1:-1:-1;30391:24:0;;30515::::1;::::0;;::::1;::::0;:40:::1;::::0;:24;:40:::1;:::i;:::-;-1:-1:-1::0;30592:12:0::1;::::0;;::::1;::::0;-1:-1:-1;;;;;30566:17:0;::::1;;::::0;;;:5:::1;:17:::0;;;;;;;:23:::1;;::::0;:38:::1;::::0;:23;:38:::1;:::i;:::-;;30707:5;:12;;;-1:-1:-1::0;;;;;30622:190:0::1;;30654:5;:10;;;30679:3;:13;;;30734:10;30759:6;:11;;;30785:5;:16;;;30622:190;;;;;;;;;;:::i;:::-;;;;;;;;30920:12;::::0;::::1;::::0;-1:-1:-1;;;;;30920:23:0::1;9134:19:::0;:23;30916:200:::1;;30975:5;:12;;;-1:-1:-1::0;;;;;30962:34:0::1;;31015:5;:16;;;31050:5;:10;;;31079;30962:142;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;30916:200;31185:13;::::0;::::1;::::0;31162:41:::1;::::0;:10:::1;::::0;31185:13;31162:41:::1;::::0;;;31185:13;31162:10;:41:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;3473:1:0;4427:22;;-1:-1:-1;;;;;;;;;28723:2488:0:o;27401:1314::-;3517:1;4115:7;;:19;4107:63;;;;-1:-1:-1;;;4107:63:0;;8528:2:1;4107:63:0;;;8510:21:1;8567:2;8547:18;;;8540:30;8606:33;8586:18;;;8579:61;8657:18;;4107:63:0;8326:355:1;4107:63:0;3517:1;4248:7;:18;27585:10:::1;27571:25;::::0;;;:13:::1;:25;::::0;;;;;;:38;;::::1;::::0;27597:11;;;;27571:38:::1;:::i;:::-;::::0;;;::::1;::::0;;;;;::::1;::::0;;;;::::1;;27570:39;27548:142;;;::::0;-1:-1:-1;;;27548:142:0;;19605:2:1;27548:142:0::1;::::0;::::1;19587:21:1::0;19644:2;19624:18;;;19617:30;19683:34;19663:18;;;19656:62;-1:-1:-1;;;19734:18:1;;;19727:51;19795:19;;27548:142:0::1;19403:417:1::0;27548:142:0::1;27768:9;::::0;26008:15;;-1:-1:-1;;;;;27768:9:0::1;27703:11;27808:20;:18;:20::i;:::-;27788:40:::0;-1:-1:-1;27839:15:0::1;26272:9:::0;27839:30:::1;;27880:12;27895:76;27903:4;27909:10;27921:9;27932:7;27941:16;-1:-1:-1::0;;;;;27895:76:0::1;27959:11;;27895:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;27895:7:0::1;::::0;-1:-1:-1;;;27895:76:0:i:1;:::-;27880:91;;28005:10;;27992:9;:23;;27984:91;;;::::0;-1:-1:-1;;;27984:91:0;;20027:2:1;27984:91:0::1;::::0;::::1;20009:21:1::0;20066:2;20046:18;;;20039:30;20105:34;20085:18;;;20078:62;20176:25;20156:18;;;20149:53;20219:19;;27984:91:0::1;19825:419:1::0;27984:91:0::1;-1:-1:-1::0;;;;;28120:23:0;;::::1;;::::0;;;:5:::1;:23;::::0;;;;:35;;-1:-1:-1;;;;;;28166:43:0;28120:35:::1;::::0;;::::1;::::0;;;::::1;28166:43:::0;;;;;;28199:10:::1;-1:-1:-1::0;;;28166:43:0::1;;::::0;;28220:28:::1;::::0;::::1;:35:::0;;;28300:9:::1;-1:-1:-1::0;28266:31:0;::::1;:43:::0;28320:34:::1;;:48;28357:11:::0;;28320:34;:48:::1;:::i;:::-;;28470:10;-1:-1:-1::0;;;;;28386:220:0::1;;28420:4;28439:16;28495:9;28519:4;28538:7;28560:9;28584:11;;28386:220;;;;;;;;;;;;;:::i;:::-;;;;;;;;28633:10;28619:25;::::0;;;:13:::1;:25;::::0;;;;;;:38;;28660:4:::1;::::0;28619:25;:38:::1;::::0;28645:11;;;;28619:38:::1;:::i;:::-;::::0;;;::::1;::::0;;;;;::::1;::::0;;;:45;;;::::1;;-1:-1:-1::0;;28619:45:0;;::::1;::::0;;;::::1;::::0;;28687:20:::1;:16:::0;28619:45;28687:20:::1;:::i;:::-;28675:9;:32:::0;;-1:-1:-1;;28675:32:0::1;-1:-1:-1::0;;;;;28675:32:0;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;4427:22:0;;-1:-1:-1;;;;;27401:1314:0:o;24420:36::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24420:36:0;;-1:-1:-1;;;24420:36:0;;-1:-1:-1;;;;;24420:36:0;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;6943:103::-;6181:13;:11;:13::i;:::-;7008:30:::1;7035:1;7008:18;:30::i;:::-;6943:103::o:0;26961:134::-;6181:13;:11;:13::i;:::-;27029:8:::1;:20:::0;;-1:-1:-1;;;;27029:20:0::1;-1:-1:-1::0;;;27029:20:0::1;::::0;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;27065:22:::1;::::0;156:36:1;;;27065:22:0::1;::::0;144:2:1;129:18;27065:22:0::1;14:184:1::0;26641:133:0;6181:13;:11;:13::i;:::-;26707:6:::1;:16:::0;;-1:-1:-1;;;;;;26707:16:0::1;-1:-1:-1::0;;;;;26707:16:0;::::1;::::0;;::::1;::::0;;;26739:27:::1;::::0;::::1;::::0;-1:-1:-1;;26739:27:0::1;26641:133:::0;:::o;26040:121::-;26099:7;26136:16;26151:1;26136:12;:16;:::i;:::-;26126:27;26119:34;;26040:121;:::o;27103:134::-;6181:13;:11;:13::i;:::-;27171:8:::1;:20:::0;;-1:-1:-1;;;;27171:20:0::1;-1:-1:-1::0;;;27171:20:0::1;::::0;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;27207:22:::1;::::0;156:36:1;;;27207:22:0::1;::::0;144:2:1;129:18;27207:22:0::1;14:184:1::0;26307:326:0;26518:7;26566:5;26573:7;26582:10;26594:8;26604:6;26612:11;26555:69;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;26545:80;;;;;;26538:87;;26307:326;;;;;;;;:::o;26782:171::-;6181:13;:11;:13::i;:::-;26863:14:::1;:32:::0;;-1:-1:-1;;;;26863:32:0::1;-1:-1:-1::0;;;;;;;;26863:32:0;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;26911:34:::1;::::0;3870:50:1;;;26911:34:0::1;::::0;3858:2:1;3843:18;26911:34:0::1;3726:200:1::0;7201:201:0;6181:13;:11;:13::i;:::-;-1:-1:-1;;;;;7290:22:0;::::1;7282:73;;;::::0;-1:-1:-1;;;7282:73:0;;23476:2:1;7282:73:0::1;::::0;::::1;23458:21:1::0;23515:2;23495:18;;;23488:30;23554:34;23534:18;;;23527:62;-1:-1:-1;;;23605:18:1;;;23598:36;23651:19;;7282:73:0::1;23274:402:1::0;7282:73:0::1;7366:28;7385:8;7366:18;:28::i;:::-;7201:201:::0;:::o;6460:132::-;6341:7;6368:6;-1:-1:-1;;;;;6368:6:0;5084:10;6524:23;6516:68;;;;-1:-1:-1;;;6516:68:0;;23883:2:1;6516:68:0;;;23865:21:1;;;23902:18;;;23895:30;23961:34;23941:18;;;23934:62;24013:18;;6516:68:0;23681:356:1;22855:437:0;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;23019:23:0;23028:13;-1:-1:-1;;;;;;;;;;;;;;;;;;17272:28:0;;;;;;;;;;;;;;;;;17185:123;23019:23;22993:49;;23067:37;23082:21;:7;:19;:21::i;:::-;23067:14;:37::i;:::-;23053:11;;;:51;23129:19;:7;:17;:19::i;:::-;-1:-1:-1;;;;;23115:33:0;;;23179:37;23194:21;:7;:19;:21::i;:::-;23179:14;:37::i;:::-;-1:-1:-1;;;;;23159:57:0;:17;;;:57;23237:18;:7;17597:8;;;;:15;17582:11;;:30;;17499:121;23237:18;23229:55;;;;-1:-1:-1;;;23229:55:0;;24244:2:1;23229:55:0;;;24226:21:1;24283:2;24263:18;;;24256:30;24322:26;24302:18;;;24295:54;24366:18;;23229:55:0;24042:348:1;23229:55:0;22982:310;22855:437;;;:::o;23416:356::-;-1:-1:-1;;;;;;;;;;;;;;;;;23554:23:0;23580;23589:13;-1:-1:-1;;;;;;;;;;;;;;;;;;17272:28:0;;;;;;;;;;;;;;;;;17185:123;23580:23;23554:49;;23629:21;:7;:19;:21::i;:::-;23614:12;;;:36;23677:21;:7;:19;:21::i;:::-;23661:37;;17597:8;;;;:15;17582:11;;:30;23717:18;17499:121;7562:191;7636:16;7655:6;;-1:-1:-1;;;;;7672:17:0;;;-1:-1:-1;;;;;;7672:17:0;;;;;;7705:40;;7655:6;;;;;;;7705:40;;7636:16;7705:40;7625:128;7562:191;:::o;20019:280::-;20108:18;20162:15;20172:4;20162:9;:15::i;:::-;20152:26;;-1:-1:-1;;;;;20152:26:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20152:26:0;;20144:34;;20194:9;20189:103;20213:5;:12;20209:1;:16;20189:103;;;20265:14;20274:4;20265:8;:14::i;:::-;20258:22;;20247:5;20253:1;20247:8;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;20247:33:0;;;;;;;;-1:-1:-1;20227:3:0;;;;:::i;:::-;;;;20189:103;;22486:247;22553:14;22588:6;:13;22605:2;22588:19;22580:68;;;;-1:-1:-1;;;22580:68:0;;24869:2:1;22580:68:0;;;24851:21:1;24908:2;24888:18;;;24881:30;24947:34;24927:18;;;24920:62;-1:-1:-1;;;24998:18:1;;;24991:34;25042:19;;22580:68:0;24667:400:1;22580:68:0;-1:-1:-1;22711:2:0;22699:15;22693:22;;22486:247::o;18727:173::-;18787:12;18847:2;18827:15;18837:4;18827:9;:15::i;:::-;18820:23;;:29;;;-1:-1:-1;18876:15:0;18886:4;18876:9;:15::i;:::-;18869:23;;18860:32;;18727:173;-1:-1:-1;18727:173:0:o;22217:261::-;22290:12;22323;:19;22346:2;22323:25;22315:74;;;;-1:-1:-1;;;22315:74:0;;25274:2:1;22315:74:0;;;25256:21:1;25313:2;25293:18;;;25286:30;25352:34;25332:18;;;25325:62;-1:-1:-1;;;25403:18:1;;;25396:34;25447:19;;22315:74:0;25072:400:1;22315:74:0;-1:-1:-1;22456:2:0;22438:21;22432:28;;22217:261::o;18368:173::-;18428:12;18488:2;18468:15;18478:4;18468:9;:15::i;:::-;18461:23;;:29;;;-1:-1:-1;18517:15:0;18527:4;18517:9;:15::i;:::-;18510:23;;18501:32;;18368:173;-1:-1:-1;18368:173:0:o;17628:183::-;17738:11;17711:4;17717:1;17415:4;17401;:11;;;:18;;;;:::i;:::-;17382:4;:8;;;:15;:37;;17374:67;;;;-1:-1:-1;;;17374:67:0;;25809:2:1;17374:67:0;;;25791:21:1;25848:2;25828:18;;;25821:30;-1:-1:-1;;;25867:18:1;;;25860:47;25924:18;;17374:67:0;25607:341:1;17374:67:0;17781:8:::1;::::0;::::1;::::0;17790:11;;17781:21;;;::::1;;;;;:::i;:::-;::::0;::::1;::::0;;17464:19;;17781:21:::1;::::0;;;::::1;::::0;-1:-1:-1;17479:4:0;;17464;;:19;;17479:4;;17464:19;:::i;:::-;;;-1:-1:-1;17628:183:0;;;-1:-1:-1;;;17628:183:0:o;18015:170::-;18075:12;18134:1;18115:14;18124:4;18115:8;:14::i;:::-;18108:22;;:27;;;-1:-1:-1;18162:14:0;18171:4;18162:8;:14::i;:::-;18155:22;;18146:31;;18015:170;-1:-1:-1;18015:170:0:o;203:180:1:-;262:6;315:2;303:9;294:7;290:23;286:32;283:52;;;331:1;328;321:12;283:52;-1:-1:-1;354:23:1;;203:180;-1:-1:-1;203:180:1:o;570:131::-;-1:-1:-1;;;;;645:31:1;;635:42;;625:70;;691:1;688;681:12;706:127;767:10;762:3;758:20;755:1;748:31;798:4;795:1;788:15;822:4;819:1;812:15;838:255;910:2;904:9;952:6;940:19;;-1:-1:-1;;;;;974:34:1;;1010:22;;;971:62;968:88;;;1036:18;;:::i;:::-;1072:2;1065:22;838:255;:::o;1098:275::-;1169:2;1163:9;1234:2;1215:13;;-1:-1:-1;;1211:27:1;1199:40;;-1:-1:-1;;;;;1254:34:1;;1290:22;;;1251:62;1248:88;;;1316:18;;:::i;:::-;1352:2;1345:22;1098:275;;-1:-1:-1;1098:275:1:o;1378:187::-;1427:4;-1:-1:-1;;;;;1452:6:1;1449:30;1446:56;;;1482:18;;:::i;:::-;-1:-1:-1;1548:2:1;1527:15;-1:-1:-1;;1523:29:1;1554:4;1519:40;;1378:187::o;1570:464::-;1613:5;1666:3;1659:4;1651:6;1647:17;1643:27;1633:55;;1684:1;1681;1674:12;1633:55;1720:6;1707:20;1751:49;1767:32;1796:2;1767:32;:::i;:::-;1751:49;:::i;:::-;1825:2;1816:7;1809:19;1871:3;1864:4;1859:2;1851:6;1847:15;1843:26;1840:35;1837:55;;;1888:1;1885;1878:12;1837:55;1953:2;1946:4;1938:6;1934:17;1927:4;1918:7;1914:18;1901:55;2001:1;1976:16;;;1994:4;1972:27;1965:38;;;;1980:7;1570:464;-1:-1:-1;;;1570:464:1:o;2039:457::-;2117:6;2125;2178:2;2166:9;2157:7;2153:23;2149:32;2146:52;;;2194:1;2191;2184:12;2146:52;2233:9;2220:23;2252:31;2277:5;2252:31;:::i;:::-;2302:5;-1:-1:-1;2358:2:1;2343:18;;2330:32;-1:-1:-1;;;;;2374:30:1;;2371:50;;;2417:1;2414;2407:12;2371:50;2440;2482:7;2473:6;2462:9;2458:22;2440:50;:::i;:::-;2430:60;;;2039:457;;;;;:::o;2693:347::-;2744:8;2754:6;2808:3;2801:4;2793:6;2789:17;2785:27;2775:55;;2826:1;2823;2816:12;2775:55;-1:-1:-1;2849:20:1;;-1:-1:-1;;;;;2881:30:1;;2878:50;;;2924:1;2921;2914:12;2878:50;2961:4;2953:6;2949:17;2937:29;;3013:3;3006:4;2997:6;2989;2985:19;2981:30;2978:39;2975:59;;;3030:1;3027;3020:12;2975:59;2693:347;;;;;:::o;3045:129::-;-1:-1:-1;;;;;3123:5:1;3119:30;3112:5;3109:41;3099:69;;3164:1;3161;3154:12;3179:542;3257:6;3265;3273;3326:2;3314:9;3305:7;3301:23;3297:32;3294:52;;;3342:1;3339;3332:12;3294:52;3382:9;3369:23;-1:-1:-1;;;;;3407:6:1;3404:30;3401:50;;;3447:1;3444;3437:12;3401:50;3486:58;3536:7;3527:6;3516:9;3512:22;3486:58;:::i;:::-;3563:8;;-1:-1:-1;3460:84:1;-1:-1:-1;;3648:2:1;3633:18;;3620:32;3661:30;3620:32;3661:30;:::i;:::-;3710:5;3700:15;;;3179:542;;;;;:::o;3931:410::-;4002:6;4010;4063:2;4051:9;4042:7;4038:23;4034:32;4031:52;;;4079:1;4076;4069:12;4031:52;4119:9;4106:23;-1:-1:-1;;;;;4144:6:1;4141:30;4138:50;;;4184:1;4181;4174:12;4138:50;4223:58;4273:7;4264:6;4253:9;4249:22;4223:58;:::i;:::-;4300:8;;4197:84;;-1:-1:-1;3931:410:1;-1:-1:-1;;;;3931:410:1:o;4346:245::-;4404:6;4457:2;4445:9;4436:7;4432:23;4428:32;4425:52;;;4473:1;4470;4463:12;4425:52;4512:9;4499:23;4531:30;4555:5;4531:30;:::i;:::-;4580:5;4346:245;-1:-1:-1;;;4346:245:1:o;4596:250::-;4681:1;4691:113;4705:6;4702:1;4699:13;4691:113;;;4781:11;;;4775:18;4762:11;;;4755:39;4727:2;4720:10;4691:113;;;-1:-1:-1;;4838:1:1;4820:16;;4813:27;4596:250::o;4851:271::-;4893:3;4931:5;4925:12;4958:6;4953:3;4946:19;4974:76;5043:6;5036:4;5031:3;5027:14;5020:4;5013:5;5009:16;4974:76;:::i;:::-;5104:2;5083:15;-1:-1:-1;;5079:29:1;5070:39;;;;5111:4;5066:50;;4851:271;-1:-1:-1;;4851:271:1:o;5127:982::-;5463:4;5492:3;5536:6;5529:14;5522:22;5511:9;5504:41;-1:-1:-1;;;;;5585:6:1;5581:31;5576:2;5565:9;5561:18;5554:59;5678:1;5674;5669:3;5665:11;5661:19;5653:6;5649:32;5644:2;5633:9;5629:18;5622:60;5718:6;5713:2;5702:9;5698:18;5691:34;5762:6;5756:3;5745:9;5741:19;5734:35;5806:2;5800:3;5789:9;5785:19;5778:31;5832:45;5873:2;5862:9;5858:18;5850:6;5832:45;:::i;:::-;5818:59;;5926:9;5918:6;5914:22;5908:3;5897:9;5893:19;5886:51;5960:33;5986:6;5978;5960:33;:::i;:::-;5946:47;;6042:9;6034:6;6030:22;6024:3;6013:9;6009:19;6002:51;6070:33;6096:6;6088;6070:33;:::i;:::-;6062:41;5127:982;-1:-1:-1;;;;;;;;;;;5127:982:1:o;6114:269::-;6171:6;6224:2;6212:9;6203:7;6199:23;6195:32;6192:52;;;6240:1;6237;6230:12;6192:52;6279:9;6266:23;6329:4;6322:5;6318:16;6311:5;6308:27;6298:55;;6349:1;6346;6339:12;6596:261;6669:6;6722:2;6710:9;6701:7;6697:23;6693:32;6690:52;;;6738:1;6735;6728:12;6690:52;6777:9;6764:23;6796:31;6821:5;6796:31;:::i;7044:803::-;7157:6;7165;7173;7181;7189;7197;7250:3;7238:9;7229:7;7225:23;7221:33;7218:53;;;7267:1;7264;7257:12;7218:53;7306:9;7293:23;7325:30;7349:5;7325:30;:::i;:::-;7374:5;-1:-1:-1;7431:2:1;7416:18;;7403:32;7444:33;7403:32;7444:33;:::i;:::-;7496:7;-1:-1:-1;7550:2:1;7535:18;;7522:32;;-1:-1:-1;7601:2:1;7586:18;;7573:32;;-1:-1:-1;7652:3:1;7637:19;;7624:33;;-1:-1:-1;7708:3:1;7693:19;;7680:33;-1:-1:-1;;;;;7725:30:1;;7722:50;;;7768:1;7765;7758:12;7722:50;7791;7833:7;7824:6;7813:9;7809:22;7791:50;:::i;:::-;7781:60;;;7044:803;;;;;;;;:::o;8686:380::-;8765:1;8761:12;;;;8808;;;8829:61;;8883:4;8875:6;8871:17;8861:27;;8829:61;8936:2;8928:6;8925:14;8905:18;8902:38;8899:161;;8982:10;8977:3;8973:20;8970:1;8963:31;9017:4;9014:1;9007:15;9045:4;9042:1;9035:15;9838:266;9926:6;9921:3;9914:19;9978:6;9971:5;9964:4;9959:3;9955:14;9942:43;-1:-1:-1;10030:1:1;10005:16;;;10023:4;10001:27;;;9994:38;;;;10086:2;10065:15;;;-1:-1:-1;;10061:29:1;10052:39;;;10048:50;;9838:266::o;10109:244::-;10266:2;10255:9;10248:21;10229:4;10286:61;10343:2;10332:9;10328:18;10320:6;10312;10286:61;:::i;:::-;10278:69;10109:244;-1:-1:-1;;;;10109:244:1:o;10358:443::-;10412:5;10465:3;10458:4;10450:6;10446:17;10442:27;10432:55;;10483:1;10480;10473:12;10432:55;10512:6;10506:13;10543:49;10559:32;10588:2;10559:32;:::i;10543:49::-;10617:2;10608:7;10601:19;10663:3;10656:4;10651:2;10643:6;10639:15;10635:26;10632:35;10629:55;;;10680:1;10677;10670:12;10629:55;10693:77;10767:2;10760:4;10751:7;10747:18;10740:4;10732:6;10728:17;10693:77;:::i;10806:136::-;10884:13;;10906:30;10884:13;10906:30;:::i;:::-;10806:136;;;:::o;10947:158::-;11037:13;;11079:1;11069:12;;11059:40;;11095:1;11092;11085:12;11110:1648;11202:6;11255:2;11243:9;11234:7;11230:23;11226:32;11223:52;;;11271:1;11268;11261:12;11223:52;11304:9;11298:16;-1:-1:-1;;;;;11374:2:1;11366:6;11363:14;11360:34;;;11390:1;11387;11380:12;11360:34;11413:22;;;;11469:6;11451:16;;;11447:29;11444:49;;;11489:1;11486;11479:12;11444:49;11515:22;;:::i;:::-;11568:2;11562:9;11596:2;11586:8;11583:16;11580:36;;;11612:1;11609;11602:12;11580:36;11639:56;11687:7;11676:8;11672:2;11668:17;11639:56;:::i;:::-;11632:5;11625:71;;11728:41;11765:2;11761;11757:11;11728:41;:::i;:::-;11723:2;11716:5;11712:14;11705:65;11809:2;11805;11801:11;11795:18;11838:2;11828:8;11825:16;11822:36;;;11854:1;11851;11844:12;11822:36;11890:56;11938:7;11927:8;11923:2;11919:17;11890:56;:::i;:::-;11885:2;11878:5;11874:14;11867:80;;11979:41;12016:2;12012;12008:11;11979:41;:::i;:::-;11974:2;11967:5;11963:14;11956:65;12054:42;12091:3;12087:2;12083:12;12054:42;:::i;:::-;12048:3;12041:5;12037:15;12030:67;12130:42;12167:3;12163:2;12159:12;12130:42;:::i;:::-;12124:3;12117:5;12113:15;12106:67;12206:42;12243:3;12239:2;12235:12;12206:42;:::i;:::-;12200:3;12193:5;12189:15;12182:67;12282:42;12319:3;12315:2;12311:12;12282:42;:::i;:::-;12276:3;12269:5;12265:15;12258:67;12344:3;12379:41;12416:2;12412;12408:11;12379:41;:::i;:::-;12363:14;;;12356:65;12440:3;12475:53;12516:11;;;12475:53;:::i;:::-;12459:14;;;12452:77;12548:3;12582:11;;;12576:18;12606:16;;;12603:36;;;12635:1;12632;12625:12;12603:36;12671:56;12719:7;12708:8;12704:2;12700:17;12671:56;:::i;:::-;12655:14;;;12648:80;;;;-1:-1:-1;12659:5:1;11110:1648;-1:-1:-1;;;;;11110:1648:1:o;13985:127::-;14046:10;14041:3;14037:20;14034:1;14027:31;14077:4;14074:1;14067:15;14101:4;14098:1;14091:15;15889:544;15990:2;15985:3;15982:11;15979:448;;;16026:1;16051:5;16047:2;16040:17;16096:4;16092:2;16082:19;16166:2;16154:10;16150:19;16147:1;16143:27;16137:4;16133:38;16202:4;16190:10;16187:20;16184:47;;;-1:-1:-1;16225:4:1;16184:47;16280:2;16275:3;16271:12;16268:1;16264:20;16258:4;16254:31;16244:41;;16335:82;16353:2;16346:5;16343:13;16335:82;;;16398:17;;;16379:1;16368:13;16335:82;;;16339:3;;;15979:448;15889:544;;;:::o;16609:1348::-;16733:3;16727:10;-1:-1:-1;;;;;16752:6:1;16749:30;16746:56;;;16782:18;;:::i;:::-;16811:96;16900:6;16860:38;16892:4;16886:11;16860:38;:::i;:::-;16854:4;16811:96;:::i;:::-;16962:4;;17026:2;17015:14;;17043:1;17038:662;;;;17744:1;17761:6;17758:89;;;-1:-1:-1;17813:19:1;;;17807:26;17758:89;-1:-1:-1;;16566:1:1;16562:11;;;16558:24;16554:29;16544:40;16590:1;16586:11;;;16541:57;17860:81;;17008:943;;17038:662;15836:1;15829:14;;;15873:4;15860:18;;-1:-1:-1;;17074:20:1;;;17191:236;17205:7;17202:1;17199:14;17191:236;;;17294:19;;;17288:26;17273:42;;17386:27;;;;17354:1;17342:14;;;;17221:19;;17191:236;;;17195:3;17455:6;17446:7;17443:19;17440:201;;;17516:19;;;17510:26;-1:-1:-1;;17599:1:1;17595:14;;;17611:3;17591:24;17587:37;17583:42;17568:58;17553:74;;17440:201;-1:-1:-1;;;;;17687:1:1;17671:14;;;17667:22;17654:36;;-1:-1:-1;16609:1348:1:o;17962:558::-;18182:4;-1:-1:-1;;;;;18268:2:1;18260:6;18256:15;18245:9;18238:34;18320:2;18312:6;18308:15;18303:2;18292:9;18288:18;18281:43;;18360:6;18355:2;18344:9;18340:18;18333:34;18403:6;18398:2;18387:9;18383:18;18376:34;18447:3;18441;18430:9;18426:19;18419:32;18468:46;18509:3;18498:9;18494:19;18486:6;18468:46;:::i;:::-;18460:54;17962:558;-1:-1:-1;;;;;;;17962:558:1:o;18525:385::-;18728:2;18717:9;18710:21;18691:4;18748:45;18789:2;18778:9;18774:18;18766:6;18748:45;:::i;:::-;-1:-1:-1;;;;;18829:31:1;;;;18824:2;18809:18;;18802:59;-1:-1:-1;18892:2:1;18877:18;18870:34;18740:53;18525:385;-1:-1:-1;18525:385:1:o;19125:273::-;19310:6;19302;19297:3;19284:33;19266:3;19336:16;;19361:13;;;19336:16;19125:273;-1:-1:-1;19125:273:1:o;20249:1204::-;-1:-1:-1;;;;;20368:3:1;20365:27;20362:53;;;20395:18;;:::i;:::-;20424:93;20513:3;20473:38;20505:4;20499:11;20473:38;:::i;:::-;20467:4;20424:93;:::i;:::-;20543:1;20568:2;20563:3;20560:11;20585:1;20580:615;;;;21239:1;21256:3;21253:93;;;-1:-1:-1;21312:19:1;;;21299:33;21253:93;-1:-1:-1;;16566:1:1;16562:11;;;16558:24;16554:29;16544:40;16590:1;16586:11;;;16541:57;21359:78;;20553:894;;20580:615;15836:1;15829:14;;;15873:4;15860:18;;-1:-1:-1;;20616:17:1;;;20716:9;20738:229;20752:7;20749:1;20746:14;20738:229;;;20841:19;;;20828:33;20813:49;;20948:4;20933:20;;;;20901:1;20889:14;;;;20768:12;20738:229;;;20742:3;20995;20986:7;20983:16;20980:159;;;21119:1;21115:6;21109:3;21103;21100:1;21096:11;21092:21;21088:34;21084:39;21071:9;21066:3;21062:19;21049:33;21045:79;21037:6;21030:95;20980:159;;;21182:1;21176:3;21173:1;21169:11;21165:19;21159:4;21152:33;20553:894;;;20249:1204;;;:::o;21458:728::-;21744:4;-1:-1:-1;;;;;21830:2:1;21822:6;21818:15;21807:9;21800:34;21882:2;21874:6;21870:15;21865:2;21854:9;21850:18;21843:43;;21922:6;21917:2;21906:9;21902:18;21895:34;21965:6;21960:2;21949:9;21945:18;21938:34;22009:6;22003:3;21992:9;21988:19;21981:35;22053:6;22047:3;22036:9;22032:19;22025:35;22097:3;22091;22080:9;22076:19;22069:32;22118:62;22175:3;22164:9;22160:19;22152:6;22144;22118:62;:::i;:::-;22110:70;21458:728;-1:-1:-1;;;;;;;;;;21458:728:1:o;22191:127::-;22252:10;22247:3;22243:20;22240:1;22233:31;22283:4;22280:1;22273:15;22307:4;22304:1;22297:15;22323:180;-1:-1:-1;;;;;22428:10:1;;;22440;;;22424:27;;22463:11;;;22460:37;;;22477:18;;:::i;:::-;22460:37;22323:180;;;;:::o;22508:128::-;22575:9;;;22596:11;;;22593:37;;;22610:18;;:::i;:::-;22508:128;;;;:::o;22641:628::-;-1:-1:-1;;;;;22932:6:1;22928:31;22917:9;22910:50;23025:1;23021;23016:3;23012:11;23008:19;23000:6;22996:32;22991:2;22980:9;22976:18;22969:60;23065:6;23060:2;23049:9;23045:18;23038:34;23108:6;23103:2;23092:9;23088:18;23081:34;23152:6;23146:3;23135:9;23131:19;23124:35;23196:3;23190;23179:9;23175:19;23168:32;22891:4;23217:46;23258:3;23247:9;23243:19;23235:6;23217:46;:::i;:::-;23209:54;22641:628;-1:-1:-1;;;;;;;;22641:628:1:o;24395:127::-;24456:10;24451:3;24447:20;24444:1;24437:31;24487:4;24484:1;24477:15;24511:4;24508:1;24501:15;24527:135;24566:3;24587:17;;;24584:43;;24607:18;;:::i;:::-;-1:-1:-1;24654:1:1;24643:13;;24527:135::o;25477:125::-;25542:9;;;25563:10;;;25560:36;;;25576:18;;:::i
Swarm Source
ipfs://c654f5cde025f7acff3acc4d885b92eeaa5f66c6f1e1205b643b1526923aebe8
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.