GASP-1625 Feature/locked tokens (#841) #752
E2E report yarn test-rolldownPreOperationWithdrawal ❌
❌ e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
18 tests were completed in 1322s with 6 passed, 12 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
test/sequential/rolldown.withdraw.preOperation.test.ts | 6✅ | 12❌ | 1322s |
❌ test/sequential/rolldown.withdraw.preOperation.test.ts
Pre-operation withdrawal tests -
✅ Given <batchSize> withdrawals WHEN they run successfully THEN a batch is generated AUTOMATICALLY from that L1, from ranges of (n,n+<batchSize>-1)
❌ Given a withdraw extrinsic run WHEN tokens are available THEN a withdraw will happen and l2Requests will be stored waiting for batch
Error: thrown: Object {
❌ Given a withdraw extrinsic run WHEN token is Eth and user has some tokens THEN a withdraw will happen and update will be stored on l2Requests and will be stored waiting for batch
Error: thrown: Object {
✅ Given a withdraw in a batch extrinsic, When one of the calls fail from the batch, then tokens are reverted ( transactional )
✅ Given <3> withdrawals WHEN they run successfully and we wait <batchPeriod> blocks, a batch is created upon reaching the period
❌ Given <1> withdrawal WHEN we manually generate a batch for it THEN a batch is generated
Error: thrown: Object {
❌ GIVEN <batchSize - 1> withdraws and create manualBatch And wait for a timed generation WHEN another withdrawal is submitted THEN a batch is generated
Error: thrown: Object {
❌ GIVEN <batchSize - 1> withdraws and create manualBatch And wait for a timed generation WHEN create batch with <batchSize - 1> withdrawal and add another one THEN a batch is generated automatically
Error: thrown: Object {
❌ GIVEN a manually generated batch, from A,B, WHEN timed happen THEN automatic batch will skip those manual ids
Error: thrown: Object {
❌ GIVEN a manually generated batch, from A,B, WHEN up to 32 withdrawals happen THEN another automatic batch will run only including that missing id
Error: thrown: Object {
✅ GIven a utility.batch ( batched tx of 35 and last item in the utility.batch is the mm_on ) When maintenance mode, THEN No automatic batch can happen
❌ Creating two merkle trees generates the same output
Error: expect(received).toEqual(expected) // deep equality
✅ Given a manually batch generation, WHEN is not the forced, THEN start-end will be calculated automatically
✅ Given a manually batch generation, WHEN is the forced ( sudo ) , THEN start-end must be set manually
❌ Given a non-forced manually generation, WHEN triggered, start will be the latest index from the last generated MAX( manual or automatically ) and last will be the latest requestId
Error: thrown: Object {
❌ GIVEN a manual batch WHEN no pending requests THEN no batch is generated BUT tokens are subtracted
Error: thrown: Object {
❌ GIVEN manual batch THEN requires as parameter of the Eth Chain
Error: expect(received).toBe(expected) // Object.is equality
❌ GIVEN manual batch THEN requires as parameter of the Arb Chain
Error: thrown: Object {
Annotations
Check failure on line 0 in e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
github-actions / E2E report yarn test-rolldownPreOperationWithdrawal
test/sequential/rolldown.withdraw.preOperation.test.ts ► Pre-operation withdrawal tests - ► Given a withdraw extrinsic run WHEN tokens are available THEN a withdraw will happen and l2Requests will be stored waiting for batch
Failed test found in:
e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
Error:
Error: thrown: Object {
Raw output
Error: thrown: Object {
"data": "1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low",
}
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.withdraw.preOperation.test.ts:112: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.preOperation.test.ts:45: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)
Check failure on line 0 in e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
github-actions / E2E report yarn test-rolldownPreOperationWithdrawal
test/sequential/rolldown.withdraw.preOperation.test.ts ► Pre-operation withdrawal tests - ► Given a withdraw extrinsic run WHEN token is Eth and user has some tokens THEN a withdraw will happen and update will be stored on l2Requests and will be stored...
Failed test found in:
e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
Error:
Error: thrown: Object {
Raw output
Error: thrown: Object {
"data": "1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low",
}
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.withdraw.preOperation.test.ts:132: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.preOperation.test.ts:45: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)
Check failure on line 0 in e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
github-actions / E2E report yarn test-rolldownPreOperationWithdrawal
test/sequential/rolldown.withdraw.preOperation.test.ts ► Pre-operation withdrawal tests - ► Given <1> withdrawal WHEN we manually generate a batch for it THEN a batch is generated
Failed test found in:
e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
Error:
Error: thrown: Object {
Raw output
Error: thrown: Object {
"data": "1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low",
}
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.withdraw.preOperation.test.ts:202: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.preOperation.test.ts:45: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)
Check failure on line 0 in e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
github-actions / E2E report yarn test-rolldownPreOperationWithdrawal
test/sequential/rolldown.withdraw.preOperation.test.ts ► Pre-operation withdrawal tests - ► GIVEN <batchSize - 1> withdraws and create manualBatch And wait for a timed generation WHEN another withdrawal is submitted THEN a batch is generated
Failed test found in:
e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
Error:
Error: thrown: Object {
Raw output
Error: thrown: Object {
"data": "1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low",
}
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.withdraw.preOperation.test.ts:224: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.preOperation.test.ts:45: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)
Check failure on line 0 in e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
github-actions / E2E report yarn test-rolldownPreOperationWithdrawal
test/sequential/rolldown.withdraw.preOperation.test.ts ► Pre-operation withdrawal tests - ► GIVEN <batchSize - 1> withdraws and create manualBatch And wait for a timed generation WHEN create batch with <batchSize - 1> withdrawal and add another one THE...
Failed test found in:
e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
Error:
Error: thrown: Object {
Raw output
Error: thrown: Object {
"data": "1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low",
}
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.withdraw.preOperation.test.ts:274: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.preOperation.test.ts:45: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)
Check failure on line 0 in e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
github-actions / E2E report yarn test-rolldownPreOperationWithdrawal
test/sequential/rolldown.withdraw.preOperation.test.ts ► Pre-operation withdrawal tests - ► GIVEN a manually generated batch, from A,B, WHEN timed happen THEN automatic batch will skip those manual ids
Failed test found in:
e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
Error:
Error: thrown: Object {
Raw output
Error: thrown: Object {
"data": "1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low",
}
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.withdraw.preOperation.test.ts:324: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.preOperation.test.ts:45: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)
Check failure on line 0 in e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
github-actions / E2E report yarn test-rolldownPreOperationWithdrawal
test/sequential/rolldown.withdraw.preOperation.test.ts ► Pre-operation withdrawal tests - ► GIVEN a manually generated batch, from A,B, WHEN up to 32 withdrawals happen THEN another automatic batch will run only including that missing id
Failed test found in:
e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
Error:
Error: thrown: Object {
Raw output
Error: thrown: Object {
"data": "1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low",
}
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.withdraw.preOperation.test.ts:367: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.preOperation.test.ts:45: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)
Check failure on line 0 in e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
github-actions / E2E report yarn test-rolldownPreOperationWithdrawal
test/sequential/rolldown.withdraw.preOperation.test.ts ► Pre-operation withdrawal tests - ► Creating two merkle trees generates the same output
Failed test found in:
e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
Error:
Error: expect(received).toEqual(expected) // deep equality
Raw output
Error: expect(received).toEqual(expected) // deep equality
Expected: 21
Received: 22
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.withdraw.preOperation.test.ts:496:26
at Generator.next (<anonymous>)
at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.withdraw.preOperation.test.ts:4:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 0 in e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
github-actions / E2E report yarn test-rolldownPreOperationWithdrawal
test/sequential/rolldown.withdraw.preOperation.test.ts ► Pre-operation withdrawal tests - ► Given a non-forced manually generation, WHEN triggered, start will be the latest index from the last generated MAX( manual or automatically ) and last will be t...
Failed test found in:
e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
Error:
Error: thrown: Object {
Raw output
Error: thrown: Object {
"data": "1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low",
}
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.withdraw.preOperation.test.ts:576: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.preOperation.test.ts:45: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)
Check failure on line 0 in e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
github-actions / E2E report yarn test-rolldownPreOperationWithdrawal
test/sequential/rolldown.withdraw.preOperation.test.ts ► Pre-operation withdrawal tests - ► GIVEN a manual batch WHEN no pending requests THEN no batch is generated BUT tokens are subtracted
Failed test found in:
e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
Error:
Error: thrown: Object {
Raw output
Error: thrown: Object {
"data": "1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low",
}
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.withdraw.preOperation.test.ts:595: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.preOperation.test.ts:45: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)
Check failure on line 0 in e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
github-actions / E2E report yarn test-rolldownPreOperationWithdrawal
test/sequential/rolldown.withdraw.preOperation.test.ts ► Pre-operation withdrawal tests - ► GIVEN manual batch THEN requires as parameter of the Eth Chain
Failed test found in:
e2eTests/reports/junit.xml-c6d03f00-ae39-11ef-b204-bb06252fe721.xml
Error:
Error: expect(received).toBe(expected) // Object.is equality
Raw output
Error: expect(received).toBe(expected) // Object.is equality
Expected: 751
Received: 753
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.withdraw.preOperation.test.ts:628:42
at Generator.next (<anonymous>)
at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.withdraw.preOperation.test.ts:4:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)