@magmaprotocol/magma-clmm-sdk 0.5.31 → 0.5.33

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
@@ -3094,6 +3094,7 @@ declare class LockModule implements IModule {
3094
3094
  claimVotingRewardsPayload(params: ClaimFeesParams): Promise<Transaction>;
3095
3095
  claimVotingRewardsPoolsPayload(params: ClaimFeesPoolsParams): Promise<Transaction>;
3096
3096
  claimAndLockRebasesPayload(params: ClaimAndLockParams): Promise<Transaction>;
3097
+ burnLockTransactionPayload(lockId: string): Promise<Transaction>;
3097
3098
  pokePayload(params: PokeParams): Promise<Transaction>;
3098
3099
  addBribeReward(params: AddBribeReward): Promise<Transaction>;
3099
3100
  claimVotingBribe(locks: string[], incentive_tokens: string[]): Promise<Transaction>;
package/dist/index.js CHANGED
@@ -3178,7 +3178,6 @@ var _TransactionUtil = class {
3178
3178
  // public fun increase_unlock_time<T>(self: &mut VotingEscrow<T>, lock: &mut Lock, lock_duration: u64, clock: &Clock, ctx: &mut TxContext) {
3179
3179
  static buildIncreaseUnlockTimeTransaction(sdk, params) {
3180
3180
  const tx = new import_transactions.Transaction();
3181
- tx.setGasBudget(1e8);
3182
3181
  tx.setSender(sdk.senderAddress);
3183
3182
  const oneDay = 24 * 60 * 60;
3184
3183
  const newLockDuration = Math.ceil((params.newLockEndAt - Date.now() / 1e3) / oneDay);
@@ -3339,7 +3338,6 @@ var _TransactionUtil = class {
3339
3338
  static buildClaimAndLockRebases(sdk, params) {
3340
3339
  const tx = new import_transactions.Transaction();
3341
3340
  tx.setSender(sdk.senderAddress);
3342
- tx.setGasBudget(5e8);
3343
3341
  const { integrate } = sdk.sdkOptions;
3344
3342
  const { voting_escrow_id, magma_token, reward_distributor_id } = getPackagerConfigs(sdk.sdkOptions.magma_config);
3345
3343
  const typeArguments = [magma_token];
@@ -3375,7 +3373,6 @@ var _TransactionUtil = class {
3375
3373
  }
3376
3374
  static buildClaimVotingBribe(sdk, locks, incentive_tokens) {
3377
3375
  const tx = new import_transactions.Transaction();
3378
- tx.setGasBudget(5e8);
3379
3376
  tx.setSender(sdk.senderAddress);
3380
3377
  const { integrate, distribution } = sdk.sdkOptions;
3381
3378
  const { voting_escrow_id, magma_token, voter_id } = getPackagerConfigs(sdk.sdkOptions.magma_config);
@@ -7501,6 +7498,12 @@ var LockModule = class {
7501
7498
  }
7502
7499
  return TransactionUtil.buildClaimAndLockRebases(this.sdk, params);
7503
7500
  }
7501
+ async burnLockTransactionPayload(lockId) {
7502
+ if (this._sdk.senderAddress.length === 0) {
7503
+ throw Error("this config sdk senderAddress is empty");
7504
+ }
7505
+ return TransactionUtil.buildBurnLockTransaction(this.sdk, lockId);
7506
+ }
7504
7507
  async pokePayload(params) {
7505
7508
  if (this._sdk.senderAddress.length === 0) {
7506
7509
  throw Error("this config sdk senderAddress is empty");
@@ -9599,7 +9602,6 @@ var GaugeModule = class {
9599
9602
  const poolGauger = /* @__PURE__ */ new Map();
9600
9603
  simulateRes.events?.forEach((item) => {
9601
9604
  const { gauges } = item.parsedJson;
9602
- console.log("parsedJson", item.parsedJson);
9603
9605
  item.parsedJson.pools.map((pool, index) => {
9604
9606
  poolGauger.set(pool, gauges[index]);
9605
9607
  });