|
|
@ -20,6 +20,9 @@ defmodule BlockScoutWeb.ExchangeRateChannelTest do |
|
|
|
|
|
|
|
|
|
|
|
ExchangeRates.init([]) |
|
|
|
ExchangeRates.init([]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Supervisor.terminate_child(Explorer.Supervisor, {ConCache, Explorer.Market.MarketHistoryCache.cache_name()}) |
|
|
|
|
|
|
|
Supervisor.restart_child(Explorer.Supervisor, {ConCache, Explorer.Market.MarketHistoryCache.cache_name()}) |
|
|
|
|
|
|
|
|
|
|
|
token = %Token{ |
|
|
|
token = %Token{ |
|
|
|
available_supply: Decimal.new("1000000.0"), |
|
|
|
available_supply: Decimal.new("1000000.0"), |
|
|
|
total_supply: Decimal.new("1000000.0"), |
|
|
|
total_supply: Decimal.new("1000000.0"), |
|
|
@ -76,6 +79,8 @@ defmodule BlockScoutWeb.ExchangeRateChannelTest do |
|
|
|
|
|
|
|
|
|
|
|
Market.bulk_insert_history(records) |
|
|
|
Market.bulk_insert_history(records) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Market.fetch_recent_history() |
|
|
|
|
|
|
|
|
|
|
|
topic = "exchange_rate:new_rate" |
|
|
|
topic = "exchange_rate:new_rate" |
|
|
|
@endpoint.subscribe(topic) |
|
|
|
@endpoint.subscribe(topic) |
|
|
|
|
|
|
|
|
|
|
|