Skip to content
Permalink
Browse files

Merge remote-tracking branch 'origin/master' into production-kovan-stg

  • Loading branch information
vbaranov committed Jan 14, 2020
2 parents eba60fe + 813d42a commit 43af85d38252689a1f134e1d74b786eee15aab21
Showing with 14,386 additions and 10,486 deletions.
  1. +54 −54 .circleci/config.yml
  2. +2 −1 .dialyzer-ignore
  3. +69 −0 CHANGELOG.md
  4. +1 −1 apps/block_scout_web/README.md
  5. +1 −3 apps/block_scout_web/assets/.babelrc
  6. +1 −1 apps/block_scout_web/assets/css/_typography.scss
  7. +1 −2 apps/block_scout_web/assets/css/app.scss
  8. +5 −46 apps/block_scout_web/assets/css/components/_custom_tooltips_block_details.scss
  9. +6 −4 apps/block_scout_web/assets/css/components/_dashboard-banner.scss
  10. +1 −136 apps/block_scout_web/assets/css/components/_navbar.scss
  11. +1 −0 apps/block_scout_web/assets/css/components/_tooltip.scss
  12. +1 −0 apps/block_scout_web/assets/css/non-critical.scss
  13. +2 −2 apps/block_scout_web/assets/css/theme/_base_variables.scss
  14. +22 −37 apps/block_scout_web/assets/css/theme/_dai_variables.scss
  15. +7 −34 apps/block_scout_web/assets/css/theme/_dark-theme.scss
  16. +3 −0 apps/block_scout_web/assets/css/theme/_lukso_variables.scss
  17. +0 −7 apps/block_scout_web/assets/js/app.js
  18. +18 −0 apps/block_scout_web/assets/js/chart-loader.js
  19. +14 −14 apps/block_scout_web/assets/js/lib/async_listing_load.js
  20. +15 −14 apps/block_scout_web/assets/js/lib/awesomplete-util.js
  21. +1 −1 apps/block_scout_web/assets/js/lib/card_tabs.js
  22. +1 −1 apps/block_scout_web/assets/js/lib/clipboard_buttons.js
  23. +2 −2 apps/block_scout_web/assets/js/lib/coin_balance_history_chart.js
  24. +1 −6 apps/block_scout_web/assets/js/lib/currency.js
  25. +1 −1 apps/block_scout_web/assets/js/lib/indexing.js
  26. +41 −20 apps/block_scout_web/assets/js/lib/market_history_chart.js
  27. +28 −29 apps/block_scout_web/assets/js/lib/modals.js
  28. +9 −9 apps/block_scout_web/assets/js/lib/network_selector.js
  29. +2 −2 apps/block_scout_web/assets/js/lib/pretty_json.js
  30. +1 −1 apps/block_scout_web/assets/js/lib/utils.js
  31. +40 −6 apps/block_scout_web/assets/js/pages/address.js
  32. +1 −7 apps/block_scout_web/assets/js/pages/address/coin_balances.js
  33. +2 −2 apps/block_scout_web/assets/js/pages/address/internal_transactions.js
  34. +10 −8 apps/block_scout_web/assets/js/pages/address/logs.js
  35. +2 −2 apps/block_scout_web/assets/js/pages/address/transactions.js
  36. +1 −1 apps/block_scout_web/assets/js/pages/blocks.js
  37. +25 −21 apps/block_scout_web/assets/js/pages/chain.js
  38. +0 −9 apps/block_scout_web/assets/js/pages/dark-mode-switcher.js
  39. +0 −37 apps/block_scout_web/assets/js/pages/layout.js
  40. +2 −2 apps/block_scout_web/assets/js/pages/pending_transactions.js
  41. +5 −5 apps/block_scout_web/assets/js/pages/token_counters.js
  42. +1 −1 apps/block_scout_web/assets/js/pages/transaction.js
  43. +1 −1 apps/block_scout_web/assets/js/pages/transactions.js
  44. +10 −2 apps/block_scout_web/assets/js/pages/verification_form.js
  45. +3 −3 apps/block_scout_web/assets/js/socket.js
  46. +8,401 −6,880 apps/block_scout_web/assets/package-lock.json
  47. +31 −32 apps/block_scout_web/assets/package.json
  48. BIN apps/block_scout_web/assets/static/android-chrome-192x192.png
  49. BIN apps/block_scout_web/assets/static/android-chrome-512x512.png
  50. BIN apps/block_scout_web/assets/static/favicon-16x16.png
  51. BIN apps/block_scout_web/assets/static/favicon-32x32.png
  52. +1 −1 apps/block_scout_web/assets/static/images/dai_logo.svg
  53. +27 −0 apps/block_scout_web/assets/static/images/errors-img/pic-404.svg
  54. BIN apps/block_scout_web/assets/static/images/favicon-16x16.png
  55. BIN apps/block_scout_web/assets/static/images/favicon-32x32.png
  56. BIN apps/block_scout_web/assets/static/{ → images}/favicon.ico
  57. +1 −1 apps/block_scout_web/assets/static/images/network-selector-icons/xdai-chain.svg
  58. BIN apps/block_scout_web/assets/static/mstile-150x150.png
  59. +36 −27 apps/block_scout_web/assets/webpack.config.js
  60. +2 −1 apps/block_scout_web/config/config.exs
  61. +3 −2 apps/block_scout_web/lib/block_scout_web/controller.ex
  62. +2 −6 apps/block_scout_web/lib/block_scout_web/controllers/address_coin_balance_controller.ex
  63. +2 −6 apps/block_scout_web/lib/block_scout_web/controllers/address_contract_controller.ex
  64. +34 −10 apps/block_scout_web/lib/block_scout_web/controllers/address_controller.ex
  65. +1 −6 apps/block_scout_web/lib/block_scout_web/controllers/address_decompiled_contract_controller.ex
  66. +1 −5 apps/block_scout_web/lib/block_scout_web/controllers/address_internal_transaction_controller.ex
  67. +1 −5 apps/block_scout_web/lib/block_scout_web/controllers/address_logs_controller.ex
  68. +4 −11 apps/block_scout_web/lib/block_scout_web/controllers/address_read_contract_controller.ex
  69. +1 −5 apps/block_scout_web/lib/block_scout_web/controllers/address_token_controller.ex
  70. +97 −7 apps/block_scout_web/lib/block_scout_web/controllers/address_token_transfer_controller.ex
  71. +2 −11 apps/block_scout_web/lib/block_scout_web/controllers/address_transaction_controller.ex
  72. +1 −6 apps/block_scout_web/lib/block_scout_web/controllers/address_validation_controller.ex
  73. +21 −2 apps/block_scout_web/lib/block_scout_web/controllers/api/rpc/stats_controller.ex
  74. +2 −1 apps/block_scout_web/lib/block_scout_web/controllers/chain_controller.ex
  75. +4 −0 apps/block_scout_web/lib/block_scout_web/controllers/tokens/read_contract_controller.ex
  76. +0 −3 apps/block_scout_web/lib/block_scout_web/endpoint.ex
  77. +88 −4 apps/block_scout_web/lib/block_scout_web/etherscan.ex
  78. +2 −2 apps/block_scout_web/lib/block_scout_web/notifier.ex
  79. +1 −1 apps/block_scout_web/lib/block_scout_web/templates/address/_link.html.eex
  80. +5 −1 apps/block_scout_web/lib/block_scout_web/templates/address/_responsive_hash.html.eex
  81. +12 −8 apps/block_scout_web/lib/block_scout_web/templates/address/_tabs.html.eex
  82. +8 −6 apps/block_scout_web/lib/block_scout_web/templates/address/_tile.html.eex
  83. +41 −39 apps/block_scout_web/lib/block_scout_web/templates/address/index.html.eex
  84. +8 −21 apps/block_scout_web/lib/block_scout_web/templates/address/overview.html.eex
  85. +2 −0 apps/block_scout_web/lib/block_scout_web/templates/address_coin_balance/index.html.eex
  86. +21 −0 apps/block_scout_web/lib/block_scout_web/templates/address_contract_verification/new.html.eex
  87. +1 −1 apps/block_scout_web/lib/block_scout_web/templates/address_token/_tokens.html.eex
  88. +1 −1 apps/block_scout_web/lib/block_scout_web/templates/address_token_balance/_tokens.html.eex
  89. +45 −0 apps/block_scout_web/lib/block_scout_web/templates/address_token_transfer/index.html.eex
  90. +2 −1 apps/block_scout_web/lib/block_scout_web/templates/block/_tile.html.eex
  91. +6 −3 apps/block_scout_web/lib/block_scout_web/templates/block/overview.html.eex
  92. +2 −1 apps/block_scout_web/lib/block_scout_web/templates/chain/_block.html.eex
  93. +33 −39 apps/block_scout_web/lib/block_scout_web/templates/chain/show.html.eex
  94. +11 −1 apps/block_scout_web/lib/block_scout_web/templates/common_components/_table-loader.html.eex
  95. +12 −0 apps/block_scout_web/lib/block_scout_web/templates/error422/index.html.eex
  96. +28 −29 apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex
  97. +19 −17 apps/block_scout_web/lib/block_scout_web/templates/layout/app.html.eex
  98. +1 −1 apps/block_scout_web/lib/block_scout_web/templates/tokens/holder/_token_balances.html.eex
  99. +3 −2 apps/block_scout_web/lib/block_scout_web/templates/tokens/inventory/_token.html.eex
  100. +6 −4 apps/block_scout_web/lib/block_scout_web/templates/tokens/transfer/_token_transfer.html.eex
  101. +2 −2 apps/block_scout_web/lib/block_scout_web/templates/transaction/_pending_tile.html.eex
  102. +1 −0 apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex
  103. +2 −2 ...block_scout_web/lib/block_scout_web/templates/transaction_token_transfer/_token_transfer.html.eex
  104. +8 −0 apps/block_scout_web/lib/block_scout_web/views/address_token_transfer_view.ex
  105. +10 −8 apps/block_scout_web/lib/block_scout_web/views/address_view.ex
  106. +13 −6 apps/block_scout_web/lib/block_scout_web/views/api/rpc/address_view.ex
  107. +2 −21 apps/block_scout_web/lib/block_scout_web/views/api/rpc/block_view.ex
  108. +84 −18 apps/block_scout_web/lib/block_scout_web/views/api/rpc/contract_view.ex
  109. +9 −0 apps/block_scout_web/lib/block_scout_web/views/api/rpc/rpc_view.ex
  110. +8 −0 apps/block_scout_web/lib/block_scout_web/views/api/rpc/stats_view.ex
  111. +4 −0 apps/block_scout_web/lib/block_scout_web/views/common_components_view.ex
  112. +5 −0 apps/block_scout_web/lib/block_scout_web/views/error_422.ex
  113. +0 −29 apps/block_scout_web/lib/block_scout_web/views/layout_view.ex
  114. +1 −0 apps/block_scout_web/lib/block_scout_web/views/transaction_view.ex
  115. +9 −0 apps/block_scout_web/lib/block_scout_web/web_router.ex
  116. +182 −183 apps/block_scout_web/priv/gettext/default.pot
  117. +182 −183 apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po
  118. +25 −3 apps/block_scout_web/test/block_scout_web/channels/address_channel_test.exs
  119. +4 −3 apps/block_scout_web/test/block_scout_web/controllers/address_contract_controller_test.exs
  120. +13 −0 apps/block_scout_web/test/block_scout_web/controllers/address_controller_test.exs
  121. +42 −14 ...block_scout_web/test/block_scout_web/controllers/address_internal_transaction_controller_test.exs
  122. +23 −3 apps/block_scout_web/test/block_scout_web/controllers/address_read_contract_controller_test.exs
  123. +3 −3 apps/block_scout_web/test/block_scout_web/controllers/address_token_controller_test.exs
  124. +6 −6 apps/block_scout_web/test/block_scout_web/controllers/address_token_transfer_controller_test.exs
  125. +3 −1 apps/block_scout_web/test/block_scout_web/controllers/address_transaction_controller_test.exs
  126. +63 −17 apps/block_scout_web/test/block_scout_web/controllers/api/rpc/address_controller_test.exs
  127. +169 −43 apps/block_scout_web/test/block_scout_web/controllers/api/rpc/contract_controller_test.exs
  128. +17 −13 apps/block_scout_web/test/block_scout_web/controllers/api/rpc/eth_controller_test.exs
  129. +46 −4 apps/block_scout_web/test/block_scout_web/controllers/api/rpc/stats_controller_test.exs
  130. +11 −7 apps/block_scout_web/test/block_scout_web/controllers/api/rpc/transaction_controller_test.exs
  131. +25 −0 apps/block_scout_web/test/block_scout_web/controllers/tokens/read_contract_controller_test.exs
  132. +23 −8 ...k_scout_web/test/block_scout_web/controllers/transaction_internal_transaction_controller_test.exs
  133. +37 −5 apps/block_scout_web/test/block_scout_web/controllers/transaction_log_controller_test.exs
  134. +9 −5 apps/block_scout_web/test/block_scout_web/controllers/transaction_token_transfer_controller_test.exs
  135. +20 −145 apps/block_scout_web/test/block_scout_web/features/viewing_addresses_test.exs
  136. +17 −2 apps/block_scout_web/test/block_scout_web/features/viewing_app_test.exs
  137. +6 −1 apps/block_scout_web/test/block_scout_web/features/viewing_blocks_test.exs
  138. +10 −4 apps/block_scout_web/test/block_scout_web/features/viewing_transactions_test.exs
  139. +17 −5 apps/block_scout_web/test/block_scout_web/schema/query/node_test.exs
  140. +52 −11 apps/block_scout_web/test/block_scout_web/schema/query/transaction_test.exs
  141. +20 −10 apps/block_scout_web/test/block_scout_web/views/address_view_test.exs
  142. +3 −1 apps/block_scout_web/test/block_scout_web/views/transaction_view_test.exs
  143. +4 −0 apps/ethereum_jsonrpc/config/config.exs
  144. +24 −1 apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/application.ex
  145. +3 −2 apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/block.ex
  146. +3 −3 apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/http.ex
  147. +94 −0 apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/ipc.ex
  148. +6 −0 apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/log.ex
  149. +10 −0 apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/parity/fetched_beneficiaries.ex
  150. +1 −1 apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/transaction.ex
  151. +2 −1 apps/ethereum_jsonrpc/mix.exs
  152. +4 −0 apps/ethereum_jsonrpc/test/ethereum_jsonrpc/receipts_test.exs
  153. +31 −0 apps/explorer/config/config.exs
  154. +3 −0 apps/explorer/config/test.exs
  155. +5 −0 apps/explorer/lib/explorer/application.ex
  156. +275 −163 apps/explorer/lib/explorer/chain.ex
  157. +2 −2 apps/explorer/lib/explorer/chain/address/token_balance.ex
  158. +19 −8 apps/explorer/lib/explorer/chain/block.ex
  159. +26 −2 apps/explorer/lib/explorer/chain/block/reward.ex
  160. +53 −0 apps/explorer/lib/explorer/chain/cache/address_sum.ex
  161. +53 −0 apps/explorer/lib/explorer/chain/cache/address_sum_minus_burnt.ex
  162. +18 −0 apps/explorer/lib/explorer/chain/cache/blocks.ex
  163. +1 −3 apps/explorer/lib/explorer/chain/cache/net_version.ex
  164. +26 −0 apps/explorer/lib/explorer/chain/events/db_sender.ex
  165. +55 −0 apps/explorer/lib/explorer/chain/events/listener.ex
  166. +7 −10 apps/explorer/lib/explorer/chain/events/publisher.ex
  167. +21 −0 apps/explorer/lib/explorer/chain/events/simple_sender.ex
  168. +2 −1 apps/explorer/lib/explorer/chain/import.ex
  169. +30 −101 apps/explorer/lib/explorer/chain/import/runner/blocks.ex
  170. +218 −74 apps/explorer/lib/explorer/chain/import/runner/internal_transactions.ex
  171. +0 −82 apps/explorer/lib/explorer/chain/import/runner/internal_transactions_indexed_at_blocks.ex
  172. +2 −2 apps/explorer/lib/explorer/chain/import/runner/logs.ex
  173. +2 −2 apps/explorer/lib/explorer/chain/import/runner/token_transfers.ex
  174. +5 −51 apps/explorer/lib/explorer/chain/import/runner/transactions.ex
  175. +0 −2 apps/explorer/lib/explorer/chain/import/stage/block_following.ex
  176. +27 −0 apps/explorer/lib/explorer/chain/import/stage/block_pending.ex
  177. +90 −4 apps/explorer/lib/explorer/chain/internal_transaction.ex
  178. +16 −3 apps/explorer/lib/explorer/chain/log.ex
  179. +87 −0 apps/explorer/lib/explorer/chain/pending_block_operation.ex
  180. +6 −3 apps/explorer/lib/explorer/chain/token.ex
  181. +17 −5 apps/explorer/lib/explorer/chain/token_transfer.ex
  182. +41 −6 apps/explorer/lib/explorer/chain/transaction.ex
  183. +13 −12 apps/explorer/lib/explorer/counters/average_block_time.ex
  184. +42 −0 apps/explorer/lib/explorer/eth_rpc.ex
  185. +90 −22 apps/explorer/lib/explorer/etherscan.ex
  186. +41 −20 apps/explorer/lib/explorer/etherscan/logs.ex
  187. +4 −2 apps/explorer/lib/explorer/graphql.ex
  188. +6 −0 apps/explorer/lib/explorer/smart_contract/publisher.ex
  189. +22 −4 apps/explorer/lib/explorer/smart_contract/verifier.ex
  190. +51 −17 apps/explorer/lib/explorer/smart_contract/verifier/constructor_arguments.ex
  191. +10 −2 apps/explorer/lib/explorer/token/instance_metadata_retriever.ex
  192. +33 −3 apps/explorer/lib/explorer/token/metadata_retriever.ex
  193. +173 −321 apps/explorer/package-lock.json
  194. +2 −1 apps/explorer/package.json
  195. +14 −0 apps/explorer/priv/repo/migrations/20191018120546_create_pending_block_operations.exs
  196. +149 −0 apps/explorer/priv/repo/migrations/20191018140054_add_pending_internal_txs_operation.exs
  197. +43 −0 apps/explorer/priv/repo/migrations/20191121064805_add_block_hash_and_block_index_to_logs.exs
  198. +40 −0 apps/explorer/priv/repo/migrations/20191122062035_add_block_hash_to_token_transfers.exs
  199. +25 −0 .../explorer/priv/repo/migrations/20191203112646_internal_transactions_add_to_address_hash_index.exs
  200. +9 −0 apps/explorer/priv/repo/migrations/20191208135613_block_rewards_block_hash_partial_index.exs
  201. +7 −0 apps/explorer/priv/repo/migrations/20191218120138_logs_block_number_index_index.exs
  202. +9 −0 ...xplorer/priv/repo/migrations/20191220113006_pending_block_operations_block_hash_partial_index.exs
  203. +37 −30 ...priv/repo/migrations/scripts/20181108205650_large_additional_internal_transaction_constraints.sql
  204. +58 −0 apps/explorer/test/explorer/chain/cache/address_sum_minus_burnt.exs
  205. +57 −0 apps/explorer/test/explorer/chain/cache/address_sum_test.exs
  206. +1 −1 apps/explorer/test/explorer/chain/cache/block_count_test.exs
  207. +2 −2 apps/explorer/test/explorer/chain/cache/pending_transactions_test.exs
  208. +0 −1 apps/explorer/test/explorer/chain/cache/uncles_test.exs
  209. +2 −2 apps/explorer/test/explorer/chain/events/publisher_test.exs
  210. +2 −2 apps/explorer/test/explorer/chain/events/subscriber_test.exs
  211. +109 −0 apps/explorer/test/explorer/chain/import/runner/address/token_balances_test.exs
  212. +15 −73 apps/explorer/test/explorer/chain/import/runner/blocks_test.exs
  213. +79 −28 apps/explorer/test/explorer/chain/import/runner/internal_transactions_test.exs
  214. +43 −81 apps/explorer/test/explorer/chain/import_test.exs
  215. +3 −1 apps/explorer/test/explorer/chain/internal_transaction_test.exs
  216. +8 −2 apps/explorer/test/explorer/chain/log_test.exs
  217. +16 −3 apps/explorer/test/explorer/chain/token_test.exs
  218. +385 −196 apps/explorer/test/explorer/chain_test.exs
  219. +37 −5 apps/explorer/test/explorer/counters/average_block_time_test.exs
  220. +131 −20 apps/explorer/test/explorer/etherscan_test.exs
  221. +61 −16 apps/explorer/test/explorer/graphql_test.exs
  222. +5 −3 apps/explorer/test/explorer/repo_test.exs
  223. +32 −0 apps/explorer/test/explorer/smart_contract/publisher_test.exs
  224. +43 −41 apps/explorer/test/explorer/smart_contract/verifier/constructor_arguments_test.exs
  225. +56 −0 apps/explorer/test/explorer/token/metadata_retriever_test.exs
  226. +21 −8 apps/explorer/test/support/factory.ex
  227. +5 −1 apps/indexer/config/dev/ganache.exs
  228. +5 −1 apps/indexer/config/dev/geth.exs
  229. +6 −1 apps/indexer/config/dev/parity.exs
  230. +5 −1 apps/indexer/config/dev/rsk.exs
  231. +5 −1 apps/indexer/config/prod/ganache.exs
  232. +5 −1 apps/indexer/config/prod/geth.exs
  233. +5 −1 apps/indexer/config/prod/parity.exs
  234. +5 −1 apps/indexer/config/prod/rsk.exs
  235. +5 −7 apps/indexer/lib/indexer/block/catchup/fetcher.ex
  236. +4 −27 apps/indexer/lib/indexer/block/fetcher.ex
  237. +10 −8 apps/indexer/lib/indexer/block/realtime/fetcher.ex
  238. +9 −1 apps/indexer/lib/indexer/buffered_task.ex
  239. +58 −141 apps/indexer/lib/indexer/fetcher/internal_transaction.ex
  240. +62 −25 apps/indexer/lib/indexer/fetcher/token_updater.ex
  241. +45 −0 apps/indexer/lib/indexer/pending_ops_cleaner.ex
  242. +5 −5 apps/indexer/lib/indexer/supervisor.ex
  243. +3 −0 apps/indexer/lib/indexer/transform/token_transfers.ex
  244. +3 −6 apps/indexer/test/indexer/block/fetcher_test.exs
  245. +2 −2 apps/indexer/test/indexer/block/realtime/fetcher_test.exs
  246. +25 −19 apps/indexer/test/indexer/fetcher/coin_balance_on_demand_test.exs
  247. +127 −151 apps/indexer/test/indexer/fetcher/internal_transaction_test.exs
  248. +11 −45 apps/indexer/test/indexer/fetcher/token_updater_test.exs
  249. +34 −0 apps/indexer/test/indexer/pending_ops_cleaner_test.exs
  250. +10 −2 apps/indexer/test/indexer/transform/token_transfers_test.exs
  251. +2 −1 apps/indexer/test/support/indexer/fetcher/internal_transaction_supervisor_case.ex
  252. +17 −0 apps/indexer/test/support/indexer/fetcher/token_updater_supervisor_case.ex
  253. +3 −75 docker/README.md
  254. +2 −1 rel/commands/clear_build.sh
@@ -229,7 +229,7 @@ jobs:
eslint:
docker:
# Ensure .tool-versions matches
- image: circleci/node:9.10.1
- image: circleci/node:12.13.0-browsers-legacy

working_directory: ~/app

@@ -271,7 +271,7 @@ jobs:
jest:
docker:
# Ensure .tool-versions matches
- image: circleci/node:9.10.1
- image: circleci/node:12.13.0-browsers-legacy

working_directory: ~/app

@@ -441,60 +441,60 @@ jobs:
# path: cover/excoveralls.html
# - store_test_results:
# path: _build/test/junit
test_parity_http_websocket:
docker:
# Ensure .tool-versions matches
- image: circleci/elixir:1.9.1-node-browsers
environment:
MIX_ENV: test
# match POSTGRES_PASSWORD for postgres image below
PGPASSWORD: postgres
# match POSTGRES_USER for postgres image below
PGUSER: postgres
ETHEREUM_JSONRPC_CASE: "EthereumJSONRPC.Case.Parity.HTTPWebSocket"
ETHEREUM_JSONRPC_WEB_SOCKET_CASE: "EthereumJSONRPC.WebSocket.Case.Parity"
- image: circleci/postgres:10.3-alpine
environment:
# Match apps/explorer/config/test.exs config :explorer, Explorer.Repo, database
POSTGRES_DB: explorer_test
# match PGPASSWORD for elixir image above
POSTGRES_PASSWORD: postgres
# match PGUSER for elixir image above
POSTGRES_USER: postgres
# test_parity_http_websocket:
# docker:
# # Ensure .tool-versions matches
# - image: circleci/elixir:1.9.1-node-browsers
# environment:
# MIX_ENV: test
# # match POSTGRES_PASSWORD for postgres image below
# PGPASSWORD: postgres
# # match POSTGRES_USER for postgres image below
# PGUSER: postgres
# ETHEREUM_JSONRPC_CASE: "EthereumJSONRPC.Case.Parity.HTTPWebSocket"
# ETHEREUM_JSONRPC_WEB_SOCKET_CASE: "EthereumJSONRPC.WebSocket.Case.Parity"
# - image: circleci/postgres:10.3-alpine
# environment:
# # Match apps/explorer/config/test.exs config :explorer, Explorer.Repo, database
# POSTGRES_DB: explorer_test
# # match PGPASSWORD for elixir image above
# POSTGRES_PASSWORD: postgres
# # match PGUSER for elixir image above
# POSTGRES_USER: postgres

working_directory: ~/app
# working_directory: ~/app

steps:
- attach_workspace:
at: .
# steps:
# - attach_workspace:
# at: .

- run:
command: ./bin/install_chrome_headless.sh
no_output_timeout: 2400
# - run:
# command: ./bin/install_chrome_headless.sh
# no_output_timeout: 2400

- run: mix local.hex --force
- run: mix local.rebar --force
# - run: mix local.hex --force
# - run: mix local.rebar --force

- run:
name: Wait for DB
command: dockerize -wait tcp://localhost:5432 -timeout 1m
# - run:
# name: Wait for DB
# command: dockerize -wait tcp://localhost:5432 -timeout 1m

- run:
name: mix test --exclude no_parity
command: |
# Don't submit coverage report for forks, but let the build succeed
if [[ -z "$COVERALLS_REPO_TOKEN" ]]; then
mix coveralls.html --exclude no_parity --parallel --umbrella
else
mix coveralls.circle --exclude no_parity --parallel --umbrella ||
# if mix failed, then coveralls_merge won't run, so signal done here and return original exit status
(retval=$? && curl -k https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=$CIRCLE_WORKFLOW_WORKSPACE_ID&payload[status]=done" && return $retval)
fi
# - run:
# name: mix test --exclude no_parity
# command: |
# # Don't submit coverage report for forks, but let the build succeed
# if [[ -z "$COVERALLS_REPO_TOKEN" ]]; then
# mix coveralls.html --exclude no_parity --parallel --umbrella
# else
# mix coveralls.circle --exclude no_parity --parallel --umbrella ||
# # if mix failed, then coveralls_merge won't run, so signal done here and return original exit status
# (retval=$? && curl -k https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=$CIRCLE_WORKFLOW_WORKSPACE_ID&payload[status]=done" && return $retval)
# fi

- store_artifacts:
path: cover/excoveralls.html
- store_test_results:
path: _build/test/junit
# - store_artifacts:
# path: cover/excoveralls.html
# - store_test_results:
# path: _build/test/junit
test_parity_mox:
docker:
# Ensure .tool-versions matches
@@ -571,7 +571,7 @@ workflows:
# This unfortunately will only fire if all the tests pass because of how `requires` works
- coveralls_merge:
requires:
- test_parity_http_websocket
# - test_parity_http_websocket
- test_parity_mox
# - test_geth_http_websocket
# - test_geth_mox
@@ -591,7 +591,7 @@ workflows:
- eslint
- jest
- sobelow
- test_parity_http_websocket
# - test_parity_http_websocket
- test_parity_mox
# - test_geth_http_websocket
# - test_geth_mox
@@ -613,9 +613,9 @@ workflows:
- sobelow:
requires:
- build
- test_parity_http_websocket:
requires:
- build
# - test_parity_http_websocket:
# requires:
# - build
- test_parity_mox:
requires:
- build
@@ -12,4 +12,5 @@ apps/block_scout_web/lib/block_scout_web/views/layout_view.ex:175: The call 'Eli
apps/explorer/lib/explorer/smart_contract/publisher_worker.ex:6: The pattern 'false' can never match the type 'true'
apps/explorer/lib/explorer/smart_contract/publisher_worker.ex:6: The test 5 == 'infinity' can never evaluate to 'true'
lib/block_scout_web/router.ex:1
lib/phoenix/router.ex:324
lib/phoenix/router.ex:324
lib/block_scout_web/views/layout_view.ex:146
@@ -1,10 +1,74 @@
## Current

### Features
- [#2835](https://github.com/poanetwork/blockscout/pull/2835), [#2871](https://github.com/poanetwork/blockscout/pull/2871), [#2872](https://github.com/poanetwork/blockscout/pull/2872), [#2886](https://github.com/poanetwork/blockscout/pull/2886), [#2925](https://github.com/poanetwork/blockscout/pull/2925), [#2936](https://github.com/poanetwork/blockscout/pull/2936) - Add "block_hash" to logs, token_transfers and internal transactions and "pending blocks operations" approach
- [#2926](https://github.com/poanetwork/blockscout/pull/2926) - API endpoint: sum balances except burnt address
- [#2918](https://github.com/poanetwork/blockscout/pull/2918) - Add tokenID for tokentx API action explicitly

### Fixes
- [#2934](https://github.com/poanetwork/blockscout/pull/2934) - RSK release 1.2.0 breaking changes support
- [#2933](https://github.com/poanetwork/blockscout/pull/2933) - Get rid of deadlock in the query to address_current_token_balance table
- [#2932](https://github.com/poanetwork/blockscout/pull/2932) - fix duplicate websocket connection
- [#2928](https://github.com/poanetwork/blockscout/pull/2928) - Speedup pending block ops int txs to fetch query
- [#2924](https://github.com/poanetwork/blockscout/pull/2924) - Speedup address to logs query
- [#2915](https://github.com/poanetwork/blockscout/pull/2915) - Speedup of blocks_without_reward_query
- [#2914](https://github.com/poanetwork/blockscout/pull/2914) - Reduce execution time of stream_unfetched_token_instances query
- [#2908](https://github.com/poanetwork/blockscout/pull/2908) - Fix performance of address page
- [#2906](https://github.com/poanetwork/blockscout/pull/2906) - fix address sum cache
- [#2902](https://github.com/poanetwork/blockscout/pull/2902) - Offset in blocks retrieval for average block time
- [#2900](https://github.com/poanetwork/blockscout/pull/2900) - check fetched instance metadata in multiple places
- [#2899](https://github.com/poanetwork/blockscout/pull/2899) - fix empty buffered task
- [#2887](https://github.com/poanetwork/blockscout/pull/2887) - increase chart loading speed

- [2910](https://github.com/poanetwork/blockscout/pull/2910) - Reorganize queries and indexes for internal_transactions table

### Chore
- [#2896](https://github.com/poanetwork/blockscout/pull/2896) - Disable Parity websockets tests


## 2.1.1-beta

### Features
- [#2862](https://github.com/poanetwork/blockscout/pull/2862) - Coin total supply from DB API endpoint
- [#2857](https://github.com/poanetwork/blockscout/pull/2857) - Extend getsourcecode API view with new output fields
- [#2822](https://github.com/poanetwork/blockscout/pull/2822) - Estimated address count on the main page, if cache is empty
- [#2821](https://github.com/poanetwork/blockscout/pull/2821) - add autodetection of constructor arguments
- [#2825](https://github.com/poanetwork/blockscout/pull/2825) - separate token transfers and transactions
- [#2787](https://github.com/poanetwork/blockscout/pull/2787) - async fetching of address counters
- [#2791](https://github.com/poanetwork/blockscout/pull/2791) - add ipc client
- [#2449](https://github.com/poanetwork/blockscout/pull/2449) - add ability to send notification events through postgres notify

### Fixes
- [#2864](https://github.com/poanetwork/blockscout/pull/2864) - add token instance metadata type check
- [#2855](https://github.com/poanetwork/blockscout/pull/2855) - Fix favicons load
- [#2854](https://github.com/poanetwork/blockscout/pull/2854) - Fix all npm vulnerabilities
- [#2851](https://github.com/poanetwork/blockscout/pull/2851) - Fix paths for front assets
- [#2843](https://github.com/poanetwork/blockscout/pull/2843) - fix realtime fetcher small skips feature
- [#2841](https://github.com/poanetwork/blockscout/pull/2841) - LUKSO dashboard height fix
- [#2837](https://github.com/poanetwork/blockscout/pull/2837) - fix txlist ordering issue
- [#2830](https://github.com/poanetwork/blockscout/pull/2830) - Fix wrong color of contract icon on xDai chain
- [#2829](https://github.com/poanetwork/blockscout/pull/2829) - Fix for stuck gas limit label and value
- [#2828](https://github.com/poanetwork/blockscout/pull/2828) - Fix for script that clears compilation/launching assets
- [#2800](https://github.com/poanetwork/blockscout/pull/2800) - return not found for not verified contract for token read_contract
- [#2806](https://github.com/poanetwork/blockscout/pull/2806) - Fix blocks fetching on the main page
- [#2803](https://github.com/poanetwork/blockscout/pull/2803) - Fix block validator custom tooltip
- [#2748](https://github.com/poanetwork/blockscout/pull/2748) - Rewrite token updater
- [#2704](https://github.com/poanetwork/blockscout/pull/2704) - refetch null values in token balances
- [#2690](https://github.com/poanetwork/blockscout/pull/2690) - do not stich json rpc config into module for net version cache

### Chore
- [#2878](https://github.com/poanetwork/blockscout/pull/2878) - Decrease loaders showing delay on the main page
- [#2859](https://github.com/poanetwork/blockscout/pull/2859) - Add eth_blockNumber API endpoint to eth_rpc section
- [#2846](https://github.com/poanetwork/blockscout/pull/2846) - Remove networks images preload
- [#2845](https://github.com/poanetwork/blockscout/pull/2845) - Set outline none for nav dropdown item in mobile view (fix for Safari)
- [#2844](https://github.com/poanetwork/blockscout/pull/2844) - Extend external reward types up to 20
- [#2827](https://github.com/poanetwork/blockscout/pull/2827) - Node js 12.13.0 (latest LTS release) support
- [#2818](https://github.com/poanetwork/blockscout/pull/2818) - allow hiding marketcap percentage
- [#2817](https://github.com/poanetwork/blockscout/pull/2817) - move docker integration documentation to blockscout docs
- [#2808](https://github.com/poanetwork/blockscout/pull/2808) - Add tooltip for tx input
- [#2807](https://github.com/poanetwork/blockscout/pull/2807) - 422 page
- [#2805](https://github.com/poanetwork/blockscout/pull/2805) - Update supported chains default option
- [#2801](https://github.com/poanetwork/blockscout/pull/2801) - remove unused clause in address_to_unique_tokens query


## 2.1.0-beta
@@ -33,8 +97,11 @@
- [#2799](https://github.com/poanetwork/blockscout/pull/2799) - fix catchup fetcher for empty node and db
- [#2783](https://github.com/poanetwork/blockscout/pull/2783) - Fix stuck value and ticker on the token page
- [#2781](https://github.com/poanetwork/blockscout/pull/2781) - optimize txlist json rpc
- [#2777](https://github.com/poanetwork/blockscout/pull/2777) - Remove duplicate blocks from changes_list before import
- [#2770](https://github.com/poanetwork/blockscout/pull/2770) - do not re-fetch token instances without uris
- [#2769](https://github.com/poanetwork/blockscout/pull/2769) - optimize token token transfers query
- [#2768](https://github.com/poanetwork/blockscout/pull/2768) - Remove nonconsensus blocks from cache after internal transactions importing
- [#2761](https://github.com/poanetwork/blockscout/pull/2761) - add indexes for token instances fetching queries
- [#2767](https://github.com/poanetwork/blockscout/pull/2767) - fix websocket subscriptions with token instances
- [#2765](https://github.com/poanetwork/blockscout/pull/2765) - fixed width issue for cards in mobile view for Transaction Details page
- [#2761](https://github.com/poanetwork/blockscout/pull/2761) - add indexes for token instances fetching queries
@@ -66,6 +133,7 @@ fixed menu hovers in dark mode desktop view
- [#2738](https://github.com/poanetwork/blockscout/pull/2738) - do not fail block `internal_transactions_indexed_at` field update

### Chore
- [#2797](https://github.com/poanetwork/blockscout/pull/2797) - Return old style menu
- [#2796](https://github.com/poanetwork/blockscout/pull/2796) - Optimize all images with ImageOptim
- [#2794](https://github.com/poanetwork/blockscout/pull/2786) - update hosted versions in readme
- [#2789](https://github.com/poanetwork/blockscout/pull/2786) - remove projects table in readme, link to docs version
@@ -76,6 +144,7 @@ fixed menu hovers in dark mode desktop view
- [#2724](https://github.com/poanetwork/blockscout/pull/2724) - fix ci by commenting a line in hackney library
- [#2708](https://github.com/poanetwork/blockscout/pull/2708) - add log index to logs view
- [#2723](https://github.com/poanetwork/blockscout/pull/2723) - get rid of ex_json_schema warnings
- [#2740](https://github.com/poanetwork/blockscout/pull/2740) - add verify contract rpc doc


## 2.0.4-beta
@@ -21,7 +21,7 @@ This is a tool for inspecting and analyzing the POA Network blockchain from a we
To get BlockScout Web interface up and running locally:

* Setup `../explorer`
* Set up some default configuration with: `$ cp config/dev.secret.exs.example config/dev.secret.esx`
* Set up some default configuration with: `$ cp config/dev.secret.exs.example config/dev.secret.exs`
* Install Node.js dependencies with `$ cd assets && npm install && cd ..`
* Start Phoenix with `$ mix phx.server` (This can be run from this directory or the project root: the project root is recommended.)

@@ -1,5 +1,3 @@
{
presets: [
'env'
]
"presets": ["@babel/preset-env"]
}
@@ -3,7 +3,7 @@ $blue: #4b89fb !default;
$success: #34c0ad !default;

body {
font-family: $font-family-sans-serif;
font-family: $font-family;
font-size: 12px;
}

@@ -16,6 +16,7 @@ $fa-font-path: "~@fortawesome/fontawesome-free/webfonts";

// Bootstrap Core CSS
@import "node_modules/bootstrap/scss/functions";
@import "node_modules/bootstrap/scss/variables";
@import "node_modules/bootstrap/scss/mixins";

@import "theme/variables";
@@ -60,7 +61,6 @@ $fa-font-path: "~@fortawesome/fontawesome-free/webfonts";
// Custom SCSS
@import "layout";
@import "typography";
@import "images-preload";
@import "code";
@import "helpers";
@import "elements";
@@ -110,7 +110,6 @@ $fa-font-path: "~@fortawesome/fontawesome-free/webfonts";
@import "components/log-search";
@import "components/radio";
@import "components/modal_variables";
@import "components/network-selector";
@import "components/new_smart_contract";
@import "components/radio_big";
@import "components/btn_no_border";
@@ -1,4 +1,5 @@
/* Custom Tooltips for Block Details Page */
$tooltip-background-color: $btn-line-color !default;

.tooltipCustom {
position: relative;
@@ -8,23 +9,20 @@
.tooltipCustom .tooltiptextTopMiner {
visibility: hidden;
position: absolute;
width: 50%;
width: 100%;
background-color: white;
color: black;
color: $tooltip-background-color;
text-align: center;
border-radius: 6px;
left: 25%;
left: 0%;
bottom: 100%;
padding: 15px 0px;
padding: 15px;
display: inline-block;
z-index: 1;
font-family: Nunito;
margin-bottom: 15px;
opacity: 0;
transition: opacity 0.5s;
@include media-breakpoint-down(lg) {
left: 60%;
}
}

.tooltipCustom .tooltiptextTopMiner::after {
@@ -43,44 +41,5 @@
opacity: 1;
}

.tooltipCustom .tooltiptextTopR {
visibility: hidden;
position: absolute;
width: 50%;
background-color: $primary;
color: white;
text-align: center;
border-radius: 6px;
left: 52%;
bottom: 120%;
padding: 15px 10px;
font-family: Nunito;
display: inline-block;
z-index: 1;
margin-bottom: 15px;
opacity: 0;
transition: opacity 0.5s;
@include media-breakpoint-down(lg) {
bottom: 100%;
padding: 9px 10px;
}
}

.tooltipCustom .tooltiptextTopR::after {
content: '';
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: $primary transparent transparent transparent;
}

.tooltipCustom:hover .tooltiptextTopR {
visibility: visible;
opacity: 1;
}


/* Custom Tooltips for Block Details Page end*/

0 comments on commit 43af85d

Please sign in to comment.
You can’t perform that action at this time.