@0dotxyz/p0-ts-sdk 2.2.3-alpha.0 → 2.2.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/vendor.d.ts CHANGED
@@ -23229,8 +23229,2842 @@ type JupLend = {
23229
23229
  ];
23230
23230
  };
23231
23231
 
23232
+ /**
23233
+ * Program IDL in camelCase format in order to be used in JS/TS.
23234
+ *
23235
+ * Note that this is only a type helper and is not the actual IDL. The original
23236
+ * IDL can be found at `target/idl/liquidity.json`.
23237
+ */
23238
+ type Liquidity = {
23239
+ address: "jupeiUmn818Jg1ekPURTpr4mFo29p46vygyykFJ3wZC";
23240
+ metadata: {
23241
+ name: "liquidity";
23242
+ version: "0.1.0";
23243
+ spec: "0.1.0";
23244
+ description: "Created with Anchor";
23245
+ };
23246
+ instructions: [
23247
+ {
23248
+ name: "changeStatus";
23249
+ discriminator: [236, 145, 131, 228, 227, 17, 192, 255];
23250
+ accounts: [
23251
+ {
23252
+ name: "authority";
23253
+ signer: true;
23254
+ },
23255
+ {
23256
+ name: "liquidity";
23257
+ writable: true;
23258
+ },
23259
+ {
23260
+ name: "authList";
23261
+ }
23262
+ ];
23263
+ args: [
23264
+ {
23265
+ name: "status";
23266
+ type: "bool";
23267
+ }
23268
+ ];
23269
+ },
23270
+ {
23271
+ name: "claim";
23272
+ discriminator: [62, 198, 214, 193, 213, 159, 108, 210];
23273
+ accounts: [
23274
+ {
23275
+ name: "user";
23276
+ signer: true;
23277
+ relations: ["claimAccount"];
23278
+ },
23279
+ {
23280
+ name: "liquidity";
23281
+ },
23282
+ {
23283
+ name: "tokenReserve";
23284
+ writable: true;
23285
+ },
23286
+ {
23287
+ name: "mint";
23288
+ relations: ["tokenReserve", "claimAccount"];
23289
+ },
23290
+ {
23291
+ name: "recipientTokenAccount";
23292
+ writable: true;
23293
+ pda: {
23294
+ seeds: [
23295
+ {
23296
+ kind: "arg";
23297
+ path: "recipient";
23298
+ },
23299
+ {
23300
+ kind: "account";
23301
+ path: "tokenProgram";
23302
+ },
23303
+ {
23304
+ kind: "account";
23305
+ path: "mint";
23306
+ }
23307
+ ];
23308
+ program: {
23309
+ kind: "const";
23310
+ value: [
23311
+ 140,
23312
+ 151,
23313
+ 37,
23314
+ 143,
23315
+ 78,
23316
+ 36,
23317
+ 137,
23318
+ 241,
23319
+ 187,
23320
+ 61,
23321
+ 16,
23322
+ 41,
23323
+ 20,
23324
+ 142,
23325
+ 13,
23326
+ 131,
23327
+ 11,
23328
+ 90,
23329
+ 19,
23330
+ 153,
23331
+ 218,
23332
+ 255,
23333
+ 16,
23334
+ 132,
23335
+ 4,
23336
+ 142,
23337
+ 123,
23338
+ 216,
23339
+ 219,
23340
+ 233,
23341
+ 248,
23342
+ 89
23343
+ ];
23344
+ };
23345
+ };
23346
+ },
23347
+ {
23348
+ name: "vault";
23349
+ writable: true;
23350
+ pda: {
23351
+ seeds: [
23352
+ {
23353
+ kind: "account";
23354
+ path: "liquidity";
23355
+ },
23356
+ {
23357
+ kind: "account";
23358
+ path: "tokenProgram";
23359
+ },
23360
+ {
23361
+ kind: "account";
23362
+ path: "mint";
23363
+ }
23364
+ ];
23365
+ program: {
23366
+ kind: "const";
23367
+ value: [
23368
+ 140,
23369
+ 151,
23370
+ 37,
23371
+ 143,
23372
+ 78,
23373
+ 36,
23374
+ 137,
23375
+ 241,
23376
+ 187,
23377
+ 61,
23378
+ 16,
23379
+ 41,
23380
+ 20,
23381
+ 142,
23382
+ 13,
23383
+ 131,
23384
+ 11,
23385
+ 90,
23386
+ 19,
23387
+ 153,
23388
+ 218,
23389
+ 255,
23390
+ 16,
23391
+ 132,
23392
+ 4,
23393
+ 142,
23394
+ 123,
23395
+ 216,
23396
+ 219,
23397
+ 233,
23398
+ 248,
23399
+ 89
23400
+ ];
23401
+ };
23402
+ };
23403
+ relations: ["tokenReserve"];
23404
+ },
23405
+ {
23406
+ name: "claimAccount";
23407
+ writable: true;
23408
+ },
23409
+ {
23410
+ name: "tokenProgram";
23411
+ },
23412
+ {
23413
+ name: "associatedTokenProgram";
23414
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
23415
+ }
23416
+ ];
23417
+ args: [
23418
+ {
23419
+ name: "recipient";
23420
+ type: "pubkey";
23421
+ }
23422
+ ];
23423
+ },
23424
+ {
23425
+ name: "closeClaimAccount";
23426
+ discriminator: [241, 146, 203, 216, 58, 222, 91, 118];
23427
+ accounts: [
23428
+ {
23429
+ name: "user";
23430
+ writable: true;
23431
+ signer: true;
23432
+ relations: ["claimAccount"];
23433
+ },
23434
+ {
23435
+ name: "claimAccount";
23436
+ writable: true;
23437
+ },
23438
+ {
23439
+ name: "systemProgram";
23440
+ address: "11111111111111111111111111111111";
23441
+ }
23442
+ ];
23443
+ args: [
23444
+ {
23445
+ name: "mint";
23446
+ type: "pubkey";
23447
+ }
23448
+ ];
23449
+ },
23450
+ {
23451
+ name: "collectRevenue";
23452
+ discriminator: [87, 96, 211, 36, 240, 43, 246, 87];
23453
+ accounts: [
23454
+ {
23455
+ name: "authority";
23456
+ writable: true;
23457
+ signer: true;
23458
+ },
23459
+ {
23460
+ name: "liquidity";
23461
+ },
23462
+ {
23463
+ name: "authList";
23464
+ },
23465
+ {
23466
+ name: "mint";
23467
+ relations: ["tokenReserve"];
23468
+ },
23469
+ {
23470
+ name: "revenueCollectorAccount";
23471
+ writable: true;
23472
+ pda: {
23473
+ seeds: [
23474
+ {
23475
+ kind: "account";
23476
+ path: "revenueCollector";
23477
+ },
23478
+ {
23479
+ kind: "account";
23480
+ path: "tokenProgram";
23481
+ },
23482
+ {
23483
+ kind: "account";
23484
+ path: "mint";
23485
+ }
23486
+ ];
23487
+ program: {
23488
+ kind: "const";
23489
+ value: [
23490
+ 140,
23491
+ 151,
23492
+ 37,
23493
+ 143,
23494
+ 78,
23495
+ 36,
23496
+ 137,
23497
+ 241,
23498
+ 187,
23499
+ 61,
23500
+ 16,
23501
+ 41,
23502
+ 20,
23503
+ 142,
23504
+ 13,
23505
+ 131,
23506
+ 11,
23507
+ 90,
23508
+ 19,
23509
+ 153,
23510
+ 218,
23511
+ 255,
23512
+ 16,
23513
+ 132,
23514
+ 4,
23515
+ 142,
23516
+ 123,
23517
+ 216,
23518
+ 219,
23519
+ 233,
23520
+ 248,
23521
+ 89
23522
+ ];
23523
+ };
23524
+ };
23525
+ },
23526
+ {
23527
+ name: "revenueCollector";
23528
+ },
23529
+ {
23530
+ name: "tokenReserve";
23531
+ writable: true;
23532
+ },
23533
+ {
23534
+ name: "vault";
23535
+ writable: true;
23536
+ pda: {
23537
+ seeds: [
23538
+ {
23539
+ kind: "account";
23540
+ path: "liquidity";
23541
+ },
23542
+ {
23543
+ kind: "account";
23544
+ path: "tokenProgram";
23545
+ },
23546
+ {
23547
+ kind: "account";
23548
+ path: "mint";
23549
+ }
23550
+ ];
23551
+ program: {
23552
+ kind: "const";
23553
+ value: [
23554
+ 140,
23555
+ 151,
23556
+ 37,
23557
+ 143,
23558
+ 78,
23559
+ 36,
23560
+ 137,
23561
+ 241,
23562
+ 187,
23563
+ 61,
23564
+ 16,
23565
+ 41,
23566
+ 20,
23567
+ 142,
23568
+ 13,
23569
+ 131,
23570
+ 11,
23571
+ 90,
23572
+ 19,
23573
+ 153,
23574
+ 218,
23575
+ 255,
23576
+ 16,
23577
+ 132,
23578
+ 4,
23579
+ 142,
23580
+ 123,
23581
+ 216,
23582
+ 219,
23583
+ 233,
23584
+ 248,
23585
+ 89
23586
+ ];
23587
+ };
23588
+ };
23589
+ relations: ["tokenReserve"];
23590
+ },
23591
+ {
23592
+ name: "tokenProgram";
23593
+ },
23594
+ {
23595
+ name: "associatedTokenProgram";
23596
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
23597
+ },
23598
+ {
23599
+ name: "systemProgram";
23600
+ address: "11111111111111111111111111111111";
23601
+ }
23602
+ ];
23603
+ args: [];
23604
+ },
23605
+ {
23606
+ name: "initClaimAccount";
23607
+ discriminator: [112, 141, 47, 170, 42, 99, 144, 145];
23608
+ accounts: [
23609
+ {
23610
+ name: "signer";
23611
+ writable: true;
23612
+ signer: true;
23613
+ },
23614
+ {
23615
+ name: "claimAccount";
23616
+ writable: true;
23617
+ pda: {
23618
+ seeds: [
23619
+ {
23620
+ kind: "const";
23621
+ value: [117, 115, 101, 114, 95, 99, 108, 97, 105, 109];
23622
+ },
23623
+ {
23624
+ kind: "arg";
23625
+ path: "user";
23626
+ },
23627
+ {
23628
+ kind: "arg";
23629
+ path: "mint";
23630
+ }
23631
+ ];
23632
+ };
23633
+ },
23634
+ {
23635
+ name: "systemProgram";
23636
+ address: "11111111111111111111111111111111";
23637
+ }
23638
+ ];
23639
+ args: [
23640
+ {
23641
+ name: "mint";
23642
+ type: "pubkey";
23643
+ },
23644
+ {
23645
+ name: "user";
23646
+ type: "pubkey";
23647
+ }
23648
+ ];
23649
+ },
23650
+ {
23651
+ name: "initLiquidity";
23652
+ discriminator: [95, 189, 216, 183, 188, 62, 244, 108];
23653
+ accounts: [
23654
+ {
23655
+ name: "signer";
23656
+ writable: true;
23657
+ signer: true;
23658
+ },
23659
+ {
23660
+ name: "liquidity";
23661
+ writable: true;
23662
+ pda: {
23663
+ seeds: [
23664
+ {
23665
+ kind: "const";
23666
+ value: [108, 105, 113, 117, 105, 100, 105, 116, 121];
23667
+ }
23668
+ ];
23669
+ };
23670
+ },
23671
+ {
23672
+ name: "authList";
23673
+ writable: true;
23674
+ pda: {
23675
+ seeds: [
23676
+ {
23677
+ kind: "const";
23678
+ value: [97, 117, 116, 104, 95, 108, 105, 115, 116];
23679
+ }
23680
+ ];
23681
+ };
23682
+ },
23683
+ {
23684
+ name: "systemProgram";
23685
+ address: "11111111111111111111111111111111";
23686
+ }
23687
+ ];
23688
+ args: [
23689
+ {
23690
+ name: "authority";
23691
+ type: "pubkey";
23692
+ },
23693
+ {
23694
+ name: "revenueCollector";
23695
+ type: "pubkey";
23696
+ }
23697
+ ];
23698
+ },
23699
+ {
23700
+ name: "initNewProtocol";
23701
+ discriminator: [193, 147, 5, 32, 138, 135, 213, 158];
23702
+ accounts: [
23703
+ {
23704
+ name: "authority";
23705
+ writable: true;
23706
+ signer: true;
23707
+ },
23708
+ {
23709
+ name: "authList";
23710
+ },
23711
+ {
23712
+ name: "userSupplyPosition";
23713
+ writable: true;
23714
+ pda: {
23715
+ seeds: [
23716
+ {
23717
+ kind: "const";
23718
+ value: [
23719
+ 117,
23720
+ 115,
23721
+ 101,
23722
+ 114,
23723
+ 95,
23724
+ 115,
23725
+ 117,
23726
+ 112,
23727
+ 112,
23728
+ 108,
23729
+ 121,
23730
+ 95,
23731
+ 112,
23732
+ 111,
23733
+ 115,
23734
+ 105,
23735
+ 116,
23736
+ 105,
23737
+ 111,
23738
+ 110
23739
+ ];
23740
+ },
23741
+ {
23742
+ kind: "arg";
23743
+ path: "supplyMint";
23744
+ },
23745
+ {
23746
+ kind: "arg";
23747
+ path: "protocol";
23748
+ }
23749
+ ];
23750
+ };
23751
+ },
23752
+ {
23753
+ name: "userBorrowPosition";
23754
+ writable: true;
23755
+ pda: {
23756
+ seeds: [
23757
+ {
23758
+ kind: "const";
23759
+ value: [
23760
+ 117,
23761
+ 115,
23762
+ 101,
23763
+ 114,
23764
+ 95,
23765
+ 98,
23766
+ 111,
23767
+ 114,
23768
+ 114,
23769
+ 111,
23770
+ 119,
23771
+ 95,
23772
+ 112,
23773
+ 111,
23774
+ 115,
23775
+ 105,
23776
+ 116,
23777
+ 105,
23778
+ 111,
23779
+ 110
23780
+ ];
23781
+ },
23782
+ {
23783
+ kind: "arg";
23784
+ path: "borrowMint";
23785
+ },
23786
+ {
23787
+ kind: "arg";
23788
+ path: "protocol";
23789
+ }
23790
+ ];
23791
+ };
23792
+ },
23793
+ {
23794
+ name: "systemProgram";
23795
+ address: "11111111111111111111111111111111";
23796
+ }
23797
+ ];
23798
+ args: [
23799
+ {
23800
+ name: "supplyMint";
23801
+ type: "pubkey";
23802
+ },
23803
+ {
23804
+ name: "borrowMint";
23805
+ type: "pubkey";
23806
+ },
23807
+ {
23808
+ name: "protocol";
23809
+ type: "pubkey";
23810
+ }
23811
+ ];
23812
+ },
23813
+ {
23814
+ name: "initTokenReserve";
23815
+ discriminator: [228, 235, 65, 129, 159, 15, 6, 84];
23816
+ accounts: [
23817
+ {
23818
+ name: "authority";
23819
+ writable: true;
23820
+ signer: true;
23821
+ },
23822
+ {
23823
+ name: "liquidity";
23824
+ },
23825
+ {
23826
+ name: "authList";
23827
+ },
23828
+ {
23829
+ name: "mint";
23830
+ },
23831
+ {
23832
+ name: "vault";
23833
+ writable: true;
23834
+ pda: {
23835
+ seeds: [
23836
+ {
23837
+ kind: "account";
23838
+ path: "liquidity";
23839
+ },
23840
+ {
23841
+ kind: "account";
23842
+ path: "tokenProgram";
23843
+ },
23844
+ {
23845
+ kind: "account";
23846
+ path: "mint";
23847
+ }
23848
+ ];
23849
+ program: {
23850
+ kind: "const";
23851
+ value: [
23852
+ 140,
23853
+ 151,
23854
+ 37,
23855
+ 143,
23856
+ 78,
23857
+ 36,
23858
+ 137,
23859
+ 241,
23860
+ 187,
23861
+ 61,
23862
+ 16,
23863
+ 41,
23864
+ 20,
23865
+ 142,
23866
+ 13,
23867
+ 131,
23868
+ 11,
23869
+ 90,
23870
+ 19,
23871
+ 153,
23872
+ 218,
23873
+ 255,
23874
+ 16,
23875
+ 132,
23876
+ 4,
23877
+ 142,
23878
+ 123,
23879
+ 216,
23880
+ 219,
23881
+ 233,
23882
+ 248,
23883
+ 89
23884
+ ];
23885
+ };
23886
+ };
23887
+ },
23888
+ {
23889
+ name: "rateModel";
23890
+ writable: true;
23891
+ pda: {
23892
+ seeds: [
23893
+ {
23894
+ kind: "const";
23895
+ value: [114, 97, 116, 101, 95, 109, 111, 100, 101, 108];
23896
+ },
23897
+ {
23898
+ kind: "account";
23899
+ path: "mint";
23900
+ }
23901
+ ];
23902
+ };
23903
+ },
23904
+ {
23905
+ name: "tokenReserve";
23906
+ writable: true;
23907
+ pda: {
23908
+ seeds: [
23909
+ {
23910
+ kind: "const";
23911
+ value: [114, 101, 115, 101, 114, 118, 101];
23912
+ },
23913
+ {
23914
+ kind: "account";
23915
+ path: "mint";
23916
+ }
23917
+ ];
23918
+ };
23919
+ },
23920
+ {
23921
+ name: "tokenProgram";
23922
+ },
23923
+ {
23924
+ name: "associatedTokenProgram";
23925
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
23926
+ },
23927
+ {
23928
+ name: "systemProgram";
23929
+ address: "11111111111111111111111111111111";
23930
+ }
23931
+ ];
23932
+ args: [];
23933
+ },
23934
+ {
23935
+ name: "operate";
23936
+ discriminator: [217, 106, 208, 99, 116, 151, 42, 135];
23937
+ accounts: [
23938
+ {
23939
+ name: "protocol";
23940
+ signer: true;
23941
+ relations: ["userSupplyPosition", "userBorrowPosition"];
23942
+ },
23943
+ {
23944
+ name: "liquidity";
23945
+ },
23946
+ {
23947
+ name: "tokenReserve";
23948
+ writable: true;
23949
+ },
23950
+ {
23951
+ name: "mint";
23952
+ relations: ["tokenReserve", "rateModel", "borrowClaimAccount", "withdrawClaimAccount"];
23953
+ },
23954
+ {
23955
+ name: "vault";
23956
+ writable: true;
23957
+ pda: {
23958
+ seeds: [
23959
+ {
23960
+ kind: "account";
23961
+ path: "liquidity";
23962
+ },
23963
+ {
23964
+ kind: "account";
23965
+ path: "tokenProgram";
23966
+ },
23967
+ {
23968
+ kind: "account";
23969
+ path: "mint";
23970
+ }
23971
+ ];
23972
+ program: {
23973
+ kind: "const";
23974
+ value: [
23975
+ 140,
23976
+ 151,
23977
+ 37,
23978
+ 143,
23979
+ 78,
23980
+ 36,
23981
+ 137,
23982
+ 241,
23983
+ 187,
23984
+ 61,
23985
+ 16,
23986
+ 41,
23987
+ 20,
23988
+ 142,
23989
+ 13,
23990
+ 131,
23991
+ 11,
23992
+ 90,
23993
+ 19,
23994
+ 153,
23995
+ 218,
23996
+ 255,
23997
+ 16,
23998
+ 132,
23999
+ 4,
24000
+ 142,
24001
+ 123,
24002
+ 216,
24003
+ 219,
24004
+ 233,
24005
+ 248,
24006
+ 89
24007
+ ];
24008
+ };
24009
+ };
24010
+ relations: ["tokenReserve"];
24011
+ },
24012
+ {
24013
+ name: "userSupplyPosition";
24014
+ writable: true;
24015
+ optional: true;
24016
+ },
24017
+ {
24018
+ name: "userBorrowPosition";
24019
+ writable: true;
24020
+ optional: true;
24021
+ },
24022
+ {
24023
+ name: "rateModel";
24024
+ },
24025
+ {
24026
+ name: "withdrawToAccount";
24027
+ writable: true;
24028
+ optional: true;
24029
+ pda: {
24030
+ seeds: [
24031
+ {
24032
+ kind: "arg";
24033
+ path: "withdrawTo";
24034
+ },
24035
+ {
24036
+ kind: "account";
24037
+ path: "tokenProgram";
24038
+ },
24039
+ {
24040
+ kind: "account";
24041
+ path: "mint";
24042
+ }
24043
+ ];
24044
+ program: {
24045
+ kind: "const";
24046
+ value: [
24047
+ 140,
24048
+ 151,
24049
+ 37,
24050
+ 143,
24051
+ 78,
24052
+ 36,
24053
+ 137,
24054
+ 241,
24055
+ 187,
24056
+ 61,
24057
+ 16,
24058
+ 41,
24059
+ 20,
24060
+ 142,
24061
+ 13,
24062
+ 131,
24063
+ 11,
24064
+ 90,
24065
+ 19,
24066
+ 153,
24067
+ 218,
24068
+ 255,
24069
+ 16,
24070
+ 132,
24071
+ 4,
24072
+ 142,
24073
+ 123,
24074
+ 216,
24075
+ 219,
24076
+ 233,
24077
+ 248,
24078
+ 89
24079
+ ];
24080
+ };
24081
+ };
24082
+ },
24083
+ {
24084
+ name: "borrowToAccount";
24085
+ writable: true;
24086
+ optional: true;
24087
+ pda: {
24088
+ seeds: [
24089
+ {
24090
+ kind: "arg";
24091
+ path: "borrowTo";
24092
+ },
24093
+ {
24094
+ kind: "account";
24095
+ path: "tokenProgram";
24096
+ },
24097
+ {
24098
+ kind: "account";
24099
+ path: "mint";
24100
+ }
24101
+ ];
24102
+ program: {
24103
+ kind: "const";
24104
+ value: [
24105
+ 140,
24106
+ 151,
24107
+ 37,
24108
+ 143,
24109
+ 78,
24110
+ 36,
24111
+ 137,
24112
+ 241,
24113
+ 187,
24114
+ 61,
24115
+ 16,
24116
+ 41,
24117
+ 20,
24118
+ 142,
24119
+ 13,
24120
+ 131,
24121
+ 11,
24122
+ 90,
24123
+ 19,
24124
+ 153,
24125
+ 218,
24126
+ 255,
24127
+ 16,
24128
+ 132,
24129
+ 4,
24130
+ 142,
24131
+ 123,
24132
+ 216,
24133
+ 219,
24134
+ 233,
24135
+ 248,
24136
+ 89
24137
+ ];
24138
+ };
24139
+ };
24140
+ },
24141
+ {
24142
+ name: "borrowClaimAccount";
24143
+ writable: true;
24144
+ optional: true;
24145
+ },
24146
+ {
24147
+ name: "withdrawClaimAccount";
24148
+ writable: true;
24149
+ optional: true;
24150
+ },
24151
+ {
24152
+ name: "tokenProgram";
24153
+ },
24154
+ {
24155
+ name: "associatedTokenProgram";
24156
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
24157
+ }
24158
+ ];
24159
+ args: [
24160
+ {
24161
+ name: "supplyAmount";
24162
+ type: "i128";
24163
+ },
24164
+ {
24165
+ name: "borrowAmount";
24166
+ type: "i128";
24167
+ },
24168
+ {
24169
+ name: "withdrawTo";
24170
+ type: "pubkey";
24171
+ },
24172
+ {
24173
+ name: "borrowTo";
24174
+ type: "pubkey";
24175
+ },
24176
+ {
24177
+ name: "transferType";
24178
+ type: {
24179
+ defined: {
24180
+ name: "transferType";
24181
+ };
24182
+ };
24183
+ }
24184
+ ];
24185
+ },
24186
+ {
24187
+ name: "pauseUser";
24188
+ discriminator: [18, 63, 43, 94, 239, 53, 101, 14];
24189
+ accounts: [
24190
+ {
24191
+ name: "authority";
24192
+ signer: true;
24193
+ },
24194
+ {
24195
+ name: "authList";
24196
+ },
24197
+ {
24198
+ name: "userSupplyPosition";
24199
+ writable: true;
24200
+ },
24201
+ {
24202
+ name: "userBorrowPosition";
24203
+ writable: true;
24204
+ }
24205
+ ];
24206
+ args: [
24207
+ {
24208
+ name: "protocol";
24209
+ type: "pubkey";
24210
+ },
24211
+ {
24212
+ name: "supplyMint";
24213
+ type: "pubkey";
24214
+ },
24215
+ {
24216
+ name: "borrowMint";
24217
+ type: "pubkey";
24218
+ },
24219
+ {
24220
+ name: "supplyStatus";
24221
+ type: {
24222
+ option: "u8";
24223
+ };
24224
+ },
24225
+ {
24226
+ name: "borrowStatus";
24227
+ type: {
24228
+ option: "u8";
24229
+ };
24230
+ }
24231
+ ];
24232
+ },
24233
+ {
24234
+ name: "preOperate";
24235
+ discriminator: [129, 205, 158, 155, 198, 155, 72, 133];
24236
+ accounts: [
24237
+ {
24238
+ name: "protocol";
24239
+ signer: true;
24240
+ relations: ["userSupplyPosition", "userBorrowPosition"];
24241
+ },
24242
+ {
24243
+ name: "liquidity";
24244
+ },
24245
+ {
24246
+ name: "userSupplyPosition";
24247
+ optional: true;
24248
+ },
24249
+ {
24250
+ name: "userBorrowPosition";
24251
+ optional: true;
24252
+ },
24253
+ {
24254
+ name: "vault";
24255
+ pda: {
24256
+ seeds: [
24257
+ {
24258
+ kind: "account";
24259
+ path: "liquidity";
24260
+ },
24261
+ {
24262
+ kind: "account";
24263
+ path: "tokenProgram";
24264
+ },
24265
+ {
24266
+ kind: "arg";
24267
+ path: "mint";
24268
+ }
24269
+ ];
24270
+ program: {
24271
+ kind: "const";
24272
+ value: [
24273
+ 140,
24274
+ 151,
24275
+ 37,
24276
+ 143,
24277
+ 78,
24278
+ 36,
24279
+ 137,
24280
+ 241,
24281
+ 187,
24282
+ 61,
24283
+ 16,
24284
+ 41,
24285
+ 20,
24286
+ 142,
24287
+ 13,
24288
+ 131,
24289
+ 11,
24290
+ 90,
24291
+ 19,
24292
+ 153,
24293
+ 218,
24294
+ 255,
24295
+ 16,
24296
+ 132,
24297
+ 4,
24298
+ 142,
24299
+ 123,
24300
+ 216,
24301
+ 219,
24302
+ 233,
24303
+ 248,
24304
+ 89
24305
+ ];
24306
+ };
24307
+ };
24308
+ relations: ["tokenReserve"];
24309
+ },
24310
+ {
24311
+ name: "tokenReserve";
24312
+ writable: true;
24313
+ },
24314
+ {
24315
+ name: "associatedTokenProgram";
24316
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
24317
+ },
24318
+ {
24319
+ name: "tokenProgram";
24320
+ }
24321
+ ];
24322
+ args: [
24323
+ {
24324
+ name: "mint";
24325
+ type: "pubkey";
24326
+ }
24327
+ ];
24328
+ },
24329
+ {
24330
+ name: "unpauseUser";
24331
+ discriminator: [71, 115, 128, 252, 182, 126, 234, 62];
24332
+ accounts: [
24333
+ {
24334
+ name: "authority";
24335
+ signer: true;
24336
+ },
24337
+ {
24338
+ name: "authList";
24339
+ },
24340
+ {
24341
+ name: "userSupplyPosition";
24342
+ writable: true;
24343
+ },
24344
+ {
24345
+ name: "userBorrowPosition";
24346
+ writable: true;
24347
+ }
24348
+ ];
24349
+ args: [
24350
+ {
24351
+ name: "protocol";
24352
+ type: "pubkey";
24353
+ },
24354
+ {
24355
+ name: "supplyMint";
24356
+ type: "pubkey";
24357
+ },
24358
+ {
24359
+ name: "borrowMint";
24360
+ type: "pubkey";
24361
+ },
24362
+ {
24363
+ name: "supplyStatus";
24364
+ type: {
24365
+ option: "u8";
24366
+ };
24367
+ },
24368
+ {
24369
+ name: "borrowStatus";
24370
+ type: {
24371
+ option: "u8";
24372
+ };
24373
+ }
24374
+ ];
24375
+ },
24376
+ {
24377
+ name: "updateAuthority";
24378
+ discriminator: [32, 46, 64, 28, 149, 75, 243, 88];
24379
+ accounts: [
24380
+ {
24381
+ name: "authority";
24382
+ signer: true;
24383
+ },
24384
+ {
24385
+ name: "liquidity";
24386
+ writable: true;
24387
+ },
24388
+ {
24389
+ name: "authList";
24390
+ writable: true;
24391
+ }
24392
+ ];
24393
+ args: [
24394
+ {
24395
+ name: "newAuthority";
24396
+ type: "pubkey";
24397
+ }
24398
+ ];
24399
+ },
24400
+ {
24401
+ name: "updateAuths";
24402
+ discriminator: [93, 96, 178, 156, 57, 117, 253, 209];
24403
+ accounts: [
24404
+ {
24405
+ name: "authority";
24406
+ signer: true;
24407
+ },
24408
+ {
24409
+ name: "liquidity";
24410
+ },
24411
+ {
24412
+ name: "authList";
24413
+ writable: true;
24414
+ }
24415
+ ];
24416
+ args: [
24417
+ {
24418
+ name: "authStatus";
24419
+ type: {
24420
+ vec: {
24421
+ defined: {
24422
+ name: "addressBool";
24423
+ };
24424
+ };
24425
+ };
24426
+ }
24427
+ ];
24428
+ },
24429
+ {
24430
+ name: "updateExchangePrice";
24431
+ discriminator: [239, 244, 10, 248, 116, 25, 53, 150];
24432
+ accounts: [
24433
+ {
24434
+ name: "tokenReserve";
24435
+ writable: true;
24436
+ },
24437
+ {
24438
+ name: "rateModel";
24439
+ writable: true;
24440
+ }
24441
+ ];
24442
+ args: [
24443
+ {
24444
+ name: "mint";
24445
+ type: "pubkey";
24446
+ }
24447
+ ];
24448
+ },
24449
+ {
24450
+ name: "updateGuardians";
24451
+ discriminator: [43, 62, 250, 138, 141, 117, 132, 97];
24452
+ accounts: [
24453
+ {
24454
+ name: "authority";
24455
+ signer: true;
24456
+ },
24457
+ {
24458
+ name: "liquidity";
24459
+ },
24460
+ {
24461
+ name: "authList";
24462
+ writable: true;
24463
+ }
24464
+ ];
24465
+ args: [
24466
+ {
24467
+ name: "guardianStatus";
24468
+ type: {
24469
+ vec: {
24470
+ defined: {
24471
+ name: "addressBool";
24472
+ };
24473
+ };
24474
+ };
24475
+ }
24476
+ ];
24477
+ },
24478
+ {
24479
+ name: "updateRateDataV1";
24480
+ discriminator: [6, 20, 34, 122, 22, 150, 180, 22];
24481
+ accounts: [
24482
+ {
24483
+ name: "authority";
24484
+ signer: true;
24485
+ },
24486
+ {
24487
+ name: "authList";
24488
+ },
24489
+ {
24490
+ name: "rateModel";
24491
+ writable: true;
24492
+ },
24493
+ {
24494
+ name: "mint";
24495
+ relations: ["rateModel", "tokenReserve"];
24496
+ },
24497
+ {
24498
+ name: "tokenReserve";
24499
+ writable: true;
24500
+ }
24501
+ ];
24502
+ args: [
24503
+ {
24504
+ name: "rateData";
24505
+ type: {
24506
+ defined: {
24507
+ name: "rateDataV1Params";
24508
+ };
24509
+ };
24510
+ }
24511
+ ];
24512
+ },
24513
+ {
24514
+ name: "updateRateDataV2";
24515
+ discriminator: [116, 73, 53, 146, 216, 45, 228, 124];
24516
+ accounts: [
24517
+ {
24518
+ name: "authority";
24519
+ signer: true;
24520
+ },
24521
+ {
24522
+ name: "authList";
24523
+ },
24524
+ {
24525
+ name: "rateModel";
24526
+ writable: true;
24527
+ },
24528
+ {
24529
+ name: "mint";
24530
+ relations: ["rateModel", "tokenReserve"];
24531
+ },
24532
+ {
24533
+ name: "tokenReserve";
24534
+ writable: true;
24535
+ }
24536
+ ];
24537
+ args: [
24538
+ {
24539
+ name: "rateData";
24540
+ type: {
24541
+ defined: {
24542
+ name: "rateDataV2Params";
24543
+ };
24544
+ };
24545
+ }
24546
+ ];
24547
+ },
24548
+ {
24549
+ name: "updateRevenueCollector";
24550
+ discriminator: [167, 142, 124, 240, 220, 113, 141, 59];
24551
+ accounts: [
24552
+ {
24553
+ name: "authority";
24554
+ signer: true;
24555
+ },
24556
+ {
24557
+ name: "liquidity";
24558
+ writable: true;
24559
+ }
24560
+ ];
24561
+ args: [
24562
+ {
24563
+ name: "revenueCollector";
24564
+ type: "pubkey";
24565
+ }
24566
+ ];
24567
+ },
24568
+ {
24569
+ name: "updateTokenConfig";
24570
+ discriminator: [231, 122, 181, 79, 255, 79, 144, 167];
24571
+ accounts: [
24572
+ {
24573
+ name: "authority";
24574
+ signer: true;
24575
+ },
24576
+ {
24577
+ name: "authList";
24578
+ },
24579
+ {
24580
+ name: "rateModel";
24581
+ writable: true;
24582
+ },
24583
+ {
24584
+ name: "mint";
24585
+ relations: ["rateModel", "tokenReserve"];
24586
+ },
24587
+ {
24588
+ name: "tokenReserve";
24589
+ writable: true;
24590
+ }
24591
+ ];
24592
+ args: [
24593
+ {
24594
+ name: "tokenConfig";
24595
+ type: {
24596
+ defined: {
24597
+ name: "tokenConfig";
24598
+ };
24599
+ };
24600
+ }
24601
+ ];
24602
+ },
24603
+ {
24604
+ name: "updateUserBorrowConfig";
24605
+ discriminator: [100, 176, 201, 174, 247, 2, 54, 168];
24606
+ accounts: [
24607
+ {
24608
+ name: "authority";
24609
+ signer: true;
24610
+ },
24611
+ {
24612
+ name: "protocol";
24613
+ relations: ["userBorrowPosition"];
24614
+ },
24615
+ {
24616
+ name: "authList";
24617
+ },
24618
+ {
24619
+ name: "rateModel";
24620
+ },
24621
+ {
24622
+ name: "mint";
24623
+ relations: ["rateModel", "tokenReserve", "userBorrowPosition"];
24624
+ },
24625
+ {
24626
+ name: "tokenReserve";
24627
+ writable: true;
24628
+ },
24629
+ {
24630
+ name: "userBorrowPosition";
24631
+ writable: true;
24632
+ }
24633
+ ];
24634
+ args: [
24635
+ {
24636
+ name: "userBorrowConfig";
24637
+ type: {
24638
+ defined: {
24639
+ name: "userBorrowConfig";
24640
+ };
24641
+ };
24642
+ }
24643
+ ];
24644
+ },
24645
+ {
24646
+ name: "updateUserClass";
24647
+ discriminator: [12, 206, 68, 135, 63, 212, 48, 119];
24648
+ accounts: [
24649
+ {
24650
+ name: "authority";
24651
+ signer: true;
24652
+ },
24653
+ {
24654
+ name: "authList";
24655
+ writable: true;
24656
+ }
24657
+ ];
24658
+ args: [
24659
+ {
24660
+ name: "userClass";
24661
+ type: {
24662
+ vec: {
24663
+ defined: {
24664
+ name: "addressU8";
24665
+ };
24666
+ };
24667
+ };
24668
+ }
24669
+ ];
24670
+ },
24671
+ {
24672
+ name: "updateUserSupplyConfig";
24673
+ discriminator: [217, 239, 225, 218, 33, 49, 234, 183];
24674
+ accounts: [
24675
+ {
24676
+ name: "authority";
24677
+ signer: true;
24678
+ },
24679
+ {
24680
+ name: "protocol";
24681
+ relations: ["userSupplyPosition"];
24682
+ },
24683
+ {
24684
+ name: "authList";
24685
+ },
24686
+ {
24687
+ name: "rateModel";
24688
+ },
24689
+ {
24690
+ name: "mint";
24691
+ relations: ["rateModel", "tokenReserve", "userSupplyPosition"];
24692
+ },
24693
+ {
24694
+ name: "tokenReserve";
24695
+ writable: true;
24696
+ },
24697
+ {
24698
+ name: "userSupplyPosition";
24699
+ writable: true;
24700
+ }
24701
+ ];
24702
+ args: [
24703
+ {
24704
+ name: "userSupplyConfig";
24705
+ type: {
24706
+ defined: {
24707
+ name: "userSupplyConfig";
24708
+ };
24709
+ };
24710
+ }
24711
+ ];
24712
+ },
24713
+ {
24714
+ name: "updateUserWithdrawalLimit";
24715
+ discriminator: [162, 9, 186, 9, 213, 30, 173, 78];
24716
+ accounts: [
24717
+ {
24718
+ name: "authority";
24719
+ signer: true;
24720
+ },
24721
+ {
24722
+ name: "authList";
24723
+ },
24724
+ {
24725
+ name: "userSupplyPosition";
24726
+ writable: true;
24727
+ }
24728
+ ];
24729
+ args: [
24730
+ {
24731
+ name: "newLimit";
24732
+ type: "u128";
24733
+ },
24734
+ {
24735
+ name: "protocol";
24736
+ type: "pubkey";
24737
+ },
24738
+ {
24739
+ name: "mint";
24740
+ type: "pubkey";
24741
+ }
24742
+ ];
24743
+ }
24744
+ ];
24745
+ accounts: [
24746
+ {
24747
+ name: "authorizationList";
24748
+ discriminator: [19, 157, 117, 43, 236, 167, 251, 69];
24749
+ },
24750
+ {
24751
+ name: "liquidity";
24752
+ discriminator: [54, 252, 249, 226, 137, 172, 121, 58];
24753
+ },
24754
+ {
24755
+ name: "rateModel";
24756
+ discriminator: [94, 3, 203, 219, 107, 137, 4, 162];
24757
+ },
24758
+ {
24759
+ name: "tokenReserve";
24760
+ discriminator: [21, 18, 59, 135, 120, 20, 31, 12];
24761
+ },
24762
+ {
24763
+ name: "userBorrowPosition";
24764
+ discriminator: [73, 126, 65, 123, 220, 126, 197, 24];
24765
+ },
24766
+ {
24767
+ name: "userClaim";
24768
+ discriminator: [228, 142, 195, 181, 228, 147, 32, 209];
24769
+ },
24770
+ {
24771
+ name: "userSupplyPosition";
24772
+ discriminator: [202, 219, 136, 118, 61, 177, 21, 146];
24773
+ }
24774
+ ];
24775
+ events: [
24776
+ {
24777
+ name: "logBorrowRateCap";
24778
+ discriminator: [156, 131, 232, 94, 254, 156, 14, 117];
24779
+ },
24780
+ {
24781
+ name: "logChangeStatus";
24782
+ discriminator: [89, 77, 37, 172, 141, 31, 74, 42];
24783
+ },
24784
+ {
24785
+ name: "logClaim";
24786
+ discriminator: [238, 50, 157, 85, 151, 58, 231, 45];
24787
+ },
24788
+ {
24789
+ name: "logCollectRevenue";
24790
+ discriminator: [64, 198, 22, 194, 123, 87, 166, 82];
24791
+ },
24792
+ {
24793
+ name: "logOperate";
24794
+ discriminator: [180, 8, 81, 71, 19, 132, 173, 8];
24795
+ },
24796
+ {
24797
+ name: "logPauseUser";
24798
+ discriminator: [100, 17, 114, 224, 180, 30, 52, 170];
24799
+ },
24800
+ {
24801
+ name: "logUnpauseUser";
24802
+ discriminator: [170, 91, 132, 96, 179, 77, 168, 26];
24803
+ },
24804
+ {
24805
+ name: "logUpdateAuthority";
24806
+ discriminator: [150, 152, 157, 143, 6, 135, 193, 101];
24807
+ },
24808
+ {
24809
+ name: "logUpdateAuths";
24810
+ discriminator: [88, 80, 109, 48, 111, 203, 76, 251];
24811
+ },
24812
+ {
24813
+ name: "logUpdateExchangePrices";
24814
+ discriminator: [190, 194, 69, 204, 30, 86, 181, 163];
24815
+ },
24816
+ {
24817
+ name: "logUpdateGuardians";
24818
+ discriminator: [231, 28, 191, 51, 53, 140, 79, 142];
24819
+ },
24820
+ {
24821
+ name: "logUpdateRateDataV1";
24822
+ discriminator: [30, 102, 131, 192, 0, 30, 85, 223];
24823
+ },
24824
+ {
24825
+ name: "logUpdateRateDataV2";
24826
+ discriminator: [206, 53, 195, 70, 113, 211, 92, 129];
24827
+ },
24828
+ {
24829
+ name: "logUpdateRevenueCollector";
24830
+ discriminator: [44, 143, 80, 250, 211, 147, 180, 159];
24831
+ },
24832
+ {
24833
+ name: "logUpdateTokenConfigs";
24834
+ discriminator: [24, 205, 191, 130, 47, 40, 233, 218];
24835
+ },
24836
+ {
24837
+ name: "logUpdateUserBorrowConfigs";
24838
+ discriminator: [210, 251, 242, 159, 205, 33, 154, 74];
24839
+ },
24840
+ {
24841
+ name: "logUpdateUserClass";
24842
+ discriminator: [185, 193, 106, 248, 11, 53, 0, 136];
24843
+ },
24844
+ {
24845
+ name: "logUpdateUserSupplyConfigs";
24846
+ discriminator: [142, 160, 21, 90, 87, 88, 18, 51];
24847
+ },
24848
+ {
24849
+ name: "logUpdateUserWithdrawalLimit";
24850
+ discriminator: [114, 131, 152, 189, 120, 253, 88, 105];
24851
+ }
24852
+ ];
24853
+ errors: [
24854
+ {
24855
+ code: 6000;
24856
+ name: "userClassNotPausable";
24857
+ msg: "adminModuleUserClassNotPausable";
24858
+ },
24859
+ {
24860
+ code: 6001;
24861
+ name: "userClassNotFound";
24862
+ msg: "adminModuleUserClassNotFound";
24863
+ },
24864
+ {
24865
+ code: 6002;
24866
+ name: "userAlreadyPaused";
24867
+ msg: "adminModuleUserAlreadyPaused";
24868
+ },
24869
+ {
24870
+ code: 6003;
24871
+ name: "userAlreadyUnpaused";
24872
+ msg: "adminModuleUserAlreadyUnpaused";
24873
+ },
24874
+ {
24875
+ code: 6004;
24876
+ name: "onlyLiquidityAuthority";
24877
+ msg: "adminModuleOnlyLiquidityAuthority";
24878
+ },
24879
+ {
24880
+ code: 6005;
24881
+ name: "onlyAuth";
24882
+ msg: "adminModuleOnlyAuth";
24883
+ },
24884
+ {
24885
+ code: 6006;
24886
+ name: "onlyGuardians";
24887
+ msg: "adminModuleOnlyGuardians";
24888
+ },
24889
+ {
24890
+ code: 6007;
24891
+ name: "invalidParams";
24892
+ msg: "adminModuleInvalidParams";
24893
+ },
24894
+ {
24895
+ code: 6008;
24896
+ name: "invalidConfigOrder";
24897
+ msg: "adminModuleInvalidConfigOrder";
24898
+ },
24899
+ {
24900
+ code: 6009;
24901
+ name: "statusAlreadySet";
24902
+ msg: "adminModuleStatusAlreadySet";
24903
+ },
24904
+ {
24905
+ code: 6010;
24906
+ name: "limitsCannotBeZero";
24907
+ msg: "adminModuleLimitsCanNotBeZero";
24908
+ },
24909
+ {
24910
+ code: 6011;
24911
+ name: "maxAuthCountReached";
24912
+ msg: "adminModuleMaxAuthCount";
24913
+ },
24914
+ {
24915
+ code: 6012;
24916
+ name: "maxUserClassesReached";
24917
+ msg: "adminModuleMaxUserClasses";
24918
+ },
24919
+ {
24920
+ code: 6013;
24921
+ name: "insufficientBalance";
24922
+ msg: "userModuleInsufficientBalance";
24923
+ },
24924
+ {
24925
+ code: 6014;
24926
+ name: "userSupplyPositionRequired";
24927
+ msg: "userModuleUserSupplyPositionRequired";
24928
+ },
24929
+ {
24930
+ code: 6015;
24931
+ name: "userBorrowPositionRequired";
24932
+ msg: "userModuleUserBorrowPositionRequired";
24933
+ },
24934
+ {
24935
+ code: 6016;
24936
+ name: "claimAccountRequired";
24937
+ msg: "userModuleClaimAccountRequired";
24938
+ },
24939
+ {
24940
+ code: 6017;
24941
+ name: "withdrawToAccountRequired";
24942
+ msg: "userModuleWithdrawToAccountRequired";
24943
+ },
24944
+ {
24945
+ code: 6018;
24946
+ name: "borrowToAccountRequired";
24947
+ msg: "userModuleBorrowToAccountRequired";
24948
+ },
24949
+ {
24950
+ code: 6019;
24951
+ name: "invalidClaimAmount";
24952
+ msg: "userModuleInvalidClaimAmount";
24953
+ },
24954
+ {
24955
+ code: 6020;
24956
+ name: "noAmountToClaim";
24957
+ msg: "userModuleNoAmountToClaim";
24958
+ },
24959
+ {
24960
+ code: 6021;
24961
+ name: "amountNotZero";
24962
+ msg: "userModuleAmountNotZero";
24963
+ },
24964
+ {
24965
+ code: 6022;
24966
+ name: "valueOverflow";
24967
+ msg: "userModuleValueOverflow";
24968
+ },
24969
+ {
24970
+ code: 6023;
24971
+ name: "invalidTransferType";
24972
+ msg: "userModuleInvalidTransferType";
24973
+ },
24974
+ {
24975
+ code: 6024;
24976
+ name: "mintMismatch";
24977
+ msg: "userModuleMintMismatch";
24978
+ },
24979
+ {
24980
+ code: 6025;
24981
+ name: "userNotDefined";
24982
+ msg: "userModuleUserNotDefined";
24983
+ },
24984
+ {
24985
+ code: 6026;
24986
+ name: "invalidUserClaim";
24987
+ msg: "userModuleInvalidUserClaim";
24988
+ },
24989
+ {
24990
+ code: 6027;
24991
+ name: "userPaused";
24992
+ msg: "userModuleUserPaused";
24993
+ },
24994
+ {
24995
+ code: 6028;
24996
+ name: "withdrawalLimitReached";
24997
+ msg: "userModuleWithdrawalLimitReached";
24998
+ },
24999
+ {
25000
+ code: 6029;
25001
+ name: "borrowLimitReached";
25002
+ msg: "userModuleBorrowLimitReached";
25003
+ },
25004
+ {
25005
+ code: 6030;
25006
+ name: "operateAmountsNearlyZero";
25007
+ msg: "userModuleOperateAmountsZero";
25008
+ },
25009
+ {
25010
+ code: 6031;
25011
+ name: "operateAmountTooBig";
25012
+ msg: "userModuleOperateAmountsTooBig";
25013
+ },
25014
+ {
25015
+ code: 6032;
25016
+ name: "operateAmountsInsufficient";
25017
+ msg: "userModuleOperateAmountsInsufficient";
25018
+ },
25019
+ {
25020
+ code: 6033;
25021
+ name: "transferAmountOutOfBounds";
25022
+ msg: "userModuleTransferAmountOutOfBounds";
25023
+ },
25024
+ {
25025
+ code: 6034;
25026
+ name: "forbiddenOperateCall";
25027
+ msg: "forbiddenOperateCall";
25028
+ },
25029
+ {
25030
+ code: 6035;
25031
+ name: "maxUtilizationReached";
25032
+ msg: "userModuleMaxUtilizationReached";
25033
+ },
25034
+ {
25035
+ code: 6036;
25036
+ name: "valueOverflowTotalSupply";
25037
+ msg: "userModuleValueOverflowTotalSupply";
25038
+ },
25039
+ {
25040
+ code: 6037;
25041
+ name: "valueOverflowTotalBorrow";
25042
+ msg: "userModuleValueOverflowTotalBorrow";
25043
+ },
25044
+ {
25045
+ code: 6038;
25046
+ name: "depositExpected";
25047
+ msg: "userModuleDepositExpected";
25048
+ },
25049
+ {
25050
+ code: 6039;
25051
+ name: "exchangePriceZero";
25052
+ msg: "liquidityCalcsExchangePriceZero";
25053
+ },
25054
+ {
25055
+ code: 6040;
25056
+ name: "unsupportedRateVersion";
25057
+ msg: "liquidityCalcsUnsupportedRateVersion";
25058
+ },
25059
+ {
25060
+ code: 6041;
25061
+ name: "borrowRateNegative";
25062
+ msg: "liquidityCalcsBorrowRateNegative";
25063
+ },
25064
+ {
25065
+ code: 6042;
25066
+ name: "protocolLockdown";
25067
+ msg: "protocolLockdown";
25068
+ }
25069
+ ];
25070
+ types: [
25071
+ {
25072
+ name: "addressBool";
25073
+ type: {
25074
+ kind: "struct";
25075
+ fields: [
25076
+ {
25077
+ name: "addr";
25078
+ type: "pubkey";
25079
+ },
25080
+ {
25081
+ name: "value";
25082
+ type: "bool";
25083
+ }
25084
+ ];
25085
+ };
25086
+ },
25087
+ {
25088
+ name: "addressU8";
25089
+ type: {
25090
+ kind: "struct";
25091
+ fields: [
25092
+ {
25093
+ name: "addr";
25094
+ type: "pubkey";
25095
+ },
25096
+ {
25097
+ name: "value";
25098
+ type: "u8";
25099
+ }
25100
+ ];
25101
+ };
25102
+ },
25103
+ {
25104
+ name: "authorizationList";
25105
+ type: {
25106
+ kind: "struct";
25107
+ fields: [
25108
+ {
25109
+ name: "authUsers";
25110
+ type: {
25111
+ vec: "pubkey";
25112
+ };
25113
+ },
25114
+ {
25115
+ name: "guardians";
25116
+ type: {
25117
+ vec: "pubkey";
25118
+ };
25119
+ },
25120
+ {
25121
+ name: "userClasses";
25122
+ type: {
25123
+ vec: {
25124
+ defined: {
25125
+ name: "userClass";
25126
+ };
25127
+ };
25128
+ };
25129
+ }
25130
+ ];
25131
+ };
25132
+ },
25133
+ {
25134
+ name: "liquidity";
25135
+ type: {
25136
+ kind: "struct";
25137
+ fields: [
25138
+ {
25139
+ name: "authority";
25140
+ type: "pubkey";
25141
+ },
25142
+ {
25143
+ name: "revenueCollector";
25144
+ type: "pubkey";
25145
+ },
25146
+ {
25147
+ name: "status";
25148
+ type: "bool";
25149
+ },
25150
+ {
25151
+ name: "bump";
25152
+ type: "u8";
25153
+ }
25154
+ ];
25155
+ };
25156
+ },
25157
+ {
25158
+ name: "logBorrowRateCap";
25159
+ type: {
25160
+ kind: "struct";
25161
+ fields: [
25162
+ {
25163
+ name: "token";
25164
+ type: "pubkey";
25165
+ }
25166
+ ];
25167
+ };
25168
+ },
25169
+ {
25170
+ name: "logChangeStatus";
25171
+ type: {
25172
+ kind: "struct";
25173
+ fields: [
25174
+ {
25175
+ name: "newStatus";
25176
+ type: "bool";
25177
+ }
25178
+ ];
25179
+ };
25180
+ },
25181
+ {
25182
+ name: "logClaim";
25183
+ type: {
25184
+ kind: "struct";
25185
+ fields: [
25186
+ {
25187
+ name: "user";
25188
+ type: "pubkey";
25189
+ },
25190
+ {
25191
+ name: "token";
25192
+ type: "pubkey";
25193
+ },
25194
+ {
25195
+ name: "recipient";
25196
+ type: "pubkey";
25197
+ },
25198
+ {
25199
+ name: "amount";
25200
+ type: "u64";
25201
+ }
25202
+ ];
25203
+ };
25204
+ },
25205
+ {
25206
+ name: "logCollectRevenue";
25207
+ type: {
25208
+ kind: "struct";
25209
+ fields: [
25210
+ {
25211
+ name: "token";
25212
+ type: "pubkey";
25213
+ },
25214
+ {
25215
+ name: "revenueAmount";
25216
+ type: "u128";
25217
+ }
25218
+ ];
25219
+ };
25220
+ },
25221
+ {
25222
+ name: "logOperate";
25223
+ type: {
25224
+ kind: "struct";
25225
+ fields: [
25226
+ {
25227
+ name: "user";
25228
+ type: "pubkey";
25229
+ },
25230
+ {
25231
+ name: "token";
25232
+ type: "pubkey";
25233
+ },
25234
+ {
25235
+ name: "supplyAmount";
25236
+ type: "i128";
25237
+ },
25238
+ {
25239
+ name: "borrowAmount";
25240
+ type: "i128";
25241
+ },
25242
+ {
25243
+ name: "withdrawTo";
25244
+ type: "pubkey";
25245
+ },
25246
+ {
25247
+ name: "borrowTo";
25248
+ type: "pubkey";
25249
+ },
25250
+ {
25251
+ name: "supplyExchangePrice";
25252
+ type: "u64";
25253
+ },
25254
+ {
25255
+ name: "borrowExchangePrice";
25256
+ type: "u64";
25257
+ }
25258
+ ];
25259
+ };
25260
+ },
25261
+ {
25262
+ name: "logPauseUser";
25263
+ type: {
25264
+ kind: "struct";
25265
+ fields: [
25266
+ {
25267
+ name: "user";
25268
+ type: "pubkey";
25269
+ },
25270
+ {
25271
+ name: "mint";
25272
+ type: "pubkey";
25273
+ },
25274
+ {
25275
+ name: "status";
25276
+ type: "u8";
25277
+ }
25278
+ ];
25279
+ };
25280
+ },
25281
+ {
25282
+ name: "logUnpauseUser";
25283
+ type: {
25284
+ kind: "struct";
25285
+ fields: [
25286
+ {
25287
+ name: "user";
25288
+ type: "pubkey";
25289
+ },
25290
+ {
25291
+ name: "mint";
25292
+ type: "pubkey";
25293
+ },
25294
+ {
25295
+ name: "status";
25296
+ type: "u8";
25297
+ }
25298
+ ];
25299
+ };
25300
+ },
25301
+ {
25302
+ name: "logUpdateAuthority";
25303
+ type: {
25304
+ kind: "struct";
25305
+ fields: [
25306
+ {
25307
+ name: "newAuthority";
25308
+ type: "pubkey";
25309
+ }
25310
+ ];
25311
+ };
25312
+ },
25313
+ {
25314
+ name: "logUpdateAuths";
25315
+ type: {
25316
+ kind: "struct";
25317
+ fields: [
25318
+ {
25319
+ name: "authStatus";
25320
+ type: {
25321
+ vec: {
25322
+ defined: {
25323
+ name: "addressBool";
25324
+ };
25325
+ };
25326
+ };
25327
+ }
25328
+ ];
25329
+ };
25330
+ },
25331
+ {
25332
+ name: "logUpdateExchangePrices";
25333
+ type: {
25334
+ kind: "struct";
25335
+ fields: [
25336
+ {
25337
+ name: "token";
25338
+ type: "pubkey";
25339
+ },
25340
+ {
25341
+ name: "supplyExchangePrice";
25342
+ type: "u128";
25343
+ },
25344
+ {
25345
+ name: "borrowExchangePrice";
25346
+ type: "u128";
25347
+ },
25348
+ {
25349
+ name: "borrowRate";
25350
+ type: "u16";
25351
+ },
25352
+ {
25353
+ name: "utilization";
25354
+ type: "u16";
25355
+ }
25356
+ ];
25357
+ };
25358
+ },
25359
+ {
25360
+ name: "logUpdateGuardians";
25361
+ type: {
25362
+ kind: "struct";
25363
+ fields: [
25364
+ {
25365
+ name: "guardianStatus";
25366
+ type: {
25367
+ vec: {
25368
+ defined: {
25369
+ name: "addressBool";
25370
+ };
25371
+ };
25372
+ };
25373
+ }
25374
+ ];
25375
+ };
25376
+ },
25377
+ {
25378
+ name: "logUpdateRateDataV1";
25379
+ type: {
25380
+ kind: "struct";
25381
+ fields: [
25382
+ {
25383
+ name: "token";
25384
+ type: "pubkey";
25385
+ },
25386
+ {
25387
+ name: "rateData";
25388
+ type: {
25389
+ defined: {
25390
+ name: "rateDataV1Params";
25391
+ };
25392
+ };
25393
+ }
25394
+ ];
25395
+ };
25396
+ },
25397
+ {
25398
+ name: "logUpdateRateDataV2";
25399
+ type: {
25400
+ kind: "struct";
25401
+ fields: [
25402
+ {
25403
+ name: "token";
25404
+ type: "pubkey";
25405
+ },
25406
+ {
25407
+ name: "rateData";
25408
+ type: {
25409
+ defined: {
25410
+ name: "rateDataV2Params";
25411
+ };
25412
+ };
25413
+ }
25414
+ ];
25415
+ };
25416
+ },
25417
+ {
25418
+ name: "logUpdateRevenueCollector";
25419
+ type: {
25420
+ kind: "struct";
25421
+ fields: [
25422
+ {
25423
+ name: "revenueCollector";
25424
+ type: "pubkey";
25425
+ }
25426
+ ];
25427
+ };
25428
+ },
25429
+ {
25430
+ name: "logUpdateTokenConfigs";
25431
+ type: {
25432
+ kind: "struct";
25433
+ fields: [
25434
+ {
25435
+ name: "tokenConfig";
25436
+ type: {
25437
+ defined: {
25438
+ name: "tokenConfig";
25439
+ };
25440
+ };
25441
+ }
25442
+ ];
25443
+ };
25444
+ },
25445
+ {
25446
+ name: "logUpdateUserBorrowConfigs";
25447
+ type: {
25448
+ kind: "struct";
25449
+ fields: [
25450
+ {
25451
+ name: "user";
25452
+ type: "pubkey";
25453
+ },
25454
+ {
25455
+ name: "token";
25456
+ type: "pubkey";
25457
+ },
25458
+ {
25459
+ name: "userBorrowConfig";
25460
+ type: {
25461
+ defined: {
25462
+ name: "userBorrowConfig";
25463
+ };
25464
+ };
25465
+ }
25466
+ ];
25467
+ };
25468
+ },
25469
+ {
25470
+ name: "logUpdateUserClass";
25471
+ type: {
25472
+ kind: "struct";
25473
+ fields: [
25474
+ {
25475
+ name: "userClass";
25476
+ type: {
25477
+ vec: {
25478
+ defined: {
25479
+ name: "addressU8";
25480
+ };
25481
+ };
25482
+ };
25483
+ }
25484
+ ];
25485
+ };
25486
+ },
25487
+ {
25488
+ name: "logUpdateUserSupplyConfigs";
25489
+ type: {
25490
+ kind: "struct";
25491
+ fields: [
25492
+ {
25493
+ name: "user";
25494
+ type: "pubkey";
25495
+ },
25496
+ {
25497
+ name: "token";
25498
+ type: "pubkey";
25499
+ },
25500
+ {
25501
+ name: "userSupplyConfig";
25502
+ type: {
25503
+ defined: {
25504
+ name: "userSupplyConfig";
25505
+ };
25506
+ };
25507
+ }
25508
+ ];
25509
+ };
25510
+ },
25511
+ {
25512
+ name: "logUpdateUserWithdrawalLimit";
25513
+ type: {
25514
+ kind: "struct";
25515
+ fields: [
25516
+ {
25517
+ name: "user";
25518
+ type: "pubkey";
25519
+ },
25520
+ {
25521
+ name: "token";
25522
+ type: "pubkey";
25523
+ },
25524
+ {
25525
+ name: "newLimit";
25526
+ type: "u128";
25527
+ }
25528
+ ];
25529
+ };
25530
+ },
25531
+ {
25532
+ name: "rateDataV1Params";
25533
+ docs: ["@notice struct to set borrow rate data for version 1"];
25534
+ type: {
25535
+ kind: "struct";
25536
+ fields: [
25537
+ {
25538
+ name: "kink";
25539
+ docs: ["", "@param kink in borrow rate. in 1e2: 100% = 10_000; 1% = 100"];
25540
+ type: "u128";
25541
+ },
25542
+ {
25543
+ name: "rateAtUtilizationZero";
25544
+ docs: [
25545
+ "",
25546
+ "@param rateAtUtilizationZero desired borrow rate when utilization is zero. in 1e2: 100% = 10_000; 1% = 100",
25547
+ "i.e. constant minimum borrow rate",
25548
+ "e.g. at utilization = 0.01% rate could still be at least 4% (rateAtUtilizationZero would be 400 then)"
25549
+ ];
25550
+ type: "u128";
25551
+ },
25552
+ {
25553
+ name: "rateAtUtilizationKink";
25554
+ docs: [
25555
+ "",
25556
+ "@param rateAtUtilizationKink borrow rate when utilization is at kink. in 1e2: 100% = 10_000; 1% = 100",
25557
+ "e.g. when rate should be 7% at kink then rateAtUtilizationKink would be 700"
25558
+ ];
25559
+ type: "u128";
25560
+ },
25561
+ {
25562
+ name: "rateAtUtilizationMax";
25563
+ docs: [
25564
+ "",
25565
+ "@param rateAtUtilizationMax borrow rate when utilization is maximum at 100%. in 1e2: 100% = 10_000; 1% = 100",
25566
+ "e.g. when rate should be 125% at 100% then rateAtUtilizationMax would be 12_500"
25567
+ ];
25568
+ type: "u128";
25569
+ }
25570
+ ];
25571
+ };
25572
+ },
25573
+ {
25574
+ name: "rateDataV2Params";
25575
+ docs: ["@notice struct to set borrow rate data for version 2"];
25576
+ type: {
25577
+ kind: "struct";
25578
+ fields: [
25579
+ {
25580
+ name: "kink1";
25581
+ docs: [
25582
+ "",
25583
+ "@param kink1 first kink in borrow rate. in 1e2: 100% = 10_000; 1% = 100",
25584
+ "utilization below kink 1 usually means slow increase in rate, once utilization is above kink 1 borrow rate increases faster"
25585
+ ];
25586
+ type: "u128";
25587
+ },
25588
+ {
25589
+ name: "kink2";
25590
+ docs: [
25591
+ "",
25592
+ "@param kink2 second kink in borrow rate. in 1e2: 100% = 10_000; 1% = 100",
25593
+ "utilization below kink 2 usually means slow / medium increase in rate, once utilization is above kink 2 borrow rate increases fast"
25594
+ ];
25595
+ type: "u128";
25596
+ },
25597
+ {
25598
+ name: "rateAtUtilizationZero";
25599
+ docs: [
25600
+ "",
25601
+ "@param rateAtUtilizationZero desired borrow rate when utilization is zero. in 1e2: 100% = 10_000; 1% = 100",
25602
+ "i.e. constant minimum borrow rate",
25603
+ "e.g. at utilization = 0.01% rate could still be at least 4% (rateAtUtilizationZero would be 400 then)"
25604
+ ];
25605
+ type: "u128";
25606
+ },
25607
+ {
25608
+ name: "rateAtUtilizationKink1";
25609
+ docs: [
25610
+ "",
25611
+ "@param rateAtUtilizationKink1 desired borrow rate when utilization is at first kink. in 1e2: 100% = 10_000; 1% = 100",
25612
+ "e.g. when rate should be 7% at first kink then rateAtUtilizationKink would be 700"
25613
+ ];
25614
+ type: "u128";
25615
+ },
25616
+ {
25617
+ name: "rateAtUtilizationKink2";
25618
+ docs: [
25619
+ "",
25620
+ "@param rateAtUtilizationKink2 desired borrow rate when utilization is at second kink. in 1e2: 100% = 10_000; 1% = 100",
25621
+ "e.g. when rate should be 7% at second kink then rateAtUtilizationKink would be 1_200"
25622
+ ];
25623
+ type: "u128";
25624
+ },
25625
+ {
25626
+ name: "rateAtUtilizationMax";
25627
+ docs: [
25628
+ "",
25629
+ "@param rateAtUtilizationMax desired borrow rate when utilization is maximum at 100%. in 1e2: 100% = 10_000; 1% = 100",
25630
+ "e.g. when rate should be 125% at 100% then rateAtUtilizationMax would be 12_500"
25631
+ ];
25632
+ type: "u128";
25633
+ }
25634
+ ];
25635
+ };
25636
+ },
25637
+ {
25638
+ name: "rateModel";
25639
+ docs: ["Interest rate model data"];
25640
+ serialization: "bytemuck";
25641
+ repr: {
25642
+ kind: "c";
25643
+ packed: true;
25644
+ };
25645
+ type: {
25646
+ kind: "struct";
25647
+ fields: [
25648
+ {
25649
+ name: "mint";
25650
+ type: "pubkey";
25651
+ },
25652
+ {
25653
+ name: "version";
25654
+ type: "u8";
25655
+ },
25656
+ {
25657
+ name: "rateAtZero";
25658
+ type: "u16";
25659
+ },
25660
+ {
25661
+ name: "kink1Utilization";
25662
+ type: "u16";
25663
+ },
25664
+ {
25665
+ name: "rateAtKink1";
25666
+ type: "u16";
25667
+ },
25668
+ {
25669
+ name: "rateAtMax";
25670
+ type: "u16";
25671
+ },
25672
+ {
25673
+ name: "kink2Utilization";
25674
+ type: "u16";
25675
+ },
25676
+ {
25677
+ name: "rateAtKink2";
25678
+ type: "u16";
25679
+ }
25680
+ ];
25681
+ };
25682
+ },
25683
+ {
25684
+ name: "tokenConfig";
25685
+ docs: ["@notice struct to set token config"];
25686
+ type: {
25687
+ kind: "struct";
25688
+ fields: [
25689
+ {
25690
+ name: "token";
25691
+ docs: ["", "@param token address"];
25692
+ type: "pubkey";
25693
+ },
25694
+ {
25695
+ name: "fee";
25696
+ docs: [
25697
+ "",
25698
+ "@param fee charges on borrower's interest. in 1e2: 100% = 10_000; 1% = 100"
25699
+ ];
25700
+ type: "u128";
25701
+ },
25702
+ {
25703
+ name: "maxUtilization";
25704
+ docs: [
25705
+ "",
25706
+ "@param maxUtilization maximum allowed utilization. in 1e2: 100% = 10_000; 1% = 100",
25707
+ "set to 100% to disable and have default limit of 100% (avoiding SLOAD)."
25708
+ ];
25709
+ type: "u128";
25710
+ }
25711
+ ];
25712
+ };
25713
+ },
25714
+ {
25715
+ name: "tokenReserve";
25716
+ docs: ["Token configuration and exchange prices"];
25717
+ serialization: "bytemuck";
25718
+ repr: {
25719
+ kind: "c";
25720
+ packed: true;
25721
+ };
25722
+ type: {
25723
+ kind: "struct";
25724
+ fields: [
25725
+ {
25726
+ name: "mint";
25727
+ type: "pubkey";
25728
+ },
25729
+ {
25730
+ name: "vault";
25731
+ type: "pubkey";
25732
+ },
25733
+ {
25734
+ name: "borrowRate";
25735
+ type: "u16";
25736
+ },
25737
+ {
25738
+ name: "feeOnInterest";
25739
+ type: "u16";
25740
+ },
25741
+ {
25742
+ name: "lastUtilization";
25743
+ type: "u16";
25744
+ },
25745
+ {
25746
+ name: "lastUpdateTimestamp";
25747
+ type: "u64";
25748
+ },
25749
+ {
25750
+ name: "supplyExchangePrice";
25751
+ type: "u64";
25752
+ },
25753
+ {
25754
+ name: "borrowExchangePrice";
25755
+ type: "u64";
25756
+ },
25757
+ {
25758
+ name: "maxUtilization";
25759
+ type: "u16";
25760
+ },
25761
+ {
25762
+ name: "totalSupplyWithInterest";
25763
+ type: "u64";
25764
+ },
25765
+ {
25766
+ name: "totalSupplyInterestFree";
25767
+ type: "u64";
25768
+ },
25769
+ {
25770
+ name: "totalBorrowWithInterest";
25771
+ type: "u64";
25772
+ },
25773
+ {
25774
+ name: "totalBorrowInterestFree";
25775
+ type: "u64";
25776
+ },
25777
+ {
25778
+ name: "totalClaimAmount";
25779
+ type: "u64";
25780
+ },
25781
+ {
25782
+ name: "interactingProtocol";
25783
+ type: "pubkey";
25784
+ },
25785
+ {
25786
+ name: "interactingTimestamp";
25787
+ type: "u64";
25788
+ },
25789
+ {
25790
+ name: "interactingBalance";
25791
+ type: "u64";
25792
+ }
25793
+ ];
25794
+ };
25795
+ },
25796
+ {
25797
+ name: "transferType";
25798
+ type: {
25799
+ kind: "enum";
25800
+ variants: [
25801
+ {
25802
+ name: "skip";
25803
+ },
25804
+ {
25805
+ name: "direct";
25806
+ },
25807
+ {
25808
+ name: "claim";
25809
+ }
25810
+ ];
25811
+ };
25812
+ },
25813
+ {
25814
+ name: "userBorrowConfig";
25815
+ docs: ["@notice struct to set user borrow & payback config"];
25816
+ type: {
25817
+ kind: "struct";
25818
+ fields: [
25819
+ {
25820
+ name: "mode";
25821
+ docs: ["", "@param mode: 0 = without interest. 1 = with interest"];
25822
+ type: "u8";
25823
+ },
25824
+ {
25825
+ name: "expandPercent";
25826
+ docs: [
25827
+ "",
25828
+ "@param expandPercent debt limit expand percent. in 1e2: 100% = 10_000; 1% = 100",
25829
+ "Also used to calculate rate at which debt limit should decrease (instant)."
25830
+ ];
25831
+ type: "u128";
25832
+ },
25833
+ {
25834
+ name: "expandDuration";
25835
+ docs: [
25836
+ "",
25837
+ "@param expandDuration debt limit expand duration in seconds.",
25838
+ "used to calculate rate together with expandPercent"
25839
+ ];
25840
+ type: "u128";
25841
+ },
25842
+ {
25843
+ name: "baseDebtCeiling";
25844
+ docs: [
25845
+ "",
25846
+ "@param baseDebtCeiling base borrow limit. until here, borrow limit remains as baseDebtCeiling",
25847
+ "(user can borrow until this point at once without stepped expansion). Above this, automated limit comes in place.",
25848
+ "amount in raw (to be multiplied with exchange price) or normal depends on configured mode in user config for the token:",
25849
+ "with interest -> raw, without interest -> normal"
25850
+ ];
25851
+ type: "u128";
25852
+ },
25853
+ {
25854
+ name: "maxDebtCeiling";
25855
+ docs: [
25856
+ "",
25857
+ "@param maxDebtCeiling max borrow ceiling, maximum amount the user can borrow.",
25858
+ "amount in raw (to be multiplied with exchange price) or normal depends on configured mode in user config for the token:",
25859
+ "with interest -> raw, without interest -> normal"
25860
+ ];
25861
+ type: "u128";
25862
+ }
25863
+ ];
25864
+ };
25865
+ },
25866
+ {
25867
+ name: "userBorrowPosition";
25868
+ docs: ["User borrow position"];
25869
+ serialization: "bytemuck";
25870
+ repr: {
25871
+ kind: "c";
25872
+ packed: true;
25873
+ };
25874
+ type: {
25875
+ kind: "struct";
25876
+ fields: [
25877
+ {
25878
+ name: "protocol";
25879
+ type: "pubkey";
25880
+ },
25881
+ {
25882
+ name: "mint";
25883
+ type: "pubkey";
25884
+ },
25885
+ {
25886
+ name: "withInterest";
25887
+ type: "u8";
25888
+ },
25889
+ {
25890
+ name: "amount";
25891
+ type: "u64";
25892
+ },
25893
+ {
25894
+ name: "debtCeiling";
25895
+ type: "u64";
25896
+ },
25897
+ {
25898
+ name: "lastUpdate";
25899
+ type: "u64";
25900
+ },
25901
+ {
25902
+ name: "expandPct";
25903
+ type: "u16";
25904
+ },
25905
+ {
25906
+ name: "expandDuration";
25907
+ type: "u32";
25908
+ },
25909
+ {
25910
+ name: "baseDebtCeiling";
25911
+ type: "u64";
25912
+ },
25913
+ {
25914
+ name: "maxDebtCeiling";
25915
+ type: "u64";
25916
+ },
25917
+ {
25918
+ name: "status";
25919
+ type: "u8";
25920
+ }
25921
+ ];
25922
+ };
25923
+ },
25924
+ {
25925
+ name: "userClaim";
25926
+ serialization: "bytemuck";
25927
+ repr: {
25928
+ kind: "c";
25929
+ packed: true;
25930
+ };
25931
+ type: {
25932
+ kind: "struct";
25933
+ fields: [
25934
+ {
25935
+ name: "user";
25936
+ type: "pubkey";
25937
+ },
25938
+ {
25939
+ name: "amount";
25940
+ type: "u64";
25941
+ },
25942
+ {
25943
+ name: "mint";
25944
+ type: "pubkey";
25945
+ }
25946
+ ];
25947
+ };
25948
+ },
25949
+ {
25950
+ name: "userClass";
25951
+ type: {
25952
+ kind: "struct";
25953
+ fields: [
25954
+ {
25955
+ name: "addr";
25956
+ type: "pubkey";
25957
+ },
25958
+ {
25959
+ name: "class";
25960
+ type: "u8";
25961
+ }
25962
+ ];
25963
+ };
25964
+ },
25965
+ {
25966
+ name: "userSupplyConfig";
25967
+ docs: ["@notice struct to set user supply & withdrawal config"];
25968
+ type: {
25969
+ kind: "struct";
25970
+ fields: [
25971
+ {
25972
+ name: "mode";
25973
+ docs: ["", "@param mode: 0 = without interest. 1 = with interest"];
25974
+ type: "u8";
25975
+ },
25976
+ {
25977
+ name: "expandPercent";
25978
+ docs: [
25979
+ "",
25980
+ "@param expandPercent withdrawal limit expand percent. in 1e2: 100% = 10_000; 1% = 100",
25981
+ "Also used to calculate rate at which withdrawal limit should decrease (instant)."
25982
+ ];
25983
+ type: "u128";
25984
+ },
25985
+ {
25986
+ name: "expandDuration";
25987
+ docs: [
25988
+ "",
25989
+ "@param expandDuration withdrawal limit expand duration in seconds.",
25990
+ "used to calculate rate together with expandPercent"
25991
+ ];
25992
+ type: "u128";
25993
+ },
25994
+ {
25995
+ name: "baseWithdrawalLimit";
25996
+ docs: [
25997
+ "",
25998
+ "@param baseWithdrawalLimit base limit, below this, user can withdraw the entire amount.",
25999
+ "amount in raw (to be multiplied with exchange price) or normal depends on configured mode in user config for the token:",
26000
+ "with interest -> raw, without interest -> normal"
26001
+ ];
26002
+ type: "u128";
26003
+ }
26004
+ ];
26005
+ };
26006
+ },
26007
+ {
26008
+ name: "userSupplyPosition";
26009
+ docs: ["User supply position"];
26010
+ serialization: "bytemuck";
26011
+ repr: {
26012
+ kind: "c";
26013
+ packed: true;
26014
+ };
26015
+ type: {
26016
+ kind: "struct";
26017
+ fields: [
26018
+ {
26019
+ name: "protocol";
26020
+ type: "pubkey";
26021
+ },
26022
+ {
26023
+ name: "mint";
26024
+ type: "pubkey";
26025
+ },
26026
+ {
26027
+ name: "withInterest";
26028
+ type: "u8";
26029
+ },
26030
+ {
26031
+ name: "amount";
26032
+ type: "u64";
26033
+ },
26034
+ {
26035
+ name: "withdrawalLimit";
26036
+ type: "u128";
26037
+ },
26038
+ {
26039
+ name: "lastUpdate";
26040
+ type: "u64";
26041
+ },
26042
+ {
26043
+ name: "expandPct";
26044
+ type: "u16";
26045
+ },
26046
+ {
26047
+ name: "expandDuration";
26048
+ type: "u64";
26049
+ },
26050
+ {
26051
+ name: "baseWithdrawalLimit";
26052
+ type: "u64";
26053
+ },
26054
+ {
26055
+ name: "status";
26056
+ type: "u8";
26057
+ }
26058
+ ];
26059
+ };
26060
+ }
26061
+ ];
26062
+ };
26063
+
23232
26064
  declare const JUP_LEND_IDL: JupLend;
23233
26065
  type JupLendIdlType = JupLend;
26066
+ declare const JUP_LIQUIDITY_IDL: Liquidity;
26067
+ type JupLiquidityIdlType = Liquidity;
23234
26068
 
23235
26069
  declare function jupLendingStateRawToDto(raw: JupLendingState): JupLendingStateJSON;
23236
26070
  declare function jupTokenReserveRawToDto(raw: JupTokenReserve): JupTokenReserveJSON;
@@ -24354,4 +27188,4 @@ declare function buildSwapQuoteResult(route: {
24354
27188
  }, swapMode: "ExactIn" | "ExactOut"): TitanSwapQuoteResult;
24355
27189
  declare function resolveLookupTables(connection: Connection, lutPubkeys: PublicKey[]): Promise<AddressLookupTableAccount[]>;
24356
27190
 
24357
- export { ACCOUNT_SIZE, ACCOUNT_TYPE_SIZE, ASSOCIATED_TOKEN_PROGRAM_ID, type Account, AccountLayout, type AccountMeta, AccountState, AccountType, type ApproveInstructionData, type Base, type ClientRequest, type CloseAccountInstructionData, ConnectionClosed, CorpAction, CurvePointFields, DEFAULT_RECENT_SLOT_DURATION_MS, DRIFT_IDL, DRIFT_PROGRAM_ID, type DriftIdlType, type DriftInterestRateCurvePoint, DriftRewards, DriftRewardsJSON, DriftSpotBalanceType, DriftSpotMarket, DriftSpotMarketJSON, type DriftSpotMarketRaw, type DriftState, type DriftStateJSON, DriftUser, DriftUserJSON, type DriftUserRaw, DriftUserStats, DriftUserStatsJSON, type Ema, ErrorResponse, ExtensionType, FARMS_PROGRAM_ID, FarmStateJSON, FarmStateRaw, FeeStructure, FeeStructureJSON, HistoricalIndexData, HistoricalOracleData, type InitializeAccountInstructionData, type Instruction, InsuranceFund, JUP_EXCHANGE_PRICES_PRECISION, JUP_LEND_IDL, JUP_LEND_PROGRAM_ID, JUP_LIQUIDITY_PROGRAM_ID, JUP_MAX_REWARDS_RATE, JUP_REWARDS_PROGRAM_ID, JUP_SECONDS_PER_YEAR, type JupLendIdlType, type JupLendInterestRateCurvePoint, type JupLendRewardsResult, JupLendingRewardsRateModel, JupLendingRewardsRateModelJSON, type JupLendingRewardsRateModelRaw, JupLendingState, JupLendingStateJSON, type JupLendingStateRaw, JupRateModel, JupRateModelJSON, type JupRateModelRaw, JupTokenReserve, JupTokenReserveJSON, type JupTokenReserveRaw, KFARMS_IDL, KLEND_ACCOUNT_CODER, KLEND_IDL, KLEND_PROGRAM_ID, type KaminoReserveCurveData, type KfarmsIdlType, type KlendIdlType, type KlendInterestRateCurvePoint, LENGTH_SIZE, MAX_SLOT_DIFFERENCE, MEMO_PROGRAM_ID, MINT_SIZE, MULTISIG_SIZE, type Mint, MintLayout, type Multisig, MultisigLayout, NATIVE_MINT, ONE, ONE_HUNDRED_PCT_IN_BPS, ONE_YEAR, ObligationJSON, ObligationRaw, OracleGuardRails, OracleGuardRailsJSON, PERCENTAGE_PRECISION, PERCENTAGE_PRECISION_EXP, type PlatformFee, PoolBalance, type Price, type PriceComponent, type PriceData, PriceStatus, PriceType, type Pubkey, type QuoteSwapStreamResponse, type QuoteUpdateParams, REFRESH_OBLIGATION_DISCRIMINATOR, type RawAccount, type RawMint, type RawMultisig, type RefreshObligationAccounts, type RequestData, ReserveJSON, ReserveRaw, type ResponseData, type ResponseError, type ResponseSuccess, type ResponseWithStream, RewardInfoFields, type RoutePlanStep, SEED_BASE_REFERRER_STATE, SEED_BASE_REFERRER_TOKEN_STATE, SEED_BASE_SHORT_URL, SEED_BASE_USER_METADATA, SEED_DRIFT_SIGNER, SEED_DRIFT_STATE, SEED_FEE_RECEIVER, SEED_F_TOKEN_MINT, SEED_LENDING, SEED_LENDING_ADMIN, SEED_LENDING_MARKET_AUTH, SEED_LENDING_REWARDS_RATE_MODEL, SEED_LIQUIDITY, SEED_RATE_MODEL, SEED_RESERVE, SEED_RESERVE_COLL_MINT, SEED_RESERVE_COLL_SUPPLY, SEED_RESERVE_LIQ_SUPPLY, SEED_SPOT_MARKET, SEED_SPOT_MARKET_VAULT, SEED_USER, SEED_USER_CLAIM, SEED_USER_STATE, SEED_USER_STATS, SEED_USER_SUPPLY_POSITION, SLOTS_PER_DAY, SLOTS_PER_HOUR, SLOTS_PER_MINUTE, SLOTS_PER_SECOND, SLOTS_PER_YEAR, SPOT_MARKET_RATE_PRECISION, SPOT_MARKET_RATE_PRECISION_EXP, SPOT_MARKET_UTILIZATION_PRECISION, SPOT_MARKET_UTILIZATION_PRECISION_EXP, type SerializedInstruction, type SerializedSwapRoute, type ServerMessage, SinglePoolInstruction, SplAccountType, SpotPosition, type StakeAccount, type StopStreamRequest, type StopStreamResponse, type StreamData, type StreamDataPayload, type StreamEnd, StreamError, type StreamStart, SwapMode, type SwapParams, type SwapQuoteRequest, type SwapQuotes, type SwapRoute, SwapVersion, type SyncNativeInstructionData, TEN, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, TYPE_SIZE, type TitanProxyExactOutResponse, type TitanProxySwapQuoteResponse, type TitanSwapQuoteResult, TokenAccountNotFoundError, TokenError, TokenInstruction, TokenInvalidAccountError, TokenInvalidAccountOwnerError, TokenInvalidAccountSizeError, TokenInvalidInstructionDataError, TokenInvalidInstructionKeysError, TokenInvalidInstructionProgramError, TokenInvalidInstructionTypeError, TokenInvalidMintError, TokenInvalidOwnerError, TokenOwnerOffCurveError, TokenUnsupportedInstructionError, type TransactionParams, type TransferCheckedInstructionData, type Uint64, V1Client, ZERO, addSigners, approveInstructionData, buildSwapQuoteResult, calculateAPYFromAPR, calculateDriftBorrowAPR, calculateDriftBorrowAPY, calculateDriftBorrowRate, calculateDriftDepositRate, calculateDriftInterestRate, calculateDriftLendingAPR, calculateDriftLendingAPY, calculateDriftUtilization, calculateJupLendBorrowRate, calculateJupLendLiquiditySupplyRate, calculateJupLendNewExchangePrice, calculateJupLendRewardsRate, calculateJupLendRewardsRateForExchangePrice, calculateJupLendSupplyAPY, calculateJupLendSupplyRate, calculateJupLendTotalAssets, calculateKaminoEstimatedBorrowRate, calculateKaminoEstimatedSupplyRate, calculateKaminoSupplyAPY, calculateRewardApy, calculateSlotAdjustmentFactor, calculateUtilizationRatio, closeAccountInstructionData, createAccountIx, createApproveInstruction, createAssociatedTokenAccountIdempotentInstruction, createAssociatedTokenAccountInstruction, createCloseAccountInstruction, createInitializeAccountInstruction, createMemoInstruction, createPoolOnrampIx, createSyncNativeInstruction, createTransferCheckedInstruction, decodeDriftSpotMarketData, decodeDriftStateData, decodeDriftUserData, decodeDriftUserStatsData, decodeFarmDataRaw, decodeJupLendingRewardsRateModelData, decodeJupLendingStateData, decodeJupRateModelData, decodeJupTokenReserveData, decodeKlendObligationData, decodeKlendReserveData, deriveBaseObligation, deriveDriftSigner, deriveDriftSpotMarket, deriveDriftSpotMarketVault, deriveDriftState, deriveDriftUser, deriveDriftUserStats, deriveFeeReceiver, deriveJupLendClaimAccount, deriveJupLendFTokenMint, deriveJupLendLending, deriveJupLendLendingAdmin, deriveJupLendLendingPdas, deriveJupLendLendingRewardsRateModel, deriveJupLendLiquidity, deriveJupLendLiquiditySupplyPositionPda, deriveJupLendLiquidityVaultAta, deriveJupLendRateModel, deriveJupLendTokenReserve, deriveLendingMarketAuthority, deriveObligation, deriveReferrerState, deriveReferrerTokenState, deriveReserveCollateralMint, deriveReserveCollateralSupply, deriveReserveLiquiditySupply, deriveShortUrl, deriveUserMetadata, deriveUserState, deserializeSerializedInstruction, driftRewardsRawToDto, driftSpotMarketRawToDto, driftStateRawToDto, driftUserRawToDto, driftUserStatsRawToDto, dtoToDriftRewardsRaw, dtoToDriftSpotMarketRaw, dtoToDriftStateRaw, dtoToDriftUserRaw, dtoToDriftUserStatsRaw, dtoToFarmRaw, dtoToJupLendingRewardsRateModelRaw, dtoToJupLendingStateRaw, dtoToJupRateModelRaw, dtoToJupTokenReserveRaw, dtoToObligationRaw, dtoToReserveRaw, farmRawToDto, findMplMetadataAddress, findPoolAddress, findPoolMintAddress, findPoolMintAddressByVoteAccount, findPoolMintAuthorityAddress, findPoolMplAuthorityAddress, findPoolOnRampAddress, findPoolStakeAddress, findPoolStakeAuthorityAddress, generateDriftReserveCurve, generateJupLendSupplyCurve, generateKaminoReserveCurve, getAccount, getAccountLen, getAllDerivedDriftAccounts, getAllDerivedJupLendAccounts, getAllDerivedKaminoAccounts, getAllRequiredMarkets, getAssociatedTokenAddressSync, getDriftRewards, getDriftTokenAmount, getFixedHostInterestRate, getJupLendRewards, getKaminoBorrowRate, getKaminoTotalSupply, getMinimumBalanceForRentExemptAccount, getMinimumBalanceForRentExemptAccountWithExtensions, getMint, getMultipleAccounts, getProtocolTakeRatePct, getReserveRewardsApy, getRewardPerTimeUnitSecond, getStakeAccount, initializeAccountInstructionData, initializeStakedPoolIxs, initializeStakedPoolTx, interpolateLinear, jupLendingRewardsRateModelRawToDto, jupLendingStateRawToDto, jupRateModelRawToDto, jupTokenReserveRawToDto, layout, makeRefreshObligationIx, makeRefreshReservesBatchIx, makeRefreshingIxs, makeUpdateJupLendRate, makeUpdateJupLendRateIx, makeUpdateSpotMarketCumulativeInterestIx, makeUpdateSpotMarketIx, obligationRawToDto, parsePriceData, parsePriceInfo, replenishPoolIx, reserveRawToDto, resolveLookupTables, scaledSupplies, selectBestRoute, slotAdjustmentFactor, syncNativeInstructionData, transferCheckedInstructionData, truncateBorrowCurve, unpackAccount };
27191
+ export { ACCOUNT_SIZE, ACCOUNT_TYPE_SIZE, ASSOCIATED_TOKEN_PROGRAM_ID, type Account, AccountLayout, type AccountMeta, AccountState, AccountType, type ApproveInstructionData, type Base, type ClientRequest, type CloseAccountInstructionData, ConnectionClosed, CorpAction, CurvePointFields, DEFAULT_RECENT_SLOT_DURATION_MS, DRIFT_IDL, DRIFT_PROGRAM_ID, type DriftIdlType, type DriftInterestRateCurvePoint, DriftRewards, DriftRewardsJSON, DriftSpotBalanceType, DriftSpotMarket, DriftSpotMarketJSON, type DriftSpotMarketRaw, type DriftState, type DriftStateJSON, DriftUser, DriftUserJSON, type DriftUserRaw, DriftUserStats, DriftUserStatsJSON, type Ema, ErrorResponse, ExtensionType, FARMS_PROGRAM_ID, FarmStateJSON, FarmStateRaw, FeeStructure, FeeStructureJSON, HistoricalIndexData, HistoricalOracleData, type InitializeAccountInstructionData, type Instruction, InsuranceFund, JUP_EXCHANGE_PRICES_PRECISION, JUP_LEND_IDL, JUP_LEND_PROGRAM_ID, JUP_LIQUIDITY_IDL, JUP_LIQUIDITY_PROGRAM_ID, JUP_MAX_REWARDS_RATE, JUP_REWARDS_PROGRAM_ID, JUP_SECONDS_PER_YEAR, type JupLendIdlType, type JupLendInterestRateCurvePoint, type JupLendRewardsResult, JupLendingRewardsRateModel, JupLendingRewardsRateModelJSON, type JupLendingRewardsRateModelRaw, JupLendingState, JupLendingStateJSON, type JupLendingStateRaw, type JupLiquidityIdlType, JupRateModel, JupRateModelJSON, type JupRateModelRaw, JupTokenReserve, JupTokenReserveJSON, type JupTokenReserveRaw, KFARMS_IDL, KLEND_ACCOUNT_CODER, KLEND_IDL, KLEND_PROGRAM_ID, type KaminoReserveCurveData, type KfarmsIdlType, type KlendIdlType, type KlendInterestRateCurvePoint, LENGTH_SIZE, MAX_SLOT_DIFFERENCE, MEMO_PROGRAM_ID, MINT_SIZE, MULTISIG_SIZE, type Mint, MintLayout, type Multisig, MultisigLayout, NATIVE_MINT, ONE, ONE_HUNDRED_PCT_IN_BPS, ONE_YEAR, ObligationJSON, ObligationRaw, OracleGuardRails, OracleGuardRailsJSON, PERCENTAGE_PRECISION, PERCENTAGE_PRECISION_EXP, type PlatformFee, PoolBalance, type Price, type PriceComponent, type PriceData, PriceStatus, PriceType, type Pubkey, type QuoteSwapStreamResponse, type QuoteUpdateParams, REFRESH_OBLIGATION_DISCRIMINATOR, type RawAccount, type RawMint, type RawMultisig, type RefreshObligationAccounts, type RequestData, ReserveJSON, ReserveRaw, type ResponseData, type ResponseError, type ResponseSuccess, type ResponseWithStream, RewardInfoFields, type RoutePlanStep, SEED_BASE_REFERRER_STATE, SEED_BASE_REFERRER_TOKEN_STATE, SEED_BASE_SHORT_URL, SEED_BASE_USER_METADATA, SEED_DRIFT_SIGNER, SEED_DRIFT_STATE, SEED_FEE_RECEIVER, SEED_F_TOKEN_MINT, SEED_LENDING, SEED_LENDING_ADMIN, SEED_LENDING_MARKET_AUTH, SEED_LENDING_REWARDS_RATE_MODEL, SEED_LIQUIDITY, SEED_RATE_MODEL, SEED_RESERVE, SEED_RESERVE_COLL_MINT, SEED_RESERVE_COLL_SUPPLY, SEED_RESERVE_LIQ_SUPPLY, SEED_SPOT_MARKET, SEED_SPOT_MARKET_VAULT, SEED_USER, SEED_USER_CLAIM, SEED_USER_STATE, SEED_USER_STATS, SEED_USER_SUPPLY_POSITION, SLOTS_PER_DAY, SLOTS_PER_HOUR, SLOTS_PER_MINUTE, SLOTS_PER_SECOND, SLOTS_PER_YEAR, SPOT_MARKET_RATE_PRECISION, SPOT_MARKET_RATE_PRECISION_EXP, SPOT_MARKET_UTILIZATION_PRECISION, SPOT_MARKET_UTILIZATION_PRECISION_EXP, type SerializedInstruction, type SerializedSwapRoute, type ServerMessage, SinglePoolInstruction, SplAccountType, SpotPosition, type StakeAccount, type StopStreamRequest, type StopStreamResponse, type StreamData, type StreamDataPayload, type StreamEnd, StreamError, type StreamStart, SwapMode, type SwapParams, type SwapQuoteRequest, type SwapQuotes, type SwapRoute, SwapVersion, type SyncNativeInstructionData, TEN, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, TYPE_SIZE, type TitanProxyExactOutResponse, type TitanProxySwapQuoteResponse, type TitanSwapQuoteResult, TokenAccountNotFoundError, TokenError, TokenInstruction, TokenInvalidAccountError, TokenInvalidAccountOwnerError, TokenInvalidAccountSizeError, TokenInvalidInstructionDataError, TokenInvalidInstructionKeysError, TokenInvalidInstructionProgramError, TokenInvalidInstructionTypeError, TokenInvalidMintError, TokenInvalidOwnerError, TokenOwnerOffCurveError, TokenUnsupportedInstructionError, type TransactionParams, type TransferCheckedInstructionData, type Uint64, V1Client, ZERO, addSigners, approveInstructionData, buildSwapQuoteResult, calculateAPYFromAPR, calculateDriftBorrowAPR, calculateDriftBorrowAPY, calculateDriftBorrowRate, calculateDriftDepositRate, calculateDriftInterestRate, calculateDriftLendingAPR, calculateDriftLendingAPY, calculateDriftUtilization, calculateJupLendBorrowRate, calculateJupLendLiquiditySupplyRate, calculateJupLendNewExchangePrice, calculateJupLendRewardsRate, calculateJupLendRewardsRateForExchangePrice, calculateJupLendSupplyAPY, calculateJupLendSupplyRate, calculateJupLendTotalAssets, calculateKaminoEstimatedBorrowRate, calculateKaminoEstimatedSupplyRate, calculateKaminoSupplyAPY, calculateRewardApy, calculateSlotAdjustmentFactor, calculateUtilizationRatio, closeAccountInstructionData, createAccountIx, createApproveInstruction, createAssociatedTokenAccountIdempotentInstruction, createAssociatedTokenAccountInstruction, createCloseAccountInstruction, createInitializeAccountInstruction, createMemoInstruction, createPoolOnrampIx, createSyncNativeInstruction, createTransferCheckedInstruction, decodeDriftSpotMarketData, decodeDriftStateData, decodeDriftUserData, decodeDriftUserStatsData, decodeFarmDataRaw, decodeJupLendingRewardsRateModelData, decodeJupLendingStateData, decodeJupRateModelData, decodeJupTokenReserveData, decodeKlendObligationData, decodeKlendReserveData, deriveBaseObligation, deriveDriftSigner, deriveDriftSpotMarket, deriveDriftSpotMarketVault, deriveDriftState, deriveDriftUser, deriveDriftUserStats, deriveFeeReceiver, deriveJupLendClaimAccount, deriveJupLendFTokenMint, deriveJupLendLending, deriveJupLendLendingAdmin, deriveJupLendLendingPdas, deriveJupLendLendingRewardsRateModel, deriveJupLendLiquidity, deriveJupLendLiquiditySupplyPositionPda, deriveJupLendLiquidityVaultAta, deriveJupLendRateModel, deriveJupLendTokenReserve, deriveLendingMarketAuthority, deriveObligation, deriveReferrerState, deriveReferrerTokenState, deriveReserveCollateralMint, deriveReserveCollateralSupply, deriveReserveLiquiditySupply, deriveShortUrl, deriveUserMetadata, deriveUserState, deserializeSerializedInstruction, driftRewardsRawToDto, driftSpotMarketRawToDto, driftStateRawToDto, driftUserRawToDto, driftUserStatsRawToDto, dtoToDriftRewardsRaw, dtoToDriftSpotMarketRaw, dtoToDriftStateRaw, dtoToDriftUserRaw, dtoToDriftUserStatsRaw, dtoToFarmRaw, dtoToJupLendingRewardsRateModelRaw, dtoToJupLendingStateRaw, dtoToJupRateModelRaw, dtoToJupTokenReserveRaw, dtoToObligationRaw, dtoToReserveRaw, farmRawToDto, findMplMetadataAddress, findPoolAddress, findPoolMintAddress, findPoolMintAddressByVoteAccount, findPoolMintAuthorityAddress, findPoolMplAuthorityAddress, findPoolOnRampAddress, findPoolStakeAddress, findPoolStakeAuthorityAddress, generateDriftReserveCurve, generateJupLendSupplyCurve, generateKaminoReserveCurve, getAccount, getAccountLen, getAllDerivedDriftAccounts, getAllDerivedJupLendAccounts, getAllDerivedKaminoAccounts, getAllRequiredMarkets, getAssociatedTokenAddressSync, getDriftRewards, getDriftTokenAmount, getFixedHostInterestRate, getJupLendRewards, getKaminoBorrowRate, getKaminoTotalSupply, getMinimumBalanceForRentExemptAccount, getMinimumBalanceForRentExemptAccountWithExtensions, getMint, getMultipleAccounts, getProtocolTakeRatePct, getReserveRewardsApy, getRewardPerTimeUnitSecond, getStakeAccount, initializeAccountInstructionData, initializeStakedPoolIxs, initializeStakedPoolTx, interpolateLinear, jupLendingRewardsRateModelRawToDto, jupLendingStateRawToDto, jupRateModelRawToDto, jupTokenReserveRawToDto, layout, makeRefreshObligationIx, makeRefreshReservesBatchIx, makeRefreshingIxs, makeUpdateJupLendRate, makeUpdateJupLendRateIx, makeUpdateSpotMarketCumulativeInterestIx, makeUpdateSpotMarketIx, obligationRawToDto, parsePriceData, parsePriceInfo, replenishPoolIx, reserveRawToDto, resolveLookupTables, scaledSupplies, selectBestRoute, slotAdjustmentFactor, syncNativeInstructionData, transferCheckedInstructionData, truncateBorrowCurve, unpackAccount };