@intersect.mbo/govtool-delegation-pillar
Version:
Delegation Pillar of the GovTool project
33 lines (32 loc) • 837 B
TypeScript
import { Reference } from './other';
export declare 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;
};