@pendle/sdk-boros 0.3.32 → 0.3.34

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.
@@ -86,6 +86,53 @@ 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
+ },
89
136
  {
90
137
  inputs: [
91
138
  { internalType: 'MarketId', name: 'marketId', type: 'uint24' },
@@ -446,6 +493,53 @@ exports.iMarketHubAbi = [
446
493
  stateMutability: 'view',
447
494
  type: 'function',
448
495
  },
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
+ },
449
543
  {
450
544
  inputs: [
451
545
  { internalType: 'MarketId', name: 'marketId', type: 'uint24' },
@@ -2088,12 +2182,40 @@ exports.iRouterAbi = [
2088
2182
  components: [
2089
2183
  { internalType: 'bool', name: 'cross', type: 'bool' },
2090
2184
  { internalType: 'MarketId', name: 'marketId', type: 'uint24' },
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' },
2185
+ {
2186
+ components: [
2187
+ { internalType: 'OrderId[]', name: 'ids', type: 'uint64[]' },
2188
+ { internalType: 'bool', name: 'isAll', type: 'bool' },
2189
+ { internalType: 'bool', name: 'isStrict', type: 'bool' },
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' },
2097
2219
  ],
2098
2220
  internalType: 'struct IRouterEventsAndTypes.BulkOrders',
2099
2221
  name: 'req',
@@ -2102,8 +2224,10 @@ exports.iRouterAbi = [
2102
2224
  ],
2103
2225
  name: 'bulkOrders',
2104
2226
  outputs: [
2105
- { internalType: 'Trade', name: 'matched', type: 'uint256' },
2106
- { internalType: 'uint256', name: 'takerFee', type: 'uint256' },
2227
+ { internalType: 'Trade', name: 'matched1', type: 'uint256' },
2228
+ { internalType: 'Trade', name: 'matched2', type: 'uint256' },
2229
+ { internalType: 'uint256', name: 'takerFee1', type: 'uint256' },
2230
+ { internalType: 'uint256', name: 'takerFee2', type: 'uint256' },
2107
2231
  ],
2108
2232
  stateMutability: 'nonpayable',
2109
2233
  type: 'function',
@@ -6851,12 +6975,40 @@ exports.iTradeModuleAbi = [
6851
6975
  components: [
6852
6976
  { internalType: 'bool', name: 'cross', type: 'bool' },
6853
6977
  { internalType: 'MarketId', name: 'marketId', type: 'uint24' },
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' },
6978
+ {
6979
+ components: [
6980
+ { internalType: 'OrderId[]', name: 'ids', type: 'uint64[]' },
6981
+ { internalType: 'bool', name: 'isAll', type: 'bool' },
6982
+ { internalType: 'bool', name: 'isStrict', type: 'bool' },
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' },
6860
7012
  ],
6861
7013
  internalType: 'struct IRouterEventsAndTypes.BulkOrders',
6862
7014
  name: 'req',
@@ -6865,8 +7017,10 @@ exports.iTradeModuleAbi = [
6865
7017
  ],
6866
7018
  name: 'bulkOrders',
6867
7019
  outputs: [
6868
- { internalType: 'Trade', name: 'matched', type: 'uint256' },
6869
- { internalType: 'uint256', name: 'takerFee', type: 'uint256' },
7020
+ { internalType: 'Trade', name: 'matched1', type: 'uint256' },
7021
+ { internalType: 'Trade', name: 'matched2', type: 'uint256' },
7022
+ { internalType: 'uint256', name: 'takerFee1', type: 'uint256' },
7023
+ { internalType: 'uint256', name: 'takerFee2', type: 'uint256' },
6870
7024
  ],
6871
7025
  stateMutability: 'nonpayable',
6872
7026
  type: 'function',