restore

package
v0.48.7 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestoreStatus

type RestoreStatus int64
const (
	RestoreStatusUndefined RestoreStatus = iota
	RestoreStatusRestoring
	RestoreStatusRestored
)

type RestoreStatusProvider

type RestoreStatusProvider interface {
	Status(ctx context.Context, address oid.Address) (RestoreStatus, error)
	// UpdateStatus creates or updates a record in the transition contract.
	// epochDuration defines for how many epochs the record remains valid.
	UpdateStatus(ctx context.Context, address oid.Address, status RestoreStatus, epochDuration uint64, nodePubKey *neogoKeys.PublicKey) error
	// DeleteStatus deletes a record in the transition contract.
	DeleteStatus(ctx context.Context, address oid.Address) error
}

RestoreStatusProvider provides access to the transition smart contract that controls the applicability of TRANSIT objects during the restore process.

Jump to

Keyboard shortcuts

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