Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gardener demo #39

Closed
imacoindev opened this issue Jul 11, 2019 · 3 comments
Closed

Gardener demo #39

imacoindev opened this issue Jul 11, 2019 · 3 comments

Comments

@imacoindev
Copy link

We could create a web app that demonstrates what Gardener can do to new users and developers. This is what I suggest as a high level overview of the app:

  • Persistent: The app is online all the time and can be accessed via browser.
  • Allows the user to request data by sending a request to a deployed Gardener smart contract and returns the result of the request to the browser to be seen by the user. It is a live demo of what a Gardener instance can do.
  • It demonstrates different data sources. For example, allows to select what type of data the user wants (random, url, etc). The amount of data sources can be increased as we integrate more to the server.
  • It demonstrates different proofs that can be used to verify the validity of data. For example, user can choose to use IntelSGX or NotaryTLS to verify a data source.
  • The on-chain contents are deployed in Ethereum testnet. Our requests are visible in the testnet for anyone to verify that they are actually executed on-chain.

Similar type of demo has been done by Provable: http://app.provable.xyz/home/test_query

Some user stories(all features are not ready, but we should be able to add them to the app later):

  • As a user I can have a simple demonstration of obtaining data using Gardener.
  • As a user I can select different data sources
  • As a user I can select different proofs to validate the data that is delivered is not tampered with.
  • As a user I can see that the style and design of the site matches that of https://gardeneroracle.io/
  • The demo can be accessed through demo.gardeneroracle.io
@lmazurowski
Copy link

lmazurowski commented Jul 12, 2019

According to the sentence:

Allows the user to request data by sending a request to a deployed Gardener smart contract and returns the result of the request to the browser to be seen by the user. It is a live demo of what a Gardener instance can do.

I think we should prepare separate app for this, since Monitor is an optional web app just for showing requests taken from the Gardener Server via WS.

We can prepare monorepo (for example with lerna) for the Monitor AND (lets name it - the Console) to provide more modularity and not to change behaviour of the Monitor.

There will be of course some work with the REST Api on the server side, since we must support queries from the Console.

In this way we can just add another module to the current architecture.

This should be discussed with @kss-espeo , @starspire .

@kss-espeo
Copy link
Collaborator

kss-espeo commented Jul 12, 2019

I think we should prepare separate app for this, since Monitor is an optional web app just for showing requests taken from the Gardener Server via WS.

Agreed.

There will be of course some work with the REST Api on the server side, since we must support queries from the Console.

I believe we could try to leverage some web plugin that allows interactions with Smart Contracts via a browser. https://metamask.io/ comes to mind. That way there is no need to add code to Gardener, and instead we can just interact with a Gardener instance that is deployed on a test Ethereum network. Still, we need to get output from monitor so maybe some REST interface will be needed. This needs some careful consideration though, as it introduces a potential security risk.

In this way we can just add another module to the current architecture.

If possible, I'd prefer to keep such app completely distinct from Gardener stack. If we really need to couple Gardener and that Console app, then I'd like to keep that coupling to a minimum. Then again, the more we talk about it the more I think we need @starspire eyes on it before making decisions ;)

@kwedrowicz
Copy link
Collaborator

Guys, how about integrating console into Gardener Monitor as a single repo? We can utilize Metamask to get given user account and moreover we do not need implement any REST interface as Monitor operates directly on blockchain and any query request also should be performed the same way (direct blockchain communication).

@imacoindev imacoindev added this to In progress in Gardener Board Jul 25, 2019
@imacoindev imacoindev moved this from In progress to Waiting for review in Gardener Board Sep 6, 2019
@imacoindev imacoindev moved this from Waiting for review to Done in Gardener Board Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

4 participants