diff --git a/.github/workflows/gcp.yaml b/.github/workflows/gcp.yaml new file mode 100644 index 000000000..2269d0e00 --- /dev/null +++ b/.github/workflows/gcp.yaml @@ -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' diff --git a/src/assets/Moni.png b/src/assets/Moni.png new file mode 100644 index 000000000..d905b409a Binary files /dev/null and b/src/assets/Moni.png differ diff --git a/src/assets/doubletop.png b/src/assets/doubletop.png new file mode 100644 index 000000000..d6dde558a Binary files /dev/null and b/src/assets/doubletop.png differ diff --git a/src/assets/gumi.png b/src/assets/gumi.png new file mode 100644 index 000000000..81c7f77d5 Binary files /dev/null and b/src/assets/gumi.png differ diff --git a/src/assets/huginn.png b/src/assets/huginn.png new file mode 100644 index 000000000..7664b2192 Binary files /dev/null and b/src/assets/huginn.png differ diff --git a/src/assets/punq.png b/src/assets/punq.png new file mode 100644 index 000000000..431de1524 Binary files /dev/null and b/src/assets/punq.png differ diff --git a/src/buildList.js b/src/buildList.js index aba7868e1..8777b4bf8 100644 --- a/src/buildList.js +++ b/src/buildList.js @@ -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); }; diff --git a/src/validators/bartio/defaultValidatorList.json b/src/validators/bartio/defaultValidatorList.json index 8f32125c2..78bd94bc4 100644 --- a/src/validators/bartio/defaultValidatorList.json +++ b/src/validators/bartio/defaultValidatorList.json @@ -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", @@ -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" } ] } diff --git a/src/write.js b/src/write.js index 675de8700..e65761469 100644 --- a/src/write.js +++ b/src/write.js @@ -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();