@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.js
CHANGED
|
@@ -5748,8 +5748,8 @@ var _PositionModule = class _PositionModule {
|
|
|
5748
5748
|
"InvalidSendAddress" /* InvalidSendAddress */
|
|
5749
5749
|
);
|
|
5750
5750
|
}
|
|
5751
|
-
asUintN2(BigInt(params.tick_lower)).toString();
|
|
5752
|
-
asUintN2(BigInt(params.tick_upper)).toString();
|
|
5751
|
+
const tick_lower = asUintN2(BigInt(params.tick_lower)).toString();
|
|
5752
|
+
const tick_upper = asUintN2(BigInt(params.tick_upper)).toString();
|
|
5753
5753
|
const typeArguments = [params.coinTypeA, params.coinTypeB];
|
|
5754
5754
|
tx = tx || new transactions.Transaction();
|
|
5755
5755
|
const needOpenPosition = !utils.isValidSuiObjectId(params.pos_id);
|
|
@@ -5786,6 +5786,8 @@ var _PositionModule = class _PositionModule {
|
|
|
5786
5786
|
primaryCoinBInputs.targetCoin,
|
|
5787
5787
|
tx.pure.u64(params.max_amount_a),
|
|
5788
5788
|
tx.pure.u64(params.max_amount_b),
|
|
5789
|
+
tx.pure.u32(Number(tick_lower)),
|
|
5790
|
+
tx.pure.u32(Number(tick_upper)),
|
|
5789
5791
|
tx.pure.u128(params.delta_liquidity),
|
|
5790
5792
|
tx.object(CLOCK_ADDRESS)
|
|
5791
5793
|
]
|
|
@@ -8412,9 +8414,9 @@ var main_default = FerraDammSDK;
|
|
|
8412
8414
|
// src/config/mainnet.ts
|
|
8413
8415
|
var SDKConfig = {
|
|
8414
8416
|
dammConfig: {
|
|
8415
|
-
pools_id: "
|
|
8416
|
-
global_config_id: "
|
|
8417
|
-
global_rewarder_vault_id: "
|
|
8417
|
+
pools_id: "0x707ca2bee32fa27a27541831144f330dce20969258c92ac8c39f48c6682bd6eb",
|
|
8418
|
+
global_config_id: "0x9e13acd1ba33e83a5097ecb1a43c9d267af7bc4d281614f4fafd2a973bbc993a",
|
|
8419
|
+
global_rewarder_vault_id: "0x98118e92f85aecb83e36f738ee5cb906b2b6f2fb201c03fb7d898640247634c4"
|
|
8418
8420
|
}
|
|
8419
8421
|
};
|
|
8420
8422
|
var dammMainnet = {
|
|
@@ -8423,13 +8425,13 @@ var dammMainnet = {
|
|
|
8423
8425
|
address: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
8424
8426
|
},
|
|
8425
8427
|
damm_pool: {
|
|
8426
|
-
package_id: "
|
|
8427
|
-
published_at: "
|
|
8428
|
+
package_id: "0x6615ce71ab4f4a9119cc612c04a9daf77206e23201ec5efedd6bf873b2a16fd2",
|
|
8429
|
+
published_at: "0x6615ce71ab4f4a9119cc612c04a9daf77206e23201ec5efedd6bf873b2a16fd2",
|
|
8428
8430
|
config: SDKConfig.dammConfig
|
|
8429
8431
|
},
|
|
8430
8432
|
integrate: {
|
|
8431
|
-
package_id: "
|
|
8432
|
-
published_at: "
|
|
8433
|
+
package_id: "0x1b6fe2c87cde17447fb09ea9af03f52f367118f3e3c17a108ff2d3c699b806bd",
|
|
8434
|
+
published_at: "0x1b6fe2c87cde17447fb09ea9af03f52f367118f3e3c17a108ff2d3c699b806bd"
|
|
8433
8435
|
},
|
|
8434
8436
|
swapCountUrl: "https://api.ferra.xyz/damm/swap/pools"
|
|
8435
8437
|
};
|