mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-14 23:07:50 +00:00
21 lines
568 B
Go
21 lines
568 B
Go
|
package services
|
||
|
|
||
|
import (
|
||
|
"github.com/nspcc-dev/neo-go/pkg/core/state"
|
||
|
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
|
||
|
)
|
||
|
|
||
|
// Oracle specifies oracle service interface.
|
||
|
type Oracle interface {
|
||
|
// AddRequests processes new requests.
|
||
|
AddRequests(map[uint64]*state.OracleRequest)
|
||
|
// RemoveRequests removes already processed requests.
|
||
|
RemoveRequests([]uint64)
|
||
|
// UpdateOracleNodes updates oracle nodes.
|
||
|
UpdateOracleNodes(keys.PublicKeys)
|
||
|
// Run runs oracle module. Must be invoked in a separate goroutine.
|
||
|
Run()
|
||
|
// Shutdown shutdowns oracle module.
|
||
|
Shutdown()
|
||
|
}
|