@pendle/sdk-boros 0.3.30-beta.1 → 0.3.30
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/backend/secrettune/BorosCoreSDK.d.ts +15 -22
- package/dist/backend/secrettune/BorosCoreSDK.js.map +1 -1
- package/dist/contracts/viemAbis.d.ts +38 -318
- package/dist/contracts/viemAbis.js +16 -170
- package/dist/contracts/viemAbis.js.map +1 -1
- package/dist/entities/exchange/exchange.d.ts +3 -1447
- package/dist/entities/exchange/exchange.js +0 -53
- package/dist/entities/exchange/exchange.js.map +1 -1
- package/dist/entities/exchange/types.d.ts +0 -8
- package/dist/entities/exchange/utils.d.ts +0 -89
- package/dist/types/common.d.ts +1 -2
- package/dist/types/common.js +0 -1
- package/dist/types/common.js.map +1 -1
- package/dist/types/encoders.d.ts +6 -16
- package/dist/types/encoders.js.map +1 -1
- package/dist/utils/signing/index.d.ts +1 -1
- package/dist/utils/signing/index.js +2 -1
- package/dist/utils/signing/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -86,53 +86,6 @@ exports.iAMMFactoryAbi = [
|
|
|
86
86
|
},
|
|
87
87
|
];
|
|
88
88
|
exports.iMarketHubEntryOnlyAbi = [
|
|
89
|
-
{
|
|
90
|
-
inputs: [
|
|
91
|
-
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
92
|
-
{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
93
|
-
{
|
|
94
|
-
components: [
|
|
95
|
-
{ internalType: 'OrderId[]', name: 'ids', type: 'uint64[]' },
|
|
96
|
-
{ internalType: 'bool', name: 'isAll', type: 'bool' },
|
|
97
|
-
{ internalType: 'bool', name: 'isStrict', type: 'bool' },
|
|
98
|
-
],
|
|
99
|
-
internalType: 'struct CancelData',
|
|
100
|
-
name: 'cancelData',
|
|
101
|
-
type: 'tuple',
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
components: [
|
|
105
|
-
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
106
|
-
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
107
|
-
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
108
|
-
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
109
|
-
],
|
|
110
|
-
internalType: 'struct LongShort',
|
|
111
|
-
name: 'orders1',
|
|
112
|
-
type: 'tuple',
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
components: [
|
|
116
|
-
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
117
|
-
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
118
|
-
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
119
|
-
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
120
|
-
],
|
|
121
|
-
internalType: 'struct LongShort',
|
|
122
|
-
name: 'orders2',
|
|
123
|
-
type: 'tuple',
|
|
124
|
-
},
|
|
125
|
-
],
|
|
126
|
-
name: 'bulkOrders',
|
|
127
|
-
outputs: [
|
|
128
|
-
{ internalType: 'Trade', name: 'matched1', type: 'uint256' },
|
|
129
|
-
{ internalType: 'Trade', name: 'matched2', type: 'uint256' },
|
|
130
|
-
{ internalType: 'uint256', name: 'takerFee1', type: 'uint256' },
|
|
131
|
-
{ internalType: 'uint256', name: 'takerFee2', type: 'uint256' },
|
|
132
|
-
],
|
|
133
|
-
stateMutability: 'nonpayable',
|
|
134
|
-
type: 'function',
|
|
135
|
-
},
|
|
136
89
|
{
|
|
137
90
|
inputs: [
|
|
138
91
|
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
@@ -493,53 +446,6 @@ exports.iMarketHubAbi = [
|
|
|
493
446
|
stateMutability: 'view',
|
|
494
447
|
type: 'function',
|
|
495
448
|
},
|
|
496
|
-
{
|
|
497
|
-
inputs: [
|
|
498
|
-
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
499
|
-
{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
500
|
-
{
|
|
501
|
-
components: [
|
|
502
|
-
{ internalType: 'OrderId[]', name: 'ids', type: 'uint64[]' },
|
|
503
|
-
{ internalType: 'bool', name: 'isAll', type: 'bool' },
|
|
504
|
-
{ internalType: 'bool', name: 'isStrict', type: 'bool' },
|
|
505
|
-
],
|
|
506
|
-
internalType: 'struct CancelData',
|
|
507
|
-
name: 'cancelData',
|
|
508
|
-
type: 'tuple',
|
|
509
|
-
},
|
|
510
|
-
{
|
|
511
|
-
components: [
|
|
512
|
-
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
513
|
-
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
514
|
-
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
515
|
-
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
516
|
-
],
|
|
517
|
-
internalType: 'struct LongShort',
|
|
518
|
-
name: 'orders1',
|
|
519
|
-
type: 'tuple',
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
components: [
|
|
523
|
-
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
524
|
-
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
525
|
-
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
526
|
-
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
527
|
-
],
|
|
528
|
-
internalType: 'struct LongShort',
|
|
529
|
-
name: 'orders2',
|
|
530
|
-
type: 'tuple',
|
|
531
|
-
},
|
|
532
|
-
],
|
|
533
|
-
name: 'bulkOrders',
|
|
534
|
-
outputs: [
|
|
535
|
-
{ internalType: 'Trade', name: 'matched1', type: 'uint256' },
|
|
536
|
-
{ internalType: 'Trade', name: 'matched2', type: 'uint256' },
|
|
537
|
-
{ internalType: 'uint256', name: 'takerFee1', type: 'uint256' },
|
|
538
|
-
{ internalType: 'uint256', name: 'takerFee2', type: 'uint256' },
|
|
539
|
-
],
|
|
540
|
-
stateMutability: 'nonpayable',
|
|
541
|
-
type: 'function',
|
|
542
|
-
},
|
|
543
449
|
{
|
|
544
450
|
inputs: [
|
|
545
451
|
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
@@ -2182,40 +2088,12 @@ exports.iRouterAbi = [
|
|
|
2182
2088
|
components: [
|
|
2183
2089
|
{ internalType: 'bool', name: 'cross', type: 'bool' },
|
|
2184
2090
|
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
2185
|
-
{
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
internalType: 'struct CancelData',
|
|
2192
|
-
name: 'cancels',
|
|
2193
|
-
type: 'tuple',
|
|
2194
|
-
},
|
|
2195
|
-
{
|
|
2196
|
-
components: [
|
|
2197
|
-
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
2198
|
-
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
2199
|
-
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
2200
|
-
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
2201
|
-
],
|
|
2202
|
-
internalType: 'struct LongShort',
|
|
2203
|
-
name: 'orders1',
|
|
2204
|
-
type: 'tuple',
|
|
2205
|
-
},
|
|
2206
|
-
{
|
|
2207
|
-
components: [
|
|
2208
|
-
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
2209
|
-
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
2210
|
-
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
2211
|
-
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
2212
|
-
],
|
|
2213
|
-
internalType: 'struct LongShort',
|
|
2214
|
-
name: 'orders2',
|
|
2215
|
-
type: 'tuple',
|
|
2216
|
-
},
|
|
2217
|
-
{ internalType: 'int128', name: 'desiredMatchRate1', type: 'int128' },
|
|
2218
|
-
{ internalType: 'int128', name: 'desiredMatchRate2', type: 'int128' },
|
|
2091
|
+
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
2092
|
+
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
2093
|
+
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
2094
|
+
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
2095
|
+
{ internalType: 'OrderId[]', name: 'idsToStrictCancel', type: 'uint64[]' },
|
|
2096
|
+
{ internalType: 'int128', name: 'desiredMatchRate', type: 'int128' },
|
|
2219
2097
|
],
|
|
2220
2098
|
internalType: 'struct IRouterEventsAndTypes.BulkOrders',
|
|
2221
2099
|
name: 'req',
|
|
@@ -2224,10 +2102,8 @@ exports.iRouterAbi = [
|
|
|
2224
2102
|
],
|
|
2225
2103
|
name: 'bulkOrders',
|
|
2226
2104
|
outputs: [
|
|
2227
|
-
{ internalType: 'Trade', name: '
|
|
2228
|
-
{ internalType: '
|
|
2229
|
-
{ internalType: 'uint256', name: 'takerFee1', type: 'uint256' },
|
|
2230
|
-
{ internalType: 'uint256', name: 'takerFee2', type: 'uint256' },
|
|
2105
|
+
{ internalType: 'Trade', name: 'matched', type: 'uint256' },
|
|
2106
|
+
{ internalType: 'uint256', name: 'takerFee', type: 'uint256' },
|
|
2231
2107
|
],
|
|
2232
2108
|
stateMutability: 'nonpayable',
|
|
2233
2109
|
type: 'function',
|
|
@@ -6975,40 +6851,12 @@ exports.iTradeModuleAbi = [
|
|
|
6975
6851
|
components: [
|
|
6976
6852
|
{ internalType: 'bool', name: 'cross', type: 'bool' },
|
|
6977
6853
|
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
6978
|
-
{
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
internalType: 'struct CancelData',
|
|
6985
|
-
name: 'cancels',
|
|
6986
|
-
type: 'tuple',
|
|
6987
|
-
},
|
|
6988
|
-
{
|
|
6989
|
-
components: [
|
|
6990
|
-
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
6991
|
-
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
6992
|
-
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
6993
|
-
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
6994
|
-
],
|
|
6995
|
-
internalType: 'struct LongShort',
|
|
6996
|
-
name: 'orders1',
|
|
6997
|
-
type: 'tuple',
|
|
6998
|
-
},
|
|
6999
|
-
{
|
|
7000
|
-
components: [
|
|
7001
|
-
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
7002
|
-
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
7003
|
-
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
7004
|
-
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
7005
|
-
],
|
|
7006
|
-
internalType: 'struct LongShort',
|
|
7007
|
-
name: 'orders2',
|
|
7008
|
-
type: 'tuple',
|
|
7009
|
-
},
|
|
7010
|
-
{ internalType: 'int128', name: 'desiredMatchRate1', type: 'int128' },
|
|
7011
|
-
{ internalType: 'int128', name: 'desiredMatchRate2', type: 'int128' },
|
|
6854
|
+
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
6855
|
+
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
6856
|
+
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
6857
|
+
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
6858
|
+
{ internalType: 'OrderId[]', name: 'idsToStrictCancel', type: 'uint64[]' },
|
|
6859
|
+
{ internalType: 'int128', name: 'desiredMatchRate', type: 'int128' },
|
|
7012
6860
|
],
|
|
7013
6861
|
internalType: 'struct IRouterEventsAndTypes.BulkOrders',
|
|
7014
6862
|
name: 'req',
|
|
@@ -7017,10 +6865,8 @@ exports.iTradeModuleAbi = [
|
|
|
7017
6865
|
],
|
|
7018
6866
|
name: 'bulkOrders',
|
|
7019
6867
|
outputs: [
|
|
7020
|
-
{ internalType: 'Trade', name: '
|
|
7021
|
-
{ internalType: '
|
|
7022
|
-
{ internalType: 'uint256', name: 'takerFee1', type: 'uint256' },
|
|
7023
|
-
{ internalType: 'uint256', name: 'takerFee2', type: 'uint256' },
|
|
6868
|
+
{ internalType: 'Trade', name: 'matched', type: 'uint256' },
|
|
6869
|
+
{ internalType: 'uint256', name: 'takerFee', type: 'uint256' },
|
|
7024
6870
|
],
|
|
7025
6871
|
stateMutability: 'nonpayable',
|
|
7026
6872
|
type: 'function',
|