Skip to content

Instantly share code, notes, and snippets.

@ryandotsmith
Last active December 14, 2024 05:39
Show Gist options
  • Save ryandotsmith/716732e072bcafdf5eef3a34a7254ea9 to your computer and use it in GitHub Desktop.
Save ryandotsmith/716732e072bcafdf5eef3a34a7254ea9 to your computer and use it in GitHub Desktop.
bun run index.ts
[
{
tokens: [
[ 0n, "Life, The Universe, and Everything", "scenes/0.jpg", "[{\"kind\":\"title\",\"value\":\"Life, The Universe, and Everything\"},{\"kind\":\"type\",\"value\":\"Land\"},{\"kind\":\"class\",\"value\":\"Omnipresent\"},{\"kind\":\"description\",\"value\":\"The answer to the Ultimate Question, though the Question itself remains unknown. Calculated by Deep Thought over 7.5 million years. Warning: Knowledge of both Question and Answer simultaneously may cause universe to be replaced by something even more bizarre.\"},{\"kind\":\"attribution\",\"value\":\"Douglas Adams\"}]" ], [ 1n, "Default Cube", "scenes/1.jpg", "[{\"kind\":\"title\",\"value\":\"Default Cube\"},{\"kind\":\"type\",\"value\":\"Item\"},{\"kind\":\"class\",\"value\":\"Primitive\"},{\"kind\":\"description\",\"value\":\"The eternal companion of every 3D artist's blank canvas. Universally deleted, yet forever respawning. Some say it's the most deleted object in digital history.\"},{\"kind\":\"attribution\",\"value\":\"Blender Foundation\"}]" ], [ 2n, "Proxy Knight", "scenes/knight.jpg", "[{\"kind\":\"title\",\"value\":\"Proxy Knight\"},{\"kind\":\"type\",\"value\":\"Human Hero\"},{\"kind\":\"class\",\"value\":\"Melee\"},{\"kind\":\"description\",\"value\":\"A proxy knight fights for the cause of the proxy cause.\"},{\"kind\":\"attribution\",\"value\":\"VD\"}]" ], [ 3n, "Quantum Wizard", "scenes/quantum_wizard.jpg", "[{\"kind\":\"title\",\"value\":\"Quantum Wizard\"},{\"kind\":\"type\",\"value\":\"Magic User\"},{\"kind\":\"class\",\"value\":\"Spellcaster\"},{\"kind\":\"description\",\"value\":\"Masters probability itself. Can exist in multiple states until observed. Warning: May or may not be in your dimension.\"},{\"kind\":\"attribution\",\"value\":\"Schrodinger's Lab\"}]" ], [ 4n, "Digital Nomad", "scenes/nomad.jpg", "[{\"kind\":\"title\",\"value\":\"Digital Nomad\"},{\"kind\":\"type\",\"value\":\"Explorer\"},{\"kind\":\"class\",\"value\":\"Wanderer\"},{\"kind\":\"description\",\"value\":\"Traverses the data streams, living between packets. Home is wherever WiFi connects.\"},{\"kind\":\"attribution\",\"value\":\"Net Pioneers\"}]" ], [ 5n, "Cyber Dragon", "scenes/cyber_dragon.jpg", "[{\"kind\":\"title\",\"value\":\"Cyber Dragon\"},{\"kind\":\"type\",\"value\":\"Creature\"},{\"kind\":\"class\",\"value\":\"Mythical\"},{\"kind\":\"description\",\"value\":\"Hoards data instead of gold. Breathes binary fire. Scales made of quantum-encrypted plates.\"},{\"kind\":\"attribution\",\"value\":\"Digital Bestiary\"}]" ], [ 6n, "Neural Network Node", "scenes/neural_node.jpg", "[{\"kind\":\"title\",\"value\":\"Neural Network Node\"},{\"kind\":\"type\",\"value\":\"Structure\"},{\"kind\":\"class\",\"value\":\"Infrastructure\"},{\"kind\":\"description\",\"value\":\"A sentient processing unit that dreams in matrices. Sometimes thinks it's human.\"},{\"kind\":\"attribution\",\"value\":\"AI Collective\"}]" ], [ 7n, "Time Merchant", "scenes/time_merchant.jpg", "[{\"kind\":\"title\",\"value\":\"Time Merchant\"},{\"kind\":\"type\",\"value\":\"NPC\"},{\"kind\":\"class\",\"value\":\"Vendor\"},{\"kind\":\"description\",\"value\":\"Sells moments, memories, and minutes. No refunds for paradoxes created.\"},{\"kind\":\"attribution\",\"value\":\"Temporal Trading Co.\"}]" ], [ 8n, "Blockchain Archaeologist", "scenes/archaeologist.jpg", "[{\"kind\":\"title\",\"value\":\"Blockchain Archaeologist\"},{\"kind\":\"type\",\"value\":\"Professional\"},{\"kind\":\"class\",\"value\":\"Explorer\"},{\"kind\":\"description\",\"value\":\"Excavates lost wallets and forgotten smart contracts. Specializes in genesis block artifacts.\"},{\"kind\":\"attribution\",\"value\":\"Crypto Museum\"}]" ], [ 9n, "Meme Oracle", "scenes/meme_oracle.jpg", "[{\"kind\":\"title\",\"value\":\"Meme Oracle\"},{\"kind\":\"type\",\"value\":\"Mystic\"},{\"kind\":\"class\",\"value\":\"Seer\"},{\"kind\":\"description\",\"value\":\"Predicts viral trends before they happen. Speaks only in references and reaction GIFs.\"},{\"kind\":\"attribution\",\"value\":\"Internet Historians\"}]" ], [ 10n, "Pixel Golem", "scenes/pixel_golem.jpg", "[{\"kind\":\"title\",\"value\":\"Pixel Golem\"},{\"kind\":\"type\",\"value\":\"Construct\"},{\"kind\":\"class\",\"value\":\"Guardian\"},{\"kind\":\"description\",\"value\":\"Assembled from deprecated graphics cards. Protects abandoned websites.\"},{\"kind\":\"attribution\",\"value\":\"Retro Defenders\"}]" ], [ 11n, "Cloud Shepherd", "scenes/cloud_shepherd.jpg", "[{\"kind\":\"title\",\"value\":\"Cloud Shepherd\"},{\"kind\":\"type\",\"value\":\"Caretaker\"},{\"kind\":\"class\",\"value\":\"Support\"},{\"kind\":\"description\",\"value\":\"Tends to data clusters in the digital stratosphere. Herds stray packets back to their servers.\"},{\"kind\":\"attribution\",\"value\":\"Sky Net Solutions\"}]" ], [ 12n, "Bug Hunter", "scenes/bug_hunter.jpg", "[{\"kind\":\"title\",\"value\":\"Bug Hunter\"},{\"kind\":\"type\",\"value\":\"Security\"},{\"kind\":\"class\",\"value\":\"Specialist\"},{\"kind\":\"description\",\"value\":\"Tracks down code anomalies with legendary precision. Bounty hunter of the digital realm.\"},{\"kind\":\"attribution\",\"value\":\"Debug Society\"}]" ], [ 13n, "Void Merchant", "scenes/void_merchant.jpg", "[{\"kind\":\"title\",\"value\":\"Void Merchant\"},{\"kind\":\"type\",\"value\":\"Trader\"},{\"kind\":\"class\",\"value\":\"Mysterious\"},{\"kind\":\"description\",\"value\":\"Deals in digital nihilism and empty arrays. Specializes in null transactions.\"},{\"kind\":\"attribution\",\"value\":\"Null Consortium\"}]" ], [ 14n, "Syntax Shaman", "scenes/syntax_shaman.jpg", "[{\"kind\":\"title\",\"value\":\"Syntax Shaman\"},{\"kind\":\"type\",\"value\":\"Coder\"},{\"kind\":\"class\",\"value\":\"Mystic\"},{\"kind\":\"description\",\"value\":\"Communes with ancient programming languages. Can debug code by meditation alone.\"},{\"kind\":\"attribution\",\"value\":\"Code Tribe\"}]" ], [ 15n, "Memory Whale", "scenes/memory_whale.jpg", "[{\"kind\":\"title\",\"value\":\"Memory Whale\"},{\"kind\":\"type\",\"value\":\"Creature\"},{\"kind\":\"class\",\"value\":\"Data Beast\"},{\"kind\":\"description\",\"value\":\"Ancient being that stores vast amounts of forgotten data. Swims through the depths of old databases.\"},{\"kind\":\"attribution\",\"value\":\"Digital Deep\"}]" ], [ 16n, "Quantum Gardener", "scenes/quantum_gardener.jpg", "[{\"kind\":\"title\",\"value\":\"Quantum Gardener\"},{\"kind\":\"type\",\"value\":\"Cultivator\"},{\"kind\":\"class\",\"value\":\"Creator\"},{\"kind\":\"description\",\"value\":\"Grows probability trees in the quantum realm. Harvests parallel universes.\"},{\"kind\":\"attribution\",\"value\":\"Multiverse Botanists\"}]" ], [ 17n, "Git Guardian", "scenes/git_guardian.jpg", "[{\"kind\":\"title\",\"value\":\"Git Guardian\"},{\"kind\":\"type\",\"value\":\"Protector\"},{\"kind\":\"class\",\"value\":\"Maintainer\"},{\"kind\":\"description\",\"value\":\"Protects the sacred repository branches. Resolves conflicts with ancestral merge wisdom.\"},{\"kind\":\"attribution\",\"value\":\"Version Control Monks\"}]" ], [ 18n, "Stack Overflow Oracle", "scenes/stack_oracle.jpg", "[{\"kind\":\"title\",\"value\":\"Stack Overflow Oracle\"},{\"kind\":\"type\",\"value\":\"Wisdom Keeper\"},{\"kind\":\"class\",\"value\":\"Support\"},{\"kind\":\"description\",\"value\":\"Knows all answers but speaks in riddles. Marks questions as duplicates before they're asked.\"},{\"kind\":\"attribution\",\"value\":\"Knowledge Base\"}]" ], [ 19n, "Cache Djinn", "scenes/cache_djinn.jpg", "[{\"kind\":\"title\",\"value\":\"Cache Djinn\"},{\"kind\":\"type\",\"value\":\"Spirit\"},{\"kind\":\"class\",\"value\":\"Memory Keeper\"},{\"kind\":\"description\",\"value\":\"Lives between RAM and ROM. Grants wishes for faster access times.\"},{\"kind\":\"attribution\",\"value\":\"Memory Mystics\"}]" ], [ 20n, "Protocol Priest", "scenes/protocol_priest.jpg", "[{\"kind\":\"title\",\"value\":\"Protocol Priest\"},{\"kind\":\"type\",\"value\":\"Clergy\"},{\"kind\":\"class\",\"value\":\"Ritualist\"},{\"kind\":\"description\",\"value\":\"Maintains the sacred handshakes between networks. Performs the rites of request and response.\"},{\"kind\":\"attribution\",\"value\":\"TCP/IP Temple\"}]" ], [ 21n, "Regex Ranger", "scenes/regex_ranger.jpg", "[{\"kind\":\"title\",\"value\":\"Regex Ranger\"},{\"kind\":\"type\",\"value\":\"Hunter\"},{\"kind\":\"class\",\"value\":\"Pattern Seeker\"},{\"kind\":\"description\",\"value\":\"Tracks elusive string patterns through dense code forests. Never fails to find a match.\"},{\"kind\":\"attribution\",\"value\":\"Pattern Hunters Guild\"}]" ], [ 22n, "Blockchain Bard", "scenes/blockchain_bard.jpg", "[{\"kind\":\"title\",\"value\":\"Blockchain Bard\"},{\"kind\":\"type\",\"value\":\"Artist\"},{\"kind\":\"class\",\"value\":\"Entertainer\"},{\"kind\":\"description\",\"value\":\"Composes epic tales of crypto winters and bull runs. Songs stored permanently on-chain.\"},{\"kind\":\"attribution\",\"value\":\"Crypto Conservatory\"}]" ], [ 23n, "Entropy Monk", "scenes/entropy_monk.jpg", "[{\"kind\":\"title\",\"value\":\"Entropy Monk\"},{\"kind\":\"type\",\"value\":\"Mystic\"},{\"kind\":\"class\",\"value\":\"Chaos Agent\"},{\"kind\":\"description\",\"value\":\"Dedicated to the sacred art of randomness. Ensures true chaos in random number generation.\"},{\"kind\":\"attribution\",\"value\":\"Order of Random\"}]" ], [ 24n, "Vector Valkyrie", "scenes/vector_valkyrie.jpg", "[{\"kind\":\"title\",\"value\":\"Vector Valkyrie\"},{\"kind\":\"type\",\"value\":\"Warrior\"},{\"kind\":\"class\",\"value\":\"Graphics\"},{\"kind\":\"description\",\"value\":\"Guides fallen pixels to digital Valhalla. Ensures smooth scaling across all dimensions.\"},{\"kind\":\"attribution\",\"value\":\"SVG Pantheon\"}]" ]
],
}, {
tokens: [
[ 0n, "Life, The Universe, and Everything", "scenes/0.jpg", "[{\"kind\":\"title\",\"value\":\"Life, The Universe, and Everything\"},{\"kind\":\"type\",\"value\":\"Land\"},{\"kind\":\"class\",\"value\":\"Omnipresent\"},{\"kind\":\"description\",\"value\":\"The answer to the Ultimate Question, though the Question itself remains unknown. Calculated by Deep Thought over 7.5 million years. Warning: Knowledge of both Question and Answer simultaneously may cause universe to be replaced by something even more bizarre.\"},{\"kind\":\"attribution\",\"value\":\"Douglas Adams\"}]" ], [ 1n, "Default Cube", "scenes/1.jpg", "[{\"kind\":\"title\",\"value\":\"Default Cube\"},{\"kind\":\"type\",\"value\":\"Item\"},{\"kind\":\"class\",\"value\":\"Primitive\"},{\"kind\":\"description\",\"value\":\"The eternal companion of every 3D artist's blank canvas. Universally deleted, yet forever respawning. Some say it's the most deleted object in digital history.\"},{\"kind\":\"attribution\",\"value\":\"Blender Foundation\"}]" ], [ 2n, "Proxy Knight", "scenes/knight.jpg", "[{\"kind\":\"title\",\"value\":\"Proxy Knight\"},{\"kind\":\"type\",\"value\":\"Human Hero\"},{\"kind\":\"class\",\"value\":\"Melee\"},{\"kind\":\"description\",\"value\":\"A proxy knight fights for the cause of the proxy cause.\"},{\"kind\":\"attribution\",\"value\":\"VD\"}]" ], [ 3n, "Quantum Wizard", "scenes/quantum_wizard.jpg", "[{\"kind\":\"title\",\"value\":\"Quantum Wizard\"},{\"kind\":\"type\",\"value\":\"Magic User\"},{\"kind\":\"class\",\"value\":\"Spellcaster\"},{\"kind\":\"description\",\"value\":\"Masters probability itself. Can exist in multiple states until observed. Warning: May or may not be in your dimension.\"},{\"kind\":\"attribution\",\"value\":\"Schrodinger's Lab\"}]" ], [ 4n, "Digital Nomad", "scenes/nomad.jpg", "[{\"kind\":\"title\",\"value\":\"Digital Nomad\"},{\"kind\":\"type\",\"value\":\"Explorer\"},{\"kind\":\"class\",\"value\":\"Wanderer\"},{\"kind\":\"description\",\"value\":\"Traverses the data streams, living between packets. Home is wherever WiFi connects.\"},{\"kind\":\"attribution\",\"value\":\"Net Pioneers\"}]" ], [ 5n, "Cyber Dragon", "scenes/cyber_dragon.jpg", "[{\"kind\":\"title\",\"value\":\"Cyber Dragon\"},{\"kind\":\"type\",\"value\":\"Creature\"},{\"kind\":\"class\",\"value\":\"Mythical\"},{\"kind\":\"description\",\"value\":\"Hoards data instead of gold. Breathes binary fire. Scales made of quantum-encrypted plates.\"},{\"kind\":\"attribution\",\"value\":\"Digital Bestiary\"}]" ], [ 6n, "Neural Network Node", "scenes/neural_node.jpg", "[{\"kind\":\"title\",\"value\":\"Neural Network Node\"},{\"kind\":\"type\",\"value\":\"Structure\"},{\"kind\":\"class\",\"value\":\"Infrastructure\"},{\"kind\":\"description\",\"value\":\"A sentient processing unit that dreams in matrices. Sometimes thinks it's human.\"},{\"kind\":\"attribution\",\"value\":\"AI Collective\"}]" ], [ 7n, "Time Merchant", "scenes/time_merchant.jpg", "[{\"kind\":\"title\",\"value\":\"Time Merchant\"},{\"kind\":\"type\",\"value\":\"NPC\"},{\"kind\":\"class\",\"value\":\"Vendor\"},{\"kind\":\"description\",\"value\":\"Sells moments, memories, and minutes. No refunds for paradoxes created.\"},{\"kind\":\"attribution\",\"value\":\"Temporal Trading Co.\"}]" ], [ 8n, "Blockchain Archaeologist", "scenes/archaeologist.jpg", "[{\"kind\":\"title\",\"value\":\"Blockchain Archaeologist\"},{\"kind\":\"type\",\"value\":\"Professional\"},{\"kind\":\"class\",\"value\":\"Explorer\"},{\"kind\":\"description\",\"value\":\"Excavates lost wallets and forgotten smart contracts. Specializes in genesis block artifacts.\"},{\"kind\":\"attribution\",\"value\":\"Crypto Museum\"}]" ], [ 9n, "Meme Oracle", "scenes/meme_oracle.jpg", "[{\"kind\":\"title\",\"value\":\"Meme Oracle\"},{\"kind\":\"type\",\"value\":\"Mystic\"},{\"kind\":\"class\",\"value\":\"Seer\"},{\"kind\":\"description\",\"value\":\"Predicts viral trends before they happen. Speaks only in references and reaction GIFs.\"},{\"kind\":\"attribution\",\"value\":\"Internet Historians\"}]" ], [ 10n, "Pixel Golem", "scenes/pixel_golem.jpg", "[{\"kind\":\"title\",\"value\":\"Pixel Golem\"},{\"kind\":\"type\",\"value\":\"Construct\"},{\"kind\":\"class\",\"value\":\"Guardian\"},{\"kind\":\"description\",\"value\":\"Assembled from deprecated graphics cards. Protects abandoned websites.\"},{\"kind\":\"attribution\",\"value\":\"Retro Defenders\"}]" ], [ 11n, "Cloud Shepherd", "scenes/cloud_shepherd.jpg", "[{\"kind\":\"title\",\"value\":\"Cloud Shepherd\"},{\"kind\":\"type\",\"value\":\"Caretaker\"},{\"kind\":\"class\",\"value\":\"Support\"},{\"kind\":\"description\",\"value\":\"Tends to data clusters in the digital stratosphere. Herds stray packets back to their servers.\"},{\"kind\":\"attribution\",\"value\":\"Sky Net Solutions\"}]" ], [ 12n, "Bug Hunter", "scenes/bug_hunter.jpg", "[{\"kind\":\"title\",\"value\":\"Bug Hunter\"},{\"kind\":\"type\",\"value\":\"Security\"},{\"kind\":\"class\",\"value\":\"Specialist\"},{\"kind\":\"description\",\"value\":\"Tracks down code anomalies with legendary precision. Bounty hunter of the digital realm.\"},{\"kind\":\"attribution\",\"value\":\"Debug Society\"}]" ], [ 13n, "Void Merchant", "scenes/void_merchant.jpg", "[{\"kind\":\"title\",\"value\":\"Void Merchant\"},{\"kind\":\"type\",\"value\":\"Trader\"},{\"kind\":\"class\",\"value\":\"Mysterious\"},{\"kind\":\"description\",\"value\":\"Deals in digital nihilism and empty arrays. Specializes in null transactions.\"},{\"kind\":\"attribution\",\"value\":\"Null Consortium\"}]" ], [ 14n, "Syntax Shaman", "scenes/syntax_shaman.jpg", "[{\"kind\":\"title\",\"value\":\"Syntax Shaman\"},{\"kind\":\"type\",\"value\":\"Coder\"},{\"kind\":\"class\",\"value\":\"Mystic\"},{\"kind\":\"description\",\"value\":\"Communes with ancient programming languages. Can debug code by meditation alone.\"},{\"kind\":\"attribution\",\"value\":\"Code Tribe\"}]" ], [ 15n, "Memory Whale", "scenes/memory_whale.jpg", "[{\"kind\":\"title\",\"value\":\"Memory Whale\"},{\"kind\":\"type\",\"value\":\"Creature\"},{\"kind\":\"class\",\"value\":\"Data Beast\"},{\"kind\":\"description\",\"value\":\"Ancient being that stores vast amounts of forgotten data. Swims through the depths of old databases.\"},{\"kind\":\"attribution\",\"value\":\"Digital Deep\"}]" ], [ 16n, "Quantum Gardener", "scenes/quantum_gardener.jpg", "[{\"kind\":\"title\",\"value\":\"Quantum Gardener\"},{\"kind\":\"type\",\"value\":\"Cultivator\"},{\"kind\":\"class\",\"value\":\"Creator\"},{\"kind\":\"description\",\"value\":\"Grows probability trees in the quantum realm. Harvests parallel universes.\"},{\"kind\":\"attribution\",\"value\":\"Multiverse Botanists\"}]" ], [ 17n, "Git Guardian", "scenes/git_guardian.jpg", "[{\"kind\":\"title\",\"value\":\"Git Guardian\"},{\"kind\":\"type\",\"value\":\"Protector\"},{\"kind\":\"class\",\"value\":\"Maintainer\"},{\"kind\":\"description\",\"value\":\"Protects the sacred repository branches. Resolves conflicts with ancestral merge wisdom.\"},{\"kind\":\"attribution\",\"value\":\"Version Control Monks\"}]" ], [ 18n, "Stack Overflow Oracle", "scenes/stack_oracle.jpg", "[{\"kind\":\"title\",\"value\":\"Stack Overflow Oracle\"},{\"kind\":\"type\",\"value\":\"Wisdom Keeper\"},{\"kind\":\"class\",\"value\":\"Support\"},{\"kind\":\"description\",\"value\":\"Knows all answers but speaks in riddles. Marks questions as duplicates before they're asked.\"},{\"kind\":\"attribution\",\"value\":\"Knowledge Base\"}]" ], [ 19n, "Cache Djinn", "scenes/cache_djinn.jpg", "[{\"kind\":\"title\",\"value\":\"Cache Djinn\"},{\"kind\":\"type\",\"value\":\"Spirit\"},{\"kind\":\"class\",\"value\":\"Memory Keeper\"},{\"kind\":\"description\",\"value\":\"Lives between RAM and ROM. Grants wishes for faster access times.\"},{\"kind\":\"attribution\",\"value\":\"Memory Mystics\"}]" ], [ 20n, "Protocol Priest", "scenes/protocol_priest.jpg", "[{\"kind\":\"title\",\"value\":\"Protocol Priest\"},{\"kind\":\"type\",\"value\":\"Clergy\"},{\"kind\":\"class\",\"value\":\"Ritualist\"},{\"kind\":\"description\",\"value\":\"Maintains the sacred handshakes between networks. Performs the rites of request and response.\"},{\"kind\":\"attribution\",\"value\":\"TCP/IP Temple\"}]" ], [ 21n, "Regex Ranger", "scenes/regex_ranger.jpg", "[{\"kind\":\"title\",\"value\":\"Regex Ranger\"},{\"kind\":\"type\",\"value\":\"Hunter\"},{\"kind\":\"class\",\"value\":\"Pattern Seeker\"},{\"kind\":\"description\",\"value\":\"Tracks elusive string patterns through dense code forests. Never fails to find a match.\"},{\"kind\":\"attribution\",\"value\":\"Pattern Hunters Guild\"}]" ], [ 22n, "Blockchain Bard", "scenes/blockchain_bard.jpg", "[{\"kind\":\"title\",\"value\":\"Blockchain Bard\"},{\"kind\":\"type\",\"value\":\"Artist\"},{\"kind\":\"class\",\"value\":\"Entertainer\"},{\"kind\":\"description\",\"value\":\"Composes epic tales of crypto winters and bull runs. Songs stored permanently on-chain.\"},{\"kind\":\"attribution\",\"value\":\"Crypto Conservatory\"}]" ], [ 23n, "Entropy Monk", "scenes/entropy_monk.jpg", "[{\"kind\":\"title\",\"value\":\"Entropy Monk\"},{\"kind\":\"type\",\"value\":\"Mystic\"},{\"kind\":\"class\",\"value\":\"Chaos Agent\"},{\"kind\":\"description\",\"value\":\"Dedicated to the sacred art of randomness. Ensures true chaos in random number generation.\"},{\"kind\":\"attribution\",\"value\":\"Order of Random\"}]" ], [ 24n, "Vector Valkyrie", "scenes/vector_valkyrie.jpg", "[{\"kind\":\"title\",\"value\":\"Vector Valkyrie\"},{\"kind\":\"type\",\"value\":\"Warrior\"},{\"kind\":\"class\",\"value\":\"Graphics\"},{\"kind\":\"description\",\"value\":\"Guides fallen pixels to digital Valhalla. Ensures smooth scaling across all dimensions.\"},{\"kind\":\"attribution\",\"value\":\"SVG Pantheon\"}]" ]
],
}
]
// bun install @indexsupply/indexsupply.js
// bun install ox
import { AbiEvent } from 'ox';
import { querySingle } from '@indexsupply/indexsupply.js';
const tokensAdded = AbiEvent.from('event TokensAdded((uint256, string, string, string)[] tokens)');
const { blockNumber, result } = await querySingle({
chainId: 84532,
query: 'select topics, data from logs where topics[1] = 0x6136f92d6a6da09712a1af02badee27caf6d72526b97c82165756b85c01eba1b',
eventSignatures: [],
formatRow: ([topics, data]) => {
return AbiEvent.decode(tokensAdded, {
topics: topics,
data: data,
});
},
});
console.log(result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment