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
Plugable coins API #2168
Conversation
6cfa0e3
to
4f2a898
Compare
30940c6
to
c55954d
Compare
8b6d607
to
e3843e8
Compare
app/models/deposit.rb
Outdated
AMQPQueue.enqueue(:deposit_collection, id: id) | ||
end | ||
end | ||
AMQPQueue.enqueue(:deposit_collection_fees, id: id) if coin? && collect_fee |
There was a problem hiding this comment.
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
Outdated |
108db1d
to
f939e2a
Compare
4d5f833
to
23d9e37
Compare
…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
39a71d7
to
0d42e44
Compare
app/services/blockchain_service.rb
Outdated
@blockchain = blockchian | ||
@adapter = Peatio::Blockchain.registry[blockchian.client.to_sym] | ||
@adapter.configure(server: @blockchain.server, | ||
currencies: @blockchain.currencies.map(&:to_blockchain_api_settings)) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and enabled here too
Finalization todo list:
|
Finalization todo list:
closed #2045
closes #2155