Code Monkey home page Code Monkey logo

poly's Introduction

Poly

Version 1.0

Discord

English | 中文

Welcome to the official Go implementation of the Poly Network !

Poly is a blockchain system providing cross-chain interactive services. Your transaction on chain X can be relayed to other chain Y and executed, we call this kind of transaction as cross-chain transaction. Any chain which implement Poly cross-chain interactive protocol can join the poly ecosystem. For now, we have Ethereum, Ontology, Switcheo, Neo, Bitcoin and BSC. You can transfer asset from one chain to another. Like ETH, BTC, ONT, ONG, ERC20, OEP4, NEO, BSC etc, and any message between different chains.

Features

  • Highly optimized transaction processing speed
  • Multiple encryption algorithms supported
  • Quick block generation time 1s
  • Support for heterogeneous and homogeneous chains
  • Supports cross chain transaction consistency and finality
  • Supports variety of heterogeneous chain protocol (Bitcoin/Ethereum/Neo/Ontology/Cosmos-SDK/BSC)

Install from Binaries

Downloading a specific version from the release section.

Build From Source

Prerequisites

  • Golang version 1.15 or later

Build

Note that the code in the master branch may not be stable.

git clone https://github.com/polynetwork/poly.git
cd poly
make all

After building the source code successfully, you should see the executable program poly.

Build Docker Image

You can build a poly docker image pre-installed the ploy executable program.

make dockerImg

You would find the image polynetwork/poly and you can run a container from it.

Run Poly

The Poly CLI can run nodes for the MainNet, TestNet and local PrivateNet.

Before you can run the node you will need to create a wallet file. A wallet file named wallet.dat can be generated by running

./poly account add -d

Here's an example of the directory structure

$ tree
└── poly
    ├── poly
    └── wallet.dat

MainNet Sync Node

Before you start node, you need to register your account to be a relayer to get permission to send transactions to Poly.

You can run an Poly MainNet node built from the source code with:

./poly

TestNet Sync Node

Before you start node, you need to register your account to be a relayer to get permission to send transactions to Poly.

You can run an Poly TestNet node built from the source code with:

./poly --networkid 2

Local PrivateNet

The Poly CLI allows you to run a local PrivateNet on your computer. To start the PrivateNet built from the source code with:

./poly --testmode  

Contributions

Contributors to Poly are very welcome! Before beginning, please take a look at our contributing guidelines. You can open an issue by clicking here.

If you have any issues getting setup, open an issue or reach out in the Poly Network Discord.

License

The Poly source code is available under the LGPL-3.0 license.

poly's People

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.