Giter VIP home page Giter VIP logo

tesol2y090 / flex-node Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 19.19 MB

Flex node allows users to write graphql query commands or our template command to query on-chain activities such as borrows events in compounds on Polygon mainnet or nft holding in opensea on Ethereum mainnet and store those file as json file into ipfs via web3.storage.

Home Page: https://flex-node.vercel.app/

Shell 1.57% JavaScript 0.28% Solidity 16.07% TypeScript 81.25% CSS 0.83%

flex-node's Introduction

Flex Node : Chainlink Hackathon Spring 2022

Flex Node

Flex Node Demo Page

Our smart contract is live on polygon mumbai testnet

Description

Flex node allows users to write graphql query commands or our template command to query on-chain activities such as borrows events in compounds on Polygon mainnet or nft holding in opensea on Ethereum mainnet and store those file as json file into ipfs via web3.storage.

When smart contract want to calculate those file, we also provide chainink external adapter to get those file and compute on chainlink node and send result back into smart contract.

Architecture

Flex Node Architecture

We implement 2 layers, storage layer and execution layer.

  1. Storage layer, We use IPFS to store query commands data and on-chain data.
  2. Execution layer, Our stack separates into 3 parts, Chainlink node, Chainlink external adapter, flex-contract and flex-frontend.
  • Chainlink node

    We create our own spec and job to parse data from our external adapter on polygon mumbai testnet.

  • Chainlink external adapter

    We have 2 external adapters that do different tasks.

    Get on-chain data using graphql command and return cid from ipfs. Get specific data that is stored on cid.

  • Flex contracts

    Sample contract that gets on-chain data and how to build requests from our flex-node.


What next's

  1. The query creator has incentive from everyone using their query command.
  2. Dynamic query variable.
  3. Support Non-evm chain.
  4. Support more third party on-chain query data.

flex-node's People

Contributors

tesol2y090 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.