gnomigrate

command
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

README

Overview

gnomigrate is a CLI tool designed to migrate Gno legacy data formats to the new standard formats used in Gno blockchain.

Features

  • Transaction Migration: Converts legacy std.Tx transactions to the new gnoland.TxWithMetadata format.

Installation

Clone the repository

git clone https://github.com/gnolang/gno.git

Navigate to the project directory

cd contribs/gnomigrate

Build the binary

make build

Install the binary

make install

Migrating legacy transactions

The gnomigrate tool provides the txs subcommand to manage the migration of legacy transaction sheets.

gnomigrate txs --input-dir <input_directory> --output-dir <output_directory>

Flags

  • --input-dir: Specifies the directory containing the legacy transaction sheets to migrate.
  • --output-dir: Specifies the directory where the migrated transaction sheets will be saved.

Example

gnomigrate txs --input-dir ./legacy_txs --output-dir ./migrated_txs

This command will:

  • Read all .jsonl files from the ./legacy_txs directory, that are Amino-JSON encoded std.Txs.
  • Migrate each transaction from std.Tx to gnoland.TxWithMetadata (no metadata).
  • Save the migrated transactions to the ./migrated_txs directory, preserving the original directory structure.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
txs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL