{"constructor_args":"0x00000000000000000000000054b5aae5bda007db744ea762460a96f24bc1f4ad000000000000000000000000bc6d5c103a3f586e68bd475942a49d041b171c3e","is_partially_verified":true,"is_changed_bytecode":false,"abi":[{"inputs":[{"internalType":"address","name":"guardian","type":"address"},{"internalType":"address","name":"_ondoBridgeOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"GuardianCantBeZero","type":"error"},{"inputs":[],"name":"OndoBridgeOwnerCantBeZero","type":"error"},{"inputs":[],"name":"TokenAddressCantBeZero","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOndoBridgeOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOndoBridgeOwner","type":"address"}],"name":"OndoBridgeOwnerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"bytes32","name":"tokenId","type":"bytes32"}],"name":"TokenRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_FACTORY_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNPAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ondoBridgeOwner","outputs":[{"internalType":"contract IOndoOwner","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"register","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ondoBridgeOwner","type":"address"}],"name":"setOndoBridgeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}],"conflicting_implementations":null,"certified":false,"additional_sources":[{"file_path":"contracts/external/layerzero/IOndoOwner.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.16;\n\n/**\n * @title  IOndoOwner\n * @notice Interface for the Ondo Owner contract, which manages administrative access control\n *         and ownership of various components in the Ondo bridge system.\n *\n * @dev    This is an abridged version of IOndoOwner to be used with the BridgeRegistrar.\n */\ninterface IOndoOwner {\n    // ------------------- Messenger -------------------\n    /**\n     * @notice Registers a new token with the Messenger.\n     * @param tokenId The unique identifier for the token.\n     * @param tokenAddress The address of the token contract.\n     * @return oftAddress The address of the newly created OndoOFT contract.\n     */\n    function registerToken(bytes32 tokenId, address tokenAddress) external returns (address oftAddress);\n}\n"},{"file_path":"contracts/external/openzeppelin/contracts/access/AccessControl.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)\n\npragma solidity ^0.8.0;\n\nimport \"contracts/external/openzeppelin/contracts/access/IAccessControl.sol\";\nimport \"contracts/external/openzeppelin/contracts/utils/Context.sol\";\nimport \"contracts/external/openzeppelin/contracts/utils/Strings.sol\";\nimport \"contracts/external/openzeppelin/contracts/utils/ERC165.sol\";\n\n/**\n * @dev Contract module that allows children to implement role-based access\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\n * members except through off-chain means by accessing the contract event logs. Some\n * applications may benefit from on-chain enumerability, for those cases see\n * {AccessControlEnumerable}.\n *\n * Roles are referred to by their `bytes32` identifier. These should be exposed\n * in the external API and be unique. The best way to achieve this is by\n * using `public constant` hash digests:\n *\n * ```\n * bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\");\n * ```\n *\n * Roles can be used to represent a set of permissions. To restrict access to a\n * function call, use {hasRole}:\n *\n * ```\n * function foo() public {\n *     require(hasRole(MY_ROLE, msg.sender));\n *     ...\n * }\n * ```\n *\n * Roles can be granted and revoked dynamically via the {grantRole} and\n * {revokeRole} functions. Each role has an associated admin role, and only\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\n *\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\n * that only accounts with this role will be able to grant or revoke other\n * roles. More complex role relationships can be created by using\n * {_setRoleAdmin}.\n *\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\n * grant and revoke this role. Extra precautions should be taken to secure\n * accounts that have been granted it.\n */\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\n  struct RoleData {\n    mapping(address => bool) members;\n    bytes32 adminRole;\n  }\n\n  mapping(bytes32 => RoleData) private _roles;\n\n  bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\n\n  /**\n   * @dev Modifier that checks that an account has a specific role. Reverts\n   * with a standardized message including the required role.\n   *\n   * The format of the revert reason is given by the following regular expression:\n   *\n   *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\n   *\n   * _Available since v4.1._\n   */\n  modifier onlyRole(bytes32 role) {\n    _checkRole(role, _msgSender());\n    _;\n  }\n\n  /**\n   * @dev See {IERC165-supportsInterface}.\n   */\n  function supportsInterface(bytes4 interfaceId)\n    public\n    view\n    virtual\n    override\n    returns (bool)\n  {\n    return\n      interfaceId == type(IAccessControl).interfaceId ||\n      super.supportsInterface(interfaceId);\n  }\n\n  /**\n   * @dev Returns `true` if `account` has been granted `role`.\n   */\n  function hasRole(bytes32 role, address account)\n    public\n    view\n    virtual\n    override\n    returns (bool)\n  {\n    return _roles[role].members[account];\n  }\n\n  /**\n   * @dev Revert with a standard message if `account` is missing `role`.\n   *\n   * The format of the revert reason is given by the following regular expression:\n   *\n   *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\n   */\n  function _checkRole(bytes32 role, address account) internal view virtual {\n    if (!hasRole(role, account)) {\n      revert(\n        string(\n          abi.encodePacked(\n            \"AccessControl: account \",\n            Strings.toHexString(uint160(account), 20),\n            \" is missing role \",\n            Strings.toHexString(uint256(role), 32)\n          )\n        )\n      );\n    }\n  }\n\n  /**\n   * @dev Returns the admin role that controls `role`. See {grantRole} and\n   * {revokeRole}.\n   *\n   * To change a role's admin, use {_setRoleAdmin}.\n   */\n  function getRoleAdmin(bytes32 role)\n    public\n    view\n    virtual\n    override\n    returns (bytes32)\n  {\n    return _roles[role].adminRole;\n  }\n\n  /**\n   * @dev Grants `role` to `account`.\n   *\n   * If `account` had not been already granted `role`, emits a {RoleGranted}\n   * event.\n   *\n   * Requirements:\n   *\n   * - the caller must have ``role``'s admin role.\n   */\n  function grantRole(bytes32 role, address account)\n    public\n    virtual\n    override\n    onlyRole(getRoleAdmin(role))\n  {\n    _grantRole(role, account);\n  }\n\n  /**\n   * @dev Revokes `role` from `account`.\n   *\n   * If `account` had been granted `role`, emits a {RoleRevoked} event.\n   *\n   * Requirements:\n   *\n   * - the caller must have ``role``'s admin role.\n   */\n  function revokeRole(bytes32 role, address account)\n    public\n    virtual\n    override\n    onlyRole(getRoleAdmin(role))\n  {\n    _revokeRole(role, account);\n  }\n\n  /**\n   * @dev Revokes `role` from the calling account.\n   *\n   * Roles are often managed via {grantRole} and {revokeRole}: this function's\n   * purpose is to provide a mechanism for accounts to lose their privileges\n   * if they are compromised (such as when a trusted device is misplaced).\n   *\n   * If the calling account had been revoked `role`, emits a {RoleRevoked}\n   * event.\n   *\n   * Requirements:\n   *\n   * - the caller must be `account`.\n   */\n  function renounceRole(bytes32 role, address account) public virtual override {\n    require(\n      account == _msgSender(),\n      \"AccessControl: can only renounce roles for self\"\n    );\n\n    _revokeRole(role, account);\n  }\n\n  /**\n   * @dev Grants `role` to `account`.\n   *\n   * If `account` had not been already granted `role`, emits a {RoleGranted}\n   * event. Note that unlike {grantRole}, this function doesn't perform any\n   * checks on the calling account.\n   *\n   * [WARNING]\n   * ====\n   * This function should only be called from the constructor when setting\n   * up the initial roles for the system.\n   *\n   * Using this function in any other way is effectively circumventing the admin\n   * system imposed by {AccessControl}.\n   * ====\n   *\n   * NOTE: This function is deprecated in favor of {_grantRole}.\n   */\n  function _setupRole(bytes32 role, address account) internal virtual {\n    _grantRole(role, account);\n  }\n\n  /**\n   * @dev Sets `adminRole` as ``role``'s admin role.\n   *\n   * Emits a {RoleAdminChanged} event.\n   */\n  function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\n    bytes32 previousAdminRole = getRoleAdmin(role);\n    _roles[role].adminRole = adminRole;\n    emit RoleAdminChanged(role, previousAdminRole, adminRole);\n  }\n\n  /**\n   * @dev Grants `role` to `account`.\n   *\n   * Internal function without access restriction.\n   */\n  function _grantRole(bytes32 role, address account) internal virtual {\n    if (!hasRole(role, account)) {\n      _roles[role].members[account] = true;\n      emit RoleGranted(role, account, _msgSender());\n    }\n  }\n\n  /**\n   * @dev Revokes `role` from `account`.\n   *\n   * Internal function without access restriction.\n   */\n  function _revokeRole(bytes32 role, address account) internal virtual {\n    if (hasRole(role, account)) {\n      _roles[role].members[account] = false;\n      emit RoleRevoked(role, account, _msgSender());\n    }\n  }\n}\n"},{"file_path":"contracts/external/openzeppelin/contracts/utils/ERC165.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.0;\n\nimport \"contracts/external/openzeppelin/contracts/utils/IERC165.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n *\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\n */\nabstract contract ERC165 is IERC165 {\n  /**\n   * @dev See {IERC165-supportsInterface}.\n   */\n  function supportsInterface(bytes4 interfaceId)\n    public\n    view\n    virtual\n    override\n    returns (bool)\n  {\n    return interfaceId == type(IERC165).interfaceId;\n  }\n}\n"},{"file_path":"contracts/external/openzeppelin/contracts/utils/EnumerableSet.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Library for managing\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\n * types.\n *\n * Sets have the following properties:\n *\n * - Elements are added, removed, and checked for existence in constant time\n * (O(1)).\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\n *\n * ```\n * contract Example {\n *     // Add the library methods\n *     using EnumerableSet for EnumerableSet.AddressSet;\n *\n *     // Declare a set state variable\n *     EnumerableSet.AddressSet private mySet;\n * }\n * ```\n *\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\n * and `uint256` (`UintSet`) are supported.\n */\nlibrary EnumerableSet {\n  // To implement this library for multiple types with as little code\n  // repetition as possible, we write it in terms of a generic Set type with\n  // bytes32 values.\n  // The Set implementation uses private functions, and user-facing\n  // implementations (such as AddressSet) are just wrappers around the\n  // underlying Set.\n  // This means that we can only create new EnumerableSets for types that fit\n  // in bytes32.\n\n  struct Set {\n    // Storage of set values\n    bytes32[] _values;\n    // Position of the value in the `values` array, plus 1 because index 0\n    // means a value is not in the set.\n    mapping(bytes32 => uint256) _indexes;\n  }\n\n  /**\n   * @dev Add a value to a set. O(1).\n   *\n   * Returns true if the value was added to the set, that is if it was not\n   * already present.\n   */\n  function _add(Set storage set, bytes32 value) private returns (bool) {\n    if (!_contains(set, value)) {\n      set._values.push(value);\n      // The value is stored at length-1, but we add 1 to all indexes\n      // and use 0 as a sentinel value\n      set._indexes[value] = set._values.length;\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  /**\n   * @dev Removes a value from a set. O(1).\n   *\n   * Returns true if the value was removed from the set, that is if it was\n   * present.\n   */\n  function _remove(Set storage set, bytes32 value) private returns (bool) {\n    // We read and store the value's index to prevent multiple reads from the same storage slot\n    uint256 valueIndex = set._indexes[value];\n\n    if (valueIndex != 0) {\n      // Equivalent to contains(set, value)\n      // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\n      // the array, and then remove the last element (sometimes called as 'swap and pop').\n      // This modifies the order of the array, as noted in {at}.\n\n      uint256 toDeleteIndex = valueIndex - 1;\n      uint256 lastIndex = set._values.length - 1;\n\n      if (lastIndex != toDeleteIndex) {\n        bytes32 lastvalue = set._values[lastIndex];\n\n        // Move the last value to the index where the value to delete is\n        set._values[toDeleteIndex] = lastvalue;\n        // Update the index for the moved value\n        set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex\n      }\n\n      // Delete the slot where the moved value was stored\n      set._values.pop();\n\n      // Delete the index for the deleted slot\n      delete set._indexes[value];\n\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  /**\n   * @dev Returns true if the value is in the set. O(1).\n   */\n  function _contains(Set storage set, bytes32 value)\n    private\n    view\n    returns (bool)\n  {\n    return set._indexes[value] != 0;\n  }\n\n  /**\n   * @dev Returns the number of values on the set. O(1).\n   */\n  function _length(Set storage set) private view returns (uint256) {\n    return set._values.length;\n  }\n\n  /**\n   * @dev Returns the value stored at position `index` in the set. O(1).\n   *\n   * Note that there are no guarantees on the ordering of values inside the\n   * array, and it may change when more values are added or removed.\n   *\n   * Requirements:\n   *\n   * - `index` must be strictly less than {length}.\n   */\n  function _at(Set storage set, uint256 index) private view returns (bytes32) {\n    return set._values[index];\n  }\n\n  /**\n   * @dev Return the entire set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function _values(Set storage set) private view returns (bytes32[] memory) {\n    return set._values;\n  }\n\n  // Bytes32Set\n\n  struct Bytes32Set {\n    Set _inner;\n  }\n\n  /**\n   * @dev Add a value to a set. O(1).\n   *\n   * Returns true if the value was added to the set, that is if it was not\n   * already present.\n   */\n  function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\n    return _add(set._inner, value);\n  }\n\n  /**\n   * @dev Removes a value from a set. O(1).\n   *\n   * Returns true if the value was removed from the set, that is if it was\n   * present.\n   */\n  function remove(Bytes32Set storage set, bytes32 value)\n    internal\n    returns (bool)\n  {\n    return _remove(set._inner, value);\n  }\n\n  /**\n   * @dev Returns true if the value is in the set. O(1).\n   */\n  function contains(Bytes32Set storage set, bytes32 value)\n    internal\n    view\n    returns (bool)\n  {\n    return _contains(set._inner, value);\n  }\n\n  /**\n   * @dev Returns the number of values in the set. O(1).\n   */\n  function length(Bytes32Set storage set) internal view returns (uint256) {\n    return _length(set._inner);\n  }\n\n  /**\n   * @dev Returns the value stored at position `index` in the set. O(1).\n   *\n   * Note that there are no guarantees on the ordering of values inside the\n   * array, and it may change when more values are added or removed.\n   *\n   * Requirements:\n   *\n   * - `index` must be strictly less than {length}.\n   */\n  function at(Bytes32Set storage set, uint256 index)\n    internal\n    view\n    returns (bytes32)\n  {\n    return _at(set._inner, index);\n  }\n\n  /**\n   * @dev Return the entire set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(Bytes32Set storage set)\n    internal\n    view\n    returns (bytes32[] memory)\n  {\n    return _values(set._inner);\n  }\n\n  // AddressSet\n\n  struct AddressSet {\n    Set _inner;\n  }\n\n  /**\n   * @dev Add a value to a set. O(1).\n   *\n   * Returns true if the value was added to the set, that is if it was not\n   * already present.\n   */\n  function add(AddressSet storage set, address value) internal returns (bool) {\n    return _add(set._inner, bytes32(uint256(uint160(value))));\n  }\n\n  /**\n   * @dev Removes a value from a set. O(1).\n   *\n   * Returns true if the value was removed from the set, that is if it was\n   * present.\n   */\n  function remove(AddressSet storage set, address value)\n    internal\n    returns (bool)\n  {\n    return _remove(set._inner, bytes32(uint256(uint160(value))));\n  }\n\n  /**\n   * @dev Returns true if the value is in the set. O(1).\n   */\n  function contains(AddressSet storage set, address value)\n    internal\n    view\n    returns (bool)\n  {\n    return _contains(set._inner, bytes32(uint256(uint160(value))));\n  }\n\n  /**\n   * @dev Returns the number of values in the set. O(1).\n   */\n  function length(AddressSet storage set) internal view returns (uint256) {\n    return _length(set._inner);\n  }\n\n  /**\n   * @dev Returns the value stored at position `index` in the set. O(1).\n   *\n   * Note that there are no guarantees on the ordering of values inside the\n   * array, and it may change when more values are added or removed.\n   *\n   * Requirements:\n   *\n   * - `index` must be strictly less than {length}.\n   */\n  function at(AddressSet storage set, uint256 index)\n    internal\n    view\n    returns (address)\n  {\n    return address(uint160(uint256(_at(set._inner, index))));\n  }\n\n  /**\n   * @dev Return the entire set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(AddressSet storage set)\n    internal\n    view\n    returns (address[] memory)\n  {\n    bytes32[] memory store = _values(set._inner);\n    address[] memory result;\n\n    assembly {\n      result := store\n    }\n\n    return result;\n  }\n\n  // UintSet\n\n  struct UintSet {\n    Set _inner;\n  }\n\n  /**\n   * @dev Add a value to a set. O(1).\n   *\n   * Returns true if the value was added to the set, that is if it was not\n   * already present.\n   */\n  function add(UintSet storage set, uint256 value) internal returns (bool) {\n    return _add(set._inner, bytes32(value));\n  }\n\n  /**\n   * @dev Removes a value from a set. O(1).\n   *\n   * Returns true if the value was removed from the set, that is if it was\n   * present.\n   */\n  function remove(UintSet storage set, uint256 value) internal returns (bool) {\n    return _remove(set._inner, bytes32(value));\n  }\n\n  /**\n   * @dev Returns true if the value is in the set. O(1).\n   */\n  function contains(UintSet storage set, uint256 value)\n    internal\n    view\n    returns (bool)\n  {\n    return _contains(set._inner, bytes32(value));\n  }\n\n  /**\n   * @dev Returns the number of values on the set. O(1).\n   */\n  function length(UintSet storage set) internal view returns (uint256) {\n    return _length(set._inner);\n  }\n\n  /**\n   * @dev Returns the value stored at position `index` in the set. O(1).\n   *\n   * Note that there are no guarantees on the ordering of values inside the\n   * array, and it may change when more values are added or removed.\n   *\n   * Requirements:\n   *\n   * - `index` must be strictly less than {length}.\n   */\n  function at(UintSet storage set, uint256 index)\n    internal\n    view\n    returns (uint256)\n  {\n    return uint256(_at(set._inner, index));\n  }\n\n  /**\n   * @dev Return the entire set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(UintSet storage set)\n    internal\n    view\n    returns (uint256[] memory)\n  {\n    bytes32[] memory store = _values(set._inner);\n    uint256[] memory result;\n\n    assembly {\n      result := store\n    }\n\n    return result;\n  }\n}\n"},{"file_path":"contracts/external/openzeppelin/contracts/utils/IERC165.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n  /**\n   * @dev Returns true if this contract implements the interface defined by\n   * `interfaceId`. See the corresponding\n   * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n   * to learn more about how these ids are created.\n   *\n   * This function call must use less than 30 000 gas.\n   */\n  function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},{"file_path":"contracts/external/openzeppelin/contracts/utils/Context.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n  function _msgSender() internal view virtual returns (address) {\n    return msg.sender;\n  }\n\n  function _msgData() internal view virtual returns (bytes calldata) {\n    return msg.data;\n  }\n}\n"},{"file_path":"contracts/external/openzeppelin/contracts/access/AccessControlEnumerable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"contracts/external/openzeppelin/contracts/access/IAccessControlEnumerable.sol\";\nimport \"contracts/external/openzeppelin/contracts/access/AccessControl.sol\";\nimport \"contracts/external/openzeppelin/contracts/utils/EnumerableSet.sol\";\n\n/**\n * @dev Extension of {AccessControl} that allows enumerating the members of each role.\n */\nabstract contract AccessControlEnumerable is\n  IAccessControlEnumerable,\n  AccessControl\n{\n  using EnumerableSet for EnumerableSet.AddressSet;\n\n  mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;\n\n  /**\n   * @dev See {IERC165-supportsInterface}.\n   */\n  function supportsInterface(bytes4 interfaceId)\n    public\n    view\n    virtual\n    override\n    returns (bool)\n  {\n    return\n      interfaceId == type(IAccessControlEnumerable).interfaceId ||\n      super.supportsInterface(interfaceId);\n  }\n\n  /**\n   * @dev Returns one of the accounts that have `role`. `index` must be a\n   * value between 0 and {getRoleMemberCount}, non-inclusive.\n   *\n   * Role bearers are not sorted in any particular way, and their ordering may\n   * change at any point.\n   *\n   * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\n   * you perform all queries on the same block. See the following\n   * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\n   * for more information.\n   */\n  function getRoleMember(bytes32 role, uint256 index)\n    public\n    view\n    virtual\n    override\n    returns (address)\n  {\n    return _roleMembers[role].at(index);\n  }\n\n  /**\n   * @dev Returns the number of accounts that have `role`. Can be used\n   * together with {getRoleMember} to enumerate all bearers of a role.\n   */\n  function getRoleMemberCount(bytes32 role)\n    public\n    view\n    virtual\n    override\n    returns (uint256)\n  {\n    return _roleMembers[role].length();\n  }\n\n  /**\n   * @dev Overload {_grantRole} to track enumerable memberships\n   */\n  function _grantRole(bytes32 role, address account) internal virtual override {\n    super._grantRole(role, account);\n    _roleMembers[role].add(account);\n  }\n\n  /**\n   * @dev Overload {_revokeRole} to track enumerable memberships\n   */\n  function _revokeRole(bytes32 role, address account)\n    internal\n    virtual\n    override\n  {\n    super._revokeRole(role, account);\n    _roleMembers[role].remove(account);\n  }\n}\n"},{"file_path":"contracts/external/openzeppelin/contracts/access/IAccessControl.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev External interface of AccessControl declared to support ERC165 detection.\n */\ninterface IAccessControl {\n  /**\n   * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\n   *\n   * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\n   * {RoleAdminChanged} not being emitted signaling this.\n   *\n   * _Available since v3.1._\n   */\n  event RoleAdminChanged(\n    bytes32 indexed role,\n    bytes32 indexed previousAdminRole,\n    bytes32 indexed newAdminRole\n  );\n\n  /**\n   * @dev Emitted when `account` is granted `role`.\n   *\n   * `sender` is the account that originated the contract call, an admin role\n   * bearer except when using {AccessControl-_setupRole}.\n   */\n  event RoleGranted(\n    bytes32 indexed role,\n    address indexed account,\n    address indexed sender\n  );\n\n  /**\n   * @dev Emitted when `account` is revoked `role`.\n   *\n   * `sender` is the account that originated the contract call:\n   *   - if using `revokeRole`, it is the admin role bearer\n   *   - if using `renounceRole`, it is the role bearer (i.e. `account`)\n   */\n  event RoleRevoked(\n    bytes32 indexed role,\n    address indexed account,\n    address indexed sender\n  );\n\n  /**\n   * @dev Returns `true` if `account` has been granted `role`.\n   */\n  function hasRole(bytes32 role, address account) external view returns (bool);\n\n  /**\n   * @dev Returns the admin role that controls `role`. See {grantRole} and\n   * {revokeRole}.\n   *\n   * To change a role's admin, use {AccessControl-_setRoleAdmin}.\n   */\n  function getRoleAdmin(bytes32 role) external view returns (bytes32);\n\n  /**\n   * @dev Grants `role` to `account`.\n   *\n   * If `account` had not been already granted `role`, emits a {RoleGranted}\n   * event.\n   *\n   * Requirements:\n   *\n   * - the caller must have ``role``'s admin role.\n   */\n  function grantRole(bytes32 role, address account) external;\n\n  /**\n   * @dev Revokes `role` from `account`.\n   *\n   * If `account` had been granted `role`, emits a {RoleRevoked} event.\n   *\n   * Requirements:\n   *\n   * - the caller must have ``role``'s admin role.\n   */\n  function revokeRole(bytes32 role, address account) external;\n\n  /**\n   * @dev Revokes `role` from the calling account.\n   *\n   * Roles are often managed via {grantRole} and {revokeRole}: this function's\n   * purpose is to provide a mechanism for accounts to lose their privileges\n   * if they are compromised (such as when a trusted device is misplaced).\n   *\n   * If the calling account had been granted `role`, emits a {RoleRevoked}\n   * event.\n   *\n   * Requirements:\n   *\n   * - the caller must be `account`.\n   */\n  function renounceRole(bytes32 role, address account) external;\n}\n"},{"file_path":"contracts/external/openzeppelin/contracts/access/IAccessControlEnumerable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"contracts/external/openzeppelin/contracts/access/IAccessControl.sol\";\n\n/**\n * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.\n */\ninterface IAccessControlEnumerable is IAccessControl {\n  /**\n   * @dev Returns one of the accounts that have `role`. `index` must be a\n   * value between 0 and {getRoleMemberCount}, non-inclusive.\n   *\n   * Role bearers are not sorted in any particular way, and their ordering may\n   * change at any point.\n   *\n   * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\n   * you perform all queries on the same block. See the following\n   * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\n   * for more information.\n   */\n  function getRoleMember(bytes32 role, uint256 index)\n    external\n    view\n    returns (address);\n\n  /**\n   * @dev Returns the number of accounts that have `role`. Can be used\n   * together with {getRoleMember} to enumerate all bearers of a role.\n   */\n  function getRoleMemberCount(bytes32 role) external view returns (uint256);\n}\n"},{"file_path":"contracts/external/openzeppelin/contracts/security/Pausable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"contracts/external/openzeppelin/contracts/utils/Context.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\nabstract contract Pausable is Context {\n  /**\n   * @dev Emitted when the pause is triggered by `account`.\n   */\n  event Paused(address account);\n\n  /**\n   * @dev Emitted when the pause is lifted by `account`.\n   */\n  event Unpaused(address account);\n\n  bool private _paused;\n\n  /**\n   * @dev Initializes the contract in unpaused state.\n   */\n  constructor() {\n    _paused = false;\n  }\n\n  /**\n   * @dev Returns true if the contract is paused, and false otherwise.\n   */\n  function paused() public view virtual returns (bool) {\n    return _paused;\n  }\n\n  /**\n   * @dev Modifier to make a function callable only when the contract is not paused.\n   *\n   * Requirements:\n   *\n   * - The contract must not be paused.\n   */\n  modifier whenNotPaused() {\n    require(!paused(), \"Pausable: paused\");\n    _;\n  }\n\n  /**\n   * @dev Modifier to make a function callable only when the contract is paused.\n   *\n   * Requirements:\n   *\n   * - The contract must be paused.\n   */\n  modifier whenPaused() {\n    require(paused(), \"Pausable: not paused\");\n    _;\n  }\n\n  /**\n   * @dev Triggers stopped state.\n   *\n   * Requirements:\n   *\n   * - The contract must not be paused.\n   */\n  function _pause() internal virtual whenNotPaused {\n    _paused = true;\n    emit Paused(_msgSender());\n  }\n\n  /**\n   * @dev Returns to normal state.\n   *\n   * Requirements:\n   *\n   * - The contract must be paused.\n   */\n  function _unpause() internal virtual whenPaused {\n    _paused = false;\n    emit Unpaused(_msgSender());\n  }\n}\n"},{"file_path":"contracts/external/openzeppelin/contracts/token/IERC20.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n  /**\n   * @dev Returns the amount of tokens in existence.\n   */\n  function totalSupply() external view returns (uint256);\n\n  /**\n   * @dev Returns the amount of tokens owned by `account`.\n   */\n  function balanceOf(address account) external view returns (uint256);\n\n  /**\n   * @dev Moves `amount` tokens from the caller's account to `to`.\n   *\n   * Returns a boolean value indicating whether the operation succeeded.\n   *\n   * Emits a {Transfer} event.\n   */\n  function transfer(address to, uint256 amount) external returns (bool);\n\n  /**\n   * @dev Returns the remaining number of tokens that `spender` will be\n   * allowed to spend on behalf of `owner` through {transferFrom}. This is\n   * zero by default.\n   *\n   * This value changes when {approve} or {transferFrom} are called.\n   */\n  function allowance(address owner, address spender)\n    external\n    view\n    returns (uint256);\n\n  /**\n   * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n   *\n   * Returns a boolean value indicating whether the operation succeeded.\n   *\n   * IMPORTANT: Beware that changing an allowance with this method brings the risk\n   * that someone may use both the old and the new allowance by unfortunate\n   * transaction ordering. One possible solution to mitigate this race\n   * condition is to first reduce the spender's allowance to 0 and set the\n   * desired value afterwards:\n   * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n   *\n   * Emits an {Approval} event.\n   */\n  function approve(address spender, uint256 amount) external returns (bool);\n\n  /**\n   * @dev Moves `amount` tokens from `from` to `to` using the\n   * allowance mechanism. `amount` is then deducted from the caller's\n   * allowance.\n   *\n   * Returns a boolean value indicating whether the operation succeeded.\n   *\n   * Emits a {Transfer} event.\n   */\n  function transferFrom(\n    address from,\n    address to,\n    uint256 amount\n  ) external returns (bool);\n\n  /**\n   * @dev Emitted when `value` tokens are moved from one account (`from`) to\n   * another (`to`).\n   *\n   * Note that `value` may be zero.\n   */\n  event Transfer(address indexed from, address indexed to, uint256 value);\n\n  /**\n   * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n   * a call to {approve}. `value` is the new allowance.\n   */\n  event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n"},{"file_path":"contracts/external/openzeppelin/contracts/token/IERC20Metadata.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"contracts/external/openzeppelin/contracts/token/IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n *\n * _Available since v4.1._\n */\ninterface IERC20Metadata is IERC20 {\n  /**\n   * @dev Returns the name of the token.\n   */\n  function name() external view returns (string memory);\n\n  /**\n   * @dev Returns the symbol of the token.\n   */\n  function symbol() external view returns (string memory);\n\n  /**\n   * @dev Returns the decimals places of the token.\n   */\n  function decimals() external view returns (uint8);\n}\n"},{"file_path":"contracts/external/openzeppelin/contracts/utils/Strings.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n  bytes16 private constant _HEX_SYMBOLS = \"0123456789abcdef\";\n\n  /**\n   * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n   */\n  function toString(uint256 value) internal pure returns (string memory) {\n    // Inspired by OraclizeAPI's implementation - MIT licence\n    // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol\n\n    if (value == 0) {\n      return \"0\";\n    }\n    uint256 temp = value;\n    uint256 digits;\n    while (temp != 0) {\n      digits++;\n      temp /= 10;\n    }\n    bytes memory buffer = new bytes(digits);\n    while (value != 0) {\n      digits -= 1;\n      buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));\n      value /= 10;\n    }\n    return string(buffer);\n  }\n\n  /**\n   * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n   */\n  function toHexString(uint256 value) internal pure returns (string memory) {\n    if (value == 0) {\n      return \"0x00\";\n    }\n    uint256 temp = value;\n    uint256 length = 0;\n    while (temp != 0) {\n      length++;\n      temp >>= 8;\n    }\n    return toHexString(value, length);\n  }\n\n  /**\n   * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n   */\n  function toHexString(uint256 value, uint256 length)\n    internal\n    pure\n    returns (string memory)\n  {\n    bytes memory buffer = new bytes(2 * length + 2);\n    buffer[0] = \"0\";\n    buffer[1] = \"x\";\n    for (uint256 i = 2 * length + 1; i > 1; --i) {\n      buffer[i] = _HEX_SYMBOLS[value & 0xf];\n      value >>= 4;\n    }\n    require(value == 0, \"Strings: hex length insufficient\");\n    return string(buffer);\n  }\n}\n"},{"file_path":"contracts/globalMarkets/tokenFactory/registrars/IRegistrar.sol","source_code":"// SPDX-License-Identifier: BUSL-1.1\n/*\n      ▄▄█████████▄\n   ╓██▀└ ,╓▄▄▄, '▀██▄\n  ██▀ ▄██▀▀╙╙▀▀██▄ └██µ           ,,       ,,      ,     ,,,            ,,,\n ██ ,██¬ ▄████▄  ▀█▄ ╙█▄      ▄███▀▀███▄   ███▄    ██  ███▀▀▀███▄    ▄███▀▀███,\n██  ██ ╒█▀'   ╙█▌ ╙█▌ ██     ▐██      ███  █████,  ██  ██▌    └██▌  ██▌     └██▌\n██ ▐█▌ ██      ╟█  █▌ ╟█     ██▌      ▐██  ██ └███ ██  ██▌     ╟██ j██       ╟██\n╟█  ██ ╙██    ▄█▀ ▐█▌ ██     ╙██      ██▌  ██   ╙████  ██▌    ▄██▀  ██▌     ,██▀\n ██ \"██, ╙▀▀███████████⌐      ╙████████▀   ██     ╙██  ███████▀▀     ╙███████▀`\n  ██▄ ╙▀██▄▄▄▄▄,,,                ¬─                                    '─¬\n   ╙▀██▄ '╙╙╙▀▀▀▀▀▀▀▀\n      ╙▀▀██████R⌐\n */\npragma solidity 0.8.16;\n\n/**\n * @title  IRegistrar\n * @author Ondo Finance\n * @notice Interface for registrar contracts that configure tokens on deployment\n */\ninterface IRegistrar {\n  /**\n   * @notice Register a token with the registrar\n   * @param  token The address of the token to register\n   */\n  function register(address token) external;\n}\n"}],"is_verified_via_sourcify":false,"can_be_visualized_via_sol2uml":true,"evm_version":"london","language":"solidity","is_verified_via_eth_bytecode_db":false,"is_fully_verified":false,"license_type":"none","is_blueprint":false,"name":"BridgeRegistrar","creation_bytecode":"0x60806040523480156200001157600080fd5b506040516200147c3803806200147c83398101604081905262000034916200028e565b6002805460ff191690556001600160a01b038216620000665760405163813f66a960e01b815260040160405180910390fd5b6001600160a01b0381166200008e5760405163e46fb0eb60e01b815260040160405180910390fd5b60028054610100600160a81b0319166101006001600160a01b03841602179055620000bb6000836200011b565b620000e77f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a836200011b565b620001137f427da25fe773164f88948d3e215c94b6554e2ed5e5f203a821c9f2f6131cf75a836200011b565b5050620002c6565b6200013282826200015e60201b620008091760201c565b6000828152600160209081526040909120620001599183906200088d620001ff821b17901c565b505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620001fb576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001ba3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600062000216836001600160a01b0384166200021f565b90505b92915050565b6000818152600183016020526040812054620002685750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000219565b50600062000219565b80516001600160a01b03811681146200028957600080fd5b919050565b60008060408385031215620002a257600080fd5b620002ad8362000271565b9150620002bd6020840162000271565b90509250929050565b6111a680620002d66000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80638456cb59116100a2578063ca15c87311610071578063ca15c8731461024f578063d547741f14610262578063e63ab1e914610275578063e68ce34b1461029c578063fb1bb9de146102af57600080fd5b80638456cb59146102195780639010d07c1461022157806391d1485414610234578063a217fddf1461024757600080fd5b806336568abe116100e957806336568abe146101b95780633f4ba83a146101cc5780634420e486146101d45780635c975abb146101e75780635e46d9b2146101f257600080fd5b806301ffc9a71461011b578063248a9ca31461014357806329e1f8a7146101745780632f2ff15d146101a4575b600080fd5b61012e610129366004610e25565b6102d6565b60405190151581526020015b60405180910390f35b610166610151366004610e4f565b60009081526020819052604090206001015490565b60405190815260200161013a565b60025461018c9061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161013a565b6101b76101b2366004610e7d565b610301565b005b6101b76101c7366004610e7d565b61032c565b6101b76103af565b6101b76101e2366004610ead565b6103e5565b60025460ff1661012e565b6101667f03ddcdb3d1fe1a4e14dc10db6bdb472b365c57f06455b8de89b9193741e2d92481565b6101b76106b6565b61018c61022f366004610eca565b6106e9565b61012e610242366004610e7d565b610708565b610166600081565b61016661025d366004610e4f565b610731565b6101b7610270366004610e7d565b610748565b6101667f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6101b76102aa366004610ead565b61076e565b6101667f427da25fe773164f88948d3e215c94b6554e2ed5e5f203a821c9f2f6131cf75a81565b60006001600160e01b03198216635a05180f60e01b14806102fb57506102fb826108a2565b92915050565b60008281526020819052604090206001015461031d81336108d7565b610327838361093b565b505050565b6001600160a01b03811633146103a15760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6103ab828261095d565b5050565b7f427da25fe773164f88948d3e215c94b6554e2ed5e5f203a821c9f2f6131cf75a6103da81336108d7565b6103e261097f565b50565b7f03ddcdb3d1fe1a4e14dc10db6bdb472b365c57f06455b8de89b9193741e2d92461041081336108d7565b60025460ff16156104565760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610398565b6001600160a01b03821661047d5760405163885ce5f160e01b815260040160405180910390fd5b6000826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa1580156104bd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104e59190810190610f26565b836001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa158015610523573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261054b9190810190610f26565b60405160200161055c929190610fff565b60408051808303601f19018152908290528051602090910120600254632ded0fb560e01b8352600483018290526001600160a01b03868116602485015291935060009261010090910490911690632ded0fb5906044016020604051808303816000875af11580156105d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f5919061102d565b604051632f2ff15d60e01b81527f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a660048201526001600160a01b03808316602483015291925090851690632f2ff15d90604401600060405180830381600087803b15801561066257600080fd5b505af1158015610676573d6000803e3d6000fd5b50506040518492506001600160a01b03871691507f2e76a69a258a7062ba5a2deff3c47ef039d40709c5da442efc7344e5fe98c1b790600090a350505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6106e181336108d7565b6103e2610a12565b60008281526001602052604081206107019083610a8d565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60008181526001602052604081206102fb90610a99565b60008281526020819052604090206001015461076481336108d7565b610327838361095d565b600061077a81336108d7565b6001600160a01b0382166107a15760405163e46fb0eb60e01b815260040160405180910390fd5b6002546040516001600160a01b0380851692610100900416907f89d131e66cbb83f2c4b6528c3d010d2e1c8e74329b84238c28dcb89863338a3690600090a350600280546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6108138282610708565b6103ab576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556108493390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610701836001600160a01b038416610aa3565b60006001600160e01b03198216637965db0b60e01b14806102fb57506301ffc9a760e01b6001600160e01b03198316146102fb565b6108e18282610708565b6103ab576108f9816001600160a01b03166014610af2565b610904836020610af2565b60405160200161091592919061104a565b60408051601f198184030181529082905262461bcd60e51b8252610398916004016110bf565b6109458282610809565b6000828152600160205260409020610327908261088d565b6109678282610c8e565b60008281526001602052604090206103279082610cf3565b60025460ff166109c85760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610398565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60025460ff1615610a585760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610398565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109f53390565b60006107018383610d08565b60006102fb825490565b6000818152600183016020526040812054610aea575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556102fb565b5060006102fb565b60606000610b018360026110e8565b610b0c906002611107565b67ffffffffffffffff811115610b2457610b24610eec565b6040519080825280601f01601f191660200182016040528015610b4e576020820181803683370190505b509050600360fc1b81600081518110610b6957610b6961111a565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610b9857610b9861111a565b60200101906001600160f81b031916908160001a9053506000610bbc8460026110e8565b610bc7906001611107565b90505b6001811115610c3f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610bfb57610bfb61111a565b1a60f81b828281518110610c1157610c1161111a565b60200101906001600160f81b031916908160001a90535060049490941c93610c3881611130565b9050610bca565b5083156107015760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610398565b610c988282610708565b156103ab576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610701836001600160a01b038416610d32565b6000826000018281548110610d1f57610d1f61111a565b9060005260206000200154905092915050565b60008181526001830160205260408120548015610e1b576000610d56600183611147565b8554909150600090610d6a90600190611147565b9050818114610dcf576000866000018281548110610d8a57610d8a61111a565b9060005260206000200154905080876000018481548110610dad57610dad61111a565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080610de057610de061115a565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506102fb565b60009150506102fb565b600060208284031215610e3757600080fd5b81356001600160e01b03198116811461070157600080fd5b600060208284031215610e6157600080fd5b5035919050565b6001600160a01b03811681146103e257600080fd5b60008060408385031215610e9057600080fd5b823591506020830135610ea281610e68565b809150509250929050565b600060208284031215610ebf57600080fd5b813561070181610e68565b60008060408385031215610edd57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b60005b83811015610f1d578181015183820152602001610f05565b50506000910152565b600060208284031215610f3857600080fd5b815167ffffffffffffffff80821115610f5057600080fd5b818401915084601f830112610f6457600080fd5b815181811115610f7657610f76610eec565b604051601f8201601f19908116603f01168101908382118183101715610f9e57610f9e610eec565b81604052828152876020848701011115610fb757600080fd5b610fc8836020830160208801610f02565b979650505050505050565b60008151808452610feb816020860160208601610f02565b601f01601f19169290920160200192915050565b6040815260006110126040830185610fd3565b82810360208401526110248185610fd3565b95945050505050565b60006020828403121561103f57600080fd5b815161070181610e68565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611082816017850160208801610f02565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516110b3816028840160208801610f02565b01602801949350505050565b6020815260006107016020830184610fd3565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611102576111026110d2565b500290565b808201808211156102fb576102fb6110d2565b634e487b7160e01b600052603260045260246000fd5b60008161113f5761113f6110d2565b506000190190565b818103818111156102fb576102fb6110d2565b634e487b7160e01b600052603160045260246000fdfea264697066735822122019929be82b1a60438cf490a7e056724e1fa258331496f46701d4d6178b7ebfa564736f6c6343000810003300000000000000000000000054b5aae5bda007db744ea762460a96f24bc1f4ad000000000000000000000000bc6d5c103a3f586e68bd475942a49d041b171c3e","external_libraries":[],"proxy_type":null,"implementations":[],"verified_at":"2026-03-10T00:04:08.741005Z","is_verified_via_verifier_alliance":false,"compiler_version":"v0.8.16+commit.07a7930e","decoded_constructor_args":[["0x54b5Aae5bdA007DB744Ea762460A96F24BC1F4ad",{"internalType":"address","name":"guardian","type":"address"}],["0xbC6D5C103a3f586e68bd475942a49d041b171C3e",{"internalType":"address","name":"_ondoBridgeOwner","type":"address"}]],"sourcify_repo_url":null,"optimization_runs":200,"compiler_settings":{"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":false},"optimizer":{"enabled":true,"runs":200},"outputSelection":{"*":{"":["*"],"*":["*"]}},"remappings":["eth-gas-reporter/=node_modules/eth-gas-reporter/","forge-tests/=forge-tests/","lib/=lib/","@aragon/=node_modules/@aragon/","@ensdomains/=node_modules/@ensdomains/","@openzeppelin/=node_modules/@openzeppelin/","@uniswap/=node_modules/@uniswap/","forge-std/=lib/forge-std/src/","hardhat-deploy/=node_modules/hardhat-deploy/","hardhat/=node_modules/hardhat/","math/=node_modules/@aragon/os/contracts/lib/math/","misc/=node_modules/@aragon/os/contracts/lib/misc/","solidity-bytes-utils/=node_modules/solidity-bytes-utils/","standards/=node_modules/@aragon/os/contracts/lib/standards/","token/=node_modules/@aragon/os/contracts/lib/token/","truffle/=node_modules/truffle/"],"viaIR":false},"is_verified":true,"verified_twin_address_hash":null,"optimization_enabled":true,"deployed_bytecode":"0x608060405234801561001057600080fd5b50600436106101165760003560e01c80638456cb59116100a2578063ca15c87311610071578063ca15c8731461024f578063d547741f14610262578063e63ab1e914610275578063e68ce34b1461029c578063fb1bb9de146102af57600080fd5b80638456cb59146102195780639010d07c1461022157806391d1485414610234578063a217fddf1461024757600080fd5b806336568abe116100e957806336568abe146101b95780633f4ba83a146101cc5780634420e486146101d45780635c975abb146101e75780635e46d9b2146101f257600080fd5b806301ffc9a71461011b578063248a9ca31461014357806329e1f8a7146101745780632f2ff15d146101a4575b600080fd5b61012e610129366004610e25565b6102d6565b60405190151581526020015b60405180910390f35b610166610151366004610e4f565b60009081526020819052604090206001015490565b60405190815260200161013a565b60025461018c9061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161013a565b6101b76101b2366004610e7d565b610301565b005b6101b76101c7366004610e7d565b61032c565b6101b76103af565b6101b76101e2366004610ead565b6103e5565b60025460ff1661012e565b6101667f03ddcdb3d1fe1a4e14dc10db6bdb472b365c57f06455b8de89b9193741e2d92481565b6101b76106b6565b61018c61022f366004610eca565b6106e9565b61012e610242366004610e7d565b610708565b610166600081565b61016661025d366004610e4f565b610731565b6101b7610270366004610e7d565b610748565b6101667f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6101b76102aa366004610ead565b61076e565b6101667f427da25fe773164f88948d3e215c94b6554e2ed5e5f203a821c9f2f6131cf75a81565b60006001600160e01b03198216635a05180f60e01b14806102fb57506102fb826108a2565b92915050565b60008281526020819052604090206001015461031d81336108d7565b610327838361093b565b505050565b6001600160a01b03811633146103a15760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6103ab828261095d565b5050565b7f427da25fe773164f88948d3e215c94b6554e2ed5e5f203a821c9f2f6131cf75a6103da81336108d7565b6103e261097f565b50565b7f03ddcdb3d1fe1a4e14dc10db6bdb472b365c57f06455b8de89b9193741e2d92461041081336108d7565b60025460ff16156104565760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610398565b6001600160a01b03821661047d5760405163885ce5f160e01b815260040160405180910390fd5b6000826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa1580156104bd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104e59190810190610f26565b836001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa158015610523573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261054b9190810190610f26565b60405160200161055c929190610fff565b60408051808303601f19018152908290528051602090910120600254632ded0fb560e01b8352600483018290526001600160a01b03868116602485015291935060009261010090910490911690632ded0fb5906044016020604051808303816000875af11580156105d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f5919061102d565b604051632f2ff15d60e01b81527f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a660048201526001600160a01b03808316602483015291925090851690632f2ff15d90604401600060405180830381600087803b15801561066257600080fd5b505af1158015610676573d6000803e3d6000fd5b50506040518492506001600160a01b03871691507f2e76a69a258a7062ba5a2deff3c47ef039d40709c5da442efc7344e5fe98c1b790600090a350505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6106e181336108d7565b6103e2610a12565b60008281526001602052604081206107019083610a8d565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60008181526001602052604081206102fb90610a99565b60008281526020819052604090206001015461076481336108d7565b610327838361095d565b600061077a81336108d7565b6001600160a01b0382166107a15760405163e46fb0eb60e01b815260040160405180910390fd5b6002546040516001600160a01b0380851692610100900416907f89d131e66cbb83f2c4b6528c3d010d2e1c8e74329b84238c28dcb89863338a3690600090a350600280546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6108138282610708565b6103ab576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556108493390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610701836001600160a01b038416610aa3565b60006001600160e01b03198216637965db0b60e01b14806102fb57506301ffc9a760e01b6001600160e01b03198316146102fb565b6108e18282610708565b6103ab576108f9816001600160a01b03166014610af2565b610904836020610af2565b60405160200161091592919061104a565b60408051601f198184030181529082905262461bcd60e51b8252610398916004016110bf565b6109458282610809565b6000828152600160205260409020610327908261088d565b6109678282610c8e565b60008281526001602052604090206103279082610cf3565b60025460ff166109c85760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610398565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60025460ff1615610a585760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610398565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109f53390565b60006107018383610d08565b60006102fb825490565b6000818152600183016020526040812054610aea575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556102fb565b5060006102fb565b60606000610b018360026110e8565b610b0c906002611107565b67ffffffffffffffff811115610b2457610b24610eec565b6040519080825280601f01601f191660200182016040528015610b4e576020820181803683370190505b509050600360fc1b81600081518110610b6957610b6961111a565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610b9857610b9861111a565b60200101906001600160f81b031916908160001a9053506000610bbc8460026110e8565b610bc7906001611107565b90505b6001811115610c3f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610bfb57610bfb61111a565b1a60f81b828281518110610c1157610c1161111a565b60200101906001600160f81b031916908160001a90535060049490941c93610c3881611130565b9050610bca565b5083156107015760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610398565b610c988282610708565b156103ab576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610701836001600160a01b038416610d32565b6000826000018281548110610d1f57610d1f61111a565b9060005260206000200154905092915050565b60008181526001830160205260408120548015610e1b576000610d56600183611147565b8554909150600090610d6a90600190611147565b9050818114610dcf576000866000018281548110610d8a57610d8a61111a565b9060005260206000200154905080876000018481548110610dad57610dad61111a565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080610de057610de061115a565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506102fb565b60009150506102fb565b600060208284031215610e3757600080fd5b81356001600160e01b03198116811461070157600080fd5b600060208284031215610e6157600080fd5b5035919050565b6001600160a01b03811681146103e257600080fd5b60008060408385031215610e9057600080fd5b823591506020830135610ea281610e68565b809150509250929050565b600060208284031215610ebf57600080fd5b813561070181610e68565b60008060408385031215610edd57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b60005b83811015610f1d578181015183820152602001610f05565b50506000910152565b600060208284031215610f3857600080fd5b815167ffffffffffffffff80821115610f5057600080fd5b818401915084601f830112610f6457600080fd5b815181811115610f7657610f76610eec565b604051601f8201601f19908116603f01168101908382118183101715610f9e57610f9e610eec565b81604052828152876020848701011115610fb757600080fd5b610fc8836020830160208801610f02565b979650505050505050565b60008151808452610feb816020860160208601610f02565b601f01601f19169290920160200192915050565b6040815260006110126040830185610fd3565b82810360208401526110248185610fd3565b95945050505050565b60006020828403121561103f57600080fd5b815161070181610e68565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611082816017850160208801610f02565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516110b3816028840160208801610f02565b01602801949350505050565b6020815260006107016020830184610fd3565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611102576111026110d2565b500290565b808201808211156102fb576102fb6110d2565b634e487b7160e01b600052603260045260246000fd5b60008161113f5761113f6110d2565b506000190190565b818103818111156102fb576102fb6110d2565b634e487b7160e01b600052603160045260246000fdfea264697066735822122019929be82b1a60438cf490a7e056724e1fa258331496f46701d4d6178b7ebfa564736f6c63430008100033","source_code":"// SPDX-License-Identifier: BUSL-1.1\n/*\n      ▄▄█████████▄\n   ╓██▀└ ,╓▄▄▄, '▀██▄\n  ██▀ ▄██▀▀╙╙▀▀██▄ └██µ           ,,       ,,      ,     ,,,            ,,,\n ██ ,██¬ ▄████▄  ▀█▄ ╙█▄      ▄███▀▀███▄   ███▄    ██  ███▀▀▀███▄    ▄███▀▀███,\n██  ██ ╒█▀'   ╙█▌ ╙█▌ ██     ▐██      ███  █████,  ██  ██▌    └██▌  ██▌     └██▌\n██ ▐█▌ ██      ╟█  █▌ ╟█     ██▌      ▐██  ██ └███ ██  ██▌     ╟██ j██       ╟██\n╟█  ██ ╙██    ▄█▀ ▐█▌ ██     ╙██      ██▌  ██   ╙████  ██▌    ▄██▀  ██▌     ,██▀\n ██ \"██, ╙▀▀███████████⌐      ╙████████▀   ██     ╙██  ███████▀▀     ╙███████▀`\n  ██▄ ╙▀██▄▄▄▄▄,,,                ¬─                                    '─¬\n   ╙▀██▄ '╙╙╙▀▀▀▀▀▀▀▀\n      ╙▀▀██████R⌐\n */\npragma solidity 0.8.16;\n\nimport \"contracts/globalMarkets/tokenFactory/registrars/IRegistrar.sol\";\nimport \"contracts/external/openzeppelin/contracts/access/AccessControlEnumerable.sol\";\nimport \"contracts/external/openzeppelin/contracts/security/Pausable.sol\";\nimport \"contracts/external/openzeppelin/contracts/token/IERC20Metadata.sol\";\nimport \"contracts/external/layerzero/IOndoOwner.sol\";\n\n/**\n * @title  BridgeRegistrar\n * @author Ondo Finance\n * @notice This contract is responsible for registering new tokens with the GM bridge\n *         system. It handles the registration of new tokens with determinstic IDs and\n *         granting the freshly deployed OFT contract the minter role to allow bridging.\n */\ncontract BridgeRegistrar is IRegistrar, AccessControlEnumerable, Pausable {\n  /// Role for the token factory that can register new tokens\n  bytes32 public constant TOKEN_FACTORY_ROLE = keccak256(\"TOKEN_FACTORY_ROLE\");\n  /// Role allowed to pause the registrar\n  bytes32 public constant PAUSER_ROLE = keccak256(\"PAUSER_ROLE\");\n  /// Role allowed to unpause the registrar\n  bytes32 public constant UNPAUSER_ROLE = keccak256(\"UNPAUSER_ROLE\");\n\n  /// Address of the `OndoOwner` contract that manages GM bridge configurations\n  IOndoOwner public ondoBridgeOwner;\n\n  /**\n   * @notice Emitted when the `ondoBridgeOwner` address is updated\n   * @param  oldOndoBridgeOwner The old owner address\n   * @param  newOndoBridgeOwner The new owner address\n   */\n  event OndoBridgeOwnerSet(\n    address indexed oldOndoBridgeOwner,\n    address indexed newOndoBridgeOwner\n  );\n\n  /**\n   * @notice Emitted when a new token is registered\n   * @param token   The address of the token that was registered following a deployment\n   * @param tokenId The LayerZero specific ID of the token\n   */\n  event TokenRegistered(address indexed token, bytes32 indexed tokenId);\n\n  /// Error thrown when attempting to pass in zero address for guardian\n  error GuardianCantBeZero();\n\n  /// Error thrown when attempting to set the `ondoBridgeOwner` to zero address\n  error OndoBridgeOwnerCantBeZero();\n\n  /// Error thrown when attempting to register a token with zero address\n  error TokenAddressCantBeZero();\n\n  /**\n   * @notice Constructor to initialize the contract with the Ondo Bridge Owner\n   * @param  guardian         The address of the admin account that begins with the default admin role\n   * @param  _ondoBridgeOwner The address of the Ondo Bridge Owner contract\n   */\n  constructor(address guardian, address _ondoBridgeOwner) {\n    if (guardian == address(0)) revert GuardianCantBeZero();\n    if (_ondoBridgeOwner == address(0)) revert OndoBridgeOwnerCantBeZero();\n    ondoBridgeOwner = IOndoOwner(_ondoBridgeOwner);\n\n    _grantRole(DEFAULT_ADMIN_ROLE, guardian);\n    _grantRole(PAUSER_ROLE, guardian);\n    _grantRole(UNPAUSER_ROLE, guardian);\n  }\n\n  /**\n   * @notice Pauses the registrar, disabling registration\n   */\n  function pause() external onlyRole(PAUSER_ROLE) {\n    _pause();\n  }\n\n  /**\n   * @notice Unpauses the registrar, enabling registration\n   */\n  function unpause() external onlyRole(UNPAUSER_ROLE) {\n    _unpause();\n  }\n\n  /**\n   * @notice Registers a new token with the GM Token bridge\n   * @param  token The address of the token to register\n   * @dev    Only callable by accounts with TOKEN_FACTORY_ROLE\n   */\n  function register(\n    address token\n  ) external override onlyRole(TOKEN_FACTORY_ROLE) whenNotPaused {\n    if (token == address(0)) revert TokenAddressCantBeZero();\n\n    // The token ID is a chain agnostic identifier for the token. We use the keccak256 hash of the\n    // token's symbol and name, as for initial deployments we want this to be calculated the same\n    // on any chain.\n    bytes32 tokenId = keccak256(\n      abi.encode(IERC20Metadata(token).symbol(), IERC20Metadata(token).name())\n    );\n\n    // This will register the token with the Messenger and deploy a new OFT contract to handle mints\n    address oft = ondoBridgeOwner.registerToken(tokenId, token);\n\n    // Grant minter role to the new OFT that will mint the token for inbound bridges\n    IAccessControlEnumerable(token).grantRole(keccak256(\"MINTER_ROLE\"), oft);\n\n    emit TokenRegistered(token, tokenId);\n  }\n\n  /**\n   * @notice Sets or updates the Ondo Bridge Owner contract address\n   * @param  _ondoBridgeOwner The new Ondo Bridge Owner contract address\n   */\n  function setOndoBridgeOwner(\n    address _ondoBridgeOwner\n  ) external onlyRole(DEFAULT_ADMIN_ROLE) {\n    if (_ondoBridgeOwner == address(0)) revert OndoBridgeOwnerCantBeZero();\n\n    emit OndoBridgeOwnerSet(address(ondoBridgeOwner), _ondoBridgeOwner);\n    ondoBridgeOwner = IOndoOwner(_ondoBridgeOwner);\n  }\n}\n","creation_status":"success","file_path":"contracts/globalMarkets/tokenFactory/registrars/BridgeRegistrar.sol"}