2.0.16-e • Published 3 years ago
@lost-worlds/validation v2.0.16-e
validation
Small util package used in the creation and validation of on-chain lost worlds assets (i.e. LostWorlds and LostAchievements)
Depends on
@lost-worlds/sdk
MetadataBlock Types
- LocationNameIssuerMetadata # states / soapbox # location
- NameIssuerMetadata # soapbox
LocationIssuerMetadata # portals
DescriptionMetadata # achievements
LocationRadiusMetadata # summit
- LocationRadiusNameIssuerMetadata # continents"
Structure
The repo uses fairly intense code building and curry patterns in order to minimize copypasta across editions.
Specifically, every edition should have the following structure:
schemaraw.jsonprocessed.jsonindex.ts
types/*(auto-generated by thetype-generator)achievements.ts- This must define:transformhandleLostAchievementOptions
worlds/creation/raw.ts- This must define:transformInitializationParamslostWorldFactories
transformed.ts- This must define:lostWorldFactories
validation/raw.ts- This must define:validate
transformed.ts- This must define:validate
core.ts- This must define:handleLostWorldOptions
2.0.16-e
3 years ago