-
Notifications
You must be signed in to change notification settings - Fork 7
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
13 changed files
with
254 additions
and
66 deletions.
There are no files selected for viewing
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
10 changes: 10 additions & 0 deletions
10
contracts/script/output/31337/group_messages_deployment.json
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,10 @@ | ||
{ | ||
"addresses": { | ||
"groupMessagesDeployer": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", | ||
"groupMessagesImpl": "0xD0141E899a65C95a556fE2B27e5982A6DE7fDD7A", | ||
"groupMessagesProxy": "0xD5ac451B0c50B9476107823Af206eD814a2e2580", | ||
"groupMessagesProxyAdmin": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" | ||
}, | ||
"deploymentBlock": 104, | ||
"latestUpgradeBlock": 110 | ||
} |
10 changes: 10 additions & 0 deletions
10
contracts/script/output/31337/identity_updates_deployment.json
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,10 @@ | ||
{ | ||
"addresses": { | ||
"identityUpdatesDeployer": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", | ||
"identityUpdatesImpl": "0x18E317A7D70d8fBf8e6E893616b52390EbBdb629", | ||
"identityUpdatesProxy": "0x5067457698Fd6Fa1C6964e416b3f42713513B3dD", | ||
"identityUpdatesProxyAdmin": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" | ||
}, | ||
"deploymentBlock": 100, | ||
"latestUpgradeBlock": 108 | ||
} |
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,9 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.28; | ||
|
||
import "forge-std/src/Script.sol"; | ||
|
||
contract Environment is Script { | ||
string public constant XMTP_GROUP_MESSAGES_OUTPUT_JSON = "group_messages_deployment"; | ||
string public constant XMTP_IDENTITY_UPDATES_OUTPUT_JSON = "identity_updates_deployment"; | ||
} |
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,36 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.28; | ||
|
||
import "forge-std/src/Script.sol"; | ||
import "forge-std/src/StdJson.sol"; | ||
|
||
contract Utils is Script { | ||
function readInput(string memory inputFileName) internal view returns (string memory) { | ||
string memory file = getInputPath(inputFileName); | ||
return vm.readFile(file); | ||
} | ||
|
||
function getInputPath(string memory inputFileName) internal view returns (string memory) { | ||
string memory inputDir = string.concat(vm.projectRoot(), "/script/input/"); | ||
string memory chainDir = string.concat(vm.toString(block.chainid), "/"); | ||
string memory file = string.concat(inputFileName, ".json"); | ||
return string.concat(inputDir, chainDir, file); | ||
} | ||
|
||
function readOutput(string memory outputFileName) internal view returns (string memory) { | ||
string memory file = getOutputPath(outputFileName); | ||
return vm.readFile(file); | ||
} | ||
|
||
function writeOutput(string memory outputJson, string memory outputFileName) internal { | ||
string memory outputFilePath = getOutputPath(outputFileName); | ||
vm.writeJson(outputJson, outputFilePath); | ||
} | ||
|
||
function getOutputPath(string memory outputFileName) internal view returns (string memory) { | ||
string memory outputDir = string.concat(vm.projectRoot(), "/script/output/"); | ||
string memory chainDir = string.concat(vm.toString(block.chainid), "/"); | ||
string memory outputFilePath = string.concat(outputDir, chainDir, outputFileName, ".json"); | ||
return outputFilePath; | ||
} | ||
} |
Oops, something went wrong.