@pendle/sdk-boros 1.0.9-cross-deposit-16 → 1.0.9-cross-deposit-18
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/addresses.d.ts +3 -0
- package/dist/addresses.js +7 -1
- package/dist/addresses.js.map +1 -1
- package/dist/backend/secrettune/BorosCoreSDK.d.ts +5 -0
- package/dist/backend/secrettune/BorosCoreSDK.js +1 -1
- package/dist/backend/secrettune/BorosCoreSDK.js.map +1 -1
- package/dist/backend/secrettune/BorosSendTxsBotSDK.d.ts +1 -1
- package/dist/backend/secrettune/BorosSendTxsBotSDK.js +1 -1
- package/dist/backend/secrettune/BorosSendTxsBotSDK.js.map +1 -1
- package/dist/backend/secrettune/PendleV2SDK.d.ts +20 -0
- package/dist/backend/secrettune/PendleV2SDK.js +7 -0
- package/dist/backend/secrettune/PendleV2SDK.js.map +1 -1
- package/dist/contracts/abis/viemAbiDepositBoxFactory.d.ts +75 -0
- package/dist/contracts/abis/viemAbiDepositBoxFactory.js +103 -0
- package/dist/contracts/abis/viemAbiDepositBoxFactory.js.map +1 -0
- package/dist/contracts/abis/viemAbiRouter.d.ts +120 -144
- package/dist/contracts/abis/viemAbiRouter.js +143 -177
- package/dist/contracts/abis/viemAbiRouter.js.map +1 -1
- package/dist/contracts/contracts.factory.d.ts +2 -0
- package/dist/contracts/contracts.factory.js +4 -0
- package/dist/contracts/contracts.factory.js.map +1 -1
- package/dist/contracts/deposit-box-factory.d.ts +82 -0
- package/dist/contracts/deposit-box-factory.js +15 -0
- package/dist/contracts/deposit-box-factory.js.map +1 -0
- package/dist/contracts/router.d.ts +120 -146
- package/dist/contracts/router.js +0 -4
- package/dist/contracts/router.js.map +1 -1
- package/dist/entities/crossChainDeposit/CrossChainDeposit.d.ts +1 -1
- package/dist/entities/crossChainDeposit/CrossChainDeposit.js +3 -6
- package/dist/entities/crossChainDeposit/CrossChainDeposit.js.map +1 -1
- package/dist/entities/crossChainDeposit/helpers/TokenHelper.js +1 -1
- package/dist/entities/crossChainDeposit/helpers/TokenHelper.js.map +1 -1
- package/dist/types/common.d.ts +1 -1
- package/dist/utils/signing/sensitive.js +1 -1
- package/dist/utils/signing/sensitive.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Address } from 'viem';
|
|
2
|
+
import { iDepositBoxFactoryAbi } from './abis/viemAbiDepositBoxFactory';
|
|
3
|
+
import { BaseContractHelper } from './base-contract-helper';
|
|
4
|
+
import { MulticallOptions } from '../multicall/multicall';
|
|
5
|
+
export declare class DepositBoxFactoryContract extends BaseContractHelper<typeof iDepositBoxFactoryAbi> {
|
|
6
|
+
abi(): readonly [{
|
|
7
|
+
readonly inputs: readonly [];
|
|
8
|
+
readonly name: "BEACON_PROXY_CODE_CONTRACT";
|
|
9
|
+
readonly outputs: readonly [{
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
readonly name: "";
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
}];
|
|
14
|
+
readonly stateMutability: "view";
|
|
15
|
+
readonly type: "function";
|
|
16
|
+
}, {
|
|
17
|
+
readonly inputs: readonly [];
|
|
18
|
+
readonly name: "DEPOSIT_BOX_BEACON";
|
|
19
|
+
readonly outputs: readonly [{
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
readonly name: "";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}];
|
|
24
|
+
readonly stateMutability: "view";
|
|
25
|
+
readonly type: "function";
|
|
26
|
+
}, {
|
|
27
|
+
readonly inputs: readonly [];
|
|
28
|
+
readonly name: "DEPOSIT_BOX_CODE_HASH";
|
|
29
|
+
readonly outputs: readonly [{
|
|
30
|
+
readonly internalType: "bytes32";
|
|
31
|
+
readonly name: "";
|
|
32
|
+
readonly type: "bytes32";
|
|
33
|
+
}];
|
|
34
|
+
readonly stateMutability: "view";
|
|
35
|
+
readonly type: "function";
|
|
36
|
+
}, {
|
|
37
|
+
readonly inputs: readonly [{
|
|
38
|
+
readonly internalType: "address";
|
|
39
|
+
readonly name: "owner";
|
|
40
|
+
readonly type: "address";
|
|
41
|
+
}, {
|
|
42
|
+
readonly internalType: "uint32";
|
|
43
|
+
readonly name: "boxId";
|
|
44
|
+
readonly type: "uint32";
|
|
45
|
+
}];
|
|
46
|
+
readonly name: "computeDepositBox";
|
|
47
|
+
readonly outputs: readonly [{
|
|
48
|
+
readonly internalType: "address";
|
|
49
|
+
readonly name: "box";
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
}, {
|
|
52
|
+
readonly internalType: "bytes32";
|
|
53
|
+
readonly name: "salt";
|
|
54
|
+
readonly type: "bytes32";
|
|
55
|
+
}, {
|
|
56
|
+
readonly internalType: "bool";
|
|
57
|
+
readonly name: "deployed";
|
|
58
|
+
readonly type: "bool";
|
|
59
|
+
}];
|
|
60
|
+
readonly stateMutability: "view";
|
|
61
|
+
readonly type: "function";
|
|
62
|
+
}, {
|
|
63
|
+
readonly inputs: readonly [{
|
|
64
|
+
readonly internalType: "address";
|
|
65
|
+
readonly name: "owner";
|
|
66
|
+
readonly type: "address";
|
|
67
|
+
}, {
|
|
68
|
+
readonly internalType: "uint32";
|
|
69
|
+
readonly name: "boxId";
|
|
70
|
+
readonly type: "uint32";
|
|
71
|
+
}];
|
|
72
|
+
readonly name: "deployDepositBox";
|
|
73
|
+
readonly outputs: readonly [{
|
|
74
|
+
readonly internalType: "contract IPDepositBox";
|
|
75
|
+
readonly name: "box";
|
|
76
|
+
readonly type: "address";
|
|
77
|
+
}];
|
|
78
|
+
readonly stateMutability: "nonpayable";
|
|
79
|
+
readonly type: "function";
|
|
80
|
+
}];
|
|
81
|
+
computeDepositBox(root: Address, boxId: number, multicallOptions?: MulticallOptions): Promise<readonly [`0x${string}`, `0x${string}`, boolean]>;
|
|
82
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DepositBoxFactoryContract = void 0;
|
|
4
|
+
const viemAbiDepositBoxFactory_1 = require("./abis/viemAbiDepositBoxFactory");
|
|
5
|
+
const base_contract_helper_1 = require("./base-contract-helper");
|
|
6
|
+
class DepositBoxFactoryContract extends base_contract_helper_1.BaseContractHelper {
|
|
7
|
+
abi() {
|
|
8
|
+
return viemAbiDepositBoxFactory_1.iDepositBoxFactoryAbi;
|
|
9
|
+
}
|
|
10
|
+
async computeDepositBox(root, boxId, multicallOptions) {
|
|
11
|
+
return await this.contract.read.computeDepositBox(root, boxId, multicallOptions);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.DepositBoxFactoryContract = DepositBoxFactoryContract;
|
|
15
|
+
//# sourceMappingURL=deposit-box-factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposit-box-factory.js","sourceRoot":"","sources":["../../src/contracts/deposit-box-factory.ts"],"names":[],"mappings":";;;AACA,8EAAwE;AACxE,iEAA4D;AAG5D,MAAa,yBAA0B,SAAQ,yCAAgD;IAC7F,GAAG;QACD,OAAO,gDAAqB,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,IAAa,EAAE,KAAa,EAAE,gBAAmC;QACvF,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC;IACnF,CAAC;CACF;AARD,8DAQC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { iRouterAbi } from '../contracts/abis/viemAbiRouter';
|
|
2
|
-
import { MulticallOptions } from '../multicall/multicall';
|
|
3
2
|
import { BaseContractHelper } from './base-contract-helper';
|
|
4
3
|
export declare class RouterContract extends BaseContractHelper<typeof iRouterAbi> {
|
|
5
4
|
abi(): readonly [{
|
|
@@ -232,6 +231,56 @@ export declare class RouterContract extends BaseContractHelper<typeof iRouterAbi
|
|
|
232
231
|
}];
|
|
233
232
|
readonly name: "ConditionalValidatorUpdated";
|
|
234
233
|
readonly type: "event";
|
|
234
|
+
}, {
|
|
235
|
+
readonly anonymous: false;
|
|
236
|
+
readonly inputs: readonly [{
|
|
237
|
+
readonly indexed: true;
|
|
238
|
+
readonly internalType: "address";
|
|
239
|
+
readonly name: "root";
|
|
240
|
+
readonly type: "address";
|
|
241
|
+
}, {
|
|
242
|
+
readonly indexed: false;
|
|
243
|
+
readonly internalType: "uint32";
|
|
244
|
+
readonly name: "boxId";
|
|
245
|
+
readonly type: "uint32";
|
|
246
|
+
}, {
|
|
247
|
+
readonly indexed: false;
|
|
248
|
+
readonly internalType: "address";
|
|
249
|
+
readonly name: "tokenSpent";
|
|
250
|
+
readonly type: "address";
|
|
251
|
+
}, {
|
|
252
|
+
readonly indexed: false;
|
|
253
|
+
readonly internalType: "uint256";
|
|
254
|
+
readonly name: "amountSpent";
|
|
255
|
+
readonly type: "uint256";
|
|
256
|
+
}, {
|
|
257
|
+
readonly indexed: false;
|
|
258
|
+
readonly internalType: "uint8";
|
|
259
|
+
readonly name: "accountId";
|
|
260
|
+
readonly type: "uint8";
|
|
261
|
+
}, {
|
|
262
|
+
readonly indexed: false;
|
|
263
|
+
readonly internalType: "TokenId";
|
|
264
|
+
readonly name: "tokenId";
|
|
265
|
+
readonly type: "uint16";
|
|
266
|
+
}, {
|
|
267
|
+
readonly indexed: false;
|
|
268
|
+
readonly internalType: "MarketId";
|
|
269
|
+
readonly name: "marketId";
|
|
270
|
+
readonly type: "uint24";
|
|
271
|
+
}, {
|
|
272
|
+
readonly indexed: false;
|
|
273
|
+
readonly internalType: "uint256";
|
|
274
|
+
readonly name: "depositAmount";
|
|
275
|
+
readonly type: "uint256";
|
|
276
|
+
}, {
|
|
277
|
+
readonly indexed: false;
|
|
278
|
+
readonly internalType: "uint256";
|
|
279
|
+
readonly name: "payTreasuryAmount";
|
|
280
|
+
readonly type: "uint256";
|
|
281
|
+
}];
|
|
282
|
+
readonly name: "DepositFromBox";
|
|
283
|
+
readonly type: "event";
|
|
235
284
|
}, {
|
|
236
285
|
readonly anonymous: false;
|
|
237
286
|
readonly inputs: readonly [{
|
|
@@ -377,41 +426,6 @@ export declare class RouterContract extends BaseContractHelper<typeof iRouterAbi
|
|
|
377
426
|
}];
|
|
378
427
|
readonly name: "SingleOrderExecuted";
|
|
379
428
|
readonly type: "event";
|
|
380
|
-
}, {
|
|
381
|
-
readonly anonymous: false;
|
|
382
|
-
readonly inputs: readonly [{
|
|
383
|
-
readonly indexed: true;
|
|
384
|
-
readonly internalType: "address";
|
|
385
|
-
readonly name: "root";
|
|
386
|
-
readonly type: "address";
|
|
387
|
-
}, {
|
|
388
|
-
readonly indexed: false;
|
|
389
|
-
readonly internalType: "uint32";
|
|
390
|
-
readonly name: "boxId";
|
|
391
|
-
readonly type: "uint32";
|
|
392
|
-
}, {
|
|
393
|
-
readonly indexed: false;
|
|
394
|
-
readonly internalType: "address";
|
|
395
|
-
readonly name: "tokenIn";
|
|
396
|
-
readonly type: "address";
|
|
397
|
-
}, {
|
|
398
|
-
readonly indexed: false;
|
|
399
|
-
readonly internalType: "uint256";
|
|
400
|
-
readonly name: "amountIn";
|
|
401
|
-
readonly type: "uint256";
|
|
402
|
-
}, {
|
|
403
|
-
readonly indexed: false;
|
|
404
|
-
readonly internalType: "address";
|
|
405
|
-
readonly name: "tokenOut";
|
|
406
|
-
readonly type: "address";
|
|
407
|
-
}, {
|
|
408
|
-
readonly indexed: false;
|
|
409
|
-
readonly internalType: "uint256";
|
|
410
|
-
readonly name: "netTokenOut";
|
|
411
|
-
readonly type: "uint256";
|
|
412
|
-
}];
|
|
413
|
-
readonly name: "SwapFromBox";
|
|
414
|
-
readonly type: "event";
|
|
415
429
|
}, {
|
|
416
430
|
readonly anonymous: false;
|
|
417
431
|
readonly inputs: readonly [{
|
|
@@ -468,32 +482,37 @@ export declare class RouterContract extends BaseContractHelper<typeof iRouterAbi
|
|
|
468
482
|
readonly name: "TryAggregateCallSucceeded";
|
|
469
483
|
readonly type: "event";
|
|
470
484
|
}, {
|
|
471
|
-
readonly
|
|
472
|
-
readonly
|
|
473
|
-
|
|
485
|
+
readonly anonymous: false;
|
|
486
|
+
readonly inputs: readonly [{
|
|
487
|
+
readonly indexed: true;
|
|
474
488
|
readonly internalType: "address";
|
|
475
|
-
readonly name: "";
|
|
489
|
+
readonly name: "root";
|
|
476
490
|
readonly type: "address";
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
491
|
+
}, {
|
|
492
|
+
readonly indexed: false;
|
|
493
|
+
readonly internalType: "uint32";
|
|
494
|
+
readonly name: "boxId";
|
|
495
|
+
readonly type: "uint32";
|
|
496
|
+
}, {
|
|
497
|
+
readonly indexed: false;
|
|
484
498
|
readonly internalType: "address";
|
|
485
|
-
readonly name: "";
|
|
499
|
+
readonly name: "token";
|
|
486
500
|
readonly type: "address";
|
|
501
|
+
}, {
|
|
502
|
+
readonly indexed: false;
|
|
503
|
+
readonly internalType: "uint256";
|
|
504
|
+
readonly name: "amount";
|
|
505
|
+
readonly type: "uint256";
|
|
487
506
|
}];
|
|
488
|
-
readonly
|
|
489
|
-
readonly type: "
|
|
507
|
+
readonly name: "WithdrawFromBox";
|
|
508
|
+
readonly type: "event";
|
|
490
509
|
}, {
|
|
491
510
|
readonly inputs: readonly [];
|
|
492
|
-
readonly name: "
|
|
511
|
+
readonly name: "DEPOSIT_BOX_FACTORY";
|
|
493
512
|
readonly outputs: readonly [{
|
|
494
|
-
readonly internalType: "
|
|
513
|
+
readonly internalType: "contract IPDepositBoxFactory";
|
|
495
514
|
readonly name: "";
|
|
496
|
-
readonly type: "
|
|
515
|
+
readonly type: "address";
|
|
497
516
|
}];
|
|
498
517
|
readonly stateMutability: "view";
|
|
499
518
|
readonly type: "function";
|
|
@@ -987,28 +1006,6 @@ export declare class RouterContract extends BaseContractHelper<typeof iRouterAbi
|
|
|
987
1006
|
readonly outputs: readonly [];
|
|
988
1007
|
readonly stateMutability: "nonpayable";
|
|
989
1008
|
readonly type: "function";
|
|
990
|
-
}, {
|
|
991
|
-
readonly inputs: readonly [{
|
|
992
|
-
readonly internalType: "address";
|
|
993
|
-
readonly name: "root";
|
|
994
|
-
readonly type: "address";
|
|
995
|
-
}, {
|
|
996
|
-
readonly internalType: "uint32";
|
|
997
|
-
readonly name: "boxId";
|
|
998
|
-
readonly type: "uint32";
|
|
999
|
-
}];
|
|
1000
|
-
readonly name: "computeDepositBox";
|
|
1001
|
-
readonly outputs: readonly [{
|
|
1002
|
-
readonly internalType: "address";
|
|
1003
|
-
readonly name: "box";
|
|
1004
|
-
readonly type: "address";
|
|
1005
|
-
}, {
|
|
1006
|
-
readonly internalType: "bytes32";
|
|
1007
|
-
readonly name: "salt";
|
|
1008
|
-
readonly type: "bytes32";
|
|
1009
|
-
}];
|
|
1010
|
-
readonly stateMutability: "view";
|
|
1011
|
-
readonly type: "function";
|
|
1012
1009
|
}, {
|
|
1013
1010
|
readonly inputs: readonly [{
|
|
1014
1011
|
readonly components: readonly [{
|
|
@@ -1019,6 +1016,14 @@ export declare class RouterContract extends BaseContractHelper<typeof iRouterAbi
|
|
|
1019
1016
|
readonly internalType: "uint32";
|
|
1020
1017
|
readonly name: "boxId";
|
|
1021
1018
|
readonly type: "uint32";
|
|
1019
|
+
}, {
|
|
1020
|
+
readonly internalType: "address";
|
|
1021
|
+
readonly name: "tokenSpent";
|
|
1022
|
+
readonly type: "address";
|
|
1023
|
+
}, {
|
|
1024
|
+
readonly internalType: "uint256";
|
|
1025
|
+
readonly name: "amountSpent";
|
|
1026
|
+
readonly type: "uint256";
|
|
1022
1027
|
}, {
|
|
1023
1028
|
readonly internalType: "uint8";
|
|
1024
1029
|
readonly name: "accountId";
|
|
@@ -1033,12 +1038,24 @@ export declare class RouterContract extends BaseContractHelper<typeof iRouterAbi
|
|
|
1033
1038
|
readonly type: "uint24";
|
|
1034
1039
|
}, {
|
|
1035
1040
|
readonly internalType: "uint256";
|
|
1036
|
-
readonly name: "
|
|
1041
|
+
readonly name: "minDepositAmount";
|
|
1037
1042
|
readonly type: "uint256";
|
|
1038
1043
|
}, {
|
|
1039
1044
|
readonly internalType: "uint256";
|
|
1040
1045
|
readonly name: "payTreasuryAmount";
|
|
1041
1046
|
readonly type: "uint256";
|
|
1047
|
+
}, {
|
|
1048
|
+
readonly internalType: "address";
|
|
1049
|
+
readonly name: "swapExtRouter";
|
|
1050
|
+
readonly type: "address";
|
|
1051
|
+
}, {
|
|
1052
|
+
readonly internalType: "address";
|
|
1053
|
+
readonly name: "swapApprove";
|
|
1054
|
+
readonly type: "address";
|
|
1055
|
+
}, {
|
|
1056
|
+
readonly internalType: "bytes";
|
|
1057
|
+
readonly name: "swapCalldata";
|
|
1058
|
+
readonly type: "bytes";
|
|
1042
1059
|
}, {
|
|
1043
1060
|
readonly internalType: "uint64";
|
|
1044
1061
|
readonly name: "nonce";
|
|
@@ -1723,61 +1740,6 @@ export declare class RouterContract extends BaseContractHelper<typeof iRouterAbi
|
|
|
1723
1740
|
readonly outputs: readonly [];
|
|
1724
1741
|
readonly stateMutability: "nonpayable";
|
|
1725
1742
|
readonly type: "function";
|
|
1726
|
-
}, {
|
|
1727
|
-
readonly inputs: readonly [{
|
|
1728
|
-
readonly components: readonly [{
|
|
1729
|
-
readonly internalType: "address";
|
|
1730
|
-
readonly name: "root";
|
|
1731
|
-
readonly type: "address";
|
|
1732
|
-
}, {
|
|
1733
|
-
readonly internalType: "uint32";
|
|
1734
|
-
readonly name: "boxId";
|
|
1735
|
-
readonly type: "uint32";
|
|
1736
|
-
}, {
|
|
1737
|
-
readonly internalType: "address";
|
|
1738
|
-
readonly name: "tokenIn";
|
|
1739
|
-
readonly type: "address";
|
|
1740
|
-
}, {
|
|
1741
|
-
readonly internalType: "uint256";
|
|
1742
|
-
readonly name: "amountIn";
|
|
1743
|
-
readonly type: "uint256";
|
|
1744
|
-
}, {
|
|
1745
|
-
readonly internalType: "address";
|
|
1746
|
-
readonly name: "tokenOut";
|
|
1747
|
-
readonly type: "address";
|
|
1748
|
-
}, {
|
|
1749
|
-
readonly internalType: "uint256";
|
|
1750
|
-
readonly name: "minOut";
|
|
1751
|
-
readonly type: "uint256";
|
|
1752
|
-
}, {
|
|
1753
|
-
readonly internalType: "address";
|
|
1754
|
-
readonly name: "swapExecutor";
|
|
1755
|
-
readonly type: "address";
|
|
1756
|
-
}, {
|
|
1757
|
-
readonly internalType: "address";
|
|
1758
|
-
readonly name: "swapExtRouter";
|
|
1759
|
-
readonly type: "address";
|
|
1760
|
-
}, {
|
|
1761
|
-
readonly internalType: "bytes";
|
|
1762
|
-
readonly name: "swapCalldata";
|
|
1763
|
-
readonly type: "bytes";
|
|
1764
|
-
}, {
|
|
1765
|
-
readonly internalType: "uint64";
|
|
1766
|
-
readonly name: "nonce";
|
|
1767
|
-
readonly type: "uint64";
|
|
1768
|
-
}];
|
|
1769
|
-
readonly internalType: "struct IRouterEventsAndTypes.SwapFromBoxMessage";
|
|
1770
|
-
readonly name: "message";
|
|
1771
|
-
readonly type: "tuple";
|
|
1772
|
-
}, {
|
|
1773
|
-
readonly internalType: "bytes";
|
|
1774
|
-
readonly name: "signature";
|
|
1775
|
-
readonly type: "bytes";
|
|
1776
|
-
}];
|
|
1777
|
-
readonly name: "swapFromBox";
|
|
1778
|
-
readonly outputs: readonly [];
|
|
1779
|
-
readonly stateMutability: "nonpayable";
|
|
1780
|
-
readonly type: "function";
|
|
1781
1743
|
}, {
|
|
1782
1744
|
readonly inputs: readonly [{
|
|
1783
1745
|
readonly components: readonly [{
|
|
@@ -1966,26 +1928,38 @@ export declare class RouterContract extends BaseContractHelper<typeof iRouterAbi
|
|
|
1966
1928
|
readonly type: "function";
|
|
1967
1929
|
}, {
|
|
1968
1930
|
readonly inputs: readonly [{
|
|
1969
|
-
readonly
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1931
|
+
readonly components: readonly [{
|
|
1932
|
+
readonly internalType: "address";
|
|
1933
|
+
readonly name: "root";
|
|
1934
|
+
readonly type: "address";
|
|
1935
|
+
}, {
|
|
1936
|
+
readonly internalType: "uint32";
|
|
1937
|
+
readonly name: "boxId";
|
|
1938
|
+
readonly type: "uint32";
|
|
1939
|
+
}, {
|
|
1940
|
+
readonly internalType: "address";
|
|
1941
|
+
readonly name: "token";
|
|
1942
|
+
readonly type: "address";
|
|
1943
|
+
}, {
|
|
1944
|
+
readonly internalType: "uint256";
|
|
1945
|
+
readonly name: "amount";
|
|
1946
|
+
readonly type: "uint256";
|
|
1947
|
+
}, {
|
|
1948
|
+
readonly internalType: "uint64";
|
|
1949
|
+
readonly name: "nonce";
|
|
1950
|
+
readonly type: "uint64";
|
|
1951
|
+
}];
|
|
1952
|
+
readonly internalType: "struct IRouterEventsAndTypes.WithdrawFromBoxMessage";
|
|
1953
|
+
readonly name: "message";
|
|
1954
|
+
readonly type: "tuple";
|
|
1980
1955
|
}, {
|
|
1981
|
-
readonly internalType: "
|
|
1982
|
-
readonly name: "
|
|
1983
|
-
readonly type: "
|
|
1956
|
+
readonly internalType: "bytes";
|
|
1957
|
+
readonly name: "signature";
|
|
1958
|
+
readonly type: "bytes";
|
|
1984
1959
|
}];
|
|
1985
1960
|
readonly name: "withdrawFromBox";
|
|
1986
1961
|
readonly outputs: readonly [];
|
|
1987
1962
|
readonly stateMutability: "nonpayable";
|
|
1988
1963
|
readonly type: "function";
|
|
1989
1964
|
}];
|
|
1990
|
-
DEPOSIT_BOX_CODE_HASH(multicallOptions?: MulticallOptions): Promise<`0x${string}`>;
|
|
1991
1965
|
}
|
package/dist/contracts/router.js
CHANGED
|
@@ -7,10 +7,6 @@ class RouterContract extends base_contract_helper_1.BaseContractHelper {
|
|
|
7
7
|
abi() {
|
|
8
8
|
return viemAbiRouter_1.iRouterAbi;
|
|
9
9
|
}
|
|
10
|
-
async DEPOSIT_BOX_CODE_HASH(multicallOptions) {
|
|
11
|
-
const depositBoxCodeHash = await this.contract.read.DEPOSIT_BOX_CODE_HASH(multicallOptions);
|
|
12
|
-
return depositBoxCodeHash;
|
|
13
|
-
}
|
|
14
10
|
}
|
|
15
11
|
exports.RouterContract = RouterContract;
|
|
16
12
|
//# sourceMappingURL=router.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.js","sourceRoot":"","sources":["../../src/contracts/router.ts"],"names":[],"mappings":";;;AAAA,mEAA6D;AAE7D,iEAA4D;AAE5D,MAAa,cAAe,SAAQ,yCAAqC;IACvE,GAAG;QACD,OAAO,0BAAU,CAAC;IACpB,CAAC;
|
|
1
|
+
{"version":3,"file":"router.js","sourceRoot":"","sources":["../../src/contracts/router.ts"],"names":[],"mappings":";;;AAAA,mEAA6D;AAE7D,iEAA4D;AAE5D,MAAa,cAAe,SAAQ,yCAAqC;IACvE,GAAG;QACD,OAAO,0BAAU,CAAC;IACpB,CAAC;CACF;AAJD,wCAIC"}
|
|
@@ -9,7 +9,7 @@ import { PendleSwapHelper } from './aggregators/Pendle';
|
|
|
9
9
|
export declare class CrossChainDeposit {
|
|
10
10
|
private readonly root;
|
|
11
11
|
private readonly contractsFactory;
|
|
12
|
-
private readonly
|
|
12
|
+
private readonly depositBoxFactoryContract;
|
|
13
13
|
private readonly tokenHelper;
|
|
14
14
|
readonly lifiAggregatorHelper: LifiAggregatorHelper;
|
|
15
15
|
readonly pendleSwapHelper: PendleSwapHelper;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CrossChainDeposit = void 0;
|
|
4
|
-
const viem_1 = require("viem");
|
|
5
4
|
const chains_1 = require("viem/chains");
|
|
6
5
|
const addresses_1 = require("../../addresses");
|
|
7
6
|
const module_1 = require("../../backend/secrettune/module");
|
|
@@ -14,7 +13,7 @@ const TokenHelper_1 = require("./helpers/TokenHelper");
|
|
|
14
13
|
class CrossChainDeposit {
|
|
15
14
|
root;
|
|
16
15
|
contractsFactory;
|
|
17
|
-
|
|
16
|
+
depositBoxFactoryContract;
|
|
18
17
|
tokenHelper;
|
|
19
18
|
lifiAggregatorHelper;
|
|
20
19
|
pendleSwapHelper;
|
|
@@ -26,7 +25,7 @@ class CrossChainDeposit {
|
|
|
26
25
|
this.lifiAggregatorHelper = new Lifi_1.LifiAggregatorHelper();
|
|
27
26
|
this.pendleSwapHelper = new Pendle_1.PendleSwapHelper((0, module_1.getPendleV2Sdk)(), (0, module_1.getCoreSdk)(), this.contractsFactory.getRpcClient(), this.tokenHelper);
|
|
28
27
|
this.borosLzBridgeHelper = new Boros_1.BorosLzBridgeHelper((0, module_1.getCoreSdk)(), this.tokenHelper);
|
|
29
|
-
this.
|
|
28
|
+
this.depositBoxFactoryContract = this.contractsFactory.getDepositBoxFactoryContract((0, addresses_1.getDepositBoxFactoryAddress)());
|
|
30
29
|
}
|
|
31
30
|
getAggregatorHelper(fromChainId, toChainId) {
|
|
32
31
|
if (fromChainId === chains_1.arbitrum.id && toChainId === chains_1.arbitrum.id) {
|
|
@@ -55,9 +54,7 @@ class CrossChainDeposit {
|
|
|
55
54
|
}
|
|
56
55
|
}
|
|
57
56
|
async computeDepositBox(boxId = 0) {
|
|
58
|
-
const
|
|
59
|
-
const salt = (0, viem_1.keccak256)((0, viem_1.encodeAbiParameters)((0, viem_1.parseAbiParameters)('address, uint32'), [this.root, boxId]));
|
|
60
|
-
const box = (0, viem_1.getCreate2Address)({ from: (0, addresses_1.getRouterAddress)(), salt, bytecodeHash });
|
|
57
|
+
const [box, salt] = await this.depositBoxFactoryContract.computeDepositBox(this.root, boxId);
|
|
61
58
|
return { box, salt };
|
|
62
59
|
}
|
|
63
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CrossChainDeposit.js","sourceRoot":"","sources":["../../../src/entities/crossChainDeposit/CrossChainDeposit.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CrossChainDeposit.js","sourceRoot":"","sources":["../../../src/entities/crossChainDeposit/CrossChainDeposit.ts"],"names":[],"mappings":";;;AACA,wCAA4C;AAC5C,+CAA8D;AAC9D,4DAA6E;AAE7E,yEAAqE;AAIrE,yDAM4B;AAC5B,+CAA0D;AAC1D,6CAA0D;AAC1D,iDAAwD;AACxD,uDAAoD;AAEpD,MAAa,iBAAiB;IACX,IAAI,CAAU;IACd,gBAAgB,CAAmB;IACnC,yBAAyB,CAA4B;IACrD,WAAW,CAAc;IAEjC,oBAAoB,CAAuB;IAC3C,gBAAgB,CAAmB;IACnC,mBAAmB,CAAsB;IAElD,YAAY,IAAa,EAAE,OAAiB;QAC1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,gBAAgB,GAAG,IAAI,oCAAgB,CAAC,OAAO,CAAC,CAAC;QACtD,IAAI,CAAC,WAAW,GAAG,IAAI,yBAAW,CAAC,IAAA,mBAAU,GAAE,CAAC,CAAC;QAEjD,IAAI,CAAC,oBAAoB,GAAG,IAAI,2BAAoB,EAAE,CAAC;QACvD,IAAI,CAAC,gBAAgB,GAAG,IAAI,yBAAgB,CAC1C,IAAA,uBAAc,GAAE,EAChB,IAAA,mBAAU,GAAE,EACZ,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,EACpC,IAAI,CAAC,WAAW,CACjB,CAAC;QACF,IAAI,CAAC,mBAAmB,GAAG,IAAI,2BAAmB,CAAC,IAAA,mBAAU,GAAE,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAEnF,IAAI,CAAC,yBAAyB,GAAG,IAAI,CAAC,gBAAgB,CAAC,4BAA4B,CAAC,IAAA,uCAA2B,GAAE,CAAC,CAAC;IACrH,CAAC;IAEO,mBAAmB,CAAC,WAAmB,EAAE,SAAiB;QAChE,IAAI,WAAW,KAAK,iBAAQ,CAAC,EAAE,IAAI,SAAS,K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AO,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;IACvB,CAAC;CACF;AAjED,8CAiEC"}
|
|
@@ -40,7 +40,7 @@ class TokenHelper {
|
|
|
40
40
|
exports.TokenHelper = TokenHelper;
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, cacheDecorators_1.GlobalCache)({
|
|
43
|
-
generateLookupKey: (_, [params]) => `TokenHelper.getTokens.${params?.dstTokenId}`,
|
|
43
|
+
generateLookupKey: (_, [params]) => `TokenHelper.getTokens.${params?.dstTokenId}.${params?.srcChainId}`,
|
|
44
44
|
ttl_ms: constants_1.MILLISECONDS_IN_A_MINUTE * 10,
|
|
45
45
|
})
|
|
46
46
|
], TokenHelper.prototype, "getTokens", null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenHelper.js","sourceRoot":"","sources":["../../../../src/entities/crossChainDeposit/helpers/TokenHelper.ts"],"names":[],"mappings":";;;;;;;;;AACA,6BAA8B;AAE9B,qEAA8D;AAE9D,4DAAwE;AAGxE,MAAa,WAAW;IACO;IAA7B,YAA6B,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;IAAG,CAAC;IAMrD,AAAN,KAAK,CAAC,SAAS,CAAC,MAAuD;QACrE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAChD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,6BAA6B,EAAE,CAAC;QAEpF,MAAM,gBAAgB,GACpB,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAA0B,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,UAAU,CAAC;QACjG,MAAM,gBAAgB,GACpB,UAAU,IAAI,IAAI;YAChB,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI;YACZ,CAAC,CAAC,CAAC,GAAG,EAAE;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,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,yBAAyB,MAAM,EAAE,UAAU,IAAI,MAAM,EAAE,UAAU,EAAE;QACvG,MAAM,EAAE,oCAAwB,GAAG,EAAE;KACtC,CAAC;4CAqBD;AAQH,MAAa,gBAAgB;IAGE;IAFZ,QAAQ,CAAsC;IAE/D,YAA6B,MAAe;QAAf,WAAM,GAAN,MAAM,CAAS;QAC1C,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,EAAkC,CAAC;QAC1D,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,OAAkB,IAAI,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC,CAAC;QAC3E,CAAC;IACH,CAAC;IAID,MAAM,CAAC,OAAgB,EAAE,YAAqB,EAAE,OAAiB;QAC/D,MAAM,GAAG,GAA4B,GAAG,OAAO,IAAI,YAAY,EAAE,CAAC;QAClE,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnC,IAAI,OAAO,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,qBAAqB,YAAY,sBAAsB,CAAC,CAAC;QAC3E,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AApBD,4CAoBC"}
|
package/dist/types/common.d.ts
CHANGED
|
@@ -59,8 +59,8 @@ async function signDepositFromBoxMessage(wallet, message) {
|
|
|
59
59
|
{ name: 'marketId', type: 'uint24' },
|
|
60
60
|
{ name: 'minDepositAmount', type: 'uint256' },
|
|
61
61
|
{ name: 'payTreasuryAmount', type: 'uint256' },
|
|
62
|
-
{ name: 'swapExecutor', type: 'address' },
|
|
63
62
|
{ name: 'swapExtRouter', type: 'address' },
|
|
63
|
+
{ name: 'swapApprove', type: 'address' },
|
|
64
64
|
{ name: 'swapCalldata', type: 'bytes' },
|
|
65
65
|
{ name: 'nonce', type: 'uint64' },
|
|
66
66
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sensitive.js","sourceRoot":"","sources":["../../../src/utils/signing/sensitive.ts"],"names":[],"mappings":";;AAKA,4DAiBC;AAED,0DAkBC;AAED,8DA0BC;AArED,0BAAoD;AAEpD,qCAA2E;AAEpE,KAAK,UAAU,wBAAwB,CAAC,MAAoB,EAAE,OAA4B;IAC/F,MAAM,OAAO,GAAG,MAAM,IAAA,kCAA8B,EAAC,MAAM,CAAC,CAAC;IAC7D,OAAO,MAAM,CAAC,aAAa,CAAC;QAC1B,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,OAAO;QAClC,MAAM,EAAE,IAAA,mCAA0B,GAAE;QACpC,KAAK,EAAE;YACL,YAAY,EAAE,4BAAmB;YACjC,oBAAoB,EAAE;gBACpB,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;gBACjC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE;gBACpC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;gBACvC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;aAClC;SACF;QACD,WAAW,EAAE,sBAAsB;QACnC,OAAO;KACR,CAAC,CAAC;AACL,CAAC;AAEM,KAAK,UAAU,uBAAuB,CAAC,MAAoB,EAAE,OAA4B;IAC9F,MAAM,OAAO,GAAG,MAAM,IAAA,kCAA8B,EAAC,MAAM,CAAC,CAAC;IAC7D,OAAO,MAAM,CAAC,aAAa,CAAC;QAC1B,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,OAAO;QAClC,MAAM,EAAE,IAAA,mCAA0B,GAAE;QACpC,KAAK,EAAE;YACL,YAAY,EAAE,4BAAmB;YACjC,mBAAmB,EAAE;gBACnB,EAAE,IAAI,EAAE,MAAM,E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