Git Product home page Git Product logo

verified-subgraphs's Introduction

Verified subgraphs

The objective of this project is to create multiple sub graphs for indexing and querying payments, loans, issuing of security tokens, investments, trades and accounting for all these transactions on the Verified Network. The Verified Network is a decentralized network of regulated financial services providers that help issue and service traditional payments and investment products on the blockchain for Defi.

This implementation follows the Verified SDK which provides a way for Dapp developers to create decentralized systems for regulation compliant payments, issuing of securities, investments and trading on the ethereum blockchain.

How does the Verified subgraphs work ?

  1. Verified account holders (wallets on the Verified Network) are entities on the Verified subgraph. It is possible to query the subgraph to check asset balances and operations related to each user - for example, digital cash balances, cash deposits, cash redemptions for fiat withdrawal, cash payments, bonds issued (ie, loans taken), bond purchases (ie, money lent), bond redemptions (ie, loan repayments), bond liquidations (ie, loan defaults), securities issued, securities invested in, trade orders created, trades filled, trade settlements completed.

  2. Digital cash on the Verified Network that represent multiple fiat currencies are also entities on the Verified subgraph. It is possible to query the subgraph for digital cash balances and operations - for example, balances and deposits by currency, payment transfers by currency, loans taken and underwritten by currency, securities denominated in and investments made by currency, and more.

  3. Transactions on the Verified Network are accounted for in a double entry book keeping system on the blockchain where Verified account holders (wallets on the Verified Network) are creators of ledgers and accounts in each ledger. Using the Verified subgraph, it is possible to query a user's transaction statement by dates, voucher types (sales, journal, purchase, etc), currency of transactions, transaction type (credit or debit), and ledger and account names (which are usually counter parties of the Verified account holder).

  4. Digital investment products and securities issued are entities on the Verified subgraph. It is possible to query a product by its terms (for example, coupon, coupon payment frequency, next payment due, tenure, etc), asset class, and more. One or more securities may be issued for a product and using the Verified subgraph, it is possible to query securities issued by its identifier (usually a ISIN number), and query a security's credit rating, corporate actions, price history, and holders.

  5. Investments and Trades in digital securities on the Verified Network are entities on the Verified subgraph. It is possible to query the Verified subgraph on investments made by Verified account holders (wallets on the Verified Network) and trade orders created, edited, cancelled, filled and settled for secondary investments made on the Verified Network.

Cloning This Repository

$> npm install -g @graphprotocol/graph-cli 
$> git clone https://github.com/verified-network/verified-graph.git
$> cd verified-graph
$> graph codegen
$> graph build

Queries

To do:

NOTE: Currently this reference implementation is under development and NOT FOR PRODUCTION.

verified-subgraphs's People

Contributors

kallolborah avatar rolandorh avatar

Watchers

Venkimanian avatar  avatar Kostas Georgiou avatar

verified-subgraphs's Issues

Date/timestamp entity

  1. Need date/timestamp entity both in primarySubscribers, and secondary investors [Security entity]

balancerManager Entity in balancer subgraph

  1. Needed Add “issue manager" entity in balancer subgraph to differentiate between pools issued by (i.e Issuer/DP) in the Manage Issues screen

Currently: balancerManager is coming null

Data not appending for each investor

  1. Primary subscribers & secondary investors not appending for a particular investor in the array in the subgraph. Just showing the last swap for each investor

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.