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