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.
23 lines
688 B
Go
23 lines
688 B
Go
// Package qchain provides Q-Chain export/import functionality
|
|
// Q-Chain is EVM-compatible and uses RPC-based data access
|
|
package qchain
|
|
|
|
import "github.com/luxfi/migrate"
|
|
|
|
// Register Q-Chain exporter/importer with migrate package
|
|
func init() {
|
|
migrate.RegisterExporterFactory(migrate.VMTypeQChain, func(config migrate.ExporterConfig) (migrate.Exporter, error) {
|
|
return NewExporter(config)
|
|
})
|
|
|
|
migrate.RegisterImporterFactory(migrate.VMTypeQChain, func(config migrate.ImporterConfig) (migrate.Importer, error) {
|
|
return NewImporter(config)
|
|
})
|
|
}
|
|
|
|
// Ensure interface compliance at compile time
|
|
var (
|
|
_ migrate.Exporter = (*Exporter)(nil)
|
|
_ migrate.Importer = (*Importer)(nil)
|
|
)
|