Skip to content

Commit 4142f6d

Browse files
committed
Merge branch 'dev' into refactor(web)/migrate-to-wagmi
2 parents af72998 + 1908857 commit 4142f6d

File tree

164 files changed

+4542
-4026
lines changed

Some content is hidden

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

164 files changed

+4542
-4026
lines changed

.eslintrc.json

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/contracts-testing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Harden Runner
20-
uses: step-security/harden-runner@03bee3930647ebbf994244c21ddbc0d4933aab4f # v2.3.0
20+
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
2121
with:
2222
disable-sudo: true
2323
egress-policy: block
@@ -38,7 +38,7 @@ jobs:
3838
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
3939

4040
- name: Cache node modules
41-
uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0
41+
uses: actions/cache@04f198bf0b2a39f7230a4304bf07747a0bddf146
4242
env:
4343
cache-name: cache-node-modules
4444
with:

.github/workflows/dependabot-automerge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: ${{ github.actor == 'dependabot[bot]' }}
1313
steps:
1414
- name: Harden Runner
15-
uses: step-security/harden-runner@03bee3930647ebbf994244c21ddbc0d4933aab4f # v2.3.0
15+
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
1616
with:
1717
disable-sudo: true
1818
egress-policy: block
@@ -21,7 +21,7 @@ jobs:
2121
2222
- name: Dependabot metadata
2323
id: metadata
24-
uses: dependabot/fetch-metadata@4de7a6c08ce727a42e0adbbdc345f761a01240ce # v1.3.6
24+
uses: dependabot/fetch-metadata@cd6e996708b8cfe0b639401134a3b9a3177be7b2 # v1.5.1
2525
with:
2626
github-token: "${{ secrets.GITHUB_TOKEN }}"
2727

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Harden Runner
20-
uses: step-security/harden-runner@03bee3930647ebbf994244c21ddbc0d4933aab4f # v2.3.0
20+
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
2121
with:
2222
disable-sudo: true
2323
egress-policy: block

.github/workflows/deploy-bots.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Harden Runner
11-
uses: step-security/harden-runner@c8454efe5d0bdefd25384362fe217428ca277d57
11+
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969
1212
with:
1313
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
1414

1515
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
16-
- uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435
16+
- uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0
1717
- uses: aws-actions/setup-sam@2993f015a7af30461b7641a256042fe0c6fc0c2e
1818
- uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838
1919
with:
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy the Subgraph
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
network:
7+
description: The network to deploy the subgraph to
8+
required: true
9+
default: 'arbitrum-goerli'
10+
type: choice
11+
options:
12+
- arbitrum-goerli
13+
- arbitrum
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
buildAndDeploy:
20+
runs-on: ubuntu-latest
21+
environment: kleros-org-subgraph
22+
steps:
23+
- name: Harden Runner
24+
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
25+
with:
26+
egress-policy: audit
27+
28+
- name: Checkout code
29+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
30+
31+
- name: Set up Node.js
32+
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
33+
with:
34+
node-version: 16
35+
36+
- name: Install the dependencies
37+
run: yarn install
38+
39+
- name: Build the subgraph
40+
run: |
41+
yarn codegen
42+
yarn build
43+
44+
- name: Authenticate with TheGraph
45+
run: yarn graph auth "${{ secrets.SUBGRAPH_AUTH_TOKEN }}" --product hosted-service
46+
47+
- name: Deploy the subgraph
48+
run: yarn deploy:${{ inputs.network }}

.github/workflows/scorecards.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,21 @@ jobs:
3232

3333
steps:
3434
- name: Harden Runner
35-
uses: step-security/harden-runner@03bee3930647ebbf994244c21ddbc0d4933aab4f # v2.3.0
35+
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
3636
with:
3737
disable-sudo: true
3838
egress-policy: block
3939
allowed-endpoints: >
40-
api.github.com:443 api.osv.dev:443 auth.docker.io:443 bestpractices.coreinfrastructure.org:443 fulcio.sigstore.dev:443 github.com:443 index.docker.io:443 sigstore-tuf-root.storage.googleapis.com:443
40+
api.github.com:443
41+
api.securityscorecards.dev:443
42+
api.osv.dev:443
43+
auth.docker.io:443
44+
bestpractices.coreinfrastructure.org:443
45+
fulcio.sigstore.dev:443
46+
rekor.sigstore.dev:443
47+
github.com:443
48+
index.docker.io:443
49+
sigstore-tuf-root.storage.googleapis.com:443
4150
4251
- name: "Checkout code"
4352
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.1.0
@@ -75,6 +84,6 @@ jobs:
7584

7685
# Upload the results to GitHub's code scanning dashboard.
7786
- name: "Upload to code-scanning"
78-
uses: github/codeql-action/upload-sarif@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.1.27
87+
uses: github/codeql-action/upload-sarif@83f0fe6c4988d98a455712a27f0255212bba9bd4 # v2.1.27
7988
with:
8089
sarif_file: results.sarif

.github/workflows/sentry-release.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,21 @@ jobs:
1717
version: ${{ steps.set-version.outputs.version }}
1818
steps:
1919
- name: Harden Runner
20-
uses: step-security/harden-runner@03bee3930647ebbf994244c21ddbc0d4933aab4f # v2.3.0
20+
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
2121
with:
22-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
22+
disable-sudo: true
23+
egress-policy: block
24+
allowed-endpoints: >
25+
binaries.soliditylang.org:443
26+
github.com:443
27+
nodejs.org:443
28+
registry.yarnpkg.com:443
29+
sentry.io:443
2330
2431
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
2532

2633
- name: Cache node modules
27-
uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0
34+
uses: actions/cache@04f198bf0b2a39f7230a4304bf07747a0bddf146
2835
env:
2936
cache-name: cache-node-modules
3037
with:
@@ -57,7 +64,7 @@ jobs:
5764
working-directory: web
5865

5966
- name: Create Sentry release
60-
uses: getsentry/action-release@bd5f874fcda966ba48139b0140fb3ec0cb3aabdd # v1.2.1
67+
uses: getsentry/action-release@4744f6a65149f441c5f396d5b0877307c0db52c7 # v1.4.1
6168
env:
6269
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
6370
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}

.lintstagedrc.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
"*.{js,jsx,ts,tsx}": "prettier --write",
3-
"*.{md,html,json}": "prettier --write",
4-
"*.sol": [
5-
"prettier --write",
6-
"solhint --fix"
7-
]
2+
"*.{js,jsx,ts,tsx}": "prettier --write --config prettier-config/.prettierrc.js",
3+
"*.{md,html,json}": "prettier --write --config prettier-config/.prettierrc.js",
4+
"*.sol": "prettier --write --config prettier-config/.prettierrc.js"
85
}

.prettierrc.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)