Skip to content

Commit

Permalink
feat: added new StateRegistry contract to expose more state-related-s…
Browse files Browse the repository at this point in the history
…cenarios (#731)

* chore: add tests

Signed-off-by: nikolay <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>

* feat: added more logic to states testing for migration

- reorganized folders
- added testing tags to test suites
- divided tests into two suite: pre-migration and post-migration
- added logic for mapping KV object
- added a writing to disk feature to capture states
- added @post-migration-non-view-functions tests

Signed-off-by: Logan Nguyen <[email protected]>

* feat: added freeze-network-node script

Signed-off-by: Logan Nguyen <[email protected]>
Co-Authored-By: Nikolay Atanasow <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>

* chore: added comment for freeze script

Signed-off-by: Logan Nguyen <[email protected]>

* feat: added deleteBalance method

Signed-off-by: Logan Nguyen <[email protected]>

* feat: added getContractStorageStateHash() to get all contract storage state

Signed-off-by: Logan Nguyen <[email protected]>

* chore: skip `Hapi vs Ethereum token create test` for now

Signed-off-by: Logan Nguyen <[email protected]>

* feat: added state tests for erc20/721/1155

Signed-off-by: Logan Nguyen <[email protected]>

* test: ci migration testing (#733)

Signed-off-by: Logan Nguyen <[email protected]>
Co-Authored-By: Iliya Savov <[email protected]>
Co-Authored-By: Iliya Savov <[email protected]>
Co-Authored-By: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-Authored-By: Logan Nguyen <[email protected]>

* chore: re-enabled `Hapi vs Ethereum token create test`

Signed-off-by: Logan Nguyen <[email protected]>

---------

Signed-off-by: nikolay <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
Co-authored-by: nikolay <[email protected]>
Co-authored-by: Nikolay Atanasow <[email protected]>
Co-authored-by: Iliya Savov <[email protected]>
Co-authored-by: Iliya Savov <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
6 people authored Jul 12, 2024
1 parent 14a7e97 commit 8865452
Show file tree
Hide file tree
Showing 26 changed files with 2,573 additions and 26 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/migration-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ on:

jobs:
check:
name: Migration testing (${{ inputs.preMigrationTestTags }}/${{ inputs.postMigrationTestTags }}) with initial N:${{ inputs.initialNetworkNodeTag }}, M:${{ inputs.initialMirrorNodeTag }}, R:${{ inputs.initialRelayTag }} and
name:
Migration testing (${{ inputs.preMigrationTestTags }}/${{ inputs.postMigrationTestTags }}) with initial N:${{ inputs.initialNetworkNodeTag }}, M:${{ inputs.initialMirrorNodeTag }}, R:${{ inputs.initialRelayTag }} and
target N:${{ inputs.targetNetworkNodeTag }}, M:${{ inputs.targetMirrorNodeTag }}, R:${{ inputs.targetRelayTag }}
runs-on: [self-hosted, Linux, large, ephemeral]
steps:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ coverage/
## --- Hardhat Gitignore for Foundry artifacts ---
artifacts/forge-std
artifacts/ds-test
test/state-registry/states.json
test/state-registry/ercStates.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "number",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]
Loading

0 comments on commit 8865452

Please sign in to comment.