@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 CHANGED
@@ -3031,6 +3031,7 @@ type ALockSummary = {
3031
3031
  voting_power: string;
3032
3032
  };
3033
3033
  type AddBribeReward = {
3034
+ poolId: string;
3034
3035
  amount: string;
3035
3036
  coinType: string;
3036
3037
  };
@@ -3303,6 +3304,8 @@ type WithdrawPosition = {
3303
3304
  type EpochEmission = {
3304
3305
  emission: number | string;
3305
3306
  rebase: number | string;
3307
+ total_supply: number | string;
3308
+ total_locked: number | string;
3306
3309
  };
3307
3310
  declare class GaugeModule implements IModule {
3308
3311
  protected _sdk: MagmaClmmSDK;
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,
@@ -9362,12 +9362,16 @@ var GaugeModule = class {
9362
9362
  }
9363
9363
  let res = {
9364
9364
  emission: 0,
9365
- rebase: 0
9365
+ rebase: 0,
9366
+ total_supply: 0,
9367
+ total_locked: 0
9366
9368
  };
9367
9369
  simulateRes.events?.forEach((item) => {
9368
9370
  res = {
9369
9371
  emission: item.parsedJson.emission,
9370
- rebase: item.parsedJson.rebase
9372
+ rebase: item.parsedJson.rebase,
9373
+ total_supply: item.parsedJson.total_supply,
9374
+ total_locked: item.parsedJson.total_locked
9371
9375
  };
9372
9376
  });
9373
9377
  return res;