xrpl 2.7.0 → 2.8.0-beta.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-min.js.map +1 -1
- package/build/xrpl-latest.js +1464 -282
- package/build/xrpl-latest.js.map +1 -1
- package/dist/npm/Wallet/index.d.ts.map +1 -1
- package/dist/npm/Wallet/index.js +4 -4
- package/dist/npm/Wallet/index.js.map +1 -1
- package/dist/npm/client/index.d.ts +2 -1
- package/dist/npm/client/index.d.ts.map +1 -1
- package/dist/npm/client/index.js.map +1 -1
- package/dist/npm/models/common/index.d.ts +7 -1
- package/dist/npm/models/common/index.d.ts.map +1 -1
- package/dist/npm/models/ledger/Bridge.d.ts +17 -0
- package/dist/npm/models/ledger/Bridge.d.ts.map +1 -0
- package/dist/npm/models/ledger/Bridge.js +3 -0
- package/dist/npm/models/ledger/Bridge.js.map +1 -0
- package/dist/npm/models/ledger/Escrow.d.ts +3 -1
- package/dist/npm/models/ledger/Escrow.d.ts.map +1 -1
- package/dist/npm/models/ledger/PayChannel.d.ts +4 -2
- package/dist/npm/models/ledger/PayChannel.d.ts.map +1 -1
- package/dist/npm/models/ledger/XChainOwnedClaimID.d.ts +16 -0
- package/dist/npm/models/ledger/XChainOwnedClaimID.d.ts.map +1 -0
- package/dist/npm/models/ledger/XChainOwnedClaimID.js +3 -0
- package/dist/npm/models/ledger/XChainOwnedClaimID.js.map +1 -0
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.d.ts +14 -0
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.d.ts.map +1 -0
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.js +3 -0
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.js.map +1 -0
- package/dist/npm/models/ledger/index.d.ts +4 -1
- package/dist/npm/models/ledger/index.d.ts.map +1 -1
- package/dist/npm/models/ledger/index.js.map +1 -1
- package/dist/npm/models/methods/accountChannels.d.ts +3 -2
- package/dist/npm/models/methods/accountChannels.d.ts.map +1 -1
- package/dist/npm/models/methods/accountLines.d.ts +3 -1
- package/dist/npm/models/methods/accountLines.d.ts.map +1 -1
- package/dist/npm/models/methods/accountObjects.d.ts +3 -3
- package/dist/npm/models/methods/accountObjects.d.ts.map +1 -1
- package/dist/npm/models/methods/ammInfo.d.ts +42 -0
- package/dist/npm/models/methods/ammInfo.d.ts.map +1 -0
- package/dist/npm/models/methods/ammInfo.js +3 -0
- package/dist/npm/models/methods/ammInfo.js.map +1 -0
- package/dist/npm/models/methods/index.d.ts +4 -3
- package/dist/npm/models/methods/index.d.ts.map +1 -1
- package/dist/npm/models/methods/ledgerEntry.d.ts +16 -1
- package/dist/npm/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/models/methods/pathFind.d.ts +1 -0
- package/dist/npm/models/methods/pathFind.d.ts.map +1 -1
- package/dist/npm/models/methods/serverInfo.d.ts +1 -1
- package/dist/npm/models/transactions/AMMBid.d.ts +18 -0
- package/dist/npm/models/transactions/AMMBid.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMBid.js +37 -0
- package/dist/npm/models/transactions/AMMBid.js.map +1 -0
- package/dist/npm/models/transactions/AMMCreate.d.ts +11 -0
- package/dist/npm/models/transactions/AMMCreate.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMCreate.js +32 -0
- package/dist/npm/models/transactions/AMMCreate.js.map +1 -0
- package/dist/npm/models/transactions/AMMDeposit.d.ts +27 -0
- package/dist/npm/models/transactions/AMMDeposit.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMDeposit.js +51 -0
- package/dist/npm/models/transactions/AMMDeposit.js.map +1 -0
- package/dist/npm/models/transactions/AMMVote.d.ts +10 -0
- package/dist/npm/models/transactions/AMMVote.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMVote.js +32 -0
- package/dist/npm/models/transactions/AMMVote.js.map +1 -0
- package/dist/npm/models/transactions/AMMWithdraw.d.ts +31 -0
- package/dist/npm/models/transactions/AMMWithdraw.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMWithdraw.js +50 -0
- package/dist/npm/models/transactions/AMMWithdraw.js.map +1 -0
- package/dist/npm/models/transactions/NFTokenMint.d.ts +1 -1
- package/dist/npm/models/transactions/NFTokenMint.d.ts.map +1 -1
- package/dist/npm/models/transactions/NFTokenMint.js +3 -0
- package/dist/npm/models/transactions/NFTokenMint.js.map +1 -1
- package/dist/npm/models/transactions/XChainAccountCreateCommit.d.ts +11 -0
- package/dist/npm/models/transactions/XChainAccountCreateCommit.d.ts.map +1 -0
- package/dist/npm/models/transactions/XChainAccountCreateCommit.js +35 -0
- package/dist/npm/models/transactions/XChainAccountCreateCommit.js.map +1 -0
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.d.ts +18 -0
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.d.ts.map +1 -0
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.js +76 -0
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.js.map +1 -0
- package/dist/npm/models/transactions/XChainAddClaimAttestation.d.ts +17 -0
- package/dist/npm/models/transactions/XChainAddClaimAttestation.d.ts.map +1 -0
- package/dist/npm/models/transactions/XChainAddClaimAttestation.js +67 -0
- package/dist/npm/models/transactions/XChainAddClaimAttestation.js.map +1 -0
- package/dist/npm/models/transactions/XChainClaim.d.ts +12 -0
- package/dist/npm/models/transactions/XChainClaim.d.ts.map +1 -0
- package/dist/npm/models/transactions/XChainClaim.js +39 -0
- package/dist/npm/models/transactions/XChainClaim.js.map +1 -0
- package/dist/npm/models/transactions/XChainCommit.d.ts +11 -0
- package/dist/npm/models/transactions/XChainCommit.d.ts.map +1 -0
- package/dist/npm/models/transactions/XChainCommit.js +33 -0
- package/dist/npm/models/transactions/XChainCommit.js.map +1 -0
- package/dist/npm/models/transactions/XChainCreateBridge.d.ts +10 -0
- package/dist/npm/models/transactions/XChainCreateBridge.d.ts.map +1 -0
- package/dist/npm/models/transactions/XChainCreateBridge.js +26 -0
- package/dist/npm/models/transactions/XChainCreateBridge.js.map +1 -0
- package/dist/npm/models/transactions/XChainCreateClaimID.d.ts +10 -0
- package/dist/npm/models/transactions/XChainCreateClaimID.d.ts.map +1 -0
- package/dist/npm/models/transactions/XChainCreateClaimID.js +28 -0
- package/dist/npm/models/transactions/XChainCreateClaimID.js.map +1 -0
- package/dist/npm/models/transactions/XChainModifyBridge.d.ts +17 -0
- package/dist/npm/models/transactions/XChainModifyBridge.d.ts.map +1 -0
- package/dist/npm/models/transactions/XChainModifyBridge.js +27 -0
- package/dist/npm/models/transactions/XChainModifyBridge.js.map +1 -0
- package/dist/npm/models/transactions/common.d.ts +3 -1
- package/dist/npm/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/models/transactions/common.js +22 -1
- package/dist/npm/models/transactions/common.js.map +1 -1
- package/dist/npm/models/transactions/escrowCreate.d.ts +2 -1
- package/dist/npm/models/transactions/escrowCreate.d.ts.map +1 -1
- package/dist/npm/models/transactions/escrowCreate.js +2 -2
- package/dist/npm/models/transactions/escrowCreate.js.map +1 -1
- package/dist/npm/models/transactions/index.d.ts +13 -0
- package/dist/npm/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/models/transactions/index.js +7 -1
- package/dist/npm/models/transactions/index.js.map +1 -1
- package/dist/npm/models/transactions/paymentChannelClaim.d.ts +3 -2
- package/dist/npm/models/transactions/paymentChannelClaim.d.ts.map +1 -1
- package/dist/npm/models/transactions/paymentChannelClaim.js +4 -4
- package/dist/npm/models/transactions/paymentChannelClaim.js.map +1 -1
- package/dist/npm/models/transactions/paymentChannelCreate.d.ts +2 -1
- package/dist/npm/models/transactions/paymentChannelCreate.d.ts.map +1 -1
- package/dist/npm/models/transactions/paymentChannelCreate.js +2 -2
- package/dist/npm/models/transactions/paymentChannelCreate.js.map +1 -1
- package/dist/npm/models/transactions/paymentChannelFund.d.ts +2 -1
- package/dist/npm/models/transactions/paymentChannelFund.d.ts.map +1 -1
- package/dist/npm/models/transactions/paymentChannelFund.js +2 -2
- package/dist/npm/models/transactions/paymentChannelFund.js.map +1 -1
- package/dist/npm/models/transactions/transaction.d.ts +14 -1
- package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/models/transactions/transaction.js +52 -9
- package/dist/npm/models/transactions/transaction.js.map +1 -1
- package/dist/npm/models/utils/flags.d.ts.map +1 -1
- package/dist/npm/models/utils/flags.js +18 -21
- package/dist/npm/models/utils/flags.js.map +1 -1
- package/dist/npm/snippets/tsconfig.tsbuildinfo +1 -1
- package/dist/npm/src/Wallet/index.d.ts.map +1 -1
- package/dist/npm/src/Wallet/index.js +4 -4
- package/dist/npm/src/Wallet/index.js.map +1 -1
- package/dist/npm/src/client/index.d.ts +2 -1
- package/dist/npm/src/client/index.d.ts.map +1 -1
- package/dist/npm/src/client/index.js.map +1 -1
- package/dist/npm/src/models/common/index.d.ts +7 -1
- package/dist/npm/src/models/common/index.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Bridge.d.ts +17 -0
- package/dist/npm/src/models/ledger/Bridge.d.ts.map +1 -0
- package/dist/npm/src/models/ledger/Bridge.js +3 -0
- package/dist/npm/src/models/ledger/Bridge.js.map +1 -0
- package/dist/npm/src/models/ledger/Escrow.d.ts +3 -1
- package/dist/npm/src/models/ledger/Escrow.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/PayChannel.d.ts +4 -2
- package/dist/npm/src/models/ledger/PayChannel.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.d.ts +16 -0
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.d.ts.map +1 -0
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.js +3 -0
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.js.map +1 -0
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.d.ts +14 -0
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.d.ts.map +1 -0
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.js +3 -0
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.js.map +1 -0
- package/dist/npm/src/models/ledger/index.d.ts +4 -1
- package/dist/npm/src/models/ledger/index.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/index.js.map +1 -1
- package/dist/npm/src/models/methods/accountChannels.d.ts +3 -2
- package/dist/npm/src/models/methods/accountChannels.d.ts.map +1 -1
- package/dist/npm/src/models/methods/accountLines.d.ts +3 -1
- package/dist/npm/src/models/methods/accountLines.d.ts.map +1 -1
- package/dist/npm/src/models/methods/accountObjects.d.ts +3 -3
- package/dist/npm/src/models/methods/accountObjects.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ammInfo.d.ts +42 -0
- package/dist/npm/src/models/methods/ammInfo.d.ts.map +1 -0
- package/dist/npm/src/models/methods/ammInfo.js +3 -0
- package/dist/npm/src/models/methods/ammInfo.js.map +1 -0
- package/dist/npm/src/models/methods/index.d.ts +4 -3
- package/dist/npm/src/models/methods/index.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledgerEntry.d.ts +16 -1
- package/dist/npm/src/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/methods/pathFind.d.ts +1 -0
- package/dist/npm/src/models/methods/pathFind.d.ts.map +1 -1
- package/dist/npm/src/models/methods/serverInfo.d.ts +1 -1
- package/dist/npm/src/models/transactions/AMMBid.d.ts +18 -0
- package/dist/npm/src/models/transactions/AMMBid.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMBid.js +37 -0
- package/dist/npm/src/models/transactions/AMMBid.js.map +1 -0
- package/dist/npm/src/models/transactions/AMMCreate.d.ts +11 -0
- package/dist/npm/src/models/transactions/AMMCreate.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMCreate.js +32 -0
- package/dist/npm/src/models/transactions/AMMCreate.js.map +1 -0
- package/dist/npm/src/models/transactions/AMMDeposit.d.ts +27 -0
- package/dist/npm/src/models/transactions/AMMDeposit.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMDeposit.js +51 -0
- package/dist/npm/src/models/transactions/AMMDeposit.js.map +1 -0
- package/dist/npm/src/models/transactions/AMMVote.d.ts +10 -0
- package/dist/npm/src/models/transactions/AMMVote.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMVote.js +32 -0
- package/dist/npm/src/models/transactions/AMMVote.js.map +1 -0
- package/dist/npm/src/models/transactions/AMMWithdraw.d.ts +31 -0
- package/dist/npm/src/models/transactions/AMMWithdraw.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMWithdraw.js +50 -0
- package/dist/npm/src/models/transactions/AMMWithdraw.js.map +1 -0
- package/dist/npm/src/models/transactions/NFTokenMint.d.ts +1 -1
- package/dist/npm/src/models/transactions/NFTokenMint.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenMint.js +3 -0
- package/dist/npm/src/models/transactions/NFTokenMint.js.map +1 -1
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.d.ts +11 -0
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.js +35 -0
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.js.map +1 -0
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.d.ts +18 -0
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.js +76 -0
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.js.map +1 -0
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.d.ts +17 -0
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.js +67 -0
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.js.map +1 -0
- package/dist/npm/src/models/transactions/XChainClaim.d.ts +12 -0
- package/dist/npm/src/models/transactions/XChainClaim.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/XChainClaim.js +39 -0
- package/dist/npm/src/models/transactions/XChainClaim.js.map +1 -0
- package/dist/npm/src/models/transactions/XChainCommit.d.ts +11 -0
- package/dist/npm/src/models/transactions/XChainCommit.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/XChainCommit.js +33 -0
- package/dist/npm/src/models/transactions/XChainCommit.js.map +1 -0
- package/dist/npm/src/models/transactions/XChainCreateBridge.d.ts +10 -0
- package/dist/npm/src/models/transactions/XChainCreateBridge.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/XChainCreateBridge.js +26 -0
- package/dist/npm/src/models/transactions/XChainCreateBridge.js.map +1 -0
- package/dist/npm/src/models/transactions/XChainCreateClaimID.d.ts +10 -0
- package/dist/npm/src/models/transactions/XChainCreateClaimID.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/XChainCreateClaimID.js +28 -0
- package/dist/npm/src/models/transactions/XChainCreateClaimID.js.map +1 -0
- package/dist/npm/src/models/transactions/XChainModifyBridge.d.ts +17 -0
- package/dist/npm/src/models/transactions/XChainModifyBridge.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/XChainModifyBridge.js +27 -0
- package/dist/npm/src/models/transactions/XChainModifyBridge.js.map +1 -0
- package/dist/npm/src/models/transactions/common.d.ts +3 -1
- package/dist/npm/src/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/common.js +22 -1
- package/dist/npm/src/models/transactions/common.js.map +1 -1
- package/dist/npm/src/models/transactions/escrowCreate.d.ts +2 -1
- package/dist/npm/src/models/transactions/escrowCreate.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/escrowCreate.js +2 -2
- package/dist/npm/src/models/transactions/escrowCreate.js.map +1 -1
- package/dist/npm/src/models/transactions/index.d.ts +13 -0
- package/dist/npm/src/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/index.js +7 -1
- package/dist/npm/src/models/transactions/index.js.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelClaim.d.ts +3 -2
- package/dist/npm/src/models/transactions/paymentChannelClaim.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelClaim.js +4 -4
- package/dist/npm/src/models/transactions/paymentChannelClaim.js.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelCreate.d.ts +2 -1
- package/dist/npm/src/models/transactions/paymentChannelCreate.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelCreate.js +2 -2
- package/dist/npm/src/models/transactions/paymentChannelCreate.js.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelFund.d.ts +2 -1
- package/dist/npm/src/models/transactions/paymentChannelFund.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelFund.js +2 -2
- package/dist/npm/src/models/transactions/paymentChannelFund.js.map +1 -1
- package/dist/npm/src/models/transactions/transaction.d.ts +14 -1
- package/dist/npm/src/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/transaction.js +52 -9
- package/dist/npm/src/models/transactions/transaction.js.map +1 -1
- package/dist/npm/src/models/utils/flags.d.ts.map +1 -1
- package/dist/npm/src/models/utils/flags.js +18 -21
- package/dist/npm/src/models/utils/flags.js.map +1 -1
- package/dist/npm/src/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/src/sugar/autofill.js +4 -3
- package/dist/npm/src/sugar/autofill.js.map +1 -1
- package/dist/npm/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/sugar/autofill.js +4 -3
- package/dist/npm/sugar/autofill.js.map +1 -1
- package/package.json +4 -4
package/build/xrpl-latest.js
CHANGED
@@ -63102,40 +63102,47 @@ Object.defineProperty(exports, "BytesList", ({ enumerable: true, get: function (
|
|
63102
63102
|
const hashes_1 = __webpack_require__(/*! ./hashes */ "../../node_modules/ripple-binary-codec/dist/hashes.js");
|
63103
63103
|
Object.defineProperty(exports, "sha512Half", ({ enumerable: true, get: function () { return hashes_1.sha512Half; } }));
|
63104
63104
|
Object.defineProperty(exports, "transactionID", ({ enumerable: true, get: function () { return hashes_1.transactionID; } }));
|
63105
|
+
const enums_1 = __webpack_require__(/*! ./enums */ "../../node_modules/ripple-binary-codec/dist/enums/index.js");
|
63105
63106
|
const bigInt = __webpack_require__(/*! big-integer */ "../../node_modules/big-integer/BigInteger.js");
|
63106
63107
|
/**
|
63107
63108
|
* Construct a BinaryParser
|
63108
63109
|
*
|
63109
63110
|
* @param bytes hex-string to construct BinaryParser from
|
63111
|
+
* @param definitions rippled definitions used to parse the values of transaction types and such.
|
63112
|
+
* Can be customized for sidechains and amendments.
|
63110
63113
|
* @returns A BinaryParser
|
63111
63114
|
*/
|
63112
|
-
const makeParser = (bytes) => new binary_parser_1.BinaryParser(bytes);
|
63115
|
+
const makeParser = (bytes, definitions) => new binary_parser_1.BinaryParser(bytes, definitions);
|
63113
63116
|
exports.makeParser = makeParser;
|
63114
63117
|
/**
|
63115
63118
|
* Parse BinaryParser into JSON
|
63116
63119
|
*
|
63117
63120
|
* @param parser BinaryParser object
|
63121
|
+
* @param definitions rippled definitions used to parse the values of transaction types and such.
|
63122
|
+
* Can be customized for sidechains and amendments.
|
63118
63123
|
* @returns JSON for the bytes in the BinaryParser
|
63119
63124
|
*/
|
63120
|
-
const readJSON = (parser) => parser.readType(types_1.coreTypes.STObject).toJSON();
|
63125
|
+
const readJSON = (parser, definitions = enums_1.DEFAULT_DEFINITIONS) => parser.readType(types_1.coreTypes.STObject).toJSON(definitions);
|
63121
63126
|
exports.readJSON = readJSON;
|
63122
63127
|
/**
|
63123
63128
|
* Parse a hex-string into its JSON interpretation
|
63124
63129
|
*
|
63125
63130
|
* @param bytes hex-string to parse into JSON
|
63131
|
+
* @param definitions rippled definitions used to parse the values of transaction types and such.
|
63132
|
+
* Can be customized for sidechains and amendments.
|
63126
63133
|
* @returns JSON
|
63127
63134
|
*/
|
63128
|
-
const binaryToJSON = (bytes) => readJSON(makeParser(bytes));
|
63135
|
+
const binaryToJSON = (bytes, definitions) => readJSON(makeParser(bytes, definitions), definitions);
|
63129
63136
|
exports.binaryToJSON = binaryToJSON;
|
63130
63137
|
/**
|
63131
63138
|
* Function to serialize JSON object representing a transaction
|
63132
63139
|
*
|
63133
63140
|
* @param object JSON object to serialize
|
63134
|
-
* @param opts options for serializing, including optional prefix, suffix, and
|
63141
|
+
* @param opts options for serializing, including optional prefix, suffix, signingFieldOnly, and definitions
|
63135
63142
|
* @returns A Buffer containing the serialized object
|
63136
63143
|
*/
|
63137
63144
|
function serializeObject(object, opts = {}) {
|
63138
|
-
const { prefix, suffix, signingFieldsOnly = false } = opts;
|
63145
|
+
const { prefix, suffix, signingFieldsOnly = false, definitions } = opts;
|
63139
63146
|
const bytesList = new binary_serializer_1.BytesList();
|
63140
63147
|
if (prefix) {
|
63141
63148
|
bytesList.put(prefix);
|
@@ -63143,7 +63150,9 @@ function serializeObject(object, opts = {}) {
|
|
63143
63150
|
const filter = signingFieldsOnly
|
63144
63151
|
? (f) => f.isSigningField
|
63145
63152
|
: undefined;
|
63146
|
-
types_1.coreTypes.STObject
|
63153
|
+
types_1.coreTypes.STObject
|
63154
|
+
.from(object, filter, definitions)
|
63155
|
+
.toBytesSink(bytesList);
|
63147
63156
|
if (suffix) {
|
63148
63157
|
bytesList.put(suffix);
|
63149
63158
|
}
|
@@ -63155,27 +63164,39 @@ exports.serializeObject = serializeObject;
|
|
63155
63164
|
*
|
63156
63165
|
* @param transaction Transaction to serialize
|
63157
63166
|
* @param prefix Prefix bytes to put before the serialized object
|
63167
|
+
* @param opts.definitions Custom rippled types to use instead of the default. Used for sidechains and amendments.
|
63158
63168
|
* @returns A Buffer with the serialized object
|
63159
63169
|
*/
|
63160
|
-
function signingData(transaction, prefix = hash_prefixes_1.HashPrefix.transactionSig) {
|
63161
|
-
return serializeObject(transaction, {
|
63170
|
+
function signingData(transaction, prefix = hash_prefixes_1.HashPrefix.transactionSig, opts = {}) {
|
63171
|
+
return serializeObject(transaction, {
|
63172
|
+
prefix,
|
63173
|
+
signingFieldsOnly: true,
|
63174
|
+
definitions: opts.definitions,
|
63175
|
+
});
|
63162
63176
|
}
|
63163
63177
|
exports.signingData = signingData;
|
63164
63178
|
/**
|
63165
63179
|
* Serialize a signingClaim
|
63166
63180
|
*
|
63167
63181
|
* @param claim A claim object to serialize
|
63182
|
+
* @param opts.definitions Custom rippled types to use instead of the default. Used for sidechains and amendments.
|
63168
63183
|
* @returns the serialized object with appropriate prefix
|
63169
63184
|
*/
|
63170
63185
|
function signingClaimData(claim) {
|
63171
|
-
const num = bigInt(String(claim.amount));
|
63172
63186
|
const prefix = hash_prefixes_1.HashPrefix.paymentChannelClaim;
|
63173
63187
|
const channel = types_1.coreTypes.Hash256.from(claim.channel).toBytes();
|
63174
|
-
const amount = types_1.coreTypes.UInt64.from(num).toBytes();
|
63175
63188
|
const bytesList = new binary_serializer_1.BytesList();
|
63176
63189
|
bytesList.put(prefix);
|
63177
63190
|
bytesList.put(channel);
|
63178
|
-
|
63191
|
+
if (typeof claim.amount === 'string') {
|
63192
|
+
const num = bigInt(String(claim.amount));
|
63193
|
+
const amount = types_1.coreTypes.UInt64.from(num).toBytes();
|
63194
|
+
bytesList.put(amount);
|
63195
|
+
}
|
63196
|
+
else {
|
63197
|
+
const amount = types_1.coreTypes.Amount.from(claim.amount).toBytes();
|
63198
|
+
bytesList.put(amount);
|
63199
|
+
}
|
63179
63200
|
return bytesList.toBytes();
|
63180
63201
|
}
|
63181
63202
|
exports.signingClaimData = signingClaimData;
|
@@ -63184,15 +63205,19 @@ exports.signingClaimData = signingClaimData;
|
|
63184
63205
|
*
|
63185
63206
|
* @param transaction transaction to serialize
|
63186
63207
|
* @param signingAccount Account to sign the transaction with
|
63208
|
+
* @param opts.definitions Custom rippled types to use instead of the default. Used for sidechains and amendments.
|
63187
63209
|
* @returns serialized transaction with appropriate prefix and suffix
|
63188
63210
|
*/
|
63189
|
-
function multiSigningData(transaction, signingAccount
|
63211
|
+
function multiSigningData(transaction, signingAccount, opts = {
|
63212
|
+
definitions: enums_1.DEFAULT_DEFINITIONS,
|
63213
|
+
}) {
|
63190
63214
|
const prefix = hash_prefixes_1.HashPrefix.transactionMultiSig;
|
63191
63215
|
const suffix = types_1.coreTypes.AccountID.from(signingAccount).toBytes();
|
63192
63216
|
return serializeObject(transaction, {
|
63193
63217
|
prefix,
|
63194
63218
|
suffix,
|
63195
63219
|
signingFieldsOnly: true,
|
63220
|
+
definitions: opts.definitions,
|
63196
63221
|
});
|
63197
63222
|
}
|
63198
63223
|
exports.multiSigningData = multiSigningData;
|
@@ -63232,8 +63257,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
63232
63257
|
return result;
|
63233
63258
|
};
|
63234
63259
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
63235
|
-
exports.types = exports.ShaMap = exports.HashPrefix = exports.quality = exports.TransactionResult = exports.Type = exports.LedgerEntryType = exports.TransactionType = exports.Field = exports.ledgerHashes = exports.binary = exports.hashes = void 0;
|
63260
|
+
exports.types = exports.ShaMap = exports.HashPrefix = exports.quality = exports.TransactionResult = exports.Type = exports.LedgerEntryType = exports.TransactionType = exports.Field = exports.DEFAULT_DEFINITIONS = exports.ledgerHashes = exports.binary = exports.hashes = void 0;
|
63236
63261
|
const enums_1 = __webpack_require__(/*! ./enums */ "../../node_modules/ripple-binary-codec/dist/enums/index.js");
|
63262
|
+
Object.defineProperty(exports, "DEFAULT_DEFINITIONS", ({ enumerable: true, get: function () { return enums_1.DEFAULT_DEFINITIONS; } }));
|
63237
63263
|
Object.defineProperty(exports, "Field", ({ enumerable: true, get: function () { return enums_1.Field; } }));
|
63238
63264
|
Object.defineProperty(exports, "TransactionType", ({ enumerable: true, get: function () { return enums_1.TransactionType; } }));
|
63239
63265
|
Object.defineProperty(exports, "LedgerEntryType", ({ enumerable: true, get: function () { return enums_1.LedgerEntryType; } }));
|
@@ -63257,73 +63283,17 @@ Object.defineProperty(exports, "HashPrefix", ({ enumerable: true, get: function
|
|
63257
63283
|
|
63258
63284
|
/***/ }),
|
63259
63285
|
|
63260
|
-
/***/ "../../node_modules/ripple-binary-codec/dist/enums/
|
63286
|
+
/***/ "../../node_modules/ripple-binary-codec/dist/enums/bytes.js":
|
63261
63287
|
/*!******************************************************************!*\
|
63262
|
-
!*** ../../node_modules/ripple-binary-codec/dist/enums/
|
63288
|
+
!*** ../../node_modules/ripple-binary-codec/dist/enums/bytes.js ***!
|
63263
63289
|
\******************************************************************/
|
63264
|
-
/***/ (
|
63290
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
63265
63291
|
|
63266
63292
|
"use strict";
|
63267
63293
|
|
63268
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
63269
|
-
if (k2 === undefined) k2 = k;
|
63270
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
63271
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
63272
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
63273
|
-
}
|
63274
|
-
Object.defineProperty(o, k2, desc);
|
63275
|
-
}) : (function(o, m, k, k2) {
|
63276
|
-
if (k2 === undefined) k2 = k;
|
63277
|
-
o[k2] = m[k];
|
63278
|
-
}));
|
63279
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
63280
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
63281
|
-
}) : function(o, v) {
|
63282
|
-
o["default"] = v;
|
63283
|
-
});
|
63284
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
63285
|
-
if (mod && mod.__esModule) return mod;
|
63286
|
-
var result = {};
|
63287
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
63288
|
-
__setModuleDefault(result, mod);
|
63289
|
-
return result;
|
63290
|
-
};
|
63291
63294
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
63292
|
-
exports.
|
63293
|
-
const enums = __importStar(__webpack_require__(/*! ./definitions.json */ "../../node_modules/ripple-binary-codec/dist/enums/definitions.json"));
|
63294
|
-
const serialized_type_1 = __webpack_require__(/*! ../types/serialized-type */ "../../node_modules/ripple-binary-codec/dist/types/serialized-type.js");
|
63295
|
+
exports.BytesLookup = exports.Bytes = void 0;
|
63295
63296
|
const buffer_1 = __webpack_require__(/*! buffer/ */ "../../node_modules/ripple-binary-codec/node_modules/buffer/index.js");
|
63296
|
-
/*
|
63297
|
-
* @brief: All valid transaction types
|
63298
|
-
*/
|
63299
|
-
exports.TRANSACTION_TYPES = Object.entries(enums.TRANSACTION_TYPES)
|
63300
|
-
.filter(([_key, value]) => value >= 0)
|
63301
|
-
.map(([key, _value]) => key);
|
63302
|
-
const TYPE_WIDTH = 2;
|
63303
|
-
const LEDGER_ENTRY_WIDTH = 2;
|
63304
|
-
const TRANSACTION_TYPE_WIDTH = 2;
|
63305
|
-
const TRANSACTION_RESULT_WIDTH = 1;
|
63306
|
-
/*
|
63307
|
-
* @brief: Serialize a field based on type_code and Field.nth
|
63308
|
-
*/
|
63309
|
-
function fieldHeader(type, nth) {
|
63310
|
-
const header = [];
|
63311
|
-
if (type < 16) {
|
63312
|
-
if (nth < 16) {
|
63313
|
-
header.push((type << 4) | nth);
|
63314
|
-
}
|
63315
|
-
else {
|
63316
|
-
header.push(type << 4, nth);
|
63317
|
-
}
|
63318
|
-
}
|
63319
|
-
else if (nth < 16) {
|
63320
|
-
header.push(nth, type);
|
63321
|
-
}
|
63322
|
-
else {
|
63323
|
-
header.push(0, type, nth);
|
63324
|
-
}
|
63325
|
-
return buffer_1.Buffer.from(header);
|
63326
|
-
}
|
63327
63297
|
/*
|
63328
63298
|
* @brief: Bytes, name, and ordinal representing one type, ledger_type, transaction type, or result
|
63329
63299
|
*/
|
@@ -63355,10 +63325,26 @@ class BytesLookup {
|
|
63355
63325
|
constructor(types, ordinalWidth) {
|
63356
63326
|
this.ordinalWidth = ordinalWidth;
|
63357
63327
|
Object.entries(types).forEach(([k, v]) => {
|
63358
|
-
this
|
63359
|
-
this[v.toString()] = this[k];
|
63328
|
+
this.add(k, v);
|
63360
63329
|
});
|
63361
63330
|
}
|
63331
|
+
/**
|
63332
|
+
* Add a new name value pair to the BytesLookup.
|
63333
|
+
*
|
63334
|
+
* @param name - A human readable name for the field.
|
63335
|
+
* @param value - The numeric value for the field.
|
63336
|
+
* @throws if the name or value already exist in the lookup because it's unclear how to decode.
|
63337
|
+
*/
|
63338
|
+
add(name, value) {
|
63339
|
+
if (this[name]) {
|
63340
|
+
throw new SyntaxError(`Attempted to add a value with a duplicate name "${name}". This is not allowed because it is unclear how to decode.`);
|
63341
|
+
}
|
63342
|
+
if (this[value.toString()]) {
|
63343
|
+
throw new SyntaxError(`Attempted to add a duplicate value under a different name (Given name: "${name}" and previous name: "${this[value.toString()]}. This is not allowed because it is unclear how to decode.\nGiven value: ${value.toString()}`);
|
63344
|
+
}
|
63345
|
+
this[name] = new Bytes(name, value, this.ordinalWidth);
|
63346
|
+
this[value.toString()] = this[name];
|
63347
|
+
}
|
63362
63348
|
from(value) {
|
63363
63349
|
return value instanceof Bytes ? value : this[value];
|
63364
63350
|
}
|
@@ -63366,8 +63352,65 @@ class BytesLookup {
|
|
63366
63352
|
return this.from(parser.readUIntN(this.ordinalWidth).toString());
|
63367
63353
|
}
|
63368
63354
|
}
|
63369
|
-
|
63370
|
-
|
63355
|
+
exports.BytesLookup = BytesLookup;
|
63356
|
+
|
63357
|
+
|
63358
|
+
/***/ }),
|
63359
|
+
|
63360
|
+
/***/ "../../node_modules/ripple-binary-codec/dist/enums/constants.js":
|
63361
|
+
/*!**********************************************************************!*\
|
63362
|
+
!*** ../../node_modules/ripple-binary-codec/dist/enums/constants.js ***!
|
63363
|
+
\**********************************************************************/
|
63364
|
+
/***/ ((__unused_webpack_module, exports) => {
|
63365
|
+
|
63366
|
+
"use strict";
|
63367
|
+
|
63368
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
63369
|
+
exports.TRANSACTION_RESULT_WIDTH = exports.TRANSACTION_TYPE_WIDTH = exports.LEDGER_ENTRY_WIDTH = exports.TYPE_WIDTH = void 0;
|
63370
|
+
exports.TYPE_WIDTH = 2;
|
63371
|
+
exports.LEDGER_ENTRY_WIDTH = 2;
|
63372
|
+
exports.TRANSACTION_TYPE_WIDTH = 2;
|
63373
|
+
exports.TRANSACTION_RESULT_WIDTH = 1;
|
63374
|
+
|
63375
|
+
|
63376
|
+
/***/ }),
|
63377
|
+
|
63378
|
+
/***/ "../../node_modules/ripple-binary-codec/dist/enums/field.js":
|
63379
|
+
/*!******************************************************************!*\
|
63380
|
+
!*** ../../node_modules/ripple-binary-codec/dist/enums/field.js ***!
|
63381
|
+
\******************************************************************/
|
63382
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
63383
|
+
|
63384
|
+
"use strict";
|
63385
|
+
|
63386
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
63387
|
+
exports.FieldLookup = void 0;
|
63388
|
+
const bytes_1 = __webpack_require__(/*! ./bytes */ "../../node_modules/ripple-binary-codec/dist/enums/bytes.js");
|
63389
|
+
const serialized_type_1 = __webpack_require__(/*! ../types/serialized-type */ "../../node_modules/ripple-binary-codec/dist/types/serialized-type.js");
|
63390
|
+
const constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/ripple-binary-codec/dist/enums/constants.js");
|
63391
|
+
const buffer_1 = __webpack_require__(/*! buffer/ */ "../../node_modules/ripple-binary-codec/node_modules/buffer/index.js");
|
63392
|
+
/*
|
63393
|
+
* @brief: Serialize a field based on type_code and Field.nth
|
63394
|
+
*/
|
63395
|
+
function fieldHeader(type, nth) {
|
63396
|
+
const header = [];
|
63397
|
+
if (type < 16) {
|
63398
|
+
if (nth < 16) {
|
63399
|
+
header.push((type << 4) | nth);
|
63400
|
+
}
|
63401
|
+
else {
|
63402
|
+
header.push(type << 4, nth);
|
63403
|
+
}
|
63404
|
+
}
|
63405
|
+
else if (nth < 16) {
|
63406
|
+
header.push(nth, type);
|
63407
|
+
}
|
63408
|
+
else {
|
63409
|
+
header.push(0, type, nth);
|
63410
|
+
}
|
63411
|
+
return buffer_1.Buffer.from(header);
|
63412
|
+
}
|
63413
|
+
function buildField([name, info], typeOrdinal) {
|
63371
63414
|
const field = fieldHeader(typeOrdinal, info.nth);
|
63372
63415
|
return {
|
63373
63416
|
name: name,
|
@@ -63376,35 +63419,196 @@ function buildField([name, info]) {
|
|
63376
63419
|
isSerialized: info.isSerialized,
|
63377
63420
|
isSigningField: info.isSigningField,
|
63378
63421
|
ordinal: (typeOrdinal << 16) | info.nth,
|
63379
|
-
type: new Bytes(info.type, typeOrdinal, TYPE_WIDTH),
|
63422
|
+
type: new bytes_1.Bytes(info.type, typeOrdinal, constants_1.TYPE_WIDTH),
|
63380
63423
|
header: field,
|
63381
|
-
associatedType: serialized_type_1.SerializedType, // For later assignment in ./types/index.js
|
63424
|
+
associatedType: serialized_type_1.SerializedType, // For later assignment in ./types/index.js or Definitions.updateAll(...)
|
63382
63425
|
};
|
63383
63426
|
}
|
63384
63427
|
/*
|
63385
63428
|
* @brief: The collection of all fields as defined in definitions.json
|
63386
63429
|
*/
|
63387
63430
|
class FieldLookup {
|
63388
|
-
constructor(fields) {
|
63389
|
-
fields.forEach(([
|
63390
|
-
|
63391
|
-
this[
|
63431
|
+
constructor(fields, types) {
|
63432
|
+
fields.forEach(([name, field_info]) => {
|
63433
|
+
const typeOrdinal = types[field_info.type];
|
63434
|
+
this[name] = buildField([name, field_info], typeOrdinal);
|
63435
|
+
this[this[name].ordinal.toString()] = this[name];
|
63392
63436
|
});
|
63393
63437
|
}
|
63394
63438
|
fromString(value) {
|
63395
63439
|
return this[value];
|
63396
63440
|
}
|
63397
63441
|
}
|
63398
|
-
|
63442
|
+
exports.FieldLookup = FieldLookup;
|
63443
|
+
|
63444
|
+
|
63445
|
+
/***/ }),
|
63446
|
+
|
63447
|
+
/***/ "../../node_modules/ripple-binary-codec/dist/enums/index.js":
|
63448
|
+
/*!******************************************************************!*\
|
63449
|
+
!*** ../../node_modules/ripple-binary-codec/dist/enums/index.js ***!
|
63450
|
+
\******************************************************************/
|
63451
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
63452
|
+
|
63453
|
+
"use strict";
|
63454
|
+
|
63455
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
63456
|
+
if (k2 === undefined) k2 = k;
|
63457
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
63458
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
63459
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
63460
|
+
}
|
63461
|
+
Object.defineProperty(o, k2, desc);
|
63462
|
+
}) : (function(o, m, k, k2) {
|
63463
|
+
if (k2 === undefined) k2 = k;
|
63464
|
+
o[k2] = m[k];
|
63465
|
+
}));
|
63466
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
63467
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
63468
|
+
}) : function(o, v) {
|
63469
|
+
o["default"] = v;
|
63470
|
+
});
|
63471
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
63472
|
+
if (mod && mod.__esModule) return mod;
|
63473
|
+
var result = {};
|
63474
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
63475
|
+
__setModuleDefault(result, mod);
|
63476
|
+
return result;
|
63477
|
+
};
|
63478
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
63479
|
+
exports.TRANSACTION_TYPES = exports.TransactionType = exports.TransactionResult = exports.LedgerEntryType = exports.Type = exports.Field = exports.DEFAULT_DEFINITIONS = exports.XrplDefinitionsBase = exports.Bytes = void 0;
|
63480
|
+
const enums = __importStar(__webpack_require__(/*! ./definitions.json */ "../../node_modules/ripple-binary-codec/dist/enums/definitions.json"));
|
63481
|
+
const xrpl_definitions_base_1 = __webpack_require__(/*! ./xrpl-definitions-base */ "../../node_modules/ripple-binary-codec/dist/enums/xrpl-definitions-base.js");
|
63482
|
+
Object.defineProperty(exports, "XrplDefinitionsBase", ({ enumerable: true, get: function () { return xrpl_definitions_base_1.XrplDefinitionsBase; } }));
|
63483
|
+
Object.defineProperty(exports, "Bytes", ({ enumerable: true, get: function () { return xrpl_definitions_base_1.Bytes; } }));
|
63484
|
+
/**
|
63485
|
+
* By default, coreTypes from the `types` folder is where known type definitions are initialized to avoid import cycles.
|
63486
|
+
*/
|
63487
|
+
const DEFAULT_DEFINITIONS = new xrpl_definitions_base_1.XrplDefinitionsBase(enums, {});
|
63488
|
+
exports.DEFAULT_DEFINITIONS = DEFAULT_DEFINITIONS;
|
63489
|
+
const Type = DEFAULT_DEFINITIONS.type;
|
63399
63490
|
exports.Type = Type;
|
63400
|
-
const LedgerEntryType =
|
63491
|
+
const LedgerEntryType = DEFAULT_DEFINITIONS.ledgerEntryType;
|
63401
63492
|
exports.LedgerEntryType = LedgerEntryType;
|
63402
|
-
const TransactionType =
|
63493
|
+
const TransactionType = DEFAULT_DEFINITIONS.transactionType;
|
63403
63494
|
exports.TransactionType = TransactionType;
|
63404
|
-
const TransactionResult =
|
63495
|
+
const TransactionResult = DEFAULT_DEFINITIONS.transactionResult;
|
63405
63496
|
exports.TransactionResult = TransactionResult;
|
63406
|
-
const Field =
|
63497
|
+
const Field = DEFAULT_DEFINITIONS.field;
|
63407
63498
|
exports.Field = Field;
|
63499
|
+
/*
|
63500
|
+
* @brief: All valid transaction types
|
63501
|
+
*/
|
63502
|
+
const TRANSACTION_TYPES = DEFAULT_DEFINITIONS.transactionNames;
|
63503
|
+
exports.TRANSACTION_TYPES = TRANSACTION_TYPES;
|
63504
|
+
|
63505
|
+
|
63506
|
+
/***/ }),
|
63507
|
+
|
63508
|
+
/***/ "../../node_modules/ripple-binary-codec/dist/enums/xrpl-definitions-base.js":
|
63509
|
+
/*!**********************************************************************************!*\
|
63510
|
+
!*** ../../node_modules/ripple-binary-codec/dist/enums/xrpl-definitions-base.js ***!
|
63511
|
+
\**********************************************************************************/
|
63512
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
63513
|
+
|
63514
|
+
"use strict";
|
63515
|
+
|
63516
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
63517
|
+
exports.BytesLookup = exports.Bytes = exports.FieldLookup = exports.XrplDefinitionsBase = void 0;
|
63518
|
+
const bytes_1 = __webpack_require__(/*! ./bytes */ "../../node_modules/ripple-binary-codec/dist/enums/bytes.js");
|
63519
|
+
Object.defineProperty(exports, "Bytes", ({ enumerable: true, get: function () { return bytes_1.Bytes; } }));
|
63520
|
+
Object.defineProperty(exports, "BytesLookup", ({ enumerable: true, get: function () { return bytes_1.BytesLookup; } }));
|
63521
|
+
const field_1 = __webpack_require__(/*! ./field */ "../../node_modules/ripple-binary-codec/dist/enums/field.js");
|
63522
|
+
Object.defineProperty(exports, "FieldLookup", ({ enumerable: true, get: function () { return field_1.FieldLookup; } }));
|
63523
|
+
const constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/ripple-binary-codec/dist/enums/constants.js");
|
63524
|
+
/**
|
63525
|
+
* Stores the various types and fields for rippled to be used to encode/decode information later on.
|
63526
|
+
* XrplDefinitions should be instantiated instead of this class.
|
63527
|
+
*/
|
63528
|
+
class XrplDefinitionsBase {
|
63529
|
+
/**
|
63530
|
+
* Present rippled types in a typed and updatable format.
|
63531
|
+
* For an example of the input format see `definitions.json`
|
63532
|
+
* To generate a new definitions file from rippled source code, use this tool: https://github.com/RichardAH/xrpl-codec-gen
|
63533
|
+
*
|
63534
|
+
* See the definitions.test.js file for examples of how to create your own updated definitions.json.
|
63535
|
+
*
|
63536
|
+
* @param enums - A json encoding of the core types, transaction types, transaction results, transaction names, and fields.
|
63537
|
+
* @param types - A list of type objects with the same name as the fields defined.
|
63538
|
+
* You can use the coreTypes object if you are not adding new types.
|
63539
|
+
*/
|
63540
|
+
constructor(enums, types) {
|
63541
|
+
this.type = new bytes_1.BytesLookup(enums.TYPES, constants_1.TYPE_WIDTH);
|
63542
|
+
this.ledgerEntryType = new bytes_1.BytesLookup(enums.LEDGER_ENTRY_TYPES, constants_1.LEDGER_ENTRY_WIDTH);
|
63543
|
+
this.transactionType = new bytes_1.BytesLookup(enums.TRANSACTION_TYPES, constants_1.TRANSACTION_TYPE_WIDTH);
|
63544
|
+
this.transactionResult = new bytes_1.BytesLookup(enums.TRANSACTION_RESULTS, constants_1.TRANSACTION_RESULT_WIDTH);
|
63545
|
+
this.field = new field_1.FieldLookup(enums.FIELDS, enums.TYPES);
|
63546
|
+
this.transactionNames = Object.entries(enums.TRANSACTION_TYPES)
|
63547
|
+
.filter(([_key, value]) => value >= 0)
|
63548
|
+
.map(([key, _value]) => key);
|
63549
|
+
this.dataTypes = {}; // Filled in via associateTypes
|
63550
|
+
this.associateTypes(types);
|
63551
|
+
}
|
63552
|
+
/**
|
63553
|
+
* Associates each Field to a corresponding class that TypeScript can recognize.
|
63554
|
+
*
|
63555
|
+
* @param types a list of type objects with the same name as the fields defined.
|
63556
|
+
* Defaults to xrpl.js's core type definitions.
|
63557
|
+
*/
|
63558
|
+
associateTypes(types) {
|
63559
|
+
// Overwrite any existing type definitions with the given types
|
63560
|
+
this.dataTypes = Object.assign({}, this.dataTypes, types);
|
63561
|
+
Object.values(this.field).forEach((field) => {
|
63562
|
+
field.associatedType = this.dataTypes[field.type.name];
|
63563
|
+
});
|
63564
|
+
this.field['TransactionType'].associatedType = this.transactionType;
|
63565
|
+
this.field['TransactionResult'].associatedType = this.transactionResult;
|
63566
|
+
this.field['LedgerEntryType'].associatedType = this.ledgerEntryType;
|
63567
|
+
}
|
63568
|
+
getAssociatedTypes() {
|
63569
|
+
return this.dataTypes;
|
63570
|
+
}
|
63571
|
+
}
|
63572
|
+
exports.XrplDefinitionsBase = XrplDefinitionsBase;
|
63573
|
+
|
63574
|
+
|
63575
|
+
/***/ }),
|
63576
|
+
|
63577
|
+
/***/ "../../node_modules/ripple-binary-codec/dist/enums/xrpl-definitions.js":
|
63578
|
+
/*!*****************************************************************************!*\
|
63579
|
+
!*** ../../node_modules/ripple-binary-codec/dist/enums/xrpl-definitions.js ***!
|
63580
|
+
\*****************************************************************************/
|
63581
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
63582
|
+
|
63583
|
+
"use strict";
|
63584
|
+
|
63585
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
63586
|
+
exports.XrplDefinitions = void 0;
|
63587
|
+
const xrpl_definitions_base_1 = __webpack_require__(/*! ./xrpl-definitions-base */ "../../node_modules/ripple-binary-codec/dist/enums/xrpl-definitions-base.js");
|
63588
|
+
const types_1 = __webpack_require__(/*! ../types */ "../../node_modules/ripple-binary-codec/dist/types/index.js");
|
63589
|
+
/**
|
63590
|
+
* Stores the various types and fields for rippled to be used to encode/decode information later on.
|
63591
|
+
* Should be used instead of XrplDefinitionsBase since this defines default `types` for serializing/deserializing
|
63592
|
+
* ledger data.
|
63593
|
+
*/
|
63594
|
+
class XrplDefinitions extends xrpl_definitions_base_1.XrplDefinitionsBase {
|
63595
|
+
/**
|
63596
|
+
* Present rippled types in a typed and updatable format.
|
63597
|
+
* For an example of the input format see `definitions.json`
|
63598
|
+
* To generate a new definitions file from rippled source code, use this tool: https://github.com/RichardAH/xrpl-codec-gen
|
63599
|
+
*
|
63600
|
+
* See the definitions.test.js file for examples of how to create your own updated definitions.json.
|
63601
|
+
*
|
63602
|
+
* @param enums - A json encoding of the core types, transaction types, transaction results, transaction names, and fields.
|
63603
|
+
* @param additionalTypes - A list of SerializedType objects with the same name as the fields defined.
|
63604
|
+
* These types will be included in addition to the coreTypes used on mainnet.
|
63605
|
+
*/
|
63606
|
+
constructor(enums, additionalTypes) {
|
63607
|
+
const types = Object.assign({}, types_1.coreTypes, additionalTypes);
|
63608
|
+
super(enums, types);
|
63609
|
+
}
|
63610
|
+
}
|
63611
|
+
exports.XrplDefinitions = XrplDefinitions;
|
63408
63612
|
|
63409
63613
|
|
63410
63614
|
/***/ }),
|
@@ -63579,34 +63783,43 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
63579
63783
|
return result;
|
63580
63784
|
};
|
63581
63785
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
63582
|
-
exports.TRANSACTION_TYPES = exports.decodeLedgerData = exports.decodeQuality = exports.encodeQuality = exports.encodeForMultisigning = exports.encodeForSigningClaim = exports.encodeForSigning = exports.encode = exports.decode = void 0;
|
63786
|
+
exports.coreTypes = exports.DEFAULT_DEFINITIONS = exports.XrplDefinitionsBase = exports.XrplDefinitions = exports.TRANSACTION_TYPES = exports.decodeLedgerData = exports.decodeQuality = exports.encodeQuality = exports.encodeForMultisigning = exports.encodeForSigningClaim = exports.encodeForSigning = exports.encode = exports.decode = void 0;
|
63583
63787
|
const assert = __importStar(__webpack_require__(/*! assert */ "../../node_modules/assert/build/assert.js"));
|
63584
63788
|
const coretypes_1 = __webpack_require__(/*! ./coretypes */ "../../node_modules/ripple-binary-codec/dist/coretypes.js");
|
63585
63789
|
const ledger_hashes_1 = __webpack_require__(/*! ./ledger-hashes */ "../../node_modules/ripple-binary-codec/dist/ledger-hashes.js");
|
63586
63790
|
Object.defineProperty(exports, "decodeLedgerData", ({ enumerable: true, get: function () { return ledger_hashes_1.decodeLedgerData; } }));
|
63587
63791
|
const enums_1 = __webpack_require__(/*! ./enums */ "../../node_modules/ripple-binary-codec/dist/enums/index.js");
|
63792
|
+
Object.defineProperty(exports, "XrplDefinitionsBase", ({ enumerable: true, get: function () { return enums_1.XrplDefinitionsBase; } }));
|
63588
63793
|
Object.defineProperty(exports, "TRANSACTION_TYPES", ({ enumerable: true, get: function () { return enums_1.TRANSACTION_TYPES; } }));
|
63794
|
+
Object.defineProperty(exports, "DEFAULT_DEFINITIONS", ({ enumerable: true, get: function () { return enums_1.DEFAULT_DEFINITIONS; } }));
|
63795
|
+
const xrpl_definitions_1 = __webpack_require__(/*! ./enums/xrpl-definitions */ "../../node_modules/ripple-binary-codec/dist/enums/xrpl-definitions.js");
|
63796
|
+
Object.defineProperty(exports, "XrplDefinitions", ({ enumerable: true, get: function () { return xrpl_definitions_1.XrplDefinitions; } }));
|
63797
|
+
const types_1 = __webpack_require__(/*! ./types */ "../../node_modules/ripple-binary-codec/dist/types/index.js");
|
63798
|
+
Object.defineProperty(exports, "coreTypes", ({ enumerable: true, get: function () { return types_1.coreTypes; } }));
|
63589
63799
|
const { signingData, signingClaimData, multiSigningData, binaryToJSON, serializeObject, } = coretypes_1.binary;
|
63590
63800
|
/**
|
63591
63801
|
* Decode a transaction
|
63592
63802
|
*
|
63593
63803
|
* @param binary hex-string of the encoded transaction
|
63804
|
+
* @param definitions Custom rippled types to use instead of the default. Used for sidechains and amendments.
|
63594
63805
|
* @returns the JSON representation of the transaction
|
63595
63806
|
*/
|
63596
|
-
function decode(binary) {
|
63807
|
+
function decode(binary, definitions) {
|
63597
63808
|
assert.ok(typeof binary === 'string', 'binary must be a hex string');
|
63598
|
-
return binaryToJSON(binary);
|
63809
|
+
return binaryToJSON(binary, definitions);
|
63599
63810
|
}
|
63600
63811
|
exports.decode = decode;
|
63601
63812
|
/**
|
63602
63813
|
* Encode a transaction
|
63603
63814
|
*
|
63604
63815
|
* @param json The JSON representation of a transaction
|
63816
|
+
* @param definitions Custom rippled types to use instead of the default. Used for sidechains and amendments.
|
63817
|
+
*
|
63605
63818
|
* @returns A hex-string of the encoded transaction
|
63606
63819
|
*/
|
63607
|
-
function encode(json) {
|
63820
|
+
function encode(json, definitions) {
|
63608
63821
|
assert.ok(typeof json === 'object');
|
63609
|
-
return serializeObject(json)
|
63822
|
+
return serializeObject(json, { definitions })
|
63610
63823
|
.toString('hex')
|
63611
63824
|
.toUpperCase();
|
63612
63825
|
}
|
@@ -63616,11 +63829,14 @@ exports.encode = encode;
|
|
63616
63829
|
*
|
63617
63830
|
* @param json JSON object representing the transaction
|
63618
63831
|
* @param signer string representing the account to sign the transaction with
|
63832
|
+
* @param definitions Custom rippled types to use instead of the default. Used for sidechains and amendments.
|
63619
63833
|
* @returns a hex string of the encoded transaction
|
63620
63834
|
*/
|
63621
|
-
function encodeForSigning(json) {
|
63835
|
+
function encodeForSigning(json, definitions) {
|
63622
63836
|
assert.ok(typeof json === 'object');
|
63623
|
-
return signingData(json
|
63837
|
+
return signingData(json, coretypes_1.HashPrefix.transactionSig, {
|
63838
|
+
definitions,
|
63839
|
+
})
|
63624
63840
|
.toString('hex')
|
63625
63841
|
.toUpperCase();
|
63626
63842
|
}
|
@@ -63630,6 +63846,7 @@ exports.encodeForSigning = encodeForSigning;
|
|
63630
63846
|
*
|
63631
63847
|
* @param json JSON object representing the transaction
|
63632
63848
|
* @param signer string representing the account to sign the transaction with
|
63849
|
+
* @param definitions Custom rippled types to use instead of the default. Used for sidechains and amendments.
|
63633
63850
|
* @returns a hex string of the encoded transaction
|
63634
63851
|
*/
|
63635
63852
|
function encodeForSigningClaim(json) {
|
@@ -63644,12 +63861,14 @@ exports.encodeForSigningClaim = encodeForSigningClaim;
|
|
63644
63861
|
*
|
63645
63862
|
* @param json JSON object representing the transaction
|
63646
63863
|
* @param signer string representing the account to sign the transaction with
|
63864
|
+
* @param definitions Custom rippled types to use instead of the default. Used for sidechains and amendments.
|
63647
63865
|
* @returns a hex string of the encoded transaction
|
63648
63866
|
*/
|
63649
|
-
function encodeForMultisigning(json, signer) {
|
63867
|
+
function encodeForMultisigning(json, signer, definitions) {
|
63650
63868
|
assert.ok(typeof json === 'object');
|
63651
63869
|
assert.equal(json['SigningPubKey'], '');
|
63652
|
-
|
63870
|
+
const definitionsOpt = definitions ? { definitions } : undefined;
|
63871
|
+
return multiSigningData(json, signer, definitionsOpt)
|
63653
63872
|
.toString('hex')
|
63654
63873
|
.toUpperCase();
|
63655
63874
|
}
|
@@ -63826,11 +64045,13 @@ exports.ledgerHash = ledgerHash;
|
|
63826
64045
|
* Decodes a serialized ledger header
|
63827
64046
|
*
|
63828
64047
|
* @param binary A serialized ledger header
|
64048
|
+
* @param definitions Type definitions to parse the ledger objects.
|
64049
|
+
* Used if there are non-default ledger objects to decode.
|
63829
64050
|
* @returns A JSON object describing a ledger header
|
63830
64051
|
*/
|
63831
|
-
function decodeLedgerData(binary) {
|
64052
|
+
function decodeLedgerData(binary, definitions) {
|
63832
64053
|
assert.ok(typeof binary === 'string', 'binary must be a hex string');
|
63833
|
-
const parser = new binary_parser_1.BinaryParser(binary);
|
64054
|
+
const parser = new binary_parser_1.BinaryParser(binary, definitions);
|
63834
64055
|
return {
|
63835
64056
|
ledger_index: parser.readUInt32(),
|
63836
64057
|
total_coins: parser.readType(uint_64_1.UInt64).valueOf().toString(),
|
@@ -63942,9 +64163,12 @@ class BinaryParser {
|
|
63942
64163
|
* Initialize bytes to a hex string
|
63943
64164
|
*
|
63944
64165
|
* @param hexBytes a hex string
|
64166
|
+
* @param definitions Rippled definitions used to parse the values of transaction types and such.
|
64167
|
+
* Can be customized for sidechains and amendments.
|
63945
64168
|
*/
|
63946
|
-
constructor(hexBytes) {
|
64169
|
+
constructor(hexBytes, definitions = enums_1.DEFAULT_DEFINITIONS) {
|
63947
64170
|
this.bytes = buffer_1.Buffer.from(hexBytes, 'hex');
|
64171
|
+
this.definitions = definitions;
|
63948
64172
|
}
|
63949
64173
|
/**
|
63950
64174
|
* Peek the first byte of the BinaryParser
|
@@ -64060,7 +64284,7 @@ class BinaryParser {
|
|
64060
64284
|
* @return The field represented by the bytes at the head of the BinaryParser
|
64061
64285
|
*/
|
64062
64286
|
readField() {
|
64063
|
-
return
|
64287
|
+
return this.definitions.field.fromString(this.readFieldOrdinal().toString());
|
64064
64288
|
}
|
64065
64289
|
/**
|
64066
64290
|
* Read a given type from the BinaryParser
|
@@ -64436,7 +64660,9 @@ class ShaMapInner extends ShaMapNode {
|
|
64436
64660
|
toBytesSink(list) {
|
64437
64661
|
for (let i = 0; i < this.branches.length; i++) {
|
64438
64662
|
const branch = this.branches[i];
|
64439
|
-
const hash = branch
|
64663
|
+
const hash = branch
|
64664
|
+
? branch.hash()
|
64665
|
+
: types_1.coreTypes.Hash256.ZERO_256;
|
64440
64666
|
hash.toBytesSink(list);
|
64441
64667
|
}
|
64442
64668
|
}
|
@@ -65152,23 +65378,40 @@ exports.Hash = Hash;
|
|
65152
65378
|
"use strict";
|
65153
65379
|
|
65154
65380
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
65155
|
-
exports.coreTypes = void 0;
|
65156
|
-
const enums_1 = __webpack_require__(/*! ../enums */ "../../node_modules/ripple-binary-codec/dist/enums/index.js");
|
65381
|
+
exports.Vector256 = exports.UInt64 = exports.UInt32 = exports.UInt16 = exports.UInt8 = exports.STObject = exports.STArray = exports.PathSet = exports.Hash256 = exports.Hash160 = exports.Hash128 = exports.Currency = exports.Blob = exports.Amount = exports.AccountID = exports.coreTypes = void 0;
|
65157
65382
|
const account_id_1 = __webpack_require__(/*! ./account-id */ "../../node_modules/ripple-binary-codec/dist/types/account-id.js");
|
65383
|
+
Object.defineProperty(exports, "AccountID", ({ enumerable: true, get: function () { return account_id_1.AccountID; } }));
|
65158
65384
|
const amount_1 = __webpack_require__(/*! ./amount */ "../../node_modules/ripple-binary-codec/dist/types/amount.js");
|
65385
|
+
Object.defineProperty(exports, "Amount", ({ enumerable: true, get: function () { return amount_1.Amount; } }));
|
65159
65386
|
const blob_1 = __webpack_require__(/*! ./blob */ "../../node_modules/ripple-binary-codec/dist/types/blob.js");
|
65387
|
+
Object.defineProperty(exports, "Blob", ({ enumerable: true, get: function () { return blob_1.Blob; } }));
|
65160
65388
|
const currency_1 = __webpack_require__(/*! ./currency */ "../../node_modules/ripple-binary-codec/dist/types/currency.js");
|
65389
|
+
Object.defineProperty(exports, "Currency", ({ enumerable: true, get: function () { return currency_1.Currency; } }));
|
65161
65390
|
const hash_128_1 = __webpack_require__(/*! ./hash-128 */ "../../node_modules/ripple-binary-codec/dist/types/hash-128.js");
|
65391
|
+
Object.defineProperty(exports, "Hash128", ({ enumerable: true, get: function () { return hash_128_1.Hash128; } }));
|
65162
65392
|
const hash_160_1 = __webpack_require__(/*! ./hash-160 */ "../../node_modules/ripple-binary-codec/dist/types/hash-160.js");
|
65393
|
+
Object.defineProperty(exports, "Hash160", ({ enumerable: true, get: function () { return hash_160_1.Hash160; } }));
|
65163
65394
|
const hash_256_1 = __webpack_require__(/*! ./hash-256 */ "../../node_modules/ripple-binary-codec/dist/types/hash-256.js");
|
65395
|
+
Object.defineProperty(exports, "Hash256", ({ enumerable: true, get: function () { return hash_256_1.Hash256; } }));
|
65396
|
+
const issue_1 = __webpack_require__(/*! ./issue */ "../../node_modules/ripple-binary-codec/dist/types/issue.js");
|
65164
65397
|
const path_set_1 = __webpack_require__(/*! ./path-set */ "../../node_modules/ripple-binary-codec/dist/types/path-set.js");
|
65398
|
+
Object.defineProperty(exports, "PathSet", ({ enumerable: true, get: function () { return path_set_1.PathSet; } }));
|
65165
65399
|
const st_array_1 = __webpack_require__(/*! ./st-array */ "../../node_modules/ripple-binary-codec/dist/types/st-array.js");
|
65400
|
+
Object.defineProperty(exports, "STArray", ({ enumerable: true, get: function () { return st_array_1.STArray; } }));
|
65166
65401
|
const st_object_1 = __webpack_require__(/*! ./st-object */ "../../node_modules/ripple-binary-codec/dist/types/st-object.js");
|
65402
|
+
Object.defineProperty(exports, "STObject", ({ enumerable: true, get: function () { return st_object_1.STObject; } }));
|
65167
65403
|
const uint_16_1 = __webpack_require__(/*! ./uint-16 */ "../../node_modules/ripple-binary-codec/dist/types/uint-16.js");
|
65404
|
+
Object.defineProperty(exports, "UInt16", ({ enumerable: true, get: function () { return uint_16_1.UInt16; } }));
|
65168
65405
|
const uint_32_1 = __webpack_require__(/*! ./uint-32 */ "../../node_modules/ripple-binary-codec/dist/types/uint-32.js");
|
65406
|
+
Object.defineProperty(exports, "UInt32", ({ enumerable: true, get: function () { return uint_32_1.UInt32; } }));
|
65169
65407
|
const uint_64_1 = __webpack_require__(/*! ./uint-64 */ "../../node_modules/ripple-binary-codec/dist/types/uint-64.js");
|
65408
|
+
Object.defineProperty(exports, "UInt64", ({ enumerable: true, get: function () { return uint_64_1.UInt64; } }));
|
65170
65409
|
const uint_8_1 = __webpack_require__(/*! ./uint-8 */ "../../node_modules/ripple-binary-codec/dist/types/uint-8.js");
|
65410
|
+
Object.defineProperty(exports, "UInt8", ({ enumerable: true, get: function () { return uint_8_1.UInt8; } }));
|
65171
65411
|
const vector_256_1 = __webpack_require__(/*! ./vector-256 */ "../../node_modules/ripple-binary-codec/dist/types/vector-256.js");
|
65412
|
+
Object.defineProperty(exports, "Vector256", ({ enumerable: true, get: function () { return vector_256_1.Vector256; } }));
|
65413
|
+
const xchain_bridge_1 = __webpack_require__(/*! ./xchain-bridge */ "../../node_modules/ripple-binary-codec/dist/types/xchain-bridge.js");
|
65414
|
+
const enums_1 = __webpack_require__(/*! ../enums */ "../../node_modules/ripple-binary-codec/dist/enums/index.js");
|
65172
65415
|
const coreTypes = {
|
65173
65416
|
AccountID: account_id_1.AccountID,
|
65174
65417
|
Amount: amount_1.Amount,
|
@@ -65177,6 +65420,7 @@ const coreTypes = {
|
|
65177
65420
|
Hash128: hash_128_1.Hash128,
|
65178
65421
|
Hash160: hash_160_1.Hash160,
|
65179
65422
|
Hash256: hash_256_1.Hash256,
|
65423
|
+
Issue: issue_1.Issue,
|
65180
65424
|
PathSet: path_set_1.PathSet,
|
65181
65425
|
STArray: st_array_1.STArray,
|
65182
65426
|
STObject: st_object_1.STObject,
|
@@ -65185,80 +65429,170 @@ const coreTypes = {
|
|
65185
65429
|
UInt32: uint_32_1.UInt32,
|
65186
65430
|
UInt64: uint_64_1.UInt64,
|
65187
65431
|
Vector256: vector_256_1.Vector256,
|
65432
|
+
XChainBridge: xchain_bridge_1.XChainBridge,
|
65188
65433
|
};
|
65189
65434
|
exports.coreTypes = coreTypes;
|
65190
|
-
|
65191
|
-
|
65192
|
-
|
65193
|
-
enums_1.
|
65194
|
-
enums_1.Field['TransactionResult'].associatedType = enums_1.TransactionResult;
|
65195
|
-
enums_1.Field['LedgerEntryType'].associatedType = enums_1.LedgerEntryType;
|
65435
|
+
// Ensures that the DEFAULT_DEFINITIONS object connects these types to fields for serializing/deserializing
|
65436
|
+
// This is done here instead of in enums/index.ts to avoid a circular dependency
|
65437
|
+
// because some of the above types depend on BinarySerializer which depends on enums/index.ts.
|
65438
|
+
enums_1.DEFAULT_DEFINITIONS.associateTypes(coreTypes);
|
65196
65439
|
|
65197
65440
|
|
65198
65441
|
/***/ }),
|
65199
65442
|
|
65200
|
-
/***/ "../../node_modules/ripple-binary-codec/dist/types/
|
65201
|
-
|
65202
|
-
!*** ../../node_modules/ripple-binary-codec/dist/types/
|
65203
|
-
|
65443
|
+
/***/ "../../node_modules/ripple-binary-codec/dist/types/issue.js":
|
65444
|
+
/*!******************************************************************!*\
|
65445
|
+
!*** ../../node_modules/ripple-binary-codec/dist/types/issue.js ***!
|
65446
|
+
\******************************************************************/
|
65204
65447
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
65205
65448
|
|
65206
65449
|
"use strict";
|
65207
65450
|
|
65208
65451
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
65209
|
-
exports.
|
65452
|
+
exports.Issue = void 0;
|
65453
|
+
const binary_parser_1 = __webpack_require__(/*! ../serdes/binary-parser */ "../../node_modules/ripple-binary-codec/dist/serdes/binary-parser.js");
|
65210
65454
|
const account_id_1 = __webpack_require__(/*! ./account-id */ "../../node_modules/ripple-binary-codec/dist/types/account-id.js");
|
65211
65455
|
const currency_1 = __webpack_require__(/*! ./currency */ "../../node_modules/ripple-binary-codec/dist/types/currency.js");
|
65212
|
-
const binary_parser_1 = __webpack_require__(/*! ../serdes/binary-parser */ "../../node_modules/ripple-binary-codec/dist/serdes/binary-parser.js");
|
65213
65456
|
const serialized_type_1 = __webpack_require__(/*! ./serialized-type */ "../../node_modules/ripple-binary-codec/dist/types/serialized-type.js");
|
65214
65457
|
const buffer_1 = __webpack_require__(/*! buffer/ */ "../../node_modules/ripple-binary-codec/node_modules/buffer/index.js");
|
65215
65458
|
/**
|
65216
|
-
*
|
65217
|
-
*/
|
65218
|
-
const PATHSET_END_BYTE = 0x00;
|
65219
|
-
const PATH_SEPARATOR_BYTE = 0xff;
|
65220
|
-
/**
|
65221
|
-
* Constant for masking types of a Hop
|
65222
|
-
*/
|
65223
|
-
const TYPE_ACCOUNT = 0x01;
|
65224
|
-
const TYPE_CURRENCY = 0x10;
|
65225
|
-
const TYPE_ISSUER = 0x20;
|
65226
|
-
/**
|
65227
|
-
* TypeGuard for HopObject
|
65228
|
-
*/
|
65229
|
-
function isHopObject(arg) {
|
65230
|
-
return (arg.issuer !== undefined ||
|
65231
|
-
arg.account !== undefined ||
|
65232
|
-
arg.currency !== undefined);
|
65233
|
-
}
|
65234
|
-
/**
|
65235
|
-
* TypeGuard for PathSet
|
65459
|
+
* Type guard for AmountObject
|
65236
65460
|
*/
|
65237
|
-
function
|
65238
|
-
|
65239
|
-
|
65240
|
-
|
65461
|
+
function isIssueObject(arg) {
|
65462
|
+
const keys = Object.keys(arg).sort();
|
65463
|
+
if (keys.length === 1) {
|
65464
|
+
return keys[0] === 'currency';
|
65465
|
+
}
|
65466
|
+
return keys.length === 2 && keys[0] === 'currency' && keys[1] === 'issuer';
|
65241
65467
|
}
|
65242
65468
|
/**
|
65243
|
-
*
|
65469
|
+
* Class for serializing/Deserializing Amounts
|
65244
65470
|
*/
|
65245
|
-
class
|
65471
|
+
class Issue extends serialized_type_1.SerializedType {
|
65472
|
+
constructor(bytes) {
|
65473
|
+
super(bytes !== null && bytes !== void 0 ? bytes : Issue.ZERO_ISSUED_CURRENCY.bytes);
|
65474
|
+
}
|
65246
65475
|
/**
|
65247
|
-
*
|
65476
|
+
* Construct an amount from an IOU or string amount
|
65248
65477
|
*
|
65249
|
-
* @param value
|
65250
|
-
*
|
65478
|
+
* @param value An Amount, object representing an IOU, or a string
|
65479
|
+
* representing an integer amount
|
65480
|
+
* @returns An Amount object
|
65251
65481
|
*/
|
65252
65482
|
static from(value) {
|
65253
|
-
if (value instanceof
|
65483
|
+
if (value instanceof Issue) {
|
65254
65484
|
return value;
|
65255
65485
|
}
|
65256
|
-
|
65257
|
-
|
65258
|
-
|
65259
|
-
|
65260
|
-
|
65261
|
-
|
65486
|
+
if (isIssueObject(value)) {
|
65487
|
+
const currency = currency_1.Currency.from(value.currency).toBytes();
|
65488
|
+
if (value.issuer == null) {
|
65489
|
+
return new Issue(currency);
|
65490
|
+
}
|
65491
|
+
const issuer = account_id_1.AccountID.from(value.issuer).toBytes();
|
65492
|
+
return new Issue(buffer_1.Buffer.concat([currency, issuer]));
|
65493
|
+
}
|
65494
|
+
throw new Error('Invalid type to construct an Amount');
|
65495
|
+
}
|
65496
|
+
/**
|
65497
|
+
* Read an amount from a BinaryParser
|
65498
|
+
*
|
65499
|
+
* @param parser BinaryParser to read the Amount from
|
65500
|
+
* @returns An Amount object
|
65501
|
+
*/
|
65502
|
+
static fromParser(parser) {
|
65503
|
+
const currency = parser.read(20);
|
65504
|
+
if (new currency_1.Currency(currency).toJSON() === 'XRP') {
|
65505
|
+
return new Issue(currency);
|
65506
|
+
}
|
65507
|
+
const currencyAndIssuer = [currency, parser.read(20)];
|
65508
|
+
return new Issue(buffer_1.Buffer.concat(currencyAndIssuer));
|
65509
|
+
}
|
65510
|
+
/**
|
65511
|
+
* Get the JSON representation of this Amount
|
65512
|
+
*
|
65513
|
+
* @returns the JSON interpretation of this.bytes
|
65514
|
+
*/
|
65515
|
+
toJSON() {
|
65516
|
+
const parser = new binary_parser_1.BinaryParser(this.toString());
|
65517
|
+
const currency = currency_1.Currency.fromParser(parser);
|
65518
|
+
if (currency.toJSON() === 'XRP') {
|
65519
|
+
return { currency: currency.toJSON() };
|
65520
|
+
}
|
65521
|
+
const issuer = account_id_1.AccountID.fromParser(parser);
|
65522
|
+
return {
|
65523
|
+
currency: currency.toJSON(),
|
65524
|
+
issuer: issuer.toJSON(),
|
65525
|
+
};
|
65526
|
+
}
|
65527
|
+
}
|
65528
|
+
exports.Issue = Issue;
|
65529
|
+
Issue.ZERO_ISSUED_CURRENCY = new Issue(buffer_1.Buffer.alloc(20));
|
65530
|
+
|
65531
|
+
|
65532
|
+
/***/ }),
|
65533
|
+
|
65534
|
+
/***/ "../../node_modules/ripple-binary-codec/dist/types/path-set.js":
|
65535
|
+
/*!*********************************************************************!*\
|
65536
|
+
!*** ../../node_modules/ripple-binary-codec/dist/types/path-set.js ***!
|
65537
|
+
\*********************************************************************/
|
65538
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
65539
|
+
|
65540
|
+
"use strict";
|
65541
|
+
|
65542
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
65543
|
+
exports.PathSet = void 0;
|
65544
|
+
const account_id_1 = __webpack_require__(/*! ./account-id */ "../../node_modules/ripple-binary-codec/dist/types/account-id.js");
|
65545
|
+
const currency_1 = __webpack_require__(/*! ./currency */ "../../node_modules/ripple-binary-codec/dist/types/currency.js");
|
65546
|
+
const binary_parser_1 = __webpack_require__(/*! ../serdes/binary-parser */ "../../node_modules/ripple-binary-codec/dist/serdes/binary-parser.js");
|
65547
|
+
const serialized_type_1 = __webpack_require__(/*! ./serialized-type */ "../../node_modules/ripple-binary-codec/dist/types/serialized-type.js");
|
65548
|
+
const buffer_1 = __webpack_require__(/*! buffer/ */ "../../node_modules/ripple-binary-codec/node_modules/buffer/index.js");
|
65549
|
+
/**
|
65550
|
+
* Constants for separating Paths in a PathSet
|
65551
|
+
*/
|
65552
|
+
const PATHSET_END_BYTE = 0x00;
|
65553
|
+
const PATH_SEPARATOR_BYTE = 0xff;
|
65554
|
+
/**
|
65555
|
+
* Constant for masking types of a Hop
|
65556
|
+
*/
|
65557
|
+
const TYPE_ACCOUNT = 0x01;
|
65558
|
+
const TYPE_CURRENCY = 0x10;
|
65559
|
+
const TYPE_ISSUER = 0x20;
|
65560
|
+
/**
|
65561
|
+
* TypeGuard for HopObject
|
65562
|
+
*/
|
65563
|
+
function isHopObject(arg) {
|
65564
|
+
return (arg.issuer !== undefined ||
|
65565
|
+
arg.account !== undefined ||
|
65566
|
+
arg.currency !== undefined);
|
65567
|
+
}
|
65568
|
+
/**
|
65569
|
+
* TypeGuard for PathSet
|
65570
|
+
*/
|
65571
|
+
function isPathSet(arg) {
|
65572
|
+
return ((Array.isArray(arg) && arg.length === 0) ||
|
65573
|
+
(Array.isArray(arg) && Array.isArray(arg[0]) && arg[0].length === 0) ||
|
65574
|
+
(Array.isArray(arg) && Array.isArray(arg[0]) && isHopObject(arg[0][0])));
|
65575
|
+
}
|
65576
|
+
/**
|
65577
|
+
* Serialize and Deserialize a Hop
|
65578
|
+
*/
|
65579
|
+
class Hop extends serialized_type_1.SerializedType {
|
65580
|
+
/**
|
65581
|
+
* Create a Hop from a HopObject
|
65582
|
+
*
|
65583
|
+
* @param value Either a hop or HopObject to create a hop with
|
65584
|
+
* @returns a Hop
|
65585
|
+
*/
|
65586
|
+
static from(value) {
|
65587
|
+
if (value instanceof Hop) {
|
65588
|
+
return value;
|
65589
|
+
}
|
65590
|
+
const bytes = [buffer_1.Buffer.from([0])];
|
65591
|
+
if (value.account) {
|
65592
|
+
bytes.push(account_id_1.AccountID.from(value.account).toBytes());
|
65593
|
+
bytes[0][0] |= TYPE_ACCOUNT;
|
65594
|
+
}
|
65595
|
+
if (value.currency) {
|
65262
65596
|
bytes.push(currency_1.Currency.from(value.currency).toBytes());
|
65263
65597
|
bytes[0][0] |= TYPE_CURRENCY;
|
65264
65598
|
}
|
@@ -65723,9 +66057,10 @@ class STObject extends serialized_type_1.SerializedType {
|
|
65723
66057
|
*
|
65724
66058
|
* @param value An object to include
|
65725
66059
|
* @param filter optional, denote which field to include in serialized object
|
66060
|
+
* @param definitions optional, types and values to use to encode/decode a transaction
|
65726
66061
|
* @returns a STObject object
|
65727
66062
|
*/
|
65728
|
-
static from(value, filter) {
|
66063
|
+
static from(value, filter, definitions = enums_1.DEFAULT_DEFINITIONS) {
|
65729
66064
|
if (value instanceof STObject) {
|
65730
66065
|
return value;
|
65731
66066
|
}
|
@@ -65741,7 +66076,7 @@ class STObject extends serialized_type_1.SerializedType {
|
|
65741
66076
|
return Object.assign(acc, handled !== null && handled !== void 0 ? handled : { [key]: val });
|
65742
66077
|
}, {});
|
65743
66078
|
let sorted = Object.keys(xAddressDecoded)
|
65744
|
-
.map((f) =>
|
66079
|
+
.map((f) => definitions.field[f])
|
65745
66080
|
.filter((f) => f !== undefined &&
|
65746
66081
|
xAddressDecoded[f.name] !== undefined &&
|
65747
66082
|
f.isSerialized)
|
@@ -65773,11 +66108,12 @@ class STObject extends serialized_type_1.SerializedType {
|
|
65773
66108
|
}
|
65774
66109
|
/**
|
65775
66110
|
* Get the JSON interpretation of this.bytes
|
65776
|
-
*
|
66111
|
+
* @param definitions rippled definitions used to parse the values of transaction types and such.
|
66112
|
+
* Can be customized for sidechains and amendments.
|
65777
66113
|
* @returns a JSON object
|
65778
66114
|
*/
|
65779
|
-
toJSON() {
|
65780
|
-
const objectParser = new binary_parser_1.BinaryParser(this.toString());
|
66115
|
+
toJSON(definitions) {
|
66116
|
+
const objectParser = new binary_parser_1.BinaryParser(this.toString(), definitions);
|
65781
66117
|
const accumulator = {};
|
65782
66118
|
while (!objectParser.end()) {
|
65783
66119
|
const field = objectParser.readField();
|
@@ -66193,6 +66529,118 @@ class Vector256 extends serialized_type_1.SerializedType {
|
|
66193
66529
|
exports.Vector256 = Vector256;
|
66194
66530
|
|
66195
66531
|
|
66532
|
+
/***/ }),
|
66533
|
+
|
66534
|
+
/***/ "../../node_modules/ripple-binary-codec/dist/types/xchain-bridge.js":
|
66535
|
+
/*!**************************************************************************!*\
|
66536
|
+
!*** ../../node_modules/ripple-binary-codec/dist/types/xchain-bridge.js ***!
|
66537
|
+
\**************************************************************************/
|
66538
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
66539
|
+
|
66540
|
+
"use strict";
|
66541
|
+
|
66542
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
66543
|
+
exports.XChainBridge = void 0;
|
66544
|
+
const binary_parser_1 = __webpack_require__(/*! ../serdes/binary-parser */ "../../node_modules/ripple-binary-codec/dist/serdes/binary-parser.js");
|
66545
|
+
const account_id_1 = __webpack_require__(/*! ./account-id */ "../../node_modules/ripple-binary-codec/dist/types/account-id.js");
|
66546
|
+
const serialized_type_1 = __webpack_require__(/*! ./serialized-type */ "../../node_modules/ripple-binary-codec/dist/types/serialized-type.js");
|
66547
|
+
const buffer_1 = __webpack_require__(/*! buffer/ */ "../../node_modules/ripple-binary-codec/node_modules/buffer/index.js");
|
66548
|
+
const issue_1 = __webpack_require__(/*! ./issue */ "../../node_modules/ripple-binary-codec/dist/types/issue.js");
|
66549
|
+
/**
|
66550
|
+
* Type guard for XChainBridgeObject
|
66551
|
+
*/
|
66552
|
+
function isXChainBridgeObject(arg) {
|
66553
|
+
const keys = Object.keys(arg).sort();
|
66554
|
+
return (keys.length === 4 &&
|
66555
|
+
keys[0] === 'IssuingChainDoor' &&
|
66556
|
+
keys[1] === 'IssuingChainIssue' &&
|
66557
|
+
keys[2] === 'LockingChainDoor' &&
|
66558
|
+
keys[3] === 'LockingChainIssue');
|
66559
|
+
}
|
66560
|
+
/**
|
66561
|
+
* Class for serializing/deserializing XChainBridges
|
66562
|
+
*/
|
66563
|
+
class XChainBridge extends serialized_type_1.SerializedType {
|
66564
|
+
constructor(bytes) {
|
66565
|
+
super(bytes !== null && bytes !== void 0 ? bytes : XChainBridge.ZERO_XCHAIN_BRIDGE.bytes);
|
66566
|
+
}
|
66567
|
+
/**
|
66568
|
+
* Construct a cross-chain bridge from a JSON
|
66569
|
+
*
|
66570
|
+
* @param value XChainBridge or JSON to parse into a XChainBridge
|
66571
|
+
* @returns A XChainBridge object
|
66572
|
+
*/
|
66573
|
+
static from(value) {
|
66574
|
+
if (value instanceof XChainBridge) {
|
66575
|
+
return value;
|
66576
|
+
}
|
66577
|
+
if (isXChainBridgeObject(value)) {
|
66578
|
+
const bytes = [];
|
66579
|
+
this.TYPE_ORDER.forEach((item) => {
|
66580
|
+
const { name, type } = item;
|
66581
|
+
if (type === account_id_1.AccountID) {
|
66582
|
+
bytes.push(buffer_1.Buffer.from([0x14]));
|
66583
|
+
}
|
66584
|
+
const object = type.from(value[name]);
|
66585
|
+
bytes.push(object.toBytes());
|
66586
|
+
});
|
66587
|
+
return new XChainBridge(buffer_1.Buffer.concat(bytes));
|
66588
|
+
}
|
66589
|
+
throw new Error('Invalid type to construct a XChainBridge');
|
66590
|
+
}
|
66591
|
+
/**
|
66592
|
+
* Read a XChainBridge from a BinaryParser
|
66593
|
+
*
|
66594
|
+
* @param parser BinaryParser to read the XChainBridge from
|
66595
|
+
* @returns A XChainBridge object
|
66596
|
+
*/
|
66597
|
+
static fromParser(parser) {
|
66598
|
+
const bytes = [];
|
66599
|
+
this.TYPE_ORDER.forEach((item) => {
|
66600
|
+
const { type } = item;
|
66601
|
+
if (type === account_id_1.AccountID) {
|
66602
|
+
parser.skip(1);
|
66603
|
+
bytes.push(buffer_1.Buffer.from([0x14]));
|
66604
|
+
}
|
66605
|
+
const object = type.fromParser(parser);
|
66606
|
+
bytes.push(object.toBytes());
|
66607
|
+
});
|
66608
|
+
return new XChainBridge(buffer_1.Buffer.concat(bytes));
|
66609
|
+
}
|
66610
|
+
/**
|
66611
|
+
* Get the JSON representation of this XChainBridge
|
66612
|
+
*
|
66613
|
+
* @returns the JSON interpretation of this.bytes
|
66614
|
+
*/
|
66615
|
+
toJSON() {
|
66616
|
+
const parser = new binary_parser_1.BinaryParser(this.toString());
|
66617
|
+
const json = {};
|
66618
|
+
XChainBridge.TYPE_ORDER.forEach((item) => {
|
66619
|
+
const { name, type } = item;
|
66620
|
+
if (type === account_id_1.AccountID) {
|
66621
|
+
parser.skip(1);
|
66622
|
+
}
|
66623
|
+
const object = type.fromParser(parser).toJSON();
|
66624
|
+
json[name] = object;
|
66625
|
+
});
|
66626
|
+
return json;
|
66627
|
+
}
|
66628
|
+
}
|
66629
|
+
exports.XChainBridge = XChainBridge;
|
66630
|
+
XChainBridge.ZERO_XCHAIN_BRIDGE = new XChainBridge(buffer_1.Buffer.concat([
|
66631
|
+
buffer_1.Buffer.from([0x14]),
|
66632
|
+
buffer_1.Buffer.alloc(40),
|
66633
|
+
buffer_1.Buffer.from([0x14]),
|
66634
|
+
buffer_1.Buffer.alloc(40),
|
66635
|
+
]));
|
66636
|
+
XChainBridge.TYPE_ORDER = [
|
66637
|
+
{ name: 'LockingChainDoor', type: account_id_1.AccountID },
|
66638
|
+
{ name: 'LockingChainIssue', type: issue_1.Issue },
|
66639
|
+
{ name: 'IssuingChainDoor', type: account_id_1.AccountID },
|
66640
|
+
{ name: 'IssuingChainIssue', type: issue_1.Issue },
|
66641
|
+
];
|
66642
|
+
|
66643
|
+
|
66196
66644
|
/***/ }),
|
66197
66645
|
|
66198
66646
|
/***/ "../../node_modules/ripple-binary-codec/node_modules/buffer/index.js":
|
@@ -74393,11 +74841,13 @@ const bignumber_js_1 = __importDefault(__webpack_require__(/*! bignumber.js */ "
|
|
74393
74841
|
const bip32_1 = __webpack_require__(/*! bip32 */ "../../node_modules/bip32/src/index.js");
|
74394
74842
|
const bip39_1 = __webpack_require__(/*! bip39 */ "../../node_modules/bip39/src/index.js");
|
74395
74843
|
const isEqual_1 = __importDefault(__webpack_require__(/*! lodash/isEqual */ "../../node_modules/lodash/isEqual.js"));
|
74844
|
+
const omitBy_1 = __importDefault(__webpack_require__(/*! lodash/omitBy */ "../../node_modules/lodash/omitBy.js"));
|
74396
74845
|
const ripple_address_codec_1 = __webpack_require__(/*! ripple-address-codec */ "../../node_modules/ripple-address-codec/dist/index.js");
|
74397
74846
|
const ripple_binary_codec_1 = __webpack_require__(/*! ripple-binary-codec */ "../../node_modules/ripple-binary-codec/dist/index.js");
|
74398
74847
|
const ripple_keypairs_1 = __webpack_require__(/*! ripple-keypairs */ "../../node_modules/ripple-keypairs/dist/index.js");
|
74399
74848
|
const ECDSA_1 = __importDefault(__webpack_require__(/*! ../ECDSA */ "./dist/npm/ECDSA.js"));
|
74400
74849
|
const errors_1 = __webpack_require__(/*! ../errors */ "./dist/npm/errors.js");
|
74850
|
+
const transactions_1 = __webpack_require__(/*! ../models/transactions */ "./dist/npm/models/transactions/index.js");
|
74401
74851
|
const common_1 = __webpack_require__(/*! ../models/transactions/common */ "./dist/npm/models/transactions/common.js");
|
74402
74852
|
const utils_1 = __webpack_require__(/*! ../models/utils */ "./dist/npm/models/utils/index.js");
|
74403
74853
|
const utils_2 = __webpack_require__(/*! ../sugar/utils */ "./dist/npm/sugar/utils.js");
|
@@ -74499,11 +74949,12 @@ class Wallet {
|
|
74499
74949
|
else if (multisign) {
|
74500
74950
|
multisignAddress = this.classicAddress;
|
74501
74951
|
}
|
74502
|
-
const tx = Object.assign({}, transaction);
|
74952
|
+
const tx = (0, omitBy_1.default)(Object.assign({}, transaction), (value) => value == null);
|
74503
74953
|
if (tx.TxnSignature || tx.Signers) {
|
74504
74954
|
throw new errors_1.ValidationError('txJSON must not contain "TxnSignature" or "Signers" properties');
|
74505
74955
|
}
|
74506
74956
|
removeTrailingZeros(tx);
|
74957
|
+
(0, transactions_1.validate)(tx);
|
74507
74958
|
const txToSignAndEncode = Object.assign({}, tx);
|
74508
74959
|
txToSignAndEncode.SigningPubKey = multisignAddress ? '' : this.publicKey;
|
74509
74960
|
if (multisignAddress) {
|
@@ -74570,9 +75021,6 @@ class Wallet {
|
|
74570
75021
|
return memo;
|
74571
75022
|
});
|
74572
75023
|
if (txCopy.TransactionType === 'NFTokenMint' && txCopy.URI) {
|
74573
|
-
if (!(0, utils_1.isHex)(txCopy.URI)) {
|
74574
|
-
throw new errors_1.ValidationError('URI must be a hex value');
|
74575
|
-
}
|
74576
75024
|
txCopy.URI = txCopy.URI.toUpperCase();
|
74577
75025
|
}
|
74578
75026
|
Object.keys(txCopy).forEach((key) => {
|
@@ -76108,140 +76556,392 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76108
76556
|
|
76109
76557
|
/***/ }),
|
76110
76558
|
|
76111
|
-
/***/ "./dist/npm/models/transactions/
|
76112
|
-
|
76113
|
-
!*** ./dist/npm/models/transactions/
|
76114
|
-
|
76559
|
+
/***/ "./dist/npm/models/transactions/AMMBid.js":
|
76560
|
+
/*!************************************************!*\
|
76561
|
+
!*** ./dist/npm/models/transactions/AMMBid.js ***!
|
76562
|
+
\************************************************/
|
76115
76563
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76116
76564
|
|
76117
76565
|
"use strict";
|
76118
76566
|
|
76119
76567
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76120
|
-
exports.
|
76568
|
+
exports.validateAMMBid = void 0;
|
76121
76569
|
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76122
76570
|
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76123
|
-
|
76124
|
-
|
76125
|
-
|
76126
|
-
|
76571
|
+
const MAX_AUTH_ACCOUNTS = 4;
|
76572
|
+
function validateAMMBid(tx) {
|
76573
|
+
(0, common_1.validateBaseTransaction)(tx);
|
76574
|
+
if (tx.Asset == null) {
|
76575
|
+
throw new errors_1.ValidationError('AMMBid: missing field Asset');
|
76127
76576
|
}
|
76128
|
-
if (
|
76129
|
-
throw new errors_1.ValidationError('
|
76577
|
+
if (!(0, common_1.isCurrency)(tx.Asset)) {
|
76578
|
+
throw new errors_1.ValidationError('AMMBid: Asset must be an Issue');
|
76130
76579
|
}
|
76131
|
-
if (tx.
|
76132
|
-
throw new errors_1.ValidationError('
|
76580
|
+
if (tx.Asset2 == null) {
|
76581
|
+
throw new errors_1.ValidationError('AMMBid: missing field Asset2');
|
76133
76582
|
}
|
76134
|
-
|
76135
|
-
|
76136
|
-
(0, common_1.validateBaseTransaction)(tx);
|
76137
|
-
if (tx.NFTokenBrokerFee != null) {
|
76138
|
-
validateNFTokenBrokerFee(tx);
|
76583
|
+
if (!(0, common_1.isCurrency)(tx.Asset2)) {
|
76584
|
+
throw new errors_1.ValidationError('AMMBid: Asset2 must be an Issue');
|
76139
76585
|
}
|
76140
|
-
if (tx.
|
76141
|
-
throw new errors_1.ValidationError('
|
76586
|
+
if (tx.BidMin != null && !(0, common_1.isAmount)(tx.BidMin)) {
|
76587
|
+
throw new errors_1.ValidationError('AMMBid: BidMin must be an Amount');
|
76588
|
+
}
|
76589
|
+
if (tx.BidMax != null && !(0, common_1.isAmount)(tx.BidMax)) {
|
76590
|
+
throw new errors_1.ValidationError('AMMBid: BidMax must be an Amount');
|
76591
|
+
}
|
76592
|
+
if (tx.AuthAccounts != null) {
|
76593
|
+
if (!Array.isArray(tx.AuthAccounts)) {
|
76594
|
+
throw new errors_1.ValidationError(`AMMBid: AuthAccounts must be an AuthAccount array`);
|
76595
|
+
}
|
76596
|
+
if (tx.AuthAccounts.length > MAX_AUTH_ACCOUNTS) {
|
76597
|
+
throw new errors_1.ValidationError(`AMMBid: AuthAccounts length must not be greater than ${MAX_AUTH_ACCOUNTS}`);
|
76598
|
+
}
|
76142
76599
|
}
|
76143
76600
|
}
|
76144
|
-
exports.
|
76601
|
+
exports.validateAMMBid = validateAMMBid;
|
76145
76602
|
|
76146
76603
|
|
76147
76604
|
/***/ }),
|
76148
76605
|
|
76149
|
-
/***/ "./dist/npm/models/transactions/
|
76150
|
-
|
76151
|
-
!*** ./dist/npm/models/transactions/
|
76152
|
-
|
76606
|
+
/***/ "./dist/npm/models/transactions/AMMCreate.js":
|
76607
|
+
/*!***************************************************!*\
|
76608
|
+
!*** ./dist/npm/models/transactions/AMMCreate.js ***!
|
76609
|
+
\***************************************************/
|
76153
76610
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76154
76611
|
|
76155
76612
|
"use strict";
|
76156
76613
|
|
76157
76614
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76158
|
-
exports.
|
76615
|
+
exports.validateAMMCreate = exports.AMM_MAX_TRADING_FEE = void 0;
|
76159
76616
|
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76160
76617
|
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76161
|
-
|
76618
|
+
exports.AMM_MAX_TRADING_FEE = 1000;
|
76619
|
+
function validateAMMCreate(tx) {
|
76162
76620
|
(0, common_1.validateBaseTransaction)(tx);
|
76163
|
-
if (tx.
|
76164
|
-
throw new errors_1.ValidationError('
|
76621
|
+
if (tx.Amount == null) {
|
76622
|
+
throw new errors_1.ValidationError('AMMCreate: missing field Amount');
|
76623
|
+
}
|
76624
|
+
if (!(0, common_1.isAmount)(tx.Amount)) {
|
76625
|
+
throw new errors_1.ValidationError('AMMCreate: Amount must be an Amount');
|
76626
|
+
}
|
76627
|
+
if (tx.Amount2 == null) {
|
76628
|
+
throw new errors_1.ValidationError('AMMCreate: missing field Amount2');
|
76629
|
+
}
|
76630
|
+
if (!(0, common_1.isAmount)(tx.Amount2)) {
|
76631
|
+
throw new errors_1.ValidationError('AMMCreate: Amount2 must be an Amount');
|
76632
|
+
}
|
76633
|
+
if (tx.TradingFee == null) {
|
76634
|
+
throw new errors_1.ValidationError('AMMCreate: missing field TradingFee');
|
76635
|
+
}
|
76636
|
+
if (typeof tx.TradingFee !== 'number') {
|
76637
|
+
throw new errors_1.ValidationError('AMMCreate: TradingFee must be a number');
|
76638
|
+
}
|
76639
|
+
if (tx.TradingFee < 0 || tx.TradingFee > exports.AMM_MAX_TRADING_FEE) {
|
76640
|
+
throw new errors_1.ValidationError(`AMMCreate: TradingFee must be between 0 and ${exports.AMM_MAX_TRADING_FEE}`);
|
76165
76641
|
}
|
76166
76642
|
}
|
76167
|
-
exports.
|
76643
|
+
exports.validateAMMCreate = validateAMMCreate;
|
76168
76644
|
|
76169
76645
|
|
76170
76646
|
/***/ }),
|
76171
76647
|
|
76172
|
-
/***/ "./dist/npm/models/transactions/
|
76173
|
-
|
76174
|
-
!*** ./dist/npm/models/transactions/
|
76175
|
-
|
76648
|
+
/***/ "./dist/npm/models/transactions/AMMDeposit.js":
|
76649
|
+
/*!****************************************************!*\
|
76650
|
+
!*** ./dist/npm/models/transactions/AMMDeposit.js ***!
|
76651
|
+
\****************************************************/
|
76176
76652
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76177
76653
|
|
76178
76654
|
"use strict";
|
76179
76655
|
|
76180
76656
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76181
|
-
exports.
|
76657
|
+
exports.validateAMMDeposit = exports.AMMDepositFlags = void 0;
|
76182
76658
|
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76183
76659
|
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76184
|
-
|
76660
|
+
var AMMDepositFlags;
|
76661
|
+
(function (AMMDepositFlags) {
|
76662
|
+
AMMDepositFlags[AMMDepositFlags["tfLPToken"] = 65536] = "tfLPToken";
|
76663
|
+
AMMDepositFlags[AMMDepositFlags["tfSingleAsset"] = 524288] = "tfSingleAsset";
|
76664
|
+
AMMDepositFlags[AMMDepositFlags["tfTwoAsset"] = 1048576] = "tfTwoAsset";
|
76665
|
+
AMMDepositFlags[AMMDepositFlags["tfOneAssetLPToken"] = 2097152] = "tfOneAssetLPToken";
|
76666
|
+
AMMDepositFlags[AMMDepositFlags["tfLimitLPToken"] = 4194304] = "tfLimitLPToken";
|
76667
|
+
})(AMMDepositFlags = exports.AMMDepositFlags || (exports.AMMDepositFlags = {}));
|
76668
|
+
function validateAMMDeposit(tx) {
|
76185
76669
|
(0, common_1.validateBaseTransaction)(tx);
|
76186
|
-
if (
|
76187
|
-
throw new errors_1.ValidationError('
|
76670
|
+
if (tx.Asset == null) {
|
76671
|
+
throw new errors_1.ValidationError('AMMDeposit: missing field Asset');
|
76188
76672
|
}
|
76189
|
-
if (tx.
|
76190
|
-
throw new errors_1.ValidationError('
|
76673
|
+
if (!(0, common_1.isCurrency)(tx.Asset)) {
|
76674
|
+
throw new errors_1.ValidationError('AMMDeposit: Asset must be an Issue');
|
76675
|
+
}
|
76676
|
+
if (tx.Asset2 == null) {
|
76677
|
+
throw new errors_1.ValidationError('AMMDeposit: missing field Asset2');
|
76678
|
+
}
|
76679
|
+
if (!(0, common_1.isCurrency)(tx.Asset2)) {
|
76680
|
+
throw new errors_1.ValidationError('AMMDeposit: Asset2 must be an Issue');
|
76681
|
+
}
|
76682
|
+
if (tx.Amount2 != null && tx.Amount == null) {
|
76683
|
+
throw new errors_1.ValidationError('AMMDeposit: must set Amount with Amount2');
|
76684
|
+
}
|
76685
|
+
else if (tx.EPrice != null && tx.Amount == null) {
|
76686
|
+
throw new errors_1.ValidationError('AMMDeposit: must set Amount with EPrice');
|
76687
|
+
}
|
76688
|
+
else if (tx.LPTokenOut == null && tx.Amount == null) {
|
76689
|
+
throw new errors_1.ValidationError('AMMDeposit: must set at least LPTokenOut or Amount');
|
76690
|
+
}
|
76691
|
+
if (tx.LPTokenOut != null && !(0, common_1.isIssuedCurrency)(tx.LPTokenOut)) {
|
76692
|
+
throw new errors_1.ValidationError('AMMDeposit: LPTokenOut must be an IssuedCurrencyAmount');
|
76693
|
+
}
|
76694
|
+
if (tx.Amount != null && !(0, common_1.isAmount)(tx.Amount)) {
|
76695
|
+
throw new errors_1.ValidationError('AMMDeposit: Amount must be an Amount');
|
76696
|
+
}
|
76697
|
+
if (tx.Amount2 != null && !(0, common_1.isAmount)(tx.Amount2)) {
|
76698
|
+
throw new errors_1.ValidationError('AMMDeposit: Amount2 must be an Amount');
|
76699
|
+
}
|
76700
|
+
if (tx.EPrice != null && !(0, common_1.isAmount)(tx.EPrice)) {
|
76701
|
+
throw new errors_1.ValidationError('AMMDeposit: EPrice must be an Amount');
|
76191
76702
|
}
|
76192
76703
|
}
|
76193
|
-
exports.
|
76704
|
+
exports.validateAMMDeposit = validateAMMDeposit;
|
76194
76705
|
|
76195
76706
|
|
76196
76707
|
/***/ }),
|
76197
76708
|
|
76198
|
-
/***/ "./dist/npm/models/transactions/
|
76199
|
-
|
76200
|
-
!*** ./dist/npm/models/transactions/
|
76201
|
-
|
76709
|
+
/***/ "./dist/npm/models/transactions/AMMVote.js":
|
76710
|
+
/*!*************************************************!*\
|
76711
|
+
!*** ./dist/npm/models/transactions/AMMVote.js ***!
|
76712
|
+
\*************************************************/
|
76202
76713
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76203
76714
|
|
76204
76715
|
"use strict";
|
76205
76716
|
|
76206
76717
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76207
|
-
exports.
|
76718
|
+
exports.validateAMMVote = void 0;
|
76208
76719
|
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76209
|
-
const
|
76720
|
+
const AMMCreate_1 = __webpack_require__(/*! ./AMMCreate */ "./dist/npm/models/transactions/AMMCreate.js");
|
76210
76721
|
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76211
|
-
|
76212
|
-
(
|
76213
|
-
|
76214
|
-
|
76215
|
-
function validateNFTokenSellOfferCases(tx) {
|
76216
|
-
if (tx.Owner != null) {
|
76217
|
-
throw new errors_1.ValidationError('NFTokenCreateOffer: Owner must not be present for sell offers');
|
76722
|
+
function validateAMMVote(tx) {
|
76723
|
+
(0, common_1.validateBaseTransaction)(tx);
|
76724
|
+
if (tx.Asset == null) {
|
76725
|
+
throw new errors_1.ValidationError('AMMVote: missing field Asset');
|
76218
76726
|
}
|
76219
|
-
|
76220
|
-
|
76221
|
-
if (tx.Owner == null) {
|
76222
|
-
throw new errors_1.ValidationError('NFTokenCreateOffer: Owner must be present for buy offers');
|
76727
|
+
if (!(0, common_1.isCurrency)(tx.Asset)) {
|
76728
|
+
throw new errors_1.ValidationError('AMMVote: Asset must be an Issue');
|
76223
76729
|
}
|
76224
|
-
if (
|
76225
|
-
throw new errors_1.ValidationError('
|
76730
|
+
if (tx.Asset2 == null) {
|
76731
|
+
throw new errors_1.ValidationError('AMMVote: missing field Asset2');
|
76226
76732
|
}
|
76227
|
-
|
76228
|
-
|
76229
|
-
(0, common_1.validateBaseTransaction)(tx);
|
76230
|
-
if (tx.Account === tx.Owner) {
|
76231
|
-
throw new errors_1.ValidationError('NFTokenCreateOffer: Owner and Account must not be equal');
|
76733
|
+
if (!(0, common_1.isCurrency)(tx.Asset2)) {
|
76734
|
+
throw new errors_1.ValidationError('AMMVote: Asset2 must be an Issue');
|
76232
76735
|
}
|
76233
|
-
if (tx.
|
76234
|
-
throw new errors_1.ValidationError('
|
76736
|
+
if (tx.TradingFee == null) {
|
76737
|
+
throw new errors_1.ValidationError('AMMVote: missing field TradingFee');
|
76235
76738
|
}
|
76236
|
-
if (tx.
|
76237
|
-
throw new errors_1.ValidationError('
|
76739
|
+
if (typeof tx.TradingFee !== 'number') {
|
76740
|
+
throw new errors_1.ValidationError('AMMVote: TradingFee must be a number');
|
76238
76741
|
}
|
76239
|
-
if (
|
76240
|
-
throw new errors_1.ValidationError(
|
76742
|
+
if (tx.TradingFee < 0 || tx.TradingFee > AMMCreate_1.AMM_MAX_TRADING_FEE) {
|
76743
|
+
throw new errors_1.ValidationError(`AMMVote: TradingFee must be between 0 and ${AMMCreate_1.AMM_MAX_TRADING_FEE}`);
|
76241
76744
|
}
|
76242
|
-
|
76243
|
-
|
76244
|
-
|
76745
|
+
}
|
76746
|
+
exports.validateAMMVote = validateAMMVote;
|
76747
|
+
|
76748
|
+
|
76749
|
+
/***/ }),
|
76750
|
+
|
76751
|
+
/***/ "./dist/npm/models/transactions/AMMWithdraw.js":
|
76752
|
+
/*!*****************************************************!*\
|
76753
|
+
!*** ./dist/npm/models/transactions/AMMWithdraw.js ***!
|
76754
|
+
\*****************************************************/
|
76755
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76756
|
+
|
76757
|
+
"use strict";
|
76758
|
+
|
76759
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76760
|
+
exports.validateAMMWithdraw = exports.AMMWithdrawFlags = void 0;
|
76761
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76762
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76763
|
+
var AMMWithdrawFlags;
|
76764
|
+
(function (AMMWithdrawFlags) {
|
76765
|
+
AMMWithdrawFlags[AMMWithdrawFlags["tfLPToken"] = 65536] = "tfLPToken";
|
76766
|
+
AMMWithdrawFlags[AMMWithdrawFlags["tfWithdrawAll"] = 131072] = "tfWithdrawAll";
|
76767
|
+
AMMWithdrawFlags[AMMWithdrawFlags["tfOneAssetWithdrawAll"] = 262144] = "tfOneAssetWithdrawAll";
|
76768
|
+
AMMWithdrawFlags[AMMWithdrawFlags["tfSingleAsset"] = 524288] = "tfSingleAsset";
|
76769
|
+
AMMWithdrawFlags[AMMWithdrawFlags["tfTwoAsset"] = 1048576] = "tfTwoAsset";
|
76770
|
+
AMMWithdrawFlags[AMMWithdrawFlags["tfOneAssetLPToken"] = 2097152] = "tfOneAssetLPToken";
|
76771
|
+
AMMWithdrawFlags[AMMWithdrawFlags["tfLimitLPToken"] = 4194304] = "tfLimitLPToken";
|
76772
|
+
})(AMMWithdrawFlags = exports.AMMWithdrawFlags || (exports.AMMWithdrawFlags = {}));
|
76773
|
+
function validateAMMWithdraw(tx) {
|
76774
|
+
(0, common_1.validateBaseTransaction)(tx);
|
76775
|
+
if (tx.Asset == null) {
|
76776
|
+
throw new errors_1.ValidationError('AMMWithdraw: missing field Asset');
|
76777
|
+
}
|
76778
|
+
if (!(0, common_1.isCurrency)(tx.Asset)) {
|
76779
|
+
throw new errors_1.ValidationError('AMMWithdraw: Asset must be an Issue');
|
76780
|
+
}
|
76781
|
+
if (tx.Asset2 == null) {
|
76782
|
+
throw new errors_1.ValidationError('AMMWithdraw: missing field Asset2');
|
76783
|
+
}
|
76784
|
+
if (!(0, common_1.isCurrency)(tx.Asset2)) {
|
76785
|
+
throw new errors_1.ValidationError('AMMWithdraw: Asset2 must be an Issue');
|
76786
|
+
}
|
76787
|
+
if (tx.Amount2 != null && tx.Amount == null) {
|
76788
|
+
throw new errors_1.ValidationError('AMMWithdraw: must set Amount with Amount2');
|
76789
|
+
}
|
76790
|
+
else if (tx.EPrice != null && tx.Amount == null) {
|
76791
|
+
throw new errors_1.ValidationError('AMMWithdraw: must set Amount with EPrice');
|
76792
|
+
}
|
76793
|
+
if (tx.LPTokenIn != null && !(0, common_1.isIssuedCurrency)(tx.LPTokenIn)) {
|
76794
|
+
throw new errors_1.ValidationError('AMMWithdraw: LPTokenIn must be an IssuedCurrencyAmount');
|
76795
|
+
}
|
76796
|
+
if (tx.Amount != null && !(0, common_1.isAmount)(tx.Amount)) {
|
76797
|
+
throw new errors_1.ValidationError('AMMWithdraw: Amount must be an Amount');
|
76798
|
+
}
|
76799
|
+
if (tx.Amount2 != null && !(0, common_1.isAmount)(tx.Amount2)) {
|
76800
|
+
throw new errors_1.ValidationError('AMMWithdraw: Amount2 must be an Amount');
|
76801
|
+
}
|
76802
|
+
if (tx.EPrice != null && !(0, common_1.isAmount)(tx.EPrice)) {
|
76803
|
+
throw new errors_1.ValidationError('AMMWithdraw: EPrice must be an Amount');
|
76804
|
+
}
|
76805
|
+
}
|
76806
|
+
exports.validateAMMWithdraw = validateAMMWithdraw;
|
76807
|
+
|
76808
|
+
|
76809
|
+
/***/ }),
|
76810
|
+
|
76811
|
+
/***/ "./dist/npm/models/transactions/NFTokenAcceptOffer.js":
|
76812
|
+
/*!************************************************************!*\
|
76813
|
+
!*** ./dist/npm/models/transactions/NFTokenAcceptOffer.js ***!
|
76814
|
+
\************************************************************/
|
76815
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76816
|
+
|
76817
|
+
"use strict";
|
76818
|
+
|
76819
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76820
|
+
exports.validateNFTokenAcceptOffer = void 0;
|
76821
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76822
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76823
|
+
function validateNFTokenBrokerFee(tx) {
|
76824
|
+
const value = (0, common_1.parseAmountValue)(tx.NFTokenBrokerFee);
|
76825
|
+
if (Number.isNaN(value)) {
|
76826
|
+
throw new errors_1.ValidationError('NFTokenAcceptOffer: invalid NFTokenBrokerFee');
|
76827
|
+
}
|
76828
|
+
if (value <= 0) {
|
76829
|
+
throw new errors_1.ValidationError('NFTokenAcceptOffer: NFTokenBrokerFee must be greater than 0; omit if there is no fee');
|
76830
|
+
}
|
76831
|
+
if (tx.NFTokenSellOffer == null || tx.NFTokenBuyOffer == null) {
|
76832
|
+
throw new errors_1.ValidationError('NFTokenAcceptOffer: both NFTokenSellOffer and NFTokenBuyOffer must be set if using brokered mode');
|
76833
|
+
}
|
76834
|
+
}
|
76835
|
+
function validateNFTokenAcceptOffer(tx) {
|
76836
|
+
(0, common_1.validateBaseTransaction)(tx);
|
76837
|
+
if (tx.NFTokenBrokerFee != null) {
|
76838
|
+
validateNFTokenBrokerFee(tx);
|
76839
|
+
}
|
76840
|
+
if (tx.NFTokenSellOffer == null && tx.NFTokenBuyOffer == null) {
|
76841
|
+
throw new errors_1.ValidationError('NFTokenAcceptOffer: must set either NFTokenSellOffer or NFTokenBuyOffer');
|
76842
|
+
}
|
76843
|
+
}
|
76844
|
+
exports.validateNFTokenAcceptOffer = validateNFTokenAcceptOffer;
|
76845
|
+
|
76846
|
+
|
76847
|
+
/***/ }),
|
76848
|
+
|
76849
|
+
/***/ "./dist/npm/models/transactions/NFTokenBurn.js":
|
76850
|
+
/*!*****************************************************!*\
|
76851
|
+
!*** ./dist/npm/models/transactions/NFTokenBurn.js ***!
|
76852
|
+
\*****************************************************/
|
76853
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76854
|
+
|
76855
|
+
"use strict";
|
76856
|
+
|
76857
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76858
|
+
exports.validateNFTokenBurn = void 0;
|
76859
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76860
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76861
|
+
function validateNFTokenBurn(tx) {
|
76862
|
+
(0, common_1.validateBaseTransaction)(tx);
|
76863
|
+
if (tx.NFTokenID == null) {
|
76864
|
+
throw new errors_1.ValidationError('NFTokenBurn: missing field NFTokenID');
|
76865
|
+
}
|
76866
|
+
}
|
76867
|
+
exports.validateNFTokenBurn = validateNFTokenBurn;
|
76868
|
+
|
76869
|
+
|
76870
|
+
/***/ }),
|
76871
|
+
|
76872
|
+
/***/ "./dist/npm/models/transactions/NFTokenCancelOffer.js":
|
76873
|
+
/*!************************************************************!*\
|
76874
|
+
!*** ./dist/npm/models/transactions/NFTokenCancelOffer.js ***!
|
76875
|
+
\************************************************************/
|
76876
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76877
|
+
|
76878
|
+
"use strict";
|
76879
|
+
|
76880
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76881
|
+
exports.validateNFTokenCancelOffer = void 0;
|
76882
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76883
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76884
|
+
function validateNFTokenCancelOffer(tx) {
|
76885
|
+
(0, common_1.validateBaseTransaction)(tx);
|
76886
|
+
if (!Array.isArray(tx.NFTokenOffers)) {
|
76887
|
+
throw new errors_1.ValidationError('NFTokenCancelOffer: missing field NFTokenOffers');
|
76888
|
+
}
|
76889
|
+
if (tx.NFTokenOffers.length < 1) {
|
76890
|
+
throw new errors_1.ValidationError('NFTokenCancelOffer: empty field NFTokenOffers');
|
76891
|
+
}
|
76892
|
+
}
|
76893
|
+
exports.validateNFTokenCancelOffer = validateNFTokenCancelOffer;
|
76894
|
+
|
76895
|
+
|
76896
|
+
/***/ }),
|
76897
|
+
|
76898
|
+
/***/ "./dist/npm/models/transactions/NFTokenCreateOffer.js":
|
76899
|
+
/*!************************************************************!*\
|
76900
|
+
!*** ./dist/npm/models/transactions/NFTokenCreateOffer.js ***!
|
76901
|
+
\************************************************************/
|
76902
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76903
|
+
|
76904
|
+
"use strict";
|
76905
|
+
|
76906
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76907
|
+
exports.validateNFTokenCreateOffer = exports.NFTokenCreateOfferFlags = void 0;
|
76908
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76909
|
+
const utils_1 = __webpack_require__(/*! ../utils */ "./dist/npm/models/utils/index.js");
|
76910
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76911
|
+
var NFTokenCreateOfferFlags;
|
76912
|
+
(function (NFTokenCreateOfferFlags) {
|
76913
|
+
NFTokenCreateOfferFlags[NFTokenCreateOfferFlags["tfSellNFToken"] = 1] = "tfSellNFToken";
|
76914
|
+
})(NFTokenCreateOfferFlags = exports.NFTokenCreateOfferFlags || (exports.NFTokenCreateOfferFlags = {}));
|
76915
|
+
function validateNFTokenSellOfferCases(tx) {
|
76916
|
+
if (tx.Owner != null) {
|
76917
|
+
throw new errors_1.ValidationError('NFTokenCreateOffer: Owner must not be present for sell offers');
|
76918
|
+
}
|
76919
|
+
}
|
76920
|
+
function validateNFTokenBuyOfferCases(tx) {
|
76921
|
+
if (tx.Owner == null) {
|
76922
|
+
throw new errors_1.ValidationError('NFTokenCreateOffer: Owner must be present for buy offers');
|
76923
|
+
}
|
76924
|
+
if ((0, common_1.parseAmountValue)(tx.Amount) <= 0) {
|
76925
|
+
throw new errors_1.ValidationError('NFTokenCreateOffer: Amount must be greater than 0 for buy offers');
|
76926
|
+
}
|
76927
|
+
}
|
76928
|
+
function validateNFTokenCreateOffer(tx) {
|
76929
|
+
(0, common_1.validateBaseTransaction)(tx);
|
76930
|
+
if (tx.Account === tx.Owner) {
|
76931
|
+
throw new errors_1.ValidationError('NFTokenCreateOffer: Owner and Account must not be equal');
|
76932
|
+
}
|
76933
|
+
if (tx.Account === tx.Destination) {
|
76934
|
+
throw new errors_1.ValidationError('NFTokenCreateOffer: Destination and Account must not be equal');
|
76935
|
+
}
|
76936
|
+
if (tx.NFTokenID == null) {
|
76937
|
+
throw new errors_1.ValidationError('NFTokenCreateOffer: missing field NFTokenID');
|
76938
|
+
}
|
76939
|
+
if (!(0, common_1.isAmount)(tx.Amount)) {
|
76940
|
+
throw new errors_1.ValidationError('NFTokenCreateOffer: invalid Amount');
|
76941
|
+
}
|
76942
|
+
if (typeof tx.Flags === 'number' &&
|
76943
|
+
(0, utils_1.isFlagEnabled)(tx.Flags, NFTokenCreateOfferFlags.tfSellNFToken)) {
|
76944
|
+
validateNFTokenSellOfferCases(tx);
|
76245
76945
|
}
|
76246
76946
|
else {
|
76247
76947
|
validateNFTokenBuyOfferCases(tx);
|
@@ -76277,6 +76977,9 @@ function validateNFTokenMint(tx) {
|
|
76277
76977
|
if (tx.Account === tx.Issuer) {
|
76278
76978
|
throw new errors_1.ValidationError('NFTokenMint: Issuer must not be equal to Account');
|
76279
76979
|
}
|
76980
|
+
if (typeof tx.URI === 'string' && tx.URI === '') {
|
76981
|
+
throw new errors_1.ValidationError('NFTokenMint: URI must not be empty string');
|
76982
|
+
}
|
76280
76983
|
if (typeof tx.URI === 'string' && !(0, utils_1.isHex)(tx.URI)) {
|
76281
76984
|
throw new errors_1.ValidationError('NFTokenMint: URI must be in hex format');
|
76282
76985
|
}
|
@@ -76287,6 +76990,417 @@ function validateNFTokenMint(tx) {
|
|
76287
76990
|
exports.validateNFTokenMint = validateNFTokenMint;
|
76288
76991
|
|
76289
76992
|
|
76993
|
+
/***/ }),
|
76994
|
+
|
76995
|
+
/***/ "./dist/npm/models/transactions/XChainAccountCreateCommit.js":
|
76996
|
+
/*!*******************************************************************!*\
|
76997
|
+
!*** ./dist/npm/models/transactions/XChainAccountCreateCommit.js ***!
|
76998
|
+
\*******************************************************************/
|
76999
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77000
|
+
|
77001
|
+
"use strict";
|
77002
|
+
|
77003
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77004
|
+
exports.validateXChainAccountCreateCommit = void 0;
|
77005
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77006
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77007
|
+
function validateXChainAccountCreateCommit(tx) {
|
77008
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77009
|
+
if (tx.XChainBridge == null) {
|
77010
|
+
throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field XChainBridge');
|
77011
|
+
}
|
77012
|
+
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
77013
|
+
throw new errors_1.ValidationError('XChainAccountCreateCommit: invalid field XChainBridge');
|
77014
|
+
}
|
77015
|
+
if (tx.SignatureReward == null) {
|
77016
|
+
throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field SignatureReward');
|
77017
|
+
}
|
77018
|
+
if (typeof tx.SignatureReward !== 'number' &&
|
77019
|
+
typeof tx.SignatureReward !== 'string') {
|
77020
|
+
throw new errors_1.ValidationError('XChainAccountCreateCommit: invalid field SignatureReward');
|
77021
|
+
}
|
77022
|
+
if (tx.Destination == null) {
|
77023
|
+
throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field Destination');
|
77024
|
+
}
|
77025
|
+
if (typeof tx.Destination !== 'string') {
|
77026
|
+
throw new errors_1.ValidationError('XChainAccountCreateCommit: invalid field Destination');
|
77027
|
+
}
|
77028
|
+
if (tx.Amount == null) {
|
77029
|
+
throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field Amount');
|
77030
|
+
}
|
77031
|
+
if (!(0, common_1.isAmount)(tx.Amount)) {
|
77032
|
+
throw new errors_1.ValidationError('XChainAccountCreateCommit: invalid field Amount');
|
77033
|
+
}
|
77034
|
+
}
|
77035
|
+
exports.validateXChainAccountCreateCommit = validateXChainAccountCreateCommit;
|
77036
|
+
|
77037
|
+
|
77038
|
+
/***/ }),
|
77039
|
+
|
77040
|
+
/***/ "./dist/npm/models/transactions/XChainAddAccountCreateAttestation.js":
|
77041
|
+
/*!***************************************************************************!*\
|
77042
|
+
!*** ./dist/npm/models/transactions/XChainAddAccountCreateAttestation.js ***!
|
77043
|
+
\***************************************************************************/
|
77044
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77045
|
+
|
77046
|
+
"use strict";
|
77047
|
+
|
77048
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77049
|
+
exports.validateXChainAddAccountCreateAttestation = void 0;
|
77050
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77051
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77052
|
+
function validateXChainAddAccountCreateAttestation(tx) {
|
77053
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77054
|
+
if (tx.Amount == null) {
|
77055
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field Amount');
|
77056
|
+
}
|
77057
|
+
if (!(0, common_1.isAmount)(tx.Amount)) {
|
77058
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field Amount');
|
77059
|
+
}
|
77060
|
+
if (tx.AttestationRewardAccount == null) {
|
77061
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field AttestationRewardAccount');
|
77062
|
+
}
|
77063
|
+
if (typeof tx.AttestationRewardAccount !== 'string') {
|
77064
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field AttestationRewardAccount');
|
77065
|
+
}
|
77066
|
+
if (tx.AttestationSignerAccount == null) {
|
77067
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field AttestationSignerAccount');
|
77068
|
+
}
|
77069
|
+
if (typeof tx.AttestationSignerAccount !== 'string') {
|
77070
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field AttestationSignerAccount');
|
77071
|
+
}
|
77072
|
+
if (tx.Destination == null) {
|
77073
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field Destination');
|
77074
|
+
}
|
77075
|
+
if (typeof tx.Destination !== 'string') {
|
77076
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field Destination');
|
77077
|
+
}
|
77078
|
+
if (tx.OtherChainSource == null) {
|
77079
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field OtherChainSource');
|
77080
|
+
}
|
77081
|
+
if (typeof tx.OtherChainSource !== 'string') {
|
77082
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field OtherChainSource');
|
77083
|
+
}
|
77084
|
+
if (tx.PublicKey == null) {
|
77085
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field PublicKey');
|
77086
|
+
}
|
77087
|
+
if (typeof tx.PublicKey !== 'string') {
|
77088
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field PublicKey');
|
77089
|
+
}
|
77090
|
+
if (tx.Signature == null) {
|
77091
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field Signature');
|
77092
|
+
}
|
77093
|
+
if (typeof tx.Signature !== 'string') {
|
77094
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field Signature');
|
77095
|
+
}
|
77096
|
+
if (tx.SignatureReward == null) {
|
77097
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field SignatureReward');
|
77098
|
+
}
|
77099
|
+
if (!(0, common_1.isAmount)(tx.SignatureReward)) {
|
77100
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field SignatureReward');
|
77101
|
+
}
|
77102
|
+
if (tx.WasLockingChainSend == null) {
|
77103
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field WasLockingChainSend');
|
77104
|
+
}
|
77105
|
+
if (tx.WasLockingChainSend !== 0 && tx.WasLockingChainSend !== 1) {
|
77106
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field WasLockingChainSend');
|
77107
|
+
}
|
77108
|
+
if (tx.XChainAccountCreateCount == null) {
|
77109
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field XChainAccountCreateCount');
|
77110
|
+
}
|
77111
|
+
if (typeof tx.XChainAccountCreateCount !== 'string') {
|
77112
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field XChainAccountCreateCount');
|
77113
|
+
}
|
77114
|
+
if (tx.XChainBridge == null) {
|
77115
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field XChainBridge');
|
77116
|
+
}
|
77117
|
+
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
77118
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field XChainBridge');
|
77119
|
+
}
|
77120
|
+
}
|
77121
|
+
exports.validateXChainAddAccountCreateAttestation = validateXChainAddAccountCreateAttestation;
|
77122
|
+
|
77123
|
+
|
77124
|
+
/***/ }),
|
77125
|
+
|
77126
|
+
/***/ "./dist/npm/models/transactions/XChainAddClaimAttestation.js":
|
77127
|
+
/*!*******************************************************************!*\
|
77128
|
+
!*** ./dist/npm/models/transactions/XChainAddClaimAttestation.js ***!
|
77129
|
+
\*******************************************************************/
|
77130
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77131
|
+
|
77132
|
+
"use strict";
|
77133
|
+
|
77134
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77135
|
+
exports.validateXChainAddClaimAttestation = void 0;
|
77136
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77137
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77138
|
+
function validateXChainAddClaimAttestation(tx) {
|
77139
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77140
|
+
if (tx.Amount == null) {
|
77141
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field Amount');
|
77142
|
+
}
|
77143
|
+
if (!(0, common_1.isAmount)(tx.Amount)) {
|
77144
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field Amount');
|
77145
|
+
}
|
77146
|
+
if (tx.AttestationRewardAccount == null) {
|
77147
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field AttestationRewardAccount');
|
77148
|
+
}
|
77149
|
+
if (typeof tx.AttestationRewardAccount !== 'string') {
|
77150
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field AttestationRewardAccount');
|
77151
|
+
}
|
77152
|
+
if (tx.AttestationSignerAccount == null) {
|
77153
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field AttestationSignerAccount');
|
77154
|
+
}
|
77155
|
+
if (typeof tx.AttestationSignerAccount !== 'string') {
|
77156
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field AttestationSignerAccount');
|
77157
|
+
}
|
77158
|
+
if (tx.Destination !== undefined && typeof tx.Destination !== 'string') {
|
77159
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field Destination');
|
77160
|
+
}
|
77161
|
+
if (tx.OtherChainSource == null) {
|
77162
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field OtherChainSource');
|
77163
|
+
}
|
77164
|
+
if (typeof tx.OtherChainSource !== 'string') {
|
77165
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field OtherChainSource');
|
77166
|
+
}
|
77167
|
+
if (tx.PublicKey == null) {
|
77168
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field PublicKey');
|
77169
|
+
}
|
77170
|
+
if (typeof tx.PublicKey !== 'string') {
|
77171
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field PublicKey');
|
77172
|
+
}
|
77173
|
+
if (tx.Signature == null) {
|
77174
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field Signature');
|
77175
|
+
}
|
77176
|
+
if (typeof tx.Signature !== 'string') {
|
77177
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field Signature');
|
77178
|
+
}
|
77179
|
+
if (tx.WasLockingChainSend == null) {
|
77180
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field WasLockingChainSend');
|
77181
|
+
}
|
77182
|
+
if (tx.WasLockingChainSend !== 0 && tx.WasLockingChainSend !== 1) {
|
77183
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field WasLockingChainSend');
|
77184
|
+
}
|
77185
|
+
if (tx.XChainBridge == null) {
|
77186
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field XChainBridge');
|
77187
|
+
}
|
77188
|
+
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
77189
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field XChainBridge');
|
77190
|
+
}
|
77191
|
+
if (tx.XChainClaimID == null) {
|
77192
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field XChainClaimID');
|
77193
|
+
}
|
77194
|
+
if (typeof tx.XChainClaimID !== 'string') {
|
77195
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field XChainClaimID');
|
77196
|
+
}
|
77197
|
+
}
|
77198
|
+
exports.validateXChainAddClaimAttestation = validateXChainAddClaimAttestation;
|
77199
|
+
|
77200
|
+
|
77201
|
+
/***/ }),
|
77202
|
+
|
77203
|
+
/***/ "./dist/npm/models/transactions/XChainClaim.js":
|
77204
|
+
/*!*****************************************************!*\
|
77205
|
+
!*** ./dist/npm/models/transactions/XChainClaim.js ***!
|
77206
|
+
\*****************************************************/
|
77207
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77208
|
+
|
77209
|
+
"use strict";
|
77210
|
+
|
77211
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77212
|
+
exports.validateXChainClaim = void 0;
|
77213
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77214
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77215
|
+
function validateXChainClaim(tx) {
|
77216
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77217
|
+
if (tx.XChainBridge == null) {
|
77218
|
+
throw new errors_1.ValidationError('XChainClaim: missing field XChainBridge');
|
77219
|
+
}
|
77220
|
+
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
77221
|
+
throw new errors_1.ValidationError('XChainClaim: invalid field XChainBridge');
|
77222
|
+
}
|
77223
|
+
if (tx.XChainClaimID == null) {
|
77224
|
+
throw new errors_1.ValidationError('XChainClaim: missing field XChainClaimID');
|
77225
|
+
}
|
77226
|
+
if (typeof tx.XChainClaimID !== 'number' &&
|
77227
|
+
typeof tx.XChainClaimID !== 'string') {
|
77228
|
+
throw new errors_1.ValidationError('XChainClaim: invalid field XChainClaimID');
|
77229
|
+
}
|
77230
|
+
if (tx.Destination == null) {
|
77231
|
+
throw new errors_1.ValidationError('XChainClaim: missing field Destination');
|
77232
|
+
}
|
77233
|
+
if (typeof tx.Destination !== 'string') {
|
77234
|
+
throw new errors_1.ValidationError('XChainClaim: invalid field Destination');
|
77235
|
+
}
|
77236
|
+
if (tx.DestinationTag !== undefined &&
|
77237
|
+
typeof tx.DestinationTag !== 'number') {
|
77238
|
+
throw new errors_1.ValidationError('XChainClaim: invalid field DestinationTag');
|
77239
|
+
}
|
77240
|
+
if (tx.Amount == null) {
|
77241
|
+
throw new errors_1.ValidationError('XChainClaim: missing field Amount');
|
77242
|
+
}
|
77243
|
+
if (!(0, common_1.isAmount)(tx.Amount)) {
|
77244
|
+
throw new errors_1.ValidationError('XChainClaim: invalid field Amount');
|
77245
|
+
}
|
77246
|
+
}
|
77247
|
+
exports.validateXChainClaim = validateXChainClaim;
|
77248
|
+
|
77249
|
+
|
77250
|
+
/***/ }),
|
77251
|
+
|
77252
|
+
/***/ "./dist/npm/models/transactions/XChainCommit.js":
|
77253
|
+
/*!******************************************************!*\
|
77254
|
+
!*** ./dist/npm/models/transactions/XChainCommit.js ***!
|
77255
|
+
\******************************************************/
|
77256
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77257
|
+
|
77258
|
+
"use strict";
|
77259
|
+
|
77260
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77261
|
+
exports.validateXChainCommit = void 0;
|
77262
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77263
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77264
|
+
function validateXChainCommit(tx) {
|
77265
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77266
|
+
if (tx.XChainBridge == null) {
|
77267
|
+
throw new errors_1.ValidationError('XChainCommit: missing field XChainBridge');
|
77268
|
+
}
|
77269
|
+
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
77270
|
+
throw new errors_1.ValidationError('XChainCommit: invalid field XChainBridge');
|
77271
|
+
}
|
77272
|
+
if (tx.XChainClaimID == null) {
|
77273
|
+
throw new errors_1.ValidationError('XChainCommit: missing field XChainClaimID');
|
77274
|
+
}
|
77275
|
+
if (typeof tx.XChainClaimID !== 'number' &&
|
77276
|
+
typeof tx.XChainClaimID !== 'string') {
|
77277
|
+
throw new errors_1.ValidationError('XChainCommit: invalid field XChainClaimID');
|
77278
|
+
}
|
77279
|
+
if (tx.OtherChainDestination !== undefined &&
|
77280
|
+
typeof tx.OtherChainDestination !== 'string') {
|
77281
|
+
throw new errors_1.ValidationError('XChainCommit: invalid field OtherChainDestination');
|
77282
|
+
}
|
77283
|
+
if (tx.Amount == null) {
|
77284
|
+
throw new errors_1.ValidationError('XChainCommit: missing field Amount');
|
77285
|
+
}
|
77286
|
+
if (!(0, common_1.isAmount)(tx.Amount)) {
|
77287
|
+
throw new errors_1.ValidationError('XChainCommit: invalid field Amount');
|
77288
|
+
}
|
77289
|
+
}
|
77290
|
+
exports.validateXChainCommit = validateXChainCommit;
|
77291
|
+
|
77292
|
+
|
77293
|
+
/***/ }),
|
77294
|
+
|
77295
|
+
/***/ "./dist/npm/models/transactions/XChainCreateBridge.js":
|
77296
|
+
/*!************************************************************!*\
|
77297
|
+
!*** ./dist/npm/models/transactions/XChainCreateBridge.js ***!
|
77298
|
+
\************************************************************/
|
77299
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77300
|
+
|
77301
|
+
"use strict";
|
77302
|
+
|
77303
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77304
|
+
exports.validateXChainCreateBridge = void 0;
|
77305
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77306
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77307
|
+
function validateXChainCreateBridge(tx) {
|
77308
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77309
|
+
if (tx.XChainBridge == null) {
|
77310
|
+
throw new errors_1.ValidationError('XChainCreateBridge: missing field XChainBridge');
|
77311
|
+
}
|
77312
|
+
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
77313
|
+
throw new errors_1.ValidationError('XChainCreateBridge: invalid field XChainBridge');
|
77314
|
+
}
|
77315
|
+
if (tx.SignatureReward == null) {
|
77316
|
+
throw new errors_1.ValidationError('XChainCreateBridge: missing field SignatureReward');
|
77317
|
+
}
|
77318
|
+
if (!(0, common_1.isAmount)(tx.SignatureReward)) {
|
77319
|
+
throw new errors_1.ValidationError('XChainCreateBridge: invalid field SignatureReward');
|
77320
|
+
}
|
77321
|
+
if (tx.MinAccountCreateAmount !== undefined &&
|
77322
|
+
!(0, common_1.isAmount)(tx.MinAccountCreateAmount)) {
|
77323
|
+
throw new errors_1.ValidationError('XChainCreateBridge: invalid field MinAccountCreateAmount');
|
77324
|
+
}
|
77325
|
+
}
|
77326
|
+
exports.validateXChainCreateBridge = validateXChainCreateBridge;
|
77327
|
+
|
77328
|
+
|
77329
|
+
/***/ }),
|
77330
|
+
|
77331
|
+
/***/ "./dist/npm/models/transactions/XChainCreateClaimID.js":
|
77332
|
+
/*!*************************************************************!*\
|
77333
|
+
!*** ./dist/npm/models/transactions/XChainCreateClaimID.js ***!
|
77334
|
+
\*************************************************************/
|
77335
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77336
|
+
|
77337
|
+
"use strict";
|
77338
|
+
|
77339
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77340
|
+
exports.validateXChainCreateClaimID = void 0;
|
77341
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77342
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77343
|
+
function validateXChainCreateClaimID(tx) {
|
77344
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77345
|
+
if (tx.XChainBridge == null) {
|
77346
|
+
throw new errors_1.ValidationError('XChainCreateClaimID: missing field XChainBridge');
|
77347
|
+
}
|
77348
|
+
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
77349
|
+
throw new errors_1.ValidationError('XChainCreateClaimID: invalid field XChainBridge');
|
77350
|
+
}
|
77351
|
+
if (tx.SignatureReward == null) {
|
77352
|
+
throw new errors_1.ValidationError('XChainCreateClaimID: missing field SignatureReward');
|
77353
|
+
}
|
77354
|
+
if (!(0, common_1.isAmount)(tx.SignatureReward)) {
|
77355
|
+
throw new errors_1.ValidationError('XChainCreateClaimID: invalid field SignatureReward');
|
77356
|
+
}
|
77357
|
+
if (tx.OtherChainSource == null) {
|
77358
|
+
throw new errors_1.ValidationError('XChainCreateClaimID: missing field OtherChainSource');
|
77359
|
+
}
|
77360
|
+
if (typeof tx.OtherChainSource !== 'string') {
|
77361
|
+
throw new errors_1.ValidationError('XChainCreateClaimID: invalid field OtherChainSource');
|
77362
|
+
}
|
77363
|
+
}
|
77364
|
+
exports.validateXChainCreateClaimID = validateXChainCreateClaimID;
|
77365
|
+
|
77366
|
+
|
77367
|
+
/***/ }),
|
77368
|
+
|
77369
|
+
/***/ "./dist/npm/models/transactions/XChainModifyBridge.js":
|
77370
|
+
/*!************************************************************!*\
|
77371
|
+
!*** ./dist/npm/models/transactions/XChainModifyBridge.js ***!
|
77372
|
+
\************************************************************/
|
77373
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77374
|
+
|
77375
|
+
"use strict";
|
77376
|
+
|
77377
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77378
|
+
exports.validateXChainModifyBridge = exports.XChainModifyBridgeFlags = void 0;
|
77379
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77380
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77381
|
+
var XChainModifyBridgeFlags;
|
77382
|
+
(function (XChainModifyBridgeFlags) {
|
77383
|
+
XChainModifyBridgeFlags[XChainModifyBridgeFlags["tfClearAccountCreateAmount"] = 65536] = "tfClearAccountCreateAmount";
|
77384
|
+
})(XChainModifyBridgeFlags = exports.XChainModifyBridgeFlags || (exports.XChainModifyBridgeFlags = {}));
|
77385
|
+
function validateXChainModifyBridge(tx) {
|
77386
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77387
|
+
if (tx.XChainBridge == null) {
|
77388
|
+
throw new errors_1.ValidationError('XChainModifyBridge: missing field XChainBridge');
|
77389
|
+
}
|
77390
|
+
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
77391
|
+
throw new errors_1.ValidationError('XChainModifyBridge: invalid field XChainBridge');
|
77392
|
+
}
|
77393
|
+
if (tx.SignatureReward !== undefined && !(0, common_1.isAmount)(tx.SignatureReward)) {
|
77394
|
+
throw new errors_1.ValidationError('XChainModifyBridge: invalid field SignatureReward');
|
77395
|
+
}
|
77396
|
+
if (tx.MinAccountCreateAmount !== undefined &&
|
77397
|
+
!(0, common_1.isAmount)(tx.MinAccountCreateAmount)) {
|
77398
|
+
throw new errors_1.ValidationError('XChainModifyBridge: invalid field MinAccountCreateAmount');
|
77399
|
+
}
|
77400
|
+
}
|
77401
|
+
exports.validateXChainModifyBridge = validateXChainModifyBridge;
|
77402
|
+
|
77403
|
+
|
76290
77404
|
/***/ }),
|
76291
77405
|
|
76292
77406
|
/***/ "./dist/npm/models/transactions/accountDelete.js":
|
@@ -76521,7 +77635,7 @@ exports.validateCheckCreate = validateCheckCreate;
|
|
76521
77635
|
"use strict";
|
76522
77636
|
|
76523
77637
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76524
|
-
exports.parseAmountValue = exports.validateBaseTransaction = exports.isAmount = exports.isIssuedCurrency = void 0;
|
77638
|
+
exports.parseAmountValue = exports.validateBaseTransaction = exports.isXChainBridge = exports.isAmount = exports.isIssuedCurrency = exports.isCurrency = void 0;
|
76525
77639
|
const ripple_binary_codec_1 = __webpack_require__(/*! ripple-binary-codec */ "../../node_modules/ripple-binary-codec/dist/index.js");
|
76526
77640
|
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76527
77641
|
const utils_1 = __webpack_require__(/*! ../utils */ "./dist/npm/models/utils/index.js");
|
@@ -76554,10 +77668,22 @@ function isSigner(obj) {
|
|
76554
77668
|
typeof signer.TxnSignature === 'string' &&
|
76555
77669
|
typeof signer.SigningPubKey === 'string');
|
76556
77670
|
}
|
77671
|
+
const XRP_CURRENCY_SIZE = 1;
|
77672
|
+
const ISSUE_SIZE = 2;
|
76557
77673
|
const ISSUED_CURRENCY_SIZE = 3;
|
77674
|
+
const XCHAIN_BRIDGE_SIZE = 4;
|
76558
77675
|
function isRecord(value) {
|
76559
77676
|
return value !== null && typeof value === 'object';
|
76560
77677
|
}
|
77678
|
+
function isCurrency(input) {
|
77679
|
+
return (isRecord(input) &&
|
77680
|
+
((Object.keys(input).length === ISSUE_SIZE &&
|
77681
|
+
typeof input.issuer === 'string' &&
|
77682
|
+
typeof input.currency === 'string') ||
|
77683
|
+
(Object.keys(input).length === XRP_CURRENCY_SIZE &&
|
77684
|
+
input.currency === 'XRP')));
|
77685
|
+
}
|
77686
|
+
exports.isCurrency = isCurrency;
|
76561
77687
|
function isIssuedCurrency(input) {
|
76562
77688
|
return (isRecord(input) &&
|
76563
77689
|
Object.keys(input).length === ISSUED_CURRENCY_SIZE &&
|
@@ -76570,6 +77696,15 @@ function isAmount(amount) {
|
|
76570
77696
|
return typeof amount === 'string' || isIssuedCurrency(amount);
|
76571
77697
|
}
|
76572
77698
|
exports.isAmount = isAmount;
|
77699
|
+
function isXChainBridge(input) {
|
77700
|
+
return (isRecord(input) &&
|
77701
|
+
Object.keys(input).length === XCHAIN_BRIDGE_SIZE &&
|
77702
|
+
typeof input.LockingChainDoor === 'string' &&
|
77703
|
+
isCurrency(input.LockingChainIssue) &&
|
77704
|
+
typeof input.IssuingChainDoor === 'string' &&
|
77705
|
+
isCurrency(input.IssuingChainIssue));
|
77706
|
+
}
|
77707
|
+
exports.isXChainBridge = isXChainBridge;
|
76573
77708
|
function validateBaseTransaction(common) {
|
76574
77709
|
if (common.Account === undefined) {
|
76575
77710
|
throw new errors_1.ValidationError('BaseTransaction: missing field Account');
|
@@ -76731,8 +77866,8 @@ function validateEscrowCreate(tx) {
|
|
76731
77866
|
if (tx.Amount === undefined) {
|
76732
77867
|
throw new errors_1.ValidationError('EscrowCreate: missing field Amount');
|
76733
77868
|
}
|
76734
|
-
if (typeof tx.Amount !== 'string') {
|
76735
|
-
throw new errors_1.ValidationError('EscrowCreate: Amount must be
|
77869
|
+
if (typeof tx.Amount !== 'string' && !(0, common_1.isAmount)(tx.Amount)) {
|
77870
|
+
throw new errors_1.ValidationError('EscrowCreate: Amount must be an Amount');
|
76736
77871
|
}
|
76737
77872
|
if (tx.Destination === undefined) {
|
76738
77873
|
throw new errors_1.ValidationError('EscrowCreate: missing field Destination');
|
@@ -76812,12 +77947,16 @@ exports.validateEscrowFinish = validateEscrowFinish;
|
|
76812
77947
|
"use strict";
|
76813
77948
|
|
76814
77949
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76815
|
-
exports.TrustSetFlags = exports.PaymentChannelClaimFlags = exports.PaymentFlags = exports.OfferCreateFlags = exports.NFTokenMintFlags = exports.NFTokenCreateOfferFlags = exports.AccountSetTfFlags = exports.AccountSetAsfFlags = exports.validate = void 0;
|
77950
|
+
exports.XChainModifyBridgeFlags = exports.TrustSetFlags = exports.PaymentChannelClaimFlags = exports.PaymentFlags = exports.OfferCreateFlags = exports.NFTokenMintFlags = exports.NFTokenCreateOfferFlags = exports.AMMWithdrawFlags = exports.AMMDepositFlags = exports.AccountSetTfFlags = exports.AccountSetAsfFlags = exports.validate = void 0;
|
76816
77951
|
var transaction_1 = __webpack_require__(/*! ./transaction */ "./dist/npm/models/transactions/transaction.js");
|
76817
77952
|
Object.defineProperty(exports, "validate", ({ enumerable: true, get: function () { return transaction_1.validate; } }));
|
76818
77953
|
var accountSet_1 = __webpack_require__(/*! ./accountSet */ "./dist/npm/models/transactions/accountSet.js");
|
76819
77954
|
Object.defineProperty(exports, "AccountSetAsfFlags", ({ enumerable: true, get: function () { return accountSet_1.AccountSetAsfFlags; } }));
|
76820
77955
|
Object.defineProperty(exports, "AccountSetTfFlags", ({ enumerable: true, get: function () { return accountSet_1.AccountSetTfFlags; } }));
|
77956
|
+
var AMMDeposit_1 = __webpack_require__(/*! ./AMMDeposit */ "./dist/npm/models/transactions/AMMDeposit.js");
|
77957
|
+
Object.defineProperty(exports, "AMMDepositFlags", ({ enumerable: true, get: function () { return AMMDeposit_1.AMMDepositFlags; } }));
|
77958
|
+
var AMMWithdraw_1 = __webpack_require__(/*! ./AMMWithdraw */ "./dist/npm/models/transactions/AMMWithdraw.js");
|
77959
|
+
Object.defineProperty(exports, "AMMWithdrawFlags", ({ enumerable: true, get: function () { return AMMWithdraw_1.AMMWithdrawFlags; } }));
|
76821
77960
|
var NFTokenCreateOffer_1 = __webpack_require__(/*! ./NFTokenCreateOffer */ "./dist/npm/models/transactions/NFTokenCreateOffer.js");
|
76822
77961
|
Object.defineProperty(exports, "NFTokenCreateOfferFlags", ({ enumerable: true, get: function () { return NFTokenCreateOffer_1.NFTokenCreateOfferFlags; } }));
|
76823
77962
|
var NFTokenMint_1 = __webpack_require__(/*! ./NFTokenMint */ "./dist/npm/models/transactions/NFTokenMint.js");
|
@@ -76830,6 +77969,8 @@ var paymentChannelClaim_1 = __webpack_require__(/*! ./paymentChannelClaim */ "./
|
|
76830
77969
|
Object.defineProperty(exports, "PaymentChannelClaimFlags", ({ enumerable: true, get: function () { return paymentChannelClaim_1.PaymentChannelClaimFlags; } }));
|
76831
77970
|
var trustSet_1 = __webpack_require__(/*! ./trustSet */ "./dist/npm/models/transactions/trustSet.js");
|
76832
77971
|
Object.defineProperty(exports, "TrustSetFlags", ({ enumerable: true, get: function () { return trustSet_1.TrustSetFlags; } }));
|
77972
|
+
var XChainModifyBridge_1 = __webpack_require__(/*! ./XChainModifyBridge */ "./dist/npm/models/transactions/XChainModifyBridge.js");
|
77973
|
+
Object.defineProperty(exports, "XChainModifyBridgeFlags", ({ enumerable: true, get: function () { return XChainModifyBridge_1.XChainModifyBridgeFlags; } }));
|
76833
77974
|
|
76834
77975
|
|
76835
77976
|
/***/ }),
|
@@ -77070,11 +78211,11 @@ function validatePaymentChannelClaim(tx) {
|
|
77070
78211
|
if (typeof tx.Channel !== 'string') {
|
77071
78212
|
throw new errors_1.ValidationError('PaymentChannelClaim: Channel must be a string');
|
77072
78213
|
}
|
77073
|
-
if (tx.Balance !== undefined &&
|
77074
|
-
throw new errors_1.ValidationError('PaymentChannelClaim: Balance must be
|
78214
|
+
if (tx.Balance !== undefined && !(0, common_1.isAmount)(tx.Balance)) {
|
78215
|
+
throw new errors_1.ValidationError('PaymentChannelClaim: Balance must be an Amount');
|
77075
78216
|
}
|
77076
|
-
if (tx.Amount !== undefined &&
|
77077
|
-
throw new errors_1.ValidationError('PaymentChannelClaim: Amount must be
|
78217
|
+
if (tx.Amount !== undefined && !(0, common_1.isAmount)(tx.Amount)) {
|
78218
|
+
throw new errors_1.ValidationError('PaymentChannelClaim: Amount must be an Amount');
|
77078
78219
|
}
|
77079
78220
|
if (tx.Signature !== undefined && typeof tx.Signature !== 'string') {
|
77080
78221
|
throw new errors_1.ValidationError('PaymentChannelClaim: Signature must be a string');
|
@@ -77105,8 +78246,8 @@ function validatePaymentChannelCreate(tx) {
|
|
77105
78246
|
if (tx.Amount === undefined) {
|
77106
78247
|
throw new errors_1.ValidationError('PaymentChannelCreate: missing Amount');
|
77107
78248
|
}
|
77108
|
-
if (typeof tx.Amount !== 'string') {
|
77109
|
-
throw new errors_1.ValidationError('PaymentChannelCreate: Amount must be
|
78249
|
+
if (typeof tx.Amount !== 'string' && !(0, common_1.isAmount)(tx.Amount)) {
|
78250
|
+
throw new errors_1.ValidationError('PaymentChannelCreate: Amount must be an Amount');
|
77110
78251
|
}
|
77111
78252
|
if (tx.Destination === undefined) {
|
77112
78253
|
throw new errors_1.ValidationError('PaymentChannelCreate: missing Destination');
|
@@ -77162,8 +78303,8 @@ function validatePaymentChannelFund(tx) {
|
|
77162
78303
|
if (tx.Amount === undefined) {
|
77163
78304
|
throw new errors_1.ValidationError('PaymentChannelFund: missing Amount');
|
77164
78305
|
}
|
77165
|
-
if (typeof tx.Amount !== 'string') {
|
77166
|
-
throw new errors_1.ValidationError('PaymentChannelFund: Amount must be
|
78306
|
+
if (typeof tx.Amount !== 'string' && !(0, common_1.isAmount)(tx.Amount)) {
|
78307
|
+
throw new errors_1.ValidationError('PaymentChannelFund: Amount must be an Amount');
|
77167
78308
|
}
|
77168
78309
|
if (tx.Expiration !== undefined && typeof tx.Expiration !== 'number') {
|
77169
78310
|
throw new errors_1.ValidationError('PaymentChannelFund: Expiration must be a number');
|
@@ -77282,22 +78423,21 @@ exports.validateTicketCreate = validateTicketCreate;
|
|
77282
78423
|
/*!*****************************************************!*\
|
77283
78424
|
!*** ./dist/npm/models/transactions/transaction.js ***!
|
77284
78425
|
\*****************************************************/
|
77285
|
-
/***/ (
|
78426
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77286
78427
|
|
77287
78428
|
"use strict";
|
77288
78429
|
|
77289
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
77290
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
77291
|
-
};
|
77292
78430
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77293
78431
|
exports.validate = void 0;
|
77294
|
-
const isEqual_1 = __importDefault(__webpack_require__(/*! lodash/isEqual */ "../../node_modules/lodash/isEqual.js"));
|
77295
|
-
const omitBy_1 = __importDefault(__webpack_require__(/*! lodash/omitBy */ "../../node_modules/lodash/omitBy.js"));
|
77296
|
-
const ripple_binary_codec_1 = __webpack_require__(/*! ripple-binary-codec */ "../../node_modules/ripple-binary-codec/dist/index.js");
|
77297
78432
|
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77298
78433
|
const flags_1 = __webpack_require__(/*! ../utils/flags */ "./dist/npm/models/utils/flags.js");
|
77299
78434
|
const accountDelete_1 = __webpack_require__(/*! ./accountDelete */ "./dist/npm/models/transactions/accountDelete.js");
|
77300
78435
|
const accountSet_1 = __webpack_require__(/*! ./accountSet */ "./dist/npm/models/transactions/accountSet.js");
|
78436
|
+
const AMMBid_1 = __webpack_require__(/*! ./AMMBid */ "./dist/npm/models/transactions/AMMBid.js");
|
78437
|
+
const AMMCreate_1 = __webpack_require__(/*! ./AMMCreate */ "./dist/npm/models/transactions/AMMCreate.js");
|
78438
|
+
const AMMDeposit_1 = __webpack_require__(/*! ./AMMDeposit */ "./dist/npm/models/transactions/AMMDeposit.js");
|
78439
|
+
const AMMVote_1 = __webpack_require__(/*! ./AMMVote */ "./dist/npm/models/transactions/AMMVote.js");
|
78440
|
+
const AMMWithdraw_1 = __webpack_require__(/*! ./AMMWithdraw */ "./dist/npm/models/transactions/AMMWithdraw.js");
|
77301
78441
|
const checkCancel_1 = __webpack_require__(/*! ./checkCancel */ "./dist/npm/models/transactions/checkCancel.js");
|
77302
78442
|
const checkCash_1 = __webpack_require__(/*! ./checkCash */ "./dist/npm/models/transactions/checkCash.js");
|
77303
78443
|
const checkCreate_1 = __webpack_require__(/*! ./checkCreate */ "./dist/npm/models/transactions/checkCreate.js");
|
@@ -77320,6 +78460,14 @@ const setRegularKey_1 = __webpack_require__(/*! ./setRegularKey */ "./dist/npm/m
|
|
77320
78460
|
const signerListSet_1 = __webpack_require__(/*! ./signerListSet */ "./dist/npm/models/transactions/signerListSet.js");
|
77321
78461
|
const ticketCreate_1 = __webpack_require__(/*! ./ticketCreate */ "./dist/npm/models/transactions/ticketCreate.js");
|
77322
78462
|
const trustSet_1 = __webpack_require__(/*! ./trustSet */ "./dist/npm/models/transactions/trustSet.js");
|
78463
|
+
const XChainAccountCreateCommit_1 = __webpack_require__(/*! ./XChainAccountCreateCommit */ "./dist/npm/models/transactions/XChainAccountCreateCommit.js");
|
78464
|
+
const XChainAddAccountCreateAttestation_1 = __webpack_require__(/*! ./XChainAddAccountCreateAttestation */ "./dist/npm/models/transactions/XChainAddAccountCreateAttestation.js");
|
78465
|
+
const XChainAddClaimAttestation_1 = __webpack_require__(/*! ./XChainAddClaimAttestation */ "./dist/npm/models/transactions/XChainAddClaimAttestation.js");
|
78466
|
+
const XChainClaim_1 = __webpack_require__(/*! ./XChainClaim */ "./dist/npm/models/transactions/XChainClaim.js");
|
78467
|
+
const XChainCommit_1 = __webpack_require__(/*! ./XChainCommit */ "./dist/npm/models/transactions/XChainCommit.js");
|
78468
|
+
const XChainCreateBridge_1 = __webpack_require__(/*! ./XChainCreateBridge */ "./dist/npm/models/transactions/XChainCreateBridge.js");
|
78469
|
+
const XChainCreateClaimID_1 = __webpack_require__(/*! ./XChainCreateClaimID */ "./dist/npm/models/transactions/XChainCreateClaimID.js");
|
78470
|
+
const XChainModifyBridge_1 = __webpack_require__(/*! ./XChainModifyBridge */ "./dist/npm/models/transactions/XChainModifyBridge.js");
|
77323
78471
|
function validate(transaction) {
|
77324
78472
|
const tx = Object.assign({}, transaction);
|
77325
78473
|
if (tx.TransactionType == null) {
|
@@ -77336,6 +78484,21 @@ function validate(transaction) {
|
|
77336
78484
|
case 'AccountSet':
|
77337
78485
|
(0, accountSet_1.validateAccountSet)(tx);
|
77338
78486
|
break;
|
78487
|
+
case 'AMMBid':
|
78488
|
+
(0, AMMBid_1.validateAMMBid)(tx);
|
78489
|
+
break;
|
78490
|
+
case 'AMMDeposit':
|
78491
|
+
(0, AMMDeposit_1.validateAMMDeposit)(tx);
|
78492
|
+
break;
|
78493
|
+
case 'AMMCreate':
|
78494
|
+
(0, AMMCreate_1.validateAMMCreate)(tx);
|
78495
|
+
break;
|
78496
|
+
case 'AMMVote':
|
78497
|
+
(0, AMMVote_1.validateAMMVote)(tx);
|
78498
|
+
break;
|
78499
|
+
case 'AMMWithdraw':
|
78500
|
+
(0, AMMWithdraw_1.validateAMMWithdraw)(tx);
|
78501
|
+
break;
|
77339
78502
|
case 'CheckCancel':
|
77340
78503
|
(0, checkCancel_1.validateCheckCancel)(tx);
|
77341
78504
|
break;
|
@@ -77402,12 +78565,33 @@ function validate(transaction) {
|
|
77402
78565
|
case 'TrustSet':
|
77403
78566
|
(0, trustSet_1.validateTrustSet)(tx);
|
77404
78567
|
break;
|
78568
|
+
case 'XChainAddAccountCreateAttestation':
|
78569
|
+
(0, XChainAddAccountCreateAttestation_1.validateXChainAddAccountCreateAttestation)(tx);
|
78570
|
+
break;
|
78571
|
+
case 'XChainAddClaimAttestation':
|
78572
|
+
(0, XChainAddClaimAttestation_1.validateXChainAddClaimAttestation)(tx);
|
78573
|
+
break;
|
78574
|
+
case 'XChainClaim':
|
78575
|
+
(0, XChainClaim_1.validateXChainClaim)(tx);
|
78576
|
+
break;
|
78577
|
+
case 'XChainCommit':
|
78578
|
+
(0, XChainCommit_1.validateXChainCommit)(tx);
|
78579
|
+
break;
|
78580
|
+
case 'XChainCreateBridge':
|
78581
|
+
(0, XChainCreateBridge_1.validateXChainCreateBridge)(tx);
|
78582
|
+
break;
|
78583
|
+
case 'XChainCreateClaimID':
|
78584
|
+
(0, XChainCreateClaimID_1.validateXChainCreateClaimID)(tx);
|
78585
|
+
break;
|
78586
|
+
case 'XChainAccountCreateCommit':
|
78587
|
+
(0, XChainAccountCreateCommit_1.validateXChainAccountCreateCommit)(tx);
|
78588
|
+
break;
|
78589
|
+
case 'XChainModifyBridge':
|
78590
|
+
(0, XChainModifyBridge_1.validateXChainModifyBridge)(tx);
|
78591
|
+
break;
|
77405
78592
|
default:
|
77406
78593
|
throw new errors_1.ValidationError(`Invalid field TransactionType: ${tx.TransactionType}`);
|
77407
78594
|
}
|
77408
|
-
if (!(0, isEqual_1.default)((0, ripple_binary_codec_1.decode)((0, ripple_binary_codec_1.encode)(tx)), (0, omitBy_1.default)(tx, (value) => value == null))) {
|
77409
|
-
throw new errors_1.ValidationError(`Invalid Transaction: ${tx.TransactionType}`);
|
77410
|
-
}
|
77411
78595
|
}
|
77412
78596
|
exports.validate = validate;
|
77413
78597
|
|
@@ -77468,10 +78652,13 @@ exports.setTransactionFlagsToNumber = exports.parseAccountRootFlags = void 0;
|
|
77468
78652
|
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77469
78653
|
const AccountRoot_1 = __webpack_require__(/*! ../ledger/AccountRoot */ "./dist/npm/models/ledger/AccountRoot.js");
|
77470
78654
|
const accountSet_1 = __webpack_require__(/*! ../transactions/accountSet */ "./dist/npm/models/transactions/accountSet.js");
|
78655
|
+
const AMMDeposit_1 = __webpack_require__(/*! ../transactions/AMMDeposit */ "./dist/npm/models/transactions/AMMDeposit.js");
|
78656
|
+
const AMMWithdraw_1 = __webpack_require__(/*! ../transactions/AMMWithdraw */ "./dist/npm/models/transactions/AMMWithdraw.js");
|
77471
78657
|
const offerCreate_1 = __webpack_require__(/*! ../transactions/offerCreate */ "./dist/npm/models/transactions/offerCreate.js");
|
77472
78658
|
const payment_1 = __webpack_require__(/*! ../transactions/payment */ "./dist/npm/models/transactions/payment.js");
|
77473
78659
|
const paymentChannelClaim_1 = __webpack_require__(/*! ../transactions/paymentChannelClaim */ "./dist/npm/models/transactions/paymentChannelClaim.js");
|
77474
78660
|
const trustSet_1 = __webpack_require__(/*! ../transactions/trustSet */ "./dist/npm/models/transactions/trustSet.js");
|
78661
|
+
const XChainModifyBridge_1 = __webpack_require__(/*! ../transactions/XChainModifyBridge */ "./dist/npm/models/transactions/XChainModifyBridge.js");
|
77475
78662
|
const _1 = __webpack_require__(/*! . */ "./dist/npm/models/utils/index.js");
|
77476
78663
|
function parseAccountRootFlags(flags) {
|
77477
78664
|
const flagsInterface = {};
|
@@ -77493,41 +78680,35 @@ function setTransactionFlagsToNumber(tx) {
|
|
77493
78680
|
}
|
77494
78681
|
switch (tx.TransactionType) {
|
77495
78682
|
case 'AccountSet':
|
77496
|
-
tx.Flags =
|
78683
|
+
tx.Flags = convertFlagsToNumber(tx.Flags, accountSet_1.AccountSetTfFlags);
|
78684
|
+
return;
|
78685
|
+
case 'AMMDeposit':
|
78686
|
+
tx.Flags = convertFlagsToNumber(tx.Flags, AMMDeposit_1.AMMDepositFlags);
|
78687
|
+
return;
|
78688
|
+
case 'AMMWithdraw':
|
78689
|
+
tx.Flags = convertFlagsToNumber(tx.Flags, AMMWithdraw_1.AMMWithdrawFlags);
|
77497
78690
|
return;
|
77498
78691
|
case 'OfferCreate':
|
77499
|
-
tx.Flags =
|
78692
|
+
tx.Flags = convertFlagsToNumber(tx.Flags, offerCreate_1.OfferCreateFlags);
|
77500
78693
|
return;
|
77501
78694
|
case 'PaymentChannelClaim':
|
77502
|
-
tx.Flags =
|
78695
|
+
tx.Flags = convertFlagsToNumber(tx.Flags, paymentChannelClaim_1.PaymentChannelClaimFlags);
|
77503
78696
|
return;
|
77504
78697
|
case 'Payment':
|
77505
|
-
tx.Flags =
|
78698
|
+
tx.Flags = convertFlagsToNumber(tx.Flags, payment_1.PaymentFlags);
|
77506
78699
|
return;
|
77507
78700
|
case 'TrustSet':
|
77508
|
-
tx.Flags =
|
78701
|
+
tx.Flags = convertFlagsToNumber(tx.Flags, trustSet_1.TrustSetFlags);
|
78702
|
+
return;
|
78703
|
+
case 'XChainModifyBridge':
|
78704
|
+
tx.Flags = convertFlagsToNumber(tx.Flags, XChainModifyBridge_1.XChainModifyBridgeFlags);
|
77509
78705
|
return;
|
77510
78706
|
default:
|
77511
78707
|
tx.Flags = 0;
|
77512
78708
|
}
|
77513
78709
|
}
|
77514
78710
|
exports.setTransactionFlagsToNumber = setTransactionFlagsToNumber;
|
77515
|
-
function
|
77516
|
-
return reduceFlags(flags, accountSet_1.AccountSetTfFlags);
|
77517
|
-
}
|
77518
|
-
function convertOfferCreateFlagsToNumber(flags) {
|
77519
|
-
return reduceFlags(flags, offerCreate_1.OfferCreateFlags);
|
77520
|
-
}
|
77521
|
-
function convertPaymentChannelClaimFlagsToNumber(flags) {
|
77522
|
-
return reduceFlags(flags, paymentChannelClaim_1.PaymentChannelClaimFlags);
|
77523
|
-
}
|
77524
|
-
function convertPaymentTransactionFlagsToNumber(flags) {
|
77525
|
-
return reduceFlags(flags, payment_1.PaymentFlags);
|
77526
|
-
}
|
77527
|
-
function convertTrustSetFlagsToNumber(flags) {
|
77528
|
-
return reduceFlags(flags, trustSet_1.TrustSetFlags);
|
77529
|
-
}
|
77530
|
-
function reduceFlags(flags, flagEnum) {
|
78711
|
+
function convertFlagsToNumber(flags, flagEnum) {
|
77531
78712
|
return Object.keys(flags).reduce((resultFlags, flag) => {
|
77532
78713
|
if (flagEnum[flag] == null) {
|
77533
78714
|
throw new errors_1.ValidationError(`flag ${flag} doesn't exist in flagEnum: ${JSON.stringify(flagEnum)}`);
|
@@ -77669,7 +78850,7 @@ function setNextValidSequenceNumber(client, tx) {
|
|
77669
78850
|
tx.Sequence = data.result.account_data.Sequence;
|
77670
78851
|
});
|
77671
78852
|
}
|
77672
|
-
function
|
78853
|
+
function fetchOwnerReserveFee(client) {
|
77673
78854
|
var _a;
|
77674
78855
|
return __awaiter(this, void 0, void 0, function* () {
|
77675
78856
|
const response = yield client.request({ command: 'server_state' });
|
@@ -77690,8 +78871,9 @@ function calculateFeePerTransactionType(client, tx, signersCount = 0) {
|
|
77690
78871
|
const product = new bignumber_js_1.default(scaleValue(netFeeDrops, 33 + fulfillmentBytesSize / 16));
|
77691
78872
|
baseFee = product.dp(0, bignumber_js_1.default.ROUND_CEIL);
|
77692
78873
|
}
|
77693
|
-
if (tx.TransactionType === 'AccountDelete'
|
77694
|
-
|
78874
|
+
if (tx.TransactionType === 'AccountDelete' ||
|
78875
|
+
tx.TransactionType === 'AMMCreate') {
|
78876
|
+
baseFee = yield fetchOwnerReserveFee(client);
|
77695
78877
|
}
|
77696
78878
|
if (signersCount > 0) {
|
77697
78879
|
baseFee = bignumber_js_1.default.sum(baseFee, scaleValue(netFeeDrops, 1 + signersCount));
|
@@ -79628,7 +80810,7 @@ module.exports = JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1
|
|
79628
80810
|
/***/ ((module) => {
|
79629
80811
|
|
79630
80812
|
"use strict";
|
79631
|
-
module.exports = JSON.parse('{"TYPES":{"Done":-1,"Unknown":-2,"NotPresent":0,"UInt16":1,"UInt32":2,"UInt64":3,"Hash128":4,"Hash256":5,"Amount":6,"Blob":7,"AccountID":8,"STObject":14,"STArray":15,"UInt8":16,"Hash160":17,"PathSet":18,"Vector256":19,"UInt96":20,"UInt192":21,"UInt384":22,"UInt512":23,"Transaction":10001,"LedgerEntry":10002,"Validation":10003,"Metadata":10004},"LEDGER_ENTRY_TYPES":{"Invalid":-1,"AccountRoot":97,"DirectoryNode":100,"RippleState":114,"Ticket":84,"SignerList":83,"Offer":111,"LedgerHashes":104,"Amendments":102,"FeeSettings":115,"Escrow":117,"PayChannel":120,"Check":67,"DepositPreauth":112,"NegativeUNL":78,"NFTokenPage":80,"NFTokenOffer":55,"Any":-3,"Child":-2,"Nickname":110,"Contract":99,"GeneratorMap":103},"FIELDS":[["Generic",{"nth":0,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["Invalid",{"nth":-1,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["ObjectEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["ArrayEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["hash",{"nth":257,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["index",{"nth":258,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["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"}],["LedgerEntry",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"LedgerEntry"}],["Transaction",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"Transaction"}],["Validation",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"Validation"}],["Metadata",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Metadata"}],["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"}],["TickSize",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["UNLModifyDisabling",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["HookResult",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["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"}],["Version",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookStateChangeCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookEmitCount",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookExecutionIndex",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookApiVersion",{"nth":20,"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"}],["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"}],["NFTokenTaxon",{"nth":42,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["MintedNFTokens",{"nth":43,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["BurnedNFTokens",{"nth":44,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HookStateCount",{"nth":45,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["EmitGeneration",{"nth":46,"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"}],["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"}],["NFTokenOfferNode",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmitBurden",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookOn",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookInstructionCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookReturnCode",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ReferenceCount",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmailHash",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash128"}],["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"}],["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"}],["NFTokenID",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitParentTxnID",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitNonce",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitHookHash",{"nth":13,"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"}],["Digest",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["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"}],["NFTokenBuyOffer",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenSellOffer",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookStateKey",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookHash",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookNamespace",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookSetTxnID",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"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"}],["NFTokenBrokerFee",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"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"}],["HookStateData",{"nth":22,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookReturnString",{"nth":23,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterName",{"nth":24,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterValue",{"nth":25,"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"}],["RegularKey",{"nth":8,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["NFTokenMinter",{"nth":9,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["EmitCallback",{"nth":10,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["HookAccount",{"nth":16,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["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"}],["NFTokenOffers",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Paths",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"PathSet"}],["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"}],["NFToken",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["EmitDetails",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Hook",{"nth":14,"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"}],["EmittedTxn",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookExecution",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookDefinition",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookParameter",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookGrant",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["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"}],["NFTokens",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Hooks",{"nth":11,"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"}],["HookExecutions",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookParameters",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookGrants",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}]],"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,"temINVALID_COUNT":-266,"temUNCERTAIN":-265,"temUNKNOWN":-264,"temSEQ_AND_TICKET":-263,"temBAD_NFTOKEN_TRANSFER_FEE":-262,"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,"tefNFTOKEN_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,"terPRE_TICKET":-88,"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_NFTOKEN_PAGE":155,"tecNFTOKEN_BUY_SELL_MISMATCH":156,"tecNFTOKEN_OFFER_TYPE_MISMATCH":157,"tecCANT_ACCEPT_OWN_NFTOKEN_OFFER":158,"tecINSUFFICIENT_FUNDS":159,"tecOBJECT_NOT_FOUND":160,"tecINSUFFICIENT_PAYMENT":161},"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,"SetHook":22,"NFTokenMint":25,"NFTokenBurn":26,"NFTokenCreateOffer":27,"NFTokenCancelOffer":28,"NFTokenAcceptOffer":29,"EnableAmendment":100,"SetFee":101,"UNLModify":102}}');
|
80813
|
+
module.exports = JSON.parse('{"TYPES":{"Done":-1,"Unknown":-2,"NotPresent":0,"UInt16":1,"UInt32":2,"UInt64":3,"Hash128":4,"Hash256":5,"Amount":6,"Blob":7,"AccountID":8,"STObject":14,"STArray":15,"UInt8":16,"Hash160":17,"PathSet":18,"Vector256":19,"UInt96":20,"UInt192":21,"UInt384":22,"UInt512":23,"Issue":24,"XChainBridge":25,"Transaction":10001,"LedgerEntry":10002,"Validation":10003,"Metadata":10004},"LEDGER_ENTRY_TYPES":{"Invalid":-1,"AccountRoot":97,"DirectoryNode":100,"RippleState":114,"Ticket":84,"SignerList":83,"Offer":111,"Bridge":105,"LedgerHashes":104,"Amendments":102,"XChainClaimID":113,"XChainCreateAccountClaimID":116,"FeeSettings":115,"Escrow":117,"PayChannel":120,"Check":67,"DepositPreauth":112,"NegativeUNL":78,"NFTokenPage":80,"NFTokenOffer":55,"AMM":121,"Any":-3,"Child":-2,"Nickname":110,"Contract":99,"GeneratorMap":103},"FIELDS":[["Generic",{"nth":0,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["Invalid",{"nth":-1,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["ObjectEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["ArrayEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["hash",{"nth":257,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["index",{"nth":258,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["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"}],["LedgerEntry",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"LedgerEntry"}],["Transaction",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"Transaction"}],["Validation",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"Validation"}],["Metadata",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Metadata"}],["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"}],["TickSize",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["UNLModifyDisabling",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["HookResult",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["WasLockingChainSend",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["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"}],["TradingFee",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["Version",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookStateChangeCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookEmitCount",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookExecutionIndex",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookApiVersion",{"nth":20,"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"}],["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"}],["NFTokenTaxon",{"nth":42,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["MintedNFTokens",{"nth":43,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["BurnedNFTokens",{"nth":44,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HookStateCount",{"nth":45,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["EmitGeneration",{"nth":46,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["VoteWeight",{"nth":47,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["DiscountedFee",{"nth":48,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LockCount",{"nth":49,"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"}],["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"}],["NFTokenOfferNode",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmitBurden",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookOn",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookInstructionCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookReturnCode",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ReferenceCount",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["XChainClaimID",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["XChainAccountCreateCount",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["XChainAccountClaimCount",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmailHash",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash128"}],["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"}],["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"}],["NFTokenID",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitParentTxnID",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitNonce",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitHookHash",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AMMID",{"nth":14,"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"}],["Digest",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["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"}],["NFTokenBuyOffer",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenSellOffer",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookStateKey",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookHash",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookNamespace",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookSetTxnID",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"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"}],["Amount2",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BidMin",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BidMax",{"nth":13,"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"}],["NFTokenBrokerFee",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenOut",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenIn",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["EPrice",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Price",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenBalance",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["SignatureReward",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["MinAccountCreateAmount",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LockedBalance",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"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"}],["HookStateData",{"nth":22,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookReturnString",{"nth":23,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterName",{"nth":24,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterValue",{"nth":25,"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"}],["RegularKey",{"nth":8,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["NFTokenMinter",{"nth":9,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["EmitCallback",{"nth":10,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["AMMAccount",{"nth":11,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["HookAccount",{"nth":16,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["OtherChainSource",{"nth":18,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["OtherChainDestination",{"nth":19,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["AttestationSignerAccount",{"nth":20,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["AttestationRewardAccount",{"nth":21,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["LockingChainDoor",{"nth":22,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["IssuingChainDoor",{"nth":23,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["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"}],["NFTokenOffers",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Paths",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"PathSet"}],["LockingChainIssue",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["IssuingChainIssue",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["Asset",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["Asset2",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["XChainBridge",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"XChainBridge"}],["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"}],["NFToken",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["EmitDetails",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Hook",{"nth":14,"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"}],["EmittedTxn",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookExecution",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookDefinition",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookParameter",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookGrant",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["VoteEntry",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["AuctionSlot",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["AuthAccount",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainClaimProofSig",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainCreateAccountProofSig",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainClaimAttestationBatchElement",{"nth":34,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainCreateAccountAttestationBatchElement",{"nth":35,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["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"}],["NFTokens",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Hooks",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["VoteSlots",{"nth":14,"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"}],["HookExecutions",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookParameters",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookGrants",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["XChainClaimAttestationBatch",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["XChainCreateAccountAttestationBatch",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["XChainClaimAttestations",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["XChainCreateAccountAttestations",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["AuthAccounts",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}]],"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,"temINVALID_COUNT":-266,"temUNCERTAIN":-265,"temUNKNOWN":-264,"temSEQ_AND_TICKET":-263,"temBAD_NFTOKEN_TRANSFER_FEE":-262,"temAMM_BAD_TOKENS":-261,"temEQUAL_DOOR_ACCOUNTS":-259,"temBAD_XCHAIN_PROOF":-258,"temSIDECHAIN_BAD_ISSUES":-257,"temSIDECHAIN_NONDOOR_OWNER":-256,"temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT":-255,"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT":-254,"temXCHAIN_TOO_MANY_ATTESTATIONS":-253,"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,"tefNFTOKEN_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,"terPRE_TICKET":-88,"terNO_AMM":-87,"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_NFTOKEN_PAGE":155,"tecNFTOKEN_BUY_SELL_MISMATCH":156,"tecNFTOKEN_OFFER_TYPE_MISMATCH":157,"tecCANT_ACCEPT_OWN_NFTOKEN_OFFER":158,"tecINSUFFICIENT_FUNDS":159,"tecOBJECT_NOT_FOUND":160,"tecINSUFFICIENT_PAYMENT":161,"tecAMM_UNFUNDED":162,"tecAMM_BALANCE":163,"tecAMM_FAILED_DEPOSIT":164,"tecAMM_FAILED_WITHDRAW":165,"tecAMM_INVALID_TOKENS":166,"tecAMM_FAILED_BID":167,"tecAMM_FAILED_VOTE":168,"tecBAD_XCHAIN_TRANSFER_ISSUE":171,"tecXCHAIN_NO_CLAIM_ID":172,"tecXCHAIN_BAD_CLAIM_ID":173,"tecXCHAIN_CLAIM_NO_QUORUM":174,"tecXCHAIN_PROOF_UNKNOWN_KEY":175,"tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE":176,"tecXCHAIN_WRONG_CHAIN":177,"tecXCHAIN_REWARD_MISMATCH":178,"tecXCHAIN_NO_SIGNERS_LIST":179,"tecXCHAIN_SENDING_ACCOUNT_MISMATCH":180,"tecXCHAIN_INSUFF_CREATE_AMOUNT":181,"tecXCHAIN_ACCOUNT_CREATE_PAST":182,"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY":183,"tecXCHAIN_PAYMENT_FAILED":184,"tecXCHAIN_SELF_COMMIT":185,"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR":186,"tecPRECISION_LOSS":187},"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,"SetHook":22,"NFTokenMint":25,"NFTokenBurn":26,"NFTokenCreateOffer":27,"NFTokenCancelOffer":28,"NFTokenAcceptOffer":29,"AMMCreate":35,"AMMDeposit":36,"AMMWithdraw":37,"AMMVote":38,"AMMBid":39,"XChainCreateBridge":40,"XChainCreateClaimID":41,"XChainCommit":42,"XChainClaim":43,"XChainAccountCreateCommit":44,"XChainAddClaimAttestation":45,"XChainAddAccountCreateAttestation":46,"XChainModifyBridge":47,"EnableAmendment":100,"SetFee":101,"UNLModify":102}}');
|
79632
80814
|
|
79633
80815
|
/***/ }),
|
79634
80816
|
|