From 6ffdb56d60f320a6b1adad0a7bec8a35b4c19d91 Mon Sep 17 00:00:00 2001 From: Dann Wee Date: Mon, 14 Oct 2024 11:24:08 +0800 Subject: [PATCH] feat: deployed registry and exchangfe contracts --- README.md | 10 ++++++++++ script/deploy/Exchange.s.sol | 2 +- script/deploy/{Register.s.sol => Registry.s.sol} | 0 3 files changed, 11 insertions(+), 1 deletion(-) rename script/deploy/{Register.s.sol => Registry.s.sol} (100%) diff --git a/README.md b/README.md index d9537af..3e884ec 100644 --- a/README.md +++ b/README.md @@ -3,5 +3,15 @@ ## Contracts 1. Registry.sol + +``` +forge script script/deploy/Registry.s.sol:DeployRegistry --rpc-url --broadcast --private-key +``` + 2. Exchange.sol + +``` +forge script script/deploy/Exchange.s.sol:DeployExchange --rpc-url --broadcast --private-key +``` + 3. Vault.sol (Mock) diff --git a/script/deploy/Exchange.s.sol b/script/deploy/Exchange.s.sol index f1fa203..055dabe 100644 --- a/script/deploy/Exchange.s.sol +++ b/script/deploy/Exchange.s.sol @@ -8,7 +8,7 @@ contract DeployExchange is Script { function run() external { vm.startBroadcast(); - address registryAddress = 0xF64C3fA7F56b9C59010Be7a96BaB0d08055B3cfE; + address registryAddress = 0x9d69b9b2907Bba74E65Aa6c87B2284fF0F0931e0; address usdcAddress = 0x036CbD53842c5426634e7929541eC2318f3dCF7e; Exchange exchange = new Exchange(registryAddress, usdcAddress); diff --git a/script/deploy/Register.s.sol b/script/deploy/Registry.s.sol similarity index 100% rename from script/deploy/Register.s.sol rename to script/deploy/Registry.s.sol