@cetusprotocol/deepbook-utils 1.5.6 → 1.5.8
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/index.d.ts +5 -4
- package/dist/index.js +84 -72
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { PythPriceModule as PythPriceModule$1, FullClient } from '@cetusprotocol/common-sdk';
|
|
1
|
+
import { PythPriceModule as PythPriceModule$1, PythEndpoint, FullClient } from '@cetusprotocol/common-sdk';
|
|
2
|
+
export { PythEndpoint } from '@cetusprotocol/common-sdk';
|
|
2
3
|
import * as _mysten_sui_transactions from '@mysten/sui/transactions';
|
|
3
4
|
import { TransactionArgument, TransactionObjectArgument, Transaction, TransactionResult } from '@mysten/sui/transactions';
|
|
4
5
|
import { SuiClientTypes } from '@mysten/sui/client';
|
|
@@ -1358,7 +1359,7 @@ declare class MarginUtilsModule implements IModule {
|
|
|
1358
1359
|
poolInfo: MarginPoolInfo;
|
|
1359
1360
|
}, tx?: Transaction): Transaction;
|
|
1360
1361
|
/**
|
|
1361
|
-
* Places a reduce-only limit order (`
|
|
1362
|
+
* Places a reduce-only limit order (`place_reduce_only_limit_order_v2_pyth_upgraded<Base, Quote>`).
|
|
1362
1363
|
* DebtAsset generic removed; single `margin_pool<Debt>` replaced by base/quote MarginPools + oracles.
|
|
1363
1364
|
*/
|
|
1364
1365
|
placeReduceOnlyLimitOrder({ marginManager, poolInfo, baseMarginPool, quoteMarginPool, orderType, selfMatchingOption, priceInput, quantity, isBid, payWithDeep, expirationTimestamp, }: {
|
|
@@ -1375,7 +1376,7 @@ declare class MarginUtilsModule implements IModule {
|
|
|
1375
1376
|
expirationTimestamp?: number;
|
|
1376
1377
|
}, tx?: Transaction): Promise<Transaction>;
|
|
1377
1378
|
/**
|
|
1378
|
-
* Places a reduce-only market order (`
|
|
1379
|
+
* Places a reduce-only market order (`place_reduce_only_market_order_v2_pyth_upgraded<Base, Quote>`).
|
|
1379
1380
|
* DebtAsset generic removed; single `margin_pool<Debt>` replaced by base/quote MarginPools + oracles.
|
|
1380
1381
|
*/
|
|
1381
1382
|
placeReduceOnlyMarketOrder({ marginManager, poolInfo, baseMarginPool, quoteMarginPool, selfMatchingOption, quantity, amountLimit, isBid, payWithDeep, }: {
|
|
@@ -1589,7 +1590,7 @@ type SdkOptions = {
|
|
|
1589
1590
|
*/
|
|
1590
1591
|
fullRpcUrl: string;
|
|
1591
1592
|
graphqlUrl: string;
|
|
1592
|
-
|
|
1593
|
+
pythEndpoints: PythEndpoint[];
|
|
1593
1594
|
/**
|
|
1594
1595
|
* Configuration for the simulation account.
|
|
1595
1596
|
*/
|