diff --git a/packages/ripple-binary-codec/src/enums/definitions.json b/packages/ripple-binary-codec/src/enums/definitions.json index d6f4808c..886f081b 100644 --- a/packages/ripple-binary-codec/src/enums/definitions.json +++ b/packages/ripple-binary-codec/src/enums/definitions.json @@ -454,6 +454,28 @@ "type": "UInt32" } ], + [ + "CancelAfter", + { + "nth": 36, + "isVLEncoded": false, + "bytes": "2024", + "isSerialized": true, + "isSigningField": true, + "type": "UInt32" + } + ], + [ + "FinishAfter", + { + "nth": 37, + "isVLEncoded": false, + "bytes": "2025", + "isSerialized": true, + "isSigningField": true, + "type": "UInt32" + } + ], [ "IndexNext", { @@ -707,6 +729,17 @@ "type": "Hash256" } ], + [ + "Digest", + { + "nth": 21, + "isVLEncoded": false, + "bytes": "5015", + "isSerialized": true, + "isSigningField": true, + "type": "Hash256" + } + ], [ "hash", { @@ -1037,6 +1070,17 @@ "type": "Blob" } ], + [ + "Proof", + { + "nth": 17, + "isVLEncoded": true, + "bytes": "7011", + "isSerialized": true, + "isSigningField": true, + "type": "Blob" + } + ], [ "Account", { @@ -1335,7 +1379,7 @@ } ], [ - "TemplateEntryType", + "Method", { "nth": 2, "isVLEncoded": false, diff --git a/packages/ripple-binary-codec/test/fixtures/data-driven-tests.json b/packages/ripple-binary-codec/test/fixtures/data-driven-tests.json index 7f8b4b0a..23deb32e 100644 --- a/packages/ripple-binary-codec/test/fixtures/data-driven-tests.json +++ b/packages/ripple-binary-codec/test/fixtures/data-driven-tests.json @@ -308,6 +308,27 @@ "type": 2, "expected_hex": "2022" }, + { + "type_name": "UInt32", + "name": "SignerQuorum", + "nth_of_type": 35, + "type": 2, + "expected_hex": "2023" + }, + { + "type_name": "UInt32", + "name": "CancelAfter", + "nth_of_type": 36, + "type": 2, + "expected_hex": "2024" + }, + { + "type_name": "UInt32", + "name": "FinishAfter", + "nth_of_type": 37, + "type": 2, + "expected_hex": "2025" + }, { "type_name": "UInt64", "name": "IndexNext", @@ -469,6 +490,13 @@ "type": 5, "expected_hex": "5014" }, + { + "type_name": "Hash256", + "name": "Digest", + "nth_of_type": 21, + "type": 5, + "expected_hex": "5015" + }, { "type_name": "Amount", "name": "Amount", @@ -651,6 +679,13 @@ "type": 7, "expected_hex": "7E" }, + { + "type_name": "Blob", + "name": "Proof", + "nth_of_type": 17, + "type": 7, + "expected_hex": "7011" + }, { "type_name": "AccountID", "name": "Account", @@ -828,7 +863,7 @@ }, { "type_name": "UInt8", - "name": "TemplateEntryType", + "name": "Method", "nth_of_type": 2, "type": 16, "expected_hex": "0210"