evernode-js-client 0.4.47 → 0.4.51
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +394 -263
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
2
2
|
/******/ var __webpack_modules__ = ({
|
3
3
|
|
4
|
-
/***/
|
4
|
+
/***/ 8310:
|
5
5
|
/***/ ((__unused_webpack_module, exports) => {
|
6
6
|
|
7
7
|
"use strict";
|
@@ -159,7 +159,7 @@ function fromByteArray (uint8) {
|
|
159
159
|
|
160
160
|
/***/ }),
|
161
161
|
|
162
|
-
/***/
|
162
|
+
/***/ 8324:
|
163
163
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
164
164
|
|
165
165
|
/* module decorator */ module = __nccwpck_require__.nmd(module);
|
@@ -1620,7 +1620,7 @@ if (typeof define === "function" && define.amd) {
|
|
1620
1620
|
|
1621
1621
|
/***/ }),
|
1622
1622
|
|
1623
|
-
/***/
|
1623
|
+
/***/ 9316:
|
1624
1624
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
1625
1625
|
|
1626
1626
|
"use strict";
|
@@ -1634,8 +1634,8 @@ if (typeof define === "function" && define.amd) {
|
|
1634
1634
|
|
1635
1635
|
|
1636
1636
|
|
1637
|
-
var base64 = __nccwpck_require__(
|
1638
|
-
var ieee754 = __nccwpck_require__(
|
1637
|
+
var base64 = __nccwpck_require__(8310)
|
1638
|
+
var ieee754 = __nccwpck_require__(8983)
|
1639
1639
|
var customInspectSymbol =
|
1640
1640
|
(typeof Symbol === 'function' && typeof Symbol.for === 'function')
|
1641
1641
|
? Symbol.for('nodejs.util.inspect.custom')
|
@@ -3422,7 +3422,7 @@ var hexSliceLookupTable = (function () {
|
|
3422
3422
|
|
3423
3423
|
/***/ }),
|
3424
3424
|
|
3425
|
-
/***/
|
3425
|
+
/***/ 2518:
|
3426
3426
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
3427
3427
|
|
3428
3428
|
module.exports = __nccwpck_require__(6113).createHash
|
@@ -3430,7 +3430,7 @@ module.exports = __nccwpck_require__(6113).createHash
|
|
3430
3430
|
|
3431
3431
|
/***/ }),
|
3432
3432
|
|
3433
|
-
/***/
|
3433
|
+
/***/ 4636:
|
3434
3434
|
/***/ (function(module) {
|
3435
3435
|
|
3436
3436
|
;(function (globalScope) {
|
@@ -8371,7 +8371,7 @@ module.exports = __nccwpck_require__(6113).createHash
|
|
8371
8371
|
|
8372
8372
|
/***/ }),
|
8373
8373
|
|
8374
|
-
/***/
|
8374
|
+
/***/ 8983:
|
8375
8375
|
/***/ ((__unused_webpack_module, exports) => {
|
8376
8376
|
|
8377
8377
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
@@ -8463,7 +8463,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
8463
8463
|
|
8464
8464
|
/***/ }),
|
8465
8465
|
|
8466
|
-
/***/
|
8466
|
+
/***/ 6914:
|
8467
8467
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
8468
8468
|
|
8469
8469
|
"use strict";
|
@@ -8471,17 +8471,17 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
8471
8471
|
/* eslint-disable func-style */
|
8472
8472
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
8473
8473
|
exports.transactionID = exports.sha512Half = exports.binaryToJSON = exports.signingClaimData = exports.signingData = exports.multiSigningData = exports.readJSON = exports.serializeObject = exports.makeParser = exports.BytesList = exports.BinarySerializer = exports.BinaryParser = void 0;
|
8474
|
-
var types_1 = __nccwpck_require__(
|
8475
|
-
var binary_parser_1 = __nccwpck_require__(
|
8474
|
+
var types_1 = __nccwpck_require__(9439);
|
8475
|
+
var binary_parser_1 = __nccwpck_require__(36);
|
8476
8476
|
Object.defineProperty(exports, "BinaryParser", ({ enumerable: true, get: function () { return binary_parser_1.BinaryParser; } }));
|
8477
|
-
var hash_prefixes_1 = __nccwpck_require__(
|
8478
|
-
var binary_serializer_1 = __nccwpck_require__(
|
8477
|
+
var hash_prefixes_1 = __nccwpck_require__(2955);
|
8478
|
+
var binary_serializer_1 = __nccwpck_require__(4432);
|
8479
8479
|
Object.defineProperty(exports, "BinarySerializer", ({ enumerable: true, get: function () { return binary_serializer_1.BinarySerializer; } }));
|
8480
8480
|
Object.defineProperty(exports, "BytesList", ({ enumerable: true, get: function () { return binary_serializer_1.BytesList; } }));
|
8481
|
-
var hashes_1 = __nccwpck_require__(
|
8481
|
+
var hashes_1 = __nccwpck_require__(4360);
|
8482
8482
|
Object.defineProperty(exports, "sha512Half", ({ enumerable: true, get: function () { return hashes_1.sha512Half; } }));
|
8483
8483
|
Object.defineProperty(exports, "transactionID", ({ enumerable: true, get: function () { return hashes_1.transactionID; } }));
|
8484
|
-
var bigInt = __nccwpck_require__(
|
8484
|
+
var bigInt = __nccwpck_require__(8324);
|
8485
8485
|
/**
|
8486
8486
|
* Construct a BinaryParser
|
8487
8487
|
*
|
@@ -8583,38 +8583,38 @@ exports.multiSigningData = multiSigningData;
|
|
8583
8583
|
|
8584
8584
|
/***/ }),
|
8585
8585
|
|
8586
|
-
/***/
|
8586
|
+
/***/ 3372:
|
8587
8587
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
8588
8588
|
|
8589
8589
|
"use strict";
|
8590
8590
|
|
8591
8591
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
8592
8592
|
exports.types = exports.ShaMap = exports.HashPrefix = exports.quality = exports.TransactionResult = exports.Type = exports.LedgerEntryType = exports.TransactionType = exports.Field = exports.ledgerHashes = exports.binary = exports.hashes = void 0;
|
8593
|
-
var enums_1 = __nccwpck_require__(
|
8593
|
+
var enums_1 = __nccwpck_require__(3666);
|
8594
8594
|
Object.defineProperty(exports, "Field", ({ enumerable: true, get: function () { return enums_1.Field; } }));
|
8595
8595
|
Object.defineProperty(exports, "TransactionType", ({ enumerable: true, get: function () { return enums_1.TransactionType; } }));
|
8596
8596
|
Object.defineProperty(exports, "LedgerEntryType", ({ enumerable: true, get: function () { return enums_1.LedgerEntryType; } }));
|
8597
8597
|
Object.defineProperty(exports, "Type", ({ enumerable: true, get: function () { return enums_1.Type; } }));
|
8598
8598
|
Object.defineProperty(exports, "TransactionResult", ({ enumerable: true, get: function () { return enums_1.TransactionResult; } }));
|
8599
|
-
var types = __nccwpck_require__(
|
8599
|
+
var types = __nccwpck_require__(9439);
|
8600
8600
|
exports.types = types;
|
8601
|
-
var binary = __nccwpck_require__(
|
8601
|
+
var binary = __nccwpck_require__(6914);
|
8602
8602
|
exports.binary = binary;
|
8603
|
-
var shamap_1 = __nccwpck_require__(
|
8603
|
+
var shamap_1 = __nccwpck_require__(7382);
|
8604
8604
|
Object.defineProperty(exports, "ShaMap", ({ enumerable: true, get: function () { return shamap_1.ShaMap; } }));
|
8605
|
-
var ledgerHashes = __nccwpck_require__(
|
8605
|
+
var ledgerHashes = __nccwpck_require__(5662);
|
8606
8606
|
exports.ledgerHashes = ledgerHashes;
|
8607
|
-
var hashes = __nccwpck_require__(
|
8607
|
+
var hashes = __nccwpck_require__(4360);
|
8608
8608
|
exports.hashes = hashes;
|
8609
|
-
var quality_1 = __nccwpck_require__(
|
8609
|
+
var quality_1 = __nccwpck_require__(2971);
|
8610
8610
|
Object.defineProperty(exports, "quality", ({ enumerable: true, get: function () { return quality_1.quality; } }));
|
8611
|
-
var hash_prefixes_1 = __nccwpck_require__(
|
8611
|
+
var hash_prefixes_1 = __nccwpck_require__(2955);
|
8612
8612
|
Object.defineProperty(exports, "HashPrefix", ({ enumerable: true, get: function () { return hash_prefixes_1.HashPrefix; } }));
|
8613
8613
|
//# sourceMappingURL=coretypes.js.map
|
8614
8614
|
|
8615
8615
|
/***/ }),
|
8616
8616
|
|
8617
|
-
/***/
|
8617
|
+
/***/ 3666:
|
8618
8618
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
8619
8619
|
|
8620
8620
|
"use strict";
|
@@ -8622,8 +8622,8 @@ Object.defineProperty(exports, "HashPrefix", ({ enumerable: true, get: function
|
|
8622
8622
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
8623
8623
|
exports.TransactionType = exports.TransactionResult = exports.LedgerEntryType = exports.Type = exports.Field = exports.Bytes = exports.TRANSACTION_TYPES = void 0;
|
8624
8624
|
var enums = __nccwpck_require__(6997);
|
8625
|
-
var serialized_type_1 = __nccwpck_require__(
|
8626
|
-
var buffer_1 = __nccwpck_require__(
|
8625
|
+
var serialized_type_1 = __nccwpck_require__(272);
|
8626
|
+
var buffer_1 = __nccwpck_require__(9316);
|
8627
8627
|
/*
|
8628
8628
|
* @brief: All valid transaction types
|
8629
8629
|
*/
|
@@ -8754,14 +8754,14 @@ exports.Field = Field;
|
|
8754
8754
|
|
8755
8755
|
/***/ }),
|
8756
8756
|
|
8757
|
-
/***/
|
8757
|
+
/***/ 2955:
|
8758
8758
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
8759
8759
|
|
8760
8760
|
"use strict";
|
8761
8761
|
|
8762
8762
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
8763
8763
|
exports.HashPrefix = void 0;
|
8764
|
-
var buffer_1 = __nccwpck_require__(
|
8764
|
+
var buffer_1 = __nccwpck_require__(9316);
|
8765
8765
|
/**
|
8766
8766
|
* Write a 32 bit integer to a Buffer
|
8767
8767
|
*
|
@@ -8802,7 +8802,7 @@ exports.HashPrefix = HashPrefix;
|
|
8802
8802
|
|
8803
8803
|
/***/ }),
|
8804
8804
|
|
8805
|
-
/***/
|
8805
|
+
/***/ 4360:
|
8806
8806
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
8807
8807
|
|
8808
8808
|
"use strict";
|
@@ -8822,11 +8822,11 @@ var __extends = (this && this.__extends) || (function () {
|
|
8822
8822
|
})();
|
8823
8823
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
8824
8824
|
exports.transactionID = exports.sha512Half = exports.Sha512Half = void 0;
|
8825
|
-
var hash_prefixes_1 = __nccwpck_require__(
|
8826
|
-
var createHash = __nccwpck_require__(
|
8827
|
-
var hash_256_1 = __nccwpck_require__(
|
8828
|
-
var binary_serializer_1 = __nccwpck_require__(
|
8829
|
-
var buffer_1 = __nccwpck_require__(
|
8825
|
+
var hash_prefixes_1 = __nccwpck_require__(2955);
|
8826
|
+
var createHash = __nccwpck_require__(2518);
|
8827
|
+
var hash_256_1 = __nccwpck_require__(1239);
|
8828
|
+
var binary_serializer_1 = __nccwpck_require__(4432);
|
8829
|
+
var buffer_1 = __nccwpck_require__(9316);
|
8830
8830
|
/**
|
8831
8831
|
* Class for hashing with SHA512
|
8832
8832
|
* @extends BytesList So SerializedTypes can write bytes to a Sha512Half
|
@@ -8906,15 +8906,15 @@ exports.transactionID = transactionID;
|
|
8906
8906
|
|
8907
8907
|
/***/ }),
|
8908
8908
|
|
8909
|
-
/***/
|
8909
|
+
/***/ 332:
|
8910
8910
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
8911
8911
|
|
8912
8912
|
"use strict";
|
8913
8913
|
|
8914
8914
|
var assert = __nccwpck_require__(9491);
|
8915
|
-
var coretypes_1 = __nccwpck_require__(
|
8916
|
-
var ledger_hashes_1 = __nccwpck_require__(
|
8917
|
-
var enums_1 = __nccwpck_require__(
|
8915
|
+
var coretypes_1 = __nccwpck_require__(3372);
|
8916
|
+
var ledger_hashes_1 = __nccwpck_require__(5662);
|
8917
|
+
var enums_1 = __nccwpck_require__(3666);
|
8918
8918
|
var signingData = coretypes_1.binary.signingData, signingClaimData = coretypes_1.binary.signingClaimData, multiSigningData = coretypes_1.binary.multiSigningData, binaryToJSON = coretypes_1.binary.binaryToJSON, serializeObject = coretypes_1.binary.serializeObject;
|
8919
8919
|
/**
|
8920
8920
|
* Decode a transaction
|
@@ -9013,7 +9013,7 @@ module.exports = {
|
|
9013
9013
|
|
9014
9014
|
/***/ }),
|
9015
9015
|
|
9016
|
-
/***/
|
9016
|
+
/***/ 5662:
|
9017
9017
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
9018
9018
|
|
9019
9019
|
"use strict";
|
@@ -9021,17 +9021,17 @@ module.exports = {
|
|
9021
9021
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
9022
9022
|
exports.decodeLedgerData = exports.ledgerHash = exports.transactionTreeHash = exports.accountStateHash = void 0;
|
9023
9023
|
var assert = __nccwpck_require__(9491);
|
9024
|
-
var shamap_1 = __nccwpck_require__(
|
9025
|
-
var hash_prefixes_1 = __nccwpck_require__(
|
9026
|
-
var hashes_1 = __nccwpck_require__(
|
9027
|
-
var binary_1 = __nccwpck_require__(
|
9028
|
-
var hash_256_1 = __nccwpck_require__(
|
9029
|
-
var st_object_1 = __nccwpck_require__(
|
9030
|
-
var uint_64_1 = __nccwpck_require__(
|
9031
|
-
var uint_32_1 = __nccwpck_require__(
|
9032
|
-
var uint_8_1 = __nccwpck_require__(
|
9033
|
-
var binary_parser_1 = __nccwpck_require__(
|
9034
|
-
var bigInt = __nccwpck_require__(
|
9024
|
+
var shamap_1 = __nccwpck_require__(7382);
|
9025
|
+
var hash_prefixes_1 = __nccwpck_require__(2955);
|
9026
|
+
var hashes_1 = __nccwpck_require__(4360);
|
9027
|
+
var binary_1 = __nccwpck_require__(6914);
|
9028
|
+
var hash_256_1 = __nccwpck_require__(1239);
|
9029
|
+
var st_object_1 = __nccwpck_require__(804);
|
9030
|
+
var uint_64_1 = __nccwpck_require__(1678);
|
9031
|
+
var uint_32_1 = __nccwpck_require__(428);
|
9032
|
+
var uint_8_1 = __nccwpck_require__(5049);
|
9033
|
+
var binary_parser_1 = __nccwpck_require__(36);
|
9034
|
+
var bigInt = __nccwpck_require__(8324);
|
9035
9035
|
/**
|
9036
9036
|
* Computes the hash of a list of objects
|
9037
9037
|
*
|
@@ -9155,17 +9155,17 @@ exports.decodeLedgerData = decodeLedgerData;
|
|
9155
9155
|
|
9156
9156
|
/***/ }),
|
9157
9157
|
|
9158
|
-
/***/
|
9158
|
+
/***/ 2971:
|
9159
9159
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
9160
9160
|
|
9161
9161
|
"use strict";
|
9162
9162
|
|
9163
9163
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
9164
9164
|
exports.quality = void 0;
|
9165
|
-
var types_1 = __nccwpck_require__(
|
9166
|
-
var decimal_js_1 = __nccwpck_require__(
|
9167
|
-
var bigInt = __nccwpck_require__(
|
9168
|
-
var buffer_1 = __nccwpck_require__(
|
9165
|
+
var types_1 = __nccwpck_require__(9439);
|
9166
|
+
var decimal_js_1 = __nccwpck_require__(4636);
|
9167
|
+
var bigInt = __nccwpck_require__(8324);
|
9168
|
+
var buffer_1 = __nccwpck_require__(9316);
|
9169
9169
|
/**
|
9170
9170
|
* class for encoding and decoding quality
|
9171
9171
|
*/
|
@@ -9205,7 +9205,7 @@ exports.quality = quality;
|
|
9205
9205
|
|
9206
9206
|
/***/ }),
|
9207
9207
|
|
9208
|
-
/***/
|
9208
|
+
/***/ 36:
|
9209
9209
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
9210
9210
|
|
9211
9211
|
"use strict";
|
@@ -9213,8 +9213,8 @@ exports.quality = quality;
|
|
9213
9213
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
9214
9214
|
exports.BinaryParser = void 0;
|
9215
9215
|
var assert = __nccwpck_require__(9491);
|
9216
|
-
var enums_1 = __nccwpck_require__(
|
9217
|
-
var buffer_1 = __nccwpck_require__(
|
9216
|
+
var enums_1 = __nccwpck_require__(3666);
|
9217
|
+
var buffer_1 = __nccwpck_require__(9316);
|
9218
9218
|
/**
|
9219
9219
|
* BinaryParser is used to compute fields and values from a HexString
|
9220
9220
|
*/
|
@@ -9397,7 +9397,7 @@ exports.BinaryParser = BinaryParser;
|
|
9397
9397
|
|
9398
9398
|
/***/ }),
|
9399
9399
|
|
9400
|
-
/***/
|
9400
|
+
/***/ 4432:
|
9401
9401
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
9402
9402
|
|
9403
9403
|
"use strict";
|
@@ -9405,7 +9405,7 @@ exports.BinaryParser = BinaryParser;
|
|
9405
9405
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
9406
9406
|
exports.BinarySerializer = exports.BytesList = void 0;
|
9407
9407
|
var assert = __nccwpck_require__(9491);
|
9408
|
-
var buffer_1 = __nccwpck_require__(
|
9408
|
+
var buffer_1 = __nccwpck_require__(9316);
|
9409
9409
|
/**
|
9410
9410
|
* Bytes list is a collection of buffer objects
|
9411
9411
|
*/
|
@@ -9557,7 +9557,7 @@ exports.BinarySerializer = BinarySerializer;
|
|
9557
9557
|
|
9558
9558
|
/***/ }),
|
9559
9559
|
|
9560
|
-
/***/
|
9560
|
+
/***/ 7382:
|
9561
9561
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
9562
9562
|
|
9563
9563
|
"use strict";
|
@@ -9578,10 +9578,10 @@ var __extends = (this && this.__extends) || (function () {
|
|
9578
9578
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
9579
9579
|
exports.ShaMapLeaf = exports.ShaMapNode = exports.ShaMap = void 0;
|
9580
9580
|
var assert_1 = __nccwpck_require__(9491);
|
9581
|
-
var types_1 = __nccwpck_require__(
|
9582
|
-
var hash_prefixes_1 = __nccwpck_require__(
|
9583
|
-
var hashes_1 = __nccwpck_require__(
|
9584
|
-
var buffer_1 = __nccwpck_require__(
|
9581
|
+
var types_1 = __nccwpck_require__(9439);
|
9582
|
+
var hash_prefixes_1 = __nccwpck_require__(2955);
|
9583
|
+
var hashes_1 = __nccwpck_require__(4360);
|
9584
|
+
var buffer_1 = __nccwpck_require__(9316);
|
9585
9585
|
/**
|
9586
9586
|
* Abstract class describing a SHAMapNode
|
9587
9587
|
*/
|
@@ -9760,7 +9760,7 @@ exports.ShaMap = ShaMap;
|
|
9760
9760
|
|
9761
9761
|
/***/ }),
|
9762
9762
|
|
9763
|
-
/***/
|
9763
|
+
/***/ 6419:
|
9764
9764
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
9765
9765
|
|
9766
9766
|
"use strict";
|
@@ -9781,8 +9781,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
9781
9781
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
9782
9782
|
exports.AccountID = void 0;
|
9783
9783
|
var ripple_address_codec_1 = __nccwpck_require__(597);
|
9784
|
-
var hash_160_1 = __nccwpck_require__(
|
9785
|
-
var buffer_1 = __nccwpck_require__(
|
9784
|
+
var hash_160_1 = __nccwpck_require__(2945);
|
9785
|
+
var buffer_1 = __nccwpck_require__(9316);
|
9786
9786
|
var HEX_REGEX = /^[A-F0-9]{40}$/;
|
9787
9787
|
/**
|
9788
9788
|
* Class defining how to encode and decode an AccountID
|
@@ -9853,7 +9853,7 @@ exports.AccountID = AccountID;
|
|
9853
9853
|
|
9854
9854
|
/***/ }),
|
9855
9855
|
|
9856
|
-
/***/
|
9856
|
+
/***/ 4209:
|
9857
9857
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
9858
9858
|
|
9859
9859
|
"use strict";
|
@@ -9873,13 +9873,13 @@ var __extends = (this && this.__extends) || (function () {
|
|
9873
9873
|
})();
|
9874
9874
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
9875
9875
|
exports.Amount = void 0;
|
9876
|
-
var decimal_js_1 = __nccwpck_require__(
|
9877
|
-
var binary_parser_1 = __nccwpck_require__(
|
9878
|
-
var account_id_1 = __nccwpck_require__(
|
9879
|
-
var currency_1 = __nccwpck_require__(
|
9880
|
-
var serialized_type_1 = __nccwpck_require__(
|
9881
|
-
var bigInt = __nccwpck_require__(
|
9882
|
-
var buffer_1 = __nccwpck_require__(
|
9876
|
+
var decimal_js_1 = __nccwpck_require__(4636);
|
9877
|
+
var binary_parser_1 = __nccwpck_require__(36);
|
9878
|
+
var account_id_1 = __nccwpck_require__(6419);
|
9879
|
+
var currency_1 = __nccwpck_require__(5256);
|
9880
|
+
var serialized_type_1 = __nccwpck_require__(272);
|
9881
|
+
var bigInt = __nccwpck_require__(8324);
|
9882
|
+
var buffer_1 = __nccwpck_require__(9316);
|
9883
9883
|
/**
|
9884
9884
|
* Constants for validating amounts
|
9885
9885
|
*/
|
@@ -10082,7 +10082,7 @@ exports.Amount = Amount;
|
|
10082
10082
|
|
10083
10083
|
/***/ }),
|
10084
10084
|
|
10085
|
-
/***/
|
10085
|
+
/***/ 2520:
|
10086
10086
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
10087
10087
|
|
10088
10088
|
"use strict";
|
@@ -10102,8 +10102,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
10102
10102
|
})();
|
10103
10103
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
10104
10104
|
exports.Blob = void 0;
|
10105
|
-
var serialized_type_1 = __nccwpck_require__(
|
10106
|
-
var buffer_1 = __nccwpck_require__(
|
10105
|
+
var serialized_type_1 = __nccwpck_require__(272);
|
10106
|
+
var buffer_1 = __nccwpck_require__(9316);
|
10107
10107
|
/**
|
10108
10108
|
* Variable length encoded type
|
10109
10109
|
*/
|
@@ -10144,7 +10144,7 @@ exports.Blob = Blob;
|
|
10144
10144
|
|
10145
10145
|
/***/ }),
|
10146
10146
|
|
10147
|
-
/***/
|
10147
|
+
/***/ 5256:
|
10148
10148
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
10149
10149
|
|
10150
10150
|
"use strict";
|
@@ -10164,8 +10164,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
10164
10164
|
})();
|
10165
10165
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
10166
10166
|
exports.Currency = void 0;
|
10167
|
-
var hash_160_1 = __nccwpck_require__(
|
10168
|
-
var buffer_1 = __nccwpck_require__(
|
10167
|
+
var hash_160_1 = __nccwpck_require__(2945);
|
10168
|
+
var buffer_1 = __nccwpck_require__(9316);
|
10169
10169
|
var ISO_REGEX = /^[A-Z0-9]{3}$/;
|
10170
10170
|
var HEX_REGEX = /^[A-F0-9]{40}$/;
|
10171
10171
|
/**
|
@@ -10291,7 +10291,7 @@ exports.Currency = Currency;
|
|
10291
10291
|
|
10292
10292
|
/***/ }),
|
10293
10293
|
|
10294
|
-
/***/
|
10294
|
+
/***/ 7886:
|
10295
10295
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
10296
10296
|
|
10297
10297
|
"use strict";
|
@@ -10311,8 +10311,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
10311
10311
|
})();
|
10312
10312
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
10313
10313
|
exports.Hash128 = void 0;
|
10314
|
-
var hash_1 = __nccwpck_require__(
|
10315
|
-
var buffer_1 = __nccwpck_require__(
|
10314
|
+
var hash_1 = __nccwpck_require__(5626);
|
10315
|
+
var buffer_1 = __nccwpck_require__(9316);
|
10316
10316
|
/**
|
10317
10317
|
* Hash with a width of 128 bits
|
10318
10318
|
*/
|
@@ -10330,7 +10330,7 @@ exports.Hash128 = Hash128;
|
|
10330
10330
|
|
10331
10331
|
/***/ }),
|
10332
10332
|
|
10333
|
-
/***/
|
10333
|
+
/***/ 2945:
|
10334
10334
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
10335
10335
|
|
10336
10336
|
"use strict";
|
@@ -10350,8 +10350,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
10350
10350
|
})();
|
10351
10351
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
10352
10352
|
exports.Hash160 = void 0;
|
10353
|
-
var hash_1 = __nccwpck_require__(
|
10354
|
-
var buffer_1 = __nccwpck_require__(
|
10353
|
+
var hash_1 = __nccwpck_require__(5626);
|
10354
|
+
var buffer_1 = __nccwpck_require__(9316);
|
10355
10355
|
/**
|
10356
10356
|
* Hash with a width of 160 bits
|
10357
10357
|
*/
|
@@ -10374,7 +10374,7 @@ exports.Hash160 = Hash160;
|
|
10374
10374
|
|
10375
10375
|
/***/ }),
|
10376
10376
|
|
10377
|
-
/***/
|
10377
|
+
/***/ 1239:
|
10378
10378
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
10379
10379
|
|
10380
10380
|
"use strict";
|
@@ -10394,8 +10394,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
10394
10394
|
})();
|
10395
10395
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
10396
10396
|
exports.Hash256 = void 0;
|
10397
|
-
var hash_1 = __nccwpck_require__(
|
10398
|
-
var buffer_1 = __nccwpck_require__(
|
10397
|
+
var hash_1 = __nccwpck_require__(5626);
|
10398
|
+
var buffer_1 = __nccwpck_require__(9316);
|
10399
10399
|
/**
|
10400
10400
|
* Hash with a width of 256 bits
|
10401
10401
|
*/
|
@@ -10413,7 +10413,7 @@ exports.Hash256 = Hash256;
|
|
10413
10413
|
|
10414
10414
|
/***/ }),
|
10415
10415
|
|
10416
|
-
/***/
|
10416
|
+
/***/ 5626:
|
10417
10417
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
10418
10418
|
|
10419
10419
|
"use strict";
|
@@ -10433,8 +10433,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
10433
10433
|
})();
|
10434
10434
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
10435
10435
|
exports.Hash = void 0;
|
10436
|
-
var serialized_type_1 = __nccwpck_require__(
|
10437
|
-
var buffer_1 = __nccwpck_require__(
|
10436
|
+
var serialized_type_1 = __nccwpck_require__(272);
|
10437
|
+
var buffer_1 = __nccwpck_require__(9316);
|
10438
10438
|
/**
|
10439
10439
|
* Base class defining how to encode and decode hashes
|
10440
10440
|
*/
|
@@ -10508,29 +10508,29 @@ exports.Hash = Hash;
|
|
10508
10508
|
|
10509
10509
|
/***/ }),
|
10510
10510
|
|
10511
|
-
/***/
|
10511
|
+
/***/ 9439:
|
10512
10512
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
10513
10513
|
|
10514
10514
|
"use strict";
|
10515
10515
|
|
10516
10516
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
10517
10517
|
exports.coreTypes = void 0;
|
10518
|
-
var enums_1 = __nccwpck_require__(
|
10519
|
-
var account_id_1 = __nccwpck_require__(
|
10520
|
-
var amount_1 = __nccwpck_require__(
|
10521
|
-
var blob_1 = __nccwpck_require__(
|
10522
|
-
var currency_1 = __nccwpck_require__(
|
10523
|
-
var hash_128_1 = __nccwpck_require__(
|
10524
|
-
var hash_160_1 = __nccwpck_require__(
|
10525
|
-
var hash_256_1 = __nccwpck_require__(
|
10526
|
-
var path_set_1 = __nccwpck_require__(
|
10527
|
-
var st_array_1 = __nccwpck_require__(
|
10528
|
-
var st_object_1 = __nccwpck_require__(
|
10529
|
-
var uint_16_1 = __nccwpck_require__(
|
10530
|
-
var uint_32_1 = __nccwpck_require__(
|
10531
|
-
var uint_64_1 = __nccwpck_require__(
|
10532
|
-
var uint_8_1 = __nccwpck_require__(
|
10533
|
-
var vector_256_1 = __nccwpck_require__(
|
10518
|
+
var enums_1 = __nccwpck_require__(3666);
|
10519
|
+
var account_id_1 = __nccwpck_require__(6419);
|
10520
|
+
var amount_1 = __nccwpck_require__(4209);
|
10521
|
+
var blob_1 = __nccwpck_require__(2520);
|
10522
|
+
var currency_1 = __nccwpck_require__(5256);
|
10523
|
+
var hash_128_1 = __nccwpck_require__(7886);
|
10524
|
+
var hash_160_1 = __nccwpck_require__(2945);
|
10525
|
+
var hash_256_1 = __nccwpck_require__(1239);
|
10526
|
+
var path_set_1 = __nccwpck_require__(3730);
|
10527
|
+
var st_array_1 = __nccwpck_require__(6355);
|
10528
|
+
var st_object_1 = __nccwpck_require__(804);
|
10529
|
+
var uint_16_1 = __nccwpck_require__(7791);
|
10530
|
+
var uint_32_1 = __nccwpck_require__(428);
|
10531
|
+
var uint_64_1 = __nccwpck_require__(1678);
|
10532
|
+
var uint_8_1 = __nccwpck_require__(5049);
|
10533
|
+
var vector_256_1 = __nccwpck_require__(4509);
|
10534
10534
|
var coreTypes = {
|
10535
10535
|
AccountID: account_id_1.AccountID,
|
10536
10536
|
Amount: amount_1.Amount,
|
@@ -10559,7 +10559,7 @@ enums_1.Field['LedgerEntryType'].associatedType = enums_1.LedgerEntryType;
|
|
10559
10559
|
|
10560
10560
|
/***/ }),
|
10561
10561
|
|
10562
|
-
/***/
|
10562
|
+
/***/ 3730:
|
10563
10563
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
10564
10564
|
|
10565
10565
|
"use strict";
|
@@ -10579,11 +10579,11 @@ var __extends = (this && this.__extends) || (function () {
|
|
10579
10579
|
})();
|
10580
10580
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
10581
10581
|
exports.PathSet = void 0;
|
10582
|
-
var account_id_1 = __nccwpck_require__(
|
10583
|
-
var currency_1 = __nccwpck_require__(
|
10584
|
-
var binary_parser_1 = __nccwpck_require__(
|
10585
|
-
var serialized_type_1 = __nccwpck_require__(
|
10586
|
-
var buffer_1 = __nccwpck_require__(
|
10582
|
+
var account_id_1 = __nccwpck_require__(6419);
|
10583
|
+
var currency_1 = __nccwpck_require__(5256);
|
10584
|
+
var binary_parser_1 = __nccwpck_require__(36);
|
10585
|
+
var serialized_type_1 = __nccwpck_require__(272);
|
10586
|
+
var buffer_1 = __nccwpck_require__(9316);
|
10587
10587
|
/**
|
10588
10588
|
* Constants for separating Paths in a PathSet
|
10589
10589
|
*/
|
@@ -10827,7 +10827,7 @@ exports.PathSet = PathSet;
|
|
10827
10827
|
|
10828
10828
|
/***/ }),
|
10829
10829
|
|
10830
|
-
/***/
|
10830
|
+
/***/ 272:
|
10831
10831
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
10832
10832
|
|
10833
10833
|
"use strict";
|
@@ -10847,8 +10847,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
10847
10847
|
})();
|
10848
10848
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
10849
10849
|
exports.Comparable = exports.SerializedType = void 0;
|
10850
|
-
var binary_serializer_1 = __nccwpck_require__(
|
10851
|
-
var buffer_1 = __nccwpck_require__(
|
10850
|
+
var binary_serializer_1 = __nccwpck_require__(4432);
|
10851
|
+
var buffer_1 = __nccwpck_require__(9316);
|
10852
10852
|
/**
|
10853
10853
|
* The base class for all binary-codec types
|
10854
10854
|
*/
|
@@ -10950,7 +10950,7 @@ exports.Comparable = Comparable;
|
|
10950
10950
|
|
10951
10951
|
/***/ }),
|
10952
10952
|
|
10953
|
-
/***/
|
10953
|
+
/***/ 6355:
|
10954
10954
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
10955
10955
|
|
10956
10956
|
"use strict";
|
@@ -10970,10 +10970,10 @@ var __extends = (this && this.__extends) || (function () {
|
|
10970
10970
|
})();
|
10971
10971
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
10972
10972
|
exports.STArray = void 0;
|
10973
|
-
var serialized_type_1 = __nccwpck_require__(
|
10974
|
-
var st_object_1 = __nccwpck_require__(
|
10975
|
-
var binary_parser_1 = __nccwpck_require__(
|
10976
|
-
var buffer_1 = __nccwpck_require__(
|
10973
|
+
var serialized_type_1 = __nccwpck_require__(272);
|
10974
|
+
var st_object_1 = __nccwpck_require__(804);
|
10975
|
+
var binary_parser_1 = __nccwpck_require__(36);
|
10976
|
+
var buffer_1 = __nccwpck_require__(9316);
|
10977
10977
|
var ARRAY_END_MARKER = buffer_1.Buffer.from([0xf1]);
|
10978
10978
|
var ARRAY_END_MARKER_NAME = 'ArrayEndMarker';
|
10979
10979
|
var OBJECT_END_MARKER = buffer_1.Buffer.from([0xe1]);
|
@@ -11055,7 +11055,7 @@ exports.STArray = STArray;
|
|
11055
11055
|
|
11056
11056
|
/***/ }),
|
11057
11057
|
|
11058
|
-
/***/
|
11058
|
+
/***/ 804:
|
11059
11059
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
11060
11060
|
|
11061
11061
|
"use strict";
|
@@ -11075,12 +11075,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
11075
11075
|
})();
|
11076
11076
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
11077
11077
|
exports.STObject = void 0;
|
11078
|
-
var enums_1 = __nccwpck_require__(
|
11079
|
-
var serialized_type_1 = __nccwpck_require__(
|
11078
|
+
var enums_1 = __nccwpck_require__(3666);
|
11079
|
+
var serialized_type_1 = __nccwpck_require__(272);
|
11080
11080
|
var ripple_address_codec_1 = __nccwpck_require__(597);
|
11081
|
-
var binary_parser_1 = __nccwpck_require__(
|
11082
|
-
var binary_serializer_1 = __nccwpck_require__(
|
11083
|
-
var buffer_1 = __nccwpck_require__(
|
11081
|
+
var binary_parser_1 = __nccwpck_require__(36);
|
11082
|
+
var binary_serializer_1 = __nccwpck_require__(4432);
|
11083
|
+
var buffer_1 = __nccwpck_require__(9316);
|
11084
11084
|
var OBJECT_END_MARKER_BYTE = buffer_1.Buffer.from([0xe1]);
|
11085
11085
|
var OBJECT_END_MARKER = 'ObjectEndMarker';
|
11086
11086
|
var ST_OBJECT = 'STObject';
|
@@ -11228,7 +11228,7 @@ exports.STObject = STObject;
|
|
11228
11228
|
|
11229
11229
|
/***/ }),
|
11230
11230
|
|
11231
|
-
/***/
|
11231
|
+
/***/ 7791:
|
11232
11232
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
11233
11233
|
|
11234
11234
|
"use strict";
|
@@ -11248,8 +11248,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
11248
11248
|
})();
|
11249
11249
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
11250
11250
|
exports.UInt16 = void 0;
|
11251
|
-
var uint_1 = __nccwpck_require__(
|
11252
|
-
var buffer_1 = __nccwpck_require__(
|
11251
|
+
var uint_1 = __nccwpck_require__(9855);
|
11252
|
+
var buffer_1 = __nccwpck_require__(9316);
|
11253
11253
|
/**
|
11254
11254
|
* Derived UInt class for serializing/deserializing 16 bit UInt
|
11255
11255
|
*/
|
@@ -11294,7 +11294,7 @@ exports.UInt16 = UInt16;
|
|
11294
11294
|
|
11295
11295
|
/***/ }),
|
11296
11296
|
|
11297
|
-
/***/
|
11297
|
+
/***/ 428:
|
11298
11298
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
11299
11299
|
|
11300
11300
|
"use strict";
|
@@ -11314,8 +11314,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
11314
11314
|
})();
|
11315
11315
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
11316
11316
|
exports.UInt32 = void 0;
|
11317
|
-
var uint_1 = __nccwpck_require__(
|
11318
|
-
var buffer_1 = __nccwpck_require__(
|
11317
|
+
var uint_1 = __nccwpck_require__(9855);
|
11318
|
+
var buffer_1 = __nccwpck_require__(9316);
|
11319
11319
|
/**
|
11320
11320
|
* Derived UInt class for serializing/deserializing 32 bit UInt
|
11321
11321
|
*/
|
@@ -11365,7 +11365,7 @@ exports.UInt32 = UInt32;
|
|
11365
11365
|
|
11366
11366
|
/***/ }),
|
11367
11367
|
|
11368
|
-
/***/
|
11368
|
+
/***/ 1678:
|
11369
11369
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
11370
11370
|
|
11371
11371
|
"use strict";
|
@@ -11385,10 +11385,10 @@ var __extends = (this && this.__extends) || (function () {
|
|
11385
11385
|
})();
|
11386
11386
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
11387
11387
|
exports.UInt64 = void 0;
|
11388
|
-
var uint_1 = __nccwpck_require__(
|
11389
|
-
var bigInt = __nccwpck_require__(
|
11390
|
-
var big_integer_1 = __nccwpck_require__(
|
11391
|
-
var buffer_1 = __nccwpck_require__(
|
11388
|
+
var uint_1 = __nccwpck_require__(9855);
|
11389
|
+
var bigInt = __nccwpck_require__(8324);
|
11390
|
+
var big_integer_1 = __nccwpck_require__(8324);
|
11391
|
+
var buffer_1 = __nccwpck_require__(9316);
|
11392
11392
|
var HEX_REGEX = /^[a-fA-F0-9]{1,16}$/;
|
11393
11393
|
var mask = bigInt(0x00000000ffffffff);
|
11394
11394
|
/**
|
@@ -11474,7 +11474,7 @@ exports.UInt64 = UInt64;
|
|
11474
11474
|
|
11475
11475
|
/***/ }),
|
11476
11476
|
|
11477
|
-
/***/
|
11477
|
+
/***/ 5049:
|
11478
11478
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
11479
11479
|
|
11480
11480
|
"use strict";
|
@@ -11494,8 +11494,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
11494
11494
|
})();
|
11495
11495
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
11496
11496
|
exports.UInt8 = void 0;
|
11497
|
-
var uint_1 = __nccwpck_require__(
|
11498
|
-
var buffer_1 = __nccwpck_require__(
|
11497
|
+
var uint_1 = __nccwpck_require__(9855);
|
11498
|
+
var buffer_1 = __nccwpck_require__(9316);
|
11499
11499
|
/**
|
11500
11500
|
* Derived UInt class for serializing/deserializing 8 bit UInt
|
11501
11501
|
*/
|
@@ -11540,7 +11540,7 @@ exports.UInt8 = UInt8;
|
|
11540
11540
|
|
11541
11541
|
/***/ }),
|
11542
11542
|
|
11543
|
-
/***/
|
11543
|
+
/***/ 9855:
|
11544
11544
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
11545
11545
|
|
11546
11546
|
"use strict";
|
@@ -11560,7 +11560,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
11560
11560
|
})();
|
11561
11561
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
11562
11562
|
exports.UInt = void 0;
|
11563
|
-
var serialized_type_1 = __nccwpck_require__(
|
11563
|
+
var serialized_type_1 = __nccwpck_require__(272);
|
11564
11564
|
/**
|
11565
11565
|
* Compare numbers and bigInts n1 and n2
|
11566
11566
|
*
|
@@ -11604,7 +11604,7 @@ exports.UInt = UInt;
|
|
11604
11604
|
|
11605
11605
|
/***/ }),
|
11606
11606
|
|
11607
|
-
/***/
|
11607
|
+
/***/ 4509:
|
11608
11608
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
11609
11609
|
|
11610
11610
|
"use strict";
|
@@ -11624,9 +11624,9 @@ var __extends = (this && this.__extends) || (function () {
|
|
11624
11624
|
})();
|
11625
11625
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
11626
11626
|
exports.Vector256 = void 0;
|
11627
|
-
var serialized_type_1 = __nccwpck_require__(
|
11628
|
-
var hash_256_1 = __nccwpck_require__(
|
11629
|
-
var binary_serializer_1 = __nccwpck_require__(
|
11627
|
+
var serialized_type_1 = __nccwpck_require__(272);
|
11628
|
+
var hash_256_1 = __nccwpck_require__(1239);
|
11629
|
+
var binary_serializer_1 = __nccwpck_require__(4432);
|
11630
11630
|
/**
|
11631
11631
|
* TypeGuard for Array<string>
|
11632
11632
|
*/
|
@@ -11701,22 +11701,21 @@ exports.Vector256 = Vector256;
|
|
11701
11701
|
|
11702
11702
|
/***/ }),
|
11703
11703
|
|
11704
|
-
/***/
|
11704
|
+
/***/ 6966:
|
11705
11705
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
11706
11706
|
|
11707
11707
|
const codec = __nccwpck_require__(597);
|
11708
11708
|
const { Buffer } = __nccwpck_require__(4300);
|
11709
|
-
const { XrplApi } = __nccwpck_require__(
|
11710
|
-
const { XrplAccount } = __nccwpck_require__(
|
11711
|
-
const { XrplApiEvents } = __nccwpck_require__(
|
11712
|
-
const { EvernodeEvents, MemoTypes, MemoFormats, EvernodeConstants, HookStateKeys } = __nccwpck_require__(
|
11713
|
-
const { DefaultValues } = __nccwpck_require__(
|
11714
|
-
const { EncryptionHelper } = __nccwpck_require__(
|
11715
|
-
const { EventEmitter } = __nccwpck_require__(
|
11716
|
-
const { UtilHelpers } = __nccwpck_require__(
|
11717
|
-
const { FirestoreHandler } = __nccwpck_require__(
|
11718
|
-
const {
|
11719
|
-
const { StateHelpers } = __nccwpck_require__(3860);
|
11709
|
+
const { XrplApi } = __nccwpck_require__(7024);
|
11710
|
+
const { XrplAccount } = __nccwpck_require__(2696);
|
11711
|
+
const { XrplApiEvents, XrplConstants } = __nccwpck_require__(4223);
|
11712
|
+
const { EvernodeEvents, MemoTypes, MemoFormats, EvernodeConstants, HookStateKeys } = __nccwpck_require__(9417);
|
11713
|
+
const { DefaultValues } = __nccwpck_require__(1691);
|
11714
|
+
const { EncryptionHelper } = __nccwpck_require__(8727);
|
11715
|
+
const { EventEmitter } = __nccwpck_require__(4103);
|
11716
|
+
const { UtilHelpers } = __nccwpck_require__(7837);
|
11717
|
+
const { FirestoreHandler } = __nccwpck_require__(3737);
|
11718
|
+
const { StateHelpers } = __nccwpck_require__(7111);
|
11720
11719
|
|
11721
11720
|
class BaseEvernodeClient {
|
11722
11721
|
|
@@ -11828,16 +11827,27 @@ class BaseEvernodeClient {
|
|
11828
11827
|
|
11829
11828
|
async #getEvernodeConfig() {
|
11830
11829
|
let states = await this.getHookStates();
|
11831
|
-
|
11832
|
-
evrIssuerAddress:
|
11833
|
-
foundationAddress:
|
11834
|
-
hostRegFee:
|
11835
|
-
momentSize:
|
11836
|
-
hostHeartbeatFreq:
|
11837
|
-
momentBaseIdx:
|
11838
|
-
purchaserTargetPrice:
|
11839
|
-
leaseAcquireWindow:
|
11840
|
-
|
11830
|
+
const configStateKeys = {
|
11831
|
+
evrIssuerAddress: HookStateKeys.EVR_ISSUER_ADDR,
|
11832
|
+
foundationAddress: HookStateKeys.FOUNDATION_ADDR,
|
11833
|
+
hostRegFee: HookStateKeys.HOST_REG_FEE,
|
11834
|
+
momentSize: HookStateKeys.MOMENT_SIZE,
|
11835
|
+
hostHeartbeatFreq: HookStateKeys.HOST_HEARTBEAT_FREQ,
|
11836
|
+
momentBaseIdx: HookStateKeys.MOMENT_BASE_IDX,
|
11837
|
+
purchaserTargetPrice: HookStateKeys.PURCHASER_TARGET_PRICE,
|
11838
|
+
leaseAcquireWindow: HookStateKeys.LEASE_ACQUIRE_WINDOW,
|
11839
|
+
rewardInfo: HookStateKeys.REWARD_INFO,
|
11840
|
+
rewardConfiguaration: HookStateKeys.REWARD_CONFIGURATION,
|
11841
|
+
hostCount: HookStateKeys.HOST_COUNT
|
11842
|
+
}
|
11843
|
+
let config = {};
|
11844
|
+
for (const [key, value] of Object.entries(configStateKeys)) {
|
11845
|
+
const stateKey = Buffer.from(value, 'hex');
|
11846
|
+
const stateData = Buffer.from(UtilHelpers.getStateData(states, value), 'hex');
|
11847
|
+
const decoded = StateHelpers.decodeStateData(stateKey, stateData);
|
11848
|
+
config[key] = decoded.value;
|
11849
|
+
}
|
11850
|
+
return config;
|
11841
11851
|
}
|
11842
11852
|
|
11843
11853
|
async refreshConfig() {
|
@@ -12055,6 +12065,19 @@ class BaseEvernodeClient {
|
|
12055
12065
|
}
|
12056
12066
|
}
|
12057
12067
|
}
|
12068
|
+
else if (tx.Memos.length >= 1 &&
|
12069
|
+
tx.Memos[0].type === MemoTypes.DEAD_HOST_PRUNE && tx.Memos[0].format === MemoFormats.HEX && tx.Memos[0].data) {
|
12070
|
+
|
12071
|
+
const addrsBuf = Buffer.from(tx.Memos[0].data, 'hex');
|
12072
|
+
|
12073
|
+
return {
|
12074
|
+
name: EvernodeEvents.DeadHostPrune,
|
12075
|
+
data: {
|
12076
|
+
transaction: tx,
|
12077
|
+
host: codec.encodeAccountID(addrsBuf)
|
12078
|
+
}
|
12079
|
+
}
|
12080
|
+
}
|
12058
12081
|
|
12059
12082
|
return null;
|
12060
12083
|
}
|
@@ -12062,17 +12085,26 @@ class BaseEvernodeClient {
|
|
12062
12085
|
// To get Host details from Hook States.
|
12063
12086
|
async getHostInfo(hostAddress = this.xrplAcc.address) {
|
12064
12087
|
try {
|
12065
|
-
const
|
12066
|
-
const
|
12067
|
-
const
|
12068
|
-
const
|
12069
|
-
if (
|
12070
|
-
const
|
12071
|
-
const
|
12072
|
-
|
12073
|
-
(
|
12074
|
-
(
|
12075
|
-
|
12088
|
+
const addrStateKey = StateHelpers.generateHostAddrStateKey(hostAddress);
|
12089
|
+
const addrStateIndex = StateHelpers.getHookStateIndex(this.registryAddress, addrStateKey);
|
12090
|
+
const addrLedgerEntry = await this.xrplApi.getLedgerEntry(addrStateIndex);
|
12091
|
+
const addrStateData = addrLedgerEntry?.HookStateData;
|
12092
|
+
if (addrStateData) {
|
12093
|
+
const addrStateDecoded = StateHelpers.decodeHostAddressState(Buffer.from(addrStateKey, 'hex'), Buffer.from(addrStateData, 'hex'));
|
12094
|
+
const curMomentStartIdx = await this.getMomentStartIndex();
|
12095
|
+
addrStateDecoded.active = (addrStateDecoded.lastHeartbeatLedger > (this.config.hostHeartbeatFreq * this.config.momentSize) ?
|
12096
|
+
(addrStateDecoded.lastHeartbeatLedger >= (curMomentStartIdx - (this.config.hostHeartbeatFreq * this.config.momentSize))) :
|
12097
|
+
(addrStateDecoded.lastHeartbeatLedger > 0))
|
12098
|
+
|
12099
|
+
const nftIdStatekey = StateHelpers.generateTokenIdStateKey(addrStateDecoded.nfTokenId);
|
12100
|
+
const nftIdStateIndex = StateHelpers.getHookStateIndex(this.registryAddress, nftIdStatekey);
|
12101
|
+
const nftIdLedgerEntry = await this.xrplApi.getLedgerEntry(nftIdStateIndex);
|
12102
|
+
|
12103
|
+
const nftIdStateData = nftIdLedgerEntry?.HookStateData;
|
12104
|
+
if (nftIdStateData) {
|
12105
|
+
const nftIdStateDecoded = StateHelpers.decodeTokenIdState(Buffer.from(nftIdStateData, 'hex'));
|
12106
|
+
return { ...addrStateDecoded, ...nftIdStateDecoded };
|
12107
|
+
}
|
12076
12108
|
}
|
12077
12109
|
}
|
12078
12110
|
catch (e) {
|
@@ -12136,6 +12168,22 @@ class BaseEvernodeClient {
|
|
12136
12168
|
|
12137
12169
|
return fullHostList;
|
12138
12170
|
}
|
12171
|
+
|
12172
|
+
// To prune an inactive host/
|
12173
|
+
async pruneDeadHost(hostAddress) {
|
12174
|
+
if (this.xrplAcc.address === this.registryAddress)
|
12175
|
+
throw 'Invalid function call';
|
12176
|
+
|
12177
|
+
let memoData = Buffer.allocUnsafe(20);
|
12178
|
+
codec.decodeAccountID(hostAddress).copy(memoData);
|
12179
|
+
|
12180
|
+
await this.xrplAcc.makePayment(this.registryAddress,
|
12181
|
+
XrplConstants.MIN_XRP_AMOUNT,
|
12182
|
+
XrplConstants.XRP,
|
12183
|
+
null,
|
12184
|
+
[{ type: MemoTypes.DEAD_HOST_PRUNE, format: MemoFormats.HEX, data: memoData.toString('hex') }]);
|
12185
|
+
|
12186
|
+
}
|
12139
12187
|
}
|
12140
12188
|
|
12141
12189
|
module.exports = {
|
@@ -12144,18 +12192,18 @@ module.exports = {
|
|
12144
12192
|
|
12145
12193
|
/***/ }),
|
12146
12194
|
|
12147
|
-
/***/
|
12195
|
+
/***/ 3148:
|
12148
12196
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
12149
12197
|
|
12150
|
-
const { XrplConstants } = __nccwpck_require__(
|
12151
|
-
const { BaseEvernodeClient } = __nccwpck_require__(
|
12152
|
-
const { EvernodeEvents, EvernodeConstants, MemoFormats, MemoTypes, ErrorCodes } = __nccwpck_require__(
|
12153
|
-
const { XrplAccount } = __nccwpck_require__(
|
12154
|
-
const { EncryptionHelper } = __nccwpck_require__(
|
12198
|
+
const { XrplConstants } = __nccwpck_require__(4223);
|
12199
|
+
const { BaseEvernodeClient } = __nccwpck_require__(6966);
|
12200
|
+
const { EvernodeEvents, EvernodeConstants, MemoFormats, MemoTypes, ErrorCodes } = __nccwpck_require__(9417);
|
12201
|
+
const { XrplAccount } = __nccwpck_require__(2696);
|
12202
|
+
const { EncryptionHelper } = __nccwpck_require__(8727);
|
12155
12203
|
const { Buffer } = __nccwpck_require__(4300);
|
12156
12204
|
const codec = __nccwpck_require__(597);
|
12157
|
-
const { XflHelpers } = __nccwpck_require__(
|
12158
|
-
const { EvernodeHelpers } = __nccwpck_require__(
|
12205
|
+
const { XflHelpers } = __nccwpck_require__(484);
|
12206
|
+
const { EvernodeHelpers } = __nccwpck_require__(9877);
|
12159
12207
|
|
12160
12208
|
const OFFER_WAIT_TIMEOUT = 60;
|
12161
12209
|
|
@@ -12507,12 +12555,12 @@ module.exports = {
|
|
12507
12555
|
|
12508
12556
|
/***/ }),
|
12509
12557
|
|
12510
|
-
/***/
|
12558
|
+
/***/ 6352:
|
12511
12559
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
12512
12560
|
|
12513
|
-
const { EvernodeEvents } = __nccwpck_require__(
|
12514
|
-
const { BaseEvernodeClient } = __nccwpck_require__(
|
12515
|
-
const { DefaultValues } = __nccwpck_require__(
|
12561
|
+
const { EvernodeEvents } = __nccwpck_require__(9417);
|
12562
|
+
const { BaseEvernodeClient } = __nccwpck_require__(6966);
|
12563
|
+
const { DefaultValues } = __nccwpck_require__(1691);
|
12516
12564
|
|
12517
12565
|
const RegistryEvents = {
|
12518
12566
|
HostRegistered: EvernodeEvents.HostRegistered,
|
@@ -12520,7 +12568,8 @@ const RegistryEvents = {
|
|
12520
12568
|
HostRegUpdated: EvernodeEvents.HostRegUpdated,
|
12521
12569
|
RegistryInitialized: EvernodeEvents.RegistryInitialized,
|
12522
12570
|
Heartbeat: EvernodeEvents.Heartbeat,
|
12523
|
-
HostPostDeregistered: EvernodeEvents.HostPostDeregistered
|
12571
|
+
HostPostDeregistered: EvernodeEvents.HostPostDeregistered,
|
12572
|
+
DeadHostPrune: EvernodeEvents.DeadHostPrune
|
12524
12573
|
}
|
12525
12574
|
|
12526
12575
|
class RegistryClient extends BaseEvernodeClient {
|
@@ -12556,18 +12605,18 @@ module.exports = {
|
|
12556
12605
|
|
12557
12606
|
/***/ }),
|
12558
12607
|
|
12559
|
-
/***/
|
12608
|
+
/***/ 2651:
|
12560
12609
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
12561
12610
|
|
12562
|
-
const { BaseEvernodeClient } = __nccwpck_require__(
|
12563
|
-
const { EvernodeEvents, MemoFormats, MemoTypes, ErrorCodes, ErrorReasons, EvernodeConstants } = __nccwpck_require__(
|
12564
|
-
const { EventEmitter } = __nccwpck_require__(
|
12565
|
-
const { EncryptionHelper } = __nccwpck_require__(
|
12566
|
-
const { XrplAccount } = __nccwpck_require__(
|
12567
|
-
const { UtilHelpers } = __nccwpck_require__(
|
12611
|
+
const { BaseEvernodeClient } = __nccwpck_require__(6966);
|
12612
|
+
const { EvernodeEvents, MemoFormats, MemoTypes, ErrorCodes, ErrorReasons, EvernodeConstants } = __nccwpck_require__(9417);
|
12613
|
+
const { EventEmitter } = __nccwpck_require__(4103);
|
12614
|
+
const { EncryptionHelper } = __nccwpck_require__(8727);
|
12615
|
+
const { XrplAccount } = __nccwpck_require__(2696);
|
12616
|
+
const { UtilHelpers } = __nccwpck_require__(7837);
|
12568
12617
|
const { Buffer } = __nccwpck_require__(4300);
|
12569
12618
|
const codec = __nccwpck_require__(597);
|
12570
|
-
const { EvernodeHelpers } = __nccwpck_require__(
|
12619
|
+
const { EvernodeHelpers } = __nccwpck_require__(9877);
|
12571
12620
|
|
12572
12621
|
const ACQUIRE_WATCH_PREFIX = 'acquire_';
|
12573
12622
|
const EXTEND_WATCH_PREFIX = 'extend_';
|
@@ -12628,9 +12677,9 @@ class TenantClient extends BaseEvernodeClient {
|
|
12628
12677
|
|
12629
12678
|
// Check whether active.
|
12630
12679
|
const hostInfo = await this.getHostInfo(host.address);
|
12631
|
-
if (hostInfo)
|
12680
|
+
if (!hostInfo)
|
12632
12681
|
throw { reason: ErrorReasons.HOST_INVALID, error: "Host is not registered." };
|
12633
|
-
else if (hostInfo.active)
|
12682
|
+
else if (!hostInfo.active)
|
12634
12683
|
throw { reason: ErrorReasons.HOST_INACTIVE, error: "Host is not active." };
|
12635
12684
|
|
12636
12685
|
return host;
|
@@ -12770,7 +12819,7 @@ module.exports = {
|
|
12770
12819
|
|
12771
12820
|
/***/ }),
|
12772
12821
|
|
12773
|
-
/***/
|
12822
|
+
/***/ 1691:
|
12774
12823
|
/***/ ((module) => {
|
12775
12824
|
|
12776
12825
|
const DefaultValues = {
|
@@ -12797,7 +12846,7 @@ module.exports = {
|
|
12797
12846
|
|
12798
12847
|
/***/ }),
|
12799
12848
|
|
12800
|
-
/***/
|
12849
|
+
/***/ 5765:
|
12801
12850
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
12802
12851
|
|
12803
12852
|
// Code taken from https://github.com/bitchan/eccrypto/blob/master/browser.js
|
@@ -13061,10 +13110,10 @@ exports.decrypt = function (privateKey, opts) {
|
|
13061
13110
|
|
13062
13111
|
/***/ }),
|
13063
13112
|
|
13064
|
-
/***/
|
13113
|
+
/***/ 8727:
|
13065
13114
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
13066
13115
|
|
13067
|
-
const eccrypto = __nccwpck_require__(
|
13116
|
+
const eccrypto = __nccwpck_require__(5765) // Using local copy of the eccrypto code file.
|
13068
13117
|
|
13069
13118
|
class EncryptionHelper {
|
13070
13119
|
// Offsets of the properties in the encrypted buffer.
|
@@ -13108,7 +13157,7 @@ module.exports = {
|
|
13108
13157
|
|
13109
13158
|
/***/ }),
|
13110
13159
|
|
13111
|
-
/***/
|
13160
|
+
/***/ 4103:
|
13112
13161
|
/***/ ((module) => {
|
13113
13162
|
|
13114
13163
|
class EventEmitter {
|
@@ -13159,7 +13208,7 @@ module.exports = {
|
|
13159
13208
|
|
13160
13209
|
/***/ }),
|
13161
13210
|
|
13162
|
-
/***/
|
13211
|
+
/***/ 9417:
|
13163
13212
|
/***/ ((module) => {
|
13164
13213
|
|
13165
13214
|
const EvernodeConstants = {
|
@@ -13185,7 +13234,8 @@ const MemoTypes = {
|
|
13185
13234
|
EXTEND_REF: 'evnExtendRef',
|
13186
13235
|
REGISTRY_INIT: 'evnInitialize',
|
13187
13236
|
REFUND: 'evnRefund',
|
13188
|
-
REFUND_REF: 'evnRefundRef'
|
13237
|
+
REFUND_REF: 'evnRefundRef',
|
13238
|
+
DEAD_HOST_PRUNE: 'evnDeadHostPrune'
|
13189
13239
|
}
|
13190
13240
|
|
13191
13241
|
const MemoFormats = {
|
@@ -13223,11 +13273,15 @@ const HookStateKeys = {
|
|
13223
13273
|
HOST_HEARTBEAT_FREQ: "4556520100000000000000000000000000000000000000000000000000000006",
|
13224
13274
|
PURCHASER_TARGET_PRICE: "4556520100000000000000000000000000000000000000000000000000000007",
|
13225
13275
|
LEASE_ACQUIRE_WINDOW: "4556520100000000000000000000000000000000000000000000000000000008",
|
13276
|
+
REWARD_CONFIGURATION: "4556520100000000000000000000000000000000000000000000000000000009",
|
13277
|
+
MAX_TOLERABLE_DOWNTIME: "455652010000000000000000000000000000000000000000000000000000000A",
|
13278
|
+
|
13226
13279
|
// Singleton
|
13227
13280
|
HOST_COUNT: "4556523200000000000000000000000000000000000000000000000000000000",
|
13228
13281
|
MOMENT_BASE_IDX: "4556523300000000000000000000000000000000000000000000000000000000",
|
13229
13282
|
HOST_REG_FEE: "4556523400000000000000000000000000000000000000000000000000000000",
|
13230
13283
|
MAX_REG: "4556523500000000000000000000000000000000000000000000000000000000",
|
13284
|
+
REWARD_INFO: "4556523600000000000000000000000000000000000000000000000000000000",
|
13231
13285
|
|
13232
13286
|
// Prefixes
|
13233
13287
|
PREFIX_HOST_TOKENID: "45565202",
|
@@ -13247,7 +13301,8 @@ const EvernodeEvents = {
|
|
13247
13301
|
ExtendError: "ExtendError",
|
13248
13302
|
HostRegUpdated: "HostRegUpdated",
|
13249
13303
|
HostReRegistered: "HostReRegistered",
|
13250
|
-
RegistryInitialized: "RegistryInitialized"
|
13304
|
+
RegistryInitialized: "RegistryInitialized",
|
13305
|
+
DeadHostPrune: "DeadHostPrune"
|
13251
13306
|
}
|
13252
13307
|
|
13253
13308
|
module.exports = {
|
@@ -13262,10 +13317,10 @@ module.exports = {
|
|
13262
13317
|
|
13263
13318
|
/***/ }),
|
13264
13319
|
|
13265
|
-
/***/
|
13320
|
+
/***/ 9877:
|
13266
13321
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
13267
13322
|
|
13268
|
-
const { EvernodeConstants } = __nccwpck_require__(
|
13323
|
+
const { EvernodeConstants } = __nccwpck_require__(9417);
|
13269
13324
|
|
13270
13325
|
class EvernodeHelpers {
|
13271
13326
|
static async getLeaseOffers(xrplAcc) {
|
@@ -13282,11 +13337,11 @@ module.exports = {
|
|
13282
13337
|
|
13283
13338
|
/***/ }),
|
13284
13339
|
|
13285
|
-
/***/
|
13340
|
+
/***/ 3737:
|
13286
13341
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
13287
13342
|
|
13288
13343
|
const https = __nccwpck_require__(5687);
|
13289
|
-
const { DefaultValues } = __nccwpck_require__(
|
13344
|
+
const { DefaultValues } = __nccwpck_require__(1691);
|
13290
13345
|
|
13291
13346
|
const FirestoreOperations = {
|
13292
13347
|
EQUAL: 'EQUAL',
|
@@ -13320,6 +13375,13 @@ class FirestoreHandler {
|
|
13320
13375
|
case 'floatValue':
|
13321
13376
|
parsed = parseFloat(value[type]);
|
13322
13377
|
break;
|
13378
|
+
case 'mapValue':
|
13379
|
+
parsed = {};
|
13380
|
+
for (const [subKey, subValue] of Object.entries(value[type].fields)) {
|
13381
|
+
const field = this.#parseValue(subKey, subValue);
|
13382
|
+
parsed[field.key] = field.value;
|
13383
|
+
}
|
13384
|
+
break;
|
13323
13385
|
default:
|
13324
13386
|
parsed = value[type];
|
13325
13387
|
break;
|
@@ -13527,9 +13589,32 @@ class FirestoreHandler {
|
|
13527
13589
|
convertValue(key, value) {
|
13528
13590
|
// Convert camelCase to snake_case.
|
13529
13591
|
const uKey = key.replace(/([A-Z])/g, function (g) { return `_${g[0].toLocaleLowerCase()}`; });
|
13530
|
-
|
13592
|
+
let val = {};
|
13593
|
+
let type
|
13594
|
+
switch (typeof value) {
|
13595
|
+
case 'number':
|
13596
|
+
type = (value % 1 > 0 ? 'float' : 'integer');
|
13597
|
+
val = value;
|
13598
|
+
break;
|
13599
|
+
case 'object':
|
13600
|
+
type = 'map';
|
13601
|
+
val = {
|
13602
|
+
fields: {}
|
13603
|
+
}
|
13604
|
+
// Prepare the firestore write body with the given data object.
|
13605
|
+
for (const [subKey, subValue] of Object.entries(value)) {
|
13606
|
+
const field = this.convertValue(subKey, subValue);
|
13607
|
+
val.fields[field.key] = field.value;
|
13608
|
+
}
|
13609
|
+
break;
|
13610
|
+
default:
|
13611
|
+
type = 'string';
|
13612
|
+
val = value;
|
13613
|
+
break;
|
13614
|
+
}
|
13615
|
+
type = `${type}Value`;
|
13531
13616
|
let obj = {};
|
13532
|
-
obj[type] =
|
13617
|
+
obj[type] = val;
|
13533
13618
|
return { key: uKey, value: obj };
|
13534
13619
|
}
|
13535
13620
|
|
@@ -13567,21 +13652,21 @@ module.exports = {
|
|
13567
13652
|
|
13568
13653
|
/***/ }),
|
13569
13654
|
|
13570
|
-
/***/
|
13655
|
+
/***/ 168:
|
13571
13656
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
13572
13657
|
|
13573
|
-
const { Defaults } = __nccwpck_require__(
|
13574
|
-
const { RegistryClient, RegistryEvents } = __nccwpck_require__(
|
13575
|
-
const { TenantClient, TenantEvents } = __nccwpck_require__(
|
13576
|
-
const { HostClient, HostEvents } = __nccwpck_require__(
|
13577
|
-
const { XrplApi } = __nccwpck_require__(
|
13578
|
-
const { XrplApiEvents, XrplConstants } = __nccwpck_require__(
|
13579
|
-
const { XrplAccount } = __nccwpck_require__(
|
13580
|
-
const { EvernodeConstants, HookStateKeys, MemoTypes } = __nccwpck_require__(
|
13581
|
-
const { XflHelpers } = __nccwpck_require__(
|
13582
|
-
const { FirestoreHandler } = __nccwpck_require__(
|
13583
|
-
const { StateHelpers } = __nccwpck_require__(
|
13584
|
-
const { UtilHelpers } = __nccwpck_require__(
|
13658
|
+
const { Defaults } = __nccwpck_require__(1691);
|
13659
|
+
const { RegistryClient, RegistryEvents } = __nccwpck_require__(6352);
|
13660
|
+
const { TenantClient, TenantEvents } = __nccwpck_require__(2651);
|
13661
|
+
const { HostClient, HostEvents } = __nccwpck_require__(3148);
|
13662
|
+
const { XrplApi } = __nccwpck_require__(7024);
|
13663
|
+
const { XrplApiEvents, XrplConstants } = __nccwpck_require__(4223);
|
13664
|
+
const { XrplAccount } = __nccwpck_require__(2696);
|
13665
|
+
const { EvernodeConstants, HookStateKeys, MemoTypes } = __nccwpck_require__(9417);
|
13666
|
+
const { XflHelpers } = __nccwpck_require__(484);
|
13667
|
+
const { FirestoreHandler } = __nccwpck_require__(3737);
|
13668
|
+
const { StateHelpers } = __nccwpck_require__(7111);
|
13669
|
+
const { UtilHelpers } = __nccwpck_require__(7837);
|
13585
13670
|
|
13586
13671
|
module.exports = {
|
13587
13672
|
RegistryClient,
|
@@ -13606,16 +13691,27 @@ module.exports = {
|
|
13606
13691
|
|
13607
13692
|
/***/ }),
|
13608
13693
|
|
13609
|
-
/***/
|
13694
|
+
/***/ 7111:
|
13610
13695
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
13611
13696
|
|
13612
13697
|
const codec = __nccwpck_require__(597);
|
13613
13698
|
const { Buffer } = __nccwpck_require__(4300);
|
13614
|
-
const { HookStateKeys, EvernodeConstants } = __nccwpck_require__(
|
13615
|
-
const { XflHelpers } = __nccwpck_require__(
|
13699
|
+
const { HookStateKeys, EvernodeConstants } = __nccwpck_require__(9417);
|
13700
|
+
const { XflHelpers } = __nccwpck_require__(484);
|
13616
13701
|
const crypto = __nccwpck_require__(6113);
|
13617
13702
|
|
13618
|
-
const NFTOKEN_PREFIX = '
|
13703
|
+
const NFTOKEN_PREFIX = '00000000';
|
13704
|
+
|
13705
|
+
const EPOCH_OFFSET = 0;
|
13706
|
+
const SAVED_MOMENT_OFFSET = 1;
|
13707
|
+
const PREV_MOMENT_ACTIVE_HOST_COUNT_OFFSET = 5;
|
13708
|
+
const CUR_MOMENT_ACTIVE_HOST_COUNT_OFFSET = 9;
|
13709
|
+
const EPOCH_POOL_OFFSET = 13;
|
13710
|
+
|
13711
|
+
const EPOCH_COUNT_OFFSET = 0;
|
13712
|
+
const FIRST_EPOCH_REWARD_QUOTA_OFFSET = 1;
|
13713
|
+
const EPOCH_REWARD_AMOUNT_OFFSET = 5;
|
13714
|
+
const REWARD_START_MOMENT_OFFSET = 9;
|
13619
13715
|
|
13620
13716
|
const HOST_TOKEN_ID_OFFSET = 0;
|
13621
13717
|
const HOST_COUNTRY_CODE_OFFSET = 32;
|
@@ -13671,7 +13767,7 @@ class StateHelpers {
|
|
13671
13767
|
static decodeTokenIdState(stateDataBuf) {
|
13672
13768
|
return {
|
13673
13769
|
address: codec.encodeAccountID(stateDataBuf.slice(HOST_ADDRESS_OFFSET, HOST_CPU_MODEL_NAME_OFFSET)),
|
13674
|
-
cpuModelName: stateDataBuf.slice(HOST_CPU_MODEL_NAME_OFFSET, HOST_CPU_COUNT_OFFSET).toString(),
|
13770
|
+
cpuModelName: stateDataBuf.slice(HOST_CPU_MODEL_NAME_OFFSET, HOST_CPU_COUNT_OFFSET).toString().replace(/\x00+$/, ''), // Remove trailing \x00 characters.
|
13675
13771
|
cpuCount: stateDataBuf.readUInt16BE(HOST_CPU_COUNT_OFFSET),
|
13676
13772
|
cpuMHz: stateDataBuf.readUInt16BE(HOST_CPU_SPEED_OFFSET),
|
13677
13773
|
cpuMicrosec: stateDataBuf.readUInt32BE(HOST_CPU_MICROSEC_OFFSET),
|
@@ -13754,6 +13850,38 @@ class StateHelpers {
|
|
13754
13850
|
value: val
|
13755
13851
|
}
|
13756
13852
|
}
|
13853
|
+
else if (Buffer.from(HookStateKeys.REWARD_CONFIGURATION, 'hex').compare(stateKey) === 0) {
|
13854
|
+
return {
|
13855
|
+
type: this.StateTypes.CONFIGURATION,
|
13856
|
+
key: hexKey,
|
13857
|
+
value: {
|
13858
|
+
epochCount: stateData.readUInt8(EPOCH_COUNT_OFFSET),
|
13859
|
+
firstEpochRewardQuota: stateData.readUInt32BE(FIRST_EPOCH_REWARD_QUOTA_OFFSET),
|
13860
|
+
epochRewardAmount: stateData.readUInt32BE(EPOCH_REWARD_AMOUNT_OFFSET),
|
13861
|
+
rewardStartMoment: stateData.readUInt32BE(REWARD_START_MOMENT_OFFSET)
|
13862
|
+
}
|
13863
|
+
}
|
13864
|
+
}
|
13865
|
+
else if (Buffer.from(HookStateKeys.REWARD_INFO, 'hex').compare(stateKey) === 0) {
|
13866
|
+
return {
|
13867
|
+
type: this.StateTypes.SIGLETON,
|
13868
|
+
key: hexKey,
|
13869
|
+
value: {
|
13870
|
+
epoch: stateData.readUInt8(EPOCH_OFFSET),
|
13871
|
+
savedMoment: stateData.readUInt32BE(SAVED_MOMENT_OFFSET),
|
13872
|
+
prevMomentActiveHostCount: stateData.readUInt32BE(PREV_MOMENT_ACTIVE_HOST_COUNT_OFFSET),
|
13873
|
+
curMomentActiveHostCount: stateData.readUInt32BE(CUR_MOMENT_ACTIVE_HOST_COUNT_OFFSET),
|
13874
|
+
epochPool: XflHelpers.toString(stateData.readBigInt64BE(EPOCH_POOL_OFFSET))
|
13875
|
+
}
|
13876
|
+
}
|
13877
|
+
}
|
13878
|
+
else if (Buffer.from(HookStateKeys.MAX_TOLERABLE_DOWNTIME, 'hex').compare(stateKey) === 0) {
|
13879
|
+
return {
|
13880
|
+
type: this.StateTypes.CONFIGURATION,
|
13881
|
+
key: hexKey,
|
13882
|
+
value: stateData.readUInt16BE()
|
13883
|
+
}
|
13884
|
+
}
|
13757
13885
|
else
|
13758
13886
|
throw { type: 'Validation Error', message: 'Invalid state key.' };
|
13759
13887
|
}
|
@@ -13775,7 +13903,8 @@ class StateHelpers {
|
|
13775
13903
|
else if (Buffer.from(HookStateKeys.HOST_COUNT, 'hex').compare(stateKey) === 0 ||
|
13776
13904
|
Buffer.from(HookStateKeys.MOMENT_BASE_IDX, 'hex').compare(stateKey) === 0 ||
|
13777
13905
|
Buffer.from(HookStateKeys.HOST_REG_FEE, 'hex').compare(stateKey) === 0 ||
|
13778
|
-
Buffer.from(HookStateKeys.MAX_REG, 'hex').compare(stateKey) === 0
|
13906
|
+
Buffer.from(HookStateKeys.MAX_REG, 'hex').compare(stateKey) === 0 ||
|
13907
|
+
Buffer.from(HookStateKeys.REWARD_INFO, 'hex').compare(stateKey) === 0) {
|
13779
13908
|
return {
|
13780
13909
|
key: hexKey,
|
13781
13910
|
type: this.STATE_TYPES.SIGLETON
|
@@ -13788,7 +13917,9 @@ class StateHelpers {
|
|
13788
13917
|
Buffer.from(HookStateKeys.HOST_HEARTBEAT_FREQ, 'hex').compare(stateKey) ||
|
13789
13918
|
Buffer.from(HookStateKeys.MINT_LIMIT, 'hex').compare(stateKey) === 0 ||
|
13790
13919
|
Buffer.from(HookStateKeys.FIXED_REG_FEE, 'hex').compare(stateKey) === 0 ||
|
13791
|
-
Buffer.from(HookStateKeys.LEASE_ACQUIRE_WINDOW, 'hex').compare(stateKey) === 0
|
13920
|
+
Buffer.from(HookStateKeys.LEASE_ACQUIRE_WINDOW, 'hex').compare(stateKey) === 0 ||
|
13921
|
+
Buffer.from(HookStateKeys.REWARD_CONFIGURATION, 'hex').compare(stateKey) === 0 ||
|
13922
|
+
Buffer.from(HookStateKeys.MAX_TOLERABLE_DOWNTIME, 'hex').compare(stateKey) === 0) {
|
13792
13923
|
return {
|
13793
13924
|
key: hexKey,
|
13794
13925
|
type: this.STATE_TYPES.CONFIGURATION
|
@@ -13814,7 +13945,7 @@ class StateHelpers {
|
|
13814
13945
|
let buf = Buffer.allocUnsafe(9);
|
13815
13946
|
buf.writeUInt8(STATE_KEY_TYPES.HOST_ADDR);
|
13816
13947
|
for (let i = 0; i < HOST_ADDR_KEY_ZERO_COUNT; i++) {
|
13817
|
-
buf.writeUInt8(0, i+1);
|
13948
|
+
buf.writeUInt8(0, i + 1);
|
13818
13949
|
}
|
13819
13950
|
|
13820
13951
|
const addrBuf = Buffer.from(codec.decodeAccountID(address), "hex");
|
@@ -13822,7 +13953,7 @@ class StateHelpers {
|
|
13822
13953
|
return stateKeyBuf.toString('hex').toUpperCase();
|
13823
13954
|
}
|
13824
13955
|
|
13825
|
-
static
|
13956
|
+
static getHookStateIndex(hookAccount, stateKey, hookNamespace = EvernodeConstants.HOOK_NAMESPACE) {
|
13826
13957
|
const typeBuf = Buffer.allocUnsafe(2);
|
13827
13958
|
typeBuf.writeInt16BE(HOOK_STATE_LEDGER_TYPE_PREFIX);
|
13828
13959
|
|
@@ -13849,10 +13980,10 @@ module.exports = {
|
|
13849
13980
|
|
13850
13981
|
/***/ }),
|
13851
13982
|
|
13852
|
-
/***/
|
13983
|
+
/***/ 7504:
|
13853
13984
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
13854
13985
|
|
13855
|
-
const { MemoFormats } = __nccwpck_require__(
|
13986
|
+
const { MemoFormats } = __nccwpck_require__(9417);
|
13856
13987
|
|
13857
13988
|
class TransactionHelper {
|
13858
13989
|
|
@@ -13917,12 +14048,12 @@ module.exports = {
|
|
13917
14048
|
|
13918
14049
|
/***/ }),
|
13919
14050
|
|
13920
|
-
/***/
|
14051
|
+
/***/ 7837:
|
13921
14052
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
13922
14053
|
|
13923
14054
|
const { Buffer } = __nccwpck_require__(4300);
|
13924
|
-
const { XflHelpers } = __nccwpck_require__(
|
13925
|
-
const { EvernodeConstants, ErrorReasons } = __nccwpck_require__(
|
14055
|
+
const { XflHelpers } = __nccwpck_require__(484);
|
14056
|
+
const { EvernodeConstants, ErrorReasons } = __nccwpck_require__(9417);
|
13926
14057
|
|
13927
14058
|
// Utility helper functions.
|
13928
14059
|
class UtilHelpers {
|
@@ -13971,7 +14102,7 @@ module.exports = {
|
|
13971
14102
|
|
13972
14103
|
/***/ }),
|
13973
14104
|
|
13974
|
-
/***/
|
14105
|
+
/***/ 484:
|
13975
14106
|
/***/ ((module) => {
|
13976
14107
|
|
13977
14108
|
const minMantissa = 1000000000000000n
|
@@ -14107,18 +14238,18 @@ module.exports = {
|
|
14107
14238
|
|
14108
14239
|
/***/ }),
|
14109
14240
|
|
14110
|
-
/***/
|
14241
|
+
/***/ 2696:
|
14111
14242
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
14112
14243
|
|
14113
14244
|
const xrpl = __nccwpck_require__(4666);
|
14114
14245
|
const kp = __nccwpck_require__(8150);
|
14115
14246
|
const codec = __nccwpck_require__(597);
|
14116
14247
|
const crypto = __nccwpck_require__(6113);
|
14117
|
-
const { XrplConstants } = __nccwpck_require__(
|
14118
|
-
const { TransactionHelper } = __nccwpck_require__(
|
14119
|
-
const { EventEmitter } = __nccwpck_require__(
|
14120
|
-
const { DefaultValues } = __nccwpck_require__(
|
14121
|
-
const xrplCodec = __nccwpck_require__(
|
14248
|
+
const { XrplConstants } = __nccwpck_require__(4223);
|
14249
|
+
const { TransactionHelper } = __nccwpck_require__(7504);
|
14250
|
+
const { EventEmitter } = __nccwpck_require__(4103);
|
14251
|
+
const { DefaultValues } = __nccwpck_require__(1691);
|
14252
|
+
const xrplCodec = __nccwpck_require__(332);
|
14122
14253
|
|
14123
14254
|
class XrplAccount {
|
14124
14255
|
|
@@ -14583,15 +14714,15 @@ module.exports = {
|
|
14583
14714
|
|
14584
14715
|
/***/ }),
|
14585
14716
|
|
14586
|
-
/***/
|
14717
|
+
/***/ 7024:
|
14587
14718
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
14588
14719
|
|
14589
14720
|
const xrpl = __nccwpck_require__(4666);
|
14590
14721
|
const kp = __nccwpck_require__(8150);
|
14591
|
-
const { EventEmitter } = __nccwpck_require__(
|
14592
|
-
const { DefaultValues } = __nccwpck_require__(
|
14593
|
-
const { TransactionHelper } = __nccwpck_require__(
|
14594
|
-
const { XrplApiEvents } = __nccwpck_require__(
|
14722
|
+
const { EventEmitter } = __nccwpck_require__(4103);
|
14723
|
+
const { DefaultValues } = __nccwpck_require__(1691);
|
14724
|
+
const { TransactionHelper } = __nccwpck_require__(7504);
|
14725
|
+
const { XrplApiEvents } = __nccwpck_require__(4223);
|
14595
14726
|
|
14596
14727
|
class XrplApi {
|
14597
14728
|
|
@@ -14842,7 +14973,7 @@ module.exports = {
|
|
14842
14973
|
|
14843
14974
|
/***/ }),
|
14844
14975
|
|
14845
|
-
/***/
|
14976
|
+
/***/ 4223:
|
14846
14977
|
/***/ ((module) => {
|
14847
14978
|
|
14848
14979
|
const XrplApiEvents = {
|
@@ -14991,7 +15122,7 @@ module.exports = JSON.parse('{"TYPES":{"Done":-1,"Unknown":-2,"NotPresent":0,"UI
|
|
14991
15122
|
/******/ // startup
|
14992
15123
|
/******/ // Load entry module and return exports
|
14993
15124
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
14994
|
-
/******/ var __webpack_exports__ = __nccwpck_require__(
|
15125
|
+
/******/ var __webpack_exports__ = __nccwpck_require__(168);
|
14995
15126
|
/******/ module.exports = __webpack_exports__;
|
14996
15127
|
/******/
|
14997
15128
|
/******/ })()
|