Skip to content

Commit

Permalink
add new registry
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaichuk committed Sep 12, 2023
1 parent 87c9110 commit 02f7fde
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/peatio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ module Peatio
require_relative "peatio/upstream/base"
require_relative "peatio/upstream/registry"

require_relative "peatio/ramp/base"
require_relative "peatio/ramp/registry"


require_relative "peatio/transaction"
require_relative "peatio/block"
end
15 changes: 15 additions & 0 deletions lib/peatio/ramp/base.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

module Peatio
module Ramp
class Base
def ramp_on_transaction(currency_id, address, options = {})
method_not_implemented
end

def ramp_off_transaction(currency_id, options = {})
method_not_implemented
end
end
end
end
14 changes: 14 additions & 0 deletions lib/peatio/ramp/registry.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true

module Peatio
module Ramp
class << self
def registry
@registry ||= Registry.new
end

class Registry < Peatio::AdapterRegistry
end
end
end
end

0 comments on commit 02f7fde

Please sign in to comment.