Git Product home page Git Product logo

senseless / hydration-node Goto Github PK

View Code? Open in Web Editor NEW

This project forked from galacticcouncil/hydration-node

0.0 0.0 0.0 32.67 MB

Hydration node - Cross-chain liquidity protocol built with Polkadot-SDK

Home Page: https://hydration.net

License: Apache License 2.0

Shell 0.16% JavaScript 0.69% Rust 98.60% TypeScript 0.35% Makefile 0.03% Handlebars 0.06% HCL 0.02% Dockerfile 0.01% Solidity 0.09%

hydration-node's Introduction

HydraDX node

CROSS-CHAIN LIQUIDITY PROTOCOL BUILT ON SUBSTRATE

Contributions & Code of Conduct

Please follow the contributions guidelines as outlined in docs/CONTRIBUTING.md. We are welcoming and friendly community please follow our Code of Conduct.

Local Development

Follow these steps to prepare a local Substrate development environment ๐Ÿ› ๏ธ

Simple Setup

Install all the required dependencies with a single command (be patient, this can take up to 30 minutes).

curl https://getsubstrate.io -sSf | bash -s -- --fast

Manual Setup

Find manual setup instructions at the Substrate Developer Hub.

Build

Once the development environment is set up, build the node. This command will build the Wasm and native code:

cargo build --release

Run

Chopsticks

The easiest way to run and interact with HydraDX node is to use Chopsticks

npx @acala-network/chopsticks@latest --config=launch-configs/chopsticks/hydradx.yml 

Now you have a test node running at ws://localhost:8000

Local Testnet with Zombienet

Relay chain repository (polkadot) has to be built in ../polkadot Grab zombienet utility used to start network from releases

Start local testnet with 4 relay chain validators and HydraDX as a parachain with 2 collators.

cd ./rococo-local
zombienet spawn config-zombienet.json

Interaction with the node

Go to the polkadot apps at https://polkadot.js.org/apps

Connect to

  • Mainnet: wss://rpc.hydradx.cloud
  • local node: ws://localhost:8000 (if you are using chopsticks)

Testing of storage migrations and runtime upgrades

The try-runtime tool can be used to test storage migrations and runtime upgrades against state from a real chain. Run the following command to test against the state on HydraDX. Don't forget to use a runtime built with try-runtime feature.

try-runtime --runtime ./target/release/wbuild/hydradx-runtime/hydradx_runtime.wasm on-runtime-upgrade --checks all live --uri wss://rpc.hydradx.cloud:443

or against HydraDX testnet on Rococo using --uri wss://rococo-hydradx-rpc.hydration.dev:443

Security

Useful resources:

Bug bounty: https://immunefi.com/bounty/hydradx/

Reponsible disclosure: [email protected]

hydration-node's People

Contributors

enthusiastmartin avatar dmoka avatar roznovjak avatar mrq1911 avatar martinfridrich avatar apopiak avatar jak-pan avatar vgantchev avatar green-jay avatar roborambo avatar fakirayoub avatar dependabot-preview[bot] avatar gflow33 avatar chrisk700 avatar jareknowotka avatar alistair-singh avatar andresilva avatar mustermeiszer avatar unordered-set avatar mikexing-onf avatar pmensik avatar senseless avatar mikespook avatar kukabi avatar kyoshisuki avatar mckrava 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.