2019-06-16 17:19:00 +03:00
2019-06-15 10:50:10 +02:00
pic
2019-06-16 17:19:00 +03:00
2019-06-16 17:13:03 +03:00
2019-06-15 10:50:10 +02:00
2019-06-15 11:54:30 +03:00
2019-06-16 16:32:09 +03:00
2019-06-16 16:30:43 +03:00
2019-06-16 17:13:03 +03:00
2019-06-16 16:30:43 +03:00

logo

  • Frontend here
  • Backend there

If you want your Zone to be validated by Cosmic Salmon, reach out to @folexeyy on Telegram

How to run

sbt assembly
java -jar ./target/scala-2.12/http-scala-api-assembly-0.1.jar

API

Retreieve running apps

curl http://salmon.fluence.one:8080/apps
[
  {
    "name" : "nameservice",
    "network" : "namechain",
    "binaryHash" : "QmQ69JoPDaKFpPSbWvvUGRGG5E83u6nTP2hRegmCoa6aW5",
    "consensusHeight" : 69386,
    "validatorsCount" : 4
  },
  {
    "name" : "commercionetwork",
    "network" : "commercio-testnet1001",
    "binaryHash" : "QmepV645qHM9XR97KiK7Bvd2jjK3MiKTGbq8cYm7izRyQK",
    "consensusHeight" : 38783,
    "validatorsCount" : 4
  }
]

Add your app on validation

  • nameservice - any name for your app
  • 207.154.210.117 - IP address of your validator node
  • 26657 - RPC port
  • QmQ69JoPDaKFpPSbWvvUGRGG5E83u6nTP2hRegmCoa6aW5 - IPFS hash of the Zone app binary (built against glibc)
curl http://salmon.fluence.one:8080/create/nameservice/207.154.210.117/26657/QmQ69JoPDaKFpPSbWvvUGRGG5E83u6nTP2hRegmCoa6aW5"

Stream validation results through websocket

JavaScript

var ws = new WebSocket("ws://localhost:8080/websocket/commercionetwork")
ws.onmessage = console.log

For shell, use websocat.

Description
No description provided
Readme Apache-2.0 614 KiB
Languages
JavaScript 84.3%
HTML 15.7%