diff --git a/packages/w3c-context/README.md b/packages/w3c-context/README.md index ce96fa3..8b3d576 100644 --- a/packages/w3c-context/README.md +++ b/packages/w3c-context/README.md @@ -76,7 +76,6 @@ The package includes the following pre-cached contexts: - `https://trustvc.io/context/qrcode-context.json` - QR Code - `https://trustvc.io/context/opencerts-context.json` - OpenCerts Certificate - `https://trustvc.io/context/bill-of-exchange.json` - Bill of Exchange - - `https://trustvc.io/context/bill-of-lading.json` - Bill of Lading - `https://trustvc.io/context/bill-of-lading-carrier.json` - Bill of Lading Carrier - `https://trustvc.io/context/coo.json` - Certificate of Origin diff --git a/packages/w3c-context/samples/bill-of-exchange.sample.json b/packages/w3c-context/samples/bill-of-exchange.sample.json new file mode 100644 index 0000000..c456d53 --- /dev/null +++ b/packages/w3c-context/samples/bill-of-exchange.sample.json @@ -0,0 +1,59 @@ +{ + "@context": [ + "https://www.w3.org/ns/credentials/v2", + "https://w3id.org/security/data-integrity/v2", + "https://trustvc.io/context/render-method-context-v2.json", + "https://trustvc.io/context/bill-of-exchange.json", + "https://trustvc.io/context/transferable-records-context.json", + "https://trustvc.io/context/qrcode-context.json" + ], + "renderMethod": [ + { + "type": "EMBEDDED_RENDERER", + "templateName": "BILL_OF_EXCHANGE", + "id": "https://generic-templates.tradetrust.io" + } + ], + "credentialSubject": { + "boeNumber": "BOE-2026-00147", + "placeOfIssue": "Singapore", + "dateOfIssue": "2026-07-01", + "tenor": "90 days after sight", + "drawerCompanyName": "Meridian Commodities Pte Ltd", + "drawerCompanyNo": "UEN-202312345A", + "drawerJurisdiction": "Singapore", + "drawerAddress": "8 Marina Boulevard, #24-01, Singapore 018981", + "drawerEmail": "trade.finance@meridiancommodities.com", + "drawerWalletAddress": "0x71bE63f3384f5fb98995898A86B02Fb2426c5788", + "draweeCompanyName": "Fairview Industries Inc.", + "draweeCompanyNo": "EIN-84-1923456", + "draweeJurisdiction": "Delaware, United States", + "draweeAddress": "1201 Market Street, Suite 900, Wilmington, DE 19801, USA", + "draweeEmail": "accounts.payable@fairviewindustries.com", + "draweeWalletAddress": "0x8626f6940E2eb28930eFb4CeF49B2d1F2C9C1199", + "payeeCompanyName": "Meridian Commodities Pte Ltd", + "payeeWalletAddress": "0x71bE63f3384f5fb98995898A86B02Fb2426c5788", + "dueDate": "2026-09-29", + "currency": "USD", + "amount": "128,500.00", + "amountInWords": "One hundred twenty-eight thousand five hundred United States Dollars only", + "clause": "Pay against this Bill of Exchange, on the tenor stated above, to the order of the Payee the sum stated, value received, without set-off, deduction or counterclaim, for goods shipped under Invoice No. INV-2026-0456 and Bill of Lading No. BL-SIN-2026-0781.", + "signerName": "Wei Ling Tan", + "signerPosition": "Director of Trade Finance", + "signerEmail": "wl.tan@meridiancommodities.com", + "signerTimeStamp": "2026-07-01" + }, + "type": [ + "VerifiableCredential" + ], + "credentialStatus": { + "type": "TransferableRecords", + "tokenNetwork": { + "chain": "Sepolia", + "chainId": 11155111 + }, + "tokenRegistry": "0x9A2B1e4C8f3D5a6B7c8D9E0F1A2B3C4D5E6F7A8B" + }, + "issuer": "did:web:trustvc.github.io:did:1", + "validFrom": "2026-07-01T09:00:00Z" +}