Class: Multiplexer
Multiplexer for conditional orders - using ComposableCoW!
This class provides functionality to:
- Generate a merkle tree of conditional orders
- Generate proofs for all orders in the merkle tree
- Save proofs, with the ability to omit / skip specific conditional orders
- Support for passing an optional upload function to upload the proofs to a decentralized storage network
Constructors
constructor
• new Multiplexer(chain, orders?, root?, location?): Multiplexer
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
chain | SupportedChainId | undefined | The chainId for where we're using ComposableCoW. |
orders? | Orders | undefined | An optional array of conditional orders to initialize the merkle tree with. |
root? | string | undefined | An optional root to verify against. |
location | ProofLocation | ProofLocation.PRIVATE | The location of the proofs for the conditional orders. |
Returns
Defined in
external/cow-sdk/src/composable/Multiplexer.ts:42
Properties
chain
• chain: SupportedChainId
Defined in
external/cow-sdk/src/composable/Multiplexer.ts:29
ctx
• Private Optional ctx: string