-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Hardhat tests running on Solo (#22)
* first commit * first commit * some tests fixed * more tests * more tests fixed * added correct chainId for solo * fixed more tests * removed unneccessary await * fix: leaving the code as it was * fix: changed entrypoint contract * more tests fixed * fix: changed entrypoint contract * fix: small change * fix: getting chainid from a single place * more tests fixed * comment amended * more changes * more tests fixed * more tests fixed * ci * test * renamed package scripts for tests * renamed package scripts for tests * removed unused test file since the test is duplicated * fixed helpers test * small change * using entrypoint to fund vtho * test cleanup * test cleanup * fixed another test * all tests passing * fixed some problems * fixed last test * shards config * shards config * shards config * shards config * shards config * added all util files to utils folder * 3rd shard * 3rd shard * 3rd shard * 3rd shard * 3rd shard * removed only * checking for failers * fail-fast added * fixed one more test * fixed the other test * running pipeline only on PRs * fixed the other test * added network support * readme updated * readme updated * readme updated * tests reviewed * adding chainId depending on the network * removed from block since it runs from solo and sometimes the block goes before the one in the receipt * readme updated * file renamed * readme updated * contributing renamed * removed base gasfee * removed base gasfee * allowance checked already performed * test fixed * removed identation
- Loading branch information
1 parent
f222461
commit 7d50d00
Showing
29 changed files
with
1,029 additions
and
1,043 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Account Abstraction workflow | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- vechain | ||
|
||
jobs: | ||
call-workflow-hardhat-tests: | ||
uses: ./.github/workflows/test-contracts.yml | ||
with: | ||
shard-matrix: "{ \"shard\": [1,2,3] }" | ||
secrets: inherit | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Account abstraction contract tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
shard-matrix: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
run-tests-and-build-report: | ||
name: Test Smart Contracts with Hardhat | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
packages: read | ||
strategy: | ||
fail-fast: false | ||
matrix: ${{ fromJSON(inputs.shard-matrix) }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Use Node v20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'yarn' | ||
registry-url: 'https://npm.pkg.github.com' | ||
always-auth: true | ||
scope: '@vechain' | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Smart contract tests | ||
run: yarn test:shard${{ matrix.shard }}:compose:v2 | ||
|
||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.