Skip to content

Commit 989b259

Browse files
authored
refactor: rename to EDR (#4476)
1 parent 94cb2d5 commit 989b259

File tree

229 files changed

+1384
-1534
lines changed

Some content is hidden

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

229 files changed

+1384
-1534
lines changed

.cargo-husky/hooks/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
#
33
# Intended to be in sync with .github/workflows/hardhat-core-ci.yml's
4-
# test-rethnet-rs
4+
# test-edr-rs
55

66
if [ -z "${ALCHEMY_URL}" ] || [ -z "${INFURA_URL}" ]; then
77
echo WARNING: skipping remote tests because the ALCHEMY_URL and INFURA_URL environment variables are not defined. Local test results may differ from those in CI.

.github/workflows/edr-npm-release.yml

+15-15
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
runs-on: ${{ matrix.settings.host }}
8989
defaults:
9090
run:
91-
working-directory: ./crates/rethnet_evm_napi
91+
working-directory: ./crates/edr_evm_napi
9292
steps:
9393
- uses: actions/checkout@v3
9494
- name: Setup node
@@ -143,7 +143,7 @@ jobs:
143143
if: ${{ matrix.settings.docker }}
144144
with:
145145
image: ${{ matrix.settings.docker }}
146-
options: "--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build/crates/rethnet_evm_napi"
146+
options: "--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build/crates/edr_evm_napi"
147147
run: ${{ matrix.settings.build }}
148148
- name: Build
149149
run: ${{ matrix.settings.build }}
@@ -155,7 +155,7 @@ jobs:
155155
name: bindings-${{ matrix.settings.target }}
156156
# The upload artifact action doesn't respect the working directory setting. Unclear if this is a bug or not
157157
# https://github.com/actions/upload-artifact/issues/294
158-
path: ./crates/rethnet_evm_napi/${{ env.APP_NAME }}.*.node
158+
path: ./crates/edr_evm_napi/${{ env.APP_NAME }}.*.node
159159
if-no-files-found: error
160160
test-macOS-windows-binding:
161161
name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }}
@@ -175,7 +175,7 @@ jobs:
175175
runs-on: ${{ matrix.settings.host }}
176176
defaults:
177177
run:
178-
working-directory: ./crates/rethnet_evm_napi
178+
working-directory: ./crates/edr_evm_napi
179179
steps:
180180
- uses: actions/checkout@v3
181181
- name: Setup node
@@ -190,7 +190,7 @@ jobs:
190190
uses: actions/download-artifact@v3
191191
with:
192192
name: bindings-${{ matrix.settings.target }}
193-
path: ./crates/rethnet_evm_napi/
193+
path: ./crates/edr_evm_napi/
194194
- name: List packages
195195
run: ls -R .
196196
shell: bash
@@ -221,12 +221,12 @@ jobs:
221221
uses: actions/download-artifact@v3
222222
with:
223223
name: bindings-x86_64-unknown-linux-gnu
224-
path: ./crates/rethnet_evm_napi/
224+
path: ./crates/edr_evm_napi/
225225
- name: List packages
226226
run: ls -R .
227227
shell: bash
228228
- name: Test bindings
229-
run: docker run --rm -v $(pwd):/build -w /build/crates/rethnet_evm_napi node:${{ matrix.node }}-slim yarn test
229+
run: docker run --rm -v $(pwd):/build -w /build/crates/edr_evm_napi node:${{ matrix.node }}-slim yarn test
230230
test-linux-x64-musl-binding:
231231
name: Test bindings on x86_64-unknown-linux-musl - node@${{ matrix.node }}
232232
needs:
@@ -254,12 +254,12 @@ jobs:
254254
uses: actions/download-artifact@v3
255255
with:
256256
name: bindings-x86_64-unknown-linux-musl
257-
path: ./crates/rethnet_evm_napi/
257+
path: ./crates/edr_evm_napi/
258258
- name: List packages
259259
run: ls -R .
260260
shell: bash
261261
- name: Test bindings
262-
run: docker run --rm -v $(pwd):/build -w /build/crates/rethnet_evm_napi node:${{ matrix.node }}-alpine yarn test
262+
run: docker run --rm -v $(pwd):/build -w /build/crates/edr_evm_napi node:${{ matrix.node }}-alpine yarn test
263263
test-linux-aarch64-gnu-binding:
264264
name: Test bindings on aarch64-unknown-linux-gnu - node@${{ matrix.node }}
265265
needs:
@@ -277,7 +277,7 @@ jobs:
277277
uses: actions/download-artifact@v3
278278
with:
279279
name: bindings-aarch64-unknown-linux-gnu
280-
path: ./crates/rethnet_evm_napi/
280+
path: ./crates/edr_evm_napi/
281281
- name: List packages
282282
run: ls -R .
283283
shell: bash
@@ -295,7 +295,7 @@ jobs:
295295
uses: addnab/docker-run-action@v3
296296
with:
297297
image: node:${{ matrix.node }}-slim
298-
options: "--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build/crates/rethnet_evm_napi"
298+
options: "--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build/crates/edr_evm_napi"
299299
run: |
300300
set -e
301301
yarn test
@@ -311,7 +311,7 @@ jobs:
311311
uses: actions/download-artifact@v3
312312
with:
313313
name: bindings-aarch64-unknown-linux-musl
314-
path: ./crates/rethnet_evm_napi/
314+
path: ./crates/edr_evm_napi/
315315
- name: List packages
316316
run: ls -R .
317317
shell: bash
@@ -329,7 +329,7 @@ jobs:
329329
uses: addnab/docker-run-action@v3
330330
with:
331331
image: node:lts-alpine
332-
options: "--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build/crates/rethnet_evm_napi"
332+
options: "--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build/crates/edr_evm_napi"
333333
run: |
334334
set -e
335335
yarn test
@@ -367,7 +367,7 @@ jobs:
367367
if: ${{ needs.check_commit.outputs.match == 'true' }}
368368
defaults:
369369
run:
370-
working-directory: ./crates/rethnet_evm_napi
370+
working-directory: ./crates/edr_evm_napi
371371
steps:
372372
- uses: actions/checkout@v3
373373
- name: Setup node
@@ -381,7 +381,7 @@ jobs:
381381
- name: Download all artifacts
382382
uses: actions/download-artifact@v3
383383
with:
384-
path: ./crates/rethnet_evm_napi/artifacts
384+
path: ./crates/edr_evm_napi/artifacts
385385
- name: Move artifacts
386386
run: yarn artifacts
387387
- name: List packages

.github/workflows/hardhat-core-ci.yml

+20-20
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- $default-branch
7-
- "rethnet/main"
7+
- "edr/main"
88
paths:
99
- ".github/workflows/hardhat-core-ci.yml"
1010
- "rust-toolchain"
@@ -37,8 +37,8 @@ concurrency:
3737
cancel-in-progress: true
3838

3939
jobs:
40-
check-rethnet:
41-
name: Check Rethnet
40+
check-edr:
41+
name: Check EDR
4242
runs-on: ubuntu-latest
4343
# Setting RUSTFLAGS env for clippy makes it not include custom rules
4444
env:
@@ -67,15 +67,15 @@ jobs:
6767
test-core:
6868
name: Test core (${{ matrix.os }}, Node ${{ matrix.node }}, ${{ matrix.vm }})
6969
runs-on: ${{ matrix.os }}
70-
needs: check-rethnet
70+
needs: check-edr
7171
strategy:
7272
fail-fast: false
7373
matrix:
7474
node: [18.15]
7575
# disable until actions/virtual-environments#4896 is fixed
7676
# os: ["macos-latest", "ubuntu-latest", "windows-latest"]
7777
os: ["ubuntu-latest", "windows-latest"]
78-
vm: ["dual", "ethereumjs", "rethnet"]
78+
vm: ["dual", "ethereumjs", "edr"]
7979
steps:
8080
- uses: actions/checkout@v3
8181

@@ -118,15 +118,15 @@ jobs:
118118
test-provider:
119119
name: Test provider (${{ matrix.os }}, Node ${{ matrix.node }}, ${{ matrix.vm }})
120120
runs-on: ${{ matrix.os }}
121-
needs: check-rethnet
121+
needs: check-edr
122122
strategy:
123123
fail-fast: false
124124
matrix:
125125
node: [18.15]
126126
# disable until actions/virtual-environments#4896 is fixed
127127
# os: ["macos-latest", "ubuntu-latest", "windows-latest"]
128128
os: ["ubuntu-latest", "windows-latest"]
129-
vm: ["dual", "rethnet"]
129+
vm: ["dual", "edr"]
130130
steps:
131131
- uses: actions/checkout@v3
132132

@@ -173,10 +173,10 @@ jobs:
173173
FORCE_COLOR: 3
174174
run: yarn test:provider
175175

176-
test-rethnet-js:
177-
name: Test Rethnet bindings (${{ matrix.os }}, Node ${{ matrix.node }})
176+
test-edr-js:
177+
name: Test EDR bindings (${{ matrix.os }}, Node ${{ matrix.node }})
178178
runs-on: ${{ matrix.os }}
179-
needs: check-rethnet
179+
needs: check-edr
180180
strategy:
181181
fail-fast: false
182182
matrix:
@@ -188,7 +188,7 @@ jobs:
188188
RUSTFLAGS: "-Dwarnings -Ctarget-feature=+crt-static"
189189
defaults:
190190
run:
191-
working-directory: crates/rethnet_evm_napi
191+
working-directory: crates/edr_evm_napi
192192
steps:
193193
- uses: actions/checkout@v3
194194

@@ -215,10 +215,10 @@ jobs:
215215
- name: Test
216216
run: yarn test
217217

218-
test-rethnet-rs:
219-
name: Test Rethnet (${{ matrix.os }})
218+
test-edr-rs:
219+
name: Test EDR (${{ matrix.os }})
220220
runs-on: ${{ matrix.os }}
221-
needs: check-rethnet
221+
needs: check-edr
222222
strategy:
223223
fail-fast: false
224224
matrix:
@@ -275,10 +275,10 @@ jobs:
275275
# command: nextest
276276
# args: run --workspace --all-features --all-targets
277277

278-
rethnet-style:
279-
name: Check Rethnet Style
278+
edr-style:
279+
name: Check EDR Style
280280
runs-on: ubuntu-latest
281-
needs: check-rethnet
281+
needs: check-edr
282282
steps:
283283
- uses: actions/checkout@v3
284284

@@ -303,10 +303,10 @@ jobs:
303303
token: ${{ secrets.GITHUB_TOKEN }}
304304
args: --workspace --all-targets --all-features -- -Dwarnings
305305

306-
rethnet-docs:
307-
name: Build Rethnet Docs
306+
edr-docs:
307+
name: Build EDR Docs
308308
runs-on: ubuntu-latest
309-
needs: check-rethnet
309+
needs: check-edr
310310
steps:
311311
- uses: actions/checkout@v3
312312

0 commit comments

Comments
 (0)