From 6beccaef68a6e183301c174821c4d4a5c67c291e Mon Sep 17 00:00:00 2001 From: Denis Angell Date: Mon, 19 Jun 2023 16:55:25 +0000 Subject: [PATCH] update ripple-binary-codec --- package.json | 2 +- patches/ripple-binary-codec+1.4.2.patch | 1934 ----------------------- patches/ripple-binary-codec+1.6.0.patch | 346 ++++ yarn.lock | 44 +- 4 files changed, 373 insertions(+), 1953 deletions(-) delete mode 100644 patches/ripple-binary-codec+1.4.2.patch create mode 100644 patches/ripple-binary-codec+1.6.0.patch diff --git a/package.json b/package.json index 07d1018..fc9dc98 100644 --- a/package.json +++ b/package.json @@ -83,6 +83,6 @@ "typescript": "4.4.4" }, "resolutions": { - "ripple-binary-codec": "=1.4.2" + "ripple-binary-codec": "=1.6.0" } } diff --git a/patches/ripple-binary-codec+1.4.2.patch b/patches/ripple-binary-codec+1.4.2.patch deleted file mode 100644 index 8326ad0..0000000 --- a/patches/ripple-binary-codec+1.4.2.patch +++ /dev/null @@ -1,1934 +0,0 @@ -diff --git a/node_modules/ripple-binary-codec/dist/enums/definitions.json b/node_modules/ripple-binary-codec/dist/enums/definitions.json -index 6a82327..717c4ef 100644 ---- a/node_modules/ripple-binary-codec/dist/enums/definitions.json -+++ b/node_modules/ripple-binary-codec/dist/enums/definitions.json -@@ -1,29 +1,32 @@ - { - "TYPES": { -- "Validation": 10003, - "Done": -1, -+ "Unknown": -2, -+ "NotPresent": 0, -+ "UInt16": 1, -+ "UInt32": 2, -+ "UInt64": 3, - "Hash128": 4, -+ "Hash256": 5, -+ "Amount": 6, - "Blob": 7, - "AccountID": 8, -- "Amount": 6, -- "Hash256": 5, -- "UInt8": 16, -- "Vector256": 19, - "STObject": 14, -- "Unknown": -2, -- "Transaction": 10001, -+ "STArray": 15, -+ "UInt8": 16, - "Hash160": 17, - "PathSet": 18, -+ "Vector256": 19, -+ "UInt96": 20, -+ "UInt192": 21, -+ "UInt384": 22, -+ "UInt512": 23, -+ "Transaction": 10001, - "LedgerEntry": 10002, -- "UInt16": 1, -- "NotPresent": 0, -- "UInt64": 3, -- "UInt32": 2, -- "STArray": 15 -+ "Validation": 10003, -+ "Metadata": 10004 - }, - "LEDGER_ENTRY_TYPES": { -- "Any": -3, -- "Child": -2, - "Invalid": -1, - "AccountRoot": 97, - "DirectoryNode": 100, -@@ -36,13 +39,21 @@ - "FeeSettings": 115, - "Escrow": 117, - "PayChannel": 120, -- "DepositPreauth": 112, - "Check": 67, -- "Nickname": 110, -- "Contract": 99, -+ "DepositPreauth": 112, -+ "NegativeUNL": 78, - "NFTokenPage": 80, - "NFTokenOffer": 55, -- "NegativeUNL": 78 -+ "URIToken": 85, -+ "Any": -3, -+ "Child": -2, -+ "Nickname": 110, -+ "Contract": 99, -+ "GeneratorMap": 103, -+ "Hook": 72, -+ "HookState": 118, -+ "HookDefinition": 68, -+ "EmittedTxn": 69 - }, - "FIELDS": [ - [ -@@ -65,6 +76,166 @@ - "type": "Unknown" - } - ], -+ [ -+ "ObjectEndMarker", -+ { -+ "nth": 1, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "STObject" -+ } -+ ], -+ [ -+ "ArrayEndMarker", -+ { -+ "nth": 1, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "STArray" -+ } -+ ], -+ [ -+ "hash", -+ { -+ "nth": 257, -+ "isVLEncoded": false, -+ "isSerialized": false, -+ "isSigningField": false, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "index", -+ { -+ "nth": 258, -+ "isVLEncoded": false, -+ "isSerialized": false, -+ "isSigningField": false, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "taker_gets_funded", -+ { -+ "nth": 258, -+ "isVLEncoded": false, -+ "isSerialized": false, -+ "isSigningField": false, -+ "type": "Amount" -+ } -+ ], -+ [ -+ "taker_pays_funded", -+ { -+ "nth": 259, -+ "isVLEncoded": false, -+ "isSerialized": false, -+ "isSigningField": false, -+ "type": "Amount" -+ } -+ ], -+ [ -+ "LedgerEntry", -+ { -+ "nth": 1, -+ "isVLEncoded": false, -+ "isSerialized": false, -+ "isSigningField": true, -+ "type": "LedgerEntry" -+ } -+ ], -+ [ -+ "Transaction", -+ { -+ "nth": 1, -+ "isVLEncoded": false, -+ "isSerialized": false, -+ "isSigningField": true, -+ "type": "Transaction" -+ } -+ ], -+ [ -+ "Validation", -+ { -+ "nth": 1, -+ "isVLEncoded": false, -+ "isSerialized": false, -+ "isSigningField": true, -+ "type": "Validation" -+ } -+ ], -+ [ -+ "Metadata", -+ { -+ "nth": 1, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Metadata" -+ } -+ ], -+ [ -+ "CloseResolution", -+ { -+ "nth": 1, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt8" -+ } -+ ], -+ [ -+ "Method", -+ { -+ "nth": 2, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt8" -+ } -+ ], -+ [ -+ "TransactionResult", -+ { -+ "nth": 3, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt8" -+ } -+ ], -+ [ -+ "TickSize", -+ { -+ "nth": 16, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt8" -+ } -+ ], -+ [ -+ "UNLModifyDisabling", -+ { -+ "nth": 17, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt8" -+ } -+ ], -+ [ -+ "HookResult", -+ { -+ "nth": 18, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt8" -+ } -+ ], - [ - "LedgerEntryType", - { -@@ -105,6 +276,66 @@ - "type": "UInt16" - } - ], -+ [ -+ "Version", -+ { -+ "nth": 16, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt16" -+ } -+ ], -+ [ -+ "HookStateChangeCount", -+ { -+ "nth": 17, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt16" -+ } -+ ], -+ [ -+ "HookEmitCount", -+ { -+ "nth": 18, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt16" -+ } -+ ], -+ [ -+ "HookExecutionIndex", -+ { -+ "nth": 19, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt16" -+ } -+ ], -+ [ -+ "HookApiVersion", -+ { -+ "nth": 20, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt16" -+ } -+ ], -+ [ -+ "NetworkID", -+ { -+ "nth": 1, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt32" -+ } -+ ], - [ - "Flags", - { -@@ -456,27 +687,147 @@ - } - ], - [ -- "IndexNext", -+ "SignerListID", - { -- "nth": 1, -+ "nth": 38, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt64" -+ "type": "UInt32" - } - ], - [ -- "IndexPrevious", -+ "SettleDelay", - { -- "nth": 2, -+ "nth": 39, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt64" -+ "type": "UInt32" - } - ], - [ -- "BookNode", -+ "TicketCount", -+ { -+ "nth": 40, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt32" -+ } -+ ], -+ [ -+ "TicketSequence", -+ { -+ "nth": 41, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt32" -+ } -+ ], -+ [ -+ "NFTokenTaxon", -+ { -+ "nth": 42, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt32" -+ } -+ ], -+ [ -+ "MintedNFTokens", -+ { -+ "nth": 43, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt32" -+ } -+ ], -+ [ -+ "BurnedNFTokens", -+ { -+ "nth": 44, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt32" -+ } -+ ], -+ [ -+ "HookStateCount", -+ { -+ "nth": 45, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt32" -+ } -+ ], -+ [ -+ "EmitGeneration", -+ { -+ "nth": 46, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt32" -+ } -+ ], -+ [ -+ "LockCount", -+ { -+ "nth": 49, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt32" -+ } -+ ], -+ [ -+ "FirstNFTokenSequence", -+ { -+ "nth": 50, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt32" -+ } -+ ], -+ [ -+ "ImportSequence", -+ { -+ "nth": 97, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt32" -+ } -+ ], -+ [ -+ "IndexNext", -+ { -+ "nth": 1, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt64" -+ } -+ ], -+ [ -+ "IndexPrevious", -+ { -+ "nth": 2, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt64" -+ } -+ ], -+ [ -+ "BookNode", - { - "nth": 3, - "isVLEncoded": false, -@@ -535,6 +886,86 @@ - "type": "UInt64" - } - ], -+ [ -+ "DestinationNode", -+ { -+ "nth": 9, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt64" -+ } -+ ], -+ [ -+ "Cookie", -+ { -+ "nth": 10, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt64" -+ } -+ ], -+ [ -+ "ServerVersion", -+ { -+ "nth": 11, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt64" -+ } -+ ], -+ [ -+ "NFTokenOfferNode", -+ { -+ "nth": 12, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt64" -+ } -+ ], -+ [ -+ "EmitBurden", -+ { -+ "nth": 13, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt64" -+ } -+ ], -+ [ -+ "HookInstructionCount", -+ { -+ "nth": 17, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt64" -+ } -+ ], -+ [ -+ "HookReturnCode", -+ { -+ "nth": 18, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt64" -+ } -+ ], -+ [ -+ "ReferenceCount", -+ { -+ "nth": 19, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "UInt64" -+ } -+ ], - [ - "EmailHash", - { -@@ -545,6 +976,46 @@ - "type": "Hash128" - } - ], -+ [ -+ "TakerPaysCurrency", -+ { -+ "nth": 1, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash160" -+ } -+ ], -+ [ -+ "TakerPaysIssuer", -+ { -+ "nth": 2, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash160" -+ } -+ ], -+ [ -+ "TakerGetsCurrency", -+ { -+ "nth": 3, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash160" -+ } -+ ], -+ [ -+ "TakerGetsIssuer", -+ { -+ "nth": 4, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash160" -+ } -+ ], - [ - "LedgerHash", - { -@@ -645,6 +1116,36 @@ - "type": "Hash256" - } - ], -+ [ -+ "EmitParentTxnID", -+ { -+ "nth": 11, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "EmitNonce", -+ { -+ "nth": 12, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "EmitHookHash", -+ { -+ "nth": 13, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash256" -+ } -+ ], - [ - "BookDirectory", - { -@@ -686,7 +1187,7 @@ - } - ], - [ -- "TicketID", -+ "HookOn", - { - "nth": 20, - "isVLEncoded": false, -@@ -706,22 +1207,152 @@ - } - ], - [ -- "hash", -+ "Channel", - { -- "nth": 257, -+ "nth": 22, - "isVLEncoded": false, -- "isSerialized": false, -- "isSigningField": false, -+ "isSerialized": true, -+ "isSigningField": true, - "type": "Hash256" - } - ], - [ -- "index", -+ "ConsensusHash", - { -- "nth": 258, -+ "nth": 23, - "isVLEncoded": false, -- "isSerialized": false, -- "isSigningField": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "CheckID", -+ { -+ "nth": 24, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "ValidatedHash", -+ { -+ "nth": 25, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "PreviousPageMin", -+ { -+ "nth": 26, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "NextPageMin", -+ { -+ "nth": 27, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "NFTokenBuyOffer", -+ { -+ "nth": 28, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "NFTokenSellOffer", -+ { -+ "nth": 29, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "HookStateKey", -+ { -+ "nth": 30, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "HookHash", -+ { -+ "nth": 31, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "HookNamespace", -+ { -+ "nth": 32, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "HookSetTxnID", -+ { -+ "nth": 33, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "OfferID", -+ { -+ "nth": 34, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "EscrowID", -+ { -+ "nth": 35, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Hash256" -+ } -+ ], -+ [ -+ "URITokenID", -+ { -+ "nth": 36, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, - "type": "Hash256" - } - ], -@@ -826,9 +1457,39 @@ - } - ], - [ -- "MinimumOffer", -+ "MinimumOffer", -+ { -+ "nth": 16, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Amount" -+ } -+ ], -+ [ -+ "RippleEscrow", -+ { -+ "nth": 17, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Amount" -+ } -+ ], -+ [ -+ "DeliveredAmount", -+ { -+ "nth": 18, -+ "isVLEncoded": false, -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "Amount" -+ } -+ ], -+ [ -+ "NFTokenBrokerFee", - { -- "nth": 16, -+ "nth": 19, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -@@ -836,9 +1497,9 @@ - } - ], - [ -- "RippleEscrow", -+ "HookCallbackFee", - { -- "nth": 17, -+ "nth": 20, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -@@ -846,9 +1507,9 @@ - } - ], - [ -- "DeliveredAmount", -+ "LockedBalance", - { -- "nth": 18, -+ "nth": 21, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -@@ -856,9 +1517,9 @@ - } - ], - [ -- "NFTokenBrokerFee", -+ "BaseFeeDrops", - { -- "nth": 19, -+ "nth": 22, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -@@ -866,22 +1527,22 @@ - } - ], - [ -- "taker_gets_funded", -+ "ReserveBaseDrops", - { -- "nth": 258, -+ "nth": 23, - "isVLEncoded": false, -- "isSerialized": false, -- "isSigningField": false, -+ "isSerialized": true, -+ "isSigningField": true, - "type": "Amount" - } - ], - [ -- "taker_pays_funded", -+ "ReserveIncrementDrops", - { -- "nth": 259, -+ "nth": 24, - "isVLEncoded": false, -- "isSerialized": false, -- "isSigningField": false, -+ "isSerialized": true, -+ "isSigningField": true, - "type": "Amount" - } - ], -@@ -1086,59 +1747,59 @@ - } - ], - [ -- "Account", -+ "HookStateData", - { -- "nth": 1, -+ "nth": 22, - "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -- "type": "AccountID" -+ "type": "Blob" - } - ], - [ -- "Owner", -+ "HookReturnString", - { -- "nth": 2, -+ "nth": 23, - "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -- "type": "AccountID" -+ "type": "Blob" - } - ], - [ -- "Destination", -+ "HookParameterName", - { -- "nth": 3, -+ "nth": 24, - "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -- "type": "AccountID" -+ "type": "Blob" - } - ], - [ -- "Issuer", -+ "HookParameterValue", - { -- "nth": 4, -+ "nth": 25, - "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -- "type": "AccountID" -+ "type": "Blob" - } - ], - [ -- "Authorize", -+ "Blob", - { -- "nth": 5, -+ "nth": 26, - "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -- "type": "AccountID" -+ "type": "Blob" - } - ], - [ -- "Unauthorize", -+ "Account", - { -- "nth": 6, -+ "nth": 1, - "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -@@ -1146,9 +1807,9 @@ - } - ], - [ -- "Target", -+ "Owner", - { -- "nth": 7, -+ "nth": 2, - "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -@@ -1156,9 +1817,9 @@ - } - ], - [ -- "RegularKey", -+ "Destination", - { -- "nth": 8, -+ "nth": 3, - "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -@@ -1166,9 +1827,9 @@ - } - ], - [ -- "NFTokenMinter", -+ "Issuer", - { -- "nth": 9, -+ "nth": 4, - "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -@@ -1176,623 +1837,473 @@ - } - ], - [ -- "ObjectEndMarker", -- { -- "nth": 1, -- "isVLEncoded": false, -- "isSerialized": true, -- "isSigningField": true, -- "type": "STObject" -- } -- ], -- [ -- "TransactionMetaData", -- { -- "nth": 2, -- "isVLEncoded": false, -- "isSerialized": true, -- "isSigningField": true, -- "type": "STObject" -- } -- ], -- [ -- "CreatedNode", -- { -- "nth": 3, -- "isVLEncoded": false, -- "isSerialized": true, -- "isSigningField": true, -- "type": "STObject" -- } -- ], -- [ -- "DeletedNode", -- { -- "nth": 4, -- "isVLEncoded": false, -- "isSerialized": true, -- "isSigningField": true, -- "type": "STObject" -- } -- ], -- [ -- "ModifiedNode", -+ "Authorize", - { - "nth": 5, -- "isVLEncoded": false, -+ "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -- "type": "STObject" -+ "type": "AccountID" - } - ], - [ -- "PreviousFields", -+ "Unauthorize", - { - "nth": 6, -- "isVLEncoded": false, -- "isSerialized": true, -- "isSigningField": true, -- "type": "STObject" -- } -- ], -- [ -- "FinalFields", -- { -- "nth": 7, -- "isVLEncoded": false, -+ "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -- "type": "STObject" -+ "type": "AccountID" - } - ], - [ -- "NewFields", -+ "RegularKey", - { - "nth": 8, -- "isVLEncoded": false, -+ "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -- "type": "STObject" -+ "type": "AccountID" - } - ], - [ -- "TemplateEntry", -+ "NFTokenMinter", - { - "nth": 9, -- "isVLEncoded": false, -+ "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -- "type": "STObject" -+ "type": "AccountID" - } - ], - [ -- "Memo", -+ "EmitCallback", - { - "nth": 10, -- "isVLEncoded": false, -- "isSerialized": true, -- "isSigningField": true, -- "type": "STObject" -- } -- ], -- [ -- "SignerEntry", -- { -- "nth": 11, -- "isVLEncoded": false, -- "isSerialized": true, -- "isSigningField": true, -- "type": "STObject" -- } -- ], -- [ -- "NFToken", -- { -- "nth": 12, -- "isVLEncoded": false, -+ "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -- "type": "STObject" -+ "type": "AccountID" - } - ], - [ -- "Signer", -+ "HookAccount", - { - "nth": 16, -- "isVLEncoded": false, -- "isSerialized": true, -- "isSigningField": true, -- "type": "STObject" -- } -- ], -- [ -- "Majority", -- { -- "nth": 18, -- "isVLEncoded": false, -- "isSerialized": true, -- "isSigningField": true, -- "type": "STObject" -- } -- ], -- [ -- "DisabledValidator", -- { -- "nth": 19, -- "isVLEncoded": false, -+ "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -- "type": "STObject" -+ "type": "AccountID" - } - ], - [ -- "ArrayEndMarker", -+ "Indexes", - { - "nth": 1, -- "isVLEncoded": false, -- "isSerialized": true, -- "isSigningField": true, -- "type": "STArray" -- } -- ], -- [ -- "Signers", -- { -- "nth": 3, -- "isVLEncoded": false, -- "isSerialized": true, -- "isSigningField": false, -- "type": "STArray" -- } -- ], -- [ -- "SignerEntries", -- { -- "nth": 4, -- "isVLEncoded": false, -- "isSerialized": true, -- "isSigningField": true, -- "type": "STArray" -- } -- ], -- [ -- "Template", -- { -- "nth": 5, -- "isVLEncoded": false, -- "isSerialized": true, -- "isSigningField": true, -- "type": "STArray" -- } -- ], -- [ -- "Necessary", -- { -- "nth": 6, -- "isVLEncoded": false, -- "isSerialized": true, -- "isSigningField": true, -- "type": "STArray" -- } -- ], -- [ -- "Sufficient", -- { -- "nth": 7, -- "isVLEncoded": false, -- "isSerialized": true, -- "isSigningField": true, -- "type": "STArray" -- } -- ], -- [ -- "AffectedNodes", -- { -- "nth": 8, -- "isVLEncoded": false, -+ "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -- "type": "STArray" -+ "type": "Vector256" - } - ], - [ -- "Memos", -+ "Hashes", - { -- "nth": 9, -- "isVLEncoded": false, -+ "nth": 2, -+ "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -- "type": "STArray" -+ "type": "Vector256" - } - ], - [ -- "NFTokens", -+ "Amendments", - { -- "nth": 10, -- "isVLEncoded": false, -+ "nth": 3, -+ "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -- "type": "STArray" -+ "type": "Vector256" - } - ], - [ -- "Majorities", -+ "NFTokenOffers", - { -- "nth": 16, -- "isVLEncoded": false, -+ "nth": 4, -+ "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -- "type": "STArray" -+ "type": "Vector256" - } - ], - [ -- "DisabledValidators", -+ "HookNamespaces", - { -- "nth": 17, -- "isVLEncoded": false, -+ "nth": 5, -+ "isVLEncoded": true, - "isSerialized": true, - "isSigningField": true, -- "type": "STArray" -+ "type": "Vector256" - } - ], - [ -- "CloseResolution", -+ "Paths", - { - "nth": 1, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt8" -+ "type": "PathSet" - } - ], - [ -- "Method", -+ "TransactionMetaData", - { - "nth": 2, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt8" -+ "type": "STObject" - } - ], - [ -- "TransactionResult", -+ "CreatedNode", - { - "nth": 3, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt8" -+ "type": "STObject" - } - ], - [ -- "TakerPaysCurrency", -+ "DeletedNode", - { -- "nth": 1, -+ "nth": 4, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "Hash160" -+ "type": "STObject" - } - ], - [ -- "TakerPaysIssuer", -+ "ModifiedNode", - { -- "nth": 2, -+ "nth": 5, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "Hash160" -+ "type": "STObject" - } - ], - [ -- "TakerGetsCurrency", -+ "PreviousFields", - { -- "nth": 3, -+ "nth": 6, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "Hash160" -+ "type": "STObject" - } - ], - [ -- "TakerGetsIssuer", -+ "FinalFields", - { -- "nth": 4, -+ "nth": 7, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "Hash160" -+ "type": "STObject" - } - ], - [ -- "Paths", -+ "NewFields", - { -- "nth": 1, -+ "nth": 8, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "PathSet" -+ "type": "STObject" - } - ], - [ -- "Indexes", -+ "TemplateEntry", - { -- "nth": 1, -- "isVLEncoded": true, -+ "nth": 9, -+ "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "Vector256" -+ "type": "STObject" - } - ], - [ -- "Hashes", -+ "Memo", - { -- "nth": 2, -- "isVLEncoded": true, -+ "nth": 10, -+ "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "Vector256" -+ "type": "STObject" - } - ], - [ -- "Amendments", -+ "SignerEntry", - { -- "nth": 3, -- "isVLEncoded": true, -+ "nth": 11, -+ "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "Vector256" -+ "type": "STObject" - } - ], - [ -- "NFTokenOffers", -+ "NFToken", - { -- "nth": 4, -- "isVLEncoded": true, -+ "nth": 12, -+ "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "Vector256" -+ "type": "STObject" - } - ], - [ -- "Transaction", -+ "EmitDetails", - { -- "nth": 1, -+ "nth": 13, - "isVLEncoded": false, -- "isSerialized": false, -- "isSigningField": false, -- "type": "Transaction" -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "STObject" - } - ], - [ -- "LedgerEntry", -+ "Hook", - { -- "nth": 1, -+ "nth": 14, - "isVLEncoded": false, -- "isSerialized": false, -- "isSigningField": false, -- "type": "LedgerEntry" -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "STObject" - } - ], - [ -- "Validation", -+ "Signer", - { -- "nth": 1, -+ "nth": 16, - "isVLEncoded": false, -- "isSerialized": false, -- "isSigningField": false, -- "type": "Validation" -+ "isSerialized": true, -+ "isSigningField": true, -+ "type": "STObject" - } - ], - [ -- "SignerListID", -+ "Majority", - { -- "nth": 38, -+ "nth": 18, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt32" -+ "type": "STObject" - } - ], - [ -- "SettleDelay", -+ "DisabledValidator", - { -- "nth": 39, -+ "nth": 19, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt32" -+ "type": "STObject" - } - ], - [ -- "TicketCount", -+ "EmittedTxn", - { -- "nth": 40, -+ "nth": 20, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt32" -+ "type": "STObject" - } - ], - [ -- "TicketSequence", -+ "HookExecution", - { -- "nth": 41, -+ "nth": 21, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt32" -+ "type": "STObject" - } - ], - [ -- "NFTokenTaxon", -+ "HookDefinition", - { -- "nth": 42, -+ "nth": 22, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt32" -+ "type": "STObject" - } - ], - [ -- "MintedNFTokens", -+ "HookParameter", - { -- "nth": 43, -+ "nth": 23, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt32" -+ "type": "STObject" - } - ], - [ -- "BurnedNFTokens", -+ "HookGrant", - { -- "nth": 44, -+ "nth": 24, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt32" -+ "type": "STObject" - } - ], - [ -- "Channel", -+ "Signers", - { -- "nth": 22, -+ "nth": 3, - "isVLEncoded": false, - "isSerialized": true, -- "isSigningField": true, -- "type": "Hash256" -+ "isSigningField": false, -+ "type": "STArray" - } - ], - [ -- "ConsensusHash", -+ "SignerEntries", - { -- "nth": 23, -+ "nth": 4, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "Hash256" -+ "type": "STArray" - } - ], - [ -- "CheckID", -+ "Template", - { -- "nth": 24, -+ "nth": 5, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "Hash256" -+ "type": "STArray" - } - ], - [ -- "ValidatedHash", -+ "Necessary", - { -- "nth": 25, -+ "nth": 6, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "Hash256" -+ "type": "STArray" - } - ], - [ -- "PreviousPageMin", -+ "Sufficient", - { -- "nth": 26, -+ "nth": 7, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "Hash256" -+ "type": "STArray" - } - ], - [ -- "NextPageMin", -+ "AffectedNodes", - { -- "nth": 27, -+ "nth": 8, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "Hash256" -+ "type": "STArray" - } - ], - [ -- "NFTokenBuyOffer", -+ "Memos", - { -- "nth": 28, -+ "nth": 9, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "Hash256" -+ "type": "STArray" - } - ], - [ -- "NFTokenSellOffer", -+ "NFTokens", - { -- "nth": 29, -+ "nth": 10, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "Hash256" -+ "type": "STArray" - } - ], - [ -- "TickSize", -+ "Hooks", - { -- "nth": 16, -+ "nth": 11, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt8" -+ "type": "STArray" - } - ], - [ -- "UNLModifyDisabling", -+ "Majorities", - { -- "nth": 17, -+ "nth": 16, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt8" -+ "type": "STArray" - } - ], - [ -- "DestinationNode", -+ "DisabledValidators", - { -- "nth": 9, -+ "nth": 17, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt64" -+ "type": "STArray" - } - ], - [ -- "Cookie", -+ "HookExecutions", - { -- "nth": 10, -+ "nth": 18, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt64" -+ "type": "STArray" - } - ], - [ -- "ServerVersion", -+ "HookParameters", - { -- "nth": 11, -+ "nth": 19, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt64" -+ "type": "STArray" - } - ], - [ -- "NFTokenOfferNode", -+ "HookGrants", - { -- "nth": 12, -+ "nth": 20, - "isVLEncoded": false, - "isSerialized": true, - "isSigningField": true, -- "type": "UInt64" -+ "type": "STArray" - } - ] - ], -@@ -1810,6 +2321,12 @@ - "telCAN_NOT_QUEUE_BLOCKED": -389, - "telCAN_NOT_QUEUE_FEE": -388, - "telCAN_NOT_QUEUE_FULL": -387, -+ "telWRONG_NETWORK": -386, -+ "telREQUIRES_NETWORK_ID": -385, -+ "telNETWORK_ID_MAKES_TX_NON_CANONICAL": -384, -+ "telNON_LOCAL_EMITTED_TXN": -383, -+ "telIMPORT_VL_KEY_NOT_RECOGNISED": -382, -+ "telCAN_NOT_QUEUE_IMPORT": -381, - - "temMALFORMED": -299, - "temBAD_AMOUNT": -298, -@@ -1844,10 +2361,21 @@ - "temBAD_TICK_SIZE": -269, - "temINVALID_ACCOUNT_ID": -268, - "temCANNOT_PREAUTH_SELF": -267, -- "temUNCERTAIN": -266, -- "temUNKNOWN": -265, -- "temSEQ_AND_TICKET": -264, -- "temBAD_NFTOKEN_TRANSFER_FEE": -263, -+ "temINVALID_COUNT": -266, -+ "temUNCERTAIN": -265, -+ "temUNKNOWN": -264, -+ "temSEQ_AND_TICKET": -263, -+ "temBAD_NFTOKEN_TRANSFER_FEE": -262, -+ "temAMM_BAD_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, -+ "temXCHAIN_TOO_MANY_ATTESTATIONS": -254, -+ "temHOOK_DATA_TOO_LARGE": -253, -+ "temHOOK_REJECTED": -252, - - "tefFAILURE": -199, - "tefALREADY": -198, -@@ -1870,6 +2398,7 @@ - "tefTOO_BIG": -181, - "tefNO_TICKET": -180, - "tefNFTOKEN_IS_NOT_TRANSFERABLE": -179, -+ "tefPAST_IMPORT_SEQ": -178, - - "terRETRY": -99, - "terFUNDS_SPENT": -98, -@@ -1883,6 +2412,8 @@ - "terNO_RIPPLE": -90, - "terQUEUED": -89, - "terPRE_TICKET": -88, -+ "terNO_AMM": -87, -+ "terNO_HOOK": -86, - - "tesSUCCESS": 0, - -@@ -1924,7 +2455,7 @@ - "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, -@@ -1933,12 +2464,35 @@ - "tecINSUFFICIENT_FUNDS": 159, - "tecOBJECT_NOT_FOUND": 160, - "tecINSUFFICIENT_PAYMENT": 161, -- "tecINCORRECT_ASSET": 162, -- "tecTOO_MANY": 163 -+ "tecAMM_UNFUNDED": 162, -+ "tecAMM_BALANCE": 163, -+ "tecAMM_FAILED_DEPOSIT": 164, -+ "tecAMM_FAILED_WITHDRAW": 165, -+ "tecAMM_INVALID_TOKENS": 166, -+ "tecAMM_FAILED_BID": 167, -+ "tecAMM_FAILED_VOTE": 168, -+ "tecREQUIRES_FLAG": 169, -+ "tecPRECISION_LOSS": 170, -+ "tecBAD_XCHAIN_TRANSFER_ISSUE": 171, -+ "tecXCHAIN_NO_CLAIM_ID": 172, -+ "tecXCHAIN_BAD_CLAIM_ID": 173, -+ "tecXCHAIN_CLAIM_NO_QUORUM": 174, -+ "tecXCHAIN_PROOF_UNKNOWN_KEY": 175, -+ "tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE": 176, -+ "tecXCHAIN_WRONG_CHAIN": 177, -+ "tecXCHAIN_REWARD_MISMATCH": 178, -+ "tecXCHAIN_NO_SIGNERS_LIST": 179, -+ "tecXCHAIN_SENDING_ACCOUNT_MISMATCH": 180, -+ "tecXCHAIN_INSUFF_CREATE_AMOUNT": 181, -+ "tecXCHAIN_ACCOUNT_CREATE_PAST": 182, -+ "tecXCHAIN_ACCOUNT_CREATE_TOO_MANY": 183, -+ "tecXCHAIN_PAYMENT_FAILED": 184, -+ "tecXCHAIN_SELF_COMMIT": 185, -+ "tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 186, -+ "tecLAST_POSSIBLE_ENTRY": 255 - }, - "TRANSACTION_TYPES": { - "Invalid": -1, -- - "Payment": 0, - "EscrowCreate": 1, - "EscrowFinish": 2, -@@ -1961,13 +2515,22 @@ - "DepositPreauth": 19, - "TrustSet": 20, - "AccountDelete": 21, -+ "SetHook": 22, - "NFTokenMint": 25, - "NFTokenBurn": 26, - "NFTokenCreateOffer": 27, - "NFTokenCancelOffer": 28, - "NFTokenAcceptOffer": 29, -+ "URITokenMint": 45, -+ "URITokenBurn": 46, -+ "URITokenBuy": 47, -+ "URITokenCreateSellOffer": 48, -+ "URITokenCancelSellOffer": 49, -+ "Import": 97, -+ "Invoke": 99, - "EnableAmendment": 100, - "SetFee": 101, -- "UNLModify": 102 -+ "UNLModify": 102, -+ "EmitFailure": 103 - } - } diff --git a/patches/ripple-binary-codec+1.6.0.patch b/patches/ripple-binary-codec+1.6.0.patch new file mode 100644 index 0000000..5684990 --- /dev/null +++ b/patches/ripple-binary-codec+1.6.0.patch @@ -0,0 +1,346 @@ +diff --git a/node_modules/ripple-binary-codec/dist/enums/definitions.json b/node_modules/ripple-binary-codec/dist/enums/definitions.json +index e623376..7e1e4d5 100644 +--- a/node_modules/ripple-binary-codec/dist/enums/definitions.json ++++ b/node_modules/ripple-binary-codec/dist/enums/definitions.json +@@ -44,11 +44,16 @@ + "NegativeUNL": 78, + "NFTokenPage": 80, + "NFTokenOffer": 55, ++ "URIToken": 85, + "Any": -3, + "Child": -2, + "Nickname": 110, + "Contract": 99, +- "GeneratorMap": 103 ++ "GeneratorMap": 103, ++ "Hook": 72, ++ "HookState": 118, ++ "HookDefinition": 68, ++ "EmittedTxn": 69 + }, + "FIELDS": [ + [ +@@ -321,6 +326,16 @@ + "type": "UInt16" + } + ], ++ [ ++ "NetworkID", ++ { ++ "nth": 1, ++ "isVLEncoded": false, ++ "isSerialized": true, ++ "isSigningField": true, ++ "type": "UInt32" ++ } ++ ], + [ + "Flags", + { +@@ -761,6 +776,36 @@ + "type": "UInt32" + } + ], ++ [ ++ "LockCount", ++ { ++ "nth": 49, ++ "isVLEncoded": false, ++ "isSerialized": true, ++ "isSigningField": true, ++ "type": "UInt32" ++ } ++ ], ++ [ ++ "FirstNFTokenSequence", ++ { ++ "nth": 50, ++ "isVLEncoded": false, ++ "isSerialized": true, ++ "isSigningField": true, ++ "type": "UInt32" ++ } ++ ], ++ [ ++ "ImportSequence", ++ { ++ "nth": 97, ++ "isVLEncoded": false, ++ "isSerialized": true, ++ "isSigningField": true, ++ "type": "UInt32" ++ } ++ ], + [ + "IndexNext", + { +@@ -891,16 +936,6 @@ + "type": "UInt64" + } + ], +- [ +- "HookOn", +- { +- "nth": 16, +- "isVLEncoded": false, +- "isSerialized": true, +- "isSigningField": true, +- "type": "UInt64" +- } +- ], + [ + "HookInstructionCount", + { +@@ -1151,6 +1186,16 @@ + "type": "Hash256" + } + ], ++ [ ++ "HookOn", ++ { ++ "nth": 20, ++ "isVLEncoded": false, ++ "isSerialized": true, ++ "isSigningField": true, ++ "type": "Hash256" ++ } ++ ], + [ + "Digest", + { +@@ -1281,6 +1326,36 @@ + "type": "Hash256" + } + ], ++ [ ++ "OfferID", ++ { ++ "nth": 34, ++ "isVLEncoded": false, ++ "isSerialized": true, ++ "isSigningField": true, ++ "type": "Hash256" ++ } ++ ], ++ [ ++ "EscrowID", ++ { ++ "nth": 35, ++ "isVLEncoded": false, ++ "isSerialized": true, ++ "isSigningField": true, ++ "type": "Hash256" ++ } ++ ], ++ [ ++ "URITokenID", ++ { ++ "nth": 36, ++ "isVLEncoded": false, ++ "isSerialized": true, ++ "isSigningField": true, ++ "type": "Hash256" ++ } ++ ], + [ + "Amount", + { +@@ -1421,6 +1496,56 @@ + "type": "Amount" + } + ], ++ [ ++ "HookCallbackFee", ++ { ++ "nth": 20, ++ "isVLEncoded": false, ++ "isSerialized": true, ++ "isSigningField": true, ++ "type": "Amount" ++ } ++ ], ++ [ ++ "LockedBalance", ++ { ++ "nth": 21, ++ "isVLEncoded": false, ++ "isSerialized": true, ++ "isSigningField": true, ++ "type": "Amount" ++ } ++ ], ++ [ ++ "BaseFeeDrops", ++ { ++ "nth": 22, ++ "isVLEncoded": false, ++ "isSerialized": true, ++ "isSigningField": true, ++ "type": "Amount" ++ } ++ ], ++ [ ++ "ReserveBaseDrops", ++ { ++ "nth": 23, ++ "isVLEncoded": false, ++ "isSerialized": true, ++ "isSigningField": true, ++ "type": "Amount" ++ } ++ ], ++ [ ++ "ReserveIncrementDrops", ++ { ++ "nth": 24, ++ "isVLEncoded": false, ++ "isSerialized": true, ++ "isSigningField": true, ++ "type": "Amount" ++ } ++ ], + [ + "PublicKey", + { +@@ -1661,6 +1786,16 @@ + "type": "Blob" + } + ], ++ [ ++ "Blob", ++ { ++ "nth": 26, ++ "isVLEncoded": true, ++ "isSerialized": true, ++ "isSigningField": true, ++ "type": "Blob" ++ } ++ ], + [ + "Account", + { +@@ -1801,6 +1936,16 @@ + "type": "Vector256" + } + ], ++ [ ++ "HookNamespaces", ++ { ++ "nth": 5, ++ "isVLEncoded": true, ++ "isSerialized": true, ++ "isSigningField": true, ++ "type": "Vector256" ++ } ++ ], + [ + "Paths", + { +@@ -2176,6 +2321,12 @@ + "telCAN_NOT_QUEUE_BLOCKED": -389, + "telCAN_NOT_QUEUE_FEE": -388, + "telCAN_NOT_QUEUE_FULL": -387, ++ "telWRONG_NETWORK": -386, ++ "telREQUIRES_NETWORK_ID": -385, ++ "telNETWORK_ID_MAKES_TX_NON_CANONICAL": -384, ++ "telNON_LOCAL_EMITTED_TXN": -383, ++ "telIMPORT_VL_KEY_NOT_RECOGNISED": -382, ++ "telCAN_NOT_QUEUE_IMPORT": -381, + "temMALFORMED": -299, + "temBAD_AMOUNT": -298, + "temBAD_CURRENCY": -297, +@@ -2214,6 +2365,16 @@ + "temUNKNOWN": -264, + "temSEQ_AND_TICKET": -263, + "temBAD_NFTOKEN_TRANSFER_FEE": -262, ++ "temAMM_BAD_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, ++ "temXCHAIN_TOO_MANY_ATTESTATIONS": -254, ++ "temHOOK_DATA_TOO_LARGE": -253, ++ "temHOOK_REJECTED": -252, + "tefFAILURE": -199, + "tefALREADY": -198, + "tefBAD_ADD_AUTH": -197, +@@ -2235,6 +2396,7 @@ + "tefTOO_BIG": -181, + "tefNO_TICKET": -180, + "tefNFTOKEN_IS_NOT_TRANSFERABLE": -179, ++ "tefPAST_IMPORT_SEQ": -178, + "terRETRY": -99, + "terFUNDS_SPENT": -98, + "terINSUF_FEE_B": -97, +@@ -2247,6 +2409,8 @@ + "terNO_RIPPLE": -90, + "terQUEUED": -89, + "terPRE_TICKET": -88, ++ "terNO_AMM": -87, ++ "terNO_HOOK": -86, + "tesSUCCESS": 0, + "tecCLAIM": 100, + "tecPATH_PARTIAL": 101, +@@ -2286,6 +2450,7 @@ + "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, +@@ -2293,7 +2458,33 @@ + "tecCANT_ACCEPT_OWN_NFTOKEN_OFFER": 158, + "tecINSUFFICIENT_FUNDS": 159, + "tecOBJECT_NOT_FOUND": 160, +- "tecINSUFFICIENT_PAYMENT": 161 ++ "tecINSUFFICIENT_PAYMENT": 161, ++ "tecAMM_UNFUNDED": 162, ++ "tecAMM_BALANCE": 163, ++ "tecAMM_FAILED_DEPOSIT": 164, ++ "tecAMM_FAILED_WITHDRAW": 165, ++ "tecAMM_INVALID_TOKENS": 166, ++ "tecAMM_FAILED_BID": 167, ++ "tecAMM_FAILED_VOTE": 168, ++ "tecREQUIRES_FLAG": 169, ++ "tecPRECISION_LOSS": 170, ++ "tecBAD_XCHAIN_TRANSFER_ISSUE": 171, ++ "tecXCHAIN_NO_CLAIM_ID": 172, ++ "tecXCHAIN_BAD_CLAIM_ID": 173, ++ "tecXCHAIN_CLAIM_NO_QUORUM": 174, ++ "tecXCHAIN_PROOF_UNKNOWN_KEY": 175, ++ "tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE": 176, ++ "tecXCHAIN_WRONG_CHAIN": 177, ++ "tecXCHAIN_REWARD_MISMATCH": 178, ++ "tecXCHAIN_NO_SIGNERS_LIST": 179, ++ "tecXCHAIN_SENDING_ACCOUNT_MISMATCH": 180, ++ "tecXCHAIN_INSUFF_CREATE_AMOUNT": 181, ++ "tecXCHAIN_ACCOUNT_CREATE_PAST": 182, ++ "tecXCHAIN_ACCOUNT_CREATE_TOO_MANY": 183, ++ "tecXCHAIN_PAYMENT_FAILED": 184, ++ "tecXCHAIN_SELF_COMMIT": 185, ++ "tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 186, ++ "tecLAST_POSSIBLE_ENTRY": 255 + }, + "TRANSACTION_TYPES": { + "Invalid": -1, +@@ -2325,8 +2516,16 @@ + "NFTokenCreateOffer": 27, + "NFTokenCancelOffer": 28, + "NFTokenAcceptOffer": 29, ++ "URITokenMint": 45, ++ "URITokenBurn": 46, ++ "URITokenBuy": 47, ++ "URITokenCreateSellOffer": 48, ++ "URITokenCancelSellOffer": 49, ++ "Import": 97, ++ "Invoke": 99, + "EnableAmendment": 100, + "SetFee": 101, +- "UNLModify": 102 ++ "UNLModify": 102, ++ "EmitFailure": 103 + } + } diff --git a/yarn.lock b/yarn.lock index 7f58d47..a5192a9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1383,16 +1383,16 @@ balanced-match@^1.0.0: resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== -base-x@3.0.9, base-x@^3.0.2, base-x@^3.0.3: +base-x@3.0.9, base-x@^3.0.2, base-x@^3.0.3, base-x@^3.0.9: version "3.0.9" - resolved "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz" + resolved "https://registry.yarnpkg.com/base-x/-/base-x-3.0.9.tgz#6349aaabb58526332de9f60995e548a53fe21320" integrity sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ== dependencies: safe-buffer "^5.0.1" -base64-js@^1.0.2, base64-js@^1.5.1: +base64-js@^1.0.2, base64-js@^1.3.1, base64-js@^1.5.1: version "1.5.1" - resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== before-after-hook@^2.2.0: @@ -1660,13 +1660,13 @@ buffer-xor@^1.0.3: resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" integrity sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ== -buffer@5.6.0: - version "5.6.0" - resolved "https://registry.npmjs.org/buffer/-/buffer-5.6.0.tgz" - integrity sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw== +buffer@6.0.3: + version "6.0.3" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6" + integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA== dependencies: - base64-js "^1.0.2" - ieee754 "^1.1.4" + base64-js "^1.3.1" + ieee754 "^1.2.1" buffer@~5.2.1: version "5.2.1" @@ -2813,9 +2813,9 @@ https-proxy-agent@^5.0.0: agent-base "6" debug "4" -ieee754@^1.1.4: +ieee754@^1.1.4, ieee754@^1.2.1: version "1.2.1" - resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== ignore@^4.0.6: @@ -4610,17 +4610,25 @@ ripple-address-codec@^4.2.4: base-x "3.0.9" create-hash "^1.1.2" -ripple-binary-codec@=1.4.2, ripple-binary-codec@^1.1.3, ripple-binary-codec@^1.4.2, ripple-binary-codec@^1.5.0-beta.2: - version "1.4.2" - resolved "https://registry.yarnpkg.com/ripple-binary-codec/-/ripple-binary-codec-1.4.2.tgz#cdc35353e4bc7c3a704719247c82b4c4d0b57dd3" - integrity sha512-EDKIyZMa/6Ay/oNgCwjD9b9CJv0zmBreeHVQeG4BYwy+9GPnIQjNeT5e/aB6OjAnhcmpgbPeBmzwmNVwzxlt0w== +ripple-address-codec@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/ripple-address-codec/-/ripple-address-codec-4.3.0.tgz#45edeb0312b4fe4607b37b7c4cff467802ad571d" + integrity sha512-Tvd81i7hpDmNqHvkj6iYlj8Tv3I1Romw5gfjni9eacewJvGV2xe+p2y0FAw39z72qfciRMhQyHvpnviBcWVBNw== + dependencies: + base-x "^3.0.9" + create-hash "^1.1.2" + +ripple-binary-codec@=1.6.0, ripple-binary-codec@^1.1.3, ripple-binary-codec@^1.4.2, ripple-binary-codec@^1.5.0-beta.2: + version "1.6.0" + resolved "https://registry.yarnpkg.com/ripple-binary-codec/-/ripple-binary-codec-1.6.0.tgz#848f93a10363a521f2a158751a873a9e89c25d15" + integrity sha512-fa0aMSbh1VOGEHIWCF/VuIvoMoQ/1HLJoBxm+oPNPIDyZJG1uRpLYph1pcvAlDuMutHM3ZHMzWjJpe3AaiMIUA== dependencies: assert "^2.0.0" big-integer "^1.6.48" - buffer "5.6.0" + buffer "6.0.3" create-hash "^1.2.0" decimal.js "^10.2.0" - ripple-address-codec "^4.2.4" + ripple-address-codec "^4.3.0" ripple-keypairs@^1.0.3: version "1.1.3"