@cowprotocol/sdk-bridging 3.3.0 → 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 +3 -2
- package/dist/index.mjs +4 -3
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -493,6 +493,7 @@ async function getIntermediateSwapResult({
|
|
|
493
493
|
appData: {
|
|
494
494
|
...advancedSettings?.appData,
|
|
495
495
|
metadata: {
|
|
496
|
+
...advancedSettings?.appData?.metadata,
|
|
496
497
|
hooks,
|
|
497
498
|
bridging: {
|
|
498
499
|
providerId: provider.info.dappId,
|
|
@@ -5373,8 +5374,8 @@ var NearIntentsBridgeProvider = class {
|
|
|
5373
5374
|
fillTxHash: status.swapDetails?.destinationChainTxHashes?.[0]?.hash
|
|
5374
5375
|
},
|
|
5375
5376
|
params: {
|
|
5376
|
-
inputTokenAddress: inputToken.contractAddress ??
|
|
5377
|
-
outputTokenAddress: outputToken.contractAddress ??
|
|
5377
|
+
inputTokenAddress: inputToken.contractAddress ?? adaptedInput.address,
|
|
5378
|
+
outputTokenAddress: outputToken.contractAddress ?? adaptedOutput.address,
|
|
5378
5379
|
inputAmount: BigInt(quote.amountIn),
|
|
5379
5380
|
outputAmount: swapDetails.amountOut ? BigInt(swapDetails.amountOut) : BigInt(quote.amountOut),
|
|
5380
5381
|
owner: order.owner,
|
package/dist/index.mjs
CHANGED
|
@@ -436,6 +436,7 @@ async function getIntermediateSwapResult({
|
|
|
436
436
|
appData: {
|
|
437
437
|
...advancedSettings?.appData,
|
|
438
438
|
metadata: {
|
|
439
|
+
...advancedSettings?.appData?.metadata,
|
|
439
440
|
hooks,
|
|
440
441
|
bridging: {
|
|
441
442
|
providerId: provider.info.dappId,
|
|
@@ -4949,7 +4950,7 @@ var BungeeBridgeProvider = class {
|
|
|
4949
4950
|
|
|
4950
4951
|
// src/providers/near-intents/NearIntentsBridgeProvider.ts
|
|
4951
4952
|
import { areAddressesEqual as areAddressesEqual5, getAddressKey as getAddressKey7, getGlobalAdapter as getGlobalAdapter12, setGlobalAdapter as setGlobalAdapter4 } from "@cowprotocol/sdk-common";
|
|
4952
|
-
import { BTC_CURRENCY_ADDRESS as BTC_CURRENCY_ADDRESS2,
|
|
4953
|
+
import { BTC_CURRENCY_ADDRESS as BTC_CURRENCY_ADDRESS2, SOL_NATIVE_CURRENCY_ADDRESS as SOL_NATIVE_CURRENCY_ADDRESS2 } from "@cowprotocol/sdk-config";
|
|
4953
4954
|
import { CowShedSdk as CowShedSdk3 } from "@cowprotocol/sdk-cow-shed";
|
|
4954
4955
|
import { OrderKind as OrderKind6 } from "@cowprotocol/sdk-order-book";
|
|
4955
4956
|
import { QuoteRequest } from "@defuse-protocol/one-click-sdk-typescript";
|
|
@@ -5349,8 +5350,8 @@ var NearIntentsBridgeProvider = class {
|
|
|
5349
5350
|
fillTxHash: status.swapDetails?.destinationChainTxHashes?.[0]?.hash
|
|
5350
5351
|
},
|
|
5351
5352
|
params: {
|
|
5352
|
-
inputTokenAddress: inputToken.contractAddress ??
|
|
5353
|
-
outputTokenAddress: outputToken.contractAddress ??
|
|
5353
|
+
inputTokenAddress: inputToken.contractAddress ?? adaptedInput.address,
|
|
5354
|
+
outputTokenAddress: outputToken.contractAddress ?? adaptedOutput.address,
|
|
5354
5355
|
inputAmount: BigInt(quote.amountIn),
|
|
5355
5356
|
outputAmount: swapDetails.amountOut ? BigInt(swapDetails.amountOut) : BigInt(quote.amountOut),
|
|
5356
5357
|
owner: order.owner,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cowprotocol/sdk-bridging",
|
|
3
|
-
"version": "3.3.
|
|
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-
|
|
25
|
-
"@cowprotocol/sdk-
|
|
26
|
-
"@cowprotocol/sdk-
|
|
27
|
-
"@cowprotocol/sdk-
|
|
28
|
-
"@cowprotocol/sdk-
|
|
29
|
-
"@cowprotocol/sdk-
|
|
30
|
-
"@cowprotocol/sdk-
|
|
31
|
-
"@cowprotocol/sdk-
|
|
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-
|
|
48
|
-
"@cowprotocol/sdk-ethers-
|
|
49
|
-
"@cowprotocol/sdk-viem-adapter": "0.3.
|
|
50
|
-
"@cowprotocol/sdk-order-signing": "0.2.
|
|
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",
|