MockFactory

Description:

Smart contract deployed on Ethereum with Factory features.

Blockchain: Ethereum

Source Code: View Code On The Blockchain

Solidity Source Code:

{{
  "language": "Solidity",
  "sources": {
    "test/mocks/MockFactory.sol": {
      "content": "// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;

import { IFactory } from "../../contracts/interfaces/IFactory.sol";

contract MockFactory is IFactory {
    bool private _alwaysValid;

    constructor() {
        _alwaysValid = true;
    }

    function setValidationResult(bool newValue) external {
        _alwaysValid = newValue;
    }

    function isAuthorizedBridgeAddress(address, uint256) external view override returns (bool) {
        return _alwaysValid;
    }
}
"
    },
    "contracts/interfaces/IFactory.sol": {
      "content": "// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.22;

interface IFactory {
    function isAuthorizedBridgeAddress(address _caller, uint256 _chainId) external view returns (bool);
}
"
    }
  },
  "settings": {
    "remappings": [
      "forge-std/=lib/forge-std/src/",
      "@layerzerolabs/=../../node_modules/@layerzerolabs/",
      "@openzeppelin/=../../node_modules/@openzeppelin/",
      "@arbitrum/=../../node_modules/@arbitrum/",
      "@vault/=../vault/contracts/",
      "@offchainlabs/=../../node_modules/@offchainlabs/",
      "ds-test/=../../node_modules/ds-test/",
      "hardhat-deploy/=../../node_modules/hardhat-deploy/",
      "hardhat/=../../node_modules/hardhat/",
      "solady/=../../node_modules/solady/",
      "solidity-bytes-utils/=../../node_modules/solidity-bytes-utils/",
      "vault/=../../node_modules/vault/"
    ],
    "optimizer": {
      "enabled": true,
      "runs": 20000
    },
    "metadata": {
      "useLiteralContent": false,
      "bytecodeHash": "ipfs",
      "appendCBOR": true
    },
    "outputSelection": {
      "*": {
        "*": [
          "evm.bytecode",
          "evm.deployedBytecode",
          "devdoc",
          "userdoc",
          "metadata",
          "abi"
        ]
      }
    },
    "evmVersion": "shanghai",
    "viaIR": false
  }
}}

Tags:
Factory|addr:0x8358da607f7d4fb431627ecdbb4b54ec0ab97845|verified:true|block:23582104|tx:0xabd2b1e99dde2e140884f1158fc873b578d1e1e87fde434d5514289d9d3ef18d|first_check:1760521996

Submitted on: 2025-10-15 11:53:17

Comments

Log in to comment.

No comments yet.