This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Contract upgrade tooling: makefile + documentation (#293)
Signed-off-by: Alfonso de la Rocha <[email protected]> Co-authored-by: snissn <[email protected]> Co-authored-by: auto-commit <[email protected]> Co-authored-by: Alfonso de la Rocha <[email protected]> Co-authored-by: adlrocha <[email protected]> Co-authored-by: raulk <[email protected]> Co-authored-by: raulk <[email protected]>
- Loading branch information
1 parent
bf36dba
commit 97fb4ea
Showing
9 changed files
with
96 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters