Skip to content

Commit

Permalink
deploy and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
arjanjohan committed Jul 13, 2024
1 parent 8c2f1eb commit 575be1b
Show file tree
Hide file tree
Showing 30 changed files with 6,501 additions and 54 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ We deployed our contracts on Zircuit and manually added the config for the front
- [Notes.sol on Arbitrum Sepolia](https://sepolia.arbiscan.io/address/0x83277E9FE7Cc93Ad2D5986b87659A6fa80A48Ac0)
- [Notes.sol on Scroll Sepolia](https://sepolia.scrollscan.com/address/0x1e2818770eEaE7A4B958109d4915Ea3e8DA572c6)
- [Notes.sol on Linea Sepolia](https://api-sepolia.lineascan.build/address/0x4CC142ed6B170CC9e7cbecca486B79cd88727821)
- [Notes.sol on ApeChain](https://jenkins.explorer.caldera.xyz/address/0x83277E9FE7Cc93Ad2D5986b87659A6fa80A48Ac0)
- [Notes.sol on Zircuit](https://explorer.zircuit.com/address/0xD75595cCA0721f30a6449DD2b641Bc2E4FE44558)
- [Notes.sol on Zero]()
- [Notes.sol on Morph](https://explorer-holesky.morphl2.io/address/0x83277E9FE7Cc93Ad2D5986b87659A6fa80A48Ac0)
- [Notes.sol on Neon]()

### References
- [Vitalik blog - What do I think about Community Notes?](https://vitalik.eth.limo/general/2023/08/16/communitynotes.html)
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions packages/foundry/broadcast/deploy_Notes.s.sol/1798/run-latest.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions packages/foundry/broadcast/deploy_Notes.s.sol/2810/run-latest.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

38 changes: 22 additions & 16 deletions packages/foundry/broadcast/deploy_Notes.s.sol/59141/run-latest.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

46 changes: 26 additions & 20 deletions packages/foundry/broadcast/deploy_Notes.s.sol/84532/run-latest.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions packages/foundry/deployments/1798.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"networkName": "Apechain Testnet"
}
3 changes: 3 additions & 0 deletions packages/foundry/deployments/48899.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"networkName": "Zircuit Testnet"
}
18 changes: 9 additions & 9 deletions packages/foundry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
"account": "node script/ListAccount.js",
"chain": "anvil --config-out localhost.json",
"compile": "forge compile",
"deploy-test": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url sepolia --broadcast --legacy --sig "run(bool)" false --slow --verify && node script/generateTsAbis.js",
"deploy-base": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url base-sepolia --broadcast --legacy --sig "run(bool)" true--slow --verify && node script/generateTsAbis.js",
"deploy-arb": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url arbitrum-sepolia --broadcast --legacy --sig "run(bool)" false --slow --verify && node script/generateTsAbis.js",
"deploy-scroll": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url scroll-sepolia --broadcast --legacy --sig "run(bool)" false --slow --verify && node script/generateTsAbis.js",
"deploy-linea": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url linea-sepolia --broadcast --legacy --sig "run(bool)" false --slow --verify && node script/generateTsAbis.js",
"deploy-morph": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url morph-holesky --broadcast --legacy --sig "run(bool)" false --slow && node script/generateTsAbis.js",
"deploy-zircuit": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url zircuit --broadcast --legacy --sig "run(bool)" false --slow && node script/generateTsAbis.js",
"deploy-apechain": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url apechain --broadcast --legacy --sig "run(bool)" false --slow --verify && node script/generateTsAbis.js",
"deploy-zero": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url zero-sepolia --broadcast --legacy --sig "run(bool)" false --slow --verify && node script/generateTsAbis.js",
"deploy-test": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url sepolia --broadcast --legacy --sig 'run(bool)' false --slow --verify && node script/generateTsAbis.js",
"deploy-base": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url base-sepolia --broadcast --legacy --sig 'run(bool)' true --slow --verify && node script/generateTsAbis.js",
"deploy-arb": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url arbitrum-sepolia --broadcast --legacy --sig 'run(bool)' false --slow --verify && node script/generateTsAbis.js",
"deploy-scroll": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url scroll-sepolia --broadcast --legacy --sig 'run(bool)' false --slow --verify && node script/generateTsAbis.js",
"deploy-linea": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url linea-sepolia --broadcast --legacy --sig 'run(bool)' false --slow --verify && node script/generateTsAbis.js",
"deploy-morph": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url morph-holesky --broadcast --legacy --sig 'run(bool)' false --slow && node script/generateTsAbis.js",
"deploy-zircuit": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url zircuit --broadcast --legacy --sig 'run(bool)' false --slow && node script/generateTsAbis.js",
"deploy-apechain": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url apechain --broadcast --legacy --sig 'run(bool)' false --slow && node script/generateTsAbis.js",
"deploy-zero": "forge build --build-info --build-info-path out/build-info/ && forge script script/deploy_Notes.s.sol --rpc-url zero-sepolia --broadcast --legacy --sig 'run(bool)' false --slow && node script/generateTsAbis.js",
"deploy:verify": "forge build --build-info --build-info-path out/build-info/ && forge script script/Deploy.s.sol --rpc-url ${1:-sepolia} --broadcast --verify ; node script/generateTsAbis.js",
"flatten": "forge flatten",
"fork": "anvil --fork-url ${0:-mainnet} --chain-id 31337 --config-out localhost.json",
Expand Down
6 changes: 5 additions & 1 deletion packages/foundry/script/generateTsAbis.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function getArtifactOfContract(contractName) {
"..",
`out/${contractName}.sol`
);
console.log("current_path_to_artifacts", current_path_to_artifacts);
const artifactJson = JSON.parse(
fs.readFileSync(`${current_path_to_artifacts}/${contractName}.json`)
);
Expand Down Expand Up @@ -91,6 +92,8 @@ function main() {

const allGeneratedContracts = {};

console.log("chains" ,chains);

chains.forEach((chain) => {
allGeneratedContracts[chain] = {};
const broadCastObject = JSON.parse(
Expand All @@ -99,10 +102,11 @@ function main() {
const transactionsCreate = broadCastObject.transactions.filter(
(transaction) => transaction.transactionType == "CREATE"
);

transactionsCreate.forEach((transaction) => {
const artifact = getArtifactOfContract(transaction.contractName);

allGeneratedContracts[chain][
deployments[chain][transaction.contractAddress] ||
transaction.contractName
] = {
address: transaction.contractAddress,
Expand Down
Loading

0 comments on commit 575be1b

Please sign in to comment.