@magmaprotocol/magma-clmm-sdk 0.5.15 → 0.5.17
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.ts +33 -20
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7638,7 +7638,7 @@ var LockModule = class {
|
|
|
7638
7638
|
sender: simulationAccount.address
|
|
7639
7639
|
});
|
|
7640
7640
|
if (simulateRes.error != null) {
|
|
7641
|
-
throw new Error(`
|
|
7641
|
+
throw new Error(`getPoolBribeRewardTokens error code: ${simulateRes.error ?? "unknown error"}`);
|
|
7642
7642
|
}
|
|
7643
7643
|
const poolBirbeRewardTokens = /* @__PURE__ */ new Map();
|
|
7644
7644
|
simulateRes.events?.forEach((item) => {
|
|
@@ -9077,10 +9077,13 @@ var GaugeModule = class {
|
|
|
9077
9077
|
coin_type_a: coins[0],
|
|
9078
9078
|
coin_type_b: coins[1],
|
|
9079
9079
|
liquidity: info.info.liquidity,
|
|
9080
|
-
tick_lower_index: info.info.tick_lower_index.bits,
|
|
9081
|
-
tick_upper_index: info.info.tick_upper_index.bits,
|
|
9080
|
+
tick_lower_index: asIntN(BigInt(info.info.tick_lower_index.bits)),
|
|
9081
|
+
tick_upper_index: asIntN(BigInt(info.info.tick_upper_index.bits)),
|
|
9082
9082
|
pos_object_id: info.info.position_id,
|
|
9083
|
-
|
|
9083
|
+
magma_distribution_staked: info.info.magma_distribution_staked,
|
|
9084
|
+
pool: info.pool_id,
|
|
9085
|
+
earned: info.earned,
|
|
9086
|
+
name: info.name
|
|
9084
9087
|
});
|
|
9085
9088
|
});
|
|
9086
9089
|
});
|
|
@@ -9127,7 +9130,7 @@ var GaugeModule = class {
|
|
|
9127
9130
|
sender: simulationAccount.address
|
|
9128
9131
|
});
|
|
9129
9132
|
if (simulateRes.error != null) {
|
|
9130
|
-
throw new Error(`
|
|
9133
|
+
throw new Error(`getPoolGaguers error code: ${simulateRes.error ?? "unknown error"}`);
|
|
9131
9134
|
}
|
|
9132
9135
|
const poolGauger = /* @__PURE__ */ new Map();
|
|
9133
9136
|
simulateRes.events?.forEach((item) => {
|