mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-28 00:28:04 +03:00
feat: return back swap market / limit
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
import type Unit from '../index.js';
|
||||
import deposit, { type DepositParams } from './deposit.js';
|
||||
import getSwapInfo, { type GetSwapInfoParams } from './getSwapInfo.js';
|
||||
import {generateSwapCalldataWithUnit, type GenerateSwapCalldataWithUnitParams } from './generateSwapCalldata.js';
|
||||
import { generateSwapCalldataWithUnit, type GenerateSwapCalldataWithUnitParams } from './generateSwapCalldata.js';
|
||||
import withdraw, { type WithdrawParams } from './withdraw.js';
|
||||
import type { SwapLimitParams } from './swapLimit.js';
|
||||
import swapLimit from './swapLimit.js';
|
||||
import swapMarket from './swapMarket.js';
|
||||
import type { SwapMarketParams } from './swapMarket.js';
|
||||
|
||||
type PureDepositParams = Omit<DepositParams, 'unit'>
|
||||
type PureWithdrawParams = Omit<WithdrawParams, 'unit'>
|
||||
@@ -44,4 +48,12 @@ export default class Exchange {
|
||||
unit: this.unit
|
||||
})
|
||||
}
|
||||
|
||||
public swapLimit(params: SwapLimitParams) {
|
||||
return swapLimit(params);
|
||||
}
|
||||
|
||||
public swapMarket(params: SwapMarketParams) {
|
||||
return swapMarket(params);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user