ETH Price: $3,234.41 (+1.18%)

Contract

0x0E510c9b20a5D136E75f7FD2a5F344BD98f9d875
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
Add Registry353273602022-11-07 7:47:35533 days ago1667807255IN
0x0E510c9b...D98f9d875
0 ETH0.000000090.001
Add Registry299320882022-10-17 19:30:44554 days ago1666035044IN
0x0E510c9b...D98f9d875
0 ETH0.000000090.001
Add Registry299320692022-10-17 19:30:14554 days ago1666035014IN
0x0E510c9b...D98f9d875
0 ETH0.000000090.001
Batch122389302022-06-18 16:10:10675 days ago1655568610IN
0x0E510c9b...D98f9d875
0 ETH0.000000090.001
0x60806040122389222022-06-18 16:10:10675 days ago1655568610IN
 Create: MasterRegistry
0 ETH0.000001270.001

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterRegistry

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion, MIT license
File 1 of 7 : MasterRegistry.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "../helper/BaseBoringBatchable.sol";
import "../interfaces/IMasterRegistry.sol";

/**
 * @title MasterRegistry
 * @notice This contract holds list of other registries or contracts and its historical versions.
 */
contract MasterRegistry is AccessControl, IMasterRegistry, BaseBoringBatchable {
    /// @notice Role responsible for adding registries.
    bytes32 public constant SADDLE_MANAGER_ROLE =
        keccak256("SADDLE_MANAGER_ROLE");

    mapping(bytes32 => address[]) private registryMap;
    mapping(address => ReverseRegistryData) private reverseRegistry;

    /**
     * @notice Add a new registry entry to the master list.
     * @param name address of the added pool
     * @param registryAddress address of the registry
     * @param version version of the registry
     */
    event AddRegistry(
        bytes32 indexed name,
        address registryAddress,
        uint256 version
    );

    constructor(address admin) public {
        _setupRole(DEFAULT_ADMIN_ROLE, admin);
        _setupRole(SADDLE_MANAGER_ROLE, msg.sender);
    }

    /// @inheritdoc IMasterRegistry
    function addRegistry(bytes32 registryName, address registryAddress)
        external
        payable
        override
    {
        require(
            hasRole(SADDLE_MANAGER_ROLE, msg.sender),
            "MR: msg.sender is not allowed"
        );
        require(registryName != 0, "MR: name cannot be empty");
        require(registryAddress != address(0), "MR: address cannot be empty");

        address[] storage registry = registryMap[registryName];
        uint256 version = registry.length;
        registry.push(registryAddress);
        require(
            reverseRegistry[registryAddress].name == 0,
            "MR: duplicate registry address"
        );
        reverseRegistry[registryAddress] = ReverseRegistryData(
            registryName,
            version
        );

        emit AddRegistry(registryName, registryAddress, version);
    }

    /// @inheritdoc IMasterRegistry
    function resolveNameToLatestAddress(bytes32 name)
        external
        view
        override
        returns (address)
    {
        address[] storage registry = registryMap[name];
        uint256 length = registry.length;
        require(length > 0, "MR: no match found for name");
        return registry[length - 1];
    }

    /// @inheritdoc IMasterRegistry
    function resolveNameAndVersionToAddress(bytes32 name, uint256 version)
        external
        view
        override
        returns (address)
    {
        address[] storage registry = registryMap[name];
        require(
            version < registry.length,
            "MR: no match found for name and version"
        );
        return registry[version];
    }

    /// @inheritdoc IMasterRegistry
    function resolveNameToAllAddresses(bytes32 name)
        external
        view
        override
        returns (address[] memory)
    {
        address[] storage registry = registryMap[name];
        require(registry.length > 0, "MR: no match found for name");
        return registry;
    }

    /// @inheritdoc IMasterRegistry
    function resolveAddressToRegistryData(address registryAddress)
        external
        view
        override
        returns (
            bytes32 name,
            uint256 version,
            bool isLatest
        )
    {
        ReverseRegistryData memory data = reverseRegistry[registryAddress];
        require(data.name != 0, "MR: no match found for address");
        name = data.name;
        version = data.version;
        uint256 length = registryMap[name].length;
        require(length > 0, "MR: no version found for address");
        isLatest = version == length - 1;
    }
}

File 2 of 7 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../utils/EnumerableSet.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 7 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 4 of 7 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 5 of 7 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

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

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

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

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

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

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

File 6 of 7 : BaseBoringBatchable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

// solhint-disable avoid-low-level-calls
// solhint-disable no-inline-assembly

// Audit on 5-Jan-2021 by Keno and BoringCrypto
// WARNING!!!
// Combining BoringBatchable with msg.value can cause double spending issues
// https://www.paradigm.xyz/2021/08/two-rights-might-make-a-wrong/

contract BaseBoringBatchable {
    /// @dev Helper function to extract a useful revert message from a failed call.
    /// If the returned data is malformed or not correctly abi encoded then this call can fail itself.
    function _getRevertMsg(bytes memory _returnData)
        internal
        pure
        returns (string memory)
    {
        // If the _res length is less than 68, then the transaction failed silently (without a revert message)
        if (_returnData.length < 68) return "Transaction reverted silently";

        assembly {
            // Slice the sighash.
            _returnData := add(_returnData, 0x04)
        }
        return abi.decode(_returnData, (string)); // All that remains is the revert string
    }

    /// @notice Allows batched call to self (this contract).
    /// @param calls An array of inputs for each call.
    /// @param revertOnFail If True then reverts after a failed call and stops doing further calls.
    // F1: External is ok here because this is the batch function, adding it to a batch makes no sense
    // F2: Calls in the batch may be payable, delegatecall operates in the same context, so each call in the batch has access to msg.value
    // C3: The length of the loop is fully under user control, so can't be exploited
    // C7: Delegatecall is only used on the same contract, so it's safe
    function batch(bytes[] calldata calls, bool revertOnFail) external payable {
        for (uint256 i = 0; i < calls.length; i++) {
            (bool success, bytes memory result) = address(this).delegatecall(
                calls[i]
            );
            if (!success && revertOnFail) {
                revert(_getRevertMsg(result));
            }
        }
    }
}

File 7 of 7 : IMasterRegistry.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;

interface IMasterRegistry {
    /* Structs */

    struct ReverseRegistryData {
        bytes32 name;
        uint256 version;
    }

    /* Functions */

    /**
     * @notice Add a new registry entry to the master list.
     * @param registryName name for the registry
     * @param registryAddress address of the new registry
     */
    function addRegistry(bytes32 registryName, address registryAddress)
        external
        payable;

    /**
     * @notice Resolves a name to the latest registry address. Reverts if no match is found.
     * @param name name for the registry
     * @return address address of the latest registry with the matching name
     */
    function resolveNameToLatestAddress(bytes32 name)
        external
        view
        returns (address);

    /**
     * @notice Resolves a name and version to an address. Reverts if there is no registry with given name and version.
     * @param name address of the registry you want to resolve to
     * @param version version of the registry you want to resolve to
     */
    function resolveNameAndVersionToAddress(bytes32 name, uint256 version)
        external
        view
        returns (address);

    /**
     * @notice Resolves a name to an array of all addresses. Reverts if no match is found.
     * @param name name for the registry
     * @return address address of the latest registry with the matching name
     */
    function resolveNameToAllAddresses(bytes32 name)
        external
        view
        returns (address[] memory);

    /**
     * @notice Resolves an address to registry entry data.
     * @param registryAddress address of a registry you want to resolve
     * @return name name of the resolved registry
     * @return version version of the resolved registry
     * @return isLatest boolean flag of whether the given address is the latest version of the given registries with
     * matching name
     */
    function resolveAddressToRegistryData(address registryAddress)
        external
        view
        returns (
            bytes32 name,
            uint256 version,
            bool isLatest
        );
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"name","type":"bytes32"},{"indexed":false,"internalType":"address","name":"registryAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"version","type":"uint256"}],"name":"AddRegistry","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SADDLE_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"registryName","type":"bytes32"},{"internalType":"address","name":"registryAddress","type":"address"}],"name":"addRegistry","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"calls","type":"bytes[]"},{"internalType":"bool","name":"revertOnFail","type":"bool"}],"name":"batch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"registryAddress","type":"address"}],"name":"resolveAddressToRegistryData","outputs":[{"internalType":"bytes32","name":"name","type":"bytes32"},{"internalType":"uint256","name":"version","type":"uint256"},{"internalType":"bool","name":"isLatest","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"name","type":"bytes32"},{"internalType":"uint256","name":"version","type":"uint256"}],"name":"resolveNameAndVersionToAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"name","type":"bytes32"}],"name":"resolveNameToAllAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"name","type":"bytes32"}],"name":"resolveNameToLatestAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200155138038062001551833981016040819052620000349162000188565b6200004160008262000074565b6200006d7fe132a6a517694e2454dc663f0d4fa738f94e7c1bd06c8950d14f9db8832494bd3362000074565b50620001b8565b62000080828262000084565b5050565b600082815260208181526040909120620000a9918390620008ba620000fd821b17901c565b156200008057620000b96200011d565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600062000114836001600160a01b03841662000121565b90505b92915050565b3390565b60006200012f838362000170565b620001675750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000117565b50600062000117565b60009081526001919091016020526040902054151590565b6000602082840312156200019a578081fd5b81516001600160a01b0381168114620001b1578182fd5b9392505050565b61138980620001c86000396000f3fe6080604052600436106100e85760003560e01c806391d148541161008a578063ca15c87311610059578063ca15c87314610285578063d2423b51146102a5578063d547741f146102b8578063f67ff842146102d8576100e8565b806391d14854146101f4578063a0fc52a314610221578063a217fddf14610241578063a67d236b14610256576100e8565b806336568abe116100c657806336568abe146101725780633705f625146101925780636d2f2246146101bf5780639010d07c146101d4576100e8565b806303aa6d38146100ed578063248a9ca3146101235780632f2ff15d14610150575b600080fd5b3480156100f957600080fd5b5061010d610108366004610d06565b6102eb565b60405161011a9190610e96565b60405180910390f35b34801561012f57600080fd5b5061014361013e366004610d06565b610390565b60405161011a9190610efb565b34801561015c57600080fd5b5061017061016b366004610d1e565b6103a5565b005b34801561017e57600080fd5b5061017061018d366004610d1e565b6103ed565b34801561019e57600080fd5b506101b26101ad366004610d06565b610449565b60405161011a9190610e4f565b3480156101cb57600080fd5b506101436104af565b3480156101e057600080fd5b506101b26101ef366004610d65565b6104d3565b34801561020057600080fd5b5061021461020f366004610d1e565b6104f4565b60405161011a9190610ef0565b34801561022d57600080fd5b506101b261023c366004610d65565b61050c565b34801561024d57600080fd5b50610143610546565b34801561026257600080fd5b50610276610271366004610c47565b61054b565b60405161011a93929190610f04565b34801561029157600080fd5b506101436102a0366004610d06565b610603565b6101706102b3366004610c82565b61061a565b3480156102c457600080fd5b506101706102d3366004610d1e565b6106dd565b6101706102e6366004610d1e565b610717565b60008181526001602052604090208054606091906103245760405162461bcd60e51b815260040161031b90611197565b60405180910390fd5b80546040805160208084028201810190925282815291839183018282801561038257602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610357575b50505050509150505b919050565b60009081526020819052604090206002015490565b6000828152602081905260409020600201546103c39061020f6108dc565b6103df5760405162461bcd60e51b815260040161031b90610fca565b6103e982826108e0565b5050565b6103f56108dc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461043f5760405162461bcd60e51b815260040161031b90611260565b6103e98282610963565b60008181526001602052604081208054806104765760405162461bcd60e51b815260040161031b90611197565b81600182038154811061048557fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16949350505050565b7fe132a6a517694e2454dc663f0d4fa738f94e7c1bd06c8950d14f9db8832494bd81565b60008281526020819052604081206104eb90836109e6565b90505b92915050565b60008281526020819052604081206104eb90836109f2565b60008281526001602052604081208054831061053a5760405162461bcd60e51b815260040161031b906111ce565b80838154811061048557fe5b600081565b6000806000610558610c30565b5073ffffffffffffffffffffffffffffffffffffffff841660009081526002602090815260409182902082518084019093528054808452600190910154918301919091526105b85760405162461bcd60e51b815260040161031b90611129565b8051602080830151600083815260019092526040909120549195509350806105f25760405162461bcd60e51b815260040161031b9061122b565b600181038414925050509193909250565b60008181526020819052604081206104ee90610a14565b60005b828110156106d757600060603086868581811061063657fe5b905060200281019061064891906112bd565b604051610656929190610e3f565b600060405180830381855af49150503d8060008114610691576040519150601f19603f3d011682016040523d82523d6000602084013e610696565b606091505b5091509150811580156106a65750835b156106cd576106b481610a1f565b60405162461bcd60e51b815260040161031b9190610f1c565b505060010161061d565b50505050565b6000828152602081905260409020600201546106fb9061020f6108dc565b61043f5760405162461bcd60e51b815260040161031b906110cc565b6107417fe132a6a517694e2454dc663f0d4fa738f94e7c1bd06c8950d14f9db8832494bd336104f4565b61075d5760405162461bcd60e51b815260040161031b90611027565b8161077a5760405162461bcd60e51b815260040161031b90611095565b73ffffffffffffffffffffffffffffffffffffffff81166107ad5760405162461bcd60e51b815260040161031b90611160565b600082815260016020818152604080842080549384018155808552828520840180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff88169081179091558552600290925290922054156108365760405162461bcd60e51b815260040161031b9061105e565b604080518082018252858152602080820184815273ffffffffffffffffffffffffffffffffffffffff8716600090815260029092529083902091518255516001909101555184907fb548fd55460ebbfd131d635d9804c0edf1598b692d074d441d89205f5f2f1f53906108ac9086908590610e70565b60405180910390a250505050565b60006104eb8373ffffffffffffffffffffffffffffffffffffffff8416610a7f565b3390565b60008281526020819052604090206108f890826108ba565b156103e9576109056108dc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260208190526040902061097b9082610ac9565b156103e9576109886108dc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006104eb8383610aeb565b60006104eb8373ffffffffffffffffffffffffffffffffffffffff8416610b30565b60006104ee82610b48565b6060604482511015610a65575060408051808201909152601d81527f5472616e73616374696f6e2072657665727465642073696c656e746c79000000602082015261038b565b600482019150818060200190518101906104ee9190610d86565b6000610a8b8383610b30565b610ac1575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556104ee565b5060006104ee565b60006104eb8373ffffffffffffffffffffffffffffffffffffffff8416610b4c565b81546000908210610b0e5760405162461bcd60e51b815260040161031b90610f6d565b826000018281548110610b1d57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b60008181526001830160205260408120548015610c265783547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8083019190810190600090879083908110610b9d57fe5b9060005260206000200154905080876000018481548110610bba57fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080610bea57fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506104ee565b60009150506104ee565b604080518082019091526000808252602082015290565b600060208284031215610c58578081fd5b813573ffffffffffffffffffffffffffffffffffffffff81168114610c7b578182fd5b9392505050565b600080600060408486031215610c96578182fd5b833567ffffffffffffffff80821115610cad578384fd5b818601915086601f830112610cc0578384fd5b813581811115610cce578485fd5b8760208083028501011115610ce1578485fd5b602092830195509350508401358015158114610cfb578182fd5b809150509250925092565b600060208284031215610d17578081fd5b5035919050565b60008060408385031215610d30578182fd5b82359150602083013573ffffffffffffffffffffffffffffffffffffffff81168114610d5a578182fd5b809150509250929050565b60008060408385031215610d77578182fd5b50508035926020909101359150565b600060208284031215610d97578081fd5b815167ffffffffffffffff80821115610dae578283fd5b818401915084601f830112610dc1578283fd5b815181811115610dcf578384fd5b60405160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401168201018181108482111715610e0d578586fd5b604052818152838201602001871015610e24578485fd5b610e35826020830160208701611327565b9695505050505050565b6000828483379101908152919050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b81811015610ee457835173ffffffffffffffffffffffffffffffffffffffff1683529284019291840191600101610eb2565b50909695505050505050565b901515815260200190565b90815260200190565b92835260208301919091521515604082015260600190565b6000602082528251806020840152610f3b816040850160208701611327565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60408201527f6473000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60408201527f2061646d696e20746f206772616e740000000000000000000000000000000000606082015260800190565b6020808252601d908201527f4d523a206d73672e73656e646572206973206e6f7420616c6c6f776564000000604082015260600190565b6020808252601e908201527f4d523a206475706c696361746520726567697374727920616464726573730000604082015260600190565b60208082526018908201527f4d523a206e616d652063616e6e6f7420626520656d7074790000000000000000604082015260600190565b60208082526030908201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60408201527f2061646d696e20746f207265766f6b6500000000000000000000000000000000606082015260800190565b6020808252601e908201527f4d523a206e6f206d6174636820666f756e6420666f7220616464726573730000604082015260600190565b6020808252601b908201527f4d523a20616464726573732063616e6e6f7420626520656d7074790000000000604082015260600190565b6020808252601b908201527f4d523a206e6f206d6174636820666f756e6420666f72206e616d650000000000604082015260600190565b60208082526027908201527f4d523a206e6f206d6174636820666f756e6420666f72206e616d6520616e642060408201527f76657273696f6e00000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4d523a206e6f2076657273696f6e20666f756e6420666f722061646472657373604082015260600190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201527f20726f6c657320666f722073656c660000000000000000000000000000000000606082015260800190565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126112f1578283fd5b83018035915067ffffffffffffffff82111561130b578283fd5b60200191503681900382131561132057600080fd5b9250929050565b60005b8381101561134257818101518382015260200161132a565b838111156106d7575050600091015256fea26469706673582212209fd55db835a10f3a71bae1b4749187a241ecc1ea7b846e6161ddfca2eb04cc1f64736f6c634300060c003300000000000000000000000091804c72076add9fab49b2c1e1a61a7503199599

Deployed Bytecode

0x6080604052600436106100e85760003560e01c806391d148541161008a578063ca15c87311610059578063ca15c87314610285578063d2423b51146102a5578063d547741f146102b8578063f67ff842146102d8576100e8565b806391d14854146101f4578063a0fc52a314610221578063a217fddf14610241578063a67d236b14610256576100e8565b806336568abe116100c657806336568abe146101725780633705f625146101925780636d2f2246146101bf5780639010d07c146101d4576100e8565b806303aa6d38146100ed578063248a9ca3146101235780632f2ff15d14610150575b600080fd5b3480156100f957600080fd5b5061010d610108366004610d06565b6102eb565b60405161011a9190610e96565b60405180910390f35b34801561012f57600080fd5b5061014361013e366004610d06565b610390565b60405161011a9190610efb565b34801561015c57600080fd5b5061017061016b366004610d1e565b6103a5565b005b34801561017e57600080fd5b5061017061018d366004610d1e565b6103ed565b34801561019e57600080fd5b506101b26101ad366004610d06565b610449565b60405161011a9190610e4f565b3480156101cb57600080fd5b506101436104af565b3480156101e057600080fd5b506101b26101ef366004610d65565b6104d3565b34801561020057600080fd5b5061021461020f366004610d1e565b6104f4565b60405161011a9190610ef0565b34801561022d57600080fd5b506101b261023c366004610d65565b61050c565b34801561024d57600080fd5b50610143610546565b34801561026257600080fd5b50610276610271366004610c47565b61054b565b60405161011a93929190610f04565b34801561029157600080fd5b506101436102a0366004610d06565b610603565b6101706102b3366004610c82565b61061a565b3480156102c457600080fd5b506101706102d3366004610d1e565b6106dd565b6101706102e6366004610d1e565b610717565b60008181526001602052604090208054606091906103245760405162461bcd60e51b815260040161031b90611197565b60405180910390fd5b80546040805160208084028201810190925282815291839183018282801561038257602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610357575b50505050509150505b919050565b60009081526020819052604090206002015490565b6000828152602081905260409020600201546103c39061020f6108dc565b6103df5760405162461bcd60e51b815260040161031b90610fca565b6103e982826108e0565b5050565b6103f56108dc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461043f5760405162461bcd60e51b815260040161031b90611260565b6103e98282610963565b60008181526001602052604081208054806104765760405162461bcd60e51b815260040161031b90611197565b81600182038154811061048557fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16949350505050565b7fe132a6a517694e2454dc663f0d4fa738f94e7c1bd06c8950d14f9db8832494bd81565b60008281526020819052604081206104eb90836109e6565b90505b92915050565b60008281526020819052604081206104eb90836109f2565b60008281526001602052604081208054831061053a5760405162461bcd60e51b815260040161031b906111ce565b80838154811061048557fe5b600081565b6000806000610558610c30565b5073ffffffffffffffffffffffffffffffffffffffff841660009081526002602090815260409182902082518084019093528054808452600190910154918301919091526105b85760405162461bcd60e51b815260040161031b90611129565b8051602080830151600083815260019092526040909120549195509350806105f25760405162461bcd60e51b815260040161031b9061122b565b600181038414925050509193909250565b60008181526020819052604081206104ee90610a14565b60005b828110156106d757600060603086868581811061063657fe5b905060200281019061064891906112bd565b604051610656929190610e3f565b600060405180830381855af49150503d8060008114610691576040519150601f19603f3d011682016040523d82523d6000602084013e610696565b606091505b5091509150811580156106a65750835b156106cd576106b481610a1f565b60405162461bcd60e51b815260040161031b9190610f1c565b505060010161061d565b50505050565b6000828152602081905260409020600201546106fb9061020f6108dc565b61043f5760405162461bcd60e51b815260040161031b906110cc565b6107417fe132a6a517694e2454dc663f0d4fa738f94e7c1bd06c8950d14f9db8832494bd336104f4565b61075d5760405162461bcd60e51b815260040161031b90611027565b8161077a5760405162461bcd60e51b815260040161031b90611095565b73ffffffffffffffffffffffffffffffffffffffff81166107ad5760405162461bcd60e51b815260040161031b90611160565b600082815260016020818152604080842080549384018155808552828520840180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff88169081179091558552600290925290922054156108365760405162461bcd60e51b815260040161031b9061105e565b604080518082018252858152602080820184815273ffffffffffffffffffffffffffffffffffffffff8716600090815260029092529083902091518255516001909101555184907fb548fd55460ebbfd131d635d9804c0edf1598b692d074d441d89205f5f2f1f53906108ac9086908590610e70565b60405180910390a250505050565b60006104eb8373ffffffffffffffffffffffffffffffffffffffff8416610a7f565b3390565b60008281526020819052604090206108f890826108ba565b156103e9576109056108dc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260208190526040902061097b9082610ac9565b156103e9576109886108dc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006104eb8383610aeb565b60006104eb8373ffffffffffffffffffffffffffffffffffffffff8416610b30565b60006104ee82610b48565b6060604482511015610a65575060408051808201909152601d81527f5472616e73616374696f6e2072657665727465642073696c656e746c79000000602082015261038b565b600482019150818060200190518101906104ee9190610d86565b6000610a8b8383610b30565b610ac1575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556104ee565b5060006104ee565b60006104eb8373ffffffffffffffffffffffffffffffffffffffff8416610b4c565b81546000908210610b0e5760405162461bcd60e51b815260040161031b90610f6d565b826000018281548110610b1d57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b60008181526001830160205260408120548015610c265783547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8083019190810190600090879083908110610b9d57fe5b9060005260206000200154905080876000018481548110610bba57fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080610bea57fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506104ee565b60009150506104ee565b604080518082019091526000808252602082015290565b600060208284031215610c58578081fd5b813573ffffffffffffffffffffffffffffffffffffffff81168114610c7b578182fd5b9392505050565b600080600060408486031215610c96578182fd5b833567ffffffffffffffff80821115610cad578384fd5b818601915086601f830112610cc0578384fd5b813581811115610cce578485fd5b8760208083028501011115610ce1578485fd5b602092830195509350508401358015158114610cfb578182fd5b809150509250925092565b600060208284031215610d17578081fd5b5035919050565b60008060408385031215610d30578182fd5b82359150602083013573ffffffffffffffffffffffffffffffffffffffff81168114610d5a578182fd5b809150509250929050565b60008060408385031215610d77578182fd5b50508035926020909101359150565b600060208284031215610d97578081fd5b815167ffffffffffffffff80821115610dae578283fd5b818401915084601f830112610dc1578283fd5b815181811115610dcf578384fd5b60405160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401168201018181108482111715610e0d578586fd5b604052818152838201602001871015610e24578485fd5b610e35826020830160208701611327565b9695505050505050565b6000828483379101908152919050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b81811015610ee457835173ffffffffffffffffffffffffffffffffffffffff1683529284019291840191600101610eb2565b50909695505050505050565b901515815260200190565b90815260200190565b92835260208301919091521515604082015260600190565b6000602082528251806020840152610f3b816040850160208701611327565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60408201527f6473000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60408201527f2061646d696e20746f206772616e740000000000000000000000000000000000606082015260800190565b6020808252601d908201527f4d523a206d73672e73656e646572206973206e6f7420616c6c6f776564000000604082015260600190565b6020808252601e908201527f4d523a206475706c696361746520726567697374727920616464726573730000604082015260600190565b60208082526018908201527f4d523a206e616d652063616e6e6f7420626520656d7074790000000000000000604082015260600190565b60208082526030908201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60408201527f2061646d696e20746f207265766f6b6500000000000000000000000000000000606082015260800190565b6020808252601e908201527f4d523a206e6f206d6174636820666f756e6420666f7220616464726573730000604082015260600190565b6020808252601b908201527f4d523a20616464726573732063616e6e6f7420626520656d7074790000000000604082015260600190565b6020808252601b908201527f4d523a206e6f206d6174636820666f756e6420666f72206e616d650000000000604082015260600190565b60208082526027908201527f4d523a206e6f206d6174636820666f756e6420666f72206e616d6520616e642060408201527f76657273696f6e00000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4d523a206e6f2076657273696f6e20666f756e6420666f722061646472657373604082015260600190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201527f20726f6c657320666f722073656c660000000000000000000000000000000000606082015260800190565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126112f1578283fd5b83018035915067ffffffffffffffff82111561130b578283fd5b60200191503681900382131561132057600080fd5b9250929050565b60005b8381101561134257818101518382015260200161132a565b838111156106d7575050600091015256fea26469706673582212209fd55db835a10f3a71bae1b4749187a241ecc1ea7b846e6161ddfca2eb04cc1f64736f6c634300060c0033

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

00000000000000000000000091804c72076add9fab49b2c1e1a61a7503199599

-----Decoded View---------------
Arg [0] : admin (address): 0x91804c72076aDd9fAB49b2c1e1A61A7503199599

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000091804c72076add9fab49b2c1e1a61a7503199599


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.