@cetusprotocol/deepbook-utils 1.4.5 → 1.4.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import { PythPriceModule as PythPriceModule$1, FullClient } from '@cetusprotocol/common-sdk';
2
2
  import { SuiGraphQLClient } from '@mysten/sui/graphql';
3
- import { SuiTransactionBlockResponse, CoinBalance, SuiObjectResponse, SuiObjectData, SuiObjectRef, OwnedObjectRef, SuiMoveObject, ObjectOwner, DisplayFieldsResponse, SuiParsedData } from '@mysten/sui/jsonRpc';
3
+ import { SuiObjectResponse, SuiTransactionBlockResponse, CoinBalance, SuiObjectData, SuiObjectRef, OwnedObjectRef, SuiMoveObject, ObjectOwner, DisplayFieldsResponse, SuiParsedData } from '@mysten/sui/jsonRpc';
4
4
  import * as _mysten_sui_transactions from '@mysten/sui/transactions';
5
5
  import { TransactionArgument, Transaction, TransactionObjectArgument, TransactionResult } from '@mysten/sui/transactions';
6
6
  import Decimal from 'decimal.js';
@@ -438,9 +438,13 @@ declare class DeepbookUtilsModule implements IModule {
438
438
  }): Transaction;
439
439
  /**
440
440
  * Retrieves balance managers for an account, optionally using the cached
441
- * result when it is still valid.
441
+ * result when it is still valid. Only managers that satisfy the cap rule
442
+ * are returned: no allow-list yet (`listed.length === 0`), or every
443
+ * allow-listed object is owned by `account` (`owned.length === listed.length`).
442
444
  */
443
445
  getBalanceManager(account: string, forceRefresh?: boolean): Promise<any>;
446
+ batchGetObjectsByIdMap(objectIdMap: Record<string, string[]>): Promise<Record<string, SuiObjectResponse[]>>;
447
+ getSuiObjectOwnerAddress(resp: SuiObjectResponse): string | undefined;
444
448
  withdrawSettledAmounts({ poolInfo, balanceManager, }: {
445
449
  poolInfo: any;
446
450
  balanceManager: string;
@@ -731,6 +735,10 @@ declare class DeepbookUtilsModule implements IModule {
731
735
  baseCoinType: string;
732
736
  quoteCoinType: string;
733
737
  }): Promise<Transaction>;
738
+ newWithCustomOwnerCaps({ owner, appType, }: {
739
+ owner: string;
740
+ appType?: string;
741
+ }): Transaction;
734
742
  }
735
743
 
736
744
  type Price = {