@magmaprotocol/magma-clmm-sdk 0.5.13 → 0.5.14
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9078,7 +9078,7 @@ var GaugeModule = class {
|
|
|
9078
9078
|
const tx = new Transaction11();
|
|
9079
9079
|
const { integrate, simulationAccount } = this.sdk.sdkOptions;
|
|
9080
9080
|
const { magma_token, voter_id } = getPackagerConfigs(this.sdk.sdkOptions.magma_config);
|
|
9081
|
-
const typeArguments = [
|
|
9081
|
+
const typeArguments = [poolCoinA, poolCoinB, magma_token];
|
|
9082
9082
|
const args = [tx.object(voter_id), tx.object(gauger), tx.object(pool), tx.pure.address(userAddr), tx.object(CLOCK_ADDRESS)];
|
|
9083
9083
|
tx.moveCall({
|
|
9084
9084
|
target: `${integrate.published_at}::${Gauge}::user_staked_position_infos`,
|
|
@@ -9090,7 +9090,7 @@ var GaugeModule = class {
|
|
|
9090
9090
|
sender: simulationAccount.address
|
|
9091
9091
|
});
|
|
9092
9092
|
if (simulateRes.error != null) {
|
|
9093
|
-
throw new Error(`
|
|
9093
|
+
throw new Error(`user_staked_position_infos error code: ${simulateRes.error ?? "unknown error"}`);
|
|
9094
9094
|
}
|
|
9095
9095
|
const res = [];
|
|
9096
9096
|
simulateRes.events?.forEach((item) => {
|