Giter Site home page Giter Site logo

cleancoindev / 0x-relayer-registry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from notegio/0x-relayer-registry

0.0 0.0 0.0 4.15 MB

A collection of relayers using 0x

Home Page: https://0xproject.com/

License: Apache License 2.0

TypeScript 100.00%

0x-relayer-registry's Introduction

0x Relayer Registry

A collection of relayers built on 0x and their corresponding metadata.

Addition to this repository is not a requirement to use the 0x Protocol. It's intended to make it easier for traders and developers to find SRA-Compliant relayers and take advantage of networked liquidity, as well as for users to find a relayer to start trading on.

Usage

Option A. Clone this repo and import relayers.json into your own project or
Option B. Get the latest version by fetching it directly from this repo $ curl -i -H "Accept: application/json" https://api.github.com/repos/0xProject/0x-relayer-registry/contents/relayers.json?client_id={CLIENT_ID}&client_secret={CLIENT_SECRET}

Entries that have values for sra_http_endpoint or sra_ws_endpoint comply with the Standard Relayer API. These endpoints can be easily queried using 0x Connect.

Submission Process

  1. Fork this repository.
  2. Add your logo image in a web-safe format (GIF, JPEG, or PNG) to the images\logos folder.
  3. Add a header image for promotional display in the 0x portal in a web-safe format (GIF, JPEG, or PNG) to the images\headers folder. The header image should be 683x384 or larger, following a 16:9 ratio.
  4. Add an entry to relayers.json that complies with the Relayer JSON Schema in schemas.ts
  5. Install yarn and run yarn install
  6. Run yarn test to verify that the updated relayers.json file passes schema validation.
  7. Submit PR for approval

A sample submission:

{
    "name": "Sample Relayer",
    "homepage_url": "https://asamplewebsite.com",
    "app_url": "https://app.asamplewebsite.com",
    "header_img": "samplerelayerheader.png",
    "logo_img": "samplerelayerlogo.png",
    "networks": [
        {
            "networkId": 1,
            "sra_http_endpoint": "https://api.asamplewebsite.com/",
            "sra_ws_endpoint": "ws://api.asamplewebsite.com",
            "static_order_fields": {
                "fee_recipient_addresses": ["0x1111111111111111111111111111111111111111"]
            }
        }
    ]
}

A full list of permitted fields can be found in the schemas.ts file.

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.