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