Rolldown on_idle_hook & configurable dispute period #723
E2E report yarn test-rolldownWithdrawal ❌
❌ e2eTests/reports/junit.xml-a39ba5c0-aa5a-11ef-b50d-5997c11c6039.xml
11 tests were completed in 882s with 9 passed, 2 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
test/sequential/rolldown.withdraw.fees.test.ts | 5✅ | 118s | ||
test/sequential/rolldown.withdraw.merkleRoot.test.ts | 4✅ | 2❌ | 764s |
✅ test/sequential/rolldown.withdraw.fees.test.ts
✅ GIVEN a withdrawal, WHEN paying with GASP and withdrawing GASP, some fees goes to treasury
✅ GIVEN a withdrawal, WHEN paying with GASP and withdrawing Eth, some fees goes to treasury
✅ GIVEN a withdrawal, WHEN paying with GASP and withdrawing ALL GASP, extrinsic fail
✅ GIVEN a withdrawal, WHEN user having only Eth and withdrawing Eth, extrinsic fail
✅ Given a fee withdrawal payment WHEN withdrawal is sent from another account THEN the fee is deducted from from sender's account
❌ test/sequential/rolldown.withdraw.merkleRoot.test.ts
Withdraw & Batches tests -
✅ Given a cancel WHEN block is processed THEN it will create an update that needs to be sent through a batch to L1 for justification
✅ Given a withdraw extrinsic run WHEN token address does not exist THEN a withdraw fail and no l2update is stored
✅ Given a withdraw extrinsic run WHEN token address exist but requester does not have funds THEN a withdraw fail and no l2update is stored
✅ Given a succeed withdraw, when block is executed Then tokens are removed from user wallet
❌ GIVEN <batchSize - 1> withdraws, AND manually generated batch and create another withdraw for some other network (arb) THEN the batch is not generated
Error: expect(received).toEqual(expected) // deep equality
❌ Given a failed deposit TX, then a withdrawal can be created by `refundFailedDeposit
Error: thrown: "not found within blocks limit"
Annotations
Check failure on line 0 in e2eTests/reports/junit.xml-a39ba5c0-aa5a-11ef-b50d-5997c11c6039.xml
github-actions / E2E report yarn test-rolldownWithdrawal
test/sequential/rolldown.withdraw.merkleRoot.test.ts ► Withdraw & Batches tests - ► GIVEN <batchSize - 1> withdraws, AND manually generated batch and create another withdraw for some other network (arb) THEN the batch is not generated
Failed test found in:
e2eTests/reports/junit.xml-a39ba5c0-aa5a-11ef-b50d-5997c11c6039.xml
Error:
Error: expect(received).toEqual(expected) // deep equality
Raw output
Error: expect(received).toEqual(expected) // deep equality
Expected: 0
Received: 1
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.withdraw.merkleRoot.test.ts:207:25
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 0 in e2eTests/reports/junit.xml-a39ba5c0-aa5a-11ef-b50d-5997c11c6039.xml
github-actions / E2E report yarn test-rolldownWithdrawal
test/sequential/rolldown.withdraw.merkleRoot.test.ts ► Withdraw & Batches tests - ► Given a failed deposit TX, then a withdrawal can be created by `refundFailedDeposit
Failed test found in:
e2eTests/reports/junit.xml-a39ba5c0-aa5a-11ef-b50d-5997c11c6039.xml
Error:
Error: thrown: "not found within blocks limit"
Raw output
Error: thrown: "not found within blocks limit"
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.withdraw.merkleRoot.test.ts:220:3
at _dispatchDescribe (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/index.js:91:26)
at describe (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/index.js:55:5)
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.withdraw.merkleRoot.test.ts:34:1
at SourceTextModule.evaluate (node:internal/vm/module:226:23)
at Runtime.linkAndEvaluateModule (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runtime/build/index.js:710:20)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at jestAdapter (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:75:5)
at runTestInternal (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/runTest.js:444:34)