@polyester/sdk 0.36.0-devnet-20261116150503 → 0.36.0-devnet-20261116180931
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/realtime/client.js +1 -1
- package/dist/realtime/client.js.map +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/assistant/assistant-events.schemas.d.ts +32 -32
- package/dist/services/assistant/assistant.schemas.d.ts +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +19 -19
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/changelog/changelog.schemas.d.ts +38 -38
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
- package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +8 -8
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +11 -11
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +68 -68
- package/dist/services/orderbook/orderbook.d.ts +1 -1
- package/dist/services/orderbook/orderbook.js +7 -7
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +3 -3
- package/dist/services/orders/orders-batch.schemas.d.ts +79 -79
- package/dist/services/orders/orders-input.schemas.d.ts +9 -9
- package/dist/services/orders/orders-output.schemas.d.ts +14 -14
- package/dist/services/price-alerts/price-alerts.schemas.d.ts +10 -10
- package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +15 -15
- package/dist/services/system/system.schemas.d.ts +13 -13
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +45 -45
- package/dist/shared/rate-limit.schemas.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ declare const LifecycleAssetIdsSchema: v.ObjectSchema<{
|
|
|
7
7
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
8
8
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9
9
|
}, undefined>;
|
|
10
|
-
declare const LifecycleFlowStateEnumSchema: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
10
|
+
declare const LifecycleFlowStateEnumSchema: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "failed" | "pending_source" | "pending_polyester_chain" | "pending_ledger" | "dropped" | "refunded">]>;
|
|
11
11
|
declare const LifecycleZipperReasonSchema: v.ObjectSchema<{
|
|
12
12
|
readonly code: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, ZipperReasonCodeValue>]>;
|
|
13
13
|
readonly reasonId: v.StringSchema<undefined>;
|
|
@@ -28,7 +28,7 @@ declare const ListLifecycleFlowsInputSchema: v.SchemaWithPipe<readonly [v.Strict
|
|
|
28
28
|
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 500, undefined>]>, 100>;
|
|
29
29
|
readonly sort: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["newest", "oldest"], undefined>, "newest">, v.TransformAction<"newest" | "oldest", Sort.NEWEST | Sort.OLDEST>]>;
|
|
30
30
|
readonly flowKind: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["deposit", "withdraw", "transfer"], undefined>, undefined>, v.TransformAction<"deposit" | "withdraw" | "transfer" | undefined, FlowKind>]>;
|
|
31
|
-
readonly flowState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["pending_source", "pending_polyester_chain", "pending_ledger", "completed", "failed", "dropped", "refunded"], undefined>, undefined>, v.TransformAction<"
|
|
31
|
+
readonly flowState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["pending_source", "pending_polyester_chain", "pending_ledger", "completed", "failed", "dropped", "refunded"], undefined>, undefined>, v.TransformAction<"completed" | "failed" | "pending_source" | "pending_polyester_chain" | "pending_ledger" | "dropped" | "refunded" | undefined, FlowState>]>;
|
|
32
32
|
readonly txRef: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "txHash is required.">, v.CheckAction<string, "txHash must be a valid EVM hash or chain-native transaction id.">, v.TransformAction<string, string>]>, undefined>;
|
|
33
33
|
readonly scope: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["all", "open", "terminal"], undefined>, "all">, v.TransformAction<"open" | "all" | "terminal", ListScope.LIST_ALL | ListScope.LIST_OPEN_ONLY | ListScope.LIST_TERMINAL_ONLY>]>;
|
|
34
34
|
readonly polyesterChainIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>, undefined>;
|
|
@@ -97,7 +97,7 @@ declare const ListLifecycleAccountFlowsInputSchema: v.SchemaWithPipe<readonly [v
|
|
|
97
97
|
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 500, undefined>]>, 100>;
|
|
98
98
|
readonly sort: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["newest", "oldest"], undefined>, "newest">, v.TransformAction<"newest" | "oldest", Sort.NEWEST | Sort.OLDEST>]>;
|
|
99
99
|
readonly flowKind: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["deposit", "withdraw", "transfer"], undefined>, undefined>, v.TransformAction<"deposit" | "withdraw" | "transfer" | undefined, FlowKind>]>;
|
|
100
|
-
readonly flowState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["pending_source", "pending_polyester_chain", "pending_ledger", "completed", "failed", "dropped", "refunded"], undefined>, undefined>, v.TransformAction<"
|
|
100
|
+
readonly flowState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["pending_source", "pending_polyester_chain", "pending_ledger", "completed", "failed", "dropped", "refunded"], undefined>, undefined>, v.TransformAction<"completed" | "failed" | "pending_source" | "pending_polyester_chain" | "pending_ledger" | "dropped" | "refunded" | undefined, FlowState>]>;
|
|
101
101
|
readonly txRef: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "txHash is required.">, v.CheckAction<string, "txHash must be a valid EVM hash or chain-native transaction id.">, v.TransformAction<string, string>]>, undefined>;
|
|
102
102
|
readonly scope: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["all", "open", "terminal"], undefined>, "all">, v.TransformAction<"open" | "all" | "terminal", ListScope.LIST_ALL | ListScope.LIST_OPEN_ONLY | ListScope.LIST_TERMINAL_ONLY>]>;
|
|
103
103
|
readonly polyesterChainIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>, undefined>;
|
|
@@ -277,7 +277,7 @@ declare const LifecycleFlowStepActivitySchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
277
277
|
}>]>;
|
|
278
278
|
declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
279
279
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
280
|
-
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "
|
|
280
|
+
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
281
281
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
282
282
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
283
283
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -426,7 +426,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
426
426
|
readonly refundAddress: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
427
427
|
}, undefined>, v.TransformAction<{
|
|
428
428
|
sequence: number;
|
|
429
|
-
step: "validation" | "unspecified" | "
|
|
429
|
+
step: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
430
430
|
assetIds?: {
|
|
431
431
|
zippedAssetId: number;
|
|
432
432
|
unifiedAssetId: number;
|
|
@@ -490,7 +490,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
490
490
|
refundAddress: string;
|
|
491
491
|
}, Omit<{
|
|
492
492
|
sequence: number;
|
|
493
|
-
step: "validation" | "unspecified" | "
|
|
493
|
+
step: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
494
494
|
assetIds?: {
|
|
495
495
|
zippedAssetId: number;
|
|
496
496
|
unifiedAssetId: number;
|
|
@@ -557,8 +557,8 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
557
557
|
}>]>;
|
|
558
558
|
declare const LifecycleFlowTimelineItemSchema: v.ObjectSchema<{
|
|
559
559
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
560
|
-
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "
|
|
561
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "
|
|
560
|
+
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
561
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "current" | "planned">]>;
|
|
562
562
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
563
563
|
}, undefined>;
|
|
564
564
|
declare const LifecycleFlowSummaryProgressSchema: v.ObjectSchema<{
|
|
@@ -576,7 +576,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
576
576
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
577
577
|
readonly flowId: v.StringSchema<undefined>;
|
|
578
578
|
readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
579
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "
|
|
579
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
580
580
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
581
581
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
582
582
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -656,8 +656,8 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
656
656
|
}, undefined>, undefined>;
|
|
657
657
|
readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
658
658
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
659
|
-
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "
|
|
660
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "
|
|
659
|
+
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
660
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "current" | "planned">]>;
|
|
661
661
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
662
662
|
}, undefined>, undefined>, readonly []>;
|
|
663
663
|
readonly estimatedCompletionUnixMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
@@ -669,12 +669,12 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
669
669
|
* `"unspecified"` outside `listAccountFlows`, `getAccountFlow` and `listFlows` with an
|
|
670
670
|
* `accountSelector`.
|
|
671
671
|
*/
|
|
672
|
-
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "
|
|
672
|
+
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "recipient">]>, FlowParticipation.PARTICIPATION_UNSPECIFIED>;
|
|
673
673
|
}, undefined>, v.TransformAction<{
|
|
674
674
|
smartAccountAddress: string;
|
|
675
675
|
flowId: string;
|
|
676
676
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
677
|
-
currentStep: "validation" | "unspecified" | "
|
|
677
|
+
currentStep: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
678
678
|
assetIds?: {
|
|
679
679
|
zippedAssetId: number;
|
|
680
680
|
unifiedAssetId: number;
|
|
@@ -726,18 +726,18 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
726
726
|
} | undefined;
|
|
727
727
|
progressTimeline: {
|
|
728
728
|
sequence: number;
|
|
729
|
-
step: "validation" | "unspecified" | "
|
|
730
|
-
status: "unspecified" | "completed" | "
|
|
729
|
+
step: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
730
|
+
status: "unspecified" | "completed" | "current" | "planned";
|
|
731
731
|
expectedDurationMs: number;
|
|
732
732
|
}[];
|
|
733
733
|
estimatedCompletionUnixMs: number;
|
|
734
734
|
isDelayed: boolean;
|
|
735
|
-
participation: "
|
|
735
|
+
participation: "unspecified" | "owner" | "recipient";
|
|
736
736
|
}, Omit<{
|
|
737
737
|
smartAccountAddress: string;
|
|
738
738
|
flowId: string;
|
|
739
739
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
740
|
-
currentStep: "validation" | "unspecified" | "
|
|
740
|
+
currentStep: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
741
741
|
assetIds?: {
|
|
742
742
|
zippedAssetId: number;
|
|
743
743
|
unifiedAssetId: number;
|
|
@@ -789,13 +789,13 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
789
789
|
} | undefined;
|
|
790
790
|
progressTimeline: {
|
|
791
791
|
sequence: number;
|
|
792
|
-
step: "validation" | "unspecified" | "
|
|
793
|
-
status: "unspecified" | "completed" | "
|
|
792
|
+
step: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
793
|
+
status: "unspecified" | "completed" | "current" | "planned";
|
|
794
794
|
expectedDurationMs: number;
|
|
795
795
|
}[];
|
|
796
796
|
estimatedCompletionUnixMs: number;
|
|
797
797
|
isDelayed: boolean;
|
|
798
|
-
participation: "
|
|
798
|
+
participation: "unspecified" | "owner" | "recipient";
|
|
799
799
|
}, "amountE18"> & {
|
|
800
800
|
amount?: string;
|
|
801
801
|
}>]>;
|
|
@@ -804,7 +804,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
804
804
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
805
805
|
readonly flowId: v.StringSchema<undefined>;
|
|
806
806
|
readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
807
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "
|
|
807
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
808
808
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
809
809
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
810
810
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -884,8 +884,8 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
884
884
|
}, undefined>, undefined>;
|
|
885
885
|
readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
886
886
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
887
|
-
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "
|
|
888
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "
|
|
887
|
+
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
888
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "current" | "planned">]>;
|
|
889
889
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
890
890
|
}, undefined>, undefined>, readonly []>;
|
|
891
891
|
readonly estimatedCompletionUnixMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
@@ -897,12 +897,12 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
897
897
|
* `"unspecified"` outside `listAccountFlows`, `getAccountFlow` and `listFlows` with an
|
|
898
898
|
* `accountSelector`.
|
|
899
899
|
*/
|
|
900
|
-
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "
|
|
900
|
+
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "recipient">]>, FlowParticipation.PARTICIPATION_UNSPECIFIED>;
|
|
901
901
|
}, undefined>, v.TransformAction<{
|
|
902
902
|
smartAccountAddress: string;
|
|
903
903
|
flowId: string;
|
|
904
904
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
905
|
-
currentStep: "validation" | "unspecified" | "
|
|
905
|
+
currentStep: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
906
906
|
assetIds?: {
|
|
907
907
|
zippedAssetId: number;
|
|
908
908
|
unifiedAssetId: number;
|
|
@@ -954,18 +954,18 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
954
954
|
} | undefined;
|
|
955
955
|
progressTimeline: {
|
|
956
956
|
sequence: number;
|
|
957
|
-
step: "validation" | "unspecified" | "
|
|
958
|
-
status: "unspecified" | "completed" | "
|
|
957
|
+
step: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
958
|
+
status: "unspecified" | "completed" | "current" | "planned";
|
|
959
959
|
expectedDurationMs: number;
|
|
960
960
|
}[];
|
|
961
961
|
estimatedCompletionUnixMs: number;
|
|
962
962
|
isDelayed: boolean;
|
|
963
|
-
participation: "
|
|
963
|
+
participation: "unspecified" | "owner" | "recipient";
|
|
964
964
|
}, Omit<{
|
|
965
965
|
smartAccountAddress: string;
|
|
966
966
|
flowId: string;
|
|
967
967
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
968
|
-
currentStep: "validation" | "unspecified" | "
|
|
968
|
+
currentStep: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
969
969
|
assetIds?: {
|
|
970
970
|
zippedAssetId: number;
|
|
971
971
|
unifiedAssetId: number;
|
|
@@ -1017,19 +1017,19 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1017
1017
|
} | undefined;
|
|
1018
1018
|
progressTimeline: {
|
|
1019
1019
|
sequence: number;
|
|
1020
|
-
step: "validation" | "unspecified" | "
|
|
1021
|
-
status: "unspecified" | "completed" | "
|
|
1020
|
+
step: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1021
|
+
status: "unspecified" | "completed" | "current" | "planned";
|
|
1022
1022
|
expectedDurationMs: number;
|
|
1023
1023
|
}[];
|
|
1024
1024
|
estimatedCompletionUnixMs: number;
|
|
1025
1025
|
isDelayed: boolean;
|
|
1026
|
-
participation: "
|
|
1026
|
+
participation: "unspecified" | "owner" | "recipient";
|
|
1027
1027
|
}, "amountE18"> & {
|
|
1028
1028
|
amount?: string;
|
|
1029
1029
|
}>]>, undefined>;
|
|
1030
1030
|
readonly observedSteps: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1031
1031
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1032
|
-
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "
|
|
1032
|
+
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1033
1033
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
1034
1034
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1035
1035
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -1178,7 +1178,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1178
1178
|
readonly refundAddress: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
1179
1179
|
}, undefined>, v.TransformAction<{
|
|
1180
1180
|
sequence: number;
|
|
1181
|
-
step: "validation" | "unspecified" | "
|
|
1181
|
+
step: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1182
1182
|
assetIds?: {
|
|
1183
1183
|
zippedAssetId: number;
|
|
1184
1184
|
unifiedAssetId: number;
|
|
@@ -1242,7 +1242,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1242
1242
|
refundAddress: string;
|
|
1243
1243
|
}, Omit<{
|
|
1244
1244
|
sequence: number;
|
|
1245
|
-
step: "validation" | "unspecified" | "
|
|
1245
|
+
step: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1246
1246
|
assetIds?: {
|
|
1247
1247
|
zippedAssetId: number;
|
|
1248
1248
|
unifiedAssetId: number;
|
|
@@ -1314,7 +1314,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1314
1314
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
1315
1315
|
readonly flowId: v.StringSchema<undefined>;
|
|
1316
1316
|
readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
1317
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "
|
|
1317
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1318
1318
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
1319
1319
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1320
1320
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -1394,8 +1394,8 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1394
1394
|
}, undefined>, undefined>;
|
|
1395
1395
|
readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1396
1396
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1397
|
-
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "
|
|
1398
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "
|
|
1397
|
+
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1398
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "current" | "planned">]>;
|
|
1399
1399
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
1400
1400
|
}, undefined>, undefined>, readonly []>;
|
|
1401
1401
|
readonly estimatedCompletionUnixMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
@@ -1407,12 +1407,12 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1407
1407
|
* `"unspecified"` outside `listAccountFlows`, `getAccountFlow` and `listFlows` with an
|
|
1408
1408
|
* `accountSelector`.
|
|
1409
1409
|
*/
|
|
1410
|
-
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "
|
|
1410
|
+
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "recipient">]>, FlowParticipation.PARTICIPATION_UNSPECIFIED>;
|
|
1411
1411
|
}, undefined>, v.TransformAction<{
|
|
1412
1412
|
smartAccountAddress: string;
|
|
1413
1413
|
flowId: string;
|
|
1414
1414
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
1415
|
-
currentStep: "validation" | "unspecified" | "
|
|
1415
|
+
currentStep: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1416
1416
|
assetIds?: {
|
|
1417
1417
|
zippedAssetId: number;
|
|
1418
1418
|
unifiedAssetId: number;
|
|
@@ -1464,18 +1464,18 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1464
1464
|
} | undefined;
|
|
1465
1465
|
progressTimeline: {
|
|
1466
1466
|
sequence: number;
|
|
1467
|
-
step: "validation" | "unspecified" | "
|
|
1468
|
-
status: "unspecified" | "completed" | "
|
|
1467
|
+
step: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1468
|
+
status: "unspecified" | "completed" | "current" | "planned";
|
|
1469
1469
|
expectedDurationMs: number;
|
|
1470
1470
|
}[];
|
|
1471
1471
|
estimatedCompletionUnixMs: number;
|
|
1472
1472
|
isDelayed: boolean;
|
|
1473
|
-
participation: "
|
|
1473
|
+
participation: "unspecified" | "owner" | "recipient";
|
|
1474
1474
|
}, Omit<{
|
|
1475
1475
|
smartAccountAddress: string;
|
|
1476
1476
|
flowId: string;
|
|
1477
1477
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
1478
|
-
currentStep: "validation" | "unspecified" | "
|
|
1478
|
+
currentStep: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1479
1479
|
assetIds?: {
|
|
1480
1480
|
zippedAssetId: number;
|
|
1481
1481
|
unifiedAssetId: number;
|
|
@@ -1527,13 +1527,13 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1527
1527
|
} | undefined;
|
|
1528
1528
|
progressTimeline: {
|
|
1529
1529
|
sequence: number;
|
|
1530
|
-
step: "validation" | "unspecified" | "
|
|
1531
|
-
status: "unspecified" | "completed" | "
|
|
1530
|
+
step: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1531
|
+
status: "unspecified" | "completed" | "current" | "planned";
|
|
1532
1532
|
expectedDurationMs: number;
|
|
1533
1533
|
}[];
|
|
1534
1534
|
estimatedCompletionUnixMs: number;
|
|
1535
1535
|
isDelayed: boolean;
|
|
1536
|
-
participation: "
|
|
1536
|
+
participation: "unspecified" | "owner" | "recipient";
|
|
1537
1537
|
}, "amountE18"> & {
|
|
1538
1538
|
amount?: string;
|
|
1539
1539
|
}>]>, undefined>, readonly []>;
|
|
@@ -1545,7 +1545,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1545
1545
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
1546
1546
|
readonly flowId: v.StringSchema<undefined>;
|
|
1547
1547
|
readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
1548
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "
|
|
1548
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1549
1549
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
1550
1550
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1551
1551
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -1625,8 +1625,8 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1625
1625
|
}, undefined>, undefined>;
|
|
1626
1626
|
readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1627
1627
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1628
|
-
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "
|
|
1629
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "
|
|
1628
|
+
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1629
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "current" | "planned">]>;
|
|
1630
1630
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
1631
1631
|
}, undefined>, undefined>, readonly []>;
|
|
1632
1632
|
readonly estimatedCompletionUnixMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
@@ -1638,12 +1638,12 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1638
1638
|
* `"unspecified"` outside `listAccountFlows`, `getAccountFlow` and `listFlows` with an
|
|
1639
1639
|
* `accountSelector`.
|
|
1640
1640
|
*/
|
|
1641
|
-
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "
|
|
1641
|
+
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "recipient">]>, FlowParticipation.PARTICIPATION_UNSPECIFIED>;
|
|
1642
1642
|
}, undefined>, v.TransformAction<{
|
|
1643
1643
|
smartAccountAddress: string;
|
|
1644
1644
|
flowId: string;
|
|
1645
1645
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
1646
|
-
currentStep: "validation" | "unspecified" | "
|
|
1646
|
+
currentStep: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1647
1647
|
assetIds?: {
|
|
1648
1648
|
zippedAssetId: number;
|
|
1649
1649
|
unifiedAssetId: number;
|
|
@@ -1695,18 +1695,18 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1695
1695
|
} | undefined;
|
|
1696
1696
|
progressTimeline: {
|
|
1697
1697
|
sequence: number;
|
|
1698
|
-
step: "validation" | "unspecified" | "
|
|
1699
|
-
status: "unspecified" | "completed" | "
|
|
1698
|
+
step: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1699
|
+
status: "unspecified" | "completed" | "current" | "planned";
|
|
1700
1700
|
expectedDurationMs: number;
|
|
1701
1701
|
}[];
|
|
1702
1702
|
estimatedCompletionUnixMs: number;
|
|
1703
1703
|
isDelayed: boolean;
|
|
1704
|
-
participation: "
|
|
1704
|
+
participation: "unspecified" | "owner" | "recipient";
|
|
1705
1705
|
}, Omit<{
|
|
1706
1706
|
smartAccountAddress: string;
|
|
1707
1707
|
flowId: string;
|
|
1708
1708
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
1709
|
-
currentStep: "validation" | "unspecified" | "
|
|
1709
|
+
currentStep: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1710
1710
|
assetIds?: {
|
|
1711
1711
|
zippedAssetId: number;
|
|
1712
1712
|
unifiedAssetId: number;
|
|
@@ -1758,19 +1758,19 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1758
1758
|
} | undefined;
|
|
1759
1759
|
progressTimeline: {
|
|
1760
1760
|
sequence: number;
|
|
1761
|
-
step: "validation" | "unspecified" | "
|
|
1762
|
-
status: "unspecified" | "completed" | "
|
|
1761
|
+
step: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1762
|
+
status: "unspecified" | "completed" | "current" | "planned";
|
|
1763
1763
|
expectedDurationMs: number;
|
|
1764
1764
|
}[];
|
|
1765
1765
|
estimatedCompletionUnixMs: number;
|
|
1766
1766
|
isDelayed: boolean;
|
|
1767
|
-
participation: "
|
|
1767
|
+
participation: "unspecified" | "owner" | "recipient";
|
|
1768
1768
|
}, "amountE18"> & {
|
|
1769
1769
|
amount?: string;
|
|
1770
1770
|
}>]>, undefined>;
|
|
1771
1771
|
readonly observedSteps: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1772
1772
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1773
|
-
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "
|
|
1773
|
+
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1774
1774
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
1775
1775
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1776
1776
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -1919,7 +1919,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1919
1919
|
readonly refundAddress: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
1920
1920
|
}, undefined>, v.TransformAction<{
|
|
1921
1921
|
sequence: number;
|
|
1922
|
-
step: "validation" | "unspecified" | "
|
|
1922
|
+
step: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1923
1923
|
assetIds?: {
|
|
1924
1924
|
zippedAssetId: number;
|
|
1925
1925
|
unifiedAssetId: number;
|
|
@@ -1983,7 +1983,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1983
1983
|
refundAddress: string;
|
|
1984
1984
|
}, Omit<{
|
|
1985
1985
|
sequence: number;
|
|
1986
|
-
step: "validation" | "unspecified" | "
|
|
1986
|
+
step: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1987
1987
|
assetIds?: {
|
|
1988
1988
|
zippedAssetId: number;
|
|
1989
1989
|
unifiedAssetId: number;
|
|
@@ -2060,7 +2060,7 @@ declare const LifecycleFlowTxMatchSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
2060
2060
|
readonly txOccurrenceIndex: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, number>]>;
|
|
2061
2061
|
readonly sourceDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
|
|
2062
2062
|
readonly destinationDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
|
|
2063
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "
|
|
2063
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
2064
2064
|
readonly isOpen: v.BooleanSchema<undefined>;
|
|
2065
2065
|
readonly isTerminal: v.BooleanSchema<undefined>;
|
|
2066
2066
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -2093,7 +2093,7 @@ declare const LifecycleFlowTxMatchSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
2093
2093
|
txOccurrenceIndex?: number | undefined;
|
|
2094
2094
|
sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
2095
2095
|
destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
2096
|
-
currentStep: "validation" | "unspecified" | "
|
|
2096
|
+
currentStep: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
2097
2097
|
isOpen: boolean;
|
|
2098
2098
|
isTerminal: boolean;
|
|
2099
2099
|
assetIds?: {
|
|
@@ -2120,7 +2120,7 @@ declare const LifecycleFlowTxMatchSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
2120
2120
|
txOccurrenceIndex?: number | undefined;
|
|
2121
2121
|
sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
2122
2122
|
destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
2123
|
-
currentStep: "validation" | "unspecified" | "
|
|
2123
|
+
currentStep: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
2124
2124
|
isOpen: boolean;
|
|
2125
2125
|
isTerminal: boolean;
|
|
2126
2126
|
assetIds?: {
|
|
@@ -2152,7 +2152,7 @@ declare const ListLifecycleFlowsByTxOutputSchema: v.ObjectSchema<{
|
|
|
2152
2152
|
readonly txOccurrenceIndex: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, number>]>;
|
|
2153
2153
|
readonly sourceDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
|
|
2154
2154
|
readonly destinationDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
|
|
2155
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "
|
|
2155
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
2156
2156
|
readonly isOpen: v.BooleanSchema<undefined>;
|
|
2157
2157
|
readonly isTerminal: v.BooleanSchema<undefined>;
|
|
2158
2158
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -2185,7 +2185,7 @@ declare const ListLifecycleFlowsByTxOutputSchema: v.ObjectSchema<{
|
|
|
2185
2185
|
txOccurrenceIndex?: number | undefined;
|
|
2186
2186
|
sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
2187
2187
|
destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
2188
|
-
currentStep: "validation" | "unspecified" | "
|
|
2188
|
+
currentStep: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
2189
2189
|
isOpen: boolean;
|
|
2190
2190
|
isTerminal: boolean;
|
|
2191
2191
|
assetIds?: {
|
|
@@ -2212,7 +2212,7 @@ declare const ListLifecycleFlowsByTxOutputSchema: v.ObjectSchema<{
|
|
|
2212
2212
|
txOccurrenceIndex?: number | undefined;
|
|
2213
2213
|
sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
2214
2214
|
destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
2215
|
-
currentStep: "validation" | "unspecified" | "
|
|
2215
|
+
currentStep: "validation" | "unspecified" | "source" | "failed" | "transfer" | "dropped" | "refunded" | "request" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
2216
2216
|
isOpen: boolean;
|
|
2217
2217
|
isTerminal: boolean;
|
|
2218
2218
|
assetIds?: {
|
|
@@ -35,7 +35,7 @@ declare class OrderbookService {
|
|
|
35
35
|
/**
|
|
36
36
|
* Creates a stateful order book subscription that first fetches a snapshot, buffers proto deltas from public:spot:orderbook:deltas:depth:{depth}:{symbolId}:proto, applies each delta only when it chains onto the book, and refetches on reconnects. After a sequence gap the book holds its last state until the server's next reset, sent about every 30 seconds and after gaps. A snapshot whose book is not available fails with ServiceUnavailableError through onError and is retried; no event is emitted until a snapshot is available. The snapshot is fetched once the channel opens, so a socket that cannot connect reports a retryable RealtimeError with type "transport" through onError instead, once per outage; onOpen follows when it recovers. The returned handle can unsubscribe or change local price bucket aggregation without reconnecting.
|
|
37
37
|
*
|
|
38
|
-
* `depth`
|
|
38
|
+
* `depth` above 500 throws ValidationError; other depths ride the smallest published channel depth that covers it (see ORDERBOOK_WS_DEPTHS); levels are sliced back to the requested depth locally.
|
|
39
39
|
*
|
|
40
40
|
* A refetched snapshot from an older `bookEpoch` than the book's is discarded and retried.
|
|
41
41
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceUnavailableError } from "../../shared/errors.js";
|
|
1
|
+
import { ServiceUnavailableError, ValidationError } from "../../shared/errors.js";
|
|
2
2
|
import { parse } from "../../shared/validation.js";
|
|
3
3
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
4
4
|
import { decimalInputToScaled } from "../../shared/decimal-surface.js";
|
|
@@ -55,7 +55,7 @@ var OrderbookService = class {
|
|
|
55
55
|
/**
|
|
56
56
|
* Creates a stateful order book subscription that first fetches a snapshot, buffers proto deltas from public:spot:orderbook:deltas:depth:{depth}:{symbolId}:proto, applies each delta only when it chains onto the book, and refetches on reconnects. After a sequence gap the book holds its last state until the server's next reset, sent about every 30 seconds and after gaps. A snapshot whose book is not available fails with ServiceUnavailableError through onError and is retried; no event is emitted until a snapshot is available. The snapshot is fetched once the channel opens, so a socket that cannot connect reports a retryable RealtimeError with type "transport" through onError instead, once per outage; onOpen follows when it recovers. The returned handle can unsubscribe or change local price bucket aggregation without reconnecting.
|
|
57
57
|
*
|
|
58
|
-
* `depth`
|
|
58
|
+
* `depth` above 500 throws ValidationError; other depths ride the smallest published channel depth that covers it (see ORDERBOOK_WS_DEPTHS); levels are sliced back to the requested depth locally.
|
|
59
59
|
*
|
|
60
60
|
* A refetched snapshot from an older `bookEpoch` than the book's is discarded and retried.
|
|
61
61
|
*
|
|
@@ -66,8 +66,8 @@ var OrderbookService = class {
|
|
|
66
66
|
symbolId: input.symbolId,
|
|
67
67
|
depth: input.depth
|
|
68
68
|
});
|
|
69
|
-
|
|
70
|
-
const channelDepth = orderbookWsChannelDepth(
|
|
69
|
+
if (depth > 500) throw new ValidationError(`depth must be at most 500 for a managed order book, got ${depth}`);
|
|
70
|
+
const channelDepth = orderbookWsChannelDepth(depth);
|
|
71
71
|
const channel = `public:spot:orderbook:deltas:depth:${channelDepth}:${symbolId}:proto`;
|
|
72
72
|
const client = this.#client;
|
|
73
73
|
const scales = this.#scales;
|
|
@@ -117,13 +117,13 @@ var OrderbookService = class {
|
|
|
117
117
|
try {
|
|
118
118
|
input.onEvent({
|
|
119
119
|
symbolId,
|
|
120
|
-
depth
|
|
120
|
+
depth,
|
|
121
121
|
bookSeq: currentBookSeq.toString(),
|
|
122
122
|
bookEpoch: currentBookEpoch.toString(),
|
|
123
123
|
maxDepth,
|
|
124
124
|
available: true,
|
|
125
|
-
bids: sideToUIBucketed(bidsMap, "bids",
|
|
126
|
-
asks: sideToUIBucketed(asksMap, "asks",
|
|
125
|
+
bids: sideToUIBucketed(bidsMap, "bids", depth, bucketTicks),
|
|
126
|
+
asks: sideToUIBucketed(asksMap, "asks", depth, bucketTicks)
|
|
127
127
|
});
|
|
128
128
|
} catch (error) {
|
|
129
129
|
input.onError?.(publicationHandlerErrorContext(channel, error));
|