GithubHelp home page GithubHelp logo

baitun / voteex Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 2.0 4.46 MB

๐Ÿ” Blockchain-based site reviews Chrome extension (part of Decentralized Web Hackathon)

License: MIT License

JavaScript 98.28% HTML 1.72%
react blockchain chrome-extension arweave fluence

voteex's Introduction

Blockchain-based site reviews Chrome extension

Chrome Extension screenshot

How to run

  • Run script
# build files to './dev'
# start webpack development server
$ npm run dev

For production:

# compress build folder to {manifest.name}.zip and crx
$ npm run build
$ npm run compress

Build with

Arweave

Default address is -uUlJ3b5YiY06C99aPBogOkxpECXMgkhm45ZugrdyHk Keyfile is loacated in keyfiles/example.json Passphrase is 12345678

Tx example: http://arweave.net/tx/CMUFSPIakmNfjWXmWlAbRZxJCTX5c-lMVcCc8x-QZgc

Fluence

ETH address is 0x3B3AC9B65c2f9602865f0E6d8EEcD468920938f7

How to work with it?

let contract = '0xeFF91455de6D4CF57C141bD8bF819E5f873c1A01'; // Fluence contract address
let appId = 252; // Deployed database id
let ethereumUrl = 'http://geth.fluence.one:8545'; // Ethereum light node URL

// Connect to your app
fluence.connect(contract, appId, ethereumUrl).then((s) => {
  console.log('Session created');
  window.session = s;
});
// Send a request
session.request('SET A 10');

// Send a request, and read its result
session
  .request('GET A')
  .result()
  .then((r) => {
    console.log('Result: ' + r.asString());
  });

Contributors โœจ

This project is part of Decentralized Web Hackathon, sponsored by fluence and arweave (Jun 22-23 2019, Minsk, Belarus).

Yury Savin
Yury Savin

๐Ÿ’ป
execc
execc

๐Ÿ’ป ๐Ÿ“ข
Yuliya Palamarchuk
Yuliya Palamarchuk

๐Ÿค”
AndreKuren
AndreKuren

๐Ÿค”

This project follows the all-contributors specification. Contributions of any kind welcome! If you have any questions, feel free to contact me via telegram: https://t.me/savinyurii

voteex's People

Contributors

baitun avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

voteex's Issues

Add ability to upload public key file

When user for the first time want to write review, we need to show him notification that he need to upload key.json and also instruction of how to create this key and recieve tokens.

Error in fluence

There is errors in all fluence methods.

Error: error on parsing value from response: {"info":"Responded for path hEPyp4s9ztnw/0","height":"4265"} err: TypeError: Cannot read property 'length' of undefined
    at error (webpack-internal:///104:29)
    at TendermintClient.eval (webpack-internal:///446:86)
    at Generator.next (<anonymous>)
    at fulfilled (webpack-internal:///446:27)

I do not know what is the cause of the error, so temporarily turned off the fluence.

@execc, if you have free time, could you see what is the cause of the error?

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.