@hawksightco/hawk-sdk 1.1.74 → 1.2.0

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.
Files changed (45) hide show
  1. package/dist/src/addresses.d.ts +3 -0
  2. package/dist/src/addresses.d.ts.map +1 -1
  3. package/dist/src/addresses.js +4 -1
  4. package/dist/src/anchor.d.ts +2 -0
  5. package/dist/src/anchor.d.ts.map +1 -1
  6. package/dist/src/anchor.js +2 -0
  7. package/dist/src/classes/HawkAPI.js +1 -2
  8. package/dist/src/classes/SimpleIxGenerator.d.ts +28 -5
  9. package/dist/src/classes/SimpleIxGenerator.d.ts.map +1 -1
  10. package/dist/src/classes/SimpleIxGenerator.js +29 -6
  11. package/dist/src/classes/Transactions.d.ts +34 -1
  12. package/dist/src/classes/Transactions.d.ts.map +1 -1
  13. package/dist/src/classes/Transactions.js +123 -0
  14. package/dist/src/classes/TxGenerator.d.ts +17 -1
  15. package/dist/src/classes/TxGenerator.d.ts.map +1 -1
  16. package/dist/src/classes/TxGenerator.js +135 -10
  17. package/dist/src/classes/TxGeneratorAutomations.d.ts.map +1 -1
  18. package/dist/src/classes/TxGeneratorAutomations.js +5 -0
  19. package/dist/src/functions.d.ts +10 -0
  20. package/dist/src/functions.d.ts.map +1 -1
  21. package/dist/src/functions.js +53 -1
  22. package/dist/src/idl/iyf-extension-idl.d.ts +166 -210
  23. package/dist/src/idl/iyf-extension-idl.d.ts.map +1 -1
  24. package/dist/src/idl/iyf-extension-idl.js +168 -212
  25. package/dist/src/idl/iyf-main-idl.d.ts +288 -0
  26. package/dist/src/idl/iyf-main-idl.d.ts.map +1 -1
  27. package/dist/src/idl/iyf-main-idl.js +288 -0
  28. package/dist/src/idl/raydium-idl.d.ts +3054 -0
  29. package/dist/src/idl/raydium-idl.d.ts.map +1 -0
  30. package/dist/src/idl/raydium-idl.js +3055 -0
  31. package/dist/src/ixGenerator/IyfExtensionIxGenerator.d.ts +80 -1
  32. package/dist/src/ixGenerator/IyfExtensionIxGenerator.d.ts.map +1 -1
  33. package/dist/src/ixGenerator/IyfExtensionIxGenerator.js +289 -1
  34. package/dist/src/ixGenerator/IyfMainIxGenerator.d.ts +31 -0
  35. package/dist/src/ixGenerator/IyfMainIxGenerator.d.ts.map +1 -1
  36. package/dist/src/ixGenerator/IyfMainIxGenerator.js +183 -0
  37. package/dist/src/ixGenerator/RaydiumIxGenerator.d.ts +114 -0
  38. package/dist/src/ixGenerator/RaydiumIxGenerator.d.ts.map +1 -0
  39. package/dist/src/ixGenerator/RaydiumIxGenerator.js +398 -0
  40. package/dist/src/pdaGenerator/RaydiumPdaGenerator.d.ts +44 -1
  41. package/dist/src/pdaGenerator/RaydiumPdaGenerator.d.ts.map +1 -1
  42. package/dist/src/pdaGenerator/RaydiumPdaGenerator.js +96 -1
  43. package/dist/src/types.d.ts +35 -1
  44. package/dist/src/types.d.ts.map +1 -1
  45. package/package.json +1 -1
@@ -1868,6 +1868,171 @@ export type IyfExtension = {
1868
1868
  }
1869
1869
  ];
1870
1870
  },
1871
+ {
1872
+ "name": "limitOrderClose";
1873
+ "docs": [
1874
+ "Meteora Limit Close Position with 20% Fee"
1875
+ ];
1876
+ "discriminator": [
1877
+ 85,
1878
+ 131,
1879
+ 250,
1880
+ 132,
1881
+ 147,
1882
+ 44,
1883
+ 118,
1884
+ 204
1885
+ ];
1886
+ "accounts": [
1887
+ {
1888
+ "name": "farm";
1889
+ "docs": [
1890
+ "Hawksight multi-index farm"
1891
+ ];
1892
+ },
1893
+ {
1894
+ "name": "userPda";
1895
+ "docs": [
1896
+ "Hawksight user pda"
1897
+ ];
1898
+ "pda": {
1899
+ "seeds": [
1900
+ {
1901
+ "kind": "const";
1902
+ "value": [
1903
+ 109,
1904
+ 117,
1905
+ 108,
1906
+ 116,
1907
+ 105,
1908
+ 45,
1909
+ 117,
1910
+ 115,
1911
+ 101,
1912
+ 114
1913
+ ];
1914
+ },
1915
+ {
1916
+ "kind": "account";
1917
+ "path": "farm";
1918
+ },
1919
+ {
1920
+ "kind": "account";
1921
+ "path": "authority";
1922
+ }
1923
+ ];
1924
+ "program": {
1925
+ "kind": "account";
1926
+ "path": "iyfProgram";
1927
+ };
1928
+ };
1929
+ },
1930
+ {
1931
+ "name": "authority";
1932
+ "docs": [
1933
+ "User wallet",
1934
+ "* No need to check"
1935
+ ];
1936
+ "writable": true;
1937
+ "relations": [
1938
+ "userPda"
1939
+ ];
1940
+ },
1941
+ {
1942
+ "name": "iyfProgram";
1943
+ "docs": [
1944
+ "Main index yield farming program"
1945
+ ];
1946
+ "address": "FqGg2Y1FNxMiGd51Q6UETixQWkF5fB92MysbYogRJb3P";
1947
+ },
1948
+ {
1949
+ "name": "hawksightAuthority";
1950
+ "docs": [
1951
+ "Rebalancer which is hard coded to be a Hawksight rebalance wallet"
1952
+ ];
1953
+ "signer": true;
1954
+ },
1955
+ {
1956
+ "name": "position";
1957
+ "writable": true;
1958
+ },
1959
+ {
1960
+ "name": "lbPair";
1961
+ "writable": true;
1962
+ },
1963
+ {
1964
+ "name": "binArrayBitmapExtension";
1965
+ "address": "LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo";
1966
+ },
1967
+ {
1968
+ "name": "userTokenX";
1969
+ "writable": true;
1970
+ },
1971
+ {
1972
+ "name": "userTokenY";
1973
+ "writable": true;
1974
+ },
1975
+ {
1976
+ "name": "reserveX";
1977
+ "writable": true;
1978
+ },
1979
+ {
1980
+ "name": "reserveY";
1981
+ "writable": true;
1982
+ },
1983
+ {
1984
+ "name": "tokenXMint";
1985
+ },
1986
+ {
1987
+ "name": "tokenYMint";
1988
+ },
1989
+ {
1990
+ "name": "tokenXProgram";
1991
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1992
+ },
1993
+ {
1994
+ "name": "tokenYProgram";
1995
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1996
+ },
1997
+ {
1998
+ "name": "binArrayLower";
1999
+ "writable": true;
2000
+ },
2001
+ {
2002
+ "name": "binArrayUpper";
2003
+ "writable": true;
2004
+ },
2005
+ {
2006
+ "name": "eventAuthority";
2007
+ },
2008
+ {
2009
+ "name": "meteoraDlmmProgram";
2010
+ "address": "LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo";
2011
+ },
2012
+ {
2013
+ "name": "ownerFeeX";
2014
+ "writable": true;
2015
+ },
2016
+ {
2017
+ "name": "ownerFeeY";
2018
+ "writable": true;
2019
+ }
2020
+ ];
2021
+ "args": [
2022
+ {
2023
+ "name": "param";
2024
+ "type": "bytes";
2025
+ },
2026
+ {
2027
+ "name": "minBinId";
2028
+ "type": "i32";
2029
+ },
2030
+ {
2031
+ "name": "maxBinId";
2032
+ "type": "i32";
2033
+ }
2034
+ ];
2035
+ },
1871
2036
  {
1872
2037
  "name": "meteoraDlmmClaimFee";
1873
2038
  "docs": [
@@ -3060,173 +3225,6 @@ export type IyfExtension = {
3060
3225
  "docs": [
3061
3226
  "Rebalancer which is hard coded to be a Hawksight rebalance wallet"
3062
3227
  ];
3063
- "writable": true;
3064
- "signer": true;
3065
- },
3066
- {
3067
- "name": "position";
3068
- "writable": true;
3069
- },
3070
- {
3071
- "name": "lbPair";
3072
- "writable": true;
3073
- },
3074
- {
3075
- "name": "binArrayBitmapExtension";
3076
- "address": "LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo";
3077
- },
3078
- {
3079
- "name": "userTokenX";
3080
- "writable": true;
3081
- },
3082
- {
3083
- "name": "userTokenY";
3084
- "writable": true;
3085
- },
3086
- {
3087
- "name": "reserveX";
3088
- "writable": true;
3089
- },
3090
- {
3091
- "name": "reserveY";
3092
- "writable": true;
3093
- },
3094
- {
3095
- "name": "tokenXMint";
3096
- },
3097
- {
3098
- "name": "tokenYMint";
3099
- },
3100
- {
3101
- "name": "tokenXProgram";
3102
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
3103
- },
3104
- {
3105
- "name": "tokenYProgram";
3106
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
3107
- },
3108
- {
3109
- "name": "binArrayLower";
3110
- "writable": true;
3111
- },
3112
- {
3113
- "name": "binArrayUpper";
3114
- "writable": true;
3115
- },
3116
- {
3117
- "name": "eventAuthority";
3118
- },
3119
- {
3120
- "name": "meteoraDlmmProgram";
3121
- "address": "LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo";
3122
- },
3123
- {
3124
- "name": "ownerFeeX";
3125
- "writable": true;
3126
- },
3127
- {
3128
- "name": "ownerFeeY";
3129
- "writable": true;
3130
- }
3131
- ];
3132
- "args": [
3133
- {
3134
- "name": "param";
3135
- "type": "bytes";
3136
- },
3137
- {
3138
- "name": "minBinId";
3139
- "type": "i32";
3140
- },
3141
- {
3142
- "name": "maxBinId";
3143
- "type": "i32";
3144
- }
3145
- ];
3146
- },
3147
- {
3148
- "name": "limitOrderClose";
3149
- "docs": [
3150
- "Meteora Limit Close Position with 20% fee"
3151
- ];
3152
- "discriminator": [
3153
- 250,
3154
- 111,
3155
- 129,
3156
- 110,
3157
- 248,
3158
- 232,
3159
- 87,
3160
- 161
3161
- ];
3162
- "accounts": [
3163
- {
3164
- "name": "farm";
3165
- "docs": [
3166
- "Hawksight multi-index farm"
3167
- ];
3168
- },
3169
- {
3170
- "name": "userPda";
3171
- "docs": [
3172
- "Hawksight user pda"
3173
- ];
3174
- "pda": {
3175
- "seeds": [
3176
- {
3177
- "kind": "const";
3178
- "value": [
3179
- 109,
3180
- 117,
3181
- 108,
3182
- 116,
3183
- 105,
3184
- 45,
3185
- 117,
3186
- 115,
3187
- 101,
3188
- 114
3189
- ];
3190
- },
3191
- {
3192
- "kind": "account";
3193
- "path": "farm";
3194
- },
3195
- {
3196
- "kind": "account";
3197
- "path": "authority";
3198
- }
3199
- ];
3200
- "program": {
3201
- "kind": "account";
3202
- "path": "iyfProgram";
3203
- };
3204
- };
3205
- },
3206
- {
3207
- "name": "authority";
3208
- "docs": [
3209
- "User wallet",
3210
- "* No need to check"
3211
- ];
3212
- "writable": true;
3213
- "relations": [
3214
- "userPda"
3215
- ];
3216
- },
3217
- {
3218
- "name": "iyfProgram";
3219
- "docs": [
3220
- "Main index yield farming program"
3221
- ];
3222
- "address": "FqGg2Y1FNxMiGd51Q6UETixQWkF5fB92MysbYogRJb3P";
3223
- },
3224
- {
3225
- "name": "hawksightAuthority";
3226
- "docs": [
3227
- "Rebalancer which is hard coded to be a Hawksight rebalance wallet"
3228
- ];
3229
- "writable": true;
3230
3228
  "signer": true;
3231
3229
  },
3232
3230
  {
@@ -7255,27 +7253,6 @@ export type IyfExtension = {
7255
7253
  "Token A to deposit to liquidity"
7256
7254
  ];
7257
7255
  "writable": true;
7258
- "pda": {
7259
- "seeds": [
7260
- {
7261
- "kind": "account";
7262
- "path": "userPda";
7263
- },
7264
- {
7265
- "kind": "account";
7266
- "path": "tokenProgram";
7267
- },
7268
- {
7269
- "kind": "account";
7270
- "path": "token_vault_a.mint";
7271
- "account": "tokenAccount";
7272
- }
7273
- ];
7274
- "program": {
7275
- "kind": "account";
7276
- "path": "associatedTokenProgram";
7277
- };
7278
- };
7279
7256
  },
7280
7257
  {
7281
7258
  "name": "tokenOwnerAccountB";
@@ -7283,27 +7260,6 @@ export type IyfExtension = {
7283
7260
  "Token B to deposit to liquidity"
7284
7261
  ];
7285
7262
  "writable": true;
7286
- "pda": {
7287
- "seeds": [
7288
- {
7289
- "kind": "account";
7290
- "path": "userPda";
7291
- },
7292
- {
7293
- "kind": "account";
7294
- "path": "tokenProgram";
7295
- },
7296
- {
7297
- "kind": "account";
7298
- "path": "token_vault_b.mint";
7299
- "account": "tokenAccount";
7300
- }
7301
- ];
7302
- "program": {
7303
- "kind": "account";
7304
- "path": "associatedTokenProgram";
7305
- };
7306
- };
7307
7263
  },
7308
7264
  {
7309
7265
  "name": "tokenVaultA";
@@ -8395,7 +8351,7 @@ export type IyfExtension = {
8395
8351
  {
8396
8352
  "name": "rebalanceAuthority";
8397
8353
  "docs": [
8398
- "Rebalancer which is hard coded to be a Hawksight rebalance wallet"
8354
+ "Rebalancer which is hard coded to be a Hawksight rebalance wallet or the user PDA's owner"
8399
8355
  ];
8400
8356
  "writable": true;
8401
8357
  "signer": true;