xrpl 2.1.0 → 2.1.1

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.
@@ -3290,7 +3290,7 @@ eval("\nvar __createBinding = (this && this.__createBinding) || (Object.create ?
3290
3290
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
3291
3291
 
3292
3292
  "use strict";
3293
- eval("\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.submitAndWait = exports.submit = void 0;\nconst ripple_binary_codec_1 = __webpack_require__(/*! ripple-binary-codec */ \"../../node_modules/ripple-binary-codec/dist/index.js\");\nconst errors_1 = __webpack_require__(/*! ../errors */ \"./dist/npm/errors.js\");\nconst utils_1 = __webpack_require__(/*! ../utils */ \"./dist/npm/utils/index.js\");\nconst LEDGER_CLOSE_TIME = 4000;\nfunction sleep(ms) {\n return __awaiter(this, void 0, void 0, function* () {\n return new Promise((resolve) => {\n setTimeout(resolve, ms);\n });\n });\n}\nfunction submit(transaction, opts) {\n return __awaiter(this, void 0, void 0, function* () {\n const signedTx = yield getSignedTx(this, transaction, opts);\n return submitRequest(this, signedTx, opts === null || opts === void 0 ? void 0 : opts.failHard);\n });\n}\nexports.submit = submit;\nfunction submitAndWait(transaction, opts) {\n return __awaiter(this, void 0, void 0, function* () {\n const signedTx = yield getSignedTx(this, transaction, opts);\n if (!hasLastLedgerSequence(signedTx)) {\n throw new errors_1.ValidationError('Transaction must contain a LastLedgerSequence value for reliable submission.');\n }\n yield submitRequest(this, signedTx, opts === null || opts === void 0 ? void 0 : opts.failHard);\n const txHash = utils_1.hashes.hashSignedTx(signedTx);\n return waitForFinalTransactionOutcome(this, txHash);\n });\n}\nexports.submitAndWait = submitAndWait;\nfunction submitRequest(client, signedTransaction, failHard = false) {\n return __awaiter(this, void 0, void 0, function* () {\n if (!isSigned(signedTransaction)) {\n throw new errors_1.ValidationError('Transaction must be signed');\n }\n const signedTxEncoded = typeof signedTransaction === 'string'\n ? signedTransaction\n : (0, ripple_binary_codec_1.encode)(signedTransaction);\n const request = {\n command: 'submit',\n tx_blob: signedTxEncoded,\n fail_hard: isAccountDelete(signedTransaction) || failHard,\n };\n return client.request(request);\n });\n}\nfunction waitForFinalTransactionOutcome(client, txHash) {\n return __awaiter(this, void 0, void 0, function* () {\n yield sleep(LEDGER_CLOSE_TIME);\n const txResponse = yield client.request({\n command: 'tx',\n transaction: txHash,\n });\n if (txResponse.result.validated) {\n return txResponse;\n }\n const txLastLedger = txResponse.result.LastLedgerSequence;\n if (txLastLedger == null) {\n throw new errors_1.XrplError('LastLedgerSequence cannot be null');\n }\n const latestLedger = yield client.getLedgerIndex();\n if (txLastLedger > latestLedger) {\n return waitForFinalTransactionOutcome(client, txHash);\n }\n throw new errors_1.XrplError(`The latest ledger sequence ${latestLedger} is greater than the transaction's LastLedgerSequence (${txLastLedger}).`);\n });\n}\nfunction isSigned(transaction) {\n const tx = typeof transaction === 'string' ? (0, ripple_binary_codec_1.decode)(transaction) : transaction;\n return (typeof tx !== 'string' &&\n (tx.SigningPubKey != null || tx.TxnSignature != null));\n}\nfunction getSignedTx(client, transaction, { autofill = true, wallet, } = {}) {\n return __awaiter(this, void 0, void 0, function* () {\n if (isSigned(transaction)) {\n return transaction;\n }\n if (!wallet) {\n throw new errors_1.ValidationError('Wallet must be provided when submitting an unsigned transaction');\n }\n let tx = typeof transaction === 'string'\n ?\n (0, ripple_binary_codec_1.decode)(transaction)\n : transaction;\n if (autofill) {\n tx = yield client.autofill(tx);\n }\n return wallet.sign(tx).tx_blob;\n });\n}\nfunction hasLastLedgerSequence(transaction) {\n const tx = typeof transaction === 'string' ? (0, ripple_binary_codec_1.decode)(transaction) : transaction;\n return typeof tx !== 'string' && tx.LastLedgerSequence != null;\n}\nfunction isAccountDelete(transaction) {\n const tx = typeof transaction === 'string' ? (0, ripple_binary_codec_1.decode)(transaction) : transaction;\n return tx.TransactionType === 'AccountDelete';\n}\n//# sourceMappingURL=submit.js.map\n\n//# sourceURL=webpack://xrpl/./dist/npm/sugar/submit.js?");
3293
+ eval("\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.submitAndWait = exports.submit = void 0;\nconst ripple_binary_codec_1 = __webpack_require__(/*! ripple-binary-codec */ \"../../node_modules/ripple-binary-codec/dist/index.js\");\nconst errors_1 = __webpack_require__(/*! ../errors */ \"./dist/npm/errors.js\");\nconst utils_1 = __webpack_require__(/*! ../utils */ \"./dist/npm/utils/index.js\");\nconst LEDGER_CLOSE_TIME = 4000;\nfunction sleep(ms) {\n return __awaiter(this, void 0, void 0, function* () {\n return new Promise((resolve) => {\n setTimeout(resolve, ms);\n });\n });\n}\nfunction submit(transaction, opts) {\n return __awaiter(this, void 0, void 0, function* () {\n const signedTx = yield getSignedTx(this, transaction, opts);\n return submitRequest(this, signedTx, opts === null || opts === void 0 ? void 0 : opts.failHard);\n });\n}\nexports.submit = submit;\nfunction submitAndWait(transaction, opts) {\n return __awaiter(this, void 0, void 0, function* () {\n const signedTx = yield getSignedTx(this, transaction, opts);\n const lastLedger = getLastLedgerSequence(signedTx);\n if (lastLedger == null) {\n throw new errors_1.ValidationError('Transaction must contain a LastLedgerSequence value for reliable submission.');\n }\n yield submitRequest(this, signedTx, opts === null || opts === void 0 ? void 0 : opts.failHard);\n const txHash = utils_1.hashes.hashSignedTx(signedTx);\n return waitForFinalTransactionOutcome(this, txHash, lastLedger);\n });\n}\nexports.submitAndWait = submitAndWait;\nfunction submitRequest(client, signedTransaction, failHard = false) {\n return __awaiter(this, void 0, void 0, function* () {\n if (!isSigned(signedTransaction)) {\n throw new errors_1.ValidationError('Transaction must be signed');\n }\n const signedTxEncoded = typeof signedTransaction === 'string'\n ? signedTransaction\n : (0, ripple_binary_codec_1.encode)(signedTransaction);\n const request = {\n command: 'submit',\n tx_blob: signedTxEncoded,\n fail_hard: isAccountDelete(signedTransaction) || failHard,\n };\n return client.request(request);\n });\n}\nfunction waitForFinalTransactionOutcome(client, txHash, lastLedger) {\n return __awaiter(this, void 0, void 0, function* () {\n yield sleep(LEDGER_CLOSE_TIME);\n const latestLedger = yield client.getLedgerIndex();\n const txResponse = yield client\n .request({\n command: 'tx',\n transaction: txHash,\n })\n .catch((error) => __awaiter(this, void 0, void 0, function* () {\n const message = error.data.error;\n if (message === 'txnNotFound') {\n if (lastLedger < (yield client.getLedgerIndex())) {\n throw new errors_1.XrplError(`The latest ledger sequence ${latestLedger} is greater than the transaction's LastLedgerSequence (${lastLedger}).`);\n }\n return waitForFinalTransactionOutcome(client, txHash, lastLedger);\n }\n throw new Error(message);\n }));\n if (txResponse.result.validated) {\n return txResponse;\n }\n if (lastLedger > latestLedger) {\n return waitForFinalTransactionOutcome(client, txHash, lastLedger);\n }\n throw new errors_1.XrplError(`The latest ledger sequence ${latestLedger} is greater than the transaction's LastLedgerSequence (${lastLedger}).`);\n });\n}\nfunction isSigned(transaction) {\n const tx = typeof transaction === 'string' ? (0, ripple_binary_codec_1.decode)(transaction) : transaction;\n return (typeof tx !== 'string' &&\n (tx.SigningPubKey != null || tx.TxnSignature != null));\n}\nfunction getSignedTx(client, transaction, { autofill = true, wallet, } = {}) {\n return __awaiter(this, void 0, void 0, function* () {\n if (isSigned(transaction)) {\n return transaction;\n }\n if (!wallet) {\n throw new errors_1.ValidationError('Wallet must be provided when submitting an unsigned transaction');\n }\n let tx = typeof transaction === 'string'\n ?\n (0, ripple_binary_codec_1.decode)(transaction)\n : transaction;\n if (autofill) {\n tx = yield client.autofill(tx);\n }\n return wallet.sign(tx).tx_blob;\n });\n}\nfunction getLastLedgerSequence(transaction) {\n const tx = typeof transaction === 'string' ? (0, ripple_binary_codec_1.decode)(transaction) : transaction;\n return tx.LastLedgerSequence;\n}\nfunction isAccountDelete(transaction) {\n const tx = typeof transaction === 'string' ? (0, ripple_binary_codec_1.decode)(transaction) : transaction;\n return tx.TransactionType === 'AccountDelete';\n}\n//# sourceMappingURL=submit.js.map\n\n//# sourceURL=webpack://xrpl/./dist/npm/sugar/submit.js?");
3294
3294
 
3295
3295
  /***/ }),
3296
3296
 
@@ -1 +1 @@
1
- {"version":3,"file":"submit.d.ts","sourceRoot":"","sources":["../../../src/sugar/submit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAiB,cAAc,EAAE,MAAM,EAAE,MAAM,IAAI,CAAA;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AA4BpD,iBAAe,MAAM,CACnB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,WAAW,GAAG,MAAM,EACjC,IAAI,CAAC,EAAE;IAEL,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,GACA,OAAO,CAAC,cAAc,CAAC,CAGzB;AAeD,iBAAe,aAAa,CAC1B,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,WAAW,GAAG,MAAM,EACjC,IAAI,CAAC,EAAE;IAEL,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,GACA,OAAO,CAAC,UAAU,CAAC,CAarB;AAyHD,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"submit.d.ts","sourceRoot":"","sources":["../../../src/sugar/submit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAiB,cAAc,EAAE,MAAM,EAAE,MAAM,IAAI,CAAA;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AA4BpD,iBAAe,MAAM,CACnB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,WAAW,GAAG,MAAM,EACjC,IAAI,CAAC,EAAE;IAEL,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,GACA,OAAO,CAAC,cAAc,CAAC,CAGzB;AAeD,iBAAe,aAAa,CAC1B,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,WAAW,GAAG,MAAM,EACjC,IAAI,CAAC,EAAE;IAEL,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,GACA,OAAO,CAAC,UAAU,CAAC,CAcrB;AAyID,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,CAAA"}
@@ -31,12 +31,13 @@ exports.submit = submit;
31
31
  function submitAndWait(transaction, opts) {
32
32
  return __awaiter(this, void 0, void 0, function* () {
33
33
  const signedTx = yield getSignedTx(this, transaction, opts);
34
- if (!hasLastLedgerSequence(signedTx)) {
34
+ const lastLedger = getLastLedgerSequence(signedTx);
35
+ if (lastLedger == null) {
35
36
  throw new errors_1.ValidationError('Transaction must contain a LastLedgerSequence value for reliable submission.');
36
37
  }
37
38
  yield submitRequest(this, signedTx, opts === null || opts === void 0 ? void 0 : opts.failHard);
38
39
  const txHash = utils_1.hashes.hashSignedTx(signedTx);
39
- return waitForFinalTransactionOutcome(this, txHash);
40
+ return waitForFinalTransactionOutcome(this, txHash, lastLedger);
40
41
  });
41
42
  }
42
43
  exports.submitAndWait = submitAndWait;
@@ -56,25 +57,32 @@ function submitRequest(client, signedTransaction, failHard = false) {
56
57
  return client.request(request);
57
58
  });
58
59
  }
59
- function waitForFinalTransactionOutcome(client, txHash) {
60
+ function waitForFinalTransactionOutcome(client, txHash, lastLedger) {
60
61
  return __awaiter(this, void 0, void 0, function* () {
61
62
  yield sleep(LEDGER_CLOSE_TIME);
62
- const txResponse = yield client.request({
63
+ const latestLedger = yield client.getLedgerIndex();
64
+ const txResponse = yield client
65
+ .request({
63
66
  command: 'tx',
64
67
  transaction: txHash,
65
- });
68
+ })
69
+ .catch((error) => __awaiter(this, void 0, void 0, function* () {
70
+ const message = error.data.error;
71
+ if (message === 'txnNotFound') {
72
+ if (lastLedger < (yield client.getLedgerIndex())) {
73
+ throw new errors_1.XrplError(`The latest ledger sequence ${latestLedger} is greater than the transaction's LastLedgerSequence (${lastLedger}).`);
74
+ }
75
+ return waitForFinalTransactionOutcome(client, txHash, lastLedger);
76
+ }
77
+ throw new Error(message);
78
+ }));
66
79
  if (txResponse.result.validated) {
67
80
  return txResponse;
68
81
  }
69
- const txLastLedger = txResponse.result.LastLedgerSequence;
70
- if (txLastLedger == null) {
71
- throw new errors_1.XrplError('LastLedgerSequence cannot be null');
72
- }
73
- const latestLedger = yield client.getLedgerIndex();
74
- if (txLastLedger > latestLedger) {
75
- return waitForFinalTransactionOutcome(client, txHash);
82
+ if (lastLedger > latestLedger) {
83
+ return waitForFinalTransactionOutcome(client, txHash, lastLedger);
76
84
  }
77
- throw new errors_1.XrplError(`The latest ledger sequence ${latestLedger} is greater than the transaction's LastLedgerSequence (${txLastLedger}).`);
85
+ throw new errors_1.XrplError(`The latest ledger sequence ${latestLedger} is greater than the transaction's LastLedgerSequence (${lastLedger}).`);
78
86
  });
79
87
  }
80
88
  function isSigned(transaction) {
@@ -100,9 +108,9 @@ function getSignedTx(client, transaction, { autofill = true, wallet, } = {}) {
100
108
  return wallet.sign(tx).tx_blob;
101
109
  });
102
110
  }
103
- function hasLastLedgerSequence(transaction) {
111
+ function getLastLedgerSequence(transaction) {
104
112
  const tx = typeof transaction === 'string' ? (0, ripple_binary_codec_1.decode)(transaction) : transaction;
105
- return typeof tx !== 'string' && tx.LastLedgerSequence != null;
113
+ return tx.LastLedgerSequence;
106
114
  }
107
115
  function isAccountDelete(transaction) {
108
116
  const tx = typeof transaction === 'string' ? (0, ripple_binary_codec_1.decode)(transaction) : transaction;
@@ -1 +1 @@
1
- {"version":3,"file":"submit.js","sourceRoot":"","sources":["../../../src/sugar/submit.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAoD;AAGpD,sCAAsD;AAGtD,oCAAiC;AAGjC,MAAM,iBAAiB,GAAG,IAAI,CAAA;AAE9B,SAAe,KAAK,CAAC,EAAU;;QAC7B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC7B,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;QACzB,CAAC,CAAC,CAAA;IACJ,CAAC;CAAA;AAkBD,SAAe,MAAM,CAEnB,WAAiC,EACjC,IAOC;;QAED,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,CAAA;QAC3D,OAAO,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,CAAC,CAAA;IACtD,CAAC;CAAA;AAgKQ,wBAAM;AAjJf,SAAe,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CACxB,MAAc,EACd,WAAiC,EACjC,EACE,QAAQ,GAAG,IAAI,EACf,MAAM,MAQJ,EAAE;;QAEN,IAAI,QAAQ,CAAC,WAAW,CAAC,EAAE;YACzB,OAAO,WAAW,CAAA;SACnB;QAED,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAI,wBAAe,CACvB,iEAAiE,CAClE,CAAA;SACF;QAED,IAAI,EAAE,GACJ,OAAO,WAAW,KAAK,QAAQ;YAC7B,CAAC;gBACE,IAAA,4BAAM,EAAC,WAAW,CAA4B;YACjD,CAAC,CAAC,WAAW,CAAA;QAEjB,IAAI,QAAQ,EAAE;YACZ,EAAE,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;SAC/B;QAED,OAAO,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,OAAO,CAAA;IAChC,CAAC;CAAA;AAGD,SAAS,qBAAqB,CAC5B,WAAiC;IAEjC,MAAM,EAAE,GAAG,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAA,4BAAM,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAA;IAE9E,OAAO,EAAE,CAAC,kBAAmC,CAAA;AAC/C,CAAC;AAGD,SAAS,eAAe,CAAC,WAAiC;IACxD,MAAM,EAAE,GAAG,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAA,4BAAM,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAA;IAC9E,OAAO,EAAE,CAAC,eAAe,KAAK,eAAe,CAAA;AAC/C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xrpl",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "license": "ISC",
5
5
  "description": "A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser",
6
6
  "files": [
@@ -65,6 +65,5 @@
65
65
  "readmeFilename": "README.md",
66
66
  "engines": {
67
67
  "node": ">=10.13.0"
68
- },
69
- "gitHead": "388c4a6124af2f5de12c3ce4e0dc0882d6f7cb65"
68
+ }
70
69
  }