Giter Club home page Giter Club logo

devbots__backend's People

Contributors

jamesdaus avatar zorro909 avatar

Watchers

 avatar  avatar  avatar  avatar

devbots__backend's Issues

Leaderboard

Implement a Score Database for Weekly/Monthly/All-Time Leaderboards

Direct API Documentation can be found here.
Main Wiki Entry is here

Goals:

  • Create 3 new Database Tables
  • Implement the 3 API Endpoints
  • Reset Weekly/Monthly Leaderboards on Schedule

Generic MetaTransaction Relay Service

A new API Endpoint Group /relay that accepts MetaTransactions for DevBots which are signed using EIP-712, and sends them to the Blockchain on the users behalf.

POST /relay/transaction
Accepts TransactionRelayRequest Object:
- Address signer
- Address contract
- BigInteger chainID
- BigInteger nonce
- bytes data
- bytes innerMessageHash (usually "0x" == empty)
- bytes signature
Conditions:

  • contract address must be the Adress of one of DevBots smart contracts (specified in config)
  • chainId needs to equal the chainId of the current connected chain (web3j)
  • nonce needs to be validated against the relayer smart contract (must equal getNonce(signer, lower128bits of nonce)
  • signature needs to be validated (EIP-712 structure needs to be rebuilt)
    Returns:
    onFailure:
    • errorCode + errorText
      onSuccess:
    • transactionHash

GET /relay/transaction?reference=[transactionHash]
Fetches status of a transaction
Returns wether the transaction has already been mined and similar relevant information. (block number etc.)

More Endpoints are gonna be needed here in the future for e.g. queueing or cancelling queued transactions etc. but that is currently out of scope.

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.