GithubHelp home page GithubHelp logo

nevermined-io / gateway-events Goto Github PK

View Code? Open in Web Editor NEW
0.0 8.0 0.0 124 KB

Gateway events handler agent dealing with Smart Contract events

License: Apache License 2.0

Dockerfile 1.18% Makefile 3.51% Shell 3.67% Python 91.64%

gateway-events's Introduction

banner

Nevermined Gateway Events

Provider's events handler agent dealing with Keeper Contract events

Docker Build Status Python package

Features

Monitors ServiceExecutionAgreement events and act as a provider agent to grant access and release reward for the publisher/provider. This is a critical part in the process of consuming data sets in the Nevermined Protocol network. Every provider in the network must run some sort of an events-handler to be able to fulfill the access condition of an Access service in an SEA .

This release only supports the Access service type that is defined in an Ocean DDO. More service types will be supported in the events-handler when they're added to the Ocean services.

Prerequisites

Python 3.6

Running Locally

First, clone this repository:

git clone [email protected]:nevermined-io/gateway-events.git
cd gateway-events/

Start a keeper node and other services of the ocean network:

git clone [email protected]:nevermined-io/tools.git
cd tools
bash start_nevermined.sh --no-commons --local-spree-node

Export environment variables PROVIDER_ADDRESS, PROVIDER_PASSWORD and PROVIDER_KEYFILE (or PROVIDER_ENCRYPTED_KEY). Use the values from the tox.ini file, or use your own. Instead of using keyfile and password, you can use the private key directly by setting the env var PROVIDER_KEY.

The most simple way to start is:

pip install -r requirements_dev.txt
export CONFIG_FILE=config.ini
./scripts/wait_for_migration_and_extract_keeper_artifacts.sh
./start_events_monitor.sh

Attribution

This project is based in the Ocean Protocol Events Handler. It keeps the same Apache v2 License and adds some improvements. See NOTICE file.

License

Copyright 2020 Keyko GmbH
This product includes software developed at
BigchainDB GmbH and Ocean Protocol (https://www.oceanprotocol.com/)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

gateway-events's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gateway-events's Issues

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.