diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fe4ef7..9e4b376 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## Manifest Version 1.4.12 + +- added more checks to release script +- added network icons and templates for the following networks: World Chain, Linea, Scroll + ## Manifest Version 1.4.11 - bumped all dependencies to the latest versions diff --git a/CI/index.ts b/CI/index.ts index 062df0e..74d6394 100644 --- a/CI/index.ts +++ b/CI/index.ts @@ -73,10 +73,9 @@ const main = async () => { platforms: ['twitter', 'threads', 'bsky', 'lens'] }) } - const fcPost = await fchubUtils.createFarcasterPost({ + const fcPostHash = await fchubUtils.createFarcasterPost({ content: message, }) - const fcPostHash = Buffer.from(fcPost).toString('hex'); if (fcPostHash) { await new Promise((resolve) => setTimeout(resolve, 3000)); const launchCasterMessage = `@launch New Clear Wallet version ${VERSION} released! \n\nChanges: ${changeLogUrl}` diff --git a/public/assets/chain-icons/linea.webp b/public/assets/chain-icons/linea.webp new file mode 100644 index 0000000..7ebb609 Binary files /dev/null and b/public/assets/chain-icons/linea.webp differ diff --git a/public/assets/chain-icons/linea_t.webp b/public/assets/chain-icons/linea_t.webp new file mode 100644 index 0000000..07d180f Binary files /dev/null and b/public/assets/chain-icons/linea_t.webp differ diff --git a/public/assets/chain-icons/scroll.webp b/public/assets/chain-icons/scroll.webp new file mode 100644 index 0000000..09eac68 Binary files /dev/null and b/public/assets/chain-icons/scroll.webp differ diff --git a/public/assets/chain-icons/scroll_t.webp b/public/assets/chain-icons/scroll_t.webp new file mode 100644 index 0000000..9b8ee92 Binary files /dev/null and b/public/assets/chain-icons/scroll_t.webp differ diff --git a/public/assets/chain-icons/world.webp b/public/assets/chain-icons/world.webp new file mode 100644 index 0000000..eb423f9 Binary files /dev/null and b/public/assets/chain-icons/world.webp differ diff --git a/public/assets/chain-icons/world_t.webp b/public/assets/chain-icons/world_t.webp new file mode 100644 index 0000000..dbb6555 Binary files /dev/null and b/public/assets/chain-icons/world_t.webp differ diff --git a/release-scripts/version-release.ts b/release-scripts/version-release.ts index 4fac62b..307295e 100644 --- a/release-scripts/version-release.ts +++ b/release-scripts/version-release.ts @@ -3,6 +3,14 @@ import { readFileSync, writeFileSync } from 'fs'; import { resolve } from 'path'; async function main() { + + // -1. Check if you are in the main branch + const branch = execSync(`git branch --show-current`).toString(); + if (branch !== 'main') { + console.log('You must be in the main branch to create a release'); + return + } + // 0. Check tag is not already created const tags = execSync(`git tag --list`).toString(); if(!process.env.npm_package_version) { diff --git a/src/utils/networks.ts b/src/utils/networks.ts index d679718..f0d0909 100644 --- a/src/utils/networks.ts +++ b/src/utils/networks.ts @@ -56,6 +56,15 @@ export const mainNets: {[key: number]: Network} = { symbol: 'BNB', priceId: 'binancecoin' }, + 480: { + name: 'World Chain', + rpc: 'https://worldchain-mainnet.g.alchemy.com/public', + chainId: 480, + explorer: 'https://worldscan.org', + icon: 'world.webp', + symbol: 'ETH', + priceId: 'ethereum' + }, 42161: { name: 'Arbitrum One', rpc: 'https://rpc.ankr.com/arbitrum', @@ -77,12 +86,21 @@ export const mainNets: {[key: number]: Network} = { 7560 : { name: 'Cyber', rpc: 'https://rpc.cyber.co', - chainId: 7560 , + chainId: 7560, explorer: 'https://cyberscan.co', icon: 'cyber.webp', symbol: 'ETH', priceId: 'ethereum' }, + 59144: { + name: 'Linea', + rpc: 'https://rpc.linea.build', + chainId: 59144, + explorer: 'https://lineascan.build', + icon: 'linea.webp', + symbol: 'ETH', + priceId: 'ethereum' + }, 666666666: { name: 'Degen', rpc: 'https://rpc.degen.tips', @@ -100,6 +118,15 @@ export const mainNets: {[key: number]: Network} = { icon: 'celo.webp', symbol: 'CELO', priceId: 'celo' + }, + 534351: { + name: 'Scroll', + rpc: 'https://rpc.scroll.io/', + chainId: 534351, + explorer: 'https://scrollscan.com', + icon: 'scroll.webp', + symbol: 'ETH', + priceId: 'ethereum' } } @@ -175,13 +202,37 @@ export const testNets = { explorer: 'https://testnet.cyberscan.co/', icon: 'cyber_t.webp' }, - 42220: { - name: 'Celo Mainenet', - rpc: 'https://forno.celo.org', - chainId: 42220, - explorer: 'https://celoscan.io/', - icon: 'celo.webp', + 44787: { + name: 'Celo TestNet', + rpc: 'https://alfajores-forno.celo-testnet.org', + chainId: 44787, + explorer: 'https://alfajores.celoscan.io/', + icon: 'celo_t.webp', symbol: 'CELO', + }, + 59141: { + name: 'Linea Sepolia', + rpc: 'https://rpc.sepolia.linea.build', + chainId: 59141, + explorer: 'https://sepolia.lineascan.build/', + icon: 'linea_t.webp', + symbol: 'ETH' + }, + 4801: { + name: 'World Chain', + rpc: 'https://worldchain-sepolia.g.alchemy.com/public', + chainId: 4801, + explorer: 'https://worldchain-sepolia.explorer.alchemy.com', + icon: 'world_t.webp', + symbol: 'ETH', + }, + 534351: { + name: 'Scroll Sepolia', + rpc: 'https://sepolia-rpc.scroll.io/', + chainId: 534351, + explorer: 'https://sepolia.scrollscan.com', + icon: 'scroll_t.webp', + symbol: 'ETH' } }