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.
- Add peatio-infura gem into your Gemfile.plugin
gem 'peatio-infura', '~> 0.2.0'
-
Run
bundle install
for updating Gemfile.lock -
Build custom Peatio docker image with Infura plugin
-
Push your image using
docker push
-
Update your deployment to use image with peatio-infura gem
Peatio Configuration.
-
Create Infura Blockchain config example.
- No additional steps are needed
-
Create Infura Currency config example.
- No additional steps are needed
-
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