@crypticdot/defituna-api 1.1.48 → 1.1.50
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.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +6 -3
- package/dist/index.mjs +6 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1243,6 +1243,9 @@ declare const StakingTreasury$1: z.ZodObject<{
|
|
|
1243
1243
|
usd: number;
|
|
1244
1244
|
}>;
|
|
1245
1245
|
unstakeCooldownSeconds: z.ZodNumber;
|
|
1246
|
+
isStakingEnabled: z.ZodBoolean;
|
|
1247
|
+
isUnstakingEnabled: z.ZodBoolean;
|
|
1248
|
+
isWithdrawEnabled: z.ZodBoolean;
|
|
1246
1249
|
}, "strip", z.ZodTypeAny, {
|
|
1247
1250
|
address: string;
|
|
1248
1251
|
stakedTokenMint: string;
|
|
@@ -1257,6 +1260,9 @@ declare const StakingTreasury$1: z.ZodObject<{
|
|
|
1257
1260
|
usd: number;
|
|
1258
1261
|
};
|
|
1259
1262
|
unstakeCooldownSeconds: number;
|
|
1263
|
+
isStakingEnabled: boolean;
|
|
1264
|
+
isUnstakingEnabled: boolean;
|
|
1265
|
+
isWithdrawEnabled: boolean;
|
|
1260
1266
|
}, {
|
|
1261
1267
|
address: string;
|
|
1262
1268
|
stakedTokenMint: string;
|
|
@@ -1271,6 +1277,9 @@ declare const StakingTreasury$1: z.ZodObject<{
|
|
|
1271
1277
|
usd: number;
|
|
1272
1278
|
};
|
|
1273
1279
|
unstakeCooldownSeconds: number;
|
|
1280
|
+
isStakingEnabled: boolean;
|
|
1281
|
+
isUnstakingEnabled: boolean;
|
|
1282
|
+
isWithdrawEnabled: boolean;
|
|
1274
1283
|
}>;
|
|
1275
1284
|
declare const StakingPosition$1: z.ZodObject<{
|
|
1276
1285
|
address: z.ZodString;
|
package/dist/index.d.ts
CHANGED
|
@@ -1243,6 +1243,9 @@ declare const StakingTreasury$1: z.ZodObject<{
|
|
|
1243
1243
|
usd: number;
|
|
1244
1244
|
}>;
|
|
1245
1245
|
unstakeCooldownSeconds: z.ZodNumber;
|
|
1246
|
+
isStakingEnabled: z.ZodBoolean;
|
|
1247
|
+
isUnstakingEnabled: z.ZodBoolean;
|
|
1248
|
+
isWithdrawEnabled: z.ZodBoolean;
|
|
1246
1249
|
}, "strip", z.ZodTypeAny, {
|
|
1247
1250
|
address: string;
|
|
1248
1251
|
stakedTokenMint: string;
|
|
@@ -1257,6 +1260,9 @@ declare const StakingTreasury$1: z.ZodObject<{
|
|
|
1257
1260
|
usd: number;
|
|
1258
1261
|
};
|
|
1259
1262
|
unstakeCooldownSeconds: number;
|
|
1263
|
+
isStakingEnabled: boolean;
|
|
1264
|
+
isUnstakingEnabled: boolean;
|
|
1265
|
+
isWithdrawEnabled: boolean;
|
|
1260
1266
|
}, {
|
|
1261
1267
|
address: string;
|
|
1262
1268
|
stakedTokenMint: string;
|
|
@@ -1271,6 +1277,9 @@ declare const StakingTreasury$1: z.ZodObject<{
|
|
|
1271
1277
|
usd: number;
|
|
1272
1278
|
};
|
|
1273
1279
|
unstakeCooldownSeconds: number;
|
|
1280
|
+
isStakingEnabled: boolean;
|
|
1281
|
+
isUnstakingEnabled: boolean;
|
|
1282
|
+
isWithdrawEnabled: boolean;
|
|
1274
1283
|
}>;
|
|
1275
1284
|
declare const StakingPosition$1: z.ZodObject<{
|
|
1276
1285
|
address: z.ZodString;
|
package/dist/index.js
CHANGED
|
@@ -384,7 +384,10 @@ var StakingTreasury = import_zod.z.object({
|
|
|
384
384
|
apy: import_zod.z.number(),
|
|
385
385
|
totalStaked: amountWithUsd,
|
|
386
386
|
totalReward: amountWithUsd,
|
|
387
|
-
unstakeCooldownSeconds: import_zod.z.number()
|
|
387
|
+
unstakeCooldownSeconds: import_zod.z.number(),
|
|
388
|
+
isStakingEnabled: import_zod.z.boolean(),
|
|
389
|
+
isUnstakingEnabled: import_zod.z.boolean(),
|
|
390
|
+
isWithdrawEnabled: import_zod.z.boolean()
|
|
388
391
|
});
|
|
389
392
|
var StakingPosition = import_zod.z.object({
|
|
390
393
|
address: import_zod.z.string(),
|
|
@@ -677,8 +680,8 @@ var TunaApiClient = class {
|
|
|
677
680
|
async getStakingRevenueStats(from, to) {
|
|
678
681
|
const url = this.buildURL(`stats/staking/revenue`);
|
|
679
682
|
this.appendUrlSearchParams(url, {
|
|
680
|
-
from: from.toISOString(),
|
|
681
|
-
to: to.toISOString()
|
|
683
|
+
from: from.toISOString().split("T")[0],
|
|
684
|
+
to: to.toISOString().split("T")[0]
|
|
682
685
|
});
|
|
683
686
|
return await this.httpRequest(url.toString(), StakingRevenueStatsGroup.array());
|
|
684
687
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -349,7 +349,10 @@ var StakingTreasury = z.object({
|
|
|
349
349
|
apy: z.number(),
|
|
350
350
|
totalStaked: amountWithUsd,
|
|
351
351
|
totalReward: amountWithUsd,
|
|
352
|
-
unstakeCooldownSeconds: z.number()
|
|
352
|
+
unstakeCooldownSeconds: z.number(),
|
|
353
|
+
isStakingEnabled: z.boolean(),
|
|
354
|
+
isUnstakingEnabled: z.boolean(),
|
|
355
|
+
isWithdrawEnabled: z.boolean()
|
|
353
356
|
});
|
|
354
357
|
var StakingPosition = z.object({
|
|
355
358
|
address: z.string(),
|
|
@@ -642,8 +645,8 @@ var TunaApiClient = class {
|
|
|
642
645
|
async getStakingRevenueStats(from, to) {
|
|
643
646
|
const url = this.buildURL(`stats/staking/revenue`);
|
|
644
647
|
this.appendUrlSearchParams(url, {
|
|
645
|
-
from: from.toISOString(),
|
|
646
|
-
to: to.toISOString()
|
|
648
|
+
from: from.toISOString().split("T")[0],
|
|
649
|
+
to: to.toISOString().split("T")[0]
|
|
647
650
|
});
|
|
648
651
|
return await this.httpRequest(url.toString(), StakingRevenueStatsGroup.array());
|
|
649
652
|
}
|