refactor: use xrpl-codec-gen for definitions.json (#2037)

* Update definitions.json

* update CONTRIBUTING

* fix tests

* fix UNL
This commit is contained in:
Mayukha Vadari
2022-07-19 21:01:19 +01:00
committed by GitHub
parent fdfef0e188
commit d7c3583a8f
3 changed files with 786 additions and 433 deletions

View File

@@ -83,6 +83,9 @@ npm run docgen
This updates `docs/` at the top level, where GitHub Pages looks for the docs.
## Update `definitions.json`
Use [this repo](https://github.com/RichardAH/xrpl-codec-gen) to generate a new `definitions.json` file from the rippled source code. Instructions are available in that README.
## Adding and removing packages
`xrpl.js` uses `lerna` and `npm`'s workspaces features to manage a monorepo.

File diff suppressed because it is too large Load Diff

View File

@@ -483,13 +483,6 @@
"type": 5,
"expected_hex": "5013"
},
{
"type_name": "Hash256",
"name": "TicketID",
"nth_of_type": 20,
"type": 5,
"expected_hex": "5014"
},
{
"type_name": "Hash256",
"name": "Digest",
@@ -721,13 +714,6 @@
"type": 8,
"expected_hex": "84"
},
{
"type_name": "AccountID",
"name": "Target",
"nth_of_type": 7,
"type": 8,
"expected_hex": "87"
},
{
"type_name": "AccountID",
"name": "RegularKey",