@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
@@ -6463,6 +6463,279 @@ export type IndexYieldFarming = {
6463
6463
  }
6464
6464
  ];
6465
6465
  "args": [];
6466
+ },
6467
+ {
6468
+ "name": "raydiumDynamicCpi";
6469
+ "accounts": [
6470
+ {
6471
+ "name": "raydiumProgram";
6472
+ "isMut": false;
6473
+ "isSigner": false;
6474
+ },
6475
+ {
6476
+ "name": "userPda";
6477
+ "isMut": false;
6478
+ "isSigner": false;
6479
+ "pda": {
6480
+ "seeds": [
6481
+ {
6482
+ "kind": "const";
6483
+ "type": "string";
6484
+ "value": "multi-user";
6485
+ },
6486
+ {
6487
+ "kind": "account";
6488
+ "type": "publicKey";
6489
+ "account": "UserAccountMulti";
6490
+ "path": "user_pda.farm";
6491
+ },
6492
+ {
6493
+ "kind": "account";
6494
+ "type": "publicKey";
6495
+ "account": "UserAccountMulti";
6496
+ "path": "user_pda.authority";
6497
+ }
6498
+ ];
6499
+ };
6500
+ },
6501
+ {
6502
+ "name": "authority";
6503
+ "isMut": false;
6504
+ "isSigner": true;
6505
+ },
6506
+ {
6507
+ "name": "nftOwner";
6508
+ "isMut": true;
6509
+ "isSigner": false;
6510
+ "pda": {
6511
+ "seeds": [
6512
+ {
6513
+ "kind": "const";
6514
+ "type": "string";
6515
+ "value": "user-pda-lamport";
6516
+ },
6517
+ {
6518
+ "kind": "account";
6519
+ "type": "publicKey";
6520
+ "account": "UserAccountMulti";
6521
+ "path": "user_pda";
6522
+ }
6523
+ ];
6524
+ };
6525
+ }
6526
+ ];
6527
+ "args": [
6528
+ {
6529
+ "name": "data";
6530
+ "type": "bytes";
6531
+ }
6532
+ ];
6533
+ },
6534
+ {
6535
+ "name": "depositMultipleLamportPdaToken";
6536
+ "accounts": [
6537
+ {
6538
+ "name": "userPda";
6539
+ "isMut": true;
6540
+ "isSigner": false;
6541
+ "pda": {
6542
+ "seeds": [
6543
+ {
6544
+ "kind": "const";
6545
+ "type": "string";
6546
+ "value": "multi-user";
6547
+ },
6548
+ {
6549
+ "kind": "account";
6550
+ "type": "publicKey";
6551
+ "account": "UserAccountMulti";
6552
+ "path": "user_pda.farm";
6553
+ },
6554
+ {
6555
+ "kind": "account";
6556
+ "type": "publicKey";
6557
+ "path": "payer";
6558
+ }
6559
+ ];
6560
+ };
6561
+ },
6562
+ {
6563
+ "name": "userPdaLamport";
6564
+ "isMut": true;
6565
+ "isSigner": false;
6566
+ "pda": {
6567
+ "seeds": [
6568
+ {
6569
+ "kind": "const";
6570
+ "type": "string";
6571
+ "value": "user-pda-lamport";
6572
+ },
6573
+ {
6574
+ "kind": "account";
6575
+ "type": "publicKey";
6576
+ "account": "UserAccountMulti";
6577
+ "path": "user_pda";
6578
+ }
6579
+ ];
6580
+ };
6581
+ },
6582
+ {
6583
+ "name": "payer";
6584
+ "isMut": false;
6585
+ "isSigner": true;
6586
+ },
6587
+ {
6588
+ "name": "hsFeeOwner";
6589
+ "isMut": false;
6590
+ "isSigner": false;
6591
+ },
6592
+ {
6593
+ "name": "associatedTokenProgram";
6594
+ "isMut": false;
6595
+ "isSigner": false;
6596
+ },
6597
+ {
6598
+ "name": "tokenProgram";
6599
+ "isMut": false;
6600
+ "isSigner": false;
6601
+ },
6602
+ {
6603
+ "name": "systemProgram";
6604
+ "isMut": false;
6605
+ "isSigner": false;
6606
+ }
6607
+ ];
6608
+ "args": [
6609
+ {
6610
+ "name": "amounts";
6611
+ "type": {
6612
+ "vec": "u64";
6613
+ };
6614
+ }
6615
+ ];
6616
+ },
6617
+ {
6618
+ "name": "withdrawMultipleLamportPdaToken";
6619
+ "accounts": [
6620
+ {
6621
+ "name": "userPda";
6622
+ "isMut": true;
6623
+ "isSigner": false;
6624
+ "pda": {
6625
+ "seeds": [
6626
+ {
6627
+ "kind": "const";
6628
+ "type": "string";
6629
+ "value": "multi-user";
6630
+ },
6631
+ {
6632
+ "kind": "account";
6633
+ "type": "publicKey";
6634
+ "account": "UserAccountMulti";
6635
+ "path": "user_pda.farm";
6636
+ },
6637
+ {
6638
+ "kind": "account";
6639
+ "type": "publicKey";
6640
+ "path": "payer";
6641
+ }
6642
+ ];
6643
+ };
6644
+ },
6645
+ {
6646
+ "name": "userPdaLamport";
6647
+ "isMut": true;
6648
+ "isSigner": false;
6649
+ "pda": {
6650
+ "seeds": [
6651
+ {
6652
+ "kind": "const";
6653
+ "type": "string";
6654
+ "value": "user-pda-lamport";
6655
+ },
6656
+ {
6657
+ "kind": "account";
6658
+ "type": "publicKey";
6659
+ "account": "UserAccountMulti";
6660
+ "path": "user_pda";
6661
+ }
6662
+ ];
6663
+ };
6664
+ },
6665
+ {
6666
+ "name": "payer";
6667
+ "isMut": false;
6668
+ "isSigner": true;
6669
+ },
6670
+ {
6671
+ "name": "hsFeeOwner";
6672
+ "isMut": false;
6673
+ "isSigner": false;
6674
+ },
6675
+ {
6676
+ "name": "associatedTokenProgram";
6677
+ "isMut": false;
6678
+ "isSigner": false;
6679
+ },
6680
+ {
6681
+ "name": "tokenProgram";
6682
+ "isMut": false;
6683
+ "isSigner": false;
6684
+ },
6685
+ {
6686
+ "name": "systemProgram";
6687
+ "isMut": false;
6688
+ "isSigner": false;
6689
+ }
6690
+ ];
6691
+ "args": [];
6692
+ },
6693
+ {
6694
+ "name": "iyfExtensionExecuteV2";
6695
+ "accounts": [
6696
+ {
6697
+ "name": "userPda";
6698
+ "isMut": false;
6699
+ "isSigner": false;
6700
+ "pda": {
6701
+ "seeds": [
6702
+ {
6703
+ "kind": "const";
6704
+ "type": "string";
6705
+ "value": "multi-user";
6706
+ },
6707
+ {
6708
+ "kind": "account";
6709
+ "type": "publicKey";
6710
+ "account": "UserAccountMulti";
6711
+ "path": "user_pda.farm";
6712
+ },
6713
+ {
6714
+ "kind": "account";
6715
+ "type": "publicKey";
6716
+ "account": "UserAccountMulti";
6717
+ "path": "user_pda.authority";
6718
+ }
6719
+ ];
6720
+ };
6721
+ },
6722
+ {
6723
+ "name": "authority";
6724
+ "isMut": false;
6725
+ "isSigner": true;
6726
+ },
6727
+ {
6728
+ "name": "iyfExtensionProgram";
6729
+ "isMut": false;
6730
+ "isSigner": false;
6731
+ }
6732
+ ];
6733
+ "args": [
6734
+ {
6735
+ "name": "data";
6736
+ "type": "bytes";
6737
+ }
6738
+ ];
6466
6739
  }
6467
6740
  ];
6468
6741
  "accounts": [
@@ -7072,6 +7345,21 @@ export type IndexYieldFarming = {
7072
7345
  "code": 6030;
7073
7346
  "name": "InstructionDiscriminatorNotExpected";
7074
7347
  "msg": "Instruction discriminator is not the expected one";
7348
+ },
7349
+ {
7350
+ "code": 6031;
7351
+ "name": "RaydiumInstructionNotOnWhitelist";
7352
+ "msg": "Raydium instruction not on whitelist";
7353
+ },
7354
+ {
7355
+ "code": 6032;
7356
+ "name": "MustBeHawksightAuthorityOrUserWallet";
7357
+ "msg": "Must be signed by hawksight authority or user wallet";
7358
+ },
7359
+ {
7360
+ "code": 6033;
7361
+ "name": "MustBeUserWallet";
7362
+ "msg": "Must be signed by user wallet for this instruction";
7075
7363
  }
7076
7364
  ];
7077
7365
  };