# Packages
No description provided by the author
# README
Mysterium Network payments 
Set of smart contracts needed for mysterium identity registration and working with payment channels (using payment hubs).
Documentation
- Payments solution white paper
- Smart contracts API description
- Requirements/prerequisites of payment solution
- Registration flow (technical)
Setup and test
We're using truffle for smart contract compilation and running tests.
- Install dependencies
npm install
- Run local ethereum node, e.g.
ganache
. Make sure to use version greater than 6.12.2.
npx ganache-cli --port 8545 --mnemonic "amused glory pen avocado toilet dragon entry kitchen cliff retreat canyon danger"
- Run tests
npm test
- Testing migration/deployment
npm run migrate
Current deployment (ethereum Görli and polygon Mumbai testnets)
MYSTT test token:
- on Görli: 0xf74a5ca65E4552CfF0f13b116113cCb493c580C5
- on Mumbai: 0xB923b52b60E247E34f9afE6B3fa5aCcBAea829E8
Registry smart contract:
- Görli: 0xDFAB03C9fbDbef66dA105B88776B35bfd7743D39
- Mumbai: 0xDFAB03C9fbDbef66dA105B88776B35bfd7743D39
Hermes smart contract:
Implementation addresses:
- Hermes implementation address (same on both networks):
0x72227c86B8B6C0cA292C3631679a5DdB20433cb3
- Channel implementation address (Görli):
0x1aDF7Ef34b9d48DCc8EBC47D989bfdE55933B6ea
- Channel implementation address (Mumbai):
0xf8982Ba93D3d9182D095B892DE2A7963eF9807ee
Building golang bindings
To be able easily call these smart contract out of any software writen in Go you need to generate golang bindings and import payments
package into your software.
- Tag newest version of smart contracts on GitHub
- CI will build artifacts
- Go to
payments
repo and ingo.gen
set tag and which artifacts to build. - Run
mage generate
.