@chainflip/rpc 1.11.0-beta.16 → 1.11.0-beta.17

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
@@ -193,6 +193,7 @@ type RpcRequest = WithHash<{
193
193
  cf_oracle_prices: [oraclePricePair?: Nullish<[PriceAsset, PriceAsset]>];
194
194
  cf_lending_pools: [asset?: UncheckedAssetAndChain];
195
195
  cf_lending_config: [];
196
+ cf_loan_accounts: [accountId?: string];
196
197
  }> & {
197
198
  chain_getBlockHash: [blockHeight?: number];
198
199
  };
@@ -26366,6 +26367,762 @@ declare const rpcResult: {
26366
26367
  hard_liquidation_max_oracle_slippage: number;
26367
26368
  fee_swap_max_oracle_slippage: number;
26368
26369
  }>;
26370
+ readonly cf_loan_accounts: z.ZodArray<z.ZodObject<{
26371
+ account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
26372
+ primary_collateral_asset: z.ZodUnion<[z.ZodObject<{
26373
+ chain: z.ZodLiteral<"Bitcoin">;
26374
+ asset: z.ZodLiteral<"BTC">;
26375
+ }, "strip", z.ZodTypeAny, {
26376
+ chain: "Bitcoin";
26377
+ asset: "BTC";
26378
+ }, {
26379
+ chain: "Bitcoin";
26380
+ asset: "BTC";
26381
+ }>, z.ZodObject<{
26382
+ chain: z.ZodLiteral<"Polkadot">;
26383
+ asset: z.ZodLiteral<"DOT">;
26384
+ }, "strip", z.ZodTypeAny, {
26385
+ chain: "Polkadot";
26386
+ asset: "DOT";
26387
+ }, {
26388
+ chain: "Polkadot";
26389
+ asset: "DOT";
26390
+ }>, z.ZodObject<{
26391
+ chain: z.ZodLiteral<"Ethereum">;
26392
+ asset: z.ZodLiteral<"FLIP">;
26393
+ }, "strip", z.ZodTypeAny, {
26394
+ chain: "Ethereum";
26395
+ asset: "FLIP";
26396
+ }, {
26397
+ chain: "Ethereum";
26398
+ asset: "FLIP";
26399
+ }>, z.ZodObject<{
26400
+ chain: z.ZodLiteral<"Ethereum">;
26401
+ asset: z.ZodLiteral<"ETH">;
26402
+ }, "strip", z.ZodTypeAny, {
26403
+ chain: "Ethereum";
26404
+ asset: "ETH";
26405
+ }, {
26406
+ chain: "Ethereum";
26407
+ asset: "ETH";
26408
+ }>, z.ZodObject<{
26409
+ chain: z.ZodLiteral<"Ethereum">;
26410
+ asset: z.ZodLiteral<"USDC">;
26411
+ }, "strip", z.ZodTypeAny, {
26412
+ chain: "Ethereum";
26413
+ asset: "USDC";
26414
+ }, {
26415
+ chain: "Ethereum";
26416
+ asset: "USDC";
26417
+ }>, z.ZodObject<{
26418
+ chain: z.ZodLiteral<"Ethereum">;
26419
+ asset: z.ZodLiteral<"USDT">;
26420
+ }, "strip", z.ZodTypeAny, {
26421
+ chain: "Ethereum";
26422
+ asset: "USDT";
26423
+ }, {
26424
+ chain: "Ethereum";
26425
+ asset: "USDT";
26426
+ }>, z.ZodObject<{
26427
+ chain: z.ZodLiteral<"Arbitrum">;
26428
+ asset: z.ZodLiteral<"ETH">;
26429
+ }, "strip", z.ZodTypeAny, {
26430
+ chain: "Arbitrum";
26431
+ asset: "ETH";
26432
+ }, {
26433
+ chain: "Arbitrum";
26434
+ asset: "ETH";
26435
+ }>, z.ZodObject<{
26436
+ chain: z.ZodLiteral<"Arbitrum">;
26437
+ asset: z.ZodLiteral<"USDC">;
26438
+ }, "strip", z.ZodTypeAny, {
26439
+ chain: "Arbitrum";
26440
+ asset: "USDC";
26441
+ }, {
26442
+ chain: "Arbitrum";
26443
+ asset: "USDC";
26444
+ }>, z.ZodObject<{
26445
+ chain: z.ZodLiteral<"Solana">;
26446
+ asset: z.ZodLiteral<"SOL">;
26447
+ }, "strip", z.ZodTypeAny, {
26448
+ chain: "Solana";
26449
+ asset: "SOL";
26450
+ }, {
26451
+ chain: "Solana";
26452
+ asset: "SOL";
26453
+ }>, z.ZodObject<{
26454
+ chain: z.ZodLiteral<"Solana">;
26455
+ asset: z.ZodLiteral<"USDC">;
26456
+ }, "strip", z.ZodTypeAny, {
26457
+ chain: "Solana";
26458
+ asset: "USDC";
26459
+ }, {
26460
+ chain: "Solana";
26461
+ asset: "USDC";
26462
+ }>, z.ZodObject<{
26463
+ chain: z.ZodLiteral<"Assethub">;
26464
+ asset: z.ZodLiteral<"DOT">;
26465
+ }, "strip", z.ZodTypeAny, {
26466
+ chain: "Assethub";
26467
+ asset: "DOT";
26468
+ }, {
26469
+ chain: "Assethub";
26470
+ asset: "DOT";
26471
+ }>, z.ZodObject<{
26472
+ chain: z.ZodLiteral<"Assethub">;
26473
+ asset: z.ZodLiteral<"USDC">;
26474
+ }, "strip", z.ZodTypeAny, {
26475
+ chain: "Assethub";
26476
+ asset: "USDC";
26477
+ }, {
26478
+ chain: "Assethub";
26479
+ asset: "USDC";
26480
+ }>, z.ZodObject<{
26481
+ chain: z.ZodLiteral<"Assethub">;
26482
+ asset: z.ZodLiteral<"USDT">;
26483
+ }, "strip", z.ZodTypeAny, {
26484
+ chain: "Assethub";
26485
+ asset: "USDT";
26486
+ }, {
26487
+ chain: "Assethub";
26488
+ asset: "USDT";
26489
+ }>]>;
26490
+ ltv_ratio: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
26491
+ collateral: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
26492
+ chain: z.ZodLiteral<"Bitcoin">;
26493
+ asset: z.ZodLiteral<"BTC">;
26494
+ }, "strip", z.ZodTypeAny, {
26495
+ chain: "Bitcoin";
26496
+ asset: "BTC";
26497
+ }, {
26498
+ chain: "Bitcoin";
26499
+ asset: "BTC";
26500
+ }>, z.ZodObject<{
26501
+ chain: z.ZodLiteral<"Polkadot">;
26502
+ asset: z.ZodLiteral<"DOT">;
26503
+ }, "strip", z.ZodTypeAny, {
26504
+ chain: "Polkadot";
26505
+ asset: "DOT";
26506
+ }, {
26507
+ chain: "Polkadot";
26508
+ asset: "DOT";
26509
+ }>, z.ZodObject<{
26510
+ chain: z.ZodLiteral<"Ethereum">;
26511
+ asset: z.ZodLiteral<"FLIP">;
26512
+ }, "strip", z.ZodTypeAny, {
26513
+ chain: "Ethereum";
26514
+ asset: "FLIP";
26515
+ }, {
26516
+ chain: "Ethereum";
26517
+ asset: "FLIP";
26518
+ }>, z.ZodObject<{
26519
+ chain: z.ZodLiteral<"Ethereum">;
26520
+ asset: z.ZodLiteral<"ETH">;
26521
+ }, "strip", z.ZodTypeAny, {
26522
+ chain: "Ethereum";
26523
+ asset: "ETH";
26524
+ }, {
26525
+ chain: "Ethereum";
26526
+ asset: "ETH";
26527
+ }>, z.ZodObject<{
26528
+ chain: z.ZodLiteral<"Ethereum">;
26529
+ asset: z.ZodLiteral<"USDC">;
26530
+ }, "strip", z.ZodTypeAny, {
26531
+ chain: "Ethereum";
26532
+ asset: "USDC";
26533
+ }, {
26534
+ chain: "Ethereum";
26535
+ asset: "USDC";
26536
+ }>, z.ZodObject<{
26537
+ chain: z.ZodLiteral<"Ethereum">;
26538
+ asset: z.ZodLiteral<"USDT">;
26539
+ }, "strip", z.ZodTypeAny, {
26540
+ chain: "Ethereum";
26541
+ asset: "USDT";
26542
+ }, {
26543
+ chain: "Ethereum";
26544
+ asset: "USDT";
26545
+ }>, z.ZodObject<{
26546
+ chain: z.ZodLiteral<"Arbitrum">;
26547
+ asset: z.ZodLiteral<"ETH">;
26548
+ }, "strip", z.ZodTypeAny, {
26549
+ chain: "Arbitrum";
26550
+ asset: "ETH";
26551
+ }, {
26552
+ chain: "Arbitrum";
26553
+ asset: "ETH";
26554
+ }>, z.ZodObject<{
26555
+ chain: z.ZodLiteral<"Arbitrum">;
26556
+ asset: z.ZodLiteral<"USDC">;
26557
+ }, "strip", z.ZodTypeAny, {
26558
+ chain: "Arbitrum";
26559
+ asset: "USDC";
26560
+ }, {
26561
+ chain: "Arbitrum";
26562
+ asset: "USDC";
26563
+ }>, z.ZodObject<{
26564
+ chain: z.ZodLiteral<"Solana">;
26565
+ asset: z.ZodLiteral<"SOL">;
26566
+ }, "strip", z.ZodTypeAny, {
26567
+ chain: "Solana";
26568
+ asset: "SOL";
26569
+ }, {
26570
+ chain: "Solana";
26571
+ asset: "SOL";
26572
+ }>, z.ZodObject<{
26573
+ chain: z.ZodLiteral<"Solana">;
26574
+ asset: z.ZodLiteral<"USDC">;
26575
+ }, "strip", z.ZodTypeAny, {
26576
+ chain: "Solana";
26577
+ asset: "USDC";
26578
+ }, {
26579
+ chain: "Solana";
26580
+ asset: "USDC";
26581
+ }>, z.ZodObject<{
26582
+ chain: z.ZodLiteral<"Assethub">;
26583
+ asset: z.ZodLiteral<"DOT">;
26584
+ }, "strip", z.ZodTypeAny, {
26585
+ chain: "Assethub";
26586
+ asset: "DOT";
26587
+ }, {
26588
+ chain: "Assethub";
26589
+ asset: "DOT";
26590
+ }>, z.ZodObject<{
26591
+ chain: z.ZodLiteral<"Assethub">;
26592
+ asset: z.ZodLiteral<"USDC">;
26593
+ }, "strip", z.ZodTypeAny, {
26594
+ chain: "Assethub";
26595
+ asset: "USDC";
26596
+ }, {
26597
+ chain: "Assethub";
26598
+ asset: "USDC";
26599
+ }>, z.ZodObject<{
26600
+ chain: z.ZodLiteral<"Assethub">;
26601
+ asset: z.ZodLiteral<"USDT">;
26602
+ }, "strip", z.ZodTypeAny, {
26603
+ chain: "Assethub";
26604
+ asset: "USDT";
26605
+ }, {
26606
+ chain: "Assethub";
26607
+ asset: "USDT";
26608
+ }>]>, z.ZodObject<{
26609
+ amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
26610
+ }, "strip", z.ZodTypeAny, {
26611
+ amount: bigint;
26612
+ }, {
26613
+ amount: string | number;
26614
+ }>>, "many">;
26615
+ loans: z.ZodArray<z.ZodObject<{
26616
+ loan_id: z.ZodNumber;
26617
+ asset: z.ZodUnion<[z.ZodObject<{
26618
+ chain: z.ZodLiteral<"Bitcoin">;
26619
+ asset: z.ZodLiteral<"BTC">;
26620
+ }, "strip", z.ZodTypeAny, {
26621
+ chain: "Bitcoin";
26622
+ asset: "BTC";
26623
+ }, {
26624
+ chain: "Bitcoin";
26625
+ asset: "BTC";
26626
+ }>, z.ZodObject<{
26627
+ chain: z.ZodLiteral<"Polkadot">;
26628
+ asset: z.ZodLiteral<"DOT">;
26629
+ }, "strip", z.ZodTypeAny, {
26630
+ chain: "Polkadot";
26631
+ asset: "DOT";
26632
+ }, {
26633
+ chain: "Polkadot";
26634
+ asset: "DOT";
26635
+ }>, z.ZodObject<{
26636
+ chain: z.ZodLiteral<"Ethereum">;
26637
+ asset: z.ZodLiteral<"FLIP">;
26638
+ }, "strip", z.ZodTypeAny, {
26639
+ chain: "Ethereum";
26640
+ asset: "FLIP";
26641
+ }, {
26642
+ chain: "Ethereum";
26643
+ asset: "FLIP";
26644
+ }>, z.ZodObject<{
26645
+ chain: z.ZodLiteral<"Ethereum">;
26646
+ asset: z.ZodLiteral<"ETH">;
26647
+ }, "strip", z.ZodTypeAny, {
26648
+ chain: "Ethereum";
26649
+ asset: "ETH";
26650
+ }, {
26651
+ chain: "Ethereum";
26652
+ asset: "ETH";
26653
+ }>, z.ZodObject<{
26654
+ chain: z.ZodLiteral<"Ethereum">;
26655
+ asset: z.ZodLiteral<"USDC">;
26656
+ }, "strip", z.ZodTypeAny, {
26657
+ chain: "Ethereum";
26658
+ asset: "USDC";
26659
+ }, {
26660
+ chain: "Ethereum";
26661
+ asset: "USDC";
26662
+ }>, z.ZodObject<{
26663
+ chain: z.ZodLiteral<"Ethereum">;
26664
+ asset: z.ZodLiteral<"USDT">;
26665
+ }, "strip", z.ZodTypeAny, {
26666
+ chain: "Ethereum";
26667
+ asset: "USDT";
26668
+ }, {
26669
+ chain: "Ethereum";
26670
+ asset: "USDT";
26671
+ }>, z.ZodObject<{
26672
+ chain: z.ZodLiteral<"Arbitrum">;
26673
+ asset: z.ZodLiteral<"ETH">;
26674
+ }, "strip", z.ZodTypeAny, {
26675
+ chain: "Arbitrum";
26676
+ asset: "ETH";
26677
+ }, {
26678
+ chain: "Arbitrum";
26679
+ asset: "ETH";
26680
+ }>, z.ZodObject<{
26681
+ chain: z.ZodLiteral<"Arbitrum">;
26682
+ asset: z.ZodLiteral<"USDC">;
26683
+ }, "strip", z.ZodTypeAny, {
26684
+ chain: "Arbitrum";
26685
+ asset: "USDC";
26686
+ }, {
26687
+ chain: "Arbitrum";
26688
+ asset: "USDC";
26689
+ }>, z.ZodObject<{
26690
+ chain: z.ZodLiteral<"Solana">;
26691
+ asset: z.ZodLiteral<"SOL">;
26692
+ }, "strip", z.ZodTypeAny, {
26693
+ chain: "Solana";
26694
+ asset: "SOL";
26695
+ }, {
26696
+ chain: "Solana";
26697
+ asset: "SOL";
26698
+ }>, z.ZodObject<{
26699
+ chain: z.ZodLiteral<"Solana">;
26700
+ asset: z.ZodLiteral<"USDC">;
26701
+ }, "strip", z.ZodTypeAny, {
26702
+ chain: "Solana";
26703
+ asset: "USDC";
26704
+ }, {
26705
+ chain: "Solana";
26706
+ asset: "USDC";
26707
+ }>, z.ZodObject<{
26708
+ chain: z.ZodLiteral<"Assethub">;
26709
+ asset: z.ZodLiteral<"DOT">;
26710
+ }, "strip", z.ZodTypeAny, {
26711
+ chain: "Assethub";
26712
+ asset: "DOT";
26713
+ }, {
26714
+ chain: "Assethub";
26715
+ asset: "DOT";
26716
+ }>, z.ZodObject<{
26717
+ chain: z.ZodLiteral<"Assethub">;
26718
+ asset: z.ZodLiteral<"USDC">;
26719
+ }, "strip", z.ZodTypeAny, {
26720
+ chain: "Assethub";
26721
+ asset: "USDC";
26722
+ }, {
26723
+ chain: "Assethub";
26724
+ asset: "USDC";
26725
+ }>, z.ZodObject<{
26726
+ chain: z.ZodLiteral<"Assethub">;
26727
+ asset: z.ZodLiteral<"USDT">;
26728
+ }, "strip", z.ZodTypeAny, {
26729
+ chain: "Assethub";
26730
+ asset: "USDT";
26731
+ }, {
26732
+ chain: "Assethub";
26733
+ asset: "USDT";
26734
+ }>]>;
26735
+ created_at: z.ZodNumber;
26736
+ principal_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
26737
+ }, "strip", z.ZodTypeAny, {
26738
+ asset: {
26739
+ chain: "Bitcoin";
26740
+ asset: "BTC";
26741
+ } | {
26742
+ chain: "Polkadot";
26743
+ asset: "DOT";
26744
+ } | {
26745
+ chain: "Ethereum";
26746
+ asset: "FLIP";
26747
+ } | {
26748
+ chain: "Ethereum";
26749
+ asset: "ETH";
26750
+ } | {
26751
+ chain: "Ethereum";
26752
+ asset: "USDC";
26753
+ } | {
26754
+ chain: "Ethereum";
26755
+ asset: "USDT";
26756
+ } | {
26757
+ chain: "Arbitrum";
26758
+ asset: "ETH";
26759
+ } | {
26760
+ chain: "Arbitrum";
26761
+ asset: "USDC";
26762
+ } | {
26763
+ chain: "Solana";
26764
+ asset: "SOL";
26765
+ } | {
26766
+ chain: "Solana";
26767
+ asset: "USDC";
26768
+ } | {
26769
+ chain: "Assethub";
26770
+ asset: "DOT";
26771
+ } | {
26772
+ chain: "Assethub";
26773
+ asset: "USDC";
26774
+ } | {
26775
+ chain: "Assethub";
26776
+ asset: "USDT";
26777
+ };
26778
+ loan_id: number;
26779
+ created_at: number;
26780
+ principal_amount: bigint;
26781
+ }, {
26782
+ asset: {
26783
+ chain: "Bitcoin";
26784
+ asset: "BTC";
26785
+ } | {
26786
+ chain: "Polkadot";
26787
+ asset: "DOT";
26788
+ } | {
26789
+ chain: "Ethereum";
26790
+ asset: "FLIP";
26791
+ } | {
26792
+ chain: "Ethereum";
26793
+ asset: "ETH";
26794
+ } | {
26795
+ chain: "Ethereum";
26796
+ asset: "USDC";
26797
+ } | {
26798
+ chain: "Ethereum";
26799
+ asset: "USDT";
26800
+ } | {
26801
+ chain: "Arbitrum";
26802
+ asset: "ETH";
26803
+ } | {
26804
+ chain: "Arbitrum";
26805
+ asset: "USDC";
26806
+ } | {
26807
+ chain: "Solana";
26808
+ asset: "SOL";
26809
+ } | {
26810
+ chain: "Solana";
26811
+ asset: "USDC";
26812
+ } | {
26813
+ chain: "Assethub";
26814
+ asset: "DOT";
26815
+ } | {
26816
+ chain: "Assethub";
26817
+ asset: "USDC";
26818
+ } | {
26819
+ chain: "Assethub";
26820
+ asset: "USDT";
26821
+ };
26822
+ loan_id: number;
26823
+ created_at: number;
26824
+ principal_amount: string | number;
26825
+ }>, "many">;
26826
+ liquidation_status: z.ZodObject<{
26827
+ liquidation_swaps: z.ZodArray<z.ZodObject<{
26828
+ swap_request_id: z.ZodNumber;
26829
+ loan_id: z.ZodNumber;
26830
+ }, "strip", z.ZodTypeAny, {
26831
+ loan_id: number;
26832
+ swap_request_id: number;
26833
+ }, {
26834
+ loan_id: number;
26835
+ swap_request_id: number;
26836
+ }>, "many">;
26837
+ is_hard: z.ZodBoolean;
26838
+ }, "strip", z.ZodTypeAny, {
26839
+ liquidation_swaps: {
26840
+ loan_id: number;
26841
+ swap_request_id: number;
26842
+ }[];
26843
+ is_hard: boolean;
26844
+ }, {
26845
+ liquidation_swaps: {
26846
+ loan_id: number;
26847
+ swap_request_id: number;
26848
+ }[];
26849
+ is_hard: boolean;
26850
+ }>;
26851
+ }, "strip", z.ZodTypeAny, {
26852
+ account: `cF${string}`;
26853
+ primary_collateral_asset: {
26854
+ chain: "Bitcoin";
26855
+ asset: "BTC";
26856
+ } | {
26857
+ chain: "Polkadot";
26858
+ asset: "DOT";
26859
+ } | {
26860
+ chain: "Ethereum";
26861
+ asset: "FLIP";
26862
+ } | {
26863
+ chain: "Ethereum";
26864
+ asset: "ETH";
26865
+ } | {
26866
+ chain: "Ethereum";
26867
+ asset: "USDC";
26868
+ } | {
26869
+ chain: "Ethereum";
26870
+ asset: "USDT";
26871
+ } | {
26872
+ chain: "Arbitrum";
26873
+ asset: "ETH";
26874
+ } | {
26875
+ chain: "Arbitrum";
26876
+ asset: "USDC";
26877
+ } | {
26878
+ chain: "Solana";
26879
+ asset: "SOL";
26880
+ } | {
26881
+ chain: "Solana";
26882
+ asset: "USDC";
26883
+ } | {
26884
+ chain: "Assethub";
26885
+ asset: "DOT";
26886
+ } | {
26887
+ chain: "Assethub";
26888
+ asset: "USDC";
26889
+ } | {
26890
+ chain: "Assethub";
26891
+ asset: "USDT";
26892
+ };
26893
+ ltv_ratio: bigint;
26894
+ collateral: (({
26895
+ chain: "Bitcoin";
26896
+ asset: "BTC";
26897
+ } | {
26898
+ chain: "Polkadot";
26899
+ asset: "DOT";
26900
+ } | {
26901
+ chain: "Ethereum";
26902
+ asset: "FLIP";
26903
+ } | {
26904
+ chain: "Ethereum";
26905
+ asset: "ETH";
26906
+ } | {
26907
+ chain: "Ethereum";
26908
+ asset: "USDC";
26909
+ } | {
26910
+ chain: "Ethereum";
26911
+ asset: "USDT";
26912
+ } | {
26913
+ chain: "Arbitrum";
26914
+ asset: "ETH";
26915
+ } | {
26916
+ chain: "Arbitrum";
26917
+ asset: "USDC";
26918
+ } | {
26919
+ chain: "Solana";
26920
+ asset: "SOL";
26921
+ } | {
26922
+ chain: "Solana";
26923
+ asset: "USDC";
26924
+ } | {
26925
+ chain: "Assethub";
26926
+ asset: "DOT";
26927
+ } | {
26928
+ chain: "Assethub";
26929
+ asset: "USDC";
26930
+ } | {
26931
+ chain: "Assethub";
26932
+ asset: "USDT";
26933
+ }) & {
26934
+ amount: bigint;
26935
+ })[];
26936
+ loans: {
26937
+ asset: {
26938
+ chain: "Bitcoin";
26939
+ asset: "BTC";
26940
+ } | {
26941
+ chain: "Polkadot";
26942
+ asset: "DOT";
26943
+ } | {
26944
+ chain: "Ethereum";
26945
+ asset: "FLIP";
26946
+ } | {
26947
+ chain: "Ethereum";
26948
+ asset: "ETH";
26949
+ } | {
26950
+ chain: "Ethereum";
26951
+ asset: "USDC";
26952
+ } | {
26953
+ chain: "Ethereum";
26954
+ asset: "USDT";
26955
+ } | {
26956
+ chain: "Arbitrum";
26957
+ asset: "ETH";
26958
+ } | {
26959
+ chain: "Arbitrum";
26960
+ asset: "USDC";
26961
+ } | {
26962
+ chain: "Solana";
26963
+ asset: "SOL";
26964
+ } | {
26965
+ chain: "Solana";
26966
+ asset: "USDC";
26967
+ } | {
26968
+ chain: "Assethub";
26969
+ asset: "DOT";
26970
+ } | {
26971
+ chain: "Assethub";
26972
+ asset: "USDC";
26973
+ } | {
26974
+ chain: "Assethub";
26975
+ asset: "USDT";
26976
+ };
26977
+ loan_id: number;
26978
+ created_at: number;
26979
+ principal_amount: bigint;
26980
+ }[];
26981
+ liquidation_status: {
26982
+ liquidation_swaps: {
26983
+ loan_id: number;
26984
+ swap_request_id: number;
26985
+ }[];
26986
+ is_hard: boolean;
26987
+ };
26988
+ }, {
26989
+ account: string;
26990
+ primary_collateral_asset: {
26991
+ chain: "Bitcoin";
26992
+ asset: "BTC";
26993
+ } | {
26994
+ chain: "Polkadot";
26995
+ asset: "DOT";
26996
+ } | {
26997
+ chain: "Ethereum";
26998
+ asset: "FLIP";
26999
+ } | {
27000
+ chain: "Ethereum";
27001
+ asset: "ETH";
27002
+ } | {
27003
+ chain: "Ethereum";
27004
+ asset: "USDC";
27005
+ } | {
27006
+ chain: "Ethereum";
27007
+ asset: "USDT";
27008
+ } | {
27009
+ chain: "Arbitrum";
27010
+ asset: "ETH";
27011
+ } | {
27012
+ chain: "Arbitrum";
27013
+ asset: "USDC";
27014
+ } | {
27015
+ chain: "Solana";
27016
+ asset: "SOL";
27017
+ } | {
27018
+ chain: "Solana";
27019
+ asset: "USDC";
27020
+ } | {
27021
+ chain: "Assethub";
27022
+ asset: "DOT";
27023
+ } | {
27024
+ chain: "Assethub";
27025
+ asset: "USDC";
27026
+ } | {
27027
+ chain: "Assethub";
27028
+ asset: "USDT";
27029
+ };
27030
+ ltv_ratio: string | number;
27031
+ collateral: (({
27032
+ chain: "Bitcoin";
27033
+ asset: "BTC";
27034
+ } | {
27035
+ chain: "Polkadot";
27036
+ asset: "DOT";
27037
+ } | {
27038
+ chain: "Ethereum";
27039
+ asset: "FLIP";
27040
+ } | {
27041
+ chain: "Ethereum";
27042
+ asset: "ETH";
27043
+ } | {
27044
+ chain: "Ethereum";
27045
+ asset: "USDC";
27046
+ } | {
27047
+ chain: "Ethereum";
27048
+ asset: "USDT";
27049
+ } | {
27050
+ chain: "Arbitrum";
27051
+ asset: "ETH";
27052
+ } | {
27053
+ chain: "Arbitrum";
27054
+ asset: "USDC";
27055
+ } | {
27056
+ chain: "Solana";
27057
+ asset: "SOL";
27058
+ } | {
27059
+ chain: "Solana";
27060
+ asset: "USDC";
27061
+ } | {
27062
+ chain: "Assethub";
27063
+ asset: "DOT";
27064
+ } | {
27065
+ chain: "Assethub";
27066
+ asset: "USDC";
27067
+ } | {
27068
+ chain: "Assethub";
27069
+ asset: "USDT";
27070
+ }) & {
27071
+ amount: string | number;
27072
+ })[];
27073
+ loans: {
27074
+ asset: {
27075
+ chain: "Bitcoin";
27076
+ asset: "BTC";
27077
+ } | {
27078
+ chain: "Polkadot";
27079
+ asset: "DOT";
27080
+ } | {
27081
+ chain: "Ethereum";
27082
+ asset: "FLIP";
27083
+ } | {
27084
+ chain: "Ethereum";
27085
+ asset: "ETH";
27086
+ } | {
27087
+ chain: "Ethereum";
27088
+ asset: "USDC";
27089
+ } | {
27090
+ chain: "Ethereum";
27091
+ asset: "USDT";
27092
+ } | {
27093
+ chain: "Arbitrum";
27094
+ asset: "ETH";
27095
+ } | {
27096
+ chain: "Arbitrum";
27097
+ asset: "USDC";
27098
+ } | {
27099
+ chain: "Solana";
27100
+ asset: "SOL";
27101
+ } | {
27102
+ chain: "Solana";
27103
+ asset: "USDC";
27104
+ } | {
27105
+ chain: "Assethub";
27106
+ asset: "DOT";
27107
+ } | {
27108
+ chain: "Assethub";
27109
+ asset: "USDC";
27110
+ } | {
27111
+ chain: "Assethub";
27112
+ asset: "USDT";
27113
+ };
27114
+ loan_id: number;
27115
+ created_at: number;
27116
+ principal_amount: string | number;
27117
+ }[];
27118
+ liquidation_status: {
27119
+ liquidation_swaps: {
27120
+ loan_id: number;
27121
+ swap_request_id: number;
27122
+ }[];
27123
+ is_hard: boolean;
27124
+ };
27125
+ }>, "many">;
26369
27126
  };
26370
27127
  type RpcMethod = keyof RpcRequest;
26371
27128
  type RpcResponse<T extends RpcMethod> = z.input<(typeof rpcResult)[T]>;