@unique-nft/api
Version:
Definitely typed JS API for the Unique Network blockchain
30 lines (28 loc) • 848 B
text/typescript
export * from './types'
import * as types from './types'
import * as validators from './tools/validators'
import * as collection from './tools/collection'
import * as token from './tools/token'
import * as oldSchema from './tools/oldSchemaDecoder'
import * as universal from './tools/universal'
export const SchemaTools = {
decode: {
collectionSchema: universal.universallyDecodeCollectionSchema,
token: universal.universallyDecodeToken
},
encodeUnique: {
collectionSchema: collection.encodeCollectionSchemaToProperties,
collectionTokenPropertyPermissions: collection.generateTokenPropertyPermissionsFromCollectionSchema,
token: token.encodeTokenToProperties,
},
tools: {
unique: {
collection,
token,
validators,
},
oldSchema,
universal,
},
types,
}