Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b44108b
Add .env template
zguesmi Jul 24, 2025
7ed689e
Rename private key env variable
zguesmi Jul 24, 2025
1e16a5d
Update deployment CI
zguesmi Jul 25, 2025
12e959b
Update hardhat config
zguesmi Jul 25, 2025
36e9c63
Remove useless step
zguesmi Jul 25, 2025
f6b591f
Clean
zguesmi Jul 25, 2025
a7949a7
Rename workflow file
zguesmi Jul 25, 2025
13b66de
Revert "Rename workflow file"
zguesmi Jul 25, 2025
51e0267
Cleazn
zguesmi Jul 25, 2025
40c7b7f
Test deployment
zguesmi Jul 25, 2025
2209a6b
Comment temprarily
zguesmi Jul 25, 2025
5757475
Comment temprarily
zguesmi Jul 25, 2025
95a7dd4
Comment temprarily
zguesmi Jul 25, 2025
c2d2e7c
Add build step
zguesmi Jul 25, 2025
7cd7f98
Fix ci
zguesmi Jul 25, 2025
97d926c
Comment temprarily
zguesmi Jul 25, 2025
e7639f1
Fix CI
zguesmi Jul 25, 2025
f2a9ed7
Fix CI
zguesmi Jul 25, 2025
cf39267
Fix CI
zguesmi Jul 25, 2025
3250392
Fix CI
zguesmi Jul 25, 2025
6cb191a
chore: Save deployment artifacts for arbitrumSepolia (run_id: 1652419…
github-actions[bot] Jul 25, 2025
1bfb0fb
Restore full ci
zguesmi Jul 25, 2025
eba302a
Revert "Test deployment"
zguesmi Jul 25, 2025
c0f1032
Fix CI
zguesmi Jul 25, 2025
d7a53fd
Delete old deploymetn
zguesmi Jul 25, 2025
41f4688
chore: Save deployment artifacts for arbitrumSepolia (run_id: 1652471…
github-actions[bot] Jul 25, 2025
f5f76ec
force new deployment
zguesmi Jul 25, 2025
629120d
chore: Save deployment artifacts for arbitrumSepolia (run_id: 1652502…
github-actions[bot] Jul 25, 2025
f88ecf2
Restaure full workflow
zguesmi Jul 25, 2025
0100b06
Rename workflow file
zguesmi Jul 25, 2025
06f0be3
Merge branch 'develop' into feature/deployment-ci
zguesmi Jul 28, 2025
2475bdc
Unblock CI
zguesmi Jul 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .env.template
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
PRIVATE_KEY=
# Also defined in Github environments
DEPLOYER_PRIVATE_KEY=
EXPLORER_API_KEY=
IS_VERIFICATION_API_V2=
ARBISCAN_API_KEY=

# Local development
FUJI_RPC_URL=
ARBITRUM_SEPOLIA_RPC_URL=
104 changes: 0 additions & 104 deletions .github/workflows/deploy-smart-contracts.yml

This file was deleted.

77 changes: 77 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Deploy PoCo Contracts
on:
workflow_dispatch:
inputs:
network:
description: 'Network'
required: true
type: choice
options:
- hardhat
- arbitrumSepolia
- arbitrum
- avalancheFujiTestnet
- bellecour
default: 'hardhat'

jobs:
# Build and test before deploying.
build-and-test:
uses: ./.github/workflows/main.yml

deploy:
needs: build-and-test
runs-on: ubuntu-latest
permissions:
contents: write # Required for saving deployment
environment: ${{ inputs.network }} # Use the selected environment
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Nodejs
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm' # Cache dependencies

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

# TODO activate later.
# - name: Run fork tests
# run: |
# if [ "${{ inputs.network }}" == "arbitrumSepolia" ]; then
# npm run test:arbitrumSepolia
# elif [ "${{ inputs.network }}" == "avalancheFujiTestnet" ]; then
# npm run test:fuji
# fi

- name: Deploy contracts
env:
DEPLOYER_PRIVATE_KEY: ${{ secrets.DEPLOYER_PRIVATE_KEY }}
RPC_URL: ${{ secrets.RPC_URL }}
ARBISCAN_API_KEY: ${{ secrets.ARBISCAN_API_KEY }}
# TODO: Use Etherscan V2 API
# EXPLORER_API_KEY: ${{ secrets.EXPLORER_API_KEY }}
# IS_VERIFICATION_API_V2: ${{ vars.IS_VERIFICATION_API_V2 }}
run: npm run deploy -- --network ${{ inputs.network }}

- name: Update config.json with ERC1538Proxy address
if: inputs.network != 'hardhat'
env:
DEPLOYER_PRIVATE_KEY: ${{ secrets.DEPLOYER_PRIVATE_KEY }}
run: npx hardhat run scripts/tools/update-config.ts --network ${{ inputs.network }}

- name: Save deployment artifacts and updated config
if: inputs.network != 'hardhat'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'chore: Save deployment artifacts for ${{ inputs.network }} (run_id: ${{ github.run_id }})'
file_pattern: 'deployments/${{ inputs.network }}/* config/config.json'
commit_user_name: 'GitHub Actions Bot'
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
commit_author: 'GitHub Actions Bot <github-actions[bot]@users.noreply.github.com>'
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
on:
pull_request:
workflow_call:

concurrency:
group: ${{ github.ref }}-ci
cancel-in-progress: true

jobs:
# Note: changing the name of the job disables Slither checks with the error:
Expand Down
2 changes: 1 addition & 1 deletion config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"factory": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"factoryType": "createx",
"DiamondProxy": "0x14B465079537655E1662F012e99EBa3863c8B9E0",
"salt": "0x0000000000000000000000000000000000000000000000000000000000000000"
"salt": "0x00000000244df0848122154315af71fe140f3db0fe014031783b094600000000"
}
},
"default": {
Expand Down
2 changes: 1 addition & 1 deletion deployments/arbitrumSepolia/AppRegistry.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion deployments/arbitrumSepolia/DatasetRegistry.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion deployments/arbitrumSepolia/ENSIntegrationDelegate.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
],
"numDeployments": 2,
"bytecode": "0x608060405234801561001057600080fd5b5061043e806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80633121db1c1461003b5780638da5cb5b14610050575b600080fd5b61004e6100493660046102b3565b61006e565b005b6100586100fb565b604051610065919061034b565b60405180910390f35b6100766100fb565b6001600160a01b0316610087610173565b6001600160a01b0316146100b65760405162461bcd60e51b81526004016100ad906103bb565b60405180910390fd5b6100f68383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061017792505050565b505050565b6000306001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561013657600080fd5b505afa15801561014a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061016e9190610290565b905090565b3390565b6040516302571be360e01b81526001600160a01b038316906302571be3906101c3907f91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e29060040161035f565b60206040518083038186803b1580156101db57600080fd5b505afa1580156101ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102139190610290565b6001600160a01b031663c47f0027826040518263ffffffff1660e01b815260040161023e9190610368565b602060405180830381600087803b15801561025857600080fd5b505af115801561026c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100f69190610333565b6000602082840312156102a1578081fd5b81516102ac816103f0565b9392505050565b6000806000604084860312156102c7578182fd5b83356102d2816103f0565b9250602084013567ffffffffffffffff808211156102ee578384fd5b818601915086601f830112610301578384fd5b81358181111561030f578485fd5b876020828501011115610320578485fd5b6020830194508093505050509250925092565b600060208284031215610344578081fd5b5051919050565b6001600160a01b0391909116815260200190565b90815260200190565b6000602080835283518082850152825b8181101561039457858101830151858201604001528201610378565b818111156103a55783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6001600160a01b038116811461040557600080fd5b5056fea264697066735822122026c2cc2fb2b7ae91ac742f9bc8485fa6b3122ec34aeb657594b9ab5e6ae2b6bf64736f6c634300060c0033"
}
}
Loading