@cryptorubic/sdk
Advanced tools
Comparing version 0.0.16 to 0.0.17
{ | ||
"name": "@cryptorubic/sdk", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "tslib": "^2.3.0" |
@@ -14,1 +14,2 @@ export * from './lib/core/sdk/sdk'; | ||
export * from './lib/features/router/models/wrapped-trade'; | ||
export * from './lib/core/errors/index'; |
@@ -19,1 +19,3 @@ "use strict"; | ||
tslib_1.__exportStar(require("./lib/features/router/models/wrapped-trade"), exports); | ||
// errors | ||
tslib_1.__exportStar(require("./lib/core/errors/index"), exports); |
@@ -58,21 +58,2 @@ "use strict"; | ||
} | ||
// /** | ||
// * Sends swap transaction with connected wallet. | ||
// * If user has not enough allowance, then approve transaction will be called first. | ||
// * | ||
// * @example | ||
// * ```ts | ||
// * const onConfirm = (hash: string) => console.log(hash); | ||
// * const receipt = await trade.swap({ onConfirm }); | ||
// * ``` | ||
// * | ||
// * @param options Transaction options. | ||
// */ | ||
// public abstract swap(options?: SwapTransactionOptions): Promise<string | never>; | ||
// | ||
// /** | ||
// * Builds transaction config, with encoded data. | ||
// * @param options Encode transaction options. | ||
// */ | ||
// public abstract encode(options: EncodeTransactionOptions): Promise<unknown>; | ||
static createInstance(params) { | ||
@@ -79,0 +60,0 @@ const { id, swapType, providerType, feeInfo, fromToken, toToken, spenderAddress, toTokenAmountMin, slippage, priceImpact } = params; |
80495
144
2010