@1delta/bridge-configs 0.1.6 → 0.1.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/configs/axelar/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAGjB,MAAM,qBAAqB,CAAA;AAY5B,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/configs/axelar/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAGjB,MAAM,qBAAqB,CAAA;AAY5B,eAAO,MAAM,YAAY,EAAE,gBAkI1B,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -68,8 +68,9 @@ export const axelarConfig = {
|
|
|
68
68
|
responseMapping: {
|
|
69
69
|
toHash: {
|
|
70
70
|
format: (resResult) => {
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
return (resResult.data[0]?.executed?.transactionHash ??
|
|
72
|
+
resResult.data[0]?.express_executed?.transactionHash ??
|
|
73
|
+
'');
|
|
73
74
|
},
|
|
74
75
|
},
|
|
75
76
|
statusInfo: {
|
|
@@ -93,7 +93,7 @@ export const layerswapConfig = {
|
|
|
93
93
|
estimatedDuration: {
|
|
94
94
|
format: (route) => {
|
|
95
95
|
const [hours, minutes, seconds] = route.quote.avg_completion_time.split(':');
|
|
96
|
-
const [secondsPart
|
|
96
|
+
const [secondsPart] = seconds.split('.');
|
|
97
97
|
return (parseInt(hours) * 3600 +
|
|
98
98
|
parseInt(minutes) * 60 +
|
|
99
99
|
parseInt(secondsPart));
|
|
@@ -141,7 +141,7 @@ export const layerswapConfig = {
|
|
|
141
141
|
format: (params) => formatUnits(params.fromAmount, params.fromTokenDecimals),
|
|
142
142
|
},
|
|
143
143
|
},
|
|
144
|
-
requestAfter: async (res,
|
|
144
|
+
requestAfter: async (res, _, __) => {
|
|
145
145
|
if (!res.data.deposit_actions[0]) {
|
|
146
146
|
throw new CrossChainBusinessException(ERROR_CODES.ERROR);
|
|
147
147
|
}
|
|
@@ -158,16 +158,16 @@ export const layerswapConfig = {
|
|
|
158
158
|
},
|
|
159
159
|
fee: {},
|
|
160
160
|
estimatedDuration: {
|
|
161
|
-
format: (route,
|
|
161
|
+
format: (route, __) => {
|
|
162
162
|
const [hours, minutes, seconds] = route.quote.avg_completion_time.split(':');
|
|
163
|
-
const [secondsPart
|
|
163
|
+
const [secondsPart] = seconds.split('.');
|
|
164
164
|
return (parseInt(hours) * 3600 +
|
|
165
165
|
parseInt(minutes) * 60 +
|
|
166
166
|
parseInt(secondsPart));
|
|
167
167
|
},
|
|
168
168
|
},
|
|
169
169
|
interfaceParamData: {
|
|
170
|
-
format: (route,
|
|
170
|
+
format: (route, _) => {
|
|
171
171
|
return route;
|
|
172
172
|
},
|
|
173
173
|
},
|
|
@@ -267,7 +267,7 @@ export const layerswapConfig = {
|
|
|
267
267
|
format: (params) => formatUnits(params.fromAmount, params.fromTokenDecimals),
|
|
268
268
|
},
|
|
269
269
|
},
|
|
270
|
-
requestAfter: async (res,
|
|
270
|
+
requestAfter: async (res, _, __) => {
|
|
271
271
|
if (!res.data.deposit_actions[0]) {
|
|
272
272
|
throw new CrossChainBusinessException(ERROR_CODES.ERROR);
|
|
273
273
|
}
|
package/dist/walletClient.d.ts
CHANGED
|
@@ -3305,7 +3305,7 @@ export declare const getWalletClient: () => {
|
|
|
3305
3305
|
sendRawTransaction: (args: import("viem").SendRawTransactionParameters) => Promise<import("viem").SendRawTransactionReturnType>;
|
|
3306
3306
|
sendRawTransactionSync: (args: import("viem").SendRawTransactionSyncParameters) => Promise<import("viem").TransactionReceipt>;
|
|
3307
3307
|
sendTransaction: <const request extends import("viem").SendTransactionRequest<import("viem").Chain | undefined, chainOverride>, chainOverride extends import("viem").Chain | undefined = undefined>(args: import("viem").SendTransactionParameters<import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride, request>) => Promise<import("viem").SendTransactionReturnType>;
|
|
3308
|
-
sendTransactionSync: <const request extends import("viem").SendTransactionSyncRequest<import("viem").Chain | undefined, chainOverride>, chainOverride extends import("viem").Chain | undefined = undefined>(args: import("viem").SendTransactionSyncParameters<import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride, request>) => Promise<import("viem").
|
|
3308
|
+
sendTransactionSync: <const request extends import("viem").SendTransactionSyncRequest<import("viem").Chain | undefined, chainOverride>, chainOverride extends import("viem").Chain | undefined = undefined>(args: import("viem").SendTransactionSyncParameters<import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride, request>) => Promise<import("viem").TransactionReceipt>;
|
|
3309
3309
|
showCallsStatus: (parameters: import("viem").ShowCallsStatusParameters) => Promise<import("viem").ShowCallsStatusReturnType>;
|
|
3310
3310
|
signAuthorization: (parameters: import("viem").SignAuthorizationParameters<import("viem").Account | undefined>) => Promise<import("viem").SignAuthorizationReturnType>;
|
|
3311
3311
|
signMessage: (args: import("viem").SignMessageParameters<import("viem").Account | undefined>) => Promise<import("viem").SignMessageReturnType>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1delta/bridge-configs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Bridge and aggregator configurations for 1Delta",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"typescript": "^5.9.3"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@cowprotocol/cow-sdk": "^7.
|
|
14
|
+
"@cowprotocol/cow-sdk": "^7.2.3",
|
|
15
15
|
"@cowprotocol/sdk-viem-adapter": "^0.3.0",
|
|
16
|
-
"@mayanfinance/swap-sdk": "^12.
|
|
16
|
+
"@mayanfinance/swap-sdk": "^12.1.0",
|
|
17
17
|
"axios": "^1.13.2",
|
|
18
18
|
"lodash": "^4.17.21",
|
|
19
|
-
"viem": "^2.
|
|
19
|
+
"viem": "^2.41.2",
|
|
20
20
|
"@1delta/bridge-core": "0.1.3",
|
|
21
|
-
"@1delta/lib-utils": "0.1.
|
|
21
|
+
"@1delta/lib-utils": "0.1.8"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "tsc --project tsconfig.json",
|