Skip to content

Commit

Permalink
ci: add deploy scroll sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
noyyyy committed Oct 15, 2023
1 parent 66268c1 commit cb5ea26
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: pnpm install

- name: deploy on lattice testnet
run: cd packages/contracts; pnpm run deploy:alt
run: cd packages/contracts; pnpm run deploy:scrollSepolia;

- name: build
run: pnpm build
Expand Down
7 changes: 6 additions & 1 deletion packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ gas_reports = ["*"]
src = "src"
test = "test"
out = "out"
bytecode_hash = 'none'
allow_paths = [
# pnpm symlinks to the project root's node_modules
"../../node_modules",
Expand All @@ -19,7 +20,7 @@ allow_paths = [
]
extra_output_files = ["abi", "evm.bytecode"]
fs_permissions = [{ access = "read", path = "./" }]
defaultGasLimit=6000000
defaultGasLimit = 6000000

[profile.lattice-testnet]
eth_rpc_url = "https://follower.testnet-chain.linfra.xyz"
Expand All @@ -36,6 +37,10 @@ eth_rpc_url = "https://linea-goerli.infura.io/v3/387863acec7546a493dc43cb04d8c22
optimizer = true
optimizer_runs = 3000

[profile.scrollSepolia]
eth_rpc_url = "https://sepolia-rpc.scroll.io"
optimizer = true
optimizer_runs = 3000

[profile.mumbai]
eth_rpc_url = "https://polygon-mumbai.g.alchemy.com/v2/iUC0GH6CW_qfRxEzlipX-obRqJZRcnfg"
Expand Down
3 changes: 2 additions & 1 deletion packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"deploy:linea": "pnpm run build && mud deploy --profile=linea-testnet --priorityFeeMultiplier 6600",
"deploy:mumbai": "pnpm run build && mud deploy --profile=mumbai",
"deploy:alt": "pnpm run build && mud deploy --profile=alt",
"deploy:scrollSepolia": "pnpm run build && mud deploy --profile=scrollSepolia",
"deploy-all": "pnpm run build && pnpm run deploy:testnet && pnpm run deploy:alt",
"dev": "pnpm mud dev-contracts",
"lint": "pnpm run prettier && pnpm run solhint",
Expand All @@ -37,4 +38,4 @@
"solhint-config-mud": "2.0.0-next.8",
"solhint-plugin-mud": "2.0.0-next.8"
}
}
}

0 comments on commit cb5ea26

Please sign in to comment.