This package helps users querying their information, from they wallet address, label access control or current XP.
The following commands are allowed:
/query @userYou can run the type generations against a local database with
yarn supabase:generate:localOr against an instance by setting the SUPABASE_ACCESS_TOKEN and SUPABASE_PROJECT_ID in your .env file
yarn prebuildStart the Worker by running
yarn devTo trigger the worker, POST requests should be made to http://localhost:4000 with a Content-Type: application/json
header and a body looking like
{
"stateId": "",
"eventName": "",
"eventPayload": "",
"settings": "",
"ref": ""
}For convenience, you can find an .http file with a valid request here.
A valid configuration can be like:
- plugin: https://os.ubq.fi/command-query
with:
allowPublicQuery: true
logLevel: INFOTo start Jest tests, run
yarn test