Skip to content

Commit

Permalink
debug deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Jan 7, 2024
1 parent 556af09 commit 8092568
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = rainix.pkgs.${system};

in rec {
packages = rec {
deploy-single-contract = contract: ''
forge script script/Deploy${contract}.sol:Deploy${contract} \
--legacy \
--verify \
--broadcast \
--rpc-url "''${CI_DEPLOY_RPC_URL}" \
--etherscan-api-key "''${EXPLORER_VERIFICATION_KEY}" \
;
'';

concrete-contracts = ["OrderBook" "GenericPoolOrderBookV3FlashBorrower" "GenericPoolOrderBookV3ArbOrderTaker" "RouteProcessorOrderBookV3ArbOrderTaker"];
deploy-single-contract = contract: ''
forge script script/Deploy${contract}.sol:Deploy${contract} \
--legacy \
--verify \
--broadcast \
--rpc-url "''${CI_DEPLOY_RPC_URL}" \
--etherscan-api-key "''${EXPLORER_VERIFICATION_KEY}" \
;
'';
in {
packages = {
deploy-contracts = rainix.mkTask.${system} { name = "deploy-contracts"; body = (''
set -euo pipefail;
forge build --force;
Expand Down

0 comments on commit 8092568

Please sign in to comment.