Skip to content

adds a check that only single ferry can happen on a deposit request gasp-1652 #794

adds a check that only single ferry can happen on a deposit request gasp-1652

adds a check that only single ferry can happen on a deposit request gasp-1652 #794

GitHub Actions / E2E report yarn test-multiswap failed Dec 5, 2024 in 1s

E2E report yarn test-multiswap ❌

Tests failed

❌ e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.xml

36 tests were completed in 156s with 15 passed, 18 failed and 3 skipped.

Test suite Passed Failed Skipped Time
test/parallel/utility-pallet.swapOperations.test.ts 16❌ 1⚪ 47s
test/parallel/xyk-pallet.multiswap.errors.test.ts 3✅ 2❌ 2⚪ 138s
test/parallel/xyk-pallet.multiswap.test.ts 7✅ 155s
test/parallel/xyk-pallet.multiswap2hops.test.ts 5✅ 119s

❌ test/parallel/utility-pallet.swapOperations.test.ts

⚪ Validate that the error enum is about filtered call
Utility - batched swaps are not allowed
  ❌ multiswapSellAsset operation is not allowed in batchAll
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
  ❌ multiswapBuyAsset operation is not allowed in batchAll
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
  ❌ sellAsset operation is not allowed in batchAll
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
  ❌ buyAsset operation is not allowed in batchAll
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
  ❌ multiswapSellAsset operation is not allowed in batch
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
  ❌ multiswapBuyAsset operation is not allowed in batch
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
  ❌ sellAsset operation is not allowed in batch
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
  ❌ buyAsset operation is not allowed in batch
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
  ❌ multiswapSellAsset operation is not allowed in forceBatch
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
  ❌ multiswapBuyAsset operation is not allowed in forceBatch
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
  ❌ sellAsset operation is not allowed in forceBatch
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
  ❌ buyAsset operation is not allowed in forceBatch
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
  ❌ multiswapSellAsset operation is not allowed in singleBatch with some allowed
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
  ❌ multiswapBuyAsset operation is not allowed in singleBatch with some allowed
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
  ❌ sellAsset operation is not allowed in singleBatch with some allowed
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
  ❌ buyAsset operation is not allowed in singleBatch with some allowed
	TypeError: Cannot read properties of undefined (reading 'sellAsset')

❌ test/parallel/xyk-pallet.multiswap.errors.test.ts

Multiswap - error cases: disabled tokens
  ✅ [gasless] disabled on token of the chained polls
  ✅ [gasless] disabled on token of the chained polls - Fail on tx execution-2
  ✅ [gasless] disabled on token of the chained polls - Fail on tx execution-4
Multiswap - error cases: pool status & gasless integration
  ⚪ [gasless] High value swaps are disabled on multiswap
  ❌ [gasless] Fail on client when not enough MGAs to lock AND tokens that exist whitelist
	Error: thrown: Object {
  ⚪ [gasless] Fail on swap when selling remove all MGAs
  ❌ [gasless] Fails on client when pool does not exist
	Error: thrown: Object {

✅ test/parallel/xyk-pallet.multiswap.test.ts

Multiswap - happy paths
  ✅ [gasless] Happy path - multi-swap - buy
  ✅ [gasless] Happy path - multi-swap - sell
  ✅ [gasless] Happy path - multi-swap uses feeLocks
  ✅ [gasless] Fees - multi-swap roll backs all the swaps when one fail but we take fees in GASP tokens
  ✅ [gasless] accuracy - Sum of calculate_sell_asset chained is equal to the multiswap operation
  ✅ [gasless] accuracy - Sum of calculate_buy_asset chained is equal to the multiswap operation
  ✅ [gasless] alternative scenario - one pool is highly unbalanced -> zero swap output

✅ test/parallel/xyk-pallet.multiswap2hops.test.ts

Multiswap [2 hops] - happy paths
  ✅ [gasless] Happy path - multi-swap - buy
  ✅ [gasless] Happy path - multi-swap - sell
  ✅ [gasless] Happy path - multi-swap uses feeLocks
  ✅ [gasless] Fees - multi-swap roll backs all the swaps when one fail but 0.3% is charged
  ✅ [gasless] accuracy - Sum of calculate_sell_asset chained is equal to the multiswap operation

Annotations

Check failure on line 0 in e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.xml

See this annotation in the file changed.

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

test/parallel/utility-pallet.swapOperations.test.ts ► Utility - batched swaps are not allowed ► multiswapSellAsset operation is not allowed in batchAll

Failed test found in:
  e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.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/utility-pallet.swapOperations.test.ts:84:22
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/utility-pallet.swapOperations.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.xml

See this annotation in the file changed.

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

test/parallel/utility-pallet.swapOperations.test.ts ► Utility - batched swaps are not allowed ► multiswapBuyAsset operation is not allowed in batchAll

Failed test found in:
  e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.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/utility-pallet.swapOperations.test.ts:84:22
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/utility-pallet.swapOperations.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.xml

See this annotation in the file changed.

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

test/parallel/utility-pallet.swapOperations.test.ts ► Utility - batched swaps are not allowed ► sellAsset operation is not allowed in batchAll

Failed test found in:
  e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.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/utility-pallet.swapOperations.test.ts:84:22
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/utility-pallet.swapOperations.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.xml

See this annotation in the file changed.

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

test/parallel/utility-pallet.swapOperations.test.ts ► Utility - batched swaps are not allowed ► buyAsset operation is not allowed in batchAll

Failed test found in:
  e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.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/utility-pallet.swapOperations.test.ts:84:22
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/utility-pallet.swapOperations.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.xml

See this annotation in the file changed.

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

test/parallel/utility-pallet.swapOperations.test.ts ► Utility - batched swaps are not allowed ► multiswapSellAsset operation is not allowed in batch

Failed test found in:
  e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.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/utility-pallet.swapOperations.test.ts:84:22
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/utility-pallet.swapOperations.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.xml

See this annotation in the file changed.

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

test/parallel/utility-pallet.swapOperations.test.ts ► Utility - batched swaps are not allowed ► multiswapBuyAsset operation is not allowed in batch

Failed test found in:
  e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.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/utility-pallet.swapOperations.test.ts:84:22
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/utility-pallet.swapOperations.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.xml

See this annotation in the file changed.

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

test/parallel/utility-pallet.swapOperations.test.ts ► Utility - batched swaps are not allowed ► sellAsset operation is not allowed in batch

Failed test found in:
  e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.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/utility-pallet.swapOperations.test.ts:84:22
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/utility-pallet.swapOperations.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.xml

See this annotation in the file changed.

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

test/parallel/utility-pallet.swapOperations.test.ts ► Utility - batched swaps are not allowed ► buyAsset operation is not allowed in batch

Failed test found in:
  e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.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/utility-pallet.swapOperations.test.ts:84:22
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/utility-pallet.swapOperations.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.xml

See this annotation in the file changed.

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

test/parallel/utility-pallet.swapOperations.test.ts ► Utility - batched swaps are not allowed ► multiswapSellAsset operation is not allowed in forceBatch

Failed test found in:
  e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.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/utility-pallet.swapOperations.test.ts:84:22
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/utility-pallet.swapOperations.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.xml

See this annotation in the file changed.

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

test/parallel/utility-pallet.swapOperations.test.ts ► Utility - batched swaps are not allowed ► multiswapBuyAsset operation is not allowed in forceBatch

Failed test found in:
  e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.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/utility-pallet.swapOperations.test.ts:84:22
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/utility-pallet.swapOperations.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.xml

See this annotation in the file changed.

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

test/parallel/utility-pallet.swapOperations.test.ts ► Utility - batched swaps are not allowed ► sellAsset operation is not allowed in forceBatch

Failed test found in:
  e2eTests/reports/junit.xml-7f8c93f0-b311-11ef-a0e9-b31a7c213c13.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/utility-pallet.swapOperations.test.ts:84:22
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/utility-pallet.swapOperations.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)