Skip to content

Commit

Permalink
Update repo organization
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov committed Apr 8, 2021
1 parent ec5017e commit 1fe3016
Show file tree
Hide file tree
Showing 15 changed files with 917 additions and 916 deletions.
1,785 changes: 893 additions & 892 deletions CHANGELOG.md

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions CONTRIBUTING.md
@@ -1,6 +1,6 @@
## 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`)
3. Write tests that cover your work
4. Commit your changes (`git commit -am 'Add some feature'`)
Expand All @@ -21,8 +21,8 @@
### Enhancements

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)
* 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
* [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/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

Expand All @@ -49,12 +49,12 @@ There is a [PULL_REQUEST_TEMPLATE.md](PULL_REQUEST_TEMPLATE.md) for this reposit

- [ ] Title
- [ ] 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
* (enhancement) for [enhancement](https://github.com/poanetwork/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.
* (bug) for [bug](https://github.com/blockscout/blockscout/labels/bug) fixes
* (enhancement) for [enhancement](https://github.com/blockscout/blockscout/labels/enhancement)s
* (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
* What was fixed for bugs
* What was added for enhancements
* 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 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2,7 +2,7 @@
<p align="center">Blockchain Explorer for inspecting and analyzing EVM Chains.</p>
<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>

Expand Down
2 changes: 1 addition & 1 deletion apps/block_scout_web/assets/package.json
@@ -1,7 +1,7 @@
{
"repository": {
"type": "git",
"url": "git+https://github.com/poanetwork/blockscout.git"
"url": "git+https://github.com/blockscout/blockscout.git"
},
"private": true,
"name": "blockscout",
Expand Down
Expand Up @@ -19,7 +19,7 @@
<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>
<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>
</a>
<a href="https://www.twitter.com/blockscoutcom/" rel="noreferrer" target="_blank" class="footer-social-icon" title='<%= gettext("Twitter") %>'>
Expand All @@ -35,7 +35,7 @@
<h3>BlockScout</h3>
<ul>
<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://forum.poa.network/c/blockscout" rel="noreferrer" class="footer-link"><%= gettext("Support") %></a></li>
</ul>
Expand Down
6 changes: 3 additions & 3 deletions apps/block_scout_web/lib/block_scout_web/views/layout_view.ex
Expand Up @@ -7,7 +7,7 @@ defmodule BlockScoutWeb.LayoutView do

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 [
%{
title: "POA",
Expand All @@ -20,7 +20,7 @@ defmodule BlockScoutWeb.LayoutView do
},
%{
title: "xDai",
url: "https://blockscout.com/poa/xdai"
url: "https://blockscout.com/xdai/mainnet"
},
%{
title: "Ethereum Classic",
Expand Down Expand Up @@ -120,7 +120,7 @@ defmodule BlockScoutWeb.LayoutView do
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 ->
release_link_env_var
Expand Down
2 changes: 1 addition & 1 deletion apps/block_scout_web/mix.exs
Expand Up @@ -154,7 +154,7 @@ defmodule BlockScoutWeb.Mixfile do
[
maintainers: ["POA Networks Ltd."],
licenses: ["GPL 3.0"],
links: %{"GitHub" => "https://github.com/poanetwork/blockscout"}
links: %{"GitHub" => "https://github.com/blockscout/blockscout"}
]
end
end
Expand Up @@ -67,15 +67,15 @@ defmodule BlockScoutWeb.LayoutViewTest do

assert LayoutView.release_link("v1.3.4-beta") ==
{: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

test "use the default value when empty release_link env configured for it" do
Application.put_env(:block_scout_web, :release_link, "")

assert LayoutView.release_link("v1.3.4-beta") ==
{: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

test "use the enviroment release link when it's configured" do
Expand Down
2 changes: 1 addition & 1 deletion apps/explorer/lib/explorer/chain.ex
Expand Up @@ -5060,7 +5060,7 @@ defmodule Explorer.Chain do
|> normalize_balances_by_day()
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
List.replace_at(items, -1, %{date: Date.convert!(timestamp, Calendar.ISO), value: value})
end
Expand Down
Expand Up @@ -265,7 +265,7 @@ defmodule Explorer.Chain.Import.Runner.InternalTransactions do
# - there are internal txs with a different block number than their transactions
# 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:
# common_tuples = MapSet.intersection(required_tuples, candidate_tuples) #should be added
# |> MapSet.difference(internal_transactions_tuples) should be replaced with |> MapSet.difference(common_tuples)
Expand Down
2 changes: 1 addition & 1 deletion apps/explorer/lib/explorer/chain/transaction.ex
Expand Up @@ -228,7 +228,7 @@ defmodule Explorer.Chain.Transaction do

# 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
# 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)

timestamps()
Expand Down
2 changes: 1 addition & 1 deletion apps/explorer/lib/explorer/token/metadata_retriever.ex
Expand Up @@ -250,7 +250,7 @@ defmodule Explorer.Token.MetadataRetriever do
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
# 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
name = handle_invalid_name(name, contract_address_hash)
symbol = handle_invalid_symbol(symbol)
Expand Down
2 changes: 1 addition & 1 deletion apps/explorer/mix.exs
Expand Up @@ -134,7 +134,7 @@ defmodule Explorer.Mixfile do
[
maintainers: ["POA Networks Ltd."],
licenses: ["GPL 3.0"],
links: %{"GitHub" => "https://github.com/poanetwork/blockscout"}
links: %{"GitHub" => "https://github.com/blockscout/blockscout"}
]
end
end
2 changes: 1 addition & 1 deletion apps/explorer/package.json
@@ -1,7 +1,7 @@
{
"repository": {
"type": "git",
"url": "git+https://github.com/poanetwork/blockscout.git"
"url": "git+https://github.com/blockscout/blockscout.git"
},
"private": true,
"name": "blockscout",
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/README.md
Expand Up @@ -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
- `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

Expand Down

0 comments on commit 1fe3016

Please sign in to comment.