@crypticdot/defituna-api 4.0.4 → 4.0.5
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.cjs +5 -0
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +5 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -16164,6 +16164,10 @@ var zTunaLpPositionActionComposite = external_exports.object({
|
|
|
16164
16164
|
external_exports.null(),
|
|
16165
16165
|
zTunaLpPositionTransfer
|
|
16166
16166
|
])),
|
|
16167
|
+
realizedYieldUsd: external_exports.optional(external_exports.union([
|
|
16168
|
+
external_exports.number(),
|
|
16169
|
+
external_exports.null()
|
|
16170
|
+
])),
|
|
16167
16171
|
swaps: external_exports.optional(external_exports.union([
|
|
16168
16172
|
external_exports.null(),
|
|
16169
16173
|
zTunaLpPositionInnerSwaps
|
|
@@ -16333,6 +16337,7 @@ var zTunaLpPositionDto = external_exports.object({
|
|
|
16333
16337
|
openedAt: external_exports.preprocess((value) => value instanceof Date ? value.toISOString() : value, external_exports.iso.datetime()),
|
|
16334
16338
|
pool: zPoolDto,
|
|
16335
16339
|
positionAddress: zPubkeyDto,
|
|
16340
|
+
realizedYieldUsd: external_exports.number(),
|
|
16336
16341
|
state: zTunaPositionDtoState,
|
|
16337
16342
|
totalDepositUsd: external_exports.number(),
|
|
16338
16343
|
totalValueUsd: external_exports.number(),
|
package/dist/index.d.cts
CHANGED
|
@@ -1132,6 +1132,7 @@ type TunaLpPositionActionComposite = {
|
|
|
1132
1132
|
position?: null | TunaLpPositionValue;
|
|
1133
1133
|
prices?: null | TunaLpPositionTokenPrices;
|
|
1134
1134
|
protocolFees?: null | TunaLpPositionTransfer;
|
|
1135
|
+
realizedYieldUsd?: number | null;
|
|
1135
1136
|
swaps?: null | TunaLpPositionInnerSwaps;
|
|
1136
1137
|
toLending?: null | TunaLpPositionTransfer;
|
|
1137
1138
|
toOwner?: null | TunaLpPositionTransfer;
|
|
@@ -1172,6 +1173,7 @@ type TunaLpPositionDto = {
|
|
|
1172
1173
|
openedAt: Date;
|
|
1173
1174
|
pool: PoolDto;
|
|
1174
1175
|
positionAddress: PubkeyDto;
|
|
1176
|
+
realizedYieldUsd: number;
|
|
1175
1177
|
state: TunaPositionDtoState;
|
|
1176
1178
|
totalDepositUsd: number;
|
|
1177
1179
|
totalValueUsd: number;
|
|
@@ -3750,6 +3752,7 @@ declare const zTunaLpPositionActionComposite: z.ZodObject<{
|
|
|
3750
3752
|
amountB: z.ZodNumber;
|
|
3751
3753
|
amountUsd: z.ZodNumber;
|
|
3752
3754
|
}, z.core.$strip>]>>;
|
|
3755
|
+
realizedYieldUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3753
3756
|
swaps: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3754
3757
|
aToB: z.ZodBoolean;
|
|
3755
3758
|
amountIn: z.ZodNumber;
|
|
@@ -3946,6 +3949,7 @@ declare const zTunaLpPositionActionDto: z.ZodObject<{
|
|
|
3946
3949
|
amountB: z.ZodNumber;
|
|
3947
3950
|
amountUsd: z.ZodNumber;
|
|
3948
3951
|
}, z.core.$strip>]>>;
|
|
3952
|
+
realizedYieldUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3949
3953
|
swaps: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3950
3954
|
aToB: z.ZodBoolean;
|
|
3951
3955
|
amountIn: z.ZodNumber;
|
|
@@ -4173,6 +4177,7 @@ declare const zTunaLpPositionDto: z.ZodObject<{
|
|
|
4173
4177
|
tokenBVault: z.ZodString;
|
|
4174
4178
|
}, z.core.$strip>;
|
|
4175
4179
|
positionAddress: z.ZodString;
|
|
4180
|
+
realizedYieldUsd: z.ZodNumber;
|
|
4176
4181
|
state: z.ZodEnum<{
|
|
4177
4182
|
open: "open";
|
|
4178
4183
|
liquidated: "liquidated";
|
|
@@ -9830,6 +9835,7 @@ declare const zGetLpPositionsResponse: z.ZodObject<{
|
|
|
9830
9835
|
tokenBVault: z.ZodString;
|
|
9831
9836
|
}, z.core.$strip>;
|
|
9832
9837
|
positionAddress: z.ZodString;
|
|
9838
|
+
realizedYieldUsd: z.ZodNumber;
|
|
9833
9839
|
state: z.ZodEnum<{
|
|
9834
9840
|
open: "open";
|
|
9835
9841
|
liquidated: "liquidated";
|
|
@@ -9970,6 +9976,7 @@ declare const zGetLpPositionActionsResponse: z.ZodObject<{
|
|
|
9970
9976
|
amountB: z.ZodNumber;
|
|
9971
9977
|
amountUsd: z.ZodNumber;
|
|
9972
9978
|
}, z.core.$strip>]>>;
|
|
9979
|
+
realizedYieldUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
9973
9980
|
swaps: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
9974
9981
|
aToB: z.ZodBoolean;
|
|
9975
9982
|
amountIn: z.ZodNumber;
|
package/dist/index.d.ts
CHANGED
|
@@ -1132,6 +1132,7 @@ type TunaLpPositionActionComposite = {
|
|
|
1132
1132
|
position?: null | TunaLpPositionValue;
|
|
1133
1133
|
prices?: null | TunaLpPositionTokenPrices;
|
|
1134
1134
|
protocolFees?: null | TunaLpPositionTransfer;
|
|
1135
|
+
realizedYieldUsd?: number | null;
|
|
1135
1136
|
swaps?: null | TunaLpPositionInnerSwaps;
|
|
1136
1137
|
toLending?: null | TunaLpPositionTransfer;
|
|
1137
1138
|
toOwner?: null | TunaLpPositionTransfer;
|
|
@@ -1172,6 +1173,7 @@ type TunaLpPositionDto = {
|
|
|
1172
1173
|
openedAt: Date;
|
|
1173
1174
|
pool: PoolDto;
|
|
1174
1175
|
positionAddress: PubkeyDto;
|
|
1176
|
+
realizedYieldUsd: number;
|
|
1175
1177
|
state: TunaPositionDtoState;
|
|
1176
1178
|
totalDepositUsd: number;
|
|
1177
1179
|
totalValueUsd: number;
|
|
@@ -3750,6 +3752,7 @@ declare const zTunaLpPositionActionComposite: z.ZodObject<{
|
|
|
3750
3752
|
amountB: z.ZodNumber;
|
|
3751
3753
|
amountUsd: z.ZodNumber;
|
|
3752
3754
|
}, z.core.$strip>]>>;
|
|
3755
|
+
realizedYieldUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3753
3756
|
swaps: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3754
3757
|
aToB: z.ZodBoolean;
|
|
3755
3758
|
amountIn: z.ZodNumber;
|
|
@@ -3946,6 +3949,7 @@ declare const zTunaLpPositionActionDto: z.ZodObject<{
|
|
|
3946
3949
|
amountB: z.ZodNumber;
|
|
3947
3950
|
amountUsd: z.ZodNumber;
|
|
3948
3951
|
}, z.core.$strip>]>>;
|
|
3952
|
+
realizedYieldUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3949
3953
|
swaps: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3950
3954
|
aToB: z.ZodBoolean;
|
|
3951
3955
|
amountIn: z.ZodNumber;
|
|
@@ -4173,6 +4177,7 @@ declare const zTunaLpPositionDto: z.ZodObject<{
|
|
|
4173
4177
|
tokenBVault: z.ZodString;
|
|
4174
4178
|
}, z.core.$strip>;
|
|
4175
4179
|
positionAddress: z.ZodString;
|
|
4180
|
+
realizedYieldUsd: z.ZodNumber;
|
|
4176
4181
|
state: z.ZodEnum<{
|
|
4177
4182
|
open: "open";
|
|
4178
4183
|
liquidated: "liquidated";
|
|
@@ -9830,6 +9835,7 @@ declare const zGetLpPositionsResponse: z.ZodObject<{
|
|
|
9830
9835
|
tokenBVault: z.ZodString;
|
|
9831
9836
|
}, z.core.$strip>;
|
|
9832
9837
|
positionAddress: z.ZodString;
|
|
9838
|
+
realizedYieldUsd: z.ZodNumber;
|
|
9833
9839
|
state: z.ZodEnum<{
|
|
9834
9840
|
open: "open";
|
|
9835
9841
|
liquidated: "liquidated";
|
|
@@ -9970,6 +9976,7 @@ declare const zGetLpPositionActionsResponse: z.ZodObject<{
|
|
|
9970
9976
|
amountB: z.ZodNumber;
|
|
9971
9977
|
amountUsd: z.ZodNumber;
|
|
9972
9978
|
}, z.core.$strip>]>>;
|
|
9979
|
+
realizedYieldUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
9973
9980
|
swaps: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
9974
9981
|
aToB: z.ZodBoolean;
|
|
9975
9982
|
amountIn: z.ZodNumber;
|
package/dist/index.js
CHANGED
|
@@ -15878,6 +15878,10 @@ var zTunaLpPositionActionComposite = external_exports.object({
|
|
|
15878
15878
|
external_exports.null(),
|
|
15879
15879
|
zTunaLpPositionTransfer
|
|
15880
15880
|
])),
|
|
15881
|
+
realizedYieldUsd: external_exports.optional(external_exports.union([
|
|
15882
|
+
external_exports.number(),
|
|
15883
|
+
external_exports.null()
|
|
15884
|
+
])),
|
|
15881
15885
|
swaps: external_exports.optional(external_exports.union([
|
|
15882
15886
|
external_exports.null(),
|
|
15883
15887
|
zTunaLpPositionInnerSwaps
|
|
@@ -16047,6 +16051,7 @@ var zTunaLpPositionDto = external_exports.object({
|
|
|
16047
16051
|
openedAt: external_exports.preprocess((value) => value instanceof Date ? value.toISOString() : value, external_exports.iso.datetime()),
|
|
16048
16052
|
pool: zPoolDto,
|
|
16049
16053
|
positionAddress: zPubkeyDto,
|
|
16054
|
+
realizedYieldUsd: external_exports.number(),
|
|
16050
16055
|
state: zTunaPositionDtoState,
|
|
16051
16056
|
totalDepositUsd: external_exports.number(),
|
|
16052
16057
|
totalValueUsd: external_exports.number(),
|