Added factory schema

This commit is contained in:
lomonoshka
2023-09-28 19:48:12 +04:00
parent 823e9a8ad5
commit 21015e9219
8 changed files with 20 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
import { SwapExecutor__factory, CurveRegistry__factory } from "@orionprotocol/contracts/lib/ethers-v5/index.js"
import type { BigNumberish, providers } from "ethers"
import type { SingleSwap } from "../generateSwapCalldata.js"
import { addCallParams } from "./utils.js"
import type { SingleSwap } from "../../../types.js"
export async function generateCurveStableSwapCall(
amount: BigNumberish,

View File

@@ -3,8 +3,8 @@ import { SafeArray } from "../../../utils/safeGetters.js"
import { BigNumber } from "ethers"
import type { BytesLike, BigNumberish } from "ethers"
import { defaultAbiCoder, concat } from "ethers/lib/utils.js"
import type { SingleSwap } from "../generateSwapCalldata.js"
import { addCallParams, generateCalls } from "./utils.js"
import type { SingleSwap } from "../../../types.js"
export async function generateUni2Calls(
path: SafeArray<SingleSwap>,

View File

@@ -1,8 +1,8 @@
import { SwapExecutor__factory, UniswapV3Pool__factory } from "@orionprotocol/contracts/lib/ethers-v5/index.js"
import { type BigNumberish, providers, type BytesLike, ethers } from "ethers"
import { SafeArray } from "../../../utils/safeGetters.js"
import type { SingleSwap } from "../generateSwapCalldata.js"
import { addCallParams, generateCalls } from "./utils.js"
import type { SingleSwap } from "../../../types.js"
export async function generateUni3Call(
swap: SingleSwap,