-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
872 additions
and
923 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Submodule core-physical
updated
4 files
+13 −11 | .gas-snapshot | |
+10 −3 | src/core/Pomace.sol | |
+13 −0 | test/integration-tests/PomacePayoutTest.t.sol | |
+10 −1 | test/integration-tests/PomaceSettlement.t.sol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import "forge-std/Script.sol"; | ||
|
||
import "../src/settled-cash/CrossMarginCashEngine.sol"; | ||
|
||
contract Deploy is Script { | ||
function run() external { | ||
console.log("Deployer", msg.sender); | ||
|
||
vm.startBroadcast(); | ||
|
||
address grappa = vm.envAddress("GrappaProxy"); | ||
address optionToken = vm.envAddress("GrappaOptionToken"); | ||
|
||
// // deploy and register Cross Margin Engine | ||
deployCrossMarginEngine(grappa, optionToken); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
|
||
function deployCrossMarginEngine(address grappa, address optionToken) public { | ||
// ============ Deploy Cross Margin Engine (Upgradable) ============== // | ||
address engineImplementation = | ||
address(new CrossMarginCashEngine(address(grappa), optionToken, vm.envAddress("CrossMarginCashOracle"))); | ||
|
||
console.log("CrossMargin Cash Engine: \t\t\t", engineImplementation); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import "forge-std/Script.sol"; | ||
|
||
import "../src/settled-physical/CrossMarginPhysicalEngine.sol"; | ||
|
||
contract DeployPhysicalMarginEngine is Script { | ||
function run() external { | ||
console.log("Deployer", msg.sender); | ||
|
||
vm.startBroadcast(); | ||
|
||
// ============ Deploy Cross Margin Engine (Upgradable) ============== // | ||
address engineImplementation = | ||
address(new CrossMarginPhysicalEngine(vm.envAddress("PomaceProxy"), vm.envAddress("PomaceOptionToken"))); | ||
|
||
console.log("CrossMargin Physical Engine: \t\t", engineImplementation); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
|
||
function deployCrossMarginPhysicalEngine(address pomace, address optionToken) public {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.