GithubHelp home page GithubHelp logo

isabella232 / ethereum-polymesh-bridge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from polymeshassociation/ethereum-polymesh-bridge

0.0 0.0 0.0 1.57 MB

Contracts used to bridge POLY from Ethereum to Polymesh

Shell 5.71% JavaScript 69.66% Solidity 24.62%

ethereum-polymesh-bridge's Introduction

ethereum-polymesh-bridge

Contracts used to bridge POLY from Ethereum to Polymesh. This bridge will be a one way bridge type that allows users to lock there etheruem POLY forever in the smart contract by providing the corresponding Polymesh based address that will holds the same amount of POLY on Polymesh blockchain.

Initial requirements

  • Any POLY holder can lock POLY (Issuers, Investors, WL, Polymath Founders, etc.)
  • Attempt to lock coins other than POLY must fail
  • The amount of POLY to be locked must be >0, otherwise, fail with insufficient funds
  • There is no MAX to how much POLY can be locked
  • SC must be upgradable based on a time-lock
  • POLY will be locked forever, no one can unlock it
  • Granularity for locked POLY should be restricted to Polymesh granularity (10^6)
  • User must provide their Mesh address when locking POLY
  • Emit an event for locked POLY including Mesh address & timestamp
  • Mesh address must be valid (validation of address checksum)[Deprecated]
  • Ideally allow meta-transactions so that exchanges etc. could action on behalf of users.
  • User should sign data with their Polymesh address like “I agree that transferring POLY is a one-way process and can’t be reversed” this ensures that they def. control their Polymesh account. (Verify Polymesh signed data in Ethereum)[Deprecated]

Pre-requisite

  • Node ^10.0.0
  • Truffle ^5.0.0
  • Ganache ^6.0.0

Setup

yarn install

Compile

npm run compile

Test

npm run test

Contracts Deployment

Kovan

Kovan (Ethereum) <-> Alcyone (Polymesh testnet)

2.4.0

Contracts Address
PolyLocker 0xa9cc9b84b8c3bd4af61443a9c3d6f02b90f1a9d0

2.0.0

Contracts Address
PolyLockerAddress (logic): 0x0B858045b6614e20ff94bCb8009340f95c00419D
PolyLockerProxyAddress: 0x636ed3919906F6B1abe54cAEB2497067C4fC9bA7
PolyToken: 0xB347b9f5B56b431B2CF4e1d90a5995f7519ca792

1.0.0

Contracts Address
PolyLockerAddress (logic): 0x7528477C82093f11d5066f8A60ac9f9cB62B5A34
PolyLockerProxyAddress: 0x3684208173b25aacCD38a58a73f66184f5667C11
PolyToken: 0xB347b9f5B56b431B2CF4e1d90a5995f7519ca792

upgraded PolyLocker (Logic address) - 0xa11ded28bfa305e7c877d0310df436e1f841ef7a

1.1.0

Contracts Address
PolyLockerAddress (logic): 0x528999Ae62d515e2F0CeE0cc9E6681e29BC59f36
PolyLockerProxyAddress: 0x9791be69F613D372E09EbA611d25157A5512c5c8
PolyToken: 0xB347b9f5B56b431B2CF4e1d90a5995f7519ca792

upgraded PolyLocker (Logic address) - 0xbdbbd3f124d4051df31b7f98e981d358a3bc4f5e

Kovan (Ethereum) <-> Aldebaran (Polymesh testnet)

Contracts Address
PolyLockerAddress (logic): 0xcA7f6CdB0A9384354E998b44270E8b490C772b78
PolyLockerProxyAddress: 0x5A0689dB080e63EB1C8F091239B9532Db10B0206
PolyToken: 0xB347b9f5B56b431B2CF4e1d90a5995f7519ca792

upgraded PolyLocker (Logic address) - 0x09588b302B3526Aea8E8600ee52373B1b2eE36B6

1.1.0

Contracts Address
PolyLockerAddress (logic): 0xDb99495e80f2a9dF8b6d296b5507214e668603Ce
PolyLockerProxyAddress: 0xC0E0845731af3F081d4947aAe5EB4256536D679B
PolyToken: 0xB347b9f5B56b431B2CF4e1d90a5995f7519ca792

upgraded PolyLocker (Logic address) - 0xbdbbd3f124d4051df31b7f98e981d358a3bc4f5e

Kovan (For tooling chain PMF)

Contracts Address
PolyLockerAddress (logic): 0x75Dc41b0d69d182fc3fFc7716d35a1845121618d
PolyLockerProxyAddress: 0xd44A07f1bf0d0DFC3A553E6657a87DB93409Eec6
PolyToken: 0xB347b9f5B56b431B2CF4e1d90a5995f7519ca792

ethereum-polymesh-bridge's People

Contributors

adamdossa avatar maxsam4 avatar satyamakgec avatar satyamsb avatar vkandy 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.