feat: add Clawback amendment support (#2353)

* Add Clawback transaction
* Account flag lsfAllowTrustLineClawback
* Support bitwise flag checking of 64 bit flags
This commit is contained in:
Shawn Xie
2023-07-19 15:39:48 -04:00
committed by GitHub
parent c564161871
commit 63ea6e8c9b
14 changed files with 284 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ describe('encode and decode using new types as a parameter', function () {
// Normally this would be generated directly from rippled with something like `server_definitions`.
// Added here to make it easier to see what is actually changing in the definitions.json file.
const definitions = JSON.parse(JSON.stringify(normalDefinitionsJson))
definitions.TRANSACTION_TYPES['NewTestTransaction'] = 30
definitions.TRANSACTION_TYPES['NewTestTransaction'] = 75
const newDefs = new XrplDefinitions(definitions)