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.
Click to show internal directories.
Click to hide internal directories.