@cowprotocol/sdk-bridging 3.4.0 → 4.0.1
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/README.md +4 -4
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -45,12 +45,12 @@ const parameters: QuoteBridgeRequest = {
|
|
|
45
45
|
|
|
46
46
|
// Sell token (and source chain)
|
|
47
47
|
sellTokenChainId: SupportedChainId.ARBITRUM_ONE,
|
|
48
|
-
sellTokenAddress: '
|
|
48
|
+
sellTokenAddress: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
|
|
49
49
|
sellTokenDecimals: 18,
|
|
50
50
|
|
|
51
51
|
// Buy token (and target chain)
|
|
52
52
|
buyTokenChainId: SupportedChainId.BASE,
|
|
53
|
-
buyTokenAddress: '
|
|
53
|
+
buyTokenAddress: '0x4200000000000000000000000000000000000006',
|
|
54
54
|
buyTokenDecimals: 18,
|
|
55
55
|
|
|
56
56
|
// Amount to sell
|
|
@@ -115,12 +115,12 @@ const parameters: QuoteBridgeRequest = {
|
|
|
115
115
|
|
|
116
116
|
// Sell token (and source chain)
|
|
117
117
|
sellTokenChainId: SupportedChainId.ARBITRUM_ONE,
|
|
118
|
-
sellTokenAddress: '
|
|
118
|
+
sellTokenAddress: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
|
|
119
119
|
sellTokenDecimals: 18,
|
|
120
120
|
|
|
121
121
|
// Buy token (and target chain)
|
|
122
122
|
buyTokenChainId: SupportedChainId.BASE,
|
|
123
|
-
buyTokenAddress: '
|
|
123
|
+
buyTokenAddress: '0x4200000000000000000000000000000000000006',
|
|
124
124
|
buyTokenDecimals: 18,
|
|
125
125
|
|
|
126
126
|
// Amount to sell
|
package/dist/index.d.mts
CHANGED
|
@@ -649,7 +649,7 @@ declare class BridgingSdk {
|
|
|
649
649
|
private getBuyTokensFromProvider;
|
|
650
650
|
}
|
|
651
651
|
|
|
652
|
-
declare const RAW_PROVIDERS_FILES_PATH = "https://files.cow.
|
|
652
|
+
declare const RAW_PROVIDERS_FILES_PATH = "https://files.cow.fi/cow-sdk/bridging/providers";
|
|
653
653
|
declare const DEFAULT_GAS_COST_FOR_HOOK_ESTIMATION = 240000;
|
|
654
654
|
declare const DEFAULT_EXTRA_GAS_FOR_HOOK_ESTIMATION = 350000;
|
|
655
655
|
declare const COW_SHED_PROXY_CREATION_GAS = 360000;
|
package/dist/index.d.ts
CHANGED
|
@@ -649,7 +649,7 @@ declare class BridgingSdk {
|
|
|
649
649
|
private getBuyTokensFromProvider;
|
|
650
650
|
}
|
|
651
651
|
|
|
652
|
-
declare const RAW_PROVIDERS_FILES_PATH = "https://files.cow.
|
|
652
|
+
declare const RAW_PROVIDERS_FILES_PATH = "https://files.cow.fi/cow-sdk/bridging/providers";
|
|
653
653
|
declare const DEFAULT_GAS_COST_FOR_HOOK_ESTIMATION = 240000;
|
|
654
654
|
declare const DEFAULT_EXTRA_GAS_FOR_HOOK_ESTIMATION = 350000;
|
|
655
655
|
declare const COW_SHED_PROXY_CREATION_GAS = 360000;
|
package/dist/index.js
CHANGED
|
@@ -4387,7 +4387,8 @@ function isValidBungeeEventsResponse(response) {
|
|
|
4387
4387
|
}
|
|
4388
4388
|
const e = event;
|
|
4389
4389
|
return "identifier" in e && "bridgeName" in e && "fromChainId" in e && "isCowswapTrade" in e && "orderId" in e && // 'recipient' in e &&
|
|
4390
|
-
|
|
4390
|
+
// 'sender' in e &&
|
|
4391
|
+
"srcTxStatus" in e && "destTxStatus" in e;
|
|
4391
4392
|
});
|
|
4392
4393
|
}
|
|
4393
4394
|
function isValidAcrossStatusResponse(response) {
|
package/dist/index.mjs
CHANGED
|
@@ -4337,7 +4337,8 @@ function isValidBungeeEventsResponse(response) {
|
|
|
4337
4337
|
}
|
|
4338
4338
|
const e = event;
|
|
4339
4339
|
return "identifier" in e && "bridgeName" in e && "fromChainId" in e && "isCowswapTrade" in e && "orderId" in e && // 'recipient' in e &&
|
|
4340
|
-
|
|
4340
|
+
// 'sender' in e &&
|
|
4341
|
+
"srcTxStatus" in e && "destTxStatus" in e;
|
|
4341
4342
|
});
|
|
4342
4343
|
}
|
|
4343
4344
|
function isValidAcrossStatusResponse(response) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cowprotocol/sdk-bridging",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Bridging for CoW Protocol",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@defuse-protocol/one-click-sdk-typescript": "0.1.1-0.2",
|
|
23
23
|
"json-stable-stringify": "^1.3.0",
|
|
24
|
-
"@cowprotocol/sdk-app-data": "
|
|
25
|
-
"@cowprotocol/sdk-
|
|
26
|
-
"@cowprotocol/sdk-
|
|
27
|
-
"@cowprotocol/sdk-contracts-ts": "
|
|
28
|
-
"@cowprotocol/sdk-cow-shed": "0.3.
|
|
29
|
-
"@cowprotocol/sdk-
|
|
30
|
-
"@cowprotocol/sdk-
|
|
31
|
-
"@cowprotocol/sdk-
|
|
24
|
+
"@cowprotocol/sdk-app-data": "5.0.0",
|
|
25
|
+
"@cowprotocol/sdk-config": "2.0.0",
|
|
26
|
+
"@cowprotocol/sdk-common": "0.10.2",
|
|
27
|
+
"@cowprotocol/sdk-contracts-ts": "3.0.1",
|
|
28
|
+
"@cowprotocol/sdk-cow-shed": "0.3.8",
|
|
29
|
+
"@cowprotocol/sdk-order-book": "3.0.0",
|
|
30
|
+
"@cowprotocol/sdk-weiroll": "0.1.30",
|
|
31
|
+
"@cowprotocol/sdk-trading": "2.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/jest": "^29.4.0",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"typescript": "^5.2.2",
|
|
45
45
|
"viem": "^2.28.4",
|
|
46
46
|
"@cow-sdk/typescript-config": "0.0.0-beta.0",
|
|
47
|
-
"@cowprotocol/sdk-ethers-
|
|
48
|
-
"@cowprotocol/sdk-ethers-
|
|
49
|
-
"@cowprotocol/sdk-order-signing": "0.
|
|
50
|
-
"@cowprotocol/sdk-viem-adapter": "0.3.
|
|
47
|
+
"@cowprotocol/sdk-ethers-v5-adapter": "0.4.4",
|
|
48
|
+
"@cowprotocol/sdk-ethers-v6-adapter": "0.4.4",
|
|
49
|
+
"@cowprotocol/sdk-order-signing": "1.0.1",
|
|
50
|
+
"@cowprotocol/sdk-viem-adapter": "0.3.18"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|