Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@paraswap/core

Package Overview
Dependencies
Maintainers
9
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paraswap/core - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

17

build/types.d.ts
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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc