Skip to content

Commit

Permalink
add algorand network mono
Browse files Browse the repository at this point in the history
  • Loading branch information
0xa3k5 committed Apr 15, 2024
1 parent a581a51 commit 2af3197
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ dist
.turbo
.vercel
.next/
.fleet
.vscode
out/
.DS_Store
*.d.ts
Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/raw-svgs/networks/mono/algorand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions packages/utils/src/scripts/update-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import prettier from 'prettier'
import { INetworkMetadata, ITokenMetadata } from '../types'
import getCoinByID from './gecko/get-coin-by-id'

const normalizeName = (name: string): string => {
const normalizeName =
(name: string): string => {
return name
.toLowerCase()
.replace(/[^a-z0-9]+/g, '-')
Expand Down Expand Up @@ -152,14 +153,14 @@ const main = async () => {
return
}

files[0]?.split(',').forEach(async (filePath) => {
files[0]?.split(',').map(async (filePath) => {
const type = filePath.includes('/tokens/') ? 'token' : 'network'
processSVGFile(filePath, type)
await processSVGFile(filePath, type)
})
}

try {
main()
await main()
} catch (error) {
console.error('Failed to update metadata:', error)
process.exit(1)
Expand Down

0 comments on commit 2af3197

Please sign in to comment.