Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions mainnet/0x012f6f8ded4e1f977953cd8dbfff31ebb902549c.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"moniker": "Somnia-2",
"details": "The Dream Computer For A Fully Onchain World",
"profile": "./images/0x012f6f8ded4e1f977953cd8dbfff31ebb902549c.png",
"background": "./background/0x012f6f8ded4e1f977953cd8dbfff31ebb902549c.png",
"contact": {
"email": "developers@somnia.network",
"website": "https://somnia.network"
}
}
10 changes: 10 additions & 0 deletions mainnet/0x1ea1c5d797efcc4a1113564da5aa5efa6807a37d.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"moniker": "Somnia-1",
"details": "The Dream Computer For A Fully Onchain World",
"profile": "./images/0x1ea1c5d797efcc4a1113564da5aa5efa6807a37d.png",
"background": "./background/0x1ea1c5d797efcc4a1113564da5aa5efa6807a37d.png",
"contact": {
"email": "developers@somnia.network",
"website": "https://somnia.network"
}
}
10 changes: 10 additions & 0 deletions mainnet/0x48d3731aee37b8ca88d2165aa9593f3d030b7ed8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"moniker": "Somnia-3",
"details": "The Dream Computer For A Fully Onchain World",
"profile": "./images/0x48d3731aee37b8ca88d2165aa9593f3d030b7ed8.png",
"background": "./background/0x48d3731aee37b8ca88d2165aa9593f3d030b7ed8.png",
"contact": {
"email": "developers@somnia.network",
"website": "https://somnia.network"
}
}
10 changes: 10 additions & 0 deletions mainnet/0xcf510e6d1138e5d2867eecb05479b430042e3b2a.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"moniker": "Somnia-Ecosystem-0",
"details": "The Dream Computer For A Fully Onchain World",
"profile": "./images/0xcf510e6d1138e5d2867eecb05479b430042e3b2a.png",
"background": "./background/0xcf510e6d1138e5d2867eecb05479b430042e3b2a.png",
"contact": {
"email": "developers@somnia.network",
"website": "https://somnia.network"
}
}
10 changes: 10 additions & 0 deletions mainnet/0xda7615e8d08847d1627183c04d44f2d2517e2cd9.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"moniker": "Somnia-Ecosystem-1",
"details": "The Dream Computer For A Fully Onchain World",
"profile": "./images/0xda7615e8d08847d1627183c04d44f2d2517e2cd9.png",
"background": "./background/0xda7615e8d08847d1627183c04d44f2d2517e2cd9.png",
"contact": {
"email": "developers@somnia.network",
"website": "https://somnia.network"
}
}
10 changes: 10 additions & 0 deletions mainnet/0xe614f4872c9181ce35a8fcd6cb743bab1c2a7f8e copy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"moniker": "Somnia-0",
"details": "The Dream Computer For A Fully Onchain World",
"profile": "./images/0xe614f4872c9181ce35a8fcd6cb743bab1c2a7f8e.png",
"background": "./background/0xe614f4872c9181ce35a8fcd6cb743bab1c2a7f8e.png",
"contact": {
"email": "developers@somnia.network",
"website": "https://somnia.network"
}
}
10 changes: 10 additions & 0 deletions mainnet/0xf71cc14574404100fec4c0ac5bb6bb606601c8bd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"moniker": "Somnia-Ecosystem-2",
"details": "The Dream Computer For A Fully Onchain World",
"profile": "./images/0xf71cc14574404100fec4c0ac5bb6bb606601c8bd.png",
"background": "./background/0xf71cc14574404100fec4c0ac5bb6bb606601c8bd.png",
"contact": {
"email": "developers@somnia.network",
"website": "https://somnia.network"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 mainnet/background/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 mainnet/images/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions mainnet/somnia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"moniker": "Somnia-0",
"details": "The Dream Computer For A Fully Onchain World",
"profile": "./images/0xe614f4872c9181ce35a8fcd6cb743bab1c2a7f8e.png",
"background": "./background/0xe614f4872c9181ce35a8fcd6cb743bab1c2a7f8e.png",
"contact": {
"email": "developers@somnia.network",
"website": "https://somnia.network"
}
}
100 changes: 100 additions & 0 deletions rename-to-lowercase.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
const fs = require('fs');
const path = require('path');

function renameToLowercase() {
const directories = ['testnet', 'mainnet'];
let renamedCount = 0;

console.log('========================================');
console.log(' Renaming Files to Lowercase');
console.log('========================================\n');

directories.forEach(dir => {
const dirPath = path.join(__dirname, dir);

if (!fs.existsSync(dirPath)) {
console.log(`Directory ${dir} not found, skipping...\n`);
return;
}

console.log(`📁 Processing directory: ${dir}`);
console.log('----------------------------------------');

// Process JSON files
const jsonFiles = fs.readdirSync(dirPath)
.filter(file => file.endsWith('.json') && file !== 'validator-template.json');

jsonFiles.forEach(file => {
const lowerCaseFile = file.toLowerCase();
if (file !== lowerCaseFile) {
const oldPath = path.join(dirPath, file);
const newPath = path.join(dirPath, lowerCaseFile);

try {
fs.renameSync(oldPath, newPath);
console.log(` ✅ Renamed: ${file} → ${lowerCaseFile}`);
renamedCount++;
} catch (error) {
console.log(` ❌ Failed to rename ${file}: ${error.message}`);
}
} else {
console.log(` ⏭️ Already lowercase: ${file}`);
}
});

// Process subdirectories (images, background)
const subdirs = ['images', 'background'];
subdirs.forEach(subdir => {
const subdirPath = path.join(dirPath, subdir);
if (fs.existsSync(subdirPath)) {
console.log(`\n 📂 Processing ${subdir}/ subdirectory:`);

const imageFiles = fs.readdirSync(subdirPath);
imageFiles.forEach(file => {
const lowerCaseFile = file.toLowerCase();
if (file !== lowerCaseFile) {
const oldPath = path.join(subdirPath, file);
const newPath = path.join(subdirPath, lowerCaseFile);

try {
fs.renameSync(oldPath, newPath);
console.log(` ✅ Renamed: ${file} → ${lowerCaseFile}`);
renamedCount++;
} catch (error) {
console.log(` ❌ Failed to rename ${file}: ${error.message}`);
}
} else {
console.log(` ⏭️ Already lowercase: ${file}`);
}
});
}
});

console.log('');
});

console.log('========================================');
console.log(`🎉 COMPLETE: Renamed ${renamedCount} files to lowercase`);
console.log('========================================\n');
}

// CLI argument handling
if (require.main === module) {
const args = process.argv.slice(2);

if (args.length > 0 && (args[0] === '--help' || args[0] === '-h')) {
console.log('Usage: node rename-to-lowercase.js [options]');
console.log('\nOptions:');
console.log(' --help, -h Show this help message');
console.log('\nThis script renames all files in testnet/ and mainnet/ directories to lowercase.');
console.log('It processes:');
console.log(' - JSON files in testnet/ and mainnet/');
console.log(' - Image files in images/ and background/ subdirectories');
console.log(' - Skips validator-template.json');
process.exit(0);
}

renameToLowercase();
}

module.exports = { renameToLowercase };