@chainflip/rpc 2.2.0-alpha.8 → 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 +44 -0
- package/dist/common.d.mts +44 -0
- package/dist/parsers.cjs +5 -1
- package/dist/parsers.d.cts +70 -0
- package/dist/parsers.d.mts +70 -0
- package/dist/parsers.mjs +5 -1
- package/package.json +1 -1
package/dist/common.d.cts
CHANGED
|
@@ -35028,6 +35028,16 @@ declare const rpcResult: {
|
|
|
35028
35028
|
Boost: string | number;
|
|
35029
35029
|
}>]>>;
|
|
35030
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
|
+
}>>>;
|
|
35031
35041
|
}, "strip", z.ZodTypeAny, {
|
|
35032
35042
|
asset: {
|
|
35033
35043
|
chain: "Bitcoin";
|
|
@@ -35083,6 +35093,10 @@ declare const rpcResult: {
|
|
|
35083
35093
|
};
|
|
35084
35094
|
loan_id: number;
|
|
35085
35095
|
principal_amount: bigint;
|
|
35096
|
+
broker?: {
|
|
35097
|
+
account: `cF${string}`;
|
|
35098
|
+
bps: number;
|
|
35099
|
+
} | null | undefined;
|
|
35086
35100
|
loan_type?: {
|
|
35087
35101
|
User: `cF${string}`;
|
|
35088
35102
|
} | {
|
|
@@ -35144,6 +35158,10 @@ declare const rpcResult: {
|
|
|
35144
35158
|
};
|
|
35145
35159
|
loan_id: number;
|
|
35146
35160
|
principal_amount: string | number;
|
|
35161
|
+
broker?: {
|
|
35162
|
+
account: string;
|
|
35163
|
+
bps: number;
|
|
35164
|
+
} | null | undefined;
|
|
35147
35165
|
loan_type?: {
|
|
35148
35166
|
User: string;
|
|
35149
35167
|
} | {
|
|
@@ -35288,6 +35306,10 @@ declare const rpcResult: {
|
|
|
35288
35306
|
};
|
|
35289
35307
|
loan_id: number;
|
|
35290
35308
|
principal_amount: bigint;
|
|
35309
|
+
broker?: {
|
|
35310
|
+
account: `cF${string}`;
|
|
35311
|
+
bps: number;
|
|
35312
|
+
} | null | undefined;
|
|
35291
35313
|
loan_type?: {
|
|
35292
35314
|
User: `cF${string}`;
|
|
35293
35315
|
} | {
|
|
@@ -35466,6 +35488,10 @@ declare const rpcResult: {
|
|
|
35466
35488
|
};
|
|
35467
35489
|
loan_id: number;
|
|
35468
35490
|
principal_amount: string | number;
|
|
35491
|
+
broker?: {
|
|
35492
|
+
account: string;
|
|
35493
|
+
bps: number;
|
|
35494
|
+
} | null | undefined;
|
|
35469
35495
|
loan_type?: {
|
|
35470
35496
|
User: string;
|
|
35471
35497
|
} | {
|
|
@@ -36346,6 +36372,16 @@ declare const rpcResult: {
|
|
|
36346
36372
|
Boost: string | number;
|
|
36347
36373
|
}>]>>;
|
|
36348
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
|
+
}>>>;
|
|
36349
36385
|
}, "strip", z.ZodTypeAny, {
|
|
36350
36386
|
asset: {
|
|
36351
36387
|
chain: "Bitcoin";
|
|
@@ -36401,6 +36437,10 @@ declare const rpcResult: {
|
|
|
36401
36437
|
};
|
|
36402
36438
|
loan_id: number;
|
|
36403
36439
|
principal_amount: bigint;
|
|
36440
|
+
broker?: {
|
|
36441
|
+
account: `cF${string}`;
|
|
36442
|
+
bps: number;
|
|
36443
|
+
} | null | undefined;
|
|
36404
36444
|
loan_type?: {
|
|
36405
36445
|
User: `cF${string}`;
|
|
36406
36446
|
} | {
|
|
@@ -36462,6 +36502,10 @@ declare const rpcResult: {
|
|
|
36462
36502
|
};
|
|
36463
36503
|
loan_id: number;
|
|
36464
36504
|
principal_amount: string | number;
|
|
36505
|
+
broker?: {
|
|
36506
|
+
account: string;
|
|
36507
|
+
bps: number;
|
|
36508
|
+
} | null | undefined;
|
|
36465
36509
|
loan_type?: {
|
|
36466
36510
|
User: string;
|
|
36467
36511
|
} | {
|
package/dist/common.d.mts
CHANGED
|
@@ -35028,6 +35028,16 @@ declare const rpcResult: {
|
|
|
35028
35028
|
Boost: string | number;
|
|
35029
35029
|
}>]>>;
|
|
35030
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
|
+
}>>>;
|
|
35031
35041
|
}, "strip", z.ZodTypeAny, {
|
|
35032
35042
|
asset: {
|
|
35033
35043
|
chain: "Bitcoin";
|
|
@@ -35083,6 +35093,10 @@ declare const rpcResult: {
|
|
|
35083
35093
|
};
|
|
35084
35094
|
loan_id: number;
|
|
35085
35095
|
principal_amount: bigint;
|
|
35096
|
+
broker?: {
|
|
35097
|
+
account: `cF${string}`;
|
|
35098
|
+
bps: number;
|
|
35099
|
+
} | null | undefined;
|
|
35086
35100
|
loan_type?: {
|
|
35087
35101
|
User: `cF${string}`;
|
|
35088
35102
|
} | {
|
|
@@ -35144,6 +35158,10 @@ declare const rpcResult: {
|
|
|
35144
35158
|
};
|
|
35145
35159
|
loan_id: number;
|
|
35146
35160
|
principal_amount: string | number;
|
|
35161
|
+
broker?: {
|
|
35162
|
+
account: string;
|
|
35163
|
+
bps: number;
|
|
35164
|
+
} | null | undefined;
|
|
35147
35165
|
loan_type?: {
|
|
35148
35166
|
User: string;
|
|
35149
35167
|
} | {
|
|
@@ -35288,6 +35306,10 @@ declare const rpcResult: {
|
|
|
35288
35306
|
};
|
|
35289
35307
|
loan_id: number;
|
|
35290
35308
|
principal_amount: bigint;
|
|
35309
|
+
broker?: {
|
|
35310
|
+
account: `cF${string}`;
|
|
35311
|
+
bps: number;
|
|
35312
|
+
} | null | undefined;
|
|
35291
35313
|
loan_type?: {
|
|
35292
35314
|
User: `cF${string}`;
|
|
35293
35315
|
} | {
|
|
@@ -35466,6 +35488,10 @@ declare const rpcResult: {
|
|
|
35466
35488
|
};
|
|
35467
35489
|
loan_id: number;
|
|
35468
35490
|
principal_amount: string | number;
|
|
35491
|
+
broker?: {
|
|
35492
|
+
account: string;
|
|
35493
|
+
bps: number;
|
|
35494
|
+
} | null | undefined;
|
|
35469
35495
|
loan_type?: {
|
|
35470
35496
|
User: string;
|
|
35471
35497
|
} | {
|
|
@@ -36346,6 +36372,16 @@ declare const rpcResult: {
|
|
|
36346
36372
|
Boost: string | number;
|
|
36347
36373
|
}>]>>;
|
|
36348
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
|
+
}>>>;
|
|
36349
36385
|
}, "strip", z.ZodTypeAny, {
|
|
36350
36386
|
asset: {
|
|
36351
36387
|
chain: "Bitcoin";
|
|
@@ -36401,6 +36437,10 @@ declare const rpcResult: {
|
|
|
36401
36437
|
};
|
|
36402
36438
|
loan_id: number;
|
|
36403
36439
|
principal_amount: bigint;
|
|
36440
|
+
broker?: {
|
|
36441
|
+
account: `cF${string}`;
|
|
36442
|
+
bps: number;
|
|
36443
|
+
} | null | undefined;
|
|
36404
36444
|
loan_type?: {
|
|
36405
36445
|
User: `cF${string}`;
|
|
36406
36446
|
} | {
|
|
@@ -36462,6 +36502,10 @@ declare const rpcResult: {
|
|
|
36462
36502
|
};
|
|
36463
36503
|
loan_id: number;
|
|
36464
36504
|
principal_amount: string | number;
|
|
36505
|
+
broker?: {
|
|
36506
|
+
account: string;
|
|
36507
|
+
bps: number;
|
|
36508
|
+
} | null | undefined;
|
|
36465
36509
|
loan_type?: {
|
|
36466
36510
|
User: string;
|
|
36467
36511
|
} | {
|
package/dist/parsers.cjs
CHANGED
|
@@ -768,7 +768,11 @@ const cfLoan = zod.z.object({
|
|
|
768
768
|
asset: rpcAssetSchema,
|
|
769
769
|
principal_amount: numberOrHex,
|
|
770
770
|
loan_type: zod.z.union([zod.z.object({ User: accountId }), zod.z.object({ Boost: numberOrHex })]).optional(),
|
|
771
|
-
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()
|
|
772
776
|
});
|
|
773
777
|
const cfLoanAccount = zod.z.object({
|
|
774
778
|
account: accountId,
|
package/dist/parsers.d.cts
CHANGED
|
@@ -41470,6 +41470,16 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
41470
41470
|
Boost: string | number;
|
|
41471
41471
|
}>]>>;
|
|
41472
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
|
+
}>>>;
|
|
41473
41483
|
}, "strip", z.ZodTypeAny, {
|
|
41474
41484
|
asset: {
|
|
41475
41485
|
chain: "Bitcoin";
|
|
@@ -41525,6 +41535,10 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
41525
41535
|
};
|
|
41526
41536
|
loan_id: number;
|
|
41527
41537
|
principal_amount: bigint;
|
|
41538
|
+
broker?: {
|
|
41539
|
+
account: `cF${string}`;
|
|
41540
|
+
bps: number;
|
|
41541
|
+
} | null | undefined;
|
|
41528
41542
|
loan_type?: {
|
|
41529
41543
|
User: `cF${string}`;
|
|
41530
41544
|
} | {
|
|
@@ -41586,6 +41600,10 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
41586
41600
|
};
|
|
41587
41601
|
loan_id: number;
|
|
41588
41602
|
principal_amount: string | number;
|
|
41603
|
+
broker?: {
|
|
41604
|
+
account: string;
|
|
41605
|
+
bps: number;
|
|
41606
|
+
} | null | undefined;
|
|
41589
41607
|
loan_type?: {
|
|
41590
41608
|
User: string;
|
|
41591
41609
|
} | {
|
|
@@ -41730,6 +41748,10 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
41730
41748
|
};
|
|
41731
41749
|
loan_id: number;
|
|
41732
41750
|
principal_amount: bigint;
|
|
41751
|
+
broker?: {
|
|
41752
|
+
account: `cF${string}`;
|
|
41753
|
+
bps: number;
|
|
41754
|
+
} | null | undefined;
|
|
41733
41755
|
loan_type?: {
|
|
41734
41756
|
User: `cF${string}`;
|
|
41735
41757
|
} | {
|
|
@@ -41908,6 +41930,10 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
41908
41930
|
};
|
|
41909
41931
|
loan_id: number;
|
|
41910
41932
|
principal_amount: string | number;
|
|
41933
|
+
broker?: {
|
|
41934
|
+
account: string;
|
|
41935
|
+
bps: number;
|
|
41936
|
+
} | null | undefined;
|
|
41911
41937
|
loan_type?: {
|
|
41912
41938
|
User: string;
|
|
41913
41939
|
} | {
|
|
@@ -42463,6 +42489,16 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
42463
42489
|
Boost: string | number;
|
|
42464
42490
|
}>]>>;
|
|
42465
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
|
+
}>>>;
|
|
42466
42502
|
}, "strip", z.ZodTypeAny, {
|
|
42467
42503
|
asset: {
|
|
42468
42504
|
chain: "Bitcoin";
|
|
@@ -42518,6 +42554,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
42518
42554
|
};
|
|
42519
42555
|
loan_id: number;
|
|
42520
42556
|
principal_amount: bigint;
|
|
42557
|
+
broker?: {
|
|
42558
|
+
account: `cF${string}`;
|
|
42559
|
+
bps: number;
|
|
42560
|
+
} | null | undefined;
|
|
42521
42561
|
loan_type?: {
|
|
42522
42562
|
User: `cF${string}`;
|
|
42523
42563
|
} | {
|
|
@@ -42579,6 +42619,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
42579
42619
|
};
|
|
42580
42620
|
loan_id: number;
|
|
42581
42621
|
principal_amount: string | number;
|
|
42622
|
+
broker?: {
|
|
42623
|
+
account: string;
|
|
42624
|
+
bps: number;
|
|
42625
|
+
} | null | undefined;
|
|
42582
42626
|
loan_type?: {
|
|
42583
42627
|
User: string;
|
|
42584
42628
|
} | {
|
|
@@ -42723,6 +42767,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
42723
42767
|
};
|
|
42724
42768
|
loan_id: number;
|
|
42725
42769
|
principal_amount: bigint;
|
|
42770
|
+
broker?: {
|
|
42771
|
+
account: `cF${string}`;
|
|
42772
|
+
bps: number;
|
|
42773
|
+
} | null | undefined;
|
|
42726
42774
|
loan_type?: {
|
|
42727
42775
|
User: `cF${string}`;
|
|
42728
42776
|
} | {
|
|
@@ -42901,6 +42949,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
42901
42949
|
};
|
|
42902
42950
|
loan_id: number;
|
|
42903
42951
|
principal_amount: string | number;
|
|
42952
|
+
broker?: {
|
|
42953
|
+
account: string;
|
|
42954
|
+
bps: number;
|
|
42955
|
+
} | null | undefined;
|
|
42904
42956
|
loan_type?: {
|
|
42905
42957
|
User: string;
|
|
42906
42958
|
} | {
|
|
@@ -43781,6 +43833,16 @@ declare const cfAllLoans: z.ZodArray<z.ZodObject<{
|
|
|
43781
43833
|
Boost: string | number;
|
|
43782
43834
|
}>]>>;
|
|
43783
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
|
+
}>>>;
|
|
43784
43846
|
}, "strip", z.ZodTypeAny, {
|
|
43785
43847
|
asset: {
|
|
43786
43848
|
chain: "Bitcoin";
|
|
@@ -43836,6 +43898,10 @@ declare const cfAllLoans: z.ZodArray<z.ZodObject<{
|
|
|
43836
43898
|
};
|
|
43837
43899
|
loan_id: number;
|
|
43838
43900
|
principal_amount: bigint;
|
|
43901
|
+
broker?: {
|
|
43902
|
+
account: `cF${string}`;
|
|
43903
|
+
bps: number;
|
|
43904
|
+
} | null | undefined;
|
|
43839
43905
|
loan_type?: {
|
|
43840
43906
|
User: `cF${string}`;
|
|
43841
43907
|
} | {
|
|
@@ -43897,6 +43963,10 @@ declare const cfAllLoans: z.ZodArray<z.ZodObject<{
|
|
|
43897
43963
|
};
|
|
43898
43964
|
loan_id: number;
|
|
43899
43965
|
principal_amount: string | number;
|
|
43966
|
+
broker?: {
|
|
43967
|
+
account: string;
|
|
43968
|
+
bps: number;
|
|
43969
|
+
} | null | undefined;
|
|
43900
43970
|
loan_type?: {
|
|
43901
43971
|
User: string;
|
|
43902
43972
|
} | {
|
package/dist/parsers.d.mts
CHANGED
|
@@ -41470,6 +41470,16 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
41470
41470
|
Boost: string | number;
|
|
41471
41471
|
}>]>>;
|
|
41472
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
|
+
}>>>;
|
|
41473
41483
|
}, "strip", z.ZodTypeAny, {
|
|
41474
41484
|
asset: {
|
|
41475
41485
|
chain: "Bitcoin";
|
|
@@ -41525,6 +41535,10 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
41525
41535
|
};
|
|
41526
41536
|
loan_id: number;
|
|
41527
41537
|
principal_amount: bigint;
|
|
41538
|
+
broker?: {
|
|
41539
|
+
account: `cF${string}`;
|
|
41540
|
+
bps: number;
|
|
41541
|
+
} | null | undefined;
|
|
41528
41542
|
loan_type?: {
|
|
41529
41543
|
User: `cF${string}`;
|
|
41530
41544
|
} | {
|
|
@@ -41586,6 +41600,10 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
41586
41600
|
};
|
|
41587
41601
|
loan_id: number;
|
|
41588
41602
|
principal_amount: string | number;
|
|
41603
|
+
broker?: {
|
|
41604
|
+
account: string;
|
|
41605
|
+
bps: number;
|
|
41606
|
+
} | null | undefined;
|
|
41589
41607
|
loan_type?: {
|
|
41590
41608
|
User: string;
|
|
41591
41609
|
} | {
|
|
@@ -41730,6 +41748,10 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
41730
41748
|
};
|
|
41731
41749
|
loan_id: number;
|
|
41732
41750
|
principal_amount: bigint;
|
|
41751
|
+
broker?: {
|
|
41752
|
+
account: `cF${string}`;
|
|
41753
|
+
bps: number;
|
|
41754
|
+
} | null | undefined;
|
|
41733
41755
|
loan_type?: {
|
|
41734
41756
|
User: `cF${string}`;
|
|
41735
41757
|
} | {
|
|
@@ -41908,6 +41930,10 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
41908
41930
|
};
|
|
41909
41931
|
loan_id: number;
|
|
41910
41932
|
principal_amount: string | number;
|
|
41933
|
+
broker?: {
|
|
41934
|
+
account: string;
|
|
41935
|
+
bps: number;
|
|
41936
|
+
} | null | undefined;
|
|
41911
41937
|
loan_type?: {
|
|
41912
41938
|
User: string;
|
|
41913
41939
|
} | {
|
|
@@ -42463,6 +42489,16 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
42463
42489
|
Boost: string | number;
|
|
42464
42490
|
}>]>>;
|
|
42465
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
|
+
}>>>;
|
|
42466
42502
|
}, "strip", z.ZodTypeAny, {
|
|
42467
42503
|
asset: {
|
|
42468
42504
|
chain: "Bitcoin";
|
|
@@ -42518,6 +42554,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
42518
42554
|
};
|
|
42519
42555
|
loan_id: number;
|
|
42520
42556
|
principal_amount: bigint;
|
|
42557
|
+
broker?: {
|
|
42558
|
+
account: `cF${string}`;
|
|
42559
|
+
bps: number;
|
|
42560
|
+
} | null | undefined;
|
|
42521
42561
|
loan_type?: {
|
|
42522
42562
|
User: `cF${string}`;
|
|
42523
42563
|
} | {
|
|
@@ -42579,6 +42619,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
42579
42619
|
};
|
|
42580
42620
|
loan_id: number;
|
|
42581
42621
|
principal_amount: string | number;
|
|
42622
|
+
broker?: {
|
|
42623
|
+
account: string;
|
|
42624
|
+
bps: number;
|
|
42625
|
+
} | null | undefined;
|
|
42582
42626
|
loan_type?: {
|
|
42583
42627
|
User: string;
|
|
42584
42628
|
} | {
|
|
@@ -42723,6 +42767,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
42723
42767
|
};
|
|
42724
42768
|
loan_id: number;
|
|
42725
42769
|
principal_amount: bigint;
|
|
42770
|
+
broker?: {
|
|
42771
|
+
account: `cF${string}`;
|
|
42772
|
+
bps: number;
|
|
42773
|
+
} | null | undefined;
|
|
42726
42774
|
loan_type?: {
|
|
42727
42775
|
User: `cF${string}`;
|
|
42728
42776
|
} | {
|
|
@@ -42901,6 +42949,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
42901
42949
|
};
|
|
42902
42950
|
loan_id: number;
|
|
42903
42951
|
principal_amount: string | number;
|
|
42952
|
+
broker?: {
|
|
42953
|
+
account: string;
|
|
42954
|
+
bps: number;
|
|
42955
|
+
} | null | undefined;
|
|
42904
42956
|
loan_type?: {
|
|
42905
42957
|
User: string;
|
|
42906
42958
|
} | {
|
|
@@ -43781,6 +43833,16 @@ declare const cfAllLoans: z.ZodArray<z.ZodObject<{
|
|
|
43781
43833
|
Boost: string | number;
|
|
43782
43834
|
}>]>>;
|
|
43783
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
|
+
}>>>;
|
|
43784
43846
|
}, "strip", z.ZodTypeAny, {
|
|
43785
43847
|
asset: {
|
|
43786
43848
|
chain: "Bitcoin";
|
|
@@ -43836,6 +43898,10 @@ declare const cfAllLoans: z.ZodArray<z.ZodObject<{
|
|
|
43836
43898
|
};
|
|
43837
43899
|
loan_id: number;
|
|
43838
43900
|
principal_amount: bigint;
|
|
43901
|
+
broker?: {
|
|
43902
|
+
account: `cF${string}`;
|
|
43903
|
+
bps: number;
|
|
43904
|
+
} | null | undefined;
|
|
43839
43905
|
loan_type?: {
|
|
43840
43906
|
User: `cF${string}`;
|
|
43841
43907
|
} | {
|
|
@@ -43897,6 +43963,10 @@ declare const cfAllLoans: z.ZodArray<z.ZodObject<{
|
|
|
43897
43963
|
};
|
|
43898
43964
|
loan_id: number;
|
|
43899
43965
|
principal_amount: string | number;
|
|
43966
|
+
broker?: {
|
|
43967
|
+
account: string;
|
|
43968
|
+
bps: number;
|
|
43969
|
+
} | null | undefined;
|
|
43900
43970
|
loan_type?: {
|
|
43901
43971
|
User: string;
|
|
43902
43972
|
} | {
|
package/dist/parsers.mjs
CHANGED
|
@@ -765,7 +765,11 @@ const cfLoan = z.object({
|
|
|
765
765
|
asset: rpcAssetSchema,
|
|
766
766
|
principal_amount: numberOrHex,
|
|
767
767
|
loan_type: z.union([z.object({ User: accountId }), z.object({ Boost: numberOrHex })]).optional(),
|
|
768
|
-
created_at: z.number().optional()
|
|
768
|
+
created_at: z.number().optional(),
|
|
769
|
+
broker: z.object({
|
|
770
|
+
account: accountId,
|
|
771
|
+
bps: z.number()
|
|
772
|
+
}).nullish()
|
|
769
773
|
});
|
|
770
774
|
const cfLoanAccount = z.object({
|
|
771
775
|
account: accountId,
|