https://github.com/pmuens/external-data-network
End-to-End Blockchain Oracle solution to facilitate trustless, yet auditable data transfers between pluggable sources and sinks
https://github.com/pmuens/external-data-network
blockchain blockchain-oracle ethereum graphql oracle smart-contract smart-contracts
Last synced: 5 months ago
JSON representation
End-to-End Blockchain Oracle solution to facilitate trustless, yet auditable data transfers between pluggable sources and sinks
- Host: GitHub
- URL: https://github.com/pmuens/external-data-network
- Owner: pmuens
- Created: 2021-07-12T09:58:41.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-12T09:58:53.000Z (about 4 years ago)
- Last Synced: 2025-02-17T10:47:51.234Z (8 months ago)
- Topics: blockchain, blockchain-oracle, ethereum, graphql, oracle, smart-contract, smart-contracts
- Language: TypeScript
- Homepage:
- Size: 208 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node
Reference implementation of the "External Data Network" Node specification.
## Setup
### Main
1. `git clone` this repository
1. Run `npm install` in the project root
1. Create a copy of the `.env.example` file and rename it to `.env`
1. Update the `.env` file if necessary### The `.edn` directory
1. Create a `.edn` directory in the project root
1. Create a `jobs.ts` file in the `.edn` directory
1. Create a `registry` directory in the `.edn` directoryThe `.edn` directory structure should look like this:
```sh
.
+-- .edn
| +-- registry
| +-- jobs.ts
```### The `jobs.ts` file
Copy the following code into your `jobs.ts` file and update it with your `JobConfig`s.
```typescript
import { JobConfig } from '../src/types'const jobs: JobConfig[] = [
{
// Your `JobConfig` here
}
]export = jobs
```Run `npm run dev` in the project root to start the server. The server will automatically reload when file changes are detected.
## Useful Commands
```sh
# Setup
npm install# Development
npm run dev# Build
npm run build# Test
npm run test# Format
npm run format# Lint
npm run lint# Clean
npm run clean
```