@0dotxyz/p0-ts-sdk 2.2.3-alpha.1 → 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.cjs CHANGED
@@ -28606,8 +28606,2841 @@ var jup_lend_default = {
28606
28606
  ]
28607
28607
  };
28608
28608
 
28609
+ // src/vendor/jup-lend/idl/jup-lend-liquidity.json
28610
+ var jup_lend_liquidity_default = {
28611
+ address: "jupeiUmn818Jg1ekPURTpr4mFo29p46vygyykFJ3wZC",
28612
+ metadata: {
28613
+ name: "liquidity",
28614
+ version: "0.1.0",
28615
+ spec: "0.1.0",
28616
+ description: "Created with Anchor"
28617
+ },
28618
+ instructions: [
28619
+ {
28620
+ name: "change_status",
28621
+ discriminator: [236, 145, 131, 228, 227, 17, 192, 255],
28622
+ accounts: [
28623
+ {
28624
+ name: "authority",
28625
+ signer: true
28626
+ },
28627
+ {
28628
+ name: "liquidity",
28629
+ writable: true
28630
+ },
28631
+ {
28632
+ name: "auth_list"
28633
+ }
28634
+ ],
28635
+ args: [
28636
+ {
28637
+ name: "status",
28638
+ type: "bool"
28639
+ }
28640
+ ]
28641
+ },
28642
+ {
28643
+ name: "claim",
28644
+ discriminator: [62, 198, 214, 193, 213, 159, 108, 210],
28645
+ accounts: [
28646
+ {
28647
+ name: "user",
28648
+ signer: true,
28649
+ relations: ["claim_account"]
28650
+ },
28651
+ {
28652
+ name: "liquidity"
28653
+ },
28654
+ {
28655
+ name: "token_reserve",
28656
+ writable: true
28657
+ },
28658
+ {
28659
+ name: "mint",
28660
+ relations: ["token_reserve", "claim_account"]
28661
+ },
28662
+ {
28663
+ name: "recipient_token_account",
28664
+ writable: true,
28665
+ pda: {
28666
+ seeds: [
28667
+ {
28668
+ kind: "arg",
28669
+ path: "recipient"
28670
+ },
28671
+ {
28672
+ kind: "account",
28673
+ path: "token_program"
28674
+ },
28675
+ {
28676
+ kind: "account",
28677
+ path: "mint"
28678
+ }
28679
+ ],
28680
+ program: {
28681
+ kind: "const",
28682
+ value: [
28683
+ 140,
28684
+ 151,
28685
+ 37,
28686
+ 143,
28687
+ 78,
28688
+ 36,
28689
+ 137,
28690
+ 241,
28691
+ 187,
28692
+ 61,
28693
+ 16,
28694
+ 41,
28695
+ 20,
28696
+ 142,
28697
+ 13,
28698
+ 131,
28699
+ 11,
28700
+ 90,
28701
+ 19,
28702
+ 153,
28703
+ 218,
28704
+ 255,
28705
+ 16,
28706
+ 132,
28707
+ 4,
28708
+ 142,
28709
+ 123,
28710
+ 216,
28711
+ 219,
28712
+ 233,
28713
+ 248,
28714
+ 89
28715
+ ]
28716
+ }
28717
+ }
28718
+ },
28719
+ {
28720
+ name: "vault",
28721
+ writable: true,
28722
+ pda: {
28723
+ seeds: [
28724
+ {
28725
+ kind: "account",
28726
+ path: "liquidity"
28727
+ },
28728
+ {
28729
+ kind: "account",
28730
+ path: "token_program"
28731
+ },
28732
+ {
28733
+ kind: "account",
28734
+ path: "mint"
28735
+ }
28736
+ ],
28737
+ program: {
28738
+ kind: "const",
28739
+ value: [
28740
+ 140,
28741
+ 151,
28742
+ 37,
28743
+ 143,
28744
+ 78,
28745
+ 36,
28746
+ 137,
28747
+ 241,
28748
+ 187,
28749
+ 61,
28750
+ 16,
28751
+ 41,
28752
+ 20,
28753
+ 142,
28754
+ 13,
28755
+ 131,
28756
+ 11,
28757
+ 90,
28758
+ 19,
28759
+ 153,
28760
+ 218,
28761
+ 255,
28762
+ 16,
28763
+ 132,
28764
+ 4,
28765
+ 142,
28766
+ 123,
28767
+ 216,
28768
+ 219,
28769
+ 233,
28770
+ 248,
28771
+ 89
28772
+ ]
28773
+ }
28774
+ },
28775
+ relations: ["token_reserve"]
28776
+ },
28777
+ {
28778
+ name: "claim_account",
28779
+ writable: true
28780
+ },
28781
+ {
28782
+ name: "token_program"
28783
+ },
28784
+ {
28785
+ name: "associated_token_program",
28786
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
28787
+ }
28788
+ ],
28789
+ args: [
28790
+ {
28791
+ name: "recipient",
28792
+ type: "pubkey"
28793
+ }
28794
+ ]
28795
+ },
28796
+ {
28797
+ name: "close_claim_account",
28798
+ discriminator: [241, 146, 203, 216, 58, 222, 91, 118],
28799
+ accounts: [
28800
+ {
28801
+ name: "user",
28802
+ writable: true,
28803
+ signer: true,
28804
+ relations: ["claim_account"]
28805
+ },
28806
+ {
28807
+ name: "claim_account",
28808
+ writable: true
28809
+ },
28810
+ {
28811
+ name: "system_program",
28812
+ address: "11111111111111111111111111111111"
28813
+ }
28814
+ ],
28815
+ args: [
28816
+ {
28817
+ name: "_mint",
28818
+ type: "pubkey"
28819
+ }
28820
+ ]
28821
+ },
28822
+ {
28823
+ name: "collect_revenue",
28824
+ discriminator: [87, 96, 211, 36, 240, 43, 246, 87],
28825
+ accounts: [
28826
+ {
28827
+ name: "authority",
28828
+ writable: true,
28829
+ signer: true
28830
+ },
28831
+ {
28832
+ name: "liquidity"
28833
+ },
28834
+ {
28835
+ name: "auth_list"
28836
+ },
28837
+ {
28838
+ name: "mint",
28839
+ relations: ["token_reserve"]
28840
+ },
28841
+ {
28842
+ name: "revenue_collector_account",
28843
+ writable: true,
28844
+ pda: {
28845
+ seeds: [
28846
+ {
28847
+ kind: "account",
28848
+ path: "revenue_collector"
28849
+ },
28850
+ {
28851
+ kind: "account",
28852
+ path: "token_program"
28853
+ },
28854
+ {
28855
+ kind: "account",
28856
+ path: "mint"
28857
+ }
28858
+ ],
28859
+ program: {
28860
+ kind: "const",
28861
+ value: [
28862
+ 140,
28863
+ 151,
28864
+ 37,
28865
+ 143,
28866
+ 78,
28867
+ 36,
28868
+ 137,
28869
+ 241,
28870
+ 187,
28871
+ 61,
28872
+ 16,
28873
+ 41,
28874
+ 20,
28875
+ 142,
28876
+ 13,
28877
+ 131,
28878
+ 11,
28879
+ 90,
28880
+ 19,
28881
+ 153,
28882
+ 218,
28883
+ 255,
28884
+ 16,
28885
+ 132,
28886
+ 4,
28887
+ 142,
28888
+ 123,
28889
+ 216,
28890
+ 219,
28891
+ 233,
28892
+ 248,
28893
+ 89
28894
+ ]
28895
+ }
28896
+ }
28897
+ },
28898
+ {
28899
+ name: "revenue_collector"
28900
+ },
28901
+ {
28902
+ name: "token_reserve",
28903
+ writable: true
28904
+ },
28905
+ {
28906
+ name: "vault",
28907
+ writable: true,
28908
+ pda: {
28909
+ seeds: [
28910
+ {
28911
+ kind: "account",
28912
+ path: "liquidity"
28913
+ },
28914
+ {
28915
+ kind: "account",
28916
+ path: "token_program"
28917
+ },
28918
+ {
28919
+ kind: "account",
28920
+ path: "mint"
28921
+ }
28922
+ ],
28923
+ program: {
28924
+ kind: "const",
28925
+ value: [
28926
+ 140,
28927
+ 151,
28928
+ 37,
28929
+ 143,
28930
+ 78,
28931
+ 36,
28932
+ 137,
28933
+ 241,
28934
+ 187,
28935
+ 61,
28936
+ 16,
28937
+ 41,
28938
+ 20,
28939
+ 142,
28940
+ 13,
28941
+ 131,
28942
+ 11,
28943
+ 90,
28944
+ 19,
28945
+ 153,
28946
+ 218,
28947
+ 255,
28948
+ 16,
28949
+ 132,
28950
+ 4,
28951
+ 142,
28952
+ 123,
28953
+ 216,
28954
+ 219,
28955
+ 233,
28956
+ 248,
28957
+ 89
28958
+ ]
28959
+ }
28960
+ },
28961
+ relations: ["token_reserve"]
28962
+ },
28963
+ {
28964
+ name: "token_program"
28965
+ },
28966
+ {
28967
+ name: "associated_token_program",
28968
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
28969
+ },
28970
+ {
28971
+ name: "system_program",
28972
+ address: "11111111111111111111111111111111"
28973
+ }
28974
+ ],
28975
+ args: []
28976
+ },
28977
+ {
28978
+ name: "init_claim_account",
28979
+ discriminator: [112, 141, 47, 170, 42, 99, 144, 145],
28980
+ accounts: [
28981
+ {
28982
+ name: "signer",
28983
+ writable: true,
28984
+ signer: true
28985
+ },
28986
+ {
28987
+ name: "claim_account",
28988
+ writable: true,
28989
+ pda: {
28990
+ seeds: [
28991
+ {
28992
+ kind: "const",
28993
+ value: [117, 115, 101, 114, 95, 99, 108, 97, 105, 109]
28994
+ },
28995
+ {
28996
+ kind: "arg",
28997
+ path: "user"
28998
+ },
28999
+ {
29000
+ kind: "arg",
29001
+ path: "mint"
29002
+ }
29003
+ ]
29004
+ }
29005
+ },
29006
+ {
29007
+ name: "system_program",
29008
+ address: "11111111111111111111111111111111"
29009
+ }
29010
+ ],
29011
+ args: [
29012
+ {
29013
+ name: "mint",
29014
+ type: "pubkey"
29015
+ },
29016
+ {
29017
+ name: "user",
29018
+ type: "pubkey"
29019
+ }
29020
+ ]
29021
+ },
29022
+ {
29023
+ name: "init_liquidity",
29024
+ discriminator: [95, 189, 216, 183, 188, 62, 244, 108],
29025
+ accounts: [
29026
+ {
29027
+ name: "signer",
29028
+ writable: true,
29029
+ signer: true
29030
+ },
29031
+ {
29032
+ name: "liquidity",
29033
+ writable: true,
29034
+ pda: {
29035
+ seeds: [
29036
+ {
29037
+ kind: "const",
29038
+ value: [108, 105, 113, 117, 105, 100, 105, 116, 121]
29039
+ }
29040
+ ]
29041
+ }
29042
+ },
29043
+ {
29044
+ name: "auth_list",
29045
+ writable: true,
29046
+ pda: {
29047
+ seeds: [
29048
+ {
29049
+ kind: "const",
29050
+ value: [97, 117, 116, 104, 95, 108, 105, 115, 116]
29051
+ }
29052
+ ]
29053
+ }
29054
+ },
29055
+ {
29056
+ name: "system_program",
29057
+ address: "11111111111111111111111111111111"
29058
+ }
29059
+ ],
29060
+ args: [
29061
+ {
29062
+ name: "authority",
29063
+ type: "pubkey"
29064
+ },
29065
+ {
29066
+ name: "revenue_collector",
29067
+ type: "pubkey"
29068
+ }
29069
+ ]
29070
+ },
29071
+ {
29072
+ name: "init_new_protocol",
29073
+ discriminator: [193, 147, 5, 32, 138, 135, 213, 158],
29074
+ accounts: [
29075
+ {
29076
+ name: "authority",
29077
+ writable: true,
29078
+ signer: true
29079
+ },
29080
+ {
29081
+ name: "auth_list"
29082
+ },
29083
+ {
29084
+ name: "user_supply_position",
29085
+ writable: true,
29086
+ pda: {
29087
+ seeds: [
29088
+ {
29089
+ kind: "const",
29090
+ value: [
29091
+ 117,
29092
+ 115,
29093
+ 101,
29094
+ 114,
29095
+ 95,
29096
+ 115,
29097
+ 117,
29098
+ 112,
29099
+ 112,
29100
+ 108,
29101
+ 121,
29102
+ 95,
29103
+ 112,
29104
+ 111,
29105
+ 115,
29106
+ 105,
29107
+ 116,
29108
+ 105,
29109
+ 111,
29110
+ 110
29111
+ ]
29112
+ },
29113
+ {
29114
+ kind: "arg",
29115
+ path: "supply_mint"
29116
+ },
29117
+ {
29118
+ kind: "arg",
29119
+ path: "protocol"
29120
+ }
29121
+ ]
29122
+ }
29123
+ },
29124
+ {
29125
+ name: "user_borrow_position",
29126
+ writable: true,
29127
+ pda: {
29128
+ seeds: [
29129
+ {
29130
+ kind: "const",
29131
+ value: [
29132
+ 117,
29133
+ 115,
29134
+ 101,
29135
+ 114,
29136
+ 95,
29137
+ 98,
29138
+ 111,
29139
+ 114,
29140
+ 114,
29141
+ 111,
29142
+ 119,
29143
+ 95,
29144
+ 112,
29145
+ 111,
29146
+ 115,
29147
+ 105,
29148
+ 116,
29149
+ 105,
29150
+ 111,
29151
+ 110
29152
+ ]
29153
+ },
29154
+ {
29155
+ kind: "arg",
29156
+ path: "borrow_mint"
29157
+ },
29158
+ {
29159
+ kind: "arg",
29160
+ path: "protocol"
29161
+ }
29162
+ ]
29163
+ }
29164
+ },
29165
+ {
29166
+ name: "system_program",
29167
+ address: "11111111111111111111111111111111"
29168
+ }
29169
+ ],
29170
+ args: [
29171
+ {
29172
+ name: "supply_mint",
29173
+ type: "pubkey"
29174
+ },
29175
+ {
29176
+ name: "borrow_mint",
29177
+ type: "pubkey"
29178
+ },
29179
+ {
29180
+ name: "protocol",
29181
+ type: "pubkey"
29182
+ }
29183
+ ]
29184
+ },
29185
+ {
29186
+ name: "init_token_reserve",
29187
+ discriminator: [228, 235, 65, 129, 159, 15, 6, 84],
29188
+ accounts: [
29189
+ {
29190
+ name: "authority",
29191
+ writable: true,
29192
+ signer: true
29193
+ },
29194
+ {
29195
+ name: "liquidity"
29196
+ },
29197
+ {
29198
+ name: "auth_list"
29199
+ },
29200
+ {
29201
+ name: "mint"
29202
+ },
29203
+ {
29204
+ name: "vault",
29205
+ writable: true,
29206
+ pda: {
29207
+ seeds: [
29208
+ {
29209
+ kind: "account",
29210
+ path: "liquidity"
29211
+ },
29212
+ {
29213
+ kind: "account",
29214
+ path: "token_program"
29215
+ },
29216
+ {
29217
+ kind: "account",
29218
+ path: "mint"
29219
+ }
29220
+ ],
29221
+ program: {
29222
+ kind: "const",
29223
+ value: [
29224
+ 140,
29225
+ 151,
29226
+ 37,
29227
+ 143,
29228
+ 78,
29229
+ 36,
29230
+ 137,
29231
+ 241,
29232
+ 187,
29233
+ 61,
29234
+ 16,
29235
+ 41,
29236
+ 20,
29237
+ 142,
29238
+ 13,
29239
+ 131,
29240
+ 11,
29241
+ 90,
29242
+ 19,
29243
+ 153,
29244
+ 218,
29245
+ 255,
29246
+ 16,
29247
+ 132,
29248
+ 4,
29249
+ 142,
29250
+ 123,
29251
+ 216,
29252
+ 219,
29253
+ 233,
29254
+ 248,
29255
+ 89
29256
+ ]
29257
+ }
29258
+ }
29259
+ },
29260
+ {
29261
+ name: "rate_model",
29262
+ writable: true,
29263
+ pda: {
29264
+ seeds: [
29265
+ {
29266
+ kind: "const",
29267
+ value: [114, 97, 116, 101, 95, 109, 111, 100, 101, 108]
29268
+ },
29269
+ {
29270
+ kind: "account",
29271
+ path: "mint"
29272
+ }
29273
+ ]
29274
+ }
29275
+ },
29276
+ {
29277
+ name: "token_reserve",
29278
+ writable: true,
29279
+ pda: {
29280
+ seeds: [
29281
+ {
29282
+ kind: "const",
29283
+ value: [114, 101, 115, 101, 114, 118, 101]
29284
+ },
29285
+ {
29286
+ kind: "account",
29287
+ path: "mint"
29288
+ }
29289
+ ]
29290
+ }
29291
+ },
29292
+ {
29293
+ name: "token_program"
29294
+ },
29295
+ {
29296
+ name: "associated_token_program",
29297
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
29298
+ },
29299
+ {
29300
+ name: "system_program",
29301
+ address: "11111111111111111111111111111111"
29302
+ }
29303
+ ],
29304
+ args: []
29305
+ },
29306
+ {
29307
+ name: "operate",
29308
+ discriminator: [217, 106, 208, 99, 116, 151, 42, 135],
29309
+ accounts: [
29310
+ {
29311
+ name: "protocol",
29312
+ signer: true,
29313
+ relations: ["user_supply_position", "user_borrow_position"]
29314
+ },
29315
+ {
29316
+ name: "liquidity"
29317
+ },
29318
+ {
29319
+ name: "token_reserve",
29320
+ writable: true
29321
+ },
29322
+ {
29323
+ name: "mint",
29324
+ relations: [
29325
+ "token_reserve",
29326
+ "rate_model",
29327
+ "borrow_claim_account",
29328
+ "withdraw_claim_account"
29329
+ ]
29330
+ },
29331
+ {
29332
+ name: "vault",
29333
+ writable: true,
29334
+ pda: {
29335
+ seeds: [
29336
+ {
29337
+ kind: "account",
29338
+ path: "liquidity"
29339
+ },
29340
+ {
29341
+ kind: "account",
29342
+ path: "token_program"
29343
+ },
29344
+ {
29345
+ kind: "account",
29346
+ path: "mint"
29347
+ }
29348
+ ],
29349
+ program: {
29350
+ kind: "const",
29351
+ value: [
29352
+ 140,
29353
+ 151,
29354
+ 37,
29355
+ 143,
29356
+ 78,
29357
+ 36,
29358
+ 137,
29359
+ 241,
29360
+ 187,
29361
+ 61,
29362
+ 16,
29363
+ 41,
29364
+ 20,
29365
+ 142,
29366
+ 13,
29367
+ 131,
29368
+ 11,
29369
+ 90,
29370
+ 19,
29371
+ 153,
29372
+ 218,
29373
+ 255,
29374
+ 16,
29375
+ 132,
29376
+ 4,
29377
+ 142,
29378
+ 123,
29379
+ 216,
29380
+ 219,
29381
+ 233,
29382
+ 248,
29383
+ 89
29384
+ ]
29385
+ }
29386
+ },
29387
+ relations: ["token_reserve"]
29388
+ },
29389
+ {
29390
+ name: "user_supply_position",
29391
+ writable: true,
29392
+ optional: true
29393
+ },
29394
+ {
29395
+ name: "user_borrow_position",
29396
+ writable: true,
29397
+ optional: true
29398
+ },
29399
+ {
29400
+ name: "rate_model"
29401
+ },
29402
+ {
29403
+ name: "withdraw_to_account",
29404
+ writable: true,
29405
+ optional: true,
29406
+ pda: {
29407
+ seeds: [
29408
+ {
29409
+ kind: "arg",
29410
+ path: "withdraw_to"
29411
+ },
29412
+ {
29413
+ kind: "account",
29414
+ path: "token_program"
29415
+ },
29416
+ {
29417
+ kind: "account",
29418
+ path: "mint"
29419
+ }
29420
+ ],
29421
+ program: {
29422
+ kind: "const",
29423
+ value: [
29424
+ 140,
29425
+ 151,
29426
+ 37,
29427
+ 143,
29428
+ 78,
29429
+ 36,
29430
+ 137,
29431
+ 241,
29432
+ 187,
29433
+ 61,
29434
+ 16,
29435
+ 41,
29436
+ 20,
29437
+ 142,
29438
+ 13,
29439
+ 131,
29440
+ 11,
29441
+ 90,
29442
+ 19,
29443
+ 153,
29444
+ 218,
29445
+ 255,
29446
+ 16,
29447
+ 132,
29448
+ 4,
29449
+ 142,
29450
+ 123,
29451
+ 216,
29452
+ 219,
29453
+ 233,
29454
+ 248,
29455
+ 89
29456
+ ]
29457
+ }
29458
+ }
29459
+ },
29460
+ {
29461
+ name: "borrow_to_account",
29462
+ writable: true,
29463
+ optional: true,
29464
+ pda: {
29465
+ seeds: [
29466
+ {
29467
+ kind: "arg",
29468
+ path: "borrow_to"
29469
+ },
29470
+ {
29471
+ kind: "account",
29472
+ path: "token_program"
29473
+ },
29474
+ {
29475
+ kind: "account",
29476
+ path: "mint"
29477
+ }
29478
+ ],
29479
+ program: {
29480
+ kind: "const",
29481
+ value: [
29482
+ 140,
29483
+ 151,
29484
+ 37,
29485
+ 143,
29486
+ 78,
29487
+ 36,
29488
+ 137,
29489
+ 241,
29490
+ 187,
29491
+ 61,
29492
+ 16,
29493
+ 41,
29494
+ 20,
29495
+ 142,
29496
+ 13,
29497
+ 131,
29498
+ 11,
29499
+ 90,
29500
+ 19,
29501
+ 153,
29502
+ 218,
29503
+ 255,
29504
+ 16,
29505
+ 132,
29506
+ 4,
29507
+ 142,
29508
+ 123,
29509
+ 216,
29510
+ 219,
29511
+ 233,
29512
+ 248,
29513
+ 89
29514
+ ]
29515
+ }
29516
+ }
29517
+ },
29518
+ {
29519
+ name: "borrow_claim_account",
29520
+ writable: true,
29521
+ optional: true
29522
+ },
29523
+ {
29524
+ name: "withdraw_claim_account",
29525
+ writable: true,
29526
+ optional: true
29527
+ },
29528
+ {
29529
+ name: "token_program"
29530
+ },
29531
+ {
29532
+ name: "associated_token_program",
29533
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
29534
+ }
29535
+ ],
29536
+ args: [
29537
+ {
29538
+ name: "supply_amount",
29539
+ type: "i128"
29540
+ },
29541
+ {
29542
+ name: "borrow_amount",
29543
+ type: "i128"
29544
+ },
29545
+ {
29546
+ name: "withdraw_to",
29547
+ type: "pubkey"
29548
+ },
29549
+ {
29550
+ name: "borrow_to",
29551
+ type: "pubkey"
29552
+ },
29553
+ {
29554
+ name: "transfer_type",
29555
+ type: {
29556
+ defined: {
29557
+ name: "TransferType"
29558
+ }
29559
+ }
29560
+ }
29561
+ ]
29562
+ },
29563
+ {
29564
+ name: "pause_user",
29565
+ discriminator: [18, 63, 43, 94, 239, 53, 101, 14],
29566
+ accounts: [
29567
+ {
29568
+ name: "authority",
29569
+ signer: true
29570
+ },
29571
+ {
29572
+ name: "auth_list"
29573
+ },
29574
+ {
29575
+ name: "user_supply_position",
29576
+ writable: true
29577
+ },
29578
+ {
29579
+ name: "user_borrow_position",
29580
+ writable: true
29581
+ }
29582
+ ],
29583
+ args: [
29584
+ {
29585
+ name: "protocol",
29586
+ type: "pubkey"
29587
+ },
29588
+ {
29589
+ name: "supply_mint",
29590
+ type: "pubkey"
29591
+ },
29592
+ {
29593
+ name: "borrow_mint",
29594
+ type: "pubkey"
29595
+ },
29596
+ {
29597
+ name: "supply_status",
29598
+ type: {
29599
+ option: "u8"
29600
+ }
29601
+ },
29602
+ {
29603
+ name: "borrow_status",
29604
+ type: {
29605
+ option: "u8"
29606
+ }
29607
+ }
29608
+ ]
29609
+ },
29610
+ {
29611
+ name: "pre_operate",
29612
+ discriminator: [129, 205, 158, 155, 198, 155, 72, 133],
29613
+ accounts: [
29614
+ {
29615
+ name: "protocol",
29616
+ signer: true,
29617
+ relations: ["user_supply_position", "user_borrow_position"]
29618
+ },
29619
+ {
29620
+ name: "liquidity"
29621
+ },
29622
+ {
29623
+ name: "user_supply_position",
29624
+ optional: true
29625
+ },
29626
+ {
29627
+ name: "user_borrow_position",
29628
+ optional: true
29629
+ },
29630
+ {
29631
+ name: "vault",
29632
+ pda: {
29633
+ seeds: [
29634
+ {
29635
+ kind: "account",
29636
+ path: "liquidity"
29637
+ },
29638
+ {
29639
+ kind: "account",
29640
+ path: "token_program"
29641
+ },
29642
+ {
29643
+ kind: "arg",
29644
+ path: "mint"
29645
+ }
29646
+ ],
29647
+ program: {
29648
+ kind: "const",
29649
+ value: [
29650
+ 140,
29651
+ 151,
29652
+ 37,
29653
+ 143,
29654
+ 78,
29655
+ 36,
29656
+ 137,
29657
+ 241,
29658
+ 187,
29659
+ 61,
29660
+ 16,
29661
+ 41,
29662
+ 20,
29663
+ 142,
29664
+ 13,
29665
+ 131,
29666
+ 11,
29667
+ 90,
29668
+ 19,
29669
+ 153,
29670
+ 218,
29671
+ 255,
29672
+ 16,
29673
+ 132,
29674
+ 4,
29675
+ 142,
29676
+ 123,
29677
+ 216,
29678
+ 219,
29679
+ 233,
29680
+ 248,
29681
+ 89
29682
+ ]
29683
+ }
29684
+ },
29685
+ relations: ["token_reserve"]
29686
+ },
29687
+ {
29688
+ name: "token_reserve",
29689
+ writable: true
29690
+ },
29691
+ {
29692
+ name: "associated_token_program",
29693
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
29694
+ },
29695
+ {
29696
+ name: "token_program"
29697
+ }
29698
+ ],
29699
+ args: [
29700
+ {
29701
+ name: "mint",
29702
+ type: "pubkey"
29703
+ }
29704
+ ]
29705
+ },
29706
+ {
29707
+ name: "unpause_user",
29708
+ discriminator: [71, 115, 128, 252, 182, 126, 234, 62],
29709
+ accounts: [
29710
+ {
29711
+ name: "authority",
29712
+ signer: true
29713
+ },
29714
+ {
29715
+ name: "auth_list"
29716
+ },
29717
+ {
29718
+ name: "user_supply_position",
29719
+ writable: true
29720
+ },
29721
+ {
29722
+ name: "user_borrow_position",
29723
+ writable: true
29724
+ }
29725
+ ],
29726
+ args: [
29727
+ {
29728
+ name: "protocol",
29729
+ type: "pubkey"
29730
+ },
29731
+ {
29732
+ name: "supply_mint",
29733
+ type: "pubkey"
29734
+ },
29735
+ {
29736
+ name: "borrow_mint",
29737
+ type: "pubkey"
29738
+ },
29739
+ {
29740
+ name: "supply_status",
29741
+ type: {
29742
+ option: "u8"
29743
+ }
29744
+ },
29745
+ {
29746
+ name: "borrow_status",
29747
+ type: {
29748
+ option: "u8"
29749
+ }
29750
+ }
29751
+ ]
29752
+ },
29753
+ {
29754
+ name: "update_authority",
29755
+ discriminator: [32, 46, 64, 28, 149, 75, 243, 88],
29756
+ accounts: [
29757
+ {
29758
+ name: "authority",
29759
+ signer: true
29760
+ },
29761
+ {
29762
+ name: "liquidity",
29763
+ writable: true
29764
+ },
29765
+ {
29766
+ name: "auth_list",
29767
+ writable: true
29768
+ }
29769
+ ],
29770
+ args: [
29771
+ {
29772
+ name: "new_authority",
29773
+ type: "pubkey"
29774
+ }
29775
+ ]
29776
+ },
29777
+ {
29778
+ name: "update_auths",
29779
+ discriminator: [93, 96, 178, 156, 57, 117, 253, 209],
29780
+ accounts: [
29781
+ {
29782
+ name: "authority",
29783
+ signer: true
29784
+ },
29785
+ {
29786
+ name: "liquidity"
29787
+ },
29788
+ {
29789
+ name: "auth_list",
29790
+ writable: true
29791
+ }
29792
+ ],
29793
+ args: [
29794
+ {
29795
+ name: "auth_status",
29796
+ type: {
29797
+ vec: {
29798
+ defined: {
29799
+ name: "AddressBool"
29800
+ }
29801
+ }
29802
+ }
29803
+ }
29804
+ ]
29805
+ },
29806
+ {
29807
+ name: "update_exchange_price",
29808
+ discriminator: [239, 244, 10, 248, 116, 25, 53, 150],
29809
+ accounts: [
29810
+ {
29811
+ name: "token_reserve",
29812
+ writable: true
29813
+ },
29814
+ {
29815
+ name: "rate_model",
29816
+ writable: true
29817
+ }
29818
+ ],
29819
+ args: [
29820
+ {
29821
+ name: "_mint",
29822
+ type: "pubkey"
29823
+ }
29824
+ ]
29825
+ },
29826
+ {
29827
+ name: "update_guardians",
29828
+ discriminator: [43, 62, 250, 138, 141, 117, 132, 97],
29829
+ accounts: [
29830
+ {
29831
+ name: "authority",
29832
+ signer: true
29833
+ },
29834
+ {
29835
+ name: "liquidity"
29836
+ },
29837
+ {
29838
+ name: "auth_list",
29839
+ writable: true
29840
+ }
29841
+ ],
29842
+ args: [
29843
+ {
29844
+ name: "guardian_status",
29845
+ type: {
29846
+ vec: {
29847
+ defined: {
29848
+ name: "AddressBool"
29849
+ }
29850
+ }
29851
+ }
29852
+ }
29853
+ ]
29854
+ },
29855
+ {
29856
+ name: "update_rate_data_v1",
29857
+ discriminator: [6, 20, 34, 122, 22, 150, 180, 22],
29858
+ accounts: [
29859
+ {
29860
+ name: "authority",
29861
+ signer: true
29862
+ },
29863
+ {
29864
+ name: "auth_list"
29865
+ },
29866
+ {
29867
+ name: "rate_model",
29868
+ writable: true
29869
+ },
29870
+ {
29871
+ name: "mint",
29872
+ relations: ["rate_model", "token_reserve"]
29873
+ },
29874
+ {
29875
+ name: "token_reserve",
29876
+ writable: true
29877
+ }
29878
+ ],
29879
+ args: [
29880
+ {
29881
+ name: "rate_data",
29882
+ type: {
29883
+ defined: {
29884
+ name: "RateDataV1Params"
29885
+ }
29886
+ }
29887
+ }
29888
+ ]
29889
+ },
29890
+ {
29891
+ name: "update_rate_data_v2",
29892
+ discriminator: [116, 73, 53, 146, 216, 45, 228, 124],
29893
+ accounts: [
29894
+ {
29895
+ name: "authority",
29896
+ signer: true
29897
+ },
29898
+ {
29899
+ name: "auth_list"
29900
+ },
29901
+ {
29902
+ name: "rate_model",
29903
+ writable: true
29904
+ },
29905
+ {
29906
+ name: "mint",
29907
+ relations: ["rate_model", "token_reserve"]
29908
+ },
29909
+ {
29910
+ name: "token_reserve",
29911
+ writable: true
29912
+ }
29913
+ ],
29914
+ args: [
29915
+ {
29916
+ name: "rate_data",
29917
+ type: {
29918
+ defined: {
29919
+ name: "RateDataV2Params"
29920
+ }
29921
+ }
29922
+ }
29923
+ ]
29924
+ },
29925
+ {
29926
+ name: "update_revenue_collector",
29927
+ discriminator: [167, 142, 124, 240, 220, 113, 141, 59],
29928
+ accounts: [
29929
+ {
29930
+ name: "authority",
29931
+ signer: true
29932
+ },
29933
+ {
29934
+ name: "liquidity",
29935
+ writable: true
29936
+ }
29937
+ ],
29938
+ args: [
29939
+ {
29940
+ name: "revenue_collector",
29941
+ type: "pubkey"
29942
+ }
29943
+ ]
29944
+ },
29945
+ {
29946
+ name: "update_token_config",
29947
+ discriminator: [231, 122, 181, 79, 255, 79, 144, 167],
29948
+ accounts: [
29949
+ {
29950
+ name: "authority",
29951
+ signer: true
29952
+ },
29953
+ {
29954
+ name: "auth_list"
29955
+ },
29956
+ {
29957
+ name: "rate_model",
29958
+ writable: true
29959
+ },
29960
+ {
29961
+ name: "mint",
29962
+ relations: ["rate_model", "token_reserve"]
29963
+ },
29964
+ {
29965
+ name: "token_reserve",
29966
+ writable: true
29967
+ }
29968
+ ],
29969
+ args: [
29970
+ {
29971
+ name: "token_config",
29972
+ type: {
29973
+ defined: {
29974
+ name: "TokenConfig"
29975
+ }
29976
+ }
29977
+ }
29978
+ ]
29979
+ },
29980
+ {
29981
+ name: "update_user_borrow_config",
29982
+ discriminator: [100, 176, 201, 174, 247, 2, 54, 168],
29983
+ accounts: [
29984
+ {
29985
+ name: "authority",
29986
+ signer: true
29987
+ },
29988
+ {
29989
+ name: "protocol",
29990
+ relations: ["user_borrow_position"]
29991
+ },
29992
+ {
29993
+ name: "auth_list"
29994
+ },
29995
+ {
29996
+ name: "rate_model"
29997
+ },
29998
+ {
29999
+ name: "mint",
30000
+ relations: ["rate_model", "token_reserve", "user_borrow_position"]
30001
+ },
30002
+ {
30003
+ name: "token_reserve",
30004
+ writable: true
30005
+ },
30006
+ {
30007
+ name: "user_borrow_position",
30008
+ writable: true
30009
+ }
30010
+ ],
30011
+ args: [
30012
+ {
30013
+ name: "user_borrow_config",
30014
+ type: {
30015
+ defined: {
30016
+ name: "UserBorrowConfig"
30017
+ }
30018
+ }
30019
+ }
30020
+ ]
30021
+ },
30022
+ {
30023
+ name: "update_user_class",
30024
+ discriminator: [12, 206, 68, 135, 63, 212, 48, 119],
30025
+ accounts: [
30026
+ {
30027
+ name: "authority",
30028
+ signer: true
30029
+ },
30030
+ {
30031
+ name: "auth_list",
30032
+ writable: true
30033
+ }
30034
+ ],
30035
+ args: [
30036
+ {
30037
+ name: "user_class",
30038
+ type: {
30039
+ vec: {
30040
+ defined: {
30041
+ name: "AddressU8"
30042
+ }
30043
+ }
30044
+ }
30045
+ }
30046
+ ]
30047
+ },
30048
+ {
30049
+ name: "update_user_supply_config",
30050
+ discriminator: [217, 239, 225, 218, 33, 49, 234, 183],
30051
+ accounts: [
30052
+ {
30053
+ name: "authority",
30054
+ signer: true
30055
+ },
30056
+ {
30057
+ name: "protocol",
30058
+ relations: ["user_supply_position"]
30059
+ },
30060
+ {
30061
+ name: "auth_list"
30062
+ },
30063
+ {
30064
+ name: "rate_model"
30065
+ },
30066
+ {
30067
+ name: "mint",
30068
+ relations: ["rate_model", "token_reserve", "user_supply_position"]
30069
+ },
30070
+ {
30071
+ name: "token_reserve",
30072
+ writable: true
30073
+ },
30074
+ {
30075
+ name: "user_supply_position",
30076
+ writable: true
30077
+ }
30078
+ ],
30079
+ args: [
30080
+ {
30081
+ name: "user_supply_config",
30082
+ type: {
30083
+ defined: {
30084
+ name: "UserSupplyConfig"
30085
+ }
30086
+ }
30087
+ }
30088
+ ]
30089
+ },
30090
+ {
30091
+ name: "update_user_withdrawal_limit",
30092
+ discriminator: [162, 9, 186, 9, 213, 30, 173, 78],
30093
+ accounts: [
30094
+ {
30095
+ name: "authority",
30096
+ signer: true
30097
+ },
30098
+ {
30099
+ name: "auth_list"
30100
+ },
30101
+ {
30102
+ name: "user_supply_position",
30103
+ writable: true
30104
+ }
30105
+ ],
30106
+ args: [
30107
+ {
30108
+ name: "new_limit",
30109
+ type: "u128"
30110
+ },
30111
+ {
30112
+ name: "protocol",
30113
+ type: "pubkey"
30114
+ },
30115
+ {
30116
+ name: "mint",
30117
+ type: "pubkey"
30118
+ }
30119
+ ]
30120
+ }
30121
+ ],
30122
+ accounts: [
30123
+ {
30124
+ name: "AuthorizationList",
30125
+ discriminator: [19, 157, 117, 43, 236, 167, 251, 69]
30126
+ },
30127
+ {
30128
+ name: "Liquidity",
30129
+ discriminator: [54, 252, 249, 226, 137, 172, 121, 58]
30130
+ },
30131
+ {
30132
+ name: "RateModel",
30133
+ discriminator: [94, 3, 203, 219, 107, 137, 4, 162]
30134
+ },
30135
+ {
30136
+ name: "TokenReserve",
30137
+ discriminator: [21, 18, 59, 135, 120, 20, 31, 12]
30138
+ },
30139
+ {
30140
+ name: "UserBorrowPosition",
30141
+ discriminator: [73, 126, 65, 123, 220, 126, 197, 24]
30142
+ },
30143
+ {
30144
+ name: "UserClaim",
30145
+ discriminator: [228, 142, 195, 181, 228, 147, 32, 209]
30146
+ },
30147
+ {
30148
+ name: "UserSupplyPosition",
30149
+ discriminator: [202, 219, 136, 118, 61, 177, 21, 146]
30150
+ }
30151
+ ],
30152
+ events: [
30153
+ {
30154
+ name: "LogBorrowRateCap",
30155
+ discriminator: [156, 131, 232, 94, 254, 156, 14, 117]
30156
+ },
30157
+ {
30158
+ name: "LogChangeStatus",
30159
+ discriminator: [89, 77, 37, 172, 141, 31, 74, 42]
30160
+ },
30161
+ {
30162
+ name: "LogClaim",
30163
+ discriminator: [238, 50, 157, 85, 151, 58, 231, 45]
30164
+ },
30165
+ {
30166
+ name: "LogCollectRevenue",
30167
+ discriminator: [64, 198, 22, 194, 123, 87, 166, 82]
30168
+ },
30169
+ {
30170
+ name: "LogOperate",
30171
+ discriminator: [180, 8, 81, 71, 19, 132, 173, 8]
30172
+ },
30173
+ {
30174
+ name: "LogPauseUser",
30175
+ discriminator: [100, 17, 114, 224, 180, 30, 52, 170]
30176
+ },
30177
+ {
30178
+ name: "LogUnpauseUser",
30179
+ discriminator: [170, 91, 132, 96, 179, 77, 168, 26]
30180
+ },
30181
+ {
30182
+ name: "LogUpdateAuthority",
30183
+ discriminator: [150, 152, 157, 143, 6, 135, 193, 101]
30184
+ },
30185
+ {
30186
+ name: "LogUpdateAuths",
30187
+ discriminator: [88, 80, 109, 48, 111, 203, 76, 251]
30188
+ },
30189
+ {
30190
+ name: "LogUpdateExchangePrices",
30191
+ discriminator: [190, 194, 69, 204, 30, 86, 181, 163]
30192
+ },
30193
+ {
30194
+ name: "LogUpdateGuardians",
30195
+ discriminator: [231, 28, 191, 51, 53, 140, 79, 142]
30196
+ },
30197
+ {
30198
+ name: "LogUpdateRateDataV1",
30199
+ discriminator: [30, 102, 131, 192, 0, 30, 85, 223]
30200
+ },
30201
+ {
30202
+ name: "LogUpdateRateDataV2",
30203
+ discriminator: [206, 53, 195, 70, 113, 211, 92, 129]
30204
+ },
30205
+ {
30206
+ name: "LogUpdateRevenueCollector",
30207
+ discriminator: [44, 143, 80, 250, 211, 147, 180, 159]
30208
+ },
30209
+ {
30210
+ name: "LogUpdateTokenConfigs",
30211
+ discriminator: [24, 205, 191, 130, 47, 40, 233, 218]
30212
+ },
30213
+ {
30214
+ name: "LogUpdateUserBorrowConfigs",
30215
+ discriminator: [210, 251, 242, 159, 205, 33, 154, 74]
30216
+ },
30217
+ {
30218
+ name: "LogUpdateUserClass",
30219
+ discriminator: [185, 193, 106, 248, 11, 53, 0, 136]
30220
+ },
30221
+ {
30222
+ name: "LogUpdateUserSupplyConfigs",
30223
+ discriminator: [142, 160, 21, 90, 87, 88, 18, 51]
30224
+ },
30225
+ {
30226
+ name: "LogUpdateUserWithdrawalLimit",
30227
+ discriminator: [114, 131, 152, 189, 120, 253, 88, 105]
30228
+ }
30229
+ ],
30230
+ errors: [
30231
+ {
30232
+ code: 6e3,
30233
+ name: "UserClassNotPausable",
30234
+ msg: "ADMIN_MODULE_USER_CLASS_NOT_PAUSABLE"
30235
+ },
30236
+ {
30237
+ code: 6001,
30238
+ name: "UserClassNotFound",
30239
+ msg: "ADMIN_MODULE_USER_CLASS_NOT_FOUND"
30240
+ },
30241
+ {
30242
+ code: 6002,
30243
+ name: "UserAlreadyPaused",
30244
+ msg: "ADMIN_MODULE_USER_ALREADY_PAUSED"
30245
+ },
30246
+ {
30247
+ code: 6003,
30248
+ name: "UserAlreadyUnpaused",
30249
+ msg: "ADMIN_MODULE_USER_ALREADY_UNPAUSED"
30250
+ },
30251
+ {
30252
+ code: 6004,
30253
+ name: "OnlyLiquidityAuthority",
30254
+ msg: "ADMIN_MODULE_ONLY_LIQUIDITY_AUTHORITY"
30255
+ },
30256
+ {
30257
+ code: 6005,
30258
+ name: "OnlyAuth",
30259
+ msg: "ADMIN_MODULE_ONLY_AUTH"
30260
+ },
30261
+ {
30262
+ code: 6006,
30263
+ name: "OnlyGuardians",
30264
+ msg: "ADMIN_MODULE_ONLY_GUARDIANS"
30265
+ },
30266
+ {
30267
+ code: 6007,
30268
+ name: "InvalidParams",
30269
+ msg: "ADMIN_MODULE_INVALID_PARAMS"
30270
+ },
30271
+ {
30272
+ code: 6008,
30273
+ name: "InvalidConfigOrder",
30274
+ msg: "ADMIN_MODULE_INVALID_CONFIG_ORDER"
30275
+ },
30276
+ {
30277
+ code: 6009,
30278
+ name: "StatusAlreadySet",
30279
+ msg: "ADMIN_MODULE_STATUS_ALREADY_SET"
30280
+ },
30281
+ {
30282
+ code: 6010,
30283
+ name: "LimitsCannotBeZero",
30284
+ msg: "ADMIN_MODULE_LIMITS_CAN_NOT_BE_ZERO"
30285
+ },
30286
+ {
30287
+ code: 6011,
30288
+ name: "MaxAuthCountReached",
30289
+ msg: "ADMIN_MODULE_MAX_AUTH_COUNT"
30290
+ },
30291
+ {
30292
+ code: 6012,
30293
+ name: "MaxUserClassesReached",
30294
+ msg: "ADMIN_MODULE_MAX_USER_CLASSES"
30295
+ },
30296
+ {
30297
+ code: 6013,
30298
+ name: "InsufficientBalance",
30299
+ msg: "USER_MODULE_INSUFFICIENT_BALANCE"
30300
+ },
30301
+ {
30302
+ code: 6014,
30303
+ name: "UserSupplyPositionRequired",
30304
+ msg: "USER_MODULE_USER_SUPPLY_POSITION_REQUIRED"
30305
+ },
30306
+ {
30307
+ code: 6015,
30308
+ name: "UserBorrowPositionRequired",
30309
+ msg: "USER_MODULE_USER_BORROW_POSITION_REQUIRED"
30310
+ },
30311
+ {
30312
+ code: 6016,
30313
+ name: "ClaimAccountRequired",
30314
+ msg: "USER_MODULE_CLAIM_ACCOUNT_REQUIRED"
30315
+ },
30316
+ {
30317
+ code: 6017,
30318
+ name: "WithdrawToAccountRequired",
30319
+ msg: "USER_MODULE_WITHDRAW_TO_ACCOUNT_REQUIRED"
30320
+ },
30321
+ {
30322
+ code: 6018,
30323
+ name: "BorrowToAccountRequired",
30324
+ msg: "USER_MODULE_BORROW_TO_ACCOUNT_REQUIRED"
30325
+ },
30326
+ {
30327
+ code: 6019,
30328
+ name: "InvalidClaimAmount",
30329
+ msg: "USER_MODULE_INVALID_CLAIM_AMOUNT"
30330
+ },
30331
+ {
30332
+ code: 6020,
30333
+ name: "NoAmountToClaim",
30334
+ msg: "USER_MODULE_NO_AMOUNT_TO_CLAIM"
30335
+ },
30336
+ {
30337
+ code: 6021,
30338
+ name: "AmountNotZero",
30339
+ msg: "USER_MODULE_AMOUNT_NOT_ZERO"
30340
+ },
30341
+ {
30342
+ code: 6022,
30343
+ name: "ValueOverflow",
30344
+ msg: "USER_MODULE_VALUE_OVERFLOW"
30345
+ },
30346
+ {
30347
+ code: 6023,
30348
+ name: "InvalidTransferType",
30349
+ msg: "USER_MODULE_INVALID_TRANSFER_TYPE"
30350
+ },
30351
+ {
30352
+ code: 6024,
30353
+ name: "MintMismatch",
30354
+ msg: "USER_MODULE_MINT_MISMATCH"
30355
+ },
30356
+ {
30357
+ code: 6025,
30358
+ name: "UserNotDefined",
30359
+ msg: "USER_MODULE_USER_NOT_DEFINED"
30360
+ },
30361
+ {
30362
+ code: 6026,
30363
+ name: "InvalidUserClaim",
30364
+ msg: "USER_MODULE_INVALID_USER_CLAIM"
30365
+ },
30366
+ {
30367
+ code: 6027,
30368
+ name: "UserPaused",
30369
+ msg: "USER_MODULE_USER_PAUSED"
30370
+ },
30371
+ {
30372
+ code: 6028,
30373
+ name: "WithdrawalLimitReached",
30374
+ msg: "USER_MODULE_WITHDRAWAL_LIMIT_REACHED"
30375
+ },
30376
+ {
30377
+ code: 6029,
30378
+ name: "BorrowLimitReached",
30379
+ msg: "USER_MODULE_BORROW_LIMIT_REACHED"
30380
+ },
30381
+ {
30382
+ code: 6030,
30383
+ name: "OperateAmountsNearlyZero",
30384
+ msg: "USER_MODULE_OPERATE_AMOUNTS_ZERO"
30385
+ },
30386
+ {
30387
+ code: 6031,
30388
+ name: "OperateAmountTooBig",
30389
+ msg: "USER_MODULE_OPERATE_AMOUNTS_TOO_BIG"
30390
+ },
30391
+ {
30392
+ code: 6032,
30393
+ name: "OperateAmountsInsufficient",
30394
+ msg: "USER_MODULE_OPERATE_AMOUNTS_INSUFFICIENT"
30395
+ },
30396
+ {
30397
+ code: 6033,
30398
+ name: "TransferAmountOutOfBounds",
30399
+ msg: "USER_MODULE_TRANSFER_AMOUNT_OUT_OF_BOUNDS"
30400
+ },
30401
+ {
30402
+ code: 6034,
30403
+ name: "ForbiddenOperateCall",
30404
+ msg: "FORBIDDEN_OPERATE_CALL"
30405
+ },
30406
+ {
30407
+ code: 6035,
30408
+ name: "MaxUtilizationReached",
30409
+ msg: "USER_MODULE_MAX_UTILIZATION_REACHED"
30410
+ },
30411
+ {
30412
+ code: 6036,
30413
+ name: "ValueOverflowTotalSupply",
30414
+ msg: "USER_MODULE_VALUE_OVERFLOW_TOTAL_SUPPLY"
30415
+ },
30416
+ {
30417
+ code: 6037,
30418
+ name: "ValueOverflowTotalBorrow",
30419
+ msg: "USER_MODULE_VALUE_OVERFLOW_TOTAL_BORROW"
30420
+ },
30421
+ {
30422
+ code: 6038,
30423
+ name: "DepositExpected",
30424
+ msg: "USER_MODULE_DEPOSIT_EXPECTED"
30425
+ },
30426
+ {
30427
+ code: 6039,
30428
+ name: "ExchangePriceZero",
30429
+ msg: "LIQUIDITY_CALCS_EXCHANGE_PRICE_ZERO"
30430
+ },
30431
+ {
30432
+ code: 6040,
30433
+ name: "UnsupportedRateVersion",
30434
+ msg: "LIQUIDITY_CALCS_UNSUPPORTED_RATE_VERSION"
30435
+ },
30436
+ {
30437
+ code: 6041,
30438
+ name: "BorrowRateNegative",
30439
+ msg: "LIQUIDITY_CALCS_BORROW_RATE_NEGATIVE"
30440
+ },
30441
+ {
30442
+ code: 6042,
30443
+ name: "ProtocolLockdown",
30444
+ msg: "PROTOCOL_LOCKDOWN"
30445
+ }
30446
+ ],
30447
+ types: [
30448
+ {
30449
+ name: "AddressBool",
30450
+ type: {
30451
+ kind: "struct",
30452
+ fields: [
30453
+ {
30454
+ name: "addr",
30455
+ type: "pubkey"
30456
+ },
30457
+ {
30458
+ name: "value",
30459
+ type: "bool"
30460
+ }
30461
+ ]
30462
+ }
30463
+ },
30464
+ {
30465
+ name: "AddressU8",
30466
+ type: {
30467
+ kind: "struct",
30468
+ fields: [
30469
+ {
30470
+ name: "addr",
30471
+ type: "pubkey"
30472
+ },
30473
+ {
30474
+ name: "value",
30475
+ type: "u8"
30476
+ }
30477
+ ]
30478
+ }
30479
+ },
30480
+ {
30481
+ name: "AuthorizationList",
30482
+ type: {
30483
+ kind: "struct",
30484
+ fields: [
30485
+ {
30486
+ name: "auth_users",
30487
+ type: {
30488
+ vec: "pubkey"
30489
+ }
30490
+ },
30491
+ {
30492
+ name: "guardians",
30493
+ type: {
30494
+ vec: "pubkey"
30495
+ }
30496
+ },
30497
+ {
30498
+ name: "user_classes",
30499
+ type: {
30500
+ vec: {
30501
+ defined: {
30502
+ name: "UserClass"
30503
+ }
30504
+ }
30505
+ }
30506
+ }
30507
+ ]
30508
+ }
30509
+ },
30510
+ {
30511
+ name: "Liquidity",
30512
+ type: {
30513
+ kind: "struct",
30514
+ fields: [
30515
+ {
30516
+ name: "authority",
30517
+ type: "pubkey"
30518
+ },
30519
+ {
30520
+ name: "revenue_collector",
30521
+ type: "pubkey"
30522
+ },
30523
+ {
30524
+ name: "status",
30525
+ type: "bool"
30526
+ },
30527
+ {
30528
+ name: "bump",
30529
+ type: "u8"
30530
+ }
30531
+ ]
30532
+ }
30533
+ },
30534
+ {
30535
+ name: "LogBorrowRateCap",
30536
+ type: {
30537
+ kind: "struct",
30538
+ fields: [
30539
+ {
30540
+ name: "token",
30541
+ type: "pubkey"
30542
+ }
30543
+ ]
30544
+ }
30545
+ },
30546
+ {
30547
+ name: "LogChangeStatus",
30548
+ type: {
30549
+ kind: "struct",
30550
+ fields: [
30551
+ {
30552
+ name: "new_status",
30553
+ type: "bool"
30554
+ }
30555
+ ]
30556
+ }
30557
+ },
30558
+ {
30559
+ name: "LogClaim",
30560
+ type: {
30561
+ kind: "struct",
30562
+ fields: [
30563
+ {
30564
+ name: "user",
30565
+ type: "pubkey"
30566
+ },
30567
+ {
30568
+ name: "token",
30569
+ type: "pubkey"
30570
+ },
30571
+ {
30572
+ name: "recipient",
30573
+ type: "pubkey"
30574
+ },
30575
+ {
30576
+ name: "amount",
30577
+ type: "u64"
30578
+ }
30579
+ ]
30580
+ }
30581
+ },
30582
+ {
30583
+ name: "LogCollectRevenue",
30584
+ type: {
30585
+ kind: "struct",
30586
+ fields: [
30587
+ {
30588
+ name: "token",
30589
+ type: "pubkey"
30590
+ },
30591
+ {
30592
+ name: "revenue_amount",
30593
+ type: "u128"
30594
+ }
30595
+ ]
30596
+ }
30597
+ },
30598
+ {
30599
+ name: "LogOperate",
30600
+ type: {
30601
+ kind: "struct",
30602
+ fields: [
30603
+ {
30604
+ name: "user",
30605
+ type: "pubkey"
30606
+ },
30607
+ {
30608
+ name: "token",
30609
+ type: "pubkey"
30610
+ },
30611
+ {
30612
+ name: "supply_amount",
30613
+ type: "i128"
30614
+ },
30615
+ {
30616
+ name: "borrow_amount",
30617
+ type: "i128"
30618
+ },
30619
+ {
30620
+ name: "withdraw_to",
30621
+ type: "pubkey"
30622
+ },
30623
+ {
30624
+ name: "borrow_to",
30625
+ type: "pubkey"
30626
+ },
30627
+ {
30628
+ name: "supply_exchange_price",
30629
+ type: "u64"
30630
+ },
30631
+ {
30632
+ name: "borrow_exchange_price",
30633
+ type: "u64"
30634
+ }
30635
+ ]
30636
+ }
30637
+ },
30638
+ {
30639
+ name: "LogPauseUser",
30640
+ type: {
30641
+ kind: "struct",
30642
+ fields: [
30643
+ {
30644
+ name: "user",
30645
+ type: "pubkey"
30646
+ },
30647
+ {
30648
+ name: "mint",
30649
+ type: "pubkey"
30650
+ },
30651
+ {
30652
+ name: "status",
30653
+ type: "u8"
30654
+ }
30655
+ ]
30656
+ }
30657
+ },
30658
+ {
30659
+ name: "LogUnpauseUser",
30660
+ type: {
30661
+ kind: "struct",
30662
+ fields: [
30663
+ {
30664
+ name: "user",
30665
+ type: "pubkey"
30666
+ },
30667
+ {
30668
+ name: "mint",
30669
+ type: "pubkey"
30670
+ },
30671
+ {
30672
+ name: "status",
30673
+ type: "u8"
30674
+ }
30675
+ ]
30676
+ }
30677
+ },
30678
+ {
30679
+ name: "LogUpdateAuthority",
30680
+ type: {
30681
+ kind: "struct",
30682
+ fields: [
30683
+ {
30684
+ name: "new_authority",
30685
+ type: "pubkey"
30686
+ }
30687
+ ]
30688
+ }
30689
+ },
30690
+ {
30691
+ name: "LogUpdateAuths",
30692
+ type: {
30693
+ kind: "struct",
30694
+ fields: [
30695
+ {
30696
+ name: "auth_status",
30697
+ type: {
30698
+ vec: {
30699
+ defined: {
30700
+ name: "AddressBool"
30701
+ }
30702
+ }
30703
+ }
30704
+ }
30705
+ ]
30706
+ }
30707
+ },
30708
+ {
30709
+ name: "LogUpdateExchangePrices",
30710
+ type: {
30711
+ kind: "struct",
30712
+ fields: [
30713
+ {
30714
+ name: "token",
30715
+ type: "pubkey"
30716
+ },
30717
+ {
30718
+ name: "supply_exchange_price",
30719
+ type: "u128"
30720
+ },
30721
+ {
30722
+ name: "borrow_exchange_price",
30723
+ type: "u128"
30724
+ },
30725
+ {
30726
+ name: "borrow_rate",
30727
+ type: "u16"
30728
+ },
30729
+ {
30730
+ name: "utilization",
30731
+ type: "u16"
30732
+ }
30733
+ ]
30734
+ }
30735
+ },
30736
+ {
30737
+ name: "LogUpdateGuardians",
30738
+ type: {
30739
+ kind: "struct",
30740
+ fields: [
30741
+ {
30742
+ name: "guardian_status",
30743
+ type: {
30744
+ vec: {
30745
+ defined: {
30746
+ name: "AddressBool"
30747
+ }
30748
+ }
30749
+ }
30750
+ }
30751
+ ]
30752
+ }
30753
+ },
30754
+ {
30755
+ name: "LogUpdateRateDataV1",
30756
+ type: {
30757
+ kind: "struct",
30758
+ fields: [
30759
+ {
30760
+ name: "token",
30761
+ type: "pubkey"
30762
+ },
30763
+ {
30764
+ name: "rate_data",
30765
+ type: {
30766
+ defined: {
30767
+ name: "RateDataV1Params"
30768
+ }
30769
+ }
30770
+ }
30771
+ ]
30772
+ }
30773
+ },
30774
+ {
30775
+ name: "LogUpdateRateDataV2",
30776
+ type: {
30777
+ kind: "struct",
30778
+ fields: [
30779
+ {
30780
+ name: "token",
30781
+ type: "pubkey"
30782
+ },
30783
+ {
30784
+ name: "rate_data",
30785
+ type: {
30786
+ defined: {
30787
+ name: "RateDataV2Params"
30788
+ }
30789
+ }
30790
+ }
30791
+ ]
30792
+ }
30793
+ },
30794
+ {
30795
+ name: "LogUpdateRevenueCollector",
30796
+ type: {
30797
+ kind: "struct",
30798
+ fields: [
30799
+ {
30800
+ name: "revenue_collector",
30801
+ type: "pubkey"
30802
+ }
30803
+ ]
30804
+ }
30805
+ },
30806
+ {
30807
+ name: "LogUpdateTokenConfigs",
30808
+ type: {
30809
+ kind: "struct",
30810
+ fields: [
30811
+ {
30812
+ name: "token_config",
30813
+ type: {
30814
+ defined: {
30815
+ name: "TokenConfig"
30816
+ }
30817
+ }
30818
+ }
30819
+ ]
30820
+ }
30821
+ },
30822
+ {
30823
+ name: "LogUpdateUserBorrowConfigs",
30824
+ type: {
30825
+ kind: "struct",
30826
+ fields: [
30827
+ {
30828
+ name: "user",
30829
+ type: "pubkey"
30830
+ },
30831
+ {
30832
+ name: "token",
30833
+ type: "pubkey"
30834
+ },
30835
+ {
30836
+ name: "user_borrow_config",
30837
+ type: {
30838
+ defined: {
30839
+ name: "UserBorrowConfig"
30840
+ }
30841
+ }
30842
+ }
30843
+ ]
30844
+ }
30845
+ },
30846
+ {
30847
+ name: "LogUpdateUserClass",
30848
+ type: {
30849
+ kind: "struct",
30850
+ fields: [
30851
+ {
30852
+ name: "user_class",
30853
+ type: {
30854
+ vec: {
30855
+ defined: {
30856
+ name: "AddressU8"
30857
+ }
30858
+ }
30859
+ }
30860
+ }
30861
+ ]
30862
+ }
30863
+ },
30864
+ {
30865
+ name: "LogUpdateUserSupplyConfigs",
30866
+ type: {
30867
+ kind: "struct",
30868
+ fields: [
30869
+ {
30870
+ name: "user",
30871
+ type: "pubkey"
30872
+ },
30873
+ {
30874
+ name: "token",
30875
+ type: "pubkey"
30876
+ },
30877
+ {
30878
+ name: "user_supply_config",
30879
+ type: {
30880
+ defined: {
30881
+ name: "UserSupplyConfig"
30882
+ }
30883
+ }
30884
+ }
30885
+ ]
30886
+ }
30887
+ },
30888
+ {
30889
+ name: "LogUpdateUserWithdrawalLimit",
30890
+ type: {
30891
+ kind: "struct",
30892
+ fields: [
30893
+ {
30894
+ name: "user",
30895
+ type: "pubkey"
30896
+ },
30897
+ {
30898
+ name: "token",
30899
+ type: "pubkey"
30900
+ },
30901
+ {
30902
+ name: "new_limit",
30903
+ type: "u128"
30904
+ }
30905
+ ]
30906
+ }
30907
+ },
30908
+ {
30909
+ name: "RateDataV1Params",
30910
+ docs: ["@notice struct to set borrow rate data for version 1"],
30911
+ type: {
30912
+ kind: "struct",
30913
+ fields: [
30914
+ {
30915
+ name: "kink",
30916
+ docs: ["", "@param kink in borrow rate. in 1e2: 100% = 10_000; 1% = 100"],
30917
+ type: "u128"
30918
+ },
30919
+ {
30920
+ name: "rate_at_utilization_zero",
30921
+ docs: [
30922
+ "",
30923
+ "@param rateAtUtilizationZero desired borrow rate when utilization is zero. in 1e2: 100% = 10_000; 1% = 100",
30924
+ "i.e. constant minimum borrow rate",
30925
+ "e.g. at utilization = 0.01% rate could still be at least 4% (rateAtUtilizationZero would be 400 then)"
30926
+ ],
30927
+ type: "u128"
30928
+ },
30929
+ {
30930
+ name: "rate_at_utilization_kink",
30931
+ docs: [
30932
+ "",
30933
+ "@param rateAtUtilizationKink borrow rate when utilization is at kink. in 1e2: 100% = 10_000; 1% = 100",
30934
+ "e.g. when rate should be 7% at kink then rateAtUtilizationKink would be 700"
30935
+ ],
30936
+ type: "u128"
30937
+ },
30938
+ {
30939
+ name: "rate_at_utilization_max",
30940
+ docs: [
30941
+ "",
30942
+ "@param rateAtUtilizationMax borrow rate when utilization is maximum at 100%. in 1e2: 100% = 10_000; 1% = 100",
30943
+ "e.g. when rate should be 125% at 100% then rateAtUtilizationMax would be 12_500"
30944
+ ],
30945
+ type: "u128"
30946
+ }
30947
+ ]
30948
+ }
30949
+ },
30950
+ {
30951
+ name: "RateDataV2Params",
30952
+ docs: ["@notice struct to set borrow rate data for version 2"],
30953
+ type: {
30954
+ kind: "struct",
30955
+ fields: [
30956
+ {
30957
+ name: "kink1",
30958
+ docs: [
30959
+ "",
30960
+ "@param kink1 first kink in borrow rate. in 1e2: 100% = 10_000; 1% = 100",
30961
+ "utilization below kink 1 usually means slow increase in rate, once utilization is above kink 1 borrow rate increases faster"
30962
+ ],
30963
+ type: "u128"
30964
+ },
30965
+ {
30966
+ name: "kink2",
30967
+ docs: [
30968
+ "",
30969
+ "@param kink2 second kink in borrow rate. in 1e2: 100% = 10_000; 1% = 100",
30970
+ "utilization below kink 2 usually means slow / medium increase in rate, once utilization is above kink 2 borrow rate increases fast"
30971
+ ],
30972
+ type: "u128"
30973
+ },
30974
+ {
30975
+ name: "rate_at_utilization_zero",
30976
+ docs: [
30977
+ "",
30978
+ "@param rateAtUtilizationZero desired borrow rate when utilization is zero. in 1e2: 100% = 10_000; 1% = 100",
30979
+ "i.e. constant minimum borrow rate",
30980
+ "e.g. at utilization = 0.01% rate could still be at least 4% (rateAtUtilizationZero would be 400 then)"
30981
+ ],
30982
+ type: "u128"
30983
+ },
30984
+ {
30985
+ name: "rate_at_utilization_kink1",
30986
+ docs: [
30987
+ "",
30988
+ "@param rateAtUtilizationKink1 desired borrow rate when utilization is at first kink. in 1e2: 100% = 10_000; 1% = 100",
30989
+ "e.g. when rate should be 7% at first kink then rateAtUtilizationKink would be 700"
30990
+ ],
30991
+ type: "u128"
30992
+ },
30993
+ {
30994
+ name: "rate_at_utilization_kink2",
30995
+ docs: [
30996
+ "",
30997
+ "@param rateAtUtilizationKink2 desired borrow rate when utilization is at second kink. in 1e2: 100% = 10_000; 1% = 100",
30998
+ "e.g. when rate should be 7% at second kink then rateAtUtilizationKink would be 1_200"
30999
+ ],
31000
+ type: "u128"
31001
+ },
31002
+ {
31003
+ name: "rate_at_utilization_max",
31004
+ docs: [
31005
+ "",
31006
+ "@param rateAtUtilizationMax desired borrow rate when utilization is maximum at 100%. in 1e2: 100% = 10_000; 1% = 100",
31007
+ "e.g. when rate should be 125% at 100% then rateAtUtilizationMax would be 12_500"
31008
+ ],
31009
+ type: "u128"
31010
+ }
31011
+ ]
31012
+ }
31013
+ },
31014
+ {
31015
+ name: "RateModel",
31016
+ docs: ["Interest rate model data"],
31017
+ serialization: "bytemuck",
31018
+ repr: {
31019
+ kind: "c",
31020
+ packed: true
31021
+ },
31022
+ type: {
31023
+ kind: "struct",
31024
+ fields: [
31025
+ {
31026
+ name: "mint",
31027
+ type: "pubkey"
31028
+ },
31029
+ {
31030
+ name: "version",
31031
+ type: "u8"
31032
+ },
31033
+ {
31034
+ name: "rate_at_zero",
31035
+ type: "u16"
31036
+ },
31037
+ {
31038
+ name: "kink1_utilization",
31039
+ type: "u16"
31040
+ },
31041
+ {
31042
+ name: "rate_at_kink1",
31043
+ type: "u16"
31044
+ },
31045
+ {
31046
+ name: "rate_at_max",
31047
+ type: "u16"
31048
+ },
31049
+ {
31050
+ name: "kink2_utilization",
31051
+ type: "u16"
31052
+ },
31053
+ {
31054
+ name: "rate_at_kink2",
31055
+ type: "u16"
31056
+ }
31057
+ ]
31058
+ }
31059
+ },
31060
+ {
31061
+ name: "TokenConfig",
31062
+ docs: ["@notice struct to set token config"],
31063
+ type: {
31064
+ kind: "struct",
31065
+ fields: [
31066
+ {
31067
+ name: "token",
31068
+ docs: ["", "@param token address"],
31069
+ type: "pubkey"
31070
+ },
31071
+ {
31072
+ name: "fee",
31073
+ docs: [
31074
+ "",
31075
+ "@param fee charges on borrower's interest. in 1e2: 100% = 10_000; 1% = 100"
31076
+ ],
31077
+ type: "u128"
31078
+ },
31079
+ {
31080
+ name: "max_utilization",
31081
+ docs: [
31082
+ "",
31083
+ "@param maxUtilization maximum allowed utilization. in 1e2: 100% = 10_000; 1% = 100",
31084
+ "set to 100% to disable and have default limit of 100% (avoiding SLOAD)."
31085
+ ],
31086
+ type: "u128"
31087
+ }
31088
+ ]
31089
+ }
31090
+ },
31091
+ {
31092
+ name: "TokenReserve",
31093
+ docs: ["Token configuration and exchange prices"],
31094
+ serialization: "bytemuck",
31095
+ repr: {
31096
+ kind: "c",
31097
+ packed: true
31098
+ },
31099
+ type: {
31100
+ kind: "struct",
31101
+ fields: [
31102
+ {
31103
+ name: "mint",
31104
+ type: "pubkey"
31105
+ },
31106
+ {
31107
+ name: "vault",
31108
+ type: "pubkey"
31109
+ },
31110
+ {
31111
+ name: "borrow_rate",
31112
+ type: "u16"
31113
+ },
31114
+ {
31115
+ name: "fee_on_interest",
31116
+ type: "u16"
31117
+ },
31118
+ {
31119
+ name: "last_utilization",
31120
+ type: "u16"
31121
+ },
31122
+ {
31123
+ name: "last_update_timestamp",
31124
+ type: "u64"
31125
+ },
31126
+ {
31127
+ name: "supply_exchange_price",
31128
+ type: "u64"
31129
+ },
31130
+ {
31131
+ name: "borrow_exchange_price",
31132
+ type: "u64"
31133
+ },
31134
+ {
31135
+ name: "max_utilization",
31136
+ type: "u16"
31137
+ },
31138
+ {
31139
+ name: "total_supply_with_interest",
31140
+ type: "u64"
31141
+ },
31142
+ {
31143
+ name: "total_supply_interest_free",
31144
+ type: "u64"
31145
+ },
31146
+ {
31147
+ name: "total_borrow_with_interest",
31148
+ type: "u64"
31149
+ },
31150
+ {
31151
+ name: "total_borrow_interest_free",
31152
+ type: "u64"
31153
+ },
31154
+ {
31155
+ name: "total_claim_amount",
31156
+ type: "u64"
31157
+ },
31158
+ {
31159
+ name: "interacting_protocol",
31160
+ type: "pubkey"
31161
+ },
31162
+ {
31163
+ name: "interacting_timestamp",
31164
+ type: "u64"
31165
+ },
31166
+ {
31167
+ name: "interacting_balance",
31168
+ type: "u64"
31169
+ }
31170
+ ]
31171
+ }
31172
+ },
31173
+ {
31174
+ name: "TransferType",
31175
+ type: {
31176
+ kind: "enum",
31177
+ variants: [
31178
+ {
31179
+ name: "SKIP"
31180
+ },
31181
+ {
31182
+ name: "DIRECT"
31183
+ },
31184
+ {
31185
+ name: "CLAIM"
31186
+ }
31187
+ ]
31188
+ }
31189
+ },
31190
+ {
31191
+ name: "UserBorrowConfig",
31192
+ docs: ["@notice struct to set user borrow & payback config"],
31193
+ type: {
31194
+ kind: "struct",
31195
+ fields: [
31196
+ {
31197
+ name: "mode",
31198
+ docs: ["", "@param mode: 0 = without interest. 1 = with interest"],
31199
+ type: "u8"
31200
+ },
31201
+ {
31202
+ name: "expand_percent",
31203
+ docs: [
31204
+ "",
31205
+ "@param expandPercent debt limit expand percent. in 1e2: 100% = 10_000; 1% = 100",
31206
+ "Also used to calculate rate at which debt limit should decrease (instant)."
31207
+ ],
31208
+ type: "u128"
31209
+ },
31210
+ {
31211
+ name: "expand_duration",
31212
+ docs: [
31213
+ "",
31214
+ "@param expandDuration debt limit expand duration in seconds.",
31215
+ "used to calculate rate together with expandPercent"
31216
+ ],
31217
+ type: "u128"
31218
+ },
31219
+ {
31220
+ name: "base_debt_ceiling",
31221
+ docs: [
31222
+ "",
31223
+ "@param baseDebtCeiling base borrow limit. until here, borrow limit remains as baseDebtCeiling",
31224
+ "(user can borrow until this point at once without stepped expansion). Above this, automated limit comes in place.",
31225
+ "amount in raw (to be multiplied with exchange price) or normal depends on configured mode in user config for the token:",
31226
+ "with interest -> raw, without interest -> normal"
31227
+ ],
31228
+ type: "u128"
31229
+ },
31230
+ {
31231
+ name: "max_debt_ceiling",
31232
+ docs: [
31233
+ "",
31234
+ "@param maxDebtCeiling max borrow ceiling, maximum amount the user can borrow.",
31235
+ "amount in raw (to be multiplied with exchange price) or normal depends on configured mode in user config for the token:",
31236
+ "with interest -> raw, without interest -> normal"
31237
+ ],
31238
+ type: "u128"
31239
+ }
31240
+ ]
31241
+ }
31242
+ },
31243
+ {
31244
+ name: "UserBorrowPosition",
31245
+ docs: ["User borrow position"],
31246
+ serialization: "bytemuck",
31247
+ repr: {
31248
+ kind: "c",
31249
+ packed: true
31250
+ },
31251
+ type: {
31252
+ kind: "struct",
31253
+ fields: [
31254
+ {
31255
+ name: "protocol",
31256
+ type: "pubkey"
31257
+ },
31258
+ {
31259
+ name: "mint",
31260
+ type: "pubkey"
31261
+ },
31262
+ {
31263
+ name: "with_interest",
31264
+ type: "u8"
31265
+ },
31266
+ {
31267
+ name: "amount",
31268
+ type: "u64"
31269
+ },
31270
+ {
31271
+ name: "debt_ceiling",
31272
+ type: "u64"
31273
+ },
31274
+ {
31275
+ name: "last_update",
31276
+ type: "u64"
31277
+ },
31278
+ {
31279
+ name: "expand_pct",
31280
+ type: "u16"
31281
+ },
31282
+ {
31283
+ name: "expand_duration",
31284
+ type: "u32"
31285
+ },
31286
+ {
31287
+ name: "base_debt_ceiling",
31288
+ type: "u64"
31289
+ },
31290
+ {
31291
+ name: "max_debt_ceiling",
31292
+ type: "u64"
31293
+ },
31294
+ {
31295
+ name: "status",
31296
+ type: "u8"
31297
+ }
31298
+ ]
31299
+ }
31300
+ },
31301
+ {
31302
+ name: "UserClaim",
31303
+ serialization: "bytemuck",
31304
+ repr: {
31305
+ kind: "c",
31306
+ packed: true
31307
+ },
31308
+ type: {
31309
+ kind: "struct",
31310
+ fields: [
31311
+ {
31312
+ name: "user",
31313
+ type: "pubkey"
31314
+ },
31315
+ {
31316
+ name: "amount",
31317
+ type: "u64"
31318
+ },
31319
+ {
31320
+ name: "mint",
31321
+ type: "pubkey"
31322
+ }
31323
+ ]
31324
+ }
31325
+ },
31326
+ {
31327
+ name: "UserClass",
31328
+ type: {
31329
+ kind: "struct",
31330
+ fields: [
31331
+ {
31332
+ name: "addr",
31333
+ type: "pubkey"
31334
+ },
31335
+ {
31336
+ name: "class",
31337
+ type: "u8"
31338
+ }
31339
+ ]
31340
+ }
31341
+ },
31342
+ {
31343
+ name: "UserSupplyConfig",
31344
+ docs: ["@notice struct to set user supply & withdrawal config"],
31345
+ type: {
31346
+ kind: "struct",
31347
+ fields: [
31348
+ {
31349
+ name: "mode",
31350
+ docs: ["", "@param mode: 0 = without interest. 1 = with interest"],
31351
+ type: "u8"
31352
+ },
31353
+ {
31354
+ name: "expand_percent",
31355
+ docs: [
31356
+ "",
31357
+ "@param expandPercent withdrawal limit expand percent. in 1e2: 100% = 10_000; 1% = 100",
31358
+ "Also used to calculate rate at which withdrawal limit should decrease (instant)."
31359
+ ],
31360
+ type: "u128"
31361
+ },
31362
+ {
31363
+ name: "expand_duration",
31364
+ docs: [
31365
+ "",
31366
+ "@param expandDuration withdrawal limit expand duration in seconds.",
31367
+ "used to calculate rate together with expandPercent"
31368
+ ],
31369
+ type: "u128"
31370
+ },
31371
+ {
31372
+ name: "base_withdrawal_limit",
31373
+ docs: [
31374
+ "",
31375
+ "@param baseWithdrawalLimit base limit, below this, user can withdraw the entire amount.",
31376
+ "amount in raw (to be multiplied with exchange price) or normal depends on configured mode in user config for the token:",
31377
+ "with interest -> raw, without interest -> normal"
31378
+ ],
31379
+ type: "u128"
31380
+ }
31381
+ ]
31382
+ }
31383
+ },
31384
+ {
31385
+ name: "UserSupplyPosition",
31386
+ docs: ["User supply position"],
31387
+ serialization: "bytemuck",
31388
+ repr: {
31389
+ kind: "c",
31390
+ packed: true
31391
+ },
31392
+ type: {
31393
+ kind: "struct",
31394
+ fields: [
31395
+ {
31396
+ name: "protocol",
31397
+ type: "pubkey"
31398
+ },
31399
+ {
31400
+ name: "mint",
31401
+ type: "pubkey"
31402
+ },
31403
+ {
31404
+ name: "with_interest",
31405
+ type: "u8"
31406
+ },
31407
+ {
31408
+ name: "amount",
31409
+ type: "u64"
31410
+ },
31411
+ {
31412
+ name: "withdrawal_limit",
31413
+ type: "u128"
31414
+ },
31415
+ {
31416
+ name: "last_update",
31417
+ type: "u64"
31418
+ },
31419
+ {
31420
+ name: "expand_pct",
31421
+ type: "u16"
31422
+ },
31423
+ {
31424
+ name: "expand_duration",
31425
+ type: "u64"
31426
+ },
31427
+ {
31428
+ name: "base_withdrawal_limit",
31429
+ type: "u64"
31430
+ },
31431
+ {
31432
+ name: "status",
31433
+ type: "u8"
31434
+ }
31435
+ ]
31436
+ }
31437
+ }
31438
+ ]
31439
+ };
31440
+
28609
31441
  // src/vendor/jup-lend/idl/index.ts
28610
31442
  var JUP_LEND_IDL = jup_lend_default;
31443
+ var JUP_LIQUIDITY_IDL = jup_lend_liquidity_default;
28611
31444
 
28612
31445
  // src/vendor/jup-lend/utils/serialize.utils.ts
28613
31446
  function jupLendingStateRawToDto(raw) {
@@ -29564,6 +32397,7 @@ exports.FARMS_PROGRAM_ID = FARMS_PROGRAM_ID;
29564
32397
  exports.JUP_EXCHANGE_PRICES_PRECISION = JUP_EXCHANGE_PRICES_PRECISION;
29565
32398
  exports.JUP_LEND_IDL = JUP_LEND_IDL;
29566
32399
  exports.JUP_LEND_PROGRAM_ID = JUP_LEND_PROGRAM_ID;
32400
+ exports.JUP_LIQUIDITY_IDL = JUP_LIQUIDITY_IDL;
29567
32401
  exports.JUP_LIQUIDITY_PROGRAM_ID = JUP_LIQUIDITY_PROGRAM_ID;
29568
32402
  exports.JUP_MAX_REWARDS_RATE = JUP_MAX_REWARDS_RATE;
29569
32403
  exports.JUP_REWARDS_PROGRAM_ID = JUP_REWARDS_PROGRAM_ID;