@intersect.mbo/govtool-delegation-pillar
Version:
Delegation Pillar of the GovTool project
39 lines (33 loc) • 852 B
text/typescript
import { Reference } from './other';
// TODO: Should be taken from @govtool/metadata-validation
export enum MetadataValidationStatus {
URL_NOT_FOUND = 'URL_NOT_FOUND',
INVALID_JSONLD = 'INVALID_JSONLD',
INVALID_HASH = 'INVALID_HASH',
INCORRECT_FORMAT = 'INCORRECT_FORMAT',
}
export type ValidateMetadataResult<MetadataType> = {
status?: MetadataValidationStatus;
valid: boolean;
metadata?: MetadataType;
};
export type MetadataValidationDTO = {
url: string;
hash: string;
};
export type DRepMetadata = {
paymentAddress?: string;
givenName?: string;
objectives?: string;
motivations?: string;
qualifications?: string;
references?: Reference[];
doNotList?: boolean;
};
export type ProposalMetadata = {
abstract?: string;
motivation?: string;
rationale?: string;
references?: Reference[];
title?: string;
};