Code Monkey home page Code Monkey logo

eos-transit's Introduction

Transit - Wallet Access Layer for EOS blockchain networks.

This library is a small abstraction layer on top of eosjs this is aiming to assist the EOS dapp (decentralized app) developers with wallet communication (in order to sign the transactions) by providing a simple and intuitive API.

This allows developers to concentrate on building awesome apps instead of setting up eosjs and wallet connections.

Disclaimer: This library is in early alpha. The core API has stabilized but some changes and extension should be expected. We encourage developers to give it a try when building decentralized apps and to share any thoughts, doubts, and concerns. All feedback is highly appreciated.

๐Ÿ‘‰๐Ÿป Please see the "Quick Start" and thorough guide in the eos-transit package docs

Features

  • Easy to use API.
  • Managed wallet connection state tracking
  • Easily pluggable wallet providers (and easy to write your own)
  • TypeScript support
  • Small footprint (core is just ~9Kb minified and around 2.7Kb gzipped)

Packages

This is a monorepo that is managed with lerna. There are several packages maintained here:

Package Version Description
eos-transit 0.0.1 Transit core package
eos-transit-scatter-provider 0.0.1 Wallet provider for Scatter app
eos-transit-stub-provider 0.0.1 Stub wallet provider that does nothing, for demo and testing only

Contribution

Package development

  1. Make sure you have yarn installed.

  2. Install the dependencies with

    $ yarn install
    

    Note that before eos-transit, eos-transit-scatter-provider and eos-transit-stub-provider are published, they are managed by lerna along with packages themselves. That means, before running the examples, lerna should wire up all the dependencies and instead of running yarn install manually from this folder, the following commands should be run from the project root:

  3. Bootstrap the dependencies with

    $ yarn bootstrap
    

    This will make lerna install all the necessary dependencies for managed packages.

  4. Proceed with the development of a certain package (each package has its own set of commands to assist the development and build process).

Builds

To build all packages simultaneously, run the following command from the project root:

    $ yarn build-packages

This will perform both TypeScript compilation into lib folder and a minified production-ready UMD build into umd folder for each managed package.

Publishing

  1. First off, make sure the current state of package folders is consistent and packages that are about to be published are actually built (with yarn build-packages, see previous section). To make sure, you can run yarn pack command to create a tgz tarball of the package and inspect its contents (but make sure that doesn't leak to a published package, so cleanup that before publishing).

  2. Make sure you're logged into npm registry by running yarn login but note that this won't ask you a password (it will be asked upon publishing, since yarn doesn't maintain authenticated sessions with npm registry):

  3. Since this monorepo is managed with lerna, the latter is responsible for publishing too, so run

     $ lerna publish
    

    possibly proividing additional options if needed.

    Normally, this should guide you through version bumping process as well as creating and pushing new git version tags for each package that had been published.

eos-transit's People

Contributors

vasilioruzanni avatar warrickfitz avatar

Watchers

James Cloos avatar  avatar  avatar

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.