@0dotxyz/p0-ts-sdk 2.2.3-alpha.1 → 2.2.4

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