Caching solution for The Verto Protocol
This cache solution is responsible for handling weighted loads of Data inside Verto. It's development is not fully complete although production ready.
Verifies the server is up & running
Fetches the metadata of a registered user given a username
.
interface {
username: string;
addresses: Array<string>
}
Fetches all the contracts (such as tokens) that an address is part of, given an addressId
.
Array<string> // Contract IDs
Fetches all creations (tokens where type is 'art') for a registered user, given a username
.
Array<string> // Contract IDs
Fetches the metadata for a token, given a tokenId
. Returns empty object if nothing was found.
interface {
contractId: string;
type: string;
lister: string;
}
Fetches random art work (tokens with type 'art' or 'collection') from the cache system. If $limit
is not passed, default will be set to 4.
interface {
contractId: string;
type: string;
lister: string;
}
Sends a contract to the worker pool. This contract will then be processed in a different thread and pool.
interface {
state: 'CURRENTLY_PROCESSING' | 'ADDED_TO_QUEUE' | 'CONTRACT_SENT';
}