Skip to content

Commit

Permalink
+ ordpool-parser@0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hans-crypto committed Dec 13, 2023
1 parent 158e86d commit 7c8a636
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ You can install it via `npm install axios`. Of course, any other compatible HTTP

Node.js (Version 20 or later) to test & compile the TypeScript code to JavaScript.

### Install

First, install Node.js version 20.
Then, install the NPM dependencies and execute the tests with the following commands:

Expand All @@ -71,12 +73,12 @@ npm install
npm test
```

### How to add a feature

Every feature must be tested in the browser and in the node environment!
Use a mainnet transaction to create a test scenario.
The goal of this parser is to parse byte-perfect inscriptions that are identical to [ord](https://github.com/ordinals/ord).

### Steps

1. **Fetch Transaction Test Data**: Save the raw transaction JSON to the `testdata` folder.
```bash
npm run fetch-tx-testdata
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
},
"files": [
"dist",
"src"
"src",
"*.js",
"*.json"
]
}
7 changes: 0 additions & 7 deletions src/index.spec.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './inscription-parser.service';
export * from './parsed-inscription';

export const helloWorld = 'Hello World';

0 comments on commit 7c8a636

Please sign in to comment.