-
Notifications
You must be signed in to change notification settings - Fork 59
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
rm mix based chch part 1 #1716
rm mix based chch part 1 #1716
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,6 @@ defmodule OMG.ChildChain.ReleaseTasks.SetFeeFeedAdapterOpts do | |
|
||
@app :omg_child_chain | ||
@config_key :fee_adapter | ||
@env_fee_adapter "FEE_ADAPTER" | ||
|
||
def init(args) do | ||
args | ||
|
@@ -33,7 +32,7 @@ defmodule OMG.ChildChain.ReleaseTasks.SetFeeFeedAdapterOpts do | |
adapter_config = config[@app][@config_key] | ||
|
||
updated_config = | ||
@env_fee_adapter | ||
"FEE_ADAPTER" | ||
|> System.get_env() | ||
|> parse_adapter_value() | ||
|> case do | ||
|
@@ -66,7 +65,9 @@ defmodule OMG.ChildChain.ReleaseTasks.SetFeeFeedAdapterOpts do | |
end | ||
|
||
defp configure_adapter(_not_feed_adapter) do | ||
configure_adapter({OMG.ChildChain.Fees.FeedAdapter, opts: []}) | ||
adapter = {OMG.ChildChain.Fees.FeedAdapter, opts: []} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is all getting deleted in the later PR no need to spend time reviewing anything omg_child_chain*/ |
||
_ = Logger.info("CONFIGURATION: App: #{@app} Key: #{@config_key} Value: #{inspect(adapter)}.") | ||
configure_adapter(adapter) | ||
end | ||
|
||
defp validate_integer(value) do | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,13 +29,19 @@ defmodule OMG.Eth.Fixtures do | |
@test_erc20_vault_id 2 | ||
|
||
deffixture eth_node do | ||
if Application.get_env(:omg_eth, :run_test_eth_dev_node, true) do | ||
{:ok, exit_fn} = DevNode.start() | ||
case System.get_env("DOCKER_GETH") do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in mix_based_childchain I set an env var so that I avoid starting and stoping geth |
||
nil -> | ||
if Application.get_env(:omg_eth, :run_test_eth_dev_node, true) do | ||
{:ok, exit_fn} = DevNode.start() | ||
|
||
on_exit(exit_fn) | ||
end | ||
on_exit(exit_fn) | ||
end | ||
|
||
:ok | ||
:ok | ||
|
||
_ -> | ||
:ok | ||
end | ||
end | ||
|
||
deffixture contract(eth_node) do | ||
|
@@ -46,7 +52,7 @@ defmodule OMG.Eth.Fixtures do | |
|
||
add_exit_queue = RootChainHelper.add_exit_queue(@test_eth_vault_id, "0x0000000000000000000000000000000000000000") | ||
|
||
{:ok, %{"status" => "0x1"}} = Support.DevHelper.transact_sync!(add_exit_queue) | ||
{:ok, %{"status" => _}} = Support.DevHelper.transact_sync!(add_exit_queue) | ||
|
||
:ok | ||
end | ||
|
@@ -57,7 +63,7 @@ defmodule OMG.Eth.Fixtures do | |
token_addr = contracts["CONTRACT_ERC20_MINTABLE"] | ||
|
||
# ensuring that the root chain contract handles token_addr | ||
{:ok, false} = has_exit_queue(@test_erc20_vault_id, token_addr) | ||
{:ok, _} = has_exit_queue(@test_erc20_vault_id, token_addr) | ||
{:ok, _} = DevHelper.transact_sync!(RootChainHelper.add_exit_queue(@test_erc20_vault_id, token_addr)) | ||
{:ok, true} = has_exit_queue(@test_erc20_vault_id, token_addr) | ||
|
||
|
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.
style changes