Skip to content

Commit 258e652

Browse files
authored
Merge pull request #82 from aragon/main
Backport the artifact build changes to release-1.1
2 parents ae2ecf9 + 17ee644 commit 258e652

File tree

4 files changed

+1017
-828
lines changed

4 files changed

+1017
-828
lines changed

Makefile

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,21 @@ FORGE_ZKSYNC:=forge-zksync
1010

1111
##
1212

13+
ACCENT := \e[33m
14+
LIGHTER := \e[37m
15+
NORMAL := \e[0m
16+
COLUMN_START := 20
17+
1318
.PHONY: help
14-
help: ## Display the current message
15-
@echo "Available targets:"
19+
help: ## Show the main recipes
20+
@echo -e "Available recipes:\n"
1621
@cat Makefile | while IFS= read -r line; do \
17-
if [[ "$$line" == "##" ]]; then \
22+
if [[ "$$line" == "##" ]]; then \
1823
echo "" ; \
19-
elif [[ "$$line" =~ ^([^:]+):(.*)##\ (.*)$$ ]]; then \
20-
echo -e " - make $${BASH_REMATCH[1]} \t\t$${BASH_REMATCH[3]}" ; \
24+
elif [[ "$$line" =~ ^##\ (.*)$$ ]]; then \
25+
printf "\n$${BASH_REMATCH[1]}\n\n" ; \
26+
elif [[ "$$line" =~ ^([^:#]+):(.*)##\ (.*)$$ ]]; then \
27+
printf " make $(ACCENT)%-*s$(LIGHTER) %s$(NORMAL)\n" $(COLUMN_START) "$${BASH_REMATCH[1]}" "$${BASH_REMATCH[3]}" ; \
2128
fi ; \
2229
done
2330

npm-artifacts/prepare-abi.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ TARGET_ABI_FILE="./src/abi.ts"
1111
# Move into contracts package and install dependencies
1212
cd $CONTRACTS_FOLDER
1313

14-
yarn --ignore-scripts && yarn build
14+
yarn install --ignore-scripts && yarn build
1515

1616
# Move back to artifacts package
1717
cd - > /dev/null
@@ -32,7 +32,7 @@ do
3232
SRC_FILE_PATH=${SRC_FILE_PATH%"ZkSync.json"}.json
3333
fi
3434

35-
ABI=$(node -e "console.log(JSON.stringify(JSON.parse(fs.readFileSync(\"$SRC_FILE_PATH\").toString()).abi))")
35+
ABI=$(node -p "JSON.stringify(JSON.parse(fs.readFileSync(\"$SRC_FILE_PATH\").toString()).abi)")
3636

3737
echo "const ${CONTRACT_NAME}ABI = $ABI as const;" >> $TARGET_ABI_FILE
3838
echo "export {${CONTRACT_NAME}ABI};" >> $TARGET_ABI_FILE

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"devDependencies": {
4040
"@openzeppelin/openzeppelin-foundry-upgrades": "github:openzeppelin/openzeppelin-foundry-upgrades",
4141
"dotenv-cli": "^7.4.2",
42-
"forge-std": "github:foundry-rs/forge-std#v1.9.4",
42+
"forge-std": "github:foundry-rs/forge-std#v1.12.0",
4343
"lodash.startcase": "^4.4.0",
4444
"prettier": "^2.8.8",
4545
"prettier-plugin-solidity": "^1.1.3",
@@ -53,7 +53,7 @@
5353
"@aragon/osx": "^1.4.0",
5454
"@aragon/osx-commons-configs": "^0.8.0",
5555
"@aragon/osx-commons-contracts": "^1.4.0",
56-
"@ensdomains/ens-contracts": "^1.1.4",
56+
"@ensdomains/ens-contracts": "0.0.11",
5757
"@openzeppelin/contracts": "^4.9.6",
5858
"@openzeppelin/contracts-upgradeable": "^4.9.6"
5959
}

0 commit comments

Comments
 (0)