@ferra-labs/damm 1.0.3 → 1.0.5
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.js +11 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5739,8 +5739,8 @@ var _PositionModule = class _PositionModule {
|
|
|
5739
5739
|
"InvalidSendAddress" /* InvalidSendAddress */
|
|
5740
5740
|
);
|
|
5741
5741
|
}
|
|
5742
|
-
asUintN2(BigInt(params.tick_lower)).toString();
|
|
5743
|
-
asUintN2(BigInt(params.tick_upper)).toString();
|
|
5742
|
+
const tick_lower = asUintN2(BigInt(params.tick_lower)).toString();
|
|
5743
|
+
const tick_upper = asUintN2(BigInt(params.tick_upper)).toString();
|
|
5744
5744
|
const typeArguments = [params.coinTypeA, params.coinTypeB];
|
|
5745
5745
|
tx = tx || new Transaction();
|
|
5746
5746
|
const needOpenPosition = !isValidSuiObjectId(params.pos_id);
|
|
@@ -5777,6 +5777,8 @@ var _PositionModule = class _PositionModule {
|
|
|
5777
5777
|
primaryCoinBInputs.targetCoin,
|
|
5778
5778
|
tx.pure.u64(params.max_amount_a),
|
|
5779
5779
|
tx.pure.u64(params.max_amount_b),
|
|
5780
|
+
tx.pure.u32(Number(tick_lower)),
|
|
5781
|
+
tx.pure.u32(Number(tick_upper)),
|
|
5780
5782
|
tx.pure.u128(params.delta_liquidity),
|
|
5781
5783
|
tx.object(CLOCK_ADDRESS)
|
|
5782
5784
|
]
|
|
@@ -8403,9 +8405,9 @@ var main_default = FerraDammSDK;
|
|
|
8403
8405
|
// src/config/mainnet.ts
|
|
8404
8406
|
var SDKConfig = {
|
|
8405
8407
|
dammConfig: {
|
|
8406
|
-
pools_id: "
|
|
8407
|
-
global_config_id: "
|
|
8408
|
-
global_rewarder_vault_id: "
|
|
8408
|
+
pools_id: "0x707ca2bee32fa27a27541831144f330dce20969258c92ac8c39f48c6682bd6eb",
|
|
8409
|
+
global_config_id: "0x9e13acd1ba33e83a5097ecb1a43c9d267af7bc4d281614f4fafd2a973bbc993a",
|
|
8410
|
+
global_rewarder_vault_id: "0x98118e92f85aecb83e36f738ee5cb906b2b6f2fb201c03fb7d898640247634c4"
|
|
8409
8411
|
}
|
|
8410
8412
|
};
|
|
8411
8413
|
var dammMainnet = {
|
|
@@ -8414,13 +8416,13 @@ var dammMainnet = {
|
|
|
8414
8416
|
address: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
8415
8417
|
},
|
|
8416
8418
|
damm_pool: {
|
|
8417
|
-
package_id: "
|
|
8418
|
-
published_at: "
|
|
8419
|
+
package_id: "0x6615ce71ab4f4a9119cc612c04a9daf77206e23201ec5efedd6bf873b2a16fd2",
|
|
8420
|
+
published_at: "0x6615ce71ab4f4a9119cc612c04a9daf77206e23201ec5efedd6bf873b2a16fd2",
|
|
8419
8421
|
config: SDKConfig.dammConfig
|
|
8420
8422
|
},
|
|
8421
8423
|
integrate: {
|
|
8422
|
-
package_id: "
|
|
8423
|
-
published_at: "
|
|
8424
|
+
package_id: "0x1b6fe2c87cde17447fb09ea9af03f52f367118f3e3c17a108ff2d3c699b806bd",
|
|
8425
|
+
published_at: "0x1b6fe2c87cde17447fb09ea9af03f52f367118f3e3c17a108ff2d3c699b806bd"
|
|
8424
8426
|
},
|
|
8425
8427
|
swapCountUrl: "https://api.ferra.xyz/damm/swap/pools"
|
|
8426
8428
|
};
|