@crypticdot/defituna-api 4.0.4 → 4.0.6
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 +15 -6
- package/dist/index.d.cts +59 -26
- package/dist/index.d.ts +59 -26
- package/dist/index.js +15 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1001,9 +1001,11 @@ var TunaLpPositionsActionType = {
|
|
|
1001
1001
|
};
|
|
1002
1002
|
var TunaPositionDtoState = {
|
|
1003
1003
|
OPEN: "open",
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
CLOSED: "closed"
|
|
1004
|
+
LIQUIDATION_WITHDRAW: "liquidation_withdraw",
|
|
1005
|
+
LIMIT_ORDER_WITHDRAW: "limit_order_withdraw",
|
|
1006
|
+
CLOSED: "closed",
|
|
1007
|
+
LIQUIDATION_CLOSED: "liquidation_closed",
|
|
1008
|
+
LIMIT_ORDER_CLOSED: "limit_order_closed"
|
|
1007
1009
|
};
|
|
1008
1010
|
var TunaPositionMarketMaker = { FUSION: "fusion", ORCA: "orca" };
|
|
1009
1011
|
var TunaPositionPoolToken = { A: "a", B: "b" };
|
|
@@ -16164,6 +16166,10 @@ var zTunaLpPositionActionComposite = external_exports.object({
|
|
|
16164
16166
|
external_exports.null(),
|
|
16165
16167
|
zTunaLpPositionTransfer
|
|
16166
16168
|
])),
|
|
16169
|
+
realizedYieldUsd: external_exports.optional(external_exports.union([
|
|
16170
|
+
external_exports.number(),
|
|
16171
|
+
external_exports.null()
|
|
16172
|
+
])),
|
|
16167
16173
|
swaps: external_exports.optional(external_exports.union([
|
|
16168
16174
|
external_exports.null(),
|
|
16169
16175
|
zTunaLpPositionInnerSwaps
|
|
@@ -16251,9 +16257,11 @@ var zTunaLpPositionsStats = external_exports.object({
|
|
|
16251
16257
|
});
|
|
16252
16258
|
var zTunaPositionDtoState = external_exports.enum([
|
|
16253
16259
|
"open",
|
|
16254
|
-
"
|
|
16255
|
-
"
|
|
16256
|
-
"closed"
|
|
16260
|
+
"liquidation_withdraw",
|
|
16261
|
+
"limit_order_withdraw",
|
|
16262
|
+
"closed",
|
|
16263
|
+
"liquidation_closed",
|
|
16264
|
+
"limit_order_closed"
|
|
16257
16265
|
]);
|
|
16258
16266
|
var zTunaPositionMarketMaker = external_exports.enum(["fusion", "orca"]);
|
|
16259
16267
|
var zTunaPositionPoolToken = external_exports.enum(["a", "b"]);
|
|
@@ -16333,6 +16341,7 @@ var zTunaLpPositionDto = external_exports.object({
|
|
|
16333
16341
|
openedAt: external_exports.preprocess((value) => value instanceof Date ? value.toISOString() : value, external_exports.iso.datetime()),
|
|
16334
16342
|
pool: zPoolDto,
|
|
16335
16343
|
positionAddress: zPubkeyDto,
|
|
16344
|
+
realizedYieldUsd: external_exports.number(),
|
|
16336
16345
|
state: zTunaPositionDtoState,
|
|
16337
16346
|
totalDepositUsd: external_exports.number(),
|
|
16338
16347
|
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;
|
|
@@ -1335,9 +1337,11 @@ type TunaPositionDto = {
|
|
|
1335
1337
|
};
|
|
1336
1338
|
declare const TunaPositionDtoState: {
|
|
1337
1339
|
readonly OPEN: "open";
|
|
1338
|
-
readonly
|
|
1339
|
-
readonly
|
|
1340
|
+
readonly LIQUIDATION_WITHDRAW: "liquidation_withdraw";
|
|
1341
|
+
readonly LIMIT_ORDER_WITHDRAW: "limit_order_withdraw";
|
|
1340
1342
|
readonly CLOSED: "closed";
|
|
1343
|
+
readonly LIQUIDATION_CLOSED: "liquidation_closed";
|
|
1344
|
+
readonly LIMIT_ORDER_CLOSED: "limit_order_closed";
|
|
1341
1345
|
};
|
|
1342
1346
|
type TunaPositionDtoState = typeof TunaPositionDtoState[keyof typeof TunaPositionDtoState];
|
|
1343
1347
|
declare const TunaPositionMarketMaker: {
|
|
@@ -3750,6 +3754,7 @@ declare const zTunaLpPositionActionComposite: z.ZodObject<{
|
|
|
3750
3754
|
amountB: z.ZodNumber;
|
|
3751
3755
|
amountUsd: z.ZodNumber;
|
|
3752
3756
|
}, z.core.$strip>]>>;
|
|
3757
|
+
realizedYieldUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3753
3758
|
swaps: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3754
3759
|
aToB: z.ZodBoolean;
|
|
3755
3760
|
amountIn: z.ZodNumber;
|
|
@@ -3946,6 +3951,7 @@ declare const zTunaLpPositionActionDto: z.ZodObject<{
|
|
|
3946
3951
|
amountB: z.ZodNumber;
|
|
3947
3952
|
amountUsd: z.ZodNumber;
|
|
3948
3953
|
}, z.core.$strip>]>>;
|
|
3954
|
+
realizedYieldUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3949
3955
|
swaps: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3950
3956
|
aToB: z.ZodBoolean;
|
|
3951
3957
|
amountIn: z.ZodNumber;
|
|
@@ -4031,9 +4037,11 @@ declare const zTunaLpPositionsStats: z.ZodObject<{
|
|
|
4031
4037
|
}, z.core.$strip>;
|
|
4032
4038
|
declare const zTunaPositionDtoState: z.ZodEnum<{
|
|
4033
4039
|
open: "open";
|
|
4034
|
-
|
|
4035
|
-
|
|
4040
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
4041
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
4036
4042
|
closed: "closed";
|
|
4043
|
+
liquidation_closed: "liquidation_closed";
|
|
4044
|
+
limit_order_closed: "limit_order_closed";
|
|
4037
4045
|
}>;
|
|
4038
4046
|
declare const zTunaPositionMarketMaker: z.ZodEnum<{
|
|
4039
4047
|
orca: "orca";
|
|
@@ -4173,11 +4181,14 @@ declare const zTunaLpPositionDto: z.ZodObject<{
|
|
|
4173
4181
|
tokenBVault: z.ZodString;
|
|
4174
4182
|
}, z.core.$strip>;
|
|
4175
4183
|
positionAddress: z.ZodString;
|
|
4184
|
+
realizedYieldUsd: z.ZodNumber;
|
|
4176
4185
|
state: z.ZodEnum<{
|
|
4177
4186
|
open: "open";
|
|
4178
|
-
|
|
4179
|
-
|
|
4187
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
4188
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
4180
4189
|
closed: "closed";
|
|
4190
|
+
liquidation_closed: "liquidation_closed";
|
|
4191
|
+
limit_order_closed: "limit_order_closed";
|
|
4181
4192
|
}>;
|
|
4182
4193
|
totalDepositUsd: z.ZodNumber;
|
|
4183
4194
|
totalValueUsd: z.ZodNumber;
|
|
@@ -5404,9 +5415,11 @@ declare const zTunaPositionDto: z.ZodObject<{
|
|
|
5404
5415
|
positionMint: z.ZodString;
|
|
5405
5416
|
state: z.ZodEnum<{
|
|
5406
5417
|
open: "open";
|
|
5407
|
-
|
|
5408
|
-
|
|
5418
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
5419
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
5409
5420
|
closed: "closed";
|
|
5421
|
+
liquidation_closed: "liquidation_closed";
|
|
5422
|
+
limit_order_closed: "limit_order_closed";
|
|
5410
5423
|
}>;
|
|
5411
5424
|
tickLowerIndex: z.ZodInt;
|
|
5412
5425
|
tickUpperIndex: z.ZodInt;
|
|
@@ -5806,9 +5819,11 @@ declare const zSnapshot: z.ZodObject<{
|
|
|
5806
5819
|
positionMint: z.ZodString;
|
|
5807
5820
|
state: z.ZodEnum<{
|
|
5808
5821
|
open: "open";
|
|
5809
|
-
|
|
5810
|
-
|
|
5822
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
5823
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
5811
5824
|
closed: "closed";
|
|
5825
|
+
liquidation_closed: "liquidation_closed";
|
|
5826
|
+
limit_order_closed: "limit_order_closed";
|
|
5812
5827
|
}>;
|
|
5813
5828
|
tickLowerIndex: z.ZodInt;
|
|
5814
5829
|
tickUpperIndex: z.ZodInt;
|
|
@@ -6211,9 +6226,11 @@ declare const zSnapshotContainer: z.ZodObject<{
|
|
|
6211
6226
|
positionMint: z.ZodString;
|
|
6212
6227
|
state: z.ZodEnum<{
|
|
6213
6228
|
open: "open";
|
|
6214
|
-
|
|
6215
|
-
|
|
6229
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
6230
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
6216
6231
|
closed: "closed";
|
|
6232
|
+
liquidation_closed: "liquidation_closed";
|
|
6233
|
+
limit_order_closed: "limit_order_closed";
|
|
6217
6234
|
}>;
|
|
6218
6235
|
tickLowerIndex: z.ZodInt;
|
|
6219
6236
|
tickUpperIndex: z.ZodInt;
|
|
@@ -6619,9 +6636,11 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
6619
6636
|
positionMint: z.ZodString;
|
|
6620
6637
|
state: z.ZodEnum<{
|
|
6621
6638
|
open: "open";
|
|
6622
|
-
|
|
6623
|
-
|
|
6639
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
6640
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
6624
6641
|
closed: "closed";
|
|
6642
|
+
liquidation_closed: "liquidation_closed";
|
|
6643
|
+
limit_order_closed: "limit_order_closed";
|
|
6625
6644
|
}>;
|
|
6626
6645
|
tickLowerIndex: z.ZodInt;
|
|
6627
6646
|
tickUpperIndex: z.ZodInt;
|
|
@@ -7705,9 +7724,11 @@ declare const zSseResponse: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
|
7705
7724
|
positionMint: z.ZodString;
|
|
7706
7725
|
state: z.ZodEnum<{
|
|
7707
7726
|
open: "open";
|
|
7708
|
-
|
|
7709
|
-
|
|
7727
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
7728
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
7710
7729
|
closed: "closed";
|
|
7730
|
+
liquidation_closed: "liquidation_closed";
|
|
7731
|
+
limit_order_closed: "limit_order_closed";
|
|
7711
7732
|
}>;
|
|
7712
7733
|
tickLowerIndex: z.ZodInt;
|
|
7713
7734
|
tickUpperIndex: z.ZodInt;
|
|
@@ -9374,9 +9395,11 @@ declare const zSseResponse2: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<
|
|
|
9374
9395
|
positionMint: z.ZodString;
|
|
9375
9396
|
state: z.ZodEnum<{
|
|
9376
9397
|
open: "open";
|
|
9377
|
-
|
|
9378
|
-
|
|
9398
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
9399
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
9379
9400
|
closed: "closed";
|
|
9401
|
+
liquidation_closed: "liquidation_closed";
|
|
9402
|
+
limit_order_closed: "limit_order_closed";
|
|
9380
9403
|
}>;
|
|
9381
9404
|
tickLowerIndex: z.ZodInt;
|
|
9382
9405
|
tickUpperIndex: z.ZodInt;
|
|
@@ -9765,9 +9788,11 @@ declare const zGetLpPositionsData: z.ZodObject<{
|
|
|
9765
9788
|
liquidityPool: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9766
9789
|
state: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
9767
9790
|
open: "open";
|
|
9768
|
-
|
|
9769
|
-
|
|
9791
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
9792
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
9770
9793
|
closed: "closed";
|
|
9794
|
+
liquidation_closed: "liquidation_closed";
|
|
9795
|
+
limit_order_closed: "limit_order_closed";
|
|
9771
9796
|
}>>>;
|
|
9772
9797
|
afterPosition: z.ZodOptional<z.ZodString>;
|
|
9773
9798
|
limit: z.ZodOptional<z.ZodInt>;
|
|
@@ -9830,11 +9855,14 @@ declare const zGetLpPositionsResponse: z.ZodObject<{
|
|
|
9830
9855
|
tokenBVault: z.ZodString;
|
|
9831
9856
|
}, z.core.$strip>;
|
|
9832
9857
|
positionAddress: z.ZodString;
|
|
9858
|
+
realizedYieldUsd: z.ZodNumber;
|
|
9833
9859
|
state: z.ZodEnum<{
|
|
9834
9860
|
open: "open";
|
|
9835
|
-
|
|
9836
|
-
|
|
9861
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
9862
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
9837
9863
|
closed: "closed";
|
|
9864
|
+
liquidation_closed: "liquidation_closed";
|
|
9865
|
+
limit_order_closed: "limit_order_closed";
|
|
9838
9866
|
}>;
|
|
9839
9867
|
totalDepositUsd: z.ZodNumber;
|
|
9840
9868
|
totalValueUsd: z.ZodNumber;
|
|
@@ -9970,6 +9998,7 @@ declare const zGetLpPositionActionsResponse: z.ZodObject<{
|
|
|
9970
9998
|
amountB: z.ZodNumber;
|
|
9971
9999
|
amountUsd: z.ZodNumber;
|
|
9972
10000
|
}, z.core.$strip>]>>;
|
|
10001
|
+
realizedYieldUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
9973
10002
|
swaps: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
9974
10003
|
aToB: z.ZodBoolean;
|
|
9975
10004
|
amountIn: z.ZodNumber;
|
|
@@ -10673,9 +10702,11 @@ declare const zGetTunaPositionsResponse: z.ZodObject<{
|
|
|
10673
10702
|
positionMint: z.ZodString;
|
|
10674
10703
|
state: z.ZodEnum<{
|
|
10675
10704
|
open: "open";
|
|
10676
|
-
|
|
10677
|
-
|
|
10705
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
10706
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
10678
10707
|
closed: "closed";
|
|
10708
|
+
liquidation_closed: "liquidation_closed";
|
|
10709
|
+
limit_order_closed: "limit_order_closed";
|
|
10679
10710
|
}>;
|
|
10680
10711
|
tickLowerIndex: z.ZodInt;
|
|
10681
10712
|
tickUpperIndex: z.ZodInt;
|
|
@@ -10834,9 +10865,11 @@ declare const zGetTunaPositionResponse: z.ZodObject<{
|
|
|
10834
10865
|
positionMint: z.ZodString;
|
|
10835
10866
|
state: z.ZodEnum<{
|
|
10836
10867
|
open: "open";
|
|
10837
|
-
|
|
10838
|
-
|
|
10868
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
10869
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
10839
10870
|
closed: "closed";
|
|
10871
|
+
liquidation_closed: "liquidation_closed";
|
|
10872
|
+
limit_order_closed: "limit_order_closed";
|
|
10840
10873
|
}>;
|
|
10841
10874
|
tickLowerIndex: z.ZodInt;
|
|
10842
10875
|
tickUpperIndex: z.ZodInt;
|
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;
|
|
@@ -1335,9 +1337,11 @@ type TunaPositionDto = {
|
|
|
1335
1337
|
};
|
|
1336
1338
|
declare const TunaPositionDtoState: {
|
|
1337
1339
|
readonly OPEN: "open";
|
|
1338
|
-
readonly
|
|
1339
|
-
readonly
|
|
1340
|
+
readonly LIQUIDATION_WITHDRAW: "liquidation_withdraw";
|
|
1341
|
+
readonly LIMIT_ORDER_WITHDRAW: "limit_order_withdraw";
|
|
1340
1342
|
readonly CLOSED: "closed";
|
|
1343
|
+
readonly LIQUIDATION_CLOSED: "liquidation_closed";
|
|
1344
|
+
readonly LIMIT_ORDER_CLOSED: "limit_order_closed";
|
|
1341
1345
|
};
|
|
1342
1346
|
type TunaPositionDtoState = typeof TunaPositionDtoState[keyof typeof TunaPositionDtoState];
|
|
1343
1347
|
declare const TunaPositionMarketMaker: {
|
|
@@ -3750,6 +3754,7 @@ declare const zTunaLpPositionActionComposite: z.ZodObject<{
|
|
|
3750
3754
|
amountB: z.ZodNumber;
|
|
3751
3755
|
amountUsd: z.ZodNumber;
|
|
3752
3756
|
}, z.core.$strip>]>>;
|
|
3757
|
+
realizedYieldUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3753
3758
|
swaps: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3754
3759
|
aToB: z.ZodBoolean;
|
|
3755
3760
|
amountIn: z.ZodNumber;
|
|
@@ -3946,6 +3951,7 @@ declare const zTunaLpPositionActionDto: z.ZodObject<{
|
|
|
3946
3951
|
amountB: z.ZodNumber;
|
|
3947
3952
|
amountUsd: z.ZodNumber;
|
|
3948
3953
|
}, z.core.$strip>]>>;
|
|
3954
|
+
realizedYieldUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3949
3955
|
swaps: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3950
3956
|
aToB: z.ZodBoolean;
|
|
3951
3957
|
amountIn: z.ZodNumber;
|
|
@@ -4031,9 +4037,11 @@ declare const zTunaLpPositionsStats: z.ZodObject<{
|
|
|
4031
4037
|
}, z.core.$strip>;
|
|
4032
4038
|
declare const zTunaPositionDtoState: z.ZodEnum<{
|
|
4033
4039
|
open: "open";
|
|
4034
|
-
|
|
4035
|
-
|
|
4040
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
4041
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
4036
4042
|
closed: "closed";
|
|
4043
|
+
liquidation_closed: "liquidation_closed";
|
|
4044
|
+
limit_order_closed: "limit_order_closed";
|
|
4037
4045
|
}>;
|
|
4038
4046
|
declare const zTunaPositionMarketMaker: z.ZodEnum<{
|
|
4039
4047
|
orca: "orca";
|
|
@@ -4173,11 +4181,14 @@ declare const zTunaLpPositionDto: z.ZodObject<{
|
|
|
4173
4181
|
tokenBVault: z.ZodString;
|
|
4174
4182
|
}, z.core.$strip>;
|
|
4175
4183
|
positionAddress: z.ZodString;
|
|
4184
|
+
realizedYieldUsd: z.ZodNumber;
|
|
4176
4185
|
state: z.ZodEnum<{
|
|
4177
4186
|
open: "open";
|
|
4178
|
-
|
|
4179
|
-
|
|
4187
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
4188
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
4180
4189
|
closed: "closed";
|
|
4190
|
+
liquidation_closed: "liquidation_closed";
|
|
4191
|
+
limit_order_closed: "limit_order_closed";
|
|
4181
4192
|
}>;
|
|
4182
4193
|
totalDepositUsd: z.ZodNumber;
|
|
4183
4194
|
totalValueUsd: z.ZodNumber;
|
|
@@ -5404,9 +5415,11 @@ declare const zTunaPositionDto: z.ZodObject<{
|
|
|
5404
5415
|
positionMint: z.ZodString;
|
|
5405
5416
|
state: z.ZodEnum<{
|
|
5406
5417
|
open: "open";
|
|
5407
|
-
|
|
5408
|
-
|
|
5418
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
5419
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
5409
5420
|
closed: "closed";
|
|
5421
|
+
liquidation_closed: "liquidation_closed";
|
|
5422
|
+
limit_order_closed: "limit_order_closed";
|
|
5410
5423
|
}>;
|
|
5411
5424
|
tickLowerIndex: z.ZodInt;
|
|
5412
5425
|
tickUpperIndex: z.ZodInt;
|
|
@@ -5806,9 +5819,11 @@ declare const zSnapshot: z.ZodObject<{
|
|
|
5806
5819
|
positionMint: z.ZodString;
|
|
5807
5820
|
state: z.ZodEnum<{
|
|
5808
5821
|
open: "open";
|
|
5809
|
-
|
|
5810
|
-
|
|
5822
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
5823
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
5811
5824
|
closed: "closed";
|
|
5825
|
+
liquidation_closed: "liquidation_closed";
|
|
5826
|
+
limit_order_closed: "limit_order_closed";
|
|
5812
5827
|
}>;
|
|
5813
5828
|
tickLowerIndex: z.ZodInt;
|
|
5814
5829
|
tickUpperIndex: z.ZodInt;
|
|
@@ -6211,9 +6226,11 @@ declare const zSnapshotContainer: z.ZodObject<{
|
|
|
6211
6226
|
positionMint: z.ZodString;
|
|
6212
6227
|
state: z.ZodEnum<{
|
|
6213
6228
|
open: "open";
|
|
6214
|
-
|
|
6215
|
-
|
|
6229
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
6230
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
6216
6231
|
closed: "closed";
|
|
6232
|
+
liquidation_closed: "liquidation_closed";
|
|
6233
|
+
limit_order_closed: "limit_order_closed";
|
|
6217
6234
|
}>;
|
|
6218
6235
|
tickLowerIndex: z.ZodInt;
|
|
6219
6236
|
tickUpperIndex: z.ZodInt;
|
|
@@ -6619,9 +6636,11 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
6619
6636
|
positionMint: z.ZodString;
|
|
6620
6637
|
state: z.ZodEnum<{
|
|
6621
6638
|
open: "open";
|
|
6622
|
-
|
|
6623
|
-
|
|
6639
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
6640
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
6624
6641
|
closed: "closed";
|
|
6642
|
+
liquidation_closed: "liquidation_closed";
|
|
6643
|
+
limit_order_closed: "limit_order_closed";
|
|
6625
6644
|
}>;
|
|
6626
6645
|
tickLowerIndex: z.ZodInt;
|
|
6627
6646
|
tickUpperIndex: z.ZodInt;
|
|
@@ -7705,9 +7724,11 @@ declare const zSseResponse: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
|
7705
7724
|
positionMint: z.ZodString;
|
|
7706
7725
|
state: z.ZodEnum<{
|
|
7707
7726
|
open: "open";
|
|
7708
|
-
|
|
7709
|
-
|
|
7727
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
7728
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
7710
7729
|
closed: "closed";
|
|
7730
|
+
liquidation_closed: "liquidation_closed";
|
|
7731
|
+
limit_order_closed: "limit_order_closed";
|
|
7711
7732
|
}>;
|
|
7712
7733
|
tickLowerIndex: z.ZodInt;
|
|
7713
7734
|
tickUpperIndex: z.ZodInt;
|
|
@@ -9374,9 +9395,11 @@ declare const zSseResponse2: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<
|
|
|
9374
9395
|
positionMint: z.ZodString;
|
|
9375
9396
|
state: z.ZodEnum<{
|
|
9376
9397
|
open: "open";
|
|
9377
|
-
|
|
9378
|
-
|
|
9398
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
9399
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
9379
9400
|
closed: "closed";
|
|
9401
|
+
liquidation_closed: "liquidation_closed";
|
|
9402
|
+
limit_order_closed: "limit_order_closed";
|
|
9380
9403
|
}>;
|
|
9381
9404
|
tickLowerIndex: z.ZodInt;
|
|
9382
9405
|
tickUpperIndex: z.ZodInt;
|
|
@@ -9765,9 +9788,11 @@ declare const zGetLpPositionsData: z.ZodObject<{
|
|
|
9765
9788
|
liquidityPool: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9766
9789
|
state: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
9767
9790
|
open: "open";
|
|
9768
|
-
|
|
9769
|
-
|
|
9791
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
9792
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
9770
9793
|
closed: "closed";
|
|
9794
|
+
liquidation_closed: "liquidation_closed";
|
|
9795
|
+
limit_order_closed: "limit_order_closed";
|
|
9771
9796
|
}>>>;
|
|
9772
9797
|
afterPosition: z.ZodOptional<z.ZodString>;
|
|
9773
9798
|
limit: z.ZodOptional<z.ZodInt>;
|
|
@@ -9830,11 +9855,14 @@ declare const zGetLpPositionsResponse: z.ZodObject<{
|
|
|
9830
9855
|
tokenBVault: z.ZodString;
|
|
9831
9856
|
}, z.core.$strip>;
|
|
9832
9857
|
positionAddress: z.ZodString;
|
|
9858
|
+
realizedYieldUsd: z.ZodNumber;
|
|
9833
9859
|
state: z.ZodEnum<{
|
|
9834
9860
|
open: "open";
|
|
9835
|
-
|
|
9836
|
-
|
|
9861
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
9862
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
9837
9863
|
closed: "closed";
|
|
9864
|
+
liquidation_closed: "liquidation_closed";
|
|
9865
|
+
limit_order_closed: "limit_order_closed";
|
|
9838
9866
|
}>;
|
|
9839
9867
|
totalDepositUsd: z.ZodNumber;
|
|
9840
9868
|
totalValueUsd: z.ZodNumber;
|
|
@@ -9970,6 +9998,7 @@ declare const zGetLpPositionActionsResponse: z.ZodObject<{
|
|
|
9970
9998
|
amountB: z.ZodNumber;
|
|
9971
9999
|
amountUsd: z.ZodNumber;
|
|
9972
10000
|
}, z.core.$strip>]>>;
|
|
10001
|
+
realizedYieldUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
9973
10002
|
swaps: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
9974
10003
|
aToB: z.ZodBoolean;
|
|
9975
10004
|
amountIn: z.ZodNumber;
|
|
@@ -10673,9 +10702,11 @@ declare const zGetTunaPositionsResponse: z.ZodObject<{
|
|
|
10673
10702
|
positionMint: z.ZodString;
|
|
10674
10703
|
state: z.ZodEnum<{
|
|
10675
10704
|
open: "open";
|
|
10676
|
-
|
|
10677
|
-
|
|
10705
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
10706
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
10678
10707
|
closed: "closed";
|
|
10708
|
+
liquidation_closed: "liquidation_closed";
|
|
10709
|
+
limit_order_closed: "limit_order_closed";
|
|
10679
10710
|
}>;
|
|
10680
10711
|
tickLowerIndex: z.ZodInt;
|
|
10681
10712
|
tickUpperIndex: z.ZodInt;
|
|
@@ -10834,9 +10865,11 @@ declare const zGetTunaPositionResponse: z.ZodObject<{
|
|
|
10834
10865
|
positionMint: z.ZodString;
|
|
10835
10866
|
state: z.ZodEnum<{
|
|
10836
10867
|
open: "open";
|
|
10837
|
-
|
|
10838
|
-
|
|
10868
|
+
liquidation_withdraw: "liquidation_withdraw";
|
|
10869
|
+
limit_order_withdraw: "limit_order_withdraw";
|
|
10839
10870
|
closed: "closed";
|
|
10871
|
+
liquidation_closed: "liquidation_closed";
|
|
10872
|
+
limit_order_closed: "limit_order_closed";
|
|
10840
10873
|
}>;
|
|
10841
10874
|
tickLowerIndex: z.ZodInt;
|
|
10842
10875
|
tickUpperIndex: z.ZodInt;
|
package/dist/index.js
CHANGED
|
@@ -715,9 +715,11 @@ var TunaLpPositionsActionType = {
|
|
|
715
715
|
};
|
|
716
716
|
var TunaPositionDtoState = {
|
|
717
717
|
OPEN: "open",
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
CLOSED: "closed"
|
|
718
|
+
LIQUIDATION_WITHDRAW: "liquidation_withdraw",
|
|
719
|
+
LIMIT_ORDER_WITHDRAW: "limit_order_withdraw",
|
|
720
|
+
CLOSED: "closed",
|
|
721
|
+
LIQUIDATION_CLOSED: "liquidation_closed",
|
|
722
|
+
LIMIT_ORDER_CLOSED: "limit_order_closed"
|
|
721
723
|
};
|
|
722
724
|
var TunaPositionMarketMaker = { FUSION: "fusion", ORCA: "orca" };
|
|
723
725
|
var TunaPositionPoolToken = { A: "a", B: "b" };
|
|
@@ -15878,6 +15880,10 @@ var zTunaLpPositionActionComposite = external_exports.object({
|
|
|
15878
15880
|
external_exports.null(),
|
|
15879
15881
|
zTunaLpPositionTransfer
|
|
15880
15882
|
])),
|
|
15883
|
+
realizedYieldUsd: external_exports.optional(external_exports.union([
|
|
15884
|
+
external_exports.number(),
|
|
15885
|
+
external_exports.null()
|
|
15886
|
+
])),
|
|
15881
15887
|
swaps: external_exports.optional(external_exports.union([
|
|
15882
15888
|
external_exports.null(),
|
|
15883
15889
|
zTunaLpPositionInnerSwaps
|
|
@@ -15965,9 +15971,11 @@ var zTunaLpPositionsStats = external_exports.object({
|
|
|
15965
15971
|
});
|
|
15966
15972
|
var zTunaPositionDtoState = external_exports.enum([
|
|
15967
15973
|
"open",
|
|
15968
|
-
"
|
|
15969
|
-
"
|
|
15970
|
-
"closed"
|
|
15974
|
+
"liquidation_withdraw",
|
|
15975
|
+
"limit_order_withdraw",
|
|
15976
|
+
"closed",
|
|
15977
|
+
"liquidation_closed",
|
|
15978
|
+
"limit_order_closed"
|
|
15971
15979
|
]);
|
|
15972
15980
|
var zTunaPositionMarketMaker = external_exports.enum(["fusion", "orca"]);
|
|
15973
15981
|
var zTunaPositionPoolToken = external_exports.enum(["a", "b"]);
|
|
@@ -16047,6 +16055,7 @@ var zTunaLpPositionDto = external_exports.object({
|
|
|
16047
16055
|
openedAt: external_exports.preprocess((value) => value instanceof Date ? value.toISOString() : value, external_exports.iso.datetime()),
|
|
16048
16056
|
pool: zPoolDto,
|
|
16049
16057
|
positionAddress: zPubkeyDto,
|
|
16058
|
+
realizedYieldUsd: external_exports.number(),
|
|
16050
16059
|
state: zTunaPositionDtoState,
|
|
16051
16060
|
totalDepositUsd: external_exports.number(),
|
|
16052
16061
|
totalValueUsd: external_exports.number(),
|