Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: ganache migration base setup #27246

Draft
wants to merge 52 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
ecb2e16
base setup and simple send spec
seaona Sep 18, 2024
3945591
config tweak
seaona Sep 18, 2024
104372e
add require
seaona Sep 18, 2024
39dcb0e
fix identation
seaona Sep 18, 2024
1c0b0ed
fix
seaona Sep 18, 2024
04eec2b
add installation steps
seaona Sep 18, 2024
9576c51
add to path
seaona Sep 18, 2024
aae945a
fix?
seaona Sep 18, 2024
7d988ac
dedupe
seaona Sep 18, 2024
4b2dcb1
lavamoat auto
seaona Sep 18, 2024
38b4b80
run foundry install in all test jobs
seaona Sep 18, 2024
189fdc5
anvil seeder setup
seaona Sep 20, 2024
b9a66c1
rename
seaona Sep 20, 2024
e70354a
Merge branch 'develop' into ganache-migration-anvil
seaona Sep 20, 2024
a126370
fix benchmark
seaona Sep 20, 2024
eeac3a8
yarn dedupe
seaona Sep 20, 2024
b5d5315
fix lint
seaona Sep 20, 2024
a33e7ae
fix remaining tests
seaona Sep 20, 2024
a78f5ae
wip
davidmurdoch Nov 8, 2024
226235c
coerce default arch
davidmurdoch Nov 8, 2024
fd4d10a
lavamoat
davidmurdoch Nov 8, 2024
5de492a
lint
davidmurdoch Nov 9, 2024
a55f700
some polish
davidmurdoch Nov 13, 2024
8d55035
fix
davidmurdoch Nov 13, 2024
628af1a
polish
davidmurdoch Nov 13, 2024
15cb1a1
add `cache clean` command
davidmurdoch Nov 13, 2024
d9c2f36
fix yarn lock
davidmurdoch Nov 13, 2024
d211f1d
more polish
davidmurdoch Nov 14, 2024
f82825c
align node versions in CI and local
davidmurdoch Nov 14, 2024
d926ecd
align again, lavamoat doesn't support 20.16
davidmurdoch Nov 15, 2024
d080ea7
lavamoat doesn't work with some node versions
davidmurdoch Nov 15, 2024
cee1ac7
Merge branch 'develop' into ganache-migration-anvil
seaona Nov 19, 2024
7b8f51b
rebase
seaona Nov 19, 2024
c06eb88
some job fixes
seaona Nov 19, 2024
79da9f6
more rebase fixes
seaona Nov 19, 2024
aa5e8b8
fix
seaona Nov 20, 2024
e63cd7f
useAnvil
seaona Nov 20, 2024
0adc661
Merge branch 'develop' into ganache-migration-anvil
seaona Nov 25, 2024
617d532
update balance vvalidation function
seaona Nov 25, 2024
27e4895
round decimals balance
seaona Nov 25, 2024
66c17fb
Merge branch 'develop' into ganache-migration-anvil
seaona Nov 25, 2024
b3ac483
Merge branch 'foundryup' into ganache-migration-anvil
seaona Nov 26, 2024
d571b48
update img version to test
seaona Nov 26, 2024
2c5d9f0
fix
seaona Nov 26, 2024
9eeac53
fix
seaona Nov 26, 2024
03299f4
20.17
seaona Nov 26, 2024
51b384e
tweak install path
seaona Nov 26, 2024
6b9b0b2
Revert "tweak install path"
seaona Nov 26, 2024
0f82169
Merge branch 'develop' into ganache-migration-anvil
seaona Nov 27, 2024
9841a55
add logs for path
seaona Nov 27, 2024
aaef9af
determine path
seaona Nov 27, 2024
ac507d6
fix lint
seaona Nov 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ aliases:
circleci step halt
fi

commands:
foundry-install:
steps:
- run:
name: Install Foundry package for Anvil Testing Dependency
command: yarn foundryup

workflows:
test_and_release:
when:
Expand Down Expand Up @@ -1079,6 +1086,7 @@ jobs:
- run:
name: Move test build to dist
command: mv ./dist-test-webpack ./dist
- foundry-install
- run:
name: test:e2e:chrome:webpack
command: .circleci/scripts/test-run-e2e.sh yarn test:e2e:chrome:webpack
Expand All @@ -1102,6 +1110,7 @@ jobs:
- run:
name: Move test zips to builds
command: mv ./builds-test ./builds
- foundry-install
- gh/install
- run:
name: test:api-specs
Expand Down Expand Up @@ -1134,6 +1143,7 @@ jobs:
- run:
name: Move test zips to builds
command: mv ./builds-test ./builds
- foundry-install
- run:
name: test:e2e:chrome
command: .circleci/scripts/test-run-e2e.sh yarn test:e2e:chrome
Expand All @@ -1158,6 +1168,7 @@ jobs:
- run:
name: Move test zips to builds
command: mv ./builds-test ./builds
- foundry-install
- run:
name: test:e2e:chrome:rpc
command: .circleci/scripts/test-run-e2e.sh yarn test:e2e:chrome:rpc
Expand All @@ -1182,6 +1193,7 @@ jobs:
- run:
name: Move test zips to builds
command: mv ./builds-test ./builds
- foundry-install
- run:
name: test:e2e:chrome:multi-provider
command: .circleci/scripts/test-run-e2e.sh yarn test:e2e:chrome:multi-provider
Expand All @@ -1206,6 +1218,7 @@ jobs:
- run:
name: Move test zips to builds
command: mv ./builds-test-mmi ./builds
- foundry-install
- run:
name: test:e2e:chrome:rpc
command: .circleci/scripts/test-run-e2e.sh yarn test:e2e:chrome:rpc --build-type=mmi
Expand All @@ -1223,6 +1236,7 @@ jobs:
- run: sudo corepack enable
- attach_workspace:
at: .
- foundry-install
- run:
name: test:e2e:single
command: .circleci/scripts/test-run-e2e.sh yarn test:e2e:single test/e2e/vault-decryption-chrome.spec.ts --browser chrome
Expand All @@ -1247,6 +1261,7 @@ jobs:
- run:
name: Move test zips to builds
command: mv ./builds-test-flask-mv2 ./builds
- foundry-install
- run:
name: test:e2e:firefox:flask
command: .circleci/scripts/test-run-e2e.sh yarn test:e2e:firefox:flask
Expand All @@ -1271,6 +1286,7 @@ jobs:
- run:
name: Move test zips to builds
command: mv ./builds-test-flask ./builds
- foundry-install
- run:
name: test:e2e:chrome:flask
command: .circleci/scripts/test-run-e2e.sh yarn test:e2e:chrome:flask
Expand All @@ -1296,6 +1312,7 @@ jobs:
- run:
name: Move test zips to builds
command: mv ./builds-test-mmi ./builds
- foundry-install
- run:
name: test:e2e:chrome:mmi
command: .circleci/scripts/test-run-e2e.sh yarn test:e2e:chrome:mmi --build-type=mmi
Expand All @@ -1318,6 +1335,7 @@ jobs:
- run:
name: Move test build to dist
command: mv ./dist-test-mmi-playwright ./dist
- foundry-install
- run:
name: Install chromium
command: yarn playwright install chromium
Expand Down Expand Up @@ -1358,6 +1376,7 @@ jobs:
- run:
name: Install chromium
command: yarn playwright install chromium
- foundry-install
- run:
name: test:e2e:chrome:swap
command: |
Expand Down Expand Up @@ -1391,6 +1410,7 @@ jobs:
- run:
name: Move test zips to builds
command: mv ./builds-test-mv2 ./builds
- foundry-install
- run:
name: test:e2e:firefox
command: .circleci/scripts/test-run-e2e.sh yarn test:e2e:firefox
Expand Down Expand Up @@ -1462,6 +1482,7 @@ jobs:
- run:
name: Move test zips to builds
command: mv ./builds-test ./builds
- foundry-install
- run:
name: Run page load benchmark
command: |
Expand Down
1 change: 1 addition & 0 deletions .depcheckrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ ignores:
- 'wait-on'
- 'tsx' # used in .devcontainer
- 'prettier-eslint' # used by the Prettier ESLint VSCode extension
- 'tar'
# storybook
- '@storybook/cli'
- '@storybook/core'
Expand Down
4 changes: 4 additions & 0 deletions .vscode/package.json-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"type": "string",
"description": "Deletes webpack's build cache. Useful to force a rebuild (webpack not detecting changes, node_modules have changed, etc)."
},
"foundryup": {
"type": "string",
"description": "Installs foundry's Anvil. Run `yarn foundryup --help` for advanced usage."
},
"postinstall": {
"type": "string",
"description": "Runs automatically after running `yarn` (`yarn install`) in order to prime the webpack dev build."
Expand Down
30 changes: 15 additions & 15 deletions lavamoat/browserify/beta/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,24 +188,11 @@
},
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": true,
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": true,
"@metamask/message-signing-snap>@noble/curves": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": {
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32>@noble/hashes": true,
"@metamask/message-signing-snap>@noble/curves": true,
"@metamask/utils>@scure/base": true
"viem>@scure/bip32": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32>@noble/hashes": {
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
Expand Down Expand Up @@ -5661,6 +5648,19 @@
"msCrypto": true
}
},
"viem>@scure/bip32": {
"packages": {
"@metamask/message-signing-snap>@noble/curves": true,
"@metamask/utils>@scure/base": true,
"viem>@scure/bip32>@noble/hashes": true
}
},
"viem>@scure/bip32>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"wait-on>rxjs": {
"globals": {
"cancelAnimationFrame": true,
Expand Down
30 changes: 15 additions & 15 deletions lavamoat/browserify/flask/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,24 +188,11 @@
},
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": true,
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": true,
"@metamask/message-signing-snap>@noble/curves": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": {
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32>@noble/hashes": true,
"@metamask/message-signing-snap>@noble/curves": true,
"@metamask/utils>@scure/base": true
"viem>@scure/bip32": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32>@noble/hashes": {
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
Expand Down Expand Up @@ -5661,6 +5648,19 @@
"msCrypto": true
}
},
"viem>@scure/bip32": {
"packages": {
"@metamask/message-signing-snap>@noble/curves": true,
"@metamask/utils>@scure/base": true,
"viem>@scure/bip32>@noble/hashes": true
}
},
"viem>@scure/bip32>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"wait-on>rxjs": {
"globals": {
"cancelAnimationFrame": true,
Expand Down
30 changes: 15 additions & 15 deletions lavamoat/browserify/main/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,24 +188,11 @@
},
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": true,
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": true,
"@metamask/message-signing-snap>@noble/curves": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": {
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32>@noble/hashes": true,
"@metamask/message-signing-snap>@noble/curves": true,
"@metamask/utils>@scure/base": true
"viem>@scure/bip32": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32>@noble/hashes": {
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
Expand Down Expand Up @@ -5661,6 +5648,19 @@
"msCrypto": true
}
},
"viem>@scure/bip32": {
"packages": {
"@metamask/message-signing-snap>@noble/curves": true,
"@metamask/utils>@scure/base": true,
"viem>@scure/bip32>@noble/hashes": true
}
},
"viem>@scure/bip32>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"wait-on>rxjs": {
"globals": {
"cancelAnimationFrame": true,
Expand Down
30 changes: 15 additions & 15 deletions lavamoat/browserify/mmi/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,24 +188,11 @@
},
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": true,
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": true,
"@metamask/message-signing-snap>@noble/curves": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": {
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32>@noble/hashes": true,
"@metamask/message-signing-snap>@noble/curves": true,
"@metamask/utils>@scure/base": true
"viem>@scure/bip32": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32>@noble/hashes": {
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
Expand Down Expand Up @@ -5729,6 +5716,19 @@
"msCrypto": true
}
},
"viem>@scure/bip32": {
"packages": {
"@metamask/message-signing-snap>@noble/curves": true,
"@metamask/utils>@scure/base": true,
"viem>@scure/bip32>@noble/hashes": true
}
},
"viem>@scure/bip32>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"wait-on>rxjs": {
"globals": {
"cancelAnimationFrame": true,
Expand Down
Loading
Loading