@cowprotocol/sdk-bridging 3.3.1 → 3.3.2

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.js CHANGED
@@ -5374,8 +5374,8 @@ var NearIntentsBridgeProvider = class {
5374
5374
  fillTxHash: status.swapDetails?.destinationChainTxHashes?.[0]?.hash
5375
5375
  },
5376
5376
  params: {
5377
- inputTokenAddress: inputToken.contractAddress ?? import_sdk_config11.ETH_ADDRESS,
5378
- outputTokenAddress: outputToken.contractAddress ?? import_sdk_config11.ETH_ADDRESS,
5377
+ inputTokenAddress: inputToken.contractAddress ?? adaptedInput.address,
5378
+ outputTokenAddress: outputToken.contractAddress ?? adaptedOutput.address,
5379
5379
  inputAmount: BigInt(quote.amountIn),
5380
5380
  outputAmount: swapDetails.amountOut ? BigInt(swapDetails.amountOut) : BigInt(quote.amountOut),
5381
5381
  owner: order.owner,
package/dist/index.mjs CHANGED
@@ -4950,7 +4950,7 @@ var BungeeBridgeProvider = class {
4950
4950
 
4951
4951
  // src/providers/near-intents/NearIntentsBridgeProvider.ts
4952
4952
  import { areAddressesEqual as areAddressesEqual5, getAddressKey as getAddressKey7, getGlobalAdapter as getGlobalAdapter12, setGlobalAdapter as setGlobalAdapter4 } from "@cowprotocol/sdk-common";
4953
- import { BTC_CURRENCY_ADDRESS as BTC_CURRENCY_ADDRESS2, ETH_ADDRESS as ETH_ADDRESS3, SOL_NATIVE_CURRENCY_ADDRESS as SOL_NATIVE_CURRENCY_ADDRESS2 } from "@cowprotocol/sdk-config";
4953
+ import { BTC_CURRENCY_ADDRESS as BTC_CURRENCY_ADDRESS2, SOL_NATIVE_CURRENCY_ADDRESS as SOL_NATIVE_CURRENCY_ADDRESS2 } from "@cowprotocol/sdk-config";
4954
4954
  import { CowShedSdk as CowShedSdk3 } from "@cowprotocol/sdk-cow-shed";
4955
4955
  import { OrderKind as OrderKind6 } from "@cowprotocol/sdk-order-book";
4956
4956
  import { QuoteRequest } from "@defuse-protocol/one-click-sdk-typescript";
@@ -5350,8 +5350,8 @@ var NearIntentsBridgeProvider = class {
5350
5350
  fillTxHash: status.swapDetails?.destinationChainTxHashes?.[0]?.hash
5351
5351
  },
5352
5352
  params: {
5353
- inputTokenAddress: inputToken.contractAddress ?? ETH_ADDRESS3,
5354
- outputTokenAddress: outputToken.contractAddress ?? ETH_ADDRESS3,
5353
+ inputTokenAddress: inputToken.contractAddress ?? adaptedInput.address,
5354
+ outputTokenAddress: outputToken.contractAddress ?? adaptedOutput.address,
5355
5355
  inputAmount: BigInt(quote.amountIn),
5356
5356
  outputAmount: swapDetails.amountOut ? BigInt(swapDetails.amountOut) : BigInt(quote.amountOut),
5357
5357
  owner: order.owner,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cowprotocol/sdk-bridging",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
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-config": "1.1.2",
25
- "@cowprotocol/sdk-common": "0.9.0",
26
- "@cowprotocol/sdk-contracts-ts": "2.3.0",
27
- "@cowprotocol/sdk-app-data": "4.6.13",
28
- "@cowprotocol/sdk-cow-shed": "0.3.4",
29
- "@cowprotocol/sdk-order-book": "2.0.4",
30
- "@cowprotocol/sdk-weiroll": "0.1.27",
31
- "@cowprotocol/sdk-trading": "1.2.1"
24
+ "@cowprotocol/sdk-app-data": "4.6.14",
25
+ "@cowprotocol/sdk-common": "0.10.0",
26
+ "@cowprotocol/sdk-cow-shed": "0.3.5",
27
+ "@cowprotocol/sdk-config": "1.1.3",
28
+ "@cowprotocol/sdk-order-book": "2.0.5",
29
+ "@cowprotocol/sdk-trading": "1.2.2",
30
+ "@cowprotocol/sdk-weiroll": "0.1.28",
31
+ "@cowprotocol/sdk-contracts-ts": "2.4.0"
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-v5-adapter": "0.4.1",
48
- "@cowprotocol/sdk-ethers-v6-adapter": "0.4.1",
49
- "@cowprotocol/sdk-viem-adapter": "0.3.15",
50
- "@cowprotocol/sdk-order-signing": "0.2.4"
47
+ "@cowprotocol/sdk-ethers-v6-adapter": "0.4.2",
48
+ "@cowprotocol/sdk-ethers-v5-adapter": "0.4.2",
49
+ "@cowprotocol/sdk-viem-adapter": "0.3.16",
50
+ "@cowprotocol/sdk-order-signing": "0.2.5"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "tsup src/index.ts --format esm,cjs --dts",