Skip to content

Commit

Permalink
Merge branch 'main' into bwarelabs
Browse files Browse the repository at this point in the history
  • Loading branch information
corduroybera committed Jun 14, 2024
2 parents 1f106f5 + d181038 commit 3572293
Show file tree
Hide file tree
Showing 9 changed files with 84 additions and 14 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/gcp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to GCP cloud storage

on:
push:
branches:
- main
jobs:
job_id:
runs-on: ubuntu-latest

permissions:
contents: 'read'
id-token: 'write'

steps:
- id: 'checkout'
uses: 'actions/checkout@v4'

- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
project_id: '650636884597'
workload_identity_provider: 'projects/650636884597/locations/global/workloadIdentityPools/oidc-testnet-svc-01-pool/providers/gh-ci-oidc-provider'
service_account: 'github-action@prj-berachain-testnet-svc-01.iam.gserviceaccount.com'

- id: 'upload-folder'
uses: 'google-github-actions/upload-cloud-storage@v2'
with:
path: 'src/'
destination: 'bera-static-asset'
Binary file added src/assets/Moni.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 added src/assets/doubletop.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 added src/assets/gumi.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 added src/assets/huginn.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 added src/assets/punq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 6 additions & 7 deletions src/buildList.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ module.exports = function buildList() {
// logoURI: "ipfs://QmNa8mQkrNKp1WEEeGjFezDmDeodkWRevGFN8JCV7b4Xir",
logoURI: "", // TODO: Add IPFS Logo
keywords: ["berachain", "default"],
tokens: [...testnet, ...devnet]
tokens: [...testnet, ...devnet].sort((t1, t2) => {
// sort them by symbol for easy readability
.sort((t1, t2) => {
if (t1.chainId === t2.chainId) {
return t1.symbol.toLowerCase() < t2.symbol.toLowerCase() ? -1 : 1;
}
return t1.chainId < t2.chainId ? -1 : 1;
}),
if (t1.chainId === t2.chainId) {
return t1.symbol.localeCompare(t2.symbol);
}
return t1.chainId - t2.chainId;
}),
};
return bridgeUtils.chainify(l1List);
};
44 changes: 38 additions & 6 deletions src/validators/bartio/defaultValidatorList.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
"website": "https://bwarelabs.com/",
"twitter": "https://x.com/bwarelabs"
},
{
"id": "0xe868bE65C50b61E81A3fC5cB5A7916090B05eb2A",
"logoURI": "https://res.cloudinary.com/duv0g402y/raw/upload/src/assets/doubletop.png",
"name": "DOUBLETOP",
"description": "Your trusted security non-custodial validator. DOUBLETOP is Ukrainian crypto-oriented holding.",
"website": "https://doubletop.io/",
"twitter": "https://x.com/doubletop_io"
},
{
"id": "0x7e8d2356240A1F0e249e628b6964C6227a11d945",
"logoURI": "https://raw.githubusercontent.com/winniewdd/winniewdd/main/Ebunker-logo/ebunker-logo.png",
Expand Down Expand Up @@ -760,12 +768,36 @@
"twitter": "https://twitter.com/RealBlockPI"
},
{
"id": "0x99fC13a5b46491D84494165FFaa540fFE7AB78D1",
"logoURI": "https://raw.githubusercontent.com/Contribution-DAO/contributiondao/main/brand-assets/cdao_logo_128x128.png",
"name": "ContributionDAO",
"description": "Secure Network With Institutional Grade Solution",
"website": "https://contributiondao.com",
"twitter": "https://x.com/contributedao"
"id": "0xb38eefa932aea6468aebf42320163c497104b0bd",
"logoURI": "https://res.cloudinary.com/duv0g402y/raw/upload/src/assets/Moni.png",
"name": "Moni",
"description": "Your good neighbourhood validator by Moni. Moni is an ecosystem of analytical tools and a community of researchers, investors, and degens.",
"website": "https://getmoni.io/",
"twitter": "https://x.com/getmoni_io"
},
{
"id": "0x71c6F418E2f91539409018489413dFb88A770BCa",
"logoURI": "https://raw.githubusercontent.com/Huginntech/default-lists/main/src/assets/huginn.png",
"name": "Huginn",
"description": "Professional staking service. 7/24 monitoring and best uptime. Huginn is an organization that aims to teach its community about Cosmos SDK and Blockchain.",
"website": "https://huginn.tech/",
"twitter": "https://x.com/HuginnStake"
},
{
"id": "0x35DaAEB5B592d963D6B3b5f2f7EB71e259C96f98",
"logoURI": "https://res.cloudinary.com/duv0g402y/raw/upload/src/assets/gumi.png",
"name": "gumi",
"description": "One of the largest Japanese game publisher.As pioneers in the creation of entertainment using new technologies, gumi will continue to deliver surprises and excitement to the world.Creating a new business ecosystem through decentralization and capitalization of digital data.",
"website": "https://gu3.co.jp/en/blockchain/",
"twitter": "https://x.com/gumi_oshi3_en"
},
{
"id": "0x75F7af8D2A35de0395ee126FFd74970d10484e5C",
"logoURI": "https://raw.githubusercontent.com/empatim/default-lists/main/src/assets/punq.png",
"name": "punq",
"description": "Lets Rock - 7/24 non-stop staking services and solutions",
"website": "https://www.punq.info/",
"twitter": "https://twitter.com/punq1t"
}
]
}
11 changes: 10 additions & 1 deletion src/write.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
const buildList = require("./buildList");

buildList().then((data) => console.log(JSON.stringify(data, null, 2)));
async function fetchDataAndLog() {
try {
const data = await buildList();
console.log(JSON.stringify(data, null, 2));
} catch (error) {
console.error("Failed to build list:", error);
}
}

fetchDataAndLog();

0 comments on commit 3572293

Please sign in to comment.