One coin currency may have one coin deposit
- Currency record
- DepositChannel record
- Deposit inheritable model
- Deposit inheritable controller and views
e.g. add litecoin currency and deposit
- id: [uniq number]
key: litecoin
code: ltc
coin: true
rpc: http://username:password@host:port
- id: [uniq number]
key: litecoin
min_confirm: 1
max_confirm: 6
module Deposits
class Litecoin < ::Deposit
include ::AasmAbsolutely
include ::Deposits::Coinable
end
end
module Private
module Deposits
class LitecoinsController < BaseController
include ::Deposits::CtrlCoinable
end
end
end
deposits_litecoins POST /deposits/litecoins(.:format) private/deposits/litecoins#create
new_deposits_litecoin GET /deposits/litecoins/new(.:format) private/deposits/litecoins#new