From a886c343d370157c76ea952db2d4e36d2935f98e Mon Sep 17 00:00:00 2001 From: lomonoshka Date: Thu, 10 Aug 2023 15:26:12 +0300 Subject: [PATCH 1/2] Removed Exchange type --- src/Unit/Exchange/generateSwapCalldata.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Unit/Exchange/generateSwapCalldata.ts b/src/Unit/Exchange/generateSwapCalldata.ts index 1679376..15f7399 100644 --- a/src/Unit/Exchange/generateSwapCalldata.ts +++ b/src/Unit/Exchange/generateSwapCalldata.ts @@ -5,13 +5,12 @@ import { concat, defaultAbiCoder, type BytesLike } from 'ethers/lib/utils.js'; import { safeGet, SafeArray } from '../../utils/safeGetters.js'; import type Unit from '../index.js'; import { simpleFetch } from 'simple-typed-fetch'; -import type { Exchange } from '../../types.js'; const EXECUTOR_SWAP_FUNCTION = "func_70LYiww" export type Factory = "UniswapV2" | "UniswapV3" | "Curve" | "OrionV2" | "OrionV3" -const exchangeToType: Partial> = { +const exchangeToType: Partial> = { 'SPOOKYSWAP': 'UniswapV2', 'PANCAKESWAP': 'UniswapV2', 'UNISWAP': 'UniswapV2', @@ -33,7 +32,7 @@ export type SwapInfo = { pool: string, assetIn: string, assetOut: string, - factory: Exchange + factory: string } export type CallParams = { From 8ea9cdfbd49db5caf3e9a04d8f685162810d1142 Mon Sep 17 00:00:00 2001 From: lomonoshka Date: Thu, 10 Aug 2023 15:29:22 +0300 Subject: [PATCH 2/2] upd version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1b95422..187a515 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.19.48-dev.1", + "version": "0.19.48-dev.2", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js",