Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

BitskiCo/bitski-truffle-provider

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Bitski Truffle Provider

Note: This package is no longer necessary.

Use bitski-node instead. See the README for more information.

To use Bitski as your Truffle wallet, run npm install --save-dev bitski-truffle-provider.

Then set up your truffle.js to look something like this:

const BitskiTruffleProvider = require('bitski-truffle-provider');

const bitskiCredentials = {
  client: {
    id: '<YOUR CLIENT ID>',
    secret: '<YOUR CLIENT SECRET>'
  },
  auth: {
    tokenHost: "https://account.bitski.com/",
    tokenPath: "/oauth2/token"
  }
};

module.exports = {
  networks: {
    mainnet: {
      network_id: '1',
      provider: BitskiTruffleProvider("mainnet", bitskiCredentials),
    },
    kovan: {
      network_id: '42',
      provider: BitskiTruffleProvider("kovan", bitskiCredentials),
    },
    rinkeby: {
      network_id: '4',
      provider: BitskiTruffleProvider("rinkeby", bitskiCredentials),
    },
    development: {
      host: "localhost",
      port: 7545,
      network_id: "*"
    }
  }
};

Now you can run Truffle!

About

Bitski Web3 Provider for Truffle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published