{"constructor_args":"0x000000000000000000000000b45ac37cc7ff7ec317e7d8c308781ece431639f600000000000000000000000084d4eaeb10f9e57b67622f667c6c13e22fa4b2b6","is_partially_verified":false,"is_changed_bytecode":false,"abi":[{"inputs":[{"internalType":"address","name":"oracle_","type":"address"},{"internalType":"contract ILegacyNAVConsumer","name":"legacyConsumer_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"NotAContract","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"UnauthorizedCaller","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"inputs":[],"name":"legacyConsumer","outputs":[{"internalType":"contract ILegacyNAVConsumer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nav","type":"uint256"}],"name":"setSharePrice","outputs":[],"stateMutability":"nonpayable","type":"function"}],"conflicting_implementations":null,"certified":false,"additional_sources":[{"file_path":"../vendor/smart-contracts-oracle/src/nav/interfaces/INAVReceiver.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.30;\n\n/**\n * @title NAV Receiver Interface\n * @notice Interface for downstream contracts that receive NAV updates from the oracle fan-out.\n */\ninterface INAVReceiver {\n    /**\n     * @notice Update the receiver's share price from a NAV value.\n     * @param nav The NAV value with 18 decimal places.\n     * @dev A receiver revert is isolated and reported by the oracle fan-out. The oracle write can\n     *      still revert if the transaction lacks enough gas to reserve the receiver's call budget.\n     */\n    function setSharePrice(uint256 nav) external;\n}\n"},{"file_path":"../vendor/smart-contracts-oracle/src/nav/interfaces/NAVSinkTypes.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.30;\n\n// Shared sink events/errors and the legacy-consumer write surface used by NAVPushSinks and\n// LegacyConsumerSinkAdapter. Sink callbacks use INAVReceiver. Registration and caller permissions\n// are implementation and deployment concerns; local wiring checks live in\n// script/VerifyAccessManagerWiring.s.sol.\n\n/// @notice Minimal legacy-consumer write surface used by LegacyConsumerSinkAdapter.\n/// @dev Authorization and legacy write rails are enforced by the deployed legacy consumer.\ninterface ILegacyNAVConsumer {\n    function forceNAVUpdate(uint256 navValue, string calldata reason) external;\n}\n\nevent SinkAdded(address indexed target);\nevent SinkRemoved(address indexed target);\n/// @notice A sink call failed or exhausted its gas cap; fan-out continues to the next sink.\nevent SinkPushFailed(address indexed target, uint256 nav);\n\nerror SinkZeroAddress();\nerror SinkAlreadyRegistered(address target);\nerror SinkNotFound(address target);\nerror SinkNotAContract(address target);\nerror TooManySinks();\nerror InsufficientGasForSinkPush(address target);\n/// @notice An explicit governance synchronization attempt failed to update the target sink.\nerror SinkSyncFailed(address target, uint256 nav);\n"}],"is_verified_via_sourcify":false,"can_be_visualized_via_sol2uml":true,"evm_version":"shanghai","language":"solidity","is_verified_via_eth_bytecode_db":true,"is_fully_verified":true,"license_type":"none","is_blueprint":false,"name":"LegacyConsumerSinkAdapter","creation_bytecode":"0x60c0346100df57601f61037038819003918201601f19168301916001600160401b038311848410176100e35780849260409485528339810103126100df5780516001600160a01b038116918282036100df5760200151916001600160a01b0383168084036100df57811580156100d7575b6100c857803b156100b65750813b156100b6575060805260a05260405161027890816100f8823960805181818160a5015260e6015260a051818181605e01526101160152f35b6322a2d07b60e21b5f5260045260245ffd5b63d92e233d60e01b5f5260045ffd5b508015610070565b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610012575f80fd5b5f905f3560e01c90816316b60249146100c9575080637dc0d1d01461008557638a2458221461003f575f80fd5b3461008257806003193601126100825760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b80fd5b503461008257806003193601126100825760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b90503461022b57602036600319011261022b576001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016330361022f576001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166040820182811067ffffffffffffffff8211176101f457604052600e82527f434c462d446570726563617465640000000000000000000000000000000000006020830152803b1561022b576040518092634245621360e01b82526004356004830152604060248301528051908160448401525f5b82811061021357505091815f606482868383819984010152601f801991011681010301925af18015610208576101de575080f35b905067ffffffffffffffff81116101f457604052005b634e487b7160e01b5f52604160045260245ffd5b6040513d5f823e3d90fd5b602082820181015160648884010152869450016101aa565b5f80fd5b63d86ad9cf60e01b5f523360045260245ffdfea264697066735822122095603903fbb21b0380a51617b2a1118cd91220fdbdb89623edfe69ea14fb1c0a64736f6c634300081e0033000000000000000000000000b45ac37cc7ff7ec317e7d8c308781ece431639f600000000000000000000000084d4eaeb10f9e57b67622f667c6c13e22fa4b2b6","external_libraries":[],"proxy_type":null,"implementations":[],"verified_at":"2026-08-30T03:50:45.938704Z","is_verified_via_verifier_alliance":false,"compiler_version":"v0.8.30+commit.73712a01","decoded_constructor_args":[["0xb45AC37Cc7fF7ec317e7D8C308781ECe431639f6",{"internalType":"address","name":"oracle_","type":"address"}],["0x84d4eaeb10f9E57b67622f667C6c13E22fA4b2B6",{"internalType":"contract ILegacyNAVConsumer","name":"legacyConsumer_","type":"address"}]],"sourcify_repo_url":null,"optimization_runs":500,"compiler_settings":{"evmVersion":"shanghai","libraries":{},"metadata":{"appendCBOR":true,"bytecodeHash":"ipfs","useLiteralContent":false},"optimizer":{"enabled":true,"runs":500},"outputSelection":{"*":{"":["*"],"*":["*"]}},"remappings":["deploy-src/=src/","src/external/=../vendor/smart-contracts-oracle/src/external/","@openzeppelin/contracts/=../vendor/smart-contracts-oracle/lib/openzeppelin-contracts/contracts/","@chainlink/contracts-ccip/contracts/=../vendor/smart-contracts-oracle/lib/chainlink-local/lib/chainlink-ccip/chains/evm/contracts/","@chainlink/contracts-ccip/interfaces/=../vendor/smart-contracts-oracle/lib/chainlink-local/lib/chainlink-ccip/chains/evm/contracts/interfaces/","@chainlink/contracts-ccip/libraries/=../vendor/smart-contracts-oracle/lib/chainlink-local/lib/chainlink-ccip/chains/evm/contracts/libraries/","@chainlink/contracts-ccip/applications/=../vendor/smart-contracts-oracle/lib/chainlink-local/lib/chainlink-ccip/chains/evm/contracts/applications/","forge-std/=../vendor/smart-contracts-oracle/lib/forge-std/src/","oracle-src/=../vendor/smart-contracts-oracle/src/","oracle-script/=../vendor/smart-contracts-oracle/script/","@chainlink/contracts/=/Users/anand/re/nav-oracle-private/.worktrees/codex/nav-submitter-fork-tests/vendor/smart-contracts-oracle/lib/chainlink-local/lib/chainlink-evm/contracts/","@chainlink/local/src/=/Users/anand/re/nav-oracle-private/.worktrees/codex/nav-submitter-fork-tests/vendor/smart-contracts-oracle/lib/chainlink-local/src/","@openzeppelin/contracts-upgradeable/=/Users/anand/re/nav-oracle-private/.worktrees/codex/nav-submitter-fork-tests/vendor/smart-contracts-oracle/lib/openzeppelin-contracts-upgradeable/contracts/","@openzeppelin/contracts@4.7.3/=/Users/anand/re/nav-oracle-private/.worktrees/codex/nav-submitter-fork-tests/vendor/smart-contracts-oracle/lib/chainlink-local/src/vendor/openzeppelin-solidity/v4.7.3/contracts/","@openzeppelin/contracts@4.8.3/=/Users/anand/re/nav-oracle-private/.worktrees/codex/nav-submitter-fork-tests/vendor/smart-contracts-oracle/lib/chainlink-local/src/vendor/openzeppelin-solidity/v4.8.3/contracts/","@openzeppelin/contracts@5.0.2/=/Users/anand/re/nav-oracle-private/.worktrees/codex/nav-submitter-fork-tests/vendor/smart-contracts-oracle/lib/chainlink-local/src/vendor/openzeppelin-solidity/v5.0.2/contracts/","chainlink-ccip/=/Users/anand/re/nav-oracle-private/.worktrees/codex/nav-submitter-fork-tests/vendor/smart-contracts-oracle/lib/chainlink-local/lib/chainlink-ccip/chains/evm/contracts/vendor/optimism/interop-lib/v0/src/","chainlink-evm/=/Users/anand/re/nav-oracle-private/.worktrees/codex/nav-submitter-fork-tests/vendor/smart-contracts-oracle/lib/chainlink-local/lib/chainlink-evm/","chainlink-local/=/Users/anand/re/nav-oracle-private/.worktrees/codex/nav-submitter-fork-tests/vendor/smart-contracts-oracle/lib/chainlink-local/src/","chainlink/=../vendor/smart-contracts-oracle/lib/chainlink/","erc4626-tests/=/Users/anand/re/nav-oracle-private/.worktrees/codex/nav-submitter-fork-tests/vendor/smart-contracts-oracle/lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/","halmos-cheatcodes/=/Users/anand/re/nav-oracle-private/.worktrees/codex/nav-submitter-fork-tests/vendor/smart-contracts-oracle/lib/openzeppelin-contracts-upgradeable/lib/halmos-cheatcodes/src/","openzeppelin-contracts-upgradeable/=/Users/anand/re/nav-oracle-private/.worktrees/codex/nav-submitter-fork-tests/vendor/smart-contracts-oracle/lib/openzeppelin-contracts-upgradeable/contracts/","openzeppelin-contracts/=/Users/anand/re/nav-oracle-private/.worktrees/codex/nav-submitter-fork-tests/vendor/smart-contracts-oracle/lib/openzeppelin-contracts/contracts/","openzeppelin-foundry-upgrades/=/Users/anand/re/nav-oracle-private/.worktrees/codex/nav-submitter-fork-tests/vendor/smart-contracts-oracle/lib/openzeppelin-foundry-upgrades/src/"],"viaIR":true},"is_verified":true,"verified_twin_address_hash":null,"optimization_enabled":true,"deployed_bytecode":"0x6080806040526004361015610012575f80fd5b5f905f3560e01c90816316b60249146100c9575080637dc0d1d01461008557638a2458221461003f575f80fd5b3461008257806003193601126100825760206040516001600160a01b037f00000000000000000000000084d4eaeb10f9e57b67622f667c6c13e22fa4b2b6168152f35b80fd5b503461008257806003193601126100825760206040516001600160a01b037f000000000000000000000000b45ac37cc7ff7ec317e7d8c308781ece431639f6168152f35b90503461022b57602036600319011261022b576001600160a01b037f000000000000000000000000b45ac37cc7ff7ec317e7d8c308781ece431639f616330361022f576001600160a01b037f00000000000000000000000084d4eaeb10f9e57b67622f667c6c13e22fa4b2b6166040820182811067ffffffffffffffff8211176101f457604052600e82527f434c462d446570726563617465640000000000000000000000000000000000006020830152803b1561022b576040518092634245621360e01b82526004356004830152604060248301528051908160448401525f5b82811061021357505091815f606482868383819984010152601f801991011681010301925af18015610208576101de575080f35b905067ffffffffffffffff81116101f457604052005b634e487b7160e01b5f52604160045260245ffd5b6040513d5f823e3d90fd5b602082820181015160648884010152869450016101aa565b5f80fd5b63d86ad9cf60e01b5f523360045260245ffdfea264697066735822122095603903fbb21b0380a51617b2a1118cd91220fdbdb89623edfe69ea14fb1c0a64736f6c634300081e0033","source_code":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.30;\n\nimport {INAVReceiver} from \"../interfaces/INAVReceiver.sol\";\nimport {ILegacyNAVConsumer} from \"../interfaces/NAVSinkTypes.sol\";\n\n/**\n * @title LegacyConsumerSinkAdapter\n * @notice Transitional adapter that accepts sink pushes from the configured oracle and calls the\n *         legacy NAVConsumer's `forceNAVUpdate`. This lets legacy readers follow the new oracle,\n *         subject to the legacy consumer's own write guards. Once all readers use NAVFeedProxy,\n *         remove this sink and revoke its legacy permission.\n *\n * @dev In the intended deployment, this adapter rather than the oracle holds the legacy consumer's\n *      updater permission, so it can be revoked independently at sunset. A rejected legacy write\n *      reverts this adapter call and is reported as {SinkPushFailed} if the oracle retains enough\n *      transaction gas to finish fan-out.\n *\n *      The legacy write interface carries only the NAV value. Any timestamp the legacy consumer\n *      records from `forceNAVUpdate` is this call's execution/delivery time, not the NAV source-data\n *      timestamp or the oracle round's acceptance time. In particular, `NAVOracle.syncSink` can\n *      replay an unchanged old round and make the legacy consumer's `latestTimestamp` look current.\n *      This information loss is an acknowledged transitional risk whose production use requires\n *      explicit governance acceptance: `latestTimestamp` proves only when the value was delivered\n *      to the legacy sink, never when its source data was observed or when the oracle accepted it.\n *      Operational review may reduce replay risk, but this adapter cannot enforce freshness or\n *      bind a retry to a reviewed round, NAV, mode, episode, or deadline.\n */\ncontract LegacyConsumerSinkAdapter is INAVReceiver {\n    string internal constant UPDATE_REASON = \"CLF-Deprecated\";\n\n    /// @notice Configured oracle contract; the only caller accepted by {setSharePrice}.\n    address public immutable oracle;\n    /// @notice The legacy NAVConsumer written through.\n    ILegacyNAVConsumer public immutable legacyConsumer;\n\n    error UnauthorizedCaller(address caller);\n    error ZeroAddress();\n    error NotAContract(address target);\n\n    constructor(address oracle_, ILegacyNAVConsumer legacyConsumer_) {\n        if (oracle_ == address(0) || address(legacyConsumer_) == address(0)) revert ZeroAddress();\n        if (address(legacyConsumer_).code.length == 0) {\n            revert NotAContract(address(legacyConsumer_));\n        }\n        // The configured caller can exercise this adapter's privileged legacy write path. Reject an\n        // EOA here; deployment must still verify that oracle_ is the intended NAVOracle.\n        if (oracle_.code.length == 0) revert NotAContract(oracle_);\n        oracle = oracle_;\n        legacyConsumer = legacyConsumer_;\n    }\n\n    /// @inheritdoc INAVReceiver\n    function setSharePrice(uint256 nav) external {\n        if (msg.sender != oracle) revert UnauthorizedCaller(msg.sender);\n        legacyConsumer.forceNAVUpdate(nav, UPDATE_REASON);\n    }\n}\n","creation_status":"success","file_path":"../vendor/smart-contracts-oracle/src/nav/sinks/LegacyConsumerSinkAdapter.sol"}