Skip to content

Maia-DAO/migration-orchestrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Migration Orchestrator

Features

  • CSV Parsing: Processes multiple CSV files to extract balance information.
  • Data Consolidation: Aggregates balance data from various sources.
  • Sort by Balance: Orders all entries by balance amount in descending order.
  • Output in JSON: Generates a JSON file with sorted balance data.

Prerequisites

Before you can run this project, you need to ensure you have the following installed:

  • Node.js (preferably version 14 or higher)
  • npm or Yarn (for managing Node.js packages)

Installation

  1. Clone the repository:
    git clone https://github.com/Maia-DAO/migration-orchestrator.git
    cd migration-orchestrator
  2. Install dependencies:
    npm install
    or if you use Yarn:
    yarn install

Project Structure

  • input_csv/: Directory containing all CSV files to be processed.
  • output/: Directory where the starHermes.json will be stored after processing.

Usage

To run the script and process the balances, use the following command from the root directory of the project:

./orchestrator.sh

This command will read all CSV files specified in the script, consolidate and sort the balance data, and output the sorted result into the output/starHermes.json file.

Configuration

No additional configuration is needed to run the project as provided. However, you can modify the CSV file paths and output file name in consolidate_data.js if needed.

Migration Transactions

The following are the transactions for the migration of balances from the old contract to the new contract:

Maia:

Hermes:

bHermes:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published