Giter Site home page Giter Site logo

alpha-daemon's Introduction

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 [email protected]: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.

alpha-daemon's People

Contributors

lcdupree avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.