@cowprotocol/sdk-bridging 2.1.0 → 3.0.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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -11
- package/dist/index.mjs +1 -11
- package/package.json +13 -13
package/dist/index.d.mts
CHANGED
|
@@ -643,7 +643,7 @@ declare class BridgingSdk {
|
|
|
643
643
|
|
|
644
644
|
declare const RAW_PROVIDERS_FILES_PATH = "https://files.cow.fi/cow-sdk/bridging/providers";
|
|
645
645
|
declare const DEFAULT_GAS_COST_FOR_HOOK_ESTIMATION = 240000;
|
|
646
|
-
declare const DEFAULT_EXTRA_GAS_FOR_HOOK_ESTIMATION =
|
|
646
|
+
declare const DEFAULT_EXTRA_GAS_FOR_HOOK_ESTIMATION = 350000;
|
|
647
647
|
declare const COW_SHED_PROXY_CREATION_GAS = 360000;
|
|
648
648
|
declare const DEFAULT_EXTRA_GAS_PROXY_CREATION = 400000;
|
|
649
649
|
declare const HOOK_DAPP_BRIDGE_PROVIDER_PREFIX = "cow-sdk://bridging/providers";
|
package/dist/index.d.ts
CHANGED
|
@@ -643,7 +643,7 @@ declare class BridgingSdk {
|
|
|
643
643
|
|
|
644
644
|
declare const RAW_PROVIDERS_FILES_PATH = "https://files.cow.fi/cow-sdk/bridging/providers";
|
|
645
645
|
declare const DEFAULT_GAS_COST_FOR_HOOK_ESTIMATION = 240000;
|
|
646
|
-
declare const DEFAULT_EXTRA_GAS_FOR_HOOK_ESTIMATION =
|
|
646
|
+
declare const DEFAULT_EXTRA_GAS_FOR_HOOK_ESTIMATION = 350000;
|
|
647
647
|
declare const COW_SHED_PROXY_CREATION_GAS = 360000;
|
|
648
648
|
declare const DEFAULT_EXTRA_GAS_PROXY_CREATION = 400000;
|
|
649
649
|
declare const HOOK_DAPP_BRIDGE_PROVIDER_PREFIX = "cow-sdk://bridging/providers";
|
package/dist/index.js
CHANGED
|
@@ -161,7 +161,7 @@ function isReceiverAccountBridgeProvider(provider) {
|
|
|
161
161
|
var import_sdk_config = require("@cowprotocol/sdk-config");
|
|
162
162
|
var RAW_PROVIDERS_FILES_PATH = `${import_sdk_config.RAW_FILES_PATH}/bridging/providers`;
|
|
163
163
|
var DEFAULT_GAS_COST_FOR_HOOK_ESTIMATION = 24e4;
|
|
164
|
-
var DEFAULT_EXTRA_GAS_FOR_HOOK_ESTIMATION =
|
|
164
|
+
var DEFAULT_EXTRA_GAS_FOR_HOOK_ESTIMATION = 35e4;
|
|
165
165
|
var COW_SHED_PROXY_CREATION_GAS = 36e4;
|
|
166
166
|
var DEFAULT_EXTRA_GAS_PROXY_CREATION = 4e5;
|
|
167
167
|
var HOOK_DAPP_BRIDGE_PROVIDER_PREFIX = "cow-sdk://bridging/providers";
|
|
@@ -1562,8 +1562,6 @@ var ACROSS_SPOOK_CONTRACT_ADDRESSES = {
|
|
|
1562
1562
|
[import_sdk_config4.SupportedChainId.SEPOLIA]: "0x5ef6C01E11889d86803e0B23e3cB3F9E9d97B662",
|
|
1563
1563
|
// https://docs.across.to/reference/contract-addresses/polygon-chain-id-137
|
|
1564
1564
|
[import_sdk_config4.SupportedChainId.POLYGON]: "0x9295ee1d8C5b022Be115A2AD3c30C72E34e7F096",
|
|
1565
|
-
// https://docs.across.to/reference/contract-addresses/lens-chain
|
|
1566
|
-
[import_sdk_config4.SupportedChainId.LENS]: "0xb234cA484866c811d0e6D3318866F583781ED045",
|
|
1567
1565
|
// https://docs.across.to/reference/contract-addresses/bnb-smart-chain
|
|
1568
1566
|
[import_sdk_config4.SupportedChainId.BNB]: "0x4e8E101924eDE233C13e2D8622DC8aED2872d505",
|
|
1569
1567
|
// https://docs.across.to/reference/contract-addresses/linea-chain-id-59144
|
|
@@ -1591,8 +1589,6 @@ var ACROSS_MATH_CONTRACT_ADDRESSES = {
|
|
|
1591
1589
|
[import_sdk_config4.SupportedChainId.SEPOLIA]: void 0,
|
|
1592
1590
|
[import_sdk_config4.SupportedChainId.POLYGON]: void 0,
|
|
1593
1591
|
[import_sdk_config4.SupportedChainId.AVALANCHE]: void 0,
|
|
1594
|
-
[import_sdk_config4.SupportedChainId.LENS]: void 0,
|
|
1595
|
-
// TODO: confirm
|
|
1596
1592
|
[import_sdk_config4.SupportedChainId.BNB]: void 0,
|
|
1597
1593
|
// TODO: confirm
|
|
1598
1594
|
[import_sdk_config4.SupportedChainId.LINEA]: void 0,
|
|
@@ -4039,8 +4035,6 @@ var BungeeCowswapLibAddresses = {
|
|
|
4039
4035
|
[import_sdk_config7.SupportedChainId.BASE]: BUNGEE_COWSWAP_LIB_ADDRESS,
|
|
4040
4036
|
[import_sdk_config7.SupportedChainId.AVALANCHE]: BUNGEE_COWSWAP_LIB_ADDRESS,
|
|
4041
4037
|
[import_sdk_config7.SupportedChainId.POLYGON]: BUNGEE_COWSWAP_LIB_ADDRESS,
|
|
4042
|
-
[import_sdk_config7.SupportedChainId.LENS]: void 0,
|
|
4043
|
-
// TODO: confirm
|
|
4044
4038
|
[import_sdk_config7.SupportedChainId.BNB]: void 0,
|
|
4045
4039
|
// TODO: confirm
|
|
4046
4040
|
[import_sdk_config7.SupportedChainId.LINEA]: void 0,
|
|
@@ -4062,8 +4056,6 @@ var SocketVerifierAddresses = {
|
|
|
4062
4056
|
[import_sdk_config7.SupportedChainId.BASE]: SOCKET_VERIFIER_ADDRESS,
|
|
4063
4057
|
[import_sdk_config7.SupportedChainId.AVALANCHE]: SOCKET_VERIFIER_ADDRESS,
|
|
4064
4058
|
[import_sdk_config7.SupportedChainId.POLYGON]: SOCKET_VERIFIER_ADDRESS,
|
|
4065
|
-
[import_sdk_config7.SupportedChainId.LENS]: void 0,
|
|
4066
|
-
// TODO: confirm
|
|
4067
4059
|
[import_sdk_config7.SupportedChainId.BNB]: void 0,
|
|
4068
4060
|
// TODO: confirm
|
|
4069
4061
|
[import_sdk_config7.SupportedChainId.LINEA]: void 0,
|
|
@@ -4085,8 +4077,6 @@ var BungeeApproveAndBridgeV1Addresses = {
|
|
|
4085
4077
|
[import_sdk_config7.SupportedChainId.BASE]: BUNGEE_APPROVE_AND_BRIDGE_V1_ADDRESS,
|
|
4086
4078
|
[import_sdk_config7.SupportedChainId.AVALANCHE]: BUNGEE_APPROVE_AND_BRIDGE_V1_ADDRESS,
|
|
4087
4079
|
[import_sdk_config7.SupportedChainId.POLYGON]: BUNGEE_APPROVE_AND_BRIDGE_V1_ADDRESS,
|
|
4088
|
-
[import_sdk_config7.SupportedChainId.LENS]: void 0,
|
|
4089
|
-
// TODO: confirm
|
|
4090
4080
|
[import_sdk_config7.SupportedChainId.BNB]: void 0,
|
|
4091
4081
|
// TODO: confirm
|
|
4092
4082
|
[import_sdk_config7.SupportedChainId.LINEA]: void 0,
|
package/dist/index.mjs
CHANGED
|
@@ -100,7 +100,7 @@ function isReceiverAccountBridgeProvider(provider) {
|
|
|
100
100
|
import { RAW_FILES_PATH } from "@cowprotocol/sdk-config";
|
|
101
101
|
var RAW_PROVIDERS_FILES_PATH = `${RAW_FILES_PATH}/bridging/providers`;
|
|
102
102
|
var DEFAULT_GAS_COST_FOR_HOOK_ESTIMATION = 24e4;
|
|
103
|
-
var DEFAULT_EXTRA_GAS_FOR_HOOK_ESTIMATION =
|
|
103
|
+
var DEFAULT_EXTRA_GAS_FOR_HOOK_ESTIMATION = 35e4;
|
|
104
104
|
var COW_SHED_PROXY_CREATION_GAS = 36e4;
|
|
105
105
|
var DEFAULT_EXTRA_GAS_PROXY_CREATION = 4e5;
|
|
106
106
|
var HOOK_DAPP_BRIDGE_PROVIDER_PREFIX = "cow-sdk://bridging/providers";
|
|
@@ -1505,8 +1505,6 @@ var ACROSS_SPOOK_CONTRACT_ADDRESSES = {
|
|
|
1505
1505
|
[SupportedChainId2.SEPOLIA]: "0x5ef6C01E11889d86803e0B23e3cB3F9E9d97B662",
|
|
1506
1506
|
// https://docs.across.to/reference/contract-addresses/polygon-chain-id-137
|
|
1507
1507
|
[SupportedChainId2.POLYGON]: "0x9295ee1d8C5b022Be115A2AD3c30C72E34e7F096",
|
|
1508
|
-
// https://docs.across.to/reference/contract-addresses/lens-chain
|
|
1509
|
-
[SupportedChainId2.LENS]: "0xb234cA484866c811d0e6D3318866F583781ED045",
|
|
1510
1508
|
// https://docs.across.to/reference/contract-addresses/bnb-smart-chain
|
|
1511
1509
|
[SupportedChainId2.BNB]: "0x4e8E101924eDE233C13e2D8622DC8aED2872d505",
|
|
1512
1510
|
// https://docs.across.to/reference/contract-addresses/linea-chain-id-59144
|
|
@@ -1534,8 +1532,6 @@ var ACROSS_MATH_CONTRACT_ADDRESSES = {
|
|
|
1534
1532
|
[SupportedChainId2.SEPOLIA]: void 0,
|
|
1535
1533
|
[SupportedChainId2.POLYGON]: void 0,
|
|
1536
1534
|
[SupportedChainId2.AVALANCHE]: void 0,
|
|
1537
|
-
[SupportedChainId2.LENS]: void 0,
|
|
1538
|
-
// TODO: confirm
|
|
1539
1535
|
[SupportedChainId2.BNB]: void 0,
|
|
1540
1536
|
// TODO: confirm
|
|
1541
1537
|
[SupportedChainId2.LINEA]: void 0,
|
|
@@ -3989,8 +3985,6 @@ var BungeeCowswapLibAddresses = {
|
|
|
3989
3985
|
[SupportedChainId5.BASE]: BUNGEE_COWSWAP_LIB_ADDRESS,
|
|
3990
3986
|
[SupportedChainId5.AVALANCHE]: BUNGEE_COWSWAP_LIB_ADDRESS,
|
|
3991
3987
|
[SupportedChainId5.POLYGON]: BUNGEE_COWSWAP_LIB_ADDRESS,
|
|
3992
|
-
[SupportedChainId5.LENS]: void 0,
|
|
3993
|
-
// TODO: confirm
|
|
3994
3988
|
[SupportedChainId5.BNB]: void 0,
|
|
3995
3989
|
// TODO: confirm
|
|
3996
3990
|
[SupportedChainId5.LINEA]: void 0,
|
|
@@ -4012,8 +4006,6 @@ var SocketVerifierAddresses = {
|
|
|
4012
4006
|
[SupportedChainId5.BASE]: SOCKET_VERIFIER_ADDRESS,
|
|
4013
4007
|
[SupportedChainId5.AVALANCHE]: SOCKET_VERIFIER_ADDRESS,
|
|
4014
4008
|
[SupportedChainId5.POLYGON]: SOCKET_VERIFIER_ADDRESS,
|
|
4015
|
-
[SupportedChainId5.LENS]: void 0,
|
|
4016
|
-
// TODO: confirm
|
|
4017
4009
|
[SupportedChainId5.BNB]: void 0,
|
|
4018
4010
|
// TODO: confirm
|
|
4019
4011
|
[SupportedChainId5.LINEA]: void 0,
|
|
@@ -4035,8 +4027,6 @@ var BungeeApproveAndBridgeV1Addresses = {
|
|
|
4035
4027
|
[SupportedChainId5.BASE]: BUNGEE_APPROVE_AND_BRIDGE_V1_ADDRESS,
|
|
4036
4028
|
[SupportedChainId5.AVALANCHE]: BUNGEE_APPROVE_AND_BRIDGE_V1_ADDRESS,
|
|
4037
4029
|
[SupportedChainId5.POLYGON]: BUNGEE_APPROVE_AND_BRIDGE_V1_ADDRESS,
|
|
4038
|
-
[SupportedChainId5.LENS]: void 0,
|
|
4039
|
-
// TODO: confirm
|
|
4040
4030
|
[SupportedChainId5.BNB]: void 0,
|
|
4041
4031
|
// TODO: confirm
|
|
4042
4032
|
[SupportedChainId5.LINEA]: void 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cowprotocol/sdk-bridging",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Bridging for CoW Protocol",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@defuse-protocol/one-click-sdk-typescript": "0.1.1-0.2",
|
|
18
18
|
"json-stable-stringify": "^1.3.0",
|
|
19
|
-
"@cowprotocol/sdk-app-data": "4.6.
|
|
20
|
-
"@cowprotocol/sdk-config": "0.
|
|
21
|
-
"@cowprotocol/sdk-
|
|
22
|
-
"@cowprotocol/sdk-
|
|
23
|
-
"@cowprotocol/sdk-cow-shed": "0.2.
|
|
24
|
-
"@cowprotocol/sdk-order-book": "
|
|
25
|
-
"@cowprotocol/sdk-trading": "1.0.
|
|
26
|
-
"@cowprotocol/sdk-weiroll": "0.1.
|
|
19
|
+
"@cowprotocol/sdk-app-data": "4.6.8",
|
|
20
|
+
"@cowprotocol/sdk-config": "1.0.0",
|
|
21
|
+
"@cowprotocol/sdk-common": "0.7.1",
|
|
22
|
+
"@cowprotocol/sdk-contracts-ts": "2.0.0",
|
|
23
|
+
"@cowprotocol/sdk-cow-shed": "0.2.22",
|
|
24
|
+
"@cowprotocol/sdk-order-book": "2.0.0",
|
|
25
|
+
"@cowprotocol/sdk-trading": "1.0.4",
|
|
26
|
+
"@cowprotocol/sdk-weiroll": "0.1.22"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/jest": "^29.4.0",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"typescript": "^5.2.2",
|
|
40
40
|
"viem": "^2.28.4",
|
|
41
41
|
"@cow-sdk/typescript-config": "0.0.0-beta.0",
|
|
42
|
-
"@cowprotocol/sdk-ethers-v5-adapter": "0.3.
|
|
43
|
-
"@cowprotocol/sdk-ethers-v6-adapter": "0.3.
|
|
44
|
-
"@cowprotocol/sdk-order-signing": "0.1.
|
|
45
|
-
"@cowprotocol/sdk-viem-adapter": "0.3.
|
|
42
|
+
"@cowprotocol/sdk-ethers-v5-adapter": "0.3.11",
|
|
43
|
+
"@cowprotocol/sdk-ethers-v6-adapter": "0.3.11",
|
|
44
|
+
"@cowprotocol/sdk-order-signing": "0.1.38",
|
|
45
|
+
"@cowprotocol/sdk-viem-adapter": "0.3.11"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|