@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.
- package/dist/src/classes/RaydiumSDK.d.ts +12 -0
- package/dist/src/classes/RaydiumSDK.d.ts.map +1 -1
- package/dist/src/classes/RaydiumSDK.js +76 -0
- package/dist/src/functions.js +1 -1
- package/dist/src/idl/iyf-extension-idl.d.ts +527 -250
- package/dist/src/idl/iyf-extension-idl.d.ts.map +1 -1
- package/dist/src/idl/iyf-extension-idl.js +545 -268
- package/dist/src/ixGenerator/IyfExtensionIxGenerator.d.ts +29 -9
- package/dist/src/ixGenerator/IyfExtensionIxGenerator.d.ts.map +1 -1
- package/dist/src/ixGenerator/IyfExtensionIxGenerator.js +1 -2
- package/dist/src/ixGenerator/RaydiumIxGenerator.d.ts +4 -4
- package/dist/src/ixGenerator/RaydiumIxGenerator.d.ts.map +1 -1
- package/dist/src/ixGenerator/RaydiumIxGenerator.js +25 -5
- package/dist/src/types.d.ts +33 -1
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* IDL can be found at `target/idl/iyf_extension.json`.
|
|
6
6
|
*/
|
|
7
7
|
export type IyfExtension = {
|
|
8
|
-
"address": "";
|
|
8
|
+
"address": "EZiUb6ydWpR3ciizBTJ1J36KCqLyPKVjh4yZEJbs5Uno";
|
|
9
9
|
"metadata": {
|
|
10
10
|
"name": "iyfExtension";
|
|
11
11
|
"version": "0.1.0";
|
|
@@ -4771,26 +4771,6 @@ export type IyfExtension = {
|
|
|
4771
4771
|
"NFT that represents orca whirlpool position (to be initialized)"
|
|
4772
4772
|
];
|
|
4773
4773
|
"writable": true;
|
|
4774
|
-
"pda": {
|
|
4775
|
-
"seeds": [
|
|
4776
|
-
{
|
|
4777
|
-
"kind": "account";
|
|
4778
|
-
"path": "userPda";
|
|
4779
|
-
},
|
|
4780
|
-
{
|
|
4781
|
-
"kind": "account";
|
|
4782
|
-
"path": "tokenProgram";
|
|
4783
|
-
},
|
|
4784
|
-
{
|
|
4785
|
-
"kind": "account";
|
|
4786
|
-
"path": "positionMint";
|
|
4787
|
-
}
|
|
4788
|
-
];
|
|
4789
|
-
"program": {
|
|
4790
|
-
"kind": "account";
|
|
4791
|
-
"path": "associatedTokenProgram";
|
|
4792
|
-
};
|
|
4793
|
-
};
|
|
4794
4774
|
},
|
|
4795
4775
|
{
|
|
4796
4776
|
"name": "orcaWhirlpoolProgram";
|
|
@@ -4914,10 +4894,6 @@ export type IyfExtension = {
|
|
|
4914
4894
|
"Orca whirlpool account"
|
|
4915
4895
|
];
|
|
4916
4896
|
"writable": true;
|
|
4917
|
-
"relations": [
|
|
4918
|
-
"tickArrayLower",
|
|
4919
|
-
"tickArrayUpper"
|
|
4920
|
-
];
|
|
4921
4897
|
},
|
|
4922
4898
|
{
|
|
4923
4899
|
"name": "position";
|
|
@@ -4957,15 +4933,203 @@ export type IyfExtension = {
|
|
|
4957
4933
|
"NFT that represents orca whirlpool position"
|
|
4958
4934
|
];
|
|
4959
4935
|
"writable": true;
|
|
4936
|
+
},
|
|
4937
|
+
{
|
|
4938
|
+
"name": "tokenOwnerAccountA";
|
|
4939
|
+
"docs": [
|
|
4940
|
+
"Token A to deposit to liquidity"
|
|
4941
|
+
];
|
|
4942
|
+
"writable": true;
|
|
4943
|
+
},
|
|
4944
|
+
{
|
|
4945
|
+
"name": "tokenOwnerAccountB";
|
|
4946
|
+
"docs": [
|
|
4947
|
+
"Token B to deposit to liquidity"
|
|
4948
|
+
];
|
|
4949
|
+
"writable": true;
|
|
4950
|
+
},
|
|
4951
|
+
{
|
|
4952
|
+
"name": "tokenVaultA";
|
|
4953
|
+
"docs": [
|
|
4954
|
+
"Token Vault A"
|
|
4955
|
+
];
|
|
4956
|
+
"writable": true;
|
|
4957
|
+
},
|
|
4958
|
+
{
|
|
4959
|
+
"name": "tokenVaultB";
|
|
4960
|
+
"writable": true;
|
|
4961
|
+
},
|
|
4962
|
+
{
|
|
4963
|
+
"name": "tickArrayLower";
|
|
4964
|
+
"docs": [
|
|
4965
|
+
"Orca tick array lower account"
|
|
4966
|
+
];
|
|
4967
|
+
"writable": true;
|
|
4968
|
+
},
|
|
4969
|
+
{
|
|
4970
|
+
"name": "tickArrayUpper";
|
|
4971
|
+
"docs": [
|
|
4972
|
+
"Orca tick array upper account"
|
|
4973
|
+
];
|
|
4974
|
+
"writable": true;
|
|
4975
|
+
},
|
|
4976
|
+
{
|
|
4977
|
+
"name": "ownerFeeA";
|
|
4978
|
+
"docs": [
|
|
4979
|
+
"Owner fee A"
|
|
4980
|
+
];
|
|
4981
|
+
"writable": true;
|
|
4982
|
+
},
|
|
4983
|
+
{
|
|
4984
|
+
"name": "ownerFeeB";
|
|
4985
|
+
"docs": [
|
|
4986
|
+
"Owner fee B"
|
|
4987
|
+
];
|
|
4988
|
+
"writable": true;
|
|
4989
|
+
},
|
|
4990
|
+
{
|
|
4991
|
+
"name": "orcaWhirlpoolProgram";
|
|
4992
|
+
"docs": [
|
|
4993
|
+
"Orca whirlpool program"
|
|
4994
|
+
];
|
|
4995
|
+
"address": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc";
|
|
4996
|
+
},
|
|
4997
|
+
{
|
|
4998
|
+
"name": "tokenProgram";
|
|
4999
|
+
"docs": [
|
|
5000
|
+
"SPL Token Program"
|
|
5001
|
+
];
|
|
5002
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
5003
|
+
},
|
|
5004
|
+
{
|
|
5005
|
+
"name": "associatedTokenProgram";
|
|
5006
|
+
"docs": [
|
|
5007
|
+
"SPL ATA Program"
|
|
5008
|
+
];
|
|
5009
|
+
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
5010
|
+
}
|
|
5011
|
+
];
|
|
5012
|
+
"args": [];
|
|
5013
|
+
},
|
|
5014
|
+
{
|
|
5015
|
+
"name": "orcaAutoDepositWithAmount";
|
|
5016
|
+
"docs": [
|
|
5017
|
+
"Orca whirlpool deposit"
|
|
5018
|
+
];
|
|
5019
|
+
"discriminator": [
|
|
5020
|
+
251,
|
|
5021
|
+
237,
|
|
5022
|
+
98,
|
|
5023
|
+
126,
|
|
5024
|
+
242,
|
|
5025
|
+
79,
|
|
5026
|
+
6,
|
|
5027
|
+
58
|
|
5028
|
+
];
|
|
5029
|
+
"accounts": [
|
|
5030
|
+
{
|
|
5031
|
+
"name": "farm";
|
|
5032
|
+
"docs": [
|
|
5033
|
+
"Hawksight multi-index farm"
|
|
5034
|
+
];
|
|
5035
|
+
},
|
|
5036
|
+
{
|
|
5037
|
+
"name": "userPda";
|
|
5038
|
+
"docs": [
|
|
5039
|
+
"Hawksight user pda account authorized by user wallet"
|
|
5040
|
+
];
|
|
4960
5041
|
"pda": {
|
|
4961
5042
|
"seeds": [
|
|
5043
|
+
{
|
|
5044
|
+
"kind": "const";
|
|
5045
|
+
"value": [
|
|
5046
|
+
109,
|
|
5047
|
+
117,
|
|
5048
|
+
108,
|
|
5049
|
+
116,
|
|
5050
|
+
105,
|
|
5051
|
+
45,
|
|
5052
|
+
117,
|
|
5053
|
+
115,
|
|
5054
|
+
101,
|
|
5055
|
+
114
|
|
5056
|
+
];
|
|
5057
|
+
},
|
|
4962
5058
|
{
|
|
4963
5059
|
"kind": "account";
|
|
4964
|
-
"path": "
|
|
5060
|
+
"path": "farm";
|
|
4965
5061
|
},
|
|
4966
5062
|
{
|
|
4967
5063
|
"kind": "account";
|
|
4968
|
-
"path": "
|
|
5064
|
+
"path": "authority";
|
|
5065
|
+
}
|
|
5066
|
+
];
|
|
5067
|
+
"program": {
|
|
5068
|
+
"kind": "account";
|
|
5069
|
+
"path": "iyfProgram";
|
|
5070
|
+
};
|
|
5071
|
+
};
|
|
5072
|
+
},
|
|
5073
|
+
{
|
|
5074
|
+
"name": "authority";
|
|
5075
|
+
"docs": [
|
|
5076
|
+
"User wallet",
|
|
5077
|
+
"No need to be a signer since compound ix is always advantageous to the user, and can be delegated to a crank"
|
|
5078
|
+
];
|
|
5079
|
+
"writable": true;
|
|
5080
|
+
"relations": [
|
|
5081
|
+
"userPda"
|
|
5082
|
+
];
|
|
5083
|
+
},
|
|
5084
|
+
{
|
|
5085
|
+
"name": "iyfProgram";
|
|
5086
|
+
"docs": [
|
|
5087
|
+
"Main index yield farming program"
|
|
5088
|
+
];
|
|
5089
|
+
"address": "FqGg2Y1FNxMiGd51Q6UETixQWkF5fB92MysbYogRJb3P";
|
|
5090
|
+
},
|
|
5091
|
+
{
|
|
5092
|
+
"name": "rebalanceAuthority";
|
|
5093
|
+
"docs": [
|
|
5094
|
+
"Rebalancer which is hard coded to be a Hawksight rebalance wallet"
|
|
5095
|
+
];
|
|
5096
|
+
"writable": true;
|
|
5097
|
+
"signer": true;
|
|
5098
|
+
},
|
|
5099
|
+
{
|
|
5100
|
+
"name": "positionMint";
|
|
5101
|
+
"docs": [
|
|
5102
|
+
"Orca whirlpool position mint account (to be initialized)"
|
|
5103
|
+
];
|
|
5104
|
+
"writable": true;
|
|
5105
|
+
},
|
|
5106
|
+
{
|
|
5107
|
+
"name": "whirlpool";
|
|
5108
|
+
"docs": [
|
|
5109
|
+
"Orca whirlpool account"
|
|
5110
|
+
];
|
|
5111
|
+
"writable": true;
|
|
5112
|
+
},
|
|
5113
|
+
{
|
|
5114
|
+
"name": "position";
|
|
5115
|
+
"docs": [
|
|
5116
|
+
"Orca whirlpool position (to be initialized)"
|
|
5117
|
+
];
|
|
5118
|
+
"writable": true;
|
|
5119
|
+
"pda": {
|
|
5120
|
+
"seeds": [
|
|
5121
|
+
{
|
|
5122
|
+
"kind": "const";
|
|
5123
|
+
"value": [
|
|
5124
|
+
112,
|
|
5125
|
+
111,
|
|
5126
|
+
115,
|
|
5127
|
+
105,
|
|
5128
|
+
116,
|
|
5129
|
+
105,
|
|
5130
|
+
111,
|
|
5131
|
+
110
|
|
5132
|
+
];
|
|
4969
5133
|
},
|
|
4970
5134
|
{
|
|
4971
5135
|
"kind": "account";
|
|
@@ -4974,10 +5138,17 @@ export type IyfExtension = {
|
|
|
4974
5138
|
];
|
|
4975
5139
|
"program": {
|
|
4976
5140
|
"kind": "account";
|
|
4977
|
-
"path": "
|
|
5141
|
+
"path": "orcaWhirlpoolProgram";
|
|
4978
5142
|
};
|
|
4979
5143
|
};
|
|
4980
5144
|
},
|
|
5145
|
+
{
|
|
5146
|
+
"name": "positionTokenAccount";
|
|
5147
|
+
"docs": [
|
|
5148
|
+
"NFT that represents orca whirlpool position"
|
|
5149
|
+
];
|
|
5150
|
+
"writable": true;
|
|
5151
|
+
},
|
|
4981
5152
|
{
|
|
4982
5153
|
"name": "tokenOwnerAccountA";
|
|
4983
5154
|
"docs": [
|
|
@@ -5053,7 +5224,20 @@ export type IyfExtension = {
|
|
|
5053
5224
|
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
5054
5225
|
}
|
|
5055
5226
|
];
|
|
5056
|
-
"args": [
|
|
5227
|
+
"args": [
|
|
5228
|
+
{
|
|
5229
|
+
"name": "tokenMaxA";
|
|
5230
|
+
"type": {
|
|
5231
|
+
"option": "u64";
|
|
5232
|
+
};
|
|
5233
|
+
},
|
|
5234
|
+
{
|
|
5235
|
+
"name": "tokenMaxB";
|
|
5236
|
+
"type": {
|
|
5237
|
+
"option": "u64";
|
|
5238
|
+
};
|
|
5239
|
+
}
|
|
5240
|
+
];
|
|
5057
5241
|
},
|
|
5058
5242
|
{
|
|
5059
5243
|
"name": "orcaAutoOpenPosition";
|
|
@@ -5183,29 +5367,9 @@ export type IyfExtension = {
|
|
|
5183
5367
|
{
|
|
5184
5368
|
"name": "positionTokenAccount";
|
|
5185
5369
|
"docs": [
|
|
5186
|
-
"NFT that represents orca whirlpool position (to be initialized)"
|
|
5370
|
+
"NFT that represents orca whirlpool position (to be initialized): Validated in CPI"
|
|
5187
5371
|
];
|
|
5188
5372
|
"writable": true;
|
|
5189
|
-
"pda": {
|
|
5190
|
-
"seeds": [
|
|
5191
|
-
{
|
|
5192
|
-
"kind": "account";
|
|
5193
|
-
"path": "userPda";
|
|
5194
|
-
},
|
|
5195
|
-
{
|
|
5196
|
-
"kind": "account";
|
|
5197
|
-
"path": "tokenProgram";
|
|
5198
|
-
},
|
|
5199
|
-
{
|
|
5200
|
-
"kind": "account";
|
|
5201
|
-
"path": "positionMint";
|
|
5202
|
-
}
|
|
5203
|
-
];
|
|
5204
|
-
"program": {
|
|
5205
|
-
"kind": "account";
|
|
5206
|
-
"path": "associatedTokenProgram";
|
|
5207
|
-
};
|
|
5208
|
-
};
|
|
5209
5373
|
},
|
|
5210
5374
|
{
|
|
5211
5375
|
"name": "whirlpool";
|
|
@@ -5359,10 +5523,6 @@ export type IyfExtension = {
|
|
|
5359
5523
|
"Orca whirlpool account"
|
|
5360
5524
|
];
|
|
5361
5525
|
"writable": true;
|
|
5362
|
-
"relations": [
|
|
5363
|
-
"tickArrayLower",
|
|
5364
|
-
"tickArrayUpper"
|
|
5365
|
-
];
|
|
5366
5526
|
},
|
|
5367
5527
|
{
|
|
5368
5528
|
"name": "position";
|
|
@@ -5402,26 +5562,6 @@ export type IyfExtension = {
|
|
|
5402
5562
|
"NFT that represents orca whirlpool position"
|
|
5403
5563
|
];
|
|
5404
5564
|
"writable": true;
|
|
5405
|
-
"pda": {
|
|
5406
|
-
"seeds": [
|
|
5407
|
-
{
|
|
5408
|
-
"kind": "account";
|
|
5409
|
-
"path": "userPda";
|
|
5410
|
-
},
|
|
5411
|
-
{
|
|
5412
|
-
"kind": "account";
|
|
5413
|
-
"path": "tokenProgram";
|
|
5414
|
-
},
|
|
5415
|
-
{
|
|
5416
|
-
"kind": "account";
|
|
5417
|
-
"path": "positionMint";
|
|
5418
|
-
}
|
|
5419
|
-
];
|
|
5420
|
-
"program": {
|
|
5421
|
-
"kind": "account";
|
|
5422
|
-
"path": "associatedTokenProgram";
|
|
5423
|
-
};
|
|
5424
|
-
};
|
|
5425
5565
|
},
|
|
5426
5566
|
{
|
|
5427
5567
|
"name": "tokenOwnerAccountA";
|
|
@@ -6031,10 +6171,6 @@ export type IyfExtension = {
|
|
|
6031
6171
|
"Orca whirlpool account"
|
|
6032
6172
|
];
|
|
6033
6173
|
"writable": true;
|
|
6034
|
-
"relations": [
|
|
6035
|
-
"tickArrayLower",
|
|
6036
|
-
"tickArrayUpper"
|
|
6037
|
-
];
|
|
6038
6174
|
},
|
|
6039
6175
|
{
|
|
6040
6176
|
"name": "positionMint";
|
|
@@ -6271,13 +6407,6 @@ export type IyfExtension = {
|
|
|
6271
6407
|
"Orca whirlpool account"
|
|
6272
6408
|
];
|
|
6273
6409
|
"writable": true;
|
|
6274
|
-
"relations": [
|
|
6275
|
-
"tickArrayLower",
|
|
6276
|
-
"tickArrayUpper",
|
|
6277
|
-
"tickArray0",
|
|
6278
|
-
"tickArray1",
|
|
6279
|
-
"tickArray2"
|
|
6280
|
-
];
|
|
6281
6410
|
},
|
|
6282
6411
|
{
|
|
6283
6412
|
"name": "positionMint";
|
|
@@ -6578,13 +6707,6 @@ export type IyfExtension = {
|
|
|
6578
6707
|
"Orca whirlpool account"
|
|
6579
6708
|
];
|
|
6580
6709
|
"writable": true;
|
|
6581
|
-
"relations": [
|
|
6582
|
-
"tickArrayLower",
|
|
6583
|
-
"tickArrayUpper",
|
|
6584
|
-
"tickArray0",
|
|
6585
|
-
"tickArray1",
|
|
6586
|
-
"tickArray2"
|
|
6587
|
-
];
|
|
6588
6710
|
},
|
|
6589
6711
|
{
|
|
6590
6712
|
"name": "positionMint";
|
|
@@ -7231,10 +7353,6 @@ export type IyfExtension = {
|
|
|
7231
7353
|
"Orca whirlpool account"
|
|
7232
7354
|
];
|
|
7233
7355
|
"writable": true;
|
|
7234
|
-
"relations": [
|
|
7235
|
-
"tickArrayLower",
|
|
7236
|
-
"tickArrayUpper"
|
|
7237
|
-
];
|
|
7238
7356
|
},
|
|
7239
7357
|
{
|
|
7240
7358
|
"name": "position";
|
|
@@ -7517,10 +7635,6 @@ export type IyfExtension = {
|
|
|
7517
7635
|
"Orca whirlpool account"
|
|
7518
7636
|
];
|
|
7519
7637
|
"writable": true;
|
|
7520
|
-
"relations": [
|
|
7521
|
-
"tickArrayLower",
|
|
7522
|
-
"tickArrayUpper"
|
|
7523
|
-
];
|
|
7524
7638
|
},
|
|
7525
7639
|
{
|
|
7526
7640
|
"name": "position";
|
|
@@ -7946,15 +8060,6 @@ export type IyfExtension = {
|
|
|
7946
8060
|
"Orca whirlpool account"
|
|
7947
8061
|
];
|
|
7948
8062
|
"writable": true;
|
|
7949
|
-
"relations": [
|
|
7950
|
-
"tickArrayLowerSrc",
|
|
7951
|
-
"tickArrayUpperSrc",
|
|
7952
|
-
"tickArrayLowerDst",
|
|
7953
|
-
"tickArrayUpperDst",
|
|
7954
|
-
"tickArray0",
|
|
7955
|
-
"tickArray1",
|
|
7956
|
-
"tickArray2"
|
|
7957
|
-
];
|
|
7958
8063
|
},
|
|
7959
8064
|
{
|
|
7960
8065
|
"name": "positionMintSrc";
|
|
@@ -8325,15 +8430,6 @@ export type IyfExtension = {
|
|
|
8325
8430
|
"Orca whirlpool account"
|
|
8326
8431
|
];
|
|
8327
8432
|
"writable": true;
|
|
8328
|
-
"relations": [
|
|
8329
|
-
"tickArrayLowerSrc",
|
|
8330
|
-
"tickArrayUpperSrc",
|
|
8331
|
-
"tickArrayLowerDst",
|
|
8332
|
-
"tickArrayUpperDst",
|
|
8333
|
-
"tickArray0",
|
|
8334
|
-
"tickArray1",
|
|
8335
|
-
"tickArray2"
|
|
8336
|
-
];
|
|
8337
8433
|
},
|
|
8338
8434
|
{
|
|
8339
8435
|
"name": "positionMintSrc";
|
|
@@ -8695,14 +8791,7 @@ export type IyfExtension = {
|
|
|
8695
8791
|
"docs": [
|
|
8696
8792
|
"Orca whirlpool account"
|
|
8697
8793
|
];
|
|
8698
|
-
"writable": true;
|
|
8699
|
-
"relations": [
|
|
8700
|
-
"tickArrayLowerDst",
|
|
8701
|
-
"tickArrayUpperDst",
|
|
8702
|
-
"tickArray0",
|
|
8703
|
-
"tickArray1",
|
|
8704
|
-
"tickArray2"
|
|
8705
|
-
];
|
|
8794
|
+
"writable": true;
|
|
8706
8795
|
},
|
|
8707
8796
|
{
|
|
8708
8797
|
"name": "positionMintDst";
|
|
@@ -8980,10 +9069,6 @@ export type IyfExtension = {
|
|
|
8980
9069
|
"Orca whirlpool account"
|
|
8981
9070
|
];
|
|
8982
9071
|
"writable": true;
|
|
8983
|
-
"relations": [
|
|
8984
|
-
"tickArrayLower",
|
|
8985
|
-
"tickArrayUpper"
|
|
8986
|
-
];
|
|
8987
9072
|
},
|
|
8988
9073
|
{
|
|
8989
9074
|
"name": "position";
|
|
@@ -9506,6 +9591,31 @@ export type IyfExtension = {
|
|
|
9506
9591
|
"User position account (owned by Raydium)"
|
|
9507
9592
|
];
|
|
9508
9593
|
"writable": true;
|
|
9594
|
+
"pda": {
|
|
9595
|
+
"seeds": [
|
|
9596
|
+
{
|
|
9597
|
+
"kind": "const";
|
|
9598
|
+
"value": [
|
|
9599
|
+
112,
|
|
9600
|
+
111,
|
|
9601
|
+
115,
|
|
9602
|
+
105,
|
|
9603
|
+
116,
|
|
9604
|
+
105,
|
|
9605
|
+
111,
|
|
9606
|
+
110
|
|
9607
|
+
];
|
|
9608
|
+
},
|
|
9609
|
+
{
|
|
9610
|
+
"kind": "account";
|
|
9611
|
+
"path": "nft_account.mint";
|
|
9612
|
+
}
|
|
9613
|
+
];
|
|
9614
|
+
"program": {
|
|
9615
|
+
"kind": "account";
|
|
9616
|
+
"path": "raydiumProgram";
|
|
9617
|
+
};
|
|
9618
|
+
};
|
|
9509
9619
|
},
|
|
9510
9620
|
{
|
|
9511
9621
|
"name": "poolState";
|
|
@@ -9606,17 +9716,29 @@ export type IyfExtension = {
|
|
|
9606
9716
|
}
|
|
9607
9717
|
];
|
|
9608
9718
|
"args": [
|
|
9719
|
+
{
|
|
9720
|
+
"name": "slippage";
|
|
9721
|
+
"type": {
|
|
9722
|
+
"option": "u16";
|
|
9723
|
+
};
|
|
9724
|
+
},
|
|
9609
9725
|
{
|
|
9610
9726
|
"name": "liquidity";
|
|
9611
|
-
"type":
|
|
9727
|
+
"type": {
|
|
9728
|
+
"option": "u128";
|
|
9729
|
+
};
|
|
9612
9730
|
},
|
|
9613
9731
|
{
|
|
9614
9732
|
"name": "amount0Min";
|
|
9615
|
-
"type":
|
|
9733
|
+
"type": {
|
|
9734
|
+
"option": "u64";
|
|
9735
|
+
};
|
|
9616
9736
|
},
|
|
9617
9737
|
{
|
|
9618
9738
|
"name": "amount1Min";
|
|
9619
|
-
"type":
|
|
9739
|
+
"type": {
|
|
9740
|
+
"option": "u64";
|
|
9741
|
+
};
|
|
9620
9742
|
}
|
|
9621
9743
|
];
|
|
9622
9744
|
},
|
|
@@ -9788,15 +9910,21 @@ export type IyfExtension = {
|
|
|
9788
9910
|
"args": [
|
|
9789
9911
|
{
|
|
9790
9912
|
"name": "liquidity";
|
|
9791
|
-
"type":
|
|
9913
|
+
"type": {
|
|
9914
|
+
"option": "u128";
|
|
9915
|
+
};
|
|
9792
9916
|
},
|
|
9793
9917
|
{
|
|
9794
9918
|
"name": "amount0Max";
|
|
9795
|
-
"type":
|
|
9919
|
+
"type": {
|
|
9920
|
+
"option": "u64";
|
|
9921
|
+
};
|
|
9796
9922
|
},
|
|
9797
9923
|
{
|
|
9798
9924
|
"name": "amount1Max";
|
|
9799
|
-
"type":
|
|
9925
|
+
"type": {
|
|
9926
|
+
"option": "u64";
|
|
9927
|
+
};
|
|
9800
9928
|
},
|
|
9801
9929
|
{
|
|
9802
9930
|
"name": "baseFlag";
|
|
@@ -10098,15 +10226,21 @@ export type IyfExtension = {
|
|
|
10098
10226
|
},
|
|
10099
10227
|
{
|
|
10100
10228
|
"name": "liquidity";
|
|
10101
|
-
"type":
|
|
10229
|
+
"type": {
|
|
10230
|
+
"option": "u128";
|
|
10231
|
+
};
|
|
10102
10232
|
},
|
|
10103
10233
|
{
|
|
10104
10234
|
"name": "amount0Max";
|
|
10105
|
-
"type":
|
|
10235
|
+
"type": {
|
|
10236
|
+
"option": "u64";
|
|
10237
|
+
};
|
|
10106
10238
|
},
|
|
10107
10239
|
{
|
|
10108
10240
|
"name": "amount1Max";
|
|
10109
|
-
"type":
|
|
10241
|
+
"type": {
|
|
10242
|
+
"option": "u64";
|
|
10243
|
+
};
|
|
10110
10244
|
},
|
|
10111
10245
|
{
|
|
10112
10246
|
"name": "withMetadata";
|
|
@@ -10345,12 +10479,7 @@ export type IyfExtension = {
|
|
|
10345
10479
|
"address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr";
|
|
10346
10480
|
}
|
|
10347
10481
|
];
|
|
10348
|
-
"args": [
|
|
10349
|
-
{
|
|
10350
|
-
"name": "slippage";
|
|
10351
|
-
"type": "u64";
|
|
10352
|
-
}
|
|
10353
|
-
];
|
|
10482
|
+
"args": [];
|
|
10354
10483
|
},
|
|
10355
10484
|
{
|
|
10356
10485
|
"name": "saberCompound1";
|
|
@@ -10617,11 +10746,6 @@ export type IyfExtension = {
|
|
|
10617
10746
|
];
|
|
10618
10747
|
"writable": true;
|
|
10619
10748
|
"address": "HXPD3Y4PCkvBNC3NKUa5YDQkTuusfWxhXs5Qe5VP1p2X";
|
|
10620
|
-
"relations": [
|
|
10621
|
-
"tickArray0",
|
|
10622
|
-
"tickArray1",
|
|
10623
|
-
"tickArray2"
|
|
10624
|
-
];
|
|
10625
10749
|
},
|
|
10626
10750
|
{
|
|
10627
10751
|
"name": "orcaSbrVault";
|
|
@@ -10999,11 +11123,6 @@ export type IyfExtension = {
|
|
|
10999
11123
|
"Orca whirlpool account"
|
|
11000
11124
|
];
|
|
11001
11125
|
"writable": true;
|
|
11002
|
-
"relations": [
|
|
11003
|
-
"tickArray0",
|
|
11004
|
-
"tickArray1",
|
|
11005
|
-
"tickArray2"
|
|
11006
|
-
];
|
|
11007
11126
|
},
|
|
11008
11127
|
{
|
|
11009
11128
|
"name": "source";
|
|
@@ -11191,11 +11310,6 @@ export type IyfExtension = {
|
|
|
11191
11310
|
"Orca whirlpool account"
|
|
11192
11311
|
];
|
|
11193
11312
|
"writable": true;
|
|
11194
|
-
"relations": [
|
|
11195
|
-
"tickArray0",
|
|
11196
|
-
"tickArray1",
|
|
11197
|
-
"tickArray2"
|
|
11198
|
-
];
|
|
11199
11313
|
},
|
|
11200
11314
|
{
|
|
11201
11315
|
"name": "source";
|
|
@@ -11398,19 +11512,6 @@ export type IyfExtension = {
|
|
|
11398
11512
|
106
|
|
11399
11513
|
];
|
|
11400
11514
|
},
|
|
11401
|
-
{
|
|
11402
|
-
"name": "tickArray";
|
|
11403
|
-
"discriminator": [
|
|
11404
|
-
69,
|
|
11405
|
-
97,
|
|
11406
|
-
189,
|
|
11407
|
-
190,
|
|
11408
|
-
110,
|
|
11409
|
-
7,
|
|
11410
|
-
66,
|
|
11411
|
-
187
|
|
11412
|
-
];
|
|
11413
|
-
},
|
|
11414
11515
|
{
|
|
11415
11516
|
"name": "tickArrayBitmapExtension";
|
|
11416
11517
|
"discriminator": [
|
|
@@ -11464,6 +11565,258 @@ export type IyfExtension = {
|
|
|
11464
11565
|
];
|
|
11465
11566
|
}
|
|
11466
11567
|
];
|
|
11568
|
+
"errors": [
|
|
11569
|
+
{
|
|
11570
|
+
"code": 6000;
|
|
11571
|
+
"name": "invalidIndexFarmAddress";
|
|
11572
|
+
"msg": "Invalid Index Farm address";
|
|
11573
|
+
},
|
|
11574
|
+
{
|
|
11575
|
+
"code": 6001;
|
|
11576
|
+
"name": "invalidUserPdaAccount";
|
|
11577
|
+
"msg": "Invalid User PDA Account";
|
|
11578
|
+
},
|
|
11579
|
+
{
|
|
11580
|
+
"code": 6002;
|
|
11581
|
+
"name": "invalidAuthorityAccount";
|
|
11582
|
+
"msg": "Invalid authority account";
|
|
11583
|
+
},
|
|
11584
|
+
{
|
|
11585
|
+
"code": 6003;
|
|
11586
|
+
"name": "invalidOperationOrder";
|
|
11587
|
+
"msg": "Invalid operation order";
|
|
11588
|
+
},
|
|
11589
|
+
{
|
|
11590
|
+
"code": 6004;
|
|
11591
|
+
"name": "userPdaMustBeSigner";
|
|
11592
|
+
"msg": "User PDA must be a signer";
|
|
11593
|
+
},
|
|
11594
|
+
{
|
|
11595
|
+
"code": 6005;
|
|
11596
|
+
"name": "userPdaPayerMustBeSigner";
|
|
11597
|
+
"msg": "User PDA payer must be a signer";
|
|
11598
|
+
},
|
|
11599
|
+
{
|
|
11600
|
+
"code": 6006;
|
|
11601
|
+
"name": "invalidTokenOwner";
|
|
11602
|
+
"msg": "Invalid token owner";
|
|
11603
|
+
},
|
|
11604
|
+
{
|
|
11605
|
+
"code": 6007;
|
|
11606
|
+
"name": "mintMismatch";
|
|
11607
|
+
"msg": "Mint mismatch";
|
|
11608
|
+
},
|
|
11609
|
+
{
|
|
11610
|
+
"code": 6008;
|
|
11611
|
+
"name": "invalidTokenMint";
|
|
11612
|
+
"msg": "Invalid token mint";
|
|
11613
|
+
},
|
|
11614
|
+
{
|
|
11615
|
+
"code": 6009;
|
|
11616
|
+
"name": "accountCannotBeSame";
|
|
11617
|
+
"msg": "Account cannot be same";
|
|
11618
|
+
},
|
|
11619
|
+
{
|
|
11620
|
+
"code": 6010;
|
|
11621
|
+
"name": "missingAccounts";
|
|
11622
|
+
"msg": "Missing accounts";
|
|
11623
|
+
},
|
|
11624
|
+
{
|
|
11625
|
+
"code": 6011;
|
|
11626
|
+
"name": "invalidProgramOwner";
|
|
11627
|
+
"msg": "Invalid program owner";
|
|
11628
|
+
},
|
|
11629
|
+
{
|
|
11630
|
+
"code": 6012;
|
|
11631
|
+
"name": "orcaLowerTickIsHigherThanHigherTick";
|
|
11632
|
+
"msg": "Orca lower tick account cannot be higher than higher tick";
|
|
11633
|
+
},
|
|
11634
|
+
{
|
|
11635
|
+
"code": 6013;
|
|
11636
|
+
"name": "numberCastError";
|
|
11637
|
+
"msg": "Unable to cast number into BigInt";
|
|
11638
|
+
},
|
|
11639
|
+
{
|
|
11640
|
+
"code": 6014;
|
|
11641
|
+
"name": "numberDownCastError";
|
|
11642
|
+
"msg": "Unable to down cast number";
|
|
11643
|
+
},
|
|
11644
|
+
{
|
|
11645
|
+
"code": 6015;
|
|
11646
|
+
"name": "multiplicationOverflow";
|
|
11647
|
+
"msg": "Multiplication overflow";
|
|
11648
|
+
},
|
|
11649
|
+
{
|
|
11650
|
+
"code": 6016;
|
|
11651
|
+
"name": "tokenMaxExceeded";
|
|
11652
|
+
"msg": "Exceeded token max";
|
|
11653
|
+
},
|
|
11654
|
+
{
|
|
11655
|
+
"code": 6017;
|
|
11656
|
+
"name": "tokenMinSubceeded";
|
|
11657
|
+
"msg": "Did not meet token min";
|
|
11658
|
+
},
|
|
11659
|
+
{
|
|
11660
|
+
"code": 6018;
|
|
11661
|
+
"name": "divideByZero";
|
|
11662
|
+
"msg": "Unable to divide by zero";
|
|
11663
|
+
},
|
|
11664
|
+
{
|
|
11665
|
+
"code": 6019;
|
|
11666
|
+
"name": "sqrtPriceOutOfBounds";
|
|
11667
|
+
"msg": "Provided sqrt price out of bounds";
|
|
11668
|
+
},
|
|
11669
|
+
{
|
|
11670
|
+
"code": 6020;
|
|
11671
|
+
"name": "liquidityOverflow";
|
|
11672
|
+
"msg": "Liquidity overflow";
|
|
11673
|
+
},
|
|
11674
|
+
{
|
|
11675
|
+
"code": 6021;
|
|
11676
|
+
"name": "liquidityUnderflow";
|
|
11677
|
+
"msg": "Liquidity underflow";
|
|
11678
|
+
},
|
|
11679
|
+
{
|
|
11680
|
+
"code": 6022;
|
|
11681
|
+
"name": "liquidityNetError";
|
|
11682
|
+
"msg": "Tick liquidity net underflowed or overflowed";
|
|
11683
|
+
},
|
|
11684
|
+
{
|
|
11685
|
+
"code": 6023;
|
|
11686
|
+
"name": "liquidityZero";
|
|
11687
|
+
"msg": "Liquidity amount must be greater than zero";
|
|
11688
|
+
},
|
|
11689
|
+
{
|
|
11690
|
+
"code": 6024;
|
|
11691
|
+
"name": "liquidityTooHigh";
|
|
11692
|
+
"msg": "Liquidity amount must be less than i64::MAX";
|
|
11693
|
+
},
|
|
11694
|
+
{
|
|
11695
|
+
"code": 6025;
|
|
11696
|
+
"name": "multiplicationShiftRightOverflow";
|
|
11697
|
+
"msg": "Multiplication with shift right overflow";
|
|
11698
|
+
},
|
|
11699
|
+
{
|
|
11700
|
+
"code": 6026;
|
|
11701
|
+
"name": "mulDivOverflow";
|
|
11702
|
+
"msg": "Muldiv overflow";
|
|
11703
|
+
},
|
|
11704
|
+
{
|
|
11705
|
+
"code": 6027;
|
|
11706
|
+
"name": "amountPercentageOutOfRange";
|
|
11707
|
+
"msg": "Amount percentage must be within 1 to 100 only";
|
|
11708
|
+
},
|
|
11709
|
+
{
|
|
11710
|
+
"code": 6028;
|
|
11711
|
+
"name": "programError";
|
|
11712
|
+
"msg": "Generic program error.";
|
|
11713
|
+
},
|
|
11714
|
+
{
|
|
11715
|
+
"code": 6029;
|
|
11716
|
+
"name": "farmMustBeUserPdaFarm";
|
|
11717
|
+
"msg": "";
|
|
11718
|
+
},
|
|
11719
|
+
{
|
|
11720
|
+
"code": 6030;
|
|
11721
|
+
"name": "shouldUseDefaultFarm";
|
|
11722
|
+
"msg": "Farm must be 7jLQhREMxXjKdpwVuN6gwsWt3BNfAg9WqbepffPbi4ww";
|
|
11723
|
+
},
|
|
11724
|
+
{
|
|
11725
|
+
"code": 6031;
|
|
11726
|
+
"name": "invalidInstruction";
|
|
11727
|
+
"msg": "Invalid instruction";
|
|
11728
|
+
},
|
|
11729
|
+
{
|
|
11730
|
+
"code": 6032;
|
|
11731
|
+
"name": "minBinCannotExceedMaxBin";
|
|
11732
|
+
"msg": "Min bin cannot exceed max bin";
|
|
11733
|
+
},
|
|
11734
|
+
{
|
|
11735
|
+
"code": 6033;
|
|
11736
|
+
"name": "activeBinOutsideSpecified";
|
|
11737
|
+
"msg": "Active bin is outside specified min and max bin areas.";
|
|
11738
|
+
},
|
|
11739
|
+
{
|
|
11740
|
+
"code": 6034;
|
|
11741
|
+
"name": "meteoraLbPairDiscriminatorDoNotMatch";
|
|
11742
|
+
"msg": "Meteora LbPair discriminator do not match.";
|
|
11743
|
+
},
|
|
11744
|
+
{
|
|
11745
|
+
"code": 6035;
|
|
11746
|
+
"name": "upperBinShouldBeHigherThanLowerBin";
|
|
11747
|
+
"msg": "Upper bin should be higher than lower bin.";
|
|
11748
|
+
},
|
|
11749
|
+
{
|
|
11750
|
+
"code": 6036;
|
|
11751
|
+
"name": "amountCannotBeBothZero";
|
|
11752
|
+
"msg": "Amount cannot be both zero";
|
|
11753
|
+
},
|
|
11754
|
+
{
|
|
11755
|
+
"code": 6037;
|
|
11756
|
+
"name": "atLeastOneTokenAmountMustBeZero";
|
|
11757
|
+
"msg": "At least one token amount must be zero";
|
|
11758
|
+
},
|
|
11759
|
+
{
|
|
11760
|
+
"code": 6038;
|
|
11761
|
+
"name": "notEnoughElementsInArray";
|
|
11762
|
+
"msg": "Not enough elements in array";
|
|
11763
|
+
},
|
|
11764
|
+
{
|
|
11765
|
+
"code": 6039;
|
|
11766
|
+
"name": "minTickIndexCannotExceedMaxBin";
|
|
11767
|
+
"msg": "Min tick index cannot exceed max tick index";
|
|
11768
|
+
},
|
|
11769
|
+
{
|
|
11770
|
+
"code": 6040;
|
|
11771
|
+
"name": "currentTickIndexOutsideSpecified";
|
|
11772
|
+
"msg": "Current tick index is outside specified min and max bin areas.";
|
|
11773
|
+
},
|
|
11774
|
+
{
|
|
11775
|
+
"code": 6041;
|
|
11776
|
+
"name": "userPdaLamportSeedConstraintViolation";
|
|
11777
|
+
"msg": "Seed constraint violation for user pda lamport account!";
|
|
11778
|
+
},
|
|
11779
|
+
{
|
|
11780
|
+
"code": 6042;
|
|
11781
|
+
"name": "raydiumFeeAccountsMayNotBeIncluded";
|
|
11782
|
+
"msg": "Fee accounts may not be included (remaining accounts not mod 4 == 0)";
|
|
11783
|
+
},
|
|
11784
|
+
{
|
|
11785
|
+
"code": 6043;
|
|
11786
|
+
"name": "raydiumTickArrayBitmapDoesNotMatch";
|
|
11787
|
+
"msg": "Raydium tick array bitmap address does not match";
|
|
11788
|
+
},
|
|
11789
|
+
{
|
|
11790
|
+
"code": 6044;
|
|
11791
|
+
"name": "invalidAuthorityTokenOwner";
|
|
11792
|
+
"msg": "Token must be owned by user wallet";
|
|
11793
|
+
},
|
|
11794
|
+
{
|
|
11795
|
+
"code": 6045;
|
|
11796
|
+
"name": "invalidAccountOwner";
|
|
11797
|
+
"msg": "Invalid account owner";
|
|
11798
|
+
},
|
|
11799
|
+
{
|
|
11800
|
+
"code": 6046;
|
|
11801
|
+
"name": "invalidTokenAccount";
|
|
11802
|
+
"msg": "Invalid token account";
|
|
11803
|
+
},
|
|
11804
|
+
{
|
|
11805
|
+
"code": 6047;
|
|
11806
|
+
"name": "invalidLimitTokenSeeds";
|
|
11807
|
+
"msg": "Invalid limit token seeds";
|
|
11808
|
+
},
|
|
11809
|
+
{
|
|
11810
|
+
"code": 6048;
|
|
11811
|
+
"name": "invalidFuelAccount";
|
|
11812
|
+
"msg": "Invalid fuel account";
|
|
11813
|
+
},
|
|
11814
|
+
{
|
|
11815
|
+
"code": 6049;
|
|
11816
|
+
"name": "orcaTradeIsNotEnabled";
|
|
11817
|
+
"msg": "Orca Error: Trade is not enabled";
|
|
11818
|
+
}
|
|
11819
|
+
];
|
|
11467
11820
|
"types": [
|
|
11468
11821
|
{
|
|
11469
11822
|
"name": "ammConfig";
|
|
@@ -12364,82 +12717,6 @@ export type IyfExtension = {
|
|
|
12364
12717
|
];
|
|
12365
12718
|
};
|
|
12366
12719
|
},
|
|
12367
|
-
{
|
|
12368
|
-
"name": "tick";
|
|
12369
|
-
"serialization": "bytemuck";
|
|
12370
|
-
"repr": {
|
|
12371
|
-
"kind": "c";
|
|
12372
|
-
"packed": true;
|
|
12373
|
-
};
|
|
12374
|
-
"type": {
|
|
12375
|
-
"kind": "struct";
|
|
12376
|
-
"fields": [
|
|
12377
|
-
{
|
|
12378
|
-
"name": "initialized";
|
|
12379
|
-
"type": "u8";
|
|
12380
|
-
},
|
|
12381
|
-
{
|
|
12382
|
-
"name": "liquidityNet";
|
|
12383
|
-
"type": "i128";
|
|
12384
|
-
},
|
|
12385
|
-
{
|
|
12386
|
-
"name": "liquidityGross";
|
|
12387
|
-
"type": "u128";
|
|
12388
|
-
},
|
|
12389
|
-
{
|
|
12390
|
-
"name": "feeGrowthOutsideA";
|
|
12391
|
-
"type": "u128";
|
|
12392
|
-
},
|
|
12393
|
-
{
|
|
12394
|
-
"name": "feeGrowthOutsideB";
|
|
12395
|
-
"type": "u128";
|
|
12396
|
-
},
|
|
12397
|
-
{
|
|
12398
|
-
"name": "rewardGrowthsOutside";
|
|
12399
|
-
"type": {
|
|
12400
|
-
"array": [
|
|
12401
|
-
"u128",
|
|
12402
|
-
3
|
|
12403
|
-
];
|
|
12404
|
-
};
|
|
12405
|
-
}
|
|
12406
|
-
];
|
|
12407
|
-
};
|
|
12408
|
-
},
|
|
12409
|
-
{
|
|
12410
|
-
"name": "tickArray";
|
|
12411
|
-
"serialization": "bytemuck";
|
|
12412
|
-
"repr": {
|
|
12413
|
-
"kind": "c";
|
|
12414
|
-
"packed": true;
|
|
12415
|
-
};
|
|
12416
|
-
"type": {
|
|
12417
|
-
"kind": "struct";
|
|
12418
|
-
"fields": [
|
|
12419
|
-
{
|
|
12420
|
-
"name": "startTickIndex";
|
|
12421
|
-
"type": "i32";
|
|
12422
|
-
},
|
|
12423
|
-
{
|
|
12424
|
-
"name": "ticks";
|
|
12425
|
-
"type": {
|
|
12426
|
-
"array": [
|
|
12427
|
-
{
|
|
12428
|
-
"defined": {
|
|
12429
|
-
"name": "tick";
|
|
12430
|
-
};
|
|
12431
|
-
},
|
|
12432
|
-
88
|
|
12433
|
-
];
|
|
12434
|
-
};
|
|
12435
|
-
},
|
|
12436
|
-
{
|
|
12437
|
-
"name": "whirlpool";
|
|
12438
|
-
"type": "pubkey";
|
|
12439
|
-
}
|
|
12440
|
-
];
|
|
12441
|
-
};
|
|
12442
|
-
},
|
|
12443
12720
|
{
|
|
12444
12721
|
"name": "tickArrayBitmapExtension";
|
|
12445
12722
|
"serialization": "bytemuckunsafe";
|
|
@@ -12728,7 +13005,7 @@ export type IyfExtension = {
|
|
|
12728
13005
|
"type": "u16";
|
|
12729
13006
|
},
|
|
12730
13007
|
{
|
|
12731
|
-
"name": "
|
|
13008
|
+
"name": "feeTierIndexSeed";
|
|
12732
13009
|
"type": {
|
|
12733
13010
|
"array": [
|
|
12734
13011
|
"u8",
|