This repository was archived by the owner on Dec 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: export functions&types from tradetrust-tt/tradetrust
- Loading branch information
Showing
5 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Centralized import and export for tradetrust functionalities | ||
|
||
// Import everything from @tradetrust-tt/tradetrust | ||
import { | ||
SchemaId, | ||
utils, | ||
v2, | ||
v3, | ||
OpenAttestationDocument, | ||
obfuscateDocument, | ||
verifySignature, | ||
signDocument, | ||
SUPPORTED_SIGNING_ALGORITHM, | ||
getData, | ||
isSchemaValidationError, | ||
wrapDocument as wrapDocumentV2, | ||
WrappedDocument, | ||
wrapDocuments as wrapDocumentsV2, | ||
__unsafe__use__it__at__your__own__risks__wrapDocument as wrapDocumentV3, | ||
__unsafe__use__it__at__your__own__risks__wrapDocuments as wrapDocumentsV3, | ||
SignedWrappedDocument, | ||
} from '@tradetrust-tt/tradetrust' | ||
|
||
// Re-export everything | ||
export { | ||
SchemaId, | ||
utils, | ||
v2, | ||
v3, | ||
OpenAttestationDocument, | ||
obfuscateDocument, | ||
verifySignature, | ||
signDocument, | ||
SUPPORTED_SIGNING_ALGORITHM, | ||
getData, | ||
isSchemaValidationError, | ||
wrapDocumentV2, | ||
wrapDocumentV3, | ||
WrappedDocument, | ||
wrapDocumentsV2, | ||
wrapDocumentsV3, | ||
SignedWrappedDocument, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import * as CONSTANTS from './constants/VerificationErrorMessages' | ||
export * from './fragement' | ||
export * from './analytics' | ||
import * as CONSTANTS from './constants/VerificationErrorMessages' | ||
export * from './constants/supportedChains' | ||
export * from './provider/provider' | ||
export * from './tradetrust' | ||
|
||
export { CONSTANTS } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { utils } from '@tradetrust-tt/tradetrust' | ||
|
||
const { | ||
isTransferableAsset, | ||
getAssetId, | ||
isWrappedV2Document, | ||
isWrappedV3Document, | ||
isRawV3Document, | ||
isObfuscated, | ||
getDocumentData, | ||
getIssuerAddress, | ||
} = utils | ||
|
||
export { | ||
isTransferableAsset, | ||
getAssetId, | ||
isWrappedV2Document, | ||
isWrappedV3Document, | ||
isRawV3Document, | ||
isObfuscated, | ||
getDocumentData, | ||
getIssuerAddress, | ||
} |