@chainflip/rpc 1.8.1 → 1.8.2

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/parsers.cjs CHANGED
@@ -191,7 +191,7 @@ var broker = _zod.z.object({
191
191
  role: _zod.z.literal("broker"),
192
192
  flip_balance: numberOrHex,
193
193
  earned_fees: chainAssetMapFactory(numberOrHex, 0),
194
- btc_vault_deposit_address: _zod.z.string().nullable()
194
+ btc_vault_deposit_address: _zod.z.string().nullable().optional()
195
195
  });
196
196
  var boostBalances = _zod.z.array(
197
197
  _zod.z.object({
@@ -226,7 +226,12 @@ var validator = _zod.z.object({
226
226
  apy_bp: _zod.z.number().nullable(),
227
227
  restricted_balances: _zod.z.record(hexString, numberOrHex)
228
228
  });
229
- var cfAccountInfo = _zod.z.union([unregistered, broker, liquidityProvider, validator]);
229
+ var cfAccountInfo = _zod.z.discriminatedUnion("role", [
230
+ unregistered,
231
+ broker,
232
+ liquidityProvider,
233
+ validator
234
+ ]);
230
235
  var cfAccounts = _zod.z.array(_zod.z.tuple([_zod.z.string(), _zod.z.string()]));
231
236
  var cfPoolPriceV2 = _zod.z.object({
232
237
  sell: numberOrHex.nullable(),