flash-sdk 11.11.4 → 11.11.7-alpha.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.
package/dist/utils/rpc.js CHANGED
@@ -24,8 +24,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  });
25
25
  };
26
26
  var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
28
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
29
  function verb(n) { return function (v) { return step([n, v]); }; }
30
30
  function step(op) {
31
31
  if (f) throw new TypeError("Generator is already executing.");
@@ -63,7 +63,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
63
63
  return (mod && mod.__esModule) ? mod : { "default": mod };
64
64
  };
65
65
  Object.defineProperty(exports, "__esModule", { value: true });
66
- exports.TransactionFailError = exports.createComputeBudgetIx = exports.confirmTransactionV3 = exports.sendTransactionV3 = exports.confirmTransactionV2 = exports.sendTransactionV2 = exports.confirmTransaction = exports.sendTransaction = void 0;
66
+ exports.TransactionFailError = exports.createComputeBudgetIx = void 0;
67
+ exports.sendTransaction = sendTransaction;
68
+ exports.confirmTransaction = confirmTransaction;
69
+ exports.sendTransactionV2 = sendTransactionV2;
70
+ exports.confirmTransactionV2 = confirmTransactionV2;
71
+ exports.sendTransactionV3 = sendTransactionV3;
72
+ exports.confirmTransactionV3 = confirmTransactionV3;
67
73
  var nodewallet_1 = __importDefault(require("@coral-xyz/anchor/dist/cjs/nodewallet"));
68
74
  var bytes_1 = require("@coral-xyz/anchor/dist/cjs/utils/bytes");
69
75
  var web3_js_1 = require("@solana/web3.js");
@@ -118,7 +124,6 @@ function sendTransaction(provider_1, ixs_1) {
118
124
  });
119
125
  });
120
126
  }
121
- exports.sendTransaction = sendTransaction;
122
127
  function confirmTransaction(provider_1, signature_1) {
123
128
  return __awaiter(this, arguments, void 0, function (provider, signature, opts) {
124
129
  var connection, latestBlockhash, _a, txConfirmationCommitment, status;
@@ -165,7 +170,6 @@ function confirmTransaction(provider_1, signature_1) {
165
170
  });
166
171
  });
167
172
  }
168
- exports.confirmTransaction = confirmTransaction;
169
173
  function sendTransactionV2(provider_1, ixs_1) {
170
174
  return __awaiter(this, arguments, void 0, function (provider, ixs, opts) {
171
175
  var connection, latestBlockhash, _a, payer, message, vtx, signature;
@@ -217,7 +221,6 @@ function sendTransactionV2(provider_1, ixs_1) {
217
221
  });
218
222
  });
219
223
  }
220
- exports.sendTransactionV2 = sendTransactionV2;
221
224
  var sleep = function (ms) { return new Promise(function (r) { return setTimeout(r, ms); }); };
222
225
  function confirmTransactionV2(provider_1, versionedTransaction_1, signature_1) {
223
226
  return __awaiter(this, arguments, void 0, function (provider, versionedTransaction, signature, opts) {
@@ -279,7 +282,6 @@ function confirmTransactionV2(provider_1, versionedTransaction_1, signature_1) {
279
282
  });
280
283
  });
281
284
  }
282
- exports.confirmTransactionV2 = confirmTransactionV2;
283
285
  function sendTransactionV3(provider_1, ixs_1) {
284
286
  return __awaiter(this, arguments, void 0, function (provider, ixs, opts) {
285
287
  var connection, latestBlockhash, _a, payer, message, vtx, tx, signature;
@@ -332,7 +334,6 @@ function sendTransactionV3(provider_1, ixs_1) {
332
334
  });
333
335
  });
334
336
  }
335
- exports.sendTransactionV3 = sendTransactionV3;
336
337
  function confirmTransactionV3(provider_1, versionedTransaction_1, signature_1) {
337
338
  return __awaiter(this, arguments, void 0, function (provider, versionedTransaction, signature, opts) {
338
339
  var connection, status, blockhashResponse, lastValidBlockHeight, blockheight, signatureStatuses, result, x;
@@ -399,7 +400,6 @@ function confirmTransactionV3(provider_1, versionedTransaction_1, signature_1) {
399
400
  });
400
401
  });
401
402
  }
402
- exports.confirmTransactionV3 = confirmTransactionV3;
403
403
  var createComputeBudgetIx = function (microLamports) {
404
404
  var computeBudgetIx = web3_js_1.ComputeBudgetProgram.setComputeUnitPrice({
405
405
  microLamports: microLamports,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flash-sdk",
3
- "version": "11.11.4",
3
+ "version": "11.11.7-alpha.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -17,11 +17,12 @@
17
17
  "scripts": {
18
18
  "prebuild": "rimraf dist ",
19
19
  "build": "tsc",
20
+ "generate-types": "ts-node scripts/generate-types.ts",
20
21
  "pub": "git add . && git commit -m \"Updates\" && npm version patch && npm run build && npm publish",
21
22
  "doc": "yarn typedoc --out docs src"
22
23
  },
23
24
  "dependencies": {
24
- "@coral-xyz/anchor": "=0.27.0",
25
+ "@coral-xyz/anchor": "^0.32.1",
25
26
  "@pythnetwork/price-service-client": "^1.8.2",
26
27
  "@solana/spl-token": "^0.4.13",
27
28
  "@solana/web3.js": "=1.98.2",