<%= gettext "To see accurate decoded input data, the contract must be verified." %>
<%= case @log.transaction do %>
diff --git a/apps/block_scout_web/lib/block_scout_web/templates/transaction_log/_logs.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/transaction_log/_logs.html.eex
index e64f3bdbf6..7d94e91502 100644
--- a/apps/block_scout_web/lib/block_scout_web/templates/transaction_log/_logs.html.eex
+++ b/apps/block_scout_web/lib/block_scout_web/templates/transaction_log/_logs.html.eex
@@ -1,7 +1,7 @@
<%= gettext "To see accurate decoded input data, the contract must be verified." %>
<%= case @log do %>
diff --git a/apps/block_scout_web/lib/block_scout_web/templates/verified_contracts/_contract.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/verified_contracts/_contract.html.eex
index dbd64714d6..e677db6990 100644
--- a/apps/block_scout_web/lib/block_scout_web/templates/verified_contracts/_contract.html.eex
+++ b/apps/block_scout_web/lib/block_scout_web/templates/verified_contracts/_contract.html.eex
@@ -41,7 +41,7 @@
<% end %>
-
+
<%= if @contract.constructor_arguments do %>
diff --git a/apps/block_scout_web/lib/block_scout_web/templates/verified_contracts/_metatags.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/verified_contracts/_metatags.html.eex
index 88e38e1c7c..440c9bfeb4 100644
--- a/apps/block_scout_web/lib/block_scout_web/templates/verified_contracts/_metatags.html.eex
+++ b/apps/block_scout_web/lib/block_scout_web/templates/verified_contracts/_metatags.html.eex
@@ -4,5 +4,5 @@
subnetwork: BlockScoutWeb.LayoutView.subnetwork_title()
) %>
-">
+">
">
diff --git a/apps/block_scout_web/lib/block_scout_web/views/api/v2/smart_contract_view.ex b/apps/block_scout_web/lib/block_scout_web/views/api/v2/smart_contract_view.ex
index 8e352eaf89..deccd857b4 100644
--- a/apps/block_scout_web/lib/block_scout_web/views/api/v2/smart_contract_view.ex
+++ b/apps/block_scout_web/lib/block_scout_web/views/api/v2/smart_contract_view.ex
@@ -168,7 +168,7 @@ defmodule BlockScoutWeb.API.V2.SmartContractView do
"abi" => target_contract.abi,
"source_code" => target_contract.contract_source_code,
"file_path" => target_contract.file_path,
- "additional_sources" => Enum.map(additional_sources, &prepare_additional_sourse/1),
+ "additional_sources" => Enum.map(additional_sources, &prepare_additional_source/1),
"compiler_settings" => target_contract.compiler_settings,
"external_libraries" => prepare_external_libraries(target_contract.external_libraries),
"constructor_args" => if(smart_contract_verified, do: target_contract.constructor_arguments),
@@ -210,7 +210,7 @@ defmodule BlockScoutWeb.API.V2.SmartContractView do
end)
end
- defp prepare_additional_sourse(source) do
+ defp prepare_additional_source(source) do
%{
"source_code" => source.contract_source_code,
"file_path" => source.file_name
diff --git a/apps/block_scout_web/lib/block_scout_web/views/form_view.ex b/apps/block_scout_web/lib/block_scout_web/views/form_view.ex
index 06144b1311..369fc47b48 100644
--- a/apps/block_scout_web/lib/block_scout_web/views/form_view.ex
+++ b/apps/block_scout_web/lib/block_scout_web/views/form_view.ex
@@ -19,13 +19,13 @@ defmodule BlockScoutWeb.FormView do
* `:label` - Label for the input field
- ## Options as HTML 5 Attriutes
+ ## Options as HTML 5 Attributes
The following options will be applied as HTML 5 attributes on the
`` element:
* `:default_value` - Default value to attach to the input field
- * `:id` - ID to attatch to the input field
+ * `:id` - ID to attach to the input field
* `:placeholder` - Placeholder text for the input field
* `:required` - Mark the input field as required
* `:type` - Input field type
diff --git a/apps/block_scout_web/lib/block_scout_web/views/transaction_view.ex b/apps/block_scout_web/lib/block_scout_web/views/transaction_view.ex
index 751e9acfa5..20113acabf 100644
--- a/apps/block_scout_web/lib/block_scout_web/views/transaction_view.ex
+++ b/apps/block_scout_web/lib/block_scout_web/views/transaction_view.ex
@@ -590,19 +590,19 @@ defmodule BlockScoutWeb.TransactionView do
case revert_reason do
"0x" <> hex_part ->
- proccess_hex_revert_reason(hex_part)
+ process_hex_revert_reason(hex_part)
hex_part ->
- proccess_hex_revert_reason(hex_part)
+ process_hex_revert_reason(hex_part)
end
end
# Function converts hex revert reason to the binary
- @spec proccess_hex_revert_reason(nil) :: nil
- defp proccess_hex_revert_reason(nil), do: nil
+ @spec process_hex_revert_reason(nil) :: nil
+ defp process_hex_revert_reason(nil), do: nil
- @spec proccess_hex_revert_reason(binary()) :: binary()
- defp proccess_hex_revert_reason(hex_revert_reason) do
+ @spec process_hex_revert_reason(binary()) :: binary()
+ defp process_hex_revert_reason(hex_revert_reason) do
case Integer.parse(hex_revert_reason, 16) do
{number, ""} ->
:binary.encode_unsigned(number)
diff --git a/apps/block_scout_web/priv/gettext/default.pot b/apps/block_scout_web/priv/gettext/default.pot
index 267a98fc78..a994b677fb 100644
--- a/apps/block_scout_web/priv/gettext/default.pot
+++ b/apps/block_scout_web/priv/gettext/default.pot
@@ -2218,11 +2218,6 @@ msgstr ""
msgid "Search tokens"
msgstr ""
-#: lib/block_scout_web/templates/address_contract_verification_common_fields/_yul_contracts_switcher.html.eex:19
-#, elixir-autogen, elixir-format
-msgid "Select Yes if you want to vefify Yul contract."
-msgstr ""
-
#: lib/block_scout_web/templates/address_contract_verification_common_fields/_include_nightly_builds_field.html.eex:19
#, elixir-autogen, elixir-format
msgid "Select yes if you want to show nightly builds."
@@ -3074,11 +3069,6 @@ msgstr ""
msgid "Value sent in the native token (and USD) if applicable."
msgstr ""
-#: lib/block_scout_web/templates/verified_contracts/_metatags.html.eex:7
-#, elixir-autogen, elixir-format
-msgid "Verifed contracts, %{subnetwork}, %{coin}"
-msgstr ""
-
#: lib/block_scout_web/templates/address_read_contract/index.html.eex:17
#: lib/block_scout_web/templates/address_write_contract/index.html.eex:15
#: lib/block_scout_web/templates/verified_contracts/index.html.eex:75
@@ -3539,3 +3529,13 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Potential matches from contract method database:"
msgstr ""
+
+#: lib/block_scout_web/templates/address_contract_verification_common_fields/_yul_contracts_switcher.html.eex:19
+#, elixir-autogen, elixir-format
+msgid "Select Yes if you want to verify Yul contract."
+msgstr ""
+
+#: lib/block_scout_web/templates/verified_contracts/_metatags.html.eex:7
+#, elixir-autogen, elixir-format
+msgid "Verified contracts, %{subnetwork}, %{coin}"
+msgstr ""
diff --git a/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po b/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po
index b0ebc30d06..0bc3aa4d52 100644
--- a/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po
+++ b/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po
@@ -2218,11 +2218,6 @@ msgstr ""
msgid "Search tokens"
msgstr ""
-#: lib/block_scout_web/templates/address_contract_verification_common_fields/_yul_contracts_switcher.html.eex:19
-#, elixir-autogen, elixir-format
-msgid "Select Yes if you want to vefify Yul contract."
-msgstr ""
-
#: lib/block_scout_web/templates/address_contract_verification_common_fields/_include_nightly_builds_field.html.eex:19
#, elixir-autogen, elixir-format
msgid "Select yes if you want to show nightly builds."
@@ -3074,11 +3069,6 @@ msgstr ""
msgid "Value sent in the native token (and USD) if applicable."
msgstr ""
-#: lib/block_scout_web/templates/verified_contracts/_metatags.html.eex:7
-#, elixir-autogen, elixir-format
-msgid "Verifed contracts, %{subnetwork}, %{coin}"
-msgstr ""
-
#: lib/block_scout_web/templates/address_read_contract/index.html.eex:17
#: lib/block_scout_web/templates/address_write_contract/index.html.eex:15
#: lib/block_scout_web/templates/verified_contracts/index.html.eex:75
@@ -3539,3 +3529,13 @@ msgstr ""
#, elixir-autogen, elixir-format, fuzzy
msgid "Potential matches from contract method database:"
msgstr ""
+
+#: lib/block_scout_web/templates/address_contract_verification_common_fields/_yul_contracts_switcher.html.eex:19
+#, elixir-autogen, elixir-format, fuzzy
+msgid "Select Yes if you want to verify Yul contract."
+msgstr ""
+
+#: lib/block_scout_web/templates/verified_contracts/_metatags.html.eex:7
+#, elixir-autogen, elixir-format, fuzzy
+msgid "Verified contracts, %{subnetwork}, %{coin}"
+msgstr ""
diff --git a/apps/block_scout_web/test/block_scout_web/chain_test.exs b/apps/block_scout_web/test/block_scout_web/chain_test.exs
index 7656ff2259..cb5f5bde57 100644
--- a/apps/block_scout_web/test/block_scout_web/chain_test.exs
+++ b/apps/block_scout_web/test/block_scout_web/chain_test.exs
@@ -72,7 +72,7 @@ defmodule BlockScoutWeb.ChainTest do
end
end
- describe "Posion.encode!" do
+ describe "Poison.encode!" do
test "correctly encodes decimal values" do
val = Decimal.from_float(5.55)
diff --git a/apps/block_scout_web/test/block_scout_web/controllers/account/api/v1/user_controller_test.exs b/apps/block_scout_web/test/block_scout_web/controllers/account/api/v1/user_controller_test.exs
index 0081ebdcfb..cc7770b71c 100644
--- a/apps/block_scout_web/test/block_scout_web/controllers/account/api/v1/user_controller_test.exs
+++ b/apps/block_scout_web/test/block_scout_web/controllers/account/api/v1/user_controller_test.exs
@@ -779,10 +779,10 @@ defmodule BlockScoutWeb.Account.Api.V1.UserControllerTest do
end
describe "public tags" do
- test "create public tags reuqest", %{conn: conn} do
+ test "create public tags request", %{conn: conn} do
public_tags_request = build(:public_tags_request)
- post_public_tasg_request_response =
+ post_public_tags_request_response =
conn
|> post(
"/api/account/v1/user/public_tags",
@@ -791,21 +791,21 @@ defmodule BlockScoutWeb.Account.Api.V1.UserControllerTest do
|> doc(description: "Submit request to add a public tag")
|> json_response(200)
- assert post_public_tasg_request_response["full_name"] == public_tags_request["full_name"]
- assert post_public_tasg_request_response["email"] == public_tags_request["email"]
- assert post_public_tasg_request_response["tags"] == public_tags_request["tags"]
- assert post_public_tasg_request_response["website"] == public_tags_request["website"]
- assert post_public_tasg_request_response["additional_comment"] == public_tags_request["additional_comment"]
- assert post_public_tasg_request_response["addresses"] == public_tags_request["addresses"]
- assert post_public_tasg_request_response["company"] == public_tags_request["company"]
- assert post_public_tasg_request_response["is_owner"] == public_tags_request["is_owner"]
- assert post_public_tasg_request_response["id"]
+ assert post_public_tags_request_response["full_name"] == public_tags_request["full_name"]
+ assert post_public_tags_request_response["email"] == public_tags_request["email"]
+ assert post_public_tags_request_response["tags"] == public_tags_request["tags"]
+ assert post_public_tags_request_response["website"] == public_tags_request["website"]
+ assert post_public_tags_request_response["additional_comment"] == public_tags_request["additional_comment"]
+ assert post_public_tags_request_response["addresses"] == public_tags_request["addresses"]
+ assert post_public_tags_request_response["company"] == public_tags_request["company"]
+ assert post_public_tags_request_response["is_owner"] == public_tags_request["is_owner"]
+ assert post_public_tags_request_response["id"]
end
test "get one public tags requests", %{conn: conn} do
public_tags_request = build(:public_tags_request)
- post_public_tasg_request_response =
+ post_public_tags_request_response =
conn
|> post(
"/api/account/v1/user/public_tags",
@@ -813,21 +813,21 @@ defmodule BlockScoutWeb.Account.Api.V1.UserControllerTest do
)
|> json_response(200)
- assert post_public_tasg_request_response["full_name"] == public_tags_request["full_name"]
- assert post_public_tasg_request_response["email"] == public_tags_request["email"]
- assert post_public_tasg_request_response["tags"] == public_tags_request["tags"]
- assert post_public_tasg_request_response["website"] == public_tags_request["website"]
- assert post_public_tasg_request_response["additional_comment"] == public_tags_request["additional_comment"]
- assert post_public_tasg_request_response["addresses"] == public_tags_request["addresses"]
- assert post_public_tasg_request_response["company"] == public_tags_request["company"]
- assert post_public_tasg_request_response["is_owner"] == public_tags_request["is_owner"]
- assert post_public_tasg_request_response["id"]
+ assert post_public_tags_request_response["full_name"] == public_tags_request["full_name"]
+ assert post_public_tags_request_response["email"] == public_tags_request["email"]
+ assert post_public_tags_request_response["tags"] == public_tags_request["tags"]
+ assert post_public_tags_request_response["website"] == public_tags_request["website"]
+ assert post_public_tags_request_response["additional_comment"] == public_tags_request["additional_comment"]
+ assert post_public_tags_request_response["addresses"] == public_tags_request["addresses"]
+ assert post_public_tags_request_response["company"] == public_tags_request["company"]
+ assert post_public_tags_request_response["is_owner"] == public_tags_request["is_owner"]
+ assert post_public_tags_request_response["id"]
assert conn
|> get("/api/account/v1/user/public_tags")
|> json_response(200)
|> Enum.map(&convert_date/1) ==
- [post_public_tasg_request_response]
+ [post_public_tags_request_response]
|> Enum.map(&convert_date/1)
end
@@ -886,7 +886,7 @@ defmodule BlockScoutWeb.Account.Api.V1.UserControllerTest do
test "edit public tags request", %{conn: conn} do
public_tags_request = build(:public_tags_request)
- post_public_tasg_request_response =
+ post_public_tags_request_response =
conn
|> post(
"/api/account/v1/user/public_tags",
@@ -894,49 +894,49 @@ defmodule BlockScoutWeb.Account.Api.V1.UserControllerTest do
)
|> json_response(200)
- assert post_public_tasg_request_response["full_name"] == public_tags_request["full_name"]
- assert post_public_tasg_request_response["email"] == public_tags_request["email"]
- assert post_public_tasg_request_response["tags"] == public_tags_request["tags"]
- assert post_public_tasg_request_response["website"] == public_tags_request["website"]
- assert post_public_tasg_request_response["additional_comment"] == public_tags_request["additional_comment"]
- assert post_public_tasg_request_response["addresses"] == public_tags_request["addresses"]
- assert post_public_tasg_request_response["company"] == public_tags_request["company"]
- assert post_public_tasg_request_response["is_owner"] == public_tags_request["is_owner"]
- assert post_public_tasg_request_response["id"]
+ assert post_public_tags_request_response["full_name"] == public_tags_request["full_name"]
+ assert post_public_tags_request_response["email"] == public_tags_request["email"]
+ assert post_public_tags_request_response["tags"] == public_tags_request["tags"]
+ assert post_public_tags_request_response["website"] == public_tags_request["website"]
+ assert post_public_tags_request_response["additional_comment"] == public_tags_request["additional_comment"]
+ assert post_public_tags_request_response["addresses"] == public_tags_request["addresses"]
+ assert post_public_tags_request_response["company"] == public_tags_request["company"]
+ assert post_public_tags_request_response["is_owner"] == public_tags_request["is_owner"]
+ assert post_public_tags_request_response["id"]
assert conn
|> get("/api/account/v1/user/public_tags")
|> json_response(200)
|> Enum.map(&convert_date/1) ==
- [post_public_tasg_request_response]
+ [post_public_tags_request_response]
|> Enum.map(&convert_date/1)
new_public_tags_request = build(:public_tags_request)
- put_public_tasg_request_response =
+ put_public_tags_request_response =
conn
|> put(
- "/api/account/v1/user/public_tags/#{post_public_tasg_request_response["id"]}",
+ "/api/account/v1/user/public_tags/#{post_public_tags_request_response["id"]}",
new_public_tags_request
)
|> doc(description: "Edit request to add a public tag")
|> json_response(200)
- assert put_public_tasg_request_response["full_name"] == new_public_tags_request["full_name"]
- assert put_public_tasg_request_response["email"] == new_public_tags_request["email"]
- assert put_public_tasg_request_response["tags"] == new_public_tags_request["tags"]
- assert put_public_tasg_request_response["website"] == new_public_tags_request["website"]
- assert put_public_tasg_request_response["additional_comment"] == new_public_tags_request["additional_comment"]
- assert put_public_tasg_request_response["addresses"] == new_public_tags_request["addresses"]
- assert put_public_tasg_request_response["company"] == new_public_tags_request["company"]
- assert put_public_tasg_request_response["is_owner"] == new_public_tags_request["is_owner"]
- assert put_public_tasg_request_response["id"] == post_public_tasg_request_response["id"]
+ assert put_public_tags_request_response["full_name"] == new_public_tags_request["full_name"]
+ assert put_public_tags_request_response["email"] == new_public_tags_request["email"]
+ assert put_public_tags_request_response["tags"] == new_public_tags_request["tags"]
+ assert put_public_tags_request_response["website"] == new_public_tags_request["website"]
+ assert put_public_tags_request_response["additional_comment"] == new_public_tags_request["additional_comment"]
+ assert put_public_tags_request_response["addresses"] == new_public_tags_request["addresses"]
+ assert put_public_tags_request_response["company"] == new_public_tags_request["company"]
+ assert put_public_tags_request_response["is_owner"] == new_public_tags_request["is_owner"]
+ assert put_public_tags_request_response["id"] == post_public_tags_request_response["id"]
assert conn
|> get("/api/account/v1/user/public_tags")
|> json_response(200)
|> Enum.map(&convert_date/1) ==
- [put_public_tasg_request_response]
+ [put_public_tags_request_response]
|> Enum.map(&convert_date/1)
end
end
diff --git a/apps/block_scout_web/test/block_scout_web/controllers/api/v1/decompiled_smart_contract_controller_test.exs b/apps/block_scout_web/test/block_scout_web/controllers/api/v1/decompiled_smart_contract_controller_test.exs
index 8f511daff7..03681c3f0a 100644
--- a/apps/block_scout_web/test/block_scout_web/controllers/api/v1/decompiled_smart_contract_controller_test.exs
+++ b/apps/block_scout_web/test/block_scout_web/controllers/api/v1/decompiled_smart_contract_controller_test.exs
@@ -108,7 +108,7 @@ defmodule BlockScoutWeb.API.V1.DecompiledControllerTest do
end
describe "when user is not authorized" do
- test "returns forbedden", %{conn: conn} do
+ test "returns forbidden", %{conn: conn} do
request = post(conn, api_v1_decompiled_smart_contract_path(conn, :create))
assert request.status == 403
diff --git a/apps/block_scout_web/test/block_scout_web/controllers/api/v2/address_controller_test.exs b/apps/block_scout_web/test/block_scout_web/controllers/api/v2/address_controller_test.exs
index 99ce1d636c..5d90849e56 100644
--- a/apps/block_scout_web/test/block_scout_web/controllers/api/v2/address_controller_test.exs
+++ b/apps/block_scout_web/test/block_scout_web/controllers/api/v2/address_controller_test.exs
@@ -34,7 +34,7 @@ defmodule BlockScoutWeb.API.V2.AddressControllerTest do
test "get address & get the same response for checksummed and downcased parameter", %{conn: conn} do
address = insert(:address)
- correct_reponse = %{
+ correct_response = %{
"hash" => Address.checksum(address.hash),
"is_contract" => false,
"is_verified" => false,
@@ -64,10 +64,10 @@ defmodule BlockScoutWeb.API.V2.AddressControllerTest do
}
request = get(conn, "/api/v2/addresses/#{Address.checksum(address.hash)}")
- assert ^correct_reponse = json_response(request, 200)
+ assert ^correct_response = json_response(request, 200)
request = get(conn, "/api/v2/addresses/#{String.downcase(to_string(address.hash))}")
- assert ^correct_reponse = json_response(request, 200)
+ assert ^correct_response = json_response(request, 200)
end
end
@@ -389,7 +389,7 @@ defmodule BlockScoutWeb.API.V2.AddressControllerTest do
compare_item(token_transfer, Enum.at(response["items"], 0))
end
- test "method in token transer could be decoded", %{conn: conn} do
+ test "method in token transfer could be decoded", %{conn: conn} do
insert(:contract_method,
identifier: Base.decode16!("731133e9", case: :lower),
abi: %{
@@ -467,7 +467,7 @@ defmodule BlockScoutWeb.API.V2.AddressControllerTest do
token = insert(:token)
- token_tranfers =
+ token_transfers =
for _ <- 0..50 do
tx = insert(:transaction, input: "0xabcd010203040506") |> with_block()
@@ -491,7 +491,7 @@ defmodule BlockScoutWeb.API.V2.AddressControllerTest do
assert response_2nd_page = json_response(request_2nd_page, 200)
- check_paginated_response(response, response_2nd_page, token_tranfers)
+ check_paginated_response(response, response_2nd_page, token_transfers)
end
test "get only :to token transfer", %{conn: conn} do
@@ -532,7 +532,7 @@ defmodule BlockScoutWeb.API.V2.AddressControllerTest do
test "token transfers can paginate", %{conn: conn} do
address = insert(:address)
- token_tranfers =
+ token_transfers =
for _ <- 0..50 do
tx = insert(:transaction, input: "0xabcd010203040506") |> with_block()
@@ -545,7 +545,7 @@ defmodule BlockScoutWeb.API.V2.AddressControllerTest do
request_2nd_page = get(conn, "/api/v2/addresses/#{address.hash}/token-transfers", response["next_page_params"])
assert response_2nd_page = json_response(request_2nd_page, 200)
- check_paginated_response(response, response_2nd_page, token_tranfers)
+ check_paginated_response(response, response_2nd_page, token_transfers)
end
test ":to token transfers can paginate", %{conn: conn} do
@@ -556,7 +556,7 @@ defmodule BlockScoutWeb.API.V2.AddressControllerTest do
insert(:token_transfer, transaction: tx, block: tx.block, block_number: tx.block_number, from_address: address)
end
- token_tranfers =
+ token_transfers =
for _ <- 0..50 do
tx = insert(:transaction, input: "0xabcd010203040506") |> with_block()
insert(:token_transfer, transaction: tx, block: tx.block, block_number: tx.block_number, to_address: address)
@@ -571,13 +571,13 @@ defmodule BlockScoutWeb.API.V2.AddressControllerTest do
assert response_2nd_page = json_response(request_2nd_page, 200)
- check_paginated_response(response, response_2nd_page, token_tranfers)
+ check_paginated_response(response, response_2nd_page, token_transfers)
end
test ":from token transfers can paginate", %{conn: conn} do
address = insert(:address)
- token_tranfers =
+ token_transfers =
for _ <- 0..50 do
tx = insert(:transaction, input: "0xabcd010203040506") |> with_block()
@@ -598,7 +598,7 @@ defmodule BlockScoutWeb.API.V2.AddressControllerTest do
assert response_2nd_page = json_response(request_2nd_page, 200)
- check_paginated_response(response, response_2nd_page, token_tranfers)
+ check_paginated_response(response, response_2nd_page, token_transfers)
end
test ":from + :to tt can paginate", %{conn: conn} do
diff --git a/apps/block_scout_web/test/block_scout_web/controllers/api/v2/main_page_controller_test.exs b/apps/block_scout_web/test/block_scout_web/controllers/api/v2/main_page_controller_test.exs
index b1e27673df..36fe1491e7 100644
--- a/apps/block_scout_web/test/block_scout_web/controllers/api/v2/main_page_controller_test.exs
+++ b/apps/block_scout_web/test/block_scout_web/controllers/api/v2/main_page_controller_test.exs
@@ -58,7 +58,7 @@ defmodule BlockScoutWeb.API.V2.MainPageControllerTest do
assert Map.has_key?(request, "finished_indexing_blocks")
assert Map.has_key?(request, "finished_indexing")
assert Map.has_key?(request, "indexed_blocks_ratio")
- assert Map.has_key?(request, "indexed_inernal_transactions_ratio")
+ assert Map.has_key?(request, "indexed_internal_transactions_ratio")
end
end
diff --git a/apps/block_scout_web/test/block_scout_web/controllers/api/v2/token_controller_test.exs b/apps/block_scout_web/test/block_scout_web/controllers/api/v2/token_controller_test.exs
index 22525f323a..1470754941 100644
--- a/apps/block_scout_web/test/block_scout_web/controllers/api/v2/token_controller_test.exs
+++ b/apps/block_scout_web/test/block_scout_web/controllers/api/v2/token_controller_test.exs
@@ -120,7 +120,7 @@ defmodule BlockScoutWeb.API.V2.TokenControllerTest do
test "check pagination", %{conn: conn} do
token = insert(:token)
- token_tranfers =
+ token_transfers =
for _ <- 0..50 do
tx = insert(:transaction, input: "0xabcd010203040506") |> with_block()
@@ -140,7 +140,7 @@ defmodule BlockScoutWeb.API.V2.TokenControllerTest do
assert response_2nd_page = json_response(request_2nd_page, 200)
- check_paginated_response(response, response_2nd_page, token_tranfers)
+ check_paginated_response(response, response_2nd_page, token_transfers)
end
end
@@ -408,7 +408,7 @@ defmodule BlockScoutWeb.API.V2.TokenControllerTest do
assert %{"message" => "Invalid parameter(s)"} = json_response(request, 422)
end
- test "recieve 0 count", %{conn: conn} do
+ test "receive 0 count", %{conn: conn} do
token = insert(:token)
insert(:token_instance, token_id: 0, token_contract_address_hash: token.contract_address_hash)
diff --git a/apps/block_scout_web/test/block_scout_web/features/address_contract_verification_test.exs b/apps/block_scout_web/test/block_scout_web/features/address_contract_verification_test.exs
index 1a82a6dedd..8ea3e75118 100644
--- a/apps/block_scout_web/test/block_scout_web/features/address_contract_verification_test.exs
+++ b/apps/block_scout_web/test/block_scout_web/features/address_contract_verification_test.exs
@@ -13,7 +13,7 @@ defmodule BlockScoutWeb.AddressContractVerificationTest do
{:ok, bypass: bypass}
end
- # wallaby with chrome headles always fails this test
+ # wallaby with chrome headless always fails this test
@tag :skip
test "users validates smart contract", %{session: session, bypass: bypass} do
Bypass.expect(bypass, fn conn -> Conn.resp(conn, 200, solc_bin_versions()) end)
diff --git a/apps/block_scout_web/test/block_scout_web/features/viewing_transactions_test.exs b/apps/block_scout_web/test/block_scout_web/features/viewing_transactions_test.exs
index 33c8fe9e88..2d6eb71583 100644
--- a/apps/block_scout_web/test/block_scout_web/features/viewing_transactions_test.exs
+++ b/apps/block_scout_web/test/block_scout_web/features/viewing_transactions_test.exs
@@ -83,7 +83,7 @@ defmodule BlockScoutWeb.ViewingTransactionsTest do
|> refute_has(TransactionListPage.transaction(pending))
end
- test "viewing the pending tranasctions list", %{
+ test "viewing the pending transactions list", %{
pending: pending,
pending_contract: pending_contract,
session: session
diff --git a/apps/block_scout_web/test/block_scout_web/schema/query/address_test.exs b/apps/block_scout_web/test/block_scout_web/schema/query/address_test.exs
index 134d1b7f34..ea1f5579f0 100644
--- a/apps/block_scout_web/test/block_scout_web/schema/query/address_test.exs
+++ b/apps/block_scout_web/test/block_scout_web/schema/query/address_test.exs
@@ -419,7 +419,7 @@ defmodule BlockScoutWeb.Schema.Query.AddressTest do
end
test "with 'last' and 'count' arguments", %{conn: conn} do
- # "`last: N` must always be acompanied by either a `before:` argument to
+ # "`last: N` must always be accompanied by either a `before:` argument to
# the query, or an explicit `count:` option to the `from_query` call.
# Otherwise it is impossible to derive the required offset."
# https://hexdocs.pm/absinthe_relay/Absinthe.Relay.Connection.html#from_query/4
diff --git a/apps/block_scout_web/test/block_scout_web/schema/query/token_transfers_test.exs b/apps/block_scout_web/test/block_scout_web/schema/query/token_transfers_test.exs
index 75a58b8448..aef875fe3e 100644
--- a/apps/block_scout_web/test/block_scout_web/schema/query/token_transfers_test.exs
+++ b/apps/block_scout_web/test/block_scout_web/schema/query/token_transfers_test.exs
@@ -159,7 +159,7 @@ defmodule BlockScoutWeb.Schema.Query.TokenTransfersTest do
end
test "with 'last' and 'count' arguments", %{conn: conn} do
- # "`last: N` must always be acompanied by either a `before:` argument to
+ # "`last: N` must always be accompanied by either a `before:` argument to
# the query, or an explicit `count:` option to the `from_query` call.
# Otherwise it is impossible to derive the required offset."
# https://hexdocs.pm/absinthe_relay/Absinthe.Relay.Connection.html#from_query/4
diff --git a/apps/block_scout_web/test/block_scout_web/schema/query/transaction_test.exs b/apps/block_scout_web/test/block_scout_web/schema/query/transaction_test.exs
index 8135ee5d75..66b31d676c 100644
--- a/apps/block_scout_web/test/block_scout_web/schema/query/transaction_test.exs
+++ b/apps/block_scout_web/test/block_scout_web/schema/query/transaction_test.exs
@@ -382,7 +382,7 @@ defmodule BlockScoutWeb.Schema.Query.TransactionTest do
end
test "with 'last' and 'count' arguments", %{conn: conn} do
- # "`last: N` must always be acompanied by either a `before:` argument to
+ # "`last: N` must always be accompanied by either a `before:` argument to
# the query, or an explicit `count:` option to the `from_query` call.
# Otherwise it is impossible to derive the required offset."
# https://hexdocs.pm/absinthe_relay/Absinthe.Relay.Connection.html#from_query/4
diff --git a/apps/block_scout_web/test/block_scout_web/views/transaction_view_test.exs b/apps/block_scout_web/test/block_scout_web/views/transaction_view_test.exs
index 32a40350aa..dc2d5b93f8 100644
--- a/apps/block_scout_web/test/block_scout_web/views/transaction_view_test.exs
+++ b/apps/block_scout_web/test/block_scout_web/views/transaction_view_test.exs
@@ -35,7 +35,7 @@ defmodule BlockScoutWeb.TransactionViewTest do
assert pending.inserted_at == TransactionView.block_timestamp(pending)
end
- test "returns timestamp for block for collacted transaction" do
+ test "returns timestamp for block for collated transaction" do
block = insert(:block)
transaction =
diff --git a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc.ex b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc.ex
index d3f707497b..93c06a4a92 100644
--- a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc.ex
+++ b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc.ex
@@ -83,7 +83,7 @@ defmodule EthereumJSONRPC do
* `:transport` - the `t:EthereumJSONRPC.Transport.t/0` callback module
* `:transport_options` - options passed to `c:EthereumJSONRPC.Transport.json_rpc/2`
* `:variant` - the `t:EthereumJSONRPC.Variant.t/0` callback module
- * `:throttle_timout` - the maximum amount of time in milliseconds to throttle
+ * `:throttle_timeout` - the maximum amount of time in milliseconds to throttle
before automatically returning a timeout. Defaults to #{@default_throttle_timeout} milliseconds.
"""
@type json_rpc_named_arguments :: [
diff --git a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/log.ex b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/log.ex
index 03ed4631ce..ecda583644 100644
--- a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/log.ex
+++ b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/log.ex
@@ -13,7 +13,7 @@ defmodule EthereumJSONRPC.Log do
* `"blockHash"` - `t:EthereumJSONRPC.hash/0` of the block this transaction is in.
* `"blockNumber"` - `t:EthereumJSONRPC.quantity/0` for the block number this transaction is in.
* `"data"` - Data containing non-indexed log parameter
- * `"logIndex"` - `t:EthereumJSONRPC.quantity/0` of the event index positon in the block.
+ * `"logIndex"` - `t:EthereumJSONRPC.quantity/0` of the event index position in the block.
* `"topics"` - `t:list/0` of at most 4 32-byte topics. Topic 1-3 contains indexed parameters of the log.
* `"transactionHash"` - `t:EthereumJSONRPC.hash/0` of the transaction
* `"transactionIndex"` - `t:EthereumJSONRPC.quantity/0` for the index of the transaction in the block.
diff --git a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/pending_transaction.ex b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/pending_transaction.ex
index b2754163f0..b3cc972037 100644
--- a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/pending_transaction.ex
+++ b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/pending_transaction.ex
@@ -35,7 +35,7 @@ defmodule EthereumJSONRPC.PendingTransaction do
end
@doc """
- Зфкшен-style fetching of pending transactions (from `parity_pendingTransactions`)
+ parity-style fetching of pending transactions (from `parity_pendingTransactions`)
"""
@spec fetch_pending_transactions_parity(EthereumJSONRPC.json_rpc_named_arguments()) ::
{:ok, [Transaction.params()]} | {:error, reason :: term}
diff --git a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/request_coordinator.ex b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/request_coordinator.ex
index b63e0971a6..64bae8da5f 100644
--- a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/request_coordinator.ex
+++ b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/request_coordinator.ex
@@ -16,11 +16,11 @@ defmodule EthereumJSONRPC.RequestCoordinator do
* `:table` - name of the ets table to store the data in
* `:wait_per_timeout` - Milliseconds to wait for each recent timeout within
the tracked window
- * `:max_jitter` - Maximimum amount of time in milliseconds to be added to each
+ * `:max_jitter` - Maximum amount of time in milliseconds to be added to each
wait before multiplied by timeout count
* `:throttle_rolling_window_opts` - Options for the process tracking all requests
* `:window_count` - Number of windows
- * `:duration` - Total amount of time to coumt events in milliseconds
+ * `:duration` - Total amount of time to count events in milliseconds
* `:table` - name of the ets table to store the data in
* `:throttle_rate_limit` - The total number of requests allowed in the all windows.
diff --git a/apps/ethereum_jsonrpc/test/ethereum_jsonrpc/rolling_window_test.exs b/apps/ethereum_jsonrpc/test/ethereum_jsonrpc/rolling_window_test.exs
index 5f8db2a821..3ea1954ae3 100644
--- a/apps/ethereum_jsonrpc/test/ethereum_jsonrpc/rolling_window_test.exs
+++ b/apps/ethereum_jsonrpc/test/ethereum_jsonrpc/rolling_window_test.exs
@@ -8,7 +8,7 @@ defmodule EthereumJSONRPC.RollingWindowTest do
end
describe "init/1" do
- test "raises when duration isn't evenly divisble by window_count" do
+ test "raises when duration isn't evenly divisible by window_count" do
assert_raise ArgumentError, ~r"evenly divisible", fn ->
RollingWindow.init(table: :init_test_table, duration: :timer.seconds(2), window_count: 3)
end
diff --git a/apps/ethereum_jsonrpc/test/ethereum_jsonrpc_test.exs b/apps/ethereum_jsonrpc/test/ethereum_jsonrpc_test.exs
index 88dfbdf5f0..fcd3dd1d54 100644
--- a/apps/ethereum_jsonrpc/test/ethereum_jsonrpc_test.exs
+++ b/apps/ethereum_jsonrpc/test/ethereum_jsonrpc_test.exs
@@ -235,7 +235,7 @@ defmodule EthereumJSONRPCTest do
describe "fetch_beneficiaries/2" do
@tag :no_geth
- test "fetches benefeciaries from variant API", %{json_rpc_named_arguments: json_rpc_named_arguments} do
+ test "fetches beneficiaries from variant API", %{json_rpc_named_arguments: json_rpc_named_arguments} do
if json_rpc_named_arguments[:transport] == EthereumJSONRPC.Mox do
expect(EthereumJSONRPC.Mox, :json_rpc, fn _, _ ->
{:ok, []}
diff --git a/apps/explorer/lib/explorer/account/tag_address.ex b/apps/explorer/lib/explorer/account/tag_address.ex
index c3db589648..546632773e 100644
--- a/apps/explorer/lib/explorer/account/tag_address.ex
+++ b/apps/explorer/lib/explorer/account/tag_address.ex
@@ -41,7 +41,7 @@ defmodule Explorer.Account.TagAddress do
|> validate_length(:name, min: 1, max: 35)
|> put_hashed_fields()
|> unique_constraint([:identity_id, :address_hash_hash], message: "Address tag already exists")
- |> check_existance_or_create_address()
+ |> check_existence_or_create_address()
|> tag_address_count_constraint()
end
@@ -56,13 +56,13 @@ defmodule Explorer.Account.TagAddress do
|> put_change(:address_hash_hash, hash_to_lower_case_string(get_field(changeset, :address_hash)))
end
- defp check_existance_or_create_address(%Changeset{changes: %{address_hash: address_hash}, valid?: true} = changeset) do
- check_existance_or_create_address_inner(changeset, address_hash)
+ defp check_existence_or_create_address(%Changeset{changes: %{address_hash: address_hash}, valid?: true} = changeset) do
+ check_existence_or_create_address_inner(changeset, address_hash)
end
- defp check_existance_or_create_address(changeset), do: changeset
+ defp check_existence_or_create_address(changeset), do: changeset
- defp check_existance_or_create_address_inner(changeset, address_hash) do
+ defp check_existence_or_create_address_inner(changeset, address_hash) do
with {:ok, hash} <- Hash.Address.cast(address_hash),
{:ok, %Address{}} <- Chain.find_or_insert_address_from_hash(hash, []) do
changeset
diff --git a/apps/explorer/lib/explorer/account/tag_transaction.ex b/apps/explorer/lib/explorer/account/tag_transaction.ex
index 2839b23559..086488ab23 100644
--- a/apps/explorer/lib/explorer/account/tag_transaction.ex
+++ b/apps/explorer/lib/explorer/account/tag_transaction.ex
@@ -40,7 +40,7 @@ defmodule Explorer.Account.TagTransaction do
|> put_hashed_fields()
|> unique_constraint([:identity_id, :tx_hash_hash], message: "Transaction tag already exists")
|> tag_transaction_count_constraint()
- |> check_transaction_existance()
+ |> check_transaction_existence()
end
def create(attrs) do
@@ -54,13 +54,13 @@ defmodule Explorer.Account.TagTransaction do
|> put_change(:tx_hash_hash, hash_to_lower_case_string(get_field(changeset, :tx_hash)))
end
- defp check_transaction_existance(%Changeset{changes: %{tx_hash: tx_hash}} = changeset) do
- check_transaction_existance_inner(changeset, tx_hash)
+ defp check_transaction_existence(%Changeset{changes: %{tx_hash: tx_hash}} = changeset) do
+ check_transaction_existence_inner(changeset, tx_hash)
end
- defp check_transaction_existance(changeset), do: changeset
+ defp check_transaction_existence(changeset), do: changeset
- defp check_transaction_existance_inner(changeset, tx_hash) do
+ defp check_transaction_existence_inner(changeset, tx_hash) do
if match?({:ok, _}, Chain.hash_to_transaction(tx_hash)) do
changeset
else
diff --git a/apps/explorer/lib/explorer/account/watchlist_notification.ex b/apps/explorer/lib/explorer/account/watchlist_notification.ex
index 6c909be3ed..935e532187 100644
--- a/apps/explorer/lib/explorer/account/watchlist_notification.ex
+++ b/apps/explorer/lib/explorer/account/watchlist_notification.ex
@@ -1,6 +1,6 @@
defmodule Explorer.Account.WatchlistNotification do
@moduledoc """
- Strored notification about event
+ Stored notification about event
related to WatchlistAddress
"""
diff --git a/apps/explorer/lib/explorer/chain.ex b/apps/explorer/lib/explorer/chain.ex
index a0a89d4809..41b9389151 100644
--- a/apps/explorer/lib/explorer/chain.ex
+++ b/apps/explorer/lib/explorer/chain.ex
@@ -98,7 +98,7 @@ defmodule Explorer.Chain do
@default_paging_options %PagingOptions{page_size: 50}
@token_transfers_per_transaction_preview 10
- @token_transfers_neccessity_by_association %{
+ @token_transfers_necessity_by_association %{
[from_address: :smart_contract] => :optional,
[to_address: :smart_contract] => :optional,
[from_address: :names] => :optional,
@@ -346,7 +346,7 @@ defmodule Explorer.Chain do
This query is divided into multiple subqueries intentionally in order to
improve the listing performance.
- The `token_trasfers` table tends to grow exponentially, and the query results
+ The `token_transfers` table tends to grow exponentially, and the query results
with a `transactions` `join` statement takes too long.
To solve this the `transaction_hashes` are fetched in a separate query, and
@@ -473,7 +473,7 @@ defmodule Explorer.Chain do
options
|> address_to_transactions_tasks_query()
- |> Transaction.not_dropped_or_replaced_transacions()
+ |> Transaction.not_dropped_or_replaced_transactions()
|> where_block_number_in_period(from_block, to_block)
|> join_associations(necessity_by_association)
|> Transaction.matching_address_queries_list(direction, address_hash)
@@ -967,7 +967,7 @@ defmodule Explorer.Chain do
|> Repo.all()
|> (&if(old_ui?,
do: &1,
- else: Enum.map(&1, fn tx -> preload_token_transfers(tx, @token_transfers_neccessity_by_association) end)
+ else: Enum.map(&1, fn tx -> preload_token_transfers(tx, @token_transfers_necessity_by_association) end)
)).()
end
@@ -2087,7 +2087,7 @@ defmodule Explorer.Chain do
end
end
- # preload_to_detect_tt?: we don't need to preload more than one token transfer in case the tx inside the list (we dont't show any token transfers on tx tile in new UI)
+ # preload_to_detect_tt?: we don't need to preload more than one token transfer in case the tx inside the list (we don't show any token transfers on tx tile in new UI)
def preload_token_transfers(
%Transaction{hash: tx_hash, block_hash: block_hash} = transaction,
necessity_by_association,
@@ -3402,7 +3402,7 @@ defmodule Explorer.Chain do
|> Repo.all()
|> (&if(old_ui?,
do: &1,
- else: Enum.map(&1, fn tx -> preload_token_transfers(tx, @token_transfers_neccessity_by_association) end)
+ else: Enum.map(&1, fn tx -> preload_token_transfers(tx, @token_transfers_necessity_by_association) end)
)).()
end
@@ -3452,7 +3452,7 @@ defmodule Explorer.Chain do
|> Repo.all()
|> (&if(old_ui?,
do: &1,
- else: Enum.map(&1, fn tx -> preload_token_transfers(tx, @token_transfers_neccessity_by_association) end)
+ else: Enum.map(&1, fn tx -> preload_token_transfers(tx, @token_transfers_necessity_by_association) end)
)).()
end
@@ -4470,7 +4470,7 @@ defmodule Explorer.Chain do
defp handle_random_access_paging_options(query, paging_options) do
query
- |> (&if(paging_options |> Map.get(:page_number, 1) |> proccess_page_number() == 1,
+ |> (&if(paging_options |> Map.get(:page_number, 1) |> process_page_number() == 1,
do: &1,
else: page_transaction(&1, paging_options)
)).()
@@ -4478,7 +4478,7 @@ defmodule Explorer.Chain do
end
defp handle_page(query, paging_options) do
- page_number = paging_options |> Map.get(:page_number, 1) |> proccess_page_number()
+ page_number = paging_options |> Map.get(:page_number, 1) |> process_page_number()
page_size = Map.get(paging_options, :page_size, @default_page_size)
cond do
@@ -4497,9 +4497,9 @@ defmodule Explorer.Chain do
end
end
- defp proccess_page_number(number) when number < 1, do: 1
+ defp process_page_number(number) when number < 1, do: 1
- defp proccess_page_number(number), do: number
+ defp process_page_number(number), do: number
defp page_in_bounds?(page_number, page_size),
do: page_size <= @limit_showing_transactions && @limit_showing_transactions - page_number * page_size >= 0
diff --git a/apps/explorer/lib/explorer/chain/address/coin_balance_daily.ex b/apps/explorer/lib/explorer/chain/address/coin_balance_daily.ex
index f2c677963a..059b1562f8 100644
--- a/apps/explorer/lib/explorer/chain/address/coin_balance_daily.ex
+++ b/apps/explorer/lib/explorer/chain/address/coin_balance_daily.ex
@@ -1,7 +1,7 @@
defmodule Explorer.Chain.Address.CoinBalanceDaily do
@moduledoc """
Maximum `t:Explorer.Chain.Wei.t/0` `value` of `t:Explorer.Chain.Address.t/0` at the day.
- This table is used to display coinn balance history chart.
+ This table is used to display coin balance history chart.
"""
use Explorer.Schema
diff --git a/apps/explorer/lib/explorer/chain/address/token_balance.ex b/apps/explorer/lib/explorer/chain/address/token_balance.ex
index 1fd2219bfb..296a646af1 100644
--- a/apps/explorer/lib/explorer/chain/address/token_balance.ex
+++ b/apps/explorer/lib/explorer/chain/address/token_balance.ex
@@ -2,7 +2,7 @@ defmodule Explorer.Chain.Address.TokenBalance do
@moduledoc """
Represents a token balance from an address.
- In this table we can see all token balances that a specific addreses had acording to the block
+ In this table we can see all token balances that a specific addresses had according to the block
numbers. If you want to show only the last balance from an address, consider querying against
`Address.CurrentTokenBalance` instead.
"""
diff --git a/apps/explorer/lib/explorer/chain/cache/accounts.ex b/apps/explorer/lib/explorer/chain/cache/accounts.ex
index 523bd44877..f243405484 100644
--- a/apps/explorer/lib/explorer/chain/cache/accounts.ex
+++ b/apps/explorer/lib/explorer/chain/cache/accounts.ex
@@ -34,7 +34,7 @@ defmodule Explorer.Chain.Cache.Accounts do
def drop([]), do: :ok
def drop(addresses) when is_list(addresses) do
- # This has to be used by the Indexer insead of `update`.
+ # This has to be used by the Indexer instead of `update`.
# The reason being that addresses already in the cache can change their balance
# value and removing or updating them will result into a potentially invalid
# cache status, that would not even get corrected with time.
diff --git a/apps/explorer/lib/explorer/chain/cache/address_sum.ex b/apps/explorer/lib/explorer/chain/cache/address_sum.ex
index 6731bfb660..dc430400ad 100644
--- a/apps/explorer/lib/explorer/chain/cache/address_sum.ex
+++ b/apps/explorer/lib/explorer/chain/cache/address_sum.ex
@@ -35,7 +35,7 @@ defmodule Explorer.Chain.Cache.AddressSum do
rescue
e ->
Logger.debug([
- "Coudn't update address sum: ",
+ "Couldn't update address sum: ",
Exception.format(:error, e, __STACKTRACE__)
])
end
diff --git a/apps/explorer/lib/explorer/chain/cache/address_sum_minus_burnt.ex b/apps/explorer/lib/explorer/chain/cache/address_sum_minus_burnt.ex
index 6954173449..0fb0d7800b 100644
--- a/apps/explorer/lib/explorer/chain/cache/address_sum_minus_burnt.ex
+++ b/apps/explorer/lib/explorer/chain/cache/address_sum_minus_burnt.ex
@@ -42,7 +42,7 @@ defmodule Explorer.Chain.Cache.AddressSumMinusBurnt do
rescue
e ->
Logger.debug([
- "Coudn't update address sum: ",
+ "Couldn't update address sum: ",
Exception.format(:error, e, __STACKTRACE__)
])
end
diff --git a/apps/explorer/lib/explorer/chain/cache/block.ex b/apps/explorer/lib/explorer/chain/cache/block.ex
index 3f97790745..588a304a35 100644
--- a/apps/explorer/lib/explorer/chain/cache/block.ex
+++ b/apps/explorer/lib/explorer/chain/cache/block.ex
@@ -59,7 +59,7 @@ defmodule Explorer.Chain.Cache.Block do
rescue
e ->
Logger.debug([
- "Coudn't update block count: ",
+ "Couldn't update block count: ",
Exception.format(:error, e, __STACKTRACE__)
])
end
diff --git a/apps/explorer/lib/explorer/chain/cache/gas_price_oracle.ex b/apps/explorer/lib/explorer/chain/cache/gas_price_oracle.ex
index 2061e30dd3..709e57be7b 100644
--- a/apps/explorer/lib/explorer/chain/cache/gas_price_oracle.ex
+++ b/apps/explorer/lib/explorer/chain/cache/gas_price_oracle.ex
@@ -46,7 +46,7 @@ defmodule Explorer.Chain.Cache.GasPriceOracle do
callback: &async_task_on_deletion(&1)
def get_average_gas_price(num_of_blocks, safelow_percentile, average_percentile, fast_percentile) do
- lates_gas_price_query =
+ latest_gas_price_query =
from(
block in Block,
left_join: transaction in assoc(block, :transactions),
@@ -60,7 +60,7 @@ defmodule Explorer.Chain.Cache.GasPriceOracle do
)
latest_gas_prices =
- lates_gas_price_query
+ latest_gas_price_query
|> Repo.all(timeout: :infinity)
latest_ordered_gas_prices =
@@ -103,7 +103,7 @@ defmodule Explorer.Chain.Cache.GasPriceOracle do
rescue
e ->
Logger.debug([
- "Coudn't update gas used gas_prices",
+ "Couldn't update gas used gas_prices",
Exception.format(:error, e, __STACKTRACE__)
])
end
diff --git a/apps/explorer/lib/explorer/chain/cache/gas_usage.ex b/apps/explorer/lib/explorer/chain/cache/gas_usage.ex
index 9d2c748b75..e5c8883ede 100644
--- a/apps/explorer/lib/explorer/chain/cache/gas_usage.ex
+++ b/apps/explorer/lib/explorer/chain/cache/gas_usage.ex
@@ -57,7 +57,7 @@ defmodule Explorer.Chain.Cache.GasUsage do
rescue
e ->
Logger.debug([
- "Coudn't update gas used sum: ",
+ "Couldn't update gas used sum: ",
Exception.format(:error, e, __STACKTRACE__)
])
end
diff --git a/apps/explorer/lib/explorer/chain/cache/net_version.ex b/apps/explorer/lib/explorer/chain/cache/net_version.ex
index 43811a076b..15edbf6048 100644
--- a/apps/explorer/lib/explorer/chain/cache/net_version.ex
+++ b/apps/explorer/lib/explorer/chain/cache/net_version.ex
@@ -16,7 +16,7 @@ defmodule Explorer.Chain.Cache.NetVersion do
{:error, reason} ->
Logger.debug([
- "Coudn't fetch net_version, reason: #{inspect(reason)}"
+ "Couldn't fetch net_version, reason: #{inspect(reason)}"
])
{:return, nil}
diff --git a/apps/explorer/lib/explorer/chain/cache/new_verified_contracts_counter.ex b/apps/explorer/lib/explorer/chain/cache/new_verified_contracts_counter.ex
index afe13ac9b6..2bf155f3c3 100644
--- a/apps/explorer/lib/explorer/chain/cache/new_verified_contracts_counter.ex
+++ b/apps/explorer/lib/explorer/chain/cache/new_verified_contracts_counter.ex
@@ -1,6 +1,6 @@
defmodule Explorer.Chain.Cache.NewVerifiedContractsCounter do
@moduledoc """
- Caches the number of new verfied contracts (verified in last 24 hours).
+ Caches the number of new verified contracts (verified in last 24 hours).
It loads the count asynchronously and in a time interval of 30 minutes.
"""
diff --git a/apps/explorer/lib/explorer/chain/cache/transaction.ex b/apps/explorer/lib/explorer/chain/cache/transaction.ex
index 937dd3aaa3..56dbedef18 100644
--- a/apps/explorer/lib/explorer/chain/cache/transaction.ex
+++ b/apps/explorer/lib/explorer/chain/cache/transaction.ex
@@ -56,7 +56,7 @@ defmodule Explorer.Chain.Cache.Transaction do
rescue
e ->
Logger.debug([
- "Coudn't update transaction count: ",
+ "Couldn't update transaction count: ",
Exception.format(:error, e, __STACKTRACE__)
])
end
diff --git a/apps/explorer/lib/explorer/chain/import/runner.ex b/apps/explorer/lib/explorer/chain/import/runner.ex
index 402cb23acd..0a543d6b7c 100644
--- a/apps/explorer/lib/explorer/chain/import/runner.ex
+++ b/apps/explorer/lib/explorer/chain/import/runner.ex
@@ -12,7 +12,7 @@ defmodule Explorer.Chain.Import.Runner do
@typedoc """
Validated changes extracted from a valid `Ecto.Changeset` produced by the `t:changeset_function_name/0` in
- `c:ecto_schemma_module/0`.
+ `c:ecto_schema_module/0`.
"""
@type changes :: %{optional(atom) => term()}
diff --git a/apps/explorer/lib/explorer/chain/import/runner/address/current_token_balances.ex b/apps/explorer/lib/explorer/chain/import/runner/address/current_token_balances.ex
index 4480cd883b..b0d691190e 100644
--- a/apps/explorer/lib/explorer/chain/import/runner/address/current_token_balances.ex
+++ b/apps/explorer/lib/explorer/chain/import/runner/address/current_token_balances.ex
@@ -112,7 +112,7 @@ defmodule Explorer.Chain.Import.Runner.Address.CurrentTokenBalances do
token_contract_address_hashes_and_ids =
changes_list
|> Enum.map(fn change ->
- token_id = get_tokend_id(change)
+ token_id = get_token_id(change)
{change.token_contract_address_hash, token_id}
end)
@@ -161,7 +161,7 @@ defmodule Explorer.Chain.Import.Runner.Address.CurrentTokenBalances do
end)
end
- defp get_tokend_id(change) do
+ defp get_token_id(change) do
if Map.has_key?(change, :token_id), do: change.token_id, else: nil
end
diff --git a/apps/explorer/lib/explorer/chain/import/runner/address/token_balances.ex b/apps/explorer/lib/explorer/chain/import/runner/address/token_balances.ex
index 544e388074..746e8bd965 100644
--- a/apps/explorer/lib/explorer/chain/import/runner/address/token_balances.ex
+++ b/apps/explorer/lib/explorer/chain/import/runner/address/token_balances.ex
@@ -46,7 +46,7 @@ defmodule Explorer.Chain.Import.Runner.Address.TokenBalances do
Instrumenter.block_import_stage_runner(
fn -> insert(repo, changes_list, insert_options) end,
:block_referencing,
- :token_blances,
+ :token_balances,
:address_token_balances
)
end)
diff --git a/apps/explorer/lib/explorer/chain/import/runner/blocks.ex b/apps/explorer/lib/explorer/chain/import/runner/blocks.ex
index 51170e840f..ea6b1a5b85 100644
--- a/apps/explorer/lib/explorer/chain/import/runner/blocks.ex
+++ b/apps/explorer/lib/explorer/chain/import/runner/blocks.ex
@@ -369,7 +369,7 @@ defmodule Explorer.Chain.Import.Runner.Blocks do
}) do
acquire_query =
from(
- block in where_invalid_neighbour(changes_list),
+ block in where_invalid_neighbor(changes_list),
or_where: block.number in ^consensus_block_numbers,
# we also need to acquire blocks that will be upserted here, for ordering
or_where: block.hash in ^hashes,
@@ -711,7 +711,7 @@ defmodule Explorer.Chain.Import.Runner.Blocks do
end)
end
- defp where_invalid_neighbour(blocks_changes) when is_list(blocks_changes) do
+ defp where_invalid_neighbor(blocks_changes) when is_list(blocks_changes) do
initial = from(b in Block, where: false)
Enum.reduce(blocks_changes, initial, fn %{
diff --git a/apps/explorer/lib/explorer/chain/import/runner/internal_transactions.ex b/apps/explorer/lib/explorer/chain/import/runner/internal_transactions.ex
index 77bd296d8b..9dbfbe9ffb 100644
--- a/apps/explorer/lib/explorer/chain/import/runner/internal_transactions.ex
+++ b/apps/explorer/lib/explorer/chain/import/runner/internal_transactions.ex
@@ -678,7 +678,7 @@ defmodule Explorer.Chain.Import.Runner.InternalTransactions do
)
try do
- # ShreLocks order already enforced by `acquire_pending_internal_txs` (see docs: sharelocks.md)
+ # ShareLocks order already enforced by `acquire_pending_internal_txs` (see docs: sharelocks.md)
{_count, deleted} = repo.delete_all(delete_query, [])
{:ok, deleted}
diff --git a/apps/explorer/lib/explorer/chain/internal_transaction.ex b/apps/explorer/lib/explorer/chain/internal_transaction.ex
index 0b197ab152..6d424c381f 100644
--- a/apps/explorer/lib/explorer/chain/internal_transaction.ex
+++ b/apps/explorer/lib/explorer/chain/internal_transaction.ex
@@ -200,7 +200,7 @@ defmodule Explorer.Chain.InternalTransaction do
bytes: <<120, 164, 45, 55, 5, 251, 60, 38, 164, 181, 71, 55, 167, 132, 191, 6, 79, 8, 21, 251>>
}
- `:call` type traces are generated when a method in a contrat is call.
+ `:call` type traces are generated when a method in a contract is call.
iex> changeset = Explorer.Chain.InternalTransaction.changeset(
...> %Explorer.Chain.InternalTransaction{},
@@ -608,7 +608,7 @@ defmodule Explorer.Chain.InternalTransaction do
end
@doc """
- Filters out internal_transactions of blocks that are flagged as needing fethching
+ Filters out internal_transactions of blocks that are flagged as needing fetching
of internal_transactions
"""
def where_nonpending_block(query \\ nil) do
diff --git a/apps/explorer/lib/explorer/chain/map_cache.ex b/apps/explorer/lib/explorer/chain/map_cache.ex
index d50a4c5e44..6dfbe6b27e 100644
--- a/apps/explorer/lib/explorer/chain/map_cache.ex
+++ b/apps/explorer/lib/explorer/chain/map_cache.ex
@@ -28,7 +28,7 @@ defmodule Explorer.Chain.MapCache do
## Callbacks
Apart from the `callback` that can be set as part of the `ConCache` options,
- two callbacks esist and can be overridden:
+ two callbacks exist and can be overridden:
`c:handle_update/3` will be called whenever an update is issued. It will receive
the `t:key/0` that is going to be updated, the current `t:value/0` that is
diff --git a/apps/explorer/lib/explorer/chain/ordered_cache.ex b/apps/explorer/lib/explorer/chain/ordered_cache.ex
index 5365fe0f76..c6235d33b8 100644
--- a/apps/explorer/lib/explorer/chain/ordered_cache.ex
+++ b/apps/explorer/lib/explorer/chain/ordered_cache.ex
@@ -246,7 +246,7 @@ defmodule Explorer.Chain.OrderedCache do
defp merge_and_update([], existing, size) do
# if there are no more candidates to be inserted keep as many of the
- # exsisting elements and remove the rest
+ # existing elements and remove the rest
{remaining, to_remove} = Enum.split(existing, size)
remove(to_remove)
remaining
@@ -274,7 +274,7 @@ defmodule Explorer.Chain.OrderedCache do
[head | merge_and_update(to_check, tail, size - 1)]
prevails?(head, candidate_id) ->
- # keep the prevaling existing value and compare all candidates against the rest
+ # keep the prevailing existing value and compare all candidates against the rest
[head | merge_and_update(candidates, tail, size - 1)]
true ->
diff --git a/apps/explorer/lib/explorer/chain/smart_contract.ex b/apps/explorer/lib/explorer/chain/smart_contract.ex
index e0512898cb..8e457d2579 100644
--- a/apps/explorer/lib/explorer/chain/smart_contract.ex
+++ b/apps/explorer/lib/explorer/chain/smart_contract.ex
@@ -544,7 +544,7 @@ defmodule Explorer.Chain.SmartContract do
) do
updated_smart_contract =
if Application.get_env(:explorer, :enable_caching_implementation_data_of_proxy) &&
- check_implementation_refetch_neccessity(implementation_fetched_at) do
+ check_implementation_refetch_necessity(implementation_fetched_at) do
Chain.address_hash_to_smart_contract_without_twin(address_hash)
else
smart_contract
@@ -564,7 +564,7 @@ defmodule Explorer.Chain.SmartContract do
metadata_from_verified_twin: metadata_from_verified_twin
}}
) do
- if check_implementation_refetch_neccessity(implementation_fetched_at) do
+ if check_implementation_refetch_necessity(implementation_fetched_at) do
get_implementation_address_hash_task =
Task.async(fn -> get_implementation_address_hash(address_hash, abi, metadata_from_verified_twin) end)
@@ -594,9 +594,9 @@ defmodule Explorer.Chain.SmartContract do
defp db_implementation_data_converter(string) when is_binary(string), do: string
defp db_implementation_data_converter(other), do: to_string(other)
- defp check_implementation_refetch_neccessity(nil), do: true
+ defp check_implementation_refetch_necessity(nil), do: true
- defp check_implementation_refetch_neccessity(timestamp) do
+ defp check_implementation_refetch_necessity(timestamp) do
if Application.get_env(:explorer, :enable_caching_implementation_data_of_proxy) do
now = DateTime.utc_now()
diff --git a/apps/explorer/lib/explorer/chain/smart_contract/verification_status.ex b/apps/explorer/lib/explorer/chain/smart_contract/verification_status.ex
index dd336dcf5a..0571238c87 100644
--- a/apps/explorer/lib/explorer/chain/smart_contract/verification_status.ex
+++ b/apps/explorer/lib/explorer/chain/smart_contract/verification_status.ex
@@ -13,7 +13,7 @@ defmodule Explorer.Chain.SmartContract.VerificationStatus do
@typedoc """
* `address_hash` - address of the contract which was tried to verify
* `status` - try status: :pending | :pass | :fail
- * `uid` - unique verification try identifer
+ * `uid` - unique verification try identifier
"""
@type t :: %__MODULE__{
diff --git a/apps/explorer/lib/explorer/chain/supply/rsk.ex b/apps/explorer/lib/explorer/chain/supply/rsk.ex
index c34cf62d49..1037dd4cf7 100644
--- a/apps/explorer/lib/explorer/chain/supply/rsk.ex
+++ b/apps/explorer/lib/explorer/chain/supply/rsk.ex
@@ -108,9 +108,9 @@ defmodule Explorer.Chain.Supply.RSK do
%{block_quantity: integer_to_quantity(max_number), hash_data: "0x0000000000000000000000000000000001000006"}
]
- json_rpc_named_argumens = Application.get_env(:explorer, :json_rpc_named_arguments)
+ json_rpc_named_arguments = Application.get_env(:explorer, :json_rpc_named_arguments)
- case EthereumJSONRPC.fetch_balances(params, json_rpc_named_argumens) do
+ case EthereumJSONRPC.fetch_balances(params, json_rpc_named_arguments) do
{:ok,
%FetchedBalances{
errors: [],
diff --git a/apps/explorer/lib/explorer/chain/token.ex b/apps/explorer/lib/explorer/chain/token.ex
index ff60177a27..713097bfe6 100644
--- a/apps/explorer/lib/explorer/chain/token.ex
+++ b/apps/explorer/lib/explorer/chain/token.ex
@@ -32,7 +32,7 @@ defmodule Explorer.Chain.Token do
* `total_supply` - The total supply of the token
* `decimals` - Number of decimal places the token can be subdivided to
* `type` - Type of token
- * `calatoged` - Flag for if token information has been cataloged
+ * `cataloged` - Flag for if token information has been cataloged
* `contract_address` - The `t:Address.t/0` of the token's contract
* `contract_address_hash` - Address hash foreign key
* `holder_count` - the number of `t:Explorer.Chain.Address.t/0` (except the burn address) that have a
diff --git a/apps/explorer/lib/explorer/chain/transaction.ex b/apps/explorer/lib/explorer/chain/transaction.ex
index 5802cb044c..222138a2a2 100644
--- a/apps/explorer/lib/explorer/chain/transaction.ex
+++ b/apps/explorer/lib/explorer/chain/transaction.ex
@@ -446,14 +446,14 @@ defmodule Explorer.Chain.Transaction do
def decoded_revert_reason(transaction, revert_reason) do
case revert_reason do
"0x" <> hex_part ->
- proccess_hex_revert_reason(hex_part, transaction)
+ process_hex_revert_reason(hex_part, transaction)
hex_part ->
- proccess_hex_revert_reason(hex_part, transaction)
+ process_hex_revert_reason(hex_part, transaction)
end
end
- defp proccess_hex_revert_reason(hex_revert_reason, %__MODULE__{to_address: smart_contract, hash: hash}) do
+ defp process_hex_revert_reason(hex_revert_reason, %__MODULE__{to_address: smart_contract, hash: hash}) do
case Integer.parse(hex_revert_reason, 16) do
{number, ""} ->
binary_revert_reason = :binary.encode_unsigned(number)
@@ -734,7 +734,7 @@ defmodule Explorer.Chain.Transaction do
where(query, [t], not is_nil(t.block_number))
end
- def not_dropped_or_replaced_transacions(query) do
+ def not_dropped_or_replaced_transactions(query) do
where(query, [t], is_nil(t.error) or t.error != "dropped/replaced")
end
diff --git a/apps/explorer/lib/explorer/chain/transaction/history/historian.ex b/apps/explorer/lib/explorer/chain/transaction/history/historian.ex
index 254ce53699..80e7a7c9b3 100644
--- a/apps/explorer/lib/explorer/chain/transaction/history/historian.ex
+++ b/apps/explorer/lib/explorer/chain/transaction/history/historian.ex
@@ -1,6 +1,6 @@
defmodule Explorer.Chain.Transaction.History.Historian do
@moduledoc """
- Implements behaviour Historian which will compile TransactionStats from Block/Transaction data and then save the TransactionStats into the database for later retrevial.
+ Implements behaviour Historian which will compile TransactionStats from Block/Transaction data and then save the TransactionStats into the database for later retrieval.
"""
require Logger
use Explorer.History.Historian
diff --git a/apps/explorer/lib/explorer/env_var_translator.ex b/apps/explorer/lib/explorer/env_var_translator.ex
index 62f3da9003..5e2db974d9 100644
--- a/apps/explorer/lib/explorer/env_var_translator.ex
+++ b/apps/explorer/lib/explorer/env_var_translator.ex
@@ -1,6 +1,6 @@
defmodule Explorer.EnvVarTranslator do
@moduledoc """
- The module for transaformation of environment variables
+ The module for transformation of environment variables
"""
alias Poison.Parser
diff --git a/apps/explorer/lib/explorer/repo/config_helper.ex b/apps/explorer/lib/explorer/repo/config_helper.ex
index 6c35773886..a4c1d575e6 100644
--- a/apps/explorer/lib/explorer/repo/config_helper.ex
+++ b/apps/explorer/lib/explorer/repo/config_helper.ex
@@ -4,7 +4,7 @@ defmodule Explorer.Repo.ConfigHelper do
Notably, this module processes the DATABASE_URL environment variable and extracts discrete parameters.
- The priority of vars is postgrex environment vars < DATABASE_URL components, with values being overwritted by higher priority.
+ The priority of vars is postgrex environment vars < DATABASE_URL components, with values being overwritten by higher priority.
"""
# https://hexdocs.pm/postgrex/Postgrex.html#start_link/1-options
diff --git a/apps/explorer/lib/explorer/smart_contract/reader.ex b/apps/explorer/lib/explorer/smart_contract/reader.ex
index 6e3170a578..358d3dc65d 100644
--- a/apps/explorer/lib/explorer/smart_contract/reader.ex
+++ b/apps/explorer/lib/explorer/smart_contract/reader.ex
@@ -360,7 +360,7 @@ defmodule Explorer.SmartContract.Reader do
@doc """
Method performs query of read functions of a smart contract.
- `type` could be :proxy or :reqular
+ `type` could be :proxy or :regular
`from` is a address of a function caller
"""
@spec query_function_with_names(
@@ -377,7 +377,7 @@ defmodule Explorer.SmartContract.Reader do
@doc """
Method performs query of read functions of a smart contract.
- `type` could be :proxy or :reqular
+ `type` could be :proxy or :regular
`from` is a address of a function caller
"""
@spec query_function_with_names_custom_abi(
@@ -427,7 +427,7 @@ defmodule Explorer.SmartContract.Reader do
abi
|> ABI.parse_specification()
- case proccess_abi(parsed_final_abi, method_id) do
+ case process_abi(parsed_final_abi, method_id) do
%{outputs: outputs, method_id: method_id} ->
query_contract_and_link_outputs(contract_address_hash, args, from, abi, outputs, method_id, leave_error_as_map)
@@ -493,7 +493,7 @@ defmodule Explorer.SmartContract.Reader do
custom_abi
|> ABI.parse_specification()
- %{outputs: outputs, method_id: method_id} = proccess_abi(parsed_abi, method_id)
+ %{outputs: outputs, method_id: method_id} = process_abi(parsed_abi, method_id)
query_contract_and_link_outputs(
contract_address_hash,
@@ -506,9 +506,9 @@ defmodule Explorer.SmartContract.Reader do
)
end
- defp proccess_abi([], _method_id), do: nil
+ defp process_abi([], _method_id), do: nil
- defp proccess_abi(abi, method_id) do
+ defp process_abi(abi, method_id) do
function_object = find_function_by_method(abi, method_id)
if function_object do
diff --git a/apps/explorer/lib/explorer/smart_contract/rust_verifier_interface.ex b/apps/explorer/lib/explorer/smart_contract/rust_verifier_interface.ex
index 4db03b1e9d..2cc1a57728 100644
--- a/apps/explorer/lib/explorer/smart_contract/rust_verifier_interface.ex
+++ b/apps/explorer/lib/explorer/smart_contract/rust_verifier_interface.ex
@@ -50,7 +50,7 @@ defmodule Explorer.SmartContract.RustVerifierInterface do
case HTTPoison.post(url, Jason.encode!(normalize_creation_bytecode(body)), headers, recv_timeout: @post_timeout) do
{:ok, %Response{body: body, status_code: _}} ->
- proccess_verifier_response(body)
+ process_verifier_response(body)
{:error, error} ->
old_truncate = Application.get_env(:logger, :truncate)
@@ -71,7 +71,7 @@ defmodule Explorer.SmartContract.RustVerifierInterface do
def http_get_request(url) do
case HTTPoison.get(url) do
{:ok, %Response{body: body, status_code: 200}} ->
- proccess_verifier_response(body)
+ process_verifier_response(body)
{:ok, %Response{body: body, status_code: _}} ->
{:error, body}
@@ -100,27 +100,27 @@ defmodule Explorer.SmartContract.RustVerifierInterface do
http_get_request(vyper_versions_list_url())
end
- def proccess_verifier_response(body) when is_binary(body) do
+ def process_verifier_response(body) when is_binary(body) do
case Jason.decode(body) do
{:ok, decoded} ->
- proccess_verifier_response(decoded)
+ process_verifier_response(decoded)
_ ->
{:error, body}
end
end
- def proccess_verifier_response(%{"status" => "SUCCESS", "source" => source}) do
+ def process_verifier_response(%{"status" => "SUCCESS", "source" => source}) do
{:ok, source}
end
- def proccess_verifier_response(%{"status" => "FAILURE", "message" => error}) do
+ def process_verifier_response(%{"status" => "FAILURE", "message" => error}) do
{:error, error}
end
- def proccess_verifier_response(%{"compilerVersions" => versions}), do: {:ok, versions}
+ def process_verifier_response(%{"compilerVersions" => versions}), do: {:ok, versions}
- def proccess_verifier_response(other), do: {:error, other}
+ def process_verifier_response(other), do: {:error, other}
def normalize_creation_bytecode(%{"creation_bytecode" => ""} = map), do: Map.replace(map, "creation_bytecode", nil)
diff --git a/apps/explorer/lib/explorer/smart_contract/sig_provider_interface.ex b/apps/explorer/lib/explorer/smart_contract/sig_provider_interface.ex
index b01ce62571..92bba0d0ec 100644
--- a/apps/explorer/lib/explorer/smart_contract/sig_provider_interface.ex
+++ b/apps/explorer/lib/explorer/smart_contract/sig_provider_interface.ex
@@ -39,7 +39,7 @@ defmodule Explorer.SmartContract.SigProviderInterface do
def http_get_request(url) do
case HTTPoison.get(url) do
{:ok, %Response{body: body, status_code: 200}} ->
- proccess_sig_provider_response(body)
+ process_sig_provider_response(body)
{:ok, %Response{body: body, status_code: _}} ->
{:error, body}
@@ -60,19 +60,19 @@ defmodule Explorer.SmartContract.SigProviderInterface do
end
end
- def proccess_sig_provider_response(body) when is_binary(body) do
+ def process_sig_provider_response(body) when is_binary(body) do
case Jason.decode(body) do
{:ok, decoded} ->
- proccess_sig_provider_response(decoded)
+ process_sig_provider_response(decoded)
_ ->
{:error, body}
end
end
- def proccess_sig_provider_response(results) when is_list(results), do: {:ok, results}
+ def process_sig_provider_response(results) when is_list(results), do: {:ok, results}
- def proccess_sig_provider_response(other_responses), do: {:error, other_responses}
+ def process_sig_provider_response(other_responses), do: {:error, other_responses}
def tx_input_decode_url, do: "#{base_api_url()}" <> "/function"
diff --git a/apps/explorer/lib/explorer/smart_contract/solidity/publish_helper.ex b/apps/explorer/lib/explorer/smart_contract/solidity/publish_helper.ex
index eb34687e53..f8d17fb358 100644
--- a/apps/explorer/lib/explorer/smart_contract/solidity/publish_helper.ex
+++ b/apps/explorer/lib/explorer/smart_contract/solidity/publish_helper.ex
@@ -181,19 +181,19 @@ defmodule Explorer.SmartContract.Solidity.PublishHelper do
def publish_without_broadcast(
%{"addressHash" => address_hash, "abi" => abi, "compilationTargetFilePath" => file_path} = input
) do
- params = proccess_params(input)
+ params = process_params(input)
address_hash
|> Publisher.publish_smart_contract(params, abi, file_path)
- |> proccess_response()
+ |> process_response()
end
def publish_without_broadcast(%{"addressHash" => address_hash, "abi" => abi} = input) do
- params = proccess_params(input)
+ params = process_params(input)
address_hash
|> Publisher.publish_smart_contract(params, abi)
- |> proccess_response()
+ |> process_response()
end
def publish(nil, %{"addressHash" => _address_hash} = input, _) do
@@ -210,7 +210,7 @@ defmodule Explorer.SmartContract.Solidity.PublishHelper do
end
end
- def proccess_params(input) do
+ def process_params(input) do
if Map.has_key?(input, "secondarySources") do
input["params"]
|> Map.put("secondary_sources", Map.get(input, "secondarySources"))
@@ -219,7 +219,7 @@ defmodule Explorer.SmartContract.Solidity.PublishHelper do
end
end
- def proccess_response(response) do
+ def process_response(response) do
case response do
{:ok, _contract} = result ->
result
diff --git a/apps/explorer/lib/explorer/smart_contract/solidity/publisher.ex b/apps/explorer/lib/explorer/smart_contract/solidity/publisher.ex
index 0bd7522a9d..cde3faed73 100644
--- a/apps/explorer/lib/explorer/smart_contract/solidity/publisher.ex
+++ b/apps/explorer/lib/explorer/smart_contract/solidity/publisher.ex
@@ -27,9 +27,9 @@ defmodule Explorer.SmartContract.Solidity.Publisher do
"""
def publish(address_hash, params, external_libraries \\ %{}) do
- params_with_external_libaries = add_external_libraries(params, external_libraries)
+ params_with_external_libraries = add_external_libraries(params, external_libraries)
- case Verifier.evaluate_authenticity(address_hash, params_with_external_libaries) do
+ case Verifier.evaluate_authenticity(address_hash, params_with_external_libraries) do
{
:ok,
%{
@@ -42,25 +42,25 @@ defmodule Explorer.SmartContract.Solidity.Publisher do
"sourceFiles" => _
} = result_params
} ->
- proccess_rust_verifier_response(result_params, address_hash, false, false)
+ process_rust_verifier_response(result_params, address_hash, false, false)
{:ok, %{abi: abi, constructor_arguments: constructor_arguments}} ->
params_with_constructor_arguments =
- Map.put(params_with_external_libaries, "constructor_arguments", constructor_arguments)
+ Map.put(params_with_external_libraries, "constructor_arguments", constructor_arguments)
publish_smart_contract(address_hash, params_with_constructor_arguments, abi)
{:ok, %{abi: abi}} ->
- publish_smart_contract(address_hash, params_with_external_libaries, abi)
+ publish_smart_contract(address_hash, params_with_external_libraries, abi)
{:error, error} ->
- {:error, unverified_smart_contract(address_hash, params_with_external_libaries, error, nil)}
+ {:error, unverified_smart_contract(address_hash, params_with_external_libraries, error, nil)}
{:error, error, error_message} ->
- {:error, unverified_smart_contract(address_hash, params_with_external_libaries, error, error_message)}
+ {:error, unverified_smart_contract(address_hash, params_with_external_libraries, error, error_message)}
_ ->
- {:error, unverified_smart_contract(address_hash, params_with_external_libaries, "Unexpected error", nil)}
+ {:error, unverified_smart_contract(address_hash, params_with_external_libraries, "Unexpected error", nil)}
end
end
@@ -76,7 +76,7 @@ defmodule Explorer.SmartContract.Solidity.Publisher do
"sourceFiles" => _,
"compilerSettings" => _
} = result_params} ->
- proccess_rust_verifier_response(result_params, address_hash, true, true)
+ process_rust_verifier_response(result_params, address_hash, true, true)
{:ok, %{abi: abi, constructor_arguments: constructor_arguments}, additional_params} ->
params_with_constructor_arguments =
@@ -102,9 +102,9 @@ defmodule Explorer.SmartContract.Solidity.Publisher do
end
def publish_with_multi_part_files(%{"address_hash" => address_hash} = params, external_libraries \\ %{}, files) do
- params_with_external_libaries = add_external_libraries(params, external_libraries)
+ params_with_external_libraries = add_external_libraries(params, external_libraries)
- case Verifier.evaluate_authenticity_via_multi_part_files(address_hash, params_with_external_libaries, files) do
+ case Verifier.evaluate_authenticity_via_multi_part_files(address_hash, params_with_external_libraries, files) do
{:ok,
%{
"abi" => _,
@@ -115,7 +115,7 @@ defmodule Explorer.SmartContract.Solidity.Publisher do
"sourceFiles" => _,
"compilerSettings" => _
} = result_params} ->
- proccess_rust_verifier_response(result_params, address_hash, false, true)
+ process_rust_verifier_response(result_params, address_hash, false, true)
{:error, error} ->
{:error, unverified_smart_contract(address_hash, params, error, nil, true)}
@@ -125,7 +125,7 @@ defmodule Explorer.SmartContract.Solidity.Publisher do
end
end
- def proccess_rust_verifier_response(
+ def process_rust_verifier_response(
%{
"abi" => abi_string,
"compilerVersion" => compiler_version,
@@ -230,7 +230,7 @@ defmodule Explorer.SmartContract.Solidity.Publisher do
compiler_settings
end
- prepared_external_libraries = prepare_external_libraies(params["external_libraries"])
+ prepared_external_libraries = prepare_external_libraries(params["external_libraries"])
compiler_version = CompilerVersion.get_strict_compiler_version(:solc, params["compiler_version"])
@@ -256,9 +256,9 @@ defmodule Explorer.SmartContract.Solidity.Publisher do
}
end
- defp prepare_external_libraies(nil), do: []
+ defp prepare_external_libraries(nil), do: []
- defp prepare_external_libraies(map) do
+ defp prepare_external_libraries(map) do
map
|> Enum.map(fn {key, value} ->
%{name: key, address_hash: value}
diff --git a/apps/explorer/lib/explorer/smart_contract/solidity/verifier.ex b/apps/explorer/lib/explorer/smart_contract/solidity/verifier.ex
index 6caac933d2..ccb1b1aad2 100644
--- a/apps/explorer/lib/explorer/smart_contract/solidity/verifier.ex
+++ b/apps/explorer/lib/explorer/smart_contract/solidity/verifier.ex
@@ -426,19 +426,19 @@ defmodule Explorer.SmartContract.Solidity.Verifier do
end
defp check_users_constructor_args_validity(bc_bytecode, local_bytecode, bc_splitter, local_splitter, user_arguments) do
- clear_bc_bytecode = bc_bytecode |> replace_last_occurence(user_arguments) |> replace_last_occurence(bc_splitter)
- clear_local_bytecode = replace_last_occurence(local_bytecode, local_splitter)
+ clear_bc_bytecode = bc_bytecode |> replace_last_occurrence(user_arguments) |> replace_last_occurrence(bc_splitter)
+ clear_local_bytecode = replace_last_occurrence(local_bytecode, local_splitter)
clear_bc_bytecode == clear_local_bytecode
end
- defp replace_last_occurence(where, what) when is_binary(where) and is_binary(what) do
+ defp replace_last_occurrence(where, what) when is_binary(where) and is_binary(what) do
where
|> String.reverse()
|> String.replace(String.reverse(what), "", global: false)
|> String.reverse()
end
- defp replace_last_occurence(_, _), do: nil
+ defp replace_last_occurrence(_, _), do: nil
defp parse_constructor_and_return_check_function(abi) do
constructor_abi = Enum.find(abi, fn el -> el["type"] == "constructor" && el["inputs"] != [] end)
@@ -513,7 +513,7 @@ defmodule Explorer.SmartContract.Solidity.Verifier do
bytecode_without_meta =
bytecode
- |> replace_last_occurence(meta <> meta_length)
+ |> replace_last_occurrence(meta <> meta_length)
%{
"metadata_hash_with_length" => meta <> meta_length,
diff --git a/apps/explorer/lib/explorer/validator/metadata_retriever.ex b/apps/explorer/lib/explorer/validator/metadata_retriever.ex
index 3a5d13eefa..6978bab0e0 100644
--- a/apps/explorer/lib/explorer/validator/metadata_retriever.ex
+++ b/apps/explorer/lib/explorer/validator/metadata_retriever.ex
@@ -1,6 +1,6 @@
defmodule Explorer.Validator.MetadataRetriever do
@moduledoc """
- Consults the configured smart contracts to fetch the valivators' metadata
+ Consults the configured smart contracts to fetch the validators' metadata
"""
alias Explorer.SmartContract.Reader
@@ -55,7 +55,7 @@ defmodule Explorer.Validator.MetadataRetriever do
expiration_date,
created_date,
_updated_date,
- _min_treshold
+ _min_threshold
]) do
%{
name: trim_null_bytes(first_name) <> " " <> trim_null_bytes(last_name),
diff --git a/apps/explorer/lib/explorer/visualize/sol2uml.ex b/apps/explorer/lib/explorer/visualize/sol2uml.ex
index b507c63a2e..10a6c2a9ef 100644
--- a/apps/explorer/lib/explorer/visualize/sol2uml.ex
+++ b/apps/explorer/lib/explorer/visualize/sol2uml.ex
@@ -18,7 +18,7 @@ defmodule Explorer.Visualize.Sol2uml do
case HTTPoison.post(url, Jason.encode!(body), headers, recv_timeout: @post_timeout) do
{:ok, %Response{body: body, status_code: 200}} ->
- proccess_visualizer_response(body)
+ process_visualizer_response(body)
{:ok, %Response{body: body, status_code: status_code}} ->
Logger.error(fn -> ["Invalid status code from visualizer: #{status_code}. body: ", inspect(body)] end)
@@ -40,21 +40,21 @@ defmodule Explorer.Visualize.Sol2uml do
end
end
- def proccess_visualizer_response(body) when is_binary(body) do
+ def process_visualizer_response(body) when is_binary(body) do
case Jason.decode(body) do
{:ok, decoded} ->
- proccess_visualizer_response(decoded)
+ process_visualizer_response(decoded)
_ ->
{:error, body}
end
end
- def proccess_visualizer_response(%{"svg" => svg}) do
+ def process_visualizer_response(%{"svg" => svg}) do
{:ok, svg}
end
- def proccess_visualizer_response(other), do: {:error, other}
+ def process_visualizer_response(other), do: {:error, other}
def visualize_contracts_url, do: "#{base_api_url()}" <> "/solidity:visualize-contracts"
diff --git a/apps/explorer/test/explorer/account/notify/notify_test.exs b/apps/explorer/test/explorer/account/notify/notify_test.exs
index 4d169f04d6..2bf64c42b7 100644
--- a/apps/explorer/test/explorer/account/notify/notify_test.exs
+++ b/apps/explorer/test/explorer/account/notify/notify_test.exs
@@ -53,7 +53,7 @@ defmodule Explorer.Account.Notify.NotifyTest do
assert wn == nil
end
- test "when address apears in watchlist" do
+ test "when address appears in watchlist" do
wa =
%WatchlistAddress{address_hash: address_hash} =
build(:account_watchlist_address)
diff --git a/apps/explorer/test/explorer/admin/administrator/role_test.exs b/apps/explorer/test/explorer/admin/administrator/role_test.exs
index 2584cea3e1..c65b05904b 100644
--- a/apps/explorer/test/explorer/admin/administrator/role_test.exs
+++ b/apps/explorer/test/explorer/admin/administrator/role_test.exs
@@ -1,4 +1,4 @@
-defmodule Exploer.Admin.Administrator.RoleTest do
+defmodule Explorer.Admin.Administrator.RoleTest do
use ExUnit.Case
alias Explorer.Admin.Administrator.Role
diff --git a/apps/explorer/test/explorer/chain/events/publisher_test.exs b/apps/explorer/test/explorer/chain/events/publisher_test.exs
index 4a51627cc7..3a4822e66d 100644
--- a/apps/explorer/test/explorer/chain/events/publisher_test.exs
+++ b/apps/explorer/test/explorer/chain/events/publisher_test.exs
@@ -52,7 +52,7 @@ defmodule Explorer.Chain.Events.PublisherTest do
end
describe "broadcast/1" do
- test "sends event whithout type of broadcast" do
+ test "sends event without type of broadcast" do
event_type = :exchange_rate
Subscriber.to(event_type)
diff --git a/apps/explorer/test/explorer/chain/import/runner/blocks_test.exs b/apps/explorer/test/explorer/chain/import/runner/blocks_test.exs
index 067e4af62f..cffbe967fe 100644
--- a/apps/explorer/test/explorer/chain/import/runner/blocks_test.exs
+++ b/apps/explorer/test/explorer/chain/import/runner/blocks_test.exs
@@ -264,7 +264,7 @@ defmodule Explorer.Chain.Import.Runner.BlocksTest do
end
# Regression test for https://github.com/poanetwork/blockscout/issues/1644
- test "discards neighbouring blocks if they aren't related to the current one because of reorg and/or import timeout",
+ test "discards neighboring blocks if they aren't related to the current one because of reorg and/or import timeout",
%{consensus_block: %{number: block_number, hash: block_hash, miner_hash: miner_hash}, options: options} do
insert(:block, %{number: block_number, hash: block_hash})
old_block1 = params_for(:block, miner_hash: miner_hash, parent_hash: block_hash, number: block_number + 1)
diff --git a/apps/explorer/test/explorer/chain/smart_contract_test.exs b/apps/explorer/test/explorer/chain/smart_contract_test.exs
index b0744f9d83..aa2b90cec9 100644
--- a/apps/explorer/test/explorer/chain/smart_contract_test.exs
+++ b/apps/explorer/test/explorer/chain/smart_contract_test.exs
@@ -58,7 +58,7 @@ defmodule Explorer.Chain.SmartContractTest do
verify!(EthereumJSONRPC.Mox)
end
- test "test get_implementation_adddress_hash/1" do
+ test "test get_implementation_address_hash/1" do
smart_contract = insert(:smart_contract)
implementation_smart_contract = insert(:smart_contract, name: "proxy")
@@ -137,7 +137,7 @@ defmodule Explorer.Chain.SmartContractTest do
assert_empty_implementation(smart_contract.address_hash)
end
- test "test get_implementation_adddress_hash/1 for twins contract" do
+ test "test get_implementation_address_hash/1 for twins contract" do
# return nils for nil
assert {nil, nil} = SmartContract.get_implementation_address_hash(nil)
smart_contract = insert(:smart_contract)
diff --git a/apps/explorer/test/explorer/chain/transaction_test.exs b/apps/explorer/test/explorer/chain/transaction_test.exs
index 508fae9fac..b5be748f9e 100644
--- a/apps/explorer/test/explorer/chain/transaction_test.exs
+++ b/apps/explorer/test/explorer/chain/transaction_test.exs
@@ -244,7 +244,7 @@ defmodule Explorer.Chain.TransactionTest do
end
describe "decoded_input_data/1" do
- test "that a tranasction that is not a contract call returns a commensurate error" do
+ test "that a transaction that is not a contract call returns a commensurate error" do
transaction = insert(:transaction)
assert Transaction.decoded_input_data(transaction) == {:error, :not_a_contract_call}
diff --git a/apps/explorer/test/explorer/chain_spec/parity/importer_test.exs b/apps/explorer/test/explorer/chain_spec/parity/importer_test.exs
index 103bf1821c..3f74ea550b 100644
--- a/apps/explorer/test/explorer/chain_spec/parity/importer_test.exs
+++ b/apps/explorer/test/explorer/chain_spec/parity/importer_test.exs
@@ -53,7 +53,7 @@ defmodule Explorer.ChainSpec.Parity.ImporterTest do
assert {3, nil} = Importer.import_emission_rewards(@chain_spec)
end
- test "rewrites all recored" do
+ test "rewrites all recorded" do
old_block_rewards = %{
"0x0" => "0x1bc16d674ec80000",
"0x42ae50" => "0x29a2241af62c0000",
diff --git a/apps/explorer/test/explorer/chain_test.exs b/apps/explorer/test/explorer/chain_test.exs
index e70b4c8fcb..1b3e5ec329 100644
--- a/apps/explorer/test/explorer/chain_test.exs
+++ b/apps/explorer/test/explorer/chain_test.exs
@@ -6119,7 +6119,7 @@ defmodule Explorer.ChainTest do
assert implementation_abi == @implementation_abi
end
- test "get_implementation_abi/1 returns empty [] abi if implmentation address is null" do
+ test "get_implementation_abi/1 returns empty [] abi if implementation address is null" do
assert Chain.get_implementation_abi(nil) == []
end
diff --git a/apps/explorer/test/explorer/graphql_test.exs b/apps/explorer/test/explorer/graphql_test.exs
index 72408bbb07..4e6915e2f7 100644
--- a/apps/explorer/test/explorer/graphql_test.exs
+++ b/apps/explorer/test/explorer/graphql_test.exs
@@ -121,7 +121,7 @@ defmodule Explorer.GraphQLTest do
end
end
- describe "transcation_to_internal_transactions_query/1" do
+ describe "transaction_to_internal_transactions_query/1" do
test "with transaction with one internal transaction" do
transaction1 = insert(:transaction) |> with_block()
transaction2 = insert(:transaction) |> with_block()
diff --git a/apps/explorer/test/explorer/smart_contract/solidity/code_compiler_test.exs b/apps/explorer/test/explorer/smart_contract/solidity/code_compiler_test.exs
index 2bf98044c4..952c320ebf 100644
--- a/apps/explorer/test/explorer/smart_contract/solidity/code_compiler_test.exs
+++ b/apps/explorer/test/explorer/smart_contract/solidity/code_compiler_test.exs
@@ -16,7 +16,7 @@ defmodule Explorer.SmartContract.Solidity.CodeCompilerTest do
setup do
{:ok,
contract_code_info: Factory.contract_code_info(),
- contract_code_info_modern_compilator: Factory.contract_code_info_modern_compilator()}
+ contract_code_info_modern_compiler: Factory.contract_code_info_modern_compiler()}
end
test "compiles the latest solidity version", %{contract_code_info: contract_code_info} do
@@ -38,15 +38,15 @@ defmodule Explorer.SmartContract.Solidity.CodeCompilerTest do
end
test "compiles a optimized smart contract", %{
- contract_code_info_modern_compilator: contract_code_info_modern_compilator
+ contract_code_info_modern_compiler: contract_code_info_modern_compiler
} do
optimize = true
response =
CodeCompiler.run(
- name: contract_code_info_modern_compilator.name,
- compiler_version: contract_code_info_modern_compilator.version,
- code: contract_code_info_modern_compilator.source_code,
+ name: contract_code_info_modern_compiler.name,
+ compiler_version: contract_code_info_modern_compiler.version,
+ code: contract_code_info_modern_compiler.source_code,
optimize: optimize,
evm_version: "byzantium"
)
@@ -60,15 +60,15 @@ defmodule Explorer.SmartContract.Solidity.CodeCompilerTest do
end
test "compiles smart contract with default evm version", %{
- contract_code_info_modern_compilator: contract_code_info_modern_compilator
+ contract_code_info_modern_compiler: contract_code_info_modern_compiler
} do
optimize = true
response =
CodeCompiler.run(
- name: contract_code_info_modern_compilator.name,
- compiler_version: contract_code_info_modern_compilator.version,
- code: contract_code_info_modern_compilator.source_code,
+ name: contract_code_info_modern_compiler.name,
+ compiler_version: contract_code_info_modern_compiler.version,
+ code: contract_code_info_modern_compiler.source_code,
optimize: optimize,
evm_version: "default"
)
diff --git a/apps/explorer/test/explorer/smart_contract/solidity/publisher_test.exs b/apps/explorer/test/explorer/smart_contract/solidity/publisher_test.exs
index ae44ad4d39..74cf6befed 100644
--- a/apps/explorer/test/explorer/smart_contract/solidity/publisher_test.exs
+++ b/apps/explorer/test/explorer/smart_contract/solidity/publisher_test.exs
@@ -13,7 +13,7 @@ defmodule Explorer.SmartContract.Solidity.PublisherTest do
describe "publish/2" do
test "with valid data creates a smart_contract" do
- contract_code_info = Factory.contract_code_info_modern_compilator()
+ contract_code_info = Factory.contract_code_info_modern_compiler()
contract_address = insert(:contract_address, contract_code: contract_code_info.bytecode)
@@ -76,7 +76,7 @@ defmodule Explorer.SmartContract.Solidity.PublisherTest do
end
test "corresponding contract_methods are created for the abi" do
- contract_code_info = Factory.contract_code_info_modern_compilator()
+ contract_code_info = Factory.contract_code_info_modern_compiler()
contract_address = insert(:contract_address, contract_code: contract_code_info.bytecode)
diff --git a/apps/explorer/test/explorer/smart_contract/solidity/verifier_test.exs b/apps/explorer/test/explorer/smart_contract/solidity/verifier_test.exs
index 5a747ad8a8..71c6b6fd92 100644
--- a/apps/explorer/test/explorer/smart_contract/solidity/verifier_test.exs
+++ b/apps/explorer/test/explorer/smart_contract/solidity/verifier_test.exs
@@ -597,12 +597,12 @@ defmodule Explorer.SmartContract.Solidity.VerifierTest do
constructor_arguments = "000000000000000000000000000000000000000000000000000000000000000a"
contract_address = insert(:contract_address, contract_code: bytecode_0_5_10)
- bytecode_construtor_arguments = "#{bytecode_0_5_10}#{constructor_arguments}"
+ bytecode_constructor_arguments = "#{bytecode_0_5_10}#{constructor_arguments}"
:transaction
|> insert(
created_contract_address_hash: contract_address.hash,
- input: bytecode_construtor_arguments
+ input: bytecode_constructor_arguments
)
|> with_block(status: :ok)
@@ -625,12 +625,12 @@ defmodule Explorer.SmartContract.Solidity.VerifierTest do
constructor_arguments = "000000000000000000000000000000000000000000000000000000000000000a"
contract_address = insert(:contract_address, contract_code: bytecode_0_5_10)
- bytecode_construtor_arguments = "#{bytecode_0_5_10}#{constructor_arguments}"
+ bytecode_constructor_arguments = "#{bytecode_0_5_10}#{constructor_arguments}"
:transaction
|> insert(
created_contract_address_hash: contract_address.hash,
- input: bytecode_construtor_arguments
+ input: bytecode_constructor_arguments
)
|> with_block(status: :ok)
@@ -655,12 +655,12 @@ defmodule Explorer.SmartContract.Solidity.VerifierTest do
constructor_arguments = "000000000000000000000000000000000000000000000000000000000000000a"
contract_address = insert(:contract_address, contract_code: bytecode_v0_4_24_nightly_2018_4_26_commit_ef2111a2)
- bytecode_construtor_arguments = "#{bytecode_v0_4_24_nightly_2018_4_26_commit_ef2111a2}#{constructor_arguments}"
+ bytecode_constructor_arguments = "#{bytecode_v0_4_24_nightly_2018_4_26_commit_ef2111a2}#{constructor_arguments}"
:transaction
|> insert(
created_contract_address_hash: contract_address.hash,
- input: bytecode_construtor_arguments
+ input: bytecode_constructor_arguments
)
|> with_block(status: :ok)
@@ -683,12 +683,12 @@ defmodule Explorer.SmartContract.Solidity.VerifierTest do
constructor_arguments = "000000000000000000000000000000000000000000000000000000000000000a"
contract_address = insert(:contract_address, contract_code: bytecode_0_5_10_nightly_2019_6_4_commit_95e6b2e4)
- bytecode_construtor_arguments = "#{bytecode_0_5_10_nightly_2019_6_4_commit_95e6b2e4}#{constructor_arguments}"
+ bytecode_constructor_arguments = "#{bytecode_0_5_10_nightly_2019_6_4_commit_95e6b2e4}#{constructor_arguments}"
:transaction
|> insert(
created_contract_address_hash: contract_address.hash,
- input: bytecode_construtor_arguments
+ input: bytecode_constructor_arguments
)
|> with_block(status: :ok)
@@ -711,12 +711,12 @@ defmodule Explorer.SmartContract.Solidity.VerifierTest do
constructor_arguments = "000000000000000000000000000000000000000000000000000000000000000a"
contract_address = insert(:contract_address, contract_code: bytecode_0_5_11_nightly_2019_6_25_commit_1cc84753)
- bytecode_construtor_arguments = "#{bytecode_0_5_11_nightly_2019_6_25_commit_1cc84753}#{constructor_arguments}"
+ bytecode_constructor_arguments = "#{bytecode_0_5_11_nightly_2019_6_25_commit_1cc84753}#{constructor_arguments}"
:transaction
|> insert(
created_contract_address_hash: contract_address.hash,
- input: bytecode_construtor_arguments
+ input: bytecode_constructor_arguments
)
|> with_block(status: :ok)
@@ -739,12 +739,12 @@ defmodule Explorer.SmartContract.Solidity.VerifierTest do
constructor_arguments = "000000000000000000000000000000000000000000000000000000000000000a"
contract_address = insert(:contract_address, contract_code: bytecode_0_5_14_nightly_2019_12_10_commit_45aa7a88)
- bytecode_construtor_arguments = "#{bytecode_0_5_14_nightly_2019_12_10_commit_45aa7a88}#{constructor_arguments}"
+ bytecode_constructor_arguments = "#{bytecode_0_5_14_nightly_2019_12_10_commit_45aa7a88}#{constructor_arguments}"
:transaction
|> insert(
created_contract_address_hash: contract_address.hash,
- input: bytecode_construtor_arguments
+ input: bytecode_constructor_arguments
)
|> with_block(status: :ok)
@@ -767,12 +767,12 @@ defmodule Explorer.SmartContract.Solidity.VerifierTest do
constructor_arguments = "000000000000000000000000000000000000000000000000000000000000000a"
contract_address = insert(:contract_address, contract_code: bytecode_0_6_1_nightly_2020_1_2_commit_d082b9b8)
- bytecode_construtor_arguments = "#{bytecode_0_6_1_nightly_2020_1_2_commit_d082b9b8}#{constructor_arguments}"
+ bytecode_constructor_arguments = "#{bytecode_0_6_1_nightly_2020_1_2_commit_d082b9b8}#{constructor_arguments}"
:transaction
|> insert(
created_contract_address_hash: contract_address.hash,
- input: bytecode_construtor_arguments
+ input: bytecode_constructor_arguments
)
|> with_block(status: :ok)
@@ -795,12 +795,12 @@ defmodule Explorer.SmartContract.Solidity.VerifierTest do
constructor_arguments = "000000000000000000000000000000000000000000000000000000000000000a"
contract_address = insert(:contract_address, contract_code: bytecode_0_5_11_nightly_2019_6_25_commit_1cc84753)
- bytecode_construtor_arguments = "#{bytecode_0_5_11_nightly_2019_6_25_commit_1cc84753}#{constructor_arguments}"
+ bytecode_constructor_arguments = "#{bytecode_0_5_11_nightly_2019_6_25_commit_1cc84753}#{constructor_arguments}"
:transaction
|> insert(
created_contract_address_hash: contract_address.hash,
- input: bytecode_construtor_arguments
+ input: bytecode_constructor_arguments
)
|> with_block(status: :ok)
diff --git a/apps/explorer/test/support/factory.ex b/apps/explorer/test/support/factory.ex
index 5fd83a3cfd..06c3d0fe84 100644
--- a/apps/explorer/test/support/factory.ex
+++ b/apps/explorer/test/support/factory.ex
@@ -267,7 +267,7 @@ defmodule Explorer.Factory do
}
end
- def contract_code_info_modern_compilator do
+ def contract_code_info_modern_compiler do
%{
bytecode:
"0x608060405234801561001057600080fd5b50610150806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806360fe47b11461003b5780636d4ce63c14610057575b600080fd5b610055600480360381019061005091906100c3565b610075565b005b61005f61007f565b60405161006c91906100ff565b60405180910390f35b8060008190555050565b60008054905090565b600080fd5b6000819050919050565b6100a08161008d565b81146100ab57600080fd5b50565b6000813590506100bd81610097565b92915050565b6000602082840312156100d9576100d8610088565b5b60006100e7848285016100ae565b91505092915050565b6100f98161008d565b82525050565b600060208201905061011460008301846100f0565b9291505056fea2646970667358221220d5d429d16f620053da9907372b66303e007b04bfd112159cff82cb67ff40da4264736f6c634300080a0033",
diff --git a/apps/indexer/README.md b/apps/indexer/README.md
index 8c3e404dc4..f7c0217d16 100644
--- a/apps/indexer/README.md
+++ b/apps/indexer/README.md
@@ -22,7 +22,7 @@ Some data has to be extracted from already fetched data, and there're several tr
- `token_transfers`: parses logs to extract token transfers
- `mint_transfers`: parses logs to extract token mint transfers
- `transaction_actions`: parses logs to extract transaction actions
-- `address_token_balances`: creates token balance entities for futher fetching, based on detected token transfers
+- `address_token_balances`: creates token balance entities for further fetching, based on detected token transfers
- `blocks`: extracts block signer hash from additional data for Clique chains
### Root fetchers
diff --git a/apps/indexer/lib/indexer/fetcher/coin_balance_on_demand.ex b/apps/indexer/lib/indexer/fetcher/coin_balance_on_demand.ex
index 4cca083721..63a8ed4637 100644
--- a/apps/indexer/lib/indexer/fetcher/coin_balance_on_demand.ex
+++ b/apps/indexer/lib/indexer/fetcher/coin_balance_on_demand.ex
@@ -4,7 +4,7 @@ defmodule Indexer.Fetcher.CoinBalanceOnDemand do
If we have an unfetched coin balance for that address, it will be synchronously fetched.
If not we will fetch the coin balance and created a fetched coin balance.
- If we have a fetched coin balance, but it is over 100 blocks old, we will fetch and create a fetched coin baalnce.
+ If we have a fetched coin balance, but it is over 100 blocks old, we will fetch and create a fetched coin balance.
"""
use GenServer
@@ -233,8 +233,8 @@ defmodule Indexer.Fetcher.CoinBalanceOnDemand do
defp stale_balance_window(block_number) do
case AverageBlockTime.average_block_time() do
{:error, :disabled} ->
- fallback_treshold_in_blocks = Application.get_env(:indexer, __MODULE__)[:fallback_treshold_in_blocks]
- block_number - fallback_treshold_in_blocks
+ fallback_threshold_in_blocks = Application.get_env(:indexer, __MODULE__)[:fallback_threshold_in_blocks]
+ block_number - fallback_threshold_in_blocks
duration ->
average_block_time =
diff --git a/apps/indexer/lib/indexer/fetcher/internal_transaction.ex b/apps/indexer/lib/indexer/fetcher/internal_transaction.ex
index 9c7dd5a463..efd979b64d 100644
--- a/apps/indexer/lib/indexer/fetcher/internal_transaction.ex
+++ b/apps/indexer/lib/indexer/fetcher/internal_transaction.ex
@@ -231,7 +231,7 @@ defmodule Indexer.Fetcher.InternalTransaction do
case imports do
{:ok, imported} ->
- Accounts.drop(imported[:addreses])
+ Accounts.drop(imported[:addresses])
Blocks.drop_nonconsensus(imported[:remove_consensus_of_missing_transactions_blocks])
async_import_coin_balances(imported, %{
diff --git a/apps/indexer/lib/indexer/fetcher/token_balance_on_demand.ex b/apps/indexer/lib/indexer/fetcher/token_balance_on_demand.ex
index 828d40e636..82288d2ab6 100644
--- a/apps/indexer/lib/indexer/fetcher/token_balance_on_demand.ex
+++ b/apps/indexer/lib/indexer/fetcher/token_balance_on_demand.ex
@@ -93,8 +93,8 @@ defmodule Indexer.Fetcher.TokenBalanceOnDemand do
defp stale_balance_window(block_number) do
case AverageBlockTime.average_block_time() do
{:error, :disabled} ->
- fallback_treshold_in_blocks = Application.get_env(:indexer, __MODULE__)[:fallback_treshold_in_blocks]
- block_number - fallback_treshold_in_blocks
+ fallback_threshold_in_blocks = Application.get_env(:indexer, __MODULE__)[:fallback_threshold_in_blocks]
+ block_number - fallback_threshold_in_blocks
duration ->
average_block_time =
diff --git a/apps/indexer/lib/indexer/fetcher/token_updater.ex b/apps/indexer/lib/indexer/fetcher/token_updater.ex
index cf74f6af5f..5c64cf6efb 100644
--- a/apps/indexer/lib/indexer/fetcher/token_updater.ex
+++ b/apps/indexer/lib/indexer/fetcher/token_updater.ex
@@ -43,8 +43,8 @@ defmodule Indexer.Fetcher.TokenUpdater do
@impl BufferedTask
def init(initial, reducer, _) do
- metadata_updater_inverval = Application.get_env(:indexer, :metadata_updater_seconds_interval)
- interval_in_minutes = Kernel.round(metadata_updater_inverval / 60)
+ metadata_updater_interval = Application.get_env(:indexer, :metadata_updater_seconds_interval)
+ interval_in_minutes = Kernel.round(metadata_updater_interval / 60)
{:ok, tokens} = Chain.stream_cataloged_token_contract_address_hashes(initial, reducer, interval_in_minutes)
diff --git a/apps/indexer/lib/indexer/pending_ops_cleaner.ex b/apps/indexer/lib/indexer/pending_ops_cleaner.ex
index dd3e39950c..6c12f6810d 100644
--- a/apps/indexer/lib/indexer/pending_ops_cleaner.ex
+++ b/apps/indexer/lib/indexer/pending_ops_cleaner.ex
@@ -1,6 +1,6 @@
defmodule Indexer.PendingOpsCleaner do
@moduledoc """
- Peiodically cleans non-consensus pending ops.
+ Periodically cleans non-consensus pending ops.
"""
use GenServer
diff --git a/apps/indexer/lib/indexer/temporary/blocks_transactions_mismatch.ex b/apps/indexer/lib/indexer/temporary/blocks_transactions_mismatch.ex
index 55f44ad610..8b09fa939f 100644
--- a/apps/indexer/lib/indexer/temporary/blocks_transactions_mismatch.ex
+++ b/apps/indexer/lib/indexer/temporary/blocks_transactions_mismatch.ex
@@ -3,7 +3,7 @@ defmodule Indexer.Temporary.BlocksTransactionsMismatch do
Fetches `consensus` `t:Explorer.Chain.Block.t/0` and compares their transaction
number against a node, to revoke `consensus` on mismatch.
- This is meant to fix incorrectly strored transactions that happened as a result
+ This is meant to fix incorrectly stored transactions that happened as a result
of a race condition due to the asynchronicity of indexer's components.
"""
diff --git a/apps/indexer/lib/indexer/temporary/uncataloged_token_transfers.ex b/apps/indexer/lib/indexer/temporary/uncataloged_token_transfers.ex
index 8b0d62628b..17f676f136 100644
--- a/apps/indexer/lib/indexer/temporary/uncataloged_token_transfers.ex
+++ b/apps/indexer/lib/indexer/temporary/uncataloged_token_transfers.ex
@@ -1,6 +1,6 @@
defmodule Indexer.Temporary.UncatalogedTokenTransfers do
@moduledoc """
- Catalogs token tranfer logs missing an accompanying token transfer record.
+ Catalogs token transfer logs missing an accompanying token transfer record.
Missed token transfers happen due to formats that aren't supported at the time
they were parsed during main indexing. Updated the parser and rebooting will allow
diff --git a/apps/indexer/test/indexer/block/catchup/sequence_test.exs b/apps/indexer/test/indexer/block/catchup/sequence_test.exs
index 38ee03aaba..eebc33d1ae 100644
--- a/apps/indexer/test/indexer/block/catchup/sequence_test.exs
+++ b/apps/indexer/test/indexer/block/catchup/sequence_test.exs
@@ -122,7 +122,7 @@ defmodule Indexer.Block.Catchup.SequenceTest do
:ok = Shrinkable.shrink(pid)
- # error if currently size == maximumm_size
+ # error if currently size == maximum_size
assert {:error, :maximum_size} = Sequence.push_back(pid, 2..2)
assert Sequence.pop_front(pid) == 1..1
@@ -181,7 +181,7 @@ defmodule Indexer.Block.Catchup.SequenceTest do
:ok = Shrinkable.shrink(pid)
- # error if currently size == maximumm_size
+ # error if currently size == maximum_size
assert {:error, :maximum_size} = Sequence.push_front(pid, 2..2)
assert Sequence.pop_front(pid) == 1..1
diff --git a/apps/indexer/test/indexer/transform/addresses.exs b/apps/indexer/test/indexer/transform/addresses.exs
index 21d79058ac..d1f21d7455 100644
--- a/apps/indexer/test/indexer/transform/addresses.exs
+++ b/apps/indexer/test/indexer/transform/addresses.exs
@@ -231,7 +231,7 @@ defmodule Indexer.Transform.AddressesTest do
test "only entities data defined in @entity_to_address_map are collected" do
blockchain_data = %{
blocks: [%{miner_hash: "0xe8ddc5c7a2d2f0d7a9798459c0104fdf5e987aca", number: 34}],
- unkown_entity: [%{hash: "0x8bf38d4764929064f2d4d3a56520a76ab3df415b"}]
+ unknown_entity: [%{hash: "0x8bf38d4764929064f2d4d3a56520a76ab3df415b"}]
}
assert Addresses.extract_addresses(blockchain_data) == [
diff --git a/apps/indexer/test/indexer/transform/mint_transfers_test.exs b/apps/indexer/test/indexer/transform/mint_transfers_test.exs
index 90375cb96a..04499a7af4 100644
--- a/apps/indexer/test/indexer/transform/mint_transfers_test.exs
+++ b/apps/indexer/test/indexer/transform/mint_transfers_test.exs
@@ -36,7 +36,7 @@ defmodule Indexer.Transform.MintTransfersTest do
end
end
- test "returns an empty list when the first topic isn't the brigde hash" do
+ test "returns an empty list when the first topic isn't the bridge hash" do
logs = [
%{
address_hash: "0x867305d19606aadba405ce534e303d0e225f9556",
diff --git a/config/runtime.exs b/config/runtime.exs
index c620add74f..8ca91d421a 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -524,7 +524,7 @@ token_balance_on_demand_fetcher_threshold =
config :indexer, Indexer.Fetcher.TokenBalanceOnDemand,
threshold: token_balance_on_demand_fetcher_threshold,
- fallback_treshold_in_blocks: 500
+ fallback_threshold_in_blocks: 500
coin_balance_on_demand_fetcher_threshold_minutes = System.get_env("COIN_BALANCE_ON_DEMAND_FETCHER_THRESHOLD_MINUTES")
@@ -537,7 +537,7 @@ coin_balance_on_demand_fetcher_threshold =
config :indexer, Indexer.Fetcher.CoinBalanceOnDemand,
threshold: coin_balance_on_demand_fetcher_threshold,
- fallback_treshold_in_blocks: 500
+ fallback_threshold_in_blocks: 500
config :indexer, Indexer.Fetcher.BlockReward.Supervisor,
disabled?: System.get_env("INDEXER_DISABLE_BLOCK_REWARD_FETCHER", "false") == "true"
diff --git a/cspell.json b/cspell.json
new file mode 100644
index 0000000000..ad3195d037
--- /dev/null
+++ b/cspell.json
@@ -0,0 +1,299 @@
+// cSpell Settings
+{
+ // Version of the setting file. Always 0.2
+ "version": "0.2",
+ // language - current active spelling language
+ "language": "en",
+ // words - list of words to be always considered correct
+ "ignorePaths": [
+ "apps/block_scout_web/assets/js/lib/ace/src-min/*.js"
+ ],
+ "words": [
+ "AIRTABLE",
+ "blockscout",
+ "buildcache",
+ "buildx",
+ "bytea",
+ "chartjs",
+ "Cldr",
+ "clickover",
+ "coef",
+ "decompiled",
+ "dedup",
+ "delegators",
+ "Denormalized",
+ "EDCSA",
+ "Erigon",
+ "fontawesome",
+ "graphiql",
+ "grecaptcha",
+ "ilike",
+ "Instrumenter",
+ "inversed",
+ "ipfs",
+ "keccak",
+ "Keepalive",
+ "luxon",
+ "mabi",
+ "mergeable",
+ "mintings",
+ "mult",
+ "Nethermind",
+ "nolink",
+ "nonconsensus",
+ "nonpending",
+ "noreply",
+ "omni",
+ "outcoming",
+ "pikaday",
+ "POSDAO",
+ "queriable",
+ "REINDEX",
+ "reltuples",
+ "safelow",
+ "selfdestruct",
+ "SENDGRID",
+ "sharelocks",
+ "snapshotted",
+ "snapshotting",
+ "sourcify",
+ "staker",
+ "stakers",
+ "stylelint",
+ "subnetwork",
+ "subqueries",
+ "subquery",
+ "swal",
+ "sweetalert",
+ "trunc",
+ "tsquery",
+ "tsvector",
+ "ueberauth",
+ "unfetched",
+ "upsert",
+ "upserts",
+ "vyper",
+ "watchlist",
+ "wobserver",
+ "zindex",
+ "zipcode",
+ "besu",
+ "Arbitrum",
+ "subtraces",
+ "recaptcha",
+ "coinzilla",
+ "Synthereum",
+ "blockheight",
+ "Menlo",
+ "Consolas",
+ "buildin",
+ "tbrf",
+ "endregion",
+ "urijs",
+ "tarekraafat",
+ "DATETIME",
+ "Nunito",
+ "Neue",
+ "Segoe",
+ "bignumber",
+ "malihu",
+ "chakra",
+ "mcap",
+ "intersectionby",
+ "differenceby",
+ "nanomorph",
+ "unclosable",
+ "decamelize",
+ "walletconnect",
+ "accs",
+ "xdai",
+ "rangeright",
+ "viewerjs",
+ "autodetectfalse",
+ "autodetecttrue",
+ "addedfile",
+ "removedfile",
+ "Filesize",
+ "nocheck",
+ "fortawesome",
+ "reqs",
+ "checksummed",
+ "xmlhttprequest",
+ "watchlists",
+ "listaccounts",
+ "balancemulti",
+ "pendingtxlist",
+ "txlistinternal",
+ "tokentx",
+ "contractaddress",
+ "tokenbalance",
+ "tokenlist",
+ "getminedblocks",
+ "getblockreward",
+ "blockno",
+ "getblocknobytime",
+ "smth",
+ "verifysourcecode",
+ "codeformat",
+ "checkverifystatus",
+ "jsons",
+ "listcontracts",
+ "getabi",
+ "getsourcecode",
+ "contractname",
+ "compilerversion",
+ "getlogs",
+ "tokensupply",
+ "ethsupplyexchange",
+ "ethsupply",
+ "coinsupply",
+ "coinprice",
+ "totalfees",
+ "gettoken",
+ "gettokenholders",
+ "gettxinfo",
+ "gettxreceiptstatus",
+ "getstatus",
+ "decompiler",
+ "czilladx",
+ "coinzillatag",
+ "trustwallet",
+ "browserconfig",
+ "mstile",
+ "txreceipt",
+ "delegatecall",
+ "callcode",
+ "staticcall",
+ "sourcecode",
+ "Decompiler",
+ "RPCs",
+ "subdenomination",
+ "lastname",
+ "Iframe",
+ "iframes",
+ "Encryptor",
+ "prederive",
+ "prederived",
+ "redix",
+ "unpadded",
+ "cypherpunk",
+ "ntoa",
+ "apikey",
+ "hljs",
+ "selfdestructed",
+ "yellowgreen",
+ "raquo",
+ "shortify",
+ "datapoint",
+ "formating",
+ "phash",
+ "strftime",
+ "arounds",
+ "Sokol",
+ "Floki",
+ "extname",
+ "perc",
+ "Iframes",
+ "nowarn",
+ "poolboy",
+ "getblockbyhash",
+ "stringly",
+ "Merkle",
+ "Autonity",
+ "CALLCODE",
+ "DELEGATECALL",
+ "STATICCALL",
+ "subsubcalls",
+ "subcalls",
+ "subcall",
+ "rechunk",
+ "reuseaddr",
+ "txpool",
+ "stateroot",
+ "backoff",
+ "throttleable",
+ "someout",
+ "whereis",
+ "econnrefused",
+ "Wanchain",
+ "SJONRPC",
+ "httpoison",
+ "cacerts",
+ "certifi",
+ "pkix",
+ "onconnect",
+ "ondisconnect",
+ "rerequest",
+ "shortdoc",
+ "epns",
+ "inapp",
+ "alloc",
+ "Ethash",
+ "multicall",
+ "relname",
+ "extremums",
+ "bsdr",
+ "unnest",
+ "pkey",
+ "persistable",
+ "unprefixed",
+ "multis",
+ "upserted",
+ "ARGMAX",
+ "Secon",
+ "Cyclomatic",
+ "mistmatches",
+ "upserting",
+ "sharelock",
+ "recollated",
+ "unstaged",
+ "blockless",
+ "concache",
+ "ufixed",
+ "Autodetection",
+ "zeppelinos",
+ "zkbob",
+ "Posix",
+ "giga",
+ "lformat",
+ "nxdomain",
+ "fsym",
+ "tsym",
+ "histoday",
+ "fwrite",
+ "PGUSER",
+ "PGPASSWORD",
+ "PGHOST",
+ "PGPORT",
+ "PGDATABASE",
+ "soljson",
+ "binwrite",
+ "enoent",
+ "bzzr",
+ "bytecodes",
+ "CBOR",
+ "chainlink",
+ "splitted",
+ "ints",
+ "bools",
+ "byts",
+ "childspec",
+ "demonitor",
+ "etimedout",
+ "enetunreach",
+ "whiler",
+ "moxing",
+ "retryable",
+ "defsupervisor",
+ "refetched",
+ "loggable",
+ "unmatching",
+ "millis",
+ "libsecp",
+ "ctid",
+ "extcodehash",
+ "MARKETCAP",
+ "RPC's",
+ "gettext"
+ ]
+}
\ No newline at end of file