mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-24 22:58:01 +03:00
bump
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.19.89",
|
||||
"version": "0.19.89-rc0",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.js",
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { SwapExecutor__factory, CurveRegistry__factory } from "@orionprotocol/contracts/lib/ethers-v5/index.js"
|
||||
import type { BigNumberish, providers } from "ethers"
|
||||
import type { SwapInfo } from "../generateSwapCalldata.js"
|
||||
import { addCallParams } from "./utils.js"
|
||||
|
||||
export async function generateCurveStableSwapCall(
|
||||
amount: BigNumberish,
|
||||
@@ -23,5 +24,5 @@ export async function generateCurveStableSwapCall(
|
||||
amount,
|
||||
])
|
||||
|
||||
return calldata
|
||||
return addCallParams(calldata)
|
||||
}
|
||||
@@ -16,7 +16,7 @@ export async function generateUni3Call(
|
||||
const executorInterface = SwapExecutor__factory.createInterface()
|
||||
let calldata = executorInterface.encodeFunctionData('uniswapV3SingleSwapTo', [encodedPool, recipient, amount])
|
||||
|
||||
return calldata
|
||||
return addCallParams(calldata)
|
||||
}
|
||||
|
||||
export async function generateOrion3Call(
|
||||
@@ -31,7 +31,7 @@ export async function generateOrion3Call(
|
||||
const executorInterface = SwapExecutor__factory.createInterface()
|
||||
let calldata = executorInterface.encodeFunctionData('orionV3SingleSwapTo', [encodedPool, recipient, amount])
|
||||
|
||||
return calldata
|
||||
return addCallParams(calldata)
|
||||
}
|
||||
|
||||
export async function generateUni3Calls(
|
||||
|
||||
Reference in New Issue
Block a user