mirror of
https://github.com/luxfi/migrate.git
synced 2026-10-30 15:25:11 +00:00
Full implementations for all VM types: - SubnetEVM: PebbleDB exporter/importer - C-Chain: RPC exporter, RPC importer - Coreth: LevelDB exporter - P-Chain: Platform API exporter/importer - X-Chain: AVM API exporter/importer - Q-Chain: RPC exporter/importer - ZooL2: PebbleDB exporter/importer All implementations include factory registration and test suites.
19 lines
564 B
Go
19 lines
564 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package pchain
|
|
|
|
import "github.com/luxfi/migrate"
|
|
|
|
func init() {
|
|
// Register P-Chain exporter factory
|
|
migrate.RegisterExporterFactory(migrate.VMTypePChain, func(config migrate.ExporterConfig) (migrate.Exporter, error) {
|
|
return NewExporter(config)
|
|
})
|
|
|
|
// Register P-Chain importer factory
|
|
migrate.RegisterImporterFactory(migrate.VMTypePChain, func(config migrate.ImporterConfig) (migrate.Importer, error) {
|
|
return NewImporter(config)
|
|
})
|
|
}
|