@polyester/sdk 0.20.1 → 0.21.1
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 +24 -0
- package/README.md +9 -9
- package/dist/catalogs/market-data-catalog.d.ts +5 -14
- package/dist/catalogs/market-data-catalog.d.ts.map +1 -1
- package/dist/catalogs/market-data-catalog.js +1 -11
- package/dist/catalogs/market-data-catalog.js.map +1 -1
- package/dist/catalogs/snapshot-validation.js +4 -1
- package/dist/catalogs/snapshot-validation.js.map +1 -1
- package/dist/catalogs/zipper-catalog.d.ts +3 -0
- package/dist/catalogs/zipper-catalog.d.ts.map +1 -1
- package/dist/catalogs/zipper-catalog.js +2 -9
- package/dist/catalogs/zipper-catalog.js.map +1 -1
- package/dist/environment.d.ts +2 -2
- package/dist/environment.d.ts.map +1 -1
- package/dist/environment.js +4 -4
- package/dist/environment.js.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.d.ts +12 -9
- package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts +20 -1
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +138 -13
- package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts.map +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.js +23 -6
- package/dist/gen/marketoverview/v1/marketoverview_pb.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/services/candles/candles.schemas.d.ts +19 -10
- package/dist/services/candles/candles.schemas.d.ts.map +1 -1
- package/dist/services/candles/candles.schemas.js +6 -0
- package/dist/services/candles/candles.schemas.js.map +1 -1
- package/dist/services/deposit/deposit.schemas.d.ts +1 -1
- package/dist/services/deposit/deposit.schemas.js +1 -1
- package/dist/services/deposit/deposit.schemas.js.map +1 -1
- package/dist/services/fees/fees.schemas.d.ts +1 -1
- package/dist/services/fees/fees.schemas.js +1 -1
- package/dist/services/fees/fees.schemas.js.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +9 -9
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.js +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +42 -42
- package/dist/services/market-overview/index.d.ts +2 -2
- package/dist/services/market-overview/market-overview.codecs.js +2 -2
- package/dist/services/market-overview/market-overview.codecs.js.map +1 -1
- package/dist/services/market-overview/market-overview.d.ts +7 -1
- package/dist/services/market-overview/market-overview.d.ts.map +1 -1
- package/dist/services/market-overview/market-overview.js +11 -1
- package/dist/services/market-overview/market-overview.js.map +1 -1
- package/dist/services/market-overview/market-overview.schemas.d.ts +75 -15
- package/dist/services/market-overview/market-overview.schemas.d.ts.map +1 -1
- package/dist/services/market-overview/market-overview.schemas.js +30 -7
- package/dist/services/market-overview/market-overview.schemas.js.map +1 -1
- package/dist/services/market-overview/market-overview.types.d.ts +2 -2
- package/dist/services/orders/orders-batch.schemas.d.ts +14 -14
- package/dist/services/orders/orders-input.schemas.d.ts +1 -1
- package/dist/services/orders/orders-output.schemas.d.ts +12 -12
- package/dist/services/social-verification/social-verification.d.ts +1 -1
- package/dist/services/social-verification/social-verification.js +1 -1
- package/dist/services/social-verification/social-verification.js.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.d.ts +17 -11
- package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +12 -5
- package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +4 -4
- package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +16 -16
- package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
- package/dist/services/triggers/triggers-output.schemas.js +1 -2
- package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
- package/dist/shared/validation.js.map +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ type TimestampInit = {
|
|
|
13
13
|
};
|
|
14
14
|
declare const GetOrderbookHeatmapInputSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
15
15
|
readonly symbolId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
|
|
16
|
-
readonly interval: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["1s", "1m", "5m", "1h"], undefined>, "1s">, v.TransformAction<"
|
|
16
|
+
readonly interval: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["1s", "1m", "5m", "1h"], undefined>, "1s">, v.TransformAction<"1s" | "1m" | "5m" | "1h", HeatmapInterval>]>;
|
|
17
17
|
readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<5 | 10 | 20 | 1 | 200 | 1000 | 500 | 100 | 50, HeatmapDepth>]>;
|
|
18
18
|
readonly quantityMode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["close", "peak"], undefined>, "close">, v.TransformAction<"close" | "peak", HeatmapQuantityMode>]>;
|
|
19
19
|
readonly limit: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 20000, undefined>]>;
|
|
@@ -122,7 +122,7 @@ declare function convertHeatmapDeltaBucket(bucket: OrderbookHeatmapDeltaBucketRa
|
|
|
122
122
|
type OrderbookHeatmapDeltaBucket = ReturnType<typeof convertHeatmapDeltaBucket>;
|
|
123
123
|
declare const OrderbookHeatmapLiveBucketRawSchema: v.ObjectSchema<{
|
|
124
124
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
125
|
-
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"
|
|
125
|
+
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1s" | "1m" | "5m" | "1h">>]>;
|
|
126
126
|
readonly tsSec: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
127
127
|
readonly isFinal: v.BooleanSchema<undefined>;
|
|
128
128
|
readonly bids: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -142,7 +142,7 @@ declare const OrderbookHeatmapLiveBucketRawSchema: v.ObjectSchema<{
|
|
|
142
142
|
type OrderbookHeatmapLiveBucketRaw = v.InferOutput<typeof OrderbookHeatmapLiveBucketRawSchema>;
|
|
143
143
|
declare function convertHeatmapLiveBucket(bucket: OrderbookHeatmapLiveBucketRaw, scales: SdkScales): {
|
|
144
144
|
symbolId: number;
|
|
145
|
-
interval: DecodedEnum<"
|
|
145
|
+
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
146
146
|
tsSec: number;
|
|
147
147
|
isFinal: boolean;
|
|
148
148
|
bids: {
|
|
@@ -226,7 +226,7 @@ declare function convertHeatmapDeltaChain(chain: OrderbookHeatmapDeltaChainRaw,
|
|
|
226
226
|
type OrderbookHeatmapDeltaChain = ReturnType<typeof convertHeatmapDeltaChain>;
|
|
227
227
|
declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
228
228
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
229
|
-
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"
|
|
229
|
+
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1s" | "1m" | "5m" | "1h">>]>;
|
|
230
230
|
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 5 | 10 | 20 | 1 | "unspecified" | 200 | 1000 | 500 | 100 | 50>]>;
|
|
231
231
|
readonly chain: v.OptionalSchema<v.ObjectSchema<{
|
|
232
232
|
readonly baseKeyframe: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -267,7 +267,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
267
267
|
readonly quantityMode: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"close" | "peak">>]>;
|
|
268
268
|
readonly liveBucket: v.OptionalSchema<v.ObjectSchema<{
|
|
269
269
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
270
|
-
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"
|
|
270
|
+
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1s" | "1m" | "5m" | "1h">>]>;
|
|
271
271
|
readonly tsSec: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
272
272
|
readonly isFinal: v.BooleanSchema<undefined>;
|
|
273
273
|
readonly bids: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -286,7 +286,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
286
286
|
}, undefined>, undefined>;
|
|
287
287
|
}, undefined>, v.TransformAction<{
|
|
288
288
|
symbolId: number;
|
|
289
|
-
interval: DecodedEnum<"
|
|
289
|
+
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
290
290
|
depth: 5 | 10 | 20 | 1 | "unspecified" | 200 | 1000 | 500 | 100 | 50;
|
|
291
291
|
chain?: {
|
|
292
292
|
baseKeyframe?: {
|
|
@@ -327,7 +327,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
327
327
|
quantityMode: DecodedEnum<"close" | "peak">;
|
|
328
328
|
liveBucket?: {
|
|
329
329
|
symbolId: number;
|
|
330
|
-
interval: DecodedEnum<"
|
|
330
|
+
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
331
331
|
tsSec: number;
|
|
332
332
|
isFinal: boolean;
|
|
333
333
|
bids?: {
|
|
@@ -346,7 +346,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
346
346
|
} | undefined;
|
|
347
347
|
}, {
|
|
348
348
|
symbolId: number;
|
|
349
|
-
interval: DecodedEnum<"
|
|
349
|
+
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
350
350
|
depth: 5 | 10 | 20 | 1 | "unspecified" | 200 | 1000 | 500 | 100 | 50;
|
|
351
351
|
chain: {
|
|
352
352
|
baseKeyframe: {
|
|
@@ -387,7 +387,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
387
387
|
quantityMode: DecodedEnum<"close" | "peak">;
|
|
388
388
|
liveBucket: {
|
|
389
389
|
symbolId: number;
|
|
390
|
-
interval: DecodedEnum<"
|
|
390
|
+
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
391
391
|
tsSec: number;
|
|
392
392
|
isFinal: boolean;
|
|
393
393
|
bids: {
|
|
@@ -118,7 +118,7 @@ declare function createCreateInternalTransferResultSchema(): v.SchemaWithPipe<re
|
|
|
118
118
|
readonly requestId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
119
119
|
readonly transferId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
120
120
|
readonly acceptedAtTsNs: v.BigintSchema<undefined>;
|
|
121
|
-
readonly assetId: v.
|
|
121
|
+
readonly assetId: v.NumberSchema<undefined>;
|
|
122
122
|
readonly assetCode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
123
123
|
readonly uAssetId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
124
124
|
readonly amountE18: v.ObjectSchema<{
|
|
@@ -74,7 +74,7 @@ function createCreateInternalTransferResultSchema() {
|
|
|
74
74
|
requestId: NonEmptyResponseStringSchema,
|
|
75
75
|
transferId: NonEmptyResponseStringSchema,
|
|
76
76
|
acceptedAtTsNs: v.bigint(),
|
|
77
|
-
assetId:
|
|
77
|
+
assetId: v.number(),
|
|
78
78
|
assetCode: NonEmptyResponseStringSchema,
|
|
79
79
|
uAssetId: NonEmptyResponseStringSchema,
|
|
80
80
|
amountE18: U128Schema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-transfers.schemas.js","names":[],"sources":["../../../src/services/internal-transfers/internal-transfers.schemas.ts"],"sourcesContent":["import type { MessageInitShape } from \"@bufbuild/protobuf\";\nimport { PositiveUint32InputSchema } from \"../shared.js\";\nimport * as v from \"valibot\";\nimport type * as Proto from \"../../gen/transfer/v1/internal_transfer_pb.js\";\nimport { idInputSchema } from \"../../shared/schemas.js\";\nimport { tsNsToMs } from \"../../utils/time.js\";\nimport {\n E18_SCALE,\n quantityInputToE18,\n scaledToDecimalOutput,\n type SdkScales,\n} from \"../../shared/decimal-surface.js\";\nimport { InternalTransferDestinationCodec } from \"./internal-transfers.codecs.js\";\nimport {\n AccountScopeInputEntries,\n accountScopeToSubaccountId,\n} from \"../../shared/account-scope.js\";\nimport { fromU128, toU128 } from \"../../utils/u128.js\";\n\nconst U128Schema = v.object({\n hi: v.bigint(),\n lo: v.bigint(),\n});\n\nconst IdSchema = idInputSchema;\n\nexport const InternalTransferDestinationInputSchema = v.pipe(\n v.variant(\"type\", [\n v.strictObject({\n type: v.literal(\"account\"),\n accountId: IdSchema(\"accountId\"),\n }),\n v.strictObject({\n type: v.literal(\"subaccount\"),\n subaccountId: IdSchema(\"subaccountId\"),\n }),\n v.strictObject({\n type: v.literal(\"smartAccountAddress\"),\n address: v.pipe(v.string(), v.trim(), v.minLength(1)),\n }),\n ]),\n v.transform((destination) => {\n switch (destination.type) {\n case \"account\":\n return {\n case: InternalTransferDestinationCodec.inputToProtoCase.account,\n value: destination.accountId,\n } as const;\n case \"subaccount\":\n return {\n case: InternalTransferDestinationCodec.inputToProtoCase.subaccount,\n value: destination.subaccountId,\n } as const;\n case \"smartAccountAddress\":\n return {\n case: InternalTransferDestinationCodec.inputToProtoCase.smartAccountAddress,\n value: destination.address,\n } as const;\n }\n }),\n);\n\nexport type InternalTransferDestination = v.InferInput<\n typeof InternalTransferDestinationInputSchema\n>;\n\nexport function createCreateInternalTransferInputSchema(scales: SdkScales) {\n return v.pipe(\n v.strictObject({\n ...AccountScopeInputEntries,\n destination: InternalTransferDestinationInputSchema,\n assetId: PositiveUint32InputSchema,\n quantity: v.string(),\n idempotencyKey: v.pipe(v.string(), v.trim(), v.minLength(1)),\n }),\n v.transform(\n ({ account, quantity, ...input }) =>\n ({\n ...input,\n amountE18: toU128(\n quantityInputToE18({\n scales,\n assetId: input.assetId,\n quantity,\n }),\n ),\n subaccountId: accountScopeToSubaccountId(account),\n }) satisfies MessageInitShape<typeof Proto.CreateInternalTransferRequestSchema>,\n ),\n );\n}\n\nexport type CreateInternalTransferInput = v.InferInput<\n ReturnType<typeof createCreateInternalTransferInputSchema>\n>;\nexport type CreateInternalTransferRequest = v.InferOutput<\n ReturnType<typeof createCreateInternalTransferInputSchema>\n>;\n\nconst NonEmptyResponseStringSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\nconst OptionalResponseStringSchema = v.pipe(\n v.optional(v.pipe(v.string(), v.trim())),\n v.transform((value) => (value ? value : undefined)),\n);\n\nexport const ResolvedInternalTransferDestinationSchema = v.pipe(\n v.object({\n rootAccountPublicId: OptionalResponseStringSchema,\n subaccountPublicId: OptionalResponseStringSchema,\n smartAccountAddress: OptionalResponseStringSchema,\n }),\n v.transform(({ rootAccountPublicId, subaccountPublicId, smartAccountAddress }) => ({\n rootAccountId: rootAccountPublicId,\n subaccountId: subaccountPublicId,\n smartAccountAddress,\n })),\n);\n\nexport type ResolvedInternalTransferDestination = v.InferOutput<\n typeof ResolvedInternalTransferDestinationSchema\n>;\n\nexport function createCreateInternalTransferResultSchema() {\n return v.pipe(\n v.object({\n requestId: NonEmptyResponseStringSchema,\n transferId: NonEmptyResponseStringSchema,\n acceptedAtTsNs: v.bigint(),\n assetId:
|
|
1
|
+
{"version":3,"file":"internal-transfers.schemas.js","names":[],"sources":["../../../src/services/internal-transfers/internal-transfers.schemas.ts"],"sourcesContent":["import type { MessageInitShape } from \"@bufbuild/protobuf\";\nimport { PositiveUint32InputSchema } from \"../shared.js\";\nimport * as v from \"valibot\";\nimport type * as Proto from \"../../gen/transfer/v1/internal_transfer_pb.js\";\nimport { idInputSchema } from \"../../shared/schemas.js\";\nimport { tsNsToMs } from \"../../utils/time.js\";\nimport {\n E18_SCALE,\n quantityInputToE18,\n scaledToDecimalOutput,\n type SdkScales,\n} from \"../../shared/decimal-surface.js\";\nimport { InternalTransferDestinationCodec } from \"./internal-transfers.codecs.js\";\nimport {\n AccountScopeInputEntries,\n accountScopeToSubaccountId,\n} from \"../../shared/account-scope.js\";\nimport { fromU128, toU128 } from \"../../utils/u128.js\";\n\nconst U128Schema = v.object({\n hi: v.bigint(),\n lo: v.bigint(),\n});\n\nconst IdSchema = idInputSchema;\n\nexport const InternalTransferDestinationInputSchema = v.pipe(\n v.variant(\"type\", [\n v.strictObject({\n type: v.literal(\"account\"),\n accountId: IdSchema(\"accountId\"),\n }),\n v.strictObject({\n type: v.literal(\"subaccount\"),\n subaccountId: IdSchema(\"subaccountId\"),\n }),\n v.strictObject({\n type: v.literal(\"smartAccountAddress\"),\n address: v.pipe(v.string(), v.trim(), v.minLength(1)),\n }),\n ]),\n v.transform((destination) => {\n switch (destination.type) {\n case \"account\":\n return {\n case: InternalTransferDestinationCodec.inputToProtoCase.account,\n value: destination.accountId,\n } as const;\n case \"subaccount\":\n return {\n case: InternalTransferDestinationCodec.inputToProtoCase.subaccount,\n value: destination.subaccountId,\n } as const;\n case \"smartAccountAddress\":\n return {\n case: InternalTransferDestinationCodec.inputToProtoCase.smartAccountAddress,\n value: destination.address,\n } as const;\n }\n }),\n);\n\nexport type InternalTransferDestination = v.InferInput<\n typeof InternalTransferDestinationInputSchema\n>;\n\nexport function createCreateInternalTransferInputSchema(scales: SdkScales) {\n return v.pipe(\n v.strictObject({\n ...AccountScopeInputEntries,\n destination: InternalTransferDestinationInputSchema,\n assetId: PositiveUint32InputSchema,\n quantity: v.string(),\n idempotencyKey: v.pipe(v.string(), v.trim(), v.minLength(1)),\n }),\n v.transform(\n ({ account, quantity, ...input }) =>\n ({\n ...input,\n amountE18: toU128(\n quantityInputToE18({\n scales,\n assetId: input.assetId,\n quantity,\n }),\n ),\n subaccountId: accountScopeToSubaccountId(account),\n }) satisfies MessageInitShape<typeof Proto.CreateInternalTransferRequestSchema>,\n ),\n );\n}\n\nexport type CreateInternalTransferInput = v.InferInput<\n ReturnType<typeof createCreateInternalTransferInputSchema>\n>;\nexport type CreateInternalTransferRequest = v.InferOutput<\n ReturnType<typeof createCreateInternalTransferInputSchema>\n>;\n\nconst NonEmptyResponseStringSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\nconst OptionalResponseStringSchema = v.pipe(\n v.optional(v.pipe(v.string(), v.trim())),\n v.transform((value) => (value ? value : undefined)),\n);\n\nexport const ResolvedInternalTransferDestinationSchema = v.pipe(\n v.object({\n rootAccountPublicId: OptionalResponseStringSchema,\n subaccountPublicId: OptionalResponseStringSchema,\n smartAccountAddress: OptionalResponseStringSchema,\n }),\n v.transform(({ rootAccountPublicId, subaccountPublicId, smartAccountAddress }) => ({\n rootAccountId: rootAccountPublicId,\n subaccountId: subaccountPublicId,\n smartAccountAddress,\n })),\n);\n\nexport type ResolvedInternalTransferDestination = v.InferOutput<\n typeof ResolvedInternalTransferDestinationSchema\n>;\n\nexport function createCreateInternalTransferResultSchema() {\n return v.pipe(\n v.object({\n requestId: NonEmptyResponseStringSchema,\n transferId: NonEmptyResponseStringSchema,\n acceptedAtTsNs: v.bigint(),\n assetId: v.number(),\n assetCode: NonEmptyResponseStringSchema,\n uAssetId: NonEmptyResponseStringSchema,\n amountE18: U128Schema,\n destination: v.optional(ResolvedInternalTransferDestinationSchema),\n }),\n v.transform(({ acceptedAtTsNs, amountE18, ...result }) => ({\n ...result,\n acceptedAtUnixMs: tsNsToMs(acceptedAtTsNs),\n quantity: scaledToDecimalOutput(fromU128(amountE18), E18_SCALE),\n })),\n );\n}\n\nexport type CreateInternalTransferResult = v.InferOutput<\n ReturnType<typeof createCreateInternalTransferResultSchema>\n>;\n"],"mappings":";;;;;;;;;AAmBA,MAAM,aAAa,EAAE,OAAO;CACxB,IAAI,EAAE,OAAO;CACb,IAAI,EAAE,OAAO;AACjB,CAAC;AAED,MAAM,WAAW;AAEjB,MAAa,yCAAyC,EAAE,KACpD,EAAE,QAAQ,QAAQ;CACd,EAAE,aAAa;EACX,MAAM,EAAE,QAAQ,SAAS;EACzB,WAAW,SAAS,WAAW;CACnC,CAAC;CACD,EAAE,aAAa;EACX,MAAM,EAAE,QAAQ,YAAY;EAC5B,cAAc,SAAS,cAAc;CACzC,CAAC;CACD,EAAE,aAAa;EACX,MAAM,EAAE,QAAQ,qBAAqB;EACrC,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC,CAAC;CACxD,CAAC;AACL,CAAC,GACD,EAAE,WAAW,gBAAgB;CACzB,QAAQ,YAAY,MAApB;EACI,KAAK,WACD,OAAO;GACH,MAAM,iCAAiC,iBAAiB;GACxD,OAAO,YAAY;EACvB;EACJ,KAAK,cACD,OAAO;GACH,MAAM,iCAAiC,iBAAiB;GACxD,OAAO,YAAY;EACvB;EACJ,KAAK,uBACD,OAAO;GACH,MAAM,iCAAiC,iBAAiB;GACxD,OAAO,YAAY;EACvB;CACR;AACJ,CAAC,CACL;AAMA,SAAgB,wCAAwC,QAAmB;CACvE,OAAO,EAAE,KACL,EAAE,aAAa;EACX,GAAG;EACH,aAAa;EACb,SAAS;EACT,UAAU,EAAE,OAAO;EACnB,gBAAgB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC,CAAC;CAC/D,CAAC,GACD,EAAE,WACG,EAAE,SAAS,UAAU,GAAG,aACpB;EACG,GAAG;EACH,WAAW,OACP,mBAAmB;GACf;GACA,SAAS,MAAM;GACf;EACJ,CAAC,CACL;EACA,cAAc,2BAA2B,OAAO;CACpD,EACR,CACJ;AACJ;AASA,MAAM,+BAA+B,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC,CAAC;AAChF,MAAM,+BAA+B,EAAE,KACnC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,CAAC,CAAC,GACvC,EAAE,WAAW,UAAW,QAAQ,QAAQ,KAAA,CAAU,CACtD;AAEA,MAAa,4CAA4C,EAAE,KACvD,EAAE,OAAO;CACL,qBAAqB;CACrB,oBAAoB;CACpB,qBAAqB;AACzB,CAAC,GACD,EAAE,WAAW,EAAE,qBAAqB,oBAAoB,2BAA2B;CAC/E,eAAe;CACf,cAAc;CACd;AACJ,EAAE,CACN;AAMA,SAAgB,2CAA2C;CACvD,OAAO,EAAE,KACL,EAAE,OAAO;EACL,WAAW;EACX,YAAY;EACZ,gBAAgB,EAAE,OAAO;EACzB,SAAS,EAAE,OAAO;EAClB,WAAW;EACX,UAAU;EACV,WAAW;EACX,aAAa,EAAE,SAAS,yCAAyC;CACrE,CAAC,GACD,EAAE,WAAW,EAAE,gBAAgB,WAAW,GAAG,cAAc;EACvD,GAAG;EACH,kBAAkB,SAAS,cAAc;EACzC,UAAU,sBAAsB,SAAS,SAAS,GAAA,EAAY;CAClE,EAAE,CACN;AACJ"}
|
|
@@ -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.EnumSchema<typeof FlowState, undefined>, v.TransformAction<FlowState, "unspecified" | "
|
|
10
|
+
declare const LifecycleFlowStateEnumSchema: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowState, undefined>, v.TransformAction<FlowState, "unspecified" | "failed" | "pending_source" | "pending_polyester_chain" | "pending_ledger" | "completed" | "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>]>;
|
|
13
13
|
readonly reasonId: v.StringSchema<undefined>;
|
|
@@ -17,7 +17,7 @@ declare const ListLifecycleFlowsInputSchema: v.SchemaWithPipe<readonly [v.Strict
|
|
|
17
17
|
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>;
|
|
18
18
|
readonly sort: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["newest", "oldest"], undefined>, "newest">, v.TransformAction<"newest" | "oldest", Sort.NEWEST | Sort.OLDEST>]>;
|
|
19
19
|
readonly flowKind: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["deposit", "withdraw", "transfer"], undefined>, undefined>, v.TransformAction<"deposit" | "withdraw" | "transfer" | undefined, FlowKind>]>;
|
|
20
|
-
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<"
|
|
20
|
+
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<"failed" | "pending_source" | "pending_polyester_chain" | "pending_ledger" | "completed" | "dropped" | "refunded" | undefined, FlowState>]>;
|
|
21
21
|
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>;
|
|
22
22
|
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>]>;
|
|
23
23
|
readonly accountSelector: v.OptionalSchema<v.SchemaWithPipe<readonly [v.VariantSchema<"kind", [v.StrictObjectSchema<{
|
|
@@ -209,7 +209,7 @@ declare const LifecycleFlowStepActivitySchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
209
209
|
}>]>;
|
|
210
210
|
declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
211
211
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
212
|
-
readonly step: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "
|
|
212
|
+
readonly step: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
213
213
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
214
214
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
215
215
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -346,7 +346,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
346
346
|
}>]>, undefined>, readonly []>;
|
|
347
347
|
}, undefined>, v.TransformAction<{
|
|
348
348
|
sequence: number;
|
|
349
|
-
step: "validation" | "unspecified" | "source" | "request" | "
|
|
349
|
+
step: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
350
350
|
assetIds?: {
|
|
351
351
|
zippedAssetId: number;
|
|
352
352
|
unifiedAssetId: number;
|
|
@@ -407,7 +407,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
407
407
|
})[];
|
|
408
408
|
}, Omit<{
|
|
409
409
|
sequence: number;
|
|
410
|
-
step: "validation" | "unspecified" | "source" | "request" | "
|
|
410
|
+
step: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
411
411
|
assetIds?: {
|
|
412
412
|
zippedAssetId: number;
|
|
413
413
|
unifiedAssetId: number;
|
|
@@ -471,7 +471,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
471
471
|
}>]>;
|
|
472
472
|
declare const LifecycleFlowTimelineItemSchema: v.ObjectSchema<{
|
|
473
473
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
474
|
-
readonly step: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "
|
|
474
|
+
readonly step: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
475
475
|
readonly status: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowTimelineStatus, undefined>, v.TransformAction<FlowTimelineStatus, "unspecified" | "completed" | "current" | "planned">]>;
|
|
476
476
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
477
477
|
}, undefined>;
|
|
@@ -491,7 +491,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
491
491
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
492
492
|
readonly flowId: v.StringSchema<undefined>;
|
|
493
493
|
readonly flowKind: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowKind, undefined>, v.TransformAction<FlowKind, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
494
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "
|
|
494
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
495
495
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
496
496
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
497
497
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -571,7 +571,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
571
571
|
}, undefined>, undefined>;
|
|
572
572
|
readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
573
573
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
574
|
-
readonly step: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "
|
|
574
|
+
readonly step: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
575
575
|
readonly status: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowTimelineStatus, undefined>, v.TransformAction<FlowTimelineStatus, "unspecified" | "completed" | "current" | "planned">]>;
|
|
576
576
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
577
577
|
}, undefined>, undefined>, readonly []>;
|
|
@@ -581,7 +581,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
581
581
|
smartAccountAddress: string;
|
|
582
582
|
flowId: string;
|
|
583
583
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
584
|
-
currentStep: "validation" | "unspecified" | "source" | "request" | "
|
|
584
|
+
currentStep: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
585
585
|
assetIds?: {
|
|
586
586
|
zippedAssetId: number;
|
|
587
587
|
unifiedAssetId: number;
|
|
@@ -633,7 +633,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
633
633
|
} | undefined;
|
|
634
634
|
progressTimeline: {
|
|
635
635
|
sequence: number;
|
|
636
|
-
step: "validation" | "unspecified" | "source" | "request" | "
|
|
636
|
+
step: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
637
637
|
status: "unspecified" | "completed" | "current" | "planned";
|
|
638
638
|
expectedDurationMs: number;
|
|
639
639
|
}[];
|
|
@@ -643,7 +643,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
643
643
|
smartAccountAddress: string;
|
|
644
644
|
flowId: string;
|
|
645
645
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
646
|
-
currentStep: "validation" | "unspecified" | "source" | "request" | "
|
|
646
|
+
currentStep: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
647
647
|
assetIds?: {
|
|
648
648
|
zippedAssetId: number;
|
|
649
649
|
unifiedAssetId: number;
|
|
@@ -695,7 +695,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
695
695
|
} | undefined;
|
|
696
696
|
progressTimeline: {
|
|
697
697
|
sequence: number;
|
|
698
|
-
step: "validation" | "unspecified" | "source" | "request" | "
|
|
698
|
+
step: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
699
699
|
status: "unspecified" | "completed" | "current" | "planned";
|
|
700
700
|
expectedDurationMs: number;
|
|
701
701
|
}[];
|
|
@@ -709,7 +709,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
709
709
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
710
710
|
readonly flowId: v.StringSchema<undefined>;
|
|
711
711
|
readonly flowKind: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowKind, undefined>, v.TransformAction<FlowKind, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
712
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "
|
|
712
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
713
713
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
714
714
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
715
715
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -789,7 +789,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
789
789
|
}, undefined>, undefined>;
|
|
790
790
|
readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
791
791
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
792
|
-
readonly step: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "
|
|
792
|
+
readonly step: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
793
793
|
readonly status: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowTimelineStatus, undefined>, v.TransformAction<FlowTimelineStatus, "unspecified" | "completed" | "current" | "planned">]>;
|
|
794
794
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
795
795
|
}, undefined>, undefined>, readonly []>;
|
|
@@ -799,7 +799,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
799
799
|
smartAccountAddress: string;
|
|
800
800
|
flowId: string;
|
|
801
801
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
802
|
-
currentStep: "validation" | "unspecified" | "source" | "request" | "
|
|
802
|
+
currentStep: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
803
803
|
assetIds?: {
|
|
804
804
|
zippedAssetId: number;
|
|
805
805
|
unifiedAssetId: number;
|
|
@@ -851,7 +851,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
851
851
|
} | undefined;
|
|
852
852
|
progressTimeline: {
|
|
853
853
|
sequence: number;
|
|
854
|
-
step: "validation" | "unspecified" | "source" | "request" | "
|
|
854
|
+
step: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
855
855
|
status: "unspecified" | "completed" | "current" | "planned";
|
|
856
856
|
expectedDurationMs: number;
|
|
857
857
|
}[];
|
|
@@ -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" | "source" | "request" | "
|
|
864
|
+
currentStep: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "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" | "source" | "request" | "
|
|
916
|
+
step: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
917
917
|
status: "unspecified" | "completed" | "current" | "planned";
|
|
918
918
|
expectedDurationMs: number;
|
|
919
919
|
}[];
|
|
@@ -923,7 +923,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
923
923
|
}>]>, undefined>;
|
|
924
924
|
readonly observedSteps: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
925
925
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
926
|
-
readonly step: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "
|
|
926
|
+
readonly step: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
927
927
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
928
928
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
929
929
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -1060,7 +1060,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1060
1060
|
}>]>, undefined>, readonly []>;
|
|
1061
1061
|
}, undefined>, v.TransformAction<{
|
|
1062
1062
|
sequence: number;
|
|
1063
|
-
step: "validation" | "unspecified" | "source" | "request" | "
|
|
1063
|
+
step: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1064
1064
|
assetIds?: {
|
|
1065
1065
|
zippedAssetId: number;
|
|
1066
1066
|
unifiedAssetId: number;
|
|
@@ -1121,7 +1121,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1121
1121
|
})[];
|
|
1122
1122
|
}, Omit<{
|
|
1123
1123
|
sequence: number;
|
|
1124
|
-
step: "validation" | "unspecified" | "source" | "request" | "
|
|
1124
|
+
step: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1125
1125
|
assetIds?: {
|
|
1126
1126
|
zippedAssetId: number;
|
|
1127
1127
|
unifiedAssetId: number;
|
|
@@ -1191,7 +1191,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1191
1191
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
1192
1192
|
readonly flowId: v.StringSchema<undefined>;
|
|
1193
1193
|
readonly flowKind: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowKind, undefined>, v.TransformAction<FlowKind, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
1194
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "
|
|
1194
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1195
1195
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
1196
1196
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1197
1197
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -1271,7 +1271,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1271
1271
|
}, undefined>, undefined>;
|
|
1272
1272
|
readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1273
1273
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1274
|
-
readonly step: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "
|
|
1274
|
+
readonly step: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1275
1275
|
readonly status: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowTimelineStatus, undefined>, v.TransformAction<FlowTimelineStatus, "unspecified" | "completed" | "current" | "planned">]>;
|
|
1276
1276
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
1277
1277
|
}, undefined>, undefined>, readonly []>;
|
|
@@ -1281,7 +1281,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1281
1281
|
smartAccountAddress: string;
|
|
1282
1282
|
flowId: string;
|
|
1283
1283
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
1284
|
-
currentStep: "validation" | "unspecified" | "source" | "request" | "
|
|
1284
|
+
currentStep: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1285
1285
|
assetIds?: {
|
|
1286
1286
|
zippedAssetId: number;
|
|
1287
1287
|
unifiedAssetId: number;
|
|
@@ -1333,7 +1333,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1333
1333
|
} | undefined;
|
|
1334
1334
|
progressTimeline: {
|
|
1335
1335
|
sequence: number;
|
|
1336
|
-
step: "validation" | "unspecified" | "source" | "request" | "
|
|
1336
|
+
step: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1337
1337
|
status: "unspecified" | "completed" | "current" | "planned";
|
|
1338
1338
|
expectedDurationMs: number;
|
|
1339
1339
|
}[];
|
|
@@ -1343,7 +1343,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1343
1343
|
smartAccountAddress: string;
|
|
1344
1344
|
flowId: string;
|
|
1345
1345
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
1346
|
-
currentStep: "validation" | "unspecified" | "source" | "request" | "
|
|
1346
|
+
currentStep: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1347
1347
|
assetIds?: {
|
|
1348
1348
|
zippedAssetId: number;
|
|
1349
1349
|
unifiedAssetId: number;
|
|
@@ -1395,7 +1395,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1395
1395
|
} | undefined;
|
|
1396
1396
|
progressTimeline: {
|
|
1397
1397
|
sequence: number;
|
|
1398
|
-
step: "validation" | "unspecified" | "source" | "request" | "
|
|
1398
|
+
step: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1399
1399
|
status: "unspecified" | "completed" | "current" | "planned";
|
|
1400
1400
|
expectedDurationMs: number;
|
|
1401
1401
|
}[];
|
|
@@ -1412,7 +1412,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1412
1412
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
1413
1413
|
readonly flowId: v.StringSchema<undefined>;
|
|
1414
1414
|
readonly flowKind: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowKind, undefined>, v.TransformAction<FlowKind, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
1415
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "
|
|
1415
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1416
1416
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
1417
1417
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1418
1418
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -1492,7 +1492,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1492
1492
|
}, undefined>, undefined>;
|
|
1493
1493
|
readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1494
1494
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1495
|
-
readonly step: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "
|
|
1495
|
+
readonly step: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1496
1496
|
readonly status: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowTimelineStatus, undefined>, v.TransformAction<FlowTimelineStatus, "unspecified" | "completed" | "current" | "planned">]>;
|
|
1497
1497
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
1498
1498
|
}, undefined>, undefined>, readonly []>;
|
|
@@ -1502,7 +1502,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1502
1502
|
smartAccountAddress: string;
|
|
1503
1503
|
flowId: string;
|
|
1504
1504
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
1505
|
-
currentStep: "validation" | "unspecified" | "source" | "request" | "
|
|
1505
|
+
currentStep: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1506
1506
|
assetIds?: {
|
|
1507
1507
|
zippedAssetId: number;
|
|
1508
1508
|
unifiedAssetId: number;
|
|
@@ -1554,7 +1554,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1554
1554
|
} | undefined;
|
|
1555
1555
|
progressTimeline: {
|
|
1556
1556
|
sequence: number;
|
|
1557
|
-
step: "validation" | "unspecified" | "source" | "request" | "
|
|
1557
|
+
step: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1558
1558
|
status: "unspecified" | "completed" | "current" | "planned";
|
|
1559
1559
|
expectedDurationMs: number;
|
|
1560
1560
|
}[];
|
|
@@ -1564,7 +1564,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1564
1564
|
smartAccountAddress: string;
|
|
1565
1565
|
flowId: string;
|
|
1566
1566
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
1567
|
-
currentStep: "validation" | "unspecified" | "source" | "request" | "
|
|
1567
|
+
currentStep: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1568
1568
|
assetIds?: {
|
|
1569
1569
|
zippedAssetId: number;
|
|
1570
1570
|
unifiedAssetId: number;
|
|
@@ -1616,7 +1616,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1616
1616
|
} | undefined;
|
|
1617
1617
|
progressTimeline: {
|
|
1618
1618
|
sequence: number;
|
|
1619
|
-
step: "validation" | "unspecified" | "source" | "request" | "
|
|
1619
|
+
step: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1620
1620
|
status: "unspecified" | "completed" | "current" | "planned";
|
|
1621
1621
|
expectedDurationMs: number;
|
|
1622
1622
|
}[];
|
|
@@ -1626,7 +1626,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1626
1626
|
}>]>, undefined>;
|
|
1627
1627
|
readonly observedSteps: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1628
1628
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1629
|
-
readonly step: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "
|
|
1629
|
+
readonly step: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1630
1630
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
1631
1631
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1632
1632
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -1763,7 +1763,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1763
1763
|
}>]>, undefined>, readonly []>;
|
|
1764
1764
|
}, undefined>, v.TransformAction<{
|
|
1765
1765
|
sequence: number;
|
|
1766
|
-
step: "validation" | "unspecified" | "source" | "request" | "
|
|
1766
|
+
step: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1767
1767
|
assetIds?: {
|
|
1768
1768
|
zippedAssetId: number;
|
|
1769
1769
|
unifiedAssetId: number;
|
|
@@ -1824,7 +1824,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1824
1824
|
})[];
|
|
1825
1825
|
}, Omit<{
|
|
1826
1826
|
sequence: number;
|
|
1827
|
-
step: "validation" | "unspecified" | "source" | "request" | "
|
|
1827
|
+
step: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1828
1828
|
assetIds?: {
|
|
1829
1829
|
zippedAssetId: number;
|
|
1830
1830
|
unifiedAssetId: number;
|
|
@@ -1899,7 +1899,7 @@ declare const LifecycleFlowTxMatchSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
1899
1899
|
readonly txOccurrenceIndex: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, number>]>;
|
|
1900
1900
|
readonly sourceDomain: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowDomain, undefined>, v.TransformAction<FlowDomain, "unspecified" | "funding" | "trading" | "external_chain" | "zipper" | "lending">]>;
|
|
1901
1901
|
readonly destinationDomain: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowDomain, undefined>, v.TransformAction<FlowDomain, "unspecified" | "funding" | "trading" | "external_chain" | "zipper" | "lending">]>;
|
|
1902
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "
|
|
1902
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1903
1903
|
readonly isOpen: v.BooleanSchema<undefined>;
|
|
1904
1904
|
readonly isTerminal: v.BooleanSchema<undefined>;
|
|
1905
1905
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -1933,7 +1933,7 @@ declare const LifecycleFlowTxMatchSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
1933
1933
|
txOccurrenceIndex?: number | undefined;
|
|
1934
1934
|
sourceDomain: "unspecified" | "funding" | "trading" | "external_chain" | "zipper" | "lending";
|
|
1935
1935
|
destinationDomain: "unspecified" | "funding" | "trading" | "external_chain" | "zipper" | "lending";
|
|
1936
|
-
currentStep: "validation" | "unspecified" | "source" | "request" | "
|
|
1936
|
+
currentStep: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1937
1937
|
isOpen: boolean;
|
|
1938
1938
|
isTerminal: boolean;
|
|
1939
1939
|
assetIds?: {
|
|
@@ -1961,7 +1961,7 @@ declare const LifecycleFlowTxMatchSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
1961
1961
|
txOccurrenceIndex?: number | undefined;
|
|
1962
1962
|
sourceDomain: "unspecified" | "funding" | "trading" | "external_chain" | "zipper" | "lending";
|
|
1963
1963
|
destinationDomain: "unspecified" | "funding" | "trading" | "external_chain" | "zipper" | "lending";
|
|
1964
|
-
currentStep: "validation" | "unspecified" | "source" | "request" | "
|
|
1964
|
+
currentStep: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1965
1965
|
isOpen: boolean;
|
|
1966
1966
|
isTerminal: boolean;
|
|
1967
1967
|
assetIds?: {
|
|
@@ -1994,7 +1994,7 @@ declare const ListLifecycleFlowsByTxOutputSchema: v.ObjectSchema<{
|
|
|
1994
1994
|
readonly txOccurrenceIndex: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, number>]>;
|
|
1995
1995
|
readonly sourceDomain: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowDomain, undefined>, v.TransformAction<FlowDomain, "unspecified" | "funding" | "trading" | "external_chain" | "zipper" | "lending">]>;
|
|
1996
1996
|
readonly destinationDomain: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowDomain, undefined>, v.TransformAction<FlowDomain, "unspecified" | "funding" | "trading" | "external_chain" | "zipper" | "lending">]>;
|
|
1997
|
-
readonly currentStep: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "
|
|
1997
|
+
readonly currentStep: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FlowStep, undefined>, v.TransformAction<FlowStep, "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1998
1998
|
readonly isOpen: v.BooleanSchema<undefined>;
|
|
1999
1999
|
readonly isTerminal: v.BooleanSchema<undefined>;
|
|
2000
2000
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -2028,7 +2028,7 @@ declare const ListLifecycleFlowsByTxOutputSchema: v.ObjectSchema<{
|
|
|
2028
2028
|
txOccurrenceIndex?: number | undefined;
|
|
2029
2029
|
sourceDomain: "unspecified" | "funding" | "trading" | "external_chain" | "zipper" | "lending";
|
|
2030
2030
|
destinationDomain: "unspecified" | "funding" | "trading" | "external_chain" | "zipper" | "lending";
|
|
2031
|
-
currentStep: "validation" | "unspecified" | "source" | "request" | "
|
|
2031
|
+
currentStep: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
2032
2032
|
isOpen: boolean;
|
|
2033
2033
|
isTerminal: boolean;
|
|
2034
2034
|
assetIds?: {
|
|
@@ -2056,7 +2056,7 @@ declare const ListLifecycleFlowsByTxOutputSchema: v.ObjectSchema<{
|
|
|
2056
2056
|
txOccurrenceIndex?: number | undefined;
|
|
2057
2057
|
sourceDomain: "unspecified" | "funding" | "trading" | "external_chain" | "zipper" | "lending";
|
|
2058
2058
|
destinationDomain: "unspecified" | "funding" | "trading" | "external_chain" | "zipper" | "lending";
|
|
2059
|
-
currentStep: "validation" | "unspecified" | "source" | "request" | "
|
|
2059
|
+
currentStep: "validation" | "unspecified" | "source" | "request" | "failed" | "transfer" | "dropped" | "refunded" | "execution" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
2060
2060
|
isOpen: boolean;
|
|
2061
2061
|
isTerminal: boolean;
|
|
2062
2062
|
assetIds?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MarketOrderBy, SortDirection, SparklineInterval } from "../../gen/marketoverview/v1/marketoverview_pb.js";
|
|
2
|
-
import { ListMarketOverviewInput, ListMarketOverviewInputSchema, MarketOverview, MarketOverviewOrderBy, MarketOverviewOrderBySchema, MarketOverviewSort, MarketOverviewSortSchema, MarketOverviewSparkline, SparklineIntervalName, SparklineIntervalSchema, createMarketOverviewSchema } from "./market-overview.schemas.js";
|
|
2
|
+
import { ListMarketOverviewInput, ListMarketOverviewInputSchema, MarketOverview, MarketOverviewOrderBy, MarketOverviewOrderBySchema, MarketOverviewSort, MarketOverviewSortSchema, MarketOverviewSparkline, SparklineIntervalName, SparklineIntervalSchema, SpotPairVolumeSeries, SpotPairVolumeSeriesSchema, SpotVolumeHistoryInput, SpotVolumeHistoryInputSchema, SpotVolumeHistoryResponse, SpotVolumeHistoryResponseSchema, createMarketOverviewSchema } from "./market-overview.schemas.js";
|
|
3
3
|
import { MarketOverviewService } from "./market-overview.js";
|
|
4
|
-
export { ListMarketOverviewInput, ListMarketOverviewInputSchema, MarketOverview, MarketOverviewOrderBy, MarketOverviewOrderBySchema, MarketOverviewService, MarketOverviewSort, MarketOverviewSortSchema, MarketOverviewSparkline, SparklineIntervalName, SparklineIntervalSchema, createMarketOverviewSchema };
|
|
4
|
+
export { ListMarketOverviewInput, ListMarketOverviewInputSchema, MarketOverview, MarketOverviewOrderBy, MarketOverviewOrderBySchema, MarketOverviewService, MarketOverviewSort, MarketOverviewSortSchema, MarketOverviewSparkline, SparklineIntervalName, SparklineIntervalSchema, SpotPairVolumeSeries, SpotPairVolumeSeriesSchema, SpotVolumeHistoryInput, SpotVolumeHistoryInputSchema, SpotVolumeHistoryResponse, SpotVolumeHistoryResponseSchema, createMarketOverviewSchema };
|
|
@@ -8,7 +8,7 @@ const SPARKLINE_INTERVAL_VALUES = [
|
|
|
8
8
|
];
|
|
9
9
|
const MARKET_OVERVIEW_ORDER_BY_VALUES = [
|
|
10
10
|
"change_24h_bps",
|
|
11
|
-
"
|
|
11
|
+
"volume_24h_usd",
|
|
12
12
|
"last_price",
|
|
13
13
|
"date_added"
|
|
14
14
|
];
|
|
@@ -30,7 +30,7 @@ const SparklineIntervalCodec = {
|
|
|
30
30
|
};
|
|
31
31
|
const MarketOverviewOrderByCodec = { inputToProto: {
|
|
32
32
|
change_24h_bps: 1,
|
|
33
|
-
|
|
33
|
+
volume_24h_usd: 2,
|
|
34
34
|
last_price: 3,
|
|
35
35
|
date_added: 4
|
|
36
36
|
} };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market-overview.codecs.js","names":[],"sources":["../../../src/services/market-overview/market-overview.codecs.ts"],"sourcesContent":["import * as Proto from \"../../gen/marketoverview/v1/marketoverview_pb.js\";\nimport type { InputToProto, ProtoToOutput } from \"../../utils/types.js\";\n\nexport const SPARKLINE_INTERVAL_VALUES = [\"1h\", \"24h\", \"1w\", \"1m\"] as const;\nexport type SparklineIntervalValue = (typeof SPARKLINE_INTERVAL_VALUES)[number];\n\nexport const MARKET_OVERVIEW_ORDER_BY_VALUES = [\n \"change_24h_bps\",\n \"
|
|
1
|
+
{"version":3,"file":"market-overview.codecs.js","names":[],"sources":["../../../src/services/market-overview/market-overview.codecs.ts"],"sourcesContent":["import * as Proto from \"../../gen/marketoverview/v1/marketoverview_pb.js\";\nimport type { InputToProto, ProtoToOutput } from \"../../utils/types.js\";\n\nexport const SPARKLINE_INTERVAL_VALUES = [\"1h\", \"24h\", \"1w\", \"1m\"] as const;\nexport type SparklineIntervalValue = (typeof SPARKLINE_INTERVAL_VALUES)[number];\n\nexport const MARKET_OVERVIEW_ORDER_BY_VALUES = [\n \"change_24h_bps\",\n \"volume_24h_usd\",\n \"last_price\",\n \"date_added\",\n] as const;\nexport type MarketOverviewOrderByValue = (typeof MARKET_OVERVIEW_ORDER_BY_VALUES)[number];\n\nexport const MARKET_OVERVIEW_SORT_VALUES = [\"asc\", \"desc\"] as const;\nexport type MarketOverviewSortValue = (typeof MARKET_OVERVIEW_SORT_VALUES)[number];\n\nexport const SparklineIntervalCodec = {\n inputToProto: {\n \"1h\": Proto.SparklineInterval.SPARKLINE_1H,\n \"24h\": Proto.SparklineInterval.SPARKLINE_24H,\n \"1w\": Proto.SparklineInterval.SPARKLINE_1W,\n \"1m\": Proto.SparklineInterval.SPARKLINE_1M,\n } satisfies InputToProto<SparklineIntervalValue, Proto.SparklineInterval>,\n protoToOutput: {\n [Proto.SparklineInterval.SPARKLINE_INTERVAL_UNSPECIFIED]: \"unspecified\",\n [Proto.SparklineInterval.SPARKLINE_1H]: \"1h\",\n [Proto.SparklineInterval.SPARKLINE_24H]: \"24h\",\n [Proto.SparklineInterval.SPARKLINE_1W]: \"1w\",\n [Proto.SparklineInterval.SPARKLINE_1M]: \"1m\",\n } satisfies ProtoToOutput<Proto.SparklineInterval, SparklineIntervalValue>,\n} as const;\n\nexport const MarketOverviewOrderByCodec = {\n inputToProto: {\n change_24h_bps: Proto.MarketOrderBy.ORDER_BY_CHANGE_24H_BPS,\n volume_24h_usd: Proto.MarketOrderBy.ORDER_BY_VOLUME_24H_USD,\n last_price: Proto.MarketOrderBy.ORDER_BY_LAST_PRICE,\n date_added: Proto.MarketOrderBy.ORDER_BY_DATE_ADDED,\n } satisfies InputToProto<MarketOverviewOrderByValue, Proto.MarketOrderBy>,\n} as const;\n\nexport const MarketOverviewSortCodec = {\n inputToProto: {\n asc: Proto.SortDirection.SORT_ASC,\n desc: Proto.SortDirection.SORT_DESC,\n } satisfies InputToProto<MarketOverviewSortValue, Proto.SortDirection>,\n} as const;\n"],"mappings":";;AAGA,MAAa,4BAA4B;CAAC;CAAM;CAAO;CAAM;AAAI;AAGjE,MAAa,kCAAkC;CAC3C;CACA;CACA;CACA;AACJ;AAGA,MAAa,8BAA8B,CAAC,OAAO,MAAM;AAGzD,MAAa,yBAAyB;CAClC,cAAc;EACV,MAAA;EACA,OAAA;EACA,MAAA;EACA,MAAA;CACJ;CACA,eAAe;GAC+C,IAAA;GAClB,IAAA;GACC,IAAA;GACD,IAAA;GACA,IAAA;CAC5C;AACJ;AAEA,MAAa,6BAA6B,EACtC,cAAc;CACV,gBAAA;CACA,gBAAA;CACA,YAAA;CACA,YAAA;AACJ,EACJ;AAEA,MAAa,0BAA0B,EACnC,cAAc;CACV,KAAA;CACA,MAAA;AACJ,EACJ"}
|