Skip to content

Commit

Permalink
chore: add sepolia deploy script + helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
filipviz committed Apr 9, 2024
1 parent 4a4990d commit c662935
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
GOERLI_RPC_PROVIDER_URL=
SEPOLIA_RPC_PROVIDER_URL=
MAINNET_RPC_PROVIDER_URL=
SENDER_ADDRESS=
ETHERSCAN_API_KEY=
14 changes: 14 additions & 0 deletions contracts/scripts/Deploy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}

0 comments on commit c662935

Please sign in to comment.