diff --git a/packages/liquidity-sdk-viem/README.md b/packages/liquidity-sdk-viem/README.md index a67b3bd..e251f04 100644 --- a/packages/liquidity-sdk-viem/README.md +++ b/packages/liquidity-sdk-viem/README.md @@ -1,36 +1,36 @@ -# @morpho-org/shared-liquidity-sdk-viem +# @morpho-org/liquidity-sdk-viem - + - - Version + + Version - + - - MIT License + + MIT License - + - - Downloads per month + + Downloads per month

-Viem-based package that provides utilities to build viem-based shared-liquidity bots on Morpho and examples using Flashbots and Morpho's GraphQL API. +Viem-based package that provides utilities to build viem-based liquidity bots on Morpho and examples using Flashbots and Morpho's GraphQL API. ## Installation ```bash -npm install @morpho-org/shared-liquidity-sdk-viem +npm install @morpho-org/liquidity-sdk-viem ``` ```bash -yarn add @morpho-org/shared-liquidity-sdk-viem +yarn add @morpho-org/liquidity-sdk-viem ``` ## Getting Started diff --git a/packages/liquidity-sdk-viem/test/dataloader.test.ts b/packages/liquidity-sdk-viem/test/dataloader.test.ts index 81155cc..a8d3e5b 100644 --- a/packages/liquidity-sdk-viem/test/dataloader.test.ts +++ b/packages/liquidity-sdk-viem/test/dataloader.test.ts @@ -5,15 +5,15 @@ import { markets } from "@morpho-org/morpho-test"; import { BLUE_API_BASE_URL } from "@morpho-org/morpho-ts"; import { describe, expect } from "vitest"; import { LiquidityLoader } from "../src"; -import sharedLiquidityMock0 from "./mocks/shared-liquidity.0.json"; -import sharedLiquidityMock1 from "./mocks/shared-liquidity.1.json"; +import apiMock0 from "./mocks/dataloader.0.json"; +import apiMock1 from "./mocks/dataloader.1.json"; import { test } from "./setup.js"; const { usdc_wstEth, eth_wstEth, usdc_wbtc } = markets[ChainId.EthMainnet]; describe("dataloader", () => { test("should fetch shared liquidity from api", async ({ client }) => { - nock(BLUE_API_BASE_URL).post("/graphql").reply(200, sharedLiquidityMock0); + nock(BLUE_API_BASE_URL).post("/graphql").reply(200, apiMock0); const reallocations = await new LiquidityLoader(client).fetch( usdc_wstEth.id, @@ -41,7 +41,7 @@ describe("dataloader", () => { test("should fetch shared liquidity for 1 market from api and 1 from rpc", async ({ client, }) => { - nock(BLUE_API_BASE_URL).post("/graphql").reply(200, sharedLiquidityMock1); + nock(BLUE_API_BASE_URL).post("/graphql").reply(200, apiMock1); const loader = new LiquidityLoader(client); @@ -114,7 +114,7 @@ describe("dataloader", () => { test("should fetch shared liquidity for 2 markets from rpc", async ({ client, }) => { - nock(BLUE_API_BASE_URL).post("/graphql").reply(200, sharedLiquidityMock1); + nock(BLUE_API_BASE_URL).post("/graphql").reply(200, apiMock1); const loader = new LiquidityLoader(client); diff --git a/packages/liquidity-sdk-viem/test/mocks/shared-liquidity.0.json b/packages/liquidity-sdk-viem/test/mocks/dataloader.0.json similarity index 100% rename from packages/liquidity-sdk-viem/test/mocks/shared-liquidity.0.json rename to packages/liquidity-sdk-viem/test/mocks/dataloader.0.json diff --git a/packages/liquidity-sdk-viem/test/mocks/shared-liquidity.1.json b/packages/liquidity-sdk-viem/test/mocks/dataloader.1.json similarity index 100% rename from packages/liquidity-sdk-viem/test/mocks/shared-liquidity.1.json rename to packages/liquidity-sdk-viem/test/mocks/dataloader.1.json