From 0ba36a36676049546c33d27b3a94095b47a7a327 Mon Sep 17 00:00:00 2001 From: rongquan1 Date: Wed, 4 Dec 2024 10:16:40 +0800 Subject: [PATCH] feat: removal of hedera network --- build/hederatestnet/config-v2.json | 1611 ---------------------------- build/hederatestnet/config-v3.json | 1102 ------------------- package-lock.json | 638 +++-------- package.json | 4 +- src/config-v2.schema.json | 10 +- src/config-v3.schema.json | 10 +- src/constants.ts | 9 - src/generate-config.ts | 1 - test/updateForm.test.ts | 38 +- 9 files changed, 177 insertions(+), 3246 deletions(-) delete mode 100644 build/hederatestnet/config-v2.json delete mode 100644 build/hederatestnet/config-v3.json diff --git a/build/hederatestnet/config-v2.json b/build/hederatestnet/config-v2.json deleted file mode 100644 index 4b99a8b..0000000 --- a/build/hederatestnet/config-v2.json +++ /dev/null @@ -1,1611 +0,0 @@ -{ - "network": "hederatestnet", - "wallet": { - "type": "ENCRYPTED_JSON", - "encryptedJson": "{\"address\":\"ca93690bb57eeab273c796a9309246bc0fb93649\",\"id\":\"4cf5292d-2fd2-4a8f-8427-708504e5bafe\",\"version\":3,\"Crypto\":{\"cipher\":\"aes-128-ctr\",\"cipherparams\":{\"iv\":\"d9e4767bcf818615d7553a10198ca27a\"},\"ciphertext\":\"547b745aa4e4a3eefa8ffe926758f5630f42d404e790c35ac52ff2de28a893eb\",\"kdf\":\"scrypt\",\"kdfparams\":{\"salt\":\"ad90eeb7541d72ebe829bc23e9e8af23dd8d1b4ebecce14cf4c85f54fd3baa51\",\"n\":131072,\"dklen\":32,\"p\":1,\"r\":8},\"mac\":\"b1b24212a9ed8a070feac12207fb19dc296e9d48c8bfbf3315a598897e758062\"}}" - }, - "documentStorage": { - "apiKey": "randomKey", - "url": "https://tradetrust-functions.netlify.app/.netlify/functions/storage" - }, - "forms": [ - { - "name": "TradeTrust Bill of Lading v2 (Carrier)", - "type": "TRANSFERABLE_RECORD", - "defaults": { - "$template": { - "type": "EMBEDDED_RENDERER", - "name": "BILL_OF_LADING_CARRIER", - "url": "https://generic-templates.tradetrust.io" - }, - "issuers": [ - { - "name": "DEMO TOKEN REGISTRY", - "tokenRegistry": "0xA594f6e10564e87888425c7CC3910FE1c800aB0B", - "identityProof": { - "type": "DNS-TXT", - "location": "example.tradetrust.io" - }, - "revocation": { - "type": "NONE" - } - } - ], - "network": { - "chain": "HBAR", - "chainId": "296" - } - }, - "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "blNumber", - "scac" - ], - "properties": { - "blNumber": { - "type": "string", - "title": "BL Number" - }, - "scac": { - "type": "string", - "title": "Standard Carrier Alpha Code (SCAC)" - }, - "carrierName": { - "title": "Signed for the Carrier", - "type": "string" - }, - "logo": { - "type": "string", - "title": "Company Logo" - }, - "shipper": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "address": { - "type": "object", - "properties": { - "street": { - "type": "string" - }, - "country": { - "type": "string" - } - } - } - } - }, - "onwardInlandRouting": { - "type": "string", - "title": "Onward Inland Routing" - }, - "consignee": { - "type": "object", - "properties": { - "toOrderOfText": { - "title": "is consigned to (e.g. TO ORDER OF, TO ORDER, etc..)", - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "notifyParty": { - "title": "Notify Party", - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - }, - "vessel": { - "type": "string" - }, - "voyageNo": { - "title": "Voyage No.", - "type": "string" - }, - "portOfLoading": { - "title": "Port of Loading", - "type": "string" - }, - "portOfDischarge": { - "title": "Port of Discharge", - "type": "string" - }, - "placeOfReceipt": { - "title": "Place of Receipt", - "type": "string" - }, - "placeOfDelivery": { - "title": "Place of Delivery", - "type": "string" - }, - "packages": { - "type": "array", - "title": "Packages", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "measurement": { - "type": "string" - }, - "weight": { - "type": "string" - } - } - } - }, - "carrierReceipt": { - "title": "Carrier's Receipt", - "type": "string" - }, - "placeOfIssueBL": { - "title": "Place of Issue of B/L", - "type": "string" - }, - "numberOfOriginalBL": { - "title": "Number of original B/L", - "type": "string" - }, - "dateOfIssueBL": { - "title": "Date of Issue of B/L", - "type": "string" - }, - "shippedOnBoardDate": { - "title": "Shipped on Board Date", - "type": "string" - }, - "signForTermsAndCondition": { - "title": "Signed for Terms and Conditions", - "type": "string" - }, - "signedForCarrierText": { - "title": "Text for signed for carrier", - "type": "string" - }, - "carrierSignature": { - "type": "string", - "title": "Carrier Signature" - }, - "termsOfCarriage": { - "type": "string", - "title": "Terms Of Carriage" - } - } - }, - "uiSchema": { - "logo": { - "ui:widget": "file", - "ui:options": { - "text": "Upload Company Logo", - "accept": ".png, .jpeg, .jpg" - } - }, - "notifyParty": { - "name": { - "ui:widget": "textarea" - } - }, - "packages": { - "items": { - "description": { - "ui:widget": "textarea" - } - } - }, - "carrierReceipt": { - "ui:widget": "textarea" - }, - "placeOfIssueBL": { - "ui:widget": "textarea" - }, - "numberOfOriginalBL": { - "ui:widget": "textarea" - }, - "dateOfIssueBL": { - "ui:widget": "date" - }, - "shippedOnBoardDate": { - "ui:widget": "date" - }, - "signForTermsAndCondition": { - "ui:widget": "textarea" - }, - "carrierSignature": { - "ui:widget": "file", - "ui:options": { - "text": "Upload Carrier Signature", - "accept": ".png, .jpeg, .jpg" - } - }, - "termsOfCarriage": { - "ui:widget": "textarea" - } - }, - "attachments": { - "allow": true, - "accept": ".pdf, .json" - }, - "extension": "tt", - "fileName": "bill-<%= blNumber %>" - }, - { - "name": "TradeTrust Bill of Lading v2", - "type": "TRANSFERABLE_RECORD", - "defaults": { - "$template": { - "type": "EMBEDDED_RENDERER", - "name": "BILL_OF_LADING", - "url": "https://generic-templates.tradetrust.io" - }, - "issuers": [ - { - "name": "DEMO TOKEN REGISTRY", - "tokenRegistry": "0xA594f6e10564e87888425c7CC3910FE1c800aB0B", - "identityProof": { - "type": "DNS-TXT", - "location": "example.tradetrust.io" - }, - "revocation": { - "type": "NONE" - } - } - ], - "network": { - "chain": "HBAR", - "chainId": "296" - } - }, - "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "blNumber", - "scac" - ], - "properties": { - "blNumber": { - "type": "string", - "title": "BL Number" - }, - "scac": { - "type": "string", - "title": "Standard Carrier Alpha Code (SCAC)" - }, - "carrierName": { - "title": "Signed for the Carrier", - "type": "string" - }, - "shipper": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "address": { - "type": "object", - "properties": { - "street": { - "type": "string" - }, - "country": { - "type": "string" - } - } - } - } - }, - "consignee": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - }, - "notifyParty": { - "title": "Notify Party", - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - }, - "vessel": { - "type": "string" - }, - "voyageNo": { - "title": "Voyage No.", - "type": "string" - }, - "portOfLoading": { - "title": "Port of Loading", - "type": "string" - }, - "portOfDischarge": { - "title": "Port of Discharge", - "type": "string" - }, - "placeOfReceipt": { - "title": "Place of Receipt", - "type": "string" - }, - "placeOfDelivery": { - "title": "Place of Delivery", - "type": "string" - }, - "packages": { - "type": "array", - "title": "Packages", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "measurement": { - "type": "string" - }, - "weight": { - "type": "string" - } - } - } - } - } - }, - "attachments": { - "allow": true, - "accept": ".pdf, .json" - }, - "extension": "tt", - "fileName": "bill-<%= blNumber %>" - }, - { - "name": "TradeTrust ChAFTA Certificate of Origin v2", - "type": "VERIFIABLE_DOCUMENT", - "defaults": { - "$template": { - "type": "EMBEDDED_RENDERER", - "name": "CHAFTA_COO", - "url": "https://generic-templates.tradetrust.io" - }, - "issuers": [ - { - "name": "Demo Issuer", - "documentStore": "0x93092C2B449712281008112870063fF439367C00", - "identityProof": { - "type": "DNS-TXT", - "location": "example.tradetrust.io" - }, - "revocation": { - "type": "NONE" - } - } - ], - "network": { - "chain": "HBAR", - "chainId": "296" - } - }, - "schema": { - "type": "object", - "additionalProperties": false, - "properties": { - "iD": { - "type": "string", - "title": "COO ID" - }, - "issueDateTime": { - "type": "string", - "title": "Issued Date & Time" - }, - "firstSignatoryAuthentication": { - "title": "Signatory Authentication", - "type": "object", - "properties": { - "signature": { - "type": "string", - "title": "First Signatory" - } - } - }, - "supplyChainConsignment": { - "title": "Supply Chain Consignment", - "type": "object", - "properties": { - "iD": { - "type": "string", - "title": "ID" - }, - "information": { - "type": "string", - "title": "Consignment Information" - }, - "exportCountry": { - "title": "Export Country", - "type": "object", - "properties": { - "code": { - "type": "string", - "title": "Country Code" - } - } - }, - "exporter": { - "title": "Exporter", - "type": "object", - "properties": { - "iD": { - "title": "ID", - "type": "string" - }, - "name": { - "title": "Name", - "type": "string" - }, - "postalAddress": { - "title": "", - "type": "object", - "properties": { - "line1": { - "type": "string", - "title": "Address Line 1" - }, - "line2": { - "type": "string", - "title": "Address Line 2" - }, - "cityName": { - "type": "string", - "title": "City" - }, - "postcode": { - "type": "string", - "title": "Postal Code" - }, - "countrySubDivisionName": { - "type": "string", - "title": "Country Sub Division Name" - }, - "countryCode": { - "type": "string", - "title": "Country Code" - } - } - } - } - }, - "importCountry": { - "type": "object", - "title": "Import Country", - "properties": { - "code": { - "type": "string", - "title": "Country Code" - } - } - }, - "importer": { - "title": "Importer's Details (if known)", - "type": "object", - "properties": { - "iD": { - "title": "Importer ID", - "type": "string" - }, - "name": { - "title": "Name", - "type": "string" - }, - "postalAddress": { - "title": "", - "type": "object", - "properties": { - "line1": { - "type": "string", - "title": "Address Line 1" - }, - "line2": { - "type": "string", - "title": "Address Line 2" - }, - "cityName": { - "type": "string", - "title": "City" - }, - "postcode": { - "type": "string", - "title": "Postal Code" - }, - "countrySubDivisionName": { - "type": "string", - "title": "Country Sub Division Name" - }, - "countryCode": { - "type": "string", - "title": "Country Code" - } - } - } - } - }, - "includedConsignmentItems": { - "type": "array", - "title": "Included Consignment Items", - "items": { - "type": "object", - "properties": { - "iD": { - "type": "string", - "title": "ID" - }, - "information": { - "type": "string", - "title": "Information" - }, - "crossBorderRegulatoryProcedure": { - "type": "object", - "title": "", - "properties": { - "originCriteriaText": { - "type": "string", - "title": "Origin Criteria Text" - } - } - }, - "manufacturer": { - "type": "object", - "title": "Manufacturer", - "properties": { - "iD": { - "type": "string", - "title": "ID" - }, - "name": { - "type": "string", - "title": "Name" - }, - "postalAddress": { - "title": "", - "type": "object", - "properties": { - "line1": { - "type": "string", - "title": "Address Line 1" - }, - "line2": { - "type": "string", - "title": "Address Line 2" - }, - "cityName": { - "type": "string", - "title": "City" - }, - "postcode": { - "type": "string", - "title": "Postal Code" - }, - "countrySubDivisionName": { - "type": "string", - "title": "Country Sub Division Name" - }, - "countryCode": { - "type": "string", - "title": "Country Code" - } - } - } - } - }, - "tradeLineItems": { - "type": "array", - "title": "Trade line Items", - "items": { - "type": "object", - "properties": { - "sequenceNumber": { - "type": "integer", - "title": "Sequence Number" - }, - "invoiceReference": { - "type": "object", - "title": "Invoice Reference", - "properties": { - "iD": { - "type": "string", - "title": "ID" - }, - "formattedIssueDateTime": { - "type": "string", - "title": "Formatted Issue Date & Time" - }, - "attachedBinaryFile": { - "type": "object", - "title": "", - "properties": { - "uRI": { - "type": "string", - "title": "Attached Binary File URI" - } - } - } - } - }, - "tradeProduct": { - "type": "object", - "title": "Trade Product", - "properties": { - "iD": { - "type": "string", - "title": "ID" - }, - "description": { - "type": "string", - "title": "Description" - }, - "harmonisedTariffCode": { - "type": "object", - "title": "", - "properties": { - "classCode": { - "type": "string", - "title": "Harmonised Tariff Class Code" - }, - "className": { - "type": "string", - "title": "Harmonised Tariff Class Name" - } - } - }, - "originCountry": { - "type": "object", - "title": "Origin Country", - "properties": { - "code": { - "type": "string", - "title": "Code" - } - } - } - } - }, - "transportPackages": { - "type": "array", - "title": "Transport Packages", - "items": { - "type": "object", - "properties": { - "iD": { - "type": "string", - "title": "ID" - }, - "grossVolume": { - "type": "string", - "title": "Gross Volume" - }, - "grossWeight": { - "type": "string", - "title": "Gross Weight" - } - } - } - } - } - } - } - } - } - }, - "loadingBaseportLocation": { - "type": "object", - "title": "Loading Baseport Location", - "properties": { - "iD": { - "type": "string", - "title": "ID" - }, - "name": { - "type": "string", - "title": "Name" - } - } - }, - "mainCarriageTransportMovement": { - "title": "Main Carriage Transport Movement", - "type": "object", - "properties": { - "iD": { - "type": "string", - "title": "ID" - }, - "information": { - "type": "string", - "title": "Information" - }, - "usedTransportMeans": { - "title": "", - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "Used Transport" - }, - "iD": { - "type": "string", - "title": "Used Transport ID" - } - } - }, - "departureEvent": { - "title": "", - "type": "object", - "properties": { - "departureDateTime": { - "type": "string", - "title": "Departure Date and Time" - } - } - } - } - }, - "unloadingBaseportLocation": { - "type": "object", - "title": "Unloading Baseport Location", - "properties": { - "iD": { - "type": "string", - "title": "ID" - }, - "name": { - "type": "string", - "title": "Name" - } - } - } - } - } - } - }, - "uiSchema": { - "issueDateTime": { - "ui:widget": "datetime" - }, - "firstSignatoryAuthentication": { - "signature": { - "ui:widget": "file", - "ui:options": { - "text": "Upload Signature", - "accept": ".png, .jpeg, .jpg" - } - } - }, - "supplyChainConsignment": { - "includedConsignmentItems": { - "items": { - "tradeLineItems": { - "items": { - "invoiceReference": { - "formattedIssueDateTime": { - "ui:widget": "datetime" - } - } - } - } - } - }, - "mainCarriageTransportMovement": { - "departureEvent": { - "departureDateTime": { - "ui:widget": "datetime" - } - } - } - } - }, - "attachments": { - "allow": true, - "accept": ".pdf" - }, - "extension": "tt" - }, - { - "name": "TradeTrust Simple Certificate of Origin v2", - "type": "VERIFIABLE_DOCUMENT", - "defaults": { - "$template": { - "type": "EMBEDDED_RENDERER", - "name": "SIMPLE_COO", - "url": "https://generic-templates.tradetrust.io" - }, - "issuers": [ - { - "name": "Demo Issuer", - "documentStore": "0x93092C2B449712281008112870063fF439367C00", - "identityProof": { - "type": "DNS-TXT", - "location": "example.tradetrust.io" - }, - "revocation": { - "type": "NONE" - } - } - ], - "network": { - "chain": "HBAR", - "chainId": "296" - } - }, - "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "documentName" - ], - "properties": { - "documentName": { - "type": "string", - "title": "Document Name" - }, - "cooId": { - "type": "string", - "title": "COO ID" - }, - "issueIn": { - "type": "string", - "title": "Issued In" - }, - "issueDateAndTime": { - "type": "string", - "title": "Issued Date & Time" - }, - "exporterDetails": { - "title": "Exporter Details", - "type": "object", - "properties": { - "exportCountry": { - "type": "string", - "title": "Export Country" - }, - "exporterName": { - "type": "string", - "title": "Exporter Name" - }, - "exporterAddress": { - "title": "Exporter Address", - "type": "object", - "properties": { - "line1": { - "type": "string", - "title": "Address Line 1" - }, - "line2": { - "type": "string", - "title": "Address Line 2" - }, - "postalCode": { - "type": "string", - "title": "Postal Code" - } - } - } - } - }, - "importerDetails": { - "title": "Importer Details", - "type": "object", - "properties": { - "importCountry": { - "type": "string", - "title": "Import Country" - }, - "importerName": { - "type": "string", - "title": "Importer Name" - }, - "importerAddress": { - "title": "Importer Address", - "type": "object", - "properties": { - "line1": { - "type": "string", - "title": "Address Line 1" - }, - "line2": { - "type": "string", - "title": "Address Line 2" - }, - "postalCode": { - "type": "string", - "title": "Postal Code" - } - } - } - } - }, - "descriptionOfGoods": { - "type": "object", - "title": "Description of Goods", - "properties": { - "includedConsignments": { - "type": "string", - "title": "Included Consignments" - }, - "importerNameMarksAndNumber": { - "type": "string", - "title": "Importer Name, Marks & Number" - }, - "numberAndKindOfPackage": { - "type": "string", - "title": "Number & Kind of Package" - }, - "hsCode": { - "type": "string", - "title": "Harmonised System (HS) Code" - }, - "invoiceNumber": { - "type": "string", - "title": "Invoice Number" - }, - "dateOfInvoice": { - "type": "string", - "title": "Date of Invoice" - }, - "loadingBaseportLocationName": { - "type": "string", - "title": "Loading Baseport Location Name" - }, - "mainCarriageTransportMovementId": { - "type": "string", - "title": "Main Carriage Transport Movement ID" - } - } - }, - "firstSignatoryAuthentication": { - "title": "Signatory Authentication", - "type": "object", - "properties": { - "signature": { - "type": "string", - "title": "First Signatory" - }, - "actualDate": { - "type": "string", - "title": "Date" - }, - "statement": { - "type": "string", - "title": "Statement" - } - } - } - } - }, - "uiSchema": { - "firstSignatoryAuthentication": { - "signature": { - "ui:widget": "file", - "ui:options": { - "text": "Upload Signature", - "accept": ".png, .jpeg, .jpg" - } - }, - "actualDate": { - "ui:widget": "date" - } - }, - "issueDateAndTime": { - "ui:widget": "datetime" - }, - "descriptionOfGoods": { - "dateOfInvoice": { - "ui:widget": "date" - } - } - }, - "extension": "tt" - }, - { - "name": "TradeTrust Covering Letter v2", - "type": "VERIFIABLE_DOCUMENT", - "defaults": { - "$template": { - "type": "EMBEDDED_RENDERER", - "name": "COVERING_LETTER", - "url": "https://generic-templates.tradetrust.io" - }, - "issuers": [ - { - "name": "Demo Issuer", - "documentStore": "0x93092C2B449712281008112870063fF439367C00", - "identityProof": { - "type": "DNS-TXT", - "location": "example.tradetrust.io" - }, - "revocation": { - "type": "NONE" - } - } - ], - "network": { - "chain": "HBAR", - "chainId": "296" - } - }, - "schema": { - "type": "object", - "additionalProperties": false, - "properties": { - "logo": { - "type": "string", - "title": "Document Title" - }, - "title": { - "type": "string", - "title": "Document Title" - }, - "remarks": { - "type": "string", - "title": "Remarks" - }, - "backgroundColor": { - "type": "string", - "title": "Background Color" - }, - "titleColor": { - "type": "string", - "title": "Title Color" - }, - "remarksColor": { - "type": "string", - "title": "Remarks Color" - } - } - }, - "attachments": { - "allow": true - }, - "uiSchema": { - "logo": { - "ui:widget": "file", - "ui:options": { - "text": "Upload Cover Letter Logo", - "accept": ".png, .jpeg, .jpg" - } - }, - "remarks": { - "ui:widget": "textarea" - }, - "backgroundColor": { - "ui:widget": "color", - "ui:options": { - "emptyValue": "#ffffff" - } - }, - "titleColor": { - "ui:widget": "color", - "ui:options": { - "emptyValue": "#4e4e50" - } - }, - "remarksColor": { - "ui:widget": "color", - "ui:options": { - "emptyValue": "#4e4e50" - } - } - }, - "extension": "tt" - }, - { - "name": "TradeTrust Invoice v2 (DNS-DID)", - "type": "VERIFIABLE_DOCUMENT", - "defaults": { - "$template": { - "type": "EMBEDDED_RENDERER", - "name": "INVOICE", - "url": "https://generic-templates.tradetrust.io" - }, - "issuers": [ - { - "id": "did:ethr:0xca93690bb57eeab273c796a9309246bc0fb93649", - "name": "Demo DNS-DID", - "identityProof": { - "type": "DNS-DID", - "location": "example.tradetrust.io", - "key": "did:ethr:0xca93690bb57eeab273c796a9309246bc0fb93649#controller" - }, - "revocation": { - "type": "NONE" - } - } - ], - "network": { - "chain": "HBAR", - "chainId": "296" - } - }, - "schema": { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "type": "string", - "title": "Invoice ID" - }, - "date": { - "type": "string", - "title": "Date" - }, - "customerId": { - "type": "string", - "title": "Customer ID" - }, - "terms": { - "type": "string", - "title": "Terms" - }, - "billFrom": { - "type": "object", - "title": "Bill From", - "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "streetAddress": { - "type": "string", - "title": "Street Address" - }, - "city": { - "type": "string", - "title": "City" - }, - "postalCode": { - "type": "string", - "title": "Postal Code" - }, - "phoneNumber": { - "type": "string", - "title": "Phone Number" - } - } - }, - "billTo": { - "type": "object", - "title": "Bill To", - "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "email": { - "type": "string", - "title": "Email" - }, - "company": { - "type": "object", - "title": "Bill To Company", - "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "streetAddress": { - "type": "string", - "title": "Street Address" - }, - "city": { - "type": "string", - "title": "City" - }, - "postalCode": { - "type": "string", - "title": "Postal Code" - }, - "phoneNumber": { - "type": "string", - "title": "Phone Number" - } - } - } - } - }, - "billableItems": { - "type": "array", - "title": "Billable Items", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string", - "title": "Description" - }, - "quantity": { - "type": "string", - "title": "Quantity" - }, - "unitPrice": { - "type": "string", - "title": "Unit Price" - }, - "amount": { - "type": "string", - "title": "Amount" - } - } - } - }, - "subtotal": { - "type": "string", - "title": "Subtotal" - }, - "tax": { - "type": "string", - "title": "Tax (%)" - }, - "taxTotal": { - "type": "string", - "title": "Tax Total" - }, - "total": { - "type": "string", - "title": "Total" - } - } - }, - "uiSchema": { - "date": { - "ui:widget": "date" - } - }, - "extension": "tt" - }, - { - "name": "TradeTrust Invoice v2", - "type": "VERIFIABLE_DOCUMENT", - "defaults": { - "$template": { - "type": "EMBEDDED_RENDERER", - "name": "INVOICE", - "url": "https://generic-templates.tradetrust.io" - }, - "issuers": [ - { - "name": "Demo Issuer", - "documentStore": "0x93092C2B449712281008112870063fF439367C00", - "identityProof": { - "type": "DNS-TXT", - "location": "example.tradetrust.io" - }, - "revocation": { - "type": "NONE" - } - } - ], - "network": { - "chain": "HBAR", - "chainId": "296" - } - }, - "schema": { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "type": "string", - "title": "Invoice ID" - }, - "date": { - "type": "string", - "title": "Date" - }, - "customerId": { - "type": "string", - "title": "Customer ID" - }, - "terms": { - "type": "string", - "title": "Terms" - }, - "billFrom": { - "type": "object", - "title": "Bill From", - "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "streetAddress": { - "type": "string", - "title": "Street Address" - }, - "city": { - "type": "string", - "title": "City" - }, - "postalCode": { - "type": "string", - "title": "Postal Code" - }, - "phoneNumber": { - "type": "string", - "title": "Phone Number" - } - } - }, - "billTo": { - "type": "object", - "title": "Bill To", - "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "email": { - "type": "string", - "title": "Email" - }, - "company": { - "type": "object", - "title": "Bill To Company", - "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "streetAddress": { - "type": "string", - "title": "Street Address" - }, - "city": { - "type": "string", - "title": "City" - }, - "postalCode": { - "type": "string", - "title": "Postal Code" - }, - "phoneNumber": { - "type": "string", - "title": "Phone Number" - } - } - } - } - }, - "billableItems": { - "type": "array", - "title": "Billable Items", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string", - "title": "Description" - }, - "quantity": { - "type": "string", - "title": "Quantity" - }, - "unitPrice": { - "type": "string", - "title": "Unit Price" - }, - "amount": { - "type": "string", - "title": "Amount" - } - } - } - }, - "subtotal": { - "type": "string", - "title": "Subtotal" - }, - "tax": { - "type": "string", - "title": "Tax (%)" - }, - "taxTotal": { - "type": "string", - "title": "Tax Total" - }, - "total": { - "type": "string", - "title": "Total" - } - } - }, - "uiSchema": { - "date": { - "ui:widget": "date" - } - }, - "extension": "tt" - }, - { - "name": "TradeTrust Warehouse Receipt v2", - "type": "TRANSFERABLE_RECORD", - "defaults": { - "$template": { - "type": "EMBEDDED_RENDERER", - "name": "WAREHOUSE_RECEIPT", - "url": "https://generic-templates.tradetrust.io" - }, - "issuers": [ - { - "name": "DEMO TOKEN REGISTRY", - "tokenRegistry": "0xA594f6e10564e87888425c7CC3910FE1c800aB0B", - "identityProof": { - "type": "DNS-TXT", - "location": "example.tradetrust.io" - }, - "revocation": { - "type": "NONE" - } - } - ], - "network": { - "chain": "HBAR", - "chainId": "296" - } - }, - "schema": { - "type": "object", - "additionalProperties": false, - "properties": { - "logo": { - "type": "string", - "title": "Company logo" - }, - "spl": { - "type": "string", - "title": "SPL Number" - }, - "warehouseReceiptDetails": { - "type": "object", - "title": "Warehouse Receipt Details", - "properties": { - "warehouseReceipt": { - "type": "string", - "title": "Warehouse Receipt Number" - }, - "issuanceDate": { - "type": "string", - "title": "Issuance Date" - }, - "ourRef": { - "type": "string", - "title": "Our Ref" - }, - "rentStartDate": { - "type": "string", - "title": "Rent Start Date" - }, - "yourRef": { - "type": "string", - "title": "Your Ref(s)" - }, - "commodity": { - "type": "string", - "title": "Commodity" - }, - "documentType": { - "type": "string", - "title": "Document Type" - }, - "order": { - "type": "string", - "title": "TO THE ORDER OF" - }, - "account": { - "type": "string", - "title": "FOR THE ACCOUNT OF" - } - } - }, - "goods": { - "type": "array", - "title": "Goods", - "items": { - "type": "object", - "properties": { - "brand": { - "type": "string", - "title": "Brand / Shape" - }, - "piles": { - "type": "string", - "title": "Piles" - }, - "bundles": { - "type": "string", - "title": "Bundles" - }, - "pieces": { - "type": "string", - "title": "Pieces" - }, - "netWeight": { - "type": "string", - "title": "Net Weight (MT)" - }, - "grossWeight": { - "type": "string", - "title": "Gross Weight (MT)" - } - } - } - }, - "totalNetWeight": { - "type": "string", - "title": "Total Net Weight (MTs)" - }, - "warehouseAddress": { - "type": "string", - "title": "Warehouse Address" - }, - "markings": { - "type": "string", - "title": "Markings / Remarks" - }, - "storageAndServicesTerms": { - "type": "string", - "title": "Storage And Services Terms" - }, - "signature": { - "type": "string", - "title": "Issuer Signature" - }, - "termsAndConditions": { - "type": "string", - "title": "Terms And Conditions" - } - } - }, - "uiSchema": { - "logo": { - "ui:widget": "file", - "ui:options": { - "text": "Upload Company Logo", - "accept": ".png, .jpeg, .jpg" - } - }, - "warehouseReceiptDetails": { - "issuanceDate": { - "ui:widget": "date" - }, - "rentStartDate": { - "ui:widget": "date" - } - }, - "storageAndServicesTerms": { - "ui:widget": "textarea" - }, - "signature": { - "ui:widget": "file", - "ui:options": { - "text": "Upload Issuer Signature", - "accept": ".png, .jpeg, .jpg" - } - }, - "termsAndConditions": { - "ui:widget": "textarea" - } - }, - "extension": "tt" - } - ] -} \ No newline at end of file diff --git a/build/hederatestnet/config-v3.json b/build/hederatestnet/config-v3.json deleted file mode 100644 index 7bf1539..0000000 --- a/build/hederatestnet/config-v3.json +++ /dev/null @@ -1,1102 +0,0 @@ -{ - "network": "hederatestnet", - "wallet": { - "type": "ENCRYPTED_JSON", - "encryptedJson": "{\"address\":\"ca93690bb57eeab273c796a9309246bc0fb93649\",\"id\":\"4cf5292d-2fd2-4a8f-8427-708504e5bafe\",\"version\":3,\"Crypto\":{\"cipher\":\"aes-128-ctr\",\"cipherparams\":{\"iv\":\"d9e4767bcf818615d7553a10198ca27a\"},\"ciphertext\":\"547b745aa4e4a3eefa8ffe926758f5630f42d404e790c35ac52ff2de28a893eb\",\"kdf\":\"scrypt\",\"kdfparams\":{\"salt\":\"ad90eeb7541d72ebe829bc23e9e8af23dd8d1b4ebecce14cf4c85f54fd3baa51\",\"n\":131072,\"dklen\":32,\"p\":1,\"r\":8},\"mac\":\"b1b24212a9ed8a070feac12207fb19dc296e9d48c8bfbf3315a598897e758062\"}}" - }, - "documentStorage": { - "apiKey": "randomKey", - "url": "https://tradetrust-functions.netlify.app/.netlify/functions/storage" - }, - "forms": [ - { - "name": "TradeTrust Bill of Lading v3", - "type": "TRANSFERABLE_RECORD", - "defaults": { - "version": "https://schema.openattestation.com/3.0/schema.json", - "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://schemata.openattestation.com/com/openattestation/1.0/OpenAttestation.v3.json", - "https://schemata.openattestation.com/io/tradetrust/bill-of-lading/1.0/bill-of-lading-context.json" - ], - "type": [ - "VerifiableCredential", - "OpenAttestationCredential" - ], - "issuanceDate": "2010-01-01T19:23:24Z", - "openAttestationMetadata": { - "template": { - "type": "EMBEDDED_RENDERER", - "name": "BILL_OF_LADING", - "url": "https://generic-templates.tradetrust.io" - }, - "proof": { - "type": "OpenAttestationProofMethod", - "method": "TOKEN_REGISTRY", - "value": "0xA594f6e10564e87888425c7CC3910FE1c800aB0B", - "revocation": { - "type": "NONE" - } - }, - "identityProof": { - "type": "DNS-TXT", - "identifier": "example.tradetrust.io" - } - }, - "credentialSubject": {}, - "issuer": { - "id": "https://example.com", - "name": "DEMO TOKEN REGISTRY", - "type": "OpenAttestationIssuer" - }, - "network": { - "chain": "HBAR", - "chainId": "296" - } - }, - "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "blNumber", - "scac" - ], - "properties": { - "blNumber": { - "type": "string", - "title": "BL Number" - }, - "scac": { - "type": "string", - "title": "Standard Carrier Alpha Code (SCAC)" - }, - "carrierName": { - "title": "Signed for the Carrier", - "type": "string" - }, - "shipper": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "address": { - "type": "object", - "properties": { - "street": { - "type": "string" - }, - "country": { - "type": "string" - } - } - } - } - }, - "consignee": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - }, - "notifyParty": { - "title": "Notify Party", - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - }, - "vessel": { - "type": "string" - }, - "voyageNo": { - "title": "Voyage No.", - "type": "string" - }, - "portOfLoading": { - "title": "Port of Loading", - "type": "string" - }, - "portOfDischarge": { - "title": "Port of Discharge", - "type": "string" - }, - "placeOfReceipt": { - "title": "Place of Receipt", - "type": "string" - }, - "placeOfDelivery": { - "title": "Place of Delivery", - "type": "string" - }, - "packages": { - "type": "array", - "title": "Packages", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "measurement": { - "type": "string" - }, - "weight": { - "type": "string" - } - } - } - } - } - } - }, - { - "name": "TradeTrust ChAFTA Certificate of Origin v3", - "type": "VERIFIABLE_DOCUMENT", - "defaults": { - "version": "https://schema.openattestation.com/3.0/schema.json", - "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://schemata.openattestation.com/io/tradetrust/certificate-of-origin/1.0/certificate-of-origin-context.json", - "https://schemata.openattestation.com/com/openattestation/1.0/OpenAttestation.v3.json" - ], - "type": [ - "VerifiableCredential", - "OpenAttestationCredential" - ], - "issuanceDate": "2010-01-01T19:23:24Z", - "openAttestationMetadata": { - "template": { - "type": "EMBEDDED_RENDERER", - "name": "CHAFTA_COO", - "url": "https://generic-templates.tradetrust.io" - }, - "proof": { - "type": "OpenAttestationProofMethod", - "method": "DOCUMENT_STORE", - "value": "0x93092C2B449712281008112870063fF439367C00", - "revocation": { - "type": "NONE" - } - }, - "identityProof": { - "type": "DNS-TXT", - "identifier": "example.tradetrust.io" - } - }, - "credentialSubject": {}, - "issuer": { - "id": "https://example.com", - "name": "DEMO DOCUMENT STORE", - "type": "OpenAttestationIssuer" - }, - "network": { - "chain": "HBAR", - "chainId": "296" - } - }, - "schema": { - "type": "object", - "additionalProperties": false, - "properties": { - "iD": { - "type": "string", - "title": "COO ID" - }, - "issueDateTime": { - "type": "string", - "title": "Issued Date & Time" - }, - "firstSignatoryAuthentication": { - "title": "Signatory Authentication", - "type": "object", - "properties": { - "signature": { - "type": "string", - "title": "First Signatory" - }, - "actualDateTime": { - "type": "string", - "title": "Actual Date Time" - } - } - }, - "supplyChainConsignment": { - "type": "object", - "properties": { - "iD": { - "type": "string", - "title": "iD" - }, - "information": { - "type": "string", - "title": "Consignment Information" - }, - "exportCountry": { - "title": "Export country", - "type": "object", - "properties": { - "code": { - "type": "string", - "title": "Country code" - } - } - }, - "exporter": { - "title": "Exporter", - "type": "object", - "properties": { - "iD": { - "title": "iD", - "type": "string" - }, - "name": { - "title": "Name", - "type": "string" - }, - "postalAddress": { - "title": "", - "type": "object", - "properties": { - "line1": { - "type": "string", - "title": "Address Line 1" - }, - "line2": { - "type": "string", - "title": "Address Line 2" - }, - "cityName": { - "type": "string", - "title": "City" - }, - "postcode": { - "type": "string", - "title": "Postal code" - }, - "countrySubDivisionName": { - "type": "string", - "title": "Country Sub Division name" - }, - "countryCode": { - "type": "string", - "title": "Country code" - } - } - } - } - }, - "importCountry": { - "type": "object", - "title": "Import country", - "properties": { - "code": { - "type": "string", - "title": "Country code" - } - } - }, - "importer": { - "title": "Importer's Details (if known)", - "type": "object", - "properties": { - "iD": { - "title": "importer iD", - "type": "string" - }, - "name": { - "title": "Name", - "type": "string" - }, - "postalAddress": { - "title": "", - "type": "object", - "properties": { - "line1": { - "type": "string", - "title": "Address Line 1" - }, - "line2": { - "type": "string", - "title": "Address Line 2" - }, - "cityName": { - "type": "string", - "title": "City" - }, - "postcode": { - "type": "string", - "title": "Postal code" - }, - "countrySubDivisionName": { - "type": "string", - "title": "Country Sub Division name" - }, - "countryCode": { - "type": "string", - "title": "Country code" - } - } - } - } - }, - "includedConsignmentItems": { - "type": "array", - "title": "Included Consignment Items", - "items": { - "type": "object", - "properties": { - "iD": { - "type": "string", - "title": "iD" - }, - "information": { - "type": "string", - "title": "Information" - }, - "crossBorderRegulatoryProcedure": { - "type": "object", - "title": "", - "properties": { - "originCriteriaText": { - "type": "string", - "title": "Origin criteria text" - } - } - }, - "manufacturer": { - "type": "object", - "title": "Manufacturer", - "properties": { - "iD": { - "type": "string", - "title": "iD" - }, - "name": { - "type": "string", - "title": "Name" - }, - "postalAddress": { - "title": "", - "type": "object", - "properties": { - "line1": { - "type": "string", - "title": "Address Line 1" - }, - "line2": { - "type": "string", - "title": "Address Line 2" - }, - "cityName": { - "type": "string", - "title": "City" - }, - "postcode": { - "type": "string", - "title": "Postal code" - }, - "countrySubDivisionName": { - "type": "string", - "title": "Country Sub Division name" - }, - "countryCode": { - "type": "string", - "title": "Country code" - } - } - } - } - }, - "tradeLineItems": { - "type": "array", - "title": "Trade line Items", - "items": { - "type": "object", - "properties": { - "sequenceNumber": { - "type": "integer", - "title": "Sequence Number" - }, - "invoiceReference": { - "type": "object", - "title": "Invoice reference", - "properties": { - "iD": { - "type": "string", - "title": "iD" - }, - "formattedIssueDateTime": { - "type": "string", - "title": "Formatted issue date & time" - }, - "attachedBinaryFile": { - "type": "object", - "title": "", - "properties": { - "uRI": { - "type": "string", - "title": "Attached binary file uRI" - } - } - } - } - }, - "tradeProduct": { - "type": "object", - "title": "Trade product", - "properties": { - "iD": { - "type": "string", - "title": "iD" - }, - "description": { - "type": "string", - "title": "Description" - }, - "harmonisedTariffCode": { - "type": "object", - "title": "", - "properties": { - "classCode": { - "type": "string", - "title": "Harmonised tariff class code" - }, - "className": { - "type": "string", - "title": "Harmonised tariff class name" - } - } - }, - "originCountry": { - "type": "object", - "title": "Origin country", - "properties": { - "code": { - "type": "string", - "title": "Code" - } - } - } - } - }, - "transportPackages": { - "type": "array", - "title": "Transport packages", - "items": { - "type": "object", - "properties": { - "iD": { - "type": "string", - "title": "iD" - }, - "grossVolume": { - "type": "string", - "title": "Gross volume" - }, - "grossWeight": { - "type": "string", - "title": "Gross weight" - } - } - } - } - } - } - } - } - } - }, - "loadingBaseportLocation": { - "type": "object", - "title": "Loading Baseport Location", - "properties": { - "iD": { - "type": "string", - "title": "iD" - }, - "name": { - "type": "string", - "title": "Name" - } - } - }, - "mainCarriageTransportMovement": { - "title": "Main Carraige Transport Movement", - "type": "object", - "properties": { - "iD": { - "type": "string", - "title": "iD" - }, - "information": { - "type": "string", - "title": "Information" - }, - "usedTransportMeans": { - "title": "", - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "Used transport" - }, - "iD": { - "type": "string", - "title": "Used transport iD" - } - } - }, - "departureEvent": { - "title": "", - "type": "object", - "properties": { - "departureDateTime": { - "type": "string", - "title": "Departure date and time" - } - } - } - } - }, - "unloadingBaseportLocation": { - "type": "object", - "title": "Unloading Baseport Location", - "properties": { - "iD": { - "type": "string", - "title": "iD" - }, - "name": { - "type": "string", - "title": "Name" - } - } - } - } - } - } - }, - "uiSchema": { - "firstSignatoryAuthentication": { - "signature": { - "ui:widget": "file", - "ui:options": { - "text": "Upload Signature", - "accept": ".png, .jpeg, .jpg" - } - }, - "actualDateTime": { - "ui:widget": "datetime" - } - }, - "issueDateTime": { - "ui:widget": "datetime" - }, - "supplyChainConsignment": { - "includedConsignmentItems": { - "items": { - "tradeLineItems": { - "items": { - "invoiceReference": { - "formattedIssueDateTime": { - "ui:widget": "datetime" - } - } - } - } - } - }, - "mainCarriageTransportMovement": { - "departureEvent": { - "departureDateTime": { - "ui:widget": "datetime" - } - } - } - } - }, - "attachments": { - "allow": true, - "accept": ".pdf" - }, - "extension": "tt" - }, - { - "name": "TradeTrust Covering Letter v3", - "type": "VERIFIABLE_DOCUMENT", - "defaults": { - "version": "https://schema.openattestation.com/3.0/schema.json", - "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://schemata.openattestation.com/io/tradetrust/cover-letter/1.0/cover-letter-context.json", - "https://schemata.openattestation.com/com/openattestation/1.0/OpenAttestation.v3.json" - ], - "type": [ - "VerifiableCredential", - "OpenAttestationCredential" - ], - "issuanceDate": "2010-01-01T19:23:24Z", - "openAttestationMetadata": { - "template": { - "type": "EMBEDDED_RENDERER", - "name": "COVERING_LETTER", - "url": "https://generic-templates.tradetrust.io" - }, - "proof": { - "type": "OpenAttestationProofMethod", - "method": "DOCUMENT_STORE", - "value": "0x93092C2B449712281008112870063fF439367C00", - "revocation": { - "type": "NONE" - } - }, - "identityProof": { - "type": "DNS-TXT", - "identifier": "example.tradetrust.io" - } - }, - "credentialSubject": {}, - "issuer": { - "id": "https://example.com", - "name": "DEMO DOCUMENT STORE", - "type": "OpenAttestationIssuer" - }, - "network": { - "chain": "HBAR", - "chainId": "296" - } - }, - "schema": { - "type": "object", - "additionalProperties": false, - "properties": { - "logo": { - "type": "string", - "title": "Cover Letter Logo" - }, - "title": { - "type": "string", - "title": "Document Title" - }, - "remarks": { - "type": "string", - "title": "Remarks" - }, - "backgroundColor": { - "type": "string", - "title": "Background Color" - }, - "titleColor": { - "type": "string", - "title": "Title Color" - }, - "remarksColor": { - "type": "string", - "title": "Remarks Color" - } - } - }, - "attachments": { - "allow": true - }, - "uiSchema": { - "logo": { - "ui:widget": "file", - "ui:options": { - "text": "Upload Cover Letter Logo", - "accept": ".png, .jpeg, .jpg" - } - }, - "remarks": { - "ui:widget": "textarea" - }, - "backgroundColor": { - "ui:widget": "color", - "ui:options": { - "emptyValue": "#ffffff" - } - }, - "titleColor": { - "ui:widget": "color", - "ui:options": { - "emptyValue": "#4e4e50" - } - }, - "remarksColor": { - "ui:widget": "color", - "ui:options": { - "emptyValue": "#4e4e50" - } - } - }, - "extension": "tt" - }, - { - "name": "TradeTrust Invoice v3 (DNS-DID)", - "type": "VERIFIABLE_DOCUMENT", - "defaults": { - "version": "https://schema.openattestation.com/3.0/schema.json", - "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://schemata.openattestation.com/io/tradetrust/Invoice/1.0/invoice-context.json", - "https://schemata.openattestation.com/com/openattestation/1.0/OpenAttestation.v3.json" - ], - "type": [ - "VerifiableCredential", - "OpenAttestationCredential" - ], - "issuanceDate": "2010-01-01T19:23:24Z", - "openAttestationMetadata": { - "template": { - "type": "EMBEDDED_RENDERER", - "name": "INVOICE", - "url": "https://generic-templates.tradetrust.io" - }, - "proof": { - "type": "OpenAttestationProofMethod", - "method": "DID", - "value": "did:ethr:0xca93690bb57eeab273c796a9309246bc0fb93649", - "revocation": { - "type": "NONE" - } - }, - "identityProof": { - "type": "DNS-DID", - "identifier": "example.tradetrust.io" - } - }, - "credentialSubject": {}, - "issuer": { - "id": "https://example.com", - "name": "DEMO DNS-DID", - "type": "OpenAttestationIssuer" - }, - "network": { - "chain": "HBAR", - "chainId": "296" - } - }, - "schema": { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "type": "string", - "title": "Invoice ID" - }, - "date": { - "type": "string", - "title": "Date" - }, - "customerId": { - "type": "string", - "title": "Customer ID" - }, - "terms": { - "type": "string", - "title": "Terms" - }, - "billFrom": { - "type": "object", - "title": "Bill From", - "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "streetAddress": { - "type": "string", - "title": "Street Address" - }, - "city": { - "type": "string", - "title": "City" - }, - "postalCode": { - "type": "string", - "title": "Postal Code" - }, - "phoneNumber": { - "type": "string", - "title": "Phone Number" - } - } - }, - "billTo": { - "type": "object", - "title": "Bill To", - "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "email": { - "type": "string", - "title": "Email" - }, - "company": { - "type": "object", - "title": "Bill To Company", - "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "streetAddress": { - "type": "string", - "title": "Street Address" - }, - "city": { - "type": "string", - "title": "City" - }, - "postalCode": { - "type": "string", - "title": "Postal Code" - }, - "phoneNumber": { - "type": "string", - "title": "Phone Number" - } - } - } - } - }, - "billableItems": { - "type": "array", - "title": "Billable Items", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string", - "title": "Description" - }, - "quantity": { - "type": "string", - "title": "Quantity" - }, - "unitPrice": { - "type": "string", - "title": "Unit Price" - }, - "amount": { - "type": "string", - "title": "Amount" - } - } - } - }, - "subtotal": { - "type": "string", - "title": "Subtotal" - }, - "tax": { - "type": "string", - "title": "Tax (%)" - }, - "taxTotal": { - "type": "string", - "title": "Tax Total" - }, - "total": { - "type": "string", - "title": "Total" - } - } - }, - "uiSchema": { - "date": { - "ui:widget": "date" - } - }, - "extension": "tt" - }, - { - "name": "TradeTrust Invoice v3", - "type": "VERIFIABLE_DOCUMENT", - "defaults": { - "version": "https://schema.openattestation.com/3.0/schema.json", - "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://schemata.openattestation.com/io/tradetrust/Invoice/1.0/invoice-context.json", - "https://schemata.openattestation.com/com/openattestation/1.0/OpenAttestation.v3.json" - ], - "type": [ - "VerifiableCredential", - "OpenAttestationCredential" - ], - "issuanceDate": "2010-01-01T19:23:24Z", - "openAttestationMetadata": { - "template": { - "type": "EMBEDDED_RENDERER", - "name": "INVOICE", - "url": "https://generic-templates.tradetrust.io" - }, - "proof": { - "type": "OpenAttestationProofMethod", - "method": "DOCUMENT_STORE", - "value": "0x93092C2B449712281008112870063fF439367C00", - "revocation": { - "type": "NONE" - } - }, - "identityProof": { - "type": "DNS-TXT", - "identifier": "example.tradetrust.io" - } - }, - "credentialSubject": {}, - "issuer": { - "id": "https://example.com", - "name": "DEMO DOCUMENT STORE", - "type": "OpenAttestationIssuer" - }, - "network": { - "chain": "HBAR", - "chainId": "296" - } - }, - "schema": { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "type": "string", - "title": "Invoice ID" - }, - "date": { - "type": "string", - "title": "Date" - }, - "customerId": { - "type": "string", - "title": "Customer ID" - }, - "terms": { - "type": "string", - "title": "Terms" - }, - "billFrom": { - "type": "object", - "title": "Bill From", - "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "streetAddress": { - "type": "string", - "title": "Street Address" - }, - "city": { - "type": "string", - "title": "City" - }, - "postalCode": { - "type": "string", - "title": "Postal Code" - }, - "phoneNumber": { - "type": "string", - "title": "Phone Number" - } - } - }, - "billTo": { - "type": "object", - "title": "Bill To", - "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "email": { - "type": "string", - "title": "Email" - }, - "company": { - "type": "object", - "title": "Bill To Company", - "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "streetAddress": { - "type": "string", - "title": "Street Address" - }, - "city": { - "type": "string", - "title": "City" - }, - "postalCode": { - "type": "string", - "title": "Postal Code" - }, - "phoneNumber": { - "type": "string", - "title": "Phone Number" - } - } - } - } - }, - "billableItems": { - "type": "array", - "title": "Billable Items", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string", - "title": "Description" - }, - "quantity": { - "type": "string", - "title": "Quantity" - }, - "unitPrice": { - "type": "string", - "title": "Unit Price" - }, - "amount": { - "type": "string", - "title": "Amount" - } - } - } - }, - "subtotal": { - "type": "string", - "title": "Subtotal" - }, - "tax": { - "type": "string", - "title": "Tax (%)" - }, - "taxTotal": { - "type": "string", - "title": "Tax Total" - }, - "total": { - "type": "string", - "title": "Total" - } - } - }, - "uiSchema": { - "date": { - "ui:widget": "date" - } - }, - "extension": "tt" - } - ] -} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index f1c3cd0..f21d959 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,8 +16,8 @@ }, "devDependencies": { "@netlify/functions": "^1.3.0", - "@tradetrust-tt/tradetrust": "^6.9.1", - "@tradetrust-tt/tradetrust-utils": "^1.14.1", + "@tradetrust-tt/tradetrust": "^6.9.7", + "@tradetrust-tt/tradetrust-utils": "^2.1.0", "@types/jest": "^29.5.0", "@types/node": "^18.15.10", "@typescript-eslint/eslint-plugin": "^5.57.0", @@ -44,6 +44,12 @@ "node": ">=0.10.0" } }, + "node_modules/@adraffy/ens-normalize": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz", + "integrity": "sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw==", + "dev": true + }, "node_modules/@ampproject/remapping": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", @@ -1961,6 +1967,30 @@ "node": ">=14.0.0" } }, + "node_modules/@noble/curves": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", + "integrity": "sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==", + "dev": true, + "dependencies": { + "@noble/hashes": "1.3.2" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@noble/hashes": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", + "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", + "dev": true, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -2030,9 +2060,9 @@ } }, "node_modules/@tradetrust-tt/dnsprove": { - "version": "2.14.2", - "resolved": "https://registry.npmjs.org/@tradetrust-tt/dnsprove/-/dnsprove-2.14.2.tgz", - "integrity": "sha512-wXoLzlOzFilIvSXvHIODv6vR9MLHcJS5681Ic+nwlTgiHOKOg29vPX/h3Dl4YrcKgiHZwH2p/VbtcUJeSDYOgA==", + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/@tradetrust-tt/dnsprove/-/dnsprove-2.15.0.tgz", + "integrity": "sha512-e7VZoaPL1B7ishBsSxvMuHahDqxX48PDiqKtkNzzKg3CF4K2yM+I55XVpyQG+O5sfQswJXVr4iACIZ0lG20VOA==", "dev": true, "dependencies": { "axios": "1.7.2", @@ -2055,80 +2085,156 @@ } }, "node_modules/@tradetrust-tt/document-store": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/@tradetrust-tt/document-store/-/document-store-2.7.0.tgz", - "integrity": "sha512-wMTQkZ4FNzYvlWwaeKCHuV8fYxw+kefI38dTMHY5fpV3B5oaapePFGKHDs+4IrV1ZVFHQbqR/r/MP7dNwwjJDA==", - "dev": true + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@tradetrust-tt/document-store/-/document-store-4.1.0.tgz", + "integrity": "sha512-8q1zX8iWkOcIPpVovhdeuCetbAFh9ROlx0iItszp+vcDYVXzVhPeC9ynl0zOLknvyeaaMptdOmT1RE5TDLs1BA==", + "dev": true, + "engines": { + "node": ">=18.x" + } }, "node_modules/@tradetrust-tt/token-registry": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/@tradetrust-tt/token-registry/-/token-registry-4.12.1.tgz", - "integrity": "sha512-GM/q+pyRSzoRAaHuIxt1W/tr45JXv1CPMwF4nYIZhofDtVJTbLIeQsEnBpzJSyCp4hSQUe1LDAI3ma6SZRMq8A==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@tradetrust-tt/token-registry/-/token-registry-5.1.0.tgz", + "integrity": "sha512-FfOJZMfNfsIdPRCsVB/P3LE9BTO0/kx7QfmNB7/Wfja8kwMspy3v55TvQ93B6nXBSp+VMvUOsNLd1ly7V4D7dg==", + "dev": true, + "dependencies": { + "ethers": "^6.13.4" + } + }, + "node_modules/@tradetrust-tt/token-registry/node_modules/@types/node": { + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz", + "integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==", + "dev": true, + "dependencies": { + "undici-types": "~6.19.2" + } + }, + "node_modules/@tradetrust-tt/token-registry/node_modules/aes-js": { + "version": "4.0.0-beta.5", + "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-4.0.0-beta.5.tgz", + "integrity": "sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q==", + "dev": true + }, + "node_modules/@tradetrust-tt/token-registry/node_modules/ethers": { + "version": "6.13.4", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.4.tgz", + "integrity": "sha512-21YtnZVg4/zKkCQPjrDj38B1r4nQvTZLopUGMLQ1ePU2zV/joCfDC3t3iKQjWRzjjjbzR+mdAIoikeBRNkdllA==", "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/ethers-io/" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], "dependencies": { - "@typechain/ethers-v5": "10.2.1" + "@adraffy/ens-normalize": "1.10.1", + "@noble/curves": "1.2.0", + "@noble/hashes": "1.3.2", + "@types/node": "22.7.5", + "aes-js": "4.0.0-beta.5", + "tslib": "2.7.0", + "ws": "8.17.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@tradetrust-tt/token-registry/node_modules/tslib": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", + "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", + "dev": true + }, + "node_modules/@tradetrust-tt/token-registry/node_modules/undici-types": { + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "dev": true + }, + "node_modules/@tradetrust-tt/token-registry/node_modules/ws": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "dev": true, + "engines": { + "node": ">=10.0.0" }, "peerDependencies": { - "ethers": ">=5.0.8" + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } } }, "node_modules/@tradetrust-tt/tradetrust": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@tradetrust-tt/tradetrust/-/tradetrust-6.9.1.tgz", - "integrity": "sha512-V+4pCkmUJGansE4DQeol5mzOoBjaHjVWo5lbtwE1O9T08bomxJ0WgCM74o56C6EukUyt4EsJQzLKoy0OUl+ZLg==", + "version": "6.9.7", + "resolved": "https://registry.npmjs.org/@tradetrust-tt/tradetrust/-/tradetrust-6.9.7.tgz", + "integrity": "sha512-fohB+lnH/1SVLlSeHKPh34wnj3FAUQcuBxgoFFcQVISgTP/GTOZVyIocCzfoMW4X/SDdmN/bdIXqHgEAR0HV/A==", "dev": true, "hasInstallScript": true, "dependencies": { - "@govtechsg/jsonld": "^0.1.0", - "ajv": "^8.6.2", - "ajv-formats": "^2.1.0", - "cross-fetch": "^3.1.5", - "debug": "^4.3.2", + "@govtechsg/jsonld": "^0.1.1", + "ajv": "^8.12.0", + "ajv-formats": "^2.1.1", + "cross-fetch": "^4.0.0", + "debug": "^4.3.4", "ethers": "^5.7.2", "flatley": "^5.2.0", - "js-base64": "^3.6.1", - "js-sha3": "^0.8.0", + "js-base64": "^3.7.7", + "js-sha3": "^0.9.3", "lodash": "^4.17.21", - "runtypes": "^6.3.2", - "uuid": "^8.3.2", - "validator": "^13.7.0" + "runtypes": "^6.7.0", + "uuid": "^9.0.1", + "validator": "^13.11.0" + }, + "engines": { + "node": ">=18.x" } }, "node_modules/@tradetrust-tt/tradetrust-utils": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@tradetrust-tt/tradetrust-utils/-/tradetrust-utils-1.14.1.tgz", - "integrity": "sha512-Z81ungxVzO471Lp18/u1phgKkcXOyU8LGp+3Yt/6761fLECi2OtBySx6WrrxMpjzWLuIfZqFrj/gxkd6IipJmg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@tradetrust-tt/tradetrust-utils/-/tradetrust-utils-2.1.0.tgz", + "integrity": "sha512-T5s4NLEhVHrYSxWN7PfIyEY+iJ5nBfWtXrF1lF7+phNh0D+b8LteNDRSpgr2JaffUDFssRNtXZwbDD5MInNlMQ==", "dev": true, "dependencies": { - "@tradetrust-tt/tt-verify": "^8.10.2" + "@tradetrust-tt/tt-verify": "^9.2.0" }, "engines": { - "node": "18.x" + "node": ">=18.x" } }, - "node_modules/@tradetrust-tt/tradetrust/node_modules/cross-fetch": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.8.tgz", - "integrity": "sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==", - "dev": true, - "dependencies": { - "node-fetch": "^2.6.12" - } + "node_modules/@tradetrust-tt/tradetrust/node_modules/js-sha3": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.9.3.tgz", + "integrity": "sha512-BcJPCQeLg6WjEx3FE591wVAevlli8lxsxm9/FzV4HXkV49TmBH38Yvrpce6fjbADGMKFrBMGTqrVz3qPIZ88Gg==", + "dev": true }, "node_modules/@tradetrust-tt/tt-verify": { - "version": "8.10.2", - "resolved": "https://registry.npmjs.org/@tradetrust-tt/tt-verify/-/tt-verify-8.10.2.tgz", - "integrity": "sha512-7kkLZ9BxzTJUX3pdo/MmLSVS0AhQd72kECwg/cdTnTBM8eFHjnWVkGK67ubA4pnSuq0ZsZfzwwUh9E2J5zYSWw==", + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/@tradetrust-tt/tt-verify/-/tt-verify-9.2.0.tgz", + "integrity": "sha512-DmmRdERLk8imixPJh+1gs9T9PE3DYCou+84sk8f+3Dp2e8owqg8wD67Sa1Rzi0rd5J19H2M9aEYiRzSIHG05xg==", "dev": true, "dependencies": { - "@tradetrust-tt/dnsprove": "^2.14.2", - "@tradetrust-tt/document-store": "^2.7.0", - "@tradetrust-tt/token-registry": "^4.12.1", - "@tradetrust-tt/tradetrust": "^6.9.0", + "@tradetrust-tt/dnsprove": "^2.15.0", + "@tradetrust-tt/document-store": "^4.1.0", + "@tradetrust-tt/token-registry": "^5.1.0", + "@tradetrust-tt/tradetrust": "^6.9.7", "axios": "^1.7.2", "debug": "^4.3.1", "did-resolver": "^3.1.0", - "ethers": "^5.4.0", + "ethers": "^5.7.2", "ethr-did-resolver": "^4.3.3", "node-cache": "^5.1.2", "runtypes": "^6.3.0", @@ -2136,6 +2242,9 @@ }, "engines": { "node": ">=18.x" + }, + "peerDependencies": { + "ethers": "^5.7.2" } }, "node_modules/@tsconfig/node10": { @@ -2162,23 +2271,6 @@ "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", "dev": true }, - "node_modules/@typechain/ethers-v5": { - "version": "10.2.1", - "resolved": "https://registry.npmjs.org/@typechain/ethers-v5/-/ethers-v5-10.2.1.tgz", - "integrity": "sha512-n3tQmCZjRE6IU4h6lqUGiQ1j866n5MTCBJreNEHHVWXa2u9GJTaeYyU1/k+1qLutkyw+sS6VAN+AbeiTqsxd/A==", - "dev": true, - "dependencies": { - "lodash": "^4.17.15", - "ts-essentials": "^7.0.1" - }, - "peerDependencies": { - "@ethersproject/abi": "^5.0.0", - "@ethersproject/providers": "^5.0.0", - "ethers": "^5.1.3", - "typechain": "^8.1.1", - "typescript": ">=4.3.0" - } - }, "node_modules/@types/babel__core": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", @@ -2289,13 +2381,6 @@ "undici-types": "~5.26.4" } }, - "node_modules/@types/prettier": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", - "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", - "dev": true, - "peer": true - }, "node_modules/@types/semver": { "version": "7.5.8", "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz", @@ -2700,16 +2785,6 @@ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, - "node_modules/array-back": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", - "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", - "dev": true, - "peer": true, - "engines": { - "node": ">=6" - } - }, "node_modules/array-union": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", @@ -2726,9 +2801,9 @@ "dev": true }, "node_modules/axios": { - "version": "1.7.7", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", - "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", + "version": "1.7.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.8.tgz", + "integrity": "sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw==", "dev": true, "dependencies": { "follow-redirects": "^1.15.6", @@ -3115,136 +3190,6 @@ "node": ">= 0.8" } }, - "node_modules/command-line-args": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.2.1.tgz", - "integrity": "sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==", - "dev": true, - "peer": true, - "dependencies": { - "array-back": "^3.1.0", - "find-replace": "^3.0.0", - "lodash.camelcase": "^4.3.0", - "typical": "^4.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/command-line-usage": { - "version": "6.1.3", - "resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-6.1.3.tgz", - "integrity": "sha512-sH5ZSPr+7UStsloltmDh7Ce5fb8XPlHyoPzTpyyMuYCtervL65+ubVZ6Q61cFtFl62UyJlc8/JwERRbAFPUqgw==", - "dev": true, - "peer": true, - "dependencies": { - "array-back": "^4.0.2", - "chalk": "^2.4.2", - "table-layout": "^1.0.2", - "typical": "^5.2.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/command-line-usage/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "peer": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/command-line-usage/node_modules/array-back": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-4.0.2.tgz", - "integrity": "sha512-NbdMezxqf94cnNfWLL7V/im0Ub+Anbb0IoZhvzie8+4HJ4nMQuzHuy49FkGYCJK2yAloZ3meiB6AVMClbrI1vg==", - "dev": true, - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/command-line-usage/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "peer": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/command-line-usage/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "peer": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/command-line-usage/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true, - "peer": true - }, - "node_modules/command-line-usage/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "peer": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/command-line-usage/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "peer": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/command-line-usage/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "peer": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/command-line-usage/node_modules/typical": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-5.2.0.tgz", - "integrity": "sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==", - "dev": true, - "peer": true, - "engines": { - "node": ">=8" - } - }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -3382,16 +3327,6 @@ } } }, - "node_modules/deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true, - "peer": true, - "engines": { - "node": ">=4.0.0" - } - }, "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", @@ -4039,19 +3974,6 @@ "node": ">=8" } }, - "node_modules/find-replace": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz", - "integrity": "sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==", - "dev": true, - "peer": true, - "dependencies": { - "array-back": "^3.0.1" - }, - "engines": { - "node": ">=4.0.0" - } - }, "node_modules/find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", @@ -4131,31 +4053,6 @@ "node": ">= 6" } }, - "node_modules/fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "dev": true, - "peer": true, - "dependencies": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/fs-extra/node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true, - "peer": true, - "engines": { - "node": ">= 4.0.0" - } - }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -5387,16 +5284,6 @@ "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.1.tgz", "integrity": "sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==" }, - "node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "dev": true, - "peer": true, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, "node_modules/junk": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/junk/-/junk-3.1.0.tgz", @@ -5472,13 +5359,6 @@ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "dev": true }, - "node_modules/lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", - "dev": true, - "peer": true - }, "node_modules/lodash.memoize": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", @@ -5631,19 +5511,6 @@ "node": "*" } }, - "node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true, - "peer": true, - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -23126,22 +22993,6 @@ "node": ">= 0.8.0" } }, - "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", - "dev": true, - "peer": true, - "bin": { - "prettier": "bin-prettier.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, "node_modules/pretty-format": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", @@ -23271,16 +23122,6 @@ "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, - "node_modules/reduce-flatten": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-2.0.0.tgz", - "integrity": "sha512-EJ4UNY/U1t2P/2k6oqotuX2Cc3T6nxJwsM0N0asT7dhrtH1ltUxDn4NalSYmPE2rCkVpcf/X6R0wDwcFpzhd4w==", - "dev": true, - "peer": true, - "engines": { - "node": ">=6" - } - }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -23552,13 +23393,6 @@ "node": ">=8" } }, - "node_modules/string-format": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/string-format/-/string-format-2.0.0.tgz", - "integrity": "sha512-bbEs3scLeYNXLecRRuk6uJxdXUSj6le/8rNPHChIJTn2V79aXVTR1EH2OH5zLKKoz0V02fOUKZZcw01pLUShZA==", - "dev": true, - "peer": true - }, "node_modules/string-length": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", @@ -23658,42 +23492,6 @@ "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", "dev": true }, - "node_modules/table-layout": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-1.0.2.tgz", - "integrity": "sha512-qd/R7n5rQTRFi+Zf2sk5XVVd9UQl6ZkduPFC3S7WEGJAmetDTjY3qPN50eSKzwuzEyQKy5TN2TiZdkIjos2L6A==", - "dev": true, - "peer": true, - "dependencies": { - "array-back": "^4.0.1", - "deep-extend": "~0.6.0", - "typical": "^5.2.0", - "wordwrapjs": "^4.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/table-layout/node_modules/array-back": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-4.0.2.tgz", - "integrity": "sha512-NbdMezxqf94cnNfWLL7V/im0Ub+Anbb0IoZhvzie8+4HJ4nMQuzHuy49FkGYCJK2yAloZ3meiB6AVMClbrI1vg==", - "dev": true, - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/table-layout/node_modules/typical": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-5.2.0.tgz", - "integrity": "sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==", - "dev": true, - "peer": true, - "engines": { - "node": ">=8" - } - }, "node_modules/test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", @@ -23768,31 +23566,6 @@ "node": ">=12" } }, - "node_modules/ts-command-line-args": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/ts-command-line-args/-/ts-command-line-args-2.5.1.tgz", - "integrity": "sha512-H69ZwTw3rFHb5WYpQya40YAX2/w7Ut75uUECbgBIsLmM+BNuYnxsltfyyLMxy6sEeKxgijLTnQtLd0nKd6+IYw==", - "dev": true, - "peer": true, - "dependencies": { - "chalk": "^4.1.0", - "command-line-args": "^5.1.1", - "command-line-usage": "^6.1.0", - "string-format": "^2.0.0" - }, - "bin": { - "write-markdown": "dist/write-markdown.js" - } - }, - "node_modules/ts-essentials": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz", - "integrity": "sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ==", - "dev": true, - "peerDependencies": { - "typescript": ">=3.7.0" - } - }, "node_modules/ts-jest": { "version": "29.1.2", "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.2.tgz", @@ -23933,53 +23706,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/typechain": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/typechain/-/typechain-8.3.2.tgz", - "integrity": "sha512-x/sQYr5w9K7yv3es7jo4KTX05CLxOf7TRWwoHlrjRh8H82G64g+k7VuWPJlgMo6qrjfCulOdfBjiaDtmhFYD/Q==", - "dev": true, - "peer": true, - "dependencies": { - "@types/prettier": "^2.1.1", - "debug": "^4.3.1", - "fs-extra": "^7.0.0", - "glob": "7.1.7", - "js-sha3": "^0.8.0", - "lodash": "^4.17.15", - "mkdirp": "^1.0.4", - "prettier": "^2.3.1", - "ts-command-line-args": "^2.2.0", - "ts-essentials": "^7.0.1" - }, - "bin": { - "typechain": "dist/cli/cli.js" - }, - "peerDependencies": { - "typescript": ">=4.3.0" - } - }, - "node_modules/typechain/node_modules/glob": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", - "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "peer": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/typedoc": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.25.12.tgz", @@ -24034,16 +23760,6 @@ "node": ">=14.17" } }, - "node_modules/typical": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz", - "integrity": "sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==", - "dev": true, - "peer": true, - "engines": { - "node": ">=8" - } - }, "node_modules/undici-types": { "version": "5.26.5", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", @@ -24108,10 +23824,14 @@ } }, "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", "dev": true, + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], "bin": { "uuid": "dist/bin/uuid" } @@ -24250,30 +23970,6 @@ "node": ">= 8" } }, - "node_modules/wordwrapjs": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-4.0.1.tgz", - "integrity": "sha512-kKlNACbvHrkpIw6oPeYDSmdCTu2hdMHoyXLTcUKala++lx5Y+wjJ/e474Jqv5abnVmwxw08DiTuHmw69lJGksA==", - "dev": true, - "peer": true, - "dependencies": { - "reduce-flatten": "^2.0.0", - "typical": "^5.2.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/wordwrapjs/node_modules/typical": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-5.2.0.tgz", - "integrity": "sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==", - "dev": true, - "peer": true, - "engines": { - "node": ">=8" - } - }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", diff --git a/package.json b/package.json index 17d73fe..3f0eb96 100644 --- a/package.json +++ b/package.json @@ -35,8 +35,8 @@ "homepage": "https://github.com/TradeTrust/tradetrust-config#readme", "devDependencies": { "@netlify/functions": "^1.3.0", - "@tradetrust-tt/tradetrust": "^6.9.1", - "@tradetrust-tt/tradetrust-utils": "^1.14.1", + "@tradetrust-tt/tradetrust": "^6.9.7", + "@tradetrust-tt/tradetrust-utils": "^2.1.0", "@types/jest": "^29.5.0", "@types/node": "^18.15.10", "@typescript-eslint/eslint-plugin": "^5.57.0", diff --git a/src/config-v2.schema.json b/src/config-v2.schema.json index 7f86393..91eebe1 100644 --- a/src/config-v2.schema.json +++ b/src/config-v2.schema.json @@ -16,9 +16,7 @@ "xdcapothem", "stabilitytestnet", "stability", - "hederatestnet", - "hederamainnet", - "astron" + "astron" ] }, "wallet": { @@ -226,7 +224,7 @@ "properties": { "chain": { "type": "string", - "enum": ["ETH", "MATIC", "XDC", "FREE", "HBAR", "ASTRON"] + "enum": ["ETH", "MATIC", "XDC", "FREE", "ASTRON"] }, "chainId": { "type": "string", @@ -240,9 +238,7 @@ "51", "20180427", "101010", - "296", - "295", - "1338" + "1338" ] } } diff --git a/src/config-v3.schema.json b/src/config-v3.schema.json index 8678d7a..a46f74c 100644 --- a/src/config-v3.schema.json +++ b/src/config-v3.schema.json @@ -16,9 +16,7 @@ "xdcapothem", "stabilitytestnet", "stability", - "hederatestnet", - "hederamainnet", - "astron" + "astron" ] }, "wallet": { @@ -190,7 +188,7 @@ "properties": { "chain": { "type": "string", - "enum": ["ETH", "MATIC", "XDC", "FREE", "HBAR", "ASTRON"] + "enum": ["ETH", "MATIC", "XDC", "FREE", "ASTRON"] }, "chainId": { "type": "string", @@ -204,9 +202,7 @@ "51", "20180427", "101010", - "296", - "295", - "1338" + "1338" ] } } diff --git a/src/constants.ts b/src/constants.ts index 73fdc5e..a0ca261 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -47,15 +47,6 @@ export const buildData = [ dnsTransferableRecord: "example.com", dnsDid: "example.com", }, - // Hedera Testnet - { - chainId: "296" as CHAIN_ID, - documentStoreAddress: "0x93092C2B449712281008112870063fF439367C00", - tokenRegistryAddress: "0xA594f6e10564e87888425c7CC3910FE1c800aB0B", - dnsVerifiable: "example.tradetrust.io", - dnsTransferableRecord: "example.tradetrust.io", - dnsDid: "example.tradetrust.io", - }, // Amoy { chainId: "80002" as CHAIN_ID, diff --git a/src/generate-config.ts b/src/generate-config.ts index 2bbf3b3..b0ebf69 100644 --- a/src/generate-config.ts +++ b/src/generate-config.ts @@ -57,7 +57,6 @@ const writeSamples = () => { break; case CHAIN_ID.amoy: case CHAIN_ID.sepolia: - case CHAIN_ID.hederatestnet: case CHAIN_ID.stabilitytestnet: case CHAIN_ID.stability: case CHAIN_ID.astron: diff --git a/test/updateForm.test.ts b/test/updateForm.test.ts index 2367d69..bebc6d3 100644 --- a/test/updateForm.test.ts +++ b/test/updateForm.test.ts @@ -97,24 +97,7 @@ describe("updateFormV2", () => { "0xabcDocumentStore" ); }); - it("should update the form from a verifiable document correctly for hederatesnet ", () => { - const updatedForm = updateFormV2({ - chain: { currency: "HBAR", id: CHAIN_ID.hederatestnet }, - wallet: { type: "ENCRYPTED_JSON", encryptedJson: walletString }, - form: v2VerifiableDocumentForm, - documentStoreAddress: "0xabcDocumentStore", - tokenRegistryAddress: "0xabcTokenRegistry", - dnsVerifiable: "VerifiableDNS.com", - dnsDid: "DNSDID.com", - dnsTransferableRecord: "TransferableDNS.com", - }); - expect( - updatedForm.defaults.issuers[0].identityProof.location - ).toStrictEqual("VerifiableDNS.com"); - expect(updatedForm.defaults.issuers[0].documentStore).toStrictEqual( - "0xabcDocumentStore" - ); - }); + it("should update the form from a DID verifiable document correctly", () => { const updatedForm = updateFormV2({ chain: { currency: "ETH", id: CHAIN_ID.sepolia }, @@ -204,24 +187,7 @@ describe("updateFormV3", () => { updatedForm.defaults.openAttestationMetadata.proof.value ).toStrictEqual("0xabcDocumentStore"); }); - it("should update the form from a verifiable document correctly for hederatestnet", () => { - const updatedForm = updateFormV3({ - chain: { currency: "HBAR", id: CHAIN_ID.hederatestnet }, - wallet: { type: "ENCRYPTED_JSON", encryptedJson: walletString }, - form: v3VerifiableDocumentForm, - documentStoreAddress: "0xabcDocumentStore", - tokenRegistryAddress: "0xabcTokenRegistry", - dnsVerifiable: "VerifiableDNS.com", - dnsDid: "DNSDID.com", - dnsTransferableRecord: "TransferableDNS.com", - }); - expect( - updatedForm.defaults.openAttestationMetadata.identityProof.identifier - ).toStrictEqual("VerifiableDNS.com"); - expect( - updatedForm.defaults.openAttestationMetadata.proof.value - ).toStrictEqual("0xabcDocumentStore"); - }); + it("should update the form from a DID verifiable document correctly", () => { const updatedForm = updateFormV3({ chain: { currency: "ETH", id: CHAIN_ID.sepolia },