Skip to content

This repo will be used to create batch script that is going to validade Blockchain Classes to see if users could deploy the correct contract on the testnets

License

Notifications You must be signed in to change notification settings

lucasarchangelo/smartcontract_validator

Repository files navigation

Blockchain Validator

This repository contains a tool designed to validate all the received blockchain deployed contracts that students executed during the Chainlink Labs Bootcamp.

Installation

To use this validator, follow these steps:

  1. Clone this repository:

    git clone https://github.com/lucasarchangelo/blockchain_validator.git
    
  2. Navigate into the cloned repository:

    cd blockchain_validator
    
  3. Install dependencies:

    npm install
    
  4. Configure the validation parameters: Edit the src/config.ts file to set up the validation configurations. The structure of this file should follow the format below:

    export interface ValidationConfig {
      contractName: string;
      isOwnable: boolean;
      network: string;
      expectations: MethodExpectation[];
    }

    For each CSV column that you want to validate, create a ValidationConfig object in config.ts.

  5. Create an .env file. You can use the .env.example as an example or add the following information to your own:

       MNEMONIC="YOUR MNEMONIC HERE"
       MUMBAI_RPC_URL="MUMBAI RPC URL"
       SEPOLIA_RPC_URL="SEPOLIA RPC URL"
       FUJI_RPC_URL="FUJI RPC URL"
       MATIC_RPC_URL="MATIC RPC URL"
    
  6. Place the CSV file you want to validate in the root directory of the repository, using the name Bootcamp_apply.csv.

Usage

Once you have configured the validation parameters and placed the CSV file, you can run the validation command:

npm run validate_csv_sepolia

This command will execute the validation process using the provided CSV file and the configurations set in config.ts.

Notes

  • Ensure that the CSV file follows the required format for validation.
  • Review the validation configurations in config.ts carefully to match your specific use case.
  • Make sure you have Node.js and npm installed on your system before running the validator.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Disclaimer: This repository is not affiliated with Chainlink Labs or any educational institution. It is solely intended for educational and demonstration purposes.

About

This repo will be used to create batch script that is going to validade Blockchain Classes to see if users could deploy the correct contract on the testnets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •