@cowprotocol/cow-sdk
Namespacesโ
Enumerationsโ
- AdditionalTargetChainId
- BridgeQuoteErrors
- BridgeStatus
- BuyTokenDestination
- DurationType
- EcdsaSigningScheme
- OrderClass
- OrderKind
- OrderQuoteSideKindBuy
- OrderQuoteSideKindSell
- OrderStatus
- PollResultCode
- PriceQuality
- ProofLocation
- SellTokenSource
- SigningScheme
- StartTimeValue
- SupportedChainId
- WeirollCommandFlags
Classesโ
- AcrossBridgeProvider
- BridgeOrderParsingError
- BridgeProviderError
- BridgeProviderQuoteError
- BridgingSdk
- BungeeBridgeProvider
- ConditionalOrder
- ConditionalOrderFactory
- CowError
- CowShedHooks
- CowShedSdk
- Multiplexer
- OrderBookApi
- OrderBookApiError
- OrderSigningUtils
- SubgraphApi
- TradingSdk
- Twap
- WeirollContract
- WeirollPlanner
Interfacesโ
- AcrossBridgeProviderOptions
- AcrossQuoteResult
- Amounts
- ApiContext
- AppDataInfo
- BridgeCallDetails
- BridgeCosts
- BridgeDeposit
- BridgeHook
- BridgeProvider
- BridgeProviderInfo
- BridgeQuoteAmountsAndCosts
- BridgeQuoteAndPost
- BridgeQuoteResult
- BridgeQuoteResults
- BridgeStatusResult
- BridgingDepositParams
- BridgingSdkOptions
- BuildAppDataParams
- BungeeBridgeProviderOptions
- BungeeQuoteResult
- BuyTokensParams
- ChainInfo
- ConditionalOrderArguments
- Costs
- CowShedCall
- CowShedSdkOptions
- CrossChainOrder
- EnrichedOrder
- EthFlowOrderExistsCallback
- EvmCall
- FetchParams
- GetOrderParams
- GetProviderBuyTokens
- ICoWShedCall
- ICoWShedOptions
- IpfsConfig
- IsNotValid
- IsValid
- LimitOrderAdvancedSettings
- LimitOrderParameters
- LimitTradeParameters
- LimitTradeParametersFromQuote
- OrderPostingResult
- OrderTypedData
- PollResultDontTryAgain
- PollResultSuccess
- PollResultTryAtEpoch
- PollResultTryNextBlock
- PollResultTryOnBlock
- PollResultUnexpectedError
- PostTradeAdditionalParams
- QuoteAmountsAndCosts
- QuoteAmountsAndCostsParams
- QuoteAndPost
- QuoteResults
- QuoteResultsSerialized
- RequestOptions
- SignAndEncodeTxArgs
- SignOrderCancellationParams
- SignOrderCancellationsParams
- SignOrderParams
- SigningStepManager
- SwapAdvancedSettings
- SwapParameters
- ThemedImage
- TokenInfo
- TradeBaseParameters
- TradeOptionalParameters
- TradeParameters
- TraderParameters
- TradingSdkOptions
- TransactionParams
- TwapData
- TwapStruct
- WebUrl
Type Aliasesโ
AccountAddressโ
ฦฌ AccountAddress: `0x${string}`
Defined inโ
external/cow-sdk/src/common/types/wallets.ts:5
Addressโ
ฦฌ Address: string
20 byte Ethereum address encoded as a hex with 0x
prefix.
Defined inโ
external/cow-sdk/src/order-book/generated/models/Address.ts:8
ApiBaseUrlsโ
ฦฌ ApiBaseUrls: Record
<SupportedChainId
, string
>
Defined inโ
external/cow-sdk/src/common/types/config.ts:49
AppDataโ
ฦฌ AppData: string
The string encoding of a JSON object representing some appData
. The
format of the JSON expected in the appData
field is defined
here.
Defined inโ
external/cow-sdk/src/order-book/generated/models/AppData.ts:11
AppDataHashโ
ฦฌ AppDataHash: string
32 bytes encoded as hex with 0x
prefix.
It's expected to be the hash of the stringified JSON object representing the appData
.
Defined inโ
external/cow-sdk/src/order-book/generated/models/AppDataHash.ts:10
AppDataObjectโ
ฦฌ AppDataObject: Object
An appData
document that is registered with the API.
Type declarationโ
Name | Type |
---|---|
fullAppData? | AppData |
Defined inโ
external/cow-sdk/src/order-book/generated/models/AppDataObject.ts:9
AppDataRootSchemaโ
ฦฌ AppDataRootSchema: latest.AppDataRootSchema
Defined inโ
external/cow-sdk/src/trading/types.ts:204
Auctionโ
ฦฌ Auction: Object
A batch auction for solving.
Type declarationโ
Name | Type | Description |
---|---|---|
block? | number | The block number for the auction. Orders and prices are guaranteed to be valid on this block. Proposed settlements should be valid for this block as well. |
id? | number | The unique identifier of the auction. Increment whenever the backend creates a new auction. |
orders? | AuctionOrder [] | The solvable orders included in the auction. |
prices? | AuctionPrices | - |
surplusCapturingJitOrderOwners? | Address [] | List of addresses on whose surplus will count towards the objective value of their solution (unlike other orders that were created by the solver). |
Defined inโ
external/cow-sdk/src/order-book/generated/models/Auction.ts:12
AuctionOrderโ
ฦฌ AuctionOrder: Object
A solvable order included in the current batch auction. Contains the data forwarded to solvers for solving.
Type declarationโ
Name | Type | Description |
---|---|---|
appData | AppDataHash | - |
buyAmount | TokenAmount | see OrderParameters::buyAmount |
buyToken | Address | see OrderParameters::buyToken |
buyTokenBalance | BuyTokenDestination | see OrderParameters::buyTokenBalance |
class | OrderClass | - |
created | string | Creation time of the order. Denominated in epoch seconds. |
executed | TokenAmount | Currently executed amount of sell/buy token, depending on the order kind. |
kind | OrderKind | see OrderParameters::kind |
owner | Address | - |
partiallyFillable | boolean | see OrderParameters::partiallyFillable |
postInteractions | InteractionData [] | The post-interactions that need to be executed after the execution of the order. |
preInteractions | InteractionData [] | The pre-interactions that need to be executed before the first execution of the order. |
protocolFees | FeePolicy [] | The fee policies that are used to compute the protocol fees for this order. |
quote? | Quote | A winning quote. |
receiver | Address | null | see OrderParameters::receiver |
sellAmount | TokenAmount | see OrderParameters::sellAmount |
sellToken | Address | see OrderParameters::sellToken |
sellTokenBalance | SellTokenSource | see OrderParameters::sellTokenBalance |
signature | Signature | - |
uid | UID | - |
validTo | number | see OrderParameters::validTo |
Defined inโ
external/cow-sdk/src/order-book/generated/models/AuctionOrder.ts:21