Giter Site home page Giter Site logo

juno's Introduction

DWS bridge component

This product based on juno (https://github.com/forbole/juno) implementation of blockchain data aggregator and exporter. It is part of DWS bridge to connected non-Cosmos networks.

Config

Create config file in bridge home directory. Create empty sceleton with init command

Config consists of parts:

  • chain - chain specific settings. Important parameter modules - list of modules to run
  • bridge - settings for tokens transfers
  • node - setting for blockchain node
  • parsing - settings for parser
  • database - settings for DB for persistence
  • logging - logging settings

Chain config

Value for DWS bridge:

chain:
    bech32_prefix: deweb
    modules: [bridge_transactions]

Bridge config

Settings:

  • address - wallet address of bridge, watching for transfers to this address
  • networks - list of bridged networks and wrapped tokens addresses
  • consensus_host - address for notifications of requested transfers

Example value:

bridge:
    address: deweb1rl3wl5v7cln6m3hekp39lfe6244t420mnc540m
    networks:
        sia:
            token: deweb14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9s03q9ga
    consensus_host: http://localhost:8083

Networks config part used for mapping between wrapped token and target network. In example added mapping between token and network SIA. If we find transaction to address, checking transferred token. By token determined network name to which transfer requested. Then performing request ot node (grpc) for stored mapping between transaction creator and address in target network. When mapping found creating JSON and sending POST request to consensus_host. Amount of tokens determined from ERC20 wrapped token transfer. Request JSON example:

{
    "chain":"sia",
    "address":"siaaddress",
    "amount":"200"
}

juno's People

Contributors

alexanderbez avatar alhimicman avatar angelorc avatar giansalex avatar huichiaotsou avatar monikacat avatar riccardom avatar williamchong 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.