Fix/rewards market GASP-1681 (#855) #809
E2E report yarn test-sdk ❌
❌ e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
48 tests were completed in 835s with 39 passed, 9 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
test/parallel/sdk.API.batch.test.ts | 7✅ | 227s | ||
test/parallel/sdk.API.getInfo.test.ts | 16✅ | 347s | ||
test/parallel/sdk.API.submitableExtrinsic.test.ts | 4✅ | 5❌ | 269s | |
test/parallel/sdk.API.utils.test.ts | 4✅ | 4❌ | 215s | |
test/parallel/xyk-sdk.API.activateLiqudity.test.ts | 2✅ | 221s | ||
test/sequential/sdk.API.claimRewards.test.ts | 6✅ | 833s |
✅ test/parallel/sdk.API.batch.test.ts
✅ Check that when we are using SDK batch function and the first call finishes with error next call doesn't finish
✅ Check that when we are using SDK batch function and the second call finishes with error first call finishes successful
✅ Happy path - batch
✅ WHEN call batchAll where one item is failed THEN all entire transactions will rollback and fail
✅ Happy path - batchAll
✅ WHEN call forceBatch where one item is failed THEN check completed and failed items
✅ Happy path - forceBatch
✅ test/parallel/sdk.API.getInfo.test.ts
✅ getAmountOfTokensInPool return poolAmount AND in reverse list of token we recived equal result
✅ check parameters of getInvestedPools function
✅ check parameters of getLiquidityTokenIds function
✅ check parameters of getPool function
✅ check parameters of getPools function
✅ check parameters of getTotalIssuance functions
✅ check parameters of getChain function
✅ check parameters of getNodeName function
✅ check parameters of getNodeVersion function
✅ check waitForNewBlock
✅ check calculateMintingFutureRewards
✅ check getAssetsInfo
✅ check getLiquidityTokens
✅ check getOwnedTokens
✅ check getTokenInfo
✅ sdk - filter deactivated pools on node
❌ test/parallel/sdk.API.submitableExtrinsic.test.ts
✅ activate some Liquidity using SDK THEN claim rewards THEN deactivate Liquidity
✅ check claimRewards
❌ check mintLiquidity
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ check burnLiquidity
TypeError: Cannot read properties of undefined (reading 'burnLiquidity')
❌ check createPool
TypeError: Cannot read properties of undefined (reading 'createPool')
❌ check multiswapBuyAsset
TypeError: Cannot read properties of undefined (reading 'multiswapBuyAsset')
❌ check multiswapSellAsset
TypeError: Cannot read properties of undefined (reading 'multiswapSellAsset')
✅ check transferTokens
✅ check transferAllTokens
❌ test/parallel/sdk.API.utils.test.ts
❌ GIVEN buyAsset WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true
TypeError: Cannot read properties of undefined (reading 'buyAsset')
❌ GIVEN buyAsset WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false
TypeError: Cannot read properties of undefined (reading 'buyAsset')
❌ GIVEN sellAsset WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true
TypeError: Cannot read properties of undefined (reading 'sellAsset')
❌ GIVEN sellAsset WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false
TypeError: Cannot read properties of undefined (reading 'sellAsset')
✅ GIVEN multiSwapBuy WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true
✅ GIVEN multiSwapBuy WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false
✅ GIVEN multiSwapSell WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true
✅ GIVEN multiSwapSell WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false
✅ test/parallel/xyk-sdk.API.activateLiqudity.test.ts
✅ Given a user hame some liquidity token THEN he activate them THEN deactivate
✅ Activate liquidity and claim rewards
✅ test/sequential/sdk.API.claimRewards.test.ts
✅ GIVEN an user has available some rewards in one pool WHEN claims all rewards THEN the user gets the rewards for that pool
✅ GIVEN an user has available some rewards in two pools WHEN claims all rewards THEN the user gets the rewards for thats pools
✅ GIVEN an user has available some rewards in two pools one deactivated WHEN claims all rewards THEN the user gets the rewards for thats pools
✅ GIVEN a user that has available some rewards in ten pools max for automatically claiming WHEN claims all rewards THEN the user gets the rewards for thats pools
✅ GIVEN a user has available some rewards in over ten pools WHEN claims all rewards THEN the error is received
✅ GIVEN a user has available some rewards in over ten pools AND this user claims some pool manually WHEN claims all rewards THEN the user gets the rewards for all remaining pools
Annotations
Check failure on line 0 in e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
github-actions / E2E report yarn test-sdk
test/parallel/sdk.API.submitableExtrinsic.test.ts ► check mintLiquidity
Failed test found in:
e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
Error:
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
at mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:3854:25)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 0 in e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
github-actions / E2E report yarn test-sdk
test/parallel/sdk.API.submitableExtrinsic.test.ts ► check burnLiquidity
Failed test found in:
e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
Error:
TypeError: Cannot read properties of undefined (reading 'burnLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'burnLiquidity')
at burnLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:3805:25)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 0 in e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
github-actions / E2E report yarn test-sdk
test/parallel/sdk.API.submitableExtrinsic.test.ts ► check createPool
Failed test found in:
e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
Error:
TypeError: Cannot read properties of undefined (reading 'createPool')
Raw output
TypeError: Cannot read properties of undefined (reading 'createPool')
at createPool (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:3882:25)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 0 in e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
github-actions / E2E report yarn test-sdk
test/parallel/sdk.API.submitableExtrinsic.test.ts ► check multiswapBuyAsset
Failed test found in:
e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
Error:
TypeError: Cannot read properties of undefined (reading 'multiswapBuyAsset')
Raw output
TypeError: Cannot read properties of undefined (reading 'multiswapBuyAsset')
at multiswapBuyAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:4633:25)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 0 in e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
github-actions / E2E report yarn test-sdk
test/parallel/sdk.API.submitableExtrinsic.test.ts ► check multiswapSellAsset
Failed test found in:
e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.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-fac253a0-b336-11ef-99cc-45892cc12d84.xml
github-actions / E2E report yarn test-sdk
test/parallel/sdk.API.utils.test.ts ► GIVEN buyAsset WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true
Failed test found in:
e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
Error:
TypeError: Cannot read properties of undefined (reading 'buyAsset')
Raw output
TypeError: Cannot read properties of undefined (reading 'buyAsset')
at Function.buyAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:63:23)
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:83:9
at Generator.next (<anonymous>)
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:7:71
at new Promise (<anonymous>)
at __awaiter (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:3:12)
at Object.<anonymous> (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:80:126)
at Promise.then.completed (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:126:9)
at run (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
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)
at Object.worker (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/testWorker.js:106:12)
Check failure on line 0 in e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
github-actions / E2E report yarn test-sdk
test/parallel/sdk.API.utils.test.ts ► GIVEN buyAsset WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false
Failed test found in:
e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
Error:
TypeError: Cannot read properties of undefined (reading 'buyAsset')
Raw output
TypeError: Cannot read properties of undefined (reading 'buyAsset')
at Function.buyAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:63:23)
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:104:9
at Generator.next (<anonymous>)
at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:4:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 0 in e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
github-actions / E2E report yarn test-sdk
test/parallel/sdk.API.utils.test.ts ► GIVEN sellAsset WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true
Failed test found in:
e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
Error:
TypeError: Cannot read properties of undefined (reading 'sellAsset')
Raw output
TypeError: Cannot read properties of undefined (reading 'sellAsset')
at Function.sellAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:49:23)
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:120:9
at Generator.next (<anonymous>)
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:7:71
at new Promise (<anonymous>)
at __awaiter (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:3:12)
at Object.<anonymous> (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:117:127)
at Promise.then.completed (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:126:9)
at run (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
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)
at Object.worker (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/testWorker.js:106:12)
Check failure on line 0 in e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
github-actions / E2E report yarn test-sdk
test/parallel/sdk.API.utils.test.ts ► GIVEN sellAsset WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false
Failed test found in:
e2eTests/reports/junit.xml-fac253a0-b336-11ef-99cc-45892cc12d84.xml
Error:
TypeError: Cannot read properties of undefined (reading 'sellAsset')
Raw output
TypeError: Cannot read properties of undefined (reading 'sellAsset')
at Function.sellAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:49:23)
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:141:9
at Generator.next (<anonymous>)
at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:4:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)