Skip to content

ImanMousavi/Peatio-Infura

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Peatio::Infura

Peatio infura plugin for Openware stack

Create Gem

Clone this repository

git clone https://github.com/irmaster/Peatio-Infura.git

Enter peatio-infura folder and build image

docker build -t evinsoft/ruby-infura .

Run container

docker run --name infura_container -d evinsoft/ruby-infura

Enter container

docker exec -it infura_container bash

Build GEM

gem build peatio-infura.gemspec

Test GEM

 gem build *.gemspec --output=peatio-infura.gem
 gem install peatio-infura.gem

./bin/setup
./bin/console
client = Peatio::Infura::Client.new('https://kovan.infura.io/v3/186a22c7f0fe4dff998d57a823085ce4')
client.json_rpc(:eth_blockNumber)

Push GEM

gem push peatio-infura-0.1.5.gem

others Delete accidentaly added rubygem if the gem contains password, you should reset all passwords

gem yank -v 0.1.5 peatio-infura

Installation

Add this line to your application's Gemfile:

gem 'peatio-infura'

And then execute:

$ bundle

Or install it yourself as:

$ gem install peatio-infura

Usage

For Peatio Infura plugin integration you need to do the following steps:

Image Build.

  1. Add peatio-infura gem into your Gemfile.plugin
gem 'peatio-infura', '~> 0.2.0'
  1. Run bundle install for updating Gemfile.lock

  2. Build custom Peatio docker image with Infura plugin

  3. Push your image using docker push

  4. Update your deployment to use image with peatio-infura gem

Peatio Configuration.

  1. Create Infura Blockchain config example.

    • No additional steps are needed
  2. Create Infura Currency config example.

    • No additional steps are needed
  3. Create Infura Wallets config example(deposit and hot wallets are required).

    • No additional steps are needed

Development

Plugin development example.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rubykube/peatio-infura.

License

The gem is available as open source under the terms of the MIT License.

Consulting

You can contact Openware for finding certified vendors: Openware.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published