@chainflip/rpc 2.2.0-alpha.7 → 2.2.0-alpha.9

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 CHANGED
@@ -238,14 +238,17 @@ declare const rpcResult: {
238
238
  to: z.ZodEffects<z.ZodString, string, string>;
239
239
  calldata: z.ZodString;
240
240
  note: z.ZodEffects<z.ZodString, `0x${string}`, string>;
241
+ value: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
241
242
  source_token_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
242
243
  }, "strip", z.ZodTypeAny, {
244
+ value: bigint;
243
245
  chain: "Tron";
244
246
  to: string;
245
247
  calldata: string;
246
248
  note: `0x${string}`;
247
249
  source_token_address?: string | undefined;
248
250
  }, {
251
+ value: string | number;
249
252
  chain: "Tron";
250
253
  to: string;
251
254
  calldata: string;
@@ -342,14 +345,17 @@ declare const rpcResult: {
342
345
  to: z.ZodEffects<z.ZodString, string, string>;
343
346
  calldata: z.ZodString;
344
347
  note: z.ZodEffects<z.ZodString, `0x${string}`, string>;
348
+ value: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
345
349
  source_token_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
346
350
  }, "strip", z.ZodTypeAny, {
351
+ value: bigint;
347
352
  chain: "Tron";
348
353
  to: string;
349
354
  calldata: string;
350
355
  note: `0x${string}`;
351
356
  source_token_address?: string | undefined;
352
357
  }, {
358
+ value: string | number;
353
359
  chain: "Tron";
354
360
  to: string;
355
361
  calldata: string;
@@ -35022,6 +35028,16 @@ declare const rpcResult: {
35022
35028
  Boost: string | number;
35023
35029
  }>]>>;
35024
35030
  created_at: z.ZodOptional<z.ZodNumber>;
35031
+ broker: z.ZodOptional<z.ZodNullable<z.ZodObject<{
35032
+ account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
35033
+ bps: z.ZodNumber;
35034
+ }, "strip", z.ZodTypeAny, {
35035
+ account: `cF${string}`;
35036
+ bps: number;
35037
+ }, {
35038
+ account: string;
35039
+ bps: number;
35040
+ }>>>;
35025
35041
  }, "strip", z.ZodTypeAny, {
35026
35042
  asset: {
35027
35043
  chain: "Bitcoin";
@@ -35077,6 +35093,10 @@ declare const rpcResult: {
35077
35093
  };
35078
35094
  loan_id: number;
35079
35095
  principal_amount: bigint;
35096
+ broker?: {
35097
+ account: `cF${string}`;
35098
+ bps: number;
35099
+ } | null | undefined;
35080
35100
  loan_type?: {
35081
35101
  User: `cF${string}`;
35082
35102
  } | {
@@ -35138,6 +35158,10 @@ declare const rpcResult: {
35138
35158
  };
35139
35159
  loan_id: number;
35140
35160
  principal_amount: string | number;
35161
+ broker?: {
35162
+ account: string;
35163
+ bps: number;
35164
+ } | null | undefined;
35141
35165
  loan_type?: {
35142
35166
  User: string;
35143
35167
  } | {
@@ -35282,6 +35306,10 @@ declare const rpcResult: {
35282
35306
  };
35283
35307
  loan_id: number;
35284
35308
  principal_amount: bigint;
35309
+ broker?: {
35310
+ account: `cF${string}`;
35311
+ bps: number;
35312
+ } | null | undefined;
35285
35313
  loan_type?: {
35286
35314
  User: `cF${string}`;
35287
35315
  } | {
@@ -35460,6 +35488,10 @@ declare const rpcResult: {
35460
35488
  };
35461
35489
  loan_id: number;
35462
35490
  principal_amount: string | number;
35491
+ broker?: {
35492
+ account: string;
35493
+ bps: number;
35494
+ } | null | undefined;
35463
35495
  loan_type?: {
35464
35496
  User: string;
35465
35497
  } | {
@@ -36340,6 +36372,16 @@ declare const rpcResult: {
36340
36372
  Boost: string | number;
36341
36373
  }>]>>;
36342
36374
  created_at: z.ZodOptional<z.ZodNumber>;
36375
+ broker: z.ZodOptional<z.ZodNullable<z.ZodObject<{
36376
+ account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
36377
+ bps: z.ZodNumber;
36378
+ }, "strip", z.ZodTypeAny, {
36379
+ account: `cF${string}`;
36380
+ bps: number;
36381
+ }, {
36382
+ account: string;
36383
+ bps: number;
36384
+ }>>>;
36343
36385
  }, "strip", z.ZodTypeAny, {
36344
36386
  asset: {
36345
36387
  chain: "Bitcoin";
@@ -36395,6 +36437,10 @@ declare const rpcResult: {
36395
36437
  };
36396
36438
  loan_id: number;
36397
36439
  principal_amount: bigint;
36440
+ broker?: {
36441
+ account: `cF${string}`;
36442
+ bps: number;
36443
+ } | null | undefined;
36398
36444
  loan_type?: {
36399
36445
  User: `cF${string}`;
36400
36446
  } | {
@@ -36456,6 +36502,10 @@ declare const rpcResult: {
36456
36502
  };
36457
36503
  loan_id: number;
36458
36504
  principal_amount: string | number;
36505
+ broker?: {
36506
+ account: string;
36507
+ bps: number;
36508
+ } | null | undefined;
36459
36509
  loan_type?: {
36460
36510
  User: string;
36461
36511
  } | {
package/dist/common.d.mts CHANGED
@@ -238,14 +238,17 @@ declare const rpcResult: {
238
238
  to: z.ZodEffects<z.ZodString, string, string>;
239
239
  calldata: z.ZodString;
240
240
  note: z.ZodEffects<z.ZodString, `0x${string}`, string>;
241
+ value: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
241
242
  source_token_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
242
243
  }, "strip", z.ZodTypeAny, {
244
+ value: bigint;
243
245
  chain: "Tron";
244
246
  to: string;
245
247
  calldata: string;
246
248
  note: `0x${string}`;
247
249
  source_token_address?: string | undefined;
248
250
  }, {
251
+ value: string | number;
249
252
  chain: "Tron";
250
253
  to: string;
251
254
  calldata: string;
@@ -342,14 +345,17 @@ declare const rpcResult: {
342
345
  to: z.ZodEffects<z.ZodString, string, string>;
343
346
  calldata: z.ZodString;
344
347
  note: z.ZodEffects<z.ZodString, `0x${string}`, string>;
348
+ value: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
345
349
  source_token_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
346
350
  }, "strip", z.ZodTypeAny, {
351
+ value: bigint;
347
352
  chain: "Tron";
348
353
  to: string;
349
354
  calldata: string;
350
355
  note: `0x${string}`;
351
356
  source_token_address?: string | undefined;
352
357
  }, {
358
+ value: string | number;
353
359
  chain: "Tron";
354
360
  to: string;
355
361
  calldata: string;
@@ -35022,6 +35028,16 @@ declare const rpcResult: {
35022
35028
  Boost: string | number;
35023
35029
  }>]>>;
35024
35030
  created_at: z.ZodOptional<z.ZodNumber>;
35031
+ broker: z.ZodOptional<z.ZodNullable<z.ZodObject<{
35032
+ account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
35033
+ bps: z.ZodNumber;
35034
+ }, "strip", z.ZodTypeAny, {
35035
+ account: `cF${string}`;
35036
+ bps: number;
35037
+ }, {
35038
+ account: string;
35039
+ bps: number;
35040
+ }>>>;
35025
35041
  }, "strip", z.ZodTypeAny, {
35026
35042
  asset: {
35027
35043
  chain: "Bitcoin";
@@ -35077,6 +35093,10 @@ declare const rpcResult: {
35077
35093
  };
35078
35094
  loan_id: number;
35079
35095
  principal_amount: bigint;
35096
+ broker?: {
35097
+ account: `cF${string}`;
35098
+ bps: number;
35099
+ } | null | undefined;
35080
35100
  loan_type?: {
35081
35101
  User: `cF${string}`;
35082
35102
  } | {
@@ -35138,6 +35158,10 @@ declare const rpcResult: {
35138
35158
  };
35139
35159
  loan_id: number;
35140
35160
  principal_amount: string | number;
35161
+ broker?: {
35162
+ account: string;
35163
+ bps: number;
35164
+ } | null | undefined;
35141
35165
  loan_type?: {
35142
35166
  User: string;
35143
35167
  } | {
@@ -35282,6 +35306,10 @@ declare const rpcResult: {
35282
35306
  };
35283
35307
  loan_id: number;
35284
35308
  principal_amount: bigint;
35309
+ broker?: {
35310
+ account: `cF${string}`;
35311
+ bps: number;
35312
+ } | null | undefined;
35285
35313
  loan_type?: {
35286
35314
  User: `cF${string}`;
35287
35315
  } | {
@@ -35460,6 +35488,10 @@ declare const rpcResult: {
35460
35488
  };
35461
35489
  loan_id: number;
35462
35490
  principal_amount: string | number;
35491
+ broker?: {
35492
+ account: string;
35493
+ bps: number;
35494
+ } | null | undefined;
35463
35495
  loan_type?: {
35464
35496
  User: string;
35465
35497
  } | {
@@ -36340,6 +36372,16 @@ declare const rpcResult: {
36340
36372
  Boost: string | number;
36341
36373
  }>]>>;
36342
36374
  created_at: z.ZodOptional<z.ZodNumber>;
36375
+ broker: z.ZodOptional<z.ZodNullable<z.ZodObject<{
36376
+ account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
36377
+ bps: z.ZodNumber;
36378
+ }, "strip", z.ZodTypeAny, {
36379
+ account: `cF${string}`;
36380
+ bps: number;
36381
+ }, {
36382
+ account: string;
36383
+ bps: number;
36384
+ }>>>;
36343
36385
  }, "strip", z.ZodTypeAny, {
36344
36386
  asset: {
36345
36387
  chain: "Bitcoin";
@@ -36395,6 +36437,10 @@ declare const rpcResult: {
36395
36437
  };
36396
36438
  loan_id: number;
36397
36439
  principal_amount: bigint;
36440
+ broker?: {
36441
+ account: `cF${string}`;
36442
+ bps: number;
36443
+ } | null | undefined;
36398
36444
  loan_type?: {
36399
36445
  User: `cF${string}`;
36400
36446
  } | {
@@ -36456,6 +36502,10 @@ declare const rpcResult: {
36456
36502
  };
36457
36503
  loan_id: number;
36458
36504
  principal_amount: string | number;
36505
+ broker?: {
36506
+ account: string;
36507
+ bps: number;
36508
+ } | null | undefined;
36459
36509
  loan_type?: {
36460
36510
  User: string;
36461
36511
  } | {
package/dist/parsers.cjs CHANGED
@@ -344,6 +344,7 @@ const requestSwapParameterEncoding = zod.z.discriminatedUnion("chain", [
344
344
  to: tronAddress,
345
345
  calldata: zod.z.string(),
346
346
  note: hexString,
347
+ value: numberOrHex,
347
348
  source_token_address: tronAddress.optional()
348
349
  }),
349
350
  zod.z.object({
@@ -767,7 +768,11 @@ const cfLoan = zod.z.object({
767
768
  asset: rpcAssetSchema,
768
769
  principal_amount: numberOrHex,
769
770
  loan_type: zod.z.union([zod.z.object({ User: accountId }), zod.z.object({ Boost: numberOrHex })]).optional(),
770
- created_at: zod.z.number().optional()
771
+ created_at: zod.z.number().optional(),
772
+ broker: zod.z.object({
773
+ account: accountId,
774
+ bps: zod.z.number()
775
+ }).nullish()
771
776
  });
772
777
  const cfLoanAccount = zod.z.object({
773
778
  account: accountId,
@@ -22719,14 +22719,17 @@ declare const requestSwapParameterEncoding: z.ZodDiscriminatedUnion<"chain", [z.
22719
22719
  to: z.ZodEffects<z.ZodString, string, string>;
22720
22720
  calldata: z.ZodString;
22721
22721
  note: z.ZodEffects<z.ZodString, `0x${string}`, string>;
22722
+ value: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
22722
22723
  source_token_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
22723
22724
  }, "strip", z.ZodTypeAny, {
22725
+ value: bigint;
22724
22726
  chain: "Tron";
22725
22727
  to: string;
22726
22728
  calldata: string;
22727
22729
  note: `0x${string}`;
22728
22730
  source_token_address?: string | undefined;
22729
22731
  }, {
22732
+ value: string | number;
22730
22733
  chain: "Tron";
22731
22734
  to: string;
22732
22735
  calldata: string;
@@ -41467,6 +41470,16 @@ declare const cfLoanAccount: z.ZodObject<{
41467
41470
  Boost: string | number;
41468
41471
  }>]>>;
41469
41472
  created_at: z.ZodOptional<z.ZodNumber>;
41473
+ broker: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41474
+ account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
41475
+ bps: z.ZodNumber;
41476
+ }, "strip", z.ZodTypeAny, {
41477
+ account: `cF${string}`;
41478
+ bps: number;
41479
+ }, {
41480
+ account: string;
41481
+ bps: number;
41482
+ }>>>;
41470
41483
  }, "strip", z.ZodTypeAny, {
41471
41484
  asset: {
41472
41485
  chain: "Bitcoin";
@@ -41522,6 +41535,10 @@ declare const cfLoanAccount: z.ZodObject<{
41522
41535
  };
41523
41536
  loan_id: number;
41524
41537
  principal_amount: bigint;
41538
+ broker?: {
41539
+ account: `cF${string}`;
41540
+ bps: number;
41541
+ } | null | undefined;
41525
41542
  loan_type?: {
41526
41543
  User: `cF${string}`;
41527
41544
  } | {
@@ -41583,6 +41600,10 @@ declare const cfLoanAccount: z.ZodObject<{
41583
41600
  };
41584
41601
  loan_id: number;
41585
41602
  principal_amount: string | number;
41603
+ broker?: {
41604
+ account: string;
41605
+ bps: number;
41606
+ } | null | undefined;
41586
41607
  loan_type?: {
41587
41608
  User: string;
41588
41609
  } | {
@@ -41727,6 +41748,10 @@ declare const cfLoanAccount: z.ZodObject<{
41727
41748
  };
41728
41749
  loan_id: number;
41729
41750
  principal_amount: bigint;
41751
+ broker?: {
41752
+ account: `cF${string}`;
41753
+ bps: number;
41754
+ } | null | undefined;
41730
41755
  loan_type?: {
41731
41756
  User: `cF${string}`;
41732
41757
  } | {
@@ -41905,6 +41930,10 @@ declare const cfLoanAccount: z.ZodObject<{
41905
41930
  };
41906
41931
  loan_id: number;
41907
41932
  principal_amount: string | number;
41933
+ broker?: {
41934
+ account: string;
41935
+ bps: number;
41936
+ } | null | undefined;
41908
41937
  loan_type?: {
41909
41938
  User: string;
41910
41939
  } | {
@@ -42460,6 +42489,16 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
42460
42489
  Boost: string | number;
42461
42490
  }>]>>;
42462
42491
  created_at: z.ZodOptional<z.ZodNumber>;
42492
+ broker: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42493
+ account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
42494
+ bps: z.ZodNumber;
42495
+ }, "strip", z.ZodTypeAny, {
42496
+ account: `cF${string}`;
42497
+ bps: number;
42498
+ }, {
42499
+ account: string;
42500
+ bps: number;
42501
+ }>>>;
42463
42502
  }, "strip", z.ZodTypeAny, {
42464
42503
  asset: {
42465
42504
  chain: "Bitcoin";
@@ -42515,6 +42554,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
42515
42554
  };
42516
42555
  loan_id: number;
42517
42556
  principal_amount: bigint;
42557
+ broker?: {
42558
+ account: `cF${string}`;
42559
+ bps: number;
42560
+ } | null | undefined;
42518
42561
  loan_type?: {
42519
42562
  User: `cF${string}`;
42520
42563
  } | {
@@ -42576,6 +42619,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
42576
42619
  };
42577
42620
  loan_id: number;
42578
42621
  principal_amount: string | number;
42622
+ broker?: {
42623
+ account: string;
42624
+ bps: number;
42625
+ } | null | undefined;
42579
42626
  loan_type?: {
42580
42627
  User: string;
42581
42628
  } | {
@@ -42720,6 +42767,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
42720
42767
  };
42721
42768
  loan_id: number;
42722
42769
  principal_amount: bigint;
42770
+ broker?: {
42771
+ account: `cF${string}`;
42772
+ bps: number;
42773
+ } | null | undefined;
42723
42774
  loan_type?: {
42724
42775
  User: `cF${string}`;
42725
42776
  } | {
@@ -42898,6 +42949,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
42898
42949
  };
42899
42950
  loan_id: number;
42900
42951
  principal_amount: string | number;
42952
+ broker?: {
42953
+ account: string;
42954
+ bps: number;
42955
+ } | null | undefined;
42901
42956
  loan_type?: {
42902
42957
  User: string;
42903
42958
  } | {
@@ -43778,6 +43833,16 @@ declare const cfAllLoans: z.ZodArray<z.ZodObject<{
43778
43833
  Boost: string | number;
43779
43834
  }>]>>;
43780
43835
  created_at: z.ZodOptional<z.ZodNumber>;
43836
+ broker: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43837
+ account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
43838
+ bps: z.ZodNumber;
43839
+ }, "strip", z.ZodTypeAny, {
43840
+ account: `cF${string}`;
43841
+ bps: number;
43842
+ }, {
43843
+ account: string;
43844
+ bps: number;
43845
+ }>>>;
43781
43846
  }, "strip", z.ZodTypeAny, {
43782
43847
  asset: {
43783
43848
  chain: "Bitcoin";
@@ -43833,6 +43898,10 @@ declare const cfAllLoans: z.ZodArray<z.ZodObject<{
43833
43898
  };
43834
43899
  loan_id: number;
43835
43900
  principal_amount: bigint;
43901
+ broker?: {
43902
+ account: `cF${string}`;
43903
+ bps: number;
43904
+ } | null | undefined;
43836
43905
  loan_type?: {
43837
43906
  User: `cF${string}`;
43838
43907
  } | {
@@ -43894,6 +43963,10 @@ declare const cfAllLoans: z.ZodArray<z.ZodObject<{
43894
43963
  };
43895
43964
  loan_id: number;
43896
43965
  principal_amount: string | number;
43966
+ broker?: {
43967
+ account: string;
43968
+ bps: number;
43969
+ } | null | undefined;
43897
43970
  loan_type?: {
43898
43971
  User: string;
43899
43972
  } | {
@@ -22719,14 +22719,17 @@ declare const requestSwapParameterEncoding: z.ZodDiscriminatedUnion<"chain", [z.
22719
22719
  to: z.ZodEffects<z.ZodString, string, string>;
22720
22720
  calldata: z.ZodString;
22721
22721
  note: z.ZodEffects<z.ZodString, `0x${string}`, string>;
22722
+ value: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
22722
22723
  source_token_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
22723
22724
  }, "strip", z.ZodTypeAny, {
22725
+ value: bigint;
22724
22726
  chain: "Tron";
22725
22727
  to: string;
22726
22728
  calldata: string;
22727
22729
  note: `0x${string}`;
22728
22730
  source_token_address?: string | undefined;
22729
22731
  }, {
22732
+ value: string | number;
22730
22733
  chain: "Tron";
22731
22734
  to: string;
22732
22735
  calldata: string;
@@ -41467,6 +41470,16 @@ declare const cfLoanAccount: z.ZodObject<{
41467
41470
  Boost: string | number;
41468
41471
  }>]>>;
41469
41472
  created_at: z.ZodOptional<z.ZodNumber>;
41473
+ broker: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41474
+ account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
41475
+ bps: z.ZodNumber;
41476
+ }, "strip", z.ZodTypeAny, {
41477
+ account: `cF${string}`;
41478
+ bps: number;
41479
+ }, {
41480
+ account: string;
41481
+ bps: number;
41482
+ }>>>;
41470
41483
  }, "strip", z.ZodTypeAny, {
41471
41484
  asset: {
41472
41485
  chain: "Bitcoin";
@@ -41522,6 +41535,10 @@ declare const cfLoanAccount: z.ZodObject<{
41522
41535
  };
41523
41536
  loan_id: number;
41524
41537
  principal_amount: bigint;
41538
+ broker?: {
41539
+ account: `cF${string}`;
41540
+ bps: number;
41541
+ } | null | undefined;
41525
41542
  loan_type?: {
41526
41543
  User: `cF${string}`;
41527
41544
  } | {
@@ -41583,6 +41600,10 @@ declare const cfLoanAccount: z.ZodObject<{
41583
41600
  };
41584
41601
  loan_id: number;
41585
41602
  principal_amount: string | number;
41603
+ broker?: {
41604
+ account: string;
41605
+ bps: number;
41606
+ } | null | undefined;
41586
41607
  loan_type?: {
41587
41608
  User: string;
41588
41609
  } | {
@@ -41727,6 +41748,10 @@ declare const cfLoanAccount: z.ZodObject<{
41727
41748
  };
41728
41749
  loan_id: number;
41729
41750
  principal_amount: bigint;
41751
+ broker?: {
41752
+ account: `cF${string}`;
41753
+ bps: number;
41754
+ } | null | undefined;
41730
41755
  loan_type?: {
41731
41756
  User: `cF${string}`;
41732
41757
  } | {
@@ -41905,6 +41930,10 @@ declare const cfLoanAccount: z.ZodObject<{
41905
41930
  };
41906
41931
  loan_id: number;
41907
41932
  principal_amount: string | number;
41933
+ broker?: {
41934
+ account: string;
41935
+ bps: number;
41936
+ } | null | undefined;
41908
41937
  loan_type?: {
41909
41938
  User: string;
41910
41939
  } | {
@@ -42460,6 +42489,16 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
42460
42489
  Boost: string | number;
42461
42490
  }>]>>;
42462
42491
  created_at: z.ZodOptional<z.ZodNumber>;
42492
+ broker: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42493
+ account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
42494
+ bps: z.ZodNumber;
42495
+ }, "strip", z.ZodTypeAny, {
42496
+ account: `cF${string}`;
42497
+ bps: number;
42498
+ }, {
42499
+ account: string;
42500
+ bps: number;
42501
+ }>>>;
42463
42502
  }, "strip", z.ZodTypeAny, {
42464
42503
  asset: {
42465
42504
  chain: "Bitcoin";
@@ -42515,6 +42554,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
42515
42554
  };
42516
42555
  loan_id: number;
42517
42556
  principal_amount: bigint;
42557
+ broker?: {
42558
+ account: `cF${string}`;
42559
+ bps: number;
42560
+ } | null | undefined;
42518
42561
  loan_type?: {
42519
42562
  User: `cF${string}`;
42520
42563
  } | {
@@ -42576,6 +42619,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
42576
42619
  };
42577
42620
  loan_id: number;
42578
42621
  principal_amount: string | number;
42622
+ broker?: {
42623
+ account: string;
42624
+ bps: number;
42625
+ } | null | undefined;
42579
42626
  loan_type?: {
42580
42627
  User: string;
42581
42628
  } | {
@@ -42720,6 +42767,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
42720
42767
  };
42721
42768
  loan_id: number;
42722
42769
  principal_amount: bigint;
42770
+ broker?: {
42771
+ account: `cF${string}`;
42772
+ bps: number;
42773
+ } | null | undefined;
42723
42774
  loan_type?: {
42724
42775
  User: `cF${string}`;
42725
42776
  } | {
@@ -42898,6 +42949,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
42898
42949
  };
42899
42950
  loan_id: number;
42900
42951
  principal_amount: string | number;
42952
+ broker?: {
42953
+ account: string;
42954
+ bps: number;
42955
+ } | null | undefined;
42901
42956
  loan_type?: {
42902
42957
  User: string;
42903
42958
  } | {
@@ -43778,6 +43833,16 @@ declare const cfAllLoans: z.ZodArray<z.ZodObject<{
43778
43833
  Boost: string | number;
43779
43834
  }>]>>;
43780
43835
  created_at: z.ZodOptional<z.ZodNumber>;
43836
+ broker: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43837
+ account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
43838
+ bps: z.ZodNumber;
43839
+ }, "strip", z.ZodTypeAny, {
43840
+ account: `cF${string}`;
43841
+ bps: number;
43842
+ }, {
43843
+ account: string;
43844
+ bps: number;
43845
+ }>>>;
43781
43846
  }, "strip", z.ZodTypeAny, {
43782
43847
  asset: {
43783
43848
  chain: "Bitcoin";
@@ -43833,6 +43898,10 @@ declare const cfAllLoans: z.ZodArray<z.ZodObject<{
43833
43898
  };
43834
43899
  loan_id: number;
43835
43900
  principal_amount: bigint;
43901
+ broker?: {
43902
+ account: `cF${string}`;
43903
+ bps: number;
43904
+ } | null | undefined;
43836
43905
  loan_type?: {
43837
43906
  User: `cF${string}`;
43838
43907
  } | {
@@ -43894,6 +43963,10 @@ declare const cfAllLoans: z.ZodArray<z.ZodObject<{
43894
43963
  };
43895
43964
  loan_id: number;
43896
43965
  principal_amount: string | number;
43966
+ broker?: {
43967
+ account: string;
43968
+ bps: number;
43969
+ } | null | undefined;
43897
43970
  loan_type?: {
43898
43971
  User: string;
43899
43972
  } | {
package/dist/parsers.mjs CHANGED
@@ -341,6 +341,7 @@ const requestSwapParameterEncoding = z.discriminatedUnion("chain", [
341
341
  to: tronAddress,
342
342
  calldata: z.string(),
343
343
  note: hexString,
344
+ value: numberOrHex,
344
345
  source_token_address: tronAddress.optional()
345
346
  }),
346
347
  z.object({
@@ -764,7 +765,11 @@ const cfLoan = z.object({
764
765
  asset: rpcAssetSchema,
765
766
  principal_amount: numberOrHex,
766
767
  loan_type: z.union([z.object({ User: accountId }), z.object({ Boost: numberOrHex })]).optional(),
767
- created_at: z.number().optional()
768
+ created_at: z.number().optional(),
769
+ broker: z.object({
770
+ account: accountId,
771
+ bps: z.number()
772
+ }).nullish()
768
773
  });
769
774
  const cfLoanAccount = z.object({
770
775
  account: accountId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "2.2.0-alpha.7",
3
+ "version": "2.2.0-alpha.9",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "2.2.0-alpha.1",