alexnt2499 / mocaverse-interview-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mocaverse Interview Case Scenario: CC Profile Contract

Tech: NodeJS and Ethers

Requirement

The following required functionality is completed:

required

  • I want to see a summary of total deposits and transactions
  • Connect to the Binance Smart Chain network securely.
  • Load the CC Profile contract using its contract address.
  • Perform appropriate error checking and handle any potential exceptions or failures during contract interaction.
  • Implement proper input validation and sanitization to ensure the integrity of user-provided data.
  • Call the createProfile function in the contract to securely register a new user profile. The function takes two parameters: the user's Ethereum address and the user's handle name.
  • Call the contract to read and retrieve the handle name of the registered user. Print the handle name of the registered user on the console securely.

Noted: All variables in .env are testnet including the private key.

Install and Run Project

cd mocaverse-interview-test
npm install
npm start

About


Languages

Language:JavaScript 100.0%