From f571bd86fbd641f0c089d74ca7772bfe1517d8dd Mon Sep 17 00:00:00 2001 From: microwavedcola1 Date: Mon, 19 Aug 2024 13:47:05 +0200 Subject: [PATCH] prettier+serum connection override Signed-off-by: microwavedcola1 --- .prettierignore | 1 - .prettierrc.json | 4 ++++ ts/client/src/accounts/group.ts | 2 +- ts/client/src/accounts/serum3.ts | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .prettierrc.json diff --git a/.prettierignore b/.prettierignore index dc448b92c..bef26c10c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1 @@ ts/client/src/mango_v4.ts -ts/client/scripts/** \ No newline at end of file diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 000000000..a20502b7f --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,4 @@ +{ + "singleQuote": true, + "trailingComma": "all" +} diff --git a/ts/client/src/accounts/group.ts b/ts/client/src/accounts/group.ts index af1a5c6b9..1c885c5e2 100644 --- a/ts/client/src/accounts/group.ts +++ b/ts/client/src/accounts/group.ts @@ -359,7 +359,7 @@ export class Group { Array.from(this.serum3MarketsMapByExternal.values()).map( (serum3Market) => Market.load( - client.program.provider.connection, + client.program.provider.connection as any, serum3Market.serumMarketExternal, { commitment: client.program.provider.connection.commitment }, OPENBOOK_PROGRAM_ID[client.cluster], diff --git a/ts/client/src/accounts/serum3.ts b/ts/client/src/accounts/serum3.ts index 0101fffc0..2ec24e681 100644 --- a/ts/client/src/accounts/serum3.ts +++ b/ts/client/src/accounts/serum3.ts @@ -133,7 +133,7 @@ export class Serum3Market { this.serumMarketExternal, ); return await serum3MarketExternal.loadBids( - client.program.provider.connection, + client.program.provider.connection as any, ); } @@ -142,7 +142,7 @@ export class Serum3Market { this.serumMarketExternal, ); return await serum3MarketExternal.loadAsks( - client.program.provider.connection, + client.program.provider.connection as any, ); }