@magmaprotocol/magma-clmm-sdk 0.5.9 → 0.5.11
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 +3 -0
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7257,7 +7257,7 @@ var LockModule = class {
|
|
|
7257
7257
|
const typeArguments = [magma_token, params.coinType];
|
|
7258
7258
|
const allCoinAsset = await this._sdk.getOwnerCoinAssets(this._sdk.senderAddress);
|
|
7259
7259
|
const coinInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(params.amount), params.coinType, false, true);
|
|
7260
|
-
const args = [tx.object(voter_id), coinInput.targetCoin, tx.object(CLOCK_ADDRESS)];
|
|
7260
|
+
const args = [tx.object(voter_id), tx.object(params.poolId), coinInput.targetCoin, tx.object(CLOCK_ADDRESS)];
|
|
7261
7261
|
tx.moveCall({
|
|
7262
7262
|
target: `${integrate.published_at}::${Voter}::add_bribe_reward`,
|
|
7263
7263
|
typeArguments,
|
|
@@ -9159,12 +9159,16 @@ var GaugeModule = class {
|
|
|
9159
9159
|
}
|
|
9160
9160
|
let res = {
|
|
9161
9161
|
emission: 0,
|
|
9162
|
-
rebase: 0
|
|
9162
|
+
rebase: 0,
|
|
9163
|
+
total_supply: 0,
|
|
9164
|
+
total_locked: 0
|
|
9163
9165
|
};
|
|
9164
9166
|
simulateRes.events?.forEach((item) => {
|
|
9165
9167
|
res = {
|
|
9166
9168
|
emission: item.parsedJson.emission,
|
|
9167
|
-
rebase: item.parsedJson.rebase
|
|
9169
|
+
rebase: item.parsedJson.rebase,
|
|
9170
|
+
total_supply: item.parsedJson.total_supply,
|
|
9171
|
+
total_locked: item.parsedJson.total_locked
|
|
9168
9172
|
};
|
|
9169
9173
|
});
|
|
9170
9174
|
return res;
|