From c66293598b57102e6073c054fa5530dc2b06bf0b Mon Sep 17 00:00:00 2001 From: Filip Date: Tue, 9 Apr 2024 12:45:59 -0400 Subject: [PATCH] chore: add sepolia deploy script + helpers --- .env.example | 1 + contracts/scripts/Deploy.sol | 14 ++++++++++++++ package.json | 3 ++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 3d1bbcb..63c2665 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,5 @@ GOERLI_RPC_PROVIDER_URL= +SEPOLIA_RPC_PROVIDER_URL= MAINNET_RPC_PROVIDER_URL= SENDER_ADDRESS= ETHERSCAN_API_KEY= \ No newline at end of file diff --git a/contracts/scripts/Deploy.sol b/contracts/scripts/Deploy.sol index 426c069..84436db 100644 --- a/contracts/scripts/Deploy.sol +++ b/contracts/scripts/Deploy.sol @@ -8,6 +8,20 @@ import '@jbx-protocol/juice-contracts-v3/contracts/interfaces/IJBProjects.sol'; import '../JBProjectHandles.sol'; +contract DeploySepolia is Test { + IJBOperatorStore _operatorStore = IJBOperatorStore(0x8f63c744c0280ef4b32af1f821c65e0fd4150ab3); + IJBProjects _projects = IJBProjects(0x43CB8FCe4F0d61579044342A5d5A027aB7aE4D63); + IJBProjectHandles _oldHandle = IJBProjectHandles(0x0000000000000000000000000000000000000000); + + JBProjectHandles jbProjectHandles; + + function run() external { + vm.startBroadcast(); + + jbProjectHandles = new JBProjectHandles(_projects, _operatorStore, _oldHandle); + } +} + contract DeployGoerli is Test { IJBOperatorStore _operatorStore = IJBOperatorStore(0x99dB6b517683237dE9C494bbd17861f3608F3585); IJBProjects _projects = IJBProjects(0x21263a042aFE4bAE34F08Bb318056C181bD96D3b); diff --git a/package.json b/package.json index 9edfa93..36ff8c2 100644 --- a/package.json +++ b/package.json @@ -21,9 +21,10 @@ "scripts": { "pretty": "prettier --write \"./**/*.{js,jsx,json,sol}\"", "deploy-goerli": "source .env && forge script DeployGoerli --rpc-url $GOERLI_RPC_PROVIDER_URL --broadcast --mnemonic-paths mnemonic.txt --verify --etherscan-api-key $ETHERSCAN_API_KEY --sender $SENDER_ADDRESS", + "deploy-sepolia": "source .env && forge script DeploySepolia --rpc-url $SEPOLIA_RPC_PROVIDER_URL --broadcast --mnemonic-paths mnemonic.txt --verify --etherscan-api-key $ETHERSCAN_API_KEY --sender $SENDER_ADDRESS", "deploy-mainnet": "source .env && forge script DeployMainnet --rpc-url $MAINNET_RPC_PROVIDER_URL --broadcast --mnemonic-paths mnemonic.txt --verify --etherscan-api-key $ETHERSCAN_API_KEY --sender $SENDER_ADDRESS" }, "dependencies": { "@jbx-protocol/juice-contracts-v3": "^2.0.0" } -} \ No newline at end of file +}