cosmos-sdk/server/v2/appmanager/genesis.go
Marko 946c62410f
chore: upstream app manager (#20315)
Co-authored-by: testinginprod <98415576+testinginprod@users.noreply.github.com>
2024-05-10 15:44:17 +00:00

15 lines
425 B
Go

package appmanager
import (
"context"
"encoding/json"
"io"
)
type (
// exportGenesis is a function type that represents the export of the genesis state.
ExportGenesis func(ctx context.Context, version uint64) ([]byte, error)
// InitGenesis is a function type that represents the initialization of the genesis state.
InitGenesis func(ctx context.Context, src io.Reader, txHandler func(json.RawMessage) error) error
)