@cowprotocol/sdk-flash-loans 1.1.2 → 1.1.3
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/dist/index.d.mts +8 -7
- package/dist/index.d.ts +8 -7
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TradeParameters, SwapAdvancedSettings, TradingSdk, OrderPostingResult } from '@cowprotocol/sdk-trading';
|
|
2
2
|
import { AccountAddress, TransactionResponse } from '@cowprotocol/sdk-common';
|
|
3
|
+
import { LatestAppDataDocVersion } from '@cowprotocol/sdk-app-data';
|
|
3
4
|
import { SupportedChainId } from '@cowprotocol/sdk-config';
|
|
4
5
|
import { Address } from '@cowprotocol/sdk-order-book';
|
|
5
6
|
import { UnsignedOrder } from '@cowprotocol/sdk-order-signing';
|
|
@@ -246,13 +247,13 @@ declare class AaveCollateralSwapSdk {
|
|
|
246
247
|
flashLoanFeeAmount: bigint;
|
|
247
248
|
sellAmountToSign: bigint;
|
|
248
249
|
};
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
250
|
+
getPreHookCallData(flashLoanType: AaveFlashLoanType, chainId: SupportedChainId, trader: AccountAddress, hookAmounts: FlashLoanHookAmounts, order: EncodedOrder, instanceAddress: AccountAddress): string;
|
|
251
|
+
buildHookOrderData(trader: AccountAddress, hookAmounts: FlashLoanHookAmounts, order: EncodedOrder): CollateralOrderData;
|
|
252
|
+
getFlashLoanPostHook(flashLoanType: AaveFlashLoanType, collateralPermit?: CollateralPermitData): string;
|
|
253
|
+
getCollateralSwapPostHookCallData(collateralPermit?: CollateralPermitData): string;
|
|
254
|
+
getDebtSwapPostHookCallData(collateralPermit?: CollateralPermitData): string;
|
|
255
|
+
getRepayPostHookCallData(collateralPermit?: CollateralPermitData): string;
|
|
256
|
+
getOrderHooks(flashLoanType: AaveFlashLoanType, chainId: SupportedChainId, trader: AccountAddress, expectedInstanceAddress: AccountAddress, hookAmounts: FlashLoanHookAmounts, order: EncodedOrder, collateralPermit?: CollateralPermitData): Promise<LatestAppDataDocVersion['metadata']['hooks']>;
|
|
256
257
|
private adapterEIP1271Signature;
|
|
257
258
|
}
|
|
258
259
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TradeParameters, SwapAdvancedSettings, TradingSdk, OrderPostingResult } from '@cowprotocol/sdk-trading';
|
|
2
2
|
import { AccountAddress, TransactionResponse } from '@cowprotocol/sdk-common';
|
|
3
|
+
import { LatestAppDataDocVersion } from '@cowprotocol/sdk-app-data';
|
|
3
4
|
import { SupportedChainId } from '@cowprotocol/sdk-config';
|
|
4
5
|
import { Address } from '@cowprotocol/sdk-order-book';
|
|
5
6
|
import { UnsignedOrder } from '@cowprotocol/sdk-order-signing';
|
|
@@ -246,13 +247,13 @@ declare class AaveCollateralSwapSdk {
|
|
|
246
247
|
flashLoanFeeAmount: bigint;
|
|
247
248
|
sellAmountToSign: bigint;
|
|
248
249
|
};
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
250
|
+
getPreHookCallData(flashLoanType: AaveFlashLoanType, chainId: SupportedChainId, trader: AccountAddress, hookAmounts: FlashLoanHookAmounts, order: EncodedOrder, instanceAddress: AccountAddress): string;
|
|
251
|
+
buildHookOrderData(trader: AccountAddress, hookAmounts: FlashLoanHookAmounts, order: EncodedOrder): CollateralOrderData;
|
|
252
|
+
getFlashLoanPostHook(flashLoanType: AaveFlashLoanType, collateralPermit?: CollateralPermitData): string;
|
|
253
|
+
getCollateralSwapPostHookCallData(collateralPermit?: CollateralPermitData): string;
|
|
254
|
+
getDebtSwapPostHookCallData(collateralPermit?: CollateralPermitData): string;
|
|
255
|
+
getRepayPostHookCallData(collateralPermit?: CollateralPermitData): string;
|
|
256
|
+
getOrderHooks(flashLoanType: AaveFlashLoanType, chainId: SupportedChainId, trader: AccountAddress, expectedInstanceAddress: AccountAddress, hookAmounts: FlashLoanHookAmounts, order: EncodedOrder, collateralPermit?: CollateralPermitData): Promise<LatestAppDataDocVersion['metadata']['hooks']>;
|
|
256
257
|
private adapterEIP1271Signature;
|
|
257
258
|
}
|
|
258
259
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cowprotocol/sdk-flash-loans",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Flash loans for CoW Protocol",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@cowprotocol/sdk-common": "0.3.0",
|
|
18
|
-
"@cowprotocol/sdk-trading": "0.4.4",
|
|
19
18
|
"@cowprotocol/sdk-app-data": "4.1.5",
|
|
19
|
+
"@cowprotocol/sdk-trading": "0.4.4",
|
|
20
20
|
"@cowprotocol/sdk-order-book": "0.1.4",
|
|
21
21
|
"@cowprotocol/sdk-order-signing": "0.1.9",
|
|
22
22
|
"@cowprotocol/sdk-config": "0.2.0"
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"ts-jest": "^29.0.0",
|
|
35
35
|
"ethers": "^5.7.2",
|
|
36
36
|
"viem": "2.30.5",
|
|
37
|
-
"@cow-sdk/typescript-config": "0.0.0-beta.0",
|
|
38
37
|
"@cowprotocol/sdk-ethers-v5-adapter": "0.2.0",
|
|
38
|
+
"@cowprotocol/sdk-viem-adapter": "0.2.0",
|
|
39
39
|
"@cowprotocol/sdk-ethers-v6-adapter": "0.2.0",
|
|
40
|
-
"@
|
|
40
|
+
"@cow-sdk/typescript-config": "0.0.0-beta.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|