@cowprotocol/cow-sdk 6.0.0-RC.28 → 6.0.0-RC.30

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.
@@ -1,5 +1,6 @@
1
1
  import { SwapAdvancedSettings, TradingSdk } from '../../trading';
2
2
  import { BridgeProvider, BridgeQuoteAndPost, BridgeQuoteResult, GetErc20Decimals, QuoteBridgeRequest } from '../types';
3
+ import { SignerLike } from '../../common';
3
4
  type GetQuoteWithBridgeParams<T extends BridgeQuoteResult> = {
4
5
  /**
5
6
  * Overall request for the swap and the bridge.
@@ -21,6 +22,11 @@ type GetQuoteWithBridgeParams<T extends BridgeQuoteResult> = {
21
22
  * Function to get the decimals of the ERC20 tokens.
22
23
  */
23
24
  getErc20Decimals: GetErc20Decimals;
25
+ /**
26
+ * For quote fetching we have to sign bridging hooks.
27
+ * But we won't do that using users wallet and will use some static PK.
28
+ */
29
+ bridgeHookSigner?: SignerLike;
24
30
  };
25
31
  export declare function getQuoteWithBridge<T extends BridgeQuoteResult>(params: GetQuoteWithBridgeParams<T>): Promise<BridgeQuoteAndPost>;
26
32
  export {};
@@ -1,2 +1,3 @@
1
1
  import { latest } from '@cowprotocol/app-data';
2
- export declare function getHookMockForCostEstimation(gasLimit: number): latest.OrderInteractionHooks;
2
+ export declare function getHookMockForCostEstimation(gasLimit: number): latest.CoWHook;
3
+ export declare function areHooksEqual(hookA: latest.CoWHook, hookB: latest.CoWHook): boolean;