Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.
/ alpha-daemon Public archive

Alpha implementation of SingularityNET daemon for hosting AI services on the SNET decentralized network.

License

Notifications You must be signed in to change notification settings

singnet/alpha-daemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Alpha implementation of SingularityNET daemon for hosting AI services on the SNET decentralized network.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published