@scallop-io/sui-scallop-sdk 2.2.6-tbw-sponsored-alpha.1 → 2.2.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.mts CHANGED
@@ -799,13 +799,13 @@ declare class ScallopQuery implements ScallopQueryInterface {
799
799
  indexer?: boolean;
800
800
  }): Promise<Lending>;
801
801
  /**
802
- * Get user all obligation accounts information.
802
+ * Get user all obligation accounts information from ownerAddress.
803
803
  *
804
804
  * @description
805
805
  * All collateral and borrowing information in all obligation accounts owned by the user.
806
806
  *
807
807
  * @param ownerAddress - The owner address.
808
- * @param indexer - Whether to use indexer.
808
+ * @param args - Additional arguments.
809
809
  * @return All obligation accounts information.
810
810
  */
811
811
  getObligationAccounts(ownerAddress?: string, args?: {
@@ -818,6 +818,42 @@ declare class ScallopQuery implements ScallopQueryInterface {
818
818
  }): Promise<{
819
819
  [x: string]: ObligationAccount | undefined;
820
820
  }>;
821
+ /**
822
+ * Get user all obligation accounts information from obligationIds.
823
+ *
824
+ * @description
825
+ * All collateral and borrowing information in all obligation accounts.
826
+ *
827
+ * @param obligationIds - Obligation IDs.
828
+ * @param args - Additional arguments.
829
+ * @return All obligation accounts information.
830
+ */
831
+ getObligationAccountsByIds(obligationIds: string[], args?: {
832
+ market?: {
833
+ collaterals: MarketCollaterals;
834
+ pools: MarketPools;
835
+ };
836
+ coinPrices?: CoinPrices;
837
+ indexer?: boolean;
838
+ }): Promise<ObligationAccount[]>;
839
+ /**
840
+ * Get obligation account by id
841
+ *
842
+ * @description
843
+ * All collateral and borrowing information in obligation account.
844
+ *
845
+ * @param obligationId - Obligation ID.
846
+ * @param args - Additional arguments.
847
+ * @return All obligation accounts information.
848
+ */
849
+ getObligationAccountById(obligationId: string, args?: {
850
+ market?: {
851
+ collaterals: MarketCollaterals;
852
+ pools: MarketPools;
853
+ };
854
+ coinPrices?: CoinPrices;
855
+ indexer?: boolean;
856
+ }): Promise<ObligationAccount>;
821
857
  /**
822
858
  * Get obligation account information for specific id.
823
859
  *
@@ -826,7 +862,7 @@ declare class ScallopQuery implements ScallopQueryInterface {
826
862
  *
827
863
  * @param obligationId - The obligation id.
828
864
  * @param ownerAddress - The owner address.
829
- * @param indexer - Whether to use indexer.
865
+ * @param args - Additional arguments.
830
866
  * @return Borrowing and collateral information.
831
867
  */
832
868
  getObligationAccount(obligationId: string, ownerAddress?: string, args?: {
package/dist/index.d.ts CHANGED
@@ -799,13 +799,13 @@ declare class ScallopQuery implements ScallopQueryInterface {
799
799
  indexer?: boolean;
800
800
  }): Promise<Lending>;
801
801
  /**
802
- * Get user all obligation accounts information.
802
+ * Get user all obligation accounts information from ownerAddress.
803
803
  *
804
804
  * @description
805
805
  * All collateral and borrowing information in all obligation accounts owned by the user.
806
806
  *
807
807
  * @param ownerAddress - The owner address.
808
- * @param indexer - Whether to use indexer.
808
+ * @param args - Additional arguments.
809
809
  * @return All obligation accounts information.
810
810
  */
811
811
  getObligationAccounts(ownerAddress?: string, args?: {
@@ -818,6 +818,42 @@ declare class ScallopQuery implements ScallopQueryInterface {
818
818
  }): Promise<{
819
819
  [x: string]: ObligationAccount | undefined;
820
820
  }>;
821
+ /**
822
+ * Get user all obligation accounts information from obligationIds.
823
+ *
824
+ * @description
825
+ * All collateral and borrowing information in all obligation accounts.
826
+ *
827
+ * @param obligationIds - Obligation IDs.
828
+ * @param args - Additional arguments.
829
+ * @return All obligation accounts information.
830
+ */
831
+ getObligationAccountsByIds(obligationIds: string[], args?: {
832
+ market?: {
833
+ collaterals: MarketCollaterals;
834
+ pools: MarketPools;
835
+ };
836
+ coinPrices?: CoinPrices;
837
+ indexer?: boolean;
838
+ }): Promise<ObligationAccount[]>;
839
+ /**
840
+ * Get obligation account by id
841
+ *
842
+ * @description
843
+ * All collateral and borrowing information in obligation account.
844
+ *
845
+ * @param obligationId - Obligation ID.
846
+ * @param args - Additional arguments.
847
+ * @return All obligation accounts information.
848
+ */
849
+ getObligationAccountById(obligationId: string, args?: {
850
+ market?: {
851
+ collaterals: MarketCollaterals;
852
+ pools: MarketPools;
853
+ };
854
+ coinPrices?: CoinPrices;
855
+ indexer?: boolean;
856
+ }): Promise<ObligationAccount>;
821
857
  /**
822
858
  * Get obligation account information for specific id.
823
859
  *
@@ -826,7 +862,7 @@ declare class ScallopQuery implements ScallopQueryInterface {
826
862
  *
827
863
  * @param obligationId - The obligation id.
828
864
  * @param ownerAddress - The owner address.
829
- * @param indexer - Whether to use indexer.
865
+ * @param args - Additional arguments.
830
866
  * @return Borrowing and collateral information.
831
867
  */
832
868
  getObligationAccount(obligationId: string, ownerAddress?: string, args?: {