Documentation ¶
Index ¶
- func MigrateDidDoc(oldDid *didtypesv1.Did) didtypes.DidDoc
- func MigrateDidIndyStyle(sctx sdk.Context, mctx MigrationContext) error
- func MigrateDidProtobuf(sctx sdk.Context, mctx MigrationContext) error
- func MigrateDidSimple(sctx sdk.Context, mctx MigrationContext, ...) error
- func MigrateDidUUID(sctx sdk.Context, mctx MigrationContext) error
- func MigrateDidVersionId(sctx sdk.Context, mctx MigrationContext) error
- func MigrateMetadata(metadata *didtypesv1.Metadata) didtypes.Metadata
- func MigrateResourceChecksum(sctx sdk.Context, mctx MigrationContext) error
- func MigrateResourceDefaultAlternativeUrl(sctx sdk.Context, mctx MigrationContext) error
- func MigrateResourceIndyStyle(sctx sdk.Context, mctx MigrationContext) error
- func MigrateResourceProtobuf(sctx sdk.Context, mctx MigrationContext) error
- func MigrateResourceSimple(sctx sdk.Context, mctx MigrationContext, ...) error
- func MigrateResourceUUID(sctx sdk.Context, mctx MigrationContext) error
- func MigrateResourceVersionLinks(sctx sdk.Context, mctx MigrationContext) error
- func MigrateStateValue(sctx sdk.Context, mctx MigrationContext, stateValue *didtypesv1.StateValue) (didtypes.DidDocWithMetadata, error)
- func MigrateType(t string) string
- func MigrateVerificationMaterial(vm *didtypesv1.VerificationMethod) string
- func NewLegacyProtoCodec() *codec.ProtoCodec
- func ResourceV1HeaderkeyToDataKey(headerKey []byte) []byte
- type Migration
- type MigrationContext
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateDidDoc ¶
func MigrateDidDoc(oldDid *didtypesv1.Did) didtypes.DidDoc
func MigrateDidIndyStyle ¶
func MigrateDidIndyStyle(sctx sdk.Context, mctx MigrationContext) error
This migration should be run after protobuf that's why we use new DidDocWithMetadata
func MigrateDidProtobuf ¶
func MigrateDidProtobuf(sctx sdk.Context, mctx MigrationContext) error
func MigrateDidSimple ¶
func MigrateDidSimple(sctx sdk.Context, mctx MigrationContext, apply func(didDocWithMetadata *didtypes.DidDocWithMetadata)) error
func MigrateDidUUID ¶
func MigrateDidUUID(sctx sdk.Context, mctx MigrationContext) error
This migration should be run after protobuf that's why we use new DidDocWithMetadata
func MigrateDidVersionId ¶
func MigrateDidVersionId(sctx sdk.Context, mctx MigrationContext) error
This migration should be run after protobuf that's why we use new DidDocWithMetadata
func MigrateMetadata ¶
func MigrateMetadata(metadata *didtypesv1.Metadata) didtypes.Metadata
func MigrateResourceChecksum ¶
func MigrateResourceChecksum(sctx sdk.Context, mctx MigrationContext) error
Migration because we need to fix the algo for checksum calculation
func MigrateResourceDefaultAlternativeUrl ¶
func MigrateResourceDefaultAlternativeUrl(sctx sdk.Context, mctx MigrationContext) error
func MigrateResourceIndyStyle ¶
func MigrateResourceIndyStyle(sctx sdk.Context, mctx MigrationContext) error
func MigrateResourceProtobuf ¶
func MigrateResourceProtobuf(sctx sdk.Context, mctx MigrationContext) error
func MigrateResourceSimple ¶
func MigrateResourceSimple(sctx sdk.Context, mctx MigrationContext, apply func(resourceWithMetadata *resourcetypes.ResourceWithMetadata)) error
func MigrateResourceUUID ¶
func MigrateResourceUUID(sctx sdk.Context, mctx MigrationContext) error
func MigrateResourceVersionLinks ¶
func MigrateResourceVersionLinks(sctx sdk.Context, mctx MigrationContext) error
func MigrateStateValue ¶
func MigrateStateValue(sctx sdk.Context, mctx MigrationContext, stateValue *didtypesv1.StateValue) (didtypes.DidDocWithMetadata, error)
func MigrateType ¶
func MigrateVerificationMaterial ¶
func MigrateVerificationMaterial(vm *didtypesv1.VerificationMethod) string
func NewLegacyProtoCodec ¶
func NewLegacyProtoCodec() *codec.ProtoCodec
Types ¶
type MigrationContext ¶
type MigrationContext struct {
// contains filtered or unexported fields
}
func NewMigrationContext ¶
func NewMigrationContext( codec codec.Codec, didStoreKey *storetypes.KVStoreKey, didSubspace didtypes.ParamSubspace, resourceStoreKey *storetypes.KVStoreKey, resourceSubspace resourcetypes.ParamSubspace, ) MigrationContext
Source Files ¶
- migration_did_indy_style.go
- migration_did_protobuf.go
- migration_did_simple.go
- migration_did_uuid.go
- migration_did_version_id.go
- migration_resource_checksum.go
- migration_resource_default_alternative_url.go
- migration_resource_indy_style.go
- migration_resource_protobuf.go
- migration_resource_simple.go
- migration_resource_uuid.go
- migration_resource_version_links.go
- migrator.go
Click to show internal directories.
Click to hide internal directories.