-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dockerized stellar_app and add instructions to run the spec/st…
…ellar_app locally instead
- Loading branch information
1 parent
dbd80a9
commit 5d0db27
Showing
13 changed files
with
149 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ruby-2.3.1 | ||
2.5.1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
StellarBase.configure do |c| | ||
c.modules = %i(bridge_callbacks withdraw) | ||
|
||
c.distribution_account = "G-DISTRIBUTION" | ||
|
||
c.on_bridge_callback = StellarBase::WithdrawalRequests::Process | ||
# c.check_bridge_callbacks_authenticity = false | ||
# c.check_bridge_callbacks_mac_payload = false | ||
# c.bridge_callbacks_mac_key = ENV["MAC_KEY"] | ||
|
||
# c.on_withdraw = ProcessWithdrawal | ||
c.withdrawable_assets = [ | ||
{ | ||
type: "crypto", | ||
network: "bitcoin", | ||
asset_code: "BTC", | ||
issuer: "G-ISSUER", | ||
fee_fixed: 0.001, | ||
} | ||
] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Rails.application.routes.draw do | ||
mount StellarBase::Engine => "/stellar_base" | ||
mount StellarBase::Engine => "/stellar" | ||
end |
22 changes: 22 additions & 0 deletions
22
...tellar_app/db/migrate/20180829075338_create_stellar_base_bridge_callbacks.stellar_base.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This migration comes from stellar_base (originally 20180816014433) | ||
class CreateStellarBaseBridgeCallbacks < ActiveRecord::Migration[5.1] | ||
def change | ||
create_table :stellar_base_bridge_callbacks do |t| | ||
t.string :operation_id, null: false | ||
t.string :from, null: false | ||
t.string :route | ||
t.decimal :amount, null: false | ||
t.string :asset_code | ||
t.string :asset_issuer | ||
t.string :memo_type | ||
t.string :memo | ||
t.string :data | ||
t.string :transaction_id | ||
t.index %i[asset_code asset_issuer], name: :index_stellar_base_bridge_callbacks_on_asset | ||
t.index :memo | ||
t.index :operation_id | ||
t.index :transaction_id | ||
t.timestamps | ||
end | ||
end | ||
end |
26 changes: 26 additions & 0 deletions
26
...lar_app/db/migrate/20180829075339_create_stellar_base_withdrawal_requests.stellar_base.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This migration comes from stellar_base (originally 20180816110314) | ||
class CreateStellarBaseWithdrawalRequests < ActiveRecord::Migration[5.1] | ||
def change | ||
create_table :stellar_base_withdrawal_requests do |t| | ||
t.string :asset_type, null: false | ||
t.string :asset_code, null: false | ||
t.string :dest, null: false | ||
t.string :issuer, null: false | ||
t.string :dest_extra | ||
t.string :account_id | ||
t.string :memo_type | ||
t.string :memo | ||
t.integer :eta | ||
t.decimal :min_amount, null: false, default: 0.0 | ||
t.decimal :max_amount | ||
t.decimal :fee_fixed, null: false, default: 0.0 | ||
t.decimal :fee_percent, null: false, default: 0.0 | ||
t.decimal :fee_network, null: false, default: 0.0 | ||
t.string :extra_info | ||
t.index([:asset_type, :asset_code], { | ||
name: :index_stellar_base_withdrawal_requests_on_asset, | ||
}) | ||
t.timestamps | ||
end | ||
end | ||
end |
12 changes: 12 additions & 0 deletions
12
.../migrate/20180829075340_unique_stellar_base_bridge_callbacks_operation_id.stellar_base.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This migration comes from stellar_base (originally 20180816135847) | ||
class UniqueStellarBaseBridgeCallbacksOperationId < ActiveRecord::Migration[5.1] | ||
def up | ||
remove_index :stellar_base_bridge_callbacks, :operation_id | ||
add_index :stellar_base_bridge_callbacks, :operation_id, unique: true | ||
end | ||
|
||
def down | ||
remove_index :stellar_base_bridge_callbacks, :operation_id | ||
add_index :stellar_base_bridge_callbacks, :operation_id | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters