Node-Red Nodes for wrapping ethers functions. See https://docs.ethers.io/ . This project is in a very early proof of concept state. Everything can and will change. Read the code for documentation.
First stable version will be 1.0.0
Transfer Node to send basic funds.
Mnemonic Based Config | Mnemonic Based Transfer Node |
---|---|
Private Key Based Config | Private Key Based Transfer Node |
---|---|
Smart Contract Config Node
Generic Smart Contract Deployment Node
Generic Contract Write Node
This project is in early development
cd C:\Users\hausc\.node-red
npm install C:\Work\Entwicklung\Git\node-red-contrib-ethers-node
I am currently not aware about any clean way of using 100% Typescript for implementing nodes. The chosen approach for this project is to implement the most logic in Typescript classes which will be instantiated and execute within the javascript nodes. If somebody knows a better way, please let me know.
Info
Typescript imports have to be like import * as ethers from "ethers";
if you get undefined - TypeStrong/ts-node#311
The testing setup is not done yet at the moment the implementation is tested with script and real blockchain interaction
- Execute test scripts:
npm install -g ts-node
to execute local scriptsts-node .\src\test.ts
To start developing run: npm run watch
. This will:
- Compile the typescript classes
- Kills the local node-red server on port
1880
(if you are not running node-red on1880
you need to change the port in the package.json)
"scripts": {
"watch.dev": "npx tsc && kill-port 1880 && node-red",
"watch": "npm-watch"
},
- Restarts the local node-red server
Triggred via github actions and repositroy release.