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>

31 lines (30 loc) 999 B
import type { CompetitionAuction } from './CompetitionAuction'; import type { SolverSettlement } from './SolverSettlement'; import type { TransactionHash } from './TransactionHash'; /** * The settlements submitted by every solver for a specific auction. * The `auctionId` corresponds to the id external solvers are provided * with. * */ export type SolverCompetitionResponse = { /** * The ID of the auction the competition info is for. */ auctionId?: number; /** * The hash of the transaction that the winning solution of this info was submitted in. */ transactionHash?: TransactionHash | null; /** * Gas price used for ranking solutions. */ gasPrice?: number; liquidityCollectedBlock?: number; competitionSimulationBlock?: number; auction?: CompetitionAuction; /** * Maps from solver name to object describing that solver's settlement. */ solutions?: Array<SolverSettlement>; };