generated from Open-Attestation/react-component-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lawwman
committed
Jan 19, 2024
1 parent
db4c3ec
commit 31d537d
Showing
8 changed files
with
275 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16 | ||
v14.15.0 |
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,48 @@ | ||
import { v2 } from "@govtechsg/open-attestation"; | ||
|
||
export const misconfiguredCert = { | ||
message: "Sample OA document", | ||
recipient: { | ||
name: "Tan Chen Chen", | ||
}, | ||
$template: { | ||
name: "NO_MATCHING_NAME", | ||
type: v2.TemplateType.EmbeddedRenderer, | ||
url: "https://govtech-renderer.openattestation.com", | ||
}, | ||
issuers: [ | ||
{ | ||
id: "did:ethr:0x3A655e6EdeBcDf1e7d69195dFf2AeA5fE126bC6E", | ||
name: "GovTech Singapore", | ||
revocation: { | ||
type: "NONE", | ||
}, | ||
identityProof: { | ||
type: ":DNS-DID", | ||
location: "staging.notarise.io", | ||
key: "did:ethr:0x3A655e6EdeBcDf1e7d69195dFf2AeA5fE126bC6E#controller", | ||
}, | ||
}, | ||
], | ||
}; | ||
|
||
export const missingTemplate = { | ||
message: "Sample OA document", | ||
recipient: { | ||
name: "Tan Chen Chen", | ||
}, | ||
issuers: [ | ||
{ | ||
id: "did:ethr:0x3A655e6EdeBcDf1e7d69195dFf2AeA5fE126bC6E", | ||
name: "GovTech Singapore", | ||
revocation: { | ||
type: "NONE", | ||
}, | ||
identityProof: { | ||
type: ":DNS-DID", | ||
location: "staging.notarise.io", | ||
key: "did:ethr:0x3A655e6EdeBcDf1e7d69195dFf2AeA5fE126bC6E#controller", | ||
}, | ||
}, | ||
], | ||
}; |
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
Oops, something went wrong.