Skip to content

Commit

Permalink
chore: update tests and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
devdanco committed Nov 21, 2023
1 parent 1d94e47 commit e723bd8
Show file tree
Hide file tree
Showing 11 changed files with 646 additions and 623 deletions.
1,248 changes: 635 additions & 613 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@nx/js": "16.9.1",
"@nx/linter": "16.9.1",
"@nx/vite": "16.9.1",
"@polkadot/typegen": "^10.9.1",
"@polkadot/typegen": "10.9.1",
"@swc/cli": "0.1.62",
"@swc/core": "1.3.85",
"@types/big.js": "6.1.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/tests/activate-liquidity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ beforeEach(async () => {
};

const data = await instance.batchAll(argsBatchAll);
const searchTerms = ["tokens", "Issued", testUser.address];
const searchTerms = ["tokens", "Created", testUser.address];
const extrinsicData = getExtrinsicData({ data, searchTerms });
firstTokenId = extrinsicData[0].eventData[0].data.toString();
secondTokenId = extrinsicData[1].eventData[0].data.toString();
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/tests/burn-liquidity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ beforeEach(async () => {
};

const data = await instance.batchAll(argsBatchAll);
const searchTerms = ["tokens", "Issued", testUser.address];
const searchTerms = ["tokens", "Created", testUser.address];
const extrinsicData = getExtrinsicData({ data, searchTerms });
firstTokenId = extrinsicData[0].eventData[0].data.toString();
secondTokenId = extrinsicData[1].eventData[0].data.toString();
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/tests/claim-rewards-all.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ beforeEach(async () => {
};

const data = await instance.batchAll(argsBatchAll);
const searchTerms = ["tokens", "Issued", testUser1.address];
const searchTerms = ["tokens", "Created", testUser1.address];
const extrinsicData = getExtrinsicData({ data, searchTerms });
tokens = extrinsicData.map(data => {
return data.eventData[0].data.toString();
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/tests/create-pool.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ beforeEach(async () => {
};

const data = await instance.batchAll(argsBatchAll);
const searchTerms = ["tokens", "Issued", testUser.address];
const searchTerms = ["tokens", "Created", testUser.address];
const extrinsicData = getExtrinsicData({ data, searchTerms });
firstTokenId = extrinsicData[0].eventData[0].data.toString();
secondTokenId = extrinsicData[1].eventData[0].data.toString();
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/tests/mint-liquidity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ beforeEach(async () => {
};

const data = await instance.batchAll(argsBatchAll);
const searchTerms = ["tokens", "Issued", testUser.address];
const searchTerms = ["tokens", "Created", testUser.address];
const extrinsicData = getExtrinsicData({ data, searchTerms });
firstTokenId = extrinsicData[0].eventData[0].data.toString();
secondTokenId = extrinsicData[1].eventData[0].data.toString();
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/tests/multi-swap-buy-asset.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ beforeEach(async () => {
};

const data = await instance.batchAll(argsBatchAll);
const searchTerms = ["tokens", "Issued", testUser.address];
const searchTerms = ["tokens", "Created", testUser.address];
const extrinsicData = getExtrinsicData({ data, searchTerms });
firstTokenId = extrinsicData[0].eventData[0].data.toString();
secondTokenId = extrinsicData[1].eventData[0].data.toString();
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/tests/multi-swap-sell-asset.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ beforeEach(async () => {
};

const data = await instance.batchAll(argsBatchAll);
const searchTerms = ["tokens", "Issued", testUser.address];
const searchTerms = ["tokens", "Created", testUser.address];
const extrinsicData = getExtrinsicData({ data, searchTerms });
firstTokenId = extrinsicData[0].eventData[0].data.toString();
secondTokenId = extrinsicData[1].eventData[0].data.toString();
Expand Down
3 changes: 2 additions & 1 deletion packages/sdk/src/tests/sell-asset-four-times.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
import { Batch } from "../types/utility";
import { CreatePool, MultiswapSellAsset } from "../types/xyk";
import { MangataGenericEvent } from "../types/common";
import * as console from "console";

Check warning on line 15 in packages/sdk/src/tests/sell-asset-four-times.test.ts

View workflow job for this annotation

GitHub Actions / release

'console' is defined but never used

let testUser: KeyringPair;
let sudoUser: KeyringPair;
Expand Down Expand Up @@ -48,7 +49,7 @@ beforeEach(async () => {
};

const data = await instance.batchAll(argsBatchAll);
const searchTerms = ["tokens", "Issued", testUser.address];
const searchTerms = ["tokens", "Created", testUser.address];
const extrinsicData = getExtrinsicData({ data, searchTerms });
firstTokenId = extrinsicData[0].eventData[0].data.toString();
secondTokenId = extrinsicData[1].eventData[0].data.toString();
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/tests/transfer-token.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ beforeEach(async () => {
};

const data = await instance.batchAll(argsBatchAll);
const searchTerms = ["tokens", "Issued", testUser.address];
const searchTerms = ["tokens", "Created", testUser.address];
const extrinsicData = getExtrinsicData({ data, searchTerms });
firstTokenId = extrinsicData[0].eventData[0].data.toString();
secondTokenId = extrinsicData[1].eventData[0].data.toString();
Expand Down

0 comments on commit e723bd8

Please sign in to comment.