Skip to content

Commit cf089de

Browse files
authored
feat: mainnet workflow (#92)
1 parent b5c1663 commit cf089de

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/release-prod.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release and Deploy Contract (Production)
2+
3+
on:
4+
workflow_dispatch:
5+
6+
# chain id: 519
7+
# sequencer admin: 0x00D9B38F71d319923B4bfB008FEBF78F2bf5C3dD
8+
# withdrawal admin: 0xfa963E3D8dfD6817aAF70140C1fbAEA094090Fa0
9+
# gas admin: 0x7b6DCeb408Ef51977Ec7aF2bE255b9Ed19Da9b3b
10+
# initial enter tokens: [0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, 0xdAC17F958D2ee523a2206206994597C13D831ec7]
11+
# permit2: 0x000000000022D473030F116dDEE9F6B43aC78BA3
12+
# per block gas limit: 30000000
13+
# per transact gas limit: 5000000
14+
15+
jobs:
16+
deploy-contract:
17+
uses: init4tech/actions/.github/workflows/solidity-deployment.yml@main
18+
permissions:
19+
contents: write
20+
id-token: write
21+
with:
22+
network: mainnet
23+
environment: prod
24+
forge-deployment-contract: ZenithScript
25+
forge-deployment-script-file: Zenith.s.sol
26+
forge-deployment-signature: "deploy(uint256,address,address,address,address[],address,uint256,uint256)"
27+
forge-deployment-params: "519 0x00D9B38F71d319923B4bfB008FEBF78F2bf5C3dD 0xfa963E3D8dfD6817aAF70140C1fbAEA094090Fa0 0x7b6DCeb408Ef51977Ec7aF2bE255b9Ed19Da9b3b [0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, 0xdAC17F958D2ee523a2206206994597C13D831ec7] 0x000000000022D473030F116dDEE9F6B43aC78BA3 30000000 5000000"
28+
etherscan-url: https://etherscan.io
29+
chain-id: 1
30+
deployer-address: ${{ vars.MAINNET_DEPLOYER_ADDRESS }}
31+
secrets:
32+
aws-deployer-role: ${{ secrets.AWS_DEPLOYER_ROLE }}
33+
kms-key-id: ${{ secrets.MAINNET_DEPLOYER_KEY_ID }}
34+
rpc-url: ${{ secrets.MAINNET_RPC_URL }}
35+
etherscan-api-key: ${{ secrets.ETHERSCAN_API_KEY }}
36+

0 commit comments

Comments
 (0)