-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow to load typed schemas from
schemas/
folder
- Loading branch information
Showing
3 changed files
with
40 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
import { ERC725JSONSchema } from '../types/ERC725JSONSchema'; | ||
|
||
import LSP1UniversalReceiverDelegate from '../../schemas/LSP1UniversalReceiverDelegate.json'; | ||
import LSP3Profile from '../../schemas/LSP3ProfileMetadata.json'; | ||
import LSP4DigitalAssetLegacy from '../../schemas/LSP4DigitalAssetLegacy.json'; | ||
import LSP4DigitalAsset from '../../schemas/LSP4DigitalAsset.json'; | ||
import LSP5ReceivedAssets from '../../schemas/LSP5ReceivedAssets.json'; | ||
import LSP6KeyManager from '../../schemas/LSP6KeyManager.json'; | ||
import LSP8IdentifiableDigitalAsset from '../../schemas/LSP8IdentifiableDigitalAsset.json'; | ||
import LSP9Vault from '../../schemas/LSP9Vault.json'; | ||
import LSP10ReceivedVaults from '../../schemas/LSP10ReceivedVaults.json'; | ||
import LSP12IssuedAssets from '../../schemas/LSP12IssuedAssets.json'; | ||
import LSP17ContractExtension from '../../schemas/LSP17ContractExtension.json'; | ||
import LSP1JSONSchema from '../../schemas/LSP1UniversalReceiverDelegate.json'; | ||
import LSP3JSONSchema from '../../schemas/LSP3ProfileMetadata.json'; | ||
import LSP4JSONSchema from '../../schemas/LSP4DigitalAsset.json'; | ||
import LSP4LegacyJSONSchema from '../../schemas/LSP4DigitalAssetLegacy.json'; | ||
import LSP5JSONSchema from '../../schemas/LSP5ReceivedAssets.json'; | ||
import LSP6JSONSchema from '../../schemas/LSP6KeyManager.json'; | ||
import LSP8JSONSchema from '../../schemas/LSP8IdentifiableDigitalAsset.json'; | ||
import LSP9JSONSchema from '../../schemas/LSP9Vault.json'; | ||
import LSP10JSONSchema from '../../schemas/LSP10ReceivedVaults.json'; | ||
import LSP12JSONSchema from '../../schemas/LSP12IssuedAssets.json'; | ||
import LSP17JSONSchema from '../../schemas/LSP17ContractExtension.json'; | ||
|
||
export default LSP1UniversalReceiverDelegate.concat( | ||
LSP3Profile, | ||
LSP4DigitalAssetLegacy, | ||
LSP4DigitalAsset, | ||
LSP5ReceivedAssets, | ||
LSP6KeyManager, | ||
LSP8IdentifiableDigitalAsset, | ||
LSP9Vault, | ||
LSP10ReceivedVaults, | ||
LSP12IssuedAssets, | ||
LSP17ContractExtension, | ||
) as ERC725JSONSchema[]; | ||
type schemaType = ERC725JSONSchema[]; | ||
|
||
export const LSP1Schema: schemaType = LSP1JSONSchema as schemaType; | ||
export const LSP3Schema: schemaType = LSP3JSONSchema as schemaType; | ||
export const LSP4Schema: schemaType = LSP4JSONSchema as schemaType; | ||
export const LSP4LegacySchema: schemaType = LSP4LegacyJSONSchema as schemaType; | ||
export const LSP5Schema: schemaType = LSP5JSONSchema as schemaType; | ||
export const LSP6Schema: schemaType = LSP6JSONSchema as schemaType; | ||
export const LSP8Schema: schemaType = LSP8JSONSchema as schemaType; | ||
export const LSP9Schema: schemaType = LSP9JSONSchema as schemaType; | ||
export const LSP10Schema: schemaType = LSP10JSONSchema as schemaType; | ||
export const LSP12Schema: schemaType = LSP12JSONSchema as schemaType; | ||
export const LSP17Schema: schemaType = LSP17JSONSchema as schemaType; |
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