0.0.29 • Published 2 years ago

@andreashauschild/node-red-contrib-ethers-node v0.0.29

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

node-red-contrib-ethers-node

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 ConfigMnemonic Based Transfer Node
system schemasystem schema
Private Key Based ConfigPrivate Key Based Transfer Node
system schemasystem schema

Smart Contract Config Node

system schema

Generic Smart Contract Deployment Node

system schema

Generic Contract Write Node

system schema

Developer notes.

This project is in early development

cd C:\Users\hausc\.node-red npm install C:\Work\Entwicklung\Git\node-red-contrib-ethers-node

Typescript integration

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 - https://github.com/TypeStrong/ts-node/issues/311

Testing

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 scripts ts-node .\src\test.ts

Star development workspace

To start developing run: npm run watch. This will: 1. Compile the typescript classes 2. Kills the local node-red server on port 1880 (if you are not running node-red on 1880 you need to change the port in the package.json)

  "scripts": {
    "watch.dev": "npx tsc && kill-port 1880 && node-red",
    "watch": "npm-watch"
  },
  1. Restarts the local node-red server

Publish to npm

Triggred via github actions and repositroy release.

Node Red Infos:

0.0.28

2 years ago

0.0.29

2 years ago

0.0.25

2 years ago

0.0.27

2 years ago

0.0.24

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.20

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago