@magmaprotocol/magma-clmm-sdk 0.5.10 → 0.5.12
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 +1 -0
- 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.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -7462,7 +7462,7 @@ var LockModule = class {
|
|
|
7462
7462
|
const typeArguments = [magma_token, params.coinType];
|
|
7463
7463
|
const allCoinAsset = await this._sdk.getOwnerCoinAssets(this._sdk.senderAddress);
|
|
7464
7464
|
const coinInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(params.amount), params.coinType, false, true);
|
|
7465
|
-
const args = [tx.object(voter_id), coinInput.targetCoin, tx.object(CLOCK_ADDRESS)];
|
|
7465
|
+
const args = [tx.object(voter_id), tx.object(params.poolId), coinInput.targetCoin, tx.object(CLOCK_ADDRESS)];
|
|
7466
7466
|
tx.moveCall({
|
|
7467
7467
|
target: `${integrate.published_at}::${Voter}::add_bribe_reward`,
|
|
7468
7468
|
typeArguments,
|
|
@@ -9338,7 +9338,7 @@ var GaugeModule = class {
|
|
|
9338
9338
|
}
|
|
9339
9339
|
const type = getObjectType(item);
|
|
9340
9340
|
const poolTypeFields = extractStructTagFromType(type);
|
|
9341
|
-
poolCoins.set(
|
|
9341
|
+
poolCoins.set(item.data.objectId, poolTypeFields.type_arguments);
|
|
9342
9342
|
});
|
|
9343
9343
|
return poolCoins;
|
|
9344
9344
|
}
|