Skip to content

Commit 1764e67

Browse files
committed
Merge branch 'feat/erc20-fees-on-arbitrator' into feat/interfaces-v2-rebased2
2 parents e46bffc + 28d492b commit 1764e67

File tree

76 files changed

+6144
-4741
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+6144
-4741
lines changed

.github/workflows/deploy-subgraph.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
options:
1212
- arbitrum-goerli
1313
- arbitrum
14+
update:
15+
description: Whether to update the subgraph with the current artifacts for the selected network.
16+
required: true
17+
default: true
18+
type: boolean
1419

1520
permissions:
1621
contents: read
@@ -33,16 +38,38 @@ jobs:
3338
with:
3439
node-version: 16
3540

41+
- name: Install Yarn if running locally
42+
if: ${{ env.ACT }}
43+
run: npm install -g yarn
44+
3645
- name: Install the dependencies
3746
run: yarn install
3847

48+
- name: Install jq and yq
49+
if: ${{ inputs.update }}
50+
run: |
51+
mkdir bin
52+
wget -qO bin/jq https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64
53+
wget -qO bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
54+
chmod a+x bin/jq bin/yq
55+
56+
- name: Update the subgraph definition
57+
if: ${{ inputs.update }}
58+
run: |
59+
export PATH=$PWD/../bin:$PATH
60+
yarn update:${{ inputs.network }}
61+
working-directory: subgraph
62+
3963
- name: Build the subgraph
4064
run: |
4165
yarn codegen
4266
yarn build
43-
67+
working-directory: subgraph
68+
4469
- name: Authenticate with TheGraph
4570
run: yarn graph auth "${{ secrets.SUBGRAPH_AUTH_TOKEN }}" --product hosted-service
71+
working-directory: subgraph
4672

4773
- name: Deploy the subgraph
4874
run: yarn deploy:${{ inputs.network }}
75+
working-directory: subgraph

.github/workflows/scorecards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ jobs:
8484

8585
# Upload the results to GitHub's code scanning dashboard.
8686
- name: "Upload to code-scanning"
87-
uses: github/codeql-action/upload-sarif@807578363a7869ca324a79039e6db9c843e0e100 # v2.1.27
87+
uses: github/codeql-action/upload-sarif@6c089f53dd51dc3fc7e599c3cb5356453a52ca9e # v2.20.0
8888
with:
8989
sarif_file: results.sarif

contracts/.solhint.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
{
22
"extends": "solhint:recommended",
3-
"plugins": ["prettier"],
3+
"plugins": [
4+
"prettier"
5+
],
46
"rules": {
5-
"compiler-version": ["error", "^0.8.0"],
7+
"compiler-version": [
8+
"error",
9+
"^0.8.0"
10+
],
611
"func-visibility": [
712
"warn",
813
{

contracts/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@
4141
"@nomicfoundation/hardhat-chai-matchers": "^1.0.6",
4242
"@nomiclabs/hardhat-ethers": "^2.2.3",
4343
"@nomiclabs/hardhat-solhint": "^3.0.1",
44-
"@openzeppelin/contracts": "^4.9.1",
44+
"@openzeppelin/contracts": "^4.9.2",
4545
"@typechain/ethers-v5": "^11.0.0",
4646
"@typechain/hardhat": "^7.0.0",
4747
"@types/chai": "^4.3.5",
4848
"@types/mocha": "^10.0.1",
4949
"@types/node": "^16.18.36",
5050
"chai": "^4.3.7",
51-
"dotenv": "^16.1.4",
51+
"dotenv": "^16.3.1",
5252
"ethereumjs-util": "^7.1.5",
5353
"ethers": "^5.7.2",
5454
"hardhat": "^2.15.0",
5555
"hardhat-contract-sizer": "^2.10.0",
56-
"hardhat-deploy": "^0.11.30",
56+
"hardhat-deploy": "^0.11.31",
5757
"hardhat-deploy-ethers": "^0.4.0-next.1",
5858
"hardhat-deploy-tenderly": "^0.2.0",
5959
"hardhat-docgen": "^1.3.0",

contracts/tsconfig.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
{
22
"extends": "@kleros/kleros-v2-tsconfig/base.json",
3-
"include": ["./src", "./scripts", "./test", "./typechain-types", "./deploy"],
4-
"files": ["./hardhat.config.ts"]
3+
"include": [
4+
"./src",
5+
"./scripts",
6+
"./test",
7+
"./typechain-types",
8+
"./deploy"
9+
],
10+
"files": [
11+
"./hardhat.config.ts"
12+
]
513
}

cspell.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
"version": "0.2",
44
"ignorePaths": [],
55
"dictionaryDefinitions": [],
6-
"dictionaries": ["en_US", "companies", "softwareTerms"],
6+
"dictionaries": [
7+
"en_US",
8+
"companies",
9+
"softwareTerms"
10+
],
711
"words": [
812
"arbitrum",
913
"commitlint",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"devDependencies": {
3737
"@commitlint/cli": "^17.6.5",
3838
"@commitlint/config-conventional": "^17.6.5",
39+
"buffer": "^5.5.0",
3940
"conventional-changelog-cli": "^2.2.2",
4041
"husky": "^8.0.3",
4142
"lint-staged": "^13.2.2",

prettier-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"main": "index.js",
55
"license": "MIT",
66
"dependencies": {
7-
"eslint": "^8.42.0",
7+
"eslint": "^8.43.0",
88
"prettier": "^2.8.8",
99
"prettier-plugin-solidity": "^1.1.3"
1010
},

scripts/act-subgraph.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
act workflow_dispatch -j buildAndDeploy --input network=arbitrum-goerli,update=true

scripts/check-prerequisites.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,22 @@ function require() #cmd
1111
fi
1212
}
1313

14+
# for the NPM and toolchain version management
15+
require volta
16+
17+
# for the local subgraph node
1418
require docker
1519
require docker-compose
20+
21+
# for some contracts utilities
22+
require cast
23+
require forge
24+
25+
# for the subgraph and contracts utilities
1626
require jq
1727
require yq
18-
require volta
28+
29+
# for the local testing of Github Actions
30+
require act
1931

2032
exit $status

0 commit comments

Comments
 (0)