Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugable coins API #2168

Merged
merged 90 commits into from May 27, 2019
Merged

Plugable coins API #2168

merged 90 commits into from May 27, 2019

Conversation

ysv
Copy link

@ysv ysv commented Apr 11, 2019

Finalization todo list:

  • Revert Wallet GATEWAY validation and usage (@mnaichuk)
  • Remove BlockchainAddress, use Hash instead (@mnaichuk)
  • Finish WalletService2 specs (@mnaichuk)
  • https://github.com/rubykube/peatio/pull/2168/files#r275769063 (@mnaichuk)
  • Build Exception hierarchy for Blockchain & Wallet
  • Add Peato::Blockchain::Abstact #load_balance
  • Replace Blockchain #blockchain_api with v2
  • Remove all currencies except btc eth & erc20 from specs
  • Implement Ethereum::Wallet adapter
  • Integrate substract_fee option into bitcoin with specs(@mnaichuk)
  • Update daemons to use WalletService2 & BlockchainService2
    • Blockchain daemon with specs(@mnaichuk)
    • Withdraw daemons with specs
  • Finalize TODOs
    • Remove unused resources/
    • Finish TODOs in specs
    • Uncomment wallet validation
  • Move core code to gem
  • Functional testing in microkube
    • Without plugins
    • With plugin
    • Final fixes
  • Finalize
    • Release peatio 0.5.2 and
    • Update peatio to 0.5.2 in peatio-litecoin
    • Release peatio-litecoin
    • Upeate peatio & peatio-litecoin gems in pr

closed #2045
closes #2155

@ysv ysv force-pushed the feature/plugable-blockchains-2 branch 3 times, most recently from 6cfa0e3 to 4f2a898 Compare April 11, 2019 15:16
@mnaichuk mnaichuk force-pushed the feature/plugable-blockchains-2 branch 2 times, most recently from 30940c6 to c55954d Compare April 15, 2019 09:00
spec/services/blockchain_service2_spec.rb Outdated Show resolved Hide resolved
spec/services/blockchain_service2_spec.rb Outdated Show resolved Hide resolved
spec/services/blockchain_service2_spec.rb Outdated Show resolved Hide resolved
spec/services/blockchain_service2_spec.rb Outdated Show resolved Hide resolved
@mnaichuk mnaichuk force-pushed the feature/plugable-blockchains-2 branch from 8b6d607 to e3843e8 Compare April 15, 2019 12:08
AMQPQueue.enqueue(:deposit_collection, id: id)
end
end
AMQPQueue.enqueue(:deposit_collection_fees, id: id) if coin? && collect_fee
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we still need to publish to deposit_collection if collect_fee is false

@ysv
Copy link
Author

ysv commented Apr 16, 2019

Outdated

@ysv ysv force-pushed the feature/plugable-blockchains-2 branch 2 times, most recently from 108db1d to f939e2a Compare April 16, 2019 16:39
@ysv ysv force-pushed the feature/plugable-blockchains-2 branch from 4d5f833 to 23d9e37 Compare April 26, 2019 13:39
@ysv ysv mentioned this pull request May 6, 2019
3 tasks
@ysv ysv added v2.2 and removed v2.1 labels May 6, 2019
@ysv ysv changed the title [WIP] Plugable currencies concept v2 Plugable coins API May 16, 2019
mnaichuk and others added 11 commits May 21, 2019 15:30
…opment doc (#2210)

* add local peatio-litecoin

* WIP Litecoin plugin integration

* Replace initializer/faraday with better-faraday gem

* Fix Dockerfile

* [WIP] Currency plugin development and integration doc

* [skip ci] [WIP] Plugin.md doc

* [skip cli] Minor md changes

* [skip cli] Minor md changes 2

* plugin.md rc-1

* Minor md changes:

* Minor md changes 4

* Add more examples

* Move coin specific doc to doc/currencies

* [skip ci] Rename to doc/currencies to doc/coins

* [ci skip] doc integration

* Use peatio-litecoin 0.1.0

* Mention in README

* Update plugins.md
@ysv ysv force-pushed the feature/plugable-blockchains-2 branch from 39a71d7 to 0d42e44 Compare May 21, 2019 12:33
@blockchain = blockchian
@adapter = Peatio::Blockchain.registry[blockchian.client.to_sym]
@adapter.configure(server: @blockchain.server,
currencies: @blockchain.currencies.map(&:to_blockchain_api_settings))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to add @blockchain.currencies.enabled.map(&:to_blockchain_api_settings)), @ysv ?

@wallet = wallet
@adapter = Peatio::Wallet.registry[wallet.gateway.to_sym]
@adapter.configure(wallet: @wallet.to_wallet_api_settings,
currency: @wallet.currency.to_blockchain_api_settings)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and enabled here too

@ysv ysv added PR: Approved and removed PR: WIP labels May 27, 2019
@ysv
Copy link
Author

ysv commented May 27, 2019

Finalization todo list:

  • Revert Wallet GATEWAY validation and usage (@mnaichuk)
  • Remove BlockchainAddress, use Hash instead (@mnaichuk)
  • Finish WalletService2 specs (@mnaichuk)
  • https://github.com/rubykube/peatio/pull/2168/files#r275769063 (@mnaichuk)
  • Build Exception hierarchy for Blockchain & Wallet
  • Add Peato::Blockchain::Abstact #load_balance
  • Replace Blockchain #blockchain_api with v2
  • Remove all currencies except btc eth & erc20 from specs
  • Implement Ethereum::Wallet adapter
  • Integrate substract_fee option into bitcoin with specs(@mnaichuk)
  • Update daemons to use WalletService2 & BlockchainService2
    • Blockchain daemon with specs(@mnaichuk)
    • Withdraw daemons with specs
  • Finalize TODOs
    • Remove unused resources/
    • Finish TODOs in specs
    • Uncomment wallet validation
  • Move core code to gem
  • Functional testing in microkube
    • Without plugins
    • With plugin
    • Final fixes
  • Finalize
    • Release peatio 0.5.2 and
    • Update peatio to 0.5.2 in peatio-litecoin
    • Release peatio-litecoin
    • Upeate peatio & peatio-litecoin gems in pr

closed #2045
closes #2155

@mod mod merged commit 5726edb into master May 27, 2019
@shal shal deleted the feature/plugable-blockchains-2 branch July 23, 2019 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

ERC20 Gas limit & Gas price Withdrawal bug
3 participants