@polyester/sdk 0.32.2-devnet-20261102211233 → 0.32.2-devnet-20261103030350
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 +3 -1
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -1
- package/dist/gen/index.js +2 -2
- package/dist/gen/ledger/read/v1/ledger_read_pb.js +1 -1
- package/dist/gen/orders/v1/orders_read_pb.js +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +19 -0
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -0
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js +61 -0
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -0
- package/dist/services/auto-withdraw/auto-withdraw.d.ts +40 -0
- package/dist/services/auto-withdraw/auto-withdraw.d.ts.map +1 -0
- package/dist/services/auto-withdraw/auto-withdraw.js +82 -0
- package/dist/services/auto-withdraw/auto-withdraw.js.map +1 -0
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +751 -0
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -0
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +238 -0
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -0
- package/dist/services/auto-withdraw/auto-withdraw.types.d.ts +3 -0
- package/dist/services/auto-withdraw/service.d.ts +8 -0
- package/dist/services/auto-withdraw/service.d.ts.map +1 -0
- package/dist/services/auto-withdraw/service.js +9 -0
- package/dist/services/auto-withdraw/service.js.map +1 -0
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
- package/dist/services/heatmap/heatmap.schemas.d.ts +3 -3
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +94 -94
- package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
- package/dist/services/orders/orders-batch.schemas.d.ts +5 -5
- package/dist/services/orders/orders-output.schemas.d.ts +9 -9
- package/dist/services/rewards/rewards.schemas.d.ts +3 -3
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +11 -11
- package/dist/services/trades/trades.schemas.d.ts +2 -2
- package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +15 -15
- package/dist/wired-services.d.ts.map +1 -1
- package/dist/wired-services.js +2 -0
- package/dist/wired-services.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,751 @@
|
|
|
1
|
+
import { AutoWithdrawCadence, AutoWithdrawWeekday } from "../../gen/chain/withdraw/v1/auto_withdraw_pb.js";
|
|
2
|
+
import { DecodedEnum } from "../../utils/types.js";
|
|
3
|
+
import { U128Value } from "../../utils/u128.js";
|
|
4
|
+
import { AutoWithdrawPauseReason, AutoWithdrawRunReason, AutoWithdrawStepReason, AutoWithdrawWeekday as AutoWithdrawWeekday$1 } from "./auto-withdraw.codecs.js";
|
|
5
|
+
import * as v from "valibot";
|
|
6
|
+
//#region src/services/auto-withdraw/auto-withdraw.schemas.d.ts
|
|
7
|
+
declare const AccountScopedInputSchema: v.StrictObjectSchema<{
|
|
8
|
+
readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
|
|
9
|
+
readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
10
|
+
}, undefined>], undefined>, undefined>;
|
|
11
|
+
}, undefined>;
|
|
12
|
+
type AutoWithdrawScopedInput = v.InferInput<typeof AccountScopedInputSchema>;
|
|
13
|
+
/**
|
|
14
|
+
* A rule's UTC run slot. Each cadence takes only its own fields; any other field is rejected.
|
|
15
|
+
* `minuteOfDay` is minutes after 00:00 UTC (0–1439), `minuteOfHour` 0–59, `dayOfMonth` 1–31
|
|
16
|
+
* (a shorter month runs on its last day), and `anchorDate` is a UTC date in a week a biweekly
|
|
17
|
+
* rule runs.
|
|
18
|
+
*/
|
|
19
|
+
declare const AutoWithdrawScheduleInputSchema: v.SchemaWithPipe<readonly [v.VariantSchema<"cadence", [v.StrictObjectSchema<{
|
|
20
|
+
readonly cadence: v.LiteralSchema<"hourly", undefined>;
|
|
21
|
+
readonly minuteOfHour: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 59, undefined>]>;
|
|
22
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
23
|
+
readonly cadence: v.LiteralSchema<"daily", undefined>;
|
|
24
|
+
readonly minuteOfDay: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1439, undefined>]>;
|
|
25
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
26
|
+
readonly cadence: v.LiteralSchema<"weekly", undefined>;
|
|
27
|
+
readonly weekday: v.PicklistSchema<readonly ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"], undefined>;
|
|
28
|
+
readonly minuteOfDay: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1439, undefined>]>;
|
|
29
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
30
|
+
readonly cadence: v.LiteralSchema<"biweekly", undefined>;
|
|
31
|
+
readonly weekday: v.PicklistSchema<readonly ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"], undefined>;
|
|
32
|
+
readonly minuteOfDay: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1439, undefined>]>;
|
|
33
|
+
readonly anchorDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.IsoDateAction<string, "anchorDate must be a UTC date, YYYY-MM-DD">, v.CheckAction<string, "anchorDate must be a real calendar date">]>;
|
|
34
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
35
|
+
readonly cadence: v.LiteralSchema<"monthly", undefined>;
|
|
36
|
+
readonly dayOfMonth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 31, undefined>]>;
|
|
37
|
+
readonly minuteOfDay: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1439, undefined>]>;
|
|
38
|
+
}, undefined>], undefined>, v.TransformAction<{
|
|
39
|
+
cadence: "hourly";
|
|
40
|
+
minuteOfHour: number;
|
|
41
|
+
} | {
|
|
42
|
+
cadence: "daily";
|
|
43
|
+
minuteOfDay: number;
|
|
44
|
+
} | {
|
|
45
|
+
cadence: "weekly";
|
|
46
|
+
weekday: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
|
|
47
|
+
minuteOfDay: number;
|
|
48
|
+
} | {
|
|
49
|
+
cadence: "biweekly";
|
|
50
|
+
weekday: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
|
|
51
|
+
minuteOfDay: number;
|
|
52
|
+
anchorDate: string;
|
|
53
|
+
} | {
|
|
54
|
+
cadence: "monthly";
|
|
55
|
+
dayOfMonth: number;
|
|
56
|
+
minuteOfDay: number;
|
|
57
|
+
}, {
|
|
58
|
+
cadence: AutoWithdrawCadence.DAILY | AutoWithdrawCadence.WEEKLY | AutoWithdrawCadence.HOURLY | AutoWithdrawCadence.BIWEEKLY | AutoWithdrawCadence.MONTHLY;
|
|
59
|
+
weekday: AutoWithdrawWeekday.MONDAY | AutoWithdrawWeekday.TUESDAY | AutoWithdrawWeekday.WEDNESDAY | AutoWithdrawWeekday.THURSDAY | AutoWithdrawWeekday.FRIDAY | AutoWithdrawWeekday.SATURDAY | AutoWithdrawWeekday.SUNDAY | undefined;
|
|
60
|
+
minuteOfDay: number | undefined;
|
|
61
|
+
minuteOfHour: number | undefined;
|
|
62
|
+
dayOfMonth: number | undefined;
|
|
63
|
+
anchorDate: string | undefined;
|
|
64
|
+
}>]>;
|
|
65
|
+
type AutoWithdrawScheduleInput = v.InferInput<typeof AutoWithdrawScheduleInputSchema>;
|
|
66
|
+
/**
|
|
67
|
+
* One asset paid in kind to one whitelisted external-chain address. `minAmount` and
|
|
68
|
+
* `maxAmount` are decimal asset amounts (up to 18 decimals); a run pays the balance up to
|
|
69
|
+
* `maxAmount` once it reaches `minAmount`.
|
|
70
|
+
*/
|
|
71
|
+
declare const AutoWithdrawDestinationInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
72
|
+
readonly assetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
|
|
73
|
+
readonly destinationChainId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, number, undefined>]>;
|
|
74
|
+
readonly destinationAddress: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
75
|
+
readonly minAmount: v.StringSchema<undefined>;
|
|
76
|
+
readonly maxAmount: v.StringSchema<undefined>;
|
|
77
|
+
}, undefined>, v.TransformAction<{
|
|
78
|
+
assetId: number;
|
|
79
|
+
destinationChainId: number;
|
|
80
|
+
destinationAddress: string;
|
|
81
|
+
minAmount: string;
|
|
82
|
+
maxAmount: string;
|
|
83
|
+
}, {
|
|
84
|
+
destinationChainId: bigint;
|
|
85
|
+
minAmountE18: U128Value;
|
|
86
|
+
maxAmountE18: U128Value;
|
|
87
|
+
assetId: number;
|
|
88
|
+
destinationAddress: string;
|
|
89
|
+
}>]>;
|
|
90
|
+
type AutoWithdrawDestinationInput = v.InferInput<typeof AutoWithdrawDestinationInputSchema>;
|
|
91
|
+
declare const SetAutoWithdrawRuleInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
92
|
+
/** The version this change replaces: 0 when the account has no rule yet. */
|
|
93
|
+
readonly expectedVersion: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
|
|
94
|
+
readonly schedule: v.SchemaWithPipe<readonly [v.VariantSchema<"cadence", [v.StrictObjectSchema<{
|
|
95
|
+
readonly cadence: v.LiteralSchema<"hourly", undefined>;
|
|
96
|
+
readonly minuteOfHour: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 59, undefined>]>;
|
|
97
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
98
|
+
readonly cadence: v.LiteralSchema<"daily", undefined>;
|
|
99
|
+
readonly minuteOfDay: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1439, undefined>]>;
|
|
100
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
101
|
+
readonly cadence: v.LiteralSchema<"weekly", undefined>;
|
|
102
|
+
readonly weekday: v.PicklistSchema<readonly ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"], undefined>;
|
|
103
|
+
readonly minuteOfDay: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1439, undefined>]>;
|
|
104
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
105
|
+
readonly cadence: v.LiteralSchema<"biweekly", undefined>;
|
|
106
|
+
readonly weekday: v.PicklistSchema<readonly ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"], undefined>;
|
|
107
|
+
readonly minuteOfDay: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1439, undefined>]>;
|
|
108
|
+
readonly anchorDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.IsoDateAction<string, "anchorDate must be a UTC date, YYYY-MM-DD">, v.CheckAction<string, "anchorDate must be a real calendar date">]>;
|
|
109
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
110
|
+
readonly cadence: v.LiteralSchema<"monthly", undefined>;
|
|
111
|
+
readonly dayOfMonth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 31, undefined>]>;
|
|
112
|
+
readonly minuteOfDay: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1439, undefined>]>;
|
|
113
|
+
}, undefined>], undefined>, v.TransformAction<{
|
|
114
|
+
cadence: "hourly";
|
|
115
|
+
minuteOfHour: number;
|
|
116
|
+
} | {
|
|
117
|
+
cadence: "daily";
|
|
118
|
+
minuteOfDay: number;
|
|
119
|
+
} | {
|
|
120
|
+
cadence: "weekly";
|
|
121
|
+
weekday: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
|
|
122
|
+
minuteOfDay: number;
|
|
123
|
+
} | {
|
|
124
|
+
cadence: "biweekly";
|
|
125
|
+
weekday: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
|
|
126
|
+
minuteOfDay: number;
|
|
127
|
+
anchorDate: string;
|
|
128
|
+
} | {
|
|
129
|
+
cadence: "monthly";
|
|
130
|
+
dayOfMonth: number;
|
|
131
|
+
minuteOfDay: number;
|
|
132
|
+
}, {
|
|
133
|
+
cadence: AutoWithdrawCadence.DAILY | AutoWithdrawCadence.WEEKLY | AutoWithdrawCadence.HOURLY | AutoWithdrawCadence.BIWEEKLY | AutoWithdrawCadence.MONTHLY;
|
|
134
|
+
weekday: AutoWithdrawWeekday.MONDAY | AutoWithdrawWeekday.TUESDAY | AutoWithdrawWeekday.WEDNESDAY | AutoWithdrawWeekday.THURSDAY | AutoWithdrawWeekday.FRIDAY | AutoWithdrawWeekday.SATURDAY | AutoWithdrawWeekday.SUNDAY | undefined;
|
|
135
|
+
minuteOfDay: number | undefined;
|
|
136
|
+
minuteOfHour: number | undefined;
|
|
137
|
+
dayOfMonth: number | undefined;
|
|
138
|
+
anchorDate: string | undefined;
|
|
139
|
+
}>]>;
|
|
140
|
+
readonly destinations: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
141
|
+
readonly assetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
|
|
142
|
+
readonly destinationChainId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, number, undefined>]>;
|
|
143
|
+
readonly destinationAddress: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
144
|
+
readonly minAmount: v.StringSchema<undefined>;
|
|
145
|
+
readonly maxAmount: v.StringSchema<undefined>;
|
|
146
|
+
}, undefined>, v.TransformAction<{
|
|
147
|
+
assetId: number;
|
|
148
|
+
destinationChainId: number;
|
|
149
|
+
destinationAddress: string;
|
|
150
|
+
minAmount: string;
|
|
151
|
+
maxAmount: string;
|
|
152
|
+
}, {
|
|
153
|
+
destinationChainId: bigint;
|
|
154
|
+
minAmountE18: U128Value;
|
|
155
|
+
maxAmountE18: U128Value;
|
|
156
|
+
assetId: number;
|
|
157
|
+
destinationAddress: string;
|
|
158
|
+
}>]>, undefined>, v.MinLengthAction<{
|
|
159
|
+
destinationChainId: bigint;
|
|
160
|
+
minAmountE18: U128Value;
|
|
161
|
+
maxAmountE18: U128Value;
|
|
162
|
+
assetId: number;
|
|
163
|
+
destinationAddress: string;
|
|
164
|
+
}[], 1, "At least one destination is required.">, v.MaxLengthAction<{
|
|
165
|
+
destinationChainId: bigint;
|
|
166
|
+
minAmountE18: U128Value;
|
|
167
|
+
maxAmountE18: U128Value;
|
|
168
|
+
assetId: number;
|
|
169
|
+
destinationAddress: string;
|
|
170
|
+
}[], 32, "At most 32 destinations are allowed.">, v.CheckAction<{
|
|
171
|
+
destinationChainId: bigint;
|
|
172
|
+
minAmountE18: U128Value;
|
|
173
|
+
maxAmountE18: U128Value;
|
|
174
|
+
assetId: number;
|
|
175
|
+
destinationAddress: string;
|
|
176
|
+
}[], "At most one destination per asset is allowed.">]>;
|
|
177
|
+
/** Least USD value one payout pays, as a decimal; omit or null for no USD minimum. */
|
|
178
|
+
readonly minUsdValue: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
179
|
+
readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
|
|
180
|
+
readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
181
|
+
}, undefined>], undefined>, undefined>;
|
|
182
|
+
}, undefined>, v.TransformAction<{
|
|
183
|
+
expectedVersion: number;
|
|
184
|
+
schedule: {
|
|
185
|
+
cadence: AutoWithdrawCadence.DAILY | AutoWithdrawCadence.WEEKLY | AutoWithdrawCadence.HOURLY | AutoWithdrawCadence.BIWEEKLY | AutoWithdrawCadence.MONTHLY;
|
|
186
|
+
weekday: AutoWithdrawWeekday.MONDAY | AutoWithdrawWeekday.TUESDAY | AutoWithdrawWeekday.WEDNESDAY | AutoWithdrawWeekday.THURSDAY | AutoWithdrawWeekday.FRIDAY | AutoWithdrawWeekday.SATURDAY | AutoWithdrawWeekday.SUNDAY | undefined;
|
|
187
|
+
minuteOfDay: number | undefined;
|
|
188
|
+
minuteOfHour: number | undefined;
|
|
189
|
+
dayOfMonth: number | undefined;
|
|
190
|
+
anchorDate: string | undefined;
|
|
191
|
+
};
|
|
192
|
+
destinations: {
|
|
193
|
+
destinationChainId: bigint;
|
|
194
|
+
minAmountE18: U128Value;
|
|
195
|
+
maxAmountE18: U128Value;
|
|
196
|
+
assetId: number;
|
|
197
|
+
destinationAddress: string;
|
|
198
|
+
}[];
|
|
199
|
+
minUsdValue?: string | null | undefined;
|
|
200
|
+
account?: "active" | "main" | {
|
|
201
|
+
subaccountId: string;
|
|
202
|
+
} | undefined;
|
|
203
|
+
}, {
|
|
204
|
+
subaccountId: bigint | undefined;
|
|
205
|
+
minUsdValueE18: U128Value | undefined;
|
|
206
|
+
expectedVersion: number;
|
|
207
|
+
schedule: {
|
|
208
|
+
cadence: AutoWithdrawCadence.DAILY | AutoWithdrawCadence.WEEKLY | AutoWithdrawCadence.HOURLY | AutoWithdrawCadence.BIWEEKLY | AutoWithdrawCadence.MONTHLY;
|
|
209
|
+
weekday: AutoWithdrawWeekday.MONDAY | AutoWithdrawWeekday.TUESDAY | AutoWithdrawWeekday.WEDNESDAY | AutoWithdrawWeekday.THURSDAY | AutoWithdrawWeekday.FRIDAY | AutoWithdrawWeekday.SATURDAY | AutoWithdrawWeekday.SUNDAY | undefined;
|
|
210
|
+
minuteOfDay: number | undefined;
|
|
211
|
+
minuteOfHour: number | undefined;
|
|
212
|
+
dayOfMonth: number | undefined;
|
|
213
|
+
anchorDate: string | undefined;
|
|
214
|
+
};
|
|
215
|
+
destinations: {
|
|
216
|
+
destinationChainId: bigint;
|
|
217
|
+
minAmountE18: U128Value;
|
|
218
|
+
maxAmountE18: U128Value;
|
|
219
|
+
assetId: number;
|
|
220
|
+
destinationAddress: string;
|
|
221
|
+
}[];
|
|
222
|
+
}>]>;
|
|
223
|
+
type SetAutoWithdrawRuleInput = v.InferInput<typeof SetAutoWithdrawRuleInputSchema>;
|
|
224
|
+
declare const DisableAutoWithdrawRuleInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
225
|
+
/** The account's latest rule version. */
|
|
226
|
+
readonly expectedVersion: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
|
|
227
|
+
readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
|
|
228
|
+
readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
229
|
+
}, undefined>], undefined>, undefined>;
|
|
230
|
+
}, undefined>, v.TransformAction<{
|
|
231
|
+
expectedVersion: number;
|
|
232
|
+
account?: "active" | "main" | {
|
|
233
|
+
subaccountId: string;
|
|
234
|
+
} | undefined;
|
|
235
|
+
}, {
|
|
236
|
+
subaccountId: bigint | undefined;
|
|
237
|
+
expectedVersion: number;
|
|
238
|
+
}>]>;
|
|
239
|
+
type DisableAutoWithdrawRuleInput = v.InferInput<typeof DisableAutoWithdrawRuleInputSchema>;
|
|
240
|
+
/** `limit` is 0 through 100; 0 or omitted uses the server default of 20. */
|
|
241
|
+
declare const ListAutoWithdrawRunsInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
242
|
+
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>;
|
|
243
|
+
readonly pageToken: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, "">;
|
|
244
|
+
readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
|
|
245
|
+
readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
246
|
+
}, undefined>], undefined>, undefined>;
|
|
247
|
+
}, undefined>, v.TransformAction<{
|
|
248
|
+
limit: number;
|
|
249
|
+
pageToken: string;
|
|
250
|
+
account?: "active" | "main" | {
|
|
251
|
+
subaccountId: string;
|
|
252
|
+
} | undefined;
|
|
253
|
+
}, {
|
|
254
|
+
subaccountId: bigint | undefined;
|
|
255
|
+
limit: number;
|
|
256
|
+
pageToken: string;
|
|
257
|
+
}>]>;
|
|
258
|
+
type ListAutoWithdrawRunsInput = v.InferInput<typeof ListAutoWithdrawRunsInputSchema>;
|
|
259
|
+
type ScheduleShape<Weekday> = {
|
|
260
|
+
cadence: "hourly";
|
|
261
|
+
minuteOfHour: number;
|
|
262
|
+
} | {
|
|
263
|
+
cadence: "daily";
|
|
264
|
+
minuteOfDay: number;
|
|
265
|
+
} | {
|
|
266
|
+
cadence: "weekly";
|
|
267
|
+
weekday: Weekday;
|
|
268
|
+
minuteOfDay: number;
|
|
269
|
+
} | {
|
|
270
|
+
cadence: "biweekly";
|
|
271
|
+
weekday: Weekday;
|
|
272
|
+
minuteOfDay: number;
|
|
273
|
+
anchorDate: string;
|
|
274
|
+
} | {
|
|
275
|
+
cadence: "monthly";
|
|
276
|
+
dayOfMonth: number;
|
|
277
|
+
minuteOfDay: number;
|
|
278
|
+
};
|
|
279
|
+
/** A decoded schedule. A cadence this SDK build does not know decodes as `"unspecified"`. */
|
|
280
|
+
type AutoWithdrawSchedule = ScheduleShape<DecodedEnum<AutoWithdrawWeekday$1>> | {
|
|
281
|
+
cadence: "unspecified";
|
|
282
|
+
};
|
|
283
|
+
declare const AutoWithdrawDestinationSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
284
|
+
readonly assetId: v.NumberSchema<undefined>;
|
|
285
|
+
readonly destinationChainId: v.BigintSchema<undefined>;
|
|
286
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
287
|
+
readonly minAmountE18: v.OptionalSchema<v.ObjectSchema<{
|
|
288
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
289
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
290
|
+
}, undefined>, undefined>;
|
|
291
|
+
readonly maxAmountE18: v.OptionalSchema<v.ObjectSchema<{
|
|
292
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
293
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
294
|
+
}, undefined>, undefined>;
|
|
295
|
+
}, undefined>, v.TransformAction<{
|
|
296
|
+
assetId: number;
|
|
297
|
+
destinationChainId: bigint;
|
|
298
|
+
destinationAddress: string;
|
|
299
|
+
minAmountE18?: {
|
|
300
|
+
hi: bigint;
|
|
301
|
+
lo: bigint;
|
|
302
|
+
} | undefined;
|
|
303
|
+
maxAmountE18?: {
|
|
304
|
+
hi: bigint;
|
|
305
|
+
lo: bigint;
|
|
306
|
+
} | undefined;
|
|
307
|
+
}, {
|
|
308
|
+
destinationChainId: number;
|
|
309
|
+
minAmount: string;
|
|
310
|
+
maxAmount: string;
|
|
311
|
+
assetId: number;
|
|
312
|
+
destinationAddress: string;
|
|
313
|
+
}>]>;
|
|
314
|
+
type AutoWithdrawDestination = v.InferOutput<typeof AutoWithdrawDestinationSchema>;
|
|
315
|
+
declare const AutoWithdrawPauseSchema: v.ObjectSchema<{
|
|
316
|
+
readonly assetId: v.NumberSchema<undefined>;
|
|
317
|
+
readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, AutoWithdrawPauseReason>]>;
|
|
318
|
+
readonly pausedAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
319
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
320
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
321
|
+
}, undefined>, v.TransformAction<{
|
|
322
|
+
seconds: bigint;
|
|
323
|
+
nanos: number;
|
|
324
|
+
}, number>]>;
|
|
325
|
+
}, undefined>;
|
|
326
|
+
type AutoWithdrawPause = v.InferOutput<typeof AutoWithdrawPauseSchema>;
|
|
327
|
+
declare const AutoWithdrawRuleSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
328
|
+
readonly subaccountId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>, 0n>;
|
|
329
|
+
readonly version: v.NumberSchema<undefined>;
|
|
330
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
331
|
+
readonly schedule: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
332
|
+
readonly cadence: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
333
|
+
readonly weekday: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
334
|
+
readonly minuteOfDay: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
335
|
+
readonly minuteOfHour: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
336
|
+
readonly dayOfMonth: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
337
|
+
readonly anchorDate: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
338
|
+
}, undefined>, v.TransformAction<{
|
|
339
|
+
cadence: number;
|
|
340
|
+
weekday: number;
|
|
341
|
+
minuteOfDay: number;
|
|
342
|
+
minuteOfHour: number;
|
|
343
|
+
dayOfMonth: number;
|
|
344
|
+
anchorDate: string;
|
|
345
|
+
}, AutoWithdrawSchedule>]>, undefined>;
|
|
346
|
+
readonly destinations: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
347
|
+
readonly assetId: v.NumberSchema<undefined>;
|
|
348
|
+
readonly destinationChainId: v.BigintSchema<undefined>;
|
|
349
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
350
|
+
readonly minAmountE18: v.OptionalSchema<v.ObjectSchema<{
|
|
351
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
352
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
353
|
+
}, undefined>, undefined>;
|
|
354
|
+
readonly maxAmountE18: v.OptionalSchema<v.ObjectSchema<{
|
|
355
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
356
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
357
|
+
}, undefined>, undefined>;
|
|
358
|
+
}, undefined>, v.TransformAction<{
|
|
359
|
+
assetId: number;
|
|
360
|
+
destinationChainId: bigint;
|
|
361
|
+
destinationAddress: string;
|
|
362
|
+
minAmountE18?: {
|
|
363
|
+
hi: bigint;
|
|
364
|
+
lo: bigint;
|
|
365
|
+
} | undefined;
|
|
366
|
+
maxAmountE18?: {
|
|
367
|
+
hi: bigint;
|
|
368
|
+
lo: bigint;
|
|
369
|
+
} | undefined;
|
|
370
|
+
}, {
|
|
371
|
+
destinationChainId: number;
|
|
372
|
+
minAmount: string;
|
|
373
|
+
maxAmount: string;
|
|
374
|
+
assetId: number;
|
|
375
|
+
destinationAddress: string;
|
|
376
|
+
}>]>, undefined>;
|
|
377
|
+
readonly createdAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
378
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
379
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
380
|
+
}, undefined>, v.TransformAction<{
|
|
381
|
+
seconds: bigint;
|
|
382
|
+
nanos: number;
|
|
383
|
+
}, number>]>;
|
|
384
|
+
readonly pause: v.OptionalSchema<v.ObjectSchema<{
|
|
385
|
+
readonly assetId: v.NumberSchema<undefined>;
|
|
386
|
+
readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, AutoWithdrawPauseReason>]>;
|
|
387
|
+
readonly pausedAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
388
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
389
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
390
|
+
}, undefined>, v.TransformAction<{
|
|
391
|
+
seconds: bigint;
|
|
392
|
+
nanos: number;
|
|
393
|
+
}, number>]>;
|
|
394
|
+
}, undefined>, undefined>;
|
|
395
|
+
readonly minUsdValueE18: v.OptionalSchema<v.ObjectSchema<{
|
|
396
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
397
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
398
|
+
}, undefined>, undefined>;
|
|
399
|
+
}, undefined>, v.TransformAction<{
|
|
400
|
+
subaccountId: string;
|
|
401
|
+
version: number;
|
|
402
|
+
enabled: boolean;
|
|
403
|
+
schedule?: AutoWithdrawSchedule | undefined;
|
|
404
|
+
destinations: {
|
|
405
|
+
destinationChainId: number;
|
|
406
|
+
minAmount: string;
|
|
407
|
+
maxAmount: string;
|
|
408
|
+
assetId: number;
|
|
409
|
+
destinationAddress: string;
|
|
410
|
+
}[];
|
|
411
|
+
createdAt: number;
|
|
412
|
+
pause?: {
|
|
413
|
+
assetId: number;
|
|
414
|
+
reason: AutoWithdrawPauseReason;
|
|
415
|
+
pausedAt: number;
|
|
416
|
+
} | undefined;
|
|
417
|
+
minUsdValueE18?: {
|
|
418
|
+
hi: bigint;
|
|
419
|
+
lo: bigint;
|
|
420
|
+
} | undefined;
|
|
421
|
+
}, {
|
|
422
|
+
schedule: AutoWithdrawSchedule;
|
|
423
|
+
pause: {
|
|
424
|
+
assetId: number;
|
|
425
|
+
reason: AutoWithdrawPauseReason;
|
|
426
|
+
pausedAt: number;
|
|
427
|
+
} | null;
|
|
428
|
+
minUsdValue: string | null;
|
|
429
|
+
subaccountId: string;
|
|
430
|
+
version: number;
|
|
431
|
+
enabled: boolean;
|
|
432
|
+
destinations: {
|
|
433
|
+
destinationChainId: number;
|
|
434
|
+
minAmount: string;
|
|
435
|
+
maxAmount: string;
|
|
436
|
+
assetId: number;
|
|
437
|
+
destinationAddress: string;
|
|
438
|
+
}[];
|
|
439
|
+
createdAt: number;
|
|
440
|
+
}>]>;
|
|
441
|
+
/**
|
|
442
|
+
* 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.
|
|
445
|
+
*/
|
|
446
|
+
type AutoWithdrawRule = v.InferOutput<typeof AutoWithdrawRuleSchema>;
|
|
447
|
+
declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
448
|
+
readonly assetId: v.NumberSchema<undefined>;
|
|
449
|
+
readonly destinationChainId: v.BigintSchema<undefined>;
|
|
450
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
451
|
+
readonly availableE18: v.OptionalSchema<v.ObjectSchema<{
|
|
452
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
453
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
454
|
+
}, undefined>, undefined>;
|
|
455
|
+
readonly amountE18: v.OptionalSchema<v.ObjectSchema<{
|
|
456
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
457
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
458
|
+
}, undefined>, undefined>;
|
|
459
|
+
readonly valueUsdE18: v.OptionalSchema<v.ObjectSchema<{
|
|
460
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
461
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
462
|
+
}, undefined>, undefined>;
|
|
463
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted">]>;
|
|
464
|
+
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
465
|
+
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
466
|
+
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
467
|
+
}, undefined>, v.TransformAction<{
|
|
468
|
+
assetId: number;
|
|
469
|
+
destinationChainId: bigint;
|
|
470
|
+
destinationAddress: string;
|
|
471
|
+
availableE18?: {
|
|
472
|
+
hi: bigint;
|
|
473
|
+
lo: bigint;
|
|
474
|
+
} | undefined;
|
|
475
|
+
amountE18?: {
|
|
476
|
+
hi: bigint;
|
|
477
|
+
lo: bigint;
|
|
478
|
+
} | undefined;
|
|
479
|
+
valueUsdE18?: {
|
|
480
|
+
hi: bigint;
|
|
481
|
+
lo: bigint;
|
|
482
|
+
} | undefined;
|
|
483
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
484
|
+
reason: AutoWithdrawStepReason | null;
|
|
485
|
+
intentId: string;
|
|
486
|
+
txHash: string;
|
|
487
|
+
}, {
|
|
488
|
+
destinationChainId: number;
|
|
489
|
+
available: string;
|
|
490
|
+
amount: string;
|
|
491
|
+
valueUsd: string | null;
|
|
492
|
+
intentId: string | null;
|
|
493
|
+
txHash: string | null;
|
|
494
|
+
assetId: number;
|
|
495
|
+
destinationAddress: string;
|
|
496
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
497
|
+
reason: AutoWithdrawStepReason | null;
|
|
498
|
+
}>]>;
|
|
499
|
+
/**
|
|
500
|
+
* 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.
|
|
502
|
+
*/
|
|
503
|
+
type AutoWithdrawStep = v.InferOutput<typeof AutoWithdrawStepSchema>;
|
|
504
|
+
declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
505
|
+
readonly runSeq: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
506
|
+
readonly ruleVersion: v.NumberSchema<undefined>;
|
|
507
|
+
readonly scheduledFor: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
508
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
509
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
510
|
+
}, undefined>, v.TransformAction<{
|
|
511
|
+
seconds: bigint;
|
|
512
|
+
nanos: number;
|
|
513
|
+
}, number>]>;
|
|
514
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped">]>;
|
|
515
|
+
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawRunReason | null>]>;
|
|
516
|
+
readonly steps: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
517
|
+
readonly assetId: v.NumberSchema<undefined>;
|
|
518
|
+
readonly destinationChainId: v.BigintSchema<undefined>;
|
|
519
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
520
|
+
readonly availableE18: v.OptionalSchema<v.ObjectSchema<{
|
|
521
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
522
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
523
|
+
}, undefined>, undefined>;
|
|
524
|
+
readonly amountE18: v.OptionalSchema<v.ObjectSchema<{
|
|
525
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
526
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
527
|
+
}, undefined>, undefined>;
|
|
528
|
+
readonly valueUsdE18: v.OptionalSchema<v.ObjectSchema<{
|
|
529
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
530
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
531
|
+
}, undefined>, undefined>;
|
|
532
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted">]>;
|
|
533
|
+
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
534
|
+
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
535
|
+
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
536
|
+
}, undefined>, v.TransformAction<{
|
|
537
|
+
assetId: number;
|
|
538
|
+
destinationChainId: bigint;
|
|
539
|
+
destinationAddress: string;
|
|
540
|
+
availableE18?: {
|
|
541
|
+
hi: bigint;
|
|
542
|
+
lo: bigint;
|
|
543
|
+
} | undefined;
|
|
544
|
+
amountE18?: {
|
|
545
|
+
hi: bigint;
|
|
546
|
+
lo: bigint;
|
|
547
|
+
} | undefined;
|
|
548
|
+
valueUsdE18?: {
|
|
549
|
+
hi: bigint;
|
|
550
|
+
lo: bigint;
|
|
551
|
+
} | undefined;
|
|
552
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
553
|
+
reason: AutoWithdrawStepReason | null;
|
|
554
|
+
intentId: string;
|
|
555
|
+
txHash: string;
|
|
556
|
+
}, {
|
|
557
|
+
destinationChainId: number;
|
|
558
|
+
available: string;
|
|
559
|
+
amount: string;
|
|
560
|
+
valueUsd: string | null;
|
|
561
|
+
intentId: string | null;
|
|
562
|
+
txHash: string | null;
|
|
563
|
+
assetId: number;
|
|
564
|
+
destinationAddress: string;
|
|
565
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
566
|
+
reason: AutoWithdrawStepReason | null;
|
|
567
|
+
}>]>, undefined>;
|
|
568
|
+
readonly createdAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
569
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
570
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
571
|
+
}, undefined>, v.TransformAction<{
|
|
572
|
+
seconds: bigint;
|
|
573
|
+
nanos: number;
|
|
574
|
+
}, number>]>;
|
|
575
|
+
readonly finishedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
576
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
577
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
578
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
579
|
+
seconds: bigint;
|
|
580
|
+
nanos: number;
|
|
581
|
+
} | undefined, number | undefined>]>;
|
|
582
|
+
}, undefined>, v.TransformAction<{
|
|
583
|
+
runSeq: string;
|
|
584
|
+
ruleVersion: number;
|
|
585
|
+
scheduledFor: number;
|
|
586
|
+
state: "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped";
|
|
587
|
+
reason: AutoWithdrawRunReason | null;
|
|
588
|
+
steps: {
|
|
589
|
+
destinationChainId: number;
|
|
590
|
+
available: string;
|
|
591
|
+
amount: string;
|
|
592
|
+
valueUsd: string | null;
|
|
593
|
+
intentId: string | null;
|
|
594
|
+
txHash: string | null;
|
|
595
|
+
assetId: number;
|
|
596
|
+
destinationAddress: string;
|
|
597
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
598
|
+
reason: AutoWithdrawStepReason | null;
|
|
599
|
+
}[];
|
|
600
|
+
createdAt: number;
|
|
601
|
+
finishedAt?: number | undefined;
|
|
602
|
+
}, {
|
|
603
|
+
finishedAt: number | null;
|
|
604
|
+
runSeq: string;
|
|
605
|
+
ruleVersion: number;
|
|
606
|
+
scheduledFor: number;
|
|
607
|
+
state: "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped";
|
|
608
|
+
reason: AutoWithdrawRunReason | null;
|
|
609
|
+
steps: {
|
|
610
|
+
destinationChainId: number;
|
|
611
|
+
available: string;
|
|
612
|
+
amount: string;
|
|
613
|
+
valueUsd: string | null;
|
|
614
|
+
intentId: string | null;
|
|
615
|
+
txHash: string | null;
|
|
616
|
+
assetId: number;
|
|
617
|
+
destinationAddress: string;
|
|
618
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
619
|
+
reason: AutoWithdrawStepReason | null;
|
|
620
|
+
}[];
|
|
621
|
+
createdAt: number;
|
|
622
|
+
}>]>;
|
|
623
|
+
/** One scheduled run. Times are epoch milliseconds; `finishedAt` is null while in progress. */
|
|
624
|
+
type AutoWithdrawRun = v.InferOutput<typeof AutoWithdrawRunSchema>;
|
|
625
|
+
declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
626
|
+
readonly runs: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
627
|
+
readonly runSeq: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
628
|
+
readonly ruleVersion: v.NumberSchema<undefined>;
|
|
629
|
+
readonly scheduledFor: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
630
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
631
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
632
|
+
}, undefined>, v.TransformAction<{
|
|
633
|
+
seconds: bigint;
|
|
634
|
+
nanos: number;
|
|
635
|
+
}, number>]>;
|
|
636
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped">]>;
|
|
637
|
+
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawRunReason | null>]>;
|
|
638
|
+
readonly steps: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
639
|
+
readonly assetId: v.NumberSchema<undefined>;
|
|
640
|
+
readonly destinationChainId: v.BigintSchema<undefined>;
|
|
641
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
642
|
+
readonly availableE18: v.OptionalSchema<v.ObjectSchema<{
|
|
643
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
644
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
645
|
+
}, undefined>, undefined>;
|
|
646
|
+
readonly amountE18: v.OptionalSchema<v.ObjectSchema<{
|
|
647
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
648
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
649
|
+
}, undefined>, undefined>;
|
|
650
|
+
readonly valueUsdE18: v.OptionalSchema<v.ObjectSchema<{
|
|
651
|
+
readonly hi: v.BigintSchema<undefined>;
|
|
652
|
+
readonly lo: v.BigintSchema<undefined>;
|
|
653
|
+
}, undefined>, undefined>;
|
|
654
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted">]>;
|
|
655
|
+
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
656
|
+
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
657
|
+
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
658
|
+
}, undefined>, v.TransformAction<{
|
|
659
|
+
assetId: number;
|
|
660
|
+
destinationChainId: bigint;
|
|
661
|
+
destinationAddress: string;
|
|
662
|
+
availableE18?: {
|
|
663
|
+
hi: bigint;
|
|
664
|
+
lo: bigint;
|
|
665
|
+
} | undefined;
|
|
666
|
+
amountE18?: {
|
|
667
|
+
hi: bigint;
|
|
668
|
+
lo: bigint;
|
|
669
|
+
} | undefined;
|
|
670
|
+
valueUsdE18?: {
|
|
671
|
+
hi: bigint;
|
|
672
|
+
lo: bigint;
|
|
673
|
+
} | undefined;
|
|
674
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
675
|
+
reason: AutoWithdrawStepReason | null;
|
|
676
|
+
intentId: string;
|
|
677
|
+
txHash: string;
|
|
678
|
+
}, {
|
|
679
|
+
destinationChainId: number;
|
|
680
|
+
available: string;
|
|
681
|
+
amount: string;
|
|
682
|
+
valueUsd: string | null;
|
|
683
|
+
intentId: string | null;
|
|
684
|
+
txHash: string | null;
|
|
685
|
+
assetId: number;
|
|
686
|
+
destinationAddress: string;
|
|
687
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
688
|
+
reason: AutoWithdrawStepReason | null;
|
|
689
|
+
}>]>, undefined>;
|
|
690
|
+
readonly createdAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
691
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
692
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
693
|
+
}, undefined>, v.TransformAction<{
|
|
694
|
+
seconds: bigint;
|
|
695
|
+
nanos: number;
|
|
696
|
+
}, number>]>;
|
|
697
|
+
readonly finishedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
698
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
699
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
700
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
701
|
+
seconds: bigint;
|
|
702
|
+
nanos: number;
|
|
703
|
+
} | undefined, number | undefined>]>;
|
|
704
|
+
}, undefined>, v.TransformAction<{
|
|
705
|
+
runSeq: string;
|
|
706
|
+
ruleVersion: number;
|
|
707
|
+
scheduledFor: number;
|
|
708
|
+
state: "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped";
|
|
709
|
+
reason: AutoWithdrawRunReason | null;
|
|
710
|
+
steps: {
|
|
711
|
+
destinationChainId: number;
|
|
712
|
+
available: string;
|
|
713
|
+
amount: string;
|
|
714
|
+
valueUsd: string | null;
|
|
715
|
+
intentId: string | null;
|
|
716
|
+
txHash: string | null;
|
|
717
|
+
assetId: number;
|
|
718
|
+
destinationAddress: string;
|
|
719
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
720
|
+
reason: AutoWithdrawStepReason | null;
|
|
721
|
+
}[];
|
|
722
|
+
createdAt: number;
|
|
723
|
+
finishedAt?: number | undefined;
|
|
724
|
+
}, {
|
|
725
|
+
finishedAt: number | null;
|
|
726
|
+
runSeq: string;
|
|
727
|
+
ruleVersion: number;
|
|
728
|
+
scheduledFor: number;
|
|
729
|
+
state: "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped";
|
|
730
|
+
reason: AutoWithdrawRunReason | null;
|
|
731
|
+
steps: {
|
|
732
|
+
destinationChainId: number;
|
|
733
|
+
available: string;
|
|
734
|
+
amount: string;
|
|
735
|
+
valueUsd: string | null;
|
|
736
|
+
intentId: string | null;
|
|
737
|
+
txHash: string | null;
|
|
738
|
+
assetId: number;
|
|
739
|
+
destinationAddress: string;
|
|
740
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
741
|
+
reason: AutoWithdrawStepReason | null;
|
|
742
|
+
}[];
|
|
743
|
+
createdAt: number;
|
|
744
|
+
}>]>, undefined>;
|
|
745
|
+
readonly nextPageToken: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
746
|
+
}, undefined>;
|
|
747
|
+
/** One page of runs, newest first. An empty `nextPageToken` means no more runs. */
|
|
748
|
+
type ListAutoWithdrawRunsResult = v.InferOutput<typeof ListAutoWithdrawRunsResultSchema>;
|
|
749
|
+
//#endregion
|
|
750
|
+
export { AutoWithdrawDestination, AutoWithdrawDestinationInput, AutoWithdrawPause, AutoWithdrawRule, AutoWithdrawRuleSchema, AutoWithdrawRun, AutoWithdrawSchedule, AutoWithdrawScheduleInput, AutoWithdrawScheduleInputSchema, AutoWithdrawScopedInput, AutoWithdrawStep, DisableAutoWithdrawRuleInput, DisableAutoWithdrawRuleInputSchema, ListAutoWithdrawRunsInput, ListAutoWithdrawRunsInputSchema, ListAutoWithdrawRunsResult, ListAutoWithdrawRunsResultSchema, SetAutoWithdrawRuleInput, SetAutoWithdrawRuleInputSchema };
|
|
751
|
+
//# sourceMappingURL=auto-withdraw.schemas.d.ts.map
|