Automation

NuLink Testnet Bot

Automation of the testnet process for NuLink (NLK) token

This project is a Browser Automation solution developed to automate the complex tasks within the NuLink (NLK) ecosystem's official pre-token launch testnet phase. The primary goal of the project is to accelerate the process by simulating Web3 interactions (MetaMask, Smart Contract approvals).

🛠 Technical Architecture and Key Learnings

The following critical programming concepts and technologies were applied during the development of the project:

  • DOM Manipulation: Asynchronous tracking and management of dynamically loaded Web3 elements (e.g., staking buttons, wallet connection windows).
  • Main & Worker Pattern: The Main Process monitors the overall state of the bot, while Child Processes run each account in separate browser instances.
  • IPC (Inter-Process Communication): Exchange of status messages between the main process and child processes.
  • Programmatic MetaMask Management: Automated password entry, network switching, and transaction approvals.
  • Error Recovery: The main process detects when a child process crashes and restarts that specific task.
  • Concurrency vs Parallelism: Practical application of the differences between asynchrony and parallel processing in Node.js.