Update repo organization

pull/3789/head
Viktor Baranov 4 years ago
parent ec5017e238
commit 1fe3016a18
  1. 1785
      CHANGELOG.md
  2. 14
      CONTRIBUTING.md
  3. 2
      README.md
  4. 2
      apps/block_scout_web/assets/package.json
  5. 4
      apps/block_scout_web/lib/block_scout_web/templates/layout/_footer.html.eex
  6. 6
      apps/block_scout_web/lib/block_scout_web/views/layout_view.ex
  7. 2
      apps/block_scout_web/mix.exs
  8. 4
      apps/block_scout_web/test/block_scout_web/views/layout_view_test.exs
  9. 2
      apps/explorer/lib/explorer/chain.ex
  10. 2
      apps/explorer/lib/explorer/chain/import/runner/internal_transactions.ex
  11. 2
      apps/explorer/lib/explorer/chain/transaction.ex
  12. 2
      apps/explorer/lib/explorer/token/metadata_retriever.ex
  13. 2
      apps/explorer/mix.exs
  14. 2
      apps/explorer/package.json
  15. 2
      apps/indexer/README.md

File diff suppressed because it is too large Load Diff

@ -1,6 +1,6 @@
## Contributing ## Contributing
1. Fork it ( https://github.com/poanetwork/blockscout/fork ) 1. Fork it ( https://github.com/blockscout/blockscout/fork )
2. Create your feature branch (`git checkout -b my-new-feature`) 2. Create your feature branch (`git checkout -b my-new-feature`)
3. Write tests that cover your work 3. Write tests that cover your work
4. Commit your changes (`git commit -am 'Add some feature'`) 4. Commit your changes (`git commit -am 'Add some feature'`)
@ -21,8 +21,8 @@
### Enhancements ### Enhancements
Enhancements cover all changes that make users lives better: Enhancements cover all changes that make users lives better:
* [feature requests filed as issues](https://github.com/poanetwork/blockscout/labels/enhancement) that impact end-user [contributors](https://github.com/poanetwork/blockscout/labels/contributor) and [developers](https://github.com/poanetwork/blockscout/labels/developer) * [feature requests filed as issues](https://github.com/blockscout/blockscout/labels/enhancement) that impact end-user [contributors](https://github.com/blockscout/blockscout/labels/contributor) and [developers](https://github.com/blockscout/blockscout/labels/developer)
* changes to the [architecture](https://github.com/poanetwork/blockscout/labels/architecture) that make it easier for contributors (in the GitHub sense), dev-ops, and deployers to maintain and run blockscout * changes to the [architecture](https://github.com/blockscout/blockscout/labels/architecture) that make it easier for contributors (in the GitHub sense), dev-ops, and deployers to maintain and run blockscout
### Bug Fixes ### Bug Fixes
@ -49,12 +49,12 @@ There is a [PULL_REQUEST_TEMPLATE.md](PULL_REQUEST_TEMPLATE.md) for this reposit
- [ ] Title - [ ] Title
- [ ] Prefix labels if you don't have permissions to set labels in the GitHub interface. - [ ] Prefix labels if you don't have permissions to set labels in the GitHub interface.
* (bug) for [bug](https://github.com/poanetwork/blockscout/labels/bug) fixes * (bug) for [bug](https://github.com/blockscout/blockscout/labels/bug) fixes
* (enhancement) for [enhancement](https://github.com/poanetwork/blockscout/labels/enhancement)s * (enhancement) for [enhancement](https://github.com/blockscout/blockscout/labels/enhancement)s
* (incompatible changes) for [incompatible changes](https://github.com/poanetwork/blockscout/labels/incompatible%20changes), such a refactor that removes functionality, changes arguments, or makes something required that wasn't previously. * (incompatible changes) for [incompatible changes](https://github.com/blockscout/blockscout/labels/incompatible%20changes), such a refactor that removes functionality, changes arguments, or makes something required that wasn't previously.
- [ ] Single sentence summary of change - [ ] Single sentence summary of change
* What was fixed for bugs * What was fixed for bugs
* What was added for enhancements * What was added for enhancements
* What was changed for incompatible changes * What was changed for incompatible changes
See [#255](https://github.com/poanetwork/blockscout/pull/255) as an example PR that uses GitHub keywords and a Changelog to explain multiple changes. See [#255](https://github.com/blockscout/blockscout/pull/255) as an example PR that uses GitHub keywords and a Changelog to explain multiple changes.

@ -2,7 +2,7 @@
<p align="center">Blockchain Explorer for inspecting and analyzing EVM Chains.</p> <p align="center">Blockchain Explorer for inspecting and analyzing EVM Chains.</p>
<div align="center"> <div align="center">
[![Blockscout](https://github.com/poanetwork/blockscout/workflows/Blockscout/badge.svg?branch=master)](https://github.com/poanetwork/blockscout/actions) [![Join the chat at https://gitter.im/poanetwork/blockscout](https://badges.gitter.im/poanetwork/blockscout.svg)](https://gitter.im/poanetwork/blockscout?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Blockscout](https://github.com/blockscout/blockscout/workflows/Blockscout/badge.svg?branch=master)](https://github.com/blockscout/blockscout/actions) [![Join the chat at https://gitter.im/poanetwork/blockscout](https://badges.gitter.im/poanetwork/blockscout.svg)](https://gitter.im/poanetwork/blockscout?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
</div> </div>

@ -1,7 +1,7 @@
{ {
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/poanetwork/blockscout.git" "url": "git+https://github.com/blockscout/blockscout.git"
}, },
"private": true, "private": true,
"name": "blockscout", "name": "blockscout",

@ -19,7 +19,7 @@
<div class="col-xs-12 col-lg-3"> <div class="col-xs-12 col-lg-3">
<p class="footer-info-text"><%= gettext("Blockscout is a tool for inspecting and analyzing EVM based blockchains. Blockchain explorer for Ethereum Networks.") %></p> <p class="footer-info-text"><%= gettext("Blockscout is a tool for inspecting and analyzing EVM based blockchains. Blockchain explorer for Ethereum Networks.") %></p>
<div class="footer-social-icons"> <div class="footer-social-icons">
<a href="https://github.com/poanetwork/blockscout" rel="noreferrer" target="_blank" class="footer-social-icon" title='<%= gettext("Github") %>'> <a href="https://github.com/blockscout/blockscout" rel="noreferrer" target="_blank" class="footer-social-icon" title='<%= gettext("Github") %>'>
<i class="fab fa-github"></i> <i class="fab fa-github"></i>
</a> </a>
<a href="https://www.twitter.com/blockscoutcom/" rel="noreferrer" target="_blank" class="footer-social-icon" title='<%= gettext("Twitter") %>'> <a href="https://www.twitter.com/blockscoutcom/" rel="noreferrer" target="_blank" class="footer-social-icon" title='<%= gettext("Twitter") %>'>
@ -35,7 +35,7 @@
<h3>BlockScout</h3> <h3>BlockScout</h3>
<ul> <ul>
<li><a href="<%= issue_link(@conn) %>" rel="noreferrer" class="footer-link" target="_blank"><%= gettext("Submit an Issue") %></a></li> <li><a href="<%= issue_link(@conn) %>" rel="noreferrer" class="footer-link" target="_blank"><%= gettext("Submit an Issue") %></a></li>
<li><a href="https://github.com/poanetwork/blockscout" rel="noreferrer" class="footer-link"><%= gettext("Contribute") %></a></li> <li><a href="https://github.com/blockscout/blockscout" rel="noreferrer" class="footer-link"><%= gettext("Contribute") %></a></li>
<li><a href="https://gitter.im/poanetwork/blockscout" rel="noreferrer" class="footer-link"><%= gettext("Chat") %></a></li> <li><a href="https://gitter.im/poanetwork/blockscout" rel="noreferrer" class="footer-link"><%= gettext("Chat") %></a></li>
<li><a href="https://forum.poa.network/c/blockscout" rel="noreferrer" class="footer-link"><%= gettext("Support") %></a></li> <li><a href="https://forum.poa.network/c/blockscout" rel="noreferrer" class="footer-link"><%= gettext("Support") %></a></li>
</ul> </ul>

@ -7,7 +7,7 @@ defmodule BlockScoutWeb.LayoutView do
import BlockScoutWeb.AddressView, only: [from_address_hash: 1] import BlockScoutWeb.AddressView, only: [from_address_hash: 1]
@issue_url "https://github.com/poanetwork/blockscout/issues/new" @issue_url "https://github.com/blockscout/blockscout/issues/new"
@default_other_networks [ @default_other_networks [
%{ %{
title: "POA", title: "POA",
@ -20,7 +20,7 @@ defmodule BlockScoutWeb.LayoutView do
}, },
%{ %{
title: "xDai", title: "xDai",
url: "https://blockscout.com/poa/xdai" url: "https://blockscout.com/xdai/mainnet"
}, },
%{ %{
title: "Ethereum Classic", title: "Ethereum Classic",
@ -120,7 +120,7 @@ defmodule BlockScoutWeb.LayoutView do
nil nil
release_link_env_var == "" || release_link_env_var == nil -> release_link_env_var == "" || release_link_env_var == nil ->
"https://github.com/poanetwork/blockscout/releases/tag/" <> version "https://github.com/blockscout/blockscout/releases/tag/" <> version
true -> true ->
release_link_env_var release_link_env_var

@ -154,7 +154,7 @@ defmodule BlockScoutWeb.Mixfile do
[ [
maintainers: ["POA Networks Ltd."], maintainers: ["POA Networks Ltd."],
licenses: ["GPL 3.0"], licenses: ["GPL 3.0"],
links: %{"GitHub" => "https://github.com/poanetwork/blockscout"} links: %{"GitHub" => "https://github.com/blockscout/blockscout"}
] ]
end end
end end

@ -67,7 +67,7 @@ defmodule BlockScoutWeb.LayoutViewTest do
assert LayoutView.release_link("v1.3.4-beta") == assert LayoutView.release_link("v1.3.4-beta") ==
{:safe, {:safe,
~s(<a href="https://github.com/poanetwork/blockscout/releases/tag/v1.3.4-beta" class="footer-link" target="_blank">v1.3.4-beta</a>)} ~s(<a href="https://github.com/blockscout/blockscout/releases/tag/v1.3.4-beta" class="footer-link" target="_blank">v1.3.4-beta</a>)}
end end
test "use the default value when empty release_link env configured for it" do test "use the default value when empty release_link env configured for it" do
@ -75,7 +75,7 @@ defmodule BlockScoutWeb.LayoutViewTest do
assert LayoutView.release_link("v1.3.4-beta") == assert LayoutView.release_link("v1.3.4-beta") ==
{:safe, {:safe,
~s(<a href="https://github.com/poanetwork/blockscout/releases/tag/v1.3.4-beta" class="footer-link" target="_blank">v1.3.4-beta</a>)} ~s(<a href="https://github.com/blockscout/blockscout/releases/tag/v1.3.4-beta" class="footer-link" target="_blank">v1.3.4-beta</a>)}
end end
test "use the enviroment release link when it's configured" do test "use the enviroment release link when it's configured" do

@ -5060,7 +5060,7 @@ defmodule Explorer.Chain do
|> normalize_balances_by_day() |> normalize_balances_by_day()
end end
# https://github.com/poanetwork/blockscout/issues/2658 # https://github.com/blockscout/blockscout/issues/2658
defp replace_last_value(items, %{value: value, timestamp: timestamp}) do defp replace_last_value(items, %{value: value, timestamp: timestamp}) do
List.replace_at(items, -1, %{date: Date.convert!(timestamp, Calendar.ISO), value: value}) List.replace_at(items, -1, %{date: Date.convert!(timestamp, Calendar.ISO), value: value})
end end

@ -265,7 +265,7 @@ defmodule Explorer.Chain.Import.Runner.InternalTransactions do
# - there are internal txs with a different block number than their transactions # - there are internal txs with a different block number than their transactions
# Returns block numbers where any of these issues is found # Returns block numbers where any of these issues is found
# Note: the case "# - there are no transactions for some internal transactions" was removed because it caused the issue https://github.com/poanetwork/blockscout/issues/3367 # Note: the case "# - there are no transactions for some internal transactions" was removed because it caused the issue https://github.com/blockscout/blockscout/issues/3367
# when the last block with transactions loses consensus in endless loop. In order to return this case: # when the last block with transactions loses consensus in endless loop. In order to return this case:
# common_tuples = MapSet.intersection(required_tuples, candidate_tuples) #should be added # common_tuples = MapSet.intersection(required_tuples, candidate_tuples) #should be added
# |> MapSet.difference(internal_transactions_tuples) should be replaced with |> MapSet.difference(common_tuples) # |> MapSet.difference(internal_transactions_tuples) should be replaced with |> MapSet.difference(common_tuples)

@ -228,7 +228,7 @@ defmodule Explorer.Chain.Transaction do
# A transient field for deriving old block hash during transaction upserts. # A transient field for deriving old block hash during transaction upserts.
# Used to force refetch of a block in case a transaction is re-collated # Used to force refetch of a block in case a transaction is re-collated
# in a different block. See: https://github.com/poanetwork/blockscout/issues/1911 # in a different block. See: https://github.com/blockscout/blockscout/issues/1911
field(:old_block_hash, Hash.Full) field(:old_block_hash, Hash.Full)
timestamps() timestamps()

@ -250,7 +250,7 @@ defmodule Explorer.Token.MetadataRetriever do
defp atomized_key("18160ddd"), do: :total_supply defp atomized_key("18160ddd"), do: :total_supply
# It's a temp fix to store tokens that have names and/or symbols with characters that the database # It's a temp fix to store tokens that have names and/or symbols with characters that the database
# doesn't accept. See https://github.com/poanetwork/blockscout/issues/669 for more info. # doesn't accept. See https://github.com/blockscout/blockscout/issues/669 for more info.
defp handle_invalid_strings(%{name: name, symbol: symbol} = contract_functions, contract_address_hash) do defp handle_invalid_strings(%{name: name, symbol: symbol} = contract_functions, contract_address_hash) do
name = handle_invalid_name(name, contract_address_hash) name = handle_invalid_name(name, contract_address_hash)
symbol = handle_invalid_symbol(symbol) symbol = handle_invalid_symbol(symbol)

@ -134,7 +134,7 @@ defmodule Explorer.Mixfile do
[ [
maintainers: ["POA Networks Ltd."], maintainers: ["POA Networks Ltd."],
licenses: ["GPL 3.0"], licenses: ["GPL 3.0"],
links: %{"GitHub" => "https://github.com/poanetwork/blockscout"} links: %{"GitHub" => "https://github.com/blockscout/blockscout"}
] ]
end end
end end

@ -1,7 +1,7 @@
{ {
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/poanetwork/blockscout.git" "url": "git+https://github.com/blockscout/blockscout.git"
}, },
"private": true, "private": true,
"name": "blockscout", "name": "blockscout",

@ -92,7 +92,7 @@ After all deployed instances get all needed data, these fetchers should be depre
- `uncataloged_token_transfers`: extracts token transfers from logs, which previously weren't parsed due to unknown format - `uncataloged_token_transfers`: extracts token transfers from logs, which previously weren't parsed due to unknown format
- `uncles_without_index`: adds previously unfetched `index` field for unfetched blocks in `block_second_degree_relations` - `uncles_without_index`: adds previously unfetched `index` field for unfetched blocks in `block_second_degree_relations`
- `blocks_transactions_mismatch`: refetches each block once and revokes consensus to those whose transaction number mismatches with the number currently stored. This is meant to force the correction of a race condition that caused successfully fetched transactions to be overwritten by a following non-consensus block: [#1911](https://github.com/poanetwork/blockscout/issues/1911). - `blocks_transactions_mismatch`: refetches each block once and revokes consensus to those whose transaction number mismatches with the number currently stored. This is meant to force the correction of a race condition that caused successfully fetched transactions to be overwritten by a following non-consensus block: [#1911](https://github.com/blockscout/blockscout/issues/1911).
## Memory Usage ## Memory Usage

Loading…
Cancel
Save