@hawksightco/hawk-sdk 1.1.11 → 1.1.14

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Atomicity.d.ts","sourceRoot":"","sources":["../../../src/classes/Atomicity.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,SAAU,SAAQ,uBAAuB;IAclD,OAAO,CAAC,WAAW;IAZrB;;OAEG;IACH,OAAO,CAAC,UAAU,CAAC,CAAiB;gBAGlC,oBAAoB,EAAE,IAAI,CAAC,SAAS,EAAE,EACtC,YAAY,EAAE,IAAI,CAAC,sBAAsB,EAAE,EAC3C,KAAK,EAAE,IAAI,CAAC,OAAO,EACnB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,OAAO,4BAAqB,EAC5B,WAAW,EAAE,WAAW,EAChB,WAAW,EAAE,iBAAiB;IAYxC;;OAEG;IACH,aAAa,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS;IAIxC;;;OAGG;IACH,OAAO,CAAC,aAAa;IAOrB;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,CAAC;IA4B5D;;;;;;OAMG;cACa,mBAAmB,CAAC,aAAa,EAAE,IAAI,CAAC,sBAAsB,EAAE,EAAE,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,CAAC;CAiDxJ"}
1
+ {"version":3,"file":"Atomicity.d.ts","sourceRoot":"","sources":["../../../src/classes/Atomicity.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,SAAU,SAAQ,uBAAuB;IAclD,OAAO,CAAC,WAAW;IAZrB;;OAEG;IACH,OAAO,CAAC,UAAU,CAAC,CAAiB;gBAGlC,oBAAoB,EAAE,IAAI,CAAC,SAAS,EAAE,EACtC,YAAY,EAAE,IAAI,CAAC,sBAAsB,EAAE,EAC3C,KAAK,EAAE,IAAI,CAAC,OAAO,EACnB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,OAAO,4BAAqB,EAC5B,WAAW,EAAE,WAAW,EAChB,WAAW,EAAE,iBAAiB;IAYxC;;OAEG;IACH,aAAa,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS;IAIxC;;;OAGG;IACH,OAAO,CAAC,aAAa;IAIrB;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,CAAC;IA4B5D;;;;;;OAMG;cACa,mBAAmB,CAAC,aAAa,EAAE,IAAI,CAAC,sBAAsB,EAAE,EAAE,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,CAAC;CAiDxJ"}
@@ -28,10 +28,7 @@ class Atomicity extends TransactionBatchExecute_1.TransactionBatchExecute {
28
28
  * @param ix
29
29
  */
30
30
  isAtomicityIx(ix) {
31
- if (ix.data.length >= 8) {
32
- return (0, functions_1.sighashMatch)(ix.data, "setTransactionSlot") || (0, functions_1.sighashMatch)(ix.data, "verifyTransactionSlot");
33
- }
34
- return false;
31
+ return ix.data.length >= 8 && (0, functions_1.sighashMatch)(ix.data, "setTransactionSlot") || (0, functions_1.sighashMatch)(ix.data, "verifyTransactionSlot");
35
32
  }
36
33
  /**
37
34
  * Builds a batch of executable transaction instructions
@@ -78,9 +75,9 @@ class Atomicity extends TransactionBatchExecute_1.TransactionBatchExecute {
78
75
  throw new Error(`Atomicity.userWallet is not set`);
79
76
  }
80
77
  // Generate set transaction slot instruction
81
- const setTransactionSlotIx = yield this.ixGenerator.setTransactionSlot(this.connection, { userWallet: this.userWallet });
78
+ const setTransactionSlotIx = yield this.ixGenerator.iyfMain.setTransactionSlot(this.connection, { userWallet: this.userWallet });
82
79
  // Generate verify transaction slot instruction
83
- const verifyTransactionSlotIx = yield this.ixGenerator.verifyTransactionSlot(this.connection, { userWallet: this.userWallet });
80
+ const verifyTransactionSlotIx = yield this.ixGenerator.iyfMain.verifyTransactionSlot(this.connection, { userWallet: this.userWallet });
84
81
  // Run simulation
85
82
  let batch = [];
86
83
  let result = [];
@@ -41,7 +41,7 @@ export declare class HawkAPI {
41
41
  /** Search module (token search only for now...) */
42
42
  readonly search: Search;
43
43
  /** Simple instruction generator */
44
- readonly simpleIxGenerator: SimpleIxGenerator;
44
+ readonly ix: SimpleIxGenerator;
45
45
  /** Jupiter alts */
46
46
  readonly jupAlts: JupiterAlts;
47
47
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"HawkAPI.d.ts","sourceRoot":"","sources":["../../../src/classes/HawkAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MA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0FAA0F;IAC1F,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B,mFAAmF;IACnF,OAAO,CAAC,YAAY,CAAc;IAClC,IAAI,WAAW,gBAAgC;IAE/C,kGAAkG;IAClG,SAAgB,qBAAqB,EAAE,sBAAsB,CAAC;IAE9D,mDAAmD;IACnD,SAAgB,MAAM,EAAE,MAAM,CAAC;IAE/B,mCAAmC;IACnC,SAAgB,EAAE,EAAE,iBAAiB,CAAC;IAEtC,mBAAmB;IACnB,SAAgB,OAAO,EAAE,WAAW,CAAC;IAErC;;;OAGG;gBAEkB,GAAG,GAAE,MAAoC,EACzC,OAAO,CAAC,4BAAgB;IAyB7C;;;;OAIG;IACH,mBAAmB,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,cAAc,KAAK,WAAW;IAI9F;;;;OAIG;IACH,YAAY,CAAC,EAAC,oBAAoB,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAC,EAAE,6BAA6B;IAW5G;;;;OAIG;IACH,SAAS,CAAC,EAAC,oBAAoB,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAC,EAAE,6BAA6B;CAW1G"}
@@ -41,7 +41,7 @@ class HawkAPI {
41
41
  this._txGenerator = new TxGenerator_1.TxGenerator(client, this.generalUtility);
42
42
  this.txGeneratorAutomation = new TxGeneratorAutomations_1.TxGeneratorAutomations(client, this.generalUtility);
43
43
  this.search = new Search_1.Search(url);
44
- this.simpleIxGenerator = new SimpleIxGenerator_1.SimpleIxGenerator();
44
+ this.ix = new SimpleIxGenerator_1.SimpleIxGenerator();
45
45
  this.jupAlts = new JupiterAlts_1.JupiterAlts();
46
46
  // Load create tx metadata module
47
47
  if (this.options === undefined || !this.options.disableTxMetadataLoad) {
@@ -74,7 +74,7 @@ class HawkAPI {
74
74
  * @param param
75
75
  */
76
76
  atomicity({ lookupTableAddresses, instructions, payer, connection, signers }) {
77
- return new Atomicity_1.Atomicity(lookupTableAddresses, instructions, payer, connection, signers, this.jupAlts, this.simpleIxGenerator);
77
+ return new Atomicity_1.Atomicity(lookupTableAddresses, instructions, payer, connection, signers, this.jupAlts, this.ix);
78
78
  }
79
79
  }
80
80
  exports.HawkAPI = HawkAPI;
@@ -1,6 +1,5 @@
1
- /// <reference types="@meteora-ag/dlmm/node_modules/@solana/web3.js" />
2
- import * as web3 from "@solana/web3.js";
3
- import { AtomicityContextParams } from "../hawksight";
1
+ import { IyfMainIxGenerator } from "../ixGenerator/IyfMainIxGenerator";
2
+ import { MeteoraDlmmIxGenerator } from "../ixGenerator/MeteoraDlmmIxGenerator";
4
3
  /**
5
4
  * The SimpleIxGenerator class is a general-purpose utility for generating single
6
5
  * transaction instructions for simple tasks on the Solana blockchain. It offers
@@ -9,22 +8,12 @@ import { AtomicityContextParams } from "../hawksight";
9
8
  */
10
9
  export declare class SimpleIxGenerator {
11
10
  /**
12
- * Generates a transaction instruction that sets the current blockchain clock
13
- * to the user's PDA (Program Derived Address) account.
14
- *
15
- * @param connection - A Solana web3.js Connection object for interacting with the blockchain.
16
- * @param params - AtomicityContextParams containing the context and parameters for setting the transaction slot.
17
- * @returns A Promise that resolves to a TransactionInstruction object for setting the current clock in the PDA.
11
+ * IYF Main Instruction Generator
18
12
  */
19
- setTransactionSlot(connection: web3.Connection, params: AtomicityContextParams): Promise<web3.TransactionInstruction>;
13
+ iyfMain: IyfMainIxGenerator;
20
14
  /**
21
- * Generates a transaction instruction that verifies whether the current blockchain
22
- * clock matches the value that has been previously set in the user's PDA (Program Derived Address) account.
23
- *
24
- * @param connection - A Solana web3.js Connection object for interacting with the blockchain.
25
- * @param params - AtomicityContextParams containing the context and parameters for verifying the transaction slot.
26
- * @returns A Promise that resolves to a TransactionInstruction object for verifying the clock in the PDA.
15
+ * Meteora Ix Generator
27
16
  */
28
- verifyTransactionSlot(connection: web3.Connection, params: AtomicityContextParams): Promise<web3.TransactionInstruction>;
17
+ meteoraDlmm: MeteoraDlmmIxGenerator;
29
18
  }
30
19
  //# sourceMappingURL=SimpleIxGenerator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleIxGenerator.d.ts","sourceRoot":"","sources":["../../../src/classes/SimpleIxGenerator.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AAGxC,OAAO,EAA6C,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEjG;;;;;GAKG;AACH,qBAAa,iBAAiB;IAE5B;;;;;;;OAOG;IACG,kBAAkB,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,sBAAsB,CAAC;IAQ3H;;;;;;;OAOG;IACG,qBAAqB,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,sBAAsB,CAAC;CAO/H"}
1
+ {"version":3,"file":"SimpleIxGenerator.d.ts","sourceRoot":"","sources":["../../../src/classes/SimpleIxGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAE/E;;;;;GAKG;AACH,qBAAa,iBAAiB;IAE5B;;OAEG;IACI,OAAO,EAAE,kBAAkB,CAA4B;IAE9D;;OAEG;IACI,WAAW,EAAE,sBAAsB,CAA4C;CACvF"}
@@ -1,17 +1,8 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.SimpleIxGenerator = void 0;
13
- const anchor_1 = require("../anchor");
14
- const hawksight_1 = require("../hawksight");
4
+ const IyfMainIxGenerator_1 = require("../ixGenerator/IyfMainIxGenerator");
5
+ const MeteoraDlmmIxGenerator_1 = require("../ixGenerator/MeteoraDlmmIxGenerator");
15
6
  /**
16
7
  * The SimpleIxGenerator class is a general-purpose utility for generating single
17
8
  * transaction instructions for simple tasks on the Solana blockchain. It offers
@@ -19,37 +10,15 @@ const hawksight_1 = require("../hawksight");
19
10
  * interacting with the user's PDA (Program Derived Address) account.
20
11
  */
21
12
  class SimpleIxGenerator {
22
- /**
23
- * Generates a transaction instruction that sets the current blockchain clock
24
- * to the user's PDA (Program Derived Address) account.
25
- *
26
- * @param connection - A Solana web3.js Connection object for interacting with the blockchain.
27
- * @param params - AtomicityContextParams containing the context and parameters for setting the transaction slot.
28
- * @returns A Promise that resolves to a TransactionInstruction object for setting the current clock in the PDA.
29
- */
30
- setTransactionSlot(connection, params) {
31
- return __awaiter(this, void 0, void 0, function* () {
32
- // Initialize anchor
33
- anchor_1.Anchor.initialize(connection);
34
- // Get set transaction slot instruction
35
- return yield (0, hawksight_1.setTransactionSlot)(params);
36
- });
37
- }
38
- /**
39
- * Generates a transaction instruction that verifies whether the current blockchain
40
- * clock matches the value that has been previously set in the user's PDA (Program Derived Address) account.
41
- *
42
- * @param connection - A Solana web3.js Connection object for interacting with the blockchain.
43
- * @param params - AtomicityContextParams containing the context and parameters for verifying the transaction slot.
44
- * @returns A Promise that resolves to a TransactionInstruction object for verifying the clock in the PDA.
45
- */
46
- verifyTransactionSlot(connection, params) {
47
- return __awaiter(this, void 0, void 0, function* () {
48
- // Initialize anchor
49
- anchor_1.Anchor.initialize(connection);
50
- // Get verify transaction slot instruction
51
- return yield (0, hawksight_1.verifyTransactionSlot)(params);
52
- });
13
+ constructor() {
14
+ /**
15
+ * IYF Main Instruction Generator
16
+ */
17
+ this.iyfMain = new IyfMainIxGenerator_1.IyfMainIxGenerator();
18
+ /**
19
+ * Meteora Ix Generator
20
+ */
21
+ this.meteoraDlmm = new MeteoraDlmmIxGenerator_1.MeteoraDlmmIxGenerator(this.iyfMain);
53
22
  }
54
23
  }
55
24
  exports.SimpleIxGenerator = SimpleIxGenerator;
@@ -1 +1 @@
1
- {"version":3,"file":"Transactions.d.ts","sourceRoot":"","sources":["../../../src/classes/Transactions.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AAgBxC,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,+BAA+B,EAC/B,cAAc,EACd,0BAA0B,EAC1B,gBAAgB,EAChB,eAAe,EACf,QAAQ,EAER,WAAW,EACX,6BAA6B,EAC7B,2BAA2B,EAC3B,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,2BAA2B,EAC5B,MAAM,UAAU,CAAC;AA2BlB,qBAAa,YAAY;IACvB;;;;;;OAMG;IACH,eAAe,CACb,UAAU,EAAE,IAAI,CAAC,SAAS,EAC1B,IAAI,GAAE,IAAI,CAAC,SAAqB,GAC/B,IAAI,CAAC,SAAS;IAIjB;;;;;;;OAOG;IACG,QAAQ,CAAC,EACb,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAqD/D;;;;;;;OAOG;IACG,+BAA+B,CAAC,EACpC,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,+BAA+B,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAkCtF;;;;;;;OAOG;IACG,0BAA0B,CAAC,EAC/B,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,0BAA0B,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAwBjF;;;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AAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAkDrH;;;;;;;OAOG;IACG,WAAW,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAuHzG;;;;;;;OAOG;IACG,YAAY,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAyF3G;;;;;;;OAOG;IACG,gBAAgB,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAqGpH;AAED,eAAO,MAAM,KAAK,cAAqB,CAAC"}
@@ -419,6 +419,7 @@ class Transactions {
419
419
  minBinId: params.binRange.lowerRange,
420
420
  strategyType: types_1.StrategyTypeMap[params.distribution],
421
421
  },
422
+ skipInputTokenCheck: true, // Rebalance should be independent of user wallet TA
422
423
  }, hsToMeteora_1.meteoraToHawksightAutomationIxs);
423
424
  // Sweep dust
424
425
  const sweepLiquidityBuilder = yield dlmmPool.addLiquidityByStrategy(params.userWallet, addresses_1.HS_AUTHORITY, {
@@ -6907,7 +6907,7 @@ export type IyfExtension = {
6907
6907
  },
6908
6908
  {
6909
6909
  "name": "authority";
6910
- "isMut": false;
6910
+ "isMut": true;
6911
6911
  "isSigner": false;
6912
6912
  },
6913
6913
  {
@@ -6959,6 +6959,11 @@ export type IyfExtension = {
6959
6959
  "path": "user_pda";
6960
6960
  }
6961
6961
  ];
6962
+ "programId": {
6963
+ "kind": "account";
6964
+ "type": "publicKey";
6965
+ "path": "iyf_program";
6966
+ };
6962
6967
  };
6963
6968
  },
6964
6969
  {
@@ -6985,6 +6990,11 @@ export type IyfExtension = {
6985
6990
  "path": "user_pda";
6986
6991
  }
6987
6992
  ];
6993
+ "programId": {
6994
+ "kind": "account";
6995
+ "type": "publicKey";
6996
+ "path": "iyf_program";
6997
+ };
6988
6998
  };
6989
6999
  },
6990
7000
  {
@@ -7182,11 +7192,35 @@ export type IyfExtension = {
7182
7192
  "type": "publicKey";
7183
7193
  },
7184
7194
  {
7185
- "name": "assetInfos";
7195
+ "name": "txLength";
7196
+ "type": "u8";
7197
+ },
7198
+ {
7199
+ "name": "slot";
7200
+ "type": "u64";
7201
+ },
7202
+ {
7203
+ "name": "atomicityHash";
7186
7204
  "type": {
7187
- "vec": {
7188
- "defined": "UserAssetInfo";
7189
- };
7205
+ "array": [
7206
+ "publicKey",
7207
+ 10
7208
+ ];
7209
+ };
7210
+ },
7211
+ {
7212
+ "name": "assetInfo";
7213
+ "type": {
7214
+ "defined": "UserAssetInfo";
7215
+ };
7216
+ },
7217
+ {
7218
+ "name": "padding";
7219
+ "type": {
7220
+ "array": [
7221
+ "u8",
7222
+ 285
7223
+ ];
7190
7224
  };
7191
7225
  }
7192
7226
  ];