README.md 1.18 KB
Newer Older
John Doe's avatar
John Doe committed
1
# momiji-node-ts
Greybeard's avatar
Greybeard committed
2

John Doe's avatar
John Doe committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
This is the node for publishing batch transactions to the momiji protocol


## FAQ
- Global Config: One config, initialized in index.ts and borrowed from the .env
- npm warnings are ok, npm outputs a lot of warnings.

## USAGE

First clone this repo.

- Copy over the .env.example file to .env
and Fill out the `.env` file with your hex formatted private key and your RPC URL

and after that there are 2 alternatives for running a node either the quick way with docker or for those who already have a configured development machine setup.

### Docker setup
for building
```sh
sudo docker build -t xftnode .
```

for running
```sh
sudo docker run -it xftnode
```
### npm usage
- Install noirup, the Nargo package manager
```sh
curl -L https://raw.githubusercontent.com/noir-lang/noirup/main/install | bash
```
- Install nargo v0.28.0
```
noirup --version 0.28.0
```

- Install nvm and grab the latest LTS version of node 
```sh
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
```
Restart your terminal and then run
```sh
nvm install --lts
nvm use --lts
```
```
cd ./momiji-helpers && npm install && cd .. && npm install
```
- Run `npm run start` to start the node