@polyester/sdk 0.35.0-devnet-20261111025029 → 0.35.0-devnet-20261111140253
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -1
- package/dist/catalogs/index.d.ts +2 -2
- package/dist/catalogs/snapshot-validation.js +7 -3
- package/dist/catalogs/snapshot-validation.js.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +4164 -0
- package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -0
- package/dist/gen/ai/v1/assistant_pb.js +1174 -0
- package/dist/gen/ai/v1/assistant_pb.js.map +1 -0
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts +776 -0
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts.map +1 -0
- package/dist/gen/alerts/v1/price_alerts_pb.js +378 -0
- package/dist/gen/alerts/v1/price_alerts_pb.js.map +1 -0
- package/dist/gen/auth/v1/address_book_pb.d.ts +6 -0
- package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/address_book_pb.js +6 -0
- package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts +247 -3
- package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.js +81 -2
- package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +55 -6
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +55 -6
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +186 -14
- package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +163 -6
- package/dist/gen/auth/v1/policies_pb.js.map +1 -1
- package/dist/gen/auth/v1/profile_pb.d.ts +4 -2
- package/dist/gen/auth/v1/profile_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/profile_pb.js.map +1 -1
- package/dist/gen/auth/v1/resolve_pb.d.ts +1 -0
- package/dist/gen/auth/v1/resolve_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/resolve_pb.js.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.d.ts +170 -11
- package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js +41 -3
- package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +25 -9
- package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +4 -2
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts.map +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +5 -0
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts.map +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.js.map +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +10 -0
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +32 -4
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts.map +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.js +32 -4
- package/dist/gen/chain/lifecycle/v1/types_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +391 -42
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js +103 -17
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +172 -4
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +63 -2
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +57 -3
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts.map +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.js +41 -3
- package/dist/gen/chain/zipper/v1/zipper_pb.js.map +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +2 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts.map +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.js.map +1 -1
- package/dist/gen/claims/v1/claims_pb.d.ts +20 -3
- package/dist/gen/claims/v1/claims_pb.d.ts.map +1 -1
- package/dist/gen/claims/v1/claims_pb.js +12 -3
- package/dist/gen/claims/v1/claims_pb.js.map +1 -1
- package/dist/gen/index.d.ts +9 -5
- package/dist/gen/index.js +5 -1
- package/dist/gen/ledger/v1/catalog_pb.d.ts +52 -1
- package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
- package/dist/gen/ledger/v1/catalog_pb.js +52 -1
- package/dist/gen/ledger/v1/catalog_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts +6 -0
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts +8 -0
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +29 -8
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +18 -5
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +20 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts.map +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.js +20 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.js.map +1 -1
- package/dist/gen/rewards/v1/rewards_pb.d.ts +74 -3
- package/dist/gen/rewards/v1/rewards_pb.d.ts.map +1 -1
- package/dist/gen/rewards/v1/rewards_pb.js +16 -4
- package/dist/gen/rewards/v1/rewards_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +1268 -67
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +306 -5
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +298 -54
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +183 -37
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +933 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +292 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -0
- package/dist/gen/system/v1/system_pb.d.ts +77 -0
- package/dist/gen/system/v1/system_pb.d.ts.map +1 -0
- package/dist/gen/system/v1/system_pb.js +34 -0
- package/dist/gen/system/v1/system_pb.js.map +1 -0
- package/dist/gen/tradews/v1/trade_ws_pb.d.ts +2 -2
- package/dist/gen/tradews/v1/trade_ws_pb.js.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +101 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js +14 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/vip/v1/vip_pb.d.ts +1 -0
- package/dist/gen/vip/v1/vip_pb.d.ts.map +1 -1
- package/dist/gen/vip/v1/vip_pb.js.map +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +2 -2
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/api-keys/api-keys.codecs.js +10 -1
- package/dist/services/api-keys/api-keys.codecs.js.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.d.ts +4 -0
- package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.js +3 -1
- package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +9 -2
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js +9 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.d.ts +15 -4
- package/dist/services/auto-withdraw/auto-withdraw.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.js +24 -8
- package/dist/services/auto-withdraw/auto-withdraw.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +375 -7
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +66 -11
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.types.d.ts +3 -3
- package/dist/services/changelog/changelog.schemas.d.ts +17 -17
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
- package/dist/services/claims/claims.d.ts +5 -2
- package/dist/services/claims/claims.d.ts.map +1 -1
- package/dist/services/claims/claims.js +5 -2
- package/dist/services/claims/claims.js.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.d.ts +13 -4
- package/dist/services/internal-transfers/internal-transfers.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.js +17 -3
- package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +59 -4
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.js +32 -2
- package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.types.d.ts +2 -2
- package/dist/services/lifecycle/lifecycle.codecs.d.ts +2 -2
- package/dist/services/lifecycle/lifecycle.codecs.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.codecs.js +3 -1
- package/dist/services/lifecycle/lifecycle.codecs.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +114 -90
- package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.js +7 -1
- package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
- package/dist/services/market-data/market-data.schemas.js +7 -2
- package/dist/services/market-data/market-data.schemas.js.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +2 -2
- package/dist/services/orders/orders-batch.schemas.d.ts +54 -54
- package/dist/services/orders/orders-input.schemas.d.ts +7 -7
- package/dist/services/orders/orders-output.schemas.d.ts +19 -19
- package/dist/services/orders/orders.d.ts +2 -0
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +2 -0
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +1 -1
- package/dist/services/policies/shared.codecs.js +85 -3
- package/dist/services/policies/shared.codecs.js.map +1 -1
- package/dist/services/policies/shared.d.ts +1 -1
- package/dist/services/policies/shared.d.ts.map +1 -1
- package/dist/services/policies/shared.js +5 -14
- package/dist/services/policies/shared.js.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +3 -3
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
- package/dist/services/rewards/rewards.d.ts +13 -3
- package/dist/services/rewards/rewards.d.ts.map +1 -1
- package/dist/services/rewards/rewards.js +17 -3
- package/dist/services/rewards/rewards.js.map +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +101 -4
- package/dist/services/rewards/rewards.schemas.d.ts.map +1 -1
- package/dist/services/rewards/rewards.schemas.js +12 -2
- package/dist/services/rewards/rewards.schemas.js.map +1 -1
- package/dist/services/rewards/rewards.types.d.ts +2 -2
- package/dist/services/social-verification/social-verification.codecs.js +13 -5
- package/dist/services/social-verification/social-verification.codecs.js.map +1 -1
- package/dist/services/social-verification/social-verification.d.ts +18 -3
- package/dist/services/social-verification/social-verification.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.js +26 -3
- package/dist/services/social-verification/social-verification.js.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.d.ts +33 -7
- package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +35 -10
- package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
- package/dist/services/social-verification/social-verification.types.d.ts +2 -2
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +17 -17
- package/dist/services/trades/trades.schemas.d.ts +2 -2
- package/dist/services/trading-withdraws/trading-withdraws.d.ts +7 -1
- package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +11 -1
- package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +42 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +19 -3
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +2 -2
- package/dist/services/transfers/transfers.schemas.d.ts +4 -4
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +30 -30
- package/dist/services/zipper/zipper.schemas.d.ts +2 -2
- package/dist/services/zipper/zipper.schemas.d.ts.map +1 -1
- package/dist/services/zipper/zipper.schemas.js +13 -2
- package/dist/services/zipper/zipper.schemas.js.map +1 -1
- package/dist/services/zipper/zipper.types.d.ts +2 -2
- package/dist/shared/catalog-config.d.ts +18 -1
- package/dist/shared/catalog-config.d.ts.map +1 -1
- package/dist/shared/catalog-config.js +7 -1
- package/dist/shared/catalog-config.js.map +1 -1
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +5 -1
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/error-detail.d.ts +8 -0
- package/dist/shared/error-detail.d.ts.map +1 -1
- package/dist/shared/error-detail.js.map +1 -1
- package/dist/shared/error-details/claims.js +7 -2
- package/dist/shared/error-details/claims.js.map +1 -1
- package/dist/shared/error-details/withdraw.js +11 -2
- package/dist/shared/error-details/withdraw.js.map +1 -1
- package/dist/shared/errors.d.ts +20 -3
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +17 -1
- package/dist/shared/errors.js.map +1 -1
- package/dist/shared/ledger-codes.d.ts +7 -1
- package/dist/shared/ledger-codes.d.ts.map +1 -1
- package/dist/shared/ledger-codes.js +27 -3
- package/dist/shared/ledger-codes.js.map +1 -1
- package/dist/shared/rate-limit.schemas.d.ts +2 -2
- package/dist/shared/rate-limit.schemas.d.ts.map +1 -1
- package/dist/shared/rate-limit.schemas.js +4 -1
- package/dist/shared/rate-limit.schemas.js.map +1 -1
- package/dist/shared/transports.d.ts +2 -1
- package/dist/shared/transports.d.ts.map +1 -1
- package/dist/shared/transports.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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
|
|
444
|
-
*
|
|
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,6 +496,10 @@ 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>;
|
|
499
|
+
readonly networkFeeE18: v.OptionalSchema<v.ObjectSchema<{
|
|
500
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
501
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
502
|
+
}, undefined>, undefined>;
|
|
463
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>, "">;
|
|
@@ -480,6 +520,10 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
480
520
|
hi: bigint;
|
|
481
521
|
lo: bigint;
|
|
482
522
|
} | undefined;
|
|
523
|
+
networkFeeE18?: {
|
|
524
|
+
hi: bigint;
|
|
525
|
+
lo: bigint;
|
|
526
|
+
} | undefined;
|
|
483
527
|
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
484
528
|
reason: AutoWithdrawStepReason | null;
|
|
485
529
|
intentId: string;
|
|
@@ -489,6 +533,7 @@ 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;
|
|
@@ -498,7 +543,10 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
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<{
|
|
@@ -529,6 +577,10 @@ 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>;
|
|
580
|
+
readonly networkFeeE18: v.OptionalSchema<v.ObjectSchema<{
|
|
581
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
582
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
583
|
+
}, undefined>, undefined>;
|
|
532
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>, "">;
|
|
@@ -549,6 +601,10 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
549
601
|
hi: bigint;
|
|
550
602
|
lo: bigint;
|
|
551
603
|
} | undefined;
|
|
604
|
+
networkFeeE18?: {
|
|
605
|
+
hi: bigint;
|
|
606
|
+
lo: bigint;
|
|
607
|
+
} | undefined;
|
|
552
608
|
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
553
609
|
reason: AutoWithdrawStepReason | null;
|
|
554
610
|
intentId: string;
|
|
@@ -558,6 +614,7 @@ 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;
|
|
@@ -590,6 +647,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
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;
|
|
@@ -611,6 +669,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
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;
|
|
@@ -651,6 +710,10 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
651
710
|
readonly hi: v.BigintSchema<undefined>;
|
|
652
711
|
readonly lo: v.BigintSchema<undefined>;
|
|
653
712
|
}, undefined>, undefined>;
|
|
713
|
+
readonly networkFeeE18: v.OptionalSchema<v.ObjectSchema<{
|
|
714
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
715
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
716
|
+
}, undefined>, undefined>;
|
|
654
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>, "">;
|
|
@@ -671,6 +734,10 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
671
734
|
hi: bigint;
|
|
672
735
|
lo: bigint;
|
|
673
736
|
} | undefined;
|
|
737
|
+
networkFeeE18?: {
|
|
738
|
+
hi: bigint;
|
|
739
|
+
lo: bigint;
|
|
740
|
+
} | undefined;
|
|
674
741
|
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
675
742
|
reason: AutoWithdrawStepReason | null;
|
|
676
743
|
intentId: string;
|
|
@@ -680,6 +747,7 @@ 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;
|
|
@@ -712,6 +780,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
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;
|
|
@@ -733,6 +802,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
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;
|
|
@@ -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,
|
|
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-withdraw.schemas.d.ts","names":[],"sources":["../../../src/services/auto-withdraw/auto-withdraw.schemas.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"auto-withdraw.schemas.d.ts","names":[],"sources":["../../../src/services/auto-withdraw/auto-withdraw.schemas.ts"],"mappings":";;;;;;cA0DM,0BAAwB,EAAA;;;;;KAElB,0BAA0B,EAAE,kBAAkB;;;;;;;cAiC7C,iCAA+B,EAAA,yBAAA,EAAA,0BAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkChC,4BAA4B,EAAE,kBAAkB;;;;;;cAOtD,oCAAkC,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;gBAAA;;;;;KA8B5B,+BAA+B,EAAE,kBAAkB;cAElD,gCAA8B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2B/B,2BAA2B,EAAE,kBAAkB;cAE9C,uCAAqC,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;KAetC,kCAAkC,EAAE,kBACrC;;cAIE,iCAA+B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;KAYhC,4BAA4B,EAAE,kBAAkB;KAEvD,cAAc;EACX;EAAmB;;EACnB;EAAkB;;EAClB;EAAmB,SAAS;EAAS;;EACrC;EAAqB,SAAS;EAAS;EAAqB;;EAC5D;EAAoB;EAAoB;;;KAGpC,uBACN,cAAc,YAAY;EACxB;;cAsCF,+BAA6B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0BvB,0BAA0B,EAAE,mBAAmB;cAErD,yBAAuB,EAAA;;;;;;;;;;;KASjB,oBAAoB,EAAE,mBAAmB;cAExC,wBAAsB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4BvB,mBAAmB,EAAE,mBAAmB;cAE9C,wBAAsB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4ChB,mBAAmB,EAAE,mBAAmB;cAE9C,uBAAqB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAef,kBAAkB,EAAE,mBAAmB;cAEtC,kCAAgC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAMjC,6BAA6B,EAAE,mBAAmB;cAExD,gCAA8B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0CxB,2BAA2B,EAAE,mBAAmB;cAE/C,2BAAyB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAwB1B,sBAAsB,EAAE,mBAAmB"}
|