-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
9cab13e
commit 24397da
Showing
9 changed files
with
524,472 additions
and
0 deletions.
There are no files selected for viewing
151 changes: 151 additions & 0 deletions
151
packages/contracts/broadcast/deploy.sol/11155111/dry-run/run-1707928610.json
Large diffs are not rendered by default.
Oops, something went wrong.
151 changes: 151 additions & 0 deletions
151
packages/contracts/broadcast/deploy.sol/11155111/dry-run/run-latest.json
Large diffs are not rendered by default.
Oops, something went wrong.
160 changes: 160 additions & 0 deletions
160
packages/contracts/broadcast/deploy.sol/11155111/run-1707928908.json
Large diffs are not rendered by default.
Oops, something went wrong.
328 changes: 328 additions & 0 deletions
328
packages/contracts/broadcast/deploy.sol/11155111/run-1707928926.json
Large diffs are not rendered by default.
Oops, something went wrong.
328 changes: 328 additions & 0 deletions
328
packages/contracts/broadcast/deploy.sol/11155111/run-latest.json
Large diffs are not rendered by default.
Oops, something went wrong.
523,077 changes: 523,077 additions & 0 deletions
523,077
packages/contracts/build-info/79a4e34293e494d5310d8cab35bd6873.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"ArbitrationToken": "0xF35121DAf5895bc3595a8271Ab8a746E2df4403b", | ||
"Arbitrator": "0xb6deAC61E2011301D771750368d2616df9941C67", | ||
"CollateralAgreementFramework": "0x663cF9E09A82057defC2d574472B010b4d9e9Cf6" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { exec } from "child_process"; | ||
|
||
const verifyArbitrationToken = async (address: string, path: string) => { | ||
exec( | ||
["forge verify-contract", address, path, "--constructor-args", "000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000b436f75727420546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024354000000000000000000000000000000000000000000000000000000000000", "--chain-id", 11155111, "--etherscan-api-key", "6EI6Z7T8UAAVRIY8JXRXKVKM5A1WH8PURD"].join(" "), | ||
(error, stdout, stderr) => { | ||
console.log(error) | ||
console.log(stdout) | ||
console.log(stderr) | ||
} | ||
); | ||
} | ||
|
||
|
||
const verifyArbitrator = async (address: string, path: string) => { | ||
exec( | ||
["forge verify-contract", address, path, "--constructor-args", "000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba30000000000000000000000000c47a93ffca9bc0b116d055f2a062b625481677d", "--chain-id", 11155111, "--etherscan-api-key", "6EI6Z7T8UAAVRIY8JXRXKVKM5A1WH8PURD"].join(" "), | ||
(error, stdout, stderr) => { | ||
console.log(error) | ||
console.log(stdout) | ||
console.log(stderr) | ||
} | ||
); | ||
} | ||
const verifyCollateralAgreementFramework = async (address: string, path: string) => { | ||
exec( | ||
["forge verify-contract", address, path, "--constructor-args", "000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba30000000000000000000000000c47a93ffca9bc0b116d055f2a062b625481677d", "--chain-id", 11155111, "--etherscan-api-key", "6EI6Z7T8UAAVRIY8JXRXKVKM5A1WH8PURD"].join(" "), | ||
(error, stdout, stderr) => { | ||
console.log(error) | ||
console.log(stdout) | ||
console.log(stderr) | ||
} | ||
); | ||
} | ||
const main = async () => { | ||
console.log("Contract verification...") | ||
await verifyArbitrationToken("0xF35121DAf5895bc3595a8271Ab8a746E2df4403b", "lib/solmate/src/test/utils/mocks/MockERC20.sol:MockERC20") | ||
await verifyArbitrator("0xb6deAC61E2011301D771750368d2616df9941C67", "src/Arbitrator.sol:Arbitrator") | ||
await verifyCollateralAgreementFramework("0x663cF9E09A82057defC2d574472B010b4d9e9Cf6", "src/frameworks/CollateralAgreement.sol:CollateralAgreement") | ||
} | ||
main().catch((error) => { | ||
console.error(error); | ||
process.exitCode = 1; | ||
}); |