chore: sync submodule state (parent ref update)

Made-with: Cursor
This commit is contained in:
defiQUG
2026-03-02 12:14:09 -08:00
parent 50ab378da9
commit 5efe36b1e0
1100 changed files with 155024 additions and 8674 deletions

View File

@@ -0,0 +1,23 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import {Script, console} from "forge-std/Script.sol";
import {DVMFactoryAdapter} from "../../contracts/dex/DVMFactoryAdapter.sol";
/**
* @title DeployDVMFactoryAdapter
* @notice Deploy adapter so DODOPMMIntegration (createDVM) can use official DODO DVMFactory (createDODOVendingMachine)
*/
contract DeployDVMFactoryAdapter is Script {
function run() external {
address dodoFactory = vm.envAddress("DODO_DVM_FACTORY");
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
vm.startBroadcast(deployerPrivateKey);
DVMFactoryAdapter adapter = new DVMFactoryAdapter(dodoFactory);
vm.stopBroadcast();
console.log("DVMFactoryAdapter deployed at:", address(adapter));
console.log("Set DODO_VENDING_MACHINE_ADDRESS=%s", address(adapter));
}
}