Class: Twap
ComposableCoW
implementation of a TWAP order.
Author
mfw78 mfw78@rndlabs.xyz
Hierarchy
-
ConditionalOrder
<TwapData
,TwapStruct
>↳
Twap
Constructors
constructor
• new Twap(params
): Twap
Parameters
Name | Type |
---|---|
params | ConditionalOrderArguments <TwapData > |
Returns
See
Throws
If the TWAP order is invalid.
Throws
If the TWAP order is not ABI-encodable.
Throws
If the handler is not the TWAP address.
Overrides
Defined in
external/cow-sdk/src/composable/orderTypes/Twap.ts:172
Properties
data
• Readonly
data: TwapData
Inherited from
Defined in
external/cow-sdk/src/composable/ConditionalOrder.ts:37
handler
• Readonly
handler: string
Inherited from
Defined in
external/cow-sdk/src/composable/ConditionalOrder.ts:35
hasOffChainInput
• Readonly
hasOffChainInput: boolean
Inherited from
ConditionalOrder.hasOffChainInput
Defined in
external/cow-sdk/src/composable/ConditionalOrder.ts:39
isSingleOrder
• isSingleOrder: boolean
= true
Overrides
ConditionalOrder.isSingleOrder
Defined in
external/cow-sdk/src/composable/orderTypes/Twap.ts:164
salt
• Readonly
salt: string
Inherited from
Defined in
external/cow-sdk/src/composable/ConditionalOrder.ts:36
staticInput
• Readonly
staticInput: TwapStruct
Inherited from
Defined in
external/cow-sdk/src/composable/ConditionalOrder.ts:38
Accessors
context
• get
context(): undefined
| ContextFactory
Enforces that TWAPs will commence at the beginning of a block by use of the
CurrentBlockTimestampFactory
contract to provide the current block timestamp
as the start time of the TWAP.
Returns
undefined
| ContextFactory
Overrides
ConditionalOrder.context