xrpl 2.0.3 → 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.
- package/build/xrpl-latest-min.js +1 -1
- package/build/xrpl-latest.js +64 -9
- package/dist/npm/models/common/index.d.ts +8 -0
- package/dist/npm/models/common/index.d.ts.map +1 -1
- package/dist/npm/models/methods/accountNFTs.d.ts +26 -0
- package/dist/npm/models/methods/accountNFTs.d.ts.map +1 -0
- package/dist/npm/models/methods/accountNFTs.js +3 -0
- package/dist/npm/models/methods/accountNFTs.js.map +1 -0
- package/dist/npm/models/methods/index.d.ts +6 -3
- package/dist/npm/models/methods/index.d.ts.map +1 -1
- package/dist/npm/models/methods/nftBuyOffers.d.ts +13 -0
- package/dist/npm/models/methods/nftBuyOffers.d.ts.map +1 -0
- package/dist/npm/models/methods/nftBuyOffers.js +3 -0
- package/dist/npm/models/methods/nftBuyOffers.js.map +1 -0
- package/dist/npm/models/methods/nftSellOffers.d.ts +13 -0
- package/dist/npm/models/methods/nftSellOffers.d.ts.map +1 -0
- package/dist/npm/models/methods/nftSellOffers.js +3 -0
- package/dist/npm/models/methods/nftSellOffers.js.map +1 -0
- package/dist/npm/models/transactions/NFTokenAcceptOffer.d.ts +10 -0
- package/dist/npm/models/transactions/NFTokenAcceptOffer.d.ts.map +1 -0
- package/dist/npm/models/transactions/NFTokenAcceptOffer.js +28 -0
- package/dist/npm/models/transactions/NFTokenAcceptOffer.js.map +1 -0
- package/dist/npm/models/transactions/NFTokenBurn.d.ts +8 -0
- package/dist/npm/models/transactions/NFTokenBurn.d.ts.map +1 -0
- package/dist/npm/models/transactions/NFTokenBurn.js +13 -0
- package/dist/npm/models/transactions/NFTokenBurn.js.map +1 -0
- package/dist/npm/models/transactions/NFTokenCancelOffer.d.ts +7 -0
- package/dist/npm/models/transactions/NFTokenCancelOffer.d.ts.map +1 -0
- package/dist/npm/models/transactions/NFTokenCancelOffer.js +16 -0
- package/dist/npm/models/transactions/NFTokenCancelOffer.js.map +1 -0
- package/dist/npm/models/transactions/NFTokenCreateOffer.d.ts +19 -0
- package/dist/npm/models/transactions/NFTokenCreateOffer.d.ts.map +1 -0
- package/dist/npm/models/transactions/NFTokenCreateOffer.js +47 -0
- package/dist/npm/models/transactions/NFTokenCreateOffer.js.map +1 -0
- package/dist/npm/models/transactions/NFTokenMint.d.ts +23 -0
- package/dist/npm/models/transactions/NFTokenMint.d.ts.map +1 -0
- package/dist/npm/models/transactions/NFTokenMint.js +23 -0
- package/dist/npm/models/transactions/NFTokenMint.js.map +1 -0
- package/dist/npm/models/transactions/accountSet.d.ts +3 -1
- package/dist/npm/models/transactions/accountSet.d.ts.map +1 -1
- package/dist/npm/models/transactions/accountSet.js +1 -0
- package/dist/npm/models/transactions/accountSet.js.map +1 -1
- package/dist/npm/models/transactions/common.d.ts +4 -3
- package/dist/npm/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/models/transactions/common.js +23 -30
- package/dist/npm/models/transactions/common.js.map +1 -1
- package/dist/npm/models/transactions/index.d.ts +5 -0
- package/dist/npm/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/models/transactions/index.js +5 -1
- package/dist/npm/models/transactions/index.js.map +1 -1
- package/dist/npm/models/transactions/transaction.d.ts +6 -1
- package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/models/transactions/transaction.js +20 -0
- package/dist/npm/models/transactions/transaction.js.map +1 -1
- package/dist/npm/sugar/submit.d.ts.map +1 -1
- package/dist/npm/sugar/submit.js +23 -15
- package/dist/npm/sugar/submit.js.map +1 -1
- package/package.json +6 -7
package/build/xrpl-latest.js
CHANGED
@@ -1985,7 +1985,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
1985
1985
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
1986
1986
|
|
1987
1987
|
"use strict";
|
1988
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.TransactionType = exports.TransactionResult = exports.LedgerEntryType = exports.Type = exports.Field = exports.Bytes = void 0;\nvar enums = __webpack_require__(/*! ./definitions.json */ \"../../node_modules/ripple-binary-codec/dist/enums/definitions.json\");\nvar serialized_type_1 = __webpack_require__(/*! ../types/serialized-type */ \"../../node_modules/ripple-binary-codec/dist/types/serialized-type.js\");\nvar buffer_1 = __webpack_require__(/*! buffer/ */ \"../../node_modules/ripple-binary-codec/node_modules/buffer/index.js\");\nvar TYPE_WIDTH = 2;\nvar LEDGER_ENTRY_WIDTH = 2;\nvar TRANSACTION_TYPE_WIDTH = 2;\nvar TRANSACTION_RESULT_WIDTH = 1;\n/*\n * @brief: Serialize a field based on type_code and Field.nth\n */\nfunction fieldHeader(type, nth) {\n var header = [];\n if (type < 16) {\n if (nth < 16) {\n header.push((type << 4) | nth);\n }\n else {\n header.push(type << 4, nth);\n }\n }\n else if (nth < 16) {\n header.push(nth, type);\n }\n else {\n header.push(0, type, nth);\n }\n return buffer_1.Buffer.from(header);\n}\n/*\n * @brief: Bytes, name, and ordinal representing one type, ledger_type, transaction type, or result\n */\nvar Bytes = /** @class */ (function () {\n function Bytes(name, ordinal, ordinalWidth) {\n this.name = name;\n this.ordinal = ordinal;\n this.ordinalWidth = ordinalWidth;\n this.bytes = buffer_1.Buffer.alloc(ordinalWidth);\n for (var i = 0; i < ordinalWidth; i++) {\n this.bytes[ordinalWidth - i - 1] = (ordinal >>> (i * 8)) & 0xff;\n }\n }\n Bytes.prototype.toJSON = function () {\n return this.name;\n };\n Bytes.prototype.toBytesSink = function (sink) {\n sink.put(this.bytes);\n };\n Bytes.prototype.toBytes = function () {\n return this.bytes;\n };\n return Bytes;\n}());\nexports.Bytes = Bytes;\n/*\n * @brief: Collection of Bytes objects, mapping bidirectionally\n */\nvar BytesLookup = /** @class */ (function () {\n function BytesLookup(types, ordinalWidth) {\n var _this = this;\n this.ordinalWidth = ordinalWidth;\n Object.entries(types).forEach(function (_a) {\n var k = _a[0], v = _a[1];\n _this[k] = new Bytes(k, v, ordinalWidth);\n _this[v.toString()] = _this[k];\n });\n }\n BytesLookup.prototype.from = function (value) {\n return value instanceof Bytes ? value : this[value];\n };\n BytesLookup.prototype.fromParser = function (parser) {\n return this.from(parser.readUIntN(this.ordinalWidth).toString());\n };\n return BytesLookup;\n}());\nfunction buildField(_a) {\n var name = _a[0], info = _a[1];\n var typeOrdinal = enums.TYPES[info.type];\n var field = fieldHeader(typeOrdinal, info.nth);\n return {\n name: name,\n nth: info.nth,\n isVariableLengthEncoded: info.isVLEncoded,\n isSerialized: info.isSerialized,\n isSigningField: info.isSigningField,\n ordinal: (typeOrdinal << 16) | info.nth,\n type: new Bytes(info.type, typeOrdinal, TYPE_WIDTH),\n header: field,\n associatedType: serialized_type_1.SerializedType, // For later assignment in ./types/index.js\n };\n}\n/*\n * @brief: The collection of all fields as defined in definitions.json\n */\nvar FieldLookup = /** @class */ (function () {\n function FieldLookup(fields) {\n var _this = this;\n fields.forEach(function (_a) {\n var k = _a[0], v = _a[1];\n _this[k] = buildField([k, v]);\n _this[_this[k].ordinal.toString()] = _this[k];\n });\n }\n FieldLookup.prototype.fromString = function (value) {\n return this[value];\n };\n return FieldLookup;\n}());\nvar Type = new BytesLookup(enums.TYPES, TYPE_WIDTH);\nexports.Type = Type;\nvar LedgerEntryType = new BytesLookup(enums.LEDGER_ENTRY_TYPES, LEDGER_ENTRY_WIDTH);\nexports.LedgerEntryType = LedgerEntryType;\nvar TransactionType = new BytesLookup(enums.TRANSACTION_TYPES, TRANSACTION_TYPE_WIDTH);\nexports.TransactionType = TransactionType;\nvar TransactionResult = new BytesLookup(enums.TRANSACTION_RESULTS, TRANSACTION_RESULT_WIDTH);\nexports.TransactionResult = TransactionResult;\nvar Field = new FieldLookup(enums.FIELDS);\nexports.Field = Field;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://xrpl/../../node_modules/ripple-binary-codec/dist/enums/index.js?");
|
1988
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.TransactionType = exports.TransactionResult = exports.LedgerEntryType = exports.Type = exports.Field = exports.Bytes = exports.TRANSACTION_TYPES = void 0;\nvar enums = __webpack_require__(/*! ./definitions.json */ \"../../node_modules/ripple-binary-codec/dist/enums/definitions.json\");\nvar serialized_type_1 = __webpack_require__(/*! ../types/serialized-type */ \"../../node_modules/ripple-binary-codec/dist/types/serialized-type.js\");\nvar buffer_1 = __webpack_require__(/*! buffer/ */ \"../../node_modules/ripple-binary-codec/node_modules/buffer/index.js\");\n/*\n * @brief: All valid transaction types\n */\nexports.TRANSACTION_TYPES = Object.entries(enums.TRANSACTION_TYPES)\n .filter(function (_a) {\n var _key = _a[0], value = _a[1];\n return value >= 0;\n})\n .map(function (_a) {\n var key = _a[0], _value = _a[1];\n return key;\n});\nvar TYPE_WIDTH = 2;\nvar LEDGER_ENTRY_WIDTH = 2;\nvar TRANSACTION_TYPE_WIDTH = 2;\nvar TRANSACTION_RESULT_WIDTH = 1;\n/*\n * @brief: Serialize a field based on type_code and Field.nth\n */\nfunction fieldHeader(type, nth) {\n var header = [];\n if (type < 16) {\n if (nth < 16) {\n header.push((type << 4) | nth);\n }\n else {\n header.push(type << 4, nth);\n }\n }\n else if (nth < 16) {\n header.push(nth, type);\n }\n else {\n header.push(0, type, nth);\n }\n return buffer_1.Buffer.from(header);\n}\n/*\n * @brief: Bytes, name, and ordinal representing one type, ledger_type, transaction type, or result\n */\nvar Bytes = /** @class */ (function () {\n function Bytes(name, ordinal, ordinalWidth) {\n this.name = name;\n this.ordinal = ordinal;\n this.ordinalWidth = ordinalWidth;\n this.bytes = buffer_1.Buffer.alloc(ordinalWidth);\n for (var i = 0; i < ordinalWidth; i++) {\n this.bytes[ordinalWidth - i - 1] = (ordinal >>> (i * 8)) & 0xff;\n }\n }\n Bytes.prototype.toJSON = function () {\n return this.name;\n };\n Bytes.prototype.toBytesSink = function (sink) {\n sink.put(this.bytes);\n };\n Bytes.prototype.toBytes = function () {\n return this.bytes;\n };\n return Bytes;\n}());\nexports.Bytes = Bytes;\n/*\n * @brief: Collection of Bytes objects, mapping bidirectionally\n */\nvar BytesLookup = /** @class */ (function () {\n function BytesLookup(types, ordinalWidth) {\n var _this = this;\n this.ordinalWidth = ordinalWidth;\n Object.entries(types).forEach(function (_a) {\n var k = _a[0], v = _a[1];\n _this[k] = new Bytes(k, v, ordinalWidth);\n _this[v.toString()] = _this[k];\n });\n }\n BytesLookup.prototype.from = function (value) {\n return value instanceof Bytes ? value : this[value];\n };\n BytesLookup.prototype.fromParser = function (parser) {\n return this.from(parser.readUIntN(this.ordinalWidth).toString());\n };\n return BytesLookup;\n}());\nfunction buildField(_a) {\n var name = _a[0], info = _a[1];\n var typeOrdinal = enums.TYPES[info.type];\n var field = fieldHeader(typeOrdinal, info.nth);\n return {\n name: name,\n nth: info.nth,\n isVariableLengthEncoded: info.isVLEncoded,\n isSerialized: info.isSerialized,\n isSigningField: info.isSigningField,\n ordinal: (typeOrdinal << 16) | info.nth,\n type: new Bytes(info.type, typeOrdinal, TYPE_WIDTH),\n header: field,\n associatedType: serialized_type_1.SerializedType, // For later assignment in ./types/index.js\n };\n}\n/*\n * @brief: The collection of all fields as defined in definitions.json\n */\nvar FieldLookup = /** @class */ (function () {\n function FieldLookup(fields) {\n var _this = this;\n fields.forEach(function (_a) {\n var k = _a[0], v = _a[1];\n _this[k] = buildField([k, v]);\n _this[_this[k].ordinal.toString()] = _this[k];\n });\n }\n FieldLookup.prototype.fromString = function (value) {\n return this[value];\n };\n return FieldLookup;\n}());\nvar Type = new BytesLookup(enums.TYPES, TYPE_WIDTH);\nexports.Type = Type;\nvar LedgerEntryType = new BytesLookup(enums.LEDGER_ENTRY_TYPES, LEDGER_ENTRY_WIDTH);\nexports.LedgerEntryType = LedgerEntryType;\nvar TransactionType = new BytesLookup(enums.TRANSACTION_TYPES, TRANSACTION_TYPE_WIDTH);\nexports.TransactionType = TransactionType;\nvar TransactionResult = new BytesLookup(enums.TRANSACTION_RESULTS, TRANSACTION_RESULT_WIDTH);\nexports.TransactionResult = TransactionResult;\nvar Field = new FieldLookup(enums.FIELDS);\nexports.Field = Field;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://xrpl/../../node_modules/ripple-binary-codec/dist/enums/index.js?");
|
1989
1989
|
|
1990
1990
|
/***/ }),
|
1991
1991
|
|
@@ -2018,7 +2018,7 @@ eval("\nvar __extends = (this && this.__extends) || (function () {\n var exte
|
|
2018
2018
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
2019
2019
|
|
2020
2020
|
"use strict";
|
2021
|
-
eval("\nvar assert = __webpack_require__(/*! assert */ \"../../node_modules/assert/build/assert.js\");\nvar coretypes_1 = __webpack_require__(/*! ./coretypes */ \"../../node_modules/ripple-binary-codec/dist/coretypes.js\");\nvar ledger_hashes_1 = __webpack_require__(/*! ./ledger-hashes */ \"../../node_modules/ripple-binary-codec/dist/ledger-hashes.js\");\nvar 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;\n/**\n * Decode a transaction\n *\n * @param binary hex-string of the encoded transaction\n * @returns the JSON representation of the transaction\n */\nfunction decode(binary) {\n assert.ok(typeof binary === 'string', 'binary must be a hex string');\n return binaryToJSON(binary);\n}\n/**\n * Encode a transaction\n *\n * @param json The JSON representation of a transaction\n * @returns A hex-string of the encoded transaction\n */\nfunction encode(json) {\n assert.ok(typeof json === 'object');\n return serializeObject(json)\n .toString('hex')\n .toUpperCase();\n}\n/**\n * Encode a transaction and prepare for signing\n *\n * @param json JSON object representing the transaction\n * @param signer string representing the account to sign the transaction with\n * @returns a hex string of the encoded transaction\n */\nfunction encodeForSigning(json) {\n assert.ok(typeof json === 'object');\n return signingData(json)\n .toString('hex')\n .toUpperCase();\n}\n/**\n * Encode a transaction and prepare for signing with a claim\n *\n * @param json JSON object representing the transaction\n * @param signer string representing the account to sign the transaction with\n * @returns a hex string of the encoded transaction\n */\nfunction encodeForSigningClaim(json) {\n assert.ok(typeof json === 'object');\n return signingClaimData(json)\n .toString('hex')\n .toUpperCase();\n}\n/**\n * Encode a transaction and prepare for multi-signing\n *\n * @param json JSON object representing the transaction\n * @param signer string representing the account to sign the transaction with\n * @returns a hex string of the encoded transaction\n */\nfunction encodeForMultisigning(json, signer) {\n assert.ok(typeof json === 'object');\n assert.equal(json['SigningPubKey'], '');\n return multiSigningData(json, signer)\n .toString('hex')\n .toUpperCase();\n}\n/**\n * Encode a quality value\n *\n * @param value string representation of a number\n * @returns a hex-string representing the quality\n */\nfunction encodeQuality(value) {\n assert.ok(typeof value === 'string');\n return coretypes_1.quality.encode(value).toString('hex').toUpperCase();\n}\n/**\n * Decode a quality value\n *\n * @param value hex-string of a quality\n * @returns a string representing the quality\n */\nfunction decodeQuality(value) {\n assert.ok(typeof value === 'string');\n return coretypes_1.quality.decode(value).toString();\n}\nmodule.exports = {\n decode: decode,\n encode: encode,\n encodeForSigning: encodeForSigning,\n encodeForSigningClaim: encodeForSigningClaim,\n encodeForMultisigning: encodeForMultisigning,\n encodeQuality: encodeQuality,\n decodeQuality: decodeQuality,\n decodeLedgerData: ledger_hashes_1.decodeLedgerData,\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://xrpl/../../node_modules/ripple-binary-codec/dist/index.js?");
|
2021
|
+
eval("\nvar assert = __webpack_require__(/*! assert */ \"../../node_modules/assert/build/assert.js\");\nvar coretypes_1 = __webpack_require__(/*! ./coretypes */ \"../../node_modules/ripple-binary-codec/dist/coretypes.js\");\nvar ledger_hashes_1 = __webpack_require__(/*! ./ledger-hashes */ \"../../node_modules/ripple-binary-codec/dist/ledger-hashes.js\");\nvar enums_1 = __webpack_require__(/*! ./enums */ \"../../node_modules/ripple-binary-codec/dist/enums/index.js\");\nvar 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;\n/**\n * Decode a transaction\n *\n * @param binary hex-string of the encoded transaction\n * @returns the JSON representation of the transaction\n */\nfunction decode(binary) {\n assert.ok(typeof binary === 'string', 'binary must be a hex string');\n return binaryToJSON(binary);\n}\n/**\n * Encode a transaction\n *\n * @param json The JSON representation of a transaction\n * @returns A hex-string of the encoded transaction\n */\nfunction encode(json) {\n assert.ok(typeof json === 'object');\n return serializeObject(json)\n .toString('hex')\n .toUpperCase();\n}\n/**\n * Encode a transaction and prepare for signing\n *\n * @param json JSON object representing the transaction\n * @param signer string representing the account to sign the transaction with\n * @returns a hex string of the encoded transaction\n */\nfunction encodeForSigning(json) {\n assert.ok(typeof json === 'object');\n return signingData(json)\n .toString('hex')\n .toUpperCase();\n}\n/**\n * Encode a transaction and prepare for signing with a claim\n *\n * @param json JSON object representing the transaction\n * @param signer string representing the account to sign the transaction with\n * @returns a hex string of the encoded transaction\n */\nfunction encodeForSigningClaim(json) {\n assert.ok(typeof json === 'object');\n return signingClaimData(json)\n .toString('hex')\n .toUpperCase();\n}\n/**\n * Encode a transaction and prepare for multi-signing\n *\n * @param json JSON object representing the transaction\n * @param signer string representing the account to sign the transaction with\n * @returns a hex string of the encoded transaction\n */\nfunction encodeForMultisigning(json, signer) {\n assert.ok(typeof json === 'object');\n assert.equal(json['SigningPubKey'], '');\n return multiSigningData(json, signer)\n .toString('hex')\n .toUpperCase();\n}\n/**\n * Encode a quality value\n *\n * @param value string representation of a number\n * @returns a hex-string representing the quality\n */\nfunction encodeQuality(value) {\n assert.ok(typeof value === 'string');\n return coretypes_1.quality.encode(value).toString('hex').toUpperCase();\n}\n/**\n * Decode a quality value\n *\n * @param value hex-string of a quality\n * @returns a string representing the quality\n */\nfunction decodeQuality(value) {\n assert.ok(typeof value === 'string');\n return coretypes_1.quality.decode(value).toString();\n}\nmodule.exports = {\n decode: decode,\n encode: encode,\n encodeForSigning: encodeForSigning,\n encodeForSigningClaim: encodeForSigningClaim,\n encodeForMultisigning: encodeForMultisigning,\n encodeQuality: encodeQuality,\n decodeQuality: decodeQuality,\n decodeLedgerData: ledger_hashes_1.decodeLedgerData,\n TRANSACTION_TYPES: enums_1.TRANSACTION_TYPES,\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://xrpl/../../node_modules/ripple-binary-codec/dist/index.js?");
|
2022
2022
|
|
2023
2023
|
/***/ }),
|
2024
2024
|
|
@@ -2117,7 +2117,7 @@ eval("\nvar __extends = (this && this.__extends) || (function () {\n var exte
|
|
2117
2117
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
2118
2118
|
|
2119
2119
|
"use strict";
|
2120
|
-
eval("\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.Currency = void 0;\nvar hash_160_1 = __webpack_require__(/*! ./hash-160 */ \"../../node_modules/ripple-binary-codec/dist/types/hash-160.js\");\nvar buffer_1 = __webpack_require__(/*! buffer/ */ \"../../node_modules/ripple-binary-codec/node_modules/buffer/index.js\");\nvar ISO_REGEX = /^[A-Z0-9]{3}$/;\nvar HEX_REGEX = /^[A-F0-9]{40}$/;\n/**\n * Convert an ISO code to a currency bytes representation\n */\nfunction isoToBytes(iso) {\n var bytes = buffer_1.Buffer.alloc(20);\n if (iso !== 'XRP') {\n var isoBytes = iso.split('').map(function (c) { return c.charCodeAt(0); });\n bytes.set(isoBytes, 12);\n }\n return bytes;\n}\n/**\n * Tests if ISO is a valid iso code\n */\nfunction isIsoCode(iso) {\n return ISO_REGEX.test(iso);\n}\nfunction isoCodeFromHex(code) {\n var iso = code.toString();\n if (iso === 'XRP') {\n throw new Error('Disallowed currency code: to indicate the currency XRP you must use 20 bytes of 0s');\n }\n if (isIsoCode(iso)) {\n return iso;\n }\n return null;\n}\n/**\n * Tests if hex is a valid hex-string\n */\nfunction isHex(hex) {\n return HEX_REGEX.test(hex);\n}\n/**\n * Tests if a string is a valid representation of a currency\n */\nfunction isStringRepresentation(input) {\n return input.length === 3 || isHex(input);\n}\n/**\n * Tests if a Buffer is a valid representation of a currency\n */\nfunction isBytesArray(bytes) {\n return bytes.byteLength === 20;\n}\n/**\n * Ensures that a value is a valid representation of a currency\n */\nfunction isValidRepresentation(input) {\n return input instanceof buffer_1.Buffer\n ? isBytesArray(input)\n : isStringRepresentation(input);\n}\n/**\n * Generate bytes from a string or buffer representation of a currency\n */\nfunction bytesFromRepresentation(input) {\n if (!isValidRepresentation(input)) {\n throw new Error(\"Unsupported Currency representation: \".concat(input));\n }\n return input.length === 3 ? isoToBytes(input) : buffer_1.Buffer.from(input, 'hex');\n}\n/**\n * Class defining how to encode and decode Currencies\n */\nvar Currency = /** @class */ (function (_super) {\n __extends(Currency, _super);\n function Currency(byteBuf) {\n var _this = _super.call(this, byteBuf !== null && byteBuf !== void 0 ? byteBuf : Currency.XRP.bytes) || this;\n var code = _this.bytes.slice(12, 15);\n if (_this.bytes[0] !== 0) {\n _this._iso = null;\n }\n else if (
|
2120
|
+
eval("\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.Currency = void 0;\nvar hash_160_1 = __webpack_require__(/*! ./hash-160 */ \"../../node_modules/ripple-binary-codec/dist/types/hash-160.js\");\nvar buffer_1 = __webpack_require__(/*! buffer/ */ \"../../node_modules/ripple-binary-codec/node_modules/buffer/index.js\");\nvar ISO_REGEX = /^[A-Z0-9]{3}$/;\nvar HEX_REGEX = /^[A-F0-9]{40}$/;\n/**\n * Convert an ISO code to a currency bytes representation\n */\nfunction isoToBytes(iso) {\n var bytes = buffer_1.Buffer.alloc(20);\n if (iso !== 'XRP') {\n var isoBytes = iso.split('').map(function (c) { return c.charCodeAt(0); });\n bytes.set(isoBytes, 12);\n }\n return bytes;\n}\n/**\n * Tests if ISO is a valid iso code\n */\nfunction isIsoCode(iso) {\n return ISO_REGEX.test(iso);\n}\nfunction isoCodeFromHex(code) {\n var iso = code.toString();\n if (iso === 'XRP') {\n throw new Error('Disallowed currency code: to indicate the currency XRP you must use 20 bytes of 0s');\n }\n if (isIsoCode(iso)) {\n return iso;\n }\n return null;\n}\n/**\n * Tests if hex is a valid hex-string\n */\nfunction isHex(hex) {\n return HEX_REGEX.test(hex);\n}\n/**\n * Tests if a string is a valid representation of a currency\n */\nfunction isStringRepresentation(input) {\n return input.length === 3 || isHex(input);\n}\n/**\n * Tests if a Buffer is a valid representation of a currency\n */\nfunction isBytesArray(bytes) {\n return bytes.byteLength === 20;\n}\n/**\n * Ensures that a value is a valid representation of a currency\n */\nfunction isValidRepresentation(input) {\n return input instanceof buffer_1.Buffer\n ? isBytesArray(input)\n : isStringRepresentation(input);\n}\n/**\n * Generate bytes from a string or buffer representation of a currency\n */\nfunction bytesFromRepresentation(input) {\n if (!isValidRepresentation(input)) {\n throw new Error(\"Unsupported Currency representation: \".concat(input));\n }\n return input.length === 3 ? isoToBytes(input) : buffer_1.Buffer.from(input, 'hex');\n}\n/**\n * Class defining how to encode and decode Currencies\n */\nvar Currency = /** @class */ (function (_super) {\n __extends(Currency, _super);\n function Currency(byteBuf) {\n var _this = _super.call(this, byteBuf !== null && byteBuf !== void 0 ? byteBuf : Currency.XRP.bytes) || this;\n var code = _this.bytes.slice(12, 15);\n if (_this.bytes[0] !== 0) {\n _this._iso = null;\n }\n else if (/^0*$/.test(_this.bytes.toString('hex'))) {\n _this._iso = 'XRP';\n }\n else {\n _this._iso = isoCodeFromHex(code);\n }\n return _this;\n }\n /**\n * Return the ISO code of this currency\n *\n * @returns ISO code if it exists, else null\n */\n Currency.prototype.iso = function () {\n return this._iso;\n };\n /**\n * Constructs a Currency object\n *\n * @param val Currency object or a string representation of a currency\n */\n Currency.from = function (value) {\n if (value instanceof Currency) {\n return value;\n }\n if (typeof value === 'string') {\n return new Currency(bytesFromRepresentation(value));\n }\n throw new Error('Cannot construct Currency from value given');\n };\n /**\n * Gets the JSON representation of a currency\n *\n * @returns JSON representation\n */\n Currency.prototype.toJSON = function () {\n var iso = this.iso();\n if (iso !== null) {\n return iso;\n }\n return this.bytes.toString('hex').toUpperCase();\n };\n Currency.XRP = new Currency(buffer_1.Buffer.alloc(20));\n return Currency;\n}(hash_160_1.Hash160));\nexports.Currency = Currency;\n//# sourceMappingURL=currency.js.map\n\n//# sourceURL=webpack://xrpl/../../node_modules/ripple-binary-codec/dist/types/currency.js?");
|
2121
2121
|
|
2122
2122
|
/***/ }),
|
2123
2123
|
|
@@ -2898,6 +2898,61 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n//#
|
|
2898
2898
|
|
2899
2899
|
/***/ }),
|
2900
2900
|
|
2901
|
+
/***/ "./dist/npm/models/transactions/NFTokenAcceptOffer.js":
|
2902
|
+
/*!************************************************************!*\
|
2903
|
+
!*** ./dist/npm/models/transactions/NFTokenAcceptOffer.js ***!
|
2904
|
+
\************************************************************/
|
2905
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
2906
|
+
|
2907
|
+
"use strict";
|
2908
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.validateNFTokenAcceptOffer = void 0;\nconst errors_1 = __webpack_require__(/*! ../../errors */ \"./dist/npm/errors.js\");\nconst common_1 = __webpack_require__(/*! ./common */ \"./dist/npm/models/transactions/common.js\");\nfunction validateBrokerFee(tx) {\n const value = (0, common_1.parseAmountValue)(tx.BrokerFee);\n if (Number.isNaN(value)) {\n throw new errors_1.ValidationError('NFTokenAcceptOffer: invalid BrokerFee');\n }\n if (value <= 0) {\n throw new errors_1.ValidationError('NFTokenAcceptOffer: BrokerFee must be greater than 0; omit if there is no fee');\n }\n if (tx.SellOffer == null || tx.BuyOffer == null) {\n throw new errors_1.ValidationError('NFTokenAcceptOffer: both SellOffer and BuyOffer must be set if using brokered mode');\n }\n}\nfunction validateNFTokenAcceptOffer(tx) {\n (0, common_1.validateBaseTransaction)(tx);\n if (tx.BrokerFee != null) {\n validateBrokerFee(tx);\n }\n if (tx.SellOffer == null && tx.BuyOffer == null) {\n throw new errors_1.ValidationError('NFTokenAcceptOffer: must set either SellOffer or BuyOffer');\n }\n}\nexports.validateNFTokenAcceptOffer = validateNFTokenAcceptOffer;\n//# sourceMappingURL=NFTokenAcceptOffer.js.map\n\n//# sourceURL=webpack://xrpl/./dist/npm/models/transactions/NFTokenAcceptOffer.js?");
|
2909
|
+
|
2910
|
+
/***/ }),
|
2911
|
+
|
2912
|
+
/***/ "./dist/npm/models/transactions/NFTokenBurn.js":
|
2913
|
+
/*!*****************************************************!*\
|
2914
|
+
!*** ./dist/npm/models/transactions/NFTokenBurn.js ***!
|
2915
|
+
\*****************************************************/
|
2916
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
2917
|
+
|
2918
|
+
"use strict";
|
2919
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.validateNFTokenBurn = void 0;\nconst errors_1 = __webpack_require__(/*! ../../errors */ \"./dist/npm/errors.js\");\nconst common_1 = __webpack_require__(/*! ./common */ \"./dist/npm/models/transactions/common.js\");\nfunction validateNFTokenBurn(tx) {\n (0, common_1.validateBaseTransaction)(tx);\n if (tx.TokenID == null) {\n throw new errors_1.ValidationError('NFTokenBurn: missing field TokenID');\n }\n}\nexports.validateNFTokenBurn = validateNFTokenBurn;\n//# sourceMappingURL=NFTokenBurn.js.map\n\n//# sourceURL=webpack://xrpl/./dist/npm/models/transactions/NFTokenBurn.js?");
|
2920
|
+
|
2921
|
+
/***/ }),
|
2922
|
+
|
2923
|
+
/***/ "./dist/npm/models/transactions/NFTokenCancelOffer.js":
|
2924
|
+
/*!************************************************************!*\
|
2925
|
+
!*** ./dist/npm/models/transactions/NFTokenCancelOffer.js ***!
|
2926
|
+
\************************************************************/
|
2927
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
2928
|
+
|
2929
|
+
"use strict";
|
2930
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.validateNFTokenCancelOffer = void 0;\nconst errors_1 = __webpack_require__(/*! ../../errors */ \"./dist/npm/errors.js\");\nconst common_1 = __webpack_require__(/*! ./common */ \"./dist/npm/models/transactions/common.js\");\nfunction validateNFTokenCancelOffer(tx) {\n (0, common_1.validateBaseTransaction)(tx);\n if (!Array.isArray(tx.TokenOffers)) {\n throw new errors_1.ValidationError('NFTokenCancelOffer: missing field TokenOffers');\n }\n if (tx.TokenOffers.length < 1) {\n throw new errors_1.ValidationError('NFTokenCancelOffer: empty field TokenOffers');\n }\n}\nexports.validateNFTokenCancelOffer = validateNFTokenCancelOffer;\n//# sourceMappingURL=NFTokenCancelOffer.js.map\n\n//# sourceURL=webpack://xrpl/./dist/npm/models/transactions/NFTokenCancelOffer.js?");
|
2931
|
+
|
2932
|
+
/***/ }),
|
2933
|
+
|
2934
|
+
/***/ "./dist/npm/models/transactions/NFTokenCreateOffer.js":
|
2935
|
+
/*!************************************************************!*\
|
2936
|
+
!*** ./dist/npm/models/transactions/NFTokenCreateOffer.js ***!
|
2937
|
+
\************************************************************/
|
2938
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
2939
|
+
|
2940
|
+
"use strict";
|
2941
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.validateNFTokenCreateOffer = exports.NFTokenCreateOfferFlags = void 0;\nconst errors_1 = __webpack_require__(/*! ../../errors */ \"./dist/npm/errors.js\");\nconst utils_1 = __webpack_require__(/*! ../utils */ \"./dist/npm/models/utils/index.js\");\nconst common_1 = __webpack_require__(/*! ./common */ \"./dist/npm/models/transactions/common.js\");\nvar NFTokenCreateOfferFlags;\n(function (NFTokenCreateOfferFlags) {\n NFTokenCreateOfferFlags[NFTokenCreateOfferFlags[\"tfSellToken\"] = 1] = \"tfSellToken\";\n})(NFTokenCreateOfferFlags = exports.NFTokenCreateOfferFlags || (exports.NFTokenCreateOfferFlags = {}));\nfunction validateSellOfferCases(tx) {\n if (tx.Owner != null) {\n throw new errors_1.ValidationError('NFTokenCreateOffer: Owner must not be present for sell offers');\n }\n}\nfunction validateBuyOfferCases(tx) {\n if (tx.Owner == null) {\n throw new errors_1.ValidationError('NFTokenCreateOffer: Owner must be present for buy offers');\n }\n if ((0, common_1.parseAmountValue)(tx.Amount) <= 0) {\n throw new errors_1.ValidationError('NFTokenCreateOffer: Amount must be greater than 0 for buy offers');\n }\n}\nfunction validateNFTokenCreateOffer(tx) {\n (0, common_1.validateBaseTransaction)(tx);\n if (tx.Account === tx.Owner) {\n throw new errors_1.ValidationError('NFTokenCreateOffer: Owner and Account must not be equal');\n }\n if (tx.Account === tx.Destination) {\n throw new errors_1.ValidationError('NFTokenCreateOffer: Destination and Account must not be equal');\n }\n if (tx.TokenID == null) {\n throw new errors_1.ValidationError('NFTokenCreateOffer: missing field TokenID');\n }\n if (!(0, common_1.isAmount)(tx.Amount)) {\n throw new errors_1.ValidationError('NFTokenCreateOffer: invalid Amount');\n }\n if (typeof tx.Flags === 'number' &&\n (0, utils_1.isFlagEnabled)(tx.Flags, NFTokenCreateOfferFlags.tfSellToken)) {\n validateSellOfferCases(tx);\n }\n else {\n validateBuyOfferCases(tx);\n }\n}\nexports.validateNFTokenCreateOffer = validateNFTokenCreateOffer;\n//# sourceMappingURL=NFTokenCreateOffer.js.map\n\n//# sourceURL=webpack://xrpl/./dist/npm/models/transactions/NFTokenCreateOffer.js?");
|
2942
|
+
|
2943
|
+
/***/ }),
|
2944
|
+
|
2945
|
+
/***/ "./dist/npm/models/transactions/NFTokenMint.js":
|
2946
|
+
/*!*****************************************************!*\
|
2947
|
+
!*** ./dist/npm/models/transactions/NFTokenMint.js ***!
|
2948
|
+
\*****************************************************/
|
2949
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
2950
|
+
|
2951
|
+
"use strict";
|
2952
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.validateNFTokenMint = exports.NFTokenMintFlags = void 0;\nconst errors_1 = __webpack_require__(/*! ../../errors */ \"./dist/npm/errors.js\");\nconst common_1 = __webpack_require__(/*! ./common */ \"./dist/npm/models/transactions/common.js\");\nvar NFTokenMintFlags;\n(function (NFTokenMintFlags) {\n NFTokenMintFlags[NFTokenMintFlags[\"tfBurnable\"] = 1] = \"tfBurnable\";\n NFTokenMintFlags[NFTokenMintFlags[\"tfOnlyXRP\"] = 2] = \"tfOnlyXRP\";\n NFTokenMintFlags[NFTokenMintFlags[\"tfTrustLine\"] = 4] = \"tfTrustLine\";\n NFTokenMintFlags[NFTokenMintFlags[\"tfTransferable\"] = 8] = \"tfTransferable\";\n})(NFTokenMintFlags = exports.NFTokenMintFlags || (exports.NFTokenMintFlags = {}));\nfunction validateNFTokenMint(tx) {\n (0, common_1.validateBaseTransaction)(tx);\n if (tx.Account === tx.Issuer) {\n throw new errors_1.ValidationError('NFTokenMint: Issuer must not be equal to Account');\n }\n if (tx.TokenTaxon == null) {\n throw new errors_1.ValidationError('NFTokenMint: missing field TokenTaxon');\n }\n}\nexports.validateNFTokenMint = validateNFTokenMint;\n//# sourceMappingURL=NFTokenMint.js.map\n\n//# sourceURL=webpack://xrpl/./dist/npm/models/transactions/NFTokenMint.js?");
|
2953
|
+
|
2954
|
+
/***/ }),
|
2955
|
+
|
2901
2956
|
/***/ "./dist/npm/models/transactions/accountDelete.js":
|
2902
2957
|
/*!*******************************************************!*\
|
2903
2958
|
!*** ./dist/npm/models/transactions/accountDelete.js ***!
|
@@ -2916,7 +2971,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
2916
2971
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
2917
2972
|
|
2918
2973
|
"use strict";
|
2919
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.validateAccountSet = exports.AccountSetTfFlags = exports.AccountSetAsfFlags = void 0;\nconst errors_1 = __webpack_require__(/*! ../../errors */ \"./dist/npm/errors.js\");\nconst common_1 = __webpack_require__(/*! ./common */ \"./dist/npm/models/transactions/common.js\");\nvar AccountSetAsfFlags;\n(function (AccountSetAsfFlags) {\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfRequireDest\"] = 1] = \"asfRequireDest\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfRequireAuth\"] = 2] = \"asfRequireAuth\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfDisallowXRP\"] = 3] = \"asfDisallowXRP\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfDisableMaster\"] = 4] = \"asfDisableMaster\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfAccountTxnID\"] = 5] = \"asfAccountTxnID\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfNoFreeze\"] = 6] = \"asfNoFreeze\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfGlobalFreeze\"] = 7] = \"asfGlobalFreeze\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfDefaultRipple\"] = 8] = \"asfDefaultRipple\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfDepositAuth\"] = 9] = \"asfDepositAuth\";\n})(AccountSetAsfFlags = exports.AccountSetAsfFlags || (exports.AccountSetAsfFlags = {}));\nvar AccountSetTfFlags;\n(function (AccountSetTfFlags) {\n AccountSetTfFlags[AccountSetTfFlags[\"tfRequireDestTag\"] = 65536] = \"tfRequireDestTag\";\n AccountSetTfFlags[AccountSetTfFlags[\"tfOptionalDestTag\"] = 131072] = \"tfOptionalDestTag\";\n AccountSetTfFlags[AccountSetTfFlags[\"tfRequireAuth\"] = 262144] = \"tfRequireAuth\";\n AccountSetTfFlags[AccountSetTfFlags[\"tfOptionalAuth\"] = 524288] = \"tfOptionalAuth\";\n AccountSetTfFlags[AccountSetTfFlags[\"tfDisallowXRP\"] = 1048576] = \"tfDisallowXRP\";\n AccountSetTfFlags[AccountSetTfFlags[\"tfAllowXRP\"] = 2097152] = \"tfAllowXRP\";\n})(AccountSetTfFlags = exports.AccountSetTfFlags || (exports.AccountSetTfFlags = {}));\nconst MIN_TICK_SIZE = 3;\nconst MAX_TICK_SIZE = 15;\nfunction validateAccountSet(tx) {\n (0, common_1.validateBaseTransaction)(tx);\n if (tx.ClearFlag !== undefined) {\n if (typeof tx.ClearFlag !== 'number') {\n throw new errors_1.ValidationError('AccountSet: invalid ClearFlag');\n }\n if (!Object.values(AccountSetAsfFlags).includes(tx.ClearFlag)) {\n throw new errors_1.ValidationError('AccountSet: invalid ClearFlag');\n }\n }\n if (tx.Domain !== undefined && typeof tx.Domain !== 'string') {\n throw new errors_1.ValidationError('AccountSet: invalid Domain');\n }\n if (tx.EmailHash !== undefined && typeof tx.EmailHash !== 'string') {\n throw new errors_1.ValidationError('AccountSet: invalid EmailHash');\n }\n if (tx.MessageKey !== undefined && typeof tx.MessageKey !== 'string') {\n throw new errors_1.ValidationError('AccountSet: invalid MessageKey');\n }\n if (tx.SetFlag !== undefined) {\n if (typeof tx.SetFlag !== 'number') {\n throw new errors_1.ValidationError('AccountSet: invalid SetFlag');\n }\n if (!Object.values(AccountSetAsfFlags).includes(tx.SetFlag)) {\n throw new errors_1.ValidationError('AccountSet: invalid SetFlag');\n }\n }\n if (tx.TransferRate !== undefined && typeof tx.TransferRate !== 'number') {\n throw new errors_1.ValidationError('AccountSet: invalid TransferRate');\n }\n if (tx.TickSize !== undefined) {\n if (typeof tx.TickSize !== 'number') {\n throw new errors_1.ValidationError('AccountSet: invalid TickSize');\n }\n if (tx.TickSize !== 0 &&\n (tx.TickSize < MIN_TICK_SIZE || tx.TickSize > MAX_TICK_SIZE)) {\n throw new errors_1.ValidationError('AccountSet: invalid TickSize');\n }\n }\n}\nexports.validateAccountSet = validateAccountSet;\n//# sourceMappingURL=accountSet.js.map\n\n//# sourceURL=webpack://xrpl/./dist/npm/models/transactions/accountSet.js?");
|
2974
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.validateAccountSet = exports.AccountSetTfFlags = exports.AccountSetAsfFlags = void 0;\nconst errors_1 = __webpack_require__(/*! ../../errors */ \"./dist/npm/errors.js\");\nconst common_1 = __webpack_require__(/*! ./common */ \"./dist/npm/models/transactions/common.js\");\nvar AccountSetAsfFlags;\n(function (AccountSetAsfFlags) {\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfRequireDest\"] = 1] = \"asfRequireDest\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfRequireAuth\"] = 2] = \"asfRequireAuth\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfDisallowXRP\"] = 3] = \"asfDisallowXRP\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfDisableMaster\"] = 4] = \"asfDisableMaster\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfAccountTxnID\"] = 5] = \"asfAccountTxnID\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfNoFreeze\"] = 6] = \"asfNoFreeze\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfGlobalFreeze\"] = 7] = \"asfGlobalFreeze\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfDefaultRipple\"] = 8] = \"asfDefaultRipple\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfDepositAuth\"] = 9] = \"asfDepositAuth\";\n AccountSetAsfFlags[AccountSetAsfFlags[\"asfAuthorizedMinter\"] = 10] = \"asfAuthorizedMinter\";\n})(AccountSetAsfFlags = exports.AccountSetAsfFlags || (exports.AccountSetAsfFlags = {}));\nvar AccountSetTfFlags;\n(function (AccountSetTfFlags) {\n AccountSetTfFlags[AccountSetTfFlags[\"tfRequireDestTag\"] = 65536] = \"tfRequireDestTag\";\n AccountSetTfFlags[AccountSetTfFlags[\"tfOptionalDestTag\"] = 131072] = \"tfOptionalDestTag\";\n AccountSetTfFlags[AccountSetTfFlags[\"tfRequireAuth\"] = 262144] = \"tfRequireAuth\";\n AccountSetTfFlags[AccountSetTfFlags[\"tfOptionalAuth\"] = 524288] = \"tfOptionalAuth\";\n AccountSetTfFlags[AccountSetTfFlags[\"tfDisallowXRP\"] = 1048576] = \"tfDisallowXRP\";\n AccountSetTfFlags[AccountSetTfFlags[\"tfAllowXRP\"] = 2097152] = \"tfAllowXRP\";\n})(AccountSetTfFlags = exports.AccountSetTfFlags || (exports.AccountSetTfFlags = {}));\nconst MIN_TICK_SIZE = 3;\nconst MAX_TICK_SIZE = 15;\nfunction validateAccountSet(tx) {\n (0, common_1.validateBaseTransaction)(tx);\n if (tx.ClearFlag !== undefined) {\n if (typeof tx.ClearFlag !== 'number') {\n throw new errors_1.ValidationError('AccountSet: invalid ClearFlag');\n }\n if (!Object.values(AccountSetAsfFlags).includes(tx.ClearFlag)) {\n throw new errors_1.ValidationError('AccountSet: invalid ClearFlag');\n }\n }\n if (tx.Domain !== undefined && typeof tx.Domain !== 'string') {\n throw new errors_1.ValidationError('AccountSet: invalid Domain');\n }\n if (tx.EmailHash !== undefined && typeof tx.EmailHash !== 'string') {\n throw new errors_1.ValidationError('AccountSet: invalid EmailHash');\n }\n if (tx.MessageKey !== undefined && typeof tx.MessageKey !== 'string') {\n throw new errors_1.ValidationError('AccountSet: invalid MessageKey');\n }\n if (tx.SetFlag !== undefined) {\n if (typeof tx.SetFlag !== 'number') {\n throw new errors_1.ValidationError('AccountSet: invalid SetFlag');\n }\n if (!Object.values(AccountSetAsfFlags).includes(tx.SetFlag)) {\n throw new errors_1.ValidationError('AccountSet: invalid SetFlag');\n }\n }\n if (tx.TransferRate !== undefined && typeof tx.TransferRate !== 'number') {\n throw new errors_1.ValidationError('AccountSet: invalid TransferRate');\n }\n if (tx.TickSize !== undefined) {\n if (typeof tx.TickSize !== 'number') {\n throw new errors_1.ValidationError('AccountSet: invalid TickSize');\n }\n if (tx.TickSize !== 0 &&\n (tx.TickSize < MIN_TICK_SIZE || tx.TickSize > MAX_TICK_SIZE)) {\n throw new errors_1.ValidationError('AccountSet: invalid TickSize');\n }\n }\n}\nexports.validateAccountSet = validateAccountSet;\n//# sourceMappingURL=accountSet.js.map\n\n//# sourceURL=webpack://xrpl/./dist/npm/models/transactions/accountSet.js?");
|
2920
2975
|
|
2921
2976
|
/***/ }),
|
2922
2977
|
|
@@ -2960,7 +3015,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
2960
3015
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
2961
3016
|
|
2962
3017
|
"use strict";
|
2963
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.validateBaseTransaction = exports.isAmount = exports.isIssuedCurrency = void 0;\nconst errors_1 = __webpack_require__(/*! ../../errors */ \"./dist/npm/errors.js\");\nconst utils_1 = __webpack_require__(/*! ../utils */ \"./dist/npm/models/utils/index.js\");\nconst
|
3018
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.parseAmountValue = exports.validateBaseTransaction = exports.isAmount = exports.isIssuedCurrency = 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/models/utils/index.js\");\nconst MEMO_SIZE = 3;\nfunction isMemo(obj) {\n if (obj.Memo == null) {\n return false;\n }\n const memo = obj.Memo;\n const size = Object.keys(memo).length;\n const validData = memo.MemoData == null || typeof memo.MemoData === 'string';\n const validFormat = memo.MemoFormat == null || typeof memo.MemoFormat === 'string';\n const validType = memo.MemoType == null || typeof memo.MemoType === 'string';\n return (size >= 1 &&\n size <= MEMO_SIZE &&\n validData &&\n validFormat &&\n validType &&\n (0, utils_1.onlyHasFields)(memo, ['MemoFormat', 'MemoData', 'MemoType']));\n}\nconst SIGNER_SIZE = 3;\nfunction isSigner(obj) {\n const signerWrapper = obj;\n if (signerWrapper.Signer == null) {\n return false;\n }\n const signer = signerWrapper.Signer;\n return (Object.keys(signer).length === SIGNER_SIZE &&\n typeof signer.Account === 'string' &&\n typeof signer.TxnSignature === 'string' &&\n typeof signer.SigningPubKey === 'string');\n}\nconst ISSUED_CURRENCY_SIZE = 3;\nfunction isRecord(value) {\n return value !== null && typeof value === 'object';\n}\nfunction isIssuedCurrency(input) {\n return (isRecord(input) &&\n Object.keys(input).length === ISSUED_CURRENCY_SIZE &&\n typeof input.value === 'string' &&\n typeof input.issuer === 'string' &&\n typeof input.currency === 'string');\n}\nexports.isIssuedCurrency = isIssuedCurrency;\nfunction isAmount(amount) {\n return typeof amount === 'string' || isIssuedCurrency(amount);\n}\nexports.isAmount = isAmount;\nfunction validateBaseTransaction(common) {\n if (common.Account === undefined) {\n throw new errors_1.ValidationError('BaseTransaction: missing field Account');\n }\n if (typeof common.Account !== 'string') {\n throw new errors_1.ValidationError('BaseTransaction: Account not string');\n }\n if (common.TransactionType === undefined) {\n throw new errors_1.ValidationError('BaseTransaction: missing field TransactionType');\n }\n if (typeof common.TransactionType !== 'string') {\n throw new errors_1.ValidationError('BaseTransaction: TransactionType not string');\n }\n if (!ripple_binary_codec_1.TRANSACTION_TYPES.includes(common.TransactionType)) {\n throw new errors_1.ValidationError('BaseTransaction: Unknown TransactionType');\n }\n if (common.Fee !== undefined && typeof common.Fee !== 'string') {\n throw new errors_1.ValidationError('BaseTransaction: invalid Fee');\n }\n if (common.Sequence !== undefined && typeof common.Sequence !== 'number') {\n throw new errors_1.ValidationError('BaseTransaction: invalid Sequence');\n }\n if (common.AccountTxnID !== undefined &&\n typeof common.AccountTxnID !== 'string') {\n throw new errors_1.ValidationError('BaseTransaction: invalid AccountTxnID');\n }\n if (common.LastLedgerSequence !== undefined &&\n typeof common.LastLedgerSequence !== 'number') {\n throw new errors_1.ValidationError('BaseTransaction: invalid LastLedgerSequence');\n }\n const memos = common.Memos;\n if (memos !== undefined && !memos.every(isMemo)) {\n throw new errors_1.ValidationError('BaseTransaction: invalid Memos');\n }\n const signers = common.Signers;\n if (signers !== undefined &&\n (signers.length === 0 || !signers.every(isSigner))) {\n throw new errors_1.ValidationError('BaseTransaction: invalid Signers');\n }\n if (common.SourceTag !== undefined && typeof common.SourceTag !== 'number') {\n throw new errors_1.ValidationError('BaseTransaction: invalid SourceTag');\n }\n if (common.SigningPubKey !== undefined &&\n typeof common.SigningPubKey !== 'string') {\n throw new errors_1.ValidationError('BaseTransaction: invalid SigningPubKey');\n }\n if (common.TicketSequence !== undefined &&\n typeof common.TicketSequence !== 'number') {\n throw new errors_1.ValidationError('BaseTransaction: invalid TicketSequence');\n }\n if (common.TxnSignature !== undefined &&\n typeof common.TxnSignature !== 'string') {\n throw new errors_1.ValidationError('BaseTransaction: invalid TxnSignature');\n }\n}\nexports.validateBaseTransaction = validateBaseTransaction;\nfunction parseAmountValue(amount) {\n if (!isAmount(amount)) {\n return NaN;\n }\n if (typeof amount === 'string') {\n return parseFloat(amount);\n }\n return parseFloat(amount.value);\n}\nexports.parseAmountValue = parseAmountValue;\n//# sourceMappingURL=common.js.map\n\n//# sourceURL=webpack://xrpl/./dist/npm/models/transactions/common.js?");
|
2964
3019
|
|
2965
3020
|
/***/ }),
|
2966
3021
|
|
@@ -3015,7 +3070,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
3015
3070
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
3016
3071
|
|
3017
3072
|
"use strict";
|
3018
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.TrustSetFlags = exports.PaymentChannelClaimFlags = exports.PaymentFlags = exports.OfferCreateFlags = exports.AccountSetTfFlags = exports.AccountSetAsfFlags = exports.validate = void 0;\nvar transaction_1 = __webpack_require__(/*! ./transaction */ \"./dist/npm/models/transactions/transaction.js\");\nObject.defineProperty(exports, \"validate\", ({ enumerable: true, get: function () { return transaction_1.validate; } }));\nvar accountSet_1 = __webpack_require__(/*! ./accountSet */ \"./dist/npm/models/transactions/accountSet.js\");\nObject.defineProperty(exports, \"AccountSetAsfFlags\", ({ enumerable: true, get: function () { return accountSet_1.AccountSetAsfFlags; } }));\nObject.defineProperty(exports, \"AccountSetTfFlags\", ({ enumerable: true, get: function () { return accountSet_1.AccountSetTfFlags; } }));\nvar offerCreate_1 = __webpack_require__(/*! ./offerCreate */ \"./dist/npm/models/transactions/offerCreate.js\");\nObject.defineProperty(exports, \"OfferCreateFlags\", ({ enumerable: true, get: function () { return offerCreate_1.OfferCreateFlags; } }));\nvar payment_1 = __webpack_require__(/*! ./payment */ \"./dist/npm/models/transactions/payment.js\");\nObject.defineProperty(exports, \"PaymentFlags\", ({ enumerable: true, get: function () { return payment_1.PaymentFlags; } }));\nvar paymentChannelClaim_1 = __webpack_require__(/*! ./paymentChannelClaim */ \"./dist/npm/models/transactions/paymentChannelClaim.js\");\nObject.defineProperty(exports, \"PaymentChannelClaimFlags\", ({ enumerable: true, get: function () { return paymentChannelClaim_1.PaymentChannelClaimFlags; } }));\nvar trustSet_1 = __webpack_require__(/*! ./trustSet */ \"./dist/npm/models/transactions/trustSet.js\");\nObject.defineProperty(exports, \"TrustSetFlags\", ({ enumerable: true, get: function () { return trustSet_1.TrustSetFlags; } }));\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://xrpl/./dist/npm/models/transactions/index.js?");
|
3073
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.TrustSetFlags = exports.PaymentChannelClaimFlags = exports.PaymentFlags = exports.OfferCreateFlags = exports.NFTokenMintFlags = exports.NFTokenCreateOfferFlags = exports.AccountSetTfFlags = exports.AccountSetAsfFlags = exports.validate = void 0;\nvar transaction_1 = __webpack_require__(/*! ./transaction */ \"./dist/npm/models/transactions/transaction.js\");\nObject.defineProperty(exports, \"validate\", ({ enumerable: true, get: function () { return transaction_1.validate; } }));\nvar accountSet_1 = __webpack_require__(/*! ./accountSet */ \"./dist/npm/models/transactions/accountSet.js\");\nObject.defineProperty(exports, \"AccountSetAsfFlags\", ({ enumerable: true, get: function () { return accountSet_1.AccountSetAsfFlags; } }));\nObject.defineProperty(exports, \"AccountSetTfFlags\", ({ enumerable: true, get: function () { return accountSet_1.AccountSetTfFlags; } }));\nvar NFTokenCreateOffer_1 = __webpack_require__(/*! ./NFTokenCreateOffer */ \"./dist/npm/models/transactions/NFTokenCreateOffer.js\");\nObject.defineProperty(exports, \"NFTokenCreateOfferFlags\", ({ enumerable: true, get: function () { return NFTokenCreateOffer_1.NFTokenCreateOfferFlags; } }));\nvar NFTokenMint_1 = __webpack_require__(/*! ./NFTokenMint */ \"./dist/npm/models/transactions/NFTokenMint.js\");\nObject.defineProperty(exports, \"NFTokenMintFlags\", ({ enumerable: true, get: function () { return NFTokenMint_1.NFTokenMintFlags; } }));\nvar offerCreate_1 = __webpack_require__(/*! ./offerCreate */ \"./dist/npm/models/transactions/offerCreate.js\");\nObject.defineProperty(exports, \"OfferCreateFlags\", ({ enumerable: true, get: function () { return offerCreate_1.OfferCreateFlags; } }));\nvar payment_1 = __webpack_require__(/*! ./payment */ \"./dist/npm/models/transactions/payment.js\");\nObject.defineProperty(exports, \"PaymentFlags\", ({ enumerable: true, get: function () { return payment_1.PaymentFlags; } }));\nvar paymentChannelClaim_1 = __webpack_require__(/*! ./paymentChannelClaim */ \"./dist/npm/models/transactions/paymentChannelClaim.js\");\nObject.defineProperty(exports, \"PaymentChannelClaimFlags\", ({ enumerable: true, get: function () { return paymentChannelClaim_1.PaymentChannelClaimFlags; } }));\nvar trustSet_1 = __webpack_require__(/*! ./trustSet */ \"./dist/npm/models/transactions/trustSet.js\");\nObject.defineProperty(exports, \"TrustSetFlags\", ({ enumerable: true, get: function () { return trustSet_1.TrustSetFlags; } }));\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://xrpl/./dist/npm/models/transactions/index.js?");
|
3019
3074
|
|
3020
3075
|
/***/ }),
|
3021
3076
|
|
@@ -3125,7 +3180,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
3125
3180
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
3126
3181
|
|
3127
3182
|
"use strict";
|
3128
|
-
eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.validate = void 0;\nconst lodash_1 = __importDefault(__webpack_require__(/*! lodash */ \"../../node_modules/lodash/lodash.js\"));\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 flags_1 = __webpack_require__(/*! ../utils/flags */ \"./dist/npm/models/utils/flags.js\");\nconst accountDelete_1 = __webpack_require__(/*! ./accountDelete */ \"./dist/npm/models/transactions/accountDelete.js\");\nconst accountSet_1 = __webpack_require__(/*! ./accountSet */ \"./dist/npm/models/transactions/accountSet.js\");\nconst checkCancel_1 = __webpack_require__(/*! ./checkCancel */ \"./dist/npm/models/transactions/checkCancel.js\");\nconst checkCash_1 = __webpack_require__(/*! ./checkCash */ \"./dist/npm/models/transactions/checkCash.js\");\nconst checkCreate_1 = __webpack_require__(/*! ./checkCreate */ \"./dist/npm/models/transactions/checkCreate.js\");\nconst depositPreauth_1 = __webpack_require__(/*! ./depositPreauth */ \"./dist/npm/models/transactions/depositPreauth.js\");\nconst escrowCancel_1 = __webpack_require__(/*! ./escrowCancel */ \"./dist/npm/models/transactions/escrowCancel.js\");\nconst escrowCreate_1 = __webpack_require__(/*! ./escrowCreate */ \"./dist/npm/models/transactions/escrowCreate.js\");\nconst escrowFinish_1 = __webpack_require__(/*! ./escrowFinish */ \"./dist/npm/models/transactions/escrowFinish.js\");\nconst offerCancel_1 = __webpack_require__(/*! ./offerCancel */ \"./dist/npm/models/transactions/offerCancel.js\");\nconst offerCreate_1 = __webpack_require__(/*! ./offerCreate */ \"./dist/npm/models/transactions/offerCreate.js\");\nconst payment_1 = __webpack_require__(/*! ./payment */ \"./dist/npm/models/transactions/payment.js\");\nconst paymentChannelClaim_1 = __webpack_require__(/*! ./paymentChannelClaim */ \"./dist/npm/models/transactions/paymentChannelClaim.js\");\nconst paymentChannelCreate_1 = __webpack_require__(/*! ./paymentChannelCreate */ \"./dist/npm/models/transactions/paymentChannelCreate.js\");\nconst paymentChannelFund_1 = __webpack_require__(/*! ./paymentChannelFund */ \"./dist/npm/models/transactions/paymentChannelFund.js\");\nconst setRegularKey_1 = __webpack_require__(/*! ./setRegularKey */ \"./dist/npm/models/transactions/setRegularKey.js\");\nconst signerListSet_1 = __webpack_require__(/*! ./signerListSet */ \"./dist/npm/models/transactions/signerListSet.js\");\nconst ticketCreate_1 = __webpack_require__(/*! ./ticketCreate */ \"./dist/npm/models/transactions/ticketCreate.js\");\nconst trustSet_1 = __webpack_require__(/*! ./trustSet */ \"./dist/npm/models/transactions/trustSet.js\");\nfunction validate(transaction) {\n const tx = Object.assign({}, transaction);\n if (tx.TransactionType == null) {\n throw new errors_1.ValidationError('Object does not have a `TransactionType`');\n }\n if (typeof tx.TransactionType !== 'string') {\n throw new errors_1.ValidationError(\"Object's `TransactionType` is not a string\");\n }\n (0, flags_1.setTransactionFlagsToNumber)(tx);\n switch (tx.TransactionType) {\n case 'AccountDelete':\n (0, accountDelete_1.validateAccountDelete)(tx);\n break;\n case 'AccountSet':\n (0, accountSet_1.validateAccountSet)(tx);\n break;\n case 'CheckCancel':\n (0, checkCancel_1.validateCheckCancel)(tx);\n break;\n case 'CheckCash':\n (0, checkCash_1.validateCheckCash)(tx);\n break;\n case 'CheckCreate':\n (0, checkCreate_1.validateCheckCreate)(tx);\n break;\n case 'DepositPreauth':\n (0, depositPreauth_1.validateDepositPreauth)(tx);\n break;\n case 'EscrowCancel':\n (0, escrowCancel_1.validateEscrowCancel)(tx);\n break;\n case 'EscrowCreate':\n (0, escrowCreate_1.validateEscrowCreate)(tx);\n break;\n case 'EscrowFinish':\n (0, escrowFinish_1.validateEscrowFinish)(tx);\n break;\n case 'OfferCancel':\n (0, offerCancel_1.validateOfferCancel)(tx);\n break;\n case 'OfferCreate':\n (0, offerCreate_1.validateOfferCreate)(tx);\n break;\n case 'Payment':\n (0, payment_1.validatePayment)(tx);\n break;\n case 'PaymentChannelClaim':\n (0, paymentChannelClaim_1.validatePaymentChannelClaim)(tx);\n break;\n case 'PaymentChannelCreate':\n (0, paymentChannelCreate_1.validatePaymentChannelCreate)(tx);\n break;\n case 'PaymentChannelFund':\n (0, paymentChannelFund_1.validatePaymentChannelFund)(tx);\n break;\n case 'SetRegularKey':\n (0, setRegularKey_1.validateSetRegularKey)(tx);\n break;\n case 'SignerListSet':\n (0, signerListSet_1.validateSignerListSet)(tx);\n break;\n case 'TicketCreate':\n (0, ticketCreate_1.validateTicketCreate)(tx);\n break;\n case 'TrustSet':\n (0, trustSet_1.validateTrustSet)(tx);\n break;\n default:\n throw new errors_1.ValidationError(`Invalid field TransactionType: ${tx.TransactionType}`);\n }\n if (!lodash_1.default.isEqual((0, ripple_binary_codec_1.decode)((0, ripple_binary_codec_1.encode)(tx)), lodash_1.default.omitBy(tx, (value) => value == null))) {\n throw new errors_1.ValidationError(`Invalid Transaction: ${tx.TransactionType}`);\n }\n}\nexports.validate = validate;\n//# sourceMappingURL=transaction.js.map\n\n//# sourceURL=webpack://xrpl/./dist/npm/models/transactions/transaction.js?");
|
3183
|
+
eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.validate = void 0;\nconst lodash_1 = __importDefault(__webpack_require__(/*! lodash */ \"../../node_modules/lodash/lodash.js\"));\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 flags_1 = __webpack_require__(/*! ../utils/flags */ \"./dist/npm/models/utils/flags.js\");\nconst accountDelete_1 = __webpack_require__(/*! ./accountDelete */ \"./dist/npm/models/transactions/accountDelete.js\");\nconst accountSet_1 = __webpack_require__(/*! ./accountSet */ \"./dist/npm/models/transactions/accountSet.js\");\nconst checkCancel_1 = __webpack_require__(/*! ./checkCancel */ \"./dist/npm/models/transactions/checkCancel.js\");\nconst checkCash_1 = __webpack_require__(/*! ./checkCash */ \"./dist/npm/models/transactions/checkCash.js\");\nconst checkCreate_1 = __webpack_require__(/*! ./checkCreate */ \"./dist/npm/models/transactions/checkCreate.js\");\nconst depositPreauth_1 = __webpack_require__(/*! ./depositPreauth */ \"./dist/npm/models/transactions/depositPreauth.js\");\nconst escrowCancel_1 = __webpack_require__(/*! ./escrowCancel */ \"./dist/npm/models/transactions/escrowCancel.js\");\nconst escrowCreate_1 = __webpack_require__(/*! ./escrowCreate */ \"./dist/npm/models/transactions/escrowCreate.js\");\nconst escrowFinish_1 = __webpack_require__(/*! ./escrowFinish */ \"./dist/npm/models/transactions/escrowFinish.js\");\nconst NFTokenAcceptOffer_1 = __webpack_require__(/*! ./NFTokenAcceptOffer */ \"./dist/npm/models/transactions/NFTokenAcceptOffer.js\");\nconst NFTokenBurn_1 = __webpack_require__(/*! ./NFTokenBurn */ \"./dist/npm/models/transactions/NFTokenBurn.js\");\nconst NFTokenCancelOffer_1 = __webpack_require__(/*! ./NFTokenCancelOffer */ \"./dist/npm/models/transactions/NFTokenCancelOffer.js\");\nconst NFTokenCreateOffer_1 = __webpack_require__(/*! ./NFTokenCreateOffer */ \"./dist/npm/models/transactions/NFTokenCreateOffer.js\");\nconst NFTokenMint_1 = __webpack_require__(/*! ./NFTokenMint */ \"./dist/npm/models/transactions/NFTokenMint.js\");\nconst offerCancel_1 = __webpack_require__(/*! ./offerCancel */ \"./dist/npm/models/transactions/offerCancel.js\");\nconst offerCreate_1 = __webpack_require__(/*! ./offerCreate */ \"./dist/npm/models/transactions/offerCreate.js\");\nconst payment_1 = __webpack_require__(/*! ./payment */ \"./dist/npm/models/transactions/payment.js\");\nconst paymentChannelClaim_1 = __webpack_require__(/*! ./paymentChannelClaim */ \"./dist/npm/models/transactions/paymentChannelClaim.js\");\nconst paymentChannelCreate_1 = __webpack_require__(/*! ./paymentChannelCreate */ \"./dist/npm/models/transactions/paymentChannelCreate.js\");\nconst paymentChannelFund_1 = __webpack_require__(/*! ./paymentChannelFund */ \"./dist/npm/models/transactions/paymentChannelFund.js\");\nconst setRegularKey_1 = __webpack_require__(/*! ./setRegularKey */ \"./dist/npm/models/transactions/setRegularKey.js\");\nconst signerListSet_1 = __webpack_require__(/*! ./signerListSet */ \"./dist/npm/models/transactions/signerListSet.js\");\nconst ticketCreate_1 = __webpack_require__(/*! ./ticketCreate */ \"./dist/npm/models/transactions/ticketCreate.js\");\nconst trustSet_1 = __webpack_require__(/*! ./trustSet */ \"./dist/npm/models/transactions/trustSet.js\");\nfunction validate(transaction) {\n const tx = Object.assign({}, transaction);\n if (tx.TransactionType == null) {\n throw new errors_1.ValidationError('Object does not have a `TransactionType`');\n }\n if (typeof tx.TransactionType !== 'string') {\n throw new errors_1.ValidationError(\"Object's `TransactionType` is not a string\");\n }\n (0, flags_1.setTransactionFlagsToNumber)(tx);\n switch (tx.TransactionType) {\n case 'AccountDelete':\n (0, accountDelete_1.validateAccountDelete)(tx);\n break;\n case 'AccountSet':\n (0, accountSet_1.validateAccountSet)(tx);\n break;\n case 'CheckCancel':\n (0, checkCancel_1.validateCheckCancel)(tx);\n break;\n case 'CheckCash':\n (0, checkCash_1.validateCheckCash)(tx);\n break;\n case 'CheckCreate':\n (0, checkCreate_1.validateCheckCreate)(tx);\n break;\n case 'DepositPreauth':\n (0, depositPreauth_1.validateDepositPreauth)(tx);\n break;\n case 'EscrowCancel':\n (0, escrowCancel_1.validateEscrowCancel)(tx);\n break;\n case 'EscrowCreate':\n (0, escrowCreate_1.validateEscrowCreate)(tx);\n break;\n case 'EscrowFinish':\n (0, escrowFinish_1.validateEscrowFinish)(tx);\n break;\n case 'NFTokenAcceptOffer':\n (0, NFTokenAcceptOffer_1.validateNFTokenAcceptOffer)(tx);\n break;\n case 'NFTokenBurn':\n (0, NFTokenBurn_1.validateNFTokenBurn)(tx);\n break;\n case 'NFTokenCancelOffer':\n (0, NFTokenCancelOffer_1.validateNFTokenCancelOffer)(tx);\n break;\n case 'NFTokenCreateOffer':\n (0, NFTokenCreateOffer_1.validateNFTokenCreateOffer)(tx);\n break;\n case 'NFTokenMint':\n (0, NFTokenMint_1.validateNFTokenMint)(tx);\n break;\n case 'OfferCancel':\n (0, offerCancel_1.validateOfferCancel)(tx);\n break;\n case 'OfferCreate':\n (0, offerCreate_1.validateOfferCreate)(tx);\n break;\n case 'Payment':\n (0, payment_1.validatePayment)(tx);\n break;\n case 'PaymentChannelClaim':\n (0, paymentChannelClaim_1.validatePaymentChannelClaim)(tx);\n break;\n case 'PaymentChannelCreate':\n (0, paymentChannelCreate_1.validatePaymentChannelCreate)(tx);\n break;\n case 'PaymentChannelFund':\n (0, paymentChannelFund_1.validatePaymentChannelFund)(tx);\n break;\n case 'SetRegularKey':\n (0, setRegularKey_1.validateSetRegularKey)(tx);\n break;\n case 'SignerListSet':\n (0, signerListSet_1.validateSignerListSet)(tx);\n break;\n case 'TicketCreate':\n (0, ticketCreate_1.validateTicketCreate)(tx);\n break;\n case 'TrustSet':\n (0, trustSet_1.validateTrustSet)(tx);\n break;\n default:\n throw new errors_1.ValidationError(`Invalid field TransactionType: ${tx.TransactionType}`);\n }\n if (!lodash_1.default.isEqual((0, ripple_binary_codec_1.decode)((0, ripple_binary_codec_1.encode)(tx)), lodash_1.default.omitBy(tx, (value) => value == null))) {\n throw new errors_1.ValidationError(`Invalid Transaction: ${tx.TransactionType}`);\n }\n}\nexports.validate = validate;\n//# sourceMappingURL=transaction.js.map\n\n//# sourceURL=webpack://xrpl/./dist/npm/models/transactions/transaction.js?");
|
3129
3184
|
|
3130
3185
|
/***/ }),
|
3131
3186
|
|
@@ -3235,7 +3290,7 @@ eval("\nvar __createBinding = (this && this.__createBinding) || (Object.create ?
|
|
3235
3290
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
3236
3291
|
|
3237
3292
|
"use strict";
|
3238
|
-
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
|
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?");
|
3239
3294
|
|
3240
3295
|
/***/ }),
|
3241
3296
|
|
@@ -3603,7 +3658,7 @@ eval("module.exports = JSON.parse('{\"2.16.840.1.101.3.4.1.1\":\"aes-128-ecb\",\
|
|
3603
3658
|
/***/ ((module) => {
|
3604
3659
|
|
3605
3660
|
"use strict";
|
3606
|
-
eval("module.exports = JSON.parse('{\"TYPES\":{\"Validation\":10003,\"Done\":-1,\"Hash128\":4,\"Blob\":7,\"AccountID\":8,\"Amount\":6,\"Hash256\":5,\"UInt8\":16,\"Vector256\":19,\"STObject\":14,\"Unknown\":-2,\"Transaction\":10001,\"Hash160\":17,\"PathSet\":18,\"LedgerEntry\":10002,\"UInt16\":1,\"NotPresent\":0,\"UInt64\":3,\"UInt32\":2,\"STArray\":15},\"LEDGER_ENTRY_TYPES\":{\"Any\":-3,\"Child\":-2,\"Invalid\":-1,\"AccountRoot\":97,\"DirectoryNode\":100,\"RippleState\":114,\"Ticket\":84,\"SignerList\":83,\"Offer\":111,\"LedgerHashes\":104,\"Amendments\":102,\"FeeSettings\":115,\"Escrow\":117,\"PayChannel\":120,\"DepositPreauth\":112,\"Check\":67,\"Nickname\":110,\"Contract\":99,\"NFTokenPage\":80,\"NFTokenOffer\":55,\"NegativeUNL\":78},\"FIELDS\":[[\"Generic\",{\"nth\":0,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"Unknown\"}],[\"Invalid\",{\"nth\":-1,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"Unknown\"}],[\"LedgerEntryType\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt16\"}],[\"TransactionType\",{\"nth\":2,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt16\"}],[\"SignerWeight\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt16\"}],[\"TransferFee\",{\"nth\":4,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt16\"}],[\"Flags\",{\"nth\":2,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"SourceTag\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"Sequence\",{\"nth\":4,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"PreviousTxnLgrSeq\",{\"nth\":5,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"LedgerSequence\",{\"nth\":6,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"CloseTime\",{\"nth\":7,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"ParentCloseTime\",{\"nth\":8,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"SigningTime\",{\"nth\":9,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"Expiration\",{\"nth\":10,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"TransferRate\",{\"nth\":11,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"WalletSize\",{\"nth\":12,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"OwnerCount\",{\"nth\":13,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"DestinationTag\",{\"nth\":14,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"HighQualityIn\",{\"nth\":16,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"HighQualityOut\",{\"nth\":17,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"LowQualityIn\",{\"nth\":18,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"LowQualityOut\",{\"nth\":19,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"QualityIn\",{\"nth\":20,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"QualityOut\",{\"nth\":21,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"StampEscrow\",{\"nth\":22,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"BondAmount\",{\"nth\":23,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"LoadFee\",{\"nth\":24,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"OfferSequence\",{\"nth\":25,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"FirstLedgerSequence\",{\"nth\":26,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"LastLedgerSequence\",{\"nth\":27,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"TransactionIndex\",{\"nth\":28,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"OperationLimit\",{\"nth\":29,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"ReferenceFeeUnits\",{\"nth\":30,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"ReserveBase\",{\"nth\":31,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"ReserveIncrement\",{\"nth\":32,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"SetFlag\",{\"nth\":33,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"ClearFlag\",{\"nth\":34,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"SignerQuorum\",{\"nth\":35,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"CancelAfter\",{\"nth\":36,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"FinishAfter\",{\"nth\":37,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"IndexNext\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"IndexPrevious\",{\"nth\":2,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"BookNode\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"OwnerNode\",{\"nth\":4,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"BaseFee\",{\"nth\":5,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"ExchangeRate\",{\"nth\":6,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"LowNode\",{\"nth\":7,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"HighNode\",{\"nth\":8,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"EmailHash\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash128\"}],[\"LedgerHash\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"ParentHash\",{\"nth\":2,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"TransactionHash\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"AccountHash\",{\"nth\":4,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"PreviousTxnID\",{\"nth\":5,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"LedgerIndex\",{\"nth\":6,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"WalletLocator\",{\"nth\":7,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"RootIndex\",{\"nth\":8,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"AccountTxnID\",{\"nth\":9,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"TokenID\",{\"nth\":10,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"BookDirectory\",{\"nth\":16,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"InvoiceID\",{\"nth\":17,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"Nickname\",{\"nth\":18,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"Amendment\",{\"nth\":19,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"TicketID\",{\"nth\":20,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"Digest\",{\"nth\":21,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"hash\",{\"nth\":257,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"Hash256\"}],[\"index\",{\"nth\":258,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"Hash256\"}],[\"Amount\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"Balance\",{\"nth\":2,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"LimitAmount\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"TakerPays\",{\"nth\":4,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"TakerGets\",{\"nth\":5,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"LowLimit\",{\"nth\":6,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"HighLimit\",{\"nth\":7,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"Fee\",{\"nth\":8,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"SendMax\",{\"nth\":9,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"DeliverMin\",{\"nth\":10,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"MinimumOffer\",{\"nth\":16,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"RippleEscrow\",{\"nth\":17,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"DeliveredAmount\",{\"nth\":18,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"taker_gets_funded\",{\"nth\":258,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"Amount\"}],[\"taker_pays_funded\",{\"nth\":259,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"Amount\"}],[\"PublicKey\",{\"nth\":1,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"MessageKey\",{\"nth\":2,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"SigningPubKey\",{\"nth\":3,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"TxnSignature\",{\"nth\":4,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":false,\"type\":\"Blob\"}],[\"URI\",{\"nth\":5,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"Signature\",{\"nth\":6,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":false,\"type\":\"Blob\"}],[\"Domain\",{\"nth\":7,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"FundCode\",{\"nth\":8,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"RemoveCode\",{\"nth\":9,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"ExpireCode\",{\"nth\":10,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"CreateCode\",{\"nth\":11,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"MemoType\",{\"nth\":12,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"MemoData\",{\"nth\":13,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"MemoFormat\",{\"nth\":14,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"Fulfillment\",{\"nth\":16,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"Condition\",{\"nth\":17,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"MasterSignature\",{\"nth\":18,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":false,\"type\":\"Blob\"}],[\"UNLModifyValidator\",{\"nth\":19,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"ValidatorToDisable\",{\"nth\":20,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"ValidatorToReEnable\",{\"nth\":21,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"Account\",{\"nth\":1,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"Owner\",{\"nth\":2,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"Destination\",{\"nth\":3,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"Issuer\",{\"nth\":4,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"Authorize\",{\"nth\":5,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"Unauthorize\",{\"nth\":6,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"Target\",{\"nth\":7,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"RegularKey\",{\"nth\":8,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"Minter\",{\"nth\":9,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"ObjectEndMarker\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"TransactionMetaData\",{\"nth\":2,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"CreatedNode\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"DeletedNode\",{\"nth\":4,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"ModifiedNode\",{\"nth\":5,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"PreviousFields\",{\"nth\":6,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"FinalFields\",{\"nth\":7,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"NewFields\",{\"nth\":8,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"TemplateEntry\",{\"nth\":9,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"Memo\",{\"nth\":10,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"SignerEntry\",{\"nth\":11,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"NonFungibleToken\",{\"nth\":12,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"Signer\",{\"nth\":16,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"Majority\",{\"nth\":18,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"DisabledValidator\",{\"nth\":19,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"ArrayEndMarker\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"Signers\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":false,\"type\":\"STArray\"}],[\"SignerEntries\",{\"nth\":4,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"Template\",{\"nth\":5,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"Necessary\",{\"nth\":6,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"Sufficient\",{\"nth\":7,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"AffectedNodes\",{\"nth\":8,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"Memos\",{\"nth\":9,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"NonFungibleTokens\",{\"nth\":10,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"Majorities\",{\"nth\":16,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"DisabledValidators\",{\"nth\":17,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"CloseResolution\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt8\"}],[\"Method\",{\"nth\":2,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt8\"}],[\"TransactionResult\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt8\"}],[\"TakerPaysCurrency\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash160\"}],[\"TakerPaysIssuer\",{\"nth\":2,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash160\"}],[\"TakerGetsCurrency\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash160\"}],[\"TakerGetsIssuer\",{\"nth\":4,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash160\"}],[\"Paths\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"PathSet\"}],[\"Indexes\",{\"nth\":1,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Vector256\"}],[\"Hashes\",{\"nth\":2,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Vector256\"}],[\"Amendments\",{\"nth\":3,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Vector256\"}],[\"TokenIDs\",{\"nth\":4,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Vector256\"}],[\"Transaction\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"Transaction\"}],[\"LedgerEntry\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"LedgerEntry\"}],[\"Validation\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"Validation\"}],[\"SignerListID\",{\"nth\":38,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"SettleDelay\",{\"nth\":39,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"TicketCount\",{\"nth\":40,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"TicketSequence\",{\"nth\":41,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"TokenTaxon\",{\"nth\":42,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"MintedTokens\",{\"nth\":43,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"BurnedTokens\",{\"nth\":44,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"Channel\",{\"nth\":22,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"ConsensusHash\",{\"nth\":23,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"CheckID\",{\"nth\":24,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"ValidatedHash\",{\"nth\":25,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"PreviousPageMin\",{\"nth\":26,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"NextPageMin\",{\"nth\":27,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"BuyOffer\",{\"nth\":28,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"SellOffer\",{\"nth\":29,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"TickSize\",{\"nth\":16,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt8\"}],[\"UNLModifyDisabling\",{\"nth\":17,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt8\"}],[\"DestinationNode\",{\"nth\":9,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"Cookie\",{\"nth\":10,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"ServerVersion\",{\"nth\":11,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"OfferNode\",{\"nth\":12,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}]],\"TRANSACTION_RESULTS\":{\"telLOCAL_ERROR\":-399,\"telBAD_DOMAIN\":-398,\"telBAD_PATH_COUNT\":-397,\"telBAD_PUBLIC_KEY\":-396,\"telFAILED_PROCESSING\":-395,\"telINSUF_FEE_P\":-394,\"telNO_DST_PARTIAL\":-393,\"telCAN_NOT_QUEUE\":-392,\"telCAN_NOT_QUEUE_BALANCE\":-391,\"telCAN_NOT_QUEUE_BLOCKS\":-390,\"telCAN_NOT_QUEUE_BLOCKED\":-389,\"telCAN_NOT_QUEUE_FEE\":-388,\"telCAN_NOT_QUEUE_FULL\":-387,\"temMALFORMED\":-299,\"temBAD_AMOUNT\":-298,\"temBAD_CURRENCY\":-297,\"temBAD_EXPIRATION\":-296,\"temBAD_FEE\":-295,\"temBAD_ISSUER\":-294,\"temBAD_LIMIT\":-293,\"temBAD_OFFER\":-292,\"temBAD_PATH\":-291,\"temBAD_PATH_LOOP\":-290,\"temBAD_REGKEY\":-289,\"temBAD_SEND_XRP_LIMIT\":-288,\"temBAD_SEND_XRP_MAX\":-287,\"temBAD_SEND_XRP_NO_DIRECT\":-286,\"temBAD_SEND_XRP_PARTIAL\":-285,\"temBAD_SEND_XRP_PATHS\":-284,\"temBAD_SEQUENCE\":-283,\"temBAD_SIGNATURE\":-282,\"temBAD_SRC_ACCOUNT\":-281,\"temBAD_TRANSFER_RATE\":-280,\"temDST_IS_SRC\":-279,\"temDST_NEEDED\":-278,\"temINVALID\":-277,\"temINVALID_FLAG\":-276,\"temREDUNDANT\":-275,\"temRIPPLE_EMPTY\":-274,\"temDISABLED\":-273,\"temBAD_SIGNER\":-272,\"temBAD_QUORUM\":-271,\"temBAD_WEIGHT\":-270,\"temBAD_TICK_SIZE\":-269,\"temINVALID_ACCOUNT_ID\":-268,\"temCANNOT_PREAUTH_SELF\":-267,\"temUNCERTAIN\":-266,\"temUNKNOWN\":-265,\"tefFAILURE\":-199,\"tefALREADY\":-198,\"tefBAD_ADD_AUTH\":-197,\"tefBAD_AUTH\":-196,\"tefBAD_LEDGER\":-195,\"tefCREATED\":-194,\"tefEXCEPTION\":-193,\"tefINTERNAL\":-192,\"tefNO_AUTH_REQUIRED\":-191,\"tefPAST_SEQ\":-190,\"tefWRONG_PRIOR\":-189,\"tefMASTER_DISABLED\":-188,\"tefMAX_LEDGER\":-187,\"tefBAD_SIGNATURE\":-186,\"tefBAD_QUORUM\":-185,\"tefNOT_MULTI_SIGNING\":-184,\"tefBAD_AUTH_MASTER\":-183,\"tefINVARIANT_FAILED\":-182,\"tefTOO_BIG\":-181,\"terRETRY\":-99,\"terFUNDS_SPENT\":-98,\"terINSUF_FEE_B\":-97,\"terNO_ACCOUNT\":-96,\"terNO_AUTH\":-95,\"terNO_LINE\":-94,\"terOWNERS\":-93,\"terPRE_SEQ\":-92,\"terLAST\":-91,\"terNO_RIPPLE\":-90,\"terQUEUED\":-89,\"tesSUCCESS\":0,\"tecCLAIM\":100,\"tecPATH_PARTIAL\":101,\"tecUNFUNDED_ADD\":102,\"tecUNFUNDED_OFFER\":103,\"tecUNFUNDED_PAYMENT\":104,\"tecFAILED_PROCESSING\":105,\"tecDIR_FULL\":121,\"tecINSUF_RESERVE_LINE\":122,\"tecINSUF_RESERVE_OFFER\":123,\"tecNO_DST\":124,\"tecNO_DST_INSUF_XRP\":125,\"tecNO_LINE_INSUF_RESERVE\":126,\"tecNO_LINE_REDUNDANT\":127,\"tecPATH_DRY\":128,\"tecUNFUNDED\":129,\"tecNO_ALTERNATIVE_KEY\":130,\"tecNO_REGULAR_KEY\":131,\"tecOWNERS\":132,\"tecNO_ISSUER\":133,\"tecNO_AUTH\":134,\"tecNO_LINE\":135,\"tecINSUFF_FEE\":136,\"tecFROZEN\":137,\"tecNO_TARGET\":138,\"tecNO_PERMISSION\":139,\"tecNO_ENTRY\":140,\"tecINSUFFICIENT_RESERVE\":141,\"tecNEED_MASTER_KEY\":142,\"tecDST_TAG_NEEDED\":143,\"tecINTERNAL\":144,\"tecOVERSIZE\":145,\"tecCRYPTOCONDITION_ERROR\":146,\"tecINVARIANT_FAILED\":147,\"tecEXPIRED\":148,\"tecDUPLICATE\":149,\"tecKILLED\":150,\"tecHAS_OBLIGATIONS\":151,\"tecTOO_SOON\":152,\"tecMAX_SEQUENCE_REACHED\":154,\"tecNO_SUITABLE_PAGE\":155,\"tecBUY_SELL_MISMATCH\":156,\"tecOFFER_TYPE_MISMATCH\":157,\"tecCANT_ACCEPT_OWN_OFFER\":158,\"tecINSUFFICIENT_FUNDS\":159,\"tecOBJECT_NOT_FOUND\":160,\"tecINSUFFICIENT_PAYMENT\":161,\"tecINCORRECT_ASSET\":162,\"tecTOO_MANY\":163},\"TRANSACTION_TYPES\":{\"Invalid\":-1,\"Payment\":0,\"EscrowCreate\":1,\"EscrowFinish\":2,\"AccountSet\":3,\"EscrowCancel\":4,\"SetRegularKey\":5,\"NickNameSet\":6,\"OfferCreate\":7,\"OfferCancel\":8,\"Contract\":9,\"TicketCreate\":10,\"TicketCancel\":11,\"SignerListSet\":12,\"PaymentChannelCreate\":13,\"PaymentChannelFund\":14,\"PaymentChannelClaim\":15,\"CheckCreate\":16,\"CheckCash\":17,\"CheckCancel\":18,\"DepositPreauth\":19,\"TrustSet\":20,\"AccountDelete\":21,\"NFTokenMint\":25,\"NFTokenBurn\":26,\"NFTokenCreateOffer\":27,\"NFTokenCancelOffer\":28,\"NFTokenAcceptOffer\":29,\"EnableAmendment\":100,\"SetFee\":101,\"UNLModify\":102}}');\n\n//# sourceURL=webpack://xrpl/../../node_modules/ripple-binary-codec/dist/enums/definitions.json?");
|
3661
|
+
eval("module.exports = JSON.parse('{\"TYPES\":{\"Validation\":10003,\"Done\":-1,\"Hash128\":4,\"Blob\":7,\"AccountID\":8,\"Amount\":6,\"Hash256\":5,\"UInt8\":16,\"Vector256\":19,\"STObject\":14,\"Unknown\":-2,\"Transaction\":10001,\"Hash160\":17,\"PathSet\":18,\"LedgerEntry\":10002,\"UInt16\":1,\"NotPresent\":0,\"UInt64\":3,\"UInt32\":2,\"STArray\":15},\"LEDGER_ENTRY_TYPES\":{\"Any\":-3,\"Child\":-2,\"Invalid\":-1,\"AccountRoot\":97,\"DirectoryNode\":100,\"RippleState\":114,\"Ticket\":84,\"SignerList\":83,\"Offer\":111,\"LedgerHashes\":104,\"Amendments\":102,\"FeeSettings\":115,\"Escrow\":117,\"PayChannel\":120,\"DepositPreauth\":112,\"Check\":67,\"Nickname\":110,\"Contract\":99,\"NFTokenPage\":80,\"NFTokenOffer\":55,\"NegativeUNL\":78},\"FIELDS\":[[\"Generic\",{\"nth\":0,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"Unknown\"}],[\"Invalid\",{\"nth\":-1,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"Unknown\"}],[\"LedgerEntryType\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt16\"}],[\"TransactionType\",{\"nth\":2,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt16\"}],[\"SignerWeight\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt16\"}],[\"TransferFee\",{\"nth\":4,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt16\"}],[\"Flags\",{\"nth\":2,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"SourceTag\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"Sequence\",{\"nth\":4,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"PreviousTxnLgrSeq\",{\"nth\":5,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"LedgerSequence\",{\"nth\":6,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"CloseTime\",{\"nth\":7,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"ParentCloseTime\",{\"nth\":8,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"SigningTime\",{\"nth\":9,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"Expiration\",{\"nth\":10,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"TransferRate\",{\"nth\":11,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"WalletSize\",{\"nth\":12,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"OwnerCount\",{\"nth\":13,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"DestinationTag\",{\"nth\":14,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"HighQualityIn\",{\"nth\":16,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"HighQualityOut\",{\"nth\":17,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"LowQualityIn\",{\"nth\":18,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"LowQualityOut\",{\"nth\":19,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"QualityIn\",{\"nth\":20,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"QualityOut\",{\"nth\":21,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"StampEscrow\",{\"nth\":22,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"BondAmount\",{\"nth\":23,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"LoadFee\",{\"nth\":24,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"OfferSequence\",{\"nth\":25,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"FirstLedgerSequence\",{\"nth\":26,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"LastLedgerSequence\",{\"nth\":27,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"TransactionIndex\",{\"nth\":28,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"OperationLimit\",{\"nth\":29,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"ReferenceFeeUnits\",{\"nth\":30,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"ReserveBase\",{\"nth\":31,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"ReserveIncrement\",{\"nth\":32,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"SetFlag\",{\"nth\":33,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"ClearFlag\",{\"nth\":34,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"SignerQuorum\",{\"nth\":35,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"CancelAfter\",{\"nth\":36,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"FinishAfter\",{\"nth\":37,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"IndexNext\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"IndexPrevious\",{\"nth\":2,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"BookNode\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"OwnerNode\",{\"nth\":4,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"BaseFee\",{\"nth\":5,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"ExchangeRate\",{\"nth\":6,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"LowNode\",{\"nth\":7,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"HighNode\",{\"nth\":8,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"EmailHash\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash128\"}],[\"LedgerHash\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"ParentHash\",{\"nth\":2,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"TransactionHash\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"AccountHash\",{\"nth\":4,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"PreviousTxnID\",{\"nth\":5,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"LedgerIndex\",{\"nth\":6,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"WalletLocator\",{\"nth\":7,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"RootIndex\",{\"nth\":8,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"AccountTxnID\",{\"nth\":9,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"TokenID\",{\"nth\":10,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"BookDirectory\",{\"nth\":16,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"InvoiceID\",{\"nth\":17,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"Nickname\",{\"nth\":18,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"Amendment\",{\"nth\":19,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"TicketID\",{\"nth\":20,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"Digest\",{\"nth\":21,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"hash\",{\"nth\":257,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"Hash256\"}],[\"index\",{\"nth\":258,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"Hash256\"}],[\"Amount\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"Balance\",{\"nth\":2,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"LimitAmount\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"TakerPays\",{\"nth\":4,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"TakerGets\",{\"nth\":5,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"LowLimit\",{\"nth\":6,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"HighLimit\",{\"nth\":7,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"Fee\",{\"nth\":8,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"SendMax\",{\"nth\":9,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"DeliverMin\",{\"nth\":10,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"MinimumOffer\",{\"nth\":16,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"RippleEscrow\",{\"nth\":17,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"DeliveredAmount\",{\"nth\":18,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"BrokerFee\",{\"nth\":19,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Amount\"}],[\"taker_gets_funded\",{\"nth\":258,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"Amount\"}],[\"taker_pays_funded\",{\"nth\":259,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"Amount\"}],[\"PublicKey\",{\"nth\":1,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"MessageKey\",{\"nth\":2,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"SigningPubKey\",{\"nth\":3,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"TxnSignature\",{\"nth\":4,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":false,\"type\":\"Blob\"}],[\"URI\",{\"nth\":5,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"Signature\",{\"nth\":6,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":false,\"type\":\"Blob\"}],[\"Domain\",{\"nth\":7,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"FundCode\",{\"nth\":8,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"RemoveCode\",{\"nth\":9,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"ExpireCode\",{\"nth\":10,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"CreateCode\",{\"nth\":11,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"MemoType\",{\"nth\":12,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"MemoData\",{\"nth\":13,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"MemoFormat\",{\"nth\":14,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"Fulfillment\",{\"nth\":16,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"Condition\",{\"nth\":17,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"MasterSignature\",{\"nth\":18,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":false,\"type\":\"Blob\"}],[\"UNLModifyValidator\",{\"nth\":19,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"ValidatorToDisable\",{\"nth\":20,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"ValidatorToReEnable\",{\"nth\":21,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Blob\"}],[\"Account\",{\"nth\":1,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"Owner\",{\"nth\":2,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"Destination\",{\"nth\":3,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"Issuer\",{\"nth\":4,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"Authorize\",{\"nth\":5,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"Unauthorize\",{\"nth\":6,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"Target\",{\"nth\":7,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"RegularKey\",{\"nth\":8,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"Minter\",{\"nth\":9,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"AccountID\"}],[\"ObjectEndMarker\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"TransactionMetaData\",{\"nth\":2,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"CreatedNode\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"DeletedNode\",{\"nth\":4,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"ModifiedNode\",{\"nth\":5,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"PreviousFields\",{\"nth\":6,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"FinalFields\",{\"nth\":7,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"NewFields\",{\"nth\":8,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"TemplateEntry\",{\"nth\":9,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"Memo\",{\"nth\":10,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"SignerEntry\",{\"nth\":11,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"NonFungibleToken\",{\"nth\":12,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"Signer\",{\"nth\":16,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"Majority\",{\"nth\":18,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"DisabledValidator\",{\"nth\":19,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STObject\"}],[\"ArrayEndMarker\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"Signers\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":false,\"type\":\"STArray\"}],[\"SignerEntries\",{\"nth\":4,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"Template\",{\"nth\":5,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"Necessary\",{\"nth\":6,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"Sufficient\",{\"nth\":7,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"AffectedNodes\",{\"nth\":8,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"Memos\",{\"nth\":9,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"NonFungibleTokens\",{\"nth\":10,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"Majorities\",{\"nth\":16,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"DisabledValidators\",{\"nth\":17,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"STArray\"}],[\"CloseResolution\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt8\"}],[\"Method\",{\"nth\":2,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt8\"}],[\"TransactionResult\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt8\"}],[\"TakerPaysCurrency\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash160\"}],[\"TakerPaysIssuer\",{\"nth\":2,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash160\"}],[\"TakerGetsCurrency\",{\"nth\":3,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash160\"}],[\"TakerGetsIssuer\",{\"nth\":4,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash160\"}],[\"Paths\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"PathSet\"}],[\"Indexes\",{\"nth\":1,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Vector256\"}],[\"Hashes\",{\"nth\":2,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Vector256\"}],[\"Amendments\",{\"nth\":3,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Vector256\"}],[\"TokenOffers\",{\"nth\":4,\"isVLEncoded\":true,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Vector256\"}],[\"Transaction\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"Transaction\"}],[\"LedgerEntry\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"LedgerEntry\"}],[\"Validation\",{\"nth\":1,\"isVLEncoded\":false,\"isSerialized\":false,\"isSigningField\":false,\"type\":\"Validation\"}],[\"SignerListID\",{\"nth\":38,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"SettleDelay\",{\"nth\":39,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"TicketCount\",{\"nth\":40,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"TicketSequence\",{\"nth\":41,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"TokenTaxon\",{\"nth\":42,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"MintedTokens\",{\"nth\":43,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"BurnedTokens\",{\"nth\":44,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt32\"}],[\"Channel\",{\"nth\":22,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"ConsensusHash\",{\"nth\":23,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"CheckID\",{\"nth\":24,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"ValidatedHash\",{\"nth\":25,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"PreviousPageMin\",{\"nth\":26,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"NextPageMin\",{\"nth\":27,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"BuyOffer\",{\"nth\":28,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"SellOffer\",{\"nth\":29,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"Hash256\"}],[\"TickSize\",{\"nth\":16,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt8\"}],[\"UNLModifyDisabling\",{\"nth\":17,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt8\"}],[\"DestinationNode\",{\"nth\":9,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"Cookie\",{\"nth\":10,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"ServerVersion\",{\"nth\":11,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}],[\"OfferNode\",{\"nth\":12,\"isVLEncoded\":false,\"isSerialized\":true,\"isSigningField\":true,\"type\":\"UInt64\"}]],\"TRANSACTION_RESULTS\":{\"telLOCAL_ERROR\":-399,\"telBAD_DOMAIN\":-398,\"telBAD_PATH_COUNT\":-397,\"telBAD_PUBLIC_KEY\":-396,\"telFAILED_PROCESSING\":-395,\"telINSUF_FEE_P\":-394,\"telNO_DST_PARTIAL\":-393,\"telCAN_NOT_QUEUE\":-392,\"telCAN_NOT_QUEUE_BALANCE\":-391,\"telCAN_NOT_QUEUE_BLOCKS\":-390,\"telCAN_NOT_QUEUE_BLOCKED\":-389,\"telCAN_NOT_QUEUE_FEE\":-388,\"telCAN_NOT_QUEUE_FULL\":-387,\"temMALFORMED\":-299,\"temBAD_AMOUNT\":-298,\"temBAD_CURRENCY\":-297,\"temBAD_EXPIRATION\":-296,\"temBAD_FEE\":-295,\"temBAD_ISSUER\":-294,\"temBAD_LIMIT\":-293,\"temBAD_OFFER\":-292,\"temBAD_PATH\":-291,\"temBAD_PATH_LOOP\":-290,\"temBAD_REGKEY\":-289,\"temBAD_SEND_XRP_LIMIT\":-288,\"temBAD_SEND_XRP_MAX\":-287,\"temBAD_SEND_XRP_NO_DIRECT\":-286,\"temBAD_SEND_XRP_PARTIAL\":-285,\"temBAD_SEND_XRP_PATHS\":-284,\"temBAD_SEQUENCE\":-283,\"temBAD_SIGNATURE\":-282,\"temBAD_SRC_ACCOUNT\":-281,\"temBAD_TRANSFER_RATE\":-280,\"temDST_IS_SRC\":-279,\"temDST_NEEDED\":-278,\"temINVALID\":-277,\"temINVALID_FLAG\":-276,\"temREDUNDANT\":-275,\"temRIPPLE_EMPTY\":-274,\"temDISABLED\":-273,\"temBAD_SIGNER\":-272,\"temBAD_QUORUM\":-271,\"temBAD_WEIGHT\":-270,\"temBAD_TICK_SIZE\":-269,\"temINVALID_ACCOUNT_ID\":-268,\"temCANNOT_PREAUTH_SELF\":-267,\"temUNCERTAIN\":-266,\"temUNKNOWN\":-265,\"tefFAILURE\":-199,\"tefALREADY\":-198,\"tefBAD_ADD_AUTH\":-197,\"tefBAD_AUTH\":-196,\"tefBAD_LEDGER\":-195,\"tefCREATED\":-194,\"tefEXCEPTION\":-193,\"tefINTERNAL\":-192,\"tefNO_AUTH_REQUIRED\":-191,\"tefPAST_SEQ\":-190,\"tefWRONG_PRIOR\":-189,\"tefMASTER_DISABLED\":-188,\"tefMAX_LEDGER\":-187,\"tefBAD_SIGNATURE\":-186,\"tefBAD_QUORUM\":-185,\"tefNOT_MULTI_SIGNING\":-184,\"tefBAD_AUTH_MASTER\":-183,\"tefINVARIANT_FAILED\":-182,\"tefTOO_BIG\":-181,\"tefNO_TICKET\":-180,\"tefTOKEN_IS_NOT_TRANSFERABLE\":-179,\"terRETRY\":-99,\"terFUNDS_SPENT\":-98,\"terINSUF_FEE_B\":-97,\"terNO_ACCOUNT\":-96,\"terNO_AUTH\":-95,\"terNO_LINE\":-94,\"terOWNERS\":-93,\"terPRE_SEQ\":-92,\"terLAST\":-91,\"terNO_RIPPLE\":-90,\"terQUEUED\":-89,\"tesSUCCESS\":0,\"tecCLAIM\":100,\"tecPATH_PARTIAL\":101,\"tecUNFUNDED_ADD\":102,\"tecUNFUNDED_OFFER\":103,\"tecUNFUNDED_PAYMENT\":104,\"tecFAILED_PROCESSING\":105,\"tecDIR_FULL\":121,\"tecINSUF_RESERVE_LINE\":122,\"tecINSUF_RESERVE_OFFER\":123,\"tecNO_DST\":124,\"tecNO_DST_INSUF_XRP\":125,\"tecNO_LINE_INSUF_RESERVE\":126,\"tecNO_LINE_REDUNDANT\":127,\"tecPATH_DRY\":128,\"tecUNFUNDED\":129,\"tecNO_ALTERNATIVE_KEY\":130,\"tecNO_REGULAR_KEY\":131,\"tecOWNERS\":132,\"tecNO_ISSUER\":133,\"tecNO_AUTH\":134,\"tecNO_LINE\":135,\"tecINSUFF_FEE\":136,\"tecFROZEN\":137,\"tecNO_TARGET\":138,\"tecNO_PERMISSION\":139,\"tecNO_ENTRY\":140,\"tecINSUFFICIENT_RESERVE\":141,\"tecNEED_MASTER_KEY\":142,\"tecDST_TAG_NEEDED\":143,\"tecINTERNAL\":144,\"tecOVERSIZE\":145,\"tecCRYPTOCONDITION_ERROR\":146,\"tecINVARIANT_FAILED\":147,\"tecEXPIRED\":148,\"tecDUPLICATE\":149,\"tecKILLED\":150,\"tecHAS_OBLIGATIONS\":151,\"tecTOO_SOON\":152,\"tecMAX_SEQUENCE_REACHED\":154,\"tecNO_SUITABLE_PAGE\":155,\"tecBUY_SELL_MISMATCH\":156,\"tecOFFER_TYPE_MISMATCH\":157,\"tecCANT_ACCEPT_OWN_OFFER\":158,\"tecINSUFFICIENT_FUNDS\":159,\"tecOBJECT_NOT_FOUND\":160,\"tecINSUFFICIENT_PAYMENT\":161,\"tecINCORRECT_ASSET\":162,\"tecTOO_MANY\":163},\"TRANSACTION_TYPES\":{\"Invalid\":-1,\"Payment\":0,\"EscrowCreate\":1,\"EscrowFinish\":2,\"AccountSet\":3,\"EscrowCancel\":4,\"SetRegularKey\":5,\"NickNameSet\":6,\"OfferCreate\":7,\"OfferCancel\":8,\"Contract\":9,\"TicketCreate\":10,\"TicketCancel\":11,\"SignerListSet\":12,\"PaymentChannelCreate\":13,\"PaymentChannelFund\":14,\"PaymentChannelClaim\":15,\"CheckCreate\":16,\"CheckCash\":17,\"CheckCancel\":18,\"DepositPreauth\":19,\"TrustSet\":20,\"AccountDelete\":21,\"NFTokenMint\":25,\"NFTokenBurn\":26,\"NFTokenCreateOffer\":27,\"NFTokenCancelOffer\":28,\"NFTokenAcceptOffer\":29,\"EnableAmendment\":100,\"SetFee\":101,\"UNLModify\":102}}');\n\n//# sourceURL=webpack://xrpl/../../node_modules/ripple-binary-codec/dist/enums/definitions.json?");
|
3607
3662
|
|
3608
3663
|
/***/ })
|
3609
3664
|
|
@@ -39,5 +39,13 @@ export interface SignerEntry {
|
|
39
39
|
SignerWeight: number;
|
40
40
|
};
|
41
41
|
}
|
42
|
+
export interface NFTOffer {
|
43
|
+
amount: Amount;
|
44
|
+
flags: number;
|
45
|
+
index: string;
|
46
|
+
owner: string;
|
47
|
+
destination?: string;
|
48
|
+
expiration?: number;
|
49
|
+
}
|
42
50
|
export {};
|
43
51
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/common/index.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG,MAAM,GAAG,CAAC,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAA;AAEvE,oBAAY,iBAAiB,GACzB,OAAO,GACP,QAAQ,GACR,OAAO,GACP,iBAAiB,GACjB,aAAa,GACb,OAAO,CAAA;AAEX,UAAU,GAAG;IACX,QAAQ,EAAE,KAAK,CAAA;CAChB;AAED,UAAU,cAAc;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,oBAAY,QAAQ,GAAG,cAAc,GAAG,GAAG,CAAA;AAE3C,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D,KAAK,EAAE,MAAM,CAAA;CACd;AAED,oBAAY,MAAM,GAAG,oBAAoB,GAAG,MAAM,CAAA;AAElD,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAA;QACf,YAAY,EAAE,MAAM,CAAA;QACpB,aAAa,EAAE,MAAM,CAAA;KACtB,CAAA;CACF;AAED,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE;QACJ,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,MAAM,CAAA;KACpB,CAAA;CACF;AAED,oBAAY,UAAU,GAClB,WAAW,GACX,QAAQ,GACR,WAAW,GACX,aAAa,GACb,cAAc,GACd,uBAAuB,GACvB,QAAQ,GACR,aAAa,CAAA;AAEjB,UAAU,QAAQ;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,oBAAY,IAAI,GAAG,QAAQ,EAAE,CAAA;AAE7B,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE;QACX,OAAO,EAAE,MAAM,CAAA;QACf,YAAY,EAAE,MAAM,CAAA;KACrB,CAAA;CACF"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/common/index.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG,MAAM,GAAG,CAAC,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAA;AAEvE,oBAAY,iBAAiB,GACzB,OAAO,GACP,QAAQ,GACR,OAAO,GACP,iBAAiB,GACjB,aAAa,GACb,OAAO,CAAA;AAEX,UAAU,GAAG;IACX,QAAQ,EAAE,KAAK,CAAA;CAChB;AAED,UAAU,cAAc;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,oBAAY,QAAQ,GAAG,cAAc,GAAG,GAAG,CAAA;AAE3C,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D,KAAK,EAAE,MAAM,CAAA;CACd;AAED,oBAAY,MAAM,GAAG,oBAAoB,GAAG,MAAM,CAAA;AAElD,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAA;QACf,YAAY,EAAE,MAAM,CAAA;QACpB,aAAa,EAAE,MAAM,CAAA;KACtB,CAAA;CACF;AAED,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE;QACJ,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,MAAM,CAAA;KACpB,CAAA;CACF;AAED,oBAAY,UAAU,GAClB,WAAW,GACX,QAAQ,GACR,WAAW,GACX,aAAa,GACb,cAAc,GACd,uBAAuB,GACvB,QAAQ,GACR,aAAa,CAAA;AAEjB,UAAU,QAAQ;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,oBAAY,IAAI,GAAG,QAAQ,EAAE,CAAA;AAE7B,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE;QACX,OAAO,EAAE,MAAM,CAAA;QACf,YAAY,EAAE,MAAM,CAAA;KACrB,CAAA;CACF;AAQD,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { BaseRequest, BaseResponse } from './baseMethod';
|
2
|
+
export interface AccountNFTsRequest extends BaseRequest {
|
3
|
+
command: 'account_nfts';
|
4
|
+
account: string;
|
5
|
+
limit?: number;
|
6
|
+
marker?: unknown;
|
7
|
+
}
|
8
|
+
interface AccountNFToken {
|
9
|
+
Flags: number;
|
10
|
+
Issuer: string;
|
11
|
+
TokenID: string;
|
12
|
+
TokenTaxon: number;
|
13
|
+
nft_serial: number;
|
14
|
+
}
|
15
|
+
export interface AccountNFTsResponse extends BaseResponse {
|
16
|
+
result: {
|
17
|
+
account: string;
|
18
|
+
account_nfts: AccountNFToken[];
|
19
|
+
ledger_current_index: number;
|
20
|
+
validated: boolean;
|
21
|
+
marker?: unknown;
|
22
|
+
limit?: number;
|
23
|
+
};
|
24
|
+
}
|
25
|
+
export {};
|
26
|
+
//# sourceMappingURL=accountNFTs.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"accountNFTs.d.ts","sourceRoot":"","sources":["../../../../src/models/methods/accountNFTs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAQxD,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,OAAO,EAAE,cAAc,CAAA;IAKvB,OAAO,EAAE,MAAM,CAAA;IAIf,KAAK,CAAC,EAAE,MAAM,CAAA;IAKd,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAOD,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAOD,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,MAAM,EAAE;QAIN,OAAO,EAAE,MAAM,CAAA;QAIf,YAAY,EAAE,cAAc,EAAE,CAAA;QAK9B,oBAAoB,EAAE,MAAM,CAAA;QAE5B,SAAS,EAAE,OAAO,CAAA;QAMlB,MAAM,CAAC,EAAE,OAAO,CAAA;QAEhB,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;CACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"accountNFTs.js","sourceRoot":"","sources":["../../../../src/models/methods/accountNFTs.ts"],"names":[],"mappings":""}
|