All metadata uploaded to IPFS and saved as details in a Smart Invoice contract must follow the standard schema below:
{
projectName: "Project Name",
projectDescription: "description",
projectAgreement:[{
type: "https", // or "ipfs"
src: "https://urlToAgreement.com"
createdAt : "seconds since epoch"
}],
startDate: UNIX_TIMESTAMP,
endDate: UNIX_TIMESTAMP
}
Under projectAgreement
, type
and beginning of src
MUST match exactly.