@chainflip/rpc 1.11.0-beta.3 → 1.11.0-beta.4
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/dist/common.d.cts +1091 -1088
- package/dist/common.d.ts +1091 -1088
- package/dist/parsers.cjs +8 -8
- package/dist/parsers.d.cts +1262 -1256
- package/dist/parsers.d.ts +1262 -1256
- package/dist/parsers.mjs +8 -8
- package/package.json +1 -1
package/dist/parsers.cjs
CHANGED
|
@@ -205,6 +205,7 @@ var requestSwapParameterEncoding = _zod.z.discriminatedUnion("chain", [
|
|
|
205
205
|
)
|
|
206
206
|
})
|
|
207
207
|
]);
|
|
208
|
+
var accountId = _zod.z.string().refine((val) => val.startsWith("cF"));
|
|
208
209
|
var unregistered = _zod.z.object({
|
|
209
210
|
role: _zod.z.literal("unregistered"),
|
|
210
211
|
flip_balance: numberOrHex,
|
|
@@ -216,21 +217,19 @@ var broker = _zod.z.object({
|
|
|
216
217
|
flip_balance: numberOrHex,
|
|
217
218
|
earned_fees: chainAssetMapFactory(numberOrHex, 0),
|
|
218
219
|
btc_vault_deposit_address: _zod.z.string().nullable().optional(),
|
|
219
|
-
affiliates: _zod.z.array(
|
|
220
|
-
_zod.z.object({ account_id: _zod.z.string(), short_id: _zod.z.number(), withdrawal_address: hexString })
|
|
221
|
-
).optional().default([])
|
|
220
|
+
affiliates: _zod.z.array(_zod.z.object({ account_id: accountId, short_id: _zod.z.number(), withdrawal_address: hexString })).optional().default([])
|
|
222
221
|
});
|
|
223
222
|
var operator = _zod.z.object({
|
|
224
223
|
flip_balance: numberOrHex,
|
|
225
224
|
role: _zod.z.literal("operator"),
|
|
226
|
-
managed_validators: _zod.z.record(
|
|
227
|
-
delegators: _zod.z.record(
|
|
225
|
+
managed_validators: _zod.z.record(accountId, numberOrHex),
|
|
226
|
+
delegators: _zod.z.record(accountId, numberOrHex),
|
|
228
227
|
settings: _zod.z.object({
|
|
229
228
|
fee_bps: _zod.z.number(),
|
|
230
229
|
delegation_acceptance: _zod.z.enum(["Allow", "Deny"])
|
|
231
230
|
}),
|
|
232
|
-
allowed: _zod.z.array(
|
|
233
|
-
blocked: _zod.z.array(
|
|
231
|
+
allowed: _zod.z.array(accountId).optional().default([]),
|
|
232
|
+
blocked: _zod.z.array(accountId).optional().default([])
|
|
234
233
|
});
|
|
235
234
|
var boostBalances = _zod.z.array(
|
|
236
235
|
_zod.z.object({
|
|
@@ -264,7 +263,8 @@ var validator = _zod.z.object({
|
|
|
264
263
|
bound_redeem_address: hexString.nullable(),
|
|
265
264
|
apy_bp: _zod.z.number().nullable(),
|
|
266
265
|
restricted_balances: _zod.z.record(hexString, numberOrHex),
|
|
267
|
-
estimated_redeemable_balance: numberOrHex
|
|
266
|
+
estimated_redeemable_balance: numberOrHex,
|
|
267
|
+
operator: accountId.optional()
|
|
268
268
|
});
|
|
269
269
|
var cfAccountInfo = _zod.z.discriminatedUnion("role", [
|
|
270
270
|
unregistered,
|