2024-05-02 20:26:06 +03:00
|
|
|
package frostfsid
|
|
|
|
|
|
|
|
import (
|
2025-02-05 16:37:11 +03:00
|
|
|
"context"
|
|
|
|
|
2024-05-02 20:26:06 +03:00
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-contract/frostfsid/client"
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/util"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
SubjectNotFoundErrorMessage = "subject not found"
|
|
|
|
)
|
|
|
|
|
|
|
|
// SubjectProvider interface provides methods to get subject from FrostfsID contract.
|
|
|
|
type SubjectProvider interface {
|
2025-02-05 16:37:11 +03:00
|
|
|
GetSubject(ctx context.Context, addr util.Uint160) (*client.Subject, error)
|
|
|
|
GetSubjectExtended(ctx context.Context, addr util.Uint160) (*client.SubjectExtended, error)
|
2024-05-02 20:26:06 +03:00
|
|
|
}
|