@paraswap/core
Advanced tools
Comparing version 1.0.3 to 1.0.4
import { SwapSide } from './constants'; | ||
export type Address = string; | ||
export type NumberAsString = string; | ||
export type Adapters = { | ||
export declare type Address = string; | ||
export declare type NumberAsString = string; | ||
export declare type Adapters = { | ||
[exchangeKey: string]: { | ||
@@ -10,7 +10,7 @@ adapter: Address; | ||
}; | ||
export type OptimalRoute = { | ||
export declare type OptimalRoute = { | ||
percent: number; | ||
swaps: OptimalSwap[]; | ||
}; | ||
export type OptimalSwap = { | ||
export declare type OptimalSwap = { | ||
srcToken: Address; | ||
@@ -22,3 +22,3 @@ srcDecimals: number; | ||
}; | ||
export type OptimalSwapExchange<T> = { | ||
export declare type OptimalSwapExchange<T> = { | ||
exchange: string; | ||
@@ -31,3 +31,3 @@ srcAmount: NumberAsString; | ||
}; | ||
export type OptionalRate = { | ||
export declare type OptionalRate = { | ||
exchange: string; | ||
@@ -39,3 +39,3 @@ srcAmount: NumberAsString; | ||
}; | ||
export type OptimalRate = { | ||
export declare type OptimalRate = { | ||
blockNumber: number; | ||
@@ -54,2 +54,3 @@ network: number; | ||
gasCost: NumberAsString; | ||
gasCostL1Wei?: string; | ||
others?: OptionalRate[]; | ||
@@ -56,0 +57,0 @@ side: SwapSide; |
{ | ||
"name": "@paraswap/core", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Common library used between different paraswap packages", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -54,2 +54,3 @@ import { SwapSide } from './constants'; | ||
gasCost: NumberAsString; | ||
gasCostL1Wei?: string; // L1 surcharge on optimism | ||
others?: OptionalRate[]; | ||
@@ -56,0 +57,0 @@ side: SwapSide; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8884
239