WinkLink is an Oracle and simplifies the communication with blockchains. This initial implementation is intended for use and review by developers, and will go on to form the basis for WinkLink's decentralized oracle network. Further development of the WinkLink Node and WinkLink Network will happen here, if you are interested in contributing please contact us, email: [email protected]
-
Install MySQL (v5.7)
-
Install Java
-
Install NodeJS (>=10.0)
-
Build
./gradlew clean build
After build successfully, node-{version}.jar
will be generated in dir node/build/libs
.
-
Start MySQL first. Initializing the tables using the latest sql file in path
node/src/main/resources/db/migration
. -
Start the WinkLink node:
java -jar node-v1.0.jar --key key.store 2>&1 &
// customize some configuration
java -jar node-v1.0.jar --server.port=8081 --spring.profiles.active=dev --key key.store 2>&1 &
Note:
- The
key.store
file contain the private key that this node use. The format refer to:node/src/main/resouces/key.store.template
. - The
vrfKeyStore.yml
file contain the private keys for VRF that this node use. The format refer to:node/src/main/resouces/vrfKeyStore-template.yml
. - You can just put a new
application.yml
orapplication-{ENV}.yml
in the working dir to replace the default spring config file. - There is a set of demo contracts deployed on
nile
network, the node will listen onnile
when starting node with the command:--env dev
WinkLink is is a monorepo containing several logicaly separatable and relatable projects.
tvm-contracts
- smart contractsv1.0/TronOracle.sol
andv1.0/TronUser.sol
are oracle contractsv1.0/VRF
are VRF contractsnode
- the core WinkLink node@node/webapp
- the webapp for WinkLink node