@cowprotocol/cow-sdk
Advanced tools
Comparing version 0.0.10 to 0.0.11
import { SupportedChainId as ChainId } from '../../constants/chains'; | ||
import { OrderCreation } from '../../utils/sign'; | ||
import { FeeQuoteParams, PriceInformation, PriceQuoteParams, SimpleGetQuoteResponse } from '../../utils/price'; | ||
import { FeeQuoteParams, PriceInformation, PriceQuoteParams, SimpleGetQuoteResponse } from './types'; | ||
import { GetOrdersParams, GetTradesParams, OrderCancellationParams, OrderID, OrderMetaData, ProfileData, TradeMetaData } from './types'; | ||
@@ -5,0 +5,0 @@ import { Context } from '../../utils/context'; |
@@ -1,2 +0,2 @@ | ||
import { OrderKind } from '@gnosis.pm/gp-v2-contracts'; | ||
import { GetQuoteResponse, OrderKind } from '@gnosis.pm/gp-v2-contracts'; | ||
import { SupportedChainId as ChainId } from '../../constants/chains'; | ||
@@ -74,2 +74,34 @@ import { OrderCancellation, SigningSchemeValue } from '../../utils/sign'; | ||
}; | ||
export { FeeQuoteParams, PriceQuoteParams, QuoteParams, FeeInformation, PriceInformation, SimpleGetQuoteResponse, } from '../../utils/price'; | ||
export interface QuoteParams { | ||
quoteParams: FeeQuoteParams; | ||
fetchFee: boolean; | ||
previousFee?: FeeInformation; | ||
isPriceRefresh: boolean; | ||
} | ||
export interface FeeInformation { | ||
expirationDate: string; | ||
amount: string; | ||
} | ||
export interface PriceInformation { | ||
token: string; | ||
amount: string | null; | ||
} | ||
export declare type SimpleGetQuoteResponse = Pick<GetQuoteResponse, 'from'> & { | ||
quote: Omit<GetQuoteResponse['quote'], 'sellAmount' | 'buyAmount' | 'feeAmount' | 'validTo'> & { | ||
sellAmount: string; | ||
buyAmount: string; | ||
validTo: string; | ||
feeAmount: string; | ||
}; | ||
expiration: string; | ||
}; | ||
export declare type FeeQuoteParams = Pick<OrderMetaData, 'sellToken' | 'buyToken' | 'kind'> & { | ||
amount: string; | ||
userAddress?: string | null; | ||
receiver?: string | null; | ||
validTo: number; | ||
}; | ||
export declare type PriceQuoteParams = Omit<FeeQuoteParams, 'sellToken' | 'buyToken'> & { | ||
baseToken: string; | ||
quoteToken: string; | ||
}; |
{ | ||
"name": "@cowprotocol/cow-sdk", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"license": "(MIT OR Apache-2.0)", | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
802601
3489
0