@polyester/sdk 0.35.0-devnet-20261111024555 → 0.35.0-devnet-20261111024759
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/CHANGELOG.md +3 -1
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/changelog/changelog.schemas.d.ts +17 -17
- package/dist/services/heatmap/heatmap.schemas.d.ts +9 -9
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +40 -40
- package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
- package/dist/services/orders/order-enums.codecs.js +4 -4
- package/dist/services/orders/order-enums.codecs.js.map +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +24 -24
- package/dist/services/orders/orders-input.schemas.d.ts +1 -1
- package/dist/services/orders/orders-modify.schemas.d.ts +5 -5
- package/dist/services/orders/orders-output.schemas.d.ts +2 -2
- package/dist/services/orders/orders.codecs.js +14 -14
- package/dist/services/orders/orders.codecs.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +1 -1
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +7 -7
- package/package.json +1 -1
|
@@ -241,7 +241,7 @@ declare const LifecycleFlowStepActivitySchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
241
241
|
}>]>;
|
|
242
242
|
declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
243
243
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
244
|
-
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "
|
|
244
|
+
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
245
245
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
246
246
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
247
247
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -384,7 +384,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
384
384
|
}>]>, undefined>, readonly []>;
|
|
385
385
|
}, undefined>, v.TransformAction<{
|
|
386
386
|
sequence: number;
|
|
387
|
-
step: "validation" | "unspecified" | "failed" | "
|
|
387
|
+
step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
388
388
|
assetIds?: {
|
|
389
389
|
zippedAssetId: number;
|
|
390
390
|
unifiedAssetId: number;
|
|
@@ -447,7 +447,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
447
447
|
})[];
|
|
448
448
|
}, Omit<{
|
|
449
449
|
sequence: number;
|
|
450
|
-
step: "validation" | "unspecified" | "failed" | "
|
|
450
|
+
step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
451
451
|
assetIds?: {
|
|
452
452
|
zippedAssetId: number;
|
|
453
453
|
unifiedAssetId: number;
|
|
@@ -513,7 +513,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
513
513
|
}>]>;
|
|
514
514
|
declare const LifecycleFlowTimelineItemSchema: v.ObjectSchema<{
|
|
515
515
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
516
|
-
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "
|
|
516
|
+
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
517
517
|
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "planned" | "completed" | "current">]>;
|
|
518
518
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
519
519
|
}, undefined>;
|
|
@@ -533,7 +533,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
533
533
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
534
534
|
readonly flowId: v.StringSchema<undefined>;
|
|
535
535
|
readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
536
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "
|
|
536
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
537
537
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
538
538
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
539
539
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -613,7 +613,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
613
613
|
}, undefined>, undefined>;
|
|
614
614
|
readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
615
615
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
616
|
-
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "
|
|
616
|
+
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
617
617
|
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "planned" | "completed" | "current">]>;
|
|
618
618
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
619
619
|
}, undefined>, undefined>, readonly []>;
|
|
@@ -631,7 +631,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
631
631
|
smartAccountAddress: string;
|
|
632
632
|
flowId: string;
|
|
633
633
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
634
|
-
currentStep: "validation" | "unspecified" | "failed" | "
|
|
634
|
+
currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
635
635
|
assetIds?: {
|
|
636
636
|
zippedAssetId: number;
|
|
637
637
|
unifiedAssetId: number;
|
|
@@ -683,7 +683,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
683
683
|
} | undefined;
|
|
684
684
|
progressTimeline: {
|
|
685
685
|
sequence: number;
|
|
686
|
-
step: "validation" | "unspecified" | "failed" | "
|
|
686
|
+
step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
687
687
|
status: "unspecified" | "planned" | "completed" | "current";
|
|
688
688
|
expectedDurationMs: number;
|
|
689
689
|
}[];
|
|
@@ -695,7 +695,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
695
695
|
smartAccountAddress: string;
|
|
696
696
|
flowId: string;
|
|
697
697
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
698
|
-
currentStep: "validation" | "unspecified" | "failed" | "
|
|
698
|
+
currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
699
699
|
assetIds?: {
|
|
700
700
|
zippedAssetId: number;
|
|
701
701
|
unifiedAssetId: number;
|
|
@@ -747,7 +747,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
747
747
|
} | undefined;
|
|
748
748
|
progressTimeline: {
|
|
749
749
|
sequence: number;
|
|
750
|
-
step: "validation" | "unspecified" | "failed" | "
|
|
750
|
+
step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
751
751
|
status: "unspecified" | "planned" | "completed" | "current";
|
|
752
752
|
expectedDurationMs: number;
|
|
753
753
|
}[];
|
|
@@ -763,7 +763,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
763
763
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
764
764
|
readonly flowId: v.StringSchema<undefined>;
|
|
765
765
|
readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
766
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "
|
|
766
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
767
767
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
768
768
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
769
769
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -843,7 +843,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
843
843
|
}, undefined>, undefined>;
|
|
844
844
|
readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
845
845
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
846
|
-
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "
|
|
846
|
+
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
847
847
|
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "planned" | "completed" | "current">]>;
|
|
848
848
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
849
849
|
}, undefined>, undefined>, readonly []>;
|
|
@@ -861,7 +861,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
861
861
|
smartAccountAddress: string;
|
|
862
862
|
flowId: string;
|
|
863
863
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
864
|
-
currentStep: "validation" | "unspecified" | "failed" | "
|
|
864
|
+
currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
865
865
|
assetIds?: {
|
|
866
866
|
zippedAssetId: number;
|
|
867
867
|
unifiedAssetId: number;
|
|
@@ -913,7 +913,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
913
913
|
} | undefined;
|
|
914
914
|
progressTimeline: {
|
|
915
915
|
sequence: number;
|
|
916
|
-
step: "validation" | "unspecified" | "failed" | "
|
|
916
|
+
step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
917
917
|
status: "unspecified" | "planned" | "completed" | "current";
|
|
918
918
|
expectedDurationMs: number;
|
|
919
919
|
}[];
|
|
@@ -925,7 +925,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
925
925
|
smartAccountAddress: string;
|
|
926
926
|
flowId: string;
|
|
927
927
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
928
|
-
currentStep: "validation" | "unspecified" | "failed" | "
|
|
928
|
+
currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
929
929
|
assetIds?: {
|
|
930
930
|
zippedAssetId: number;
|
|
931
931
|
unifiedAssetId: number;
|
|
@@ -977,7 +977,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
977
977
|
} | undefined;
|
|
978
978
|
progressTimeline: {
|
|
979
979
|
sequence: number;
|
|
980
|
-
step: "validation" | "unspecified" | "failed" | "
|
|
980
|
+
step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
981
981
|
status: "unspecified" | "planned" | "completed" | "current";
|
|
982
982
|
expectedDurationMs: number;
|
|
983
983
|
}[];
|
|
@@ -989,7 +989,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
989
989
|
}>]>, undefined>;
|
|
990
990
|
readonly observedSteps: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
991
991
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
992
|
-
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "
|
|
992
|
+
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
993
993
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
994
994
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
995
995
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -1132,7 +1132,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1132
1132
|
}>]>, undefined>, readonly []>;
|
|
1133
1133
|
}, undefined>, v.TransformAction<{
|
|
1134
1134
|
sequence: number;
|
|
1135
|
-
step: "validation" | "unspecified" | "failed" | "
|
|
1135
|
+
step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1136
1136
|
assetIds?: {
|
|
1137
1137
|
zippedAssetId: number;
|
|
1138
1138
|
unifiedAssetId: number;
|
|
@@ -1195,7 +1195,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1195
1195
|
})[];
|
|
1196
1196
|
}, Omit<{
|
|
1197
1197
|
sequence: number;
|
|
1198
|
-
step: "validation" | "unspecified" | "failed" | "
|
|
1198
|
+
step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1199
1199
|
assetIds?: {
|
|
1200
1200
|
zippedAssetId: number;
|
|
1201
1201
|
unifiedAssetId: number;
|
|
@@ -1267,7 +1267,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1267
1267
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
1268
1268
|
readonly flowId: v.StringSchema<undefined>;
|
|
1269
1269
|
readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
1270
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "
|
|
1270
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1271
1271
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
1272
1272
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1273
1273
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -1347,7 +1347,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1347
1347
|
}, undefined>, undefined>;
|
|
1348
1348
|
readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1349
1349
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1350
|
-
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "
|
|
1350
|
+
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1351
1351
|
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "planned" | "completed" | "current">]>;
|
|
1352
1352
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
1353
1353
|
}, undefined>, undefined>, readonly []>;
|
|
@@ -1365,7 +1365,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1365
1365
|
smartAccountAddress: string;
|
|
1366
1366
|
flowId: string;
|
|
1367
1367
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
1368
|
-
currentStep: "validation" | "unspecified" | "failed" | "
|
|
1368
|
+
currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1369
1369
|
assetIds?: {
|
|
1370
1370
|
zippedAssetId: number;
|
|
1371
1371
|
unifiedAssetId: number;
|
|
@@ -1417,7 +1417,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1417
1417
|
} | undefined;
|
|
1418
1418
|
progressTimeline: {
|
|
1419
1419
|
sequence: number;
|
|
1420
|
-
step: "validation" | "unspecified" | "failed" | "
|
|
1420
|
+
step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1421
1421
|
status: "unspecified" | "planned" | "completed" | "current";
|
|
1422
1422
|
expectedDurationMs: number;
|
|
1423
1423
|
}[];
|
|
@@ -1429,7 +1429,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1429
1429
|
smartAccountAddress: string;
|
|
1430
1430
|
flowId: string;
|
|
1431
1431
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
1432
|
-
currentStep: "validation" | "unspecified" | "failed" | "
|
|
1432
|
+
currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1433
1433
|
assetIds?: {
|
|
1434
1434
|
zippedAssetId: number;
|
|
1435
1435
|
unifiedAssetId: number;
|
|
@@ -1481,7 +1481,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1481
1481
|
} | undefined;
|
|
1482
1482
|
progressTimeline: {
|
|
1483
1483
|
sequence: number;
|
|
1484
|
-
step: "validation" | "unspecified" | "failed" | "
|
|
1484
|
+
step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1485
1485
|
status: "unspecified" | "planned" | "completed" | "current";
|
|
1486
1486
|
expectedDurationMs: number;
|
|
1487
1487
|
}[];
|
|
@@ -1500,7 +1500,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1500
1500
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
1501
1501
|
readonly flowId: v.StringSchema<undefined>;
|
|
1502
1502
|
readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
1503
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "
|
|
1503
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1504
1504
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
1505
1505
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1506
1506
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -1580,7 +1580,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1580
1580
|
}, undefined>, undefined>;
|
|
1581
1581
|
readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1582
1582
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1583
|
-
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "
|
|
1583
|
+
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1584
1584
|
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "planned" | "completed" | "current">]>;
|
|
1585
1585
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
1586
1586
|
}, undefined>, undefined>, readonly []>;
|
|
@@ -1598,7 +1598,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1598
1598
|
smartAccountAddress: string;
|
|
1599
1599
|
flowId: string;
|
|
1600
1600
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
1601
|
-
currentStep: "validation" | "unspecified" | "failed" | "
|
|
1601
|
+
currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1602
1602
|
assetIds?: {
|
|
1603
1603
|
zippedAssetId: number;
|
|
1604
1604
|
unifiedAssetId: number;
|
|
@@ -1650,7 +1650,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1650
1650
|
} | undefined;
|
|
1651
1651
|
progressTimeline: {
|
|
1652
1652
|
sequence: number;
|
|
1653
|
-
step: "validation" | "unspecified" | "failed" | "
|
|
1653
|
+
step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1654
1654
|
status: "unspecified" | "planned" | "completed" | "current";
|
|
1655
1655
|
expectedDurationMs: number;
|
|
1656
1656
|
}[];
|
|
@@ -1662,7 +1662,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1662
1662
|
smartAccountAddress: string;
|
|
1663
1663
|
flowId: string;
|
|
1664
1664
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
1665
|
-
currentStep: "validation" | "unspecified" | "failed" | "
|
|
1665
|
+
currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1666
1666
|
assetIds?: {
|
|
1667
1667
|
zippedAssetId: number;
|
|
1668
1668
|
unifiedAssetId: number;
|
|
@@ -1714,7 +1714,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1714
1714
|
} | undefined;
|
|
1715
1715
|
progressTimeline: {
|
|
1716
1716
|
sequence: number;
|
|
1717
|
-
step: "validation" | "unspecified" | "failed" | "
|
|
1717
|
+
step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1718
1718
|
status: "unspecified" | "planned" | "completed" | "current";
|
|
1719
1719
|
expectedDurationMs: number;
|
|
1720
1720
|
}[];
|
|
@@ -1726,7 +1726,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1726
1726
|
}>]>, undefined>;
|
|
1727
1727
|
readonly observedSteps: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1728
1728
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1729
|
-
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "
|
|
1729
|
+
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1730
1730
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
1731
1731
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1732
1732
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -1869,7 +1869,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1869
1869
|
}>]>, undefined>, readonly []>;
|
|
1870
1870
|
}, undefined>, v.TransformAction<{
|
|
1871
1871
|
sequence: number;
|
|
1872
|
-
step: "validation" | "unspecified" | "failed" | "
|
|
1872
|
+
step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1873
1873
|
assetIds?: {
|
|
1874
1874
|
zippedAssetId: number;
|
|
1875
1875
|
unifiedAssetId: number;
|
|
@@ -1932,7 +1932,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1932
1932
|
})[];
|
|
1933
1933
|
}, Omit<{
|
|
1934
1934
|
sequence: number;
|
|
1935
|
-
step: "validation" | "unspecified" | "failed" | "
|
|
1935
|
+
step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1936
1936
|
assetIds?: {
|
|
1937
1937
|
zippedAssetId: number;
|
|
1938
1938
|
unifiedAssetId: number;
|
|
@@ -2009,7 +2009,7 @@ declare const LifecycleFlowTxMatchSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
2009
2009
|
readonly txOccurrenceIndex: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, number>]>;
|
|
2010
2010
|
readonly sourceDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
|
|
2011
2011
|
readonly destinationDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
|
|
2012
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "
|
|
2012
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
2013
2013
|
readonly isOpen: v.BooleanSchema<undefined>;
|
|
2014
2014
|
readonly isTerminal: v.BooleanSchema<undefined>;
|
|
2015
2015
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -2043,7 +2043,7 @@ declare const LifecycleFlowTxMatchSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
2043
2043
|
txOccurrenceIndex?: number | undefined;
|
|
2044
2044
|
sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
2045
2045
|
destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
2046
|
-
currentStep: "validation" | "unspecified" | "failed" | "
|
|
2046
|
+
currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
2047
2047
|
isOpen: boolean;
|
|
2048
2048
|
isTerminal: boolean;
|
|
2049
2049
|
assetIds?: {
|
|
@@ -2071,7 +2071,7 @@ declare const LifecycleFlowTxMatchSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
2071
2071
|
txOccurrenceIndex?: number | undefined;
|
|
2072
2072
|
sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
2073
2073
|
destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
2074
|
-
currentStep: "validation" | "unspecified" | "failed" | "
|
|
2074
|
+
currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
2075
2075
|
isOpen: boolean;
|
|
2076
2076
|
isTerminal: boolean;
|
|
2077
2077
|
assetIds?: {
|
|
@@ -2104,7 +2104,7 @@ declare const ListLifecycleFlowsByTxOutputSchema: v.ObjectSchema<{
|
|
|
2104
2104
|
readonly txOccurrenceIndex: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, number>]>;
|
|
2105
2105
|
readonly sourceDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
|
|
2106
2106
|
readonly destinationDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
|
|
2107
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "
|
|
2107
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
2108
2108
|
readonly isOpen: v.BooleanSchema<undefined>;
|
|
2109
2109
|
readonly isTerminal: v.BooleanSchema<undefined>;
|
|
2110
2110
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -2138,7 +2138,7 @@ declare const ListLifecycleFlowsByTxOutputSchema: v.ObjectSchema<{
|
|
|
2138
2138
|
txOccurrenceIndex?: number | undefined;
|
|
2139
2139
|
sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
2140
2140
|
destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
2141
|
-
currentStep: "validation" | "unspecified" | "failed" | "
|
|
2141
|
+
currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
2142
2142
|
isOpen: boolean;
|
|
2143
2143
|
isTerminal: boolean;
|
|
2144
2144
|
assetIds?: {
|
|
@@ -2166,7 +2166,7 @@ declare const ListLifecycleFlowsByTxOutputSchema: v.ObjectSchema<{
|
|
|
2166
2166
|
txOccurrenceIndex?: number | undefined;
|
|
2167
2167
|
sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
2168
2168
|
destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
2169
|
-
currentStep: "validation" | "unspecified" | "failed" | "
|
|
2169
|
+
currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
2170
2170
|
isOpen: boolean;
|
|
2171
2171
|
isTerminal: boolean;
|
|
2172
2172
|
assetIds?: {
|
|
@@ -30,7 +30,7 @@ declare function createMarketOverviewSchema(scales: SdkScales): v.SchemaWithPipe
|
|
|
30
30
|
readonly bestAskTicks: v.BigintSchema<undefined>;
|
|
31
31
|
readonly bestAskQtyScaled: v.BigintSchema<undefined>;
|
|
32
32
|
readonly sparklines: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
33
|
-
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
33
|
+
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "1h" | "24h" | "1w" | "1m">]>;
|
|
34
34
|
readonly closeTicks: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
35
35
|
}, undefined>, undefined>, readonly []>;
|
|
36
36
|
readonly indexPriceTicks: v.BigintSchema<undefined>;
|
|
@@ -50,7 +50,7 @@ declare function createMarketOverviewSchema(scales: SdkScales): v.SchemaWithPipe
|
|
|
50
50
|
bestAskTicks: bigint;
|
|
51
51
|
bestAskQtyScaled: bigint;
|
|
52
52
|
sparklines: {
|
|
53
|
-
interval: "unspecified" | "
|
|
53
|
+
interval: "unspecified" | "1h" | "24h" | "1w" | "1m";
|
|
54
54
|
closeTicks: bigint[];
|
|
55
55
|
}[];
|
|
56
56
|
indexPriceTicks: bigint;
|
|
@@ -80,7 +80,7 @@ declare const ListMarketOverviewInputSchema: v.SchemaWithPipe<readonly [v.Strict
|
|
|
80
80
|
readonly orderBy: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["change_24h_bps", "volume_24h_usd", "last_price", "date_added"], undefined>, "volume_24h_usd">, v.TransformAction<"change_24h_bps" | "volume_24h_usd" | "last_price" | "date_added", MarketOrderBy.ORDER_BY_CHANGE_24H_BPS | MarketOrderBy.ORDER_BY_VOLUME_24H_USD | MarketOrderBy.ORDER_BY_LAST_PRICE | MarketOrderBy.ORDER_BY_DATE_ADDED>]>;
|
|
81
81
|
readonly sort: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["asc", "desc"], undefined>, "desc">, v.TransformAction<"asc" | "desc", SortDirection.SORT_ASC | SortDirection.SORT_DESC>]>;
|
|
82
82
|
readonly includeSparklines: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
83
|
-
readonly sparklineIntervals: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["1h", "24h", "1w", "1m"], undefined>, undefined>, readonly ["24h"]>, v.TransformAction<("
|
|
83
|
+
readonly sparklineIntervals: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["1h", "24h", "1w", "1m"], undefined>, undefined>, readonly ["24h"]>, v.TransformAction<("1h" | "24h" | "1w" | "1m")[], (SparklineInterval.SPARKLINE_1H | SparklineInterval.SPARKLINE_24H | SparklineInterval.SPARKLINE_1W | SparklineInterval.SPARKLINE_1M)[]>]>;
|
|
84
84
|
}, undefined>, v.TransformAction<{
|
|
85
85
|
symbolIds: number[];
|
|
86
86
|
limit: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-enums.codecs.js","names":[],"sources":["../../../src/services/orders/order-enums.codecs.ts"],"sourcesContent":["import * as ProtoWrite from \"../../gen/orders/v1/orders_pb.js\";\nimport * as v from \"valibot\";\nimport type { InputToProto, ProtoToOutput } from \"../../utils/types.js\";\n\nexport const ORDER_SIDE_VALUES = [\"buy\", \"sell\"] as const;\nexport type OrderSideValue = (typeof ORDER_SIDE_VALUES)[number];\n\nexport const ORDER_TYPE_VALUES = [\"limit\", \"market\"] as const;\nexport type OrderTypeValue = (typeof ORDER_TYPE_VALUES)[number];\n\nexport const TIME_IN_FORCE_VALUES = [\"gtc\", \"ioc\", \"fok\"] as const;\nexport type TimeInForceValue = (typeof TIME_IN_FORCE_VALUES)[number];\nexport const TIME_IN_FORCE_OUTPUT_VALUES = [\"
|
|
1
|
+
{"version":3,"file":"order-enums.codecs.js","names":[],"sources":["../../../src/services/orders/order-enums.codecs.ts"],"sourcesContent":["import * as ProtoWrite from \"../../gen/orders/v1/orders_pb.js\";\nimport * as v from \"valibot\";\nimport type { InputToProto, ProtoToOutput } from \"../../utils/types.js\";\n\nexport const ORDER_SIDE_VALUES = [\"buy\", \"sell\"] as const;\nexport type OrderSideValue = (typeof ORDER_SIDE_VALUES)[number];\n\nexport const ORDER_TYPE_VALUES = [\"limit\", \"market\"] as const;\nexport type OrderTypeValue = (typeof ORDER_TYPE_VALUES)[number];\n\nexport const TIME_IN_FORCE_VALUES = [\"gtc\", \"ioc\", \"fok\"] as const;\nexport type TimeInForceValue = (typeof TIME_IN_FORCE_VALUES)[number];\nexport const TIME_IN_FORCE_OUTPUT_VALUES = [\"gtc\", \"ioc\", \"fok\", \"gtd\"] as const;\nexport type TimeInForceOutputValue = (typeof TIME_IN_FORCE_OUTPUT_VALUES)[number];\n\nexport const FEE_ASSET_VALUES = [\"quote\", \"base\"] as const;\nexport type FeeAssetValue = (typeof FEE_ASSET_VALUES)[number];\n\nexport const SELF_TRADE_PREVENTION_MODE_VALUES = [\n \"expire_taker\",\n \"expire_maker\",\n \"expire_both\",\n] as const;\nexport type SelfTradePreventionModeValue = (typeof SELF_TRADE_PREVENTION_MODE_VALUES)[number];\n\nexport const TRIGGER_PRICE_SOURCE_VALUES = [\"last\", \"index\", \"mark\"] as const;\nexport type TriggerPriceSourceValue = (typeof TRIGGER_PRICE_SOURCE_VALUES)[number];\n\nexport const OrderSideCodec = {\n inputToProto: {\n buy: ProtoWrite.Side.BUY,\n sell: ProtoWrite.Side.SELL,\n } satisfies InputToProto<OrderSideValue, ProtoWrite.Side>,\n protoToOutput: {\n [ProtoWrite.Side.SIDE_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.Side.BUY]: \"buy\",\n [ProtoWrite.Side.SELL]: \"sell\",\n } satisfies ProtoToOutput<ProtoWrite.Side, OrderSideValue>,\n} as const;\n\nexport const OrderTypeCodec = {\n inputToProto: {\n limit: ProtoWrite.OrderType.LIMIT,\n market: ProtoWrite.OrderType.MARKET,\n } satisfies InputToProto<OrderTypeValue, ProtoWrite.OrderType>,\n protoToOutput: {\n [ProtoWrite.OrderType.ORDER_TYPE_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.OrderType.LIMIT]: \"limit\",\n [ProtoWrite.OrderType.MARKET]: \"market\",\n } satisfies ProtoToOutput<ProtoWrite.OrderType, OrderTypeValue>,\n} as const;\n\nexport const TimeInForceCodec = {\n inputToProto: {\n gtc: ProtoWrite.TimeInForce.GTC,\n ioc: ProtoWrite.TimeInForce.IOC,\n fok: ProtoWrite.TimeInForce.FOK,\n } satisfies InputToProto<TimeInForceValue, ProtoWrite.TimeInForce>,\n protoToOutput: {\n [ProtoWrite.TimeInForce.TIME_IN_FORCE_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.TimeInForce.GTC]: \"gtc\",\n [ProtoWrite.TimeInForce.IOC]: \"ioc\",\n [ProtoWrite.TimeInForce.FOK]: \"fok\",\n [ProtoWrite.TimeInForce.GTD]: \"gtd\",\n } satisfies ProtoToOutput<ProtoWrite.TimeInForce, TimeInForceOutputValue>,\n} as const;\n\nexport const FeeAssetCodec = {\n inputToProto: {\n quote: ProtoWrite.FeeAsset.QUOTE,\n base: ProtoWrite.FeeAsset.BASE,\n } satisfies InputToProto<FeeAssetValue, ProtoWrite.FeeAsset>,\n protoToOutput: {\n [ProtoWrite.FeeAsset.FEE_ASSET_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.FeeAsset.QUOTE]: \"quote\",\n [ProtoWrite.FeeAsset.BASE]: \"base\",\n } satisfies ProtoToOutput<ProtoWrite.FeeAsset, FeeAssetValue>,\n} as const;\n\nexport const SelfTradePreventionModeCodec = {\n inputToProto: {\n expire_taker: ProtoWrite.SelfTradePreventionMode.EXPIRE_TAKER,\n expire_maker: ProtoWrite.SelfTradePreventionMode.EXPIRE_MAKER,\n expire_both: ProtoWrite.SelfTradePreventionMode.EXPIRE_BOTH,\n } satisfies InputToProto<SelfTradePreventionModeValue, ProtoWrite.SelfTradePreventionMode>,\n protoToOutput: {\n [ProtoWrite.SelfTradePreventionMode.SELF_TRADE_PREVENTION_MODE_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.SelfTradePreventionMode.EXPIRE_TAKER]: \"expire_taker\",\n [ProtoWrite.SelfTradePreventionMode.EXPIRE_MAKER]: \"expire_maker\",\n [ProtoWrite.SelfTradePreventionMode.EXPIRE_BOTH]: \"expire_both\",\n } satisfies ProtoToOutput<ProtoWrite.SelfTradePreventionMode, SelfTradePreventionModeValue>,\n} as const;\n\nexport const TriggerPriceSourceCodec = {\n inputToProto: {\n last: ProtoWrite.TriggerPriceSource.LAST_PRICE,\n index: ProtoWrite.TriggerPriceSource.INDEX_PRICE,\n mark: ProtoWrite.TriggerPriceSource.MARK_PRICE,\n } satisfies InputToProto<TriggerPriceSourceValue, ProtoWrite.TriggerPriceSource>,\n protoToOutput: {\n [ProtoWrite.TriggerPriceSource.TRIGGER_PRICE_SOURCE_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.TriggerPriceSource.LAST_PRICE]: \"last\",\n [ProtoWrite.TriggerPriceSource.INDEX_PRICE]: \"index\",\n [ProtoWrite.TriggerPriceSource.MARK_PRICE]: \"mark\",\n } satisfies ProtoToOutput<ProtoWrite.TriggerPriceSource, TriggerPriceSourceValue>,\n} as const;\n\n/**\n * Price a trigger watches: `\"last\"` traded price (the default when omitted) or\n * the market's `\"index\"` price. Spot markets do not support the mark price.\n */\nexport const TriggerPriceSourceInputSchema = v.optional(\n v.pipe(\n v.picklist([\"last\", \"index\"]),\n v.transform((source) => TriggerPriceSourceCodec.inputToProto[source]),\n ),\n);\n"],"mappings":";;;AAIA,MAAa,oBAAoB,CAAC,OAAO,MAAM;AAW/C,MAAa,mBAAmB,CAAC,SAAS,MAAM;AAGhD,MAAa,oCAAoC;CAC7C;CACA;CACA;AACJ;AAMA,MAAa,iBAAiB;CAC1B,cAAc;EACV,KAAA;EACA,MAAA;CACJ;CACA,eAAe;GACyB,IAAA;GACb,IAAA;GACC,IAAA;CAC5B;AACJ;AAEA,MAAa,iBAAiB;CAC1B,cAAc;EACV,OAAA;EACA,QAAA;CACJ;CACA,eAAe;GACoC,IAAA;GACjB,IAAA;GACC,IAAA;CACnC;AACJ;AAEA,MAAa,mBAAmB;CAC5B,cAAc;EACV,KAAA;EACA,KAAA;EACA,KAAA;CACJ;CACA,eAAe;GACyC,IAAA;GACtB,IAAA;GACA,IAAA;GACA,IAAA;GACA,IAAA;CAClC;AACJ;AAEA,MAAa,gBAAgB;CACzB,cAAc;EACV,OAAA;EACA,MAAA;CACJ;CACA,eAAe;GACkC,IAAA;GAChB,IAAA;GACD,IAAA;CAChC;AACJ;AAEA,MAAa,+BAA+B;CACxC,cAAc;EACV,cAAA;EACA,cAAA;EACA,aAAA;CACJ;CACA,eAAe;GACkE,IAAA;GAC1B,IAAA;GACA,IAAA;GACD,IAAA;CACtD;AACJ;AAEA,MAAa,0BAA0B;CACnC,cAAc;EACV,MAAA;EACA,OAAA;EACA,MAAA;CACJ;CACA,eAAe;GACuD,IAAA;GACtB,IAAA;GACC,IAAA;GACD,IAAA;CAChD;AACJ;;;;;AAMA,MAAa,gCAAgC,EAAE,SAC3C,EAAE,KACE,EAAE,SAAS,CAAC,QAAQ,OAAO,CAAC,GAC5B,EAAE,WAAW,WAAW,wBAAwB,aAAa,OAAO,CACxE,CACJ"}
|