Categorygithub.com/mysteriumnetwork/payments-smart-contracts
repository
2.1.0+incompatible
Repository: https://github.com/mysteriumnetwork/payments-smart-contracts.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Mysterium Network payments Build Status

Set of smart contracts needed for mysterium identity registration and working with payment channels (using payment hubs).

Documentation

Setup and test

We're using truffle for smart contract compilation and running tests.

  1. Install dependencies
npm install
  1. 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"
  1. Run tests
npm test
  1. Testing migration/deployment
npm run migrate

Current deployment (ethereum Görli and polygon Mumbai testnets)

MYSTT test token:

Registry smart contract:

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.

  1. Tag newest version of smart contracts on GitHub
  2. CI will build artifacts
  3. Go to payments repo and in go.gen set tag and which artifacts to build.
  4. Run mage generate.