smart-order-router-tbd 0.0.8 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main/routers/alpha-router/alpha-router.d.ts +7 -0
- package/build/main/routers/alpha-router/alpha-router.js +42 -34
- package/build/main/routers/alpha-router/quoters/pv4bin-quoter.js +111 -54
- package/build/main/tsconfig.tsbuildinfo +1 -1
- package/build/main/util/pv4bin-constants.js +3 -4
- package/build/main/util/pv4cl-constants.js +2 -8
- package/build/module/routers/alpha-router/alpha-router.d.ts +7 -0
- package/build/module/routers/alpha-router/alpha-router.js +43 -35
- package/build/module/routers/alpha-router/quoters/pv4bin-quoter.js +111 -54
- package/build/module/tsconfig.module.tsbuildinfo +1 -1
- package/build/module/util/pv4bin-constants.js +3 -4
- package/build/module/util/pv4cl-constants.js +2 -8
- package/package.json +1 -1
|
@@ -533,6 +533,13 @@ export type AlphaRouterConfig = {
|
|
|
533
533
|
* is true. Defaults to 0, meaning quotes are returned without gas adjustment.
|
|
534
534
|
*/
|
|
535
535
|
defaultGasAdjustment?: number;
|
|
536
|
+
/**
|
|
537
|
+
* Per-protocol quote timeout in milliseconds. Every protocol's quoting
|
|
538
|
+
* promise (V2, V3, V4, PV2, PV3, PV4CL, PV4BIN, PSS, Mixed) is wrapped in
|
|
539
|
+
* a `Promise.race` against this timeout so that a single slow RPC cannot
|
|
540
|
+
* block the entire pipeline indefinitely. Defaults to 30 000 ms.
|
|
541
|
+
*/
|
|
542
|
+
protocolQuoteTimeoutMs?: number;
|
|
536
543
|
};
|
|
537
544
|
export declare class AlphaRouter implements IRouter<AlphaRouterConfig>, ISwapToRatio<AlphaRouterConfig, SwapAndAddConfig> {
|
|
538
545
|
protected chainId: ChainId;
|