export

package
v1.0.0-rc.15 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "export-evm-state",
	Short: "Export EVM state at a specific height",
	RunE: func(*cobra.Command, []string) error {
		if height == 0 || outputDir == "" || registerStoreDir == "" {
			return fmt.Errorf("all flags (height, output, register-store) must be provided")
		}

		log.Info().Msgf("exporting EVM state for height %v from registerStoreDir %v, outputDir: %v, chain: %v", height, registerStoreDir, outputDir, chain)

		chainID := flowGo.ChainID(chain)

		err := ExportEVMStateForHeight(height, outputDir, registerStoreDir, chainID)
		if err != nil {
			return fmt.Errorf("fail to export: %w", err)
		}

		log.Info().Msgf("successfully exported EVM state to %v", outputDir)

		return nil
	},
}

Functions

func ExportEVMStateForHeight

func ExportEVMStateForHeight(height uint64, outputDir string, registerStoreDir string, chainID flowGo.ChainID) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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