@hawksightco/hawk-sdk 1.2.95 → 1.2.97

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.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IDL = void 0;
4
4
  exports.IDL = {
5
- "address": "",
5
+ "address": "EZiUb6ydWpR3ciizBTJ1J36KCqLyPKVjh4yZEJbs5Uno",
6
6
  "metadata": {
7
7
  "name": "iyfExtension",
8
8
  "version": "0.1.0",
@@ -4767,27 +4767,7 @@ exports.IDL = {
4767
4767
  "docs": [
4768
4768
  "NFT that represents orca whirlpool position (to be initialized)"
4769
4769
  ],
4770
- "writable": true,
4771
- "pda": {
4772
- "seeds": [
4773
- {
4774
- "kind": "account",
4775
- "path": "userPda"
4776
- },
4777
- {
4778
- "kind": "account",
4779
- "path": "tokenProgram"
4780
- },
4781
- {
4782
- "kind": "account",
4783
- "path": "positionMint"
4784
- }
4785
- ],
4786
- "program": {
4787
- "kind": "account",
4788
- "path": "associatedTokenProgram"
4789
- }
4790
- }
4770
+ "writable": true
4791
4771
  },
4792
4772
  {
4793
4773
  "name": "orcaWhirlpoolProgram",
@@ -4910,11 +4890,7 @@ exports.IDL = {
4910
4890
  "docs": [
4911
4891
  "Orca whirlpool account"
4912
4892
  ],
4913
- "writable": true,
4914
- "relations": [
4915
- "tickArrayLower",
4916
- "tickArrayUpper"
4917
- ]
4893
+ "writable": true
4918
4894
  },
4919
4895
  {
4920
4896
  "name": "position",
@@ -4953,16 +4929,204 @@ exports.IDL = {
4953
4929
  "docs": [
4954
4930
  "NFT that represents orca whirlpool position"
4955
4931
  ],
4956
- "writable": true,
4932
+ "writable": true
4933
+ },
4934
+ {
4935
+ "name": "tokenOwnerAccountA",
4936
+ "docs": [
4937
+ "Token A to deposit to liquidity"
4938
+ ],
4939
+ "writable": true
4940
+ },
4941
+ {
4942
+ "name": "tokenOwnerAccountB",
4943
+ "docs": [
4944
+ "Token B to deposit to liquidity"
4945
+ ],
4946
+ "writable": true
4947
+ },
4948
+ {
4949
+ "name": "tokenVaultA",
4950
+ "docs": [
4951
+ "Token Vault A"
4952
+ ],
4953
+ "writable": true
4954
+ },
4955
+ {
4956
+ "name": "tokenVaultB",
4957
+ "writable": true
4958
+ },
4959
+ {
4960
+ "name": "tickArrayLower",
4961
+ "docs": [
4962
+ "Orca tick array lower account"
4963
+ ],
4964
+ "writable": true
4965
+ },
4966
+ {
4967
+ "name": "tickArrayUpper",
4968
+ "docs": [
4969
+ "Orca tick array upper account"
4970
+ ],
4971
+ "writable": true
4972
+ },
4973
+ {
4974
+ "name": "ownerFeeA",
4975
+ "docs": [
4976
+ "Owner fee A"
4977
+ ],
4978
+ "writable": true
4979
+ },
4980
+ {
4981
+ "name": "ownerFeeB",
4982
+ "docs": [
4983
+ "Owner fee B"
4984
+ ],
4985
+ "writable": true
4986
+ },
4987
+ {
4988
+ "name": "orcaWhirlpoolProgram",
4989
+ "docs": [
4990
+ "Orca whirlpool program"
4991
+ ],
4992
+ "address": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"
4993
+ },
4994
+ {
4995
+ "name": "tokenProgram",
4996
+ "docs": [
4997
+ "SPL Token Program"
4998
+ ],
4999
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
5000
+ },
5001
+ {
5002
+ "name": "associatedTokenProgram",
5003
+ "docs": [
5004
+ "SPL ATA Program"
5005
+ ],
5006
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
5007
+ }
5008
+ ],
5009
+ "args": []
5010
+ },
5011
+ {
5012
+ "name": "orcaAutoDepositWithAmount",
5013
+ "docs": [
5014
+ "Orca whirlpool deposit"
5015
+ ],
5016
+ "discriminator": [
5017
+ 251,
5018
+ 237,
5019
+ 98,
5020
+ 126,
5021
+ 242,
5022
+ 79,
5023
+ 6,
5024
+ 58
5025
+ ],
5026
+ "accounts": [
5027
+ {
5028
+ "name": "farm",
5029
+ "docs": [
5030
+ "Hawksight multi-index farm"
5031
+ ]
5032
+ },
5033
+ {
5034
+ "name": "userPda",
5035
+ "docs": [
5036
+ "Hawksight user pda account authorized by user wallet"
5037
+ ],
4957
5038
  "pda": {
4958
5039
  "seeds": [
5040
+ {
5041
+ "kind": "const",
5042
+ "value": [
5043
+ 109,
5044
+ 117,
5045
+ 108,
5046
+ 116,
5047
+ 105,
5048
+ 45,
5049
+ 117,
5050
+ 115,
5051
+ 101,
5052
+ 114
5053
+ ]
5054
+ },
4959
5055
  {
4960
5056
  "kind": "account",
4961
- "path": "userPda"
5057
+ "path": "farm"
4962
5058
  },
4963
5059
  {
4964
5060
  "kind": "account",
4965
- "path": "tokenProgram"
5061
+ "path": "authority"
5062
+ }
5063
+ ],
5064
+ "program": {
5065
+ "kind": "account",
5066
+ "path": "iyfProgram"
5067
+ }
5068
+ }
5069
+ },
5070
+ {
5071
+ "name": "authority",
5072
+ "docs": [
5073
+ "User wallet",
5074
+ "No need to be a signer since compound ix is always advantageous to the user, and can be delegated to a crank"
5075
+ ],
5076
+ "writable": true,
5077
+ "relations": [
5078
+ "userPda"
5079
+ ]
5080
+ },
5081
+ {
5082
+ "name": "iyfProgram",
5083
+ "docs": [
5084
+ "Main index yield farming program"
5085
+ ],
5086
+ "address": "FqGg2Y1FNxMiGd51Q6UETixQWkF5fB92MysbYogRJb3P"
5087
+ },
5088
+ {
5089
+ "name": "rebalanceAuthority",
5090
+ "docs": [
5091
+ "Rebalancer which is hard coded to be a Hawksight rebalance wallet"
5092
+ ],
5093
+ "writable": true,
5094
+ "signer": true
5095
+ },
5096
+ {
5097
+ "name": "positionMint",
5098
+ "docs": [
5099
+ "Orca whirlpool position mint account (to be initialized)"
5100
+ ],
5101
+ "writable": true
5102
+ },
5103
+ {
5104
+ "name": "whirlpool",
5105
+ "docs": [
5106
+ "Orca whirlpool account"
5107
+ ],
5108
+ "writable": true
5109
+ },
5110
+ {
5111
+ "name": "position",
5112
+ "docs": [
5113
+ "Orca whirlpool position (to be initialized)"
5114
+ ],
5115
+ "writable": true,
5116
+ "pda": {
5117
+ "seeds": [
5118
+ {
5119
+ "kind": "const",
5120
+ "value": [
5121
+ 112,
5122
+ 111,
5123
+ 115,
5124
+ 105,
5125
+ 116,
5126
+ 105,
5127
+ 111,
5128
+ 110
5129
+ ]
4966
5130
  },
4967
5131
  {
4968
5132
  "kind": "account",
@@ -4971,10 +5135,17 @@ exports.IDL = {
4971
5135
  ],
4972
5136
  "program": {
4973
5137
  "kind": "account",
4974
- "path": "associatedTokenProgram"
5138
+ "path": "orcaWhirlpoolProgram"
4975
5139
  }
4976
5140
  }
4977
5141
  },
5142
+ {
5143
+ "name": "positionTokenAccount",
5144
+ "docs": [
5145
+ "NFT that represents orca whirlpool position"
5146
+ ],
5147
+ "writable": true
5148
+ },
4978
5149
  {
4979
5150
  "name": "tokenOwnerAccountA",
4980
5151
  "docs": [
@@ -5050,7 +5221,20 @@ exports.IDL = {
5050
5221
  "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
5051
5222
  }
5052
5223
  ],
5053
- "args": []
5224
+ "args": [
5225
+ {
5226
+ "name": "tokenMaxA",
5227
+ "type": {
5228
+ "option": "u64"
5229
+ }
5230
+ },
5231
+ {
5232
+ "name": "tokenMaxB",
5233
+ "type": {
5234
+ "option": "u64"
5235
+ }
5236
+ }
5237
+ ]
5054
5238
  },
5055
5239
  {
5056
5240
  "name": "orcaAutoOpenPosition",
@@ -5180,29 +5364,9 @@ exports.IDL = {
5180
5364
  {
5181
5365
  "name": "positionTokenAccount",
5182
5366
  "docs": [
5183
- "NFT that represents orca whirlpool position (to be initialized)"
5367
+ "NFT that represents orca whirlpool position (to be initialized): Validated in CPI"
5184
5368
  ],
5185
- "writable": true,
5186
- "pda": {
5187
- "seeds": [
5188
- {
5189
- "kind": "account",
5190
- "path": "userPda"
5191
- },
5192
- {
5193
- "kind": "account",
5194
- "path": "tokenProgram"
5195
- },
5196
- {
5197
- "kind": "account",
5198
- "path": "positionMint"
5199
- }
5200
- ],
5201
- "program": {
5202
- "kind": "account",
5203
- "path": "associatedTokenProgram"
5204
- }
5205
- }
5369
+ "writable": true
5206
5370
  },
5207
5371
  {
5208
5372
  "name": "whirlpool",
@@ -5355,11 +5519,7 @@ exports.IDL = {
5355
5519
  "docs": [
5356
5520
  "Orca whirlpool account"
5357
5521
  ],
5358
- "writable": true,
5359
- "relations": [
5360
- "tickArrayLower",
5361
- "tickArrayUpper"
5362
- ]
5522
+ "writable": true
5363
5523
  },
5364
5524
  {
5365
5525
  "name": "position",
@@ -5398,27 +5558,7 @@ exports.IDL = {
5398
5558
  "docs": [
5399
5559
  "NFT that represents orca whirlpool position"
5400
5560
  ],
5401
- "writable": true,
5402
- "pda": {
5403
- "seeds": [
5404
- {
5405
- "kind": "account",
5406
- "path": "userPda"
5407
- },
5408
- {
5409
- "kind": "account",
5410
- "path": "tokenProgram"
5411
- },
5412
- {
5413
- "kind": "account",
5414
- "path": "positionMint"
5415
- }
5416
- ],
5417
- "program": {
5418
- "kind": "account",
5419
- "path": "associatedTokenProgram"
5420
- }
5421
- }
5561
+ "writable": true
5422
5562
  },
5423
5563
  {
5424
5564
  "name": "tokenOwnerAccountA",
@@ -6027,11 +6167,7 @@ exports.IDL = {
6027
6167
  "docs": [
6028
6168
  "Orca whirlpool account"
6029
6169
  ],
6030
- "writable": true,
6031
- "relations": [
6032
- "tickArrayLower",
6033
- "tickArrayUpper"
6034
- ]
6170
+ "writable": true
6035
6171
  },
6036
6172
  {
6037
6173
  "name": "positionMint",
@@ -6267,14 +6403,7 @@ exports.IDL = {
6267
6403
  "docs": [
6268
6404
  "Orca whirlpool account"
6269
6405
  ],
6270
- "writable": true,
6271
- "relations": [
6272
- "tickArrayLower",
6273
- "tickArrayUpper",
6274
- "tickArray0",
6275
- "tickArray1",
6276
- "tickArray2"
6277
- ]
6406
+ "writable": true
6278
6407
  },
6279
6408
  {
6280
6409
  "name": "positionMint",
@@ -6574,14 +6703,7 @@ exports.IDL = {
6574
6703
  "docs": [
6575
6704
  "Orca whirlpool account"
6576
6705
  ],
6577
- "writable": true,
6578
- "relations": [
6579
- "tickArrayLower",
6580
- "tickArrayUpper",
6581
- "tickArray0",
6582
- "tickArray1",
6583
- "tickArray2"
6584
- ]
6706
+ "writable": true
6585
6707
  },
6586
6708
  {
6587
6709
  "name": "positionMint",
@@ -7227,11 +7349,7 @@ exports.IDL = {
7227
7349
  "docs": [
7228
7350
  "Orca whirlpool account"
7229
7351
  ],
7230
- "writable": true,
7231
- "relations": [
7232
- "tickArrayLower",
7233
- "tickArrayUpper"
7234
- ]
7352
+ "writable": true
7235
7353
  },
7236
7354
  {
7237
7355
  "name": "position",
@@ -7513,11 +7631,7 @@ exports.IDL = {
7513
7631
  "docs": [
7514
7632
  "Orca whirlpool account"
7515
7633
  ],
7516
- "writable": true,
7517
- "relations": [
7518
- "tickArrayLower",
7519
- "tickArrayUpper"
7520
- ]
7634
+ "writable": true
7521
7635
  },
7522
7636
  {
7523
7637
  "name": "position",
@@ -7942,16 +8056,7 @@ exports.IDL = {
7942
8056
  "docs": [
7943
8057
  "Orca whirlpool account"
7944
8058
  ],
7945
- "writable": true,
7946
- "relations": [
7947
- "tickArrayLowerSrc",
7948
- "tickArrayUpperSrc",
7949
- "tickArrayLowerDst",
7950
- "tickArrayUpperDst",
7951
- "tickArray0",
7952
- "tickArray1",
7953
- "tickArray2"
7954
- ]
8059
+ "writable": true
7955
8060
  },
7956
8061
  {
7957
8062
  "name": "positionMintSrc",
@@ -8321,16 +8426,7 @@ exports.IDL = {
8321
8426
  "docs": [
8322
8427
  "Orca whirlpool account"
8323
8428
  ],
8324
- "writable": true,
8325
- "relations": [
8326
- "tickArrayLowerSrc",
8327
- "tickArrayUpperSrc",
8328
- "tickArrayLowerDst",
8329
- "tickArrayUpperDst",
8330
- "tickArray0",
8331
- "tickArray1",
8332
- "tickArray2"
8333
- ]
8429
+ "writable": true
8334
8430
  },
8335
8431
  {
8336
8432
  "name": "positionMintSrc",
@@ -8692,14 +8788,7 @@ exports.IDL = {
8692
8788
  "docs": [
8693
8789
  "Orca whirlpool account"
8694
8790
  ],
8695
- "writable": true,
8696
- "relations": [
8697
- "tickArrayLowerDst",
8698
- "tickArrayUpperDst",
8699
- "tickArray0",
8700
- "tickArray1",
8701
- "tickArray2"
8702
- ]
8791
+ "writable": true
8703
8792
  },
8704
8793
  {
8705
8794
  "name": "positionMintDst",
@@ -8976,11 +9065,7 @@ exports.IDL = {
8976
9065
  "docs": [
8977
9066
  "Orca whirlpool account"
8978
9067
  ],
8979
- "writable": true,
8980
- "relations": [
8981
- "tickArrayLower",
8982
- "tickArrayUpper"
8983
- ]
9068
+ "writable": true
8984
9069
  },
8985
9070
  {
8986
9071
  "name": "position",
@@ -9502,7 +9587,32 @@ exports.IDL = {
9502
9587
  "docs": [
9503
9588
  "User position account (owned by Raydium)"
9504
9589
  ],
9505
- "writable": true
9590
+ "writable": true,
9591
+ "pda": {
9592
+ "seeds": [
9593
+ {
9594
+ "kind": "const",
9595
+ "value": [
9596
+ 112,
9597
+ 111,
9598
+ 115,
9599
+ 105,
9600
+ 116,
9601
+ 105,
9602
+ 111,
9603
+ 110
9604
+ ]
9605
+ },
9606
+ {
9607
+ "kind": "account",
9608
+ "path": "nft_account.mint"
9609
+ }
9610
+ ],
9611
+ "program": {
9612
+ "kind": "account",
9613
+ "path": "raydiumProgram"
9614
+ }
9615
+ }
9506
9616
  },
9507
9617
  {
9508
9618
  "name": "poolState",
@@ -9603,17 +9713,29 @@ exports.IDL = {
9603
9713
  }
9604
9714
  ],
9605
9715
  "args": [
9716
+ {
9717
+ "name": "slippage",
9718
+ "type": {
9719
+ "option": "u16"
9720
+ }
9721
+ },
9606
9722
  {
9607
9723
  "name": "liquidity",
9608
- "type": "u128"
9724
+ "type": {
9725
+ "option": "u128"
9726
+ }
9609
9727
  },
9610
9728
  {
9611
9729
  "name": "amount0Min",
9612
- "type": "u64"
9730
+ "type": {
9731
+ "option": "u64"
9732
+ }
9613
9733
  },
9614
9734
  {
9615
9735
  "name": "amount1Min",
9616
- "type": "u64"
9736
+ "type": {
9737
+ "option": "u64"
9738
+ }
9617
9739
  }
9618
9740
  ]
9619
9741
  },
@@ -9785,15 +9907,21 @@ exports.IDL = {
9785
9907
  "args": [
9786
9908
  {
9787
9909
  "name": "liquidity",
9788
- "type": "u128"
9910
+ "type": {
9911
+ "option": "u128"
9912
+ }
9789
9913
  },
9790
9914
  {
9791
9915
  "name": "amount0Max",
9792
- "type": "u64"
9916
+ "type": {
9917
+ "option": "u64"
9918
+ }
9793
9919
  },
9794
9920
  {
9795
9921
  "name": "amount1Max",
9796
- "type": "u64"
9922
+ "type": {
9923
+ "option": "u64"
9924
+ }
9797
9925
  },
9798
9926
  {
9799
9927
  "name": "baseFlag",
@@ -10095,15 +10223,21 @@ exports.IDL = {
10095
10223
  },
10096
10224
  {
10097
10225
  "name": "liquidity",
10098
- "type": "u128"
10226
+ "type": {
10227
+ "option": "u128"
10228
+ }
10099
10229
  },
10100
10230
  {
10101
10231
  "name": "amount0Max",
10102
- "type": "u64"
10232
+ "type": {
10233
+ "option": "u64"
10234
+ }
10103
10235
  },
10104
10236
  {
10105
10237
  "name": "amount1Max",
10106
- "type": "u64"
10238
+ "type": {
10239
+ "option": "u64"
10240
+ }
10107
10241
  },
10108
10242
  {
10109
10243
  "name": "withMetadata",
@@ -10342,12 +10476,7 @@ exports.IDL = {
10342
10476
  "address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"
10343
10477
  }
10344
10478
  ],
10345
- "args": [
10346
- {
10347
- "name": "slippage",
10348
- "type": "u64"
10349
- }
10350
- ]
10479
+ "args": []
10351
10480
  },
10352
10481
  {
10353
10482
  "name": "saberCompound1",
@@ -10613,12 +10742,7 @@ exports.IDL = {
10613
10742
  "Orca Saber/USDC Whirlpool"
10614
10743
  ],
10615
10744
  "writable": true,
10616
- "address": "HXPD3Y4PCkvBNC3NKUa5YDQkTuusfWxhXs5Qe5VP1p2X",
10617
- "relations": [
10618
- "tickArray0",
10619
- "tickArray1",
10620
- "tickArray2"
10621
- ]
10745
+ "address": "HXPD3Y4PCkvBNC3NKUa5YDQkTuusfWxhXs5Qe5VP1p2X"
10622
10746
  },
10623
10747
  {
10624
10748
  "name": "orcaSbrVault",
@@ -10995,12 +11119,7 @@ exports.IDL = {
10995
11119
  "docs": [
10996
11120
  "Orca whirlpool account"
10997
11121
  ],
10998
- "writable": true,
10999
- "relations": [
11000
- "tickArray0",
11001
- "tickArray1",
11002
- "tickArray2"
11003
- ]
11122
+ "writable": true
11004
11123
  },
11005
11124
  {
11006
11125
  "name": "source",
@@ -11187,12 +11306,7 @@ exports.IDL = {
11187
11306
  "docs": [
11188
11307
  "Orca whirlpool account"
11189
11308
  ],
11190
- "writable": true,
11191
- "relations": [
11192
- "tickArray0",
11193
- "tickArray1",
11194
- "tickArray2"
11195
- ]
11309
+ "writable": true
11196
11310
  },
11197
11311
  {
11198
11312
  "name": "source",
@@ -11395,19 +11509,6 @@ exports.IDL = {
11395
11509
  106
11396
11510
  ]
11397
11511
  },
11398
- {
11399
- "name": "tickArray",
11400
- "discriminator": [
11401
- 69,
11402
- 97,
11403
- 189,
11404
- 190,
11405
- 110,
11406
- 7,
11407
- 66,
11408
- 187
11409
- ]
11410
- },
11411
11512
  {
11412
11513
  "name": "tickArrayBitmapExtension",
11413
11514
  "discriminator": [
@@ -11461,6 +11562,258 @@ exports.IDL = {
11461
11562
  ]
11462
11563
  }
11463
11564
  ],
11565
+ "errors": [
11566
+ {
11567
+ "code": 6000,
11568
+ "name": "invalidIndexFarmAddress",
11569
+ "msg": "Invalid Index Farm address"
11570
+ },
11571
+ {
11572
+ "code": 6001,
11573
+ "name": "invalidUserPdaAccount",
11574
+ "msg": "Invalid User PDA Account"
11575
+ },
11576
+ {
11577
+ "code": 6002,
11578
+ "name": "invalidAuthorityAccount",
11579
+ "msg": "Invalid authority account"
11580
+ },
11581
+ {
11582
+ "code": 6003,
11583
+ "name": "invalidOperationOrder",
11584
+ "msg": "Invalid operation order"
11585
+ },
11586
+ {
11587
+ "code": 6004,
11588
+ "name": "userPdaMustBeSigner",
11589
+ "msg": "User PDA must be a signer"
11590
+ },
11591
+ {
11592
+ "code": 6005,
11593
+ "name": "userPdaPayerMustBeSigner",
11594
+ "msg": "User PDA payer must be a signer"
11595
+ },
11596
+ {
11597
+ "code": 6006,
11598
+ "name": "invalidTokenOwner",
11599
+ "msg": "Invalid token owner"
11600
+ },
11601
+ {
11602
+ "code": 6007,
11603
+ "name": "mintMismatch",
11604
+ "msg": "Mint mismatch"
11605
+ },
11606
+ {
11607
+ "code": 6008,
11608
+ "name": "invalidTokenMint",
11609
+ "msg": "Invalid token mint"
11610
+ },
11611
+ {
11612
+ "code": 6009,
11613
+ "name": "accountCannotBeSame",
11614
+ "msg": "Account cannot be same"
11615
+ },
11616
+ {
11617
+ "code": 6010,
11618
+ "name": "missingAccounts",
11619
+ "msg": "Missing accounts"
11620
+ },
11621
+ {
11622
+ "code": 6011,
11623
+ "name": "invalidProgramOwner",
11624
+ "msg": "Invalid program owner"
11625
+ },
11626
+ {
11627
+ "code": 6012,
11628
+ "name": "orcaLowerTickIsHigherThanHigherTick",
11629
+ "msg": "Orca lower tick account cannot be higher than higher tick"
11630
+ },
11631
+ {
11632
+ "code": 6013,
11633
+ "name": "numberCastError",
11634
+ "msg": "Unable to cast number into BigInt"
11635
+ },
11636
+ {
11637
+ "code": 6014,
11638
+ "name": "numberDownCastError",
11639
+ "msg": "Unable to down cast number"
11640
+ },
11641
+ {
11642
+ "code": 6015,
11643
+ "name": "multiplicationOverflow",
11644
+ "msg": "Multiplication overflow"
11645
+ },
11646
+ {
11647
+ "code": 6016,
11648
+ "name": "tokenMaxExceeded",
11649
+ "msg": "Exceeded token max"
11650
+ },
11651
+ {
11652
+ "code": 6017,
11653
+ "name": "tokenMinSubceeded",
11654
+ "msg": "Did not meet token min"
11655
+ },
11656
+ {
11657
+ "code": 6018,
11658
+ "name": "divideByZero",
11659
+ "msg": "Unable to divide by zero"
11660
+ },
11661
+ {
11662
+ "code": 6019,
11663
+ "name": "sqrtPriceOutOfBounds",
11664
+ "msg": "Provided sqrt price out of bounds"
11665
+ },
11666
+ {
11667
+ "code": 6020,
11668
+ "name": "liquidityOverflow",
11669
+ "msg": "Liquidity overflow"
11670
+ },
11671
+ {
11672
+ "code": 6021,
11673
+ "name": "liquidityUnderflow",
11674
+ "msg": "Liquidity underflow"
11675
+ },
11676
+ {
11677
+ "code": 6022,
11678
+ "name": "liquidityNetError",
11679
+ "msg": "Tick liquidity net underflowed or overflowed"
11680
+ },
11681
+ {
11682
+ "code": 6023,
11683
+ "name": "liquidityZero",
11684
+ "msg": "Liquidity amount must be greater than zero"
11685
+ },
11686
+ {
11687
+ "code": 6024,
11688
+ "name": "liquidityTooHigh",
11689
+ "msg": "Liquidity amount must be less than i64::MAX"
11690
+ },
11691
+ {
11692
+ "code": 6025,
11693
+ "name": "multiplicationShiftRightOverflow",
11694
+ "msg": "Multiplication with shift right overflow"
11695
+ },
11696
+ {
11697
+ "code": 6026,
11698
+ "name": "mulDivOverflow",
11699
+ "msg": "Muldiv overflow"
11700
+ },
11701
+ {
11702
+ "code": 6027,
11703
+ "name": "amountPercentageOutOfRange",
11704
+ "msg": "Amount percentage must be within 1 to 100 only"
11705
+ },
11706
+ {
11707
+ "code": 6028,
11708
+ "name": "programError",
11709
+ "msg": "Generic program error."
11710
+ },
11711
+ {
11712
+ "code": 6029,
11713
+ "name": "farmMustBeUserPdaFarm",
11714
+ "msg": ""
11715
+ },
11716
+ {
11717
+ "code": 6030,
11718
+ "name": "shouldUseDefaultFarm",
11719
+ "msg": "Farm must be 7jLQhREMxXjKdpwVuN6gwsWt3BNfAg9WqbepffPbi4ww"
11720
+ },
11721
+ {
11722
+ "code": 6031,
11723
+ "name": "invalidInstruction",
11724
+ "msg": "Invalid instruction"
11725
+ },
11726
+ {
11727
+ "code": 6032,
11728
+ "name": "minBinCannotExceedMaxBin",
11729
+ "msg": "Min bin cannot exceed max bin"
11730
+ },
11731
+ {
11732
+ "code": 6033,
11733
+ "name": "activeBinOutsideSpecified",
11734
+ "msg": "Active bin is outside specified min and max bin areas."
11735
+ },
11736
+ {
11737
+ "code": 6034,
11738
+ "name": "meteoraLbPairDiscriminatorDoNotMatch",
11739
+ "msg": "Meteora LbPair discriminator do not match."
11740
+ },
11741
+ {
11742
+ "code": 6035,
11743
+ "name": "upperBinShouldBeHigherThanLowerBin",
11744
+ "msg": "Upper bin should be higher than lower bin."
11745
+ },
11746
+ {
11747
+ "code": 6036,
11748
+ "name": "amountCannotBeBothZero",
11749
+ "msg": "Amount cannot be both zero"
11750
+ },
11751
+ {
11752
+ "code": 6037,
11753
+ "name": "atLeastOneTokenAmountMustBeZero",
11754
+ "msg": "At least one token amount must be zero"
11755
+ },
11756
+ {
11757
+ "code": 6038,
11758
+ "name": "notEnoughElementsInArray",
11759
+ "msg": "Not enough elements in array"
11760
+ },
11761
+ {
11762
+ "code": 6039,
11763
+ "name": "minTickIndexCannotExceedMaxBin",
11764
+ "msg": "Min tick index cannot exceed max tick index"
11765
+ },
11766
+ {
11767
+ "code": 6040,
11768
+ "name": "currentTickIndexOutsideSpecified",
11769
+ "msg": "Current tick index is outside specified min and max bin areas."
11770
+ },
11771
+ {
11772
+ "code": 6041,
11773
+ "name": "userPdaLamportSeedConstraintViolation",
11774
+ "msg": "Seed constraint violation for user pda lamport account!"
11775
+ },
11776
+ {
11777
+ "code": 6042,
11778
+ "name": "raydiumFeeAccountsMayNotBeIncluded",
11779
+ "msg": "Fee accounts may not be included (remaining accounts not mod 4 == 0)"
11780
+ },
11781
+ {
11782
+ "code": 6043,
11783
+ "name": "raydiumTickArrayBitmapDoesNotMatch",
11784
+ "msg": "Raydium tick array bitmap address does not match"
11785
+ },
11786
+ {
11787
+ "code": 6044,
11788
+ "name": "invalidAuthorityTokenOwner",
11789
+ "msg": "Token must be owned by user wallet"
11790
+ },
11791
+ {
11792
+ "code": 6045,
11793
+ "name": "invalidAccountOwner",
11794
+ "msg": "Invalid account owner"
11795
+ },
11796
+ {
11797
+ "code": 6046,
11798
+ "name": "invalidTokenAccount",
11799
+ "msg": "Invalid token account"
11800
+ },
11801
+ {
11802
+ "code": 6047,
11803
+ "name": "invalidLimitTokenSeeds",
11804
+ "msg": "Invalid limit token seeds"
11805
+ },
11806
+ {
11807
+ "code": 6048,
11808
+ "name": "invalidFuelAccount",
11809
+ "msg": "Invalid fuel account"
11810
+ },
11811
+ {
11812
+ "code": 6049,
11813
+ "name": "orcaTradeIsNotEnabled",
11814
+ "msg": "Orca Error: Trade is not enabled"
11815
+ }
11816
+ ],
11464
11817
  "types": [
11465
11818
  {
11466
11819
  "name": "ammConfig",
@@ -12361,82 +12714,6 @@ exports.IDL = {
12361
12714
  ]
12362
12715
  }
12363
12716
  },
12364
- {
12365
- "name": "tick",
12366
- "serialization": "bytemuck",
12367
- "repr": {
12368
- "kind": "c",
12369
- "packed": true
12370
- },
12371
- "type": {
12372
- "kind": "struct",
12373
- "fields": [
12374
- {
12375
- "name": "initialized",
12376
- "type": "u8"
12377
- },
12378
- {
12379
- "name": "liquidityNet",
12380
- "type": "i128"
12381
- },
12382
- {
12383
- "name": "liquidityGross",
12384
- "type": "u128"
12385
- },
12386
- {
12387
- "name": "feeGrowthOutsideA",
12388
- "type": "u128"
12389
- },
12390
- {
12391
- "name": "feeGrowthOutsideB",
12392
- "type": "u128"
12393
- },
12394
- {
12395
- "name": "rewardGrowthsOutside",
12396
- "type": {
12397
- "array": [
12398
- "u128",
12399
- 3
12400
- ]
12401
- }
12402
- }
12403
- ]
12404
- }
12405
- },
12406
- {
12407
- "name": "tickArray",
12408
- "serialization": "bytemuck",
12409
- "repr": {
12410
- "kind": "c",
12411
- "packed": true
12412
- },
12413
- "type": {
12414
- "kind": "struct",
12415
- "fields": [
12416
- {
12417
- "name": "startTickIndex",
12418
- "type": "i32"
12419
- },
12420
- {
12421
- "name": "ticks",
12422
- "type": {
12423
- "array": [
12424
- {
12425
- "defined": {
12426
- "name": "tick"
12427
- }
12428
- },
12429
- 88
12430
- ]
12431
- }
12432
- },
12433
- {
12434
- "name": "whirlpool",
12435
- "type": "pubkey"
12436
- }
12437
- ]
12438
- }
12439
- },
12440
12717
  {
12441
12718
  "name": "tickArrayBitmapExtension",
12442
12719
  "serialization": "bytemuckunsafe",
@@ -12725,7 +13002,7 @@ exports.IDL = {
12725
13002
  "type": "u16"
12726
13003
  },
12727
13004
  {
12728
- "name": "tickSpacingSeed",
13005
+ "name": "feeTierIndexSeed",
12729
13006
  "type": {
12730
13007
  "array": [
12731
13008
  "u8",