UNPKG

@cowprotocol/cow-sdk

Version:

<p align="center"> <img width="400" src="https://github.com/cowprotocol/cow-sdk/raw/main/docs/images/CoW.png" /> </p>

7 lines (6 loc) 402 B
import { UnsignedOrder } from '../order-signing'; import { CowEnv, SupportedChainId } from '../common'; export interface EthFlowOrderExistsCallback { (orderId: string, orderDigest: string): Promise<boolean>; } export declare function calculateUniqueOrderId(chainId: SupportedChainId, order: UnsignedOrder, checkEthFlowOrderExists?: EthFlowOrderExistsCallback, env?: CowEnv): Promise<string>;