Skip to content

Commit

Permalink
fix: tests broken
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasDeco committed Aug 27, 2024
1 parent fec2f47 commit f1fc147
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion lib/types/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,3 @@ export type TokenMetadataResponse = TokenProps & {
};

export type TokenAccountMetadata = MetadataAccountData & { json: JsonMetadata };
export { Metadata as MetaplexMetadata } from "@metaplex-foundation/mpl-token-metadata";
12 changes: 5 additions & 7 deletions tests/client/indexer/markets.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { FutarchyIndexerClient, FutarchyRPCClient } from "@/client";
import { autocratVersionToTwapMap } from "@/constants";
import { TransactionSender } from "@/transactions";
import {
AmmMarketFetchRequest,
OpenbookMarketFetchRequest,
OpenbookMarket,
} from "@/types";
import { OpenbookMarketFetchRequest } from "@/types";
import { AnchorProvider, Program } from "@coral-xyz/anchor";
import { Connection, PublicKey } from "@solana/web3.js";
import { describe, test, expect, beforeAll } from "bun:test";
Expand All @@ -23,7 +19,7 @@ describe("FutarchyIndexerClient Integration Test", () => {
if (wallet.publicKey === null) return;

provider = new AnchorProvider(connection, wallet, {
commitment: "processed",
commitment: "processed"
});

// Setup TransactionSender - assumed to be available or mock as needed
Expand All @@ -38,11 +34,13 @@ describe("FutarchyIndexerClient Integration Test", () => {

const indexerUrl = "https://test-graphql.hello.xyz";
const indexerWSUrl = "wss://test-graphql.hello.xyz";
const balancesApiURL = "https://balances-api.xyz";

indexerClient = FutarchyIndexerClient.make(
rpcClient,
indexerUrl,
indexerWSUrl
indexerWSUrl,
balancesApiURL
);
});

Expand Down

0 comments on commit f1fc147

Please sign in to comment.