@scallop-io/sui-scallop-sdk 2.1.9 → 2.2.0

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
@@ -1888,7 +1888,7 @@ type VeScaNormalMethods = {
1888
1888
  splitVeSca: (veScaKey: SuiObjectArg, splitAmount: string) => TransactionResult;
1889
1889
  mergeVeSca: (targetVeScaKey: SuiObjectArg, sourceVeScaKey: SuiObjectArg) => void;
1890
1890
  };
1891
- type QuickMethodReturnType<T extends boolean> = T extends true ? void : TransactionResult | undefined;
1891
+ type QuickMethodReturnType<T extends boolean> = T extends true ? void : TransactionResult;
1892
1892
  type VeScaQuickMethods = {
1893
1893
  /**
1894
1894
  * Quick methods to automate
@@ -1906,13 +1906,41 @@ type VeScaQuickMethods = {
1906
1906
  * @param lockPeriodInDays
1907
1907
  * @param autoCheck
1908
1908
  */
1909
- lockScaQuick(amountOrCoin?: SuiObjectArg | number, lockPeriodInDays?: number, veScaKey?: SuiObjectArg, autoCheck?: boolean): Promise<void>;
1910
- extendLockPeriodQuick: (lockPeriodInDays: number, veScaKey?: SuiObjectArg, autoCheck?: boolean) => Promise<void>;
1911
- extendLockAmountQuick: (scaAmount: number, veScaKey?: SuiObjectArg, autoCheck?: boolean) => Promise<void>;
1912
- renewExpiredVeScaQuick: (scaAmount: number, lockPeriodInDays: number, veScaKey?: SuiObjectArg, autoCheck?: boolean) => Promise<void>;
1913
- redeemScaQuick: <T extends boolean>(veScaKey?: SuiObjectArg, transferSca?: T) => Promise<QuickMethodReturnType<T>>;
1914
- splitVeScaQuick: <T extends boolean>(splitAmount: string, veScaKey: string, transferVeScaKey?: T) => Promise<QuickMethodReturnType<T>>;
1915
- mergeVeScaQuick: (targetVeScaKey: string, sourceVeScaKey: string) => Promise<void>;
1909
+ lockScaQuick(params: {
1910
+ amountOrCoin?: SuiObjectArg | number;
1911
+ lockPeriodInDays?: number;
1912
+ autoCheck?: boolean;
1913
+ veScaKey?: SuiObjectData$1 | string;
1914
+ }): Promise<void>;
1915
+ extendLockPeriodQuick: (params: {
1916
+ lockPeriodInDays: number;
1917
+ autoCheck?: boolean;
1918
+ veScaKey?: SuiObjectData$1 | string;
1919
+ }) => Promise<void>;
1920
+ extendLockAmountQuick: (params: {
1921
+ scaAmount: number;
1922
+ autoCheck?: boolean;
1923
+ veScaKey?: SuiObjectData$1 | string;
1924
+ }) => Promise<void>;
1925
+ renewExpiredVeScaQuick: (params: {
1926
+ scaAmount: number;
1927
+ lockPeriodInDays: number;
1928
+ autoCheck?: boolean;
1929
+ veScaKey?: SuiObjectData$1 | string;
1930
+ }) => Promise<void>;
1931
+ redeemScaQuick: <T extends boolean>(params: {
1932
+ veScaKey?: SuiObjectData$1 | string;
1933
+ transferSca?: T;
1934
+ }) => Promise<QuickMethodReturnType<T> | undefined>;
1935
+ splitVeScaQuick: <T extends boolean>(params: {
1936
+ splitAmount: string;
1937
+ veScaKey: string;
1938
+ transferVeScaKey?: T;
1939
+ }) => Promise<QuickMethodReturnType<T> | undefined>;
1940
+ mergeVeScaQuick: (params: {
1941
+ targetVeScaKey: string;
1942
+ sourceVeScaKey: string;
1943
+ }) => Promise<void>;
1916
1944
  };
1917
1945
  type SuiTxBlockWithVeScaNormalMethods = SuiTxBlock & VeScaNormalMethods;
1918
1946
  type VeScaTxBlock = SuiTxBlockWithVeScaNormalMethods & VeScaQuickMethods;
package/dist/index.d.ts CHANGED
@@ -1888,7 +1888,7 @@ type VeScaNormalMethods = {
1888
1888
  splitVeSca: (veScaKey: SuiObjectArg, splitAmount: string) => TransactionResult;
1889
1889
  mergeVeSca: (targetVeScaKey: SuiObjectArg, sourceVeScaKey: SuiObjectArg) => void;
1890
1890
  };
1891
- type QuickMethodReturnType<T extends boolean> = T extends true ? void : TransactionResult | undefined;
1891
+ type QuickMethodReturnType<T extends boolean> = T extends true ? void : TransactionResult;
1892
1892
  type VeScaQuickMethods = {
1893
1893
  /**
1894
1894
  * Quick methods to automate
@@ -1906,13 +1906,41 @@ type VeScaQuickMethods = {
1906
1906
  * @param lockPeriodInDays
1907
1907
  * @param autoCheck
1908
1908
  */
1909
- lockScaQuick(amountOrCoin?: SuiObjectArg | number, lockPeriodInDays?: number, veScaKey?: SuiObjectArg, autoCheck?: boolean): Promise<void>;
1910
- extendLockPeriodQuick: (lockPeriodInDays: number, veScaKey?: SuiObjectArg, autoCheck?: boolean) => Promise<void>;
1911
- extendLockAmountQuick: (scaAmount: number, veScaKey?: SuiObjectArg, autoCheck?: boolean) => Promise<void>;
1912
- renewExpiredVeScaQuick: (scaAmount: number, lockPeriodInDays: number, veScaKey?: SuiObjectArg, autoCheck?: boolean) => Promise<void>;
1913
- redeemScaQuick: <T extends boolean>(veScaKey?: SuiObjectArg, transferSca?: T) => Promise<QuickMethodReturnType<T>>;
1914
- splitVeScaQuick: <T extends boolean>(splitAmount: string, veScaKey: string, transferVeScaKey?: T) => Promise<QuickMethodReturnType<T>>;
1915
- mergeVeScaQuick: (targetVeScaKey: string, sourceVeScaKey: string) => Promise<void>;
1909
+ lockScaQuick(params: {
1910
+ amountOrCoin?: SuiObjectArg | number;
1911
+ lockPeriodInDays?: number;
1912
+ autoCheck?: boolean;
1913
+ veScaKey?: SuiObjectData$1 | string;
1914
+ }): Promise<void>;
1915
+ extendLockPeriodQuick: (params: {
1916
+ lockPeriodInDays: number;
1917
+ autoCheck?: boolean;
1918
+ veScaKey?: SuiObjectData$1 | string;
1919
+ }) => Promise<void>;
1920
+ extendLockAmountQuick: (params: {
1921
+ scaAmount: number;
1922
+ autoCheck?: boolean;
1923
+ veScaKey?: SuiObjectData$1 | string;
1924
+ }) => Promise<void>;
1925
+ renewExpiredVeScaQuick: (params: {
1926
+ scaAmount: number;
1927
+ lockPeriodInDays: number;
1928
+ autoCheck?: boolean;
1929
+ veScaKey?: SuiObjectData$1 | string;
1930
+ }) => Promise<void>;
1931
+ redeemScaQuick: <T extends boolean>(params: {
1932
+ veScaKey?: SuiObjectData$1 | string;
1933
+ transferSca?: T;
1934
+ }) => Promise<QuickMethodReturnType<T> | undefined>;
1935
+ splitVeScaQuick: <T extends boolean>(params: {
1936
+ splitAmount: string;
1937
+ veScaKey: string;
1938
+ transferVeScaKey?: T;
1939
+ }) => Promise<QuickMethodReturnType<T> | undefined>;
1940
+ mergeVeScaQuick: (params: {
1941
+ targetVeScaKey: string;
1942
+ sourceVeScaKey: string;
1943
+ }) => Promise<void>;
1916
1944
  };
1917
1945
  type SuiTxBlockWithVeScaNormalMethods = SuiTxBlock & VeScaNormalMethods;
1918
1946
  type VeScaTxBlock = SuiTxBlockWithVeScaNormalMethods & VeScaQuickMethods;