From 775eae9996ecbb824d7eefb1f67f6b6773c160e1 Mon Sep 17 00:00:00 2001 From: Atlas Date: Mon, 28 Oct 2024 15:27:11 +0100 Subject: [PATCH] chore: add movement testnet --- .env.example | 6 +++--- .gitignore | 1 + README.md | 16 ++++++++++++++++ deploy-config/30732.json | 4 ++++ deploy-config/rss3.json | 4 ---- src/libraries/DataTypes.sol | 2 +- 6 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 deploy-config/30732.json delete mode 100644 deploy-config/rss3.json diff --git a/.env.example b/.env.example index 66342a0..06daa5a 100644 --- a/.env.example +++ b/.env.example @@ -3,9 +3,9 @@ PRIVATE_KEY=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1 # vsl testnet CHAIN_ID=2331 RPC_URL='https://rpc.testnet.rss3.io' -VERIFIER=blockscout -VERIFIER_URL='https://scan.testnet.rss3.io/api' -DEPLOYMENT_CONTEXT=testnet +VERIFIER=blockscout # optional +VERIFIER_URL='https://scan.testnet.rss3.io/api' # optional +DEPLOYMENT_CONTEXT=testnet # optional # vsl mainnet #CHAIN_ID=12553 diff --git a/.gitignore b/.gitignore index f676773..d46b949 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ out/ !/broadcast /broadcast/*/31337/ /broadcast/**/dry-run/ +broadcast # Docs docs/ diff --git a/README.md b/README.md index d07ea44..78418d9 100644 --- a/README.md +++ b/README.md @@ -39,8 +39,16 @@ $ anvil ### Deploy +Currently supported network: +VLS Testnet +LocalDevNet + +To add new network, you need to: +1. update local .env +2. edit `./deploy-config/{chain_id}.json`, add required params. ```shell +# With verification forge script script/Deploy.s.sol:Deploy \ --chain-id $CHAIN_ID \ --rpc-url $RPC_URL \ @@ -50,6 +58,14 @@ forge script script/Deploy.s.sol:Deploy \ --verify \ --broadcast --ffi -vvvv +# Without verification +forge script script/Deploy.s.sol:Deploy \ +--chain-id $CHAIN_ID \ +--rpc-url $RPC_URL \ +--private-key $PRIVATE_KEY \ +--broadcast --ffi -vvvv + + # generate easily readable abi to /deployments forge script script/Deploy.s.sol:Deploy --sig 'sync()' --rpc-url $RPC_URL --broadcast --ffi ``` diff --git a/deploy-config/30732.json b/deploy-config/30732.json new file mode 100644 index 0000000..aebe2e9 --- /dev/null +++ b/deploy-config/30732.json @@ -0,0 +1,4 @@ +{ + "proxyAdminOwner": "0xEA02bb4e91e36c8F853D9b37B74A832FFeDbF157", + "templateAdmin": "0xE0b98a1062B7f2f77087Cc1Dc9889B79FF46cAb8" +} \ No newline at end of file diff --git a/deploy-config/rss3.json b/deploy-config/rss3.json deleted file mode 100644 index 5047710..0000000 --- a/deploy-config/rss3.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "proxyAdminOwner": "", - "templateAdmin": "" -} \ No newline at end of file diff --git a/src/libraries/DataTypes.sol b/src/libraries/DataTypes.sol index 9591171..cd7c4ab 100644 --- a/src/libraries/DataTypes.sol +++ b/src/libraries/DataTypes.sol @@ -34,7 +34,7 @@ struct Specification { // to call, e.g. " [{"request":"calculate(uint256)","getResponse":"getResponse(uint256)"}]" Arch arch; // architecture of the computing task, e.g. x86_64, arm64 ExecMode execMode; // how the computing task should be executed in the worker node, JIT or - // PERSISTENT + // PERSISTENT } struct Commitment {