@polyester/sdk 0.35.0-devnet-20261111031027 → 0.35.0-devnet-20261111140253
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 +27 -1
- package/dist/catalogs/snapshot-validation.js +2 -1
- package/dist/catalogs/snapshot-validation.js.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +4164 -0
- package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -0
- package/dist/gen/ai/v1/assistant_pb.js +1174 -0
- package/dist/gen/ai/v1/assistant_pb.js.map +1 -0
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts +776 -0
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts.map +1 -0
- package/dist/gen/alerts/v1/price_alerts_pb.js +378 -0
- package/dist/gen/alerts/v1/price_alerts_pb.js.map +1 -0
- package/dist/gen/auth/v1/address_book_pb.d.ts +6 -0
- package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/address_book_pb.js +6 -0
- package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts +242 -2
- package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.js +81 -2
- package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +48 -6
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +48 -6
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +83 -19
- package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +74 -16
- package/dist/gen/auth/v1/policies_pb.js.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.d.ts +167 -11
- package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js +41 -3
- package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +17 -6
- package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +4 -2
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts.map +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +5 -0
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts.map +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.js.map +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +10 -0
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +32 -4
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts.map +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.js +32 -4
- package/dist/gen/chain/lifecycle/v1/types_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +391 -42
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js +103 -17
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +170 -3
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +63 -2
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
- package/dist/gen/claims/v1/claims_pb.js +1 -1
- package/dist/gen/claims/v1/claims_pb.js.map +1 -1
- package/dist/gen/index.d.ts +9 -5
- package/dist/gen/index.js +5 -1
- package/dist/gen/ledger/v1/catalog_pb.d.ts +9 -1
- package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
- package/dist/gen/ledger/v1/catalog_pb.js +9 -1
- package/dist/gen/ledger/v1/catalog_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts +8 -0
- 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/orders/v1/orders_pb.d.ts +4 -4
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +20 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts.map +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.js +20 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +1186 -127
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +282 -5
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +253 -38
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +180 -36
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +933 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +292 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -0
- package/dist/gen/system/v1/system_pb.d.ts +77 -0
- package/dist/gen/system/v1/system_pb.d.ts.map +1 -0
- package/dist/gen/system/v1/system_pb.js +34 -0
- package/dist/gen/system/v1/system_pb.js.map +1 -0
- package/dist/gen/tradews/v1/trade_ws_pb.d.ts +2 -2
- package/dist/gen/tradews/v1/trade_ws_pb.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/services/api-keys/api-keys.codecs.js +10 -1
- package/dist/services/api-keys/api-keys.codecs.js.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.d.ts +4 -0
- package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.js +3 -1
- package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +9 -2
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js +9 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.d.ts +15 -4
- package/dist/services/auto-withdraw/auto-withdraw.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.js +24 -8
- package/dist/services/auto-withdraw/auto-withdraw.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +394 -26
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +66 -11
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.types.d.ts +3 -3
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/changelog/changelog.schemas.d.ts +17 -17
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
- package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +3 -3
- package/dist/services/lifecycle/lifecycle.codecs.d.ts +2 -2
- package/dist/services/lifecycle/lifecycle.codecs.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.codecs.js +3 -1
- package/dist/services/lifecycle/lifecycle.codecs.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +64 -40
- package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.js +7 -1
- package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
- package/dist/services/market-data/market-data.schemas.js +7 -2
- package/dist/services/market-data/market-data.schemas.js.map +1 -1
- package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +27 -27
- package/dist/services/orders/orders-input.schemas.d.ts +3 -3
- package/dist/services/orders/orders-output.schemas.d.ts +17 -17
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
- package/dist/services/policies/shared.codecs.js +24 -3
- package/dist/services/policies/shared.codecs.js.map +1 -1
- package/dist/services/policies/shared.d.ts +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
- package/dist/services/social-verification/social-verification.codecs.js +13 -5
- package/dist/services/social-verification/social-verification.codecs.js.map +1 -1
- package/dist/services/social-verification/social-verification.d.ts +18 -3
- package/dist/services/social-verification/social-verification.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.js +26 -3
- package/dist/services/social-verification/social-verification.js.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.d.ts +33 -7
- package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +35 -10
- package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
- package/dist/services/social-verification/social-verification.types.d.ts +2 -2
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +7 -7
- package/dist/services/trades/trades.schemas.d.ts +2 -2
- package/dist/services/trading-withdraws/trading-withdraws.d.ts +7 -1
- package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +11 -1
- package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +42 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +19 -3
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +2 -2
- package/dist/services/transfers/transfers.schemas.d.ts +4 -4
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +30 -30
- package/dist/shared/catalog-config.d.ts +5 -0
- package/dist/shared/catalog-config.d.ts.map +1 -1
- package/dist/shared/catalog-config.js.map +1 -1
- package/dist/shared/error-detail.d.ts +6 -0
- package/dist/shared/error-detail.d.ts.map +1 -1
- package/dist/shared/error-detail.js.map +1 -1
- package/dist/shared/error-details/withdraw.js +11 -2
- package/dist/shared/error-details/withdraw.js.map +1 -1
- package/dist/shared/ledger-codes.d.ts +4 -2
- package/dist/shared/ledger-codes.d.ts.map +1 -1
- package/dist/shared/ledger-codes.js +6 -3
- package/dist/shared/ledger-codes.js.map +1 -1
- package/dist/shared/rate-limit.schemas.d.ts +2 -2
- package/dist/shared/rate-limit.schemas.d.ts.map +1 -1
- package/dist/shared/rate-limit.schemas.js +4 -1
- package/dist/shared/rate-limit.schemas.js.map +1 -1
- package/dist/shared/transports.d.ts +2 -1
- package/dist/shared/transports.d.ts.map +1 -1
- package/dist/shared/transports.js.map +1 -1
- package/package.json +1 -1
|
@@ -13,8 +13,8 @@ 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<"
|
|
17
|
-
readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<1 | 5 | 10 | 20 | 100 | 500 |
|
|
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
|
+
readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<1 | 5 | 10 | 20 | 100 | 500 | 1000 | 200 | 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>]>;
|
|
20
20
|
readonly startTsSec: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, number, undefined>, v.TransformAction<number, bigint>]>, 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,8 +226,8 @@ 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<"
|
|
230
|
-
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 |
|
|
229
|
+
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1s" | "1m" | "5m" | "1h">>]>;
|
|
230
|
+
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 | 1000 | 200 | 50>]>;
|
|
231
231
|
readonly chain: v.OptionalSchema<v.ObjectSchema<{
|
|
232
232
|
readonly baseKeyframe: v.OptionalSchema<v.ObjectSchema<{
|
|
233
233
|
readonly tsSec: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
@@ -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,8 +286,8 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
286
286
|
}, undefined>, undefined>;
|
|
287
287
|
}, undefined>, v.TransformAction<{
|
|
288
288
|
symbolId: number;
|
|
289
|
-
interval: DecodedEnum<"
|
|
290
|
-
depth: 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 |
|
|
289
|
+
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
290
|
+
depth: 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 | 1000 | 200 | 50;
|
|
291
291
|
chain?: {
|
|
292
292
|
baseKeyframe?: {
|
|
293
293
|
tsSec: number;
|
|
@@ -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,8 +346,8 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
346
346
|
} | undefined;
|
|
347
347
|
}, {
|
|
348
348
|
symbolId: number;
|
|
349
|
-
interval: DecodedEnum<"
|
|
350
|
-
depth: 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 |
|
|
349
|
+
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
350
|
+
depth: 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 | 1000 | 200 | 50;
|
|
351
351
|
chain: {
|
|
352
352
|
baseKeyframe: {
|
|
353
353
|
tsSec: number;
|
|
@@ -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: {
|
|
@@ -138,7 +138,7 @@ declare function createCreateInternalTransferResultSchema(): v.SchemaWithPipe<re
|
|
|
138
138
|
subaccountId: string | undefined;
|
|
139
139
|
smartAccountAddress: string | undefined;
|
|
140
140
|
}>]>, undefined>;
|
|
141
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
141
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "accepted" | "rejected" | "failed">]>;
|
|
142
142
|
/** Lifecycle flow ID for `lifecycle.getFlow`; empty when the server did not return one. */
|
|
143
143
|
readonly flowId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, "">;
|
|
144
144
|
}, undefined>, v.TransformAction<{
|
|
@@ -157,7 +157,7 @@ declare function createCreateInternalTransferResultSchema(): v.SchemaWithPipe<re
|
|
|
157
157
|
subaccountId: string | undefined;
|
|
158
158
|
smartAccountAddress: string | undefined;
|
|
159
159
|
} | undefined;
|
|
160
|
-
status: "unspecified" | "
|
|
160
|
+
status: "unspecified" | "accepted" | "rejected" | "failed";
|
|
161
161
|
flowId: string;
|
|
162
162
|
}, {
|
|
163
163
|
acceptedAtUnixMs: number;
|
|
@@ -172,7 +172,7 @@ declare function createCreateInternalTransferResultSchema(): v.SchemaWithPipe<re
|
|
|
172
172
|
subaccountId: string | undefined;
|
|
173
173
|
smartAccountAddress: string | undefined;
|
|
174
174
|
} | undefined;
|
|
175
|
-
status: "unspecified" | "
|
|
175
|
+
status: "unspecified" | "accepted" | "rejected" | "failed";
|
|
176
176
|
flowId: string;
|
|
177
177
|
}>]>;
|
|
178
178
|
type CreateInternalTransferResult = v.InferOutput<ReturnType<typeof createCreateInternalTransferResultSchema>>;
|
|
@@ -9,14 +9,14 @@ declare const LIFECYCLE_SORT_VALUES: readonly ["newest", "oldest"];
|
|
|
9
9
|
type LifecycleSortValue = (typeof LIFECYCLE_SORT_VALUES)[number];
|
|
10
10
|
declare const LIFECYCLE_LIST_ORDER_BY_VALUES: readonly ["last_activity", "started_at"];
|
|
11
11
|
type LifecycleListOrderByValue = (typeof LIFECYCLE_LIST_ORDER_BY_VALUES)[number];
|
|
12
|
-
declare const LIFECYCLE_REASON_VALUES: readonly ["unspecified", "zipper_validation_rejected", "zipper_execution_rejected", "zipper_withdraw_execution_failed", "zipper_deposit_refund_failed", "ledger_mirror_rejected", "ledger_mirror_transfer_exceeds_credits", "ledger_mirror_transfer_exists", "ledger_mirror_pending_transfer_not_found", "ledger_mirror_transfer_id_already_failed", "trading_withdraw_policy_denied", "trading_withdraw_contract_reverted", "trading_withdraw_execution_failed", "deposit_source_not_confirmed"];
|
|
12
|
+
declare const LIFECYCLE_REASON_VALUES: readonly ["unspecified", "zipper_validation_rejected", "zipper_execution_rejected", "zipper_withdraw_execution_failed", "zipper_deposit_refund_failed", "zipper_compliance_transferred", "ledger_mirror_rejected", "ledger_mirror_transfer_exceeds_credits", "ledger_mirror_transfer_exists", "ledger_mirror_pending_transfer_not_found", "ledger_mirror_transfer_id_already_failed", "trading_withdraw_policy_denied", "trading_withdraw_contract_reverted", "trading_withdraw_execution_failed", "deposit_source_not_confirmed"];
|
|
13
13
|
/**
|
|
14
14
|
* Catalog labels plus a code-preserving fallback for wire values the generated
|
|
15
15
|
* enum does not know. Proto3 enums are open — the backend can emit codes ahead
|
|
16
16
|
* of a contract update — and rejecting them froze flows out of the UI.
|
|
17
17
|
*/
|
|
18
18
|
type LifecycleReasonValue = (typeof LIFECYCLE_REASON_VALUES)[number] | `unknown_reason_${number}`;
|
|
19
|
-
declare const LIFECYCLE_REQUEST_FEE_STATUS_VALUES: readonly ["locked", "settled"];
|
|
19
|
+
declare const LIFECYCLE_REQUEST_FEE_STATUS_VALUES: readonly ["locked", "settled", "kept"];
|
|
20
20
|
type LifecycleRequestFeeStatusValue = (typeof LIFECYCLE_REQUEST_FEE_STATUS_VALUES)[number];
|
|
21
21
|
//#endregion
|
|
22
22
|
export { LIFECYCLE_LIST_ORDER_BY_VALUES, LIFECYCLE_LIST_SCOPE_VALUES, LIFECYCLE_REASON_VALUES, LIFECYCLE_REQUEST_FEE_STATUS_VALUES, LIFECYCLE_SORT_VALUES, LIFECYCLE_TX_LOOKUP_KIND_VALUES, LifecycleListOrderByValue, LifecycleListScopeValue, LifecycleReasonValue, LifecycleRequestFeeStatusValue, LifecycleSortValue, LifecycleTxLookupKindValue };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.codecs.d.ts","names":[],"sources":["../../../src/services/lifecycle/lifecycle.codecs.ts"],"mappings":";;;cAkCa;KACD,kCAAkC;cAKjC;KACD,qCAAqC;cAEpC;KACD,6BAA6B;cAE5B;KACD,oCAAoC;cAEnC;;;;;;
|
|
1
|
+
{"version":3,"file":"lifecycle.codecs.d.ts","names":[],"sources":["../../../src/services/lifecycle/lifecycle.codecs.ts"],"mappings":";;;cAkCa;KACD,kCAAkC;cAKjC;KACD,qCAAqC;cAEpC;KACD,6BAA6B;cAE5B;KACD,oCAAoC;cAEnC;;;;;;KAsBD,+BACE;cAyCD;KACD,yCAAyC"}
|
|
@@ -110,6 +110,7 @@ const LifecycleReasonCodec = { protoToOutput: {
|
|
|
110
110
|
[102]: "zipper_execution_rejected",
|
|
111
111
|
[103]: "zipper_withdraw_execution_failed",
|
|
112
112
|
[104]: "zipper_deposit_refund_failed",
|
|
113
|
+
[105]: "zipper_compliance_transferred",
|
|
113
114
|
[200]: "ledger_mirror_rejected",
|
|
114
115
|
[201]: "ledger_mirror_transfer_exceeds_credits",
|
|
115
116
|
[202]: "ledger_mirror_transfer_exists",
|
|
@@ -180,7 +181,8 @@ const LifecycleFlowTimelineStatusCodec = { protoToOutput: {
|
|
|
180
181
|
const LifecycleRequestFeeStatusCodec = { protoToOutput: {
|
|
181
182
|
[0]: "unspecified",
|
|
182
183
|
[1]: "locked",
|
|
183
|
-
[2]: "settled"
|
|
184
|
+
[2]: "settled",
|
|
185
|
+
[3]: "kept"
|
|
184
186
|
} };
|
|
185
187
|
//#endregion
|
|
186
188
|
export { LIFECYCLE_FLOW_KIND_VALUES, LIFECYCLE_FLOW_PARTICIPATION_VALUES, LIFECYCLE_FLOW_STATE_VALUES, LIFECYCLE_LIST_ORDER_BY_VALUES, LIFECYCLE_LIST_SCOPE_VALUES, LIFECYCLE_SORT_VALUES, LIFECYCLE_TX_LOOKUP_KIND_VALUES, LifecycleFlowDomainCodec, LifecycleFlowKindCodec, LifecycleFlowParticipationCodec, LifecycleFlowStateCodec, LifecycleFlowStepActivityKindCodec, LifecycleFlowStepCodec, LifecycleFlowTimelineStatusCodec, LifecycleListOrderByCodec, LifecycleListScopeCodec, LifecycleReasonCodec, LifecycleRequestFeeStatusCodec, LifecycleSortCodec, LifecycleSourceCodec, LifecycleTxLookupKindCodec, lifecycleReasonFromCode };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.codecs.js","names":[],"sources":["../../../src/services/lifecycle/lifecycle.codecs.ts"],"sourcesContent":["import {\n FlowDomain,\n FlowKind,\n FlowState,\n LifecycleReason,\n LifecycleSource,\n RequestFeeStatus,\n} from \"../../gen/chain/lifecycle/v1/types_pb.js\";\nimport {\n FlowParticipation,\n FlowStep,\n FlowStepActivityKind,\n FlowTimelineStatus,\n ListOrderBy,\n ListScope,\n Sort,\n TxLookupKind,\n} from \"../../gen/chain/lifecycle/v1/lifecycle_read_pb.js\";\nimport type { InputToProto, ProtoToOutput } from \"../../utils/types.js\";\n\nexport const LIFECYCLE_FLOW_KIND_VALUES = [\"deposit\", \"withdraw\", \"transfer\"] as const;\nexport type LifecycleFlowKindValue = (typeof LIFECYCLE_FLOW_KIND_VALUES)[number];\n\nexport const LIFECYCLE_FLOW_STATE_VALUES = [\n \"pending_source\",\n \"pending_polyester_chain\",\n \"pending_ledger\",\n \"completed\",\n \"failed\",\n \"dropped\",\n \"refunded\",\n] as const;\nexport type LifecycleFlowStateValue = (typeof LIFECYCLE_FLOW_STATE_VALUES)[number];\n\nexport const LIFECYCLE_LIST_SCOPE_VALUES = [\"all\", \"open\", \"terminal\"] as const;\nexport type LifecycleListScopeValue = (typeof LIFECYCLE_LIST_SCOPE_VALUES)[number];\n\nexport const LIFECYCLE_FLOW_PARTICIPATION_VALUES = [\"owner\", \"recipient\"] as const;\nexport type LifecycleFlowParticipationValue = (typeof LIFECYCLE_FLOW_PARTICIPATION_VALUES)[number];\n\nexport const LIFECYCLE_TX_LOOKUP_KIND_VALUES = [\"source\", \"any\"] as const;\nexport type LifecycleTxLookupKindValue = (typeof LIFECYCLE_TX_LOOKUP_KIND_VALUES)[number];\n\nexport const LIFECYCLE_SORT_VALUES = [\"newest\", \"oldest\"] as const;\nexport type LifecycleSortValue = (typeof LIFECYCLE_SORT_VALUES)[number];\n\nexport const LIFECYCLE_LIST_ORDER_BY_VALUES = [\"last_activity\", \"started_at\"] as const;\nexport type LifecycleListOrderByValue = (typeof LIFECYCLE_LIST_ORDER_BY_VALUES)[number];\n\nexport const LIFECYCLE_REASON_VALUES = [\n \"unspecified\",\n \"zipper_validation_rejected\",\n \"zipper_execution_rejected\",\n \"zipper_withdraw_execution_failed\",\n \"zipper_deposit_refund_failed\",\n \"ledger_mirror_rejected\",\n \"ledger_mirror_transfer_exceeds_credits\",\n \"ledger_mirror_transfer_exists\",\n \"ledger_mirror_pending_transfer_not_found\",\n \"ledger_mirror_transfer_id_already_failed\",\n \"trading_withdraw_policy_denied\",\n \"trading_withdraw_contract_reverted\",\n \"trading_withdraw_execution_failed\",\n \"deposit_source_not_confirmed\",\n] as const;\n/**\n * Catalog labels plus a code-preserving fallback for wire values the generated\n * enum does not know. Proto3 enums are open — the backend can emit codes ahead\n * of a contract update — and rejecting them froze flows out of the UI.\n */\nexport type LifecycleReasonValue =\n | (typeof LIFECYCLE_REASON_VALUES)[number]\n | `unknown_reason_${number}`;\n\nexport const LIFECYCLE_FLOW_STEP_VALUES = [\n \"source\",\n \"transfer\",\n \"request\",\n \"validation\",\n \"execution\",\n \"bridge_fulfillment\",\n \"dropped\",\n \"failed\",\n \"refunded\",\n \"fulfilling\",\n \"settlement\",\n] as const;\nexport type LifecycleFlowStepValue = (typeof LIFECYCLE_FLOW_STEP_VALUES)[number];\n\nexport const LIFECYCLE_SOURCE_VALUES = [\n \"unspecified\",\n \"relayer\",\n \"polyester_chain\",\n \"executor\",\n \"ledger\",\n \"lifecycle\",\n] as const;\nexport type LifecycleSourceValue = (typeof LIFECYCLE_SOURCE_VALUES)[number];\n\nexport const LIFECYCLE_FLOW_STEP_ACTIVITY_KIND_VALUES = [\n \"minted\",\n \"funding\",\n \"trading\",\n \"unspecified\",\n] as const;\nexport type LifecycleFlowStepActivityKindValue =\n (typeof LIFECYCLE_FLOW_STEP_ACTIVITY_KIND_VALUES)[number];\n\nexport const LIFECYCLE_FLOW_TIMELINE_STATUS_VALUES = [\"completed\", \"current\", \"planned\"] as const;\nexport type LifecycleFlowTimelineStatusValue =\n (typeof LIFECYCLE_FLOW_TIMELINE_STATUS_VALUES)[number];\n\nexport const LIFECYCLE_REQUEST_FEE_STATUS_VALUES = [\"locked\", \"settled\"] as const;\nexport type LifecycleRequestFeeStatusValue = (typeof LIFECYCLE_REQUEST_FEE_STATUS_VALUES)[number];\n\nexport const LIFECYCLE_FLOW_DOMAIN_VALUES = [\n \"external_chain\",\n \"zipper\",\n \"funding\",\n \"trading\",\n \"lending\",\n] as const;\nexport type LifecycleFlowDomainValue = (typeof LIFECYCLE_FLOW_DOMAIN_VALUES)[number];\n\nexport const LifecycleFlowDomainCodec = {\n protoToOutput: {\n [FlowDomain.DOMAIN_UNSPECIFIED]: \"unspecified\",\n [FlowDomain.DOMAIN_EXTERNAL_CHAIN]: \"external_chain\",\n [FlowDomain.DOMAIN_ZIPPER]: \"zipper\",\n [FlowDomain.DOMAIN_FUNDING]: \"funding\",\n [FlowDomain.DOMAIN_TRADING]: \"trading\",\n [FlowDomain.DOMAIN_LENDING]: \"lending\",\n } satisfies ProtoToOutput<FlowDomain, LifecycleFlowDomainValue>,\n} as const;\n\nexport const LifecycleFlowKindCodec = {\n inputToProto: {\n deposit: FlowKind.KIND_DEPOSIT,\n withdraw: FlowKind.KIND_WITHDRAW,\n transfer: FlowKind.KIND_TRANSFER,\n } satisfies InputToProto<LifecycleFlowKindValue, FlowKind>,\n protoToOutput: {\n [FlowKind.KIND_UNSPECIFIED]: \"unspecified\",\n [FlowKind.KIND_DEPOSIT]: \"deposit\",\n [FlowKind.KIND_WITHDRAW]: \"withdraw\",\n [FlowKind.KIND_TRANSFER]: \"transfer\",\n } satisfies ProtoToOutput<FlowKind, LifecycleFlowKindValue>,\n} as const;\n\nexport const LifecycleFlowStateCodec = {\n inputToProto: {\n pending_source: FlowState.STATE_PENDING_SOURCE,\n pending_polyester_chain: FlowState.STATE_PENDING_POLYESTER_CHAIN,\n pending_ledger: FlowState.STATE_PENDING_LEDGER,\n completed: FlowState.STATE_COMPLETED,\n failed: FlowState.STATE_FAILED,\n dropped: FlowState.STATE_DROPPED,\n refunded: FlowState.STATE_REFUNDED,\n } satisfies InputToProto<LifecycleFlowStateValue, FlowState>,\n protoToOutput: {\n [FlowState.STATE_UNSPECIFIED]: \"unspecified\",\n [FlowState.STATE_PENDING_SOURCE]: \"pending_source\",\n [FlowState.STATE_PENDING_POLYESTER_CHAIN]: \"pending_polyester_chain\",\n [FlowState.STATE_PENDING_LEDGER]: \"pending_ledger\",\n [FlowState.STATE_COMPLETED]: \"completed\",\n [FlowState.STATE_FAILED]: \"failed\",\n [FlowState.STATE_DROPPED]: \"dropped\",\n [FlowState.STATE_REFUNDED]: \"refunded\",\n } satisfies ProtoToOutput<FlowState, LifecycleFlowStateValue>,\n} as const;\n\nexport const LifecycleListScopeCodec = {\n inputToProto: {\n all: ListScope.LIST_ALL,\n open: ListScope.LIST_OPEN_ONLY,\n terminal: ListScope.LIST_TERMINAL_ONLY,\n } satisfies InputToProto<LifecycleListScopeValue, ListScope>,\n protoToOutput: {\n [ListScope.LIST_UNSPECIFIED]: \"unspecified\",\n [ListScope.LIST_ALL]: \"all\",\n [ListScope.LIST_OPEN_ONLY]: \"open\",\n [ListScope.LIST_TERMINAL_ONLY]: \"terminal\",\n } satisfies ProtoToOutput<ListScope, LifecycleListScopeValue>,\n} as const;\n\nexport const LifecycleFlowParticipationCodec = {\n inputToProto: {\n owner: FlowParticipation.PARTICIPATION_OWNER,\n recipient: FlowParticipation.PARTICIPATION_RECIPIENT,\n } satisfies InputToProto<LifecycleFlowParticipationValue, FlowParticipation>,\n protoToOutput: {\n [FlowParticipation.PARTICIPATION_UNSPECIFIED]: \"unspecified\",\n [FlowParticipation.PARTICIPATION_OWNER]: \"owner\",\n [FlowParticipation.PARTICIPATION_RECIPIENT]: \"recipient\",\n } satisfies ProtoToOutput<FlowParticipation, LifecycleFlowParticipationValue>,\n} as const;\n\nexport const LifecycleSortCodec = {\n inputToProto: {\n newest: Sort.NEWEST,\n oldest: Sort.OLDEST,\n } satisfies InputToProto<LifecycleSortValue, Sort>,\n} as const;\n\nexport const LifecycleListOrderByCodec = {\n inputToProto: {\n last_activity: ListOrderBy.ORDER_BY_LAST_ACTIVITY,\n started_at: ListOrderBy.ORDER_BY_STARTED_AT,\n } satisfies InputToProto<LifecycleListOrderByValue, ListOrderBy>,\n} as const;\n\n/**\n * LifecycleReason is a stable product-facing reason catalog. Unlike the other\n * lifecycle enums, `REASON_UNSPECIFIED` (0) is a valid wire value — it is\n * the normal state for flows without a notable reason — so the codec maps the\n * full enum including zero.\n */\nexport const LifecycleReasonCodec = {\n protoToOutput: {\n [LifecycleReason.REASON_UNSPECIFIED]: \"unspecified\",\n [LifecycleReason.ZIPPER_VALIDATION_REJECTED]: \"zipper_validation_rejected\",\n [LifecycleReason.ZIPPER_EXECUTION_REJECTED]: \"zipper_execution_rejected\",\n [LifecycleReason.ZIPPER_WITHDRAW_EXECUTION_FAILED]: \"zipper_withdraw_execution_failed\",\n [LifecycleReason.ZIPPER_DEPOSIT_REFUND_FAILED]: \"zipper_deposit_refund_failed\",\n [LifecycleReason.LEDGER_MIRROR_REJECTED]: \"ledger_mirror_rejected\",\n [LifecycleReason.LEDGER_MIRROR_TRANSFER_EXCEEDS_CREDITS]:\n \"ledger_mirror_transfer_exceeds_credits\",\n [LifecycleReason.LEDGER_MIRROR_TRANSFER_EXISTS]: \"ledger_mirror_transfer_exists\",\n [LifecycleReason.LEDGER_MIRROR_PENDING_TRANSFER_NOT_FOUND]:\n \"ledger_mirror_pending_transfer_not_found\",\n [LifecycleReason.LEDGER_MIRROR_TRANSFER_ID_ALREADY_FAILED]:\n \"ledger_mirror_transfer_id_already_failed\",\n [LifecycleReason.TRADING_WITHDRAW_POLICY_DENIED]: \"trading_withdraw_policy_denied\",\n [LifecycleReason.TRADING_WITHDRAW_CONTRACT_REVERTED]: \"trading_withdraw_contract_reverted\",\n [LifecycleReason.TRADING_WITHDRAW_EXECUTION_FAILED]: \"trading_withdraw_execution_failed\",\n [LifecycleReason.DEPOSIT_SOURCE_NOT_CONFIRMED]: \"deposit_source_not_confirmed\",\n } satisfies Record<LifecycleReason, LifecycleReasonValue>,\n} as const;\n\n/**\n * Maps a wire reason code to its catalog label, preserving uncataloged codes\n * as `unknown_reason_${code}` instead of failing the whole flow payload.\n */\nexport function lifecycleReasonFromCode(code: number): LifecycleReasonValue {\n const known = LifecycleReasonCodec.protoToOutput as Partial<\n Record<number, LifecycleReasonValue>\n >;\n return known[code] ?? `unknown_reason_${code}`;\n}\n\nexport const LifecycleTxLookupKindCodec = {\n inputToProto: {\n source: TxLookupKind.TX_SOURCE,\n any: TxLookupKind.TX_ANY,\n } satisfies InputToProto<LifecycleTxLookupKindValue, TxLookupKind>,\n protoToOutput: {\n [TxLookupKind.TX_UNSPECIFIED]: \"unspecified\",\n [TxLookupKind.TX_SOURCE]: \"source\",\n [TxLookupKind.TX_ANY]: \"any\",\n } satisfies ProtoToOutput<TxLookupKind, LifecycleTxLookupKindValue>,\n} as const;\n\nexport const LifecycleFlowStepCodec = {\n protoToOutput: {\n [FlowStep.UNSPECIFIED]: \"unspecified\",\n [FlowStep.SOURCE]: \"source\",\n [FlowStep.TRANSFER]: \"transfer\",\n [FlowStep.REQUEST]: \"request\",\n [FlowStep.VALIDATION]: \"validation\",\n [FlowStep.EXECUTION]: \"execution\",\n [FlowStep.BRIDGE_FULFILLMENT]: \"bridge_fulfillment\",\n [FlowStep.DROPPED]: \"dropped\",\n [FlowStep.FAILED]: \"failed\",\n [FlowStep.REFUNDED]: \"refunded\",\n [FlowStep.FULFILLING]: \"fulfilling\",\n [FlowStep.SETTLEMENT]: \"settlement\",\n } satisfies ProtoToOutput<FlowStep, LifecycleFlowStepValue>,\n} as const;\n\nexport const LifecycleSourceCodec = {\n /**\n * In-progress flows may emit SOURCE_UNSPECIFIED (0) before a subsystem is\n * attributed, so zero must decode like other lifecycle \"unspecified\" enums.\n */\n protoToOutput: {\n [LifecycleSource.SOURCE_UNSPECIFIED]: \"unspecified\",\n [LifecycleSource.SOURCE_RELAYER]: \"relayer\",\n [LifecycleSource.SOURCE_POLYESTER_CHAIN]: \"polyester_chain\",\n [LifecycleSource.SOURCE_EXECUTOR]: \"executor\",\n [LifecycleSource.SOURCE_LEDGER]: \"ledger\",\n [LifecycleSource.SOURCE_LIFECYCLE]: \"lifecycle\",\n } satisfies Record<LifecycleSource, LifecycleSourceValue>,\n} as const;\n\nexport const LifecycleFlowStepActivityKindCodec = {\n protoToOutput: {\n [FlowStepActivityKind.ACTIVITY_MINTED]: \"minted\",\n [FlowStepActivityKind.ACTIVITY_FUNDING]: \"funding\",\n [FlowStepActivityKind.ACTIVITY_TRADING]: \"trading\",\n [FlowStepActivityKind.ACTIVITY_UNSPECIFIED]: \"unspecified\",\n } satisfies Record<FlowStepActivityKind, LifecycleFlowStepActivityKindValue>,\n} as const;\n\nexport const LifecycleFlowTimelineStatusCodec = {\n protoToOutput: {\n [FlowTimelineStatus.TIMELINE_STATUS_UNSPECIFIED]: \"unspecified\",\n [FlowTimelineStatus.TIMELINE_STATUS_COMPLETED]: \"completed\",\n [FlowTimelineStatus.TIMELINE_STATUS_CURRENT]: \"current\",\n [FlowTimelineStatus.TIMELINE_STATUS_PLANNED]: \"planned\",\n } satisfies ProtoToOutput<FlowTimelineStatus, LifecycleFlowTimelineStatusValue>,\n} as const;\n\nexport const LifecycleRequestFeeStatusCodec = {\n protoToOutput: {\n [RequestFeeStatus.UNSPECIFIED]: \"unspecified\",\n [RequestFeeStatus.LOCKED]: \"locked\",\n [RequestFeeStatus.SETTLED]: \"settled\",\n } satisfies ProtoToOutput<RequestFeeStatus, LifecycleRequestFeeStatusValue>,\n} as const;\n"],"mappings":";;;AAoBA,MAAa,6BAA6B;CAAC;CAAW;CAAY;AAAU;AAG5E,MAAa,8BAA8B;CACvC;CACA;CACA;CACA;CACA;CACA;CACA;AACJ;AAGA,MAAa,8BAA8B;CAAC;CAAO;CAAQ;AAAU;AAGrE,MAAa,sCAAsC,CAAC,SAAS,WAAW;AAGxE,MAAa,kCAAkC,CAAC,UAAU,KAAK;AAG/D,MAAa,wBAAwB,CAAC,UAAU,QAAQ;AAGxD,MAAa,iCAAiC,CAAC,iBAAiB,YAAY;AA8E5E,MAAa,2BAA2B,EACpC,eAAe;EACsB,IAAA;EACG,IAAA;EACR,IAAA;EACC,IAAA;EACA,IAAA;EACA,IAAA;AACjC,EACJ;AAEA,MAAa,yBAAyB;CAClC,cAAc;EACV,SAAA;EACA,UAAA;EACA,UAAA;CACJ;CACA,eAAe;GACkB,IAAA;GACJ,IAAA;GACC,IAAA;GACA,IAAA;CAC9B;AACJ;AAEA,MAAa,0BAA0B;CACnC,cAAc;EACV,gBAAA;EACA,yBAAA;EACA,gBAAA;EACA,WAAA;EACA,QAAA;EACA,SAAA;EACA,UAAA;CACJ;CACA,eAAe;GACoB,IAAA;GACG,IAAA;GACS,IAAA;GACT,IAAA;GACL,IAAA;GACH,IAAA;GACC,IAAA;GACC,IAAA;CAChC;AACJ;AAEA,MAAa,0BAA0B;CACnC,cAAc;EACV,KAAA;EACA,MAAA;EACA,UAAA;CACJ;CACA,eAAe;GACmB,IAAA;GACR,IAAA;GACM,IAAA;GACI,IAAA;CACpC;AACJ;AAEA,MAAa,kCAAkC;CAC3C,cAAc;EACV,OAAA;EACA,WAAA;CACJ;CACA,eAAe;GACoC,IAAA;GACN,IAAA;GACI,IAAA;CACjD;AACJ;AAEA,MAAa,qBAAqB,EAC9B,cAAc;CACV,QAAA;CACA,QAAA;AACJ,EACJ;AAEA,MAAa,4BAA4B,EACrC,cAAc;CACV,eAAA;CACA,YAAA;AACJ,EACJ;;;;;;;AAQA,MAAa,uBAAuB,EAChC,eAAe;EAC2B,IAAA;EACQ,MAAA;EACD,MAAA;EACO,MAAA;EACJ,MAAA;EACN,MAAA;EAEtC,MAAA;EAC6C,MAAA;EAE7C,MAAA;EAEA,MAAA;EAC8C,MAAA;EACI,MAAA;EACD,MAAA;EACL,MAAA;AACpD,EACJ;;;;;AAMA,SAAgB,wBAAwB,MAAoC;CAIxE,OAHc,qBAAqB,cAGtB,SAAS,kBAAkB;AAC5C;AAEA,MAAa,6BAA6B;CACtC,cAAc;EACV,QAAA;EACA,KAAA;CACJ;CACA,eAAe;GACoB,IAAA;GACL,IAAA;GACH,IAAA;CAC3B;AACJ;AAEA,MAAa,yBAAyB,EAClC,eAAe;EACa,IAAA;EACL,IAAA;EACE,IAAA;EACD,IAAA;EACG,IAAA;EACD,IAAA;EACS,IAAA;EACX,IAAA;EACD,IAAA;EACE,IAAA;EACE,KAAA;EACA,KAAA;AAC3B,EACJ;AAEA,MAAa,uBAAuB;;;;;AAKhC,eAAe;EAC2B,IAAA;EACJ,IAAA;EACQ,IAAA;EACP,IAAA;EACF,IAAA;EACG,IAAA;AACxC,EACJ;AAEA,MAAa,qCAAqC,EAC9C,eAAe;EAC6B,IAAA;EACC,IAAA;EACA,IAAA;EACI,IAAA;AACjD,EACJ;AAEA,MAAa,mCAAmC,EAC5C,eAAe;EACuC,IAAA;EACF,IAAA;EACF,IAAA;EACA,IAAA;AAClD,EACJ;AAEA,MAAa,iCAAiC,EAC1C,eAAe;EACqB,IAAA;EACL,IAAA;EACC,IAAA;AAChC,EACJ"}
|
|
1
|
+
{"version":3,"file":"lifecycle.codecs.js","names":[],"sources":["../../../src/services/lifecycle/lifecycle.codecs.ts"],"sourcesContent":["import {\n FlowDomain,\n FlowKind,\n FlowState,\n LifecycleReason,\n LifecycleSource,\n RequestFeeStatus,\n} from \"../../gen/chain/lifecycle/v1/types_pb.js\";\nimport {\n FlowParticipation,\n FlowStep,\n FlowStepActivityKind,\n FlowTimelineStatus,\n ListOrderBy,\n ListScope,\n Sort,\n TxLookupKind,\n} from \"../../gen/chain/lifecycle/v1/lifecycle_read_pb.js\";\nimport type { InputToProto, ProtoToOutput } from \"../../utils/types.js\";\n\nexport const LIFECYCLE_FLOW_KIND_VALUES = [\"deposit\", \"withdraw\", \"transfer\"] as const;\nexport type LifecycleFlowKindValue = (typeof LIFECYCLE_FLOW_KIND_VALUES)[number];\n\nexport const LIFECYCLE_FLOW_STATE_VALUES = [\n \"pending_source\",\n \"pending_polyester_chain\",\n \"pending_ledger\",\n \"completed\",\n \"failed\",\n \"dropped\",\n \"refunded\",\n] as const;\nexport type LifecycleFlowStateValue = (typeof LIFECYCLE_FLOW_STATE_VALUES)[number];\n\nexport const LIFECYCLE_LIST_SCOPE_VALUES = [\"all\", \"open\", \"terminal\"] as const;\nexport type LifecycleListScopeValue = (typeof LIFECYCLE_LIST_SCOPE_VALUES)[number];\n\nexport const LIFECYCLE_FLOW_PARTICIPATION_VALUES = [\"owner\", \"recipient\"] as const;\nexport type LifecycleFlowParticipationValue = (typeof LIFECYCLE_FLOW_PARTICIPATION_VALUES)[number];\n\nexport const LIFECYCLE_TX_LOOKUP_KIND_VALUES = [\"source\", \"any\"] as const;\nexport type LifecycleTxLookupKindValue = (typeof LIFECYCLE_TX_LOOKUP_KIND_VALUES)[number];\n\nexport const LIFECYCLE_SORT_VALUES = [\"newest\", \"oldest\"] as const;\nexport type LifecycleSortValue = (typeof LIFECYCLE_SORT_VALUES)[number];\n\nexport const LIFECYCLE_LIST_ORDER_BY_VALUES = [\"last_activity\", \"started_at\"] as const;\nexport type LifecycleListOrderByValue = (typeof LIFECYCLE_LIST_ORDER_BY_VALUES)[number];\n\nexport const LIFECYCLE_REASON_VALUES = [\n \"unspecified\",\n \"zipper_validation_rejected\",\n \"zipper_execution_rejected\",\n \"zipper_withdraw_execution_failed\",\n \"zipper_deposit_refund_failed\",\n \"zipper_compliance_transferred\",\n \"ledger_mirror_rejected\",\n \"ledger_mirror_transfer_exceeds_credits\",\n \"ledger_mirror_transfer_exists\",\n \"ledger_mirror_pending_transfer_not_found\",\n \"ledger_mirror_transfer_id_already_failed\",\n \"trading_withdraw_policy_denied\",\n \"trading_withdraw_contract_reverted\",\n \"trading_withdraw_execution_failed\",\n \"deposit_source_not_confirmed\",\n] as const;\n/**\n * Catalog labels plus a code-preserving fallback for wire values the generated\n * enum does not know. Proto3 enums are open — the backend can emit codes ahead\n * of a contract update — and rejecting them froze flows out of the UI.\n */\nexport type LifecycleReasonValue =\n | (typeof LIFECYCLE_REASON_VALUES)[number]\n | `unknown_reason_${number}`;\n\nexport const LIFECYCLE_FLOW_STEP_VALUES = [\n \"source\",\n \"transfer\",\n \"request\",\n \"validation\",\n \"execution\",\n \"bridge_fulfillment\",\n \"dropped\",\n \"failed\",\n \"refunded\",\n \"fulfilling\",\n \"settlement\",\n] as const;\nexport type LifecycleFlowStepValue = (typeof LIFECYCLE_FLOW_STEP_VALUES)[number];\n\nexport const LIFECYCLE_SOURCE_VALUES = [\n \"unspecified\",\n \"relayer\",\n \"polyester_chain\",\n \"executor\",\n \"ledger\",\n \"lifecycle\",\n] as const;\nexport type LifecycleSourceValue = (typeof LIFECYCLE_SOURCE_VALUES)[number];\n\nexport const LIFECYCLE_FLOW_STEP_ACTIVITY_KIND_VALUES = [\n \"minted\",\n \"funding\",\n \"trading\",\n \"unspecified\",\n] as const;\nexport type LifecycleFlowStepActivityKindValue =\n (typeof LIFECYCLE_FLOW_STEP_ACTIVITY_KIND_VALUES)[number];\n\nexport const LIFECYCLE_FLOW_TIMELINE_STATUS_VALUES = [\"completed\", \"current\", \"planned\"] as const;\nexport type LifecycleFlowTimelineStatusValue =\n (typeof LIFECYCLE_FLOW_TIMELINE_STATUS_VALUES)[number];\n\nexport const LIFECYCLE_REQUEST_FEE_STATUS_VALUES = [\"locked\", \"settled\", \"kept\"] as const;\nexport type LifecycleRequestFeeStatusValue = (typeof LIFECYCLE_REQUEST_FEE_STATUS_VALUES)[number];\n\nexport const LIFECYCLE_FLOW_DOMAIN_VALUES = [\n \"external_chain\",\n \"zipper\",\n \"funding\",\n \"trading\",\n \"lending\",\n] as const;\nexport type LifecycleFlowDomainValue = (typeof LIFECYCLE_FLOW_DOMAIN_VALUES)[number];\n\nexport const LifecycleFlowDomainCodec = {\n protoToOutput: {\n [FlowDomain.DOMAIN_UNSPECIFIED]: \"unspecified\",\n [FlowDomain.DOMAIN_EXTERNAL_CHAIN]: \"external_chain\",\n [FlowDomain.DOMAIN_ZIPPER]: \"zipper\",\n [FlowDomain.DOMAIN_FUNDING]: \"funding\",\n [FlowDomain.DOMAIN_TRADING]: \"trading\",\n [FlowDomain.DOMAIN_LENDING]: \"lending\",\n } satisfies ProtoToOutput<FlowDomain, LifecycleFlowDomainValue>,\n} as const;\n\nexport const LifecycleFlowKindCodec = {\n inputToProto: {\n deposit: FlowKind.KIND_DEPOSIT,\n withdraw: FlowKind.KIND_WITHDRAW,\n transfer: FlowKind.KIND_TRANSFER,\n } satisfies InputToProto<LifecycleFlowKindValue, FlowKind>,\n protoToOutput: {\n [FlowKind.KIND_UNSPECIFIED]: \"unspecified\",\n [FlowKind.KIND_DEPOSIT]: \"deposit\",\n [FlowKind.KIND_WITHDRAW]: \"withdraw\",\n [FlowKind.KIND_TRANSFER]: \"transfer\",\n } satisfies ProtoToOutput<FlowKind, LifecycleFlowKindValue>,\n} as const;\n\nexport const LifecycleFlowStateCodec = {\n inputToProto: {\n pending_source: FlowState.STATE_PENDING_SOURCE,\n pending_polyester_chain: FlowState.STATE_PENDING_POLYESTER_CHAIN,\n pending_ledger: FlowState.STATE_PENDING_LEDGER,\n completed: FlowState.STATE_COMPLETED,\n failed: FlowState.STATE_FAILED,\n dropped: FlowState.STATE_DROPPED,\n refunded: FlowState.STATE_REFUNDED,\n } satisfies InputToProto<LifecycleFlowStateValue, FlowState>,\n protoToOutput: {\n [FlowState.STATE_UNSPECIFIED]: \"unspecified\",\n [FlowState.STATE_PENDING_SOURCE]: \"pending_source\",\n [FlowState.STATE_PENDING_POLYESTER_CHAIN]: \"pending_polyester_chain\",\n [FlowState.STATE_PENDING_LEDGER]: \"pending_ledger\",\n [FlowState.STATE_COMPLETED]: \"completed\",\n [FlowState.STATE_FAILED]: \"failed\",\n [FlowState.STATE_DROPPED]: \"dropped\",\n [FlowState.STATE_REFUNDED]: \"refunded\",\n } satisfies ProtoToOutput<FlowState, LifecycleFlowStateValue>,\n} as const;\n\nexport const LifecycleListScopeCodec = {\n inputToProto: {\n all: ListScope.LIST_ALL,\n open: ListScope.LIST_OPEN_ONLY,\n terminal: ListScope.LIST_TERMINAL_ONLY,\n } satisfies InputToProto<LifecycleListScopeValue, ListScope>,\n protoToOutput: {\n [ListScope.LIST_UNSPECIFIED]: \"unspecified\",\n [ListScope.LIST_ALL]: \"all\",\n [ListScope.LIST_OPEN_ONLY]: \"open\",\n [ListScope.LIST_TERMINAL_ONLY]: \"terminal\",\n } satisfies ProtoToOutput<ListScope, LifecycleListScopeValue>,\n} as const;\n\nexport const LifecycleFlowParticipationCodec = {\n inputToProto: {\n owner: FlowParticipation.PARTICIPATION_OWNER,\n recipient: FlowParticipation.PARTICIPATION_RECIPIENT,\n } satisfies InputToProto<LifecycleFlowParticipationValue, FlowParticipation>,\n protoToOutput: {\n [FlowParticipation.PARTICIPATION_UNSPECIFIED]: \"unspecified\",\n [FlowParticipation.PARTICIPATION_OWNER]: \"owner\",\n [FlowParticipation.PARTICIPATION_RECIPIENT]: \"recipient\",\n } satisfies ProtoToOutput<FlowParticipation, LifecycleFlowParticipationValue>,\n} as const;\n\nexport const LifecycleSortCodec = {\n inputToProto: {\n newest: Sort.NEWEST,\n oldest: Sort.OLDEST,\n } satisfies InputToProto<LifecycleSortValue, Sort>,\n} as const;\n\nexport const LifecycleListOrderByCodec = {\n inputToProto: {\n last_activity: ListOrderBy.ORDER_BY_LAST_ACTIVITY,\n started_at: ListOrderBy.ORDER_BY_STARTED_AT,\n } satisfies InputToProto<LifecycleListOrderByValue, ListOrderBy>,\n} as const;\n\n/**\n * LifecycleReason is a stable product-facing reason catalog. Unlike the other\n * lifecycle enums, `REASON_UNSPECIFIED` (0) is a valid wire value — it is\n * the normal state for flows without a notable reason — so the codec maps the\n * full enum including zero.\n */\nexport const LifecycleReasonCodec = {\n protoToOutput: {\n [LifecycleReason.REASON_UNSPECIFIED]: \"unspecified\",\n [LifecycleReason.ZIPPER_VALIDATION_REJECTED]: \"zipper_validation_rejected\",\n [LifecycleReason.ZIPPER_EXECUTION_REJECTED]: \"zipper_execution_rejected\",\n [LifecycleReason.ZIPPER_WITHDRAW_EXECUTION_FAILED]: \"zipper_withdraw_execution_failed\",\n [LifecycleReason.ZIPPER_DEPOSIT_REFUND_FAILED]: \"zipper_deposit_refund_failed\",\n [LifecycleReason.ZIPPER_COMPLIANCE_TRANSFERRED]: \"zipper_compliance_transferred\",\n [LifecycleReason.LEDGER_MIRROR_REJECTED]: \"ledger_mirror_rejected\",\n [LifecycleReason.LEDGER_MIRROR_TRANSFER_EXCEEDS_CREDITS]:\n \"ledger_mirror_transfer_exceeds_credits\",\n [LifecycleReason.LEDGER_MIRROR_TRANSFER_EXISTS]: \"ledger_mirror_transfer_exists\",\n [LifecycleReason.LEDGER_MIRROR_PENDING_TRANSFER_NOT_FOUND]:\n \"ledger_mirror_pending_transfer_not_found\",\n [LifecycleReason.LEDGER_MIRROR_TRANSFER_ID_ALREADY_FAILED]:\n \"ledger_mirror_transfer_id_already_failed\",\n [LifecycleReason.TRADING_WITHDRAW_POLICY_DENIED]: \"trading_withdraw_policy_denied\",\n [LifecycleReason.TRADING_WITHDRAW_CONTRACT_REVERTED]: \"trading_withdraw_contract_reverted\",\n [LifecycleReason.TRADING_WITHDRAW_EXECUTION_FAILED]: \"trading_withdraw_execution_failed\",\n [LifecycleReason.DEPOSIT_SOURCE_NOT_CONFIRMED]: \"deposit_source_not_confirmed\",\n } satisfies Record<LifecycleReason, LifecycleReasonValue>,\n} as const;\n\n/**\n * Maps a wire reason code to its catalog label, preserving uncataloged codes\n * as `unknown_reason_${code}` instead of failing the whole flow payload.\n */\nexport function lifecycleReasonFromCode(code: number): LifecycleReasonValue {\n const known = LifecycleReasonCodec.protoToOutput as Partial<\n Record<number, LifecycleReasonValue>\n >;\n return known[code] ?? `unknown_reason_${code}`;\n}\n\nexport const LifecycleTxLookupKindCodec = {\n inputToProto: {\n source: TxLookupKind.TX_SOURCE,\n any: TxLookupKind.TX_ANY,\n } satisfies InputToProto<LifecycleTxLookupKindValue, TxLookupKind>,\n protoToOutput: {\n [TxLookupKind.TX_UNSPECIFIED]: \"unspecified\",\n [TxLookupKind.TX_SOURCE]: \"source\",\n [TxLookupKind.TX_ANY]: \"any\",\n } satisfies ProtoToOutput<TxLookupKind, LifecycleTxLookupKindValue>,\n} as const;\n\nexport const LifecycleFlowStepCodec = {\n protoToOutput: {\n [FlowStep.UNSPECIFIED]: \"unspecified\",\n [FlowStep.SOURCE]: \"source\",\n [FlowStep.TRANSFER]: \"transfer\",\n [FlowStep.REQUEST]: \"request\",\n [FlowStep.VALIDATION]: \"validation\",\n [FlowStep.EXECUTION]: \"execution\",\n [FlowStep.BRIDGE_FULFILLMENT]: \"bridge_fulfillment\",\n [FlowStep.DROPPED]: \"dropped\",\n [FlowStep.FAILED]: \"failed\",\n [FlowStep.REFUNDED]: \"refunded\",\n [FlowStep.FULFILLING]: \"fulfilling\",\n [FlowStep.SETTLEMENT]: \"settlement\",\n } satisfies ProtoToOutput<FlowStep, LifecycleFlowStepValue>,\n} as const;\n\nexport const LifecycleSourceCodec = {\n /**\n * In-progress flows may emit SOURCE_UNSPECIFIED (0) before a subsystem is\n * attributed, so zero must decode like other lifecycle \"unspecified\" enums.\n */\n protoToOutput: {\n [LifecycleSource.SOURCE_UNSPECIFIED]: \"unspecified\",\n [LifecycleSource.SOURCE_RELAYER]: \"relayer\",\n [LifecycleSource.SOURCE_POLYESTER_CHAIN]: \"polyester_chain\",\n [LifecycleSource.SOURCE_EXECUTOR]: \"executor\",\n [LifecycleSource.SOURCE_LEDGER]: \"ledger\",\n [LifecycleSource.SOURCE_LIFECYCLE]: \"lifecycle\",\n } satisfies Record<LifecycleSource, LifecycleSourceValue>,\n} as const;\n\nexport const LifecycleFlowStepActivityKindCodec = {\n protoToOutput: {\n [FlowStepActivityKind.ACTIVITY_MINTED]: \"minted\",\n [FlowStepActivityKind.ACTIVITY_FUNDING]: \"funding\",\n [FlowStepActivityKind.ACTIVITY_TRADING]: \"trading\",\n [FlowStepActivityKind.ACTIVITY_UNSPECIFIED]: \"unspecified\",\n } satisfies Record<FlowStepActivityKind, LifecycleFlowStepActivityKindValue>,\n} as const;\n\nexport const LifecycleFlowTimelineStatusCodec = {\n protoToOutput: {\n [FlowTimelineStatus.TIMELINE_STATUS_UNSPECIFIED]: \"unspecified\",\n [FlowTimelineStatus.TIMELINE_STATUS_COMPLETED]: \"completed\",\n [FlowTimelineStatus.TIMELINE_STATUS_CURRENT]: \"current\",\n [FlowTimelineStatus.TIMELINE_STATUS_PLANNED]: \"planned\",\n } satisfies ProtoToOutput<FlowTimelineStatus, LifecycleFlowTimelineStatusValue>,\n} as const;\n\nexport const LifecycleRequestFeeStatusCodec = {\n protoToOutput: {\n [RequestFeeStatus.UNSPECIFIED]: \"unspecified\",\n [RequestFeeStatus.LOCKED]: \"locked\",\n [RequestFeeStatus.SETTLED]: \"settled\",\n [RequestFeeStatus.KEPT]: \"kept\",\n } satisfies ProtoToOutput<RequestFeeStatus, LifecycleRequestFeeStatusValue>,\n} as const;\n"],"mappings":";;;AAoBA,MAAa,6BAA6B;CAAC;CAAW;CAAY;AAAU;AAG5E,MAAa,8BAA8B;CACvC;CACA;CACA;CACA;CACA;CACA;CACA;AACJ;AAGA,MAAa,8BAA8B;CAAC;CAAO;CAAQ;AAAU;AAGrE,MAAa,sCAAsC,CAAC,SAAS,WAAW;AAGxE,MAAa,kCAAkC,CAAC,UAAU,KAAK;AAG/D,MAAa,wBAAwB,CAAC,UAAU,QAAQ;AAGxD,MAAa,iCAAiC,CAAC,iBAAiB,YAAY;AA+E5E,MAAa,2BAA2B,EACpC,eAAe;EACsB,IAAA;EACG,IAAA;EACR,IAAA;EACC,IAAA;EACA,IAAA;EACA,IAAA;AACjC,EACJ;AAEA,MAAa,yBAAyB;CAClC,cAAc;EACV,SAAA;EACA,UAAA;EACA,UAAA;CACJ;CACA,eAAe;GACkB,IAAA;GACJ,IAAA;GACC,IAAA;GACA,IAAA;CAC9B;AACJ;AAEA,MAAa,0BAA0B;CACnC,cAAc;EACV,gBAAA;EACA,yBAAA;EACA,gBAAA;EACA,WAAA;EACA,QAAA;EACA,SAAA;EACA,UAAA;CACJ;CACA,eAAe;GACoB,IAAA;GACG,IAAA;GACS,IAAA;GACT,IAAA;GACL,IAAA;GACH,IAAA;GACC,IAAA;GACC,IAAA;CAChC;AACJ;AAEA,MAAa,0BAA0B;CACnC,cAAc;EACV,KAAA;EACA,MAAA;EACA,UAAA;CACJ;CACA,eAAe;GACmB,IAAA;GACR,IAAA;GACM,IAAA;GACI,IAAA;CACpC;AACJ;AAEA,MAAa,kCAAkC;CAC3C,cAAc;EACV,OAAA;EACA,WAAA;CACJ;CACA,eAAe;GACoC,IAAA;GACN,IAAA;GACI,IAAA;CACjD;AACJ;AAEA,MAAa,qBAAqB,EAC9B,cAAc;CACV,QAAA;CACA,QAAA;AACJ,EACJ;AAEA,MAAa,4BAA4B,EACrC,cAAc;CACV,eAAA;CACA,YAAA;AACJ,EACJ;;;;;;;AAQA,MAAa,uBAAuB,EAChC,eAAe;EAC2B,IAAA;EACQ,MAAA;EACD,MAAA;EACO,MAAA;EACJ,MAAA;EACC,MAAA;EACP,MAAA;EAEtC,MAAA;EAC6C,MAAA;EAE7C,MAAA;EAEA,MAAA;EAC8C,MAAA;EACI,MAAA;EACD,MAAA;EACL,MAAA;AACpD,EACJ;;;;;AAMA,SAAgB,wBAAwB,MAAoC;CAIxE,OAHc,qBAAqB,cAGtB,SAAS,kBAAkB;AAC5C;AAEA,MAAa,6BAA6B;CACtC,cAAc;EACV,QAAA;EACA,KAAA;CACJ;CACA,eAAe;GACoB,IAAA;GACL,IAAA;GACH,IAAA;CAC3B;AACJ;AAEA,MAAa,yBAAyB,EAClC,eAAe;EACa,IAAA;EACL,IAAA;EACE,IAAA;EACD,IAAA;EACG,IAAA;EACD,IAAA;EACS,IAAA;EACX,IAAA;EACD,IAAA;EACE,IAAA;EACE,KAAA;EACA,KAAA;AAC3B,EACJ;AAEA,MAAa,uBAAuB;;;;;AAKhC,eAAe;EAC2B,IAAA;EACJ,IAAA;EACQ,IAAA;EACP,IAAA;EACF,IAAA;EACG,IAAA;AACxC,EACJ;AAEA,MAAa,qCAAqC,EAC9C,eAAe;EAC6B,IAAA;EACC,IAAA;EACA,IAAA;EACI,IAAA;AACjD,EACJ;AAEA,MAAa,mCAAmC,EAC5C,eAAe;EACuC,IAAA;EACF,IAAA;EACF,IAAA;EACA,IAAA;AAClD,EACJ;AAEA,MAAa,iCAAiC,EAC1C,eAAe;EACqB,IAAA;EACL,IAAA;EACC,IAAA;EACH,IAAA;AAC7B,EACJ"}
|