Ton-link allows smart contracts to access data outside of the blockchain while maintaining data security.
This repository stores the oracle node code. An oracle node is required to transfer data from the real world to the blockchain. To run a node, you need to register in the Ton-link system. Please note that the oracle node must always be in enabled mode. If you want to stop it, then you should put your account on pause.
- Install NodeJS
- Download ton-link-node-v3
git clone https://github.com/ton-link/ton-link-node-v3.git && cd ton-link-node-v3
- Run
cd client && npm install
- Install Postgres (>= 11.x).
CREATE TABLE job (jobID INT NOT NULL, ownership_job INT NOT NULL, status_job INT NOT NULL, place INT NOT NULL, start_time INT NOT NULL, end_time INT NOT NULL);
CREATE TABLE link (jobID INT NOT NULL, count INT NOT NULL, first_link VARCHAR(255) NOT NULL, second VARCHAR(255) NOT NULL, third VARCHAR(255) NOT NULL, fourth VARCHAR(255) NOT NULL);
- Create an .env file
- Use template env.example and fill it with your data (after rename it to .env)
- Move the .env file to the client folder
- Install http-server
npm install --global http-server
- Create an var.env file
- In the dashboard folder, change the var.env file by filling it with your data
- Start ton-link-node-v3
node client/client
- Install Docker Desktop.
- Download ton-link-node-v3
git clone https://github.com/ton-link/ton-link-node-v3.git && cd ton-link-node-v3
- Create an .env file
- Use template env.example and fill it with your data (after rename it to .env)
- Move the .env file to the client folder
- Create an var.env file
- In the dashboard folder, change the var.env file by filling it with your data
- Build ton-link-node-v3:
docker-compose build
- Run ton-link-node-v3:
docker-compose up