@cetusprotocol/sui-clmm-sdk 1.2.4 → 1.2.6

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.
@@ -29,8 +29,6 @@ Use `sdk.Pool.createPoolTransactionPayload()` to create a pool.
29
29
  - `fix_amount_a`: Boolean value - true means fixed coin A amount, false means fixed coin B amount.
30
30
  - `tick_lower`: The index of the lower tick boundary.
31
31
  - `tick_upper`: The index of the upper tick boundary.
32
- - `metadata_a`: The coin metadata ID of coin A.
33
- - `metadata_b`: The coin metadata ID of coin B.
34
32
 
35
33
  #### Optional Parameters
36
34
 
@@ -102,11 +100,6 @@ const res = ClmmPoolUtil.estLiquidityAndCoinAmountFromOneAmounts(
102
100
  const amount_a = fix_amount_a ? fix_coin_amount.toNumber() : res.coin_amount_limit_a.toNumber()
103
101
  const amount_b = fix_amount_a ? res.coin_amount_b.toNumber() : fix_coin_amount.toNumber()
104
102
 
105
- const coin_type_a = '0x3cfe7b9f6106808a8178ebd2d5ae6656cd0ccec15d33e63fd857c180bde8da75::coin:CetusUSDT'
106
- const coin_type_b = '0x3cfe7b9f6106808a8178ebd2d5ae6656cd0ccec15d33e63fd857c180bde8da75::coin::CetusUSDC'
107
-
108
- const coin_metadata_a_id = await suiClient.fetchCoinMetadataId({coinType: coin_type_a})
109
- const coin_metadata_b_id = await suiClient.fetchCoinMetadataId({coinType: coin_type_b})
110
103
 
111
104
  // Build createPoolPayload
112
105
  const create_pool_payload = sdk.Pool.createPoolPayload({
@@ -120,8 +113,6 @@ const create_pool_payload = sdk.Pool.createPoolPayload({
120
113
  fix_amount_a,
121
114
  tick_lower,
122
115
  tick_upper,
123
- metadata_a: coin_metadata_a_id,
124
- metadata_b: coin_metadata_b_id,
125
116
  })
126
117
  const send_key_pair = 'THE_KEY_PAIR_GENERATED_BY_YOUR_PRIVATE_KEY'
127
118
  const transfer_txn = await sdk.FullClient.executeTx(send_key_pair, tx, true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cetusprotocol/sui-clmm-sdk",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "SDK for cetus clmm",
5
5
  "typings": "dist/index.d.ts",
6
6
  "main": "dist/index.js",