-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add obligation records context and related types #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
8ff7401
feat: add obligation records context and related types
manishdex25 bb5e730
feat: add bill of exchange context
manishdex25 6da0b8f
feat: enhance bill of exchange context with additional fields
manishdex25 04cac06
feat: add sample obligation credential subject JSON and update README
manishdex25 d94243d
feat: update bill of exchange context and obligation credential subje…
manishdex25 476f78c
Update packages/w3c-vc/src/lib/helper/index.ts
manishdex25 bae9c6c
feat: enhance credential status validation with chainId assertions
manishdex25 0eaed36
fix: update chainId type handling in assertTransferableRecords test
manishdex25 96a781d
feat: add Render Methods v2 context to README
manishdex25 615d557
fix: replace deprecated Object.prototype.hasOwnProperty with Object.h…
manishdex25 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
55 changes: 55 additions & 0 deletions
55
packages/w3c-context/samples/obligation-credential-subject.sample.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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,82 @@ | ||
| { | ||
| "@context": { | ||
| "@version": 1.1, | ||
| "@protected": true, | ||
|
|
||
| "electronicDocumentIdentifier": { | ||
| "@id": "https://trustvc.io/context/terms#electronicDocumentIdentifier" | ||
| }, | ||
| "referenceNumber": { | ||
| "@id": "https://trustvc.io/context/terms#referenceNumber" | ||
| }, | ||
| "amountInFigures": { | ||
| "@id": "https://trustvc.io/context/terms#amountInFigures" | ||
| }, | ||
| "amountInWords": { | ||
| "@id": "https://trustvc.io/context/terms#amountInWords" | ||
| }, | ||
| "currencyCode": { | ||
| "@id": "https://trustvc.io/context/terms#currencyCode" | ||
| }, | ||
| "blDate": { | ||
| "@id": "https://trustvc.io/context/terms#blDate" | ||
| }, | ||
| "placeOfIssue": { | ||
| "@id": "https://trustvc.io/context/terms#placeOfIssue" | ||
| }, | ||
| "dateOfIssue": { | ||
| "@id": "https://trustvc.io/context/terms#dateOfIssue" | ||
| }, | ||
| "tenor": { | ||
| "@id": "https://trustvc.io/context/terms#tenor" | ||
| }, | ||
| "payee": { | ||
| "@id": "https://trustvc.io/context/terms#payee" | ||
| }, | ||
| "drawnUnder": { | ||
| "@id": "https://trustvc.io/context/terms#drawnUnder" | ||
| }, | ||
| "drawnUnderDate": { | ||
| "@id": "https://trustvc.io/context/terms#drawnUnderDate" | ||
| }, | ||
| "issuedBy": { | ||
| "@id": "https://trustvc.io/context/terms#issuedBy" | ||
| }, | ||
| "drawee": { | ||
| "@id": "https://trustvc.io/context/terms#drawee", | ||
| "@context": { | ||
| "@protected": true, | ||
| "name": { | ||
| "@id": "https://trustvc.io/context/terms#partyName" | ||
| }, | ||
| "address": { | ||
| "@id": "https://trustvc.io/context/terms#partyAddress" | ||
| }, | ||
| "authorisedSignatoryName": { | ||
| "@id": "https://trustvc.io/context/terms#authorisedSignatoryName" | ||
| }, | ||
| "signature": { | ||
| "@id": "https://trustvc.io/context/terms#signature" | ||
| } | ||
| } | ||
| }, | ||
| "drawer": { | ||
| "@id": "https://trustvc.io/context/terms#drawer", | ||
| "@context": { | ||
| "@protected": true, | ||
| "name": { | ||
| "@id": "https://trustvc.io/context/terms#partyName" | ||
| }, | ||
| "address": { | ||
| "@id": "https://trustvc.io/context/terms#partyAddress" | ||
| }, | ||
| "authorisedSignatoryName": { | ||
| "@id": "https://trustvc.io/context/terms#authorisedSignatoryName" | ||
| }, | ||
| "signature": { | ||
| "@id": "https://trustvc.io/context/terms#signature" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
32 changes: 32 additions & 0 deletions
32
packages/w3c-context/src/context/obligation-records-context.json
This file contains hidden or 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,32 @@ | ||
| { | ||
| "@context": { | ||
| "@version": 1.1, | ||
| "@protected": true, | ||
| "TransferableRecords": { | ||
| "@id": "https://example.com/terms#TransferableRecords", | ||
| "@type": "@id", | ||
| "@context": { | ||
| "@protected": true, | ||
| "tokenId": { | ||
| "@id": "https://example.com/terms#tokenId" | ||
| }, | ||
| "tokenNetwork": { | ||
| "@id": "https://example.com/terms#tokenNetwork", | ||
| "@context": { | ||
| "@protected": true, | ||
| "chain": { | ||
| "@id": "https://example.com/terms#chain" | ||
| }, | ||
| "chainId": { | ||
| "@id": "https://example.com/terms#chainId", | ||
| "@type": "http://www.w3.org/2001/XMLSchema#integer" | ||
| } | ||
| } | ||
| }, | ||
| "obligationRegistry": { | ||
| "@id": "https://trustvc.io/context/terms#obligationRegistry" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.