@hawksightco/hawk-sdk 1.1.20 → 1.1.22

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,3 +1,4 @@
1
+ import { IyfExtensionIxGenerator } from "../ixGenerator/IyfExtensionIxGenerator";
1
2
  import { IyfMainIxGenerator } from "../ixGenerator/IyfMainIxGenerator";
2
3
  import { MeteoraDlmmIxGenerator } from "../ixGenerator/MeteoraDlmmIxGenerator";
3
4
  /**
@@ -11,6 +12,10 @@ export declare class SimpleIxGenerator {
11
12
  * IYF Main Instruction Generator
12
13
  */
13
14
  iyfMain: IyfMainIxGenerator;
15
+ /**
16
+ * IYF Main Instruction Generator
17
+ */
18
+ iyfExtension: IyfExtensionIxGenerator;
14
19
  /**
15
20
  * Meteora Ix Generator
16
21
  */
@@ -1 +1 @@
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
+ {"version":3,"file":"SimpleIxGenerator.d.ts","sourceRoot":"","sources":["../../../src/classes/SimpleIxGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,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,YAAY,EAAE,uBAAuB,CAA6C;IAEzF;;OAEG;IACI,WAAW,EAAE,sBAAsB,CAA4C;CACvF"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SimpleIxGenerator = void 0;
4
+ const IyfExtensionIxGenerator_1 = require("../ixGenerator/IyfExtensionIxGenerator");
4
5
  const IyfMainIxGenerator_1 = require("../ixGenerator/IyfMainIxGenerator");
5
6
  const MeteoraDlmmIxGenerator_1 = require("../ixGenerator/MeteoraDlmmIxGenerator");
6
7
  /**
@@ -15,6 +16,10 @@ class SimpleIxGenerator {
15
16
  * IYF Main Instruction Generator
16
17
  */
17
18
  this.iyfMain = new IyfMainIxGenerator_1.IyfMainIxGenerator();
19
+ /**
20
+ * IYF Main Instruction Generator
21
+ */
22
+ this.iyfExtension = new IyfExtensionIxGenerator_1.IyfExtensionIxGenerator(this.iyfMain);
18
23
  /**
19
24
  * Meteora Ix Generator
20
25
  */
@@ -6939,63 +6939,11 @@ export type IyfExtension = {
6939
6939
  "name": "userTokenX";
6940
6940
  "isMut": true;
6941
6941
  "isSigner": false;
6942
- "pda": {
6943
- "seeds": [
6944
- {
6945
- "kind": "const";
6946
- "type": "string";
6947
- "value": "storage-token";
6948
- },
6949
- {
6950
- "kind": "account";
6951
- "type": "publicKey";
6952
- "account": "Mint";
6953
- "path": "token_x_mint";
6954
- },
6955
- {
6956
- "kind": "account";
6957
- "type": "publicKey";
6958
- "account": "UserAccountMulti";
6959
- "path": "user_pda";
6960
- }
6961
- ];
6962
- "programId": {
6963
- "kind": "account";
6964
- "type": "publicKey";
6965
- "path": "iyf_program";
6966
- };
6967
- };
6968
6942
  },
6969
6943
  {
6970
6944
  "name": "userTokenY";
6971
6945
  "isMut": true;
6972
6946
  "isSigner": false;
6973
- "pda": {
6974
- "seeds": [
6975
- {
6976
- "kind": "const";
6977
- "type": "string";
6978
- "value": "storage-token";
6979
- },
6980
- {
6981
- "kind": "account";
6982
- "type": "publicKey";
6983
- "account": "Mint";
6984
- "path": "token_y_mint";
6985
- },
6986
- {
6987
- "kind": "account";
6988
- "type": "publicKey";
6989
- "account": "UserAccountMulti";
6990
- "path": "user_pda";
6991
- }
6992
- ];
6993
- "programId": {
6994
- "kind": "account";
6995
- "type": "publicKey";
6996
- "path": "iyf_program";
6997
- };
6998
- };
6999
6947
  },
7000
6948
  {
7001
6949
  "name": "reserveX";
@@ -7072,6 +7020,139 @@ export type IyfExtension = {
7072
7020
  "type": "i32";
7073
7021
  }
7074
7022
  ];
7023
+ },
7024
+ {
7025
+ "name": "moveToken";
7026
+ "accounts": [
7027
+ {
7028
+ "name": "farm";
7029
+ "isMut": false;
7030
+ "isSigner": false;
7031
+ },
7032
+ {
7033
+ "name": "userPda";
7034
+ "isMut": false;
7035
+ "isSigner": false;
7036
+ "pda": {
7037
+ "seeds": [
7038
+ {
7039
+ "kind": "const";
7040
+ "type": "string";
7041
+ "value": "multi-user";
7042
+ },
7043
+ {
7044
+ "kind": "account";
7045
+ "type": "publicKey";
7046
+ "account": "FarmAccountMulti";
7047
+ "path": "farm";
7048
+ },
7049
+ {
7050
+ "kind": "account";
7051
+ "type": "publicKey";
7052
+ "path": "authority";
7053
+ }
7054
+ ];
7055
+ "programId": {
7056
+ "kind": "account";
7057
+ "type": "publicKey";
7058
+ "path": "iyf_program";
7059
+ };
7060
+ };
7061
+ },
7062
+ {
7063
+ "name": "authority";
7064
+ "isMut": true;
7065
+ "isSigner": false;
7066
+ },
7067
+ {
7068
+ "name": "iyfProgram";
7069
+ "isMut": false;
7070
+ "isSigner": false;
7071
+ },
7072
+ {
7073
+ "name": "hawksightAuthority";
7074
+ "isMut": true;
7075
+ "isSigner": true;
7076
+ },
7077
+ {
7078
+ "name": "sourceToken";
7079
+ "isMut": true;
7080
+ "isSigner": false;
7081
+ "pda": {
7082
+ "seeds": [
7083
+ {
7084
+ "kind": "account";
7085
+ "type": "publicKey";
7086
+ "account": "UserAccountMulti";
7087
+ "path": "user_pda";
7088
+ },
7089
+ {
7090
+ "kind": "account";
7091
+ "type": "publicKey";
7092
+ "path": "token_program";
7093
+ },
7094
+ {
7095
+ "kind": "account";
7096
+ "type": "publicKey";
7097
+ "account": "TokenAccount";
7098
+ "path": "destination_token.mint";
7099
+ }
7100
+ ];
7101
+ "programId": {
7102
+ "kind": "account";
7103
+ "type": "publicKey";
7104
+ "path": "associated_token_program";
7105
+ };
7106
+ };
7107
+ },
7108
+ {
7109
+ "name": "destinationToken";
7110
+ "isMut": true;
7111
+ "isSigner": false;
7112
+ "pda": {
7113
+ "seeds": [
7114
+ {
7115
+ "kind": "const";
7116
+ "type": "string";
7117
+ "value": "storage-token";
7118
+ },
7119
+ {
7120
+ "kind": "account";
7121
+ "type": "publicKey";
7122
+ "account": "TokenAccount";
7123
+ "path": "source_token.mint";
7124
+ },
7125
+ {
7126
+ "kind": "account";
7127
+ "type": "publicKey";
7128
+ "account": "UserAccountMulti";
7129
+ "path": "user_pda";
7130
+ }
7131
+ ];
7132
+ "programId": {
7133
+ "kind": "account";
7134
+ "type": "publicKey";
7135
+ "path": "iyf_program";
7136
+ };
7137
+ };
7138
+ },
7139
+ {
7140
+ "name": "tokenProgram";
7141
+ "isMut": false;
7142
+ "isSigner": false;
7143
+ },
7144
+ {
7145
+ "name": "associatedTokenProgram";
7146
+ "isMut": false;
7147
+ "isSigner": false;
7148
+ }
7149
+ ];
7150
+ "args": [
7151
+ {
7152
+ "name": "amount";
7153
+ "type": "u64";
7154
+ }
7155
+ ];
7075
7156
  }
7076
7157
  ];
7077
7158
  "types": [
@@ -7217,10 +7298,7 @@ export type IyfExtension = {
7217
7298
  {
7218
7299
  "name": "padding";
7219
7300
  "type": {
7220
- "array": [
7221
- "u8",
7222
- 285
7223
- ];
7301
+ "defined": "UserAccountMultiPadding";
7224
7302
  };
7225
7303
  }
7226
7304
  ];