A decentralized protocol for indexing and querying data from DecentraMix's on chain contracts across all supported blockchains.

Overview

DeMix Subgraph - by DecentraWorld

A decentralized protocol for indexing and querying data from DeMix contracts across all supported blockchains.

Supported Chains: 😁 BSC   |   😄 ETH   |   😃 FTM   |   😀 AVAX   |   😇 ARB   |   🙂 xDai   |   🙃 CRO   |   🤩 MATIC   |   😝 OPTIMISM   |   😗 Testnet   |   😙 Goerli

DeMix is a zero-knowledge DApp which allows a variety of Blockchain users to prove send & receive crypto currencies without revealing their original identity. At the same time, it allows users to collect their note without using a wallet with funds for gas (using relayers). It is designed to be a simple and useful privacy motivated DAPP for DecentraWorld's community and users. It's time to bring freedom to the people

⚠️ This repositories is still being worked on version/0.0.1. We will update this repo with the final versio as soon as DeMix is launched across all supported blockchains mentioned above, and we`re done testing & stressing the beta version of DeMix.

Requirements

  1. node v16.14.2(LTS)
  2. yarn 1.22.18
  3. npm install -g @graphprotocol/graph-cli@latest

Create a "Hosted-Service" For Each Subgraph

  1. Sign up with The Graph
  2. Add a subgraph under hosted service.
  3. The name of each subgraph needs to match the name on the script package.json.

Deploy DeMix's Subgraphs

  1. yarn install
  2. yarn run generate- E.g: yarn run generate-bsc
  3. replace $TOKEN (line 52 in package.json) with an access token
  4. yarn run deploy:demix- E.g: yarn run deploy:demix-bsc
    Or Deploy on all supported chains at the same time:
  5. yarn run deploy:all Optional: yarn run lint to fix code and implement prettier

Deployed subgraphs

The following is a list of our deployed subgraphs. Each subgraph.yaml file can be used with a thegraph.com hosted service. It helps our smart contracts to verify notes on the blockchain even when there is many transactions to look through.

Chain ID Subgraph Status
97 Testnet-DeMix-Subgraph Deployed
1 Mainnet-DeMix-Subgraph Undeployed
56 BSC-DeMix-Subgraph Undeployed
43114 Avalanche-DeMix-Subgraph Undeployed
250 Fantom-DeMix-Subgraph Undeployed
137 Matic-DeMix-Subgraph Undeployed
25 Cronos-DeMix-Subgraph Undeployed
42161 Arbitrum-DeMix-Subgraph Undeployed
10 Optimism-DeMix-Subgraph Undeployed
100 xDai-DeMix-Subgraph Undeployed
5 Goerli-DeMix-Subgraph Undeployed

How to adjust this subgraph to your needs

We encourage everyone to use subgraphs for complicated indexing on the blockchain. If you would like to use this repo for your own code, make sure to adjust the following files.

Example subgraph by The Graph: @graphprotocol/example-subgraph

  1. The schema file schema.graphql needs to match your contract`s query and indexing needs.
  2. Create a new subgraph.yaml file in the /subgraphs/subgraph.yaml folder, and name it as you wish. You can use existing .yaml files as a referance, or the create-yaml-file.js file as a .yaml generator script.
  3. Adjust mapping .ts files according to your needs, I'd suggest to follow TheGraph's documentation to learn how to initiate, build, and deploy your subgraphs properly. Always run the yarn deploy command above again to deploy the updated version of your subgraph. Mappings are AssemblyScript code called whenever the Graph Node finds an event or a call specified in the manifest.
  4. In the mustache folder you will find templates to DeMix's subgraph, as we use multiple blockchain this makes the deployment process of each subgraph much easier. You can adjust the templates according to your need. The yaml.mustache file contains the schema.graphql template, that will need to watch the indexing schema that you need.
  5. The abis folder contains abis of each contract that is needed for DeMix's indexing. Change the current files with the abi files of your contracts that will be indexed. These ABI files are being pulled by the subgraph.yaml file that is used to deploy your subgraph.
  6. The scripts in package.json are made to make the build & deployment process easy. Simply add/adjust the generate, yaml, codegen, build, and deploy scripts according to your new subgraph.yaml file name and other changes.
You might also like...

Querying Solana Blockchain, leveraging Magic Eden Apis!

Querying Solana Blockchain, leveraging Magic Eden Apis!

Solana Bot Deployment Instructions- Create a bot on discord dev portal learn basics here Copy the Bot Token and go to OAuth field for URL generation F

Sep 8, 2022

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript and Node.js.

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript and Node.js.

Jan 8, 2023

Using a Decentralized Application (DApp) to Sell artwork on the Ethereum blockchain with smart contracts written in Solidity.

Decentralized Applications For Selling Limited Time Artwork This repository houses the Solidity, JavaScript, and HTML code for a Decentralized Applica

Mar 20, 2023

Elrond blockchain CLI helper tools - interaction with APIs, smart contracts and protocol

Buildo Begins 👷 Meet Buildo. He is here to help you start creating in the Elrond blockchain ecosystem. Here is where everything begins. I'm going on

Dec 30, 2022

Perpetual Protocol Curie (v2) core contracts

Perpetual Protocol Curie (v2) core contracts

Dec 15, 2022

🌳📝 Smart contracts for the Arbor Protocol

Arbor Smart Contracts app testnet landing docs discord blog twitter Security Please report any security issues to [email protected] V1 Smart Contr

Nov 21, 2022

A website for detecting name of bank from card number, supported all Iranian banks

A website for detecting name of bank from card number, supported all Iranian banks

Detect Iranian Bank Web A website for detecting name of bank from card number, supported all Iranian banks. This package contains SVG logo and brand c

Oct 2, 2022

automatic poits grabber for twitch, works with all supported langauges on twitch

automatic poits grabber for twitch, works with all supported langauges on twitch

Twitch Points Grabber It’s an extension for edge, is aviable in the microsoft Edge Add-ons. This extension will collect any channel points. Settings I

Nov 28, 2022

A simple emotion picker that displays all the supported GitHub emojis :octocat:.

A simple emotion picker that displays all the supported GitHub emojis :octocat:.

github-emoji-picker A simple Emoji picker that displays all the emojis that GitHub supports. It is automatically generated from GitHub Emoji API and U

Dec 27, 2022
Releases(0.0.1)
  • 0.0.1(Mar 20, 2022)

    This is the subgraphs repo for DeMix, it is still being worked on. The full repo will be uploaded once we're done deploying DeMix across all supported blockchains, and testing / stressing the contracts and the subgraphs. Until then please treat the '0.0.1' version of this repo as for testing only. You can find more information in the 'README.md' file.

    Source code(tar.gz)
    Source code(zip)
Owner
DecentraWorld Ecosystem
DecentraWorld provides privacy solutions using Zero-Knowledge cryptography protocols infused into our ecosystem of DApps. Increasing privacy standards in DeFi.
DecentraWorld Ecosystem
A Multichain crypto wallet library that supports Ethereum, Solana and other EVM compatible blockchains.

Multichain Crypto Wallet A Multichain crypto wallet library that supports Ethereum, Solana and other EVM compatible blockchains. Installation npm inst

Abdulfatai Suleiman 117 Jan 2, 2023
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Auto-compounder app for Cosmos blockchains using Authz

REStake REStake allows delegators to grant permission for a validator to compound their rewards, and provides a script validators can run to find thei

ECO Stake 237 Dec 29, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
The self-building, hot-reloading subgraph. The quickest way to start indexing your shit.

npx autographed The self-building, hot-reloading subgraph. The quickest way to start indexing your shit. ?? getting started Okay, so there's a lot tha

Alexander Thomas 16 Aug 21, 2022
Lenster is a decentralized, and permissionless social media app built with Lens Protocol 🌿

Lenster Decentralized, and permissionless social media app ?? lenster.xyz » Discord • Issues ?? About Lenster Lenster is a decentralized, and permissi

Lenster 11.8k Jan 7, 2023
A JavaScript library for querying administrative regions in Cambodia including Provinces, Districts, Communes and Villages.

pumi A JavaScript library for querying administrative regions in Cambodia including Provinces, Districts, Communes and Villages. Supports Node.js, Bro

null 4 Apr 11, 2022
Decentralized video-sharing social media platform, built using Lens protocol. 🌿

Lenstube Decentralized video-sharing social media platform. lenstube.xyz About Lenstube is a decentralized video-sharing social media platform, built

Lenstube 2.4k Jan 1, 2023
A simple, no-hassle library for efficiently querying Your Enrollment Services.

@vanderbilt/yes-api A simple, no-hassle library for efficiently querying Your Enrollment Services. Created by Dylan Hanson (jovialis) NOTE: THIS MODUL

Dylan Hanson 2 Jan 25, 2022