@cowprotocol/cow-sdk
Version:
<p align="center"> <img width="400" src="https://github.com/cowprotocol/cow-sdk/raw/main/docs/images/CoW.png" /> </p>
25 lines (24 loc) • 1.01 kB
TypeScript
import type { Address } from './Address';
export type OnchainOrderData = {
/**
* If orders are placed as on-chain orders, the owner of the order might be a smart contract, but not the user placing the order. The actual user will be provided in this field.
*
*/
sender: Address;
/**
* Describes the error, if the order placement was not successful. This could happen, for example, if the `validTo` is too high, or no valid quote was found or generated.
*
*/
placementError?: OnchainOrderData.placementError;
};
export declare namespace OnchainOrderData {
/**
* Describes the error, if the order placement was not successful. This could happen, for example, if the `validTo` is too high, or no valid quote was found or generated.
*
*/
enum placementError {
QUOTE_NOT_FOUND = "QuoteNotFound",
VALID_TO_TOO_FAR_IN_FUTURE = "ValidToTooFarInFuture",
PRE_VALIDATION_ERROR = "PreValidationError"
}
}