@alephium/powfi-sdk 0.0.1-rc.30 → 0.0.1-rc.32

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/lib/index.d.mts CHANGED
@@ -192,8 +192,9 @@ declare class CpmmModule extends ModuleBase {
192
192
  /** Fetches pool state then computes the token amounts claimable for a given liquidity position. */
193
193
  computeClaimableAmounts(tokenAId: string, tokenBId: string, liquidityBalance: bigint): Promise<CpmmClaimableAmounts>;
194
194
  /** Creates a new CPMM pool on-chain, optionally seeded with initial liquidity. */
195
- createPool(params: CpmmCreatePoolRequest): Promise<ExecuteScriptResult & {
195
+ createPool(params: CpmmCreatePoolRequest): Promise<{
196
196
  poolId: string;
197
+ result: ExecuteScriptResult;
197
198
  }>;
198
199
  getCollectProtocolFeesData(tokenAId: string, tokenBId: string): string;
199
200
  collectProtocolFees(params: CpmmCollectProtocolFeesRequest): Promise<ExecuteScriptResult>;
@@ -4789,8 +4790,8 @@ declare class ClmmModule extends ModuleBase {
4789
4790
  * Tokens and ticks are sorted internally to match on-chain ordering.
4790
4791
  */
4791
4792
  createPool(configIndex: bigint, token0: string, token1: string, rewardToken: string, tick: bigint, amount0: bigint, amount1: bigint, tickLower: bigint, tickUpper: bigint, dustAmount?: bigint): Promise<{
4792
- poolAddress: string;
4793
- result: SignExecuteScriptTxResult;
4793
+ poolId: string;
4794
+ result: ExecuteScriptResult;
4794
4795
  }>;
4795
4796
  /** Adds liquidity to a tick range, minting a new position or updating an existing one. */
4796
4797
  addLiquidity(p: ClmmAddLiquidityRequest): Promise<{
@@ -4832,7 +4833,6 @@ declare class ClmmModule extends ModuleBase {
4832
4833
  setRewardParams(p: ClmmSetRewardParamsRequest): Promise<SignExecuteScriptTxResult>;
4833
4834
  /** Extends an existing farming reward program by adding more tokens. Admin only. */
4834
4835
  extendRewards(p: ClmmExtendRewardsRequest): Promise<SignExecuteScriptTxResult>;
4835
- private getAddLiquidityAttoAlphAmount;
4836
4836
  getCollectProtocolFeesData(token0: string, token1: string, configIndex: bigint): string;
4837
4837
  collectProtocolFees(p: ClmmCollectProtocolFeesRequest): Promise<SignExecuteScriptTxResult>;
4838
4838
  setFeeCollector(): Promise<SignExecuteScriptTxResult>;
package/lib/index.d.ts CHANGED
@@ -192,8 +192,9 @@ declare class CpmmModule extends ModuleBase {
192
192
  /** Fetches pool state then computes the token amounts claimable for a given liquidity position. */
193
193
  computeClaimableAmounts(tokenAId: string, tokenBId: string, liquidityBalance: bigint): Promise<CpmmClaimableAmounts>;
194
194
  /** Creates a new CPMM pool on-chain, optionally seeded with initial liquidity. */
195
- createPool(params: CpmmCreatePoolRequest): Promise<ExecuteScriptResult & {
195
+ createPool(params: CpmmCreatePoolRequest): Promise<{
196
196
  poolId: string;
197
+ result: ExecuteScriptResult;
197
198
  }>;
198
199
  getCollectProtocolFeesData(tokenAId: string, tokenBId: string): string;
199
200
  collectProtocolFees(params: CpmmCollectProtocolFeesRequest): Promise<ExecuteScriptResult>;
@@ -4789,8 +4790,8 @@ declare class ClmmModule extends ModuleBase {
4789
4790
  * Tokens and ticks are sorted internally to match on-chain ordering.
4790
4791
  */
4791
4792
  createPool(configIndex: bigint, token0: string, token1: string, rewardToken: string, tick: bigint, amount0: bigint, amount1: bigint, tickLower: bigint, tickUpper: bigint, dustAmount?: bigint): Promise<{
4792
- poolAddress: string;
4793
- result: SignExecuteScriptTxResult;
4793
+ poolId: string;
4794
+ result: ExecuteScriptResult;
4794
4795
  }>;
4795
4796
  /** Adds liquidity to a tick range, minting a new position or updating an existing one. */
4796
4797
  addLiquidity(p: ClmmAddLiquidityRequest): Promise<{
@@ -4832,7 +4833,6 @@ declare class ClmmModule extends ModuleBase {
4832
4833
  setRewardParams(p: ClmmSetRewardParamsRequest): Promise<SignExecuteScriptTxResult>;
4833
4834
  /** Extends an existing farming reward program by adding more tokens. Admin only. */
4834
4835
  extendRewards(p: ClmmExtendRewardsRequest): Promise<SignExecuteScriptTxResult>;
4835
- private getAddLiquidityAttoAlphAmount;
4836
4836
  getCollectProtocolFeesData(token0: string, token1: string, configIndex: bigint): string;
4837
4837
  collectProtocolFees(p: ClmmCollectProtocolFeesRequest): Promise<SignExecuteScriptTxResult>;
4838
4838
  setFeeCollector(): Promise<SignExecuteScriptTxResult>;