Skip to content

[MGX-522] Simplify XYK RPC api (#535) #1111

[MGX-522] Simplify XYK RPC api (#535)

[MGX-522] Simplify XYK RPC api (#535) #1111

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / E2E report yarn test-sequential-no-bootstrap failed Sep 22, 2023 in 1s

E2E report yarn test-sequential-no-bootstrap ❌

Tests failed

❌ e2eTests/reports/junit-b2449ee0-5963-11ee-af36-35f94ae5ad39.xml

27 tests were completed in 1599s with 18 passed, 1 failed and 8 skipped.

Test suite Passed Failed Skipped Time
test/sequential/xyk-pallet.API.accuracy.MGA.fees.test.ts 1✔️ 108s
test/sequential/xyk-pallet.API.fees.v2.test.ts 7✔️ 288s
test/sequential/xyk-pallet.API.stacking.lock.test.ts 1✖️ 2s
test/sequential/xyk-pallet.API.treasury.v2.test.ts 9✔️ 432s
test/sequential/xyk-pallet.scenarios.v2.test.ts 1✔️ 1❌ 762s
test/sequential/xyk-SDK.nonce.test.ts 7✖️ 7s

✔️ test/sequential/xyk-pallet.API.accuracy.MGA.fees.test.ts

✔️ xyk-pallet - Assets substracted are incremented by 1 - MGA- SellAsset

✔️ test/sequential/xyk-pallet.API.fees.v2.test.ts

API fees test suite
  ✔️ xyk-pallet - MGA tokens are subtracted as fee : CreatePool
  ✔️ xyk-pallet - MGA tokens are subtracted as fee : MintLiquidity
  ✔️ xyk-pallet - MGA tokens are subtracted as fee : BurnLiquidity
  ✔️ xyk-pallet - MGA tokens are subtracted as fee : Transfer
  ✔️ xyk-pallet - MGA tokens are subtracted as fee : TransferAll
  ✔️ xyk-pallet - MGA tokens are not subtracted as fee : SellAsset
  ✔️ xyk-pallet - MGA tokens are / are not subtracted as fee : BuyAsset

✔️ test/sequential/xyk-pallet.API.stacking.lock.test.ts

xyk-pallet - Sell Asset: validate Errors:
  ✖️ joinCandidates operation reserves some tokens

✔️ test/sequential/xyk-pallet.API.treasury.v2.test.ts

xyk-pallet - treasury tests [Mangata]: on treasury we store
  ✔️ assets won when assets are sold [Selling Mangata] - 5
  ✔️ assets won when assets are bought [Buying Mangata]
  ✔️ assets won when assets are sold [Selling other in MGA pool] - 6
  ✔️ assets won when assets are bought [Buying other in MGA pool]
xyk-pallet - treasury tests [Connected - Mangata]: on treasury we store
  ✔️ assets won when assets are sold [Selling X connected to MGA pool] - rounding
  ✔️ assets won when assets are bought [Buying X connected to MGA pool]
  ✔️ assets won when assets are sold [Selling Y - X connected toMGA pool] - 6
  ✔️ assets won when assets are bought [Buying Y - X connected toMGA pool] - 6
xyk-pallet - treasury tests [Connected - Mangata]: Error cases
  ✔️ Not enough tokens to convert fee LINK[https://trello.com/c/p77t0atO]

❌ test/sequential/xyk-pallet.scenarios.v2.test.ts

xyk-pallet: Happy case scenario
  ✔️ xyk-pallet: Happy case scenario
xyk-pallet: Liquidity sufficiency scenario
  ❌ xyk-pallet: Liquidity sufficiency scenario
	Error: expect(received).toEqual(expected) // deep equality

✔️ test/sequential/xyk-SDK.nonce.test.ts

SDK test - Nonce tests - user
  ✖️ SDK- Nonce management - user
  ✖️ SDK- Nonce management - user - parallel
  ✖️ SDK- Nonce management - user - future Tx-
  ✖️ SDK- Nonce management - Extrinsic failed
  ✖️ SDK- Nonce management - Using custom nonce
  ✖️ [BUG?] SDK- Nonce management - Transaction outdated
SDK test - Nonce tests - Errors
  ✖️ [BUG?] SDK- Nonce management - RPC Failure - Not enough balance

Annotations

Check failure on line 0 in e2eTests/reports/junit-b2449ee0-5963-11ee-af36-35f94ae5ad39.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-sequential-no-bootstrap

test/sequential/xyk-pallet.scenarios.v2.test.ts ► xyk-pallet: Liquidity sufficiency scenario ► xyk-pallet: Liquidity sufficiency scenario

Failed test found in:
  e2eTests/reports/junit-b2449ee0-5963-11ee-af36-35f94ae5ad39.xml
Error:
  Error: expect(received).toEqual(expected) // deep equality
Raw output
Error: expect(received).toEqual(expected) // deep equality

Expected: "NotEnoughAssets"
Received: "NoSuchPool"
    at /home/github/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/xyk-pallet.scenarios.v2.test.ts:881:23
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)