@chainflip/rpc 2.2.0-alpha.2 → 2.2.0-alpha.3
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.cjs +2 -1
- package/dist/common.d.cts +316 -2
- package/dist/common.d.mts +316 -2
- package/dist/common.mjs +3 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/parsers.cjs +10 -6
- package/dist/parsers.d.cts +337 -5
- package/dist/parsers.d.mts +337 -5
- package/dist/parsers.mjs +10 -7
- package/dist/types.d.cts +3 -1
- package/dist/types.d.mts +3 -1
- package/package.json +2 -2
package/dist/parsers.d.mts
CHANGED
|
@@ -41453,13 +41453,20 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
41453
41453
|
asset: "USDT";
|
|
41454
41454
|
}>]>;
|
|
41455
41455
|
principal_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
41456
|
-
loan_type: z.ZodOptional<z.ZodObject<{
|
|
41456
|
+
loan_type: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
41457
41457
|
User: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
|
41458
41458
|
}, "strip", z.ZodTypeAny, {
|
|
41459
41459
|
User: `cF${string}`;
|
|
41460
41460
|
}, {
|
|
41461
41461
|
User: string;
|
|
41462
|
-
}
|
|
41462
|
+
}>, z.ZodObject<{
|
|
41463
|
+
Boost: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
41464
|
+
}, "strip", z.ZodTypeAny, {
|
|
41465
|
+
Boost: bigint;
|
|
41466
|
+
}, {
|
|
41467
|
+
Boost: string | number;
|
|
41468
|
+
}>]>>;
|
|
41469
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
41463
41470
|
}, "strip", z.ZodTypeAny, {
|
|
41464
41471
|
asset: {
|
|
41465
41472
|
chain: "Bitcoin";
|
|
@@ -41517,7 +41524,10 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
41517
41524
|
principal_amount: bigint;
|
|
41518
41525
|
loan_type?: {
|
|
41519
41526
|
User: `cF${string}`;
|
|
41527
|
+
} | {
|
|
41528
|
+
Boost: bigint;
|
|
41520
41529
|
} | undefined;
|
|
41530
|
+
created_at?: number | undefined;
|
|
41521
41531
|
}, {
|
|
41522
41532
|
asset: {
|
|
41523
41533
|
chain: "Bitcoin";
|
|
@@ -41575,7 +41585,10 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
41575
41585
|
principal_amount: string | number;
|
|
41576
41586
|
loan_type?: {
|
|
41577
41587
|
User: string;
|
|
41588
|
+
} | {
|
|
41589
|
+
Boost: string | number;
|
|
41578
41590
|
} | undefined;
|
|
41591
|
+
created_at?: number | undefined;
|
|
41579
41592
|
}>, "many">;
|
|
41580
41593
|
liquidation_status: z.ZodNullable<z.ZodObject<{
|
|
41581
41594
|
liquidation_swaps: z.ZodArray<z.ZodObject<{
|
|
@@ -41716,7 +41729,10 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
41716
41729
|
principal_amount: bigint;
|
|
41717
41730
|
loan_type?: {
|
|
41718
41731
|
User: `cF${string}`;
|
|
41732
|
+
} | {
|
|
41733
|
+
Boost: bigint;
|
|
41719
41734
|
} | undefined;
|
|
41735
|
+
created_at?: number | undefined;
|
|
41720
41736
|
}[];
|
|
41721
41737
|
liquidation_status: {
|
|
41722
41738
|
liquidation_swaps: {
|
|
@@ -41891,7 +41907,10 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
41891
41907
|
principal_amount: string | number;
|
|
41892
41908
|
loan_type?: {
|
|
41893
41909
|
User: string;
|
|
41910
|
+
} | {
|
|
41911
|
+
Boost: string | number;
|
|
41894
41912
|
} | undefined;
|
|
41913
|
+
created_at?: number | undefined;
|
|
41895
41914
|
}[];
|
|
41896
41915
|
liquidation_status: {
|
|
41897
41916
|
liquidation_swaps: {
|
|
@@ -42427,13 +42446,20 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
42427
42446
|
asset: "USDT";
|
|
42428
42447
|
}>]>;
|
|
42429
42448
|
principal_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
42430
|
-
loan_type: z.ZodOptional<z.ZodObject<{
|
|
42449
|
+
loan_type: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
42431
42450
|
User: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
|
42432
42451
|
}, "strip", z.ZodTypeAny, {
|
|
42433
42452
|
User: `cF${string}`;
|
|
42434
42453
|
}, {
|
|
42435
42454
|
User: string;
|
|
42436
|
-
}
|
|
42455
|
+
}>, z.ZodObject<{
|
|
42456
|
+
Boost: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
42457
|
+
}, "strip", z.ZodTypeAny, {
|
|
42458
|
+
Boost: bigint;
|
|
42459
|
+
}, {
|
|
42460
|
+
Boost: string | number;
|
|
42461
|
+
}>]>>;
|
|
42462
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
42437
42463
|
}, "strip", z.ZodTypeAny, {
|
|
42438
42464
|
asset: {
|
|
42439
42465
|
chain: "Bitcoin";
|
|
@@ -42491,7 +42517,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
42491
42517
|
principal_amount: bigint;
|
|
42492
42518
|
loan_type?: {
|
|
42493
42519
|
User: `cF${string}`;
|
|
42520
|
+
} | {
|
|
42521
|
+
Boost: bigint;
|
|
42494
42522
|
} | undefined;
|
|
42523
|
+
created_at?: number | undefined;
|
|
42495
42524
|
}, {
|
|
42496
42525
|
asset: {
|
|
42497
42526
|
chain: "Bitcoin";
|
|
@@ -42549,7 +42578,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
42549
42578
|
principal_amount: string | number;
|
|
42550
42579
|
loan_type?: {
|
|
42551
42580
|
User: string;
|
|
42581
|
+
} | {
|
|
42582
|
+
Boost: string | number;
|
|
42552
42583
|
} | undefined;
|
|
42584
|
+
created_at?: number | undefined;
|
|
42553
42585
|
}>, "many">;
|
|
42554
42586
|
liquidation_status: z.ZodNullable<z.ZodObject<{
|
|
42555
42587
|
liquidation_swaps: z.ZodArray<z.ZodObject<{
|
|
@@ -42690,7 +42722,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
42690
42722
|
principal_amount: bigint;
|
|
42691
42723
|
loan_type?: {
|
|
42692
42724
|
User: `cF${string}`;
|
|
42725
|
+
} | {
|
|
42726
|
+
Boost: bigint;
|
|
42693
42727
|
} | undefined;
|
|
42728
|
+
created_at?: number | undefined;
|
|
42694
42729
|
}[];
|
|
42695
42730
|
liquidation_status: {
|
|
42696
42731
|
liquidation_swaps: {
|
|
@@ -42865,7 +42900,10 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
42865
42900
|
principal_amount: string | number;
|
|
42866
42901
|
loan_type?: {
|
|
42867
42902
|
User: string;
|
|
42903
|
+
} | {
|
|
42904
|
+
Boost: string | number;
|
|
42868
42905
|
} | undefined;
|
|
42906
|
+
created_at?: number | undefined;
|
|
42869
42907
|
}[];
|
|
42870
42908
|
liquidation_status: {
|
|
42871
42909
|
liquidation_swaps: {
|
|
@@ -43569,5 +43607,299 @@ declare const cfVaultAddresses: z.ZodEffects<z.ZodObject<{
|
|
|
43569
43607
|
Btc: number[];
|
|
43570
43608
|
}][];
|
|
43571
43609
|
}>;
|
|
43610
|
+
declare const cfAllLoans: z.ZodArray<z.ZodObject<{
|
|
43611
|
+
loan_id: z.ZodNumber;
|
|
43612
|
+
asset: z.ZodUnion<[z.ZodObject<{
|
|
43613
|
+
chain: z.ZodLiteral<"Bitcoin">;
|
|
43614
|
+
asset: z.ZodLiteral<"BTC">;
|
|
43615
|
+
}, "strip", z.ZodTypeAny, {
|
|
43616
|
+
chain: "Bitcoin";
|
|
43617
|
+
asset: "BTC";
|
|
43618
|
+
}, {
|
|
43619
|
+
chain: "Bitcoin";
|
|
43620
|
+
asset: "BTC";
|
|
43621
|
+
}>, z.ZodObject<{
|
|
43622
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
43623
|
+
asset: z.ZodLiteral<"FLIP">;
|
|
43624
|
+
}, "strip", z.ZodTypeAny, {
|
|
43625
|
+
chain: "Ethereum";
|
|
43626
|
+
asset: "FLIP";
|
|
43627
|
+
}, {
|
|
43628
|
+
chain: "Ethereum";
|
|
43629
|
+
asset: "FLIP";
|
|
43630
|
+
}>, z.ZodObject<{
|
|
43631
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
43632
|
+
asset: z.ZodLiteral<"ETH">;
|
|
43633
|
+
}, "strip", z.ZodTypeAny, {
|
|
43634
|
+
chain: "Ethereum";
|
|
43635
|
+
asset: "ETH";
|
|
43636
|
+
}, {
|
|
43637
|
+
chain: "Ethereum";
|
|
43638
|
+
asset: "ETH";
|
|
43639
|
+
}>, z.ZodObject<{
|
|
43640
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
43641
|
+
asset: z.ZodLiteral<"USDC">;
|
|
43642
|
+
}, "strip", z.ZodTypeAny, {
|
|
43643
|
+
chain: "Ethereum";
|
|
43644
|
+
asset: "USDC";
|
|
43645
|
+
}, {
|
|
43646
|
+
chain: "Ethereum";
|
|
43647
|
+
asset: "USDC";
|
|
43648
|
+
}>, z.ZodObject<{
|
|
43649
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
43650
|
+
asset: z.ZodLiteral<"USDT">;
|
|
43651
|
+
}, "strip", z.ZodTypeAny, {
|
|
43652
|
+
chain: "Ethereum";
|
|
43653
|
+
asset: "USDT";
|
|
43654
|
+
}, {
|
|
43655
|
+
chain: "Ethereum";
|
|
43656
|
+
asset: "USDT";
|
|
43657
|
+
}>, z.ZodObject<{
|
|
43658
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
43659
|
+
asset: z.ZodLiteral<"WBTC">;
|
|
43660
|
+
}, "strip", z.ZodTypeAny, {
|
|
43661
|
+
chain: "Ethereum";
|
|
43662
|
+
asset: "WBTC";
|
|
43663
|
+
}, {
|
|
43664
|
+
chain: "Ethereum";
|
|
43665
|
+
asset: "WBTC";
|
|
43666
|
+
}>, z.ZodObject<{
|
|
43667
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
43668
|
+
asset: z.ZodLiteral<"ETH">;
|
|
43669
|
+
}, "strip", z.ZodTypeAny, {
|
|
43670
|
+
chain: "Arbitrum";
|
|
43671
|
+
asset: "ETH";
|
|
43672
|
+
}, {
|
|
43673
|
+
chain: "Arbitrum";
|
|
43674
|
+
asset: "ETH";
|
|
43675
|
+
}>, z.ZodObject<{
|
|
43676
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
43677
|
+
asset: z.ZodLiteral<"USDC">;
|
|
43678
|
+
}, "strip", z.ZodTypeAny, {
|
|
43679
|
+
chain: "Arbitrum";
|
|
43680
|
+
asset: "USDC";
|
|
43681
|
+
}, {
|
|
43682
|
+
chain: "Arbitrum";
|
|
43683
|
+
asset: "USDC";
|
|
43684
|
+
}>, z.ZodObject<{
|
|
43685
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
43686
|
+
asset: z.ZodLiteral<"USDT">;
|
|
43687
|
+
}, "strip", z.ZodTypeAny, {
|
|
43688
|
+
chain: "Arbitrum";
|
|
43689
|
+
asset: "USDT";
|
|
43690
|
+
}, {
|
|
43691
|
+
chain: "Arbitrum";
|
|
43692
|
+
asset: "USDT";
|
|
43693
|
+
}>, z.ZodObject<{
|
|
43694
|
+
chain: z.ZodLiteral<"Solana">;
|
|
43695
|
+
asset: z.ZodLiteral<"SOL">;
|
|
43696
|
+
}, "strip", z.ZodTypeAny, {
|
|
43697
|
+
chain: "Solana";
|
|
43698
|
+
asset: "SOL";
|
|
43699
|
+
}, {
|
|
43700
|
+
chain: "Solana";
|
|
43701
|
+
asset: "SOL";
|
|
43702
|
+
}>, z.ZodObject<{
|
|
43703
|
+
chain: z.ZodLiteral<"Solana">;
|
|
43704
|
+
asset: z.ZodLiteral<"USDC">;
|
|
43705
|
+
}, "strip", z.ZodTypeAny, {
|
|
43706
|
+
chain: "Solana";
|
|
43707
|
+
asset: "USDC";
|
|
43708
|
+
}, {
|
|
43709
|
+
chain: "Solana";
|
|
43710
|
+
asset: "USDC";
|
|
43711
|
+
}>, z.ZodObject<{
|
|
43712
|
+
chain: z.ZodLiteral<"Solana">;
|
|
43713
|
+
asset: z.ZodLiteral<"USDT">;
|
|
43714
|
+
}, "strip", z.ZodTypeAny, {
|
|
43715
|
+
chain: "Solana";
|
|
43716
|
+
asset: "USDT";
|
|
43717
|
+
}, {
|
|
43718
|
+
chain: "Solana";
|
|
43719
|
+
asset: "USDT";
|
|
43720
|
+
}>, z.ZodObject<{
|
|
43721
|
+
chain: z.ZodLiteral<"Assethub">;
|
|
43722
|
+
asset: z.ZodLiteral<"DOT">;
|
|
43723
|
+
}, "strip", z.ZodTypeAny, {
|
|
43724
|
+
chain: "Assethub";
|
|
43725
|
+
asset: "DOT";
|
|
43726
|
+
}, {
|
|
43727
|
+
chain: "Assethub";
|
|
43728
|
+
asset: "DOT";
|
|
43729
|
+
}>, z.ZodObject<{
|
|
43730
|
+
chain: z.ZodLiteral<"Assethub">;
|
|
43731
|
+
asset: z.ZodLiteral<"USDC">;
|
|
43732
|
+
}, "strip", z.ZodTypeAny, {
|
|
43733
|
+
chain: "Assethub";
|
|
43734
|
+
asset: "USDC";
|
|
43735
|
+
}, {
|
|
43736
|
+
chain: "Assethub";
|
|
43737
|
+
asset: "USDC";
|
|
43738
|
+
}>, z.ZodObject<{
|
|
43739
|
+
chain: z.ZodLiteral<"Assethub">;
|
|
43740
|
+
asset: z.ZodLiteral<"USDT">;
|
|
43741
|
+
}, "strip", z.ZodTypeAny, {
|
|
43742
|
+
chain: "Assethub";
|
|
43743
|
+
asset: "USDT";
|
|
43744
|
+
}, {
|
|
43745
|
+
chain: "Assethub";
|
|
43746
|
+
asset: "USDT";
|
|
43747
|
+
}>, z.ZodObject<{
|
|
43748
|
+
chain: z.ZodLiteral<"Tron">;
|
|
43749
|
+
asset: z.ZodLiteral<"TRX">;
|
|
43750
|
+
}, "strip", z.ZodTypeAny, {
|
|
43751
|
+
chain: "Tron";
|
|
43752
|
+
asset: "TRX";
|
|
43753
|
+
}, {
|
|
43754
|
+
chain: "Tron";
|
|
43755
|
+
asset: "TRX";
|
|
43756
|
+
}>, z.ZodObject<{
|
|
43757
|
+
chain: z.ZodLiteral<"Tron">;
|
|
43758
|
+
asset: z.ZodLiteral<"USDT">;
|
|
43759
|
+
}, "strip", z.ZodTypeAny, {
|
|
43760
|
+
chain: "Tron";
|
|
43761
|
+
asset: "USDT";
|
|
43762
|
+
}, {
|
|
43763
|
+
chain: "Tron";
|
|
43764
|
+
asset: "USDT";
|
|
43765
|
+
}>]>;
|
|
43766
|
+
principal_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
43767
|
+
loan_type: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
43768
|
+
User: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
|
43769
|
+
}, "strip", z.ZodTypeAny, {
|
|
43770
|
+
User: `cF${string}`;
|
|
43771
|
+
}, {
|
|
43772
|
+
User: string;
|
|
43773
|
+
}>, z.ZodObject<{
|
|
43774
|
+
Boost: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
43775
|
+
}, "strip", z.ZodTypeAny, {
|
|
43776
|
+
Boost: bigint;
|
|
43777
|
+
}, {
|
|
43778
|
+
Boost: string | number;
|
|
43779
|
+
}>]>>;
|
|
43780
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
43781
|
+
}, "strip", z.ZodTypeAny, {
|
|
43782
|
+
asset: {
|
|
43783
|
+
chain: "Bitcoin";
|
|
43784
|
+
asset: "BTC";
|
|
43785
|
+
} | {
|
|
43786
|
+
chain: "Ethereum";
|
|
43787
|
+
asset: "FLIP";
|
|
43788
|
+
} | {
|
|
43789
|
+
chain: "Ethereum";
|
|
43790
|
+
asset: "ETH";
|
|
43791
|
+
} | {
|
|
43792
|
+
chain: "Ethereum";
|
|
43793
|
+
asset: "USDC";
|
|
43794
|
+
} | {
|
|
43795
|
+
chain: "Ethereum";
|
|
43796
|
+
asset: "USDT";
|
|
43797
|
+
} | {
|
|
43798
|
+
chain: "Ethereum";
|
|
43799
|
+
asset: "WBTC";
|
|
43800
|
+
} | {
|
|
43801
|
+
chain: "Arbitrum";
|
|
43802
|
+
asset: "ETH";
|
|
43803
|
+
} | {
|
|
43804
|
+
chain: "Arbitrum";
|
|
43805
|
+
asset: "USDC";
|
|
43806
|
+
} | {
|
|
43807
|
+
chain: "Arbitrum";
|
|
43808
|
+
asset: "USDT";
|
|
43809
|
+
} | {
|
|
43810
|
+
chain: "Solana";
|
|
43811
|
+
asset: "SOL";
|
|
43812
|
+
} | {
|
|
43813
|
+
chain: "Solana";
|
|
43814
|
+
asset: "USDC";
|
|
43815
|
+
} | {
|
|
43816
|
+
chain: "Solana";
|
|
43817
|
+
asset: "USDT";
|
|
43818
|
+
} | {
|
|
43819
|
+
chain: "Assethub";
|
|
43820
|
+
asset: "DOT";
|
|
43821
|
+
} | {
|
|
43822
|
+
chain: "Assethub";
|
|
43823
|
+
asset: "USDC";
|
|
43824
|
+
} | {
|
|
43825
|
+
chain: "Assethub";
|
|
43826
|
+
asset: "USDT";
|
|
43827
|
+
} | {
|
|
43828
|
+
chain: "Tron";
|
|
43829
|
+
asset: "TRX";
|
|
43830
|
+
} | {
|
|
43831
|
+
chain: "Tron";
|
|
43832
|
+
asset: "USDT";
|
|
43833
|
+
};
|
|
43834
|
+
loan_id: number;
|
|
43835
|
+
principal_amount: bigint;
|
|
43836
|
+
loan_type?: {
|
|
43837
|
+
User: `cF${string}`;
|
|
43838
|
+
} | {
|
|
43839
|
+
Boost: bigint;
|
|
43840
|
+
} | undefined;
|
|
43841
|
+
created_at?: number | undefined;
|
|
43842
|
+
}, {
|
|
43843
|
+
asset: {
|
|
43844
|
+
chain: "Bitcoin";
|
|
43845
|
+
asset: "BTC";
|
|
43846
|
+
} | {
|
|
43847
|
+
chain: "Ethereum";
|
|
43848
|
+
asset: "FLIP";
|
|
43849
|
+
} | {
|
|
43850
|
+
chain: "Ethereum";
|
|
43851
|
+
asset: "ETH";
|
|
43852
|
+
} | {
|
|
43853
|
+
chain: "Ethereum";
|
|
43854
|
+
asset: "USDC";
|
|
43855
|
+
} | {
|
|
43856
|
+
chain: "Ethereum";
|
|
43857
|
+
asset: "USDT";
|
|
43858
|
+
} | {
|
|
43859
|
+
chain: "Ethereum";
|
|
43860
|
+
asset: "WBTC";
|
|
43861
|
+
} | {
|
|
43862
|
+
chain: "Arbitrum";
|
|
43863
|
+
asset: "ETH";
|
|
43864
|
+
} | {
|
|
43865
|
+
chain: "Arbitrum";
|
|
43866
|
+
asset: "USDC";
|
|
43867
|
+
} | {
|
|
43868
|
+
chain: "Arbitrum";
|
|
43869
|
+
asset: "USDT";
|
|
43870
|
+
} | {
|
|
43871
|
+
chain: "Solana";
|
|
43872
|
+
asset: "SOL";
|
|
43873
|
+
} | {
|
|
43874
|
+
chain: "Solana";
|
|
43875
|
+
asset: "USDC";
|
|
43876
|
+
} | {
|
|
43877
|
+
chain: "Solana";
|
|
43878
|
+
asset: "USDT";
|
|
43879
|
+
} | {
|
|
43880
|
+
chain: "Assethub";
|
|
43881
|
+
asset: "DOT";
|
|
43882
|
+
} | {
|
|
43883
|
+
chain: "Assethub";
|
|
43884
|
+
asset: "USDC";
|
|
43885
|
+
} | {
|
|
43886
|
+
chain: "Assethub";
|
|
43887
|
+
asset: "USDT";
|
|
43888
|
+
} | {
|
|
43889
|
+
chain: "Tron";
|
|
43890
|
+
asset: "TRX";
|
|
43891
|
+
} | {
|
|
43892
|
+
chain: "Tron";
|
|
43893
|
+
asset: "USDT";
|
|
43894
|
+
};
|
|
43895
|
+
loan_id: number;
|
|
43896
|
+
principal_amount: string | number;
|
|
43897
|
+
loan_type?: {
|
|
43898
|
+
User: string;
|
|
43899
|
+
} | {
|
|
43900
|
+
Boost: string | number;
|
|
43901
|
+
} | undefined;
|
|
43902
|
+
created_at?: number | undefined;
|
|
43903
|
+
}>, "many">;
|
|
43572
43904
|
//#endregion
|
|
43573
|
-
export { AssetAndChain, RpcLimitOrder, RpcRangeOrder, accountInfoCommon, broker, brokerRequestAccountCreationDepositAddress, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfAvailablePools, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfGetTradingStrategyLimits, cfIngressEgressEnvironment, cfIngressEgressEvents, cfLendingConfig, cfLendingPoolSupplyBalances, cfLendingPools, cfLoanAccount, cfLoanAccounts, cfMonitoringSimulateAuction, cfOraclePrices, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSafeModeStatuses, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfTradingStrategy, cfVaultAddresses, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, numericString, operator, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
|
|
43905
|
+
export { AssetAndChain, RpcLimitOrder, RpcRangeOrder, accountInfoCommon, broker, brokerRequestAccountCreationDepositAddress, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAllLoans, cfAuctionState, cfAvailablePools, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfGetTradingStrategyLimits, cfIngressEgressEnvironment, cfIngressEgressEvents, cfLendingConfig, cfLendingPoolSupplyBalances, cfLendingPools, cfLoanAccount, cfLoanAccounts, cfMonitoringSimulateAuction, cfOraclePrices, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSafeModeStatuses, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfTradingStrategy, cfVaultAddresses, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, numericString, operator, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
|
package/dist/parsers.mjs
CHANGED
|
@@ -753,17 +753,19 @@ const cfLendingConfig = z.object({
|
|
|
753
753
|
minimum_update_loan_amount_usd: numberOrHex,
|
|
754
754
|
minimum_update_collateral_amount_usd: numberOrHex.optional()
|
|
755
755
|
});
|
|
756
|
+
const cfLoan = z.object({
|
|
757
|
+
loan_id: z.number(),
|
|
758
|
+
asset: rpcAssetSchema,
|
|
759
|
+
principal_amount: numberOrHex,
|
|
760
|
+
loan_type: z.union([z.object({ User: accountId }), z.object({ Boost: numberOrHex })]).optional(),
|
|
761
|
+
created_at: z.number().optional()
|
|
762
|
+
});
|
|
756
763
|
const cfLoanAccount = z.object({
|
|
757
764
|
account: accountId,
|
|
758
765
|
collateral_topup_asset: rpcAssetSchema.nullish(),
|
|
759
766
|
ltv_ratio: numberOrHex.nullable(),
|
|
760
767
|
collateral: z.array(z.intersection(rpcAssetSchema, z.object({ amount: numberOrHex }))),
|
|
761
|
-
loans: z.array(
|
|
762
|
-
loan_id: z.number(),
|
|
763
|
-
asset: rpcAssetSchema,
|
|
764
|
-
principal_amount: numberOrHex,
|
|
765
|
-
loan_type: z.object({ User: accountId }).optional()
|
|
766
|
-
})),
|
|
768
|
+
loans: z.array(cfLoan),
|
|
767
769
|
liquidation_status: z.object({
|
|
768
770
|
liquidation_swaps: z.array(z.object({
|
|
769
771
|
swap_request_id: z.number(),
|
|
@@ -869,6 +871,7 @@ const cfVaultAddresses = z.object({
|
|
|
869
871
|
Bitcoin: bitcoinAddresses
|
|
870
872
|
};
|
|
871
873
|
});
|
|
874
|
+
const cfAllLoans = z.array(cfLoan);
|
|
872
875
|
|
|
873
876
|
//#endregion
|
|
874
|
-
export { accountInfoCommon, broker, brokerRequestAccountCreationDepositAddress, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfAvailablePools, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfGetTradingStrategyLimits, cfIngressEgressEnvironment, cfIngressEgressEvents, cfLendingConfig, cfLendingPoolSupplyBalances, cfLendingPools, cfLoanAccount, cfLoanAccounts, cfMonitoringSimulateAuction, cfOraclePrices, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSafeModeStatuses, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfTradingStrategy, cfVaultAddresses, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, numericString, operator, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
|
|
877
|
+
export { accountInfoCommon, broker, brokerRequestAccountCreationDepositAddress, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAllLoans, cfAuctionState, cfAvailablePools, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfGetTradingStrategyLimits, cfIngressEgressEnvironment, cfIngressEgressEvents, cfLendingConfig, cfLendingPoolSupplyBalances, cfLendingPools, cfLoanAccount, cfLoanAccounts, cfMonitoringSimulateAuction, cfOraclePrices, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSafeModeStatuses, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfTradingStrategy, cfVaultAddresses, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, numericString, operator, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
|
package/dist/types.d.cts
CHANGED
|
@@ -40,6 +40,7 @@ type CfLendingConfig = RpcResult<'cf_lending_config'>;
|
|
|
40
40
|
type CfLoanAccounts = RpcResult<'cf_loan_accounts'>;
|
|
41
41
|
type CfLendingPoolSupplyBalances = RpcResult<'cf_lending_pool_supply_balances'>;
|
|
42
42
|
type CfVaultAddresses = RpcResult<'cf_get_vault_addresses'>;
|
|
43
|
+
type CfAllLoans = RpcResult<'cf_all_loans'>;
|
|
43
44
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
44
45
|
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
45
46
|
type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
|
|
@@ -77,6 +78,7 @@ type CfLendingConfigResponse = RpcResponse<'cf_lending_config'>;
|
|
|
77
78
|
type CfLoanAccountsResponse = RpcResponse<'cf_loan_accounts'>;
|
|
78
79
|
type CfLendingPoolSupplyBalancesResponse = RpcResponse<'cf_lending_pool_supply_balances'>;
|
|
79
80
|
type CfVaultAddressesResponse = RpcResponse<'cf_get_vault_addresses'>;
|
|
81
|
+
type CfAllLoansResponse = RpcResponse<'cf_all_loans'>;
|
|
80
82
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
81
83
|
type CfBrokerAccount = z.output<typeof broker>;
|
|
82
84
|
type CfValidatorAccount = z.output<typeof validator>;
|
|
@@ -85,4 +87,4 @@ type CfOperatorAccount = z.output<typeof operator>;
|
|
|
85
87
|
type LpTotalBalances = RpcResult<'lp_total_balances'>;
|
|
86
88
|
type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
|
|
87
89
|
//#endregion
|
|
88
|
-
export { CfAccountInfo, CfAccountInfoResponse, CfAccounts, CfAccountsResponse, CfAuctionState, CfAuctionStateResponse, CfAvailablePools, CfAvailablePoolsResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEncodeCfParameters, CfEncodeCfParametersResponse, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFailedCallTron, CfFailedCallTronResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfGetTradingStrategies, CfGetTradingStrategiesResponse, CfGetTradingStrategyLimits, CfGetTradingStrategyLimitsResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfIngressEgressEvents, CfIngressEgressEventsResponse, CfLendingConfig, CfLendingConfigResponse, CfLendingPoolSupplyBalances, CfLendingPoolSupplyBalancesResponse, CfLendingPools, CfLendingPoolsResponse, CfLiquidityProviderAccount, CfLoanAccounts, CfLoanAccountsResponse, CfMonitoringSimulateAuction, CfMonitoringSimulateAuctionResponse, CfOperatorAccount, CfOraclePrices, CfOraclePricesResponse, CfPoolDepth, CfPoolDepthResponse, CfPoolOrderbook, CfPoolOrderbookResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSafeModeStatuses, CfSafeModeStatusesResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount, CfVaultAddresses, CfVaultAddressesResponse, LpTotalBalances, LpTotalBalancesResponse, type RpcLimitOrder, type RpcMethod, type RpcRequest as RpcParams, type RpcRangeOrder, type RpcResult };
|
|
90
|
+
export { CfAccountInfo, CfAccountInfoResponse, CfAccounts, CfAccountsResponse, CfAllLoans, CfAllLoansResponse, CfAuctionState, CfAuctionStateResponse, CfAvailablePools, CfAvailablePoolsResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEncodeCfParameters, CfEncodeCfParametersResponse, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFailedCallTron, CfFailedCallTronResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfGetTradingStrategies, CfGetTradingStrategiesResponse, CfGetTradingStrategyLimits, CfGetTradingStrategyLimitsResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfIngressEgressEvents, CfIngressEgressEventsResponse, CfLendingConfig, CfLendingConfigResponse, CfLendingPoolSupplyBalances, CfLendingPoolSupplyBalancesResponse, CfLendingPools, CfLendingPoolsResponse, CfLiquidityProviderAccount, CfLoanAccounts, CfLoanAccountsResponse, CfMonitoringSimulateAuction, CfMonitoringSimulateAuctionResponse, CfOperatorAccount, CfOraclePrices, CfOraclePricesResponse, CfPoolDepth, CfPoolDepthResponse, CfPoolOrderbook, CfPoolOrderbookResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSafeModeStatuses, CfSafeModeStatusesResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount, CfVaultAddresses, CfVaultAddressesResponse, LpTotalBalances, LpTotalBalancesResponse, type RpcLimitOrder, type RpcMethod, type RpcRequest as RpcParams, type RpcRangeOrder, type RpcResult };
|
package/dist/types.d.mts
CHANGED
|
@@ -40,6 +40,7 @@ type CfLendingConfig = RpcResult<'cf_lending_config'>;
|
|
|
40
40
|
type CfLoanAccounts = RpcResult<'cf_loan_accounts'>;
|
|
41
41
|
type CfLendingPoolSupplyBalances = RpcResult<'cf_lending_pool_supply_balances'>;
|
|
42
42
|
type CfVaultAddresses = RpcResult<'cf_get_vault_addresses'>;
|
|
43
|
+
type CfAllLoans = RpcResult<'cf_all_loans'>;
|
|
43
44
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
44
45
|
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
45
46
|
type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
|
|
@@ -77,6 +78,7 @@ type CfLendingConfigResponse = RpcResponse<'cf_lending_config'>;
|
|
|
77
78
|
type CfLoanAccountsResponse = RpcResponse<'cf_loan_accounts'>;
|
|
78
79
|
type CfLendingPoolSupplyBalancesResponse = RpcResponse<'cf_lending_pool_supply_balances'>;
|
|
79
80
|
type CfVaultAddressesResponse = RpcResponse<'cf_get_vault_addresses'>;
|
|
81
|
+
type CfAllLoansResponse = RpcResponse<'cf_all_loans'>;
|
|
80
82
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
81
83
|
type CfBrokerAccount = z.output<typeof broker>;
|
|
82
84
|
type CfValidatorAccount = z.output<typeof validator>;
|
|
@@ -85,4 +87,4 @@ type CfOperatorAccount = z.output<typeof operator>;
|
|
|
85
87
|
type LpTotalBalances = RpcResult<'lp_total_balances'>;
|
|
86
88
|
type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
|
|
87
89
|
//#endregion
|
|
88
|
-
export { CfAccountInfo, CfAccountInfoResponse, CfAccounts, CfAccountsResponse, CfAuctionState, CfAuctionStateResponse, CfAvailablePools, CfAvailablePoolsResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEncodeCfParameters, CfEncodeCfParametersResponse, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFailedCallTron, CfFailedCallTronResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfGetTradingStrategies, CfGetTradingStrategiesResponse, CfGetTradingStrategyLimits, CfGetTradingStrategyLimitsResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfIngressEgressEvents, CfIngressEgressEventsResponse, CfLendingConfig, CfLendingConfigResponse, CfLendingPoolSupplyBalances, CfLendingPoolSupplyBalancesResponse, CfLendingPools, CfLendingPoolsResponse, CfLiquidityProviderAccount, CfLoanAccounts, CfLoanAccountsResponse, CfMonitoringSimulateAuction, CfMonitoringSimulateAuctionResponse, CfOperatorAccount, CfOraclePrices, CfOraclePricesResponse, CfPoolDepth, CfPoolDepthResponse, CfPoolOrderbook, CfPoolOrderbookResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSafeModeStatuses, CfSafeModeStatusesResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount, CfVaultAddresses, CfVaultAddressesResponse, LpTotalBalances, LpTotalBalancesResponse, type RpcLimitOrder, type RpcMethod, type RpcRequest as RpcParams, type RpcRangeOrder, type RpcResult };
|
|
90
|
+
export { CfAccountInfo, CfAccountInfoResponse, CfAccounts, CfAccountsResponse, CfAllLoans, CfAllLoansResponse, CfAuctionState, CfAuctionStateResponse, CfAvailablePools, CfAvailablePoolsResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEncodeCfParameters, CfEncodeCfParametersResponse, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFailedCallTron, CfFailedCallTronResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfGetTradingStrategies, CfGetTradingStrategiesResponse, CfGetTradingStrategyLimits, CfGetTradingStrategyLimitsResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfIngressEgressEvents, CfIngressEgressEventsResponse, CfLendingConfig, CfLendingConfigResponse, CfLendingPoolSupplyBalances, CfLendingPoolSupplyBalancesResponse, CfLendingPools, CfLendingPoolsResponse, CfLiquidityProviderAccount, CfLoanAccounts, CfLoanAccountsResponse, CfMonitoringSimulateAuction, CfMonitoringSimulateAuctionResponse, CfOperatorAccount, CfOraclePrices, CfOraclePricesResponse, CfPoolDepth, CfPoolDepthResponse, CfPoolOrderbook, CfPoolOrderbookResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSafeModeStatuses, CfSafeModeStatusesResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount, CfVaultAddresses, CfVaultAddressesResponse, LpTotalBalances, LpTotalBalancesResponse, type RpcLimitOrder, type RpcMethod, type RpcRequest as RpcParams, type RpcRangeOrder, type RpcResult };
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainflip/rpc",
|
|
3
|
-
"version": "2.2.0-alpha.
|
|
3
|
+
"version": "2.2.0-alpha.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@chainflip/utils": "2.2.0-alpha.1",
|
|
7
7
|
"zod": "^3.25.75"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@types/node": "^25.6.
|
|
10
|
+
"@types/node": "^25.6.2",
|
|
11
11
|
"@types/ws": "^8.18.1",
|
|
12
12
|
"ws": "^8.20.0"
|
|
13
13
|
},
|