-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(#1582): Add support for CIP-100 on vote metadata
- Loading branch information
1 parent
fc3e5c3
commit f57b263
Showing
6 changed files
with
83 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
export const CIP_100_CONTEXT = { | ||
"@language": "en-us", | ||
CIP100: | ||
"https://github.com/cardano-foundation/CIPs/blob/master/CIP-0100/README.md#", | ||
hashAlgorithm: "CIP100:hashAlgorithm", | ||
body: { | ||
"@id": "CIP100:body", | ||
"@context": { | ||
references: { | ||
"@id": "CIP100:references", | ||
"@container": "@set" as const, | ||
"@context": { | ||
GovernanceMetadata: "CIP100:GovernanceMetadataReference", | ||
Other: "CIP100:OtherReference", | ||
label: "CIP100:reference-label", | ||
uri: "CIP100:reference-uri", | ||
referenceHash: { | ||
"@id": "CIP100:referenceHash", | ||
"@context": { | ||
hashDigest: "CIP100:hashDigest", | ||
hashAlgorithm: "CIP100:hashAlgorithm", | ||
}, | ||
}, | ||
}, | ||
}, | ||
comment: "CIP100:comment", | ||
externalUpdates: { | ||
"@id": "CIP100:externalUpdates", | ||
"@context": { | ||
title: "CIP100:update-title", | ||
uri: "CIP100:uri", | ||
}, | ||
}, | ||
}, | ||
}, | ||
authors: { | ||
"@id": "CIP100:authors", | ||
"@container": "@set" as const, | ||
"@context": { | ||
name: "http://xmlns.com/foaf/0.1/name", | ||
witness: { | ||
"@id": "CIP100:witness", | ||
"@context": { | ||
witnessAlgorithm: "CIP100:witnessAlgorithm", | ||
publicKey: "CIP100:publicKey", | ||
signature: "CIP100:signature", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters