Merge branch 'master' into ab-fix-staticcall-without-output

pull/2086/head
Ayrat Badykov 6 years ago committed by GitHub
commit a9c7f26286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      CHANGELOG.md
  2. 2
      apps/block_scout_web/assets/css/_mixins.scss
  3. 6
      apps/block_scout_web/assets/css/app.scss
  4. 12
      apps/block_scout_web/assets/css/components/_btn_no_border.scss
  5. 3
      apps/block_scout_web/assets/css/components/_dropdown.scss
  6. 2
      apps/block_scout_web/assets/css/components/_filter.scss
  7. 4
      apps/block_scout_web/assets/css/components/_form.scss
  8. 204
      apps/block_scout_web/assets/css/components/_new_smart_contract.scss
  9. 55
      apps/block_scout_web/assets/css/components/_radio_big.scss
  10. 5
      apps/block_scout_web/assets/css/components/_tooltip.scss
  11. 67
      apps/block_scout_web/assets/css/components/_verify_other_explorers.scss
  12. 1
      apps/block_scout_web/assets/js/app.js
  13. 28
      apps/block_scout_web/assets/js/lib/smart_contract/new_smart_contract_form.js
  14. BIN
      apps/block_scout_web/assets/static/images/errors-img/etc-page-not-found.png
  15. BIN
      apps/block_scout_web/assets/static/images/errors-img/etc-page-not-found@2x.png
  16. BIN
      apps/block_scout_web/assets/static/images/errors-img/eth-page-not-found.png
  17. BIN
      apps/block_scout_web/assets/static/images/errors-img/eth-page-not-found@2x.png
  18. BIN
      apps/block_scout_web/assets/static/images/errors-img/kovan-page-not-found.png
  19. BIN
      apps/block_scout_web/assets/static/images/errors-img/kovan-page-not-found@2x.png
  20. BIN
      apps/block_scout_web/assets/static/images/errors-img/poa-page-not-found.png
  21. BIN
      apps/block_scout_web/assets/static/images/errors-img/poa-page-not-found@2x.png
  22. BIN
      apps/block_scout_web/assets/static/images/errors-img/rinkeby-page-not-found.png
  23. BIN
      apps/block_scout_web/assets/static/images/errors-img/rinkeby-page-not-found@2x.png
  24. BIN
      apps/block_scout_web/assets/static/images/errors-img/ropsten-page-not-found.png
  25. BIN
      apps/block_scout_web/assets/static/images/errors-img/ropsten-page-not-found@2x.png
  26. BIN
      apps/block_scout_web/assets/static/images/errors-img/rsk-page-not-found.png
  27. BIN
      apps/block_scout_web/assets/static/images/errors-img/rsk-page-not-found@2x.png
  28. BIN
      apps/block_scout_web/assets/static/images/errors-img/sokol-page-not-found.png
  29. BIN
      apps/block_scout_web/assets/static/images/errors-img/sokol-page-not-found@2x.png
  30. BIN
      apps/block_scout_web/assets/static/images/errors-img/xdai-page-not-found.png
  31. BIN
      apps/block_scout_web/assets/static/images/errors-img/xdai-page-not-found@2x.png
  32. 3
      apps/block_scout_web/lib/block_scout_web/etherscan.ex
  33. 4
      apps/block_scout_web/lib/block_scout_web/templates/address/_verify_other_explorer_modal.html.eex
  34. 3
      apps/block_scout_web/lib/block_scout_web/templates/address/_verify_other_explorers.html.eex
  35. 317
      apps/block_scout_web/lib/block_scout_web/templates/address_contract_verification/new.html.eex
  36. 2
      apps/block_scout_web/lib/block_scout_web/templates/block_transaction/404.html.eex
  37. 12
      apps/block_scout_web/lib/block_scout_web/templates/page_not_found/index.html.eex
  38. 4
      apps/block_scout_web/lib/block_scout_web/views/address_view.ex
  39. 3
      apps/block_scout_web/lib/block_scout_web/views/api/rpc/address_view.ex
  40. 140
      apps/block_scout_web/priv/gettext/default.pot
  41. 146
      apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po
  42. 2
      apps/block_scout_web/test/block_scout_web/controllers/address_controller_test.exs
  43. 5
      apps/block_scout_web/test/block_scout_web/controllers/api/rpc/address_controller_test.exs
  44. 3
      apps/block_scout_web/test/block_scout_web/controllers/block_transaction_controller_test.exs
  45. 2
      apps/block_scout_web/test/block_scout_web/features/pages/contract_verify_page.ex
  46. 5
      apps/explorer/lib/explorer/etherscan.ex
  47. 2
      apps/explorer/test/explorer/etherscan_test.exs

@ -1,6 +1,8 @@
## Current ## Current
### Features ### Features
- [#1726](https://github.com/poanetwork/blockscout/pull/2071) - Updated styles for the new smart contract page.
- [#2081](https://github.com/poanetwork/blockscout/pull/2081) - Tooltip for 'more' button, explorers logos added
- [#1963](https://github.com/poanetwork/blockscout/pull/1963), [#1959](https://github.com/poanetwork/blockscout/pull/1959), [#1948](https://github.com/poanetwork/blockscout/pull/1948), [#1936](https://github.com/poanetwork/blockscout/pull/1936), [#1925](https://github.com/poanetwork/blockscout/pull/1925), [#1922](https://github.com/poanetwork/blockscout/pull/1922), [#1903](https://github.com/poanetwork/blockscout/pull/1903), [#1874](https://github.com/poanetwork/blockscout/pull/1874), [#1895](https://github.com/poanetwork/blockscout/pull/1895), [#2031](https://github.com/poanetwork/blockscout/pull/2031), [#2073](https://github.com/poanetwork/blockscout/pull/2073), [#2074](https://github.com/poanetwork/blockscout/pull/2074), - added new themes and logos for poa, eth, rinkeby, goerli, ropsten, kovan, sokol, xdai, etc, rsk and default theme - [#1963](https://github.com/poanetwork/blockscout/pull/1963), [#1959](https://github.com/poanetwork/blockscout/pull/1959), [#1948](https://github.com/poanetwork/blockscout/pull/1948), [#1936](https://github.com/poanetwork/blockscout/pull/1936), [#1925](https://github.com/poanetwork/blockscout/pull/1925), [#1922](https://github.com/poanetwork/blockscout/pull/1922), [#1903](https://github.com/poanetwork/blockscout/pull/1903), [#1874](https://github.com/poanetwork/blockscout/pull/1874), [#1895](https://github.com/poanetwork/blockscout/pull/1895), [#2031](https://github.com/poanetwork/blockscout/pull/2031), [#2073](https://github.com/poanetwork/blockscout/pull/2073), [#2074](https://github.com/poanetwork/blockscout/pull/2074), - added new themes and logos for poa, eth, rinkeby, goerli, ropsten, kovan, sokol, xdai, etc, rsk and default theme
- [#2010](https://github.com/poanetwork/blockscout/pull/2010) - added "block not found" and "tx not found pages" - [#2010](https://github.com/poanetwork/blockscout/pull/2010) - added "block not found" and "tx not found pages"
- [#1928](https://github.com/poanetwork/blockscout/pull/1928) - pagination styles were updated - [#1928](https://github.com/poanetwork/blockscout/pull/1928) - pagination styles were updated
@ -19,8 +21,10 @@
- [#2040](https://github.com/poanetwork/blockscout/pull/2040) - Verification links to other explorers for ETH - [#2040](https://github.com/poanetwork/blockscout/pull/2040) - Verification links to other explorers for ETH
- [#2037](https://github.com/poanetwork/blockscout/pull/2037) - add address logs search functionality - [#2037](https://github.com/poanetwork/blockscout/pull/2037) - add address logs search functionality
- [#2012](https://github.com/poanetwork/blockscout/pull/2012) - make all pages pagination async - [#2012](https://github.com/poanetwork/blockscout/pull/2012) - make all pages pagination async
- [#2064](https://github.com/poanetwork/blockscout/pull/2064) - feat: add fields to tx apis, small cleanups
### Fixes ### Fixes
- [#2082](https://github.com/poanetwork/blockscout/pull/2082) - dropdown styles, tooltip gap fix, 404 page added
- [#2077](https://github.com/poanetwork/blockscout/pull/2077) - ui issues - [#2077](https://github.com/poanetwork/blockscout/pull/2077) - ui issues
- [#2072](https://github.com/poanetwork/blockscout/pull/2072) - Fixed checkmarks not showing correctly in tabs. - [#2072](https://github.com/poanetwork/blockscout/pull/2072) - Fixed checkmarks not showing correctly in tabs.
- [#2066](https://github.com/poanetwork/blockscout/pull/2066) - fixed length of logs search input - [#2066](https://github.com/poanetwork/blockscout/pull/2066) - fixed length of logs search input

@ -88,6 +88,7 @@
padding: 0 15px; padding: 0 15px;
text-decoration: none; text-decoration: none;
transition: all 0.15s; transition: all 0.15s;
white-space: nowrap;
width: fit-content; width: fit-content;
&:hover { &:hover {
@ -135,6 +136,7 @@
padding: 0 15px; padding: 0 15px;
text-decoration: none; text-decoration: none;
transition: all 0.15s; transition: all 0.15s;
white-space: nowrap;
width: fit-content; width: fit-content;
&:hover { &:hover {

@ -123,6 +123,12 @@ $fa-font-path: "~@fortawesome/fontawesome-free/webfonts";
@import "components/verify_other_explorers"; @import "components/verify_other_explorers";
@import "components/errors"; @import "components/errors";
@import "components/log-search"; @import "components/log-search";
@import "components/new_smart_contract";
@import "components/radio_big";
@import "components/btn_no_border";
:export { :export {
dashboardBannerChartAxisFontColor: $dashboard-banner-chart-axis-font-color; dashboardBannerChartAxisFontColor: $dashboard-banner-chart-axis-font-color;
dashboardLineColorMarket: $dashboard-line-color-market; dashboardLineColorMarket: $dashboard-line-color-market;

@ -0,0 +1,12 @@
$btn-no-border-bg: #fff !default;
$btn-no-border-color: $primary !default;
.btn-no-border {
@include btn-line($btn-no-border-bg, $btn-no-border-color);
border-color: $btn-no-border-bg;
&:hover {
border-color: $btn-no-border-color;
}
}

@ -5,6 +5,9 @@
box-shadow: $box-shadow; box-shadow: $box-shadow;
padding: 0; padding: 0;
width: 100%; width: 100%;
border-left: 1px solid #e2e5ec;
border-right: 1px solid #e2e5ec;
border-bottom: 1px solid #e2e5ec;
&.right { &.right {
left: auto; left: auto;

@ -1,4 +1,4 @@
.filter { .filter {
min-width: 100%; min-width: 100%;
transform: translate3d(1px, 26px, 0px) !important; transform: translate3d(0, 34px, 0px) !important;
} }

@ -5,6 +5,10 @@ $form-control-border-color: #e2e5ec !default;
border-radius: 0; border-radius: 0;
font-size: 14px; font-size: 14px;
&.border-rounded {
border-radius: 4px;
}
&.n-b-r { &.n-b-r {
border-right: none; border-right: none;
} }

@ -0,0 +1,204 @@
$new-smart-contract-container-tooltips-background-color: #fbfafc !default;
$new-smart-contract-tooltips-width: 300px;
$smart-contract-form-group-tooltip-color: #adb5bd !default;
$new-smart-contract-center-column-margin-right: 30px;
.new-smart-contract-container {
background-color: #fff;
background-image: linear-gradient(
to bottom right,
#{$new-smart-contract-container-tooltips-background-color} 100%,
#{$new-smart-contract-container-tooltips-background-color} 100%
);
background-position: 100% 0;
background-repeat: repeat-y;
background-size: #{$new-smart-contract-tooltips-width} 1px;
box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.15);
margin-bottom: 3rem;
padding: 50px 0 50px 22px;
@include media-breakpoint-down(md) {
background-image: none;
padding-right: 22px;
}
}
.smart-contract-title {
color: #333;
font-size: 18px;
font-weight: normal;
line-height: 1.2;
margin: 0 0 70px 0;
padding: 0;
text-align: left;
@include media-breakpoint-down(md) {
margin-bottom: 30px;
}
&.margin-bottom-md {
margin-bottom: 50px;
@include media-breakpoint-down(md) {
margin-bottom: 15px;
}
}
}
.smart-contract-form-group {
margin-bottom: 30px;
@include media-breakpoint-down(md) {
margin-bottom: 20px;
}
}
.form-radios-group {
display: flex;
justify-content: flex-start;
.radio-big {
margin-right: 20px;
&:last-child {
margin-right: 0;
}
}
}
.smart-contract-form-group-inner-wrapper {
display: flex;
justify-content: space-between;
@include media-breakpoint-down(md) {
flex-direction: column;
}
> label {
color: #333;
flex-grow: 0;
font-size: 14px;
font-weight: normal;
line-height: 1.7;
margin: 0;
padding-right: 15px;
text-align: left;
width: 200px;
@include media-breakpoint-down(md) {
margin-bottom: 10px;
padding-right: 0;
width: auto;
}
}
.center-column {
flex-grow: 1;
margin-right: $new-smart-contract-center-column-margin-right;
@include media-breakpoint-down(md) {
margin: 0;
}
}
textarea.form-control {
min-height: 98px;
}
.form-error {
display: block;
font-size: 13px;
line-height: 1.2;
padding-top: 10px;
}
.smart-contract-form-group-tooltip {
color: $smart-contract-form-group-tooltip-color;
flex-grow: 0;
flex-shrink: 0;
font-size: 12px;
font-weight: normal;
line-height: 1.5;
padding: 0 30px;
text-align: left;
width: #{$new-smart-contract-tooltips-width};
@include media-breakpoint-down(md) {
padding: 10px 0 0 0;
width: auto;
}
&:empty {
@include media-breakpoint-down(md) {
display: none;
}
}
a {
color: $smart-contract-form-group-tooltip-color;
text-decoration: underline;
&:hover {
text-decoration: none;
}
}
}
}
.tooltip-quote {
background: rgba(0, 0, 0, 0.08);
border-radius: 2px;
padding: 0 5px;
}
.add-contract-libraries-wrapper {
border-bottom: 1px solid $base-border-color;
margin-right: $new-smart-contract-center-column-margin-right + $new-smart-contract-tooltips-width;
padding-bottom: 30px;
@include media-breakpoint-down(md) {
margin-right: 0;
}
}
.smart-contract-form-buttons {
align-items: center;
border-top: 1px solid $base-border-color;
display: flex;
margin-right: $new-smart-contract-center-column-margin-right + $new-smart-contract-tooltips-width;
margin-top: -1px;
padding-top: 30px;
position: relative;
@include media-breakpoint-down(md) {
margin-right: 0;
}
[class*="btn-"] {
position: relative;
z-index: 1;
}
.position-absolute {
&,
&:hover {
opacity: 1;
z-index: 12;
}
}
}
.smart-contract-libraries-wrapper {
display: none;
padding-bottom: 30px;
padding-top: 30px;
}
.contract-library-form-group {
display: none;
&.active {
display: block;
}
}

@ -0,0 +1,55 @@
$radio-big-color: $primary !default;
$radio-big-dimensions: 30px !default;
.radio-big {
align-items: center;
display: flex;
position: relative;
input[type="radio"] {
height: 100%;
opacity: 0;
position: absolute;
width: 100%;
z-index: 5;
&:checked + .radio-icon::before {
background-color: $radio-big-color;
border-radius: 50%;
content: "";
height: 12px;
left: 50%;
position: absolute;
top: 50%;
transform: translateX(-50%) translateY(-50%);
width: 12px;
}
&:checked + .radio-icon {
border-color: $radio-big-color;
}
}
.radio-icon {
border: 1px solid $base-border-color;
border-radius: 50%;
flex-grow: 0;
flex-shrink: 0;
height: $radio-big-dimensions;
margin: 0 10px 0 0;
position: relative;
width: $radio-big-dimensions;
z-index: 1;
}
.radio-text {
color: #333;
font-size: 14px;
font-weight: normal;
line-height: 1.2;
margin: 0;
position: relative;
white-space: nowrap;
z-index: 1;
}
}

@ -17,3 +17,8 @@ $tooltip-color: #fff !default;
border-bottom-color: $tooltip-background-color; border-bottom-color: $tooltip-background-color;
} }
} }
.bs-tooltip-top { top: -10px !important; }
.bs-tooltip-bottom { top: 10px !important; }
.bs-tooltip-left { left: -10px !important; }
.bs-tooltip-right { left: 10px !important; }

@ -121,6 +121,7 @@
border-radius: 2px; border-radius: 2px;
margin-top: 10px; margin-top: 10px;
transition: .1s ease-in; transition: .1s ease-in;
position: relative;
@media (min-width: 768px) { @media (min-width: 768px) {
margin-left: 10px; margin-left: 10px;
margin-top: 0; margin-top: 0;
@ -134,6 +135,13 @@
fill: #fff; fill: #fff;
} }
} }
span {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
} }
.verify-other-explorers-dialog { .verify-other-explorers-dialog {
@ -147,6 +155,40 @@
.verify-other-explorers-modal-row { .verify-other-explorers-modal-row {
display: table-row; display: table-row;
height: 29px; height: 29px;
&:first-child {
.verify-other-explorers-cell.left {
.exp-logo {
@include image-2x('/images/icons/etherscan@2x.png', 15px, 16px);
background-image: url("/images/icons/etherscan.png");
background-repeat: no-repeat;
padding-left: 25px;
background-size: 15px 16px;
}
}
}
&:nth-child(2) {
.verify-other-explorers-cell.left {
.exp-logo {
@include image-2x('/images/icons/blockchair@2x.png', 10px, 16px);
background-image: url("/images/icons/blockchair.png");
background-repeat: no-repeat;
padding-left: 25px;
background-size: 10px 16px;
background-position: left 3px center;
}
}
}
&:nth-child(3) {
.verify-other-explorers-cell.left {
.exp-logo {
@include image-2x('/images/icons/etherchain@2x.png', 16px, 16px);
background-image: url("/images/icons/etherchain.png");
background-repeat: no-repeat;
padding-left: 25px;
background-size: 16px 16px;
}
}
}
} }
.verify-other-explorers-cell { .verify-other-explorers-cell {
@ -162,28 +204,3 @@
padding-left: 15px; padding-left: 15px;
background-size: 12px 12px; background-size: 12px 12px;
} }
.etherscan-logo {
@include image-2x('/images/icons/etherscan@2x.png', 15px, 16px);
background-image: url("/images/icons/etherscan.png");
background-repeat: no-repeat;
padding-left: 25px;
background-size: 15px 16px;
}
.blockchair-logo {
@include image-2x('/images/icons/blockchair@2x.png', 10px, 16px);
background-image: url("/images/icons/blockchair.png");
background-repeat: no-repeat;
padding-left: 25px;
background-size: 10px 16px;
background-position: left 3px center;
}
.etherchain-logo {
@include image-2x('/images/icons/etherchain@2x.png', 16px, 16px);
background-image: url("/images/icons/etherchain.png");
background-repeat: no-repeat;
padding-left: 25px;
background-size: 16px 16px;
}

@ -43,6 +43,7 @@ import './lib/market_history_chart'
import './lib/pending_transactions_toggle' import './lib/pending_transactions_toggle'
import './lib/pretty_json' import './lib/pretty_json'
import './lib/reload_button' import './lib/reload_button'
import './lib/smart_contract/new_smart_contract_form'
import './lib/smart_contract/read_only_functions' import './lib/smart_contract/read_only_functions'
import './lib/smart_contract/wei_ether_converter' import './lib/smart_contract/wei_ether_converter'
import './lib/stop_propagation' import './lib/stop_propagation'

@ -0,0 +1,28 @@
import $ from 'jquery'
$(function () {
$('.js-btn-add-contract-libraries').on('click', function () {
$('.js-smart-contract-libraries-wrapper').show()
$(this).hide()
})
$('.js-smart-contract-form-reset').on('click', function () {
$('.js-contract-library-form-group').removeClass('active')
$('.js-contract-library-form-group').first().addClass('active')
$('.js-smart-contract-libraries-wrapper').hide()
$('.js-btn-add-contract-libraries').show()
$('.js-add-contract-library-wrapper').show()
})
$('.js-btn-add-contract-library').on('click', function () {
let nextContractLibrary = $('.js-contract-library-form-group.active').next('.js-contract-library-form-group')
if (nextContractLibrary) {
nextContractLibrary.addClass('active')
}
if ($('.js-contract-library-form-group.active').length === $('.js-contract-library-form-group').length) {
$('.js-add-contract-library-wrapper').hide()
}
})
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

@ -82,6 +82,8 @@ defmodule BlockScoutWeb.Etherscan do
"to" => "", "to" => "",
"value" => "5488334153118633", "value" => "5488334153118633",
"contractAddress" => "0x883103875d905c11f9ac7dacbfc16deb39655361", "contractAddress" => "0x883103875d905c11f9ac7dacbfc16deb39655361",
"transactionHash" => "0xd65b788c610949704a5f9aac2228c7c777434dfe11c863a12306f57fcbd8cdbb",
"index" => "0",
"input" => "", "input" => "",
"type" => "create", "type" => "create",
"gas" => "814937", "gas" => "814937",
@ -110,6 +112,7 @@ defmodule BlockScoutWeb.Etherscan do
"blockHash" => "0x6169c5dc05d0051564ba3eae8ebfbdefda640c5f5ffc095846b8aed0b44f64ea", "blockHash" => "0x6169c5dc05d0051564ba3eae8ebfbdefda640c5f5ffc095846b8aed0b44f64ea",
"from" => "0x4e83362442b8d1bec281594cea3050c8eb01311c", "from" => "0x4e83362442b8d1bec281594cea3050c8eb01311c",
"contractAddress" => "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2", "contractAddress" => "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
"logIndex" => "0",
"to" => "0x21e21ba085289f81a86921de890eed30f1ad2375", "to" => "0x21e21ba085289f81a86921de890eed30f1ad2375",
"value" => "10000000000000000000", "value" => "10000000000000000000",
"tokenName" => "Maker", "tokenName" => "Maker",

@ -1,6 +1,6 @@
<div class="verify-other-explorers-modal-row"> <div class="verify-other-explorers-modal-row">
<div class="verify-other-explorers-cell"> <div class="verify-other-explorers-cell left">
<span class="etherscan-logo"> <span class="exp-logo">
<%= @header %> <%= @header %>
</span> </span>
</div> </div>

@ -7,8 +7,9 @@
<%= render "_verify_other_explorer.html", hash: @hash, type: @type, header: "Blockchair.com", class: "blockchair", address_link: "https://blockchair.com/ethereum/address/", tx_link: "https://blockchair.com/ethereum/transaction/" %> <%= render "_verify_other_explorer.html", hash: @hash, type: @type, header: "Blockchair.com", class: "blockchair", address_link: "https://blockchair.com/ethereum/address/", tx_link: "https://blockchair.com/ethereum/transaction/" %>
<%= render "_verify_other_explorer.html", hash: @hash, type: @type, header: "Etherchain.org", class: "etherchain", address_link: "https://www.etherchain.org/account/", tx_link: "https://www.etherchain.org/tx/" %> <%= render "_verify_other_explorer.html", hash: @hash, type: @type, header: "Etherchain.org", class: "etherchain", address_link: "https://www.etherchain.org/account/", tx_link: "https://www.etherchain.org/tx/" %>
<a href="#" class="verify-other-explorers-more" data-toggle="modal" data-target="#explorersModal"> <a href="#" class="verify-other-explorers-more" data-toggle="modal" data-target="#explorersModal">
<span data-toggle="tooltip" data-placement="top" data-original-title="Explorers"></span>
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="4"> <svg xmlns="http://www.w3.org/2000/svg" width="18" height="4">
<path fill="#49A2EE" fill-rule="evenodd" d="M16 4a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 4zM9 4A2 2 0 1 1 8.999.001 2 2 0 0 1 9 4zM2 4A2 2 0 1 1 1.999.001 2 2 0 0 1 2 4z"/> <path fill="#49A2EE" fill-rule="evenodd" d="M16 4a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 4zM9 4A2 2 0 1 1 8.999.001 2 2 0 0 1 9 4zM2 4A2 2 0 1 1 1.999.001 2 2 0 0 1 2 4z" />
</svg> </svg>
</a> </a>
</div> </div>

@ -1,141 +1,256 @@
<section class="container"> <section class="container new-smart-contract-container">
<div class="card"> <div class="new-smart-contract-form">
<div class="card-body"> <h1 class="smart-contract-title"><%= gettext "New Smart Contract Verification" %></h1>
<h1 class="card-title"><%= gettext "New Smart Contract" %></h1>
<%= form_for @changeset, <%= form_for @changeset,
address_verify_contract_path(@conn, :create, @conn.params["address_id"]), address_verify_contract_path(@conn, :create, @conn.params["address_id"]),
[], [],
fn f -> %> fn f -> %>
<div class="form-group"> <div class="smart-contract-form-group">
<%= label f, :address_hash, gettext("Contract Address") %> <div class="smart-contract-form-group-inner-wrapper">
<%= text_input f, :address_hash, class: "form-control", "aria-describedby": "contract-address-help-block", readonly: true %> <%= label f, :address_hash, gettext("Contract Address") %>
<%= error_tag f, :address_hash, id: "contract-address-help-block", class: "text-danger" %> <div class="center-column">
<%= text_input f, :address_hash, class: "form-control border-rounded", "aria-describedby": "contract-address-help-block", readonly: true %>
<%= error_tag f, :address_hash, id: "contract-address-help-block", class: "text-danger form-error" %>
</div>
<div class="smart-contract-form-group-tooltip">The 0x address supplied on contract creation.</div>
</div>
</div> </div>
<div class="form-group"> <div class="smart-contract-form-group">
<%= label f, :name, gettext("Contract Name") %> <div class="smart-contract-form-group-inner-wrapper">
<%= text_input f, :name, class: "form-control", "aria-describedby": "contract-name-help-block", "data-test": "contract_name" %> <%= label f, :name, gettext("Contract Name") %>
<%= error_tag f, :name, id: "contract-name-help-block", class: "text-danger" %> <div class="center-column">
<%= text_input f, :name, class: "form-control border-rounded", "aria-describedby": "contract-name-help-block", "data-test": "contract_name" %>
<%= error_tag f, :name, id: "contract-name-help-block", class: "text-danger form-error" %>
</div>
<div class="smart-contract-form-group-tooltip">Must match the name specified in the code. For example, in <span class="tooltip-quote">contract MyContract {..}</span> <strong>MyContract</strong> is the contract name.</div>
</div>
</div> </div>
<div class="form-group mb-4"> <div class="smart-contract-form-group">
<%= label f, :compiler_version, gettext("Compiler") %> <div class="smart-contract-form-group-inner-wrapper">
<%= select f, :compiler_version, @compiler_versions, class: "form-control", selected: "latest", "aria-describedby": "compiler-help-block" %> <%= label f, :compiler_version, gettext("Compiler") %>
<%= error_tag f, :compiler_version, id: "compiler-help-block", class: "text-danger" %> <div class="center-column">
<%= select f, :compiler_version, @compiler_versions, class: "form-control border-rounded", selected: "latest", "aria-describedby": "compiler-help-block" %>
<%= error_tag f, :compiler_version, id: "compiler-help-block", class: "text-danger form-error" %>
</div>
<div class="smart-contract-form-group-tooltip">The compiler version is specified in <span class="tooltip-quote">pragma solidity X.X.X</span>. Use the compiler version rather than the nightly build. If using the Solidity compiler, run <span class="tooltip-quote">solc —version</span> to check.</div>
</div>
</div> </div>
<div class="form-group"> <div class="smart-contract-form-group">
<%= label :evm_version, :evm_version, gettext("EVM Version") %> <div class="smart-contract-form-group-inner-wrapper">
<%= select :evm_version, :evm_version, @evm_versions, class: "form-control", selected: "petersburg", "aria-describedby": "evm-version-help-block" %> <%= label :evm_version, :evm_version, gettext("EVM Version") %>
<div class="center-column">
<%= select :evm_version, :evm_version, @evm_versions, class: "form-control border-rounded", selected: "petersburg", "aria-describedby": "evm-version-help-block" %>
</div>
<div class="smart-contract-form-group-tooltip">The EVM version the contract is written for. If the bytecode does not match the version, we try to verify using the latest EVM version. <a href="https://forum.poa.network/t/smart-contract-verification-evm-version-details/2318" target="_blank">EVM version details</a>.</div>
</div>
</div> </div>
<div class="form-group mb-4"> <div class="smart-contract-form-group">
<%= label f, "Optimization" %> <div class="smart-contract-form-group-inner-wrapper">
<%= label f, "Optimization" %>
<div class="form-check mb-2"> <div class="center-column">
<%= radio_button f, :optimization, false, checked: true, class: "form-check-input", "aria-describedby": "optimization-help-block" %> <div class="form-radios-group">
<%= label :smart_contract_optimization, :false, gettext("No"), class: "form-check-label" %> <div class="radio-big">
<%= radio_button f, :optimization, false, checked: true, class: "form-check-input" %>
<div class="radio-icon"></div>
<%= label :smart_contract_optimization, :false, gettext("No"), class: "radio-text" %>
</div>
<div class="radio-big">
<%= radio_button f, :optimization, true, class: "form-check-input", "aria-describedby": "optimization-help-block" %>
<div class="radio-icon"></div>
<%= label :smart_contract_optimization, :true, gettext("Yes"), class: "radio-text" %>
</div>
</div>
<%= error_tag f, :optimization, id: "optimization-help-block", class: "text-danger form-error" %>
</div>
<div class="smart-contract-form-group-tooltip">If you enabled optimization during compilation, select yes.</div>
</div> </div>
</div>
<div class="form-check"> <div class="smart-contract-form-group">
<%= radio_button f, :optimization, true, class: "form-check-input", "aria-describedby": "optimization-help-block" %> <div class="smart-contract-form-group-inner-wrapper">
<%= label :smart_contract_optimization, :true, gettext("Yes"), class: "form-check-label" %> <%= label f, :name, gettext("Optimization runs") %>
<div class="center-column">
<%= text_input :optimization, :runs, value: 200, class: "form-control border-rounded", "aria-describedby": "optimization-runs-help-block", "data-test": "optimization-runs" %>
</div>
<div class="smart-contract-form-group-tooltip"></div>
</div> </div>
<%= error_tag f, :optimization, id: "optimization-help-block", class: "text-danger" %>
</div> </div>
<div class="form-group"> <div class="smart-contract-form-group">
<%= label f, :name, gettext("Optimization runs") %> <div class="smart-contract-form-group-inner-wrapper">
<%= text_input :optimization, :runs, value: 200, class: "form-control", "aria-describedby": "optimization-runs-help-block", "data-test": "optimization-runs" %> <%= label f, :contract_source_code, gettext("Enter the Solidity Contract Code") %>
<div class="center-column">
<%= textarea f, :contract_source_code, class: "form-control border-rounded monospace", rows: 3, "aria-describedby": "contract-source-code-help-block" %>
<%= error_tag f, :contract_source_code, id: "contract-source-code-help-block", class: "text-danger form-error", "data-test": "contract-source-code-error" %>
</div>
<div class="smart-contract-form-group-tooltip">We recommend using flattened code. This is necessary if your code utilizes a library or inherits dependencies. Use the <a href="https://github.com/poanetwork/solidity-flattener" target="_blank">POA solidity flattener or the <a href="https://www.npmjs.com/package/truffle-flattener" target="_blank">truffle flattener</a>.</div>
</div>
</div> </div>
<div class="form-group mb-4"> <div class="smart-contract-form-group">
<%= label f, :contract_source_code, gettext("Enter the Solidity Contract Code below") %> <div class="smart-contract-form-group-inner-wrapper">
<%= textarea f, :contract_source_code, class: "form-control monospace", rows: 3, "aria-describedby": "contract-source-code-help-block" %> <%= label f, :contructor_arguments, gettext("ABI-encoded Constructor Arguments (if required by the contract)") %>
<%= error_tag f, :contract_source_code, id: "contract-source-code-help-block", class: "text-danger", "data-test": "contract-source-code-error" %> <div class="center-column">
<%= textarea f, :constructor_arguments, class: "form-control border-rounded monospace", rows: 3, "aria-describedby": "contract-constructor-arguments-help-block" %>
<%= error_tag f, :constructor_arguments, id: "contract-constructor-arguments-help-block", class: "text-danger form-error", "data-test": "contract-constructor-arguments-error" %>
</div>
<div class="smart-contract-form-group-tooltip">Add arguments in <a href="https://solidity.readthedocs.io/en/develop/abi-spec.html" target="_blank">ABI hex encoded form</a>. Constructor arguments are written right to left, and will be found at the end of the input created bytecode. They may also be <a href="https://abi.hashex.org/" target="_blank">parsed here.</a></div>
</div>
</div> </div>
<div class="form-group mb-4"> <div class="add-contract-libraries-wrapper">
<%= label f, :contructor_arguments, gettext("Enter constructor arguments if the contract had any") %> <span class="btn-line js-btn-add-contract-libraries">Add Contract Libraries</span>
<%= textarea f, :constructor_arguments, class: "form-control monospace", rows: 3, "aria-describedby": "contract-constructor-arguments-help-block" %>
<%= error_tag f, :constructor_arguments, id: "contract-constructor-arguments-help-block", class: "text-danger", "data-test": "contract-constructor-arguments-error" %>
</div> </div>
<h3 class="card-title"><%= gettext "Contract Libraries" %></h3> <div class="smart-contract-libraries-wrapper js-smart-contract-libraries-wrapper">
<h2 class="smart-contract-title margin-bottom-md"><%= gettext "Contract Libraries" %></h2>
<div class="form-group"> <div class="contract-library-form-group js-contract-library-form-group active">
<%= label :external_libraries, :library1, gettext("1 Library Name") %> <div class="smart-contract-form-group">
<%= text_input :external_libraries, :library1_name, class: "form-control", "aria-describedby": "contract-name-help-block" %> <div class="smart-contract-form-group-inner-wrapper">
</div> <%= label :external_libraries, :library1, gettext("Library Name") %>
<div class="center-column">
<%= text_input :external_libraries, :library1_name, class: "form-control border-rounded", "aria-describedby": "contract-name-help-block" %>
</div>
<div class="smart-contract-form-group-tooltip">A library name called in the .sol file. Multiple libraries (up to 5) may be added for each contract. Click the Add Library button to add an additional one.</div>
</div>
</div>
<div class="form-group"> <div class="smart-contract-form-group">
<%= label :external_libraries, :library1, gettext("1 Library Address") %> <div class="smart-contract-form-group-inner-wrapper">
<%= text_input :external_libraries, :library1_address, class: "form-control", "aria-describedby": "contract-name-help-block" %> <%= label :external_libraries, :library1, gettext("Library Address") %>
</div> <div class="center-column">
<%= text_input :external_libraries, :library1_address, class: "form-control border-rounded", "aria-describedby": "contract-name-help-block" %>
</div>
<div class="smart-contract-form-group-tooltip">The 0x library address. This can be found in the generated json file or Truffle output (if using truffle).</div>
</div>
</div>
</div>
<div class="form-group"> <div class="contract-library-form-group js-contract-library-form-group">
<%= label :external_libraries, :library2, gettext("2 Library Name") %> <div class="smart-contract-form-group">
<%= text_input :external_libraries, :library2_name, class: "form-control", "aria-describedby": "contract-name-help-block" %> <div class="smart-contract-form-group-inner-wrapper">
</div> <%= label :external_libraries, :library2, gettext("Library Name") %>
<div class="center-column">
<%= text_input :external_libraries, :library2_name, class: "form-control border-rounded", "aria-describedby": "contract-name-help-block" %>
</div>
<div class="smart-contract-form-group-tooltip"></div>
</div>
</div>
<div class="form-group"> <div class="smart-contract-form-group">
<%= label :external_libraries, :library2, gettext("2 Library Address") %> <div class="smart-contract-form-group-inner-wrapper">
<%= text_input :external_libraries, :library2_address, class: "form-control", "aria-describedby": "contract-name-help-block" %> <%= label :external_libraries, :library2, gettext("Library Address") %>
</div> <div class="center-column">
<%= text_input :external_libraries, :library2_address, class: "form-control border-rounded", "aria-describedby": "contract-name-help-block" %>
</div>
<div class="smart-contract-form-group-tooltip"></div>
</div>
</div>
</div>
<div class="form-group"> <div class="contract-library-form-group js-contract-library-form-group">
<%= label :external_libraries, :library3, gettext("3 Library Name") %> <div class="smart-contract-form-group">
<%= text_input :external_libraries, :library3_name, class: "form-control", "aria-describedby": "contract-name-help-block" %> <div class="smart-contract-form-group-inner-wrapper">
</div> <%= label :external_libraries, :library3, gettext("Library Name") %>
<div class="center-column">
<%= text_input :external_libraries, :library3_name, class: "form-control border-rounded", "aria-describedby": "contract-name-help-block" %>
</div>
<div class="smart-contract-form-group-tooltip"></div>
</div>
</div>
<div class="form-group"> <div class="smart-contract-form-group">
<%= label :external_libraries, :library3, gettext("3 Library Address") %> <div class="smart-contract-form-group-inner-wrapper">
<%= text_input :external_libraries, :library3_address, class: "form-control", "aria-describedby": "contract-name-help-block" %> <%= label :external_libraries, :library3, gettext("Library Address") %>
</div> <div class="center-column">
<%= text_input :external_libraries, :library3_address, class: "form-control border-rounded", "aria-describedby": "contract-name-help-block" %>
</div>
<div class="smart-contract-form-group-tooltip"></div>
</div>
</div>
</div>
<div class="form-group"> <div class="contract-library-form-group js-contract-library-form-group">
<%= label :external_libraries, :library4, gettext("4 Library Name") %> <div class="smart-contract-form-group">
<%= text_input :external_libraries, :library4_name, class: "form-control", "aria-describedby": "contract-name-help-block" %> <div class="smart-contract-form-group-inner-wrapper">
</div> <%= label :external_libraries, :library4, gettext("Library Name") %>
<div class="center-column">
<%= text_input :external_libraries, :library4_name, class: "form-control border-rounded", "aria-describedby": "contract-name-help-block" %>
</div>
<div class="smart-contract-form-group-tooltip"></div>
</div>
</div>
<div class="form-group"> <div class="smart-contract-form-group">
<%= label :external_libraries, :library4, gettext("4 Library Address") %> <div class="smart-contract-form-group-inner-wrapper">
<%= text_input :external_libraries, :library4_address, class: "form-control", "aria-describedby": "contract-name-help-block" %> <%= label :external_libraries, :library4, gettext("Library Address") %>
</div> <div class="center-column">
<%= text_input :external_libraries, :library4_address, class: "form-control border-rounded", "aria-describedby": "contract-name-help-block" %>
</div>
<div class="smart-contract-form-group-tooltip"></div>
</div>
</div>
</div>
<div class="form-group"> <div class="contract-library-form-group js-contract-library-form-group">
<%= label :external_libraries, :library5, gettext("5 Library Name") %> <div class="smart-contract-form-group">
<%= text_input :external_libraries, :library5_name, class: "form-control", "aria-describedby": "contract-name-help-block" %> <div class="smart-contract-form-group-inner-wrapper">
</div> <%= label :external_libraries, :library5, gettext("Library Name") %>
<div class="center-column">
<%= text_input :external_libraries, :library5_name, class: "form-control border-rounded", "aria-describedby": "contract-name-help-block" %>
</div>
<div class="smart-contract-form-group-tooltip"></div>
</div>
</div>
<div class="smart-contract-form-group">
<div class="smart-contract-form-group-inner-wrapper">
<%= label f, :library5, gettext("Library Address") %>
<div class="center-column">
<%= text_input f, :library5_address, class: "form-control border-rounded", "aria-describedby": "contract-name-help-block" %>
</div>
<div class="smart-contract-form-group-tooltip"></div>
</div>
</div>
</div>
<div class="form-group"> <div class="add-contract-library-wrapper js-add-contract-library-wrapper">
<%= label f, :library5, gettext("5 Library Address") %> <span class="btn-line js-btn-add-contract-library">Add Library</span>
<%= text_input f, :library5_address, class: "form-control", "aria-describedby": "contract-name-help-block" %> </div>
</div> </div>
<button <div class="smart-contract-form-buttons">
type="button" <button
name="button" class="position-absolute btn-full-primary d-none mr-2"
id="loading" disabled="true"
disabled="true" id="loading"
class="d-none px-4 position-absolute button button-primary button-sm mr-2"> name="button"
<span class="loading-spinner-small mr-2"> type="button"
<span class="loading-spinner-block-1"></span> >
<span class="loading-spinner-block-2"></span> <span class="loading-spinner-small mr-2">
</span> <span class="loading-spinner-block-1"></span>
<%= gettext("Loading....") %> <span class="loading-spinner-block-2"></span>
</button> </span>
<%= submit gettext("Verify & publish"), class: "button button-primary button-sm mr-2", "data-loading": "animation" %> <%= gettext("Loading....") %>
<%= reset gettext("Reset"), class: "button button-secondary button-sm mr-2" %> </button>
<%= link( <%= submit gettext("Verify & publish"), class: "btn-full-primary mr-2", "data-loading": "animation" %>
gettext("Cancel"), <%= reset gettext("Reset"), class: "btn-line mr-2 js-smart-contract-form-reset" %>
to: address_contract_path(@conn, :index, @conn.params["address_id"]), <%=
class: "button button-sm") %> link(
gettext("Cancel"),
class: "btn-no-border",
to: address_contract_path(@conn, :index, @conn.params["address_id"])
)
%>
</div>
<% end %> <% end %>
</div> </div>
</div>
</section> </section>

@ -1,7 +1,7 @@
<section class="container"> <section class="container">
<div class="block-not-found"> <div class="block-not-found">
<div class="block-not-found-img"> <div class="block-not-found-img">
<img alt="Block Not Found" src="/images/errors-img/eth-block-not-found.png" srcset="/images/eth-block-not-found@2x.png 2x"> <img alt="Block Not Found" src="/images/errors-img/eth-block-not-found.png" srcset="/images/errors-img/eth-block-not-found@2x.png 2x">
</div> </div>
<div class="block-not-found-content"> <div class="block-not-found-content">
<h1 class="card-title error-title"><%= gettext("Block Details") %></h1> <h1 class="card-title error-title"><%= gettext("Block Details") %></h1>

@ -0,0 +1,12 @@
<section class="container">
<div class="block-not-found">
<div class="block-not-found-img">
<img alt="Page Not Found" src="/images/errors-img/poa-page-not-found.png" srcset="/images/errors-img/poa-page-not-found@2x.png 2x">
</div>
<div class="block-not-found-content">
<h1 class="card-title error-title">Lorem Ipsum Dolor</h1>
<p class="error-descr">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua</p>
<a class="error-btn btn-line" href="/">Back Home</a>
</div>
</div>
</section>

@ -253,9 +253,7 @@ defmodule BlockScoutWeb.AddressView do
address.contracts_creation_transaction.from_address_hash address.contracts_creation_transaction.from_address_hash
end end
def from_address_hash(address) do def from_address_hash(_address) do
Logger.error(fn -> ["Found a contract with no creator: ", to_string(address)] end)
nil nil
end end

@ -102,6 +102,8 @@ defmodule BlockScoutWeb.API.RPC.AddressView do
"to" => "#{internal_transaction.to_address_hash}", "to" => "#{internal_transaction.to_address_hash}",
"value" => "#{internal_transaction.value.value}", "value" => "#{internal_transaction.value.value}",
"contractAddress" => "#{internal_transaction.created_contract_address_hash}", "contractAddress" => "#{internal_transaction.created_contract_address_hash}",
"transactionHash" => to_string(internal_transaction.transaction_hash),
"index" => to_string(internal_transaction.index),
"input" => "#{internal_transaction.input}", "input" => "#{internal_transaction.input}",
"type" => "#{internal_transaction.type}", "type" => "#{internal_transaction.type}",
"gas" => "#{internal_transaction.gas}", "gas" => "#{internal_transaction.gas}",
@ -121,6 +123,7 @@ defmodule BlockScoutWeb.API.RPC.AddressView do
"from" => to_string(token_transfer.from_address_hash), "from" => to_string(token_transfer.from_address_hash),
"contractAddress" => to_string(token_transfer.token_contract_address_hash), "contractAddress" => to_string(token_transfer.token_contract_address_hash),
"to" => to_string(token_transfer.to_address_hash), "to" => to_string(token_transfer.to_address_hash),
"logIndex" => to_string(token_transfer.token_log_index),
"value" => get_token_value(token_transfer), "value" => get_token_value(token_transfer),
"tokenName" => token_transfer.token_name, "tokenName" => token_transfer.token_name,
"tokenSymbol" => token_transfer.token_symbol, "tokenSymbol" => token_transfer.token_symbol,

@ -190,12 +190,12 @@ msgstr ""
#: lib/block_scout_web/templates/address/_tabs.html.eex:32 #: lib/block_scout_web/templates/address/_tabs.html.eex:32
#: lib/block_scout_web/templates/address/overview.html.eex:95 #: lib/block_scout_web/templates/address/overview.html.eex:95
#: lib/block_scout_web/templates/address_validation/index.html.eex:13 #: lib/block_scout_web/templates/address_validation/index.html.eex:13
#: lib/block_scout_web/views/address_view.ex:313 #: lib/block_scout_web/views/address_view.ex:311
msgid "Blocks Validated" msgid "Blocks Validated"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:135 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:247
#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:47 #: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:47
msgid "Cancel" msgid "Cancel"
msgstr "" msgstr ""
@ -218,12 +218,12 @@ msgstr ""
#: lib/block_scout_web/templates/address/_tabs.html.eex:42 #: lib/block_scout_web/templates/address/_tabs.html.eex:42
#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:165 #: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:165
#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:187 #: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:187
#: lib/block_scout_web/views/address_view.ex:309 #: lib/block_scout_web/views/address_view.ex:307
msgid "Code" msgid "Code"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:25 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:34
msgid "Compiler" msgid "Compiler"
msgstr "" msgstr ""
@ -261,7 +261,7 @@ msgid "Contract ABI"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:13 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:12
#: lib/block_scout_web/views/address_view.ex:97 #: lib/block_scout_web/views/address_view.ex:97
msgid "Contract Address" msgid "Contract Address"
msgstr "" msgstr ""
@ -284,7 +284,7 @@ msgid "Contract Creation"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:19 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:23
msgid "Contract Name" msgid "Contract Name"
msgstr "" msgstr ""
@ -356,11 +356,6 @@ msgstr ""
msgid "ETH" msgid "ETH"
msgstr "" msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:57
msgid "Enter the Solidity Contract Code below"
msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address/_balance_card.html.eex:32 #: lib/block_scout_web/templates/address/_balance_card.html.eex:32
msgid "Error trying to fetch balances." msgid "Error trying to fetch balances."
@ -476,7 +471,7 @@ msgstr ""
#: lib/block_scout_web/templates/address_internal_transaction/index.html.eex:19 #: lib/block_scout_web/templates/address_internal_transaction/index.html.eex:19
#: lib/block_scout_web/templates/transaction/_tabs.html.eex:11 #: lib/block_scout_web/templates/transaction/_tabs.html.eex:11
#: lib/block_scout_web/templates/transaction_internal_transaction/index.html.eex:6 #: lib/block_scout_web/templates/transaction_internal_transaction/index.html.eex:6
#: lib/block_scout_web/views/address_view.ex:308 #: lib/block_scout_web/views/address_view.ex:306
#: lib/block_scout_web/views/transaction_view.ex:339 #: lib/block_scout_web/views/transaction_view.ex:339
msgid "Internal Transactions" msgid "Internal Transactions"
msgstr "" msgstr ""
@ -503,7 +498,7 @@ msgstr ""
#: lib/block_scout_web/templates/address_logs/index.html.eex:8 #: lib/block_scout_web/templates/address_logs/index.html.eex:8
#: lib/block_scout_web/templates/transaction/_tabs.html.eex:17 #: lib/block_scout_web/templates/transaction/_tabs.html.eex:17
#: lib/block_scout_web/templates/transaction_log/index.html.eex:8 #: lib/block_scout_web/templates/transaction_log/index.html.eex:8
#: lib/block_scout_web/views/address_view.ex:314 #: lib/block_scout_web/views/address_view.ex:312
#: lib/block_scout_web/views/transaction_view.ex:340 #: lib/block_scout_web/views/transaction_view.ex:340
msgid "Logs" msgid "Logs"
msgstr "" msgstr ""
@ -563,12 +558,7 @@ msgid "Name"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:5 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:61
msgid "New Smart Contract"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:40
msgid "No" msgid "No"
msgstr "" msgstr ""
@ -648,7 +638,7 @@ msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address/_tabs.html.eex:58 #: lib/block_scout_web/templates/address/_tabs.html.eex:58
#: lib/block_scout_web/templates/tokens/overview/_tabs.html.eex:25 #: lib/block_scout_web/templates/tokens/overview/_tabs.html.eex:25
#: lib/block_scout_web/views/address_view.ex:311 #: lib/block_scout_web/views/address_view.ex:309
#: lib/block_scout_web/views/tokens/overview_view.ex:37 #: lib/block_scout_web/views/tokens/overview_view.ex:37
msgid "Read Contract" msgid "Read Contract"
msgstr "" msgstr ""
@ -659,7 +649,7 @@ msgid "Request URL"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:133 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:244
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
@ -824,7 +814,7 @@ msgstr ""
#: lib/block_scout_web/templates/address/_tabs.html.eex:8 #: lib/block_scout_web/templates/address/_tabs.html.eex:8
#: lib/block_scout_web/templates/address_token/index.html.eex:8 #: lib/block_scout_web/templates/address_token/index.html.eex:8
#: lib/block_scout_web/templates/address_token_transfer/index.html.eex:9 #: lib/block_scout_web/templates/address_token_transfer/index.html.eex:9
#: lib/block_scout_web/views/address_view.ex:306 #: lib/block_scout_web/views/address_view.ex:304
msgid "Tokens" msgid "Tokens"
msgstr "" msgstr ""
@ -882,7 +872,7 @@ msgstr ""
#: lib/block_scout_web/templates/block_transaction/index.html.eex:18 #: lib/block_scout_web/templates/block_transaction/index.html.eex:18
#: lib/block_scout_web/templates/chain/show.html.eex:108 #: lib/block_scout_web/templates/chain/show.html.eex:108
#: lib/block_scout_web/templates/layout/_topnav.html.eex:35 #: lib/block_scout_web/templates/layout/_topnav.html.eex:35
#: lib/block_scout_web/views/address_view.ex:307 #: lib/block_scout_web/views/address_view.ex:305
msgid "Transactions" msgid "Transactions"
msgstr "" msgstr ""
@ -949,7 +939,7 @@ msgid "Verify & Publish"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:132 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:243
msgid "Verify & publish" msgid "Verify & publish"
msgstr "" msgstr ""
@ -999,7 +989,7 @@ msgid "Wei"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:45 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:66
msgid "Yes" msgid "Yes"
msgstr "" msgstr ""
@ -1072,7 +1062,7 @@ msgid "Loading..."
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:130 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:241
msgid "Loading...." msgid "Loading...."
msgstr "" msgstr ""
@ -1258,7 +1248,7 @@ msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address/_tabs.html.eex:20 #: lib/block_scout_web/templates/address/_tabs.html.eex:20
#: lib/block_scout_web/views/address_view.ex:312 #: lib/block_scout_web/views/address_view.ex:310
msgid "Coin Balance History" msgid "Coin Balance History"
msgstr "" msgstr ""
@ -1435,57 +1425,7 @@ msgid "Genesis Block"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:76 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:112
msgid "1 Library Address"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:71
msgid "1 Library Name"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:86
msgid "2 Library Address"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:81
msgid "2 Library Name"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:96
msgid "3 Library Address"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:91
msgid "3 Library Name"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:106
msgid "4 Library Address"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:101
msgid "4 Library Name"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:116
msgid "5 Library Address"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:111
msgid "5 Library Name"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:68
msgid "Contract Libraries" msgid "Contract Libraries"
msgstr "" msgstr ""
@ -1547,22 +1487,17 @@ msgid "Search by address, token symbol name, transaction hash, or block number"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:31 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:45
msgid "EVM Version" msgid "EVM Version"
msgstr "" msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:63
msgid "Enter constructor arguments if the contract had any"
msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_decompiled_contract/index.html.eex:16 #: lib/block_scout_web/templates/address_decompiled_contract/index.html.eex:16
msgid "Copy Decompiled Contract Code" msgid "Copy Decompiled Contract Code"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/views/address_view.ex:310 #: lib/block_scout_web/views/address_view.ex:308
msgid "Decompiled Code" msgid "Decompiled Code"
msgstr "" msgstr ""
@ -1582,7 +1517,7 @@ msgid "Decompiler version"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:52 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:77
msgid "Optimization runs" msgid "Optimization runs"
msgstr "" msgstr ""
@ -1726,3 +1661,36 @@ msgstr ""
#: lib/block_scout_web/templates/address_logs/index.html.eex:12 #: lib/block_scout_web/templates/address_logs/index.html.eex:12
msgid "Topic" msgid "Topic"
msgstr "" msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:98
msgid "ABI-encoded Constructor Arguments (if required by the contract)"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:87
msgid "Enter the Solidity Contract Code"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:127
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:149
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:171
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:193
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:215
msgid "Library Address"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:117
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:139
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:161
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:183
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:205
msgid "Library Name"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:3
msgid "New Smart Contract Verification"
msgstr ""

@ -190,12 +190,12 @@ msgstr ""
#: lib/block_scout_web/templates/address/_tabs.html.eex:32 #: lib/block_scout_web/templates/address/_tabs.html.eex:32
#: lib/block_scout_web/templates/address/overview.html.eex:95 #: lib/block_scout_web/templates/address/overview.html.eex:95
#: lib/block_scout_web/templates/address_validation/index.html.eex:13 #: lib/block_scout_web/templates/address_validation/index.html.eex:13
#: lib/block_scout_web/views/address_view.ex:313 #: lib/block_scout_web/views/address_view.ex:311
msgid "Blocks Validated" msgid "Blocks Validated"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:135 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:247
#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:47 #: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:47
msgid "Cancel" msgid "Cancel"
msgstr "" msgstr ""
@ -207,8 +207,8 @@ msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address/_validator_metadata_modal.html.eex:37 #: lib/block_scout_web/templates/address/_validator_metadata_modal.html.eex:37
#: lib/block_scout_web/templates/address/overview.html.eex:144 #: lib/block_scout_web/templates/address/overview.html.eex:142
#: lib/block_scout_web/templates/address/overview.html.eex:152 #: lib/block_scout_web/templates/address/overview.html.eex:150
#: lib/block_scout_web/templates/tokens/overview/_details.html.eex:106 #: lib/block_scout_web/templates/tokens/overview/_details.html.eex:106
#: lib/block_scout_web/templates/tokens/overview/_details.html.eex:114 #: lib/block_scout_web/templates/tokens/overview/_details.html.eex:114
msgid "Close" msgid "Close"
@ -218,12 +218,12 @@ msgstr ""
#: lib/block_scout_web/templates/address/_tabs.html.eex:42 #: lib/block_scout_web/templates/address/_tabs.html.eex:42
#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:165 #: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:165
#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:187 #: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:187
#: lib/block_scout_web/views/address_view.ex:309 #: lib/block_scout_web/views/address_view.ex:307
msgid "Code" msgid "Code"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:25 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:34
msgid "Compiler" msgid "Compiler"
msgstr "" msgstr ""
@ -261,7 +261,7 @@ msgid "Contract ABI"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:13 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:12
#: lib/block_scout_web/views/address_view.ex:97 #: lib/block_scout_web/views/address_view.ex:97
msgid "Contract Address" msgid "Contract Address"
msgstr "" msgstr ""
@ -284,7 +284,7 @@ msgid "Contract Creation"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:19 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:23
msgid "Contract Name" msgid "Contract Name"
msgstr "" msgstr ""
@ -356,11 +356,6 @@ msgstr ""
msgid "ETH" msgid "ETH"
msgstr "" msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:57
msgid "Enter the Solidity Contract Code below"
msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address/_balance_card.html.eex:32 #: lib/block_scout_web/templates/address/_balance_card.html.eex:32
msgid "Error trying to fetch balances." msgid "Error trying to fetch balances."
@ -476,7 +471,7 @@ msgstr ""
#: lib/block_scout_web/templates/address_internal_transaction/index.html.eex:19 #: lib/block_scout_web/templates/address_internal_transaction/index.html.eex:19
#: lib/block_scout_web/templates/transaction/_tabs.html.eex:11 #: lib/block_scout_web/templates/transaction/_tabs.html.eex:11
#: lib/block_scout_web/templates/transaction_internal_transaction/index.html.eex:6 #: lib/block_scout_web/templates/transaction_internal_transaction/index.html.eex:6
#: lib/block_scout_web/views/address_view.ex:308 #: lib/block_scout_web/views/address_view.ex:306
#: lib/block_scout_web/views/transaction_view.ex:339 #: lib/block_scout_web/views/transaction_view.ex:339
msgid "Internal Transactions" msgid "Internal Transactions"
msgstr "" msgstr ""
@ -503,7 +498,7 @@ msgstr ""
#: lib/block_scout_web/templates/address_logs/index.html.eex:8 #: lib/block_scout_web/templates/address_logs/index.html.eex:8
#: lib/block_scout_web/templates/transaction/_tabs.html.eex:17 #: lib/block_scout_web/templates/transaction/_tabs.html.eex:17
#: lib/block_scout_web/templates/transaction_log/index.html.eex:8 #: lib/block_scout_web/templates/transaction_log/index.html.eex:8
#: lib/block_scout_web/views/address_view.ex:314 #: lib/block_scout_web/views/address_view.ex:312
#: lib/block_scout_web/views/transaction_view.ex:340 #: lib/block_scout_web/views/transaction_view.ex:340
msgid "Logs" msgid "Logs"
msgstr "" msgstr ""
@ -563,12 +558,7 @@ msgid "Name"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:5 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:61
msgid "New Smart Contract"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:40
msgid "No" msgid "No"
msgstr "" msgstr ""
@ -634,7 +624,7 @@ msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address/overview.html.eex:33 #: lib/block_scout_web/templates/address/overview.html.eex:33
#: lib/block_scout_web/templates/address/overview.html.eex:143 #: lib/block_scout_web/templates/address/overview.html.eex:141
#: lib/block_scout_web/templates/tokens/overview/_details.html.eex:35 #: lib/block_scout_web/templates/tokens/overview/_details.html.eex:35
#: lib/block_scout_web/templates/tokens/overview/_details.html.eex:105 #: lib/block_scout_web/templates/tokens/overview/_details.html.eex:105
msgid "QR Code" msgid "QR Code"
@ -648,7 +638,7 @@ msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address/_tabs.html.eex:58 #: lib/block_scout_web/templates/address/_tabs.html.eex:58
#: lib/block_scout_web/templates/tokens/overview/_tabs.html.eex:25 #: lib/block_scout_web/templates/tokens/overview/_tabs.html.eex:25
#: lib/block_scout_web/views/address_view.ex:311 #: lib/block_scout_web/views/address_view.ex:309
#: lib/block_scout_web/views/tokens/overview_view.ex:37 #: lib/block_scout_web/views/tokens/overview_view.ex:37
msgid "Read Contract" msgid "Read Contract"
msgstr "" msgstr ""
@ -659,7 +649,7 @@ msgid "Request URL"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:133 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:244
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
@ -824,7 +814,7 @@ msgstr ""
#: lib/block_scout_web/templates/address/_tabs.html.eex:8 #: lib/block_scout_web/templates/address/_tabs.html.eex:8
#: lib/block_scout_web/templates/address_token/index.html.eex:8 #: lib/block_scout_web/templates/address_token/index.html.eex:8
#: lib/block_scout_web/templates/address_token_transfer/index.html.eex:9 #: lib/block_scout_web/templates/address_token_transfer/index.html.eex:9
#: lib/block_scout_web/views/address_view.ex:306 #: lib/block_scout_web/views/address_view.ex:304
msgid "Tokens" msgid "Tokens"
msgstr "" msgstr ""
@ -882,7 +872,7 @@ msgstr ""
#: lib/block_scout_web/templates/block_transaction/index.html.eex:18 #: lib/block_scout_web/templates/block_transaction/index.html.eex:18
#: lib/block_scout_web/templates/chain/show.html.eex:108 #: lib/block_scout_web/templates/chain/show.html.eex:108
#: lib/block_scout_web/templates/layout/_topnav.html.eex:35 #: lib/block_scout_web/templates/layout/_topnav.html.eex:35
#: lib/block_scout_web/views/address_view.ex:307 #: lib/block_scout_web/views/address_view.ex:305
msgid "Transactions" msgid "Transactions"
msgstr "" msgstr ""
@ -949,7 +939,7 @@ msgid "Verify & Publish"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:132 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:243
msgid "Verify & publish" msgid "Verify & publish"
msgstr "" msgstr ""
@ -999,7 +989,7 @@ msgid "Wei"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:45 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:66
msgid "Yes" msgid "Yes"
msgstr "" msgstr ""
@ -1072,7 +1062,7 @@ msgid "Loading..."
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:130 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:241
msgid "Loading...." msgid "Loading...."
msgstr "" msgstr ""
@ -1258,7 +1248,7 @@ msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address/_tabs.html.eex:20 #: lib/block_scout_web/templates/address/_tabs.html.eex:20
#: lib/block_scout_web/views/address_view.ex:312 #: lib/block_scout_web/views/address_view.ex:310
msgid "Coin Balance History" msgid "Coin Balance History"
msgstr "" msgstr ""
@ -1435,57 +1425,7 @@ msgid "Genesis Block"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:76 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:112
msgid "1 Library Address"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:71
msgid "1 Library Name"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:86
msgid "2 Library Address"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:81
msgid "2 Library Name"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:96
msgid "3 Library Address"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:91
msgid "3 Library Name"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:106
msgid "4 Library Address"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:101
msgid "4 Library Name"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:116
msgid "5 Library Address"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:111
msgid "5 Library Name"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:68
msgid "Contract Libraries" msgid "Contract Libraries"
msgstr "" msgstr ""
@ -1547,22 +1487,17 @@ msgid "Search by address, token symbol name, transaction hash, or block number"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:31 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:45
msgid "EVM Version" msgid "EVM Version"
msgstr "" msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:63
msgid "Enter constructor arguments if the contract had any"
msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_decompiled_contract/index.html.eex:16 #: lib/block_scout_web/templates/address_decompiled_contract/index.html.eex:16
msgid "Copy Decompiled Contract Code" msgid "Copy Decompiled Contract Code"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/views/address_view.ex:310 #: lib/block_scout_web/views/address_view.ex:308
msgid "Decompiled Code" msgid "Decompiled Code"
msgstr "" msgstr ""
@ -1582,7 +1517,7 @@ msgid "Decompiler version"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:52 #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:77
msgid "Optimization runs" msgid "Optimization runs"
msgstr "" msgstr ""
@ -1726,3 +1661,36 @@ msgstr ""
#: lib/block_scout_web/templates/address_logs/index.html.eex:12 #: lib/block_scout_web/templates/address_logs/index.html.eex:12
msgid "Topic" msgid "Topic"
msgstr "" msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:98
msgid "ABI-encoded Constructor Arguments (if required by the contract)"
msgstr ""
#, elixir-format, fuzzy
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:87
msgid "Enter the Solidity Contract Code"
msgstr ""
#, elixir-format, fuzzy
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:127
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:149
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:171
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:193
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:215
msgid "Library Address"
msgstr ""
#, elixir-format, fuzzy
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:117
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:139
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:161
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:183
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:205
msgid "Library Name"
msgstr ""
#, elixir-format, fuzzy
#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:3
msgid "New Smart Contract Verification"
msgstr ""

@ -23,7 +23,7 @@ defmodule BlockScoutWeb.AddressControllerTest do
test "returns an address's primary name when present", %{conn: conn} do test "returns an address's primary name when present", %{conn: conn} do
address = insert(:address, fetched_coin_balance: 1) address = insert(:address, fetched_coin_balance: 1)
address_name = insert(:address_name, address: address, primary: true, name: "POA Wallet") insert(:address_name, address: address, primary: true, name: "POA Wallet")
start_supervised!(AddressesWithBalanceCounter) start_supervised!(AddressesWithBalanceCounter)
AddressesWithBalanceCounter.consolidate() AddressesWithBalanceCounter.consolidate()

@ -1412,6 +1412,8 @@ defmodule BlockScoutWeb.API.RPC.AddressControllerTest do
"type" => "#{internal_transaction.type}", "type" => "#{internal_transaction.type}",
"gas" => "#{internal_transaction.gas}", "gas" => "#{internal_transaction.gas}",
"gasUsed" => "#{internal_transaction.gas_used}", "gasUsed" => "#{internal_transaction.gas_used}",
"index" => "#{internal_transaction.index}",
"transactionHash" => "#{transaction.hash}",
"isError" => "0", "isError" => "0",
"errCode" => "#{internal_transaction.error}" "errCode" => "#{internal_transaction.error}"
} }
@ -1559,6 +1561,8 @@ defmodule BlockScoutWeb.API.RPC.AddressControllerTest do
"gas" => "#{internal_transaction.gas}", "gas" => "#{internal_transaction.gas}",
"gasUsed" => "#{internal_transaction.gas_used}", "gasUsed" => "#{internal_transaction.gas_used}",
"isError" => "0", "isError" => "0",
"index" => "#{internal_transaction.index}",
"transactionHash" => "#{transaction.hash}",
"errCode" => "#{internal_transaction.error}" "errCode" => "#{internal_transaction.error}"
} }
] ]
@ -1767,6 +1771,7 @@ defmodule BlockScoutWeb.API.RPC.AddressControllerTest do
"gasPrice" => to_string(transaction.gas_price.value), "gasPrice" => to_string(transaction.gas_price.value),
"gasUsed" => to_string(transaction.gas_used), "gasUsed" => to_string(transaction.gas_used),
"cumulativeGasUsed" => to_string(transaction.cumulative_gas_used), "cumulativeGasUsed" => to_string(transaction.cumulative_gas_used),
"logIndex" => to_string(token_transfer.log_index),
"input" => to_string(transaction.input), "input" => to_string(transaction.input),
"confirmations" => "0" "confirmations" => "0"
} }

@ -1,7 +1,6 @@
defmodule BlockScoutWeb.BlockTransactionControllerTest do defmodule BlockScoutWeb.BlockTransactionControllerTest do
use BlockScoutWeb.ConnCase use BlockScoutWeb.ConnCase
alias Explorer.Chain.Block
import BlockScoutWeb.Router.Helpers, only: [block_transaction_path: 3] import BlockScoutWeb.Router.Helpers, only: [block_transaction_path: 3]
describe "GET index/2" do describe "GET index/2" do
@ -153,7 +152,7 @@ defmodule BlockScoutWeb.BlockTransactionControllerTest do
end end
test "next_page_path exists if not on last page", %{conn: conn} do test "next_page_path exists if not on last page", %{conn: conn} do
block = %Block{number: number} = insert(:block) block = insert(:block)
60 60
|> insert_list(:transaction) |> insert_list(:transaction)

@ -18,7 +18,7 @@ defmodule BlockScoutWeb.ContractVerifyPage do
}) do }) do
session session
|> fill_in(css("[data-test='contract_name']"), with: contract_name) |> fill_in(css("[data-test='contract_name']"), with: contract_name)
|> fill_in(text_field("Enter the Solidity Contract Code below"), with: source_code) |> fill_in(text_field("Enter the Solidity Contract Code"), with: source_code)
case version do case version do
nil -> nil nil -> nil

@ -56,6 +56,8 @@ defmodule Explorer.Etherscan do
@internal_transaction_fields ~w( @internal_transaction_fields ~w(
from_address_hash from_address_hash
to_address_hash to_address_hash
transaction_hash
index
value value
created_contract_address_hash created_contract_address_hash
input input
@ -348,7 +350,8 @@ defmodule Explorer.Etherscan do
token_name: tkn.name, token_name: tkn.name,
token_symbol: tkn.symbol, token_symbol: tkn.symbol,
token_decimals: tkn.decimals, token_decimals: tkn.decimals,
token_type: tkn.type token_type: tkn.type,
token_log_index: tt.log_index
}) })
) )

@ -631,6 +631,8 @@ defmodule Explorer.EtherscanTest do
value: internal_transaction.value, value: internal_transaction.value,
created_contract_address_hash: internal_transaction.created_contract_address_hash, created_contract_address_hash: internal_transaction.created_contract_address_hash,
input: internal_transaction.input, input: internal_transaction.input,
index: internal_transaction.index,
transaction_hash: internal_transaction.transaction_hash,
type: internal_transaction.type, type: internal_transaction.type,
gas: internal_transaction.gas, gas: internal_transaction.gas,
gas_used: internal_transaction.gas_used, gas_used: internal_transaction.gas_used,

Loading…
Cancel
Save