-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Push the latest contracts #516
Changes from 9 commits
bf36dba
97fb4ea
2531117
d8b7c79
fc31d31
a3713fe
f84604c
9190ea1
4854744
8136cec
119dd4a
40b1a4b
b184732
7394ddb
0b18094
215a869
901252d
ae0274e
18c0b6d
a78fa00
d65db76
23d9100
345498f
d6885f4
6585e29
a7fc9df
610820b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build and Test Workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18' # Adjust this as needed for your project | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Install Foundry | ||
run: | | ||
curl -L https://foundry.paradigm.xyz | bash | ||
export PATH="$PATH:/home/runner/.config/.foundry/bin" | ||
foundryup | ||
forge install | ||
|
||
- name: Generate Ethereum Private Key and Create .env File and run make | ||
run: | | ||
PRIVATE_KEY=$(node -e "console.log(require('crypto').randomBytes(32).toString('hex'))") | ||
echo "export PRIVATE_KEY=0x$PRIVATE_KEY" > .env | ||
echo "export RPC_URL=http://127.0.0.1:1337" >> .env | ||
echo "export CHAIN_ID=1337" >> .env | ||
export PATH="$PATH:/home/runner/.config/.foundry/bin" | ||
npx ganache-cli -g0 -p1337 --account 0x$PRIVATE_KEY,1001901919191919191 & | ||
sleep 5 | ||
make | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We'll move this file to a top-level dir, but it's fine here for now. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
# Upgrades IPC Gateway Diamond Facets on an EVM-compatible subnet using hardhat | ||
set -e | ||
|
||
if [ $# -ne 1 ] | ||
then | ||
echo "Expected a single argument with the name of the network to deploy (localnet, calibrationnet, mainnet)" | ||
exit 1 | ||
fi | ||
|
||
NETWORK=$1 | ||
|
||
if [ "$NETWORK" = "auto" ]; then | ||
echo "[*] Automatically getting chainID for network" | ||
source ops/chain-id.sh | ||
fi | ||
|
||
|
||
npx hardhat deploy-subnet-registry --network ${NETWORK} |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We'll move this file to a top-level dir, but it's fine here for now. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
# Upgrades IPC Gateway Diamond Facets on an EVM-compatible subnet using hardhat | ||
set -e | ||
|
||
if [ $# -ne 1 ] | ||
then | ||
echo "Expected a single argument with the name of the network to deploy (localnet, calibrationnet, mainnet)" | ||
exit 1 | ||
fi | ||
|
||
NETWORK=$1 | ||
|
||
if [ "$NETWORK" = "auto" ]; then | ||
echo "[*] Automatically getting chainID for network" | ||
source ops/chain-id.sh | ||
fi | ||
|
||
|
||
npx hardhat deploy-sa-diamond-and-facets --network ${NETWORK} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be integrated in the repo's GitHub workflows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed