Alpha implementation of SingularityNET daemon for hosting AI services on the SNET decentralized network.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 5ec23d9 May 29, 2018

README.md

alpha-daemon

Alpha implementation of the SingularityNET daemon

Getting Started

These instructions are intended to facilitate the development and testing of the alpha SingularityNET Daemon. Users interested in developing a service for use on the SingularityNet alpha should install the package as published (we have created a simple image classification service as an example).

Prerequisites

Installing

  • Clone the git repository
$ git clone git@github.com:singnet/alpha-daemon.git
$ cd alpha-daemon
  • Install development/test blockchain dependencies
$ ./scripts/blockchain install
  • Install the package in development/editable mode
$ pip install -e .

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 RPC passthrough on the daemon using the predetermined job address and job signature
  9. Cleans up
  • Invoke the test script
$ ./scripts/test

Release

This project is published to PyPI.

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.