@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.
Files changed (184) hide show
  1. package/CHANGELOG.md +27 -1
  2. package/dist/catalogs/snapshot-validation.js +2 -1
  3. package/dist/catalogs/snapshot-validation.js.map +1 -1
  4. package/dist/gen/ai/v1/assistant_pb.d.ts +4164 -0
  5. package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -0
  6. package/dist/gen/ai/v1/assistant_pb.js +1174 -0
  7. package/dist/gen/ai/v1/assistant_pb.js.map +1 -0
  8. package/dist/gen/alerts/v1/price_alerts_pb.d.ts +776 -0
  9. package/dist/gen/alerts/v1/price_alerts_pb.d.ts.map +1 -0
  10. package/dist/gen/alerts/v1/price_alerts_pb.js +378 -0
  11. package/dist/gen/alerts/v1/price_alerts_pb.js.map +1 -0
  12. package/dist/gen/auth/v1/address_book_pb.d.ts +6 -0
  13. package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
  14. package/dist/gen/auth/v1/address_book_pb.js +6 -0
  15. package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
  16. package/dist/gen/auth/v1/api_keys_pb.d.ts +242 -2
  17. package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
  18. package/dist/gen/auth/v1/api_keys_pb.js +81 -2
  19. package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
  20. package/dist/gen/auth/v1/auth_pb.d.ts +48 -6
  21. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  22. package/dist/gen/auth/v1/auth_pb.js +48 -6
  23. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  24. package/dist/gen/auth/v1/policies_pb.d.ts +83 -19
  25. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  26. package/dist/gen/auth/v1/policies_pb.js +74 -16
  27. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  28. package/dist/gen/auth/v1/social_verification_pb.d.ts +167 -11
  29. package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
  30. package/dist/gen/auth/v1/social_verification_pb.js +41 -3
  31. package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
  32. package/dist/gen/auth/v1/subaccounts_pb.d.ts +17 -6
  33. package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
  34. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  35. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +4 -2
  36. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts.map +1 -1
  37. package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
  38. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +5 -0
  39. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts.map +1 -1
  40. package/dist/gen/chain/guard/v1/guard_signer_pb.js.map +1 -1
  41. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +10 -0
  42. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
  43. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +1 -1
  44. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
  45. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +32 -4
  46. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts.map +1 -1
  47. package/dist/gen/chain/lifecycle/v1/types_pb.js +32 -4
  48. package/dist/gen/chain/lifecycle/v1/types_pb.js.map +1 -1
  49. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +391 -42
  50. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
  51. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js +103 -17
  52. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
  53. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +170 -3
  54. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  55. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +63 -2
  56. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  57. package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
  58. package/dist/gen/claims/v1/claims_pb.js +1 -1
  59. package/dist/gen/claims/v1/claims_pb.js.map +1 -1
  60. package/dist/gen/index.d.ts +9 -5
  61. package/dist/gen/index.js +5 -1
  62. package/dist/gen/ledger/v1/catalog_pb.d.ts +9 -1
  63. package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
  64. package/dist/gen/ledger/v1/catalog_pb.js +9 -1
  65. package/dist/gen/ledger/v1/catalog_pb.js.map +1 -1
  66. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +8 -0
  67. package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
  68. package/dist/gen/marketdata/v1/marketdata_pb.js +1 -1
  69. package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
  70. package/dist/gen/orders/v1/orders_pb.d.ts +4 -4
  71. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  72. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +20 -1
  73. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts.map +1 -1
  74. package/dist/gen/polyester/ratelimit/v1/types_pb.js +20 -1
  75. package/dist/gen/polyester/ratelimit/v1/types_pb.js.map +1 -1
  76. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +1186 -127
  77. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
  78. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +282 -5
  79. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
  80. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +253 -38
  81. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  82. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +180 -36
  83. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  84. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +933 -0
  85. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -0
  86. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +292 -0
  87. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -0
  88. package/dist/gen/system/v1/system_pb.d.ts +77 -0
  89. package/dist/gen/system/v1/system_pb.d.ts.map +1 -0
  90. package/dist/gen/system/v1/system_pb.js +34 -0
  91. package/dist/gen/system/v1/system_pb.js.map +1 -0
  92. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +2 -2
  93. package/dist/gen/tradews/v1/trade_ws_pb.js.map +1 -1
  94. package/dist/index.d.ts +5 -5
  95. package/dist/services/api-keys/api-keys.codecs.js +10 -1
  96. package/dist/services/api-keys/api-keys.codecs.js.map +1 -1
  97. package/dist/services/api-keys/api-keys.schemas.d.ts +4 -0
  98. package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
  99. package/dist/services/api-keys/api-keys.schemas.js +3 -1
  100. package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
  101. package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +9 -2
  102. package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -1
  103. package/dist/services/auto-withdraw/auto-withdraw.codecs.js +9 -1
  104. package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -1
  105. package/dist/services/auto-withdraw/auto-withdraw.d.ts +15 -4
  106. package/dist/services/auto-withdraw/auto-withdraw.d.ts.map +1 -1
  107. package/dist/services/auto-withdraw/auto-withdraw.js +24 -8
  108. package/dist/services/auto-withdraw/auto-withdraw.js.map +1 -1
  109. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +394 -26
  110. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
  111. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +66 -11
  112. package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
  113. package/dist/services/auto-withdraw/auto-withdraw.types.d.ts +3 -3
  114. package/dist/services/candles/candles.schemas.d.ts +10 -10
  115. package/dist/services/changelog/changelog.schemas.d.ts +17 -17
  116. package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
  117. package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
  118. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +3 -3
  119. package/dist/services/lifecycle/lifecycle.codecs.d.ts +2 -2
  120. package/dist/services/lifecycle/lifecycle.codecs.d.ts.map +1 -1
  121. package/dist/services/lifecycle/lifecycle.codecs.js +3 -1
  122. package/dist/services/lifecycle/lifecycle.codecs.js.map +1 -1
  123. package/dist/services/lifecycle/lifecycle.schemas.d.ts +64 -40
  124. package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
  125. package/dist/services/lifecycle/lifecycle.schemas.js +7 -1
  126. package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
  127. package/dist/services/market-data/market-data.schemas.js +7 -2
  128. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  129. package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
  130. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  131. package/dist/services/orders/order-errors.schemas.d.ts +1 -1
  132. package/dist/services/orders/orders-batch.schemas.d.ts +27 -27
  133. package/dist/services/orders/orders-input.schemas.d.ts +3 -3
  134. package/dist/services/orders/orders-output.schemas.d.ts +17 -17
  135. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
  136. package/dist/services/policies/shared.codecs.js +24 -3
  137. package/dist/services/policies/shared.codecs.js.map +1 -1
  138. package/dist/services/policies/shared.d.ts +1 -1
  139. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
  140. package/dist/services/social-verification/social-verification.codecs.js +13 -5
  141. package/dist/services/social-verification/social-verification.codecs.js.map +1 -1
  142. package/dist/services/social-verification/social-verification.d.ts +18 -3
  143. package/dist/services/social-verification/social-verification.d.ts.map +1 -1
  144. package/dist/services/social-verification/social-verification.js +26 -3
  145. package/dist/services/social-verification/social-verification.js.map +1 -1
  146. package/dist/services/social-verification/social-verification.schemas.d.ts +33 -7
  147. package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
  148. package/dist/services/social-verification/social-verification.schemas.js +35 -10
  149. package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
  150. package/dist/services/social-verification/social-verification.types.d.ts +2 -2
  151. package/dist/services/subaccounts/subaccounts.schemas.d.ts +7 -7
  152. package/dist/services/trades/trades.schemas.d.ts +2 -2
  153. package/dist/services/trading-withdraws/trading-withdraws.d.ts +7 -1
  154. package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
  155. package/dist/services/trading-withdraws/trading-withdraws.js +11 -1
  156. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  157. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +42 -1
  158. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  159. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +19 -3
  160. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  161. package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +2 -2
  162. package/dist/services/transfers/transfers.schemas.d.ts +4 -4
  163. package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
  164. package/dist/services/triggers/triggers-output.schemas.d.ts +30 -30
  165. package/dist/shared/catalog-config.d.ts +5 -0
  166. package/dist/shared/catalog-config.d.ts.map +1 -1
  167. package/dist/shared/catalog-config.js.map +1 -1
  168. package/dist/shared/error-detail.d.ts +6 -0
  169. package/dist/shared/error-detail.d.ts.map +1 -1
  170. package/dist/shared/error-detail.js.map +1 -1
  171. package/dist/shared/error-details/withdraw.js +11 -2
  172. package/dist/shared/error-details/withdraw.js.map +1 -1
  173. package/dist/shared/ledger-codes.d.ts +4 -2
  174. package/dist/shared/ledger-codes.d.ts.map +1 -1
  175. package/dist/shared/ledger-codes.js +6 -3
  176. package/dist/shared/ledger-codes.js.map +1 -1
  177. package/dist/shared/rate-limit.schemas.d.ts +2 -2
  178. package/dist/shared/rate-limit.schemas.d.ts.map +1 -1
  179. package/dist/shared/rate-limit.schemas.js +4 -1
  180. package/dist/shared/rate-limit.schemas.js.map +1 -1
  181. package/dist/shared/transports.d.ts +2 -1
  182. package/dist/shared/transports.d.ts.map +1 -1
  183. package/dist/shared/transports.js.map +1 -1
  184. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { AutoWithdrawCadence, AutoWithdrawWeekday } from "../../gen/chain/withdraw/v1/auto_withdraw_pb.js";
2
2
  import { DecodedEnum } from "../../utils/types.js";
3
3
  import { U128Value } from "../../utils/u128.js";
4
- import { AutoWithdrawPauseReason, AutoWithdrawRunReason, AutoWithdrawStepReason, AutoWithdrawWeekday as AutoWithdrawWeekday$1 } from "./auto-withdraw.codecs.js";
4
+ import { AutoWithdrawHoldReason, AutoWithdrawPauseReason, AutoWithdrawRunReason, AutoWithdrawStepReason, AutoWithdrawWeekday as AutoWithdrawWeekday$1 } from "./auto-withdraw.codecs.js";
5
5
  import * as v from "valibot";
6
6
  //#region src/services/auto-withdraw/auto-withdraw.schemas.d.ts
7
7
  declare const AccountScopedInputSchema: v.StrictObjectSchema<{
@@ -221,22 +221,26 @@ declare const SetAutoWithdrawRuleInputSchema: v.SchemaWithPipe<readonly [v.Stric
221
221
  }[];
222
222
  }>]>;
223
223
  type SetAutoWithdrawRuleInput = v.InferInput<typeof SetAutoWithdrawRuleInputSchema>;
224
- declare const DisableAutoWithdrawRuleInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
224
+ declare const SetAutoWithdrawRuleEnabledInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
225
225
  /** The account's latest rule version. */
226
226
  readonly expectedVersion: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
227
+ /** `false` pauses the rule; `true` resumes it. */
228
+ readonly enabled: v.BooleanSchema<undefined>;
227
229
  readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
228
230
  readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
229
231
  }, undefined>], undefined>, undefined>;
230
232
  }, undefined>, v.TransformAction<{
231
233
  expectedVersion: number;
234
+ enabled: boolean;
232
235
  account?: "active" | "main" | {
233
236
  subaccountId: string;
234
237
  } | undefined;
235
238
  }, {
236
239
  subaccountId: bigint | undefined;
237
240
  expectedVersion: number;
241
+ enabled: boolean;
238
242
  }>]>;
239
- type DisableAutoWithdrawRuleInput = v.InferInput<typeof DisableAutoWithdrawRuleInputSchema>;
243
+ type SetAutoWithdrawRuleEnabledInput = v.InferInput<typeof SetAutoWithdrawRuleEnabledInputSchema>;
240
244
  /** `limit` is 0 through 100; 0 or omitted uses the server default of 20. */
241
245
  declare const ListAutoWithdrawRunsInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
242
246
  readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>, 0>;
@@ -292,6 +296,10 @@ declare const AutoWithdrawDestinationSchema: v.SchemaWithPipe<readonly [v.Object
292
296
  readonly hi: v.BigintSchema<undefined>;
293
297
  readonly lo: v.BigintSchema<undefined>;
294
298
  }, undefined>, undefined>;
299
+ readonly minFloorE18: v.OptionalSchema<v.ObjectSchema<{
300
+ readonly hi: v.BigintSchema<undefined>;
301
+ readonly lo: v.BigintSchema<undefined>;
302
+ }, undefined>, undefined>;
295
303
  }, undefined>, v.TransformAction<{
296
304
  assetId: number;
297
305
  destinationChainId: bigint;
@@ -304,13 +312,24 @@ declare const AutoWithdrawDestinationSchema: v.SchemaWithPipe<readonly [v.Object
304
312
  hi: bigint;
305
313
  lo: bigint;
306
314
  } | undefined;
315
+ minFloorE18?: {
316
+ hi: bigint;
317
+ lo: bigint;
318
+ } | undefined;
307
319
  }, {
308
320
  destinationChainId: number;
309
321
  minAmount: string;
310
322
  maxAmount: string;
323
+ minFloor: string | null;
311
324
  assetId: number;
312
325
  destinationAddress: string;
313
326
  }>]>;
327
+ /**
328
+ * `minFloor` is the least one payout to the destination can pay now (the route's withdrawal
329
+ * minimum, above its current network fee); a new rule's `minAmount` must be at least this
330
+ * floor. It follows the network fee, and is null when the route or fee is unknown: show no
331
+ * floor then, not zero.
332
+ */
314
333
  type AutoWithdrawDestination = v.InferOutput<typeof AutoWithdrawDestinationSchema>;
315
334
  declare const AutoWithdrawPauseSchema: v.ObjectSchema<{
316
335
  readonly assetId: v.NumberSchema<undefined>;
@@ -355,6 +374,10 @@ declare const AutoWithdrawRuleSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
355
374
  readonly hi: v.BigintSchema<undefined>;
356
375
  readonly lo: v.BigintSchema<undefined>;
357
376
  }, undefined>, undefined>;
377
+ readonly minFloorE18: v.OptionalSchema<v.ObjectSchema<{
378
+ readonly hi: v.BigintSchema<undefined>;
379
+ readonly lo: v.BigintSchema<undefined>;
380
+ }, undefined>, undefined>;
358
381
  }, undefined>, v.TransformAction<{
359
382
  assetId: number;
360
383
  destinationChainId: bigint;
@@ -367,10 +390,15 @@ declare const AutoWithdrawRuleSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
367
390
  hi: bigint;
368
391
  lo: bigint;
369
392
  } | undefined;
393
+ minFloorE18?: {
394
+ hi: bigint;
395
+ lo: bigint;
396
+ } | undefined;
370
397
  }, {
371
398
  destinationChainId: number;
372
399
  minAmount: string;
373
400
  maxAmount: string;
401
+ minFloor: string | null;
374
402
  assetId: number;
375
403
  destinationAddress: string;
376
404
  }>]>, undefined>;
@@ -396,6 +424,7 @@ declare const AutoWithdrawRuleSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
396
424
  readonly hi: v.BigintSchema<undefined>;
397
425
  readonly lo: v.BigintSchema<undefined>;
398
426
  }, undefined>, undefined>;
427
+ readonly createdByAccountId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>, 0n>;
399
428
  }, undefined>, v.TransformAction<{
400
429
  subaccountId: string;
401
430
  version: number;
@@ -405,6 +434,7 @@ declare const AutoWithdrawRuleSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
405
434
  destinationChainId: number;
406
435
  minAmount: string;
407
436
  maxAmount: string;
437
+ minFloor: string | null;
408
438
  assetId: number;
409
439
  destinationAddress: string;
410
440
  }[];
@@ -418,6 +448,7 @@ declare const AutoWithdrawRuleSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
418
448
  hi: bigint;
419
449
  lo: bigint;
420
450
  } | undefined;
451
+ createdByAccountId: string;
421
452
  }, {
422
453
  schedule: AutoWithdrawSchedule;
423
454
  pause: {
@@ -433,15 +464,20 @@ declare const AutoWithdrawRuleSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
433
464
  destinationChainId: number;
434
465
  minAmount: string;
435
466
  maxAmount: string;
467
+ minFloor: string | null;
436
468
  assetId: number;
437
469
  destinationAddress: string;
438
470
  }[];
439
471
  createdAt: number;
472
+ createdByAccountId: string;
440
473
  }>]>;
441
474
  /**
442
475
  * One version of an account's rule. `subaccountId` is the public subaccount ID, `""` for the
443
- * root account. Times are epoch milliseconds. `minUsdValue` is null when the rule has no USD
444
- * minimum; `pause` is set when the rule paused itself, and a new version resumes it.
476
+ * root account; `createdByAccountId` is the public account ID of whoever created the version.
477
+ * Times are epoch milliseconds. `minUsdValue` is null when the rule has no USD minimum. A paused
478
+ * version (`enabled: false`) keeps its schedule and destinations. `pause` is set when the rule
479
+ * paused itself; resuming it or setting a new rule clears it. The rule runs only while
480
+ * `enabled` is true and `pause` is null.
445
481
  */
446
482
  type AutoWithdrawRule = v.InferOutput<typeof AutoWithdrawRuleSchema>;
447
483
  declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
@@ -460,7 +496,11 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
460
496
  readonly hi: v.BigintSchema<undefined>;
461
497
  readonly lo: v.BigintSchema<undefined>;
462
498
  }, undefined>, undefined>;
463
- readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted">]>;
499
+ readonly networkFeeE18: v.OptionalSchema<v.ObjectSchema<{
500
+ readonly hi: v.BigintSchema<undefined>;
501
+ readonly lo: v.BigintSchema<undefined>;
502
+ }, undefined>, undefined>;
503
+ readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted">]>;
464
504
  readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
465
505
  readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
466
506
  readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
@@ -480,7 +520,11 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
480
520
  hi: bigint;
481
521
  lo: bigint;
482
522
  } | undefined;
483
- state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
523
+ networkFeeE18?: {
524
+ hi: bigint;
525
+ lo: bigint;
526
+ } | undefined;
527
+ state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
484
528
  reason: AutoWithdrawStepReason | null;
485
529
  intentId: string;
486
530
  txHash: string;
@@ -489,16 +533,20 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
489
533
  available: string;
490
534
  amount: string;
491
535
  valueUsd: string | null;
536
+ networkFee: string | null;
492
537
  intentId: string | null;
493
538
  txHash: string | null;
494
539
  assetId: number;
495
540
  destinationAddress: string;
496
- state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
541
+ state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
497
542
  reason: AutoWithdrawStepReason | null;
498
543
  }>]>;
499
544
  /**
500
545
  * One asset's payout in a run. `available`, `amount` and `valueUsd` are decimal strings;
501
- * `valueUsd` is null when the rule has no USD minimum or no price was available.
546
+ * `valueUsd` is null when the rule has no USD minimum or no price was available. `networkFee`
547
+ * is the fee charged on the withdrawal: once completed it was taken out of `amount`; once
548
+ * rejected or failed it is the fee kept, not refunded. It is null until the step is final, when
549
+ * the step never reached the withdrawal, or when the fee was not reported.
502
550
  */
503
551
  type AutoWithdrawStep = v.InferOutput<typeof AutoWithdrawStepSchema>;
504
552
  declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
@@ -511,7 +559,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
511
559
  seconds: bigint;
512
560
  nanos: number;
513
561
  }, number>]>;
514
- readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "planned" | "paying" | "completed" | "partially_failed" | "failed" | "skipped">]>;
562
+ readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped">]>;
515
563
  readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawRunReason | null>]>;
516
564
  readonly steps: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
517
565
  readonly assetId: v.NumberSchema<undefined>;
@@ -529,7 +577,11 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
529
577
  readonly hi: v.BigintSchema<undefined>;
530
578
  readonly lo: v.BigintSchema<undefined>;
531
579
  }, undefined>, undefined>;
532
- readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted">]>;
580
+ readonly networkFeeE18: v.OptionalSchema<v.ObjectSchema<{
581
+ readonly hi: v.BigintSchema<undefined>;
582
+ readonly lo: v.BigintSchema<undefined>;
583
+ }, undefined>, undefined>;
584
+ readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted">]>;
533
585
  readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
534
586
  readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
535
587
  readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
@@ -549,7 +601,11 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
549
601
  hi: bigint;
550
602
  lo: bigint;
551
603
  } | undefined;
552
- state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
604
+ networkFeeE18?: {
605
+ hi: bigint;
606
+ lo: bigint;
607
+ } | undefined;
608
+ state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
553
609
  reason: AutoWithdrawStepReason | null;
554
610
  intentId: string;
555
611
  txHash: string;
@@ -558,11 +614,12 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
558
614
  available: string;
559
615
  amount: string;
560
616
  valueUsd: string | null;
617
+ networkFee: string | null;
561
618
  intentId: string | null;
562
619
  txHash: string | null;
563
620
  assetId: number;
564
621
  destinationAddress: string;
565
- state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
622
+ state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
566
623
  reason: AutoWithdrawStepReason | null;
567
624
  }>]>, undefined>;
568
625
  readonly createdAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
@@ -583,18 +640,19 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
583
640
  runSeq: string;
584
641
  ruleVersion: number;
585
642
  scheduledFor: number;
586
- state: "unspecified" | "planned" | "paying" | "completed" | "partially_failed" | "failed" | "skipped";
643
+ state: "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped";
587
644
  reason: AutoWithdrawRunReason | null;
588
645
  steps: {
589
646
  destinationChainId: number;
590
647
  available: string;
591
648
  amount: string;
592
649
  valueUsd: string | null;
650
+ networkFee: string | null;
593
651
  intentId: string | null;
594
652
  txHash: string | null;
595
653
  assetId: number;
596
654
  destinationAddress: string;
597
- state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
655
+ state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
598
656
  reason: AutoWithdrawStepReason | null;
599
657
  }[];
600
658
  createdAt: number;
@@ -604,18 +662,19 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
604
662
  runSeq: string;
605
663
  ruleVersion: number;
606
664
  scheduledFor: number;
607
- state: "unspecified" | "planned" | "paying" | "completed" | "partially_failed" | "failed" | "skipped";
665
+ state: "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped";
608
666
  reason: AutoWithdrawRunReason | null;
609
667
  steps: {
610
668
  destinationChainId: number;
611
669
  available: string;
612
670
  amount: string;
613
671
  valueUsd: string | null;
672
+ networkFee: string | null;
614
673
  intentId: string | null;
615
674
  txHash: string | null;
616
675
  assetId: number;
617
676
  destinationAddress: string;
618
- state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
677
+ state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
619
678
  reason: AutoWithdrawStepReason | null;
620
679
  }[];
621
680
  createdAt: number;
@@ -633,7 +692,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
633
692
  seconds: bigint;
634
693
  nanos: number;
635
694
  }, number>]>;
636
- readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "planned" | "paying" | "completed" | "partially_failed" | "failed" | "skipped">]>;
695
+ readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped">]>;
637
696
  readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawRunReason | null>]>;
638
697
  readonly steps: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
639
698
  readonly assetId: v.NumberSchema<undefined>;
@@ -651,7 +710,11 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
651
710
  readonly hi: v.BigintSchema<undefined>;
652
711
  readonly lo: v.BigintSchema<undefined>;
653
712
  }, undefined>, undefined>;
654
- readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted">]>;
713
+ readonly networkFeeE18: v.OptionalSchema<v.ObjectSchema<{
714
+ readonly hi: v.BigintSchema<undefined>;
715
+ readonly lo: v.BigintSchema<undefined>;
716
+ }, undefined>, undefined>;
717
+ readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted">]>;
655
718
  readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
656
719
  readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
657
720
  readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
@@ -671,7 +734,11 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
671
734
  hi: bigint;
672
735
  lo: bigint;
673
736
  } | undefined;
674
- state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
737
+ networkFeeE18?: {
738
+ hi: bigint;
739
+ lo: bigint;
740
+ } | undefined;
741
+ state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
675
742
  reason: AutoWithdrawStepReason | null;
676
743
  intentId: string;
677
744
  txHash: string;
@@ -680,11 +747,12 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
680
747
  available: string;
681
748
  amount: string;
682
749
  valueUsd: string | null;
750
+ networkFee: string | null;
683
751
  intentId: string | null;
684
752
  txHash: string | null;
685
753
  assetId: number;
686
754
  destinationAddress: string;
687
- state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
755
+ state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
688
756
  reason: AutoWithdrawStepReason | null;
689
757
  }>]>, undefined>;
690
758
  readonly createdAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
@@ -705,18 +773,19 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
705
773
  runSeq: string;
706
774
  ruleVersion: number;
707
775
  scheduledFor: number;
708
- state: "unspecified" | "planned" | "paying" | "completed" | "partially_failed" | "failed" | "skipped";
776
+ state: "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped";
709
777
  reason: AutoWithdrawRunReason | null;
710
778
  steps: {
711
779
  destinationChainId: number;
712
780
  available: string;
713
781
  amount: string;
714
782
  valueUsd: string | null;
783
+ networkFee: string | null;
715
784
  intentId: string | null;
716
785
  txHash: string | null;
717
786
  assetId: number;
718
787
  destinationAddress: string;
719
- state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
788
+ state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
720
789
  reason: AutoWithdrawStepReason | null;
721
790
  }[];
722
791
  createdAt: number;
@@ -726,18 +795,19 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
726
795
  runSeq: string;
727
796
  ruleVersion: number;
728
797
  scheduledFor: number;
729
- state: "unspecified" | "planned" | "paying" | "completed" | "partially_failed" | "failed" | "skipped";
798
+ state: "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped";
730
799
  reason: AutoWithdrawRunReason | null;
731
800
  steps: {
732
801
  destinationChainId: number;
733
802
  available: string;
734
803
  amount: string;
735
804
  valueUsd: string | null;
805
+ networkFee: string | null;
736
806
  intentId: string | null;
737
807
  txHash: string | null;
738
808
  assetId: number;
739
809
  destinationAddress: string;
740
- state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
810
+ state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
741
811
  reason: AutoWithdrawStepReason | null;
742
812
  }[];
743
813
  createdAt: number;
@@ -746,6 +816,304 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
746
816
  }, undefined>;
747
817
  /** One page of runs, newest first. An empty `nextPageToken` means no more runs. */
748
818
  type ListAutoWithdrawRunsResult = v.InferOutput<typeof ListAutoWithdrawRunsResultSchema>;
819
+ declare const AutoWithdrawPreviewAssetSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
820
+ readonly assetId: v.NumberSchema<undefined>;
821
+ readonly destinationChainId: v.OptionalSchema<v.BigintSchema<undefined>, 0n>;
822
+ readonly destinationAddress: v.OptionalSchema<v.StringSchema<undefined>, "">;
823
+ readonly availableE18: v.OptionalSchema<v.ObjectSchema<{
824
+ readonly hi: v.BigintSchema<undefined>;
825
+ readonly lo: v.BigintSchema<undefined>;
826
+ }, undefined>, undefined>;
827
+ readonly payableE18: v.OptionalSchema<v.ObjectSchema<{
828
+ readonly hi: v.BigintSchema<undefined>;
829
+ readonly lo: v.BigintSchema<undefined>;
830
+ }, undefined>, undefined>;
831
+ readonly heldBackE18: v.OptionalSchema<v.ObjectSchema<{
832
+ readonly hi: v.BigintSchema<undefined>;
833
+ readonly lo: v.BigintSchema<undefined>;
834
+ }, undefined>, undefined>;
835
+ readonly holdReason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawHoldReason | null>]>;
836
+ readonly minimumE18: v.OptionalSchema<v.ObjectSchema<{
837
+ readonly hi: v.BigintSchema<undefined>;
838
+ readonly lo: v.BigintSchema<undefined>;
839
+ }, undefined>, undefined>;
840
+ readonly valueUsdE18: v.OptionalSchema<v.ObjectSchema<{
841
+ readonly hi: v.BigintSchema<undefined>;
842
+ readonly lo: v.BigintSchema<undefined>;
843
+ }, undefined>, undefined>;
844
+ readonly pricedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
845
+ readonly seconds: v.BigintSchema<undefined>;
846
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
847
+ }, undefined>, undefined>, v.TransformAction<{
848
+ seconds: bigint;
849
+ nanos: number;
850
+ } | undefined, number | undefined>]>;
851
+ readonly networkFeeE18: v.OptionalSchema<v.ObjectSchema<{
852
+ readonly hi: v.BigintSchema<undefined>;
853
+ readonly lo: v.BigintSchema<undefined>;
854
+ }, undefined>, undefined>;
855
+ readonly networkFeeSampledAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
856
+ readonly seconds: v.BigintSchema<undefined>;
857
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
858
+ }, undefined>, undefined>, v.TransformAction<{
859
+ seconds: bigint;
860
+ nanos: number;
861
+ } | undefined, number | undefined>]>;
862
+ readonly payableFrom: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
863
+ readonly seconds: v.BigintSchema<undefined>;
864
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
865
+ }, undefined>, undefined>, v.TransformAction<{
866
+ seconds: bigint;
867
+ nanos: number;
868
+ } | undefined, number | undefined>]>;
869
+ }, undefined>, v.TransformAction<{
870
+ assetId: number;
871
+ destinationChainId: bigint;
872
+ destinationAddress: string;
873
+ availableE18?: {
874
+ hi: bigint;
875
+ lo: bigint;
876
+ } | undefined;
877
+ payableE18?: {
878
+ hi: bigint;
879
+ lo: bigint;
880
+ } | undefined;
881
+ heldBackE18?: {
882
+ hi: bigint;
883
+ lo: bigint;
884
+ } | undefined;
885
+ holdReason: AutoWithdrawHoldReason | null;
886
+ minimumE18?: {
887
+ hi: bigint;
888
+ lo: bigint;
889
+ } | undefined;
890
+ valueUsdE18?: {
891
+ hi: bigint;
892
+ lo: bigint;
893
+ } | undefined;
894
+ pricedAt?: number | undefined;
895
+ networkFeeE18?: {
896
+ hi: bigint;
897
+ lo: bigint;
898
+ } | undefined;
899
+ networkFeeSampledAt?: number | undefined;
900
+ payableFrom?: number | undefined;
901
+ }, {
902
+ assetId: number;
903
+ destinationChainId: number | null;
904
+ destinationAddress: string | null;
905
+ available: string;
906
+ payable: string;
907
+ heldBack: string;
908
+ holdReason: AutoWithdrawHoldReason | null;
909
+ minimum: string | null;
910
+ valueUsd: string | null;
911
+ pricedAt: number | null;
912
+ networkFee: string | null;
913
+ networkFeeSampledAt: number | null;
914
+ payableFrom: number | null;
915
+ }>]>;
916
+ /**
917
+ * What the next run would do with one asset, sized from the balance now. Amounts are decimal
918
+ * strings; `heldBack` is `available` minus `payable`, and `holdReason` says why it stays (null
919
+ * when the whole balance pays). `destinationChainId` and `destinationAddress` are null for an
920
+ * asset the rule pays nowhere. `minimum`, `valueUsd`, `networkFee` and their times are null
921
+ * when unknown, never zero. `payableFrom` is set only while a broker vault's destination cools
922
+ * down. Times are epoch milliseconds.
923
+ */
924
+ type AutoWithdrawPreviewAsset = v.InferOutput<typeof AutoWithdrawPreviewAssetSchema>;
925
+ declare const AutoWithdrawPreviewSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
926
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "will_pay" | "rolls_over" | "no_destination" | "paused" | "no_rule">]>;
927
+ readonly nextRunAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
928
+ readonly seconds: v.BigintSchema<undefined>;
929
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
930
+ }, undefined>, undefined>, v.TransformAction<{
931
+ seconds: bigint;
932
+ nanos: number;
933
+ } | undefined, number | undefined>]>;
934
+ readonly ruleVersion: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
935
+ readonly pause: v.OptionalSchema<v.ObjectSchema<{
936
+ readonly assetId: v.NumberSchema<undefined>;
937
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, AutoWithdrawPauseReason>]>;
938
+ readonly pausedAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
939
+ readonly seconds: v.BigintSchema<undefined>;
940
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
941
+ }, undefined>, v.TransformAction<{
942
+ seconds: bigint;
943
+ nanos: number;
944
+ }, number>]>;
945
+ }, undefined>, undefined>;
946
+ readonly minUsdValueE18: v.OptionalSchema<v.ObjectSchema<{
947
+ readonly hi: v.BigintSchema<undefined>;
948
+ readonly lo: v.BigintSchema<undefined>;
949
+ }, undefined>, undefined>;
950
+ readonly assets: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
951
+ readonly assetId: v.NumberSchema<undefined>;
952
+ readonly destinationChainId: v.OptionalSchema<v.BigintSchema<undefined>, 0n>;
953
+ readonly destinationAddress: v.OptionalSchema<v.StringSchema<undefined>, "">;
954
+ readonly availableE18: v.OptionalSchema<v.ObjectSchema<{
955
+ readonly hi: v.BigintSchema<undefined>;
956
+ readonly lo: v.BigintSchema<undefined>;
957
+ }, undefined>, undefined>;
958
+ readonly payableE18: v.OptionalSchema<v.ObjectSchema<{
959
+ readonly hi: v.BigintSchema<undefined>;
960
+ readonly lo: v.BigintSchema<undefined>;
961
+ }, undefined>, undefined>;
962
+ readonly heldBackE18: v.OptionalSchema<v.ObjectSchema<{
963
+ readonly hi: v.BigintSchema<undefined>;
964
+ readonly lo: v.BigintSchema<undefined>;
965
+ }, undefined>, undefined>;
966
+ readonly holdReason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawHoldReason | null>]>;
967
+ readonly minimumE18: v.OptionalSchema<v.ObjectSchema<{
968
+ readonly hi: v.BigintSchema<undefined>;
969
+ readonly lo: v.BigintSchema<undefined>;
970
+ }, undefined>, undefined>;
971
+ readonly valueUsdE18: v.OptionalSchema<v.ObjectSchema<{
972
+ readonly hi: v.BigintSchema<undefined>;
973
+ readonly lo: v.BigintSchema<undefined>;
974
+ }, undefined>, undefined>;
975
+ readonly pricedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
976
+ readonly seconds: v.BigintSchema<undefined>;
977
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
978
+ }, undefined>, undefined>, v.TransformAction<{
979
+ seconds: bigint;
980
+ nanos: number;
981
+ } | undefined, number | undefined>]>;
982
+ readonly networkFeeE18: v.OptionalSchema<v.ObjectSchema<{
983
+ readonly hi: v.BigintSchema<undefined>;
984
+ readonly lo: v.BigintSchema<undefined>;
985
+ }, undefined>, undefined>;
986
+ readonly networkFeeSampledAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
987
+ readonly seconds: v.BigintSchema<undefined>;
988
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
989
+ }, undefined>, undefined>, v.TransformAction<{
990
+ seconds: bigint;
991
+ nanos: number;
992
+ } | undefined, number | undefined>]>;
993
+ readonly payableFrom: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
994
+ readonly seconds: v.BigintSchema<undefined>;
995
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
996
+ }, undefined>, undefined>, v.TransformAction<{
997
+ seconds: bigint;
998
+ nanos: number;
999
+ } | undefined, number | undefined>]>;
1000
+ }, undefined>, v.TransformAction<{
1001
+ assetId: number;
1002
+ destinationChainId: bigint;
1003
+ destinationAddress: string;
1004
+ availableE18?: {
1005
+ hi: bigint;
1006
+ lo: bigint;
1007
+ } | undefined;
1008
+ payableE18?: {
1009
+ hi: bigint;
1010
+ lo: bigint;
1011
+ } | undefined;
1012
+ heldBackE18?: {
1013
+ hi: bigint;
1014
+ lo: bigint;
1015
+ } | undefined;
1016
+ holdReason: AutoWithdrawHoldReason | null;
1017
+ minimumE18?: {
1018
+ hi: bigint;
1019
+ lo: bigint;
1020
+ } | undefined;
1021
+ valueUsdE18?: {
1022
+ hi: bigint;
1023
+ lo: bigint;
1024
+ } | undefined;
1025
+ pricedAt?: number | undefined;
1026
+ networkFeeE18?: {
1027
+ hi: bigint;
1028
+ lo: bigint;
1029
+ } | undefined;
1030
+ networkFeeSampledAt?: number | undefined;
1031
+ payableFrom?: number | undefined;
1032
+ }, {
1033
+ assetId: number;
1034
+ destinationChainId: number | null;
1035
+ destinationAddress: string | null;
1036
+ available: string;
1037
+ payable: string;
1038
+ heldBack: string;
1039
+ holdReason: AutoWithdrawHoldReason | null;
1040
+ minimum: string | null;
1041
+ valueUsd: string | null;
1042
+ pricedAt: number | null;
1043
+ networkFee: string | null;
1044
+ networkFeeSampledAt: number | null;
1045
+ payableFrom: number | null;
1046
+ }>]>, undefined>;
1047
+ readonly computedAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1048
+ readonly seconds: v.BigintSchema<undefined>;
1049
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
1050
+ }, undefined>, v.TransformAction<{
1051
+ seconds: bigint;
1052
+ nanos: number;
1053
+ }, number>]>;
1054
+ }, undefined>, v.TransformAction<{
1055
+ status: "unspecified" | "will_pay" | "rolls_over" | "no_destination" | "paused" | "no_rule";
1056
+ nextRunAt?: number | undefined;
1057
+ ruleVersion: number;
1058
+ pause?: {
1059
+ assetId: number;
1060
+ reason: AutoWithdrawPauseReason;
1061
+ pausedAt: number;
1062
+ } | undefined;
1063
+ minUsdValueE18?: {
1064
+ hi: bigint;
1065
+ lo: bigint;
1066
+ } | undefined;
1067
+ assets: {
1068
+ assetId: number;
1069
+ destinationChainId: number | null;
1070
+ destinationAddress: string | null;
1071
+ available: string;
1072
+ payable: string;
1073
+ heldBack: string;
1074
+ holdReason: AutoWithdrawHoldReason | null;
1075
+ minimum: string | null;
1076
+ valueUsd: string | null;
1077
+ pricedAt: number | null;
1078
+ networkFee: string | null;
1079
+ networkFeeSampledAt: number | null;
1080
+ payableFrom: number | null;
1081
+ }[];
1082
+ computedAt: number;
1083
+ }, {
1084
+ nextRunAt: number | null;
1085
+ pause: {
1086
+ assetId: number;
1087
+ reason: AutoWithdrawPauseReason;
1088
+ pausedAt: number;
1089
+ } | null;
1090
+ minUsdValue: string | null;
1091
+ status: "unspecified" | "will_pay" | "rolls_over" | "no_destination" | "paused" | "no_rule";
1092
+ ruleVersion: number;
1093
+ assets: {
1094
+ assetId: number;
1095
+ destinationChainId: number | null;
1096
+ destinationAddress: string | null;
1097
+ available: string;
1098
+ payable: string;
1099
+ heldBack: string;
1100
+ holdReason: AutoWithdrawHoldReason | null;
1101
+ minimum: string | null;
1102
+ valueUsd: string | null;
1103
+ pricedAt: number | null;
1104
+ networkFee: string | null;
1105
+ networkFeeSampledAt: number | null;
1106
+ payableFrom: number | null;
1107
+ }[];
1108
+ computedAt: number;
1109
+ }>]>;
1110
+ /**
1111
+ * The account's next run as it would go now; balances, prices and fees can change before
1112
+ * `nextRunAt`. `nextRunAt` is null without a rule or while it is paused; `ruleVersion` is 0
1113
+ * without a rule. `pause` is set only when the rule paused itself. `minUsdValue` is null when
1114
+ * there is no USD minimum. Times are epoch milliseconds.
1115
+ */
1116
+ type AutoWithdrawPreview = v.InferOutput<typeof AutoWithdrawPreviewSchema>;
749
1117
  //#endregion
750
- export { AutoWithdrawDestination, AutoWithdrawDestinationInput, AutoWithdrawPause, AutoWithdrawRule, AutoWithdrawRuleSchema, AutoWithdrawRun, AutoWithdrawSchedule, AutoWithdrawScheduleInput, AutoWithdrawScheduleInputSchema, AutoWithdrawScopedInput, AutoWithdrawStep, DisableAutoWithdrawRuleInput, DisableAutoWithdrawRuleInputSchema, ListAutoWithdrawRunsInput, ListAutoWithdrawRunsInputSchema, ListAutoWithdrawRunsResult, ListAutoWithdrawRunsResultSchema, SetAutoWithdrawRuleInput, SetAutoWithdrawRuleInputSchema };
1118
+ export { AutoWithdrawDestination, AutoWithdrawDestinationInput, AutoWithdrawPause, AutoWithdrawPreview, AutoWithdrawPreviewAsset, AutoWithdrawPreviewSchema, AutoWithdrawRule, AutoWithdrawRuleSchema, AutoWithdrawRun, AutoWithdrawSchedule, AutoWithdrawScheduleInput, AutoWithdrawScheduleInputSchema, AutoWithdrawScopedInput, AutoWithdrawStep, ListAutoWithdrawRunsInput, ListAutoWithdrawRunsInputSchema, ListAutoWithdrawRunsResult, ListAutoWithdrawRunsResultSchema, SetAutoWithdrawRuleEnabledInput, SetAutoWithdrawRuleEnabledInputSchema, SetAutoWithdrawRuleInput, SetAutoWithdrawRuleInputSchema };
751
1119
  //# sourceMappingURL=auto-withdraw.schemas.d.ts.map