@polyester/sdk 0.36.0-devnet-20261119050221 → 0.36.0-devnet-20261119181946
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 +11 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +1 -1
- package/dist/gen/ai/v1/assistant_pb.js +1 -1
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts +1 -1
- package/dist/gen/auth/v1/activity_pb.d.ts +1 -1
- package/dist/gen/auth/v1/address_book_pb.d.ts +1 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +1 -1
- package/dist/gen/auth/v1/connected_apps_pb.d.ts +1 -1
- package/dist/gen/auth/v1/mfa_pb.d.ts +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +1 -1
- package/dist/gen/auth/v1/profile_pb.d.ts +1 -1
- package/dist/gen/auth/v1/resolve_pb.d.ts +1 -1
- package/dist/gen/auth/v1/social_verification_pb.d.ts +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
- package/dist/gen/chain/analytics/v1/analytics_read_pb.d.ts +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +1 -1
- package/dist/gen/chain/zipper/v1/reason_pb.d.ts +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +1 -1
- package/dist/gen/changelog/v1/changelog_pb.d.ts +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +1 -1
- package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
- package/dist/gen/fees/v1/fees_pb.d.ts +1 -1
- package/dist/gen/index.js +24 -24
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +1 -1
- package/dist/gen/ledger/read/v1/statement_export_pb.d.ts +1 -1
- package/dist/gen/marketdata/v1/asset_info_pb.d.ts +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +1 -1
- package/dist/gen/notifications/v1/notifications_pb.d.ts +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.d.ts +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +1 -1
- package/dist/gen/polyester/api/v1/request_error_pb.d.ts +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +1 -1
- package/dist/gen/polyester/type/v1/u128_pb.d.ts +1 -1
- package/dist/gen/privatews/v1/private_ws_pb.d.ts +1 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +1 -1
- package/dist/gen/rewards/v1/rewards_pb.d.ts +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +1 -1
- package/dist/gen/swap/v1/swap_pb.d.ts +1 -1
- package/dist/gen/system/v1/system_pb.d.ts +1 -1
- package/dist/gen/tradews/v1/trade_ws_pb.d.ts +1 -1
- package/dist/gen/transfer/v1/dust_conversion_pb.d.ts +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +1 -1
- package/dist/gen/vip/v1/vip_pb.d.ts +1 -1
- package/dist/services/account-activity/account-activity.js +1 -1
- package/dist/services/account-activity/account-activity.schemas.d.ts +4 -4
- package/dist/services/accounts/accounts.js +1 -1
- package/dist/services/accounts/accounts.schemas.js +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/api-keys/api-keys.schemas.d.ts +6 -6
- package/dist/services/assistant/assistant-events.schemas.d.ts +26 -55
- package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -1
- package/dist/services/assistant/assistant.js +1 -1
- package/dist/services/assistant/assistant.schemas.d.ts +1 -1
- package/dist/services/auth/account-signer-auth.d.ts.map +1 -1
- package/dist/services/auth/account-signer-auth.js +10 -2
- package/dist/services/auth/account-signer-auth.js.map +1 -1
- package/dist/services/auth/profile/profile.js +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.js +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +22 -22
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +1 -1
- package/dist/services/candles/candles.js +1 -1
- package/dist/services/chain-analytics/chain-analytics.js +1 -1
- package/dist/services/changelog/changelog.js +1 -1
- package/dist/services/changelog/changelog.schemas.d.ts +22 -22
- package/dist/services/checkpoints/checkpoints.js +1 -1
- package/dist/services/claims/claims.js +1 -1
- package/dist/services/claims/claims.schemas.js +1 -1
- package/dist/services/connected-apps/connected-apps.js +1 -1
- package/dist/services/deposit/deposit.js +1 -1
- package/dist/services/dust-conversion/dust-conversion.js +1 -1
- package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +6 -6
- package/dist/services/dust-conversion/dust-conversion.schemas.js +1 -1
- package/dist/services/fees/fees.js +1 -1
- package/dist/services/guard-signer/guard-signer.js +1 -1
- package/dist/services/heatmap/heatmap.js +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.js +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +1 -1
- package/dist/services/lifecycle/lifecycle.js +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +53 -53
- package/dist/services/lifecycle/lifecycle.schemas.js +2 -2
- package/dist/services/market-data/market-data.js +1 -1
- package/dist/services/market-overview/market-overview.js +9 -2
- package/dist/services/market-overview/market-overview.js.map +1 -1
- package/dist/services/market-overview/market-overview.schemas.js +1 -1
- package/dist/services/notifications/notifications.js +1 -1
- package/dist/services/orderbook/orderbook.d.ts +1 -1
- package/dist/services/orderbook/orderbook.js +9 -3
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +3 -3
- package/dist/services/orders/order-errors.schemas.js +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +52 -52
- package/dist/services/orders/orders-batch.schemas.js +1 -1
- package/dist/services/orders/orders-identifiers.schemas.js +2 -2
- package/dist/services/orders/orders-identifiers.schemas.js.map +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +14 -14
- package/dist/services/orders/orders-input.schemas.js +1 -1
- package/dist/services/orders/orders-modify.schemas.d.ts +3 -3
- package/dist/services/orders/orders-modify.schemas.js +1 -1
- package/dist/services/orders/orders-output.schemas.d.ts +12 -12
- package/dist/services/orders/orders-risk.schemas.js +2 -2
- package/dist/services/orders/orders.js +2 -2
- package/dist/services/price-alerts/price-alerts.js +1 -1
- package/dist/services/price-alerts/price-alerts.schemas.d.ts +21 -21
- package/dist/services/rate-limits/rate-limits.js +1 -1
- package/dist/services/rewards/rewards.js +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +4 -4
- package/dist/services/social-verification/social-verification.js +1 -1
- package/dist/services/social-verification/social-verification.schemas.d.ts +2 -2
- package/dist/services/social-verification/social-verification.schemas.js +1 -1
- package/dist/services/statement-exports/statement-exports.js +1 -1
- package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +17 -17
- package/dist/services/system/system.js +1 -1
- package/dist/services/system/system.schemas.d.ts +13 -13
- package/dist/services/trades/trades.js +1 -1
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +1 -1
- package/dist/services/trading-withdraws/wallet-message.js +1 -1
- package/dist/services/triggers/trigger-child-order.schemas.js +2 -2
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/trigger-input.schemas.js +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +27 -27
- package/dist/services/triggers/triggers.js +1 -1
- package/dist/services/vip/vip.js +1 -1
- package/dist/services/vip/vip.schemas.d.ts +3 -3
- package/dist/services/vip/vip.schemas.js +1 -1
- package/dist/services/zipper/zipper.js +1 -1
- package/dist/services/zipper/zipper.schemas.js +1 -1
- package/dist/shared/connect-error-mapping.js +17 -1
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/error-details/alerts.js +1 -1
- package/dist/shared/error-details/assistant.js +1 -1
- package/dist/shared/error-details/auth.js +1 -1
- package/dist/shared/error-details/claims.js +1 -1
- package/dist/shared/error-details/internal-transfer.js +1 -1
- package/dist/shared/error-details/ledger.js +1 -1
- package/dist/shared/error-details/market-overview.js +1 -1
- package/dist/shared/error-details/notifications.js +1 -1
- package/dist/shared/error-details/orders.js +1 -1
- package/dist/shared/error-details/profile.js +1 -1
- package/dist/shared/error-details/rate-limit.js +1 -1
- package/dist/shared/error-details/withdraw.js +1 -1
- package/dist/shared/rate-limit.schemas.d.ts +1 -1
- package/dist/shared/rate-limit.schemas.js +1 -1
- package/dist/wired-services.js +19 -19
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ declare const ListChangelogChangesInputSchema: v.SchemaWithPipe<readonly [v.Stri
|
|
|
31
31
|
}, undefined>, v.CheckAction<{
|
|
32
32
|
categories: ("breaking_change" | "new_feature" | "improvement" | "bug_fix")[];
|
|
33
33
|
actionRequired?: boolean | undefined;
|
|
34
|
-
surfaces: ("assistant" | "
|
|
34
|
+
surfaces: ("assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
35
35
|
audiences: ("all_users" | "traders" | "market_makers" | "developers")[];
|
|
36
36
|
startTime?: number | undefined;
|
|
37
37
|
endTime?: number | undefined;
|
|
@@ -42,7 +42,7 @@ declare const ListChangelogChangesInputSchema: v.SchemaWithPipe<readonly [v.Stri
|
|
|
42
42
|
}, "endTime: must be after startTime">, v.TransformAction<{
|
|
43
43
|
categories: ("breaking_change" | "new_feature" | "improvement" | "bug_fix")[];
|
|
44
44
|
actionRequired?: boolean | undefined;
|
|
45
|
-
surfaces: ("assistant" | "
|
|
45
|
+
surfaces: ("assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
46
46
|
audiences: ("all_users" | "traders" | "market_makers" | "developers")[];
|
|
47
47
|
startTime?: number | undefined;
|
|
48
48
|
endTime?: number | undefined;
|
|
@@ -77,7 +77,7 @@ declare const ChangelogChangeSchema: v.ObjectSchema<{
|
|
|
77
77
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
78
78
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
79
79
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
80
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
80
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
|
|
81
81
|
readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
82
82
|
readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
|
|
83
83
|
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
|
|
@@ -95,7 +95,7 @@ type ChangelogChange = v.InferOutput<typeof ChangelogChangeSchema>;
|
|
|
95
95
|
declare const ChangelogSectionSchema: v.ObjectSchema<{
|
|
96
96
|
readonly heading: v.StringSchema<undefined>;
|
|
97
97
|
readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
98
|
-
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
98
|
+
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>;
|
|
99
99
|
readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
100
100
|
readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
101
101
|
readonly title: v.StringSchema<undefined>;
|
|
@@ -105,7 +105,7 @@ declare const ChangelogSectionSchema: v.ObjectSchema<{
|
|
|
105
105
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
106
106
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
107
107
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
108
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
108
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
|
|
109
109
|
readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
110
110
|
readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
|
|
111
111
|
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
|
|
@@ -283,7 +283,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
283
283
|
readonly sections: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
284
284
|
readonly heading: v.StringSchema<undefined>;
|
|
285
285
|
readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
286
|
-
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
286
|
+
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>;
|
|
287
287
|
readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
288
288
|
readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
289
289
|
readonly title: v.StringSchema<undefined>;
|
|
@@ -293,7 +293,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
293
293
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
294
294
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
295
295
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
296
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
296
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
|
|
297
297
|
readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
298
298
|
readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
|
|
299
299
|
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
|
|
@@ -332,7 +332,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
332
332
|
sections: {
|
|
333
333
|
heading: string;
|
|
334
334
|
summary?: string | undefined;
|
|
335
|
-
surface: "unspecified" | "assistant" | "
|
|
335
|
+
surface: "unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap";
|
|
336
336
|
changes: {
|
|
337
337
|
id: string;
|
|
338
338
|
title: string;
|
|
@@ -342,7 +342,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
342
342
|
actionRequired: boolean;
|
|
343
343
|
migrationGuidance?: string | undefined;
|
|
344
344
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
345
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
345
|
+
surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
346
346
|
environmentExceptions: {
|
|
347
347
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
348
348
|
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
@@ -354,7 +354,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
354
354
|
sections: {
|
|
355
355
|
heading: string;
|
|
356
356
|
summary?: string | undefined;
|
|
357
|
-
surface: "unspecified" | "assistant" | "
|
|
357
|
+
surface: "unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap";
|
|
358
358
|
changes: {
|
|
359
359
|
id: string;
|
|
360
360
|
title: string;
|
|
@@ -364,7 +364,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
364
364
|
actionRequired: boolean;
|
|
365
365
|
migrationGuidance?: string | undefined;
|
|
366
366
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
367
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
367
|
+
surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
368
368
|
environmentExceptions: {
|
|
369
369
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
370
370
|
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
@@ -403,7 +403,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
403
403
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
404
404
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
405
405
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
406
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
406
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
|
|
407
407
|
readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
408
408
|
readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
|
|
409
409
|
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
|
|
@@ -435,7 +435,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
435
435
|
actionRequired: boolean;
|
|
436
436
|
migrationGuidance?: string | undefined;
|
|
437
437
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
438
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
438
|
+
surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
439
439
|
environmentExceptions: {
|
|
440
440
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
441
441
|
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
@@ -457,7 +457,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
457
457
|
actionRequired: boolean;
|
|
458
458
|
migrationGuidance?: string | undefined;
|
|
459
459
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
460
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
460
|
+
surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
461
461
|
environmentExceptions: {
|
|
462
462
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
463
463
|
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
@@ -477,7 +477,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
|
477
477
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
478
478
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
479
479
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
480
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
480
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
|
|
481
481
|
readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
482
482
|
readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
|
|
483
483
|
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
|
|
@@ -509,7 +509,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
|
509
509
|
actionRequired: boolean;
|
|
510
510
|
migrationGuidance?: string | undefined;
|
|
511
511
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
512
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
512
|
+
surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
513
513
|
environmentExceptions: {
|
|
514
514
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
515
515
|
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
@@ -531,7 +531,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
|
531
531
|
actionRequired: boolean;
|
|
532
532
|
migrationGuidance?: string | undefined;
|
|
533
533
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
534
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
534
|
+
surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
535
535
|
environmentExceptions: {
|
|
536
536
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
537
537
|
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
@@ -683,7 +683,7 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
683
683
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
684
684
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
685
685
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
686
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
686
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
|
|
687
687
|
readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
688
688
|
readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
|
|
689
689
|
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
|
|
@@ -708,7 +708,7 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
708
708
|
actionRequired: boolean;
|
|
709
709
|
migrationGuidance?: string | undefined;
|
|
710
710
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
711
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
711
|
+
surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
712
712
|
environmentExceptions: {
|
|
713
713
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
714
714
|
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
@@ -728,7 +728,7 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
728
728
|
actionRequired: boolean;
|
|
729
729
|
migrationGuidance?: string | undefined;
|
|
730
730
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
731
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
731
|
+
surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
732
732
|
environmentExceptions: {
|
|
733
733
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
734
734
|
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
@@ -770,7 +770,7 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
770
770
|
actionRequired: boolean;
|
|
771
771
|
migrationGuidance?: string | undefined;
|
|
772
772
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
773
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
773
|
+
surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
774
774
|
environmentExceptions: {
|
|
775
775
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
776
776
|
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
@@ -794,7 +794,7 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
794
794
|
actionRequired: boolean;
|
|
795
795
|
migrationGuidance?: string | undefined;
|
|
796
796
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
797
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
797
|
+
surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "trading" | "funding" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
798
798
|
environmentExceptions: {
|
|
799
799
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
800
800
|
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CheckpointService } from "../../gen/checkpoints/v1/checkpoints_pb.js";
|
|
2
1
|
import { parse } from "../../shared/validation.js";
|
|
3
2
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
3
|
+
import { CheckpointService } from "../../gen/checkpoints/v1/checkpoints_pb.js";
|
|
4
4
|
import { ListCheckpointsInputSchema, ListCheckpointsResultSchema } from "./checkpoints.schemas.js";
|
|
5
5
|
import { createClient } from "@connectrpc/connect";
|
|
6
6
|
//#region src/services/checkpoints/checkpoints.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ClaimsService as ClaimsService$1 } from "../../gen/claims/v1/claims_pb.js";
|
|
2
1
|
import { parse } from "../../shared/validation.js";
|
|
3
2
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
3
|
+
import { ClaimsService as ClaimsService$1 } from "../../gen/claims/v1/claims_pb.js";
|
|
4
4
|
import { ClaimDailyRewardInputSchema, ClaimDailyRewardResultSchema, DailyClaimStatusSchema } from "./claims.schemas.js";
|
|
5
5
|
import { createClient } from "@connectrpc/connect";
|
|
6
6
|
//#region src/services/claims/claims.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ErrorCode } from "../../gen/claims/v1/claims_pb.js";
|
|
2
1
|
import { OptionalPublicIdSchema, OptionalTimestampMsSchema, U128Schema, optionalSubaccountIdInputSchema } from "../../shared/schemas.js";
|
|
3
2
|
import { enumLabelSchema } from "../../shared/proto-enum-codec.js";
|
|
4
3
|
import { fromU128 } from "../../utils/u128.js";
|
|
5
4
|
import { scaledToDecimalOutput } from "../../shared/decimal-surface.js";
|
|
5
|
+
import { ErrorCode } from "../../gen/claims/v1/claims_pb.js";
|
|
6
6
|
import { ClaimPolicyCodec, DailyClaimStateCodec } from "./claims.codecs.js";
|
|
7
7
|
import * as v from "valibot";
|
|
8
8
|
//#region src/services/claims/claims.schemas.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ConnectedAppService } from "../../gen/auth/v1/connected_apps_pb.js";
|
|
2
1
|
import { parse } from "../../shared/validation.js";
|
|
3
2
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
3
|
+
import { ConnectedAppService } from "../../gen/auth/v1/connected_apps_pb.js";
|
|
4
4
|
import { AppAuthorizationInputSchema, AppAuthorizationRedirectSchema, AppAuthorizationSchema, ConnectedAppsSchema, RevokeConnectedAppInputSchema } from "./connected-apps.schemas.js";
|
|
5
5
|
import { createClient } from "@connectrpc/connect";
|
|
6
6
|
//#region src/services/connected-apps/connected-apps.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DepositAddressService } from "../../gen/chain/deposit/v1/deposit_pb.js";
|
|
2
1
|
import { parse } from "../../shared/validation.js";
|
|
3
2
|
import { removeUndefined } from "../../utils/remove-undefined.js";
|
|
4
3
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
5
4
|
import { resolveAccountScopedInput } from "../subaccount-resolver.js";
|
|
5
|
+
import { DepositAddressService } from "../../gen/chain/deposit/v1/deposit_pb.js";
|
|
6
6
|
import { CreateDepositAddressInputSchema, DepositAddressSchema, DepositAddressesSchema, ListDepositAddressesInputSchema } from "./deposit.schemas.js";
|
|
7
7
|
import { createClient } from "@connectrpc/connect";
|
|
8
8
|
//#region src/services/deposit/deposit.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DustConversionService as DustConversionService$1 } from "../../gen/transfer/v1/dust_conversion_pb.js";
|
|
2
1
|
import { parse } from "../../shared/validation.js";
|
|
3
2
|
import { removeUndefined } from "../../utils/remove-undefined.js";
|
|
4
3
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
5
4
|
import { resolveAccountScopedInput } from "../subaccount-resolver.js";
|
|
5
|
+
import { DustConversionService as DustConversionService$1 } from "../../gen/transfer/v1/dust_conversion_pb.js";
|
|
6
6
|
import { CreateDustConversionInputSchema, DustConversionQuoteSchema, DustConversionSchema, GetDustConversionInputSchema, ListDustBalancesInputSchema, ListDustBalancesResultSchema, ListDustConversionsInputSchema, ListDustConversionsResultSchema, QuoteDustConversionInputSchema } from "./dust-conversion.schemas.js";
|
|
7
7
|
import { createClient } from "@connectrpc/connect";
|
|
8
8
|
//#region src/services/dust-conversion/dust-conversion.ts
|
|
@@ -147,7 +147,7 @@ type DustAssetPrice = v.InferOutput<typeof DustAssetPriceSchema>;
|
|
|
147
147
|
declare const DustConversionSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
148
148
|
readonly conversionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
149
149
|
readonly quoteId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
150
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "
|
|
150
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "completed" | "refused">]>;
|
|
151
151
|
readonly refusalCode: v.NumberSchema<undefined>;
|
|
152
152
|
readonly targetAssetId: v.NumberSchema<undefined>;
|
|
153
153
|
readonly sources: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -187,7 +187,7 @@ declare const DustConversionSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
187
187
|
}, undefined>, v.TransformAction<{
|
|
188
188
|
conversionId: string;
|
|
189
189
|
quoteId: string;
|
|
190
|
-
state: "unspecified" | "processing" | "
|
|
190
|
+
state: "unspecified" | "processing" | "completed" | "refused";
|
|
191
191
|
refusalCode: number;
|
|
192
192
|
targetAssetId: number;
|
|
193
193
|
sources: {
|
|
@@ -216,7 +216,7 @@ declare const DustConversionSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
216
216
|
conversionId: string;
|
|
217
217
|
/** The quote the conversion converted. */
|
|
218
218
|
quoteId: string;
|
|
219
|
-
state: "unspecified" | "processing" | "
|
|
219
|
+
state: "unspecified" | "processing" | "completed" | "refused";
|
|
220
220
|
/** Why a `refused` conversion was refused; null otherwise. */
|
|
221
221
|
refusalCode: "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "CONFLICT" | "INVALID_REQUEST" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "FAILED_PRECONDITION" | "SUBACCOUNT_NOT_FOUND" | "INSUFFICIENT_FUNDS" | "INVALID_SUBACCOUNT_ID" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "NOT_FOUND" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | "BATCH_TOO_MANY_SOURCES" | null;
|
|
222
222
|
targetAssetId: number;
|
|
@@ -463,7 +463,7 @@ declare const ListDustConversionsResultSchema: v.ObjectSchema<{
|
|
|
463
463
|
readonly conversions: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
464
464
|
readonly conversionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
465
465
|
readonly quoteId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
466
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "
|
|
466
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "completed" | "refused">]>;
|
|
467
467
|
readonly refusalCode: v.NumberSchema<undefined>;
|
|
468
468
|
readonly targetAssetId: v.NumberSchema<undefined>;
|
|
469
469
|
readonly sources: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -503,7 +503,7 @@ declare const ListDustConversionsResultSchema: v.ObjectSchema<{
|
|
|
503
503
|
}, undefined>, v.TransformAction<{
|
|
504
504
|
conversionId: string;
|
|
505
505
|
quoteId: string;
|
|
506
|
-
state: "unspecified" | "processing" | "
|
|
506
|
+
state: "unspecified" | "processing" | "completed" | "refused";
|
|
507
507
|
refusalCode: number;
|
|
508
508
|
targetAssetId: number;
|
|
509
509
|
sources: {
|
|
@@ -532,7 +532,7 @@ declare const ListDustConversionsResultSchema: v.ObjectSchema<{
|
|
|
532
532
|
conversionId: string;
|
|
533
533
|
/** The quote the conversion converted. */
|
|
534
534
|
quoteId: string;
|
|
535
|
-
state: "unspecified" | "processing" | "
|
|
535
|
+
state: "unspecified" | "processing" | "completed" | "refused";
|
|
536
536
|
/** Why a `refused` conversion was refused; null otherwise. */
|
|
537
537
|
refusalCode: "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "CONFLICT" | "INVALID_REQUEST" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "FAILED_PRECONDITION" | "SUBACCOUNT_NOT_FOUND" | "INSUFFICIENT_FUNDS" | "INVALID_SUBACCOUNT_ID" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "NOT_FOUND" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | "BATCH_TOO_MANY_SOURCES" | null;
|
|
538
538
|
targetAssetId: number;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ErrorCode } from "../../gen/transfer/v1/internal_transfer_pb.js";
|
|
2
1
|
import { codeName } from "../../shared/error-detail.js";
|
|
3
2
|
import { OptionalTimestampMsSchema, U128Schema } from "../../shared/schemas.js";
|
|
4
3
|
import { enumLabelSchema } from "../../shared/proto-enum-codec.js";
|
|
@@ -6,6 +5,7 @@ import { fromU128 } from "../../utils/u128.js";
|
|
|
6
5
|
import { scaledToDecimalOutput } from "../../shared/decimal-surface.js";
|
|
7
6
|
import { PositiveUint32InputSchema } from "../shared.js";
|
|
8
7
|
import { AccountScopeInputEntries, accountScopeToSubaccountId } from "../../shared/account-scope.js";
|
|
8
|
+
import { ErrorCode } from "../../gen/transfer/v1/internal_transfer_pb.js";
|
|
9
9
|
import { DustAssetEligibilityCodec, DustConversionStateCodec } from "./dust-conversion.codecs.js";
|
|
10
10
|
import * as v from "valibot";
|
|
11
11
|
//#region src/services/dust-conversion/dust-conversion.schemas.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FeeService } from "../../gen/fees/v1/fees_pb.js";
|
|
2
1
|
import { parse } from "../../shared/validation.js";
|
|
3
2
|
import { removeUndefined } from "../../utils/remove-undefined.js";
|
|
4
3
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
5
4
|
import { resolveAccountScopedInput } from "../subaccount-resolver.js";
|
|
5
|
+
import { FeeService } from "../../gen/fees/v1/fees_pb.js";
|
|
6
6
|
import { GetSpotFeeRatesInputSchema, SpotFeeRatesSchema } from "./fees.schemas.js";
|
|
7
7
|
import { createClient } from "@connectrpc/connect";
|
|
8
8
|
//#region src/services/fees/fees.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { GuardSignerService as GuardSignerService$1 } from "../../gen/chain/guard/v1/guard_signer_pb.js";
|
|
2
1
|
import { parse } from "../../shared/validation.js";
|
|
3
2
|
import { removeUndefined } from "../../utils/remove-undefined.js";
|
|
4
3
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
5
4
|
import { resolveAccountScopedInput } from "../subaccount-resolver.js";
|
|
5
|
+
import { GuardSignerService as GuardSignerService$1 } from "../../gen/chain/guard/v1/guard_signer_pb.js";
|
|
6
6
|
import { BatchGuardApprovalsSchema, BatchSignProtectedActionInputSchema, CreateGuardSignerWalletResultSchema, ExportGuardSignerWalletResultSchema, GuardApprovalSchema, GuardSignerScopedInputSchema, GuardSignerStatusSchema, RotateGuardSignerWalletResultSchema, SignProtectedActionInputSchema } from "./guard-signer.schemas.js";
|
|
7
7
|
import { formatConnectError, isResourceNotFoundError } from "../../utils/errors.js";
|
|
8
8
|
import { createClient } from "@connectrpc/connect";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { HeatmapLiveBucketSchema, HeatmapService as HeatmapService$1, HeatmapTimeRangeSchema } from "../../gen/marketdata/v1/heatmap_pb.js";
|
|
2
1
|
import { parse } from "../../shared/validation.js";
|
|
3
2
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
4
3
|
import { SymbolIdInputSchema } from "../shared.js";
|
|
5
4
|
import { connectReadyGatedProtoChannel } from "../../realtime/ready-gated-subscription.js";
|
|
5
|
+
import { HeatmapLiveBucketSchema, HeatmapService as HeatmapService$1, HeatmapTimeRangeSchema } from "../../gen/marketdata/v1/heatmap_pb.js";
|
|
6
6
|
import { HEATMAP_INTERVAL_VALUES } from "./heatmap.codecs.js";
|
|
7
7
|
import { GetOrderbookHeatmapInputSchema, createOrderbookHeatmapLiveBucketSchema, createOrderbookHeatmapResponseSchema } from "./heatmap.schemas.js";
|
|
8
8
|
import { create } from "@bufbuild/protobuf";
|
|
@@ -15,7 +15,7 @@ type TimestampInit = {
|
|
|
15
15
|
declare const GetOrderbookHeatmapInputSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
16
16
|
readonly symbolId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
|
|
17
17
|
readonly interval: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["1s", "1m", "5m", "1h"], undefined>, "1s">, v.TransformAction<"1s" | "1m" | "5m" | "1h", HeatmapInterval>]>;
|
|
18
|
-
readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<1 |
|
|
18
|
+
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 | 200 | 100 | 500 | 1000 | 50, DepthTier>]>;
|
|
19
19
|
readonly quantityMode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["close", "peak"], undefined>, "close">, v.TransformAction<"close" | "peak", HeatmapQuantityMode>]>;
|
|
20
20
|
readonly limit: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 20000, undefined>]>;
|
|
21
21
|
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>;
|
|
@@ -228,7 +228,7 @@ type OrderbookHeatmapDeltaChain = ReturnType<typeof convertHeatmapDeltaChain>;
|
|
|
228
228
|
declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
229
229
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
230
230
|
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1s" | "1m" | "5m" | "1h">>]>;
|
|
231
|
-
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 |
|
|
231
|
+
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 | 5 | 10 | 20 | "unspecified" | 200 | 100 | 500 | 1000 | 50 | 5000>]>;
|
|
232
232
|
readonly chain: v.OptionalSchema<v.ObjectSchema<{
|
|
233
233
|
readonly baseKeyframe: v.OptionalSchema<v.ObjectSchema<{
|
|
234
234
|
readonly tsSec: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
@@ -288,7 +288,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
288
288
|
}, undefined>, v.TransformAction<{
|
|
289
289
|
symbolId: number;
|
|
290
290
|
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
291
|
-
depth: 1 |
|
|
291
|
+
depth: 1 | 5 | 10 | 20 | "unspecified" | 200 | 100 | 500 | 1000 | 50 | 5000;
|
|
292
292
|
chain?: {
|
|
293
293
|
baseKeyframe?: {
|
|
294
294
|
tsSec: number;
|
|
@@ -348,7 +348,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
348
348
|
}, {
|
|
349
349
|
symbolId: number;
|
|
350
350
|
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
351
|
-
depth: 1 |
|
|
351
|
+
depth: 1 | 5 | 10 | 20 | "unspecified" | 200 | 100 | 500 | 1000 | 50 | 5000;
|
|
352
352
|
chain: {
|
|
353
353
|
baseKeyframe: {
|
|
354
354
|
tsSec: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { InternalTransferService } from "../../gen/transfer/v1/internal_transfer_pb.js";
|
|
2
1
|
import { parse } from "../../shared/validation.js";
|
|
3
2
|
import { removeUndefined } from "../../utils/remove-undefined.js";
|
|
4
3
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
5
4
|
import { resolveAccountScope, resolveAccountScopedInput } from "../subaccount-resolver.js";
|
|
5
|
+
import { InternalTransferService } from "../../gen/transfer/v1/internal_transfer_pb.js";
|
|
6
6
|
import { BatchCreateInternalTransfersResultSchema, GetInternalTransferBatchInputSchema, GetInternalTransferInputSchema, GetInternalTransferResultSchema, createBatchCreateInternalTransfersInputSchema, createCreateInternalTransferInputSchema, createCreateInternalTransferResultSchema } from "./internal-transfers.schemas.js";
|
|
7
7
|
import { createClient } from "@connectrpc/connect";
|
|
8
8
|
//#region src/services/internal-transfers/internal-transfers.ts
|
|
@@ -370,7 +370,7 @@ declare const BatchCreateInternalTransfersResultSchema: v.ObjectSchema<{
|
|
|
370
370
|
* it was accepted for processing.
|
|
371
371
|
*/
|
|
372
372
|
readonly requestId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
|
|
373
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "
|
|
373
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "refused" | "accepted">]>;
|
|
374
374
|
/** One result per leg, in request order. */
|
|
375
375
|
readonly legs: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
376
376
|
readonly legIndex: v.NumberSchema<undefined>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FlowDetailViewSchema, FlowSummaryViewSchema, GetFlowByIdRequestSchema, LifecycleReadService } from "../../gen/chain/lifecycle/v1/lifecycle_read_pb.js";
|
|
2
1
|
import { parse } from "../../shared/validation.js";
|
|
3
2
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
4
3
|
import { resolveAccountScopedInput } from "../subaccount-resolver.js";
|
|
4
|
+
import { FlowDetailViewSchema, FlowSummaryViewSchema, GetFlowByIdRequestSchema, LifecycleReadService } from "../../gen/chain/lifecycle/v1/lifecycle_read_pb.js";
|
|
5
5
|
import { isDev } from "../../utils/is-dev.js";
|
|
6
6
|
import { GetLifecycleAccountFlowInputSchema, GetLifecycleFlowInputSchema, GetLifecycleFlowOutputSchema, LifecycleFlowDetailSchema, LifecycleFlowSummarySchema, ListLifecycleAccountFlowsInputSchema, ListLifecycleFlowsByTxInputSchema, ListLifecycleFlowsByTxOutputSchema, ListLifecycleFlowsInputSchema, ListLifecycleFlowsOutputSchema } from "./lifecycle.schemas.js";
|
|
7
7
|
import { create } from "@bufbuild/protobuf";
|