Skip to content

Commit

Permalink
Latest fork of pingpub (#13)
Browse files Browse the repository at this point in the history
* save

* fixes
  • Loading branch information
cgilbe27 authored May 14, 2024
1 parent 14086b0 commit 75cd3e5
Show file tree
Hide file tree
Showing 99 changed files with 4,447 additions and 2,999 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# These are supported funding model platforms

# github: liangping
github: ping-pub
issuehunt: ping-pub # Replace with a single IssueHunt username

21 changes: 21 additions & 0 deletions .github/workflows/config-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

name: Config Checker

on:
# push:
# branches: [ master ]
pull_request:
# branches: [ master ]
paths:
- 'chains/mainnet/**'
- 'chains/testnet/**'

jobs:
deploy:
name: Check Blockchain Config
runs-on: ubuntu-latest
steps:
- name: Git Checkout Latest
uses: actions/checkout@v3
- name: Check Chain Configs
uses: ping-pub/[email protected]
57 changes: 38 additions & 19 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,51 @@
name: Build docker image
name: docker

on:
push:
tags:
- "*"
branches:
- 'master-backup'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to GitHub Container Registry
- name: Checkout
uses: actions/checkout@v2
# -
# name: Set up QEMU
# uses: docker/setup-qemu-action@v1
# -
# name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
- name: Install
run: yarn install
- name: Build
run: yarn run vue-cli-service build
- name: Login to DockerHub
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get version
id: get_version
uses: battila7/get-version-action@v2

username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
# list of Docker images to use as base name for tags
images: |
yaoling/wallet
# generate Docker tags based on the following events/attributes
tags: |
type=sha
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
platforms: linux/amd64
tags: ghcr.io/nibiruchain/explorer:latest,ghcr.io/nibiruchain/explorer:${{ steps.get_version.outputs.version-without-v }}
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
28 changes: 28 additions & 0 deletions .github/workflows/mainnet-deploy.yaml.disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

name: Deploy to ping.pub

on:
push:
branches: [ master2 ]
# pull_request:
# branches: [ master ]

jobs:
deploy:
name: Ping deploy
runs-on: mainnet
steps:
- name: Environment
run: export NODE_OPTIONS="--max_old_space_size=4096"

- name: Git Checkout Latest
uses: actions/checkout@v3

- name: Install
run: yarn install --ignore-engines

- name: Build
run: yarn build

- name: Deploy
run: cp -rf ./dist/* /var/www/html/
27 changes: 27 additions & 0 deletions .github/workflows/testnet-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

name: Testnet Deploy

on:
push:
branches: [ testnet ]
pull_request:
branches: [ testnet ]

jobs:
deploy:
name: Ping deploy
runs-on: testnet
steps:
- name: print
run: echo ${GITHUB_REF#refs/heads/}
- name: Git Checkout Latest
uses: actions/checkout@v2

- name: Install
run: yarn install

- name: Build
run: yarn run vue-cli-service build

- name: Deploy
run: cp -rf ./dist/* /var/www/html/
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,40 @@

![Ping Wallet](./public/logo.svg)

<h1>Ping Dashboard</h1>
<h1>Nibiru Explorer</h1>

**Ping Dashboard is not only an explorer but also a wallet and more ... 🛠**
**Nibiru Explorer is not only an explorer but also a wallet and more ... 🛠**

[![version](https://img.shields.io/github/tag/ping-pub/explorer.svg)](https://github.com/ping-pub/explorer/releases/latest)
[![GitHub](https://img.shields.io/github/license/ping-pub/explorer.svg)](https://github.com/ping-pub/explorer/blob/master/LICENSE)
[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/bukotsunikki.svg?style=social&label=Follow%20%40ping_pub)](https://twitter.com/ping_pub)
[![https://discord.gg/CmjYVSr6GW](https://img.shields.io/badge/discord-join-7289DA.svg?logo=discord&longCache=true&style=flat)](https://discord.gg/CmjYVSr6GW)


</div>

`Ping Dashboard` is a light explorer for Cosmos-based Blockchains. https://ping.pub .
`Nibiru Explorer` is a light explorer for Cosmos-based Blockchains. https://ping.pub .

## What sets Nibiru Explorer apart from other explorers?

## What sets Ping Dashboard apart from other explorers?
**Ping Dashboard** stands out by providing a real-time exploration of blockchain data without relying on caching or pre-processing. It exclusively fetches data from the Cosmos full node via LCD/RPC endpoints, ensuring a truly authentic experience. This approach is referred to as the "Light Explorer."
**Nibiru Explorer** stands out by providing a real-time exploration of blockchain data without relying on caching or pre-processing. It exclusively fetches data from the Cosmos full node via LCD/RPC endpoints, ensuring a truly authentic experience. This approach is referred to as the "Light Explorer."

## Are you interested in listing your blockchain on https://ping.pub?

To make this repository clean, please submit your request to https://github.com/ping-pub/ping.pub.git

## Why does Nibiru Explorer rely on official/trusted third-party public LCD/RPC servers?

## Why does Ping Dashboard rely on official/trusted third-party public LCD/RPC servers?
There are two primary reasons for this choice:

- Trust: In a decentralized system, it is crucial to avoid relying solely on a single entity. By utilizing official/trusted third-party public LCD/RPC servers, Ping Dashboard ensures that the data is sourced from a network of trusted participants.
- Limited Resources: As Ping Dashboard plans to list hundreds of Cosmos-based blockchains in the future, it is impractical for the Ping team to operate validators or full nodes for all of them. Leveraging trusted third-party servers allows for more efficient resource allocation.
- Trust: In a decentralized system, it is crucial to avoid relying solely on a single entity. By utilizing official/trusted third-party public LCD/RPC servers, Nibiru Explorer ensures that the data is sourced from a network of trusted participants.
- Limited Resources: As Nibiru Explorer plans to list hundreds of Cosmos-based blockchains in the future, it is impractical for the Ping team to operate validators or full nodes for all of them. Leveraging trusted third-party servers allows for more efficient resource allocation.

## Donation

Your donation will help us make better products. Thanks in advance.

- Address for ERC20: USDC, USDT, ETH
- Address for ERC20: USDC, USDT, ETH

```
0x88BFec573Dd3E4b7d2E6BfD4D0D6B11F843F8aa1
```
Expand All @@ -49,8 +50,6 @@ Your donation will help us make better products. Thanks in advance.

You can hire us by submiting an issue and fund the issue on [IssueHunter](https://issuehunt.io/r/ping-pub/explorer)


## Contributors

Developers: @liangping @dingyiming

54 changes: 0 additions & 54 deletions chains/mainnet/cosmos.json

This file was deleted.

31 changes: 31 additions & 0 deletions chains/mainnet/nibiru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"chain_name": "nibiru",
"registry_name": "cataclysm-1",
"api": [
{
"address": "https://lcd.nibiru.fi",
"provider": "Nibiru Foundation"
}
],
"rpc": [
{
"address": "https://rpc.nibiru.fi",
"provider": "Nibiru Foundation"
}
],
"sdk_version": "0.45.5",
"coin_type": "118",
"min_tx_fee": "2500",
"addr_prefix": "nibi",
"logo": "/logos/nibiru.png",
"theme_color": "#F294C0",
"assets": [
{
"base": "unibi",
"symbol": "NIBI",
"exponent": "6",
"coingecko_id": "nibiru",
"logo": "/logos/nibiru.png"
}
]
}
31 changes: 31 additions & 0 deletions chains/mainnet/nibirudevnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"chain_name": "nibirudevnet",
"registry_name": "nibiru-devnet1",
"api": [
{
"address": "https://lcd.devnet-1.nibiru.fi",
"provider": "Nibiru Foundation"
}
],
"rpc": [
{
"address": "https://rpc.devnet-1.nibiru.fi",
"provider": "Nibiru Foundation"
}
],
"sdk_version": "0.45.5",
"coin_type": "118",
"min_tx_fee": "2500",
"addr_prefix": "nibi",
"logo": "/logos/nibiru.png",
"theme_color": "#F294C0",
"assets": [
{
"base": "unibi",
"symbol": "NIBI",
"exponent": "6",
"coingecko_id": "nibiru",
"logo": "/logos/nibiru.png"
}
]
}
31 changes: 31 additions & 0 deletions chains/mainnet/nibirudevnet2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"chain_name": "nibirudevnet2",
"registry_name": "nibiru-devnet2",
"api": [
{
"address": "https://lcd.devnet-2.nibiru.fi",
"provider": "Nibiru Foundation"
}
],
"rpc": [
{
"address": "https://rpc.devnet-2.nibiru.fi",
"provider": "Nibiru Foundation"
}
],
"sdk_version": "0.45.5",
"coin_type": "118",
"min_tx_fee": "2500",
"addr_prefix": "nibi",
"logo": "/logos/nibiru.png",
"theme_color": "#F294C0",
"assets": [
{
"base": "unibi",
"symbol": "NIBI",
"exponent": "6",
"coingecko_id": "nibiru",
"logo": "/logos/nibiru.png"
}
]
}
Loading

0 comments on commit 75cd3e5

Please sign in to comment.