npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

airbitz-currency-shitcoin

v0.1.2

Published

Airbitz Shitcoin currency plugin

Downloads

1

Readme

Airbitz Shitcoin Currency Plugin

Implement Shitcoin transactions using the Airbitz currency plugin API The API can be found here

Installing

Since this package is not on NPM, you will have to do things manually:

  1. Clone this project into a directory next to your project.

  2. Add to your project's package.json:

    cd ../your-project
    npm install git+ssh://[email protected]/Airbitz/airbitz-currency-dash.git

Usage

Initialize the plugin:

import { ShitcoinPlugin } from `airbitz-currency-dash`

ShitcoinPlugin.makePlugin({
  io: yourPlatformSpecifcIo
}).then(shitcoinPlugin => {

})

Now you can pass shitcoinPlugin to airbitz-core-js.

Developing the library

The following instructions are for those looking to develop this library or use it as a template to build a new currency-plugin for Airbitz.

  1. Install cli-tool, dependencies, & build the library:

    git clone [email protected]:Airbitz/airbitz-cli.git
    git clone [email protected]:Airbitz/airbitz-cli-react-native.git
    git clone [email protected]:Airbitz/airbitz-currency-shitcoin.git
    cd airbitz-currency-shitcoin
    npm install
    cd ../airbitz-cli
    npm install
    cd ../airbitz-cli-react-native
    npm install
    npm run updot

updot is a tool to copy needed files from peer dependencies into the node_modules of the project it is run in. This replaces the need for npm link which is broken in React Native. In this setup, it will copy airbitz-cli and airbitz-currency-shitcoin into airbitz-cli-react-native/node_modules. During development, run npm run updot after making any changes to airbitz-currency-shitcoin or airbitz-cli

The CLI mobile app uses React Native and iOS/Android. As of 2017-08-08, you will need to use iOS/Xcode to run the CLI tool. Install React Native first:

npm install -g create-react-native-app

Launch Xcode and open the project airbitz-cli-react-native/ios/airbitz_cli.xcodeproj.

Run the app in the simulator by clicking the Play button on xcode. You'll then have a mobile app launch in the simulator with a command line prompt to execute CLI commands. CLI command documentation can be seen by running airbitz-cli help from within the airbitz-cli project directory.

Example CLI commands:

| Command | Description | | --- | --- | | tx-info shitcoin | Get the currencyInfo object from the plugin | | tx-make-engine shitcoin 'wallet:shitcoin' | Call makeEngine() method of the shitcoin plugin and createMasterKeys() with a wallet:shitcoin walletType | | tx-start-engine | Call startEngine() method of the plugin called in tx-make-engine | | tx-balance DASH | Call getBalance('TRD') | | tx-get-address | Call getAddress() | | tx-spend 3_pub1091290ur28u3t 15000 TRD | Spend 1.5 shitcoin to given address | | tx-transactions | Call getTransactions() |

These CLI commands can be used to test the actual routines exported by the currency-plugin