Socket
Socket
Sign inDemoInstall

@cowprotocol/events

Package Overview
Dependencies
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cowprotocol/events - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

package.json
{
"name": "@cowprotocol/events",
"version": "1.2.0",
"version": "1.2.1",
"type": "commonjs",

@@ -5,0 +5,0 @@ "description": "CoW Swap events",

import { TokenInfo, UiOrderType } from '@cowprotocol/types';
import { OrderKind } from '@cowprotocol/cow-sdk';
export type AtomsAndUnits = {
atoms: bigint;
units: string;
};
export type OnTradeParamsPayload = {
orderType: UiOrderType;
} & Partial<{
inputCurrency: TokenInfo;
outputCurrency: TokenInfo;
inputCurrencyAmount: bigint;
outputCurrencyAmount: bigint;
inputCurrencyBalance: bigint;
outputCurrencyBalance: bigint;
inputCurrencyFiatAmount: bigint;
outputCurrencyFiatAmount: bigint;
slippageAdjustedSellAmount: bigint;
sellToken: TokenInfo;
buyToken: TokenInfo;
sellTokenAmount: AtomsAndUnits;
buyTokenAmount: AtomsAndUnits;
sellTokenBalance: AtomsAndUnits;
buyTokenBalance: AtomsAndUnits;
sellTokenFiatAmount: string;
buyTokenFiatAmount: string;
/**
* Sell amount including slippage and fees.
* For sell orders, this value should be the same with inputCurrencyAmount
*/
maximumSendSellAmount: AtomsAndUnits;
/**
* Buy amount including slippage and fees.
* For buy orders, this value should be the same with outputCurrencyAmount
*/
minimumReceiveBuyAmount: AtomsAndUnits;
orderKind: OrderKind;
recipient: string;
}>;
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