@cowprotocol/events
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"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; | ||
}>; |
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
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
10488
232