snet-daemon

module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2018 License: MIT

README

snet-daemon

SingularityNET Daemon

Getting Started

These instructions are intended to facilitate the development and testing of SingularityNET Daemon. Users interested in deploying SingularityNET services using SingularityNET Daemon should install the appropriate binary as released.

Prerequisites
Installing
  • Clone the git repository
$ git clone git@github.com:singnet/snet-daemon.git
$ cd snet-daemon
  • Install development/test dependencies
$ ./scripts/install
Testing

A simple test script has been setup that does the following

  1. Generates a bip39 mnemonic
  2. Runs a ganache-cli test RPC with the generated mnemonic
  3. Deploys the required network singleton contracts (SingularityNetToken, AgentFactory, Registry) and creates an Agent contract instance
  4. Writes a daemon configuration file with the Agent contract address, generated mnemonic, and test RPC endpoint
  5. Runs an instance of snetd
  6. Creates and funds a Job contract instance
  7. Signs the job invocation
  8. Calls the daemon using the predetermined job address and job signature
  9. Cleans up
  • Invoke the test script
$ ./scripts/test

Release

Precompiled binaries are published with each release.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Directories

Path Synopsis
resources
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL