Skip to content

Feature/market improvs (#845) #746

Feature/market improvs (#845)

Feature/market improvs (#845) #746

GitHub Actions / E2E report yarn test-seqgasless failed Nov 28, 2024 in 1s

E2E report yarn test-seqgasless ❌

Tests failed

❌ e2eTests/reports/junit.xml-2139b1a0-ad9b-11ef-a0f6-bdec1d81fa87.xml

7 tests were completed in 216s with 3 passed, 4 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/sequential/feeLock.API.config.test.ts 3✅ 1❌ 120s
test/sequential/feeLock.API.feePayment.sequential.test.ts 3❌ 96s

❌ test/sequential/feeLock.API.config.test.ts

✅ gasless- GIVEN a non sudo user WHEN feeLock configuration extrinsic is submitted THEN it fails with RequireSudo
✅ gasless- GIVEN an empty feeLock configuration (all options empty) WHEN sudo submit the extrinsic THEN Tx fails because insufficient params
✅ gasless- GIVEN a feeLock WHEN periodLength and feeLockAmount are set THEN extrinsic succeed and feeLock is correctly configured
❌ gasless- Changing feeLock config parameter on the fly is works robustly. Either automatic or manual unlocks the tokens
	TypeError: Cannot read properties of undefined (reading 'multiswapSellAsset')

❌ test/sequential/feeLock.API.feePayment.sequential.test.ts

❌ gasless- GIVEN a feeLock configured (only Time and Amount ) WHEN the user swaps AND the user has not enough MGAs and has enough TURs THEN the extrinsic fails on submission
	Error: expect(received).rejects.toThrow(expected)
❌ gasless- GIVEN a feeLock configured (only Time and Amount )  WHEN the user swaps AND the user does not have enough MGAs THEN the extrinsic fails on submission
	Error: expect(received).rejects.toThrow(expected)
❌ gasless- Given a feeLock correctly configured (only Time and Amount ) WHEN the user swaps AND the user has enough MGAs THEN the extrinsic is correctly submitted
	TypeError: Cannot read properties of undefined (reading 'multiswapSellAsset')

Annotations

Check failure on line 0 in e2eTests/reports/junit.xml-2139b1a0-ad9b-11ef-a0f6-bdec1d81fa87.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-seqgasless

test/sequential/feeLock.API.config.test.ts ► gasless- Changing feeLock config parameter on the fly is works robustly. Either automatic or manual unlocks the tokens

Failed test found in:
  e2eTests/reports/junit.xml-2139b1a0-ad9b-11ef-a0f6-bdec1d81fa87.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'multiswapSellAsset')
Raw output
TypeError: Cannot read properties of undefined (reading 'multiswapSellAsset')
    at multiswapSellAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:4648:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-2139b1a0-ad9b-11ef-a0f6-bdec1d81fa87.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-seqgasless

test/sequential/feeLock.API.feePayment.sequential.test.ts ► gasless- GIVEN a feeLock configured (only Time and Amount ) WHEN the user swaps AND the user has not enough MGAs and has enough TURs THEN the extrinsic fails on submission

Failed test found in:
  e2eTests/reports/junit.xml-2139b1a0-ad9b-11ef-a0f6-bdec1d81fa87.xml
Error:
  Error: expect(received).rejects.toThrow(expected)
Raw output
Error: expect(received).rejects.toThrow(expected)

Expected substring: "1010: Invalid Transaction: Fee lock processing has failed either due to not enough funds to reserve or an unexpected error"
Received message:   ""

      45 |     ).catch((reason) => {
      46 |       exception = true;
    > 47 |       throw new Error(reason.data);
         |             ^
      48 |     }),
      49 |   ).rejects.toThrow(reason);
      50 |

      at test/sequential/feeLock.API.feePayment.sequential.test.ts:47:13
    at Object.toThrow (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/expect/build/index.js:218:22)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:49:13
    at Generator.next (<anonymous>)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:7:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:3:12)
    at checkErrorSellAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:36:12)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:98:9
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-2139b1a0-ad9b-11ef-a0f6-bdec1d81fa87.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-seqgasless

test/sequential/feeLock.API.feePayment.sequential.test.ts ► gasless- GIVEN a feeLock configured (only Time and Amount ) WHEN the user swaps AND the user does not have enough MGAs THEN the extrinsic fails on submission

Failed test found in:
  e2eTests/reports/junit.xml-2139b1a0-ad9b-11ef-a0f6-bdec1d81fa87.xml
Error:
  Error: expect(received).rejects.toThrow(expected)
Raw output
Error: expect(received).rejects.toThrow(expected)

Expected substring: "1010: Invalid Transaction: Fee lock processing has failed either due to not enough funds to reserve or an unexpected error"
Received message:   ""

      45 |     ).catch((reason) => {
      46 |       exception = true;
    > 47 |       throw new Error(reason.data);
         |             ^
      48 |     }),
      49 |   ).rejects.toThrow(reason);
      50 |

      at test/sequential/feeLock.API.feePayment.sequential.test.ts:47:13
    at Object.toThrow (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/expect/build/index.js:218:22)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:49:13
    at Generator.next (<anonymous>)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:7:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:3:12)
    at checkErrorSellAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:36:12)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:112:9
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-2139b1a0-ad9b-11ef-a0f6-bdec1d81fa87.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-seqgasless

test/sequential/feeLock.API.feePayment.sequential.test.ts ► gasless- Given a feeLock correctly configured (only Time and Amount ) WHEN the user swaps AND the user has enough MGAs THEN the extrinsic is correctly submitted

Failed test found in:
  e2eTests/reports/junit.xml-2139b1a0-ad9b-11ef-a0f6-bdec1d81fa87.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'multiswapSellAsset')
Raw output
TypeError: Cannot read properties of undefined (reading 'multiswapSellAsset')
    at multiswapSellAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:4648:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)