@chainflip/rpc 1.8.9 → 1.8.11

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.d.ts CHANGED
@@ -11775,15 +11775,154 @@ declare const requestSwapParameterEncoding: z.ZodDiscriminatedUnion<"chain", [z.
11775
11775
  declare const unregistered: z.ZodObject<{
11776
11776
  role: z.ZodLiteral<"unregistered">;
11777
11777
  flip_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
11778
+ asset_balances: z.ZodObject<{
11779
+ Bitcoin: z.ZodObject<{
11780
+ BTC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
11781
+ }, "strip", z.ZodTypeAny, {
11782
+ BTC: bigint;
11783
+ }, {
11784
+ BTC: string | number;
11785
+ }>;
11786
+ Ethereum: z.ZodObject<{
11787
+ ETH: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
11788
+ USDC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
11789
+ FLIP: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
11790
+ USDT: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
11791
+ }, "strip", z.ZodTypeAny, {
11792
+ ETH: bigint;
11793
+ USDC: bigint;
11794
+ FLIP: bigint;
11795
+ USDT: bigint;
11796
+ }, {
11797
+ ETH: string | number;
11798
+ USDC: string | number;
11799
+ FLIP: string | number;
11800
+ USDT: string | number;
11801
+ }>;
11802
+ Polkadot: z.ZodObject<{
11803
+ DOT: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
11804
+ }, "strip", z.ZodTypeAny, {
11805
+ DOT: bigint;
11806
+ }, {
11807
+ DOT: string | number;
11808
+ }>;
11809
+ Arbitrum: z.ZodObject<{
11810
+ ETH: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
11811
+ USDC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
11812
+ }, "strip", z.ZodTypeAny, {
11813
+ ETH: bigint;
11814
+ USDC: bigint;
11815
+ }, {
11816
+ ETH: string | number;
11817
+ USDC: string | number;
11818
+ }>;
11819
+ Solana: z.ZodObject<{
11820
+ SOL: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
11821
+ USDC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
11822
+ }, "strip", z.ZodTypeAny, {
11823
+ USDC: bigint;
11824
+ SOL: bigint;
11825
+ }, {
11826
+ USDC: string | number;
11827
+ SOL: string | number;
11828
+ }>;
11829
+ }, "strip", z.ZodTypeAny, {
11830
+ Bitcoin: {
11831
+ BTC: bigint;
11832
+ };
11833
+ Ethereum: {
11834
+ ETH: bigint;
11835
+ USDC: bigint;
11836
+ FLIP: bigint;
11837
+ USDT: bigint;
11838
+ };
11839
+ Arbitrum: {
11840
+ ETH: bigint;
11841
+ USDC: bigint;
11842
+ };
11843
+ Solana: {
11844
+ USDC: bigint;
11845
+ SOL: bigint;
11846
+ };
11847
+ Polkadot: {
11848
+ DOT: bigint;
11849
+ };
11850
+ }, {
11851
+ Bitcoin: {
11852
+ BTC: string | number;
11853
+ };
11854
+ Ethereum: {
11855
+ ETH: string | number;
11856
+ USDC: string | number;
11857
+ FLIP: string | number;
11858
+ USDT: string | number;
11859
+ };
11860
+ Arbitrum: {
11861
+ ETH: string | number;
11862
+ USDC: string | number;
11863
+ };
11864
+ Solana: {
11865
+ USDC: string | number;
11866
+ SOL: string | number;
11867
+ };
11868
+ Polkadot: {
11869
+ DOT: string | number;
11870
+ };
11871
+ }>;
11778
11872
  }, "strip", z.ZodTypeAny, {
11779
11873
  role: "unregistered";
11780
11874
  flip_balance: bigint;
11875
+ asset_balances: {
11876
+ Bitcoin: {
11877
+ BTC: bigint;
11878
+ };
11879
+ Ethereum: {
11880
+ ETH: bigint;
11881
+ USDC: bigint;
11882
+ FLIP: bigint;
11883
+ USDT: bigint;
11884
+ };
11885
+ Arbitrum: {
11886
+ ETH: bigint;
11887
+ USDC: bigint;
11888
+ };
11889
+ Solana: {
11890
+ USDC: bigint;
11891
+ SOL: bigint;
11892
+ };
11893
+ Polkadot: {
11894
+ DOT: bigint;
11895
+ };
11896
+ };
11781
11897
  }, {
11782
11898
  role: "unregistered";
11783
11899
  flip_balance: string | number;
11900
+ asset_balances: {
11901
+ Bitcoin: {
11902
+ BTC: string | number;
11903
+ };
11904
+ Ethereum: {
11905
+ ETH: string | number;
11906
+ USDC: string | number;
11907
+ FLIP: string | number;
11908
+ USDT: string | number;
11909
+ };
11910
+ Arbitrum: {
11911
+ ETH: string | number;
11912
+ USDC: string | number;
11913
+ };
11914
+ Solana: {
11915
+ USDC: string | number;
11916
+ SOL: string | number;
11917
+ };
11918
+ Polkadot: {
11919
+ DOT: string | number;
11920
+ };
11921
+ };
11784
11922
  }>;
11785
11923
  declare const broker: z.ZodObject<{
11786
11924
  role: z.ZodLiteral<"broker">;
11925
+ bond: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
11787
11926
  flip_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
11788
11927
  earned_fees: z.ZodObject<{
11789
11928
  Bitcoin: z.ZodObject<{
@@ -11880,9 +12019,23 @@ declare const broker: z.ZodObject<{
11880
12019
  };
11881
12020
  }>;
11882
12021
  btc_vault_deposit_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12022
+ affiliates: z.ZodArray<z.ZodObject<{
12023
+ account_id: z.ZodString;
12024
+ short_id: z.ZodNumber;
12025
+ withdrawal_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
12026
+ }, "strip", z.ZodTypeAny, {
12027
+ account_id: string;
12028
+ short_id: number;
12029
+ withdrawal_address: `0x${string}`;
12030
+ }, {
12031
+ account_id: string;
12032
+ short_id: number;
12033
+ withdrawal_address: string;
12034
+ }>, "many">;
11883
12035
  }, "strip", z.ZodTypeAny, {
11884
12036
  role: "broker";
11885
12037
  flip_balance: bigint;
12038
+ bond: bigint;
11886
12039
  earned_fees: {
11887
12040
  Bitcoin: {
11888
12041
  BTC: bigint;
@@ -11905,10 +12058,16 @@ declare const broker: z.ZodObject<{
11905
12058
  DOT: bigint;
11906
12059
  };
11907
12060
  };
12061
+ affiliates: {
12062
+ account_id: string;
12063
+ short_id: number;
12064
+ withdrawal_address: `0x${string}`;
12065
+ }[];
11908
12066
  btc_vault_deposit_address?: string | null | undefined;
11909
12067
  }, {
11910
12068
  role: "broker";
11911
12069
  flip_balance: string | number;
12070
+ bond: string | number;
11912
12071
  earned_fees: {
11913
12072
  Bitcoin: {
11914
12073
  BTC: string | number;
@@ -11931,6 +12090,11 @@ declare const broker: z.ZodObject<{
11931
12090
  DOT: string | number;
11932
12091
  };
11933
12092
  };
12093
+ affiliates: {
12094
+ account_id: string;
12095
+ short_id: number;
12096
+ withdrawal_address: string;
12097
+ }[];
11934
12098
  btc_vault_deposit_address?: string | null | undefined;
11935
12099
  }>;
11936
12100
  declare const liquidityProvider: z.ZodObject<{
@@ -12979,14 +13143,153 @@ declare const validator: z.ZodObject<{
12979
13143
  declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
12980
13144
  role: z.ZodLiteral<"unregistered">;
12981
13145
  flip_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
13146
+ asset_balances: z.ZodObject<{
13147
+ Bitcoin: z.ZodObject<{
13148
+ BTC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
13149
+ }, "strip", z.ZodTypeAny, {
13150
+ BTC: bigint;
13151
+ }, {
13152
+ BTC: string | number;
13153
+ }>;
13154
+ Ethereum: z.ZodObject<{
13155
+ ETH: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
13156
+ USDC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
13157
+ FLIP: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
13158
+ USDT: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
13159
+ }, "strip", z.ZodTypeAny, {
13160
+ ETH: bigint;
13161
+ USDC: bigint;
13162
+ FLIP: bigint;
13163
+ USDT: bigint;
13164
+ }, {
13165
+ ETH: string | number;
13166
+ USDC: string | number;
13167
+ FLIP: string | number;
13168
+ USDT: string | number;
13169
+ }>;
13170
+ Polkadot: z.ZodObject<{
13171
+ DOT: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
13172
+ }, "strip", z.ZodTypeAny, {
13173
+ DOT: bigint;
13174
+ }, {
13175
+ DOT: string | number;
13176
+ }>;
13177
+ Arbitrum: z.ZodObject<{
13178
+ ETH: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
13179
+ USDC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
13180
+ }, "strip", z.ZodTypeAny, {
13181
+ ETH: bigint;
13182
+ USDC: bigint;
13183
+ }, {
13184
+ ETH: string | number;
13185
+ USDC: string | number;
13186
+ }>;
13187
+ Solana: z.ZodObject<{
13188
+ SOL: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
13189
+ USDC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
13190
+ }, "strip", z.ZodTypeAny, {
13191
+ USDC: bigint;
13192
+ SOL: bigint;
13193
+ }, {
13194
+ USDC: string | number;
13195
+ SOL: string | number;
13196
+ }>;
13197
+ }, "strip", z.ZodTypeAny, {
13198
+ Bitcoin: {
13199
+ BTC: bigint;
13200
+ };
13201
+ Ethereum: {
13202
+ ETH: bigint;
13203
+ USDC: bigint;
13204
+ FLIP: bigint;
13205
+ USDT: bigint;
13206
+ };
13207
+ Arbitrum: {
13208
+ ETH: bigint;
13209
+ USDC: bigint;
13210
+ };
13211
+ Solana: {
13212
+ USDC: bigint;
13213
+ SOL: bigint;
13214
+ };
13215
+ Polkadot: {
13216
+ DOT: bigint;
13217
+ };
13218
+ }, {
13219
+ Bitcoin: {
13220
+ BTC: string | number;
13221
+ };
13222
+ Ethereum: {
13223
+ ETH: string | number;
13224
+ USDC: string | number;
13225
+ FLIP: string | number;
13226
+ USDT: string | number;
13227
+ };
13228
+ Arbitrum: {
13229
+ ETH: string | number;
13230
+ USDC: string | number;
13231
+ };
13232
+ Solana: {
13233
+ USDC: string | number;
13234
+ SOL: string | number;
13235
+ };
13236
+ Polkadot: {
13237
+ DOT: string | number;
13238
+ };
13239
+ }>;
12982
13240
  }, "strip", z.ZodTypeAny, {
12983
13241
  role: "unregistered";
12984
13242
  flip_balance: bigint;
13243
+ asset_balances: {
13244
+ Bitcoin: {
13245
+ BTC: bigint;
13246
+ };
13247
+ Ethereum: {
13248
+ ETH: bigint;
13249
+ USDC: bigint;
13250
+ FLIP: bigint;
13251
+ USDT: bigint;
13252
+ };
13253
+ Arbitrum: {
13254
+ ETH: bigint;
13255
+ USDC: bigint;
13256
+ };
13257
+ Solana: {
13258
+ USDC: bigint;
13259
+ SOL: bigint;
13260
+ };
13261
+ Polkadot: {
13262
+ DOT: bigint;
13263
+ };
13264
+ };
12985
13265
  }, {
12986
13266
  role: "unregistered";
12987
13267
  flip_balance: string | number;
13268
+ asset_balances: {
13269
+ Bitcoin: {
13270
+ BTC: string | number;
13271
+ };
13272
+ Ethereum: {
13273
+ ETH: string | number;
13274
+ USDC: string | number;
13275
+ FLIP: string | number;
13276
+ USDT: string | number;
13277
+ };
13278
+ Arbitrum: {
13279
+ ETH: string | number;
13280
+ USDC: string | number;
13281
+ };
13282
+ Solana: {
13283
+ USDC: string | number;
13284
+ SOL: string | number;
13285
+ };
13286
+ Polkadot: {
13287
+ DOT: string | number;
13288
+ };
13289
+ };
12988
13290
  }>, z.ZodObject<{
12989
13291
  role: z.ZodLiteral<"broker">;
13292
+ bond: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
12990
13293
  flip_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
12991
13294
  earned_fees: z.ZodObject<{
12992
13295
  Bitcoin: z.ZodObject<{
@@ -13083,9 +13386,23 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
13083
13386
  };
13084
13387
  }>;
13085
13388
  btc_vault_deposit_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13389
+ affiliates: z.ZodArray<z.ZodObject<{
13390
+ account_id: z.ZodString;
13391
+ short_id: z.ZodNumber;
13392
+ withdrawal_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
13393
+ }, "strip", z.ZodTypeAny, {
13394
+ account_id: string;
13395
+ short_id: number;
13396
+ withdrawal_address: `0x${string}`;
13397
+ }, {
13398
+ account_id: string;
13399
+ short_id: number;
13400
+ withdrawal_address: string;
13401
+ }>, "many">;
13086
13402
  }, "strip", z.ZodTypeAny, {
13087
13403
  role: "broker";
13088
13404
  flip_balance: bigint;
13405
+ bond: bigint;
13089
13406
  earned_fees: {
13090
13407
  Bitcoin: {
13091
13408
  BTC: bigint;
@@ -13108,10 +13425,16 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
13108
13425
  DOT: bigint;
13109
13426
  };
13110
13427
  };
13428
+ affiliates: {
13429
+ account_id: string;
13430
+ short_id: number;
13431
+ withdrawal_address: `0x${string}`;
13432
+ }[];
13111
13433
  btc_vault_deposit_address?: string | null | undefined;
13112
13434
  }, {
13113
13435
  role: "broker";
13114
13436
  flip_balance: string | number;
13437
+ bond: string | number;
13115
13438
  earned_fees: {
13116
13439
  Bitcoin: {
13117
13440
  BTC: string | number;
@@ -13134,6 +13457,11 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
13134
13457
  DOT: string | number;
13135
13458
  };
13136
13459
  };
13460
+ affiliates: {
13461
+ account_id: string;
13462
+ short_id: number;
13463
+ withdrawal_address: string;
13464
+ }[];
13137
13465
  btc_vault_deposit_address?: string | null | undefined;
13138
13466
  }>, z.ZodObject<{
13139
13467
  role: z.ZodLiteral<"liquidity_provider">;
@@ -14998,11 +15326,11 @@ declare const cfBoostPoolDetails: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.Zod
14998
15326
  account_id: z.ZodString;
14999
15327
  amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
15000
15328
  }, "strip", z.ZodTypeAny, {
15001
- amount: bigint;
15002
15329
  account_id: string;
15330
+ amount: bigint;
15003
15331
  }, {
15004
- amount: string;
15005
15332
  account_id: string;
15333
+ amount: string;
15006
15334
  }>, "many">;
15007
15335
  deposits_pending_finalization: z.ZodArray<z.ZodObject<{
15008
15336
  deposit_id: z.ZodEffects<z.ZodNumber, bigint, number>;
@@ -15010,23 +15338,23 @@ declare const cfBoostPoolDetails: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.Zod
15010
15338
  account_id: z.ZodString;
15011
15339
  amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
15012
15340
  }, "strip", z.ZodTypeAny, {
15013
- amount: bigint;
15014
15341
  account_id: string;
15342
+ amount: bigint;
15015
15343
  }, {
15016
- amount: string;
15017
15344
  account_id: string;
15345
+ amount: string;
15018
15346
  }>, "many">;
15019
15347
  }, "strip", z.ZodTypeAny, {
15020
15348
  deposit_id: bigint;
15021
15349
  owed_amounts: {
15022
- amount: bigint;
15023
15350
  account_id: string;
15351
+ amount: bigint;
15024
15352
  }[];
15025
15353
  }, {
15026
15354
  deposit_id: number;
15027
15355
  owed_amounts: {
15028
- amount: string;
15029
15356
  account_id: string;
15357
+ amount: string;
15030
15358
  }[];
15031
15359
  }>, "many">;
15032
15360
  pending_withdrawals: z.ZodArray<z.ZodObject<{
@@ -15043,14 +15371,14 @@ declare const cfBoostPoolDetails: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.Zod
15043
15371
  }, "strip", z.ZodTypeAny, {
15044
15372
  fee_tier: number;
15045
15373
  available_amounts: {
15046
- amount: bigint;
15047
15374
  account_id: string;
15375
+ amount: bigint;
15048
15376
  }[];
15049
15377
  deposits_pending_finalization: {
15050
15378
  deposit_id: bigint;
15051
15379
  owed_amounts: {
15052
- amount: bigint;
15053
15380
  account_id: string;
15381
+ amount: bigint;
15054
15382
  }[];
15055
15383
  }[];
15056
15384
  pending_withdrawals: {
@@ -15061,14 +15389,14 @@ declare const cfBoostPoolDetails: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.Zod
15061
15389
  }, {
15062
15390
  fee_tier: number;
15063
15391
  available_amounts: {
15064
- amount: string;
15065
15392
  account_id: string;
15393
+ amount: string;
15066
15394
  }[];
15067
15395
  deposits_pending_finalization: {
15068
15396
  deposit_id: number;
15069
15397
  owed_amounts: {
15070
- amount: string;
15071
15398
  account_id: string;
15399
+ amount: string;
15072
15400
  }[];
15073
15401
  }[];
15074
15402
  pending_withdrawals: {
@@ -15175,22 +15503,22 @@ declare const cfBoostPoolPendingFees: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z
15175
15503
  account_id: z.ZodString;
15176
15504
  amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
15177
15505
  }, "strip", z.ZodTypeAny, {
15178
- amount: bigint;
15179
15506
  account_id: string;
15507
+ amount: bigint;
15180
15508
  }, {
15181
- amount: string;
15182
15509
  account_id: string;
15510
+ amount: string;
15183
15511
  }>, "many">;
15184
15512
  }, "strip", z.ZodTypeAny, {
15185
15513
  fees: {
15186
- amount: bigint;
15187
15514
  account_id: string;
15515
+ amount: bigint;
15188
15516
  }[];
15189
15517
  deposit_id: bigint;
15190
15518
  }, {
15191
15519
  fees: {
15192
- amount: string;
15193
15520
  account_id: string;
15521
+ amount: string;
15194
15522
  }[];
15195
15523
  deposit_id: number;
15196
15524
  }>, "many">;
@@ -15198,8 +15526,8 @@ declare const cfBoostPoolPendingFees: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z
15198
15526
  fee_tier: number;
15199
15527
  pending_fees: {
15200
15528
  fees: {
15201
- amount: bigint;
15202
15529
  account_id: string;
15530
+ amount: bigint;
15203
15531
  }[];
15204
15532
  deposit_id: bigint;
15205
15533
  }[];
@@ -15207,8 +15535,8 @@ declare const cfBoostPoolPendingFees: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z
15207
15535
  fee_tier: number;
15208
15536
  pending_fees: {
15209
15537
  fees: {
15210
- amount: string;
15211
15538
  account_id: string;
15539
+ amount: string;
15212
15540
  }[];
15213
15541
  deposit_id: number;
15214
15542
  }[];
@@ -15307,5 +15635,42 @@ declare const lpTotalBalances: z.ZodObject<{
15307
15635
  DOT: string | number;
15308
15636
  };
15309
15637
  }>;
15638
+ declare const cfFailedCallEvm: z.ZodObject<{
15639
+ contract: z.ZodEffects<z.ZodString, `0x${string}`, string>;
15640
+ data: z.ZodString;
15641
+ }, "strip", z.ZodTypeAny, {
15642
+ data: string;
15643
+ contract: `0x${string}`;
15644
+ }, {
15645
+ data: string;
15646
+ contract: string;
15647
+ }>;
15648
+ declare const cfAuctionState: z.ZodObject<{
15649
+ blocks_per_epoch: z.ZodNumber;
15650
+ current_epoch_started_at: z.ZodNumber;
15651
+ redemption_period_as_percentage: z.ZodNumber;
15652
+ min_funding: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
15653
+ auction_size_range: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
15654
+ min_active_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
15655
+ }, "strip", z.ZodTypeAny, {
15656
+ blocks_per_epoch: number;
15657
+ current_epoch_started_at: number;
15658
+ redemption_period_as_percentage: number;
15659
+ min_funding: bigint;
15660
+ auction_size_range: [number, number];
15661
+ min_active_bid: bigint;
15662
+ }, {
15663
+ blocks_per_epoch: number;
15664
+ current_epoch_started_at: number;
15665
+ redemption_period_as_percentage: number;
15666
+ min_funding: string | number;
15667
+ auction_size_range: [number, number];
15668
+ min_active_bid: string | number;
15669
+ }>;
15670
+ declare const cfFlipSuppy: z.ZodEffects<z.ZodTuple<[z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>], null>, {
15671
+ totalIssuance: bigint;
15672
+ offchainFunds: bigint;
15673
+ }, [string | number, string | number]>;
15674
+ declare const ethereumAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
15310
15675
 
15311
- export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFundingEnvironment, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, chainGetBlockHash, hexString, liquidityProvider, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
15676
+ export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
package/dist/parsers.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/parsers.ts
2
- import { isNotNullish } from "@chainflip/utils/guard";
2
+ import { isUndefined } from "@chainflip/utils/guard";
3
3
  import { isHex } from "@chainflip/utils/string";
4
4
  import { z } from "zod";
5
5
  var hexString = z.string().refine(isHex, { message: "Invalid hex string" });
@@ -48,8 +48,8 @@ var rpcBaseResponse = z.object({
48
48
  id: z.string(),
49
49
  jsonrpc: z.literal("2.0")
50
50
  });
51
- var nonNullish = z.any().refine(isNotNullish, { message: "Value must not be null or undefined" });
52
- var rpcSuccessResponse = rpcBaseResponse.extend({ result: nonNullish });
51
+ var notUndefined = z.any().refine((v) => !isUndefined(v), { message: "Value must not be undefined" });
52
+ var rpcSuccessResponse = rpcBaseResponse.extend({ result: notUndefined });
53
53
  var rpcErrorResponse = rpcBaseResponse.extend({
54
54
  error: z.object({ code: z.number(), message: z.string() })
55
55
  });
@@ -186,13 +186,18 @@ var requestSwapParameterEncoding = z.discriminatedUnion("chain", [
186
186
  ]);
187
187
  var unregistered = z.object({
188
188
  role: z.literal("unregistered"),
189
- flip_balance: numberOrHex
189
+ flip_balance: numberOrHex,
190
+ asset_balances: chainAssetMapFactory(numberOrHex, 0)
190
191
  });
191
192
  var broker = z.object({
192
193
  role: z.literal("broker"),
194
+ bond: numberOrHex,
193
195
  flip_balance: numberOrHex,
194
196
  earned_fees: chainAssetMapFactory(numberOrHex, 0),
195
- btc_vault_deposit_address: z.string().nullable().optional()
197
+ btc_vault_deposit_address: z.string().nullable().optional(),
198
+ affiliates: z.array(
199
+ z.object({ account_id: z.string(), short_id: z.number(), withdrawal_address: hexString })
200
+ )
196
201
  });
197
202
  var boostBalances = z.array(
198
203
  z.object({
@@ -313,15 +318,36 @@ var cfBoostPoolPendingFees = z.array(
313
318
  )
314
319
  );
315
320
  var lpTotalBalances = chainAssetMapFactory(numberOrHex, 0);
321
+ var cfFailedCallEvm = z.object({
322
+ contract: hexString,
323
+ data: z.string()
324
+ });
325
+ var range = (parser) => z.tuple([parser, parser]);
326
+ var cfAuctionState = z.object({
327
+ blocks_per_epoch: z.number(),
328
+ current_epoch_started_at: z.number(),
329
+ redemption_period_as_percentage: z.number(),
330
+ min_funding: numberOrHex,
331
+ auction_size_range: range(z.number()),
332
+ min_active_bid: numberOrHex
333
+ });
334
+ var cfFlipSuppy = range(numberOrHex).transform(([totalIssuance, offchainFunds]) => ({
335
+ totalIssuance,
336
+ offchainFunds
337
+ }));
338
+ var ethereumAddress = z.string().transform((address) => `0x${address}`);
316
339
  export {
317
340
  broker,
318
341
  brokerRequestSwapDepositAddress,
319
342
  cfAccountInfo,
320
343
  cfAccounts,
344
+ cfAuctionState,
321
345
  cfBoostPoolDetails,
322
346
  cfBoostPoolPendingFees,
323
347
  cfBoostPoolsDepth,
324
348
  cfEnvironment,
349
+ cfFailedCallEvm,
350
+ cfFlipSuppy,
325
351
  cfFundingEnvironment,
326
352
  cfIngressEgressEnvironment,
327
353
  cfPoolDepth,
@@ -334,6 +360,7 @@ export {
334
360
  cfSwapRateV3,
335
361
  cfSwappingEnvironment,
336
362
  chainGetBlockHash,
363
+ ethereumAddress,
337
364
  hexString,
338
365
  liquidityProvider,
339
366
  lpTotalBalances,