@scallop-io/sui-scallop-sdk 2.3.6 → 2.3.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.mts CHANGED
@@ -459,6 +459,7 @@ type QueryInspectTxnParams = {
459
459
  queryTarget: string;
460
460
  args: SuiObjectArg[];
461
461
  typeArgs?: any[];
462
+ txBlock?: SuiTxBlock;
462
463
  };
463
464
  type ScallopSuiKitParams = {
464
465
  suiKit?: SuiKit;
@@ -512,7 +513,7 @@ declare class ScallopSuiKit extends ScallopQueryClient {
512
513
  * @param txBlock
513
514
  * @returns Promise<DevInspectResults>
514
515
  */
515
- queryInspectTxn({ queryTarget, args, typeArgs, }: QueryInspectTxnParams): Promise<DevInspectResults | null>;
516
+ queryInspectTxn({ queryTarget, args, typeArgs, txBlock, }: QueryInspectTxnParams): Promise<DevInspectResults | null>;
516
517
  }
517
518
 
518
519
  type ScallopQueryParams = {
@@ -1856,6 +1857,7 @@ type CoreNormalMethods = {
1856
1857
  repay: (obligation: SuiObjectArg, coin: SuiObjectArg, poolCoinName: string) => void;
1857
1858
  borrowFlashLoan: (amount: number | SuiTxArg, poolCoinName: string) => TransactionResult;
1858
1859
  repayFlashLoan: (coin: SuiObjectArg, loan: SuiObjectArg, poolCoinName: string) => void;
1860
+ liquidate: (obligation: SuiObjectArg, coin: SuiObjectArg, debtCoinName: string, collateralCoinName: string) => [NestedResult, NestedResult];
1859
1861
  };
1860
1862
  type CoreQuickMethods = {
1861
1863
  addCollateralQuick: (amount: number, collateralCoinName: string, obligationId?: SuiObjectArg, isSponsoredTx?: boolean) => Promise<void>;
@@ -1886,6 +1888,12 @@ type CoreQuickMethods = {
1886
1888
  sponsoredFeeds?: string[];
1887
1889
  isSponsoredTx?: boolean;
1888
1890
  }) => Promise<void>;
1891
+ liquidateQuick: (amount: number, debtCoinName: string, collateralCoinName: string, obligationId: SuiObjectArg, updateOracleOptions?: {
1892
+ usePythPullModel?: boolean;
1893
+ useOnChainXOracleList?: boolean;
1894
+ sponsoredFeeds?: string[];
1895
+ isSponsoredTx?: boolean;
1896
+ }) => Promise<[NestedResult, NestedResult]>;
1889
1897
  };
1890
1898
  type SuiTxBlockWithCoreNormalMethods = SuiTxBlock & SuiTxBlockWithSpool & CoreNormalMethods;
1891
1899
  type CoreTxBlock = SuiTxBlockWithCoreNormalMethods & CoreQuickMethods;
package/dist/index.d.ts CHANGED
@@ -459,6 +459,7 @@ type QueryInspectTxnParams = {
459
459
  queryTarget: string;
460
460
  args: SuiObjectArg[];
461
461
  typeArgs?: any[];
462
+ txBlock?: SuiTxBlock;
462
463
  };
463
464
  type ScallopSuiKitParams = {
464
465
  suiKit?: SuiKit;
@@ -512,7 +513,7 @@ declare class ScallopSuiKit extends ScallopQueryClient {
512
513
  * @param txBlock
513
514
  * @returns Promise<DevInspectResults>
514
515
  */
515
- queryInspectTxn({ queryTarget, args, typeArgs, }: QueryInspectTxnParams): Promise<DevInspectResults | null>;
516
+ queryInspectTxn({ queryTarget, args, typeArgs, txBlock, }: QueryInspectTxnParams): Promise<DevInspectResults | null>;
516
517
  }
517
518
 
518
519
  type ScallopQueryParams = {
@@ -1856,6 +1857,7 @@ type CoreNormalMethods = {
1856
1857
  repay: (obligation: SuiObjectArg, coin: SuiObjectArg, poolCoinName: string) => void;
1857
1858
  borrowFlashLoan: (amount: number | SuiTxArg, poolCoinName: string) => TransactionResult;
1858
1859
  repayFlashLoan: (coin: SuiObjectArg, loan: SuiObjectArg, poolCoinName: string) => void;
1860
+ liquidate: (obligation: SuiObjectArg, coin: SuiObjectArg, debtCoinName: string, collateralCoinName: string) => [NestedResult, NestedResult];
1859
1861
  };
1860
1862
  type CoreQuickMethods = {
1861
1863
  addCollateralQuick: (amount: number, collateralCoinName: string, obligationId?: SuiObjectArg, isSponsoredTx?: boolean) => Promise<void>;
@@ -1886,6 +1888,12 @@ type CoreQuickMethods = {
1886
1888
  sponsoredFeeds?: string[];
1887
1889
  isSponsoredTx?: boolean;
1888
1890
  }) => Promise<void>;
1891
+ liquidateQuick: (amount: number, debtCoinName: string, collateralCoinName: string, obligationId: SuiObjectArg, updateOracleOptions?: {
1892
+ usePythPullModel?: boolean;
1893
+ useOnChainXOracleList?: boolean;
1894
+ sponsoredFeeds?: string[];
1895
+ isSponsoredTx?: boolean;
1896
+ }) => Promise<[NestedResult, NestedResult]>;
1889
1897
  };
1890
1898
  type SuiTxBlockWithCoreNormalMethods = SuiTxBlock & SuiTxBlockWithSpool & CoreNormalMethods;
1891
1899
  type CoreTxBlock = SuiTxBlockWithCoreNormalMethods & CoreQuickMethods;