@lagoon-protocol/v0-core 0.18.2 → 0.18.4
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/cjs/index.cjs +29 -10
- package/dist/esm/index.js +29 -10
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/addresses.d.ts +6 -0
- package/dist/types/addresses.d.ts.map +1 -1
- package/dist/types/chain.d.ts +13 -1
- package/dist/types/chain.d.ts.map +1 -1
- package/dist/types/events/Log.d.ts +1 -1
- package/dist/types/events/Log.d.ts.map +1 -1
- package/dist/types/events/vault/NewTotalAssetsUpdated.d.ts +3 -1
- package/dist/types/events/vault/NewTotalAssetsUpdated.d.ts.map +1 -1
- package/dist/types/events/vault/RatesUpdated.d.ts +3 -3
- package/dist/types/events/vault/RatesUpdated.d.ts.map +1 -1
- package/dist/types/events/vault/SettleDeposit.d.ts +3 -3
- package/dist/types/events/vault/SettleDeposit.d.ts.map +1 -1
- package/dist/types/events/vault/SettleRedeem.d.ts +3 -3
- package/dist/types/events/vault/SettleRedeem.d.ts.map +1 -1
- package/dist/types/events/vault/TotalAssetsUpdated.d.ts +3 -1
- package/dist/types/events/vault/TotalAssetsUpdated.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -2795,6 +2795,7 @@ var ChainId;
|
|
|
2795
2795
|
ChainId2[ChainId2["PlasmaMainnet"] = 9745] = "PlasmaMainnet";
|
|
2796
2796
|
ChainId2[ChainId2["MonadMainnet"] = 143] = "MonadMainnet";
|
|
2797
2797
|
ChainId2[ChainId2["SeiMainnet"] = 1329] = "SeiMainnet";
|
|
2798
|
+
ChainId2[ChainId2["HemiMainnet"] = 43111] = "HemiMainnet";
|
|
2798
2799
|
})(ChainId ||= {});
|
|
2799
2800
|
var ChainUtils;
|
|
2800
2801
|
((ChainUtils) => {
|
|
@@ -2943,6 +2944,13 @@ var ChainUtils;
|
|
|
2943
2944
|
nativeCurrency: { name: "MON", symbol: "MON", decimals: 18 },
|
|
2944
2945
|
explorerUrl: "https://monadvision.com/",
|
|
2945
2946
|
identifier: "monad"
|
|
2947
|
+
},
|
|
2948
|
+
[43111 /* HemiMainnet */]: {
|
|
2949
|
+
name: "Hemi",
|
|
2950
|
+
id: 43111 /* HemiMainnet */,
|
|
2951
|
+
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
2952
|
+
explorerUrl: "https://explorer.hemi.xyz",
|
|
2953
|
+
identifier: "hemi"
|
|
2946
2954
|
}
|
|
2947
2955
|
};
|
|
2948
2956
|
})(ChainUtils ||= {});
|
|
@@ -3080,6 +3088,12 @@ var addresses = {
|
|
|
3080
3088
|
v0_5_0: "0xBB2dcC67A94946400a605F2a97933471bE8BC538",
|
|
3081
3089
|
wrappedNative: "0x4200000000000000000000000000000000000006",
|
|
3082
3090
|
optinFactory: "0xA8E0684887b9475f8942DF6a89bEBa5B25219632"
|
|
3091
|
+
},
|
|
3092
|
+
[43111 /* HemiMainnet */]: {
|
|
3093
|
+
feeRegistry: "0x35723a53cCB5AdecFBcf50Cd1b190e15D896c389",
|
|
3094
|
+
v0_5_0: "0xE35901b2a7D8d38A0E49D9BC9dE7F4f9dF31Cc6d",
|
|
3095
|
+
wrappedNative: "0x4200000000000000000000000000000000000006",
|
|
3096
|
+
optinFactory: "0xB457e9C025A8Af99E32b03668e34f80D20A71d2C"
|
|
3083
3097
|
}
|
|
3084
3098
|
};
|
|
3085
3099
|
// src/utils.ts
|
|
@@ -3281,12 +3295,15 @@ class Initialized extends Log {
|
|
|
3281
3295
|
class NewTotalAssetsUpdated extends Log {
|
|
3282
3296
|
name = "NewTotalAssetsUpdated";
|
|
3283
3297
|
totalAssets;
|
|
3298
|
+
totalSupply;
|
|
3284
3299
|
constructor({
|
|
3285
3300
|
totalAssets,
|
|
3301
|
+
totalSupply,
|
|
3286
3302
|
...args
|
|
3287
3303
|
}) {
|
|
3288
3304
|
super(args);
|
|
3289
3305
|
this.totalAssets = BigInt(totalAssets);
|
|
3306
|
+
this.totalSupply = totalSupply ? BigInt(totalSupply) : null;
|
|
3290
3307
|
}
|
|
3291
3308
|
}
|
|
3292
3309
|
// src/events/vault/OperatorSet.ts
|
|
@@ -3353,17 +3370,17 @@ class Paused extends Log {
|
|
|
3353
3370
|
class RatesUpdated extends Log {
|
|
3354
3371
|
name = "RatesUpdated";
|
|
3355
3372
|
oldRates;
|
|
3356
|
-
|
|
3373
|
+
newRates;
|
|
3357
3374
|
timestamp;
|
|
3358
3375
|
constructor({
|
|
3359
3376
|
oldRates,
|
|
3360
|
-
|
|
3377
|
+
newRates,
|
|
3361
3378
|
timestamp,
|
|
3362
3379
|
...args
|
|
3363
3380
|
}) {
|
|
3364
3381
|
super(args);
|
|
3365
3382
|
this.oldRates = oldRates;
|
|
3366
|
-
this.
|
|
3383
|
+
this.newRates = newRates;
|
|
3367
3384
|
this.timestamp = BigInt(timestamp);
|
|
3368
3385
|
}
|
|
3369
3386
|
}
|
|
@@ -3416,14 +3433,14 @@ class Referral extends Log {
|
|
|
3416
3433
|
class SettleDeposit extends Log {
|
|
3417
3434
|
name = "SettleDeposit";
|
|
3418
3435
|
epochId;
|
|
3419
|
-
|
|
3436
|
+
settledId;
|
|
3420
3437
|
totalAssets;
|
|
3421
3438
|
totalSupply;
|
|
3422
3439
|
assetsDeposited;
|
|
3423
3440
|
sharesMinted;
|
|
3424
3441
|
constructor({
|
|
3425
3442
|
epochId,
|
|
3426
|
-
|
|
3443
|
+
settledId,
|
|
3427
3444
|
totalAssets,
|
|
3428
3445
|
totalSupply,
|
|
3429
3446
|
assetsDeposited,
|
|
@@ -3432,7 +3449,7 @@ class SettleDeposit extends Log {
|
|
|
3432
3449
|
}) {
|
|
3433
3450
|
super(args);
|
|
3434
3451
|
this.epochId = epochId;
|
|
3435
|
-
this.
|
|
3452
|
+
this.settledId = settledId;
|
|
3436
3453
|
this.totalAssets = BigInt(totalAssets);
|
|
3437
3454
|
this.totalSupply = BigInt(totalSupply);
|
|
3438
3455
|
this.assetsDeposited = BigInt(assetsDeposited);
|
|
@@ -3443,14 +3460,14 @@ class SettleDeposit extends Log {
|
|
|
3443
3460
|
class SettleRedeem extends Log {
|
|
3444
3461
|
name = "SettleRedeem";
|
|
3445
3462
|
epochId;
|
|
3446
|
-
|
|
3463
|
+
settledId;
|
|
3447
3464
|
totalAssets;
|
|
3448
3465
|
totalSupply;
|
|
3449
3466
|
assetsWithdrawed;
|
|
3450
3467
|
sharesBurned;
|
|
3451
3468
|
constructor({
|
|
3452
3469
|
epochId,
|
|
3453
|
-
|
|
3470
|
+
settledId,
|
|
3454
3471
|
totalAssets,
|
|
3455
3472
|
totalSupply,
|
|
3456
3473
|
assetsWithdrawed,
|
|
@@ -3459,7 +3476,7 @@ class SettleRedeem extends Log {
|
|
|
3459
3476
|
}) {
|
|
3460
3477
|
super(args);
|
|
3461
3478
|
this.epochId = epochId;
|
|
3462
|
-
this.
|
|
3479
|
+
this.settledId = settledId;
|
|
3463
3480
|
this.totalAssets = BigInt(totalAssets);
|
|
3464
3481
|
this.totalSupply = BigInt(totalSupply);
|
|
3465
3482
|
this.assetsWithdrawed = BigInt(assetsWithdrawed);
|
|
@@ -3497,9 +3514,11 @@ class TotalAssetsLifespanUpdated extends Log {
|
|
|
3497
3514
|
class TotalAssetsUpdated extends Log {
|
|
3498
3515
|
name = "TotalAssetsUpdated";
|
|
3499
3516
|
totalAssets;
|
|
3500
|
-
|
|
3517
|
+
totalSupply;
|
|
3518
|
+
constructor({ totalAssets, totalSupply, ...args }) {
|
|
3501
3519
|
super(args);
|
|
3502
3520
|
this.totalAssets = BigInt(totalAssets);
|
|
3521
|
+
this.totalSupply = totalSupply ? BigInt(totalSupply) : null;
|
|
3503
3522
|
}
|
|
3504
3523
|
}
|
|
3505
3524
|
// src/events/vault/Transfer.ts
|
package/dist/esm/index.js
CHANGED
|
@@ -2700,6 +2700,7 @@ var ChainId;
|
|
|
2700
2700
|
ChainId2[ChainId2["PlasmaMainnet"] = 9745] = "PlasmaMainnet";
|
|
2701
2701
|
ChainId2[ChainId2["MonadMainnet"] = 143] = "MonadMainnet";
|
|
2702
2702
|
ChainId2[ChainId2["SeiMainnet"] = 1329] = "SeiMainnet";
|
|
2703
|
+
ChainId2[ChainId2["HemiMainnet"] = 43111] = "HemiMainnet";
|
|
2703
2704
|
})(ChainId ||= {});
|
|
2704
2705
|
var ChainUtils;
|
|
2705
2706
|
((ChainUtils) => {
|
|
@@ -2848,6 +2849,13 @@ var ChainUtils;
|
|
|
2848
2849
|
nativeCurrency: { name: "MON", symbol: "MON", decimals: 18 },
|
|
2849
2850
|
explorerUrl: "https://monadvision.com/",
|
|
2850
2851
|
identifier: "monad"
|
|
2852
|
+
},
|
|
2853
|
+
[43111 /* HemiMainnet */]: {
|
|
2854
|
+
name: "Hemi",
|
|
2855
|
+
id: 43111 /* HemiMainnet */,
|
|
2856
|
+
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
2857
|
+
explorerUrl: "https://explorer.hemi.xyz",
|
|
2858
|
+
identifier: "hemi"
|
|
2851
2859
|
}
|
|
2852
2860
|
};
|
|
2853
2861
|
})(ChainUtils ||= {});
|
|
@@ -2985,6 +2993,12 @@ var addresses = {
|
|
|
2985
2993
|
v0_5_0: "0xBB2dcC67A94946400a605F2a97933471bE8BC538",
|
|
2986
2994
|
wrappedNative: "0x4200000000000000000000000000000000000006",
|
|
2987
2995
|
optinFactory: "0xA8E0684887b9475f8942DF6a89bEBa5B25219632"
|
|
2996
|
+
},
|
|
2997
|
+
[43111 /* HemiMainnet */]: {
|
|
2998
|
+
feeRegistry: "0x35723a53cCB5AdecFBcf50Cd1b190e15D896c389",
|
|
2999
|
+
v0_5_0: "0xE35901b2a7D8d38A0E49D9BC9dE7F4f9dF31Cc6d",
|
|
3000
|
+
wrappedNative: "0x4200000000000000000000000000000000000006",
|
|
3001
|
+
optinFactory: "0xB457e9C025A8Af99E32b03668e34f80D20A71d2C"
|
|
2988
3002
|
}
|
|
2989
3003
|
};
|
|
2990
3004
|
// src/utils.ts
|
|
@@ -3186,12 +3200,15 @@ class Initialized extends Log {
|
|
|
3186
3200
|
class NewTotalAssetsUpdated extends Log {
|
|
3187
3201
|
name = "NewTotalAssetsUpdated";
|
|
3188
3202
|
totalAssets;
|
|
3203
|
+
totalSupply;
|
|
3189
3204
|
constructor({
|
|
3190
3205
|
totalAssets,
|
|
3206
|
+
totalSupply,
|
|
3191
3207
|
...args
|
|
3192
3208
|
}) {
|
|
3193
3209
|
super(args);
|
|
3194
3210
|
this.totalAssets = BigInt(totalAssets);
|
|
3211
|
+
this.totalSupply = totalSupply ? BigInt(totalSupply) : null;
|
|
3195
3212
|
}
|
|
3196
3213
|
}
|
|
3197
3214
|
// src/events/vault/OperatorSet.ts
|
|
@@ -3258,17 +3275,17 @@ class Paused extends Log {
|
|
|
3258
3275
|
class RatesUpdated extends Log {
|
|
3259
3276
|
name = "RatesUpdated";
|
|
3260
3277
|
oldRates;
|
|
3261
|
-
|
|
3278
|
+
newRates;
|
|
3262
3279
|
timestamp;
|
|
3263
3280
|
constructor({
|
|
3264
3281
|
oldRates,
|
|
3265
|
-
|
|
3282
|
+
newRates,
|
|
3266
3283
|
timestamp,
|
|
3267
3284
|
...args
|
|
3268
3285
|
}) {
|
|
3269
3286
|
super(args);
|
|
3270
3287
|
this.oldRates = oldRates;
|
|
3271
|
-
this.
|
|
3288
|
+
this.newRates = newRates;
|
|
3272
3289
|
this.timestamp = BigInt(timestamp);
|
|
3273
3290
|
}
|
|
3274
3291
|
}
|
|
@@ -3321,14 +3338,14 @@ class Referral extends Log {
|
|
|
3321
3338
|
class SettleDeposit extends Log {
|
|
3322
3339
|
name = "SettleDeposit";
|
|
3323
3340
|
epochId;
|
|
3324
|
-
|
|
3341
|
+
settledId;
|
|
3325
3342
|
totalAssets;
|
|
3326
3343
|
totalSupply;
|
|
3327
3344
|
assetsDeposited;
|
|
3328
3345
|
sharesMinted;
|
|
3329
3346
|
constructor({
|
|
3330
3347
|
epochId,
|
|
3331
|
-
|
|
3348
|
+
settledId,
|
|
3332
3349
|
totalAssets,
|
|
3333
3350
|
totalSupply,
|
|
3334
3351
|
assetsDeposited,
|
|
@@ -3337,7 +3354,7 @@ class SettleDeposit extends Log {
|
|
|
3337
3354
|
}) {
|
|
3338
3355
|
super(args);
|
|
3339
3356
|
this.epochId = epochId;
|
|
3340
|
-
this.
|
|
3357
|
+
this.settledId = settledId;
|
|
3341
3358
|
this.totalAssets = BigInt(totalAssets);
|
|
3342
3359
|
this.totalSupply = BigInt(totalSupply);
|
|
3343
3360
|
this.assetsDeposited = BigInt(assetsDeposited);
|
|
@@ -3348,14 +3365,14 @@ class SettleDeposit extends Log {
|
|
|
3348
3365
|
class SettleRedeem extends Log {
|
|
3349
3366
|
name = "SettleRedeem";
|
|
3350
3367
|
epochId;
|
|
3351
|
-
|
|
3368
|
+
settledId;
|
|
3352
3369
|
totalAssets;
|
|
3353
3370
|
totalSupply;
|
|
3354
3371
|
assetsWithdrawed;
|
|
3355
3372
|
sharesBurned;
|
|
3356
3373
|
constructor({
|
|
3357
3374
|
epochId,
|
|
3358
|
-
|
|
3375
|
+
settledId,
|
|
3359
3376
|
totalAssets,
|
|
3360
3377
|
totalSupply,
|
|
3361
3378
|
assetsWithdrawed,
|
|
@@ -3364,7 +3381,7 @@ class SettleRedeem extends Log {
|
|
|
3364
3381
|
}) {
|
|
3365
3382
|
super(args);
|
|
3366
3383
|
this.epochId = epochId;
|
|
3367
|
-
this.
|
|
3384
|
+
this.settledId = settledId;
|
|
3368
3385
|
this.totalAssets = BigInt(totalAssets);
|
|
3369
3386
|
this.totalSupply = BigInt(totalSupply);
|
|
3370
3387
|
this.assetsWithdrawed = BigInt(assetsWithdrawed);
|
|
@@ -3402,9 +3419,11 @@ class TotalAssetsLifespanUpdated extends Log {
|
|
|
3402
3419
|
class TotalAssetsUpdated extends Log {
|
|
3403
3420
|
name = "TotalAssetsUpdated";
|
|
3404
3421
|
totalAssets;
|
|
3405
|
-
|
|
3422
|
+
totalSupply;
|
|
3423
|
+
constructor({ totalAssets, totalSupply, ...args }) {
|
|
3406
3424
|
super(args);
|
|
3407
3425
|
this.totalAssets = BigInt(totalAssets);
|
|
3426
|
+
this.totalSupply = totalSupply ? BigInt(totalSupply) : null;
|
|
3408
3427
|
}
|
|
3409
3428
|
}
|
|
3410
3429
|
// src/events/vault/Transfer.ts
|