@pendle/sdk-boros 1.0.9-cross-deposit-16 → 1.0.9-cross-deposit-17
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/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
|
@@ -228,6 +228,56 @@ export declare const iRouterAbi: readonly [{
|
|
|
228
228
|
}];
|
|
229
229
|
readonly name: "ConditionalValidatorUpdated";
|
|
230
230
|
readonly type: "event";
|
|
231
|
+
}, {
|
|
232
|
+
readonly anonymous: false;
|
|
233
|
+
readonly inputs: readonly [{
|
|
234
|
+
readonly indexed: true;
|
|
235
|
+
readonly internalType: "address";
|
|
236
|
+
readonly name: "root";
|
|
237
|
+
readonly type: "address";
|
|
238
|
+
}, {
|
|
239
|
+
readonly indexed: false;
|
|
240
|
+
readonly internalType: "uint32";
|
|
241
|
+
readonly name: "boxId";
|
|
242
|
+
readonly type: "uint32";
|
|
243
|
+
}, {
|
|
244
|
+
readonly indexed: false;
|
|
245
|
+
readonly internalType: "address";
|
|
246
|
+
readonly name: "tokenSpent";
|
|
247
|
+
readonly type: "address";
|
|
248
|
+
}, {
|
|
249
|
+
readonly indexed: false;
|
|
250
|
+
readonly internalType: "uint256";
|
|
251
|
+
readonly name: "amountSpent";
|
|
252
|
+
readonly type: "uint256";
|
|
253
|
+
}, {
|
|
254
|
+
readonly indexed: false;
|
|
255
|
+
readonly internalType: "uint8";
|
|
256
|
+
readonly name: "accountId";
|
|
257
|
+
readonly type: "uint8";
|
|
258
|
+
}, {
|
|
259
|
+
readonly indexed: false;
|
|
260
|
+
readonly internalType: "TokenId";
|
|
261
|
+
readonly name: "tokenId";
|
|
262
|
+
readonly type: "uint16";
|
|
263
|
+
}, {
|
|
264
|
+
readonly indexed: false;
|
|
265
|
+
readonly internalType: "MarketId";
|
|
266
|
+
readonly name: "marketId";
|
|
267
|
+
readonly type: "uint24";
|
|
268
|
+
}, {
|
|
269
|
+
readonly indexed: false;
|
|
270
|
+
readonly internalType: "uint256";
|
|
271
|
+
readonly name: "depositAmount";
|
|
272
|
+
readonly type: "uint256";
|
|
273
|
+
}, {
|
|
274
|
+
readonly indexed: false;
|
|
275
|
+
readonly internalType: "uint256";
|
|
276
|
+
readonly name: "payTreasuryAmount";
|
|
277
|
+
readonly type: "uint256";
|
|
278
|
+
}];
|
|
279
|
+
readonly name: "DepositFromBox";
|
|
280
|
+
readonly type: "event";
|
|
231
281
|
}, {
|
|
232
282
|
readonly anonymous: false;
|
|
233
283
|
readonly inputs: readonly [{
|
|
@@ -373,41 +423,6 @@ export declare const iRouterAbi: readonly [{
|
|
|
373
423
|
}];
|
|
374
424
|
readonly name: "SingleOrderExecuted";
|
|
375
425
|
readonly type: "event";
|
|
376
|
-
}, {
|
|
377
|
-
readonly anonymous: false;
|
|
378
|
-
readonly inputs: readonly [{
|
|
379
|
-
readonly indexed: true;
|
|
380
|
-
readonly internalType: "address";
|
|
381
|
-
readonly name: "root";
|
|
382
|
-
readonly type: "address";
|
|
383
|
-
}, {
|
|
384
|
-
readonly indexed: false;
|
|
385
|
-
readonly internalType: "uint32";
|
|
386
|
-
readonly name: "boxId";
|
|
387
|
-
readonly type: "uint32";
|
|
388
|
-
}, {
|
|
389
|
-
readonly indexed: false;
|
|
390
|
-
readonly internalType: "address";
|
|
391
|
-
readonly name: "tokenIn";
|
|
392
|
-
readonly type: "address";
|
|
393
|
-
}, {
|
|
394
|
-
readonly indexed: false;
|
|
395
|
-
readonly internalType: "uint256";
|
|
396
|
-
readonly name: "amountIn";
|
|
397
|
-
readonly type: "uint256";
|
|
398
|
-
}, {
|
|
399
|
-
readonly indexed: false;
|
|
400
|
-
readonly internalType: "address";
|
|
401
|
-
readonly name: "tokenOut";
|
|
402
|
-
readonly type: "address";
|
|
403
|
-
}, {
|
|
404
|
-
readonly indexed: false;
|
|
405
|
-
readonly internalType: "uint256";
|
|
406
|
-
readonly name: "netTokenOut";
|
|
407
|
-
readonly type: "uint256";
|
|
408
|
-
}];
|
|
409
|
-
readonly name: "SwapFromBox";
|
|
410
|
-
readonly type: "event";
|
|
411
426
|
}, {
|
|
412
427
|
readonly anonymous: false;
|
|
413
428
|
readonly inputs: readonly [{
|
|
@@ -464,32 +479,37 @@ export declare const iRouterAbi: readonly [{
|
|
|
464
479
|
readonly name: "TryAggregateCallSucceeded";
|
|
465
480
|
readonly type: "event";
|
|
466
481
|
}, {
|
|
467
|
-
readonly
|
|
468
|
-
readonly
|
|
469
|
-
|
|
482
|
+
readonly anonymous: false;
|
|
483
|
+
readonly inputs: readonly [{
|
|
484
|
+
readonly indexed: true;
|
|
470
485
|
readonly internalType: "address";
|
|
471
|
-
readonly name: "";
|
|
486
|
+
readonly name: "root";
|
|
472
487
|
readonly type: "address";
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
488
|
+
}, {
|
|
489
|
+
readonly indexed: false;
|
|
490
|
+
readonly internalType: "uint32";
|
|
491
|
+
readonly name: "boxId";
|
|
492
|
+
readonly type: "uint32";
|
|
493
|
+
}, {
|
|
494
|
+
readonly indexed: false;
|
|
480
495
|
readonly internalType: "address";
|
|
481
|
-
readonly name: "";
|
|
496
|
+
readonly name: "token";
|
|
482
497
|
readonly type: "address";
|
|
498
|
+
}, {
|
|
499
|
+
readonly indexed: false;
|
|
500
|
+
readonly internalType: "uint256";
|
|
501
|
+
readonly name: "amount";
|
|
502
|
+
readonly type: "uint256";
|
|
483
503
|
}];
|
|
484
|
-
readonly
|
|
485
|
-
readonly type: "
|
|
504
|
+
readonly name: "WithdrawFromBox";
|
|
505
|
+
readonly type: "event";
|
|
486
506
|
}, {
|
|
487
507
|
readonly inputs: readonly [];
|
|
488
|
-
readonly name: "
|
|
508
|
+
readonly name: "DEPOSIT_BOX_FACTORY";
|
|
489
509
|
readonly outputs: readonly [{
|
|
490
|
-
readonly internalType: "
|
|
510
|
+
readonly internalType: "contract IPDepositBoxFactory";
|
|
491
511
|
readonly name: "";
|
|
492
|
-
readonly type: "
|
|
512
|
+
readonly type: "address";
|
|
493
513
|
}];
|
|
494
514
|
readonly stateMutability: "view";
|
|
495
515
|
readonly type: "function";
|
|
@@ -983,28 +1003,6 @@ export declare const iRouterAbi: readonly [{
|
|
|
983
1003
|
readonly outputs: readonly [];
|
|
984
1004
|
readonly stateMutability: "nonpayable";
|
|
985
1005
|
readonly type: "function";
|
|
986
|
-
}, {
|
|
987
|
-
readonly inputs: readonly [{
|
|
988
|
-
readonly internalType: "address";
|
|
989
|
-
readonly name: "root";
|
|
990
|
-
readonly type: "address";
|
|
991
|
-
}, {
|
|
992
|
-
readonly internalType: "uint32";
|
|
993
|
-
readonly name: "boxId";
|
|
994
|
-
readonly type: "uint32";
|
|
995
|
-
}];
|
|
996
|
-
readonly name: "computeDepositBox";
|
|
997
|
-
readonly outputs: readonly [{
|
|
998
|
-
readonly internalType: "address";
|
|
999
|
-
readonly name: "box";
|
|
1000
|
-
readonly type: "address";
|
|
1001
|
-
}, {
|
|
1002
|
-
readonly internalType: "bytes32";
|
|
1003
|
-
readonly name: "salt";
|
|
1004
|
-
readonly type: "bytes32";
|
|
1005
|
-
}];
|
|
1006
|
-
readonly stateMutability: "view";
|
|
1007
|
-
readonly type: "function";
|
|
1008
1006
|
}, {
|
|
1009
1007
|
readonly inputs: readonly [{
|
|
1010
1008
|
readonly components: readonly [{
|
|
@@ -1015,6 +1013,14 @@ export declare const iRouterAbi: readonly [{
|
|
|
1015
1013
|
readonly internalType: "uint32";
|
|
1016
1014
|
readonly name: "boxId";
|
|
1017
1015
|
readonly type: "uint32";
|
|
1016
|
+
}, {
|
|
1017
|
+
readonly internalType: "address";
|
|
1018
|
+
readonly name: "tokenSpent";
|
|
1019
|
+
readonly type: "address";
|
|
1020
|
+
}, {
|
|
1021
|
+
readonly internalType: "uint256";
|
|
1022
|
+
readonly name: "amountSpent";
|
|
1023
|
+
readonly type: "uint256";
|
|
1018
1024
|
}, {
|
|
1019
1025
|
readonly internalType: "uint8";
|
|
1020
1026
|
readonly name: "accountId";
|
|
@@ -1029,12 +1035,24 @@ export declare const iRouterAbi: readonly [{
|
|
|
1029
1035
|
readonly type: "uint24";
|
|
1030
1036
|
}, {
|
|
1031
1037
|
readonly internalType: "uint256";
|
|
1032
|
-
readonly name: "
|
|
1038
|
+
readonly name: "minDepositAmount";
|
|
1033
1039
|
readonly type: "uint256";
|
|
1034
1040
|
}, {
|
|
1035
1041
|
readonly internalType: "uint256";
|
|
1036
1042
|
readonly name: "payTreasuryAmount";
|
|
1037
1043
|
readonly type: "uint256";
|
|
1044
|
+
}, {
|
|
1045
|
+
readonly internalType: "address";
|
|
1046
|
+
readonly name: "swapExtRouter";
|
|
1047
|
+
readonly type: "address";
|
|
1048
|
+
}, {
|
|
1049
|
+
readonly internalType: "address";
|
|
1050
|
+
readonly name: "swapApprove";
|
|
1051
|
+
readonly type: "address";
|
|
1052
|
+
}, {
|
|
1053
|
+
readonly internalType: "bytes";
|
|
1054
|
+
readonly name: "swapCalldata";
|
|
1055
|
+
readonly type: "bytes";
|
|
1038
1056
|
}, {
|
|
1039
1057
|
readonly internalType: "uint64";
|
|
1040
1058
|
readonly name: "nonce";
|
|
@@ -1719,61 +1737,6 @@ export declare const iRouterAbi: readonly [{
|
|
|
1719
1737
|
readonly outputs: readonly [];
|
|
1720
1738
|
readonly stateMutability: "nonpayable";
|
|
1721
1739
|
readonly type: "function";
|
|
1722
|
-
}, {
|
|
1723
|
-
readonly inputs: readonly [{
|
|
1724
|
-
readonly components: readonly [{
|
|
1725
|
-
readonly internalType: "address";
|
|
1726
|
-
readonly name: "root";
|
|
1727
|
-
readonly type: "address";
|
|
1728
|
-
}, {
|
|
1729
|
-
readonly internalType: "uint32";
|
|
1730
|
-
readonly name: "boxId";
|
|
1731
|
-
readonly type: "uint32";
|
|
1732
|
-
}, {
|
|
1733
|
-
readonly internalType: "address";
|
|
1734
|
-
readonly name: "tokenIn";
|
|
1735
|
-
readonly type: "address";
|
|
1736
|
-
}, {
|
|
1737
|
-
readonly internalType: "uint256";
|
|
1738
|
-
readonly name: "amountIn";
|
|
1739
|
-
readonly type: "uint256";
|
|
1740
|
-
}, {
|
|
1741
|
-
readonly internalType: "address";
|
|
1742
|
-
readonly name: "tokenOut";
|
|
1743
|
-
readonly type: "address";
|
|
1744
|
-
}, {
|
|
1745
|
-
readonly internalType: "uint256";
|
|
1746
|
-
readonly name: "minOut";
|
|
1747
|
-
readonly type: "uint256";
|
|
1748
|
-
}, {
|
|
1749
|
-
readonly internalType: "address";
|
|
1750
|
-
readonly name: "swapExecutor";
|
|
1751
|
-
readonly type: "address";
|
|
1752
|
-
}, {
|
|
1753
|
-
readonly internalType: "address";
|
|
1754
|
-
readonly name: "swapExtRouter";
|
|
1755
|
-
readonly type: "address";
|
|
1756
|
-
}, {
|
|
1757
|
-
readonly internalType: "bytes";
|
|
1758
|
-
readonly name: "swapCalldata";
|
|
1759
|
-
readonly type: "bytes";
|
|
1760
|
-
}, {
|
|
1761
|
-
readonly internalType: "uint64";
|
|
1762
|
-
readonly name: "nonce";
|
|
1763
|
-
readonly type: "uint64";
|
|
1764
|
-
}];
|
|
1765
|
-
readonly internalType: "struct IRouterEventsAndTypes.SwapFromBoxMessage";
|
|
1766
|
-
readonly name: "message";
|
|
1767
|
-
readonly type: "tuple";
|
|
1768
|
-
}, {
|
|
1769
|
-
readonly internalType: "bytes";
|
|
1770
|
-
readonly name: "signature";
|
|
1771
|
-
readonly type: "bytes";
|
|
1772
|
-
}];
|
|
1773
|
-
readonly name: "swapFromBox";
|
|
1774
|
-
readonly outputs: readonly [];
|
|
1775
|
-
readonly stateMutability: "nonpayable";
|
|
1776
|
-
readonly type: "function";
|
|
1777
1740
|
}, {
|
|
1778
1741
|
readonly inputs: readonly [{
|
|
1779
1742
|
readonly components: readonly [{
|
|
@@ -1962,21 +1925,34 @@ export declare const iRouterAbi: readonly [{
|
|
|
1962
1925
|
readonly type: "function";
|
|
1963
1926
|
}, {
|
|
1964
1927
|
readonly inputs: readonly [{
|
|
1965
|
-
readonly
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1928
|
+
readonly components: readonly [{
|
|
1929
|
+
readonly internalType: "address";
|
|
1930
|
+
readonly name: "root";
|
|
1931
|
+
readonly type: "address";
|
|
1932
|
+
}, {
|
|
1933
|
+
readonly internalType: "uint32";
|
|
1934
|
+
readonly name: "boxId";
|
|
1935
|
+
readonly type: "uint32";
|
|
1936
|
+
}, {
|
|
1937
|
+
readonly internalType: "address";
|
|
1938
|
+
readonly name: "token";
|
|
1939
|
+
readonly type: "address";
|
|
1940
|
+
}, {
|
|
1941
|
+
readonly internalType: "uint256";
|
|
1942
|
+
readonly name: "amount";
|
|
1943
|
+
readonly type: "uint256";
|
|
1944
|
+
}, {
|
|
1945
|
+
readonly internalType: "uint64";
|
|
1946
|
+
readonly name: "nonce";
|
|
1947
|
+
readonly type: "uint64";
|
|
1948
|
+
}];
|
|
1949
|
+
readonly internalType: "struct IRouterEventsAndTypes.WithdrawFromBoxMessage";
|
|
1950
|
+
readonly name: "message";
|
|
1951
|
+
readonly type: "tuple";
|
|
1976
1952
|
}, {
|
|
1977
|
-
readonly internalType: "
|
|
1978
|
-
readonly name: "
|
|
1979
|
-
readonly type: "
|
|
1953
|
+
readonly internalType: "bytes";
|
|
1954
|
+
readonly name: "signature";
|
|
1955
|
+
readonly type: "bytes";
|
|
1980
1956
|
}];
|
|
1981
1957
|
readonly name: "withdrawFromBox";
|
|
1982
1958
|
readonly outputs: readonly [];
|