Skip to content

Feature/stable pool mgx 1307 (#838) #739

Feature/stable pool mgx 1307 (#838)

Feature/stable pool mgx 1307 (#838) #739

GitHub Actions / E2E report yarn test-sdk failed Nov 26, 2024 in 1s

E2E report yarn test-sdk ❌

Tests failed

❌ e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.xml

48 tests were completed in 355s with 22 passed, 26 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/parallel/sdk.API.batch.test.ts 7❌ 137s
test/parallel/sdk.API.getInfo.test.ts 16✅ 353s
test/parallel/sdk.API.submitableExtrinsic.test.ts 4✅ 5❌ 275s
test/parallel/sdk.API.utils.test.ts 8❌ 185s
test/parallel/xyk-sdk.API.activateLiqudity.test.ts 2✅ 227s
test/sequential/sdk.API.claimRewards.test.ts 6❌ 149s

❌ 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
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ Check that when we are using SDK batch function and the second call finishes with error first call finishes successful
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ Happy path - batch
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ WHEN call batchAll where one item is failed THEN all entire transactions will rollback and fail
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ Happy path - batchAll
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ WHEN call forceBatch where one item is failed THEN check completed and failed items
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ Happy path - forceBatch
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')

✅ 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
	TypeError: Cannot read properties of undefined (reading 'multiswapBuyAsset')
❌ GIVEN multiSwapBuy WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false
	TypeError: Cannot read properties of undefined (reading 'multiswapBuyAsset')
❌ GIVEN multiSwapSell WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true
	TypeError: Cannot read properties of undefined (reading 'multiswapSellAsset')
❌ GIVEN multiSwapSell WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false
	TypeError: Cannot read properties of undefined (reading 'multiswapSellAsset')

✅ 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
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ GIVEN an user has available some rewards in two pools WHEN claims all rewards THEN the user gets the rewards for thats pools
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ 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
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ 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
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ GIVEN a user has available some rewards in over ten pools WHEN claims all rewards THEN the error is received
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ 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
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')

Annotations

Check failure on line 0 in e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.xml

See this annotation in the file changed.

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

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

Failed test found in:
  e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at Function.mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:27:23)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.batch.test.ts:94:11
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.batch.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.xml

See this annotation in the file changed.

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

test/parallel/sdk.API.batch.test.ts ► Check that when we are using SDK batch function and the second call finishes with error first call finishes successful

Failed test found in:
  e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at Function.mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:27:23)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.batch.test.ts:124:11
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.batch.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.xml

See this annotation in the file changed.

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

test/parallel/sdk.API.batch.test.ts ► Happy path - batch

Failed test found in:
  e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at Function.mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:27:23)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.batch.test.ts:156:11
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.batch.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.xml

See this annotation in the file changed.

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

test/parallel/sdk.API.batch.test.ts ► WHEN call batchAll where one item is failed THEN all entire transactions will rollback and fail

Failed test found in:
  e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at Function.mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:27:23)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.batch.test.ts:183:11
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.batch.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.xml

See this annotation in the file changed.

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

test/parallel/sdk.API.batch.test.ts ► Happy path - batchAll

Failed test found in:
  e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at Function.mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:27:23)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.batch.test.ts:208:11
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.batch.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.xml

See this annotation in the file changed.

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

test/parallel/sdk.API.batch.test.ts ► WHEN call forceBatch where one item is failed THEN check completed and failed items

Failed test found in:
  e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at Function.mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:27:23)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.batch.test.ts:236:11
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.batch.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.xml

See this annotation in the file changed.

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

test/parallel/sdk.API.batch.test.ts ► Happy path - forceBatch

Failed test found in:
  e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at Function.mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:27:23)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.batch.test.ts:269:11
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.batch.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.xml

See this annotation in the file changed.

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

test/parallel/sdk.API.submitableExtrinsic.test.ts ► check mintLiquidity

Failed test found in:
  e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.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-02482830-ac4c-11ef-988b-8b12f5b84a22.xml

See this annotation in the file changed.

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

test/parallel/sdk.API.submitableExtrinsic.test.ts ► check burnLiquidity

Failed test found in:
  e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.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-02482830-ac4c-11ef-988b-8b12f5b84a22.xml

See this annotation in the file changed.

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

test/parallel/sdk.API.submitableExtrinsic.test.ts ► check createPool

Failed test found in:
  e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.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-02482830-ac4c-11ef-988b-8b12f5b84a22.xml

See this annotation in the file changed.

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

test/parallel/sdk.API.submitableExtrinsic.test.ts ► check multiswapBuyAsset

Failed test found in:
  e2eTests/reports/junit.xml-02482830-ac4c-11ef-988b-8b12f5b84a22.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)