Contract 0xe30E9c001dEFb5F0B04fD21662454A2427F4257A 9

 

Contract Overview

Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x4e75326a2f8736d9ab92fc19a15368739345e19ac705b47f7b6c5aa2eaa725a3Add Protocols1832690962024-02-22 7:43:178 days 19 hrs ago0x504f151d587881366ae63fdd6302917add2c8ba7 IN  0xe30e9c001defb5f0b04fd21662454a2427f4257a0 ETH0.000104510.1
0x0d3d13134797f97073543be1cfc1a9898f50ff6121145cffc7594714c2d40325Add Tokens1832684812024-02-22 7:40:448 days 20 hrs ago0x504f151d587881366ae63fdd6302917add2c8ba7 IN  0xe30e9c001defb5f0b04fd21662454a2427f4257a0 ETH0.000188270.1
0xb058a81b496fa4785d08fcf866d9167833475ca091ffc44299b92a9a69bc3e04Set Server URL1832681572024-02-22 7:39:228 days 20 hrs ago0x504f151d587881366ae63fdd6302917add2c8ba7 IN  0xe30e9c001defb5f0b04fd21662454a2427f4257a0 ETH0.000120830.1
0xb5c822582fd1cb911c6e02a7ee7356e37eedcae0577da47984caf2b1dd897ba60x60e060401780785672024-02-06 17:39:2924 days 10 hrs ago0xd22d896b0cde4eac8194a022aed53e75d84b2d3d IN  Create: Registry0 ETH0.00248397 0.1
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Registry

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 999999 runs

Other Settings:
paris EvmVersion
File 1 of 6 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 2 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

File 3 of 6 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 4 of 6 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 5 of 6 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```solidity
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 6 of 6 : Registry.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.23;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";

/**
 * @title AirSwap: Server Registry
 * @notice https://www.airswap.io/
 */
contract Registry {
  using SafeERC20 for IERC20;
  using EnumerableSet for EnumerableSet.AddressSet;
  using EnumerableSet for EnumerableSet.Bytes32Set;

  IERC20 public immutable stakingToken;
  uint256 public immutable stakingCost;
  uint256 public immutable supportCost;

  mapping(address => string) public stakerServerURLs;
  mapping(address => EnumerableSet.Bytes32Set) internal protocolsByStaker;
  mapping(bytes4 => EnumerableSet.AddressSet) internal stakersByProtocol;
  mapping(address => EnumerableSet.AddressSet) internal tokensByStaker;
  mapping(address => EnumerableSet.AddressSet) internal stakersByToken;

  event SetServerURL(address indexed staker, string url);
  event AddProtocols(address indexed staker, bytes4[] protocols);
  event AddTokens(address indexed staker, address[] tokens);
  event RemoveProtocols(address indexed staker, bytes4[] protocols);
  event RemoveTokens(address indexed staker, address[] tokens);
  event UnsetServer(
    address indexed staker,
    string url,
    bytes4[] protocols,
    address[] tokens
  );

  error ArgumentInvalid();
  error NoServerURLSet();
  error ProtocolDoesNotExist(bytes4);
  error ProtocolExists(bytes4);
  error TokenDoesNotExist(address);
  error TokenExists(address);
  error ServerURLInvalid();

  /**
   * @notice Registry constructor
   * @param _stakingToken IERC20 address of token used for staking
   * @param _stakingCost uint256 base amount required to stake
   * @param _supportCost uint256 amount required per token or protocol
   */
  constructor(
    IERC20 _stakingToken,
    uint256 _stakingCost,
    uint256 _supportCost
  ) {
    stakingToken = _stakingToken;
    stakingCost = _stakingCost;
    supportCost = _supportCost;
  }

  /**
   * @notice Set a server URL
   * @param _url string URL
   */
  function setServerURL(string calldata _url) external {
    if (bytes(_url).length == 0) revert ServerURLInvalid();
    if (bytes(stakerServerURLs[msg.sender]).length == 0 && stakingCost > 0) {
      stakingToken.safeTransferFrom(msg.sender, address(this), stakingCost);
    }
    stakerServerURLs[msg.sender] = _url;
    emit SetServerURL(msg.sender, _url);
  }

  /**
   * @notice Unset server URL, all protocols, and all tokens
   */
  function unsetServer() external {
    if (bytes(stakerServerURLs[msg.sender]).length == 0)
      revert NoServerURLSet();

    EnumerableSet.Bytes32Set storage supportedProtocolList = protocolsByStaker[
      msg.sender
    ];
    uint256 _protocolListLength = supportedProtocolList.length();

    bytes4[] memory _protocolList = new bytes4[](_protocolListLength);

    for (uint256 i = _protocolListLength; i > 0; ) {
      unchecked {
        --i;
      }
      bytes4 _protocol = bytes4(supportedProtocolList.at(i));
      _protocolList[i] = _protocol;
      supportedProtocolList.remove(_protocol);
      stakersByProtocol[_protocol].remove(msg.sender);
    }
    EnumerableSet.AddressSet storage supportedTokenList = tokensByStaker[
      msg.sender
    ];
    uint256 _tokenListLength = supportedTokenList.length();

    address[] memory _tokenList = new address[](_tokenListLength);

    for (uint256 i = _tokenListLength; i > 0; ) {
      unchecked {
        --i;
      }
      address _token = supportedTokenList.at(i);
      _tokenList[i] = _token;
      supportedTokenList.remove(_token);
      stakersByToken[_token].remove(msg.sender);
    }

    string memory _url = stakerServerURLs[msg.sender];

    delete stakerServerURLs[msg.sender];

    uint256 _transferAmount = stakingCost +
      (supportCost * _protocolListLength) +
      (supportCost * _tokenListLength);
    if (_transferAmount > 0) {
      stakingToken.safeTransfer(msg.sender, _transferAmount);
    }

    emit UnsetServer(msg.sender, _url, _protocolList, _tokenList);
  }

  /**
   * @notice Add protocols supported by the staker
   * @param _protocols bytes4[] protocol identifiers
   */
  function addProtocols(bytes4[] calldata _protocols) external {
    uint256 _length = _protocols.length;
    if (_length <= 0) revert ArgumentInvalid();
    EnumerableSet.Bytes32Set storage _protocolList = protocolsByStaker[
      msg.sender
    ];

    for (uint256 i; i < _length; ) {
      bytes4 protocol = _protocols[i];
      if (!_protocolList.add(protocol)) revert ProtocolExists(protocol);
      stakersByProtocol[protocol].add(msg.sender);
      unchecked {
        ++i;
      }
    }

    uint256 _transferAmount = supportCost * _length;
    if (_transferAmount > 0) {
      stakingToken.safeTransferFrom(msg.sender, address(this), _transferAmount);
    }

    emit AddProtocols(msg.sender, _protocols);
  }

  /**
   * @notice Remove protocols supported by the staker
   * @param _protocols bytes4[] protocol identifiers
   */
  function removeProtocols(bytes4[] calldata _protocols) external {
    uint256 _length = _protocols.length;
    if (_length <= 0) revert ArgumentInvalid();
    EnumerableSet.Bytes32Set storage protocolList = protocolsByStaker[
      msg.sender
    ];
    for (uint256 i; i < _length; ) {
      bytes4 _protocol = _protocols[i];
      if (!protocolList.remove(_protocol))
        revert ProtocolDoesNotExist(_protocol);
      stakersByProtocol[_protocol].remove(msg.sender);
      unchecked {
        ++i;
      }
    }

    uint256 _transferAmount = supportCost * _length;
    emit RemoveProtocols(msg.sender, _protocols);

    if (_transferAmount > 0) {
      stakingToken.safeTransfer(msg.sender, _transferAmount);
    }
  }

  /**
   * @notice Get all server URLs that support a protocol
   * @param _protocol bytes4 protocol identifier
   * @return _urls string[] URLs that support the protocol
   */
  function getServerURLsForProtocol(
    bytes4 _protocol
  ) external view returns (string[] memory _urls) {
    EnumerableSet.AddressSet storage stakers = stakersByProtocol[_protocol];
    uint256 _length = stakers.length();
    _urls = new string[](_length);
    for (uint256 i; i < _length; ) {
      _urls[i] = stakerServerURLs[address(stakers.at(i))];
      unchecked {
        ++i;
      }
    }
  }

  /**
   * @notice Return whether a staker supports a protocol
   * @param _staker address staker address
   * @param _protocol bytes4 protocol identifier
   * @return bool true if the staker supports the protocol
   */
  function supportsProtocol(
    address _staker,
    bytes4 _protocol
  ) external view returns (bool) {
    return protocolsByStaker[_staker].contains(_protocol);
  }

  /**
   * @notice Get all supported protocols for a staker
   * @param _staker address staker address
   * @return _protocolList bytes4[] supported protocol identifiers
   */
  function getProtocolsForStaker(
    address _staker
  ) external view returns (bytes4[] memory _protocolList) {
    EnumerableSet.Bytes32Set storage _protocols = protocolsByStaker[_staker];
    uint256 _length = _protocols.length();
    _protocolList = new bytes4[](_length);
    for (uint256 i; i < _length; ) {
      _protocolList[i] = bytes4(_protocols.at(i));
      unchecked {
        ++i;
      }
    }
  }

  /**
   * @notice Get all stakers that support a protocol
   * @param _protocol bytes4 protocol identifier
   * @return _stakers address[] stakers that support the protocol
   */
  function getStakersForProtocol(
    bytes4 _protocol
  ) external view returns (address[] memory _stakers) {
    EnumerableSet.AddressSet storage _stakerList = stakersByProtocol[_protocol];
    uint256 _length = _stakerList.length();
    _stakers = new address[](_length);
    for (uint256 i; i < _length; ) {
      _stakers[i] = _stakerList.at(i);
      unchecked {
        ++i;
      }
    }
  }

  /**
   * @notice Add tokens supported by the staker
   * @param _tokens address[] token addresses
   */
  function addTokens(address[] calldata _tokens) external {
    uint256 _length = _tokens.length;
    if (_length <= 0) revert ArgumentInvalid();
    EnumerableSet.AddressSet storage tokenList = tokensByStaker[msg.sender];

    for (uint256 i; i < _length; ) {
      address _token = _tokens[i];
      if (!tokenList.add(_token)) revert TokenExists(_token);
      stakersByToken[_token].add(msg.sender);
      unchecked {
        ++i;
      }
    }
    uint256 _transferAmount = supportCost * _length;
    emit AddTokens(msg.sender, _tokens);
    if (_transferAmount > 0) {
      stakingToken.safeTransferFrom(msg.sender, address(this), _transferAmount);
    }
  }

  /**
   * @notice Remove tokens supported by the staker
   * @param _tokens address[] token addresses
   */
  function removeTokens(address[] calldata _tokens) external {
    uint256 _length = _tokens.length;
    if (_length <= 0) revert ArgumentInvalid();
    EnumerableSet.AddressSet storage tokenList = tokensByStaker[msg.sender];
    for (uint256 i; i < _length; ) {
      address token = _tokens[i];
      if (!tokenList.remove(token)) revert TokenDoesNotExist(token);
      stakersByToken[token].remove(msg.sender);
      unchecked {
        ++i;
      }
    }
    uint256 _transferAmount = supportCost * _length;
    emit RemoveTokens(msg.sender, _tokens);
    if (_transferAmount > 0) {
      stakingToken.safeTransfer(msg.sender, _transferAmount);
    }
  }

  /**
   * @notice Get all server URLs that support a token
   * @param _token address of a token
   * @return urls array of URLs that support the token
   */
  function getServerURLsForToken(
    address _token
  ) external view returns (string[] memory urls) {
    EnumerableSet.AddressSet storage stakers = stakersByToken[_token];
    uint256 _length = stakers.length();
    urls = new string[](_length);
    for (uint256 i; i < _length; ) {
      urls[i] = stakerServerURLs[address(stakers.at(i))];
      unchecked {
        ++i;
      }
    }
  }

  /**
   * @notice Return whether a staker supports a token
   * @param _staker address staker address
   * @param _token address token address
   * @return true if the staker supports the token
   */
  function supportsToken(
    address _staker,
    address _token
  ) external view returns (bool) {
    return tokensByStaker[_staker].contains(_token);
  }

  /**
   * @notice Return a list of all supported tokens for a given staker
   * @param _staker address staker address
   * @return tokenList address[] supported tokens
   */
  function getTokensForStaker(
    address _staker
  ) external view returns (address[] memory tokenList) {
    EnumerableSet.AddressSet storage tokens = tokensByStaker[_staker];
    uint256 _length = tokens.length();
    tokenList = new address[](_length);
    for (uint256 i; i < _length; ) {
      tokenList[i] = tokens.at(i);
      unchecked {
        ++i;
      }
    }
  }

  /**
   * @notice Get all stakers that support a token
   * @param _token address token address
   * @return _stakers address[] stakers that support the token
   */
  function getStakersForToken(
    address _token
  ) external view returns (address[] memory _stakers) {
    EnumerableSet.AddressSet storage stakerList = stakersByToken[_token];
    uint256 _length = stakerList.length();
    _stakers = new address[](_length);
    for (uint256 i; i < _length; ) {
      _stakers[i] = stakerList.at(i);
      unchecked {
        ++i;
      }
    }
  }

  /**
   * @notice Get the URLs for an array of stakers
   * @param _stakers address[] staker addresses
   * @return _urls string[] staker URLs mapped to _stakers
   */
  function getServerURLsForStakers(
    address[] calldata _stakers
  ) external view returns (string[] memory _urls) {
    uint256 stakersLength = _stakers.length;
    _urls = new string[](stakersLength);
    for (uint256 i; i < stakersLength; ) {
      _urls[i] = stakerServerURLs[_stakers[i]];
      unchecked {
        ++i;
      }
    }
  }

  /**
   * @notice Get the staking balance of a staker
   * @param _staker address staker address
   * @return balance uint256 balance of the staker address
   */
  function balanceOf(address _staker) external view returns (uint256) {
    uint256 _stakingBalance;
    if (bytes(stakerServerURLs[_staker]).length > 0)
      _stakingBalance = stakingCost;
    uint256 _protocolCount = protocolsByStaker[_staker].length();
    uint256 _tokenCount = tokensByStaker[_staker].length();
    return
      _stakingBalance +
      (supportCost * _protocolCount) +
      (supportCost * _tokenCount);
  }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 999999
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_stakingToken","type":"address"},{"internalType":"uint256","name":"_stakingCost","type":"uint256"},{"internalType":"uint256","name":"_supportCost","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ArgumentInvalid","type":"error"},{"inputs":[],"name":"NoServerURLSet","type":"error"},{"inputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"name":"ProtocolDoesNotExist","type":"error"},{"inputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"name":"ProtocolExists","type":"error"},{"inputs":[],"name":"ServerURLInvalid","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"TokenDoesNotExist","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"TokenExists","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"bytes4[]","name":"protocols","type":"bytes4[]"}],"name":"AddProtocols","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"AddTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"bytes4[]","name":"protocols","type":"bytes4[]"}],"name":"RemoveProtocols","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"RemoveTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"string","name":"url","type":"string"}],"name":"SetServerURL","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"string","name":"url","type":"string"},{"indexed":false,"internalType":"bytes4[]","name":"protocols","type":"bytes4[]"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"UnsetServer","type":"event"},{"inputs":[{"internalType":"bytes4[]","name":"_protocols","type":"bytes4[]"}],"name":"addProtocols","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"}],"name":"addTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"}],"name":"getProtocolsForStaker","outputs":[{"internalType":"bytes4[]","name":"_protocolList","type":"bytes4[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_protocol","type":"bytes4"}],"name":"getServerURLsForProtocol","outputs":[{"internalType":"string[]","name":"_urls","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_stakers","type":"address[]"}],"name":"getServerURLsForStakers","outputs":[{"internalType":"string[]","name":"_urls","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getServerURLsForToken","outputs":[{"internalType":"string[]","name":"urls","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_protocol","type":"bytes4"}],"name":"getStakersForProtocol","outputs":[{"internalType":"address[]","name":"_stakers","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getStakersForToken","outputs":[{"internalType":"address[]","name":"_stakers","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"}],"name":"getTokensForStaker","outputs":[{"internalType":"address[]","name":"tokenList","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4[]","name":"_protocols","type":"bytes4[]"}],"name":"removeProtocols","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"}],"name":"removeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url","type":"string"}],"name":"setServerURL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakerServerURLs","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supportCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"},{"internalType":"bytes4","name":"_protocol","type":"bytes4"}],"name":"supportsProtocol","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"name":"supportsToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unsetServer","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b5060405162002b6538038062002b6583398101604081905262000034916200004e565b6001600160a01b0390921660805260a05260c05262000093565b6000806000606084860312156200006457600080fd5b83516001600160a01b03811681146200007c57600080fd5b602085015160409095015190969495509392505050565b60805160a05160c051612a2b6200013a6000396000818161037e0152818161063201528181610a8301528181610aad01528181610da001528181610ff00152818161101a015281816111ab015261165d0152600081816102fe01528181610ad701528181610f680152818161178501526117e9015260008181610246015281816106c801528181610b2701528181610e36015281816116a301526117c50152612a2b6000f3fe608060405234801561001057600080fd5b506004361061016c5760003560e01c80639fe1ff5d116100cd578063d75d1ba611610081578063e694f11d11610066578063e694f11d14610346578063efff1a1414610366578063facb75f11461037957600080fd5b8063d75d1ba614610320578063e41e9bb21461033357600080fd5b8063b6134342116100b2578063b6134342146102c6578063bdfe729d146102e6578063c0cf442a146102f957600080fd5b80639fe1ff5d146102a0578063a6dfcd49146102b357600080fd5b80636c3824ef1161012457806370a082311161010957806370a082311461022057806372f702f3146102415780638c5ad1b51461028d57600080fd5b80636c3824ef146101fa5780636e8658a71461020d57600080fd5b806353731c691161015557806353731c69146101af578063585ea3d3146101d257806359b2145a146101da57600080fd5b80631593c6c1146101715780634ae05c7d1461019a575b600080fd5b61018461017f366004612249565b6103a0565b60405161019191906122f9565b60405180910390f35b6101ad6101a8366004612249565b610517565b005b6101c26101bd3660046123a4565b6106f7565b6040519015158152602001610191565b6101ad61072f565b6101ed6101e8366004612407565b610baa565b6040516101919190612474565b6101ad610208366004612249565b610c8a565b6101ed61021b366004612487565b610e5d565b61023361022e366004612487565b610f29565b604051908152602001610191565b6102687f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610191565b6101ad61029b366004612249565b61105b565b6101846102ae366004612407565b611219565b6101ed6102c1366004612487565b6113a7565b6102d96102d4366004612487565b611473565b60405161019191906124a2565b6101ad6102f4366004612249565b61150d565b6102337f000000000000000000000000000000000000000000000000000000000000000081565b6101ad61032e3660046124b5565b611722565b6101c2610341366004612527565b61187c565b610359610354366004612487565b6118cd565b60405161019191906125a4565b610184610374366004612487565b6119a5565b6102337f000000000000000000000000000000000000000000000000000000000000000081565b6060818067ffffffffffffffff8111156103bc576103bc6125b7565b6040519080825280602002602001820160405280156103ef57816020015b60608152602001906001900390816103da5790505b50915060005b8181101561050f57600080868684818110610412576104126125e6565b90506020020160208101906104279190612487565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805461046c90612615565b80601f016020809104026020016040519081016040528092919081815260200182805461049890612615565b80156104e55780601f106104ba576101008083540402835291602001916104e5565b820191906000526020600020905b8154815290600101906020018083116104c857829003601f168201915b50505050508382815181106104fc576104fc6125e6565b60209081029190910101526001016103f5565b505092915050565b808061054f576040517fc9f345a300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600360205260408120905b8281101561062957600085858381811061057c5761057c6125e6565b90506020020160208101906105919190612487565b905061059d8382611b27565b6105f0576040517ff49f099900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff821660048201526024015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116600090815260046020526040902061061f9033611b27565b5050600101610560565b506000610656837f0000000000000000000000000000000000000000000000000000000000000000612697565b90503373ffffffffffffffffffffffffffffffffffffffff167f8a4417f85fc0d82e2365afb5e344e2d731a29ce2b5a000da7857409c49d28cc286866040516106a09291906126ae565b60405180910390a280156106f0576106f073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016333084611b49565b5050505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081206107269083611c2b565b90505b92915050565b336000908152602081905260409020805461074990612615565b9050600003610784576040517fc5c04cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526001602052604081209061079d82611c5a565b905060008167ffffffffffffffff8111156107ba576107ba6125b7565b6040519080825280602002602001820160405280156107e3578160200160208202803683370190505b509050815b80156108b0577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01600061081c8583611c64565b905080838381518110610831576108316125e6565b7fffffffff00000000000000000000000000000000000000000000000000000000928316602091820292909201015261086d9086908316611c70565b507fffffffff00000000000000000000000000000000000000000000000000000000811660009081526002602052604090206108a99033611c7c565b50506107e8565b50336000908152600360205260408120906108ca82611c5a565b905060008167ffffffffffffffff8111156108e7576108e76125b7565b604051908082528060200260200182016040528015610910578160200160208202803683370190505b509050815b80156109c4577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0160006109498583611c64565b90508083838151811061095e5761095e6125e6565b73ffffffffffffffffffffffffffffffffffffffff9092166020928302919091019091015261098d8582611c7c565b5073ffffffffffffffffffffffffffffffffffffffff811660009081526004602052604090206109bd9033611c7c565b5050610915565b5033600090815260208190526040812080546109df90612615565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0b90612615565b8015610a585780601f10610a2d57610100808354040283529160200191610a58565b820191906000526020600020905b815481529060010190602001808311610a3b57829003601f168201915b5050336000908152602081905260408120949550610a7b94935091506121a79050565b6000610aa7847f0000000000000000000000000000000000000000000000000000000000000000612697565b610ad1887f0000000000000000000000000000000000000000000000000000000000000000612697565b610afb907f0000000000000000000000000000000000000000000000000000000000000000612707565b610b059190612707565b90508015610b4e57610b4e73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163383611c9e565b3373ffffffffffffffffffffffffffffffffffffffff167fa6d1e5e45eeac9cce7e25f1ab88057c18bca70f309551770d1a150776154c32e838886604051610b989392919061271a565b60405180910390a25050505050505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081166000908152600260205260408120606091610be782611c5a565b90508067ffffffffffffffff811115610c0257610c026125b7565b604051908082528060200260200182016040528015610c2b578160200160208202803683370190505b50925060005b81811015610c8257610c438382611c64565b848281518110610c5557610c556125e6565b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152600101610c31565b505050919050565b8080610cc2576040517fc9f345a300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600360205260408120905b82811015610d97576000858583818110610cef57610cef6125e6565b9050602002016020810190610d049190612487565b9050610d108382611c7c565b610d5e576040517ffb524a4400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff821660048201526024016105e7565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600460205260409020610d8d9033611c7c565b5050600101610cd3565b506000610dc4837f0000000000000000000000000000000000000000000000000000000000000000612697565b90503373ffffffffffffffffffffffffffffffffffffffff167f4efa1188fb6a3db44946ac387489b6f4e29207ef0d603be528f37471525880458686604051610e0e9291906126ae565b60405180910390a280156106f0576106f073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163383611c9e565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600460205260408120606091610e8e82611c5a565b90508067ffffffffffffffff811115610ea957610ea96125b7565b604051908082528060200260200182016040528015610ed2578160200160208202803683370190505b50925060005b81811015610c8257610eea8382611c64565b848281518110610efc57610efc6125e6565b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152600101610ed8565b73ffffffffffffffffffffffffffffffffffffffff81166000908152602081905260408120805482918291610f5d90612615565b90501115610f8857507f00000000000000000000000000000000000000000000000000000000000000005b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260408120610fb690611c5a565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260036020526040812091925090610fe890611c5a565b9050611014817f0000000000000000000000000000000000000000000000000000000000000000612697565b61103e837f0000000000000000000000000000000000000000000000000000000000000000612697565b6110489085612707565b6110529190612707565b95945050505050565b8080611093576040517fc9f345a300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600160205260408120905b828110156111a25760008585838181106110c0576110c06125e6565b90506020020160208101906110d59190612407565b9050611103837fffffffff000000000000000000000000000000000000000000000000000000008316611c70565b61115d576040517f897cda2b0000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000821660048201526024016105e7565b7fffffffff00000000000000000000000000000000000000000000000000000000811660009081526002602052604090206111989033611c7c565b50506001016110a4565b5060006111cf837f0000000000000000000000000000000000000000000000000000000000000000612697565b90503373ffffffffffffffffffffffffffffffffffffffff167ff36b92d55b27d65a6f27246c581be9c79300657ff3febf83f6c5c863d063d5348686604051610e0e92919061275d565b7fffffffff000000000000000000000000000000000000000000000000000000008116600090815260026020526040812060609161125682611c5a565b90508067ffffffffffffffff811115611271576112716125b7565b6040519080825280602002602001820160405280156112a457816020015b606081526020019060019003908161128f5790505b50925060005b81811015610c82576000806112bf8584611c64565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805461130490612615565b80601f016020809104026020016040519081016040528092919081815260200182805461133090612615565b801561137d5780601f106113525761010080835404028352916020019161137d565b820191906000526020600020905b81548152906001019060200180831161136057829003601f168201915b5050505050848281518110611394576113946125e6565b60209081029190910101526001016112aa565b73ffffffffffffffffffffffffffffffffffffffff811660009081526003602052604081206060916113d882611c5a565b90508067ffffffffffffffff8111156113f3576113f36125b7565b60405190808252806020026020018201604052801561141c578160200160208202803683370190505b50925060005b81811015610c82576114348382611c64565b848281518110611446576114466125e6565b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152600101611422565b6000602081905290815260409020805461148c90612615565b80601f01602080910402602001604051908101604052809291908181526020018280546114b890612615565b80156115055780601f106114da57610100808354040283529160200191611505565b820191906000526020600020905b8154815290600101906020018083116114e857829003601f168201915b505050505081565b8080611545576040517fc9f345a300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600160205260408120905b82811015611654576000858583818110611572576115726125e6565b90506020020160208101906115879190612407565b90506115b5837fffffffff000000000000000000000000000000000000000000000000000000008316611cf9565b61160f576040517f801d93560000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000821660048201526024016105e7565b7fffffffff000000000000000000000000000000000000000000000000000000008116600090815260026020526040902061164a9033611b27565b5050600101611556565b506000611681837f0000000000000000000000000000000000000000000000000000000000000000612697565b905080156116cb576116cb73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016333084611b49565b3373ffffffffffffffffffffffffffffffffffffffff167f0a8647b9f1e07faa36b08c5b2b15ff352519f166b83880b785f6070e6797c4ee868660405161171392919061275d565b60405180910390a25050505050565b600081900361175d576040517f741dab2600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152602081905260409020805461177790612615565b15905080156117a6575060007f0000000000000000000000000000000000000000000000000000000000000000115b1561180d5761180d73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001633307f0000000000000000000000000000000000000000000000000000000000000000611b49565b336000908152602081905260409020611827828483612807565b503373ffffffffffffffffffffffffffffffffffffffff167f12db7eab2ab679aff1f14e6651ae7204d79798cdaaf2bd6322a14178fb9617fa8383604051611870929190612921565b60405180910390a25050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600160205260408120610726907fffffffff000000000000000000000000000000000000000000000000000000008416611d05565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604081206060916118fe82611c5a565b90508067ffffffffffffffff811115611919576119196125b7565b604051908082528060200260200182016040528015611942578160200160208202803683370190505b50925060005b81811015610c825761195a8382611c64565b84828151811061196c5761196c6125e6565b7fffffffff0000000000000000000000000000000000000000000000000000000090921660209283029190910190910152600101611948565b73ffffffffffffffffffffffffffffffffffffffff811660009081526004602052604081206060916119d682611c5a565b90508067ffffffffffffffff8111156119f1576119f16125b7565b604051908082528060200260200182016040528015611a2457816020015b6060815260200190600190039081611a0f5790505b50925060005b81811015610c8257600080611a3f8584611c64565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054611a8490612615565b80601f0160208091040260200160405190810160405280929190818152602001828054611ab090612615565b8015611afd5780601f10611ad257610100808354040283529160200191611afd565b820191906000526020600020905b815481529060010190602001808311611ae057829003601f168201915b5050505050848281518110611b1457611b146125e6565b6020908102919091010152600101611a2a565b60006107268373ffffffffffffffffffffffffffffffffffffffff8416611d1d565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052611c259085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611d6c565b50505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001830160205260408120541515610726565b6000610729825490565b60006107268383611e7b565b60006107268383611ea5565b60006107268373ffffffffffffffffffffffffffffffffffffffff8416611ea5565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052611cf49084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401611ba3565b505050565b60006107268383611d1d565b60008181526001830160205260408120541515610726565b6000818152600183016020526040812054611d6457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610729565b506000610729565b6000611dce826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611f989092919063ffffffff16565b9050805160001480611def575080806020019051810190611def919061296e565b611cf4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016105e7565b6000826000018281548110611e9257611e926125e6565b9060005260206000200154905092915050565b60008181526001830160205260408120548015611f8e576000611ec9600183612997565b8554909150600090611edd90600190612997565b9050818114611f42576000866000018281548110611efd57611efd6125e6565b9060005260206000200154905080876000018481548110611f2057611f206125e6565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611f5357611f536129aa565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610729565b6000915050610729565b6060611fa78484600085611faf565b949350505050565b606082471015612041576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016105e7565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161206a91906129d9565b60006040518083038185875af1925050503d80600081146120a7576040519150601f19603f3d011682016040523d82523d6000602084013e6120ac565b606091505b50915091506120bd878383876120c8565b979650505050505050565b6060831561215e5782516000036121575773ffffffffffffffffffffffffffffffffffffffff85163b612157576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105e7565b5081611fa7565b611fa783838151156121735781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105e791906124a2565b5080546121b390612615565b6000825580601f106121c3575050565b601f0160209004906000526020600020908101906121e191906121e4565b50565b5b808211156121f957600081556001016121e5565b5090565b60008083601f84011261220f57600080fd5b50813567ffffffffffffffff81111561222757600080fd5b6020830191508360208260051b850101111561224257600080fd5b9250929050565b6000806020838503121561225c57600080fd5b823567ffffffffffffffff81111561227357600080fd5b61227f858286016121fd565b90969095509350505050565b60005b838110156122a657818101518382015260200161228e565b50506000910152565b600081518084526122c781602086016020860161228b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600060208083016020845280855180835260408601915060408160051b87010192506020870160005b8281101561236e577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc088860301845261235c8583516122af565b94509285019290850190600101612322565b5092979650505050505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461239f57600080fd5b919050565b600080604083850312156123b757600080fd5b6123c08361237b565b91506123ce6020840161237b565b90509250929050565b80357fffffffff000000000000000000000000000000000000000000000000000000008116811461239f57600080fd5b60006020828403121561241957600080fd5b610726826123d7565b60008151808452602080850194506020840160005b8381101561246957815173ffffffffffffffffffffffffffffffffffffffff1687529582019590820190600101612437565b509495945050505050565b6020815260006107266020830184612422565b60006020828403121561249957600080fd5b6107268261237b565b60208152600061072660208301846122af565b600080602083850312156124c857600080fd5b823567ffffffffffffffff808211156124e057600080fd5b818501915085601f8301126124f457600080fd5b81358181111561250357600080fd5b86602082850101111561251557600080fd5b60209290920196919550909350505050565b6000806040838503121561253a57600080fd5b6125438361237b565b91506123ce602084016123d7565b60008151808452602080850194506020840160005b838110156124695781517fffffffff000000000000000000000000000000000000000000000000000000001687529582019590820190600101612566565b6020815260006107266020830184612551565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600181811c9082168061262957607f821691505b602082108103612662577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808202811582820484141761072957610729612668565b60208082528181018390526000908460408401835b868110156126fc5773ffffffffffffffffffffffffffffffffffffffff6126e98461237b565b16825291830191908301906001016126c3565b509695505050505050565b8082018082111561072957610729612668565b60608152600061272d60608301866122af565b828103602084015261273f8186612551565b905082810360408401526127538185612422565b9695505050505050565b60208082528181018390526000908460408401835b868110156126fc577fffffffff000000000000000000000000000000000000000000000000000000006127a4846123d7565b1682529183019190830190600101612772565b601f821115611cf4576000816000526020600020601f850160051c810160208610156127e05750805b601f850160051c820191505b818110156127ff578281556001016127ec565b505050505050565b67ffffffffffffffff83111561281f5761281f6125b7565b6128338361282d8354612615565b836127b7565b6000601f841160018114612885576000851561284f5750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b1783556106f0565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b828110156128d457868501358255602094850194600190920191016128b4565b508682101561290f577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208152816020820152818360408301376000818301604090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160101919050565b60006020828403121561298057600080fd5b8151801515811461299057600080fd5b9392505050565b8181038181111561072957610729612668565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600082516129eb81846020870161228b565b919091019291505056fea264697066735822122080e6a4a65ebe2c67ba4aef86d8e2e160d59b12da56777fb0d09346f6db5296c464736f6c6343000817003300000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab100000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000001c6bf52634000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061016c5760003560e01c80639fe1ff5d116100cd578063d75d1ba611610081578063e694f11d11610066578063e694f11d14610346578063efff1a1414610366578063facb75f11461037957600080fd5b8063d75d1ba614610320578063e41e9bb21461033357600080fd5b8063b6134342116100b2578063b6134342146102c6578063bdfe729d146102e6578063c0cf442a146102f957600080fd5b80639fe1ff5d146102a0578063a6dfcd49146102b357600080fd5b80636c3824ef1161012457806370a082311161010957806370a082311461022057806372f702f3146102415780638c5ad1b51461028d57600080fd5b80636c3824ef146101fa5780636e8658a71461020d57600080fd5b806353731c691161015557806353731c69146101af578063585ea3d3146101d257806359b2145a146101da57600080fd5b80631593c6c1146101715780634ae05c7d1461019a575b600080fd5b61018461017f366004612249565b6103a0565b60405161019191906122f9565b60405180910390f35b6101ad6101a8366004612249565b610517565b005b6101c26101bd3660046123a4565b6106f7565b6040519015158152602001610191565b6101ad61072f565b6101ed6101e8366004612407565b610baa565b6040516101919190612474565b6101ad610208366004612249565b610c8a565b6101ed61021b366004612487565b610e5d565b61023361022e366004612487565b610f29565b604051908152602001610191565b6102687f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab181565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610191565b6101ad61029b366004612249565b61105b565b6101846102ae366004612407565b611219565b6101ed6102c1366004612487565b6113a7565b6102d96102d4366004612487565b611473565b60405161019191906124a2565b6101ad6102f4366004612249565b61150d565b6102337f00000000000000000000000000000000000000000000000000b1a2bc2ec5000081565b6101ad61032e3660046124b5565b611722565b6101c2610341366004612527565b61187c565b610359610354366004612487565b6118cd565b60405161019191906125a4565b610184610374366004612487565b6119a5565b6102337f0000000000000000000000000000000000000000000000000001c6bf5263400081565b6060818067ffffffffffffffff8111156103bc576103bc6125b7565b6040519080825280602002602001820160405280156103ef57816020015b60608152602001906001900390816103da5790505b50915060005b8181101561050f57600080868684818110610412576104126125e6565b90506020020160208101906104279190612487565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805461046c90612615565b80601f016020809104026020016040519081016040528092919081815260200182805461049890612615565b80156104e55780601f106104ba576101008083540402835291602001916104e5565b820191906000526020600020905b8154815290600101906020018083116104c857829003601f168201915b50505050508382815181106104fc576104fc6125e6565b60209081029190910101526001016103f5565b505092915050565b808061054f576040517fc9f345a300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600360205260408120905b8281101561062957600085858381811061057c5761057c6125e6565b90506020020160208101906105919190612487565b905061059d8382611b27565b6105f0576040517ff49f099900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff821660048201526024015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116600090815260046020526040902061061f9033611b27565b5050600101610560565b506000610656837f0000000000000000000000000000000000000000000000000001c6bf52634000612697565b90503373ffffffffffffffffffffffffffffffffffffffff167f8a4417f85fc0d82e2365afb5e344e2d731a29ce2b5a000da7857409c49d28cc286866040516106a09291906126ae565b60405180910390a280156106f0576106f073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab116333084611b49565b5050505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081206107269083611c2b565b90505b92915050565b336000908152602081905260409020805461074990612615565b9050600003610784576040517fc5c04cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526001602052604081209061079d82611c5a565b905060008167ffffffffffffffff8111156107ba576107ba6125b7565b6040519080825280602002602001820160405280156107e3578160200160208202803683370190505b509050815b80156108b0577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01600061081c8583611c64565b905080838381518110610831576108316125e6565b7fffffffff00000000000000000000000000000000000000000000000000000000928316602091820292909201015261086d9086908316611c70565b507fffffffff00000000000000000000000000000000000000000000000000000000811660009081526002602052604090206108a99033611c7c565b50506107e8565b50336000908152600360205260408120906108ca82611c5a565b905060008167ffffffffffffffff8111156108e7576108e76125b7565b604051908082528060200260200182016040528015610910578160200160208202803683370190505b509050815b80156109c4577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0160006109498583611c64565b90508083838151811061095e5761095e6125e6565b73ffffffffffffffffffffffffffffffffffffffff9092166020928302919091019091015261098d8582611c7c565b5073ffffffffffffffffffffffffffffffffffffffff811660009081526004602052604090206109bd9033611c7c565b5050610915565b5033600090815260208190526040812080546109df90612615565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0b90612615565b8015610a585780601f10610a2d57610100808354040283529160200191610a58565b820191906000526020600020905b815481529060010190602001808311610a3b57829003601f168201915b5050336000908152602081905260408120949550610a7b94935091506121a79050565b6000610aa7847f0000000000000000000000000000000000000000000000000001c6bf52634000612697565b610ad1887f0000000000000000000000000000000000000000000000000001c6bf52634000612697565b610afb907f00000000000000000000000000000000000000000000000000b1a2bc2ec50000612707565b610b059190612707565b90508015610b4e57610b4e73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1163383611c9e565b3373ffffffffffffffffffffffffffffffffffffffff167fa6d1e5e45eeac9cce7e25f1ab88057c18bca70f309551770d1a150776154c32e838886604051610b989392919061271a565b60405180910390a25050505050505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081166000908152600260205260408120606091610be782611c5a565b90508067ffffffffffffffff811115610c0257610c026125b7565b604051908082528060200260200182016040528015610c2b578160200160208202803683370190505b50925060005b81811015610c8257610c438382611c64565b848281518110610c5557610c556125e6565b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152600101610c31565b505050919050565b8080610cc2576040517fc9f345a300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600360205260408120905b82811015610d97576000858583818110610cef57610cef6125e6565b9050602002016020810190610d049190612487565b9050610d108382611c7c565b610d5e576040517ffb524a4400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff821660048201526024016105e7565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600460205260409020610d8d9033611c7c565b5050600101610cd3565b506000610dc4837f0000000000000000000000000000000000000000000000000001c6bf52634000612697565b90503373ffffffffffffffffffffffffffffffffffffffff167f4efa1188fb6a3db44946ac387489b6f4e29207ef0d603be528f37471525880458686604051610e0e9291906126ae565b60405180910390a280156106f0576106f073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1163383611c9e565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600460205260408120606091610e8e82611c5a565b90508067ffffffffffffffff811115610ea957610ea96125b7565b604051908082528060200260200182016040528015610ed2578160200160208202803683370190505b50925060005b81811015610c8257610eea8382611c64565b848281518110610efc57610efc6125e6565b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152600101610ed8565b73ffffffffffffffffffffffffffffffffffffffff81166000908152602081905260408120805482918291610f5d90612615565b90501115610f8857507f00000000000000000000000000000000000000000000000000b1a2bc2ec500005b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260408120610fb690611c5a565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260036020526040812091925090610fe890611c5a565b9050611014817f0000000000000000000000000000000000000000000000000001c6bf52634000612697565b61103e837f0000000000000000000000000000000000000000000000000001c6bf52634000612697565b6110489085612707565b6110529190612707565b95945050505050565b8080611093576040517fc9f345a300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600160205260408120905b828110156111a25760008585838181106110c0576110c06125e6565b90506020020160208101906110d59190612407565b9050611103837fffffffff000000000000000000000000000000000000000000000000000000008316611c70565b61115d576040517f897cda2b0000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000821660048201526024016105e7565b7fffffffff00000000000000000000000000000000000000000000000000000000811660009081526002602052604090206111989033611c7c565b50506001016110a4565b5060006111cf837f0000000000000000000000000000000000000000000000000001c6bf52634000612697565b90503373ffffffffffffffffffffffffffffffffffffffff167ff36b92d55b27d65a6f27246c581be9c79300657ff3febf83f6c5c863d063d5348686604051610e0e92919061275d565b7fffffffff000000000000000000000000000000000000000000000000000000008116600090815260026020526040812060609161125682611c5a565b90508067ffffffffffffffff811115611271576112716125b7565b6040519080825280602002602001820160405280156112a457816020015b606081526020019060019003908161128f5790505b50925060005b81811015610c82576000806112bf8584611c64565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805461130490612615565b80601f016020809104026020016040519081016040528092919081815260200182805461133090612615565b801561137d5780601f106113525761010080835404028352916020019161137d565b820191906000526020600020905b81548152906001019060200180831161136057829003601f168201915b5050505050848281518110611394576113946125e6565b60209081029190910101526001016112aa565b73ffffffffffffffffffffffffffffffffffffffff811660009081526003602052604081206060916113d882611c5a565b90508067ffffffffffffffff8111156113f3576113f36125b7565b60405190808252806020026020018201604052801561141c578160200160208202803683370190505b50925060005b81811015610c82576114348382611c64565b848281518110611446576114466125e6565b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152600101611422565b6000602081905290815260409020805461148c90612615565b80601f01602080910402602001604051908101604052809291908181526020018280546114b890612615565b80156115055780601f106114da57610100808354040283529160200191611505565b820191906000526020600020905b8154815290600101906020018083116114e857829003601f168201915b505050505081565b8080611545576040517fc9f345a300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600160205260408120905b82811015611654576000858583818110611572576115726125e6565b90506020020160208101906115879190612407565b90506115b5837fffffffff000000000000000000000000000000000000000000000000000000008316611cf9565b61160f576040517f801d93560000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000821660048201526024016105e7565b7fffffffff000000000000000000000000000000000000000000000000000000008116600090815260026020526040902061164a9033611b27565b5050600101611556565b506000611681837f0000000000000000000000000000000000000000000000000001c6bf52634000612697565b905080156116cb576116cb73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab116333084611b49565b3373ffffffffffffffffffffffffffffffffffffffff167f0a8647b9f1e07faa36b08c5b2b15ff352519f166b83880b785f6070e6797c4ee868660405161171392919061275d565b60405180910390a25050505050565b600081900361175d576040517f741dab2600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152602081905260409020805461177790612615565b15905080156117a6575060007f00000000000000000000000000000000000000000000000000b1a2bc2ec50000115b1561180d5761180d73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab11633307f00000000000000000000000000000000000000000000000000b1a2bc2ec50000611b49565b336000908152602081905260409020611827828483612807565b503373ffffffffffffffffffffffffffffffffffffffff167f12db7eab2ab679aff1f14e6651ae7204d79798cdaaf2bd6322a14178fb9617fa8383604051611870929190612921565b60405180910390a25050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600160205260408120610726907fffffffff000000000000000000000000000000000000000000000000000000008416611d05565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604081206060916118fe82611c5a565b90508067ffffffffffffffff811115611919576119196125b7565b604051908082528060200260200182016040528015611942578160200160208202803683370190505b50925060005b81811015610c825761195a8382611c64565b84828151811061196c5761196c6125e6565b7fffffffff0000000000000000000000000000000000000000000000000000000090921660209283029190910190910152600101611948565b73ffffffffffffffffffffffffffffffffffffffff811660009081526004602052604081206060916119d682611c5a565b90508067ffffffffffffffff8111156119f1576119f16125b7565b604051908082528060200260200182016040528015611a2457816020015b6060815260200190600190039081611a0f5790505b50925060005b81811015610c8257600080611a3f8584611c64565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054611a8490612615565b80601f0160208091040260200160405190810160405280929190818152602001828054611ab090612615565b8015611afd5780601f10611ad257610100808354040283529160200191611afd565b820191906000526020600020905b815481529060010190602001808311611ae057829003601f168201915b5050505050848281518110611b1457611b146125e6565b6020908102919091010152600101611a2a565b60006107268373ffffffffffffffffffffffffffffffffffffffff8416611d1d565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052611c259085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611d6c565b50505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001830160205260408120541515610726565b6000610729825490565b60006107268383611e7b565b60006107268383611ea5565b60006107268373ffffffffffffffffffffffffffffffffffffffff8416611ea5565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052611cf49084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401611ba3565b505050565b60006107268383611d1d565b60008181526001830160205260408120541515610726565b6000818152600183016020526040812054611d6457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610729565b506000610729565b6000611dce826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611f989092919063ffffffff16565b9050805160001480611def575080806020019051810190611def919061296e565b611cf4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016105e7565b6000826000018281548110611e9257611e926125e6565b9060005260206000200154905092915050565b60008181526001830160205260408120548015611f8e576000611ec9600183612997565b8554909150600090611edd90600190612997565b9050818114611f42576000866000018281548110611efd57611efd6125e6565b9060005260206000200154905080876000018481548110611f2057611f206125e6565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611f5357611f536129aa565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610729565b6000915050610729565b6060611fa78484600085611faf565b949350505050565b606082471015612041576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016105e7565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161206a91906129d9565b60006040518083038185875af1925050503d80600081146120a7576040519150601f19603f3d011682016040523d82523d6000602084013e6120ac565b606091505b50915091506120bd878383876120c8565b979650505050505050565b6060831561215e5782516000036121575773ffffffffffffffffffffffffffffffffffffffff85163b612157576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105e7565b5081611fa7565b611fa783838151156121735781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105e791906124a2565b5080546121b390612615565b6000825580601f106121c3575050565b601f0160209004906000526020600020908101906121e191906121e4565b50565b5b808211156121f957600081556001016121e5565b5090565b60008083601f84011261220f57600080fd5b50813567ffffffffffffffff81111561222757600080fd5b6020830191508360208260051b850101111561224257600080fd5b9250929050565b6000806020838503121561225c57600080fd5b823567ffffffffffffffff81111561227357600080fd5b61227f858286016121fd565b90969095509350505050565b60005b838110156122a657818101518382015260200161228e565b50506000910152565b600081518084526122c781602086016020860161228b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600060208083016020845280855180835260408601915060408160051b87010192506020870160005b8281101561236e577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc088860301845261235c8583516122af565b94509285019290850190600101612322565b5092979650505050505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461239f57600080fd5b919050565b600080604083850312156123b757600080fd5b6123c08361237b565b91506123ce6020840161237b565b90509250929050565b80357fffffffff000000000000000000000000000000000000000000000000000000008116811461239f57600080fd5b60006020828403121561241957600080fd5b610726826123d7565b60008151808452602080850194506020840160005b8381101561246957815173ffffffffffffffffffffffffffffffffffffffff1687529582019590820190600101612437565b509495945050505050565b6020815260006107266020830184612422565b60006020828403121561249957600080fd5b6107268261237b565b60208152600061072660208301846122af565b600080602083850312156124c857600080fd5b823567ffffffffffffffff808211156124e057600080fd5b818501915085601f8301126124f457600080fd5b81358181111561250357600080fd5b86602082850101111561251557600080fd5b60209290920196919550909350505050565b6000806040838503121561253a57600080fd5b6125438361237b565b91506123ce602084016123d7565b60008151808452602080850194506020840160005b838110156124695781517fffffffff000000000000000000000000000000000000000000000000000000001687529582019590820190600101612566565b6020815260006107266020830184612551565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600181811c9082168061262957607f821691505b602082108103612662577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808202811582820484141761072957610729612668565b60208082528181018390526000908460408401835b868110156126fc5773ffffffffffffffffffffffffffffffffffffffff6126e98461237b565b16825291830191908301906001016126c3565b509695505050505050565b8082018082111561072957610729612668565b60608152600061272d60608301866122af565b828103602084015261273f8186612551565b905082810360408401526127538185612422565b9695505050505050565b60208082528181018390526000908460408401835b868110156126fc577fffffffff000000000000000000000000000000000000000000000000000000006127a4846123d7565b1682529183019190830190600101612772565b601f821115611cf4576000816000526020600020601f850160051c810160208610156127e05750805b601f850160051c820191505b818110156127ff578281556001016127ec565b505050505050565b67ffffffffffffffff83111561281f5761281f6125b7565b6128338361282d8354612615565b836127b7565b6000601f841160018114612885576000851561284f5750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b1783556106f0565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b828110156128d457868501358255602094850194600190920191016128b4565b508682101561290f577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208152816020820152818360408301376000818301604090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160101919050565b60006020828403121561298057600080fd5b8151801515811461299057600080fd5b9392505050565b8181038181111561072957610729612668565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600082516129eb81846020870161228b565b919091019291505056fea264697066735822122080e6a4a65ebe2c67ba4aef86d8e2e160d59b12da56777fb0d09346f6db5296c464736f6c63430008170033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab100000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000001c6bf52634000

-----Decoded View---------------
Arg [0] : _stakingToken (address): 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1
Arg [1] : _stakingCost (uint256): 50000000000000000
Arg [2] : _supportCost (uint256): 500000000000000

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1
Arg [1] : 00000000000000000000000000000000000000000000000000b1a2bc2ec50000
Arg [2] : 0000000000000000000000000000000000000000000000000001c6bf52634000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.