Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
Merge branch 'bsc_base'
Browse files Browse the repository at this point in the history
  • Loading branch information
FitzLu committed May 21, 2020
2 parents f9be788 + 0cc79a0 commit 9c31fe7
Show file tree
Hide file tree
Showing 57 changed files with 733 additions and 646 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ screenshots/

# mix phx.gen.cert self-signed certs for dev
/apps/block_scout_web/priv/cert

# vscode and extensions
.vscode/
.elixir_ls/
52 changes: 5 additions & 47 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,59 +1,17 @@
<p align="center">
<a href="https://blockscout.com">
<img width="200" src="https://blockscout.com/poa/core/android-chrome-192x192.png" \>
</a>
</p>
# Explorer for Binance Smart Chain
This is a project fork from [Blockscout](https://github.com/poanetwork/blockscout). Use for [Binance Smart Chain Rialto Network](https://explorer.binance.org/smart-testnet).

<h1 align="center">BlockScout</h1>
<p align="center">Blockchain Explorer for inspecting and analyzing EVM Chains.</p>
<div align="center">

[![CircleCI](https://circleci.com/gh/poanetwork/blockscout.svg?style=svg&circle-token=f8823a3d0090407c11f87028c73015a331dbf604)](https://circleci.com/gh/poanetwork/blockscout) [![Coverage Status](https://coveralls.io/repos/github/poanetwork/blockscout/badge.svg?branch=master)](https://coveralls.io/github/poanetwork/blockscout?branch=master) [![Join the chat at https://gitter.im/poanetwork/blockscout](https://badges.gitter.im/poanetwork/blockscout.svg)](https://gitter.im/poanetwork/blockscout?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

</div>

BlockScout provides a comprehensive, easy-to-use interface for users to view, confirm, and inspect transactions on EVM (Ethereum Virtual Machine) blockchains. This includes the POA Network, xDai Chain, Ethereum Classic and other **Ethereum testnets, private networks and sidechains**.

See our [project documentation](https://docs.blockscout.com/) for detailed information and setup instructions.

Visit the [POA BlockScout forum](https://forum.poa.network/c/blockscout) for FAQs, troubleshooting, and other BlockScout related items. You can also post and answer questions here.

You can also access the dev chatroom on our [Gitter Channel](https://gitter.im/poanetwork/blockscout).
## Disclaimer
**The software and related documentation are under active development, all subjected to potential future change without notification and not ready for production use. The code and security audit have not been fully completed and not ready for any bug bounty.**

## About BlockScout

BlockScout is an Elixir application that allows users to search transactions, view accounts and balances, and verify smart contracts on the Ethereum network including all forks and sidechains.

Currently available full-featured block explorers (Etherscan, Etherchain, Blockchair) are closed systems which are not independently verifiable. As Ethereum sidechains continue to proliferate in both private and public settings, transparent, open-source tools are needed to analyze and validate transactions.

## Supported Projects

BlockScout supports a number of projects. Hosted instances include POA Network, xDai Chain, Ethereum Classic, Sokol & Kovan testnets, and other EVM chains.

- [List of hosted mainnets, testnets, and additional chains using BlockScout](https://docs.blockscout.com/for-projects/supported-projects)
- [Hosted instance versions](https://docs.blockscout.com/about/use-cases/hosted-blockscout)


## Getting Started

See the [project documentation](https://docs.blockscout.com/) for instructions:
- [Requirements](https://docs.blockscout.com/for-developers/information-and-settings/requirements)
- [Ansible deployment](https://docs.blockscout.com/for-developers/ansible-deployment)
- [Manual deployment](https://docs.blockscout.com/for-developers/manual-deployment)
- [ENV variables](https://docs.blockscout.com/for-developers/information-and-settings/env-variables)
- [Configuration options](https://docs.blockscout.com/for-developers/configuration-options)


## Acknowledgements

We would like to thank the [EthPrize foundation](http://ethprize.io/) for their funding support.

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution and pull request protocol. We expect contributors to follow our [code of conduct](CODE_OF_CONDUCT.md) when submitting code or comments.

## License

[![License: GPL v3.0](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)

This project is licensed under the GNU General Public License v3.0. See the [LICENSE](LICENSE) file for details.
This project is licensed under the GNU General Public License v3.0. See the [LICENSE](LICENSE) file for details.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// bsc
$primary: #FBDA3C;
$dark-primary: #F0B90B !default;
$dark-primary-alternate: #F0B90B !default;
$secondary: #FBDA3C;
$tertiary: #93d7ff;
$additional-font: #fff;
$header-background-color: #13161A;
$dashboard-banner-network-plain-container-background-color: #fff;
$dashboard-stats-item-label-color: #000;
$dashboard-stats-item-value-color: #000;
$header-links-color-active:$primary;

// button border and font color && hover bg color
$btn-line-color: $primary;
78 changes: 78 additions & 0 deletions apps/block_scout_web/assets/css/theme/_bsc_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
// bsc
$primary: #FBDA3C;
$dark-primary: #F0B90B !default;
$dark-primary-alternate: #F0B90B !default;
$secondary: #FBDA3C;
$tertiary: #93d7ff;
$additional-font: #fff;
$header-background-color: #13161A;
$dashboard-banner-network-plain-container-background-color: #fff;
$dashboard-stats-item-label-color: #000;
$dashboard-stats-item-value-color: #000;
$header-links-color-active:$primary;

// footer
$footer-background-color: #1C1E22;
$footer-title-color: #fff;
$footer-text-color: rgba(255, 255, 255, 0.6);
$footer-item-disc-color: $secondary;
.footer-logo { filter: brightness(0) invert(1); }

// dashboard
$dashboard-line-color-price: $tertiary; // price left border

$dashboard-banner-chart-legend-label-color: #dcc8ff;
$dashboard-banner-chart-legend-value-color: #fff; // chart labels

$dashboard-stats-item-border-color: $secondary; // stat border

$dashboard-banner-gradient-start: $primary; // gradient begin

$dashboard-banner-gradient-end: lighten($primary, 5); // gradient end


// navigation
.navbar { box-shadow: 0px 0px 30px 0px rgba(21, 53, 80, 0.12); } // header shadow
$dropdown-menu-item-hover-color: $primary !default;
$dropdown-menu-item-hover-background: rgba($primary, .1) !default;
$header-icon-color-hover: $primary;
$header-icon-border-color-hover: $primary;

// buttons
$btn-line-bg: #fff; // button bg
$btn-line-color: $primary; // button border and font color && hover bg color
$btn-copy-color: $primary; // btn copy
$btn-qr-color: $primary; // btn qr-code
$btn-address-card-icon-color: $primary; // btn address color

//links & tile
$tile-body-a-color: $primary;
$tile-type-block-color: $primary;
$tile-type-progress-bar-color: $primary;
a.tile-title { color: $primary !important; }

// card
$card-background-1: $primary;
$card-tab-active: $primary;

.layout-container {
.dashboard-banner-container {
background-image: linear-gradient(
to bottom,
$dashboard-banner-gradient-start,
$dashboard-banner-gradient-end
);
}
}

// Badges
$badge-neutral-color: $primary;
$badge-neutral-background-color: rgba($primary, .1);
$api-text-monospace-color: $primary;

// Tokens dropdown
.token-balance-dropdown[aria-labelledby="dropdown-tokens"] {
.dropdown-items .dropdown-item:hover {
color: $primary !important;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import "theme/base_variables";
@import "neutral_variables-non-critical";
@import "bsc_variables-non-critical";
// @import "neutral_variables-non-critical";
// @import "xusdt_variables-non-critical";
// @import "dai_variables-non-critical";
// @import "ethereum_classic_variables-non-critical";
Expand All @@ -21,4 +22,4 @@
// @import "tobalaba_variables-non-critical";
// @import "tomochain_variables-non-critical";
// @import "rsk_variables-non-critical";
// @import "ethercore_variables-non-critical";
// @import "ethercore_variables-non-critical";
4 changes: 2 additions & 2 deletions apps/block_scout_web/assets/css/theme/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import "theme/base_variables";
@import "neutral_variables";
@import "bsc_variables";
// @import "neutral_variables";
// @import "xusdt_variables";
// @import "dai_variables";
// @import "ethereum_classic_variables";
Expand All @@ -22,7 +23,6 @@
// @import "tomochain_variables";
// @import "rsk_variables";
// @import "ethercore_variables";

// responsive breakpoints
$breakpoint-xs: 320px;
$breakpoint-sm: 480px;
Expand Down
Binary file modified apps/block_scout_web/assets/static/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/block_scout_web/assets/static/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/block_scout_web/assets/static/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9c31fe7

Please sign in to comment.