You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ripple-binary-codec

Package Overview
Dependencies
Maintainers
9
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ripple-binary-codec - npm Package Compare versions

Comparing version

to
2.2.0

dist/src/types/hash-192.d.ts

2080

dist/enums/src/enums/definitions.json
{
"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,
"Currency": 26,
"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,
"XChainOwnedClaimID": 113,
"XChainOwnedCreateAccountClaimID": 116,
"FeeSettings": 115,
"Escrow": 117,
"PayChannel": 120,
"Check": 67,
"DepositPreauth": 112,
"NegativeUNL": 78,
"NFTokenPage": 80,
"NFTokenOffer": 55,
"AMM": 121,
"DID": 73,
"Oracle": 128,
"Any": -3,
"Child": -2,
"Nickname": 110,
"Contract": 99,
"GeneratorMap": 103
},
"FIELDS": [

@@ -66,6 +6,6 @@ [

{
"nth": 0,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": 0,
"type": "Unknown"

@@ -77,6 +17,6 @@ }

{
"nth": -1,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": -1,
"type": "Unknown"

@@ -88,6 +28,6 @@ }

{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "STObject"

@@ -99,6 +39,6 @@ }

{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "STArray"

@@ -108,28 +48,8 @@ }

[
"hash",
"taker_gets_funded",
{
"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"

@@ -141,6 +61,6 @@ }

{
"nth": 259,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": 259,
"type": "Amount"

@@ -150,128 +70,8 @@ }

[
"LedgerEntry",
"LedgerEntryType",
{
"nth": 257,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": false,
"type": "LedgerEntry"
}
],
[
"Transaction",
{
"nth": 257,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": false,
"type": "Transaction"
}
],
[
"Validation",
{
"nth": 257,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": false,
"type": "Validation"
}
],
[
"Metadata",
{
"nth": 257,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": false,
"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"
}
],
[
"Scale",
{
"nth": 4,
"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"

@@ -283,6 +83,6 @@ }

{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 2,
"type": "UInt16"

@@ -294,6 +94,6 @@ }

{
"nth": 3,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 3,
"type": "UInt16"

@@ -305,6 +105,6 @@ }

{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 4,
"type": "UInt16"

@@ -316,6 +116,6 @@ }

{
"nth": 5,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 5,
"type": "UInt16"

@@ -327,6 +127,6 @@ }

{
"nth": 6,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 6,
"type": "UInt16"

@@ -338,6 +138,6 @@ }

{
"nth": 16,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 16,
"type": "UInt16"

@@ -349,6 +149,6 @@ }

{
"nth": 17,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 17,
"type": "UInt16"

@@ -360,6 +160,6 @@ }

{
"nth": 18,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 18,
"type": "UInt16"

@@ -371,6 +171,6 @@ }

{
"nth": 19,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 19,
"type": "UInt16"

@@ -382,6 +182,16 @@ }

{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 20,
"isVLEncoded": false,
"type": "UInt16"
}
],
[
"LedgerFixType",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 21,
"type": "UInt16"

@@ -393,6 +203,6 @@ }

{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "UInt32"

@@ -404,6 +214,6 @@ }

{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 2,
"type": "UInt32"

@@ -415,6 +225,6 @@ }

{
"nth": 3,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 3,
"type": "UInt32"

@@ -426,6 +236,6 @@ }

{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 4,
"type": "UInt32"

@@ -437,6 +247,6 @@ }

{
"nth": 5,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 5,
"type": "UInt32"

@@ -448,6 +258,6 @@ }

{
"nth": 6,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 6,
"type": "UInt32"

@@ -459,6 +269,6 @@ }

{
"nth": 7,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 7,
"type": "UInt32"

@@ -470,6 +280,6 @@ }

{
"nth": 8,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 8,
"type": "UInt32"

@@ -481,6 +291,6 @@ }

{
"nth": 9,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 9,
"type": "UInt32"

@@ -492,6 +302,6 @@ }

{
"nth": 10,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 10,
"type": "UInt32"

@@ -503,6 +313,6 @@ }

{
"nth": 11,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 11,
"type": "UInt32"

@@ -514,6 +324,6 @@ }

{
"nth": 12,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 12,
"type": "UInt32"

@@ -525,6 +335,6 @@ }

{
"nth": 13,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 13,
"type": "UInt32"

@@ -536,6 +346,6 @@ }

{
"nth": 14,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 14,
"type": "UInt32"

@@ -547,6 +357,6 @@ }

{
"nth": 15,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 15,
"type": "UInt32"

@@ -558,6 +368,6 @@ }

{
"nth": 16,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 16,
"type": "UInt32"

@@ -569,6 +379,6 @@ }

{
"nth": 17,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 17,
"type": "UInt32"

@@ -580,6 +390,6 @@ }

{
"nth": 18,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 18,
"type": "UInt32"

@@ -591,6 +401,6 @@ }

{
"nth": 19,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 19,
"type": "UInt32"

@@ -602,6 +412,6 @@ }

{
"nth": 20,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 20,
"type": "UInt32"

@@ -613,6 +423,6 @@ }

{
"nth": 21,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 21,
"type": "UInt32"

@@ -624,6 +434,6 @@ }

{
"nth": 22,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 22,
"type": "UInt32"

@@ -635,6 +445,6 @@ }

{
"nth": 23,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 23,
"type": "UInt32"

@@ -646,6 +456,6 @@ }

{
"nth": 24,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 24,
"type": "UInt32"

@@ -657,6 +467,6 @@ }

{
"nth": 25,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 25,
"type": "UInt32"

@@ -668,6 +478,6 @@ }

{
"nth": 26,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 26,
"type": "UInt32"

@@ -679,6 +489,6 @@ }

{
"nth": 27,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 27,
"type": "UInt32"

@@ -690,6 +500,6 @@ }

{
"nth": 28,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 28,
"type": "UInt32"

@@ -701,6 +511,6 @@ }

{
"nth": 29,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 29,
"type": "UInt32"

@@ -712,6 +522,6 @@ }

{
"nth": 30,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 30,
"type": "UInt32"

@@ -723,6 +533,6 @@ }

{
"nth": 31,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 31,
"type": "UInt32"

@@ -734,6 +544,6 @@ }

{
"nth": 32,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 32,
"type": "UInt32"

@@ -745,6 +555,6 @@ }

{
"nth": 33,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 33,
"type": "UInt32"

@@ -756,6 +566,6 @@ }

{
"nth": 34,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 34,
"type": "UInt32"

@@ -767,6 +577,6 @@ }

{
"nth": 35,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 35,
"type": "UInt32"

@@ -778,6 +588,6 @@ }

{
"nth": 36,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 36,
"type": "UInt32"

@@ -789,6 +599,6 @@ }

{
"nth": 37,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 37,
"type": "UInt32"

@@ -800,6 +610,6 @@ }

{
"nth": 38,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 38,
"type": "UInt32"

@@ -811,6 +621,6 @@ }

{
"nth": 39,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 39,
"type": "UInt32"

@@ -822,6 +632,6 @@ }

{
"nth": 40,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 40,
"type": "UInt32"

@@ -833,6 +643,6 @@ }

{
"nth": 41,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 41,
"type": "UInt32"

@@ -844,6 +654,6 @@ }

{
"nth": 42,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 42,
"type": "UInt32"

@@ -855,6 +665,6 @@ }

{
"nth": 43,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 43,
"type": "UInt32"

@@ -866,6 +676,6 @@ }

{
"nth": 44,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 44,
"type": "UInt32"

@@ -877,6 +687,6 @@ }

{
"nth": 45,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 45,
"type": "UInt32"

@@ -888,6 +698,6 @@ }

{
"nth": 46,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 46,
"type": "UInt32"

@@ -899,6 +709,6 @@ }

{
"nth": 48,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 48,
"type": "UInt32"

@@ -910,6 +720,6 @@ }

{
"nth": 50,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 50,
"type": "UInt32"

@@ -921,6 +731,6 @@ }

{
"nth": 51,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 51,
"type": "UInt32"

@@ -932,6 +742,6 @@ }

{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "UInt64"

@@ -943,6 +753,6 @@ }

{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 2,
"type": "UInt64"

@@ -954,6 +764,6 @@ }

{
"nth": 3,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 3,
"type": "UInt64"

@@ -965,6 +775,6 @@ }

{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 4,
"type": "UInt64"

@@ -976,6 +786,6 @@ }

{
"nth": 5,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 5,
"type": "UInt64"

@@ -987,6 +797,6 @@ }

{
"nth": 6,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 6,
"type": "UInt64"

@@ -998,6 +808,6 @@ }

{
"nth": 7,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 7,
"type": "UInt64"

@@ -1009,6 +819,6 @@ }

{
"nth": 8,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 8,
"type": "UInt64"

@@ -1020,6 +830,6 @@ }

{
"nth": 9,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 9,
"type": "UInt64"

@@ -1031,6 +841,6 @@ }

{
"nth": 10,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 10,
"type": "UInt64"

@@ -1042,6 +852,6 @@ }

{
"nth": 11,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 11,
"type": "UInt64"

@@ -1053,6 +863,6 @@ }

{
"nth": 12,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 12,
"type": "UInt64"

@@ -1064,6 +874,6 @@ }

{
"nth": 13,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 13,
"type": "UInt64"

@@ -1075,6 +885,6 @@ }

{
"nth": 16,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 16,
"type": "UInt64"

@@ -1086,6 +896,6 @@ }

{
"nth": 17,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 17,
"type": "UInt64"

@@ -1097,6 +907,6 @@ }

{
"nth": 18,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 18,
"type": "UInt64"

@@ -1108,6 +918,6 @@ }

{
"nth": 19,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 19,
"type": "UInt64"

@@ -1119,6 +929,6 @@ }

{
"nth": 20,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 20,
"type": "UInt64"

@@ -1130,6 +940,6 @@ }

{
"nth": 21,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 21,
"type": "UInt64"

@@ -1141,6 +951,6 @@ }

{
"nth": 22,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 22,
"type": "UInt64"

@@ -1152,6 +962,16 @@ }

{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 23,
"isVLEncoded": false,
"type": "UInt64"
}
],
[
"MaximumAmount",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 24,
"type": "UInt64"

@@ -1161,49 +981,49 @@ }

[
"EmailHash",
"OutstandingAmount",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Hash128"
"isVLEncoded": false,
"nth": 25,
"type": "UInt64"
}
],
[
"TakerPaysCurrency",
"MPTAmount",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Hash160"
"isVLEncoded": false,
"nth": 26,
"type": "UInt64"
}
],
[
"TakerPaysIssuer",
"IssuerNode",
{
"nth": 2,
"nth": 27,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Hash160"
"type": "UInt64"
}
],
[
"TakerGetsCurrency",
"SubjectNode",
{
"nth": 3,
"nth": 28,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Hash160"
"type": "UInt64"
}
],
[
"TakerGetsIssuer",
"EmailHash",
{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Hash160"
"isVLEncoded": false,
"nth": 1,
"type": "Hash128"
}

@@ -1214,6 +1034,6 @@ ],

{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "Hash256"

@@ -1225,6 +1045,6 @@ }

{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 2,
"type": "Hash256"

@@ -1236,6 +1056,6 @@ }

{
"nth": 3,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 3,
"type": "Hash256"

@@ -1247,6 +1067,6 @@ }

{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 4,
"type": "Hash256"

@@ -1258,6 +1078,6 @@ }

{
"nth": 5,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 5,
"type": "Hash256"

@@ -1269,6 +1089,6 @@ }

{
"nth": 6,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 6,
"type": "Hash256"

@@ -1280,6 +1100,6 @@ }

{
"nth": 7,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 7,
"type": "Hash256"

@@ -1291,6 +1111,6 @@ }

{
"nth": 8,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 8,
"type": "Hash256"

@@ -1302,6 +1122,6 @@ }

{
"nth": 9,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 9,
"type": "Hash256"

@@ -1313,6 +1133,6 @@ }

{
"nth": 10,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 10,
"type": "Hash256"

@@ -1324,6 +1144,6 @@ }

{
"nth": 11,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 11,
"type": "Hash256"

@@ -1335,6 +1155,6 @@ }

{
"nth": 12,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 12,
"type": "Hash256"

@@ -1346,6 +1166,6 @@ }

{
"nth": 13,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 13,
"type": "Hash256"

@@ -1357,6 +1177,6 @@ }

{
"nth": 14,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 14,
"type": "Hash256"

@@ -1368,6 +1188,6 @@ }

{
"nth": 16,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 16,
"type": "Hash256"

@@ -1379,6 +1199,6 @@ }

{
"nth": 17,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 17,
"type": "Hash256"

@@ -1390,6 +1210,6 @@ }

{
"nth": 18,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 18,
"type": "Hash256"

@@ -1401,6 +1221,6 @@ }

{
"nth": 19,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 19,
"type": "Hash256"

@@ -1412,6 +1232,6 @@ }

{
"nth": 21,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 21,
"type": "Hash256"

@@ -1423,6 +1243,6 @@ }

{
"nth": 22,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 22,
"type": "Hash256"

@@ -1434,6 +1254,6 @@ }

{
"nth": 23,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 23,
"type": "Hash256"

@@ -1445,6 +1265,6 @@ }

{
"nth": 24,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 24,
"type": "Hash256"

@@ -1456,6 +1276,6 @@ }

{
"nth": 25,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 25,
"type": "Hash256"

@@ -1467,6 +1287,6 @@ }

{
"nth": 26,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 26,
"type": "Hash256"

@@ -1478,6 +1298,6 @@ }

{
"nth": 27,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 27,
"type": "Hash256"

@@ -1489,6 +1309,6 @@ }

{
"nth": 28,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 28,
"type": "Hash256"

@@ -1500,6 +1320,6 @@ }

{
"nth": 29,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 29,
"type": "Hash256"

@@ -1511,6 +1331,6 @@ }

{
"nth": 30,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 30,
"type": "Hash256"

@@ -1522,6 +1342,6 @@ }

{
"nth": 31,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 31,
"type": "Hash256"

@@ -1533,6 +1353,6 @@ }

{
"nth": 32,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 32,
"type": "Hash256"

@@ -1544,6 +1364,6 @@ }

{
"nth": 33,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 33,
"type": "Hash256"

@@ -1553,8 +1373,28 @@ }

[
"hash",
{
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": 257,
"type": "Hash256"
}
],
[
"index",
{
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": 258,
"type": "Hash256"
}
],
[
"Amount",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "Amount"

@@ -1566,6 +1406,6 @@ }

{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 2,
"type": "Amount"

@@ -1577,6 +1417,6 @@ }

{
"nth": 3,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 3,
"type": "Amount"

@@ -1588,6 +1428,6 @@ }

{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 4,
"type": "Amount"

@@ -1599,6 +1439,6 @@ }

{
"nth": 5,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 5,
"type": "Amount"

@@ -1610,6 +1450,6 @@ }

{
"nth": 6,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 6,
"type": "Amount"

@@ -1621,6 +1461,6 @@ }

{
"nth": 7,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 7,
"type": "Amount"

@@ -1632,6 +1472,6 @@ }

{
"nth": 8,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 8,
"type": "Amount"

@@ -1643,6 +1483,6 @@ }

{
"nth": 9,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 9,
"type": "Amount"

@@ -1654,6 +1494,6 @@ }

{
"nth": 10,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 10,
"type": "Amount"

@@ -1665,6 +1505,6 @@ }

{
"nth": 11,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 11,
"type": "Amount"

@@ -1676,6 +1516,6 @@ }

{
"nth": 12,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 12,
"type": "Amount"

@@ -1687,6 +1527,6 @@ }

{
"nth": 13,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 13,
"type": "Amount"

@@ -1698,6 +1538,6 @@ }

{
"nth": 16,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 16,
"type": "Amount"

@@ -1709,6 +1549,6 @@ }

{
"nth": 17,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 17,
"type": "Amount"

@@ -1720,6 +1560,6 @@ }

{
"nth": 18,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 18,
"type": "Amount"

@@ -1731,6 +1571,6 @@ }

{
"nth": 19,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 19,
"type": "Amount"

@@ -1742,6 +1582,6 @@ }

{
"nth": 22,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 22,
"type": "Amount"

@@ -1753,6 +1593,6 @@ }

{
"nth": 23,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 23,
"type": "Amount"

@@ -1764,6 +1604,6 @@ }

{
"nth": 24,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 24,
"type": "Amount"

@@ -1775,6 +1615,6 @@ }

{
"nth": 25,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 25,
"type": "Amount"

@@ -1786,6 +1626,6 @@ }

{
"nth": 26,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 26,
"type": "Amount"

@@ -1797,6 +1637,6 @@ }

{
"nth": 27,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 27,
"type": "Amount"

@@ -1808,6 +1648,6 @@ }

{
"nth": 28,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 28,
"type": "Amount"

@@ -1819,6 +1659,6 @@ }

{
"nth": 29,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 29,
"type": "Amount"

@@ -1830,6 +1670,6 @@ }

{
"nth": 30,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 30,
"type": "Amount"

@@ -1841,6 +1681,6 @@ }

{
"nth": 31,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 31,
"type": "Amount"

@@ -1852,6 +1692,6 @@ }

{
"nth": 1,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 1,
"type": "Blob"

@@ -1863,6 +1703,6 @@ }

{
"nth": 2,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 2,
"type": "Blob"

@@ -1874,6 +1714,6 @@ }

{
"nth": 3,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 3,
"type": "Blob"

@@ -1885,6 +1725,6 @@ }

{
"nth": 4,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": false,
"isVLEncoded": true,
"nth": 4,
"type": "Blob"

@@ -1896,6 +1736,6 @@ }

{
"nth": 5,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 5,
"type": "Blob"

@@ -1907,6 +1747,6 @@ }

{
"nth": 6,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": false,
"isVLEncoded": true,
"nth": 6,
"type": "Blob"

@@ -1918,6 +1758,6 @@ }

{
"nth": 7,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 7,
"type": "Blob"

@@ -1929,6 +1769,6 @@ }

{
"nth": 8,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 8,
"type": "Blob"

@@ -1940,6 +1780,6 @@ }

{
"nth": 9,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 9,
"type": "Blob"

@@ -1951,6 +1791,6 @@ }

{
"nth": 10,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 10,
"type": "Blob"

@@ -1962,6 +1802,6 @@ }

{
"nth": 11,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 11,
"type": "Blob"

@@ -1973,6 +1813,6 @@ }

{
"nth": 12,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 12,
"type": "Blob"

@@ -1984,6 +1824,6 @@ }

{
"nth": 13,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 13,
"type": "Blob"

@@ -1995,6 +1835,6 @@ }

{
"nth": 14,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 14,
"type": "Blob"

@@ -2006,6 +1846,6 @@ }

{
"nth": 16,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 16,
"type": "Blob"

@@ -2017,6 +1857,6 @@ }

{
"nth": 17,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 17,
"type": "Blob"

@@ -2028,6 +1868,6 @@ }

{
"nth": 18,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": false,
"isVLEncoded": true,
"nth": 18,
"type": "Blob"

@@ -2039,6 +1879,6 @@ }

{
"nth": 19,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 19,
"type": "Blob"

@@ -2050,6 +1890,6 @@ }

{
"nth": 20,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 20,
"type": "Blob"

@@ -2061,6 +1901,6 @@ }

{
"nth": 21,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 21,
"type": "Blob"

@@ -2072,6 +1912,6 @@ }

{
"nth": 22,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 22,
"type": "Blob"

@@ -2083,6 +1923,6 @@ }

{
"nth": 23,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 23,
"type": "Blob"

@@ -2094,6 +1934,6 @@ }

{
"nth": 24,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 24,
"type": "Blob"

@@ -2105,6 +1945,6 @@ }

{
"nth": 25,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 25,
"type": "Blob"

@@ -2116,6 +1956,6 @@ }

{
"nth": 26,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 26,
"type": "Blob"

@@ -2127,6 +1967,6 @@ }

{
"nth": 27,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 27,
"type": "Blob"

@@ -2138,6 +1978,6 @@ }

{
"nth": 28,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 28,
"type": "Blob"

@@ -2149,4 +1989,24 @@ }

{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 29,
"type": "Blob"
}
],
[
"MPTokenMetadata",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 30,
"type": "Blob"
}
],
[
"CredentialType",
{
"nth": 31,
"isVLEncoded": true,
"isSerialized": true,

@@ -2160,6 +2020,6 @@ "isSigningField": true,

{
"nth": 1,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 1,
"type": "AccountID"

@@ -2171,6 +2031,6 @@ }

{
"nth": 2,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 2,
"type": "AccountID"

@@ -2182,6 +2042,6 @@ }

{
"nth": 3,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 3,
"type": "AccountID"

@@ -2193,6 +2053,6 @@ }

{
"nth": 4,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 4,
"type": "AccountID"

@@ -2204,6 +2064,6 @@ }

{
"nth": 5,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 5,
"type": "AccountID"

@@ -2215,6 +2075,6 @@ }

{
"nth": 6,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 6,
"type": "AccountID"

@@ -2226,6 +2086,6 @@ }

{
"nth": 8,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 8,
"type": "AccountID"

@@ -2237,6 +2097,6 @@ }

{
"nth": 9,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 9,
"type": "AccountID"

@@ -2248,6 +2108,16 @@ }

{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 10,
"isVLEncoded": true,
"type": "AccountID"
}
],
[
"Holder",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 11,
"type": "AccountID"

@@ -2259,6 +2129,6 @@ }

{
"nth": 16,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 16,
"type": "AccountID"

@@ -2270,6 +2140,6 @@ }

{
"nth": 18,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 18,
"type": "AccountID"

@@ -2281,6 +2151,6 @@ }

{
"nth": 19,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 19,
"type": "AccountID"

@@ -2292,6 +2162,6 @@ }

{
"nth": 20,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 20,
"type": "AccountID"

@@ -2303,6 +2173,6 @@ }

{
"nth": 21,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 21,
"type": "AccountID"

@@ -2314,6 +2184,6 @@ }

{
"nth": 22,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 22,
"type": "AccountID"

@@ -2325,6 +2195,6 @@ }

{
"nth": 23,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 23,
"type": "AccountID"

@@ -2334,128 +2204,128 @@ }

[
"Indexes",
"Subject",
{
"nth": 1,
"nth": 24,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "Vector256"
"type": "AccountID"
}
],
[
"Hashes",
"TransactionMetaData",
{
"nth": 2,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "Vector256"
"isVLEncoded": false,
"nth": 2,
"type": "STObject"
}
],
[
"Amendments",
"CreatedNode",
{
"nth": 3,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "Vector256"
"isVLEncoded": false,
"nth": 3,
"type": "STObject"
}
],
[
"NFTokenOffers",
"DeletedNode",
{
"nth": 4,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "Vector256"
"isVLEncoded": false,
"nth": 4,
"type": "STObject"
}
],
[
"Paths",
"ModifiedNode",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "PathSet"
"isVLEncoded": false,
"nth": 5,
"type": "STObject"
}
],
[
"BaseAsset",
"PreviousFields",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Currency"
"isVLEncoded": false,
"nth": 6,
"type": "STObject"
}
],
[
"QuoteAsset",
"FinalFields",
{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Currency"
"isVLEncoded": false,
"nth": 7,
"type": "STObject"
}
],
[
"LockingChainIssue",
"NewFields",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Issue"
"isVLEncoded": false,
"nth": 8,
"type": "STObject"
}
],
[
"IssuingChainIssue",
"TemplateEntry",
{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Issue"
"isVLEncoded": false,
"nth": 9,
"type": "STObject"
}
],
[
"Asset",
"Memo",
{
"nth": 3,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Issue"
"isVLEncoded": false,
"nth": 10,
"type": "STObject"
}
],
[
"Asset2",
"SignerEntry",
{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Issue"
"isVLEncoded": false,
"nth": 11,
"type": "STObject"
}
],
[
"XChainBridge",
"NFToken",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "XChainBridge"
"isVLEncoded": false,
"nth": 12,
"type": "STObject"
}
],
[
"TransactionMetaData",
"EmitDetails",
{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 13,
"type": "STObject"

@@ -2465,8 +2335,8 @@ }

[
"CreatedNode",
"Hook",
{
"nth": 3,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 14,
"type": "STObject"

@@ -2476,8 +2346,8 @@ }

[
"DeletedNode",
"Signer",
{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 16,
"type": "STObject"

@@ -2487,8 +2357,8 @@ }

[
"ModifiedNode",
"Majority",
{
"nth": 5,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 18,
"type": "STObject"

@@ -2498,8 +2368,8 @@ }

[
"PreviousFields",
"DisabledValidator",
{
"nth": 6,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 19,
"type": "STObject"

@@ -2509,8 +2379,8 @@ }

[
"FinalFields",
"EmittedTxn",
{
"nth": 7,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 20,
"type": "STObject"

@@ -2520,8 +2390,8 @@ }

[
"NewFields",
"HookExecution",
{
"nth": 8,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 21,
"type": "STObject"

@@ -2531,8 +2401,8 @@ }

[
"TemplateEntry",
"HookDefinition",
{
"nth": 9,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 22,
"type": "STObject"

@@ -2542,8 +2412,8 @@ }

[
"Memo",
"HookParameter",
{
"nth": 10,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 23,
"type": "STObject"

@@ -2553,8 +2423,8 @@ }

[
"SignerEntry",
"HookGrant",
{
"nth": 11,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 24,
"type": "STObject"

@@ -2564,8 +2434,8 @@ }

[
"NFToken",
"VoteEntry",
{
"nth": 12,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 25,
"type": "STObject"

@@ -2575,8 +2445,8 @@ }

[
"EmitDetails",
"AuctionSlot",
{
"nth": 13,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 26,
"type": "STObject"

@@ -2586,8 +2456,8 @@ }

[
"Hook",
"AuthAccount",
{
"nth": 14,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 27,
"type": "STObject"

@@ -2597,8 +2467,8 @@ }

[
"Signer",
"XChainClaimProofSig",
{
"nth": 16,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 28,
"type": "STObject"

@@ -2608,8 +2478,8 @@ }

[
"Majority",
"XChainCreateAccountProofSig",
{
"nth": 18,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 29,
"type": "STObject"

@@ -2619,8 +2489,8 @@ }

[
"DisabledValidator",
"XChainClaimAttestationCollectionElement",
{
"nth": 19,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 30,
"type": "STObject"

@@ -2630,8 +2500,8 @@ }

[
"EmittedTxn",
"XChainCreateAccountAttestationCollectionElement",
{
"nth": 20,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 31,
"type": "STObject"

@@ -2641,8 +2511,8 @@ }

[
"HookExecution",
"PriceData",
{
"nth": 21,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 32,
"type": "STObject"

@@ -2652,5 +2522,5 @@ }

[
"HookDefinition",
"Credential",
{
"nth": 22,
"nth": 33,
"isVLEncoded": false,

@@ -2663,108 +2533,138 @@ "isSerialized": true,

[
"HookParameter",
"Signers",
{
"nth": 23,
"isSerialized": true,
"isSigningField": false,
"isVLEncoded": false,
"nth": 3,
"type": "STArray"
}
],
[
"SignerEntries",
{
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 4,
"type": "STArray"
}
],
[
"HookGrant",
"Template",
{
"nth": 24,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 5,
"type": "STArray"
}
],
[
"Necessary",
{
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 6,
"type": "STArray"
}
],
[
"VoteEntry",
"Sufficient",
{
"nth": 25,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 7,
"type": "STArray"
}
],
[
"AffectedNodes",
{
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 8,
"type": "STArray"
}
],
[
"AuctionSlot",
"Memos",
{
"nth": 26,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 9,
"type": "STArray"
}
],
[
"AuthAccount",
"NFTokens",
{
"nth": 27,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 10,
"type": "STArray"
}
],
[
"XChainClaimProofSig",
"Hooks",
{
"nth": 28,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 11,
"type": "STArray"
}
],
[
"XChainCreateAccountProofSig",
"VoteSlots",
{
"nth": 29,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 12,
"type": "STArray"
}
],
[
"XChainClaimAttestationCollectionElement",
"Majorities",
{
"nth": 30,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 16,
"type": "STArray"
}
],
[
"XChainCreateAccountAttestationCollectionElement",
"DisabledValidators",
{
"nth": 31,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 17,
"type": "STArray"
}
],
[
"PriceData",
"HookExecutions",
{
"nth": 32,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 18,
"type": "STArray"
}
],
[
"Signers",
"HookParameters",
{
"nth": 3,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": false,
"nth": 19,
"type": "STArray"

@@ -2774,8 +2674,8 @@ }

[
"SignerEntries",
"HookGrants",
{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 20,
"type": "STArray"

@@ -2785,8 +2685,8 @@ }

[
"Template",
"XChainClaimAttestations",
{
"nth": 5,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 21,
"type": "STArray"

@@ -2796,8 +2696,8 @@ }

[
"Necessary",
"XChainCreateAccountAttestations",
{
"nth": 6,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 22,
"type": "STArray"

@@ -2807,8 +2707,8 @@ }

[
"Sufficient",
"PriceDataSeries",
{
"nth": 7,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 24,
"type": "STArray"

@@ -2818,8 +2718,8 @@ }

[
"AffectedNodes",
"AuthAccounts",
{
"nth": 8,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 25,
"type": "STArray"

@@ -2829,5 +2729,5 @@ }

[
"Memos",
"AuthorizeCredentials",
{
"nth": 9,
"nth": 26,
"isVLEncoded": false,

@@ -2840,5 +2740,5 @@ "isSerialized": true,

[
"NFTokens",
"UnauthorizeCredentials",
{
"nth": 10,
"nth": 27,
"isVLEncoded": false,

@@ -2851,132 +2751,461 @@ "isSerialized": true,

[
"Hooks",
"CloseResolution",
{
"nth": 11,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "UInt8"
}
],
[
"Method",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 2,
"type": "UInt8"
}
],
[
"VoteSlots",
"TransactionResult",
{
"nth": 12,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 3,
"type": "UInt8"
}
],
[
"Scale",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 4,
"type": "UInt8"
}
],
[
"Majorities",
"AssetScale",
{
"nth": 16,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 5,
"type": "UInt8"
}
],
[
"TickSize",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 16,
"type": "UInt8"
}
],
[
"DisabledValidators",
"UNLModifyDisabling",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 17,
"type": "UInt8"
}
],
[
"HookResult",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 18,
"type": "UInt8"
}
],
[
"WasLockingChainSend",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 19,
"type": "UInt8"
}
],
[
"HookExecutions",
"TakerPaysCurrency",
{
"nth": 18,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "Hash160"
}
],
[
"TakerPaysIssuer",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 2,
"type": "Hash160"
}
],
[
"HookParameters",
"TakerGetsCurrency",
{
"nth": 19,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 3,
"type": "Hash160"
}
],
[
"TakerGetsIssuer",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 4,
"type": "Hash160"
}
],
[
"HookGrants",
"Paths",
{
"nth": 20,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "PathSet"
}
],
[
"Indexes",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": true,
"nth": 1,
"type": "Vector256"
}
],
[
"XChainClaimAttestations",
"Hashes",
{
"nth": 21,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 2,
"type": "Vector256"
}
],
[
"Amendments",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 3,
"type": "Vector256"
}
],
[
"NFTokenOffers",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 4,
"type": "Vector256"
}
],
[
"CredentialIDs",
{
"nth": 5,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "Vector256"
}
],
[
"MPTokenIssuanceID",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "Hash192"
}
],
[
"LockingChainIssue",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 1,
"type": "Issue"
}
],
[
"XChainCreateAccountAttestations",
"IssuingChainIssue",
{
"nth": 22,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 2,
"type": "Issue"
}
],
[
"Asset",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 3,
"type": "Issue"
}
],
[
"PriceDataSeries",
"Asset2",
{
"nth": 24,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 4,
"type": "Issue"
}
],
[
"XChainBridge",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 1,
"type": "XChainBridge"
}
],
[
"AuthAccounts",
"BaseAsset",
{
"nth": 25,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "Currency"
}
],
[
"QuoteAsset",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 2,
"type": "Currency"
}
],
[
"Transaction",
{
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": 257,
"type": "Transaction"
}
],
[
"LedgerEntry",
{
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": 257,
"type": "LedgerEntry"
}
],
[
"Validation",
{
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": 257,
"type": "Validation"
}
],
[
"Metadata",
{
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": 257,
"type": "Metadata"
}
]
],
"LEDGER_ENTRY_TYPES": {
"AMM": 121,
"AccountRoot": 97,
"Amendments": 102,
"Bridge": 105,
"Check": 67,
"DID": 73,
"DepositPreauth": 112,
"DirectoryNode": 100,
"Escrow": 117,
"FeeSettings": 115,
"Invalid": -1,
"LedgerHashes": 104,
"MPToken": 127,
"MPTokenIssuance": 126,
"NFTokenOffer": 55,
"NFTokenPage": 80,
"NegativeUNL": 78,
"Offer": 111,
"Oracle": 128,
"Credential": 129,
"PayChannel": 120,
"RippleState": 114,
"SignerList": 83,
"Ticket": 84,
"XChainOwnedClaimID": 113,
"XChainOwnedCreateAccountClaimID": 116
},
"TRANSACTION_RESULTS": {
"telLOCAL_ERROR": -399,
"tecAMM_ACCOUNT": 168,
"tecAMM_BALANCE": 163,
"tecAMM_EMPTY": 166,
"tecAMM_FAILED": 164,
"tecAMM_INVALID_TOKENS": 165,
"tecAMM_NOT_EMPTY": 167,
"tecARRAY_EMPTY": 190,
"tecARRAY_TOO_LARGE": 191,
"tecBAD_CREDENTIALS": 193,
"tecCANT_ACCEPT_OWN_NFTOKEN_OFFER": 158,
"tecCLAIM": 100,
"tecCRYPTOCONDITION_ERROR": 146,
"tecDIR_FULL": 121,
"tecDST_TAG_NEEDED": 143,
"tecDUPLICATE": 149,
"tecEMPTY_DID": 187,
"tecEXPIRED": 148,
"tecFAILED_PROCESSING": 105,
"tecFROZEN": 137,
"tecHAS_OBLIGATIONS": 151,
"tecINCOMPLETE": 169,
"tecINSUFFICIENT_FUNDS": 159,
"tecINSUFFICIENT_PAYMENT": 161,
"tecINSUFFICIENT_RESERVE": 141,
"tecINSUFF_FEE": 136,
"tecINSUF_RESERVE_LINE": 122,
"tecINSUF_RESERVE_OFFER": 123,
"tecINTERNAL": 144,
"tecINVALID_UPDATE_TIME": 188,
"tecINVARIANT_FAILED": 147,
"tecKILLED": 150,
"tecLOCKED": 192,
"tecMAX_SEQUENCE_REACHED": 154,
"tecNEED_MASTER_KEY": 142,
"tecNFTOKEN_BUY_SELL_MISMATCH": 156,
"tecNFTOKEN_OFFER_TYPE_MISMATCH": 157,
"tecNO_ALTERNATIVE_KEY": 130,
"tecNO_AUTH": 134,
"tecNO_DST": 124,
"tecNO_DST_INSUF_XRP": 125,
"tecNO_ENTRY": 140,
"tecNO_ISSUER": 133,
"tecNO_LINE": 135,
"tecNO_LINE_INSUF_RESERVE": 126,
"tecNO_LINE_REDUNDANT": 127,
"tecNO_PERMISSION": 139,
"tecNO_REGULAR_KEY": 131,
"tecNO_SUITABLE_NFTOKEN_PAGE": 155,
"tecNO_TARGET": 138,
"tecOBJECT_NOT_FOUND": 160,
"tecOVERSIZE": 145,
"tecOWNERS": 132,
"tecPATH_DRY": 128,
"tecPATH_PARTIAL": 101,
"tecTOKEN_PAIR_NOT_FOUND": 189,
"tecTOO_SOON": 152,
"tecUNFUNDED": 129,
"tecUNFUNDED_ADD": 102,
"tecUNFUNDED_AMM": 162,
"tecUNFUNDED_OFFER": 103,
"tecUNFUNDED_PAYMENT": 104,
"tecXCHAIN_ACCOUNT_CREATE_PAST": 181,
"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY": 182,
"tecXCHAIN_BAD_CLAIM_ID": 172,
"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 185,
"tecXCHAIN_BAD_TRANSFER_ISSUE": 170,
"tecXCHAIN_CLAIM_NO_QUORUM": 173,
"tecXCHAIN_CREATE_ACCOUNT_DISABLED": 186,
"tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE": 175,
"tecXCHAIN_INSUFF_CREATE_AMOUNT": 180,
"tecXCHAIN_NO_CLAIM_ID": 171,
"tecXCHAIN_NO_SIGNERS_LIST": 178,
"tecXCHAIN_PAYMENT_FAILED": 183,
"tecXCHAIN_PROOF_UNKNOWN_KEY": 174,
"tecXCHAIN_REWARD_MISMATCH": 177,
"tecXCHAIN_SELF_COMMIT": 184,
"tecXCHAIN_SENDING_ACCOUNT_MISMATCH": 179,
"tecXCHAIN_WRONG_CHAIN": 176,
"tefALREADY": -198,
"tefBAD_ADD_AUTH": -197,
"tefBAD_AUTH": -196,
"tefBAD_AUTH_MASTER": -183,
"tefBAD_LEDGER": -195,
"tefBAD_QUORUM": -185,
"tefBAD_SIGNATURE": -186,
"tefCREATED": -194,
"tefEXCEPTION": -193,
"tefFAILURE": -199,
"tefINTERNAL": -192,
"tefINVALID_LEDGER_FIX_TYPE": -178,
"tefINVARIANT_FAILED": -182,
"tefMASTER_DISABLED": -188,
"tefMAX_LEDGER": -187,
"tefNFTOKEN_IS_NOT_TRANSFERABLE": -179,
"tefNOT_MULTI_SIGNING": -184,
"tefNO_AUTH_REQUIRED": -191,
"tefNO_TICKET": -180,
"tefPAST_SEQ": -190,
"tefTOO_BIG": -181,
"tefWRONG_PRIOR": -189,
"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_BLOCKED": -389,
"telCAN_NOT_QUEUE_BLOCKS": -390,
"telCAN_NOT_QUEUE_BLOCKED": -389,
"telCAN_NOT_QUEUE_FEE": -388,
"telCAN_NOT_QUEUE_FULL": -387,
"telENV_RPC_FAILED": -383,
"telFAILED_PROCESSING": -395,
"telINSUF_FEE_P": -394,
"telLOCAL_ERROR": -399,
"telNETWORK_ID_MAKES_TX_NON_CANONICAL": -384,
"telNO_DST_PARTIAL": -393,
"telREQUIRES_NETWORK_ID": -385,
"telWRONG_NETWORK": -386,
"telREQUIRES_NETWORK_ID": -385,
"telNETWORK_ID_MAKES_TX_NON_CANONICAL": -384,
"telENV_RPC_FAILED": -383,
"temMALFORMED": -299,
"temARRAY_EMPTY": -253,
"temARRAY_TOO_LARGE": -252,
"temBAD_AMM_TOKENS": -261,
"temBAD_AMOUNT": -298,

@@ -2988,5 +3217,7 @@ "temBAD_CURRENCY": -297,

"temBAD_LIMIT": -293,
"temBAD_NFTOKEN_TRANSFER_FEE": -262,
"temBAD_OFFER": -292,
"temBAD_PATH": -291,
"temBAD_PATH_LOOP": -290,
"temBAD_QUORUM": -271,
"temBAD_REGKEY": -289,

@@ -3000,202 +3231,131 @@ "temBAD_SEND_XRP_LIMIT": -288,

"temBAD_SIGNATURE": -282,
"temBAD_SIGNER": -272,
"temBAD_SRC_ACCOUNT": -281,
"temBAD_TICK_SIZE": -269,
"temBAD_TRANSFER_FEE": -251,
"temBAD_TRANSFER_RATE": -280,
"temBAD_WEIGHT": -270,
"temCANNOT_PREAUTH_SELF": -267,
"temDISABLED": -273,
"temDST_IS_SRC": -279,
"temDST_NEEDED": -278,
"temEMPTY_DID": -254,
"temINVALID": -277,
"temINVALID_ACCOUNT_ID": -268,
"temINVALID_COUNT": -266,
"temINVALID_FLAG": -276,
"temMALFORMED": -299,
"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,
"temSEQ_AND_TICKET": -263,
"temUNCERTAIN": -265,
"temUNKNOWN": -264,
"temSEQ_AND_TICKET": -263,
"temBAD_NFTOKEN_TRANSFER_FEE": -262,
"temBAD_AMM_TOKENS": -261,
"temXCHAIN_EQUAL_DOOR_ACCOUNTS": -260,
"temXCHAIN_BAD_PROOF": -259,
"temXCHAIN_BRIDGE_BAD_ISSUES": -258,
"temXCHAIN_BRIDGE_NONDOOR_OWNER": -257,
"temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT": -256,
"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -255,
"temEMPTY_DID": -254,
"temARRAY_EMPTY": -253,
"temARRAY_TOO_LARGE": -252,
"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,
"temXCHAIN_BRIDGE_NONDOOR_OWNER": -257,
"temXCHAIN_EQUAL_DOOR_ACCOUNTS": -260,
"terFUNDS_SPENT": -98,
"terINSUF_FEE_B": -97,
"terLAST": -91,
"terNO_ACCOUNT": -96,
"terNO_AMM": -87,
"terNO_AUTH": -95,
"terNO_LINE": -94,
"terNO_RIPPLE": -90,
"terOWNERS": -93,
"terPRE_SEQ": -92,
"terLAST": -91,
"terNO_RIPPLE": -90,
"terPRE_TICKET": -88,
"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,
"tecHOOK_REJECTED": 153,
"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,
"tecUNFUNDED_AMM": 162,
"tecAMM_BALANCE": 163,
"tecAMM_FAILED": 164,
"tecAMM_INVALID_TOKENS": 165,
"tecAMM_EMPTY": 166,
"tecAMM_NOT_EMPTY": 167,
"tecAMM_ACCOUNT": 168,
"tecINCOMPLETE": 169,
"tecXCHAIN_BAD_TRANSFER_ISSUE": 170,
"tecXCHAIN_NO_CLAIM_ID": 171,
"tecXCHAIN_BAD_CLAIM_ID": 172,
"tecXCHAIN_CLAIM_NO_QUORUM": 173,
"tecXCHAIN_PROOF_UNKNOWN_KEY": 174,
"tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE": 175,
"tecXCHAIN_WRONG_CHAIN": 176,
"tecXCHAIN_REWARD_MISMATCH": 177,
"tecXCHAIN_NO_SIGNERS_LIST": 178,
"tecXCHAIN_SENDING_ACCOUNT_MISMATCH": 179,
"tecXCHAIN_INSUFF_CREATE_AMOUNT": 180,
"tecXCHAIN_ACCOUNT_CREATE_PAST": 181,
"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY": 182,
"tecXCHAIN_PAYMENT_FAILED": 183,
"tecXCHAIN_SELF_COMMIT": 184,
"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 185,
"tecXCHAIN_CREATE_ACCOUNT_DISABLED": 186,
"tecEMPTY_DID": 187,
"tecINVALID_UPDATE_TIME": 188,
"tecTOKEN_PAIR_NOT_FOUND": 189,
"tecARRAY_EMPTY": 190,
"tecARRAY_TOO_LARGE": 191
"terRETRY": -99,
"tesSUCCESS": 0
},
"TRANSACTION_TYPES": {
"Invalid": -1,
"Payment": 0,
"AMMBid": 39,
"AMMCreate": 35,
"AMMDelete": 40,
"AMMDeposit": 36,
"AMMVote": 38,
"AMMWithdraw": 37,
"AccountDelete": 21,
"AccountSet": 3,
"CheckCancel": 18,
"CheckCash": 17,
"CheckCreate": 16,
"Clawback": 30,
"CredentialCreate": 58,
"CredentialAccept": 59,
"CredentialDelete": 60,
"DIDDelete": 50,
"DIDSet": 49,
"DepositPreauth": 19,
"EnableAmendment": 100,
"EscrowCancel": 4,
"EscrowCreate": 1,
"EscrowFinish": 2,
"AccountSet": 3,
"EscrowCancel": 4,
"SetRegularKey": 5,
"NickNameSet": 6,
"Invalid": -1,
"LedgerStateFix": 53,
"MPTokenAuthorize": 57,
"MPTokenIssuanceCreate": 54,
"MPTokenIssuanceDestroy": 55,
"MPTokenIssuanceSet": 56,
"NFTokenAcceptOffer": 29,
"NFTokenBurn": 26,
"NFTokenCancelOffer": 28,
"NFTokenCreateOffer": 27,
"NFTokenMint": 25,
"OfferCancel": 8,
"OfferCreate": 7,
"OfferCancel": 8,
"Contract": 9,
"TicketCreate": 10,
"TicketCancel": 11,
"SignerListSet": 12,
"OracleDelete": 52,
"OracleSet": 51,
"Payment": 0,
"PaymentChannelClaim": 15,
"PaymentChannelCreate": 13,
"PaymentChannelFund": 14,
"PaymentChannelClaim": 15,
"CheckCreate": 16,
"CheckCash": 17,
"CheckCancel": 18,
"DepositPreauth": 19,
"SetFee": 101,
"SetRegularKey": 5,
"SignerListSet": 12,
"TicketCreate": 10,
"TrustSet": 20,
"AccountDelete": 21,
"SetHook": 22,
"NFTokenMint": 25,
"NFTokenBurn": 26,
"NFTokenCreateOffer": 27,
"NFTokenCancelOffer": 28,
"NFTokenAcceptOffer": 29,
"Clawback": 30,
"AMMCreate": 35,
"AMMDeposit": 36,
"AMMWithdraw": 37,
"AMMVote": 38,
"AMMBid": 39,
"AMMDelete": 40,
"XChainCreateClaimID": 41,
"XChainCommit": 42,
"XChainClaim": 43,
"UNLModify": 102,
"XChainAccountCreateCommit": 44,
"XChainAddAccountCreateAttestation": 46,
"XChainAddClaimAttestation": 45,
"XChainAddAccountCreateAttestation": 46,
"XChainModifyBridge": 47,
"XChainClaim": 43,
"XChainCommit": 42,
"XChainCreateBridge": 48,
"DIDSet": 49,
"DIDDelete": 50,
"OracleSet": 51,
"OracleDelete": 52,
"EnableAmendment": 100,
"SetFee": 101,
"UNLModify": 102
"XChainCreateClaimID": 41,
"XChainModifyBridge": 47
},
"TYPES": {
"AccountID": 8,
"Amount": 6,
"Blob": 7,
"Currency": 26,
"Done": -1,
"Hash128": 4,
"Hash160": 17,
"Hash192": 21,
"Hash256": 5,
"Issue": 24,
"LedgerEntry": 10002,
"Metadata": 10004,
"NotPresent": 0,
"PathSet": 18,
"STArray": 15,
"STObject": 14,
"Transaction": 10001,
"UInt16": 1,
"UInt32": 2,
"UInt384": 22,
"UInt512": 23,
"UInt64": 3,
"UInt8": 16,
"UInt96": 20,
"Unknown": -2,
"Validation": 10003,
"Vector256": 19,
"XChainBridge": 25
}
}
import { BinaryParser } from '../serdes/binary-parser';
import { JsonObject, SerializedType } from './serialized-type';
/**
* Interface for JSON objects that represent amounts
*/
interface AmountObject extends JsonObject {
interface AmountObjectIOU extends JsonObject {
value: string;

@@ -11,3 +8,11 @@ currency: string;

}
interface AmountObjectMPT extends JsonObject {
value: string;
mpt_issuance_id: string;
}
/**
* Interface for JSON objects that represent amounts
*/
type AmountObject = AmountObjectIOU | AmountObjectMPT;
/**
* Class for serializing/Deserializing Amounts

@@ -19,3 +24,3 @@ */

/**
* Construct an amount from an IOU or string amount
* Construct an amount from an IOU, MPT or string amount
*

@@ -55,2 +60,9 @@ * @param value An Amount, object representing an IOU, or a string

/**
* Validate MPT.value amount
*
* @param decimal BigNumber object representing MPT.value
* @returns void, but will throw if invalid amount
*/
private static assertMptIsValid;
/**
* Ensure that the value after being multiplied by the exponent does not

@@ -69,3 +81,15 @@ * contain a decimal.

private isNative;
/**
* Test if this amount is in units of MPT
*
* @returns true if MPT
*/
private isMPT;
/**
* Test if this amount is in units of IOU
*
* @returns true if IOU
*/
private isIOU;
}
export { Amount, AmountObject };

@@ -14,2 +14,3 @@ "use strict";

const utils_2 = require("../utils");
const hash_192_1 = require("./hash-192");
/**

@@ -24,2 +25,3 @@ * Constants for validating amounts

const mask = BigInt(0x00000000ffffffff);
const mptMask = BigInt(0x8000000000000000);
/**

@@ -35,5 +37,5 @@ * BigNumber configuration for Amount IOUs

/**
* Type guard for AmountObject
* Type guard for AmountObjectIOU
*/
function isAmountObject(arg) {
function isAmountObjectIOU(arg) {
const keys = Object.keys(arg).sort();

@@ -46,2 +48,9 @@ return (keys.length === 3 &&

/**
* Type guard for AmountObjectMPT
*/
function isAmountObjectMPT(arg) {
const keys = Object.keys(arg).sort();
return (keys.length === 2 && keys[0] === 'mpt_issuance_id' && keys[1] === 'value');
}
/**
* Class for serializing/Deserializing Amounts

@@ -54,3 +63,3 @@ */

/**
* Construct an amount from an IOU or string amount
* Construct an amount from an IOU, MPT or string amount
*

@@ -76,3 +85,3 @@ * @param value An Amount, object representing an IOU, or a string

}
if (isAmountObject(value)) {
if (isAmountObjectIOU(value)) {
const number = new bignumber_js_1.default(value.value);

@@ -106,2 +115,14 @@ Amount.assertIouIsValid(number);

}
if (isAmountObjectMPT(value)) {
Amount.assertMptIsValid(value.value);
let leadingByte = new Uint8Array(1);
leadingByte[0] |= 0x60;
const num = BigInt(value.value);
const intBuf = [new Uint8Array(4), new Uint8Array(4)];
(0, utils_2.writeUInt32BE)(intBuf[0], Number(num >> BigInt(32)), 0);
(0, utils_2.writeUInt32BE)(intBuf[1], Number(num & BigInt(mask)), 0);
amount = (0, utils_1.concat)(intBuf);
const mptIssuanceID = hash_192_1.Hash192.from(value.mpt_issuance_id).toBytes();
return new Amount((0, utils_1.concat)([leadingByte, amount, mptIssuanceID]));
}
throw new Error('Invalid type to construct an Amount');

@@ -116,4 +137,8 @@ }

static fromParser(parser) {
const isXRP = parser.peek() & 0x80;
const numBytes = isXRP ? 48 : 8;
const isIOU = parser.peek() & 0x80;
if (isIOU)
return new Amount(parser.read(48));
// the amount can be either MPT or XRP at this point
const isMPT = parser.peek() & 0x20;
const numBytes = isMPT ? 33 : 8;
return new Amount(parser.read(numBytes));

@@ -137,3 +162,3 @@ }

}
else {
if (this.isIOU()) {
const parser = new binary_parser_1.BinaryParser(this.toString());

@@ -158,2 +183,18 @@ const mantissa = parser.read(8);

}
if (this.isMPT()) {
const parser = new binary_parser_1.BinaryParser(this.toString());
const leadingByte = parser.read(1);
const amount = parser.read(8);
const mptID = hash_192_1.Hash192.fromParser(parser);
const isPositive = leadingByte[0] & 0x40;
const sign = isPositive ? '' : '-';
const msb = BigInt((0, utils_2.readUInt32BE)(amount.slice(0, 4), 0));
const lsb = BigInt((0, utils_2.readUInt32BE)(amount.slice(4), 0));
const num = (msb << BigInt(32)) | lsb;
return {
value: `${sign}${num.toString()}`,
mpt_issuance_id: mptID.toString(),
};
}
throw new Error('Invalid amount to construct JSON');
}

@@ -196,2 +237,22 @@ /**

/**
* Validate MPT.value amount
*
* @param decimal BigNumber object representing MPT.value
* @returns void, but will throw if invalid amount
*/
static assertMptIsValid(amount) {
if (amount.indexOf('.') !== -1) {
throw new Error(`${amount.toString()} is an illegal amount`);
}
const decimal = new bignumber_js_1.default(amount);
if (!decimal.isZero()) {
if (decimal < (0, bignumber_js_1.default)(0)) {
throw new Error(`${amount.toString()} is an illegal amount`);
}
if (Number(BigInt(amount) & BigInt(mptMask)) != 0) {
throw new Error(`${amount.toString()} is an illegal amount`);
}
}
}
/**
* Ensure that the value after being multiplied by the exponent does not

@@ -218,4 +279,20 @@ * contain a decimal.

isNative() {
return (this.bytes[0] & 0x80) === 0;
return (this.bytes[0] & 0x80) === 0 && (this.bytes[0] & 0x20) === 0;
}
/**
* Test if this amount is in units of MPT
*
* @returns true if MPT
*/
isMPT() {
return (this.bytes[0] & 0x80) === 0 && (this.bytes[0] & 0x20) !== 0;
}
/**
* Test if this amount is in units of IOU
*
* @returns true if IOU
*/
isIOU() {
return (this.bytes[0] & 0x80) !== 0;
}
}

@@ -222,0 +299,0 @@ exports.Amount = Amount;

@@ -7,2 +7,3 @@ import { AccountID } from './account-id';

import { Hash160 } from './hash-160';
import { Hash192 } from './hash-192';
import { Hash256 } from './hash-256';

@@ -19,2 +20,2 @@ import { PathSet } from './path-set';

declare const coreTypes: Record<string, typeof SerializedType>;
export { coreTypes, AccountID, Amount, Blob, Currency, Hash128, Hash160, Hash256, PathSet, STArray, STObject, UInt8, UInt16, UInt32, UInt64, Vector256, };
export { coreTypes, AccountID, Amount, Blob, Currency, Hash128, Hash160, Hash192, Hash256, PathSet, STArray, STObject, UInt8, UInt16, UInt32, UInt64, Vector256, };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
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;
exports.Vector256 = exports.UInt64 = exports.UInt32 = exports.UInt16 = exports.UInt8 = exports.STObject = exports.STArray = exports.PathSet = exports.Hash256 = exports.Hash192 = exports.Hash160 = exports.Hash128 = exports.Currency = exports.Blob = exports.Amount = exports.AccountID = exports.coreTypes = void 0;
const account_id_1 = require("./account-id");

@@ -16,2 +16,4 @@ Object.defineProperty(exports, "AccountID", { enumerable: true, get: function () { return account_id_1.AccountID; } });

Object.defineProperty(exports, "Hash160", { enumerable: true, get: function () { return hash_160_1.Hash160; } });
const hash_192_1 = require("./hash-192");
Object.defineProperty(exports, "Hash192", { enumerable: true, get: function () { return hash_192_1.Hash192; } });
const hash_256_1 = require("./hash-256");

@@ -45,2 +47,3 @@ Object.defineProperty(exports, "Hash256", { enumerable: true, get: function () { return hash_256_1.Hash256; } });

Hash160: hash_160_1.Hash160,
Hash192: hash_192_1.Hash192,
Hash256: hash_256_1.Hash256,

@@ -47,0 +50,0 @@ Issue: issue_1.Issue,

@@ -42,3 +42,3 @@ import { BytesList } from '../serdes/binary-serializer';

*/
toJSON(_definitions?: XrplDefinitionsBase): JSON;
toJSON(_definitions?: XrplDefinitionsBase, _fieldName?: string): JSON;
/**

@@ -45,0 +45,0 @@ * @returns hexString representation of this.bytes

@@ -59,3 +59,3 @@ "use strict";

*/
toJSON(_definitions) {
toJSON(_definitions, _fieldName) {
return this.toHex();

@@ -62,0 +62,0 @@ }

@@ -10,2 +10,3 @@ "use strict";

const st_array_1 = require("./st-array");
const uint_64_1 = require("./uint-64");
const OBJECT_END_MARKER_BYTE = Uint8Array.from([0xe1]);

@@ -115,3 +116,5 @@ const OBJECT_END_MARKER = 'ObjectEndMarker';

? st_array_1.STArray.from(xAddressDecoded[field.name], definitions)
: field.associatedType.from(xAddressDecoded[field.name]);
: field.type.name === 'UInt64'
? uint_64_1.UInt64.from(xAddressDecoded[field.name], field.name)
: field.associatedType.from(xAddressDecoded[field.name]);
if (associatedValue == undefined) {

@@ -151,3 +154,3 @@ throw new TypeError(`Unable to interpret "${field.name}: ${xAddressDecoded[field.name]}".`);

.readFieldValue(field)
.toJSON(definitions);
.toJSON(definitions, field.name);
}

@@ -154,0 +157,0 @@ return accumulator;

import { UInt } from './uint';
import { BinaryParser } from '../serdes/binary-parser';
import { XrplDefinitionsBase } from '../enums';
/**

@@ -17,3 +18,3 @@ * Derived UInt class for serializing/deserializing 64 bit UInt

*/
static from<T extends UInt64 | string | bigint | number>(val: T): UInt64;
static from<T extends UInt64 | string | bigint | number>(val: T, fieldName?: string): UInt64;
/**

@@ -24,3 +25,3 @@ * The JSON representation of a UInt64 object

*/
toJSON(): string;
toJSON(_definitions?: XrplDefinitionsBase, fieldName?: string): string;
/**

@@ -27,0 +28,0 @@ * Get the value of the UInt64

@@ -7,4 +7,11 @@ "use strict";

const utils_2 = require("../utils");
const enums_1 = require("../enums");
const HEX_REGEX = /^[a-fA-F0-9]{1,16}$/;
const BASE10_REGEX = /^[0-9]{1,20}$/;
const mask = BigInt(0x00000000ffffffff);
function useBase10(fieldName) {
return (fieldName === 'MaximumAmount' ||
fieldName === 'OutstandingAmount' ||
fieldName === 'MPTAmount');
}
/**

@@ -26,3 +33,3 @@ * Derived UInt class for serializing/deserializing 64 bit UInt

*/
static from(val) {
static from(val, fieldName = '') {
if (val instanceof UInt64) {

@@ -43,3 +50,9 @@ return val;

if (typeof val === 'string') {
if (!HEX_REGEX.test(val)) {
if (useBase10(fieldName)) {
if (!BASE10_REGEX.test(val)) {
throw new Error(`${fieldName} ${val} is not a valid base 10 string`);
}
val = BigInt(val).toString(16);
}
if (typeof val === 'string' && !HEX_REGEX.test(val)) {
throw new Error(`${val} is not a valid hex-string`);

@@ -64,4 +77,8 @@ }

*/
toJSON() {
return (0, utils_1.bytesToHex)(this.bytes);
toJSON(_definitions = enums_1.DEFAULT_DEFINITIONS, fieldName = '') {
const hexString = (0, utils_1.bytesToHex)(this.bytes);
if (useBase10(fieldName)) {
return BigInt('0x' + hexString).toString(10);
}
return hexString;
}

@@ -68,0 +85,0 @@ /**

import { BinaryParser } from '../serdes/binary-parser';
import { JsonObject, SerializedType } from './serialized-type';
/**
* Interface for JSON objects that represent amounts
*/
interface AmountObject extends JsonObject {
interface AmountObjectIOU extends JsonObject {
value: string;

@@ -11,3 +8,11 @@ currency: string;

}
interface AmountObjectMPT extends JsonObject {
value: string;
mpt_issuance_id: string;
}
/**
* Interface for JSON objects that represent amounts
*/
type AmountObject = AmountObjectIOU | AmountObjectMPT;
/**
* Class for serializing/Deserializing Amounts

@@ -19,3 +24,3 @@ */

/**
* Construct an amount from an IOU or string amount
* Construct an amount from an IOU, MPT or string amount
*

@@ -55,2 +60,9 @@ * @param value An Amount, object representing an IOU, or a string

/**
* Validate MPT.value amount
*
* @param decimal BigNumber object representing MPT.value
* @returns void, but will throw if invalid amount
*/
private static assertMptIsValid;
/**
* Ensure that the value after being multiplied by the exponent does not

@@ -69,3 +81,15 @@ * contain a decimal.

private isNative;
/**
* Test if this amount is in units of MPT
*
* @returns true if MPT
*/
private isMPT;
/**
* Test if this amount is in units of IOU
*
* @returns true if IOU
*/
private isIOU;
}
export { Amount, AmountObject };

@@ -14,2 +14,3 @@ "use strict";

const utils_2 = require("../utils");
const hash_192_1 = require("./hash-192");
/**

@@ -24,2 +25,3 @@ * Constants for validating amounts

const mask = BigInt(0x00000000ffffffff);
const mptMask = BigInt(0x8000000000000000);
/**

@@ -35,5 +37,5 @@ * BigNumber configuration for Amount IOUs

/**
* Type guard for AmountObject
* Type guard for AmountObjectIOU
*/
function isAmountObject(arg) {
function isAmountObjectIOU(arg) {
const keys = Object.keys(arg).sort();

@@ -46,2 +48,9 @@ return (keys.length === 3 &&

/**
* Type guard for AmountObjectMPT
*/
function isAmountObjectMPT(arg) {
const keys = Object.keys(arg).sort();
return (keys.length === 2 && keys[0] === 'mpt_issuance_id' && keys[1] === 'value');
}
/**
* Class for serializing/Deserializing Amounts

@@ -54,3 +63,3 @@ */

/**
* Construct an amount from an IOU or string amount
* Construct an amount from an IOU, MPT or string amount
*

@@ -76,3 +85,3 @@ * @param value An Amount, object representing an IOU, or a string

}
if (isAmountObject(value)) {
if (isAmountObjectIOU(value)) {
const number = new bignumber_js_1.default(value.value);

@@ -106,2 +115,14 @@ Amount.assertIouIsValid(number);

}
if (isAmountObjectMPT(value)) {
Amount.assertMptIsValid(value.value);
let leadingByte = new Uint8Array(1);
leadingByte[0] |= 0x60;
const num = BigInt(value.value);
const intBuf = [new Uint8Array(4), new Uint8Array(4)];
(0, utils_2.writeUInt32BE)(intBuf[0], Number(num >> BigInt(32)), 0);
(0, utils_2.writeUInt32BE)(intBuf[1], Number(num & BigInt(mask)), 0);
amount = (0, utils_1.concat)(intBuf);
const mptIssuanceID = hash_192_1.Hash192.from(value.mpt_issuance_id).toBytes();
return new Amount((0, utils_1.concat)([leadingByte, amount, mptIssuanceID]));
}
throw new Error('Invalid type to construct an Amount');

@@ -116,4 +137,8 @@ }

static fromParser(parser) {
const isXRP = parser.peek() & 0x80;
const numBytes = isXRP ? 48 : 8;
const isIOU = parser.peek() & 0x80;
if (isIOU)
return new Amount(parser.read(48));
// the amount can be either MPT or XRP at this point
const isMPT = parser.peek() & 0x20;
const numBytes = isMPT ? 33 : 8;
return new Amount(parser.read(numBytes));

@@ -137,3 +162,3 @@ }

}
else {
if (this.isIOU()) {
const parser = new binary_parser_1.BinaryParser(this.toString());

@@ -158,2 +183,18 @@ const mantissa = parser.read(8);

}
if (this.isMPT()) {
const parser = new binary_parser_1.BinaryParser(this.toString());
const leadingByte = parser.read(1);
const amount = parser.read(8);
const mptID = hash_192_1.Hash192.fromParser(parser);
const isPositive = leadingByte[0] & 0x40;
const sign = isPositive ? '' : '-';
const msb = BigInt((0, utils_2.readUInt32BE)(amount.slice(0, 4), 0));
const lsb = BigInt((0, utils_2.readUInt32BE)(amount.slice(4), 0));
const num = (msb << BigInt(32)) | lsb;
return {
value: `${sign}${num.toString()}`,
mpt_issuance_id: mptID.toString(),
};
}
throw new Error('Invalid amount to construct JSON');
}

@@ -196,2 +237,22 @@ /**

/**
* Validate MPT.value amount
*
* @param decimal BigNumber object representing MPT.value
* @returns void, but will throw if invalid amount
*/
static assertMptIsValid(amount) {
if (amount.indexOf('.') !== -1) {
throw new Error(`${amount.toString()} is an illegal amount`);
}
const decimal = new bignumber_js_1.default(amount);
if (!decimal.isZero()) {
if (decimal < (0, bignumber_js_1.default)(0)) {
throw new Error(`${amount.toString()} is an illegal amount`);
}
if (Number(BigInt(amount) & BigInt(mptMask)) != 0) {
throw new Error(`${amount.toString()} is an illegal amount`);
}
}
}
/**
* Ensure that the value after being multiplied by the exponent does not

@@ -218,4 +279,20 @@ * contain a decimal.

isNative() {
return (this.bytes[0] & 0x80) === 0;
return (this.bytes[0] & 0x80) === 0 && (this.bytes[0] & 0x20) === 0;
}
/**
* Test if this amount is in units of MPT
*
* @returns true if MPT
*/
isMPT() {
return (this.bytes[0] & 0x80) === 0 && (this.bytes[0] & 0x20) !== 0;
}
/**
* Test if this amount is in units of IOU
*
* @returns true if IOU
*/
isIOU() {
return (this.bytes[0] & 0x80) !== 0;
}
}

@@ -222,0 +299,0 @@ exports.Amount = Amount;

@@ -7,2 +7,3 @@ import { AccountID } from './account-id';

import { Hash160 } from './hash-160';
import { Hash192 } from './hash-192';
import { Hash256 } from './hash-256';

@@ -19,2 +20,2 @@ import { PathSet } from './path-set';

declare const coreTypes: Record<string, typeof SerializedType>;
export { coreTypes, AccountID, Amount, Blob, Currency, Hash128, Hash160, Hash256, PathSet, STArray, STObject, UInt8, UInt16, UInt32, UInt64, Vector256, };
export { coreTypes, AccountID, Amount, Blob, Currency, Hash128, Hash160, Hash192, Hash256, PathSet, STArray, STObject, UInt8, UInt16, UInt32, UInt64, Vector256, };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
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;
exports.Vector256 = exports.UInt64 = exports.UInt32 = exports.UInt16 = exports.UInt8 = exports.STObject = exports.STArray = exports.PathSet = exports.Hash256 = exports.Hash192 = exports.Hash160 = exports.Hash128 = exports.Currency = exports.Blob = exports.Amount = exports.AccountID = exports.coreTypes = void 0;
const account_id_1 = require("./account-id");

@@ -16,2 +16,4 @@ Object.defineProperty(exports, "AccountID", { enumerable: true, get: function () { return account_id_1.AccountID; } });

Object.defineProperty(exports, "Hash160", { enumerable: true, get: function () { return hash_160_1.Hash160; } });
const hash_192_1 = require("./hash-192");
Object.defineProperty(exports, "Hash192", { enumerable: true, get: function () { return hash_192_1.Hash192; } });
const hash_256_1 = require("./hash-256");

@@ -45,2 +47,3 @@ Object.defineProperty(exports, "Hash256", { enumerable: true, get: function () { return hash_256_1.Hash256; } });

Hash160: hash_160_1.Hash160,
Hash192: hash_192_1.Hash192,
Hash256: hash_256_1.Hash256,

@@ -47,0 +50,0 @@ Issue: issue_1.Issue,

@@ -42,3 +42,3 @@ import { BytesList } from '../serdes/binary-serializer';

*/
toJSON(_definitions?: XrplDefinitionsBase): JSON;
toJSON(_definitions?: XrplDefinitionsBase, _fieldName?: string): JSON;
/**

@@ -45,0 +45,0 @@ * @returns hexString representation of this.bytes

@@ -59,3 +59,3 @@ "use strict";

*/
toJSON(_definitions) {
toJSON(_definitions, _fieldName) {
return this.toHex();

@@ -62,0 +62,0 @@ }

@@ -10,2 +10,3 @@ "use strict";

const st_array_1 = require("./st-array");
const uint_64_1 = require("./uint-64");
const OBJECT_END_MARKER_BYTE = Uint8Array.from([0xe1]);

@@ -115,3 +116,5 @@ const OBJECT_END_MARKER = 'ObjectEndMarker';

? st_array_1.STArray.from(xAddressDecoded[field.name], definitions)
: field.associatedType.from(xAddressDecoded[field.name]);
: field.type.name === 'UInt64'
? uint_64_1.UInt64.from(xAddressDecoded[field.name], field.name)
: field.associatedType.from(xAddressDecoded[field.name]);
if (associatedValue == undefined) {

@@ -151,3 +154,3 @@ throw new TypeError(`Unable to interpret "${field.name}: ${xAddressDecoded[field.name]}".`);

.readFieldValue(field)
.toJSON(definitions);
.toJSON(definitions, field.name);
}

@@ -154,0 +157,0 @@ return accumulator;

import { UInt } from './uint';
import { BinaryParser } from '../serdes/binary-parser';
import { XrplDefinitionsBase } from '../enums';
/**

@@ -17,3 +18,3 @@ * Derived UInt class for serializing/deserializing 64 bit UInt

*/
static from<T extends UInt64 | string | bigint | number>(val: T): UInt64;
static from<T extends UInt64 | string | bigint | number>(val: T, fieldName?: string): UInt64;
/**

@@ -24,3 +25,3 @@ * The JSON representation of a UInt64 object

*/
toJSON(): string;
toJSON(_definitions?: XrplDefinitionsBase, fieldName?: string): string;
/**

@@ -27,0 +28,0 @@ * Get the value of the UInt64

@@ -7,4 +7,11 @@ "use strict";

const utils_2 = require("../utils");
const enums_1 = require("../enums");
const HEX_REGEX = /^[a-fA-F0-9]{1,16}$/;
const BASE10_REGEX = /^[0-9]{1,20}$/;
const mask = BigInt(0x00000000ffffffff);
function useBase10(fieldName) {
return (fieldName === 'MaximumAmount' ||
fieldName === 'OutstandingAmount' ||
fieldName === 'MPTAmount');
}
/**

@@ -26,3 +33,3 @@ * Derived UInt class for serializing/deserializing 64 bit UInt

*/
static from(val) {
static from(val, fieldName = '') {
if (val instanceof UInt64) {

@@ -43,3 +50,9 @@ return val;

if (typeof val === 'string') {
if (!HEX_REGEX.test(val)) {
if (useBase10(fieldName)) {
if (!BASE10_REGEX.test(val)) {
throw new Error(`${fieldName} ${val} is not a valid base 10 string`);
}
val = BigInt(val).toString(16);
}
if (typeof val === 'string' && !HEX_REGEX.test(val)) {
throw new Error(`${val} is not a valid hex-string`);

@@ -64,4 +77,8 @@ }

*/
toJSON() {
return (0, utils_1.bytesToHex)(this.bytes);
toJSON(_definitions = enums_1.DEFAULT_DEFINITIONS, fieldName = '') {
const hexString = (0, utils_1.bytesToHex)(this.bytes);
if (useBase10(fieldName)) {
return BigInt('0x' + hexString).toString(10);
}
return hexString;
}

@@ -68,0 +85,0 @@ /**

{
"name": "ripple-binary-codec",
"version": "2.1.0",
"version": "2.2.0",
"description": "XRP Ledger binary codec",

@@ -44,5 +44,5 @@ "files": [

"engines": {
"node": ">= 16"
"node": ">= 18"
},
"gitHead": "92849e57cef5fdd3744af347f2ad051a7735f16e"
"gitHead": "11e724253bd87a3fcd15949e66786778adaa4640"
}
{
"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,
"Currency": 26,
"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,
"XChainOwnedClaimID": 113,
"XChainOwnedCreateAccountClaimID": 116,
"FeeSettings": 115,
"Escrow": 117,
"PayChannel": 120,
"Check": 67,
"DepositPreauth": 112,
"NegativeUNL": 78,
"NFTokenPage": 80,
"NFTokenOffer": 55,
"AMM": 121,
"DID": 73,
"Oracle": 128,
"Any": -3,
"Child": -2,
"Nickname": 110,
"Contract": 99,
"GeneratorMap": 103
},
"FIELDS": [

@@ -66,6 +6,6 @@ [

{
"nth": 0,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": 0,
"type": "Unknown"

@@ -77,6 +17,6 @@ }

{
"nth": -1,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": -1,
"type": "Unknown"

@@ -88,6 +28,6 @@ }

{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "STObject"

@@ -99,6 +39,6 @@ }

{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "STArray"

@@ -108,28 +48,8 @@ }

[
"hash",
"taker_gets_funded",
{
"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"

@@ -141,6 +61,6 @@ }

{
"nth": 259,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": 259,
"type": "Amount"

@@ -150,128 +70,8 @@ }

[
"LedgerEntry",
"LedgerEntryType",
{
"nth": 257,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": false,
"type": "LedgerEntry"
}
],
[
"Transaction",
{
"nth": 257,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": false,
"type": "Transaction"
}
],
[
"Validation",
{
"nth": 257,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": false,
"type": "Validation"
}
],
[
"Metadata",
{
"nth": 257,
"isVLEncoded": false,
"isSerialized": false,
"isSigningField": false,
"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"
}
],
[
"Scale",
{
"nth": 4,
"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"

@@ -283,6 +83,6 @@ }

{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 2,
"type": "UInt16"

@@ -294,6 +94,6 @@ }

{
"nth": 3,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 3,
"type": "UInt16"

@@ -305,6 +105,6 @@ }

{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 4,
"type": "UInt16"

@@ -316,6 +116,6 @@ }

{
"nth": 5,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 5,
"type": "UInt16"

@@ -327,6 +127,6 @@ }

{
"nth": 6,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 6,
"type": "UInt16"

@@ -338,6 +138,6 @@ }

{
"nth": 16,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 16,
"type": "UInt16"

@@ -349,6 +149,6 @@ }

{
"nth": 17,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 17,
"type": "UInt16"

@@ -360,6 +160,6 @@ }

{
"nth": 18,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 18,
"type": "UInt16"

@@ -371,6 +171,6 @@ }

{
"nth": 19,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 19,
"type": "UInt16"

@@ -382,6 +182,16 @@ }

{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 20,
"isVLEncoded": false,
"type": "UInt16"
}
],
[
"LedgerFixType",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 21,
"type": "UInt16"

@@ -393,6 +203,6 @@ }

{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "UInt32"

@@ -404,6 +214,6 @@ }

{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 2,
"type": "UInt32"

@@ -415,6 +225,6 @@ }

{
"nth": 3,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 3,
"type": "UInt32"

@@ -426,6 +236,6 @@ }

{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 4,
"type": "UInt32"

@@ -437,6 +247,6 @@ }

{
"nth": 5,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 5,
"type": "UInt32"

@@ -448,6 +258,6 @@ }

{
"nth": 6,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 6,
"type": "UInt32"

@@ -459,6 +269,6 @@ }

{
"nth": 7,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 7,
"type": "UInt32"

@@ -470,6 +280,6 @@ }

{
"nth": 8,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 8,
"type": "UInt32"

@@ -481,6 +291,6 @@ }

{
"nth": 9,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 9,
"type": "UInt32"

@@ -492,6 +302,6 @@ }

{
"nth": 10,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 10,
"type": "UInt32"

@@ -503,6 +313,6 @@ }

{
"nth": 11,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 11,
"type": "UInt32"

@@ -514,6 +324,6 @@ }

{
"nth": 12,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 12,
"type": "UInt32"

@@ -525,6 +335,6 @@ }

{
"nth": 13,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 13,
"type": "UInt32"

@@ -536,6 +346,6 @@ }

{
"nth": 14,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 14,
"type": "UInt32"

@@ -547,6 +357,6 @@ }

{
"nth": 15,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 15,
"type": "UInt32"

@@ -558,6 +368,6 @@ }

{
"nth": 16,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 16,
"type": "UInt32"

@@ -569,6 +379,6 @@ }

{
"nth": 17,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 17,
"type": "UInt32"

@@ -580,6 +390,6 @@ }

{
"nth": 18,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 18,
"type": "UInt32"

@@ -591,6 +401,6 @@ }

{
"nth": 19,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 19,
"type": "UInt32"

@@ -602,6 +412,6 @@ }

{
"nth": 20,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 20,
"type": "UInt32"

@@ -613,6 +423,6 @@ }

{
"nth": 21,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 21,
"type": "UInt32"

@@ -624,6 +434,6 @@ }

{
"nth": 22,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 22,
"type": "UInt32"

@@ -635,6 +445,6 @@ }

{
"nth": 23,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 23,
"type": "UInt32"

@@ -646,6 +456,6 @@ }

{
"nth": 24,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 24,
"type": "UInt32"

@@ -657,6 +467,6 @@ }

{
"nth": 25,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 25,
"type": "UInt32"

@@ -668,6 +478,6 @@ }

{
"nth": 26,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 26,
"type": "UInt32"

@@ -679,6 +489,6 @@ }

{
"nth": 27,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 27,
"type": "UInt32"

@@ -690,6 +500,6 @@ }

{
"nth": 28,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 28,
"type": "UInt32"

@@ -701,6 +511,6 @@ }

{
"nth": 29,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 29,
"type": "UInt32"

@@ -712,6 +522,6 @@ }

{
"nth": 30,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 30,
"type": "UInt32"

@@ -723,6 +533,6 @@ }

{
"nth": 31,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 31,
"type": "UInt32"

@@ -734,6 +544,6 @@ }

{
"nth": 32,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 32,
"type": "UInt32"

@@ -745,6 +555,6 @@ }

{
"nth": 33,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 33,
"type": "UInt32"

@@ -756,6 +566,6 @@ }

{
"nth": 34,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 34,
"type": "UInt32"

@@ -767,6 +577,6 @@ }

{
"nth": 35,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 35,
"type": "UInt32"

@@ -778,6 +588,6 @@ }

{
"nth": 36,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 36,
"type": "UInt32"

@@ -789,6 +599,6 @@ }

{
"nth": 37,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 37,
"type": "UInt32"

@@ -800,6 +610,6 @@ }

{
"nth": 38,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 38,
"type": "UInt32"

@@ -811,6 +621,6 @@ }

{
"nth": 39,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 39,
"type": "UInt32"

@@ -822,6 +632,6 @@ }

{
"nth": 40,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 40,
"type": "UInt32"

@@ -833,6 +643,6 @@ }

{
"nth": 41,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 41,
"type": "UInt32"

@@ -844,6 +654,6 @@ }

{
"nth": 42,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 42,
"type": "UInt32"

@@ -855,6 +665,6 @@ }

{
"nth": 43,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 43,
"type": "UInt32"

@@ -866,6 +676,6 @@ }

{
"nth": 44,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 44,
"type": "UInt32"

@@ -877,6 +687,6 @@ }

{
"nth": 45,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 45,
"type": "UInt32"

@@ -888,6 +698,6 @@ }

{
"nth": 46,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 46,
"type": "UInt32"

@@ -899,6 +709,6 @@ }

{
"nth": 48,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 48,
"type": "UInt32"

@@ -910,6 +720,6 @@ }

{
"nth": 50,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 50,
"type": "UInt32"

@@ -921,6 +731,6 @@ }

{
"nth": 51,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 51,
"type": "UInt32"

@@ -932,6 +742,6 @@ }

{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "UInt64"

@@ -943,6 +753,6 @@ }

{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 2,
"type": "UInt64"

@@ -954,6 +764,6 @@ }

{
"nth": 3,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 3,
"type": "UInt64"

@@ -965,6 +775,6 @@ }

{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 4,
"type": "UInt64"

@@ -976,6 +786,6 @@ }

{
"nth": 5,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 5,
"type": "UInt64"

@@ -987,6 +797,6 @@ }

{
"nth": 6,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 6,
"type": "UInt64"

@@ -998,6 +808,6 @@ }

{
"nth": 7,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 7,
"type": "UInt64"

@@ -1009,6 +819,6 @@ }

{
"nth": 8,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 8,
"type": "UInt64"

@@ -1020,6 +830,6 @@ }

{
"nth": 9,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 9,
"type": "UInt64"

@@ -1031,6 +841,6 @@ }

{
"nth": 10,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 10,
"type": "UInt64"

@@ -1042,6 +852,6 @@ }

{
"nth": 11,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 11,
"type": "UInt64"

@@ -1053,6 +863,6 @@ }

{
"nth": 12,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 12,
"type": "UInt64"

@@ -1064,6 +874,6 @@ }

{
"nth": 13,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 13,
"type": "UInt64"

@@ -1075,6 +885,6 @@ }

{
"nth": 16,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 16,
"type": "UInt64"

@@ -1086,6 +896,6 @@ }

{
"nth": 17,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 17,
"type": "UInt64"

@@ -1097,6 +907,6 @@ }

{
"nth": 18,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 18,
"type": "UInt64"

@@ -1108,6 +918,6 @@ }

{
"nth": 19,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 19,
"type": "UInt64"

@@ -1119,6 +929,6 @@ }

{
"nth": 20,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 20,
"type": "UInt64"

@@ -1130,6 +940,6 @@ }

{
"nth": 21,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 21,
"type": "UInt64"

@@ -1141,6 +951,6 @@ }

{
"nth": 22,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 22,
"type": "UInt64"

@@ -1152,6 +962,16 @@ }

{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 23,
"isVLEncoded": false,
"type": "UInt64"
}
],
[
"MaximumAmount",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 24,
"type": "UInt64"

@@ -1161,49 +981,49 @@ }

[
"EmailHash",
"OutstandingAmount",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Hash128"
"isVLEncoded": false,
"nth": 25,
"type": "UInt64"
}
],
[
"TakerPaysCurrency",
"MPTAmount",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Hash160"
"isVLEncoded": false,
"nth": 26,
"type": "UInt64"
}
],
[
"TakerPaysIssuer",
"IssuerNode",
{
"nth": 2,
"nth": 27,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Hash160"
"type": "UInt64"
}
],
[
"TakerGetsCurrency",
"SubjectNode",
{
"nth": 3,
"nth": 28,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Hash160"
"type": "UInt64"
}
],
[
"TakerGetsIssuer",
"EmailHash",
{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Hash160"
"isVLEncoded": false,
"nth": 1,
"type": "Hash128"
}

@@ -1214,6 +1034,6 @@ ],

{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "Hash256"

@@ -1225,6 +1045,6 @@ }

{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 2,
"type": "Hash256"

@@ -1236,6 +1056,6 @@ }

{
"nth": 3,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 3,
"type": "Hash256"

@@ -1247,6 +1067,6 @@ }

{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 4,
"type": "Hash256"

@@ -1258,6 +1078,6 @@ }

{
"nth": 5,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 5,
"type": "Hash256"

@@ -1269,6 +1089,6 @@ }

{
"nth": 6,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 6,
"type": "Hash256"

@@ -1280,6 +1100,6 @@ }

{
"nth": 7,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 7,
"type": "Hash256"

@@ -1291,6 +1111,6 @@ }

{
"nth": 8,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 8,
"type": "Hash256"

@@ -1302,6 +1122,6 @@ }

{
"nth": 9,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 9,
"type": "Hash256"

@@ -1313,6 +1133,6 @@ }

{
"nth": 10,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 10,
"type": "Hash256"

@@ -1324,6 +1144,6 @@ }

{
"nth": 11,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 11,
"type": "Hash256"

@@ -1335,6 +1155,6 @@ }

{
"nth": 12,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 12,
"type": "Hash256"

@@ -1346,6 +1166,6 @@ }

{
"nth": 13,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 13,
"type": "Hash256"

@@ -1357,6 +1177,6 @@ }

{
"nth": 14,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 14,
"type": "Hash256"

@@ -1368,6 +1188,6 @@ }

{
"nth": 16,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 16,
"type": "Hash256"

@@ -1379,6 +1199,6 @@ }

{
"nth": 17,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 17,
"type": "Hash256"

@@ -1390,6 +1210,6 @@ }

{
"nth": 18,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 18,
"type": "Hash256"

@@ -1401,6 +1221,6 @@ }

{
"nth": 19,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 19,
"type": "Hash256"

@@ -1412,6 +1232,6 @@ }

{
"nth": 21,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 21,
"type": "Hash256"

@@ -1423,6 +1243,6 @@ }

{
"nth": 22,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 22,
"type": "Hash256"

@@ -1434,6 +1254,6 @@ }

{
"nth": 23,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 23,
"type": "Hash256"

@@ -1445,6 +1265,6 @@ }

{
"nth": 24,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 24,
"type": "Hash256"

@@ -1456,6 +1276,6 @@ }

{
"nth": 25,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 25,
"type": "Hash256"

@@ -1467,6 +1287,6 @@ }

{
"nth": 26,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 26,
"type": "Hash256"

@@ -1478,6 +1298,6 @@ }

{
"nth": 27,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 27,
"type": "Hash256"

@@ -1489,6 +1309,6 @@ }

{
"nth": 28,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 28,
"type": "Hash256"

@@ -1500,6 +1320,6 @@ }

{
"nth": 29,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 29,
"type": "Hash256"

@@ -1511,6 +1331,6 @@ }

{
"nth": 30,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 30,
"type": "Hash256"

@@ -1522,6 +1342,6 @@ }

{
"nth": 31,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 31,
"type": "Hash256"

@@ -1533,6 +1353,6 @@ }

{
"nth": 32,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 32,
"type": "Hash256"

@@ -1544,6 +1364,6 @@ }

{
"nth": 33,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 33,
"type": "Hash256"

@@ -1553,8 +1373,28 @@ }

[
"hash",
{
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": 257,
"type": "Hash256"
}
],
[
"index",
{
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": 258,
"type": "Hash256"
}
],
[
"Amount",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "Amount"

@@ -1566,6 +1406,6 @@ }

{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 2,
"type": "Amount"

@@ -1577,6 +1417,6 @@ }

{
"nth": 3,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 3,
"type": "Amount"

@@ -1588,6 +1428,6 @@ }

{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 4,
"type": "Amount"

@@ -1599,6 +1439,6 @@ }

{
"nth": 5,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 5,
"type": "Amount"

@@ -1610,6 +1450,6 @@ }

{
"nth": 6,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 6,
"type": "Amount"

@@ -1621,6 +1461,6 @@ }

{
"nth": 7,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 7,
"type": "Amount"

@@ -1632,6 +1472,6 @@ }

{
"nth": 8,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 8,
"type": "Amount"

@@ -1643,6 +1483,6 @@ }

{
"nth": 9,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 9,
"type": "Amount"

@@ -1654,6 +1494,6 @@ }

{
"nth": 10,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 10,
"type": "Amount"

@@ -1665,6 +1505,6 @@ }

{
"nth": 11,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 11,
"type": "Amount"

@@ -1676,6 +1516,6 @@ }

{
"nth": 12,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 12,
"type": "Amount"

@@ -1687,6 +1527,6 @@ }

{
"nth": 13,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 13,
"type": "Amount"

@@ -1698,6 +1538,6 @@ }

{
"nth": 16,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 16,
"type": "Amount"

@@ -1709,6 +1549,6 @@ }

{
"nth": 17,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 17,
"type": "Amount"

@@ -1720,6 +1560,6 @@ }

{
"nth": 18,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 18,
"type": "Amount"

@@ -1731,6 +1571,6 @@ }

{
"nth": 19,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 19,
"type": "Amount"

@@ -1742,6 +1582,6 @@ }

{
"nth": 22,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 22,
"type": "Amount"

@@ -1753,6 +1593,6 @@ }

{
"nth": 23,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 23,
"type": "Amount"

@@ -1764,6 +1604,6 @@ }

{
"nth": 24,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 24,
"type": "Amount"

@@ -1775,6 +1615,6 @@ }

{
"nth": 25,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 25,
"type": "Amount"

@@ -1786,6 +1626,6 @@ }

{
"nth": 26,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 26,
"type": "Amount"

@@ -1797,6 +1637,6 @@ }

{
"nth": 27,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 27,
"type": "Amount"

@@ -1808,6 +1648,6 @@ }

{
"nth": 28,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 28,
"type": "Amount"

@@ -1819,6 +1659,6 @@ }

{
"nth": 29,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 29,
"type": "Amount"

@@ -1830,6 +1670,6 @@ }

{
"nth": 30,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 30,
"type": "Amount"

@@ -1841,6 +1681,6 @@ }

{
"nth": 31,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 31,
"type": "Amount"

@@ -1852,6 +1692,6 @@ }

{
"nth": 1,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 1,
"type": "Blob"

@@ -1863,6 +1703,6 @@ }

{
"nth": 2,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 2,
"type": "Blob"

@@ -1874,6 +1714,6 @@ }

{
"nth": 3,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 3,
"type": "Blob"

@@ -1885,6 +1725,6 @@ }

{
"nth": 4,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": false,
"isVLEncoded": true,
"nth": 4,
"type": "Blob"

@@ -1896,6 +1736,6 @@ }

{
"nth": 5,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 5,
"type": "Blob"

@@ -1907,6 +1747,6 @@ }

{
"nth": 6,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": false,
"isVLEncoded": true,
"nth": 6,
"type": "Blob"

@@ -1918,6 +1758,6 @@ }

{
"nth": 7,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 7,
"type": "Blob"

@@ -1929,6 +1769,6 @@ }

{
"nth": 8,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 8,
"type": "Blob"

@@ -1940,6 +1780,6 @@ }

{
"nth": 9,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 9,
"type": "Blob"

@@ -1951,6 +1791,6 @@ }

{
"nth": 10,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 10,
"type": "Blob"

@@ -1962,6 +1802,6 @@ }

{
"nth": 11,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 11,
"type": "Blob"

@@ -1973,6 +1813,6 @@ }

{
"nth": 12,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 12,
"type": "Blob"

@@ -1984,6 +1824,6 @@ }

{
"nth": 13,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 13,
"type": "Blob"

@@ -1995,6 +1835,6 @@ }

{
"nth": 14,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 14,
"type": "Blob"

@@ -2006,6 +1846,6 @@ }

{
"nth": 16,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 16,
"type": "Blob"

@@ -2017,6 +1857,6 @@ }

{
"nth": 17,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 17,
"type": "Blob"

@@ -2028,6 +1868,6 @@ }

{
"nth": 18,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": false,
"isVLEncoded": true,
"nth": 18,
"type": "Blob"

@@ -2039,6 +1879,6 @@ }

{
"nth": 19,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 19,
"type": "Blob"

@@ -2050,6 +1890,6 @@ }

{
"nth": 20,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 20,
"type": "Blob"

@@ -2061,6 +1901,6 @@ }

{
"nth": 21,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 21,
"type": "Blob"

@@ -2072,6 +1912,6 @@ }

{
"nth": 22,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 22,
"type": "Blob"

@@ -2083,6 +1923,6 @@ }

{
"nth": 23,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 23,
"type": "Blob"

@@ -2094,6 +1934,6 @@ }

{
"nth": 24,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 24,
"type": "Blob"

@@ -2105,6 +1945,6 @@ }

{
"nth": 25,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 25,
"type": "Blob"

@@ -2116,6 +1956,6 @@ }

{
"nth": 26,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 26,
"type": "Blob"

@@ -2127,6 +1967,6 @@ }

{
"nth": 27,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 27,
"type": "Blob"

@@ -2138,6 +1978,6 @@ }

{
"nth": 28,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 28,
"type": "Blob"

@@ -2149,4 +1989,24 @@ }

{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 29,
"type": "Blob"
}
],
[
"MPTokenMetadata",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 30,
"type": "Blob"
}
],
[
"CredentialType",
{
"nth": 31,
"isVLEncoded": true,
"isSerialized": true,

@@ -2160,6 +2020,6 @@ "isSigningField": true,

{
"nth": 1,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 1,
"type": "AccountID"

@@ -2171,6 +2031,6 @@ }

{
"nth": 2,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 2,
"type": "AccountID"

@@ -2182,6 +2042,6 @@ }

{
"nth": 3,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 3,
"type": "AccountID"

@@ -2193,6 +2053,6 @@ }

{
"nth": 4,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 4,
"type": "AccountID"

@@ -2204,6 +2064,6 @@ }

{
"nth": 5,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 5,
"type": "AccountID"

@@ -2215,6 +2075,6 @@ }

{
"nth": 6,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 6,
"type": "AccountID"

@@ -2226,6 +2086,6 @@ }

{
"nth": 8,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 8,
"type": "AccountID"

@@ -2237,6 +2097,6 @@ }

{
"nth": 9,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 9,
"type": "AccountID"

@@ -2248,6 +2108,16 @@ }

{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 10,
"isVLEncoded": true,
"type": "AccountID"
}
],
[
"Holder",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 11,
"type": "AccountID"

@@ -2259,6 +2129,6 @@ }

{
"nth": 16,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 16,
"type": "AccountID"

@@ -2270,6 +2140,6 @@ }

{
"nth": 18,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 18,
"type": "AccountID"

@@ -2281,6 +2151,6 @@ }

{
"nth": 19,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 19,
"type": "AccountID"

@@ -2292,6 +2162,6 @@ }

{
"nth": 20,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 20,
"type": "AccountID"

@@ -2303,6 +2173,6 @@ }

{
"nth": 21,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 21,
"type": "AccountID"

@@ -2314,6 +2184,6 @@ }

{
"nth": 22,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 22,
"type": "AccountID"

@@ -2325,6 +2195,6 @@ }

{
"nth": 23,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 23,
"type": "AccountID"

@@ -2334,128 +2204,128 @@ }

[
"Indexes",
"Subject",
{
"nth": 1,
"nth": 24,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "Vector256"
"type": "AccountID"
}
],
[
"Hashes",
"TransactionMetaData",
{
"nth": 2,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "Vector256"
"isVLEncoded": false,
"nth": 2,
"type": "STObject"
}
],
[
"Amendments",
"CreatedNode",
{
"nth": 3,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "Vector256"
"isVLEncoded": false,
"nth": 3,
"type": "STObject"
}
],
[
"NFTokenOffers",
"DeletedNode",
{
"nth": 4,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "Vector256"
"isVLEncoded": false,
"nth": 4,
"type": "STObject"
}
],
[
"Paths",
"ModifiedNode",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "PathSet"
"isVLEncoded": false,
"nth": 5,
"type": "STObject"
}
],
[
"BaseAsset",
"PreviousFields",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Currency"
"isVLEncoded": false,
"nth": 6,
"type": "STObject"
}
],
[
"QuoteAsset",
"FinalFields",
{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Currency"
"isVLEncoded": false,
"nth": 7,
"type": "STObject"
}
],
[
"LockingChainIssue",
"NewFields",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Issue"
"isVLEncoded": false,
"nth": 8,
"type": "STObject"
}
],
[
"IssuingChainIssue",
"TemplateEntry",
{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Issue"
"isVLEncoded": false,
"nth": 9,
"type": "STObject"
}
],
[
"Asset",
"Memo",
{
"nth": 3,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Issue"
"isVLEncoded": false,
"nth": 10,
"type": "STObject"
}
],
[
"Asset2",
"SignerEntry",
{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Issue"
"isVLEncoded": false,
"nth": 11,
"type": "STObject"
}
],
[
"XChainBridge",
"NFToken",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "XChainBridge"
"isVLEncoded": false,
"nth": 12,
"type": "STObject"
}
],
[
"TransactionMetaData",
"EmitDetails",
{
"nth": 2,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 13,
"type": "STObject"

@@ -2465,8 +2335,8 @@ }

[
"CreatedNode",
"Hook",
{
"nth": 3,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 14,
"type": "STObject"

@@ -2476,8 +2346,8 @@ }

[
"DeletedNode",
"Signer",
{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 16,
"type": "STObject"

@@ -2487,8 +2357,8 @@ }

[
"ModifiedNode",
"Majority",
{
"nth": 5,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 18,
"type": "STObject"

@@ -2498,8 +2368,8 @@ }

[
"PreviousFields",
"DisabledValidator",
{
"nth": 6,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 19,
"type": "STObject"

@@ -2509,8 +2379,8 @@ }

[
"FinalFields",
"EmittedTxn",
{
"nth": 7,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 20,
"type": "STObject"

@@ -2520,8 +2390,8 @@ }

[
"NewFields",
"HookExecution",
{
"nth": 8,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 21,
"type": "STObject"

@@ -2531,8 +2401,8 @@ }

[
"TemplateEntry",
"HookDefinition",
{
"nth": 9,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 22,
"type": "STObject"

@@ -2542,8 +2412,8 @@ }

[
"Memo",
"HookParameter",
{
"nth": 10,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 23,
"type": "STObject"

@@ -2553,8 +2423,8 @@ }

[
"SignerEntry",
"HookGrant",
{
"nth": 11,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 24,
"type": "STObject"

@@ -2564,8 +2434,8 @@ }

[
"NFToken",
"VoteEntry",
{
"nth": 12,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 25,
"type": "STObject"

@@ -2575,8 +2445,8 @@ }

[
"EmitDetails",
"AuctionSlot",
{
"nth": 13,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 26,
"type": "STObject"

@@ -2586,8 +2456,8 @@ }

[
"Hook",
"AuthAccount",
{
"nth": 14,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 27,
"type": "STObject"

@@ -2597,8 +2467,8 @@ }

[
"Signer",
"XChainClaimProofSig",
{
"nth": 16,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 28,
"type": "STObject"

@@ -2608,8 +2478,8 @@ }

[
"Majority",
"XChainCreateAccountProofSig",
{
"nth": 18,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 29,
"type": "STObject"

@@ -2619,8 +2489,8 @@ }

[
"DisabledValidator",
"XChainClaimAttestationCollectionElement",
{
"nth": 19,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 30,
"type": "STObject"

@@ -2630,8 +2500,8 @@ }

[
"EmittedTxn",
"XChainCreateAccountAttestationCollectionElement",
{
"nth": 20,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 31,
"type": "STObject"

@@ -2641,8 +2511,8 @@ }

[
"HookExecution",
"PriceData",
{
"nth": 21,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 32,
"type": "STObject"

@@ -2652,5 +2522,5 @@ }

[
"HookDefinition",
"Credential",
{
"nth": 22,
"nth": 33,
"isVLEncoded": false,

@@ -2663,108 +2533,138 @@ "isSerialized": true,

[
"HookParameter",
"Signers",
{
"nth": 23,
"isSerialized": true,
"isSigningField": false,
"isVLEncoded": false,
"nth": 3,
"type": "STArray"
}
],
[
"SignerEntries",
{
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 4,
"type": "STArray"
}
],
[
"HookGrant",
"Template",
{
"nth": 24,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 5,
"type": "STArray"
}
],
[
"Necessary",
{
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 6,
"type": "STArray"
}
],
[
"VoteEntry",
"Sufficient",
{
"nth": 25,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 7,
"type": "STArray"
}
],
[
"AffectedNodes",
{
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 8,
"type": "STArray"
}
],
[
"AuctionSlot",
"Memos",
{
"nth": 26,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 9,
"type": "STArray"
}
],
[
"AuthAccount",
"NFTokens",
{
"nth": 27,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 10,
"type": "STArray"
}
],
[
"XChainClaimProofSig",
"Hooks",
{
"nth": 28,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 11,
"type": "STArray"
}
],
[
"XChainCreateAccountProofSig",
"VoteSlots",
{
"nth": 29,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 12,
"type": "STArray"
}
],
[
"XChainClaimAttestationCollectionElement",
"Majorities",
{
"nth": 30,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 16,
"type": "STArray"
}
],
[
"XChainCreateAccountAttestationCollectionElement",
"DisabledValidators",
{
"nth": 31,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 17,
"type": "STArray"
}
],
[
"PriceData",
"HookExecutions",
{
"nth": 32,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "STObject"
"isVLEncoded": false,
"nth": 18,
"type": "STArray"
}
],
[
"Signers",
"HookParameters",
{
"nth": 3,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": false,
"nth": 19,
"type": "STArray"

@@ -2774,8 +2674,8 @@ }

[
"SignerEntries",
"HookGrants",
{
"nth": 4,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 20,
"type": "STArray"

@@ -2785,8 +2685,8 @@ }

[
"Template",
"XChainClaimAttestations",
{
"nth": 5,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 21,
"type": "STArray"

@@ -2796,8 +2696,8 @@ }

[
"Necessary",
"XChainCreateAccountAttestations",
{
"nth": 6,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 22,
"type": "STArray"

@@ -2807,8 +2707,8 @@ }

[
"Sufficient",
"PriceDataSeries",
{
"nth": 7,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 24,
"type": "STArray"

@@ -2818,8 +2718,8 @@ }

[
"AffectedNodes",
"AuthAccounts",
{
"nth": 8,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 25,
"type": "STArray"

@@ -2829,5 +2729,5 @@ }

[
"Memos",
"AuthorizeCredentials",
{
"nth": 9,
"nth": 26,
"isVLEncoded": false,

@@ -2840,5 +2740,5 @@ "isSerialized": true,

[
"NFTokens",
"UnauthorizeCredentials",
{
"nth": 10,
"nth": 27,
"isVLEncoded": false,

@@ -2851,132 +2751,461 @@ "isSerialized": true,

[
"Hooks",
"CloseResolution",
{
"nth": 11,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "UInt8"
}
],
[
"Method",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 2,
"type": "UInt8"
}
],
[
"VoteSlots",
"TransactionResult",
{
"nth": 12,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 3,
"type": "UInt8"
}
],
[
"Scale",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 4,
"type": "UInt8"
}
],
[
"Majorities",
"AssetScale",
{
"nth": 16,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 5,
"type": "UInt8"
}
],
[
"TickSize",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 16,
"type": "UInt8"
}
],
[
"DisabledValidators",
"UNLModifyDisabling",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 17,
"type": "UInt8"
}
],
[
"HookResult",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 18,
"type": "UInt8"
}
],
[
"WasLockingChainSend",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 19,
"type": "UInt8"
}
],
[
"HookExecutions",
"TakerPaysCurrency",
{
"nth": 18,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "Hash160"
}
],
[
"TakerPaysIssuer",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 2,
"type": "Hash160"
}
],
[
"HookParameters",
"TakerGetsCurrency",
{
"nth": 19,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 3,
"type": "Hash160"
}
],
[
"TakerGetsIssuer",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 4,
"type": "Hash160"
}
],
[
"HookGrants",
"Paths",
{
"nth": 20,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "PathSet"
}
],
[
"Indexes",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": true,
"nth": 1,
"type": "Vector256"
}
],
[
"XChainClaimAttestations",
"Hashes",
{
"nth": 21,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 2,
"type": "Vector256"
}
],
[
"Amendments",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 3,
"type": "Vector256"
}
],
[
"NFTokenOffers",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": true,
"nth": 4,
"type": "Vector256"
}
],
[
"CredentialIDs",
{
"nth": 5,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "Vector256"
}
],
[
"MPTokenIssuanceID",
{
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "Hash192"
}
],
[
"LockingChainIssue",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 1,
"type": "Issue"
}
],
[
"XChainCreateAccountAttestations",
"IssuingChainIssue",
{
"nth": 22,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 2,
"type": "Issue"
}
],
[
"Asset",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 3,
"type": "Issue"
}
],
[
"PriceDataSeries",
"Asset2",
{
"nth": 24,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 4,
"type": "Issue"
}
],
[
"XChainBridge",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 1,
"type": "XChainBridge"
}
],
[
"AuthAccounts",
"BaseAsset",
{
"nth": 25,
"isSerialized": true,
"isSigningField": true,
"isVLEncoded": false,
"nth": 1,
"type": "Currency"
}
],
[
"QuoteAsset",
{
"isSerialized": true,
"isSigningField": true,
"type": "STArray"
"isVLEncoded": false,
"nth": 2,
"type": "Currency"
}
],
[
"Transaction",
{
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": 257,
"type": "Transaction"
}
],
[
"LedgerEntry",
{
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": 257,
"type": "LedgerEntry"
}
],
[
"Validation",
{
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": 257,
"type": "Validation"
}
],
[
"Metadata",
{
"isSerialized": false,
"isSigningField": false,
"isVLEncoded": false,
"nth": 257,
"type": "Metadata"
}
]
],
"LEDGER_ENTRY_TYPES": {
"AMM": 121,
"AccountRoot": 97,
"Amendments": 102,
"Bridge": 105,
"Check": 67,
"DID": 73,
"DepositPreauth": 112,
"DirectoryNode": 100,
"Escrow": 117,
"FeeSettings": 115,
"Invalid": -1,
"LedgerHashes": 104,
"MPToken": 127,
"MPTokenIssuance": 126,
"NFTokenOffer": 55,
"NFTokenPage": 80,
"NegativeUNL": 78,
"Offer": 111,
"Oracle": 128,
"Credential": 129,
"PayChannel": 120,
"RippleState": 114,
"SignerList": 83,
"Ticket": 84,
"XChainOwnedClaimID": 113,
"XChainOwnedCreateAccountClaimID": 116
},
"TRANSACTION_RESULTS": {
"telLOCAL_ERROR": -399,
"tecAMM_ACCOUNT": 168,
"tecAMM_BALANCE": 163,
"tecAMM_EMPTY": 166,
"tecAMM_FAILED": 164,
"tecAMM_INVALID_TOKENS": 165,
"tecAMM_NOT_EMPTY": 167,
"tecARRAY_EMPTY": 190,
"tecARRAY_TOO_LARGE": 191,
"tecBAD_CREDENTIALS": 193,
"tecCANT_ACCEPT_OWN_NFTOKEN_OFFER": 158,
"tecCLAIM": 100,
"tecCRYPTOCONDITION_ERROR": 146,
"tecDIR_FULL": 121,
"tecDST_TAG_NEEDED": 143,
"tecDUPLICATE": 149,
"tecEMPTY_DID": 187,
"tecEXPIRED": 148,
"tecFAILED_PROCESSING": 105,
"tecFROZEN": 137,
"tecHAS_OBLIGATIONS": 151,
"tecINCOMPLETE": 169,
"tecINSUFFICIENT_FUNDS": 159,
"tecINSUFFICIENT_PAYMENT": 161,
"tecINSUFFICIENT_RESERVE": 141,
"tecINSUFF_FEE": 136,
"tecINSUF_RESERVE_LINE": 122,
"tecINSUF_RESERVE_OFFER": 123,
"tecINTERNAL": 144,
"tecINVALID_UPDATE_TIME": 188,
"tecINVARIANT_FAILED": 147,
"tecKILLED": 150,
"tecLOCKED": 192,
"tecMAX_SEQUENCE_REACHED": 154,
"tecNEED_MASTER_KEY": 142,
"tecNFTOKEN_BUY_SELL_MISMATCH": 156,
"tecNFTOKEN_OFFER_TYPE_MISMATCH": 157,
"tecNO_ALTERNATIVE_KEY": 130,
"tecNO_AUTH": 134,
"tecNO_DST": 124,
"tecNO_DST_INSUF_XRP": 125,
"tecNO_ENTRY": 140,
"tecNO_ISSUER": 133,
"tecNO_LINE": 135,
"tecNO_LINE_INSUF_RESERVE": 126,
"tecNO_LINE_REDUNDANT": 127,
"tecNO_PERMISSION": 139,
"tecNO_REGULAR_KEY": 131,
"tecNO_SUITABLE_NFTOKEN_PAGE": 155,
"tecNO_TARGET": 138,
"tecOBJECT_NOT_FOUND": 160,
"tecOVERSIZE": 145,
"tecOWNERS": 132,
"tecPATH_DRY": 128,
"tecPATH_PARTIAL": 101,
"tecTOKEN_PAIR_NOT_FOUND": 189,
"tecTOO_SOON": 152,
"tecUNFUNDED": 129,
"tecUNFUNDED_ADD": 102,
"tecUNFUNDED_AMM": 162,
"tecUNFUNDED_OFFER": 103,
"tecUNFUNDED_PAYMENT": 104,
"tecXCHAIN_ACCOUNT_CREATE_PAST": 181,
"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY": 182,
"tecXCHAIN_BAD_CLAIM_ID": 172,
"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 185,
"tecXCHAIN_BAD_TRANSFER_ISSUE": 170,
"tecXCHAIN_CLAIM_NO_QUORUM": 173,
"tecXCHAIN_CREATE_ACCOUNT_DISABLED": 186,
"tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE": 175,
"tecXCHAIN_INSUFF_CREATE_AMOUNT": 180,
"tecXCHAIN_NO_CLAIM_ID": 171,
"tecXCHAIN_NO_SIGNERS_LIST": 178,
"tecXCHAIN_PAYMENT_FAILED": 183,
"tecXCHAIN_PROOF_UNKNOWN_KEY": 174,
"tecXCHAIN_REWARD_MISMATCH": 177,
"tecXCHAIN_SELF_COMMIT": 184,
"tecXCHAIN_SENDING_ACCOUNT_MISMATCH": 179,
"tecXCHAIN_WRONG_CHAIN": 176,
"tefALREADY": -198,
"tefBAD_ADD_AUTH": -197,
"tefBAD_AUTH": -196,
"tefBAD_AUTH_MASTER": -183,
"tefBAD_LEDGER": -195,
"tefBAD_QUORUM": -185,
"tefBAD_SIGNATURE": -186,
"tefCREATED": -194,
"tefEXCEPTION": -193,
"tefFAILURE": -199,
"tefINTERNAL": -192,
"tefINVALID_LEDGER_FIX_TYPE": -178,
"tefINVARIANT_FAILED": -182,
"tefMASTER_DISABLED": -188,
"tefMAX_LEDGER": -187,
"tefNFTOKEN_IS_NOT_TRANSFERABLE": -179,
"tefNOT_MULTI_SIGNING": -184,
"tefNO_AUTH_REQUIRED": -191,
"tefNO_TICKET": -180,
"tefPAST_SEQ": -190,
"tefTOO_BIG": -181,
"tefWRONG_PRIOR": -189,
"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_BLOCKED": -389,
"telCAN_NOT_QUEUE_BLOCKS": -390,
"telCAN_NOT_QUEUE_BLOCKED": -389,
"telCAN_NOT_QUEUE_FEE": -388,
"telCAN_NOT_QUEUE_FULL": -387,
"telENV_RPC_FAILED": -383,
"telFAILED_PROCESSING": -395,
"telINSUF_FEE_P": -394,
"telLOCAL_ERROR": -399,
"telNETWORK_ID_MAKES_TX_NON_CANONICAL": -384,
"telNO_DST_PARTIAL": -393,
"telREQUIRES_NETWORK_ID": -385,
"telWRONG_NETWORK": -386,
"telREQUIRES_NETWORK_ID": -385,
"telNETWORK_ID_MAKES_TX_NON_CANONICAL": -384,
"telENV_RPC_FAILED": -383,
"temMALFORMED": -299,
"temARRAY_EMPTY": -253,
"temARRAY_TOO_LARGE": -252,
"temBAD_AMM_TOKENS": -261,
"temBAD_AMOUNT": -298,

@@ -2988,5 +3217,7 @@ "temBAD_CURRENCY": -297,

"temBAD_LIMIT": -293,
"temBAD_NFTOKEN_TRANSFER_FEE": -262,
"temBAD_OFFER": -292,
"temBAD_PATH": -291,
"temBAD_PATH_LOOP": -290,
"temBAD_QUORUM": -271,
"temBAD_REGKEY": -289,

@@ -3000,202 +3231,131 @@ "temBAD_SEND_XRP_LIMIT": -288,

"temBAD_SIGNATURE": -282,
"temBAD_SIGNER": -272,
"temBAD_SRC_ACCOUNT": -281,
"temBAD_TICK_SIZE": -269,
"temBAD_TRANSFER_FEE": -251,
"temBAD_TRANSFER_RATE": -280,
"temBAD_WEIGHT": -270,
"temCANNOT_PREAUTH_SELF": -267,
"temDISABLED": -273,
"temDST_IS_SRC": -279,
"temDST_NEEDED": -278,
"temEMPTY_DID": -254,
"temINVALID": -277,
"temINVALID_ACCOUNT_ID": -268,
"temINVALID_COUNT": -266,
"temINVALID_FLAG": -276,
"temMALFORMED": -299,
"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,
"temSEQ_AND_TICKET": -263,
"temUNCERTAIN": -265,
"temUNKNOWN": -264,
"temSEQ_AND_TICKET": -263,
"temBAD_NFTOKEN_TRANSFER_FEE": -262,
"temBAD_AMM_TOKENS": -261,
"temXCHAIN_EQUAL_DOOR_ACCOUNTS": -260,
"temXCHAIN_BAD_PROOF": -259,
"temXCHAIN_BRIDGE_BAD_ISSUES": -258,
"temXCHAIN_BRIDGE_NONDOOR_OWNER": -257,
"temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT": -256,
"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -255,
"temEMPTY_DID": -254,
"temARRAY_EMPTY": -253,
"temARRAY_TOO_LARGE": -252,
"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,
"temXCHAIN_BRIDGE_NONDOOR_OWNER": -257,
"temXCHAIN_EQUAL_DOOR_ACCOUNTS": -260,
"terFUNDS_SPENT": -98,
"terINSUF_FEE_B": -97,
"terLAST": -91,
"terNO_ACCOUNT": -96,
"terNO_AMM": -87,
"terNO_AUTH": -95,
"terNO_LINE": -94,
"terNO_RIPPLE": -90,
"terOWNERS": -93,
"terPRE_SEQ": -92,
"terLAST": -91,
"terNO_RIPPLE": -90,
"terPRE_TICKET": -88,
"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,
"tecHOOK_REJECTED": 153,
"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,
"tecUNFUNDED_AMM": 162,
"tecAMM_BALANCE": 163,
"tecAMM_FAILED": 164,
"tecAMM_INVALID_TOKENS": 165,
"tecAMM_EMPTY": 166,
"tecAMM_NOT_EMPTY": 167,
"tecAMM_ACCOUNT": 168,
"tecINCOMPLETE": 169,
"tecXCHAIN_BAD_TRANSFER_ISSUE": 170,
"tecXCHAIN_NO_CLAIM_ID": 171,
"tecXCHAIN_BAD_CLAIM_ID": 172,
"tecXCHAIN_CLAIM_NO_QUORUM": 173,
"tecXCHAIN_PROOF_UNKNOWN_KEY": 174,
"tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE": 175,
"tecXCHAIN_WRONG_CHAIN": 176,
"tecXCHAIN_REWARD_MISMATCH": 177,
"tecXCHAIN_NO_SIGNERS_LIST": 178,
"tecXCHAIN_SENDING_ACCOUNT_MISMATCH": 179,
"tecXCHAIN_INSUFF_CREATE_AMOUNT": 180,
"tecXCHAIN_ACCOUNT_CREATE_PAST": 181,
"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY": 182,
"tecXCHAIN_PAYMENT_FAILED": 183,
"tecXCHAIN_SELF_COMMIT": 184,
"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 185,
"tecXCHAIN_CREATE_ACCOUNT_DISABLED": 186,
"tecEMPTY_DID": 187,
"tecINVALID_UPDATE_TIME": 188,
"tecTOKEN_PAIR_NOT_FOUND": 189,
"tecARRAY_EMPTY": 190,
"tecARRAY_TOO_LARGE": 191
"terRETRY": -99,
"tesSUCCESS": 0
},
"TRANSACTION_TYPES": {
"Invalid": -1,
"Payment": 0,
"AMMBid": 39,
"AMMCreate": 35,
"AMMDelete": 40,
"AMMDeposit": 36,
"AMMVote": 38,
"AMMWithdraw": 37,
"AccountDelete": 21,
"AccountSet": 3,
"CheckCancel": 18,
"CheckCash": 17,
"CheckCreate": 16,
"Clawback": 30,
"CredentialCreate": 58,
"CredentialAccept": 59,
"CredentialDelete": 60,
"DIDDelete": 50,
"DIDSet": 49,
"DepositPreauth": 19,
"EnableAmendment": 100,
"EscrowCancel": 4,
"EscrowCreate": 1,
"EscrowFinish": 2,
"AccountSet": 3,
"EscrowCancel": 4,
"SetRegularKey": 5,
"NickNameSet": 6,
"Invalid": -1,
"LedgerStateFix": 53,
"MPTokenAuthorize": 57,
"MPTokenIssuanceCreate": 54,
"MPTokenIssuanceDestroy": 55,
"MPTokenIssuanceSet": 56,
"NFTokenAcceptOffer": 29,
"NFTokenBurn": 26,
"NFTokenCancelOffer": 28,
"NFTokenCreateOffer": 27,
"NFTokenMint": 25,
"OfferCancel": 8,
"OfferCreate": 7,
"OfferCancel": 8,
"Contract": 9,
"TicketCreate": 10,
"TicketCancel": 11,
"SignerListSet": 12,
"OracleDelete": 52,
"OracleSet": 51,
"Payment": 0,
"PaymentChannelClaim": 15,
"PaymentChannelCreate": 13,
"PaymentChannelFund": 14,
"PaymentChannelClaim": 15,
"CheckCreate": 16,
"CheckCash": 17,
"CheckCancel": 18,
"DepositPreauth": 19,
"SetFee": 101,
"SetRegularKey": 5,
"SignerListSet": 12,
"TicketCreate": 10,
"TrustSet": 20,
"AccountDelete": 21,
"SetHook": 22,
"NFTokenMint": 25,
"NFTokenBurn": 26,
"NFTokenCreateOffer": 27,
"NFTokenCancelOffer": 28,
"NFTokenAcceptOffer": 29,
"Clawback": 30,
"AMMCreate": 35,
"AMMDeposit": 36,
"AMMWithdraw": 37,
"AMMVote": 38,
"AMMBid": 39,
"AMMDelete": 40,
"XChainCreateClaimID": 41,
"XChainCommit": 42,
"XChainClaim": 43,
"UNLModify": 102,
"XChainAccountCreateCommit": 44,
"XChainAddAccountCreateAttestation": 46,
"XChainAddClaimAttestation": 45,
"XChainAddAccountCreateAttestation": 46,
"XChainModifyBridge": 47,
"XChainClaim": 43,
"XChainCommit": 42,
"XChainCreateBridge": 48,
"DIDSet": 49,
"DIDDelete": 50,
"OracleSet": 51,
"OracleDelete": 52,
"EnableAmendment": 100,
"SetFee": 101,
"UNLModify": 102
"XChainCreateClaimID": 41,
"XChainModifyBridge": 47
},
"TYPES": {
"AccountID": 8,
"Amount": 6,
"Blob": 7,
"Currency": 26,
"Done": -1,
"Hash128": 4,
"Hash160": 17,
"Hash192": 21,
"Hash256": 5,
"Issue": 24,
"LedgerEntry": 10002,
"Metadata": 10004,
"NotPresent": 0,
"PathSet": 18,
"STArray": 15,
"STObject": 14,
"Transaction": 10001,
"UInt16": 1,
"UInt32": 2,
"UInt384": 22,
"UInt512": 23,
"UInt64": 3,
"UInt8": 16,
"UInt96": 20,
"Unknown": -2,
"Validation": 10003,
"Vector256": 19,
"XChainBridge": 25
}
}

@@ -9,2 +9,3 @@ import { BinaryParser } from '../serdes/binary-parser'

import { readUInt32BE, writeUInt32BE } from '../utils'
import { Hash192 } from './hash-192'

@@ -20,2 +21,3 @@ /**

const mask = BigInt(0x00000000ffffffff)
const mptMask = BigInt(0x8000000000000000)

@@ -32,6 +34,3 @@ /**

/**
* Interface for JSON objects that represent amounts
*/
interface AmountObject extends JsonObject {
interface AmountObjectIOU extends JsonObject {
value: string

@@ -42,7 +41,18 @@ currency: string

interface AmountObjectMPT extends JsonObject {
value: string
mpt_issuance_id: string
}
/**
* Type guard for AmountObject
* Interface for JSON objects that represent amounts
*/
function isAmountObject(arg): arg is AmountObject {
type AmountObject = AmountObjectIOU | AmountObjectMPT
/**
* Type guard for AmountObjectIOU
*/
function isAmountObjectIOU(arg): arg is AmountObjectIOU {
const keys = Object.keys(arg).sort()
return (

@@ -57,2 +67,13 @@ keys.length === 3 &&

/**
* Type guard for AmountObjectMPT
*/
function isAmountObjectMPT(arg): arg is AmountObjectMPT {
const keys = Object.keys(arg).sort()
return (
keys.length === 2 && keys[0] === 'mpt_issuance_id' && keys[1] === 'value'
)
}
/**
* Class for serializing/Deserializing Amounts

@@ -68,3 +89,3 @@ */

/**
* Construct an amount from an IOU or string amount
* Construct an amount from an IOU, MPT or string amount
*

@@ -97,3 +118,3 @@ * @param value An Amount, object representing an IOU, or a string

if (isAmountObject(value)) {
if (isAmountObjectIOU(value)) {
const number = new BigNumber(value.value)

@@ -134,2 +155,20 @@ Amount.assertIouIsValid(number)

if (isAmountObjectMPT(value)) {
Amount.assertMptIsValid(value.value)
let leadingByte = new Uint8Array(1)
leadingByte[0] |= 0x60
const num = BigInt(value.value)
const intBuf = [new Uint8Array(4), new Uint8Array(4)]
writeUInt32BE(intBuf[0], Number(num >> BigInt(32)), 0)
writeUInt32BE(intBuf[1], Number(num & BigInt(mask)), 0)
amount = concat(intBuf)
const mptIssuanceID = Hash192.from(value.mpt_issuance_id).toBytes()
return new Amount(concat([leadingByte, amount, mptIssuanceID]))
}
throw new Error('Invalid type to construct an Amount')

@@ -145,4 +184,8 @@ }

static fromParser(parser: BinaryParser): Amount {
const isXRP = parser.peek() & 0x80
const numBytes = isXRP ? 48 : 8
const isIOU = parser.peek() & 0x80
if (isIOU) return new Amount(parser.read(48))
// the amount can be either MPT or XRP at this point
const isMPT = parser.peek() & 0x20
const numBytes = isMPT ? 33 : 8
return new Amount(parser.read(numBytes))

@@ -168,3 +211,5 @@ }

return `${sign}${num.toString()}`
} else {
}
if (this.isIOU()) {
const parser = new BinaryParser(this.toString())

@@ -195,2 +240,23 @@ const mantissa = parser.read(8)

}
if (this.isMPT()) {
const parser = new BinaryParser(this.toString())
const leadingByte = parser.read(1)
const amount = parser.read(8)
const mptID = Hash192.fromParser(parser) as Hash192
const isPositive = leadingByte[0] & 0x40
const sign = isPositive ? '' : '-'
const msb = BigInt(readUInt32BE(amount.slice(0, 4), 0))
const lsb = BigInt(readUInt32BE(amount.slice(4), 0))
const num = (msb << BigInt(32)) | lsb
return {
value: `${sign}${num.toString()}`,
mpt_issuance_id: mptID.toString(),
}
}
throw new Error('Invalid amount to construct JSON')
}

@@ -239,2 +305,25 @@

/**
* Validate MPT.value amount
*
* @param decimal BigNumber object representing MPT.value
* @returns void, but will throw if invalid amount
*/
private static assertMptIsValid(amount: string): void {
if (amount.indexOf('.') !== -1) {
throw new Error(`${amount.toString()} is an illegal amount`)
}
const decimal = new BigNumber(amount)
if (!decimal.isZero()) {
if (decimal < BigNumber(0)) {
throw new Error(`${amount.toString()} is an illegal amount`)
}
if (Number(BigInt(amount) & BigInt(mptMask)) != 0) {
throw new Error(`${amount.toString()} is an illegal amount`)
}
}
}
/**
* Ensure that the value after being multiplied by the exponent does not

@@ -263,6 +352,24 @@ * contain a decimal.

private isNative(): boolean {
return (this.bytes[0] & 0x80) === 0
return (this.bytes[0] & 0x80) === 0 && (this.bytes[0] & 0x20) === 0
}
/**
* Test if this amount is in units of MPT
*
* @returns true if MPT
*/
private isMPT(): boolean {
return (this.bytes[0] & 0x80) === 0 && (this.bytes[0] & 0x20) !== 0
}
/**
* Test if this amount is in units of IOU
*
* @returns true if IOU
*/
private isIOU(): boolean {
return (this.bytes[0] & 0x80) !== 0
}
}
export { Amount, AmountObject }

@@ -7,2 +7,3 @@ import { AccountID } from './account-id'

import { Hash160 } from './hash-160'
import { Hash192 } from './hash-192'
import { Hash256 } from './hash-256'

@@ -29,2 +30,3 @@ import { Issue } from './issue'

Hash160,
Hash192,
Hash256,

@@ -56,2 +58,3 @@ Issue,

Hash160,
Hash192,
Hash256,

@@ -58,0 +61,0 @@ PathSet,

@@ -70,3 +70,3 @@ import { BytesList } from '../serdes/binary-serializer'

*/
toJSON(_definitions?: XrplDefinitionsBase): JSON {
toJSON(_definitions?: XrplDefinitionsBase, _fieldName?: string): JSON {
return this.toHex()

@@ -73,0 +73,0 @@ }

@@ -13,2 +13,3 @@ import {

import { STArray } from './st-array'
import { UInt64 } from './uint-64'

@@ -141,2 +142,4 @@ const OBJECT_END_MARKER_BYTE = Uint8Array.from([0xe1])

? STArray.from(xAddressDecoded[field.name], definitions)
: field.type.name === 'UInt64'
? UInt64.from(xAddressDecoded[field.name], field.name)
: field.associatedType.from(xAddressDecoded[field.name])

@@ -187,3 +190,3 @@

.readFieldValue(field)
.toJSON(definitions)
.toJSON(definitions, field.name)
}

@@ -190,0 +193,0 @@

@@ -5,6 +5,16 @@ import { UInt } from './uint'

import { readUInt32BE, writeUInt32BE } from '../utils'
import { DEFAULT_DEFINITIONS, XrplDefinitionsBase } from '../enums'
const HEX_REGEX = /^[a-fA-F0-9]{1,16}$/
const BASE10_REGEX = /^[0-9]{1,20}$/
const mask = BigInt(0x00000000ffffffff)
function useBase10(fieldName: string): boolean {
return (
fieldName === 'MaximumAmount' ||
fieldName === 'OutstandingAmount' ||
fieldName === 'MPTAmount'
)
}
/**

@@ -33,3 +43,6 @@ * Derived UInt class for serializing/deserializing 64 bit UInt

*/
static from<T extends UInt64 | string | bigint | number>(val: T): UInt64 {
static from<T extends UInt64 | string | bigint | number>(
val: T,
fieldName = '',
): UInt64 {
if (val instanceof UInt64) {

@@ -56,7 +69,14 @@ return val

if (typeof val === 'string') {
if (!HEX_REGEX.test(val)) {
if (useBase10(fieldName)) {
if (!BASE10_REGEX.test(val)) {
throw new Error(`${fieldName} ${val} is not a valid base 10 string`)
}
val = BigInt(val).toString(16) as T
}
if (typeof val === 'string' && !HEX_REGEX.test(val)) {
throw new Error(`${val} is not a valid hex-string`)
}
const strBuf = val.padStart(16, '0')
const strBuf = (val as string).padStart(16, '0')
buf = hexToBytes(strBuf)

@@ -82,4 +102,12 @@ return new UInt64(buf)

*/
toJSON(): string {
return bytesToHex(this.bytes)
toJSON(
_definitions: XrplDefinitionsBase = DEFAULT_DEFINITIONS,
fieldName = '',
): string {
const hexString = bytesToHex(this.bytes)
if (useBase10(fieldName)) {
return BigInt('0x' + hexString).toString(10)
}
return hexString
}

@@ -86,0 +114,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet