-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: David Salami <[email protected]>
- Loading branch information
1 parent
d2322e8
commit 23971dc
Showing
45 changed files
with
917 additions
and
710 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Submodule sp1-contracts
updated
45 files
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
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,33 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.20; | ||
|
||
import "forge-std/Script.sol"; | ||
import "stringutils/strings.sol"; | ||
|
||
import {CrossChainInscription} from "../src/modules/Inscriptions.sol"; | ||
import {BaseScript} from "./BaseScript.sol"; | ||
|
||
contract DeployScript is BaseScript { | ||
using strings for *; | ||
|
||
function run() external { | ||
vm.startBroadcast(uint256(privateKey)); | ||
CrossChainInscription module = new CrossChainInscription{salt: salt}(admin); | ||
|
||
if (host.toSlice().startsWith("ethereum".toSlice())) { | ||
module.setHost(ETHEREUM_HOST); | ||
} else if (host.toSlice().startsWith("arbitrum".toSlice())) { | ||
module.setHost(ARBITRUM_HOST); | ||
} else if (host.toSlice().startsWith("optimism".toSlice())) { | ||
module.setHost(OPTIMISM_HOST); | ||
} else if (host.toSlice().startsWith("base".toSlice())) { | ||
module.setHost(BASE_HOST); | ||
} else if (host.toSlice().startsWith("bsc".toSlice())) { | ||
module.setHost(BNB_HOST); | ||
} else if (host.toSlice().startsWith("gnosis".toSlice())) { | ||
module.setHost(GNOSIS_HOST); | ||
} | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
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
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.