@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 +1 -0
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2973,7 +2973,6 @@ var _TransactionUtil = class {
|
|
|
2973
2973
|
// public fun increase_unlock_time<T>(self: &mut VotingEscrow<T>, lock: &mut Lock, lock_duration: u64, clock: &Clock, ctx: &mut TxContext) {
|
|
2974
2974
|
static buildIncreaseUnlockTimeTransaction(sdk, params) {
|
|
2975
2975
|
const tx = new Transaction();
|
|
2976
|
-
tx.setGasBudget(1e8);
|
|
2977
2976
|
tx.setSender(sdk.senderAddress);
|
|
2978
2977
|
const oneDay = 24 * 60 * 60;
|
|
2979
2978
|
const newLockDuration = Math.ceil((params.newLockEndAt - Date.now() / 1e3) / oneDay);
|
|
@@ -3134,7 +3133,6 @@ var _TransactionUtil = class {
|
|
|
3134
3133
|
static buildClaimAndLockRebases(sdk, params) {
|
|
3135
3134
|
const tx = new Transaction();
|
|
3136
3135
|
tx.setSender(sdk.senderAddress);
|
|
3137
|
-
tx.setGasBudget(5e8);
|
|
3138
3136
|
const { integrate } = sdk.sdkOptions;
|
|
3139
3137
|
const { voting_escrow_id, magma_token, reward_distributor_id } = getPackagerConfigs(sdk.sdkOptions.magma_config);
|
|
3140
3138
|
const typeArguments = [magma_token];
|
|
@@ -3170,7 +3168,6 @@ var _TransactionUtil = class {
|
|
|
3170
3168
|
}
|
|
3171
3169
|
static buildClaimVotingBribe(sdk, locks, incentive_tokens) {
|
|
3172
3170
|
const tx = new Transaction();
|
|
3173
|
-
tx.setGasBudget(5e8);
|
|
3174
3171
|
tx.setSender(sdk.senderAddress);
|
|
3175
3172
|
const { integrate, distribution } = sdk.sdkOptions;
|
|
3176
3173
|
const { voting_escrow_id, magma_token, voter_id } = getPackagerConfigs(sdk.sdkOptions.magma_config);
|
|
@@ -7296,6 +7293,12 @@ var LockModule = class {
|
|
|
7296
7293
|
}
|
|
7297
7294
|
return TransactionUtil.buildClaimAndLockRebases(this.sdk, params);
|
|
7298
7295
|
}
|
|
7296
|
+
async burnLockTransactionPayload(lockId) {
|
|
7297
|
+
if (this._sdk.senderAddress.length === 0) {
|
|
7298
|
+
throw Error("this config sdk senderAddress is empty");
|
|
7299
|
+
}
|
|
7300
|
+
return TransactionUtil.buildBurnLockTransaction(this.sdk, lockId);
|
|
7301
|
+
}
|
|
7299
7302
|
async pokePayload(params) {
|
|
7300
7303
|
if (this._sdk.senderAddress.length === 0) {
|
|
7301
7304
|
throw Error("this config sdk senderAddress is empty");
|
|
@@ -9396,7 +9399,6 @@ var GaugeModule = class {
|
|
|
9396
9399
|
const poolGauger = /* @__PURE__ */ new Map();
|
|
9397
9400
|
simulateRes.events?.forEach((item) => {
|
|
9398
9401
|
const { gauges } = item.parsedJson;
|
|
9399
|
-
console.log("parsedJson", item.parsedJson);
|
|
9400
9402
|
item.parsedJson.pools.map((pool, index) => {
|
|
9401
9403
|
poolGauger.set(pool, gauges[index]);
|
|
9402
9404
|
});
|